ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/configure
(Generate patch)

Comparing trunk/OOPSE/configure (file contents):
Revision 791 by mmeineke, Mon Sep 29 22:05:56 2003 UTC vs.
Revision 1182 by gezelter, Fri May 21 14:23:20 2004 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Guess values for system-dependent variables and create Makefiles.
3 < # Generated by GNU Autoconf 2.57 for OOPSE 1.0.
3 > # Generated by GNU Autoconf 2.59 for OOPSE 1.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
7 < # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 < # Free Software Foundation, Inc.
7 > # Copyright (C) 2003 Free Software Foundation, Inc.
8   # This configure script is free software; the Free Software Foundation
9   # gives unlimited permission to copy, distribute and modify it.
10   ## --------------------- ##
# Line 22 | Line 21 | fi
21   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22    set -o posix
23   fi
24 + DUALCASE=1; export DUALCASE # for MKS sh
25  
26   # Support unset when possible.
27 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
27 > if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28    as_unset=unset
29   else
30    as_unset=false
# Line 43 | Line 43 | do
43    LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44    LC_TELEPHONE LC_TIME
45   do
46 <  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 >  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47      eval $as_var=C; export $as_var
48    else
49      $as_unset $as_var
# Line 220 | Line 220 | else
220   if mkdir -p . 2>/dev/null; then
221    as_mkdir_p=:
222   else
223 +  test -d ./-p && rmdir ./-p
224    as_mkdir_p=false
225   fi
226  
227   as_executable_p="test -f"
228  
229   # Sed expression to map a string onto a valid CPP name.
230 < as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230 > as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231  
232   # Sed expression to map a string onto a valid variable name.
233 < as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 > as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234  
235  
236   # IFS
# Line 311 | Line 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKA
312   # include <unistd.h>
313   #endif"
314  
315 < 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 PROGNAME DEBUG build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR F90LIBS F90_FUNC F90_FUNC_ mpi_dir MPI_LIBDIR MPI_INC MPI_LIB MPIF77 MPIF90 MPILIBS CPP EGREP SPRNG_LIBDIR SPRNG_LIB SPRNG_INC HAVE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL MPI_F90_MODS MPIMODLIBNAME BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS'
315 > 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 PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR mpi MPI_LIBDIR MPI_INC MPI_F90INC MPI_LIB MPI_F90LIB CPP EGREP SPRNG_LIBDIR SPRNG_LIB SPRNG_INC HAVE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS'
316   ac_subst_files=''
317  
318   # Initialize some variables set by options.
# Line 670 | Line 671 | for ac_var in bindir sbindir libexecdir datadir syscon
671  
672   # Be sure to have absolute paths.
673   for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 <              localstatedir libdir includedir oldincludedir infodir mandir
674 >              localstatedir libdir includedir oldincludedir infodir mandir
675   do
676    eval ac_val=$`echo $ac_var`
677    case $ac_val in
# Line 710 | Line 711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711    # Try the directory containing this script, then its parent.
712    ac_confdir=`(dirname "$0") 2>/dev/null ||
713   $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 <         X"$0" : 'X\(//\)[^/]' \| \
715 <         X"$0" : 'X\(//\)$' \| \
716 <         X"$0" : 'X\(/\)' \| \
717 <         .     : '\(.\)' 2>/dev/null ||
714 >         X"$0" : 'X\(//\)[^/]' \| \
715 >         X"$0" : 'X\(//\)$' \| \
716 >         X"$0" : 'X\(/\)' \| \
717 >         .     : '\(.\)' 2>/dev/null ||
718   echo X"$0" |
719      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
# Line 784 | Line 785 | ac_env_MPIF77_set=${MPIF77+set}
785   ac_env_F90FLAGS_value=$F90FLAGS
786   ac_cv_env_F90FLAGS_set=${F90FLAGS+set}
787   ac_cv_env_F90FLAGS_value=$F90FLAGS
787 ac_env_MPIF77_set=${MPIF77+set}
788 ac_env_MPIF77_value=$MPIF77
789 ac_cv_env_MPIF77_set=${MPIF77+set}
790 ac_cv_env_MPIF77_value=$MPIF77
788   ac_env_CPP_set=${CPP+set}
789   ac_env_CPP_value=$CPP
790   ac_cv_env_CPP_set=${CPP+set}
# Line 825 | Line 822 | Installation directories:
822    cat <<_ACEOF
823   Installation directories:
824    --prefix=PREFIX         install architecture-independent files in PREFIX
825 <                          [$ac_default_prefix]
825 >                          [$ac_default_prefix]
826    --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
827 <                          [PREFIX]
827 >                          [PREFIX]
828  
829   By default, \`make install' will install all the files in
830   \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
# Line 874 | Line 871 | Optional Packages:
871   Optional Packages:
872    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
873    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
874 <  --with-mpi_dir=MPIDIR   give the path for MPI /usr/local
874 >  --with-mpi=MPIDIR   give the path for MPI /usr/local
875    --with-mpi-libdir=dir  give the path for MPI-libraries MPI_DIR/lib
876 <  --with-mpi_inc=dir  give the path for MPI-include-files MPI_DIR/include
876 >  --with-mpi-inc=dir  give the path for MPI-include-files MPI_DIR/include
877    --with-sprng_prefix=PREFIX
878                            Prefix where SPRNG is installed
879 <  --with-sprng_lib_prefix=PREFIX  SPRNG library directory
880 <  --with-sprng_include_prefix=PREFIX
879 >  --with-sprng-libdir=PREFIX  SPRNG library directory
880 >  --with-sprng-include=PREFIX
881                            SPRNG include directory
882 <  --with-mkl              Do we want MKL will check /usr/local/intel/mkl60 /opt/intel/mkl60
886 <  --with-mpi_f90_mods=<dir>
887 <                          Location where MPI f90 modules are installed
882 >  --with-mkl              Do we want MKL will check /usr/local/intel/mkl61 /opt/intel/mkl61
883  
884   Some influential environment variables:
885    CC          C compiler command
# Line 897 | Line 892 | Some influential environment variables:
892    CXXFLAGS    C++ compiler flags
893    F90         Fortran 90 compiler command
894    F90FLAGS    Fortran 90 compiler flags
900  MPIF77      MPI Fortran compiler command
895    CPP         C preprocessor
896  
897   Use these variables to override the choices made by `configure' or to help
# Line 937 | Line 931 | esac
931      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
932      ac_top_srcdir=$ac_top_builddir$srcdir ;;
933   esac
934 < # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
935 < # absolute.
936 < ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
937 < ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
938 < ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
939 < ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
934 >
935 > # Do not use `cd foo && pwd` to compute absolute paths, because
936 > # the directories may not exist.
937 > case `pwd` in
938 > .) ac_abs_builddir="$ac_dir";;
939 > *)
940 >  case "$ac_dir" in
941 >  .) ac_abs_builddir=`pwd`;;
942 >  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
943 >  *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 >  esac;;
945 > esac
946 > case $ac_abs_builddir in
947 > .) ac_abs_top_builddir=${ac_top_builddir}.;;
948 > *)
949 >  case ${ac_top_builddir}. in
950 >  .) ac_abs_top_builddir=$ac_abs_builddir;;
951 >  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
952 >  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 >  esac;;
954 > esac
955 > case $ac_abs_builddir in
956 > .) ac_abs_srcdir=$ac_srcdir;;
957 > *)
958 >  case $ac_srcdir in
959 >  .) ac_abs_srcdir=$ac_abs_builddir;;
960 >  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
961 >  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 >  esac;;
963 > esac
964 > case $ac_abs_builddir in
965 > .) ac_abs_top_srcdir=$ac_top_srcdir;;
966 > *)
967 >  case $ac_top_srcdir in
968 >  .) ac_abs_top_srcdir=$ac_abs_builddir;;
969 >  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
970 >  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
971 >  esac;;
972 > esac
973  
974      cd $ac_dir
975      # Check for guested configure; otherwise get Cygnus style configure.
# Line 953 | Line 980 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir &
980        echo
981        $SHELL $ac_srcdir/configure  --help=recursive
982      elif test -f $ac_srcdir/configure.ac ||
983 <           test -f $ac_srcdir/configure.in; then
983 >           test -f $ac_srcdir/configure.in; then
984        echo
985        $ac_configure --help
986      else
# Line 967 | Line 994 | generated by GNU Autoconf 2.57
994   if $ac_init_version; then
995    cat <<\_ACEOF
996   OOPSE configure 1.0
997 < generated by GNU Autoconf 2.57
997 > generated by GNU Autoconf 2.59
998  
999 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
973 < Free Software Foundation, Inc.
999 > Copyright (C) 2003 Free Software Foundation, Inc.
1000   This configure script is free software; the Free Software Foundation
1001   gives unlimited permission to copy, distribute and modify it.
1002   _ACEOF
# Line 982 | Line 1008 | generated by GNU Autoconf 2.57.  Invocation command li
1008   running configure, to aid debugging if configure makes a mistake.
1009  
1010   It was created by OOPSE $as_me 1.0, which was
1011 < generated by GNU Autoconf 2.57.  Invocation command line was
1011 > generated by GNU Autoconf 2.59.  Invocation command line was
1012  
1013    $ $0 $@
1014  
# Line 1059 | Line 1085 | do
1085      2)
1086        ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087        if test $ac_must_keep_next = true; then
1088 <        ac_must_keep_next=false # Got value, back to normal.
1088 >        ac_must_keep_next=false # Got value, back to normal.
1089        else
1090 <        case $ac_arg in
1091 <          *=* | --config-cache | -C | -disable-* | --disable-* \
1092 <          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 <          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 <          | -with-* | --with-* | -without-* | --without-* | --x)
1095 <            case "$ac_configure_args0 " in
1096 <              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 <            esac
1098 <            ;;
1099 <          -* ) ac_must_keep_next=true ;;
1100 <        esac
1090 >        case $ac_arg in
1091 >          *=* | --config-cache | -C | -disable-* | --disable-* \
1092 >          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 >          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 >          | -with-* | --with-* | -without-* | --without-* | --x)
1095 >            case "$ac_configure_args0 " in
1096 >              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 >            esac
1098 >            ;;
1099 >          -* ) ac_must_keep_next=true ;;
1100 >        esac
1101        fi
1102        ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103        # Get rid of the leading space.
# Line 1105 | Line 1131 | _ASBOX
1131      case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132      *ac_space=\ *)
1133        sed -n \
1134 <        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 >        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136        ;;
1137      *)
1138        sed -n \
1139 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140        ;;
1141      esac;
1142   }
# Line 1139 | Line 1165 | _ASBOX
1165        for ac_var in $ac_subst_files
1166        do
1167          eval ac_val=$`echo $ac_var`
1168 <        echo "$ac_var='"'"'$ac_val'"'"'"
1168 >        echo "$ac_var='"'"'$ac_val'"'"'"
1169        done | sort
1170        echo
1171      fi
# Line 1158 | Line 1184 | _ASBOX
1184        echo "$as_me: caught signal $ac_signal"
1185      echo "$as_me: exit $exit_status"
1186    } >&5
1187 <  rm -f core core.* *.core &&
1187 >  rm -f core *.core &&
1188    rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189      exit $exit_status
1190       ' 0
# Line 1238 | Line 1264 | for ac_var in `(set) 2>&1 |
1264   # value.
1265   ac_cache_corrupted=false
1266   for ac_var in `(set) 2>&1 |
1267 <               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1267 >               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268    eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269    eval ac_new_set=\$ac_env_${ac_var}_set
1270    eval ac_old_val="\$ac_cv_env_${ac_var}_value"
# Line 1255 | Line 1281 | echo "$as_me: error: \`$ac_var' was not set in the pre
1281      ,);;
1282      *)
1283        if test "x$ac_old_val" != "x$ac_new_val"; then
1284 <        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1284 >        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285   echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 <        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1286 >        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1287   echo "$as_me:   former value:  $ac_old_val" >&2;}
1288 <        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1288 >        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1289   echo "$as_me:   current value: $ac_new_val" >&2;}
1290 <        ac_cache_corrupted=:
1290 >        ac_cache_corrupted=:
1291        fi;;
1292    esac
1293    # Pass precious variables to config.status.
# Line 1828 | Line 1854 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1854  
1855  
1856  
1831 # what should I build?
1857  
1833 # Check whether --enable-debug or --disable-debug was given.
1834 if test "${enable_debug+set}" = set; then
1835  enableval="$enable_debug"
1836  DEBUG=1
1837 fi;
1858  
1859 +
1860 +
1861 +
1862 +
1863 +
1864 +
1865 +
1866 +
1867 +
1868 +
1869 +
1870 +
1871 +
1872 +
1873   # set program name
1874   PROGNAME="oopse"
1875  
1876  
1877 + # there are two ways to do debugging.  One with the --enable-debug flag
1878 + # and one using the DEBUG environment variable
1879 +
1880 + debug=0
1881 + # Check whether --enable-debug or --disable-debug was given.
1882 + if test "${enable_debug+set}" = set; then
1883 +  enableval="$enable_debug"
1884 +  debug=1
1885 + fi;
1886   if test "${DEBUG}"; then
1887  
1888   cat >>confdefs.h <<\_ACEOF
1889 < #define DEBUG 1
1889 > #define debug 1
1890   _ACEOF
1891  
1892    msg="$msg, debug mode"
# Line 2025 | Line 2068 | cat >conftest.$ac_ext <<_ACEOF
2068    (exit $ac_status); }
2069  
2070   cat >conftest.$ac_ext <<_ACEOF
2028 #line $LINENO "configure"
2071   /* confdefs.h.  */
2072   _ACEOF
2073   cat confdefs.h >>conftest.$ac_ext
# Line 2045 | Line 2087 | echo "$as_me:$LINENO: checking for C compiler default
2087   # Try to create an executable without -o first, disregard a.out.
2088   # It will help us diagnose broken compilers, and finding out an intuition
2089   # of exeext.
2090 < echo "$as_me:$LINENO: checking for C compiler default output" >&5
2091 < echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2090 > echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2091 > echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2092   ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2093   if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2094    (eval $ac_link_default) 2>&5
# Line 2066 | Line 2108 | do
2108    test -f "$ac_file" || continue
2109    case $ac_file in
2110      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2111 <        ;;
2111 >        ;;
2112      conftest.$ac_ext )
2113 <        # This is the source file.
2114 <        ;;
2113 >        # This is the source file.
2114 >        ;;
2115      [ab].out )
2116 <        # We found the default executable, but exeext='' is most
2117 <        # certainly right.
2118 <        break;;
2116 >        # We found the default executable, but exeext='' is most
2117 >        # certainly right.
2118 >        break;;
2119      *.* )
2120 <        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2121 <        # FIXME: I believe we export ac_cv_exeext for Libtool,
2122 <        # but it would be cool to find out if it's true.  Does anybody
2123 <        # maintain Libtool? --akim.
2124 <        export ac_cv_exeext
2125 <        break;;
2120 >        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2121 >        # FIXME: I believe we export ac_cv_exeext for Libtool,
2122 >        # but it would be cool to find out if it's true.  Does anybody
2123 >        # maintain Libtool? --akim.
2124 >        export ac_cv_exeext
2125 >        break;;
2126      * )
2127 <        break;;
2127 >        break;;
2128    esac
2129   done
2130   else
# Line 2156 | Line 2198 | for ac_file in conftest.exe conftest conftest.*; do
2198    case $ac_file in
2199      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2200      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2201 <          export ac_cv_exeext
2202 <          break;;
2201 >          export ac_cv_exeext
2202 >          break;;
2203      * ) break;;
2204    esac
2205   done
# Line 2182 | Line 2224 | else
2224    echo $ECHO_N "(cached) $ECHO_C" >&6
2225   else
2226    cat >conftest.$ac_ext <<_ACEOF
2185 #line $LINENO "configure"
2227   /* confdefs.h.  */
2228   _ACEOF
2229   cat confdefs.h >>conftest.$ac_ext
# Line 2233 | Line 2274 | else
2274    echo $ECHO_N "(cached) $ECHO_C" >&6
2275   else
2276    cat >conftest.$ac_ext <<_ACEOF
2236 #line $LINENO "configure"
2277   /* confdefs.h.  */
2278   _ACEOF
2279   cat confdefs.h >>conftest.$ac_ext
# Line 2253 | Line 2293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293   _ACEOF
2294   rm -f conftest.$ac_objext
2295   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296 <  (eval $ac_compile) 2>&5
2296 >  (eval $ac_compile) 2>conftest.er1
2297    ac_status=$?
2298 +  grep -v '^ *+' conftest.er1 >conftest.err
2299 +  rm -f conftest.er1
2300 +  cat conftest.err >&5
2301    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302    (exit $ac_status); } &&
2303 <         { ac_try='test -s conftest.$ac_objext'
2303 >         { ac_try='test -z "$ac_c_werror_flag"
2304 >                         || test ! -s conftest.err'
2305    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306    (eval $ac_try) 2>&5
2307    ac_status=$?
2308    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 +  (exit $ac_status); }; } &&
2310 +         { ac_try='test -s conftest.$ac_objext'
2311 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 +  (eval $ac_try) 2>&5
2313 +  ac_status=$?
2314 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315    (exit $ac_status); }; }; then
2316    ac_compiler_gnu=yes
2317   else
# Line 2270 | Line 2320 | rm -f conftest.$ac_objext conftest.$ac_ext
2320  
2321   ac_compiler_gnu=no
2322   fi
2323 < rm -f conftest.$ac_objext conftest.$ac_ext
2323 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2324   ac_cv_c_compiler_gnu=$ac_compiler_gnu
2325  
2326   fi
# Line 2286 | Line 2336 | else
2336    echo $ECHO_N "(cached) $ECHO_C" >&6
2337   else
2338    cat >conftest.$ac_ext <<_ACEOF
2289 #line $LINENO "configure"
2339   /* confdefs.h.  */
2340   _ACEOF
2341   cat confdefs.h >>conftest.$ac_ext
# Line 2303 | Line 2352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352   _ACEOF
2353   rm -f conftest.$ac_objext
2354   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355 <  (eval $ac_compile) 2>&5
2355 >  (eval $ac_compile) 2>conftest.er1
2356    ac_status=$?
2357 +  grep -v '^ *+' conftest.er1 >conftest.err
2358 +  rm -f conftest.er1
2359 +  cat conftest.err >&5
2360    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361    (exit $ac_status); } &&
2362 <         { ac_try='test -s conftest.$ac_objext'
2362 >         { ac_try='test -z "$ac_c_werror_flag"
2363 >                         || test ! -s conftest.err'
2364    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365    (eval $ac_try) 2>&5
2366    ac_status=$?
2367    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 +  (exit $ac_status); }; } &&
2369 +         { ac_try='test -s conftest.$ac_objext'
2370 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 +  (eval $ac_try) 2>&5
2372 +  ac_status=$?
2373 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374    (exit $ac_status); }; }; then
2375    ac_cv_prog_cc_g=yes
2376   else
# Line 2320 | Line 2379 | rm -f conftest.$ac_objext conftest.$ac_ext
2379  
2380   ac_cv_prog_cc_g=no
2381   fi
2382 < rm -f conftest.$ac_objext conftest.$ac_ext
2382 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2383   fi
2384   echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2385   echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
# Line 2347 | Line 2406 | cat >conftest.$ac_ext <<_ACEOF
2406    ac_cv_prog_cc_stdc=no
2407   ac_save_CC=$CC
2408   cat >conftest.$ac_ext <<_ACEOF
2350 #line $LINENO "configure"
2409   /* confdefs.h.  */
2410   _ACEOF
2411   cat confdefs.h >>conftest.$ac_ext
# Line 2375 | Line 2433 | int test (int i, double x);
2433    va_end (v);
2434    return s;
2435   }
2436 +
2437 + /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2438 +   function prototypes and stuff, but not '\xHH' hex character constants.
2439 +   These don't provoke an error unfortunately, instead are silently treated
2440 +   as 'x'.  The following induces an error, until -std1 is added to get
2441 +   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2442 +   array size at least.  It's necessary to write '\x00'==0 to get something
2443 +   that's true only with -std1.  */
2444 + int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2445 +
2446   int test (int i, double x);
2447   struct s1 {int (*f) (int a);};
2448   struct s2 {int (*f) (double a);};
# Line 2401 | Line 2469 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469    CC="$ac_save_CC $ac_arg"
2470    rm -f conftest.$ac_objext
2471   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472 <  (eval $ac_compile) 2>&5
2472 >  (eval $ac_compile) 2>conftest.er1
2473    ac_status=$?
2474 +  grep -v '^ *+' conftest.er1 >conftest.err
2475 +  rm -f conftest.er1
2476 +  cat conftest.err >&5
2477    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478    (exit $ac_status); } &&
2479 <         { ac_try='test -s conftest.$ac_objext'
2479 >         { ac_try='test -z "$ac_c_werror_flag"
2480 >                         || test ! -s conftest.err'
2481    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482    (eval $ac_try) 2>&5
2483    ac_status=$?
2484    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 +  (exit $ac_status); }; } &&
2486 +         { ac_try='test -s conftest.$ac_objext'
2487 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488 +  (eval $ac_try) 2>&5
2489 +  ac_status=$?
2490 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491    (exit $ac_status); }; }; then
2492    ac_cv_prog_cc_stdc=$ac_arg
2493   break
# Line 2418 | Line 2496 | rm -f conftest.$ac_objext
2496   sed 's/^/| /' conftest.$ac_ext >&5
2497  
2498   fi
2499 < rm -f conftest.$ac_objext
2499 > rm -f conftest.err conftest.$ac_objext
2500   done
2501   rm -f conftest.$ac_ext conftest.$ac_objext
2502   CC=$ac_save_CC
# Line 2446 | Line 2524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524   _ACEOF
2525   rm -f conftest.$ac_objext
2526   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 <  (eval $ac_compile) 2>&5
2527 >  (eval $ac_compile) 2>conftest.er1
2528    ac_status=$?
2529 +  grep -v '^ *+' conftest.er1 >conftest.err
2530 +  rm -f conftest.er1
2531 +  cat conftest.err >&5
2532    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533    (exit $ac_status); } &&
2534 <         { ac_try='test -s conftest.$ac_objext'
2534 >         { ac_try='test -z "$ac_c_werror_flag"
2535 >                         || test ! -s conftest.err'
2536    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537    (eval $ac_try) 2>&5
2538    ac_status=$?
2539    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 +  (exit $ac_status); }; } &&
2541 +         { ac_try='test -s conftest.$ac_objext'
2542 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543 +  (eval $ac_try) 2>&5
2544 +  ac_status=$?
2545 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546    (exit $ac_status); }; }; then
2547    for ac_declaration in \
2548 <   ''\
2461 <   '#include <stdlib.h>' \
2548 >   '' \
2549     'extern "C" void std::exit (int) throw (); using std::exit;' \
2550     'extern "C" void std::exit (int); using std::exit;' \
2551     'extern "C" void exit (int) throw ();' \
# Line 2466 | Line 2553 | do
2553     'void exit (int);'
2554   do
2555    cat >conftest.$ac_ext <<_ACEOF
2469 #line $LINENO "configure"
2556   /* confdefs.h.  */
2557   _ACEOF
2558   cat confdefs.h >>conftest.$ac_ext
2559   cat >>conftest.$ac_ext <<_ACEOF
2560   /* end confdefs.h.  */
2475 #include <stdlib.h>
2561   $ac_declaration
2562 + #include <stdlib.h>
2563   int
2564   main ()
2565   {
# Line 2484 | Line 2570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570   _ACEOF
2571   rm -f conftest.$ac_objext
2572   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2573 <  (eval $ac_compile) 2>&5
2573 >  (eval $ac_compile) 2>conftest.er1
2574    ac_status=$?
2575 +  grep -v '^ *+' conftest.er1 >conftest.err
2576 +  rm -f conftest.er1
2577 +  cat conftest.err >&5
2578    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579    (exit $ac_status); } &&
2580 <         { ac_try='test -s conftest.$ac_objext'
2580 >         { ac_try='test -z "$ac_c_werror_flag"
2581 >                         || test ! -s conftest.err'
2582    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583    (eval $ac_try) 2>&5
2584    ac_status=$?
2585    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 +  (exit $ac_status); }; } &&
2587 +         { ac_try='test -s conftest.$ac_objext'
2588 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 +  (eval $ac_try) 2>&5
2590 +  ac_status=$?
2591 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592    (exit $ac_status); }; }; then
2593    :
2594   else
# Line 2501 | Line 2597 | rm -f conftest.$ac_objext conftest.$ac_ext
2597  
2598   continue
2599   fi
2600 < rm -f conftest.$ac_objext conftest.$ac_ext
2600 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2601    cat >conftest.$ac_ext <<_ACEOF
2506 #line $LINENO "configure"
2602   /* confdefs.h.  */
2603   _ACEOF
2604   cat confdefs.h >>conftest.$ac_ext
# Line 2520 | Line 2615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615   _ACEOF
2616   rm -f conftest.$ac_objext
2617   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618 <  (eval $ac_compile) 2>&5
2618 >  (eval $ac_compile) 2>conftest.er1
2619    ac_status=$?
2620 +  grep -v '^ *+' conftest.er1 >conftest.err
2621 +  rm -f conftest.er1
2622 +  cat conftest.err >&5
2623    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624    (exit $ac_status); } &&
2625 <         { ac_try='test -s conftest.$ac_objext'
2625 >         { ac_try='test -z "$ac_c_werror_flag"
2626 >                         || test ! -s conftest.err'
2627    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628    (eval $ac_try) 2>&5
2629    ac_status=$?
2630    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 +  (exit $ac_status); }; } &&
2632 +         { ac_try='test -s conftest.$ac_objext'
2633 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 +  (eval $ac_try) 2>&5
2635 +  ac_status=$?
2636 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637    (exit $ac_status); }; }; then
2638    break
2639   else
# Line 2536 | Line 2641 | rm -f conftest.$ac_objext conftest.$ac_ext
2641   sed 's/^/| /' conftest.$ac_ext >&5
2642  
2643   fi
2644 < rm -f conftest.$ac_objext conftest.$ac_ext
2644 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2645   done
2646   rm -f conftest*
2647   if test -n "$ac_declaration"; then
# Line 2550 | Line 2655 | rm -f conftest.$ac_objext conftest.$ac_ext
2655   sed 's/^/| /' conftest.$ac_ext >&5
2656  
2657   fi
2658 < rm -f conftest.$ac_objext conftest.$ac_ext
2658 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2659   ac_ext=c
2660   ac_cpp='$CPP $CPPFLAGS'
2661   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 2558 | Line 2663 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
2663   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664  
2665  
2561
2562
2563
2564 # Try to determine "good" native compiler flags if none specified on command
2565 # line
2566 if test "$ac_test_CFLAGS" != "set"; then
2567  CFLAGS=""
2568  case "${host_cpu}-${host_os}" in
2569
2570  *linux*) if test "$CC" = icc; then
2571                    CFLAGS="-O"
2572                fi;;
2573  sparc-solaris2*) if test "$CC" = cc; then
2574                    CFLAGS="-native -fast -xO5 -dalign"
2575                 fi;;
2576
2577  alpha*-osf*)  if test "$CC" = cc; then
2578                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
2579                fi;;
2580
2581  hppa*-hpux*)  if test "$CC" = cc; then
2582                    CFLAGS="-Ae +O3 +Oall"
2583                fi;;
2584
2585   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
2586                    CFLAGS="-O3 -qtune=auto -qansialias -w"
2587                fi;;
2588   powerpc*-aix*)
2589        if test "$CC" = cc -o "$CC" = xlc; then
2590                CFLAGS="-O3 -qtune=auto -qansialias -w"
2591                echo "*******************************************************"
2592                echo "*  You have AIX on an unknown powerpc system.  It is  *"
2593                echo "*  recommended that you use                           *"
2594                echo "*                                                     *"
2595                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
2596                echo "*                                 ^^^                 *"
2597                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
2598                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
2599                echo "*******************************************************"
2600        fi;;
2601   *darwin*)
2602        if test "$CC" = xlc -o "$CC" = cc; then
2603                CFLAGS="-O3 -qtune=auto -w"
2604                echo "*******************************************************"
2605                echo "*  You have Darwin on an unknown powerpc system.      *"
2606                echo "*  It is recommended that you use                     *"
2607                echo "*                                                     *"
2608                echo "*  CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
2609                echo "*                               ^^^                   *"
2610                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
2611                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
2612                echo "*******************************************************"
2613        fi;;
2614  esac
2615
2616  # use default flags for gcc on all systems
2617  if test $ac_cv_c_compiler_gnu = yes; then
2618     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
2619  fi
2620
2621  # test for gcc-specific flags:
2622  if test $ac_cv_c_compiler_gnu = yes; then
2623    # -malign-double for x86 systems
2624
2625
2626 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
2627 echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
2628 if test "${ac_align_double+set}" = set; then
2629  echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631  echo 'void f(){}' > conftest.c
2632 if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
2633        ac_align_double=yes
2634 else
2635        ac_align_double=no
2636 fi
2637 rm -f conftest*
2638
2639 fi
2640 echo "$as_me:$LINENO: result: $ac_align_double" >&5
2641 echo "${ECHO_T}$ac_align_double" >&6
2642 if test "$ac_align_double" = yes; then
2643        :
2644        CFLAGS="$CFLAGS -malign-double"
2645 else
2646        :
2647
2648 fi
2649
2650    # -fstrict-aliasing for gcc-2.95+
2651
2652
2653 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
2654 echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
2655 if test "${ac_fstrict_aliasing+set}" = set; then
2656  echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658  echo 'void f(){}' > conftest.c
2659 if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
2660        ac_fstrict_aliasing=yes
2661 else
2662        ac_fstrict_aliasing=no
2663 fi
2664 rm -f conftest*
2665
2666 fi
2667 echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
2668 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
2669 if test "$ac_fstrict_aliasing" = yes; then
2670        :
2671        CFLAGS="$CFLAGS -fstrict-aliasing"
2672 else
2673        :
2674
2675 fi
2676
2677  fi
2678
2679  CPU_FLAGS=""
2680  if test "$GCC" = "yes"; then
2681                  case "${host_cpu}" in
2682          i586*)
2683
2684 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
2685 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
2686 if test "${ac_cpu_pentium+set}" = set; then
2687  echo $ECHO_N "(cached) $ECHO_C" >&6
2688 else
2689  echo 'void f(){}' > conftest.c
2690 if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
2691        ac_cpu_pentium=yes
2692 else
2693        ac_cpu_pentium=no
2694 fi
2695 rm -f conftest*
2696
2697 fi
2698 echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
2699 echo "${ECHO_T}$ac_cpu_pentium" >&6
2700 if test "$ac_cpu_pentium" = yes; then
2701        :
2702        CPU_FLAGS=-mcpu=pentium
2703 else
2704        :
2705
2706
2707 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
2708 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
2709 if test "${ac_pentium+set}" = set; then
2710  echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712  echo 'void f(){}' > conftest.c
2713 if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
2714        ac_pentium=yes
2715 else
2716        ac_pentium=no
2717 fi
2718 rm -f conftest*
2719
2720 fi
2721 echo "$as_me:$LINENO: result: $ac_pentium" >&5
2722 echo "${ECHO_T}$ac_pentium" >&6
2723 if test "$ac_pentium" = yes; then
2724        :
2725        CPU_FLAGS=-mpentium
2726 else
2727        :
2728
2729 fi
2730
2731 fi
2732
2733                  ;;
2734          i686*)
2735
2736 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
2737 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
2738 if test "${ac_cpu_pentiumpro+set}" = set; then
2739  echo $ECHO_N "(cached) $ECHO_C" >&6
2740 else
2741  echo 'void f(){}' > conftest.c
2742 if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
2743        ac_cpu_pentiumpro=yes
2744 else
2745        ac_cpu_pentiumpro=no
2746 fi
2747 rm -f conftest*
2748
2749 fi
2750 echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
2751 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
2752 if test "$ac_cpu_pentiumpro" = yes; then
2753        :
2754        CPU_FLAGS=-mcpu=pentiumpro
2755 else
2756        :
2757
2758
2759 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
2760 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
2761 if test "${ac_pentiumpro+set}" = set; then
2762  echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764  echo 'void f(){}' > conftest.c
2765 if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
2766        ac_pentiumpro=yes
2767 else
2768        ac_pentiumpro=no
2769 fi
2770 rm -f conftest*
2771
2772 fi
2773 echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
2774 echo "${ECHO_T}$ac_pentiumpro" >&6
2775 if test "$ac_pentiumpro" = yes; then
2776        :
2777        CPU_FLAGS=-mpentiumpro
2778 else
2779        :
2780
2781 fi
2782
2783 fi
2784
2785                  ;;
2786          powerpc*)
2787                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
2788                is60x=`echo $cputype | egrep "^600-9e?$"`
2789                if test -n "$is60x"; then
2790
2791
2792 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
2793 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
2794 if test "${ac_m_cpu_60x+set}" = set; then
2795  echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797  echo 'void f(){}' > conftest.c
2798 if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
2799        ac_m_cpu_60x=yes
2800 else
2801        ac_m_cpu_60x=no
2802 fi
2803 rm -f conftest*
2804
2805 fi
2806 echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
2807 echo "${ECHO_T}$ac_m_cpu_60x" >&6
2808 if test "$ac_m_cpu_60x" = yes; then
2809        :
2810        CPU_FLAGS=-mcpu=$cputype
2811 else
2812        :
2813
2814 fi
2815
2816                elif test "$cputype" = 750; then
2817
2818
2819 echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
2820 echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
2821 if test "${ac_cv_prog_gcc_2_95+set}" = set; then
2822  echo $ECHO_N "(cached) $ECHO_C" >&6
2823 else
2824
2825 cat > conftest.c <<EOF
2826 #ifdef __GNUC__
2827 #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
2828     yes;
2829 #  endif
2830 #endif
2831 EOF
2832 if { ac_try='${CC-cc} -E conftest.c'
2833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834  (eval $ac_try) 2>&5
2835  ac_status=$?
2836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2838  ac_cv_prog_gcc_2_95=yes
2839 else
2840  ac_cv_prog_gcc_2_95=no
2841 fi
2842
2843 fi
2844 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
2845 echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
2846 if test "$ac_cv_prog_gcc_2_95" = yes; then
2847        :
2848
2849
2850 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
2851 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
2852 if test "${ac_m_cpu_750+set}" = set; then
2853  echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855  echo 'void f(){}' > conftest.c
2856 if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
2857        ac_m_cpu_750=yes
2858 else
2859        ac_m_cpu_750=no
2860 fi
2861 rm -f conftest*
2862
2863 fi
2864 echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
2865 echo "${ECHO_T}$ac_m_cpu_750" >&6
2866 if test "$ac_m_cpu_750" = yes; then
2867        :
2868        CPU_FLAGS=-mcpu=750
2869 else
2870        :
2871
2872 fi
2873
2874 else
2875        :
2876
2877 fi
2878
2879                fi
2880                if test -z "$CPU_FLAGS"; then
2881
2882
2883 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
2884 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
2885 if test "${ac_m_cpu_powerpc+set}" = set; then
2886  echo $ECHO_N "(cached) $ECHO_C" >&6
2887 else
2888  echo 'void f(){}' > conftest.c
2889 if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
2890        ac_m_cpu_powerpc=yes
2891 else
2892        ac_m_cpu_powerpc=no
2893 fi
2894 rm -f conftest*
2895
2896 fi
2897 echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
2898 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
2899 if test "$ac_m_cpu_powerpc" = yes; then
2900        :
2901        CPU_FLAGS=-mcpu=powerpc
2902 else
2903        :
2904
2905 fi
2906
2907                fi
2908                if test -z "$CPU_FLAGS"; then
2909
2910
2911 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
2912 echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
2913 if test "${ac_m_powerpc+set}" = set; then
2914  echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916  echo 'void f(){}' > conftest.c
2917 if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
2918        ac_m_powerpc=yes
2919 else
2920        ac_m_powerpc=no
2921 fi
2922 rm -f conftest*
2923
2924 fi
2925 echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
2926 echo "${ECHO_T}$ac_m_powerpc" >&6
2927 if test "$ac_m_powerpc" = yes; then
2928        :
2929        CPU_FLAGS=-mpowerpc
2930 else
2931        :
2932
2933 fi
2934
2935                fi
2936          esac
2937  fi
2938
2939  if test -n "$CPU_FLAGS"; then
2940        CFLAGS="$CFLAGS $CPU_FLAGS"
2941  fi
2942
2943  if test -z "$CFLAGS"; then
2944        echo ""
2945        echo "********************************************************"
2946        echo "* WARNING: Don't know the best CFLAGS for this system  *"
2947        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
2948        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
2949        echo "********************************************************"
2950        echo ""
2951        CFLAGS="-O3"
2952  fi
2953
2954
2955
2956 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
2957 echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
2958 if test "${ac_guessed_cflags+set}" = set; then
2959  echo $ECHO_N "(cached) $ECHO_C" >&6
2960 else
2961  echo 'void f(){}' > conftest.c
2962 if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
2963        ac_guessed_cflags=yes
2964 else
2965        ac_guessed_cflags=no
2966 fi
2967 rm -f conftest*
2968
2969 fi
2970 echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
2971 echo "${ECHO_T}$ac_guessed_cflags" >&6
2972 if test "$ac_guessed_cflags" = yes; then
2973        :
2974
2975 else
2976        :
2977
2978        echo ""
2979        echo "********************************************************"
2980        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
2981        echo "* your compiler.                                       *"
2982        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
2983        echo "********************************************************"
2984        echo ""
2985        CFLAGS=""
2986
2987 fi
2988
2989
2990 fi
2991
2666   ac_ext=cc
2667   ac_cpp='$CXXCPP $CPPFLAGS'
2668   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2671   if test -n "$ac_tool_prefix"; then
2672 <  for ac_prog in $CCC icpc icc xlC g++ c++
2672 >  for ac_prog in $CCC icpc icc xlC CC g++ c++
2673    do
2674      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2675   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 3037 | Line 2711 | if test -z "$CXX"; then
2711   fi
2712   if test -z "$CXX"; then
2713    ac_ct_CXX=$CXX
2714 <  for ac_prog in $CCC icpc icc xlC g++ c++
2714 >  for ac_prog in $CCC icpc icc xlC CC g++ c++
2715   do
2716    # Extract the first word of "$ac_prog", so it can be a program name with args.
2717   set dummy $ac_prog; ac_word=$2
# Line 3108 | Line 2782 | else
2782    echo $ECHO_N "(cached) $ECHO_C" >&6
2783   else
2784    cat >conftest.$ac_ext <<_ACEOF
3111 #line $LINENO "configure"
2785   /* confdefs.h.  */
2786   _ACEOF
2787   cat confdefs.h >>conftest.$ac_ext
# Line 3128 | Line 2801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801   _ACEOF
2802   rm -f conftest.$ac_objext
2803   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804 <  (eval $ac_compile) 2>&5
2804 >  (eval $ac_compile) 2>conftest.er1
2805    ac_status=$?
2806 +  grep -v '^ *+' conftest.er1 >conftest.err
2807 +  rm -f conftest.er1
2808 +  cat conftest.err >&5
2809    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810    (exit $ac_status); } &&
2811 <         { ac_try='test -s conftest.$ac_objext'
2811 >         { ac_try='test -z "$ac_cxx_werror_flag"
2812 >                         || test ! -s conftest.err'
2813    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814    (eval $ac_try) 2>&5
2815    ac_status=$?
2816    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 +  (exit $ac_status); }; } &&
2818 +         { ac_try='test -s conftest.$ac_objext'
2819 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 +  (eval $ac_try) 2>&5
2821 +  ac_status=$?
2822 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823    (exit $ac_status); }; }; then
2824    ac_compiler_gnu=yes
2825   else
# Line 3145 | Line 2828 | rm -f conftest.$ac_objext conftest.$ac_ext
2828  
2829   ac_compiler_gnu=no
2830   fi
2831 < rm -f conftest.$ac_objext conftest.$ac_ext
2831 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2832   ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2833  
2834   fi
# Line 3161 | Line 2844 | else
2844    echo $ECHO_N "(cached) $ECHO_C" >&6
2845   else
2846    cat >conftest.$ac_ext <<_ACEOF
3164 #line $LINENO "configure"
2847   /* confdefs.h.  */
2848   _ACEOF
2849   cat confdefs.h >>conftest.$ac_ext
# Line 3178 | Line 2860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2860   _ACEOF
2861   rm -f conftest.$ac_objext
2862   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 <  (eval $ac_compile) 2>&5
2863 >  (eval $ac_compile) 2>conftest.er1
2864    ac_status=$?
2865 +  grep -v '^ *+' conftest.er1 >conftest.err
2866 +  rm -f conftest.er1
2867 +  cat conftest.err >&5
2868    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869    (exit $ac_status); } &&
2870 <         { ac_try='test -s conftest.$ac_objext'
2870 >         { ac_try='test -z "$ac_cxx_werror_flag"
2871 >                         || test ! -s conftest.err'
2872    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873    (eval $ac_try) 2>&5
2874    ac_status=$?
2875    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 +  (exit $ac_status); }; } &&
2877 +         { ac_try='test -s conftest.$ac_objext'
2878 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 +  (eval $ac_try) 2>&5
2880 +  ac_status=$?
2881 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882    (exit $ac_status); }; }; then
2883    ac_cv_prog_cxx_g=yes
2884   else
# Line 3195 | Line 2887 | rm -f conftest.$ac_objext conftest.$ac_ext
2887  
2888   ac_cv_prog_cxx_g=no
2889   fi
2890 < rm -f conftest.$ac_objext conftest.$ac_ext
2890 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2891   fi
2892   echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2893   echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
# Line 3215 | Line 2907 | for ac_declaration in \
2907    fi
2908   fi
2909   for ac_declaration in \
2910 <   ''\
3219 <   '#include <stdlib.h>' \
2910 >   '' \
2911     'extern "C" void std::exit (int) throw (); using std::exit;' \
2912     'extern "C" void std::exit (int); using std::exit;' \
2913     'extern "C" void exit (int) throw ();' \
# Line 3224 | Line 2915 | do
2915     'void exit (int);'
2916   do
2917    cat >conftest.$ac_ext <<_ACEOF
3227 #line $LINENO "configure"
2918   /* confdefs.h.  */
2919   _ACEOF
2920   cat confdefs.h >>conftest.$ac_ext
2921   cat >>conftest.$ac_ext <<_ACEOF
2922   /* end confdefs.h.  */
3233 #include <stdlib.h>
2923   $ac_declaration
2924 + #include <stdlib.h>
2925   int
2926   main ()
2927   {
# Line 3242 | Line 2932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2932   _ACEOF
2933   rm -f conftest.$ac_objext
2934   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935 <  (eval $ac_compile) 2>&5
2935 >  (eval $ac_compile) 2>conftest.er1
2936    ac_status=$?
2937 +  grep -v '^ *+' conftest.er1 >conftest.err
2938 +  rm -f conftest.er1
2939 +  cat conftest.err >&5
2940    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941    (exit $ac_status); } &&
2942 <         { ac_try='test -s conftest.$ac_objext'
2942 >         { ac_try='test -z "$ac_cxx_werror_flag"
2943 >                         || test ! -s conftest.err'
2944    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945    (eval $ac_try) 2>&5
2946    ac_status=$?
2947    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 +  (exit $ac_status); }; } &&
2949 +         { ac_try='test -s conftest.$ac_objext'
2950 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 +  (eval $ac_try) 2>&5
2952 +  ac_status=$?
2953 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954    (exit $ac_status); }; }; then
2955    :
2956   else
# Line 3259 | Line 2959 | rm -f conftest.$ac_objext conftest.$ac_ext
2959  
2960   continue
2961   fi
2962 < rm -f conftest.$ac_objext conftest.$ac_ext
2962 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2963    cat >conftest.$ac_ext <<_ACEOF
3264 #line $LINENO "configure"
2964   /* confdefs.h.  */
2965   _ACEOF
2966   cat confdefs.h >>conftest.$ac_ext
# Line 3278 | Line 2977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2977   _ACEOF
2978   rm -f conftest.$ac_objext
2979   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2980 <  (eval $ac_compile) 2>&5
2980 >  (eval $ac_compile) 2>conftest.er1
2981    ac_status=$?
2982 +  grep -v '^ *+' conftest.er1 >conftest.err
2983 +  rm -f conftest.er1
2984 +  cat conftest.err >&5
2985    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986    (exit $ac_status); } &&
2987 <         { ac_try='test -s conftest.$ac_objext'
2987 >         { ac_try='test -z "$ac_cxx_werror_flag"
2988 >                         || test ! -s conftest.err'
2989    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990    (eval $ac_try) 2>&5
2991    ac_status=$?
2992    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 +  (exit $ac_status); }; } &&
2994 +         { ac_try='test -s conftest.$ac_objext'
2995 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 +  (eval $ac_try) 2>&5
2997 +  ac_status=$?
2998 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999    (exit $ac_status); }; }; then
3000    break
3001   else
# Line 3294 | Line 3003 | rm -f conftest.$ac_objext conftest.$ac_ext
3003   sed 's/^/| /' conftest.$ac_ext >&5
3004  
3005   fi
3006 < rm -f conftest.$ac_objext conftest.$ac_ext
3006 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3007   done
3008   rm -f conftest*
3009   if test -n "$ac_declaration"; then
# Line 3310 | Line 3019 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020  
3021  
3022 + OOPSE_TEMPLATE_FLAGS=""
3023 + if test $ac_cv_cxx_compiler_gnu = no; then
3024 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5
3025 + echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6
3026 +  echo 'void f(){}' > conftest.cc
3027 +  if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
3028 +    echo "$as_me:$LINENO: result: yes" >&5
3029 + echo "${ECHO_T}yes" >&6
3030 +    OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink"
3031 +  else
3032 +    echo "$as_me:$LINENO: result: no" >&5
3033 + echo "${ECHO_T}no" >&6
3034 +  fi
3035 +  rm -f conftest*
3036 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5
3037 + echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6
3038 +  echo 'void f(){}' > conftest.cc
3039 +  if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
3040 +    echo "$as_me:$LINENO: result: yes" >&5
3041 + echo "${ECHO_T}yes" >&6
3042 +    OOPSE_TEMPLATE_FLAGS="-instances=static"
3043 +  else
3044 +    echo "$as_me:$LINENO: result: no" >&5
3045 + echo "${ECHO_T}no" >&6
3046 +  fi
3047 +  rm -f conftest*
3048 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5
3049 + echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6
3050 +  echo 'void f(){}' > conftest.cc
3051 +  if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then
3052 +    echo "$as_me:$LINENO: result: yes" >&5
3053 + echo "${ECHO_T}yes" >&6
3054 +    OOPSE_TEMPLATE_FLAGS="-pto"
3055 +  else
3056 +    echo "$as_me:$LINENO: result: no" >&5
3057 + echo "${ECHO_T}no" >&6
3058 +  fi
3059 +  rm -f conftest*
3060 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5
3061 + echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6
3062 +  echo 'void f(){}' > conftest.cc
3063 +  if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
3064 +    echo "$as_me:$LINENO: result: yes" >&5
3065 + echo "${ECHO_T}yes" >&6
3066  
3067  
3068 <
3069 < # Try to determine "good" native compiler flags if none specified on command
3070 < # line
3071 < if test "$ac_test_CXXFLAGS" != "set"; then
3319 <  CXXFLAGS=""
3320 <  case "${host_cpu}-${host_os}" in
3321 <
3322 <  *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
3323 <                    CXXFLAGS="-O"
3324 <                fi;;
3325 <  sparc-solaris2*) if test "$CXX" = CC; then
3326 <                    CXXFLAGS="-native -fast -xO5 -dalign"
3327 <                 fi;;
3328 <   rs6000*-aix*)  if test "$CXX" = xlC; then
3329 <                    CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
3330 <                fi;;
3331 <   powerpc*-aix*)
3332 <        if test "$CXX" = xlC; then
3333 <                CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
3334 <                echo "*******************************************************"
3335 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
3336 <                echo "*  recommended that you use                           *"
3337 <                echo "*                                                     *"
3338 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
3339 <                echo "*                                 ^^^                 *"
3340 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
3341 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
3342 <                echo "*******************************************************"
3343 <        fi;;
3344 <   *darwin*)
3345 <        if test "$CXX" = xlC; then
3346 <                CXXFLAGS="-O3 -qtune=auto -qansialias -w"
3347 <                echo "*******************************************************"
3348 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
3349 <                echo "*  recommended that you use                           *"
3350 <                echo "*                                                     *"
3351 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
3352 <                echo "*                                 ^^^                 *"
3353 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
3354 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
3355 <                echo "*******************************************************"
3356 <        fi;;
3357 <  esac
3358 <
3359 <  # use default flags for gcc on all systems
3360 <  if test $ac_cv_c_compiler_gnu = yes; then
3361 <     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
3068 >    EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std"
3069 >  else
3070 >    echo "$as_me:$LINENO: result: no" >&5
3071 > echo "${ECHO_T}no" >&6
3072    fi
3073 + fi
3074  
3364  # test for gcc-specific flags:
3365  if test $ac_cv_c_compiler_gnu = yes; then
3366    # -malign-double for x86 systems
3075  
3076  
3077 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
3078 < echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
3079 < if test "${ac_align_double+set}" = set; then
3077 >
3078 > ac_ext=f90
3079 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3080 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3081 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3082 > if test -n "$ac_tool_prefix"; then
3083 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3084 >  do
3085 >    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3086 > set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3087 > echo "$as_me:$LINENO: checking for $ac_word" >&5
3088 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3089 > if test "${ac_cv_prog_F90+set}" = set; then
3090    echo $ECHO_N "(cached) $ECHO_C" >&6
3091   else
3092 <  echo 'void f(){}' > conftest.cpp
3093 < if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
3376 <        ac_align_double=yes
3092 >  if test -n "$F90"; then
3093 >  ac_cv_prog_F90="$F90" # Let the user override the test.
3094   else
3095 <        ac_align_double=no
3096 < fi
3097 < rm -f conftest*
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 >    ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3103 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 >    break 2
3105 >  fi
3106 > done
3107 > done
3108  
3109   fi
3110 < echo "$as_me:$LINENO: result: $ac_align_double" >&5
3111 < echo "${ECHO_T}$ac_align_double" >&6
3112 < if test "$ac_align_double" = yes; then
3113 <        :
3114 <        CXXFLAGS="$CXXFLAGS -malign-double"
3110 > fi
3111 > F90=$ac_cv_prog_F90
3112 > if test -n "$F90"; then
3113 >  echo "$as_me:$LINENO: result: $F90" >&5
3114 > echo "${ECHO_T}$F90" >&6
3115   else
3116 <        :
3117 <
3116 >  echo "$as_me:$LINENO: result: no" >&5
3117 > echo "${ECHO_T}no" >&6
3118   fi
3119  
3120 <    # -fstrict-aliasing for gcc-2.95+
3121 <
3122 <
3123 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
3124 < echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
3125 < if test "${ac_fstrict_aliasing+set}" = set; then
3120 >    test -n "$F90" && break
3121 >  done
3122 > fi
3123 > if test -z "$F90"; then
3124 >  ac_ct_F90=$F90
3125 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3126 > do
3127 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
3128 > set dummy $ac_prog; ac_word=$2
3129 > echo "$as_me:$LINENO: checking for $ac_word" >&5
3130 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3131 > if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
3132    echo $ECHO_N "(cached) $ECHO_C" >&6
3133   else
3134 <  echo 'void f(){}' > conftest.cpp
3135 < if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
3403 <        ac_fstrict_aliasing=yes
3134 >  if test -n "$ac_ct_F90"; then
3135 >  ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
3136   else
3137 <        ac_fstrict_aliasing=no
3137 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 > for as_dir in $PATH
3139 > do
3140 >  IFS=$as_save_IFS
3141 >  test -z "$as_dir" && as_dir=.
3142 >  for ac_exec_ext in '' $ac_executable_extensions; do
3143 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144 >    ac_cv_prog_ac_ct_F90="$ac_prog"
3145 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 >    break 2
3147 >  fi
3148 > done
3149 > done
3150 >
3151   fi
3152 + fi
3153 + ac_ct_F90=$ac_cv_prog_ac_ct_F90
3154 + if test -n "$ac_ct_F90"; then
3155 +  echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
3156 + echo "${ECHO_T}$ac_ct_F90" >&6
3157 + else
3158 +  echo "$as_me:$LINENO: result: no" >&5
3159 + echo "${ECHO_T}no" >&6
3160 + fi
3161 +
3162 +  test -n "$ac_ct_F90" && break
3163 + done
3164 +
3165 +  F90=$ac_ct_F90
3166 + fi
3167 +
3168 +
3169 + # If we don't use `.F90' as extension, the preprocessor is not run on the
3170 + # input file.
3171 + ac_save_ext=$ac_ext
3172 + ac_ext=F90
3173 + echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
3174 + echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
3175 + if test "${ac_cv_f90_compiler_gnu+set}" = set; then
3176 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3177 + else
3178 +  cat >conftest.$ac_ext <<_ACEOF
3179 +
3180 + program main
3181 +
3182 + #ifndef __GNUC__
3183 +       choke me
3184 + #endif
3185 +
3186 + end program main
3187 +
3188 + _ACEOF
3189 + rm -f conftest.$ac_objext
3190 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3191 +  (eval $ac_compile) 2>conftest.er1
3192 +  ac_status=$?
3193 +  grep -v '^ *+' conftest.er1 >conftest.err
3194 +  rm -f conftest.er1
3195 +  cat conftest.err >&5
3196 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 +  (exit $ac_status); } &&
3198 +         { ac_try='test -z "$ac_f90_werror_flag"
3199 +                         || test ! -s conftest.err'
3200 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201 +  (eval $ac_try) 2>&5
3202 +  ac_status=$?
3203 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 +  (exit $ac_status); }; } &&
3205 +         { ac_try='test -s conftest.$ac_objext'
3206 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207 +  (eval $ac_try) 2>&5
3208 +  ac_status=$?
3209 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 +  (exit $ac_status); }; }; then
3211 +  ac_compiler_gnu=yes
3212 + else
3213 +  echo "$as_me: failed program was:" >&5
3214 + sed 's/^/| /' conftest.$ac_ext >&5
3215 +
3216 + ac_compiler_gnu=no
3217 + fi
3218 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3219 + ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3220 +
3221 + fi
3222 + echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3223 + echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3224 + ac_ext=$ac_save_ext
3225 + G95=`test $ac_compiler_gnu = yes && echo yes`
3226 + ac_ext=c
3227 + ac_cpp='$CPP $CPPFLAGS'
3228 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231 +
3232 +
3233 +
3234 +
3235 +
3236 + # Try to determine native compiler flags that allow us to use F90 suffix
3237 + # for preprocessed f90 source.
3238 +
3239 + if test "$ac_test_PREPFLAG" != "set"; then
3240 +  PREPFLAG=""
3241 +  case "${host_cpu}-${host_os}" in
3242 +
3243 +  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3244 +                    PREPFLAG="-fpp1 "
3245 +                fi;;
3246 +  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3247 +                    PREPFLAG="-qsuffix=cpp=F90 "
3248 +                fi;;
3249 +  *darwin*)
3250 +        if test "$F90" = f90 -o "$F90" = xlf90; then
3251 +                PREPFLAG="-qsuffix=cpp=F90 "
3252 +        fi;;
3253 +  esac
3254 +
3255 +  if test -z "$PREPFLAG"; then
3256 +        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
3257 + echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
3258 +        PREPFLAG=""
3259 +  fi
3260 +
3261 +  echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3262 + echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3263 +
3264 +
3265 +  ac_ext=f90
3266 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3267 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3269 +
3270 +  ac_save_ext=$ac_ext
3271 +  ac_ext=F90
3272 +  ac_save_F90FLAGS=$F90FLAGS
3273 +
3274 +  if test "$PREPFLAG"; then
3275 +  F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
3276 + fi
3277 +
3278 +    cat >conftest.$ac_ext <<_ACEOF
3279 +
3280 +
3281 + program main
3282 +
3283 +  integer :: i
3284 +  i = 1
3285 +
3286 +
3287 + end program main
3288 +
3289 + _ACEOF
3290 + rm -f conftest.$ac_objext
3291 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3292 +  (eval $ac_compile) 2>conftest.er1
3293 +  ac_status=$?
3294 +  grep -v '^ *+' conftest.er1 >conftest.err
3295 +  rm -f conftest.er1
3296 +  cat conftest.err >&5
3297 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 +  (exit $ac_status); } &&
3299 +         { ac_try='test -z "$ac_f90_werror_flag"
3300 +                         || test ! -s conftest.err'
3301 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 +  (eval $ac_try) 2>&5
3303 +  ac_status=$?
3304 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 +  (exit $ac_status); }; } &&
3306 +         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3312 +  prepflagworks=1
3313 + else
3314 +  echo "$as_me: failed program was:" >&5
3315 + sed 's/^/| /' conftest.$ac_ext >&5
3316 +
3317 + prepflagworks=0
3318 + fi
3319 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3320 +
3321 +  F90FLAGS=$ac_save_F90FLAGS
3322 +  ac_ext=$ac_save_ext
3323 +  ac_ext=c
3324 + ac_cpp='$CPP $CPPFLAGS'
3325 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328 +
3329 +
3330 +  if test "$prepflagworks" = 1; then
3331 +    echo "$as_me:$LINENO: result: yes" >&5
3332 + echo "${ECHO_T}yes" >&6
3333 +
3334 +  else
3335 +    echo "$as_me:$LINENO: result: no" >&5
3336 + echo "${ECHO_T}no" >&6
3337 +    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3338 + echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3339 +   { (exit 1); exit 1; }; }
3340 +  fi
3341 + fi
3342 +
3343 +
3344 +
3345 +
3346 +
3347 + # Try to determine native compiler flags that allow us to use F90 suffix
3348 + # for preprocessed f90 source with -D type defines
3349 +
3350 + if test "$ac_test_PREPDEFFLAG" != "set"; then
3351 +  PREPDEFFLAG=""
3352 +  case "${host_cpu}-${host_os}" in
3353 +
3354 +  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3355 +                    PREPDEFFLAG=" "
3356 +                fi;;
3357 +  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3358 +                    PREPDEFFLAG="-WF,"
3359 +                fi;;
3360 +  *darwin*)
3361 +        if test "$F90" = f90 -o "$F90" = xlf90; then
3362 +                PREPDEFFLAG="-WF,"
3363 +        fi;;
3364 +  esac
3365 +
3366 +  if test -z "$PREPDEFFLAG"; then
3367 +        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
3368 + echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
3369 +        PREPDEFFLAG=" "
3370 +  fi
3371 +
3372 +  echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3373 + echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3374 +
3375 +
3376 +  ac_ext=f90
3377 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3378 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3380 +
3381 +  ac_save_ext=$ac_ext
3382 +  ac_ext=F90
3383 +  ac_save_F90FLAGS=$F90FLAGS
3384 +
3385 +  if test "$PREPDEFFLAG"; then
3386 +  F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
3387 + fi
3388 +
3389 +    cat >conftest.$ac_ext <<_ACEOF
3390 +
3391 +
3392 + program main
3393 +
3394 +  integer :: i
3395 + #ifdef TEST
3396 +  i = 1
3397 + #else
3398 +  choke me
3399 + #endif
3400 +
3401 +
3402 + end program main
3403 +
3404 + _ACEOF
3405 + rm -f conftest.$ac_objext
3406 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3407 +  (eval $ac_compile) 2>conftest.er1
3408 +  ac_status=$?
3409 +  grep -v '^ *+' conftest.er1 >conftest.err
3410 +  rm -f conftest.er1
3411 +  cat conftest.err >&5
3412 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 +  (exit $ac_status); } &&
3414 +         { ac_try='test -z "$ac_f90_werror_flag"
3415 +                         || test ! -s conftest.err'
3416 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 +  (eval $ac_try) 2>&5
3418 +  ac_status=$?
3419 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 +  (exit $ac_status); }; } &&
3421 +         { ac_try='test -s conftest.$ac_objext'
3422 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 +  (eval $ac_try) 2>&5
3424 +  ac_status=$?
3425 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 +  (exit $ac_status); }; }; then
3427 +  prepdefflagworks=1
3428 + else
3429 +  echo "$as_me: failed program was:" >&5
3430 + sed 's/^/| /' conftest.$ac_ext >&5
3431 +
3432 + prepdefflagworks=0
3433 + fi
3434 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3435 +
3436 +  F90FLAGS=$ac_save_F90FLAGS
3437 +  ac_ext=$ac_save_ext
3438 +  ac_ext=c
3439 + ac_cpp='$CPP $CPPFLAGS'
3440 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3443 +
3444 +
3445 +
3446 +  if test "$prepdefflagworks" = 1; then
3447 +    echo "$as_me:$LINENO: result: yes" >&5
3448 + echo "${ECHO_T}yes" >&6
3449 +
3450 +  else
3451 +    echo "$as_me:$LINENO: result: no" >&5
3452 + echo "${ECHO_T}no" >&6
3453 +    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3454 + echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3455 +   { (exit 1); exit 1; }; }
3456 +  fi
3457 + fi
3458 +
3459 + ac_ext=f90
3460 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3461 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3463 +
3464 +
3465 +
3466 + ac_ext=f90
3467 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3468 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3470 + echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
3471 + echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3472 + if test "${ac_cv_prog_f90_v+set}" = set; then
3473 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3474 + else
3475 +
3476 + cat >conftest.$ac_ext <<_ACEOF
3477 +
3478 + program main
3479 +
3480 +
3481 + end program main
3482 +
3483 + _ACEOF
3484 + rm -f conftest.$ac_objext
3485 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3486 +  (eval $ac_compile) 2>conftest.er1
3487 +  ac_status=$?
3488 +  grep -v '^ *+' conftest.er1 >conftest.err
3489 +  rm -f conftest.er1
3490 +  cat conftest.err >&5
3491 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 +  (exit $ac_status); } &&
3493 +         { ac_try='test -z "$ac_f90_werror_flag"
3494 +                         || test ! -s conftest.err'
3495 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 +  (eval $ac_try) 2>&5
3497 +  ac_status=$?
3498 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 +  (exit $ac_status); }; } &&
3500 +         { ac_try='test -s conftest.$ac_objext'
3501 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 +  (eval $ac_try) 2>&5
3503 +  ac_status=$?
3504 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 +  (exit $ac_status); }; }; then
3506 +  ac_cv_prog_f90_v=
3507 + # Try some options frequently used verbose output
3508 + for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3509 +  ac_ext=f90
3510 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3511 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3513 +
3514 + cat >conftest.$ac_ext <<_ACEOF
3515 +
3516 + program main
3517 +
3518 +
3519 + end program main
3520 +
3521 + _ACEOF
3522 +
3523 + # Compile and link our simple test program by passing a flag (argument
3524 + # 1 to this macro) to the Fortran 90 compiler in order to get
3525 + # "verbose" output that we can then parse for the Fortran 90 linker
3526 + # flags.
3527 + ac_save_F90FLAGS=$F90FLAGS
3528 + F90FLAGS="$F90FLAGS $ac_verb"
3529 +
3530 + (eval echo $as_me:3530: \"$ac_link\") >&5
3531 + ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3532 + echo "$ac_f90_v_output" >&5
3533 + F90FLAGS=$ac_save_F90FLAGS
3534 +
3535 + rm -f conftest.*
3536 + ac_ext=f90
3537 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3538 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3540 +
3541 + # If we are using xlf then replace all the commas with spaces.
3542 + if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3543 +  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3544 + fi
3545 +
3546 + # If we are using Cray Fortran then delete quotes.
3547 + # Use "\"" instead of '"' for font-lock-mode.
3548 + # FIXME: a more general fix for quoted arguments with spaces?
3549 + if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3550 +  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3551 + fi
3552 +  # look for -l* and *.a constructs in the output
3553 +  for ac_arg in $ac_f90_v_output; do
3554 +     case $ac_arg in
3555 +        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3556 +          ac_cv_prog_f90_v=$ac_verb
3557 +          break 2 ;;
3558 +     esac
3559 +  done
3560 + done
3561 + if test -z "$ac_cv_prog_f90_v"; then
3562 +   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
3563 + echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
3564 + fi
3565 + else
3566 +  echo "$as_me: failed program was:" >&5
3567 + sed 's/^/| /' conftest.$ac_ext >&5
3568 +
3569 + { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3570 + echo "$as_me: WARNING: compilation failed" >&2;}
3571 + fi
3572 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3573 +
3574 + fi
3575 + echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
3576 + echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
3577 + echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
3578 + echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
3579 + if test "${ac_cv_flibs+set}" = set; then
3580 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3581 + else
3582 +  if test "x$F90LIBS" != "x"; then
3583 +  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
3584 + else
3585 +
3586 + ac_ext=f90
3587 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3588 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3590 +
3591 + cat >conftest.$ac_ext <<_ACEOF
3592 +
3593 + program main
3594 +
3595 +
3596 + end program main
3597 +
3598 + _ACEOF
3599 +
3600 + # Compile and link our simple test program by passing a flag (argument
3601 + # 1 to this macro) to the Fortran 90 compiler in order to get
3602 + # "verbose" output that we can then parse for the Fortran 90 linker
3603 + # flags.
3604 + ac_save_F90FLAGS=$F90FLAGS
3605 + F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3606 +
3607 + (eval echo $as_me:3607: \"$ac_link\") >&5
3608 + ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3609 + echo "$ac_f90_v_output" >&5
3610 + F90FLAGS=$ac_save_F90FLAGS
3611 +
3612 + rm -f conftest.*
3613 + ac_ext=f90
3614 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3615 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3617 +
3618 + # If we are using xlf then replace all the commas with spaces.
3619 + if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3620 +  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3621 + fi
3622 +
3623 + # If we are using Cray Fortran then delete quotes.
3624 + # Use "\"" instead of '"' for font-lock-mode.
3625 + # FIXME: a more general fix for quoted arguments with spaces?
3626 + if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3627 +  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3628 + fi
3629 +
3630 + ac_cv_f90libs=
3631 +
3632 + # Save positional arguments (if any)
3633 + ac_save_positional="$@"
3634 +
3635 + set X $ac_f90_v_output
3636 + while test $# != 1; do
3637 +  shift
3638 +  ac_arg=$1
3639 +  case $ac_arg in
3640 +        [\\/]*.a | ?:[\\/]*.a)
3641 +            ac_exists=false
3642 +  for ac_i in $ac_cv_f90libs; do
3643 +    if test x"$ac_arg" = x"$ac_i"; then
3644 +      ac_exists=true
3645 +      break
3646 +    fi
3647 +  done
3648 +
3649 +  if test x"$ac_exists" = xtrue; then
3650 +  :
3651 + else
3652 +  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3653 + fi
3654 +
3655 +          ;;
3656 +        -bI:*)
3657 +            ac_exists=false
3658 +  for ac_i in $ac_cv_f90libs; do
3659 +    if test x"$ac_arg" = x"$ac_i"; then
3660 +      ac_exists=true
3661 +      break
3662 +    fi
3663 +  done
3664 +
3665 +  if test x"$ac_exists" = xtrue; then
3666 +  :
3667 + else
3668 +  if test "$ac_compiler_gnu" = yes; then
3669 +  for ac_link_opt in $ac_arg; do
3670 +    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3671 +  done
3672 + else
3673 +  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3674 + fi
3675 + fi
3676 +
3677 +          ;;
3678 +          # Ignore these flags.
3679 +        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
3680 +          ;;
3681 +        -lkernel32)
3682 +          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3683 +          ;;
3684 +        -[LRuY])
3685 +          # These flags, when seen by themselves, take an argument.
3686 +          # We remove the space between option and argument and re-iterate
3687 +          # unless we find an empty arg or a new option (starting with -)
3688 +          case $2 in
3689 +             "" | -*);;
3690 +             *)
3691 +                ac_arg="$ac_arg$2"
3692 +
3693 +                shift; shift
3694 +                set X $ac_arg "$@"
3695 +                ;;
3696 +          esac
3697 +          ;;
3698 +        -YP,*)
3699 +          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3700 +              ac_exists=false
3701 +  for ac_i in $ac_cv_f90libs; do
3702 +    if test x"$ac_j" = x"$ac_i"; then
3703 +      ac_exists=true
3704 +      break
3705 +    fi
3706 +  done
3707 +
3708 +  if test x"$ac_exists" = xtrue; then
3709 +  :
3710 + else
3711 +  ac_arg="$ac_arg $ac_j"
3712 +                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
3713 + fi
3714 +
3715 +          done
3716 +          ;;
3717 +        -[lLR]*)
3718 +            ac_exists=false
3719 +  for ac_i in $ac_cv_f90libs; do
3720 +    if test x"$ac_arg" = x"$ac_i"; then
3721 +      ac_exists=true
3722 +      break
3723 +    fi
3724 +  done
3725 +
3726 +  if test x"$ac_exists" = xtrue; then
3727 +  :
3728 + else
3729 +  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3730 + fi
3731 +
3732 +          ;;
3733 +          # Ignore everything else.
3734 +  esac
3735 + done
3736 + # restore positional arguments
3737 + set X $ac_save_positional; shift
3738 +
3739 + # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
3740 + # then we insist that the "run path" must be an absolute path (i.e. it
3741 + # must begin with a "/").
3742 + case `(uname -sr) 2>/dev/null` in
3743 +   "SunOS 5"*)
3744 +      ac_ld_run_path=`echo $ac_f90_v_output |
3745 +                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3746 +      test "x$ac_ld_run_path" != x &&
3747 +
3748 +        if test "$ac_compiler_gnu" = yes; then
3749 +  for ac_link_opt in $ac_ld_run_path; do
3750 +    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3751 +  done
3752 + else
3753 +  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
3754 + fi
3755 +      ;;
3756 + esac
3757 + fi # test "x$F90LIBS" = "x"
3758 +
3759 + fi
3760 + echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
3761 + echo "${ECHO_T}$ac_cv_flibs" >&6
3762 + F90LIBS="$ac_cv_f90libs"
3763 +
3764 + ac_ext=f90
3765 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3766 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3768 +
3769 +
3770 + echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
3771 + echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
3772 + if test "${ac_cv_f90_mangling+set}" = set; then
3773 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3774 + else
3775 +  ac_ext=f90
3776 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3777 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3779 + cat >conftest.$ac_ext <<_ACEOF
3780 + subroutine foobar()
3781 + return
3782 + end
3783 + subroutine foo_bar()
3784 + return
3785 + end
3786 + _ACEOF
3787 + rm -f conftest.$ac_objext
3788 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3789 +  (eval $ac_compile) 2>conftest.er1
3790 +  ac_status=$?
3791 +  grep -v '^ *+' conftest.er1 >conftest.err
3792 +  rm -f conftest.er1
3793 +  cat conftest.err >&5
3794 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 +  (exit $ac_status); } &&
3796 +         { ac_try='test -z "$ac_f90_werror_flag"
3797 +                         || test ! -s conftest.err'
3798 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799 +  (eval $ac_try) 2>&5
3800 +  ac_status=$?
3801 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 +  (exit $ac_status); }; } &&
3803 +         { ac_try='test -s conftest.$ac_objext'
3804 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805 +  (eval $ac_try) 2>&5
3806 +  ac_status=$?
3807 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 +  (exit $ac_status); }; }; then
3809 +  mv conftest.$ac_objext cf90_test.$ac_objext
3810 +
3811 +  ac_ext=c
3812 + ac_cpp='$CPP $CPPFLAGS'
3813 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816 +
3817 +  ac_save_LIBS=$LIBS
3818 +  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
3819 +
3820 +  ac_success=no
3821 +  for ac_foobar in foobar FOOBAR; do
3822 +    for ac_underscore in "" "_"; do
3823 +      ac_func="$ac_foobar$ac_underscore"
3824 +      cat >conftest.$ac_ext <<_ACEOF
3825 + /* confdefs.h.  */
3826 + _ACEOF
3827 + cat confdefs.h >>conftest.$ac_ext
3828 + cat >>conftest.$ac_ext <<_ACEOF
3829 + /* end confdefs.h.  */
3830 +
3831 + /* Override any gcc2 internal prototype to avoid an error.  */
3832 + #ifdef __cplusplus
3833 + extern "C"
3834 + #endif
3835 + /* We use char because int might match the return type of a gcc2
3836 +   builtin and then its argument prototype would still apply.  */
3837 + char $ac_func ();
3838 + int
3839 + main ()
3840 + {
3841 + $ac_func ();
3842 +  ;
3843 +  return 0;
3844 + }
3845 + _ACEOF
3846 + rm -f conftest.$ac_objext conftest$ac_exeext
3847 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3848 +  (eval $ac_link) 2>conftest.er1
3849 +  ac_status=$?
3850 +  grep -v '^ *+' conftest.er1 >conftest.err
3851 +  rm -f conftest.er1
3852 +  cat conftest.err >&5
3853 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 +  (exit $ac_status); } &&
3855 +         { ac_try='test -z "$ac_c_werror_flag"
3856 +                         || test ! -s conftest.err'
3857 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 +  (eval $ac_try) 2>&5
3859 +  ac_status=$?
3860 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 +  (exit $ac_status); }; } &&
3862 +         { ac_try='test -s conftest$ac_exeext'
3863 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 +  (eval $ac_try) 2>&5
3865 +  ac_status=$?
3866 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 +  (exit $ac_status); }; }; then
3868 +  ac_success=yes; break 2
3869 + else
3870 +  echo "$as_me: failed program was:" >&5
3871 + sed 's/^/| /' conftest.$ac_ext >&5
3872 +
3873 + fi
3874 + rm -f conftest.err conftest.$ac_objext \
3875 +      conftest$ac_exeext conftest.$ac_ext
3876 +    done
3877 +  done
3878 +
3879 +  if test "$ac_success" = "yes"; then
3880 +     case $ac_foobar in
3881 +        foobar)
3882 +           ac_case=lower
3883 +           ac_foo_bar=foo_bar
3884 +           ;;
3885 +        FOOBAR)
3886 +           ac_case=upper
3887 +           ac_foo_bar=FOO_BAR
3888 +           ;;
3889 +     esac
3890 +
3891 +     ac_success_extra=no
3892 +     for ac_extra in "" "_"; do
3893 +        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
3894 +
3895 +        cat >conftest.$ac_ext <<_ACEOF
3896 + /* confdefs.h.  */
3897 + _ACEOF
3898 + cat confdefs.h >>conftest.$ac_ext
3899 + cat >>conftest.$ac_ext <<_ACEOF
3900 + /* end confdefs.h.  */
3901 +
3902 + /* Override any gcc2 internal prototype to avoid an error.  */
3903 + #ifdef __cplusplus
3904 + extern "C"
3905 + #endif
3906 + /* We use char because int might match the return type of a gcc2
3907 +   builtin and then its argument prototype would still apply.  */
3908 + char $ac_func ();
3909 + int
3910 + main ()
3911 + {
3912 + $ac_func ();
3913 +  ;
3914 +  return 0;
3915 + }
3916 + _ACEOF
3917 + rm -f conftest.$ac_objext conftest$ac_exeext
3918 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3919 +  (eval $ac_link) 2>conftest.er1
3920 +  ac_status=$?
3921 +  grep -v '^ *+' conftest.er1 >conftest.err
3922 +  rm -f conftest.er1
3923 +  cat conftest.err >&5
3924 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 +  (exit $ac_status); } &&
3926 +         { ac_try='test -z "$ac_c_werror_flag"
3927 +                         || test ! -s conftest.err'
3928 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929 +  (eval $ac_try) 2>&5
3930 +  ac_status=$?
3931 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 +  (exit $ac_status); }; } &&
3933 +         { ac_try='test -s conftest$ac_exeext'
3934 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935 +  (eval $ac_try) 2>&5
3936 +  ac_status=$?
3937 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 +  (exit $ac_status); }; }; then
3939 +  ac_success_extra=yes; break
3940 + else
3941 +  echo "$as_me: failed program was:" >&5
3942 + sed 's/^/| /' conftest.$ac_ext >&5
3943 +
3944 + fi
3945 + rm -f conftest.err conftest.$ac_objext \
3946 +      conftest$ac_exeext conftest.$ac_ext
3947 +     done
3948 +
3949 +     if test "$ac_success_extra" = "yes"; then
3950 +        ac_cv_f90_mangling="$ac_case case"
3951 +        if test -z "$ac_underscore"; then
3952 +           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
3953 +        else
3954 +           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
3955 +
3956 +        fi
3957 +        if test -z "$ac_extra"; then
3958 +           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
3959 +        else
3960 +           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
3961 +        fi
3962 +      else
3963 +        ac_cv_f90_mangling="unknown"
3964 +      fi
3965 +  else
3966 +     ac_cv_f90_mangling="unknown"
3967 +
3968 +  fi
3969 +
3970 +  LIBS=$ac_save_LIBS
3971 +  ac_ext=f90
3972 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3973 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3975 +  rm -f cf90_test* conftest*
3976 + else
3977 +  echo "$as_me: failed program was:" >&5
3978 + sed 's/^/| /' conftest.$ac_ext >&5
3979 +
3980 + fi
3981 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3982 + ac_ext=f90
3983 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3984 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3986 +
3987 + fi
3988 + echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
3989 + echo "${ECHO_T}$ac_cv_f90_mangling" >&6
3990 +
3991 +
3992 +
3993 + case $ac_cv_f90_mangling in
3994 +  "lower case, no underscore, no extra underscore")
3995 +          cat >>confdefs.h <<\_ACEOF
3996 + #define F90_FUNC(name,NAME) name
3997 + _ACEOF
3998 +
3999 +          cat >>confdefs.h <<\_ACEOF
4000 + #define F90_FUNC_(name,NAME) name
4001 + _ACEOF
4002 + ;;
4003 +  "lower case, no underscore, extra underscore")
4004 +          cat >>confdefs.h <<\_ACEOF
4005 + #define F90_FUNC(name,NAME) name
4006 + _ACEOF
4007 +
4008 +          cat >>confdefs.h <<\_ACEOF
4009 + #define F90_FUNC_(name,NAME) name ## _
4010 + _ACEOF
4011 + ;;
4012 +  "lower case, underscore, no extra underscore")
4013 +          cat >>confdefs.h <<\_ACEOF
4014 + #define F90_FUNC(name,NAME) name ## _
4015 + _ACEOF
4016 +
4017 +          cat >>confdefs.h <<\_ACEOF
4018 + #define F90_FUNC_(name,NAME) name ## _
4019 + _ACEOF
4020 + ;;
4021 +  "lower case, underscore, extra underscore")
4022 +          cat >>confdefs.h <<\_ACEOF
4023 + #define F90_FUNC(name,NAME) name ## _
4024 + _ACEOF
4025 +
4026 +          cat >>confdefs.h <<\_ACEOF
4027 + #define F90_FUNC_(name,NAME) name ## __
4028 + _ACEOF
4029 + ;;
4030 +  "upper case, no underscore, no extra underscore")
4031 +          cat >>confdefs.h <<\_ACEOF
4032 + #define F90_FUNC(name,NAME) NAME
4033 + _ACEOF
4034 +
4035 +          cat >>confdefs.h <<\_ACEOF
4036 + #define F90_FUNC_(name,NAME) NAME
4037 + _ACEOF
4038 + ;;
4039 +  "upper case, no underscore, extra underscore")
4040 +          cat >>confdefs.h <<\_ACEOF
4041 + #define F90_FUNC(name,NAME) NAME
4042 + _ACEOF
4043 +
4044 +          cat >>confdefs.h <<\_ACEOF
4045 + #define F90_FUNC_(name,NAME) NAME ## _
4046 + _ACEOF
4047 + ;;
4048 +  "upper case, underscore, no extra underscore")
4049 +          cat >>confdefs.h <<\_ACEOF
4050 + #define F90_FUNC(name,NAME) NAME ## _
4051 + _ACEOF
4052 +
4053 +          cat >>confdefs.h <<\_ACEOF
4054 + #define F90_FUNC_(name,NAME) NAME ## _
4055 + _ACEOF
4056 + ;;
4057 +  "upper case, underscore, extra underscore")
4058 +          cat >>confdefs.h <<\_ACEOF
4059 + #define F90_FUNC(name,NAME) NAME ## _
4060 + _ACEOF
4061 +
4062 +          cat >>confdefs.h <<\_ACEOF
4063 + #define F90_FUNC_(name,NAME) NAME ## __
4064 + _ACEOF
4065 + ;;
4066 +  *)
4067 +          { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4068 + echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4069 +          ;;
4070 + esac
4071 +
4072 +
4073 +
4074 +
4075 +
4076 + echo "$as_me:$LINENO: checking for module suffix" >&5
4077 + echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
4078 + rm -f conftest*
4079 + # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4080 + rm -f work*
4081 + cat >conftest.f90 <<EOF
4082 +        module conftest
4083 +        integer n
4084 +        parameter (n=1)
4085 +        end module conftest
4086 + EOF
4087 + # SGI and absoft compilers generates module name in upper case!
4088 + testname="conftest"
4089 + modcase="lower"
4090 + if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4091 +    MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
4092 +    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
4093 +    if test -z "$MOD" ; then
4094 +        MOD=`ls CONFTEST* 2>/dev/null \
4095 +                | grep -v CONFTEST.f | grep -v CONFTEST.o`
4096 +        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
4097 +        if test -n "$MOD" ; then
4098 +            testname="CONFTEST"
4099 +            modcase="upper"
4100 +        fi
4101 +    fi
4102 +    if test -z "$MOD" ; then
4103 +        echo "$as_me:$LINENO: result: unknown" >&5
4104 + echo "${ECHO_T}unknown" >&6
4105 +        # Use mod if we can't figure it out
4106 +        MOD="mod"
4107 +    else
4108 +        echo "$as_me:$LINENO: result: $MOD" >&5
4109 + echo "${ECHO_T}$MOD" >&6
4110 +    fi
4111 +    if test -s work.pcl ; then
4112 +        { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
4113 + echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
4114 +    fi
4115 + else
4116 +    echo "$as_me:$LINENO: result: unknown" >&5
4117 + echo "${ECHO_T}unknown" >&6
4118 + fi
4119 +
4120 +
4121 +
4122 +
4123 +
4124 + # Check for module include path (some use -I, some (Solaris) use -M, some
4125 + # (absoft) use -p).
4126 + # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
4127 + # specified, work.pcl and work.pc are created.  However, if you specify
4128 + # a file, it must contain a the name of a file ending in .pc .  Ugh!
4129 + # Use the module made above
4130 + echo "$as_me:$LINENO: checking for module directory path flag" >&5
4131 + echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
4132   rm -f conftest*
4133 + # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4134 + rm -f work*
4135 + cat >conftest.f90 <<EOF
4136 +        module conftest
4137 +        integer n
4138 +        parameter (n=1)
4139 +        end module conftest
4140 + EOF
4141 + # SGI and absoft compilers generates module name in upper case!
4142 + testname="conftest"
4143 + if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4144 +   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o`
4145 +   mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
4146 +   if test -n "$mod" ; then
4147 +      testname="CONFTEST"
4148 +   fi
4149 +   madedir=0
4150 +   if test ! -d conf ; then mkdir conf ; madedir=1; fi
4151 +   cp $testname.$MOD conf
4152 +   rm -f conftest* CONFTEST*
4153 +   cat >conftest1.f90 <<EOF
4154 +        program main
4155 +        use conftest
4156 +        print *, n
4157 +        end
4158 + EOF
4159 +   F90_WORK_FILES_ARG=""
4160 +   F90MODINCSPEC=""
4161 +   if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then
4162 +       MODDIRFLAG="-I"
4163 +       F90MODINCSPEC="-I<dir>"
4164 +       echo "$as_me:$LINENO: result: -I" >&5
4165 + echo "${ECHO_T}-I" >&6
4166 +   elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then
4167 +       MODDIRFLAG="-M"
4168 +       F90MODINCSPEC="-M<dir>"
4169 +       echo "$as_me:$LINENO: result: -M" >&5
4170 + echo "${ECHO_T}-M" >&6
4171 +   elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then
4172 +       MODDIRFLAG="-p"
4173 +       F90MODINCSPEC="-p<dir>"
4174 +       echo "$as_me:$LINENO: result: -p" >&5
4175 + echo "${ECHO_T}-p" >&6
4176 +   elif test -s work.pc ; then
4177 +        cp work.pc conf/mpimod.pc
4178 +        echo "mpimod.pc" > conf/mpimod.pcl
4179 +        echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
4180 +        if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
4181 +            MODDIRFLAG='-cl,mpimod.pcl'
4182 +            echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
4183 + echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6
4184 +            F90_WORK_FILES_ARG="-cl,mpimod.pcl"
4185 +            F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
4186  
4187 +        else
4188 +            # The version of the Intel compiler that I have refuses to let
4189 +            # you put the "work catalog" list anywhere but the current
4190 +            # directory. For example, you cannot in
4191 +         :
4192 +        fi
4193 +   fi
4194 +   if test -z "MODDIRFLAG" ; then
4195 +       echo "$as_me:$LINENO: result: unknown" >&5
4196 + echo "${ECHO_T}unknown" >&6
4197 +   fi
4198 +
4199 +
4200 +   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
4201 +   if test $madedir = 1 ; then rmdir conf ; fi
4202   fi
4203 +
4204 +
4205 +
4206 +
4207 + case $debug in
4208 +  1)
4209 +     ;;
4210 +  *)
4211 +
4212 +
4213 +
4214 +
4215 +
4216 +
4217 + echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
4218 + echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
4219 + if test "${ac_cv_prog_really_gcc+set}" = set; then
4220 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4221 + else
4222 +
4223 + cat > conftest.c <<EOF
4224 + #ifdef __GNUC__
4225 +  #ifndef __INTEL_COMPILER
4226 +     yes;
4227 +  #endif
4228 + #endif
4229 + EOF
4230 + if { ac_try='${CC-cc} -E conftest.c'
4231 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 +  (eval $ac_try) 2>&5
4233 +  ac_status=$?
4234 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 +  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4236 +  ac_cv_prog_really_gcc=yes
4237 + else
4238 +  ac_cv_prog_really_gcc=no
4239 + fi
4240 +
4241 + fi
4242 + echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
4243 + echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
4244 + if test "$ac_cv_prog_really_gcc" = yes; then
4245 +        :
4246 +
4247 + else
4248 +        :
4249 +
4250 + fi
4251 +
4252 +
4253 + # Try to determine "good" native compiler flags if none specified on command
4254 + # line
4255 + if test "$ac_test_CFLAGS" != "set"; then
4256 +  CFLAGS=""
4257 +  case "${host_cpu}-${host_os}" in
4258 +
4259 +  *linux*) if test "$CC" = icc; then
4260 +                    CFLAGS="-O"
4261 +                fi;;
4262 +  sparc-solaris2*) if test "$CC" = cc; then
4263 +                    CFLAGS="-native -fast -xO5 -dalign"
4264 +                 fi;;
4265 +
4266 +  alpha*-osf*)  if test "$CC" = cc; then
4267 +                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
4268 +                fi;;
4269 +
4270 +  hppa*-hpux*)  if test "$CC" = cc; then
4271 +                    CFLAGS="-Ae +O3 +Oall"
4272 +                fi;;
4273 +
4274 +   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
4275 +                    CFLAGS="-O3 -qtune=auto -qansialias -w"
4276 +                fi;;
4277 +   powerpc*-aix*)
4278 +        if test "$CC" = cc -o "$CC" = xlc; then
4279 +                CFLAGS="-O3 -qtune=auto -qansialias -w"
4280 +                echo "*******************************************************"
4281 +                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4282 +                echo "*  recommended that you use                           *"
4283 +                echo "*                                                     *"
4284 +                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4285 +                echo "*                                 ^^^                 *"
4286 +                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4287 +                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4288 +                echo "*******************************************************"
4289 +        fi;;
4290 +   *darwin*)
4291 +        if test "$CC" = xlc -o "$CC" = cc; then
4292 +                CFLAGS="-qthreaded -O5 -Q=20 -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
4293 +        fi;;
4294 +  esac
4295 +
4296 +  # use default flags for gcc on all systems
4297 +  if test $ac_cv_prog_really_gcc = yes; then
4298 +     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4299 +  fi
4300 +
4301 +  # test for gcc-specific flags:
4302 +  if test $ac_cv_prog_really_gcc = yes; then
4303 +    # -malign-double for x86 systems
4304 +
4305 +
4306 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
4307 + echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
4308 + if test "${ac_align_double+set}" = set; then
4309 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4310 + else
4311 +  echo 'void f(){}' > conftest.c
4312 + if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
4313 +        ac_align_double=yes
4314 + else
4315 +        ac_align_double=no
4316 + fi
4317 + rm -f conftest*
4318 +
4319 + fi
4320 + echo "$as_me:$LINENO: result: $ac_align_double" >&5
4321 + echo "${ECHO_T}$ac_align_double" >&6
4322 + if test "$ac_align_double" = yes; then
4323 +        :
4324 +        CFLAGS="$CFLAGS -malign-double"
4325 + else
4326 +        :
4327 +
4328 + fi
4329 +
4330 +    # -fstrict-aliasing for gcc-2.95+
4331 +
4332 +
4333 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
4334 + echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
4335 + if test "${ac_fstrict_aliasing+set}" = set; then
4336 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4337 + else
4338 +  echo 'void f(){}' > conftest.c
4339 + if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
4340 +        ac_fstrict_aliasing=yes
4341 + else
4342 +        ac_fstrict_aliasing=no
4343 + fi
4344 + rm -f conftest*
4345 +
4346 + fi
4347   echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4348   echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4349   if test "$ac_fstrict_aliasing" = yes; then
4350          :
4351 <        CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
4351 >        CFLAGS="$CFLAGS -fstrict-aliasing"
4352   else
4353          :
4354  
# Line 3420 | Line 4357 | fi
4357    fi
4358  
4359    CPU_FLAGS=""
4360 <  if test "$GCC" = "yes"; then
4360 >  if test $ac_cv_prog_really_gcc = yes; then
4361                    case "${host_cpu}" in
4362            i586*)
4363  
# Line 3447 | Line 4384 | echo "$as_me:$LINENO: checking whether ${CXX-c++} acce
4384          :
4385  
4386  
4387 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
4388 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
4387 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
4388 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
4389   if test "${ac_pentium+set}" = set; then
4390    echo $ECHO_N "(cached) $ECHO_C" >&6
4391   else
4392 <  echo 'void f(){}' > conftest.cpp
4393 < if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
4392 >  echo 'void f(){}' > conftest.c
4393 > if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
4394          ac_pentium=yes
4395   else
4396          ac_pentium=no
# Line 3476 | Line 4413 | echo "$as_me:$LINENO: checking whether ${CXX-c++} acce
4413                    ;;
4414            i686*)
4415  
4416 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
4417 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4416 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
4417 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4418   if test "${ac_cpu_pentiumpro+set}" = set; then
4419    echo $ECHO_N "(cached) $ECHO_C" >&6
4420   else
4421 <  echo 'void f(){}' > conftest.cpp
4422 < if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
4421 >  echo 'void f(){}' > conftest.c
4422 > if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
4423          ac_cpu_pentiumpro=yes
4424   else
4425          ac_cpu_pentiumpro=no
# Line 3499 | Line 4436 | echo "$as_me:$LINENO: checking whether ${CXX-c++} acce
4436          :
4437  
4438  
4439 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
4440 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
4439 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
4440 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
4441   if test "${ac_pentiumpro+set}" = set; then
4442    echo $ECHO_N "(cached) $ECHO_C" >&6
4443   else
4444 <  echo 'void f(){}' > conftest.cpp
4445 < if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
4444 >  echo 'void f(){}' > conftest.c
4445 > if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
4446          ac_pentiumpro=yes
4447   else
4448          ac_pentiumpro=no
# Line 3532 | Line 4469 | echo "$as_me:$LINENO: checking whether ${CXX-c++} acce
4469                  if test -n "$is60x"; then
4470  
4471  
4472 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
4473 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
4472 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
4473 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
4474   if test "${ac_m_cpu_60x+set}" = set; then
4475    echo $ECHO_N "(cached) $ECHO_C" >&6
4476   else
4477 <  echo 'void f(){}' > conftest.cpp
4478 < if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
4477 >  echo 'void f(){}' > conftest.c
4478 > if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
4479          ac_m_cpu_60x=yes
4480   else
4481          ac_m_cpu_60x=no
# Line 3566 | Line 4503 | cat > conftest.c <<EOF
4503   else
4504  
4505   cat > conftest.c <<EOF
4506 < #ifdef __GNUC__
4506 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4507   #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4508       yes;
4509   #  endif
# Line 3590 | Line 4527 | echo "$as_me:$LINENO: checking whether ${CXX-c++} acce
4527          :
4528  
4529  
4530 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
4531 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
4530 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
4531 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
4532   if test "${ac_m_cpu_750+set}" = set; then
4533    echo $ECHO_N "(cached) $ECHO_C" >&6
4534   else
4535 <  echo 'void f(){}' > conftest.cpp
4536 < if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
4535 >  echo 'void f(){}' > conftest.c
4536 > if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
4537          ac_m_cpu_750=yes
4538   else
4539          ac_m_cpu_750=no
# Line 3623 | Line 4560 | echo "$as_me:$LINENO: checking whether ${CXX-c++} acce
4560                  if test -z "$CPU_FLAGS"; then
4561  
4562  
4563 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
4564 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
4563 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
4564 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
4565   if test "${ac_m_cpu_powerpc+set}" = set; then
4566    echo $ECHO_N "(cached) $ECHO_C" >&6
4567   else
4568 <  echo 'void f(){}' > conftest.cpp
4569 < if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
4568 >  echo 'void f(){}' > conftest.c
4569 > if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
4570          ac_m_cpu_powerpc=yes
4571   else
4572          ac_m_cpu_powerpc=no
# Line 3651 | Line 4588 | echo "$as_me:$LINENO: checking whether ${CXX-c++} acce
4588                  if test -z "$CPU_FLAGS"; then
4589  
4590  
4591 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
4592 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
4591 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
4592 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
4593   if test "${ac_m_powerpc+set}" = set; then
4594    echo $ECHO_N "(cached) $ECHO_C" >&6
4595   else
4596 <  echo 'void f(){}' > conftest.cpp
4597 < if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
4596 >  echo 'void f(){}' > conftest.c
4597 > if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
4598          ac_m_powerpc=yes
4599   else
4600          ac_m_powerpc=no
# Line 3680 | Line 4617 | fi
4617    fi
4618  
4619    if test -n "$CPU_FLAGS"; then
4620 <        CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
4620 >        CFLAGS="$CFLAGS $CPU_FLAGS"
4621    fi
4622  
4623 <  if test -z "$CXXFLAGS"; then
4623 >  if test -z "$CFLAGS"; then
4624          echo ""
4625 <        echo "**********************************************************"
4626 <        echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
4627 <        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
4628 <        echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *"
4629 <        echo "**********************************************************"
4625 >        echo "********************************************************"
4626 >        echo "* WARNING: Don't know the best CFLAGS for this system  *"
4627 >        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
4628 >        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
4629 >        echo "********************************************************"
4630          echo ""
4631 <        CXXFLAGS="-O3"
4631 >        CFLAGS="-O3"
4632    fi
4633  
4634  
4635  
4636 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
4637 < echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
4638 < if test "${ac_guessed_cxxflags+set}" = set; then
4636 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
4637 > echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
4638 > if test "${ac_guessed_cflags+set}" = set; then
4639    echo $ECHO_N "(cached) $ECHO_C" >&6
4640   else
4641 <  echo 'void f(){}' > conftest.cpp
4642 < if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
4643 <        ac_guessed_cxxflags=yes
4641 >  echo 'void f(){}' > conftest.c
4642 > if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
4643 >        ac_guessed_cflags=yes
4644   else
4645 <        ac_guessed_cxxflags=no
4645 >        ac_guessed_cflags=no
4646   fi
4647   rm -f conftest*
4648  
4649   fi
4650 < echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
4651 < echo "${ECHO_T}$ac_guessed_cxxflags" >&6
4652 < if test "$ac_guessed_cxxflags" = yes; then
4650 > echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
4651 > echo "${ECHO_T}$ac_guessed_cflags" >&6
4652 > if test "$ac_guessed_cflags" = yes; then
4653          :
4654  
4655   else
4656          :
4657  
4658          echo ""
4659 <        echo "**********************************************************"
4660 <        echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *"
4661 <        echo "* your compiler.                                         *"
4662 <        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
4663 <        echo "**********************************************************"
4659 >        echo "********************************************************"
4660 >        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
4661 >        echo "* your compiler.                                       *"
4662 >        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
4663 >        echo "********************************************************"
4664          echo ""
4665 <        CXXFLAGS=""
4665 >        CFLAGS=""
4666  
4667   fi
4668  
4669  
4670   fi
3734
3735 ac_ext=f90
3736 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3737 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3739 if test -n "$ac_tool_prefix"; then
3740  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3741  do
3742    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3744 echo "$as_me:$LINENO: checking for $ac_word" >&5
3745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3746 if test "${ac_cv_prog_F90+set}" = set; then
3747  echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749  if test -n "$F90"; then
3750  ac_cv_prog_F90="$F90" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3754 do
3755  IFS=$as_save_IFS
3756  test -z "$as_dir" && as_dir=.
3757  for ac_exec_ext in '' $ac_executable_extensions; do
3758  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759    ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3760    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3761    break 2
3762  fi
3763 done
3764 done
4671  
3766 fi
3767 fi
3768 F90=$ac_cv_prog_F90
3769 if test -n "$F90"; then
3770  echo "$as_me:$LINENO: result: $F90" >&5
3771 echo "${ECHO_T}$F90" >&6
3772 else
3773  echo "$as_me:$LINENO: result: no" >&5
3774 echo "${ECHO_T}no" >&6
3775 fi
4672  
3777    test -n "$F90" && break
3778  done
3779 fi
3780 if test -z "$F90"; then
3781  ac_ct_F90=$F90
3782  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3783 do
3784  # Extract the first word of "$ac_prog", so it can be a program name with args.
3785 set dummy $ac_prog; ac_word=$2
3786 echo "$as_me:$LINENO: checking for $ac_word" >&5
3787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3788 if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
3789  echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791  if test -n "$ac_ct_F90"; then
3792  ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3796 do
3797  IFS=$as_save_IFS
3798  test -z "$as_dir" && as_dir=.
3799  for ac_exec_ext in '' $ac_executable_extensions; do
3800  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801    ac_cv_prog_ac_ct_F90="$ac_prog"
3802    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3803    break 2
3804  fi
3805 done
3806 done
4673  
3808 fi
3809 fi
3810 ac_ct_F90=$ac_cv_prog_ac_ct_F90
3811 if test -n "$ac_ct_F90"; then
3812  echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
3813 echo "${ECHO_T}$ac_ct_F90" >&6
3814 else
3815  echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3817 fi
4674  
3819  test -n "$ac_ct_F90" && break
3820 done
4675  
3822  F90=$ac_ct_F90
3823 fi
4676  
4677  
4678 < # If we don't use `.F90' as extension, the preprocessor is not run on the
4679 < # input file.
4680 < ac_save_ext=$ac_ext
3829 < ac_ext=F90
3830 < echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
3831 < echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
3832 < if test "${ac_cv_f90_compiler_gnu+set}" = set; then
4678 > echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
4679 > echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6
4680 > if test "${ac_cv_prog_really_gxx+set}" = set; then
4681    echo $ECHO_N "(cached) $ECHO_C" >&6
4682   else
3835  cat >conftest.$ac_ext <<_ACEOF
4683  
4684 < program main
4685 <
4686 < #ifndef __GNUC__
4687 <       choke me
4684 > cat > conftest.cpp <<EOF
4685 > #ifdef __GNUC__
4686 >  #ifndef __INTEL_COMPILER
4687 >     yes;
4688 >  #endif
4689   #endif
4690 <
4691 < end program main
3844 <
3845 < _ACEOF
3846 < rm -f conftest.$ac_objext
3847 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3848 <  (eval $ac_compile) 2>&5
3849 <  ac_status=$?
3850 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 <  (exit $ac_status); } &&
3852 <         { ac_try='test -s conftest.$ac_objext'
4690 > EOF
4691 > if { ac_try='${CXX-c++} -E conftest.cpp'
4692    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693    (eval $ac_try) 2>&5
4694    ac_status=$?
4695    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 <  (exit $ac_status); }; }; then
4697 <  ac_compiler_gnu=yes
4696 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4697 >  ac_cv_prog_really_gxx=yes
4698   else
4699 <  echo "$as_me: failed program was:" >&5
4700 < sed 's/^/| /' conftest.$ac_ext >&5
4699 >  ac_cv_prog_really_gxx=no
4700 > fi
4701  
3863 ac_compiler_gnu=no
4702   fi
4703 < rm -f conftest.$ac_objext conftest.$ac_ext
4704 < ac_cv_f90_compiler_gnu=$ac_compiler_gnu
4703 > echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
4704 > echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
4705 > if test "$ac_cv_prog_really_gxx" = yes; then
4706 >        :
4707 >
4708 > else
4709 >        :
4710  
4711   fi
3869 echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3870 echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3871 ac_ext=$ac_save_ext
3872 G95=`test $ac_compiler_gnu = yes && echo yes`
3873 ac_ext=c
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4712  
4713  
3880
3881
3882
4714   # Try to determine "good" native compiler flags if none specified on command
4715   # line
4716 <
4717 < if test "$ac_test_F90FLAGS" != "set"; then
3887 <  F90FLAGS=""
4716 > if test "$ac_test_CXXFLAGS" != "set"; then
4717 >  CXXFLAGS=""
4718    case "${host_cpu}-${host_os}" in
4719  
4720 <  *linux*) if test "$F90" = ifc; then
4721 <                    F90FLAGS="-O"
4720 >  *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
4721 >                    CXXFLAGS="-O"
4722                  fi;;
4723 <   rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
4724 <                    F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
4723 >  sparc-solaris2*) if test "$CXX" = CC; then
4724 >                    CXXFLAGS="-native -fast -xO5 -dalign"
4725 >                 fi;;
4726 >   rs6000*-aix*)  if test "$CXX" = xlC; then
4727 >                    CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
4728                  fi;;
4729     powerpc*-aix*)
4730 <        if test "$F90" = f90 -o "$F90" = xlf90; then
4731 <                F90FLAGS="-O3 -qarch=ppc -qansialias -w"
4730 >        if test "$CXX" = xlC; then
4731 >                CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
4732                  echo "*******************************************************"
4733                  echo "*  You have AIX on an unknown powerpc system.  It is  *"
4734                  echo "*  recommended that you use                           *"
4735                  echo "*                                                     *"
4736 <                echo "*  F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4736 >                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4737                  echo "*                                 ^^^                 *"
4738                  echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4739 <                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
4739 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4740                  echo "*******************************************************"
4741          fi;;
4742     *darwin*)
4743 <        if test "$F90" = f90 -o "$F90" = xlf90; then
4744 <                F90FLAGS="-O3 -qtune=auto -w"
3912 <                echo "*********************************************************"
3913 <                echo "*  You have Darwin on an unknown powerpc system.  It is *"
3914 <                echo "*  recommended that you use                             *"
3915 <                echo "*                                                       *"
3916 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
3917 <                echo "*                                 ^^^                   *"
3918 <                echo "*  where xxx is 601, 603, 604, or whatever kind of      *"
3919 <                echo "*  PowerPC CPU you have.   For more info, man xlf.      *"
3920 <                echo "*********************************************************"
4743 >        if test "$CXX" = xlC; then
4744 >                CXXFLAGS="-qthreaded -O5 -Q=20 -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
4745          fi;;
4746    esac
4747  
4748 <  if test -n "$CPU_FLAGS"; then
4749 <        F90FLAGS="$F90FLAGS $CPU_FLAGS"
4748 >  # use default flags for gcc on all systems
4749 >  if test $ac_cv_prog_really_gxx = yes; then
4750 >     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4751    fi
4752  
4753 <  if test -z "$F90FLAGS"; then
4754 <        echo ""
4755 <        echo "**********************************************************"
4756 <        echo "* WARNING: Don't know the best F90FLAGS for this system  *"
4757 <        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
4758 <        echo "* (otherwise, a default of F90FLAGS=-O3 will be used)    *"
4759 <        echo "**********************************************************"
4760 <        echo ""
4761 <        F90FLAGS="-O3"
4753 >  # test for gcc-specific flags:
4754 >  if test $ac_cv_prog_really_gxx = yes; then
4755 >    # -malign-double for x86 systems
4756 >
4757 >
4758 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
4759 > echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
4760 > if test "${ac_align_double+set}" = set; then
4761 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4762 > else
4763 >  echo 'void f(){}' > conftest.cpp
4764 > if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
4765 >        ac_align_double=yes
4766 > else
4767 >        ac_align_double=no
4768 > fi
4769 > rm -f conftest*
4770 >
4771 > fi
4772 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
4773 > echo "${ECHO_T}$ac_align_double" >&6
4774 > if test "$ac_align_double" = yes; then
4775 >        :
4776 >        CXXFLAGS="$CXXFLAGS -malign-double"
4777 > else
4778 >        :
4779 >
4780 > fi
4781 >
4782 >    # -fstrict-aliasing for gcc-2.95+
4783 >
4784 >
4785 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
4786 > echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
4787 > if test "${ac_fstrict_aliasing+set}" = set; then
4788 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4789 > else
4790 >  echo 'void f(){}' > conftest.cpp
4791 > if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
4792 >        ac_fstrict_aliasing=yes
4793 > else
4794 >        ac_fstrict_aliasing=no
4795 > fi
4796 > rm -f conftest*
4797 >
4798 > fi
4799 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4800 > echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4801 > if test "$ac_fstrict_aliasing" = yes; then
4802 >        :
4803 >        CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
4804 > else
4805 >        :
4806 >
4807 > fi
4808 >
4809    fi
4810  
4811 +  CPU_FLAGS=""
4812 +  if test $ac_cv_prog_really_gxx = yes; then
4813 +                  case "${host_cpu}" in
4814 +          i586*)
4815  
4816 < echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
4817 < echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
4818 < if test "${ac_guessed_f90flags+set}" = set; then
4816 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
4817 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
4818 > if test "${ac_cpu_pentium+set}" = set; then
4819    echo $ECHO_N "(cached) $ECHO_C" >&6
4820   else
4821 +  echo 'void f(){}' > conftest.cpp
4822 + if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
4823 +        ac_cpu_pentium=yes
4824 + else
4825 +        ac_cpu_pentium=no
4826 + fi
4827 + rm -f conftest*
4828  
4829 + fi
4830 + echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4831 + echo "${ECHO_T}$ac_cpu_pentium" >&6
4832 + if test "$ac_cpu_pentium" = yes; then
4833 +        :
4834 +        CPU_FLAGS=-mcpu=pentium
4835 + else
4836 +        :
4837  
4838  
4839 < ac_ext=f90
4840 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4841 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4839 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
4840 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
4841 > if test "${ac_pentium+set}" = set; then
4842 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4843 > else
4844 >  echo 'void f(){}' > conftest.cpp
4845 > if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
4846 >        ac_pentium=yes
4847 > else
4848 >        ac_pentium=no
4849 > fi
4850 > rm -f conftest*
4851  
4852 < echo 'program main' > conftest.$ac_ext
4853 < echo 'end program main' >> conftest.$ac_ext
4854 < ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
4855 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856 <  (eval $ac_compile) 2>&5
4857 <  ac_status=$?
3959 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 <  (exit $ac_status); }; then
3961 <        ac_guessed_f90flags=yes
4852 > fi
4853 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
4854 > echo "${ECHO_T}$ac_pentium" >&6
4855 > if test "$ac_pentium" = yes; then
4856 >        :
4857 >        CPU_FLAGS=-mpentium
4858   else
4859 <        ac_guessed_f90flags=no
4859 >        :
4860 >
4861   fi
4862 +
4863 + fi
4864 +
4865 +                  ;;
4866 +          i686*)
4867 +
4868 + echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
4869 + echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4870 + if test "${ac_cpu_pentiumpro+set}" = set; then
4871 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4872 + else
4873 +  echo 'void f(){}' > conftest.cpp
4874 + if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
4875 +        ac_cpu_pentiumpro=yes
4876 + else
4877 +        ac_cpu_pentiumpro=no
4878 + fi
4879   rm -f conftest*
3966 ac_ext=c
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4880  
4881 + fi
4882 + echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4883 + echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4884 + if test "$ac_cpu_pentiumpro" = yes; then
4885 +        :
4886 +        CPU_FLAGS=-mcpu=pentiumpro
4887 + else
4888 +        :
4889  
4890 +
4891 + echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
4892 + echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
4893 + if test "${ac_pentiumpro+set}" = set; then
4894 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4895 + else
4896 +  echo 'void f(){}' > conftest.cpp
4897 + if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
4898 +        ac_pentiumpro=yes
4899 + else
4900 +        ac_pentiumpro=no
4901   fi
4902 < echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
4903 < echo "${ECHO_T}$ac_guessed_f90flags" >&6
4904 < if test "$ac_guessed_f90flags" = yes; then
4902 > rm -f conftest*
4903 >
4904 > fi
4905 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4906 > echo "${ECHO_T}$ac_pentiumpro" >&6
4907 > if test "$ac_pentiumpro" = yes; then
4908          :
4909 +        CPU_FLAGS=-mpentiumpro
4910 + else
4911 +        :
4912  
4913 + fi
4914 +
4915 + fi
4916 +
4917 +                  ;;
4918 +          powerpc*)
4919 +                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
4920 +                is60x=`echo $cputype | egrep "^600-9e?$"`
4921 +                if test -n "$is60x"; then
4922 +
4923 +
4924 + echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
4925 + echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
4926 + if test "${ac_m_cpu_60x+set}" = set; then
4927 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4928   else
4929 +  echo 'void f(){}' > conftest.cpp
4930 + if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
4931 +        ac_m_cpu_60x=yes
4932 + else
4933 +        ac_m_cpu_60x=no
4934 + fi
4935 + rm -f conftest*
4936 +
4937 + fi
4938 + echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4939 + echo "${ECHO_T}$ac_m_cpu_60x" >&6
4940 + if test "$ac_m_cpu_60x" = yes; then
4941          :
4942 +        CPU_FLAGS=-mcpu=$cputype
4943 + else
4944 +        :
4945  
4946 + fi
4947 +
4948 +                elif test "$cputype" = 750; then
4949 +
4950 +
4951 + echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
4952 + echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
4953 + if test "${ac_cv_prog_gxx_2_95+set}" = set; then
4954 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4955 + else
4956 +
4957 + cat > conftest.cpp <<EOF
4958 + #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4959 + #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4960 +     yes;
4961 + #  endif
4962 + #endif
4963 + EOF
4964 + if { ac_try='${CXX-c++} -E conftest.cpp'
4965 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 +  (eval $ac_try) 2>&5
4967 +  ac_status=$?
4968 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 +  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4970 +  ac_cv_prog_gxx_2_95=yes
4971 + else
4972 +  ac_cv_prog_gxx_2_95=no
4973 + fi
4974 +
4975 + fi
4976 + echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
4977 + echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
4978 + if test "$ac_cv_prog_gxx_2_95" = yes; then
4979 +        :
4980 +
4981 +
4982 + echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
4983 + echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
4984 + if test "${ac_m_cpu_750+set}" = set; then
4985 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4986 + else
4987 +  echo 'void f(){}' > conftest.cpp
4988 + if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
4989 +        ac_m_cpu_750=yes
4990 + else
4991 +        ac_m_cpu_750=no
4992 + fi
4993 + rm -f conftest*
4994 +
4995 + fi
4996 + echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
4997 + echo "${ECHO_T}$ac_m_cpu_750" >&6
4998 + if test "$ac_m_cpu_750" = yes; then
4999 +        :
5000 +        CPU_FLAGS=-mcpu=750
5001 + else
5002 +        :
5003 +
5004 + fi
5005 +
5006 + else
5007 +        :
5008 +
5009 + fi
5010 +
5011 +                fi
5012 +                if test -z "$CPU_FLAGS"; then
5013 +
5014 +
5015 + echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
5016 + echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
5017 + if test "${ac_m_cpu_powerpc+set}" = set; then
5018 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5019 + else
5020 +  echo 'void f(){}' > conftest.cpp
5021 + if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
5022 +        ac_m_cpu_powerpc=yes
5023 + else
5024 +        ac_m_cpu_powerpc=no
5025 + fi
5026 + rm -f conftest*
5027 +
5028 + fi
5029 + echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
5030 + echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
5031 + if test "$ac_m_cpu_powerpc" = yes; then
5032 +        :
5033 +        CPU_FLAGS=-mcpu=powerpc
5034 + else
5035 +        :
5036 +
5037 + fi
5038 +
5039 +                fi
5040 +                if test -z "$CPU_FLAGS"; then
5041 +
5042 +
5043 + echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
5044 + echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
5045 + if test "${ac_m_powerpc+set}" = set; then
5046 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5047 + else
5048 +  echo 'void f(){}' > conftest.cpp
5049 + if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
5050 +        ac_m_powerpc=yes
5051 + else
5052 +        ac_m_powerpc=no
5053 + fi
5054 + rm -f conftest*
5055 +
5056 + fi
5057 + echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
5058 + echo "${ECHO_T}$ac_m_powerpc" >&6
5059 + if test "$ac_m_powerpc" = yes; then
5060 +        :
5061 +        CPU_FLAGS=-mpowerpc
5062 + else
5063 +        :
5064 +
5065 + fi
5066 +
5067 +                fi
5068 +          esac
5069 +  fi
5070 +
5071 +  if test -n "$CPU_FLAGS"; then
5072 +        CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
5073 +  fi
5074 +
5075 +  if test -z "$CXXFLAGS"; then
5076          echo ""
5077 +        echo "**********************************************************"
5078 +        echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
5079 +        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
5080 +        echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *"
5081 +        echo "**********************************************************"
5082 +        echo ""
5083 +        CXXFLAGS="-O3"
5084 +  fi
5085 +
5086 +
5087 +
5088 + echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
5089 + echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
5090 + if test "${ac_guessed_cxxflags+set}" = set; then
5091 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5092 + else
5093 +  echo 'void f(){}' > conftest.cpp
5094 + if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
5095 +        ac_guessed_cxxflags=yes
5096 + else
5097 +        ac_guessed_cxxflags=no
5098 + fi
5099 + rm -f conftest*
5100 +
5101 + fi
5102 + echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
5103 + echo "${ECHO_T}$ac_guessed_cxxflags" >&6
5104 + if test "$ac_guessed_cxxflags" = yes; then
5105 +        :
5106 +
5107 + else
5108 +        :
5109 +
5110 +        echo ""
5111          echo "**********************************************************"
5112 <        echo "* WARNING: The guessed F90FLAGS don't seem to work with  *"
5112 >        echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *"
5113          echo "* your compiler.                                         *"
5114 <        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
5114 >        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
5115          echo "**********************************************************"
5116          echo ""
5117 <        F90FLAGS=""
5117 >        CXXFLAGS=""
5118  
5119   fi
5120  
# Line 3997 | Line 5125 | fi
5125  
5126  
5127  
5128 < # Try to determine native compiler flags that allow us to use F90 suffix
5129 < # for preprocessed f90 source.
5128 > # Try to determine "good" native compiler flags if none specified on command
5129 > # line
5130  
5131 < if test "$ac_test_PREPFLAG" != "set"; then
5132 <  PREPFLAG=""
5131 > if test x"$F90FLAGS" = x ; then
5132 >  F90FLAGS=""
5133    case "${host_cpu}-${host_os}" in
5134  
5135 <  *linux*) if test "$F90" = ifc; then
5136 <                    PREPFLAG="-fpp1 "
5135 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
5136 >                    F90FLAGS="-O"
5137                  fi;;
5138 <  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
5139 <                    PREPFLAG="-qsuffix=cpp=F90 "
5138 >   rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
5139 >                    F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
5140                  fi;;
5141 <  *darwin*)
5141 >   powerpc*-aix*)
5142 >        if test "$F90" = f90 -o "$F90" = xlf90; then
5143 >                F90FLAGS="-O3 -qarch=ppc -qansialias -w"
5144 >                echo "*******************************************************"
5145 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
5146 >                echo "*  recommended that you use                           *"
5147 >                echo "*                                                     *"
5148 >                echo "*  F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
5149 >                echo "*                                 ^^^                 *"
5150 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
5151 >                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
5152 >                echo "*******************************************************"
5153 >        fi;;
5154 >   *darwin*)
5155          if test "$F90" = f90 -o "$F90" = xlf90; then
5156 <                PREPFLAG="-qsuffix=cpp=F90 "
5156 >                F90FLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto"
5157          fi;;
5158    esac
5159  
5160 <  if test -z "$PREPFLAG"; then
5160 >  if test -n "$CPU_FLAGS"; then
5161 >        F90FLAGS="$F90FLAGS $CPU_FLAGS"
5162 >  fi
5163 >
5164 >  if test -z "$F90FLAGS"; then
5165          echo ""
5166          echo "**********************************************************"
5167 <        echo "* WARNING: Don't know the best PREPFLAG for this system  *"
5168 <        echo "* Use  make PREPFLAG=..., or edit the top level Makefile *"
5169 <        echo "* (otherwise, an empty PREPFLAG will be used)            *"
5167 >        echo "* WARNING: Don't know the best F90FLAGS for this system  *"
5168 >        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
5169 >        echo "* (otherwise, a default of F90FLAGS=-O3 will be used)    *"
5170          echo "**********************************************************"
5171          echo ""
5172 <        PREPFLAG=""
5172 >        F90FLAGS="-O3"
5173    fi
5174  
4030  echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
4031 echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
5175  
5176 + echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
5177 + echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
5178 + if test "${ac_guessed_f90flags+set}" = set; then
5179 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5180 + else
5181  
5182 <  ac_ext=f90
5182 >
5183 >
5184 > ac_ext=f90
5185   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5186   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5187   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5188  
5189 <  ac_save_ext=$ac_ext
5190 <  ac_ext=F90
5191 <  ac_save_F90FLAGS=$F90FLAGS
4042 <
4043 <  if test "$PREPFLAG"; then
4044 <  F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
4045 < fi
4046 <
4047 <    cat >conftest.$ac_ext <<_ACEOF
4048 <
4049 <
4050 < program main
4051 <
4052 <  integer :: i
4053 <  i = 1
4054 <
4055 <
4056 < end program main
4057 <
4058 < _ACEOF
4059 < rm -f conftest.$ac_objext
5189 > echo 'program main' > conftest.$ac_ext
5190 > echo 'end program main' >> conftest.$ac_ext
5191 > ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
5192   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5193    (eval $ac_compile) 2>&5
5194    ac_status=$?
5195    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 <  (exit $ac_status); } &&
5197 <         { ac_try='test -s conftest.$ac_objext'
4066 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 <  (eval $ac_try) 2>&5
4068 <  ac_status=$?
4069 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 <  (exit $ac_status); }; }; then
4071 <  prepflagworks=1
5196 >  (exit $ac_status); }; then
5197 >        ac_guessed_f90flags=yes
5198   else
5199 <  echo "$as_me: failed program was:" >&5
4074 < sed 's/^/| /' conftest.$ac_ext >&5
4075 <
4076 < prepflagworks=0
5199 >        ac_guessed_f90flags=no
5200   fi
5201 < rm -f conftest.$ac_objext conftest.$ac_ext
5202 <
4080 <  F90FLAGS=$ac_save_F90FLAGS
4081 <  ac_ext=$ac_save_ext
4082 <  ac_ext=c
4083 < ac_cpp='$CPP $CPPFLAGS'
4084 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087 <
4088 <
4089 <
4090 <  if test "$prepflagworks" = 1; then
4091 <    echo "$as_me:$LINENO: result: yes" >&5
4092 < echo "${ECHO_T}yes" >&6
4093 <
4094 <  else
4095 <    echo "$as_me:$LINENO: result: no" >&5
4096 < echo "${ECHO_T}no" >&6
4097 <    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
4098 < echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
4099 <   { (exit 1); exit 1; }; }
4100 <  fi
4101 < fi
4102 <
4103 <
4104 <
4105 <
4106 <
4107 < # Try to determine native compiler flags that allow us to use F90 suffix
4108 < # for preprocessed f90 source with -D type defines
4109 <
4110 < if test "$ac_test_PREPDEFFLAG" != "set"; then
4111 <  PREPDEFFLAG=""
4112 <  case "${host_cpu}-${host_os}" in
4113 <
4114 <  *linux*) if test "$F90" = ifc; then
4115 <                    PREPDEFFLAG=" "
4116 <                fi;;
4117 <  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
4118 <                    PREPDEFFLAG="-WF,"
4119 <                fi;;
4120 <  *darwin*)
4121 <        if test "$F90" = f90 -o "$F90" = xlf90; then
4122 <                PREPDEFFLAG="-WF,"
4123 <        fi;;
4124 <  esac
4125 <
4126 <  if test -z "$PREPDEFFLAG"; then
4127 <        echo ""
4128 <        echo "*************************************************************"
4129 <        echo "* WARNING: Don't know the best PREPDEFFLAG for this system  *"
4130 <        echo "* Use  make PREPDEFFLAG=..., or edit the top level Makefile *"
4131 <        echo "* (otherwise, an empty PREPDEFFLAG will be used)            *"
4132 <        echo "*************************************************************"
4133 <        echo ""
4134 <        PREPDEFFLAG=" "
4135 <  fi
4136 <
4137 <  echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
4138 < echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
4139 <
4140 <
4141 <  ac_ext=f90
5201 > rm -f conftest*
5202 > ac_ext=f90
5203   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5204   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5206  
4146  ac_save_ext=$ac_ext
4147  ac_ext=F90
4148  ac_save_F90FLAGS=$F90FLAGS
5207  
4150  if test "$PREPDEFFLAG"; then
4151  F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
5208   fi
5209 + echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
5210 + echo "${ECHO_T}$ac_guessed_f90flags" >&6
5211 + if test "$ac_guessed_f90flags" = yes; then
5212 +        :
5213  
4154    cat >conftest.$ac_ext <<_ACEOF
4155
4156
4157 program main
4158
4159  integer :: i
4160 #ifdef TEST
4161  i = 1
4162 #else
4163  choke me
4164 #endif
4165
4166
4167 end program main
4168
4169 _ACEOF
4170 rm -f conftest.$ac_objext
4171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4172  (eval $ac_compile) 2>&5
4173  ac_status=$?
4174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175  (exit $ac_status); } &&
4176         { ac_try='test -s conftest.$ac_objext'
4177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178  (eval $ac_try) 2>&5
4179  ac_status=$?
4180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181  (exit $ac_status); }; }; then
4182  prepdefflagworks=1
5214   else
5215 <  echo "$as_me: failed program was:" >&5
4185 < sed 's/^/| /' conftest.$ac_ext >&5
5215 >        :
5216  
5217 < prepdefflagworks=0
5218 < fi
5219 < rm -f conftest.$ac_objext conftest.$ac_ext
5217 >        echo ""
5218 >        echo "**********************************************************"
5219 >        echo "* WARNING: The guessed F90FLAGS don't seem to work with  *"
5220 >        echo "* your compiler.                                         *"
5221 >        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
5222 >        echo "**********************************************************"
5223 >        echo ""
5224 >        F90FLAGS=""
5225  
5226 <  F90FLAGS=$ac_save_F90FLAGS
4192 <  ac_ext=$ac_save_ext
4193 <  ac_ext=c
4194 < ac_cpp='$CPP $CPPFLAGS'
4195 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
5226 > fi
5227  
5228  
4200
4201  if test "$prepdefflagworks" = 1; then
4202    echo "$as_me:$LINENO: result: yes" >&5
4203 echo "${ECHO_T}yes" >&6
4204
4205  else
4206    echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6
4208    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
4209 echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
4210   { (exit 1); exit 1; }; }
4211  fi
5229   fi
5230  
5231 +     ;;
5232 + esac
5233 +
5234   # Find a good install program.  We prefer a C program (faster),
5235   # so one script is as good as another.  But avoid the broken or
5236   # incompatible versions:
# Line 4222 | Line 5242 | fi
5242   # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5243   # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5244   # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5245 + # OS/2's system install, which has a completely different semantic
5246   # ./install, which can be erroneously created by make from ./install.sh.
5247   echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5248   echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
# Line 4238 | Line 5259 | case $as_dir/ in
5259   case $as_dir/ in
5260    ./ | .// | /cC/* | \
5261    /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5262 +  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5263    /usr/ucb/* ) ;;
5264    *)
5265      # OSF1 and SCO ODT 3.0 have their own names for install.
# Line 4245 | Line 5267 | case $as_dir/ in
5267      # by default.
5268      for ac_prog in ginstall scoinst install; do
5269        for ac_exec_ext in '' $ac_executable_extensions; do
5270 <        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5271 <          if test $ac_prog = install &&
5272 <            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5273 <            # AIX install.  It has an incompatible calling convention.
5274 <            :
5275 <          elif test $ac_prog = install &&
5276 <            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5277 <            # program-specific install script used by HP pwplus--don't use.
5278 <            :
5279 <          else
5280 <            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5281 <            break 3
5282 <          fi
5283 <        fi
5270 >        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5271 >          if test $ac_prog = install &&
5272 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5273 >            # AIX install.  It has an incompatible calling convention.
5274 >            :
5275 >          elif test $ac_prog = install &&
5276 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5277 >            # program-specific install script used by HP pwplus--don't use.
5278 >            :
5279 >          else
5280 >            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5281 >            break 3
5282 >          fi
5283 >        fi
5284        done
5285      done
5286      ;;
# Line 4301 | Line 5323 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./
5323  
5324   echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5325   echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5326 < set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5326 > set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5327   if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5328    echo $ECHO_N "(cached) $ECHO_C" >&6
5329   else
# Line 4449 | Line 5471 | test -n "$YACC" || YACC="yacc"
5471   done
5472   test -n "$YACC" || YACC="yacc"
5473  
4452
5474   for ac_prog in flex lex
5475   do
5476    # Extract the first word of "$ac_prog", so it can be a program name with args.
# Line 4501 | Line 5522 | cat >conftest.$ac_ext <<_ACEOF
5522    ac_check_lib_save_LIBS=$LIBS
5523   LIBS="-lfl  $LIBS"
5524   cat >conftest.$ac_ext <<_ACEOF
4504 #line $LINENO "configure"
4505 /* confdefs.h.  */
4506 _ACEOF
4507 cat confdefs.h >>conftest.$ac_ext
4508 cat >>conftest.$ac_ext <<_ACEOF
4509 /* end confdefs.h.  */
5525  
5526 < /* Override any gcc2 internal prototype to avoid an error.  */
5527 < #ifdef __cplusplus
5528 < extern "C"
5529 < #endif
5530 < /* We use char because int might match the return type of a gcc2
4516 <   builtin and then its argument prototype would still apply.  */
4517 < char yywrap ();
4518 < int
4519 < main ()
4520 < {
4521 < yywrap ();
4522 <  ;
4523 <  return 0;
4524 < }
5526 > program main
5527 >
5528 > call yywrap
5529 > end program main
5530 >
5531   _ACEOF
5532   rm -f conftest.$ac_objext conftest$ac_exeext
5533   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5534 <  (eval $ac_link) 2>&5
5534 >  (eval $ac_link) 2>conftest.er1
5535    ac_status=$?
5536 +  grep -v '^ *+' conftest.er1 >conftest.err
5537 +  rm -f conftest.er1
5538 +  cat conftest.err >&5
5539    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540    (exit $ac_status); } &&
5541 <         { ac_try='test -s conftest$ac_exeext'
5541 >         { ac_try='test -z "$ac_f90_werror_flag"
5542 >                         || test ! -s conftest.err'
5543    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544    (eval $ac_try) 2>&5
5545    ac_status=$?
5546    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 +  (exit $ac_status); }; } &&
5548 +         { ac_try='test -s conftest$ac_exeext'
5549 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 +  (eval $ac_try) 2>&5
5551 +  ac_status=$?
5552 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553    (exit $ac_status); }; }; then
5554    ac_cv_lib_fl_yywrap=yes
5555   else
# Line 4542 | Line 5558 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
5558  
5559   ac_cv_lib_fl_yywrap=no
5560   fi
5561 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5561 > rm -f conftest.err conftest.$ac_objext \
5562 >      conftest$ac_exeext conftest.$ac_ext
5563   LIBS=$ac_check_lib_save_LIBS
5564   fi
5565   echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
# Line 4558 | Line 5575 | cat >conftest.$ac_ext <<_ACEOF
5575    ac_check_lib_save_LIBS=$LIBS
5576   LIBS="-ll  $LIBS"
5577   cat >conftest.$ac_ext <<_ACEOF
4561 #line $LINENO "configure"
4562 /* confdefs.h.  */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h.  */
5578  
5579 < /* Override any gcc2 internal prototype to avoid an error.  */
5580 < #ifdef __cplusplus
5581 < extern "C"
5582 < #endif
5583 < /* We use char because int might match the return type of a gcc2
4573 <   builtin and then its argument prototype would still apply.  */
4574 < char yywrap ();
4575 < int
4576 < main ()
4577 < {
4578 < yywrap ();
4579 <  ;
4580 <  return 0;
4581 < }
5579 > program main
5580 >
5581 > call yywrap
5582 > end program main
5583 >
5584   _ACEOF
5585   rm -f conftest.$ac_objext conftest$ac_exeext
5586   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5587 <  (eval $ac_link) 2>&5
5587 >  (eval $ac_link) 2>conftest.er1
5588    ac_status=$?
5589 +  grep -v '^ *+' conftest.er1 >conftest.err
5590 +  rm -f conftest.er1
5591 +  cat conftest.err >&5
5592    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593    (exit $ac_status); } &&
5594 <         { ac_try='test -s conftest$ac_exeext'
5594 >         { ac_try='test -z "$ac_f90_werror_flag"
5595 >                         || test ! -s conftest.err'
5596    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5597    (eval $ac_try) 2>&5
5598    ac_status=$?
5599    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 +  (exit $ac_status); }; } &&
5601 +         { ac_try='test -s conftest$ac_exeext'
5602 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 +  (eval $ac_try) 2>&5
5604 +  ac_status=$?
5605 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606    (exit $ac_status); }; }; then
5607    ac_cv_lib_l_yywrap=yes
5608   else
# Line 4599 | Line 5611 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
5611  
5612   ac_cv_lib_l_yywrap=no
5613   fi
5614 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5614 > rm -f conftest.err conftest.$ac_objext \
5615 >      conftest$ac_exeext conftest.$ac_ext
5616   LIBS=$ac_check_lib_save_LIBS
5617   fi
5618   echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
# Line 4661 | Line 5674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5674   _ACEOF
5675   rm -f conftest.$ac_objext conftest$ac_exeext
5676   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5677 <  (eval $ac_link) 2>&5
5677 >  (eval $ac_link) 2>conftest.er1
5678    ac_status=$?
5679 +  grep -v '^ *+' conftest.er1 >conftest.err
5680 +  rm -f conftest.er1
5681 +  cat conftest.err >&5
5682    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683    (exit $ac_status); } &&
5684 <         { ac_try='test -s conftest$ac_exeext'
5684 >         { ac_try='test -z "$ac_f90_werror_flag"
5685 >                         || test ! -s conftest.err'
5686    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687    (eval $ac_try) 2>&5
5688    ac_status=$?
5689    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 +  (exit $ac_status); }; } &&
5691 +         { ac_try='test -s conftest$ac_exeext'
5692 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 +  (eval $ac_try) 2>&5
5694 +  ac_status=$?
5695 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696    (exit $ac_status); }; }; then
5697    ac_cv_prog_lex_yytext_pointer=yes
5698   else
# Line 4677 | Line 5700 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
5700   sed 's/^/| /' conftest.$ac_ext >&5
5701  
5702   fi
5703 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5703 > rm -f conftest.err conftest.$ac_objext \
5704 >      conftest$ac_exeext conftest.$ac_ext
5705   LIBS=$ac_save_LIBS
5706   rm -f "${LEX_OUTPUT_ROOT}.c"
5707  
# Line 4761 | Line 5785 | _ACEOF
5785        # `set' does not quote correctly, so add quotes (double-quote
5786        # substitution turns \\\\ into \\, and sed turns \\ into \).
5787        sed -n \
5788 <        "s/'/'\\\\''/g;
5789 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5788 >        "s/'/'\\\\''/g;
5789 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5790        ;;
5791      *)
5792        # `set' quotes correctly as required by POSIX, so do not add quotes.
5793        sed -n \
5794 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5794 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5795        ;;
5796      esac;
5797   } |
# Line 4790 | Line 5814 | ac_ext=f90
5814    exit 1
5815   fi
5816  
4793 ac_ext=f90
4794 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4795 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4797
4798
4799
4800 ac_ext=f90
4801 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4802 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4804 echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
4805 echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
4806 if test "${ac_cv_prog_f90_v+set}" = set; then
4807  echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809
4810 cat >conftest.$ac_ext <<_ACEOF
4811
4812 program main
4813
4814
4815 end program main
4816
4817 _ACEOF
4818 rm -f conftest.$ac_objext
4819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4820  (eval $ac_compile) 2>&5
4821  ac_status=$?
4822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823  (exit $ac_status); } &&
4824         { ac_try='test -s conftest.$ac_objext'
4825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826  (eval $ac_try) 2>&5
4827  ac_status=$?
4828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829  (exit $ac_status); }; }; then
4830  ac_cv_prog_f90_v=
4831 # Try some options frequently used verbose output
4832 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4833  ac_ext=f90
4834 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4835 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4837
4838 cat >conftest.$ac_ext <<_ACEOF
4839
4840 program main
4841
4842
4843 end program main
4844
4845 _ACEOF
4846
4847 # Compile and link our simple test program by passing a flag (argument
4848 # 1 to this macro) to the Fortran 90 compiler in order to get
4849 # "verbose" output that we can then parse for the Fortran 90 linker
4850 # flags.
4851 ac_save_F90FLAGS=$F90FLAGS
4852 F90FLAGS="$F90FLAGS $ac_verb"
4853
4854 (eval echo $as_me:4854: \"$ac_link\") >&5
4855 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4856 echo "$ac_f90_v_output" >&5
4857 F90FLAGS=$ac_save_F90FLAGS
4858
4859 rm -f conftest.*
4860 ac_ext=f90
4861 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4862 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4864
4865 # If we are using xlf then replace all the commas with spaces.
4866 if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4867  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4868 fi
4869
4870 # If we are using Cray Fortran then delete quotes.
4871 # Use "\"" instead of '"' for font-lock-mode.
4872 # FIXME: a more general fix for quoted arguments with spaces?
4873 if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4874  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4875 fi
4876  # look for -l* and *.a constructs in the output
4877  for ac_arg in $ac_f90_v_output; do
4878     case $ac_arg in
4879        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4880          ac_cv_prog_f90_v=$ac_verb
4881          break 2 ;;
4882     esac
4883  done
4884 done
4885 if test -z "$ac_cv_prog_f90_v"; then
4886   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
4887 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
4888 fi
4889 else
4890  echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4892
4893 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4894 echo "$as_me: WARNING: compilation failed" >&2;}
4895 fi
4896 rm -f conftest.$ac_objext conftest.$ac_ext
4897
4898 fi
4899 echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
4900 echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
4901 echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
4902 echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
4903 if test "${ac_cv_flibs+set}" = set; then
4904  echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906  if test "x$F90LIBS" != "x"; then
4907  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
4908 else
4909
4910 ac_ext=f90
4911 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4912 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4914
4915 cat >conftest.$ac_ext <<_ACEOF
4916
4917 program main
4918
4919
4920 end program main
4921
4922 _ACEOF
4923
4924 # Compile and link our simple test program by passing a flag (argument
4925 # 1 to this macro) to the Fortran 90 compiler in order to get
4926 # "verbose" output that we can then parse for the Fortran 90 linker
4927 # flags.
4928 ac_save_F90FLAGS=$F90FLAGS
4929 F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
4930
4931 (eval echo $as_me:4931: \"$ac_link\") >&5
4932 ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4933 echo "$ac_f90_v_output" >&5
4934 F90FLAGS=$ac_save_F90FLAGS
4935
4936 rm -f conftest.*
4937 ac_ext=f90
4938 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4939 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4940 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4941
4942 # If we are using xlf then replace all the commas with spaces.
4943 if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4944  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4945 fi
4946
4947 # If we are using Cray Fortran then delete quotes.
4948 # Use "\"" instead of '"' for font-lock-mode.
4949 # FIXME: a more general fix for quoted arguments with spaces?
4950 if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4951  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4952 fi
4953
4954 ac_cv_f90libs=
4955
4956 # Save positional arguments (if any)
4957 ac_save_positional="$@"
4958
4959 set X $ac_f90_v_output
4960 while test $# != 1; do
4961  shift
4962  ac_arg=$1
4963  case $ac_arg in
4964        [\\/]*.a | ?:[\\/]*.a)
4965            ac_exists=false
4966  for ac_i in $ac_cv_f90libs; do
4967    if test x"$ac_arg" = x"$ac_i"; then
4968      ac_exists=true
4969      break
4970    fi
4971  done
4972
4973  if test x"$ac_exists" = xtrue; then
4974  :
4975 else
4976  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4977 fi
4978
4979          ;;
4980        -bI:*)
4981            ac_exists=false
4982  for ac_i in $ac_cv_f90libs; do
4983    if test x"$ac_arg" = x"$ac_i"; then
4984      ac_exists=true
4985      break
4986    fi
4987  done
4988
4989  if test x"$ac_exists" = xtrue; then
4990  :
4991 else
4992  if test "$ac_compiler_gnu" = yes; then
4993  for ac_link_opt in $ac_arg; do
4994    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4995  done
4996 else
4997  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4998 fi
4999 fi
5000
5001          ;;
5002          # Ignore these flags.
5003        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
5004          ;;
5005        -lkernel32)
5006          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5007          ;;
5008        -[LRuY])
5009          # These flags, when seen by themselves, take an argument.
5010          # We remove the space between option and argument and re-iterate
5011          # unless we find an empty arg or a new option (starting with -)
5012          case $2 in
5013             "" | -*);;
5014             *)
5015                ac_arg="$ac_arg$2"
5016
5017                shift; shift
5018                set X $ac_arg "$@"
5019                ;;
5020          esac
5021          ;;
5022        -YP,*)
5023          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
5024              ac_exists=false
5025  for ac_i in $ac_cv_f90libs; do
5026    if test x"$ac_j" = x"$ac_i"; then
5027      ac_exists=true
5028      break
5029    fi
5030  done
5031
5032  if test x"$ac_exists" = xtrue; then
5033  :
5034 else
5035  ac_arg="$ac_arg $ac_j"
5036                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
5037 fi
5038
5039          done
5040          ;;
5041        -[lLR]*)
5042            ac_exists=false
5043  for ac_i in $ac_cv_f90libs; do
5044    if test x"$ac_arg" = x"$ac_i"; then
5045      ac_exists=true
5046      break
5047    fi
5048  done
5049
5050  if test x"$ac_exists" = xtrue; then
5051  :
5052 else
5053  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5054 fi
5055
5056          ;;
5057          # Ignore everything else.
5058  esac
5059 done
5060 # restore positional arguments
5061 set X $ac_save_positional; shift
5062
5063 # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
5064 # then we insist that the "run path" must be an absolute path (i.e. it
5065 # must begin with a "/").
5066 case `(uname -sr) 2>/dev/null` in
5067   "SunOS 5"*)
5068      ac_ld_run_path=`echo $ac_f90_v_output |
5069                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
5070      test "x$ac_ld_run_path" != x &&
5071
5072        if test "$ac_compiler_gnu" = yes; then
5073  for ac_link_opt in $ac_ld_run_path; do
5074    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
5075  done
5076 else
5077  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
5078 fi
5079      ;;
5080 esac
5081 fi # test "x$F90LIBS" = "x"
5082
5083 fi
5084 echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
5085 echo "${ECHO_T}$ac_cv_flibs" >&6
5086 F90LIBS="$ac_cv_f90libs"
5087
5088 ac_ext=f90
5089 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5090 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5092
5093 echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
5094 echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
5095 if test "${ac_cv_f90_mangling+set}" = set; then
5096  echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098  ac_ext=f90
5099 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5100 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5101 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5102 cat >conftest.$ac_ext <<_ACEOF
5103 subroutine foobar()
5104 return
5105 end
5106 subroutine foo_bar()
5107 return
5108 end
5109 _ACEOF
5110 rm -f conftest.$ac_objext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5112  (eval $ac_compile) 2>&5
5113  ac_status=$?
5114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115  (exit $ac_status); } &&
5116         { ac_try='test -s conftest.$ac_objext'
5117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118  (eval $ac_try) 2>&5
5119  ac_status=$?
5120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121  (exit $ac_status); }; }; then
5122  mv conftest.$ac_objext cf90_test.$ac_objext
5123
5124  ac_ext=c
5125 ac_cpp='$CPP $CPPFLAGS'
5126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5129
5130  ac_save_LIBS=$LIBS
5131  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
5132
5133  ac_success=no
5134  for ac_foobar in foobar FOOBAR; do
5135    for ac_underscore in "" "_"; do
5136      ac_func="$ac_foobar$ac_underscore"
5137      cat >conftest.$ac_ext <<_ACEOF
5138 #line $LINENO "configure"
5139 /* confdefs.h.  */
5140 _ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h.  */
5144
5145 /* Override any gcc2 internal prototype to avoid an error.  */
5146 #ifdef __cplusplus
5147 extern "C"
5148 #endif
5149 /* We use char because int might match the return type of a gcc2
5150   builtin and then its argument prototype would still apply.  */
5151 char $ac_func ();
5152 int
5153 main ()
5154 {
5155 $ac_func ();
5156  ;
5157  return 0;
5158 }
5159 _ACEOF
5160 rm -f conftest.$ac_objext conftest$ac_exeext
5161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5162  (eval $ac_link) 2>&5
5163  ac_status=$?
5164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165  (exit $ac_status); } &&
5166         { ac_try='test -s conftest$ac_exeext'
5167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168  (eval $ac_try) 2>&5
5169  ac_status=$?
5170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171  (exit $ac_status); }; }; then
5172  ac_success=yes; break 2
5173 else
5174  echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.$ac_ext >&5
5176
5177 fi
5178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5179    done
5180  done
5181
5182  if test "$ac_success" = "yes"; then
5183     case $ac_foobar in
5184        foobar)
5185           ac_case=lower
5186           ac_foo_bar=foo_bar
5187           ;;
5188        FOOBAR)
5189           ac_case=upper
5190           ac_foo_bar=FOO_BAR
5191           ;;
5192     esac
5193
5194     ac_success_extra=no
5195     for ac_extra in "" "_"; do
5196        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
5197
5198        cat >conftest.$ac_ext <<_ACEOF
5199 #line $LINENO "configure"
5200 /* confdefs.h.  */
5201 _ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h.  */
5205
5206 /* Override any gcc2 internal prototype to avoid an error.  */
5207 #ifdef __cplusplus
5208 extern "C"
5209 #endif
5210 /* We use char because int might match the return type of a gcc2
5211   builtin and then its argument prototype would still apply.  */
5212 char $ac_func ();
5213 int
5214 main ()
5215 {
5216 $ac_func ();
5217  ;
5218  return 0;
5219 }
5220 _ACEOF
5221 rm -f conftest.$ac_objext conftest$ac_exeext
5222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5223  (eval $ac_link) 2>&5
5224  ac_status=$?
5225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226  (exit $ac_status); } &&
5227         { ac_try='test -s conftest$ac_exeext'
5228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229  (eval $ac_try) 2>&5
5230  ac_status=$?
5231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232  (exit $ac_status); }; }; then
5233  ac_success_extra=yes; break
5234 else
5235  echo "$as_me: failed program was:" >&5
5236 sed 's/^/| /' conftest.$ac_ext >&5
5237
5238 fi
5239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5240     done
5241
5242     if test "$ac_success_extra" = "yes"; then
5243        ac_cv_f90_mangling="$ac_case case"
5244        if test -z "$ac_underscore"; then
5245           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
5246        else
5247           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
5248
5249        fi
5250        if test -z "$ac_extra"; then
5251           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
5252        else
5253           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
5254        fi
5255      else
5256        ac_cv_f90_mangling="unknown"
5257      fi
5258  else
5259     ac_cv_f90_mangling="unknown"
5260
5261  fi
5262
5263  LIBS=$ac_save_LIBS
5264  ac_ext=f90
5265 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5266 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5268  rm -f cf90_test* conftest*
5269 else
5270  echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5272
5273 fi
5274 rm -f conftest.$ac_objext conftest.$ac_ext
5275 ac_ext=f90
5276 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5277 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5278 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5279
5280 fi
5281 echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
5282 echo "${ECHO_T}$ac_cv_f90_mangling" >&6
5283
5284
5285
5286 case $ac_cv_f90_mangling in
5287  "lower case, no underscore, no extra underscore")
5288          cat >>confdefs.h <<\_ACEOF
5289 #define F90_FUNC(name,NAME) name
5290 _ACEOF
5291
5292          cat >>confdefs.h <<\_ACEOF
5293 #define F90_FUNC_(name,NAME) name
5294 _ACEOF
5295 ;;
5296  "lower case, no underscore, extra underscore")
5297          cat >>confdefs.h <<\_ACEOF
5298 #define F90_FUNC(name,NAME) name
5299 _ACEOF
5300
5301          cat >>confdefs.h <<\_ACEOF
5302 #define F90_FUNC_(name,NAME) name ## _
5303 _ACEOF
5304 ;;
5305  "lower case, underscore, no extra underscore")
5306          cat >>confdefs.h <<\_ACEOF
5307 #define F90_FUNC(name,NAME) name ## _
5308 _ACEOF
5309
5310          cat >>confdefs.h <<\_ACEOF
5311 #define F90_FUNC_(name,NAME) name ## _
5312 _ACEOF
5313 ;;
5314  "lower case, underscore, extra underscore")
5315          cat >>confdefs.h <<\_ACEOF
5316 #define F90_FUNC(name,NAME) name ## _
5317 _ACEOF
5318
5319          cat >>confdefs.h <<\_ACEOF
5320 #define F90_FUNC_(name,NAME) name ## __
5321 _ACEOF
5322 ;;
5323  "upper case, no underscore, no extra underscore")
5324          cat >>confdefs.h <<\_ACEOF
5325 #define F90_FUNC(name,NAME) NAME
5326 _ACEOF
5327
5328          cat >>confdefs.h <<\_ACEOF
5329 #define F90_FUNC_(name,NAME) NAME
5330 _ACEOF
5331 ;;
5332  "upper case, no underscore, extra underscore")
5333          cat >>confdefs.h <<\_ACEOF
5334 #define F90_FUNC(name,NAME) NAME
5335 _ACEOF
5336
5337          cat >>confdefs.h <<\_ACEOF
5338 #define F90_FUNC_(name,NAME) NAME ## _
5339 _ACEOF
5340 ;;
5341  "upper case, underscore, no extra underscore")
5342          cat >>confdefs.h <<\_ACEOF
5343 #define F90_FUNC(name,NAME) NAME ## _
5344 _ACEOF
5345
5346          cat >>confdefs.h <<\_ACEOF
5347 #define F90_FUNC_(name,NAME) NAME ## _
5348 _ACEOF
5349 ;;
5350  "upper case, underscore, extra underscore")
5351          cat >>confdefs.h <<\_ACEOF
5352 #define F90_FUNC(name,NAME) NAME ## _
5353 _ACEOF
5354
5355          cat >>confdefs.h <<\_ACEOF
5356 #define F90_FUNC_(name,NAME) NAME ## __
5357 _ACEOF
5358 ;;
5359  *)
5360          { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
5361 echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
5362          ;;
5363 esac
5364
5365
5366
5367
5817   echo "$as_me:$LINENO: checking for mpi-directory" >&5
5818   echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
5819  
5820 < # Check whether --with-mpi_dir or --without-mpi_dir was given.
5821 < if test "${with_mpi_dir+set}" = set; then
5822 <  withval="$with_mpi_dir"
5820 > # Check whether --with-mpi or --without-mpi was given.
5821 > if test "${with_mpi+set}" = set; then
5822 >  withval="$with_mpi"
5823    MPI_DIR="$withval"
5824   else
5825    MPI_DIR="/usr/local"
# Line 5396 | Line 5845 | echo $ECHO_N "checking for mpi-inc-directory... $ECHO_
5845   echo "$as_me:$LINENO: checking for mpi-inc-directory" >&5
5846   echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6
5847  
5848 < # Check whether --with-mpi_inc or --without-mpi_inc was given.
5848 > # Check whether --with-mpi-inc or --without-mpi-inc was given.
5849   if test "${with_mpi_inc+set}" = set; then
5850    withval="$with_mpi_inc"
5851    MPI_INC="$withval"
# Line 5407 | Line 5856 | echo "${ECHO_T}$MPI_INC" >&6
5856   echo "${ECHO_T}$MPI_INC" >&6
5857  
5858  
5859 + echo "$as_me:$LINENO: checking for mpi.h" >&5
5860 + echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
5861 + HAVE_MPIDOTH_C="no"
5862 + echo '#include <mpi.h>' > conftest.cc
5863 + if test -z "`${CXX} -I${MPI_INC} -c conftest.cc 2>&1`"; then
5864 +  echo "$as_me:$LINENO: result: yes" >&5
5865 + echo "${ECHO_T}yes" >&6
5866 +  HAVE_MPIDOTH_C="yes"
5867 + else
5868 +  echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
5869 + echo "${ECHO_T}no! Check MPI include paths" >&6
5870 + fi
5871 + rm -f conftest*
5872  
5873 < echo "$as_me:$LINENO: checking for MPI library" >&5
5874 < echo $ECHO_N "checking for MPI library... $ECHO_C" >&6
5875 < MPI_LIB=""
5876 < case "$host" in
5877 <  *-ibm-aix*)
5878 <    echo "$as_me:$LINENO: checking whether to use signal-based MPI library" >&5
5879 < echo $ECHO_N "checking whether to use signal-based MPI library... $ECHO_C" >&6
5880 <    echo "$as_me:$LINENO: result: $PACX_SIGNAL" >&5
5881 < echo "${ECHO_T}$PACX_SIGNAL" >&6
5882 <    if test "x$PACX_SIGNAL" = "xyes" ; then
5883 <      if test -f "$MPI_LIBDIR/libmpi.a" ; then
5884 <        MPI_LIB="-lmpi"
5885 <      elif test -f "$MPI_LIBDIR/libmpi.so" ; then
5886 <        MPI_LIB="-lmpi"
5887 <      elif test -f "$MPI_LIBDIR/libmpich.a" ; then
5888 <        MPI_LIB="-lmpich"
5889 <      else
5890 <        { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5891 < echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
5892 <   { (exit 1); exit 1; }; }
5431 <      fi
5432 <    else
5433 <      if test -f "$MPI_LIBDIR/libmpi_r.a" ; then
5434 <         MPI_LIB="-lmpi_r"
5435 <      else
5436 <         { { echo "$as_me:$LINENO: error: libmpi_r not found; check path for MPI package..." >&5
5437 < echo "$as_me: error: libmpi_r not found; check path for MPI package..." >&2;}
5438 <   { (exit 1); exit 1; }; }
5439 <      fi
5440 <    fi
5441 <    echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5442 < echo "${ECHO_T}found $MPI_LIB" >&6
5443 <  ;;
5444 <  *)                             if test -f "$MPI_LIBDIR/libmpi.a" ; then
5445 <      MPI_LIB="-lmpi"
5446 <    elif test -f "$MPI_LIBDIR/libmpi.so" ; then
5447 <      MPI_LIB="-lmpi"
5448 <    elif test -f "$MPI_LIBDIR/libmpich.a" ; then
5449 <      MPI_LIB="-lmpich"
5450 <    else
5451 <      { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5452 < echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
5453 <   { (exit 1); exit 1; }; }
5454 <    fi
5455 <    echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5456 < echo "${ECHO_T}found $MPI_LIB" >&6
5457 <  ;;
5458 < esac
5873 > echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
5874 > echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
5875 > HAVE_MPIFDOTH_F90="no"
5876 > rm -f conftest*
5877 > cat >conftest.f90 <<EOF
5878 > program main
5879 >  include 'mpif.h'
5880 > end
5881 > EOF
5882 > if $F90 -I$MPI_INC -c conftest.f90 > conftest.out 2>&1 ; then
5883 >   echo "$as_me:$LINENO: result: yes" >&5
5884 > echo "${ECHO_T}yes" >&6
5885 >   MPI_F90INC="$MPI_INC"
5886 >   HAVE_MPIFDOTH_F90="yes"
5887 > else
5888 >   if test -s conftest.out ; then cat conftest.out >> config.log ; fi
5889 >   echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
5890 > echo "${ECHO_T}no! Check MPI include paths" >&6
5891 > fi
5892 > rm -f conftest*
5893  
5894  
5895 + ac_ext=c
5896 + ac_cpp='$CPP $CPPFLAGS'
5897 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5898 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5899 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
5900  
5901 + ac_save_LDFLAGS=$LDFLAGS
5902 + LDFLAGS="${LDFLAGS} -L${MPI_LIBDIR} "
5903  
5904 <
5905 <
5906 <
5907 <        for ac_prog in mpif90 hf90 mpxlf90 mpf90 mpxlf95 mpxlf_r
5467 < do
5468 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
5469 < set dummy $ac_prog; ac_word=$2
5470 < echo "$as_me:$LINENO: checking for $ac_word" >&5
5471 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5472 < if test "${ac_cv_prog_MPIF90+set}" = set; then
5904 > if test x = x"$MPI_LIB"; then
5905 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5906 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
5907 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
5908    echo $ECHO_N "(cached) $ECHO_C" >&6
5909   else
5910 <  if test -n "$MPIF90"; then
5911 <  ac_cv_prog_MPIF90="$MPIF90" # Let the user override the test.
5910 >  ac_check_lib_save_LIBS=$LIBS
5911 > LIBS="-lmpi  $LIBS"
5912 > cat >conftest.$ac_ext <<_ACEOF
5913 > /* confdefs.h.  */
5914 > _ACEOF
5915 > cat confdefs.h >>conftest.$ac_ext
5916 > cat >>conftest.$ac_ext <<_ACEOF
5917 > /* end confdefs.h.  */
5918 >
5919 > /* Override any gcc2 internal prototype to avoid an error.  */
5920 > #ifdef __cplusplus
5921 > extern "C"
5922 > #endif
5923 > /* We use char because int might match the return type of a gcc2
5924 >   builtin and then its argument prototype would still apply.  */
5925 > char MPI_Init ();
5926 > int
5927 > main ()
5928 > {
5929 > MPI_Init ();
5930 >  ;
5931 >  return 0;
5932 > }
5933 > _ACEOF
5934 > rm -f conftest.$ac_objext conftest$ac_exeext
5935 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5936 >  (eval $ac_link) 2>conftest.er1
5937 >  ac_status=$?
5938 >  grep -v '^ *+' conftest.er1 >conftest.err
5939 >  rm -f conftest.er1
5940 >  cat conftest.err >&5
5941 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 >  (exit $ac_status); } &&
5943 >         { ac_try='test -z "$ac_c_werror_flag"
5944 >                         || test ! -s conftest.err'
5945 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 >  (eval $ac_try) 2>&5
5947 >  ac_status=$?
5948 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 >  (exit $ac_status); }; } &&
5950 >         { ac_try='test -s conftest$ac_exeext'
5951 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 >  (eval $ac_try) 2>&5
5953 >  ac_status=$?
5954 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 >  (exit $ac_status); }; }; then
5956 >  ac_cv_lib_mpi_MPI_Init=yes
5957   else
5958 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 < for as_dir in $PATH
5480 < do
5481 <  IFS=$as_save_IFS
5482 <  test -z "$as_dir" && as_dir=.
5483 <  for ac_exec_ext in '' $ac_executable_extensions; do
5484 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 <    ac_cv_prog_MPIF90="$ac_prog"
5486 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 <    break 2
5488 <  fi
5489 < done
5490 < done
5958 >  echo "$as_me: failed program was:" >&5
5959 > sed 's/^/| /' conftest.$ac_ext >&5
5960  
5961 + ac_cv_lib_mpi_MPI_Init=no
5962   fi
5963 + rm -f conftest.err conftest.$ac_objext \
5964 +      conftest$ac_exeext conftest.$ac_ext
5965 + LIBS=$ac_check_lib_save_LIBS
5966   fi
5967 < MPIF90=$ac_cv_prog_MPIF90
5968 < if test -n "$MPIF90"; then
5969 <  echo "$as_me:$LINENO: result: $MPIF90" >&5
5970 < echo "${ECHO_T}$MPIF90" >&6
5498 < else
5499 <  echo "$as_me:$LINENO: result: no" >&5
5500 < echo "${ECHO_T}no" >&6
5967 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
5968 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
5969 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
5970 >  MPI_LIB="-lmpi"
5971   fi
5972  
5973 <  test -n "$MPIF90" && break
5974 < done
5975 < test -n "$MPIF90" || MPIF90="$F90"
5973 > fi
5974 > if test x = x"$MPI_LIB"; then
5975 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
5976 > echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
5977 > if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
5978 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5979 > else
5980 >  ac_check_lib_save_LIBS=$LIBS
5981 > LIBS="-lmpich  $LIBS"
5982 > cat >conftest.$ac_ext <<_ACEOF
5983 > /* confdefs.h.  */
5984 > _ACEOF
5985 > cat confdefs.h >>conftest.$ac_ext
5986 > cat >>conftest.$ac_ext <<_ACEOF
5987 > /* end confdefs.h.  */
5988  
5989 <        acx_mpi_save_F90="$F90"
5990 <        F90="$MPIF90"
5991 <
5992 <
5993 <
5994 < if test x = x"$MPILIBS"; then
5995 <        echo "$as_me:$LINENO: checking for MPI_Init" >&5
5996 < echo $ECHO_N "checking for MPI_Init... $ECHO_C" >&6
5997 <                        cat >conftest.$ac_ext <<_ACEOF
5998 <
5999 < program main
6000 <
6001 <      call MPI_Init
6002 < end program main
5521 <
5989 > /* Override any gcc2 internal prototype to avoid an error.  */
5990 > #ifdef __cplusplus
5991 > extern "C"
5992 > #endif
5993 > /* We use char because int might match the return type of a gcc2
5994 >   builtin and then its argument prototype would still apply.  */
5995 > char MPI_Init ();
5996 > int
5997 > main ()
5998 > {
5999 > MPI_Init ();
6000 >  ;
6001 >  return 0;
6002 > }
6003   _ACEOF
6004   rm -f conftest.$ac_objext conftest$ac_exeext
6005   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6006 <  (eval $ac_link) 2>&5
6006 >  (eval $ac_link) 2>conftest.er1
6007    ac_status=$?
6008 +  grep -v '^ *+' conftest.er1 >conftest.err
6009 +  rm -f conftest.er1
6010 +  cat conftest.err >&5
6011    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012    (exit $ac_status); } &&
6013 <         { ac_try='test -s conftest$ac_exeext'
6013 >         { ac_try='test -z "$ac_c_werror_flag"
6014 >                         || test ! -s conftest.err'
6015    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016    (eval $ac_try) 2>&5
6017    ac_status=$?
6018    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 +  (exit $ac_status); }; } &&
6020 +         { ac_try='test -s conftest$ac_exeext'
6021 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 +  (eval $ac_try) 2>&5
6023 +  ac_status=$?
6024 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025    (exit $ac_status); }; }; then
6026 <  MPILIBS=" "
5536 <                                echo "$as_me:$LINENO: result: yes" >&5
5537 < echo "${ECHO_T}yes" >&6
6026 >  ac_cv_lib_mpich_MPI_Init=yes
6027   else
6028    echo "$as_me: failed program was:" >&5
6029   sed 's/^/| /' conftest.$ac_ext >&5
6030  
6031 < echo "$as_me:$LINENO: result: no" >&5
5543 < echo "${ECHO_T}no" >&6
6031 > ac_cv_lib_mpich_MPI_Init=no
6032   fi
6033 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6033 > rm -f conftest.err conftest.$ac_objext \
6034 >      conftest$ac_exeext conftest.$ac_ext
6035 > LIBS=$ac_check_lib_save_LIBS
6036   fi
6037 < if test x = x"$MPILIBS"; then
6038 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
6037 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
6038 > echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
6039 > if test $ac_cv_lib_mpich_MPI_Init = yes; then
6040 >  MPI_LIB="-lmpich"
6041 > fi
6042 >
6043 > fi
6044 > $as_unset ac_cv_lib_mpi_MPI_Init
6045 > if test x = x"$MPI_LIB"; then
6046 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
6047   echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
6048   if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
6049    echo $ECHO_N "(cached) $ECHO_C" >&6
6050   else
6051    ac_check_lib_save_LIBS=$LIBS
6052 < LIBS="-lmpi  $LIBS"
6052 > LIBS="-lmpi "-llam" $LIBS"
6053   cat >conftest.$ac_ext <<_ACEOF
6054 + /* confdefs.h.  */
6055 + _ACEOF
6056 + cat confdefs.h >>conftest.$ac_ext
6057 + cat >>conftest.$ac_ext <<_ACEOF
6058 + /* end confdefs.h.  */
6059  
6060 < program main
6061 <
6062 < call MPI_Init
6063 < end program main
6064 <
6060 > /* Override any gcc2 internal prototype to avoid an error.  */
6061 > #ifdef __cplusplus
6062 > extern "C"
6063 > #endif
6064 > /* We use char because int might match the return type of a gcc2
6065 >   builtin and then its argument prototype would still apply.  */
6066 > char MPI_Init ();
6067 > int
6068 > main ()
6069 > {
6070 > MPI_Init ();
6071 >  ;
6072 >  return 0;
6073 > }
6074   _ACEOF
6075   rm -f conftest.$ac_objext conftest$ac_exeext
6076   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077 <  (eval $ac_link) 2>&5
6077 >  (eval $ac_link) 2>conftest.er1
6078    ac_status=$?
6079 +  grep -v '^ *+' conftest.er1 >conftest.err
6080 +  rm -f conftest.er1
6081 +  cat conftest.err >&5
6082    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083    (exit $ac_status); } &&
6084 <         { ac_try='test -s conftest$ac_exeext'
6084 >         { ac_try='test -z "$ac_c_werror_flag"
6085 >                         || test ! -s conftest.err'
6086    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087    (eval $ac_try) 2>&5
6088    ac_status=$?
6089    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 +  (exit $ac_status); }; } &&
6091 +         { ac_try='test -s conftest$ac_exeext'
6092 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 +  (eval $ac_try) 2>&5
6094 +  ac_status=$?
6095 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096    (exit $ac_status); }; }; then
6097    ac_cv_lib_mpi_MPI_Init=yes
6098   else
# Line 5579 | Line 6101 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
6101  
6102   ac_cv_lib_mpi_MPI_Init=no
6103   fi
6104 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6104 > rm -f conftest.err conftest.$ac_objext \
6105 >      conftest$ac_exeext conftest.$ac_ext
6106   LIBS=$ac_check_lib_save_LIBS
6107   fi
6108   echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
6109   echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
6110   if test $ac_cv_lib_mpi_MPI_Init = yes; then
6111 <  MPILIBS="-lmpi"
6111 >  MPI_LIB="-lmpi -llam"
6112   fi
6113  
6114   fi
6115 < if test x = x"$MPILIBS"; then
6116 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
6117 < echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
6118 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
6115 >
6116 > $as_unset ac_cv_lib_mpi_MPI_Init
6117 > if test x = x"$MPI_LIB"; then
6118 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
6119 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
6120 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
6121    echo $ECHO_N "(cached) $ECHO_C" >&6
6122   else
6123    ac_check_lib_save_LIBS=$LIBS
6124 < LIBS="-lmpich  $LIBS"
6124 > LIBS="-lmpi -llam -lpthread $LIBS"
6125   cat >conftest.$ac_ext <<_ACEOF
6126 + /* confdefs.h.  */
6127 + _ACEOF
6128 + cat confdefs.h >>conftest.$ac_ext
6129 + cat >>conftest.$ac_ext <<_ACEOF
6130 + /* end confdefs.h.  */
6131  
6132 < program main
6133 <
6134 < call MPI_Init
6135 < end program main
6136 <
6132 > /* Override any gcc2 internal prototype to avoid an error.  */
6133 > #ifdef __cplusplus
6134 > extern "C"
6135 > #endif
6136 > /* We use char because int might match the return type of a gcc2
6137 >   builtin and then its argument prototype would still apply.  */
6138 > char MPI_Init ();
6139 > int
6140 > main ()
6141 > {
6142 > MPI_Init ();
6143 >  ;
6144 >  return 0;
6145 > }
6146   _ACEOF
6147   rm -f conftest.$ac_objext conftest$ac_exeext
6148   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6149 <  (eval $ac_link) 2>&5
6149 >  (eval $ac_link) 2>conftest.er1
6150    ac_status=$?
6151 +  grep -v '^ *+' conftest.er1 >conftest.err
6152 +  rm -f conftest.er1
6153 +  cat conftest.err >&5
6154    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155    (exit $ac_status); } &&
6156 <         { ac_try='test -s conftest$ac_exeext'
6156 >         { ac_try='test -z "$ac_c_werror_flag"
6157 >                         || test ! -s conftest.err'
6158    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159    (eval $ac_try) 2>&5
6160    ac_status=$?
6161    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 +  (exit $ac_status); }; } &&
6163 +         { ac_try='test -s conftest$ac_exeext'
6164 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165 +  (eval $ac_try) 2>&5
6166 +  ac_status=$?
6167 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168    (exit $ac_status); }; }; then
6169 <  ac_cv_lib_mpich_MPI_Init=yes
6169 >  ac_cv_lib_mpi_MPI_Init=yes
6170   else
6171    echo "$as_me: failed program was:" >&5
6172   sed 's/^/| /' conftest.$ac_ext >&5
6173  
6174 < ac_cv_lib_mpich_MPI_Init=no
6174 > ac_cv_lib_mpi_MPI_Init=no
6175   fi
6176 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6176 > rm -f conftest.err conftest.$ac_objext \
6177 >      conftest$ac_exeext conftest.$ac_ext
6178   LIBS=$ac_check_lib_save_LIBS
6179   fi
6180 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
6181 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
6182 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
6183 <  MPILIBS="-lmpich"
6180 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
6181 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
6182 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
6183 >  MPI_LIB="-lmpi -llam -lpthread"
6184 > else
6185 >  { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
6186 > echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
6187 >   { (exit 1); exit 1; }; }
6188   fi
6189  
6190   fi
6191  
6192 + echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
6193 + echo "${ECHO_T}found $MPI_LIB" >&6
6194  
6195  
6196 < F90="$acx_mpi_save_F90"
6197 <
6198 <
6199 <
6200 < # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6201 < if test x = x"$MPILIBS"; then
6202 <
5647 <        :
6196 > echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
6197 > echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
6198 > MPI_F90LIB=""
6199 > if test -f "$MPI_LIBDIR/libfmpich.a" ; then
6200 >  MPI_F90LIB="-lfmpich"
6201 > elif test -f "$MPI_LIBDIR/liblamf77mpi.a" ; then
6202 >  MPI_F90LIB="-llamf77mpi"
6203   else
6204 +  # nothing special found, we'll assume that the C library is all we need
6205 +  MPI_F90LIB="  "
6206 + fi
6207 + echo "$as_me:$LINENO: result: found $MPI_F90LIB" >&5
6208 + echo "${ECHO_T}found $MPI_F90LIB" >&6
6209  
5650 cat >>confdefs.h <<\_ACEOF
5651 #define HAVE_MPI 1
5652 _ACEOF
6210  
5654        :
5655 fi
6211  
6212  
6213   ac_ext=c
# Line 5683 | Line 6238 | do
6238    # On the NeXT, cc -E runs the code through the compiler's parser,
6239    # not just through cpp. "Syntax error" is here to catch this case.
6240    cat >conftest.$ac_ext <<_ACEOF
5686 #line $LINENO "configure"
6241   /* confdefs.h.  */
6242   _ACEOF
6243   cat confdefs.h >>conftest.$ac_ext
# Line 5694 | Line 6248 | cat >>conftest.$ac_ext <<_ACEOF
6248   #else
6249   # include <assert.h>
6250   #endif
6251 <                     Syntax error
6251 >                     Syntax error
6252   _ACEOF
6253   if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6254    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
# Line 5706 | Line 6260 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6260    (exit $ac_status); } >/dev/null; then
6261    if test -s conftest.err; then
6262      ac_cpp_err=$ac_c_preproc_warn_flag
6263 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6264    else
6265      ac_cpp_err=
6266    fi
# Line 5726 | Line 6281 | rm -f conftest.err conftest.$ac_ext
6281    # OK, works on sane cases.  Now check whether non-existent headers
6282    # can be detected and how.
6283    cat >conftest.$ac_ext <<_ACEOF
5729 #line $LINENO "configure"
6284   /* confdefs.h.  */
6285   _ACEOF
6286   cat confdefs.h >>conftest.$ac_ext
# Line 5744 | Line 6298 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6298    (exit $ac_status); } >/dev/null; then
6299    if test -s conftest.err; then
6300      ac_cpp_err=$ac_c_preproc_warn_flag
6301 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6302    else
6303      ac_cpp_err=
6304    fi
# Line 5790 | Line 6345 | do
6345    # On the NeXT, cc -E runs the code through the compiler's parser,
6346    # not just through cpp. "Syntax error" is here to catch this case.
6347    cat >conftest.$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
6348   /* confdefs.h.  */
6349   _ACEOF
6350   cat confdefs.h >>conftest.$ac_ext
# Line 5801 | Line 6355 | cat >>conftest.$ac_ext <<_ACEOF
6355   #else
6356   # include <assert.h>
6357   #endif
6358 <                     Syntax error
6358 >                     Syntax error
6359   _ACEOF
6360   if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6361    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
# Line 5813 | Line 6367 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6367    (exit $ac_status); } >/dev/null; then
6368    if test -s conftest.err; then
6369      ac_cpp_err=$ac_c_preproc_warn_flag
6370 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6371    else
6372      ac_cpp_err=
6373    fi
# Line 5833 | Line 6388 | rm -f conftest.err conftest.$ac_ext
6388    # OK, works on sane cases.  Now check whether non-existent headers
6389    # can be detected and how.
6390    cat >conftest.$ac_ext <<_ACEOF
5836 #line $LINENO "configure"
6391   /* confdefs.h.  */
6392   _ACEOF
6393   cat confdefs.h >>conftest.$ac_ext
# Line 5851 | Line 6405 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6405    (exit $ac_status); } >/dev/null; then
6406    if test -s conftest.err; then
6407      ac_cpp_err=$ac_c_preproc_warn_flag
6408 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6409    else
6410      ac_cpp_err=
6411    fi
# Line 5911 | Line 6466 | else
6466    echo $ECHO_N "(cached) $ECHO_C" >&6
6467   else
6468    cat >conftest.$ac_ext <<_ACEOF
5914 #line $LINENO "configure"
6469   /* confdefs.h.  */
6470   _ACEOF
6471   cat confdefs.h >>conftest.$ac_ext
# Line 5932 | Line 6486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6486   _ACEOF
6487   rm -f conftest.$ac_objext
6488   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6489 <  (eval $ac_compile) 2>&5
6489 >  (eval $ac_compile) 2>conftest.er1
6490    ac_status=$?
6491 +  grep -v '^ *+' conftest.er1 >conftest.err
6492 +  rm -f conftest.er1
6493 +  cat conftest.err >&5
6494    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495    (exit $ac_status); } &&
6496 <         { ac_try='test -s conftest.$ac_objext'
6496 >         { ac_try='test -z "$ac_c_werror_flag"
6497 >                         || test ! -s conftest.err'
6498    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499    (eval $ac_try) 2>&5
6500    ac_status=$?
6501    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 +  (exit $ac_status); }; } &&
6503 +         { ac_try='test -s conftest.$ac_objext'
6504 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 +  (eval $ac_try) 2>&5
6506 +  ac_status=$?
6507 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508    (exit $ac_status); }; }; then
6509    ac_cv_header_stdc=yes
6510   else
# Line 5949 | Line 6513 | rm -f conftest.$ac_objext conftest.$ac_ext
6513  
6514   ac_cv_header_stdc=no
6515   fi
6516 < rm -f conftest.$ac_objext conftest.$ac_ext
6516 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6517  
6518   if test $ac_cv_header_stdc = yes; then
6519    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6520    cat >conftest.$ac_ext <<_ACEOF
5957 #line $LINENO "configure"
6521   /* confdefs.h.  */
6522   _ACEOF
6523   cat confdefs.h >>conftest.$ac_ext
# Line 5976 | Line 6539 | if test $ac_cv_header_stdc = yes; then
6539   if test $ac_cv_header_stdc = yes; then
6540    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6541    cat >conftest.$ac_ext <<_ACEOF
5979 #line $LINENO "configure"
6542   /* confdefs.h.  */
6543   _ACEOF
6544   cat confdefs.h >>conftest.$ac_ext
# Line 6001 | Line 6563 | else
6563    :
6564   else
6565    cat >conftest.$ac_ext <<_ACEOF
6004 #line $LINENO "configure"
6566   /* confdefs.h.  */
6567   _ACEOF
6568   cat confdefs.h >>conftest.$ac_ext
# Line 6013 | Line 6574 | cat >>conftest.$ac_ext <<_ACEOF
6574   # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6575   #else
6576   # define ISLOWER(c) \
6577 <                   (('a' <= (c) && (c) <= 'i') \
6578 <                     || ('j' <= (c) && (c) <= 'r') \
6579 <                     || ('s' <= (c) && (c) <= 'z'))
6577 >                   (('a' <= (c) && (c) <= 'i') \
6578 >                     || ('j' <= (c) && (c) <= 'r') \
6579 >                     || ('s' <= (c) && (c) <= 'z'))
6580   # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6581   #endif
6582  
# Line 6026 | Line 6587 | main ()
6587    int i;
6588    for (i = 0; i < 256; i++)
6589      if (XOR (islower (i), ISLOWER (i))
6590 <        || toupper (i) != TOUPPER (i))
6590 >        || toupper (i) != TOUPPER (i))
6591        exit(2);
6592    exit (0);
6593   }
# Line 6051 | Line 6612 | rm -f core core.* *.core gmon.out bb.out conftest$ac_e
6612   ( exit $ac_status )
6613   ac_cv_header_stdc=no
6614   fi
6615 < rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6615 > rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6616   fi
6617   fi
6618   fi
# Line 6076 | Line 6637 | for ac_header in sys/types.h sys/stat.h stdlib.h strin
6637  
6638  
6639   for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6640 <                  inttypes.h stdint.h unistd.h
6640 >                  inttypes.h stdint.h unistd.h
6641   do
6642   as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6643   echo "$as_me:$LINENO: checking for $ac_header" >&5
# Line 6085 | Line 6646 | else
6646    echo $ECHO_N "(cached) $ECHO_C" >&6
6647   else
6648    cat >conftest.$ac_ext <<_ACEOF
6088 #line $LINENO "configure"
6649   /* confdefs.h.  */
6650   _ACEOF
6651   cat confdefs.h >>conftest.$ac_ext
# Line 6097 | Line 6657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6657   _ACEOF
6658   rm -f conftest.$ac_objext
6659   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6660 <  (eval $ac_compile) 2>&5
6660 >  (eval $ac_compile) 2>conftest.er1
6661    ac_status=$?
6662 +  grep -v '^ *+' conftest.er1 >conftest.err
6663 +  rm -f conftest.er1
6664 +  cat conftest.err >&5
6665    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666    (exit $ac_status); } &&
6667 <         { ac_try='test -s conftest.$ac_objext'
6667 >         { ac_try='test -z "$ac_c_werror_flag"
6668 >                         || test ! -s conftest.err'
6669    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670    (eval $ac_try) 2>&5
6671    ac_status=$?
6672    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 +  (exit $ac_status); }; } &&
6674 +         { ac_try='test -s conftest.$ac_objext'
6675 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676 +  (eval $ac_try) 2>&5
6677 +  ac_status=$?
6678 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679    (exit $ac_status); }; }; then
6680    eval "$as_ac_Header=yes"
6681   else
# Line 6114 | Line 6684 | rm -f conftest.$ac_objext conftest.$ac_ext
6684  
6685   eval "$as_ac_Header=no"
6686   fi
6687 < rm -f conftest.$ac_objext conftest.$ac_ext
6687 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6688   fi
6689   echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6690   echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
# Line 6139 | Line 6709 | fi;
6709    sprng_prefix="/usr/local"
6710   fi;
6711  
6712 < # Check whether --with-sprng_lib_prefix or --without-sprng_lib_prefix was given.
6713 < if test "${with_sprng_lib_prefix+set}" = set; then
6714 <  withval="$with_sprng_lib_prefix"
6715 <  sprng_lib_prefix="$withval"
6712 > # Check whether --with-sprng-libdir or --without-sprng-libdir was given.
6713 > if test "${with_sprng_libdir+set}" = set; then
6714 >  withval="$with_sprng_libdir"
6715 >  sprng_libdir="$withval"
6716   else
6717 <  sprng_lib_prefix="/usr/local/lib"
6717 >  sprng_libdir="/usr/local/lib"
6718   fi;
6719  
6720 < # Check whether --with-sprng_include_prefix or --without-sprng_include_prefix was given.
6721 < if test "${with_sprng_include_prefix+set}" = set; then
6722 <  withval="$with_sprng_include_prefix"
6723 <  sprng_include_prefix="$withval"
6720 > # Check whether --with-sprng-include or --without-sprng-include was given.
6721 > if test "${with_sprng_include+set}" = set; then
6722 >  withval="$with_sprng_include"
6723 >  sprng_include="$withval"
6724   else
6725 <  sprng_include_prefix="/usr/local/include/sprng"
6725 >  sprng_include="/usr/local/include/sprng"
6726   fi;
6727  
6728 <  if test x$sprng_lib_prefix = x ; then
6729 <    sprng_lib_prefix=${sprng_prefix}/lib
6728 >  if test x$sprng_libdir = x ; then
6729 >    sprng_libdir=${sprng_prefix}/lib
6730    fi
6731  
6732 <  if test x$sprng_include_prefix = x ; then
6733 <    sprng_include_prefix=${sprng_prefix}/include
6732 >  if test x$sprng_include = x ; then
6733 >    sprng_include=${sprng_prefix}/include
6734    fi
6735  
6736 <  echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include_prefix" >&5
6737 < echo $ECHO_N "checking for SPRNG include files in $sprng_include_prefix... $ECHO_C" >&6
6738 <  if test -f ${sprng_include_prefix}/sprng.h; then
6736 >  echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include" >&5
6737 > echo $ECHO_N "checking for SPRNG include files in $sprng_include... $ECHO_C" >&6
6738 >  if test -f ${sprng_include}/sprng.h; then
6739      have_sprngincl=yes
6740      echo "$as_me:$LINENO: result: yes" >&5
6741   echo "${ECHO_T}yes" >&6
# Line 6178 | Line 6748 | echo "$as_me: error: Could not locate the SPRNG includ
6748     { (exit 1); exit 1; }; }
6749    fi
6750  
6751 <  echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_lib_prefix" >&5
6752 < echo $ECHO_N "checking for SPRNG libraries in $sprng_lib_prefix... $ECHO_C" >&6
6753 <  if test -f ${sprng_lib_prefix}/libsprng.a; then
6751 >  echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_libdir" >&5
6752 > echo $ECHO_N "checking for SPRNG libraries in $sprng_libdir... $ECHO_C" >&6
6753 >  if test -f ${sprng_libdir}/libsprng.a; then
6754      have_sprnglib=yes
6755      echo "$as_me:$LINENO: result: yes" >&5
6756   echo "${ECHO_T}yes" >&6
# Line 6202 | Line 6772 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6772   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6773  
6774    ac_save_CPPFLAGS=$CPPFLAGS
6775 <  CPPFLAGS="${CPPFLAGS} -I${sprng_include_prefix}"
6775 >  CPPFLAGS="${CPPFLAGS} -I${sprng_include}"
6776    ac_save_LDFLAGS=$LDFLAGS
6777 <  LDFLAGS="${LDFLAGS} -L${sprng_lib_prefix} -lsprng"
6777 >  LDFLAGS="${LDFLAGS} -L${sprng_libdir} -lsprng"
6778    if test "${ac_cv_header_sprng_h+set}" = set; then
6779    echo "$as_me:$LINENO: checking for sprng.h" >&5
6780   echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
# Line 6218 | Line 6788 | cat >conftest.$ac_ext <<_ACEOF
6788   echo "$as_me:$LINENO: checking sprng.h usability" >&5
6789   echo $ECHO_N "checking sprng.h usability... $ECHO_C" >&6
6790   cat >conftest.$ac_ext <<_ACEOF
6221 #line $LINENO "configure"
6791   /* confdefs.h.  */
6792   _ACEOF
6793   cat confdefs.h >>conftest.$ac_ext
# Line 6229 | Line 6798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6798   _ACEOF
6799   rm -f conftest.$ac_objext
6800   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6801 <  (eval $ac_compile) 2>&5
6801 >  (eval $ac_compile) 2>conftest.er1
6802    ac_status=$?
6803 +  grep -v '^ *+' conftest.er1 >conftest.err
6804 +  rm -f conftest.er1
6805 +  cat conftest.err >&5
6806    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807    (exit $ac_status); } &&
6808 <         { ac_try='test -s conftest.$ac_objext'
6808 >         { ac_try='test -z "$ac_c_werror_flag"
6809 >                         || test ! -s conftest.err'
6810    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811    (eval $ac_try) 2>&5
6812    ac_status=$?
6813    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 +  (exit $ac_status); }; } &&
6815 +         { ac_try='test -s conftest.$ac_objext'
6816 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 +  (eval $ac_try) 2>&5
6818 +  ac_status=$?
6819 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820    (exit $ac_status); }; }; then
6821    ac_header_compiler=yes
6822   else
# Line 6246 | Line 6825 | rm -f conftest.$ac_objext conftest.$ac_ext
6825  
6826   ac_header_compiler=no
6827   fi
6828 < rm -f conftest.$ac_objext conftest.$ac_ext
6828 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6829   echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6830   echo "${ECHO_T}$ac_header_compiler" >&6
6831  
# Line 6254 | Line 6833 | cat >conftest.$ac_ext <<_ACEOF
6833   echo "$as_me:$LINENO: checking sprng.h presence" >&5
6834   echo $ECHO_N "checking sprng.h presence... $ECHO_C" >&6
6835   cat >conftest.$ac_ext <<_ACEOF
6257 #line $LINENO "configure"
6836   /* confdefs.h.  */
6837   _ACEOF
6838   cat confdefs.h >>conftest.$ac_ext
# Line 6272 | Line 6850 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6850    (exit $ac_status); } >/dev/null; then
6851    if test -s conftest.err; then
6852      ac_cpp_err=$ac_c_preproc_warn_flag
6853 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6854    else
6855      ac_cpp_err=
6856    fi
# Line 6291 | Line 6870 | case $ac_header_compiler:$ac_header_preproc in
6870   echo "${ECHO_T}$ac_header_preproc" >&6
6871  
6872   # So?  What about this header?
6873 < case $ac_header_compiler:$ac_header_preproc in
6874 <  yes:no )
6873 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6874 >  yes:no: )
6875      { echo "$as_me:$LINENO: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&5
6876   echo "$as_me: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6877 <    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6878 < echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6879 <    (
6301 <      cat <<\_ASBOX
6302 < ## ------------------------------------ ##
6303 < ## Report this to bug-autoconf@gnu.org. ##
6304 < ## ------------------------------------ ##
6305 < _ASBOX
6306 <    ) |
6307 <      sed "s/^/$as_me: WARNING:     /" >&2
6877 >    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the compiler's result" >&5
6878 > echo "$as_me: WARNING: sprng.h: proceeding with the compiler's result" >&2;}
6879 >    ac_header_preproc=yes
6880      ;;
6881 <  no:yes )
6881 >  no:yes:* )
6882      { echo "$as_me:$LINENO: WARNING: sprng.h: present but cannot be compiled" >&5
6883   echo "$as_me: WARNING: sprng.h: present but cannot be compiled" >&2;}
6884 <    { echo "$as_me:$LINENO: WARNING: sprng.h: check for missing prerequisite headers?" >&5
6885 < echo "$as_me: WARNING: sprng.h: check for missing prerequisite headers?" >&2;}
6884 >    { echo "$as_me:$LINENO: WARNING: sprng.h:     check for missing prerequisite headers?" >&5
6885 > echo "$as_me: WARNING: sprng.h:     check for missing prerequisite headers?" >&2;}
6886 >    { echo "$as_me:$LINENO: WARNING: sprng.h: see the Autoconf documentation" >&5
6887 > echo "$as_me: WARNING: sprng.h: see the Autoconf documentation" >&2;}
6888 >    { echo "$as_me:$LINENO: WARNING: sprng.h:     section \"Present But Cannot Be Compiled\"" >&5
6889 > echo "$as_me: WARNING: sprng.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6890      { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6891   echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6892 +    { echo "$as_me:$LINENO: WARNING: sprng.h: in the future, the compiler will take precedence" >&5
6893 + echo "$as_me: WARNING: sprng.h: in the future, the compiler will take precedence" >&2;}
6894      (
6895        cat <<\_ASBOX
6896 < ## ------------------------------------ ##
6897 < ## Report this to bug-autoconf@gnu.org. ##
6898 < ## ------------------------------------ ##
6896 > ## ------------------------------ ##
6897 > ## Report this to gezelter@nd.edu ##
6898 > ## ------------------------------ ##
6899   _ASBOX
6900      ) |
6901        sed "s/^/$as_me: WARNING:     /" >&2
# Line 6344 | Line 6922 | cat >conftest.$ac_ext <<_ACEOF
6922    ac_check_lib_save_LIBS=$LIBS
6923   LIBS="-lsprng  $LIBS"
6924   cat >conftest.$ac_ext <<_ACEOF
6347 #line $LINENO "configure"
6925   /* confdefs.h.  */
6926   _ACEOF
6927   cat confdefs.h >>conftest.$ac_ext
# Line 6368 | Line 6945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6945   _ACEOF
6946   rm -f conftest.$ac_objext conftest$ac_exeext
6947   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6948 <  (eval $ac_link) 2>&5
6948 >  (eval $ac_link) 2>conftest.er1
6949    ac_status=$?
6950 +  grep -v '^ *+' conftest.er1 >conftest.err
6951 +  rm -f conftest.er1
6952 +  cat conftest.err >&5
6953    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954    (exit $ac_status); } &&
6955 <         { ac_try='test -s conftest$ac_exeext'
6955 >         { ac_try='test -z "$ac_c_werror_flag"
6956 >                         || test ! -s conftest.err'
6957    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958    (eval $ac_try) 2>&5
6959    ac_status=$?
6960    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 +  (exit $ac_status); }; } &&
6962 +         { ac_try='test -s conftest$ac_exeext'
6963 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 +  (eval $ac_try) 2>&5
6965 +  ac_status=$?
6966 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967    (exit $ac_status); }; }; then
6968    ac_cv_lib_sprng_init_rng=yes
6969   else
# Line 6385 | Line 6972 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
6972  
6973   ac_cv_lib_sprng_init_rng=no
6974   fi
6975 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6975 > rm -f conftest.err conftest.$ac_objext \
6976 >      conftest$ac_exeext conftest.$ac_ext
6977   LIBS=$ac_check_lib_save_LIBS
6978   fi
6979   echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5
6980   echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6
6981   if test $ac_cv_lib_sprng_init_rng = yes; then
6982 <  SPRNG_LIBDIR="${sprng_lib_prefix}"
6983 <                     SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include_prefix}"
6982 >  SPRNG_LIBDIR="${sprng_libdir}"
6983 >                     SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include}"
6984                       HAVE_SPRNG="yes"
6985   fi
6986  
# Line 6401 | Line 6989 | fi
6989  
6990    CPPFLAGS=$ac_save_CPPFLAGS
6991    LDFLAGS=$ac_save_LDFLAGS
6992 <  ac_ext=f90
6993 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6994 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6995 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6992 >  ac_ext=c
6993 > ac_cpp='$CPP $CPPFLAGS'
6994 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6995 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6996 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6997  
6998  
6999    if test x_$HAVE_SPRNG != x_yes; then
# Line 6425 | Line 7014 | echo "${ECHO_T}yes" >&6
7014    withval="$with_mkl"
7015       echo "$as_me:$LINENO: result: yes" >&5
7016   echo "${ECHO_T}yes" >&6
7017 <    for dir in $withval /usr/local/intel/mkl60 /opt/intel/mkl60; do
7017 >    for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do
7018          mkldir="$dir"
7019          if test -f "$dir/include/mkl.h"; then
7020              found_mkl="yes";
# Line 6465 | Line 7054 | cat >conftest.$ac_ext <<_ACEOF
7054   echo "$as_me:$LINENO: checking mkl.h usability" >&5
7055   echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6
7056   cat >conftest.$ac_ext <<_ACEOF
6468 #line $LINENO "configure"
7057   /* confdefs.h.  */
7058   _ACEOF
7059   cat confdefs.h >>conftest.$ac_ext
# Line 6476 | Line 7064 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7064   _ACEOF
7065   rm -f conftest.$ac_objext
7066   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067 <  (eval $ac_compile) 2>&5
7067 >  (eval $ac_compile) 2>conftest.er1
7068    ac_status=$?
7069 +  grep -v '^ *+' conftest.er1 >conftest.err
7070 +  rm -f conftest.er1
7071 +  cat conftest.err >&5
7072    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073    (exit $ac_status); } &&
7074 <         { ac_try='test -s conftest.$ac_objext'
7074 >         { ac_try='test -z "$ac_c_werror_flag"
7075 >                         || test ! -s conftest.err'
7076    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077    (eval $ac_try) 2>&5
7078    ac_status=$?
7079    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 +  (exit $ac_status); }; } &&
7081 +         { ac_try='test -s conftest.$ac_objext'
7082 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 +  (eval $ac_try) 2>&5
7084 +  ac_status=$?
7085 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086    (exit $ac_status); }; }; then
7087    ac_header_compiler=yes
7088   else
# Line 6493 | Line 7091 | rm -f conftest.$ac_objext conftest.$ac_ext
7091  
7092   ac_header_compiler=no
7093   fi
7094 < rm -f conftest.$ac_objext conftest.$ac_ext
7094 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7095   echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7096   echo "${ECHO_T}$ac_header_compiler" >&6
7097  
# Line 6501 | Line 7099 | cat >conftest.$ac_ext <<_ACEOF
7099   echo "$as_me:$LINENO: checking mkl.h presence" >&5
7100   echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6
7101   cat >conftest.$ac_ext <<_ACEOF
6504 #line $LINENO "configure"
7102   /* confdefs.h.  */
7103   _ACEOF
7104   cat confdefs.h >>conftest.$ac_ext
# Line 6519 | Line 7116 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
7116    (exit $ac_status); } >/dev/null; then
7117    if test -s conftest.err; then
7118      ac_cpp_err=$ac_c_preproc_warn_flag
7119 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7120    else
7121      ac_cpp_err=
7122    fi
# Line 6538 | Line 7136 | case $ac_header_compiler:$ac_header_preproc in
7136   echo "${ECHO_T}$ac_header_preproc" >&6
7137  
7138   # So?  What about this header?
7139 < case $ac_header_compiler:$ac_header_preproc in
7140 <  yes:no )
7139 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7140 >  yes:no: )
7141      { echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7142   echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7143 <    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
7144 < echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
7145 <    (
6548 <      cat <<\_ASBOX
6549 < ## ------------------------------------ ##
6550 < ## Report this to bug-autoconf@gnu.org. ##
6551 < ## ------------------------------------ ##
6552 < _ASBOX
6553 <    ) |
6554 <      sed "s/^/$as_me: WARNING:     /" >&2
7143 >    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the compiler's result" >&5
7144 > echo "$as_me: WARNING: mkl.h: proceeding with the compiler's result" >&2;}
7145 >    ac_header_preproc=yes
7146      ;;
7147 <  no:yes )
7147 >  no:yes:* )
7148      { echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5
7149   echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;}
7150 <    { echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5
7151 < echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;}
7150 >    { echo "$as_me:$LINENO: WARNING: mkl.h:     check for missing prerequisite headers?" >&5
7151 > echo "$as_me: WARNING: mkl.h:     check for missing prerequisite headers?" >&2;}
7152 >    { echo "$as_me:$LINENO: WARNING: mkl.h: see the Autoconf documentation" >&5
7153 > echo "$as_me: WARNING: mkl.h: see the Autoconf documentation" >&2;}
7154 >    { echo "$as_me:$LINENO: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&5
7155 > echo "$as_me: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7156      { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
7157   echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
7158 +    { echo "$as_me:$LINENO: WARNING: mkl.h: in the future, the compiler will take precedence" >&5
7159 + echo "$as_me: WARNING: mkl.h: in the future, the compiler will take precedence" >&2;}
7160      (
7161        cat <<\_ASBOX
7162 < ## ------------------------------------ ##
7163 < ## Report this to bug-autoconf@gnu.org. ##
7164 < ## ------------------------------------ ##
7162 > ## ------------------------------ ##
7163 > ## Report this to gezelter@nd.edu ##
7164 > ## ------------------------------ ##
7165   _ASBOX
7166      ) |
7167        sed "s/^/$as_me: WARNING:     /" >&2
# Line 6591 | Line 7188 | cat >conftest.$ac_ext <<_ACEOF
7188    ac_check_lib_save_LIBS=$LIBS
7189   LIBS="-lmkl  $LIBS"
7190   cat >conftest.$ac_ext <<_ACEOF
6594 #line $LINENO "configure"
7191   /* confdefs.h.  */
7192   _ACEOF
7193   cat confdefs.h >>conftest.$ac_ext
# Line 6615 | Line 7211 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7211   _ACEOF
7212   rm -f conftest.$ac_objext conftest$ac_exeext
7213   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7214 <  (eval $ac_link) 2>&5
7214 >  (eval $ac_link) 2>conftest.er1
7215    ac_status=$?
7216 +  grep -v '^ *+' conftest.er1 >conftest.err
7217 +  rm -f conftest.er1
7218 +  cat conftest.err >&5
7219    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220    (exit $ac_status); } &&
7221 <         { ac_try='test -s conftest$ac_exeext'
7221 >         { ac_try='test -z "$ac_c_werror_flag"
7222 >                         || test ! -s conftest.err'
7223    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224    (eval $ac_try) 2>&5
7225    ac_status=$?
7226    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 +  (exit $ac_status); }; } &&
7228 +         { ac_try='test -s conftest$ac_exeext'
7229 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7230 +  (eval $ac_try) 2>&5
7231 +  ac_status=$?
7232 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233    (exit $ac_status); }; }; then
7234    ac_cv_lib_mkl_vslNewStream=yes
7235   else
# Line 6632 | Line 7238 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
7238  
7239   ac_cv_lib_mkl_vslNewStream=no
7240   fi
7241 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7241 > rm -f conftest.err conftest.$ac_objext \
7242 >      conftest$ac_exeext conftest.$ac_ext
7243   LIBS=$ac_check_lib_save_LIBS
7244   fi
7245   echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5
# Line 6651 | Line 7258 | fi
7258  
7259    CPPFLAGS=$ac_save_CPPFLAGS
7260    LDFLAGS=$ac_save_LDFLAGS
7261 <  ac_ext=f90
7262 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
7263 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7264 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
7261 >  ac_ext=c
7262 > ac_cpp='$CPP $CPPFLAGS'
7263 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7264 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7265 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
7266  
7267  
7268    if test x_$HAVE_MKL != x_yes; then
# Line 6672 | Line 7280 | fi;
7280      echo "$as_me:$LINENO: result: no" >&5
7281   echo "${ECHO_T}no" >&6
7282  
6675 fi;
6676
6677
6678
6679
6680 # Check whether --with-mpi_f90_mods or --without-mpi_f90_mods was given.
6681 if test "${with_mpi_f90_mods+set}" = set; then
6682  withval="$with_mpi_f90_mods"
6683  mpi_f90_mods="$withval"
6684 else
6685  mpi_f90_mods="/usr/local/include/f90choice"
7283   fi;
7284  
6688  echo "$as_me:$LINENO: checking for MPI F90 modules" >&5
6689 echo $ECHO_N "checking for MPI F90 modules... $ECHO_C" >&6
7285  
7286  
6692  ac_ext=f90
6693 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6694 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6695 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
7287  
6697  ac_save_F90FLAGS=$F90FLAGS
6698  if test "$mpi_f90_mods"; then
6699  F90FLAGS="${F90FLAGS} -I${mpi_f90_mods}"
6700 fi
7288  
6702    cat >conftest.$ac_ext <<_ACEOF
6703
6704
6705 program main
6706
6707 use mpi
6708 integer :: ierr
6709 call MPI_Init(ierr)
6710
6711
6712 end program main
6713
6714 _ACEOF
6715 rm -f conftest.$ac_objext
6716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6717  (eval $ac_compile) 2>&5
6718  ac_status=$?
6719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720  (exit $ac_status); } &&
6721         { ac_try='test -s conftest.$ac_objext'
6722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723  (eval $ac_try) 2>&5
6724  ac_status=$?
6725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726  (exit $ac_status); }; }; then
6727  HAVE_MPI_MOD=1
6728 else
6729  echo "$as_me: failed program was:" >&5
6730 sed 's/^/| /' conftest.$ac_ext >&5
6731
6732 HAVE_MPI_MOD=0
6733 fi
6734 rm -f conftest.$ac_objext conftest.$ac_ext
6735
6736  F90FLAGS=$ac_save_F90FLAGS
6737  ac_ext=f90
6738 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6739 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6740 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6741
6742
6743  if test "$HAVE_MPI_MOD" = 1; then
6744    echo "$as_me:$LINENO: result: yes" >&5
6745 echo "${ECHO_T}yes" >&6
6746
6747 cat >>confdefs.h <<\_ACEOF
6748 #define MPI_MOD 1
6749 _ACEOF
6750
6751    MPI_F90_MODS="-I${mpi_f90_mods}"
6752
6753    # The library name:
6754    if test -z "$MPI_LIB" ; then
6755       MPI_LIBNAME=-lmpich
6756    else
6757       MPI_LIBNAME="$MPI_LIB"
6758    fi
6759    if test -z "$MPIMODLIBNAME" ; then
6760       MPIMODLIBNAME="${MPI_LIBNAME}f90"
6761    fi
6762
6763  else
6764    echo "$as_me:$LINENO: result: no" >&5
6765 echo "${ECHO_T}no" >&6
6766    { { echo "$as_me:$LINENO: error: Couldn't locate MPI F90 Modules" >&5
6767 echo "$as_me: error: Couldn't locate MPI F90 Modules" >&2;}
6768   { (exit 1); exit 1; }; }
6769  fi
6770
6771
6772
6773
6774
7289   OBJEXT=".$OBJEXT"
7290  
7291   OOPSE=oopse
# Line 6795 | Line 7309 | SUBDIRS="libBASS libmdtools src forceFields samples ut
7309  
7310   MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
7311  
7312 < SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder"
7312 > SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps third-party shapes"
7313  
7314 < #CFLAGS=${CFLAGS-""}
7315 < #CXXFLAGS=${CXXFLAGS-""}
7316 < #CPPFLAGS=${CPPFLAGS-""}
7317 < #FFLAGS=${FFLAGS-""}
7318 < #LDFLAGS=${LDFLAGS-""}
7319 < #OPTIMIZE=${OPTIMIZE-"-O"}
7320 < #DEBUG=${DEBUG-"-g"}
7314 > CFLAGS=${CFLAGS-""}
7315 > CXXFLAGS=${CXXFLAGS-""}
7316 > CPPFLAGS=${CPPFLAGS-""}
7317 > FFLAGS=${FFLAGS-""}
7318 > F90FLAGS=${F90FLAGS-""}
7319 > LDFLAGS=${LDFLAGS-""}
7320 > DEBUG=${DEBUG-"-g"}
7321  
7322   case $debug in
7323 <  true)
6810 <     CFLAGS="$DEBUG $CFLAGS"
6811 <     CXXFLAGS="$DEBUG $CXXFLAGS"
7323 >  1)
7324       FFLAGS="$DEBUG $FFLAGS"
7325       F90FLAGS="$DEBUG $F90FLAGS"
7326       ;;
7327    *)
6816     CFLAGS="$OPTIMIZE $CFLAGS"
6817     CXXFLAGS="$OPTIMIZE $CXXFLAGS"
6818     FFLAGS="$OPTIMIZE $FFLAGS"
6819     F90FLAGS="$OPTIMIZE $F90FLAGS"
7328       ;;
7329   esac
7330  
# Line 6838 | Line 7346 | esac
7346  
7347            ac_config_headers="$ac_config_headers libmdtools/config.h"
7348  
7349 <                                                                                                                                            ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile"
7349 >                                                                                                                                                                          ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile staticProps/Makefile third-party/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile shapes/Makefile"
7350  
7351  
7352   cat >confcache <<\_ACEOF
# Line 6869 | Line 7377 | _ACEOF
7377        # `set' does not quote correctly, so add quotes (double-quote
7378        # substitution turns \\\\ into \\, and sed turns \\ into \).
7379        sed -n \
7380 <        "s/'/'\\\\''/g;
7381 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7380 >        "s/'/'\\\\''/g;
7381 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7382        ;;
7383      *)
7384        # `set' quotes correctly as required by POSIX, so do not add quotes.
7385        sed -n \
7386 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7386 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7387        ;;
7388      esac;
7389   } |
# Line 6905 | Line 7413 | if test "x$srcdir" = x.; then
7413   # trailing colons and then remove the whole line if VPATH becomes empty
7414   # (actually we leave an empty line to preserve line numbers).
7415   if test "x$srcdir" = x.; then
7416 <  ac_vpsub='/^[         ]*VPATH[        ]*=/{
7416 >  ac_vpsub='/^[  ]*VPATH[        ]*=/{
7417   s/:*\$(srcdir):*/:/;
7418   s/:*\${srcdir}:*/:/;
7419   s/:*@srcdir@:*/:/;
7420 < s/^\([^=]*=[    ]*\):*/\1/;
7420 > s/^\([^=]*=[     ]*\):*/\1/;
7421   s/:*$//;
7422 < s/^[^=]*=[      ]*$//;
7422 > s/^[^=]*=[       ]*$//;
7423   }'
7424   fi
7425  
# Line 6922 | Line 7430 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && conti
7430   for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7431    # 1. Remove the extension, and $U if already installed.
7432    ac_i=`echo "$ac_i" |
7433 <         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7433 >         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7434    # 2. Add them.
7435    ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7436    ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
# Line 6966 | Line 7474 | fi
7474   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7475    set -o posix
7476   fi
7477 + DUALCASE=1; export DUALCASE # for MKS sh
7478  
7479   # Support unset when possible.
7480 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7480 > if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7481    as_unset=unset
7482   else
7483    as_unset=false
# Line 6987 | Line 7496 | do
7496    LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7497    LC_TELEPHONE LC_TIME
7498   do
7499 <  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7499 >  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7500      eval $as_var=C; export $as_var
7501    else
7502      $as_unset $as_var
# Line 7166 | Line 7675 | else
7675   if mkdir -p . 2>/dev/null; then
7676    as_mkdir_p=:
7677   else
7678 +  test -d ./-p && rmdir ./-p
7679    as_mkdir_p=false
7680   fi
7681  
7682   as_executable_p="test -f"
7683  
7684   # Sed expression to map a string onto a valid CPP name.
7685 < as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7685 > as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7686  
7687   # Sed expression to map a string onto a valid variable name.
7688 < as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7688 > as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7689  
7690  
7691   # IFS
# Line 7202 | Line 7712 | generated by GNU Autoconf 2.57.  Invocation command li
7712   cat >&5 <<_CSEOF
7713  
7714   This file was extended by OOPSE $as_me 1.0, which was
7715 < generated by GNU Autoconf 2.57.  Invocation command line was
7715 > generated by GNU Autoconf 2.59.  Invocation command line was
7716  
7717    CONFIG_FILES    = $CONFIG_FILES
7718    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 7246 | Line 7756 | Usage: $0 [OPTIONS] [FILE]...
7756    -d, --debug      don't remove temporary files
7757        --recheck    update $as_me by reconfiguring in the same conditions
7758    --file=FILE[:TEMPLATE]
7759 <                   instantiate the configuration file FILE
7759 >                   instantiate the configuration file FILE
7760    --header=FILE[:TEMPLATE]
7761 <                   instantiate the configuration header FILE
7761 >                   instantiate the configuration header FILE
7762  
7763   Configuration files:
7764   $config_files
# Line 7262 | Line 7772 | configured by $0, generated by GNU Autoconf 2.57,
7772   cat >>$CONFIG_STATUS <<_ACEOF
7773   ac_cs_version="\\
7774   OOPSE config.status 1.0
7775 < configured by $0, generated by GNU Autoconf 2.57,
7775 > configured by $0, generated by GNU Autoconf 2.59,
7776    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7777  
7778 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7269 < Free Software Foundation, Inc.
7778 > Copyright (C) 2003 Free Software Foundation, Inc.
7779   This config.status script is free software; the Free Software Foundation
7780   gives unlimited permission to copy, distribute and modify it."
7781   srcdir=$srcdir
# Line 7373 | Line 7882 | do
7882    "utils/sysbuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;;
7883    "forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
7884    "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
7885 +  "staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;;
7886 +  "third-party/Makefile" ) CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
7887    "samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
7888    "samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
7889    "samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
7890    "samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;;
7891    "samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;;
7892    "samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;;
7893 +  "shapes/Makefile" ) CONFIG_FILES="$CONFIG_FILES shapes/Makefile" ;;
7894    "libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;;
7895    *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7896   echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
# Line 7465 | Line 7977 | s,@DEBUG@,$DEBUG,;t t
7977   s,@ECHO_T@,$ECHO_T,;t t
7978   s,@LIBS@,$LIBS,;t t
7979   s,@PROGNAME@,$PROGNAME,;t t
7980 < s,@DEBUG@,$DEBUG,;t t
7980 > s,@debug@,$debug,;t t
7981   s,@build@,$build,;t t
7982   s,@build_cpu@,$build_cpu,;t t
7983   s,@build_vendor@,$build_vendor,;t t
# Line 7484 | Line 7996 | s,@F90@,$F90,;t t
7996   s,@CXX@,$CXX,;t t
7997   s,@CXXFLAGS@,$CXXFLAGS,;t t
7998   s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7999 + s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
8000 + s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
8001   s,@F90@,$F90,;t t
8002   s,@F90FLAGS@,$F90FLAGS,;t t
8003   s,@ac_ct_F90@,$ac_ct_F90,;t t
8004   s,@PREPFLAG@,$PREPFLAG,;t t
8005   s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
8006 + s,@F90LIBS@,$F90LIBS,;t t
8007 + s,@F90_FUNC@,$F90_FUNC,;t t
8008 + s,@F90_FUNC_@,$F90_FUNC_,;t t
8009 + s,@MOD@,$MOD,;t t
8010 + s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
8011 + s,@MODDIRFLAG@,$MODDIRFLAG,;t t
8012 + s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
8013   s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8014   s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8015   s,@INSTALL_DATA@,$INSTALL_DATA,;t t
# Line 7501 | Line 8022 | s,@F90LIBS@,$F90LIBS,;t t
8022   s,@LEXLIB@,$LEXLIB,;t t
8023   s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
8024   s,@AR@,$AR,;t t
8025 < s,@F90LIBS@,$F90LIBS,;t t
7505 < s,@F90_FUNC@,$F90_FUNC,;t t
7506 < s,@F90_FUNC_@,$F90_FUNC_,;t t
7507 < s,@mpi_dir@,$mpi_dir,;t t
8025 > s,@mpi@,$mpi,;t t
8026   s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t
8027   s,@MPI_INC@,$MPI_INC,;t t
8028 + s,@MPI_F90INC@,$MPI_F90INC,;t t
8029   s,@MPI_LIB@,$MPI_LIB,;t t
8030 < s,@MPIF77@,$MPIF77,;t t
7512 < s,@MPIF90@,$MPIF90,;t t
7513 < s,@MPILIBS@,$MPILIBS,;t t
8030 > s,@MPI_F90LIB@,$MPI_F90LIB,;t t
8031   s,@CPP@,$CPP,;t t
8032   s,@EGREP@,$EGREP,;t t
8033   s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t
# Line 7521 | Line 8038 | s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
8038   s,@MKL_LIB@,$MKL_LIB,;t t
8039   s,@MKL_INC@,$MKL_INC,;t t
8040   s,@HAVE_MKL@,$HAVE_MKL,;t t
7524 s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
7525 s,@MPIMODLIBNAME@,$MPIMODLIBNAME,;t t
8041   s,@BATEXT@,$BATEXT,;t t
8042   s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8043   s,@OOPSE@,$OOPSE,;t t
# Line 7560 | Line 8075 | _ACEOF
8075        (echo ':t
8076    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8077        if test -z "$ac_sed_cmds"; then
8078 <        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8078 >        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8079        else
8080 <        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8080 >        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8081        fi
8082        ac_sed_frag=`expr $ac_sed_frag + 1`
8083        ac_beg=$ac_end
# Line 7580 | Line 8095 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" =
8095    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8096    case $ac_file in
8097    - | *:- | *:-:* ) # input from stdin
8098 <        cat >$tmp/stdin
8099 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8100 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8098 >        cat >$tmp/stdin
8099 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8100 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8101    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8102 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8102 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8103    * )   ac_file_in=$ac_file.in ;;
8104    esac
8105  
8106    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8107    ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8108   $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8109 <         X"$ac_file" : 'X\(//\)[^/]' \| \
8110 <         X"$ac_file" : 'X\(//\)$' \| \
8111 <         X"$ac_file" : 'X\(/\)' \| \
8112 <         .     : '\(.\)' 2>/dev/null ||
8109 >         X"$ac_file" : 'X\(//\)[^/]' \| \
8110 >         X"$ac_file" : 'X\(//\)$' \| \
8111 >         X"$ac_file" : 'X\(/\)' \| \
8112 >         .     : '\(.\)' 2>/dev/null ||
8113   echo X"$ac_file" |
8114      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8115            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
# Line 7610 | Line 8125 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \|
8125        as_dirs="$as_dir $as_dirs"
8126        as_dir=`(dirname "$as_dir") 2>/dev/null ||
8127   $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8128 <         X"$as_dir" : 'X\(//\)[^/]' \| \
8129 <         X"$as_dir" : 'X\(//\)$' \| \
8130 <         X"$as_dir" : 'X\(/\)' \| \
8131 <         .     : '\(.\)' 2>/dev/null ||
8128 >         X"$as_dir" : 'X\(//\)[^/]' \| \
8129 >         X"$as_dir" : 'X\(//\)$' \| \
8130 >         X"$as_dir" : 'X\(/\)' \| \
8131 >         .     : '\(.\)' 2>/dev/null ||
8132   echo X"$as_dir" |
8133      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8134            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
# Line 7651 | Line 8166 | esac
8166      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8167      ac_top_srcdir=$ac_top_builddir$srcdir ;;
8168   esac
8169 < # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8170 < # absolute.
8171 < ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8172 < ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8173 < ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8174 < ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8169 >
8170 > # Do not use `cd foo && pwd` to compute absolute paths, because
8171 > # the directories may not exist.
8172 > case `pwd` in
8173 > .) ac_abs_builddir="$ac_dir";;
8174 > *)
8175 >  case "$ac_dir" in
8176 >  .) ac_abs_builddir=`pwd`;;
8177 >  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8178 >  *) ac_abs_builddir=`pwd`/"$ac_dir";;
8179 >  esac;;
8180 > esac
8181 > case $ac_abs_builddir in
8182 > .) ac_abs_top_builddir=${ac_top_builddir}.;;
8183 > *)
8184 >  case ${ac_top_builddir}. in
8185 >  .) ac_abs_top_builddir=$ac_abs_builddir;;
8186 >  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8187 >  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8188 >  esac;;
8189 > esac
8190 > case $ac_abs_builddir in
8191 > .) ac_abs_srcdir=$ac_srcdir;;
8192 > *)
8193 >  case $ac_srcdir in
8194 >  .) ac_abs_srcdir=$ac_abs_builddir;;
8195 >  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8196 >  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8197 >  esac;;
8198 > esac
8199 > case $ac_abs_builddir in
8200 > .) ac_abs_top_srcdir=$ac_top_srcdir;;
8201 > *)
8202 >  case $ac_top_srcdir in
8203 >  .) ac_abs_top_srcdir=$ac_abs_builddir;;
8204 >  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8205 >  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8206 >  esac;;
8207 > esac
8208  
8209  
8210    case $INSTALL in
# Line 7678 | Line 8226 | echo "$as_me: creating $ac_file" >&6;}
8226      configure_input="$ac_file.  "
8227    fi
8228    configure_input=$configure_input"Generated from `echo $ac_file_in |
8229 <                                     sed 's,.*/,,'` by configure."
8229 >                                     sed 's,.*/,,'` by configure."
8230  
8231    # First look for the input files in the build tree, otherwise in the
8232    # src tree.
# Line 7687 | Line 8235 | echo "$as_me: creating $ac_file" >&6;}
8235        case $f in
8236        -) echo $tmp/stdin ;;
8237        [\\/$]*)
8238 <         # Absolute (can't be DOS-style, as IFS=:)
8239 <         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8238 >         # Absolute (can't be DOS-style, as IFS=:)
8239 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8240   echo "$as_me: error: cannot find input file: $f" >&2;}
8241     { (exit 1); exit 1; }; }
8242 <         echo $f;;
8242 >         echo "$f";;
8243        *) # Relative
8244 <         if test -f "$f"; then
8245 <           # Build tree
8246 <           echo $f
8247 <         elif test -f "$srcdir/$f"; then
8248 <           # Source tree
8249 <           echo $srcdir/$f
8250 <         else
8251 <           # /dev/null tree
8252 <           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8244 >         if test -f "$f"; then
8245 >           # Build tree
8246 >           echo "$f"
8247 >         elif test -f "$srcdir/$f"; then
8248 >           # Source tree
8249 >           echo "$srcdir/$f"
8250 >         else
8251 >           # /dev/null tree
8252 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8253   echo "$as_me: error: cannot find input file: $f" >&2;}
8254     { (exit 1); exit 1; }; }
8255 <         fi;;
8255 >         fi;;
8256        esac
8257      done` || { (exit 1); exit 1; }
8258   _ACEOF
# Line 7746 | Line 8294 | ac_dA='s,^\([  ]*\)#\([        ]*define[       ][      ]*\)'
8294   # NAME is the cpp macro being defined and VALUE is the value it is being given.
8295   #
8296   # ac_d sets the value in "#define NAME VALUE" lines.
8297 < ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
8298 < ac_dB='[        ].*$,\1#\2'
8297 > ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8298 > ac_dB='[         ].*$,\1#\2'
8299   ac_dC=' '
8300   ac_dD=',;t'
8301   # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8302 < ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8302 > ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8303   ac_uB='$,\1#\2define\3'
8304   ac_uC=' '
8305   ac_uD=',;t'
# Line 7760 | Line 8308 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file"
8308    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8309    case $ac_file in
8310    - | *:- | *:-:* ) # input from stdin
8311 <        cat >$tmp/stdin
8312 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8313 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8311 >        cat >$tmp/stdin
8312 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8313 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8314    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8315 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8315 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8316    * )   ac_file_in=$ac_file.in ;;
8317    esac
8318  
# Line 7778 | Line 8326 | echo "$as_me: creating $ac_file" >&6;}
8326        case $f in
8327        -) echo $tmp/stdin ;;
8328        [\\/$]*)
8329 <         # Absolute (can't be DOS-style, as IFS=:)
8330 <         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8329 >         # Absolute (can't be DOS-style, as IFS=:)
8330 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8331   echo "$as_me: error: cannot find input file: $f" >&2;}
8332     { (exit 1); exit 1; }; }
8333 <         echo $f;;
8333 >         # Do quote $f, to prevent DOS paths from being IFS'd.
8334 >         echo "$f";;
8335        *) # Relative
8336 <         if test -f "$f"; then
8337 <           # Build tree
8338 <           echo $f
8339 <         elif test -f "$srcdir/$f"; then
8340 <           # Source tree
8341 <           echo $srcdir/$f
8342 <         else
8343 <           # /dev/null tree
8344 <           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8336 >         if test -f "$f"; then
8337 >           # Build tree
8338 >           echo "$f"
8339 >         elif test -f "$srcdir/$f"; then
8340 >           # Source tree
8341 >           echo "$srcdir/$f"
8342 >         else
8343 >           # /dev/null tree
8344 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8345   echo "$as_me: error: cannot find input file: $f" >&2;}
8346     { (exit 1); exit 1; }; }
8347 <         fi;;
8347 >         fi;;
8348        esac
8349      done` || { (exit 1); exit 1; }
8350    # Remove the trailing spaces.
8351 <  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
8351 >  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8352  
8353   _ACEOF
8354  
# Line 7822 | Line 8371 | s,^[   ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*
8371   s,[\\$`],\\&,g
8372   t clear
8373   : clear
8374 < s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8374 > s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8375   t end
8376 < s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8376 > s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8377   : end
8378   _ACEOF
8379   # If some macros were called several times there might be several times
# Line 7838 | Line 8387 | s,^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/*
8387   # example, in the case of _POSIX_SOURCE, which is predefined and required
8388   # on some systems where configure will not decide to define it.
8389   cat >>conftest.undefs <<\_ACEOF
8390 < s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8390 > s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8391   _ACEOF
8392  
8393   # Break up conftest.defines because some shells have a limit on the size
8394   # of here documents, and old seds have small limits too (100 cmds).
8395   echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8396 < echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8396 > echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8397   echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8398   echo '  :' >>$CONFIG_STATUS
8399   rm -f conftest.tail
# Line 7853 | Line 8402 | do
8402    # Write a limited-size here document to $tmp/defines.sed.
8403    echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8404    # Speed up: don't consider the non `#define' lines.
8405 <  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
8405 >  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8406    # Work around the forget-to-reset-the-flag bug.
8407    echo 't clr' >>$CONFIG_STATUS
8408    echo ': clr' >>$CONFIG_STATUS
# Line 7880 | Line 8429 | do
8429    # Write a limited-size here document to $tmp/undefs.sed.
8430    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8431    # Speed up: don't consider the non `#undef'
8432 <  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8432 >  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8433    # Work around the forget-to-reset-the-flag bug.
8434    echo 't clr' >>$CONFIG_STATUS
8435    echo ': clr' >>$CONFIG_STATUS
# Line 7914 | Line 8463 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \|
8463      else
8464        ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8465   $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8466 <         X"$ac_file" : 'X\(//\)[^/]' \| \
8467 <         X"$ac_file" : 'X\(//\)$' \| \
8468 <         X"$ac_file" : 'X\(/\)' \| \
8469 <         .     : '\(.\)' 2>/dev/null ||
8466 >         X"$ac_file" : 'X\(//\)[^/]' \| \
8467 >         X"$ac_file" : 'X\(//\)$' \| \
8468 >         X"$ac_file" : 'X\(/\)' \| \
8469 >         .     : '\(.\)' 2>/dev/null ||
8470   echo X"$ac_file" |
8471      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8472            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
# Line 7933 | Line 8482 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \|
8482        as_dirs="$as_dir $as_dirs"
8483        as_dir=`(dirname "$as_dir") 2>/dev/null ||
8484   $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8485 <         X"$as_dir" : 'X\(//\)[^/]' \| \
8486 <         X"$as_dir" : 'X\(//\)$' \| \
8487 <         X"$as_dir" : 'X\(/\)' \| \
8488 <         .     : '\(.\)' 2>/dev/null ||
8485 >         X"$as_dir" : 'X\(//\)[^/]' \| \
8486 >         X"$as_dir" : 'X\(//\)$' \| \
8487 >         X"$as_dir" : 'X\(/\)' \| \
8488 >         .     : '\(.\)' 2>/dev/null ||
8489   echo X"$as_dir" |
8490      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8491            /^X\(\/\/\)[^/].*/{ s//\1/; q; }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines