Changeset 122


Ignore:
Timestamp:
Oct 18, 2006 4:24:35 PM (14 years ago)
Author:
andreasw
Message:

check for C compiler when we search for Fortran compiler to make sure we have consistent compilers

Location:
ThirdParty/HSL/stable/1.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/HSL/stable/1.0/Makefile.in

    r93 r122  
    104104ACLOCAL = @ACLOCAL@
    105105ADDLIBS = @ADDLIBS@
     106ADD_CFLAGS = @ADD_CFLAGS@
    106107ADD_FFLAGS = @ADD_FFLAGS@
    107108ALWAYS_FALSE_FALSE = @ALWAYS_FALSE_FALSE@
     
    119120CC = @CC@
    120121CCDEPMODE = @CCDEPMODE@
     122CDEFS = @CDEFS@
    121123CFLAGS = @CFLAGS@
    122124COIN_HAS_MA27_FALSE = @COIN_HAS_MA27_FALSE@
     
    133135CXXFLAGS = @CXXFLAGS@
    134136CYGPATH_W = @CYGPATH_W@
     137DBG_CFLAGS = @DBG_CFLAGS@
    135138DBG_FFLAGS = @DBG_FFLAGS@
    136139DEFS = @DEFS@
     
    164167MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
    165168MAKEINFO = @MAKEINFO@
     169MPICC = @MPICC@
    166170MPIF77 = @MPIF77@
    167171OBJEXT = @OBJEXT@
     172OPT_CFLAGS = @OPT_CFLAGS@
    168173OPT_FFLAGS = @OPT_FFLAGS@
    169174PACKAGE = @PACKAGE@
  • ThirdParty/HSL/stable/1.0/configure

    r98 r122  
    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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS LDFLAGS ac_ct_F77 EXEEXT OBJEXT 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 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 CC CFLAGS CPPFLAGS ac_ct_CC DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL LT_LDFLAGS RPATH_FLAGS COIN_HAS_MA27_TRUE COIN_HAS_MA27_FALSE COIN_HAS_MC19_TRUE COIN_HAS_MC19_FALSE COIN_HAS_MA57_TRUE COIN_HAS_MA57_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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC 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 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL LT_LDFLAGS RPATH_FLAGS COIN_HAS_MA27_TRUE COIN_HAS_MA27_FALSE COIN_HAS_MC19_TRUE COIN_HAS_MC19_FALSE COIN_HAS_MA57_TRUE COIN_HAS_MA57_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_CDEFS_set=${CDEFS+set}
     917ac_env_CDEFS_value=$CDEFS
     918ac_cv_env_CDEFS_set=${CDEFS+set}
     919ac_cv_env_CDEFS_value=$CDEFS
     920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
     921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
     922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
     923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
     924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
     925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
     926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
     927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
     928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
     929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
     930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
     931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
     932ac_env_CC_set=${CC+set}
     933ac_env_CC_value=$CC
     934ac_cv_env_CC_set=${CC+set}
     935ac_cv_env_CC_value=$CC
     936ac_env_CFLAGS_set=${CFLAGS+set}
     937ac_env_CFLAGS_value=$CFLAGS
     938ac_cv_env_CFLAGS_set=${CFLAGS+set}
     939ac_cv_env_CFLAGS_value=$CFLAGS
     940ac_env_LDFLAGS_set=${LDFLAGS+set}
     941ac_env_LDFLAGS_value=$LDFLAGS
     942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
     943ac_cv_env_LDFLAGS_value=$LDFLAGS
     944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
     945ac_env_CPPFLAGS_value=$CPPFLAGS
     946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
     947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
     948ac_env_MPICC_set=${MPICC+set}
     949ac_env_MPICC_value=$MPICC
     950ac_cv_env_MPICC_set=${MPICC+set}
     951ac_cv_env_MPICC_value=$MPICC
    916952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
    917953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
     
    934970ac_cv_env_FFLAGS_set=${FFLAGS+set}
    935971ac_cv_env_FFLAGS_value=$FFLAGS
    936 ac_env_LDFLAGS_set=${LDFLAGS+set}
    937 ac_env_LDFLAGS_value=$LDFLAGS
    938 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    939 ac_cv_env_LDFLAGS_value=$LDFLAGS
    940972ac_env_MPIF77_set=${MPIF77+set}
    941973ac_env_MPIF77_value=$MPIF77
    942974ac_cv_env_MPIF77_set=${MPIF77+set}
    943975ac_cv_env_MPIF77_value=$MPIF77
    944 ac_env_CC_set=${CC+set}
    945 ac_env_CC_value=$CC
    946 ac_cv_env_CC_set=${CC+set}
    947 ac_cv_env_CC_value=$CC
    948 ac_env_CFLAGS_set=${CFLAGS+set}
    949 ac_env_CFLAGS_value=$CFLAGS
    950 ac_cv_env_CFLAGS_set=${CFLAGS+set}
    951 ac_cv_env_CFLAGS_value=$CFLAGS
    952 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    953 ac_env_CPPFLAGS_value=$CPPFLAGS
    954 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    955 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    956976ac_env_CPP_set=${CPP+set}
    957977ac_env_CPP_value=$CPP
     
    10531073  --enable-debug          compile all projects with debug options tests
    10541074  --enable-debug-hsl compile this project (HSL) with debug options
     1075  --enable-doscompile     Under Cygwin, compile so that executables run under
     1076                          DOS (default: disabled)
    10551077  --enable-static[=PKGS]
    10561078                          build static libraries [default=no]
     1079  --disable-dependency-tracking  speeds up one-time build
     1080  --enable-dependency-tracking   do not reject slow dependency extractors
    10571081  --enable-maintainer-mode  enable make rules and dependencies not useful
    10581082                          (and sometimes confusing) to the casual installer
    1059   --disable-dependency-tracking  speeds up one-time build
    1060   --enable-dependency-tracking   do not reject slow dependency extractors
    10611083  --enable-shared[=PKGS]
    10621084                          build shared libraries [default=yes]
     
    10771099
    10781100Some influential environment variables:
     1101  CDEFS       Additional -D flags to be used when compiling C code.
     1102  ADD_CFLAGS  Additional C compiler options
     1103  DBG_CFLAGS  Debug C compiler options
     1104  OPT_CFLAGS  Optimize C compiler options
     1105  CC          C compiler command
     1106  CFLAGS      C compiler flags
     1107  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     1108              nonstandard directory <lib dir>
     1109  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     1110              headers in a nonstandard directory <include dir>
     1111  MPICC       C MPI Compiler
    10791112  ADD_FFLAGS  Additional Fortran compiler options
    10801113  DBG_FFLAGS  Debug Fortran compiler options
     
    10821115  F77         Fortran 77 compiler command
    10831116  FFLAGS      Fortran 77 compiler flags
    1084   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    1085               nonstandard directory <lib dir>
    10861117  MPIF77      Fortran MPI Compiler
    1087   CC          C compiler command
    1088   CFLAGS      C compiler flags
    1089   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    1090               headers in a nonstandard directory <include dir>
    10911118  CPP         C preprocessor
    10921119  CXX         C++ compiler command
     
    17491776esac
    17501777
    1751 
    1752 
    1753 ac_ext=f
    1754 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    1755 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1756 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    1757 
    1758 
    1759 
    1760 
    1761 
    1762 
    1763 coin_has_f77=yes
    1764 
    1765 save_fflags="$FFLAGS"
     1778# Check whether --enable-doscompile or --disable-doscompile was given.
     1779if test "${enable_doscompile+set}" = set; then
     1780  enableval="$enable_doscompile"
     1781  if test "$enable_doscompile = yes"; then
     1782  case $build in
     1783    *-cygwin*) ;;
     1784    *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes only sense under Cygwin" >&5
     1785echo "$as_me: error: --enable-doscompile option makes only sense under Cygwin" >&2;}
     1786   { (exit 1); exit 1; }; } ;;
     1787  esac
     1788fi
     1789else
     1790  enable_doscompile=no
     1791fi;
     1792
     1793
     1794
     1795
     1796ac_ext=c
     1797ac_cpp='$CPP $CPPFLAGS'
     1798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1800ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1801
     1802
     1803# For consistency, we set the C compiler to the same value of the C++
     1804# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
     1805if test x"$CXX" != x; then
     1806  case "$CXX" in
     1807    cl*)
     1808      if test x"$CC" = x; then
     1809        CC="$CXX"
     1810        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
     1811echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
     1812      fi
     1813      ;;
     1814  esac
     1815fi
     1816
     1817
     1818
     1819
     1820
     1821
     1822coin_has_cc=yes
     1823
     1824save_cflags="$CFLAGS"
    17661825case $build in
    17671826  *-cygwin* | *-mingw*)
    1768              comps="gfortran g77 ifort fl32" ;;
    1769   *)         comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
     1827             comps="gcc cl" ;;
     1828  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
     1829  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
    17701830esac
    17711831
    17721832# We delete the cached value, since the test might not have been
    17731833# performed with out choise of compilers earlier
    1774 $as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
    1775 ac_ext=f
    1776 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    1777 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1778 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     1834$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
     1835ac_ext=c
     1836ac_cpp='$CPP $CPPFLAGS'
     1837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1839ac_compiler_gnu=$ac_cv_c_compiler_gnu
    17791840if test -n "$ac_tool_prefix"; then
    17801841  for ac_prog in $comps
     
    17841845echo "$as_me:$LINENO: checking for $ac_word" >&5
    17851846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1786 if test "${ac_cv_prog_F77+set}" = set; then
     1847if test "${ac_cv_prog_CC+set}" = set; then
    17871848  echo $ECHO_N "(cached) $ECHO_C" >&6
    17881849else
    1789   if test -n "$F77"; then
    1790   ac_cv_prog_F77="$F77" # Let the user override the test.
     1850  if test -n "$CC"; then
     1851  ac_cv_prog_CC="$CC" # Let the user override the test.
    17911852else
    17921853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    17971858  for ac_exec_ext in '' $ac_executable_extensions; do
    17981859  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1799     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
     1860    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    18001861    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    18011862    break 2
     
    18061867fi
    18071868fi
    1808 F77=$ac_cv_prog_F77
    1809 if test -n "$F77"; then
    1810   echo "$as_me:$LINENO: result: $F77" >&5
    1811 echo "${ECHO_T}$F77" >&6
     1869CC=$ac_cv_prog_CC
     1870if test -n "$CC"; then
     1871  echo "$as_me:$LINENO: result: $CC" >&5
     1872echo "${ECHO_T}$CC" >&6
    18121873else
    18131874  echo "$as_me:$LINENO: result: no" >&5
     
    18151876fi
    18161877
    1817     test -n "$F77" && break
     1878    test -n "$CC" && break
    18181879  done
    18191880fi
    1820 if test -z "$F77"; then
    1821   ac_ct_F77=$F77
     1881if test -z "$CC"; then
     1882  ac_ct_CC=$CC
    18221883  for ac_prog in $comps
    18231884do
     
    18261887echo "$as_me:$LINENO: checking for $ac_word" >&5
    18271888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1828 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
     1889if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    18291890  echo $ECHO_N "(cached) $ECHO_C" >&6
    18301891else
    1831   if test -n "$ac_ct_F77"; then
    1832   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
     1892  if test -n "$ac_ct_CC"; then
     1893  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    18331894else
    18341895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    18391900  for ac_exec_ext in '' $ac_executable_extensions; do
    18401901  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1841     ac_cv_prog_ac_ct_F77="$ac_prog"
     1902    ac_cv_prog_ac_ct_CC="$ac_prog"
    18421903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    18431904    break 2
     
    18481909fi
    18491910fi
    1850 ac_ct_F77=$ac_cv_prog_ac_ct_F77
    1851 if test -n "$ac_ct_F77"; then
    1852   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
    1853 echo "${ECHO_T}$ac_ct_F77" >&6
     1911ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1912if test -n "$ac_ct_CC"; then
     1913  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1914echo "${ECHO_T}$ac_ct_CC" >&6
    18541915else
    18551916  echo "$as_me:$LINENO: result: no" >&5
     
    18571918fi
    18581919
    1859   test -n "$ac_ct_F77" && break
     1920  test -n "$ac_ct_CC" && break
    18601921done
    18611922
    1862   F77=$ac_ct_F77
    1863 fi
    1864 
     1923  CC=$ac_ct_CC
     1924fi
     1925
     1926
     1927test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     1928See \`config.log' for more details." >&5
     1929echo "$as_me: error: no acceptable C compiler found in \$PATH
     1930See \`config.log' for more details." >&2;}
     1931   { (exit 1); exit 1; }; }
    18651932
    18661933# Provide some information about the compiler.
    1867 echo "$as_me:1867:" \
    1868      "checking for Fortran 77 compiler version" >&5
     1934echo "$as_me:$LINENO:" \
     1935     "checking for C compiler version" >&5
    18691936ac_compiler=`set X $ac_compile; echo $2`
    18701937{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     
    18831950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18841951  (exit $ac_status); }
    1885 rm -f a.out
    18861952
    18871953cat >conftest.$ac_ext <<_ACEOF
    1888       program main
    1889 
    1890       end
     1954/* confdefs.h.  */
     1955_ACEOF
     1956cat confdefs.h >>conftest.$ac_ext
     1957cat >>conftest.$ac_ext <<_ACEOF
     1958/* end confdefs.h.  */
     1959
     1960int
     1961main ()
     1962{
     1963
     1964  ;
     1965  return 0;
     1966}
    18911967_ACEOF
    18921968ac_clean_files_save=$ac_clean_files
     
    18951971# It will help us diagnose broken compilers, and finding out an intuition
    18961972# of exeext.
    1897 echo "$as_me:$LINENO: checking for Fortran 77 compiler default output file name" >&5
    1898 echo $ECHO_N "checking for Fortran 77 compiler default output file name... $ECHO_C" >&6
     1973echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
     1974echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
    18991975ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    19001976if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
     
    19392015sed 's/^/| /' conftest.$ac_ext >&5
    19402016
    1941 { { echo "$as_me:$LINENO: error: Fortran 77 compiler cannot create executables
     2017{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
    19422018See \`config.log' for more details." >&5
    1943 echo "$as_me: error: Fortran 77 compiler cannot create executables
     2019echo "$as_me: error: C compiler cannot create executables
    19442020See \`config.log' for more details." >&2;}
    19452021   { (exit 77); exit 77; }; }
     
    19522028# Check the compiler produces executables we can run.  If not, either
    19532029# the compiler is broken, or we cross compile.
    1954 echo "$as_me:$LINENO: checking whether the Fortran 77 compiler works" >&5
    1955 echo $ECHO_N "checking whether the Fortran 77 compiler works... $ECHO_C" >&6
     2030echo "$as_me:$LINENO: checking whether the C compiler works" >&5
     2031echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
    19562032# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    19572033# If not cross compiling, check that we can run a simple program.
     
    19682044        cross_compiling=yes
    19692045    else
    1970         { { echo "$as_me:$LINENO: error: cannot run Fortran 77 compiled programs.
     2046        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
    19712047If you meant to cross compile, use \`--host'.
    19722048See \`config.log' for more details." >&5
    1973 echo "$as_me: error: cannot run Fortran 77 compiled programs.
     2049echo "$as_me: error: cannot run C compiled programs.
    19742050If you meant to cross compile, use \`--host'.
    19752051See \`config.log' for more details." >&2;}
     
    20322108else
    20332109  cat >conftest.$ac_ext <<_ACEOF
    2034       program main
    2035 
    2036       end
     2110/* confdefs.h.  */
     2111_ACEOF
     2112cat confdefs.h >>conftest.$ac_ext
     2113cat >>conftest.$ac_ext <<_ACEOF
     2114/* end confdefs.h.  */
     2115
     2116int
     2117main ()
     2118{
     2119
     2120  ;
     2121  return 0;
     2122}
    20372123_ACEOF
    20382124rm -f conftest.o conftest.obj
     
    20662152OBJEXT=$ac_cv_objext
    20672153ac_objext=$OBJEXT
    2068 # If we don't use `.F' as extension, the preprocessor is not run on the
    2069 # input file.  (Note that this only needs to work for GNU compilers.)
    2070 ac_save_ext=$ac_ext
    2071 ac_ext=F
    2072 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
    2073 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
    2074 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
    2075   echo $ECHO_N "(cached) $ECHO_C" >&6
    2076 else
    2077   cat >conftest.$ac_ext <<_ACEOF
    2078       program main
    2079 #ifndef __GNUC__
    2080        choke me
    2081 #endif
    2082 
    2083       end
    2084 _ACEOF
    2085 rm -f conftest.$ac_objext
    2086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2087   (eval $ac_compile) 2>conftest.er1
    2088   ac_status=$?
    2089   grep -v '^ *+' conftest.er1 >conftest.err
    2090   rm -f conftest.er1
    2091   cat conftest.err >&5
    2092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2093   (exit $ac_status); } &&
    2094          { ac_try='test -z "$ac_f77_werror_flag"
    2095                          || test ! -s conftest.err'
    2096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2097   (eval $ac_try) 2>&5
    2098   ac_status=$?
    2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2100   (exit $ac_status); }; } &&
    2101          { ac_try='test -s conftest.$ac_objext'
    2102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2103   (eval $ac_try) 2>&5
    2104   ac_status=$?
    2105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2106   (exit $ac_status); }; }; then
    2107   ac_compiler_gnu=yes
    2108 else
    2109   echo "$as_me: failed program was:" >&5
    2110 sed 's/^/| /' conftest.$ac_ext >&5
    2111 
    2112 ac_compiler_gnu=no
    2113 fi
    2114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2115 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
    2116 
    2117 fi
    2118 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
    2119 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
    2120 ac_ext=$ac_save_ext
    2121 ac_test_FFLAGS=${FFLAGS+set}
    2122 ac_save_FFLAGS=$FFLAGS
    2123 FFLAGS=
    2124 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
    2125 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
    2126 if test "${ac_cv_prog_f77_g+set}" = set; then
    2127   echo $ECHO_N "(cached) $ECHO_C" >&6
    2128 else
    2129   FFLAGS=-g
    2130 cat >conftest.$ac_ext <<_ACEOF
    2131       program main
    2132 
    2133       end
    2134 _ACEOF
    2135 rm -f conftest.$ac_objext
    2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2137   (eval $ac_compile) 2>conftest.er1
    2138   ac_status=$?
    2139   grep -v '^ *+' conftest.er1 >conftest.err
    2140   rm -f conftest.er1
    2141   cat conftest.err >&5
    2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2143   (exit $ac_status); } &&
    2144          { ac_try='test -z "$ac_f77_werror_flag"
    2145                          || test ! -s conftest.err'
    2146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2147   (eval $ac_try) 2>&5
    2148   ac_status=$?
    2149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2150   (exit $ac_status); }; } &&
    2151          { ac_try='test -s conftest.$ac_objext'
    2152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2153   (eval $ac_try) 2>&5
    2154   ac_status=$?
    2155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2156   (exit $ac_status); }; }; then
    2157   ac_cv_prog_f77_g=yes
    2158 else
    2159   echo "$as_me: failed program was:" >&5
    2160 sed 's/^/| /' conftest.$ac_ext >&5
    2161 
    2162 ac_cv_prog_f77_g=no
    2163 fi
    2164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2165 
    2166 fi
    2167 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
    2168 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
    2169 if test "$ac_test_FFLAGS" = set; then
    2170   FFLAGS=$ac_save_FFLAGS
    2171 elif test $ac_cv_prog_f77_g = yes; then
    2172   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    2173     FFLAGS="-g -O2"
    2174   else
    2175     FFLAGS="-g"
    2176   fi
    2177 else
    2178   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    2179     FFLAGS="-O2"
    2180   else
    2181     FFLAGS=
    2182   fi
    2183 fi
    2184 
    2185 G77=`test $ac_compiler_gnu = yes && echo yes`
    2186 ac_ext=f
    2187 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    2188 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2189 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    2190 
    2191 FFLAGS="$save_fflags"
    2192 
    2193 # Check if a project specific FFLAGS variable has been set
    2194 if test x$COIN_PRJCT != x; then
    2195   eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
    2196   if test x$coin_tmp = xset; then
    2197     eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
    2198   fi
    2199 fi
    2200 
    2201 if test x"$FFLAGS" = x; then
    2202 
    2203   coin_add_fflags=
    2204   coin_opt_fflags=
    2205   coin_dbg_fflags=
    2206   coin_warn_fflags=
    2207 
    2208   if test "$G77" = "yes"; then
    2209     coin_opt_fflags="-O3 -fomit-frame-pointer"
    2210     coin_add_fflags="-pipe"
    2211     coin_dbg_fflags="-g"
    2212     case $build in
    2213       *-cygwin*)
    2214         FFLAGS="-mno-cygwin"
    2215         cat >conftest.$ac_ext <<_ACEOF
    2216       program main
    2217       write(*,*) 'Hello world'
    2218       end
    2219 _ACEOF
    2220 rm -f conftest.$ac_objext conftest$ac_exeext
    2221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2222   (eval $ac_link) 2>conftest.er1
    2223   ac_status=$?
    2224   grep -v '^ *+' conftest.er1 >conftest.err
    2225   rm -f conftest.er1
    2226   cat conftest.err >&5
    2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2228   (exit $ac_status); } &&
    2229          { ac_try='test -z "$ac_f77_werror_flag"
    2230                          || test ! -s conftest.err'
    2231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2232   (eval $ac_try) 2>&5
    2233   ac_status=$?
    2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2235   (exit $ac_status); }; } &&
    2236          { ac_try='test -s conftest$ac_exeext'
    2237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2238   (eval $ac_try) 2>&5
    2239   ac_status=$?
    2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2241   (exit $ac_status); }; }; then
    2242   coin_add_fflags="-mno-cygwin $coin_add_fflags"
    2243 else
    2244   echo "$as_me: failed program was:" >&5
    2245 sed 's/^/| /' conftest.$ac_ext >&5
    2246 
    2247 fi
    2248 rm -f conftest.err conftest.$ac_objext \
    2249       conftest$ac_exeext conftest.$ac_ext
    2250         FFLAGS=
    2251       ;;
    2252     esac
    2253   else
    2254     case $build in
    2255       *-cygwin* | *-mingw*)
    2256         case $F77 in
    2257           ifort* | */ifort*)
    2258             coin_opt_fflags='-O3'
    2259             coin_add_fflags='-nologo -MT'
    2260             coin_dbg_fflags='-debug'
    2261           ;;
    2262         esac
    2263         ;;
    2264       *-linux-*)
    2265         case $F77 in
    2266           ifc* | */ifc* | ifort* | */ifort*)
    2267             coin_opt_fflags="-O3 -ip"
    2268             coin_add_fflags="-cm -w90 -w95"
    2269             coin_dbg_fflags="-g -CA -CB -CS"
    2270             # Check if -i_dynamic is necessary (for new glibc library)
    2271             FFLAGS=
    2272             cat >conftest.$ac_ext <<_ACEOF
    2273       program main
    2274       write(*,*) 'Hello world'
    2275       end
    2276 _ACEOF
    2277 rm -f conftest.$ac_objext conftest$ac_exeext
    2278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2279   (eval $ac_link) 2>conftest.er1
    2280   ac_status=$?
    2281   grep -v '^ *+' conftest.er1 >conftest.err
    2282   rm -f conftest.er1
    2283   cat conftest.err >&5
    2284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2285   (exit $ac_status); } &&
    2286          { ac_try='test -z "$ac_f77_werror_flag"
    2287                          || test ! -s conftest.err'
    2288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2289   (eval $ac_try) 2>&5
    2290   ac_status=$?
    2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2292   (exit $ac_status); }; } &&
    2293          { ac_try='test -s conftest$ac_exeext'
    2294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2295   (eval $ac_try) 2>&5
    2296   ac_status=$?
    2297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2298   (exit $ac_status); }; }; then
    2299   :
    2300 else
    2301   echo "$as_me: failed program was:" >&5
    2302 sed 's/^/| /' conftest.$ac_ext >&5
    2303 
    2304 coin_add_fflags="-i_dynamic $coin_add_fflags"
    2305 fi
    2306 rm -f conftest.err conftest.$ac_objext \
    2307       conftest$ac_exeext conftest.$ac_ext
    2308             ;;
    2309           pgf77* | */pgf77* | pgf90* | */pgf90*)
    2310             coin_opt_fflags="-fast"
    2311             coin_add_fflags="-Kieee -pc 64"
    2312             coin_dbg_fflags="-g"
    2313           ;;
    2314         esac
    2315         ;;
    2316       *-ibm-*)
    2317         case "$F77" in
    2318           xlf* | */xlf* | mpxlf* | */mpxlf* )
    2319             coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
    2320             coin_add_fflags="-bmaxdata:0x80000000"
    2321             coin_dbg_fflags="-g -C"
    2322             ;;
    2323         esac
    2324         ;;
    2325       *-hp-*)
    2326         coin_opt_fflags="+O3"
    2327         coin_add_fflags="+U77"
    2328         coin_dbg_fflags="-C -g"
    2329         ;;
    2330       *-sun-*)
    2331         coin_opt_fflags="-O4"
    2332         coin_dbg_fflags="-g"
    2333         ;;
    2334       *-sgi-*)
    2335         coin_opt_fflags="-O5 -OPT:Olimit=0"
    2336         coin_dbg_fflags="-g"
    2337         ;;
    2338     esac
    2339   fi
    2340 
    2341   if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
    2342     coin_dbg_fflags="-g"
    2343   fi
    2344 
    2345   if test -z "$coin_opt_fflags"; then
    2346     # Try if -O option works if nothing else is set
    2347     FFLAGS=-O
    2348     cat >conftest.$ac_ext <<_ACEOF
    2349       program main
    2350       integer i
    2351       end
    2352 _ACEOF
    2353 rm -f conftest.$ac_objext conftest$ac_exeext
    2354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2355   (eval $ac_link) 2>conftest.er1
    2356   ac_status=$?
    2357   grep -v '^ *+' conftest.er1 >conftest.err
    2358   rm -f conftest.er1
    2359   cat conftest.err >&5
    2360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2361   (exit $ac_status); } &&
    2362          { ac_try='test -z "$ac_f77_werror_flag"
    2363                          || test ! -s conftest.err'
    2364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2365   (eval $ac_try) 2>&5
    2366   ac_status=$?
    2367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2368   (exit $ac_status); }; } &&
    2369          { ac_try='test -s conftest$ac_exeext'
    2370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2371   (eval $ac_try) 2>&5
    2372   ac_status=$?
    2373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2374   (exit $ac_status); }; }; then
    2375   coin_opt_fflags="-O"
    2376 else
    2377   echo "$as_me: failed program was:" >&5
    2378 sed 's/^/| /' conftest.$ac_ext >&5
    2379 
    2380 fi
    2381 rm -f conftest.err conftest.$ac_objext \
    2382       conftest$ac_exeext conftest.$ac_ext
    2383   fi
    2384 
    2385   if test x${DBG_FFLAGS+set} != xset; then
    2386     DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
    2387   fi
    2388   if test x${OPT_FFLAGS+set} != xset; then
    2389     OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
    2390   fi
    2391 
    2392   DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
    2393   OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
    2394 
    2395   if test "$coin_debug_compile" = "true"; then
    2396     FFLAGS="$DBG_FFLAGS"
    2397   else
    2398     FFLAGS="$OPT_FFLAGS"
    2399   fi
    2400 else
    2401   FFLAGS="$FFLAGS $ADD_FFLAGS"
    2402   if test x${DBG_FFLAGS+set} != xset; then
    2403     DBG_FFLAGS="$FFLAGS"
    2404   fi
    2405   if test x${OPT_FFLAGS+set} != xset; then
    2406     OPT_FFLAGS="$FFLAGS"
    2407   fi
    2408 fi
    2409 
    2410 # Try if FFLAGS works
    2411 cat >conftest.$ac_ext <<_ACEOF
    2412       program main
    2413       integer i
    2414       end
    2415 _ACEOF
    2416 rm -f conftest.$ac_objext conftest$ac_exeext
    2417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2418   (eval $ac_link) 2>conftest.er1
    2419   ac_status=$?
    2420   grep -v '^ *+' conftest.er1 >conftest.err
    2421   rm -f conftest.er1
    2422   cat conftest.err >&5
    2423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2424   (exit $ac_status); } &&
    2425          { ac_try='test -z "$ac_f77_werror_flag"
    2426                          || test ! -s conftest.err'
    2427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2428   (eval $ac_try) 2>&5
    2429   ac_status=$?
    2430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2431   (exit $ac_status); }; } &&
    2432          { ac_try='test -s conftest$ac_exeext'
    2433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2434   (eval $ac_try) 2>&5
    2435   ac_status=$?
    2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2437   (exit $ac_status); }; }; then
    2438   :
    2439 else
    2440   echo "$as_me: failed program was:" >&5
    2441 sed 's/^/| /' conftest.$ac_ext >&5
    2442 
    2443 FFLAGS=
    2444 fi
    2445 rm -f conftest.err conftest.$ac_objext \
    2446       conftest$ac_exeext conftest.$ac_ext
    2447 if test -z "$FFLAGS"; then
    2448   { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
    2449 echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
    2450   FFLAGS='-O'
    2451   cat >conftest.$ac_ext <<_ACEOF
    2452       program main
    2453       integer i
    2454       end
    2455 _ACEOF
    2456 rm -f conftest.$ac_objext conftest$ac_exeext
    2457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2458   (eval $ac_link) 2>conftest.er1
    2459   ac_status=$?
    2460   grep -v '^ *+' conftest.er1 >conftest.err
    2461   rm -f conftest.er1
    2462   cat conftest.err >&5
    2463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2464   (exit $ac_status); } &&
    2465          { ac_try='test -z "$ac_f77_werror_flag"
    2466                          || test ! -s conftest.err'
    2467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2468   (eval $ac_try) 2>&5
    2469   ac_status=$?
    2470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2471   (exit $ac_status); }; } &&
    2472          { ac_try='test -s conftest$ac_exeext'
    2473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2474   (eval $ac_try) 2>&5
    2475   ac_status=$?
    2476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2477   (exit $ac_status); }; }; then
    2478   :
    2479 else
    2480   echo "$as_me: failed program was:" >&5
    2481 sed 's/^/| /' conftest.$ac_ext >&5
    2482 
    2483 FFLAGS=
    2484 fi
    2485 rm -f conftest.err conftest.$ac_objext \
    2486       conftest$ac_exeext conftest.$ac_ext
    2487   if test -z "$FFLAGS"; then
    2488     { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
    2489 echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
    2490   fi
    2491 fi
    2492 
    2493 { echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
    2494 echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
    2495 
    2496 
    2497 if test x"$MPIF77" = x; then :; else
    2498   { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
    2499 echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
    2500   F77="$MPIF77"
    2501 fi
    2502 
    2503 case "$F77" in
    2504   ifort*)
    2505     case $build in
    2506   *-mingw*)
    2507     if test "${LD+set}" = set; then :; else
    2508       LD=link
    2509     fi
    2510     ;;
    2511 esac
    2512 
    2513     ;;
    2514 esac
    2515 
    2516 ac_ext=c
    2517 ac_cpp='$CPP $CPPFLAGS'
    2518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2521 
    2522 
    2523 
    2524 # Need egrep later on
    2525 echo "$as_me:$LINENO: checking for egrep" >&5
    2526 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    2527 if test "${ac_cv_prog_egrep+set}" = set; then
    2528   echo $ECHO_N "(cached) $ECHO_C" >&6
    2529 else
    2530   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    2531     then ac_cv_prog_egrep='grep -E'
    2532     else ac_cv_prog_egrep='egrep'
    2533     fi
    2534 fi
    2535 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    2536 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    2537  EGREP=$ac_cv_prog_egrep
    2538 
    2539 
    2540 
    2541 # Initialize autotools
    2542 
    2543 # On Cygwin, building DLLs doesn't work
    2544 case $build in
    2545   *-cygwin*)
    2546     coin_disable_shared=yes
    2547     platform=Cygwin
    2548   ;;
    2549   *-mingw*)
    2550     coin_disable_shared=yes
    2551     platform="Msys"
    2552 #    case "$CXX" in
    2553 #      cl*)
    2554 #        coin_disable_shared=yes
    2555 #        platform="Msys with cl"
    2556 #    ;;
    2557 #    esac
    2558   ;;
    2559 esac
    2560 if test x"$coin_disable_shared" = xyes; then
    2561   if test x"$enable_shared" = xyes; then
    2562     { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
    2563 echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
    2564   fi
    2565   enable_shared=no
    2566 fi
    2567 # By default, we only want the shared objects to be compiled
    2568 # Check whether --enable-static or --disable-static was given.
    2569 if test "${enable_static+set}" = set; then
    2570   enableval="$enable_static"
    2571   p=${PACKAGE-default}
    2572     case $enableval in
    2573     yes) enable_static=yes ;;
    2574     no) enable_static=no ;;
    2575     *)
    2576      enable_static=no
    2577       # Look at the argument we got.  We use all the common list separators.
    2578       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    2579       for pkg in $enableval; do
    2580         IFS="$lt_save_ifs"
    2581         if test "X$pkg" = "X$p"; then
    2582           enable_static=yes
    2583         fi
    2584       done
    2585       IFS="$lt_save_ifs"
    2586       ;;
    2587     esac
    2588 else
    2589   enable_static=no
    2590 fi;
    2591 
    2592 
    2593 
    2594 am__api_version="1.9"
    2595 # Find a good install program.  We prefer a C program (faster),
    2596 # so one script is as good as another.  But avoid the broken or
    2597 # incompatible versions:
    2598 # SysV /etc/install, /usr/sbin/install
    2599 # SunOS /usr/etc/install
    2600 # IRIX /sbin/install
    2601 # AIX /bin/install
    2602 # AmigaOS /C/install, which installs bootblocks on floppy discs
    2603 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    2604 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
    2605 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    2606 # OS/2's system install, which has a completely different semantic
    2607 # ./install, which can be erroneously created by make from ./install.sh.
    2608 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
    2609 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
    2610 if test -z "$INSTALL"; then
    2611 if test "${ac_cv_path_install+set}" = set; then
    2612   echo $ECHO_N "(cached) $ECHO_C" >&6
    2613 else
    2614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2615 for as_dir in $PATH
    2616 do
    2617   IFS=$as_save_IFS
    2618   test -z "$as_dir" && as_dir=.
    2619   # Account for people who put trailing slashes in PATH elements.
    2620 case $as_dir/ in
    2621   ./ | .// | /cC/* | \
    2622   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
    2623   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
    2624   /usr/ucb/* ) ;;
    2625   *)
    2626     # OSF1 and SCO ODT 3.0 have their own names for install.
    2627     # Don't use installbsd from OSF since it installs stuff as root
    2628     # by default.
    2629     for ac_prog in ginstall scoinst install; do
    2630       for ac_exec_ext in '' $ac_executable_extensions; do
    2631         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    2632           if test $ac_prog = install &&
    2633             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    2634             # AIX install.  It has an incompatible calling convention.
    2635             :
    2636           elif test $ac_prog = install &&
    2637             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    2638             # program-specific install script used by HP pwplus--don't use.
    2639             :
    2640           else
    2641             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
    2642             break 3
    2643           fi
    2644         fi
    2645       done
    2646     done
    2647     ;;
    2648 esac
    2649 done
    2650 
    2651 
    2652 fi
    2653   if test "${ac_cv_path_install+set}" = set; then
    2654     INSTALL=$ac_cv_path_install
    2655   else
    2656     # As a last resort, use the slow shell script.  We don't cache a
    2657     # path for INSTALL within a source directory, because that will
    2658     # break other packages using the cache if that directory is
    2659     # removed, or if the path is relative.
    2660     INSTALL=$ac_install_sh
    2661   fi
    2662 fi
    2663 echo "$as_me:$LINENO: result: $INSTALL" >&5
    2664 echo "${ECHO_T}$INSTALL" >&6
    2665 
    2666 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
    2667 # It thinks the first close brace ends the variable substitution.
    2668 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    2669 
    2670 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
    2671 
    2672 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    2673 
    2674 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
    2675 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
    2676 # Just in case
    2677 sleep 1
    2678 echo timestamp > conftest.file
    2679 # Do `set' in a subshell so we don't clobber the current shell's
    2680 # arguments.  Must try -L first in case configure is actually a
    2681 # symlink; some systems play weird games with the mod time of symlinks
    2682 # (eg FreeBSD returns the mod time of the symlink's containing
    2683 # directory).
    2684 if (
    2685    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
    2686    if test "$*" = "X"; then
    2687       # -L didn't work.
    2688       set X `ls -t $srcdir/configure conftest.file`
    2689    fi
    2690    rm -f conftest.file
    2691    if test "$*" != "X $srcdir/configure conftest.file" \
    2692       && test "$*" != "X conftest.file $srcdir/configure"; then
    2693 
    2694       # If neither matched, then we have a broken ls.  This can happen
    2695       # if, for instance, CONFIG_SHELL is bash and it inherits a
    2696       # broken ls alias from the environment.  This has actually
    2697       # happened.  Such a system could not be considered "sane".
    2698       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
    2699 alias in your environment" >&5
    2700 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
    2701 alias in your environment" >&2;}
    2702    { (exit 1); exit 1; }; }
    2703    fi
    2704 
    2705    test "$2" = conftest.file
    2706    )
    2707 then
    2708    # Ok.
    2709    :
    2710 else
    2711    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
    2712 Check your system clock" >&5
    2713 echo "$as_me: error: newly created file is older than distributed files!
    2714 Check your system clock" >&2;}
    2715    { (exit 1); exit 1; }; }
    2716 fi
    2717 echo "$as_me:$LINENO: result: yes" >&5
    2718 echo "${ECHO_T}yes" >&6
    2719 test "$program_prefix" != NONE &&
    2720   program_transform_name="s,^,$program_prefix,;$program_transform_name"
    2721 # Use a double $ so make ignores it.
    2722 test "$program_suffix" != NONE &&
    2723   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
    2724 # Double any \ or $.  echo might interpret backslashes.
    2725 # By default was `s,x,x', remove it if useless.
    2726 cat <<\_ACEOF >conftest.sed
    2727 s/[\\$]/&&/g;s/;s,x,x,$//
    2728 _ACEOF
    2729 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
    2730 rm conftest.sed
    2731 
    2732 # expand $ac_aux_dir to an absolute path
    2733 am_aux_dir=`cd $ac_aux_dir && pwd`
    2734 
    2735 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
    2736 # Use eval to expand $SHELL
    2737 if eval "$MISSING --run true"; then
    2738   am_missing_run="$MISSING --run "
    2739 else
    2740   am_missing_run=
    2741   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
    2742 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
    2743 fi
    2744 
    2745 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
    2746   # We used to keeping the `.' as first argument, in order to
    2747   # allow $(mkdir_p) to be used without argument.  As in
    2748   #   $(mkdir_p) $(somedir)
    2749   # where $(somedir) is conditionally defined.  However this is wrong
    2750   # for two reasons:
    2751   #  1. if the package is installed by a user who cannot write `.'
    2752   #     make install will fail,
    2753   #  2. the above comment should most certainly read
    2754   #     $(mkdir_p) $(DESTDIR)$(somedir)
    2755   #     so it does not work when $(somedir) is undefined and
    2756   #     $(DESTDIR) is not.
    2757   #  To support the latter case, we have to write
    2758   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
    2759   #  so the `.' trick is pointless.
    2760   mkdir_p='mkdir -p --'
    2761 else
    2762   # On NextStep and OpenStep, the `mkdir' command does not
    2763   # recognize any option.  It will interpret all options as
    2764   # directories to create, and then abort because `.' already
    2765   # exists.
    2766   for d in ./-p ./--version;
    2767   do
    2768     test -d $d && rmdir $d
    2769   done
    2770   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
    2771   if test -f "$ac_aux_dir/mkinstalldirs"; then
    2772     mkdir_p='$(mkinstalldirs)'
    2773   else
    2774     mkdir_p='$(install_sh) -d'
    2775   fi
    2776 fi
    2777 
    2778 for ac_prog in gawk mawk nawk awk
    2779 do
    2780   # Extract the first word of "$ac_prog", so it can be a program name with args.
    2781 set dummy $ac_prog; ac_word=$2
    2782 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2784 if test "${ac_cv_prog_AWK+set}" = set; then
    2785   echo $ECHO_N "(cached) $ECHO_C" >&6
    2786 else
    2787   if test -n "$AWK"; then
    2788   ac_cv_prog_AWK="$AWK" # Let the user override the test.
    2789 else
    2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2791 for as_dir in $PATH
    2792 do
    2793   IFS=$as_save_IFS
    2794   test -z "$as_dir" && as_dir=.
    2795   for ac_exec_ext in '' $ac_executable_extensions; do
    2796   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2797     ac_cv_prog_AWK="$ac_prog"
    2798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2799     break 2
    2800   fi
    2801 done
    2802 done
    2803 
    2804 fi
    2805 fi
    2806 AWK=$ac_cv_prog_AWK
    2807 if test -n "$AWK"; then
    2808   echo "$as_me:$LINENO: result: $AWK" >&5
    2809 echo "${ECHO_T}$AWK" >&6
    2810 else
    2811   echo "$as_me:$LINENO: result: no" >&5
    2812 echo "${ECHO_T}no" >&6
    2813 fi
    2814 
    2815   test -n "$AWK" && break
    2816 done
    2817 
    2818 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
    2819 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
    2820 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
    2821 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    2822   echo $ECHO_N "(cached) $ECHO_C" >&6
    2823 else
    2824   cat >conftest.make <<\_ACEOF
    2825 all:
    2826         @echo 'ac_maketemp="$(MAKE)"'
    2827 _ACEOF
    2828 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    2829 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    2830 if test -n "$ac_maketemp"; then
    2831   eval ac_cv_prog_make_${ac_make}_set=yes
    2832 else
    2833   eval ac_cv_prog_make_${ac_make}_set=no
    2834 fi
    2835 rm -f conftest.make
    2836 fi
    2837 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    2838   echo "$as_me:$LINENO: result: yes" >&5
    2839 echo "${ECHO_T}yes" >&6
    2840   SET_MAKE=
    2841 else
    2842   echo "$as_me:$LINENO: result: no" >&5
    2843 echo "${ECHO_T}no" >&6
    2844   SET_MAKE="MAKE=${MAKE-make}"
    2845 fi
    2846 
    2847 rm -rf .tst 2>/dev/null
    2848 mkdir .tst 2>/dev/null
    2849 if test -d .tst; then
    2850   am__leading_dot=.
    2851 else
    2852   am__leading_dot=_
    2853 fi
    2854 rmdir .tst 2>/dev/null
    2855 
    2856 DEPDIR="${am__leading_dot}deps"
    2857 
    2858           ac_config_commands="$ac_config_commands depfiles"
    2859 
    2860 
    2861 am_make=${MAKE-make}
    2862 cat > confinc << 'END'
    2863 am__doit:
    2864         @echo done
    2865 .PHONY: am__doit
    2866 END
    2867 # If we don't find an include directive, just comment out the code.
    2868 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
    2869 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
    2870 am__include="#"
    2871 am__quote=
    2872 _am_result=none
    2873 # First try GNU make style include.
    2874 echo "include confinc" > confmf
    2875 # We grep out `Entering directory' and `Leaving directory'
    2876 # messages which can occur if `w' ends up in MAKEFLAGS.
    2877 # In particular we don't look at `^make:' because GNU make might
    2878 # be invoked under some other name (usually "gmake"), in which
    2879 # case it prints its new name instead of `make'.
    2880 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
    2881    am__include=include
    2882    am__quote=
    2883    _am_result=GNU
    2884 fi
    2885 # Now try BSD make style include.
    2886 if test "$am__include" = "#"; then
    2887    echo '.include "confinc"' > confmf
    2888    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
    2889       am__include=.include
    2890       am__quote="\""
    2891       _am_result=BSD
    2892    fi
    2893 fi
    2894 
    2895 
    2896 echo "$as_me:$LINENO: result: $_am_result" >&5
    2897 echo "${ECHO_T}$_am_result" >&6
    2898 rm -f confinc confmf
    2899 
    2900 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
    2901 if test "${enable_dependency_tracking+set}" = set; then
    2902   enableval="$enable_dependency_tracking"
    2903 
    2904 fi;
    2905 if test "x$enable_dependency_tracking" != xno; then
    2906   am_depcomp="$ac_aux_dir/depcomp"
    2907   AMDEPBACKSLASH='\'
    2908 fi
    2909 
    2910 
    2911 if test "x$enable_dependency_tracking" != xno; then
    2912   AMDEP_TRUE=
    2913   AMDEP_FALSE='#'
    2914 else
    2915   AMDEP_TRUE='#'
    2916   AMDEP_FALSE=
    2917 fi
    2918 
    2919 
    2920 
    2921 ac_ext=c
    2922 ac_cpp='$CPP $CPPFLAGS'
    2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2926 if test -n "$ac_tool_prefix"; then
    2927   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    2928 set dummy ${ac_tool_prefix}gcc; ac_word=$2
    2929 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2931 if test "${ac_cv_prog_CC+set}" = set; then
    2932   echo $ECHO_N "(cached) $ECHO_C" >&6
    2933 else
    2934   if test -n "$CC"; then
    2935   ac_cv_prog_CC="$CC" # Let the user override the test.
    2936 else
    2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2938 for as_dir in $PATH
    2939 do
    2940   IFS=$as_save_IFS
    2941   test -z "$as_dir" && as_dir=.
    2942   for ac_exec_ext in '' $ac_executable_extensions; do
    2943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2944     ac_cv_prog_CC="${ac_tool_prefix}gcc"
    2945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2946     break 2
    2947   fi
    2948 done
    2949 done
    2950 
    2951 fi
    2952 fi
    2953 CC=$ac_cv_prog_CC
    2954 if test -n "$CC"; then
    2955   echo "$as_me:$LINENO: result: $CC" >&5
    2956 echo "${ECHO_T}$CC" >&6
    2957 else
    2958   echo "$as_me:$LINENO: result: no" >&5
    2959 echo "${ECHO_T}no" >&6
    2960 fi
    2961 
    2962 fi
    2963 if test -z "$ac_cv_prog_CC"; then
    2964   ac_ct_CC=$CC
    2965   # Extract the first word of "gcc", so it can be a program name with args.
    2966 set dummy gcc; ac_word=$2
    2967 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2969 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    2970   echo $ECHO_N "(cached) $ECHO_C" >&6
    2971 else
    2972   if test -n "$ac_ct_CC"; then
    2973   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    2974 else
    2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2976 for as_dir in $PATH
    2977 do
    2978   IFS=$as_save_IFS
    2979   test -z "$as_dir" && as_dir=.
    2980   for ac_exec_ext in '' $ac_executable_extensions; do
    2981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2982     ac_cv_prog_ac_ct_CC="gcc"
    2983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2984     break 2
    2985   fi
    2986 done
    2987 done
    2988 
    2989 fi
    2990 fi
    2991 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    2992 if test -n "$ac_ct_CC"; then
    2993   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    2994 echo "${ECHO_T}$ac_ct_CC" >&6
    2995 else
    2996   echo "$as_me:$LINENO: result: no" >&5
    2997 echo "${ECHO_T}no" >&6
    2998 fi
    2999 
    3000   CC=$ac_ct_CC
    3001 else
    3002   CC="$ac_cv_prog_CC"
    3003 fi
    3004 
    3005 if test -z "$CC"; then
    3006   if test -n "$ac_tool_prefix"; then
    3007   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    3008 set dummy ${ac_tool_prefix}cc; ac_word=$2
    3009 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3011 if test "${ac_cv_prog_CC+set}" = set; then
    3012   echo $ECHO_N "(cached) $ECHO_C" >&6
    3013 else
    3014   if test -n "$CC"; then
    3015   ac_cv_prog_CC="$CC" # Let the user override the test.
    3016 else
    3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3018 for as_dir in $PATH
    3019 do
    3020   IFS=$as_save_IFS
    3021   test -z "$as_dir" && as_dir=.
    3022   for ac_exec_ext in '' $ac_executable_extensions; do
    3023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3024     ac_cv_prog_CC="${ac_tool_prefix}cc"
    3025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3026     break 2
    3027   fi
    3028 done
    3029 done
    3030 
    3031 fi
    3032 fi
    3033 CC=$ac_cv_prog_CC
    3034 if test -n "$CC"; then
    3035   echo "$as_me:$LINENO: result: $CC" >&5
    3036 echo "${ECHO_T}$CC" >&6
    3037 else
    3038   echo "$as_me:$LINENO: result: no" >&5
    3039 echo "${ECHO_T}no" >&6
    3040 fi
    3041 
    3042 fi
    3043 if test -z "$ac_cv_prog_CC"; then
    3044   ac_ct_CC=$CC
    3045   # Extract the first word of "cc", so it can be a program name with args.
    3046 set dummy cc; ac_word=$2
    3047 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    3050   echo $ECHO_N "(cached) $ECHO_C" >&6
    3051 else
    3052   if test -n "$ac_ct_CC"; then
    3053   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    3054 else
    3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3056 for as_dir in $PATH
    3057 do
    3058   IFS=$as_save_IFS
    3059   test -z "$as_dir" && as_dir=.
    3060   for ac_exec_ext in '' $ac_executable_extensions; do
    3061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3062     ac_cv_prog_ac_ct_CC="cc"
    3063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3064     break 2
    3065   fi
    3066 done
    3067 done
    3068 
    3069 fi
    3070 fi
    3071 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    3072 if test -n "$ac_ct_CC"; then
    3073   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    3074 echo "${ECHO_T}$ac_ct_CC" >&6
    3075 else
    3076   echo "$as_me:$LINENO: result: no" >&5
    3077 echo "${ECHO_T}no" >&6
    3078 fi
    3079 
    3080   CC=$ac_ct_CC
    3081 else
    3082   CC="$ac_cv_prog_CC"
    3083 fi
    3084 
    3085 fi
    3086 if test -z "$CC"; then
    3087   # Extract the first word of "cc", so it can be a program name with args.
    3088 set dummy cc; ac_word=$2
    3089 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3091 if test "${ac_cv_prog_CC+set}" = set; then
    3092   echo $ECHO_N "(cached) $ECHO_C" >&6
    3093 else
    3094   if test -n "$CC"; then
    3095   ac_cv_prog_CC="$CC" # Let the user override the test.
    3096 else
    3097   ac_prog_rejected=no
    3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3099 for as_dir in $PATH
    3100 do
    3101   IFS=$as_save_IFS
    3102   test -z "$as_dir" && as_dir=.
    3103   for ac_exec_ext in '' $ac_executable_extensions; do
    3104   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3105     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    3106        ac_prog_rejected=yes
    3107        continue
    3108      fi
    3109     ac_cv_prog_CC="cc"
    3110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3111     break 2
    3112   fi
    3113 done
    3114 done
    3115 
    3116 if test $ac_prog_rejected = yes; then
    3117   # We found a bogon in the path, so make sure we never use it.
    3118   set dummy $ac_cv_prog_CC
    3119   shift
    3120   if test $# != 0; then
    3121     # We chose a different compiler from the bogus one.
    3122     # However, it has the same basename, so the bogon will be chosen
    3123     # first if we set CC to just the basename; use the full file name.
    3124     shift
    3125     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
    3126   fi
    3127 fi
    3128 fi
    3129 fi
    3130 CC=$ac_cv_prog_CC
    3131 if test -n "$CC"; then
    3132   echo "$as_me:$LINENO: result: $CC" >&5
    3133 echo "${ECHO_T}$CC" >&6
    3134 else
    3135   echo "$as_me:$LINENO: result: no" >&5
    3136 echo "${ECHO_T}no" >&6
    3137 fi
    3138 
    3139 fi
    3140 if test -z "$CC"; then
    3141   if test -n "$ac_tool_prefix"; then
    3142   for ac_prog in cl
    3143   do
    3144     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    3145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    3146 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3148 if test "${ac_cv_prog_CC+set}" = set; then
    3149   echo $ECHO_N "(cached) $ECHO_C" >&6
    3150 else
    3151   if test -n "$CC"; then
    3152   ac_cv_prog_CC="$CC" # Let the user override the test.
    3153 else
    3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3155 for as_dir in $PATH
    3156 do
    3157   IFS=$as_save_IFS
    3158   test -z "$as_dir" && as_dir=.
    3159   for ac_exec_ext in '' $ac_executable_extensions; do
    3160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3161     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    3162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3163     break 2
    3164   fi
    3165 done
    3166 done
    3167 
    3168 fi
    3169 fi
    3170 CC=$ac_cv_prog_CC
    3171 if test -n "$CC"; then
    3172   echo "$as_me:$LINENO: result: $CC" >&5
    3173 echo "${ECHO_T}$CC" >&6
    3174 else
    3175   echo "$as_me:$LINENO: result: no" >&5
    3176 echo "${ECHO_T}no" >&6
    3177 fi
    3178 
    3179     test -n "$CC" && break
    3180   done
    3181 fi
    3182 if test -z "$CC"; then
    3183   ac_ct_CC=$CC
    3184   for ac_prog in cl
    3185 do
    3186   # Extract the first word of "$ac_prog", so it can be a program name with args.
    3187 set dummy $ac_prog; ac_word=$2
    3188 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3190 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    3191   echo $ECHO_N "(cached) $ECHO_C" >&6
    3192 else
    3193   if test -n "$ac_ct_CC"; then
    3194   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    3195 else
    3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3197 for as_dir in $PATH
    3198 do
    3199   IFS=$as_save_IFS
    3200   test -z "$as_dir" && as_dir=.
    3201   for ac_exec_ext in '' $ac_executable_extensions; do
    3202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3203     ac_cv_prog_ac_ct_CC="$ac_prog"
    3204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3205     break 2
    3206   fi
    3207 done
    3208 done
    3209 
    3210 fi
    3211 fi
    3212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    3213 if test -n "$ac_ct_CC"; then
    3214   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    3215 echo "${ECHO_T}$ac_ct_CC" >&6
    3216 else
    3217   echo "$as_me:$LINENO: result: no" >&5
    3218 echo "${ECHO_T}no" >&6
    3219 fi
    3220 
    3221   test -n "$ac_ct_CC" && break
    3222 done
    3223 
    3224   CC=$ac_ct_CC
    3225 fi
    3226 
    3227 fi
    3228 
    3229 
    3230 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
    3231 See \`config.log' for more details." >&5
    3232 echo "$as_me: error: no acceptable C compiler found in \$PATH
    3233 See \`config.log' for more details." >&2;}
    3234    { (exit 1); exit 1; }; }
    3235 
    3236 # Provide some information about the compiler.
    3237 echo "$as_me:$LINENO:" \
    3238      "checking for C compiler version" >&5
    3239 ac_compiler=`set X $ac_compile; echo $2`
    3240 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    3241   (eval $ac_compiler --version </dev/null >&5) 2>&5
    3242   ac_status=$?
    3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3244   (exit $ac_status); }
    3245 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    3246   (eval $ac_compiler -v </dev/null >&5) 2>&5
    3247   ac_status=$?
    3248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3249   (exit $ac_status); }
    3250 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    3251   (eval $ac_compiler -V </dev/null >&5) 2>&5
    3252   ac_status=$?
    3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3254   (exit $ac_status); }
    3255 
    32562154echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    32572155echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     
    36482546ac_compiler_gnu=$ac_cv_c_compiler_gnu
    36492547
    3650 depcc="$CC"   am_compiler_list=
    3651 
    3652 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
    3653 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
    3654 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
     2548CFLAGS="$save_cflags"
     2549
     2550# Check if a project specific CFLAGS variable has been set
     2551if test x$COIN_PRJCT != x; then
     2552  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
     2553  if test x$coin_tmp = xset; then
     2554    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
     2555  fi
     2556fi
     2557
     2558if test x"$CFLAGS" = x; then
     2559
     2560  coin_add_cflags=
     2561  coin_opt_cflags=
     2562  coin_dbg_cflags=
     2563  coin_warn_cflags=
     2564
     2565  if test "$GCC" = "yes"; then
     2566    case "$CC" in
     2567      icc* | */icc*)
     2568        ;;
     2569      *)
     2570        coin_opt_cflags="-O3 -fomit-frame-pointer"
     2571        coin_add_cflags="-pipe"
     2572        coin_dbg_cflags="-g"
     2573        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
     2574        if test "$enable_doscompile" = yes; then
     2575          case $build in
     2576            *-cygwin*)
     2577              CFLAGS="-mno-cygwin"
     2578              cat >conftest.$ac_ext <<_ACEOF
     2579/* confdefs.h.  */
     2580_ACEOF
     2581cat confdefs.h >>conftest.$ac_ext
     2582cat >>conftest.$ac_ext <<_ACEOF
     2583/* end confdefs.h.  */
     2584
     2585int
     2586main ()
     2587{
     2588int i=0; i++;
     2589  ;
     2590  return 0;
     2591}
     2592_ACEOF
     2593rm -f conftest.$ac_objext conftest$ac_exeext
     2594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2595  (eval $ac_link) 2>conftest.er1
     2596  ac_status=$?
     2597  grep -v '^ *+' conftest.er1 >conftest.err
     2598  rm -f conftest.er1
     2599  cat conftest.err >&5
     2600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2601  (exit $ac_status); } &&
     2602         { ac_try='test -z "$ac_c_werror_flag"
     2603                         || test ! -s conftest.err'
     2604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2605  (eval $ac_try) 2>&5
     2606  ac_status=$?
     2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2608  (exit $ac_status); }; } &&
     2609         { ac_try='test -s conftest$ac_exeext'
     2610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2611  (eval $ac_try) 2>&5
     2612  ac_status=$?
     2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2614  (exit $ac_status); }; }; then
     2615  coin_add_cflags="-mno-cygwin $coin_add_cflags"
     2616else
     2617  echo "$as_me: failed program was:" >&5
     2618sed 's/^/| /' conftest.$ac_ext >&5
     2619
     2620fi
     2621rm -f conftest.err conftest.$ac_objext \
     2622      conftest$ac_exeext conftest.$ac_ext
     2623              CFLAGS=
     2624            ;;
     2625          esac
     2626        fi
     2627    esac
     2628  fi
     2629  if test -z "$coin_opt_cflags"; then
     2630    case $build in
     2631      *-cygwin* | *-mingw*)
     2632        case "$CC" in
     2633          cl* | */cl*)
     2634            coin_opt_cflags='-O2'
     2635            coin_add_cflags='-nologo'
     2636            coin_dbg_cflags='-Yd'
     2637            ;;
     2638        esac
     2639        ;;
     2640      *-linux-*)
     2641        case "$CC" in
     2642          icc* | */icc*)
     2643            coin_opt_cflags="-O3 -ip"
     2644            coin_add_cflags=""
     2645            coin_dbg_cflags="-g"
     2646            # Check if -i_dynamic is necessary (for new glibc library)
     2647            CFLAGS=
     2648            cat >conftest.$ac_ext <<_ACEOF
     2649/* confdefs.h.  */
     2650_ACEOF
     2651cat confdefs.h >>conftest.$ac_ext
     2652cat >>conftest.$ac_ext <<_ACEOF
     2653/* end confdefs.h.  */
     2654
     2655int
     2656main ()
     2657{
     2658int i=0; i++;
     2659  ;
     2660  return 0;
     2661}
     2662_ACEOF
     2663rm -f conftest.$ac_objext conftest$ac_exeext
     2664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2665  (eval $ac_link) 2>conftest.er1
     2666  ac_status=$?
     2667  grep -v '^ *+' conftest.er1 >conftest.err
     2668  rm -f conftest.er1
     2669  cat conftest.err >&5
     2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2671  (exit $ac_status); } &&
     2672         { ac_try='test -z "$ac_c_werror_flag"
     2673                         || test ! -s conftest.err'
     2674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2675  (eval $ac_try) 2>&5
     2676  ac_status=$?
     2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2678  (exit $ac_status); }; } &&
     2679         { ac_try='test -s conftest$ac_exeext'
     2680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2681  (eval $ac_try) 2>&5
     2682  ac_status=$?
     2683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2684  (exit $ac_status); }; }; then
     2685  :
     2686else
     2687  echo "$as_me: failed program was:" >&5
     2688sed 's/^/| /' conftest.$ac_ext >&5
     2689
     2690coin_add_cflags="-i_dynamic $coin_add_cflags"
     2691fi
     2692rm -f conftest.err conftest.$ac_objext \
     2693      conftest$ac_exeext conftest.$ac_ext
     2694            ;;
     2695          pgcc* | */pgcc*)
     2696            coin_opt_cflags="-fast"
     2697            coin_add_cflags="-Kieee -pc 64"
     2698            coin_dbg_cflags="-g"
     2699            ;;
     2700        esac
     2701        ;;
     2702      *-ibm-*)
     2703        case "$CC" in
     2704          xlc* | */xlc* | mpxlc* | */mpxlc*)
     2705            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
     2706            coin_add_cflags="-bmaxdata:0x80000000"
     2707            coin_dbg_cflags="-g"
     2708          ;;
     2709        esac
     2710        ;;
     2711      *-hp-*)
     2712        coin_opt_cflags="-O"
     2713        coin_add_cflags="-Ae"
     2714        coin_dbg_cflags="-g"
     2715        ;;
     2716      *-sun-*)
     2717        coin_opt_cflags="-xO4"
     2718        coin_dbg_cflags="-g"
     2719        ;;
     2720      *-sgi-*)
     2721        coin_opt_cflags="-O -OPT:Olimit=0"
     2722        coin_dbg_cflags="-g"
     2723        ;;
     2724    esac
     2725  fi
     2726
     2727  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
     2728    coin_dbg_cflags="-g"
     2729  fi
     2730
     2731  if test -z "$coin_opt_cflags"; then
     2732    # Try if -O option works if nothing else is set
     2733    CFLAGS="-O"
     2734    cat >conftest.$ac_ext <<_ACEOF
     2735/* confdefs.h.  */
     2736_ACEOF
     2737cat confdefs.h >>conftest.$ac_ext
     2738cat >>conftest.$ac_ext <<_ACEOF
     2739/* end confdefs.h.  */
     2740
     2741int
     2742main ()
     2743{
     2744int i=0; i++;
     2745  ;
     2746  return 0;
     2747}
     2748_ACEOF
     2749rm -f conftest.$ac_objext conftest$ac_exeext
     2750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2751  (eval $ac_link) 2>conftest.er1
     2752  ac_status=$?
     2753  grep -v '^ *+' conftest.er1 >conftest.err
     2754  rm -f conftest.er1
     2755  cat conftest.err >&5
     2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2757  (exit $ac_status); } &&
     2758         { ac_try='test -z "$ac_c_werror_flag"
     2759                         || test ! -s conftest.err'
     2760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2761  (eval $ac_try) 2>&5
     2762  ac_status=$?
     2763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2764  (exit $ac_status); }; } &&
     2765         { ac_try='test -s conftest$ac_exeext'
     2766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2767  (eval $ac_try) 2>&5
     2768  ac_status=$?
     2769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2770  (exit $ac_status); }; }; then
     2771  coin_opt_cflags="-O"
     2772else
     2773  echo "$as_me: failed program was:" >&5
     2774sed 's/^/| /' conftest.$ac_ext >&5
     2775
     2776fi
     2777rm -f conftest.err conftest.$ac_objext \
     2778      conftest$ac_exeext conftest.$ac_ext
     2779  fi
     2780
     2781  if test x${DBG_CFLAGS+set} != xset; then
     2782    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
     2783  fi
     2784  if test x${OPT_CFLAGS+set} != xset; then
     2785    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
     2786  fi
     2787
     2788  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
     2789  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
     2790
     2791  if test "$coin_debug_compile" = "true"; then
     2792    CFLAGS="$DBG_CFLAGS"
     2793  else
     2794    CFLAGS="$OPT_CFLAGS"
     2795  fi
     2796else
     2797  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
     2798  if test x${DBG_CFLAGS+set} != xset; then
     2799    DBG_CFLAGS="$CFLAGS"
     2800  fi
     2801  if test x${OPT_CFLAGS+set} != xset; then
     2802    OPT_CFLAGS="$CFLAGS"
     2803  fi
     2804fi
     2805
     2806# Check if user wants to have additional CFLAGS options
     2807
     2808if test x"$ADD_CFLAGS" != x; then
     2809  CFLAGS="$CFLAGS $ADD_CFLAGS"
     2810fi
     2811
     2812# Try if CFLAGS works
     2813save_CFLAGS="$CFLAGS"
     2814cat >conftest.$ac_ext <<_ACEOF
     2815/* confdefs.h.  */
     2816_ACEOF
     2817cat confdefs.h >>conftest.$ac_ext
     2818cat >>conftest.$ac_ext <<_ACEOF
     2819/* end confdefs.h.  */
     2820
     2821int
     2822main ()
     2823{
     2824int i=0; i++;
     2825  ;
     2826  return 0;
     2827}
     2828_ACEOF
     2829rm -f conftest.$ac_objext conftest$ac_exeext
     2830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2831  (eval $ac_link) 2>conftest.er1
     2832  ac_status=$?
     2833  grep -v '^ *+' conftest.er1 >conftest.err
     2834  rm -f conftest.er1
     2835  cat conftest.err >&5
     2836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2837  (exit $ac_status); } &&
     2838         { ac_try='test -z "$ac_c_werror_flag"
     2839                         || test ! -s conftest.err'
     2840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2841  (eval $ac_try) 2>&5
     2842  ac_status=$?
     2843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2844  (exit $ac_status); }; } &&
     2845         { ac_try='test -s conftest$ac_exeext'
     2846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2847  (eval $ac_try) 2>&5
     2848  ac_status=$?
     2849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2850  (exit $ac_status); }; }; then
     2851  :
     2852else
     2853  echo "$as_me: failed program was:" >&5
     2854sed 's/^/| /' conftest.$ac_ext >&5
     2855
     2856CFLAGS=
     2857fi
     2858rm -f conftest.err conftest.$ac_objext \
     2859      conftest$ac_exeext conftest.$ac_ext
     2860if test -z "$CFLAGS"; then
     2861  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
     2862echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
     2863  CFLAGS='-O'
     2864  cat >conftest.$ac_ext <<_ACEOF
     2865/* confdefs.h.  */
     2866_ACEOF
     2867cat confdefs.h >>conftest.$ac_ext
     2868cat >>conftest.$ac_ext <<_ACEOF
     2869/* end confdefs.h.  */
     2870
     2871int
     2872main ()
     2873{
     2874int i=0; i++;
     2875  ;
     2876  return 0;
     2877}
     2878_ACEOF
     2879rm -f conftest.$ac_objext conftest$ac_exeext
     2880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2881  (eval $ac_link) 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_c_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_exeext'
     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  :
     2902else
     2903  echo "$as_me: failed program was:" >&5
     2904sed 's/^/| /' conftest.$ac_ext >&5
     2905
     2906CFLAGS=
     2907fi
     2908rm -f conftest.err conftest.$ac_objext \
     2909      conftest$ac_exeext conftest.$ac_ext
     2910  if test -z "$CFLAGS"; then
     2911    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
     2912echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
     2913  fi
     2914fi
     2915
     2916{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
     2917echo "$as_me: C compiler options are: $CFLAGS" >&6;}
     2918
     2919
     2920if test x"$MPICC" = x; then :; else
     2921  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
     2922echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
     2923  CC="$MPICC"
     2924fi
     2925
     2926# Correct ADDLIBS initialization if we are using the MS compiler
     2927case "$CC" in
     2928  cl*)
     2929    ADDLIBS=
     2930    case $build in
     2931  *-mingw*)
     2932    if test "${LD+set}" = set; then :; else
     2933      LD=link
     2934    fi
     2935    ;;
     2936esac
     2937
     2938    ;;
     2939esac
     2940
     2941ac_ext=c
     2942ac_cpp='$CPP $CPPFLAGS'
     2943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2945ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2946
     2947
     2948
     2949
     2950
     2951
     2952ac_ext=f
     2953ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     2954ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2955ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     2956
     2957
     2958
     2959
     2960
     2961
     2962coin_has_f77=yes
     2963
     2964save_fflags="$FFLAGS"
     2965case $build in
     2966  *-cygwin* | *-mingw*)
     2967             comps="gfortran g77 ifort fl32" ;;
     2968  *)         comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
     2969esac
     2970
     2971# We delete the cached value, since the test might not have been
     2972# performed with out choise of compilers earlier
     2973$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
     2974ac_ext=f
     2975ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     2976ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2977ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     2978if test -n "$ac_tool_prefix"; then
     2979  for ac_prog in $comps
     2980  do
     2981    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     2982set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     2983echo "$as_me:$LINENO: checking for $ac_word" >&5
     2984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2985if test "${ac_cv_prog_F77+set}" = set; then
    36552986  echo $ECHO_N "(cached) $ECHO_C" >&6
    36562987else
    3657   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
    3658   # We make a subdir and do the tests there.  Otherwise we can end up
    3659   # making bogus files that we don't know about and never remove.  For
    3660   # instance it was reported that on HP-UX the gcc test will end up
    3661   # making a dummy file named `D' -- because `-MD' means `put the output
    3662   # in D'.
    3663   mkdir conftest.dir
    3664   # Copy depcomp to subdir because otherwise we won't find it if we're
    3665   # using a relative directory.
    3666   cp "$am_depcomp" conftest.dir
    3667   cd conftest.dir
    3668   # We will build objects and dependencies in a subdirectory because
    3669   # it helps to detect inapplicable dependency modes.  For instance
    3670   # both Tru64's cc and ICC support -MD to output dependencies as a
    3671   # side effect of compilation, but ICC will put the dependencies in
    3672   # the current directory while Tru64 will put them in the object
    3673   # directory.
    3674   mkdir sub
    3675 
    3676   am_cv_CC_dependencies_compiler_type=none
    3677   if test "$am_compiler_list" = ""; then
    3678      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
     2988  if test -n "$F77"; then
     2989  ac_cv_prog_F77="$F77" # Let the user override the test.
     2990else
     2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2992for as_dir in $PATH
     2993do
     2994  IFS=$as_save_IFS
     2995  test -z "$as_dir" && as_dir=.
     2996  for ac_exec_ext in '' $ac_executable_extensions; do
     2997  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2998    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
     2999    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3000    break 2
    36793001  fi
    3680   for depmode in $am_compiler_list; do
    3681     # Setup a source with many dependencies, because some compilers
    3682     # like to wrap large dependency lists on column 80 (with \), and
    3683     # we should not choose a depcomp mode which is confused by this.
    3684     #
    3685     # We need to recreate these files for each test, as the compiler may
    3686     # overwrite some of them when testing with obscure command lines.
    3687     # This happens at least with the AIX C compiler.
    3688     : > sub/conftest.c
    3689     for i in 1 2 3 4 5 6; do
    3690       echo '#include "conftst'$i'.h"' >> sub/conftest.c
    3691       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
    3692       # Solaris 8's {/usr,}/bin/sh.
    3693       touch sub/conftst$i.h
     3002done
     3003done
     3004
     3005fi
     3006fi
     3007F77=$ac_cv_prog_F77
     3008if test -n "$F77"; then
     3009  echo "$as_me:$LINENO: result: $F77" >&5
     3010echo "${ECHO_T}$F77" >&6
     3011else
     3012  echo "$as_me:$LINENO: result: no" >&5
     3013echo "${ECHO_T}no" >&6
     3014fi
     3015
     3016    test -n "$F77" && break
     3017  done
     3018fi
     3019if test -z "$F77"; then
     3020  ac_ct_F77=$F77
     3021  for ac_prog in $comps
     3022do
     3023  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3024set dummy $ac_prog; ac_word=$2
     3025echo "$as_me:$LINENO: checking for $ac_word" >&5
     3026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3027if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
     3028  echo $ECHO_N "(cached) $ECHO_C" >&6
     3029else
     3030  if test -n "$ac_ct_F77"; then
     3031  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
     3032else
     3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3034for as_dir in $PATH
     3035do
     3036  IFS=$as_save_IFS
     3037  test -z "$as_dir" && as_dir=.
     3038  for ac_exec_ext in '' $ac_executable_extensions; do
     3039  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3040    ac_cv_prog_ac_ct_F77="$ac_prog"
     3041    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3042    break 2
     3043  fi
     3044done
     3045done
     3046
     3047fi
     3048fi
     3049ac_ct_F77=$ac_cv_prog_ac_ct_F77
     3050if test -n "$ac_ct_F77"; then
     3051  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
     3052echo "${ECHO_T}$ac_ct_F77" >&6
     3053else
     3054  echo "$as_me:$LINENO: result: no" >&5
     3055echo "${ECHO_T}no" >&6
     3056fi
     3057
     3058  test -n "$ac_ct_F77" && break
     3059done
     3060
     3061  F77=$ac_ct_F77
     3062fi
     3063
     3064
     3065# Provide some information about the compiler.
     3066echo "$as_me:3066:" \
     3067     "checking for Fortran 77 compiler version" >&5
     3068ac_compiler=`set X $ac_compile; echo $2`
     3069{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     3070  (eval $ac_compiler --version </dev/null >&5) 2>&5
     3071  ac_status=$?
     3072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3073  (exit $ac_status); }
     3074{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     3075  (eval $ac_compiler -v </dev/null >&5) 2>&5
     3076  ac_status=$?
     3077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3078  (exit $ac_status); }
     3079{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     3080  (eval $ac_compiler -V </dev/null >&5) 2>&5
     3081  ac_status=$?
     3082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3083  (exit $ac_status); }
     3084rm -f a.out
     3085
     3086# If we don't use `.F' as extension, the preprocessor is not run on the
     3087# input file.  (Note that this only needs to work for GNU compilers.)
     3088ac_save_ext=$ac_ext
     3089ac_ext=F
     3090echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
     3091echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
     3092if test "${ac_cv_f77_compiler_gnu+set}" = set; then
     3093  echo $ECHO_N "(cached) $ECHO_C" >&6
     3094else
     3095  cat >conftest.$ac_ext <<_ACEOF
     3096      program main
     3097#ifndef __GNUC__
     3098       choke me
     3099#endif
     3100
     3101      end
     3102_ACEOF
     3103rm -f conftest.$ac_objext
     3104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3105  (eval $ac_compile) 2>conftest.er1
     3106  ac_status=$?
     3107  grep -v '^ *+' conftest.er1 >conftest.err
     3108  rm -f conftest.er1
     3109  cat conftest.err >&5
     3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3111  (exit $ac_status); } &&
     3112         { ac_try='test -z "$ac_f77_werror_flag"
     3113                         || test ! -s conftest.err'
     3114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3115  (eval $ac_try) 2>&5
     3116  ac_status=$?
     3117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3118  (exit $ac_status); }; } &&
     3119         { ac_try='test -s conftest.$ac_objext'
     3120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3121  (eval $ac_try) 2>&5
     3122  ac_status=$?
     3123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3124  (exit $ac_status); }; }; then
     3125  ac_compiler_gnu=yes
     3126else
     3127  echo "$as_me: failed program was:" >&5
     3128sed 's/^/| /' conftest.$ac_ext >&5
     3129
     3130ac_compiler_gnu=no
     3131fi
     3132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3133ac_cv_f77_compiler_gnu=$ac_compiler_gnu
     3134
     3135fi
     3136echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
     3137echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
     3138ac_ext=$ac_save_ext
     3139ac_test_FFLAGS=${FFLAGS+set}
     3140ac_save_FFLAGS=$FFLAGS
     3141FFLAGS=
     3142echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
     3143echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
     3144if test "${ac_cv_prog_f77_g+set}" = set; then
     3145  echo $ECHO_N "(cached) $ECHO_C" >&6
     3146else
     3147  FFLAGS=-g
     3148cat >conftest.$ac_ext <<_ACEOF
     3149      program main
     3150
     3151      end
     3152_ACEOF
     3153rm -f conftest.$ac_objext
     3154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3155  (eval $ac_compile) 2>conftest.er1
     3156  ac_status=$?
     3157  grep -v '^ *+' conftest.er1 >conftest.err
     3158  rm -f conftest.er1
     3159  cat conftest.err >&5
     3160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3161  (exit $ac_status); } &&
     3162         { ac_try='test -z "$ac_f77_werror_flag"
     3163                         || test ! -s conftest.err'
     3164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3165  (eval $ac_try) 2>&5
     3166  ac_status=$?
     3167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3168  (exit $ac_status); }; } &&
     3169         { ac_try='test -s conftest.$ac_objext'
     3170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3171  (eval $ac_try) 2>&5
     3172  ac_status=$?
     3173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3174  (exit $ac_status); }; }; then
     3175  ac_cv_prog_f77_g=yes
     3176else
     3177  echo "$as_me: failed program was:" >&5
     3178sed 's/^/| /' conftest.$ac_ext >&5
     3179
     3180ac_cv_prog_f77_g=no
     3181fi
     3182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3183
     3184fi
     3185echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
     3186echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
     3187if test "$ac_test_FFLAGS" = set; then
     3188  FFLAGS=$ac_save_FFLAGS
     3189elif test $ac_cv_prog_f77_g = yes; then
     3190  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
     3191    FFLAGS="-g -O2"
     3192  else
     3193    FFLAGS="-g"
     3194  fi
     3195else
     3196  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
     3197    FFLAGS="-O2"
     3198  else
     3199    FFLAGS=
     3200  fi
     3201fi
     3202
     3203G77=`test $ac_compiler_gnu = yes && echo yes`
     3204ac_ext=f
     3205ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     3206ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3207ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     3208
     3209FFLAGS="$save_fflags"
     3210
     3211# Check if a project specific FFLAGS variable has been set
     3212if test x$COIN_PRJCT != x; then
     3213  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
     3214  if test x$coin_tmp = xset; then
     3215    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
     3216  fi
     3217fi
     3218
     3219if test x"$FFLAGS" = x; then
     3220
     3221  coin_add_fflags=
     3222  coin_opt_fflags=
     3223  coin_dbg_fflags=
     3224  coin_warn_fflags=
     3225
     3226  if test "$G77" = "yes"; then
     3227    coin_opt_fflags="-O3 -fomit-frame-pointer"
     3228    coin_add_fflags="-pipe"
     3229    coin_dbg_fflags="-g"
     3230    if test "$enable_doscompile" = yes; then
     3231      case $build in
     3232        *-cygwin*)
     3233          FFLAGS="-mno-cygwin"
     3234          cat >conftest.$ac_ext <<_ACEOF
     3235      program main
     3236      write(*,*) 'Hello world'
     3237      end
     3238_ACEOF
     3239rm -f conftest.$ac_objext conftest$ac_exeext
     3240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3241  (eval $ac_link) 2>conftest.er1
     3242  ac_status=$?
     3243  grep -v '^ *+' conftest.er1 >conftest.err
     3244  rm -f conftest.er1
     3245  cat conftest.err >&5
     3246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3247  (exit $ac_status); } &&
     3248         { ac_try='test -z "$ac_f77_werror_flag"
     3249                         || test ! -s conftest.err'
     3250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3251  (eval $ac_try) 2>&5
     3252  ac_status=$?
     3253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3254  (exit $ac_status); }; } &&
     3255         { ac_try='test -s conftest$ac_exeext'
     3256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3257  (eval $ac_try) 2>&5
     3258  ac_status=$?
     3259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3260  (exit $ac_status); }; }; then
     3261  coin_add_fflags="-mno-cygwin $coin_add_fflags"
     3262else
     3263  echo "$as_me: failed program was:" >&5
     3264sed 's/^/| /' conftest.$ac_ext >&5
     3265
     3266fi
     3267rm -f conftest.err conftest.$ac_objext \
     3268      conftest$ac_exeext conftest.$ac_ext
     3269          FFLAGS=
     3270        ;;
     3271      esac
     3272    fi
     3273  else
     3274    case $build in
     3275      *-cygwin* | *-mingw*)
     3276        case $F77 in
     3277          ifort* | */ifort*)
     3278            coin_opt_fflags='-O3'
     3279            coin_add_fflags='-nologo -MT'
     3280            coin_dbg_fflags='-debug'
     3281          ;;
     3282        esac
     3283        ;;
     3284      *-linux-*)
     3285        case $F77 in
     3286          ifc* | */ifc* | ifort* | */ifort*)
     3287            coin_opt_fflags="-O3 -ip"
     3288            coin_add_fflags="-cm -w90 -w95"
     3289            coin_dbg_fflags="-g -CA -CB -CS"
     3290            # Check if -i_dynamic is necessary (for new glibc library)
     3291            FFLAGS=
     3292            cat >conftest.$ac_ext <<_ACEOF
     3293      program main
     3294      write(*,*) 'Hello world'
     3295      end
     3296_ACEOF
     3297rm -f conftest.$ac_objext conftest$ac_exeext
     3298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3299  (eval $ac_link) 2>conftest.er1
     3300  ac_status=$?
     3301  grep -v '^ *+' conftest.er1 >conftest.err
     3302  rm -f conftest.er1
     3303  cat conftest.err >&5
     3304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3305  (exit $ac_status); } &&
     3306         { ac_try='test -z "$ac_f77_werror_flag"
     3307                         || test ! -s conftest.err'
     3308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3309  (eval $ac_try) 2>&5
     3310  ac_status=$?
     3311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3312  (exit $ac_status); }; } &&
     3313         { ac_try='test -s conftest$ac_exeext'
     3314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3315  (eval $ac_try) 2>&5
     3316  ac_status=$?
     3317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3318  (exit $ac_status); }; }; then
     3319  :
     3320else
     3321  echo "$as_me: failed program was:" >&5
     3322sed 's/^/| /' conftest.$ac_ext >&5
     3323
     3324coin_add_fflags="-i_dynamic $coin_add_fflags"
     3325fi
     3326rm -f conftest.err conftest.$ac_objext \
     3327      conftest$ac_exeext conftest.$ac_ext
     3328            ;;
     3329          pgf77* | */pgf77* | pgf90* | */pgf90*)
     3330            coin_opt_fflags="-fast"
     3331            coin_add_fflags="-Kieee -pc 64"
     3332            coin_dbg_fflags="-g"
     3333          ;;
     3334        esac
     3335        ;;
     3336      *-ibm-*)
     3337        case "$F77" in
     3338          xlf* | */xlf* | mpxlf* | */mpxlf* )
     3339            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
     3340            coin_add_fflags="-bmaxdata:0x80000000"
     3341            coin_dbg_fflags="-g -C"
     3342            ;;
     3343        esac
     3344        ;;
     3345      *-hp-*)
     3346        coin_opt_fflags="+O3"
     3347        coin_add_fflags="+U77"
     3348        coin_dbg_fflags="-C -g"
     3349        ;;
     3350      *-sun-*)
     3351        coin_opt_fflags="-O4"
     3352        coin_dbg_fflags="-g"
     3353        ;;
     3354      *-sgi-*)
     3355        coin_opt_fflags="-O5 -OPT:Olimit=0"
     3356        coin_dbg_fflags="-g"
     3357        ;;
     3358    esac
     3359  fi
     3360
     3361  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
     3362    coin_dbg_fflags="-g"
     3363  fi
     3364
     3365  if test -z "$coin_opt_fflags"; then
     3366    # Try if -O option works if nothing else is set
     3367    FFLAGS=-O
     3368    cat >conftest.$ac_ext <<_ACEOF
     3369      program main
     3370      integer i
     3371      end
     3372_ACEOF
     3373rm -f conftest.$ac_objext conftest$ac_exeext
     3374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3375  (eval $ac_link) 2>conftest.er1
     3376  ac_status=$?
     3377  grep -v '^ *+' conftest.er1 >conftest.err
     3378  rm -f conftest.er1
     3379  cat conftest.err >&5
     3380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3381  (exit $ac_status); } &&
     3382         { ac_try='test -z "$ac_f77_werror_flag"
     3383                         || test ! -s conftest.err'
     3384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3385  (eval $ac_try) 2>&5
     3386  ac_status=$?
     3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3388  (exit $ac_status); }; } &&
     3389         { ac_try='test -s conftest$ac_exeext'
     3390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3391  (eval $ac_try) 2>&5
     3392  ac_status=$?
     3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3394  (exit $ac_status); }; }; then
     3395  coin_opt_fflags="-O"
     3396else
     3397  echo "$as_me: failed program was:" >&5
     3398sed 's/^/| /' conftest.$ac_ext >&5
     3399
     3400fi
     3401rm -f conftest.err conftest.$ac_objext \
     3402      conftest$ac_exeext conftest.$ac_ext
     3403  fi
     3404
     3405  if test x${DBG_FFLAGS+set} != xset; then
     3406    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
     3407  fi
     3408  if test x${OPT_FFLAGS+set} != xset; then
     3409    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
     3410  fi
     3411
     3412  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
     3413  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
     3414
     3415  if test "$coin_debug_compile" = "true"; then
     3416    FFLAGS="$DBG_FFLAGS"
     3417  else
     3418    FFLAGS="$OPT_FFLAGS"
     3419  fi
     3420else
     3421  FFLAGS="$FFLAGS $ADD_FFLAGS"
     3422  if test x${DBG_FFLAGS+set} != xset; then
     3423    DBG_FFLAGS="$FFLAGS"
     3424  fi
     3425  if test x${OPT_FFLAGS+set} != xset; then
     3426    OPT_FFLAGS="$FFLAGS"
     3427  fi
     3428fi
     3429
     3430# Try if FFLAGS works
     3431cat >conftest.$ac_ext <<_ACEOF
     3432      program main
     3433      integer i
     3434      end
     3435_ACEOF
     3436rm -f conftest.$ac_objext conftest$ac_exeext
     3437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3438  (eval $ac_link) 2>conftest.er1
     3439  ac_status=$?
     3440  grep -v '^ *+' conftest.er1 >conftest.err
     3441  rm -f conftest.er1
     3442  cat conftest.err >&5
     3443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3444  (exit $ac_status); } &&
     3445         { ac_try='test -z "$ac_f77_werror_flag"
     3446                         || test ! -s conftest.err'
     3447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3448  (eval $ac_try) 2>&5
     3449  ac_status=$?
     3450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3451  (exit $ac_status); }; } &&
     3452         { ac_try='test -s conftest$ac_exeext'
     3453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3454  (eval $ac_try) 2>&5
     3455  ac_status=$?
     3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3457  (exit $ac_status); }; }; then
     3458  :
     3459else
     3460  echo "$as_me: failed program was:" >&5
     3461sed 's/^/| /' conftest.$ac_ext >&5
     3462
     3463FFLAGS=
     3464fi
     3465rm -f conftest.err conftest.$ac_objext \
     3466      conftest$ac_exeext conftest.$ac_ext
     3467if test -z "$FFLAGS"; then
     3468  { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
     3469echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
     3470  FFLAGS='-O'
     3471  cat >conftest.$ac_ext <<_ACEOF
     3472      program main
     3473      integer i
     3474      end
     3475_ACEOF
     3476rm -f conftest.$ac_objext conftest$ac_exeext
     3477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3478  (eval $ac_link) 2>conftest.er1
     3479  ac_status=$?
     3480  grep -v '^ *+' conftest.er1 >conftest.err
     3481  rm -f conftest.er1
     3482  cat conftest.err >&5
     3483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3484  (exit $ac_status); } &&
     3485         { ac_try='test -z "$ac_f77_werror_flag"
     3486                         || test ! -s conftest.err'
     3487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3488  (eval $ac_try) 2>&5
     3489  ac_status=$?
     3490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3491  (exit $ac_status); }; } &&
     3492         { ac_try='test -s conftest$ac_exeext'
     3493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3494  (eval $ac_try) 2>&5
     3495  ac_status=$?
     3496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3497  (exit $ac_status); }; }; then
     3498  :
     3499else
     3500  echo "$as_me: failed program was:" >&5
     3501sed 's/^/| /' conftest.$ac_ext >&5
     3502
     3503FFLAGS=
     3504fi
     3505rm -f conftest.err conftest.$ac_objext \
     3506      conftest$ac_exeext conftest.$ac_ext
     3507  if test -z "$FFLAGS"; then
     3508    { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
     3509echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
     3510  fi
     3511fi
     3512
     3513{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
     3514echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
     3515
     3516
     3517if test x"$MPIF77" = x; then :; else
     3518  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
     3519echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
     3520  F77="$MPIF77"
     3521fi
     3522
     3523case "$F77" in
     3524  ifort*)
     3525    case $build in
     3526  *-mingw*)
     3527    if test "${LD+set}" = set; then :; else
     3528      LD=link
     3529    fi
     3530    ;;
     3531esac
     3532
     3533    ;;
     3534esac
     3535
     3536ac_ext=c
     3537ac_cpp='$CPP $CPPFLAGS'
     3538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3540ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3541
     3542
     3543
     3544# Need egrep later on
     3545echo "$as_me:$LINENO: checking for egrep" >&5
     3546echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     3547if test "${ac_cv_prog_egrep+set}" = set; then
     3548  echo $ECHO_N "(cached) $ECHO_C" >&6
     3549else
     3550  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     3551    then ac_cv_prog_egrep='grep -E'
     3552    else ac_cv_prog_egrep='egrep'
     3553    fi
     3554fi
     3555echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     3556echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     3557 EGREP=$ac_cv_prog_egrep
     3558
     3559
     3560
     3561# Initialize autotools
     3562
     3563# On Cygwin, building DLLs doesn't work
     3564case $build in
     3565  *-cygwin*)
     3566    coin_disable_shared=yes
     3567    platform=Cygwin
     3568  ;;
     3569  *-mingw*)
     3570    coin_disable_shared=yes
     3571    platform="Msys"
     3572#    case "$CXX" in
     3573#      cl*)
     3574#        coin_disable_shared=yes
     3575#        platform="Msys with cl"
     3576#    ;;
     3577#    esac
     3578  ;;
     3579esac
     3580if test x"$coin_disable_shared" = xyes; then
     3581  if test x"$enable_shared" = xyes; then
     3582    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
     3583echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
     3584  fi
     3585  enable_shared=no
     3586fi
     3587# By default, we only want the shared objects to be compiled
     3588# Check whether --enable-static or --disable-static was given.
     3589if test "${enable_static+set}" = set; then
     3590  enableval="$enable_static"
     3591  p=${PACKAGE-default}
     3592    case $enableval in
     3593    yes) enable_static=yes ;;
     3594    no) enable_static=no ;;
     3595    *)
     3596     enable_static=no
     3597      # Look at the argument we got.  We use all the common list separators.
     3598      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
     3599      for pkg in $enableval; do
     3600        IFS="$lt_save_ifs"
     3601        if test "X$pkg" = "X$p"; then
     3602          enable_static=yes
     3603        fi
     3604      done
     3605      IFS="$lt_save_ifs"
     3606      ;;
     3607    esac
     3608else
     3609  enable_static=no
     3610fi;
     3611
     3612
     3613
     3614am__api_version="1.9"
     3615# Find a good install program.  We prefer a C program (faster),
     3616# so one script is as good as another.  But avoid the broken or
     3617# incompatible versions:
     3618# SysV /etc/install, /usr/sbin/install
     3619# SunOS /usr/etc/install
     3620# IRIX /sbin/install
     3621# AIX /bin/install
     3622# AmigaOS /C/install, which installs bootblocks on floppy discs
     3623# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
     3624# AFS /usr/afsws/bin/install, which mishandles nonexistent args
     3625# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     3626# OS/2's system install, which has a completely different semantic
     3627# ./install, which can be erroneously created by make from ./install.sh.
     3628echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     3629echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
     3630if test -z "$INSTALL"; then
     3631if test "${ac_cv_path_install+set}" = set; then
     3632  echo $ECHO_N "(cached) $ECHO_C" >&6
     3633else
     3634  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3635for as_dir in $PATH
     3636do
     3637  IFS=$as_save_IFS
     3638  test -z "$as_dir" && as_dir=.
     3639  # Account for people who put trailing slashes in PATH elements.
     3640case $as_dir/ in
     3641  ./ | .// | /cC/* | \
     3642  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
     3643  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     3644  /usr/ucb/* ) ;;
     3645  *)
     3646    # OSF1 and SCO ODT 3.0 have their own names for install.
     3647    # Don't use installbsd from OSF since it installs stuff as root
     3648    # by default.
     3649    for ac_prog in ginstall scoinst install; do
     3650      for ac_exec_ext in '' $ac_executable_extensions; do
     3651        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     3652          if test $ac_prog = install &&
     3653            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     3654            # AIX install.  It has an incompatible calling convention.
     3655            :
     3656          elif test $ac_prog = install &&
     3657            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     3658            # program-specific install script used by HP pwplus--don't use.
     3659            :
     3660          else
     3661            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     3662            break 3
     3663          fi
     3664        fi
     3665      done
    36943666    done
    3695     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
    3696 
    3697     case $depmode in
    3698     nosideeffect)
    3699       # after this tag, mechanisms are not by side-effect, so they'll
    3700       # only be used when explicitly requested
    3701       if test "x$enable_dependency_tracking" = xyes; then
    3702         continue
    3703       else
    3704         break
    3705       fi
    3706       ;;
    3707     none) break ;;
    3708     esac
    3709     # We check with `-c' and `-o' for the sake of the "dashmstdout"
    3710     # mode.  It turns out that the SunPro C++ compiler does not properly
    3711     # handle `-M -o', and we need to detect this.
    3712     if depmode=$depmode \
    3713        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
    3714        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
    3715        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
    3716          >/dev/null 2>conftest.err &&
    3717        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
    3718        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
    3719        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
    3720       # icc doesn't choke on unknown options, it will just issue warnings
    3721       # or remarks (even with -Werror).  So we grep stderr for any message
    3722       # that says an option was ignored or not supported.
    3723       # When given -MP, icc 7.0 and 7.1 complain thusly:
    3724       #   icc: Command line warning: ignoring option '-M'; no argument required
    3725       # The diagnosis changed in icc 8.0:
    3726       #   icc: Command line remark: option '-MP' not supported
    3727       if (grep 'ignoring option' conftest.err ||
    3728           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
    3729         am_cv_CC_dependencies_compiler_type=$depmode
    3730         break
    3731       fi
    3732     fi
     3667    ;;
     3668esac
     3669done
     3670
     3671
     3672fi
     3673  if test "${ac_cv_path_install+set}" = set; then
     3674    INSTALL=$ac_cv_path_install
     3675  else
     3676    # As a last resort, use the slow shell script.  We don't cache a
     3677    # path for INSTALL within a source directory, because that will
     3678    # break other packages using the cache if that directory is
     3679    # removed, or if the path is relative.
     3680    INSTALL=$ac_install_sh
     3681  fi
     3682fi
     3683echo "$as_me:$LINENO: result: $INSTALL" >&5
     3684echo "${ECHO_T}$INSTALL" >&6
     3685
     3686# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     3687# It thinks the first close brace ends the variable substitution.
     3688test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
     3689
     3690test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
     3691
     3692test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
     3693
     3694echo "$as_me:$LINENO: checking whether build environment is sane" >&5
     3695echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
     3696# Just in case
     3697sleep 1
     3698echo timestamp > conftest.file
     3699# Do `set' in a subshell so we don't clobber the current shell's
     3700# arguments.  Must try -L first in case configure is actually a
     3701# symlink; some systems play weird games with the mod time of symlinks
     3702# (eg FreeBSD returns the mod time of the symlink's containing
     3703# directory).
     3704if (
     3705   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
     3706   if test "$*" = "X"; then
     3707      # -L didn't work.
     3708      set X `ls -t $srcdir/configure conftest.file`
     3709   fi
     3710   rm -f conftest.file
     3711   if test "$*" != "X $srcdir/configure conftest.file" \
     3712      && test "$*" != "X conftest.file $srcdir/configure"; then
     3713
     3714      # If neither matched, then we have a broken ls.  This can happen
     3715      # if, for instance, CONFIG_SHELL is bash and it inherits a
     3716      # broken ls alias from the environment.  This has actually
     3717      # happened.  Such a system could not be considered "sane".
     3718      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
     3719alias in your environment" >&5
     3720echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
     3721alias in your environment" >&2;}
     3722   { (exit 1); exit 1; }; }
     3723   fi
     3724
     3725   test "$2" = conftest.file
     3726   )
     3727then
     3728   # Ok.
     3729   :
     3730else
     3731   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
     3732Check your system clock" >&5
     3733echo "$as_me: error: newly created file is older than distributed files!
     3734Check your system clock" >&2;}
     3735   { (exit 1); exit 1; }; }
     3736fi
     3737echo "$as_me:$LINENO: result: yes" >&5
     3738echo "${ECHO_T}yes" >&6
     3739test "$program_prefix" != NONE &&
     3740  program_transform_name="s,^,$program_prefix,;$program_transform_name"
     3741# Use a double $ so make ignores it.
     3742test "$program_suffix" != NONE &&
     3743  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
     3744# Double any \ or $.  echo might interpret backslashes.
     3745# By default was `s,x,x', remove it if useless.
     3746cat <<\_ACEOF >conftest.sed
     3747s/[\\$]/&&/g;s/;s,x,x,$//
     3748_ACEOF
     3749program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
     3750rm conftest.sed
     3751
     3752# expand $ac_aux_dir to an absolute path
     3753am_aux_dir=`cd $ac_aux_dir && pwd`
     3754
     3755test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
     3756# Use eval to expand $SHELL
     3757if eval "$MISSING --run true"; then
     3758  am_missing_run="$MISSING --run "
     3759else
     3760  am_missing_run=
     3761  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
     3762echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
     3763fi
     3764
     3765if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
     3766  # We used to keeping the `.' as first argument, in order to
     3767  # allow $(mkdir_p) to be used without argument.  As in
     3768  #   $(mkdir_p) $(somedir)
     3769  # where $(somedir) is conditionally defined.  However this is wrong
     3770  # for two reasons:
     3771  #  1. if the package is installed by a user who cannot write `.'
     3772  #     make install will fail,
     3773  #  2. the above comment should most certainly read
     3774  #     $(mkdir_p) $(DESTDIR)$(somedir)
     3775  #     so it does not work when $(somedir) is undefined and
     3776  #     $(DESTDIR) is not.
     3777  #  To support the latter case, we have to write
     3778  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
     3779  #  so the `.' trick is pointless.
     3780  mkdir_p='mkdir -p --'
     3781else
     3782  # On NextStep and OpenStep, the `mkdir' command does not
     3783  # recognize any option.  It will interpret all options as
     3784  # directories to create, and then abort because `.' already
     3785  # exists.
     3786  for d in ./-p ./--version;
     3787  do
     3788    test -d $d && rmdir $d
    37333789  done
    3734 
    3735   cd ..
    3736   rm -rf conftest.dir
    3737 else
    3738   am_cv_CC_dependencies_compiler_type=none
    3739 fi
    3740 
    3741 fi
    3742 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
    3743 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
    3744 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
    3745 
    3746 
    3747 
    3748 if
    3749   test "x$enable_dependency_tracking" != xno \
    3750   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
    3751   am__fastdepCC_TRUE=
    3752   am__fastdepCC_FALSE='#'
    3753 else
    3754   am__fastdepCC_TRUE='#'
    3755   am__fastdepCC_FALSE=
     3790  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
     3791  if test -f "$ac_aux_dir/mkinstalldirs"; then
     3792    mkdir_p='$(mkinstalldirs)'
     3793  else
     3794    mkdir_p='$(install_sh) -d'
     3795  fi
     3796fi
     3797
     3798for ac_prog in gawk mawk nawk awk
     3799do
     3800  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3801set dummy $ac_prog; ac_word=$2
     3802echo "$as_me:$LINENO: checking for $ac_word" >&5
     3803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3804if test "${ac_cv_prog_AWK+set}" = set; then
     3805  echo $ECHO_N "(cached) $ECHO_C" >&6
     3806else
     3807  if test -n "$AWK"; then
     3808  ac_cv_prog_AWK="$AWK" # Let the user override the test.
     3809else
     3810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3811for as_dir in $PATH
     3812do
     3813  IFS=$as_save_IFS
     3814  test -z "$as_dir" && as_dir=.
     3815  for ac_exec_ext in '' $ac_executable_extensions; do
     3816  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3817    ac_cv_prog_AWK="$ac_prog"
     3818    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3819    break 2
     3820  fi
     3821done
     3822done
     3823
     3824fi
     3825fi
     3826AWK=$ac_cv_prog_AWK
     3827if test -n "$AWK"; then
     3828  echo "$as_me:$LINENO: result: $AWK" >&5
     3829echo "${ECHO_T}$AWK" >&6
     3830else
     3831  echo "$as_me:$LINENO: result: no" >&5
     3832echo "${ECHO_T}no" >&6
     3833fi
     3834
     3835  test -n "$AWK" && break
     3836done
     3837
     3838echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     3839echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
     3840set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
     3841if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
     3842  echo $ECHO_N "(cached) $ECHO_C" >&6
     3843else
     3844  cat >conftest.make <<\_ACEOF
     3845all:
     3846        @echo 'ac_maketemp="$(MAKE)"'
     3847_ACEOF
     3848# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
     3849eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
     3850if test -n "$ac_maketemp"; then
     3851  eval ac_cv_prog_make_${ac_make}_set=yes
     3852else
     3853  eval ac_cv_prog_make_${ac_make}_set=no
     3854fi
     3855rm -f conftest.make
     3856fi
     3857if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
     3858  echo "$as_me:$LINENO: result: yes" >&5
     3859echo "${ECHO_T}yes" >&6
     3860  SET_MAKE=
     3861else
     3862  echo "$as_me:$LINENO: result: no" >&5
     3863echo "${ECHO_T}no" >&6
     3864  SET_MAKE="MAKE=${MAKE-make}"
     3865fi
     3866
     3867rm -rf .tst 2>/dev/null
     3868mkdir .tst 2>/dev/null
     3869if test -d .tst; then
     3870  am__leading_dot=.
     3871else
     3872  am__leading_dot=_
     3873fi
     3874rmdir .tst 2>/dev/null
     3875
     3876DEPDIR="${am__leading_dot}deps"
     3877
     3878          ac_config_commands="$ac_config_commands depfiles"
     3879
     3880
     3881am_make=${MAKE-make}
     3882cat > confinc << 'END'
     3883am__doit:
     3884        @echo done
     3885.PHONY: am__doit
     3886END
     3887# If we don't find an include directive, just comment out the code.
     3888echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
     3889echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
     3890am__include="#"
     3891am__quote=
     3892_am_result=none
     3893# First try GNU make style include.
     3894echo "include confinc" > confmf
     3895# We grep out `Entering directory' and `Leaving directory'
     3896# messages which can occur if `w' ends up in MAKEFLAGS.
     3897# In particular we don't look at `^make:' because GNU make might
     3898# be invoked under some other name (usually "gmake"), in which
     3899# case it prints its new name instead of `make'.
     3900if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
     3901   am__include=include
     3902   am__quote=
     3903   _am_result=GNU
     3904fi
     3905# Now try BSD make style include.
     3906if test "$am__include" = "#"; then
     3907   echo '.include "confinc"' > confmf
     3908   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
     3909      am__include=.include
     3910      am__quote="\""
     3911      _am_result=BSD
     3912   fi
     3913fi
     3914
     3915
     3916echo "$as_me:$LINENO: result: $_am_result" >&5
     3917echo "${ECHO_T}$_am_result" >&6
     3918rm -f confinc confmf
     3919
     3920# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
     3921if test "${enable_dependency_tracking+set}" = set; then
     3922  enableval="$enable_dependency_tracking"
     3923
     3924fi;
     3925if test "x$enable_dependency_tracking" != xno; then
     3926  am_depcomp="$ac_aux_dir/depcomp"
     3927  AMDEPBACKSLASH='\'
     3928fi
     3929
     3930
     3931if test "x$enable_dependency_tracking" != xno; then
     3932  AMDEP_TRUE=
     3933  AMDEP_FALSE='#'
     3934else
     3935  AMDEP_TRUE='#'
     3936  AMDEP_FALSE=
    37563937fi
    37573938
     
    43864567*-*-irix6*)
    43874568  # Find out which ABI we are using.
    4388   echo '#line 4388 "configure"' > conftest.$ac_ext
     4569  echo '#line 4569 "configure"' > conftest.$ac_ext
    43894570  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    43904571  (eval $ac_compile) 2>&5
     
    68156996   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    68166997   -e 's:$: $lt_compiler_flag:'`
    6817    (eval echo "\"\$as_me:6817: $lt_compile\"" >&5)
     6998   (eval echo "\"\$as_me:6998: $lt_compile\"" >&5)
    68186999   (eval "$lt_compile" 2>conftest.err)
    68197000   ac_status=$?
    68207001   cat conftest.err >&5
    6821    echo "$as_me:6821: \$? = $ac_status" >&5
     7002   echo "$as_me:7002: \$? = $ac_status" >&5
    68227003   if (exit $ac_status) && test -s "$ac_outfile"; then
    68237004     # The compiler can only warn and ignore the option if not recognized
     
    70837264   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    70847265   -e 's:$: $lt_compiler_flag:'`
    7085    (eval echo "\"\$as_me:7085: $lt_compile\"" >&5)
     7266   (eval echo "\"\$as_me:7266: $lt_compile\"" >&5)
    70867267   (eval "$lt_compile" 2>conftest.err)
    70877268   ac_status=$?
    70887269   cat conftest.err >&5
    7089    echo "$as_me:7089: \$? = $ac_status" >&5
     7270   echo "$as_me:7270: \$? = $ac_status" >&5
    70907271   if (exit $ac_status) && test -s "$ac_outfile"; then
    70917272     # The compiler can only warn and ignore the option if not recognized
     
    71877368   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    71887369   -e 's:$: $lt_compiler_flag:'`
    7189    (eval echo "\"\$as_me:7189: $lt_compile\"" >&5)
     7370   (eval echo "\"\$as_me:7370: $lt_compile\"" >&5)
    71907371   (eval "$lt_compile" 2>out/conftest.err)
    71917372   ac_status=$?
    71927373   cat out/conftest.err >&5
    7193    echo "$as_me:7193: \$? = $ac_status" >&5
     7374   echo "$as_me:7374: \$? = $ac_status" >&5
    71947375   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    71957376   then
     
    95329713  lt_status=$lt_dlunknown
    95339714  cat > conftest.$ac_ext <<EOF
    9534 #line 9534 "configure"
     9715#line 9715 "configure"
    95359716#include "confdefs.h"
    95369717
     
    96329813  lt_status=$lt_dlunknown
    96339814  cat > conftest.$ac_ext <<EOF
    9634 #line 9634 "configure"
     9815#line 9815 "configure"
    96359816#include "confdefs.h"
    96369817
     
    1197612157   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1197712158   -e 's:$: $lt_compiler_flag:'`
    11978    (eval echo "\"\$as_me:11978: $lt_compile\"" >&5)
     12159   (eval echo "\"\$as_me:12159: $lt_compile\"" >&5)
    1197912160   (eval "$lt_compile" 2>conftest.err)
    1198012161   ac_status=$?
    1198112162   cat conftest.err >&5
    11982    echo "$as_me:11982: \$? = $ac_status" >&5
     12163   echo "$as_me:12163: \$? = $ac_status" >&5
    1198312164   if (exit $ac_status) && test -s "$ac_outfile"; then
    1198412165     # The compiler can only warn and ignore the option if not recognized
     
    1208012261   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1208112262   -e 's:$: $lt_compiler_flag:'`
    12082    (eval echo "\"\$as_me:12082: $lt_compile\"" >&5)
     12263   (eval echo "\"\$as_me:12263: $lt_compile\"" >&5)
    1208312264   (eval "$lt_compile" 2>out/conftest.err)
    1208412265   ac_status=$?
    1208512266   cat out/conftest.err >&5
    12086    echo "$as_me:12086: \$? = $ac_status" >&5
     12267   echo "$as_me:12267: \$? = $ac_status" >&5
    1208712268   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1208812269   then
     
    1365013831   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1365113832   -e 's:$: $lt_compiler_flag:'`
    13652    (eval echo "\"\$as_me:13652: $lt_compile\"" >&5)
     13833   (eval echo "\"\$as_me:13833: $lt_compile\"" >&5)
    1365313834   (eval "$lt_compile" 2>conftest.err)
    1365413835   ac_status=$?
    1365513836   cat conftest.err >&5
    13656    echo "$as_me:13656: \$? = $ac_status" >&5
     13837   echo "$as_me:13837: \$? = $ac_status" >&5
    1365713838   if (exit $ac_status) && test -s "$ac_outfile"; then
    1365813839     # The compiler can only warn and ignore the option if not recognized
     
    1375413935   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1375513936   -e 's:$: $lt_compiler_flag:'`
    13756    (eval echo "\"\$as_me:13756: $lt_compile\"" >&5)
     13937   (eval echo "\"\$as_me:13937: $lt_compile\"" >&5)
    1375713938   (eval "$lt_compile" 2>out/conftest.err)
    1375813939   ac_status=$?
    1375913940   cat out/conftest.err >&5
    13760    echo "$as_me:13760: \$? = $ac_status" >&5
     13941   echo "$as_me:13941: \$? = $ac_status" >&5
    1376113942   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1376213943   then
     
    1596116142   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1596216143   -e 's:$: $lt_compiler_flag:'`
    15963    (eval echo "\"\$as_me:15963: $lt_compile\"" >&5)
     16144   (eval echo "\"\$as_me:16144: $lt_compile\"" >&5)
    1596416145   (eval "$lt_compile" 2>conftest.err)
    1596516146   ac_status=$?
    1596616147   cat conftest.err >&5
    15967    echo "$as_me:15967: \$? = $ac_status" >&5
     16148   echo "$as_me:16148: \$? = $ac_status" >&5
    1596816149   if (exit $ac_status) && test -s "$ac_outfile"; then
    1596916150     # The compiler can only warn and ignore the option if not recognized
     
    1622916410   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1623016411   -e 's:$: $lt_compiler_flag:'`
    16231    (eval echo "\"\$as_me:16231: $lt_compile\"" >&5)
     16412   (eval echo "\"\$as_me:16412: $lt_compile\"" >&5)
    1623216413   (eval "$lt_compile" 2>conftest.err)
    1623316414   ac_status=$?
    1623416415   cat conftest.err >&5
    16235    echo "$as_me:16235: \$? = $ac_status" >&5
     16416   echo "$as_me:16416: \$? = $ac_status" >&5
    1623616417   if (exit $ac_status) && test -s "$ac_outfile"; then
    1623716418     # The compiler can only warn and ignore the option if not recognized
     
    1633316514   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1633416515   -e 's:$: $lt_compiler_flag:'`
    16335    (eval echo "\"\$as_me:16335: $lt_compile\"" >&5)
     16516   (eval echo "\"\$as_me:16516: $lt_compile\"" >&5)
    1633616517   (eval "$lt_compile" 2>out/conftest.err)
    1633716518   ac_status=$?
    1633816519   cat out/conftest.err >&5
    16339    echo "$as_me:16339: \$? = $ac_status" >&5
     16520   echo "$as_me:16520: \$? = $ac_status" >&5
    1634016521   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1634116522   then
     
    1914819329
    1914919330
     19331depcc="$CC"   am_compiler_list=
     19332
     19333echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
     19334echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
     19335if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
     19336  echo $ECHO_N "(cached) $ECHO_C" >&6
     19337else
     19338  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     19339  # We make a subdir and do the tests there.  Otherwise we can end up
     19340  # making bogus files that we don't know about and never remove.  For
     19341  # instance it was reported that on HP-UX the gcc test will end up
     19342  # making a dummy file named `D' -- because `-MD' means `put the output
     19343  # in D'.
     19344  mkdir conftest.dir
     19345  # Copy depcomp to subdir because otherwise we won't find it if we're
     19346  # using a relative directory.
     19347  cp "$am_depcomp" conftest.dir
     19348  cd conftest.dir
     19349  # We will build objects and dependencies in a subdirectory because
     19350  # it helps to detect inapplicable dependency modes.  For instance
     19351  # both Tru64's cc and ICC support -MD to output dependencies as a
     19352  # side effect of compilation, but ICC will put the dependencies in
     19353  # the current directory while Tru64 will put them in the object
     19354  # directory.
     19355  mkdir sub
     19356
     19357  am_cv_CC_dependencies_compiler_type=none
     19358  if test "$am_compiler_list" = ""; then
     19359     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
     19360  fi
     19361  for depmode in $am_compiler_list; do
     19362    # Setup a source with many dependencies, because some compilers
     19363    # like to wrap large dependency lists on column 80 (with \), and
     19364    # we should not choose a depcomp mode which is confused by this.
     19365    #
     19366    # We need to recreate these files for each test, as the compiler may
     19367    # overwrite some of them when testing with obscure command lines.
     19368    # This happens at least with the AIX C compiler.
     19369    : > sub/conftest.c
     19370    for i in 1 2 3 4 5 6; do
     19371      echo '#include "conftst'$i'.h"' >> sub/conftest.c
     19372      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
     19373      # Solaris 8's {/usr,}/bin/sh.
     19374      touch sub/conftst$i.h
     19375    done
     19376    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     19377
     19378    case $depmode in
     19379    nosideeffect)
     19380      # after this tag, mechanisms are not by side-effect, so they'll
     19381      # only be used when explicitly requested
     19382      if test "x$enable_dependency_tracking" = xyes; then
     19383        continue
     19384      else
     19385        break
     19386      fi
     19387      ;;
     19388    none) break ;;
     19389    esac
     19390    # We check with `-c' and `-o' for the sake of the "dashmstdout"
     19391    # mode.  It turns out that the SunPro C++ compiler does not properly
     19392    # handle `-M -o', and we need to detect this.
     19393    if depmode=$depmode \
     19394       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
     19395       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
     19396       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
     19397         >/dev/null 2>conftest.err &&
     19398       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
     19399       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     19400       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
     19401      # icc doesn't choke on unknown options, it will just issue warnings
     19402      # or remarks (even with -Werror).  So we grep stderr for any message
     19403      # that says an option was ignored or not supported.
     19404      # When given -MP, icc 7.0 and 7.1 complain thusly:
     19405      #   icc: Command line warning: ignoring option '-M'; no argument required
     19406      # The diagnosis changed in icc 8.0:
     19407      #   icc: Command line remark: option '-MP' not supported
     19408      if (grep 'ignoring option' conftest.err ||
     19409          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
     19410        am_cv_CC_dependencies_compiler_type=$depmode
     19411        break
     19412      fi
     19413    fi
     19414  done
     19415
     19416  cd ..
     19417  rm -rf conftest.dir
     19418else
     19419  am_cv_CC_dependencies_compiler_type=none
     19420fi
     19421
     19422fi
     19423echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
     19424echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
     19425CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
     19426
     19427
     19428
     19429if
     19430  test "x$enable_dependency_tracking" != xno \
     19431  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
     19432  am__fastdepCC_TRUE=
     19433  am__fastdepCC_FALSE='#'
     19434else
     19435  am__fastdepCC_TRUE='#'
     19436  am__fastdepCC_FALSE=
     19437fi
     19438
     19439
    1915019440
    1915119441echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
     
    1995120241   { (exit 1); exit 1; }; }
    1995220242fi
     20243if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
     20244  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
     20245Usually this means the macro was only invoked conditionally." >&5
     20246echo "$as_me: error: conditional \"AMDEP\" was never defined.
     20247Usually this means the macro was only invoked conditionally." >&2;}
     20248   { (exit 1); exit 1; }; }
     20249fi
     20250if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
     20251  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
     20252Usually this means the macro was only invoked conditionally." >&5
     20253echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
     20254Usually this means the macro was only invoked conditionally." >&2;}
     20255   { (exit 1); exit 1; }; }
     20256fi
    1995320257if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
    1995420258  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
     
    1996220266Usually this means the macro was only invoked conditionally." >&5
    1996320267echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
    19964 Usually this means the macro was only invoked conditionally." >&2;}
    19965    { (exit 1); exit 1; }; }
    19966 fi
    19967 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
    19968   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
    19969 Usually this means the macro was only invoked conditionally." >&5
    19970 echo "$as_me: error: conditional \"AMDEP\" was never defined.
    19971 Usually this means the macro was only invoked conditionally." >&2;}
    19972    { (exit 1); exit 1; }; }
    19973 fi
    19974 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
    19975   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
    19976 Usually this means the macro was only invoked conditionally." >&5
    19977 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
    1997820268Usually this means the macro was only invoked conditionally." >&2;}
    1997920269   { (exit 1); exit 1; }; }
     
    2054020830s,@build_vendor@,$build_vendor,;t t
    2054120831s,@build_os@,$build_os,;t t
     20832s,@CDEFS@,$CDEFS,;t t
     20833s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
     20834s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
     20835s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
     20836s,@CC@,$CC,;t t
     20837s,@CFLAGS@,$CFLAGS,;t t
     20838s,@LDFLAGS@,$LDFLAGS,;t t
     20839s,@CPPFLAGS@,$CPPFLAGS,;t t
     20840s,@ac_ct_CC@,$ac_ct_CC,;t t
     20841s,@EXEEXT@,$EXEEXT,;t t
     20842s,@OBJEXT@,$OBJEXT,;t t
     20843s,@MPICC@,$MPICC,;t t
    2054220844s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
    2054320845s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t
     
    2054520847s,@F77@,$F77,;t t
    2054620848s,@FFLAGS@,$FFLAGS,;t t
    20547 s,@LDFLAGS@,$LDFLAGS,;t t
    2054820849s,@ac_ct_F77@,$ac_ct_F77,;t t
    20549 s,@EXEEXT@,$EXEEXT,;t t
    20550 s,@OBJEXT@,$OBJEXT,;t t
    2055120850s,@MPIF77@,$MPIF77,;t t
    2055220851s,@EGREP@,$EGREP,;t t
     
    2057320872s,@am__tar@,$am__tar,;t t
    2057420873s,@am__untar@,$am__untar,;t t
     20874s,@DEPDIR@,$DEPDIR,;t t
     20875s,@am__include@,$am__include,;t t
     20876s,@am__quote@,$am__quote,;t t
     20877s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
     20878s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
     20879s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
     20880s,@CCDEPMODE@,$CCDEPMODE,;t t
     20881s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
     20882s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
    2057520883s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
    2057620884s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
     
    2058820896s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
    2058920897s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
    20590 s,@CC@,$CC,;t t
    20591 s,@CFLAGS@,$CFLAGS,;t t
    20592 s,@CPPFLAGS@,$CPPFLAGS,;t t
    20593 s,@ac_ct_CC@,$ac_ct_CC,;t t
    20594 s,@DEPDIR@,$DEPDIR,;t t
    20595 s,@am__include@,$am__include,;t t
    20596 s,@am__quote@,$am__quote,;t t
    20597 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
    20598 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
    20599 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
    20600 s,@CCDEPMODE@,$CCDEPMODE,;t t
    20601 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
    20602 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
    2060320898s,@host@,$host,;t t
    2060420899s,@host_cpu@,$host_cpu,;t t
Note: See TracChangeset for help on using the changeset viewer.