/[PAMELA software]/yoda/configure
ViewVC logotype

Diff of /yoda/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2.0 by kusanagi, Tue Sep 21 20:49:36 2004 UTC revision 4.2 by kusanagi, Sat May 7 08:47:27 2005 UTC
# Line 241  IFS="  $as_nl" Line 241  IFS="  $as_nl"
241  $as_unset CDPATH  $as_unset CDPATH
242    
243    
 # Find the correct PATH separator.  Usually this is `:', but  
 # DJGPP uses `;' like DOS.  
 if test "X${PATH_SEPARATOR+set}" != Xset; then  
   UNAME=${UNAME-`uname 2>/dev/null`}  
   case X$UNAME in  
     *-DOS) lt_cv_sys_path_separator=';' ;;  
     *)     lt_cv_sys_path_separator=':' ;;  
   esac  
   PATH_SEPARATOR=$lt_cv_sys_path_separator  
 fi  
   
244    
245  # Check that we are running under the correct shell.  # Check that we are running under the correct shell.
246  SHELL=${CONFIG_SHELL-/bin/sh}  SHELL=${CONFIG_SHELL-/bin/sh}
# Line 270  if test "X$1" = X--no-reexec; then Line 259  if test "X$1" = X--no-reexec; then
259  elif test "X$1" = X--fallback-echo; then  elif test "X$1" = X--fallback-echo; then
260    # Avoid inline document here, it may be left over    # Avoid inline document here, it may be left over
261    :    :
262  elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then  elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263    # Yippee, $echo works!    # Yippee, $echo works!
264    :    :
265  else  else
# Line 282  if test "X$1" = X--fallback-echo; then Line 271  if test "X$1" = X--fallback-echo; then
271    # used as fallback echo    # used as fallback echo
272    shift    shift
273    cat <<EOF    cat <<EOF
274    $*
275  EOF  EOF
276    exit 0    exit 0
277  fi  fi
# Line 316  else Line 305  else
305    #    #
306    # So, first we look for a working echo in the user's PATH.    # So, first we look for a working echo in the user's PATH.
307    
308    IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309    for dir in $PATH /usr/ucb; do    for dir in $PATH /usr/ucb; do
310        IFS="$lt_save_ifs"
311      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
# Line 326  else Line 316  else
316        break        break
317      fi      fi
318    done    done
319    IFS="$save_ifs"    IFS="$lt_save_ifs"
320    
321    if test "X$echo" = Xecho; then    if test "X$echo" = Xecho; then
322      # We didn't find a better echo, so look for alternatives.      # We didn't find a better echo, so look for alternatives.
# Line 400  fi Line 390  fi
390    
391    
392    
393    
394    tagnames=${tagnames+${tagnames},}CXX
395    
396    tagnames=${tagnames+${tagnames},}F77
397    
398  # Name of the host.  # Name of the host.
399  # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,  # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400  # so uname gets run too.  # so uname gets run too.
# Line 468  ac_includes_default="\ Line 463  ac_includes_default="\
463  # include <unistd.h>  # include <unistd.h>
464  #endif"  #endif"
465    
466  ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT F77 FFLAGS ac_ct_F77 FLIBS CXX CXXFLAGS ac_ct_CXX LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL HAS_DOXYFILE ROOT_INCLUDES ROOT_LDFLAGS ROOTCINT LIBOBJS LTLIBOBJS'  ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE F77 FFLAGS ac_ct_F77 FLIBS CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL HAS_DOXYFILE ROOT_INCLUDES ROOT_LDFLAGS ROOTCINT LIBOBJS LTLIBOBJS'
467  ac_subst_files=''  ac_subst_files=''
468    
469  # Initialize some variables set by options.  # Initialize some variables set by options.
# Line 945  ac_env_CPP_set=${CPP+set} Line 940  ac_env_CPP_set=${CPP+set}
940  ac_env_CPP_value=$CPP  ac_env_CPP_value=$CPP
941  ac_cv_env_CPP_set=${CPP+set}  ac_cv_env_CPP_set=${CPP+set}
942  ac_cv_env_CPP_value=$CPP  ac_cv_env_CPP_value=$CPP
943    ac_env_CXXCPP_set=${CXXCPP+set}
944    ac_env_CXXCPP_value=$CXXCPP
945    ac_cv_env_CXXCPP_set=${CXXCPP+set}
946    ac_cv_env_CXXCPP_value=$CXXCPP
947    
948  #  #
949  # Report the --help message.  # Report the --help message.
# Line 1024  if test -n "$ac_init_help"; then Line 1023  if test -n "$ac_init_help"; then
1023  Optional Features:  Optional Features:
1024    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026    --enable-shared=PKGS  build shared libraries default=yes    --disable-dependency-tracking  speeds up one-time build
1027    --enable-static=PKGS  build static libraries default=yes    --enable-dependency-tracking   do not reject slow dependency extractors
1028    --enable-fast-install=PKGS  optimize for fast installation default=yes    --enable-shared[=PKGS]
1029                              build shared libraries [default=yes]
1030      --enable-static[=PKGS]
1031                              build static libraries [default=yes]
1032      --enable-fast-install[=PKGS]
1033                              optimize for fast installation [default=yes]
1034    --disable-libtool-lock  avoid locking (might break parallel builds)    --disable-libtool-lock  avoid locking (might break parallel builds)
1035  --enable-gprof          enable memory profiling with gprof  --enable-gprof          enable memory profiling with gprof
1036    
1037  Optional Packages:  Optional Packages:
1038    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1039    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1040    --with-gnu-ld           assume the C compiler uses GNU ld default=no    --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1041    --with-pic              try to use only PIC/non-PIC objects default=use both    --with-pic              try to use only PIC/non-PIC objects [default=use
1042                              both]
1043      --with-tags[=TAGS]
1044                              include additional configurations [automatic]
1045  --with-root=path    Use the specified ROOT directory  --with-root=path    Use the specified ROOT directory
1046  --with-log4cxx=path Use the specified directroy for log4cxx  --with-log4cxx=path Use the specified directroy for log4cxx
1047    
# Line 1050  Some influential environment variables: Line 1057  Some influential environment variables:
1057    CXX         C++ compiler command    CXX         C++ compiler command
1058    CXXFLAGS    C++ compiler flags    CXXFLAGS    C++ compiler flags
1059    CPP         C preprocessor    CPP         C preprocessor
1060      CXXCPP      C++ preprocessor
1061    
1062  Use these variables to override the choices made by `configure' or to help  Use these variables to override the choices made by `configure' or to help
1063  it to find libraries and programs with nonstandard names/locations.  it to find libraries and programs with nonstandard names/locations.
# Line 1490  ac_compiler_gnu=$ac_cv_c_compiler_gnu Line 1498  ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498    
1499    
1500    
1501  am__api_version="1.4"  am__api_version="1.8"
1502  ac_aux_dir=  ac_aux_dir=
1503  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1504    if test -f $ac_dir/install-sh; then    if test -f $ac_dir/install-sh; then
# Line 1599  echo "$as_me:$LINENO: checking whether b Line 1607  echo "$as_me:$LINENO: checking whether b
1607  echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6  echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1608  # Just in case  # Just in case
1609  sleep 1  sleep 1
1610  echo timestamp > conftestfile  echo timestamp > conftest.file
1611  # Do `set' in a subshell so we don't clobber the current shell's  # Do `set' in a subshell so we don't clobber the current shell's
1612  # arguments.  Must try -L first in case configure is actually a  # arguments.  Must try -L first in case configure is actually a
1613  # symlink; some systems play weird games with the mod time of symlinks  # symlink; some systems play weird games with the mod time of symlinks
1614  # (eg FreeBSD returns the mod time of the symlink's containing  # (eg FreeBSD returns the mod time of the symlink's containing
1615  # directory).  # directory).
1616  if (  if (
1617     set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`     set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1618     if test "$*" = "X"; then     if test "$*" = "X"; then
1619        # -L didn't work.        # -L didn't work.
1620        set X `ls -t $srcdir/configure conftestfile`        set X `ls -t $srcdir/configure conftest.file`
1621     fi     fi
1622     if test "$*" != "X $srcdir/configure conftestfile" \     rm -f conftest.file
1623        && test "$*" != "X conftestfile $srcdir/configure"; then     if test "$*" != "X $srcdir/configure conftest.file" \
1624          && test "$*" != "X conftest.file $srcdir/configure"; then
1625    
1626        # If neither matched, then we have a broken ls.  This can happen        # If neither matched, then we have a broken ls.  This can happen
1627        # if, for instance, CONFIG_SHELL is bash and it inherits a        # if, for instance, CONFIG_SHELL is bash and it inherits a
# Line 1625  alias in your environment" >&2;} Line 1634  alias in your environment" >&2;}
1634     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
1635     fi     fi
1636    
1637     test "$2" = conftestfile     test "$2" = conftest.file
1638     )     )
1639  then  then
1640     # Ok.     # Ok.
# Line 1637  echo "$as_me: error: newly created file Line 1646  echo "$as_me: error: newly created file
1646  Check your system clock" >&2;}  Check your system clock" >&2;}
1647     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
1648  fi  fi
 rm -f conftest*  
1649  echo "$as_me:$LINENO: result: yes" >&5  echo "$as_me:$LINENO: result: yes" >&5
1650  echo "${ECHO_T}yes" >&6  echo "${ECHO_T}yes" >&6
1651  test "$program_prefix" != NONE &&  test "$program_prefix" != NONE &&
# Line 1653  _ACEOF Line 1661  _ACEOF
1661  program_transform_name=`echo $program_transform_name | sed -f conftest.sed`  program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1662  rm conftest.sed  rm conftest.sed
1663    
1664    # expand $ac_aux_dir to an absolute path
1665    am_aux_dir=`cd $ac_aux_dir && pwd`
1666    
1667    test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1668    # Use eval to expand $SHELL
1669    if eval "$MISSING --run true"; then
1670      am_missing_run="$MISSING --run "
1671    else
1672      am_missing_run=
1673      { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1674    echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1675    fi
1676    
1677    if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1678      # Keeping the `.' argument allows $(mkdir_p) to be used without
1679      # argument.  Indeed, we sometimes output rules like
1680      #   $(mkdir_p) $(somedir)
1681      # where $(somedir) is conditionally defined.
1682      # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1683      # expensive solution, as it forces Make to start a sub-shell.)
1684      mkdir_p='mkdir -p -- .'
1685    else
1686      # On NextStep and OpenStep, the `mkdir' command does not
1687      # recognize any option.  It will interpret all options as
1688      # directories to create, and then abort because `.' already
1689      # exists.
1690      for d in ./-p ./--version;
1691      do
1692        test -d $d && rmdir $d
1693      done
1694      # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1695      if test -f "$ac_aux_dir/mkinstalldirs"; then
1696        mkdir_p='$(mkinstalldirs)'
1697      else
1698        mkdir_p='$(install_sh) -d'
1699      fi
1700    fi
1701    
1702    for ac_prog in gawk mawk nawk awk
1703    do
1704      # Extract the first word of "$ac_prog", so it can be a program name with args.
1705    set dummy $ac_prog; ac_word=$2
1706    echo "$as_me:$LINENO: checking for $ac_word" >&5
1707    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708    if test "${ac_cv_prog_AWK+set}" = set; then
1709      echo $ECHO_N "(cached) $ECHO_C" >&6
1710    else
1711      if test -n "$AWK"; then
1712      ac_cv_prog_AWK="$AWK" # Let the user override the test.
1713    else
1714    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715    for as_dir in $PATH
1716    do
1717      IFS=$as_save_IFS
1718      test -z "$as_dir" && as_dir=.
1719      for ac_exec_ext in '' $ac_executable_extensions; do
1720      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721        ac_cv_prog_AWK="$ac_prog"
1722        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723        break 2
1724      fi
1725    done
1726    done
1727    
1728    fi
1729    fi
1730    AWK=$ac_cv_prog_AWK
1731    if test -n "$AWK"; then
1732      echo "$as_me:$LINENO: result: $AWK" >&5
1733    echo "${ECHO_T}$AWK" >&6
1734    else
1735      echo "$as_me:$LINENO: result: no" >&5
1736    echo "${ECHO_T}no" >&6
1737    fi
1738    
1739      test -n "$AWK" && break
1740    done
1741    
1742  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1743  echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6  echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1744  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
# Line 1682  echo "${ECHO_T}no" >&6 Line 1768  echo "${ECHO_T}no" >&6
1768    SET_MAKE="MAKE=${MAKE-make}"    SET_MAKE="MAKE=${MAKE-make}"
1769  fi  fi
1770    
1771    rm -rf .tst 2>/dev/null
1772  PACKAGE=yoda  mkdir .tst 2>/dev/null
1773    if test -d .tst; then
1774  VERSION=0.1.0    am__leading_dot=.
1775    else
1776  if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then    am__leading_dot=_
1777    fi
1778    rmdir .tst 2>/dev/null
1779    
1780    # test to see if srcdir already configured
1781    if test "`cd $srcdir && pwd`" != "`pwd`" &&
1782       test -f $srcdir/config.status; then
1783    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1784  echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}  echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1785     { (exit 1); exit 1; }; }     { (exit 1); exit 1; }; }
1786  fi  fi
1787    
1788    # test whether we have cygpath
1789    if test -z "$CYGPATH_W"; then
1790      if (cygpath --version) >/dev/null 2>/dev/null; then
1791        CYGPATH_W='cygpath -w'
1792      else
1793        CYGPATH_W=echo
1794      fi
1795    fi
1796    
1797    
1798    # Define the identity of the package.
1799     PACKAGE=yoda
1800     VERSION=4.0.0
1801    
1802    
1803  cat >>confdefs.h <<_ACEOF  cat >>confdefs.h <<_ACEOF
1804  #define PACKAGE "$PACKAGE"  #define PACKAGE "$PACKAGE"
1805  _ACEOF  _ACEOF
# Line 1702  cat >>confdefs.h <<_ACEOF Line 1809  cat >>confdefs.h <<_ACEOF
1809  #define VERSION "$VERSION"  #define VERSION "$VERSION"
1810  _ACEOF  _ACEOF
1811    
1812    # Some tools Automake needs.
1813    
1814    ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1815    
1816    
1817    AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1818    
1819    
1820    AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1821    
1822    
1823    AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1824    
1825    
1826    MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1827    
1828    
1829    AMTAR=${AMTAR-"${am_missing_run}tar"}
1830    
1831    install_sh=${install_sh-"$am_aux_dir/install-sh"}
1832    
1833    # Installed binaries are usually stripped using `strip' when the user
1834    # run `make install-strip'.  However `strip' might not be the right
1835    # tool to use in cross-compilation environments, therefore Automake
1836    # will honor the `STRIP' environment variable to overrule this program.
1837    if test "$cross_compiling" != no; then
1838      if test -n "$ac_tool_prefix"; then
1839      # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1840    set dummy ${ac_tool_prefix}strip; ac_word=$2
1841    echo "$as_me:$LINENO: checking for $ac_word" >&5
1842    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1843    if test "${ac_cv_prog_STRIP+set}" = set; then
1844      echo $ECHO_N "(cached) $ECHO_C" >&6
1845    else
1846      if test -n "$STRIP"; then
1847      ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1848    else
1849    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850    for as_dir in $PATH
1851    do
1852      IFS=$as_save_IFS
1853      test -z "$as_dir" && as_dir=.
1854      for ac_exec_ext in '' $ac_executable_extensions; do
1855      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1856        ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1857        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1858        break 2
1859      fi
1860    done
1861    done
1862    
1863    fi
1864    fi
1865    STRIP=$ac_cv_prog_STRIP
1866    if test -n "$STRIP"; then
1867      echo "$as_me:$LINENO: result: $STRIP" >&5
1868    echo "${ECHO_T}$STRIP" >&6
1869    else
1870      echo "$as_me:$LINENO: result: no" >&5
1871    echo "${ECHO_T}no" >&6
1872    fi
1873    
1874    fi
1875    if test -z "$ac_cv_prog_STRIP"; then
1876      ac_ct_STRIP=$STRIP
1877      # Extract the first word of "strip", so it can be a program name with args.
1878    set dummy strip; ac_word=$2
1879    echo "$as_me:$LINENO: checking for $ac_word" >&5
1880    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881    if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1882      echo $ECHO_N "(cached) $ECHO_C" >&6
1883    else
1884      if test -n "$ac_ct_STRIP"; then
1885      ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1886    else
1887    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888    for as_dir in $PATH
1889    do
1890      IFS=$as_save_IFS
1891      test -z "$as_dir" && as_dir=.
1892      for ac_exec_ext in '' $ac_executable_extensions; do
1893      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894        ac_cv_prog_ac_ct_STRIP="strip"
1895        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896        break 2
1897      fi
1898    done
1899    done
1900    
1901      test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1902    fi
1903    fi
1904    ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1905    if test -n "$ac_ct_STRIP"; then
1906      echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1907    echo "${ECHO_T}$ac_ct_STRIP" >&6
1908    else
1909      echo "$as_me:$LINENO: result: no" >&5
1910    echo "${ECHO_T}no" >&6
1911    fi
1912    
1913      STRIP=$ac_ct_STRIP
1914    else
1915      STRIP="$ac_cv_prog_STRIP"
1916    fi
1917    
 missing_dir=`cd $ac_aux_dir && pwd`  
 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5  
 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6  
 # Run test in a subshell; some versions of sh will print an error if  
 # an executable is not found, even if stderr is redirected.  
 # Redirect stdin to placate older versions of autoconf.  Sigh.  
 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then  
    ACLOCAL=aclocal-${am__api_version}  
    echo "$as_me:$LINENO: result: found" >&5  
 echo "${ECHO_T}found" >&6  
 else  
    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"  
    echo "$as_me:$LINENO: result: missing" >&5  
 echo "${ECHO_T}missing" >&6  
 fi  
   
 echo "$as_me:$LINENO: checking for working autoconf" >&5  
 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6  
 # Run test in a subshell; some versions of sh will print an error if  
 # an executable is not found, even if stderr is redirected.  
 # Redirect stdin to placate older versions of autoconf.  Sigh.  
 if (autoconf --version) < /dev/null > /dev/null 2>&1; then  
    AUTOCONF=autoconf  
    echo "$as_me:$LINENO: result: found" >&5  
 echo "${ECHO_T}found" >&6  
 else  
    AUTOCONF="$missing_dir/missing autoconf"  
    echo "$as_me:$LINENO: result: missing" >&5  
 echo "${ECHO_T}missing" >&6  
 fi  
   
 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5  
 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6  
 # Run test in a subshell; some versions of sh will print an error if  
 # an executable is not found, even if stderr is redirected.  
 # Redirect stdin to placate older versions of autoconf.  Sigh.  
 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then  
    AUTOMAKE=automake-${am__api_version}  
    echo "$as_me:$LINENO: result: found" >&5  
 echo "${ECHO_T}found" >&6  
 else  
    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"  
    echo "$as_me:$LINENO: result: missing" >&5  
 echo "${ECHO_T}missing" >&6  
 fi  
   
 echo "$as_me:$LINENO: checking for working autoheader" >&5  
 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6  
 # Run test in a subshell; some versions of sh will print an error if  
 # an executable is not found, even if stderr is redirected.  
 # Redirect stdin to placate older versions of autoconf.  Sigh.  
 if (autoheader --version) < /dev/null > /dev/null 2>&1; then  
    AUTOHEADER=autoheader  
    echo "$as_me:$LINENO: result: found" >&5  
 echo "${ECHO_T}found" >&6  
 else  
    AUTOHEADER="$missing_dir/missing autoheader"  
    echo "$as_me:$LINENO: result: missing" >&5  
 echo "${ECHO_T}missing" >&6  
 fi  
   
 echo "$as_me:$LINENO: checking for working makeinfo" >&5  
 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6  
 # Run test in a subshell; some versions of sh will print an error if  
 # an executable is not found, even if stderr is redirected.  
 # Redirect stdin to placate older versions of autoconf.  Sigh.  
 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then  
    MAKEINFO=makeinfo  
    echo "$as_me:$LINENO: result: found" >&5  
 echo "${ECHO_T}found" >&6  
 else  
    MAKEINFO="$missing_dir/missing makeinfo"  
    echo "$as_me:$LINENO: result: missing" >&5  
 echo "${ECHO_T}missing" >&6  
1918  fi  fi
1919    INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1920    
1921    # We need awk for the "check" target.  The system "awk" is bad on
1922    # some platforms.
1923    
1924    
1925    
1926    
1927            ac_config_headers="$ac_config_headers config.h"            ac_config_headers="$ac_config_headers config.h"
1928    
           ac_config_commands="$ac_config_commands default-1"  
1929    
1930    
1931    
# Line 2774  ac_cpp='$CPP $CPPFLAGS' Line 2914  ac_cpp='$CPP $CPPFLAGS'
2914  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916  ac_compiler_gnu=$ac_cv_c_compiler_gnu  ac_compiler_gnu=$ac_cv_c_compiler_gnu
2917    DEPDIR="${am__leading_dot}deps"
2918    
2919              ac_config_commands="$ac_config_commands depfiles"
2920    
2921    
2922    am_make=${MAKE-make}
2923    cat > confinc << 'END'
2924    am__doit:
2925            @echo done
2926    .PHONY: am__doit
2927    END
2928    # If we don't find an include directive, just comment out the code.
2929    echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2930    echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2931    am__include="#"
2932    am__quote=
2933    _am_result=none
2934    # First try GNU make style include.
2935    echo "include confinc" > confmf
2936    # We grep out `Entering directory' and `Leaving directory'
2937    # messages which can occur if `w' ends up in MAKEFLAGS.
2938    # In particular we don't look at `^make:' because GNU make might
2939    # be invoked under some other name (usually "gmake"), in which
2940    # case it prints its new name instead of `make'.
2941    if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2942       am__include=include
2943       am__quote=
2944       _am_result=GNU
2945    fi
2946    # Now try BSD make style include.
2947    if test "$am__include" = "#"; then
2948       echo '.include "confinc"' > confmf
2949       if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2950          am__include=.include
2951          am__quote="\""
2952          _am_result=BSD
2953       fi
2954    fi
2955    
2956    
2957    echo "$as_me:$LINENO: result: $_am_result" >&5
2958    echo "${ECHO_T}$_am_result" >&6
2959    rm -f confinc confmf
2960    
2961    # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2962    if test "${enable_dependency_tracking+set}" = set; then
2963      enableval="$enable_dependency_tracking"
2964    
2965    fi;
2966    if test "x$enable_dependency_tracking" != xno; then
2967      am_depcomp="$ac_aux_dir/depcomp"
2968      AMDEPBACKSLASH='\'
2969    fi
2970    
2971    
2972    if test "x$enable_dependency_tracking" != xno; then
2973      AMDEP_TRUE=
2974      AMDEP_FALSE='#'
2975    else
2976      AMDEP_TRUE='#'
2977      AMDEP_FALSE=
2978    fi
2979    
2980    
2981    
2982    
2983    depcc="$CC"   am_compiler_list=
2984    
2985    echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2986    echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2987    if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2988      echo $ECHO_N "(cached) $ECHO_C" >&6
2989    else
2990      if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2991      # We make a subdir and do the tests there.  Otherwise we can end up
2992      # making bogus files that we don't know about and never remove.  For
2993      # instance it was reported that on HP-UX the gcc test will end up
2994      # making a dummy file named `D' -- because `-MD' means `put the output
2995      # in D'.
2996      mkdir conftest.dir
2997      # Copy depcomp to subdir because otherwise we won't find it if we're
2998      # using a relative directory.
2999      cp "$am_depcomp" conftest.dir
3000      cd conftest.dir
3001      # We will build objects and dependencies in a subdirectory because
3002      # it helps to detect inapplicable dependency modes.  For instance
3003      # both Tru64's cc and ICC support -MD to output dependencies as a
3004      # side effect of compilation, but ICC will put the dependencies in
3005      # the current directory while Tru64 will put them in the object
3006      # directory.
3007      mkdir sub
3008    
3009      am_cv_CC_dependencies_compiler_type=none
3010      if test "$am_compiler_list" = ""; then
3011         am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3012      fi
3013      for depmode in $am_compiler_list; do
3014        # Setup a source with many dependencies, because some compilers
3015        # like to wrap large dependency lists on column 80 (with \), and
3016        # we should not choose a depcomp mode which is confused by this.
3017        #
3018        # We need to recreate these files for each test, as the compiler may
3019        # overwrite some of them when testing with obscure command lines.
3020        # This happens at least with the AIX C compiler.
3021        : > sub/conftest.c
3022        for i in 1 2 3 4 5 6; do
3023          echo '#include "conftst'$i'.h"' >> sub/conftest.c
3024          # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3025          # Solaris 8's {/usr,}/bin/sh.
3026          touch sub/conftst$i.h
3027        done
3028        echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3029    
3030        case $depmode in
3031        nosideeffect)
3032          # after this tag, mechanisms are not by side-effect, so they'll
3033          # only be used when explicitly requested
3034          if test "x$enable_dependency_tracking" = xyes; then
3035            continue
3036          else
3037            break
3038          fi
3039          ;;
3040        none) break ;;
3041        esac
3042        # We check with `-c' and `-o' for the sake of the "dashmstdout"
3043        # mode.  It turns out that the SunPro C++ compiler does not properly
3044        # handle `-M -o', and we need to detect this.
3045        if depmode=$depmode \
3046           source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3047           depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3048           $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3049             >/dev/null 2>conftest.err &&
3050           grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3051           grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3052           ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3053          # icc doesn't choke on unknown options, it will just issue warnings
3054          # or remarks (even with -Werror).  So we grep stderr for any message
3055          # that says an option was ignored or not supported.
3056          # When given -MP, icc 7.0 and 7.1 complain thusly:
3057          #   icc: Command line warning: ignoring option '-M'; no argument required
3058          # The diagnosis changed in icc 8.0:
3059          #   icc: Command line remark: option '-MP' not supported
3060          if (grep 'ignoring option' conftest.err ||
3061              grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3062            am_cv_CC_dependencies_compiler_type=$depmode
3063            break
3064          fi
3065        fi
3066      done
3067    
3068      cd ..
3069      rm -rf conftest.dir
3070    else
3071      am_cv_CC_dependencies_compiler_type=none
3072    fi
3073    
3074    fi
3075    echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3076    echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3077    CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3078    
3079    
3080    
3081    if
3082      test "x$enable_dependency_tracking" != xno \
3083      && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3084      am__fastdepCC_TRUE=
3085      am__fastdepCC_FALSE='#'
3086    else
3087      am__fastdepCC_TRUE='#'
3088      am__fastdepCC_FALSE=
3089    fi
3090    
3091    
3092    
3093   ac_ext=f   ac_ext=f
# Line 2868  fi Line 3182  fi
3182    
3183    
3184  # Provide some information about the compiler.  # Provide some information about the compiler.
3185  echo "$as_me:2871:" \  echo "$as_me:3185:" \
3186       "checking for Fortran 77 compiler version" >&5       "checking for Fortran 77 compiler version" >&5
3187  ac_compiler=`set X $ac_compile; echo $2`  ac_compiler=`set X $ac_compile; echo $2`
3188  { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5  { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
# Line 3065  _ACEOF Line 3379  _ACEOF
3379  # flags.  # flags.
3380  ac_save_FFLAGS=$FFLAGS  ac_save_FFLAGS=$FFLAGS
3381  FFLAGS="$FFLAGS $ac_verb"  FFLAGS="$FFLAGS $ac_verb"
3382  (eval echo $as_me:3068: \"$ac_link\") >&5  (eval echo $as_me:3382: \"$ac_link\") >&5
3383  ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`  ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3384  echo "$ac_f77_v_output" >&5  echo "$ac_f77_v_output" >&5
3385  FFLAGS=$ac_save_FFLAGS  FFLAGS=$ac_save_FFLAGS
# Line 3143  _ACEOF Line 3457  _ACEOF
3457  # flags.  # flags.
3458  ac_save_FFLAGS=$FFLAGS  ac_save_FFLAGS=$FFLAGS
3459  FFLAGS="$FFLAGS $ac_cv_prog_f77_v"  FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3460  (eval echo $as_me:3146: \"$ac_link\") >&5  (eval echo $as_me:3460: \"$ac_link\") >&5
3461  ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`  ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3462  echo "$ac_f77_v_output" >&5  echo "$ac_f77_v_output" >&5
3463  FFLAGS=$ac_save_FFLAGS  FFLAGS=$ac_save_FFLAGS
# Line 3672  ac_compile='$CC -c $CFLAGS $CPPFLAGS con Line 3986  ac_compile='$CC -c $CFLAGS $CPPFLAGS con
3986  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987  ac_compiler_gnu=$ac_cv_c_compiler_gnu  ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988    
3989    depcc="$CXX"  am_compiler_list=
3990    
3991    echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3992    echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3993    if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3994      echo $ECHO_N "(cached) $ECHO_C" >&6
3995    else
3996      if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3997      # We make a subdir and do the tests there.  Otherwise we can end up
3998      # making bogus files that we don't know about and never remove.  For
3999      # instance it was reported that on HP-UX the gcc test will end up
4000      # making a dummy file named `D' -- because `-MD' means `put the output
4001      # in D'.
4002      mkdir conftest.dir
4003      # Copy depcomp to subdir because otherwise we won't find it if we're
4004      # using a relative directory.
4005      cp "$am_depcomp" conftest.dir
4006      cd conftest.dir
4007      # We will build objects and dependencies in a subdirectory because
4008      # it helps to detect inapplicable dependency modes.  For instance
4009      # both Tru64's cc and ICC support -MD to output dependencies as a
4010      # side effect of compilation, but ICC will put the dependencies in
4011      # the current directory while Tru64 will put them in the object
4012      # directory.
4013      mkdir sub
4014    
4015      am_cv_CXX_dependencies_compiler_type=none
4016      if test "$am_compiler_list" = ""; then
4017         am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4018      fi
4019      for depmode in $am_compiler_list; do
4020        # Setup a source with many dependencies, because some compilers
4021        # like to wrap large dependency lists on column 80 (with \), and
4022        # we should not choose a depcomp mode which is confused by this.
4023        #
4024        # We need to recreate these files for each test, as the compiler may
4025        # overwrite some of them when testing with obscure command lines.
4026        # This happens at least with the AIX C compiler.
4027        : > sub/conftest.c
4028        for i in 1 2 3 4 5 6; do
4029          echo '#include "conftst'$i'.h"' >> sub/conftest.c
4030          # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4031          # Solaris 8's {/usr,}/bin/sh.
4032          touch sub/conftst$i.h
4033        done
4034        echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4035    
4036        case $depmode in
4037        nosideeffect)
4038          # after this tag, mechanisms are not by side-effect, so they'll
4039          # only be used when explicitly requested
4040          if test "x$enable_dependency_tracking" = xyes; then
4041            continue
4042          else
4043            break
4044          fi
4045          ;;
4046        none) break ;;
4047        esac
4048        # We check with `-c' and `-o' for the sake of the "dashmstdout"
4049        # mode.  It turns out that the SunPro C++ compiler does not properly
4050        # handle `-M -o', and we need to detect this.
4051        if depmode=$depmode \
4052           source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4053           depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4054           $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4055             >/dev/null 2>conftest.err &&
4056           grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4057           grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4058           ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4059          # icc doesn't choke on unknown options, it will just issue warnings
4060          # or remarks (even with -Werror).  So we grep stderr for any message
4061          # that says an option was ignored or not supported.
4062          # When given -MP, icc 7.0 and 7.1 complain thusly:
4063          #   icc: Command line warning: ignoring option '-M'; no argument required
4064          # The diagnosis changed in icc 8.0:
4065          #   icc: Command line remark: option '-MP' not supported
4066          if (grep 'ignoring option' conftest.err ||
4067              grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4068            am_cv_CXX_dependencies_compiler_type=$depmode
4069            break
4070          fi
4071        fi
4072      done
4073    
4074      cd ..
4075      rm -rf conftest.dir
4076    else
4077      am_cv_CXX_dependencies_compiler_type=none
4078    fi
4079    
4080    fi
4081    echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4082    echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4083    CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4084    
4085    
4086    
4087    if
4088      test "x$enable_dependency_tracking" != xno \
4089      && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4090      am__fastdepCXX_TRUE=
4091      am__fastdepCXX_FALSE='#'
4092    else
4093      am__fastdepCXX_TRUE='#'
4094      am__fastdepCXX_FALSE=
4095    fi
4096    
4097    
4098  # Check whether --enable-shared or --disable-shared was given.  # Check whether --enable-shared or --disable-shared was given.
4099  if test "${enable_shared+set}" = set; then  if test "${enable_shared+set}" = set; then
4100    enableval="$enable_shared"    enableval="$enable_shared"
4101    p=${PACKAGE-default}    p=${PACKAGE-default}
4102  case $enableval in      case $enableval in
4103  yes) enable_shared=yes ;;      yes) enable_shared=yes ;;
4104  no) enable_shared=no ;;      no) enable_shared=no ;;
4105  *)      *)
4106    enable_shared=no        enable_shared=no
4107    # Look at the argument we got.  We use all the common list separators.        # Look at the argument we got.  We use all the common list separators.
4108    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"        lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4109    for pkg in $enableval; do        for pkg in $enableval; do
4110      if test "X$pkg" = "X$p"; then          IFS="$lt_save_ifs"
4111        enable_shared=yes          if test "X$pkg" = "X$p"; then
4112      fi            enable_shared=yes
4113    done          fi
4114    IFS="$ac_save_ifs"        done
4115    ;;        IFS="$lt_save_ifs"
4116  esac        ;;
4117        esac
4118  else  else
4119    enable_shared=yes    enable_shared=yes
4120  fi;  fi;
4121    
4122  # Check whether --enable-static or --disable-static was given.  # Check whether --enable-static or --disable-static was given.
4123  if test "${enable_static+set}" = set; then  if test "${enable_static+set}" = set; then
4124    enableval="$enable_static"    enableval="$enable_static"
4125    p=${PACKAGE-default}    p=${PACKAGE-default}
4126  case $enableval in      case $enableval in
4127  yes) enable_static=yes ;;      yes) enable_static=yes ;;
4128  no) enable_static=no ;;      no) enable_static=no ;;
4129  *)      *)
4130    enable_static=no       enable_static=no
4131    # Look at the argument we got.  We use all the common list separators.        # Look at the argument we got.  We use all the common list separators.
4132    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"        lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4133    for pkg in $enableval; do        for pkg in $enableval; do
4134      if test "X$pkg" = "X$p"; then          IFS="$lt_save_ifs"
4135        enable_static=yes          if test "X$pkg" = "X$p"; then
4136      fi            enable_static=yes
4137    done          fi
4138    IFS="$ac_save_ifs"        done
4139    ;;        IFS="$lt_save_ifs"
4140  esac        ;;
4141        esac
4142  else  else
4143    enable_static=yes    enable_static=yes
4144  fi;  fi;
4145    
4146  # Check whether --enable-fast-install or --disable-fast-install was given.  # Check whether --enable-fast-install or --disable-fast-install was given.
4147  if test "${enable_fast_install+set}" = set; then  if test "${enable_fast_install+set}" = set; then
4148    enableval="$enable_fast_install"    enableval="$enable_fast_install"
4149    p=${PACKAGE-default}    p=${PACKAGE-default}
4150  case $enableval in      case $enableval in
4151  yes) enable_fast_install=yes ;;      yes) enable_fast_install=yes ;;
4152  no) enable_fast_install=no ;;      no) enable_fast_install=no ;;
4153  *)      *)
4154    enable_fast_install=no        enable_fast_install=no
4155    # Look at the argument we got.  We use all the common list separators.        # Look at the argument we got.  We use all the common list separators.
4156    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"        lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4157    for pkg in $enableval; do        for pkg in $enableval; do
4158      if test "X$pkg" = "X$p"; then          IFS="$lt_save_ifs"
4159        enable_fast_install=yes          if test "X$pkg" = "X$p"; then
4160      fi            enable_fast_install=yes
4161    done          fi
4162    IFS="$ac_save_ifs"        done
4163    ;;        IFS="$lt_save_ifs"
4164  esac        ;;
4165        esac
4166  else  else
4167    enable_fast_install=yes    enable_fast_install=yes
4168  fi;  fi;
 # Find the correct PATH separator.  Usually this is `:', but  
 # DJGPP uses `;' like DOS.  
 if test "X${PATH_SEPARATOR+set}" != Xset; then  
   UNAME=${UNAME-`uname 2>/dev/null`}  
   case X$UNAME in  
     *-DOS) lt_cv_sys_path_separator=';' ;;  
     *)     lt_cv_sys_path_separator=':' ;;  
   esac  
   PATH_SEPARATOR=$lt_cv_sys_path_separator  
 fi  
4169    
4170    echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4171  # Check whether --with-gnu-ld or --without-gnu-ld was given.  echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4172  if test "${with_gnu_ld+set}" = set; then  if test "${lt_cv_path_SED+set}" = set; then
4173    withval="$with_gnu_ld"    echo $ECHO_N "(cached) $ECHO_C" >&6
4174    test "$withval" = no || with_gnu_ld=yes  else
4175  else    # Loop through the user's path and test for sed and gsed.
4176    # Then use that list of sed's as ones to test for truncation.
4177    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178    for as_dir in $PATH
4179    do
4180      IFS=$as_save_IFS
4181      test -z "$as_dir" && as_dir=.
4182      for lt_ac_prog in sed gsed; do
4183        for ac_exec_ext in '' $ac_executable_extensions; do
4184          if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4185            lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4186          fi
4187        done
4188      done
4189    done
4190    lt_ac_max=0
4191    lt_ac_count=0
4192    # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4193    # along with /bin/sed that truncates output.
4194    for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4195      test ! -f $lt_ac_sed && break
4196      cat /dev/null > conftest.in
4197      lt_ac_count=0
4198      echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4199      # Check for GNU sed and select it if it is found.
4200      if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4201        lt_cv_path_SED=$lt_ac_sed
4202        break
4203      fi
4204      while true; do
4205        cat conftest.in conftest.in >conftest.tmp
4206        mv conftest.tmp conftest.in
4207        cp conftest.in conftest.nl
4208        echo >>conftest.nl
4209        $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4210        cmp -s conftest.out conftest.nl || break
4211        # 10000 chars as input seems more than enough
4212        test $lt_ac_count -gt 10 && break
4213        lt_ac_count=`expr $lt_ac_count + 1`
4214        if test $lt_ac_count -gt $lt_ac_max; then
4215          lt_ac_max=$lt_ac_count
4216          lt_cv_path_SED=$lt_ac_sed
4217        fi
4218      done
4219    done
4220    SED=$lt_cv_path_SED
4221    
4222    fi
4223    
4224    echo "$as_me:$LINENO: result: $SED" >&5
4225    echo "${ECHO_T}$SED" >&6
4226    
4227    echo "$as_me:$LINENO: checking for egrep" >&5
4228    echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4229    if test "${ac_cv_prog_egrep+set}" = set; then
4230      echo $ECHO_N "(cached) $ECHO_C" >&6
4231    else
4232      if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4233        then ac_cv_prog_egrep='grep -E'
4234        else ac_cv_prog_egrep='egrep'
4235        fi
4236    fi
4237    echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4238    echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4239     EGREP=$ac_cv_prog_egrep
4240    
4241    
4242    
4243    # Check whether --with-gnu-ld or --without-gnu-ld was given.
4244    if test "${with_gnu_ld+set}" = set; then
4245      withval="$with_gnu_ld"
4246      test "$withval" = no || with_gnu_ld=yes
4247    else
4248    with_gnu_ld=no    with_gnu_ld=no
4249  fi;  fi;
4250  ac_prog=ld  ac_prog=ld
4251  if test "$GCC" = yes; then  if test "$GCC" = yes; then
4252    # Check if gcc -print-prog-name=ld gives a path.    # Check if gcc -print-prog-name=ld gives a path.
4253    echo "$as_me:$LINENO: checking for ld used by GCC" >&5    echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4254  echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6  echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4255    case $host in    case $host in
4256    *-*-mingw*)    *-*-mingw*)
4257      # gcc leaves a trailing carriage return which upsets mingw      # gcc leaves a trailing carriage return which upsets mingw
# Line 3771  echo $ECHO_N "checking for ld used by GC Line 4261  echo $ECHO_N "checking for ld used by GC
4261    esac    esac
4262    case $ac_prog in    case $ac_prog in
4263      # Accept absolute paths.      # Accept absolute paths.
4264      [\\/]* | [A-Za-z]:[\\/]*)      [\\/]* | ?:[\\/]*)
4265        re_direlt='/[^/][^/]*/\.\./'        re_direlt='/[^/][^/]*/\.\./'
4266        # Canonicalize the path of ld        # Canonicalize the pathname of ld
4267        ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`        ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4268        while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do        while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4269          ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`          ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4270        done        done
4271        test -z "$LD" && LD="$ac_prog"        test -z "$LD" && LD="$ac_prog"
4272        ;;        ;;
# Line 3800  if test "${lt_cv_path_LD+set}" = set; th Line 4290  if test "${lt_cv_path_LD+set}" = set; th
4290    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4291  else  else
4292    if test -z "$LD"; then    if test -z "$LD"; then
4293    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4294    for ac_dir in $PATH; do    for ac_dir in $PATH; do
4295        IFS="$lt_save_ifs"
4296      test -z "$ac_dir" && ac_dir=.      test -z "$ac_dir" && ac_dir=.
4297      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4298        lt_cv_path_LD="$ac_dir/$ac_prog"        lt_cv_path_LD="$ac_dir/$ac_prog"
4299        # Check to see if the program is GNU ld.  I'd rather use --version,        # Check to see if the program is GNU ld.  I'd rather use --version,
4300        # but apparently some GNU ld's only accept -v.        # but apparently some GNU ld's only accept -v.
4301        # Break only if it was the GNU/non-GNU ld that we prefer.        # Break only if it was the GNU/non-GNU ld that we prefer.
4302        if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then        case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4303          *GNU* | *'with BFD'*)
4304          test "$with_gnu_ld" != no && break          test "$with_gnu_ld" != no && break
4305        else          ;;
4306          *)
4307          test "$with_gnu_ld" != yes && break          test "$with_gnu_ld" != yes && break
4308        fi          ;;
4309          esac
4310      fi      fi
4311    done    done
4312    IFS="$ac_save_ifs"    IFS="$lt_save_ifs"
4313  else  else
4314    lt_cv_path_LD="$LD" # Let the user override the test with a path.    lt_cv_path_LD="$LD" # Let the user override the test with a path.
4315  fi  fi
# Line 3838  if test "${lt_cv_prog_gnu_ld+set}" = set Line 4332  if test "${lt_cv_prog_gnu_ld+set}" = set
4332    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
4333  else  else
4334    # I'd rather use --version here, but apparently some GNU ld's only accept -v.    # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4335  if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then  case `$LD -v 2>&1 </dev/null` in
4336    *GNU* | *'with BFD'*)
4337    lt_cv_prog_gnu_ld=yes    lt_cv_prog_gnu_ld=yes
4338  else    ;;
4339    *)
4340    lt_cv_prog_gnu_ld=no    lt_cv_prog_gnu_ld=no
4341  fi    ;;
4342    esac
4343  fi  fi
4344  echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5  echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4345  echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6  echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
# Line 3859  fi Line 4356  fi
4356  echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5  echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4357  echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6  echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4358  reload_flag=$lt_cv_ld_reload_flag  reload_flag=$lt_cv_ld_reload_flag
4359  test -n "$reload_flag" && reload_flag=" $reload_flag"  case $reload_flag in
4360    "" | " "*) ;;
4361    *) reload_flag=" $reload_flag" ;;
4362    esac
4363    reload_cmds='$LD$reload_flag -o $output$reload_objs'
4364    
4365  echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5  echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4366  echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6  echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
# Line 3870  else Line 4371  else
4371    # Let the user override the test.    # Let the user override the test.
4372    lt_cv_path_NM="$NM"    lt_cv_path_NM="$NM"
4373  else  else
4374    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4375    for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do    for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4376        IFS="$lt_save_ifs"
4377      test -z "$ac_dir" && ac_dir=.      test -z "$ac_dir" && ac_dir=.
4378      tmp_nm=$ac_dir/${ac_tool_prefix}nm      tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4379      if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4380        # Check to see if the nm accepts a BSD-compat flag.        # Check to see if the nm accepts a BSD-compat flag.
4381        # Adding the `sed 1q' prevents false positives on HP-UX, which says:        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4382        #   nm: unknown option "B" ignored        #   nm: unknown option "B" ignored
4383        # Tru64's nm complains that /dev/null is an invalid object file        # Tru64's nm complains that /dev/null is an invalid object file
4384        if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4385          */dev/null* | *'Invalid file or object type'*)
4386          lt_cv_path_NM="$tmp_nm -B"          lt_cv_path_NM="$tmp_nm -B"
4387          break          break
4388        elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then          ;;
4389          lt_cv_path_NM="$tmp_nm -p"        *)
4390          break          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4391        else          */dev/null*)
4392          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but            lt_cv_path_NM="$tmp_nm -p"
4393          continue # so that we can try to find one that supports BSD flags            break
4394        fi            ;;
4395            *)
4396              lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4397              continue # so that we can try to find one that supports BSD flags
4398              ;;
4399            esac
4400          esac
4401      fi      fi
4402    done    done
4403    IFS="$ac_save_ifs"    IFS="$lt_save_ifs"
4404    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm    test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4405  fi  fi
4406  fi  fi
4407    echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4408    echo "${ECHO_T}$lt_cv_path_NM" >&6
4409  NM="$lt_cv_path_NM"  NM="$lt_cv_path_NM"
 echo "$as_me:$LINENO: result: $NM" >&5  
 echo "${ECHO_T}$NM" >&6  
   
 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5  
 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6  
 if test "${lt_cv_path_SED+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   # Loop through the user's path and test for sed and gsed.  
 # Then use that list of sed's as ones to test for truncation.  
 as_executable_p="test -f"  
 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in $PATH  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
   for ac_prog in sed gsed; do  
     for ac_exec_ext in '' $ac_executable_extensions; do  
       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then  
         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"  
       fi  
     done  
   done  
 done  
   
   # Create a temporary directory, and hook for its removal unless debugging.  
 $debug ||  
 {  
   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0  
   trap '{ (exit 1); exit 1; }' 1 2 13 15  
 }  
   
 # Create a (secure) tmp directory for tmp files.  
 : ${TMPDIR=/tmp}  
 {  
   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&  
   test -n "$tmp" && test -d "$tmp"  
 }  ||  
 {  
   tmp=$TMPDIR/sed$$-$RANDOM  
   (umask 077 && mkdir $tmp)  
 } ||  
 {  
    echo "$me: cannot create a temporary directory in $TMPDIR" >&2  
    { (exit 1); exit 1; }  
 }  
   _max=0  
   _count=0  
   # Add /usr/xpg4/bin/sed as it is typically found on Solaris  
   # along with /bin/sed that truncates output.  
   for _sed in $_sed_list /usr/xpg4/bin/sed; do  
     test ! -f ${_sed} && break  
     cat /dev/null > "$tmp/sed.in"  
     _count=0  
     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"  
     # Check for GNU sed and select it if it is found.  
     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then  
       lt_cv_path_SED=${_sed}  
       break  
     fi  
     while true; do  
       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"  
       mv "$tmp/sed.tmp" "$tmp/sed.in"  
       cp "$tmp/sed.in" "$tmp/sed.nl"  
       echo >>"$tmp/sed.nl"  
       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break  
       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break  
       # 40000 chars as input seems more than enough  
       test $_count -gt 10 && break  
       _count=`expr $_count + 1`  
       if test $_count -gt $_max; then  
         _max=$_count  
         lt_cv_path_SED=$_sed  
       fi  
     done  
   done  
   rm -rf "$tmp"  
   
 fi  
   
 if test "X$SED" != "X"; then  
   lt_cv_path_SED=$SED  
 else  
   SED=$lt_cv_path_SED  
 fi  
 echo "$as_me:$LINENO: result: $SED" >&5  
 echo "${ECHO_T}$SED" >&6  
4410    
4411  echo "$as_me:$LINENO: checking whether ln -s works" >&5  echo "$as_me:$LINENO: checking whether ln -s works" >&5
4412  echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6  echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
# Line 4011  lt_cv_deplibs_check_method='unknown' Line 4434  lt_cv_deplibs_check_method='unknown'
4434  # 'pass_all' -- all dependencies passed with no checks.  # 'pass_all' -- all dependencies passed with no checks.
4435  # 'test_compile' -- check by making test program.  # 'test_compile' -- check by making test program.
4436  # 'file_magic [[regex]]' -- check by looking for files in library path  # 'file_magic [[regex]]' -- check by looking for files in library path
4437  # which responds to the $file_magic_cmd with a given egrep regex.  # which responds to the $file_magic_cmd with a given extended regex.
4438  # If you have `file' or equivalent on your system and you're not sure  # If you have `file' or equivalent on your system and you're not sure
4439  # whether `pass_all' will *always* work, you probably want this one.  # whether `pass_all' will *always* work, you probably want this one.
4440    
# Line 4030  bsdi4*) Line 4453  bsdi4*)
4453    lt_cv_file_magic_test_file=/shlib/libc.so    lt_cv_file_magic_test_file=/shlib/libc.so
4454    ;;    ;;
4455    
4456  cygwin* | mingw* | pw32*)  cygwin*)
4457      # func_win32_libid is a shell function defined in ltmain.sh
4458      lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4459      lt_cv_file_magic_cmd='func_win32_libid'
4460      ;;
4461    
4462    mingw* | pw32*)
4463      # Base MSYS/MinGW do not provide the 'file' command needed by
4464      # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4465    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4466    lt_cv_file_magic_cmd='$OBJDUMP -f'    lt_cv_file_magic_cmd='$OBJDUMP -f'
4467    ;;    ;;
4468    
4469  darwin* | rhapsody*)  darwin* | rhapsody*)
4470    lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'    lt_cv_deplibs_check_method=pass_all
   lt_cv_file_magic_cmd='/usr/bin/file -L'  
   case "$host_os" in  
   rhapsody* | darwin1.[012])  
     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`  
     ;;  
   *) # Darwin 1.3 on  
     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'  
     ;;  
   esac  
4471    ;;    ;;
4472    
4473  freebsd*)  freebsd* | kfreebsd*-gnu)
4474    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4475      case $host_cpu in      case $host_cpu in
4476      i*86 )      i*86 )
# Line 4068  gnu*) Line 4490  gnu*)
4490    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
4491    ;;    ;;
4492    
4493  hpux10.20*|hpux11*)  hpux10.20* | hpux11*)
   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'  
4494    lt_cv_file_magic_cmd=/usr/bin/file    lt_cv_file_magic_cmd=/usr/bin/file
4495    lt_cv_file_magic_test_file=/usr/lib/libc.sl    case "$host_cpu" in
4496    ;;    ia64*)
4497        lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4498  irix5* | irix6* | nonstopux*)      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4499    case $host_os in      ;;
4500    irix5* | nonstopux*)    hppa*64*)
4501      # this will be overridden with pass_all, but let us keep it just in case      lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4502      lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"      lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4503      ;;      ;;
4504    *)    *)
4505      case $LD in      lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4506      *-32|*"-32 ") libmagic=32-bit;;      lt_cv_file_magic_test_file=/usr/lib/libc.sl
     *-n32|*"-n32 ") libmagic=N32;;  
     *-64|*"-64 ") libmagic=64-bit;;  
     *) libmagic=never-match;;  
     esac  
     # this will be overridden with pass_all, but let us keep it just in case  
     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"  
4507      ;;      ;;
4508    esac    esac
4509    lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`    ;;
4510    
4511    irix5* | irix6* | nonstopux*)
4512      case $LD in
4513      *-32|*"-32 ") libmagic=32-bit;;
4514      *-n32|*"-n32 ") libmagic=N32;;
4515      *-64|*"-64 ") libmagic=64-bit;;
4516      *) libmagic=never-match;;
4517      esac
4518    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
4519    ;;    ;;
4520    
4521  # This must be Linux ELF.  # This must be Linux ELF.
4522  linux-gnu*)  linux*)
4523    case $host_cpu in    case $host_cpu in
4524    alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | x86_64*)    alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
4525      lt_cv_deplibs_check_method=pass_all ;;      lt_cv_deplibs_check_method=pass_all ;;
4526    *)    *)
4527      # glibc up to 2.1.1 does not perform some relocations on ARM      # glibc up to 2.1.1 does not perform some relocations on ARM
4528        # this will be overridden with pass_all, but let us keep it just in case
4529      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4530    esac    esac
4531    lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`    lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4532      lt_cv_deplibs_check_method=pass_all
4533    ;;    ;;
4534    
4535  netbsd*)  netbsd*)
4536    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4537      lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4538    else    else
4539      lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'      lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4540    fi    fi
4541    ;;    ;;
4542    
# Line 4121  newos6*) Line 4546  newos6*)
4546    lt_cv_file_magic_test_file=/usr/lib/libnls.so    lt_cv_file_magic_test_file=/usr/lib/libnls.so
4547    ;;    ;;
4548    
4549    nto-qnx*)
4550      lt_cv_deplibs_check_method=unknown
4551      ;;
4552    
4553  openbsd*)  openbsd*)
4554    lt_cv_file_magic_cmd=/usr/bin/file    lt_cv_file_magic_cmd=/usr/bin/file
4555    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
# Line 4132  openbsd*) Line 4561  openbsd*)
4561    ;;    ;;
4562    
4563  osf3* | osf4* | osf5*)  osf3* | osf4* | osf5*)
   # this will be overridden with pass_all, but let us keep it just in case  
   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'  
   lt_cv_file_magic_test_file=/shlib/libc.so  
4564    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
4565    ;;    ;;
4566    
# Line 4144  sco3.2v5*) Line 4570  sco3.2v5*)
4570    
4571  solaris*)  solaris*)
4572    lt_cv_deplibs_check_method=pass_all    lt_cv_deplibs_check_method=pass_all
   lt_cv_file_magic_test_file=/lib/libc.so  
   ;;  
   
 sysv5uw[78]* | sysv4*uw2*)  
   lt_cv_deplibs_check_method=pass_all  
4573    ;;    ;;
4574    
4575  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
# Line 4174  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) Line 4595  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4595      ;;      ;;
4596    esac    esac
4597    ;;    ;;
4598    
4599    sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4600      lt_cv_deplibs_check_method=pass_all
4601      ;;
4602  esac  esac
4603    
4604  fi  fi
# Line 4181  echo "$as_me:$LINENO: result: $lt_cv_dep Line 4606  echo "$as_me:$LINENO: result: $lt_cv_dep
4606  echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6  echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4607  file_magic_cmd=$lt_cv_file_magic_cmd  file_magic_cmd=$lt_cv_file_magic_cmd
4608  deplibs_check_method=$lt_cv_deplibs_check_method  deplibs_check_method=$lt_cv_deplibs_check_method
4609    test -z "$deplibs_check_method" && deplibs_check_method=unknown
4610    
4611    
4612    
4613    
4614    # If no C compiler was specified, use CC.
4615    LTCC=${LTCC-"$CC"}
4616    
4617    # Allow CC to be a program name with arguments.
4618    compiler=$CC
4619    
4620    
4621    # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4622    if test "${enable_libtool_lock+set}" = set; then
4623      enableval="$enable_libtool_lock"
4624    
4625  # Check for command to grab the raw symbol name followed by C symbol from nm.  fi;
4626  echo "$as_me:$LINENO: checking command to parse $NM output" >&5  test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6  
 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   
 # These are sane defaults that work on at least a few old systems.  
 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]  
   
 # Character class describing NM global symbol codes.  
 symcode='[BCDEGRST]'  
   
 # Regexp to match symbols that can be accessed directly from C.  
 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'  
   
 # Transform the above into a raw symbol and a C symbol.  
 symxfrm='\1 \2\3 \3'  
   
 # Transform an extracted symbol line into a proper C declaration  
 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"  
   
 # Transform an extracted symbol line into symbol name and symbol address  
 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"  
   
 # Define system-specific variables.  
 case $host_os in  
 aix*)  
   symcode='[BCDT]'  
   ;;  
 cygwin* | mingw* | pw32*)  
   symcode='[ABCDGISTW]'  
   ;;  
 hpux*) # Its linker distinguishes data from code symbols  
   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"  
   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"  
   ;;  
 irix* | nonstopux*)  
   symcode='[BCDEGRST]'  
   ;;  
 osf*)  
   symcode='[BCDEGQRST]'  
   ;;  
 solaris* | sysv5*)  
   symcode='[BDT]'  
   ;;  
 sysv4)  
   symcode='[DFNSTU]'  
   ;;  
 esac  
   
 # Handle CRLF in mingw tool chain  
 opt_cr=  
 case $host_os in  
 mingw*)  
   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp  
   ;;  
 esac  
   
 # If we're using GNU nm, then use its standard symbol codes.  
 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then  
   symcode='[ABCDGISTW]'  
 fi  
   
 # Try without a prefix undercore, then with it.  
 for ac_symprfx in "" "_"; do  
   
   # Write the raw and C identifiers.  
 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"  
   
   # Check to see that the pipe works correctly.  
   pipe_works=no  
   rm -f conftest*  
   cat > conftest.$ac_ext <<EOF  
 #ifdef __cplusplus  
 extern "C" {  
 #endif  
 char nm_test_var;  
 void nm_test_func(){}  
 #ifdef __cplusplus  
 }  
 #endif  
 int main(){nm_test_var='a';nm_test_func();return(0);}  
 EOF  
4627    
4628    # Some flags need to be propagated to the compiler or linker for good
4629    # libtool support.
4630    case $host in
4631    ia64-*-hpux*)
4632      # Find out which ABI we are using.
4633      echo 'int i;' > conftest.$ac_ext
4634    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4635    (eval $ac_compile) 2>&5    (eval $ac_compile) 2>&5
4636    ac_status=$?    ac_status=$?
4637    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638    (exit $ac_status); }; then    (exit $ac_status); }; then
4639      # Now try to grab the symbols.      case `/usr/bin/file conftest.$ac_objext` in
4640      nlist=conftest.nm      *ELF-32*)
4641      if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5        HPUX_IA64_MODE="32"
4642    (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5        ;;
4643        *ELF-64*)
4644          HPUX_IA64_MODE="64"
4645          ;;
4646        esac
4647      fi
4648      rm -rf conftest*
4649      ;;
4650    *-*-irix6*)
4651      # Find out which ABI we are using.
4652      echo '#line 4652 "configure"' > conftest.$ac_ext
4653      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654      (eval $ac_compile) 2>&5
4655    ac_status=$?    ac_status=$?
4656    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657    (exit $ac_status); } && test -s "$nlist"; then    (exit $ac_status); }; then
4658        # Try sorting and uniquifying the output.     if test "$lt_cv_prog_gnu_ld" = yes; then
4659        if sort "$nlist" | uniq > "$nlist"T; then      case `/usr/bin/file conftest.$ac_objext` in
4660          mv -f "$nlist"T "$nlist"      *32-bit*)
4661        else        LD="${LD-ld} -melf32bsmip"
4662          rm -f "$nlist"T        ;;
4663        fi      *N32*)
4664          LD="${LD-ld} -melf32bmipn32"
4665          ;;
4666        *64-bit*)
4667          LD="${LD-ld} -melf64bmip"
4668          ;;
4669        esac
4670       else
4671        case `/usr/bin/file conftest.$ac_objext` in
4672        *32-bit*)
4673          LD="${LD-ld} -32"
4674          ;;
4675        *N32*)
4676          LD="${LD-ld} -n32"
4677          ;;
4678        *64-bit*)
4679          LD="${LD-ld} -64"
4680          ;;
4681        esac
4682       fi
4683      fi
4684      rm -rf conftest*
4685      ;;
4686    
4687        # Make sure that we snagged all the symbols we need.  x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4688        if egrep ' nm_test_var$' "$nlist" >/dev/null; then    # Find out which ABI we are using.
4689          if egrep ' nm_test_func$' "$nlist" >/dev/null; then    echo 'int i;' > conftest.$ac_ext
4690            cat <<EOF > conftest.$ac_ext    lt_cv_cc_lib64_suffix=no
4691  #ifdef __cplusplus    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4692  extern "C" {    (eval $ac_compile) 2>&5
4693  #endif    ac_status=$?
4694      echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695      (exit $ac_status); }; then
4696        case "`/usr/bin/file conftest.$ac_objext`" in
4697        *32-bit*)
4698          case $host in
4699            x86_64-*linux*)
4700              LD="${LD-ld} -m elf_i386"
4701              ;;
4702            ppc64-*linux*|powerpc64-*linux*)
4703              LD="${LD-ld} -m elf32ppclinux"
4704              ;;
4705            s390x-*linux*)
4706              LD="${LD-ld} -m elf_s390"
4707              ;;
4708            sparc64-*linux*)
4709              LD="${LD-ld} -m elf32_sparc"
4710              ;;
4711          esac
4712          ;;
4713        *64-bit*)
4714          case $host in
4715            x86_64-*linux*)
4716              LD="${LD-ld} -m elf_x86_64"
4717              lt_cv_cc_lib64_suffix=yes
4718              ;;
4719            ppc*-*linux*|powerpc*-*linux*)
4720              LD="${LD-ld} -m elf64ppc"
4721              lt_cv_cc_lib64_suffix=yes
4722              ;;
4723            s390*-*linux*)
4724              LD="${LD-ld} -m elf64_s390"
4725              lt_cv_cc_lib64_suffix=yes
4726              ;;
4727            sparc*-*linux*)
4728              LD="${LD-ld} -m elf64_sparc"
4729              lt_cv_cc_lib64_suffix=yes
4730              ;;
4731          esac
4732          ;;
4733        esac
4734      fi
4735      rm -rf conftest*
4736      ;;
4737    
4738  EOF  *-*-sco3.2v5*)
4739            # Now generate the symbol file.    # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4740            eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'    SAVE_CFLAGS="$CFLAGS"
4741      CFLAGS="$CFLAGS -belf"
4742      echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4743    echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4744    if test "${lt_cv_cc_needs_belf+set}" = set; then
4745      echo $ECHO_N "(cached) $ECHO_C" >&6
4746    else
4747      ac_ext=c
4748    ac_cpp='$CPP $CPPFLAGS'
4749    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4750    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4751    ac_compiler_gnu=$ac_cv_c_compiler_gnu
4752    
4753            cat <<EOF >> conftest.$ac_ext       cat >conftest.$ac_ext <<_ACEOF
4754  #if defined (__STDC__) && __STDC__  /* confdefs.h.  */
4755  # define lt_ptr void *  _ACEOF
4756  #else  cat confdefs.h >>conftest.$ac_ext
4757  # define lt_ptr char *  cat >>conftest.$ac_ext <<_ACEOF
4758  # define const  /* end confdefs.h.  */
 #endif  
4759    
4760  /* The mapping between symbol names and symbols. */  int
4761  const struct {  main ()
   const char *name;  
   lt_ptr address;  
 }  
 lt_preloaded_symbols[] =  
4762  {  {
 EOF  
           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext  
           cat <<\EOF >> conftest.$ac_ext  
   {0, (lt_ptr) 0}  
 };  
4763    
4764  #ifdef __cplusplus    ;
4765      return 0;
4766  }  }
4767  #endif  _ACEOF
4768  EOF  rm -f conftest.$ac_objext conftest$ac_exeext
4769            # Now try linking the two files.  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4770            mv conftest.$ac_objext conftstm.$ac_objext    (eval $ac_link) 2>conftest.er1
           save_LIBS="$LIBS"  
           save_CFLAGS="$CFLAGS"  
           LIBS="conftstm.$ac_objext"  
           CFLAGS="$CFLAGS$no_builtin_flag"  
           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>&5  
4771    ac_status=$?    ac_status=$?
4772      grep -v '^ *+' conftest.er1 >conftest.err
4773      rm -f conftest.er1
4774      cat conftest.err >&5
4775    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776    (exit $ac_status); } && test -s conftest$ac_exeext; then    (exit $ac_status); } &&
4777              pipe_works=yes           { ac_try='test -z "$ac_c_werror_flag"
4778            fi                           || test ! -s conftest.err'
4779            LIBS="$save_LIBS"    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780            CFLAGS="$save_CFLAGS"    (eval $ac_try) 2>&5
4781          else    ac_status=$?
4782            echo "cannot find nm_test_func in $nlist" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783          fi    (exit $ac_status); }; } &&
4784        else           { ac_try='test -s conftest$ac_exeext'
4785          echo "cannot find nm_test_var in $nlist" >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786        fi    (eval $ac_try) 2>&5
4787      else    ac_status=$?
4788        echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789      fi    (exit $ac_status); }; }; then
4790    else    lt_cv_cc_needs_belf=yes
4791      echo "$progname: failed program was:" >&5  else
4792      cat conftest.$ac_ext >&5    echo "$as_me: failed program was:" >&5
4793    fi  sed 's/^/| /' conftest.$ac_ext >&5
   rm -f conftest* conftst*  
   
   # Do not use the global_symbol_pipe unless it works.  
   if test "$pipe_works" = yes; then  
     break  
   else  
     lt_cv_sys_global_symbol_pipe=  
   fi  
 done  
4794    
4795    lt_cv_cc_needs_belf=no
4796  fi  fi
4797    rm -f conftest.err conftest.$ac_objext \
4798          conftest$ac_exeext conftest.$ac_ext
4799         ac_ext=c
4800    ac_cpp='$CPP $CPPFLAGS'
4801    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803    ac_compiler_gnu=$ac_cv_c_compiler_gnu
4804    
 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"  
 if test -z "$lt_cv_sys_global_symbol_pipe"; then  
   global_symbol_to_cdecl=  
   global_symbol_to_c_name_address=  
 else  
   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"  
   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"  
 fi  
 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";  
 then  
   echo "$as_me:$LINENO: result: failed" >&5  
 echo "${ECHO_T}failed" >&6  
 else  
   echo "$as_me:$LINENO: result: ok" >&5  
 echo "${ECHO_T}ok" >&6  
4805  fi  fi
4806    echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4807    echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4808      if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4809        # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4810        CFLAGS="$SAVE_CFLAGS"
4811      fi
4812      ;;
4813    
4814    esac
4815    
4816    need_locks="$enable_libtool_lock"
4817    
4818    
4819  ac_ext=c  ac_ext=c
4820  ac_cpp='$CPP $CPPFLAGS'  ac_cpp='$CPP $CPPFLAGS'
# Line 4622  ac_link='$CC -o conftest$ac_exeext $CFLA Line 5051  ac_link='$CC -o conftest$ac_exeext $CFLA
5051  ac_compiler_gnu=$ac_cv_c_compiler_gnu  ac_compiler_gnu=$ac_cv_c_compiler_gnu
5052    
5053    
 echo "$as_me:$LINENO: checking for egrep" >&5  
 echo $ECHO_N "checking for egrep... $ECHO_C" >&6  
 if test "${ac_cv_prog_egrep+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   if echo a | (grep -E '(a|b)') >/dev/null 2>&1  
     then ac_cv_prog_egrep='grep -E'  
     else ac_cv_prog_egrep='egrep'  
     fi  
 fi  
 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5  
 echo "${ECHO_T}$ac_cv_prog_egrep" >&6  
  EGREP=$ac_cv_prog_egrep  
   
   
5054  echo "$as_me:$LINENO: checking for ANSI C header files" >&5  echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5055  echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6  echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5056  if test "${ac_cv_header_stdc+set}" = set; then  if test "${ac_cv_header_stdc+set}" = set; then
# Line 5025  fi Line 5439  fi
5439    
5440  done  done
5441    
5442    ac_ext=cc
5443    ac_cpp='$CXXCPP $CPPFLAGS'
5444    ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5445    ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5446    ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5447  # Only perform the check for file, if the check method requires it  echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5448  case $deplibs_check_method in  echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5449  file_magic*)  if test -z "$CXXCPP"; then
5450    if test "$file_magic_cmd" = '$MAGIC_CMD'; then    if test "${ac_cv_prog_CXXCPP+set}" = set; then
     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5  
 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6  
 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then  
5451    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5452  else  else
5453    case $MAGIC_CMD in        # Double quotes because CXXCPP needs to be expanded
5454    /*)      for CXXCPP in "$CXX -E" "/lib/cpp"
5455    lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.      do
5456    ;;        ac_preproc_ok=false
5457    ?:/*)  for ac_cxx_preproc_warn_flag in '' yes
5458    lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.  do
5459    ;;    # Use a header file that comes with gcc, so configuring glibc
5460    *)    # with a fresh cross-compiler works.
5461    ac_save_MAGIC_CMD="$MAGIC_CMD"    # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5462    IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"    # <limits.h> exists even on freestanding compilers.
5463    ac_dummy="/usr/bin:$PATH"    # On the NeXT, cc -E runs the code through the compiler's parser,
5464    for ac_dir in $ac_dummy; do    # not just through cpp. "Syntax error" is here to catch this case.
5465      test -z "$ac_dir" && ac_dir=.    cat >conftest.$ac_ext <<_ACEOF
5466      if test -f $ac_dir/${ac_tool_prefix}file; then  /* confdefs.h.  */
5467        lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"  _ACEOF
5468        if test -n "$file_magic_test_file"; then  cat confdefs.h >>conftest.$ac_ext
5469          case $deplibs_check_method in  cat >>conftest.$ac_ext <<_ACEOF
5470          "file_magic "*)  /* end confdefs.h.  */
5471            file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"  #ifdef __STDC__
5472            MAGIC_CMD="$lt_cv_path_MAGIC_CMD"  # include <limits.h>
5473            if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |  #else
5474              egrep "$file_magic_regex" > /dev/null; then  # include <assert.h>
5475              :  #endif
5476            else                       Syntax error
5477              cat <<EOF 1>&2  _ACEOF
5478    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5479  *** Warning: the command libtool uses to detect shared libraries,    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5480  *** $file_magic_cmd, produces output that libtool cannot recognize.    ac_status=$?
5481  *** The result is that libtool may fail to recognize shared libraries    grep -v '^ *+' conftest.er1 >conftest.err
5482  *** as such.  This will affect the creation of libtool libraries that    rm -f conftest.er1
5483  *** depend on shared libraries, but programs linked with such libtool    cat conftest.err >&5
5484  *** libraries will work regardless of this problem.  Nevertheless, you    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485  *** may want to report the problem to your system manager and/or to    (exit $ac_status); } >/dev/null; then
5486  *** bug-libtool@gnu.org    if test -s conftest.err; then
5487        ac_cpp_err=$ac_cxx_preproc_warn_flag
5488  EOF      ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5489            fi ;;    else
5490          esac      ac_cpp_err=
5491        fi    fi
       break  
     fi  
   done  
   IFS="$ac_save_ifs"  
   MAGIC_CMD="$ac_save_MAGIC_CMD"  
   ;;  
 esac  
 fi  
   
 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"  
 if test -n "$MAGIC_CMD"; then  
   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5  
 echo "${ECHO_T}$MAGIC_CMD" >&6  
5492  else  else
5493    echo "$as_me:$LINENO: result: no" >&5    ac_cpp_err=yes
 echo "${ECHO_T}no" >&6  
5494  fi  fi
5495    if test -z "$ac_cpp_err"; then
5496  if test -z "$lt_cv_path_MAGIC_CMD"; then    :
   if test -n "$ac_tool_prefix"; then  
     echo "$as_me:$LINENO: checking for file" >&5  
 echo $ECHO_N "checking for file... $ECHO_C" >&6  
 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
5497  else  else
5498    case $MAGIC_CMD in    echo "$as_me: failed program was:" >&5
5499    /*)  sed 's/^/| /' conftest.$ac_ext >&5
   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.  
   ;;  
   ?:/*)  
   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.  
   ;;  
   *)  
   ac_save_MAGIC_CMD="$MAGIC_CMD"  
   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"  
   ac_dummy="/usr/bin:$PATH"  
   for ac_dir in $ac_dummy; do  
     test -z "$ac_dir" && ac_dir=.  
     if test -f $ac_dir/file; then  
       lt_cv_path_MAGIC_CMD="$ac_dir/file"  
       if test -n "$file_magic_test_file"; then  
         case $deplibs_check_method in  
         "file_magic "*)  
           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"  
           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"  
           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |  
             egrep "$file_magic_regex" > /dev/null; then  
             :  
           else  
             cat <<EOF 1>&2  
   
 *** Warning: the command libtool uses to detect shared libraries,  
 *** $file_magic_cmd, produces output that libtool cannot recognize.  
 *** The result is that libtool may fail to recognize shared libraries  
 *** as such.  This will affect the creation of libtool libraries that  
 *** depend on shared libraries, but programs linked with such libtool  
 *** libraries will work regardless of this problem.  Nevertheless, you  
 *** may want to report the problem to your system manager and/or to  
 *** bug-libtool@gnu.org  
   
 EOF  
           fi ;;  
         esac  
       fi  
       break  
     fi  
   done  
   IFS="$ac_save_ifs"  
   MAGIC_CMD="$ac_save_MAGIC_CMD"  
   ;;  
 esac  
 fi  
5500    
5501  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"    # Broken: fails on valid input.
5502  if test -n "$MAGIC_CMD"; then  continue
   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5  
 echo "${ECHO_T}$MAGIC_CMD" >&6  
 else  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
5503  fi  fi
5504    rm -f conftest.err conftest.$ac_ext
5505    
5506      # OK, works on sane cases.  Now check whether non-existent headers
5507      # can be detected and how.
5508      cat >conftest.$ac_ext <<_ACEOF
5509    /* confdefs.h.  */
5510    _ACEOF
5511    cat confdefs.h >>conftest.$ac_ext
5512    cat >>conftest.$ac_ext <<_ACEOF
5513    /* end confdefs.h.  */
5514    #include <ac_nonexistent.h>
5515    _ACEOF
5516    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5517      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5518      ac_status=$?
5519      grep -v '^ *+' conftest.er1 >conftest.err
5520      rm -f conftest.er1
5521      cat conftest.err >&5
5522      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523      (exit $ac_status); } >/dev/null; then
5524      if test -s conftest.err; then
5525        ac_cpp_err=$ac_cxx_preproc_warn_flag
5526        ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5527    else    else
5528      MAGIC_CMD=:      ac_cpp_err=
   fi  
 fi  
   
5529    fi    fi
   ;;  
 esac  
   
 if test -n "$ac_tool_prefix"; then  
   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.  
 set dummy ${ac_tool_prefix}ranlib; ac_word=$2  
 echo "$as_me:$LINENO: checking for $ac_word" >&5  
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  
 if test "${ac_cv_prog_RANLIB+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
5530  else  else
5531    if test -n "$RANLIB"; then    ac_cpp_err=yes
5532    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.  fi
5533    if test -z "$ac_cpp_err"; then
5534      # Broken: success on invalid input.
5535    continue
5536  else  else
5537  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    echo "$as_me: failed program was:" >&5
5538  for as_dir in $PATH  sed 's/^/| /' conftest.$ac_ext >&5
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
   for ac_exec_ext in '' $ac_executable_extensions; do  
   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then  
     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"  
     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5  
     break 2  
   fi  
 done  
 done  
5539    
5540      # Passes both tests.
5541    ac_preproc_ok=:
5542    break
5543  fi  fi
5544    rm -f conftest.err conftest.$ac_ext
5545    
5546    done
5547    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5548    rm -f conftest.err conftest.$ac_ext
5549    if $ac_preproc_ok; then
5550      break
5551  fi  fi
5552  RANLIB=$ac_cv_prog_RANLIB  
5553  if test -n "$RANLIB"; then      done
5554    echo "$as_me:$LINENO: result: $RANLIB" >&5      ac_cv_prog_CXXCPP=$CXXCPP
 echo "${ECHO_T}$RANLIB" >&6  
 else  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
 fi  
5555    
5556  fi  fi
5557  if test -z "$ac_cv_prog_RANLIB"; then    CXXCPP=$ac_cv_prog_CXXCPP
   ac_ct_RANLIB=$RANLIB  
   # Extract the first word of "ranlib", so it can be a program name with args.  
 set dummy ranlib; ac_word=$2  
 echo "$as_me:$LINENO: checking for $ac_word" >&5  
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  
 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
5558  else  else
5559    if test -n "$ac_ct_RANLIB"; then    ac_cv_prog_CXXCPP=$CXXCPP
5560    ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.  fi
5561  else  echo "$as_me:$LINENO: result: $CXXCPP" >&5
5562  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  echo "${ECHO_T}$CXXCPP" >&6
5563  for as_dir in $PATH  ac_preproc_ok=false
5564    for ac_cxx_preproc_warn_flag in '' yes
5565  do  do
5566    IFS=$as_save_IFS    # Use a header file that comes with gcc, so configuring glibc
5567    test -z "$as_dir" && as_dir=.    # with a fresh cross-compiler works.
5568    for ac_exec_ext in '' $ac_executable_extensions; do    # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5569    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then    # <limits.h> exists even on freestanding compilers.
5570      ac_cv_prog_ac_ct_RANLIB="ranlib"    # On the NeXT, cc -E runs the code through the compiler's parser,
5571      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5    # not just through cpp. "Syntax error" is here to catch this case.
5572      break 2    cat >conftest.$ac_ext <<_ACEOF
5573    /* confdefs.h.  */
5574    _ACEOF
5575    cat confdefs.h >>conftest.$ac_ext
5576    cat >>conftest.$ac_ext <<_ACEOF
5577    /* end confdefs.h.  */
5578    #ifdef __STDC__
5579    # include <limits.h>
5580    #else
5581    # include <assert.h>
5582    #endif
5583                         Syntax error
5584    _ACEOF
5585    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5586      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5587      ac_status=$?
5588      grep -v '^ *+' conftest.er1 >conftest.err
5589      rm -f conftest.er1
5590      cat conftest.err >&5
5591      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592      (exit $ac_status); } >/dev/null; then
5593      if test -s conftest.err; then
5594        ac_cpp_err=$ac_cxx_preproc_warn_flag
5595        ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5596      else
5597        ac_cpp_err=
5598    fi    fi
 done  
 done  
   
   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"  
 fi  
 fi  
 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB  
 if test -n "$ac_ct_RANLIB"; then  
   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5  
 echo "${ECHO_T}$ac_ct_RANLIB" >&6  
5599  else  else
5600    echo "$as_me:$LINENO: result: no" >&5    ac_cpp_err=yes
 echo "${ECHO_T}no" >&6  
5601  fi  fi
5602    if test -z "$ac_cpp_err"; then
5603    RANLIB=$ac_ct_RANLIB    :
5604  else  else
5605    RANLIB="$ac_cv_prog_RANLIB"    echo "$as_me: failed program was:" >&5
5606    sed 's/^/| /' conftest.$ac_ext >&5
5607    
5608      # Broken: fails on valid input.
5609    continue
5610  fi  fi
5611    rm -f conftest.err conftest.$ac_ext
5612    
5613  if test -n "$ac_tool_prefix"; then    # OK, works on sane cases.  Now check whether non-existent headers
5614    # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.    # can be detected and how.
5615  set dummy ${ac_tool_prefix}strip; ac_word=$2    cat >conftest.$ac_ext <<_ACEOF
5616  echo "$as_me:$LINENO: checking for $ac_word" >&5  /* confdefs.h.  */
5617  echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  _ACEOF
5618  if test "${ac_cv_prog_STRIP+set}" = set; then  cat confdefs.h >>conftest.$ac_ext
5619    cat >>conftest.$ac_ext <<_ACEOF
5620    /* end confdefs.h.  */
5621    #include <ac_nonexistent.h>
5622    _ACEOF
5623    if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5624      (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5625      ac_status=$?
5626      grep -v '^ *+' conftest.er1 >conftest.err
5627      rm -f conftest.er1
5628      cat conftest.err >&5
5629      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630      (exit $ac_status); } >/dev/null; then
5631      if test -s conftest.err; then
5632        ac_cpp_err=$ac_cxx_preproc_warn_flag
5633        ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5634      else
5635        ac_cpp_err=
5636      fi
5637    else
5638      ac_cpp_err=yes
5639    fi
5640    if test -z "$ac_cpp_err"; then
5641      # Broken: success on invalid input.
5642    continue
5643    else
5644      echo "$as_me: failed program was:" >&5
5645    sed 's/^/| /' conftest.$ac_ext >&5
5646    
5647      # Passes both tests.
5648    ac_preproc_ok=:
5649    break
5650    fi
5651    rm -f conftest.err conftest.$ac_ext
5652    
5653    done
5654    # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5655    rm -f conftest.err conftest.$ac_ext
5656    if $ac_preproc_ok; then
5657      :
5658    else
5659      { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5660    See \`config.log' for more details." >&5
5661    echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5662    See \`config.log' for more details." >&2;}
5663       { (exit 1); exit 1; }; }
5664    fi
5665    
5666    ac_ext=cc
5667    ac_cpp='$CXXCPP $CPPFLAGS'
5668    ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5669    ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5670    ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5671    
5672    
5673    
5674    # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5675    
5676    # find the maximum length of command line arguments
5677    echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5678    echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5679    if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5680    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
5681  else  else
5682    if test -n "$STRIP"; then      i=0
5683    ac_cv_prog_STRIP="$STRIP" # Let the user override the test.    teststring="ABCD"
5684    
5685      case $build_os in
5686      msdosdjgpp*)
5687        # On DJGPP, this test can blow up pretty badly due to problems in libc
5688        # (any single argument exceeding 2000 bytes causes a buffer overrun
5689        # during glob expansion).  Even if it were fixed, the result of this
5690        # check would be larger than it should be.
5691        lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5692        ;;
5693    
5694      gnu*)
5695        # Under GNU Hurd, this test is not required because there is
5696        # no limit to the length of command line arguments.
5697        # Libtool will interpret -1 as no limit whatsoever
5698        lt_cv_sys_max_cmd_len=-1;
5699        ;;
5700    
5701      cygwin* | mingw*)
5702        # On Win9x/ME, this test blows up -- it succeeds, but takes
5703        # about 5 minutes as the teststring grows exponentially.
5704        # Worse, since 9x/ME are not pre-emptively multitasking,
5705        # you end up with a "frozen" computer, even though with patience
5706        # the test eventually succeeds (with a max line length of 256k).
5707        # Instead, let's just punt: use the minimum linelength reported by
5708        # all of the supported platforms: 8192 (on NT/2K/XP).
5709        lt_cv_sys_max_cmd_len=8192;
5710        ;;
5711    
5712      amigaos*)
5713        # On AmigaOS with pdksh, this test takes hours, literally.
5714        # So we just punt and use a minimum line length of 8192.
5715        lt_cv_sys_max_cmd_len=8192;
5716        ;;
5717    
5718     *)
5719        # If test is not a shell built-in, we'll probably end up computing a
5720        # maximum length that is only half of the actual maximum length, but
5721        # we can't tell.
5722        while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5723                   = "XX$teststring") >/dev/null 2>&1 &&
5724                new_result=`expr "X$teststring" : ".*" 2>&1` &&
5725                lt_cv_sys_max_cmd_len=$new_result &&
5726                test $i != 17 # 1/2 MB should be enough
5727        do
5728          i=`expr $i + 1`
5729          teststring=$teststring$teststring
5730        done
5731        teststring=
5732        # Add a significant safety factor because C++ compilers can tack on massive
5733        # amounts of additional arguments before passing them to the linker.
5734        # It appears as though 1/2 is a usable value.
5735        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5736        ;;
5737      esac
5738    
5739    fi
5740    
5741    if test -n $lt_cv_sys_max_cmd_len ; then
5742      echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5743    echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5744  else  else
5745  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR    echo "$as_me:$LINENO: result: none" >&5
5746  for as_dir in $PATH  echo "${ECHO_T}none" >&6
5747  do  fi
5748    IFS=$as_save_IFS  
5749    test -z "$as_dir" && as_dir=.  
5750    for ac_exec_ext in '' $ac_executable_extensions; do  
5751    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then  
5752      ac_cv_prog_STRIP="${ac_tool_prefix}strip"  # Check for command to grab the raw symbol name followed by C symbol from nm.
5753      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5  echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5754      break 2  echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5755    if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5756      echo $ECHO_N "(cached) $ECHO_C" >&6
5757    else
5758    
5759    # These are sane defaults that work on at least a few old systems.
5760    # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5761    
5762    # Character class describing NM global symbol codes.
5763    symcode='[BCDEGRST]'
5764    
5765    # Regexp to match symbols that can be accessed directly from C.
5766    sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5767    
5768    # Transform the above into a raw symbol and a C symbol.
5769    symxfrm='\1 \2\3 \3'
5770    
5771    # Transform an extracted symbol line into a proper C declaration
5772    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5773    
5774    # Transform an extracted symbol line into symbol name and symbol address
5775    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'"
5776    
5777    # Define system-specific variables.
5778    case $host_os in
5779    aix*)
5780      symcode='[BCDT]'
5781      ;;
5782    cygwin* | mingw* | pw32*)
5783      symcode='[ABCDGISTW]'
5784      ;;
5785    hpux*) # Its linker distinguishes data from code symbols
5786      if test "$host_cpu" = ia64; then
5787        symcode='[ABCDEGRST]'
5788      fi
5789      lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5790      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'"
5791      ;;
5792    irix* | nonstopux*)
5793      symcode='[BCDEGRST]'
5794      ;;
5795    osf*)
5796      symcode='[BCDEGQRST]'
5797      ;;
5798    solaris* | sysv5*)
5799      symcode='[BDRT]'
5800      ;;
5801    sysv4)
5802      symcode='[DFNSTU]'
5803      ;;
5804    esac
5805    
5806    # Handle CRLF in mingw tool chain
5807    opt_cr=
5808    case $build_os in
5809    mingw*)
5810      opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5811      ;;
5812    esac
5813    
5814    # If we're using GNU nm, then use its standard symbol codes.
5815    case `$NM -V 2>&1` in
5816    *GNU* | *'with BFD'*)
5817      symcode='[ABCDGIRSTW]' ;;
5818    esac
5819    
5820    # Try without a prefix undercore, then with it.
5821    for ac_symprfx in "" "_"; do
5822    
5823      # Write the raw and C identifiers.
5824      lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5825    
5826      # Check to see that the pipe works correctly.
5827      pipe_works=no
5828    
5829      rm -f conftest*
5830      cat > conftest.$ac_ext <<EOF
5831    #ifdef __cplusplus
5832    extern "C" {
5833    #endif
5834    char nm_test_var;
5835    void nm_test_func(){}
5836    #ifdef __cplusplus
5837    }
5838    #endif
5839    int main(){nm_test_var='a';nm_test_func();return(0);}
5840    EOF
5841    
5842      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5843      (eval $ac_compile) 2>&5
5844      ac_status=$?
5845      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846      (exit $ac_status); }; then
5847        # Now try to grab the symbols.
5848        nlist=conftest.nm
5849        if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5850      (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5851      ac_status=$?
5852      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853      (exit $ac_status); } && test -s "$nlist"; then
5854          # Try sorting and uniquifying the output.
5855          if sort "$nlist" | uniq > "$nlist"T; then
5856            mv -f "$nlist"T "$nlist"
5857          else
5858            rm -f "$nlist"T
5859          fi
5860    
5861          # Make sure that we snagged all the symbols we need.
5862          if grep ' nm_test_var$' "$nlist" >/dev/null; then
5863            if grep ' nm_test_func$' "$nlist" >/dev/null; then
5864              cat <<EOF > conftest.$ac_ext
5865    #ifdef __cplusplus
5866    extern "C" {
5867    #endif
5868    
5869    EOF
5870              # Now generate the symbol file.
5871              eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5872    
5873              cat <<EOF >> conftest.$ac_ext
5874    #if defined (__STDC__) && __STDC__
5875    # define lt_ptr_t void *
5876    #else
5877    # define lt_ptr_t char *
5878    # define const
5879    #endif
5880    
5881    /* The mapping between symbol names and symbols. */
5882    const struct {
5883      const char *name;
5884      lt_ptr_t address;
5885    }
5886    lt_preloaded_symbols[] =
5887    {
5888    EOF
5889              $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5890              cat <<\EOF >> conftest.$ac_ext
5891      {0, (lt_ptr_t) 0}
5892    };
5893    
5894    #ifdef __cplusplus
5895    }
5896    #endif
5897    EOF
5898              # Now try linking the two files.
5899              mv conftest.$ac_objext conftstm.$ac_objext
5900              lt_save_LIBS="$LIBS"
5901              lt_save_CFLAGS="$CFLAGS"
5902              LIBS="conftstm.$ac_objext"
5903              CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5904              if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5905      (eval $ac_link) 2>&5
5906      ac_status=$?
5907      echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908      (exit $ac_status); } && test -s conftest${ac_exeext}; then
5909                pipe_works=yes
5910              fi
5911              LIBS="$lt_save_LIBS"
5912              CFLAGS="$lt_save_CFLAGS"
5913            else
5914              echo "cannot find nm_test_func in $nlist" >&5
5915            fi
5916          else
5917            echo "cannot find nm_test_var in $nlist" >&5
5918          fi
5919        else
5920          echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5921        fi
5922      else
5923        echo "$progname: failed program was:" >&5
5924        cat conftest.$ac_ext >&5
5925      fi
5926      rm -f conftest* conftst*
5927    
5928      # Do not use the global_symbol_pipe unless it works.
5929      if test "$pipe_works" = yes; then
5930        break
5931      else
5932        lt_cv_sys_global_symbol_pipe=
5933    fi    fi
5934  done  done
 done  
5935    
5936  fi  fi
5937  fi  
5938  STRIP=$ac_cv_prog_STRIP  if test -z "$lt_cv_sys_global_symbol_pipe"; then
5939  if test -n "$STRIP"; then    lt_cv_sys_global_symbol_to_cdecl=
5940    echo "$as_me:$LINENO: result: $STRIP" >&5  fi
5941  echo "${ECHO_T}$STRIP" >&6  if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5942  else    echo "$as_me:$LINENO: result: failed" >&5
5943    echo "$as_me:$LINENO: result: no" >&5  echo "${ECHO_T}failed" >&6
5944  echo "${ECHO_T}no" >&6  else
5945  fi    echo "$as_me:$LINENO: result: ok" >&5
5946    echo "${ECHO_T}ok" >&6
5947    fi
5948    
5949    echo "$as_me:$LINENO: checking for objdir" >&5
5950    echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5951    if test "${lt_cv_objdir+set}" = set; then
5952      echo $ECHO_N "(cached) $ECHO_C" >&6
5953    else
5954      rm -f .libs 2>/dev/null
5955    mkdir .libs 2>/dev/null
5956    if test -d .libs; then
5957      lt_cv_objdir=.libs
5958    else
5959      # MS-DOS does not allow filenames that begin with a dot.
5960      lt_cv_objdir=_libs
5961    fi
5962    rmdir .libs 2>/dev/null
5963    fi
5964    echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5965    echo "${ECHO_T}$lt_cv_objdir" >&6
5966    objdir=$lt_cv_objdir
5967    
5968    
5969    
5970    
5971    
5972    case $host_os in
5973    aix3*)
5974      # AIX sometimes has problems with the GCC collect2 program.  For some
5975      # reason, if we set the COLLECT_NAMES environment variable, the problems
5976      # vanish in a puff of smoke.
5977      if test "X${COLLECT_NAMES+set}" != Xset; then
5978        COLLECT_NAMES=
5979        export COLLECT_NAMES
5980      fi
5981      ;;
5982    esac
5983    
5984    # Sed substitution that helps us do robust quoting.  It backslashifies
5985    # metacharacters that are still active within double-quoted strings.
5986    Xsed='sed -e s/^X//'
5987    sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5988    
5989    # Same as above, but do not quote variable references.
5990    double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5991    
5992    # Sed substitution to delay expansion of an escaped shell variable in a
5993    # double_quote_subst'ed string.
5994    delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5995    
5996    # Sed substitution to avoid accidental globbing in evaled expressions
5997    no_glob_subst='s/\*/\\\*/g'
5998    
5999    # Constants:
6000    rm="rm -f"
6001    
6002    # Global variables:
6003    default_ofile=libtool
6004    can_build_shared=yes
6005    
6006    # All known linkers require a `.a' archive for static linking (except M$VC,
6007    # which needs '.lib').
6008    libext=a
6009    ltmain="$ac_aux_dir/ltmain.sh"
6010    ofile="$default_ofile"
6011    with_gnu_ld="$lt_cv_prog_gnu_ld"
6012    
6013    if test -n "$ac_tool_prefix"; then
6014      # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6015    set dummy ${ac_tool_prefix}ar; ac_word=$2
6016    echo "$as_me:$LINENO: checking for $ac_word" >&5
6017    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6018    if test "${ac_cv_prog_AR+set}" = set; then
6019      echo $ECHO_N "(cached) $ECHO_C" >&6
6020    else
6021      if test -n "$AR"; then
6022      ac_cv_prog_AR="$AR" # Let the user override the test.
6023    else
6024    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025    for as_dir in $PATH
6026    do
6027      IFS=$as_save_IFS
6028      test -z "$as_dir" && as_dir=.
6029      for ac_exec_ext in '' $ac_executable_extensions; do
6030      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6031        ac_cv_prog_AR="${ac_tool_prefix}ar"
6032        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033        break 2
6034      fi
6035    done
6036    done
6037    
6038    fi
6039    fi
6040    AR=$ac_cv_prog_AR
6041    if test -n "$AR"; then
6042      echo "$as_me:$LINENO: result: $AR" >&5
6043    echo "${ECHO_T}$AR" >&6
6044    else
6045      echo "$as_me:$LINENO: result: no" >&5
6046    echo "${ECHO_T}no" >&6
6047    fi
6048    
6049    fi
6050    if test -z "$ac_cv_prog_AR"; then
6051      ac_ct_AR=$AR
6052      # Extract the first word of "ar", so it can be a program name with args.
6053    set dummy ar; ac_word=$2
6054    echo "$as_me:$LINENO: checking for $ac_word" >&5
6055    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6056    if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6057      echo $ECHO_N "(cached) $ECHO_C" >&6
6058    else
6059      if test -n "$ac_ct_AR"; then
6060      ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6061    else
6062    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063    for as_dir in $PATH
6064    do
6065      IFS=$as_save_IFS
6066      test -z "$as_dir" && as_dir=.
6067      for ac_exec_ext in '' $ac_executable_extensions; do
6068      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6069        ac_cv_prog_ac_ct_AR="ar"
6070        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071        break 2
6072      fi
6073    done
6074    done
6075    
6076      test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6077    fi
6078    fi
6079    ac_ct_AR=$ac_cv_prog_ac_ct_AR
6080    if test -n "$ac_ct_AR"; then
6081      echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6082    echo "${ECHO_T}$ac_ct_AR" >&6
6083    else
6084      echo "$as_me:$LINENO: result: no" >&5
6085    echo "${ECHO_T}no" >&6
6086    fi
6087    
6088      AR=$ac_ct_AR
6089    else
6090      AR="$ac_cv_prog_AR"
6091    fi
6092    
6093    if test -n "$ac_tool_prefix"; then
6094      # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6095    set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6096    echo "$as_me:$LINENO: checking for $ac_word" >&5
6097    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6098    if test "${ac_cv_prog_RANLIB+set}" = set; then
6099      echo $ECHO_N "(cached) $ECHO_C" >&6
6100    else
6101      if test -n "$RANLIB"; then
6102      ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6103    else
6104    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105    for as_dir in $PATH
6106    do
6107      IFS=$as_save_IFS
6108      test -z "$as_dir" && as_dir=.
6109      for ac_exec_ext in '' $ac_executable_extensions; do
6110      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6111        ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6112        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6113        break 2
6114      fi
6115    done
6116    done
6117    
6118    fi
6119    fi
6120    RANLIB=$ac_cv_prog_RANLIB
6121    if test -n "$RANLIB"; then
6122      echo "$as_me:$LINENO: result: $RANLIB" >&5
6123    echo "${ECHO_T}$RANLIB" >&6
6124    else
6125      echo "$as_me:$LINENO: result: no" >&5
6126    echo "${ECHO_T}no" >&6
6127    fi
6128    
6129    fi
6130    if test -z "$ac_cv_prog_RANLIB"; then
6131      ac_ct_RANLIB=$RANLIB
6132      # Extract the first word of "ranlib", so it can be a program name with args.
6133    set dummy ranlib; ac_word=$2
6134    echo "$as_me:$LINENO: checking for $ac_word" >&5
6135    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6136    if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6137      echo $ECHO_N "(cached) $ECHO_C" >&6
6138    else
6139      if test -n "$ac_ct_RANLIB"; then
6140      ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6141    else
6142    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143    for as_dir in $PATH
6144    do
6145      IFS=$as_save_IFS
6146      test -z "$as_dir" && as_dir=.
6147      for ac_exec_ext in '' $ac_executable_extensions; do
6148      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6149        ac_cv_prog_ac_ct_RANLIB="ranlib"
6150        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151        break 2
6152      fi
6153    done
6154    done
6155    
6156      test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6157    fi
6158    fi
6159    ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6160    if test -n "$ac_ct_RANLIB"; then
6161      echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6162    echo "${ECHO_T}$ac_ct_RANLIB" >&6
6163    else
6164      echo "$as_me:$LINENO: result: no" >&5
6165    echo "${ECHO_T}no" >&6
6166    fi
6167    
6168      RANLIB=$ac_ct_RANLIB
6169    else
6170      RANLIB="$ac_cv_prog_RANLIB"
6171    fi
6172    
6173    if test -n "$ac_tool_prefix"; then
6174      # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6175    set dummy ${ac_tool_prefix}strip; ac_word=$2
6176    echo "$as_me:$LINENO: checking for $ac_word" >&5
6177    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6178    if test "${ac_cv_prog_STRIP+set}" = set; then
6179      echo $ECHO_N "(cached) $ECHO_C" >&6
6180    else
6181      if test -n "$STRIP"; then
6182      ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6183    else
6184    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185    for as_dir in $PATH
6186    do
6187      IFS=$as_save_IFS
6188      test -z "$as_dir" && as_dir=.
6189      for ac_exec_ext in '' $ac_executable_extensions; do
6190      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191        ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6192        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193        break 2
6194      fi
6195    done
6196    done
6197    
6198    fi
6199    fi
6200    STRIP=$ac_cv_prog_STRIP
6201    if test -n "$STRIP"; then
6202      echo "$as_me:$LINENO: result: $STRIP" >&5
6203    echo "${ECHO_T}$STRIP" >&6
6204    else
6205      echo "$as_me:$LINENO: result: no" >&5
6206    echo "${ECHO_T}no" >&6
6207    fi
6208    
6209    fi
6210    if test -z "$ac_cv_prog_STRIP"; then
6211      ac_ct_STRIP=$STRIP
6212      # Extract the first word of "strip", so it can be a program name with args.
6213    set dummy strip; ac_word=$2
6214    echo "$as_me:$LINENO: checking for $ac_word" >&5
6215    echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6216    if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6217      echo $ECHO_N "(cached) $ECHO_C" >&6
6218    else
6219      if test -n "$ac_ct_STRIP"; then
6220      ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6221    else
6222    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223    for as_dir in $PATH
6224    do
6225      IFS=$as_save_IFS
6226      test -z "$as_dir" && as_dir=.
6227      for ac_exec_ext in '' $ac_executable_extensions; do
6228      if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6229        ac_cv_prog_ac_ct_STRIP="strip"
6230        echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6231        break 2
6232      fi
6233    done
6234    done
6235    
6236      test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6237    fi
6238    fi
6239    ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6240    if test -n "$ac_ct_STRIP"; then
6241      echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6242    echo "${ECHO_T}$ac_ct_STRIP" >&6
6243    else
6244      echo "$as_me:$LINENO: result: no" >&5
6245    echo "${ECHO_T}no" >&6
6246    fi
6247    
6248      STRIP=$ac_ct_STRIP
6249    else
6250      STRIP="$ac_cv_prog_STRIP"
6251    fi
6252    
6253    
6254    old_CC="$CC"
6255    old_CFLAGS="$CFLAGS"
6256    
6257    # Set sane defaults for various variables
6258    test -z "$AR" && AR=ar
6259    test -z "$AR_FLAGS" && AR_FLAGS=cru
6260    test -z "$AS" && AS=as
6261    test -z "$CC" && CC=cc
6262    test -z "$LTCC" && LTCC=$CC
6263    test -z "$DLLTOOL" && DLLTOOL=dlltool
6264    test -z "$LD" && LD=ld
6265    test -z "$LN_S" && LN_S="ln -s"
6266    test -z "$MAGIC_CMD" && MAGIC_CMD=file
6267    test -z "$NM" && NM=nm
6268    test -z "$SED" && SED=sed
6269    test -z "$OBJDUMP" && OBJDUMP=objdump
6270    test -z "$RANLIB" && RANLIB=:
6271    test -z "$STRIP" && STRIP=:
6272    test -z "$ac_objext" && ac_objext=o
6273    
6274    # Determine commands to create old-style static archives.
6275    old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6276    old_postinstall_cmds='chmod 644 $oldlib'
6277    old_postuninstall_cmds=
6278    
6279    if test -n "$RANLIB"; then
6280      case $host_os in
6281      openbsd*)
6282        old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6283        ;;
6284      *)
6285        old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6286        ;;
6287      esac
6288      old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6289    fi
6290    
6291    # Only perform the check for file, if the check method requires it
6292    case $deplibs_check_method in
6293    file_magic*)
6294      if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6295        echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6296    echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6297    if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6298      echo $ECHO_N "(cached) $ECHO_C" >&6
6299    else
6300      case $MAGIC_CMD in
6301    [\\/*] |  ?:[\\/]*)
6302      lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6303      ;;
6304    *)
6305      lt_save_MAGIC_CMD="$MAGIC_CMD"
6306      lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6307      ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6308      for ac_dir in $ac_dummy; do
6309        IFS="$lt_save_ifs"
6310        test -z "$ac_dir" && ac_dir=.
6311        if test -f $ac_dir/${ac_tool_prefix}file; then
6312          lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6313          if test -n "$file_magic_test_file"; then
6314            case $deplibs_check_method in
6315            "file_magic "*)
6316              file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6317              MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6318              if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6319                $EGREP "$file_magic_regex" > /dev/null; then
6320                :
6321              else
6322                cat <<EOF 1>&2
6323    
6324    *** Warning: the command libtool uses to detect shared libraries,
6325    *** $file_magic_cmd, produces output that libtool cannot recognize.
6326    *** The result is that libtool may fail to recognize shared libraries
6327    *** as such.  This will affect the creation of libtool libraries that
6328    *** depend on shared libraries, but programs linked with such libtool
6329    *** libraries will work regardless of this problem.  Nevertheless, you
6330    *** may want to report the problem to your system manager and/or to
6331    *** bug-libtool@gnu.org
6332    
6333    EOF
6334              fi ;;
6335            esac
6336          fi
6337          break
6338        fi
6339      done
6340      IFS="$lt_save_ifs"
6341      MAGIC_CMD="$lt_save_MAGIC_CMD"
6342      ;;
6343    esac
6344    fi
6345    
6346    MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6347    if test -n "$MAGIC_CMD"; then
6348      echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6349    echo "${ECHO_T}$MAGIC_CMD" >&6
6350    else
6351      echo "$as_me:$LINENO: result: no" >&5
6352    echo "${ECHO_T}no" >&6
6353    fi
6354    
6355    if test -z "$lt_cv_path_MAGIC_CMD"; then
6356      if test -n "$ac_tool_prefix"; then
6357        echo "$as_me:$LINENO: checking for file" >&5
6358    echo $ECHO_N "checking for file... $ECHO_C" >&6
6359    if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6360      echo $ECHO_N "(cached) $ECHO_C" >&6
6361    else
6362      case $MAGIC_CMD in
6363    [\\/*] |  ?:[\\/]*)
6364      lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6365      ;;
6366    *)
6367      lt_save_MAGIC_CMD="$MAGIC_CMD"
6368      lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6369      ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6370      for ac_dir in $ac_dummy; do
6371        IFS="$lt_save_ifs"
6372        test -z "$ac_dir" && ac_dir=.
6373        if test -f $ac_dir/file; then
6374          lt_cv_path_MAGIC_CMD="$ac_dir/file"
6375          if test -n "$file_magic_test_file"; then
6376            case $deplibs_check_method in
6377            "file_magic "*)
6378              file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6379              MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6380              if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6381                $EGREP "$file_magic_regex" > /dev/null; then
6382                :
6383              else
6384                cat <<EOF 1>&2
6385    
6386    *** Warning: the command libtool uses to detect shared libraries,
6387    *** $file_magic_cmd, produces output that libtool cannot recognize.
6388    *** The result is that libtool may fail to recognize shared libraries
6389    *** as such.  This will affect the creation of libtool libraries that
6390    *** depend on shared libraries, but programs linked with such libtool
6391    *** libraries will work regardless of this problem.  Nevertheless, you
6392    *** may want to report the problem to your system manager and/or to
6393    *** bug-libtool@gnu.org
6394    
6395    EOF
6396              fi ;;
6397            esac
6398          fi
6399          break
6400        fi
6401      done
6402      IFS="$lt_save_ifs"
6403      MAGIC_CMD="$lt_save_MAGIC_CMD"
6404      ;;
6405    esac
6406    fi
6407    
6408    MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6409    if test -n "$MAGIC_CMD"; then
6410      echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6411    echo "${ECHO_T}$MAGIC_CMD" >&6
6412    else
6413      echo "$as_me:$LINENO: result: no" >&5
6414    echo "${ECHO_T}no" >&6
6415    fi
6416    
6417      else
6418        MAGIC_CMD=:
6419      fi
6420    fi
6421    
6422      fi
6423      ;;
6424    esac
6425    
6426    enable_dlopen=yes
6427    enable_win32_dll=no
6428    
6429    # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6430    if test "${enable_libtool_lock+set}" = set; then
6431      enableval="$enable_libtool_lock"
6432    
6433    fi;
6434    test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6435    
6436    
6437    # Check whether --with-pic or --without-pic was given.
6438    if test "${with_pic+set}" = set; then
6439      withval="$with_pic"
6440      pic_mode="$withval"
6441    else
6442      pic_mode=default
6443    fi;
6444    test -z "$pic_mode" && pic_mode=default
6445    
6446    # Use C for the default configuration in the libtool script
6447    tagname=
6448    lt_save_CC="$CC"
6449    ac_ext=c
6450    ac_cpp='$CPP $CPPFLAGS'
6451    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6452    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6453    ac_compiler_gnu=$ac_cv_c_compiler_gnu
6454    
6455    
6456    # Source file extension for C test sources.
6457    ac_ext=c
6458    
6459    # Object file extension for compiled C test sources.
6460    objext=o
6461    objext=$objext
6462    
6463    # Code to be used in simple compile tests
6464    lt_simple_compile_test_code="int some_variable = 0;\n"
6465    
6466    # Code to be used in simple link tests
6467    lt_simple_link_test_code='int main(){return(0);}\n'
6468    
6469    
6470    # If no C compiler was specified, use CC.
6471    LTCC=${LTCC-"$CC"}
6472    
6473    # Allow CC to be a program name with arguments.
6474    compiler=$CC
6475    
6476    
6477    #
6478    # Check for any special shared library compilation flags.
6479    #
6480    lt_prog_cc_shlib=
6481    if test "$GCC" = no; then
6482      case $host_os in
6483      sco3.2v5*)
6484        lt_prog_cc_shlib='-belf'
6485        ;;
6486      esac
6487    fi
6488    if test -n "$lt_prog_cc_shlib"; then
6489      { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6490    echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6491      if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6492      else
6493        { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6494    echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6495        lt_cv_prog_cc_can_build_shared=no
6496      fi
6497    fi
6498    
6499    
6500    #
6501    # Check to make sure the static flag actually works.
6502    #
6503    echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6504    echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6505    if test "${lt_prog_compiler_static_works+set}" = set; then
6506      echo $ECHO_N "(cached) $ECHO_C" >&6
6507    else
6508      lt_prog_compiler_static_works=no
6509       save_LDFLAGS="$LDFLAGS"
6510       LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6511       printf "$lt_simple_link_test_code" > conftest.$ac_ext
6512       if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6513         # The compiler can only warn and ignore the option if not recognized
6514         # So say no if there are warnings
6515         if test -s conftest.err; then
6516           # Append any errors to the config.log.
6517           cat conftest.err 1>&5
6518         else
6519           lt_prog_compiler_static_works=yes
6520         fi
6521       fi
6522       $rm conftest*
6523       LDFLAGS="$save_LDFLAGS"
6524    
6525    fi
6526    echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6527    echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6528    
6529    if test x"$lt_prog_compiler_static_works" = xyes; then
6530        :
6531    else
6532        lt_prog_compiler_static=
6533    fi
6534    
6535    
6536    
6537    
6538    lt_prog_compiler_no_builtin_flag=
6539    
6540    if test "$GCC" = yes; then
6541      lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6542    
6543    
6544    echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6545    echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6546    if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6547      echo $ECHO_N "(cached) $ECHO_C" >&6
6548    else
6549      lt_cv_prog_compiler_rtti_exceptions=no
6550      ac_outfile=conftest.$ac_objext
6551       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6552       lt_compiler_flag="-fno-rtti -fno-exceptions"
6553       # Insert the option either (1) after the last *FLAGS variable, or
6554       # (2) before a word containing "conftest.", or (3) at the end.
6555       # Note that $ac_compile itself does not contain backslashes and begins
6556       # with a dollar sign (not a hyphen), so the echo should work correctly.
6557       # The option is referenced via a variable to avoid confusing sed.
6558       lt_compile=`echo "$ac_compile" | $SED \
6559       -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6560       -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6561       -e 's:$: $lt_compiler_flag:'`
6562       (eval echo "\"\$as_me:6562: $lt_compile\"" >&5)
6563       (eval "$lt_compile" 2>conftest.err)
6564       ac_status=$?
6565       cat conftest.err >&5
6566       echo "$as_me:6566: \$? = $ac_status" >&5
6567       if (exit $ac_status) && test -s "$ac_outfile"; then
6568         # The compiler can only warn and ignore the option if not recognized
6569         # So say no if there are warnings
6570         if test ! -s conftest.err; then
6571           lt_cv_prog_compiler_rtti_exceptions=yes
6572         fi
6573       fi
6574       $rm conftest*
6575    
6576    fi
6577    echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6578    echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6579    
6580    if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6581        lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6582    else
6583        :
6584    fi
6585    
6586    fi
6587    
6588    lt_prog_compiler_wl=
6589    lt_prog_compiler_pic=
6590    lt_prog_compiler_static=
6591    
6592    echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6593    echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6594    
6595      if test "$GCC" = yes; then
6596        lt_prog_compiler_wl='-Wl,'
6597        lt_prog_compiler_static='-static'
6598    
6599        case $host_os in
6600          aix*)
6601          # All AIX code is PIC.
6602          if test "$host_cpu" = ia64; then
6603            # AIX 5 now supports IA64 processor
6604            lt_prog_compiler_static='-Bstatic'
6605          fi
6606          ;;
6607    
6608        amigaos*)
6609          # FIXME: we need at least 68020 code to build shared libraries, but
6610          # adding the `-m68020' flag to GCC prevents building anything better,
6611          # like `-m68040'.
6612          lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6613          ;;
6614    
6615        beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6616          # PIC is the default for these OSes.
6617          ;;
6618    
6619        mingw* | pw32* | os2*)
6620          # This hack is so that the source file can tell whether it is being
6621          # built for inclusion in a dll (and should export symbols for example).
6622          lt_prog_compiler_pic='-DDLL_EXPORT'
6623          ;;
6624    
6625        darwin* | rhapsody*)
6626          # PIC is the default on this platform
6627          # Common symbols not allowed in MH_DYLIB files
6628          lt_prog_compiler_pic='-fno-common'
6629          ;;
6630    
6631        msdosdjgpp*)
6632          # Just because we use GCC doesn't mean we suddenly get shared libraries
6633          # on systems that don't support them.
6634          lt_prog_compiler_can_build_shared=no
6635          enable_shared=no
6636          ;;
6637    
6638        sysv4*MP*)
6639          if test -d /usr/nec; then
6640            lt_prog_compiler_pic=-Kconform_pic
6641          fi
6642          ;;
6643    
6644        hpux*)
6645          # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6646          # not for PA HP-UX.
6647          case "$host_cpu" in
6648          hppa*64*|ia64*)
6649            # +Z the default
6650            ;;
6651          *)
6652            lt_prog_compiler_pic='-fPIC'
6653            ;;
6654          esac
6655          ;;
6656    
6657        *)
6658          lt_prog_compiler_pic='-fPIC'
6659          ;;
6660        esac
6661      else
6662        # PORTME Check for flag to pass linker flags through the system compiler.
6663        case $host_os in
6664        aix*)
6665          lt_prog_compiler_wl='-Wl,'
6666          if test "$host_cpu" = ia64; then
6667            # AIX 5 now supports IA64 processor
6668            lt_prog_compiler_static='-Bstatic'
6669          else
6670            lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6671          fi
6672          ;;
6673    
6674        mingw* | pw32* | os2*)
6675          # This hack is so that the source file can tell whether it is being
6676          # built for inclusion in a dll (and should export symbols for example).
6677          lt_prog_compiler_pic='-DDLL_EXPORT'
6678          ;;
6679    
6680        hpux9* | hpux10* | hpux11*)
6681          lt_prog_compiler_wl='-Wl,'
6682          # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6683          # not for PA HP-UX.
6684          case "$host_cpu" in
6685          hppa*64*|ia64*)
6686            # +Z the default
6687            ;;
6688          *)
6689            lt_prog_compiler_pic='+Z'
6690            ;;
6691          esac
6692          # Is there a better lt_prog_compiler_static that works with the bundled CC?
6693          lt_prog_compiler_static='${wl}-a ${wl}archive'
6694          ;;
6695    
6696        irix5* | irix6* | nonstopux*)
6697          lt_prog_compiler_wl='-Wl,'
6698          # PIC (with -KPIC) is the default.
6699          lt_prog_compiler_static='-non_shared'
6700          ;;
6701    
6702        newsos6)
6703          lt_prog_compiler_pic='-KPIC'
6704          lt_prog_compiler_static='-Bstatic'
6705          ;;
6706    
6707        linux*)
6708          case $CC in
6709          icc* | ecc*)
6710            lt_prog_compiler_wl='-Wl,'
6711            lt_prog_compiler_pic='-KPIC'
6712            lt_prog_compiler_static='-static'
6713            ;;
6714          ccc*)
6715            lt_prog_compiler_wl='-Wl,'
6716            # All Alpha code is PIC.
6717            lt_prog_compiler_static='-non_shared'
6718            ;;
6719          esac
6720          ;;
6721    
6722        osf3* | osf4* | osf5*)
6723          lt_prog_compiler_wl='-Wl,'
6724          # All OSF/1 code is PIC.
6725          lt_prog_compiler_static='-non_shared'
6726          ;;
6727    
6728        sco3.2v5*)
6729          lt_prog_compiler_pic='-Kpic'
6730          lt_prog_compiler_static='-dn'
6731          ;;
6732    
6733        solaris*)
6734          lt_prog_compiler_wl='-Wl,'
6735          lt_prog_compiler_pic='-KPIC'
6736          lt_prog_compiler_static='-Bstatic'
6737          ;;
6738    
6739        sunos4*)
6740          lt_prog_compiler_wl='-Qoption ld '
6741          lt_prog_compiler_pic='-PIC'
6742          lt_prog_compiler_static='-Bstatic'
6743          ;;
6744    
6745        sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6746          lt_prog_compiler_wl='-Wl,'
6747          lt_prog_compiler_pic='-KPIC'
6748          lt_prog_compiler_static='-Bstatic'
6749          ;;
6750    
6751        sysv4*MP*)
6752          if test -d /usr/nec ;then
6753            lt_prog_compiler_pic='-Kconform_pic'
6754            lt_prog_compiler_static='-Bstatic'
6755          fi
6756          ;;
6757    
6758        uts4*)
6759          lt_prog_compiler_pic='-pic'
6760          lt_prog_compiler_static='-Bstatic'
6761          ;;
6762    
6763        *)
6764          lt_prog_compiler_can_build_shared=no
6765          ;;
6766        esac
6767      fi
6768    
6769    echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6770    echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6771    
6772    #
6773    # Check to make sure the PIC flag actually works.
6774    #
6775    if test -n "$lt_prog_compiler_pic"; then
6776    
6777    echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6778    echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6779    if test "${lt_prog_compiler_pic_works+set}" = set; then
6780      echo $ECHO_N "(cached) $ECHO_C" >&6
6781    else
6782      lt_prog_compiler_pic_works=no
6783      ac_outfile=conftest.$ac_objext
6784       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6785       lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6786       # Insert the option either (1) after the last *FLAGS variable, or
6787       # (2) before a word containing "conftest.", or (3) at the end.
6788       # Note that $ac_compile itself does not contain backslashes and begins
6789       # with a dollar sign (not a hyphen), so the echo should work correctly.
6790       # The option is referenced via a variable to avoid confusing sed.
6791       lt_compile=`echo "$ac_compile" | $SED \
6792       -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6793       -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6794       -e 's:$: $lt_compiler_flag:'`
6795       (eval echo "\"\$as_me:6795: $lt_compile\"" >&5)
6796       (eval "$lt_compile" 2>conftest.err)
6797       ac_status=$?
6798       cat conftest.err >&5
6799       echo "$as_me:6799: \$? = $ac_status" >&5
6800       if (exit $ac_status) && test -s "$ac_outfile"; then
6801         # The compiler can only warn and ignore the option if not recognized
6802         # So say no if there are warnings
6803         if test ! -s conftest.err; then
6804           lt_prog_compiler_pic_works=yes
6805         fi
6806       fi
6807       $rm conftest*
6808    
6809    fi
6810    echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6811    echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6812    
6813    if test x"$lt_prog_compiler_pic_works" = xyes; then
6814        case $lt_prog_compiler_pic in
6815         "" | " "*) ;;
6816         *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6817         esac
6818    else
6819        lt_prog_compiler_pic=
6820         lt_prog_compiler_can_build_shared=no
6821    fi
6822    
6823    fi
6824    case "$host_os" in
6825      # For platforms which do not support PIC, -DPIC is meaningless:
6826      *djgpp*)
6827        lt_prog_compiler_pic=
6828        ;;
6829      *)
6830        lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6831        ;;
6832    esac
6833    
6834    echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6835    echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6836    if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6837      echo $ECHO_N "(cached) $ECHO_C" >&6
6838    else
6839      lt_cv_prog_compiler_c_o=no
6840       $rm -r conftest 2>/dev/null
6841       mkdir conftest
6842       cd conftest
6843       mkdir out
6844       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6845    
6846       lt_compiler_flag="-o out/conftest2.$ac_objext"
6847       # Insert the option either (1) after the last *FLAGS variable, or
6848       # (2) before a word containing "conftest.", or (3) at the end.
6849       # Note that $ac_compile itself does not contain backslashes and begins
6850       # with a dollar sign (not a hyphen), so the echo should work correctly.
6851       lt_compile=`echo "$ac_compile" | $SED \
6852       -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6853       -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6854       -e 's:$: $lt_compiler_flag:'`
6855       (eval echo "\"\$as_me:6855: $lt_compile\"" >&5)
6856       (eval "$lt_compile" 2>out/conftest.err)
6857       ac_status=$?
6858       cat out/conftest.err >&5
6859       echo "$as_me:6859: \$? = $ac_status" >&5
6860       if (exit $ac_status) && test -s out/conftest2.$ac_objext
6861       then
6862         # The compiler can only warn and ignore the option if not recognized
6863         # So say no if there are warnings
6864         if test ! -s out/conftest.err; then
6865           lt_cv_prog_compiler_c_o=yes
6866         fi
6867       fi
6868       chmod u+w .
6869       $rm conftest*
6870       # SGI C++ compiler will create directory out/ii_files/ for
6871       # template instantiation
6872       test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6873       $rm out/* && rmdir out
6874       cd ..
6875       rmdir conftest
6876       $rm conftest*
6877    
6878    fi
6879    echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6880    echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6881    
6882    
6883    hard_links="nottested"
6884    if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6885      # do not overwrite the value of need_locks provided by the user
6886      echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6887    echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6888      hard_links=yes
6889      $rm conftest*
6890      ln conftest.a conftest.b 2>/dev/null && hard_links=no
6891      touch conftest.a
6892      ln conftest.a conftest.b 2>&5 || hard_links=no
6893      ln conftest.a conftest.b 2>/dev/null && hard_links=no
6894      echo "$as_me:$LINENO: result: $hard_links" >&5
6895    echo "${ECHO_T}$hard_links" >&6
6896      if test "$hard_links" = no; then
6897        { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6898    echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6899        need_locks=warn
6900      fi
6901    else
6902      need_locks=no
6903    fi
6904    
6905    echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6906    echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6907    
6908      runpath_var=
6909      allow_undefined_flag=
6910      enable_shared_with_static_runtimes=no
6911      archive_cmds=
6912      archive_expsym_cmds=
6913      old_archive_From_new_cmds=
6914      old_archive_from_expsyms_cmds=
6915      export_dynamic_flag_spec=
6916      whole_archive_flag_spec=
6917      thread_safe_flag_spec=
6918      hardcode_libdir_flag_spec=
6919      hardcode_libdir_flag_spec_ld=
6920      hardcode_libdir_separator=
6921      hardcode_direct=no
6922      hardcode_minus_L=no
6923      hardcode_shlibpath_var=unsupported
6924      link_all_deplibs=unknown
6925      hardcode_automatic=no
6926      module_cmds=
6927      module_expsym_cmds=
6928      always_export_symbols=no
6929      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6930      # include_expsyms should be a list of space-separated symbols to be *always*
6931      # included in the symbol list
6932      include_expsyms=
6933      # exclude_expsyms can be an extended regexp of symbols to exclude
6934      # it will be wrapped by ` (' and `)$', so one must not match beginning or
6935      # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6936      # as well as any symbol that contains `d'.
6937      exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6938      # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6939      # platforms (ab)use it in PIC code, but their linkers get confused if
6940      # the symbol is explicitly referenced.  Since portable code cannot
6941      # rely on this symbol name, it's probably fine to never include it in
6942      # preloaded symbol tables.
6943      extract_expsyms_cmds=
6944    
6945      case $host_os in
6946      cygwin* | mingw* | pw32*)
6947        # FIXME: the MSVC++ port hasn't been tested in a loooong time
6948        # When not using gcc, we currently assume that we are using
6949        # Microsoft Visual C++.
6950        if test "$GCC" != yes; then
6951          with_gnu_ld=no
6952        fi
6953        ;;
6954      openbsd*)
6955        with_gnu_ld=no
6956        ;;
6957      esac
6958    
6959      ld_shlibs=yes
6960      if test "$with_gnu_ld" = yes; then
6961        # If archive_cmds runs LD, not CC, wlarc should be empty
6962        wlarc='${wl}'
6963    
6964        # See if GNU ld supports shared libraries.
6965        case $host_os in
6966        aix3* | aix4* | aix5*)
6967          # On AIX/PPC, the GNU linker is very broken
6968          if test "$host_cpu" != ia64; then
6969            ld_shlibs=no
6970            cat <<EOF 1>&2
6971    
6972    *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6973    *** to be unable to reliably create shared libraries on AIX.
6974    *** Therefore, libtool is disabling shared libraries support.  If you
6975    *** really care for shared libraries, you may want to modify your PATH
6976    *** so that a non-GNU linker is found, and then restart.
6977    
6978    EOF
6979          fi
6980          ;;
6981    
6982        amigaos*)
6983          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)'
6984          hardcode_libdir_flag_spec='-L$libdir'
6985          hardcode_minus_L=yes
6986    
6987          # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6988          # that the semantics of dynamic libraries on AmigaOS, at least up
6989          # to version 4, is to share data among multiple programs linked
6990          # with the same dynamic library.  Since this doesn't match the
6991          # behavior of shared libraries on other platforms, we can't use
6992          # them.
6993          ld_shlibs=no
6994          ;;
6995    
6996        beos*)
6997          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6998            allow_undefined_flag=unsupported
6999            # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7000            # support --undefined.  This deserves some investigation.  FIXME
7001            archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7002          else
7003            ld_shlibs=no
7004          fi
7005          ;;
7006    
7007        cygwin* | mingw* | pw32*)
7008          # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7009          # as there is no search path for DLLs.
7010          hardcode_libdir_flag_spec='-L$libdir'
7011          allow_undefined_flag=unsupported
7012          always_export_symbols=no
7013          enable_shared_with_static_runtimes=yes
7014          export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7015    
7016          if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7017            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7018            # If the export-symbols file already is a .def file (1st line
7019            # is EXPORTS), use it as is; otherwise, prepend...
7020            archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7021              cp $export_symbols $output_objdir/$soname.def;
7022            else
7023              echo EXPORTS > $output_objdir/$soname.def;
7024              cat $export_symbols >> $output_objdir/$soname.def;
7025            fi~
7026            $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7027          else
7028            ld_shlibs=no
7029          fi
7030          ;;
7031    
7032        netbsd*)
7033          if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7034            archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7035            wlarc=
7036          else
7037            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7038            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7039          fi
7040          ;;
7041    
7042        solaris* | sysv5*)
7043          if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7044            ld_shlibs=no
7045            cat <<EOF 1>&2
7046    
7047    *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7048    *** create shared libraries on Solaris systems.  Therefore, libtool
7049    *** is disabling shared libraries support.  We urge you to upgrade GNU
7050    *** binutils to release 2.9.1 or newer.  Another option is to modify
7051    *** your PATH or compiler configuration so that the native linker is
7052    *** used, and then restart.
7053    
7054    EOF
7055          elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7056            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7057            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7058          else
7059            ld_shlibs=no
7060          fi
7061          ;;
7062    
7063        sunos4*)
7064          archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7065          wlarc=
7066          hardcode_direct=yes
7067          hardcode_shlibpath_var=no
7068          ;;
7069    
7070      linux*)
7071        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7072            tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7073            archive_cmds="$tmp_archive_cmds"
7074          supports_anon_versioning=no
7075          case `$LD -v 2>/dev/null` in
7076            *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7077            *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7078            *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7079            *\ 2.11.*) ;; # other 2.11 versions
7080            *) supports_anon_versioning=yes ;;
7081          esac
7082          if test $supports_anon_versioning = yes; then
7083            archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7084    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7085    $echo "local: *; };" >> $output_objdir/$libname.ver~
7086            $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7087          else
7088            archive_expsym_cmds="$tmp_archive_cmds"
7089          fi
7090        else
7091          ld_shlibs=no
7092        fi
7093        ;;
7094    
7095        *)
7096          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7097            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7098            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7099          else
7100            ld_shlibs=no
7101          fi
7102          ;;
7103        esac
7104    
7105        if test "$ld_shlibs" = yes; then
7106          runpath_var=LD_RUN_PATH
7107          hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7108          export_dynamic_flag_spec='${wl}--export-dynamic'
7109          # ancient GNU ld didn't support --whole-archive et. al.
7110          if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7111            whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7112          else
7113            whole_archive_flag_spec=
7114          fi
7115        fi
7116      else
7117        # PORTME fill in a description of your system's linker (not GNU ld)
7118        case $host_os in
7119        aix3*)
7120          allow_undefined_flag=unsupported
7121          always_export_symbols=yes
7122          archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7123          # Note: this linker hardcodes the directories in LIBPATH if there
7124          # are no directories specified by -L.
7125          hardcode_minus_L=yes
7126          if test "$GCC" = yes && test -z "$link_static_flag"; then
7127            # Neither direct hardcoding nor static linking is supported with a
7128            # broken collect2.
7129            hardcode_direct=unsupported
7130          fi
7131          ;;
7132    
7133        aix4* | aix5*)
7134          if test "$host_cpu" = ia64; then
7135            # On IA64, the linker does run time linking by default, so we don't
7136            # have to do anything special.
7137            aix_use_runtimelinking=no
7138            exp_sym_flag='-Bexport'
7139            no_entry_flag=""
7140          else
7141            # If we're using GNU nm, then we don't want the "-C" option.
7142            # -C means demangle to AIX nm, but means don't demangle with GNU nm
7143            if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7144              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'
7145            else
7146              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'
7147            fi
7148            aix_use_runtimelinking=no
7149    
7150            # Test if we are trying to use run time linking or normal
7151            # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7152            # need to do runtime linking.
7153            case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7154              for ld_flag in $LDFLAGS; do
7155              if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7156                aix_use_runtimelinking=yes
7157                break
7158              fi
7159              done
7160            esac
7161    
7162            exp_sym_flag='-bexport'
7163            no_entry_flag='-bnoentry'
7164          fi
7165    
7166          # When large executables or shared objects are built, AIX ld can
7167          # have problems creating the table of contents.  If linking a library
7168          # or program results in "error TOC overflow" add -mminimal-toc to
7169          # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7170          # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7171    
7172          archive_cmds=''
7173          hardcode_direct=yes
7174          hardcode_libdir_separator=':'
7175          link_all_deplibs=yes
7176    
7177          if test "$GCC" = yes; then
7178            case $host_os in aix4.012|aix4.012.*)
7179            # We only want to do this on AIX 4.2 and lower, the check
7180            # below for broken collect2 doesn't work under 4.3+
7181              collect2name=`${CC} -print-prog-name=collect2`
7182              if test -f "$collect2name" && \
7183               strings "$collect2name" | grep resolve_lib_name >/dev/null
7184              then
7185              # We have reworked collect2
7186              hardcode_direct=yes
7187              else
7188              # We have old collect2
7189              hardcode_direct=unsupported
7190              # It fails to find uninstalled libraries when the uninstalled
7191              # path is not listed in the libpath.  Setting hardcode_minus_L
7192              # to unsupported forces relinking
7193              hardcode_minus_L=yes
7194              hardcode_libdir_flag_spec='-L$libdir'
7195              hardcode_libdir_separator=
7196              fi
7197            esac
7198            shared_flag='-shared'
7199          else
7200            # not using gcc
7201            if test "$host_cpu" = ia64; then
7202            # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7203            # chokes on -Wl,-G. The following line is correct:
7204              shared_flag='-G'
7205            else
7206            if test "$aix_use_runtimelinking" = yes; then
7207                shared_flag='${wl}-G'
7208              else
7209                shared_flag='${wl}-bM:SRE'
7210            fi
7211            fi
7212          fi
7213    
7214          # It seems that -bexpall does not export symbols beginning with
7215          # underscore (_), so it is better to generate a list of symbols to export.
7216          always_export_symbols=yes
7217          if test "$aix_use_runtimelinking" = yes; then
7218            # Warning - without using the other runtime loading flags (-brtl),
7219            # -berok will link without error, but may produce a broken library.
7220            allow_undefined_flag='-berok'
7221           # Determine the default libpath from the value encoded in an empty executable.
7222           cat >conftest.$ac_ext <<_ACEOF
7223    /* confdefs.h.  */
7224    _ACEOF
7225    cat confdefs.h >>conftest.$ac_ext
7226    cat >>conftest.$ac_ext <<_ACEOF
7227    /* end confdefs.h.  */
7228    
7229    int
7230    main ()
7231    {
7232    
7233      ;
7234      return 0;
7235    }
7236    _ACEOF
7237    rm -f conftest.$ac_objext conftest$ac_exeext
7238    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7239      (eval $ac_link) 2>conftest.er1
7240      ac_status=$?
7241      grep -v '^ *+' conftest.er1 >conftest.err
7242      rm -f conftest.er1
7243      cat conftest.err >&5
7244      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245      (exit $ac_status); } &&
7246             { ac_try='test -z "$ac_c_werror_flag"
7247                             || test ! -s conftest.err'
7248      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249      (eval $ac_try) 2>&5
7250      ac_status=$?
7251      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252      (exit $ac_status); }; } &&
7253             { ac_try='test -s conftest$ac_exeext'
7254      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255      (eval $ac_try) 2>&5
7256      ac_status=$?
7257      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258      (exit $ac_status); }; }; then
7259    
7260    aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7261    }'`
7262    # Check for a 64-bit object if we didn't find anything.
7263    if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7264    }'`; fi
7265    else
7266      echo "$as_me: failed program was:" >&5
7267    sed 's/^/| /' conftest.$ac_ext >&5
7268    
7269    fi
7270    rm -f conftest.err conftest.$ac_objext \
7271          conftest$ac_exeext conftest.$ac_ext
7272    if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7273    
7274           hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7275            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"
7276           else
7277            if test "$host_cpu" = ia64; then
7278              hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7279              allow_undefined_flag="-z nodefs"
7280              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"
7281            else
7282             # Determine the default libpath from the value encoded in an empty executable.
7283             cat >conftest.$ac_ext <<_ACEOF
7284    /* confdefs.h.  */
7285    _ACEOF
7286    cat confdefs.h >>conftest.$ac_ext
7287    cat >>conftest.$ac_ext <<_ACEOF
7288    /* end confdefs.h.  */
7289    
7290    int
7291    main ()
7292    {
7293    
7294      ;
7295      return 0;
7296    }
7297    _ACEOF
7298    rm -f conftest.$ac_objext conftest$ac_exeext
7299    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7300      (eval $ac_link) 2>conftest.er1
7301      ac_status=$?
7302      grep -v '^ *+' conftest.er1 >conftest.err
7303      rm -f conftest.er1
7304      cat conftest.err >&5
7305      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306      (exit $ac_status); } &&
7307             { ac_try='test -z "$ac_c_werror_flag"
7308                             || test ! -s conftest.err'
7309      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310      (eval $ac_try) 2>&5
7311      ac_status=$?
7312      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313      (exit $ac_status); }; } &&
7314             { ac_try='test -s conftest$ac_exeext'
7315      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316      (eval $ac_try) 2>&5
7317      ac_status=$?
7318      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319      (exit $ac_status); }; }; then
7320    
7321    aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7322    }'`
7323    # Check for a 64-bit object if we didn't find anything.
7324    if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7325    }'`; fi
7326    else
7327      echo "$as_me: failed program was:" >&5
7328    sed 's/^/| /' conftest.$ac_ext >&5
7329    
7330    fi
7331    rm -f conftest.err conftest.$ac_objext \
7332          conftest$ac_exeext conftest.$ac_ext
7333    if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7334    
7335             hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7336              # Warning - without using the other run time loading flags,
7337              # -berok will link without error, but may produce a broken library.
7338              no_undefined_flag=' ${wl}-bernotok'
7339              allow_undefined_flag=' ${wl}-berok'
7340              # -bexpall does not export symbols beginning with underscore (_)
7341              always_export_symbols=yes
7342              # Exported symbols can be pulled into shared objects from archives
7343              whole_archive_flag_spec=' '
7344              archive_cmds_need_lc=yes
7345              # This is similar to how AIX traditionally builds it's shared libraries.
7346              archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7347            fi
7348          fi
7349          ;;
7350    
7351        amigaos*)
7352          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)'
7353          hardcode_libdir_flag_spec='-L$libdir'
7354          hardcode_minus_L=yes
7355          # see comment about different semantics on the GNU ld section
7356          ld_shlibs=no
7357          ;;
7358    
7359        bsdi4*)
7360          export_dynamic_flag_spec=-rdynamic
7361          ;;
7362    
7363        cygwin* | mingw* | pw32*)
7364          # When not using gcc, we currently assume that we are using
7365          # Microsoft Visual C++.
7366          # hardcode_libdir_flag_spec is actually meaningless, as there is
7367          # no search path for DLLs.
7368          hardcode_libdir_flag_spec=' '
7369          allow_undefined_flag=unsupported
7370          # Tell ltmain to make .lib files, not .a files.
7371          libext=lib
7372          # Tell ltmain to make .dll files, not .so files.
7373          shrext_cmds=".dll"
7374          # FIXME: Setting linknames here is a bad hack.
7375          archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7376          # The linker will automatically build a .lib file if we build a DLL.
7377          old_archive_From_new_cmds='true'
7378          # FIXME: Should let the user specify the lib program.
7379          old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7380          fix_srcfile_path='`cygpath -w "$srcfile"`'
7381          enable_shared_with_static_runtimes=yes
7382          ;;
7383    
7384        darwin* | rhapsody*)
7385        if test "$GXX" = yes ; then
7386          archive_cmds_need_lc=no
7387          case "$host_os" in
7388          rhapsody* | darwin1.[012])
7389            allow_undefined_flag='-undefined suppress'
7390            ;;
7391          *) # Darwin 1.3 on
7392          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7393            allow_undefined_flag='-flat_namespace -undefined suppress'
7394          else
7395            case ${MACOSX_DEPLOYMENT_TARGET} in
7396              10.[012])
7397                allow_undefined_flag='-flat_namespace -undefined suppress'
7398                ;;
7399              10.*)
7400                allow_undefined_flag='-undefined dynamic_lookup'
7401                ;;
7402            esac
7403          fi
7404            ;;
7405          esac
7406            lt_int_apple_cc_single_mod=no
7407            output_verbose_link_cmd='echo'
7408            if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7409              lt_int_apple_cc_single_mod=yes
7410            fi
7411            if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7412              archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7413            else
7414            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'
7415          fi
7416          module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7417          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7418            if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7419              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}'
7420            else
7421              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}'
7422            fi
7423              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}'
7424          hardcode_direct=no
7425          hardcode_automatic=yes
7426          hardcode_shlibpath_var=unsupported
7427          whole_archive_flag_spec='-all_load $convenience'
7428          link_all_deplibs=yes
7429        else
7430          ld_shlibs=no
7431        fi
7432          ;;
7433    
7434        dgux*)
7435          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7436          hardcode_libdir_flag_spec='-L$libdir'
7437          hardcode_shlibpath_var=no
7438          ;;
7439    
7440        freebsd1*)
7441          ld_shlibs=no
7442          ;;
7443    
7444        # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7445        # support.  Future versions do this automatically, but an explicit c++rt0.o
7446        # does not break anything, and helps significantly (at the cost of a little
7447        # extra space).
7448        freebsd2.2*)
7449          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7450          hardcode_libdir_flag_spec='-R$libdir'
7451          hardcode_direct=yes
7452          hardcode_shlibpath_var=no
7453          ;;
7454    
7455        # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7456        freebsd2*)
7457          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7458          hardcode_direct=yes
7459          hardcode_minus_L=yes
7460          hardcode_shlibpath_var=no
7461          ;;
7462    
7463        # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7464        freebsd* | kfreebsd*-gnu)
7465          archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7466          hardcode_libdir_flag_spec='-R$libdir'
7467          hardcode_direct=yes
7468          hardcode_shlibpath_var=no
7469          ;;
7470    
7471        hpux9*)
7472          if test "$GCC" = yes; then
7473            archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7474          else
7475            archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7476          fi
7477          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7478          hardcode_libdir_separator=:
7479          hardcode_direct=yes
7480    
7481          # hardcode_minus_L: Not really in the search PATH,
7482          # but as the default location of the library.
7483          hardcode_minus_L=yes
7484          export_dynamic_flag_spec='${wl}-E'
7485          ;;
7486    
7487        hpux10* | hpux11*)
7488          if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7489            case "$host_cpu" in
7490            hppa*64*|ia64*)
7491              archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7492              ;;
7493            *)
7494              archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7495              ;;
7496            esac
7497          else
7498            case "$host_cpu" in
7499            hppa*64*|ia64*)
7500              archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7501              ;;
7502            *)
7503              archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7504              ;;
7505            esac
7506          fi
7507          if test "$with_gnu_ld" = no; then
7508            case "$host_cpu" in
7509            hppa*64*)
7510              hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7511              hardcode_libdir_flag_spec_ld='+b $libdir'
7512              hardcode_libdir_separator=:
7513              hardcode_direct=no
7514              hardcode_shlibpath_var=no
7515              ;;
7516            ia64*)
7517              hardcode_libdir_flag_spec='-L$libdir'
7518              hardcode_direct=no
7519              hardcode_shlibpath_var=no
7520    
7521              # hardcode_minus_L: Not really in the search PATH,
7522              # but as the default location of the library.
7523              hardcode_minus_L=yes
7524              ;;
7525            *)
7526              hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7527              hardcode_libdir_separator=:
7528              hardcode_direct=yes
7529              export_dynamic_flag_spec='${wl}-E'
7530    
7531              # hardcode_minus_L: Not really in the search PATH,
7532              # but as the default location of the library.
7533              hardcode_minus_L=yes
7534              ;;
7535            esac
7536          fi
7537          ;;
7538    
7539        irix5* | irix6* | nonstopux*)
7540          if test "$GCC" = yes; then
7541            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'
7542          else
7543            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'
7544            hardcode_libdir_flag_spec_ld='-rpath $libdir'
7545          fi
7546          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7547          hardcode_libdir_separator=:
7548          link_all_deplibs=yes
7549          ;;
7550    
7551        netbsd*)
7552          if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7553            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7554          else
7555            archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7556          fi
7557          hardcode_libdir_flag_spec='-R$libdir'
7558          hardcode_direct=yes
7559          hardcode_shlibpath_var=no
7560          ;;
7561    
7562        newsos6)
7563          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7564          hardcode_direct=yes
7565          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7566          hardcode_libdir_separator=:
7567          hardcode_shlibpath_var=no
7568          ;;
7569    
7570        openbsd*)
7571          hardcode_direct=yes
7572          hardcode_shlibpath_var=no
7573          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7574            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7575            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7576            export_dynamic_flag_spec='${wl}-E'
7577          else
7578           case $host_os in
7579             openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7580               archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7581               hardcode_libdir_flag_spec='-R$libdir'
7582               ;;
7583             *)
7584               archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7585               hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7586               ;;
7587           esac
7588          fi
7589          ;;
7590    
7591        os2*)
7592          hardcode_libdir_flag_spec='-L$libdir'
7593          hardcode_minus_L=yes
7594          allow_undefined_flag=unsupported
7595          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'
7596          old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7597          ;;
7598    
7599        osf3*)
7600          if test "$GCC" = yes; then
7601            allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7602            archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7603          else
7604            allow_undefined_flag=' -expect_unresolved \*'
7605            archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7606          fi
7607          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7608          hardcode_libdir_separator=:
7609          ;;
7610    
7611        osf4* | osf5*)      # as osf3* with the addition of -msym flag
7612          if test "$GCC" = yes; then
7613            allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7614            archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7615            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7616          else
7617            allow_undefined_flag=' -expect_unresolved \*'
7618            archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7619            archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7620            $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'
7621    
7622            # Both c and cxx compiler support -rpath directly
7623            hardcode_libdir_flag_spec='-rpath $libdir'
7624          fi
7625          hardcode_libdir_separator=:
7626          ;;
7627    
7628        sco3.2v5*)
7629          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7630          hardcode_shlibpath_var=no
7631          export_dynamic_flag_spec='${wl}-Bexport'
7632          runpath_var=LD_RUN_PATH
7633          hardcode_runpath_var=yes
7634          ;;
7635    
7636        solaris*)
7637          no_undefined_flag=' -z text'
7638          if test "$GCC" = yes; then
7639            archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7640            archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7641              $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7642          else
7643            archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7644            archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7645            $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7646          fi
7647          hardcode_libdir_flag_spec='-R$libdir'
7648          hardcode_shlibpath_var=no
7649          case $host_os in
7650          solaris2.[0-5] | solaris2.[0-5].*) ;;
7651          *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7652            whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7653          esac
7654          link_all_deplibs=yes
7655          ;;
7656    
7657        sunos4*)
7658          if test "x$host_vendor" = xsequent; then
7659            # Use $CC to link under sequent, because it throws in some extra .o
7660            # files that make .init and .fini sections work.
7661            archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7662          else
7663            archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7664          fi
7665          hardcode_libdir_flag_spec='-L$libdir'
7666          hardcode_direct=yes
7667          hardcode_minus_L=yes
7668          hardcode_shlibpath_var=no
7669          ;;
7670    
7671        sysv4)
7672          case $host_vendor in
7673            sni)
7674              archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7675              hardcode_direct=yes # is this really true???
7676            ;;
7677            siemens)
7678              ## LD is ld it makes a PLAMLIB
7679              ## CC just makes a GrossModule.
7680              archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7681              reload_cmds='$CC -r -o $output$reload_objs'
7682              hardcode_direct=no
7683            ;;
7684            motorola)
7685              archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7686              hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7687            ;;
7688          esac
7689          runpath_var='LD_RUN_PATH'
7690          hardcode_shlibpath_var=no
7691          ;;
7692    
7693        sysv4.3*)
7694          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7695          hardcode_shlibpath_var=no
7696          export_dynamic_flag_spec='-Bexport'
7697          ;;
7698    
7699        sysv4*MP*)
7700          if test -d /usr/nec; then
7701            archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7702            hardcode_shlibpath_var=no
7703            runpath_var=LD_RUN_PATH
7704            hardcode_runpath_var=yes
7705            ld_shlibs=yes
7706          fi
7707          ;;
7708    
7709        sysv4.2uw2*)
7710          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7711          hardcode_direct=yes
7712          hardcode_minus_L=no
7713          hardcode_shlibpath_var=no
7714          hardcode_runpath_var=yes
7715          runpath_var=LD_RUN_PATH
7716          ;;
7717    
7718       sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7719          no_undefined_flag='${wl}-z ${wl}text'
7720          if test "$GCC" = yes; then
7721            archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7722          else
7723            archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7724          fi
7725          runpath_var='LD_RUN_PATH'
7726          hardcode_shlibpath_var=no
7727          ;;
7728    
7729        sysv5*)
7730          no_undefined_flag=' -z text'
7731          # $CC -shared without GNU ld will not create a library from C++
7732          # object files and a static libstdc++, better avoid it by now
7733          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7734          archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7735                    $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7736          hardcode_libdir_flag_spec=
7737          hardcode_shlibpath_var=no
7738          runpath_var='LD_RUN_PATH'
7739          ;;
7740    
7741        uts4*)
7742          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7743          hardcode_libdir_flag_spec='-L$libdir'
7744          hardcode_shlibpath_var=no
7745          ;;
7746    
7747        *)
7748          ld_shlibs=no
7749          ;;
7750        esac
7751      fi
7752    
7753    echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7754    echo "${ECHO_T}$ld_shlibs" >&6
7755    test "$ld_shlibs" = no && can_build_shared=no
7756    
7757    variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7758    if test "$GCC" = yes; then
7759      variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7760    fi
7761    
7762    #
7763    # Do we need to explicitly link libc?
7764    #
7765    case "x$archive_cmds_need_lc" in
7766    x|xyes)
7767      # Assume -lc should be added
7768      archive_cmds_need_lc=yes
7769    
7770      if test "$enable_shared" = yes && test "$GCC" = yes; then
7771        case $archive_cmds in
7772        *'~'*)
7773          # FIXME: we may have to deal with multi-command sequences.
7774          ;;
7775        '$CC '*)
7776          # Test whether the compiler implicitly links with -lc since on some
7777          # systems, -lgcc has to come before -lc. If gcc already passes -lc
7778          # to ld, don't add -lc before -lgcc.
7779          echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7780    echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7781          $rm conftest*
7782          printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7783    
7784          if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7785      (eval $ac_compile) 2>&5
7786      ac_status=$?
7787      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788      (exit $ac_status); } 2>conftest.err; then
7789            soname=conftest
7790            lib=conftest
7791            libobjs=conftest.$ac_objext
7792            deplibs=
7793            wl=$lt_prog_compiler_wl
7794            compiler_flags=-v
7795            linker_flags=-v
7796            verstring=
7797            output_objdir=.
7798            libname=conftest
7799            lt_save_allow_undefined_flag=$allow_undefined_flag
7800            allow_undefined_flag=
7801            if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7802      (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7803      ac_status=$?
7804      echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805      (exit $ac_status); }
7806            then
7807              archive_cmds_need_lc=no
7808            else
7809              archive_cmds_need_lc=yes
7810            fi
7811            allow_undefined_flag=$lt_save_allow_undefined_flag
7812          else
7813            cat conftest.err 1>&5
7814          fi
7815          $rm conftest*
7816          echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7817    echo "${ECHO_T}$archive_cmds_need_lc" >&6
7818          ;;
7819        esac
7820      fi
7821      ;;
7822    esac
7823    
7824    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7825    echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7826    library_names_spec=
7827    libname_spec='lib$name'
7828    soname_spec=
7829    shrext_cmds=".so"
7830    postinstall_cmds=
7831    postuninstall_cmds=
7832    finish_cmds=
7833    finish_eval=
7834    shlibpath_var=
7835    shlibpath_overrides_runpath=unknown
7836    version_type=none
7837    dynamic_linker="$host_os ld.so"
7838    sys_lib_dlsearch_path_spec="/lib /usr/lib"
7839    if test "$GCC" = yes; then
7840      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7841      if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7842        # if the path contains ";" then we assume it to be the separator
7843        # otherwise default to the standard path separator (i.e. ":") - it is
7844        # assumed that no part of a normal pathname contains ";" but that should
7845        # okay in the real world where ";" in dirpaths is itself problematic.
7846        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7847      else
7848        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7849      fi
7850    else
7851      sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7852    fi
7853    need_lib_prefix=unknown
7854    hardcode_into_libs=no
7855    
7856    # when you set need_version to no, make sure it does not cause -set_version
7857    # flags to be left without arguments
7858    need_version=unknown
7859    
7860    case $host_os in
7861    aix3*)
7862      version_type=linux
7863      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7864      shlibpath_var=LIBPATH
7865    
7866      # AIX 3 has no versioning support, so we append a major version to the name.
7867      soname_spec='${libname}${release}${shared_ext}$major'
7868      ;;
7869    
7870    aix4* | aix5*)
7871      version_type=linux
7872      need_lib_prefix=no
7873      need_version=no
7874      hardcode_into_libs=yes
7875      if test "$host_cpu" = ia64; then
7876        # AIX 5 supports IA64
7877        library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7878        shlibpath_var=LD_LIBRARY_PATH
7879      else
7880        # With GCC up to 2.95.x, collect2 would create an import file
7881        # for dependence libraries.  The import file would start with
7882        # the line `#! .'.  This would cause the generated library to
7883        # depend on `.', always an invalid library.  This was fixed in
7884        # development snapshots of GCC prior to 3.0.
7885        case $host_os in
7886          aix4 | aix4.[01] | aix4.[01].*)
7887          if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7888               echo ' yes '
7889               echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7890            :
7891          else
7892            can_build_shared=no
7893          fi
7894          ;;
7895        esac
7896        # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7897        # soname into executable. Probably we can add versioning support to
7898        # collect2, so additional links can be useful in future.
7899        if test "$aix_use_runtimelinking" = yes; then
7900          # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7901          # instead of lib<name>.a to let people know that these are not
7902          # typical AIX shared libraries.
7903          library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7904        else
7905          # We preserve .a as extension for shared libraries through AIX4.2
7906          # and later when we are not doing run time linking.
7907          library_names_spec='${libname}${release}.a $libname.a'
7908          soname_spec='${libname}${release}${shared_ext}$major'
7909        fi
7910        shlibpath_var=LIBPATH
7911      fi
7912      ;;
7913    
7914    amigaos*)
7915      library_names_spec='$libname.ixlibrary $libname.a'
7916      # Create ${libname}_ixlibrary.a entries in /sys/libs.
7917      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'
7918      ;;
7919    
7920    beos*)
7921      library_names_spec='${libname}${shared_ext}'
7922      dynamic_linker="$host_os ld.so"
7923      shlibpath_var=LIBRARY_PATH
7924      ;;
7925    
7926    bsdi4*)
7927      version_type=linux
7928      need_version=no
7929      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7930      soname_spec='${libname}${release}${shared_ext}$major'
7931      finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7932      shlibpath_var=LD_LIBRARY_PATH
7933      sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7934      sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7935      # the default ld.so.conf also contains /usr/contrib/lib and
7936      # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7937      # libtool to hard-code these into programs
7938      ;;
7939    
7940    cygwin* | mingw* | pw32*)
7941      version_type=windows
7942      shrext_cmds=".dll"
7943      need_version=no
7944      need_lib_prefix=no
7945    
7946      case $GCC,$host_os in
7947      yes,cygwin* | yes,mingw* | yes,pw32*)
7948        library_names_spec='$libname.dll.a'
7949        # DLL is installed to $(libdir)/../bin by postinstall_cmds
7950        postinstall_cmds='base_file=`basename \${file}`~
7951          dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7952          dldir=$destdir/`dirname \$dlpath`~
7953          test -d \$dldir || mkdir -p \$dldir~
7954          $install_prog $dir/$dlname \$dldir/$dlname'
7955        postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7956          dlpath=$dir/\$dldll~
7957           $rm \$dlpath'
7958        shlibpath_overrides_runpath=yes
7959    
7960        case $host_os in
7961        cygwin*)
7962          # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7963          soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7964          sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7965          ;;
7966        mingw*)
7967          # MinGW DLLs use traditional 'lib' prefix
7968          soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7969          sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7970          if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7971            # It is most probably a Windows format PATH printed by
7972            # mingw gcc, but we are running on Cygwin. Gcc prints its search
7973            # path with ; separators, and with drive letters. We can handle the
7974            # drive letters (cygwin fileutils understands them), so leave them,
7975            # especially as we might pass files found there to a mingw objdump,
7976            # which wouldn't understand a cygwinified path. Ahh.
7977            sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7978          else
7979            sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7980          fi
7981          ;;
7982        pw32*)
7983          # pw32 DLLs use 'pw' prefix rather than 'lib'
7984          library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7985          ;;
7986        esac
7987        ;;
7988    
7989      *)
7990        library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7991        ;;
7992      esac
7993      dynamic_linker='Win32 ld.exe'
7994      # FIXME: first we should search . and the directory the executable is in
7995      shlibpath_var=PATH
7996      ;;
7997    
7998    darwin* | rhapsody*)
7999      dynamic_linker="$host_os dyld"
8000      version_type=darwin
8001      need_lib_prefix=no
8002      need_version=no
8003      library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8004      soname_spec='${libname}${release}${major}$shared_ext'
8005      shlibpath_overrides_runpath=yes
8006      shlibpath_var=DYLD_LIBRARY_PATH
8007      shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8008      # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8009      if test "$GCC" = yes; then
8010        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"`
8011      else
8012        sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8013      fi
8014      sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8015      ;;
8016    
8017    dgux*)
8018      version_type=linux
8019      need_lib_prefix=no
8020      need_version=no
8021      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8022      soname_spec='${libname}${release}${shared_ext}$major'
8023      shlibpath_var=LD_LIBRARY_PATH
8024      ;;
8025    
8026    freebsd1*)
8027      dynamic_linker=no
8028      ;;
8029    
8030    kfreebsd*-gnu)
8031      version_type=linux
8032      need_lib_prefix=no
8033      need_version=no
8034      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8035      soname_spec='${libname}${release}${shared_ext}$major'
8036      shlibpath_var=LD_LIBRARY_PATH
8037      shlibpath_overrides_runpath=no
8038      hardcode_into_libs=yes
8039      dynamic_linker='GNU ld.so'
8040      ;;
8041    
8042    freebsd*)
8043      objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8044      version_type=freebsd-$objformat
8045      case $version_type in
8046        freebsd-elf*)
8047          library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8048          need_version=no
8049          need_lib_prefix=no
8050          ;;
8051        freebsd-*)
8052          library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8053          need_version=yes
8054          ;;
8055      esac
8056      shlibpath_var=LD_LIBRARY_PATH
8057      case $host_os in
8058      freebsd2*)
8059        shlibpath_overrides_runpath=yes
8060        ;;
8061      freebsd3.01* | freebsdelf3.01*)
8062        shlibpath_overrides_runpath=yes
8063        hardcode_into_libs=yes
8064        ;;
8065      *) # from 3.2 on
8066        shlibpath_overrides_runpath=no
8067        hardcode_into_libs=yes
8068        ;;
8069      esac
8070      ;;
8071    
8072    gnu*)
8073      version_type=linux
8074      need_lib_prefix=no
8075      need_version=no
8076      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8077      soname_spec='${libname}${release}${shared_ext}$major'
8078      shlibpath_var=LD_LIBRARY_PATH
8079      hardcode_into_libs=yes
8080      ;;
8081    
8082    hpux9* | hpux10* | hpux11*)
8083      # Give a soname corresponding to the major version so that dld.sl refuses to
8084      # link against other versions.
8085      version_type=sunos
8086      need_lib_prefix=no
8087      need_version=no
8088      case "$host_cpu" in
8089      ia64*)
8090        shrext_cmds='.so'
8091        hardcode_into_libs=yes
8092        dynamic_linker="$host_os dld.so"
8093        shlibpath_var=LD_LIBRARY_PATH
8094        shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8095        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8096        soname_spec='${libname}${release}${shared_ext}$major'
8097        if test "X$HPUX_IA64_MODE" = X32; then
8098          sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8099        else
8100          sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8101        fi
8102        sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8103        ;;
8104       hppa*64*)
8105         shrext_cmds='.sl'
8106         hardcode_into_libs=yes
8107         dynamic_linker="$host_os dld.sl"
8108         shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8109         shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8110         library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8111         soname_spec='${libname}${release}${shared_ext}$major'
8112         sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8113         sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8114         ;;
8115       *)
8116        shrext_cmds='.sl'
8117        dynamic_linker="$host_os dld.sl"
8118        shlibpath_var=SHLIB_PATH
8119        shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8120        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8121        soname_spec='${libname}${release}${shared_ext}$major'
8122        ;;
8123      esac
8124      # HP-UX runs *really* slowly unless shared libraries are mode 555.
8125      postinstall_cmds='chmod 555 $lib'
8126      ;;
8127    
8128    irix5* | irix6* | nonstopux*)
8129      case $host_os in
8130        nonstopux*) version_type=nonstopux ;;
8131        *)
8132            if test "$lt_cv_prog_gnu_ld" = yes; then
8133                    version_type=linux
8134            else
8135                    version_type=irix
8136            fi ;;
8137      esac
8138      need_lib_prefix=no
8139      need_version=no
8140      soname_spec='${libname}${release}${shared_ext}$major'
8141      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8142      case $host_os in
8143      irix5* | nonstopux*)
8144        libsuff= shlibsuff=
8145        ;;
8146      *)
8147        case $LD in # libtool.m4 will add one of these switches to LD
8148        *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8149          libsuff= shlibsuff= libmagic=32-bit;;
8150        *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8151          libsuff=32 shlibsuff=N32 libmagic=N32;;
8152        *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8153          libsuff=64 shlibsuff=64 libmagic=64-bit;;
8154        *) libsuff= shlibsuff= libmagic=never-match;;
8155        esac
8156        ;;
8157      esac
8158      shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8159      shlibpath_overrides_runpath=no
8160      sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8161      sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8162      hardcode_into_libs=yes
8163      ;;
8164    
8165    # No shared lib support for Linux oldld, aout, or coff.
8166    linux*oldld* | linux*aout* | linux*coff*)
8167      dynamic_linker=no
8168      ;;
8169    
8170    # This must be Linux ELF.
8171    linux*)
8172      version_type=linux
8173      need_lib_prefix=no
8174      need_version=no
8175      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8176      soname_spec='${libname}${release}${shared_ext}$major'
8177      finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8178      shlibpath_var=LD_LIBRARY_PATH
8179      shlibpath_overrides_runpath=no
8180      # This implies no fast_install, which is unacceptable.
8181      # Some rework will be needed to allow for fast_install
8182      # before this can be enabled.
8183      hardcode_into_libs=yes
8184    
8185      libsuff=
8186      if test "$lt_cv_cc_lib64_suffix" = "yes"; then
8187        libsuff=64
8188      fi
8189    
8190      # Append ld.so.conf contents to the search path
8191      if test -f /etc/ld.so.conf; then
8192        lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8193        sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} $lt_ld_extra"
8194        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} /usr/local/lib${libsuff} $lt_ld_extra"
8195      fi
8196    
8197      # We used to test for /lib/ld.so.1 and disable shared libraries on
8198      # powerpc, because MkLinux only supported shared libraries with the
8199      # GNU dynamic linker.  Since this was broken with cross compilers,
8200      # most powerpc-linux boxes support dynamic linking these days and
8201      # people can always --disable-shared, the test was removed, and we
8202      # assume the GNU/Linux dynamic linker is in use.
8203      dynamic_linker='GNU/Linux ld.so'
8204      ;;
8205    
8206    knetbsd*-gnu)
8207      version_type=linux
8208      need_lib_prefix=no
8209      need_version=no
8210      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8211      soname_spec='${libname}${release}${shared_ext}$major'
8212      shlibpath_var=LD_LIBRARY_PATH
8213      shlibpath_overrides_runpath=no
8214      hardcode_into_libs=yes
8215      dynamic_linker='GNU ld.so'
8216      ;;
8217    
8218    netbsd*)
8219      version_type=sunos
8220      need_lib_prefix=no
8221      need_version=no
8222      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8223        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8224        finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8225        dynamic_linker='NetBSD (a.out) ld.so'
8226      else
8227        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8228        soname_spec='${libname}${release}${shared_ext}$major'
8229        dynamic_linker='NetBSD ld.elf_so'
8230      fi
8231      shlibpath_var=LD_LIBRARY_PATH
8232      shlibpath_overrides_runpath=yes
8233      hardcode_into_libs=yes
8234      ;;
8235    
8236    newsos6)
8237      version_type=linux
8238      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8239      shlibpath_var=LD_LIBRARY_PATH
8240      shlibpath_overrides_runpath=yes
8241      ;;
8242    
8243    nto-qnx*)
8244      version_type=linux
8245      need_lib_prefix=no
8246      need_version=no
8247      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8248      soname_spec='${libname}${release}${shared_ext}$major'
8249      shlibpath_var=LD_LIBRARY_PATH
8250      shlibpath_overrides_runpath=yes
8251      ;;
8252    
8253    openbsd*)
8254      version_type=sunos
8255      need_lib_prefix=no
8256      need_version=yes
8257      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8258      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8259      shlibpath_var=LD_LIBRARY_PATH
8260      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8261        case $host_os in
8262          openbsd2.[89] | openbsd2.[89].*)
8263            shlibpath_overrides_runpath=no
8264            ;;
8265          *)
8266            shlibpath_overrides_runpath=yes
8267            ;;
8268          esac
8269      else
8270        shlibpath_overrides_runpath=yes
8271      fi
8272      ;;
8273    
8274    os2*)
8275      libname_spec='$name'
8276      shrext_cmds=".dll"
8277      need_lib_prefix=no
8278      library_names_spec='$libname${shared_ext} $libname.a'
8279      dynamic_linker='OS/2 ld.exe'
8280      shlibpath_var=LIBPATH
8281      ;;
8282    
8283    osf3* | osf4* | osf5*)
8284      version_type=osf
8285      need_lib_prefix=no
8286      need_version=no
8287      soname_spec='${libname}${release}${shared_ext}$major'
8288      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8289      shlibpath_var=LD_LIBRARY_PATH
8290      sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8291      sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8292      ;;
8293    
8294    sco3.2v5*)
8295      version_type=osf
8296      soname_spec='${libname}${release}${shared_ext}$major'
8297      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8298      shlibpath_var=LD_LIBRARY_PATH
8299      ;;
8300    
8301    solaris*)
8302      version_type=linux
8303      need_lib_prefix=no
8304      need_version=no
8305      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8306      soname_spec='${libname}${release}${shared_ext}$major'
8307      shlibpath_var=LD_LIBRARY_PATH
8308      shlibpath_overrides_runpath=yes
8309      hardcode_into_libs=yes
8310      # ldd complains unless libraries are executable
8311      postinstall_cmds='chmod +x $lib'
8312      ;;
8313    
8314    sunos4*)
8315      version_type=sunos
8316      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8317      finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8318      shlibpath_var=LD_LIBRARY_PATH
8319      shlibpath_overrides_runpath=yes
8320      if test "$with_gnu_ld" = yes; then
8321        need_lib_prefix=no
8322      fi
8323      need_version=yes
8324      ;;
8325    
8326    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8327      version_type=linux
8328      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8329      soname_spec='${libname}${release}${shared_ext}$major'
8330      shlibpath_var=LD_LIBRARY_PATH
8331      case $host_vendor in
8332        sni)
8333          shlibpath_overrides_runpath=no
8334          need_lib_prefix=no
8335          export_dynamic_flag_spec='${wl}-Blargedynsym'
8336          runpath_var=LD_RUN_PATH
8337          ;;
8338        siemens)
8339          need_lib_prefix=no
8340          ;;
8341        motorola)
8342          need_lib_prefix=no
8343          need_version=no
8344          shlibpath_overrides_runpath=no
8345          sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8346          ;;
8347      esac
8348      ;;
8349    
8350    sysv4*MP*)
8351      if test -d /usr/nec ;then
8352        version_type=linux
8353        library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8354        soname_spec='$libname${shared_ext}.$major'
8355        shlibpath_var=LD_LIBRARY_PATH
8356      fi
8357      ;;
8358    
8359    uts4*)
8360      version_type=linux
8361      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8362      soname_spec='${libname}${release}${shared_ext}$major'
8363      shlibpath_var=LD_LIBRARY_PATH
8364      ;;
8365    
8366    *)
8367      dynamic_linker=no
8368      ;;
8369    esac
8370    echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8371    echo "${ECHO_T}$dynamic_linker" >&6
8372    test "$dynamic_linker" = no && can_build_shared=no
8373    
8374    echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8375    echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8376    hardcode_action=
8377    if test -n "$hardcode_libdir_flag_spec" || \
8378       test -n "$runpath_var " || \
8379       test "X$hardcode_automatic"="Xyes" ; then
8380    
8381      # We can hardcode non-existant directories.
8382      if test "$hardcode_direct" != no &&
8383         # If the only mechanism to avoid hardcoding is shlibpath_var, we
8384         # have to relink, otherwise we might link with an installed library
8385         # when we should be linking with a yet-to-be-installed one
8386         ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8387         test "$hardcode_minus_L" != no; then
8388        # Linking always hardcodes the temporary library directory.
8389        hardcode_action=relink
8390      else
8391        # We can link without hardcoding, and we can hardcode nonexisting dirs.
8392        hardcode_action=immediate
8393      fi
8394    else
8395      # We cannot hardcode anything, or else we can only hardcode existing
8396      # directories.
8397      hardcode_action=unsupported
8398    fi
8399    echo "$as_me:$LINENO: result: $hardcode_action" >&5
8400    echo "${ECHO_T}$hardcode_action" >&6
8401    
8402    if test "$hardcode_action" = relink; then
8403      # Fast installation is not supported
8404      enable_fast_install=no
8405    elif test "$shlibpath_overrides_runpath" = yes ||
8406         test "$enable_shared" = no; then
8407      # Fast installation is not necessary
8408      enable_fast_install=needless
8409    fi
8410    
8411    striplib=
8412    old_striplib=
8413    echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8414    echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8415    if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8416      test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8417      test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8418      echo "$as_me:$LINENO: result: yes" >&5
8419    echo "${ECHO_T}yes" >&6
8420    else
8421    # FIXME - insert some real tests, host_os isn't really good enough
8422      case $host_os in
8423       darwin*)
8424           if test -n "$STRIP" ; then
8425             striplib="$STRIP -x"
8426             echo "$as_me:$LINENO: result: yes" >&5
8427    echo "${ECHO_T}yes" >&6
8428           else
8429      echo "$as_me:$LINENO: result: no" >&5
8430    echo "${ECHO_T}no" >&6
8431    fi
8432           ;;
8433       *)
8434      echo "$as_me:$LINENO: result: no" >&5
8435    echo "${ECHO_T}no" >&6
8436        ;;
8437      esac
8438    fi
8439    
8440    if test "x$enable_dlopen" != xyes; then
8441      enable_dlopen=unknown
8442      enable_dlopen_self=unknown
8443      enable_dlopen_self_static=unknown
8444    else
8445      lt_cv_dlopen=no
8446      lt_cv_dlopen_libs=
8447    
8448      case $host_os in
8449      beos*)
8450        lt_cv_dlopen="load_add_on"
8451        lt_cv_dlopen_libs=
8452        lt_cv_dlopen_self=yes
8453        ;;
8454    
8455      mingw* | pw32*)
8456        lt_cv_dlopen="LoadLibrary"
8457        lt_cv_dlopen_libs=
8458       ;;
8459    
8460      cygwin*)
8461        lt_cv_dlopen="dlopen"
8462        lt_cv_dlopen_libs=
8463       ;;
8464    
8465      darwin*)
8466      # if libdl is installed we need to link against it
8467        echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8468    echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8469    if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8470      echo $ECHO_N "(cached) $ECHO_C" >&6
8471    else
8472      ac_check_lib_save_LIBS=$LIBS
8473    LIBS="-ldl  $LIBS"
8474    cat >conftest.$ac_ext <<_ACEOF
8475    /* confdefs.h.  */
8476    _ACEOF
8477    cat confdefs.h >>conftest.$ac_ext
8478    cat >>conftest.$ac_ext <<_ACEOF
8479    /* end confdefs.h.  */
8480    
8481    /* Override any gcc2 internal prototype to avoid an error.  */
8482    #ifdef __cplusplus
8483    extern "C"
8484    #endif
8485    /* We use char because int might match the return type of a gcc2
8486       builtin and then its argument prototype would still apply.  */
8487    char dlopen ();
8488    int
8489    main ()
8490    {
8491    dlopen ();
8492      ;
8493      return 0;
8494    }
8495    _ACEOF
8496    rm -f conftest.$ac_objext conftest$ac_exeext
8497    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8498      (eval $ac_link) 2>conftest.er1
8499      ac_status=$?
8500      grep -v '^ *+' conftest.er1 >conftest.err
8501      rm -f conftest.er1
8502      cat conftest.err >&5
8503      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504      (exit $ac_status); } &&
8505             { ac_try='test -z "$ac_c_werror_flag"
8506                             || test ! -s conftest.err'
8507      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508      (eval $ac_try) 2>&5
8509      ac_status=$?
8510      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511      (exit $ac_status); }; } &&
8512             { ac_try='test -s conftest$ac_exeext'
8513      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514      (eval $ac_try) 2>&5
8515      ac_status=$?
8516      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517      (exit $ac_status); }; }; then
8518      ac_cv_lib_dl_dlopen=yes
8519    else
8520      echo "$as_me: failed program was:" >&5
8521    sed 's/^/| /' conftest.$ac_ext >&5
8522    
8523    ac_cv_lib_dl_dlopen=no
8524    fi
8525    rm -f conftest.err conftest.$ac_objext \
8526          conftest$ac_exeext conftest.$ac_ext
8527    LIBS=$ac_check_lib_save_LIBS
8528    fi
8529    echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8530    echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8531    if test $ac_cv_lib_dl_dlopen = yes; then
8532      lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8533    else
8534    
8535        lt_cv_dlopen="dyld"
8536        lt_cv_dlopen_libs=
8537        lt_cv_dlopen_self=yes
8538    
8539    fi
8540    
8541       ;;
8542    
8543      *)
8544        echo "$as_me:$LINENO: checking for shl_load" >&5
8545    echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8546    if test "${ac_cv_func_shl_load+set}" = set; then
8547      echo $ECHO_N "(cached) $ECHO_C" >&6
8548    else
8549      cat >conftest.$ac_ext <<_ACEOF
8550    /* confdefs.h.  */
8551    _ACEOF
8552    cat confdefs.h >>conftest.$ac_ext
8553    cat >>conftest.$ac_ext <<_ACEOF
8554    /* end confdefs.h.  */
8555    /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8556       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8557    #define shl_load innocuous_shl_load
8558    
8559    /* System header to define __stub macros and hopefully few prototypes,
8560        which can conflict with char shl_load (); below.
8561        Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8562        <limits.h> exists even on freestanding compilers.  */
8563    
8564    #ifdef __STDC__
8565    # include <limits.h>
8566    #else
8567    # include <assert.h>
8568    #endif
8569    
8570    #undef shl_load
8571    
8572    /* Override any gcc2 internal prototype to avoid an error.  */
8573    #ifdef __cplusplus
8574    extern "C"
8575    {
8576    #endif
8577    /* We use char because int might match the return type of a gcc2
8578       builtin and then its argument prototype would still apply.  */
8579    char shl_load ();
8580    /* The GNU C library defines this for functions which it implements
8581        to always fail with ENOSYS.  Some functions are actually named
8582        something starting with __ and the normal name is an alias.  */
8583    #if defined (__stub_shl_load) || defined (__stub___shl_load)
8584    choke me
8585    #else
8586    char (*f) () = shl_load;
8587    #endif
8588    #ifdef __cplusplus
8589    }
8590    #endif
8591    
8592    int
8593    main ()
8594    {
8595    return f != shl_load;
8596      ;
8597      return 0;
8598    }
8599    _ACEOF
8600    rm -f conftest.$ac_objext conftest$ac_exeext
8601    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602      (eval $ac_link) 2>conftest.er1
8603      ac_status=$?
8604      grep -v '^ *+' conftest.er1 >conftest.err
8605      rm -f conftest.er1
8606      cat conftest.err >&5
8607      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608      (exit $ac_status); } &&
8609             { ac_try='test -z "$ac_c_werror_flag"
8610                             || test ! -s conftest.err'
8611      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612      (eval $ac_try) 2>&5
8613      ac_status=$?
8614      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615      (exit $ac_status); }; } &&
8616             { ac_try='test -s conftest$ac_exeext'
8617      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618      (eval $ac_try) 2>&5
8619      ac_status=$?
8620      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621      (exit $ac_status); }; }; then
8622      ac_cv_func_shl_load=yes
8623    else
8624      echo "$as_me: failed program was:" >&5
8625    sed 's/^/| /' conftest.$ac_ext >&5
8626    
8627    ac_cv_func_shl_load=no
8628    fi
8629    rm -f conftest.err conftest.$ac_objext \
8630          conftest$ac_exeext conftest.$ac_ext
8631    fi
8632    echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8633    echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8634    if test $ac_cv_func_shl_load = yes; then
8635      lt_cv_dlopen="shl_load"
8636    else
8637      echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8638    echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8639    if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8640      echo $ECHO_N "(cached) $ECHO_C" >&6
8641    else
8642      ac_check_lib_save_LIBS=$LIBS
8643    LIBS="-ldld  $LIBS"
8644    cat >conftest.$ac_ext <<_ACEOF
8645    /* confdefs.h.  */
8646    _ACEOF
8647    cat confdefs.h >>conftest.$ac_ext
8648    cat >>conftest.$ac_ext <<_ACEOF
8649    /* end confdefs.h.  */
8650    
8651    /* Override any gcc2 internal prototype to avoid an error.  */
8652    #ifdef __cplusplus
8653    extern "C"
8654    #endif
8655    /* We use char because int might match the return type of a gcc2
8656       builtin and then its argument prototype would still apply.  */
8657    char shl_load ();
8658    int
8659    main ()
8660    {
8661    shl_load ();
8662      ;
8663      return 0;
8664    }
8665    _ACEOF
8666    rm -f conftest.$ac_objext conftest$ac_exeext
8667    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8668      (eval $ac_link) 2>conftest.er1
8669      ac_status=$?
8670      grep -v '^ *+' conftest.er1 >conftest.err
8671      rm -f conftest.er1
8672      cat conftest.err >&5
8673      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674      (exit $ac_status); } &&
8675             { ac_try='test -z "$ac_c_werror_flag"
8676                             || test ! -s conftest.err'
8677      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678      (eval $ac_try) 2>&5
8679      ac_status=$?
8680      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681      (exit $ac_status); }; } &&
8682             { ac_try='test -s conftest$ac_exeext'
8683      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684      (eval $ac_try) 2>&5
8685      ac_status=$?
8686      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687      (exit $ac_status); }; }; then
8688      ac_cv_lib_dld_shl_load=yes
8689    else
8690      echo "$as_me: failed program was:" >&5
8691    sed 's/^/| /' conftest.$ac_ext >&5
8692    
8693    ac_cv_lib_dld_shl_load=no
8694    fi
8695    rm -f conftest.err conftest.$ac_objext \
8696          conftest$ac_exeext conftest.$ac_ext
8697    LIBS=$ac_check_lib_save_LIBS
8698    fi
8699    echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8700    echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8701    if test $ac_cv_lib_dld_shl_load = yes; then
8702      lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8703    else
8704      echo "$as_me:$LINENO: checking for dlopen" >&5
8705    echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8706    if test "${ac_cv_func_dlopen+set}" = set; then
8707      echo $ECHO_N "(cached) $ECHO_C" >&6
8708    else
8709      cat >conftest.$ac_ext <<_ACEOF
8710    /* confdefs.h.  */
8711    _ACEOF
8712    cat confdefs.h >>conftest.$ac_ext
8713    cat >>conftest.$ac_ext <<_ACEOF
8714    /* end confdefs.h.  */
8715    /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8716       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8717    #define dlopen innocuous_dlopen
8718    
8719    /* System header to define __stub macros and hopefully few prototypes,
8720        which can conflict with char dlopen (); below.
8721        Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8722        <limits.h> exists even on freestanding compilers.  */
8723    
8724    #ifdef __STDC__
8725    # include <limits.h>
8726    #else
8727    # include <assert.h>
8728    #endif
8729    
8730    #undef dlopen
8731    
8732    /* Override any gcc2 internal prototype to avoid an error.  */
8733    #ifdef __cplusplus
8734    extern "C"
8735    {
8736    #endif
8737    /* We use char because int might match the return type of a gcc2
8738       builtin and then its argument prototype would still apply.  */
8739    char dlopen ();
8740    /* The GNU C library defines this for functions which it implements
8741        to always fail with ENOSYS.  Some functions are actually named
8742        something starting with __ and the normal name is an alias.  */
8743    #if defined (__stub_dlopen) || defined (__stub___dlopen)
8744    choke me
8745    #else
8746    char (*f) () = dlopen;
8747    #endif
8748    #ifdef __cplusplus
8749    }
8750    #endif
8751    
8752    int
8753    main ()
8754    {
8755    return f != dlopen;
8756      ;
8757      return 0;
8758    }
8759    _ACEOF
8760    rm -f conftest.$ac_objext conftest$ac_exeext
8761    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8762      (eval $ac_link) 2>conftest.er1
8763      ac_status=$?
8764      grep -v '^ *+' conftest.er1 >conftest.err
8765      rm -f conftest.er1
8766      cat conftest.err >&5
8767      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768      (exit $ac_status); } &&
8769             { ac_try='test -z "$ac_c_werror_flag"
8770                             || test ! -s conftest.err'
8771      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772      (eval $ac_try) 2>&5
8773      ac_status=$?
8774      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775      (exit $ac_status); }; } &&
8776             { ac_try='test -s conftest$ac_exeext'
8777      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778      (eval $ac_try) 2>&5
8779      ac_status=$?
8780      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781      (exit $ac_status); }; }; then
8782      ac_cv_func_dlopen=yes
8783    else
8784      echo "$as_me: failed program was:" >&5
8785    sed 's/^/| /' conftest.$ac_ext >&5
8786    
8787    ac_cv_func_dlopen=no
8788    fi
8789    rm -f conftest.err conftest.$ac_objext \
8790          conftest$ac_exeext conftest.$ac_ext
8791    fi
8792    echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8793    echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8794    if test $ac_cv_func_dlopen = yes; then
8795      lt_cv_dlopen="dlopen"
8796    else
8797      echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8798    echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8799    if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8800      echo $ECHO_N "(cached) $ECHO_C" >&6
8801    else
8802      ac_check_lib_save_LIBS=$LIBS
8803    LIBS="-ldl  $LIBS"
8804    cat >conftest.$ac_ext <<_ACEOF
8805    /* confdefs.h.  */
8806    _ACEOF
8807    cat confdefs.h >>conftest.$ac_ext
8808    cat >>conftest.$ac_ext <<_ACEOF
8809    /* end confdefs.h.  */
8810    
8811    /* Override any gcc2 internal prototype to avoid an error.  */
8812    #ifdef __cplusplus
8813    extern "C"
8814    #endif
8815    /* We use char because int might match the return type of a gcc2
8816       builtin and then its argument prototype would still apply.  */
8817    char dlopen ();
8818    int
8819    main ()
8820    {
8821    dlopen ();
8822      ;
8823      return 0;
8824    }
8825    _ACEOF
8826    rm -f conftest.$ac_objext conftest$ac_exeext
8827    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8828      (eval $ac_link) 2>conftest.er1
8829      ac_status=$?
8830      grep -v '^ *+' conftest.er1 >conftest.err
8831      rm -f conftest.er1
8832      cat conftest.err >&5
8833      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834      (exit $ac_status); } &&
8835             { ac_try='test -z "$ac_c_werror_flag"
8836                             || test ! -s conftest.err'
8837      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838      (eval $ac_try) 2>&5
8839      ac_status=$?
8840      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841      (exit $ac_status); }; } &&
8842             { ac_try='test -s conftest$ac_exeext'
8843      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844      (eval $ac_try) 2>&5
8845      ac_status=$?
8846      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847      (exit $ac_status); }; }; then
8848      ac_cv_lib_dl_dlopen=yes
8849    else
8850      echo "$as_me: failed program was:" >&5
8851    sed 's/^/| /' conftest.$ac_ext >&5
8852    
8853    ac_cv_lib_dl_dlopen=no
8854    fi
8855    rm -f conftest.err conftest.$ac_objext \
8856          conftest$ac_exeext conftest.$ac_ext
8857    LIBS=$ac_check_lib_save_LIBS
8858    fi
8859    echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8860    echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8861    if test $ac_cv_lib_dl_dlopen = yes; then
8862      lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8863    else
8864      echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8865    echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8866    if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8867      echo $ECHO_N "(cached) $ECHO_C" >&6
8868    else
8869      ac_check_lib_save_LIBS=$LIBS
8870    LIBS="-lsvld  $LIBS"
8871    cat >conftest.$ac_ext <<_ACEOF
8872    /* confdefs.h.  */
8873    _ACEOF
8874    cat confdefs.h >>conftest.$ac_ext
8875    cat >>conftest.$ac_ext <<_ACEOF
8876    /* end confdefs.h.  */
8877    
8878    /* Override any gcc2 internal prototype to avoid an error.  */
8879    #ifdef __cplusplus
8880    extern "C"
8881    #endif
8882    /* We use char because int might match the return type of a gcc2
8883       builtin and then its argument prototype would still apply.  */
8884    char dlopen ();
8885    int
8886    main ()
8887    {
8888    dlopen ();
8889      ;
8890      return 0;
8891    }
8892    _ACEOF
8893    rm -f conftest.$ac_objext conftest$ac_exeext
8894    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8895      (eval $ac_link) 2>conftest.er1
8896      ac_status=$?
8897      grep -v '^ *+' conftest.er1 >conftest.err
8898      rm -f conftest.er1
8899      cat conftest.err >&5
8900      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901      (exit $ac_status); } &&
8902             { ac_try='test -z "$ac_c_werror_flag"
8903                             || test ! -s conftest.err'
8904      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905      (eval $ac_try) 2>&5
8906      ac_status=$?
8907      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908      (exit $ac_status); }; } &&
8909             { ac_try='test -s conftest$ac_exeext'
8910      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911      (eval $ac_try) 2>&5
8912      ac_status=$?
8913      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914      (exit $ac_status); }; }; then
8915      ac_cv_lib_svld_dlopen=yes
8916    else
8917      echo "$as_me: failed program was:" >&5
8918    sed 's/^/| /' conftest.$ac_ext >&5
8919    
8920    ac_cv_lib_svld_dlopen=no
8921    fi
8922    rm -f conftest.err conftest.$ac_objext \
8923          conftest$ac_exeext conftest.$ac_ext
8924    LIBS=$ac_check_lib_save_LIBS
8925    fi
8926    echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8927    echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8928    if test $ac_cv_lib_svld_dlopen = yes; then
8929      lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8930    else
8931      echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8932    echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8933    if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8934      echo $ECHO_N "(cached) $ECHO_C" >&6
8935    else
8936      ac_check_lib_save_LIBS=$LIBS
8937    LIBS="-ldld  $LIBS"
8938    cat >conftest.$ac_ext <<_ACEOF
8939    /* confdefs.h.  */
8940    _ACEOF
8941    cat confdefs.h >>conftest.$ac_ext
8942    cat >>conftest.$ac_ext <<_ACEOF
8943    /* end confdefs.h.  */
8944    
8945    /* Override any gcc2 internal prototype to avoid an error.  */
8946    #ifdef __cplusplus
8947    extern "C"
8948    #endif
8949    /* We use char because int might match the return type of a gcc2
8950       builtin and then its argument prototype would still apply.  */
8951    char dld_link ();
8952    int
8953    main ()
8954    {
8955    dld_link ();
8956      ;
8957      return 0;
8958    }
8959    _ACEOF
8960    rm -f conftest.$ac_objext conftest$ac_exeext
8961    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8962      (eval $ac_link) 2>conftest.er1
8963      ac_status=$?
8964      grep -v '^ *+' conftest.er1 >conftest.err
8965      rm -f conftest.er1
8966      cat conftest.err >&5
8967      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968      (exit $ac_status); } &&
8969             { ac_try='test -z "$ac_c_werror_flag"
8970                             || test ! -s conftest.err'
8971      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972      (eval $ac_try) 2>&5
8973      ac_status=$?
8974      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975      (exit $ac_status); }; } &&
8976             { ac_try='test -s conftest$ac_exeext'
8977      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978      (eval $ac_try) 2>&5
8979      ac_status=$?
8980      echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981      (exit $ac_status); }; }; then
8982      ac_cv_lib_dld_dld_link=yes
8983    else
8984      echo "$as_me: failed program was:" >&5
8985    sed 's/^/| /' conftest.$ac_ext >&5
8986    
8987    ac_cv_lib_dld_dld_link=no
8988    fi
8989    rm -f conftest.err conftest.$ac_objext \
8990          conftest$ac_exeext conftest.$ac_ext
8991    LIBS=$ac_check_lib_save_LIBS
8992    fi
8993    echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8994    echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8995    if test $ac_cv_lib_dld_dld_link = yes; then
8996      lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8997    fi
8998    
8999    
9000    fi
9001    
9002    
9003    fi
9004    
9005    
9006    fi
9007    
9008    
9009    fi
9010    
9011    
9012    fi
9013    
9014        ;;
9015      esac
9016    
9017      if test "x$lt_cv_dlopen" != xno; then
9018        enable_dlopen=yes
9019      else
9020        enable_dlopen=no
9021      fi
9022    
9023      case $lt_cv_dlopen in
9024      dlopen)
9025        save_CPPFLAGS="$CPPFLAGS"
9026        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9027    
9028        save_LDFLAGS="$LDFLAGS"
9029        eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9030    
9031        save_LIBS="$LIBS"
9032        LIBS="$lt_cv_dlopen_libs $LIBS"
9033    
9034        echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9035    echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9036    if test "${lt_cv_dlopen_self+set}" = set; then
9037      echo $ECHO_N "(cached) $ECHO_C" >&6
9038    else
9039              if test "$cross_compiling" = yes; then :
9040      lt_cv_dlopen_self=cross
9041    else
9042      lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9043      lt_status=$lt_dlunknown
9044      cat > conftest.$ac_ext <<EOF
9045    #line 9045 "configure"
9046    #include "confdefs.h"
9047    
9048    #if HAVE_DLFCN_H
9049    #include <dlfcn.h>
9050    #endif
9051    
9052    #include <stdio.h>
9053    
9054    #ifdef RTLD_GLOBAL
9055    #  define LT_DLGLOBAL           RTLD_GLOBAL
9056    #else
9057    #  ifdef DL_GLOBAL
9058    #    define LT_DLGLOBAL         DL_GLOBAL
9059    #  else
9060    #    define LT_DLGLOBAL         0
9061    #  endif
9062    #endif
9063    
9064    /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9065       find out it does not work in some platform. */
9066    #ifndef LT_DLLAZY_OR_NOW
9067    #  ifdef RTLD_LAZY
9068    #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9069    #  else
9070    #    ifdef DL_LAZY
9071    #      define LT_DLLAZY_OR_NOW          DL_LAZY
9072    #    else
9073    #      ifdef RTLD_NOW
9074    #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9075    #      else
9076    #        ifdef DL_NOW
9077    #          define LT_DLLAZY_OR_NOW      DL_NOW
9078    #        else
9079    #          define LT_DLLAZY_OR_NOW      0
9080    #        endif
9081    #      endif
9082    #    endif
9083    #  endif
9084    #endif
9085    
9086    #ifdef __cplusplus
9087    extern "C" void exit (int);
9088    #endif
9089    
9090    void fnord() { int i=42;}
9091    int main ()
9092    {
9093      void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9094      int status = $lt_dlunknown;
9095    
9096      if (self)
9097        {
9098          if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9099          else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9100          /* dlclose (self); */
9101        }
9102    
9103        exit (status);
9104    }
9105    EOF
9106      if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9107      (eval $ac_link) 2>&5
9108      ac_status=$?
9109      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110      (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9111        (./conftest; exit; ) 2>/dev/null
9112        lt_status=$?
9113        case x$lt_status in
9114          x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9115          x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9116          x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9117        esac
9118      else :
9119        # compilation failed
9120        lt_cv_dlopen_self=no
9121      fi
9122    fi
9123    rm -fr conftest*
9124    
9125    
9126    fi
9127    echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9128    echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9129    
9130        if test "x$lt_cv_dlopen_self" = xyes; then
9131          LDFLAGS="$LDFLAGS $link_static_flag"
9132          echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9133    echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9134    if test "${lt_cv_dlopen_self_static+set}" = set; then
9135      echo $ECHO_N "(cached) $ECHO_C" >&6
9136    else
9137              if test "$cross_compiling" = yes; then :
9138      lt_cv_dlopen_self_static=cross
9139    else
9140      lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9141      lt_status=$lt_dlunknown
9142      cat > conftest.$ac_ext <<EOF
9143    #line 9143 "configure"
9144    #include "confdefs.h"
9145    
9146    #if HAVE_DLFCN_H
9147    #include <dlfcn.h>
9148    #endif
9149    
9150    #include <stdio.h>
9151    
9152    #ifdef RTLD_GLOBAL
9153    #  define LT_DLGLOBAL           RTLD_GLOBAL
9154    #else
9155    #  ifdef DL_GLOBAL
9156    #    define LT_DLGLOBAL         DL_GLOBAL
9157    #  else
9158    #    define LT_DLGLOBAL         0
9159    #  endif
9160    #endif
9161    
9162    /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9163       find out it does not work in some platform. */
9164    #ifndef LT_DLLAZY_OR_NOW
9165    #  ifdef RTLD_LAZY
9166    #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9167    #  else
9168    #    ifdef DL_LAZY
9169    #      define LT_DLLAZY_OR_NOW          DL_LAZY
9170    #    else
9171    #      ifdef RTLD_NOW
9172    #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9173    #      else
9174    #        ifdef DL_NOW
9175    #          define LT_DLLAZY_OR_NOW      DL_NOW
9176    #        else
9177    #          define LT_DLLAZY_OR_NOW      0
9178    #        endif
9179    #      endif
9180    #    endif
9181    #  endif
9182    #endif
9183    
9184    #ifdef __cplusplus
9185    extern "C" void exit (int);
9186    #endif
9187    
9188    void fnord() { int i=42;}
9189    int main ()
9190    {
9191      void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9192      int status = $lt_dlunknown;
9193    
9194      if (self)
9195        {
9196          if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9197          else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9198          /* dlclose (self); */
9199        }
9200    
9201        exit (status);
9202    }
9203    EOF
9204      if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9205      (eval $ac_link) 2>&5
9206      ac_status=$?
9207      echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208      (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9209        (./conftest; exit; ) 2>/dev/null
9210        lt_status=$?
9211        case x$lt_status in
9212          x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9213          x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9214          x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9215        esac
9216      else :
9217        # compilation failed
9218        lt_cv_dlopen_self_static=no
9219      fi
9220    fi
9221    rm -fr conftest*
9222    
9223    
9224    fi
9225    echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9226    echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9227        fi
9228    
9229        CPPFLAGS="$save_CPPFLAGS"
9230        LDFLAGS="$save_LDFLAGS"
9231        LIBS="$save_LIBS"
9232        ;;
9233      esac
9234    
9235      case $lt_cv_dlopen_self in
9236      yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9237      *) enable_dlopen_self=unknown ;;
9238      esac
9239    
9240      case $lt_cv_dlopen_self_static in
9241      yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9242      *) enable_dlopen_self_static=unknown ;;
9243      esac
9244    fi
9245    
9246    
9247    # Report which librarie types wil actually be built
9248    echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9249    echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9250    echo "$as_me:$LINENO: result: $can_build_shared" >&5
9251    echo "${ECHO_T}$can_build_shared" >&6
9252    
9253    echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9254    echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9255    test "$can_build_shared" = "no" && enable_shared=no
9256    
9257    # On AIX, shared libraries and static libraries use the same namespace, and
9258    # are all built from PIC.
9259    case "$host_os" in
9260    aix3*)
9261      test "$enable_shared" = yes && enable_static=no
9262      if test -n "$RANLIB"; then
9263        archive_cmds="$archive_cmds~\$RANLIB \$lib"
9264        postinstall_cmds='$RANLIB $lib'
9265      fi
9266      ;;
9267    
9268    aix4* | aix5*)
9269      if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9270        test "$enable_shared" = yes && enable_static=no
9271      fi
9272      ;;
9273      darwin* | rhapsody*)
9274      if test "$GCC" = yes; then
9275        archive_cmds_need_lc=no
9276        case "$host_os" in
9277        rhapsody* | darwin1.[012])
9278          allow_undefined_flag='-undefined suppress'
9279          ;;
9280        *) # Darwin 1.3 on
9281          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9282            allow_undefined_flag='-flat_namespace -undefined suppress'
9283          else
9284            case ${MACOSX_DEPLOYMENT_TARGET} in
9285              10.[012])
9286                allow_undefined_flag='-flat_namespace -undefined suppress'
9287                ;;
9288              10.*)
9289                allow_undefined_flag='-undefined dynamic_lookup'
9290                ;;
9291            esac
9292          fi
9293          ;;
9294        esac
9295        output_verbose_link_cmd='echo'
9296        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9297        module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9298        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9299        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}'
9300        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}'
9301        hardcode_direct=no
9302        hardcode_automatic=yes
9303        hardcode_shlibpath_var=unsupported
9304        whole_archive_flag_spec='-all_load $convenience'
9305        link_all_deplibs=yes
9306      else
9307        ld_shlibs=no
9308      fi
9309        ;;
9310    esac
9311    echo "$as_me:$LINENO: result: $enable_shared" >&5
9312    echo "${ECHO_T}$enable_shared" >&6
9313    
9314    echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9315    echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9316    # Make sure either enable_shared or enable_static is yes.
9317    test "$enable_shared" = yes || enable_static=yes
9318    echo "$as_me:$LINENO: result: $enable_static" >&5
9319    echo "${ECHO_T}$enable_static" >&6
9320    
9321    # The else clause should only fire when bootstrapping the
9322    # libtool distribution, otherwise you forgot to ship ltmain.sh
9323    # with your package, and you will get complaints that there are
9324    # no rules to generate ltmain.sh.
9325    if test -f "$ltmain"; then
9326      # See if we are running on zsh, and set the options which allow our commands through
9327      # without removal of \ escapes.
9328      if test -n "${ZSH_VERSION+set}" ; then
9329        setopt NO_GLOB_SUBST
9330      fi
9331      # Now quote all the things that may contain metacharacters while being
9332      # careful not to overquote the AC_SUBSTed values.  We take copies of the
9333      # variables and quote the copies for generation of the libtool script.
9334      for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9335        SED SHELL STRIP \
9336        libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9337        old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9338        deplibs_check_method reload_flag reload_cmds need_locks \
9339        lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9340        lt_cv_sys_global_symbol_to_c_name_address \
9341        sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9342        old_postinstall_cmds old_postuninstall_cmds \
9343        compiler \
9344        CC \
9345        LD \
9346        lt_prog_compiler_wl \
9347        lt_prog_compiler_pic \
9348        lt_prog_compiler_static \
9349        lt_prog_compiler_no_builtin_flag \
9350        export_dynamic_flag_spec \
9351        thread_safe_flag_spec \
9352        whole_archive_flag_spec \
9353        enable_shared_with_static_runtimes \
9354        old_archive_cmds \
9355        old_archive_from_new_cmds \
9356        predep_objects \
9357        postdep_objects \
9358        predeps \
9359        postdeps \
9360        compiler_lib_search_path \
9361        archive_cmds \
9362        archive_expsym_cmds \
9363        postinstall_cmds \
9364        postuninstall_cmds \
9365        old_archive_from_expsyms_cmds \
9366        allow_undefined_flag \
9367        no_undefined_flag \
9368        export_symbols_cmds \
9369        hardcode_libdir_flag_spec \
9370        hardcode_libdir_flag_spec_ld \
9371        hardcode_libdir_separator \
9372        hardcode_automatic \
9373        module_cmds \
9374        module_expsym_cmds \
9375        lt_cv_prog_compiler_c_o \
9376        exclude_expsyms \
9377        include_expsyms; do
9378    
9379        case $var in
9380        old_archive_cmds | \
9381        old_archive_from_new_cmds | \
9382        archive_cmds | \
9383        archive_expsym_cmds | \
9384        module_cmds | \
9385        module_expsym_cmds | \
9386        old_archive_from_expsyms_cmds | \
9387        export_symbols_cmds | \
9388        extract_expsyms_cmds | reload_cmds | finish_cmds | \
9389        postinstall_cmds | postuninstall_cmds | \
9390        old_postinstall_cmds | old_postuninstall_cmds | \
9391        sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9392          # Double-quote double-evaled strings.
9393          eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9394          ;;
9395        *)
9396          eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9397          ;;
9398        esac
9399      done
9400    
9401      case $lt_echo in
9402      *'\$0 --fallback-echo"')
9403        lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9404        ;;
9405      esac
9406    
9407    cfgfile="${ofile}T"
9408      trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9409      $rm -f "$cfgfile"
9410      { echo "$as_me:$LINENO: creating $ofile" >&5
9411    echo "$as_me: creating $ofile" >&6;}
9412    
9413      cat <<__EOF__ >> "$cfgfile"
9414    #! $SHELL
9415    
9416    # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9417    # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9418    # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9419    #
9420    # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9421    # Free Software Foundation, Inc.
9422    #
9423    # This file is part of GNU Libtool:
9424    # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9425    #
9426    # This program is free software; you can redistribute it and/or modify
9427    # it under the terms of the GNU General Public License as published by
9428    # the Free Software Foundation; either version 2 of the License, or
9429    # (at your option) any later version.
9430    #
9431    # This program is distributed in the hope that it will be useful, but
9432    # WITHOUT ANY WARRANTY; without even the implied warranty of
9433    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9434    # General Public License for more details.
9435    #
9436    # You should have received a copy of the GNU General Public License
9437    # along with this program; if not, write to the Free Software
9438    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9439    #
9440    # As a special exception to the GNU General Public License, if you
9441    # distribute this file as part of a program that contains a
9442    # configuration script generated by Autoconf, you may include it under
9443    # the same distribution terms that you use for the rest of that program.
9444    
9445    # A sed program that does not truncate output.
9446    SED=$lt_SED
9447    
9448    # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9449    Xsed="$SED -e s/^X//"
9450    
9451    # The HP-UX ksh and POSIX shell print the target directory to stdout
9452    # if CDPATH is set.
9453    if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9454    
9455    # The names of the tagged configurations supported by this script.
9456    available_tags=
9457    
9458    # ### BEGIN LIBTOOL CONFIG
9459    
9460    # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9461    
9462    # Shell to use when invoking shell scripts.
9463    SHELL=$lt_SHELL
9464    
9465    # Whether or not to build shared libraries.
9466    build_libtool_libs=$enable_shared
9467    
9468    # Whether or not to build static libraries.
9469    build_old_libs=$enable_static
9470    
9471    # Whether or not to add -lc for building shared libraries.
9472    build_libtool_need_lc=$archive_cmds_need_lc
9473    
9474    # Whether or not to disallow shared libs when runtime libs are static
9475    allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9476    
9477    # Whether or not to optimize for fast installation.
9478    fast_install=$enable_fast_install
9479    
9480    # The host system.
9481    host_alias=$host_alias
9482    host=$host
9483    
9484    # An echo program that does not interpret backslashes.
9485    echo=$lt_echo
9486    
9487    # The archiver.
9488    AR=$lt_AR
9489    AR_FLAGS=$lt_AR_FLAGS
9490    
9491    # A C compiler.
9492    LTCC=$lt_LTCC
9493    
9494    # A language-specific compiler.
9495    CC=$lt_compiler
9496    
9497    # Is the compiler the GNU C compiler?
9498    with_gcc=$GCC
9499    
9500    # An ERE matcher.
9501    EGREP=$lt_EGREP
9502    
9503    # The linker used to build libraries.
9504    LD=$lt_LD
9505    
9506    # Whether we need hard or soft links.
9507    LN_S=$lt_LN_S
9508    
9509    # A BSD-compatible nm program.
9510    NM=$lt_NM
9511    
9512    # A symbol stripping program
9513    STRIP=$lt_STRIP
9514    
9515    # Used to examine libraries when file_magic_cmd begins "file"
9516    MAGIC_CMD=$MAGIC_CMD
9517    
9518    # Used on cygwin: DLL creation program.
9519    DLLTOOL="$DLLTOOL"
9520    
9521    # Used on cygwin: object dumper.
9522    OBJDUMP="$OBJDUMP"
9523    
9524    # Used on cygwin: assembler.
9525    AS="$AS"
9526    
9527    # The name of the directory that contains temporary libtool files.
9528    objdir=$objdir
9529    
9530    # How to create reloadable object files.
9531    reload_flag=$lt_reload_flag
9532    reload_cmds=$lt_reload_cmds
9533    
9534    # How to pass a linker flag through the compiler.
9535    wl=$lt_lt_prog_compiler_wl
9536    
9537    # Object file suffix (normally "o").
9538    objext="$ac_objext"
9539    
9540    # Old archive suffix (normally "a").
9541    libext="$libext"
9542    
9543    # Shared library suffix (normally ".so").
9544    shrext_cmds='$shrext_cmds'
9545    
9546    # Executable file suffix (normally "").
9547    exeext="$exeext"
9548    
9549    # Additional compiler flags for building library objects.
9550    pic_flag=$lt_lt_prog_compiler_pic
9551    pic_mode=$pic_mode
9552    
9553    # What is the maximum length of a command?
9554    max_cmd_len=$lt_cv_sys_max_cmd_len
9555    
9556    # Does compiler simultaneously support -c and -o options?
9557    compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9558    
9559    # Must we lock files when doing compilation ?
9560    need_locks=$lt_need_locks
9561    
9562    # Do we need the lib prefix for modules?
9563    need_lib_prefix=$need_lib_prefix
9564    
9565    # Do we need a version for libraries?
9566    need_version=$need_version
9567    
9568    # Whether dlopen is supported.
9569    dlopen_support=$enable_dlopen
9570    
9571    # Whether dlopen of programs is supported.
9572    dlopen_self=$enable_dlopen_self
9573    
9574    # Whether dlopen of statically linked programs is supported.
9575    dlopen_self_static=$enable_dlopen_self_static
9576    
9577    # Compiler flag to prevent dynamic linking.
9578    link_static_flag=$lt_lt_prog_compiler_static
9579    
9580    # Compiler flag to turn off builtin functions.
9581    no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9582    
9583    # Compiler flag to allow reflexive dlopens.
9584    export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9585    
9586    # Compiler flag to generate shared objects directly from archives.
9587    whole_archive_flag_spec=$lt_whole_archive_flag_spec
9588    
9589    # Compiler flag to generate thread-safe objects.
9590    thread_safe_flag_spec=$lt_thread_safe_flag_spec
9591    
9592    # Library versioning type.
9593    version_type=$version_type
9594    
9595    # Format of library name prefix.
9596    libname_spec=$lt_libname_spec
9597    
9598    # List of archive names.  First name is the real one, the rest are links.
9599    # The last name is the one that the linker finds with -lNAME.
9600    library_names_spec=$lt_library_names_spec
9601    
9602    # The coded name of the library, if different from the real name.
9603    soname_spec=$lt_soname_spec
9604    
9605    # Commands used to build and install an old-style archive.
9606    RANLIB=$lt_RANLIB
9607    old_archive_cmds=$lt_old_archive_cmds
9608    old_postinstall_cmds=$lt_old_postinstall_cmds
9609    old_postuninstall_cmds=$lt_old_postuninstall_cmds
9610    
9611    # Create an old-style archive from a shared archive.
9612    old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9613    
9614    # Create a temporary old-style archive to link instead of a shared archive.
9615    old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9616    
9617    # Commands used to build and install a shared archive.
9618    archive_cmds=$lt_archive_cmds
9619    archive_expsym_cmds=$lt_archive_expsym_cmds
9620    postinstall_cmds=$lt_postinstall_cmds
9621    postuninstall_cmds=$lt_postuninstall_cmds
9622    
9623    # Commands used to build a loadable module (assumed same as above if empty)
9624    module_cmds=$lt_module_cmds
9625    module_expsym_cmds=$lt_module_expsym_cmds
9626    
9627    # Commands to strip libraries.
9628    old_striplib=$lt_old_striplib
9629    striplib=$lt_striplib
9630    
9631    # Dependencies to place before the objects being linked to create a
9632    # shared library.
9633    predep_objects=$lt_predep_objects
9634    
9635    # Dependencies to place after the objects being linked to create a
9636    # shared library.
9637    postdep_objects=$lt_postdep_objects
9638    
9639    # Dependencies to place before the objects being linked to create a
9640    # shared library.
9641    predeps=$lt_predeps
9642    
9643    # Dependencies to place after the objects being linked to create a
9644    # shared library.
9645    postdeps=$lt_postdeps
9646    
9647    # The library search path used internally by the compiler when linking
9648    # a shared library.
9649    compiler_lib_search_path=$lt_compiler_lib_search_path
9650    
9651    # Method to check whether dependent libraries are shared objects.
9652    deplibs_check_method=$lt_deplibs_check_method
9653    
9654    # Command to use when deplibs_check_method == file_magic.
9655    file_magic_cmd=$lt_file_magic_cmd
9656    
9657    # Flag that allows shared libraries with undefined symbols to be built.
9658    allow_undefined_flag=$lt_allow_undefined_flag
9659    
9660    # Flag that forces no undefined symbols.
9661    no_undefined_flag=$lt_no_undefined_flag
9662    
9663    # Commands used to finish a libtool library installation in a directory.
9664    finish_cmds=$lt_finish_cmds
9665    
9666    # Same as above, but a single script fragment to be evaled but not shown.
9667    finish_eval=$lt_finish_eval
9668    
9669    # Take the output of nm and produce a listing of raw symbols and C names.
9670    global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9671    
9672    # Transform the output of nm in a proper C declaration
9673    global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9674    
9675    # Transform the output of nm in a C name address pair
9676    global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9677    
9678    # This is the shared library runtime path variable.
9679    runpath_var=$runpath_var
9680    
9681    # This is the shared library path variable.
9682    shlibpath_var=$shlibpath_var
9683    
9684    # Is shlibpath searched before the hard-coded library search path?
9685    shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9686    
9687    # How to hardcode a shared library path into an executable.
9688    hardcode_action=$hardcode_action
9689    
9690    # Whether we should hardcode library paths into libraries.
9691    hardcode_into_libs=$hardcode_into_libs
9692    
9693    # Flag to hardcode \$libdir into a binary during linking.
9694    # This must work even if \$libdir does not exist.
9695    hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9696    
9697    # If ld is used when linking, flag to hardcode \$libdir into
9698    # a binary during linking. This must work even if \$libdir does
9699    # not exist.
9700    hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9701    
9702    # Whether we need a single -rpath flag with a separated argument.
9703    hardcode_libdir_separator=$lt_hardcode_libdir_separator
9704    
9705    # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9706    # resulting binary.
9707    hardcode_direct=$hardcode_direct
9708    
9709    # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9710    # resulting binary.
9711    hardcode_minus_L=$hardcode_minus_L
9712    
9713    # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9714    # the resulting binary.
9715    hardcode_shlibpath_var=$hardcode_shlibpath_var
9716    
9717    # Set to yes if building a shared library automatically hardcodes DIR into the library
9718    # and all subsequent libraries and executables linked against it.
9719    hardcode_automatic=$hardcode_automatic
9720    
9721    # Variables whose values should be saved in libtool wrapper scripts and
9722    # restored at relink time.
9723    variables_saved_for_relink="$variables_saved_for_relink"
9724    
9725    # Whether libtool must link a program against all its dependency libraries.
9726    link_all_deplibs=$link_all_deplibs
9727    
9728    # Compile-time system search path for libraries
9729    sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9730    
9731    # Run-time system search path for libraries
9732    sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9733    
9734    # Fix the shell variable \$srcfile for the compiler.
9735    fix_srcfile_path="$fix_srcfile_path"
9736    
9737    # Set to yes if exported symbols are required.
9738    always_export_symbols=$always_export_symbols
9739    
9740    # The commands to list exported symbols.
9741    export_symbols_cmds=$lt_export_symbols_cmds
9742    
9743    # The commands to extract the exported symbol list from a shared archive.
9744    extract_expsyms_cmds=$lt_extract_expsyms_cmds
9745    
9746    # Symbols that should not be listed in the preloaded symbols.
9747    exclude_expsyms=$lt_exclude_expsyms
9748    
9749    # Symbols that must always be exported.
9750    include_expsyms=$lt_include_expsyms
9751    
9752    # ### END LIBTOOL CONFIG
9753    
9754    __EOF__
9755    
9756    
9757      case $host_os in
9758      aix3*)
9759        cat <<\EOF >> "$cfgfile"
9760    
9761    # AIX sometimes has problems with the GCC collect2 program.  For some
9762    # reason, if we set the COLLECT_NAMES environment variable, the problems
9763    # vanish in a puff of smoke.
9764    if test "X${COLLECT_NAMES+set}" != Xset; then
9765      COLLECT_NAMES=
9766      export COLLECT_NAMES
9767    fi
9768    EOF
9769        ;;
9770      esac
9771    
9772      # We use sed instead of cat because bash on DJGPP gets confused if
9773      # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9774      # text mode, it properly converts lines to CR/LF.  This bash problem
9775      # is reportedly fixed, but why not run on old versions too?
9776      sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9777    
9778      mv -f "$cfgfile" "$ofile" || \
9779        (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9780      chmod +x "$ofile"
9781    
9782    else
9783      # If there is no Makefile yet, we rely on a make rule to execute
9784      # `config.status --recheck' to rerun these tests and create the
9785      # libtool script then.
9786      ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9787      if test -f "$ltmain_in"; then
9788        test -f Makefile && make "$ltmain"
9789      fi
9790    fi
9791    
9792    
9793    ac_ext=c
9794    ac_cpp='$CPP $CPPFLAGS'
9795    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9796    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9797    ac_compiler_gnu=$ac_cv_c_compiler_gnu
9798    
9799    CC="$lt_save_CC"
9800    
9801    
9802    # Check whether --with-tags or --without-tags was given.
9803    if test "${with_tags+set}" = set; then
9804      withval="$with_tags"
9805      tagnames="$withval"
9806    fi;
9807    
9808    if test -f "$ltmain" && test -n "$tagnames"; then
9809      if test ! -f "${ofile}"; then
9810        { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9811    echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9812      fi
9813    
9814      if test -z "$LTCC"; then
9815        eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9816        if test -z "$LTCC"; then
9817          { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9818    echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9819        else
9820          { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9821    echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9822        fi
9823      fi
9824    
9825      # Extract list of available tagged configurations in $ofile.
9826      # Note that this assumes the entire list is on one line.
9827      available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9828    
9829      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9830      for tagname in $tagnames; do
9831        IFS="$lt_save_ifs"
9832        # Check whether tagname contains only valid characters
9833        case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9834        "") ;;
9835        *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9836    echo "$as_me: error: invalid tag name: $tagname" >&2;}
9837       { (exit 1); exit 1; }; }
9838            ;;
9839        esac
9840    
9841        if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9842        then
9843          { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9844    echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9845       { (exit 1); exit 1; }; }
9846        fi
9847    
9848        # Update the list of available tags.
9849        if test -n "$tagname"; then
9850          echo appending configuration tag \"$tagname\" to $ofile
9851    
9852          case $tagname in
9853          CXX)
9854            if test -n "$CXX" && test "X$CXX" != "Xno"; then
9855              ac_ext=cc
9856    ac_cpp='$CXXCPP $CPPFLAGS'
9857    ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9858    ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9859    ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9860    
9861    
9862    
9863    
9864    archive_cmds_need_lc_CXX=no
9865    allow_undefined_flag_CXX=
9866    always_export_symbols_CXX=no
9867    archive_expsym_cmds_CXX=
9868    export_dynamic_flag_spec_CXX=
9869    hardcode_direct_CXX=no
9870    hardcode_libdir_flag_spec_CXX=
9871    hardcode_libdir_flag_spec_ld_CXX=
9872    hardcode_libdir_separator_CXX=
9873    hardcode_minus_L_CXX=no
9874    hardcode_automatic_CXX=no
9875    module_cmds_CXX=
9876    module_expsym_cmds_CXX=
9877    link_all_deplibs_CXX=unknown
9878    old_archive_cmds_CXX=$old_archive_cmds
9879    no_undefined_flag_CXX=
9880    whole_archive_flag_spec_CXX=
9881    enable_shared_with_static_runtimes_CXX=no
9882    
9883    # Dependencies to place before and after the object being linked:
9884    predep_objects_CXX=
9885    postdep_objects_CXX=
9886    predeps_CXX=
9887    postdeps_CXX=
9888    compiler_lib_search_path_CXX=
9889    
9890    # Source file extension for C++ test sources.
9891    ac_ext=cc
9892    
9893    # Object file extension for compiled C++ test sources.
9894    objext=o
9895    objext_CXX=$objext
9896    
9897    # Code to be used in simple compile tests
9898    lt_simple_compile_test_code="int some_variable = 0;\n"
9899    
9900    # Code to be used in simple link tests
9901    lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9902    
9903    # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9904    
9905    # If no C compiler was specified, use CC.
9906    LTCC=${LTCC-"$CC"}
9907    
9908    # Allow CC to be a program name with arguments.
9909    compiler=$CC
9910    
9911    
9912    # Allow CC to be a program name with arguments.
9913    lt_save_CC=$CC
9914    lt_save_LD=$LD
9915    lt_save_GCC=$GCC
9916    GCC=$GXX
9917    lt_save_with_gnu_ld=$with_gnu_ld
9918    lt_save_path_LD=$lt_cv_path_LD
9919    if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9920      lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9921    else
9922      unset lt_cv_prog_gnu_ld
9923    fi
9924    if test -n "${lt_cv_path_LDCXX+set}"; then
9925      lt_cv_path_LD=$lt_cv_path_LDCXX
9926    else
9927      unset lt_cv_path_LD
9928    fi
9929    test -z "${LDCXX+set}" || LD=$LDCXX
9930    CC=${CXX-"c++"}
9931    compiler=$CC
9932    compiler_CXX=$CC
9933    cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9934    
9935    # We don't want -fno-exception wen compiling C++ code, so set the
9936    # no_builtin_flag separately
9937    if test "$GXX" = yes; then
9938      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9939    else
9940      lt_prog_compiler_no_builtin_flag_CXX=
9941    fi
9942    
9943    if test "$GXX" = yes; then
9944      # Set up default GNU C++ configuration
9945    
9946    
9947    # Check whether --with-gnu-ld or --without-gnu-ld was given.
9948    if test "${with_gnu_ld+set}" = set; then
9949      withval="$with_gnu_ld"
9950      test "$withval" = no || with_gnu_ld=yes
9951    else
9952      with_gnu_ld=no
9953    fi;
9954    ac_prog=ld
9955    if test "$GCC" = yes; then
9956      # Check if gcc -print-prog-name=ld gives a path.
9957      echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9958    echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9959      case $host in
9960      *-*-mingw*)
9961        # gcc leaves a trailing carriage return which upsets mingw
9962        ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9963      *)
9964        ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9965      esac
9966      case $ac_prog in
9967        # Accept absolute paths.
9968        [\\/]* | ?:[\\/]*)
9969          re_direlt='/[^/][^/]*/\.\./'
9970          # Canonicalize the pathname of ld
9971          ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9972          while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9973            ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9974          done
9975          test -z "$LD" && LD="$ac_prog"
9976          ;;
9977      "")
9978        # If it fails, then pretend we aren't using GCC.
9979        ac_prog=ld
9980        ;;
9981      *)
9982        # If it is relative, then search for the first ld in PATH.
9983        with_gnu_ld=unknown
9984        ;;
9985      esac
9986    elif test "$with_gnu_ld" = yes; then
9987      echo "$as_me:$LINENO: checking for GNU ld" >&5
9988    echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9989    else
9990      echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9991    echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9992    fi
9993    if test "${lt_cv_path_LD+set}" = set; then
9994      echo $ECHO_N "(cached) $ECHO_C" >&6
9995    else
9996      if test -z "$LD"; then
9997      lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9998      for ac_dir in $PATH; do
9999        IFS="$lt_save_ifs"
10000        test -z "$ac_dir" && ac_dir=.
10001        if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10002          lt_cv_path_LD="$ac_dir/$ac_prog"
10003          # Check to see if the program is GNU ld.  I'd rather use --version,
10004          # but apparently some GNU ld's only accept -v.
10005          # Break only if it was the GNU/non-GNU ld that we prefer.
10006          case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10007          *GNU* | *'with BFD'*)
10008            test "$with_gnu_ld" != no && break
10009            ;;
10010          *)
10011            test "$with_gnu_ld" != yes && break
10012            ;;
10013          esac
10014        fi
10015      done
10016      IFS="$lt_save_ifs"
10017    else
10018      lt_cv_path_LD="$LD" # Let the user override the test with a path.
10019    fi
10020    fi
10021    
10022    LD="$lt_cv_path_LD"
10023    if test -n "$LD"; then
10024      echo "$as_me:$LINENO: result: $LD" >&5
10025    echo "${ECHO_T}$LD" >&6
10026    else
10027      echo "$as_me:$LINENO: result: no" >&5
10028    echo "${ECHO_T}no" >&6
10029    fi
10030    test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10031    echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10032       { (exit 1); exit 1; }; }
10033    echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10034    echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10035    if test "${lt_cv_prog_gnu_ld+set}" = set; then
10036      echo $ECHO_N "(cached) $ECHO_C" >&6
10037    else
10038      # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10039    case `$LD -v 2>&1 </dev/null` in
10040    *GNU* | *'with BFD'*)
10041      lt_cv_prog_gnu_ld=yes
10042      ;;
10043    *)
10044      lt_cv_prog_gnu_ld=no
10045      ;;
10046    esac
10047    fi
10048    echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10049    echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10050    with_gnu_ld=$lt_cv_prog_gnu_ld
10051    
10052    
10053    
10054      # Check if GNU C++ uses GNU ld as the underlying linker, since the
10055      # archiving commands below assume that GNU ld is being used.
10056      if test "$with_gnu_ld" = yes; then
10057        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10058        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'
10059    
10060        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10061        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10062    
10063        # If archive_cmds runs LD, not CC, wlarc should be empty
10064        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10065        #     investigate it a little bit more. (MM)
10066        wlarc='${wl}'
10067    
10068        # ancient GNU ld didn't support --whole-archive et. al.
10069        if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10070            grep 'no-whole-archive' > /dev/null; then
10071          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10072        else
10073          whole_archive_flag_spec_CXX=
10074        fi
10075      else
10076        with_gnu_ld=no
10077        wlarc=
10078    
10079        # A generic and very simple default shared library creation
10080        # command for GNU C++ for the case where it uses the native
10081        # linker, instead of GNU ld.  If possible, this setting should
10082        # overridden to take advantage of the native linker features on
10083        # the platform it is being used on.
10084        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10085      fi
10086    
10087      # Commands to make compiler produce verbose output that lists
10088      # what "hidden" libraries, object files and flags are used when
10089      # linking a shared library.
10090      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10091    
10092    else
10093      GXX=no
10094      with_gnu_ld=no
10095      wlarc=
10096    fi
10097    
10098    # PORTME: fill in a description of your system's C++ link characteristics
10099    echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10100    echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10101    ld_shlibs_CXX=yes
10102    case $host_os in
10103      aix3*)
10104        # FIXME: insert proper C++ library support
10105        ld_shlibs_CXX=no
10106        ;;
10107      aix4* | aix5*)
10108        if test "$host_cpu" = ia64; then
10109          # On IA64, the linker does run time linking by default, so we don't
10110          # have to do anything special.
10111          aix_use_runtimelinking=no
10112          exp_sym_flag='-Bexport'
10113          no_entry_flag=""
10114        else
10115          aix_use_runtimelinking=no
10116    
10117          # Test if we are trying to use run time linking or normal
10118          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10119          # need to do runtime linking.
10120          case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10121            for ld_flag in $LDFLAGS; do
10122              case $ld_flag in
10123              *-brtl*)
10124                aix_use_runtimelinking=yes
10125                break
10126                ;;
10127              esac
10128            done
10129          esac
10130    
10131          exp_sym_flag='-bexport'
10132          no_entry_flag='-bnoentry'
10133        fi
10134    
10135        # When large executables or shared objects are built, AIX ld can
10136        # have problems creating the table of contents.  If linking a library
10137        # or program results in "error TOC overflow" add -mminimal-toc to
10138        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10139        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10140    
10141        archive_cmds_CXX=''
10142        hardcode_direct_CXX=yes
10143        hardcode_libdir_separator_CXX=':'
10144        link_all_deplibs_CXX=yes
10145    
10146        if test "$GXX" = yes; then
10147          case $host_os in aix4.012|aix4.012.*)
10148          # We only want to do this on AIX 4.2 and lower, the check
10149          # below for broken collect2 doesn't work under 4.3+
10150            collect2name=`${CC} -print-prog-name=collect2`
10151            if test -f "$collect2name" && \
10152               strings "$collect2name" | grep resolve_lib_name >/dev/null
10153            then
10154              # We have reworked collect2
10155              hardcode_direct_CXX=yes
10156            else
10157              # We have old collect2
10158              hardcode_direct_CXX=unsupported
10159              # It fails to find uninstalled libraries when the uninstalled
10160              # path is not listed in the libpath.  Setting hardcode_minus_L
10161              # to unsupported forces relinking
10162              hardcode_minus_L_CXX=yes
10163              hardcode_libdir_flag_spec_CXX='-L$libdir'
10164              hardcode_libdir_separator_CXX=
10165            fi
10166          esac
10167          shared_flag='-shared'
10168        else
10169          # not using gcc
10170          if test "$host_cpu" = ia64; then
10171            # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10172            # chokes on -Wl,-G. The following line is correct:
10173            shared_flag='-G'
10174          else
10175            if test "$aix_use_runtimelinking" = yes; then
10176              shared_flag='${wl}-G'
10177            else
10178              shared_flag='${wl}-bM:SRE'
10179            fi
10180          fi
10181        fi
10182    
10183        # It seems that -bexpall does not export symbols beginning with
10184        # underscore (_), so it is better to generate a list of symbols to export.
10185        always_export_symbols_CXX=yes
10186        if test "$aix_use_runtimelinking" = yes; then
10187          # Warning - without using the other runtime loading flags (-brtl),
10188          # -berok will link without error, but may produce a broken library.
10189          allow_undefined_flag_CXX='-berok'
10190          # Determine the default libpath from the value encoded in an empty executable.
10191          cat >conftest.$ac_ext <<_ACEOF
10192    /* confdefs.h.  */
10193    _ACEOF
10194    cat confdefs.h >>conftest.$ac_ext
10195    cat >>conftest.$ac_ext <<_ACEOF
10196    /* end confdefs.h.  */
10197    
10198    int
10199    main ()
10200    {
10201    
10202      ;
10203      return 0;
10204    }
10205    _ACEOF
10206    rm -f conftest.$ac_objext conftest$ac_exeext
10207    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10208      (eval $ac_link) 2>conftest.er1
10209      ac_status=$?
10210      grep -v '^ *+' conftest.er1 >conftest.err
10211      rm -f conftest.er1
10212      cat conftest.err >&5
10213      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214      (exit $ac_status); } &&
10215             { ac_try='test -z "$ac_cxx_werror_flag"
10216                             || test ! -s conftest.err'
10217      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218      (eval $ac_try) 2>&5
10219      ac_status=$?
10220      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221      (exit $ac_status); }; } &&
10222             { ac_try='test -s conftest$ac_exeext'
10223      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224      (eval $ac_try) 2>&5
10225      ac_status=$?
10226      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227      (exit $ac_status); }; }; then
10228    
10229    aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10230    }'`
10231    # Check for a 64-bit object if we didn't find anything.
10232    if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10233    }'`; fi
10234    else
10235      echo "$as_me: failed program was:" >&5
10236    sed 's/^/| /' conftest.$ac_ext >&5
10237    
10238    fi
10239    rm -f conftest.err conftest.$ac_objext \
10240          conftest$ac_exeext conftest.$ac_ext
10241    if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10242    
10243          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10244    
10245          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"
10246         else
10247          if test "$host_cpu" = ia64; then
10248            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10249            allow_undefined_flag_CXX="-z nodefs"
10250            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"
10251          else
10252            # Determine the default libpath from the value encoded in an empty executable.
10253            cat >conftest.$ac_ext <<_ACEOF
10254    /* confdefs.h.  */
10255    _ACEOF
10256    cat confdefs.h >>conftest.$ac_ext
10257    cat >>conftest.$ac_ext <<_ACEOF
10258    /* end confdefs.h.  */
10259    
10260    int
10261    main ()
10262    {
10263    
10264      ;
10265      return 0;
10266    }
10267    _ACEOF
10268    rm -f conftest.$ac_objext conftest$ac_exeext
10269    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10270      (eval $ac_link) 2>conftest.er1
10271      ac_status=$?
10272      grep -v '^ *+' conftest.er1 >conftest.err
10273      rm -f conftest.er1
10274      cat conftest.err >&5
10275      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276      (exit $ac_status); } &&
10277             { ac_try='test -z "$ac_cxx_werror_flag"
10278                             || test ! -s conftest.err'
10279      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280      (eval $ac_try) 2>&5
10281      ac_status=$?
10282      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283      (exit $ac_status); }; } &&
10284             { ac_try='test -s conftest$ac_exeext'
10285      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286      (eval $ac_try) 2>&5
10287      ac_status=$?
10288      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289      (exit $ac_status); }; }; then
10290    
10291    aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10292    }'`
10293    # Check for a 64-bit object if we didn't find anything.
10294    if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10295    }'`; fi
10296    else
10297      echo "$as_me: failed program was:" >&5
10298    sed 's/^/| /' conftest.$ac_ext >&5
10299    
10300    fi
10301    rm -f conftest.err conftest.$ac_objext \
10302          conftest$ac_exeext conftest.$ac_ext
10303    if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10304    
10305            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10306            # Warning - without using the other run time loading flags,
10307            # -berok will link without error, but may produce a broken library.
10308            no_undefined_flag_CXX=' ${wl}-bernotok'
10309            allow_undefined_flag_CXX=' ${wl}-berok'
10310            # -bexpall does not export symbols beginning with underscore (_)
10311            always_export_symbols_CXX=yes
10312            # Exported symbols can be pulled into shared objects from archives
10313            whole_archive_flag_spec_CXX=' '
10314            archive_cmds_need_lc_CXX=yes
10315            # This is similar to how AIX traditionally builds it's shared libraries.
10316            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'
10317          fi
10318        fi
10319        ;;
10320      chorus*)
10321        case $cc_basename in
10322          *)
10323            # FIXME: insert proper C++ library support
10324            ld_shlibs_CXX=no
10325            ;;
10326        esac
10327        ;;
10328    
10329      cygwin* | mingw* | pw32*)
10330        # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10331        # as there is no search path for DLLs.
10332        hardcode_libdir_flag_spec_CXX='-L$libdir'
10333        allow_undefined_flag_CXX=unsupported
10334        always_export_symbols_CXX=no
10335        enable_shared_with_static_runtimes_CXX=yes
10336    
10337        if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10338          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'
10339          # If the export-symbols file already is a .def file (1st line
10340          # is EXPORTS), use it as is; otherwise, prepend...
10341          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10342            cp $export_symbols $output_objdir/$soname.def;
10343          else
10344            echo EXPORTS > $output_objdir/$soname.def;
10345            cat $export_symbols >> $output_objdir/$soname.def;
10346          fi~
10347          $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'
10348        else
10349          ld_shlibs_CXX=no
10350        fi
10351      ;;
10352    
10353      darwin* | rhapsody*)
10354      if test "$GXX" = yes; then
10355        archive_cmds_need_lc_CXX=no
10356        case "$host_os" in
10357        rhapsody* | darwin1.[012])
10358          allow_undefined_flag_CXX='-undefined suppress'
10359          ;;
10360        *) # Darwin 1.3 on
10361          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10362            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10363          else
10364            case ${MACOSX_DEPLOYMENT_TARGET} in
10365              10.[012])
10366                allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10367                ;;
10368              10.*)
10369                allow_undefined_flag_CXX='-undefined dynamic_lookup'
10370                ;;
10371            esac
10372          fi
10373          ;;
10374        esac
10375        lt_int_apple_cc_single_mod=no
10376        output_verbose_link_cmd='echo'
10377        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10378          lt_int_apple_cc_single_mod=yes
10379        fi
10380        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10381          archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10382        else
10383          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'
10384        fi
10385        module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10386    
10387        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10388        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10389          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}'
10390        else
10391          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}'
10392        fi
10393        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}'
10394        hardcode_direct_CXX=no
10395        hardcode_automatic_CXX=yes
10396        hardcode_shlibpath_var_CXX=unsupported
10397        whole_archive_flag_spec_CXX='-all_load $convenience'
10398        link_all_deplibs_CXX=yes
10399      else
10400        ld_shlibs_CXX=no
10401      fi
10402        ;;
10403    
10404      dgux*)
10405        case $cc_basename in
10406          ec++)
10407            # FIXME: insert proper C++ library support
10408            ld_shlibs_CXX=no
10409            ;;
10410          ghcx)
10411            # Green Hills C++ Compiler
10412            # FIXME: insert proper C++ library support
10413            ld_shlibs_CXX=no
10414            ;;
10415          *)
10416            # FIXME: insert proper C++ library support
10417            ld_shlibs_CXX=no
10418            ;;
10419        esac
10420        ;;
10421      freebsd12*)
10422        # C++ shared libraries reported to be fairly broken before switch to ELF
10423        ld_shlibs_CXX=no
10424        ;;
10425      freebsd-elf*)
10426        archive_cmds_need_lc_CXX=no
10427        ;;
10428      freebsd* | kfreebsd*-gnu)
10429        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10430        # conventions
10431        ld_shlibs_CXX=yes
10432        ;;
10433      gnu*)
10434        ;;
10435      hpux9*)
10436        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10437        hardcode_libdir_separator_CXX=:
10438        export_dynamic_flag_spec_CXX='${wl}-E'
10439        hardcode_direct_CXX=yes
10440        hardcode_minus_L_CXX=yes # Not in the search PATH,
10441                                    # but as the default
10442                                    # location of the library.
10443    
10444        case $cc_basename in
10445        CC)
10446          # FIXME: insert proper C++ library support
10447          ld_shlibs_CXX=no
10448          ;;
10449        aCC)
10450          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'
10451          # Commands to make compiler produce verbose output that lists
10452          # what "hidden" libraries, object files and flags are used when
10453          # linking a shared library.
10454          #
10455          # There doesn't appear to be a way to prevent this compiler from
10456          # explicitly linking system object files so we need to strip them
10457          # from the output so that they don't get included in the library
10458          # dependencies.
10459          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'
10460          ;;
10461        *)
10462          if test "$GXX" = yes; then
10463            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'
10464          else
10465            # FIXME: insert proper C++ library support
10466            ld_shlibs_CXX=no
10467          fi
10468          ;;
10469        esac
10470        ;;
10471      hpux10*|hpux11*)
10472        if test $with_gnu_ld = no; then
10473          case "$host_cpu" in
10474          hppa*64*)
10475            hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10476            hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10477            hardcode_libdir_separator_CXX=:
10478            ;;
10479          ia64*)
10480            hardcode_libdir_flag_spec_CXX='-L$libdir'
10481            ;;
10482          *)
10483            hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10484            hardcode_libdir_separator_CXX=:
10485            export_dynamic_flag_spec_CXX='${wl}-E'
10486            ;;
10487          esac
10488        fi
10489        case "$host_cpu" in
10490        hppa*64*)
10491          hardcode_direct_CXX=no
10492          hardcode_shlibpath_var_CXX=no
10493          ;;
10494        ia64*)
10495          hardcode_direct_CXX=no
10496          hardcode_shlibpath_var_CXX=no
10497          hardcode_minus_L_CXX=yes # Not in the search PATH,
10498                                                  # but as the default
10499                                                  # location of the library.
10500          ;;
10501        *)
10502          hardcode_direct_CXX=yes
10503          hardcode_minus_L_CXX=yes # Not in the search PATH,
10504                                                  # but as the default
10505                                                  # location of the library.
10506          ;;
10507        esac
10508    
10509        case $cc_basename in
10510          CC)
10511            # FIXME: insert proper C++ library support
10512            ld_shlibs_CXX=no
10513            ;;
10514          aCC)
10515            case "$host_cpu" in
10516            hppa*64*|ia64*)
10517              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10518              ;;
10519            *)
10520              archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10521              ;;
10522            esac
10523            # Commands to make compiler produce verbose output that lists
10524            # what "hidden" libraries, object files and flags are used when
10525            # linking a shared library.
10526            #
10527            # There doesn't appear to be a way to prevent this compiler from
10528            # explicitly linking system object files so we need to strip them
10529            # from the output so that they don't get included in the library
10530            # dependencies.
10531            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'
10532            ;;
10533          *)
10534            if test "$GXX" = yes; then
10535              if test $with_gnu_ld = no; then
10536                case "$host_cpu" in
10537                ia64*|hppa*64*)
10538                  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10539                  ;;
10540                *)
10541                  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'
10542                  ;;
10543                esac
10544              fi
10545            else
10546              # FIXME: insert proper C++ library support
10547              ld_shlibs_CXX=no
10548            fi
10549            ;;
10550        esac
10551        ;;
10552      irix5* | irix6*)
10553        case $cc_basename in
10554          CC)
10555            # SGI C++
10556            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'
10557    
10558            # Archives containing C++ object files must be created using
10559            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10560            # necessary to make sure instantiated templates are included
10561            # in the archive.
10562            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10563            ;;
10564          *)
10565            if test "$GXX" = yes; then
10566              if test "$with_gnu_ld" = no; then
10567                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'
10568              else
10569                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'
10570              fi
10571            fi
10572            link_all_deplibs_CXX=yes
10573            ;;
10574        esac
10575        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10576        hardcode_libdir_separator_CXX=:
10577        ;;
10578      linux*)
10579        case $cc_basename in
10580          KCC)
10581            # Kuck and Associates, Inc. (KAI) C++ Compiler
10582    
10583            # KCC will only create a shared library if the output file
10584            # ends with ".so" (or ".sl" for HP-UX), so rename the library
10585            # to its proper name (with version) after linking.
10586            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'
10587            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'
10588            # Commands to make compiler produce verbose output that lists
10589            # what "hidden" libraries, object files and flags are used when
10590            # linking a shared library.
10591            #
10592            # There doesn't appear to be a way to prevent this compiler from
10593            # explicitly linking system object files so we need to strip them
10594            # from the output so that they don't get included in the library
10595            # dependencies.
10596            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'
10597    
10598            hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10599            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10600    
10601            # Archives containing C++ object files must be created using
10602            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10603            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10604            ;;
10605          icpc)
10606            # Intel C++
10607            with_gnu_ld=yes
10608            archive_cmds_need_lc_CXX=no
10609            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10610            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'
10611            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10612            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10613            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10614            ;;
10615          cxx)
10616            # Compaq C++
10617            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10618            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'
10619    
10620            runpath_var=LD_RUN_PATH
10621            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10622            hardcode_libdir_separator_CXX=:
10623    
10624            # Commands to make compiler produce verbose output that lists
10625            # what "hidden" libraries, object files and flags are used when
10626            # linking a shared library.
10627            #
10628            # There doesn't appear to be a way to prevent this compiler from
10629            # explicitly linking system object files so we need to strip them
10630            # from the output so that they don't get included in the library
10631            # dependencies.
10632            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'
10633            ;;
10634        esac
10635        ;;
10636      lynxos*)
10637        # FIXME: insert proper C++ library support
10638        ld_shlibs_CXX=no
10639        ;;
10640      m88k*)
10641        # FIXME: insert proper C++ library support
10642        ld_shlibs_CXX=no
10643        ;;
10644      mvs*)
10645        case $cc_basename in
10646          cxx)
10647            # FIXME: insert proper C++ library support
10648            ld_shlibs_CXX=no
10649            ;;
10650          *)
10651            # FIXME: insert proper C++ library support
10652            ld_shlibs_CXX=no
10653            ;;
10654        esac
10655        ;;
10656      netbsd*)
10657        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10658          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10659          wlarc=
10660          hardcode_libdir_flag_spec_CXX='-R$libdir'
10661          hardcode_direct_CXX=yes
10662          hardcode_shlibpath_var_CXX=no
10663        fi
10664        # Workaround some broken pre-1.5 toolchains
10665        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10666        ;;
10667      osf3*)
10668        case $cc_basename in
10669          KCC)
10670            # Kuck and Associates, Inc. (KAI) C++ Compiler
10671    
10672            # KCC will only create a shared library if the output file
10673            # ends with ".so" (or ".sl" for HP-UX), so rename the library
10674            # to its proper name (with version) after linking.
10675            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'
10676    
10677            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10678            hardcode_libdir_separator_CXX=:
10679    
10680            # Archives containing C++ object files must be created using
10681            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10682            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10683    
10684            ;;
10685          RCC)
10686            # Rational C++ 2.4.1
10687            # FIXME: insert proper C++ library support
10688            ld_shlibs_CXX=no
10689            ;;
10690          cxx)
10691            allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10692            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'
10693    
10694            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10695            hardcode_libdir_separator_CXX=:
10696    
10697            # Commands to make compiler produce verbose output that lists
10698            # what "hidden" libraries, object files and flags are used when
10699            # linking a shared library.
10700            #
10701            # There doesn't appear to be a way to prevent this compiler from
10702            # explicitly linking system object files so we need to strip them
10703            # from the output so that they don't get included in the library
10704            # dependencies.
10705            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'
10706            ;;
10707          *)
10708            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10709              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10710              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'
10711    
10712              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10713              hardcode_libdir_separator_CXX=:
10714    
10715              # Commands to make compiler produce verbose output that lists
10716              # what "hidden" libraries, object files and flags are used when
10717              # linking a shared library.
10718              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10719    
10720            else
10721              # FIXME: insert proper C++ library support
10722              ld_shlibs_CXX=no
10723            fi
10724            ;;
10725        esac
10726        ;;
10727      osf4* | osf5*)
10728        case $cc_basename in
10729          KCC)
10730            # Kuck and Associates, Inc. (KAI) C++ Compiler
10731    
10732            # KCC will only create a shared library if the output file
10733            # ends with ".so" (or ".sl" for HP-UX), so rename the library
10734            # to its proper name (with version) after linking.
10735            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'
10736    
10737            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10738            hardcode_libdir_separator_CXX=:
10739    
10740            # Archives containing C++ object files must be created using
10741            # the KAI C++ compiler.
10742            old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10743            ;;
10744          RCC)
10745            # Rational C++ 2.4.1
10746            # FIXME: insert proper C++ library support
10747            ld_shlibs_CXX=no
10748            ;;
10749          cxx)
10750            allow_undefined_flag_CXX=' -expect_unresolved \*'
10751            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'
10752            archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10753              echo "-hidden">> $lib.exp~
10754              $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~
10755              $rm $lib.exp'
10756    
10757            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10758            hardcode_libdir_separator_CXX=:
10759    
10760            # Commands to make compiler produce verbose output that lists
10761            # what "hidden" libraries, object files and flags are used when
10762            # linking a shared library.
10763            #
10764            # There doesn't appear to be a way to prevent this compiler from
10765            # explicitly linking system object files so we need to strip them
10766            # from the output so that they don't get included in the library
10767            # dependencies.
10768            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'
10769            ;;
10770          *)
10771            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10772              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10773             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'
10774    
10775              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10776              hardcode_libdir_separator_CXX=:
10777    
10778              # Commands to make compiler produce verbose output that lists
10779              # what "hidden" libraries, object files and flags are used when
10780              # linking a shared library.
10781              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10782    
10783            else
10784              # FIXME: insert proper C++ library support
10785              ld_shlibs_CXX=no
10786            fi
10787            ;;
10788        esac
10789        ;;
10790      psos*)
10791        # FIXME: insert proper C++ library support
10792        ld_shlibs_CXX=no
10793        ;;
10794      sco*)
10795        archive_cmds_need_lc_CXX=no
10796        case $cc_basename in
10797          CC)
10798            # FIXME: insert proper C++ library support
10799            ld_shlibs_CXX=no
10800            ;;
10801          *)
10802            # FIXME: insert proper C++ library support
10803            ld_shlibs_CXX=no
10804            ;;
10805        esac
10806        ;;
10807      sunos4*)
10808        case $cc_basename in
10809          CC)
10810            # Sun C++ 4.x
10811            # FIXME: insert proper C++ library support
10812            ld_shlibs_CXX=no
10813            ;;
10814          lcc)
10815            # Lucid
10816            # FIXME: insert proper C++ library support
10817            ld_shlibs_CXX=no
10818            ;;
10819          *)
10820            # FIXME: insert proper C++ library support
10821            ld_shlibs_CXX=no
10822            ;;
10823        esac
10824        ;;
10825      solaris*)
10826        case $cc_basename in
10827          CC)
10828            # Sun C++ 4.2, 5.x and Centerline C++
10829            no_undefined_flag_CXX=' -zdefs'
10830            archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10831            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10832            $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'
10833    
10834            hardcode_libdir_flag_spec_CXX='-R$libdir'
10835            hardcode_shlibpath_var_CXX=no
10836            case $host_os in
10837              solaris2.0-5 | solaris2.0-5.*) ;;
10838              *)
10839                # The C++ compiler is used as linker so we must use $wl
10840                # flag to pass the commands to the underlying system
10841                # linker.
10842                # Supported since Solaris 2.6 (maybe 2.5.1?)
10843                whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10844                ;;
10845            esac
10846            link_all_deplibs_CXX=yes
10847    
10848            # Commands to make compiler produce verbose output that lists
10849            # what "hidden" libraries, object files and flags are used when
10850            # linking a shared library.
10851            #
10852            # There doesn't appear to be a way to prevent this compiler from
10853            # explicitly linking system object files so we need to strip them
10854            # from the output so that they don't get included in the library
10855            # dependencies.
10856            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'
10857    
10858            # Archives containing C++ object files must be created using
10859            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10860            # necessary to make sure instantiated templates are included
10861            # in the archive.
10862            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10863            ;;
10864          gcx)
10865            # Green Hills C++ Compiler
10866            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10867    
10868            # The C++ compiler must be used to create the archive.
10869            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10870            ;;
10871          *)
10872            # GNU C++ compiler with Solaris linker
10873            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10874              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10875              if $CC --version | grep -v '^2\.7' > /dev/null; then
10876                archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10877                archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10878                    $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10879    
10880                # Commands to make compiler produce verbose output that lists
10881                # what "hidden" libraries, object files and flags are used when
10882                # linking a shared library.
10883                output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10884              else
10885                # g++ 2.7 appears to require `-G' NOT `-shared' on this
10886                # platform.
10887                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10888                archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10889                    $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10890    
10891                # Commands to make compiler produce verbose output that lists
10892                # what "hidden" libraries, object files and flags are used when
10893                # linking a shared library.
10894                output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10895              fi
10896    
10897              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10898            fi
10899            ;;
10900        esac
10901        ;;
10902      sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10903        archive_cmds_need_lc_CXX=no
10904        ;;
10905      tandem*)
10906        case $cc_basename in
10907          NCC)
10908            # NonStop-UX NCC 3.20
10909            # FIXME: insert proper C++ library support
10910            ld_shlibs_CXX=no
10911            ;;
10912          *)
10913            # FIXME: insert proper C++ library support
10914            ld_shlibs_CXX=no
10915            ;;
10916        esac
10917        ;;
10918      vxworks*)
10919        # FIXME: insert proper C++ library support
10920        ld_shlibs_CXX=no
10921        ;;
10922      *)
10923        # FIXME: insert proper C++ library support
10924        ld_shlibs_CXX=no
10925        ;;
10926    esac
10927    echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10928    echo "${ECHO_T}$ld_shlibs_CXX" >&6
10929    test "$ld_shlibs_CXX" = no && can_build_shared=no
10930    
10931    GCC_CXX="$GXX"
10932    LD_CXX="$LD"
10933    
10934    
10935    cat > conftest.$ac_ext <<EOF
10936    class Foo
10937    {
10938    public:
10939      Foo (void) { a = 0; }
10940    private:
10941      int a;
10942    };
10943    EOF
10944    
10945    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10946      (eval $ac_compile) 2>&5
10947      ac_status=$?
10948      echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949      (exit $ac_status); }; then
10950      # Parse the compiler output and extract the necessary
10951      # objects, libraries and library flags.
10952    
10953      # Sentinel used to keep track of whether or not we are before
10954      # the conftest object file.
10955      pre_test_object_deps_done=no
10956    
10957      # The `*' in the case matches for architectures that use `case' in
10958      # $output_verbose_cmd can trigger glob expansion during the loop
10959      # eval without this substitution.
10960      output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10961    
10962      for p in `eval $output_verbose_link_cmd`; do
10963        case $p in
10964    
10965        -L* | -R* | -l*)
10966           # Some compilers place space between "-{L,R}" and the path.
10967           # Remove the space.
10968           if test $p = "-L" \
10969              || test $p = "-R"; then
10970             prev=$p
10971             continue
10972           else
10973             prev=
10974           fi
10975    
10976           if test "$pre_test_object_deps_done" = no; then
10977             case $p in
10978             -L* | -R*)
10979               # Internal compiler library paths should come after those
10980               # provided the user.  The postdeps already come after the
10981               # user supplied libs so there is no need to process them.
10982               if test -z "$compiler_lib_search_path_CXX"; then
10983                 compiler_lib_search_path_CXX="${prev}${p}"
10984               else
10985                 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10986               fi
10987               ;;
10988             # The "-l" case would never come before the object being
10989             # linked, so don't bother handling this case.
10990             esac
10991           else
10992             if test -z "$postdeps_CXX"; then
10993               postdeps_CXX="${prev}${p}"
10994             else
10995               postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10996             fi
10997           fi
10998           ;;
10999    
11000        *.$objext)
11001           # This assumes that the test object file only shows up
11002           # once in the compiler output.
11003           if test "$p" = "conftest.$objext"; then
11004             pre_test_object_deps_done=yes
11005             continue
11006           fi
11007    
11008           if test "$pre_test_object_deps_done" = no; then
11009             if test -z "$predep_objects_CXX"; then
11010               predep_objects_CXX="$p"
11011             else
11012               predep_objects_CXX="$predep_objects_CXX $p"
11013             fi
11014           else
11015             if test -z "$postdep_objects_CXX"; then
11016               postdep_objects_CXX="$p"
11017             else
11018               postdep_objects_CXX="$postdep_objects_CXX $p"
11019             fi
11020           fi
11021           ;;
11022    
11023        *) ;; # Ignore the rest.
11024    
11025        esac
11026      done
11027    
11028      # Clean up.
11029      rm -f a.out a.exe
11030    else
11031      echo "libtool.m4: error: problem compiling CXX test program"
11032    fi
11033    
11034    $rm -f confest.$objext
11035    
11036    case " $postdeps_CXX " in
11037    *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11038    esac
11039    
11040    lt_prog_compiler_wl_CXX=
11041    lt_prog_compiler_pic_CXX=
11042    lt_prog_compiler_static_CXX=
11043    
11044    echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11045    echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11046    
11047      # C++ specific cases for pic, static, wl, etc.
11048      if test "$GXX" = yes; then
11049        lt_prog_compiler_wl_CXX='-Wl,'
11050        lt_prog_compiler_static_CXX='-static'
11051    
11052        case $host_os in
11053        aix*)
11054          # All AIX code is PIC.
11055          if test "$host_cpu" = ia64; then
11056            # AIX 5 now supports IA64 processor
11057            lt_prog_compiler_static_CXX='-Bstatic'
11058          fi
11059          ;;
11060        amigaos*)
11061          # FIXME: we need at least 68020 code to build shared libraries, but
11062          # adding the `-m68020' flag to GCC prevents building anything better,
11063          # like `-m68040'.
11064          lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11065          ;;
11066        beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11067          # PIC is the default for these OSes.
11068          ;;
11069        mingw* | os2* | pw32*)
11070          # This hack is so that the source file can tell whether it is being
11071          # built for inclusion in a dll (and should export symbols for example).
11072          lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11073          ;;
11074        darwin* | rhapsody*)
11075          # PIC is the default on this platform
11076          # Common symbols not allowed in MH_DYLIB files
11077          lt_prog_compiler_pic_CXX='-fno-common'
11078          ;;
11079        *djgpp*)
11080          # DJGPP does not support shared libraries at all
11081          lt_prog_compiler_pic_CXX=
11082          ;;
11083        sysv4*MP*)
11084          if test -d /usr/nec; then
11085            lt_prog_compiler_pic_CXX=-Kconform_pic
11086          fi
11087          ;;
11088        hpux*)
11089          # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11090          # not for PA HP-UX.
11091          case "$host_cpu" in
11092          hppa*64*|ia64*)
11093            ;;
11094          *)
11095            lt_prog_compiler_pic_CXX='-fPIC'
11096            ;;
11097          esac
11098          ;;
11099        *)
11100          lt_prog_compiler_pic_CXX='-fPIC'
11101          ;;
11102        esac
11103      else
11104        case $host_os in
11105          aix4* | aix5*)
11106            # All AIX code is PIC.
11107            if test "$host_cpu" = ia64; then
11108              # AIX 5 now supports IA64 processor
11109              lt_prog_compiler_static_CXX='-Bstatic'
11110            else
11111              lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11112            fi
11113            ;;
11114          chorus*)
11115            case $cc_basename in
11116            cxch68)
11117              # Green Hills C++ Compiler
11118              # _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"
11119              ;;
11120            esac
11121            ;;
11122          dgux*)
11123            case $cc_basename in
11124              ec++)
11125                lt_prog_compiler_pic_CXX='-KPIC'
11126                ;;
11127              ghcx)
11128                # Green Hills C++ Compiler
11129                lt_prog_compiler_pic_CXX='-pic'
11130                ;;
11131              *)
11132                ;;
11133            esac
11134            ;;
11135          freebsd* | kfreebsd*-gnu)
11136            # FreeBSD uses GNU C++
11137            ;;
11138          hpux9* | hpux10* | hpux11*)
11139            case $cc_basename in
11140              CC)
11141                lt_prog_compiler_wl_CXX='-Wl,'
11142                lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11143                if test "$host_cpu" != ia64; then
11144                  lt_prog_compiler_pic_CXX='+Z'
11145                fi
11146                ;;
11147              aCC)
11148                lt_prog_compiler_wl_CXX='-Wl,'
11149                lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11150                case "$host_cpu" in
11151                hppa*64*|ia64*)
11152                  # +Z the default
11153                  ;;
11154                *)
11155                  lt_prog_compiler_pic_CXX='+Z'
11156                  ;;
11157                esac
11158                ;;
11159              *)
11160                ;;
11161            esac
11162            ;;
11163          irix5* | irix6* | nonstopux*)
11164            case $cc_basename in
11165              CC)
11166                lt_prog_compiler_wl_CXX='-Wl,'
11167                lt_prog_compiler_static_CXX='-non_shared'
11168                # CC pic flag -KPIC is the default.
11169                ;;
11170              *)
11171                ;;
11172            esac
11173            ;;
11174          linux*)
11175            case $cc_basename in
11176              KCC)
11177                # KAI C++ Compiler
11178                lt_prog_compiler_wl_CXX='--backend -Wl,'
11179                lt_prog_compiler_pic_CXX='-fPIC'
11180                ;;
11181              icpc)
11182                # Intel C++
11183                lt_prog_compiler_wl_CXX='-Wl,'
11184                lt_prog_compiler_pic_CXX='-KPIC'
11185                lt_prog_compiler_static_CXX='-static'
11186                ;;
11187              cxx)
11188                # Compaq C++
11189                # Make sure the PIC flag is empty.  It appears that all Alpha
11190                # Linux and Compaq Tru64 Unix objects are PIC.
11191                lt_prog_compiler_pic_CXX=
11192                lt_prog_compiler_static_CXX='-non_shared'
11193                ;;
11194              *)
11195                ;;
11196            esac
11197            ;;
11198          lynxos*)
11199            ;;
11200          m88k*)
11201            ;;
11202          mvs*)
11203            case $cc_basename in
11204              cxx)
11205                lt_prog_compiler_pic_CXX='-W c,exportall'
11206                ;;
11207              *)
11208                ;;
11209            esac
11210            ;;
11211          netbsd*)
11212            ;;
11213          osf3* | osf4* | osf5*)
11214            case $cc_basename in
11215              KCC)
11216                lt_prog_compiler_wl_CXX='--backend -Wl,'
11217                ;;
11218              RCC)
11219                # Rational C++ 2.4.1
11220                lt_prog_compiler_pic_CXX='-pic'
11221                ;;
11222              cxx)
11223                # Digital/Compaq C++
11224                lt_prog_compiler_wl_CXX='-Wl,'
11225                # Make sure the PIC flag is empty.  It appears that all Alpha
11226                # Linux and Compaq Tru64 Unix objects are PIC.
11227                lt_prog_compiler_pic_CXX=
11228                lt_prog_compiler_static_CXX='-non_shared'
11229                ;;
11230              *)
11231                ;;
11232            esac
11233            ;;
11234          psos*)
11235            ;;
11236          sco*)
11237            case $cc_basename in
11238              CC)
11239                lt_prog_compiler_pic_CXX='-fPIC'
11240                ;;
11241              *)
11242                ;;
11243            esac
11244            ;;
11245          solaris*)
11246            case $cc_basename in
11247              CC)
11248                # Sun C++ 4.2, 5.x and Centerline C++
11249                lt_prog_compiler_pic_CXX='-KPIC'
11250                lt_prog_compiler_static_CXX='-Bstatic'
11251                lt_prog_compiler_wl_CXX='-Qoption ld '
11252                ;;
11253              gcx)
11254                # Green Hills C++ Compiler
11255                lt_prog_compiler_pic_CXX='-PIC'
11256                ;;
11257              *)
11258                ;;
11259            esac
11260            ;;
11261          sunos4*)
11262            case $cc_basename in
11263              CC)
11264                # Sun C++ 4.x
11265                lt_prog_compiler_pic_CXX='-pic'
11266                lt_prog_compiler_static_CXX='-Bstatic'
11267                ;;
11268              lcc)
11269                # Lucid
11270                lt_prog_compiler_pic_CXX='-pic'
11271                ;;
11272              *)
11273                ;;
11274            esac
11275            ;;
11276          tandem*)
11277            case $cc_basename in
11278              NCC)
11279                # NonStop-UX NCC 3.20
11280                lt_prog_compiler_pic_CXX='-KPIC'
11281                ;;
11282              *)
11283                ;;
11284            esac
11285            ;;
11286          unixware*)
11287            ;;
11288          vxworks*)
11289            ;;
11290          *)
11291            lt_prog_compiler_can_build_shared_CXX=no
11292            ;;
11293        esac
11294      fi
11295    
11296    echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11297    echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11298    
11299    #
11300    # Check to make sure the PIC flag actually works.
11301    #
11302    if test -n "$lt_prog_compiler_pic_CXX"; then
11303    
11304    echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11305    echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11306    if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11307      echo $ECHO_N "(cached) $ECHO_C" >&6
11308    else
11309      lt_prog_compiler_pic_works_CXX=no
11310      ac_outfile=conftest.$ac_objext
11311       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11312       lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11313       # Insert the option either (1) after the last *FLAGS variable, or
11314       # (2) before a word containing "conftest.", or (3) at the end.
11315       # Note that $ac_compile itself does not contain backslashes and begins
11316       # with a dollar sign (not a hyphen), so the echo should work correctly.
11317       # The option is referenced via a variable to avoid confusing sed.
11318       lt_compile=`echo "$ac_compile" | $SED \
11319       -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11320       -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11321       -e 's:$: $lt_compiler_flag:'`
11322       (eval echo "\"\$as_me:11322: $lt_compile\"" >&5)
11323       (eval "$lt_compile" 2>conftest.err)
11324       ac_status=$?
11325       cat conftest.err >&5
11326       echo "$as_me:11326: \$? = $ac_status" >&5
11327       if (exit $ac_status) && test -s "$ac_outfile"; then
11328         # The compiler can only warn and ignore the option if not recognized
11329         # So say no if there are warnings
11330         if test ! -s conftest.err; then
11331           lt_prog_compiler_pic_works_CXX=yes
11332         fi
11333       fi
11334       $rm conftest*
11335    
11336    fi
11337    echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11338    echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11339    
11340    if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11341        case $lt_prog_compiler_pic_CXX in
11342         "" | " "*) ;;
11343         *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11344         esac
11345    else
11346        lt_prog_compiler_pic_CXX=
11347         lt_prog_compiler_can_build_shared_CXX=no
11348    fi
11349    
11350    fi
11351    case "$host_os" in
11352      # For platforms which do not support PIC, -DPIC is meaningless:
11353      *djgpp*)
11354        lt_prog_compiler_pic_CXX=
11355        ;;
11356      *)
11357        lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11358        ;;
11359    esac
11360    
11361    echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11362    echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11363    if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11364      echo $ECHO_N "(cached) $ECHO_C" >&6
11365    else
11366      lt_cv_prog_compiler_c_o_CXX=no
11367       $rm -r conftest 2>/dev/null
11368       mkdir conftest
11369       cd conftest
11370       mkdir out
11371       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11372    
11373       lt_compiler_flag="-o out/conftest2.$ac_objext"
11374       # Insert the option either (1) after the last *FLAGS variable, or
11375       # (2) before a word containing "conftest.", or (3) at the end.
11376       # Note that $ac_compile itself does not contain backslashes and begins
11377       # with a dollar sign (not a hyphen), so the echo should work correctly.
11378       lt_compile=`echo "$ac_compile" | $SED \
11379       -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11380       -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11381       -e 's:$: $lt_compiler_flag:'`
11382       (eval echo "\"\$as_me:11382: $lt_compile\"" >&5)
11383       (eval "$lt_compile" 2>out/conftest.err)
11384       ac_status=$?
11385       cat out/conftest.err >&5
11386       echo "$as_me:11386: \$? = $ac_status" >&5
11387       if (exit $ac_status) && test -s out/conftest2.$ac_objext
11388       then
11389         # The compiler can only warn and ignore the option if not recognized
11390         # So say no if there are warnings
11391         if test ! -s out/conftest.err; then
11392           lt_cv_prog_compiler_c_o_CXX=yes
11393         fi
11394       fi
11395       chmod u+w .
11396       $rm conftest*
11397       # SGI C++ compiler will create directory out/ii_files/ for
11398       # template instantiation
11399       test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11400       $rm out/* && rmdir out
11401       cd ..
11402       rmdir conftest
11403       $rm conftest*
11404    
11405    fi
11406    echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11407    echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11408    
11409    
11410    hard_links="nottested"
11411    if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11412      # do not overwrite the value of need_locks provided by the user
11413      echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11414    echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11415      hard_links=yes
11416      $rm conftest*
11417      ln conftest.a conftest.b 2>/dev/null && hard_links=no
11418      touch conftest.a
11419      ln conftest.a conftest.b 2>&5 || hard_links=no
11420      ln conftest.a conftest.b 2>/dev/null && hard_links=no
11421      echo "$as_me:$LINENO: result: $hard_links" >&5
11422    echo "${ECHO_T}$hard_links" >&6
11423      if test "$hard_links" = no; then
11424        { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11425    echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11426        need_locks=warn
11427      fi
11428    else
11429      need_locks=no
11430    fi
11431    
11432    echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11433    echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11434    
11435      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11436      case $host_os in
11437      aix4* | aix5*)
11438        # If we're using GNU nm, then we don't want the "-C" option.
11439        # -C means demangle to AIX nm, but means don't demangle with GNU nm
11440        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11441          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'
11442        else
11443          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'
11444        fi
11445        ;;
11446      pw32*)
11447        export_symbols_cmds_CXX="$ltdll_cmds"
11448      ;;
11449      cygwin* | mingw*)
11450        export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11451      ;;
11452      *)
11453        export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11454      ;;
11455      esac
11456    
11457    echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11458    echo "${ECHO_T}$ld_shlibs_CXX" >&6
11459    test "$ld_shlibs_CXX" = no && can_build_shared=no
11460    
11461    variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11462    if test "$GCC" = yes; then
11463      variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11464    fi
11465    
11466    #
11467    # Do we need to explicitly link libc?
11468    #
11469    case "x$archive_cmds_need_lc_CXX" in
11470    x|xyes)
11471      # Assume -lc should be added
11472      archive_cmds_need_lc_CXX=yes
11473    
11474      if test "$enable_shared" = yes && test "$GCC" = yes; then
11475        case $archive_cmds_CXX in
11476        *'~'*)
11477          # FIXME: we may have to deal with multi-command sequences.
11478          ;;
11479        '$CC '*)
11480          # Test whether the compiler implicitly links with -lc since on some
11481          # systems, -lgcc has to come before -lc. If gcc already passes -lc
11482          # to ld, don't add -lc before -lgcc.
11483          echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11484    echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11485          $rm conftest*
11486          printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11487    
11488          if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11489      (eval $ac_compile) 2>&5
11490      ac_status=$?
11491      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492      (exit $ac_status); } 2>conftest.err; then
11493            soname=conftest
11494            lib=conftest
11495            libobjs=conftest.$ac_objext
11496            deplibs=
11497            wl=$lt_prog_compiler_wl_CXX
11498            compiler_flags=-v
11499            linker_flags=-v
11500            verstring=
11501            output_objdir=.
11502            libname=conftest
11503            lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11504            allow_undefined_flag_CXX=
11505            if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11506      (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11507      ac_status=$?
11508      echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509      (exit $ac_status); }
11510            then
11511              archive_cmds_need_lc_CXX=no
11512            else
11513              archive_cmds_need_lc_CXX=yes
11514            fi
11515            allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11516          else
11517            cat conftest.err 1>&5
11518          fi
11519          $rm conftest*
11520          echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11521    echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11522          ;;
11523        esac
11524      fi
11525      ;;
11526    esac
11527    
11528    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11529    echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11530    library_names_spec=
11531    libname_spec='lib$name'
11532    soname_spec=
11533    shrext_cmds=".so"
11534    postinstall_cmds=
11535    postuninstall_cmds=
11536    finish_cmds=
11537    finish_eval=
11538    shlibpath_var=
11539    shlibpath_overrides_runpath=unknown
11540    version_type=none
11541    dynamic_linker="$host_os ld.so"
11542    sys_lib_dlsearch_path_spec="/lib /usr/lib"
11543    if test "$GCC" = yes; then
11544      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11545      if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11546        # if the path contains ";" then we assume it to be the separator
11547        # otherwise default to the standard path separator (i.e. ":") - it is
11548        # assumed that no part of a normal pathname contains ";" but that should
11549        # okay in the real world where ";" in dirpaths is itself problematic.
11550        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11551      else
11552        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11553      fi
11554    else
11555      sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11556    fi
11557    need_lib_prefix=unknown
11558    hardcode_into_libs=no
11559    
11560    # when you set need_version to no, make sure it does not cause -set_version
11561    # flags to be left without arguments
11562    need_version=unknown
11563    
11564    case $host_os in
11565    aix3*)
11566      version_type=linux
11567      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11568      shlibpath_var=LIBPATH
11569    
11570      # AIX 3 has no versioning support, so we append a major version to the name.
11571      soname_spec='${libname}${release}${shared_ext}$major'
11572      ;;
11573    
11574    aix4* | aix5*)
11575      version_type=linux
11576      need_lib_prefix=no
11577      need_version=no
11578      hardcode_into_libs=yes
11579      if test "$host_cpu" = ia64; then
11580        # AIX 5 supports IA64
11581        library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11582        shlibpath_var=LD_LIBRARY_PATH
11583      else
11584        # With GCC up to 2.95.x, collect2 would create an import file
11585        # for dependence libraries.  The import file would start with
11586        # the line `#! .'.  This would cause the generated library to
11587        # depend on `.', always an invalid library.  This was fixed in
11588        # development snapshots of GCC prior to 3.0.
11589        case $host_os in
11590          aix4 | aix4.[01] | aix4.[01].*)
11591          if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11592               echo ' yes '
11593               echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11594            :
11595          else
11596            can_build_shared=no
11597          fi
11598          ;;
11599        esac
11600        # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11601        # soname into executable. Probably we can add versioning support to
11602        # collect2, so additional links can be useful in future.
11603        if test "$aix_use_runtimelinking" = yes; then
11604          # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11605          # instead of lib<name>.a to let people know that these are not
11606          # typical AIX shared libraries.
11607          library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608        else
11609          # We preserve .a as extension for shared libraries through AIX4.2
11610          # and later when we are not doing run time linking.
11611          library_names_spec='${libname}${release}.a $libname.a'
11612          soname_spec='${libname}${release}${shared_ext}$major'
11613        fi
11614        shlibpath_var=LIBPATH
11615      fi
11616      ;;
11617    
11618    amigaos*)
11619      library_names_spec='$libname.ixlibrary $libname.a'
11620      # Create ${libname}_ixlibrary.a entries in /sys/libs.
11621      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'
11622      ;;
11623    
11624    beos*)
11625      library_names_spec='${libname}${shared_ext}'
11626      dynamic_linker="$host_os ld.so"
11627      shlibpath_var=LIBRARY_PATH
11628      ;;
11629    
11630    bsdi4*)
11631      version_type=linux
11632      need_version=no
11633      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634      soname_spec='${libname}${release}${shared_ext}$major'
11635      finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11636      shlibpath_var=LD_LIBRARY_PATH
11637      sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11638      sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11639      # the default ld.so.conf also contains /usr/contrib/lib and
11640      # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11641      # libtool to hard-code these into programs
11642      ;;
11643    
11644    cygwin* | mingw* | pw32*)
11645      version_type=windows
11646      shrext_cmds=".dll"
11647      need_version=no
11648      need_lib_prefix=no
11649    
11650      case $GCC,$host_os in
11651      yes,cygwin* | yes,mingw* | yes,pw32*)
11652        library_names_spec='$libname.dll.a'
11653        # DLL is installed to $(libdir)/../bin by postinstall_cmds
11654        postinstall_cmds='base_file=`basename \${file}`~
11655          dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11656          dldir=$destdir/`dirname \$dlpath`~
11657          test -d \$dldir || mkdir -p \$dldir~
11658          $install_prog $dir/$dlname \$dldir/$dlname'
11659        postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11660          dlpath=$dir/\$dldll~
11661           $rm \$dlpath'
11662        shlibpath_overrides_runpath=yes
11663    
11664        case $host_os in
11665        cygwin*)
11666          # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11667          soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11668          sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11669          ;;
11670        mingw*)
11671          # MinGW DLLs use traditional 'lib' prefix
11672          soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11673          sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11674          if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11675            # It is most probably a Windows format PATH printed by
11676            # mingw gcc, but we are running on Cygwin. Gcc prints its search
11677            # path with ; separators, and with drive letters. We can handle the
11678            # drive letters (cygwin fileutils understands them), so leave them,
11679            # especially as we might pass files found there to a mingw objdump,
11680            # which wouldn't understand a cygwinified path. Ahh.
11681            sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11682          else
11683            sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11684          fi
11685          ;;
11686        pw32*)
11687          # pw32 DLLs use 'pw' prefix rather than 'lib'
11688          library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11689          ;;
11690        esac
11691        ;;
11692    
11693      *)
11694        library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11695        ;;
11696      esac
11697      dynamic_linker='Win32 ld.exe'
11698      # FIXME: first we should search . and the directory the executable is in
11699      shlibpath_var=PATH
11700      ;;
11701    
11702    darwin* | rhapsody*)
11703      dynamic_linker="$host_os dyld"
11704      version_type=darwin
11705      need_lib_prefix=no
11706      need_version=no
11707      library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11708      soname_spec='${libname}${release}${major}$shared_ext'
11709      shlibpath_overrides_runpath=yes
11710      shlibpath_var=DYLD_LIBRARY_PATH
11711      shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11712      # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11713      if test "$GCC" = yes; then
11714        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"`
11715      else
11716        sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11717      fi
11718      sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11719      ;;
11720    
11721    dgux*)
11722      version_type=linux
11723      need_lib_prefix=no
11724      need_version=no
11725      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11726      soname_spec='${libname}${release}${shared_ext}$major'
11727      shlibpath_var=LD_LIBRARY_PATH
11728      ;;
11729    
11730    freebsd1*)
11731      dynamic_linker=no
11732      ;;
11733    
11734    kfreebsd*-gnu)
11735      version_type=linux
11736      need_lib_prefix=no
11737      need_version=no
11738      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11739      soname_spec='${libname}${release}${shared_ext}$major'
11740      shlibpath_var=LD_LIBRARY_PATH
11741      shlibpath_overrides_runpath=no
11742      hardcode_into_libs=yes
11743      dynamic_linker='GNU ld.so'
11744      ;;
11745    
11746    freebsd*)
11747      objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11748      version_type=freebsd-$objformat
11749      case $version_type in
11750        freebsd-elf*)
11751          library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11752          need_version=no
11753          need_lib_prefix=no
11754          ;;
11755        freebsd-*)
11756          library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11757          need_version=yes
11758          ;;
11759      esac
11760      shlibpath_var=LD_LIBRARY_PATH
11761      case $host_os in
11762      freebsd2*)
11763        shlibpath_overrides_runpath=yes
11764        ;;
11765      freebsd3.01* | freebsdelf3.01*)
11766        shlibpath_overrides_runpath=yes
11767        hardcode_into_libs=yes
11768        ;;
11769      *) # from 3.2 on
11770        shlibpath_overrides_runpath=no
11771        hardcode_into_libs=yes
11772        ;;
11773      esac
11774      ;;
11775    
11776    gnu*)
11777      version_type=linux
11778      need_lib_prefix=no
11779      need_version=no
11780      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11781      soname_spec='${libname}${release}${shared_ext}$major'
11782      shlibpath_var=LD_LIBRARY_PATH
11783      hardcode_into_libs=yes
11784      ;;
11785    
11786    hpux9* | hpux10* | hpux11*)
11787      # Give a soname corresponding to the major version so that dld.sl refuses to
11788      # link against other versions.
11789      version_type=sunos
11790      need_lib_prefix=no
11791      need_version=no
11792      case "$host_cpu" in
11793      ia64*)
11794        shrext_cmds='.so'
11795        hardcode_into_libs=yes
11796        dynamic_linker="$host_os dld.so"
11797        shlibpath_var=LD_LIBRARY_PATH
11798        shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11799        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11800        soname_spec='${libname}${release}${shared_ext}$major'
11801        if test "X$HPUX_IA64_MODE" = X32; then
11802          sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11803        else
11804          sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11805        fi
11806        sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11807        ;;
11808       hppa*64*)
11809         shrext_cmds='.sl'
11810         hardcode_into_libs=yes
11811         dynamic_linker="$host_os dld.sl"
11812         shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11813         shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11814         library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11815         soname_spec='${libname}${release}${shared_ext}$major'
11816         sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11817         sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11818         ;;
11819       *)
11820        shrext_cmds='.sl'
11821        dynamic_linker="$host_os dld.sl"
11822        shlibpath_var=SHLIB_PATH
11823        shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11824        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11825        soname_spec='${libname}${release}${shared_ext}$major'
11826        ;;
11827      esac
11828      # HP-UX runs *really* slowly unless shared libraries are mode 555.
11829      postinstall_cmds='chmod 555 $lib'
11830      ;;
11831    
11832    irix5* | irix6* | nonstopux*)
11833      case $host_os in
11834        nonstopux*) version_type=nonstopux ;;
11835        *)
11836            if test "$lt_cv_prog_gnu_ld" = yes; then
11837                    version_type=linux
11838            else
11839                    version_type=irix
11840            fi ;;
11841      esac
11842      need_lib_prefix=no
11843      need_version=no
11844      soname_spec='${libname}${release}${shared_ext}$major'
11845      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11846      case $host_os in
11847      irix5* | nonstopux*)
11848        libsuff= shlibsuff=
11849        ;;
11850      *)
11851        case $LD in # libtool.m4 will add one of these switches to LD
11852        *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11853          libsuff= shlibsuff= libmagic=32-bit;;
11854        *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11855          libsuff=32 shlibsuff=N32 libmagic=N32;;
11856        *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11857          libsuff=64 shlibsuff=64 libmagic=64-bit;;
11858        *) libsuff= shlibsuff= libmagic=never-match;;
11859        esac
11860        ;;
11861      esac
11862      shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11863      shlibpath_overrides_runpath=no
11864      sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11865      sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11866      hardcode_into_libs=yes
11867      ;;
11868    
11869    # No shared lib support for Linux oldld, aout, or coff.
11870    linux*oldld* | linux*aout* | linux*coff*)
11871      dynamic_linker=no
11872      ;;
11873    
11874    # This must be Linux ELF.
11875    linux*)
11876      version_type=linux
11877      need_lib_prefix=no
11878      need_version=no
11879      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11880      soname_spec='${libname}${release}${shared_ext}$major'
11881      finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11882      shlibpath_var=LD_LIBRARY_PATH
11883      shlibpath_overrides_runpath=no
11884      # This implies no fast_install, which is unacceptable.
11885      # Some rework will be needed to allow for fast_install
11886      # before this can be enabled.
11887      hardcode_into_libs=yes
11888    
11889      libsuff=
11890      if test "$lt_cv_cc_lib64_suffix" = "yes"; then
11891        libsuff=64
11892      fi
11893    
11894      # Append ld.so.conf contents to the search path
11895      if test -f /etc/ld.so.conf; then
11896        lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11897        sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} $lt_ld_extra"
11898        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} /usr/local/lib${libsuff} $lt_ld_extra"
11899      fi
11900    
11901      # We used to test for /lib/ld.so.1 and disable shared libraries on
11902      # powerpc, because MkLinux only supported shared libraries with the
11903      # GNU dynamic linker.  Since this was broken with cross compilers,
11904      # most powerpc-linux boxes support dynamic linking these days and
11905      # people can always --disable-shared, the test was removed, and we
11906      # assume the GNU/Linux dynamic linker is in use.
11907      dynamic_linker='GNU/Linux ld.so'
11908      ;;
11909    
11910    knetbsd*-gnu)
11911      version_type=linux
11912      need_lib_prefix=no
11913      need_version=no
11914      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11915      soname_spec='${libname}${release}${shared_ext}$major'
11916      shlibpath_var=LD_LIBRARY_PATH
11917      shlibpath_overrides_runpath=no
11918      hardcode_into_libs=yes
11919      dynamic_linker='GNU ld.so'
11920      ;;
11921    
11922    netbsd*)
11923      version_type=sunos
11924      need_lib_prefix=no
11925      need_version=no
11926      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11927        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11928        finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11929        dynamic_linker='NetBSD (a.out) ld.so'
11930      else
11931        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11932        soname_spec='${libname}${release}${shared_ext}$major'
11933        dynamic_linker='NetBSD ld.elf_so'
11934      fi
11935      shlibpath_var=LD_LIBRARY_PATH
11936      shlibpath_overrides_runpath=yes
11937      hardcode_into_libs=yes
11938      ;;
11939    
11940    newsos6)
11941      version_type=linux
11942      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11943      shlibpath_var=LD_LIBRARY_PATH
11944      shlibpath_overrides_runpath=yes
11945      ;;
11946    
11947    nto-qnx*)
11948      version_type=linux
11949      need_lib_prefix=no
11950      need_version=no
11951      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11952      soname_spec='${libname}${release}${shared_ext}$major'
11953      shlibpath_var=LD_LIBRARY_PATH
11954      shlibpath_overrides_runpath=yes
11955      ;;
11956    
11957    openbsd*)
11958      version_type=sunos
11959      need_lib_prefix=no
11960      need_version=yes
11961      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11962      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11963      shlibpath_var=LD_LIBRARY_PATH
11964      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11965        case $host_os in
11966          openbsd2.[89] | openbsd2.[89].*)
11967            shlibpath_overrides_runpath=no
11968            ;;
11969          *)
11970            shlibpath_overrides_runpath=yes
11971            ;;
11972          esac
11973      else
11974        shlibpath_overrides_runpath=yes
11975      fi
11976      ;;
11977    
11978    os2*)
11979      libname_spec='$name'
11980      shrext_cmds=".dll"
11981      need_lib_prefix=no
11982      library_names_spec='$libname${shared_ext} $libname.a'
11983      dynamic_linker='OS/2 ld.exe'
11984      shlibpath_var=LIBPATH
11985      ;;
11986    
11987    osf3* | osf4* | osf5*)
11988      version_type=osf
11989      need_lib_prefix=no
11990      need_version=no
11991      soname_spec='${libname}${release}${shared_ext}$major'
11992      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11993      shlibpath_var=LD_LIBRARY_PATH
11994      sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11995      sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11996      ;;
11997    
11998    sco3.2v5*)
11999      version_type=osf
12000      soname_spec='${libname}${release}${shared_ext}$major'
12001      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12002      shlibpath_var=LD_LIBRARY_PATH
12003      ;;
12004    
12005    solaris*)
12006      version_type=linux
12007      need_lib_prefix=no
12008      need_version=no
12009      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12010      soname_spec='${libname}${release}${shared_ext}$major'
12011      shlibpath_var=LD_LIBRARY_PATH
12012      shlibpath_overrides_runpath=yes
12013      hardcode_into_libs=yes
12014      # ldd complains unless libraries are executable
12015      postinstall_cmds='chmod +x $lib'
12016      ;;
12017    
12018    sunos4*)
12019      version_type=sunos
12020      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12021      finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12022      shlibpath_var=LD_LIBRARY_PATH
12023      shlibpath_overrides_runpath=yes
12024      if test "$with_gnu_ld" = yes; then
12025        need_lib_prefix=no
12026      fi
12027      need_version=yes
12028      ;;
12029    
12030    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12031      version_type=linux
12032      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12033      soname_spec='${libname}${release}${shared_ext}$major'
12034      shlibpath_var=LD_LIBRARY_PATH
12035      case $host_vendor in
12036        sni)
12037          shlibpath_overrides_runpath=no
12038          need_lib_prefix=no
12039          export_dynamic_flag_spec='${wl}-Blargedynsym'
12040          runpath_var=LD_RUN_PATH
12041          ;;
12042        siemens)
12043          need_lib_prefix=no
12044          ;;
12045        motorola)
12046          need_lib_prefix=no
12047          need_version=no
12048          shlibpath_overrides_runpath=no
12049          sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12050          ;;
12051      esac
12052      ;;
12053    
12054    sysv4*MP*)
12055      if test -d /usr/nec ;then
12056        version_type=linux
12057        library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12058        soname_spec='$libname${shared_ext}.$major'
12059        shlibpath_var=LD_LIBRARY_PATH
12060      fi
12061      ;;
12062    
12063    uts4*)
12064      version_type=linux
12065      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12066      soname_spec='${libname}${release}${shared_ext}$major'
12067      shlibpath_var=LD_LIBRARY_PATH
12068      ;;
12069    
12070    *)
12071      dynamic_linker=no
12072      ;;
12073    esac
12074    echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12075    echo "${ECHO_T}$dynamic_linker" >&6
12076    test "$dynamic_linker" = no && can_build_shared=no
12077    
12078    echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12079    echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12080    hardcode_action_CXX=
12081    if test -n "$hardcode_libdir_flag_spec_CXX" || \
12082       test -n "$runpath_var CXX" || \
12083       test "X$hardcode_automatic_CXX"="Xyes" ; then
12084    
12085      # We can hardcode non-existant directories.
12086      if test "$hardcode_direct_CXX" != no &&
12087         # If the only mechanism to avoid hardcoding is shlibpath_var, we
12088         # have to relink, otherwise we might link with an installed library
12089         # when we should be linking with a yet-to-be-installed one
12090         ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12091         test "$hardcode_minus_L_CXX" != no; then
12092        # Linking always hardcodes the temporary library directory.
12093        hardcode_action_CXX=relink
12094      else
12095        # We can link without hardcoding, and we can hardcode nonexisting dirs.
12096        hardcode_action_CXX=immediate
12097      fi
12098    else
12099      # We cannot hardcode anything, or else we can only hardcode existing
12100      # directories.
12101      hardcode_action_CXX=unsupported
12102    fi
12103    echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12104    echo "${ECHO_T}$hardcode_action_CXX" >&6
12105    
12106    if test "$hardcode_action_CXX" = relink; then
12107      # Fast installation is not supported
12108      enable_fast_install=no
12109    elif test "$shlibpath_overrides_runpath" = yes ||
12110         test "$enable_shared" = no; then
12111      # Fast installation is not necessary
12112      enable_fast_install=needless
12113    fi
12114    
12115    striplib=
12116    old_striplib=
12117    echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12118    echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12119    if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12120      test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12121      test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12122      echo "$as_me:$LINENO: result: yes" >&5
12123    echo "${ECHO_T}yes" >&6
12124    else
12125    # FIXME - insert some real tests, host_os isn't really good enough
12126      case $host_os in
12127       darwin*)
12128           if test -n "$STRIP" ; then
12129             striplib="$STRIP -x"
12130             echo "$as_me:$LINENO: result: yes" >&5
12131    echo "${ECHO_T}yes" >&6
12132           else
12133      echo "$as_me:$LINENO: result: no" >&5
12134    echo "${ECHO_T}no" >&6
12135    fi
12136           ;;
12137       *)
12138      echo "$as_me:$LINENO: result: no" >&5
12139    echo "${ECHO_T}no" >&6
12140        ;;
12141      esac
12142    fi
12143    
12144    if test "x$enable_dlopen" != xyes; then
12145      enable_dlopen=unknown
12146      enable_dlopen_self=unknown
12147      enable_dlopen_self_static=unknown
12148    else
12149      lt_cv_dlopen=no
12150      lt_cv_dlopen_libs=
12151    
12152      case $host_os in
12153      beos*)
12154        lt_cv_dlopen="load_add_on"
12155        lt_cv_dlopen_libs=
12156        lt_cv_dlopen_self=yes
12157        ;;
12158    
12159      mingw* | pw32*)
12160        lt_cv_dlopen="LoadLibrary"
12161        lt_cv_dlopen_libs=
12162       ;;
12163    
12164      cygwin*)
12165        lt_cv_dlopen="dlopen"
12166        lt_cv_dlopen_libs=
12167       ;;
12168    
12169      darwin*)
12170      # if libdl is installed we need to link against it
12171        echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12172    echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12173    if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12174      echo $ECHO_N "(cached) $ECHO_C" >&6
12175    else
12176      ac_check_lib_save_LIBS=$LIBS
12177    LIBS="-ldl  $LIBS"
12178    cat >conftest.$ac_ext <<_ACEOF
12179    /* confdefs.h.  */
12180    _ACEOF
12181    cat confdefs.h >>conftest.$ac_ext
12182    cat >>conftest.$ac_ext <<_ACEOF
12183    /* end confdefs.h.  */
12184    
12185    /* Override any gcc2 internal prototype to avoid an error.  */
12186    #ifdef __cplusplus
12187    extern "C"
12188    #endif
12189    /* We use char because int might match the return type of a gcc2
12190       builtin and then its argument prototype would still apply.  */
12191    char dlopen ();
12192    int
12193    main ()
12194    {
12195    dlopen ();
12196      ;
12197      return 0;
12198    }
12199    _ACEOF
12200    rm -f conftest.$ac_objext conftest$ac_exeext
12201    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12202      (eval $ac_link) 2>conftest.er1
12203      ac_status=$?
12204      grep -v '^ *+' conftest.er1 >conftest.err
12205      rm -f conftest.er1
12206      cat conftest.err >&5
12207      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208      (exit $ac_status); } &&
12209             { ac_try='test -z "$ac_cxx_werror_flag"
12210                             || test ! -s conftest.err'
12211      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212      (eval $ac_try) 2>&5
12213      ac_status=$?
12214      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215      (exit $ac_status); }; } &&
12216             { ac_try='test -s conftest$ac_exeext'
12217      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218      (eval $ac_try) 2>&5
12219      ac_status=$?
12220      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221      (exit $ac_status); }; }; then
12222      ac_cv_lib_dl_dlopen=yes
12223    else
12224      echo "$as_me: failed program was:" >&5
12225    sed 's/^/| /' conftest.$ac_ext >&5
12226    
12227    ac_cv_lib_dl_dlopen=no
12228    fi
12229    rm -f conftest.err conftest.$ac_objext \
12230          conftest$ac_exeext conftest.$ac_ext
12231    LIBS=$ac_check_lib_save_LIBS
12232    fi
12233    echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12234    echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12235    if test $ac_cv_lib_dl_dlopen = yes; then
12236      lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12237    else
12238    
12239        lt_cv_dlopen="dyld"
12240        lt_cv_dlopen_libs=
12241        lt_cv_dlopen_self=yes
12242    
12243    fi
12244    
12245       ;;
12246    
12247      *)
12248        echo "$as_me:$LINENO: checking for shl_load" >&5
12249    echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12250    if test "${ac_cv_func_shl_load+set}" = set; then
12251      echo $ECHO_N "(cached) $ECHO_C" >&6
12252    else
12253      cat >conftest.$ac_ext <<_ACEOF
12254    /* confdefs.h.  */
12255    _ACEOF
12256    cat confdefs.h >>conftest.$ac_ext
12257    cat >>conftest.$ac_ext <<_ACEOF
12258    /* end confdefs.h.  */
12259    /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12260       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12261    #define shl_load innocuous_shl_load
12262    
12263    /* System header to define __stub macros and hopefully few prototypes,
12264        which can conflict with char shl_load (); below.
12265        Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12266        <limits.h> exists even on freestanding compilers.  */
12267    
12268    #ifdef __STDC__
12269    # include <limits.h>
12270    #else
12271    # include <assert.h>
12272    #endif
12273    
12274    #undef shl_load
12275    
12276    /* Override any gcc2 internal prototype to avoid an error.  */
12277    #ifdef __cplusplus
12278    extern "C"
12279    {
12280    #endif
12281    /* We use char because int might match the return type of a gcc2
12282       builtin and then its argument prototype would still apply.  */
12283    char shl_load ();
12284    /* The GNU C library defines this for functions which it implements
12285        to always fail with ENOSYS.  Some functions are actually named
12286        something starting with __ and the normal name is an alias.  */
12287    #if defined (__stub_shl_load) || defined (__stub___shl_load)
12288    choke me
12289    #else
12290    char (*f) () = shl_load;
12291    #endif
12292    #ifdef __cplusplus
12293    }
12294    #endif
12295    
12296    int
12297    main ()
12298    {
12299    return f != shl_load;
12300      ;
12301      return 0;
12302    }
12303    _ACEOF
12304    rm -f conftest.$ac_objext conftest$ac_exeext
12305    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12306      (eval $ac_link) 2>conftest.er1
12307      ac_status=$?
12308      grep -v '^ *+' conftest.er1 >conftest.err
12309      rm -f conftest.er1
12310      cat conftest.err >&5
12311      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312      (exit $ac_status); } &&
12313             { ac_try='test -z "$ac_cxx_werror_flag"
12314                             || test ! -s conftest.err'
12315      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316      (eval $ac_try) 2>&5
12317      ac_status=$?
12318      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319      (exit $ac_status); }; } &&
12320             { ac_try='test -s conftest$ac_exeext'
12321      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322      (eval $ac_try) 2>&5
12323      ac_status=$?
12324      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325      (exit $ac_status); }; }; then
12326      ac_cv_func_shl_load=yes
12327    else
12328      echo "$as_me: failed program was:" >&5
12329    sed 's/^/| /' conftest.$ac_ext >&5
12330    
12331    ac_cv_func_shl_load=no
12332    fi
12333    rm -f conftest.err conftest.$ac_objext \
12334          conftest$ac_exeext conftest.$ac_ext
12335    fi
12336    echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12337    echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12338    if test $ac_cv_func_shl_load = yes; then
12339      lt_cv_dlopen="shl_load"
12340    else
12341      echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12342    echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12343    if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12344      echo $ECHO_N "(cached) $ECHO_C" >&6
12345    else
12346      ac_check_lib_save_LIBS=$LIBS
12347    LIBS="-ldld  $LIBS"
12348    cat >conftest.$ac_ext <<_ACEOF
12349    /* confdefs.h.  */
12350    _ACEOF
12351    cat confdefs.h >>conftest.$ac_ext
12352    cat >>conftest.$ac_ext <<_ACEOF
12353    /* end confdefs.h.  */
12354    
12355    /* Override any gcc2 internal prototype to avoid an error.  */
12356    #ifdef __cplusplus
12357    extern "C"
12358    #endif
12359    /* We use char because int might match the return type of a gcc2
12360       builtin and then its argument prototype would still apply.  */
12361    char shl_load ();
12362    int
12363    main ()
12364    {
12365    shl_load ();
12366      ;
12367      return 0;
12368    }
12369    _ACEOF
12370    rm -f conftest.$ac_objext conftest$ac_exeext
12371    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12372      (eval $ac_link) 2>conftest.er1
12373      ac_status=$?
12374      grep -v '^ *+' conftest.er1 >conftest.err
12375      rm -f conftest.er1
12376      cat conftest.err >&5
12377      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378      (exit $ac_status); } &&
12379             { ac_try='test -z "$ac_cxx_werror_flag"
12380                             || test ! -s conftest.err'
12381      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382      (eval $ac_try) 2>&5
12383      ac_status=$?
12384      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385      (exit $ac_status); }; } &&
12386             { ac_try='test -s conftest$ac_exeext'
12387      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388      (eval $ac_try) 2>&5
12389      ac_status=$?
12390      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391      (exit $ac_status); }; }; then
12392      ac_cv_lib_dld_shl_load=yes
12393    else
12394      echo "$as_me: failed program was:" >&5
12395    sed 's/^/| /' conftest.$ac_ext >&5
12396    
12397    ac_cv_lib_dld_shl_load=no
12398    fi
12399    rm -f conftest.err conftest.$ac_objext \
12400          conftest$ac_exeext conftest.$ac_ext
12401    LIBS=$ac_check_lib_save_LIBS
12402    fi
12403    echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12404    echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12405    if test $ac_cv_lib_dld_shl_load = yes; then
12406      lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12407    else
12408      echo "$as_me:$LINENO: checking for dlopen" >&5
12409    echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12410    if test "${ac_cv_func_dlopen+set}" = set; then
12411      echo $ECHO_N "(cached) $ECHO_C" >&6
12412    else
12413      cat >conftest.$ac_ext <<_ACEOF
12414    /* confdefs.h.  */
12415    _ACEOF
12416    cat confdefs.h >>conftest.$ac_ext
12417    cat >>conftest.$ac_ext <<_ACEOF
12418    /* end confdefs.h.  */
12419    /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12420       For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12421    #define dlopen innocuous_dlopen
12422    
12423    /* System header to define __stub macros and hopefully few prototypes,
12424        which can conflict with char dlopen (); below.
12425        Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12426        <limits.h> exists even on freestanding compilers.  */
12427    
12428    #ifdef __STDC__
12429    # include <limits.h>
12430    #else
12431    # include <assert.h>
12432    #endif
12433    
12434    #undef dlopen
12435    
12436    /* Override any gcc2 internal prototype to avoid an error.  */
12437    #ifdef __cplusplus
12438    extern "C"
12439    {
12440    #endif
12441    /* We use char because int might match the return type of a gcc2
12442       builtin and then its argument prototype would still apply.  */
12443    char dlopen ();
12444    /* The GNU C library defines this for functions which it implements
12445        to always fail with ENOSYS.  Some functions are actually named
12446        something starting with __ and the normal name is an alias.  */
12447    #if defined (__stub_dlopen) || defined (__stub___dlopen)
12448    choke me
12449    #else
12450    char (*f) () = dlopen;
12451    #endif
12452    #ifdef __cplusplus
12453    }
12454    #endif
12455    
12456    int
12457    main ()
12458    {
12459    return f != dlopen;
12460      ;
12461      return 0;
12462    }
12463    _ACEOF
12464    rm -f conftest.$ac_objext conftest$ac_exeext
12465    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12466      (eval $ac_link) 2>conftest.er1
12467      ac_status=$?
12468      grep -v '^ *+' conftest.er1 >conftest.err
12469      rm -f conftest.er1
12470      cat conftest.err >&5
12471      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472      (exit $ac_status); } &&
12473             { ac_try='test -z "$ac_cxx_werror_flag"
12474                             || test ! -s conftest.err'
12475      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476      (eval $ac_try) 2>&5
12477      ac_status=$?
12478      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479      (exit $ac_status); }; } &&
12480             { ac_try='test -s conftest$ac_exeext'
12481      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482      (eval $ac_try) 2>&5
12483      ac_status=$?
12484      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485      (exit $ac_status); }; }; then
12486      ac_cv_func_dlopen=yes
12487    else
12488      echo "$as_me: failed program was:" >&5
12489    sed 's/^/| /' conftest.$ac_ext >&5
12490    
12491    ac_cv_func_dlopen=no
12492    fi
12493    rm -f conftest.err conftest.$ac_objext \
12494          conftest$ac_exeext conftest.$ac_ext
12495    fi
12496    echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12497    echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12498    if test $ac_cv_func_dlopen = yes; then
12499      lt_cv_dlopen="dlopen"
12500    else
12501      echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12502    echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12503    if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12504      echo $ECHO_N "(cached) $ECHO_C" >&6
12505    else
12506      ac_check_lib_save_LIBS=$LIBS
12507    LIBS="-ldl  $LIBS"
12508    cat >conftest.$ac_ext <<_ACEOF
12509    /* confdefs.h.  */
12510    _ACEOF
12511    cat confdefs.h >>conftest.$ac_ext
12512    cat >>conftest.$ac_ext <<_ACEOF
12513    /* end confdefs.h.  */
12514    
12515    /* Override any gcc2 internal prototype to avoid an error.  */
12516    #ifdef __cplusplus
12517    extern "C"
12518    #endif
12519    /* We use char because int might match the return type of a gcc2
12520       builtin and then its argument prototype would still apply.  */
12521    char dlopen ();
12522    int
12523    main ()
12524    {
12525    dlopen ();
12526      ;
12527      return 0;
12528    }
12529    _ACEOF
12530    rm -f conftest.$ac_objext conftest$ac_exeext
12531    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12532      (eval $ac_link) 2>conftest.er1
12533      ac_status=$?
12534      grep -v '^ *+' conftest.er1 >conftest.err
12535      rm -f conftest.er1
12536      cat conftest.err >&5
12537      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538      (exit $ac_status); } &&
12539             { ac_try='test -z "$ac_cxx_werror_flag"
12540                             || test ! -s conftest.err'
12541      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542      (eval $ac_try) 2>&5
12543      ac_status=$?
12544      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545      (exit $ac_status); }; } &&
12546             { ac_try='test -s conftest$ac_exeext'
12547      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548      (eval $ac_try) 2>&5
12549      ac_status=$?
12550      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551      (exit $ac_status); }; }; then
12552      ac_cv_lib_dl_dlopen=yes
12553    else
12554      echo "$as_me: failed program was:" >&5
12555    sed 's/^/| /' conftest.$ac_ext >&5
12556    
12557    ac_cv_lib_dl_dlopen=no
12558    fi
12559    rm -f conftest.err conftest.$ac_objext \
12560          conftest$ac_exeext conftest.$ac_ext
12561    LIBS=$ac_check_lib_save_LIBS
12562    fi
12563    echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12564    echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12565    if test $ac_cv_lib_dl_dlopen = yes; then
12566      lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12567    else
12568      echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12569    echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12570    if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12571      echo $ECHO_N "(cached) $ECHO_C" >&6
12572    else
12573      ac_check_lib_save_LIBS=$LIBS
12574    LIBS="-lsvld  $LIBS"
12575    cat >conftest.$ac_ext <<_ACEOF
12576    /* confdefs.h.  */
12577    _ACEOF
12578    cat confdefs.h >>conftest.$ac_ext
12579    cat >>conftest.$ac_ext <<_ACEOF
12580    /* end confdefs.h.  */
12581    
12582    /* Override any gcc2 internal prototype to avoid an error.  */
12583    #ifdef __cplusplus
12584    extern "C"
12585    #endif
12586    /* We use char because int might match the return type of a gcc2
12587       builtin and then its argument prototype would still apply.  */
12588    char dlopen ();
12589    int
12590    main ()
12591    {
12592    dlopen ();
12593      ;
12594      return 0;
12595    }
12596    _ACEOF
12597    rm -f conftest.$ac_objext conftest$ac_exeext
12598    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12599      (eval $ac_link) 2>conftest.er1
12600      ac_status=$?
12601      grep -v '^ *+' conftest.er1 >conftest.err
12602      rm -f conftest.er1
12603      cat conftest.err >&5
12604      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605      (exit $ac_status); } &&
12606             { ac_try='test -z "$ac_cxx_werror_flag"
12607                             || test ! -s conftest.err'
12608      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609      (eval $ac_try) 2>&5
12610      ac_status=$?
12611      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612      (exit $ac_status); }; } &&
12613             { ac_try='test -s conftest$ac_exeext'
12614      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615      (eval $ac_try) 2>&5
12616      ac_status=$?
12617      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618      (exit $ac_status); }; }; then
12619      ac_cv_lib_svld_dlopen=yes
12620    else
12621      echo "$as_me: failed program was:" >&5
12622    sed 's/^/| /' conftest.$ac_ext >&5
12623    
12624    ac_cv_lib_svld_dlopen=no
12625    fi
12626    rm -f conftest.err conftest.$ac_objext \
12627          conftest$ac_exeext conftest.$ac_ext
12628    LIBS=$ac_check_lib_save_LIBS
12629    fi
12630    echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12631    echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12632    if test $ac_cv_lib_svld_dlopen = yes; then
12633      lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12634    else
12635      echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12636    echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12637    if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12638      echo $ECHO_N "(cached) $ECHO_C" >&6
12639    else
12640      ac_check_lib_save_LIBS=$LIBS
12641    LIBS="-ldld  $LIBS"
12642    cat >conftest.$ac_ext <<_ACEOF
12643    /* confdefs.h.  */
12644    _ACEOF
12645    cat confdefs.h >>conftest.$ac_ext
12646    cat >>conftest.$ac_ext <<_ACEOF
12647    /* end confdefs.h.  */
12648    
12649    /* Override any gcc2 internal prototype to avoid an error.  */
12650    #ifdef __cplusplus
12651    extern "C"
12652    #endif
12653    /* We use char because int might match the return type of a gcc2
12654       builtin and then its argument prototype would still apply.  */
12655    char dld_link ();
12656    int
12657    main ()
12658    {
12659    dld_link ();
12660      ;
12661      return 0;
12662    }
12663    _ACEOF
12664    rm -f conftest.$ac_objext conftest$ac_exeext
12665    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12666      (eval $ac_link) 2>conftest.er1
12667      ac_status=$?
12668      grep -v '^ *+' conftest.er1 >conftest.err
12669      rm -f conftest.er1
12670      cat conftest.err >&5
12671      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672      (exit $ac_status); } &&
12673             { ac_try='test -z "$ac_cxx_werror_flag"
12674                             || test ! -s conftest.err'
12675      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676      (eval $ac_try) 2>&5
12677      ac_status=$?
12678      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679      (exit $ac_status); }; } &&
12680             { ac_try='test -s conftest$ac_exeext'
12681      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682      (eval $ac_try) 2>&5
12683      ac_status=$?
12684      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685      (exit $ac_status); }; }; then
12686      ac_cv_lib_dld_dld_link=yes
12687    else
12688      echo "$as_me: failed program was:" >&5
12689    sed 's/^/| /' conftest.$ac_ext >&5
12690    
12691    ac_cv_lib_dld_dld_link=no
12692    fi
12693    rm -f conftest.err conftest.$ac_objext \
12694          conftest$ac_exeext conftest.$ac_ext
12695    LIBS=$ac_check_lib_save_LIBS
12696    fi
12697    echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12698    echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12699    if test $ac_cv_lib_dld_dld_link = yes; then
12700      lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12701    fi
12702    
12703    
12704    fi
12705    
12706    
12707    fi
12708    
12709    
12710    fi
12711    
12712    
12713    fi
12714    
12715    
12716    fi
12717    
12718        ;;
12719      esac
12720    
12721      if test "x$lt_cv_dlopen" != xno; then
12722        enable_dlopen=yes
12723      else
12724        enable_dlopen=no
12725      fi
12726    
12727      case $lt_cv_dlopen in
12728      dlopen)
12729        save_CPPFLAGS="$CPPFLAGS"
12730        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12731    
12732        save_LDFLAGS="$LDFLAGS"
12733        eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12734    
12735        save_LIBS="$LIBS"
12736        LIBS="$lt_cv_dlopen_libs $LIBS"
12737    
12738        echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12739    echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12740    if test "${lt_cv_dlopen_self+set}" = set; then
12741      echo $ECHO_N "(cached) $ECHO_C" >&6
12742    else
12743              if test "$cross_compiling" = yes; then :
12744      lt_cv_dlopen_self=cross
12745    else
12746      lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12747      lt_status=$lt_dlunknown
12748      cat > conftest.$ac_ext <<EOF
12749    #line 12749 "configure"
12750    #include "confdefs.h"
12751    
12752    #if HAVE_DLFCN_H
12753    #include <dlfcn.h>
12754    #endif
12755    
12756    #include <stdio.h>
12757    
12758    #ifdef RTLD_GLOBAL
12759    #  define LT_DLGLOBAL           RTLD_GLOBAL
12760    #else
12761    #  ifdef DL_GLOBAL
12762    #    define LT_DLGLOBAL         DL_GLOBAL
12763    #  else
12764    #    define LT_DLGLOBAL         0
12765    #  endif
12766    #endif
12767    
12768    /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12769       find out it does not work in some platform. */
12770    #ifndef LT_DLLAZY_OR_NOW
12771    #  ifdef RTLD_LAZY
12772    #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12773    #  else
12774    #    ifdef DL_LAZY
12775    #      define LT_DLLAZY_OR_NOW          DL_LAZY
12776    #    else
12777    #      ifdef RTLD_NOW
12778    #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12779    #      else
12780    #        ifdef DL_NOW
12781    #          define LT_DLLAZY_OR_NOW      DL_NOW
12782    #        else
12783    #          define LT_DLLAZY_OR_NOW      0
12784    #        endif
12785    #      endif
12786    #    endif
12787    #  endif
12788    #endif
12789    
12790    #ifdef __cplusplus
12791    extern "C" void exit (int);
12792    #endif
12793    
12794    void fnord() { int i=42;}
12795    int main ()
12796    {
12797      void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12798      int status = $lt_dlunknown;
12799    
12800      if (self)
12801        {
12802          if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12803          else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12804          /* dlclose (self); */
12805        }
12806    
12807        exit (status);
12808    }
12809    EOF
12810      if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12811      (eval $ac_link) 2>&5
12812      ac_status=$?
12813      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814      (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12815        (./conftest; exit; ) 2>/dev/null
12816        lt_status=$?
12817        case x$lt_status in
12818          x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12819          x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12820          x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12821        esac
12822      else :
12823        # compilation failed
12824        lt_cv_dlopen_self=no
12825      fi
12826    fi
12827    rm -fr conftest*
12828    
12829    
12830    fi
12831    echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12832    echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12833    
12834        if test "x$lt_cv_dlopen_self" = xyes; then
12835          LDFLAGS="$LDFLAGS $link_static_flag"
12836          echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12837    echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12838    if test "${lt_cv_dlopen_self_static+set}" = set; then
12839      echo $ECHO_N "(cached) $ECHO_C" >&6
12840    else
12841              if test "$cross_compiling" = yes; then :
12842      lt_cv_dlopen_self_static=cross
12843    else
12844      lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12845      lt_status=$lt_dlunknown
12846      cat > conftest.$ac_ext <<EOF
12847    #line 12847 "configure"
12848    #include "confdefs.h"
12849    
12850    #if HAVE_DLFCN_H
12851    #include <dlfcn.h>
12852    #endif
12853    
12854    #include <stdio.h>
12855    
12856    #ifdef RTLD_GLOBAL
12857    #  define LT_DLGLOBAL           RTLD_GLOBAL
12858    #else
12859    #  ifdef DL_GLOBAL
12860    #    define LT_DLGLOBAL         DL_GLOBAL
12861    #  else
12862    #    define LT_DLGLOBAL         0
12863    #  endif
12864    #endif
12865    
12866    /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12867       find out it does not work in some platform. */
12868    #ifndef LT_DLLAZY_OR_NOW
12869    #  ifdef RTLD_LAZY
12870    #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12871    #  else
12872    #    ifdef DL_LAZY
12873    #      define LT_DLLAZY_OR_NOW          DL_LAZY
12874    #    else
12875    #      ifdef RTLD_NOW
12876    #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12877    #      else
12878    #        ifdef DL_NOW
12879    #          define LT_DLLAZY_OR_NOW      DL_NOW
12880    #        else
12881    #          define LT_DLLAZY_OR_NOW      0
12882    #        endif
12883    #      endif
12884    #    endif
12885    #  endif
12886    #endif
12887    
12888    #ifdef __cplusplus
12889    extern "C" void exit (int);
12890    #endif
12891    
12892    void fnord() { int i=42;}
12893    int main ()
12894    {
12895      void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12896      int status = $lt_dlunknown;
12897    
12898      if (self)
12899        {
12900          if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12901          else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12902          /* dlclose (self); */
12903        }
12904    
12905        exit (status);
12906    }
12907    EOF
12908      if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12909      (eval $ac_link) 2>&5
12910      ac_status=$?
12911      echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912      (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12913        (./conftest; exit; ) 2>/dev/null
12914        lt_status=$?
12915        case x$lt_status in
12916          x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12917          x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12918          x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12919        esac
12920      else :
12921        # compilation failed
12922        lt_cv_dlopen_self_static=no
12923      fi
12924    fi
12925    rm -fr conftest*
12926    
12927    
12928    fi
12929    echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12930    echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12931        fi
12932    
12933        CPPFLAGS="$save_CPPFLAGS"
12934        LDFLAGS="$save_LDFLAGS"
12935        LIBS="$save_LIBS"
12936        ;;
12937      esac
12938    
12939      case $lt_cv_dlopen_self in
12940      yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12941      *) enable_dlopen_self=unknown ;;
12942      esac
12943    
12944      case $lt_cv_dlopen_self_static in
12945      yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12946      *) enable_dlopen_self_static=unknown ;;
12947      esac
12948    fi
12949    
12950    
12951    # The else clause should only fire when bootstrapping the
12952    # libtool distribution, otherwise you forgot to ship ltmain.sh
12953    # with your package, and you will get complaints that there are
12954    # no rules to generate ltmain.sh.
12955    if test -f "$ltmain"; then
12956      # See if we are running on zsh, and set the options which allow our commands through
12957      # without removal of \ escapes.
12958      if test -n "${ZSH_VERSION+set}" ; then
12959        setopt NO_GLOB_SUBST
12960      fi
12961      # Now quote all the things that may contain metacharacters while being
12962      # careful not to overquote the AC_SUBSTed values.  We take copies of the
12963      # variables and quote the copies for generation of the libtool script.
12964      for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12965        SED SHELL STRIP \
12966        libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12967        old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12968        deplibs_check_method reload_flag reload_cmds need_locks \
12969        lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12970        lt_cv_sys_global_symbol_to_c_name_address \
12971        sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12972        old_postinstall_cmds old_postuninstall_cmds \
12973        compiler_CXX \
12974        CC_CXX \
12975        LD_CXX \
12976        lt_prog_compiler_wl_CXX \
12977        lt_prog_compiler_pic_CXX \
12978        lt_prog_compiler_static_CXX \
12979        lt_prog_compiler_no_builtin_flag_CXX \
12980        export_dynamic_flag_spec_CXX \
12981        thread_safe_flag_spec_CXX \
12982        whole_archive_flag_spec_CXX \
12983        enable_shared_with_static_runtimes_CXX \
12984        old_archive_cmds_CXX \
12985        old_archive_from_new_cmds_CXX \
12986        predep_objects_CXX \
12987        postdep_objects_CXX \
12988        predeps_CXX \
12989        postdeps_CXX \
12990        compiler_lib_search_path_CXX \
12991        archive_cmds_CXX \
12992        archive_expsym_cmds_CXX \
12993        postinstall_cmds_CXX \
12994        postuninstall_cmds_CXX \
12995        old_archive_from_expsyms_cmds_CXX \
12996        allow_undefined_flag_CXX \
12997        no_undefined_flag_CXX \
12998        export_symbols_cmds_CXX \
12999        hardcode_libdir_flag_spec_CXX \
13000        hardcode_libdir_flag_spec_ld_CXX \
13001        hardcode_libdir_separator_CXX \
13002        hardcode_automatic_CXX \
13003        module_cmds_CXX \
13004        module_expsym_cmds_CXX \
13005        lt_cv_prog_compiler_c_o_CXX \
13006        exclude_expsyms_CXX \
13007        include_expsyms_CXX; do
13008    
13009        case $var in
13010        old_archive_cmds_CXX | \
13011        old_archive_from_new_cmds_CXX | \
13012        archive_cmds_CXX | \
13013        archive_expsym_cmds_CXX | \
13014        module_cmds_CXX | \
13015        module_expsym_cmds_CXX | \
13016        old_archive_from_expsyms_cmds_CXX | \
13017        export_symbols_cmds_CXX | \
13018        extract_expsyms_cmds | reload_cmds | finish_cmds | \
13019        postinstall_cmds | postuninstall_cmds | \
13020        old_postinstall_cmds | old_postuninstall_cmds | \
13021        sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13022          # Double-quote double-evaled strings.
13023          eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13024          ;;
13025        *)
13026          eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13027          ;;
13028        esac
13029      done
13030    
13031      case $lt_echo in
13032      *'\$0 --fallback-echo"')
13033        lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13034        ;;
13035      esac
13036    
13037    cfgfile="$ofile"
13038    
13039      cat <<__EOF__ >> "$cfgfile"
13040    # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13041    
13042    # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13043    
13044    # Shell to use when invoking shell scripts.
13045    SHELL=$lt_SHELL
13046    
13047    # Whether or not to build shared libraries.
13048    build_libtool_libs=$enable_shared
13049    
13050    # Whether or not to build static libraries.
13051    build_old_libs=$enable_static
13052    
13053    # Whether or not to add -lc for building shared libraries.
13054    build_libtool_need_lc=$archive_cmds_need_lc_CXX
13055    
13056    # Whether or not to disallow shared libs when runtime libs are static
13057    allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13058    
13059    # Whether or not to optimize for fast installation.
13060    fast_install=$enable_fast_install
13061    
13062    # The host system.
13063    host_alias=$host_alias
13064    host=$host
13065    
13066    # An echo program that does not interpret backslashes.
13067    echo=$lt_echo
13068    
13069    # The archiver.
13070    AR=$lt_AR
13071    AR_FLAGS=$lt_AR_FLAGS
13072    
13073    # A C compiler.
13074    LTCC=$lt_LTCC
13075    
13076    # A language-specific compiler.
13077    CC=$lt_compiler_CXX
13078    
13079    # Is the compiler the GNU C compiler?
13080    with_gcc=$GCC_CXX
13081    
13082    # An ERE matcher.
13083    EGREP=$lt_EGREP
13084    
13085    # The linker used to build libraries.
13086    LD=$lt_LD_CXX
13087    
13088    # Whether we need hard or soft links.
13089    LN_S=$lt_LN_S
13090    
13091    # A BSD-compatible nm program.
13092    NM=$lt_NM
13093    
13094    # A symbol stripping program
13095    STRIP=$lt_STRIP
13096    
13097    # Used to examine libraries when file_magic_cmd begins "file"
13098    MAGIC_CMD=$MAGIC_CMD
13099    
13100    # Used on cygwin: DLL creation program.
13101    DLLTOOL="$DLLTOOL"
13102    
13103    # Used on cygwin: object dumper.
13104    OBJDUMP="$OBJDUMP"
13105    
13106    # Used on cygwin: assembler.
13107    AS="$AS"
13108    
13109    # The name of the directory that contains temporary libtool files.
13110    objdir=$objdir
13111    
13112    # How to create reloadable object files.
13113    reload_flag=$lt_reload_flag
13114    reload_cmds=$lt_reload_cmds
13115    
13116    # How to pass a linker flag through the compiler.
13117    wl=$lt_lt_prog_compiler_wl_CXX
13118    
13119    # Object file suffix (normally "o").
13120    objext="$ac_objext"
13121    
13122    # Old archive suffix (normally "a").
13123    libext="$libext"
13124    
13125    # Shared library suffix (normally ".so").
13126    shrext_cmds='$shrext_cmds'
13127    
13128    # Executable file suffix (normally "").
13129    exeext="$exeext"
13130    
13131    # Additional compiler flags for building library objects.
13132    pic_flag=$lt_lt_prog_compiler_pic_CXX
13133    pic_mode=$pic_mode
13134    
13135    # What is the maximum length of a command?
13136    max_cmd_len=$lt_cv_sys_max_cmd_len
13137    
13138    # Does compiler simultaneously support -c and -o options?
13139    compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13140    
13141    # Must we lock files when doing compilation ?
13142    need_locks=$lt_need_locks
13143    
13144    # Do we need the lib prefix for modules?
13145    need_lib_prefix=$need_lib_prefix
13146    
13147    # Do we need a version for libraries?
13148    need_version=$need_version
13149    
13150    # Whether dlopen is supported.
13151    dlopen_support=$enable_dlopen
13152    
13153    # Whether dlopen of programs is supported.
13154    dlopen_self=$enable_dlopen_self
13155    
13156    # Whether dlopen of statically linked programs is supported.
13157    dlopen_self_static=$enable_dlopen_self_static
13158    
13159    # Compiler flag to prevent dynamic linking.
13160    link_static_flag=$lt_lt_prog_compiler_static_CXX
13161    
13162    # Compiler flag to turn off builtin functions.
13163    no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13164    
13165    # Compiler flag to allow reflexive dlopens.
13166    export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13167    
13168    # Compiler flag to generate shared objects directly from archives.
13169    whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13170    
13171    # Compiler flag to generate thread-safe objects.
13172    thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13173    
13174    # Library versioning type.
13175    version_type=$version_type
13176    
13177    # Format of library name prefix.
13178    libname_spec=$lt_libname_spec
13179    
13180    # List of archive names.  First name is the real one, the rest are links.
13181    # The last name is the one that the linker finds with -lNAME.
13182    library_names_spec=$lt_library_names_spec
13183    
13184    # The coded name of the library, if different from the real name.
13185    soname_spec=$lt_soname_spec
13186    
13187    # Commands used to build and install an old-style archive.
13188    RANLIB=$lt_RANLIB
13189    old_archive_cmds=$lt_old_archive_cmds_CXX
13190    old_postinstall_cmds=$lt_old_postinstall_cmds
13191    old_postuninstall_cmds=$lt_old_postuninstall_cmds
13192    
13193    # Create an old-style archive from a shared archive.
13194    old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13195    
13196    # Create a temporary old-style archive to link instead of a shared archive.
13197    old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13198    
13199    # Commands used to build and install a shared archive.
13200    archive_cmds=$lt_archive_cmds_CXX
13201    archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13202    postinstall_cmds=$lt_postinstall_cmds
13203    postuninstall_cmds=$lt_postuninstall_cmds
13204    
13205    # Commands used to build a loadable module (assumed same as above if empty)
13206    module_cmds=$lt_module_cmds_CXX
13207    module_expsym_cmds=$lt_module_expsym_cmds_CXX
13208    
13209    # Commands to strip libraries.
13210    old_striplib=$lt_old_striplib
13211    striplib=$lt_striplib
13212    
13213    # Dependencies to place before the objects being linked to create a
13214    # shared library.
13215    predep_objects=$lt_predep_objects_CXX
13216    
13217    # Dependencies to place after the objects being linked to create a
13218    # shared library.
13219    postdep_objects=$lt_postdep_objects_CXX
13220    
13221    # Dependencies to place before the objects being linked to create a
13222    # shared library.
13223    predeps=$lt_predeps_CXX
13224    
13225    # Dependencies to place after the objects being linked to create a
13226    # shared library.
13227    postdeps=$lt_postdeps_CXX
13228    
13229    # The library search path used internally by the compiler when linking
13230    # a shared library.
13231    compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13232    
13233    # Method to check whether dependent libraries are shared objects.
13234    deplibs_check_method=$lt_deplibs_check_method
13235    
13236    # Command to use when deplibs_check_method == file_magic.
13237    file_magic_cmd=$lt_file_magic_cmd
13238    
13239    # Flag that allows shared libraries with undefined symbols to be built.
13240    allow_undefined_flag=$lt_allow_undefined_flag_CXX
13241    
13242    # Flag that forces no undefined symbols.
13243    no_undefined_flag=$lt_no_undefined_flag_CXX
13244    
13245    # Commands used to finish a libtool library installation in a directory.
13246    finish_cmds=$lt_finish_cmds
13247    
13248    # Same as above, but a single script fragment to be evaled but not shown.
13249    finish_eval=$lt_finish_eval
13250    
13251    # Take the output of nm and produce a listing of raw symbols and C names.
13252    global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13253    
13254    # Transform the output of nm in a proper C declaration
13255    global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13256    
13257    # Transform the output of nm in a C name address pair
13258    global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13259    
13260    # This is the shared library runtime path variable.
13261    runpath_var=$runpath_var
13262    
13263    # This is the shared library path variable.
13264    shlibpath_var=$shlibpath_var
13265    
13266    # Is shlibpath searched before the hard-coded library search path?
13267    shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13268    
13269    # How to hardcode a shared library path into an executable.
13270    hardcode_action=$hardcode_action_CXX
13271    
13272    # Whether we should hardcode library paths into libraries.
13273    hardcode_into_libs=$hardcode_into_libs
13274    
13275    # Flag to hardcode \$libdir into a binary during linking.
13276    # This must work even if \$libdir does not exist.
13277    hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13278    
13279    # If ld is used when linking, flag to hardcode \$libdir into
13280    # a binary during linking. This must work even if \$libdir does
13281    # not exist.
13282    hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13283    
13284    # Whether we need a single -rpath flag with a separated argument.
13285    hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13286    
13287    # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13288    # resulting binary.
13289    hardcode_direct=$hardcode_direct_CXX
13290    
13291    # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13292    # resulting binary.
13293    hardcode_minus_L=$hardcode_minus_L_CXX
13294    
13295    # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13296    # the resulting binary.
13297    hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13298    
13299    # Set to yes if building a shared library automatically hardcodes DIR into the library
13300    # and all subsequent libraries and executables linked against it.
13301    hardcode_automatic=$hardcode_automatic_CXX
13302    
13303    # Variables whose values should be saved in libtool wrapper scripts and
13304    # restored at relink time.
13305    variables_saved_for_relink="$variables_saved_for_relink"
13306    
13307    # Whether libtool must link a program against all its dependency libraries.
13308    link_all_deplibs=$link_all_deplibs_CXX
13309    
13310    # Compile-time system search path for libraries
13311    sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13312    
13313    # Run-time system search path for libraries
13314    sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13315    
13316    # Fix the shell variable \$srcfile for the compiler.
13317    fix_srcfile_path="$fix_srcfile_path_CXX"
13318    
13319    # Set to yes if exported symbols are required.
13320    always_export_symbols=$always_export_symbols_CXX
13321    
13322    # The commands to list exported symbols.
13323    export_symbols_cmds=$lt_export_symbols_cmds_CXX
13324    
13325    # The commands to extract the exported symbol list from a shared archive.
13326    extract_expsyms_cmds=$lt_extract_expsyms_cmds
13327    
13328    # Symbols that should not be listed in the preloaded symbols.
13329    exclude_expsyms=$lt_exclude_expsyms_CXX
13330    
13331    # Symbols that must always be exported.
13332    include_expsyms=$lt_include_expsyms_CXX
13333    
13334    # ### END LIBTOOL TAG CONFIG: $tagname
13335    
13336    __EOF__
13337    
13338    
13339    else
13340      # If there is no Makefile yet, we rely on a make rule to execute
13341      # `config.status --recheck' to rerun these tests and create the
13342      # libtool script then.
13343      ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13344      if test -f "$ltmain_in"; then
13345        test -f Makefile && make "$ltmain"
13346      fi
13347    fi
13348    
13349    
13350    ac_ext=c
13351    ac_cpp='$CPP $CPPFLAGS'
13352    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13353    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13354    ac_compiler_gnu=$ac_cv_c_compiler_gnu
13355    
13356    CC=$lt_save_CC
13357    LDCXX=$LD
13358    LD=$lt_save_LD
13359    GCC=$lt_save_GCC
13360    with_gnu_ldcxx=$with_gnu_ld
13361    with_gnu_ld=$lt_save_with_gnu_ld
13362    lt_cv_path_LDCXX=$lt_cv_path_LD
13363    lt_cv_path_LD=$lt_save_path_LD
13364    lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13365    lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13366    
13367            else
13368              tagname=""
13369            fi
13370            ;;
13371    
13372          F77)
13373            if test -n "$F77" && test "X$F77" != "Xno"; then
13374    
13375    ac_ext=f
13376    ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13377    ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13378    ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13379    
13380    
13381    archive_cmds_need_lc_F77=no
13382    allow_undefined_flag_F77=
13383    always_export_symbols_F77=no
13384    archive_expsym_cmds_F77=
13385    export_dynamic_flag_spec_F77=
13386    hardcode_direct_F77=no
13387    hardcode_libdir_flag_spec_F77=
13388    hardcode_libdir_flag_spec_ld_F77=
13389    hardcode_libdir_separator_F77=
13390    hardcode_minus_L_F77=no
13391    hardcode_automatic_F77=no
13392    module_cmds_F77=
13393    module_expsym_cmds_F77=
13394    link_all_deplibs_F77=unknown
13395    old_archive_cmds_F77=$old_archive_cmds
13396    no_undefined_flag_F77=
13397    whole_archive_flag_spec_F77=
13398    enable_shared_with_static_runtimes_F77=no
13399    
13400    # Source file extension for f77 test sources.
13401    ac_ext=f
13402    
13403    # Object file extension for compiled f77 test sources.
13404    objext=o
13405    objext_F77=$objext
13406    
13407    # Code to be used in simple compile tests
13408    lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13409    
13410    # Code to be used in simple link tests
13411    lt_simple_link_test_code="      program t\n      end\n"
13412    
13413    # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13414    
13415    # If no C compiler was specified, use CC.
13416    LTCC=${LTCC-"$CC"}
13417    
13418    # Allow CC to be a program name with arguments.
13419    compiler=$CC
13420    
13421    
13422    # Allow CC to be a program name with arguments.
13423    lt_save_CC="$CC"
13424    CC=${F77-"f77"}
13425    compiler=$CC
13426    compiler_F77=$CC
13427    cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13428    
13429    echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13430    echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13431    echo "$as_me:$LINENO: result: $can_build_shared" >&5
13432    echo "${ECHO_T}$can_build_shared" >&6
13433    
13434    echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13435    echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13436    test "$can_build_shared" = "no" && enable_shared=no
13437    
13438    # On AIX, shared libraries and static libraries use the same namespace, and
13439    # are all built from PIC.
13440    case "$host_os" in
13441    aix3*)
13442      test "$enable_shared" = yes && enable_static=no
13443      if test -n "$RANLIB"; then
13444        archive_cmds="$archive_cmds~\$RANLIB \$lib"
13445        postinstall_cmds='$RANLIB $lib'
13446      fi
13447      ;;
13448    aix4* | aix5*)
13449      test "$enable_shared" = yes && enable_static=no
13450      ;;
13451    esac
13452    echo "$as_me:$LINENO: result: $enable_shared" >&5
13453    echo "${ECHO_T}$enable_shared" >&6
13454    
13455    echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13456    echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13457    # Make sure either enable_shared or enable_static is yes.
13458    test "$enable_shared" = yes || enable_static=yes
13459    echo "$as_me:$LINENO: result: $enable_static" >&5
13460    echo "${ECHO_T}$enable_static" >&6
13461    
13462    test "$ld_shlibs_F77" = no && can_build_shared=no
13463    
13464    GCC_F77="$G77"
13465    LD_F77="$LD"
13466    
13467    lt_prog_compiler_wl_F77=
13468    lt_prog_compiler_pic_F77=
13469    lt_prog_compiler_static_F77=
13470    
13471    echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13472    echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13473    
13474      if test "$GCC" = yes; then
13475        lt_prog_compiler_wl_F77='-Wl,'
13476        lt_prog_compiler_static_F77='-static'
13477    
13478        case $host_os in
13479          aix*)
13480          # All AIX code is PIC.
13481          if test "$host_cpu" = ia64; then
13482            # AIX 5 now supports IA64 processor
13483            lt_prog_compiler_static_F77='-Bstatic'
13484          fi
13485          ;;
13486    
13487        amigaos*)
13488          # FIXME: we need at least 68020 code to build shared libraries, but
13489          # adding the `-m68020' flag to GCC prevents building anything better,
13490          # like `-m68040'.
13491          lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13492          ;;
13493    
13494        beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13495          # PIC is the default for these OSes.
13496          ;;
13497    
13498        mingw* | pw32* | os2*)
13499          # This hack is so that the source file can tell whether it is being
13500          # built for inclusion in a dll (and should export symbols for example).
13501          lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13502          ;;
13503    
13504        darwin* | rhapsody*)
13505          # PIC is the default on this platform
13506          # Common symbols not allowed in MH_DYLIB files
13507          lt_prog_compiler_pic_F77='-fno-common'
13508          ;;
13509    
13510        msdosdjgpp*)
13511          # Just because we use GCC doesn't mean we suddenly get shared libraries
13512          # on systems that don't support them.
13513          lt_prog_compiler_can_build_shared_F77=no
13514          enable_shared=no
13515          ;;
13516    
13517        sysv4*MP*)
13518          if test -d /usr/nec; then
13519            lt_prog_compiler_pic_F77=-Kconform_pic
13520          fi
13521          ;;
13522    
13523        hpux*)
13524          # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13525          # not for PA HP-UX.
13526          case "$host_cpu" in
13527          hppa*64*|ia64*)
13528            # +Z the default
13529            ;;
13530          *)
13531            lt_prog_compiler_pic_F77='-fPIC'
13532            ;;
13533          esac
13534          ;;
13535    
13536        *)
13537          lt_prog_compiler_pic_F77='-fPIC'
13538          ;;
13539        esac
13540      else
13541        # PORTME Check for flag to pass linker flags through the system compiler.
13542        case $host_os in
13543        aix*)
13544          lt_prog_compiler_wl_F77='-Wl,'
13545          if test "$host_cpu" = ia64; then
13546            # AIX 5 now supports IA64 processor
13547            lt_prog_compiler_static_F77='-Bstatic'
13548          else
13549            lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13550          fi
13551          ;;
13552    
13553        mingw* | pw32* | os2*)
13554          # This hack is so that the source file can tell whether it is being
13555          # built for inclusion in a dll (and should export symbols for example).
13556          lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13557          ;;
13558    
13559        hpux9* | hpux10* | hpux11*)
13560          lt_prog_compiler_wl_F77='-Wl,'
13561          # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13562          # not for PA HP-UX.
13563          case "$host_cpu" in
13564          hppa*64*|ia64*)
13565            # +Z the default
13566            ;;
13567          *)
13568            lt_prog_compiler_pic_F77='+Z'
13569            ;;
13570          esac
13571          # Is there a better lt_prog_compiler_static that works with the bundled CC?
13572          lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13573          ;;
13574    
13575        irix5* | irix6* | nonstopux*)
13576          lt_prog_compiler_wl_F77='-Wl,'
13577          # PIC (with -KPIC) is the default.
13578          lt_prog_compiler_static_F77='-non_shared'
13579          ;;
13580    
13581        newsos6)
13582          lt_prog_compiler_pic_F77='-KPIC'
13583          lt_prog_compiler_static_F77='-Bstatic'
13584          ;;
13585    
13586        linux*)
13587          case $CC in
13588          icc* | ecc*)
13589            lt_prog_compiler_wl_F77='-Wl,'
13590            lt_prog_compiler_pic_F77='-KPIC'
13591            lt_prog_compiler_static_F77='-static'
13592            ;;
13593          ccc*)
13594            lt_prog_compiler_wl_F77='-Wl,'
13595            # All Alpha code is PIC.
13596            lt_prog_compiler_static_F77='-non_shared'
13597            ;;
13598          esac
13599          ;;
13600    
13601        osf3* | osf4* | osf5*)
13602          lt_prog_compiler_wl_F77='-Wl,'
13603          # All OSF/1 code is PIC.
13604          lt_prog_compiler_static_F77='-non_shared'
13605          ;;
13606    
13607        sco3.2v5*)
13608          lt_prog_compiler_pic_F77='-Kpic'
13609          lt_prog_compiler_static_F77='-dn'
13610          ;;
13611    
13612        solaris*)
13613          lt_prog_compiler_wl_F77='-Wl,'
13614          lt_prog_compiler_pic_F77='-KPIC'
13615          lt_prog_compiler_static_F77='-Bstatic'
13616          ;;
13617    
13618        sunos4*)
13619          lt_prog_compiler_wl_F77='-Qoption ld '
13620          lt_prog_compiler_pic_F77='-PIC'
13621          lt_prog_compiler_static_F77='-Bstatic'
13622          ;;
13623    
13624        sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13625          lt_prog_compiler_wl_F77='-Wl,'
13626          lt_prog_compiler_pic_F77='-KPIC'
13627          lt_prog_compiler_static_F77='-Bstatic'
13628          ;;
13629    
13630        sysv4*MP*)
13631          if test -d /usr/nec ;then
13632            lt_prog_compiler_pic_F77='-Kconform_pic'
13633            lt_prog_compiler_static_F77='-Bstatic'
13634          fi
13635          ;;
13636    
13637        uts4*)
13638          lt_prog_compiler_pic_F77='-pic'
13639          lt_prog_compiler_static_F77='-Bstatic'
13640          ;;
13641    
13642        *)
13643          lt_prog_compiler_can_build_shared_F77=no
13644          ;;
13645        esac
13646      fi
13647    
13648    echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13649    echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13650    
13651    #
13652    # Check to make sure the PIC flag actually works.
13653    #
13654    if test -n "$lt_prog_compiler_pic_F77"; then
13655    
13656    echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13657    echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13658    if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13659      echo $ECHO_N "(cached) $ECHO_C" >&6
13660    else
13661      lt_prog_compiler_pic_works_F77=no
13662      ac_outfile=conftest.$ac_objext
13663       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13664       lt_compiler_flag="$lt_prog_compiler_pic_F77"
13665       # Insert the option either (1) after the last *FLAGS variable, or
13666       # (2) before a word containing "conftest.", or (3) at the end.
13667       # Note that $ac_compile itself does not contain backslashes and begins
13668       # with a dollar sign (not a hyphen), so the echo should work correctly.
13669       # The option is referenced via a variable to avoid confusing sed.
13670       lt_compile=`echo "$ac_compile" | $SED \
13671       -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13672       -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13673       -e 's:$: $lt_compiler_flag:'`
13674       (eval echo "\"\$as_me:13674: $lt_compile\"" >&5)
13675       (eval "$lt_compile" 2>conftest.err)
13676       ac_status=$?
13677       cat conftest.err >&5
13678       echo "$as_me:13678: \$? = $ac_status" >&5
13679       if (exit $ac_status) && test -s "$ac_outfile"; then
13680         # The compiler can only warn and ignore the option if not recognized
13681         # So say no if there are warnings
13682         if test ! -s conftest.err; then
13683           lt_prog_compiler_pic_works_F77=yes
13684         fi
13685       fi
13686       $rm conftest*
13687    
13688    fi
13689    echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13690    echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13691    
13692    if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13693        case $lt_prog_compiler_pic_F77 in
13694         "" | " "*) ;;
13695         *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13696         esac
13697    else
13698        lt_prog_compiler_pic_F77=
13699         lt_prog_compiler_can_build_shared_F77=no
13700    fi
13701    
13702    fi
13703    case "$host_os" in
13704      # For platforms which do not support PIC, -DPIC is meaningless:
13705      *djgpp*)
13706        lt_prog_compiler_pic_F77=
13707        ;;
13708      *)
13709        lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13710        ;;
13711    esac
13712    
13713    echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13714    echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13715    if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13716      echo $ECHO_N "(cached) $ECHO_C" >&6
13717    else
13718      lt_cv_prog_compiler_c_o_F77=no
13719       $rm -r conftest 2>/dev/null
13720       mkdir conftest
13721       cd conftest
13722       mkdir out
13723       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13724    
13725       lt_compiler_flag="-o out/conftest2.$ac_objext"
13726       # Insert the option either (1) after the last *FLAGS variable, or
13727       # (2) before a word containing "conftest.", or (3) at the end.
13728       # Note that $ac_compile itself does not contain backslashes and begins
13729       # with a dollar sign (not a hyphen), so the echo should work correctly.
13730       lt_compile=`echo "$ac_compile" | $SED \
13731       -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13732       -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13733       -e 's:$: $lt_compiler_flag:'`
13734       (eval echo "\"\$as_me:13734: $lt_compile\"" >&5)
13735       (eval "$lt_compile" 2>out/conftest.err)
13736       ac_status=$?
13737       cat out/conftest.err >&5
13738       echo "$as_me:13738: \$? = $ac_status" >&5
13739       if (exit $ac_status) && test -s out/conftest2.$ac_objext
13740       then
13741         # The compiler can only warn and ignore the option if not recognized
13742         # So say no if there are warnings
13743         if test ! -s out/conftest.err; then
13744           lt_cv_prog_compiler_c_o_F77=yes
13745         fi
13746       fi
13747       chmod u+w .
13748       $rm conftest*
13749       # SGI C++ compiler will create directory out/ii_files/ for
13750       # template instantiation
13751       test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13752       $rm out/* && rmdir out
13753       cd ..
13754       rmdir conftest
13755       $rm conftest*
13756    
13757    fi
13758    echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13759    echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13760    
13761    
13762    hard_links="nottested"
13763    if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13764      # do not overwrite the value of need_locks provided by the user
13765      echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13766    echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13767      hard_links=yes
13768      $rm conftest*
13769      ln conftest.a conftest.b 2>/dev/null && hard_links=no
13770      touch conftest.a
13771      ln conftest.a conftest.b 2>&5 || hard_links=no
13772      ln conftest.a conftest.b 2>/dev/null && hard_links=no
13773      echo "$as_me:$LINENO: result: $hard_links" >&5
13774    echo "${ECHO_T}$hard_links" >&6
13775      if test "$hard_links" = no; then
13776        { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13777    echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13778        need_locks=warn
13779      fi
13780    else
13781      need_locks=no
13782    fi
13783    
13784    echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13785    echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13786    
13787      runpath_var=
13788      allow_undefined_flag_F77=
13789      enable_shared_with_static_runtimes_F77=no
13790      archive_cmds_F77=
13791      archive_expsym_cmds_F77=
13792      old_archive_From_new_cmds_F77=
13793      old_archive_from_expsyms_cmds_F77=
13794      export_dynamic_flag_spec_F77=
13795      whole_archive_flag_spec_F77=
13796      thread_safe_flag_spec_F77=
13797      hardcode_libdir_flag_spec_F77=
13798      hardcode_libdir_flag_spec_ld_F77=
13799      hardcode_libdir_separator_F77=
13800      hardcode_direct_F77=no
13801      hardcode_minus_L_F77=no
13802      hardcode_shlibpath_var_F77=unsupported
13803      link_all_deplibs_F77=unknown
13804      hardcode_automatic_F77=no
13805      module_cmds_F77=
13806      module_expsym_cmds_F77=
13807      always_export_symbols_F77=no
13808      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13809      # include_expsyms should be a list of space-separated symbols to be *always*
13810      # included in the symbol list
13811      include_expsyms_F77=
13812      # exclude_expsyms can be an extended regexp of symbols to exclude
13813      # it will be wrapped by ` (' and `)$', so one must not match beginning or
13814      # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13815      # as well as any symbol that contains `d'.
13816      exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13817      # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13818      # platforms (ab)use it in PIC code, but their linkers get confused if
13819      # the symbol is explicitly referenced.  Since portable code cannot
13820      # rely on this symbol name, it's probably fine to never include it in
13821      # preloaded symbol tables.
13822      extract_expsyms_cmds=
13823    
13824      case $host_os in
13825      cygwin* | mingw* | pw32*)
13826        # FIXME: the MSVC++ port hasn't been tested in a loooong time
13827        # When not using gcc, we currently assume that we are using
13828        # Microsoft Visual C++.
13829        if test "$GCC" != yes; then
13830          with_gnu_ld=no
13831        fi
13832        ;;
13833      openbsd*)
13834        with_gnu_ld=no
13835        ;;
13836      esac
13837    
13838      ld_shlibs_F77=yes
13839      if test "$with_gnu_ld" = yes; then
13840        # If archive_cmds runs LD, not CC, wlarc should be empty
13841        wlarc='${wl}'
13842    
13843        # See if GNU ld supports shared libraries.
13844        case $host_os in
13845        aix3* | aix4* | aix5*)
13846          # On AIX/PPC, the GNU linker is very broken
13847          if test "$host_cpu" != ia64; then
13848            ld_shlibs_F77=no
13849            cat <<EOF 1>&2
13850    
13851    *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13852    *** to be unable to reliably create shared libraries on AIX.
13853    *** Therefore, libtool is disabling shared libraries support.  If you
13854    *** really care for shared libraries, you may want to modify your PATH
13855    *** so that a non-GNU linker is found, and then restart.
13856    
13857    EOF
13858          fi
13859          ;;
13860    
13861        amigaos*)
13862          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)'
13863          hardcode_libdir_flag_spec_F77='-L$libdir'
13864          hardcode_minus_L_F77=yes
13865    
13866          # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13867          # that the semantics of dynamic libraries on AmigaOS, at least up
13868          # to version 4, is to share data among multiple programs linked
13869          # with the same dynamic library.  Since this doesn't match the
13870          # behavior of shared libraries on other platforms, we can't use
13871          # them.
13872          ld_shlibs_F77=no
13873          ;;
13874    
13875        beos*)
13876          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13877            allow_undefined_flag_F77=unsupported
13878            # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13879            # support --undefined.  This deserves some investigation.  FIXME
13880            archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13881          else
13882            ld_shlibs_F77=no
13883          fi
13884          ;;
13885    
13886        cygwin* | mingw* | pw32*)
13887          # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13888          # as there is no search path for DLLs.
13889          hardcode_libdir_flag_spec_F77='-L$libdir'
13890          allow_undefined_flag_F77=unsupported
13891          always_export_symbols_F77=no
13892          enable_shared_with_static_runtimes_F77=yes
13893          export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13894    
13895          if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13896            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13897            # If the export-symbols file already is a .def file (1st line
13898            # is EXPORTS), use it as is; otherwise, prepend...
13899            archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13900              cp $export_symbols $output_objdir/$soname.def;
13901            else
13902              echo EXPORTS > $output_objdir/$soname.def;
13903              cat $export_symbols >> $output_objdir/$soname.def;
13904            fi~
13905            $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13906          else
13907            ld_shlibs=no
13908          fi
13909          ;;
13910    
13911        netbsd*)
13912          if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13913            archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13914            wlarc=
13915          else
13916            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13917            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13918          fi
13919          ;;
13920    
13921        solaris* | sysv5*)
13922          if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13923            ld_shlibs_F77=no
13924            cat <<EOF 1>&2
13925    
13926    *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13927    *** create shared libraries on Solaris systems.  Therefore, libtool
13928    *** is disabling shared libraries support.  We urge you to upgrade GNU
13929    *** binutils to release 2.9.1 or newer.  Another option is to modify
13930    *** your PATH or compiler configuration so that the native linker is
13931    *** used, and then restart.
13932    
13933    EOF
13934          elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13935            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13936            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13937          else
13938            ld_shlibs_F77=no
13939          fi
13940          ;;
13941    
13942        sunos4*)
13943          archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13944          wlarc=
13945          hardcode_direct_F77=yes
13946          hardcode_shlibpath_var_F77=no
13947          ;;
13948    
13949      linux*)
13950        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13951            tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13952            archive_cmds_F77="$tmp_archive_cmds"
13953          supports_anon_versioning=no
13954          case `$LD -v 2>/dev/null` in
13955            *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13956            *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13957            *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13958            *\ 2.11.*) ;; # other 2.11 versions
13959            *) supports_anon_versioning=yes ;;
13960          esac
13961          if test $supports_anon_versioning = yes; then
13962            archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13963    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13964    $echo "local: *; };" >> $output_objdir/$libname.ver~
13965            $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13966          else
13967            archive_expsym_cmds_F77="$tmp_archive_cmds"
13968          fi
13969        else
13970          ld_shlibs_F77=no
13971        fi
13972        ;;
13973    
13974        *)
13975          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13976            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13977            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13978          else
13979            ld_shlibs_F77=no
13980          fi
13981          ;;
13982        esac
13983    
13984        if test "$ld_shlibs_F77" = yes; then
13985          runpath_var=LD_RUN_PATH
13986          hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13987          export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13988          # ancient GNU ld didn't support --whole-archive et. al.
13989          if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13990            whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13991          else
13992            whole_archive_flag_spec_F77=
13993          fi
13994        fi
13995      else
13996        # PORTME fill in a description of your system's linker (not GNU ld)
13997        case $host_os in
13998        aix3*)
13999          allow_undefined_flag_F77=unsupported
14000          always_export_symbols_F77=yes
14001          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'
14002          # Note: this linker hardcodes the directories in LIBPATH if there
14003          # are no directories specified by -L.
14004          hardcode_minus_L_F77=yes
14005          if test "$GCC" = yes && test -z "$link_static_flag"; then
14006            # Neither direct hardcoding nor static linking is supported with a
14007            # broken collect2.
14008            hardcode_direct_F77=unsupported
14009          fi
14010          ;;
14011    
14012        aix4* | aix5*)
14013          if test "$host_cpu" = ia64; then
14014            # On IA64, the linker does run time linking by default, so we don't
14015            # have to do anything special.
14016            aix_use_runtimelinking=no
14017            exp_sym_flag='-Bexport'
14018            no_entry_flag=""
14019          else
14020            # If we're using GNU nm, then we don't want the "-C" option.
14021            # -C means demangle to AIX nm, but means don't demangle with GNU nm
14022            if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14023              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'
14024            else
14025              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'
14026            fi
14027            aix_use_runtimelinking=no
14028    
14029            # Test if we are trying to use run time linking or normal
14030            # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14031            # need to do runtime linking.
14032            case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14033              for ld_flag in $LDFLAGS; do
14034              if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14035                aix_use_runtimelinking=yes
14036                break
14037              fi
14038              done
14039            esac
14040    
14041            exp_sym_flag='-bexport'
14042            no_entry_flag='-bnoentry'
14043          fi
14044    
14045          # When large executables or shared objects are built, AIX ld can
14046          # have problems creating the table of contents.  If linking a library
14047          # or program results in "error TOC overflow" add -mminimal-toc to
14048          # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14049          # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14050    
14051          archive_cmds_F77=''
14052          hardcode_direct_F77=yes
14053          hardcode_libdir_separator_F77=':'
14054          link_all_deplibs_F77=yes
14055    
14056          if test "$GCC" = yes; then
14057            case $host_os in aix4.012|aix4.012.*)
14058            # We only want to do this on AIX 4.2 and lower, the check
14059            # below for broken collect2 doesn't work under 4.3+
14060              collect2name=`${CC} -print-prog-name=collect2`
14061              if test -f "$collect2name" && \
14062               strings "$collect2name" | grep resolve_lib_name >/dev/null
14063              then
14064              # We have reworked collect2
14065              hardcode_direct_F77=yes
14066              else
14067              # We have old collect2
14068              hardcode_direct_F77=unsupported
14069              # It fails to find uninstalled libraries when the uninstalled
14070              # path is not listed in the libpath.  Setting hardcode_minus_L
14071              # to unsupported forces relinking
14072              hardcode_minus_L_F77=yes
14073              hardcode_libdir_flag_spec_F77='-L$libdir'
14074              hardcode_libdir_separator_F77=
14075              fi
14076            esac
14077            shared_flag='-shared'
14078          else
14079            # not using gcc
14080            if test "$host_cpu" = ia64; then
14081            # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14082            # chokes on -Wl,-G. The following line is correct:
14083              shared_flag='-G'
14084            else
14085            if test "$aix_use_runtimelinking" = yes; then
14086                shared_flag='${wl}-G'
14087              else
14088                shared_flag='${wl}-bM:SRE'
14089            fi
14090            fi
14091          fi
14092    
14093          # It seems that -bexpall does not export symbols beginning with
14094          # underscore (_), so it is better to generate a list of symbols to export.
14095          always_export_symbols_F77=yes
14096          if test "$aix_use_runtimelinking" = yes; then
14097            # Warning - without using the other runtime loading flags (-brtl),
14098            # -berok will link without error, but may produce a broken library.
14099            allow_undefined_flag_F77='-berok'
14100           # Determine the default libpath from the value encoded in an empty executable.
14101           cat >conftest.$ac_ext <<_ACEOF
14102          program main
14103    
14104          end
14105    _ACEOF
14106    rm -f conftest.$ac_objext conftest$ac_exeext
14107    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14108      (eval $ac_link) 2>conftest.er1
14109      ac_status=$?
14110      grep -v '^ *+' conftest.er1 >conftest.err
14111      rm -f conftest.er1
14112      cat conftest.err >&5
14113      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114      (exit $ac_status); } &&
14115             { ac_try='test -z "$ac_f77_werror_flag"
14116                             || test ! -s conftest.err'
14117      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118      (eval $ac_try) 2>&5
14119      ac_status=$?
14120      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121      (exit $ac_status); }; } &&
14122             { ac_try='test -s conftest$ac_exeext'
14123      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14124      (eval $ac_try) 2>&5
14125      ac_status=$?
14126      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127      (exit $ac_status); }; }; then
14128    
14129    aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14130    }'`
14131    # Check for a 64-bit object if we didn't find anything.
14132    if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14133    }'`; fi
14134    else
14135      echo "$as_me: failed program was:" >&5
14136    sed 's/^/| /' conftest.$ac_ext >&5
14137    
14138    fi
14139    rm -f conftest.err conftest.$ac_objext \
14140          conftest$ac_exeext conftest.$ac_ext
14141    if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14142    
14143           hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14144            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"
14145           else
14146            if test "$host_cpu" = ia64; then
14147              hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14148              allow_undefined_flag_F77="-z nodefs"
14149              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"
14150            else
14151             # Determine the default libpath from the value encoded in an empty executable.
14152             cat >conftest.$ac_ext <<_ACEOF
14153          program main
14154    
14155          end
14156    _ACEOF
14157    rm -f conftest.$ac_objext conftest$ac_exeext
14158    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14159      (eval $ac_link) 2>conftest.er1
14160      ac_status=$?
14161      grep -v '^ *+' conftest.er1 >conftest.err
14162      rm -f conftest.er1
14163      cat conftest.err >&5
14164      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165      (exit $ac_status); } &&
14166             { ac_try='test -z "$ac_f77_werror_flag"
14167                             || test ! -s conftest.err'
14168      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169      (eval $ac_try) 2>&5
14170      ac_status=$?
14171      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172      (exit $ac_status); }; } &&
14173             { ac_try='test -s conftest$ac_exeext'
14174      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175      (eval $ac_try) 2>&5
14176      ac_status=$?
14177      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178      (exit $ac_status); }; }; then
14179    
14180    aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14181    }'`
14182    # Check for a 64-bit object if we didn't find anything.
14183    if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14184    }'`; fi
14185    else
14186      echo "$as_me: failed program was:" >&5
14187    sed 's/^/| /' conftest.$ac_ext >&5
14188    
14189    fi
14190    rm -f conftest.err conftest.$ac_objext \
14191          conftest$ac_exeext conftest.$ac_ext
14192    if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14193    
14194             hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14195              # Warning - without using the other run time loading flags,
14196              # -berok will link without error, but may produce a broken library.
14197              no_undefined_flag_F77=' ${wl}-bernotok'
14198              allow_undefined_flag_F77=' ${wl}-berok'
14199              # -bexpall does not export symbols beginning with underscore (_)
14200              always_export_symbols_F77=yes
14201              # Exported symbols can be pulled into shared objects from archives
14202              whole_archive_flag_spec_F77=' '
14203              archive_cmds_need_lc_F77=yes
14204              # This is similar to how AIX traditionally builds it's shared libraries.
14205              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'
14206            fi
14207          fi
14208          ;;
14209    
14210        amigaos*)
14211          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)'
14212          hardcode_libdir_flag_spec_F77='-L$libdir'
14213          hardcode_minus_L_F77=yes
14214          # see comment about different semantics on the GNU ld section
14215          ld_shlibs_F77=no
14216          ;;
14217    
14218        bsdi4*)
14219          export_dynamic_flag_spec_F77=-rdynamic
14220          ;;
14221    
14222        cygwin* | mingw* | pw32*)
14223          # When not using gcc, we currently assume that we are using
14224          # Microsoft Visual C++.
14225          # hardcode_libdir_flag_spec is actually meaningless, as there is
14226          # no search path for DLLs.
14227          hardcode_libdir_flag_spec_F77=' '
14228          allow_undefined_flag_F77=unsupported
14229          # Tell ltmain to make .lib files, not .a files.
14230          libext=lib
14231          # Tell ltmain to make .dll files, not .so files.
14232          shrext_cmds=".dll"
14233          # FIXME: Setting linknames here is a bad hack.
14234          archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14235          # The linker will automatically build a .lib file if we build a DLL.
14236          old_archive_From_new_cmds_F77='true'
14237          # FIXME: Should let the user specify the lib program.
14238          old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14239          fix_srcfile_path='`cygpath -w "$srcfile"`'
14240          enable_shared_with_static_runtimes_F77=yes
14241          ;;
14242    
14243        darwin* | rhapsody*)
14244        if test "$GXX" = yes ; then
14245          archive_cmds_need_lc_F77=no
14246          case "$host_os" in
14247          rhapsody* | darwin1.[012])
14248            allow_undefined_flag_F77='-undefined suppress'
14249            ;;
14250          *) # Darwin 1.3 on
14251          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14252            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14253          else
14254            case ${MACOSX_DEPLOYMENT_TARGET} in
14255              10.[012])
14256                allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14257                ;;
14258              10.*)
14259                allow_undefined_flag_F77='-undefined dynamic_lookup'
14260                ;;
14261            esac
14262          fi
14263            ;;
14264          esac
14265            lt_int_apple_cc_single_mod=no
14266            output_verbose_link_cmd='echo'
14267            if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14268              lt_int_apple_cc_single_mod=yes
14269            fi
14270            if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14271              archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14272            else
14273            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'
14274          fi
14275          module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14276          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14277            if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14278              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}'
14279            else
14280              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}'
14281            fi
14282              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}'
14283          hardcode_direct_F77=no
14284          hardcode_automatic_F77=yes
14285          hardcode_shlibpath_var_F77=unsupported
14286          whole_archive_flag_spec_F77='-all_load $convenience'
14287          link_all_deplibs_F77=yes
14288        else
14289          ld_shlibs_F77=no
14290        fi
14291          ;;
14292    
14293        dgux*)
14294          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14295          hardcode_libdir_flag_spec_F77='-L$libdir'
14296          hardcode_shlibpath_var_F77=no
14297          ;;
14298    
14299        freebsd1*)
14300          ld_shlibs_F77=no
14301          ;;
14302    
14303        # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14304        # support.  Future versions do this automatically, but an explicit c++rt0.o
14305        # does not break anything, and helps significantly (at the cost of a little
14306        # extra space).
14307        freebsd2.2*)
14308          archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14309          hardcode_libdir_flag_spec_F77='-R$libdir'
14310          hardcode_direct_F77=yes
14311          hardcode_shlibpath_var_F77=no
14312          ;;
14313    
14314        # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14315        freebsd2*)
14316          archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14317          hardcode_direct_F77=yes
14318          hardcode_minus_L_F77=yes
14319          hardcode_shlibpath_var_F77=no
14320          ;;
14321    
14322        # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14323        freebsd* | kfreebsd*-gnu)
14324          archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14325          hardcode_libdir_flag_spec_F77='-R$libdir'
14326          hardcode_direct_F77=yes
14327          hardcode_shlibpath_var_F77=no
14328          ;;
14329    
14330        hpux9*)
14331          if test "$GCC" = yes; then
14332            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'
14333          else
14334            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'
14335          fi
14336          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14337          hardcode_libdir_separator_F77=:
14338          hardcode_direct_F77=yes
14339    
14340          # hardcode_minus_L: Not really in the search PATH,
14341          # but as the default location of the library.
14342          hardcode_minus_L_F77=yes
14343          export_dynamic_flag_spec_F77='${wl}-E'
14344          ;;
14345    
14346        hpux10* | hpux11*)
14347          if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14348            case "$host_cpu" in
14349            hppa*64*|ia64*)
14350              archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14351              ;;
14352            *)
14353              archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14354              ;;
14355            esac
14356          else
14357            case "$host_cpu" in
14358            hppa*64*|ia64*)
14359              archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14360              ;;
14361            *)
14362              archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14363              ;;
14364            esac
14365          fi
14366          if test "$with_gnu_ld" = no; then
14367            case "$host_cpu" in
14368            hppa*64*)
14369              hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14370              hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14371              hardcode_libdir_separator_F77=:
14372              hardcode_direct_F77=no
14373              hardcode_shlibpath_var_F77=no
14374              ;;
14375            ia64*)
14376              hardcode_libdir_flag_spec_F77='-L$libdir'
14377              hardcode_direct_F77=no
14378              hardcode_shlibpath_var_F77=no
14379    
14380              # hardcode_minus_L: Not really in the search PATH,
14381              # but as the default location of the library.
14382              hardcode_minus_L_F77=yes
14383              ;;
14384            *)
14385              hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14386              hardcode_libdir_separator_F77=:
14387              hardcode_direct_F77=yes
14388              export_dynamic_flag_spec_F77='${wl}-E'
14389    
14390              # hardcode_minus_L: Not really in the search PATH,
14391              # but as the default location of the library.
14392              hardcode_minus_L_F77=yes
14393              ;;
14394            esac
14395          fi
14396          ;;
14397    
14398        irix5* | irix6* | nonstopux*)
14399          if test "$GCC" = yes; then
14400            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'
14401          else
14402            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'
14403            hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14404          fi
14405          hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14406          hardcode_libdir_separator_F77=:
14407          link_all_deplibs_F77=yes
14408          ;;
14409    
14410        netbsd*)
14411          if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14412            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14413          else
14414            archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14415          fi
14416          hardcode_libdir_flag_spec_F77='-R$libdir'
14417          hardcode_direct_F77=yes
14418          hardcode_shlibpath_var_F77=no
14419          ;;
14420    
14421        newsos6)
14422          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14423          hardcode_direct_F77=yes
14424          hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14425          hardcode_libdir_separator_F77=:
14426          hardcode_shlibpath_var_F77=no
14427          ;;
14428    
14429        openbsd*)
14430          hardcode_direct_F77=yes
14431          hardcode_shlibpath_var_F77=no
14432          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14433            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14434            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14435            export_dynamic_flag_spec_F77='${wl}-E'
14436          else
14437           case $host_os in
14438             openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14439               archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14440               hardcode_libdir_flag_spec_F77='-R$libdir'
14441               ;;
14442             *)
14443               archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14444               hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14445               ;;
14446           esac
14447          fi
14448          ;;
14449    
14450        os2*)
14451          hardcode_libdir_flag_spec_F77='-L$libdir'
14452          hardcode_minus_L_F77=yes
14453          allow_undefined_flag_F77=unsupported
14454          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'
14455          old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14456          ;;
14457    
14458        osf3*)
14459          if test "$GCC" = yes; then
14460            allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14461            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'
14462          else
14463            allow_undefined_flag_F77=' -expect_unresolved \*'
14464            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'
14465          fi
14466          hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14467          hardcode_libdir_separator_F77=:
14468          ;;
14469    
14470        osf4* | osf5*)      # as osf3* with the addition of -msym flag
14471          if test "$GCC" = yes; then
14472            allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14473            archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14474            hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14475          else
14476            allow_undefined_flag_F77=' -expect_unresolved \*'
14477            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'
14478            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~
14479            $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'
14480    
14481            # Both c and cxx compiler support -rpath directly
14482            hardcode_libdir_flag_spec_F77='-rpath $libdir'
14483          fi
14484          hardcode_libdir_separator_F77=:
14485          ;;
14486    
14487        sco3.2v5*)
14488          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14489          hardcode_shlibpath_var_F77=no
14490          export_dynamic_flag_spec_F77='${wl}-Bexport'
14491          runpath_var=LD_RUN_PATH
14492          hardcode_runpath_var=yes
14493          ;;
14494    
14495        solaris*)
14496          no_undefined_flag_F77=' -z text'
14497          if test "$GCC" = yes; then
14498            archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14499            archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14500              $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14501          else
14502            archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14503            archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14504            $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14505          fi
14506          hardcode_libdir_flag_spec_F77='-R$libdir'
14507          hardcode_shlibpath_var_F77=no
14508          case $host_os in
14509          solaris2.[0-5] | solaris2.[0-5].*) ;;
14510          *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14511            whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14512          esac
14513          link_all_deplibs_F77=yes
14514          ;;
14515    
14516        sunos4*)
14517          if test "x$host_vendor" = xsequent; then
14518            # Use $CC to link under sequent, because it throws in some extra .o
14519            # files that make .init and .fini sections work.
14520            archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14521          else
14522            archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14523          fi
14524          hardcode_libdir_flag_spec_F77='-L$libdir'
14525          hardcode_direct_F77=yes
14526          hardcode_minus_L_F77=yes
14527          hardcode_shlibpath_var_F77=no
14528          ;;
14529    
14530        sysv4)
14531          case $host_vendor in
14532            sni)
14533              archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14534              hardcode_direct_F77=yes # is this really true???
14535            ;;
14536            siemens)
14537              ## LD is ld it makes a PLAMLIB
14538              ## CC just makes a GrossModule.
14539              archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14540              reload_cmds_F77='$CC -r -o $output$reload_objs'
14541              hardcode_direct_F77=no
14542            ;;
14543            motorola)
14544              archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14545              hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14546            ;;
14547          esac
14548          runpath_var='LD_RUN_PATH'
14549          hardcode_shlibpath_var_F77=no
14550          ;;
14551    
14552        sysv4.3*)
14553          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14554          hardcode_shlibpath_var_F77=no
14555          export_dynamic_flag_spec_F77='-Bexport'
14556          ;;
14557    
14558        sysv4*MP*)
14559          if test -d /usr/nec; then
14560            archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14561            hardcode_shlibpath_var_F77=no
14562            runpath_var=LD_RUN_PATH
14563            hardcode_runpath_var=yes
14564            ld_shlibs_F77=yes
14565          fi
14566          ;;
14567    
14568        sysv4.2uw2*)
14569          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14570          hardcode_direct_F77=yes
14571          hardcode_minus_L_F77=no
14572          hardcode_shlibpath_var_F77=no
14573          hardcode_runpath_var=yes
14574          runpath_var=LD_RUN_PATH
14575          ;;
14576    
14577       sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14578          no_undefined_flag_F77='${wl}-z ${wl}text'
14579          if test "$GCC" = yes; then
14580            archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14581          else
14582            archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14583          fi
14584          runpath_var='LD_RUN_PATH'
14585          hardcode_shlibpath_var_F77=no
14586          ;;
14587    
14588        sysv5*)
14589          no_undefined_flag_F77=' -z text'
14590          # $CC -shared without GNU ld will not create a library from C++
14591          # object files and a static libstdc++, better avoid it by now
14592          archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14593          archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14594                    $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14595          hardcode_libdir_flag_spec_F77=
14596          hardcode_shlibpath_var_F77=no
14597          runpath_var='LD_RUN_PATH'
14598          ;;
14599    
14600        uts4*)
14601          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14602          hardcode_libdir_flag_spec_F77='-L$libdir'
14603          hardcode_shlibpath_var_F77=no
14604          ;;
14605    
14606        *)
14607          ld_shlibs_F77=no
14608          ;;
14609        esac
14610      fi
14611    
14612    echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14613    echo "${ECHO_T}$ld_shlibs_F77" >&6
14614    test "$ld_shlibs_F77" = no && can_build_shared=no
14615    
14616    variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14617    if test "$GCC" = yes; then
14618      variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14619    fi
14620    
14621    #
14622    # Do we need to explicitly link libc?
14623    #
14624    case "x$archive_cmds_need_lc_F77" in
14625    x|xyes)
14626      # Assume -lc should be added
14627      archive_cmds_need_lc_F77=yes
14628    
14629      if test "$enable_shared" = yes && test "$GCC" = yes; then
14630        case $archive_cmds_F77 in
14631        *'~'*)
14632          # FIXME: we may have to deal with multi-command sequences.
14633          ;;
14634        '$CC '*)
14635          # Test whether the compiler implicitly links with -lc since on some
14636          # systems, -lgcc has to come before -lc. If gcc already passes -lc
14637          # to ld, don't add -lc before -lgcc.
14638          echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14639    echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14640          $rm conftest*
14641          printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14642    
14643          if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14644      (eval $ac_compile) 2>&5
14645      ac_status=$?
14646      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647      (exit $ac_status); } 2>conftest.err; then
14648            soname=conftest
14649            lib=conftest
14650            libobjs=conftest.$ac_objext
14651            deplibs=
14652            wl=$lt_prog_compiler_wl_F77
14653            compiler_flags=-v
14654            linker_flags=-v
14655            verstring=
14656            output_objdir=.
14657            libname=conftest
14658            lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14659            allow_undefined_flag_F77=
14660            if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14661      (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14662      ac_status=$?
14663      echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664      (exit $ac_status); }
14665            then
14666              archive_cmds_need_lc_F77=no
14667            else
14668              archive_cmds_need_lc_F77=yes
14669            fi
14670            allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14671          else
14672            cat conftest.err 1>&5
14673          fi
14674          $rm conftest*
14675          echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14676    echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14677          ;;
14678        esac
14679      fi
14680      ;;
14681    esac
14682    
14683    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14684    echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14685    library_names_spec=
14686    libname_spec='lib$name'
14687    soname_spec=
14688    shrext_cmds=".so"
14689    postinstall_cmds=
14690    postuninstall_cmds=
14691    finish_cmds=
14692    finish_eval=
14693    shlibpath_var=
14694    shlibpath_overrides_runpath=unknown
14695    version_type=none
14696    dynamic_linker="$host_os ld.so"
14697    sys_lib_dlsearch_path_spec="/lib /usr/lib"
14698    if test "$GCC" = yes; then
14699      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14700      if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14701        # if the path contains ";" then we assume it to be the separator
14702        # otherwise default to the standard path separator (i.e. ":") - it is
14703        # assumed that no part of a normal pathname contains ";" but that should
14704        # okay in the real world where ";" in dirpaths is itself problematic.
14705        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14706      else
14707        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14708      fi
14709    else
14710      sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14711    fi
14712    need_lib_prefix=unknown
14713    hardcode_into_libs=no
14714    
14715    # when you set need_version to no, make sure it does not cause -set_version
14716    # flags to be left without arguments
14717    need_version=unknown
14718    
14719    case $host_os in
14720    aix3*)
14721      version_type=linux
14722      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14723      shlibpath_var=LIBPATH
14724    
14725      # AIX 3 has no versioning support, so we append a major version to the name.
14726      soname_spec='${libname}${release}${shared_ext}$major'
14727      ;;
14728    
14729    aix4* | aix5*)
14730      version_type=linux
14731      need_lib_prefix=no
14732      need_version=no
14733      hardcode_into_libs=yes
14734      if test "$host_cpu" = ia64; then
14735        # AIX 5 supports IA64
14736        library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14737        shlibpath_var=LD_LIBRARY_PATH
14738      else
14739        # With GCC up to 2.95.x, collect2 would create an import file
14740        # for dependence libraries.  The import file would start with
14741        # the line `#! .'.  This would cause the generated library to
14742        # depend on `.', always an invalid library.  This was fixed in
14743        # development snapshots of GCC prior to 3.0.
14744        case $host_os in
14745          aix4 | aix4.[01] | aix4.[01].*)
14746          if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14747               echo ' yes '
14748               echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14749            :
14750          else
14751            can_build_shared=no
14752          fi
14753          ;;
14754        esac
14755        # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14756        # soname into executable. Probably we can add versioning support to
14757        # collect2, so additional links can be useful in future.
14758        if test "$aix_use_runtimelinking" = yes; then
14759          # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14760          # instead of lib<name>.a to let people know that these are not
14761          # typical AIX shared libraries.
14762          library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14763        else
14764          # We preserve .a as extension for shared libraries through AIX4.2
14765          # and later when we are not doing run time linking.
14766          library_names_spec='${libname}${release}.a $libname.a'
14767          soname_spec='${libname}${release}${shared_ext}$major'
14768        fi
14769        shlibpath_var=LIBPATH
14770      fi
14771      ;;
14772    
14773    amigaos*)
14774      library_names_spec='$libname.ixlibrary $libname.a'
14775      # Create ${libname}_ixlibrary.a entries in /sys/libs.
14776      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'
14777      ;;
14778    
14779    beos*)
14780      library_names_spec='${libname}${shared_ext}'
14781      dynamic_linker="$host_os ld.so"
14782      shlibpath_var=LIBRARY_PATH
14783      ;;
14784    
14785    bsdi4*)
14786      version_type=linux
14787      need_version=no
14788      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789      soname_spec='${libname}${release}${shared_ext}$major'
14790      finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14791      shlibpath_var=LD_LIBRARY_PATH
14792      sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14793      sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14794      # the default ld.so.conf also contains /usr/contrib/lib and
14795      # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14796      # libtool to hard-code these into programs
14797      ;;
14798    
14799    cygwin* | mingw* | pw32*)
14800      version_type=windows
14801      shrext_cmds=".dll"
14802      need_version=no
14803      need_lib_prefix=no
14804    
14805      case $GCC,$host_os in
14806      yes,cygwin* | yes,mingw* | yes,pw32*)
14807        library_names_spec='$libname.dll.a'
14808        # DLL is installed to $(libdir)/../bin by postinstall_cmds
14809        postinstall_cmds='base_file=`basename \${file}`~
14810          dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14811          dldir=$destdir/`dirname \$dlpath`~
14812          test -d \$dldir || mkdir -p \$dldir~
14813          $install_prog $dir/$dlname \$dldir/$dlname'
14814        postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14815          dlpath=$dir/\$dldll~
14816           $rm \$dlpath'
14817        shlibpath_overrides_runpath=yes
14818    
14819        case $host_os in
14820        cygwin*)
14821          # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14822          soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14823          sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14824          ;;
14825        mingw*)
14826          # MinGW DLLs use traditional 'lib' prefix
14827          soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14828          sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14829          if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14830            # It is most probably a Windows format PATH printed by
14831            # mingw gcc, but we are running on Cygwin. Gcc prints its search
14832            # path with ; separators, and with drive letters. We can handle the
14833            # drive letters (cygwin fileutils understands them), so leave them,
14834            # especially as we might pass files found there to a mingw objdump,
14835            # which wouldn't understand a cygwinified path. Ahh.
14836            sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14837          else
14838            sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14839          fi
14840          ;;
14841        pw32*)
14842          # pw32 DLLs use 'pw' prefix rather than 'lib'
14843          library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14844          ;;
14845        esac
14846        ;;
14847    
14848      *)
14849        library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14850        ;;
14851      esac
14852      dynamic_linker='Win32 ld.exe'
14853      # FIXME: first we should search . and the directory the executable is in
14854      shlibpath_var=PATH
14855      ;;
14856    
14857    darwin* | rhapsody*)
14858      dynamic_linker="$host_os dyld"
14859      version_type=darwin
14860      need_lib_prefix=no
14861      need_version=no
14862      library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14863      soname_spec='${libname}${release}${major}$shared_ext'
14864      shlibpath_overrides_runpath=yes
14865      shlibpath_var=DYLD_LIBRARY_PATH
14866      shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14867      # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14868      if test "$GCC" = yes; then
14869        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"`
14870      else
14871        sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14872      fi
14873      sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14874      ;;
14875    
14876    dgux*)
14877      version_type=linux
14878      need_lib_prefix=no
14879      need_version=no
14880      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14881      soname_spec='${libname}${release}${shared_ext}$major'
14882      shlibpath_var=LD_LIBRARY_PATH
14883      ;;
14884    
14885    freebsd1*)
14886      dynamic_linker=no
14887      ;;
14888    
14889    kfreebsd*-gnu)
14890      version_type=linux
14891      need_lib_prefix=no
14892      need_version=no
14893      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14894      soname_spec='${libname}${release}${shared_ext}$major'
14895      shlibpath_var=LD_LIBRARY_PATH
14896      shlibpath_overrides_runpath=no
14897      hardcode_into_libs=yes
14898      dynamic_linker='GNU ld.so'
14899      ;;
14900    
14901    freebsd*)
14902      objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14903      version_type=freebsd-$objformat
14904      case $version_type in
14905        freebsd-elf*)
14906          library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14907          need_version=no
14908          need_lib_prefix=no
14909          ;;
14910        freebsd-*)
14911          library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14912          need_version=yes
14913          ;;
14914      esac
14915      shlibpath_var=LD_LIBRARY_PATH
14916      case $host_os in
14917      freebsd2*)
14918        shlibpath_overrides_runpath=yes
14919        ;;
14920      freebsd3.01* | freebsdelf3.01*)
14921        shlibpath_overrides_runpath=yes
14922        hardcode_into_libs=yes
14923        ;;
14924      *) # from 3.2 on
14925        shlibpath_overrides_runpath=no
14926        hardcode_into_libs=yes
14927        ;;
14928      esac
14929      ;;
14930    
14931    gnu*)
14932      version_type=linux
14933      need_lib_prefix=no
14934      need_version=no
14935      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14936      soname_spec='${libname}${release}${shared_ext}$major'
14937      shlibpath_var=LD_LIBRARY_PATH
14938      hardcode_into_libs=yes
14939      ;;
14940    
14941    hpux9* | hpux10* | hpux11*)
14942      # Give a soname corresponding to the major version so that dld.sl refuses to
14943      # link against other versions.
14944      version_type=sunos
14945      need_lib_prefix=no
14946      need_version=no
14947      case "$host_cpu" in
14948      ia64*)
14949        shrext_cmds='.so'
14950        hardcode_into_libs=yes
14951        dynamic_linker="$host_os dld.so"
14952        shlibpath_var=LD_LIBRARY_PATH
14953        shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14954        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14955        soname_spec='${libname}${release}${shared_ext}$major'
14956        if test "X$HPUX_IA64_MODE" = X32; then
14957          sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14958        else
14959          sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14960        fi
14961        sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14962        ;;
14963       hppa*64*)
14964         shrext_cmds='.sl'
14965         hardcode_into_libs=yes
14966         dynamic_linker="$host_os dld.sl"
14967         shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14968         shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14969         library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14970         soname_spec='${libname}${release}${shared_ext}$major'
14971         sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14972         sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14973         ;;
14974       *)
14975        shrext_cmds='.sl'
14976        dynamic_linker="$host_os dld.sl"
14977        shlibpath_var=SHLIB_PATH
14978        shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14979        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14980        soname_spec='${libname}${release}${shared_ext}$major'
14981        ;;
14982      esac
14983      # HP-UX runs *really* slowly unless shared libraries are mode 555.
14984      postinstall_cmds='chmod 555 $lib'
14985      ;;
14986    
14987    irix5* | irix6* | nonstopux*)
14988      case $host_os in
14989        nonstopux*) version_type=nonstopux ;;
14990        *)
14991            if test "$lt_cv_prog_gnu_ld" = yes; then
14992                    version_type=linux
14993            else
14994                    version_type=irix
14995            fi ;;
14996      esac
14997      need_lib_prefix=no
14998      need_version=no
14999      soname_spec='${libname}${release}${shared_ext}$major'
15000      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15001      case $host_os in
15002      irix5* | nonstopux*)
15003        libsuff= shlibsuff=
15004        ;;
15005      *)
15006        case $LD in # libtool.m4 will add one of these switches to LD
15007        *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15008          libsuff= shlibsuff= libmagic=32-bit;;
15009        *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15010          libsuff=32 shlibsuff=N32 libmagic=N32;;
15011        *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15012          libsuff=64 shlibsuff=64 libmagic=64-bit;;
15013        *) libsuff= shlibsuff= libmagic=never-match;;
15014        esac
15015        ;;
15016      esac
15017      shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15018      shlibpath_overrides_runpath=no
15019      sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15020      sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15021      hardcode_into_libs=yes
15022      ;;
15023    
15024    # No shared lib support for Linux oldld, aout, or coff.
15025    linux*oldld* | linux*aout* | linux*coff*)
15026      dynamic_linker=no
15027      ;;
15028    
15029    # This must be Linux ELF.
15030    linux*)
15031      version_type=linux
15032      need_lib_prefix=no
15033      need_version=no
15034      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15035      soname_spec='${libname}${release}${shared_ext}$major'
15036      finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15037      shlibpath_var=LD_LIBRARY_PATH
15038      shlibpath_overrides_runpath=no
15039      # This implies no fast_install, which is unacceptable.
15040      # Some rework will be needed to allow for fast_install
15041      # before this can be enabled.
15042      hardcode_into_libs=yes
15043    
15044      libsuff=
15045      if test "$lt_cv_cc_lib64_suffix" = "yes"; then
15046        libsuff=64
15047      fi
15048    
15049      # Append ld.so.conf contents to the search path
15050      if test -f /etc/ld.so.conf; then
15051        lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15052        sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} $lt_ld_extra"
15053        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} /usr/local/lib${libsuff} $lt_ld_extra"
15054      fi
15055    
15056      # We used to test for /lib/ld.so.1 and disable shared libraries on
15057      # powerpc, because MkLinux only supported shared libraries with the
15058      # GNU dynamic linker.  Since this was broken with cross compilers,
15059      # most powerpc-linux boxes support dynamic linking these days and
15060      # people can always --disable-shared, the test was removed, and we
15061      # assume the GNU/Linux dynamic linker is in use.
15062      dynamic_linker='GNU/Linux ld.so'
15063      ;;
15064    
15065    knetbsd*-gnu)
15066      version_type=linux
15067      need_lib_prefix=no
15068      need_version=no
15069      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15070      soname_spec='${libname}${release}${shared_ext}$major'
15071      shlibpath_var=LD_LIBRARY_PATH
15072      shlibpath_overrides_runpath=no
15073      hardcode_into_libs=yes
15074      dynamic_linker='GNU ld.so'
15075      ;;
15076    
15077    netbsd*)
15078      version_type=sunos
15079      need_lib_prefix=no
15080      need_version=no
15081      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15082        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15083        finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15084        dynamic_linker='NetBSD (a.out) ld.so'
15085      else
15086        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15087        soname_spec='${libname}${release}${shared_ext}$major'
15088        dynamic_linker='NetBSD ld.elf_so'
15089      fi
15090      shlibpath_var=LD_LIBRARY_PATH
15091      shlibpath_overrides_runpath=yes
15092      hardcode_into_libs=yes
15093      ;;
15094    
15095    newsos6)
15096      version_type=linux
15097      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15098      shlibpath_var=LD_LIBRARY_PATH
15099      shlibpath_overrides_runpath=yes
15100      ;;
15101    
15102    nto-qnx*)
15103      version_type=linux
15104      need_lib_prefix=no
15105      need_version=no
15106      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15107      soname_spec='${libname}${release}${shared_ext}$major'
15108      shlibpath_var=LD_LIBRARY_PATH
15109      shlibpath_overrides_runpath=yes
15110      ;;
15111    
15112    openbsd*)
15113      version_type=sunos
15114      need_lib_prefix=no
15115      need_version=yes
15116      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15117      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15118      shlibpath_var=LD_LIBRARY_PATH
15119      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15120        case $host_os in
15121          openbsd2.[89] | openbsd2.[89].*)
15122            shlibpath_overrides_runpath=no
15123            ;;
15124          *)
15125            shlibpath_overrides_runpath=yes
15126            ;;
15127          esac
15128      else
15129        shlibpath_overrides_runpath=yes
15130      fi
15131      ;;
15132    
15133    os2*)
15134      libname_spec='$name'
15135      shrext_cmds=".dll"
15136      need_lib_prefix=no
15137      library_names_spec='$libname${shared_ext} $libname.a'
15138      dynamic_linker='OS/2 ld.exe'
15139      shlibpath_var=LIBPATH
15140      ;;
15141    
15142    osf3* | osf4* | osf5*)
15143      version_type=osf
15144      need_lib_prefix=no
15145      need_version=no
15146      soname_spec='${libname}${release}${shared_ext}$major'
15147      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15148      shlibpath_var=LD_LIBRARY_PATH
15149      sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15150      sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15151      ;;
15152    
15153    sco3.2v5*)
15154      version_type=osf
15155      soname_spec='${libname}${release}${shared_ext}$major'
15156      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15157      shlibpath_var=LD_LIBRARY_PATH
15158      ;;
15159    
15160    solaris*)
15161      version_type=linux
15162      need_lib_prefix=no
15163      need_version=no
15164      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15165      soname_spec='${libname}${release}${shared_ext}$major'
15166      shlibpath_var=LD_LIBRARY_PATH
15167      shlibpath_overrides_runpath=yes
15168      hardcode_into_libs=yes
15169      # ldd complains unless libraries are executable
15170      postinstall_cmds='chmod +x $lib'
15171      ;;
15172    
15173    sunos4*)
15174      version_type=sunos
15175      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15176      finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15177      shlibpath_var=LD_LIBRARY_PATH
15178      shlibpath_overrides_runpath=yes
15179      if test "$with_gnu_ld" = yes; then
15180        need_lib_prefix=no
15181      fi
15182      need_version=yes
15183      ;;
15184    
15185    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15186      version_type=linux
15187      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15188      soname_spec='${libname}${release}${shared_ext}$major'
15189      shlibpath_var=LD_LIBRARY_PATH
15190      case $host_vendor in
15191        sni)
15192          shlibpath_overrides_runpath=no
15193          need_lib_prefix=no
15194          export_dynamic_flag_spec='${wl}-Blargedynsym'
15195          runpath_var=LD_RUN_PATH
15196          ;;
15197        siemens)
15198          need_lib_prefix=no
15199          ;;
15200        motorola)
15201          need_lib_prefix=no
15202          need_version=no
15203          shlibpath_overrides_runpath=no
15204          sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15205          ;;
15206      esac
15207      ;;
15208    
15209    sysv4*MP*)
15210      if test -d /usr/nec ;then
15211        version_type=linux
15212        library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15213        soname_spec='$libname${shared_ext}.$major'
15214        shlibpath_var=LD_LIBRARY_PATH
15215      fi
15216      ;;
15217    
15218    uts4*)
15219      version_type=linux
15220      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15221      soname_spec='${libname}${release}${shared_ext}$major'
15222      shlibpath_var=LD_LIBRARY_PATH
15223      ;;
15224    
15225    *)
15226      dynamic_linker=no
15227      ;;
15228    esac
15229    echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15230    echo "${ECHO_T}$dynamic_linker" >&6
15231    test "$dynamic_linker" = no && can_build_shared=no
15232    
15233    echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15234    echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15235    hardcode_action_F77=
15236    if test -n "$hardcode_libdir_flag_spec_F77" || \
15237       test -n "$runpath_var F77" || \
15238       test "X$hardcode_automatic_F77"="Xyes" ; then
15239    
15240      # We can hardcode non-existant directories.
15241      if test "$hardcode_direct_F77" != no &&
15242         # If the only mechanism to avoid hardcoding is shlibpath_var, we
15243         # have to relink, otherwise we might link with an installed library
15244         # when we should be linking with a yet-to-be-installed one
15245         ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15246         test "$hardcode_minus_L_F77" != no; then
15247        # Linking always hardcodes the temporary library directory.
15248        hardcode_action_F77=relink
15249      else
15250        # We can link without hardcoding, and we can hardcode nonexisting dirs.
15251        hardcode_action_F77=immediate
15252      fi
15253    else
15254      # We cannot hardcode anything, or else we can only hardcode existing
15255      # directories.
15256      hardcode_action_F77=unsupported
15257    fi
15258    echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15259    echo "${ECHO_T}$hardcode_action_F77" >&6
15260    
15261    if test "$hardcode_action_F77" = relink; then
15262      # Fast installation is not supported
15263      enable_fast_install=no
15264    elif test "$shlibpath_overrides_runpath" = yes ||
15265         test "$enable_shared" = no; then
15266      # Fast installation is not necessary
15267      enable_fast_install=needless
15268    fi
15269    
15270    striplib=
15271    old_striplib=
15272    echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15273    echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15274    if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15275      test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15276      test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15277      echo "$as_me:$LINENO: result: yes" >&5
15278    echo "${ECHO_T}yes" >&6
15279    else
15280    # FIXME - insert some real tests, host_os isn't really good enough
15281      case $host_os in
15282       darwin*)
15283           if test -n "$STRIP" ; then
15284             striplib="$STRIP -x"
15285             echo "$as_me:$LINENO: result: yes" >&5
15286    echo "${ECHO_T}yes" >&6
15287           else
15288      echo "$as_me:$LINENO: result: no" >&5
15289    echo "${ECHO_T}no" >&6
15290    fi
15291           ;;
15292       *)
15293      echo "$as_me:$LINENO: result: no" >&5
15294    echo "${ECHO_T}no" >&6
15295        ;;
15296      esac
15297    fi
15298    
15299    
15300    
15301    # The else clause should only fire when bootstrapping the
15302    # libtool distribution, otherwise you forgot to ship ltmain.sh
15303    # with your package, and you will get complaints that there are
15304    # no rules to generate ltmain.sh.
15305    if test -f "$ltmain"; then
15306      # See if we are running on zsh, and set the options which allow our commands through
15307      # without removal of \ escapes.
15308      if test -n "${ZSH_VERSION+set}" ; then
15309        setopt NO_GLOB_SUBST
15310      fi
15311      # Now quote all the things that may contain metacharacters while being
15312      # careful not to overquote the AC_SUBSTed values.  We take copies of the
15313      # variables and quote the copies for generation of the libtool script.
15314      for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15315        SED SHELL STRIP \
15316        libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15317        old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15318        deplibs_check_method reload_flag reload_cmds need_locks \
15319        lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15320        lt_cv_sys_global_symbol_to_c_name_address \
15321        sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15322        old_postinstall_cmds old_postuninstall_cmds \
15323        compiler_F77 \
15324        CC_F77 \
15325        LD_F77 \
15326        lt_prog_compiler_wl_F77 \
15327        lt_prog_compiler_pic_F77 \
15328        lt_prog_compiler_static_F77 \
15329        lt_prog_compiler_no_builtin_flag_F77 \
15330        export_dynamic_flag_spec_F77 \
15331        thread_safe_flag_spec_F77 \
15332        whole_archive_flag_spec_F77 \
15333        enable_shared_with_static_runtimes_F77 \
15334        old_archive_cmds_F77 \
15335        old_archive_from_new_cmds_F77 \
15336        predep_objects_F77 \
15337        postdep_objects_F77 \
15338        predeps_F77 \
15339        postdeps_F77 \
15340        compiler_lib_search_path_F77 \
15341        archive_cmds_F77 \
15342        archive_expsym_cmds_F77 \
15343        postinstall_cmds_F77 \
15344        postuninstall_cmds_F77 \
15345        old_archive_from_expsyms_cmds_F77 \
15346        allow_undefined_flag_F77 \
15347        no_undefined_flag_F77 \
15348        export_symbols_cmds_F77 \
15349        hardcode_libdir_flag_spec_F77 \
15350        hardcode_libdir_flag_spec_ld_F77 \
15351        hardcode_libdir_separator_F77 \
15352        hardcode_automatic_F77 \
15353        module_cmds_F77 \
15354        module_expsym_cmds_F77 \
15355        lt_cv_prog_compiler_c_o_F77 \
15356        exclude_expsyms_F77 \
15357        include_expsyms_F77; do
15358    
15359        case $var in
15360        old_archive_cmds_F77 | \
15361        old_archive_from_new_cmds_F77 | \
15362        archive_cmds_F77 | \
15363        archive_expsym_cmds_F77 | \
15364        module_cmds_F77 | \
15365        module_expsym_cmds_F77 | \
15366        old_archive_from_expsyms_cmds_F77 | \
15367        export_symbols_cmds_F77 | \
15368        extract_expsyms_cmds | reload_cmds | finish_cmds | \
15369        postinstall_cmds | postuninstall_cmds | \
15370        old_postinstall_cmds | old_postuninstall_cmds | \
15371        sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15372          # Double-quote double-evaled strings.
15373          eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15374          ;;
15375        *)
15376          eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15377          ;;
15378        esac
15379      done
15380    
15381      case $lt_echo in
15382      *'\$0 --fallback-echo"')
15383        lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15384        ;;
15385      esac
15386    
15387    cfgfile="$ofile"
15388    
15389      cat <<__EOF__ >> "$cfgfile"
15390    # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15391    
15392    # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15393    
15394    # Shell to use when invoking shell scripts.
15395    SHELL=$lt_SHELL
15396    
15397    # Whether or not to build shared libraries.
15398    build_libtool_libs=$enable_shared
15399    
15400    # Whether or not to build static libraries.
15401    build_old_libs=$enable_static
15402    
15403    # Whether or not to add -lc for building shared libraries.
15404    build_libtool_need_lc=$archive_cmds_need_lc_F77
15405    
15406    # Whether or not to disallow shared libs when runtime libs are static
15407    allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15408    
15409    # Whether or not to optimize for fast installation.
15410    fast_install=$enable_fast_install
15411    
15412    # The host system.
15413    host_alias=$host_alias
15414    host=$host
15415    
15416    # An echo program that does not interpret backslashes.
15417    echo=$lt_echo
15418    
15419    # The archiver.
15420    AR=$lt_AR
15421    AR_FLAGS=$lt_AR_FLAGS
15422    
15423    # A C compiler.
15424    LTCC=$lt_LTCC
15425    
15426    # A language-specific compiler.
15427    CC=$lt_compiler_F77
15428    
15429    # Is the compiler the GNU C compiler?
15430    with_gcc=$GCC_F77
15431    
15432    # An ERE matcher.
15433    EGREP=$lt_EGREP
15434    
15435    # The linker used to build libraries.
15436    LD=$lt_LD_F77
15437    
15438    # Whether we need hard or soft links.
15439    LN_S=$lt_LN_S
15440    
15441    # A BSD-compatible nm program.
15442    NM=$lt_NM
15443    
15444    # A symbol stripping program
15445    STRIP=$lt_STRIP
15446    
15447    # Used to examine libraries when file_magic_cmd begins "file"
15448    MAGIC_CMD=$MAGIC_CMD
15449    
15450    # Used on cygwin: DLL creation program.
15451    DLLTOOL="$DLLTOOL"
15452    
15453    # Used on cygwin: object dumper.
15454    OBJDUMP="$OBJDUMP"
15455    
15456    # Used on cygwin: assembler.
15457    AS="$AS"
15458    
15459    # The name of the directory that contains temporary libtool files.
15460    objdir=$objdir
15461    
15462    # How to create reloadable object files.
15463    reload_flag=$lt_reload_flag
15464    reload_cmds=$lt_reload_cmds
15465    
15466    # How to pass a linker flag through the compiler.
15467    wl=$lt_lt_prog_compiler_wl_F77
15468    
15469    # Object file suffix (normally "o").
15470    objext="$ac_objext"
15471    
15472    # Old archive suffix (normally "a").
15473    libext="$libext"
15474    
15475    # Shared library suffix (normally ".so").
15476    shrext_cmds='$shrext_cmds'
15477    
15478    # Executable file suffix (normally "").
15479    exeext="$exeext"
15480    
15481    # Additional compiler flags for building library objects.
15482    pic_flag=$lt_lt_prog_compiler_pic_F77
15483    pic_mode=$pic_mode
15484    
15485    # What is the maximum length of a command?
15486    max_cmd_len=$lt_cv_sys_max_cmd_len
15487    
15488    # Does compiler simultaneously support -c and -o options?
15489    compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15490    
15491    # Must we lock files when doing compilation ?
15492    need_locks=$lt_need_locks
15493    
15494    # Do we need the lib prefix for modules?
15495    need_lib_prefix=$need_lib_prefix
15496    
15497    # Do we need a version for libraries?
15498    need_version=$need_version
15499    
15500    # Whether dlopen is supported.
15501    dlopen_support=$enable_dlopen
15502    
15503    # Whether dlopen of programs is supported.
15504    dlopen_self=$enable_dlopen_self
15505    
15506    # Whether dlopen of statically linked programs is supported.
15507    dlopen_self_static=$enable_dlopen_self_static
15508    
15509    # Compiler flag to prevent dynamic linking.
15510    link_static_flag=$lt_lt_prog_compiler_static_F77
15511    
15512    # Compiler flag to turn off builtin functions.
15513    no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15514    
15515    # Compiler flag to allow reflexive dlopens.
15516    export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15517    
15518    # Compiler flag to generate shared objects directly from archives.
15519    whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15520    
15521    # Compiler flag to generate thread-safe objects.
15522    thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15523    
15524    # Library versioning type.
15525    version_type=$version_type
15526    
15527    # Format of library name prefix.
15528    libname_spec=$lt_libname_spec
15529    
15530    # List of archive names.  First name is the real one, the rest are links.
15531    # The last name is the one that the linker finds with -lNAME.
15532    library_names_spec=$lt_library_names_spec
15533    
15534    # The coded name of the library, if different from the real name.
15535    soname_spec=$lt_soname_spec
15536    
15537    # Commands used to build and install an old-style archive.
15538    RANLIB=$lt_RANLIB
15539    old_archive_cmds=$lt_old_archive_cmds_F77
15540    old_postinstall_cmds=$lt_old_postinstall_cmds
15541    old_postuninstall_cmds=$lt_old_postuninstall_cmds
15542    
15543    # Create an old-style archive from a shared archive.
15544    old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15545    
15546    # Create a temporary old-style archive to link instead of a shared archive.
15547    old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15548    
15549    # Commands used to build and install a shared archive.
15550    archive_cmds=$lt_archive_cmds_F77
15551    archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15552    postinstall_cmds=$lt_postinstall_cmds
15553    postuninstall_cmds=$lt_postuninstall_cmds
15554    
15555    # Commands used to build a loadable module (assumed same as above if empty)
15556    module_cmds=$lt_module_cmds_F77
15557    module_expsym_cmds=$lt_module_expsym_cmds_F77
15558    
15559    # Commands to strip libraries.
15560    old_striplib=$lt_old_striplib
15561    striplib=$lt_striplib
15562    
15563    # Dependencies to place before the objects being linked to create a
15564    # shared library.
15565    predep_objects=$lt_predep_objects_F77
15566    
15567    # Dependencies to place after the objects being linked to create a
15568    # shared library.
15569    postdep_objects=$lt_postdep_objects_F77
15570    
15571    # Dependencies to place before the objects being linked to create a
15572    # shared library.
15573    predeps=$lt_predeps_F77
15574    
15575    # Dependencies to place after the objects being linked to create a
15576    # shared library.
15577    postdeps=$lt_postdeps_F77
15578    
15579    # The library search path used internally by the compiler when linking
15580    # a shared library.
15581    compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15582    
15583    # Method to check whether dependent libraries are shared objects.
15584    deplibs_check_method=$lt_deplibs_check_method
15585    
15586    # Command to use when deplibs_check_method == file_magic.
15587    file_magic_cmd=$lt_file_magic_cmd
15588    
15589    # Flag that allows shared libraries with undefined symbols to be built.
15590    allow_undefined_flag=$lt_allow_undefined_flag_F77
15591    
15592    # Flag that forces no undefined symbols.
15593    no_undefined_flag=$lt_no_undefined_flag_F77
15594    
15595    # Commands used to finish a libtool library installation in a directory.
15596    finish_cmds=$lt_finish_cmds
15597    
15598    # Same as above, but a single script fragment to be evaled but not shown.
15599    finish_eval=$lt_finish_eval
15600    
15601  fi  # Take the output of nm and produce a listing of raw symbols and C names.
15602  if test -z "$ac_cv_prog_STRIP"; then  global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   ac_ct_STRIP=$STRIP  
   # Extract the first word of "strip", so it can be a program name with args.  
 set dummy strip; ac_word=$2  
 echo "$as_me:$LINENO: checking for $ac_word" >&5  
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  
 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   if test -n "$ac_ct_STRIP"; then  
   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.  
 else  
 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in $PATH  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
   for ac_exec_ext in '' $ac_executable_extensions; do  
   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then  
     ac_cv_prog_ac_ct_STRIP="strip"  
     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5  
     break 2  
   fi  
 done  
 done  
15603    
15604    test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"  # Transform the output of nm in a proper C declaration
15605  fi  global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 fi  
 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP  
 if test -n "$ac_ct_STRIP"; then  
   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5  
 echo "${ECHO_T}$ac_ct_STRIP" >&6  
 else  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
 fi  
15606    
15607    STRIP=$ac_ct_STRIP  # Transform the output of nm in a C name address pair
15608  else  global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   STRIP="$ac_cv_prog_STRIP"  
 fi  
15609    
15610    # This is the shared library runtime path variable.
15611    runpath_var=$runpath_var
15612    
15613  enable_dlopen=no  # This is the shared library path variable.
15614  enable_win32_dll=no  shlibpath_var=$shlibpath_var
15615    
15616  # Check whether --enable-libtool-lock or --disable-libtool-lock was given.  # Is shlibpath searched before the hard-coded library search path?
15617  if test "${enable_libtool_lock+set}" = set; then  shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   enableval="$enable_libtool_lock"  
15618    
15619  fi;  # How to hardcode a shared library path into an executable.
15620  test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes  hardcode_action=$hardcode_action_F77
15621    
15622  # Some flags need to be propagated to the compiler or linker for good  # Whether we should hardcode library paths into libraries.
15623  # libtool support.  hardcode_into_libs=$hardcode_into_libs
 case $host in  
 *-*-irix6*)  
   # Find out which ABI we are using.  
   echo '#line 5348 "configure"' > conftest.$ac_ext  
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
     case `/usr/bin/file conftest.$ac_objext` in  
     *32-bit*)  
       LD="${LD-ld} -32"  
       ;;  
     *N32*)  
       LD="${LD-ld} -n32"  
       ;;  
     *64-bit*)  
       LD="${LD-ld} -64"  
       ;;  
     esac  
   fi  
   rm -rf conftest*  
   ;;  
15624    
15625  *-*-linux*)  # Flag to hardcode \$libdir into a binary during linking.
15626    # Test if the compiler is 64bit  # This must work even if \$libdir does not exist.
15627    echo 'int i;' > conftest.$ac_ext  hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
   lt_cv_cc_64bit_output=no  
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
     case `/usr/bin/file conftest.$ac_objext` in  
     *"ELF 64"*)  
       lt_cv_cc_64bit_output=yes  
       ;;  
     esac  
   fi  
   rm -rf conftest*  
   ;;  
15628    
15629  *-*-sco3.2v5*)  # If ld is used when linking, flag to hardcode \$libdir into
15630    # On SCO OpenServer 5, we need -belf to get full-featured binaries.  # a binary during linking. This must work even if \$libdir does
15631    SAVE_CFLAGS="$CFLAGS"  # not exist.
15632    CFLAGS="$CFLAGS -belf"  hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5  
 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6  
 if test "${lt_cv_cc_needs_belf+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
15633    
15634    # Whether we need a single -rpath flag with a separated argument.
15635    hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15636    
15637       ac_ext=c  # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15638  ac_cpp='$CPP $CPPFLAGS'  # resulting binary.
15639  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  hardcode_direct=$hardcode_direct_F77
 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  
 ac_compiler_gnu=$ac_cv_c_compiler_gnu  
15640    
15641       cat >conftest.$ac_ext <<_ACEOF  # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15642  /* confdefs.h.  */  # resulting binary.
15643  _ACEOF  hardcode_minus_L=$hardcode_minus_L_F77
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
15644    
15645  int  # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15646  main ()  # the resulting binary.
15647  {  hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15648    
15649    ;  # Set to yes if building a shared library automatically hardcodes DIR into the library
15650    return 0;  # and all subsequent libraries and executables linked against it.
15651  }  hardcode_automatic=$hardcode_automatic_F77
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   lt_cv_cc_needs_belf=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
15652    
15653  lt_cv_cc_needs_belf=no  # Variables whose values should be saved in libtool wrapper scripts and
15654  fi  # restored at relink time.
15655  rm -f conftest.err conftest.$ac_objext \  variables_saved_for_relink="$variables_saved_for_relink"
       conftest$ac_exeext conftest.$ac_ext  
      ac_ext=c  
 ac_cpp='$CPP $CPPFLAGS'  
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'  
 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'  
 ac_compiler_gnu=$ac_cv_c_compiler_gnu  
15656    
15657  fi  # Whether libtool must link a program against all its dependency libraries.
15658  echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5  link_all_deplibs=$link_all_deplibs_F77
15659  echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6  
15660    if test x"$lt_cv_cc_needs_belf" != x"yes"; then  # Compile-time system search path for libraries
15661      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf  sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
     CFLAGS="$SAVE_CFLAGS"  
   fi  
   ;;  
15662    
15663    # Run-time system search path for libraries
15664    sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15665    
15666  esac  # Fix the shell variable \$srcfile for the compiler.
15667    fix_srcfile_path="$fix_srcfile_path_F77"
15668    
15669  # Sed substitution that helps us do robust quoting.  It backslashifies  # Set to yes if exported symbols are required.
15670  # metacharacters that are still active within double-quoted strings.  always_export_symbols=$always_export_symbols_F77
 Xsed='sed -e s/^X//'  
 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'  
15671    
15672  # Same as above, but do not quote variable references.  # The commands to list exported symbols.
15673  double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'  export_symbols_cmds=$lt_export_symbols_cmds_F77
15674    
15675  # Sed substitution to delay expansion of an escaped shell variable in a  # The commands to extract the exported symbol list from a shared archive.
15676  # double_quote_subst'ed string.  extract_expsyms_cmds=$lt_extract_expsyms_cmds
 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'  
15677    
15678  # Constants:  # Symbols that should not be listed in the preloaded symbols.
15679  rm="rm -f"  exclude_expsyms=$lt_exclude_expsyms_F77
15680    
15681  # Global variables:  # Symbols that must always be exported.
15682  default_ofile=libtool  include_expsyms=$lt_include_expsyms_F77
 can_build_shared=yes  
15683    
15684  # All known linkers require a `.a' archive for static linking (except M$VC,  # ### END LIBTOOL TAG CONFIG: $tagname
 # which needs '.lib').  
 libext=a  
 ltmain="$ac_aux_dir/ltmain.sh"  
 ofile="$default_ofile"  
 with_gnu_ld="$lt_cv_prog_gnu_ld"  
 need_locks="$enable_libtool_lock"  
15685    
15686  old_CC="$CC"  __EOF__
 old_CFLAGS="$CFLAGS"  
15687    
 # Set sane defaults for various variables  
 test -z "$AR" && AR=ar  
 test -z "$AR_FLAGS" && AR_FLAGS=cru  
 test -z "$AS" && AS=as  
 test -z "$CC" && CC=cc  
 test -z "$DLLTOOL" && DLLTOOL=dlltool  
 test -z "$LD" && LD=ld  
 test -z "$LN_S" && LN_S="ln -s"  
 test -z "$MAGIC_CMD" && MAGIC_CMD=file  
 test -z "$NM" && NM=nm  
 test -z "$OBJDUMP" && OBJDUMP=objdump  
 test -z "$RANLIB" && RANLIB=:  
 test -z "$STRIP" && STRIP=:  
 test -z "$ac_objext" && ac_objext=o  
15688    
15689  if test x"$host" != x"$build"; then  else
15690    ac_tool_prefix=${host_alias}-    # If there is no Makefile yet, we rely on a make rule to execute
15691  else    # `config.status --recheck' to rerun these tests and create the
15692    ac_tool_prefix=    # libtool script then.
15693  fi    ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15694      if test -f "$ltmain_in"; then
15695        test -f Makefile && make "$ltmain"
15696      fi
15697    fi
15698    
15699    
15700    ac_ext=c
15701    ac_cpp='$CPP $CPPFLAGS'
15702    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15703    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15704    ac_compiler_gnu=$ac_cv_c_compiler_gnu
15705    
15706    CC="$lt_save_CC"
15707    
15708            else
15709              tagname=""
15710            fi
15711            ;;
15712    
15713  # Transform linux* to *-*-linux-gnu*, to support old configure scripts.        GCJ)
15714  case $host_os in          if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 linux-gnu*) ;;  
 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`  
 esac  
15715    
 case $host_os in  
 aix3*)  
   # AIX sometimes has problems with the GCC collect2 program.  For some  
   # reason, if we set the COLLECT_NAMES environment variable, the problems  
   # vanish in a puff of smoke.  
   if test "X${COLLECT_NAMES+set}" != Xset; then  
     COLLECT_NAMES=  
     export COLLECT_NAMES  
   fi  
   ;;  
 esac  
15716    
 # Determine commands to create old-style static archives.  
 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'  
 old_postinstall_cmds='chmod 644 $oldlib'  
 old_postuninstall_cmds=  
15717    
15718  if test -n "$RANLIB"; then  # Source file extension for Java test sources.
15719    case $host_os in  ac_ext=java
15720    openbsd*)  
15721      old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"  # Object file extension for compiled Java test sources.
15722      ;;  objext=o
15723    *)  objext_GCJ=$objext
15724      old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"  
15725      ;;  # Code to be used in simple compile tests
15726    esac  lt_simple_compile_test_code="class foo {}\n"
15727    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"  
15728  fi  # Code to be used in simple link tests
15729    lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15730    
15731    # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15732    
15733    # If no C compiler was specified, use CC.
15734    LTCC=${LTCC-"$CC"}
15735    
15736  # Allow CC to be a program name with arguments.  # Allow CC to be a program name with arguments.
15737  set dummy $CC  compiler=$CC
 compiler="$2"  
15738    
15739  echo "$as_me:$LINENO: checking for objdir" >&5  
15740  echo $ECHO_N "checking for objdir... $ECHO_C" >&6  # Allow CC to be a program name with arguments.
15741  rm -f .libs 2>/dev/null  lt_save_CC="$CC"
15742  mkdir .libs 2>/dev/null  CC=${GCJ-"gcj"}
15743  if test -d .libs; then  compiler=$CC
15744    objdir=.libs  compiler_GCJ=$CC
15745    
15746    # GCJ did not exist at the time GCC didn't implicitly link libc in.
15747    archive_cmds_need_lc_GCJ=no
15748    
15749    
15750    lt_prog_compiler_no_builtin_flag_GCJ=
15751    
15752    if test "$GCC" = yes; then
15753      lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15754    
15755    
15756    echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15757    echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15758    if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15759      echo $ECHO_N "(cached) $ECHO_C" >&6
15760  else  else
15761    # MS-DOS does not allow filenames that begin with a dot.    lt_cv_prog_compiler_rtti_exceptions=no
15762    objdir=_libs    ac_outfile=conftest.$ac_objext
15763       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15764       lt_compiler_flag="-fno-rtti -fno-exceptions"
15765       # Insert the option either (1) after the last *FLAGS variable, or
15766       # (2) before a word containing "conftest.", or (3) at the end.
15767       # Note that $ac_compile itself does not contain backslashes and begins
15768       # with a dollar sign (not a hyphen), so the echo should work correctly.
15769       # The option is referenced via a variable to avoid confusing sed.
15770       lt_compile=`echo "$ac_compile" | $SED \
15771       -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15772       -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15773       -e 's:$: $lt_compiler_flag:'`
15774       (eval echo "\"\$as_me:15774: $lt_compile\"" >&5)
15775       (eval "$lt_compile" 2>conftest.err)
15776       ac_status=$?
15777       cat conftest.err >&5
15778       echo "$as_me:15778: \$? = $ac_status" >&5
15779       if (exit $ac_status) && test -s "$ac_outfile"; then
15780         # The compiler can only warn and ignore the option if not recognized
15781         # So say no if there are warnings
15782         if test ! -s conftest.err; then
15783           lt_cv_prog_compiler_rtti_exceptions=yes
15784         fi
15785       fi
15786       $rm conftest*
15787    
15788  fi  fi
15789  rmdir .libs 2>/dev/null  echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15790  echo "$as_me:$LINENO: result: $objdir" >&5  echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 echo "${ECHO_T}$objdir" >&6  
15791    
15792    if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15793        lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15794    else
15795        :
15796    fi
15797    
15798    fi
15799    
15800  # Check whether --with-pic or --without-pic was given.  lt_prog_compiler_wl_GCJ=
15801  if test "${with_pic+set}" = set; then  lt_prog_compiler_pic_GCJ=
15802    withval="$with_pic"  lt_prog_compiler_static_GCJ=
   pic_mode="$withval"  
 else  
   pic_mode=default  
 fi;  
 test -z "$pic_mode" && pic_mode=default  
15803    
 # We assume here that the value for lt_cv_prog_cc_pic will not be cached  
 # in isolation, and that seeing it set (from the cache) indicates that  
 # the associated values are set (in the cache) correctly too.  
15804  echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5  echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15805  echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6  echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 if test "${lt_cv_prog_cc_pic+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
    lt_cv_prog_cc_pic=  
   lt_cv_prog_cc_shlib=  
   lt_cv_prog_cc_wl=  
   lt_cv_prog_cc_static=  
   lt_cv_prog_cc_no_builtin=  
   lt_cv_prog_cc_can_build_shared=$can_build_shared  
15806    
15807    if test "$GCC" = yes; then    if test "$GCC" = yes; then
15808      lt_cv_prog_cc_wl='-Wl,'      lt_prog_compiler_wl_GCJ='-Wl,'
15809      lt_cv_prog_cc_static='-static'      lt_prog_compiler_static_GCJ='-static'
15810    
15811      case $host_os in      case $host_os in
15812      aix*)        aix*)
15813        # Below there is a dirty hack to force normal static linking with -ldl        # All AIX code is PIC.
15814        # The problem is because libdl dynamically linked with both libc and        if test "$host_cpu" = ia64; then
15815        # libC (AIX C++ library), which obviously doesn't included in libraries          # AIX 5 now supports IA64 processor
15816        # list by gcc. This cause undefined symbols with -static flags.          lt_prog_compiler_static_GCJ='-Bstatic'
15817        # This hack allows C programs to be linked with "-static -ldl", but        fi
       # not sure about C++ programs.  
       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"  
15818        ;;        ;;
15819    
15820      amigaos*)      amigaos*)
15821        # FIXME: we need at least 68020 code to build shared libraries, but        # FIXME: we need at least 68020 code to build shared libraries, but
15822        # adding the `-m68020' flag to GCC prevents building anything better,        # adding the `-m68020' flag to GCC prevents building anything better,
15823        # like `-m68040'.        # like `-m68040'.
15824        lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'        lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15825        ;;        ;;
15826      beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)  
15827        beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15828        # PIC is the default for these OSes.        # PIC is the default for these OSes.
15829        ;;        ;;
15830    
15831        mingw* | pw32* | os2*)
15832          # This hack is so that the source file can tell whether it is being
15833          # built for inclusion in a dll (and should export symbols for example).
15834          lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15835          ;;
15836    
15837      darwin* | rhapsody*)      darwin* | rhapsody*)
15838        # PIC is the default on this platform        # PIC is the default on this platform
15839        # Common symbols not allowed in MH_DYLIB files        # Common symbols not allowed in MH_DYLIB files
15840        lt_cv_prog_cc_pic='-fno-common'        lt_prog_compiler_pic_GCJ='-fno-common'
15841        ;;        ;;
15842      cygwin* | mingw* | pw32* | os2*)  
15843        # This hack is so that the source file can tell whether it is being      msdosdjgpp*)
15844        # built for inclusion in a dll (and should export symbols for example).        # Just because we use GCC doesn't mean we suddenly get shared libraries
15845        lt_cv_prog_cc_pic='-DDLL_EXPORT'        # on systems that don't support them.
15846          lt_prog_compiler_can_build_shared_GCJ=no
15847          enable_shared=no
15848        ;;        ;;
15849    
15850      sysv4*MP*)      sysv4*MP*)
15851        if test -d /usr/nec; then        if test -d /usr/nec; then
15852           lt_cv_prog_cc_pic=-Kconform_pic          lt_prog_compiler_pic_GCJ=-Kconform_pic
15853        fi        fi
15854        ;;        ;;
15855    
15856        hpux*)
15857          # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15858          # not for PA HP-UX.
15859          case "$host_cpu" in
15860          hppa*64*|ia64*)
15861            # +Z the default
15862            ;;
15863          *)
15864            lt_prog_compiler_pic_GCJ='-fPIC'
15865            ;;
15866          esac
15867          ;;
15868    
15869      *)      *)
15870        lt_cv_prog_cc_pic='-fPIC'        lt_prog_compiler_pic_GCJ='-fPIC'
15871        ;;        ;;
15872      esac      esac
15873    else    else
15874      # PORTME Check for PIC flags for the system compiler.      # PORTME Check for flag to pass linker flags through the system compiler.
15875      case $host_os in      case $host_os in
15876      aix3* | aix4* | aix5*)      aix*)
15877        lt_cv_prog_cc_wl='-Wl,'        lt_prog_compiler_wl_GCJ='-Wl,'
       # All AIX code is PIC.  
15878        if test "$host_cpu" = ia64; then        if test "$host_cpu" = ia64; then
15879          # AIX 5 now supports IA64 processor          # AIX 5 now supports IA64 processor
15880          lt_cv_prog_cc_static='-Bstatic'          lt_prog_compiler_static_GCJ='-Bstatic'
15881        else        else
15882          lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'          lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15883        fi        fi
15884        ;;        ;;
15885    
15886        mingw* | pw32* | os2*)
15887          # This hack is so that the source file can tell whether it is being
15888          # built for inclusion in a dll (and should export symbols for example).
15889          lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15890          ;;
15891    
15892      hpux9* | hpux10* | hpux11*)      hpux9* | hpux10* | hpux11*)
15893        # Is there a better lt_cv_prog_cc_static that works with the bundled CC?        lt_prog_compiler_wl_GCJ='-Wl,'
15894        lt_cv_prog_cc_wl='-Wl,'        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15895        lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"        # not for PA HP-UX.
15896        lt_cv_prog_cc_pic='+Z'        case "$host_cpu" in
15897          hppa*64*|ia64*)
15898            # +Z the default
15899            ;;
15900          *)
15901            lt_prog_compiler_pic_GCJ='+Z'
15902            ;;
15903          esac
15904          # Is there a better lt_prog_compiler_static that works with the bundled CC?
15905          lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15906        ;;        ;;
15907    
15908      irix5* | irix6* | nonstopux*)      irix5* | irix6* | nonstopux*)
15909        lt_cv_prog_cc_wl='-Wl,'        lt_prog_compiler_wl_GCJ='-Wl,'
       lt_cv_prog_cc_static='-non_shared'  
15910        # PIC (with -KPIC) is the default.        # PIC (with -KPIC) is the default.
15911          lt_prog_compiler_static_GCJ='-non_shared'
15912        ;;        ;;
15913    
15914      cygwin* | mingw* | pw32* | os2*)      newsos6)
15915        # This hack is so that the source file can tell whether it is being        lt_prog_compiler_pic_GCJ='-KPIC'
15916        # built for inclusion in a dll (and should export symbols for example).        lt_prog_compiler_static_GCJ='-Bstatic'
       lt_cv_prog_cc_pic='-DDLL_EXPORT'  
15917        ;;        ;;
15918    
15919      newsos6)      linux*)
15920        lt_cv_prog_cc_pic='-KPIC'        case $CC in
15921        lt_cv_prog_cc_static='-Bstatic'        icc* | ecc*)
15922            lt_prog_compiler_wl_GCJ='-Wl,'
15923            lt_prog_compiler_pic_GCJ='-KPIC'
15924            lt_prog_compiler_static_GCJ='-static'
15925            ;;
15926          ccc*)
15927            lt_prog_compiler_wl_GCJ='-Wl,'
15928            # All Alpha code is PIC.
15929            lt_prog_compiler_static_GCJ='-non_shared'
15930            ;;
15931          esac
15932        ;;        ;;
15933    
15934      osf3* | osf4* | osf5*)      osf3* | osf4* | osf5*)
15935          lt_prog_compiler_wl_GCJ='-Wl,'
15936        # All OSF/1 code is PIC.        # All OSF/1 code is PIC.
15937        lt_cv_prog_cc_wl='-Wl,'        lt_prog_compiler_static_GCJ='-non_shared'
       lt_cv_prog_cc_static='-non_shared'  
15938        ;;        ;;
15939    
15940      sco3.2v5*)      sco3.2v5*)
15941        lt_cv_prog_cc_pic='-Kpic'        lt_prog_compiler_pic_GCJ='-Kpic'
15942        lt_cv_prog_cc_static='-dn'        lt_prog_compiler_static_GCJ='-dn'
       lt_cv_prog_cc_shlib='-belf'  
       ;;  
   
     solaris*)  
       lt_cv_prog_cc_pic='-KPIC'  
       lt_cv_prog_cc_static='-Bstatic'  
       lt_cv_prog_cc_wl='-Wl,'  
       ;;  
   
     sunos4*)  
       lt_cv_prog_cc_pic='-PIC'  
       lt_cv_prog_cc_static='-Bstatic'  
       lt_cv_prog_cc_wl='-Qoption ld '  
       ;;  
   
     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)  
       lt_cv_prog_cc_pic='-KPIC'  
       lt_cv_prog_cc_static='-Bstatic'  
       lt_cv_prog_cc_wl='-Wl,'  
       ;;  
   
     uts4*)  
       lt_cv_prog_cc_pic='-pic'  
       lt_cv_prog_cc_static='-Bstatic'  
       ;;  
   
     sysv4*MP*)  
       if test -d /usr/nec ;then  
         lt_cv_prog_cc_pic='-Kconform_pic'  
         lt_cv_prog_cc_static='-Bstatic'  
       fi  
       ;;  
   
     *)  
       lt_cv_prog_cc_can_build_shared=no  
15943        ;;        ;;
     esac  
   fi  
   
 fi  
   
 if test -z "$lt_cv_prog_cc_pic"; then  
   echo "$as_me:$LINENO: result: none" >&5  
 echo "${ECHO_T}none" >&6  
 else  
   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5  
 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6  
   
   # Check to make sure the pic_flag actually works.  
   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5  
 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6  
   if test "${lt_cv_prog_cc_pic_works+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
       save_CFLAGS="$CFLAGS"  
     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"  
     cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
 int  
 main ()  
 {  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
         case $host_os in  
       hpux9* | hpux10* | hpux11*)  
         # On HP-UX, both CC and GCC only warn that PIC is supported... then  
         # they create non-PIC objects.  So, if there were any warnings, we  
         # assume that PIC is not supported.  
         if test -s conftest.err; then  
           lt_cv_prog_cc_pic_works=no  
         else  
           lt_cv_prog_cc_pic_works=yes  
         fi  
         ;;  
       *)  
         lt_cv_prog_cc_pic_works=yes  
         ;;  
       esac  
   
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
       lt_cv_prog_cc_pic_works=no  
   
 fi  
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
     CFLAGS="$save_CFLAGS"  
   
 fi  
   
   
   if test "X$lt_cv_prog_cc_pic_works" = Xno; then  
     lt_cv_prog_cc_pic=  
     lt_cv_prog_cc_can_build_shared=no  
   else  
     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"  
   fi  
   
   echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5  
 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6  
 fi  
   
 # Check for any special shared library compilation flags.  
 if test -n "$lt_cv_prog_cc_shlib"; then  
   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5  
 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}  
   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :  
   else  
    { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5  
 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}  
     lt_cv_prog_cc_can_build_shared=no  
   fi  
 fi  
   
 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5  
 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6  
 if test "${lt_cv_prog_cc_static_works+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
     lt_cv_prog_cc_static_works=no  
   save_LDFLAGS="$LDFLAGS"  
   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
 int  
 main ()  
 {  
   
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext conftest$ac_exeext  
 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest$ac_exeext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
   lt_cv_prog_cc_static_works=yes  
 else  
   echo "$as_me: failed program was:" >&5  
 sed 's/^/| /' conftest.$ac_ext >&5  
   
 fi  
 rm -f conftest.err conftest.$ac_objext \  
       conftest$ac_exeext conftest.$ac_ext  
   LDFLAGS="$save_LDFLAGS"  
15944    
15945  fi      solaris*)
15946          lt_prog_compiler_wl_GCJ='-Wl,'
15947          lt_prog_compiler_pic_GCJ='-KPIC'
15948          lt_prog_compiler_static_GCJ='-Bstatic'
15949          ;;
15950    
15951        sunos4*)
15952          lt_prog_compiler_wl_GCJ='-Qoption ld '
15953          lt_prog_compiler_pic_GCJ='-PIC'
15954          lt_prog_compiler_static_GCJ='-Bstatic'
15955          ;;
15956    
15957  # Belt *and* braces to stop my trousers falling down:      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15958  test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=        lt_prog_compiler_wl_GCJ='-Wl,'
15959  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5        lt_prog_compiler_pic_GCJ='-KPIC'
15960  echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6        lt_prog_compiler_static_GCJ='-Bstatic'
15961          ;;
15962    
15963  pic_flag="$lt_cv_prog_cc_pic"      sysv4*MP*)
15964  special_shlib_compile_flags="$lt_cv_prog_cc_shlib"        if test -d /usr/nec ;then
15965  wl="$lt_cv_prog_cc_wl"          lt_prog_compiler_pic_GCJ='-Kconform_pic'
15966  link_static_flag="$lt_cv_prog_cc_static"          lt_prog_compiler_static_GCJ='-Bstatic'
15967  no_builtin_flag="$lt_cv_prog_cc_no_builtin"        fi
15968  can_build_shared="$lt_cv_prog_cc_can_build_shared"        ;;
15969    
15970        uts4*)
15971          lt_prog_compiler_pic_GCJ='-pic'
15972          lt_prog_compiler_static_GCJ='-Bstatic'
15973          ;;
15974    
15975  # Check to see if options -o and -c are simultaneously supported by compiler      *)
15976  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5        lt_prog_compiler_can_build_shared_GCJ=no
15977  echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6        ;;
15978  if test "${lt_cv_compiler_c_o+set}" = set; then      esac
15979    echo $ECHO_N "(cached) $ECHO_C" >&6    fi
 else  
15980    
15981  $rm -r conftest 2>/dev/null  echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15982  mkdir conftest  echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 cd conftest  
 echo "int some_variable = 0;" > conftest.$ac_ext  
 mkdir out  
 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers  
 # that will create temporary files in the current directory regardless of  
 # the output directory.  Thus, making CWD read-only will cause this test  
 # to fail, enabling locking or at least warning the user not to do parallel  
 # builds.  
 chmod -w .  
 save_CFLAGS="$CFLAGS"  
 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"  
 compiler_c_o=no  
 if { (eval echo configure:5924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then  
   # The compiler can only warn and ignore the option if not recognized  
   # So say no if there are warnings  
   if test -s out/conftest.err; then  
     lt_cv_compiler_c_o=no  
   else  
     lt_cv_compiler_c_o=yes  
   fi  
 else  
   # Append any errors to the config.log.  
   cat out/conftest.err 1>&5  
   lt_cv_compiler_c_o=no  
 fi  
 CFLAGS="$save_CFLAGS"  
 chmod u+w .  
 $rm conftest* out/*  
 rmdir out  
 cd ..  
 rmdir conftest  
 $rm -r conftest 2>/dev/null  
15983    
15984  fi  #
15985    # Check to make sure the PIC flag actually works.
15986    #
15987    if test -n "$lt_prog_compiler_pic_GCJ"; then
15988    
15989  compiler_c_o=$lt_cv_compiler_c_o  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15990  echo "$as_me:$LINENO: result: $compiler_c_o" >&5  echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15991  echo "${ECHO_T}$compiler_c_o" >&6  if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
   
 if test x"$compiler_c_o" = x"yes"; then  
   # Check to see if we can write to a .lo  
   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5  
 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6  
   if test "${lt_cv_compiler_o_lo+set}" = set; then  
15992    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
15993  else  else
15994      lt_prog_compiler_pic_works_GCJ=no
15995      ac_outfile=conftest.$ac_objext
15996       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15997       lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15998       # Insert the option either (1) after the last *FLAGS variable, or
15999       # (2) before a word containing "conftest.", or (3) at the end.
16000       # Note that $ac_compile itself does not contain backslashes and begins
16001       # with a dollar sign (not a hyphen), so the echo should work correctly.
16002       # The option is referenced via a variable to avoid confusing sed.
16003       lt_compile=`echo "$ac_compile" | $SED \
16004       -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16005       -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16006       -e 's:$: $lt_compiler_flag:'`
16007       (eval echo "\"\$as_me:16007: $lt_compile\"" >&5)
16008       (eval "$lt_compile" 2>conftest.err)
16009       ac_status=$?
16010       cat conftest.err >&5
16011       echo "$as_me:16011: \$? = $ac_status" >&5
16012       if (exit $ac_status) && test -s "$ac_outfile"; then
16013         # The compiler can only warn and ignore the option if not recognized
16014         # So say no if there are warnings
16015         if test ! -s conftest.err; then
16016           lt_prog_compiler_pic_works_GCJ=yes
16017         fi
16018       fi
16019       $rm conftest*
16020    
16021    lt_cv_compiler_o_lo=no  fi
16022    save_CFLAGS="$CFLAGS"  echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16023    CFLAGS="$CFLAGS -c -o conftest.lo"  echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
   save_objext="$ac_objext"  
   ac_objext=lo  
   cat >conftest.$ac_ext <<_ACEOF  
 /* confdefs.h.  */  
 _ACEOF  
 cat confdefs.h >>conftest.$ac_ext  
 cat >>conftest.$ac_ext <<_ACEOF  
 /* end confdefs.h.  */  
   
 int  
 main ()  
 {  
 int some_variable = 0;  
   ;  
   return 0;  
 }  
 _ACEOF  
 rm -f conftest.$ac_objext  
 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  
   (eval $ac_compile) 2>conftest.er1  
   ac_status=$?  
   grep -v '^ *+' conftest.er1 >conftest.err  
   rm -f conftest.er1  
   cat conftest.err >&5  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } &&  
          { ac_try='test -z "$ac_c_werror_flag"  
                          || test ! -s conftest.err'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; } &&  
          { ac_try='test -s conftest.$ac_objext'  
   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5  
   (eval $ac_try) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; }; then  
       # The compiler can only warn and ignore the option if not recognized  
     # So say no if there are warnings  
     if test -s conftest.err; then  
       lt_cv_compiler_o_lo=no  
     else  
       lt_cv_compiler_o_lo=yes  
     fi  
16024    
16025    if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16026        case $lt_prog_compiler_pic_GCJ in
16027         "" | " "*) ;;
16028         *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16029         esac
16030  else  else
16031    echo "$as_me: failed program was:" >&5      lt_prog_compiler_pic_GCJ=
16032  sed 's/^/| /' conftest.$ac_ext >&5       lt_prog_compiler_can_build_shared_GCJ=no
   
16033  fi  fi
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  
   ac_objext="$save_objext"  
   CFLAGS="$save_CFLAGS"  
16034    
16035  fi  fi
16036    case "$host_os" in
16037      # For platforms which do not support PIC, -DPIC is meaningless:
16038      *djgpp*)
16039        lt_prog_compiler_pic_GCJ=
16040        ;;
16041      *)
16042        lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16043        ;;
16044    esac
16045    
16046    compiler_o_lo=$lt_cv_compiler_o_lo  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16047    echo "$as_me:$LINENO: result: $compiler_o_lo" >&5  echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16048  echo "${ECHO_T}$compiler_o_lo" >&6  if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16049      echo $ECHO_N "(cached) $ECHO_C" >&6
16050  else  else
16051    compiler_o_lo=no    lt_cv_prog_compiler_c_o_GCJ=no
16052       $rm -r conftest 2>/dev/null
16053       mkdir conftest
16054       cd conftest
16055       mkdir out
16056       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16057    
16058       lt_compiler_flag="-o out/conftest2.$ac_objext"
16059       # Insert the option either (1) after the last *FLAGS variable, or
16060       # (2) before a word containing "conftest.", or (3) at the end.
16061       # Note that $ac_compile itself does not contain backslashes and begins
16062       # with a dollar sign (not a hyphen), so the echo should work correctly.
16063       lt_compile=`echo "$ac_compile" | $SED \
16064       -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16065       -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16066       -e 's:$: $lt_compiler_flag:'`
16067       (eval echo "\"\$as_me:16067: $lt_compile\"" >&5)
16068       (eval "$lt_compile" 2>out/conftest.err)
16069       ac_status=$?
16070       cat out/conftest.err >&5
16071       echo "$as_me:16071: \$? = $ac_status" >&5
16072       if (exit $ac_status) && test -s out/conftest2.$ac_objext
16073       then
16074         # The compiler can only warn and ignore the option if not recognized
16075         # So say no if there are warnings
16076         if test ! -s out/conftest.err; then
16077           lt_cv_prog_compiler_c_o_GCJ=yes
16078         fi
16079       fi
16080       chmod u+w .
16081       $rm conftest*
16082       # SGI C++ compiler will create directory out/ii_files/ for
16083       # template instantiation
16084       test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16085       $rm out/* && rmdir out
16086       cd ..
16087       rmdir conftest
16088       $rm conftest*
16089    
16090  fi  fi
16091    echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16092    echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16093    
16094    
 # Check to see if we can do hard links to lock some files if needed  
16095  hard_links="nottested"  hard_links="nottested"
16096  if test "$compiler_c_o" = no && test "$need_locks" != no; then  if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16097    # do not overwrite the value of need_locks provided by the user    # do not overwrite the value of need_locks provided by the user
16098    echo "$as_me:$LINENO: checking if we can lock with hard links" >&5    echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16099  echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6  echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
# Line 6047  else Line 16114  else
16114    need_locks=no    need_locks=no
16115  fi  fi
16116    
16117  if test "$GCC" = yes; then  echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16118    # Check to see if options -fno-rtti -fno-exceptions are supported by compiler  echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16119    echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5  
16120  echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6    runpath_var=
16121    echo "int some_variable = 0;" > conftest.$ac_ext    allow_undefined_flag_GCJ=
16122    save_CFLAGS="$CFLAGS"    enable_shared_with_static_runtimes_GCJ=no
16123    CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"    archive_cmds_GCJ=
16124    compiler_rtti_exceptions=no    archive_expsym_cmds_GCJ=
16125    cat >conftest.$ac_ext <<_ACEOF    old_archive_From_new_cmds_GCJ=
16126      old_archive_from_expsyms_cmds_GCJ=
16127      export_dynamic_flag_spec_GCJ=
16128      whole_archive_flag_spec_GCJ=
16129      thread_safe_flag_spec_GCJ=
16130      hardcode_libdir_flag_spec_GCJ=
16131      hardcode_libdir_flag_spec_ld_GCJ=
16132      hardcode_libdir_separator_GCJ=
16133      hardcode_direct_GCJ=no
16134      hardcode_minus_L_GCJ=no
16135      hardcode_shlibpath_var_GCJ=unsupported
16136      link_all_deplibs_GCJ=unknown
16137      hardcode_automatic_GCJ=no
16138      module_cmds_GCJ=
16139      module_expsym_cmds_GCJ=
16140      always_export_symbols_GCJ=no
16141      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16142      # include_expsyms should be a list of space-separated symbols to be *always*
16143      # included in the symbol list
16144      include_expsyms_GCJ=
16145      # exclude_expsyms can be an extended regexp of symbols to exclude
16146      # it will be wrapped by ` (' and `)$', so one must not match beginning or
16147      # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16148      # as well as any symbol that contains `d'.
16149      exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16150      # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16151      # platforms (ab)use it in PIC code, but their linkers get confused if
16152      # the symbol is explicitly referenced.  Since portable code cannot
16153      # rely on this symbol name, it's probably fine to never include it in
16154      # preloaded symbol tables.
16155      extract_expsyms_cmds=
16156    
16157      case $host_os in
16158      cygwin* | mingw* | pw32*)
16159        # FIXME: the MSVC++ port hasn't been tested in a loooong time
16160        # When not using gcc, we currently assume that we are using
16161        # Microsoft Visual C++.
16162        if test "$GCC" != yes; then
16163          with_gnu_ld=no
16164        fi
16165        ;;
16166      openbsd*)
16167        with_gnu_ld=no
16168        ;;
16169      esac
16170    
16171      ld_shlibs_GCJ=yes
16172      if test "$with_gnu_ld" = yes; then
16173        # If archive_cmds runs LD, not CC, wlarc should be empty
16174        wlarc='${wl}'
16175    
16176        # See if GNU ld supports shared libraries.
16177        case $host_os in
16178        aix3* | aix4* | aix5*)
16179          # On AIX/PPC, the GNU linker is very broken
16180          if test "$host_cpu" != ia64; then
16181            ld_shlibs_GCJ=no
16182            cat <<EOF 1>&2
16183    
16184    *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16185    *** to be unable to reliably create shared libraries on AIX.
16186    *** Therefore, libtool is disabling shared libraries support.  If you
16187    *** really care for shared libraries, you may want to modify your PATH
16188    *** so that a non-GNU linker is found, and then restart.
16189    
16190    EOF
16191          fi
16192          ;;
16193    
16194        amigaos*)
16195          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)'
16196          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16197          hardcode_minus_L_GCJ=yes
16198    
16199          # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16200          # that the semantics of dynamic libraries on AmigaOS, at least up
16201          # to version 4, is to share data among multiple programs linked
16202          # with the same dynamic library.  Since this doesn't match the
16203          # behavior of shared libraries on other platforms, we can't use
16204          # them.
16205          ld_shlibs_GCJ=no
16206          ;;
16207    
16208        beos*)
16209          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16210            allow_undefined_flag_GCJ=unsupported
16211            # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16212            # support --undefined.  This deserves some investigation.  FIXME
16213            archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16214          else
16215            ld_shlibs_GCJ=no
16216          fi
16217          ;;
16218    
16219        cygwin* | mingw* | pw32*)
16220          # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16221          # as there is no search path for DLLs.
16222          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16223          allow_undefined_flag_GCJ=unsupported
16224          always_export_symbols_GCJ=no
16225          enable_shared_with_static_runtimes_GCJ=yes
16226          export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16227    
16228          if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16229            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16230            # If the export-symbols file already is a .def file (1st line
16231            # is EXPORTS), use it as is; otherwise, prepend...
16232            archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16233              cp $export_symbols $output_objdir/$soname.def;
16234            else
16235              echo EXPORTS > $output_objdir/$soname.def;
16236              cat $export_symbols >> $output_objdir/$soname.def;
16237            fi~
16238            $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16239          else
16240            ld_shlibs=no
16241          fi
16242          ;;
16243    
16244        netbsd*)
16245          if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16246            archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16247            wlarc=
16248          else
16249            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16250            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16251          fi
16252          ;;
16253    
16254        solaris* | sysv5*)
16255          if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16256            ld_shlibs_GCJ=no
16257            cat <<EOF 1>&2
16258    
16259    *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16260    *** create shared libraries on Solaris systems.  Therefore, libtool
16261    *** is disabling shared libraries support.  We urge you to upgrade GNU
16262    *** binutils to release 2.9.1 or newer.  Another option is to modify
16263    *** your PATH or compiler configuration so that the native linker is
16264    *** used, and then restart.
16265    
16266    EOF
16267          elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16268            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16269            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16270          else
16271            ld_shlibs_GCJ=no
16272          fi
16273          ;;
16274    
16275        sunos4*)
16276          archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16277          wlarc=
16278          hardcode_direct_GCJ=yes
16279          hardcode_shlibpath_var_GCJ=no
16280          ;;
16281    
16282      linux*)
16283        if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16284            tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16285            archive_cmds_GCJ="$tmp_archive_cmds"
16286          supports_anon_versioning=no
16287          case `$LD -v 2>/dev/null` in
16288            *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16289            *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16290            *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16291            *\ 2.11.*) ;; # other 2.11 versions
16292            *) supports_anon_versioning=yes ;;
16293          esac
16294          if test $supports_anon_versioning = yes; then
16295            archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16296    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16297    $echo "local: *; };" >> $output_objdir/$libname.ver~
16298            $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16299          else
16300            archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16301          fi
16302        else
16303          ld_shlibs_GCJ=no
16304        fi
16305        ;;
16306    
16307        *)
16308          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16309            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16310            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16311          else
16312            ld_shlibs_GCJ=no
16313          fi
16314          ;;
16315        esac
16316    
16317        if test "$ld_shlibs_GCJ" = yes; then
16318          runpath_var=LD_RUN_PATH
16319          hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16320          export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16321          # ancient GNU ld didn't support --whole-archive et. al.
16322          if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16323            whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16324          else
16325            whole_archive_flag_spec_GCJ=
16326          fi
16327        fi
16328      else
16329        # PORTME fill in a description of your system's linker (not GNU ld)
16330        case $host_os in
16331        aix3*)
16332          allow_undefined_flag_GCJ=unsupported
16333          always_export_symbols_GCJ=yes
16334          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'
16335          # Note: this linker hardcodes the directories in LIBPATH if there
16336          # are no directories specified by -L.
16337          hardcode_minus_L_GCJ=yes
16338          if test "$GCC" = yes && test -z "$link_static_flag"; then
16339            # Neither direct hardcoding nor static linking is supported with a
16340            # broken collect2.
16341            hardcode_direct_GCJ=unsupported
16342          fi
16343          ;;
16344    
16345        aix4* | aix5*)
16346          if test "$host_cpu" = ia64; then
16347            # On IA64, the linker does run time linking by default, so we don't
16348            # have to do anything special.
16349            aix_use_runtimelinking=no
16350            exp_sym_flag='-Bexport'
16351            no_entry_flag=""
16352          else
16353            # If we're using GNU nm, then we don't want the "-C" option.
16354            # -C means demangle to AIX nm, but means don't demangle with GNU nm
16355            if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16356              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'
16357            else
16358              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'
16359            fi
16360            aix_use_runtimelinking=no
16361    
16362            # Test if we are trying to use run time linking or normal
16363            # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16364            # need to do runtime linking.
16365            case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16366              for ld_flag in $LDFLAGS; do
16367              if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16368                aix_use_runtimelinking=yes
16369                break
16370              fi
16371              done
16372            esac
16373    
16374            exp_sym_flag='-bexport'
16375            no_entry_flag='-bnoentry'
16376          fi
16377    
16378          # When large executables or shared objects are built, AIX ld can
16379          # have problems creating the table of contents.  If linking a library
16380          # or program results in "error TOC overflow" add -mminimal-toc to
16381          # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16382          # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16383    
16384          archive_cmds_GCJ=''
16385          hardcode_direct_GCJ=yes
16386          hardcode_libdir_separator_GCJ=':'
16387          link_all_deplibs_GCJ=yes
16388    
16389          if test "$GCC" = yes; then
16390            case $host_os in aix4.012|aix4.012.*)
16391            # We only want to do this on AIX 4.2 and lower, the check
16392            # below for broken collect2 doesn't work under 4.3+
16393              collect2name=`${CC} -print-prog-name=collect2`
16394              if test -f "$collect2name" && \
16395               strings "$collect2name" | grep resolve_lib_name >/dev/null
16396              then
16397              # We have reworked collect2
16398              hardcode_direct_GCJ=yes
16399              else
16400              # We have old collect2
16401              hardcode_direct_GCJ=unsupported
16402              # It fails to find uninstalled libraries when the uninstalled
16403              # path is not listed in the libpath.  Setting hardcode_minus_L
16404              # to unsupported forces relinking
16405              hardcode_minus_L_GCJ=yes
16406              hardcode_libdir_flag_spec_GCJ='-L$libdir'
16407              hardcode_libdir_separator_GCJ=
16408              fi
16409            esac
16410            shared_flag='-shared'
16411          else
16412            # not using gcc
16413            if test "$host_cpu" = ia64; then
16414            # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16415            # chokes on -Wl,-G. The following line is correct:
16416              shared_flag='-G'
16417            else
16418            if test "$aix_use_runtimelinking" = yes; then
16419                shared_flag='${wl}-G'
16420              else
16421                shared_flag='${wl}-bM:SRE'
16422            fi
16423            fi
16424          fi
16425    
16426          # It seems that -bexpall does not export symbols beginning with
16427          # underscore (_), so it is better to generate a list of symbols to export.
16428          always_export_symbols_GCJ=yes
16429          if test "$aix_use_runtimelinking" = yes; then
16430            # Warning - without using the other runtime loading flags (-brtl),
16431            # -berok will link without error, but may produce a broken library.
16432            allow_undefined_flag_GCJ='-berok'
16433           # Determine the default libpath from the value encoded in an empty executable.
16434           cat >conftest.$ac_ext <<_ACEOF
16435  /* confdefs.h.  */  /* confdefs.h.  */
16436  _ACEOF  _ACEOF
16437  cat confdefs.h >>conftest.$ac_ext  cat confdefs.h >>conftest.$ac_ext
# Line 6065  cat >>conftest.$ac_ext <<_ACEOF Line 16441  cat >>conftest.$ac_ext <<_ACEOF
16441  int  int
16442  main ()  main ()
16443  {  {
16444  int some_variable = 0;  
16445    ;    ;
16446    return 0;    return 0;
16447  }  }
16448  _ACEOF  _ACEOF
16449  rm -f conftest.$ac_objext  rm -f conftest.$ac_objext conftest$ac_exeext
16450  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16451    (eval $ac_compile) 2>conftest.er1    (eval $ac_link) 2>conftest.er1
16452    ac_status=$?    ac_status=$?
16453    grep -v '^ *+' conftest.er1 >conftest.err    grep -v '^ *+' conftest.er1 >conftest.err
16454    rm -f conftest.er1    rm -f conftest.er1
# Line 6086  if { (eval echo "$as_me:$LINENO: \"$ac_c Line 16462  if { (eval echo "$as_me:$LINENO: \"$ac_c
16462    ac_status=$?    ac_status=$?
16463    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464    (exit $ac_status); }; } &&    (exit $ac_status); }; } &&
16465           { ac_try='test -s conftest.$ac_objext'           { ac_try='test -s conftest$ac_exeext'
16466    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467    (eval $ac_try) 2>&5    (eval $ac_try) 2>&5
16468    ac_status=$?    ac_status=$?
16469    echo "$as_me:$LINENO: \$? = $ac_status" >&5    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470    (exit $ac_status); }; }; then    (exit $ac_status); }; }; then
       # The compiler can only warn and ignore the option if not recognized  
     # So say no if there are warnings  
     if test -s conftest.err; then  
       compiler_rtti_exceptions=no  
     else  
       compiler_rtti_exceptions=yes  
     fi  
16471    
16472    aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16473    }'`
16474    # Check for a 64-bit object if we didn't find anything.
16475    if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16476    }'`; fi
16477  else  else
16478    echo "$as_me: failed program was:" >&5    echo "$as_me: failed program was:" >&5
16479  sed 's/^/| /' conftest.$ac_ext >&5  sed 's/^/| /' conftest.$ac_ext >&5
16480    
16481  fi  fi
16482  rm -f conftest.err conftest.$ac_objext conftest.$ac_ext  rm -f conftest.err conftest.$ac_objext \
16483    CFLAGS="$save_CFLAGS"        conftest$ac_exeext conftest.$ac_ext
16484    echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 echo "${ECHO_T}$compiler_rtti_exceptions" >&6  
   
   if test "$compiler_rtti_exceptions" = "yes"; then  
     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'  
   else  
     no_builtin_flag=' -fno-builtin'  
   fi  
 fi  
   
 # See if the linker supports building shared libraries.  
 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5  
 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6  
   
 allow_undefined_flag=  
 no_undefined_flag=  
 need_lib_prefix=unknown  
 need_version=unknown  
 # when you set need_version to no, make sure it does not cause -set_version  
 # flags to be left without arguments  
 archive_cmds=  
 archive_expsym_cmds=  
 old_archive_from_new_cmds=  
 old_archive_from_expsyms_cmds=  
 export_dynamic_flag_spec=  
 whole_archive_flag_spec=  
 thread_safe_flag_spec=  
 hardcode_into_libs=no  
 hardcode_libdir_flag_spec=  
 hardcode_libdir_separator=  
 hardcode_direct=no  
 hardcode_minus_L=no  
 hardcode_shlibpath_var=unsupported  
 runpath_var=  
 link_all_deplibs=unknown  
 always_export_symbols=no  
 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'  
 # include_expsyms should be a list of space-separated symbols to be *always*  
 # included in the symbol list  
 include_expsyms=  
 # exclude_expsyms can be an egrep regular expression of symbols to exclude  
 # it will be wrapped by ` (' and `)$', so one must not match beginning or  
 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',  
 # as well as any symbol that contains `d'.  
 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"  
 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out  
 # platforms (ab)use it in PIC code, but their linkers get confused if  
 # the symbol is explicitly referenced.  Since portable code cannot  
 # rely on this symbol name, it's probably fine to never include it in  
 # preloaded symbol tables.  
 extract_expsyms_cmds=  
   
 case $host_os in  
 cygwin* | mingw* | pw32*)  
   # FIXME: the MSVC++ port hasn't been tested in a loooong time  
   # When not using gcc, we currently assume that we are using  
   # Microsoft Visual C++.  
   if test "$GCC" != yes; then  
     with_gnu_ld=no  
   fi  
   ;;  
 openbsd*)  
   with_gnu_ld=no  
   ;;  
 esac  
16485    
16486  ld_shlibs=yes         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16487  if test "$with_gnu_ld" = yes; then          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"
16488    # If archive_cmds runs LD, not CC, wlarc should be empty         else
16489    wlarc='${wl}'          if test "$host_cpu" = ia64; then
16490              hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16491              allow_undefined_flag_GCJ="-z nodefs"
16492              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"
16493            else
16494             # Determine the default libpath from the value encoded in an empty executable.
16495             cat >conftest.$ac_ext <<_ACEOF
16496    /* confdefs.h.  */
16497    _ACEOF
16498    cat confdefs.h >>conftest.$ac_ext
16499    cat >>conftest.$ac_ext <<_ACEOF
16500    /* end confdefs.h.  */
16501    
16502    # See if GNU ld supports shared libraries.  int
16503    case $host_os in  main ()
16504    aix3* | aix4* | aix5*)  {
     # On AIX, the GNU linker is very broken  
     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.  
     ld_shlibs=no  
     cat <<EOF 1>&2  
16505    
16506  *** Warning: the GNU linker, at least up to release 2.9.1, is reported    ;
16507  *** to be unable to reliably create shared libraries on AIX.    return 0;
16508  *** Therefore, libtool is disabling shared libraries support.  If you  }
16509  *** really care for shared libraries, you may want to modify your PATH  _ACEOF
16510  *** so that a non-GNU linker is found, and then restart.  rm -f conftest.$ac_objext conftest$ac_exeext
16511    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16512      (eval $ac_link) 2>conftest.er1
16513      ac_status=$?
16514      grep -v '^ *+' conftest.er1 >conftest.err
16515      rm -f conftest.er1
16516      cat conftest.err >&5
16517      echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518      (exit $ac_status); } &&
16519             { ac_try='test -z "$ac_c_werror_flag"
16520                             || test ! -s conftest.err'
16521      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522      (eval $ac_try) 2>&5
16523      ac_status=$?
16524      echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525      (exit $ac_status); }; } &&
16526             { ac_try='test -s conftest$ac_exeext'
16527      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528      (eval $ac_try) 2>&5
16529      ac_status=$?
16530      echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531      (exit $ac_status); }; }; then
16532    
16533  EOF  aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16534      ;;  }'`
16535    # Check for a 64-bit object if we didn't find anything.
16536    if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16537    }'`; fi
16538    else
16539      echo "$as_me: failed program was:" >&5
16540    sed 's/^/| /' conftest.$ac_ext >&5
16541    
16542    amigaos*)  fi
16543      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)'  rm -f conftest.err conftest.$ac_objext \
16544      hardcode_libdir_flag_spec='-L$libdir'        conftest$ac_exeext conftest.$ac_ext
16545      hardcode_minus_L=yes  if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   
     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports  
     # that the semantics of dynamic libraries on AmigaOS, at least up  
     # to version 4, is to share data among multiple programs linked  
     # with the same dynamic library.  Since this doesn't match the  
     # behavior of shared libraries on other platforms, we can use  
     # them.  
     ld_shlibs=no  
     ;;  
16546    
16547    beos*)           hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16548      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then            # Warning - without using the other run time loading flags,
16549        allow_undefined_flag=unsupported            # -berok will link without error, but may produce a broken library.
16550        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc            no_undefined_flag_GCJ=' ${wl}-bernotok'
16551        # support --undefined.  This deserves some investigation.  FIXME            allow_undefined_flag_GCJ=' ${wl}-berok'
16552        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'            # -bexpall does not export symbols beginning with underscore (_)
16553      else            always_export_symbols_GCJ=yes
16554        ld_shlibs=no            # Exported symbols can be pulled into shared objects from archives
16555      fi            whole_archive_flag_spec_GCJ=' '
16556      ;;            archive_cmds_need_lc_GCJ=yes
16557              # This is similar to how AIX traditionally builds it's shared libraries.
16558              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'
16559            fi
16560          fi
16561          ;;
16562    
16563    cygwin* | mingw* | pw32*)      amigaos*)
16564      # hardcode_libdir_flag_spec is actually meaningless, as there is        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)'
16565      # no search path for DLLs.        hardcode_libdir_flag_spec_GCJ='-L$libdir'
16566      hardcode_libdir_flag_spec='-L$libdir'        hardcode_minus_L_GCJ=yes
16567      allow_undefined_flag=unsupported        # see comment about different semantics on the GNU ld section
16568      always_export_symbols=yes        ld_shlibs_GCJ=no
   
     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \  
       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~  
       test -f $output_objdir/impgen.exe || (cd $output_objdir && \  
       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \  
       else $CC -o impgen impgen.c ; fi)~  
       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'  
   
     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'  
   
     # cygwin and mingw dlls have different entry points and sets of symbols  
     # to exclude.  
     # FIXME: what about values for MSVC?  
     dll_entry=__cygwin_dll_entry@12  
     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~  
     case $host_os in  
     mingw*)  
       # mingw values  
       dll_entry=_DllMainCRTStartup@12  
       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~  
16569        ;;        ;;
     esac  
16570    
16571      # mingw and cygwin differ, and it's simplest to just exclude the union      bsdi4*)
16572      # of the two symbol sets.        export_dynamic_flag_spec_GCJ=-rdynamic
16573      dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12        ;;
   
     # recent cygwin and mingw systems supply a stub DllMain which the user  
     # can override, but on older systems we have to supply one (in ltdll.c)  
     if test "x$lt_cv_need_dllmain" = "xyes"; then  
       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "  
       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~  
         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'  
     else  
       ltdll_obj=  
       ltdll_cmds=  
     fi  
16574    
16575      # Extract the symbol export list from an `--export-all' def file,      cygwin* | mingw* | pw32*)
16576      # then regenerate the def file from the symbol export list, so that        # When not using gcc, we currently assume that we are using
16577      # the compiled dll only exports the symbol export list.        # Microsoft Visual C++.
16578      # Be careful not to strip the DATA tag left be newer dlltools.        # hardcode_libdir_flag_spec is actually meaningless, as there is
16579      export_symbols_cmds="$ltdll_cmds"'        # no search path for DLLs.
16580        $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~        hardcode_libdir_flag_spec_GCJ=' '
16581        sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'        allow_undefined_flag_GCJ=unsupported
16582          # Tell ltmain to make .lib files, not .a files.
16583      # If the export-symbols file already is a .def file (1st line        libext=lib
16584      # is EXPORTS), use it as is.        # Tell ltmain to make .dll files, not .so files.
16585      # If DATA tags from a recent dlltool are present, honour them!        shrext_cmds=".dll"
16586      archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then        # FIXME: Setting linknames here is a bad hack.
16587          cp $export_symbols $output_objdir/$soname-def;        archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16588        else        # The linker will automatically build a .lib file if we build a DLL.
16589          echo EXPORTS > $output_objdir/$soname-def;        old_archive_From_new_cmds_GCJ='true'
16590          _lt_hint=1;        # FIXME: Should let the user specify the lib program.
16591          cat $export_symbols | while read symbol; do        old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16592           set dummy \$symbol;        fix_srcfile_path='`cygpath -w "$srcfile"`'
16593           case \$# in        enable_shared_with_static_runtimes_GCJ=yes
16594             2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;        ;;
            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;  
            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;  
          esac;  
          _lt_hint=`expr 1 + \$_lt_hint`;  
         done;  
       fi~  
       '"$ltdll_cmds"'  
       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~  
       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~  
       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~  
       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~  
       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'  
     ;;  
16595    
16596    netbsd*)      darwin* | rhapsody*)
16597      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then      if test "$GXX" = yes ; then
16598        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'        archive_cmds_need_lc_GCJ=no
16599        wlarc=        case "$host_os" in
16600          rhapsody* | darwin1.[012])
16601            allow_undefined_flag_GCJ='-undefined suppress'
16602            ;;
16603          *) # Darwin 1.3 on
16604          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16605            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16606          else
16607            case ${MACOSX_DEPLOYMENT_TARGET} in
16608              10.[012])
16609                allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16610                ;;
16611              10.*)
16612                allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16613                ;;
16614            esac
16615          fi
16616            ;;
16617          esac
16618            lt_int_apple_cc_single_mod=no
16619            output_verbose_link_cmd='echo'
16620            if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16621              lt_int_apple_cc_single_mod=yes
16622            fi
16623            if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16624              archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16625            else
16626            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'
16627          fi
16628          module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16629          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16630            if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16631              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}'
16632            else
16633              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}'
16634            fi
16635              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}'
16636          hardcode_direct_GCJ=no
16637          hardcode_automatic_GCJ=yes
16638          hardcode_shlibpath_var_GCJ=unsupported
16639          whole_archive_flag_spec_GCJ='-all_load $convenience'
16640          link_all_deplibs_GCJ=yes
16641      else      else
16642        archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'        ld_shlibs_GCJ=no
       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'  
16643      fi      fi
16644      ;;        ;;
   
   solaris* | sysv5*)  
     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then  
       ld_shlibs=no  
       cat <<EOF 1>&2  
16645    
16646  *** Warning: The releases 2.8.* of the GNU linker cannot reliably      dgux*)
16647  *** create shared libraries on Solaris systems.  Therefore, libtool        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16648  *** is disabling shared libraries support.  We urge you to upgrade GNU        hardcode_libdir_flag_spec_GCJ='-L$libdir'
16649  *** binutils to release 2.9.1 or newer.  Another option is to modify        hardcode_shlibpath_var_GCJ=no
16650  *** your PATH or compiler configuration so that the native linker is        ;;
 *** used, and then restart.  
16651    
16652  EOF      freebsd1*)
16653      elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then        ld_shlibs_GCJ=no
16654        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'        ;;
       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'  
     else  
       ld_shlibs=no  
     fi  
     ;;  
16655    
16656    sunos4*)      # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16657      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'      # support.  Future versions do this automatically, but an explicit c++rt0.o
16658      wlarc=      # does not break anything, and helps significantly (at the cost of a little
16659      hardcode_direct=yes      # extra space).
16660      hardcode_shlibpath_var=no      freebsd2.2*)
16661      ;;        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16662          hardcode_libdir_flag_spec_GCJ='-R$libdir'
16663          hardcode_direct_GCJ=yes
16664          hardcode_shlibpath_var_GCJ=no
16665          ;;
16666    
16667    *)      # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16668      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then      freebsd2*)
16669        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16670        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'        hardcode_direct_GCJ=yes
16671      else        hardcode_minus_L_GCJ=yes
16672        ld_shlibs=no        hardcode_shlibpath_var_GCJ=no
16673      fi        ;;
     ;;  
   esac  
16674    
16675    if test "$ld_shlibs" = yes; then      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16676      runpath_var=LD_RUN_PATH      freebsd* | kfreebsd*-gnu)
16677      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'        archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16678      export_dynamic_flag_spec='${wl}--export-dynamic'        hardcode_libdir_flag_spec_GCJ='-R$libdir'
16679      case $host_os in        hardcode_direct_GCJ=yes
16680      cygwin* | mingw* | pw32*)        hardcode_shlibpath_var_GCJ=no
       # dlltool doesn't understand --whole-archive et. al.  
       whole_archive_flag_spec=  
16681        ;;        ;;
16682      *)  
16683        # ancient GNU ld didn't support --whole-archive et. al.      hpux9*)
16684        if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then        if test "$GCC" = yes; then
16685          whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'          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'
16686        else        else
16687          whole_archive_flag_spec=          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'
16688        fi        fi
16689          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16690          hardcode_libdir_separator_GCJ=:
16691          hardcode_direct_GCJ=yes
16692    
16693          # hardcode_minus_L: Not really in the search PATH,
16694          # but as the default location of the library.
16695          hardcode_minus_L_GCJ=yes
16696          export_dynamic_flag_spec_GCJ='${wl}-E'
16697        ;;        ;;
     esac  
   fi  
 else  
   # PORTME fill in a description of your system's linker (not GNU ld)  
   case $host_os in  
   aix3*)  
     allow_undefined_flag=unsupported  
     always_export_symbols=yes  
     archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'  
     # Note: this linker hardcodes the directories in LIBPATH if there  
     # are no directories specified by -L.  
     hardcode_minus_L=yes  
     if test "$GCC" = yes && test -z "$link_static_flag"; then  
       # Neither direct hardcoding nor static linking is supported with a  
       # broken collect2.  
       hardcode_direct=unsupported  
     fi  
     ;;  
16698    
16699    aix4* | aix5*)      hpux10* | hpux11*)
16700      if test "$host_cpu" = ia64; then        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16701        # On IA64, the linker does run time linking by default, so we don't          case "$host_cpu" in
16702        # have to do anything special.          hppa*64*|ia64*)
16703        aix_use_runtimelinking=no            archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
       exp_sym_flag='-Bexport'  
       no_entry_flag=""  
     else  
       aix_use_runtimelinking=no  
   
       # Test if we are trying to use run time linking or normal  
       # AIX style linking. If -brtl is somewhere in LDFLAGS, we  
       # need to do runtime linking.  
       case $host_os in aix4.[23]|aix4.[23].*|aix5*)  
         for ld_flag in $LDFLAGS; do  
           case $ld_flag in  
           *-brtl*)  
             aix_use_runtimelinking=yes  
             break  
16704            ;;            ;;
16705            esac          *)
16706          done            archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16707        esac            ;;
16708            esac
       exp_sym_flag='-bexport'  
       no_entry_flag='-bnoentry'  
     fi  
   
     # When large executables or shared objects are built, AIX ld can  
     # have problems creating the table of contents.  If linking a library  
     # or program results in "error TOC overflow" add -mminimal-toc to  
     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not  
     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.  
   
     hardcode_direct=yes  
     archive_cmds=''  
     hardcode_libdir_separator=':'  
     if test "$GCC" = yes; then  
       case $host_os in aix4.[012]|aix4.[012].*)  
         collect2name=`${CC} -print-prog-name=collect2`  
         if test -f "$collect2name" && \  
           strings "$collect2name" | grep resolve_lib_name >/dev/null  
         then  
           # We have reworked collect2  
           hardcode_direct=yes  
         else  
           # We have old collect2  
           hardcode_direct=unsupported  
           # It fails to find uninstalled libraries when the uninstalled  
           # path is not listed in the libpath.  Setting hardcode_minus_L  
           # to unsupported forces relinking  
           hardcode_minus_L=yes  
           hardcode_libdir_flag_spec='-L$libdir'  
           hardcode_libdir_separator=  
         fi  
       esac  
   
       shared_flag='-shared'  
     else  
       # not using gcc  
       if test "$host_cpu" = ia64; then  
         shared_flag='${wl}-G'  
16709        else        else
16710          if test "$aix_use_runtimelinking" = yes; then          case "$host_cpu" in
16711            shared_flag='${wl}-G'          hppa*64*|ia64*)
16712          else            archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16713            shared_flag='${wl}-bM:SRE'            ;;
16714          fi          *)
16715              archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16716              ;;
16717            esac
16718        fi        fi
16719      fi        if test "$with_gnu_ld" = no; then
16720            case "$host_cpu" in
16721            hppa*64*)
16722              hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16723              hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16724              hardcode_libdir_separator_GCJ=:
16725              hardcode_direct_GCJ=no
16726              hardcode_shlibpath_var_GCJ=no
16727              ;;
16728            ia64*)
16729              hardcode_libdir_flag_spec_GCJ='-L$libdir'
16730              hardcode_direct_GCJ=no
16731              hardcode_shlibpath_var_GCJ=no
16732    
16733              # hardcode_minus_L: Not really in the search PATH,
16734              # but as the default location of the library.
16735              hardcode_minus_L_GCJ=yes
16736              ;;
16737            *)
16738              hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16739              hardcode_libdir_separator_GCJ=:
16740              hardcode_direct_GCJ=yes
16741              export_dynamic_flag_spec_GCJ='${wl}-E'
16742    
16743              # hardcode_minus_L: Not really in the search PATH,
16744              # but as the default location of the library.
16745              hardcode_minus_L_GCJ=yes
16746              ;;
16747            esac
16748          fi
16749          ;;
16750    
16751      # It seems that -bexpall can do strange things, so it is better to      irix5* | irix6* | nonstopux*)
16752      # generate a list of symbols to export.        if test "$GCC" = yes; then
16753      always_export_symbols=yes          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'
     if test "$aix_use_runtimelinking" = yes; then  
       # Warning - without using the other runtime loading flags (-brtl),  
       # -berok will link without error, but may produce a broken library.  
       allow_undefined_flag='-berok'  
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'  
       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"  
     else  
       if test "$host_cpu" = ia64; then  
         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'  
         allow_undefined_flag="-z nodefs"  
         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"  
16754        else        else
16755          hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'          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'
16756          # Warning - without using the other run time loading flags,          hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
         # -berok will link without error, but may produce a broken library.  
         allow_undefined_flag='${wl}-berok'  
         # This is a bit strange, but is similar to how AIX traditionally builds  
         # it's shared libraries.  
         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'  
16757        fi        fi
16758      fi        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16759      ;;        hardcode_libdir_separator_GCJ=:
16760          link_all_deplibs_GCJ=yes
   amigaos*)  
     archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'  
     hardcode_libdir_flag_spec='-L$libdir'  
     hardcode_minus_L=yes  
     # see comment about different semantics on the GNU ld section  
     ld_shlibs=no  
     ;;  
   
   cygwin* | mingw* | pw32*)  
     # When not using gcc, we currently assume that we are using  
     # Microsoft Visual C++.  
     # hardcode_libdir_flag_spec is actually meaningless, as there is  
     # no search path for DLLs.  
     hardcode_libdir_flag_spec=' '  
     allow_undefined_flag=unsupported  
     # Tell ltmain to make .lib files, not .a files.  
     libext=lib  
     # FIXME: Setting linknames here is a bad hack.  
     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='  
     # The linker will automatically build a .lib file if we build a DLL.  
     old_archive_from_new_cmds='true'  
     # FIXME: Should let the user specify the lib program.  
     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'  
     fix_srcfile_path='`cygpath -w "$srcfile"`'  
     ;;  
   
   darwin* | rhapsody*)  
     case "$host_os" in  
     rhapsody* | darwin1.[012])  
       allow_undefined_flag='-undefined suppress'  
       ;;  
     *) # Darwin 1.3 on  
       allow_undefined_flag='-flat_namespace -undefined suppress'  
16761        ;;        ;;
     esac  
     # FIXME: Relying on posixy $() will cause problems for  
     #        cross-compilation, but unfortunately the echo tests do not  
     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles  
     #        `"' quotes if we put them in here... so don't!  
     archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'  
     # We need to add '_' to the symbols in $export_symbols first  
     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'  
     hardcode_direct=yes  
     hardcode_shlibpath_var=no  
     whole_archive_flag_spec='-all_load $convenience'  
     ;;  
   
   freebsd1*)  
     ld_shlibs=no  
     ;;  
   
   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor  
   # support.  Future versions do this automatically, but an explicit c++rt0.o  
   # does not break anything, and helps significantly (at the cost of a little  
   # extra space).  
   freebsd2.2*)  
     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'  
     hardcode_libdir_flag_spec='-R$libdir'  
     hardcode_direct=yes  
     hardcode_shlibpath_var=no  
     ;;  
   
   # Unfortunately, older versions of FreeBSD 2 do not have this feature.  
   freebsd2*)  
     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  
     hardcode_direct=yes  
     hardcode_minus_L=yes  
     hardcode_shlibpath_var=no  
     ;;  
   
   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.  
   freebsd*)  
     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'  
     hardcode_libdir_flag_spec='-R$libdir'  
     hardcode_direct=yes  
     hardcode_shlibpath_var=no  
     ;;  
   
   hpux9* | hpux10* | hpux11*)  
     case $host_os in  
     hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;  
     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;  
     esac  
     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'  
     hardcode_libdir_separator=:  
     hardcode_direct=yes  
     hardcode_minus_L=yes # Not in the search PATH, but as the default  
                          # location of the library.  
     export_dynamic_flag_spec='${wl}-E'  
     ;;  
   
   irix5* | irix6* | nonstopux*)  
     if test "$GCC" = yes; then  
       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'  
       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'  
     else  
       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'  
       hardcode_libdir_flag_spec='-rpath $libdir'  
     fi  
     hardcode_libdir_separator=:  
     link_all_deplibs=yes  
     ;;  
   
   netbsd*)  
     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then  
       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out  
     else  
       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF  
     fi  
     hardcode_libdir_flag_spec='-R$libdir'  
     hardcode_direct=yes  
     hardcode_shlibpath_var=no  
     ;;  
   
   newsos6)  
     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'  
     hardcode_direct=yes  
     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'  
     hardcode_libdir_separator=:  
     hardcode_shlibpath_var=no  
     ;;  
   
   openbsd*)  
     hardcode_direct=yes  
     hardcode_shlibpath_var=no  
     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then  
       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'  
       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'  
       export_dynamic_flag_spec='${wl}-E'  
     else  
       case "$host_os" in  
       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)  
         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  
         hardcode_libdir_flag_spec='-R$libdir'  
         ;;  
       *)  
         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'  
         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'  
         ;;  
       esac  
     fi  
     ;;  
16762    
16763    os2*)      netbsd*)
16764      hardcode_libdir_flag_spec='-L$libdir'        if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16765      hardcode_minus_L=yes          archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16766      allow_undefined_flag=unsupported        else
16767      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'          archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16768      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'        fi
16769      ;;        hardcode_libdir_flag_spec_GCJ='-R$libdir'
16770          hardcode_direct_GCJ=yes
16771          hardcode_shlibpath_var_GCJ=no
16772          ;;
16773    
16774    osf3*)      newsos6)
16775      if test "$GCC" = yes; then        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16776        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'        hardcode_direct_GCJ=yes
16777        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16778      else        hardcode_libdir_separator_GCJ=:
16779        allow_undefined_flag=' -expect_unresolved \*'        hardcode_shlibpath_var_GCJ=no
16780        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'        ;;
     fi  
     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'  
     hardcode_libdir_separator=:  
     ;;  
16781    
16782    osf4* | osf5*)        # as osf3* with the addition of -msym flag      openbsd*)
16783      if test "$GCC" = yes; then        hardcode_direct_GCJ=yes
16784        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'        hardcode_shlibpath_var_GCJ=no
16785        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16786        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16787      else          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16788        allow_undefined_flag=' -expect_unresolved \*'          export_dynamic_flag_spec_GCJ='${wl}-E'
16789        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'        else
16790        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~         case $host_os in
16791        $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'           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16792               archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16793               hardcode_libdir_flag_spec_GCJ='-R$libdir'
16794               ;;
16795             *)
16796               archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16797               hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16798               ;;
16799           esac
16800          fi
16801          ;;
16802    
16803        #Both c and cxx compiler support -rpath directly      os2*)
16804        hardcode_libdir_flag_spec='-rpath $libdir'        hardcode_libdir_flag_spec_GCJ='-L$libdir'
16805      fi        hardcode_minus_L_GCJ=yes
16806      hardcode_libdir_separator=:        allow_undefined_flag_GCJ=unsupported
16807      ;;        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'
16808          old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16809          ;;
16810    
16811    sco3.2v5*)      osf3*)
16812      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'        if test "$GCC" = yes; then
16813      hardcode_shlibpath_var=no          allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16814      runpath_var=LD_RUN_PATH          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'
16815      hardcode_runpath_var=yes        else
16816      export_dynamic_flag_spec='${wl}-Bexport'          allow_undefined_flag_GCJ=' -expect_unresolved \*'
16817      ;;          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'
16818          fi
16819          hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16820          hardcode_libdir_separator_GCJ=:
16821          ;;
16822    
16823    solaris*)      osf4* | osf5*)      # as osf3* with the addition of -msym flag
16824      # gcc --version < 3.0 without binutils cannot create self contained        if test "$GCC" = yes; then
16825      # shared libraries reliably, requiring libgcc.a to resolve some of          allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16826      # the object symbols generated in some cases.  Libraries that use          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'
16827      # assert need libgcc.a to resolve __eprintf, for example.  Linking          hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16828      # a copy of libgcc.a into every shared library to guarantee resolving        else
16829      # such symbols causes other problems:  According to Tim Van Holder          allow_undefined_flag_GCJ=' -expect_unresolved \*'
16830      # <tim.van.holder@pandora.be>, C++ libraries end up with a separate          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'
16831      # (to the application) exception stack for one thing.          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~
16832      no_undefined_flag=' -z defs'          $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'
     if test "$GCC" = yes; then  
       case `$CC --version 2>/dev/null` in  
       [12].*)  
         cat <<EOF 1>&2  
16833    
16834  *** Warning: Releases of GCC earlier than version 3.0 cannot reliably          # Both c and cxx compiler support -rpath directly
16835  *** create self contained shared libraries on Solaris systems, without          hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16836  *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling        fi
16837  *** -no-undefined support, which will at least allow you to build shared        hardcode_libdir_separator_GCJ=:
16838  *** libraries.  However, you may find that when you link such libraries        ;;
 *** into an application without using GCC, you have to manually add  
 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to  
 *** upgrade to a newer version of GCC.  Another option is to rebuild your  
 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.  
16839    
16840  EOF      sco3.2v5*)
16841          no_undefined_flag=        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16842          ;;        hardcode_shlibpath_var_GCJ=no
16843          export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16844          runpath_var=LD_RUN_PATH
16845          hardcode_runpath_var=yes
16846          ;;
16847    
16848        solaris*)
16849          no_undefined_flag_GCJ=' -z text'
16850          if test "$GCC" = yes; then
16851            archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16852            archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16853              $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16854          else
16855            archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16856            archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16857            $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16858          fi
16859          hardcode_libdir_flag_spec_GCJ='-R$libdir'
16860          hardcode_shlibpath_var_GCJ=no
16861          case $host_os in
16862          solaris2.[0-5] | solaris2.[0-5].*) ;;
16863          *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16864            whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16865        esac        esac
16866      fi        link_all_deplibs_GCJ=yes
16867      # $CC -shared without GNU ld will not create a library from C++        ;;
     # object files and a static libstdc++, better avoid it by now  
     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'  
     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~  
                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'  
     hardcode_libdir_flag_spec='-R$libdir'  
     hardcode_shlibpath_var=no  
     case $host_os in  
     solaris2.[0-5] | solaris2.[0-5].*) ;;  
     *) # Supported since Solaris 2.6 (maybe 2.5.1?)  
       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;  
     esac  
     link_all_deplibs=yes  
     ;;  
16868    
16869    sunos4*)      sunos4*)
16870      if test "x$host_vendor" = xsequent; then        if test "x$host_vendor" = xsequent; then
16871        # Use $CC to link under sequent, because it throws in some extra .o          # Use $CC to link under sequent, because it throws in some extra .o
16872        # files that make .init and .fini sections work.          # files that make .init and .fini sections work.
16873        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'          archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16874      else        else
16875        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'          archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16876      fi        fi
16877      hardcode_libdir_flag_spec='-L$libdir'        hardcode_libdir_flag_spec_GCJ='-L$libdir'
16878      hardcode_direct=yes        hardcode_direct_GCJ=yes
16879      hardcode_minus_L=yes        hardcode_minus_L_GCJ=yes
16880      hardcode_shlibpath_var=no        hardcode_shlibpath_var_GCJ=no
16881      ;;        ;;
16882    
16883    sysv4)      sysv4)
16884      case $host_vendor in        case $host_vendor in
16885        sni)          sni)
16886          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'            archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16887          hardcode_direct=yes # is this really true???            hardcode_direct_GCJ=yes # is this really true???
16888          ;;          ;;
16889        siemens)          siemens)
16890          ## LD is ld it makes a PLAMLIB            ## LD is ld it makes a PLAMLIB
16891          ## CC just makes a GrossModule.            ## CC just makes a GrossModule.
16892          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'            archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16893          reload_cmds='$CC -r -o $output$reload_objs'            reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16894          hardcode_direct=no            hardcode_direct_GCJ=no
         ;;  
       motorola)  
         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'  
         hardcode_direct=no #Motorola manual says yes, but my tests say they lie  
16895          ;;          ;;
16896      esac          motorola)
16897      runpath_var='LD_RUN_PATH'            archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16898      hardcode_shlibpath_var=no            hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16899      ;;          ;;
16900          esac
16901          runpath_var='LD_RUN_PATH'
16902          hardcode_shlibpath_var_GCJ=no
16903          ;;
16904    
16905    sysv4.3*)      sysv4.3*)
16906      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16907      hardcode_shlibpath_var=no        hardcode_shlibpath_var_GCJ=no
16908      export_dynamic_flag_spec='-Bexport'        export_dynamic_flag_spec_GCJ='-Bexport'
16909      ;;        ;;
   
   sysv5*)  
     no_undefined_flag=' -z text'  
     # $CC -shared without GNU ld will not create a library from C++  
     # object files and a static libstdc++, better avoid it by now  
     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'  
     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~  
                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'  
     hardcode_libdir_flag_spec=  
     hardcode_shlibpath_var=no  
     runpath_var='LD_RUN_PATH'  
     ;;  
   
   uts4*)  
     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'  
     hardcode_libdir_flag_spec='-L$libdir'  
     hardcode_shlibpath_var=no  
     ;;  
16910    
16911    dgux*)      sysv4*MP*)
16912      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'        if test -d /usr/nec; then
16913      hardcode_libdir_flag_spec='-L$libdir'          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16914      hardcode_shlibpath_var=no          hardcode_shlibpath_var_GCJ=no
16915      ;;          runpath_var=LD_RUN_PATH
16916            hardcode_runpath_var=yes
16917            ld_shlibs_GCJ=yes
16918          fi
16919          ;;
16920    
16921    sysv4*MP*)      sysv4.2uw2*)
16922      if test -d /usr/nec; then        archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16923        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'        hardcode_direct_GCJ=yes
16924        hardcode_shlibpath_var=no        hardcode_minus_L_GCJ=no
16925        runpath_var=LD_RUN_PATH        hardcode_shlibpath_var_GCJ=no
16926        hardcode_runpath_var=yes        hardcode_runpath_var=yes
16927        ld_shlibs=yes        runpath_var=LD_RUN_PATH
16928      fi        ;;
     ;;  
   
   sysv4.2uw2*)  
     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'  
     hardcode_direct=yes  
     hardcode_minus_L=no  
     hardcode_shlibpath_var=no  
     hardcode_runpath_var=yes  
     runpath_var=LD_RUN_PATH  
     ;;  
16929    
16930    sysv5uw7* | unixware7*)     sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16931      no_undefined_flag='${wl}-z ${wl}text'        no_undefined_flag_GCJ='${wl}-z ${wl}text'
16932      if test "$GCC" = yes; then        if test "$GCC" = yes; then
16933        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'          archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16934      else        else
16935        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'          archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16936      fi        fi
16937      runpath_var='LD_RUN_PATH'        runpath_var='LD_RUN_PATH'
16938      hardcode_shlibpath_var=no        hardcode_shlibpath_var_GCJ=no
16939      ;;        ;;
16940    
16941    *)      sysv5*)
16942      ld_shlibs=no        no_undefined_flag_GCJ=' -z text'
16943      ;;        # $CC -shared without GNU ld will not create a library from C++
16944    esac        # object files and a static libstdc++, better avoid it by now
16945  fi        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16946  echo "$as_me:$LINENO: result: $ld_shlibs" >&5        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16947  echo "${ECHO_T}$ld_shlibs" >&6                  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16948  test "$ld_shlibs" = no && can_build_shared=no        hardcode_libdir_flag_spec_GCJ=
16949          hardcode_shlibpath_var_GCJ=no
16950          runpath_var='LD_RUN_PATH'
16951          ;;
16952    
16953  # Check hardcoding attributes.      uts4*)
16954  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16955  echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6        hardcode_libdir_flag_spec_GCJ='-L$libdir'
16956  hardcode_action=        hardcode_shlibpath_var_GCJ=no
16957  if test -n "$hardcode_libdir_flag_spec" || \        ;;
    test -n "$runpath_var"; then  
16958    
16959    # We can hardcode non-existant directories.      *)
16960    if test "$hardcode_direct" != no &&        ld_shlibs_GCJ=no
16961       # If the only mechanism to avoid hardcoding is shlibpath_var, we        ;;
16962       # have to relink, otherwise we might link with an installed library      esac
      # when we should be linking with a yet-to-be-installed one  
      ## test "$hardcode_shlibpath_var" != no &&  
      test "$hardcode_minus_L" != no; then  
     # Linking always hardcodes the temporary library directory.  
     hardcode_action=relink  
   else  
     # We can link without hardcoding, and we can hardcode nonexisting dirs.  
     hardcode_action=immediate  
16963    fi    fi
 else  
   # We cannot hardcode anything, or else we can only hardcode existing  
   # directories.  
   hardcode_action=unsupported  
 fi  
 echo "$as_me:$LINENO: result: $hardcode_action" >&5  
 echo "${ECHO_T}$hardcode_action" >&6  
16964    
16965  striplib=  echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16966  old_striplib=  echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16967  echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5  test "$ld_shlibs_GCJ" = no && can_build_shared=no
16968  echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6  
16969  if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then  variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16970    test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"  if test "$GCC" = yes; then
16971    test -z "$striplib" && striplib="$STRIP --strip-unneeded"    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   echo "$as_me:$LINENO: result: yes" >&5  
 echo "${ECHO_T}yes" >&6  
 else  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
16972  fi  fi
16973    
16974  reload_cmds='$LD$reload_flag -o $output$reload_objs'  #
16975  test -z "$deplibs_check_method" && deplibs_check_method=unknown  # Do we need to explicitly link libc?
16976    #
16977    case "x$archive_cmds_need_lc_GCJ" in
16978    x|xyes)
16979      # Assume -lc should be added
16980      archive_cmds_need_lc_GCJ=yes
16981    
16982      if test "$enable_shared" = yes && test "$GCC" = yes; then
16983        case $archive_cmds_GCJ in
16984        *'~'*)
16985          # FIXME: we may have to deal with multi-command sequences.
16986          ;;
16987        '$CC '*)
16988          # Test whether the compiler implicitly links with -lc since on some
16989          # systems, -lgcc has to come before -lc. If gcc already passes -lc
16990          # to ld, don't add -lc before -lgcc.
16991          echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16992    echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16993          $rm conftest*
16994          printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16995    
16996          if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16997      (eval $ac_compile) 2>&5
16998      ac_status=$?
16999      echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000      (exit $ac_status); } 2>conftest.err; then
17001            soname=conftest
17002            lib=conftest
17003            libobjs=conftest.$ac_objext
17004            deplibs=
17005            wl=$lt_prog_compiler_wl_GCJ
17006            compiler_flags=-v
17007            linker_flags=-v
17008            verstring=
17009            output_objdir=.
17010            libname=conftest
17011            lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17012            allow_undefined_flag_GCJ=
17013            if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17014      (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17015      ac_status=$?
17016      echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017      (exit $ac_status); }
17018            then
17019              archive_cmds_need_lc_GCJ=no
17020            else
17021              archive_cmds_need_lc_GCJ=yes
17022            fi
17023            allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17024          else
17025            cat conftest.err 1>&5
17026          fi
17027          $rm conftest*
17028          echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17029    echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17030          ;;
17031        esac
17032      fi
17033      ;;
17034    esac
17035    
 # PORTME Fill in your ld.so characteristics  
17036  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5  echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17037  echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6  echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17038  library_names_spec=  library_names_spec=
17039  libname_spec='lib$name'  libname_spec='lib$name'
17040  soname_spec=  soname_spec=
17041    shrext_cmds=".so"
17042  postinstall_cmds=  postinstall_cmds=
17043  postuninstall_cmds=  postuninstall_cmds=
17044  finish_cmds=  finish_cmds=
# Line 6876  shlibpath_var= Line 17047  shlibpath_var=
17047  shlibpath_overrides_runpath=unknown  shlibpath_overrides_runpath=unknown
17048  version_type=none  version_type=none
17049  dynamic_linker="$host_os ld.so"  dynamic_linker="$host_os ld.so"
17050  sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib"  sys_lib_dlsearch_path_spec="/lib /usr/lib"
17051  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib"  if test "$GCC" = yes; then
17052      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17053      if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17054        # if the path contains ";" then we assume it to be the separator
17055        # otherwise default to the standard path separator (i.e. ":") - it is
17056        # assumed that no part of a normal pathname contains ";" but that should
17057        # okay in the real world where ";" in dirpaths is itself problematic.
17058        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17059      else
17060        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17061      fi
17062    else
17063      sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17064    fi
17065    need_lib_prefix=unknown
17066    hardcode_into_libs=no
17067    
17068    # when you set need_version to no, make sure it does not cause -set_version
17069    # flags to be left without arguments
17070    need_version=unknown
17071    
17072  case $host_os in  case $host_os in
17073  aix3*)  aix3*)
17074    version_type=linux    version_type=linux
17075    library_names_spec='${libname}${release}.so$versuffix $libname.a'    library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17076    shlibpath_var=LIBPATH    shlibpath_var=LIBPATH
17077    
17078    # AIX has no versioning support, so we append a major version to the name.    # AIX 3 has no versioning support, so we append a major version to the name.
17079    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
17080    ;;    ;;
17081    
17082  aix4* | aix5*)  aix4* | aix5*)
# Line 6896  aix4* | aix5*) Line 17086  aix4* | aix5*)
17086    hardcode_into_libs=yes    hardcode_into_libs=yes
17087    if test "$host_cpu" = ia64; then    if test "$host_cpu" = ia64; then
17088      # AIX 5 supports IA64      # AIX 5 supports IA64
17089      library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'      library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17090      shlibpath_var=LD_LIBRARY_PATH      shlibpath_var=LD_LIBRARY_PATH
17091    else    else
17092      # With GCC up to 2.95.x, collect2 would create an import file      # With GCC up to 2.95.x, collect2 would create an import file
# Line 6906  aix4* | aix5*) Line 17096  aix4* | aix5*)
17096      # development snapshots of GCC prior to 3.0.      # development snapshots of GCC prior to 3.0.
17097      case $host_os in      case $host_os in
17098        aix4 | aix4.[01] | aix4.[01].*)        aix4 | aix4.[01] | aix4.[01].*)
17099          if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17100               echo ' yes '             echo ' yes '
17101               echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17102            :          :
17103          else        else
17104            can_build_shared=no          can_build_shared=no
17105          fi        fi
17106          ;;        ;;
17107      esac      esac
17108      # AIX (on Power*) has no versioning support, so currently we can      # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17109      # not hardcode correct soname into executable. Probably we can      # soname into executable. Probably we can add versioning support to
17110      # add versioning support to collect2, so additional links can      # collect2, so additional links can be useful in future.
     # be useful in future.  
17111      if test "$aix_use_runtimelinking" = yes; then      if test "$aix_use_runtimelinking" = yes; then
17112        # If using run time linking (on AIX 4.2 or later) use lib<name>.so        # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17113        # instead of lib<name>.a to let people know that these are not        # instead of lib<name>.a to let people know that these are not
17114        # typical AIX shared libraries.        # typical AIX shared libraries.
17115        library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17116      else      else
17117        # We preserve .a as extension for shared libraries through AIX4.2        # We preserve .a as extension for shared libraries through AIX4.2
17118        # and later when we are not doing run time linking.        # and later when we are not doing run time linking.
17119        library_names_spec='${libname}${release}.a $libname.a'        library_names_spec='${libname}${release}.a $libname.a'
17120        soname_spec='${libname}${release}.so$major'        soname_spec='${libname}${release}${shared_ext}$major'
17121      fi      fi
17122      shlibpath_var=LIBPATH      shlibpath_var=LIBPATH
17123    fi    fi
   hardcode_into_libs=yes  
17124    ;;    ;;
17125    
17126  amigaos*)  amigaos*)
17127    library_names_spec='$libname.ixlibrary $libname.a'    library_names_spec='$libname.ixlibrary $libname.a'
17128    # Create ${libname}_ixlibrary.a entries in /sys/libs.    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17129    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'    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'
17130    ;;    ;;
17131    
17132  beos*)  beos*)
17133    library_names_spec='${libname}.so'    library_names_spec='${libname}${shared_ext}'
17134    dynamic_linker="$host_os ld.so"    dynamic_linker="$host_os ld.so"
17135    shlibpath_var=LIBRARY_PATH    shlibpath_var=LIBRARY_PATH
17136    ;;    ;;
# Line 6950  beos*) Line 17138  beos*)
17138  bsdi4*)  bsdi4*)
17139    version_type=linux    version_type=linux
17140    need_version=no    need_version=no
17141    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17142    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
17143    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17144    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
17145    sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"    sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17146    sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"    sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   export_dynamic_flag_spec=-rdynamic  
17147    # the default ld.so.conf also contains /usr/contrib/lib and    # the default ld.so.conf also contains /usr/contrib/lib and
17148    # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow    # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17149    # libtool to hard-code these into programs    # libtool to hard-code these into programs
# Line 6964  bsdi4*) Line 17151  bsdi4*)
17151    
17152  cygwin* | mingw* | pw32*)  cygwin* | mingw* | pw32*)
17153    version_type=windows    version_type=windows
17154      shrext_cmds=".dll"
17155    need_version=no    need_version=no
17156    need_lib_prefix=no    need_lib_prefix=no
17157    
17158    case $GCC,$host_os in    case $GCC,$host_os in
17159    yes,cygwin*)    yes,cygwin* | yes,mingw* | yes,pw32*)
17160      library_names_spec='$libname.dll.a'      library_names_spec='$libname.dll.a'
17161      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'      # DLL is installed to $(libdir)/../bin by postinstall_cmds
17162      postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~      postinstall_cmds='base_file=`basename \${file}`~
17163          dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17164        dldir=$destdir/`dirname \$dlpath`~        dldir=$destdir/`dirname \$dlpath`~
17165        test -d \$dldir || mkdir -p \$dldir~        test -d \$dldir || mkdir -p \$dldir~
17166        $install_prog .libs/$dlname \$dldir/$dlname'        $install_prog $dir/$dlname \$dldir/$dlname'
17167      postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17168        dlpath=$dir/\$dldll~        dlpath=$dir/\$dldll~
17169         $rm \$dlpath'         $rm \$dlpath'
17170        shlibpath_overrides_runpath=yes
17171    
17172        case $host_os in
17173        cygwin*)
17174          # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17175          soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17176          sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17177          ;;
17178        mingw*)
17179          # MinGW DLLs use traditional 'lib' prefix
17180          soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17181          sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17182          if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17183            # It is most probably a Windows format PATH printed by
17184            # mingw gcc, but we are running on Cygwin. Gcc prints its search
17185            # path with ; separators, and with drive letters. We can handle the
17186            # drive letters (cygwin fileutils understands them), so leave them,
17187            # especially as we might pass files found there to a mingw objdump,
17188            # which wouldn't understand a cygwinified path. Ahh.
17189            sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17190          else
17191            sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17192          fi
17193          ;;
17194        pw32*)
17195          # pw32 DLLs use 'pw' prefix rather than 'lib'
17196          library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17197          ;;
17198        esac
17199      ;;      ;;
17200    yes,mingw*)  
     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'  
     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`  
     ;;  
   yes,pw32*)  
     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'  
     ;;  
17201    *)    *)
17202      library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'      library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17203      ;;      ;;
17204    esac    esac
17205    dynamic_linker='Win32 ld.exe'    dynamic_linker='Win32 ld.exe'
# Line 6999  darwin* | rhapsody*) Line 17212  darwin* | rhapsody*)
17212    version_type=darwin    version_type=darwin
17213    need_lib_prefix=no    need_lib_prefix=no
17214    need_version=no    need_version=no
17215    # FIXME: Relying on posixy $() will cause problems for    library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17216    #        cross-compilation, but unfortunately the echo tests do not    soname_spec='${libname}${release}${major}$shared_ext'
   #        yet detect zsh echo's removal of \ escapes.  
   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'  
   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'  
17217    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
17218    shlibpath_var=DYLD_LIBRARY_PATH    shlibpath_var=DYLD_LIBRARY_PATH
17219      shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17220      # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17221      if test "$GCC" = yes; then
17222        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"`
17223      else
17224        sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17225      fi
17226      sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17227      ;;
17228    
17229    dgux*)
17230      version_type=linux
17231      need_lib_prefix=no
17232      need_version=no
17233      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17234      soname_spec='${libname}${release}${shared_ext}$major'
17235      shlibpath_var=LD_LIBRARY_PATH
17236    ;;    ;;
17237    
17238  freebsd1*)  freebsd1*)
17239    dynamic_linker=no    dynamic_linker=no
17240    ;;    ;;
17241    
17242    kfreebsd*-gnu)
17243      version_type=linux
17244      need_lib_prefix=no
17245      need_version=no
17246      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17247      soname_spec='${libname}${release}${shared_ext}$major'
17248      shlibpath_var=LD_LIBRARY_PATH
17249      shlibpath_overrides_runpath=no
17250      hardcode_into_libs=yes
17251      dynamic_linker='GNU ld.so'
17252      ;;
17253    
17254  freebsd*)  freebsd*)
17255    objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`    objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17256    version_type=freebsd-$objformat    version_type=freebsd-$objformat
17257    case $version_type in    case $version_type in
17258      freebsd-elf*)      freebsd-elf*)
17259        library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17260        need_version=no        need_version=no
17261        need_lib_prefix=no        need_lib_prefix=no
17262        ;;        ;;
17263      freebsd-*)      freebsd-*)
17264        library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'        library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17265        need_version=yes        need_version=yes
17266        ;;        ;;
17267    esac    esac
# Line 7031  freebsd*) Line 17270  freebsd*)
17270    freebsd2*)    freebsd2*)
17271      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
17272      ;;      ;;
17273    *)    freebsd3.01* | freebsdelf3.01*)
17274        shlibpath_overrides_runpath=yes
17275        hardcode_into_libs=yes
17276        ;;
17277      *) # from 3.2 on
17278      shlibpath_overrides_runpath=no      shlibpath_overrides_runpath=no
17279      hardcode_into_libs=yes      hardcode_into_libs=yes
17280      ;;      ;;
# Line 7042  gnu*) Line 17285  gnu*)
17285    version_type=linux    version_type=linux
17286    need_lib_prefix=no    need_lib_prefix=no
17287    need_version=no    need_version=no
17288    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17289    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
17290    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
17291    hardcode_into_libs=yes    hardcode_into_libs=yes
17292    ;;    ;;
# Line 7051  gnu*) Line 17294  gnu*)
17294  hpux9* | hpux10* | hpux11*)  hpux9* | hpux10* | hpux11*)
17295    # Give a soname corresponding to the major version so that dld.sl refuses to    # Give a soname corresponding to the major version so that dld.sl refuses to
17296    # link against other versions.    # link against other versions.
   dynamic_linker="$host_os dld.sl"  
17297    version_type=sunos    version_type=sunos
17298    need_lib_prefix=no    need_lib_prefix=no
17299    need_version=no    need_version=no
17300    shlibpath_var=SHLIB_PATH    case "$host_cpu" in
17301    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH    ia64*)
17302    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'      shrext_cmds='.so'
17303    soname_spec='${libname}${release}.sl$major'      hardcode_into_libs=yes
17304        dynamic_linker="$host_os dld.so"
17305        shlibpath_var=LD_LIBRARY_PATH
17306        shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17307        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17308        soname_spec='${libname}${release}${shared_ext}$major'
17309        if test "X$HPUX_IA64_MODE" = X32; then
17310          sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17311        else
17312          sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17313        fi
17314        sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17315        ;;
17316       hppa*64*)
17317         shrext_cmds='.sl'
17318         hardcode_into_libs=yes
17319         dynamic_linker="$host_os dld.sl"
17320         shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17321         shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17322         library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17323         soname_spec='${libname}${release}${shared_ext}$major'
17324         sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17325         sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17326         ;;
17327       *)
17328        shrext_cmds='.sl'
17329        dynamic_linker="$host_os dld.sl"
17330        shlibpath_var=SHLIB_PATH
17331        shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17332        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17333        soname_spec='${libname}${release}${shared_ext}$major'
17334        ;;
17335      esac
17336    # HP-UX runs *really* slowly unless shared libraries are mode 555.    # HP-UX runs *really* slowly unless shared libraries are mode 555.
17337    postinstall_cmds='chmod 555 $lib'    postinstall_cmds='chmod 555 $lib'
17338    ;;    ;;
# Line 7066  hpux9* | hpux10* | hpux11*) Line 17340  hpux9* | hpux10* | hpux11*)
17340  irix5* | irix6* | nonstopux*)  irix5* | irix6* | nonstopux*)
17341    case $host_os in    case $host_os in
17342      nonstopux*) version_type=nonstopux ;;      nonstopux*) version_type=nonstopux ;;
17343      *)          version_type=irix ;;      *)
17344            if test "$lt_cv_prog_gnu_ld" = yes; then
17345                    version_type=linux
17346            else
17347                    version_type=irix
17348            fi ;;
17349    esac    esac
17350    need_lib_prefix=no    need_lib_prefix=no
17351    need_version=no    need_version=no
17352    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
17353    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17354    case $host_os in    case $host_os in
17355    irix5* | nonstopux*)    irix5* | nonstopux*)
17356      libsuff= shlibsuff=      libsuff= shlibsuff=
17357      ;;      ;;
17358    *)    *)
17359      case $LD in # libtool.m4 will add one of these switches to LD      case $LD in # libtool.m4 will add one of these switches to LD
17360      *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;      *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17361      *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;        libsuff= shlibsuff= libmagic=32-bit;;
17362      *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;      *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17363          libsuff=32 shlibsuff=N32 libmagic=N32;;
17364        *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17365          libsuff=64 shlibsuff=64 libmagic=64-bit;;
17366      *) libsuff= shlibsuff= libmagic=never-match;;      *) libsuff= shlibsuff= libmagic=never-match;;
17367      esac      esac
17368      ;;      ;;
# Line 7089  irix5* | irix6* | nonstopux*) Line 17371  irix5* | irix6* | nonstopux*)
17371    shlibpath_overrides_runpath=no    shlibpath_overrides_runpath=no
17372    sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"    sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17373    sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"    sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17374      hardcode_into_libs=yes
17375    ;;    ;;
17376    
17377  # No shared lib support for Linux oldld, aout, or coff.  # No shared lib support for Linux oldld, aout, or coff.
17378  linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)  linux*oldld* | linux*aout* | linux*coff*)
17379    dynamic_linker=no    dynamic_linker=no
17380    ;;    ;;
17381    
17382  # This must be Linux ELF.  # This must be Linux ELF.
17383  linux-gnu*)  linux*)
17384    version_type=linux    version_type=linux
17385    need_lib_prefix=no    need_lib_prefix=no
17386    need_version=no    need_version=no
17387    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17388    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
17389    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17390    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
17391    shlibpath_overrides_runpath=no    shlibpath_overrides_runpath=no
# Line 7111  linux-gnu*) Line 17394  linux-gnu*)
17394    # before this can be enabled.    # before this can be enabled.
17395    hardcode_into_libs=yes    hardcode_into_libs=yes
17396    
17397    case $host_cpu:$lt_cv_cc_64bit_output in    libsuff=
17398    powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)    if test "$lt_cv_cc_lib64_suffix" = "yes"; then
17399      sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64"      libsuff=64
17400      sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64"    fi
17401      ;;  
17402    esac    # Append ld.so.conf contents to the search path
17403      if test -f /etc/ld.so.conf; then
17404        lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17405        sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} $lt_ld_extra"
17406        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} /usr/local/lib${libsuff} $lt_ld_extra"
17407      fi
17408    
17409    # We used to test for /lib/ld.so.1 and disable shared libraries on    # We used to test for /lib/ld.so.1 and disable shared libraries on
17410    # powerpc, because MkLinux only supported shared libraries with the    # powerpc, because MkLinux only supported shared libraries with the
# Line 7127  linux-gnu*) Line 17415  linux-gnu*)
17415    dynamic_linker='GNU/Linux ld.so'    dynamic_linker='GNU/Linux ld.so'
17416    ;;    ;;
17417    
17418    knetbsd*-gnu)
17419      version_type=linux
17420      need_lib_prefix=no
17421      need_version=no
17422      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17423      soname_spec='${libname}${release}${shared_ext}$major'
17424      shlibpath_var=LD_LIBRARY_PATH
17425      shlibpath_overrides_runpath=no
17426      hardcode_into_libs=yes
17427      dynamic_linker='GNU ld.so'
17428      ;;
17429    
17430  netbsd*)  netbsd*)
17431    version_type=sunos    version_type=sunos
17432    need_lib_prefix=no    need_lib_prefix=no
17433    need_version=no    need_version=no
17434    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17435      library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17436      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17437      dynamic_linker='NetBSD (a.out) ld.so'      dynamic_linker='NetBSD (a.out) ld.so'
17438    else    else
17439      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17440      soname_spec='${libname}${release}.so$major'      soname_spec='${libname}${release}${shared_ext}$major'
17441      dynamic_linker='NetBSD ld.elf_so'      dynamic_linker='NetBSD ld.elf_so'
17442    fi    fi
17443    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
# Line 7147  netbsd*) Line 17447  netbsd*)
17447    
17448  newsos6)  newsos6)
17449    version_type=linux    version_type=linux
17450    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17451      shlibpath_var=LD_LIBRARY_PATH
17452      shlibpath_overrides_runpath=yes
17453      ;;
17454    
17455    nto-qnx*)
17456      version_type=linux
17457      need_lib_prefix=no
17458      need_version=no
17459      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17460      soname_spec='${libname}${release}${shared_ext}$major'
17461    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
17462    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
17463    ;;    ;;
# Line 7155  newsos6) Line 17465  newsos6)
17465  openbsd*)  openbsd*)
17466    version_type=sunos    version_type=sunos
17467    need_lib_prefix=no    need_lib_prefix=no
17468    need_version=no    need_version=yes
17469      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17470      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17471      shlibpath_var=LD_LIBRARY_PATH
17472    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17473      case "$host_os" in      case $host_os in
17474      openbsd2.[89] | openbsd2.[89].*)        openbsd2.[89] | openbsd2.[89].*)
17475        shlibpath_overrides_runpath=no          shlibpath_overrides_runpath=no
17476        ;;          ;;
17477      *)        *)
17478        shlibpath_overrides_runpath=yes          shlibpath_overrides_runpath=yes
17479        ;;          ;;
17480      esac        esac
17481    else    else
17482      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
17483    fi    fi
   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'  
   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'  
   shlibpath_var=LD_LIBRARY_PATH  
17484    ;;    ;;
17485    
17486  os2*)  os2*)
17487    libname_spec='$name'    libname_spec='$name'
17488      shrext_cmds=".dll"
17489    need_lib_prefix=no    need_lib_prefix=no
17490    library_names_spec='$libname.dll $libname.a'    library_names_spec='$libname${shared_ext} $libname.a'
17491    dynamic_linker='OS/2 ld.exe'    dynamic_linker='OS/2 ld.exe'
17492    shlibpath_var=LIBPATH    shlibpath_var=LIBPATH
17493    ;;    ;;
17494    
17495  osf3* | osf4* | osf5*)  osf3* | osf4* | osf5*)
17496    version_type=osf    version_type=osf
17497      need_lib_prefix=no
17498    need_version=no    need_version=no
17499    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
17500    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
17502    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17503    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   hardcode_into_libs=yes  
17504    ;;    ;;
17505    
17506  sco3.2v5*)  sco3.2v5*)
17507    version_type=osf    version_type=osf
17508    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
17509    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17510    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
17511    ;;    ;;
17512    
# Line 7203  solaris*) Line 17514  solaris*)
17514    version_type=linux    version_type=linux
17515    need_lib_prefix=no    need_lib_prefix=no
17516    need_version=no    need_version=no
17517    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17518    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
17519    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
17520    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
17521    hardcode_into_libs=yes    hardcode_into_libs=yes
# Line 7214  solaris*) Line 17525  solaris*)
17525    
17526  sunos4*)  sunos4*)
17527    version_type=sunos    version_type=sunos
17528    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17529    finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'    finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17530    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
17531    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
# Line 7226  sunos4*) Line 17537  sunos4*)
17537    
17538  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17539    version_type=linux    version_type=linux
17540    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17541    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
17542    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
17543    case $host_vendor in    case $host_vendor in
17544      sni)      sni)
# Line 7238  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) Line 17549  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17549        ;;        ;;
17550      siemens)      siemens)
17551        need_lib_prefix=no        need_lib_prefix=no
17552        ;;        ;;
17553      motorola)      motorola)
17554        need_lib_prefix=no        need_lib_prefix=no
17555        need_version=no        need_version=no
17556        shlibpath_overrides_runpath=no        shlibpath_overrides_runpath=no
17557        sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'        sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17558        ;;        ;;
17559    esac    esac
   ;;  
   
 uts4*)  
   version_type=linux  
   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'  
   soname_spec='${libname}${release}.so$major'  
   shlibpath_var=LD_LIBRARY_PATH  
   ;;  
   
 dgux*)  
   version_type=linux  
   need_lib_prefix=no  
   need_version=no  
   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'  
   soname_spec='${libname}${release}.so$major'  
   shlibpath_var=LD_LIBRARY_PATH  
17560    ;;    ;;
17561    
17562  sysv4*MP*)  sysv4*MP*)
17563    if test -d /usr/nec ;then    if test -d /usr/nec ;then
17564      version_type=linux      version_type=linux
17565      library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'      library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17566      soname_spec='$libname.so.$major'      soname_spec='$libname${shared_ext}.$major'
17567      shlibpath_var=LD_LIBRARY_PATH      shlibpath_var=LD_LIBRARY_PATH
17568    fi    fi
17569    ;;    ;;
17570    
17571    uts4*)
17572      version_type=linux
17573      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17574      soname_spec='${libname}${release}${shared_ext}$major'
17575      shlibpath_var=LD_LIBRARY_PATH
17576      ;;
17577    
17578  *)  *)
17579    dynamic_linker=no    dynamic_linker=no
17580    ;;    ;;
# Line 7281  echo "$as_me:$LINENO: result: $dynamic_l Line 17583  echo "$as_me:$LINENO: result: $dynamic_l
17583  echo "${ECHO_T}$dynamic_linker" >&6  echo "${ECHO_T}$dynamic_linker" >&6
17584  test "$dynamic_linker" = no && can_build_shared=no  test "$dynamic_linker" = no && can_build_shared=no
17585    
17586  # Report the final consequences.  echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17587  echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5  echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17588  echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6  hardcode_action_GCJ=
17589  echo "$as_me:$LINENO: result: $can_build_shared" >&5  if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17590  echo "${ECHO_T}$can_build_shared" >&6     test -n "$runpath_var GCJ" || \
17591       test "X$hardcode_automatic_GCJ"="Xyes" ; then
 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5  
 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6  
 test "$can_build_shared" = "no" && enable_shared=no  
   
 # On AIX, shared libraries and static libraries use the same namespace, and  
 # are all built from PIC.  
 case "$host_os" in  
 aix3*)  
   test "$enable_shared" = yes && enable_static=no  
   if test -n "$RANLIB"; then  
     archive_cmds="$archive_cmds~\$RANLIB \$lib"  
     postinstall_cmds='$RANLIB $lib'  
   fi  
   ;;  
17592    
17593  aix4*)    # We can hardcode non-existant directories.
17594    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then    if test "$hardcode_direct_GCJ" != no &&
17595      test "$enable_shared" = yes && enable_static=no       # If the only mechanism to avoid hardcoding is shlibpath_var, we
17596         # have to relink, otherwise we might link with an installed library
17597         # when we should be linking with a yet-to-be-installed one
17598         ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17599         test "$hardcode_minus_L_GCJ" != no; then
17600        # Linking always hardcodes the temporary library directory.
17601        hardcode_action_GCJ=relink
17602      else
17603        # We can link without hardcoding, and we can hardcode nonexisting dirs.
17604        hardcode_action_GCJ=immediate
17605    fi    fi
17606    ;;  else
17607  esac    # We cannot hardcode anything, or else we can only hardcode existing
17608  echo "$as_me:$LINENO: result: $enable_shared" >&5    # directories.
17609  echo "${ECHO_T}$enable_shared" >&6    hardcode_action_GCJ=unsupported
17610    fi
17611  echo "$as_me:$LINENO: checking whether to build static libraries" >&5  echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17612  echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6  echo "${ECHO_T}$hardcode_action_GCJ" >&6
 # Make sure either enable_shared or enable_static is yes.  
 test "$enable_shared" = yes || enable_static=yes  
 echo "$as_me:$LINENO: result: $enable_static" >&5  
 echo "${ECHO_T}$enable_static" >&6  
17613    
17614  if test "$hardcode_action" = relink; then  if test "$hardcode_action_GCJ" = relink; then
17615    # Fast installation is not supported    # Fast installation is not supported
17616    enable_fast_install=no    enable_fast_install=no
17617  elif test "$shlibpath_overrides_runpath" = yes ||  elif test "$shlibpath_overrides_runpath" = yes ||
# Line 7327  elif test "$shlibpath_overrides_runpath" Line 17620  elif test "$shlibpath_overrides_runpath"
17620    enable_fast_install=needless    enable_fast_install=needless
17621  fi  fi
17622    
17623  variables_saved_for_relink="PATH $shlibpath_var $runpath_var"  striplib=
17624  if test "$GCC" = yes; then  old_striplib=
17625    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"  echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17626    echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17627    if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17628      test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17629      test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17630      echo "$as_me:$LINENO: result: yes" >&5
17631    echo "${ECHO_T}yes" >&6
17632    else
17633    # FIXME - insert some real tests, host_os isn't really good enough
17634      case $host_os in
17635       darwin*)
17636           if test -n "$STRIP" ; then
17637             striplib="$STRIP -x"
17638             echo "$as_me:$LINENO: result: yes" >&5
17639    echo "${ECHO_T}yes" >&6
17640           else
17641      echo "$as_me:$LINENO: result: no" >&5
17642    echo "${ECHO_T}no" >&6
17643    fi
17644           ;;
17645       *)
17646      echo "$as_me:$LINENO: result: no" >&5
17647    echo "${ECHO_T}no" >&6
17648        ;;
17649      esac
17650  fi  fi
17651    
17652  if test "x$enable_dlopen" != xyes; then  if test "x$enable_dlopen" != xyes; then
# Line 7347  else Line 17664  else
17664      lt_cv_dlopen_self=yes      lt_cv_dlopen_self=yes
17665      ;;      ;;
17666    
17667    cygwin* | mingw* | pw32*)    mingw* | pw32*)
17668      lt_cv_dlopen="LoadLibrary"      lt_cv_dlopen="LoadLibrary"
17669      lt_cv_dlopen_libs=      lt_cv_dlopen_libs=
17670     ;;     ;;
17671    
17672      cygwin*)
17673        lt_cv_dlopen="dlopen"
17674        lt_cv_dlopen_libs=
17675       ;;
17676    
17677      darwin*)
17678      # if libdl is installed we need to link against it
17679        echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17680    echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17681    if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17682      echo $ECHO_N "(cached) $ECHO_C" >&6
17683    else
17684      ac_check_lib_save_LIBS=$LIBS
17685    LIBS="-ldl  $LIBS"
17686    cat >conftest.$ac_ext <<_ACEOF
17687    /* confdefs.h.  */
17688    _ACEOF
17689    cat confdefs.h >>conftest.$ac_ext
17690    cat >>conftest.$ac_ext <<_ACEOF
17691    /* end confdefs.h.  */
17692    
17693    /* Override any gcc2 internal prototype to avoid an error.  */
17694    #ifdef __cplusplus
17695    extern "C"
17696    #endif
17697    /* We use char because int might match the return type of a gcc2
17698       builtin and then its argument prototype would still apply.  */
17699    char dlopen ();
17700    int
17701    main ()
17702    {
17703    dlopen ();
17704      ;
17705      return 0;
17706    }
17707    _ACEOF
17708    rm -f conftest.$ac_objext conftest$ac_exeext
17709    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17710      (eval $ac_link) 2>conftest.er1
17711      ac_status=$?
17712      grep -v '^ *+' conftest.er1 >conftest.err
17713      rm -f conftest.er1
17714      cat conftest.err >&5
17715      echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716      (exit $ac_status); } &&
17717             { ac_try='test -z "$ac_c_werror_flag"
17718                             || test ! -s conftest.err'
17719      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17720      (eval $ac_try) 2>&5
17721      ac_status=$?
17722      echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723      (exit $ac_status); }; } &&
17724             { ac_try='test -s conftest$ac_exeext'
17725      { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17726      (eval $ac_try) 2>&5
17727      ac_status=$?
17728      echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729      (exit $ac_status); }; }; then
17730      ac_cv_lib_dl_dlopen=yes
17731    else
17732      echo "$as_me: failed program was:" >&5
17733    sed 's/^/| /' conftest.$ac_ext >&5
17734    
17735    ac_cv_lib_dl_dlopen=no
17736    fi
17737    rm -f conftest.err conftest.$ac_objext \
17738          conftest$ac_exeext conftest.$ac_ext
17739    LIBS=$ac_check_lib_save_LIBS
17740    fi
17741    echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17742    echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17743    if test $ac_cv_lib_dl_dlopen = yes; then
17744      lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17745    else
17746    
17747        lt_cv_dlopen="dyld"
17748        lt_cv_dlopen_libs=
17749        lt_cv_dlopen_self=yes
17750    
17751    fi
17752    
17753       ;;
17754    
17755    *)    *)
17756      echo "$as_me:$LINENO: checking for shl_load" >&5      echo "$as_me:$LINENO: checking for shl_load" >&5
17757  echo $ECHO_N "checking for shl_load... $ECHO_C" >&6  echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
# Line 7835  fi Line 18235  fi
18235    case $lt_cv_dlopen in    case $lt_cv_dlopen in
18236    dlopen)    dlopen)
18237      save_CPPFLAGS="$CPPFLAGS"      save_CPPFLAGS="$CPPFLAGS"
18238          test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18239    
18240      save_LDFLAGS="$LDFLAGS"      save_LDFLAGS="$LDFLAGS"
18241      eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"      eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
# Line 7849  if test "${lt_cv_dlopen_self+set}" = set Line 18249  if test "${lt_cv_dlopen_self+set}" = set
18249    echo $ECHO_N "(cached) $ECHO_C" >&6    echo $ECHO_N "(cached) $ECHO_C" >&6
18250  else  else
18251            if test "$cross_compiling" = yes; then :            if test "$cross_compiling" = yes; then :
18252    lt_cv_dlopen_self=cross    lt_cv_dlopen_self=cross
18253    else
18254      lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18255      lt_status=$lt_dlunknown
18256      cat > conftest.$ac_ext <<EOF
18257    #line 18257 "configure"
18258    #include "confdefs.h"
18259    
18260    #if HAVE_DLFCN_H
18261    #include <dlfcn.h>
18262    #endif
18263    
18264    #include <stdio.h>
18265    
18266    #ifdef RTLD_GLOBAL
18267    #  define LT_DLGLOBAL           RTLD_GLOBAL
18268    #else
18269    #  ifdef DL_GLOBAL
18270    #    define LT_DLGLOBAL         DL_GLOBAL
18271    #  else
18272    #    define LT_DLGLOBAL         0
18273    #  endif
18274    #endif
18275    
18276    /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18277       find out it does not work in some platform. */
18278    #ifndef LT_DLLAZY_OR_NOW
18279    #  ifdef RTLD_LAZY
18280    #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18281    #  else
18282    #    ifdef DL_LAZY
18283    #      define LT_DLLAZY_OR_NOW          DL_LAZY
18284    #    else
18285    #      ifdef RTLD_NOW
18286    #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18287    #      else
18288    #        ifdef DL_NOW
18289    #          define LT_DLLAZY_OR_NOW      DL_NOW
18290    #        else
18291    #          define LT_DLLAZY_OR_NOW      0
18292    #        endif
18293    #      endif
18294    #    endif
18295    #  endif
18296    #endif
18297    
18298    #ifdef __cplusplus
18299    extern "C" void exit (int);
18300    #endif
18301    
18302    void fnord() { int i=42;}
18303    int main ()
18304    {
18305      void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18306      int status = $lt_dlunknown;
18307    
18308      if (self)
18309        {
18310          if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18311          else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18312          /* dlclose (self); */
18313        }
18314    
18315        exit (status);
18316    }
18317    EOF
18318      if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18319      (eval $ac_link) 2>&5
18320      ac_status=$?
18321      echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322      (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18323        (./conftest; exit; ) 2>/dev/null
18324        lt_status=$?
18325        case x$lt_status in
18326          x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18327          x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18328          x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18329        esac
18330      else :
18331        # compilation failed
18332        lt_cv_dlopen_self=no
18333      fi
18334    fi
18335    rm -fr conftest*
18336    
18337    
18338    fi
18339    echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18340    echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18341    
18342        if test "x$lt_cv_dlopen_self" = xyes; then
18343          LDFLAGS="$LDFLAGS $link_static_flag"
18344          echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18345    echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18346    if test "${lt_cv_dlopen_self_static+set}" = set; then
18347      echo $ECHO_N "(cached) $ECHO_C" >&6
18348    else
18349              if test "$cross_compiling" = yes; then :
18350      lt_cv_dlopen_self_static=cross
18351  else  else
18352      lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18353    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
18354    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
18355  #line 7857 "configure"  #line 18355 "configure"
18356  #include "confdefs.h"  #include "confdefs.h"
18357    
18358  #if HAVE_DLFCN_H  #if HAVE_DLFCN_H
# Line 7895  else Line 18393  else
18393  #  endif  #  endif
18394  #endif  #endif
18395    
18396  #ifdef __cplusplus  #ifdef __cplusplus
18397  extern "C" void exit (int);  extern "C" void exit (int);
18398  #endif  #endif
18399    
18400    void fnord() { int i=42;}
18401    int main ()
18402    {
18403      void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18404      int status = $lt_dlunknown;
18405    
18406      if (self)
18407        {
18408          if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18409          else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18410          /* dlclose (self); */
18411        }
18412    
18413        exit (status);
18414    }
18415    EOF
18416      if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18417      (eval $ac_link) 2>&5
18418      ac_status=$?
18419      echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420      (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18421        (./conftest; exit; ) 2>/dev/null
18422        lt_status=$?
18423        case x$lt_status in
18424          x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18425          x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18426          x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18427        esac
18428      else :
18429        # compilation failed
18430        lt_cv_dlopen_self_static=no
18431      fi
18432    fi
18433    rm -fr conftest*
18434    
18435    
18436    fi
18437    echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18438    echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18439        fi
18440    
18441        CPPFLAGS="$save_CPPFLAGS"
18442        LDFLAGS="$save_LDFLAGS"
18443        LIBS="$save_LIBS"
18444        ;;
18445      esac
18446    
18447      case $lt_cv_dlopen_self in
18448      yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18449      *) enable_dlopen_self=unknown ;;
18450      esac
18451    
18452      case $lt_cv_dlopen_self_static in
18453      yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18454      *) enable_dlopen_self_static=unknown ;;
18455      esac
18456    fi
18457    
18458    
18459    # The else clause should only fire when bootstrapping the
18460    # libtool distribution, otherwise you forgot to ship ltmain.sh
18461    # with your package, and you will get complaints that there are
18462    # no rules to generate ltmain.sh.
18463    if test -f "$ltmain"; then
18464      # See if we are running on zsh, and set the options which allow our commands through
18465      # without removal of \ escapes.
18466      if test -n "${ZSH_VERSION+set}" ; then
18467        setopt NO_GLOB_SUBST
18468      fi
18469      # Now quote all the things that may contain metacharacters while being
18470      # careful not to overquote the AC_SUBSTed values.  We take copies of the
18471      # variables and quote the copies for generation of the libtool script.
18472      for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18473        SED SHELL STRIP \
18474        libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18475        old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18476        deplibs_check_method reload_flag reload_cmds need_locks \
18477        lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18478        lt_cv_sys_global_symbol_to_c_name_address \
18479        sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18480        old_postinstall_cmds old_postuninstall_cmds \
18481        compiler_GCJ \
18482        CC_GCJ \
18483        LD_GCJ \
18484        lt_prog_compiler_wl_GCJ \
18485        lt_prog_compiler_pic_GCJ \
18486        lt_prog_compiler_static_GCJ \
18487        lt_prog_compiler_no_builtin_flag_GCJ \
18488        export_dynamic_flag_spec_GCJ \
18489        thread_safe_flag_spec_GCJ \
18490        whole_archive_flag_spec_GCJ \
18491        enable_shared_with_static_runtimes_GCJ \
18492        old_archive_cmds_GCJ \
18493        old_archive_from_new_cmds_GCJ \
18494        predep_objects_GCJ \
18495        postdep_objects_GCJ \
18496        predeps_GCJ \
18497        postdeps_GCJ \
18498        compiler_lib_search_path_GCJ \
18499        archive_cmds_GCJ \
18500        archive_expsym_cmds_GCJ \
18501        postinstall_cmds_GCJ \
18502        postuninstall_cmds_GCJ \
18503        old_archive_from_expsyms_cmds_GCJ \
18504        allow_undefined_flag_GCJ \
18505        no_undefined_flag_GCJ \
18506        export_symbols_cmds_GCJ \
18507        hardcode_libdir_flag_spec_GCJ \
18508        hardcode_libdir_flag_spec_ld_GCJ \
18509        hardcode_libdir_separator_GCJ \
18510        hardcode_automatic_GCJ \
18511        module_cmds_GCJ \
18512        module_expsym_cmds_GCJ \
18513        lt_cv_prog_compiler_c_o_GCJ \
18514        exclude_expsyms_GCJ \
18515        include_expsyms_GCJ; do
18516    
18517        case $var in
18518        old_archive_cmds_GCJ | \
18519        old_archive_from_new_cmds_GCJ | \
18520        archive_cmds_GCJ | \
18521        archive_expsym_cmds_GCJ | \
18522        module_cmds_GCJ | \
18523        module_expsym_cmds_GCJ | \
18524        old_archive_from_expsyms_cmds_GCJ | \
18525        export_symbols_cmds_GCJ | \
18526        extract_expsyms_cmds | reload_cmds | finish_cmds | \
18527        postinstall_cmds | postuninstall_cmds | \
18528        old_postinstall_cmds | old_postuninstall_cmds | \
18529        sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18530          # Double-quote double-evaled strings.
18531          eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18532          ;;
18533        *)
18534          eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18535          ;;
18536        esac
18537      done
18538    
18539      case $lt_echo in
18540      *'\$0 --fallback-echo"')
18541        lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18542        ;;
18543      esac
18544    
18545    cfgfile="$ofile"
18546    
18547      cat <<__EOF__ >> "$cfgfile"
18548    # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18549    
18550    # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18551    
18552    # Shell to use when invoking shell scripts.
18553    SHELL=$lt_SHELL
18554    
18555    # Whether or not to build shared libraries.
18556    build_libtool_libs=$enable_shared
18557    
18558    # Whether or not to build static libraries.
18559    build_old_libs=$enable_static
18560    
18561    # Whether or not to add -lc for building shared libraries.
18562    build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18563    
18564    # Whether or not to disallow shared libs when runtime libs are static
18565    allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18566    
18567    # Whether or not to optimize for fast installation.
18568    fast_install=$enable_fast_install
18569    
18570    # The host system.
18571    host_alias=$host_alias
18572    host=$host
18573    
18574    # An echo program that does not interpret backslashes.
18575    echo=$lt_echo
18576    
18577    # The archiver.
18578    AR=$lt_AR
18579    AR_FLAGS=$lt_AR_FLAGS
18580    
18581    # A C compiler.
18582    LTCC=$lt_LTCC
18583    
18584    # A language-specific compiler.
18585    CC=$lt_compiler_GCJ
18586    
18587    # Is the compiler the GNU C compiler?
18588    with_gcc=$GCC_GCJ
18589    
18590    # An ERE matcher.
18591    EGREP=$lt_EGREP
18592    
18593    # The linker used to build libraries.
18594    LD=$lt_LD_GCJ
18595    
18596    # Whether we need hard or soft links.
18597    LN_S=$lt_LN_S
18598    
18599    # A BSD-compatible nm program.
18600    NM=$lt_NM
18601    
18602    # A symbol stripping program
18603    STRIP=$lt_STRIP
18604    
18605    # Used to examine libraries when file_magic_cmd begins "file"
18606    MAGIC_CMD=$MAGIC_CMD
18607    
18608    # Used on cygwin: DLL creation program.
18609    DLLTOOL="$DLLTOOL"
18610    
18611    # Used on cygwin: object dumper.
18612    OBJDUMP="$OBJDUMP"
18613    
18614    # Used on cygwin: assembler.
18615    AS="$AS"
18616    
18617    # The name of the directory that contains temporary libtool files.
18618    objdir=$objdir
18619    
18620    # How to create reloadable object files.
18621    reload_flag=$lt_reload_flag
18622    reload_cmds=$lt_reload_cmds
18623    
18624    # How to pass a linker flag through the compiler.
18625    wl=$lt_lt_prog_compiler_wl_GCJ
18626    
18627    # Object file suffix (normally "o").
18628    objext="$ac_objext"
18629    
18630    # Old archive suffix (normally "a").
18631    libext="$libext"
18632    
18633    # Shared library suffix (normally ".so").
18634    shrext_cmds='$shrext_cmds'
18635    
18636    # Executable file suffix (normally "").
18637    exeext="$exeext"
18638    
18639    # Additional compiler flags for building library objects.
18640    pic_flag=$lt_lt_prog_compiler_pic_GCJ
18641    pic_mode=$pic_mode
18642    
18643    # What is the maximum length of a command?
18644    max_cmd_len=$lt_cv_sys_max_cmd_len
18645    
18646    # Does compiler simultaneously support -c and -o options?
18647    compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18648    
18649    # Must we lock files when doing compilation ?
18650    need_locks=$lt_need_locks
18651    
18652    # Do we need the lib prefix for modules?
18653    need_lib_prefix=$need_lib_prefix
18654    
18655    # Do we need a version for libraries?
18656    need_version=$need_version
18657    
18658    # Whether dlopen is supported.
18659    dlopen_support=$enable_dlopen
18660    
18661    # Whether dlopen of programs is supported.
18662    dlopen_self=$enable_dlopen_self
18663    
18664    # Whether dlopen of statically linked programs is supported.
18665    dlopen_self_static=$enable_dlopen_self_static
18666    
18667    # Compiler flag to prevent dynamic linking.
18668    link_static_flag=$lt_lt_prog_compiler_static_GCJ
18669    
18670    # Compiler flag to turn off builtin functions.
18671    no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18672    
18673    # Compiler flag to allow reflexive dlopens.
18674    export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18675    
18676    # Compiler flag to generate shared objects directly from archives.
18677    whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18678    
18679    # Compiler flag to generate thread-safe objects.
18680    thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18681    
18682    # Library versioning type.
18683    version_type=$version_type
18684    
18685    # Format of library name prefix.
18686    libname_spec=$lt_libname_spec
18687    
18688    # List of archive names.  First name is the real one, the rest are links.
18689    # The last name is the one that the linker finds with -lNAME.
18690    library_names_spec=$lt_library_names_spec
18691    
18692    # The coded name of the library, if different from the real name.
18693    soname_spec=$lt_soname_spec
18694    
18695    # Commands used to build and install an old-style archive.
18696    RANLIB=$lt_RANLIB
18697    old_archive_cmds=$lt_old_archive_cmds_GCJ
18698    old_postinstall_cmds=$lt_old_postinstall_cmds
18699    old_postuninstall_cmds=$lt_old_postuninstall_cmds
18700    
18701    # Create an old-style archive from a shared archive.
18702    old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18703    
18704    # Create a temporary old-style archive to link instead of a shared archive.
18705    old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18706    
18707    # Commands used to build and install a shared archive.
18708    archive_cmds=$lt_archive_cmds_GCJ
18709    archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18710    postinstall_cmds=$lt_postinstall_cmds
18711    postuninstall_cmds=$lt_postuninstall_cmds
18712    
18713    # Commands used to build a loadable module (assumed same as above if empty)
18714    module_cmds=$lt_module_cmds_GCJ
18715    module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18716    
18717    # Commands to strip libraries.
18718    old_striplib=$lt_old_striplib
18719    striplib=$lt_striplib
18720    
18721    # Dependencies to place before the objects being linked to create a
18722    # shared library.
18723    predep_objects=$lt_predep_objects_GCJ
18724    
18725    # Dependencies to place after the objects being linked to create a
18726    # shared library.
18727    postdep_objects=$lt_postdep_objects_GCJ
18728    
18729    # Dependencies to place before the objects being linked to create a
18730    # shared library.
18731    predeps=$lt_predeps_GCJ
18732    
18733    # Dependencies to place after the objects being linked to create a
18734    # shared library.
18735    postdeps=$lt_postdeps_GCJ
18736    
18737    # The library search path used internally by the compiler when linking
18738    # a shared library.
18739    compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18740    
18741    # Method to check whether dependent libraries are shared objects.
18742    deplibs_check_method=$lt_deplibs_check_method
18743    
18744    # Command to use when deplibs_check_method == file_magic.
18745    file_magic_cmd=$lt_file_magic_cmd
18746    
18747    # Flag that allows shared libraries with undefined symbols to be built.
18748    allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18749    
18750    # Flag that forces no undefined symbols.
18751    no_undefined_flag=$lt_no_undefined_flag_GCJ
18752    
18753    # Commands used to finish a libtool library installation in a directory.
18754    finish_cmds=$lt_finish_cmds
18755    
18756    # Same as above, but a single script fragment to be evaled but not shown.
18757    finish_eval=$lt_finish_eval
18758    
18759    # Take the output of nm and produce a listing of raw symbols and C names.
18760    global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18761    
18762    # Transform the output of nm in a proper C declaration
18763    global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18764    
18765    # Transform the output of nm in a C name address pair
18766    global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18767    
18768    # This is the shared library runtime path variable.
18769    runpath_var=$runpath_var
18770    
18771    # This is the shared library path variable.
18772    shlibpath_var=$shlibpath_var
18773    
18774  void fnord() { int i=42;}  # Is shlibpath searched before the hard-coded library search path?
18775  int main ()  shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 {  
   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);  
   int status = $lt_dlunknown;  
18776    
18777    if (self)  # How to hardcode a shared library path into an executable.
18778      {  hardcode_action=$hardcode_action_GCJ
       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;  
       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;  
       /* dlclose (self); */  
     }  
18779    
18780      exit (status);  # Whether we should hardcode library paths into libraries.
18781  }  hardcode_into_libs=$hardcode_into_libs
 EOF  
   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then  
     (./conftest; exit; ) 2>/dev/null  
     lt_status=$?  
     case x$lt_status in  
       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;  
       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;  
       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;  
     esac  
   else :  
     # compilation failed  
     lt_cv_dlopen_self=no  
   fi  
 fi  
 rm -fr conftest*  
18782    
18783    # Flag to hardcode \$libdir into a binary during linking.
18784    # This must work even if \$libdir does not exist.
18785    hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18786    
18787  fi  # If ld is used when linking, flag to hardcode \$libdir into
18788  echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5  # a binary during linking. This must work even if \$libdir does
18789  echo "${ECHO_T}$lt_cv_dlopen_self" >&6  # not exist.
18790    hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18791    
18792      if test "x$lt_cv_dlopen_self" = xyes; then  # Whether we need a single -rpath flag with a separated argument.
18793        LDFLAGS="$LDFLAGS $link_static_flag"  hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5  
 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6  
 if test "${lt_cv_dlopen_self_static+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
           if test "$cross_compiling" = yes; then :  
   lt_cv_dlopen_self_static=cross  
 else  
     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2  
   lt_status=$lt_dlunknown  
   cat > conftest.$ac_ext <<EOF  
 #line 7955 "configure"  
 #include "confdefs.h"  
18794    
18795  #if HAVE_DLFCN_H  # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18796  #include <dlfcn.h>  # resulting binary.
18797  #endif  hardcode_direct=$hardcode_direct_GCJ
18798    
18799  #include <stdio.h>  # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18800    # resulting binary.
18801    hardcode_minus_L=$hardcode_minus_L_GCJ
18802    
18803  #ifdef RTLD_GLOBAL  # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18804  #  define LT_DLGLOBAL           RTLD_GLOBAL  # the resulting binary.
18805  #else  hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 #  ifdef DL_GLOBAL  
 #    define LT_DLGLOBAL         DL_GLOBAL  
 #  else  
 #    define LT_DLGLOBAL         0  
 #  endif  
 #endif  
18806    
18807  /* We may have to define LT_DLLAZY_OR_NOW in the command line if we  # Set to yes if building a shared library automatically hardcodes DIR into the library
18808     find out it does not work in some platform. */  # and all subsequent libraries and executables linked against it.
18809  #ifndef LT_DLLAZY_OR_NOW  hardcode_automatic=$hardcode_automatic_GCJ
 #  ifdef RTLD_LAZY  
 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY  
 #  else  
 #    ifdef DL_LAZY  
 #      define LT_DLLAZY_OR_NOW          DL_LAZY  
 #    else  
 #      ifdef RTLD_NOW  
 #        define LT_DLLAZY_OR_NOW        RTLD_NOW  
 #      else  
 #        ifdef DL_NOW  
 #          define LT_DLLAZY_OR_NOW      DL_NOW  
 #        else  
 #          define LT_DLLAZY_OR_NOW      0  
 #        endif  
 #      endif  
 #    endif  
 #  endif  
 #endif  
18810    
18811  #ifdef __cplusplus  # Variables whose values should be saved in libtool wrapper scripts and
18812  extern "C" void exit (int);  # restored at relink time.
18813  #endif  variables_saved_for_relink="$variables_saved_for_relink"
18814    
18815  void fnord() { int i=42;}  # Whether libtool must link a program against all its dependency libraries.
18816  int main ()  link_all_deplibs=$link_all_deplibs_GCJ
 {  
   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);  
   int status = $lt_dlunknown;  
18817    
18818    if (self)  # Compile-time system search path for libraries
18819      {  sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;  
       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;  
       /* dlclose (self); */  
     }  
18820    
18821      exit (status);  # Run-time system search path for libraries
18822  }  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 EOF  
   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5  
   (eval $ac_link) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then  
     (./conftest; exit; ) 2>/dev/null  
     lt_status=$?  
     case x$lt_status in  
       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;  
       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;  
       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;  
     esac  
   else :  
     # compilation failed  
     lt_cv_dlopen_self_static=no  
   fi  
 fi  
 rm -fr conftest*  
18823    
18824    # Fix the shell variable \$srcfile for the compiler.
18825    fix_srcfile_path="$fix_srcfile_path_GCJ"
18826    
18827  fi  # Set to yes if exported symbols are required.
18828  echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5  always_export_symbols=$always_export_symbols_GCJ
 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6  
     fi  
18829    
18830      CPPFLAGS="$save_CPPFLAGS"  # The commands to list exported symbols.
18831      LDFLAGS="$save_LDFLAGS"  export_symbols_cmds=$lt_export_symbols_cmds_GCJ
     LIBS="$save_LIBS"  
     ;;  
   esac  
18832    
18833    case $lt_cv_dlopen_self in  # The commands to extract the exported symbol list from a shared archive.
18834    yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;  extract_expsyms_cmds=$lt_extract_expsyms_cmds
   *) enable_dlopen_self=unknown ;;  
   esac  
18835    
18836    case $lt_cv_dlopen_self_static in  # Symbols that should not be listed in the preloaded symbols.
18837    yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;  exclude_expsyms=$lt_exclude_expsyms_GCJ
   *) enable_dlopen_self_static=unknown ;;  
   esac  
 fi  
18838    
18839    # Symbols that must always be exported.
18840    include_expsyms=$lt_include_expsyms_GCJ
18841    
18842  if test "$enable_shared" = yes && test "$GCC" = yes; then  # ### END LIBTOOL TAG CONFIG: $tagname
   case $archive_cmds in  
   *'~'*)  
     # FIXME: we may have to deal with multi-command sequences.  
     ;;  
   '$CC '*)  
     # Test whether the compiler implicitly links with -lc since on some  
     # systems, -lgcc has to come before -lc. If gcc already passes -lc  
     # to ld, don't add -lc before -lgcc.  
     echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5  
 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6  
     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   $rm conftest*  
     echo 'static int dummy;' > conftest.$ac_ext  
18843    
18844      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5  __EOF__
   (eval $ac_compile) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }; then  
       soname=conftest  
       lib=conftest  
       libobjs=conftest.$ac_objext  
       deplibs=  
       wl=$lt_cv_prog_cc_wl  
       compiler_flags=-v  
       linker_flags=-v  
       verstring=  
       output_objdir=.  
       libname=conftest  
       save_allow_undefined_flag=$allow_undefined_flag  
       allow_undefined_flag=  
       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5  
   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5  
   ac_status=$?  
   echo "$as_me:$LINENO: \$? = $ac_status" >&5  
   (exit $ac_status); }  
       then  
         lt_cv_archive_cmds_need_lc=no  
       else  
         lt_cv_archive_cmds_need_lc=yes  
       fi  
       allow_undefined_flag=$save_allow_undefined_flag  
     else  
       cat conftest.err 1>&5  
     fi  
 fi  
18845    
     echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5  
 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6  
     ;;  
   esac  
 fi  
 need_lc=${lt_cv_archive_cmds_need_lc-yes}  
18846    
 # The second clause should only fire when bootstrapping the  
 # libtool distribution, otherwise you forgot to ship ltmain.sh  
 # with your package, and you will get complaints that there are  
 # no rules to generate ltmain.sh.  
 if test -f "$ltmain"; then  
   :  
18847  else  else
18848    # If there is no Makefile yet, we rely on a make rule to execute    # If there is no Makefile yet, we rely on a make rule to execute
18849    # `config.status --recheck' to rerun these tests and create the    # `config.status --recheck' to rerun these tests and create the
18850    # libtool script then.    # libtool script then.
18851    test -f Makefile && make "$ltmain"    ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18852      if test -f "$ltmain_in"; then
18853        test -f Makefile && make "$ltmain"
18854      fi
18855  fi  fi
18856    
 if test -f "$ltmain"; then  
   trap "$rm \"${ofile}T\"; exit 1" 1 2 15  
   $rm -f "${ofile}T"  
18857    
18858    echo creating $ofile  ac_ext=c
18859    ac_cpp='$CPP $CPPFLAGS'
18860    ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18861    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18862    ac_compiler_gnu=$ac_cv_c_compiler_gnu
18863    
18864    CC="$lt_save_CC"
18865    
18866            else
18867              tagname=""
18868            fi
18869            ;;
18870    
18871          RC)
18872    
18873    
18874    
18875    # Source file extension for RC test sources.
18876    ac_ext=rc
18877    
18878    # Object file extension for compiled RC test sources.
18879    objext=o
18880    objext_RC=$objext
18881    
18882    # Code to be used in simple compile tests
18883    lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18884    
18885    # Code to be used in simple link tests
18886    lt_simple_link_test_code="$lt_simple_compile_test_code"
18887    
18888    # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18889    
18890    # If no C compiler was specified, use CC.
18891    LTCC=${LTCC-"$CC"}
18892    
18893    # Allow CC to be a program name with arguments.
18894    compiler=$CC
18895    
18896    
18897    # Allow CC to be a program name with arguments.
18898    lt_save_CC="$CC"
18899    CC=${RC-"windres"}
18900    compiler=$CC
18901    compiler_RC=$CC
18902    lt_cv_prog_compiler_c_o_RC=yes
18903    
18904    # The else clause should only fire when bootstrapping the
18905    # libtool distribution, otherwise you forgot to ship ltmain.sh
18906    # with your package, and you will get complaints that there are
18907    # no rules to generate ltmain.sh.
18908    if test -f "$ltmain"; then
18909      # See if we are running on zsh, and set the options which allow our commands through
18910      # without removal of \ escapes.
18911      if test -n "${ZSH_VERSION+set}" ; then
18912        setopt NO_GLOB_SUBST
18913      fi
18914    # Now quote all the things that may contain metacharacters while being    # Now quote all the things that may contain metacharacters while being
18915    # careful not to overquote the AC_SUBSTed values.  We take copies of the    # careful not to overquote the AC_SUBSTed values.  We take copies of the
18916    # variables and quote the copies for generation of the libtool script.    # variables and quote the copies for generation of the libtool script.
18917    for var in echo old_CC old_CFLAGS SED \    for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18918      AR AR_FLAGS CC LD LN_S NM SHELL \      SED SHELL STRIP \
18919      reload_flag reload_cmds wl \      libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18920      pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \      old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18921      thread_safe_flag_spec whole_archive_flag_spec libname_spec \      deplibs_check_method reload_flag reload_cmds need_locks \
18922      library_names_spec soname_spec \      lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18923      RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \      lt_cv_sys_global_symbol_to_c_name_address \
     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \  
     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \  
     old_striplib striplib file_magic_cmd export_symbols_cmds \  
     deplibs_check_method allow_undefined_flag no_undefined_flag \  
     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \  
     global_symbol_to_c_name_address \  
     hardcode_libdir_flag_spec hardcode_libdir_separator  \  
18924      sys_lib_search_path_spec sys_lib_dlsearch_path_spec \      sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18925      compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do      old_postinstall_cmds old_postuninstall_cmds \
18926        compiler_RC \
18927        CC_RC \
18928        LD_RC \
18929        lt_prog_compiler_wl_RC \
18930        lt_prog_compiler_pic_RC \
18931        lt_prog_compiler_static_RC \
18932        lt_prog_compiler_no_builtin_flag_RC \
18933        export_dynamic_flag_spec_RC \
18934        thread_safe_flag_spec_RC \
18935        whole_archive_flag_spec_RC \
18936        enable_shared_with_static_runtimes_RC \
18937        old_archive_cmds_RC \
18938        old_archive_from_new_cmds_RC \
18939        predep_objects_RC \
18940        postdep_objects_RC \
18941        predeps_RC \
18942        postdeps_RC \
18943        compiler_lib_search_path_RC \
18944        archive_cmds_RC \
18945        archive_expsym_cmds_RC \
18946        postinstall_cmds_RC \
18947        postuninstall_cmds_RC \
18948        old_archive_from_expsyms_cmds_RC \
18949        allow_undefined_flag_RC \
18950        no_undefined_flag_RC \
18951        export_symbols_cmds_RC \
18952        hardcode_libdir_flag_spec_RC \
18953        hardcode_libdir_flag_spec_ld_RC \
18954        hardcode_libdir_separator_RC \
18955        hardcode_automatic_RC \
18956        module_cmds_RC \
18957        module_expsym_cmds_RC \
18958        lt_cv_prog_compiler_c_o_RC \
18959        exclude_expsyms_RC \
18960        include_expsyms_RC; do
18961    
18962      case $var in      case $var in
18963      reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \      old_archive_cmds_RC | \
18964      old_postinstall_cmds | old_postuninstall_cmds | \      old_archive_from_new_cmds_RC | \
18965      export_symbols_cmds | archive_cmds | archive_expsym_cmds | \      archive_cmds_RC | \
18966      extract_expsyms_cmds | old_archive_from_expsyms_cmds | \      archive_expsym_cmds_RC | \
18967        module_cmds_RC | \
18968        module_expsym_cmds_RC | \
18969        old_archive_from_expsyms_cmds_RC | \
18970        export_symbols_cmds_RC | \
18971        extract_expsyms_cmds | reload_cmds | finish_cmds | \
18972      postinstall_cmds | postuninstall_cmds | \      postinstall_cmds | postuninstall_cmds | \
18973      finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)      old_postinstall_cmds | old_postuninstall_cmds | \
18974        sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18975        # Double-quote double-evaled strings.        # Double-quote double-evaled strings.
18976        eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""        eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18977        ;;        ;;
# Line 8168  if test -f "$ltmain"; then Line 18981  if test -f "$ltmain"; then
18981      esac      esac
18982    done    done
18983    
18984    cat <<__EOF__ > "${ofile}T"    case $lt_echo in
18985  #! $SHELL    *'\$0 --fallback-echo"')
18986        lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18987  # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.      ;;
18988  # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)    esac
 # NOTE: Changes made to this file will be lost: look at ltmain.sh.  
 #  
 # Copyright (C) 1996-2000 Free Software Foundation, Inc.  
 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996  
 #  
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2 of the License, or  
 # (at your option) any later version.  
 #  
 # This program is distributed in the hope that it will be useful, but  
 # WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  
 # General Public License for more details.  
 #  
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
 #  
 # As a special exception to the GNU General Public License, if you  
 # distribute this file as part of a program that contains a  
 # configuration script generated by Autoconf, you may include it under  
 # the same distribution terms that you use for the rest of that program.  
   
 # A sed that does not truncate output.  
 SED=$lt_SED  
   
 # Sed that helps us avoid accidentally triggering echo(1) options like -n.  
 Xsed="${SED} -e s/^X//"  
18989    
18990  # The HP-UX ksh and POSIX shell print the target directory to stdout  cfgfile="$ofile"
 # if CDPATH is set.  
 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi  
18991    
18992  # ### BEGIN LIBTOOL CONFIG    cat <<__EOF__ >> "$cfgfile"
18993    # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18994    
18995  # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:  # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18996    
# Line 8221  build_libtool_libs=$enable_shared Line 19004  build_libtool_libs=$enable_shared
19004  build_old_libs=$enable_static  build_old_libs=$enable_static
19005    
19006  # Whether or not to add -lc for building shared libraries.  # Whether or not to add -lc for building shared libraries.
19007  build_libtool_need_lc=$need_lc  build_libtool_need_lc=$archive_cmds_need_lc_RC
19008    
19009    # Whether or not to disallow shared libs when runtime libs are static
19010    allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19011    
19012  # Whether or not to optimize for fast installation.  # Whether or not to optimize for fast installation.
19013  fast_install=$enable_fast_install  fast_install=$enable_fast_install
# Line 8237  echo=$lt_echo Line 19023  echo=$lt_echo
19023  AR=$lt_AR  AR=$lt_AR
19024  AR_FLAGS=$lt_AR_FLAGS  AR_FLAGS=$lt_AR_FLAGS
19025    
19026  # The default C compiler.  # A C compiler.
19027  CC=$lt_CC  LTCC=$lt_LTCC
19028    
19029    # A language-specific compiler.
19030    CC=$lt_compiler_RC
19031    
19032  # Is the compiler the GNU C compiler?  # Is the compiler the GNU C compiler?
19033  with_gcc=$GCC  with_gcc=$GCC_RC
19034    
19035    # An ERE matcher.
19036    EGREP=$lt_EGREP
19037    
19038  # The linker used to build libraries.  # The linker used to build libraries.
19039  LD=$lt_LD  LD=$lt_LD_RC
19040    
19041  # Whether we need hard or soft links.  # Whether we need hard or soft links.
19042  LN_S=$lt_LN_S  LN_S=$lt_LN_S
# Line 8253  LN_S=$lt_LN_S Line 19045  LN_S=$lt_LN_S
19045  NM=$lt_NM  NM=$lt_NM
19046    
19047  # A symbol stripping program  # A symbol stripping program
19048  STRIP=$STRIP  STRIP=$lt_STRIP
19049    
19050  # Used to examine libraries when file_magic_cmd begins "file"  # Used to examine libraries when file_magic_cmd begins "file"
19051  MAGIC_CMD=$MAGIC_CMD  MAGIC_CMD=$MAGIC_CMD
# Line 8275  reload_flag=$lt_reload_flag Line 19067  reload_flag=$lt_reload_flag
19067  reload_cmds=$lt_reload_cmds  reload_cmds=$lt_reload_cmds
19068    
19069  # How to pass a linker flag through the compiler.  # How to pass a linker flag through the compiler.
19070  wl=$lt_wl  wl=$lt_lt_prog_compiler_wl_RC
19071    
19072  # Object file suffix (normally "o").  # Object file suffix (normally "o").
19073  objext="$ac_objext"  objext="$ac_objext"
# Line 8283  objext="$ac_objext" Line 19075  objext="$ac_objext"
19075  # Old archive suffix (normally "a").  # Old archive suffix (normally "a").
19076  libext="$libext"  libext="$libext"
19077    
19078    # Shared library suffix (normally ".so").
19079    shrext_cmds='$shrext_cmds'
19080    
19081  # Executable file suffix (normally "").  # Executable file suffix (normally "").
19082  exeext="$exeext"  exeext="$exeext"
19083    
19084  # Additional compiler flags for building library objects.  # Additional compiler flags for building library objects.
19085  pic_flag=$lt_pic_flag  pic_flag=$lt_lt_prog_compiler_pic_RC
19086  pic_mode=$pic_mode  pic_mode=$pic_mode
19087    
19088  # Does compiler simultaneously support -c and -o options?  # What is the maximum length of a command?
19089  compiler_c_o=$lt_compiler_c_o  max_cmd_len=$lt_cv_sys_max_cmd_len
19090    
19091  # Can we write directly to a .lo ?  # Does compiler simultaneously support -c and -o options?
19092  compiler_o_lo=$lt_compiler_o_lo  compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19093    
19094  # Must we lock files when doing compilation ?  # Must we lock files when doing compilation ?
19095  need_locks=$lt_need_locks  need_locks=$lt_need_locks
# Line 8315  dlopen_self=$enable_dlopen_self Line 19110  dlopen_self=$enable_dlopen_self
19110  dlopen_self_static=$enable_dlopen_self_static  dlopen_self_static=$enable_dlopen_self_static
19111    
19112  # Compiler flag to prevent dynamic linking.  # Compiler flag to prevent dynamic linking.
19113  link_static_flag=$lt_link_static_flag  link_static_flag=$lt_lt_prog_compiler_static_RC
19114    
19115  # Compiler flag to turn off builtin functions.  # Compiler flag to turn off builtin functions.
19116  no_builtin_flag=$lt_no_builtin_flag  no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19117    
19118  # Compiler flag to allow reflexive dlopens.  # Compiler flag to allow reflexive dlopens.
19119  export_dynamic_flag_spec=$lt_export_dynamic_flag_spec  export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19120    
19121  # Compiler flag to generate shared objects directly from archives.  # Compiler flag to generate shared objects directly from archives.
19122  whole_archive_flag_spec=$lt_whole_archive_flag_spec  whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19123    
19124  # Compiler flag to generate thread-safe objects.  # Compiler flag to generate thread-safe objects.
19125  thread_safe_flag_spec=$lt_thread_safe_flag_spec  thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19126    
19127  # Library versioning type.  # Library versioning type.
19128  version_type=$version_type  version_type=$version_type
# Line 8344  soname_spec=$lt_soname_spec Line 19139  soname_spec=$lt_soname_spec
19139    
19140  # Commands used to build and install an old-style archive.  # Commands used to build and install an old-style archive.
19141  RANLIB=$lt_RANLIB  RANLIB=$lt_RANLIB
19142  old_archive_cmds=$lt_old_archive_cmds  old_archive_cmds=$lt_old_archive_cmds_RC
19143  old_postinstall_cmds=$lt_old_postinstall_cmds  old_postinstall_cmds=$lt_old_postinstall_cmds
19144  old_postuninstall_cmds=$lt_old_postuninstall_cmds  old_postuninstall_cmds=$lt_old_postuninstall_cmds
19145    
19146  # Create an old-style archive from a shared archive.  # Create an old-style archive from a shared archive.
19147  old_archive_from_new_cmds=$lt_old_archive_from_new_cmds  old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19148    
19149  # Create a temporary old-style archive to link instead of a shared archive.  # Create a temporary old-style archive to link instead of a shared archive.
19150  old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds  old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19151    
19152  # Commands used to build and install a shared archive.  # Commands used to build and install a shared archive.
19153  archive_cmds=$lt_archive_cmds  archive_cmds=$lt_archive_cmds_RC
19154  archive_expsym_cmds=$lt_archive_expsym_cmds  archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19155  postinstall_cmds=$lt_postinstall_cmds  postinstall_cmds=$lt_postinstall_cmds
19156  postuninstall_cmds=$lt_postuninstall_cmds  postuninstall_cmds=$lt_postuninstall_cmds
19157    
19158    # Commands used to build a loadable module (assumed same as above if empty)
19159    module_cmds=$lt_module_cmds_RC
19160    module_expsym_cmds=$lt_module_expsym_cmds_RC
19161    
19162  # Commands to strip libraries.  # Commands to strip libraries.
19163  old_striplib=$lt_old_striplib  old_striplib=$lt_old_striplib
19164  striplib=$lt_striplib  striplib=$lt_striplib
19165    
19166    # Dependencies to place before the objects being linked to create a
19167    # shared library.
19168    predep_objects=$lt_predep_objects_RC
19169    
19170    # Dependencies to place after the objects being linked to create a
19171    # shared library.
19172    postdep_objects=$lt_postdep_objects_RC
19173    
19174    # Dependencies to place before the objects being linked to create a
19175    # shared library.
19176    predeps=$lt_predeps_RC
19177    
19178    # Dependencies to place after the objects being linked to create a
19179    # shared library.
19180    postdeps=$lt_postdeps_RC
19181    
19182    # The library search path used internally by the compiler when linking
19183    # a shared library.
19184    compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19185    
19186  # Method to check whether dependent libraries are shared objects.  # Method to check whether dependent libraries are shared objects.
19187  deplibs_check_method=$lt_deplibs_check_method  deplibs_check_method=$lt_deplibs_check_method
19188    
# Line 8371  deplibs_check_method=$lt_deplibs_check_m Line 19190  deplibs_check_method=$lt_deplibs_check_m
19190  file_magic_cmd=$lt_file_magic_cmd  file_magic_cmd=$lt_file_magic_cmd
19191    
19192  # Flag that allows shared libraries with undefined symbols to be built.  # Flag that allows shared libraries with undefined symbols to be built.
19193  allow_undefined_flag=$lt_allow_undefined_flag  allow_undefined_flag=$lt_allow_undefined_flag_RC
19194    
19195  # Flag that forces no undefined symbols.  # Flag that forces no undefined symbols.
19196  no_undefined_flag=$lt_no_undefined_flag  no_undefined_flag=$lt_no_undefined_flag_RC
19197    
19198  # Commands used to finish a libtool library installation in a directory.  # Commands used to finish a libtool library installation in a directory.
19199  finish_cmds=$lt_finish_cmds  finish_cmds=$lt_finish_cmds
# Line 8383  finish_cmds=$lt_finish_cmds Line 19202  finish_cmds=$lt_finish_cmds
19202  finish_eval=$lt_finish_eval  finish_eval=$lt_finish_eval
19203    
19204  # Take the output of nm and produce a listing of raw symbols and C names.  # Take the output of nm and produce a listing of raw symbols and C names.
19205  global_symbol_pipe=$lt_global_symbol_pipe  global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19206    
19207  # Transform the output of nm in a proper C declaration  # Transform the output of nm in a proper C declaration
19208  global_symbol_to_cdecl=$lt_global_symbol_to_cdecl  global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19209    
19210  # Transform the output of nm in a C name address pair  # Transform the output of nm in a C name address pair
19211  global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address  global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19212    
19213  # This is the shared library runtime path variable.  # This is the shared library runtime path variable.
19214  runpath_var=$runpath_var  runpath_var=$runpath_var
# Line 8401  shlibpath_var=$shlibpath_var Line 19220  shlibpath_var=$shlibpath_var
19220  shlibpath_overrides_runpath=$shlibpath_overrides_runpath  shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19221    
19222  # How to hardcode a shared library path into an executable.  # How to hardcode a shared library path into an executable.
19223  hardcode_action=$hardcode_action  hardcode_action=$hardcode_action_RC
19224    
19225  # Whether we should hardcode library paths into libraries.  # Whether we should hardcode library paths into libraries.
19226  hardcode_into_libs=$hardcode_into_libs  hardcode_into_libs=$hardcode_into_libs
19227    
19228  # Flag to hardcode \$libdir into a binary during linking.  # Flag to hardcode \$libdir into a binary during linking.
19229  # This must work even if \$libdir does not exist.  # This must work even if \$libdir does not exist.
19230  hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec  hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19231    
19232    # If ld is used when linking, flag to hardcode \$libdir into
19233    # a binary during linking. This must work even if \$libdir does
19234    # not exist.
19235    hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19236    
19237  # Whether we need a single -rpath flag with a separated argument.  # Whether we need a single -rpath flag with a separated argument.
19238  hardcode_libdir_separator=$lt_hardcode_libdir_separator  hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19239    
19240  # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the  # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19241  # resulting binary.  # resulting binary.
19242  hardcode_direct=$hardcode_direct  hardcode_direct=$hardcode_direct_RC
19243    
19244  # Set to yes if using the -LDIR flag during linking hardcodes DIR into the  # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19245  # resulting binary.  # resulting binary.
19246  hardcode_minus_L=$hardcode_minus_L  hardcode_minus_L=$hardcode_minus_L_RC
19247    
19248  # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into  # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19249  # the resulting binary.  # the resulting binary.
19250  hardcode_shlibpath_var=$hardcode_shlibpath_var  hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19251    
19252    # Set to yes if building a shared library automatically hardcodes DIR into the library
19253    # and all subsequent libraries and executables linked against it.
19254    hardcode_automatic=$hardcode_automatic_RC
19255    
19256  # Variables whose values should be saved in libtool wrapper scripts and  # Variables whose values should be saved in libtool wrapper scripts and
19257  # restored at relink time.  # restored at relink time.
19258  variables_saved_for_relink="$variables_saved_for_relink"  variables_saved_for_relink="$variables_saved_for_relink"
19259    
19260  # Whether libtool must link a program against all its dependency libraries.  # Whether libtool must link a program against all its dependency libraries.
19261  link_all_deplibs=$link_all_deplibs  link_all_deplibs=$link_all_deplibs_RC
19262    
19263  # Compile-time system search path for libraries  # Compile-time system search path for libraries
19264  sys_lib_search_path_spec=$lt_sys_lib_search_path_spec  sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
# Line 8439  sys_lib_search_path_spec=$lt_sys_lib_sea Line 19267  sys_lib_search_path_spec=$lt_sys_lib_sea
19267  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec  sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19268    
19269  # Fix the shell variable \$srcfile for the compiler.  # Fix the shell variable \$srcfile for the compiler.
19270  fix_srcfile_path="$fix_srcfile_path"  fix_srcfile_path="$fix_srcfile_path_RC"
19271    
19272  # Set to yes if exported symbols are required.  # Set to yes if exported symbols are required.
19273  always_export_symbols=$always_export_symbols  always_export_symbols=$always_export_symbols_RC
19274    
19275  # The commands to list exported symbols.  # The commands to list exported symbols.
19276  export_symbols_cmds=$lt_export_symbols_cmds  export_symbols_cmds=$lt_export_symbols_cmds_RC
19277    
19278  # The commands to extract the exported symbol list from a shared archive.  # The commands to extract the exported symbol list from a shared archive.
19279  extract_expsyms_cmds=$lt_extract_expsyms_cmds  extract_expsyms_cmds=$lt_extract_expsyms_cmds
19280    
19281  # Symbols that should not be listed in the preloaded symbols.  # Symbols that should not be listed in the preloaded symbols.
19282  exclude_expsyms=$lt_exclude_expsyms  exclude_expsyms=$lt_exclude_expsyms_RC
19283    
19284  # Symbols that must always be exported.  # Symbols that must always be exported.
19285  include_expsyms=$lt_include_expsyms  include_expsyms=$lt_include_expsyms_RC
19286    
19287  # ### END LIBTOOL CONFIG  # ### END LIBTOOL TAG CONFIG: $tagname
19288    
19289  __EOF__  __EOF__
19290    
   case $host_os in  
   aix3*)  
     cat <<\EOF >> "${ofile}T"  
19291    
19292  # AIX sometimes has problems with the GCC collect2 program.  For some  else
19293  # reason, if we set the COLLECT_NAMES environment variable, the problems    # If there is no Makefile yet, we rely on a make rule to execute
19294  # vanish in a puff of smoke.    # `config.status --recheck' to rerun these tests and create the
19295  if test "X${COLLECT_NAMES+set}" != Xset; then    # libtool script then.
19296    COLLECT_NAMES=    ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19297    export COLLECT_NAMES    if test -f "$ltmain_in"; then
19298        test -f Makefile && make "$ltmain"
19299      fi
19300  fi  fi
 EOF  
     ;;  
   esac  
19301    
   case $host_os in  
   cygwin* | mingw* | pw32* | os2*)  
     cat <<'EOF' >> "${ofile}T"  
       # This is a source program that is used to create dlls on Windows  
       # Don't remove nor modify the starting and closing comments  
 # /* ltdll.c starts here */  
 # #define WIN32_LEAN_AND_MEAN  
 # #include <windows.h>  
 # #undef WIN32_LEAN_AND_MEAN  
 # #include <stdio.h>  
 #  
 # #ifndef __CYGWIN__  
 # #  ifdef __CYGWIN32__  
 # #    define __CYGWIN__ __CYGWIN32__  
 # #  endif  
 # #endif  
 #  
 # #ifdef __cplusplus  
 # extern "C" {  
 # #endif  
 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);  
 # #ifdef __cplusplus  
 # }  
 # #endif  
 #  
 # #ifdef __CYGWIN__  
 # #include <cygwin/cygwin_dll.h>  
 # DECLARE_CYGWIN_DLL( DllMain );  
 # #endif  
 # HINSTANCE __hDllInstance_base;  
 #  
 # BOOL APIENTRY  
 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)  
 # {  
 #   __hDllInstance_base = hInst;  
 #   return TRUE;  
 # }  
 # /* ltdll.c ends here */  
         # This is a source program that is used to create import libraries  
         # on Windows for dlls which lack them. Don't remove nor modify the  
         # starting and closing comments  
 # /* impgen.c starts here */  
 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.  
 #  
 #  This file is part of GNU libtool.  
 #  
 #  This program is free software; you can redistribute it and/or modify  
 #  it under the terms of the GNU General Public License as published by  
 #  the Free Software Foundation; either version 2 of the License, or  
 #  (at your option) any later version.  
 #  
 #  This program is distributed in the hope that it will be useful,  
 #  but WITHOUT ANY WARRANTY; without even the implied warranty of  
 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 #  GNU General Public License for more details.  
 #  
 #  You should have received a copy of the GNU General Public License  
 #  along with this program; if not, write to the Free Software  
 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  
 #  */  
 #  
 # #include <stdio.h>            /* for printf() */  
 # #include <unistd.h>           /* for open(), lseek(), read() */  
 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */  
 # #include <string.h>           /* for strdup() */  
 #  
 # /* O_BINARY isn't required (or even defined sometimes) under Unix */  
 # #ifndef O_BINARY  
 # #define O_BINARY 0  
 # #endif  
 #  
 # static unsigned int  
 # pe_get16 (fd, offset)  
 #      int fd;  
 #      int offset;  
 # {  
 #   unsigned char b[2];  
 #   lseek (fd, offset, SEEK_SET);  
 #   read (fd, b, 2);  
 #   return b[0] + (b[1]<<8);  
 # }  
 #  
 # static unsigned int  
 # pe_get32 (fd, offset)  
 #     int fd;  
 #     int offset;  
 # {  
 #   unsigned char b[4];  
 #   lseek (fd, offset, SEEK_SET);  
 #   read (fd, b, 4);  
 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);  
 # }  
 #  
 # static unsigned int  
 # pe_as32 (ptr)  
 #      void *ptr;  
 # {  
 #   unsigned char *b = ptr;  
 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);  
 # }  
 #  
 # int  
 # main (argc, argv)  
 #     int argc;  
 #     char *argv[];  
 # {  
 #     int dll;  
 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;  
 #     unsigned long export_rva, export_size, nsections, secptr, expptr;  
 #     unsigned long name_rvas, nexp;  
 #     unsigned char *expdata, *erva;  
 #     char *filename, *dll_name;  
 #  
 #     filename = argv[1];  
 #  
 #     dll = open(filename, O_RDONLY|O_BINARY);  
 #     if (dll < 1)  
 #       return 1;  
 #  
 #     dll_name = filename;  
 #  
 #     for (i=0; filename[i]; i++)  
 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')  
 #           dll_name = filename + i +1;  
 #  
 #     pe_header_offset = pe_get32 (dll, 0x3c);  
 #     opthdr_ofs = pe_header_offset + 4 + 20;  
 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);  
 #  
 #     if (num_entries < 1) /* no exports */  
 #       return 1;  
 #  
 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);  
 #     export_size = pe_get32 (dll, opthdr_ofs + 100);  
 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);  
 #     secptr = (pe_header_offset + 4 + 20 +  
 #             pe_get16 (dll, pe_header_offset + 4 + 16));  
 #  
 #     expptr = 0;  
 #     for (i = 0; i < nsections; i++)  
 #     {  
 #       char sname[8];  
 #       unsigned long secptr1 = secptr + 40 * i;  
 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);  
 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);  
 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);  
 #       lseek(dll, secptr1, SEEK_SET);  
 #       read(dll, sname, 8);  
 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)  
 #       {  
 #           expptr = fptr + (export_rva - vaddr);  
 #           if (export_rva + export_size > vaddr + vsize)  
 #               export_size = vsize - (export_rva - vaddr);  
 #           break;  
 #       }  
 #     }  
 #  
 #     expdata = (unsigned char*)malloc(export_size);  
 #     lseek (dll, expptr, SEEK_SET);  
 #     read (dll, expdata, export_size);  
 #     erva = expdata - export_rva;  
 #  
 #     nexp = pe_as32 (expdata+24);  
 #     name_rvas = pe_as32 (expdata+32);  
 #  
 #     printf ("EXPORTS\n");  
 #     for (i = 0; i<nexp; i++)  
 #     {  
 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);  
 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);  
 #     }  
 #  
 #     return 0;  
 # }  
 # /* impgen.c ends here */  
19302    
19303  EOF  ac_ext=c
19304      ;;  ac_cpp='$CPP $CPPFLAGS'
19305    esac  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19306    ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19307    ac_compiler_gnu=$ac_cv_c_compiler_gnu
19308    
19309    # We use sed instead of cat because bash on DJGPP gets confused if  CC="$lt_save_CC"
   # if finds mixed CR/LF and LF-only lines.  Since sed operates in  
   # text mode, it properly converts lines to CR/LF.  This bash problem  
   # is reportedly fixed, but why not run on old versions too?  
   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)  
19310    
19311    mv -f "${ofile}T" "$ofile" || \          ;;
19312      (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")  
19313    chmod +x "$ofile"        *)
19314  fi          { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19315    echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19316       { (exit 1); exit 1; }; }
19317            ;;
19318          esac
19319    
19320          # Append the new tag name to the list of available tags.
19321          if test -n "$tagname" ; then
19322          available_tags="$available_tags $tagname"
19323        fi
19324        fi
19325      done
19326      IFS="$lt_save_ifs"
19327    
19328      # Now substitute the updated list of available tags.
19329      if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19330        mv "${ofile}T" "$ofile"
19331        chmod +x "$ofile"
19332      else
19333        rm -f "${ofile}T"
19334        { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19335    echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19336       { (exit 1); exit 1; }; }
19337      fi
19338    fi
19339    
19340    
19341    
# Line 8680  LIBTOOL='$(SHELL) $(top_builddir)/libtoo Line 19349  LIBTOOL='$(SHELL) $(top_builddir)/libtoo
19349    
19350    
19351    
19352    
19353    
19354    
19355    
19356    
19357    
19358    
19359    
19360    
19361    
19362    
19363    
19364    
19365    
19366    
19367    
19368    
19369    
19370  # Find a good install program.  We prefer a C program (faster),  # Find a good install program.  We prefer a C program (faster),
19371  # so one script is as good as another.  But avoid the broken or  # so one script is as good as another.  But avoid the broken or
19372  # incompatible versions:  # incompatible versions:
# Line 8760  test -z "$INSTALL_SCRIPT" && INSTALL_SCR Line 19447  test -z "$INSTALL_SCRIPT" && INSTALL_SCR
19447  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19448    
19449    
 if test -n "$ac_tool_prefix"; then  
   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.  
 set dummy ${ac_tool_prefix}ranlib; ac_word=$2  
 echo "$as_me:$LINENO: checking for $ac_word" >&5  
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  
 if test "${ac_cv_prog_RANLIB+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   if test -n "$RANLIB"; then  
   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.  
 else  
 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in $PATH  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
   for ac_exec_ext in '' $ac_executable_extensions; do  
   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then  
     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"  
     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5  
     break 2  
   fi  
 done  
 done  
   
 fi  
 fi  
 RANLIB=$ac_cv_prog_RANLIB  
 if test -n "$RANLIB"; then  
   echo "$as_me:$LINENO: result: $RANLIB" >&5  
 echo "${ECHO_T}$RANLIB" >&6  
 else  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
 fi  
   
 fi  
 if test -z "$ac_cv_prog_RANLIB"; then  
   ac_ct_RANLIB=$RANLIB  
   # Extract the first word of "ranlib", so it can be a program name with args.  
 set dummy ranlib; ac_word=$2  
 echo "$as_me:$LINENO: checking for $ac_word" >&5  
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6  
 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then  
   echo $ECHO_N "(cached) $ECHO_C" >&6  
 else  
   if test -n "$ac_ct_RANLIB"; then  
   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.  
 else  
 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR  
 for as_dir in $PATH  
 do  
   IFS=$as_save_IFS  
   test -z "$as_dir" && as_dir=.  
   for ac_exec_ext in '' $ac_executable_extensions; do  
   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then  
     ac_cv_prog_ac_ct_RANLIB="ranlib"  
     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5  
     break 2  
   fi  
 done  
 done  
   
   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"  
 fi  
 fi  
 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB  
 if test -n "$ac_ct_RANLIB"; then  
   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5  
 echo "${ECHO_T}$ac_ct_RANLIB" >&6  
 else  
   echo "$as_me:$LINENO: result: no" >&5  
 echo "${ECHO_T}no" >&6  
 fi  
   
   RANLIB=$ac_ct_RANLIB  
 else  
   RANLIB="$ac_cv_prog_RANLIB"  
 fi  
   
19450    
19451    
19452  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5  echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
# Line 8908  fi Line 19515  fi
19515    
19516    
19517  missing_dir=`cd $ac_aux_dir && pwd`  missing_dir=`cd $ac_aux_dir && pwd`
19518  echo "$as_me:$LINENO: checking for working aclocal" >&5  
19519  echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6  ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
19520  # Run test in a subshell; some versions of sh will print an error if  
19521  # an executable is not found, even if stderr is redirected.  
19522  # Redirect stdin to placate older versions of autoconf.  Sigh.  AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19523  if (aclocal --version) < /dev/null > /dev/null 2>&1; then  
19524     ACLOCAL=aclocal  
19525     echo "$as_me:$LINENO: result: found" >&5  AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
19526  echo "${ECHO_T}found" >&6  
19527  else  
19528     ACLOCAL="$missing_dir/missing aclocal"  AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19529     echo "$as_me:$LINENO: result: missing" >&5  
19530  echo "${ECHO_T}missing" >&6  
19531  fi  MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19532    
 echo "$as_me:$LINENO: checking for working autoconf" >&5  
 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6  
 # Run test in a subshell; some versions of sh will print an error if  
 # an executable is not found, even if stderr is redirected.  
 # Redirect stdin to placate older versions of autoconf.  Sigh.  
 if (autoconf --version) < /dev/null > /dev/null 2>&1; then  
    AUTOCONF=autoconf  
    echo "$as_me:$LINENO: result: found" >&5  
 echo "${ECHO_T}found" >&6  
 else  
    AUTOCONF="$missing_dir/missing autoconf"  
    echo "$as_me:$LINENO: result: missing" >&5  
 echo "${ECHO_T}missing" >&6  
 fi  
   
 echo "$as_me:$LINENO: checking for working automake" >&5  
 echo $ECHO_N "checking for working automake... $ECHO_C" >&6  
 # Run test in a subshell; some versions of sh will print an error if  
 # an executable is not found, even if stderr is redirected.  
 # Redirect stdin to placate older versions of autoconf.  Sigh.  
 if (automake --version) < /dev/null > /dev/null 2>&1; then  
    AUTOMAKE=automake  
    echo "$as_me:$LINENO: result: found" >&5  
 echo "${ECHO_T}found" >&6  
 else  
    AUTOMAKE="$missing_dir/missing automake"  
    echo "$as_me:$LINENO: result: missing" >&5  
 echo "${ECHO_T}missing" >&6  
 fi  
   
 echo "$as_me:$LINENO: checking for working autoheader" >&5  
 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6  
 # Run test in a subshell; some versions of sh will print an error if  
 # an executable is not found, even if stderr is redirected.  
 # Redirect stdin to placate older versions of autoconf.  Sigh.  
 if (autoheader --version) < /dev/null > /dev/null 2>&1; then  
    AUTOHEADER=autoheader  
    echo "$as_me:$LINENO: result: found" >&5  
 echo "${ECHO_T}found" >&6  
 else  
    AUTOHEADER="$missing_dir/missing autoheader"  
    echo "$as_me:$LINENO: result: missing" >&5  
 echo "${ECHO_T}missing" >&6  
 fi  
   
 echo "$as_me:$LINENO: checking for working makeinfo" >&5  
 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6  
 # Run test in a subshell; some versions of sh will print an error if  
 # an executable is not found, even if stderr is redirected.  
 # Redirect stdin to placate older versions of autoconf.  Sigh.  
 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then  
    MAKEINFO=makeinfo  
    echo "$as_me:$LINENO: result: found" >&5  
 echo "${ECHO_T}found" >&6  
 else  
    MAKEINFO="$missing_dir/missing makeinfo"  
    echo "$as_me:$LINENO: result: missing" >&5  
 echo "${ECHO_T}missing" >&6  
 fi  
19533    
19534    
19535    
# Line 8992  if test "${with_root+set}" = set; then Line 19540  if test "${with_root+set}" = set; then
19540  fi;  fi;
19541    
19542  ROOT_LIBRARY="${ROOTSYS}/lib"  ROOT_LIBRARY="${ROOTSYS}/lib"
19543  ROOT_LDFLAGS="${ROOT_LIBRARY}/libHist.so  ${ROOT_LIBRARY}/libMatrix.so  ${ROOT_LIBRARY}/libTree.so ${ROOT_LIBRARY}/libCore.so ${ROOT_LIBRARY}/libCint.so -ldl"  
19544    ROOT_LDFLAGS="                                                          \
19545    ${ROOT_LIBRARY}/libCint.so          ${ROOT_LIBRARY}/libCore.so          \
19546    ${ROOT_LIBRARY}/libMatrix.so        ${ROOT_LIBRARY}/libHist.so          \
19547    ${ROOT_LIBRARY}/libTree.so          ${ROOT_LIBRARY}/libGraf.so          \
19548    ${ROOT_LIBRARY}/libGraf3d.so        ${ROOT_LIBRARY}/libGpad.so          \
19549    ${ROOT_LIBRARY}/libGui.so           ${ROOT_LIBRARY}/libMinuit.so        \
19550    ${ROOT_LIBRARY}/libHistPainter.so   ${ROOT_LIBRARY}/libTreePlayer.so    \
19551    ${ROOT_LIBRARY}/libTreeViewer.so    ${ROOT_LIBRARY}/libProof.so         \
19552    ${ROOT_LIBRARY}/libProofGui.so      ${ROOT_LIBRARY}/libPhysics.so       \
19553    ${ROOT_LIBRARY}/libRint.so          ${ROOT_LIBRARY}/libHtml.so          \
19554    ${ROOT_LIBRARY}/libEG.so            ${ROOT_LIBRARY}/libGeom.so          \
19555    ${ROOT_LIBRARY}/libGeomPainter.so   ${ROOT_LIBRARY}/libVMC.so           \
19556    ${ROOT_LIBRARY}/libFumili.so        ${ROOT_LIBRARY}/libMLP.so           \
19557    ${ROOT_LIBRARY}/libGedOld.so        ${ROOT_LIBRARY}/libGed.so           \
19558    ${ROOT_LIBRARY}/libQuadp.so                 \
19559    ${ROOT_LIBRARY}/libGX11.so          ${ROOT_LIBRARY}/libGX11TTF.so       \
19560    ${ROOT_LIBRARY}/libX3d.so                  \
19561    ${ROOT_LIBRARY}/libASImage.so       \
19562    ${ROOT_LIBRARY}/libThread.so        \
19563     -ldl"
19564    
19565    
19566  ROOT_INCLUDES="-I${ROOTSYS}/include"  ROOT_INCLUDES="-I${ROOTSYS}/include"
19567    
# Line 9011  else Line 19580  else
19580  fi;  fi;
19581  if test "$gprof" != no  if test "$gprof" != no
19582  then  then
19583      CFLAGS="-pg $CFLAGS"      CXXFLAGS="-pg $CXXFLAGS"
19584      echo "$as_me:$LINENO: result: enabled" >&5      echo "$as_me:$LINENO: result: enabled" >&5
19585  echo "${ECHO_T}enabled" >&6  echo "${ECHO_T}enabled" >&6
19586  else  else
# Line 9195  fi Line 19764  fi
19764    
19765    
19766    
19767                                                                                                                                                                                                                    ac_config_files="$ac_config_files Makefile Doxyfile event/Makefile event/mcmd/Makefile event/tmtc/Makefile event/log/Makefile event/arrDump/Makefile event/tabDump/Makefile event/varDump/Makefile event/physics/Makefile event/physics/tracker/Makefile event/physics/anticounter/Makefile event/physics/calorimeter/Makefile event/physics/neutronDetector/Makefile techmodel/Makefile techmodel/forroutines/tracker/Makefile techmodel/forroutines/tracker/readraw/Makefile techmodel/forroutines/anticounter/Makefile techmodel/forroutines/calorimeter/Makefile techmodel/forroutines/Makefile techmodel/physics/Makefile"                                                                                                                                                                                                                                                                                                    ac_config_files="$ac_config_files Makefile Doxyfile event/Makefile event/mcmd/Makefile event/tmtc/Makefile event/log/Makefile event/arrDump/Makefile event/tabDump/Makefile event/varDump/Makefile event/tsbt/Makefile event/tsbb/Makefile event/endrun/Makefile event/physics/Makefile event/physics/tracker/Makefile event/physics/anticounter/Makefile event/physics/calorimeter/Makefile event/physics/neutronDetector/Makefile event/physics/trigger/Makefile event/physics/tof/Makefile event/physics/S4/Makefile techmodel/Makefile techmodel/forroutines/tracker/Makefile techmodel/forroutines/tracker/readraw/Makefile techmodel/forroutines/anticounter/Makefile techmodel/forroutines/calorimeter/Makefile techmodel/forroutines/tof/Makefile techmodel/forroutines/trigger/Makefile techmodel/forroutines/Makefile techmodel/physics/Makefile"
19768  cat >confcache <<\_ACEOF  cat >confcache <<\_ACEOF
19769  # This file is a shell script that caches the results of configure  # This file is a shell script that caches the results of configure
19770  # tests run on this system so they can be shared between configure  # tests run on this system so they can be shared between configure
# Line 9287  LIBOBJS=$ac_libobjs Line 19856  LIBOBJS=$ac_libobjs
19856  LTLIBOBJS=$ac_ltlibobjs  LTLIBOBJS=$ac_ltlibobjs
19857    
19858    
19859    if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19860      { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19861    Usually this means the macro was only invoked conditionally." >&5
19862    echo "$as_me: error: conditional \"AMDEP\" was never defined.
19863    Usually this means the macro was only invoked conditionally." >&2;}
19864       { (exit 1); exit 1; }; }
19865    fi
19866    if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19867      { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19868    Usually this means the macro was only invoked conditionally." >&5
19869    echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19870    Usually this means the macro was only invoked conditionally." >&2;}
19871       { (exit 1); exit 1; }; }
19872    fi
19873    if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19874      { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19875    Usually this means the macro was only invoked conditionally." >&5
19876    echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19877    Usually this means the macro was only invoked conditionally." >&2;}
19878       { (exit 1); exit 1; }; }
19879    fi
19880    
19881  : ${CONFIG_STATUS=./config.status}  : ${CONFIG_STATUS=./config.status}
19882  ac_clean_files_save=$ac_clean_files  ac_clean_files_save=$ac_clean_files
# Line 9720  cat >>$CONFIG_STATUS <<_ACEOF Line 20310  cat >>$CONFIG_STATUS <<_ACEOF
20310  # INIT-COMMANDS section.  # INIT-COMMANDS section.
20311  #  #
20312    
20313    AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20314    
20315  _ACEOF  _ACEOF
20316    
# Line 9740  do Line 20330  do
20330    "event/arrDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/arrDump/Makefile" ;;    "event/arrDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/arrDump/Makefile" ;;
20331    "event/tabDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/tabDump/Makefile" ;;    "event/tabDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/tabDump/Makefile" ;;
20332    "event/varDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/varDump/Makefile" ;;    "event/varDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/varDump/Makefile" ;;
20333      "event/tsbt/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/tsbt/Makefile" ;;
20334      "event/tsbb/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/tsbb/Makefile" ;;
20335      "event/endrun/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/endrun/Makefile" ;;
20336    "event/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/Makefile" ;;    "event/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/Makefile" ;;
20337    "event/physics/tracker/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/tracker/Makefile" ;;    "event/physics/tracker/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/tracker/Makefile" ;;
20338    "event/physics/anticounter/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/anticounter/Makefile" ;;    "event/physics/anticounter/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/anticounter/Makefile" ;;
20339    "event/physics/calorimeter/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/calorimeter/Makefile" ;;    "event/physics/calorimeter/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/calorimeter/Makefile" ;;
20340    "event/physics/neutronDetector/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/neutronDetector/Makefile" ;;    "event/physics/neutronDetector/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/neutronDetector/Makefile" ;;
20341      "event/physics/trigger/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/trigger/Makefile" ;;
20342      "event/physics/tof/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/tof/Makefile" ;;
20343      "event/physics/S4/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/S4/Makefile" ;;
20344    "techmodel/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/Makefile" ;;    "techmodel/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/Makefile" ;;
20345    "techmodel/forroutines/tracker/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/tracker/Makefile" ;;    "techmodel/forroutines/tracker/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/tracker/Makefile" ;;
20346    "techmodel/forroutines/tracker/readraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/tracker/readraw/Makefile" ;;    "techmodel/forroutines/tracker/readraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/tracker/readraw/Makefile" ;;
20347    "techmodel/forroutines/anticounter/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/anticounter/Makefile" ;;    "techmodel/forroutines/anticounter/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/anticounter/Makefile" ;;
20348    "techmodel/forroutines/calorimeter/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/calorimeter/Makefile" ;;    "techmodel/forroutines/calorimeter/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/calorimeter/Makefile" ;;
20349      "techmodel/forroutines/tof/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/tof/Makefile" ;;
20350      "techmodel/forroutines/trigger/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/trigger/Makefile" ;;
20351    "techmodel/forroutines/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/Makefile" ;;    "techmodel/forroutines/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/Makefile" ;;
20352    "techmodel/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/physics/Makefile" ;;    "techmodel/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/physics/Makefile" ;;
20353    "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;    "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20354    "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;    "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20355    *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5    *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20356  echo "$as_me: error: invalid argument: $ac_config_target" >&2;}  echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
# Line 9842  s,@LIBS@,$LIBS,;t t Line 20440  s,@LIBS@,$LIBS,;t t
20440  s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t  s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20441  s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t  s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20442  s,@INSTALL_DATA@,$INSTALL_DATA,;t t  s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20443    s,@CYGPATH_W@,$CYGPATH_W,;t t
20444  s,@PACKAGE@,$PACKAGE,;t t  s,@PACKAGE@,$PACKAGE,;t t
20445  s,@VERSION@,$VERSION,;t t  s,@VERSION@,$VERSION,;t t
20446  s,@ACLOCAL@,$ACLOCAL,;t t  s,@ACLOCAL@,$ACLOCAL,;t t
# Line 9849  s,@AUTOCONF@,$AUTOCONF,;t t Line 20448  s,@AUTOCONF@,$AUTOCONF,;t t
20448  s,@AUTOMAKE@,$AUTOMAKE,;t t  s,@AUTOMAKE@,$AUTOMAKE,;t t
20449  s,@AUTOHEADER@,$AUTOHEADER,;t t  s,@AUTOHEADER@,$AUTOHEADER,;t t
20450  s,@MAKEINFO@,$MAKEINFO,;t t  s,@MAKEINFO@,$MAKEINFO,;t t
20451    s,@AMTAR@,$AMTAR,;t t
20452    s,@install_sh@,$install_sh,;t t
20453    s,@STRIP@,$STRIP,;t t
20454    s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20455    s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20456    s,@mkdir_p@,$mkdir_p,;t t
20457    s,@AWK@,$AWK,;t t
20458  s,@SET_MAKE@,$SET_MAKE,;t t  s,@SET_MAKE@,$SET_MAKE,;t t
20459    s,@am__leading_dot@,$am__leading_dot,;t t
20460  s,@build@,$build,;t t  s,@build@,$build,;t t
20461  s,@build_cpu@,$build_cpu,;t t  s,@build_cpu@,$build_cpu,;t t
20462  s,@build_vendor@,$build_vendor,;t t  s,@build_vendor@,$build_vendor,;t t
# Line 9865  s,@CPPFLAGS@,$CPPFLAGS,;t t Line 20472  s,@CPPFLAGS@,$CPPFLAGS,;t t
20472  s,@ac_ct_CC@,$ac_ct_CC,;t t  s,@ac_ct_CC@,$ac_ct_CC,;t t
20473  s,@EXEEXT@,$EXEEXT,;t t  s,@EXEEXT@,$EXEEXT,;t t
20474  s,@OBJEXT@,$OBJEXT,;t t  s,@OBJEXT@,$OBJEXT,;t t
20475    s,@DEPDIR@,$DEPDIR,;t t
20476    s,@am__include@,$am__include,;t t
20477    s,@am__quote@,$am__quote,;t t
20478    s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20479    s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20480    s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20481    s,@CCDEPMODE@,$CCDEPMODE,;t t
20482    s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20483    s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20484  s,@F77@,$F77,;t t  s,@F77@,$F77,;t t
20485  s,@FFLAGS@,$FFLAGS,;t t  s,@FFLAGS@,$FFLAGS,;t t
20486  s,@ac_ct_F77@,$ac_ct_F77,;t t  s,@ac_ct_F77@,$ac_ct_F77,;t t
# Line 9872  s,@FLIBS@,$FLIBS,;t t Line 20488  s,@FLIBS@,$FLIBS,;t t
20488  s,@CXX@,$CXX,;t t  s,@CXX@,$CXX,;t t
20489  s,@CXXFLAGS@,$CXXFLAGS,;t t  s,@CXXFLAGS@,$CXXFLAGS,;t t
20490  s,@ac_ct_CXX@,$ac_ct_CXX,;t t  s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20491    s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20492    s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20493    s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20494    s,@EGREP@,$EGREP,;t t
20495  s,@LN_S@,$LN_S,;t t  s,@LN_S@,$LN_S,;t t
20496  s,@ECHO@,$ECHO,;t t  s,@ECHO@,$ECHO,;t t
20497    s,@AR@,$AR,;t t
20498    s,@ac_ct_AR@,$ac_ct_AR,;t t
20499  s,@RANLIB@,$RANLIB,;t t  s,@RANLIB@,$RANLIB,;t t
20500  s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t  s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 s,@STRIP@,$STRIP,;t t  
 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t  
20501  s,@CPP@,$CPP,;t t  s,@CPP@,$CPP,;t t
20502  s,@EGREP@,$EGREP,;t t  s,@CXXCPP@,$CXXCPP,;t t
20503  s,@LIBTOOL@,$LIBTOOL,;t t  s,@LIBTOOL@,$LIBTOOL,;t t
20504  s,@HAS_DOXYFILE@,$HAS_DOXYFILE,;t t  s,@HAS_DOXYFILE@,$HAS_DOXYFILE,;t t
20505  s,@ROOT_INCLUDES@,$ROOT_INCLUDES,;t t  s,@ROOT_INCLUDES@,$ROOT_INCLUDES,;t t
# Line 10346  echo "$as_me: error: cannot create direc Line 20966  echo "$as_me: error: cannot create direc
20966      cat $tmp/config.h      cat $tmp/config.h
20967      rm -f $tmp/config.h      rm -f $tmp/config.h
20968    fi    fi
20969    # Compute $ac_file's index in $config_headers.
20970    _am_stamp_count=1
20971    for _am_header in $config_headers :; do
20972      case $_am_header in
20973        $ac_file | $ac_file:* )
20974          break ;;
20975        * )
20976          _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20977      esac
20978    done
20979    echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20980    $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20981             X$ac_file : 'X\(//\)[^/]' \| \
20982             X$ac_file : 'X\(//\)$' \| \
20983             X$ac_file : 'X\(/\)' \| \
20984             .     : '\(.\)' 2>/dev/null ||
20985    echo X$ac_file |
20986        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20987              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20988              /^X\(\/\/\)$/{ s//\1/; q; }
20989              /^X\(\/\).*/{ s//\1/; q; }
20990              s/.*/./; q'`/stamp-h$_am_stamp_count
20991  done  done
20992  _ACEOF  _ACEOF
20993  cat >>$CONFIG_STATUS <<\_ACEOF  cat >>$CONFIG_STATUS <<\_ACEOF
# Line 10462  esac Line 21104  esac
21104    { echo "$as_me:$LINENO: executing $ac_dest commands" >&5    { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21105  echo "$as_me: executing $ac_dest commands" >&6;}  echo "$as_me: executing $ac_dest commands" >&6;}
21106    case $ac_dest in    case $ac_dest in
21107      default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;      depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21108      # Strip MF so we end up with the name of the file.
21109      mf=`echo "$mf" | sed -e 's/:.*$//'`
21110      # Check whether this is an Automake generated Makefile or not.
21111      # We used to match only the files named `Makefile.in', but
21112      # some people rename them; so instead we look at the file content.
21113      # Grep'ing the first line is not enough: some people post-process
21114      # each Makefile.in and add a new line on top of each file to say so.
21115      # So let's grep whole file.
21116      if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21117        dirpart=`(dirname "$mf") 2>/dev/null ||
21118    $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21119             X"$mf" : 'X\(//\)[^/]' \| \
21120             X"$mf" : 'X\(//\)$' \| \
21121             X"$mf" : 'X\(/\)' \| \
21122             .     : '\(.\)' 2>/dev/null ||
21123    echo X"$mf" |
21124        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21125              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21126              /^X\(\/\/\)$/{ s//\1/; q; }
21127              /^X\(\/\).*/{ s//\1/; q; }
21128              s/.*/./; q'`
21129      else
21130        continue
21131      fi
21132      grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21133      # Extract the definition of DEP_FILES from the Makefile without
21134      # running `make'.
21135      DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21136      test -z "$DEPDIR" && continue
21137      # When using ansi2knr, U may be empty or an underscore; expand it
21138      U=`sed -n 's/^U = //p' < "$mf"`
21139      test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21140      # We invoke sed twice because it is the simplest approach to
21141      # changing $(DEPDIR) to its actual value in the expansion.
21142      for file in `sed -n '
21143        /^DEP_FILES = .*\\\\$/ {
21144          s/^DEP_FILES = //
21145          :loop
21146            s/\\\\$//
21147            p
21148            n
21149            /\\\\$/ b loop
21150          p
21151        }
21152        /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21153           sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21154        # Make sure the directory exists.
21155        test -f "$dirpart/$file" && continue
21156        fdir=`(dirname "$file") 2>/dev/null ||
21157    $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21158             X"$file" : 'X\(//\)[^/]' \| \
21159             X"$file" : 'X\(//\)$' \| \
21160             X"$file" : 'X\(/\)' \| \
21161             .     : '\(.\)' 2>/dev/null ||
21162    echo X"$file" |
21163        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21164              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21165              /^X\(\/\/\)$/{ s//\1/; q; }
21166              /^X\(\/\).*/{ s//\1/; q; }
21167              s/.*/./; q'`
21168        { if $as_mkdir_p; then
21169        mkdir -p $dirpart/$fdir
21170      else
21171        as_dir=$dirpart/$fdir
21172        as_dirs=
21173        while test ! -d "$as_dir"; do
21174          as_dirs="$as_dir $as_dirs"
21175          as_dir=`(dirname "$as_dir") 2>/dev/null ||
21176    $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21177             X"$as_dir" : 'X\(//\)[^/]' \| \
21178             X"$as_dir" : 'X\(//\)$' \| \
21179             X"$as_dir" : 'X\(/\)' \| \
21180             .     : '\(.\)' 2>/dev/null ||
21181    echo X"$as_dir" |
21182        sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21183              /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21184              /^X\(\/\/\)$/{ s//\1/; q; }
21185              /^X\(\/\).*/{ s//\1/; q; }
21186              s/.*/./; q'`
21187        done
21188        test ! -n "$as_dirs" || mkdir $as_dirs
21189      fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21190    echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21191       { (exit 1); exit 1; }; }; }
21192    
21193        # echo "creating $dirpart/$file"
21194        echo '# dummy' > "$dirpart/$file"
21195      done
21196    done
21197     ;;
21198    esac    esac
21199  done  done
21200  _ACEOF  _ACEOF

Legend:
Removed from v.2.0  
changed lines
  Added in v.4.2

  ViewVC Help
Powered by ViewVC 1.1.23