Changeset 121 for ThirdParty/Blas/stable


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

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

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

Legend:

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

    r92 r121  
    102102ACLOCAL = @ACLOCAL@
    103103ADDLIBS = @ADDLIBS@
     104ADD_CFLAGS = @ADD_CFLAGS@
    104105ADD_FFLAGS = @ADD_FFLAGS@
    105106ALWAYS_FALSE_FALSE = @ALWAYS_FALSE_FALSE@
     
    117118CC = @CC@
    118119CCDEPMODE = @CCDEPMODE@
     120CDEFS = @CDEFS@
    119121CFLAGS = @CFLAGS@
    120122CPP = @CPP@
     
    125127CXXFLAGS = @CXXFLAGS@
    126128CYGPATH_W = @CYGPATH_W@
     129DBG_CFLAGS = @DBG_CFLAGS@
    127130DBG_FFLAGS = @DBG_FFLAGS@
    128131DEFS = @DEFS@
     
    156159MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
    157160MAKEINFO = @MAKEINFO@
     161MPICC = @MPICC@
    158162MPIF77 = @MPIF77@
    159163OBJEXT = @OBJEXT@
     164OPT_CFLAGS = @OPT_CFLAGS@
    160165OPT_FFLAGS = @OPT_FFLAGS@
    161166PACKAGE = @PACKAGE@
  • ThirdParty/Blas/stable/1.0/configure

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