Changeset 191


Ignore:
Timestamp:
Jul 5, 2009 11:46:32 AM (11 years ago)
Author:
pbelotti
Message:

fixed some zero down/up estimate setting. A little speedup in CouenneProblem::tightenBounds(). Added specific check for stdint.h in configure.ac. added libbonbranching as explicit dependence.

Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/Couenne/configure

    r93 r191  
    473473#endif"
    474474
    475 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 build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS THIRDPARTYSRCDIR THIRDPARTYOBJDIR THIRDPARTYDOCDIR COIN_HAS_THIRDPARTY_TRUE COIN_HAS_THIRDPARTY_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE CLPSRCDIR CLPOBJDIR CLPDOCDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE BONMINSRCDIR BONMINOBJDIR BONMINDOCDIR COIN_HAS_BONMIN_TRUE COIN_HAS_BONMIN_FALSE IPOPTSRCDIR IPOPTOBJDIR IPOPTDOCDIR COIN_HAS_IPOPT_TRUE COIN_HAS_IPOPT_FALSE CBCSRCDIR CBCOBJDIR CBCDOCDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE OSISRCDIR OSIOBJDIR OSIDOCDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE CGLSRCDIR CGLOBJDIR CGLDOCDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE COUENNESRCDIR COUENNEOBJDIR COUENNEDOCDIR COIN_HAS_COUENNE_TRUE COIN_HAS_COUENNE_FALSE ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
     475ac_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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CXXCPP EGREP build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS ac_ct_CC MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS MPICXX INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS THIRDPARTYSRCDIR THIRDPARTYOBJDIR THIRDPARTYDOCDIR COIN_HAS_THIRDPARTY_TRUE COIN_HAS_THIRDPARTY_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE CLPSRCDIR CLPOBJDIR CLPDOCDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE BONMINSRCDIR BONMINOBJDIR BONMINDOCDIR COIN_HAS_BONMIN_TRUE COIN_HAS_BONMIN_FALSE IPOPTSRCDIR IPOPTOBJDIR IPOPTDOCDIR COIN_HAS_IPOPT_TRUE COIN_HAS_IPOPT_FALSE CBCSRCDIR CBCOBJDIR CBCDOCDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE OSISRCDIR OSIOBJDIR OSIDOCDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE CGLSRCDIR CGLOBJDIR CGLDOCDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE COUENNESRCDIR COUENNEOBJDIR COUENNEDOCDIR COIN_HAS_COUENNE_TRUE COIN_HAS_COUENNE_FALSE ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    914914ac_cv_env_target_alias_set=${target_alias+set}
    915915ac_cv_env_target_alias_value=$target_alias
     916ac_env_CXX_set=${CXX+set}
     917ac_env_CXX_value=$CXX
     918ac_cv_env_CXX_set=${CXX+set}
     919ac_cv_env_CXX_value=$CXX
     920ac_env_CXXFLAGS_set=${CXXFLAGS+set}
     921ac_env_CXXFLAGS_value=$CXXFLAGS
     922ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
     923ac_cv_env_CXXFLAGS_value=$CXXFLAGS
     924ac_env_LDFLAGS_set=${LDFLAGS+set}
     925ac_env_LDFLAGS_value=$LDFLAGS
     926ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
     927ac_cv_env_LDFLAGS_value=$LDFLAGS
     928ac_env_CPPFLAGS_set=${CPPFLAGS+set}
     929ac_env_CPPFLAGS_value=$CPPFLAGS
     930ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
     931ac_cv_env_CPPFLAGS_value=$CPPFLAGS
     932ac_env_CXXCPP_set=${CXXCPP+set}
     933ac_env_CXXCPP_value=$CXXCPP
     934ac_cv_env_CXXCPP_set=${CXXCPP+set}
     935ac_cv_env_CXXCPP_value=$CXXCPP
    916936ac_env_CDEFS_set=${CDEFS+set}
    917937ac_env_CDEFS_value=$CDEFS
     
    938958ac_cv_env_CFLAGS_set=${CFLAGS+set}
    939959ac_cv_env_CFLAGS_value=$CFLAGS
    940 ac_env_LDFLAGS_set=${LDFLAGS+set}
    941 ac_env_LDFLAGS_value=$LDFLAGS
    942 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    943 ac_cv_env_LDFLAGS_value=$LDFLAGS
    944 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    945 ac_env_CPPFLAGS_value=$CPPFLAGS
    946 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    947 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    948960ac_env_MPICC_set=${MPICC+set}
    949961ac_env_MPICC_value=$MPICC
     
    966978ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
    967979ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
    968 ac_env_CXX_set=${CXX+set}
    969 ac_env_CXX_value=$CXX
    970 ac_cv_env_CXX_set=${CXX+set}
    971 ac_cv_env_CXX_value=$CXX
    972 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
    973 ac_env_CXXFLAGS_value=$CXXFLAGS
    974 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
    975 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
    976980ac_env_MPICXX_set=${MPICXX+set}
    977981ac_env_MPICXX_value=$MPICXX
     
    982986ac_cv_env_CPP_set=${CPP+set}
    983987ac_cv_env_CPP_value=$CPP
    984 ac_env_CXXCPP_set=${CXXCPP+set}
    985 ac_env_CXXCPP_value=$CXXCPP
    986 ac_cv_env_CXXCPP_set=${CXXCPP+set}
    987 ac_cv_env_CXXCPP_value=$CXXCPP
    988988ac_env_F77_set=${F77+set}
    989989ac_env_F77_value=$F77
     
    11151115
    11161116Some influential environment variables:
     1117  CXX         C++ compiler command
     1118  CXXFLAGS    C++ compiler flags
     1119  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     1120              nonstandard directory <lib dir>
     1121  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     1122              headers in a nonstandard directory <include dir>
     1123  CXXCPP      C++ preprocessor
    11171124  CDEFS       Additional -D flags to be used when compiling C code.
    11181125  ADD_CFLAGS  Additional C compiler options
     
    11211128  CC          C compiler command
    11221129  CFLAGS      C compiler flags
    1123   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    1124               nonstandard directory <lib dir>
    1125   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    1126               headers in a nonstandard directory <include dir>
    11271130  MPICC       C MPI Compiler
    11281131  CXXDEFS     Additional -D flags to be used when compiling C++ code.
     
    11331136  OPT_CXXFLAGS
    11341137              Optimize C++ compiler options
    1135   CXX         C++ compiler command
    1136   CXXFLAGS    C++ compiler flags
    11371138  MPICXX      C++ MPI Compiler
    11381139  CPP         C preprocessor
    1139   CXXCPP      C++ preprocessor
    11401140  F77         Fortran 77 compiler command
    11411141  FFLAGS      Fortran 77 compiler flags
     
    16091609
    16101610
    1611 #############################################################################
    1612 #                         Standard build tool stuff                         #
    1613 #############################################################################
    1614 
    1615 # Get the system type
    1616 ac_aux_dir=
    1617 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
    1618   if test -f $ac_dir/install-sh; then
    1619     ac_aux_dir=$ac_dir
    1620     ac_install_sh="$ac_aux_dir/install-sh -c"
    1621     break
    1622   elif test -f $ac_dir/install.sh; then
    1623     ac_aux_dir=$ac_dir
    1624     ac_install_sh="$ac_aux_dir/install.sh -c"
    1625     break
    1626   elif test -f $ac_dir/shtool; then
    1627     ac_aux_dir=$ac_dir
    1628     ac_install_sh="$ac_aux_dir/shtool install -c"
    1629     break
    1630   fi
    1631 done
    1632 if test -z "$ac_aux_dir"; then
    1633   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    1634 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
    1635    { (exit 1); exit 1; }; }
    1636 fi
    1637 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
    1638 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
    1639 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    1640 
    1641 # Make sure we can run config.sub.
    1642 $ac_config_sub sun4 >/dev/null 2>&1 ||
    1643   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
    1644 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
    1645    { (exit 1); exit 1; }; }
    1646 
    1647 echo "$as_me:$LINENO: checking build system type" >&5
    1648 echo $ECHO_N "checking build system type... $ECHO_C" >&6
    1649 if test "${ac_cv_build+set}" = set; then
    1650   echo $ECHO_N "(cached) $ECHO_C" >&6
    1651 else
    1652   ac_cv_build_alias=$build_alias
    1653 test -z "$ac_cv_build_alias" &&
    1654   ac_cv_build_alias=`$ac_config_guess`
    1655 test -z "$ac_cv_build_alias" &&
    1656   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
    1657 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
    1658    { (exit 1); exit 1; }; }
    1659 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
    1660   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
    1661 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
    1662    { (exit 1); exit 1; }; }
    1663 
    1664 fi
    1665 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
    1666 echo "${ECHO_T}$ac_cv_build" >&6
    1667 build=$ac_cv_build
    1668 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    1669 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    1670 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    1671 
    1672 
    1673 
    1674 # Initialization specifically for project main directories
    1675 # Initialize the ADDLIBS variable
    1676 ADDLIBS="-lm $LIBS"
    1677 
    1678 
    1679 # Initialize the FADDLIBS variable (which is to be used with a fortran
    1680 # compiler and will not include FLIBS)
    1681 FADDLIBS="$LIBS"
    1682 
    1683 
    1684 # A useful makefile conditional that is always false
    1685 
    1686 
    1687 if false; then
    1688   ALWAYS_FALSE_TRUE=
    1689   ALWAYS_FALSE_FALSE='#'
    1690 else
    1691   ALWAYS_FALSE_TRUE='#'
    1692   ALWAYS_FALSE_FALSE=
    1693 fi
    1694 
    1695 
    1696 # We set the following variable so that we know later in AC_COIN_FINALIZE
    1697 # that we are in a project main directory
    1698 coin_projectdir=yes
    1699 
    1700 
    1701 # Check if user wants to produce debugging code
    1702 
    1703 echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
    1704 echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
    1705 
    1706 # Check whether --enable-debug or --disable-debug was given.
    1707 if test "${enable_debug+set}" = set; then
    1708   enableval="$enable_debug"
    1709   case "${enableval}" in
    1710    yes) coin_debug_compile=true
    1711         if test "${enable_shared+set}" = set; then :; else
    1712           enable_shared=no
    1713         fi
    1714         ;;
    1715    no)  coin_debug_compile=false
    1716         ;;
    1717    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
    1718 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
    1719    { (exit 1); exit 1; }; }
    1720         ;;
    1721 esac
    1722 else
    1723   coin_debug_compile=false
    1724 fi;
    1725 
    1726 # Check whether --enable-debug-couenne or --disable-debug-couenne was given.
    1727 if test "${enable_debug_couenne+set}" = set; then
    1728   enableval="$enable_debug_couenne"
    1729   case "${enableval}" in
    1730     yes) coin_debug_compile=true
    1731          enable_shared=no
    1732          ;;
    1733     no)  coin_debug_compile=false
    1734          ;;
    1735     *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-couenne" >&5
    1736 echo "$as_me: error: bad value ${enableval} for --enable-debug-couenne" >&2;}
    1737    { (exit 1); exit 1; }; }
    1738          ;;
    1739  esac
    1740 else
    1741   :
    1742 fi;
    1743 
    1744  # m4_ifvaln([Couenne],
    1745 
    1746 if test $coin_debug_compile = true; then
    1747   echo "$as_me:$LINENO: result: yes" >&5
    1748 echo "${ECHO_T}yes" >&6
    1749 else
    1750   echo "$as_me:$LINENO: result: no" >&5
    1751 echo "${ECHO_T}no" >&6
    1752 fi
    1753 
    1754 
    1755 # Check whether --with-couenne-verbosity or --without-couenne-verbosity was given.
    1756 if test "${with_couenne_verbosity+set}" = set; then
    1757   withval="$with_couenne_verbosity"
    1758   if test "$withval" = yes; then
    1759                 withval=1
    1760               fi
    1761               coin_couenne_verbosity=$withval
    1762 else
    1763   coin_couenne_verbosity=0
    1764 fi;
    1765 
    1766 cat >>confdefs.h <<_ACEOF
    1767 #define COIN_COUENNE_VERBOSITY $coin_couenne_verbosity
    1768 _ACEOF
    1769 
    1770 
    1771 
    1772 # Check whether --with-couenne-checklevel or --without-couenne-checklevel was given.
    1773 if test "${with_couenne_checklevel+set}" = set; then
    1774   withval="$with_couenne_checklevel"
    1775   if test "$withval" = yes; then
    1776                 withval=1
    1777               fi
    1778               coin_couenne_checklevel=$withval
    1779 else
    1780   coin_couenne_checklevel=0
    1781 fi;
    1782 
    1783 cat >>confdefs.h <<_ACEOF
    1784 #define COIN_COUENNE_CHECKLEVEL $coin_couenne_checklevel
    1785 _ACEOF
    1786 
    1787 
    1788 # We use the following variable to have a string with the upper case
    1789 # version of the project name
    1790 COIN_PRJCT=COUENNE
    1791 
    1792 
    1793  # m4_ifvaln([Couenne],
    1794 
    1795 
    1796 
    1797 # Get the name of the C++ compiler and appropriate compiler options
    1798 case $build in
    1799   *-mingw*)
    1800     if test "${LD+set}" = set; then :; else
    1801       LD=link
    1802     fi
    1803     ;;
    1804  esac
    1805  case $enable_doscompile in
    1806    msvc)
    1807      if test "x${LD+set}" = xset; then :; else
    1808        LD=link
    1809      fi
    1810      ;;
    1811  esac
    1812 
    1813 
    1814  # Check whether --enable-doscompile or --disable-doscompile was given.
    1815 if test "${enable_doscompile+set}" = set; then
    1816   enableval="$enable_doscompile"
    1817   if test "$enable_doscompile" != no; then
    1818      case $build in
    1819        *-cygwin* | *-mingw*) ;;
    1820        *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
    1821 echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
    1822    { (exit 1); exit 1; }; } ;;
    1823      esac
    1824    fi
    1825 else
    1826   enable_doscompile=no
    1827 fi;
    1828  case "$enable_doscompile" in
    1829    mingw)
    1830      case $build in
    1831        *-mingw*) enable_doscompile=no ;;
    1832      esac
    1833      ;;
    1834    msvc|no) ;;
    1835    yes) enable_doscompile=mingw ;;
    1836    *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
    1837                     Try configure --help=recursive." >&5
    1838 echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
    1839                     Try configure --help=recursive." >&2;}
    1840    { (exit 1); exit 1; }; }
    1841       ;;
    1842   esac
    1843   if test "$enable_doscompile" != no ; then
    1844     { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
    1845 echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
    1846   fi
    1847 
    1848 
    1849 
    1850 
    1851 ac_ext=c
    1852 ac_cpp='$CPP $CPPFLAGS'
    1853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1856 
    1857 
    1858 # For consistency, we set the C compiler to the same value of the C++
    1859 # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
    1860 if test x"$CXX" != x; then
    1861   case "$CXX" in
    1862     cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    1863       if test x"$CC" = x; then
    1864         CC="$CXX"
    1865         { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
    1866 echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
    1867       fi
    1868       ;;
    1869   esac
    1870 fi
    1871 
    1872 
    1873 
    1874 
    1875 
    1876 
    1877 coin_has_cc=yes
    1878 
    1879 save_cflags="$CFLAGS"
    1880 
    1881 # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
    1882 # Depending on the user's PATH, when Studio/Workshop cc is not present we may
    1883 # find /usr/ucb/cc, which is almost certainly not a good choice for the C
    1884 # compiler. In this case, put cc after gcc.
    1885 
    1886 case $build in
    1887   *-cygwin* | *-mingw*)
    1888              if test "$enable_doscompile" = msvc ; then
    1889                comps="icl cl"
    1890              else
    1891                comps="gcc cl"
    1892              fi ;;
    1893   *-*-solaris*)
    1894              # Extract the first word of "cc", so it can be a program name with args.
    1895 set dummy cc; ac_word=$2
     1611# for readnl.cpp
     1612ac_ext=cc
     1613ac_cpp='$CXXCPP $CPPFLAGS'
     1614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     1617if test -n "$ac_tool_prefix"; then
     1618  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     1619  do
     1620    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     1621set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    18961622echo "$as_me:$LINENO: checking for $ac_word" >&5
    18971623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1898 if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
     1624if test "${ac_cv_prog_CXX+set}" = set; then
    18991625  echo $ECHO_N "(cached) $ECHO_C" >&6
    19001626else
    1901   if test -n "$sol_cc_compiler"; then
    1902   ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
    1903 else
    1904   ac_prog_rejected=no
     1627  if test -n "$CXX"; then
     1628  ac_cv_prog_CXX="$CXX" # Let the user override the test.
     1629else
    19051630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    19061631for as_dir in $PATH
     
    19101635  for ac_exec_ext in '' $ac_executable_extensions; do
    19111636  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1912     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    1913        ac_prog_rejected=yes
    1914        continue
    1915      fi
    1916     ac_cv_prog_sol_cc_compiler="cc"
     1637    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
    19171638    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    19181639    break 2
     
    19211642done
    19221643
    1923 if test $ac_prog_rejected = yes; then
    1924   # We found a bogon in the path, so make sure we never use it.
    1925   set dummy $ac_cv_prog_sol_cc_compiler
    1926   shift
    1927   if test $# != 0; then
    1928     # We chose a different compiler from the bogus one.
    1929     # However, it has the same basename, so the bogon will be chosen
    1930     # first if we set sol_cc_compiler to just the basename; use the full file name.
    1931     shift
    1932     ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
    1933   fi
    1934 fi
    1935 fi
    1936 fi
    1937 sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
    1938 if test -n "$sol_cc_compiler"; then
    1939   echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
    1940 echo "${ECHO_T}$sol_cc_compiler" >&6
     1644fi
     1645fi
     1646CXX=$ac_cv_prog_CXX
     1647if test -n "$CXX"; then
     1648  echo "$as_me:$LINENO: result: $CXX" >&5
     1649echo "${ECHO_T}$CXX" >&6
    19411650else
    19421651  echo "$as_me:$LINENO: result: no" >&5
     
    19441653fi
    19451654
    1946              if test "$sol_cc_compiler" = "cc" ; then
    1947                comps="cc xlc gcc pgcc icc"
    1948              else
    1949                comps="xlc gcc pgcc icc cc"
    1950              fi
    1951              ;;
    1952   *-linux-*) comps="xlc gcc cc pgcc icc" ;;
    1953   *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
    1954 esac
    1955 
    1956 # We delete the cached value, since the test might not have been
    1957 # performed with our choice of compilers earlier
    1958 $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
    1959 # AC_MSG_NOTICE([C compiler candidates: $comps])
    1960 ac_ext=c
    1961 ac_cpp='$CPP $CPPFLAGS'
    1962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    1965 if test -n "$ac_tool_prefix"; then
    1966   for ac_prog in $comps
    1967   do
    1968     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    1969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     1655    test -n "$CXX" && break
     1656  done
     1657fi
     1658if test -z "$CXX"; then
     1659  ac_ct_CXX=$CXX
     1660  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
     1661do
     1662  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1663set dummy $ac_prog; ac_word=$2
    19701664echo "$as_me:$LINENO: checking for $ac_word" >&5
    19711665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1972 if test "${ac_cv_prog_CC+set}" = set; then
     1666if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
    19731667  echo $ECHO_N "(cached) $ECHO_C" >&6
    19741668else
    1975   if test -n "$CC"; then
    1976   ac_cv_prog_CC="$CC" # Let the user override the test.
     1669  if test -n "$ac_ct_CXX"; then
     1670  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
    19771671else
    19781672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    19831677  for ac_exec_ext in '' $ac_executable_extensions; do
    19841678  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1985     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     1679    ac_cv_prog_ac_ct_CXX="$ac_prog"
    19861680    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    19871681    break 2
     
    19921686fi
    19931687fi
    1994 CC=$ac_cv_prog_CC
    1995 if test -n "$CC"; then
    1996   echo "$as_me:$LINENO: result: $CC" >&5
    1997 echo "${ECHO_T}$CC" >&6
     1688ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
     1689if test -n "$ac_ct_CXX"; then
     1690  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
     1691echo "${ECHO_T}$ac_ct_CXX" >&6
    19981692else
    19991693  echo "$as_me:$LINENO: result: no" >&5
     
    20011695fi
    20021696
    2003     test -n "$CC" && break
    2004   done
    2005 fi
    2006 if test -z "$CC"; then
    2007   ac_ct_CC=$CC
    2008   for ac_prog in $comps
    2009 do
    2010   # Extract the first word of "$ac_prog", so it can be a program name with args.
    2011 set dummy $ac_prog; ac_word=$2
    2012 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2014 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    2015   echo $ECHO_N "(cached) $ECHO_C" >&6
    2016 else
    2017   if test -n "$ac_ct_CC"; then
    2018   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    2019 else
    2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2021 for as_dir in $PATH
    2022 do
    2023   IFS=$as_save_IFS
    2024   test -z "$as_dir" && as_dir=.
    2025   for ac_exec_ext in '' $ac_executable_extensions; do
    2026   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2027     ac_cv_prog_ac_ct_CC="$ac_prog"
    2028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2029     break 2
    2030   fi
     1697  test -n "$ac_ct_CXX" && break
    20311698done
    2032 done
    2033 
    2034 fi
    2035 fi
    2036 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    2037 if test -n "$ac_ct_CC"; then
    2038   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    2039 echo "${ECHO_T}$ac_ct_CC" >&6
    2040 else
    2041   echo "$as_me:$LINENO: result: no" >&5
    2042 echo "${ECHO_T}no" >&6
    2043 fi
    2044 
    2045   test -n "$ac_ct_CC" && break
    2046 done
    2047 
    2048   CC=$ac_ct_CC
    2049 fi
    2050 
    2051 
    2052 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
    2053 See \`config.log' for more details." >&5
    2054 echo "$as_me: error: no acceptable C compiler found in \$PATH
    2055 See \`config.log' for more details." >&2;}
    2056    { (exit 1); exit 1; }; }
     1699test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
     1700
     1701  CXX=$ac_ct_CXX
     1702fi
     1703
    20571704
    20581705# Provide some information about the compiler.
    20591706echo "$as_me:$LINENO:" \
    2060      "checking for C compiler version" >&5
     1707     "checking for C++ compiler version" >&5
    20611708ac_compiler=`set X $ac_compile; echo $2`
    20621709{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     
    20961743# It will help us diagnose broken compilers, and finding out an intuition
    20971744# of exeext.
    2098 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
    2099 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
     1745echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
     1746echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
    21001747ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    21011748if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
     
    21401787sed 's/^/| /' conftest.$ac_ext >&5
    21411788
    2142 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
     1789{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
    21431790See \`config.log' for more details." >&5
    2144 echo "$as_me: error: C compiler cannot create executables
     1791echo "$as_me: error: C++ compiler cannot create executables
    21451792See \`config.log' for more details." >&2;}
    21461793   { (exit 77); exit 77; }; }
     
    21531800# Check the compiler produces executables we can run.  If not, either
    21541801# the compiler is broken, or we cross compile.
    2155 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
    2156 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
     1802echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
     1803echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
    21571804# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    21581805# If not cross compiling, check that we can run a simple program.
     
    21691816        cross_compiling=yes
    21701817    else
    2171         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
     1818        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
    21721819If you meant to cross compile, use \`--host'.
    21731820See \`config.log' for more details." >&5
    2174 echo "$as_me: error: cannot run C compiled programs.
     1821echo "$as_me: error: cannot run C++ compiled programs.
    21751822If you meant to cross compile, use \`--host'.
    21761823See \`config.log' for more details." >&2;}
     
    22771924OBJEXT=$ac_cv_objext
    22781925ac_objext=$OBJEXT
     1926echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
     1927echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
     1928if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
     1929  echo $ECHO_N "(cached) $ECHO_C" >&6
     1930else
     1931  cat >conftest.$ac_ext <<_ACEOF
     1932/* confdefs.h.  */
     1933_ACEOF
     1934cat confdefs.h >>conftest.$ac_ext
     1935cat >>conftest.$ac_ext <<_ACEOF
     1936/* end confdefs.h.  */
     1937
     1938int
     1939main ()
     1940{
     1941#ifndef __GNUC__
     1942       choke me
     1943#endif
     1944
     1945  ;
     1946  return 0;
     1947}
     1948_ACEOF
     1949rm -f conftest.$ac_objext
     1950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     1951  (eval $ac_compile) 2>conftest.er1
     1952  ac_status=$?
     1953  grep -v '^ *+' conftest.er1 >conftest.err
     1954  rm -f conftest.er1
     1955  cat conftest.err >&5
     1956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1957  (exit $ac_status); } &&
     1958         { ac_try='test -z "$ac_cxx_werror_flag"
     1959                         || test ! -s conftest.err'
     1960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1961  (eval $ac_try) 2>&5
     1962  ac_status=$?
     1963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1964  (exit $ac_status); }; } &&
     1965         { ac_try='test -s conftest.$ac_objext'
     1966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     1967  (eval $ac_try) 2>&5
     1968  ac_status=$?
     1969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     1970  (exit $ac_status); }; }; then
     1971  ac_compiler_gnu=yes
     1972else
     1973  echo "$as_me: failed program was:" >&5
     1974sed 's/^/| /' conftest.$ac_ext >&5
     1975
     1976ac_compiler_gnu=no
     1977fi
     1978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     1979ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
     1980
     1981fi
     1982echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
     1983echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
     1984GXX=`test $ac_compiler_gnu = yes && echo yes`
     1985ac_test_CXXFLAGS=${CXXFLAGS+set}
     1986ac_save_CXXFLAGS=$CXXFLAGS
     1987CXXFLAGS="-g"
     1988echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
     1989echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
     1990if test "${ac_cv_prog_cxx_g+set}" = set; then
     1991  echo $ECHO_N "(cached) $ECHO_C" >&6
     1992else
     1993  cat >conftest.$ac_ext <<_ACEOF
     1994/* confdefs.h.  */
     1995_ACEOF
     1996cat confdefs.h >>conftest.$ac_ext
     1997cat >>conftest.$ac_ext <<_ACEOF
     1998/* end confdefs.h.  */
     1999
     2000int
     2001main ()
     2002{
     2003
     2004  ;
     2005  return 0;
     2006}
     2007_ACEOF
     2008rm -f conftest.$ac_objext
     2009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2010  (eval $ac_compile) 2>conftest.er1
     2011  ac_status=$?
     2012  grep -v '^ *+' conftest.er1 >conftest.err
     2013  rm -f conftest.er1
     2014  cat conftest.err >&5
     2015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2016  (exit $ac_status); } &&
     2017         { ac_try='test -z "$ac_cxx_werror_flag"
     2018                         || test ! -s conftest.err'
     2019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2020  (eval $ac_try) 2>&5
     2021  ac_status=$?
     2022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2023  (exit $ac_status); }; } &&
     2024         { ac_try='test -s conftest.$ac_objext'
     2025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2026  (eval $ac_try) 2>&5
     2027  ac_status=$?
     2028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2029  (exit $ac_status); }; }; then
     2030  ac_cv_prog_cxx_g=yes
     2031else
     2032  echo "$as_me: failed program was:" >&5
     2033sed 's/^/| /' conftest.$ac_ext >&5
     2034
     2035ac_cv_prog_cxx_g=no
     2036fi
     2037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2038fi
     2039echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
     2040echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
     2041if test "$ac_test_CXXFLAGS" = set; then
     2042  CXXFLAGS=$ac_save_CXXFLAGS
     2043elif test $ac_cv_prog_cxx_g = yes; then
     2044  if test "$GXX" = yes; then
     2045    CXXFLAGS="-g -O2"
     2046  else
     2047    CXXFLAGS="-g"
     2048  fi
     2049else
     2050  if test "$GXX" = yes; then
     2051    CXXFLAGS="-O2"
     2052  else
     2053    CXXFLAGS=
     2054  fi
     2055fi
     2056for ac_declaration in \
     2057   '' \
     2058   'extern "C" void std::exit (int) throw (); using std::exit;' \
     2059   'extern "C" void std::exit (int); using std::exit;' \
     2060   'extern "C" void exit (int) throw ();' \
     2061   'extern "C" void exit (int);' \
     2062   'void exit (int);'
     2063do
     2064  cat >conftest.$ac_ext <<_ACEOF
     2065/* confdefs.h.  */
     2066_ACEOF
     2067cat confdefs.h >>conftest.$ac_ext
     2068cat >>conftest.$ac_ext <<_ACEOF
     2069/* end confdefs.h.  */
     2070$ac_declaration
     2071#include <stdlib.h>
     2072int
     2073main ()
     2074{
     2075exit (42);
     2076  ;
     2077  return 0;
     2078}
     2079_ACEOF
     2080rm -f conftest.$ac_objext
     2081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2082  (eval $ac_compile) 2>conftest.er1
     2083  ac_status=$?
     2084  grep -v '^ *+' conftest.er1 >conftest.err
     2085  rm -f conftest.er1
     2086  cat conftest.err >&5
     2087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2088  (exit $ac_status); } &&
     2089         { ac_try='test -z "$ac_cxx_werror_flag"
     2090                         || test ! -s conftest.err'
     2091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2092  (eval $ac_try) 2>&5
     2093  ac_status=$?
     2094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2095  (exit $ac_status); }; } &&
     2096         { ac_try='test -s conftest.$ac_objext'
     2097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2098  (eval $ac_try) 2>&5
     2099  ac_status=$?
     2100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2101  (exit $ac_status); }; }; then
     2102  :
     2103else
     2104  echo "$as_me: failed program was:" >&5
     2105sed 's/^/| /' conftest.$ac_ext >&5
     2106
     2107continue
     2108fi
     2109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2110  cat >conftest.$ac_ext <<_ACEOF
     2111/* confdefs.h.  */
     2112_ACEOF
     2113cat confdefs.h >>conftest.$ac_ext
     2114cat >>conftest.$ac_ext <<_ACEOF
     2115/* end confdefs.h.  */
     2116$ac_declaration
     2117int
     2118main ()
     2119{
     2120exit (42);
     2121  ;
     2122  return 0;
     2123}
     2124_ACEOF
     2125rm -f conftest.$ac_objext
     2126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2127  (eval $ac_compile) 2>conftest.er1
     2128  ac_status=$?
     2129  grep -v '^ *+' conftest.er1 >conftest.err
     2130  rm -f conftest.er1
     2131  cat conftest.err >&5
     2132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2133  (exit $ac_status); } &&
     2134         { ac_try='test -z "$ac_cxx_werror_flag"
     2135                         || test ! -s conftest.err'
     2136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2137  (eval $ac_try) 2>&5
     2138  ac_status=$?
     2139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2140  (exit $ac_status); }; } &&
     2141         { ac_try='test -s conftest.$ac_objext'
     2142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2143  (eval $ac_try) 2>&5
     2144  ac_status=$?
     2145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2146  (exit $ac_status); }; }; then
     2147  break
     2148else
     2149  echo "$as_me: failed program was:" >&5
     2150sed 's/^/| /' conftest.$ac_ext >&5
     2151
     2152fi
     2153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2154done
     2155rm -f conftest*
     2156if test -n "$ac_declaration"; then
     2157  echo '#ifdef __cplusplus' >>confdefs.h
     2158  echo $ac_declaration      >>confdefs.h
     2159  echo '#endif'             >>confdefs.h
     2160fi
     2161
     2162ac_ext=cc
     2163ac_cpp='$CXXCPP $CPPFLAGS'
     2164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     2167
     2168
     2169ac_ext=cc
     2170ac_cpp='$CXXCPP $CPPFLAGS'
     2171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     2174echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
     2175echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
     2176if test -z "$CXXCPP"; then
     2177  if test "${ac_cv_prog_CXXCPP+set}" = set; then
     2178  echo $ECHO_N "(cached) $ECHO_C" >&6
     2179else
     2180      # Double quotes because CXXCPP needs to be expanded
     2181    for CXXCPP in "$CXX -E" "/lib/cpp"
     2182    do
     2183      ac_preproc_ok=false
     2184for ac_cxx_preproc_warn_flag in '' yes
     2185do
     2186  # Use a header file that comes with gcc, so configuring glibc
     2187  # with a fresh cross-compiler works.
     2188  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     2189  # <limits.h> exists even on freestanding compilers.
     2190  # On the NeXT, cc -E runs the code through the compiler's parser,
     2191  # not just through cpp. "Syntax error" is here to catch this case.
     2192  cat >conftest.$ac_ext <<_ACEOF
     2193/* confdefs.h.  */
     2194_ACEOF
     2195cat confdefs.h >>conftest.$ac_ext
     2196cat >>conftest.$ac_ext <<_ACEOF
     2197/* end confdefs.h.  */
     2198#ifdef __STDC__
     2199# include <limits.h>
     2200#else
     2201# include <assert.h>
     2202#endif
     2203                     Syntax error
     2204_ACEOF
     2205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2206  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2207  ac_status=$?
     2208  grep -v '^ *+' conftest.er1 >conftest.err
     2209  rm -f conftest.er1
     2210  cat conftest.err >&5
     2211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2212  (exit $ac_status); } >/dev/null; then
     2213  if test -s conftest.err; then
     2214    ac_cpp_err=$ac_cxx_preproc_warn_flag
     2215    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     2216  else
     2217    ac_cpp_err=
     2218  fi
     2219else
     2220  ac_cpp_err=yes
     2221fi
     2222if test -z "$ac_cpp_err"; then
     2223  :
     2224else
     2225  echo "$as_me: failed program was:" >&5
     2226sed 's/^/| /' conftest.$ac_ext >&5
     2227
     2228  # Broken: fails on valid input.
     2229continue
     2230fi
     2231rm -f conftest.err conftest.$ac_ext
     2232
     2233  # OK, works on sane cases.  Now check whether non-existent headers
     2234  # can be detected and how.
     2235  cat >conftest.$ac_ext <<_ACEOF
     2236/* confdefs.h.  */
     2237_ACEOF
     2238cat confdefs.h >>conftest.$ac_ext
     2239cat >>conftest.$ac_ext <<_ACEOF
     2240/* end confdefs.h.  */
     2241#include <ac_nonexistent.h>
     2242_ACEOF
     2243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2244  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2245  ac_status=$?
     2246  grep -v '^ *+' conftest.er1 >conftest.err
     2247  rm -f conftest.er1
     2248  cat conftest.err >&5
     2249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2250  (exit $ac_status); } >/dev/null; then
     2251  if test -s conftest.err; then
     2252    ac_cpp_err=$ac_cxx_preproc_warn_flag
     2253    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     2254  else
     2255    ac_cpp_err=
     2256  fi
     2257else
     2258  ac_cpp_err=yes
     2259fi
     2260if test -z "$ac_cpp_err"; then
     2261  # Broken: success on invalid input.
     2262continue
     2263else
     2264  echo "$as_me: failed program was:" >&5
     2265sed 's/^/| /' conftest.$ac_ext >&5
     2266
     2267  # Passes both tests.
     2268ac_preproc_ok=:
     2269break
     2270fi
     2271rm -f conftest.err conftest.$ac_ext
     2272
     2273done
     2274# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     2275rm -f conftest.err conftest.$ac_ext
     2276if $ac_preproc_ok; then
     2277  break
     2278fi
     2279
     2280    done
     2281    ac_cv_prog_CXXCPP=$CXXCPP
     2282
     2283fi
     2284  CXXCPP=$ac_cv_prog_CXXCPP
     2285else
     2286  ac_cv_prog_CXXCPP=$CXXCPP
     2287fi
     2288echo "$as_me:$LINENO: result: $CXXCPP" >&5
     2289echo "${ECHO_T}$CXXCPP" >&6
     2290ac_preproc_ok=false
     2291for ac_cxx_preproc_warn_flag in '' yes
     2292do
     2293  # Use a header file that comes with gcc, so configuring glibc
     2294  # with a fresh cross-compiler works.
     2295  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
     2296  # <limits.h> exists even on freestanding compilers.
     2297  # On the NeXT, cc -E runs the code through the compiler's parser,
     2298  # not just through cpp. "Syntax error" is here to catch this case.
     2299  cat >conftest.$ac_ext <<_ACEOF
     2300/* confdefs.h.  */
     2301_ACEOF
     2302cat confdefs.h >>conftest.$ac_ext
     2303cat >>conftest.$ac_ext <<_ACEOF
     2304/* end confdefs.h.  */
     2305#ifdef __STDC__
     2306# include <limits.h>
     2307#else
     2308# include <assert.h>
     2309#endif
     2310                     Syntax error
     2311_ACEOF
     2312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2313  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2314  ac_status=$?
     2315  grep -v '^ *+' conftest.er1 >conftest.err
     2316  rm -f conftest.er1
     2317  cat conftest.err >&5
     2318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2319  (exit $ac_status); } >/dev/null; then
     2320  if test -s conftest.err; then
     2321    ac_cpp_err=$ac_cxx_preproc_warn_flag
     2322    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     2323  else
     2324    ac_cpp_err=
     2325  fi
     2326else
     2327  ac_cpp_err=yes
     2328fi
     2329if test -z "$ac_cpp_err"; then
     2330  :
     2331else
     2332  echo "$as_me: failed program was:" >&5
     2333sed 's/^/| /' conftest.$ac_ext >&5
     2334
     2335  # Broken: fails on valid input.
     2336continue
     2337fi
     2338rm -f conftest.err conftest.$ac_ext
     2339
     2340  # OK, works on sane cases.  Now check whether non-existent headers
     2341  # can be detected and how.
     2342  cat >conftest.$ac_ext <<_ACEOF
     2343/* confdefs.h.  */
     2344_ACEOF
     2345cat confdefs.h >>conftest.$ac_ext
     2346cat >>conftest.$ac_ext <<_ACEOF
     2347/* end confdefs.h.  */
     2348#include <ac_nonexistent.h>
     2349_ACEOF
     2350if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2351  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2352  ac_status=$?
     2353  grep -v '^ *+' conftest.er1 >conftest.err
     2354  rm -f conftest.er1
     2355  cat conftest.err >&5
     2356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2357  (exit $ac_status); } >/dev/null; then
     2358  if test -s conftest.err; then
     2359    ac_cpp_err=$ac_cxx_preproc_warn_flag
     2360    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     2361  else
     2362    ac_cpp_err=
     2363  fi
     2364else
     2365  ac_cpp_err=yes
     2366fi
     2367if test -z "$ac_cpp_err"; then
     2368  # Broken: success on invalid input.
     2369continue
     2370else
     2371  echo "$as_me: failed program was:" >&5
     2372sed 's/^/| /' conftest.$ac_ext >&5
     2373
     2374  # Passes both tests.
     2375ac_preproc_ok=:
     2376break
     2377fi
     2378rm -f conftest.err conftest.$ac_ext
     2379
     2380done
     2381# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
     2382rm -f conftest.err conftest.$ac_ext
     2383if $ac_preproc_ok; then
     2384  :
     2385else
     2386  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
     2387See \`config.log' for more details." >&5
     2388echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
     2389See \`config.log' for more details." >&2;}
     2390   { (exit 1); exit 1; }; }
     2391fi
     2392
     2393ac_ext=cc
     2394ac_cpp='$CXXCPP $CPPFLAGS'
     2395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     2398
     2399
     2400echo "$as_me:$LINENO: checking for egrep" >&5
     2401echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     2402if test "${ac_cv_prog_egrep+set}" = set; then
     2403  echo $ECHO_N "(cached) $ECHO_C" >&6
     2404else
     2405  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     2406    then ac_cv_prog_egrep='grep -E'
     2407    else ac_cv_prog_egrep='egrep'
     2408    fi
     2409fi
     2410echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     2411echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     2412 EGREP=$ac_cv_prog_egrep
     2413
     2414
     2415echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     2416echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     2417if test "${ac_cv_header_stdc+set}" = set; then
     2418  echo $ECHO_N "(cached) $ECHO_C" >&6
     2419else
     2420  cat >conftest.$ac_ext <<_ACEOF
     2421/* confdefs.h.  */
     2422_ACEOF
     2423cat confdefs.h >>conftest.$ac_ext
     2424cat >>conftest.$ac_ext <<_ACEOF
     2425/* end confdefs.h.  */
     2426#include <stdlib.h>
     2427#include <stdarg.h>
     2428#include <string.h>
     2429#include <float.h>
     2430
     2431int
     2432main ()
     2433{
     2434
     2435  ;
     2436  return 0;
     2437}
     2438_ACEOF
     2439rm -f conftest.$ac_objext
     2440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2441  (eval $ac_compile) 2>conftest.er1
     2442  ac_status=$?
     2443  grep -v '^ *+' conftest.er1 >conftest.err
     2444  rm -f conftest.er1
     2445  cat conftest.err >&5
     2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2447  (exit $ac_status); } &&
     2448         { ac_try='test -z "$ac_cxx_werror_flag"
     2449                         || test ! -s conftest.err'
     2450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2451  (eval $ac_try) 2>&5
     2452  ac_status=$?
     2453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2454  (exit $ac_status); }; } &&
     2455         { ac_try='test -s conftest.$ac_objext'
     2456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2457  (eval $ac_try) 2>&5
     2458  ac_status=$?
     2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2460  (exit $ac_status); }; }; then
     2461  ac_cv_header_stdc=yes
     2462else
     2463  echo "$as_me: failed program was:" >&5
     2464sed 's/^/| /' conftest.$ac_ext >&5
     2465
     2466ac_cv_header_stdc=no
     2467fi
     2468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2469
     2470if test $ac_cv_header_stdc = yes; then
     2471  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     2472  cat >conftest.$ac_ext <<_ACEOF
     2473/* confdefs.h.  */
     2474_ACEOF
     2475cat confdefs.h >>conftest.$ac_ext
     2476cat >>conftest.$ac_ext <<_ACEOF
     2477/* end confdefs.h.  */
     2478#include <string.h>
     2479
     2480_ACEOF
     2481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     2482  $EGREP "memchr" >/dev/null 2>&1; then
     2483  :
     2484else
     2485  ac_cv_header_stdc=no
     2486fi
     2487rm -f conftest*
     2488
     2489fi
     2490
     2491if test $ac_cv_header_stdc = yes; then
     2492  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     2493  cat >conftest.$ac_ext <<_ACEOF
     2494/* confdefs.h.  */
     2495_ACEOF
     2496cat confdefs.h >>conftest.$ac_ext
     2497cat >>conftest.$ac_ext <<_ACEOF
     2498/* end confdefs.h.  */
     2499#include <stdlib.h>
     2500
     2501_ACEOF
     2502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     2503  $EGREP "free" >/dev/null 2>&1; then
     2504  :
     2505else
     2506  ac_cv_header_stdc=no
     2507fi
     2508rm -f conftest*
     2509
     2510fi
     2511
     2512if test $ac_cv_header_stdc = yes; then
     2513  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     2514  if test "$cross_compiling" = yes; then
     2515  :
     2516else
     2517  cat >conftest.$ac_ext <<_ACEOF
     2518/* confdefs.h.  */
     2519_ACEOF
     2520cat confdefs.h >>conftest.$ac_ext
     2521cat >>conftest.$ac_ext <<_ACEOF
     2522/* end confdefs.h.  */
     2523#include <ctype.h>
     2524#if ((' ' & 0x0FF) == 0x020)
     2525# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     2526# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     2527#else
     2528# define ISLOWER(c) \
     2529                   (('a' <= (c) && (c) <= 'i') \
     2530                     || ('j' <= (c) && (c) <= 'r') \
     2531                     || ('s' <= (c) && (c) <= 'z'))
     2532# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     2533#endif
     2534
     2535#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     2536int
     2537main ()
     2538{
     2539  int i;
     2540  for (i = 0; i < 256; i++)
     2541    if (XOR (islower (i), ISLOWER (i))
     2542        || toupper (i) != TOUPPER (i))
     2543      exit(2);
     2544  exit (0);
     2545}
     2546_ACEOF
     2547rm -f conftest$ac_exeext
     2548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2549  (eval $ac_link) 2>&5
     2550  ac_status=$?
     2551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2552  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     2553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2554  (eval $ac_try) 2>&5
     2555  ac_status=$?
     2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2557  (exit $ac_status); }; }; then
     2558  :
     2559else
     2560  echo "$as_me: program exited with status $ac_status" >&5
     2561echo "$as_me: failed program was:" >&5
     2562sed 's/^/| /' conftest.$ac_ext >&5
     2563
     2564( exit $ac_status )
     2565ac_cv_header_stdc=no
     2566fi
     2567rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     2568fi
     2569fi
     2570fi
     2571echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     2572echo "${ECHO_T}$ac_cv_header_stdc" >&6
     2573if test $ac_cv_header_stdc = yes; then
     2574
     2575cat >>confdefs.h <<\_ACEOF
     2576#define STDC_HEADERS 1
     2577_ACEOF
     2578
     2579fi
     2580
     2581# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     2582
     2583
     2584
     2585
     2586
     2587
     2588
     2589
     2590
     2591for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     2592                  inttypes.h stdint.h unistd.h
     2593do
     2594as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     2595echo "$as_me:$LINENO: checking for $ac_header" >&5
     2596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     2597if eval "test \"\${$as_ac_Header+set}\" = set"; then
     2598  echo $ECHO_N "(cached) $ECHO_C" >&6
     2599else
     2600  cat >conftest.$ac_ext <<_ACEOF
     2601/* confdefs.h.  */
     2602_ACEOF
     2603cat confdefs.h >>conftest.$ac_ext
     2604cat >>conftest.$ac_ext <<_ACEOF
     2605/* end confdefs.h.  */
     2606$ac_includes_default
     2607
     2608#include <$ac_header>
     2609_ACEOF
     2610rm -f conftest.$ac_objext
     2611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2612  (eval $ac_compile) 2>conftest.er1
     2613  ac_status=$?
     2614  grep -v '^ *+' conftest.er1 >conftest.err
     2615  rm -f conftest.er1
     2616  cat conftest.err >&5
     2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2618  (exit $ac_status); } &&
     2619         { ac_try='test -z "$ac_cxx_werror_flag"
     2620                         || test ! -s conftest.err'
     2621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2622  (eval $ac_try) 2>&5
     2623  ac_status=$?
     2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2625  (exit $ac_status); }; } &&
     2626         { ac_try='test -s conftest.$ac_objext'
     2627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2628  (eval $ac_try) 2>&5
     2629  ac_status=$?
     2630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2631  (exit $ac_status); }; }; then
     2632  eval "$as_ac_Header=yes"
     2633else
     2634  echo "$as_me: failed program was:" >&5
     2635sed 's/^/| /' conftest.$ac_ext >&5
     2636
     2637eval "$as_ac_Header=no"
     2638fi
     2639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2640fi
     2641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     2642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     2643if test `eval echo '${'$as_ac_Header'}'` = yes; then
     2644  cat >>confdefs.h <<_ACEOF
     2645#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     2646_ACEOF
     2647
     2648fi
     2649
     2650done
     2651
     2652
     2653ac_ext=cc
     2654ac_cpp='$CXXCPP $CPPFLAGS'
     2655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
     2658
     2659#if test x"" = x; then
     2660#  hdr="#include <cstdint>"
     2661#else
     2662#  hdr=""
     2663#fi
     2664#AC_CHECK_HEADERS([cstdint],[],[],[$hdr])
     2665
     2666for ac_header in cstdint
     2667do
     2668as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     2669if eval "test \"\${$as_ac_Header+set}\" = set"; then
     2670  echo "$as_me:$LINENO: checking for $ac_header" >&5
     2671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     2672if eval "test \"\${$as_ac_Header+set}\" = set"; then
     2673  echo $ECHO_N "(cached) $ECHO_C" >&6
     2674fi
     2675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     2676echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     2677else
     2678  # Is the header compilable?
     2679echo "$as_me:$LINENO: checking $ac_header usability" >&5
     2680echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     2681cat >conftest.$ac_ext <<_ACEOF
     2682/* confdefs.h.  */
     2683_ACEOF
     2684cat confdefs.h >>conftest.$ac_ext
     2685cat >>conftest.$ac_ext <<_ACEOF
     2686/* end confdefs.h.  */
     2687$ac_includes_default
     2688#include <$ac_header>
     2689_ACEOF
     2690rm -f conftest.$ac_objext
     2691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2692  (eval $ac_compile) 2>conftest.er1
     2693  ac_status=$?
     2694  grep -v '^ *+' conftest.er1 >conftest.err
     2695  rm -f conftest.er1
     2696  cat conftest.err >&5
     2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2698  (exit $ac_status); } &&
     2699         { ac_try='test -z "$ac_cxx_werror_flag"
     2700                         || test ! -s conftest.err'
     2701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2702  (eval $ac_try) 2>&5
     2703  ac_status=$?
     2704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2705  (exit $ac_status); }; } &&
     2706         { ac_try='test -s conftest.$ac_objext'
     2707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2708  (eval $ac_try) 2>&5
     2709  ac_status=$?
     2710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2711  (exit $ac_status); }; }; then
     2712  ac_header_compiler=yes
     2713else
     2714  echo "$as_me: failed program was:" >&5
     2715sed 's/^/| /' conftest.$ac_ext >&5
     2716
     2717ac_header_compiler=no
     2718fi
     2719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2720echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     2721echo "${ECHO_T}$ac_header_compiler" >&6
     2722
     2723# Is the header present?
     2724echo "$as_me:$LINENO: checking $ac_header presence" >&5
     2725echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     2726cat >conftest.$ac_ext <<_ACEOF
     2727/* confdefs.h.  */
     2728_ACEOF
     2729cat confdefs.h >>conftest.$ac_ext
     2730cat >>conftest.$ac_ext <<_ACEOF
     2731/* end confdefs.h.  */
     2732#include <$ac_header>
     2733_ACEOF
     2734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2735  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2736  ac_status=$?
     2737  grep -v '^ *+' conftest.er1 >conftest.err
     2738  rm -f conftest.er1
     2739  cat conftest.err >&5
     2740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2741  (exit $ac_status); } >/dev/null; then
     2742  if test -s conftest.err; then
     2743    ac_cpp_err=$ac_cxx_preproc_warn_flag
     2744    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     2745  else
     2746    ac_cpp_err=
     2747  fi
     2748else
     2749  ac_cpp_err=yes
     2750fi
     2751if test -z "$ac_cpp_err"; then
     2752  ac_header_preproc=yes
     2753else
     2754  echo "$as_me: failed program was:" >&5
     2755sed 's/^/| /' conftest.$ac_ext >&5
     2756
     2757  ac_header_preproc=no
     2758fi
     2759rm -f conftest.err conftest.$ac_ext
     2760echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     2761echo "${ECHO_T}$ac_header_preproc" >&6
     2762
     2763# So?  What about this header?
     2764case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
     2765  yes:no: )
     2766    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     2767echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     2768    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     2769echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     2770    ac_header_preproc=yes
     2771    ;;
     2772  no:yes:* )
     2773    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     2774echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     2775    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     2776echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     2777    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     2778echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     2779    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     2780echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     2781    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     2782echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     2783    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     2784echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     2785    (
     2786      cat <<\_ASBOX
     2787## --------------------------------- ##
     2788## Report this to belotti@lehigh.edu ##
     2789## --------------------------------- ##
     2790_ASBOX
     2791    ) |
     2792      sed "s/^/$as_me: WARNING:     /" >&2
     2793    ;;
     2794esac
     2795echo "$as_me:$LINENO: checking for $ac_header" >&5
     2796echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     2797if eval "test \"\${$as_ac_Header+set}\" = set"; then
     2798  echo $ECHO_N "(cached) $ECHO_C" >&6
     2799else
     2800  eval "$as_ac_Header=\$ac_header_preproc"
     2801fi
     2802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     2803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     2804
     2805fi
     2806if test `eval echo '${'$as_ac_Header'}'` = yes; then
     2807  cat >>confdefs.h <<_ACEOF
     2808#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     2809_ACEOF
     2810
     2811fi
     2812
     2813done
     2814
     2815
     2816if test "$ac_cv_header_cstdint" != "yes"; then
     2817  #if test x"" = x; then
     2818#  hdr="#include <stdint.h>"
     2819#else
     2820#  hdr=""
     2821#fi
     2822#AC_CHECK_HEADERS([stdint.h],[],[],[$hdr])
     2823
     2824for ac_header in stdint.h
     2825do
     2826as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     2827if eval "test \"\${$as_ac_Header+set}\" = set"; then
     2828  echo "$as_me:$LINENO: checking for $ac_header" >&5
     2829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     2830if eval "test \"\${$as_ac_Header+set}\" = set"; then
     2831  echo $ECHO_N "(cached) $ECHO_C" >&6
     2832fi
     2833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     2834echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     2835else
     2836  # Is the header compilable?
     2837echo "$as_me:$LINENO: checking $ac_header usability" >&5
     2838echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
     2839cat >conftest.$ac_ext <<_ACEOF
     2840/* confdefs.h.  */
     2841_ACEOF
     2842cat confdefs.h >>conftest.$ac_ext
     2843cat >>conftest.$ac_ext <<_ACEOF
     2844/* end confdefs.h.  */
     2845$ac_includes_default
     2846#include <$ac_header>
     2847_ACEOF
     2848rm -f conftest.$ac_objext
     2849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     2850  (eval $ac_compile) 2>conftest.er1
     2851  ac_status=$?
     2852  grep -v '^ *+' conftest.er1 >conftest.err
     2853  rm -f conftest.er1
     2854  cat conftest.err >&5
     2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2856  (exit $ac_status); } &&
     2857         { ac_try='test -z "$ac_cxx_werror_flag"
     2858                         || test ! -s conftest.err'
     2859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2860  (eval $ac_try) 2>&5
     2861  ac_status=$?
     2862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2863  (exit $ac_status); }; } &&
     2864         { ac_try='test -s conftest.$ac_objext'
     2865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2866  (eval $ac_try) 2>&5
     2867  ac_status=$?
     2868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2869  (exit $ac_status); }; }; then
     2870  ac_header_compiler=yes
     2871else
     2872  echo "$as_me: failed program was:" >&5
     2873sed 's/^/| /' conftest.$ac_ext >&5
     2874
     2875ac_header_compiler=no
     2876fi
     2877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     2878echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
     2879echo "${ECHO_T}$ac_header_compiler" >&6
     2880
     2881# Is the header present?
     2882echo "$as_me:$LINENO: checking $ac_header presence" >&5
     2883echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
     2884cat >conftest.$ac_ext <<_ACEOF
     2885/* confdefs.h.  */
     2886_ACEOF
     2887cat confdefs.h >>conftest.$ac_ext
     2888cat >>conftest.$ac_ext <<_ACEOF
     2889/* end confdefs.h.  */
     2890#include <$ac_header>
     2891_ACEOF
     2892if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
     2893  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
     2894  ac_status=$?
     2895  grep -v '^ *+' conftest.er1 >conftest.err
     2896  rm -f conftest.er1
     2897  cat conftest.err >&5
     2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2899  (exit $ac_status); } >/dev/null; then
     2900  if test -s conftest.err; then
     2901    ac_cpp_err=$ac_cxx_preproc_warn_flag
     2902    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
     2903  else
     2904    ac_cpp_err=
     2905  fi
     2906else
     2907  ac_cpp_err=yes
     2908fi
     2909if test -z "$ac_cpp_err"; then
     2910  ac_header_preproc=yes
     2911else
     2912  echo "$as_me: failed program was:" >&5
     2913sed 's/^/| /' conftest.$ac_ext >&5
     2914
     2915  ac_header_preproc=no
     2916fi
     2917rm -f conftest.err conftest.$ac_ext
     2918echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
     2919echo "${ECHO_T}$ac_header_preproc" >&6
     2920
     2921# So?  What about this header?
     2922case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
     2923  yes:no: )
     2924    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
     2925echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
     2926    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
     2927echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
     2928    ac_header_preproc=yes
     2929    ;;
     2930  no:yes:* )
     2931    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
     2932echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
     2933    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
     2934echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
     2935    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
     2936echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
     2937    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
     2938echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
     2939    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
     2940echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
     2941    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
     2942echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
     2943    (
     2944      cat <<\_ASBOX
     2945## --------------------------------- ##
     2946## Report this to belotti@lehigh.edu ##
     2947## --------------------------------- ##
     2948_ASBOX
     2949    ) |
     2950      sed "s/^/$as_me: WARNING:     /" >&2
     2951    ;;
     2952esac
     2953echo "$as_me:$LINENO: checking for $ac_header" >&5
     2954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     2955if eval "test \"\${$as_ac_Header+set}\" = set"; then
     2956  echo $ECHO_N "(cached) $ECHO_C" >&6
     2957else
     2958  eval "$as_ac_Header=\$ac_header_preproc"
     2959fi
     2960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     2961echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     2962
     2963fi
     2964if test `eval echo '${'$as_ac_Header'}'` = yes; then
     2965  cat >>confdefs.h <<_ACEOF
     2966#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     2967_ACEOF
     2968
     2969fi
     2970
     2971done
     2972
     2973
     2974fi
     2975ac_ext=c
     2976ac_cpp='$CPP $CPPFLAGS'
     2977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2979ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2980
     2981
     2982
     2983#############################################################################
     2984#                         Standard build tool stuff                         #
     2985#############################################################################
     2986
     2987# Get the system type
     2988ac_aux_dir=
     2989for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
     2990  if test -f $ac_dir/install-sh; then
     2991    ac_aux_dir=$ac_dir
     2992    ac_install_sh="$ac_aux_dir/install-sh -c"
     2993    break
     2994  elif test -f $ac_dir/install.sh; then
     2995    ac_aux_dir=$ac_dir
     2996    ac_install_sh="$ac_aux_dir/install.sh -c"
     2997    break
     2998  elif test -f $ac_dir/shtool; then
     2999    ac_aux_dir=$ac_dir
     3000    ac_install_sh="$ac_aux_dir/shtool install -c"
     3001    break
     3002  fi
     3003done
     3004if test -z "$ac_aux_dir"; then
     3005  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     3006echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
     3007   { (exit 1); exit 1; }; }
     3008fi
     3009ac_config_guess="$SHELL $ac_aux_dir/config.guess"
     3010ac_config_sub="$SHELL $ac_aux_dir/config.sub"
     3011ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     3012
     3013# Make sure we can run config.sub.
     3014$ac_config_sub sun4 >/dev/null 2>&1 ||
     3015  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
     3016echo "$as_me: error: cannot run $ac_config_sub" >&2;}
     3017   { (exit 1); exit 1; }; }
     3018
     3019echo "$as_me:$LINENO: checking build system type" >&5
     3020echo $ECHO_N "checking build system type... $ECHO_C" >&6
     3021if test "${ac_cv_build+set}" = set; then
     3022  echo $ECHO_N "(cached) $ECHO_C" >&6
     3023else
     3024  ac_cv_build_alias=$build_alias
     3025test -z "$ac_cv_build_alias" &&
     3026  ac_cv_build_alias=`$ac_config_guess`
     3027test -z "$ac_cv_build_alias" &&
     3028  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
     3029echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
     3030   { (exit 1); exit 1; }; }
     3031ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
     3032  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
     3033echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
     3034   { (exit 1); exit 1; }; }
     3035
     3036fi
     3037echo "$as_me:$LINENO: result: $ac_cv_build" >&5
     3038echo "${ECHO_T}$ac_cv_build" >&6
     3039build=$ac_cv_build
     3040build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     3041build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     3042build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     3043
     3044
     3045
     3046# Initialization specifically for project main directories
     3047# Initialize the ADDLIBS variable
     3048ADDLIBS="-lm $LIBS"
     3049
     3050
     3051# Initialize the FADDLIBS variable (which is to be used with a fortran
     3052# compiler and will not include FLIBS)
     3053FADDLIBS="$LIBS"
     3054
     3055
     3056# A useful makefile conditional that is always false
     3057
     3058
     3059if false; then
     3060  ALWAYS_FALSE_TRUE=
     3061  ALWAYS_FALSE_FALSE='#'
     3062else
     3063  ALWAYS_FALSE_TRUE='#'
     3064  ALWAYS_FALSE_FALSE=
     3065fi
     3066
     3067
     3068# We set the following variable so that we know later in AC_COIN_FINALIZE
     3069# that we are in a project main directory
     3070coin_projectdir=yes
     3071
     3072
     3073# Check if user wants to produce debugging code
     3074
     3075echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
     3076echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
     3077
     3078# Check whether --enable-debug or --disable-debug was given.
     3079if test "${enable_debug+set}" = set; then
     3080  enableval="$enable_debug"
     3081  case "${enableval}" in
     3082   yes) coin_debug_compile=true
     3083        if test "${enable_shared+set}" = set; then :; else
     3084          enable_shared=no
     3085        fi
     3086        ;;
     3087   no)  coin_debug_compile=false
     3088        ;;
     3089   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
     3090echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
     3091   { (exit 1); exit 1; }; }
     3092        ;;
     3093esac
     3094else
     3095  coin_debug_compile=false
     3096fi;
     3097
     3098# Check whether --enable-debug-couenne or --disable-debug-couenne was given.
     3099if test "${enable_debug_couenne+set}" = set; then
     3100  enableval="$enable_debug_couenne"
     3101  case "${enableval}" in
     3102    yes) coin_debug_compile=true
     3103         enable_shared=no
     3104         ;;
     3105    no)  coin_debug_compile=false
     3106         ;;
     3107    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-couenne" >&5
     3108echo "$as_me: error: bad value ${enableval} for --enable-debug-couenne" >&2;}
     3109   { (exit 1); exit 1; }; }
     3110         ;;
     3111 esac
     3112else
     3113  :
     3114fi;
     3115
     3116 # m4_ifvaln([Couenne],
     3117
     3118if test $coin_debug_compile = true; then
     3119  echo "$as_me:$LINENO: result: yes" >&5
     3120echo "${ECHO_T}yes" >&6
     3121else
     3122  echo "$as_me:$LINENO: result: no" >&5
     3123echo "${ECHO_T}no" >&6
     3124fi
     3125
     3126
     3127# Check whether --with-couenne-verbosity or --without-couenne-verbosity was given.
     3128if test "${with_couenne_verbosity+set}" = set; then
     3129  withval="$with_couenne_verbosity"
     3130  if test "$withval" = yes; then
     3131                withval=1
     3132              fi
     3133              coin_couenne_verbosity=$withval
     3134else
     3135  coin_couenne_verbosity=0
     3136fi;
     3137
     3138cat >>confdefs.h <<_ACEOF
     3139#define COIN_COUENNE_VERBOSITY $coin_couenne_verbosity
     3140_ACEOF
     3141
     3142
     3143
     3144# Check whether --with-couenne-checklevel or --without-couenne-checklevel was given.
     3145if test "${with_couenne_checklevel+set}" = set; then
     3146  withval="$with_couenne_checklevel"
     3147  if test "$withval" = yes; then
     3148                withval=1
     3149              fi
     3150              coin_couenne_checklevel=$withval
     3151else
     3152  coin_couenne_checklevel=0
     3153fi;
     3154
     3155cat >>confdefs.h <<_ACEOF
     3156#define COIN_COUENNE_CHECKLEVEL $coin_couenne_checklevel
     3157_ACEOF
     3158
     3159
     3160# We use the following variable to have a string with the upper case
     3161# version of the project name
     3162COIN_PRJCT=COUENNE
     3163
     3164
     3165 # m4_ifvaln([Couenne],
     3166
     3167
     3168
     3169# Get the name of the C++ compiler and appropriate compiler options
     3170case $build in
     3171  *-mingw*)
     3172    if test "${LD+set}" = set; then :; else
     3173      LD=link
     3174    fi
     3175    ;;
     3176 esac
     3177 case $enable_doscompile in
     3178   msvc)
     3179     if test "x${LD+set}" = xset; then :; else
     3180       LD=link
     3181     fi
     3182     ;;
     3183 esac
     3184
     3185
     3186 # Check whether --enable-doscompile or --disable-doscompile was given.
     3187if test "${enable_doscompile+set}" = set; then
     3188  enableval="$enable_doscompile"
     3189  if test "$enable_doscompile" != no; then
     3190     case $build in
     3191       *-cygwin* | *-mingw*) ;;
     3192       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
     3193echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
     3194   { (exit 1); exit 1; }; } ;;
     3195     esac
     3196   fi
     3197else
     3198  enable_doscompile=no
     3199fi;
     3200 case "$enable_doscompile" in
     3201   mingw)
     3202     case $build in
     3203       *-mingw*) enable_doscompile=no ;;
     3204     esac
     3205     ;;
     3206   msvc|no) ;;
     3207   yes) enable_doscompile=mingw ;;
     3208   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
     3209                    Try configure --help=recursive." >&5
     3210echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
     3211                    Try configure --help=recursive." >&2;}
     3212   { (exit 1); exit 1; }; }
     3213      ;;
     3214  esac
     3215  if test "$enable_doscompile" != no ; then
     3216    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
     3217echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
     3218  fi
     3219
     3220
     3221
     3222
     3223ac_ext=c
     3224ac_cpp='$CPP $CPPFLAGS'
     3225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3227ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3228
     3229
     3230# For consistency, we set the C compiler to the same value of the C++
     3231# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
     3232if test x"$CXX" != x; then
     3233  case "$CXX" in
     3234    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
     3235      if test x"$CC" = x; then
     3236        CC="$CXX"
     3237        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
     3238echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
     3239      fi
     3240      ;;
     3241  esac
     3242fi
     3243
     3244
     3245
     3246
     3247
     3248
     3249coin_has_cc=yes
     3250
     3251save_cflags="$CFLAGS"
     3252
     3253# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
     3254# Depending on the user's PATH, when Studio/Workshop cc is not present we may
     3255# find /usr/ucb/cc, which is almost certainly not a good choice for the C
     3256# compiler. In this case, put cc after gcc.
     3257
     3258case $build in
     3259  *-cygwin* | *-mingw*)
     3260             if test "$enable_doscompile" = msvc ; then
     3261               comps="icl cl"
     3262             else
     3263               comps="gcc cl"
     3264             fi ;;
     3265  *-*-solaris*)
     3266             # Extract the first word of "cc", so it can be a program name with args.
     3267set dummy cc; ac_word=$2
     3268echo "$as_me:$LINENO: checking for $ac_word" >&5
     3269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3270if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
     3271  echo $ECHO_N "(cached) $ECHO_C" >&6
     3272else
     3273  if test -n "$sol_cc_compiler"; then
     3274  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
     3275else
     3276  ac_prog_rejected=no
     3277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3278for as_dir in $PATH
     3279do
     3280  IFS=$as_save_IFS
     3281  test -z "$as_dir" && as_dir=.
     3282  for ac_exec_ext in '' $ac_executable_extensions; do
     3283  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3284    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
     3285       ac_prog_rejected=yes
     3286       continue
     3287     fi
     3288    ac_cv_prog_sol_cc_compiler="cc"
     3289    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3290    break 2
     3291  fi
     3292done
     3293done
     3294
     3295if test $ac_prog_rejected = yes; then
     3296  # We found a bogon in the path, so make sure we never use it.
     3297  set dummy $ac_cv_prog_sol_cc_compiler
     3298  shift
     3299  if test $# != 0; then
     3300    # We chose a different compiler from the bogus one.
     3301    # However, it has the same basename, so the bogon will be chosen
     3302    # first if we set sol_cc_compiler to just the basename; use the full file name.
     3303    shift
     3304    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
     3305  fi
     3306fi
     3307fi
     3308fi
     3309sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
     3310if test -n "$sol_cc_compiler"; then
     3311  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
     3312echo "${ECHO_T}$sol_cc_compiler" >&6
     3313else
     3314  echo "$as_me:$LINENO: result: no" >&5
     3315echo "${ECHO_T}no" >&6
     3316fi
     3317
     3318             if test "$sol_cc_compiler" = "cc" ; then
     3319               comps="cc xlc gcc pgcc icc"
     3320             else
     3321               comps="xlc gcc pgcc icc cc"
     3322             fi
     3323             ;;
     3324  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
     3325  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
     3326esac
     3327
     3328# We delete the cached value, since the test might not have been
     3329# performed with our choice of compilers earlier
     3330$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
     3331# AC_MSG_NOTICE([C compiler candidates: $comps])
     3332ac_ext=c
     3333ac_cpp='$CPP $CPPFLAGS'
     3334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3336ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3337if test -n "$ac_tool_prefix"; then
     3338  for ac_prog in $comps
     3339  do
     3340    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     3341set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     3342echo "$as_me:$LINENO: checking for $ac_word" >&5
     3343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3344if test "${ac_cv_prog_CC+set}" = set; then
     3345  echo $ECHO_N "(cached) $ECHO_C" >&6
     3346else
     3347  if test -n "$CC"; then
     3348  ac_cv_prog_CC="$CC" # Let the user override the test.
     3349else
     3350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3351for as_dir in $PATH
     3352do
     3353  IFS=$as_save_IFS
     3354  test -z "$as_dir" && as_dir=.
     3355  for ac_exec_ext in '' $ac_executable_extensions; do
     3356  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3357    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
     3358    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3359    break 2
     3360  fi
     3361done
     3362done
     3363
     3364fi
     3365fi
     3366CC=$ac_cv_prog_CC
     3367if test -n "$CC"; then
     3368  echo "$as_me:$LINENO: result: $CC" >&5
     3369echo "${ECHO_T}$CC" >&6
     3370else
     3371  echo "$as_me:$LINENO: result: no" >&5
     3372echo "${ECHO_T}no" >&6
     3373fi
     3374
     3375    test -n "$CC" && break
     3376  done
     3377fi
     3378if test -z "$CC"; then
     3379  ac_ct_CC=$CC
     3380  for ac_prog in $comps
     3381do
     3382  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3383set dummy $ac_prog; ac_word=$2
     3384echo "$as_me:$LINENO: checking for $ac_word" >&5
     3385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3386if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     3387  echo $ECHO_N "(cached) $ECHO_C" >&6
     3388else
     3389  if test -n "$ac_ct_CC"; then
     3390  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     3391else
     3392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3393for as_dir in $PATH
     3394do
     3395  IFS=$as_save_IFS
     3396  test -z "$as_dir" && as_dir=.
     3397  for ac_exec_ext in '' $ac_executable_extensions; do
     3398  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3399    ac_cv_prog_ac_ct_CC="$ac_prog"
     3400    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3401    break 2
     3402  fi
     3403done
     3404done
     3405
     3406fi
     3407fi
     3408ac_ct_CC=$ac_cv_prog_ac_ct_CC
     3409if test -n "$ac_ct_CC"; then
     3410  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     3411echo "${ECHO_T}$ac_ct_CC" >&6
     3412else
     3413  echo "$as_me:$LINENO: result: no" >&5
     3414echo "${ECHO_T}no" >&6
     3415fi
     3416
     3417  test -n "$ac_ct_CC" && break
     3418done
     3419
     3420  CC=$ac_ct_CC
     3421fi
     3422
     3423
     3424test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     3425See \`config.log' for more details." >&5
     3426echo "$as_me: error: no acceptable C compiler found in \$PATH
     3427See \`config.log' for more details." >&2;}
     3428   { (exit 1); exit 1; }; }
     3429
     3430# Provide some information about the compiler.
     3431echo "$as_me:$LINENO:" \
     3432     "checking for C compiler version" >&5
     3433ac_compiler=`set X $ac_compile; echo $2`
     3434{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     3435  (eval $ac_compiler --version </dev/null >&5) 2>&5
     3436  ac_status=$?
     3437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3438  (exit $ac_status); }
     3439{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     3440  (eval $ac_compiler -v </dev/null >&5) 2>&5
     3441  ac_status=$?
     3442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3443  (exit $ac_status); }
     3444{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     3445  (eval $ac_compiler -V </dev/null >&5) 2>&5
     3446  ac_status=$?
     3447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3448  (exit $ac_status); }
     3449
    22793450echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    22803451echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     
    31184289
    31194290
    3120 
    31214291 #Let's try if that overcomes configuration problem with VC++ 6.0
    31224292
     
    51876357
    51886358# Initialize automake
    5189 echo "$as_me:$LINENO: checking for egrep" >&5
    5190 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    5191 if test "${ac_cv_prog_egrep+set}" = set; then
    5192   echo $ECHO_N "(cached) $ECHO_C" >&6
    5193 else
    5194   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    5195     then ac_cv_prog_egrep='grep -E'
    5196     else ac_cv_prog_egrep='egrep'
    5197     fi
    5198 fi
    5199 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    5200 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    5201  EGREP=$ac_cv_prog_egrep
    5202 
    5203 
    52046359am__api_version="1.9"
    52056360# Find a good install program.  We prefer a C program (faster),
     
    68558010*-*-irix6*)
    68568011  # Find out which ABI we are using.
    6857   echo '#line 6857 "configure"' > conftest.$ac_ext
     8012  echo '#line 8012 "configure"' > conftest.$ac_ext
    68588013  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    68598014  (eval $ac_compile) 2>&5
     
    72728427
    72738428
    7274 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    7275 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    7276 if test "${ac_cv_header_stdc+set}" = set; then
    7277   echo $ECHO_N "(cached) $ECHO_C" >&6
    7278 else
    7279   cat >conftest.$ac_ext <<_ACEOF
    7280 /* confdefs.h.  */
    7281 _ACEOF
    7282 cat confdefs.h >>conftest.$ac_ext
    7283 cat >>conftest.$ac_ext <<_ACEOF
    7284 /* end confdefs.h.  */
    7285 #include <stdlib.h>
    7286 #include <stdarg.h>
    7287 #include <string.h>
    7288 #include <float.h>
    7289 
    7290 int
    7291 main ()
    7292 {
    7293 
    7294   ;
    7295   return 0;
    7296 }
    7297 _ACEOF
    7298 rm -f conftest.$ac_objext
    7299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7300   (eval $ac_compile) 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_objext'
    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   ac_cv_header_stdc=yes
    7321 else
    7322   echo "$as_me: failed program was:" >&5
    7323 sed 's/^/| /' conftest.$ac_ext >&5
    7324 
    7325 ac_cv_header_stdc=no
    7326 fi
    7327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7328 
    7329 if test $ac_cv_header_stdc = yes; then
    7330   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    7331   cat >conftest.$ac_ext <<_ACEOF
    7332 /* confdefs.h.  */
    7333 _ACEOF
    7334 cat confdefs.h >>conftest.$ac_ext
    7335 cat >>conftest.$ac_ext <<_ACEOF
    7336 /* end confdefs.h.  */
    7337 #include <string.h>
    7338 
    7339 _ACEOF
    7340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    7341   $EGREP "memchr" >/dev/null 2>&1; then
    7342   :
    7343 else
    7344   ac_cv_header_stdc=no
    7345 fi
    7346 rm -f conftest*
    7347 
    7348 fi
    7349 
    7350 if test $ac_cv_header_stdc = yes; then
    7351   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    7352   cat >conftest.$ac_ext <<_ACEOF
    7353 /* confdefs.h.  */
    7354 _ACEOF
    7355 cat confdefs.h >>conftest.$ac_ext
    7356 cat >>conftest.$ac_ext <<_ACEOF
    7357 /* end confdefs.h.  */
    7358 #include <stdlib.h>
    7359 
    7360 _ACEOF
    7361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    7362   $EGREP "free" >/dev/null 2>&1; then
    7363   :
    7364 else
    7365   ac_cv_header_stdc=no
    7366 fi
    7367 rm -f conftest*
    7368 
    7369 fi
    7370 
    7371 if test $ac_cv_header_stdc = yes; then
    7372   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    7373   if test "$cross_compiling" = yes; then
    7374   :
    7375 else
    7376   cat >conftest.$ac_ext <<_ACEOF
    7377 /* confdefs.h.  */
    7378 _ACEOF
    7379 cat confdefs.h >>conftest.$ac_ext
    7380 cat >>conftest.$ac_ext <<_ACEOF
    7381 /* end confdefs.h.  */
    7382 #include <ctype.h>
    7383 #if ((' ' & 0x0FF) == 0x020)
    7384 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    7385 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    7386 #else
    7387 # define ISLOWER(c) \
    7388                    (('a' <= (c) && (c) <= 'i') \
    7389                      || ('j' <= (c) && (c) <= 'r') \
    7390                      || ('s' <= (c) && (c) <= 'z'))
    7391 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    7392 #endif
    7393 
    7394 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    7395 int
    7396 main ()
    7397 {
    7398   int i;
    7399   for (i = 0; i < 256; i++)
    7400     if (XOR (islower (i), ISLOWER (i))
    7401         || toupper (i) != TOUPPER (i))
    7402       exit(2);
    7403   exit (0);
    7404 }
    7405 _ACEOF
    7406 rm -f conftest$ac_exeext
    7407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    7408   (eval $ac_link) 2>&5
    7409   ac_status=$?
    7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7411   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    7412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7413   (eval $ac_try) 2>&5
    7414   ac_status=$?
    7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7416   (exit $ac_status); }; }; then
    7417   :
    7418 else
    7419   echo "$as_me: program exited with status $ac_status" >&5
    7420 echo "$as_me: failed program was:" >&5
    7421 sed 's/^/| /' conftest.$ac_ext >&5
    7422 
    7423 ( exit $ac_status )
    7424 ac_cv_header_stdc=no
    7425 fi
    7426 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    7427 fi
    7428 fi
    7429 fi
    7430 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    7431 echo "${ECHO_T}$ac_cv_header_stdc" >&6
    7432 if test $ac_cv_header_stdc = yes; then
    7433 
    7434 cat >>confdefs.h <<\_ACEOF
    7435 #define STDC_HEADERS 1
    7436 _ACEOF
    7437 
    7438 fi
    7439 
    7440 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
    7441 
    7442 
    7443 
    7444 
    7445 
    7446 
    7447 
    7448 
    7449 
    7450 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    7451                   inttypes.h stdint.h unistd.h
    7452 do
    7453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    7454 echo "$as_me:$LINENO: checking for $ac_header" >&5
    7455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    7456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    7457   echo $ECHO_N "(cached) $ECHO_C" >&6
    7458 else
    7459   cat >conftest.$ac_ext <<_ACEOF
    7460 /* confdefs.h.  */
    7461 _ACEOF
    7462 cat confdefs.h >>conftest.$ac_ext
    7463 cat >>conftest.$ac_ext <<_ACEOF
    7464 /* end confdefs.h.  */
    7465 $ac_includes_default
    7466 
    7467 #include <$ac_header>
    7468 _ACEOF
    7469 rm -f conftest.$ac_objext
    7470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    7471   (eval $ac_compile) 2>conftest.er1
    7472   ac_status=$?
    7473   grep -v '^ *+' conftest.er1 >conftest.err
    7474   rm -f conftest.er1
    7475   cat conftest.err >&5
    7476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7477   (exit $ac_status); } &&
    7478          { ac_try='test -z "$ac_c_werror_flag"
    7479                          || test ! -s conftest.err'
    7480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7481   (eval $ac_try) 2>&5
    7482   ac_status=$?
    7483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7484   (exit $ac_status); }; } &&
    7485          { ac_try='test -s conftest.$ac_objext'
    7486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    7487   (eval $ac_try) 2>&5
    7488   ac_status=$?
    7489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    7490   (exit $ac_status); }; }; then
    7491   eval "$as_ac_Header=yes"
    7492 else
    7493   echo "$as_me: failed program was:" >&5
    7494 sed 's/^/| /' conftest.$ac_ext >&5
    7495 
    7496 eval "$as_ac_Header=no"
    7497 fi
    7498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    7499 fi
    7500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    7501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    7502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    7503   cat >>confdefs.h <<_ACEOF
    7504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    7505 _ACEOF
    7506 
    7507 fi
    7508 
    7509 done
    7510 
    7511 
    75128429
    75138430for ac_header in dlfcn.h
     
    79898906
    79908907# Provide some information about the compiler.
    7991 echo "$as_me:7991:" \
     8908echo "$as_me:8908:" \
    79928909     "checking for Fortran 77 compiler version" >&5
    79938910ac_compiler=`set X $ac_compile; echo $2`
     
    90569973   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    90579974   -e 's:$: $lt_compiler_flag:'`
    9058    (eval echo "\"\$as_me:9058: $lt_compile\"" >&5)
     9975   (eval echo "\"\$as_me:9975: $lt_compile\"" >&5)
    90599976   (eval "$lt_compile" 2>conftest.err)
    90609977   ac_status=$?
    90619978   cat conftest.err >&5
    9062    echo "$as_me:9062: \$? = $ac_status" >&5
     9979   echo "$as_me:9979: \$? = $ac_status" >&5
    90639980   if (exit $ac_status) && test -s "$ac_outfile"; then
    90649981     # The compiler can only warn and ignore the option if not recognized
     
    932410241   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    932510242   -e 's:$: $lt_compiler_flag:'`
    9326    (eval echo "\"\$as_me:9326: $lt_compile\"" >&5)
     10243   (eval echo "\"\$as_me:10243: $lt_compile\"" >&5)
    932710244   (eval "$lt_compile" 2>conftest.err)
    932810245   ac_status=$?
    932910246   cat conftest.err >&5
    9330    echo "$as_me:9330: \$? = $ac_status" >&5
     10247   echo "$as_me:10247: \$? = $ac_status" >&5
    933110248   if (exit $ac_status) && test -s "$ac_outfile"; then
    933210249     # The compiler can only warn and ignore the option if not recognized
     
    942810345   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    942910346   -e 's:$: $lt_compiler_flag:'`
    9430    (eval echo "\"\$as_me:9430: $lt_compile\"" >&5)
     10347   (eval echo "\"\$as_me:10347: $lt_compile\"" >&5)
    943110348   (eval "$lt_compile" 2>out/conftest.err)
    943210349   ac_status=$?
    943310350   cat out/conftest.err >&5
    9434    echo "$as_me:9434: \$? = $ac_status" >&5
     10351   echo "$as_me:10351: \$? = $ac_status" >&5
    943510352   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    943610353   then
     
    1177312690  lt_status=$lt_dlunknown
    1177412691  cat > conftest.$ac_ext <<EOF
    11775 #line 11775 "configure"
     12692#line 12692 "configure"
    1177612693#include "confdefs.h"
    1177712694
     
    1187312790  lt_status=$lt_dlunknown
    1187412791  cat > conftest.$ac_ext <<EOF
    11875 #line 11875 "configure"
     12792#line 12792 "configure"
    1187612793#include "confdefs.h"
    1187712794
     
    1421715134   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1421815135   -e 's:$: $lt_compiler_flag:'`
    14219    (eval echo "\"\$as_me:14219: $lt_compile\"" >&5)
     15136   (eval echo "\"\$as_me:15136: $lt_compile\"" >&5)
    1422015137   (eval "$lt_compile" 2>conftest.err)
    1422115138   ac_status=$?
    1422215139   cat conftest.err >&5
    14223    echo "$as_me:14223: \$? = $ac_status" >&5
     15140   echo "$as_me:15140: \$? = $ac_status" >&5
    1422415141   if (exit $ac_status) && test -s "$ac_outfile"; then
    1422515142     # The compiler can only warn and ignore the option if not recognized
     
    1432115238   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1432215239   -e 's:$: $lt_compiler_flag:'`
    14323    (eval echo "\"\$as_me:14323: $lt_compile\"" >&5)
     15240   (eval echo "\"\$as_me:15240: $lt_compile\"" >&5)
    1432415241   (eval "$lt_compile" 2>out/conftest.err)
    1432515242   ac_status=$?
    1432615243   cat out/conftest.err >&5
    14327    echo "$as_me:14327: \$? = $ac_status" >&5
     15244   echo "$as_me:15244: \$? = $ac_status" >&5
    1432815245   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1432915246   then
     
    1589116808   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1589216809   -e 's:$: $lt_compiler_flag:'`
    15893    (eval echo "\"\$as_me:15893: $lt_compile\"" >&5)
     16810   (eval echo "\"\$as_me:16810: $lt_compile\"" >&5)
    1589416811   (eval "$lt_compile" 2>conftest.err)
    1589516812   ac_status=$?
    1589616813   cat conftest.err >&5
    15897    echo "$as_me:15897: \$? = $ac_status" >&5
     16814   echo "$as_me:16814: \$? = $ac_status" >&5
    1589816815   if (exit $ac_status) && test -s "$ac_outfile"; then
    1589916816     # The compiler can only warn and ignore the option if not recognized
     
    1599516912   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1599616913   -e 's:$: $lt_compiler_flag:'`
    15997    (eval echo "\"\$as_me:15997: $lt_compile\"" >&5)
     16914   (eval echo "\"\$as_me:16914: $lt_compile\"" >&5)
    1599816915   (eval "$lt_compile" 2>out/conftest.err)
    1599916916   ac_status=$?
    1600016917   cat out/conftest.err >&5
    16001    echo "$as_me:16001: \$? = $ac_status" >&5
     16918   echo "$as_me:16918: \$? = $ac_status" >&5
    1600216919   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1600316920   then
     
    1820219119   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1820319120   -e 's:$: $lt_compiler_flag:'`
    18204    (eval echo "\"\$as_me:18204: $lt_compile\"" >&5)
     19121   (eval echo "\"\$as_me:19121: $lt_compile\"" >&5)
    1820519122   (eval "$lt_compile" 2>conftest.err)
    1820619123   ac_status=$?
    1820719124   cat conftest.err >&5
    18208    echo "$as_me:18208: \$? = $ac_status" >&5
     19125   echo "$as_me:19125: \$? = $ac_status" >&5
    1820919126   if (exit $ac_status) && test -s "$ac_outfile"; then
    1821019127     # The compiler can only warn and ignore the option if not recognized
     
    1847019387   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1847119388   -e 's:$: $lt_compiler_flag:'`
    18472    (eval echo "\"\$as_me:18472: $lt_compile\"" >&5)
     19389   (eval echo "\"\$as_me:19389: $lt_compile\"" >&5)
    1847319390   (eval "$lt_compile" 2>conftest.err)
    1847419391   ac_status=$?
    1847519392   cat conftest.err >&5
    18476    echo "$as_me:18476: \$? = $ac_status" >&5
     19393   echo "$as_me:19393: \$? = $ac_status" >&5
    1847719394   if (exit $ac_status) && test -s "$ac_outfile"; then
    1847819395     # The compiler can only warn and ignore the option if not recognized
     
    1857419491   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1857519492   -e 's:$: $lt_compiler_flag:'`
    18576    (eval echo "\"\$as_me:18576: $lt_compile\"" >&5)
     19493   (eval echo "\"\$as_me:19493: $lt_compile\"" >&5)
    1857719494   (eval "$lt_compile" 2>out/conftest.err)
    1857819495   ac_status=$?
    1857919496   cat out/conftest.err >&5
    18580    echo "$as_me:18580: \$? = $ac_status" >&5
     19497   echo "$as_me:19497: \$? = $ac_status" >&5
    1858119498   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1858219499   then
     
    2321324130s,@ECHO_T@,$ECHO_T,;t t
    2321424131s,@LIBS@,$LIBS,;t t
     24132s,@CXX@,$CXX,;t t
     24133s,@CXXFLAGS@,$CXXFLAGS,;t t
     24134s,@LDFLAGS@,$LDFLAGS,;t t
     24135s,@CPPFLAGS@,$CPPFLAGS,;t t
     24136s,@ac_ct_CXX@,$ac_ct_CXX,;t t
     24137s,@EXEEXT@,$EXEEXT,;t t
     24138s,@OBJEXT@,$OBJEXT,;t t
     24139s,@CXXCPP@,$CXXCPP,;t t
     24140s,@EGREP@,$EGREP,;t t
    2321524141s,@build@,$build,;t t
    2321624142s,@build_cpu@,$build_cpu,;t t
     
    2322824154s,@CC@,$CC,;t t
    2322924155s,@CFLAGS@,$CFLAGS,;t t
    23230 s,@LDFLAGS@,$LDFLAGS,;t t
    23231 s,@CPPFLAGS@,$CPPFLAGS,;t t
    2323224156s,@ac_ct_CC@,$ac_ct_CC,;t t
    23233 s,@EXEEXT@,$EXEEXT,;t t
    23234 s,@OBJEXT@,$OBJEXT,;t t
    2323524157s,@MPICC@,$MPICC,;t t
    2323624158s,@CXXDEFS@,$CXXDEFS,;t t
     
    2323824160s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
    2323924161s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
    23240 s,@CXX@,$CXX,;t t
    23241 s,@CXXFLAGS@,$CXXFLAGS,;t t
    23242 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
    2324324162s,@MPICXX@,$MPICXX,;t t
    23244 s,@EGREP@,$EGREP,;t t
    2324524163s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
    2324624164s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
     
    2330324221s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
    2330424222s,@CPP@,$CPP,;t t
    23305 s,@CXXCPP@,$CXXCPP,;t t
    2330624223s,@F77@,$F77,;t t
    2330724224s,@FFLAGS@,$FFLAGS,;t t
  • trunk/Couenne/configure.ac

    r158 r191  
    3030# /usr/local.
    3131AC_PREFIX_DEFAULT([`pwd`])
     32
     33# for readnl.cpp
     34AC_COIN_CHECK_CXX_CHEADER(stdint)
    3235
    3336#############################################################################
  • trunk/Couenne/src/bound_tightening/tightenBounds.cpp

    r141 r191  
    5151      continue;
    5252
     53    CouNumber &lower_i = Lb (i);
     54    CouNumber &upper_i = Ub (i);
     55
    5356    // early test to avoid a loop
    5457
    55     if ((Lb (i) > Ub (i) + COUENNE_EPS * (1 + CoinMin (fabs (Lb (i)), fabs (Ub (i))))) ||
    56         (Ub (i) < - MAX_BOUND) ||
    57         (Lb (i) >   MAX_BOUND)) {
     58    if ((lower_i > upper_i + COUENNE_EPS * (1 + CoinMin (fabs (lower_i), fabs (upper_i)))) ||
     59        (upper_i < - MAX_BOUND) ||
     60        (lower_i >   MAX_BOUND)) {
    5861
    5962      if (Jnlst()->ProduceOutput(J_ITERSUMMARY, J_BOUNDTIGHTENING)) {
    6063
    6164        Jnlst()->Printf(J_ITERSUMMARY, J_BOUNDTIGHTENING,
    62                         "pre-check: w_%d has infeasible bounds [%.10e,%.10e]. ", i, Lb (i), Ub (i));
     65                        "pre-check: w_%d has infeasible bounds [%.10e,%.10e]. ", i, lower_i, upper_i);
    6366
    6467        if (Jnlst()->ProduceOutput(J_DETAILED, J_BOUNDTIGHTENING)) {
     
    7679    /*if ((Var (i) -> Type () == VAR) &&
    7780        (Var (i) -> isInteger ())) {
    78       Lb (i) = ceil  (Lb (i) - COUENNE_EPS);
    79       Ub (i) = floor (Ub (i) + COUENNE_EPS);
     81      lower_i = ceil  (lower_i - COUENNE_EPS);
     82      upper_i = floor (upper_i + COUENNE_EPS);
    8083      }*/
    8184
    8285    if (Var (i) -> Type () == AUX) {
    83         // TODO: also test if any indep variable of this expression
    84         // have changed. If not, skip
     86      // TODO: also test if any indep variable of this expression
     87      // have changed. If not, skip
    8588
    8689      CouNumber ll, uu;
     
    116119      // check if lower bound got higher
    117120      if ((ll > - COUENNE_INFINITY) &&
    118           (ll >= Lb (i) + COUENNE_EPS) &&
     121          (ll >= lower_i + COUENNE_EPS) &&
    119122          ((fabs (ll)        < COUENNE_EPS) ||
    120            (fabs (Lb (i)) < COUENNE_EPS) ||
    121            (fabs (ll / (Lb (i)) - 1) > COUENNE_EPS)) ) {
     123           (fabs (lower_i) < COUENNE_EPS) ||
     124           (fabs (ll / (lower_i) - 1) > COUENNE_EPS)) ) {
    122125
    123126        if (Jnlst()->ProduceOutput(J_DETAILED, J_BOUNDTIGHTENING)) {
     
    125128          Jnlst()->Printf(J_DETAILED, J_BOUNDTIGHTENING,
    126129                          "  prop L %2d [%g,(%g)] -> [%g,(%g)] (%g) ",
    127                           i, Lb (i), Ub (i), ll, uu, Lb (i) - ll);
     130                          i, lower_i, upper_i, ll, uu, lower_i - ll);
    128131          Var (i) -> print (std::cout);
    129132
     
    136139
    137140          if (optimum_ &&
    138               (optimum_ [i] >= Lb (i)) &&
     141              (optimum_ [i] >= lower_i) &&
    139142              (optimum_ [i] <= ll - COUENNE_EPS)) {
    140143
    141144            Jnlst()->Printf(J_STRONGWARNING, J_BOUNDTIGHTENING,
    142145                            "Couenne: propagating l_%d cuts optimum: [%g --> %g -X-> %g] :: ",
    143                             i, Lb (i), optimum_ [i], ll);
     146                            i, lower_i, optimum_ [i], ll);
    144147            Var (i) -> Lb () -> print (std::cout);
    145148            Jnlst()->Printf(J_DETAILED, J_BOUNDTIGHTENING," --- ");
     
    149152        }
    150153
    151         Lb (i) = ll;
    152 
    153         if (ll > Ub (i) + COUENNE_EPS * (1. + CoinMin (fabs (ll), fabs (Ub (i))))) {
     154        lower_i = ll;
     155
     156        if (ll > upper_i + COUENNE_EPS * (1. + CoinMin (fabs (ll), fabs (upper_i)))) {
    154157          Jnlst () -> Printf (J_ITERSUMMARY, J_BOUNDTIGHTENING,
    155                               "just-check: w_%d has infeasible bounds [%g,%g]. ", i, Lb (i), Ub (i));
     158                              "just-check: w_%d has infeasible bounds [%g,%g]. ", i, lower_i, upper_i);
    156159          return -1;
    157160        }
     
    163166      // check if upper bound got lower
    164167      if ((uu < COUENNE_INFINITY) &&
    165           (uu <= Ub (i) - COUENNE_EPS) &&
     168          (uu <= upper_i - COUENNE_EPS) &&
    166169          ((fabs (uu)      < COUENNE_EPS) ||
    167            (fabs (Ub (i)) < COUENNE_EPS) ||
    168            (fabs (uu / (Ub (i)) - 1) > COUENNE_EPS)) ) {
     170           (fabs (upper_i) < COUENNE_EPS) ||
     171           (fabs (uu / (upper_i) - 1) > COUENNE_EPS)) ) {
    169172        //      if ((uu < COUENNE_INFINITY) && (uu <= ub_ [i+j] - COUENNE_EPS)) {
    170173
     
    178181          Jnlst()->Printf(J_DETAILED, J_BOUNDTIGHTENING,
    179182                          "  prop U %2d [(%g),%g] -> [(%g),%g] (%g) ",
    180                           i, Lb (i), Ub (i), ll, uu, Ub (i) - uu);
     183                          i, lower_i, upper_i, ll, uu, upper_i - uu);
    181184          Var (i) -> print (std::cout);
    182185
     
    189192
    190193          if (optimum_ &&
    191               (optimum_ [i] <= Ub (i)) &&
     194              (optimum_ [i] <= upper_i) &&
    192195              (optimum_ [i] >= uu + COUENNE_EPS)) {
    193196
    194197            Jnlst()->Printf(J_STRONGWARNING, J_BOUNDTIGHTENING,
    195198                            "Couenne: propagating u_%d cuts optimum: [%g <-X- %g <-- %g] :: ",
    196                             i, uu, optimum_ [i], Ub (i));
     199                            i, uu, optimum_ [i], upper_i);
    197200            Var (i) -> Lb () -> print (std::cout);
    198201            Jnlst()->Printf(J_DETAILED, J_BOUNDTIGHTENING," --- ");
     
    202205        }
    203206
    204         Ub (i) = uu;
    205 
    206         if (uu < Lb (i) - COUENNE_EPS) {
     207        upper_i = uu;
     208
     209        if (uu < lower_i - COUENNE_EPS) {
    207210          Jnlst () -> Printf (J_ITERSUMMARY, J_BOUNDTIGHTENING,
    208                               "just-check: w_%d has infeasible bounds [%g,%g]. ", i, Lb (i), Ub (i));
     211                              "just-check: w_%d has infeasible bounds [%g,%g]. ", i, lower_i, upper_i);
    209212          return -1;
    210213        }
  • trunk/Couenne/src/branch/CouenneBranchingObject.cpp

    r141 r191  
    1 /* $Id$ */
    2 /*
     1/* $Id$
     2 *
    33 * Name:    CouenneBranchingObject.cpp
    44 * Authors: Pierre Bonami, IBM Corp.
  • trunk/Couenne/src/branch/CouenneObject.cpp

    r141 r191  
    498498  if (info &&
    499499      ((pseudoMultType_ == INTERVAL_LP) ||
    500        (pseudoMultType_ == INTERVAL_LP_REV))) {
     500       (pseudoMultType_ == INTERVAL_LP_REV)))
    501501
    502502    point = info -> solution_ [index];
    503503
    504     CouNumber delta = closeToBounds * (info -> upper_ [index] - info -> lower_ [index]);
    505 
    506     if      (point < info -> lower_ [index] + delta)
    507       point        = info -> lower_ [index] + delta;
    508     else if (point > info -> upper_ [index] - delta)
    509       point        = info -> upper_ [index] - delta;
    510   }
    511504  else if (brpoint &&
    512505           ((pseudoMultType_ == INTERVAL_BR) ||
     
    514507   
    515508    point = *brpoint;
     509
     510  // now move it away from the bounds
     511
     512  point = midInterval (point,
     513                       info -> lower_ [index],
     514                       info -> upper_ [index]);
     515
     516  CouNumber delta = closeToBounds * (info -> upper_ [index] - info -> lower_ [index]);
     517
     518  if      (point < info -> lower_ [index] + delta)
     519    point        = info -> lower_ [index] + delta;
     520  else if (point > info -> upper_ [index] - delta)
     521    point        = info -> upper_ [index] - delta;
    516522
    517523  ///////////////////////////////////////////////////////////
     
    540546  }
    541547
     548//   if (downEstimate_ <= 0.0 || upEstimate_ <= 0.0)
     549//     printf ("%g [%g,%g] ---> [%g,%g]\n",
     550//          point,
     551//          info -> lower_ [index],
     552//          info -> upper_ [index],
     553//          downEstimate_, upEstimate_);
     554
    542555  if (reference_ -> isInteger ()) {
    543556    if (downEstimate_ <       point  - floor (point)) downEstimate_ =       point  - floor (point);
  • trunk/Couenne/src/branch/doStrongBranching.cpp

    r179 r191  
    116116      /* Try the first direction.  Each subsequent call to branch()
    117117         performs the specified branch and advances the branch object
    118          state to the next branch alternative.) */
     118         state to the next branch alternative. */
    119119
    120120      int
     
    166166      // can check if we got solution
    167167      // status is 0 finished, 1 infeasible and 2 unfinished and 3 is solution
     168
     169      /*if (CouObj)
     170        jnlst_ -> Printf (J_ITERSUMMARY, J_BRANCHING, "dnEst %g upEst %g\n",
     171                          CouObj->downEstimate(),
     172                          CouObj->upEstimate());*/
    168173
    169174      // only update information if this branch is feasible
     
    238243      // can check if we got solution
    239244      // status is 0 finished, 1 infeasible and 2 unfinished and 3 is solution
     245
     246      /*if (CouObj)
     247        jnlst_ -> Printf (J_ITERSUMMARY, J_BRANCHING, "dnEst %g upEst %g\n",
     248                          CouObj->downEstimate(),
     249                          CouObj->upEstimate());*/
    240250
    241251      // only update information if this branch is feasible
  • trunk/Couenne/src/convex/operators/conv-exprGroup.cpp

    r141 r191  
    176176    }
    177177
    178     if (inf_lb) lb = -COUENNE_INFINITY;
    179     if (inf_ub) ub =  COUENNE_INFINITY;
    180 
    181     if (inf_lb && inf_ub) break; // no need to keep computing...
     178    if (inf_lb)
     179      lb = -COUENNE_INFINITY;
     180
     181    if (inf_ub) {
     182      ub =  COUENNE_INFINITY;
     183      if (inf_lb)
     184        break;
     185    }
     186
     187    //if (inf_lb && inf_ub) break; // no need to keep computing...
    182188  }
    183189}
  • trunk/Couenne/src/main/Makefile.am

    r135 r191  
    2929        $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
    3030        $(BONMINOBJDIR)/src/CbcBonmin/libbonmin.la \
     31        $(BONMINOBJDIR)/src/Algorithms/Branching/libbonbranching.la \
    3132        $(BONMINOBJDIR)/src/Interfaces/libbonmininterfaces.la \
    3233        $(IPOPTOBJDIR)/src/Interfaces/libipopt.la \
  • trunk/Couenne/src/main/Makefile.in

    r135 r191  
    8484        $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
    8585        $(BONMINOBJDIR)/src/CbcBonmin/libbonmin.la \
     86        $(BONMINOBJDIR)/src/Algorithms/Branching/libbonbranching.la \
    8687        $(BONMINOBJDIR)/src/Interfaces/libbonmininterfaces.la \
    8788        $(IPOPTOBJDIR)/src/Interfaces/libipopt.la \
     
    302303        $(OSIOBJDIR)/src/OsiClp/libOsiClp.la \
    303304        $(BONMINOBJDIR)/src/CbcBonmin/libbonmin.la \
     305        $(BONMINOBJDIR)/src/Algorithms/Branching/libbonbranching.la \
    304306        $(BONMINOBJDIR)/src/Interfaces/libbonmininterfaces.la \
    305307        $(IPOPTOBJDIR)/src/Interfaces/libipopt.la \
  • trunk/configure

    r184 r191  
    487487ac_subdirs_all="$ac_subdirs_all Bonmin"
    488488ac_subdirs_all="$ac_subdirs_all Couenne"
    489 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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CXXCPP EGREP build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS ac_ct_CC MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS subdirs COIN_SKIP_PROJECTS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
     489ac_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 build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS subdirs COIN_SKIP_PROJECTS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
    490490ac_subst_files=''
    491491
     
    928928ac_cv_env_target_alias_set=${target_alias+set}
    929929ac_cv_env_target_alias_value=$target_alias
    930 ac_env_CXX_set=${CXX+set}
    931 ac_env_CXX_value=$CXX
    932 ac_cv_env_CXX_set=${CXX+set}
    933 ac_cv_env_CXX_value=$CXX
    934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
    935 ac_env_CXXFLAGS_value=$CXXFLAGS
    936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
    937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
    938 ac_env_LDFLAGS_set=${LDFLAGS+set}
    939 ac_env_LDFLAGS_value=$LDFLAGS
    940 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    941 ac_cv_env_LDFLAGS_value=$LDFLAGS
    942 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    943 ac_env_CPPFLAGS_value=$CPPFLAGS
    944 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    945 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    946 ac_env_CXXCPP_set=${CXXCPP+set}
    947 ac_env_CXXCPP_value=$CXXCPP
    948 ac_cv_env_CXXCPP_set=${CXXCPP+set}
    949 ac_cv_env_CXXCPP_value=$CXXCPP
    950930ac_env_CDEFS_set=${CDEFS+set}
    951931ac_env_CDEFS_value=$CDEFS
     
    972952ac_cv_env_CFLAGS_set=${CFLAGS+set}
    973953ac_cv_env_CFLAGS_value=$CFLAGS
     954ac_env_LDFLAGS_set=${LDFLAGS+set}
     955ac_env_LDFLAGS_value=$LDFLAGS
     956ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
     957ac_cv_env_LDFLAGS_value=$LDFLAGS
     958ac_env_CPPFLAGS_set=${CPPFLAGS+set}
     959ac_env_CPPFLAGS_value=$CPPFLAGS
     960ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
     961ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    974962ac_env_MPICC_set=${MPICC+set}
    975963ac_env_MPICC_value=$MPICC
     
    992980ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
    993981ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
     982ac_env_CXX_set=${CXX+set}
     983ac_env_CXX_value=$CXX
     984ac_cv_env_CXX_set=${CXX+set}
     985ac_cv_env_CXX_value=$CXX
     986ac_env_CXXFLAGS_set=${CXXFLAGS+set}
     987ac_env_CXXFLAGS_value=$CXXFLAGS
     988ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
     989ac_cv_env_CXXFLAGS_value=$CXXFLAGS
    994990ac_env_MPICXX_set=${MPICXX+set}
    995991ac_env_MPICXX_value=$MPICXX
     
    10241020ac_cv_env_CPP_set=${CPP+set}
    10251021ac_cv_env_CPP_value=$CPP
     1022ac_env_CXXCPP_set=${CXXCPP+set}
     1023ac_env_CXXCPP_value=$CXXCPP
     1024ac_cv_env_CXXCPP_set=${CXXCPP+set}
     1025ac_cv_env_CXXCPP_value=$CXXCPP
    10261026ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
    10271027ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
     
    11371137
    11381138Some influential environment variables:
    1139   CXX         C++ compiler command
    1140   CXXFLAGS    C++ compiler flags
    1141   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    1142               nonstandard directory <lib dir>
    1143   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    1144               headers in a nonstandard directory <include dir>
    1145   CXXCPP      C++ preprocessor
    11461139  CDEFS       Additional -D flags to be used when compiling C code.
    11471140  ADD_CFLAGS  Additional C compiler options
     
    11501143  CC          C compiler command
    11511144  CFLAGS      C compiler flags
     1145  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     1146              nonstandard directory <lib dir>
     1147  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     1148              headers in a nonstandard directory <include dir>
    11521149  MPICC       C MPI Compiler
    11531150  CXXDEFS     Additional -D flags to be used when compiling C++ code.
     
    11581155  OPT_CXXFLAGS
    11591156              Optimize C++ compiler options
     1157  CXX         C++ compiler command
     1158  CXXFLAGS    C++ compiler flags
    11601159  MPICXX      C++ MPI Compiler
    11611160  ADD_FFLAGS  Additional Fortran compiler options
     
    11661165  MPIF77      Fortran MPI Compiler
    11671166  CPP         C preprocessor
     1167  CXXCPP      C++ preprocessor
    11681168  COIN_SKIP_PROJECTS
    11691169              Set to the subdirectories of projects that should be skipped in
     
    16401640
    16411641
    1642 # for readnl.cpp
    1643 ac_ext=cc
    1644 ac_cpp='$CXXCPP $CPPFLAGS'
    1645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    1646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    1648 if test -n "$ac_tool_prefix"; then
    1649   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
    1650   do
    1651     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    1652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     1642#############################################################################
     1643#              Create the libtool script for the subdirectories             #
     1644#############################################################################
     1645
     1646ac_aux_dir=
     1647for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
     1648  if test -f $ac_dir/install-sh; then
     1649    ac_aux_dir=$ac_dir
     1650    ac_install_sh="$ac_aux_dir/install-sh -c"
     1651    break
     1652  elif test -f $ac_dir/install.sh; then
     1653    ac_aux_dir=$ac_dir
     1654    ac_install_sh="$ac_aux_dir/install.sh -c"
     1655    break
     1656  elif test -f $ac_dir/shtool; then
     1657    ac_aux_dir=$ac_dir
     1658    ac_install_sh="$ac_aux_dir/shtool install -c"
     1659    break
     1660  fi
     1661done
     1662if test -z "$ac_aux_dir"; then
     1663  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
     1664echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
     1665   { (exit 1); exit 1; }; }
     1666fi
     1667ac_config_guess="$SHELL $ac_aux_dir/config.guess"
     1668ac_config_sub="$SHELL $ac_aux_dir/config.sub"
     1669ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
     1670
     1671# Make sure we can run config.sub.
     1672$ac_config_sub sun4 >/dev/null 2>&1 ||
     1673  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
     1674echo "$as_me: error: cannot run $ac_config_sub" >&2;}
     1675   { (exit 1); exit 1; }; }
     1676
     1677echo "$as_me:$LINENO: checking build system type" >&5
     1678echo $ECHO_N "checking build system type... $ECHO_C" >&6
     1679if test "${ac_cv_build+set}" = set; then
     1680  echo $ECHO_N "(cached) $ECHO_C" >&6
     1681else
     1682  ac_cv_build_alias=$build_alias
     1683test -z "$ac_cv_build_alias" &&
     1684  ac_cv_build_alias=`$ac_config_guess`
     1685test -z "$ac_cv_build_alias" &&
     1686  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
     1687echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
     1688   { (exit 1); exit 1; }; }
     1689ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
     1690  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
     1691echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
     1692   { (exit 1); exit 1; }; }
     1693
     1694fi
     1695echo "$as_me:$LINENO: result: $ac_cv_build" >&5
     1696echo "${ECHO_T}$ac_cv_build" >&6
     1697build=$ac_cv_build
     1698build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
     1699build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
     1700build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
     1701
     1702
     1703
     1704# Check if user wants to produce debugging code
     1705
     1706echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
     1707echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
     1708
     1709# Check whether --enable-debug or --disable-debug was given.
     1710if test "${enable_debug+set}" = set; then
     1711  enableval="$enable_debug"
     1712  case "${enableval}" in
     1713   yes) coin_debug_compile=true
     1714        if test "${enable_shared+set}" = set; then :; else
     1715          enable_shared=no
     1716        fi
     1717        ;;
     1718   no)  coin_debug_compile=false
     1719        ;;
     1720   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
     1721echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
     1722   { (exit 1); exit 1; }; }
     1723        ;;
     1724esac
     1725else
     1726  coin_debug_compile=false
     1727fi;
     1728
     1729 # m4_ifvaln([],
     1730
     1731if test $coin_debug_compile = true; then
     1732  echo "$as_me:$LINENO: result: yes" >&5
     1733echo "${ECHO_T}yes" >&6
     1734else
     1735  echo "$as_me:$LINENO: result: no" >&5
     1736echo "${ECHO_T}no" >&6
     1737fi
     1738
     1739 # m4_ifvaln([],
     1740
     1741
     1742
     1743# Get the name of the C compiler and appropriate compiler options
     1744case $build in
     1745  *-mingw*)
     1746    if test "${LD+set}" = set; then :; else
     1747      LD=link
     1748    fi
     1749    ;;
     1750 esac
     1751 case $enable_doscompile in
     1752   msvc)
     1753     if test "x${LD+set}" = xset; then :; else
     1754       LD=link
     1755     fi
     1756     ;;
     1757 esac
     1758
     1759
     1760 # Check whether --enable-doscompile or --disable-doscompile was given.
     1761if test "${enable_doscompile+set}" = set; then
     1762  enableval="$enable_doscompile"
     1763  if test "$enable_doscompile" != no; then
     1764     case $build in
     1765       *-cygwin* | *-mingw*) ;;
     1766       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
     1767echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
     1768   { (exit 1); exit 1; }; } ;;
     1769     esac
     1770   fi
     1771else
     1772  enable_doscompile=no
     1773fi;
     1774 case "$enable_doscompile" in
     1775   mingw)
     1776     case $build in
     1777       *-mingw*) enable_doscompile=no ;;
     1778     esac
     1779     ;;
     1780   msvc|no) ;;
     1781   yes) enable_doscompile=mingw ;;
     1782   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
     1783                    Try configure --help=recursive." >&5
     1784echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
     1785                    Try configure --help=recursive." >&2;}
     1786   { (exit 1); exit 1; }; }
     1787      ;;
     1788  esac
     1789  if test "$enable_doscompile" != no ; then
     1790    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
     1791echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
     1792  fi
     1793
     1794
     1795
     1796
     1797ac_ext=c
     1798ac_cpp='$CPP $CPPFLAGS'
     1799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1801ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1802
     1803
     1804# For consistency, we set the C compiler to the same value of the C++
     1805# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
     1806if test x"$CXX" != x; then
     1807  case "$CXX" in
     1808    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
     1809      if test x"$CC" = x; then
     1810        CC="$CXX"
     1811        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
     1812echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
     1813      fi
     1814      ;;
     1815  esac
     1816fi
     1817
     1818
     1819
     1820
     1821
     1822
     1823coin_has_cc=yes
     1824
     1825save_cflags="$CFLAGS"
     1826
     1827# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
     1828# Depending on the user's PATH, when Studio/Workshop cc is not present we may
     1829# find /usr/ucb/cc, which is almost certainly not a good choice for the C
     1830# compiler. In this case, put cc after gcc.
     1831
     1832case $build in
     1833  *-cygwin* | *-mingw*)
     1834             if test "$enable_doscompile" = msvc ; then
     1835               comps="icl cl"
     1836             else
     1837               comps="gcc cl"
     1838             fi ;;
     1839  *-*-solaris*)
     1840             # Extract the first word of "cc", so it can be a program name with args.
     1841set dummy cc; ac_word=$2
    16531842echo "$as_me:$LINENO: checking for $ac_word" >&5
    16541843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1655 if test "${ac_cv_prog_CXX+set}" = set; then
     1844if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
    16561845  echo $ECHO_N "(cached) $ECHO_C" >&6
    16571846else
    1658   if test -n "$CXX"; then
    1659   ac_cv_prog_CXX="$CXX" # Let the user override the test.
    1660 else
     1847  if test -n "$sol_cc_compiler"; then
     1848  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
     1849else
     1850  ac_prog_rejected=no
    16611851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    16621852for as_dir in $PATH
     
    16661856  for ac_exec_ext in '' $ac_executable_extensions; do
    16671857  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1668     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
     1858    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
     1859       ac_prog_rejected=yes
     1860       continue
     1861     fi
     1862    ac_cv_prog_sol_cc_compiler="cc"
    16691863    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    16701864    break 2
     
    16731867done
    16741868
    1675 fi
    1676 fi
    1677 CXX=$ac_cv_prog_CXX
    1678 if test -n "$CXX"; then
    1679   echo "$as_me:$LINENO: result: $CXX" >&5
    1680 echo "${ECHO_T}$CXX" >&6
     1869if test $ac_prog_rejected = yes; then
     1870  # We found a bogon in the path, so make sure we never use it.
     1871  set dummy $ac_cv_prog_sol_cc_compiler
     1872  shift
     1873  if test $# != 0; then
     1874    # We chose a different compiler from the bogus one.
     1875    # However, it has the same basename, so the bogon will be chosen
     1876    # first if we set sol_cc_compiler to just the basename; use the full file name.
     1877    shift
     1878    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
     1879  fi
     1880fi
     1881fi
     1882fi
     1883sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
     1884if test -n "$sol_cc_compiler"; then
     1885  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
     1886echo "${ECHO_T}$sol_cc_compiler" >&6
    16811887else
    16821888  echo "$as_me:$LINENO: result: no" >&5
     
    16841890fi
    16851891
    1686     test -n "$CXX" && break
    1687   done
    1688 fi
    1689 if test -z "$CXX"; then
    1690   ac_ct_CXX=$CXX
    1691   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
    1692 do
    1693   # Extract the first word of "$ac_prog", so it can be a program name with args.
    1694 set dummy $ac_prog; ac_word=$2
     1892             if test "$sol_cc_compiler" = "cc" ; then
     1893               comps="cc xlc gcc pgcc icc"
     1894             else
     1895               comps="xlc gcc pgcc icc cc"
     1896             fi
     1897             ;;
     1898  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
     1899  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
     1900esac
     1901
     1902# We delete the cached value, since the test might not have been
     1903# performed with our choice of compilers earlier
     1904$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
     1905# AC_MSG_NOTICE([C compiler candidates: $comps])
     1906ac_ext=c
     1907ac_cpp='$CPP $CPPFLAGS'
     1908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1910ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1911if test -n "$ac_tool_prefix"; then
     1912  for ac_prog in $comps
     1913  do
     1914    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     1915set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    16951916echo "$as_me:$LINENO: checking for $ac_word" >&5
    16961917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1697 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
     1918if test "${ac_cv_prog_CC+set}" = set; then
    16981919  echo $ECHO_N "(cached) $ECHO_C" >&6
    16991920else
    1700   if test -n "$ac_ct_CXX"; then
    1701   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
     1921  if test -n "$CC"; then
     1922  ac_cv_prog_CC="$CC" # Let the user override the test.
    17021923else
    17031924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    17081929  for ac_exec_ext in '' $ac_executable_extensions; do
    17091930  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1710     ac_cv_prog_ac_ct_CXX="$ac_prog"
     1931    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    17111932    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    17121933    break 2
     
    17171938fi
    17181939fi
    1719 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
    1720 if test -n "$ac_ct_CXX"; then
    1721   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
    1722 echo "${ECHO_T}$ac_ct_CXX" >&6
     1940CC=$ac_cv_prog_CC
     1941if test -n "$CC"; then
     1942  echo "$as_me:$LINENO: result: $CC" >&5
     1943echo "${ECHO_T}$CC" >&6
    17231944else
    17241945  echo "$as_me:$LINENO: result: no" >&5
     
    17261947fi
    17271948
    1728   test -n "$ac_ct_CXX" && break
     1949    test -n "$CC" && break
     1950  done
     1951fi
     1952if test -z "$CC"; then
     1953  ac_ct_CC=$CC
     1954  for ac_prog in $comps
     1955do
     1956  # Extract the first word of "$ac_prog", so it can be a program name with args.
     1957set dummy $ac_prog; ac_word=$2
     1958echo "$as_me:$LINENO: checking for $ac_word" >&5
     1959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     1960if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
     1961  echo $ECHO_N "(cached) $ECHO_C" >&6
     1962else
     1963  if test -n "$ac_ct_CC"; then
     1964  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
     1965else
     1966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     1967for as_dir in $PATH
     1968do
     1969  IFS=$as_save_IFS
     1970  test -z "$as_dir" && as_dir=.
     1971  for ac_exec_ext in '' $ac_executable_extensions; do
     1972  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     1973    ac_cv_prog_ac_ct_CC="$ac_prog"
     1974    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     1975    break 2
     1976  fi
    17291977done
    1730 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
    1731 
    1732   CXX=$ac_ct_CXX
    1733 fi
    1734 
     1978done
     1979
     1980fi
     1981fi
     1982ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1983if test -n "$ac_ct_CC"; then
     1984  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1985echo "${ECHO_T}$ac_ct_CC" >&6
     1986else
     1987  echo "$as_me:$LINENO: result: no" >&5
     1988echo "${ECHO_T}no" >&6
     1989fi
     1990
     1991  test -n "$ac_ct_CC" && break
     1992done
     1993
     1994  CC=$ac_ct_CC
     1995fi
     1996
     1997
     1998test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     1999See \`config.log' for more details." >&5
     2000echo "$as_me: error: no acceptable C compiler found in \$PATH
     2001See \`config.log' for more details." >&2;}
     2002   { (exit 1); exit 1; }; }
    17352003
    17362004# Provide some information about the compiler.
    17372005echo "$as_me:$LINENO:" \
    1738      "checking for C++ compiler version" >&5
     2006     "checking for C compiler version" >&5
    17392007ac_compiler=`set X $ac_compile; echo $2`
    17402008{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     
    17742042# It will help us diagnose broken compilers, and finding out an intuition
    17752043# of exeext.
    1776 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
    1777 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
     2044echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
     2045echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
    17782046ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    17792047if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
     
    18182086sed 's/^/| /' conftest.$ac_ext >&5
    18192087
    1820 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
     2088{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
    18212089See \`config.log' for more details." >&5
    1822 echo "$as_me: error: C++ compiler cannot create executables
     2090echo "$as_me: error: C compiler cannot create executables
    18232091See \`config.log' for more details." >&2;}
    18242092   { (exit 77); exit 77; }; }
     
    18312099# Check the compiler produces executables we can run.  If not, either
    18322100# the compiler is broken, or we cross compile.
    1833 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
    1834 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
     2101echo "$as_me:$LINENO: checking whether the C compiler works" >&5
     2102echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
    18352103# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    18362104# If not cross compiling, check that we can run a simple program.
     
    18472115        cross_compiling=yes
    18482116    else
    1849         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
     2117        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
    18502118If you meant to cross compile, use \`--host'.
    18512119See \`config.log' for more details." >&5
    1852 echo "$as_me: error: cannot run C++ compiled programs.
     2120echo "$as_me: error: cannot run C compiled programs.
    18532121If you meant to cross compile, use \`--host'.
    18542122See \`config.log' for more details." >&2;}
     
    19552223OBJEXT=$ac_cv_objext
    19562224ac_objext=$OBJEXT
    1957 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
    1958 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
    1959 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
    1960   echo $ECHO_N "(cached) $ECHO_C" >&6
    1961 else
    1962   cat >conftest.$ac_ext <<_ACEOF
    1963 /* confdefs.h.  */
    1964 _ACEOF
    1965 cat confdefs.h >>conftest.$ac_ext
    1966 cat >>conftest.$ac_ext <<_ACEOF
    1967 /* end confdefs.h.  */
    1968 
    1969 int
    1970 main ()
    1971 {
    1972 #ifndef __GNUC__
    1973        choke me
    1974 #endif
    1975 
    1976   ;
    1977   return 0;
    1978 }
    1979 _ACEOF
    1980 rm -f conftest.$ac_objext
    1981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    1982   (eval $ac_compile) 2>conftest.er1
    1983   ac_status=$?
    1984   grep -v '^ *+' conftest.er1 >conftest.err
    1985   rm -f conftest.er1
    1986   cat conftest.err >&5
    1987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1988   (exit $ac_status); } &&
    1989          { ac_try='test -z "$ac_cxx_werror_flag"
    1990                          || test ! -s conftest.err'
    1991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1992   (eval $ac_try) 2>&5
    1993   ac_status=$?
    1994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    1995   (exit $ac_status); }; } &&
    1996          { ac_try='test -s conftest.$ac_objext'
    1997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    1998   (eval $ac_try) 2>&5
    1999   ac_status=$?
    2000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2001   (exit $ac_status); }; }; then
    2002   ac_compiler_gnu=yes
    2003 else
    2004   echo "$as_me: failed program was:" >&5
    2005 sed 's/^/| /' conftest.$ac_ext >&5
    2006 
    2007 ac_compiler_gnu=no
    2008 fi
    2009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2010 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
    2011 
    2012 fi
    2013 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
    2014 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
    2015 GXX=`test $ac_compiler_gnu = yes && echo yes`
    2016 ac_test_CXXFLAGS=${CXXFLAGS+set}
    2017 ac_save_CXXFLAGS=$CXXFLAGS
    2018 CXXFLAGS="-g"
    2019 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
    2020 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
    2021 if test "${ac_cv_prog_cxx_g+set}" = set; then
    2022   echo $ECHO_N "(cached) $ECHO_C" >&6
    2023 else
    2024   cat >conftest.$ac_ext <<_ACEOF
    2025 /* confdefs.h.  */
    2026 _ACEOF
    2027 cat confdefs.h >>conftest.$ac_ext
    2028 cat >>conftest.$ac_ext <<_ACEOF
    2029 /* end confdefs.h.  */
    2030 
    2031 int
    2032 main ()
    2033 {
    2034 
    2035   ;
    2036   return 0;
    2037 }
    2038 _ACEOF
    2039 rm -f conftest.$ac_objext
    2040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2041   (eval $ac_compile) 2>conftest.er1
    2042   ac_status=$?
    2043   grep -v '^ *+' conftest.er1 >conftest.err
    2044   rm -f conftest.er1
    2045   cat conftest.err >&5
    2046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2047   (exit $ac_status); } &&
    2048          { ac_try='test -z "$ac_cxx_werror_flag"
    2049                          || test ! -s conftest.err'
    2050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2051   (eval $ac_try) 2>&5
    2052   ac_status=$?
    2053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2054   (exit $ac_status); }; } &&
    2055          { ac_try='test -s conftest.$ac_objext'
    2056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2057   (eval $ac_try) 2>&5
    2058   ac_status=$?
    2059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2060   (exit $ac_status); }; }; then
    2061   ac_cv_prog_cxx_g=yes
    2062 else
    2063   echo "$as_me: failed program was:" >&5
    2064 sed 's/^/| /' conftest.$ac_ext >&5
    2065 
    2066 ac_cv_prog_cxx_g=no
    2067 fi
    2068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2069 fi
    2070 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
    2071 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
    2072 if test "$ac_test_CXXFLAGS" = set; then
    2073   CXXFLAGS=$ac_save_CXXFLAGS
    2074 elif test $ac_cv_prog_cxx_g = yes; then
    2075   if test "$GXX" = yes; then
    2076     CXXFLAGS="-g -O2"
    2077   else
    2078     CXXFLAGS="-g"
    2079   fi
    2080 else
    2081   if test "$GXX" = yes; then
    2082     CXXFLAGS="-O2"
    2083   else
    2084     CXXFLAGS=
    2085   fi
    2086 fi
    2087 for ac_declaration in \
    2088    '' \
    2089    'extern "C" void std::exit (int) throw (); using std::exit;' \
    2090    'extern "C" void std::exit (int); using std::exit;' \
    2091    'extern "C" void exit (int) throw ();' \
    2092    'extern "C" void exit (int);' \
    2093    'void exit (int);'
    2094 do
    2095   cat >conftest.$ac_ext <<_ACEOF
    2096 /* confdefs.h.  */
    2097 _ACEOF
    2098 cat confdefs.h >>conftest.$ac_ext
    2099 cat >>conftest.$ac_ext <<_ACEOF
    2100 /* end confdefs.h.  */
    2101 $ac_declaration
    2102 #include <stdlib.h>
    2103 int
    2104 main ()
    2105 {
    2106 exit (42);
    2107   ;
    2108   return 0;
    2109 }
    2110 _ACEOF
    2111 rm -f conftest.$ac_objext
    2112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2113   (eval $ac_compile) 2>conftest.er1
    2114   ac_status=$?
    2115   grep -v '^ *+' conftest.er1 >conftest.err
    2116   rm -f conftest.er1
    2117   cat conftest.err >&5
    2118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2119   (exit $ac_status); } &&
    2120          { ac_try='test -z "$ac_cxx_werror_flag"
    2121                          || test ! -s conftest.err'
    2122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2123   (eval $ac_try) 2>&5
    2124   ac_status=$?
    2125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2126   (exit $ac_status); }; } &&
    2127          { ac_try='test -s conftest.$ac_objext'
    2128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2129   (eval $ac_try) 2>&5
    2130   ac_status=$?
    2131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2132   (exit $ac_status); }; }; then
    2133   :
    2134 else
    2135   echo "$as_me: failed program was:" >&5
    2136 sed 's/^/| /' conftest.$ac_ext >&5
    2137 
    2138 continue
    2139 fi
    2140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2141   cat >conftest.$ac_ext <<_ACEOF
    2142 /* confdefs.h.  */
    2143 _ACEOF
    2144 cat confdefs.h >>conftest.$ac_ext
    2145 cat >>conftest.$ac_ext <<_ACEOF
    2146 /* end confdefs.h.  */
    2147 $ac_declaration
    2148 int
    2149 main ()
    2150 {
    2151 exit (42);
    2152   ;
    2153   return 0;
    2154 }
    2155 _ACEOF
    2156 rm -f conftest.$ac_objext
    2157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2158   (eval $ac_compile) 2>conftest.er1
    2159   ac_status=$?
    2160   grep -v '^ *+' conftest.er1 >conftest.err
    2161   rm -f conftest.er1
    2162   cat conftest.err >&5
    2163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2164   (exit $ac_status); } &&
    2165          { ac_try='test -z "$ac_cxx_werror_flag"
    2166                          || test ! -s conftest.err'
    2167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2168   (eval $ac_try) 2>&5
    2169   ac_status=$?
    2170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2171   (exit $ac_status); }; } &&
    2172          { ac_try='test -s conftest.$ac_objext'
    2173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2174   (eval $ac_try) 2>&5
    2175   ac_status=$?
    2176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2177   (exit $ac_status); }; }; then
    2178   break
    2179 else
    2180   echo "$as_me: failed program was:" >&5
    2181 sed 's/^/| /' conftest.$ac_ext >&5
    2182 
    2183 fi
    2184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2185 done
    2186 rm -f conftest*
    2187 if test -n "$ac_declaration"; then
    2188   echo '#ifdef __cplusplus' >>confdefs.h
    2189   echo $ac_declaration      >>confdefs.h
    2190   echo '#endif'             >>confdefs.h
    2191 fi
    2192 
    2193 ac_ext=cc
    2194 ac_cpp='$CXXCPP $CPPFLAGS'
    2195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    2198 
    2199 
    2200 ac_ext=cc
    2201 ac_cpp='$CXXCPP $CPPFLAGS'
    2202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    2205 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
    2206 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
    2207 if test -z "$CXXCPP"; then
    2208   if test "${ac_cv_prog_CXXCPP+set}" = set; then
    2209   echo $ECHO_N "(cached) $ECHO_C" >&6
    2210 else
    2211       # Double quotes because CXXCPP needs to be expanded
    2212     for CXXCPP in "$CXX -E" "/lib/cpp"
    2213     do
    2214       ac_preproc_ok=false
    2215 for ac_cxx_preproc_warn_flag in '' yes
    2216 do
    2217   # Use a header file that comes with gcc, so configuring glibc
    2218   # with a fresh cross-compiler works.
    2219   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    2220   # <limits.h> exists even on freestanding compilers.
    2221   # On the NeXT, cc -E runs the code through the compiler's parser,
    2222   # not just through cpp. "Syntax error" is here to catch this case.
    2223   cat >conftest.$ac_ext <<_ACEOF
    2224 /* confdefs.h.  */
    2225 _ACEOF
    2226 cat confdefs.h >>conftest.$ac_ext
    2227 cat >>conftest.$ac_ext <<_ACEOF
    2228 /* end confdefs.h.  */
    2229 #ifdef __STDC__
    2230 # include <limits.h>
    2231 #else
    2232 # include <assert.h>
    2233 #endif
    2234                      Syntax error
    2235 _ACEOF
    2236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    2237   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2238   ac_status=$?
    2239   grep -v '^ *+' conftest.er1 >conftest.err
    2240   rm -f conftest.er1
    2241   cat conftest.err >&5
    2242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2243   (exit $ac_status); } >/dev/null; then
    2244   if test -s conftest.err; then
    2245     ac_cpp_err=$ac_cxx_preproc_warn_flag
    2246     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    2247   else
    2248     ac_cpp_err=
    2249   fi
    2250 else
    2251   ac_cpp_err=yes
    2252 fi
    2253 if test -z "$ac_cpp_err"; then
    2254   :
    2255 else
    2256   echo "$as_me: failed program was:" >&5
    2257 sed 's/^/| /' conftest.$ac_ext >&5
    2258 
    2259   # Broken: fails on valid input.
    2260 continue
    2261 fi
    2262 rm -f conftest.err conftest.$ac_ext
    2263 
    2264   # OK, works on sane cases.  Now check whether non-existent headers
    2265   # can be detected and how.
    2266   cat >conftest.$ac_ext <<_ACEOF
    2267 /* confdefs.h.  */
    2268 _ACEOF
    2269 cat confdefs.h >>conftest.$ac_ext
    2270 cat >>conftest.$ac_ext <<_ACEOF
    2271 /* end confdefs.h.  */
    2272 #include <ac_nonexistent.h>
    2273 _ACEOF
    2274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    2275   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2276   ac_status=$?
    2277   grep -v '^ *+' conftest.er1 >conftest.err
    2278   rm -f conftest.er1
    2279   cat conftest.err >&5
    2280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2281   (exit $ac_status); } >/dev/null; then
    2282   if test -s conftest.err; then
    2283     ac_cpp_err=$ac_cxx_preproc_warn_flag
    2284     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    2285   else
    2286     ac_cpp_err=
    2287   fi
    2288 else
    2289   ac_cpp_err=yes
    2290 fi
    2291 if test -z "$ac_cpp_err"; then
    2292   # Broken: success on invalid input.
    2293 continue
    2294 else
    2295   echo "$as_me: failed program was:" >&5
    2296 sed 's/^/| /' conftest.$ac_ext >&5
    2297 
    2298   # Passes both tests.
    2299 ac_preproc_ok=:
    2300 break
    2301 fi
    2302 rm -f conftest.err conftest.$ac_ext
    2303 
    2304 done
    2305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    2306 rm -f conftest.err conftest.$ac_ext
    2307 if $ac_preproc_ok; then
    2308   break
    2309 fi
    2310 
    2311     done
    2312     ac_cv_prog_CXXCPP=$CXXCPP
    2313 
    2314 fi
    2315   CXXCPP=$ac_cv_prog_CXXCPP
    2316 else
    2317   ac_cv_prog_CXXCPP=$CXXCPP
    2318 fi
    2319 echo "$as_me:$LINENO: result: $CXXCPP" >&5
    2320 echo "${ECHO_T}$CXXCPP" >&6
    2321 ac_preproc_ok=false
    2322 for ac_cxx_preproc_warn_flag in '' yes
    2323 do
    2324   # Use a header file that comes with gcc, so configuring glibc
    2325   # with a fresh cross-compiler works.
    2326   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
    2327   # <limits.h> exists even on freestanding compilers.
    2328   # On the NeXT, cc -E runs the code through the compiler's parser,
    2329   # not just through cpp. "Syntax error" is here to catch this case.
    2330   cat >conftest.$ac_ext <<_ACEOF
    2331 /* confdefs.h.  */
    2332 _ACEOF
    2333 cat confdefs.h >>conftest.$ac_ext
    2334 cat >>conftest.$ac_ext <<_ACEOF
    2335 /* end confdefs.h.  */
    2336 #ifdef __STDC__
    2337 # include <limits.h>
    2338 #else
    2339 # include <assert.h>
    2340 #endif
    2341                      Syntax error
    2342 _ACEOF
    2343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    2344   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2345   ac_status=$?
    2346   grep -v '^ *+' conftest.er1 >conftest.err
    2347   rm -f conftest.er1
    2348   cat conftest.err >&5
    2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2350   (exit $ac_status); } >/dev/null; then
    2351   if test -s conftest.err; then
    2352     ac_cpp_err=$ac_cxx_preproc_warn_flag
    2353     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    2354   else
    2355     ac_cpp_err=
    2356   fi
    2357 else
    2358   ac_cpp_err=yes
    2359 fi
    2360 if test -z "$ac_cpp_err"; then
    2361   :
    2362 else
    2363   echo "$as_me: failed program was:" >&5
    2364 sed 's/^/| /' conftest.$ac_ext >&5
    2365 
    2366   # Broken: fails on valid input.
    2367 continue
    2368 fi
    2369 rm -f conftest.err conftest.$ac_ext
    2370 
    2371   # OK, works on sane cases.  Now check whether non-existent headers
    2372   # can be detected and how.
    2373   cat >conftest.$ac_ext <<_ACEOF
    2374 /* confdefs.h.  */
    2375 _ACEOF
    2376 cat confdefs.h >>conftest.$ac_ext
    2377 cat >>conftest.$ac_ext <<_ACEOF
    2378 /* end confdefs.h.  */
    2379 #include <ac_nonexistent.h>
    2380 _ACEOF
    2381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    2382   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2383   ac_status=$?
    2384   grep -v '^ *+' conftest.er1 >conftest.err
    2385   rm -f conftest.er1
    2386   cat conftest.err >&5
    2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2388   (exit $ac_status); } >/dev/null; then
    2389   if test -s conftest.err; then
    2390     ac_cpp_err=$ac_cxx_preproc_warn_flag
    2391     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    2392   else
    2393     ac_cpp_err=
    2394   fi
    2395 else
    2396   ac_cpp_err=yes
    2397 fi
    2398 if test -z "$ac_cpp_err"; then
    2399   # Broken: success on invalid input.
    2400 continue
    2401 else
    2402   echo "$as_me: failed program was:" >&5
    2403 sed 's/^/| /' conftest.$ac_ext >&5
    2404 
    2405   # Passes both tests.
    2406 ac_preproc_ok=:
    2407 break
    2408 fi
    2409 rm -f conftest.err conftest.$ac_ext
    2410 
    2411 done
    2412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    2413 rm -f conftest.err conftest.$ac_ext
    2414 if $ac_preproc_ok; then
    2415   :
    2416 else
    2417   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
    2418 See \`config.log' for more details." >&5
    2419 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
    2420 See \`config.log' for more details." >&2;}
    2421    { (exit 1); exit 1; }; }
    2422 fi
    2423 
    2424 ac_ext=cc
    2425 ac_cpp='$CXXCPP $CPPFLAGS'
    2426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    2429 
    2430 
    2431 echo "$as_me:$LINENO: checking for egrep" >&5
    2432 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    2433 if test "${ac_cv_prog_egrep+set}" = set; then
    2434   echo $ECHO_N "(cached) $ECHO_C" >&6
    2435 else
    2436   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    2437     then ac_cv_prog_egrep='grep -E'
    2438     else ac_cv_prog_egrep='egrep'
    2439     fi
    2440 fi
    2441 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    2442 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    2443  EGREP=$ac_cv_prog_egrep
    2444 
    2445 
    2446 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
    2447 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
    2448 if test "${ac_cv_header_stdc+set}" = set; then
    2449   echo $ECHO_N "(cached) $ECHO_C" >&6
    2450 else
    2451   cat >conftest.$ac_ext <<_ACEOF
    2452 /* confdefs.h.  */
    2453 _ACEOF
    2454 cat confdefs.h >>conftest.$ac_ext
    2455 cat >>conftest.$ac_ext <<_ACEOF
    2456 /* end confdefs.h.  */
    2457 #include <stdlib.h>
    2458 #include <stdarg.h>
    2459 #include <string.h>
    2460 #include <float.h>
    2461 
    2462 int
    2463 main ()
    2464 {
    2465 
    2466   ;
    2467   return 0;
    2468 }
    2469 _ACEOF
    2470 rm -f conftest.$ac_objext
    2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2472   (eval $ac_compile) 2>conftest.er1
    2473   ac_status=$?
    2474   grep -v '^ *+' conftest.er1 >conftest.err
    2475   rm -f conftest.er1
    2476   cat conftest.err >&5
    2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2478   (exit $ac_status); } &&
    2479          { ac_try='test -z "$ac_cxx_werror_flag"
    2480                          || test ! -s conftest.err'
    2481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2482   (eval $ac_try) 2>&5
    2483   ac_status=$?
    2484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2485   (exit $ac_status); }; } &&
    2486          { ac_try='test -s conftest.$ac_objext'
    2487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2488   (eval $ac_try) 2>&5
    2489   ac_status=$?
    2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2491   (exit $ac_status); }; }; then
    2492   ac_cv_header_stdc=yes
    2493 else
    2494   echo "$as_me: failed program was:" >&5
    2495 sed 's/^/| /' conftest.$ac_ext >&5
    2496 
    2497 ac_cv_header_stdc=no
    2498 fi
    2499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2500 
    2501 if test $ac_cv_header_stdc = yes; then
    2502   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    2503   cat >conftest.$ac_ext <<_ACEOF
    2504 /* confdefs.h.  */
    2505 _ACEOF
    2506 cat confdefs.h >>conftest.$ac_ext
    2507 cat >>conftest.$ac_ext <<_ACEOF
    2508 /* end confdefs.h.  */
    2509 #include <string.h>
    2510 
    2511 _ACEOF
    2512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2513   $EGREP "memchr" >/dev/null 2>&1; then
    2514   :
    2515 else
    2516   ac_cv_header_stdc=no
    2517 fi
    2518 rm -f conftest*
    2519 
    2520 fi
    2521 
    2522 if test $ac_cv_header_stdc = yes; then
    2523   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    2524   cat >conftest.$ac_ext <<_ACEOF
    2525 /* confdefs.h.  */
    2526 _ACEOF
    2527 cat confdefs.h >>conftest.$ac_ext
    2528 cat >>conftest.$ac_ext <<_ACEOF
    2529 /* end confdefs.h.  */
    2530 #include <stdlib.h>
    2531 
    2532 _ACEOF
    2533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    2534   $EGREP "free" >/dev/null 2>&1; then
    2535   :
    2536 else
    2537   ac_cv_header_stdc=no
    2538 fi
    2539 rm -f conftest*
    2540 
    2541 fi
    2542 
    2543 if test $ac_cv_header_stdc = yes; then
    2544   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
    2545   if test "$cross_compiling" = yes; then
    2546   :
    2547 else
    2548   cat >conftest.$ac_ext <<_ACEOF
    2549 /* confdefs.h.  */
    2550 _ACEOF
    2551 cat confdefs.h >>conftest.$ac_ext
    2552 cat >>conftest.$ac_ext <<_ACEOF
    2553 /* end confdefs.h.  */
    2554 #include <ctype.h>
    2555 #if ((' ' & 0x0FF) == 0x020)
    2556 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
    2557 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
    2558 #else
    2559 # define ISLOWER(c) \
    2560                    (('a' <= (c) && (c) <= 'i') \
    2561                      || ('j' <= (c) && (c) <= 'r') \
    2562                      || ('s' <= (c) && (c) <= 'z'))
    2563 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
    2564 #endif
    2565 
    2566 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
    2567 int
    2568 main ()
    2569 {
    2570   int i;
    2571   for (i = 0; i < 256; i++)
    2572     if (XOR (islower (i), ISLOWER (i))
    2573         || toupper (i) != TOUPPER (i))
    2574       exit(2);
    2575   exit (0);
    2576 }
    2577 _ACEOF
    2578 rm -f conftest$ac_exeext
    2579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2580   (eval $ac_link) 2>&5
    2581   ac_status=$?
    2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2583   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
    2584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2585   (eval $ac_try) 2>&5
    2586   ac_status=$?
    2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2588   (exit $ac_status); }; }; then
    2589   :
    2590 else
    2591   echo "$as_me: program exited with status $ac_status" >&5
    2592 echo "$as_me: failed program was:" >&5
    2593 sed 's/^/| /' conftest.$ac_ext >&5
    2594 
    2595 ( exit $ac_status )
    2596 ac_cv_header_stdc=no
    2597 fi
    2598 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
    2599 fi
    2600 fi
    2601 fi
    2602 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
    2603 echo "${ECHO_T}$ac_cv_header_stdc" >&6
    2604 if test $ac_cv_header_stdc = yes; then
    2605 
    2606 cat >>confdefs.h <<\_ACEOF
    2607 #define STDC_HEADERS 1
    2608 _ACEOF
    2609 
    2610 fi
    2611 
    2612 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
    2613 
    2614 
    2615 
    2616 
    2617 
    2618 
    2619 
    2620 
    2621 
    2622 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
    2623                   inttypes.h stdint.h unistd.h
    2624 do
    2625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    2626 echo "$as_me:$LINENO: checking for $ac_header" >&5
    2627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    2628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    2629   echo $ECHO_N "(cached) $ECHO_C" >&6
    2630 else
    2631   cat >conftest.$ac_ext <<_ACEOF
    2632 /* confdefs.h.  */
    2633 _ACEOF
    2634 cat confdefs.h >>conftest.$ac_ext
    2635 cat >>conftest.$ac_ext <<_ACEOF
    2636 /* end confdefs.h.  */
    2637 $ac_includes_default
    2638 
    2639 #include <$ac_header>
    2640 _ACEOF
    2641 rm -f conftest.$ac_objext
    2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2643   (eval $ac_compile) 2>conftest.er1
    2644   ac_status=$?
    2645   grep -v '^ *+' conftest.er1 >conftest.err
    2646   rm -f conftest.er1
    2647   cat conftest.err >&5
    2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2649   (exit $ac_status); } &&
    2650          { ac_try='test -z "$ac_cxx_werror_flag"
    2651                          || test ! -s conftest.err'
    2652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2653   (eval $ac_try) 2>&5
    2654   ac_status=$?
    2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2656   (exit $ac_status); }; } &&
    2657          { ac_try='test -s conftest.$ac_objext'
    2658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2659   (eval $ac_try) 2>&5
    2660   ac_status=$?
    2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2662   (exit $ac_status); }; }; then
    2663   eval "$as_ac_Header=yes"
    2664 else
    2665   echo "$as_me: failed program was:" >&5
    2666 sed 's/^/| /' conftest.$ac_ext >&5
    2667 
    2668 eval "$as_ac_Header=no"
    2669 fi
    2670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2671 fi
    2672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    2673 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    2674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    2675   cat >>confdefs.h <<_ACEOF
    2676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    2677 _ACEOF
    2678 
    2679 fi
    2680 
    2681 done
    2682 
    2683 
    2684 ac_ext=cc
    2685 ac_cpp='$CXXCPP $CPPFLAGS'
    2686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
    2689 
    2690 #if test x"" = x; then
    2691 #  hdr="#include <cstdint>"
    2692 #else
    2693 #  hdr=""
    2694 #fi
    2695 #AC_CHECK_HEADERS([cstdint],[],[],[$hdr])
    2696 
    2697 for ac_header in cstdint
    2698 do
    2699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    2700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    2701   echo "$as_me:$LINENO: checking for $ac_header" >&5
    2702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    2703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    2704   echo $ECHO_N "(cached) $ECHO_C" >&6
    2705 fi
    2706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    2707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    2708 else
    2709   # Is the header compilable?
    2710 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    2711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    2712 cat >conftest.$ac_ext <<_ACEOF
    2713 /* confdefs.h.  */
    2714 _ACEOF
    2715 cat confdefs.h >>conftest.$ac_ext
    2716 cat >>conftest.$ac_ext <<_ACEOF
    2717 /* end confdefs.h.  */
    2718 $ac_includes_default
    2719 #include <$ac_header>
    2720 _ACEOF
    2721 rm -f conftest.$ac_objext
    2722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2723   (eval $ac_compile) 2>conftest.er1
    2724   ac_status=$?
    2725   grep -v '^ *+' conftest.er1 >conftest.err
    2726   rm -f conftest.er1
    2727   cat conftest.err >&5
    2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2729   (exit $ac_status); } &&
    2730          { ac_try='test -z "$ac_cxx_werror_flag"
    2731                          || test ! -s conftest.err'
    2732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2733   (eval $ac_try) 2>&5
    2734   ac_status=$?
    2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2736   (exit $ac_status); }; } &&
    2737          { ac_try='test -s conftest.$ac_objext'
    2738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2739   (eval $ac_try) 2>&5
    2740   ac_status=$?
    2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2742   (exit $ac_status); }; }; then
    2743   ac_header_compiler=yes
    2744 else
    2745   echo "$as_me: failed program was:" >&5
    2746 sed 's/^/| /' conftest.$ac_ext >&5
    2747 
    2748 ac_header_compiler=no
    2749 fi
    2750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2751 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    2752 echo "${ECHO_T}$ac_header_compiler" >&6
    2753 
    2754 # Is the header present?
    2755 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    2756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    2757 cat >conftest.$ac_ext <<_ACEOF
    2758 /* confdefs.h.  */
    2759 _ACEOF
    2760 cat confdefs.h >>conftest.$ac_ext
    2761 cat >>conftest.$ac_ext <<_ACEOF
    2762 /* end confdefs.h.  */
    2763 #include <$ac_header>
    2764 _ACEOF
    2765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    2766   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2767   ac_status=$?
    2768   grep -v '^ *+' conftest.er1 >conftest.err
    2769   rm -f conftest.er1
    2770   cat conftest.err >&5
    2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2772   (exit $ac_status); } >/dev/null; then
    2773   if test -s conftest.err; then
    2774     ac_cpp_err=$ac_cxx_preproc_warn_flag
    2775     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    2776   else
    2777     ac_cpp_err=
    2778   fi
    2779 else
    2780   ac_cpp_err=yes
    2781 fi
    2782 if test -z "$ac_cpp_err"; then
    2783   ac_header_preproc=yes
    2784 else
    2785   echo "$as_me: failed program was:" >&5
    2786 sed 's/^/| /' conftest.$ac_ext >&5
    2787 
    2788   ac_header_preproc=no
    2789 fi
    2790 rm -f conftest.err conftest.$ac_ext
    2791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    2792 echo "${ECHO_T}$ac_header_preproc" >&6
    2793 
    2794 # So?  What about this header?
    2795 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
    2796   yes:no: )
    2797     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    2798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    2799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    2800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    2801     ac_header_preproc=yes
    2802     ;;
    2803   no:yes:* )
    2804     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    2805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    2806     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    2807 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    2808     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    2809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    2810     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    2811 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    2812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    2813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    2814     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    2815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    2816     (
    2817       cat <<\_ASBOX
    2818 ## --------------------------------- ##
    2819 ## Report this to belotti@lehigh.edu ##
    2820 ## --------------------------------- ##
    2821 _ASBOX
    2822     ) |
    2823       sed "s/^/$as_me: WARNING:     /" >&2
    2824     ;;
    2825 esac
    2826 echo "$as_me:$LINENO: checking for $ac_header" >&5
    2827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    2828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    2829   echo $ECHO_N "(cached) $ECHO_C" >&6
    2830 else
    2831   eval "$as_ac_Header=\$ac_header_preproc"
    2832 fi
    2833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    2834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    2835 
    2836 fi
    2837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    2838   cat >>confdefs.h <<_ACEOF
    2839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    2840 _ACEOF
    2841 
    2842 fi
    2843 
    2844 done
    2845 
    2846 
    2847 if test "$ac_cv_header_cstdint" != "yes"; then
    2848   #if test x"" = x; then
    2849 #  hdr="#include <stdint.h>"
    2850 #else
    2851 #  hdr=""
    2852 #fi
    2853 #AC_CHECK_HEADERS([stdint.h],[],[],[$hdr])
    2854 
    2855 for ac_header in stdint.h
    2856 do
    2857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
    2858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    2859   echo "$as_me:$LINENO: checking for $ac_header" >&5
    2860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    2861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    2862   echo $ECHO_N "(cached) $ECHO_C" >&6
    2863 fi
    2864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    2865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    2866 else
    2867   # Is the header compilable?
    2868 echo "$as_me:$LINENO: checking $ac_header usability" >&5
    2869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
    2870 cat >conftest.$ac_ext <<_ACEOF
    2871 /* confdefs.h.  */
    2872 _ACEOF
    2873 cat confdefs.h >>conftest.$ac_ext
    2874 cat >>conftest.$ac_ext <<_ACEOF
    2875 /* end confdefs.h.  */
    2876 $ac_includes_default
    2877 #include <$ac_header>
    2878 _ACEOF
    2879 rm -f conftest.$ac_objext
    2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2881   (eval $ac_compile) 2>conftest.er1
    2882   ac_status=$?
    2883   grep -v '^ *+' conftest.er1 >conftest.err
    2884   rm -f conftest.er1
    2885   cat conftest.err >&5
    2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2887   (exit $ac_status); } &&
    2888          { ac_try='test -z "$ac_cxx_werror_flag"
    2889                          || test ! -s conftest.err'
    2890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2891   (eval $ac_try) 2>&5
    2892   ac_status=$?
    2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2894   (exit $ac_status); }; } &&
    2895          { ac_try='test -s conftest.$ac_objext'
    2896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2897   (eval $ac_try) 2>&5
    2898   ac_status=$?
    2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2900   (exit $ac_status); }; }; then
    2901   ac_header_compiler=yes
    2902 else
    2903   echo "$as_me: failed program was:" >&5
    2904 sed 's/^/| /' conftest.$ac_ext >&5
    2905 
    2906 ac_header_compiler=no
    2907 fi
    2908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
    2910 echo "${ECHO_T}$ac_header_compiler" >&6
    2911 
    2912 # Is the header present?
    2913 echo "$as_me:$LINENO: checking $ac_header presence" >&5
    2914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
    2915 cat >conftest.$ac_ext <<_ACEOF
    2916 /* confdefs.h.  */
    2917 _ACEOF
    2918 cat confdefs.h >>conftest.$ac_ext
    2919 cat >>conftest.$ac_ext <<_ACEOF
    2920 /* end confdefs.h.  */
    2921 #include <$ac_header>
    2922 _ACEOF
    2923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
    2924   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
    2925   ac_status=$?
    2926   grep -v '^ *+' conftest.er1 >conftest.err
    2927   rm -f conftest.er1
    2928   cat conftest.err >&5
    2929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2930   (exit $ac_status); } >/dev/null; then
    2931   if test -s conftest.err; then
    2932     ac_cpp_err=$ac_cxx_preproc_warn_flag
    2933     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
    2934   else
    2935     ac_cpp_err=
    2936   fi
    2937 else
    2938   ac_cpp_err=yes
    2939 fi
    2940 if test -z "$ac_cpp_err"; then
    2941   ac_header_preproc=yes
    2942 else
    2943   echo "$as_me: failed program was:" >&5
    2944 sed 's/^/| /' conftest.$ac_ext >&5
    2945 
    2946   ac_header_preproc=no
    2947 fi
    2948 rm -f conftest.err conftest.$ac_ext
    2949 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
    2950 echo "${ECHO_T}$ac_header_preproc" >&6
    2951 
    2952 # So?  What about this header?
    2953 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
    2954   yes:no: )
    2955     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
    2956 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
    2957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
    2958 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
    2959     ac_header_preproc=yes
    2960     ;;
    2961   no:yes:* )
    2962     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
    2963 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
    2964     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
    2965 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
    2966     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
    2967 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
    2968     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
    2969 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
    2970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
    2971 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
    2972     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
    2973 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
    2974     (
    2975       cat <<\_ASBOX
    2976 ## --------------------------------- ##
    2977 ## Report this to belotti@lehigh.edu ##
    2978 ## --------------------------------- ##
    2979 _ASBOX
    2980     ) |
    2981       sed "s/^/$as_me: WARNING:     /" >&2
    2982     ;;
    2983 esac
    2984 echo "$as_me:$LINENO: checking for $ac_header" >&5
    2985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
    2986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
    2987   echo $ECHO_N "(cached) $ECHO_C" >&6
    2988 else
    2989   eval "$as_ac_Header=\$ac_header_preproc"
    2990 fi
    2991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
    2992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
    2993 
    2994 fi
    2995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
    2996   cat >>confdefs.h <<_ACEOF
    2997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
    2998 _ACEOF
    2999 
    3000 fi
    3001 
    3002 done
    3003 
    3004 
    3005 fi
    3006 ac_ext=c
    3007 ac_cpp='$CPP $CPPFLAGS'
    3008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    3009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3011 
    3012 
    3013 
    3014 #############################################################################
    3015 #              Create the libtool script for the subdirectories             #
    3016 #############################################################################
    3017 
    3018 ac_aux_dir=
    3019 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
    3020   if test -f $ac_dir/install-sh; then
    3021     ac_aux_dir=$ac_dir
    3022     ac_install_sh="$ac_aux_dir/install-sh -c"
    3023     break
    3024   elif test -f $ac_dir/install.sh; then
    3025     ac_aux_dir=$ac_dir
    3026     ac_install_sh="$ac_aux_dir/install.sh -c"
    3027     break
    3028   elif test -f $ac_dir/shtool; then
    3029     ac_aux_dir=$ac_dir
    3030     ac_install_sh="$ac_aux_dir/shtool install -c"
    3031     break
    3032   fi
    3033 done
    3034 if test -z "$ac_aux_dir"; then
    3035   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
    3036 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
    3037    { (exit 1); exit 1; }; }
    3038 fi
    3039 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
    3040 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
    3041 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
    3042 
    3043 # Make sure we can run config.sub.
    3044 $ac_config_sub sun4 >/dev/null 2>&1 ||
    3045   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
    3046 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
    3047    { (exit 1); exit 1; }; }
    3048 
    3049 echo "$as_me:$LINENO: checking build system type" >&5
    3050 echo $ECHO_N "checking build system type... $ECHO_C" >&6
    3051 if test "${ac_cv_build+set}" = set; then
    3052   echo $ECHO_N "(cached) $ECHO_C" >&6
    3053 else
    3054   ac_cv_build_alias=$build_alias
    3055 test -z "$ac_cv_build_alias" &&
    3056   ac_cv_build_alias=`$ac_config_guess`
    3057 test -z "$ac_cv_build_alias" &&
    3058   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
    3059 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
    3060    { (exit 1); exit 1; }; }
    3061 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
    3062   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
    3063 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
    3064    { (exit 1); exit 1; }; }
    3065 
    3066 fi
    3067 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
    3068 echo "${ECHO_T}$ac_cv_build" >&6
    3069 build=$ac_cv_build
    3070 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
    3071 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
    3072 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
    3073 
    3074 
    3075 
    3076 # Check if user wants to produce debugging code
    3077 
    3078 echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
    3079 echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
    3080 
    3081 # Check whether --enable-debug or --disable-debug was given.
    3082 if test "${enable_debug+set}" = set; then
    3083   enableval="$enable_debug"
    3084   case "${enableval}" in
    3085    yes) coin_debug_compile=true
    3086         if test "${enable_shared+set}" = set; then :; else
    3087           enable_shared=no
    3088         fi
    3089         ;;
    3090    no)  coin_debug_compile=false
    3091         ;;
    3092    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
    3093 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
    3094    { (exit 1); exit 1; }; }
    3095         ;;
    3096 esac
    3097 else
    3098   coin_debug_compile=false
    3099 fi;
    3100 
    3101  # m4_ifvaln([],
    3102 
    3103 if test $coin_debug_compile = true; then
    3104   echo "$as_me:$LINENO: result: yes" >&5
    3105 echo "${ECHO_T}yes" >&6
    3106 else
    3107   echo "$as_me:$LINENO: result: no" >&5
    3108 echo "${ECHO_T}no" >&6
    3109 fi
    3110 
    3111  # m4_ifvaln([],
    3112 
    3113 
    3114 
    3115 # Get the name of the C compiler and appropriate compiler options
    3116 case $build in
    3117   *-mingw*)
    3118     if test "${LD+set}" = set; then :; else
    3119       LD=link
    3120     fi
    3121     ;;
    3122  esac
    3123  case $enable_doscompile in
    3124    msvc)
    3125      if test "x${LD+set}" = xset; then :; else
    3126        LD=link
    3127      fi
    3128      ;;
    3129  esac
    3130 
    3131 
    3132  # Check whether --enable-doscompile or --disable-doscompile was given.
    3133 if test "${enable_doscompile+set}" = set; then
    3134   enableval="$enable_doscompile"
    3135   if test "$enable_doscompile" != no; then
    3136      case $build in
    3137        *-cygwin* | *-mingw*) ;;
    3138        *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
    3139 echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
    3140    { (exit 1); exit 1; }; } ;;
    3141      esac
    3142    fi
    3143 else
    3144   enable_doscompile=no
    3145 fi;
    3146  case "$enable_doscompile" in
    3147    mingw)
    3148      case $build in
    3149        *-mingw*) enable_doscompile=no ;;
    3150      esac
    3151      ;;
    3152    msvc|no) ;;
    3153    yes) enable_doscompile=mingw ;;
    3154    *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
    3155                     Try configure --help=recursive." >&5
    3156 echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
    3157                     Try configure --help=recursive." >&2;}
    3158    { (exit 1); exit 1; }; }
    3159       ;;
    3160   esac
    3161   if test "$enable_doscompile" != no ; then
    3162     { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
    3163 echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
    3164   fi
    3165 
    3166 
    3167 
    3168 
    3169 ac_ext=c
    3170 ac_cpp='$CPP $CPPFLAGS'
    3171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    3172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3174 
    3175 
    3176 # For consistency, we set the C compiler to the same value of the C++
    3177 # compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
    3178 if test x"$CXX" != x; then
    3179   case "$CXX" in
    3180     cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    3181       if test x"$CC" = x; then
    3182         CC="$CXX"
    3183         { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
    3184 echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
    3185       fi
    3186       ;;
    3187   esac
    3188 fi
    3189 
    3190 
    3191 
    3192 
    3193 
    3194 
    3195 coin_has_cc=yes
    3196 
    3197 save_cflags="$CFLAGS"
    3198 
    3199 # For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
    3200 # Depending on the user's PATH, when Studio/Workshop cc is not present we may
    3201 # find /usr/ucb/cc, which is almost certainly not a good choice for the C
    3202 # compiler. In this case, put cc after gcc.
    3203 
    3204 case $build in
    3205   *-cygwin* | *-mingw*)
    3206              if test "$enable_doscompile" = msvc ; then
    3207                comps="icl cl"
    3208              else
    3209                comps="gcc cl"
    3210              fi ;;
    3211   *-*-solaris*)
    3212              # Extract the first word of "cc", so it can be a program name with args.
    3213 set dummy cc; ac_word=$2
    3214 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3216 if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
    3217   echo $ECHO_N "(cached) $ECHO_C" >&6
    3218 else
    3219   if test -n "$sol_cc_compiler"; then
    3220   ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
    3221 else
    3222   ac_prog_rejected=no
    3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3224 for as_dir in $PATH
    3225 do
    3226   IFS=$as_save_IFS
    3227   test -z "$as_dir" && as_dir=.
    3228   for ac_exec_ext in '' $ac_executable_extensions; do
    3229   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3230     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    3231        ac_prog_rejected=yes
    3232        continue
    3233      fi
    3234     ac_cv_prog_sol_cc_compiler="cc"
    3235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3236     break 2
    3237   fi
    3238 done
    3239 done
    3240 
    3241 if test $ac_prog_rejected = yes; then
    3242   # We found a bogon in the path, so make sure we never use it.
    3243   set dummy $ac_cv_prog_sol_cc_compiler
    3244   shift
    3245   if test $# != 0; then
    3246     # We chose a different compiler from the bogus one.
    3247     # However, it has the same basename, so the bogon will be chosen
    3248     # first if we set sol_cc_compiler to just the basename; use the full file name.
    3249     shift
    3250     ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
    3251   fi
    3252 fi
    3253 fi
    3254 fi
    3255 sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
    3256 if test -n "$sol_cc_compiler"; then
    3257   echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
    3258 echo "${ECHO_T}$sol_cc_compiler" >&6
    3259 else
    3260   echo "$as_me:$LINENO: result: no" >&5
    3261 echo "${ECHO_T}no" >&6
    3262 fi
    3263 
    3264              if test "$sol_cc_compiler" = "cc" ; then
    3265                comps="cc xlc gcc pgcc icc"
    3266              else
    3267                comps="xlc gcc pgcc icc cc"
    3268              fi
    3269              ;;
    3270   *-linux-*) comps="xlc gcc cc pgcc icc" ;;
    3271   *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
    3272 esac
    3273 
    3274 # We delete the cached value, since the test might not have been
    3275 # performed with our choice of compilers earlier
    3276 $as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
    3277 # AC_MSG_NOTICE([C compiler candidates: $comps])
    3278 ac_ext=c
    3279 ac_cpp='$CPP $CPPFLAGS'
    3280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    3281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    3282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    3283 if test -n "$ac_tool_prefix"; then
    3284   for ac_prog in $comps
    3285   do
    3286     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    3287 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    3288 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3290 if test "${ac_cv_prog_CC+set}" = set; then
    3291   echo $ECHO_N "(cached) $ECHO_C" >&6
    3292 else
    3293   if test -n "$CC"; then
    3294   ac_cv_prog_CC="$CC" # Let the user override the test.
    3295 else
    3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3297 for as_dir in $PATH
    3298 do
    3299   IFS=$as_save_IFS
    3300   test -z "$as_dir" && as_dir=.
    3301   for ac_exec_ext in '' $ac_executable_extensions; do
    3302   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3303     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    3304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3305     break 2
    3306   fi
    3307 done
    3308 done
    3309 
    3310 fi
    3311 fi
    3312 CC=$ac_cv_prog_CC
    3313 if test -n "$CC"; then
    3314   echo "$as_me:$LINENO: result: $CC" >&5
    3315 echo "${ECHO_T}$CC" >&6
    3316 else
    3317   echo "$as_me:$LINENO: result: no" >&5
    3318 echo "${ECHO_T}no" >&6
    3319 fi
    3320 
    3321     test -n "$CC" && break
    3322   done
    3323 fi
    3324 if test -z "$CC"; then
    3325   ac_ct_CC=$CC
    3326   for ac_prog in $comps
    3327 do
    3328   # Extract the first word of "$ac_prog", so it can be a program name with args.
    3329 set dummy $ac_prog; ac_word=$2
    3330 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3332 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    3333   echo $ECHO_N "(cached) $ECHO_C" >&6
    3334 else
    3335   if test -n "$ac_ct_CC"; then
    3336   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    3337 else
    3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3339 for as_dir in $PATH
    3340 do
    3341   IFS=$as_save_IFS
    3342   test -z "$as_dir" && as_dir=.
    3343   for ac_exec_ext in '' $ac_executable_extensions; do
    3344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3345     ac_cv_prog_ac_ct_CC="$ac_prog"
    3346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3347     break 2
    3348   fi
    3349 done
    3350 done
    3351 
    3352 fi
    3353 fi
    3354 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    3355 if test -n "$ac_ct_CC"; then
    3356   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    3357 echo "${ECHO_T}$ac_ct_CC" >&6
    3358 else
    3359   echo "$as_me:$LINENO: result: no" >&5
    3360 echo "${ECHO_T}no" >&6
    3361 fi
    3362 
    3363   test -n "$ac_ct_CC" && break
    3364 done
    3365 
    3366   CC=$ac_ct_CC
    3367 fi
    3368 
    3369 
    3370 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
    3371 See \`config.log' for more details." >&5
    3372 echo "$as_me: error: no acceptable C compiler found in \$PATH
    3373 See \`config.log' for more details." >&2;}
    3374    { (exit 1); exit 1; }; }
    3375 
    3376 # Provide some information about the compiler.
    3377 echo "$as_me:$LINENO:" \
    3378      "checking for C compiler version" >&5
    3379 ac_compiler=`set X $ac_compile; echo $2`
    3380 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    3381   (eval $ac_compiler --version </dev/null >&5) 2>&5
    3382   ac_status=$?
    3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3384   (exit $ac_status); }
    3385 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    3386   (eval $ac_compiler -v </dev/null >&5) 2>&5
    3387   ac_status=$?
    3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3389   (exit $ac_status); }
    3390 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    3391   (eval $ac_compiler -V </dev/null >&5) 2>&5
    3392   ac_status=$?
    3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3394   (exit $ac_status); }
    3395 
    33962225echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    33972226echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     
    42373066
    42383067# Get the name of the C++ compiler and appropriate compiler options
     3068
    42393069 #Let's try if that overcomes configuration problem with VC++ 6.0
    42403070
     
    53404170
    53414171# Provide some information about the compiler.
    5342 echo "$as_me:5342:" \
     4172echo "$as_me:4172:" \
    53434173     "checking for Fortran 77 compiler version" >&5
    53444174ac_compiler=`set X $ac_compile; echo $2`
     
    59314761
    59324762# Initialize automake
     4763echo "$as_me:$LINENO: checking for egrep" >&5
     4764echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     4765if test "${ac_cv_prog_egrep+set}" = set; then
     4766  echo $ECHO_N "(cached) $ECHO_C" >&6
     4767else
     4768  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     4769    then ac_cv_prog_egrep='grep -E'
     4770    else ac_cv_prog_egrep='egrep'
     4771    fi
     4772fi
     4773echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     4774echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     4775 EGREP=$ac_cv_prog_egrep
     4776
     4777
    59334778am__api_version="1.9"
    59344779# Find a good install program.  We prefer a C program (faster),
     
    75846429*-*-irix6*)
    75856430  # Find out which ABI we are using.
    7586   echo '#line 7586 "configure"' > conftest.$ac_ext
     6431  echo '#line 6431 "configure"' > conftest.$ac_ext
    75876432  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    75886433  (eval $ac_compile) 2>&5
     
    79996844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    80006845ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6846
     6847
     6848echo "$as_me:$LINENO: checking for ANSI C header files" >&5
     6849echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
     6850if test "${ac_cv_header_stdc+set}" = set; then
     6851  echo $ECHO_N "(cached) $ECHO_C" >&6
     6852else
     6853  cat >conftest.$ac_ext <<_ACEOF
     6854/* confdefs.h.  */
     6855_ACEOF
     6856cat confdefs.h >>conftest.$ac_ext
     6857cat >>conftest.$ac_ext <<_ACEOF
     6858/* end confdefs.h.  */
     6859#include <stdlib.h>
     6860#include <stdarg.h>
     6861#include <string.h>
     6862#include <float.h>
     6863
     6864int
     6865main ()
     6866{
     6867
     6868  ;
     6869  return 0;
     6870}
     6871_ACEOF
     6872rm -f conftest.$ac_objext
     6873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     6874  (eval $ac_compile) 2>conftest.er1
     6875  ac_status=$?
     6876  grep -v '^ *+' conftest.er1 >conftest.err
     6877  rm -f conftest.er1
     6878  cat conftest.err >&5
     6879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6880  (exit $ac_status); } &&
     6881         { ac_try='test -z "$ac_c_werror_flag"
     6882                         || test ! -s conftest.err'
     6883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6884  (eval $ac_try) 2>&5
     6885  ac_status=$?
     6886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6887  (exit $ac_status); }; } &&
     6888         { ac_try='test -s conftest.$ac_objext'
     6889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6890  (eval $ac_try) 2>&5
     6891  ac_status=$?
     6892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6893  (exit $ac_status); }; }; then
     6894  ac_cv_header_stdc=yes
     6895else
     6896  echo "$as_me: failed program was:" >&5
     6897sed 's/^/| /' conftest.$ac_ext >&5
     6898
     6899ac_cv_header_stdc=no
     6900fi
     6901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     6902
     6903if test $ac_cv_header_stdc = yes; then
     6904  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
     6905  cat >conftest.$ac_ext <<_ACEOF
     6906/* confdefs.h.  */
     6907_ACEOF
     6908cat confdefs.h >>conftest.$ac_ext
     6909cat >>conftest.$ac_ext <<_ACEOF
     6910/* end confdefs.h.  */
     6911#include <string.h>
     6912
     6913_ACEOF
     6914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     6915  $EGREP "memchr" >/dev/null 2>&1; then
     6916  :
     6917else
     6918  ac_cv_header_stdc=no
     6919fi
     6920rm -f conftest*
     6921
     6922fi
     6923
     6924if test $ac_cv_header_stdc = yes; then
     6925  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
     6926  cat >conftest.$ac_ext <<_ACEOF
     6927/* confdefs.h.  */
     6928_ACEOF
     6929cat confdefs.h >>conftest.$ac_ext
     6930cat >>conftest.$ac_ext <<_ACEOF
     6931/* end confdefs.h.  */
     6932#include <stdlib.h>
     6933
     6934_ACEOF
     6935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
     6936  $EGREP "free" >/dev/null 2>&1; then
     6937  :
     6938else
     6939  ac_cv_header_stdc=no
     6940fi
     6941rm -f conftest*
     6942
     6943fi
     6944
     6945if test $ac_cv_header_stdc = yes; then
     6946  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
     6947  if test "$cross_compiling" = yes; then
     6948  :
     6949else
     6950  cat >conftest.$ac_ext <<_ACEOF
     6951/* confdefs.h.  */
     6952_ACEOF
     6953cat confdefs.h >>conftest.$ac_ext
     6954cat >>conftest.$ac_ext <<_ACEOF
     6955/* end confdefs.h.  */
     6956#include <ctype.h>
     6957#if ((' ' & 0x0FF) == 0x020)
     6958# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
     6959# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
     6960#else
     6961# define ISLOWER(c) \
     6962                   (('a' <= (c) && (c) <= 'i') \
     6963                     || ('j' <= (c) && (c) <= 'r') \
     6964                     || ('s' <= (c) && (c) <= 'z'))
     6965# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
     6966#endif
     6967
     6968#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
     6969int
     6970main ()
     6971{
     6972  int i;
     6973  for (i = 0; i < 256; i++)
     6974    if (XOR (islower (i), ISLOWER (i))
     6975        || toupper (i) != TOUPPER (i))
     6976      exit(2);
     6977  exit (0);
     6978}
     6979_ACEOF
     6980rm -f conftest$ac_exeext
     6981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6982  (eval $ac_link) 2>&5
     6983  ac_status=$?
     6984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6985  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
     6986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6987  (eval $ac_try) 2>&5
     6988  ac_status=$?
     6989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6990  (exit $ac_status); }; }; then
     6991  :
     6992else
     6993  echo "$as_me: program exited with status $ac_status" >&5
     6994echo "$as_me: failed program was:" >&5
     6995sed 's/^/| /' conftest.$ac_ext >&5
     6996
     6997( exit $ac_status )
     6998ac_cv_header_stdc=no
     6999fi
     7000rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
     7001fi
     7002fi
     7003fi
     7004echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
     7005echo "${ECHO_T}$ac_cv_header_stdc" >&6
     7006if test $ac_cv_header_stdc = yes; then
     7007
     7008cat >>confdefs.h <<\_ACEOF
     7009#define STDC_HEADERS 1
     7010_ACEOF
     7011
     7012fi
     7013
     7014# On IRIX 5.3, sys/types and inttypes.h are conflicting.
     7015
     7016
     7017
     7018
     7019
     7020
     7021
     7022
     7023
     7024for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
     7025                  inttypes.h stdint.h unistd.h
     7026do
     7027as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
     7028echo "$as_me:$LINENO: checking for $ac_header" >&5
     7029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
     7030if eval "test \"\${$as_ac_Header+set}\" = set"; then
     7031  echo $ECHO_N "(cached) $ECHO_C" >&6
     7032else
     7033  cat >conftest.$ac_ext <<_ACEOF
     7034/* confdefs.h.  */
     7035_ACEOF
     7036cat confdefs.h >>conftest.$ac_ext
     7037cat >>conftest.$ac_ext <<_ACEOF
     7038/* end confdefs.h.  */
     7039$ac_includes_default
     7040
     7041#include <$ac_header>
     7042_ACEOF
     7043rm -f conftest.$ac_objext
     7044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     7045  (eval $ac_compile) 2>conftest.er1
     7046  ac_status=$?
     7047  grep -v '^ *+' conftest.er1 >conftest.err
     7048  rm -f conftest.er1
     7049  cat conftest.err >&5
     7050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7051  (exit $ac_status); } &&
     7052         { ac_try='test -z "$ac_c_werror_flag"
     7053                         || test ! -s conftest.err'
     7054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7055  (eval $ac_try) 2>&5
     7056  ac_status=$?
     7057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7058  (exit $ac_status); }; } &&
     7059         { ac_try='test -s conftest.$ac_objext'
     7060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7061  (eval $ac_try) 2>&5
     7062  ac_status=$?
     7063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7064  (exit $ac_status); }; }; then
     7065  eval "$as_ac_Header=yes"
     7066else
     7067  echo "$as_me: failed program was:" >&5
     7068sed 's/^/| /' conftest.$ac_ext >&5
     7069
     7070eval "$as_ac_Header=no"
     7071fi
     7072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     7073fi
     7074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
     7075echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
     7076if test `eval echo '${'$as_ac_Header'}'` = yes; then
     7077  cat >>confdefs.h <<_ACEOF
     7078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
     7079_ACEOF
     7080
     7081fi
     7082
     7083done
    80017084
    80027085
     
    93108393   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    93118394   -e 's:$: $lt_compiler_flag:'`
    9312    (eval echo "\"\$as_me:9312: $lt_compile\"" >&5)
     8395   (eval echo "\"\$as_me:8395: $lt_compile\"" >&5)
    93138396   (eval "$lt_compile" 2>conftest.err)
    93148397   ac_status=$?
    93158398   cat conftest.err >&5
    9316    echo "$as_me:9316: \$? = $ac_status" >&5
     8399   echo "$as_me:8399: \$? = $ac_status" >&5
    93178400   if (exit $ac_status) && test -s "$ac_outfile"; then
    93188401     # The compiler can only warn and ignore the option if not recognized
     
    95788661   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    95798662   -e 's:$: $lt_compiler_flag:'`
    9580    (eval echo "\"\$as_me:9580: $lt_compile\"" >&5)
     8663   (eval echo "\"\$as_me:8663: $lt_compile\"" >&5)
    95818664   (eval "$lt_compile" 2>conftest.err)
    95828665   ac_status=$?
    95838666   cat conftest.err >&5
    9584    echo "$as_me:9584: \$? = $ac_status" >&5
     8667   echo "$as_me:8667: \$? = $ac_status" >&5
    95858668   if (exit $ac_status) && test -s "$ac_outfile"; then
    95868669     # The compiler can only warn and ignore the option if not recognized
     
    96828765   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    96838766   -e 's:$: $lt_compiler_flag:'`
    9684    (eval echo "\"\$as_me:9684: $lt_compile\"" >&5)
     8767   (eval echo "\"\$as_me:8767: $lt_compile\"" >&5)
    96858768   (eval "$lt_compile" 2>out/conftest.err)
    96868769   ac_status=$?
    96878770   cat out/conftest.err >&5
    9688    echo "$as_me:9688: \$? = $ac_status" >&5
     8771   echo "$as_me:8771: \$? = $ac_status" >&5
    96898772   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    96908773   then
     
    1202711110  lt_status=$lt_dlunknown
    1202811111  cat > conftest.$ac_ext <<EOF
    12029 #line 12029 "configure"
     11112#line 11112 "configure"
    1203011113#include "confdefs.h"
    1203111114
     
    1212711210  lt_status=$lt_dlunknown
    1212811211  cat > conftest.$ac_ext <<EOF
    12129 #line 12129 "configure"
     11212#line 11212 "configure"
    1213011213#include "confdefs.h"
    1213111214
     
    1447113554   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1447213555   -e 's:$: $lt_compiler_flag:'`
    14473    (eval echo "\"\$as_me:14473: $lt_compile\"" >&5)
     13556   (eval echo "\"\$as_me:13556: $lt_compile\"" >&5)
    1447413557   (eval "$lt_compile" 2>conftest.err)
    1447513558   ac_status=$?
    1447613559   cat conftest.err >&5
    14477    echo "$as_me:14477: \$? = $ac_status" >&5
     13560   echo "$as_me:13560: \$? = $ac_status" >&5
    1447813561   if (exit $ac_status) && test -s "$ac_outfile"; then
    1447913562     # The compiler can only warn and ignore the option if not recognized
     
    1457513658   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1457613659   -e 's:$: $lt_compiler_flag:'`
    14577    (eval echo "\"\$as_me:14577: $lt_compile\"" >&5)
     13660   (eval echo "\"\$as_me:13660: $lt_compile\"" >&5)
    1457813661   (eval "$lt_compile" 2>out/conftest.err)
    1457913662   ac_status=$?
    1458013663   cat out/conftest.err >&5
    14581    echo "$as_me:14581: \$? = $ac_status" >&5
     13664   echo "$as_me:13664: \$? = $ac_status" >&5
    1458213665   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1458313666   then
     
    1614515228   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1614615229   -e 's:$: $lt_compiler_flag:'`
    16147    (eval echo "\"\$as_me:16147: $lt_compile\"" >&5)
     15230   (eval echo "\"\$as_me:15230: $lt_compile\"" >&5)
    1614815231   (eval "$lt_compile" 2>conftest.err)
    1614915232   ac_status=$?
    1615015233   cat conftest.err >&5
    16151    echo "$as_me:16151: \$? = $ac_status" >&5
     15234   echo "$as_me:15234: \$? = $ac_status" >&5
    1615215235   if (exit $ac_status) && test -s "$ac_outfile"; then
    1615315236     # The compiler can only warn and ignore the option if not recognized
     
    1624915332   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1625015333   -e 's:$: $lt_compiler_flag:'`
    16251    (eval echo "\"\$as_me:16251: $lt_compile\"" >&5)
     15334   (eval echo "\"\$as_me:15334: $lt_compile\"" >&5)
    1625215335   (eval "$lt_compile" 2>out/conftest.err)
    1625315336   ac_status=$?
    1625415337   cat out/conftest.err >&5
    16255    echo "$as_me:16255: \$? = $ac_status" >&5
     15338   echo "$as_me:15338: \$? = $ac_status" >&5
    1625615339   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1625715340   then
     
    1845617539   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1845717540   -e 's:$: $lt_compiler_flag:'`
    18458    (eval echo "\"\$as_me:18458: $lt_compile\"" >&5)
     17541   (eval echo "\"\$as_me:17541: $lt_compile\"" >&5)
    1845917542   (eval "$lt_compile" 2>conftest.err)
    1846017543   ac_status=$?
    1846117544   cat conftest.err >&5
    18462    echo "$as_me:18462: \$? = $ac_status" >&5
     17545   echo "$as_me:17545: \$? = $ac_status" >&5
    1846317546   if (exit $ac_status) && test -s "$ac_outfile"; then
    1846417547     # The compiler can only warn and ignore the option if not recognized
     
    1872417807   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1872517808   -e 's:$: $lt_compiler_flag:'`
    18726    (eval echo "\"\$as_me:18726: $lt_compile\"" >&5)
     17809   (eval echo "\"\$as_me:17809: $lt_compile\"" >&5)
    1872717810   (eval "$lt_compile" 2>conftest.err)
    1872817811   ac_status=$?
    1872917812   cat conftest.err >&5
    18730    echo "$as_me:18730: \$? = $ac_status" >&5
     17813   echo "$as_me:17813: \$? = $ac_status" >&5
    1873117814   if (exit $ac_status) && test -s "$ac_outfile"; then
    1873217815     # The compiler can only warn and ignore the option if not recognized
     
    1882817911   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1882917912   -e 's:$: $lt_compiler_flag:'`
    18830    (eval echo "\"\$as_me:18830: $lt_compile\"" >&5)
     17913   (eval echo "\"\$as_me:17913: $lt_compile\"" >&5)
    1883117914   (eval "$lt_compile" 2>out/conftest.err)
    1883217915   ac_status=$?
    1883317916   cat out/conftest.err >&5
    18834    echo "$as_me:18834: \$? = $ac_status" >&5
     17917   echo "$as_me:17917: \$? = $ac_status" >&5
    1883517918   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1883617919   then
     
    2295322036s,@ECHO_T@,$ECHO_T,;t t
    2295422037s,@LIBS@,$LIBS,;t t
    22955 s,@CXX@,$CXX,;t t
    22956 s,@CXXFLAGS@,$CXXFLAGS,;t t
    22957 s,@LDFLAGS@,$LDFLAGS,;t t
    22958 s,@CPPFLAGS@,$CPPFLAGS,;t t
    22959 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
    22960 s,@EXEEXT@,$EXEEXT,;t t
    22961 s,@OBJEXT@,$OBJEXT,;t t
    22962 s,@CXXCPP@,$CXXCPP,;t t
    22963 s,@EGREP@,$EGREP,;t t
    2296422038s,@build@,$build,;t t
    2296522039s,@build_cpu@,$build_cpu,;t t
     
    2297322047s,@CC@,$CC,;t t
    2297422048s,@CFLAGS@,$CFLAGS,;t t
     22049s,@LDFLAGS@,$LDFLAGS,;t t
     22050s,@CPPFLAGS@,$CPPFLAGS,;t t
    2297522051s,@ac_ct_CC@,$ac_ct_CC,;t t
     22052s,@EXEEXT@,$EXEEXT,;t t
     22053s,@OBJEXT@,$OBJEXT,;t t
    2297622054s,@MPICC@,$MPICC,;t t
    2297722055s,@CXXDEFS@,$CXXDEFS,;t t
     
    2297922057s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
    2298022058s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
     22059s,@CXX@,$CXX,;t t
     22060s,@CXXFLAGS@,$CXXFLAGS,;t t
     22061s,@ac_ct_CXX@,$ac_ct_CXX,;t t
    2298122062s,@MPICXX@,$MPICXX,;t t
    2298222063s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
     
    2298722068s,@ac_ct_F77@,$ac_ct_F77,;t t
    2298822069s,@MPIF77@,$MPIF77,;t t
     22070s,@EGREP@,$EGREP,;t t
    2298922071s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
    2299022072s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
     
    2304722129s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
    2304822130s,@CPP@,$CPP,;t t
     22131s,@CXXCPP@,$CXXCPP,;t t
    2304922132s,@LIBTOOL@,$LIBTOOL,;t t
    2305022133s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
Note: See TracChangeset for help on using the changeset viewer.