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 826 by gezelter, Mon Oct 27 23:00:59 2003 UTC vs.
Revision 1238 by gezelter, Fri Jun 4 14:59:17 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_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC 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_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI 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
878 <  --with-mpi-libdir=dir  give the path for MPI-libraries MPI_DIR/lib
879 <  --with-mpi_inc=dir  give the path for MPI-include-files MPI_DIR/include
874 >  --with-mpi=<prefix>     compile with MPI libraries in <prefix> [default=no]
875    --with-sprng_prefix=PREFIX
876                            Prefix where SPRNG is installed
877    --with-sprng-libdir=PREFIX  SPRNG library directory
878    --with-sprng-include=PREFIX
879                            SPRNG include directory
880 <  --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
880 >  --with-mkl              Do we want MKL will check /usr/local/intel/mkl61 /opt/intel/mkl61
881  
882   Some influential environment variables:
883    CC          C compiler command
# Line 897 | Line 890 | Some influential environment variables:
890    CXXFLAGS    C++ compiler flags
891    F90         Fortran 90 compiler command
892    F90FLAGS    Fortran 90 compiler flags
900  MPIF77      MPI Fortran compiler command
893    CPP         C preprocessor
894  
895   Use these variables to override the choices made by `configure' or to help
# Line 937 | Line 929 | esac
929      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
930      ac_top_srcdir=$ac_top_builddir$srcdir ;;
931   esac
940 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
941 # absolute.
942 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
943 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
944 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
945 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
932  
933 + # Do not use `cd foo && pwd` to compute absolute paths, because
934 + # the directories may not exist.
935 + case `pwd` in
936 + .) ac_abs_builddir="$ac_dir";;
937 + *)
938 +  case "$ac_dir" in
939 +  .) ac_abs_builddir=`pwd`;;
940 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
941 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
942 +  esac;;
943 + esac
944 + case $ac_abs_builddir in
945 + .) ac_abs_top_builddir=${ac_top_builddir}.;;
946 + *)
947 +  case ${ac_top_builddir}. in
948 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
949 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
950 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
951 +  esac;;
952 + esac
953 + case $ac_abs_builddir in
954 + .) ac_abs_srcdir=$ac_srcdir;;
955 + *)
956 +  case $ac_srcdir in
957 +  .) ac_abs_srcdir=$ac_abs_builddir;;
958 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
959 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
960 +  esac;;
961 + esac
962 + case $ac_abs_builddir in
963 + .) ac_abs_top_srcdir=$ac_top_srcdir;;
964 + *)
965 +  case $ac_top_srcdir in
966 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
967 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
968 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 +  esac;;
970 + esac
971 +
972      cd $ac_dir
973      # Check for guested configure; otherwise get Cygnus style configure.
974      if test -f $ac_srcdir/configure.gnu; then
# Line 953 | Line 978 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir &
978        echo
979        $SHELL $ac_srcdir/configure  --help=recursive
980      elif test -f $ac_srcdir/configure.ac ||
981 <           test -f $ac_srcdir/configure.in; then
981 >           test -f $ac_srcdir/configure.in; then
982        echo
983        $ac_configure --help
984      else
# Line 967 | Line 992 | generated by GNU Autoconf 2.57
992   if $ac_init_version; then
993    cat <<\_ACEOF
994   OOPSE configure 1.0
995 < generated by GNU Autoconf 2.57
995 > generated by GNU Autoconf 2.59
996  
997 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
973 < Free Software Foundation, Inc.
997 > Copyright (C) 2003 Free Software Foundation, Inc.
998   This configure script is free software; the Free Software Foundation
999   gives unlimited permission to copy, distribute and modify it.
1000   _ACEOF
# Line 982 | Line 1006 | generated by GNU Autoconf 2.57.  Invocation command li
1006   running configure, to aid debugging if configure makes a mistake.
1007  
1008   It was created by OOPSE $as_me 1.0, which was
1009 < generated by GNU Autoconf 2.57.  Invocation command line was
1009 > generated by GNU Autoconf 2.59.  Invocation command line was
1010  
1011    $ $0 $@
1012  
# Line 1059 | Line 1083 | do
1083      2)
1084        ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085        if test $ac_must_keep_next = true; then
1086 <        ac_must_keep_next=false # Got value, back to normal.
1086 >        ac_must_keep_next=false # Got value, back to normal.
1087        else
1088 <        case $ac_arg in
1089 <          *=* | --config-cache | -C | -disable-* | --disable-* \
1090 <          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 <          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 <          | -with-* | --with-* | -without-* | --without-* | --x)
1093 <            case "$ac_configure_args0 " in
1094 <              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 <            esac
1096 <            ;;
1097 <          -* ) ac_must_keep_next=true ;;
1098 <        esac
1088 >        case $ac_arg in
1089 >          *=* | --config-cache | -C | -disable-* | --disable-* \
1090 >          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 >          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 >          | -with-* | --with-* | -without-* | --without-* | --x)
1093 >            case "$ac_configure_args0 " in
1094 >              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095 >            esac
1096 >            ;;
1097 >          -* ) ac_must_keep_next=true ;;
1098 >        esac
1099        fi
1100        ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101        # Get rid of the leading space.
# Line 1105 | Line 1129 | _ASBOX
1129      case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130      *ac_space=\ *)
1131        sed -n \
1132 <        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 >        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134        ;;
1135      *)
1136        sed -n \
1137 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138        ;;
1139      esac;
1140   }
# Line 1139 | Line 1163 | _ASBOX
1163        for ac_var in $ac_subst_files
1164        do
1165          eval ac_val=$`echo $ac_var`
1166 <        echo "$ac_var='"'"'$ac_val'"'"'"
1166 >        echo "$ac_var='"'"'$ac_val'"'"'"
1167        done | sort
1168        echo
1169      fi
# Line 1158 | Line 1182 | _ASBOX
1182        echo "$as_me: caught signal $ac_signal"
1183      echo "$as_me: exit $exit_status"
1184    } >&5
1185 <  rm -f core core.* *.core &&
1185 >  rm -f core *.core &&
1186    rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187      exit $exit_status
1188       ' 0
# Line 1238 | Line 1262 | for ac_var in `(set) 2>&1 |
1262   # value.
1263   ac_cache_corrupted=false
1264   for ac_var in `(set) 2>&1 |
1265 <               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1265 >               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266    eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267    eval ac_new_set=\$ac_env_${ac_var}_set
1268    eval ac_old_val="\$ac_cv_env_${ac_var}_value"
# Line 1255 | Line 1279 | echo "$as_me: error: \`$ac_var' was not set in the pre
1279      ,);;
1280      *)
1281        if test "x$ac_old_val" != "x$ac_new_val"; then
1282 <        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1282 >        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283   echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284 <        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1284 >        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1285   echo "$as_me:   former value:  $ac_old_val" >&2;}
1286 <        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1286 >        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1287   echo "$as_me:   current value: $ac_new_val" >&2;}
1288 <        ac_cache_corrupted=:
1288 >        ac_cache_corrupted=:
1289        fi;;
1290    esac
1291    # Pass precious variables to config.status.
# Line 1792 | Line 1816 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1816   # $SHELLVAR to the Fortran 95 mangled name.  If the SHELLVAR
1817   # argument is not supplied, it defaults to NAME.
1818   # AC_F95_FUNC
1819 +
1820 +
1821 +
1822 +
1823 +
1824 +
1825  
1826  
1827  
# Line 1836 | Line 1866 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1866  
1867  
1868  
1869 +
1870   # set program name
1871   PROGNAME="oopse"
1872  
# Line 2034 | Line 2065 | cat >conftest.$ac_ext <<_ACEOF
2065    (exit $ac_status); }
2066  
2067   cat >conftest.$ac_ext <<_ACEOF
2037 #line $LINENO "configure"
2068   /* confdefs.h.  */
2069   _ACEOF
2070   cat confdefs.h >>conftest.$ac_ext
# Line 2054 | Line 2084 | echo "$as_me:$LINENO: checking for C compiler default
2084   # Try to create an executable without -o first, disregard a.out.
2085   # It will help us diagnose broken compilers, and finding out an intuition
2086   # of exeext.
2087 < echo "$as_me:$LINENO: checking for C compiler default output" >&5
2088 < echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2087 > echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2088 > echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2089   ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2090   if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2091    (eval $ac_link_default) 2>&5
# Line 2075 | Line 2105 | do
2105    test -f "$ac_file" || continue
2106    case $ac_file in
2107      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2108 <        ;;
2108 >        ;;
2109      conftest.$ac_ext )
2110 <        # This is the source file.
2111 <        ;;
2110 >        # This is the source file.
2111 >        ;;
2112      [ab].out )
2113 <        # We found the default executable, but exeext='' is most
2114 <        # certainly right.
2115 <        break;;
2113 >        # We found the default executable, but exeext='' is most
2114 >        # certainly right.
2115 >        break;;
2116      *.* )
2117 <        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2118 <        # FIXME: I believe we export ac_cv_exeext for Libtool,
2119 <        # but it would be cool to find out if it's true.  Does anybody
2120 <        # maintain Libtool? --akim.
2121 <        export ac_cv_exeext
2122 <        break;;
2117 >        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2118 >        # FIXME: I believe we export ac_cv_exeext for Libtool,
2119 >        # but it would be cool to find out if it's true.  Does anybody
2120 >        # maintain Libtool? --akim.
2121 >        export ac_cv_exeext
2122 >        break;;
2123      * )
2124 <        break;;
2124 >        break;;
2125    esac
2126   done
2127   else
# Line 2165 | Line 2195 | for ac_file in conftest.exe conftest conftest.*; do
2195    case $ac_file in
2196      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2197      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198 <          export ac_cv_exeext
2199 <          break;;
2198 >          export ac_cv_exeext
2199 >          break;;
2200      * ) break;;
2201    esac
2202   done
# Line 2191 | Line 2221 | else
2221    echo $ECHO_N "(cached) $ECHO_C" >&6
2222   else
2223    cat >conftest.$ac_ext <<_ACEOF
2194 #line $LINENO "configure"
2224   /* confdefs.h.  */
2225   _ACEOF
2226   cat confdefs.h >>conftest.$ac_ext
# Line 2242 | Line 2271 | else
2271    echo $ECHO_N "(cached) $ECHO_C" >&6
2272   else
2273    cat >conftest.$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2274   /* confdefs.h.  */
2275   _ACEOF
2276   cat confdefs.h >>conftest.$ac_ext
# Line 2262 | Line 2290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290   _ACEOF
2291   rm -f conftest.$ac_objext
2292   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293 <  (eval $ac_compile) 2>&5
2293 >  (eval $ac_compile) 2>conftest.er1
2294    ac_status=$?
2295 +  grep -v '^ *+' conftest.er1 >conftest.err
2296 +  rm -f conftest.er1
2297 +  cat conftest.err >&5
2298    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299    (exit $ac_status); } &&
2300 <         { ac_try='test -s conftest.$ac_objext'
2300 >         { ac_try='test -z "$ac_c_werror_flag"
2301 >                         || test ! -s conftest.err'
2302    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303    (eval $ac_try) 2>&5
2304    ac_status=$?
2305    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 +  (exit $ac_status); }; } &&
2307 +         { ac_try='test -s conftest.$ac_objext'
2308 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309 +  (eval $ac_try) 2>&5
2310 +  ac_status=$?
2311 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312    (exit $ac_status); }; }; then
2313    ac_compiler_gnu=yes
2314   else
# Line 2279 | Line 2317 | rm -f conftest.$ac_objext conftest.$ac_ext
2317  
2318   ac_compiler_gnu=no
2319   fi
2320 < rm -f conftest.$ac_objext conftest.$ac_ext
2320 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2321   ac_cv_c_compiler_gnu=$ac_compiler_gnu
2322  
2323   fi
# Line 2295 | Line 2333 | else
2333    echo $ECHO_N "(cached) $ECHO_C" >&6
2334   else
2335    cat >conftest.$ac_ext <<_ACEOF
2298 #line $LINENO "configure"
2336   /* confdefs.h.  */
2337   _ACEOF
2338   cat confdefs.h >>conftest.$ac_ext
# Line 2312 | Line 2349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349   _ACEOF
2350   rm -f conftest.$ac_objext
2351   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 <  (eval $ac_compile) 2>&5
2352 >  (eval $ac_compile) 2>conftest.er1
2353    ac_status=$?
2354 +  grep -v '^ *+' conftest.er1 >conftest.err
2355 +  rm -f conftest.er1
2356 +  cat conftest.err >&5
2357    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358    (exit $ac_status); } &&
2359 <         { ac_try='test -s conftest.$ac_objext'
2359 >         { ac_try='test -z "$ac_c_werror_flag"
2360 >                         || test ! -s conftest.err'
2361    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362    (eval $ac_try) 2>&5
2363    ac_status=$?
2364    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 +  (exit $ac_status); }; } &&
2366 +         { ac_try='test -s conftest.$ac_objext'
2367 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 +  (eval $ac_try) 2>&5
2369 +  ac_status=$?
2370 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371    (exit $ac_status); }; }; then
2372    ac_cv_prog_cc_g=yes
2373   else
# Line 2329 | Line 2376 | rm -f conftest.$ac_objext conftest.$ac_ext
2376  
2377   ac_cv_prog_cc_g=no
2378   fi
2379 < rm -f conftest.$ac_objext conftest.$ac_ext
2379 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2380   fi
2381   echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2382   echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
# Line 2356 | Line 2403 | cat >conftest.$ac_ext <<_ACEOF
2403    ac_cv_prog_cc_stdc=no
2404   ac_save_CC=$CC
2405   cat >conftest.$ac_ext <<_ACEOF
2359 #line $LINENO "configure"
2406   /* confdefs.h.  */
2407   _ACEOF
2408   cat confdefs.h >>conftest.$ac_ext
# Line 2384 | Line 2430 | int test (int i, double x);
2430    va_end (v);
2431    return s;
2432   }
2433 +
2434 + /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2435 +   function prototypes and stuff, but not '\xHH' hex character constants.
2436 +   These don't provoke an error unfortunately, instead are silently treated
2437 +   as 'x'.  The following induces an error, until -std1 is added to get
2438 +   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2439 +   array size at least.  It's necessary to write '\x00'==0 to get something
2440 +   that's true only with -std1.  */
2441 + int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2442 +
2443   int test (int i, double x);
2444   struct s1 {int (*f) (int a);};
2445   struct s2 {int (*f) (double a);};
# Line 2410 | Line 2466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466    CC="$ac_save_CC $ac_arg"
2467    rm -f conftest.$ac_objext
2468   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469 <  (eval $ac_compile) 2>&5
2469 >  (eval $ac_compile) 2>conftest.er1
2470    ac_status=$?
2471 +  grep -v '^ *+' conftest.er1 >conftest.err
2472 +  rm -f conftest.er1
2473 +  cat conftest.err >&5
2474    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475    (exit $ac_status); } &&
2476 <         { ac_try='test -s conftest.$ac_objext'
2476 >         { ac_try='test -z "$ac_c_werror_flag"
2477 >                         || test ! -s conftest.err'
2478    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479    (eval $ac_try) 2>&5
2480    ac_status=$?
2481    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 +  (exit $ac_status); }; } &&
2483 +         { ac_try='test -s conftest.$ac_objext'
2484 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 +  (eval $ac_try) 2>&5
2486 +  ac_status=$?
2487 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488    (exit $ac_status); }; }; then
2489    ac_cv_prog_cc_stdc=$ac_arg
2490   break
# Line 2427 | Line 2493 | rm -f conftest.$ac_objext
2493   sed 's/^/| /' conftest.$ac_ext >&5
2494  
2495   fi
2496 < rm -f conftest.$ac_objext
2496 > rm -f conftest.err conftest.$ac_objext
2497   done
2498   rm -f conftest.$ac_ext conftest.$ac_objext
2499   CC=$ac_save_CC
# Line 2455 | Line 2521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521   _ACEOF
2522   rm -f conftest.$ac_objext
2523   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524 <  (eval $ac_compile) 2>&5
2524 >  (eval $ac_compile) 2>conftest.er1
2525    ac_status=$?
2526 +  grep -v '^ *+' conftest.er1 >conftest.err
2527 +  rm -f conftest.er1
2528 +  cat conftest.err >&5
2529    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530    (exit $ac_status); } &&
2531 <         { ac_try='test -s conftest.$ac_objext'
2531 >         { ac_try='test -z "$ac_c_werror_flag"
2532 >                         || test ! -s conftest.err'
2533    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534    (eval $ac_try) 2>&5
2535    ac_status=$?
2536    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 +  (exit $ac_status); }; } &&
2538 +         { ac_try='test -s conftest.$ac_objext'
2539 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 +  (eval $ac_try) 2>&5
2541 +  ac_status=$?
2542 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543    (exit $ac_status); }; }; then
2544    for ac_declaration in \
2545 <   ''\
2470 <   '#include <stdlib.h>' \
2545 >   '' \
2546     'extern "C" void std::exit (int) throw (); using std::exit;' \
2547     'extern "C" void std::exit (int); using std::exit;' \
2548     'extern "C" void exit (int) throw ();' \
# Line 2475 | Line 2550 | do
2550     'void exit (int);'
2551   do
2552    cat >conftest.$ac_ext <<_ACEOF
2478 #line $LINENO "configure"
2553   /* confdefs.h.  */
2554   _ACEOF
2555   cat confdefs.h >>conftest.$ac_ext
2556   cat >>conftest.$ac_ext <<_ACEOF
2557   /* end confdefs.h.  */
2484 #include <stdlib.h>
2558   $ac_declaration
2559 + #include <stdlib.h>
2560   int
2561   main ()
2562   {
# Line 2493 | Line 2567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567   _ACEOF
2568   rm -f conftest.$ac_objext
2569   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570 <  (eval $ac_compile) 2>&5
2570 >  (eval $ac_compile) 2>conftest.er1
2571    ac_status=$?
2572 +  grep -v '^ *+' conftest.er1 >conftest.err
2573 +  rm -f conftest.er1
2574 +  cat conftest.err >&5
2575    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576    (exit $ac_status); } &&
2577 <         { ac_try='test -s conftest.$ac_objext'
2577 >         { ac_try='test -z "$ac_c_werror_flag"
2578 >                         || test ! -s conftest.err'
2579    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580    (eval $ac_try) 2>&5
2581    ac_status=$?
2582    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 +  (exit $ac_status); }; } &&
2584 +         { ac_try='test -s conftest.$ac_objext'
2585 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 +  (eval $ac_try) 2>&5
2587 +  ac_status=$?
2588 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589    (exit $ac_status); }; }; then
2590    :
2591   else
# Line 2510 | Line 2594 | rm -f conftest.$ac_objext conftest.$ac_ext
2594  
2595   continue
2596   fi
2597 < rm -f conftest.$ac_objext conftest.$ac_ext
2597 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2598    cat >conftest.$ac_ext <<_ACEOF
2515 #line $LINENO "configure"
2599   /* confdefs.h.  */
2600   _ACEOF
2601   cat confdefs.h >>conftest.$ac_ext
# Line 2529 | Line 2612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612   _ACEOF
2613   rm -f conftest.$ac_objext
2614   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615 <  (eval $ac_compile) 2>&5
2615 >  (eval $ac_compile) 2>conftest.er1
2616    ac_status=$?
2617 +  grep -v '^ *+' conftest.er1 >conftest.err
2618 +  rm -f conftest.er1
2619 +  cat conftest.err >&5
2620    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621    (exit $ac_status); } &&
2622 <         { ac_try='test -s conftest.$ac_objext'
2622 >         { ac_try='test -z "$ac_c_werror_flag"
2623 >                         || test ! -s conftest.err'
2624    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625    (eval $ac_try) 2>&5
2626    ac_status=$?
2627    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 +  (exit $ac_status); }; } &&
2629 +         { ac_try='test -s conftest.$ac_objext'
2630 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 +  (eval $ac_try) 2>&5
2632 +  ac_status=$?
2633 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634    (exit $ac_status); }; }; then
2635    break
2636   else
# Line 2545 | Line 2638 | rm -f conftest.$ac_objext conftest.$ac_ext
2638   sed 's/^/| /' conftest.$ac_ext >&5
2639  
2640   fi
2641 < rm -f conftest.$ac_objext conftest.$ac_ext
2641 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2642   done
2643   rm -f conftest*
2644   if test -n "$ac_declaration"; then
# Line 2559 | Line 2652 | rm -f conftest.$ac_objext conftest.$ac_ext
2652   sed 's/^/| /' conftest.$ac_ext >&5
2653  
2654   fi
2655 < rm -f conftest.$ac_objext conftest.$ac_ext
2655 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2656   ac_ext=c
2657   ac_cpp='$CPP $CPPFLAGS'
2658   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2659   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2660   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2661  
2662 +
2663   ac_ext=cc
2664   ac_cpp='$CXXCPP $CPPFLAGS'
2665   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2668   if test -n "$ac_tool_prefix"; then
2669 <  for ac_prog in $CCC icpc icc xlC CC g++ c++
2669 >  for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2670    do
2671      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2672   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 2614 | Line 2708 | if test -z "$CXX"; then
2708   fi
2709   if test -z "$CXX"; then
2710    ac_ct_CXX=$CXX
2711 <  for ac_prog in $CCC icpc icc xlC CC g++ c++
2711 >  for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2712   do
2713    # Extract the first word of "$ac_prog", so it can be a program name with args.
2714   set dummy $ac_prog; ac_word=$2
# Line 2685 | Line 2779 | else
2779    echo $ECHO_N "(cached) $ECHO_C" >&6
2780   else
2781    cat >conftest.$ac_ext <<_ACEOF
2688 #line $LINENO "configure"
2782   /* confdefs.h.  */
2783   _ACEOF
2784   cat confdefs.h >>conftest.$ac_ext
# Line 2705 | Line 2798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2798   _ACEOF
2799   rm -f conftest.$ac_objext
2800   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801 <  (eval $ac_compile) 2>&5
2801 >  (eval $ac_compile) 2>conftest.er1
2802    ac_status=$?
2803 +  grep -v '^ *+' conftest.er1 >conftest.err
2804 +  rm -f conftest.er1
2805 +  cat conftest.err >&5
2806    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807    (exit $ac_status); } &&
2808 <         { ac_try='test -s conftest.$ac_objext'
2808 >         { ac_try='test -z "$ac_cxx_werror_flag"
2809 >                         || test ! -s conftest.err'
2810    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811    (eval $ac_try) 2>&5
2812    ac_status=$?
2813    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 +  (exit $ac_status); }; } &&
2815 +         { ac_try='test -s conftest.$ac_objext'
2816 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 +  (eval $ac_try) 2>&5
2818 +  ac_status=$?
2819 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820    (exit $ac_status); }; }; then
2821    ac_compiler_gnu=yes
2822   else
# Line 2722 | Line 2825 | rm -f conftest.$ac_objext conftest.$ac_ext
2825  
2826   ac_compiler_gnu=no
2827   fi
2828 < rm -f conftest.$ac_objext conftest.$ac_ext
2828 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2829   ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2830  
2831   fi
# Line 2738 | Line 2841 | else
2841    echo $ECHO_N "(cached) $ECHO_C" >&6
2842   else
2843    cat >conftest.$ac_ext <<_ACEOF
2741 #line $LINENO "configure"
2844   /* confdefs.h.  */
2845   _ACEOF
2846   cat confdefs.h >>conftest.$ac_ext
# Line 2755 | Line 2857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2857   _ACEOF
2858   rm -f conftest.$ac_objext
2859   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2860 <  (eval $ac_compile) 2>&5
2860 >  (eval $ac_compile) 2>conftest.er1
2861    ac_status=$?
2862 +  grep -v '^ *+' conftest.er1 >conftest.err
2863 +  rm -f conftest.er1
2864 +  cat conftest.err >&5
2865    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866    (exit $ac_status); } &&
2867 <         { ac_try='test -s conftest.$ac_objext'
2867 >         { ac_try='test -z "$ac_cxx_werror_flag"
2868 >                         || test ! -s conftest.err'
2869    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870    (eval $ac_try) 2>&5
2871    ac_status=$?
2872    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 +  (exit $ac_status); }; } &&
2874 +         { ac_try='test -s conftest.$ac_objext'
2875 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876 +  (eval $ac_try) 2>&5
2877 +  ac_status=$?
2878 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879    (exit $ac_status); }; }; then
2880    ac_cv_prog_cxx_g=yes
2881   else
# Line 2772 | Line 2884 | rm -f conftest.$ac_objext conftest.$ac_ext
2884  
2885   ac_cv_prog_cxx_g=no
2886   fi
2887 < rm -f conftest.$ac_objext conftest.$ac_ext
2887 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2888   fi
2889   echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2890   echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
# Line 2792 | Line 2904 | for ac_declaration in \
2904    fi
2905   fi
2906   for ac_declaration in \
2907 <   ''\
2796 <   '#include <stdlib.h>' \
2907 >   '' \
2908     'extern "C" void std::exit (int) throw (); using std::exit;' \
2909     'extern "C" void std::exit (int); using std::exit;' \
2910     'extern "C" void exit (int) throw ();' \
# Line 2801 | Line 2912 | do
2912     'void exit (int);'
2913   do
2914    cat >conftest.$ac_ext <<_ACEOF
2804 #line $LINENO "configure"
2915   /* confdefs.h.  */
2916   _ACEOF
2917   cat confdefs.h >>conftest.$ac_ext
2918   cat >>conftest.$ac_ext <<_ACEOF
2919   /* end confdefs.h.  */
2810 #include <stdlib.h>
2920   $ac_declaration
2921 + #include <stdlib.h>
2922   int
2923   main ()
2924   {
# Line 2819 | Line 2929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2929   _ACEOF
2930   rm -f conftest.$ac_objext
2931   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2932 <  (eval $ac_compile) 2>&5
2932 >  (eval $ac_compile) 2>conftest.er1
2933    ac_status=$?
2934 +  grep -v '^ *+' conftest.er1 >conftest.err
2935 +  rm -f conftest.er1
2936 +  cat conftest.err >&5
2937    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938    (exit $ac_status); } &&
2939 <         { ac_try='test -s conftest.$ac_objext'
2939 >         { ac_try='test -z "$ac_cxx_werror_flag"
2940 >                         || test ! -s conftest.err'
2941    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942    (eval $ac_try) 2>&5
2943    ac_status=$?
2944    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 +  (exit $ac_status); }; } &&
2946 +         { ac_try='test -s conftest.$ac_objext'
2947 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 +  (eval $ac_try) 2>&5
2949 +  ac_status=$?
2950 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951    (exit $ac_status); }; }; then
2952    :
2953   else
# Line 2836 | Line 2956 | rm -f conftest.$ac_objext conftest.$ac_ext
2956  
2957   continue
2958   fi
2959 < rm -f conftest.$ac_objext conftest.$ac_ext
2959 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2960    cat >conftest.$ac_ext <<_ACEOF
2841 #line $LINENO "configure"
2961   /* confdefs.h.  */
2962   _ACEOF
2963   cat confdefs.h >>conftest.$ac_ext
# Line 2855 | Line 2974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2974   _ACEOF
2975   rm -f conftest.$ac_objext
2976   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2977 <  (eval $ac_compile) 2>&5
2977 >  (eval $ac_compile) 2>conftest.er1
2978    ac_status=$?
2979 +  grep -v '^ *+' conftest.er1 >conftest.err
2980 +  rm -f conftest.er1
2981 +  cat conftest.err >&5
2982    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983    (exit $ac_status); } &&
2984 <         { ac_try='test -s conftest.$ac_objext'
2984 >         { ac_try='test -z "$ac_cxx_werror_flag"
2985 >                         || test ! -s conftest.err'
2986    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987    (eval $ac_try) 2>&5
2988    ac_status=$?
2989    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 +  (exit $ac_status); }; } &&
2991 +         { ac_try='test -s conftest.$ac_objext'
2992 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 +  (eval $ac_try) 2>&5
2994 +  ac_status=$?
2995 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996    (exit $ac_status); }; }; then
2997    break
2998   else
# Line 2871 | Line 3000 | rm -f conftest.$ac_objext conftest.$ac_ext
3000   sed 's/^/| /' conftest.$ac_ext >&5
3001  
3002   fi
3003 < rm -f conftest.$ac_objext conftest.$ac_ext
3003 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3004   done
3005   rm -f conftest*
3006   if test -n "$ac_declaration"; then
# Line 2885 | Line 3014 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3014   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3017 +
3018 +
3019 + OOPSE_TEMPLATE_FLAGS=""
3020 + if test $ac_cv_cxx_compiler_gnu = no; then
3021 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5
3022 + echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6
3023 +  echo 'void f(){}' > conftest.cc
3024 +  if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
3025 +    echo "$as_me:$LINENO: result: yes" >&5
3026 + echo "${ECHO_T}yes" >&6
3027 +    OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink"
3028 +  else
3029 +    echo "$as_me:$LINENO: result: no" >&5
3030 + echo "${ECHO_T}no" >&6
3031 +  fi
3032 +  rm -f conftest*
3033 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5
3034 + echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6
3035 +  echo 'void f(){}' > conftest.cc
3036 +  if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
3037 +    echo "$as_me:$LINENO: result: yes" >&5
3038 + echo "${ECHO_T}yes" >&6
3039 +    OOPSE_TEMPLATE_FLAGS="-instances=static"
3040 +  else
3041 +    echo "$as_me:$LINENO: result: no" >&5
3042 + echo "${ECHO_T}no" >&6
3043 +  fi
3044 +  rm -f conftest*
3045 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5
3046 + echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6
3047 +  echo 'void f(){}' > conftest.cc
3048 +  if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then
3049 +    echo "$as_me:$LINENO: result: yes" >&5
3050 + echo "${ECHO_T}yes" >&6
3051 +    OOPSE_TEMPLATE_FLAGS="-pto"
3052 +  else
3053 +    echo "$as_me:$LINENO: result: no" >&5
3054 + echo "${ECHO_T}no" >&6
3055 +  fi
3056 +  rm -f conftest*
3057 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5
3058 + echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6
3059 +  echo 'void f(){}' > conftest.cc
3060 +  if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
3061 +    echo "$as_me:$LINENO: result: yes" >&5
3062 + echo "${ECHO_T}yes" >&6
3063 +
3064 +
3065 +    EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std"
3066 +  else
3067 +    echo "$as_me:$LINENO: result: no" >&5
3068 + echo "${ECHO_T}no" >&6
3069 +  fi
3070 + fi
3071 +
3072 +
3073 +
3074  
3075   ac_ext=f90
3076   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3077   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3079   if test -n "$ac_tool_prefix"; then
3080 <  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3080 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3081    do
3082      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3083   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 2933 | Line 3119 | if test -z "$F90"; then
3119   fi
3120   if test -z "$F90"; then
3121    ac_ct_F90=$F90
3122 <  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3122 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3123   do
3124    # Extract the first word of "$ac_prog", so it can be a program name with args.
3125   set dummy $ac_prog; ac_word=$2
# Line 2999 | Line 3185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3185   _ACEOF
3186   rm -f conftest.$ac_objext
3187   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3188 <  (eval $ac_compile) 2>&5
3188 >  (eval $ac_compile) 2>conftest.er1
3189    ac_status=$?
3190 +  grep -v '^ *+' conftest.er1 >conftest.err
3191 +  rm -f conftest.er1
3192 +  cat conftest.err >&5
3193    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194    (exit $ac_status); } &&
3195 <         { ac_try='test -s conftest.$ac_objext'
3195 >         { ac_try='test -z "$ac_f90_werror_flag"
3196 >                         || test ! -s conftest.err'
3197    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198    (eval $ac_try) 2>&5
3199    ac_status=$?
3200    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 +  (exit $ac_status); }; } &&
3202 +         { ac_try='test -s conftest.$ac_objext'
3203 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204 +  (eval $ac_try) 2>&5
3205 +  ac_status=$?
3206 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207    (exit $ac_status); }; }; then
3208    ac_compiler_gnu=yes
3209   else
# Line 3016 | Line 3212 | rm -f conftest.$ac_objext conftest.$ac_ext
3212  
3213   ac_compiler_gnu=no
3214   fi
3215 < rm -f conftest.$ac_objext conftest.$ac_ext
3215 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3216   ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3217  
3218   fi
# Line 3041 | Line 3237 | if test "$ac_test_PREPFLAG" != "set"; then
3237    PREPFLAG=""
3238    case "${host_cpu}-${host_os}" in
3239  
3240 <  *linux*) if test "$F90" = ifc; then
3240 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3241                      PREPFLAG="-fpp1 "
3242                  fi;;
3243    *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
# Line 3054 | Line 3250 | if test "$ac_test_PREPFLAG" != "set"; then
3250    esac
3251  
3252    if test -z "$PREPFLAG"; then
3253 <        echo ""
3254 <        echo "**********************************************************"
3059 <        echo "* WARNING: Don't know the best PREPFLAG for this system  *"
3060 <        echo "* Use  make PREPFLAG=..., or edit the top level Makefile *"
3061 <        echo "* (otherwise, an empty PREPFLAG will be used)            *"
3062 <        echo "**********************************************************"
3063 <        echo ""
3253 >        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
3254 > echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
3255          PREPFLAG=""
3256    fi
3257  
# Line 3095 | Line 3286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3286   _ACEOF
3287   rm -f conftest.$ac_objext
3288   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3289 <  (eval $ac_compile) 2>&5
3289 >  (eval $ac_compile) 2>conftest.er1
3290    ac_status=$?
3291 +  grep -v '^ *+' conftest.er1 >conftest.err
3292 +  rm -f conftest.er1
3293 +  cat conftest.err >&5
3294    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295    (exit $ac_status); } &&
3296 <         { ac_try='test -s conftest.$ac_objext'
3296 >         { ac_try='test -z "$ac_f90_werror_flag"
3297 >                         || test ! -s conftest.err'
3298    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299    (eval $ac_try) 2>&5
3300    ac_status=$?
3301    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 +  (exit $ac_status); }; } &&
3303 +         { ac_try='test -s conftest.$ac_objext'
3304 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305 +  (eval $ac_try) 2>&5
3306 +  ac_status=$?
3307 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308    (exit $ac_status); }; }; then
3309    prepflagworks=1
3310   else
# Line 3112 | Line 3313 | rm -f conftest.$ac_objext conftest.$ac_ext
3313  
3314   prepflagworks=0
3315   fi
3316 < rm -f conftest.$ac_objext conftest.$ac_ext
3316 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3317  
3318    F90FLAGS=$ac_save_F90FLAGS
3319    ac_ext=$ac_save_ext
# Line 3123 | Line 3324 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325  
3326  
3126
3327    if test "$prepflagworks" = 1; then
3328      echo "$as_me:$LINENO: result: yes" >&5
3329   echo "${ECHO_T}yes" >&6
# Line 3148 | Line 3348 | if test "$ac_test_PREPDEFFLAG" != "set"; then
3348    PREPDEFFLAG=""
3349    case "${host_cpu}-${host_os}" in
3350  
3351 <  *linux*) if test "$F90" = ifc; then
3351 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3352                      PREPDEFFLAG=" "
3353                  fi;;
3354    *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
# Line 3161 | Line 3361 | if test "$ac_test_PREPDEFFLAG" != "set"; then
3361    esac
3362  
3363    if test -z "$PREPDEFFLAG"; then
3364 <        echo ""
3365 <        echo "*************************************************************"
3166 <        echo "* WARNING: Don't know the best PREPDEFFLAG for this system  *"
3167 <        echo "* Use  make PREPDEFFLAG=..., or edit the top level Makefile *"
3168 <        echo "* (otherwise, an empty PREPDEFFLAG will be used)            *"
3169 <        echo "*************************************************************"
3170 <        echo ""
3364 >        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
3365 > echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
3366          PREPDEFFLAG=" "
3367    fi
3368  
# Line 3206 | Line 3401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3401   _ACEOF
3402   rm -f conftest.$ac_objext
3403   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3404 <  (eval $ac_compile) 2>&5
3404 >  (eval $ac_compile) 2>conftest.er1
3405    ac_status=$?
3406 +  grep -v '^ *+' conftest.er1 >conftest.err
3407 +  rm -f conftest.er1
3408 +  cat conftest.err >&5
3409    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410    (exit $ac_status); } &&
3411 <         { ac_try='test -s conftest.$ac_objext'
3411 >         { ac_try='test -z "$ac_f90_werror_flag"
3412 >                         || test ! -s conftest.err'
3413    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414    (eval $ac_try) 2>&5
3415    ac_status=$?
3416    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 +  (exit $ac_status); }; } &&
3418 +         { ac_try='test -s conftest.$ac_objext'
3419 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420 +  (eval $ac_try) 2>&5
3421 +  ac_status=$?
3422 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423    (exit $ac_status); }; }; then
3424    prepdefflagworks=1
3425   else
# Line 3223 | Line 3428 | rm -f conftest.$ac_objext conftest.$ac_ext
3428  
3429   prepdefflagworks=0
3430   fi
3431 < rm -f conftest.$ac_objext conftest.$ac_ext
3431 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3432  
3433    F90FLAGS=$ac_save_F90FLAGS
3434    ac_ext=$ac_save_ext
# Line 3248 | Line 3453 | fi
3453    fi
3454   fi
3455  
3456 + ac_ext=f90
3457 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3458 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3460  
3252 case $debug in
3253  1)
3254     ;;
3255  *)
3461  
3462  
3463 + ac_ext=f90
3464 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3465 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3467 + echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
3468 + echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3469 + if test "${ac_cv_prog_f90_v+set}" = set; then
3470 +  echo $ECHO_N "(cached) $ECHO_C" >&6
3471 + else
3472  
3473 + cat >conftest.$ac_ext <<_ACEOF
3474  
3475 < # Try to determine "good" native compiler flags if none specified on command
3261 < # line
3262 < if test "$ac_test_CFLAGS" != "set"; then
3263 <  CFLAGS=""
3264 <  case "${host_cpu}-${host_os}" in
3475 > program main
3476  
3266  *linux*) if test "$CC" = icc; then
3267                    CFLAGS="-O"
3268                fi;;
3269  sparc-solaris2*) if test "$CC" = cc; then
3270                    CFLAGS="-native -fast -xO5 -dalign"
3271                 fi;;
3477  
3478 <  alpha*-osf*)  if test "$CC" = cc; then
3274 <                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
3275 <                fi;;
3478 > end program main
3479  
3480 <  hppa*-hpux*)  if test "$CC" = cc; then
3481 <                    CFLAGS="-Ae +O3 +Oall"
3482 <                fi;;
3480 > _ACEOF
3481 > rm -f conftest.$ac_objext
3482 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3483 >  (eval $ac_compile) 2>conftest.er1
3484 >  ac_status=$?
3485 >  grep -v '^ *+' conftest.er1 >conftest.err
3486 >  rm -f conftest.er1
3487 >  cat conftest.err >&5
3488 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 >  (exit $ac_status); } &&
3490 >         { ac_try='test -z "$ac_f90_werror_flag"
3491 >                         || test ! -s conftest.err'
3492 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493 >  (eval $ac_try) 2>&5
3494 >  ac_status=$?
3495 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 >  (exit $ac_status); }; } &&
3497 >         { ac_try='test -s conftest.$ac_objext'
3498 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499 >  (eval $ac_try) 2>&5
3500 >  ac_status=$?
3501 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 >  (exit $ac_status); }; }; then
3503 >  ac_cv_prog_f90_v=
3504 > # Try some options frequently used verbose output
3505 > for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3506 >  ac_ext=f90
3507 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3508 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3510  
3511 <   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
3282 <                    CFLAGS="-O3 -qtune=auto -qansialias -w"
3283 <                fi;;
3284 <   powerpc*-aix*)
3285 <        if test "$CC" = cc -o "$CC" = xlc; then
3286 <                CFLAGS="-O3 -qtune=auto -qansialias -w"
3287 <                echo "*******************************************************"
3288 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
3289 <                echo "*  recommended that you use                           *"
3290 <                echo "*                                                     *"
3291 <                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
3292 <                echo "*                                 ^^^                 *"
3293 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
3294 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
3295 <                echo "*******************************************************"
3296 <        fi;;
3297 <   *darwin*)
3298 <        if test "$CC" = xlc -o "$CC" = cc; then
3299 <                CFLAGS="-O3 -qtune=auto -w"
3300 <                echo "*******************************************************"
3301 <                echo "*  You have Darwin on an unknown powerpc system.      *"
3302 <                echo "*  It is recommended that you use                     *"
3303 <                echo "*                                                     *"
3304 <                echo "*  CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
3305 <                echo "*                               ^^^                   *"
3306 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
3307 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
3308 <                echo "*******************************************************"
3309 <        fi;;
3310 <  esac
3511 > cat >conftest.$ac_ext <<_ACEOF
3512  
3513 <  # use default flags for gcc on all systems
3313 <  if test $ac_cv_c_compiler_gnu = yes; then
3314 <     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
3315 <  fi
3513 > program main
3514  
3317  # test for gcc-specific flags:
3318  if test $ac_cv_c_compiler_gnu = yes; then
3319    # -malign-double for x86 systems
3515  
3516 + end program main
3517  
3518 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
3323 < echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
3324 < if test "${ac_align_double+set}" = set; then
3325 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3326 < else
3327 <  echo 'void f(){}' > conftest.c
3328 < if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
3329 <        ac_align_double=yes
3330 < else
3331 <        ac_align_double=no
3332 < fi
3333 < rm -f conftest*
3518 > _ACEOF
3519  
3520 < fi
3521 < echo "$as_me:$LINENO: result: $ac_align_double" >&5
3522 < echo "${ECHO_T}$ac_align_double" >&6
3523 < if test "$ac_align_double" = yes; then
3524 <        :
3525 <        CFLAGS="$CFLAGS -malign-double"
3341 < else
3342 <        :
3520 > # Compile and link our simple test program by passing a flag (argument
3521 > # 1 to this macro) to the Fortran 90 compiler in order to get
3522 > # "verbose" output that we can then parse for the Fortran 90 linker
3523 > # flags.
3524 > ac_save_F90FLAGS=$F90FLAGS
3525 > F90FLAGS="$F90FLAGS $ac_verb"
3526  
3527 < fi
3527 > (eval echo $as_me:3527: \"$ac_link\") >&5
3528 > ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3529 > echo "$ac_f90_v_output" >&5
3530 > F90FLAGS=$ac_save_F90FLAGS
3531  
3532 <    # -fstrict-aliasing for gcc-2.95+
3532 > rm -f conftest.*
3533 > ac_ext=f90
3534 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3535 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3537  
3538 <
3539 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
3540 < echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
3351 < if test "${ac_fstrict_aliasing+set}" = set; then
3352 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3353 < else
3354 <  echo 'void f(){}' > conftest.c
3355 < if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
3356 <        ac_fstrict_aliasing=yes
3357 < else
3358 <        ac_fstrict_aliasing=no
3538 > # If we are using xlf then replace all the commas with spaces.
3539 > if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3540 >  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3541   fi
3360 rm -f conftest*
3542  
3543 + # If we are using Cray Fortran then delete quotes.
3544 + # Use "\"" instead of '"' for font-lock-mode.
3545 + # FIXME: a more general fix for quoted arguments with spaces?
3546 + if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3547 +  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3548   fi
3549 < echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
3550 < echo "${ECHO_T}$ac_fstrict_aliasing" >&6
3551 < if test "$ac_fstrict_aliasing" = yes; then
3552 <        :
3553 <        CFLAGS="$CFLAGS -fstrict-aliasing"
3554 < else
3555 <        :
3556 <
3549 >  # look for -l* and *.a constructs in the output
3550 >  for ac_arg in $ac_f90_v_output; do
3551 >     case $ac_arg in
3552 >        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3553 >          ac_cv_prog_f90_v=$ac_verb
3554 >          break 2 ;;
3555 >     esac
3556 >  done
3557 > done
3558 > if test -z "$ac_cv_prog_f90_v"; then
3559 >   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
3560 > echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
3561   fi
3372
3373  fi
3374
3375  CPU_FLAGS=""
3376  if test "$GCC" = "yes"; then
3377                  case "${host_cpu}" in
3378          i586*)
3379
3380 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
3381 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
3382 if test "${ac_cpu_pentium+set}" = set; then
3383  echo $ECHO_N "(cached) $ECHO_C" >&6
3562   else
3563 <  echo 'void f(){}' > conftest.c
3564 < if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
3387 <        ac_cpu_pentium=yes
3388 < else
3389 <        ac_cpu_pentium=no
3390 < fi
3391 < rm -f conftest*
3563 >  echo "$as_me: failed program was:" >&5
3564 > sed 's/^/| /' conftest.$ac_ext >&5
3565  
3566 + { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3567 + echo "$as_me: WARNING: compilation failed" >&2;}
3568   fi
3569 < echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
3395 < echo "${ECHO_T}$ac_cpu_pentium" >&6
3396 < if test "$ac_cpu_pentium" = yes; then
3397 <        :
3398 <        CPU_FLAGS=-mcpu=pentium
3399 < else
3400 <        :
3569 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3570  
3571 <
3572 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
3573 < echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
3574 < if test "${ac_pentium+set}" = set; then
3571 > fi
3572 > echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
3573 > echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
3574 > echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
3575 > echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
3576 > if test "${ac_cv_flibs+set}" = set; then
3577    echo $ECHO_N "(cached) $ECHO_C" >&6
3578   else
3579 <  echo 'void f(){}' > conftest.c
3580 < if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
3410 <        ac_pentium=yes
3579 >  if test "x$F90LIBS" != "x"; then
3580 >  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
3581   else
3412        ac_pentium=no
3413 fi
3414 rm -f conftest*
3582  
3583 < fi
3584 < echo "$as_me:$LINENO: result: $ac_pentium" >&5
3585 < echo "${ECHO_T}$ac_pentium" >&6
3586 < if test "$ac_pentium" = yes; then
3420 <        :
3421 <        CPU_FLAGS=-mpentium
3422 < else
3423 <        :
3583 > ac_ext=f90
3584 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3585 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3587  
3588 < fi
3588 > cat >conftest.$ac_ext <<_ACEOF
3589  
3590 < fi
3590 > program main
3591  
3429                  ;;
3430          i686*)
3592  
3593 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
3433 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
3434 < if test "${ac_cpu_pentiumpro+set}" = set; then
3435 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3436 < else
3437 <  echo 'void f(){}' > conftest.c
3438 < if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
3439 <        ac_cpu_pentiumpro=yes
3440 < else
3441 <        ac_cpu_pentiumpro=no
3442 < fi
3443 < rm -f conftest*
3593 > end program main
3594  
3595 < fi
3446 < echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
3447 < echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
3448 < if test "$ac_cpu_pentiumpro" = yes; then
3449 <        :
3450 <        CPU_FLAGS=-mcpu=pentiumpro
3451 < else
3452 <        :
3595 > _ACEOF
3596  
3597 + # Compile and link our simple test program by passing a flag (argument
3598 + # 1 to this macro) to the Fortran 90 compiler in order to get
3599 + # "verbose" output that we can then parse for the Fortran 90 linker
3600 + # flags.
3601 + ac_save_F90FLAGS=$F90FLAGS
3602 + F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3603  
3604 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
3605 < echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
3606 < if test "${ac_pentiumpro+set}" = set; then
3607 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3459 < else
3460 <  echo 'void f(){}' > conftest.c
3461 < if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
3462 <        ac_pentiumpro=yes
3463 < else
3464 <        ac_pentiumpro=no
3465 < fi
3466 < rm -f conftest*
3604 > (eval echo $as_me:3604: \"$ac_link\") >&5
3605 > ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3606 > echo "$ac_f90_v_output" >&5
3607 > F90FLAGS=$ac_save_F90FLAGS
3608  
3609 < fi
3610 < echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
3611 < echo "${ECHO_T}$ac_pentiumpro" >&6
3612 < if test "$ac_pentiumpro" = yes; then
3613 <        :
3473 <        CPU_FLAGS=-mpentiumpro
3474 < else
3475 <        :
3609 > rm -f conftest.*
3610 > ac_ext=f90
3611 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3612 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3614  
3615 + # If we are using xlf then replace all the commas with spaces.
3616 + if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3617 +  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3618   fi
3619  
3620 + # If we are using Cray Fortran then delete quotes.
3621 + # Use "\"" instead of '"' for font-lock-mode.
3622 + # FIXME: a more general fix for quoted arguments with spaces?
3623 + if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3624 +  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3625   fi
3626  
3627 <                  ;;
3482 <          powerpc*)
3483 <                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
3484 <                is60x=`echo $cputype | egrep "^600-9e?$"`
3485 <                if test -n "$is60x"; then
3627 > ac_cv_f90libs=
3628  
3629 + # Save positional arguments (if any)
3630 + ac_save_positional="$@"
3631  
3632 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
3633 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
3634 < if test "${ac_m_cpu_60x+set}" = set; then
3635 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3636 < else
3637 <  echo 'void f(){}' > conftest.c
3638 < if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
3639 <        ac_m_cpu_60x=yes
3640 < else
3641 <        ac_m_cpu_60x=no
3642 < fi
3643 < rm -f conftest*
3632 > set X $ac_f90_v_output
3633 > while test $# != 1; do
3634 >  shift
3635 >  ac_arg=$1
3636 >  case $ac_arg in
3637 >        [\\/]*.a | ?:[\\/]*.a)
3638 >            ac_exists=false
3639 >  for ac_i in $ac_cv_f90libs; do
3640 >    if test x"$ac_arg" = x"$ac_i"; then
3641 >      ac_exists=true
3642 >      break
3643 >    fi
3644 >  done
3645  
3646 < fi
3647 < echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
3503 < echo "${ECHO_T}$ac_m_cpu_60x" >&6
3504 < if test "$ac_m_cpu_60x" = yes; then
3505 <        :
3506 <        CPU_FLAGS=-mcpu=$cputype
3646 >  if test x"$ac_exists" = xtrue; then
3647 >  :
3648   else
3649 <        :
3509 <
3649 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3650   fi
3651  
3652 <                elif test "$cputype" = 750; then
3652 >          ;;
3653 >        -bI:*)
3654 >            ac_exists=false
3655 >  for ac_i in $ac_cv_f90libs; do
3656 >    if test x"$ac_arg" = x"$ac_i"; then
3657 >      ac_exists=true
3658 >      break
3659 >    fi
3660 >  done
3661  
3662 <
3663 < echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
3516 < echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
3517 < if test "${ac_cv_prog_gcc_2_95+set}" = set; then
3518 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3662 >  if test x"$ac_exists" = xtrue; then
3663 >  :
3664   else
3665 <
3666 < cat > conftest.c <<EOF
3667 < #ifdef __GNUC__
3668 < #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
3524 <     yes;
3525 < #  endif
3526 < #endif
3527 < EOF
3528 < if { ac_try='${CC-cc} -E conftest.c'
3529 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 <  (eval $ac_try) 2>&5
3531 <  ac_status=$?
3532 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 <  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3534 <  ac_cv_prog_gcc_2_95=yes
3665 >  if test "$ac_compiler_gnu" = yes; then
3666 >  for ac_link_opt in $ac_arg; do
3667 >    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3668 >  done
3669   else
3670 <  ac_cv_prog_gcc_2_95=no
3670 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3671   fi
3538
3672   fi
3540 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
3541 echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
3542 if test "$ac_cv_prog_gcc_2_95" = yes; then
3543        :
3673  
3674 +          ;;
3675 +          # Ignore these flags.
3676 +        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
3677 +          ;;
3678 +        -lkernel32)
3679 +          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3680 +          ;;
3681 +        -[LRuY])
3682 +          # These flags, when seen by themselves, take an argument.
3683 +          # We remove the space between option and argument and re-iterate
3684 +          # unless we find an empty arg or a new option (starting with -)
3685 +          case $2 in
3686 +             "" | -*);;
3687 +             *)
3688 +                ac_arg="$ac_arg$2"
3689  
3690 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
3691 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
3692 < if test "${ac_m_cpu_750+set}" = set; then
3693 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3690 >                shift; shift
3691 >                set X $ac_arg "$@"
3692 >                ;;
3693 >          esac
3694 >          ;;
3695 >        -YP,*)
3696 >          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3697 >              ac_exists=false
3698 >  for ac_i in $ac_cv_f90libs; do
3699 >    if test x"$ac_j" = x"$ac_i"; then
3700 >      ac_exists=true
3701 >      break
3702 >    fi
3703 >  done
3704 >
3705 >  if test x"$ac_exists" = xtrue; then
3706 >  :
3707   else
3708 <  echo 'void f(){}' > conftest.c
3709 < if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
3553 <        ac_m_cpu_750=yes
3554 < else
3555 <        ac_m_cpu_750=no
3708 >  ac_arg="$ac_arg $ac_j"
3709 >                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
3710   fi
3557 rm -f conftest*
3711  
3712 < fi
3713 < echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
3714 < echo "${ECHO_T}$ac_m_cpu_750" >&6
3715 < if test "$ac_m_cpu_750" = yes; then
3716 <        :
3717 <        CPU_FLAGS=-mcpu=750
3718 < else
3719 <        :
3712 >          done
3713 >          ;;
3714 >        -[lLR]*)
3715 >            ac_exists=false
3716 >  for ac_i in $ac_cv_f90libs; do
3717 >    if test x"$ac_arg" = x"$ac_i"; then
3718 >      ac_exists=true
3719 >      break
3720 >    fi
3721 >  done
3722  
3723 +  if test x"$ac_exists" = xtrue; then
3724 +  :
3725 + else
3726 +  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3727   fi
3728  
3729 +          ;;
3730 +          # Ignore everything else.
3731 +  esac
3732 + done
3733 + # restore positional arguments
3734 + set X $ac_save_positional; shift
3735 +
3736 + # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
3737 + # then we insist that the "run path" must be an absolute path (i.e. it
3738 + # must begin with a "/").
3739 + case `(uname -sr) 2>/dev/null` in
3740 +   "SunOS 5"*)
3741 +      ac_ld_run_path=`echo $ac_f90_v_output |
3742 +                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3743 +      test "x$ac_ld_run_path" != x &&
3744 +
3745 +        if test "$ac_compiler_gnu" = yes; then
3746 +  for ac_link_opt in $ac_ld_run_path; do
3747 +    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3748 +  done
3749   else
3750 <        :
3750 >  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
3751 > fi
3752 >      ;;
3753 > esac
3754 > fi # test "x$F90LIBS" = "x"
3755  
3756   fi
3757 + echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
3758 + echo "${ECHO_T}$ac_cv_flibs" >&6
3759 + F90LIBS="$ac_cv_f90libs"
3760  
3761 <                fi
3762 <                if test -z "$CPU_FLAGS"; then
3761 > ac_ext=f90
3762 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3763 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3765  
3766  
3767 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
3768 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
3769 < if test "${ac_m_cpu_powerpc+set}" = set; then
3767 > echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
3768 > echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
3769 > if test "${ac_cv_f90_mangling+set}" = set; then
3770    echo $ECHO_N "(cached) $ECHO_C" >&6
3771   else
3772 <  echo 'void f(){}' > conftest.c
3773 < if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
3774 <        ac_m_cpu_powerpc=yes
3772 >  ac_ext=f90
3773 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3774 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3776 > cat >conftest.$ac_ext <<_ACEOF
3777 > subroutine foobar()
3778 > return
3779 > end
3780 > subroutine foo_bar()
3781 > return
3782 > end
3783 > _ACEOF
3784 > rm -f conftest.$ac_objext
3785 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786 >  (eval $ac_compile) 2>conftest.er1
3787 >  ac_status=$?
3788 >  grep -v '^ *+' conftest.er1 >conftest.err
3789 >  rm -f conftest.er1
3790 >  cat conftest.err >&5
3791 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 >  (exit $ac_status); } &&
3793 >         { ac_try='test -z "$ac_f90_werror_flag"
3794 >                         || test ! -s conftest.err'
3795 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 >  (eval $ac_try) 2>&5
3797 >  ac_status=$?
3798 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 >  (exit $ac_status); }; } &&
3800 >         { ac_try='test -s conftest.$ac_objext'
3801 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 >  (eval $ac_try) 2>&5
3803 >  ac_status=$?
3804 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 >  (exit $ac_status); }; }; then
3806 >  mv conftest.$ac_objext cf90_test.$ac_objext
3807 >
3808 >  ac_ext=c
3809 > ac_cpp='$CPP $CPPFLAGS'
3810 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813 >
3814 >  ac_save_LIBS=$LIBS
3815 >  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
3816 >
3817 >  ac_success=no
3818 >  for ac_foobar in foobar FOOBAR; do
3819 >    for ac_underscore in "" "_"; do
3820 >      ac_func="$ac_foobar$ac_underscore"
3821 >      cat >conftest.$ac_ext <<_ACEOF
3822 > /* confdefs.h.  */
3823 > _ACEOF
3824 > cat confdefs.h >>conftest.$ac_ext
3825 > cat >>conftest.$ac_ext <<_ACEOF
3826 > /* end confdefs.h.  */
3827 >
3828 > /* Override any gcc2 internal prototype to avoid an error.  */
3829 > #ifdef __cplusplus
3830 > extern "C"
3831 > #endif
3832 > /* We use char because int might match the return type of a gcc2
3833 >   builtin and then its argument prototype would still apply.  */
3834 > char $ac_func ();
3835 > int
3836 > main ()
3837 > {
3838 > $ac_func ();
3839 >  ;
3840 >  return 0;
3841 > }
3842 > _ACEOF
3843 > rm -f conftest.$ac_objext conftest$ac_exeext
3844 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3845 >  (eval $ac_link) 2>conftest.er1
3846 >  ac_status=$?
3847 >  grep -v '^ *+' conftest.er1 >conftest.err
3848 >  rm -f conftest.er1
3849 >  cat conftest.err >&5
3850 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 >  (exit $ac_status); } &&
3852 >         { ac_try='test -z "$ac_c_werror_flag"
3853 >                         || test ! -s conftest.err'
3854 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 >  (eval $ac_try) 2>&5
3856 >  ac_status=$?
3857 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 >  (exit $ac_status); }; } &&
3859 >         { ac_try='test -s conftest$ac_exeext'
3860 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3861 >  (eval $ac_try) 2>&5
3862 >  ac_status=$?
3863 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 >  (exit $ac_status); }; }; then
3865 >  ac_success=yes; break 2
3866 > else
3867 >  echo "$as_me: failed program was:" >&5
3868 > sed 's/^/| /' conftest.$ac_ext >&5
3869 >
3870 > fi
3871 > rm -f conftest.err conftest.$ac_objext \
3872 >      conftest$ac_exeext conftest.$ac_ext
3873 >    done
3874 >  done
3875 >
3876 >  if test "$ac_success" = "yes"; then
3877 >     case $ac_foobar in
3878 >        foobar)
3879 >           ac_case=lower
3880 >           ac_foo_bar=foo_bar
3881 >           ;;
3882 >        FOOBAR)
3883 >           ac_case=upper
3884 >           ac_foo_bar=FOO_BAR
3885 >           ;;
3886 >     esac
3887 >
3888 >     ac_success_extra=no
3889 >     for ac_extra in "" "_"; do
3890 >        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
3891 >
3892 >        cat >conftest.$ac_ext <<_ACEOF
3893 > /* confdefs.h.  */
3894 > _ACEOF
3895 > cat confdefs.h >>conftest.$ac_ext
3896 > cat >>conftest.$ac_ext <<_ACEOF
3897 > /* end confdefs.h.  */
3898 >
3899 > /* Override any gcc2 internal prototype to avoid an error.  */
3900 > #ifdef __cplusplus
3901 > extern "C"
3902 > #endif
3903 > /* We use char because int might match the return type of a gcc2
3904 >   builtin and then its argument prototype would still apply.  */
3905 > char $ac_func ();
3906 > int
3907 > main ()
3908 > {
3909 > $ac_func ();
3910 >  ;
3911 >  return 0;
3912 > }
3913 > _ACEOF
3914 > rm -f conftest.$ac_objext conftest$ac_exeext
3915 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3916 >  (eval $ac_link) 2>conftest.er1
3917 >  ac_status=$?
3918 >  grep -v '^ *+' conftest.er1 >conftest.err
3919 >  rm -f conftest.er1
3920 >  cat conftest.err >&5
3921 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 >  (exit $ac_status); } &&
3923 >         { ac_try='test -z "$ac_c_werror_flag"
3924 >                         || test ! -s conftest.err'
3925 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 >  (eval $ac_try) 2>&5
3927 >  ac_status=$?
3928 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 >  (exit $ac_status); }; } &&
3930 >         { ac_try='test -s conftest$ac_exeext'
3931 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 >  (eval $ac_try) 2>&5
3933 >  ac_status=$?
3934 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 >  (exit $ac_status); }; }; then
3936 >  ac_success_extra=yes; break
3937 > else
3938 >  echo "$as_me: failed program was:" >&5
3939 > sed 's/^/| /' conftest.$ac_ext >&5
3940 >
3941 > fi
3942 > rm -f conftest.err conftest.$ac_objext \
3943 >      conftest$ac_exeext conftest.$ac_ext
3944 >     done
3945 >
3946 >     if test "$ac_success_extra" = "yes"; then
3947 >        ac_cv_f90_mangling="$ac_case case"
3948 >        if test -z "$ac_underscore"; then
3949 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
3950 >        else
3951 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
3952 >
3953 >        fi
3954 >        if test -z "$ac_extra"; then
3955 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
3956 >        else
3957 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
3958 >        fi
3959 >      else
3960 >        ac_cv_f90_mangling="unknown"
3961 >      fi
3962 >  else
3963 >     ac_cv_f90_mangling="unknown"
3964 >
3965 >  fi
3966 >
3967 >  LIBS=$ac_save_LIBS
3968 >  ac_ext=f90
3969 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3970 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3971 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3972 >  rm -f cf90_test* conftest*
3973 > else
3974 >  echo "$as_me: failed program was:" >&5
3975 > sed 's/^/| /' conftest.$ac_ext >&5
3976 >
3977 > fi
3978 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3979 > ac_ext=f90
3980 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3981 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3982 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3983 >
3984 > fi
3985 > echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
3986 > echo "${ECHO_T}$ac_cv_f90_mangling" >&6
3987 >
3988 >
3989 >
3990 > case $ac_cv_f90_mangling in
3991 >  "lower case, no underscore, no extra underscore")
3992 >          cat >>confdefs.h <<\_ACEOF
3993 > #define F90_FUNC(name,NAME) name
3994 > _ACEOF
3995 >
3996 >          cat >>confdefs.h <<\_ACEOF
3997 > #define F90_FUNC_(name,NAME) name
3998 > _ACEOF
3999 > ;;
4000 >  "lower case, no underscore, extra underscore")
4001 >          cat >>confdefs.h <<\_ACEOF
4002 > #define F90_FUNC(name,NAME) name
4003 > _ACEOF
4004 >
4005 >          cat >>confdefs.h <<\_ACEOF
4006 > #define F90_FUNC_(name,NAME) name ## _
4007 > _ACEOF
4008 > ;;
4009 >  "lower case, underscore, no extra underscore")
4010 >          cat >>confdefs.h <<\_ACEOF
4011 > #define F90_FUNC(name,NAME) name ## _
4012 > _ACEOF
4013 >
4014 >          cat >>confdefs.h <<\_ACEOF
4015 > #define F90_FUNC_(name,NAME) name ## _
4016 > _ACEOF
4017 > ;;
4018 >  "lower case, underscore, extra underscore")
4019 >          cat >>confdefs.h <<\_ACEOF
4020 > #define F90_FUNC(name,NAME) name ## _
4021 > _ACEOF
4022 >
4023 >          cat >>confdefs.h <<\_ACEOF
4024 > #define F90_FUNC_(name,NAME) name ## __
4025 > _ACEOF
4026 > ;;
4027 >  "upper case, no underscore, no extra underscore")
4028 >          cat >>confdefs.h <<\_ACEOF
4029 > #define F90_FUNC(name,NAME) NAME
4030 > _ACEOF
4031 >
4032 >          cat >>confdefs.h <<\_ACEOF
4033 > #define F90_FUNC_(name,NAME) NAME
4034 > _ACEOF
4035 > ;;
4036 >  "upper case, no underscore, extra underscore")
4037 >          cat >>confdefs.h <<\_ACEOF
4038 > #define F90_FUNC(name,NAME) NAME
4039 > _ACEOF
4040 >
4041 >          cat >>confdefs.h <<\_ACEOF
4042 > #define F90_FUNC_(name,NAME) NAME ## _
4043 > _ACEOF
4044 > ;;
4045 >  "upper case, underscore, no extra underscore")
4046 >          cat >>confdefs.h <<\_ACEOF
4047 > #define F90_FUNC(name,NAME) NAME ## _
4048 > _ACEOF
4049 >
4050 >          cat >>confdefs.h <<\_ACEOF
4051 > #define F90_FUNC_(name,NAME) NAME ## _
4052 > _ACEOF
4053 > ;;
4054 >  "upper case, underscore, extra underscore")
4055 >          cat >>confdefs.h <<\_ACEOF
4056 > #define F90_FUNC(name,NAME) NAME ## _
4057 > _ACEOF
4058 >
4059 >          cat >>confdefs.h <<\_ACEOF
4060 > #define F90_FUNC_(name,NAME) NAME ## __
4061 > _ACEOF
4062 > ;;
4063 >  *)
4064 >          { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4065 > echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4066 >          ;;
4067 > esac
4068 >
4069 >
4070 >
4071 >
4072 >
4073 > echo "$as_me:$LINENO: checking for module suffix" >&5
4074 > echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
4075 > rm -f conftest*
4076 > # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4077 > rm -f work*
4078 > cat >conftest.f90 <<EOF
4079 >        module conftest
4080 >        integer n
4081 >        parameter (n=1)
4082 >        end module conftest
4083 > EOF
4084 > # SGI and absoft compilers generates module name in upper case!
4085 > testname="conftest"
4086 > modcase="lower"
4087 > if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4088 >    MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
4089 >    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
4090 >    if test -z "$MOD" ; then
4091 >        MOD=`ls CONFTEST* 2>/dev/null \
4092 >                | grep -v CONFTEST.f | grep -v CONFTEST.o`
4093 >        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
4094 >        if test -n "$MOD" ; then
4095 >            testname="CONFTEST"
4096 >            modcase="upper"
4097 >        fi
4098 >    fi
4099 >    if test -z "$MOD" ; then
4100 >        echo "$as_me:$LINENO: result: unknown" >&5
4101 > echo "${ECHO_T}unknown" >&6
4102 >        # Use mod if we can't figure it out
4103 >        MOD="mod"
4104 >    else
4105 >        echo "$as_me:$LINENO: result: $MOD" >&5
4106 > echo "${ECHO_T}$MOD" >&6
4107 >    fi
4108 >    if test -s work.pcl ; then
4109 >        { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
4110 > echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
4111 >    fi
4112 > else
4113 >    echo "$as_me:$LINENO: result: unknown" >&5
4114 > echo "${ECHO_T}unknown" >&6
4115 > fi
4116 >
4117 >
4118 >
4119 >
4120 >
4121 > # Check for module include path (some use -I, some (Solaris) use -M, some
4122 > # (absoft) use -p).
4123 > # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
4124 > # specified, work.pcl and work.pc are created.  However, if you specify
4125 > # a file, it must contain a the name of a file ending in .pc .  Ugh!
4126 > # Use the module made above
4127 > echo "$as_me:$LINENO: checking for module directory path flag" >&5
4128 > echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
4129 > rm -f conftest*
4130 > # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4131 > rm -f work*
4132 > cat >conftest.f90 <<EOF
4133 >        module conftest
4134 >        integer n
4135 >        parameter (n=1)
4136 >        end module conftest
4137 > EOF
4138 > # SGI and absoft compilers generates module name in upper case!
4139 > testname="conftest"
4140 > if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4141 >   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o`
4142 >   mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
4143 >   if test -n "$mod" ; then
4144 >      testname="CONFTEST"
4145 >   fi
4146 >   madedir=0
4147 >   if test ! -d conf ; then mkdir conf ; madedir=1; fi
4148 >   cp $testname.$MOD conf
4149 >   rm -f conftest* CONFTEST*
4150 >   cat >conftest1.f90 <<EOF
4151 >        program main
4152 >        use conftest
4153 >        print *, n
4154 >        end
4155 > EOF
4156 >   F90_WORK_FILES_ARG=""
4157 >   F90MODINCSPEC=""
4158 >   if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then
4159 >       MODDIRFLAG="-I"
4160 >       F90MODINCSPEC="-I<dir>"
4161 >       echo "$as_me:$LINENO: result: -I" >&5
4162 > echo "${ECHO_T}-I" >&6
4163 >   elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then
4164 >       MODDIRFLAG="-M"
4165 >       F90MODINCSPEC="-M<dir>"
4166 >       echo "$as_me:$LINENO: result: -M" >&5
4167 > echo "${ECHO_T}-M" >&6
4168 >   elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then
4169 >       MODDIRFLAG="-p"
4170 >       F90MODINCSPEC="-p<dir>"
4171 >       echo "$as_me:$LINENO: result: -p" >&5
4172 > echo "${ECHO_T}-p" >&6
4173 >   elif test -s work.pc ; then
4174 >        cp work.pc conf/mpimod.pc
4175 >        echo "mpimod.pc" > conf/mpimod.pcl
4176 >        echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
4177 >        if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
4178 >            MODDIRFLAG='-cl,mpimod.pcl'
4179 >            echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
4180 > echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6
4181 >            F90_WORK_FILES_ARG="-cl,mpimod.pcl"
4182 >            F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
4183 >
4184 >        else
4185 >            # The version of the Intel compiler that I have refuses to let
4186 >            # you put the "work catalog" list anywhere but the current
4187 >            # directory. For example, you cannot in
4188 >         :
4189 >        fi
4190 >   fi
4191 >   if test -z "MODDIRFLAG" ; then
4192 >       echo "$as_me:$LINENO: result: unknown" >&5
4193 > echo "${ECHO_T}unknown" >&6
4194 >   fi
4195 >
4196 >
4197 >   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
4198 >   if test $madedir = 1 ; then rmdir conf ; fi
4199 > fi
4200 >
4201 >
4202 >
4203 >
4204 > case $debug in
4205 >  1)
4206 >     ;;
4207 >  *)
4208 >
4209 >
4210 >
4211 >
4212 >
4213 >
4214 > echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
4215 > echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
4216 > if test "${ac_cv_prog_really_gcc+set}" = set; then
4217 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4218 > else
4219 >
4220 > cat > conftest.c <<EOF
4221 > #ifdef __GNUC__
4222 >  #ifndef __INTEL_COMPILER
4223 >     yes;
4224 >  #endif
4225 > #endif
4226 > EOF
4227 > if { ac_try='${CC-cc} -E conftest.c'
4228 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 >  (eval $ac_try) 2>&5
4230 >  ac_status=$?
4231 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4233 >  ac_cv_prog_really_gcc=yes
4234   else
4235 +  ac_cv_prog_really_gcc=no
4236 + fi
4237 +
4238 + fi
4239 + echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
4240 + echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
4241 + if test "$ac_cv_prog_really_gcc" = yes; then
4242 +        :
4243 +
4244 + else
4245 +        :
4246 +
4247 + fi
4248 +
4249 +
4250 + # Try to determine "good" native compiler flags if none specified on command
4251 + # line
4252 + if test "$ac_test_CFLAGS" != "set"; then
4253 +  CFLAGS=""
4254 +  case "${host_cpu}-${host_os}" in
4255 +
4256 +  *linux*) if test "$CC" = icc; then
4257 +                    CFLAGS="-O"
4258 +                fi;;
4259 +  sparc-solaris2*) if test "$CC" = cc; then
4260 +                    CFLAGS="-native -fast -xO5 -dalign"
4261 +                 fi;;
4262 +
4263 +  alpha*-osf*)  if test "$CC" = cc; then
4264 +                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
4265 +                fi;;
4266 +
4267 +  hppa*-hpux*)  if test "$CC" = cc; then
4268 +                    CFLAGS="-Ae +O3 +Oall"
4269 +                fi;;
4270 +
4271 +   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
4272 +                    CFLAGS="-O3 -qtune=auto -qansialias -w"
4273 +                fi;;
4274 +   powerpc*-aix*)
4275 +        if test "$CC" = cc -o "$CC" = xlc; then
4276 +                CFLAGS="-O3 -qtune=auto -qansialias -w"
4277 +                echo "*******************************************************"
4278 +                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4279 +                echo "*  recommended that you use                           *"
4280 +                echo "*                                                     *"
4281 +                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4282 +                echo "*                                 ^^^                 *"
4283 +                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4284 +                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4285 +                echo "*******************************************************"
4286 +        fi;;
4287 +   *darwin*)
4288 +        if test "$CC" = xlc -o "$CC" = cc; then
4289 +                CFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
4290 +        fi;;
4291 +  esac
4292 +
4293 +  # use default flags for gcc on all systems
4294 +  if test $ac_cv_prog_really_gcc = yes; then
4295 +     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4296 +  fi
4297 +
4298 +  # test for gcc-specific flags:
4299 +  if test $ac_cv_prog_really_gcc = yes; then
4300 +    # -malign-double for x86 systems
4301 +
4302 +
4303 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
4304 + echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
4305 + if test "${ac_align_double+set}" = set; then
4306 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4307 + else
4308 +  echo 'void f(){}' > conftest.c
4309 + if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
4310 +        ac_align_double=yes
4311 + else
4312 +        ac_align_double=no
4313 + fi
4314 + rm -f conftest*
4315 +
4316 + fi
4317 + echo "$as_me:$LINENO: result: $ac_align_double" >&5
4318 + echo "${ECHO_T}$ac_align_double" >&6
4319 + if test "$ac_align_double" = yes; then
4320 +        :
4321 +        CFLAGS="$CFLAGS -malign-double"
4322 + else
4323 +        :
4324 +
4325 + fi
4326 +
4327 +    # -fstrict-aliasing for gcc-2.95+
4328 +
4329 +
4330 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
4331 + echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
4332 + if test "${ac_fstrict_aliasing+set}" = set; then
4333 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4334 + else
4335 +  echo 'void f(){}' > conftest.c
4336 + if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
4337 +        ac_fstrict_aliasing=yes
4338 + else
4339 +        ac_fstrict_aliasing=no
4340 + fi
4341 + rm -f conftest*
4342 +
4343 + fi
4344 + echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4345 + echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4346 + if test "$ac_fstrict_aliasing" = yes; then
4347 +        :
4348 +        CFLAGS="$CFLAGS -fstrict-aliasing"
4349 + else
4350 +        :
4351 +
4352 + fi
4353 +
4354 +  fi
4355 +
4356 +  CPU_FLAGS=""
4357 +  if test $ac_cv_prog_really_gcc = yes; then
4358 +                  case "${host_cpu}" in
4359 +          i586*)
4360 +
4361 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4362 + echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
4363 + if test "${ac_cpu_pentium+set}" = set; then
4364 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4365 + else
4366 +  echo 'void f(){}' > conftest.c
4367 + if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
4368 +        ac_cpu_pentium=yes
4369 + else
4370 +        ac_cpu_pentium=no
4371 + fi
4372 + rm -f conftest*
4373 +
4374 + fi
4375 + echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4376 + echo "${ECHO_T}$ac_cpu_pentium" >&6
4377 + if test "$ac_cpu_pentium" = yes; then
4378 +        :
4379 +        CPU_FLAGS=-mcpu=pentium
4380 + else
4381 +        :
4382 +
4383 +
4384 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
4385 + echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
4386 + if test "${ac_pentium+set}" = set; then
4387 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4388 + else
4389 +  echo 'void f(){}' > conftest.c
4390 + if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
4391 +        ac_pentium=yes
4392 + else
4393 +        ac_pentium=no
4394 + fi
4395 + rm -f conftest*
4396 +
4397 + fi
4398 + echo "$as_me:$LINENO: result: $ac_pentium" >&5
4399 + echo "${ECHO_T}$ac_pentium" >&6
4400 + if test "$ac_pentium" = yes; then
4401 +        :
4402 +        CPU_FLAGS=-mpentium
4403 + else
4404 +        :
4405 +
4406 + fi
4407 +
4408 + fi
4409 +
4410 +                  ;;
4411 +          i686*)
4412 +
4413 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
4414 + echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4415 + if test "${ac_cpu_pentiumpro+set}" = set; then
4416 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4417 + else
4418 +  echo 'void f(){}' > conftest.c
4419 + if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
4420 +        ac_cpu_pentiumpro=yes
4421 + else
4422 +        ac_cpu_pentiumpro=no
4423 + fi
4424 + rm -f conftest*
4425 +
4426 + fi
4427 + echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4428 + echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4429 + if test "$ac_cpu_pentiumpro" = yes; then
4430 +        :
4431 +        CPU_FLAGS=-mcpu=pentiumpro
4432 + else
4433 +        :
4434 +
4435 +
4436 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
4437 + echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
4438 + if test "${ac_pentiumpro+set}" = set; then
4439 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4440 + else
4441 +  echo 'void f(){}' > conftest.c
4442 + if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
4443 +        ac_pentiumpro=yes
4444 + else
4445 +        ac_pentiumpro=no
4446 + fi
4447 + rm -f conftest*
4448 +
4449 + fi
4450 + echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4451 + echo "${ECHO_T}$ac_pentiumpro" >&6
4452 + if test "$ac_pentiumpro" = yes; then
4453 +        :
4454 +        CPU_FLAGS=-mpentiumpro
4455 + else
4456 +        :
4457 +
4458 + fi
4459 +
4460 + fi
4461 +
4462 +                  ;;
4463 +          powerpc*)
4464 +                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
4465 +                is60x=`echo $cputype | egrep "^600-9e?$"`
4466 +                if test -n "$is60x"; then
4467 +
4468 +
4469 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
4470 + echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
4471 + if test "${ac_m_cpu_60x+set}" = set; then
4472 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4473 + else
4474 +  echo 'void f(){}' > conftest.c
4475 + if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
4476 +        ac_m_cpu_60x=yes
4477 + else
4478 +        ac_m_cpu_60x=no
4479 + fi
4480 + rm -f conftest*
4481 +
4482 + fi
4483 + echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4484 + echo "${ECHO_T}$ac_m_cpu_60x" >&6
4485 + if test "$ac_m_cpu_60x" = yes; then
4486 +        :
4487 +        CPU_FLAGS=-mcpu=$cputype
4488 + else
4489 +        :
4490 +
4491 + fi
4492 +
4493 +                elif test "$cputype" = 750; then
4494 +
4495 +
4496 + echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
4497 + echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
4498 + if test "${ac_cv_prog_gcc_2_95+set}" = set; then
4499 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4500 + else
4501 +
4502 + cat > conftest.c <<EOF
4503 + #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4504 + #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4505 +     yes;
4506 + #  endif
4507 + #endif
4508 + EOF
4509 + if { ac_try='${CC-cc} -E conftest.c'
4510 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 +  (eval $ac_try) 2>&5
4512 +  ac_status=$?
4513 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 +  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4515 +  ac_cv_prog_gcc_2_95=yes
4516 + else
4517 +  ac_cv_prog_gcc_2_95=no
4518 + fi
4519 +
4520 + fi
4521 + echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
4522 + echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
4523 + if test "$ac_cv_prog_gcc_2_95" = yes; then
4524 +        :
4525 +
4526 +
4527 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
4528 + echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
4529 + if test "${ac_m_cpu_750+set}" = set; then
4530 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4531 + else
4532 +  echo 'void f(){}' > conftest.c
4533 + if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
4534 +        ac_m_cpu_750=yes
4535 + else
4536 +        ac_m_cpu_750=no
4537 + fi
4538 + rm -f conftest*
4539 +
4540 + fi
4541 + echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
4542 + echo "${ECHO_T}$ac_m_cpu_750" >&6
4543 + if test "$ac_m_cpu_750" = yes; then
4544 +        :
4545 +        CPU_FLAGS=-mcpu=750
4546 + else
4547 +        :
4548 +
4549 + fi
4550 +
4551 + else
4552 +        :
4553 +
4554 + fi
4555 +
4556 +                fi
4557 +                if test -z "$CPU_FLAGS"; then
4558 +
4559 +
4560 + echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
4561 + echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
4562 + if test "${ac_m_cpu_powerpc+set}" = set; then
4563 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4564 + else
4565 +  echo 'void f(){}' > conftest.c
4566 + if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
4567 +        ac_m_cpu_powerpc=yes
4568 + else
4569          ac_m_cpu_powerpc=no
4570   fi
4571   rm -f conftest*
# Line 3681 | Line 4662 | fi
4662          CFLAGS=""
4663  
4664   fi
4665 +
4666 +
4667 + fi
4668 +
4669 +
4670 +
4671 +
4672  
4673  
4674 +
4675 + echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
4676 + echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6
4677 + if test "${ac_cv_prog_really_gxx+set}" = set; then
4678 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4679 + else
4680 +
4681 + cat > conftest.cpp <<EOF
4682 + #ifdef __GNUC__
4683 +  #ifndef __INTEL_COMPILER
4684 +     yes;
4685 +  #endif
4686 + #endif
4687 + EOF
4688 + if { ac_try='${CXX-c++} -E conftest.cpp'
4689 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4690 +  (eval $ac_try) 2>&5
4691 +  ac_status=$?
4692 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 +  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4694 +  ac_cv_prog_really_gxx=yes
4695 + else
4696 +  ac_cv_prog_really_gxx=no
4697   fi
4698  
4699 + fi
4700 + echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
4701 + echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
4702 + if test "$ac_cv_prog_really_gxx" = yes; then
4703 +        :
4704  
4705 + else
4706 +        :
4707  
4708 + fi
4709  
4710  
4711   # Try to determine "good" native compiler flags if none specified on command
# Line 3718 | Line 4737 | if test "$ac_test_CXXFLAGS" != "set"; then
4737                  echo "*******************************************************"
4738          fi;;
4739     *darwin*)
4740 <        if test "$CXX" = xlC; then
4741 <                CXXFLAGS="-O3 -qtune=auto -qansialias -w"
3723 <                echo "*******************************************************"
3724 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
3725 <                echo "*  recommended that you use                           *"
3726 <                echo "*                                                     *"
3727 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
3728 <                echo "*                                 ^^^                 *"
3729 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
3730 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
3731 <                echo "*******************************************************"
4740 >        if test "$CXX" = xlc++; then
4741 >                CXXFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
4742          fi;;
4743    esac
4744  
4745    # use default flags for gcc on all systems
4746 <  if test $ac_cv_c_compiler_gnu = yes; then
4746 >  if test $ac_cv_prog_really_gxx = yes; then
4747       CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4748    fi
4749  
4750    # test for gcc-specific flags:
4751 <  if test $ac_cv_c_compiler_gnu = yes; then
4751 >  if test $ac_cv_prog_really_gxx = yes; then
4752      # -malign-double for x86 systems
4753  
4754  
# Line 3796 | Line 4806 | fi
4806    fi
4807  
4808    CPU_FLAGS=""
4809 <  if test "$GCC" = "yes"; then
4809 >  if test $ac_cv_prog_really_gxx = yes; then
4810                    case "${host_cpu}" in
4811            i586*)
4812  
4813 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4814 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
4813 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
4814 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
4815   if test "${ac_cpu_pentium+set}" = set; then
4816    echo $ECHO_N "(cached) $ECHO_C" >&6
4817   else
4818 <  echo 'void f(){}' > conftest.c
4819 < if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
4818 >  echo 'void f(){}' > conftest.cpp
4819 > if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
4820          ac_cpu_pentium=yes
4821   else
4822          ac_cpu_pentium=no
# Line 3935 | Line 4945 | echo "$as_me:$LINENO: checking whether we are using gc
4945                  elif test "$cputype" = 750; then
4946  
4947  
4948 < echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
4949 < echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
4950 < if test "${ac_cv_prog_gcc_2_95+set}" = set; then
4948 > echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
4949 > echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
4950 > if test "${ac_cv_prog_gxx_2_95+set}" = set; then
4951    echo $ECHO_N "(cached) $ECHO_C" >&6
4952   else
4953  
4954 < cat > conftest.c <<EOF
4955 < #ifdef __GNUC__
4954 > cat > conftest.cpp <<EOF
4955 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4956   #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4957       yes;
4958   #  endif
4959   #endif
4960   EOF
4961 < if { ac_try='${CC-cc} -E conftest.c'
4961 > if { ac_try='${CXX-c++} -E conftest.cpp'
4962    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4963    (eval $ac_try) 2>&5
4964    ac_status=$?
4965    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966    (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4967 <  ac_cv_prog_gcc_2_95=yes
4967 >  ac_cv_prog_gxx_2_95=yes
4968   else
4969 <  ac_cv_prog_gcc_2_95=no
4969 >  ac_cv_prog_gxx_2_95=no
4970   fi
4971  
4972   fi
4973 < echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
4974 < echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
4975 < if test "$ac_cv_prog_gcc_2_95" = yes; then
4973 > echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
4974 > echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
4975 > if test "$ac_cv_prog_gxx_2_95" = yes; then
4976          :
4977  
4978  
# Line 4115 | Line 5125 | if test x"$F90FLAGS" == x ; then
5125   # Try to determine "good" native compiler flags if none specified on command
5126   # line
5127  
5128 < if test x"$F90FLAGS" == x ; then
5128 > if test x"$F90FLAGS" = x ; then
5129    F90FLAGS=""
5130    case "${host_cpu}-${host_os}" in
5131  
5132 <  *linux*) if test "$F90" = ifc; then
5132 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
5133                      F90FLAGS="-O"
5134                  fi;;
5135     rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
# Line 4139 | Line 5149 | if test x"$F90FLAGS" == x ; then
5149                  echo "*******************************************************"
5150          fi;;
5151     *darwin*)
5152 <        if test "$F90" = f90 -o "$F90" = xlf90; then
5153 <                F90FLAGS="-O3 -qtune=auto -w"
4144 <                echo "*********************************************************"
4145 <                echo "*  You have Darwin on an unknown powerpc system.  It is *"
4146 <                echo "*  recommended that you use                             *"
4147 <                echo "*                                                       *"
4148 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
4149 <                echo "*                                 ^^^                   *"
4150 <                echo "*  where xxx is 601, 603, 604, or whatever kind of      *"
4151 <                echo "*  PowerPC CPU you have.   For more info, man xlf.      *"
4152 <                echo "*********************************************************"
5152 >        if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then
5153 >                F90FLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto"
5154          fi;;
5155    esac
5156  
# Line 4195 | Line 5196 | ac_ext=c
5196          ac_guessed_f90flags=no
5197   fi
5198   rm -f conftest*
5199 < ac_ext=c
5200 < ac_cpp='$CPP $CPPFLAGS'
5201 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
5199 > ac_ext=f90
5200 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5201 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5203  
5204  
5205   fi
# Line 4239 | Line 5239 | esac
5239   # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5240   # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5241   # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5242 + # OS/2's system install, which has a completely different semantic
5243   # ./install, which can be erroneously created by make from ./install.sh.
5244   echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5245   echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
# Line 4255 | Line 5256 | case $as_dir/ in
5256   case $as_dir/ in
5257    ./ | .// | /cC/* | \
5258    /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5259 +  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5260    /usr/ucb/* ) ;;
5261    *)
5262      # OSF1 and SCO ODT 3.0 have their own names for install.
# Line 4262 | Line 5264 | case $as_dir/ in
5264      # by default.
5265      for ac_prog in ginstall scoinst install; do
5266        for ac_exec_ext in '' $ac_executable_extensions; do
5267 <        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5268 <          if test $ac_prog = install &&
5269 <            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5270 <            # AIX install.  It has an incompatible calling convention.
5271 <            :
5272 <          elif test $ac_prog = install &&
5273 <            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5274 <            # program-specific install script used by HP pwplus--don't use.
5275 <            :
5276 <          else
5277 <            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5278 <            break 3
5279 <          fi
5280 <        fi
5267 >        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5268 >          if test $ac_prog = install &&
5269 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5270 >            # AIX install.  It has an incompatible calling convention.
5271 >            :
5272 >          elif test $ac_prog = install &&
5273 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5274 >            # program-specific install script used by HP pwplus--don't use.
5275 >            :
5276 >          else
5277 >            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5278 >            break 3
5279 >          fi
5280 >        fi
5281        done
5282      done
5283      ;;
# Line 4318 | Line 5320 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./
5320  
5321   echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5322   echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5323 < set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5323 > set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5324   if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5325    echo $ECHO_N "(cached) $ECHO_C" >&6
5326   else
# Line 4466 | Line 5468 | test -n "$YACC" || YACC="yacc"
5468   done
5469   test -n "$YACC" || YACC="yacc"
5470  
4469
5471   for ac_prog in flex lex
5472   do
5473    # Extract the first word of "$ac_prog", so it can be a program name with args.
# Line 4518 | Line 5519 | cat >conftest.$ac_ext <<_ACEOF
5519    ac_check_lib_save_LIBS=$LIBS
5520   LIBS="-lfl  $LIBS"
5521   cat >conftest.$ac_ext <<_ACEOF
4521 #line $LINENO "configure"
4522 /* confdefs.h.  */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h.  */
5522  
5523 < /* Override any gcc2 internal prototype to avoid an error.  */
5524 < #ifdef __cplusplus
5525 < extern "C"
5526 < #endif
5527 < /* We use char because int might match the return type of a gcc2
4533 <   builtin and then its argument prototype would still apply.  */
4534 < char yywrap ();
4535 < int
4536 < main ()
4537 < {
4538 < yywrap ();
4539 <  ;
4540 <  return 0;
4541 < }
5523 > program main
5524 >
5525 > call yywrap
5526 > end program main
5527 >
5528   _ACEOF
5529   rm -f conftest.$ac_objext conftest$ac_exeext
5530   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5531 <  (eval $ac_link) 2>&5
5531 >  (eval $ac_link) 2>conftest.er1
5532    ac_status=$?
5533 +  grep -v '^ *+' conftest.er1 >conftest.err
5534 +  rm -f conftest.er1
5535 +  cat conftest.err >&5
5536    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537    (exit $ac_status); } &&
5538 <         { ac_try='test -s conftest$ac_exeext'
5538 >         { ac_try='test -z "$ac_f90_werror_flag"
5539 >                         || test ! -s conftest.err'
5540    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541    (eval $ac_try) 2>&5
5542    ac_status=$?
5543    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 +  (exit $ac_status); }; } &&
5545 +         { ac_try='test -s conftest$ac_exeext'
5546 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 +  (eval $ac_try) 2>&5
5548 +  ac_status=$?
5549 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550    (exit $ac_status); }; }; then
5551    ac_cv_lib_fl_yywrap=yes
5552   else
# Line 4559 | Line 5555 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
5555  
5556   ac_cv_lib_fl_yywrap=no
5557   fi
5558 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5558 > rm -f conftest.err conftest.$ac_objext \
5559 >      conftest$ac_exeext conftest.$ac_ext
5560   LIBS=$ac_check_lib_save_LIBS
5561   fi
5562   echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
# Line 4575 | Line 5572 | cat >conftest.$ac_ext <<_ACEOF
5572    ac_check_lib_save_LIBS=$LIBS
5573   LIBS="-ll  $LIBS"
5574   cat >conftest.$ac_ext <<_ACEOF
4578 #line $LINENO "configure"
4579 /* confdefs.h.  */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h.  */
5575  
5576 < /* Override any gcc2 internal prototype to avoid an error.  */
5577 < #ifdef __cplusplus
5578 < extern "C"
5579 < #endif
5580 < /* We use char because int might match the return type of a gcc2
4590 <   builtin and then its argument prototype would still apply.  */
4591 < char yywrap ();
4592 < int
4593 < main ()
4594 < {
4595 < yywrap ();
4596 <  ;
4597 <  return 0;
4598 < }
5576 > program main
5577 >
5578 > call yywrap
5579 > end program main
5580 >
5581   _ACEOF
5582   rm -f conftest.$ac_objext conftest$ac_exeext
5583   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5584 <  (eval $ac_link) 2>&5
5584 >  (eval $ac_link) 2>conftest.er1
5585    ac_status=$?
5586 +  grep -v '^ *+' conftest.er1 >conftest.err
5587 +  rm -f conftest.er1
5588 +  cat conftest.err >&5
5589    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590    (exit $ac_status); } &&
5591 <         { ac_try='test -s conftest$ac_exeext'
5591 >         { ac_try='test -z "$ac_f90_werror_flag"
5592 >                         || test ! -s conftest.err'
5593    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594    (eval $ac_try) 2>&5
5595    ac_status=$?
5596    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 +  (exit $ac_status); }; } &&
5598 +         { ac_try='test -s conftest$ac_exeext'
5599 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 +  (eval $ac_try) 2>&5
5601 +  ac_status=$?
5602 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603    (exit $ac_status); }; }; then
5604    ac_cv_lib_l_yywrap=yes
5605   else
# Line 4616 | Line 5608 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
5608  
5609   ac_cv_lib_l_yywrap=no
5610   fi
5611 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5611 > rm -f conftest.err conftest.$ac_objext \
5612 >      conftest$ac_exeext conftest.$ac_ext
5613   LIBS=$ac_check_lib_save_LIBS
5614   fi
5615   echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
# Line 4678 | Line 5671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5671   _ACEOF
5672   rm -f conftest.$ac_objext conftest$ac_exeext
5673   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5674 <  (eval $ac_link) 2>&5
5674 >  (eval $ac_link) 2>conftest.er1
5675    ac_status=$?
5676 +  grep -v '^ *+' conftest.er1 >conftest.err
5677 +  rm -f conftest.er1
5678 +  cat conftest.err >&5
5679    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680    (exit $ac_status); } &&
5681 <         { ac_try='test -s conftest$ac_exeext'
5681 >         { ac_try='test -z "$ac_f90_werror_flag"
5682 >                         || test ! -s conftest.err'
5683    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684    (eval $ac_try) 2>&5
5685    ac_status=$?
5686    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 +  (exit $ac_status); }; } &&
5688 +         { ac_try='test -s conftest$ac_exeext'
5689 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5690 +  (eval $ac_try) 2>&5
5691 +  ac_status=$?
5692 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693    (exit $ac_status); }; }; then
5694    ac_cv_prog_lex_yytext_pointer=yes
5695   else
# Line 4694 | Line 5697 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
5697   sed 's/^/| /' conftest.$ac_ext >&5
5698  
5699   fi
5700 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5700 > rm -f conftest.err conftest.$ac_objext \
5701 >      conftest$ac_exeext conftest.$ac_ext
5702   LIBS=$ac_save_LIBS
5703   rm -f "${LEX_OUTPUT_ROOT}.c"
5704  
# Line 4778 | Line 5782 | _ACEOF
5782        # `set' does not quote correctly, so add quotes (double-quote
5783        # substitution turns \\\\ into \\, and sed turns \\ into \).
5784        sed -n \
5785 <        "s/'/'\\\\''/g;
5786 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5785 >        "s/'/'\\\\''/g;
5786 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5787        ;;
5788      *)
5789        # `set' quotes correctly as required by POSIX, so do not add quotes.
5790        sed -n \
5791 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5791 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5792        ;;
5793      esac;
5794   } |
# Line 4807 | Line 5811 | ac_ext=f90
5811    exit 1
5812   fi
5813  
4810 ac_ext=f90
4811 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4812 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5814  
5815  
5816 <
5817 < ac_ext=f90
5818 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5819 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4820 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4821 < echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
4822 < echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
4823 < if test "${ac_cv_prog_f90_v+set}" = set; then
4824 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5816 > # Check whether --with-mpi or --without-mpi was given.
5817 > if test "${with_mpi+set}" = set; then
5818 >  withval="$with_mpi"
5819 >  with_mpi=$withval
5820   else
5821 <
5822 < cat >conftest.$ac_ext <<_ACEOF
4828 <
4829 < program main
4830 <
4831 <
4832 < end program main
4833 <
4834 < _ACEOF
4835 < rm -f conftest.$ac_objext
4836 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4837 <  (eval $ac_compile) 2>&5
4838 <  ac_status=$?
4839 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 <  (exit $ac_status); } &&
4841 <         { ac_try='test -s conftest.$ac_objext'
4842 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 <  (eval $ac_try) 2>&5
4844 <  ac_status=$?
4845 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 <  (exit $ac_status); }; }; then
4847 <  ac_cv_prog_f90_v=
4848 < # Try some options frequently used verbose output
4849 < for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4850 <  ac_ext=f90
4851 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4852 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4854 <
4855 < cat >conftest.$ac_ext <<_ACEOF
4856 <
4857 < program main
4858 <
4859 <
4860 < end program main
4861 <
4862 < _ACEOF
4863 <
4864 < # Compile and link our simple test program by passing a flag (argument
4865 < # 1 to this macro) to the Fortran 90 compiler in order to get
4866 < # "verbose" output that we can then parse for the Fortran 90 linker
4867 < # flags.
4868 < ac_save_F90FLAGS=$F90FLAGS
4869 < F90FLAGS="$F90FLAGS $ac_verb"
4870 <
4871 < (eval echo $as_me:4871: \"$ac_link\") >&5
4872 < ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4873 < echo "$ac_f90_v_output" >&5
4874 < F90FLAGS=$ac_save_F90FLAGS
4875 <
4876 < rm -f conftest.*
4877 < ac_ext=f90
4878 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4879 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4881 <
4882 < # If we are using xlf then replace all the commas with spaces.
4883 < if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4884 <  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4885 < fi
4886 <
4887 < # If we are using Cray Fortran then delete quotes.
4888 < # Use "\"" instead of '"' for font-lock-mode.
4889 < # FIXME: a more general fix for quoted arguments with spaces?
4890 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4891 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4892 < fi
4893 <  # look for -l* and *.a constructs in the output
4894 <  for ac_arg in $ac_f90_v_output; do
4895 <     case $ac_arg in
4896 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4897 <          ac_cv_prog_f90_v=$ac_verb
4898 <          break 2 ;;
4899 <     esac
4900 <  done
4901 < done
4902 < if test -z "$ac_cv_prog_f90_v"; then
4903 <   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
4904 < echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
4905 < fi
4906 < else
4907 <  echo "$as_me: failed program was:" >&5
4908 < sed 's/^/| /' conftest.$ac_ext >&5
5821 >  with_mpi="no"
5822 > fi;
5823  
5824 < { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
5825 < echo "$as_me: WARNING: compilation failed" >&2;}
5826 < fi
5827 < rm -f conftest.$ac_objext conftest.$ac_ext
4914 <
4915 < fi
4916 < echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
4917 < echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
4918 < echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
4919 < echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
4920 < if test "${ac_cv_flibs+set}" = set; then
4921 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4922 < else
4923 <  if test "x$F90LIBS" != "x"; then
4924 <  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
4925 < else
4926 <
4927 < ac_ext=f90
4928 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4929 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4931 <
4932 < cat >conftest.$ac_ext <<_ACEOF
4933 <
4934 < program main
4935 <
4936 <
4937 < end program main
4938 <
4939 < _ACEOF
4940 <
4941 < # Compile and link our simple test program by passing a flag (argument
4942 < # 1 to this macro) to the Fortran 90 compiler in order to get
4943 < # "verbose" output that we can then parse for the Fortran 90 linker
4944 < # flags.
4945 < ac_save_F90FLAGS=$F90FLAGS
4946 < F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
4947 <
4948 < (eval echo $as_me:4948: \"$ac_link\") >&5
4949 < ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4950 < echo "$ac_f90_v_output" >&5
4951 < F90FLAGS=$ac_save_F90FLAGS
4952 <
4953 < rm -f conftest.*
4954 < ac_ext=f90
4955 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4956 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4958 <
4959 < # If we are using xlf then replace all the commas with spaces.
4960 < if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4961 <  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4962 < fi
4963 <
4964 < # If we are using Cray Fortran then delete quotes.
4965 < # Use "\"" instead of '"' for font-lock-mode.
4966 < # FIXME: a more general fix for quoted arguments with spaces?
4967 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4968 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4969 < fi
4970 <
4971 < ac_cv_f90libs=
4972 <
4973 < # Save positional arguments (if any)
4974 < ac_save_positional="$@"
4975 <
4976 < set X $ac_f90_v_output
4977 < while test $# != 1; do
4978 <  shift
4979 <  ac_arg=$1
4980 <  case $ac_arg in
4981 <        [\\/]*.a | ?:[\\/]*.a)
4982 <            ac_exists=false
4983 <  for ac_i in $ac_cv_f90libs; do
4984 <    if test x"$ac_arg" = x"$ac_i"; then
4985 <      ac_exists=true
4986 <      break
4987 <    fi
4988 <  done
4989 <
4990 <  if test x"$ac_exists" = xtrue; then
4991 <  :
4992 < else
4993 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4994 < fi
4995 <
4996 <          ;;
4997 <        -bI:*)
4998 <            ac_exists=false
4999 <  for ac_i in $ac_cv_f90libs; do
5000 <    if test x"$ac_arg" = x"$ac_i"; then
5001 <      ac_exists=true
5002 <      break
5003 <    fi
5004 <  done
5005 <
5006 <  if test x"$ac_exists" = xtrue; then
5007 <  :
5008 < else
5009 <  if test "$ac_compiler_gnu" = yes; then
5010 <  for ac_link_opt in $ac_arg; do
5011 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
5012 <  done
5013 < else
5014 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5015 < fi
5016 < fi
5017 <
5018 <          ;;
5019 <          # Ignore these flags.
5020 <        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
5021 <          ;;
5022 <        -lkernel32)
5023 <          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5024 <          ;;
5025 <        -[LRuY])
5026 <          # These flags, when seen by themselves, take an argument.
5027 <          # We remove the space between option and argument and re-iterate
5028 <          # unless we find an empty arg or a new option (starting with -)
5029 <          case $2 in
5030 <             "" | -*);;
5031 <             *)
5032 <                ac_arg="$ac_arg$2"
5033 <
5034 <                shift; shift
5035 <                set X $ac_arg "$@"
5036 <                ;;
5037 <          esac
5038 <          ;;
5039 <        -YP,*)
5040 <          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
5041 <              ac_exists=false
5042 <  for ac_i in $ac_cv_f90libs; do
5043 <    if test x"$ac_j" = x"$ac_i"; then
5044 <      ac_exists=true
5045 <      break
5046 <    fi
5047 <  done
5048 <
5049 <  if test x"$ac_exists" = xtrue; then
5050 <  :
5051 < else
5052 <  ac_arg="$ac_arg $ac_j"
5053 <                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
5054 < fi
5055 <
5056 <          done
5057 <          ;;
5058 <        -[lLR]*)
5059 <            ac_exists=false
5060 <  for ac_i in $ac_cv_f90libs; do
5061 <    if test x"$ac_arg" = x"$ac_i"; then
5062 <      ac_exists=true
5063 <      break
5064 <    fi
5065 <  done
5066 <
5067 <  if test x"$ac_exists" = xtrue; then
5068 <  :
5069 < else
5070 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5071 < fi
5072 <
5073 <          ;;
5074 <          # Ignore everything else.
5075 <  esac
5076 < done
5077 < # restore positional arguments
5078 < set X $ac_save_positional; shift
5079 <
5080 < # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
5081 < # then we insist that the "run path" must be an absolute path (i.e. it
5082 < # must begin with a "/").
5083 < case `(uname -sr) 2>/dev/null` in
5084 <   "SunOS 5"*)
5085 <      ac_ld_run_path=`echo $ac_f90_v_output |
5086 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
5087 <      test "x$ac_ld_run_path" != x &&
5088 <
5089 <        if test "$ac_compiler_gnu" = yes; then
5090 <  for ac_link_opt in $ac_ld_run_path; do
5091 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
5092 <  done
5093 < else
5094 <  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
5095 < fi
5096 <      ;;
5097 < esac
5098 < fi # test "x$F90LIBS" = "x"
5099 <
5100 < fi
5101 < echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
5102 < echo "${ECHO_T}$ac_cv_flibs" >&6
5103 < F90LIBS="$ac_cv_f90libs"
5104 <
5105 < ac_ext=f90
5106 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5107 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5109 <
5110 < echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
5111 < echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
5112 < if test "${ac_cv_f90_mangling+set}" = set; then
5113 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5114 < else
5115 <  ac_ext=f90
5116 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5117 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5119 < cat >conftest.$ac_ext <<_ACEOF
5120 < subroutine foobar()
5121 < return
5122 < end
5123 < subroutine foo_bar()
5124 < return
5125 < end
5126 < _ACEOF
5127 < rm -f conftest.$ac_objext
5128 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5129 <  (eval $ac_compile) 2>&5
5130 <  ac_status=$?
5131 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 <  (exit $ac_status); } &&
5133 <         { ac_try='test -s conftest.$ac_objext'
5134 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 <  (eval $ac_try) 2>&5
5136 <  ac_status=$?
5137 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 <  (exit $ac_status); }; }; then
5139 <  mv conftest.$ac_objext cf90_test.$ac_objext
5140 <
5141 <  ac_ext=c
5142 < ac_cpp='$CPP $CPPFLAGS'
5143 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5144 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5145 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146 <
5147 <  ac_save_LIBS=$LIBS
5148 <  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
5149 <
5150 <  ac_success=no
5151 <  for ac_foobar in foobar FOOBAR; do
5152 <    for ac_underscore in "" "_"; do
5153 <      ac_func="$ac_foobar$ac_underscore"
5154 <      cat >conftest.$ac_ext <<_ACEOF
5155 < #line $LINENO "configure"
5156 < /* confdefs.h.  */
5157 < _ACEOF
5158 < cat confdefs.h >>conftest.$ac_ext
5159 < cat >>conftest.$ac_ext <<_ACEOF
5160 < /* end confdefs.h.  */
5161 <
5162 < /* Override any gcc2 internal prototype to avoid an error.  */
5163 < #ifdef __cplusplus
5164 < extern "C"
5165 < #endif
5166 < /* We use char because int might match the return type of a gcc2
5167 <   builtin and then its argument prototype would still apply.  */
5168 < char $ac_func ();
5169 < int
5170 < main ()
5171 < {
5172 < $ac_func ();
5173 <  ;
5174 <  return 0;
5175 < }
5176 < _ACEOF
5177 < rm -f conftest.$ac_objext conftest$ac_exeext
5178 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5179 <  (eval $ac_link) 2>&5
5180 <  ac_status=$?
5181 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 <  (exit $ac_status); } &&
5183 <         { ac_try='test -s conftest$ac_exeext'
5184 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185 <  (eval $ac_try) 2>&5
5186 <  ac_status=$?
5187 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 <  (exit $ac_status); }; }; then
5189 <  ac_success=yes; break 2
5190 < else
5191 <  echo "$as_me: failed program was:" >&5
5192 < sed 's/^/| /' conftest.$ac_ext >&5
5193 <
5194 < fi
5195 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5196 <    done
5197 <  done
5198 <
5199 <  if test "$ac_success" = "yes"; then
5200 <     case $ac_foobar in
5201 <        foobar)
5202 <           ac_case=lower
5203 <           ac_foo_bar=foo_bar
5204 <           ;;
5205 <        FOOBAR)
5206 <           ac_case=upper
5207 <           ac_foo_bar=FOO_BAR
5208 <           ;;
5209 <     esac
5210 <
5211 <     ac_success_extra=no
5212 <     for ac_extra in "" "_"; do
5213 <        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
5214 <
5215 <        cat >conftest.$ac_ext <<_ACEOF
5216 < #line $LINENO "configure"
5217 < /* confdefs.h.  */
5218 < _ACEOF
5219 < cat confdefs.h >>conftest.$ac_ext
5220 < cat >>conftest.$ac_ext <<_ACEOF
5221 < /* end confdefs.h.  */
5222 <
5223 < /* Override any gcc2 internal prototype to avoid an error.  */
5224 < #ifdef __cplusplus
5225 < extern "C"
5226 < #endif
5227 < /* We use char because int might match the return type of a gcc2
5228 <   builtin and then its argument prototype would still apply.  */
5229 < char $ac_func ();
5230 < int
5231 < main ()
5232 < {
5233 < $ac_func ();
5234 <  ;
5235 <  return 0;
5236 < }
5237 < _ACEOF
5238 < rm -f conftest.$ac_objext conftest$ac_exeext
5239 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5240 <  (eval $ac_link) 2>&5
5241 <  ac_status=$?
5242 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 <  (exit $ac_status); } &&
5244 <         { ac_try='test -s conftest$ac_exeext'
5245 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 <  (eval $ac_try) 2>&5
5247 <  ac_status=$?
5248 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 <  (exit $ac_status); }; }; then
5250 <  ac_success_extra=yes; break
5251 < else
5252 <  echo "$as_me: failed program was:" >&5
5253 < sed 's/^/| /' conftest.$ac_ext >&5
5254 <
5255 < fi
5256 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5257 <     done
5258 <
5259 <     if test "$ac_success_extra" = "yes"; then
5260 <        ac_cv_f90_mangling="$ac_case case"
5261 <        if test -z "$ac_underscore"; then
5262 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
5263 <        else
5264 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
5265 <
5266 <        fi
5267 <        if test -z "$ac_extra"; then
5268 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
5269 <        else
5270 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
5271 <        fi
5272 <      else
5273 <        ac_cv_f90_mangling="unknown"
5274 <      fi
5275 <  else
5276 <     ac_cv_f90_mangling="unknown"
5277 <
5278 <  fi
5279 <
5280 <  LIBS=$ac_save_LIBS
5281 <  ac_ext=f90
5282 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5283 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5284 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5285 <  rm -f cf90_test* conftest*
5286 < else
5287 <  echo "$as_me: failed program was:" >&5
5288 < sed 's/^/| /' conftest.$ac_ext >&5
5289 <
5290 < fi
5291 < rm -f conftest.$ac_objext conftest.$ac_ext
5292 < ac_ext=f90
5293 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5294 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5295 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5296 <
5297 < fi
5298 < echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
5299 < echo "${ECHO_T}$ac_cv_f90_mangling" >&6
5300 <
5301 <
5302 <
5303 < case $ac_cv_f90_mangling in
5304 <  "lower case, no underscore, no extra underscore")
5305 <          cat >>confdefs.h <<\_ACEOF
5306 < #define F90_FUNC(name,NAME) name
5307 < _ACEOF
5308 <
5309 <          cat >>confdefs.h <<\_ACEOF
5310 < #define F90_FUNC_(name,NAME) name
5311 < _ACEOF
5312 < ;;
5313 <  "lower case, no underscore, extra underscore")
5314 <          cat >>confdefs.h <<\_ACEOF
5315 < #define F90_FUNC(name,NAME) name
5316 < _ACEOF
5317 <
5318 <          cat >>confdefs.h <<\_ACEOF
5319 < #define F90_FUNC_(name,NAME) name ## _
5320 < _ACEOF
5321 < ;;
5322 <  "lower case, underscore, no extra underscore")
5323 <          cat >>confdefs.h <<\_ACEOF
5324 < #define F90_FUNC(name,NAME) name ## _
5325 < _ACEOF
5326 <
5327 <          cat >>confdefs.h <<\_ACEOF
5328 < #define F90_FUNC_(name,NAME) name ## _
5329 < _ACEOF
5330 < ;;
5331 <  "lower case, underscore, extra underscore")
5332 <          cat >>confdefs.h <<\_ACEOF
5333 < #define F90_FUNC(name,NAME) name ## _
5334 < _ACEOF
5335 <
5336 <          cat >>confdefs.h <<\_ACEOF
5337 < #define F90_FUNC_(name,NAME) name ## __
5338 < _ACEOF
5339 < ;;
5340 <  "upper case, no underscore, no extra underscore")
5341 <          cat >>confdefs.h <<\_ACEOF
5342 < #define F90_FUNC(name,NAME) NAME
5343 < _ACEOF
5344 <
5345 <          cat >>confdefs.h <<\_ACEOF
5346 < #define F90_FUNC_(name,NAME) NAME
5347 < _ACEOF
5348 < ;;
5349 <  "upper case, no underscore, extra underscore")
5350 <          cat >>confdefs.h <<\_ACEOF
5351 < #define F90_FUNC(name,NAME) NAME
5352 < _ACEOF
5353 <
5354 <          cat >>confdefs.h <<\_ACEOF
5355 < #define F90_FUNC_(name,NAME) NAME ## _
5356 < _ACEOF
5357 < ;;
5358 <  "upper case, underscore, no extra underscore")
5359 <          cat >>confdefs.h <<\_ACEOF
5360 < #define F90_FUNC(name,NAME) NAME ## _
5361 < _ACEOF
5362 <
5363 <          cat >>confdefs.h <<\_ACEOF
5364 < #define F90_FUNC_(name,NAME) NAME ## _
5365 < _ACEOF
5366 < ;;
5367 <  "upper case, underscore, extra underscore")
5368 <          cat >>confdefs.h <<\_ACEOF
5369 < #define F90_FUNC(name,NAME) NAME ## _
5370 < _ACEOF
5371 <
5372 <          cat >>confdefs.h <<\_ACEOF
5373 < #define F90_FUNC_(name,NAME) NAME ## __
5374 < _ACEOF
5375 < ;;
5376 <  *)
5377 <          { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
5378 < echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
5379 <          ;;
5380 < esac
5381 <
5382 <
5383 <
5384 <
5385 <
5386 < echo "$as_me:$LINENO: checking for module suffix" >&5
5387 < echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
5388 < rm -f conftest*
5389 < # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
5390 < rm -f work*
5391 < cat >conftest.f <<EOF
5392 <        module conftest
5393 <        integer n
5394 <        parameter (n=1)
5395 <        end module conftest
5396 < EOF
5397 < # SGI and absoft compilers generates module name in upper case!
5398 < testname="conftest"
5399 < modcase="lower"
5400 < if $F90 -c conftest.f > conftest.out 2>&1 ; then
5401 <    MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
5402 <    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
5403 <    if test -z "$MOD" ; then
5404 <        MOD=`ls CONFTEST* 2>/dev/null \
5405 <                | grep -v CONFTEST.f | grep -v CONFTEST.o`
5406 <        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
5407 <        if test -n "$MOD" ; then
5408 <            testname="CONFTEST"
5409 <            modcase="upper"
5410 <        fi
5411 <    fi
5412 <    if test -z "$MOD" ; then
5413 <        echo "$as_me:$LINENO: result: unknown" >&5
5414 < echo "${ECHO_T}unknown" >&6
5415 <        # Use mod if we can't figure it out
5416 <        MOD="mod"
5417 <    else
5418 <        echo "$as_me:$LINENO: result: $MOD" >&5
5419 < echo "${ECHO_T}$MOD" >&6
5420 <    fi
5421 <    if test -s work.pcl ; then
5422 <        { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
5423 < echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
5424 <    fi
5425 < else
5426 <    echo "$as_me:$LINENO: result: unknown" >&5
5427 < echo "${ECHO_T}unknown" >&6
5428 < fi
5429 <
5430 <
5431 <
5432 <
5433 <
5434 < # Check for module include path (some use -I, some (Solaris) use -M, some
5435 < # (absoft) use -p).
5436 < # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
5437 < # specified, work.pcl and work.pc are created.  However, if you specify
5438 < # a file, it must contain a the name of a file ending in .pc .  Ugh!
5439 < # Use the module made above
5440 < echo "$as_me:$LINENO: checking for module directory path flag" >&5
5441 < echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
5442 < madedir=0
5443 < if test ! -d conf ; then mkdir conf ; madedir=1; fi
5444 < cp $testname.$MOD conf
5445 < rm -f conftest* CONFTEST*
5446 < cat >conftest1.f <<EOF
5447 <        program main
5448 <        use conftest
5449 <        print *, n
5450 <        end
5451 < EOF
5452 < F90_WORK_FILES_ARG=""
5453 < F90MODINCSPEC=""
5454 < if $F90 -c -Iconf conftest1.f > conftest.out 2>&1 ; then
5455 <    MODDIRFLAG="-I"
5456 <    F90MODINCSPEC="-I<dir>"
5457 <    echo "$as_me:$LINENO: result: -I" >&5
5458 < echo "${ECHO_T}-I" >&6
5459 < elif $F90 -c -Mconf conftest1.f >> conftest.out 2>&1 ; then
5460 <    MODDIRFLAG="-M"
5461 <    F90MODINCSPEC="-M<dir>"
5462 <    echo "$as_me:$LINENO: result: -M" >&5
5463 < echo "${ECHO_T}-M" >&6
5464 < elif $F90 -c -pconf conftest1.f >> conftest.out 2>&1 ; then
5465 <    MODDIRFLAG="-p"
5466 <    F90MODINCSPEC="-p<dir>"
5467 <    echo "$as_me:$LINENO: result: -p" >&5
5468 < echo "${ECHO_T}-p" >&6
5469 < elif test -s work.pc ; then
5470 <     cp work.pc conf/mpimod.pc
5471 <     echo "mpimod.pc" > conf/mpimod.pcl
5472 <     echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
5473 <     if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
5474 <         MODDIRFLAG='-cl,mpimod.pcl'
5475 <         echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and
5476 < directories" >&5
5477 < echo "${ECHO_T}-cl,filename where filename contains a list of files and
5478 < directories" >&6
5479 <         F90_WORK_FILES_ARG="-cl,mpimod.pcl"
5480 <         F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
5481 <
5482 <     else
5483 <         # The version of the Intel compiler that I have refuses to let
5484 <         # you put the "work catalog" list anywhere but the current directory.
5485 <         # For example, you cannot in
5486 <         :
5487 <     fi
5488 < fi
5489 < if test -z "MODDIRFLAG" ; then
5490 <    echo "$as_me:$LINENO: result: unknown" >&5
5491 < echo "${ECHO_T}unknown" >&6
5492 < fi
5493 <
5494 <
5495 < rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
5496 < if test $madedir = 1 ; then rmdir conf ; fi
5497 <
5498 <
5499 <
5500 < echo "$as_me:$LINENO: checking for mpi-directory" >&5
5501 < echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
5502 <
5503 < # Check whether --with-mpi_dir or --without-mpi_dir was given.
5504 < if test "${with_mpi_dir+set}" = set; then
5505 <  withval="$with_mpi_dir"
5506 <  MPI_DIR="$withval"
5507 < else
5508 <  MPI_DIR="/usr/local"
5509 < fi;
5510 < echo "$as_me:$LINENO: result: $MPI_DIR" >&5
5511 < echo "${ECHO_T}$MPI_DIR" >&6
5512 <
5513 <
5514 < echo "$as_me:$LINENO: checking for mpi-lib-directory" >&5
5515 < echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6
5516 <
5517 < # Check whether --with-mpi_libdir or --without-mpi_libdir was given.
5518 < if test "${with_mpi_libdir+set}" = set; then
5519 <  withval="$with_mpi_libdir"
5520 <  MPI_LIBDIR="$withval"
5521 < else
5522 <  MPI_LIBDIR="$MPI_DIR/lib"
5523 < fi;
5524 < echo "$as_me:$LINENO: result: $MPI_LIBDIR" >&5
5525 < echo "${ECHO_T}$MPI_LIBDIR" >&6
5526 <
5527 <
5528 < echo "$as_me:$LINENO: checking for mpi-inc-directory" >&5
5529 < echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6
5530 <
5531 < # Check whether --with-mpi_inc or --without-mpi_inc was given.
5532 < if test "${with_mpi_inc+set}" = set; then
5533 <  withval="$with_mpi_inc"
5534 <  MPI_INC="$withval"
5535 < else
5536 <  MPI_INC="$MPI_DIR/include"
5537 < fi;
5538 < echo "$as_me:$LINENO: result: $MPI_INC" >&5
5539 < echo "${ECHO_T}$MPI_INC" >&6
5540 <
5541 <
5542 <
5543 < echo "$as_me:$LINENO: checking for MPI library" >&5
5544 < echo $ECHO_N "checking for MPI library... $ECHO_C" >&6
5545 < MPI_LIB=""
5546 < case "$host" in
5547 <  *-ibm-aix*)
5548 <    echo "$as_me:$LINENO: checking whether to use signal-based MPI library" >&5
5549 < echo $ECHO_N "checking whether to use signal-based MPI library... $ECHO_C" >&6
5550 <    echo "$as_me:$LINENO: result: $PACX_SIGNAL" >&5
5551 < echo "${ECHO_T}$PACX_SIGNAL" >&6
5552 <    if test "x$PACX_SIGNAL" = "xyes" ; then
5553 <      if test -f "$MPI_LIBDIR/libmpi.a" ; then
5554 <        MPI_LIB="-lmpi"
5555 <      elif test -f "$MPI_LIBDIR/libmpi.so" ; then
5556 <        MPI_LIB="-lmpi"
5557 <      elif test -f "$MPI_LIBDIR/libmpich.a" ; then
5558 <        MPI_LIB="-lmpich"
5559 <      else
5560 <        { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5561 < echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
5562 <   { (exit 1); exit 1; }; }
5563 <      fi
5564 <    else
5565 <      if test -f "$MPI_LIBDIR/libmpi_r.a" ; then
5566 <         MPI_LIB="-lmpi_r"
5567 <      else
5568 <         { { echo "$as_me:$LINENO: error: libmpi_r not found; check path for MPI package..." >&5
5569 < echo "$as_me: error: libmpi_r not found; check path for MPI package..." >&2;}
5570 <   { (exit 1); exit 1; }; }
5571 <      fi
5572 <    fi
5573 <    echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5574 < echo "${ECHO_T}found $MPI_LIB" >&6
5575 <  ;;
5576 <  *)                             if test -f "$MPI_LIBDIR/libmpi.a" ; then
5577 <      MPI_LIB="-lmpi"
5578 <    elif test -f "$MPI_LIBDIR/libmpi.so" ; then
5579 <      MPI_LIB="-lmpi"
5580 <    elif test -f "$MPI_LIBDIR/libmpich.a" ; then
5581 <      MPI_LIB="-lmpich"
5582 <    else
5583 <      { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5584 < echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
5585 <   { (exit 1); exit 1; }; }
5586 <    fi
5587 <    echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5588 < echo "${ECHO_T}found $MPI_LIB" >&6
5589 <  ;;
5824 > case "x$with_mpi" in
5825 >        xyes | "x")  USE_MPI=yes;;
5826 >        xno) USE_MPI=no ;;
5827 >        *) MPI="$with_mpi"; USE_MPI=yes ;;
5828   esac
5829 + if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then
5830 +        MPI="/usr/local"
5831 + fi
5832 + if test "$USE_MPI" = "yes"; then
5833 +        echo "MPI = $MPI"
5834  
5835  
5836 + # Set variables...
5837 + MPI_LIB_DIR="$MPI/lib"
5838 + MPI_INC_DIR="$MPI/include"
5839  
5840  
5841  
5842 <
5843 <
5844 <        for ac_prog in mpif90 hf90 mpxlf90 mpf90 mpxlf95 mpxlf_r
5845 < do
5846 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
5847 < set dummy $ac_prog; ac_word=$2
5848 < echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5604 < if test "${ac_cv_prog_MPIF90+set}" = set; then
5605 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5842 > echo "$as_me:$LINENO: checking for mpi.h" >&5
5843 > echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
5844 > have_mpi_h=0
5845 > echo '#include <mpi.h>' > conftest.cc
5846 > if test -z "`${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1`"; then
5847 >        echo "$as_me:$LINENO: result: yes" >&5
5848 > echo "${ECHO_T}yes" >&6
5849 >        have_mpi_h=1
5850   else
5851 <  if test -n "$MPIF90"; then
5852 <  ac_cv_prog_MPIF90="$MPIF90" # Let the user override the test.
5853 < else
5854 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 < for as_dir in $PATH
5856 < do
5613 <  IFS=$as_save_IFS
5614 <  test -z "$as_dir" && as_dir=.
5615 <  for ac_exec_ext in '' $ac_executable_extensions; do
5616 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5617 <    ac_cv_prog_MPIF90="$ac_prog"
5618 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5619 <    break 2
5620 <  fi
5621 < done
5622 < done
5851 >        echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
5852 > echo "${ECHO_T}no! Check MPI include paths" >&6
5853 >        USE_MPI="no"
5854 > fi
5855 > rm -f conftest*
5856 > if test "$have_mpi_h" = 1; then
5857  
5858 + cat >>confdefs.h <<\_ACEOF
5859 + #define HAVE_MPI_H 1
5860 + _ACEOF
5861 +
5862   fi
5863 < fi
5864 < MPIF90=$ac_cv_prog_MPIF90
5865 < if test -n "$MPIF90"; then
5866 <  echo "$as_me:$LINENO: result: $MPIF90" >&5
5867 < echo "${ECHO_T}$MPIF90" >&6
5863 >
5864 > echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
5865 > echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
5866 > have_mpif_h=0
5867 > rm -f conftest*
5868 > cat >conftest.f90 <<EOF
5869 > program main
5870 >   include 'mpif.h'
5871 > end
5872 > EOF
5873 > if $F90 -I$MPI_INC_DIR -c conftest.f90 > conftest.out 2>&1 ; then
5874 >        echo "$as_me:$LINENO: result: yes" >&5
5875 > echo "${ECHO_T}yes" >&6
5876 >        MPI_F90_INC="$MPI_INC_DIR"
5877 >        have_mpif_h=1
5878   else
5879 <  echo "$as_me:$LINENO: result: no" >&5
5880 < echo "${ECHO_T}no" >&6
5879 >        if test -s conftest.out ; then
5880 >                cat conftest.out >> config.log
5881 >        fi
5882 >        echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
5883 > echo "${ECHO_T}no! Check MPI include paths" >&6
5884 >        USE_MPI="no"
5885   fi
5886 + rm -f conftest*
5887  
5888 <  test -n "$MPIF90" && break
5636 < done
5637 < test -n "$MPIF90" || MPIF90="$F90"
5888 > if test "$have_mpif_h" = 1; then
5889  
5890 <        acx_mpi_save_F90="$F90"
5891 <        F90="$MPIF90"
5890 > cat >>confdefs.h <<\_ACEOF
5891 > #define HAVE_MPIF_H 1
5892 > _ACEOF
5893  
5894 + fi
5895  
5896 + ac_ext=c
5897 + ac_cpp='$CPP $CPPFLAGS'
5898 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5899 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5900 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
5901  
5902 < if test x = x"$MPILIBS"; then
5903 <        echo "$as_me:$LINENO: checking for MPI_Init" >&5
5646 < echo $ECHO_N "checking for MPI_Init... $ECHO_C" >&6
5647 <                        cat >conftest.$ac_ext <<_ACEOF
5902 > ac_save_LDFLAGS=$LDFLAGS
5903 > LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} "
5904  
5905 < program main
5905 > if test x = x"$MPI_LIB"; then
5906 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5907 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
5908 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
5909 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5910 > else
5911 >  ac_check_lib_save_LIBS=$LIBS
5912 > LIBS="-lmpi  $LIBS"
5913 > cat >conftest.$ac_ext <<_ACEOF
5914 > /* confdefs.h.  */
5915 > _ACEOF
5916 > cat confdefs.h >>conftest.$ac_ext
5917 > cat >>conftest.$ac_ext <<_ACEOF
5918 > /* end confdefs.h.  */
5919  
5920 <      call MPI_Init
5921 < end program main
5920 > /* Override any gcc2 internal prototype to avoid an error.  */
5921 > #ifdef __cplusplus
5922 > extern "C"
5923 > #endif
5924 > /* We use char because int might match the return type of a gcc2
5925 >   builtin and then its argument prototype would still apply.  */
5926 > char MPI_Init ();
5927 > int
5928 > main ()
5929 > {
5930 > MPI_Init ();
5931 >  ;
5932 >  return 0;
5933 > }
5934 > _ACEOF
5935 > rm -f conftest.$ac_objext conftest$ac_exeext
5936 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5937 >  (eval $ac_link) 2>conftest.er1
5938 >  ac_status=$?
5939 >  grep -v '^ *+' conftest.er1 >conftest.err
5940 >  rm -f conftest.er1
5941 >  cat conftest.err >&5
5942 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 >  (exit $ac_status); } &&
5944 >         { ac_try='test -z "$ac_c_werror_flag"
5945 >                         || test ! -s conftest.err'
5946 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 >  (eval $ac_try) 2>&5
5948 >  ac_status=$?
5949 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 >  (exit $ac_status); }; } &&
5951 >         { ac_try='test -s conftest$ac_exeext'
5952 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953 >  (eval $ac_try) 2>&5
5954 >  ac_status=$?
5955 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 >  (exit $ac_status); }; }; then
5957 >  ac_cv_lib_mpi_MPI_Init=yes
5958 > else
5959 >  echo "$as_me: failed program was:" >&5
5960 > sed 's/^/| /' conftest.$ac_ext >&5
5961  
5962 + ac_cv_lib_mpi_MPI_Init=no
5963 + fi
5964 + rm -f conftest.err conftest.$ac_objext \
5965 +      conftest$ac_exeext conftest.$ac_ext
5966 + LIBS=$ac_check_lib_save_LIBS
5967 + fi
5968 + echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
5969 + echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
5970 + if test $ac_cv_lib_mpi_MPI_Init = yes; then
5971 +  MPI_LIB="-lmpi"
5972 + fi
5973 +
5974 + fi
5975 + if test x = x"$MPI_LIB"; then
5976 +        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
5977 + echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
5978 + if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
5979 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5980 + else
5981 +  ac_check_lib_save_LIBS=$LIBS
5982 + LIBS="-lmpich  $LIBS"
5983 + cat >conftest.$ac_ext <<_ACEOF
5984 + /* confdefs.h.  */
5985   _ACEOF
5986 + cat confdefs.h >>conftest.$ac_ext
5987 + cat >>conftest.$ac_ext <<_ACEOF
5988 + /* end confdefs.h.  */
5989 +
5990 + /* Override any gcc2 internal prototype to avoid an error.  */
5991 + #ifdef __cplusplus
5992 + extern "C"
5993 + #endif
5994 + /* We use char because int might match the return type of a gcc2
5995 +   builtin and then its argument prototype would still apply.  */
5996 + char MPI_Init ();
5997 + int
5998 + main ()
5999 + {
6000 + MPI_Init ();
6001 +  ;
6002 +  return 0;
6003 + }
6004 + _ACEOF
6005   rm -f conftest.$ac_objext conftest$ac_exeext
6006   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6007 <  (eval $ac_link) 2>&5
6007 >  (eval $ac_link) 2>conftest.er1
6008    ac_status=$?
6009 +  grep -v '^ *+' conftest.er1 >conftest.err
6010 +  rm -f conftest.er1
6011 +  cat conftest.err >&5
6012    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013    (exit $ac_status); } &&
6014 <         { ac_try='test -s conftest$ac_exeext'
6014 >         { ac_try='test -z "$ac_c_werror_flag"
6015 >                         || test ! -s conftest.err'
6016    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017    (eval $ac_try) 2>&5
6018    ac_status=$?
6019    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 +  (exit $ac_status); }; } &&
6021 +         { ac_try='test -s conftest$ac_exeext'
6022 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 +  (eval $ac_try) 2>&5
6024 +  ac_status=$?
6025 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026    (exit $ac_status); }; }; then
6027 <  MPILIBS=" "
5668 <                                echo "$as_me:$LINENO: result: yes" >&5
5669 < echo "${ECHO_T}yes" >&6
6027 >  ac_cv_lib_mpich_MPI_Init=yes
6028   else
6029    echo "$as_me: failed program was:" >&5
6030   sed 's/^/| /' conftest.$ac_ext >&5
6031  
6032 < echo "$as_me:$LINENO: result: no" >&5
5675 < echo "${ECHO_T}no" >&6
6032 > ac_cv_lib_mpich_MPI_Init=no
6033   fi
6034 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6034 > rm -f conftest.err conftest.$ac_objext \
6035 >      conftest$ac_exeext conftest.$ac_ext
6036 > LIBS=$ac_check_lib_save_LIBS
6037   fi
6038 < if test x = x"$MPILIBS"; then
6038 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
6039 > echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
6040 > if test $ac_cv_lib_mpich_MPI_Init = yes; then
6041 >  MPI_LIB="-lmpich"
6042 > fi
6043 >
6044 > fi
6045 > $as_unset ac_cv_lib_mpi_MPI_Init
6046 > if test x = x"$MPI_LIB"; then
6047          echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
6048   echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
6049   if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
6050    echo $ECHO_N "(cached) $ECHO_C" >&6
6051   else
6052    ac_check_lib_save_LIBS=$LIBS
6053 < LIBS="-lmpi  $LIBS"
6053 > LIBS="-lmpi "-llam" $LIBS"
6054   cat >conftest.$ac_ext <<_ACEOF
6055 <
6056 < program main
6055 > /* confdefs.h.  */
6056 > _ACEOF
6057 > cat confdefs.h >>conftest.$ac_ext
6058 > cat >>conftest.$ac_ext <<_ACEOF
6059 > /* end confdefs.h.  */
6060  
6061 < call MPI_Init
6062 < end program main
6063 <
6061 > /* Override any gcc2 internal prototype to avoid an error.  */
6062 > #ifdef __cplusplus
6063 > extern "C"
6064 > #endif
6065 > /* We use char because int might match the return type of a gcc2
6066 >   builtin and then its argument prototype would still apply.  */
6067 > char MPI_Init ();
6068 > int
6069 > main ()
6070 > {
6071 > MPI_Init ();
6072 >  ;
6073 >  return 0;
6074 > }
6075   _ACEOF
6076   rm -f conftest.$ac_objext conftest$ac_exeext
6077   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6078 <  (eval $ac_link) 2>&5
6078 >  (eval $ac_link) 2>conftest.er1
6079    ac_status=$?
6080 +  grep -v '^ *+' conftest.er1 >conftest.err
6081 +  rm -f conftest.er1
6082 +  cat conftest.err >&5
6083    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084    (exit $ac_status); } &&
6085 <         { ac_try='test -s conftest$ac_exeext'
6085 >         { ac_try='test -z "$ac_c_werror_flag"
6086 >                         || test ! -s conftest.err'
6087    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088    (eval $ac_try) 2>&5
6089    ac_status=$?
6090    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 +  (exit $ac_status); }; } &&
6092 +         { ac_try='test -s conftest$ac_exeext'
6093 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 +  (eval $ac_try) 2>&5
6095 +  ac_status=$?
6096 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097    (exit $ac_status); }; }; then
6098    ac_cv_lib_mpi_MPI_Init=yes
6099   else
# Line 5711 | Line 6102 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
6102  
6103   ac_cv_lib_mpi_MPI_Init=no
6104   fi
6105 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6105 > rm -f conftest.err conftest.$ac_objext \
6106 >      conftest$ac_exeext conftest.$ac_ext
6107   LIBS=$ac_check_lib_save_LIBS
6108   fi
6109   echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
6110   echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
6111   if test $ac_cv_lib_mpi_MPI_Init = yes; then
6112 <  MPILIBS="-lmpi"
6112 >  MPI_LIB="-lmpi -llam"
6113   fi
6114  
6115   fi
6116 < if test x = x"$MPILIBS"; then
6117 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
6118 < echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
6119 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
6116 >
6117 > $as_unset ac_cv_lib_mpi_MPI_Init
6118 > if test x = x"$MPI_LIB"; then
6119 > echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
6120 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
6121 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
6122    echo $ECHO_N "(cached) $ECHO_C" >&6
6123   else
6124    ac_check_lib_save_LIBS=$LIBS
6125 < LIBS="-lmpich  $LIBS"
6125 > LIBS="-lmpi -llam -lpthread $LIBS"
6126   cat >conftest.$ac_ext <<_ACEOF
6127 + /* confdefs.h.  */
6128 + _ACEOF
6129 + cat confdefs.h >>conftest.$ac_ext
6130 + cat >>conftest.$ac_ext <<_ACEOF
6131 + /* end confdefs.h.  */
6132  
6133 < program main
6134 <
6135 < call MPI_Init
6136 < end program main
6137 <
6133 > /* Override any gcc2 internal prototype to avoid an error.  */
6134 > #ifdef __cplusplus
6135 > extern "C"
6136 > #endif
6137 > /* We use char because int might match the return type of a gcc2
6138 >   builtin and then its argument prototype would still apply.  */
6139 > char MPI_Init ();
6140 > int
6141 > main ()
6142 > {
6143 > MPI_Init ();
6144 >  ;
6145 >  return 0;
6146 > }
6147   _ACEOF
6148   rm -f conftest.$ac_objext conftest$ac_exeext
6149   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6150 <  (eval $ac_link) 2>&5
6150 >  (eval $ac_link) 2>conftest.er1
6151    ac_status=$?
6152 +  grep -v '^ *+' conftest.er1 >conftest.err
6153 +  rm -f conftest.er1
6154 +  cat conftest.err >&5
6155    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156    (exit $ac_status); } &&
6157 <         { ac_try='test -s conftest$ac_exeext'
6157 >         { ac_try='test -z "$ac_c_werror_flag"
6158 >                         || test ! -s conftest.err'
6159    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160    (eval $ac_try) 2>&5
6161    ac_status=$?
6162    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 +  (exit $ac_status); }; } &&
6164 +         { ac_try='test -s conftest$ac_exeext'
6165 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 +  (eval $ac_try) 2>&5
6167 +  ac_status=$?
6168 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169    (exit $ac_status); }; }; then
6170 <  ac_cv_lib_mpich_MPI_Init=yes
6170 >  ac_cv_lib_mpi_MPI_Init=yes
6171   else
6172    echo "$as_me: failed program was:" >&5
6173   sed 's/^/| /' conftest.$ac_ext >&5
6174  
6175 < ac_cv_lib_mpich_MPI_Init=no
6175 > ac_cv_lib_mpi_MPI_Init=no
6176   fi
6177 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6177 > rm -f conftest.err conftest.$ac_objext \
6178 >      conftest$ac_exeext conftest.$ac_ext
6179   LIBS=$ac_check_lib_save_LIBS
6180   fi
6181 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
6182 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
6183 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
6184 <  MPILIBS="-lmpich"
6181 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
6182 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
6183 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
6184 >  MPI_LIB="-lmpi -llam -lpthread"
6185 > else
6186 >
6187 >             { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
6188 > echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
6189 >   { (exit 1); exit 1; }; }
6190 >             USE_MPI="no"
6191 >
6192   fi
6193  
6194   fi
6195  
6196  
6197  
6198 < F90="$acx_mpi_save_F90"
6199 <
6200 <
6201 <
6202 < # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6203 < if test x = x"$MPILIBS"; then
6204 <
5779 <        :
6198 > echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
6199 > echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
6200 > MPI_F90_LIB=""
6201 > if test -f "$MPI_LIB_DIR/libfmpich.a" ; then
6202 >        MPI_F90_LIB="-lfmpich"
6203 > elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then
6204 >        MPI_F90_LIB="-llamf77mpi"
6205   else
6206 +                        MPI_F90_LIB="  "
6207 + fi
6208 + echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5
6209 + echo "${ECHO_T}found $MPI_F90_LIB" >&6
6210  
5782 cat >>confdefs.h <<\_ACEOF
5783 #define HAVE_MPI 1
5784 _ACEOF
6211  
5786        :
6212   fi
6213  
6214  
6215 +
6216   ac_ext=c
6217   ac_cpp='$CPP $CPPFLAGS'
6218   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5815 | Line 6241 | do
6241    # On the NeXT, cc -E runs the code through the compiler's parser,
6242    # not just through cpp. "Syntax error" is here to catch this case.
6243    cat >conftest.$ac_ext <<_ACEOF
5818 #line $LINENO "configure"
6244   /* confdefs.h.  */
6245   _ACEOF
6246   cat confdefs.h >>conftest.$ac_ext
# Line 5826 | Line 6251 | cat >>conftest.$ac_ext <<_ACEOF
6251   #else
6252   # include <assert.h>
6253   #endif
6254 <                     Syntax error
6254 >                     Syntax error
6255   _ACEOF
6256   if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6257    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
# Line 5838 | Line 6263 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6263    (exit $ac_status); } >/dev/null; then
6264    if test -s conftest.err; then
6265      ac_cpp_err=$ac_c_preproc_warn_flag
6266 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6267    else
6268      ac_cpp_err=
6269    fi
# Line 5858 | Line 6284 | rm -f conftest.err conftest.$ac_ext
6284    # OK, works on sane cases.  Now check whether non-existent headers
6285    # can be detected and how.
6286    cat >conftest.$ac_ext <<_ACEOF
5861 #line $LINENO "configure"
6287   /* confdefs.h.  */
6288   _ACEOF
6289   cat confdefs.h >>conftest.$ac_ext
# Line 5876 | Line 6301 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6301    (exit $ac_status); } >/dev/null; then
6302    if test -s conftest.err; then
6303      ac_cpp_err=$ac_c_preproc_warn_flag
6304 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6305    else
6306      ac_cpp_err=
6307    fi
# Line 5922 | Line 6348 | do
6348    # On the NeXT, cc -E runs the code through the compiler's parser,
6349    # not just through cpp. "Syntax error" is here to catch this case.
6350    cat >conftest.$ac_ext <<_ACEOF
5925 #line $LINENO "configure"
6351   /* confdefs.h.  */
6352   _ACEOF
6353   cat confdefs.h >>conftest.$ac_ext
# Line 5933 | Line 6358 | cat >>conftest.$ac_ext <<_ACEOF
6358   #else
6359   # include <assert.h>
6360   #endif
6361 <                     Syntax error
6361 >                     Syntax error
6362   _ACEOF
6363   if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6364    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
# Line 5945 | Line 6370 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6370    (exit $ac_status); } >/dev/null; then
6371    if test -s conftest.err; then
6372      ac_cpp_err=$ac_c_preproc_warn_flag
6373 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6374    else
6375      ac_cpp_err=
6376    fi
# Line 5965 | Line 6391 | rm -f conftest.err conftest.$ac_ext
6391    # OK, works on sane cases.  Now check whether non-existent headers
6392    # can be detected and how.
6393    cat >conftest.$ac_ext <<_ACEOF
5968 #line $LINENO "configure"
6394   /* confdefs.h.  */
6395   _ACEOF
6396   cat confdefs.h >>conftest.$ac_ext
# Line 5983 | Line 6408 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6408    (exit $ac_status); } >/dev/null; then
6409    if test -s conftest.err; then
6410      ac_cpp_err=$ac_c_preproc_warn_flag
6411 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6412    else
6413      ac_cpp_err=
6414    fi
# Line 6043 | Line 6469 | else
6469    echo $ECHO_N "(cached) $ECHO_C" >&6
6470   else
6471    cat >conftest.$ac_ext <<_ACEOF
6046 #line $LINENO "configure"
6472   /* confdefs.h.  */
6473   _ACEOF
6474   cat confdefs.h >>conftest.$ac_ext
# Line 6064 | Line 6489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6489   _ACEOF
6490   rm -f conftest.$ac_objext
6491   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6492 <  (eval $ac_compile) 2>&5
6492 >  (eval $ac_compile) 2>conftest.er1
6493    ac_status=$?
6494 +  grep -v '^ *+' conftest.er1 >conftest.err
6495 +  rm -f conftest.er1
6496 +  cat conftest.err >&5
6497    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498    (exit $ac_status); } &&
6499 <         { ac_try='test -s conftest.$ac_objext'
6499 >         { ac_try='test -z "$ac_c_werror_flag"
6500 >                         || test ! -s conftest.err'
6501    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502    (eval $ac_try) 2>&5
6503    ac_status=$?
6504    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 +  (exit $ac_status); }; } &&
6506 +         { ac_try='test -s conftest.$ac_objext'
6507 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508 +  (eval $ac_try) 2>&5
6509 +  ac_status=$?
6510 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511    (exit $ac_status); }; }; then
6512    ac_cv_header_stdc=yes
6513   else
# Line 6081 | Line 6516 | rm -f conftest.$ac_objext conftest.$ac_ext
6516  
6517   ac_cv_header_stdc=no
6518   fi
6519 < rm -f conftest.$ac_objext conftest.$ac_ext
6519 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6520  
6521   if test $ac_cv_header_stdc = yes; then
6522    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6523    cat >conftest.$ac_ext <<_ACEOF
6089 #line $LINENO "configure"
6524   /* confdefs.h.  */
6525   _ACEOF
6526   cat confdefs.h >>conftest.$ac_ext
# Line 6108 | Line 6542 | if test $ac_cv_header_stdc = yes; then
6542   if test $ac_cv_header_stdc = yes; then
6543    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6544    cat >conftest.$ac_ext <<_ACEOF
6111 #line $LINENO "configure"
6545   /* confdefs.h.  */
6546   _ACEOF
6547   cat confdefs.h >>conftest.$ac_ext
# Line 6133 | Line 6566 | else
6566    :
6567   else
6568    cat >conftest.$ac_ext <<_ACEOF
6136 #line $LINENO "configure"
6569   /* confdefs.h.  */
6570   _ACEOF
6571   cat confdefs.h >>conftest.$ac_ext
# Line 6145 | Line 6577 | cat >>conftest.$ac_ext <<_ACEOF
6577   # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6578   #else
6579   # define ISLOWER(c) \
6580 <                   (('a' <= (c) && (c) <= 'i') \
6581 <                     || ('j' <= (c) && (c) <= 'r') \
6582 <                     || ('s' <= (c) && (c) <= 'z'))
6580 >                   (('a' <= (c) && (c) <= 'i') \
6581 >                     || ('j' <= (c) && (c) <= 'r') \
6582 >                     || ('s' <= (c) && (c) <= 'z'))
6583   # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6584   #endif
6585  
# Line 6158 | Line 6590 | main ()
6590    int i;
6591    for (i = 0; i < 256; i++)
6592      if (XOR (islower (i), ISLOWER (i))
6593 <        || toupper (i) != TOUPPER (i))
6593 >        || toupper (i) != TOUPPER (i))
6594        exit(2);
6595    exit (0);
6596   }
# Line 6183 | Line 6615 | rm -f core core.* *.core gmon.out bb.out conftest$ac_e
6615   ( exit $ac_status )
6616   ac_cv_header_stdc=no
6617   fi
6618 < rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6618 > rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6619   fi
6620   fi
6621   fi
# Line 6208 | Line 6640 | for ac_header in sys/types.h sys/stat.h stdlib.h strin
6640  
6641  
6642   for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6643 <                  inttypes.h stdint.h unistd.h
6643 >                  inttypes.h stdint.h unistd.h
6644   do
6645   as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6646   echo "$as_me:$LINENO: checking for $ac_header" >&5
# Line 6217 | Line 6649 | else
6649    echo $ECHO_N "(cached) $ECHO_C" >&6
6650   else
6651    cat >conftest.$ac_ext <<_ACEOF
6220 #line $LINENO "configure"
6652   /* confdefs.h.  */
6653   _ACEOF
6654   cat confdefs.h >>conftest.$ac_ext
# Line 6229 | Line 6660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6660   _ACEOF
6661   rm -f conftest.$ac_objext
6662   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6663 <  (eval $ac_compile) 2>&5
6663 >  (eval $ac_compile) 2>conftest.er1
6664    ac_status=$?
6665 +  grep -v '^ *+' conftest.er1 >conftest.err
6666 +  rm -f conftest.er1
6667 +  cat conftest.err >&5
6668    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669    (exit $ac_status); } &&
6670 <         { ac_try='test -s conftest.$ac_objext'
6670 >         { ac_try='test -z "$ac_c_werror_flag"
6671 >                         || test ! -s conftest.err'
6672    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673    (eval $ac_try) 2>&5
6674    ac_status=$?
6675    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 +  (exit $ac_status); }; } &&
6677 +         { ac_try='test -s conftest.$ac_objext'
6678 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 +  (eval $ac_try) 2>&5
6680 +  ac_status=$?
6681 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682    (exit $ac_status); }; }; then
6683    eval "$as_ac_Header=yes"
6684   else
# Line 6246 | Line 6687 | rm -f conftest.$ac_objext conftest.$ac_ext
6687  
6688   eval "$as_ac_Header=no"
6689   fi
6690 < rm -f conftest.$ac_objext conftest.$ac_ext
6690 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6691   fi
6692   echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6693   echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
# Line 6350 | Line 6791 | cat >conftest.$ac_ext <<_ACEOF
6791   echo "$as_me:$LINENO: checking sprng.h usability" >&5
6792   echo $ECHO_N "checking sprng.h usability... $ECHO_C" >&6
6793   cat >conftest.$ac_ext <<_ACEOF
6353 #line $LINENO "configure"
6794   /* confdefs.h.  */
6795   _ACEOF
6796   cat confdefs.h >>conftest.$ac_ext
# Line 6361 | Line 6801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6801   _ACEOF
6802   rm -f conftest.$ac_objext
6803   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6804 <  (eval $ac_compile) 2>&5
6804 >  (eval $ac_compile) 2>conftest.er1
6805    ac_status=$?
6806 +  grep -v '^ *+' conftest.er1 >conftest.err
6807 +  rm -f conftest.er1
6808 +  cat conftest.err >&5
6809    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810    (exit $ac_status); } &&
6811 <         { ac_try='test -s conftest.$ac_objext'
6811 >         { ac_try='test -z "$ac_c_werror_flag"
6812 >                         || test ! -s conftest.err'
6813    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814    (eval $ac_try) 2>&5
6815    ac_status=$?
6816    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 +  (exit $ac_status); }; } &&
6818 +         { ac_try='test -s conftest.$ac_objext'
6819 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 +  (eval $ac_try) 2>&5
6821 +  ac_status=$?
6822 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823    (exit $ac_status); }; }; then
6824    ac_header_compiler=yes
6825   else
# Line 6378 | Line 6828 | rm -f conftest.$ac_objext conftest.$ac_ext
6828  
6829   ac_header_compiler=no
6830   fi
6831 < rm -f conftest.$ac_objext conftest.$ac_ext
6831 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6832   echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6833   echo "${ECHO_T}$ac_header_compiler" >&6
6834  
# Line 6386 | Line 6836 | cat >conftest.$ac_ext <<_ACEOF
6836   echo "$as_me:$LINENO: checking sprng.h presence" >&5
6837   echo $ECHO_N "checking sprng.h presence... $ECHO_C" >&6
6838   cat >conftest.$ac_ext <<_ACEOF
6389 #line $LINENO "configure"
6839   /* confdefs.h.  */
6840   _ACEOF
6841   cat confdefs.h >>conftest.$ac_ext
# Line 6404 | Line 6853 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6853    (exit $ac_status); } >/dev/null; then
6854    if test -s conftest.err; then
6855      ac_cpp_err=$ac_c_preproc_warn_flag
6856 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6857    else
6858      ac_cpp_err=
6859    fi
# Line 6423 | Line 6873 | case $ac_header_compiler:$ac_header_preproc in
6873   echo "${ECHO_T}$ac_header_preproc" >&6
6874  
6875   # So?  What about this header?
6876 < case $ac_header_compiler:$ac_header_preproc in
6877 <  yes:no )
6876 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6877 >  yes:no: )
6878      { echo "$as_me:$LINENO: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&5
6879   echo "$as_me: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6880 <    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6881 < echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6882 <    (
6433 <      cat <<\_ASBOX
6434 < ## ------------------------------------ ##
6435 < ## Report this to bug-autoconf@gnu.org. ##
6436 < ## ------------------------------------ ##
6437 < _ASBOX
6438 <    ) |
6439 <      sed "s/^/$as_me: WARNING:     /" >&2
6880 >    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the compiler's result" >&5
6881 > echo "$as_me: WARNING: sprng.h: proceeding with the compiler's result" >&2;}
6882 >    ac_header_preproc=yes
6883      ;;
6884 <  no:yes )
6884 >  no:yes:* )
6885      { echo "$as_me:$LINENO: WARNING: sprng.h: present but cannot be compiled" >&5
6886   echo "$as_me: WARNING: sprng.h: present but cannot be compiled" >&2;}
6887 <    { echo "$as_me:$LINENO: WARNING: sprng.h: check for missing prerequisite headers?" >&5
6888 < echo "$as_me: WARNING: sprng.h: check for missing prerequisite headers?" >&2;}
6887 >    { echo "$as_me:$LINENO: WARNING: sprng.h:     check for missing prerequisite headers?" >&5
6888 > echo "$as_me: WARNING: sprng.h:     check for missing prerequisite headers?" >&2;}
6889 >    { echo "$as_me:$LINENO: WARNING: sprng.h: see the Autoconf documentation" >&5
6890 > echo "$as_me: WARNING: sprng.h: see the Autoconf documentation" >&2;}
6891 >    { echo "$as_me:$LINENO: WARNING: sprng.h:     section \"Present But Cannot Be Compiled\"" >&5
6892 > echo "$as_me: WARNING: sprng.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6893      { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6894   echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6895 +    { echo "$as_me:$LINENO: WARNING: sprng.h: in the future, the compiler will take precedence" >&5
6896 + echo "$as_me: WARNING: sprng.h: in the future, the compiler will take precedence" >&2;}
6897      (
6898        cat <<\_ASBOX
6899 < ## ------------------------------------ ##
6900 < ## Report this to bug-autoconf@gnu.org. ##
6901 < ## ------------------------------------ ##
6899 > ## ------------------------------ ##
6900 > ## Report this to gezelter@nd.edu ##
6901 > ## ------------------------------ ##
6902   _ASBOX
6903      ) |
6904        sed "s/^/$as_me: WARNING:     /" >&2
# Line 6476 | Line 6925 | cat >conftest.$ac_ext <<_ACEOF
6925    ac_check_lib_save_LIBS=$LIBS
6926   LIBS="-lsprng  $LIBS"
6927   cat >conftest.$ac_ext <<_ACEOF
6479 #line $LINENO "configure"
6928   /* confdefs.h.  */
6929   _ACEOF
6930   cat confdefs.h >>conftest.$ac_ext
# Line 6500 | Line 6948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6948   _ACEOF
6949   rm -f conftest.$ac_objext conftest$ac_exeext
6950   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6951 <  (eval $ac_link) 2>&5
6951 >  (eval $ac_link) 2>conftest.er1
6952    ac_status=$?
6953 +  grep -v '^ *+' conftest.er1 >conftest.err
6954 +  rm -f conftest.er1
6955 +  cat conftest.err >&5
6956    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957    (exit $ac_status); } &&
6958 <         { ac_try='test -s conftest$ac_exeext'
6958 >         { ac_try='test -z "$ac_c_werror_flag"
6959 >                         || test ! -s conftest.err'
6960    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961    (eval $ac_try) 2>&5
6962    ac_status=$?
6963    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964 +  (exit $ac_status); }; } &&
6965 +         { ac_try='test -s conftest$ac_exeext'
6966 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967 +  (eval $ac_try) 2>&5
6968 +  ac_status=$?
6969 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970    (exit $ac_status); }; }; then
6971    ac_cv_lib_sprng_init_rng=yes
6972   else
# Line 6517 | Line 6975 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
6975  
6976   ac_cv_lib_sprng_init_rng=no
6977   fi
6978 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6978 > rm -f conftest.err conftest.$ac_objext \
6979 >      conftest$ac_exeext conftest.$ac_ext
6980   LIBS=$ac_check_lib_save_LIBS
6981   fi
6982   echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5
# Line 6533 | Line 6992 | fi
6992  
6993    CPPFLAGS=$ac_save_CPPFLAGS
6994    LDFLAGS=$ac_save_LDFLAGS
6995 <  ac_ext=f90
6996 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6997 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6998 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6995 >  ac_ext=c
6996 > ac_cpp='$CPP $CPPFLAGS'
6997 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6998 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6999 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
7000  
7001  
7002    if test x_$HAVE_SPRNG != x_yes; then
# Line 6557 | Line 7017 | echo "${ECHO_T}yes" >&6
7017    withval="$with_mkl"
7018       echo "$as_me:$LINENO: result: yes" >&5
7019   echo "${ECHO_T}yes" >&6
7020 <    for dir in $withval /usr/local/intel/mkl60 /opt/intel/mkl60; do
7020 >    for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do
7021          mkldir="$dir"
7022          if test -f "$dir/include/mkl.h"; then
7023              found_mkl="yes";
# Line 6597 | Line 7057 | cat >conftest.$ac_ext <<_ACEOF
7057   echo "$as_me:$LINENO: checking mkl.h usability" >&5
7058   echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6
7059   cat >conftest.$ac_ext <<_ACEOF
6600 #line $LINENO "configure"
7060   /* confdefs.h.  */
7061   _ACEOF
7062   cat confdefs.h >>conftest.$ac_ext
# Line 6608 | Line 7067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067   _ACEOF
7068   rm -f conftest.$ac_objext
7069   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7070 <  (eval $ac_compile) 2>&5
7070 >  (eval $ac_compile) 2>conftest.er1
7071    ac_status=$?
7072 +  grep -v '^ *+' conftest.er1 >conftest.err
7073 +  rm -f conftest.er1
7074 +  cat conftest.err >&5
7075    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076    (exit $ac_status); } &&
7077 <         { ac_try='test -s conftest.$ac_objext'
7077 >         { ac_try='test -z "$ac_c_werror_flag"
7078 >                         || test ! -s conftest.err'
7079    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080    (eval $ac_try) 2>&5
7081    ac_status=$?
7082    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 +  (exit $ac_status); }; } &&
7084 +         { ac_try='test -s conftest.$ac_objext'
7085 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086 +  (eval $ac_try) 2>&5
7087 +  ac_status=$?
7088 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089    (exit $ac_status); }; }; then
7090    ac_header_compiler=yes
7091   else
# Line 6625 | Line 7094 | rm -f conftest.$ac_objext conftest.$ac_ext
7094  
7095   ac_header_compiler=no
7096   fi
7097 < rm -f conftest.$ac_objext conftest.$ac_ext
7097 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7098   echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7099   echo "${ECHO_T}$ac_header_compiler" >&6
7100  
# Line 6633 | Line 7102 | cat >conftest.$ac_ext <<_ACEOF
7102   echo "$as_me:$LINENO: checking mkl.h presence" >&5
7103   echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6
7104   cat >conftest.$ac_ext <<_ACEOF
6636 #line $LINENO "configure"
7105   /* confdefs.h.  */
7106   _ACEOF
7107   cat confdefs.h >>conftest.$ac_ext
# Line 6651 | Line 7119 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
7119    (exit $ac_status); } >/dev/null; then
7120    if test -s conftest.err; then
7121      ac_cpp_err=$ac_c_preproc_warn_flag
7122 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7123    else
7124      ac_cpp_err=
7125    fi
# Line 6670 | Line 7139 | case $ac_header_compiler:$ac_header_preproc in
7139   echo "${ECHO_T}$ac_header_preproc" >&6
7140  
7141   # So?  What about this header?
7142 < case $ac_header_compiler:$ac_header_preproc in
7143 <  yes:no )
7142 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7143 >  yes:no: )
7144      { echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7145   echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7146 <    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
7147 < echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
7148 <    (
6680 <      cat <<\_ASBOX
6681 < ## ------------------------------------ ##
6682 < ## Report this to bug-autoconf@gnu.org. ##
6683 < ## ------------------------------------ ##
6684 < _ASBOX
6685 <    ) |
6686 <      sed "s/^/$as_me: WARNING:     /" >&2
7146 >    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the compiler's result" >&5
7147 > echo "$as_me: WARNING: mkl.h: proceeding with the compiler's result" >&2;}
7148 >    ac_header_preproc=yes
7149      ;;
7150 <  no:yes )
7150 >  no:yes:* )
7151      { echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5
7152   echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;}
7153 <    { echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5
7154 < echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;}
7153 >    { echo "$as_me:$LINENO: WARNING: mkl.h:     check for missing prerequisite headers?" >&5
7154 > echo "$as_me: WARNING: mkl.h:     check for missing prerequisite headers?" >&2;}
7155 >    { echo "$as_me:$LINENO: WARNING: mkl.h: see the Autoconf documentation" >&5
7156 > echo "$as_me: WARNING: mkl.h: see the Autoconf documentation" >&2;}
7157 >    { echo "$as_me:$LINENO: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&5
7158 > echo "$as_me: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7159      { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
7160   echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
7161 +    { echo "$as_me:$LINENO: WARNING: mkl.h: in the future, the compiler will take precedence" >&5
7162 + echo "$as_me: WARNING: mkl.h: in the future, the compiler will take precedence" >&2;}
7163      (
7164        cat <<\_ASBOX
7165 < ## ------------------------------------ ##
7166 < ## Report this to bug-autoconf@gnu.org. ##
7167 < ## ------------------------------------ ##
7165 > ## ------------------------------ ##
7166 > ## Report this to gezelter@nd.edu ##
7167 > ## ------------------------------ ##
7168   _ASBOX
7169      ) |
7170        sed "s/^/$as_me: WARNING:     /" >&2
# Line 6723 | Line 7191 | cat >conftest.$ac_ext <<_ACEOF
7191    ac_check_lib_save_LIBS=$LIBS
7192   LIBS="-lmkl  $LIBS"
7193   cat >conftest.$ac_ext <<_ACEOF
6726 #line $LINENO "configure"
7194   /* confdefs.h.  */
7195   _ACEOF
7196   cat confdefs.h >>conftest.$ac_ext
# Line 6747 | Line 7214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7214   _ACEOF
7215   rm -f conftest.$ac_objext conftest$ac_exeext
7216   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7217 <  (eval $ac_link) 2>&5
7217 >  (eval $ac_link) 2>conftest.er1
7218    ac_status=$?
7219 +  grep -v '^ *+' conftest.er1 >conftest.err
7220 +  rm -f conftest.er1
7221 +  cat conftest.err >&5
7222    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223    (exit $ac_status); } &&
7224 <         { ac_try='test -s conftest$ac_exeext'
7224 >         { ac_try='test -z "$ac_c_werror_flag"
7225 >                         || test ! -s conftest.err'
7226    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227    (eval $ac_try) 2>&5
7228    ac_status=$?
7229    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 +  (exit $ac_status); }; } &&
7231 +         { ac_try='test -s conftest$ac_exeext'
7232 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 +  (eval $ac_try) 2>&5
7234 +  ac_status=$?
7235 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236    (exit $ac_status); }; }; then
7237    ac_cv_lib_mkl_vslNewStream=yes
7238   else
# Line 6764 | Line 7241 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
7241  
7242   ac_cv_lib_mkl_vslNewStream=no
7243   fi
7244 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7244 > rm -f conftest.err conftest.$ac_objext \
7245 >      conftest$ac_exeext conftest.$ac_ext
7246   LIBS=$ac_check_lib_save_LIBS
7247   fi
7248   echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5
# Line 6783 | Line 7261 | fi
7261  
7262    CPPFLAGS=$ac_save_CPPFLAGS
7263    LDFLAGS=$ac_save_LDFLAGS
7264 <  ac_ext=f90
7265 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
7266 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7267 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
7264 >  ac_ext=c
7265 > ac_cpp='$CPP $CPPFLAGS'
7266 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7267 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7268 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
7269  
7270  
7271    if test x_$HAVE_MKL != x_yes; then
# Line 6810 | Line 7289 | fi;
7289  
7290  
7291  
6813 # Check whether --with-mpi_f90_mods or --without-mpi_f90_mods was given.
6814 if test "${with_mpi_f90_mods+set}" = set; then
6815  withval="$with_mpi_f90_mods"
6816  mpi_f90_mods="$withval"
6817 else
6818  mpi_f90_mods="/usr/local/include/f90choice"
6819 fi;
6820
6821  echo "$as_me:$LINENO: checking for MPI F90 modules" >&5
6822 echo $ECHO_N "checking for MPI F90 modules... $ECHO_C" >&6
6823
6824
6825  ac_ext=f90
6826 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6827 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6828 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6829
6830  ac_save_F90FLAGS=$F90FLAGS
6831
6832  if test "$mpi_f90_mods"; then
6833  F90FLAGS="${F90FLAGS} ${MODDIRFLAG}${mpi_f90_mods}"
6834 fi
6835
6836    cat >conftest.$ac_ext <<_ACEOF
6837
6838
6839 program main
6840
6841 use mpi
6842 integer :: ierr
6843 call MPI_Init(ierr)
6844
6845
6846 end program main
6847
6848 _ACEOF
6849 rm -f conftest.$ac_objext
6850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6851  (eval $ac_compile) 2>&5
6852  ac_status=$?
6853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854  (exit $ac_status); } &&
6855         { ac_try='test -s conftest.$ac_objext'
6856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6857  (eval $ac_try) 2>&5
6858  ac_status=$?
6859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860  (exit $ac_status); }; }; then
6861  HAVE_MPI_MOD=1
6862 else
6863  echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6865
6866 HAVE_MPI_MOD=0
6867 fi
6868 rm -f conftest.$ac_objext conftest.$ac_ext
6869
6870  F90FLAGS=$ac_save_F90FLAGS
6871  ac_ext=f90
6872 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6873 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6874 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6875
6876
6877  if test "$HAVE_MPI_MOD" = 1; then
6878    echo "$as_me:$LINENO: result: yes" >&5
6879 echo "${ECHO_T}yes" >&6
6880
6881 cat >>confdefs.h <<\_ACEOF
6882 #define MPI_MOD 1
6883 _ACEOF
6884
6885    MPI_F90_MODS="${mpi_f90_mods}"
6886
6887    # The library name:
6888    if test -z "$MPI_LIB" ; then
6889       MPI_LIBNAME=-lmpich
6890    else
6891       MPI_LIBNAME="$MPI_LIB"
6892    fi
6893    if test -z "$MPIMODLIBNAME" ; then
6894       MPIMODLIBNAME="${MPI_LIBNAME}f90"
6895    fi
6896
6897  else
6898    echo "$as_me:$LINENO: result: no" >&5
6899 echo "${ECHO_T}no" >&6
6900    { { echo "$as_me:$LINENO: error: Couldn't locate MPI F90 Modules" >&5
6901 echo "$as_me: error: Couldn't locate MPI F90 Modules" >&2;}
6902   { (exit 1); exit 1; }; }
6903  fi
6904
6905
6906
6907
6908
7292   OBJEXT=".$OBJEXT"
7293  
7294   OOPSE=oopse
# Line 6929 | Line 7312 | SUBDIRS="libBASS libmdtools src forceFields samples ut
7312  
7313   MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
7314  
7315 < SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps"
7315 > SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps third-party "
7316  
7317   CFLAGS=${CFLAGS-""}
7318   CXXFLAGS=${CXXFLAGS-""}
# Line 6964 | Line 7347 | esac
7347  
7348  
7349  
7350 <          ac_config_headers="$ac_config_headers libmdtools/config.h"
7350 >                    ac_config_headers="$ac_config_headers libBASS/config.h libmdtools/config.h"
7351  
7352 <                                                                                                                                                      ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile staticProps/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile"
7352 >                                                                                                                                                                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"
7353  
7354  
7355   cat >confcache <<\_ACEOF
# Line 6997 | Line 7380 | _ACEOF
7380        # `set' does not quote correctly, so add quotes (double-quote
7381        # substitution turns \\\\ into \\, and sed turns \\ into \).
7382        sed -n \
7383 <        "s/'/'\\\\''/g;
7384 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7383 >        "s/'/'\\\\''/g;
7384 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7385        ;;
7386      *)
7387        # `set' quotes correctly as required by POSIX, so do not add quotes.
7388        sed -n \
7389 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7389 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7390        ;;
7391      esac;
7392   } |
# Line 7033 | Line 7416 | if test "x$srcdir" = x.; then
7416   # trailing colons and then remove the whole line if VPATH becomes empty
7417   # (actually we leave an empty line to preserve line numbers).
7418   if test "x$srcdir" = x.; then
7419 <  ac_vpsub='/^[         ]*VPATH[        ]*=/{
7419 >  ac_vpsub='/^[  ]*VPATH[        ]*=/{
7420   s/:*\$(srcdir):*/:/;
7421   s/:*\${srcdir}:*/:/;
7422   s/:*@srcdir@:*/:/;
7423 < s/^\([^=]*=[    ]*\):*/\1/;
7423 > s/^\([^=]*=[     ]*\):*/\1/;
7424   s/:*$//;
7425 < s/^[^=]*=[      ]*$//;
7425 > s/^[^=]*=[       ]*$//;
7426   }'
7427   fi
7428  
# Line 7050 | Line 7433 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && conti
7433   for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7434    # 1. Remove the extension, and $U if already installed.
7435    ac_i=`echo "$ac_i" |
7436 <         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7436 >         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7437    # 2. Add them.
7438    ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7439    ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
# Line 7094 | Line 7477 | fi
7477   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7478    set -o posix
7479   fi
7480 + DUALCASE=1; export DUALCASE # for MKS sh
7481  
7482   # Support unset when possible.
7483 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7483 > if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7484    as_unset=unset
7485   else
7486    as_unset=false
# Line 7115 | Line 7499 | do
7499    LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7500    LC_TELEPHONE LC_TIME
7501   do
7502 <  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7502 >  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7503      eval $as_var=C; export $as_var
7504    else
7505      $as_unset $as_var
# Line 7294 | Line 7678 | else
7678   if mkdir -p . 2>/dev/null; then
7679    as_mkdir_p=:
7680   else
7681 +  test -d ./-p && rmdir ./-p
7682    as_mkdir_p=false
7683   fi
7684  
7685   as_executable_p="test -f"
7686  
7687   # Sed expression to map a string onto a valid CPP name.
7688 < as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7688 > as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7689  
7690   # Sed expression to map a string onto a valid variable name.
7691 < as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7691 > as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7692  
7693  
7694   # IFS
# Line 7330 | Line 7715 | generated by GNU Autoconf 2.57.  Invocation command li
7715   cat >&5 <<_CSEOF
7716  
7717   This file was extended by OOPSE $as_me 1.0, which was
7718 < generated by GNU Autoconf 2.57.  Invocation command line was
7718 > generated by GNU Autoconf 2.59.  Invocation command line was
7719  
7720    CONFIG_FILES    = $CONFIG_FILES
7721    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 7374 | Line 7759 | Usage: $0 [OPTIONS] [FILE]...
7759    -d, --debug      don't remove temporary files
7760        --recheck    update $as_me by reconfiguring in the same conditions
7761    --file=FILE[:TEMPLATE]
7762 <                   instantiate the configuration file FILE
7762 >                   instantiate the configuration file FILE
7763    --header=FILE[:TEMPLATE]
7764 <                   instantiate the configuration header FILE
7764 >                   instantiate the configuration header FILE
7765  
7766   Configuration files:
7767   $config_files
# Line 7390 | Line 7775 | configured by $0, generated by GNU Autoconf 2.57,
7775   cat >>$CONFIG_STATUS <<_ACEOF
7776   ac_cs_version="\\
7777   OOPSE config.status 1.0
7778 < configured by $0, generated by GNU Autoconf 2.57,
7778 > configured by $0, generated by GNU Autoconf 2.59,
7779    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7780  
7781 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7397 < Free Software Foundation, Inc.
7781 > Copyright (C) 2003 Free Software Foundation, Inc.
7782   This config.status script is free software; the Free Software Foundation
7783   gives unlimited permission to copy, distribute and modify it."
7784   srcdir=$srcdir
# Line 7502 | Line 7886 | do
7886    "forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
7887    "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
7888    "staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;;
7889 +  "third-party/Makefile" ) CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
7890    "samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
7891    "samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
7892    "samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
7893    "samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;;
7894    "samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;;
7895    "samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;;
7896 +  "libBASS/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libBASS/config.h" ;;
7897    "libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;;
7898    *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7899   echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
# Line 7613 | Line 7999 | s,@F90@,$F90,;t t
7999   s,@CXX@,$CXX,;t t
8000   s,@CXXFLAGS@,$CXXFLAGS,;t t
8001   s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8002 + s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
8003 + s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
8004   s,@F90@,$F90,;t t
8005   s,@F90FLAGS@,$F90FLAGS,;t t
8006   s,@ac_ct_F90@,$ac_ct_F90,;t t
8007   s,@PREPFLAG@,$PREPFLAG,;t t
8008   s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
8009 + s,@F90LIBS@,$F90LIBS,;t t
8010 + s,@F90_FUNC@,$F90_FUNC,;t t
8011 + s,@F90_FUNC_@,$F90_FUNC_,;t t
8012 + s,@MOD@,$MOD,;t t
8013 + s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
8014 + s,@MODDIRFLAG@,$MODDIRFLAG,;t t
8015 + s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
8016   s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8017   s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8018   s,@INSTALL_DATA@,$INSTALL_DATA,;t t
# Line 7630 | Line 8025 | s,@F90LIBS@,$F90LIBS,;t t
8025   s,@LEXLIB@,$LEXLIB,;t t
8026   s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
8027   s,@AR@,$AR,;t t
8028 < s,@F90LIBS@,$F90LIBS,;t t
8029 < s,@F90_FUNC@,$F90_FUNC,;t t
8030 < s,@F90_FUNC_@,$F90_FUNC_,;t t
7636 < s,@MOD@,$MOD,;t t
7637 < s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
7638 < s,@MODDIRFLAG@,$MODDIRFLAG,;t t
7639 < s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
7640 < s,@mpi_dir@,$mpi_dir,;t t
7641 < s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t
7642 < s,@MPI_INC@,$MPI_INC,;t t
8028 > s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t
8029 > s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t
8030 > s,@MPI_F90_INC@,$MPI_F90_INC,;t t
8031   s,@MPI_LIB@,$MPI_LIB,;t t
8032 < s,@MPIF77@,$MPIF77,;t t
8033 < s,@MPIF90@,$MPIF90,;t t
7646 < s,@MPILIBS@,$MPILIBS,;t t
8032 > s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t
8033 > s,@USE_MPI@,$USE_MPI,;t t
8034   s,@CPP@,$CPP,;t t
8035   s,@EGREP@,$EGREP,;t t
8036   s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t
# Line 7654 | Line 8041 | s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
8041   s,@MKL_LIB@,$MKL_LIB,;t t
8042   s,@MKL_INC@,$MKL_INC,;t t
8043   s,@HAVE_MKL@,$HAVE_MKL,;t t
7657 s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
7658 s,@MPIMODLIBNAME@,$MPIMODLIBNAME,;t t
8044   s,@BATEXT@,$BATEXT,;t t
8045   s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8046   s,@OOPSE@,$OOPSE,;t t
# Line 7693 | Line 8078 | _ACEOF
8078        (echo ':t
8079    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8080        if test -z "$ac_sed_cmds"; then
8081 <        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8081 >        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8082        else
8083 <        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8083 >        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8084        fi
8085        ac_sed_frag=`expr $ac_sed_frag + 1`
8086        ac_beg=$ac_end
# Line 7713 | Line 8098 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" =
8098    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8099    case $ac_file in
8100    - | *:- | *:-:* ) # input from stdin
8101 <        cat >$tmp/stdin
8102 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8103 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8101 >        cat >$tmp/stdin
8102 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8103 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8104    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8105 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8105 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8106    * )   ac_file_in=$ac_file.in ;;
8107    esac
8108  
8109    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8110    ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8111   $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8112 <         X"$ac_file" : 'X\(//\)[^/]' \| \
8113 <         X"$ac_file" : 'X\(//\)$' \| \
8114 <         X"$ac_file" : 'X\(/\)' \| \
8115 <         .     : '\(.\)' 2>/dev/null ||
8112 >         X"$ac_file" : 'X\(//\)[^/]' \| \
8113 >         X"$ac_file" : 'X\(//\)$' \| \
8114 >         X"$ac_file" : 'X\(/\)' \| \
8115 >         .     : '\(.\)' 2>/dev/null ||
8116   echo X"$ac_file" |
8117      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8118            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
# Line 7743 | Line 8128 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \|
8128        as_dirs="$as_dir $as_dirs"
8129        as_dir=`(dirname "$as_dir") 2>/dev/null ||
8130   $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8131 <         X"$as_dir" : 'X\(//\)[^/]' \| \
8132 <         X"$as_dir" : 'X\(//\)$' \| \
8133 <         X"$as_dir" : 'X\(/\)' \| \
8134 <         .     : '\(.\)' 2>/dev/null ||
8131 >         X"$as_dir" : 'X\(//\)[^/]' \| \
8132 >         X"$as_dir" : 'X\(//\)$' \| \
8133 >         X"$as_dir" : 'X\(/\)' \| \
8134 >         .     : '\(.\)' 2>/dev/null ||
8135   echo X"$as_dir" |
8136      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8137            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
# Line 7784 | Line 8169 | esac
8169      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8170      ac_top_srcdir=$ac_top_builddir$srcdir ;;
8171   esac
7787 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7788 # absolute.
7789 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7790 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7791 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7792 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8172  
8173 + # Do not use `cd foo && pwd` to compute absolute paths, because
8174 + # the directories may not exist.
8175 + case `pwd` in
8176 + .) ac_abs_builddir="$ac_dir";;
8177 + *)
8178 +  case "$ac_dir" in
8179 +  .) ac_abs_builddir=`pwd`;;
8180 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8181 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
8182 +  esac;;
8183 + esac
8184 + case $ac_abs_builddir in
8185 + .) ac_abs_top_builddir=${ac_top_builddir}.;;
8186 + *)
8187 +  case ${ac_top_builddir}. in
8188 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
8189 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8190 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8191 +  esac;;
8192 + esac
8193 + case $ac_abs_builddir in
8194 + .) ac_abs_srcdir=$ac_srcdir;;
8195 + *)
8196 +  case $ac_srcdir in
8197 +  .) ac_abs_srcdir=$ac_abs_builddir;;
8198 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8199 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8200 +  esac;;
8201 + esac
8202 + case $ac_abs_builddir in
8203 + .) ac_abs_top_srcdir=$ac_top_srcdir;;
8204 + *)
8205 +  case $ac_top_srcdir in
8206 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
8207 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8208 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8209 +  esac;;
8210 + esac
8211  
8212 +
8213    case $INSTALL in
8214    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8215    *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
# Line 7811 | Line 8229 | echo "$as_me: creating $ac_file" >&6;}
8229      configure_input="$ac_file.  "
8230    fi
8231    configure_input=$configure_input"Generated from `echo $ac_file_in |
8232 <                                     sed 's,.*/,,'` by configure."
8232 >                                     sed 's,.*/,,'` by configure."
8233  
8234    # First look for the input files in the build tree, otherwise in the
8235    # src tree.
# Line 7820 | Line 8238 | echo "$as_me: creating $ac_file" >&6;}
8238        case $f in
8239        -) echo $tmp/stdin ;;
8240        [\\/$]*)
8241 <         # Absolute (can't be DOS-style, as IFS=:)
8242 <         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8241 >         # Absolute (can't be DOS-style, as IFS=:)
8242 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8243   echo "$as_me: error: cannot find input file: $f" >&2;}
8244     { (exit 1); exit 1; }; }
8245 <         echo $f;;
8245 >         echo "$f";;
8246        *) # Relative
8247 <         if test -f "$f"; then
8248 <           # Build tree
8249 <           echo $f
8250 <         elif test -f "$srcdir/$f"; then
8251 <           # Source tree
8252 <           echo $srcdir/$f
8253 <         else
8254 <           # /dev/null tree
8255 <           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8247 >         if test -f "$f"; then
8248 >           # Build tree
8249 >           echo "$f"
8250 >         elif test -f "$srcdir/$f"; then
8251 >           # Source tree
8252 >           echo "$srcdir/$f"
8253 >         else
8254 >           # /dev/null tree
8255 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8256   echo "$as_me: error: cannot find input file: $f" >&2;}
8257     { (exit 1); exit 1; }; }
8258 <         fi;;
8258 >         fi;;
8259        esac
8260      done` || { (exit 1); exit 1; }
8261   _ACEOF
# Line 7879 | Line 8297 | ac_dA='s,^\([  ]*\)#\([        ]*define[       ][      ]*\)'
8297   # NAME is the cpp macro being defined and VALUE is the value it is being given.
8298   #
8299   # ac_d sets the value in "#define NAME VALUE" lines.
8300 < ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
8301 < ac_dB='[        ].*$,\1#\2'
8300 > ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8301 > ac_dB='[         ].*$,\1#\2'
8302   ac_dC=' '
8303   ac_dD=',;t'
8304   # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8305 < ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8305 > ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8306   ac_uB='$,\1#\2define\3'
8307   ac_uC=' '
8308   ac_uD=',;t'
# Line 7893 | Line 8311 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file"
8311    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8312    case $ac_file in
8313    - | *:- | *:-:* ) # input from stdin
8314 <        cat >$tmp/stdin
8315 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8316 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8314 >        cat >$tmp/stdin
8315 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8316 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8317    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8318 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8318 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8319    * )   ac_file_in=$ac_file.in ;;
8320    esac
8321  
# Line 7911 | Line 8329 | echo "$as_me: creating $ac_file" >&6;}
8329        case $f in
8330        -) echo $tmp/stdin ;;
8331        [\\/$]*)
8332 <         # Absolute (can't be DOS-style, as IFS=:)
8333 <         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8332 >         # Absolute (can't be DOS-style, as IFS=:)
8333 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8334   echo "$as_me: error: cannot find input file: $f" >&2;}
8335     { (exit 1); exit 1; }; }
8336 <         echo $f;;
8336 >         # Do quote $f, to prevent DOS paths from being IFS'd.
8337 >         echo "$f";;
8338        *) # Relative
8339 <         if test -f "$f"; then
8340 <           # Build tree
8341 <           echo $f
8342 <         elif test -f "$srcdir/$f"; then
8343 <           # Source tree
8344 <           echo $srcdir/$f
8345 <         else
8346 <           # /dev/null tree
8347 <           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8339 >         if test -f "$f"; then
8340 >           # Build tree
8341 >           echo "$f"
8342 >         elif test -f "$srcdir/$f"; then
8343 >           # Source tree
8344 >           echo "$srcdir/$f"
8345 >         else
8346 >           # /dev/null tree
8347 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8348   echo "$as_me: error: cannot find input file: $f" >&2;}
8349     { (exit 1); exit 1; }; }
8350 <         fi;;
8350 >         fi;;
8351        esac
8352      done` || { (exit 1); exit 1; }
8353    # Remove the trailing spaces.
8354 <  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
8354 >  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8355  
8356   _ACEOF
8357  
# Line 7955 | Line 8374 | s,^[   ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*
8374   s,[\\$`],\\&,g
8375   t clear
8376   : clear
8377 < s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8377 > s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8378   t end
8379 < s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8379 > s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8380   : end
8381   _ACEOF
8382   # If some macros were called several times there might be several times
# Line 7971 | Line 8390 | s,^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/*
8390   # example, in the case of _POSIX_SOURCE, which is predefined and required
8391   # on some systems where configure will not decide to define it.
8392   cat >>conftest.undefs <<\_ACEOF
8393 < s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8393 > s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8394   _ACEOF
8395  
8396   # Break up conftest.defines because some shells have a limit on the size
8397   # of here documents, and old seds have small limits too (100 cmds).
8398   echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8399 < echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8399 > echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8400   echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8401   echo '  :' >>$CONFIG_STATUS
8402   rm -f conftest.tail
# Line 7986 | Line 8405 | do
8405    # Write a limited-size here document to $tmp/defines.sed.
8406    echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8407    # Speed up: don't consider the non `#define' lines.
8408 <  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
8408 >  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8409    # Work around the forget-to-reset-the-flag bug.
8410    echo 't clr' >>$CONFIG_STATUS
8411    echo ': clr' >>$CONFIG_STATUS
# Line 8013 | Line 8432 | do
8432    # Write a limited-size here document to $tmp/undefs.sed.
8433    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8434    # Speed up: don't consider the non `#undef'
8435 <  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8435 >  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8436    # Work around the forget-to-reset-the-flag bug.
8437    echo 't clr' >>$CONFIG_STATUS
8438    echo ': clr' >>$CONFIG_STATUS
# Line 8047 | Line 8466 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \|
8466      else
8467        ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8468   $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8469 <         X"$ac_file" : 'X\(//\)[^/]' \| \
8470 <         X"$ac_file" : 'X\(//\)$' \| \
8471 <         X"$ac_file" : 'X\(/\)' \| \
8472 <         .     : '\(.\)' 2>/dev/null ||
8469 >         X"$ac_file" : 'X\(//\)[^/]' \| \
8470 >         X"$ac_file" : 'X\(//\)$' \| \
8471 >         X"$ac_file" : 'X\(/\)' \| \
8472 >         .     : '\(.\)' 2>/dev/null ||
8473   echo X"$ac_file" |
8474      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8475            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
# Line 8066 | Line 8485 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \|
8485        as_dirs="$as_dir $as_dirs"
8486        as_dir=`(dirname "$as_dir") 2>/dev/null ||
8487   $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8488 <         X"$as_dir" : 'X\(//\)[^/]' \| \
8489 <         X"$as_dir" : 'X\(//\)$' \| \
8490 <         X"$as_dir" : 'X\(/\)' \| \
8491 <         .     : '\(.\)' 2>/dev/null ||
8488 >         X"$as_dir" : 'X\(//\)[^/]' \| \
8489 >         X"$as_dir" : 'X\(//\)$' \| \
8490 >         X"$as_dir" : 'X\(/\)' \| \
8491 >         .     : '\(.\)' 2>/dev/null ||
8492   echo X"$as_dir" |
8493      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8494            /^X\(\/\/\)[^/].*/{ s//\1/; q; }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines