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 816 by gezelter, Fri Oct 24 17:36:02 2003 UTC vs.
Revision 942 by gezelter, Wed Jan 14 15:49:26 2004 UTC

# Line 1 | Line 1
1   #! /bin/sh
2   # Guess values for system-dependent variables and create Makefiles.
3 < # Generated by GNU Autoconf 2.57 for OOPSE 1.0.
3 > # Generated by GNU Autoconf 2.59 for OOPSE 1.0.
4   #
5   # Report bugs to <gezelter@nd.edu>.
6   #
7 < # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 < # Free Software Foundation, Inc.
7 > # Copyright (C) 2003 Free Software Foundation, Inc.
8   # This configure script is free software; the Free Software Foundation
9   # gives unlimited permission to copy, distribute and modify it.
10   ## --------------------- ##
# Line 22 | Line 21 | fi
21   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22    set -o posix
23   fi
24 + DUALCASE=1; export DUALCASE # for MKS sh
25  
26   # Support unset when possible.
27 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
27 > if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28    as_unset=unset
29   else
30    as_unset=false
# Line 43 | Line 43 | do
43    LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44    LC_TELEPHONE LC_TIME
45   do
46 <  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 >  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47      eval $as_var=C; export $as_var
48    else
49      $as_unset $as_var
# Line 220 | Line 220 | else
220   if mkdir -p . 2>/dev/null; then
221    as_mkdir_p=:
222   else
223 +  test -d ./-p && rmdir ./-p
224    as_mkdir_p=false
225   fi
226  
227   as_executable_p="test -f"
228  
229   # Sed expression to map a string onto a valid CPP name.
230 < as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230 > as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231  
232   # Sed expression to map a string onto a valid variable name.
233 < as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233 > as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234  
235  
236   # IFS
# Line 311 | Line 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKA
312   # include <unistd.h>
313   #endif"
314  
315 < ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME DEBUG build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR F90LIBS F90_FUNC F90_FUNC_ mpi_dir MPI_LIBDIR MPI_INC MPI_LIB MPIF77 MPIF90 MPILIBS CPP EGREP SPRNG_LIBDIR SPRNG_LIB SPRNG_INC HAVE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL MPI_F90_MODS MPIMODLIBNAME BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS'
315 > ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR mpi MPI_LIBDIR MPI_INC MPI_LIB CPP EGREP SPRNG_LIBDIR SPRNG_LIB SPRNG_INC HAVE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS'
316   ac_subst_files=''
317  
318   # Initialize some variables set by options.
# Line 670 | Line 671 | for ac_var in bindir sbindir libexecdir datadir syscon
671  
672   # Be sure to have absolute paths.
673   for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 <              localstatedir libdir includedir oldincludedir infodir mandir
674 >              localstatedir libdir includedir oldincludedir infodir mandir
675   do
676    eval ac_val=$`echo $ac_var`
677    case $ac_val in
# Line 710 | Line 711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711    # Try the directory containing this script, then its parent.
712    ac_confdir=`(dirname "$0") 2>/dev/null ||
713   $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 <         X"$0" : 'X\(//\)[^/]' \| \
715 <         X"$0" : 'X\(//\)$' \| \
716 <         X"$0" : 'X\(/\)' \| \
717 <         .     : '\(.\)' 2>/dev/null ||
714 >         X"$0" : 'X\(//\)[^/]' \| \
715 >         X"$0" : 'X\(//\)$' \| \
716 >         X"$0" : 'X\(/\)' \| \
717 >         .     : '\(.\)' 2>/dev/null ||
718   echo X"$0" |
719      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
# Line 784 | Line 785 | ac_env_MPIF77_set=${MPIF77+set}
785   ac_env_F90FLAGS_value=$F90FLAGS
786   ac_cv_env_F90FLAGS_set=${F90FLAGS+set}
787   ac_cv_env_F90FLAGS_value=$F90FLAGS
787 ac_env_MPIF77_set=${MPIF77+set}
788 ac_env_MPIF77_value=$MPIF77
789 ac_cv_env_MPIF77_set=${MPIF77+set}
790 ac_cv_env_MPIF77_value=$MPIF77
788   ac_env_CPP_set=${CPP+set}
789   ac_env_CPP_value=$CPP
790   ac_cv_env_CPP_set=${CPP+set}
# Line 825 | Line 822 | Installation directories:
822    cat <<_ACEOF
823   Installation directories:
824    --prefix=PREFIX         install architecture-independent files in PREFIX
825 <                          [$ac_default_prefix]
825 >                          [$ac_default_prefix]
826    --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
827 <                          [PREFIX]
827 >                          [PREFIX]
828  
829   By default, \`make install' will install all the files in
830   \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
# Line 874 | Line 871 | Optional Packages:
871   Optional Packages:
872    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
873    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
874 <  --with-mpi_dir=MPIDIR   give the path for MPI /usr/local
874 >  --with-mpi=MPIDIR   give the path for MPI /usr/local
875    --with-mpi-libdir=dir  give the path for MPI-libraries MPI_DIR/lib
876    --with-mpi_inc=dir  give the path for MPI-include-files MPI_DIR/include
877    --with-sprng_prefix=PREFIX
# Line 883 | Line 880 | Optional Packages:
880    --with-sprng-include=PREFIX
881                            SPRNG include directory
882    --with-mkl              Do we want MKL will check /usr/local/intel/mkl60 /opt/intel/mkl60
886  --with-mpi_f90_mods=<dir>
887                          Location where MPI f90 modules are installed
883  
884   Some influential environment variables:
885    CC          C compiler command
# Line 897 | Line 892 | Some influential environment variables:
892    CXXFLAGS    C++ compiler flags
893    F90         Fortran 90 compiler command
894    F90FLAGS    Fortran 90 compiler flags
900  MPIF77      MPI Fortran compiler command
895    CPP         C preprocessor
896  
897   Use these variables to override the choices made by `configure' or to help
# Line 937 | Line 931 | esac
931      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
932      ac_top_srcdir=$ac_top_builddir$srcdir ;;
933   esac
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`
934  
935 + # Do not use `cd foo && pwd` to compute absolute paths, because
936 + # the directories may not exist.
937 + case `pwd` in
938 + .) ac_abs_builddir="$ac_dir";;
939 + *)
940 +  case "$ac_dir" in
941 +  .) ac_abs_builddir=`pwd`;;
942 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
943 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
944 +  esac;;
945 + esac
946 + case $ac_abs_builddir in
947 + .) ac_abs_top_builddir=${ac_top_builddir}.;;
948 + *)
949 +  case ${ac_top_builddir}. in
950 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
951 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
952 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
953 +  esac;;
954 + esac
955 + case $ac_abs_builddir in
956 + .) ac_abs_srcdir=$ac_srcdir;;
957 + *)
958 +  case $ac_srcdir in
959 +  .) ac_abs_srcdir=$ac_abs_builddir;;
960 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
961 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
962 +  esac;;
963 + esac
964 + case $ac_abs_builddir in
965 + .) ac_abs_top_srcdir=$ac_top_srcdir;;
966 + *)
967 +  case $ac_top_srcdir in
968 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
969 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
970 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
971 +  esac;;
972 + esac
973 +
974      cd $ac_dir
975      # Check for guested configure; otherwise get Cygnus style configure.
976      if test -f $ac_srcdir/configure.gnu; then
# Line 953 | Line 980 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir &
980        echo
981        $SHELL $ac_srcdir/configure  --help=recursive
982      elif test -f $ac_srcdir/configure.ac ||
983 <           test -f $ac_srcdir/configure.in; then
983 >           test -f $ac_srcdir/configure.in; then
984        echo
985        $ac_configure --help
986      else
# Line 967 | Line 994 | generated by GNU Autoconf 2.57
994   if $ac_init_version; then
995    cat <<\_ACEOF
996   OOPSE configure 1.0
997 < generated by GNU Autoconf 2.57
997 > generated by GNU Autoconf 2.59
998  
999 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
973 < Free Software Foundation, Inc.
999 > Copyright (C) 2003 Free Software Foundation, Inc.
1000   This configure script is free software; the Free Software Foundation
1001   gives unlimited permission to copy, distribute and modify it.
1002   _ACEOF
# Line 982 | Line 1008 | generated by GNU Autoconf 2.57.  Invocation command li
1008   running configure, to aid debugging if configure makes a mistake.
1009  
1010   It was created by OOPSE $as_me 1.0, which was
1011 < generated by GNU Autoconf 2.57.  Invocation command line was
1011 > generated by GNU Autoconf 2.59.  Invocation command line was
1012  
1013    $ $0 $@
1014  
# Line 1059 | Line 1085 | do
1085      2)
1086        ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1087        if test $ac_must_keep_next = true; then
1088 <        ac_must_keep_next=false # Got value, back to normal.
1088 >        ac_must_keep_next=false # Got value, back to normal.
1089        else
1090 <        case $ac_arg in
1091 <          *=* | --config-cache | -C | -disable-* | --disable-* \
1092 <          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 <          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 <          | -with-* | --with-* | -without-* | --without-* | --x)
1095 <            case "$ac_configure_args0 " in
1096 <              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 <            esac
1098 <            ;;
1099 <          -* ) ac_must_keep_next=true ;;
1100 <        esac
1090 >        case $ac_arg in
1091 >          *=* | --config-cache | -C | -disable-* | --disable-* \
1092 >          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1093 >          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1094 >          | -with-* | --with-* | -without-* | --without-* | --x)
1095 >            case "$ac_configure_args0 " in
1096 >              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 >            esac
1098 >            ;;
1099 >          -* ) ac_must_keep_next=true ;;
1100 >        esac
1101        fi
1102        ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1103        # Get rid of the leading space.
# Line 1105 | Line 1131 | _ASBOX
1131      case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132      *ac_space=\ *)
1133        sed -n \
1134 <        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134 >        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1135 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1136        ;;
1137      *)
1138        sed -n \
1139 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1140        ;;
1141      esac;
1142   }
# Line 1139 | Line 1165 | _ASBOX
1165        for ac_var in $ac_subst_files
1166        do
1167          eval ac_val=$`echo $ac_var`
1168 <        echo "$ac_var='"'"'$ac_val'"'"'"
1168 >        echo "$ac_var='"'"'$ac_val'"'"'"
1169        done | sort
1170        echo
1171      fi
# Line 1158 | Line 1184 | _ASBOX
1184        echo "$as_me: caught signal $ac_signal"
1185      echo "$as_me: exit $exit_status"
1186    } >&5
1187 <  rm -f core core.* *.core &&
1187 >  rm -f core *.core &&
1188    rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189      exit $exit_status
1190       ' 0
# Line 1238 | Line 1264 | for ac_var in `(set) 2>&1 |
1264   # value.
1265   ac_cache_corrupted=false
1266   for ac_var in `(set) 2>&1 |
1267 <               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1267 >               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268    eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269    eval ac_new_set=\$ac_env_${ac_var}_set
1270    eval ac_old_val="\$ac_cv_env_${ac_var}_value"
# Line 1255 | Line 1281 | echo "$as_me: error: \`$ac_var' was not set in the pre
1281      ,);;
1282      *)
1283        if test "x$ac_old_val" != "x$ac_new_val"; then
1284 <        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1284 >        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285   echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 <        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1287 < echo "$as_me:   former value:  $ac_old_val" >&2;}
1288 <        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1286 >        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1287 > echo "$as_me:   former value:  $ac_old_val" >&2;}
1288 >        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1289   echo "$as_me:   current value: $ac_new_val" >&2;}
1290 <        ac_cache_corrupted=:
1290 >        ac_cache_corrupted=:
1291        fi;;
1292    esac
1293    # Pass precious variables to config.status.
# Line 1828 | Line 1854 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1854  
1855  
1856  
1831 # what should I build?
1857  
1833 # Check whether --enable-debug or --disable-debug was given.
1834 if test "${enable_debug+set}" = set; then
1835  enableval="$enable_debug"
1836  DEBUG=1
1837 fi;
1858  
1859 +
1860 +
1861 +
1862 +
1863 +
1864 +
1865 +
1866 +
1867 +
1868 +
1869 +
1870 +
1871 +
1872   # set program name
1873   PROGNAME="oopse"
1874  
1875  
1876 + # there are two ways to do debugging.  One with the --enable-debug flag
1877 + # and one using the DEBUG environment variable
1878 +
1879 + debug=0
1880 + # Check whether --enable-debug or --disable-debug was given.
1881 + if test "${enable_debug+set}" = set; then
1882 +  enableval="$enable_debug"
1883 +  debug=1
1884 + fi;
1885   if test "${DEBUG}"; then
1886  
1887   cat >>confdefs.h <<\_ACEOF
1888 < #define DEBUG 1
1888 > #define debug 1
1889   _ACEOF
1890  
1891    msg="$msg, debug mode"
# Line 2025 | Line 2067 | cat >conftest.$ac_ext <<_ACEOF
2067    (exit $ac_status); }
2068  
2069   cat >conftest.$ac_ext <<_ACEOF
2028 #line $LINENO "configure"
2070   /* confdefs.h.  */
2071   _ACEOF
2072   cat confdefs.h >>conftest.$ac_ext
# Line 2045 | Line 2086 | echo "$as_me:$LINENO: checking for C compiler default
2086   # Try to create an executable without -o first, disregard a.out.
2087   # It will help us diagnose broken compilers, and finding out an intuition
2088   # of exeext.
2089 < echo "$as_me:$LINENO: checking for C compiler default output" >&5
2090 < echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2089 > echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2090 > echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2091   ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2092   if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2093    (eval $ac_link_default) 2>&5
# Line 2066 | Line 2107 | do
2107    test -f "$ac_file" || continue
2108    case $ac_file in
2109      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2110 <        ;;
2110 >        ;;
2111      conftest.$ac_ext )
2112 <        # This is the source file.
2113 <        ;;
2112 >        # This is the source file.
2113 >        ;;
2114      [ab].out )
2115 <        # We found the default executable, but exeext='' is most
2116 <        # certainly right.
2117 <        break;;
2115 >        # We found the default executable, but exeext='' is most
2116 >        # certainly right.
2117 >        break;;
2118      *.* )
2119 <        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2120 <        # FIXME: I believe we export ac_cv_exeext for Libtool,
2121 <        # but it would be cool to find out if it's true.  Does anybody
2122 <        # maintain Libtool? --akim.
2123 <        export ac_cv_exeext
2124 <        break;;
2119 >        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2120 >        # FIXME: I believe we export ac_cv_exeext for Libtool,
2121 >        # but it would be cool to find out if it's true.  Does anybody
2122 >        # maintain Libtool? --akim.
2123 >        export ac_cv_exeext
2124 >        break;;
2125      * )
2126 <        break;;
2126 >        break;;
2127    esac
2128   done
2129   else
# Line 2156 | Line 2197 | for ac_file in conftest.exe conftest conftest.*; do
2197    case $ac_file in
2198      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2199      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200 <          export ac_cv_exeext
2201 <          break;;
2200 >          export ac_cv_exeext
2201 >          break;;
2202      * ) break;;
2203    esac
2204   done
# Line 2182 | Line 2223 | else
2223    echo $ECHO_N "(cached) $ECHO_C" >&6
2224   else
2225    cat >conftest.$ac_ext <<_ACEOF
2185 #line $LINENO "configure"
2226   /* confdefs.h.  */
2227   _ACEOF
2228   cat confdefs.h >>conftest.$ac_ext
# Line 2233 | Line 2273 | else
2273    echo $ECHO_N "(cached) $ECHO_C" >&6
2274   else
2275    cat >conftest.$ac_ext <<_ACEOF
2236 #line $LINENO "configure"
2276   /* confdefs.h.  */
2277   _ACEOF
2278   cat confdefs.h >>conftest.$ac_ext
# Line 2253 | Line 2292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292   _ACEOF
2293   rm -f conftest.$ac_objext
2294   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295 <  (eval $ac_compile) 2>&5
2295 >  (eval $ac_compile) 2>conftest.er1
2296    ac_status=$?
2297 +  grep -v '^ *+' conftest.er1 >conftest.err
2298 +  rm -f conftest.er1
2299 +  cat conftest.err >&5
2300    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301    (exit $ac_status); } &&
2302 <         { ac_try='test -s conftest.$ac_objext'
2302 >         { ac_try='test -z "$ac_c_werror_flag"
2303 >                         || test ! -s conftest.err'
2304    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305    (eval $ac_try) 2>&5
2306    ac_status=$?
2307    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 +  (exit $ac_status); }; } &&
2309 +         { ac_try='test -s conftest.$ac_objext'
2310 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311 +  (eval $ac_try) 2>&5
2312 +  ac_status=$?
2313 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314    (exit $ac_status); }; }; then
2315    ac_compiler_gnu=yes
2316   else
# Line 2270 | Line 2319 | rm -f conftest.$ac_objext conftest.$ac_ext
2319  
2320   ac_compiler_gnu=no
2321   fi
2322 < rm -f conftest.$ac_objext conftest.$ac_ext
2322 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2323   ac_cv_c_compiler_gnu=$ac_compiler_gnu
2324  
2325   fi
# Line 2286 | Line 2335 | else
2335    echo $ECHO_N "(cached) $ECHO_C" >&6
2336   else
2337    cat >conftest.$ac_ext <<_ACEOF
2289 #line $LINENO "configure"
2338   /* confdefs.h.  */
2339   _ACEOF
2340   cat confdefs.h >>conftest.$ac_ext
# Line 2303 | Line 2351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351   _ACEOF
2352   rm -f conftest.$ac_objext
2353   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354 <  (eval $ac_compile) 2>&5
2354 >  (eval $ac_compile) 2>conftest.er1
2355    ac_status=$?
2356 +  grep -v '^ *+' conftest.er1 >conftest.err
2357 +  rm -f conftest.er1
2358 +  cat conftest.err >&5
2359    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360    (exit $ac_status); } &&
2361 <         { ac_try='test -s conftest.$ac_objext'
2361 >         { ac_try='test -z "$ac_c_werror_flag"
2362 >                         || test ! -s conftest.err'
2363    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364    (eval $ac_try) 2>&5
2365    ac_status=$?
2366    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 +  (exit $ac_status); }; } &&
2368 +         { ac_try='test -s conftest.$ac_objext'
2369 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 +  (eval $ac_try) 2>&5
2371 +  ac_status=$?
2372 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373    (exit $ac_status); }; }; then
2374    ac_cv_prog_cc_g=yes
2375   else
# Line 2320 | Line 2378 | rm -f conftest.$ac_objext conftest.$ac_ext
2378  
2379   ac_cv_prog_cc_g=no
2380   fi
2381 < rm -f conftest.$ac_objext conftest.$ac_ext
2381 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2382   fi
2383   echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2384   echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
# Line 2347 | Line 2405 | cat >conftest.$ac_ext <<_ACEOF
2405    ac_cv_prog_cc_stdc=no
2406   ac_save_CC=$CC
2407   cat >conftest.$ac_ext <<_ACEOF
2350 #line $LINENO "configure"
2408   /* confdefs.h.  */
2409   _ACEOF
2410   cat confdefs.h >>conftest.$ac_ext
# Line 2375 | Line 2432 | int test (int i, double x);
2432    va_end (v);
2433    return s;
2434   }
2435 +
2436 + /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2437 +   function prototypes and stuff, but not '\xHH' hex character constants.
2438 +   These don't provoke an error unfortunately, instead are silently treated
2439 +   as 'x'.  The following induces an error, until -std1 is added to get
2440 +   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2441 +   array size at least.  It's necessary to write '\x00'==0 to get something
2442 +   that's true only with -std1.  */
2443 + int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2444 +
2445   int test (int i, double x);
2446   struct s1 {int (*f) (int a);};
2447   struct s2 {int (*f) (double a);};
# Line 2401 | Line 2468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468    CC="$ac_save_CC $ac_arg"
2469    rm -f conftest.$ac_objext
2470   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2471 <  (eval $ac_compile) 2>&5
2471 >  (eval $ac_compile) 2>conftest.er1
2472    ac_status=$?
2473 +  grep -v '^ *+' conftest.er1 >conftest.err
2474 +  rm -f conftest.er1
2475 +  cat conftest.err >&5
2476    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477    (exit $ac_status); } &&
2478 <         { ac_try='test -s conftest.$ac_objext'
2478 >         { ac_try='test -z "$ac_c_werror_flag"
2479 >                         || test ! -s conftest.err'
2480 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481 >  (eval $ac_try) 2>&5
2482 >  ac_status=$?
2483 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 >  (exit $ac_status); }; } &&
2485 >         { ac_try='test -s conftest.$ac_objext'
2486    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487    (eval $ac_try) 2>&5
2488    ac_status=$?
# Line 2418 | Line 2495 | rm -f conftest.$ac_objext
2495   sed 's/^/| /' conftest.$ac_ext >&5
2496  
2497   fi
2498 < rm -f conftest.$ac_objext
2498 > rm -f conftest.err conftest.$ac_objext
2499   done
2500   rm -f conftest.$ac_ext conftest.$ac_objext
2501   CC=$ac_save_CC
# Line 2446 | Line 2523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523   _ACEOF
2524   rm -f conftest.$ac_objext
2525   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526 <  (eval $ac_compile) 2>&5
2526 >  (eval $ac_compile) 2>conftest.er1
2527    ac_status=$?
2528 +  grep -v '^ *+' conftest.er1 >conftest.err
2529 +  rm -f conftest.er1
2530 +  cat conftest.err >&5
2531    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532    (exit $ac_status); } &&
2533 <         { ac_try='test -s conftest.$ac_objext'
2533 >         { ac_try='test -z "$ac_c_werror_flag"
2534 >                         || test ! -s conftest.err'
2535    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536    (eval $ac_try) 2>&5
2537    ac_status=$?
2538    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 +  (exit $ac_status); }; } &&
2540 +         { ac_try='test -s conftest.$ac_objext'
2541 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542 +  (eval $ac_try) 2>&5
2543 +  ac_status=$?
2544 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545    (exit $ac_status); }; }; then
2546    for ac_declaration in \
2547 <   ''\
2461 <   '#include <stdlib.h>' \
2547 >   '' \
2548     'extern "C" void std::exit (int) throw (); using std::exit;' \
2549     'extern "C" void std::exit (int); using std::exit;' \
2550     'extern "C" void exit (int) throw ();' \
# Line 2466 | Line 2552 | do
2552     'void exit (int);'
2553   do
2554    cat >conftest.$ac_ext <<_ACEOF
2469 #line $LINENO "configure"
2555   /* confdefs.h.  */
2556   _ACEOF
2557   cat confdefs.h >>conftest.$ac_ext
2558   cat >>conftest.$ac_ext <<_ACEOF
2559   /* end confdefs.h.  */
2475 #include <stdlib.h>
2560   $ac_declaration
2561 + #include <stdlib.h>
2562   int
2563   main ()
2564   {
# Line 2484 | Line 2569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569   _ACEOF
2570   rm -f conftest.$ac_objext
2571   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572 <  (eval $ac_compile) 2>&5
2572 >  (eval $ac_compile) 2>conftest.er1
2573    ac_status=$?
2574 +  grep -v '^ *+' conftest.er1 >conftest.err
2575 +  rm -f conftest.er1
2576 +  cat conftest.err >&5
2577    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578    (exit $ac_status); } &&
2579 <         { ac_try='test -s conftest.$ac_objext'
2579 >         { ac_try='test -z "$ac_c_werror_flag"
2580 >                         || test ! -s conftest.err'
2581    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582    (eval $ac_try) 2>&5
2583    ac_status=$?
2584    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 +  (exit $ac_status); }; } &&
2586 +         { ac_try='test -s conftest.$ac_objext'
2587 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 +  (eval $ac_try) 2>&5
2589 +  ac_status=$?
2590 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591    (exit $ac_status); }; }; then
2592    :
2593   else
# Line 2501 | Line 2596 | rm -f conftest.$ac_objext conftest.$ac_ext
2596  
2597   continue
2598   fi
2599 < rm -f conftest.$ac_objext conftest.$ac_ext
2599 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2600    cat >conftest.$ac_ext <<_ACEOF
2506 #line $LINENO "configure"
2601   /* confdefs.h.  */
2602   _ACEOF
2603   cat confdefs.h >>conftest.$ac_ext
# Line 2520 | Line 2614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614   _ACEOF
2615   rm -f conftest.$ac_objext
2616   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617 <  (eval $ac_compile) 2>&5
2617 >  (eval $ac_compile) 2>conftest.er1
2618    ac_status=$?
2619 +  grep -v '^ *+' conftest.er1 >conftest.err
2620 +  rm -f conftest.er1
2621 +  cat conftest.err >&5
2622    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623    (exit $ac_status); } &&
2624 <         { ac_try='test -s conftest.$ac_objext'
2624 >         { ac_try='test -z "$ac_c_werror_flag"
2625 >                         || test ! -s conftest.err'
2626    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627    (eval $ac_try) 2>&5
2628    ac_status=$?
2629    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 +  (exit $ac_status); }; } &&
2631 +         { ac_try='test -s conftest.$ac_objext'
2632 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 +  (eval $ac_try) 2>&5
2634 +  ac_status=$?
2635 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636    (exit $ac_status); }; }; then
2637    break
2638   else
# Line 2536 | Line 2640 | rm -f conftest.$ac_objext conftest.$ac_ext
2640   sed 's/^/| /' conftest.$ac_ext >&5
2641  
2642   fi
2643 < rm -f conftest.$ac_objext conftest.$ac_ext
2643 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2644   done
2645   rm -f conftest*
2646   if test -n "$ac_declaration"; then
# Line 2550 | Line 2654 | rm -f conftest.$ac_objext conftest.$ac_ext
2654   sed 's/^/| /' conftest.$ac_ext >&5
2655  
2656   fi
2657 < rm -f conftest.$ac_objext conftest.$ac_ext
2657 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658   ac_ext=c
2659   ac_cpp='$CPP $CPPFLAGS'
2660   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 2558 | Line 2662 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
2662   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2663  
2664  
2561
2562
2563
2564 # Try to determine "good" native compiler flags if none specified on command
2565 # line
2566 if test "$ac_test_CFLAGS" != "set"; then
2567  CFLAGS=""
2568  case "${host_cpu}-${host_os}" in
2569
2570  *linux*) if test "$CC" = icc; then
2571                    CFLAGS="-O"
2572                fi;;
2573  sparc-solaris2*) if test "$CC" = cc; then
2574                    CFLAGS="-native -fast -xO5 -dalign"
2575                 fi;;
2576
2577  alpha*-osf*)  if test "$CC" = cc; then
2578                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
2579                fi;;
2580
2581  hppa*-hpux*)  if test "$CC" = cc; then
2582                    CFLAGS="-Ae +O3 +Oall"
2583                fi;;
2584
2585   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
2586                    CFLAGS="-O3 -qtune=auto -qansialias -w"
2587                fi;;
2588   powerpc*-aix*)
2589        if test "$CC" = cc -o "$CC" = xlc; then
2590                CFLAGS="-O3 -qtune=auto -qansialias -w"
2591                echo "*******************************************************"
2592                echo "*  You have AIX on an unknown powerpc system.  It is  *"
2593                echo "*  recommended that you use                           *"
2594                echo "*                                                     *"
2595                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
2596                echo "*                                 ^^^                 *"
2597                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
2598                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
2599                echo "*******************************************************"
2600        fi;;
2601   *darwin*)
2602        if test "$CC" = xlc -o "$CC" = cc; then
2603                CFLAGS="-O3 -qtune=auto -w"
2604                echo "*******************************************************"
2605                echo "*  You have Darwin on an unknown powerpc system.      *"
2606                echo "*  It is recommended that you use                     *"
2607                echo "*                                                     *"
2608                echo "*  CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
2609                echo "*                               ^^^                   *"
2610                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
2611                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
2612                echo "*******************************************************"
2613        fi;;
2614  esac
2615
2616  # use default flags for gcc on all systems
2617  if test $ac_cv_c_compiler_gnu = yes; then
2618     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
2619  fi
2620
2621  # test for gcc-specific flags:
2622  if test $ac_cv_c_compiler_gnu = yes; then
2623    # -malign-double for x86 systems
2624
2625
2626 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
2627 echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
2628 if test "${ac_align_double+set}" = set; then
2629  echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631  echo 'void f(){}' > conftest.c
2632 if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
2633        ac_align_double=yes
2634 else
2635        ac_align_double=no
2636 fi
2637 rm -f conftest*
2638
2639 fi
2640 echo "$as_me:$LINENO: result: $ac_align_double" >&5
2641 echo "${ECHO_T}$ac_align_double" >&6
2642 if test "$ac_align_double" = yes; then
2643        :
2644        CFLAGS="$CFLAGS -malign-double"
2645 else
2646        :
2647
2648 fi
2649
2650    # -fstrict-aliasing for gcc-2.95+
2651
2652
2653 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
2654 echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
2655 if test "${ac_fstrict_aliasing+set}" = set; then
2656  echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658  echo 'void f(){}' > conftest.c
2659 if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
2660        ac_fstrict_aliasing=yes
2661 else
2662        ac_fstrict_aliasing=no
2663 fi
2664 rm -f conftest*
2665
2666 fi
2667 echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
2668 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
2669 if test "$ac_fstrict_aliasing" = yes; then
2670        :
2671        CFLAGS="$CFLAGS -fstrict-aliasing"
2672 else
2673        :
2674
2675 fi
2676
2677  fi
2678
2679  CPU_FLAGS=""
2680  if test "$GCC" = "yes"; then
2681                  case "${host_cpu}" in
2682          i586*)
2683
2684 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
2685 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
2686 if test "${ac_cpu_pentium+set}" = set; then
2687  echo $ECHO_N "(cached) $ECHO_C" >&6
2688 else
2689  echo 'void f(){}' > conftest.c
2690 if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
2691        ac_cpu_pentium=yes
2692 else
2693        ac_cpu_pentium=no
2694 fi
2695 rm -f conftest*
2696
2697 fi
2698 echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
2699 echo "${ECHO_T}$ac_cpu_pentium" >&6
2700 if test "$ac_cpu_pentium" = yes; then
2701        :
2702        CPU_FLAGS=-mcpu=pentium
2703 else
2704        :
2705
2706
2707 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
2708 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
2709 if test "${ac_pentium+set}" = set; then
2710  echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712  echo 'void f(){}' > conftest.c
2713 if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
2714        ac_pentium=yes
2715 else
2716        ac_pentium=no
2717 fi
2718 rm -f conftest*
2719
2720 fi
2721 echo "$as_me:$LINENO: result: $ac_pentium" >&5
2722 echo "${ECHO_T}$ac_pentium" >&6
2723 if test "$ac_pentium" = yes; then
2724        :
2725        CPU_FLAGS=-mpentium
2726 else
2727        :
2728
2729 fi
2730
2731 fi
2732
2733                  ;;
2734          i686*)
2735
2736 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
2737 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
2738 if test "${ac_cpu_pentiumpro+set}" = set; then
2739  echo $ECHO_N "(cached) $ECHO_C" >&6
2740 else
2741  echo 'void f(){}' > conftest.c
2742 if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
2743        ac_cpu_pentiumpro=yes
2744 else
2745        ac_cpu_pentiumpro=no
2746 fi
2747 rm -f conftest*
2748
2749 fi
2750 echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
2751 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
2752 if test "$ac_cpu_pentiumpro" = yes; then
2753        :
2754        CPU_FLAGS=-mcpu=pentiumpro
2755 else
2756        :
2757
2758
2759 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
2760 echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
2761 if test "${ac_pentiumpro+set}" = set; then
2762  echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764  echo 'void f(){}' > conftest.c
2765 if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
2766        ac_pentiumpro=yes
2767 else
2768        ac_pentiumpro=no
2769 fi
2770 rm -f conftest*
2771
2772 fi
2773 echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
2774 echo "${ECHO_T}$ac_pentiumpro" >&6
2775 if test "$ac_pentiumpro" = yes; then
2776        :
2777        CPU_FLAGS=-mpentiumpro
2778 else
2779        :
2780
2781 fi
2782
2783 fi
2784
2785                  ;;
2786          powerpc*)
2787                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
2788                is60x=`echo $cputype | egrep "^600-9e?$"`
2789                if test -n "$is60x"; then
2790
2791
2792 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
2793 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
2794 if test "${ac_m_cpu_60x+set}" = set; then
2795  echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797  echo 'void f(){}' > conftest.c
2798 if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
2799        ac_m_cpu_60x=yes
2800 else
2801        ac_m_cpu_60x=no
2802 fi
2803 rm -f conftest*
2804
2805 fi
2806 echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
2807 echo "${ECHO_T}$ac_m_cpu_60x" >&6
2808 if test "$ac_m_cpu_60x" = yes; then
2809        :
2810        CPU_FLAGS=-mcpu=$cputype
2811 else
2812        :
2813
2814 fi
2815
2816                elif test "$cputype" = 750; then
2817
2818
2819 echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
2820 echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
2821 if test "${ac_cv_prog_gcc_2_95+set}" = set; then
2822  echo $ECHO_N "(cached) $ECHO_C" >&6
2823 else
2824
2825 cat > conftest.c <<EOF
2826 #ifdef __GNUC__
2827 #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
2828     yes;
2829 #  endif
2830 #endif
2831 EOF
2832 if { ac_try='${CC-cc} -E conftest.c'
2833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834  (eval $ac_try) 2>&5
2835  ac_status=$?
2836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2838  ac_cv_prog_gcc_2_95=yes
2839 else
2840  ac_cv_prog_gcc_2_95=no
2841 fi
2842
2843 fi
2844 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
2845 echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
2846 if test "$ac_cv_prog_gcc_2_95" = yes; then
2847        :
2848
2849
2850 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
2851 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
2852 if test "${ac_m_cpu_750+set}" = set; then
2853  echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855  echo 'void f(){}' > conftest.c
2856 if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
2857        ac_m_cpu_750=yes
2858 else
2859        ac_m_cpu_750=no
2860 fi
2861 rm -f conftest*
2862
2863 fi
2864 echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
2865 echo "${ECHO_T}$ac_m_cpu_750" >&6
2866 if test "$ac_m_cpu_750" = yes; then
2867        :
2868        CPU_FLAGS=-mcpu=750
2869 else
2870        :
2871
2872 fi
2873
2874 else
2875        :
2876
2877 fi
2878
2879                fi
2880                if test -z "$CPU_FLAGS"; then
2881
2882
2883 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
2884 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
2885 if test "${ac_m_cpu_powerpc+set}" = set; then
2886  echo $ECHO_N "(cached) $ECHO_C" >&6
2887 else
2888  echo 'void f(){}' > conftest.c
2889 if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
2890        ac_m_cpu_powerpc=yes
2891 else
2892        ac_m_cpu_powerpc=no
2893 fi
2894 rm -f conftest*
2895
2896 fi
2897 echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
2898 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
2899 if test "$ac_m_cpu_powerpc" = yes; then
2900        :
2901        CPU_FLAGS=-mcpu=powerpc
2902 else
2903        :
2904
2905 fi
2906
2907                fi
2908                if test -z "$CPU_FLAGS"; then
2909
2910
2911 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
2912 echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
2913 if test "${ac_m_powerpc+set}" = set; then
2914  echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916  echo 'void f(){}' > conftest.c
2917 if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
2918        ac_m_powerpc=yes
2919 else
2920        ac_m_powerpc=no
2921 fi
2922 rm -f conftest*
2923
2924 fi
2925 echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
2926 echo "${ECHO_T}$ac_m_powerpc" >&6
2927 if test "$ac_m_powerpc" = yes; then
2928        :
2929        CPU_FLAGS=-mpowerpc
2930 else
2931        :
2932
2933 fi
2934
2935                fi
2936          esac
2937  fi
2938
2939  if test -n "$CPU_FLAGS"; then
2940        CFLAGS="$CFLAGS $CPU_FLAGS"
2941  fi
2942
2943  if test -z "$CFLAGS"; then
2944        echo ""
2945        echo "********************************************************"
2946        echo "* WARNING: Don't know the best CFLAGS for this system  *"
2947        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
2948        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
2949        echo "********************************************************"
2950        echo ""
2951        CFLAGS="-O3"
2952  fi
2953
2954
2955
2956 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
2957 echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
2958 if test "${ac_guessed_cflags+set}" = set; then
2959  echo $ECHO_N "(cached) $ECHO_C" >&6
2960 else
2961  echo 'void f(){}' > conftest.c
2962 if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
2963        ac_guessed_cflags=yes
2964 else
2965        ac_guessed_cflags=no
2966 fi
2967 rm -f conftest*
2968
2969 fi
2970 echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
2971 echo "${ECHO_T}$ac_guessed_cflags" >&6
2972 if test "$ac_guessed_cflags" = yes; then
2973        :
2974
2975 else
2976        :
2977
2978        echo ""
2979        echo "********************************************************"
2980        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
2981        echo "* your compiler.                                       *"
2982        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
2983        echo "********************************************************"
2984        echo ""
2985        CFLAGS=""
2986
2987 fi
2988
2989
2990 fi
2991
2665   ac_ext=cc
2666   ac_cpp='$CXXCPP $CPPFLAGS'
2667   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 3108 | Line 2781 | else
2781    echo $ECHO_N "(cached) $ECHO_C" >&6
2782   else
2783    cat >conftest.$ac_ext <<_ACEOF
3111 #line $LINENO "configure"
2784   /* confdefs.h.  */
2785   _ACEOF
2786   cat confdefs.h >>conftest.$ac_ext
# Line 3128 | Line 2800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2800   _ACEOF
2801   rm -f conftest.$ac_objext
2802   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2803 <  (eval $ac_compile) 2>&5
2803 >  (eval $ac_compile) 2>conftest.er1
2804    ac_status=$?
2805 +  grep -v '^ *+' conftest.er1 >conftest.err
2806 +  rm -f conftest.er1
2807 +  cat conftest.err >&5
2808    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809    (exit $ac_status); } &&
2810 <         { ac_try='test -s conftest.$ac_objext'
2810 >         { ac_try='test -z "$ac_cxx_werror_flag"
2811 >                         || test ! -s conftest.err'
2812    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813    (eval $ac_try) 2>&5
2814    ac_status=$?
2815    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 +  (exit $ac_status); }; } &&
2817 +         { ac_try='test -s conftest.$ac_objext'
2818 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819 +  (eval $ac_try) 2>&5
2820 +  ac_status=$?
2821 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822    (exit $ac_status); }; }; then
2823    ac_compiler_gnu=yes
2824   else
# Line 3145 | Line 2827 | rm -f conftest.$ac_objext conftest.$ac_ext
2827  
2828   ac_compiler_gnu=no
2829   fi
2830 < rm -f conftest.$ac_objext conftest.$ac_ext
2830 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2831   ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2832  
2833   fi
# Line 3161 | Line 2843 | else
2843    echo $ECHO_N "(cached) $ECHO_C" >&6
2844   else
2845    cat >conftest.$ac_ext <<_ACEOF
3164 #line $LINENO "configure"
2846   /* confdefs.h.  */
2847   _ACEOF
2848   cat confdefs.h >>conftest.$ac_ext
# Line 3178 | Line 2859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2859   _ACEOF
2860   rm -f conftest.$ac_objext
2861   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862 <  (eval $ac_compile) 2>&5
2862 >  (eval $ac_compile) 2>conftest.er1
2863    ac_status=$?
2864 +  grep -v '^ *+' conftest.er1 >conftest.err
2865 +  rm -f conftest.er1
2866 +  cat conftest.err >&5
2867    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868    (exit $ac_status); } &&
2869 <         { ac_try='test -s conftest.$ac_objext'
2869 >         { ac_try='test -z "$ac_cxx_werror_flag"
2870 >                         || test ! -s conftest.err'
2871 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 >  (eval $ac_try) 2>&5
2873 >  ac_status=$?
2874 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 >  (exit $ac_status); }; } &&
2876 >         { ac_try='test -s conftest.$ac_objext'
2877    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878    (eval $ac_try) 2>&5
2879    ac_status=$?
# Line 3195 | Line 2886 | rm -f conftest.$ac_objext conftest.$ac_ext
2886  
2887   ac_cv_prog_cxx_g=no
2888   fi
2889 < rm -f conftest.$ac_objext conftest.$ac_ext
2889 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2890   fi
2891   echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2892   echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
# Line 3215 | Line 2906 | for ac_declaration in \
2906    fi
2907   fi
2908   for ac_declaration in \
2909 <   ''\
3219 <   '#include <stdlib.h>' \
2909 >   '' \
2910     'extern "C" void std::exit (int) throw (); using std::exit;' \
2911     'extern "C" void std::exit (int); using std::exit;' \
2912     'extern "C" void exit (int) throw ();' \
# Line 3224 | Line 2914 | do
2914     'void exit (int);'
2915   do
2916    cat >conftest.$ac_ext <<_ACEOF
3227 #line $LINENO "configure"
2917   /* confdefs.h.  */
2918   _ACEOF
2919   cat confdefs.h >>conftest.$ac_ext
2920   cat >>conftest.$ac_ext <<_ACEOF
2921   /* end confdefs.h.  */
3233 #include <stdlib.h>
2922   $ac_declaration
2923 + #include <stdlib.h>
2924   int
2925   main ()
2926   {
# Line 3242 | Line 2931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2931   _ACEOF
2932   rm -f conftest.$ac_objext
2933   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2934 <  (eval $ac_compile) 2>&5
2934 >  (eval $ac_compile) 2>conftest.er1
2935    ac_status=$?
2936 +  grep -v '^ *+' conftest.er1 >conftest.err
2937 +  rm -f conftest.er1
2938 +  cat conftest.err >&5
2939    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940    (exit $ac_status); } &&
2941 <         { ac_try='test -s conftest.$ac_objext'
2941 >         { ac_try='test -z "$ac_cxx_werror_flag"
2942 >                         || test ! -s conftest.err'
2943    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944    (eval $ac_try) 2>&5
2945    ac_status=$?
2946    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 +  (exit $ac_status); }; } &&
2948 +         { ac_try='test -s conftest.$ac_objext'
2949 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950 +  (eval $ac_try) 2>&5
2951 +  ac_status=$?
2952 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953    (exit $ac_status); }; }; then
2954    :
2955   else
# Line 3259 | Line 2958 | rm -f conftest.$ac_objext conftest.$ac_ext
2958  
2959   continue
2960   fi
2961 < rm -f conftest.$ac_objext conftest.$ac_ext
2961 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2962    cat >conftest.$ac_ext <<_ACEOF
3264 #line $LINENO "configure"
2963   /* confdefs.h.  */
2964   _ACEOF
2965   cat confdefs.h >>conftest.$ac_ext
# Line 3278 | Line 2976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2976   _ACEOF
2977   rm -f conftest.$ac_objext
2978   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979 <  (eval $ac_compile) 2>&5
2979 >  (eval $ac_compile) 2>conftest.er1
2980    ac_status=$?
2981 +  grep -v '^ *+' conftest.er1 >conftest.err
2982 +  rm -f conftest.er1
2983 +  cat conftest.err >&5
2984    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985    (exit $ac_status); } &&
2986 <         { ac_try='test -s conftest.$ac_objext'
2986 >         { ac_try='test -z "$ac_cxx_werror_flag"
2987 >                         || test ! -s conftest.err'
2988    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989    (eval $ac_try) 2>&5
2990    ac_status=$?
2991    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 +  (exit $ac_status); }; } &&
2993 +         { ac_try='test -s conftest.$ac_objext'
2994 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 +  (eval $ac_try) 2>&5
2996 +  ac_status=$?
2997 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998    (exit $ac_status); }; }; then
2999    break
3000   else
# Line 3294 | Line 3002 | rm -f conftest.$ac_objext conftest.$ac_ext
3002   sed 's/^/| /' conftest.$ac_ext >&5
3003  
3004   fi
3005 < rm -f conftest.$ac_objext conftest.$ac_ext
3005 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3006   done
3007   rm -f conftest*
3008   if test -n "$ac_declaration"; then
# Line 3310 | Line 3018 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019  
3020  
3021 + OOPSE_TEMPLATE_FLAGS=""
3022 + if test $ac_cv_cxx_compiler_gnu = no; then
3023 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5
3024 + echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6
3025 +  echo 'void f(){}' > conftest.cc
3026 +  if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
3027 +    echo "$as_me:$LINENO: result: yes" >&5
3028 + echo "${ECHO_T}yes" >&6
3029 +    OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink"
3030 +  else
3031 +    echo "$as_me:$LINENO: result: no" >&5
3032 + echo "${ECHO_T}no" >&6
3033 +  fi
3034 +  rm -f conftest*
3035 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5
3036 + echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6
3037 +  echo 'void f(){}' > conftest.cc
3038 +  if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
3039 +    echo "$as_me:$LINENO: result: yes" >&5
3040 + echo "${ECHO_T}yes" >&6
3041 +    OOPSE_TEMPLATE_FLAGS="-instances=static"
3042 +  else
3043 +    echo "$as_me:$LINENO: result: no" >&5
3044 + echo "${ECHO_T}no" >&6
3045 +  fi
3046 +  rm -f conftest*
3047 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5
3048 + echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6
3049 +  echo 'void f(){}' > conftest.cc
3050 +  if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then
3051 +    echo "$as_me:$LINENO: result: yes" >&5
3052 + echo "${ECHO_T}yes" >&6
3053 +    OOPSE_TEMPLATE_FLAGS="-pto"
3054 +  else
3055 +    echo "$as_me:$LINENO: result: no" >&5
3056 + echo "${ECHO_T}no" >&6
3057 +  fi
3058 +  rm -f conftest*
3059 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5
3060 + echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6
3061 +  echo 'void f(){}' > conftest.cc
3062 +  if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
3063 +    echo "$as_me:$LINENO: result: yes" >&5
3064 + echo "${ECHO_T}yes" >&6
3065  
3066  
3067 <
3068 < # Try to determine "good" native compiler flags if none specified on command
3069 < # line
3070 < if test "$ac_test_CXXFLAGS" != "set"; then
3319 <  CXXFLAGS=""
3320 <  case "${host_cpu}-${host_os}" in
3321 <
3322 <  *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
3323 <                    CXXFLAGS="-O"
3324 <                fi;;
3325 <  sparc-solaris2*) if test "$CXX" = CC; then
3326 <                    CXXFLAGS="-native -fast -xO5 -dalign"
3327 <                 fi;;
3328 <   rs6000*-aix*)  if test "$CXX" = xlC; then
3329 <                    CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
3330 <                fi;;
3331 <   powerpc*-aix*)
3332 <        if test "$CXX" = xlC; then
3333 <                CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
3334 <                echo "*******************************************************"
3335 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
3336 <                echo "*  recommended that you use                           *"
3337 <                echo "*                                                     *"
3338 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
3339 <                echo "*                                 ^^^                 *"
3340 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
3341 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
3342 <                echo "*******************************************************"
3343 <        fi;;
3344 <   *darwin*)
3345 <        if test "$CXX" = xlC; then
3346 <                CXXFLAGS="-O3 -qtune=auto -qansialias -w"
3347 <                echo "*******************************************************"
3348 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
3349 <                echo "*  recommended that you use                           *"
3350 <                echo "*                                                     *"
3351 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
3352 <                echo "*                                 ^^^                 *"
3353 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
3354 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
3355 <                echo "*******************************************************"
3356 <        fi;;
3357 <  esac
3358 <
3359 <  # use default flags for gcc on all systems
3360 <  if test $ac_cv_c_compiler_gnu = yes; then
3361 <     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
3067 >    EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std"
3068 >  else
3069 >    echo "$as_me:$LINENO: result: no" >&5
3070 > echo "${ECHO_T}no" >&6
3071    fi
3072 + fi
3073  
3364  # test for gcc-specific flags:
3365  if test $ac_cv_c_compiler_gnu = yes; then
3366    # -malign-double for x86 systems
3074  
3075  
3076 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
3077 < echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
3078 < if test "${ac_align_double+set}" = set; then
3076 >
3077 > ac_ext=f90
3078 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3079 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3081 > if test -n "$ac_tool_prefix"; then
3082 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3083 >  do
3084 >    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3085 > set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3086 > echo "$as_me:$LINENO: checking for $ac_word" >&5
3087 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3088 > if test "${ac_cv_prog_F90+set}" = set; then
3089    echo $ECHO_N "(cached) $ECHO_C" >&6
3090   else
3091 <  echo 'void f(){}' > conftest.cpp
3092 < if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
3376 <        ac_align_double=yes
3091 >  if test -n "$F90"; then
3092 >  ac_cv_prog_F90="$F90" # Let the user override the test.
3093   else
3094 <        ac_align_double=no
3095 < fi
3096 < rm -f conftest*
3094 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 > for as_dir in $PATH
3096 > do
3097 >  IFS=$as_save_IFS
3098 >  test -z "$as_dir" && as_dir=.
3099 >  for ac_exec_ext in '' $ac_executable_extensions; do
3100 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101 >    ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3102 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 >    break 2
3104 >  fi
3105 > done
3106 > done
3107  
3108   fi
3109 < echo "$as_me:$LINENO: result: $ac_align_double" >&5
3110 < echo "${ECHO_T}$ac_align_double" >&6
3111 < if test "$ac_align_double" = yes; then
3112 <        :
3113 <        CXXFLAGS="$CXXFLAGS -malign-double"
3109 > fi
3110 > F90=$ac_cv_prog_F90
3111 > if test -n "$F90"; then
3112 >  echo "$as_me:$LINENO: result: $F90" >&5
3113 > echo "${ECHO_T}$F90" >&6
3114   else
3115 <        :
3116 <
3115 >  echo "$as_me:$LINENO: result: no" >&5
3116 > echo "${ECHO_T}no" >&6
3117   fi
3118  
3119 <    # -fstrict-aliasing for gcc-2.95+
3120 <
3121 <
3122 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
3123 < echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
3124 < if test "${ac_fstrict_aliasing+set}" = set; then
3119 >    test -n "$F90" && break
3120 >  done
3121 > fi
3122 > if test -z "$F90"; then
3123 >  ac_ct_F90=$F90
3124 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3125 > do
3126 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
3127 > set dummy $ac_prog; ac_word=$2
3128 > echo "$as_me:$LINENO: checking for $ac_word" >&5
3129 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3130 > if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
3131    echo $ECHO_N "(cached) $ECHO_C" >&6
3132   else
3133 <  echo 'void f(){}' > conftest.cpp
3134 < if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
3403 <        ac_fstrict_aliasing=yes
3133 >  if test -n "$ac_ct_F90"; then
3134 >  ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
3135   else
3136 <        ac_fstrict_aliasing=no
3137 < fi
3138 < rm -f conftest*
3136 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 > for as_dir in $PATH
3138 > do
3139 >  IFS=$as_save_IFS
3140 >  test -z "$as_dir" && as_dir=.
3141 >  for ac_exec_ext in '' $ac_executable_extensions; do
3142 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143 >    ac_cv_prog_ac_ct_F90="$ac_prog"
3144 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 >    break 2
3146 >  fi
3147 > done
3148 > done
3149  
3150   fi
3410 echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
3411 echo "${ECHO_T}$ac_fstrict_aliasing" >&6
3412 if test "$ac_fstrict_aliasing" = yes; then
3413        :
3414        CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
3415 else
3416        :
3417
3151   fi
3419
3420  fi
3421
3422  CPU_FLAGS=""
3423  if test "$GCC" = "yes"; then
3424                  case "${host_cpu}" in
3425          i586*)
3426
3427 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
3428 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
3429 if test "${ac_cpu_pentium+set}" = set; then
3430  echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432  echo 'void f(){}' > conftest.c
3433 if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
3434        ac_cpu_pentium=yes
3435 else
3436        ac_cpu_pentium=no
3437 fi
3438 rm -f conftest*
3439
3440 fi
3441 echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
3442 echo "${ECHO_T}$ac_cpu_pentium" >&6
3443 if test "$ac_cpu_pentium" = yes; then
3444        :
3445        CPU_FLAGS=-mcpu=pentium
3446 else
3447        :
3448
3449
3450 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
3451 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
3452 if test "${ac_pentium+set}" = set; then
3453  echo $ECHO_N "(cached) $ECHO_C" >&6
3454 else
3455  echo 'void f(){}' > conftest.cpp
3456 if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
3457        ac_pentium=yes
3458 else
3459        ac_pentium=no
3460 fi
3461 rm -f conftest*
3462
3463 fi
3464 echo "$as_me:$LINENO: result: $ac_pentium" >&5
3465 echo "${ECHO_T}$ac_pentium" >&6
3466 if test "$ac_pentium" = yes; then
3467        :
3468        CPU_FLAGS=-mpentium
3469 else
3470        :
3471
3472 fi
3473
3474 fi
3475
3476                  ;;
3477          i686*)
3478
3479 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
3480 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
3481 if test "${ac_cpu_pentiumpro+set}" = set; then
3482  echo $ECHO_N "(cached) $ECHO_C" >&6
3483 else
3484  echo 'void f(){}' > conftest.cpp
3485 if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
3486        ac_cpu_pentiumpro=yes
3487 else
3488        ac_cpu_pentiumpro=no
3489 fi
3490 rm -f conftest*
3491
3492 fi
3493 echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
3494 echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
3495 if test "$ac_cpu_pentiumpro" = yes; then
3496        :
3497        CPU_FLAGS=-mcpu=pentiumpro
3498 else
3499        :
3500
3501
3502 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
3503 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
3504 if test "${ac_pentiumpro+set}" = set; then
3505  echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507  echo 'void f(){}' > conftest.cpp
3508 if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
3509        ac_pentiumpro=yes
3510 else
3511        ac_pentiumpro=no
3512 fi
3513 rm -f conftest*
3514
3515 fi
3516 echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
3517 echo "${ECHO_T}$ac_pentiumpro" >&6
3518 if test "$ac_pentiumpro" = yes; then
3519        :
3520        CPU_FLAGS=-mpentiumpro
3521 else
3522        :
3523
3524 fi
3525
3526 fi
3527
3528                  ;;
3529          powerpc*)
3530                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
3531                is60x=`echo $cputype | egrep "^600-9e?$"`
3532                if test -n "$is60x"; then
3533
3534
3535 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
3536 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
3537 if test "${ac_m_cpu_60x+set}" = set; then
3538  echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540  echo 'void f(){}' > conftest.cpp
3541 if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
3542        ac_m_cpu_60x=yes
3543 else
3544        ac_m_cpu_60x=no
3545 fi
3546 rm -f conftest*
3547
3548 fi
3549 echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
3550 echo "${ECHO_T}$ac_m_cpu_60x" >&6
3551 if test "$ac_m_cpu_60x" = yes; then
3552        :
3553        CPU_FLAGS=-mcpu=$cputype
3554 else
3555        :
3556
3557 fi
3558
3559                elif test "$cputype" = 750; then
3560
3561
3562 echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
3563 echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
3564 if test "${ac_cv_prog_gcc_2_95+set}" = set; then
3565  echo $ECHO_N "(cached) $ECHO_C" >&6
3566 else
3567
3568 cat > conftest.c <<EOF
3569 #ifdef __GNUC__
3570 #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
3571     yes;
3572 #  endif
3573 #endif
3574 EOF
3575 if { ac_try='${CC-cc} -E conftest.c'
3576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577  (eval $ac_try) 2>&5
3578  ac_status=$?
3579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3581  ac_cv_prog_gcc_2_95=yes
3582 else
3583  ac_cv_prog_gcc_2_95=no
3584 fi
3585
3586 fi
3587 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
3588 echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
3589 if test "$ac_cv_prog_gcc_2_95" = yes; then
3590        :
3591
3592
3593 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
3594 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
3595 if test "${ac_m_cpu_750+set}" = set; then
3596  echo $ECHO_N "(cached) $ECHO_C" >&6
3597 else
3598  echo 'void f(){}' > conftest.cpp
3599 if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
3600        ac_m_cpu_750=yes
3601 else
3602        ac_m_cpu_750=no
3603 fi
3604 rm -f conftest*
3605
3606 fi
3607 echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
3608 echo "${ECHO_T}$ac_m_cpu_750" >&6
3609 if test "$ac_m_cpu_750" = yes; then
3610        :
3611        CPU_FLAGS=-mcpu=750
3612 else
3613        :
3614
3615 fi
3616
3617 else
3618        :
3619
3620 fi
3621
3622                fi
3623                if test -z "$CPU_FLAGS"; then
3624
3625
3626 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
3627 echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
3628 if test "${ac_m_cpu_powerpc+set}" = set; then
3629  echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631  echo 'void f(){}' > conftest.cpp
3632 if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
3633        ac_m_cpu_powerpc=yes
3634 else
3635        ac_m_cpu_powerpc=no
3636 fi
3637 rm -f conftest*
3638
3639 fi
3640 echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
3641 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
3642 if test "$ac_m_cpu_powerpc" = yes; then
3643        :
3644        CPU_FLAGS=-mcpu=powerpc
3645 else
3646        :
3647
3648 fi
3649
3650                fi
3651                if test -z "$CPU_FLAGS"; then
3652
3653
3654 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
3655 echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
3656 if test "${ac_m_powerpc+set}" = set; then
3657  echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659  echo 'void f(){}' > conftest.cpp
3660 if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
3661        ac_m_powerpc=yes
3662 else
3663        ac_m_powerpc=no
3664 fi
3665 rm -f conftest*
3666
3667 fi
3668 echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
3669 echo "${ECHO_T}$ac_m_powerpc" >&6
3670 if test "$ac_m_powerpc" = yes; then
3671        :
3672        CPU_FLAGS=-mpowerpc
3673 else
3674        :
3675
3676 fi
3677
3678                fi
3679          esac
3680  fi
3681
3682  if test -n "$CPU_FLAGS"; then
3683        CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
3684  fi
3685
3686  if test -z "$CXXFLAGS"; then
3687        echo ""
3688        echo "**********************************************************"
3689        echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
3690        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
3691        echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *"
3692        echo "**********************************************************"
3693        echo ""
3694        CXXFLAGS="-O3"
3695  fi
3696
3697
3698
3699 echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
3700 echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
3701 if test "${ac_guessed_cxxflags+set}" = set; then
3702  echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704  echo 'void f(){}' > conftest.cpp
3705 if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
3706        ac_guessed_cxxflags=yes
3707 else
3708        ac_guessed_cxxflags=no
3709 fi
3710 rm -f conftest*
3711
3712 fi
3713 echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
3714 echo "${ECHO_T}$ac_guessed_cxxflags" >&6
3715 if test "$ac_guessed_cxxflags" = yes; then
3716        :
3717
3718 else
3719        :
3720
3721        echo ""
3722        echo "**********************************************************"
3723        echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *"
3724        echo "* your compiler.                                         *"
3725        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
3726        echo "**********************************************************"
3727        echo ""
3728        CXXFLAGS=""
3729
3730 fi
3731
3732
3733 fi
3734
3735 ac_ext=f90
3736 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3737 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3739 if test -n "$ac_tool_prefix"; then
3740  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3741  do
3742    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3744 echo "$as_me:$LINENO: checking for $ac_word" >&5
3745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3746 if test "${ac_cv_prog_F90+set}" = set; then
3747  echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749  if test -n "$F90"; then
3750  ac_cv_prog_F90="$F90" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3754 do
3755  IFS=$as_save_IFS
3756  test -z "$as_dir" && as_dir=.
3757  for ac_exec_ext in '' $ac_executable_extensions; do
3758  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759    ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3760    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3761    break 2
3762  fi
3763 done
3764 done
3765
3766 fi
3767 fi
3768 F90=$ac_cv_prog_F90
3769 if test -n "$F90"; then
3770  echo "$as_me:$LINENO: result: $F90" >&5
3771 echo "${ECHO_T}$F90" >&6
3772 else
3773  echo "$as_me:$LINENO: result: no" >&5
3774 echo "${ECHO_T}no" >&6
3775 fi
3776
3777    test -n "$F90" && break
3778  done
3779 fi
3780 if test -z "$F90"; then
3781  ac_ct_F90=$F90
3782  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3783 do
3784  # Extract the first word of "$ac_prog", so it can be a program name with args.
3785 set dummy $ac_prog; ac_word=$2
3786 echo "$as_me:$LINENO: checking for $ac_word" >&5
3787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3788 if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
3789  echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791  if test -n "$ac_ct_F90"; then
3792  ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3796 do
3797  IFS=$as_save_IFS
3798  test -z "$as_dir" && as_dir=.
3799  for ac_exec_ext in '' $ac_executable_extensions; do
3800  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801    ac_cv_prog_ac_ct_F90="$ac_prog"
3802    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3803    break 2
3804  fi
3805 done
3806 done
3807
3808 fi
3809 fi
3152   ac_ct_F90=$ac_cv_prog_ac_ct_F90
3153   if test -n "$ac_ct_F90"; then
3154    echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
# Line 3845 | Line 3187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3187   _ACEOF
3188   rm -f conftest.$ac_objext
3189   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3190 <  (eval $ac_compile) 2>&5
3190 >  (eval $ac_compile) 2>conftest.er1
3191    ac_status=$?
3192 +  grep -v '^ *+' conftest.er1 >conftest.err
3193 +  rm -f conftest.er1
3194 +  cat conftest.err >&5
3195    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196    (exit $ac_status); } &&
3197 <         { ac_try='test -s conftest.$ac_objext'
3197 >         { ac_try='test -z "$ac_f90_werror_flag"
3198 >                         || test ! -s conftest.err'
3199    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200    (eval $ac_try) 2>&5
3201    ac_status=$?
3202    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 +  (exit $ac_status); }; } &&
3204 +         { ac_try='test -s conftest.$ac_objext'
3205 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206 +  (eval $ac_try) 2>&5
3207 +  ac_status=$?
3208 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209    (exit $ac_status); }; }; then
3210    ac_compiler_gnu=yes
3211   else
# Line 3862 | Line 3214 | rm -f conftest.$ac_objext conftest.$ac_ext
3214  
3215   ac_compiler_gnu=no
3216   fi
3217 < rm -f conftest.$ac_objext conftest.$ac_ext
3217 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3218   ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3219  
3220   fi
# Line 3870 | Line 3222 | ac_ext=c
3222   echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3223   ac_ext=$ac_save_ext
3224   G95=`test $ac_compiler_gnu = yes && echo yes`
3873 ac_ext=c
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878
3879
3880
3881
3882
3883 # Try to determine "good" native compiler flags if none specified on command
3884 # line
3885
3886 if test x"$F90FLAGS" == x ; then
3887  F90FLAGS=""
3888  case "${host_cpu}-${host_os}" in
3889
3890  *linux*) if test "$F90" = ifc; then
3891                    F90FLAGS="-O"
3892                fi;;
3893   rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3894                    F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
3895                fi;;
3896   powerpc*-aix*)
3897        if test "$F90" = f90 -o "$F90" = xlf90; then
3898                F90FLAGS="-O3 -qarch=ppc -qansialias -w"
3899                echo "*******************************************************"
3900                echo "*  You have AIX on an unknown powerpc system.  It is  *"
3901                echo "*  recommended that you use                           *"
3902                echo "*                                                     *"
3903                echo "*  F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
3904                echo "*                                 ^^^                 *"
3905                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
3906                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
3907                echo "*******************************************************"
3908        fi;;
3909   *darwin*)
3910        if test "$F90" = f90 -o "$F90" = xlf90; then
3911                F90FLAGS="-O3 -qtune=auto -w"
3912                echo "*********************************************************"
3913                echo "*  You have Darwin on an unknown powerpc system.  It is *"
3914                echo "*  recommended that you use                             *"
3915                echo "*                                                       *"
3916                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
3917                echo "*                                 ^^^                   *"
3918                echo "*  where xxx is 601, 603, 604, or whatever kind of      *"
3919                echo "*  PowerPC CPU you have.   For more info, man xlf.      *"
3920                echo "*********************************************************"
3921        fi;;
3922  esac
3923
3924  if test -n "$CPU_FLAGS"; then
3925        F90FLAGS="$F90FLAGS $CPU_FLAGS"
3926  fi
3927
3928  if test -z "$F90FLAGS"; then
3929        echo ""
3930        echo "**********************************************************"
3931        echo "* WARNING: Don't know the best F90FLAGS for this system  *"
3932        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
3933        echo "* (otherwise, a default of F90FLAGS=-O3 will be used)    *"
3934        echo "**********************************************************"
3935        echo ""
3936        F90FLAGS="-O3"
3937  fi
3938
3939
3940 echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
3941 echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
3942 if test "${ac_guessed_f90flags+set}" = set; then
3943  echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945
3946
3947
3948 ac_ext=f90
3949 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3950 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3951 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3952
3953 echo 'program main' > conftest.$ac_ext
3954 echo 'end program main' >> conftest.$ac_ext
3955 ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
3956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3957  (eval $ac_compile) 2>&5
3958  ac_status=$?
3959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960  (exit $ac_status); }; then
3961        ac_guessed_f90flags=yes
3962 else
3963        ac_guessed_f90flags=no
3964 fi
3965 rm -f conftest*
3225   ac_ext=c
3226   ac_cpp='$CPP $CPPFLAGS'
3227   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 3970 | Line 3229 | fi
3229   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230  
3231  
3973 fi
3974 echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
3975 echo "${ECHO_T}$ac_guessed_f90flags" >&6
3976 if test "$ac_guessed_f90flags" = yes; then
3977        :
3232  
3979 else
3980        :
3233  
3982        echo ""
3983        echo "**********************************************************"
3984        echo "* WARNING: The guessed F90FLAGS don't seem to work with  *"
3985        echo "* your compiler.                                         *"
3986        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
3987        echo "**********************************************************"
3988        echo ""
3989        F90FLAGS=""
3234  
3991 fi
3992
3993
3994 fi
3995
3996
3997
3998
3999
3235   # Try to determine native compiler flags that allow us to use F90 suffix
3236   # for preprocessed f90 source.
3237  
# Line 4004 | Line 3239 | if test "$ac_test_PREPFLAG" != "set"; then
3239    PREPFLAG=""
3240    case "${host_cpu}-${host_os}" in
3241  
3242 <  *linux*) if test "$F90" = ifc; then
3242 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3243                      PREPFLAG="-fpp1 "
3244                  fi;;
3245    *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
# Line 4017 | Line 3252 | if test "$ac_test_PREPFLAG" != "set"; then
3252    esac
3253  
3254    if test -z "$PREPFLAG"; then
3255 <        echo ""
3256 <        echo "**********************************************************"
4022 <        echo "* WARNING: Don't know the best PREPFLAG for this system  *"
4023 <        echo "* Use  make PREPFLAG=..., or edit the top level Makefile *"
4024 <        echo "* (otherwise, an empty PREPFLAG will be used)            *"
4025 <        echo "**********************************************************"
4026 <        echo ""
3255 >        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
3256 > echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
3257          PREPFLAG=""
3258    fi
3259  
# Line 4058 | Line 3288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3288   _ACEOF
3289   rm -f conftest.$ac_objext
3290   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3291 <  (eval $ac_compile) 2>&5
3291 >  (eval $ac_compile) 2>conftest.er1
3292    ac_status=$?
3293 +  grep -v '^ *+' conftest.er1 >conftest.err
3294 +  rm -f conftest.er1
3295 +  cat conftest.err >&5
3296    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297    (exit $ac_status); } &&
3298 <         { ac_try='test -s conftest.$ac_objext'
3298 >         { ac_try='test -z "$ac_f90_werror_flag"
3299 >                         || test ! -s conftest.err'
3300    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301    (eval $ac_try) 2>&5
3302    ac_status=$?
3303    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 +  (exit $ac_status); }; } &&
3305 +         { ac_try='test -s conftest.$ac_objext'
3306 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3307 +  (eval $ac_try) 2>&5
3308 +  ac_status=$?
3309 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310    (exit $ac_status); }; }; then
3311    prepflagworks=1
3312   else
# Line 4075 | Line 3315 | rm -f conftest.$ac_objext conftest.$ac_ext
3315  
3316   prepflagworks=0
3317   fi
3318 < rm -f conftest.$ac_objext conftest.$ac_ext
3318 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3319  
3320    F90FLAGS=$ac_save_F90FLAGS
3321    ac_ext=$ac_save_ext
# Line 4086 | Line 3326 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327  
3328  
4089
3329    if test "$prepflagworks" = 1; then
3330      echo "$as_me:$LINENO: result: yes" >&5
3331   echo "${ECHO_T}yes" >&6
# Line 4111 | Line 3350 | if test "$ac_test_PREPDEFFLAG" != "set"; then
3350    PREPDEFFLAG=""
3351    case "${host_cpu}-${host_os}" in
3352  
3353 <  *linux*) if test "$F90" = ifc; then
3353 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3354                      PREPDEFFLAG=" "
3355                  fi;;
3356    *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
# Line 4124 | Line 3363 | if test "$ac_test_PREPDEFFLAG" != "set"; then
3363    esac
3364  
3365    if test -z "$PREPDEFFLAG"; then
3366 <        echo ""
3367 <        echo "*************************************************************"
4129 <        echo "* WARNING: Don't know the best PREPDEFFLAG for this system  *"
4130 <        echo "* Use  make PREPDEFFLAG=..., or edit the top level Makefile *"
4131 <        echo "* (otherwise, an empty PREPDEFFLAG will be used)            *"
4132 <        echo "*************************************************************"
4133 <        echo ""
3366 >        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
3367 > echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
3368          PREPDEFFLAG=" "
3369    fi
3370  
# Line 4169 | Line 3403 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3403   _ACEOF
3404   rm -f conftest.$ac_objext
3405   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3406 <  (eval $ac_compile) 2>&5
3406 >  (eval $ac_compile) 2>conftest.er1
3407    ac_status=$?
3408 +  grep -v '^ *+' conftest.er1 >conftest.err
3409 +  rm -f conftest.er1
3410 +  cat conftest.err >&5
3411    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412    (exit $ac_status); } &&
3413 <         { ac_try='test -s conftest.$ac_objext'
3413 >         { ac_try='test -z "$ac_f90_werror_flag"
3414 >                         || test ! -s conftest.err'
3415    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416    (eval $ac_try) 2>&5
3417    ac_status=$?
3418    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 +  (exit $ac_status); }; } &&
3420 +         { ac_try='test -s conftest.$ac_objext'
3421 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422 +  (eval $ac_try) 2>&5
3423 +  ac_status=$?
3424 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425    (exit $ac_status); }; }; then
3426    prepdefflagworks=1
3427   else
# Line 4186 | Line 3430 | rm -f conftest.$ac_objext conftest.$ac_ext
3430  
3431   prepdefflagworks=0
3432   fi
3433 < rm -f conftest.$ac_objext conftest.$ac_ext
3433 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3434  
3435    F90FLAGS=$ac_save_F90FLAGS
3436    ac_ext=$ac_save_ext
# Line 4211 | Line 3455 | fi
3455    fi
3456   fi
3457  
3458 < # Find a good install program.  We prefer a C program (faster),
3459 < # so one script is as good as another.  But avoid the broken or
3460 < # incompatible versions:
3461 < # SysV /etc/install, /usr/sbin/install
3462 < # SunOS /usr/etc/install
3463 < # IRIX /sbin/install
3464 < # AIX /bin/install
3465 < # AmigaOS /C/install, which installs bootblocks on floppy discs
3466 < # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3467 < # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3468 < # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3469 < # ./install, which can be erroneously created by make from ./install.sh.
3470 < echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3471 < echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4228 < if test -z "$INSTALL"; then
4229 < if test "${ac_cv_path_install+set}" = set; then
3458 > ac_ext=f90
3459 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3460 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3462 >
3463 >
3464 >
3465 > ac_ext=f90
3466 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3467 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3469 > echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
3470 > echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3471 > if test "${ac_cv_prog_f90_v+set}" = set; then
3472    echo $ECHO_N "(cached) $ECHO_C" >&6
3473   else
4232  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4234 do
4235  IFS=$as_save_IFS
4236  test -z "$as_dir" && as_dir=.
4237  # Account for people who put trailing slashes in PATH elements.
4238 case $as_dir/ in
4239  ./ | .// | /cC/* | \
4240  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4241  /usr/ucb/* ) ;;
4242  *)
4243    # OSF1 and SCO ODT 3.0 have their own names for install.
4244    # Don't use installbsd from OSF since it installs stuff as root
4245    # by default.
4246    for ac_prog in ginstall scoinst install; do
4247      for ac_exec_ext in '' $ac_executable_extensions; do
4248        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4249          if test $ac_prog = install &&
4250            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4251            # AIX install.  It has an incompatible calling convention.
4252            :
4253          elif test $ac_prog = install &&
4254            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4255            # program-specific install script used by HP pwplus--don't use.
4256            :
4257          else
4258            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4259            break 3
4260          fi
4261        fi
4262      done
4263    done
4264    ;;
4265 esac
4266 done
3474  
3475 + cat >conftest.$ac_ext <<_ACEOF
3476  
3477 < fi
4270 <  if test "${ac_cv_path_install+set}" = set; then
4271 <    INSTALL=$ac_cv_path_install
4272 <  else
4273 <    # As a last resort, use the slow shell script.  We don't cache a
4274 <    # path for INSTALL within a source directory, because that will
4275 <    # break other packages using the cache if that directory is
4276 <    # removed, or if the path is relative.
4277 <    INSTALL=$ac_install_sh
4278 <  fi
4279 < fi
4280 < echo "$as_me:$LINENO: result: $INSTALL" >&5
4281 < echo "${ECHO_T}$INSTALL" >&6
3477 > program main
3478  
4283 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4284 # It thinks the first close brace ends the variable substitution.
4285 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3479  
3480 < test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3480 > end program main
3481  
3482 < test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3483 <
3484 < echo "$as_me:$LINENO: checking whether ln -s works" >&5
3485 < echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3486 < LN_S=$as_ln_s
3487 < if test "$LN_S" = "ln -s"; then
3488 <  echo "$as_me:$LINENO: result: yes" >&5
3489 < echo "${ECHO_T}yes" >&6
3490 < else
3491 <  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3492 < echo "${ECHO_T}no, using $LN_S" >&6
3493 < fi
3482 > _ACEOF
3483 > rm -f conftest.$ac_objext
3484 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3485 >  (eval $ac_compile) 2>conftest.er1
3486 >  ac_status=$?
3487 >  grep -v '^ *+' conftest.er1 >conftest.err
3488 >  rm -f conftest.er1
3489 >  cat conftest.err >&5
3490 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 >  (exit $ac_status); } &&
3492 >         { ac_try='test -z "$ac_f90_werror_flag"
3493 >                         || test ! -s conftest.err'
3494 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495 >  (eval $ac_try) 2>&5
3496 >  ac_status=$?
3497 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 >  (exit $ac_status); }; } &&
3499 >         { ac_try='test -s conftest.$ac_objext'
3500 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501 >  (eval $ac_try) 2>&5
3502 >  ac_status=$?
3503 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 >  (exit $ac_status); }; }; then
3505 >  ac_cv_prog_f90_v=
3506 > # Try some options frequently used verbose output
3507 > for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3508 >  ac_ext=f90
3509 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3510 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3512  
3513 < echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3514 < echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3515 < set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3516 < if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3517 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3518 < else
3519 <  cat >conftest.make <<\_ACEOF
4309 < all:
4310 <        @echo 'ac_maketemp="$(MAKE)"'
3513 > cat >conftest.$ac_ext <<_ACEOF
3514 >
3515 > program main
3516 >
3517 >
3518 > end program main
3519 >
3520   _ACEOF
4312 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4313 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4314 if test -n "$ac_maketemp"; then
4315  eval ac_cv_prog_make_${ac_make}_set=yes
4316 else
4317  eval ac_cv_prog_make_${ac_make}_set=no
4318 fi
4319 rm -f conftest.make
4320 fi
4321 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4322  echo "$as_me:$LINENO: result: yes" >&5
4323 echo "${ECHO_T}yes" >&6
4324  SET_MAKE=
4325 else
4326  echo "$as_me:$LINENO: result: no" >&5
4327 echo "${ECHO_T}no" >&6
4328  SET_MAKE="MAKE=${MAKE-make}"
4329 fi
3521  
3522 < if test -n "$ac_tool_prefix"; then
3523 <  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3524 < set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3525 < echo "$as_me:$LINENO: checking for $ac_word" >&5
3526 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3527 < if test "${ac_cv_prog_RANLIB+set}" = set; then
4337 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4338 < else
4339 <  if test -n "$RANLIB"; then
4340 <  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4341 < else
4342 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 < for as_dir in $PATH
4344 < do
4345 <  IFS=$as_save_IFS
4346 <  test -z "$as_dir" && as_dir=.
4347 <  for ac_exec_ext in '' $ac_executable_extensions; do
4348 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4349 <    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4350 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 <    break 2
4352 <  fi
4353 < done
4354 < done
3522 > # Compile and link our simple test program by passing a flag (argument
3523 > # 1 to this macro) to the Fortran 90 compiler in order to get
3524 > # "verbose" output that we can then parse for the Fortran 90 linker
3525 > # flags.
3526 > ac_save_F90FLAGS=$F90FLAGS
3527 > F90FLAGS="$F90FLAGS $ac_verb"
3528  
3529 + (eval echo $as_me:3529: \"$ac_link\") >&5
3530 + ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3531 + echo "$ac_f90_v_output" >&5
3532 + F90FLAGS=$ac_save_F90FLAGS
3533 +
3534 + rm -f conftest.*
3535 + ac_ext=f90
3536 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3537 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3539 +
3540 + # If we are using xlf then replace all the commas with spaces.
3541 + if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3542 +  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3543   fi
3544 +
3545 + # If we are using Cray Fortran then delete quotes.
3546 + # Use "\"" instead of '"' for font-lock-mode.
3547 + # FIXME: a more general fix for quoted arguments with spaces?
3548 + if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3549 +  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3550   fi
3551 < RANLIB=$ac_cv_prog_RANLIB
3552 < if test -n "$RANLIB"; then
3553 <  echo "$as_me:$LINENO: result: $RANLIB" >&5
3554 < echo "${ECHO_T}$RANLIB" >&6
3555 < else
3556 <  echo "$as_me:$LINENO: result: no" >&5
3557 < echo "${ECHO_T}no" >&6
3551 >  # look for -l* and *.a constructs in the output
3552 >  for ac_arg in $ac_f90_v_output; do
3553 >     case $ac_arg in
3554 >        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3555 >          ac_cv_prog_f90_v=$ac_verb
3556 >          break 2 ;;
3557 >     esac
3558 >  done
3559 > done
3560 > if test -z "$ac_cv_prog_f90_v"; then
3561 >   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
3562 > echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
3563   fi
3564 + else
3565 +  echo "$as_me: failed program was:" >&5
3566 + sed 's/^/| /' conftest.$ac_ext >&5
3567  
3568 + { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3569 + echo "$as_me: WARNING: compilation failed" >&2;}
3570   fi
3571 < if test -z "$ac_cv_prog_RANLIB"; then
3572 <  ac_ct_RANLIB=$RANLIB
3573 <  # Extract the first word of "ranlib", so it can be a program name with args.
3574 < set dummy ranlib; ac_word=$2
3575 < echo "$as_me:$LINENO: checking for $ac_word" >&5
3576 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3577 < if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3571 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3572 >
3573 > fi
3574 > echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
3575 > echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
3576 > echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
3577 > echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
3578 > if test "${ac_cv_flibs+set}" = set; then
3579    echo $ECHO_N "(cached) $ECHO_C" >&6
3580   else
3581 <  if test -n "$ac_ct_RANLIB"; then
3582 <  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3581 >  if test "x$F90LIBS" != "x"; then
3582 >  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
3583   else
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4382 do
4383  IFS=$as_save_IFS
4384  test -z "$as_dir" && as_dir=.
4385  for ac_exec_ext in '' $ac_executable_extensions; do
4386  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4387    ac_cv_prog_ac_ct_RANLIB="ranlib"
4388    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389    break 2
4390  fi
4391 done
4392 done
3584  
3585 <  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3585 > ac_ext=f90
3586 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3587 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3589 >
3590 > cat >conftest.$ac_ext <<_ACEOF
3591 >
3592 > program main
3593 >
3594 >
3595 > end program main
3596 >
3597 > _ACEOF
3598 >
3599 > # Compile and link our simple test program by passing a flag (argument
3600 > # 1 to this macro) to the Fortran 90 compiler in order to get
3601 > # "verbose" output that we can then parse for the Fortran 90 linker
3602 > # flags.
3603 > ac_save_F90FLAGS=$F90FLAGS
3604 > F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3605 >
3606 > (eval echo $as_me:3606: \"$ac_link\") >&5
3607 > ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3608 > echo "$ac_f90_v_output" >&5
3609 > F90FLAGS=$ac_save_F90FLAGS
3610 >
3611 > rm -f conftest.*
3612 > ac_ext=f90
3613 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3614 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3615 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3616 >
3617 > # If we are using xlf then replace all the commas with spaces.
3618 > if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3619 >  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3620   fi
3621 +
3622 + # If we are using Cray Fortran then delete quotes.
3623 + # Use "\"" instead of '"' for font-lock-mode.
3624 + # FIXME: a more general fix for quoted arguments with spaces?
3625 + if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3626 +  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3627   fi
4397 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4398 if test -n "$ac_ct_RANLIB"; then
4399  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4400 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4401 else
4402  echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6
4404 fi
3628  
3629 <  RANLIB=$ac_ct_RANLIB
3629 > ac_cv_f90libs=
3630 >
3631 > # Save positional arguments (if any)
3632 > ac_save_positional="$@"
3633 >
3634 > set X $ac_f90_v_output
3635 > while test $# != 1; do
3636 >  shift
3637 >  ac_arg=$1
3638 >  case $ac_arg in
3639 >        [\\/]*.a | ?:[\\/]*.a)
3640 >            ac_exists=false
3641 >  for ac_i in $ac_cv_f90libs; do
3642 >    if test x"$ac_arg" = x"$ac_i"; then
3643 >      ac_exists=true
3644 >      break
3645 >    fi
3646 >  done
3647 >
3648 >  if test x"$ac_exists" = xtrue; then
3649 >  :
3650   else
3651 <  RANLIB="$ac_cv_prog_RANLIB"
3651 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3652   fi
3653  
3654 < for ac_prog in 'bison -y' byacc
3655 < do
3656 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
3657 < set dummy $ac_prog; ac_word=$2
3658 < echo "$as_me:$LINENO: checking for $ac_word" >&5
3659 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3660 < if test "${ac_cv_prog_YACC+set}" = set; then
3661 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3654 >          ;;
3655 >        -bI:*)
3656 >            ac_exists=false
3657 >  for ac_i in $ac_cv_f90libs; do
3658 >    if test x"$ac_arg" = x"$ac_i"; then
3659 >      ac_exists=true
3660 >      break
3661 >    fi
3662 >  done
3663 >
3664 >  if test x"$ac_exists" = xtrue; then
3665 >  :
3666   else
3667 <  if test -n "$YACC"; then
3668 <  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3667 >  if test "$ac_compiler_gnu" = yes; then
3668 >  for ac_link_opt in $ac_arg; do
3669 >    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3670 >  done
3671   else
3672 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 < for as_dir in $PATH
4425 < do
4426 <  IFS=$as_save_IFS
4427 <  test -z "$as_dir" && as_dir=.
4428 <  for ac_exec_ext in '' $ac_executable_extensions; do
4429 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4430 <    ac_cv_prog_YACC="$ac_prog"
4431 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 <    break 2
4433 <  fi
4434 < done
4435 < done
4436 <
3672 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3673   fi
3674   fi
3675 < YACC=$ac_cv_prog_YACC
3676 < if test -n "$YACC"; then
3677 <  echo "$as_me:$LINENO: result: $YACC" >&5
3678 < echo "${ECHO_T}$YACC" >&6
3675 >
3676 >          ;;
3677 >          # Ignore these flags.
3678 >        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
3679 >          ;;
3680 >        -lkernel32)
3681 >          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3682 >          ;;
3683 >        -[LRuY])
3684 >          # These flags, when seen by themselves, take an argument.
3685 >          # We remove the space between option and argument and re-iterate
3686 >          # unless we find an empty arg or a new option (starting with -)
3687 >          case $2 in
3688 >             "" | -*);;
3689 >             *)
3690 >                ac_arg="$ac_arg$2"
3691 >
3692 >                shift; shift
3693 >                set X $ac_arg "$@"
3694 >                ;;
3695 >          esac
3696 >          ;;
3697 >        -YP,*)
3698 >          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3699 >              ac_exists=false
3700 >  for ac_i in $ac_cv_f90libs; do
3701 >    if test x"$ac_j" = x"$ac_i"; then
3702 >      ac_exists=true
3703 >      break
3704 >    fi
3705 >  done
3706 >
3707 >  if test x"$ac_exists" = xtrue; then
3708 >  :
3709   else
3710 <  echo "$as_me:$LINENO: result: no" >&5
3711 < echo "${ECHO_T}no" >&6
3710 >  ac_arg="$ac_arg $ac_j"
3711 >                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
3712   fi
3713  
3714 <  test -n "$YACC" && break
3714 >          done
3715 >          ;;
3716 >        -[lLR]*)
3717 >            ac_exists=false
3718 >  for ac_i in $ac_cv_f90libs; do
3719 >    if test x"$ac_arg" = x"$ac_i"; then
3720 >      ac_exists=true
3721 >      break
3722 >    fi
3723 >  done
3724 >
3725 >  if test x"$ac_exists" = xtrue; then
3726 >  :
3727 > else
3728 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3729 > fi
3730 >
3731 >          ;;
3732 >          # Ignore everything else.
3733 >  esac
3734   done
3735 < test -n "$YACC" || YACC="yacc"
3735 > # restore positional arguments
3736 > set X $ac_save_positional; shift
3737  
3738 + # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
3739 + # then we insist that the "run path" must be an absolute path (i.e. it
3740 + # must begin with a "/").
3741 + case `(uname -sr) 2>/dev/null` in
3742 +   "SunOS 5"*)
3743 +      ac_ld_run_path=`echo $ac_f90_v_output |
3744 +                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3745 +      test "x$ac_ld_run_path" != x &&
3746  
3747 < for ac_prog in flex lex
3748 < do
3749 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
3750 < set dummy $ac_prog; ac_word=$2
3751 < echo "$as_me:$LINENO: checking for $ac_word" >&5
3752 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3753 < if test "${ac_cv_prog_LEX+set}" = set; then
3754 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3755 < else
3756 <  if test -n "$LEX"; then
3757 <  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3758 < else
3759 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 < for as_dir in $PATH
3761 < do
3762 <  IFS=$as_save_IFS
3763 <  test -z "$as_dir" && as_dir=.
3764 <  for ac_exec_ext in '' $ac_executable_extensions; do
3765 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3766 <    ac_cv_prog_LEX="$ac_prog"
3767 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 <    break 2
3769 <  fi
3770 < done
3771 < done
3772 <
3773 < fi
3774 < fi
3775 < LEX=$ac_cv_prog_LEX
3776 < if test -n "$LEX"; then
3777 <  echo "$as_me:$LINENO: result: $LEX" >&5
3778 < echo "${ECHO_T}$LEX" >&6
3779 < else
3780 <  echo "$as_me:$LINENO: result: no" >&5
3781 < echo "${ECHO_T}no" >&6
3782 < fi
3783 <
3784 <  test -n "$LEX" && break
3785 < done
3786 < test -n "$LEX" || LEX=":"
3787 <
3788 < if test -z "$LEXLIB"
3789 < then
3790 <  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3791 < echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3792 < if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3793 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3794 < else
3795 <  ac_check_lib_save_LIBS=$LIBS
3796 < LIBS="-lfl  $LIBS"
3797 < cat >conftest.$ac_ext <<_ACEOF
3798 < #line $LINENO "configure"
3799 < /* confdefs.h.  */
3800 < _ACEOF
3801 < cat confdefs.h >>conftest.$ac_ext
3802 < cat >>conftest.$ac_ext <<_ACEOF
3803 < /* end confdefs.h.  */
3804 <
3805 < /* Override any gcc2 internal prototype to avoid an error.  */
3806 < #ifdef __cplusplus
3807 < extern "C"
3808 < #endif
3809 < /* We use char because int might match the return type of a gcc2
3810 <   builtin and then its argument prototype would still apply.  */
3811 < char yywrap ();
3812 < int
3813 < main ()
3814 < {
3815 < yywrap ();
3816 <  ;
3817 <  return 0;
3818 < }
3819 < _ACEOF
3820 < rm -f conftest.$ac_objext conftest$ac_exeext
3821 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3822 <  (eval $ac_link) 2>&5
3823 <  ac_status=$?
3824 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 <  (exit $ac_status); } &&
3826 <         { ac_try='test -s conftest$ac_exeext'
3827 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828 <  (eval $ac_try) 2>&5
3829 <  ac_status=$?
3830 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 <  (exit $ac_status); }; }; then
3832 <  ac_cv_lib_fl_yywrap=yes
3833 < else
3834 <  echo "$as_me: failed program was:" >&5
3835 < sed 's/^/| /' conftest.$ac_ext >&5
3836 <
3837 < ac_cv_lib_fl_yywrap=no
3838 < fi
3839 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3840 < LIBS=$ac_check_lib_save_LIBS
3841 < fi
3842 < echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3843 < echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3844 < if test $ac_cv_lib_fl_yywrap = yes; then
3845 <  LEXLIB="-lfl"
3846 < else
3847 <  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3848 < echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3849 < if test "${ac_cv_lib_l_yywrap+set}" = set; then
3850 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3851 < else
3852 <  ac_check_lib_save_LIBS=$LIBS
3853 < LIBS="-ll  $LIBS"
3854 < cat >conftest.$ac_ext <<_ACEOF
3855 < #line $LINENO "configure"
3856 < /* confdefs.h.  */
3857 < _ACEOF
3858 < cat confdefs.h >>conftest.$ac_ext
3859 < cat >>conftest.$ac_ext <<_ACEOF
3860 < /* end confdefs.h.  */
3861 <
3862 < /* Override any gcc2 internal prototype to avoid an error.  */
3863 < #ifdef __cplusplus
3864 < extern "C"
3865 < #endif
3866 < /* We use char because int might match the return type of a gcc2
3867 <   builtin and then its argument prototype would still apply.  */
3868 < char yywrap ();
3869 < int
3870 < main ()
3871 < {
3872 < yywrap ();
3873 <  ;
3874 <  return 0;
3875 < }
3876 < _ACEOF
3877 < rm -f conftest.$ac_objext conftest$ac_exeext
3878 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3879 <  (eval $ac_link) 2>&5
3880 <  ac_status=$?
3881 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 <  (exit $ac_status); } &&
3883 <         { ac_try='test -s conftest$ac_exeext'
3884 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885 <  (eval $ac_try) 2>&5
3886 <  ac_status=$?
3887 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 <  (exit $ac_status); }; }; then
3889 <  ac_cv_lib_l_yywrap=yes
3890 < else
3891 <  echo "$as_me: failed program was:" >&5
3892 < sed 's/^/| /' conftest.$ac_ext >&5
3893 <
3894 < ac_cv_lib_l_yywrap=no
3895 < fi
3896 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3897 < LIBS=$ac_check_lib_save_LIBS
3898 < fi
3899 < echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3900 < echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3901 < if test $ac_cv_lib_l_yywrap = yes; then
3902 <  LEXLIB="-ll"
3903 < fi
3904 <
3905 < fi
3906 <
3907 < fi
3908 <
3909 < if test "x$LEX" != "x:"; then
3910 <  echo "$as_me:$LINENO: checking lex output file root" >&5
3911 < echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3912 < if test "${ac_cv_prog_lex_root+set}" = set; then
3913 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3914 < else
3915 <  # The minimal lex program is just a single line: %%.  But some broken lexes
3916 < # (Solaris, I think it was) want two %% lines, so accommodate them.
3917 < cat >conftest.l <<_ACEOF
3918 < %%
3919 < %%
3920 < _ACEOF
3921 < { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3922 <  (eval $LEX conftest.l) 2>&5
3923 <  ac_status=$?
3924 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 <  (exit $ac_status); }
3926 < if test -f lex.yy.c; then
3927 <  ac_cv_prog_lex_root=lex.yy
3928 < elif test -f lexyy.c; then
3929 <  ac_cv_prog_lex_root=lexyy
3930 < else
3931 <  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3932 < echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3933 <   { (exit 1); exit 1; }; }
3934 < fi
3935 < fi
3936 < echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3937 < echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3938 < rm -f conftest.l
3939 < LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3940 <
3941 < echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3942 < echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3943 < if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3944 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3945 < else
3946 <  # POSIX says lex can declare yytext either as a pointer or an array; the
3947 < # default is implementation-dependent. Figure out which it is, since
3948 < # not all implementations provide the %pointer and %array declarations.
3949 < ac_cv_prog_lex_yytext_pointer=no
3950 < echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3951 < ac_save_LIBS=$LIBS
3952 < LIBS="$LIBS $LEXLIB"
3953 < cat >conftest.$ac_ext <<_ACEOF
3954 < `cat $LEX_OUTPUT_ROOT.c`
3955 < _ACEOF
3956 < rm -f conftest.$ac_objext conftest$ac_exeext
3957 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3958 <  (eval $ac_link) 2>&5
3959 <  ac_status=$?
3960 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 <  (exit $ac_status); } &&
3962 <         { ac_try='test -s conftest$ac_exeext'
3963 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964 <  (eval $ac_try) 2>&5
3965 <  ac_status=$?
3966 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 <  (exit $ac_status); }; }; then
3968 <  ac_cv_prog_lex_yytext_pointer=yes
3969 < else
3970 <  echo "$as_me: failed program was:" >&5
3971 < sed 's/^/| /' conftest.$ac_ext >&5
3972 <
3973 < fi
3974 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3975 < LIBS=$ac_save_LIBS
3976 < rm -f "${LEX_OUTPUT_ROOT}.c"
3977 <
3978 < fi
3979 < echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3980 < echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3981 < if test $ac_cv_prog_lex_yytext_pointer = yes; then
3982 <
3983 < cat >>confdefs.h <<\_ACEOF
3984 < #define YYTEXT_POINTER 1
3985 < _ACEOF
3986 <
3987 < fi
3988 <
3989 < fi
3990 < # Extract the first word of "ar", so it can be a program name with args.
3991 < set dummy ar; ac_word=$2
3992 < echo "$as_me:$LINENO: checking for $ac_word" >&5
3993 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3994 < if test "${ac_cv_prog_AR+set}" = set; then
3995 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3996 < else
3997 <  if test -n "$AR"; then
3998 <  ac_cv_prog_AR="$AR" # Let the user override the test.
3999 < else
4000 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 < for as_dir in $PATH
4002 < do
4003 <  IFS=$as_save_IFS
4004 <  test -z "$as_dir" && as_dir=.
4005 <  for ac_exec_ext in '' $ac_executable_extensions; do
4006 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4007 <    ac_cv_prog_AR="ar"
4008 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 <    break 2
4010 <  fi
4011 < done
4012 < done
4013 <
4014 <  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
4015 < fi
4016 < fi
4017 < AR=$ac_cv_prog_AR
4018 < if test -n "$AR"; then
4019 <  echo "$as_me:$LINENO: result: $AR" >&5
4020 < echo "${ECHO_T}$AR" >&6
4021 < else
4022 <  echo "$as_me:$LINENO: result: no" >&5
4023 < echo "${ECHO_T}no" >&6
4024 < fi
4025 <
4026 < if test "$AR" = "NONE"; then
4027 <  { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
4028 < echo "$as_me: error: --> Can't find \`ar'!" >&2;}
4029 <   { (exit 1); exit 1; }; }
4030 <  cat >confcache <<\_ACEOF
4031 < # This file is a shell script that caches the results of configure
4032 < # tests run on this system so they can be shared between configure
4033 < # scripts and configure runs, see configure's option --config-cache.
4034 < # It is not useful on other systems.  If it contains results you don't
4035 < # want to keep, you may remove or edit it.
4036 < #
4037 < # config.status only pays attention to the cache file if you give it
4038 < # the --recheck option to rerun configure.
4039 < #
4040 < # `ac_cv_env_foo' variables (set or unset) will be overridden when
4041 < # loading this file, other *unset* `ac_cv_foo' will be assigned the
4042 < # following values.
4043 <
4044 < _ACEOF
4045 <
4046 < # The following way of writing the cache mishandles newlines in values,
4047 < # but we know of no workaround that is simple, portable, and efficient.
4048 < # So, don't put newlines in cache variables' values.
4049 < # Ultrix sh set writes to stderr and can't be redirected directly,
4050 < # and sets the high bit in the cache file unless we assign to the vars.
4051 < {
4052 <  (set) 2>&1 |
4053 <    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4054 <    *ac_space=\ *)
4055 <      # `set' does not quote correctly, so add quotes (double-quote
4056 <      # substitution turns \\\\ into \\, and sed turns \\ into \).
4057 <      sed -n \
4058 <        "s/'/'\\\\''/g;
4059 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4060 <      ;;
4061 <    *)
4062 <      # `set' quotes correctly as required by POSIX, so do not add quotes.
4063 <      sed -n \
4064 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4065 <      ;;
4066 <    esac;
4067 < } |
4068 <  sed '
4069 <     t clear
4070 <     : clear
4071 <     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4072 <     t end
4073 <     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4074 <     : end' >>confcache
4075 < if diff $cache_file confcache >/dev/null 2>&1; then :; else
4076 <  if test -w $cache_file; then
4077 <    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4078 <    cat confcache >$cache_file
4079 <  else
4080 <    echo "not updating unwritable cache $cache_file"
4081 <  fi
4082 < fi
4083 < rm -f confcache
4084 <  exit 1
4085 < fi
4086 <
4087 < ac_ext=f90
4088 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4089 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4091 <
4092 <
4093 <
4094 < ac_ext=f90
4095 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4096 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4098 < echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
4099 < echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
4100 < if test "${ac_cv_prog_f90_v+set}" = set; then
4101 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4102 < else
4103 <
4104 < cat >conftest.$ac_ext <<_ACEOF
4105 <
4106 < program main
4107 <
4108 <
4109 < end program main
4110 <
4111 < _ACEOF
4112 < rm -f conftest.$ac_objext
4113 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114 <  (eval $ac_compile) 2>&5
4115 <  ac_status=$?
4116 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 <  (exit $ac_status); } &&
4118 <         { ac_try='test -s conftest.$ac_objext'
4119 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 <  (eval $ac_try) 2>&5
4121 <  ac_status=$?
4122 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 <  (exit $ac_status); }; }; then
4124 <  ac_cv_prog_f90_v=
4125 < # Try some options frequently used verbose output
4126 < for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4127 <  ac_ext=f90
4128 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4129 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4130 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4131 <
4132 < cat >conftest.$ac_ext <<_ACEOF
4133 <
4134 < program main
4135 <
4136 <
4137 < end program main
4138 <
4139 < _ACEOF
4140 <
4141 < # Compile and link our simple test program by passing a flag (argument
4142 < # 1 to this macro) to the Fortran 90 compiler in order to get
4143 < # "verbose" output that we can then parse for the Fortran 90 linker
4144 < # flags.
4145 < ac_save_F90FLAGS=$F90FLAGS
4146 < F90FLAGS="$F90FLAGS $ac_verb"
4147 <
4148 < (eval echo $as_me:4854: \"$ac_link\") >&5
4149 < ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4150 < echo "$ac_f90_v_output" >&5
4151 < F90FLAGS=$ac_save_F90FLAGS
4152 <
4153 < rm -f conftest.*
4154 < ac_ext=f90
4155 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4156 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4158 <
4159 < # If we are using xlf then replace all the commas with spaces.
4160 < if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4161 <  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4162 < fi
4163 <
4164 < # If we are using Cray Fortran then delete quotes.
4165 < # Use "\"" instead of '"' for font-lock-mode.
4166 < # FIXME: a more general fix for quoted arguments with spaces?
4167 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4168 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4169 < fi
4170 <  # look for -l* and *.a constructs in the output
4171 <  for ac_arg in $ac_f90_v_output; do
4172 <     case $ac_arg in
4173 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4174 <          ac_cv_prog_f90_v=$ac_verb
4175 <          break 2 ;;
4176 <     esac
4177 <  done
4178 < done
4179 < if test -z "$ac_cv_prog_f90_v"; then
4180 <   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
4181 < echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
4182 < fi
4183 < else
4184 <  echo "$as_me: failed program was:" >&5
4185 < sed 's/^/| /' conftest.$ac_ext >&5
4186 <
4187 < { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4188 < echo "$as_me: WARNING: compilation failed" >&2;}
4189 < fi
4190 < rm -f conftest.$ac_objext conftest.$ac_ext
4191 <
4192 < fi
4193 < echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
4194 < echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
4195 < echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
4196 < echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
4197 < if test "${ac_cv_flibs+set}" = set; then
4198 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4199 < else
4200 <  if test "x$F90LIBS" != "x"; then
4201 <  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
4202 < else
4203 <
4204 < ac_ext=f90
4205 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4206 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4208 <
4209 < cat >conftest.$ac_ext <<_ACEOF
4210 <
4211 < program main
4212 <
4213 <
4214 < end program main
4215 <
4216 < _ACEOF
4217 <
4218 < # Compile and link our simple test program by passing a flag (argument
4219 < # 1 to this macro) to the Fortran 90 compiler in order to get
4220 < # "verbose" output that we can then parse for the Fortran 90 linker
4221 < # flags.
4222 < ac_save_F90FLAGS=$F90FLAGS
4223 < F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
4224 <
4225 < (eval echo $as_me:4931: \"$ac_link\") >&5
4226 < ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4227 < echo "$ac_f90_v_output" >&5
4228 < F90FLAGS=$ac_save_F90FLAGS
4229 <
4230 < rm -f conftest.*
4231 < ac_ext=f90
4232 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4233 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4234 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4235 <
4236 < # If we are using xlf then replace all the commas with spaces.
4237 < if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4238 <  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4239 < fi
4240 <
4241 < # If we are using Cray Fortran then delete quotes.
4242 < # Use "\"" instead of '"' for font-lock-mode.
4243 < # FIXME: a more general fix for quoted arguments with spaces?
4244 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4245 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4246 < fi
4247 <
4248 < ac_cv_f90libs=
4249 <
4250 < # Save positional arguments (if any)
4251 < ac_save_positional="$@"
4252 <
4253 < set X $ac_f90_v_output
4254 < while test $# != 1; do
4255 <  shift
4256 <  ac_arg=$1
4257 <  case $ac_arg in
4258 <        [\\/]*.a | ?:[\\/]*.a)
4259 <            ac_exists=false
4260 <  for ac_i in $ac_cv_f90libs; do
4261 <    if test x"$ac_arg" = x"$ac_i"; then
4262 <      ac_exists=true
4263 <      break
4264 <    fi
4265 <  done
4266 <
4267 <  if test x"$ac_exists" = xtrue; then
4268 <  :
4269 < else
4270 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4271 < fi
4272 <
4273 <          ;;
4274 <        -bI:*)
4275 <            ac_exists=false
4276 <  for ac_i in $ac_cv_f90libs; do
4277 <    if test x"$ac_arg" = x"$ac_i"; then
4278 <      ac_exists=true
4279 <      break
4280 <    fi
4281 <  done
4282 <
4283 <  if test x"$ac_exists" = xtrue; then
4284 <  :
4285 < else
4286 <  if test "$ac_compiler_gnu" = yes; then
4287 <  for ac_link_opt in $ac_arg; do
4288 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4289 <  done
4290 < else
4291 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4292 < fi
4293 < fi
4294 <
4295 <          ;;
4296 <          # Ignore these flags.
4297 <        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
4298 <          ;;
4299 <        -lkernel32)
4300 <          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4301 <          ;;
4302 <        -[LRuY])
4303 <          # These flags, when seen by themselves, take an argument.
4304 <          # We remove the space between option and argument and re-iterate
4305 <          # unless we find an empty arg or a new option (starting with -)
4306 <          case $2 in
4307 <             "" | -*);;
4308 <             *)
4309 <                ac_arg="$ac_arg$2"
4310 <
4311 <                shift; shift
4312 <                set X $ac_arg "$@"
4313 <                ;;
4314 <          esac
4315 <          ;;
4316 <        -YP,*)
4317 <          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4318 <              ac_exists=false
4319 <  for ac_i in $ac_cv_f90libs; do
4320 <    if test x"$ac_j" = x"$ac_i"; then
4321 <      ac_exists=true
4322 <      break
4323 <    fi
4324 <  done
4325 <
4326 <  if test x"$ac_exists" = xtrue; then
4327 <  :
4328 < else
4329 <  ac_arg="$ac_arg $ac_j"
4330 <                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
4331 < fi
4332 <
4333 <          done
4334 <          ;;
4335 <        -[lLR]*)
4336 <            ac_exists=false
4337 <  for ac_i in $ac_cv_f90libs; do
4338 <    if test x"$ac_arg" = x"$ac_i"; then
4339 <      ac_exists=true
4340 <      break
4341 <    fi
4342 <  done
4343 <
4344 <  if test x"$ac_exists" = xtrue; then
4345 <  :
4346 < else
4347 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4348 < fi
4349 <
4350 <          ;;
4351 <          # Ignore everything else.
4352 <  esac
4353 < done
4354 < # restore positional arguments
4355 < set X $ac_save_positional; shift
4356 <
4357 < # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4358 < # then we insist that the "run path" must be an absolute path (i.e. it
4359 < # must begin with a "/").
4360 < case `(uname -sr) 2>/dev/null` in
4361 <   "SunOS 5"*)
4362 <      ac_ld_run_path=`echo $ac_f90_v_output |
4363 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4364 <      test "x$ac_ld_run_path" != x &&
4365 <
4366 <        if test "$ac_compiler_gnu" = yes; then
4367 <  for ac_link_opt in $ac_ld_run_path; do
4368 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4369 <  done
4370 < else
4371 <  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
4372 < fi
4373 <      ;;
4374 < esac
4375 < fi # test "x$F90LIBS" = "x"
4376 <
4377 < fi
4378 < echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
4379 < echo "${ECHO_T}$ac_cv_flibs" >&6
4380 < F90LIBS="$ac_cv_f90libs"
4381 <
4382 < ac_ext=f90
4383 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4384 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4386 <
4387 < echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
4388 < echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
4389 < if test "${ac_cv_f90_mangling+set}" = set; then
4390 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4391 < else
4392 <  ac_ext=f90
4393 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4394 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4396 < cat >conftest.$ac_ext <<_ACEOF
4397 < subroutine foobar()
4398 < return
4399 < end
4400 < subroutine foo_bar()
4401 < return
4402 < end
4403 < _ACEOF
4404 < rm -f conftest.$ac_objext
4405 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406 <  (eval $ac_compile) 2>&5
4407 <  ac_status=$?
4408 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 <  (exit $ac_status); } &&
4410 <         { ac_try='test -s conftest.$ac_objext'
4411 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412 <  (eval $ac_try) 2>&5
4413 <  ac_status=$?
4414 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 <  (exit $ac_status); }; }; then
4416 <  mv conftest.$ac_objext cf90_test.$ac_objext
4417 <
4418 <  ac_ext=c
4419 < ac_cpp='$CPP $CPPFLAGS'
4420 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
4423 <
4424 <  ac_save_LIBS=$LIBS
4425 <  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
4426 <
4427 <  ac_success=no
4428 <  for ac_foobar in foobar FOOBAR; do
4429 <    for ac_underscore in "" "_"; do
4430 <      ac_func="$ac_foobar$ac_underscore"
4431 <      cat >conftest.$ac_ext <<_ACEOF
4432 < #line $LINENO "configure"
4433 < /* confdefs.h.  */
4434 < _ACEOF
4435 < cat confdefs.h >>conftest.$ac_ext
4436 < cat >>conftest.$ac_ext <<_ACEOF
4437 < /* end confdefs.h.  */
4438 <
4439 < /* Override any gcc2 internal prototype to avoid an error.  */
4440 < #ifdef __cplusplus
4441 < extern "C"
4442 < #endif
4443 < /* We use char because int might match the return type of a gcc2
4444 <   builtin and then its argument prototype would still apply.  */
4445 < char $ac_func ();
4446 < int
4447 < main ()
4448 < {
4449 < $ac_func ();
4450 <  ;
4451 <  return 0;
4452 < }
4453 < _ACEOF
4454 < rm -f conftest.$ac_objext conftest$ac_exeext
4455 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4456 <  (eval $ac_link) 2>&5
4457 <  ac_status=$?
4458 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 <  (exit $ac_status); } &&
4460 <         { ac_try='test -s conftest$ac_exeext'
4461 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 <  (eval $ac_try) 2>&5
4463 <  ac_status=$?
4464 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 <  (exit $ac_status); }; }; then
4466 <  ac_success=yes; break 2
4467 < else
4468 <  echo "$as_me: failed program was:" >&5
4469 < sed 's/^/| /' conftest.$ac_ext >&5
4470 <
4471 < fi
4472 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4473 <    done
4474 <  done
4475 <
4476 <  if test "$ac_success" = "yes"; then
4477 <     case $ac_foobar in
4478 <        foobar)
4479 <           ac_case=lower
4480 <           ac_foo_bar=foo_bar
4481 <           ;;
4482 <        FOOBAR)
4483 <           ac_case=upper
4484 <           ac_foo_bar=FOO_BAR
4485 <           ;;
4486 <     esac
4487 <
4488 <     ac_success_extra=no
4489 <     for ac_extra in "" "_"; do
4490 <        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4491 <
4492 <        cat >conftest.$ac_ext <<_ACEOF
4493 < #line $LINENO "configure"
4494 < /* confdefs.h.  */
4495 < _ACEOF
4496 < cat confdefs.h >>conftest.$ac_ext
4497 < cat >>conftest.$ac_ext <<_ACEOF
4498 < /* end confdefs.h.  */
4499 <
4500 < /* Override any gcc2 internal prototype to avoid an error.  */
4501 < #ifdef __cplusplus
4502 < extern "C"
4503 < #endif
4504 < /* We use char because int might match the return type of a gcc2
4505 <   builtin and then its argument prototype would still apply.  */
4506 < char $ac_func ();
4507 < int
4508 < main ()
4509 < {
4510 < $ac_func ();
4511 <  ;
4512 <  return 0;
4513 < }
4514 < _ACEOF
4515 < rm -f conftest.$ac_objext conftest$ac_exeext
4516 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4517 <  (eval $ac_link) 2>&5
4518 <  ac_status=$?
4519 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 <  (exit $ac_status); } &&
4521 <         { ac_try='test -s conftest$ac_exeext'
4522 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523 <  (eval $ac_try) 2>&5
4524 <  ac_status=$?
4525 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 <  (exit $ac_status); }; }; then
4527 <  ac_success_extra=yes; break
4528 < else
4529 <  echo "$as_me: failed program was:" >&5
4530 < sed 's/^/| /' conftest.$ac_ext >&5
4531 <
4532 < fi
4533 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4534 <     done
4535 <
4536 <     if test "$ac_success_extra" = "yes"; then
4537 <        ac_cv_f90_mangling="$ac_case case"
4538 <        if test -z "$ac_underscore"; then
4539 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
4540 <        else
4541 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
4542 <
4543 <        fi
4544 <        if test -z "$ac_extra"; then
4545 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
4546 <        else
4547 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
4548 <        fi
4549 <      else
4550 <        ac_cv_f90_mangling="unknown"
4551 <      fi
4552 <  else
4553 <     ac_cv_f90_mangling="unknown"
4554 <
4555 <  fi
4556 <
4557 <  LIBS=$ac_save_LIBS
4558 <  ac_ext=f90
4559 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4560 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4562 <  rm -f cf90_test* conftest*
4563 < else
4564 <  echo "$as_me: failed program was:" >&5
4565 < sed 's/^/| /' conftest.$ac_ext >&5
4566 <
4567 < fi
4568 < rm -f conftest.$ac_objext conftest.$ac_ext
4569 < ac_ext=f90
4570 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4571 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4573 <
4574 < fi
4575 < echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
4576 < echo "${ECHO_T}$ac_cv_f90_mangling" >&6
4577 <
4578 <
4579 <
4580 < case $ac_cv_f90_mangling in
4581 <  "lower case, no underscore, no extra underscore")
4582 <          cat >>confdefs.h <<\_ACEOF
4583 < #define F90_FUNC(name,NAME) name
4584 < _ACEOF
4585 <
4586 <          cat >>confdefs.h <<\_ACEOF
4587 < #define F90_FUNC_(name,NAME) name
4588 < _ACEOF
4589 < ;;
4590 <  "lower case, no underscore, extra underscore")
4591 <          cat >>confdefs.h <<\_ACEOF
4592 < #define F90_FUNC(name,NAME) name
4593 < _ACEOF
4594 <
4595 <          cat >>confdefs.h <<\_ACEOF
4596 < #define F90_FUNC_(name,NAME) name ## _
4597 < _ACEOF
4598 < ;;
4599 <  "lower case, underscore, no extra underscore")
4600 <          cat >>confdefs.h <<\_ACEOF
4601 < #define F90_FUNC(name,NAME) name ## _
4602 < _ACEOF
4603 <
4604 <          cat >>confdefs.h <<\_ACEOF
4605 < #define F90_FUNC_(name,NAME) name ## _
4606 < _ACEOF
4607 < ;;
4608 <  "lower case, underscore, extra underscore")
4609 <          cat >>confdefs.h <<\_ACEOF
4610 < #define F90_FUNC(name,NAME) name ## _
4611 < _ACEOF
4612 <
4613 <          cat >>confdefs.h <<\_ACEOF
4614 < #define F90_FUNC_(name,NAME) name ## __
4615 < _ACEOF
4616 < ;;
4617 <  "upper case, no underscore, no extra underscore")
4618 <          cat >>confdefs.h <<\_ACEOF
4619 < #define F90_FUNC(name,NAME) NAME
4620 < _ACEOF
4621 <
4622 <          cat >>confdefs.h <<\_ACEOF
4623 < #define F90_FUNC_(name,NAME) NAME
4624 < _ACEOF
4625 < ;;
4626 <  "upper case, no underscore, extra underscore")
4627 <          cat >>confdefs.h <<\_ACEOF
4628 < #define F90_FUNC(name,NAME) NAME
4629 < _ACEOF
4630 <
4631 <          cat >>confdefs.h <<\_ACEOF
4632 < #define F90_FUNC_(name,NAME) NAME ## _
4633 < _ACEOF
4634 < ;;
4635 <  "upper case, underscore, no extra underscore")
4636 <          cat >>confdefs.h <<\_ACEOF
4637 < #define F90_FUNC(name,NAME) NAME ## _
4638 < _ACEOF
4639 <
4640 <          cat >>confdefs.h <<\_ACEOF
4641 < #define F90_FUNC_(name,NAME) NAME ## _
4642 < _ACEOF
4643 < ;;
4644 <  "upper case, underscore, extra underscore")
4645 <          cat >>confdefs.h <<\_ACEOF
4646 < #define F90_FUNC(name,NAME) NAME ## _
4647 < _ACEOF
4648 <
4649 <          cat >>confdefs.h <<\_ACEOF
4650 < #define F90_FUNC_(name,NAME) NAME ## __
4651 < _ACEOF
4652 < ;;
4653 <  *)
4654 <          { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4655 < echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4656 <          ;;
4657 < esac
4658 <
4659 <
4660 <
4661 <
4662 < echo "$as_me:$LINENO: checking for mpi-directory" >&5
4663 < echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
4664 <
4665 < # Check whether --with-mpi_dir or --without-mpi_dir was given.
4666 < if test "${with_mpi_dir+set}" = set; then
4667 <  withval="$with_mpi_dir"
4668 <  MPI_DIR="$withval"
4669 < else
4670 <  MPI_DIR="/usr/local"
4671 < fi;
4672 < echo "$as_me:$LINENO: result: $MPI_DIR" >&5
4673 < echo "${ECHO_T}$MPI_DIR" >&6
4674 <
4675 <
4676 < echo "$as_me:$LINENO: checking for mpi-lib-directory" >&5
4677 < echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6
4678 <
4679 < # Check whether --with-mpi_libdir or --without-mpi_libdir was given.
4680 < if test "${with_mpi_libdir+set}" = set; then
4681 <  withval="$with_mpi_libdir"
4682 <  MPI_LIBDIR="$withval"
4683 < else
4684 <  MPI_LIBDIR="$MPI_DIR/lib"
4685 < fi;
4686 < echo "$as_me:$LINENO: result: $MPI_LIBDIR" >&5
4687 < echo "${ECHO_T}$MPI_LIBDIR" >&6
4688 <
4689 <
4690 < echo "$as_me:$LINENO: checking for mpi-inc-directory" >&5
4691 < echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6
4692 <
4693 < # Check whether --with-mpi_inc or --without-mpi_inc was given.
4694 < if test "${with_mpi_inc+set}" = set; then
4695 <  withval="$with_mpi_inc"
4696 <  MPI_INC="$withval"
4697 < else
4698 <  MPI_INC="$MPI_DIR/include"
4699 < fi;
4700 < echo "$as_me:$LINENO: result: $MPI_INC" >&5
4701 < echo "${ECHO_T}$MPI_INC" >&6
4702 <
4703 <
4704 <
4705 < echo "$as_me:$LINENO: checking for MPI library" >&5
4706 < echo $ECHO_N "checking for MPI library... $ECHO_C" >&6
4707 < MPI_LIB=""
4708 < case "$host" in
4709 <  *-ibm-aix*)
4710 <    echo "$as_me:$LINENO: checking whether to use signal-based MPI library" >&5
4711 < echo $ECHO_N "checking whether to use signal-based MPI library... $ECHO_C" >&6
4712 <    echo "$as_me:$LINENO: result: $PACX_SIGNAL" >&5
4713 < echo "${ECHO_T}$PACX_SIGNAL" >&6
4714 <    if test "x$PACX_SIGNAL" = "xyes" ; then
4715 <      if test -f "$MPI_LIBDIR/libmpi.a" ; then
4716 <        MPI_LIB="-lmpi"
4717 <      elif test -f "$MPI_LIBDIR/libmpi.so" ; then
4718 <        MPI_LIB="-lmpi"
4719 <      elif test -f "$MPI_LIBDIR/libmpich.a" ; then
4720 <        MPI_LIB="-lmpich"
4721 <      else
4722 <        { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
4723 < echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
4724 <   { (exit 1); exit 1; }; }
4725 <      fi
4726 <    else
4727 <      if test -f "$MPI_LIBDIR/libmpi_r.a" ; then
4728 <         MPI_LIB="-lmpi_r"
4729 <      else
4730 <         { { echo "$as_me:$LINENO: error: libmpi_r not found; check path for MPI package..." >&5
4731 < echo "$as_me: error: libmpi_r not found; check path for MPI package..." >&2;}
4732 <   { (exit 1); exit 1; }; }
4733 <      fi
4734 <    fi
4735 <    echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
4736 < echo "${ECHO_T}found $MPI_LIB" >&6
4737 <  ;;
4738 <  *)                             if test -f "$MPI_LIBDIR/libmpi.a" ; then
4739 <      MPI_LIB="-lmpi"
4740 <    elif test -f "$MPI_LIBDIR/libmpi.so" ; then
4741 <      MPI_LIB="-lmpi"
4742 <    elif test -f "$MPI_LIBDIR/libmpich.a" ; then
4743 <      MPI_LIB="-lmpich"
4744 <    else
4745 <      { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
4746 < echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
4747 <   { (exit 1); exit 1; }; }
4748 <    fi
4749 <    echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
4750 < echo "${ECHO_T}found $MPI_LIB" >&6
4751 <  ;;
4752 < esac
3747 >        if test "$ac_compiler_gnu" = yes; then
3748 >  for ac_link_opt in $ac_ld_run_path; do
3749 >    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3750 >  done
3751 > else
3752 >  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
3753 > fi
3754 >      ;;
3755 > esac
3756 > fi # test "x$F90LIBS" = "x"
3757 >
3758 > fi
3759 > echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
3760 > echo "${ECHO_T}$ac_cv_flibs" >&6
3761 > F90LIBS="$ac_cv_f90libs"
3762 >
3763 > ac_ext=f90
3764 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3765 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3767 >
3768 >
3769 > echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
3770 > echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
3771 > if test "${ac_cv_f90_mangling+set}" = set; then
3772 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3773 > else
3774 >  ac_ext=f90
3775 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3776 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3778 > cat >conftest.$ac_ext <<_ACEOF
3779 > subroutine foobar()
3780 > return
3781 > end
3782 > subroutine foo_bar()
3783 > return
3784 > end
3785 > _ACEOF
3786 > rm -f conftest.$ac_objext
3787 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788 >  (eval $ac_compile) 2>conftest.er1
3789 >  ac_status=$?
3790 >  grep -v '^ *+' conftest.er1 >conftest.err
3791 >  rm -f conftest.er1
3792 >  cat conftest.err >&5
3793 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 >  (exit $ac_status); } &&
3795 >         { ac_try='test -z "$ac_f90_werror_flag"
3796 >                         || test ! -s conftest.err'
3797 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 >  (eval $ac_try) 2>&5
3799 >  ac_status=$?
3800 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 >  (exit $ac_status); }; } &&
3802 >         { ac_try='test -s conftest.$ac_objext'
3803 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 >  (eval $ac_try) 2>&5
3805 >  ac_status=$?
3806 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 >  (exit $ac_status); }; }; then
3808 >  mv conftest.$ac_objext cf90_test.$ac_objext
3809 >
3810 >  ac_ext=c
3811 > ac_cpp='$CPP $CPPFLAGS'
3812 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3815 >
3816 >  ac_save_LIBS=$LIBS
3817 >  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
3818 >
3819 >  ac_success=no
3820 >  for ac_foobar in foobar FOOBAR; do
3821 >    for ac_underscore in "" "_"; do
3822 >      ac_func="$ac_foobar$ac_underscore"
3823 >      cat >conftest.$ac_ext <<_ACEOF
3824 > /* confdefs.h.  */
3825 > _ACEOF
3826 > cat confdefs.h >>conftest.$ac_ext
3827 > cat >>conftest.$ac_ext <<_ACEOF
3828 > /* end confdefs.h.  */
3829 >
3830 > /* Override any gcc2 internal prototype to avoid an error.  */
3831 > #ifdef __cplusplus
3832 > extern "C"
3833 > #endif
3834 > /* We use char because int might match the return type of a gcc2
3835 >   builtin and then its argument prototype would still apply.  */
3836 > char $ac_func ();
3837 > int
3838 > main ()
3839 > {
3840 > $ac_func ();
3841 >  ;
3842 >  return 0;
3843 > }
3844 > _ACEOF
3845 > rm -f conftest.$ac_objext conftest$ac_exeext
3846 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847 >  (eval $ac_link) 2>conftest.er1
3848 >  ac_status=$?
3849 >  grep -v '^ *+' conftest.er1 >conftest.err
3850 >  rm -f conftest.er1
3851 >  cat conftest.err >&5
3852 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 >  (exit $ac_status); } &&
3854 >         { ac_try='test -z "$ac_c_werror_flag"
3855 >                         || test ! -s conftest.err'
3856 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 >  (eval $ac_try) 2>&5
3858 >  ac_status=$?
3859 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 >  (exit $ac_status); }; } &&
3861 >         { ac_try='test -s conftest$ac_exeext'
3862 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 >  (eval $ac_try) 2>&5
3864 >  ac_status=$?
3865 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 >  (exit $ac_status); }; }; then
3867 >  ac_success=yes; break 2
3868 > else
3869 >  echo "$as_me: failed program was:" >&5
3870 > sed 's/^/| /' conftest.$ac_ext >&5
3871 >
3872 > fi
3873 > rm -f conftest.err conftest.$ac_objext \
3874 >      conftest$ac_exeext conftest.$ac_ext
3875 >    done
3876 >  done
3877 >
3878 >  if test "$ac_success" = "yes"; then
3879 >     case $ac_foobar in
3880 >        foobar)
3881 >           ac_case=lower
3882 >           ac_foo_bar=foo_bar
3883 >           ;;
3884 >        FOOBAR)
3885 >           ac_case=upper
3886 >           ac_foo_bar=FOO_BAR
3887 >           ;;
3888 >     esac
3889 >
3890 >     ac_success_extra=no
3891 >     for ac_extra in "" "_"; do
3892 >        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
3893 >
3894 >        cat >conftest.$ac_ext <<_ACEOF
3895 > /* confdefs.h.  */
3896 > _ACEOF
3897 > cat confdefs.h >>conftest.$ac_ext
3898 > cat >>conftest.$ac_ext <<_ACEOF
3899 > /* end confdefs.h.  */
3900 >
3901 > /* Override any gcc2 internal prototype to avoid an error.  */
3902 > #ifdef __cplusplus
3903 > extern "C"
3904 > #endif
3905 > /* We use char because int might match the return type of a gcc2
3906 >   builtin and then its argument prototype would still apply.  */
3907 > char $ac_func ();
3908 > int
3909 > main ()
3910 > {
3911 > $ac_func ();
3912 >  ;
3913 >  return 0;
3914 > }
3915 > _ACEOF
3916 > rm -f conftest.$ac_objext conftest$ac_exeext
3917 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3918 >  (eval $ac_link) 2>conftest.er1
3919 >  ac_status=$?
3920 >  grep -v '^ *+' conftest.er1 >conftest.err
3921 >  rm -f conftest.er1
3922 >  cat conftest.err >&5
3923 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 >  (exit $ac_status); } &&
3925 >         { ac_try='test -z "$ac_c_werror_flag"
3926 >                         || test ! -s conftest.err'
3927 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928 >  (eval $ac_try) 2>&5
3929 >  ac_status=$?
3930 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 >  (exit $ac_status); }; } &&
3932 >         { ac_try='test -s conftest$ac_exeext'
3933 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 >  (eval $ac_try) 2>&5
3935 >  ac_status=$?
3936 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 >  (exit $ac_status); }; }; then
3938 >  ac_success_extra=yes; break
3939 > else
3940 >  echo "$as_me: failed program was:" >&5
3941 > sed 's/^/| /' conftest.$ac_ext >&5
3942 >
3943 > fi
3944 > rm -f conftest.err conftest.$ac_objext \
3945 >      conftest$ac_exeext conftest.$ac_ext
3946 >     done
3947 >
3948 >     if test "$ac_success_extra" = "yes"; then
3949 >        ac_cv_f90_mangling="$ac_case case"
3950 >        if test -z "$ac_underscore"; then
3951 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
3952 >        else
3953 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
3954 >
3955 >        fi
3956 >        if test -z "$ac_extra"; then
3957 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
3958 >        else
3959 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
3960 >        fi
3961 >      else
3962 >        ac_cv_f90_mangling="unknown"
3963 >      fi
3964 >  else
3965 >     ac_cv_f90_mangling="unknown"
3966 >
3967 >  fi
3968 >
3969 >  LIBS=$ac_save_LIBS
3970 >  ac_ext=f90
3971 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3972 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3974 >  rm -f cf90_test* conftest*
3975 > else
3976 >  echo "$as_me: failed program was:" >&5
3977 > sed 's/^/| /' conftest.$ac_ext >&5
3978 >
3979 > fi
3980 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3981 > ac_ext=f90
3982 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3983 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3984 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3985 >
3986 > fi
3987 > echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
3988 > echo "${ECHO_T}$ac_cv_f90_mangling" >&6
3989 >
3990 >
3991 >
3992 > case $ac_cv_f90_mangling in
3993 >  "lower case, no underscore, no extra underscore")
3994 >          cat >>confdefs.h <<\_ACEOF
3995 > #define F90_FUNC(name,NAME) name
3996 > _ACEOF
3997 >
3998 >          cat >>confdefs.h <<\_ACEOF
3999 > #define F90_FUNC_(name,NAME) name
4000 > _ACEOF
4001 > ;;
4002 >  "lower case, no underscore, extra underscore")
4003 >          cat >>confdefs.h <<\_ACEOF
4004 > #define F90_FUNC(name,NAME) name
4005 > _ACEOF
4006 >
4007 >          cat >>confdefs.h <<\_ACEOF
4008 > #define F90_FUNC_(name,NAME) name ## _
4009 > _ACEOF
4010 > ;;
4011 >  "lower case, underscore, no extra underscore")
4012 >          cat >>confdefs.h <<\_ACEOF
4013 > #define F90_FUNC(name,NAME) name ## _
4014 > _ACEOF
4015 >
4016 >          cat >>confdefs.h <<\_ACEOF
4017 > #define F90_FUNC_(name,NAME) name ## _
4018 > _ACEOF
4019 > ;;
4020 >  "lower case, underscore, extra underscore")
4021 >          cat >>confdefs.h <<\_ACEOF
4022 > #define F90_FUNC(name,NAME) name ## _
4023 > _ACEOF
4024 >
4025 >          cat >>confdefs.h <<\_ACEOF
4026 > #define F90_FUNC_(name,NAME) name ## __
4027 > _ACEOF
4028 > ;;
4029 >  "upper case, no underscore, no extra underscore")
4030 >          cat >>confdefs.h <<\_ACEOF
4031 > #define F90_FUNC(name,NAME) NAME
4032 > _ACEOF
4033 >
4034 >          cat >>confdefs.h <<\_ACEOF
4035 > #define F90_FUNC_(name,NAME) NAME
4036 > _ACEOF
4037 > ;;
4038 >  "upper case, no underscore, extra underscore")
4039 >          cat >>confdefs.h <<\_ACEOF
4040 > #define F90_FUNC(name,NAME) NAME
4041 > _ACEOF
4042 >
4043 >          cat >>confdefs.h <<\_ACEOF
4044 > #define F90_FUNC_(name,NAME) NAME ## _
4045 > _ACEOF
4046 > ;;
4047 >  "upper case, underscore, no extra underscore")
4048 >          cat >>confdefs.h <<\_ACEOF
4049 > #define F90_FUNC(name,NAME) NAME ## _
4050 > _ACEOF
4051 >
4052 >          cat >>confdefs.h <<\_ACEOF
4053 > #define F90_FUNC_(name,NAME) NAME ## _
4054 > _ACEOF
4055 > ;;
4056 >  "upper case, underscore, extra underscore")
4057 >          cat >>confdefs.h <<\_ACEOF
4058 > #define F90_FUNC(name,NAME) NAME ## _
4059 > _ACEOF
4060 >
4061 >          cat >>confdefs.h <<\_ACEOF
4062 > #define F90_FUNC_(name,NAME) NAME ## __
4063 > _ACEOF
4064 > ;;
4065 >  *)
4066 >          { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
4067 > echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
4068 >          ;;
4069 > esac
4070 >
4071 >
4072 >
4073 >
4074 >
4075 > echo "$as_me:$LINENO: checking for module suffix" >&5
4076 > echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
4077 > rm -f conftest*
4078 > # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4079 > rm -f work*
4080 > cat >conftest.f90 <<EOF
4081 >        module conftest
4082 >        integer n
4083 >        parameter (n=1)
4084 >        end module conftest
4085 > EOF
4086 > # SGI and absoft compilers generates module name in upper case!
4087 > testname="conftest"
4088 > modcase="lower"
4089 > if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4090 >    MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
4091 >    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
4092 >    if test -z "$MOD" ; then
4093 >        MOD=`ls CONFTEST* 2>/dev/null \
4094 >                | grep -v CONFTEST.f | grep -v CONFTEST.o`
4095 >        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
4096 >        if test -n "$MOD" ; then
4097 >            testname="CONFTEST"
4098 >            modcase="upper"
4099 >        fi
4100 >    fi
4101 >    if test -z "$MOD" ; then
4102 >        echo "$as_me:$LINENO: result: unknown" >&5
4103 > echo "${ECHO_T}unknown" >&6
4104 >        # Use mod if we can't figure it out
4105 >        MOD="mod"
4106 >    else
4107 >        echo "$as_me:$LINENO: result: $MOD" >&5
4108 > echo "${ECHO_T}$MOD" >&6
4109 >    fi
4110 >    if test -s work.pcl ; then
4111 >        { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
4112 > echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
4113 >    fi
4114 > else
4115 >    echo "$as_me:$LINENO: result: unknown" >&5
4116 > echo "${ECHO_T}unknown" >&6
4117 > fi
4118 >
4119 >
4120 >
4121 >
4122 >
4123 > # Check for module include path (some use -I, some (Solaris) use -M, some
4124 > # (absoft) use -p).
4125 > # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
4126 > # specified, work.pcl and work.pc are created.  However, if you specify
4127 > # a file, it must contain a the name of a file ending in .pc .  Ugh!
4128 > # Use the module made above
4129 > echo "$as_me:$LINENO: checking for module directory path flag" >&5
4130 > echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
4131 > rm -f conftest*
4132 > # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
4133 > rm -f work*
4134 > cat >conftest.f90 <<EOF
4135 >        module conftest
4136 >        integer n
4137 >        parameter (n=1)
4138 >        end module conftest
4139 > EOF
4140 > # SGI and absoft compilers generates module name in upper case!
4141 > testname="conftest"
4142 > if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
4143 >   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o`
4144 >   mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
4145 >   if test -n "$mod" ; then
4146 >      testname="CONFTEST"
4147 >   fi
4148 >   madedir=0
4149 >   if test ! -d conf ; then mkdir conf ; madedir=1; fi
4150 >   cp $testname.$MOD conf
4151 >   rm -f conftest* CONFTEST*
4152 >   cat >conftest1.f90 <<EOF
4153 >        program main
4154 >        use conftest
4155 >        print *, n
4156 >        end
4157 > EOF
4158 >   F90_WORK_FILES_ARG=""
4159 >   F90MODINCSPEC=""
4160 >   if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then
4161 >       MODDIRFLAG="-I"
4162 >       F90MODINCSPEC="-I<dir>"
4163 >       echo "$as_me:$LINENO: result: -I" >&5
4164 > echo "${ECHO_T}-I" >&6
4165 >   elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then
4166 >       MODDIRFLAG="-M"
4167 >       F90MODINCSPEC="-M<dir>"
4168 >       echo "$as_me:$LINENO: result: -M" >&5
4169 > echo "${ECHO_T}-M" >&6
4170 >   elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then
4171 >       MODDIRFLAG="-p"
4172 >       F90MODINCSPEC="-p<dir>"
4173 >       echo "$as_me:$LINENO: result: -p" >&5
4174 > echo "${ECHO_T}-p" >&6
4175 >   elif test -s work.pc ; then
4176 >        cp work.pc conf/mpimod.pc
4177 >        echo "mpimod.pc" > conf/mpimod.pcl
4178 >        echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
4179 >        if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
4180 >            MODDIRFLAG='-cl,mpimod.pcl'
4181 >            echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
4182 > echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6
4183 >            F90_WORK_FILES_ARG="-cl,mpimod.pcl"
4184 >            F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
4185 >
4186 >        else
4187 >            # The version of the Intel compiler that I have refuses to let
4188 >            # you put the "work catalog" list anywhere but the current
4189 >            # directory. For example, you cannot in
4190 >         :
4191 >        fi
4192 >   fi
4193 >   if test -z "MODDIRFLAG" ; then
4194 >       echo "$as_me:$LINENO: result: unknown" >&5
4195 > echo "${ECHO_T}unknown" >&6
4196 >   fi
4197 >
4198 >
4199 >   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
4200 >   if test $madedir = 1 ; then rmdir conf ; fi
4201 > fi
4202 >
4203 >
4204 >
4205 >
4206 > case $debug in
4207 >  1)
4208 >     ;;
4209 >  *)
4210 >
4211 >
4212 >
4213 >
4214 >
4215 >
4216 > echo "$as_me:$LINENO: checking whether we are *really* using gcc" >&5
4217 > echo $ECHO_N "checking whether we are *really* using gcc... $ECHO_C" >&6
4218 > if test "${ac_cv_prog_really_gcc+set}" = set; then
4219 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4220 > else
4221 >
4222 > cat > conftest.c <<EOF
4223 > #ifdef __GNUC__
4224 >  #ifndef __INTEL_COMPILER
4225 >     yes;
4226 >  #endif
4227 > #endif
4228 > EOF
4229 > if { ac_try='${CC-cc} -E conftest.c'
4230 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231 >  (eval $ac_try) 2>&5
4232 >  ac_status=$?
4233 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4235 >  ac_cv_prog_really_gcc=yes
4236 > else
4237 >  ac_cv_prog_really_gcc=no
4238 > fi
4239 >
4240 > fi
4241 > echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
4242 > echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
4243 > if test "$ac_cv_prog_really_gcc" = yes; then
4244 >        :
4245 >
4246 > else
4247 >        :
4248 >
4249 > fi
4250 >
4251 >
4252 > # Try to determine "good" native compiler flags if none specified on command
4253 > # line
4254 > if test "$ac_test_CFLAGS" != "set"; then
4255 >  CFLAGS=""
4256 >  case "${host_cpu}-${host_os}" in
4257 >
4258 >  *linux*) if test "$CC" = icc; then
4259 >                    CFLAGS="-O"
4260 >                fi;;
4261 >  sparc-solaris2*) if test "$CC" = cc; then
4262 >                    CFLAGS="-native -fast -xO5 -dalign"
4263 >                 fi;;
4264 >
4265 >  alpha*-osf*)  if test "$CC" = cc; then
4266 >                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
4267 >                fi;;
4268 >
4269 >  hppa*-hpux*)  if test "$CC" = cc; then
4270 >                    CFLAGS="-Ae +O3 +Oall"
4271 >                fi;;
4272 >
4273 >   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
4274 >                    CFLAGS="-O3 -qtune=auto -qansialias -w"
4275 >                fi;;
4276 >   powerpc*-aix*)
4277 >        if test "$CC" = cc -o "$CC" = xlc; then
4278 >                CFLAGS="-O3 -qtune=auto -qansialias -w"
4279 >                echo "*******************************************************"
4280 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4281 >                echo "*  recommended that you use                           *"
4282 >                echo "*                                                     *"
4283 >                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4284 >                echo "*                                 ^^^                 *"
4285 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4286 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4287 >                echo "*******************************************************"
4288 >        fi;;
4289 >   *darwin*)
4290 >        if test "$CC" = xlc -o "$CC" = cc; then
4291 >                CFLAGS="-O3 -qtune=auto -w"
4292 >                echo "*******************************************************"
4293 >                echo "*  You have Darwin on an unknown powerpc system.      *"
4294 >                echo "*  It is recommended that you use                     *"
4295 >                echo "*                                                     *"
4296 >                echo "*  CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
4297 >                echo "*                               ^^^                   *"
4298 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4299 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4300 >                echo "*******************************************************"
4301 >        fi;;
4302 >  esac
4303 >
4304 >  # use default flags for gcc on all systems
4305 >  if test $ac_cv_prog_really_gcc = yes; then
4306 >     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4307 >  fi
4308 >
4309 >  # test for gcc-specific flags:
4310 >  if test $ac_cv_prog_really_gcc = yes; then
4311 >    # -malign-double for x86 systems
4312 >
4313 >
4314 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
4315 > echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
4316 > if test "${ac_align_double+set}" = set; then
4317 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4318 > else
4319 >  echo 'void f(){}' > conftest.c
4320 > if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
4321 >        ac_align_double=yes
4322 > else
4323 >        ac_align_double=no
4324 > fi
4325 > rm -f conftest*
4326 >
4327 > fi
4328 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
4329 > echo "${ECHO_T}$ac_align_double" >&6
4330 > if test "$ac_align_double" = yes; then
4331 >        :
4332 >        CFLAGS="$CFLAGS -malign-double"
4333 > else
4334 >        :
4335 >
4336 > fi
4337 >
4338 >    # -fstrict-aliasing for gcc-2.95+
4339 >
4340 >
4341 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
4342 > echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
4343 > if test "${ac_fstrict_aliasing+set}" = set; then
4344 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4345 > else
4346 >  echo 'void f(){}' > conftest.c
4347 > if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
4348 >        ac_fstrict_aliasing=yes
4349 > else
4350 >        ac_fstrict_aliasing=no
4351 > fi
4352 > rm -f conftest*
4353 >
4354 > fi
4355 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4356 > echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4357 > if test "$ac_fstrict_aliasing" = yes; then
4358 >        :
4359 >        CFLAGS="$CFLAGS -fstrict-aliasing"
4360 > else
4361 >        :
4362 >
4363 > fi
4364 >
4365 >  fi
4366 >
4367 >  CPU_FLAGS=""
4368 >  if test $ac_cv_prog_really_gcc = yes; then
4369 >                  case "${host_cpu}" in
4370 >          i586*)
4371 >
4372 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4373 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
4374 > if test "${ac_cpu_pentium+set}" = set; then
4375 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4376 > else
4377 >  echo 'void f(){}' > conftest.c
4378 > if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
4379 >        ac_cpu_pentium=yes
4380 > else
4381 >        ac_cpu_pentium=no
4382 > fi
4383 > rm -f conftest*
4384 >
4385 > fi
4386 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4387 > echo "${ECHO_T}$ac_cpu_pentium" >&6
4388 > if test "$ac_cpu_pentium" = yes; then
4389 >        :
4390 >        CPU_FLAGS=-mcpu=pentium
4391 > else
4392 >        :
4393 >
4394 >
4395 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
4396 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
4397 > if test "${ac_pentium+set}" = set; then
4398 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4399 > else
4400 >  echo 'void f(){}' > conftest.c
4401 > if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
4402 >        ac_pentium=yes
4403 > else
4404 >        ac_pentium=no
4405 > fi
4406 > rm -f conftest*
4407 >
4408 > fi
4409 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
4410 > echo "${ECHO_T}$ac_pentium" >&6
4411 > if test "$ac_pentium" = yes; then
4412 >        :
4413 >        CPU_FLAGS=-mpentium
4414 > else
4415 >        :
4416 >
4417 > fi
4418 >
4419 > fi
4420 >
4421 >                  ;;
4422 >          i686*)
4423 >
4424 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
4425 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4426 > if test "${ac_cpu_pentiumpro+set}" = set; then
4427 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4428 > else
4429 >  echo 'void f(){}' > conftest.c
4430 > if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
4431 >        ac_cpu_pentiumpro=yes
4432 > else
4433 >        ac_cpu_pentiumpro=no
4434 > fi
4435 > rm -f conftest*
4436 >
4437 > fi
4438 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4439 > echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4440 > if test "$ac_cpu_pentiumpro" = yes; then
4441 >        :
4442 >        CPU_FLAGS=-mcpu=pentiumpro
4443 > else
4444 >        :
4445 >
4446 >
4447 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
4448 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
4449 > if test "${ac_pentiumpro+set}" = set; then
4450 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4451 > else
4452 >  echo 'void f(){}' > conftest.c
4453 > if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
4454 >        ac_pentiumpro=yes
4455 > else
4456 >        ac_pentiumpro=no
4457 > fi
4458 > rm -f conftest*
4459 >
4460 > fi
4461 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4462 > echo "${ECHO_T}$ac_pentiumpro" >&6
4463 > if test "$ac_pentiumpro" = yes; then
4464 >        :
4465 >        CPU_FLAGS=-mpentiumpro
4466 > else
4467 >        :
4468 >
4469 > fi
4470 >
4471 > fi
4472 >
4473 >                  ;;
4474 >          powerpc*)
4475 >                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
4476 >                is60x=`echo $cputype | egrep "^600-9e?$"`
4477 >                if test -n "$is60x"; then
4478 >
4479 >
4480 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
4481 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
4482 > if test "${ac_m_cpu_60x+set}" = set; then
4483 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4484 > else
4485 >  echo 'void f(){}' > conftest.c
4486 > if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
4487 >        ac_m_cpu_60x=yes
4488 > else
4489 >        ac_m_cpu_60x=no
4490 > fi
4491 > rm -f conftest*
4492 >
4493 > fi
4494 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4495 > echo "${ECHO_T}$ac_m_cpu_60x" >&6
4496 > if test "$ac_m_cpu_60x" = yes; then
4497 >        :
4498 >        CPU_FLAGS=-mcpu=$cputype
4499 > else
4500 >        :
4501 >
4502 > fi
4503 >
4504 >                elif test "$cputype" = 750; then
4505 >
4506 >
4507 > echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
4508 > echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
4509 > if test "${ac_cv_prog_gcc_2_95+set}" = set; then
4510 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4511 > else
4512 >
4513 > cat > conftest.c <<EOF
4514 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4515 > #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4516 >     yes;
4517 > #  endif
4518 > #endif
4519 > EOF
4520 > if { ac_try='${CC-cc} -E conftest.c'
4521 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 >  (eval $ac_try) 2>&5
4523 >  ac_status=$?
4524 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4526 >  ac_cv_prog_gcc_2_95=yes
4527 > else
4528 >  ac_cv_prog_gcc_2_95=no
4529 > fi
4530 >
4531 > fi
4532 > echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
4533 > echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
4534 > if test "$ac_cv_prog_gcc_2_95" = yes; then
4535 >        :
4536 >
4537 >
4538 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
4539 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
4540 > if test "${ac_m_cpu_750+set}" = set; then
4541 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4542 > else
4543 >  echo 'void f(){}' > conftest.c
4544 > if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
4545 >        ac_m_cpu_750=yes
4546 > else
4547 >        ac_m_cpu_750=no
4548 > fi
4549 > rm -f conftest*
4550 >
4551 > fi
4552 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
4553 > echo "${ECHO_T}$ac_m_cpu_750" >&6
4554 > if test "$ac_m_cpu_750" = yes; then
4555 >        :
4556 >        CPU_FLAGS=-mcpu=750
4557 > else
4558 >        :
4559 >
4560 > fi
4561 >
4562 > else
4563 >        :
4564 >
4565 > fi
4566 >
4567 >                fi
4568 >                if test -z "$CPU_FLAGS"; then
4569 >
4570 >
4571 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
4572 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
4573 > if test "${ac_m_cpu_powerpc+set}" = set; then
4574 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4575 > else
4576 >  echo 'void f(){}' > conftest.c
4577 > if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
4578 >        ac_m_cpu_powerpc=yes
4579 > else
4580 >        ac_m_cpu_powerpc=no
4581 > fi
4582 > rm -f conftest*
4583 >
4584 > fi
4585 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
4586 > echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
4587 > if test "$ac_m_cpu_powerpc" = yes; then
4588 >        :
4589 >        CPU_FLAGS=-mcpu=powerpc
4590 > else
4591 >        :
4592 >
4593 > fi
4594 >
4595 >                fi
4596 >                if test -z "$CPU_FLAGS"; then
4597 >
4598 >
4599 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
4600 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
4601 > if test "${ac_m_powerpc+set}" = set; then
4602 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4603 > else
4604 >  echo 'void f(){}' > conftest.c
4605 > if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
4606 >        ac_m_powerpc=yes
4607 > else
4608 >        ac_m_powerpc=no
4609 > fi
4610 > rm -f conftest*
4611 >
4612 > fi
4613 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
4614 > echo "${ECHO_T}$ac_m_powerpc" >&6
4615 > if test "$ac_m_powerpc" = yes; then
4616 >        :
4617 >        CPU_FLAGS=-mpowerpc
4618 > else
4619 >        :
4620 >
4621 > fi
4622 >
4623 >                fi
4624 >          esac
4625 >  fi
4626 >
4627 >  if test -n "$CPU_FLAGS"; then
4628 >        CFLAGS="$CFLAGS $CPU_FLAGS"
4629 >  fi
4630 >
4631 >  if test -z "$CFLAGS"; then
4632 >        echo ""
4633 >        echo "********************************************************"
4634 >        echo "* WARNING: Don't know the best CFLAGS for this system  *"
4635 >        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
4636 >        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
4637 >        echo "********************************************************"
4638 >        echo ""
4639 >        CFLAGS="-O3"
4640 >  fi
4641 >
4642 >
4643 >
4644 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
4645 > echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
4646 > if test "${ac_guessed_cflags+set}" = set; then
4647 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4648 > else
4649 >  echo 'void f(){}' > conftest.c
4650 > if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
4651 >        ac_guessed_cflags=yes
4652 > else
4653 >        ac_guessed_cflags=no
4654 > fi
4655 > rm -f conftest*
4656 >
4657 > fi
4658 > echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
4659 > echo "${ECHO_T}$ac_guessed_cflags" >&6
4660 > if test "$ac_guessed_cflags" = yes; then
4661 >        :
4662 >
4663 > else
4664 >        :
4665 >
4666 >        echo ""
4667 >        echo "********************************************************"
4668 >        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
4669 >        echo "* your compiler.                                       *"
4670 >        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
4671 >        echo "********************************************************"
4672 >        echo ""
4673 >        CFLAGS=""
4674 >
4675 > fi
4676 >
4677 >
4678 > fi
4679 >
4680 >
4681 >
4682 >
4683 >
4684 >
4685 >
4686 > echo "$as_me:$LINENO: checking whether we are *really* using g++" >&5
4687 > echo $ECHO_N "checking whether we are *really* using g++... $ECHO_C" >&6
4688 > if test "${ac_cv_prog_really_gxx+set}" = set; then
4689 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4690 > else
4691 >
4692 > cat > conftest.cpp <<EOF
4693 > #ifdef __GNUC__
4694 >  #ifndef __INTEL_COMPILER
4695 >     yes;
4696 >  #endif
4697 > #endif
4698 > EOF
4699 > if { ac_try='${CXX-c++} -E conftest.cpp'
4700 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 >  (eval $ac_try) 2>&5
4702 >  ac_status=$?
4703 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4705 >  ac_cv_prog_really_gxx=yes
4706 > else
4707 >  ac_cv_prog_really_gxx=no
4708 > fi
4709 >
4710 > fi
4711 > echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
4712 > echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
4713 > if test "$ac_cv_prog_really_gxx" = yes; then
4714 >        :
4715 >
4716 > else
4717 >        :
4718 >
4719 > fi
4720 >
4721 >
4722 > # Try to determine "good" native compiler flags if none specified on command
4723 > # line
4724 > if test "$ac_test_CXXFLAGS" != "set"; then
4725 >  CXXFLAGS=""
4726 >  case "${host_cpu}-${host_os}" in
4727 >
4728 >  *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
4729 >                    CXXFLAGS="-O"
4730 >                fi;;
4731 >  sparc-solaris2*) if test "$CXX" = CC; then
4732 >                    CXXFLAGS="-native -fast -xO5 -dalign"
4733 >                 fi;;
4734 >   rs6000*-aix*)  if test "$CXX" = xlC; then
4735 >                    CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
4736 >                fi;;
4737 >   powerpc*-aix*)
4738 >        if test "$CXX" = xlC; then
4739 >                CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
4740 >                echo "*******************************************************"
4741 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4742 >                echo "*  recommended that you use                           *"
4743 >                echo "*                                                     *"
4744 >                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4745 >                echo "*                                 ^^^                 *"
4746 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4747 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4748 >                echo "*******************************************************"
4749 >        fi;;
4750 >   *darwin*)
4751 >        if test "$CXX" = xlC; then
4752 >                CXXFLAGS="-O3 -qtune=auto -qansialias -w"
4753 >                echo "*******************************************************"
4754 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4755 >                echo "*  recommended that you use                           *"
4756 >                echo "*                                                     *"
4757 >                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4758 >                echo "*                                 ^^^                 *"
4759 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4760 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4761 >                echo "*******************************************************"
4762 >        fi;;
4763 >  esac
4764 >
4765 >  # use default flags for gcc on all systems
4766 >  if test $ac_cv_prog_really_gxx = yes; then
4767 >     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4768 >  fi
4769 >
4770 >  # test for gcc-specific flags:
4771 >  if test $ac_cv_prog_really_gxx = yes; then
4772 >    # -malign-double for x86 systems
4773 >
4774 >
4775 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
4776 > echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
4777 > if test "${ac_align_double+set}" = set; then
4778 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4779 > else
4780 >  echo 'void f(){}' > conftest.cpp
4781 > if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
4782 >        ac_align_double=yes
4783 > else
4784 >        ac_align_double=no
4785 > fi
4786 > rm -f conftest*
4787 >
4788 > fi
4789 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
4790 > echo "${ECHO_T}$ac_align_double" >&6
4791 > if test "$ac_align_double" = yes; then
4792 >        :
4793 >        CXXFLAGS="$CXXFLAGS -malign-double"
4794 > else
4795 >        :
4796 >
4797 > fi
4798 >
4799 >    # -fstrict-aliasing for gcc-2.95+
4800 >
4801 >
4802 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
4803 > echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
4804 > if test "${ac_fstrict_aliasing+set}" = set; then
4805 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4806 > else
4807 >  echo 'void f(){}' > conftest.cpp
4808 > if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
4809 >        ac_fstrict_aliasing=yes
4810 > else
4811 >        ac_fstrict_aliasing=no
4812 > fi
4813 > rm -f conftest*
4814 >
4815 > fi
4816 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4817 > echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4818 > if test "$ac_fstrict_aliasing" = yes; then
4819 >        :
4820 >        CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
4821 > else
4822 >        :
4823 >
4824 > fi
4825 >
4826 >  fi
4827 >
4828 >  CPU_FLAGS=""
4829 >  if test $ac_cv_prog_really_gxx = yes; then
4830 >                  case "${host_cpu}" in
4831 >          i586*)
4832 >
4833 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
4834 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
4835 > if test "${ac_cpu_pentium+set}" = set; then
4836 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4837 > else
4838 >  echo 'void f(){}' > conftest.cpp
4839 > if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
4840 >        ac_cpu_pentium=yes
4841 > else
4842 >        ac_cpu_pentium=no
4843 > fi
4844 > rm -f conftest*
4845 >
4846 > fi
4847 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4848 > echo "${ECHO_T}$ac_cpu_pentium" >&6
4849 > if test "$ac_cpu_pentium" = yes; then
4850 >        :
4851 >        CPU_FLAGS=-mcpu=pentium
4852 > else
4853 >        :
4854 >
4855 >
4856 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
4857 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
4858 > if test "${ac_pentium+set}" = set; then
4859 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4860 > else
4861 >  echo 'void f(){}' > conftest.cpp
4862 > if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
4863 >        ac_pentium=yes
4864 > else
4865 >        ac_pentium=no
4866 > fi
4867 > rm -f conftest*
4868 >
4869 > fi
4870 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
4871 > echo "${ECHO_T}$ac_pentium" >&6
4872 > if test "$ac_pentium" = yes; then
4873 >        :
4874 >        CPU_FLAGS=-mpentium
4875 > else
4876 >        :
4877 >
4878 > fi
4879 >
4880 > fi
4881 >
4882 >                  ;;
4883 >          i686*)
4884 >
4885 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
4886 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4887 > if test "${ac_cpu_pentiumpro+set}" = set; then
4888 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4889 > else
4890 >  echo 'void f(){}' > conftest.cpp
4891 > if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
4892 >        ac_cpu_pentiumpro=yes
4893 > else
4894 >        ac_cpu_pentiumpro=no
4895 > fi
4896 > rm -f conftest*
4897 >
4898 > fi
4899 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4900 > echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4901 > if test "$ac_cpu_pentiumpro" = yes; then
4902 >        :
4903 >        CPU_FLAGS=-mcpu=pentiumpro
4904 > else
4905 >        :
4906 >
4907 >
4908 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
4909 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
4910 > if test "${ac_pentiumpro+set}" = set; then
4911 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4912 > else
4913 >  echo 'void f(){}' > conftest.cpp
4914 > if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
4915 >        ac_pentiumpro=yes
4916 > else
4917 >        ac_pentiumpro=no
4918 > fi
4919 > rm -f conftest*
4920 >
4921 > fi
4922 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4923 > echo "${ECHO_T}$ac_pentiumpro" >&6
4924 > if test "$ac_pentiumpro" = yes; then
4925 >        :
4926 >        CPU_FLAGS=-mpentiumpro
4927 > else
4928 >        :
4929 >
4930 > fi
4931 >
4932 > fi
4933 >
4934 >                  ;;
4935 >          powerpc*)
4936 >                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
4937 >                is60x=`echo $cputype | egrep "^600-9e?$"`
4938 >                if test -n "$is60x"; then
4939 >
4940 >
4941 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
4942 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
4943 > if test "${ac_m_cpu_60x+set}" = set; then
4944 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4945 > else
4946 >  echo 'void f(){}' > conftest.cpp
4947 > if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
4948 >        ac_m_cpu_60x=yes
4949 > else
4950 >        ac_m_cpu_60x=no
4951 > fi
4952 > rm -f conftest*
4953 >
4954 > fi
4955 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4956 > echo "${ECHO_T}$ac_m_cpu_60x" >&6
4957 > if test "$ac_m_cpu_60x" = yes; then
4958 >        :
4959 >        CPU_FLAGS=-mcpu=$cputype
4960 > else
4961 >        :
4962 >
4963 > fi
4964 >
4965 >                elif test "$cputype" = 750; then
4966 >
4967 >
4968 > echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
4969 > echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
4970 > if test "${ac_cv_prog_gxx_2_95+set}" = set; then
4971 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4972 > else
4973 >
4974 > cat > conftest.cpp <<EOF
4975 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4976 > #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4977 >     yes;
4978 > #  endif
4979 > #endif
4980 > EOF
4981 > if { ac_try='${CXX-c++} -E conftest.cpp'
4982 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983 >  (eval $ac_try) 2>&5
4984 >  ac_status=$?
4985 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4987 >  ac_cv_prog_gxx_2_95=yes
4988 > else
4989 >  ac_cv_prog_gxx_2_95=no
4990 > fi
4991 >
4992 > fi
4993 > echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
4994 > echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
4995 > if test "$ac_cv_prog_gxx_2_95" = yes; then
4996 >        :
4997 >
4998 >
4999 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
5000 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
5001 > if test "${ac_m_cpu_750+set}" = set; then
5002 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5003 > else
5004 >  echo 'void f(){}' > conftest.cpp
5005 > if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
5006 >        ac_m_cpu_750=yes
5007 > else
5008 >        ac_m_cpu_750=no
5009 > fi
5010 > rm -f conftest*
5011 >
5012 > fi
5013 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
5014 > echo "${ECHO_T}$ac_m_cpu_750" >&6
5015 > if test "$ac_m_cpu_750" = yes; then
5016 >        :
5017 >        CPU_FLAGS=-mcpu=750
5018 > else
5019 >        :
5020 >
5021 > fi
5022 >
5023 > else
5024 >        :
5025 >
5026 > fi
5027 >
5028 >                fi
5029 >                if test -z "$CPU_FLAGS"; then
5030 >
5031 >
5032 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
5033 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
5034 > if test "${ac_m_cpu_powerpc+set}" = set; then
5035 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5036 > else
5037 >  echo 'void f(){}' > conftest.cpp
5038 > if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
5039 >        ac_m_cpu_powerpc=yes
5040 > else
5041 >        ac_m_cpu_powerpc=no
5042 > fi
5043 > rm -f conftest*
5044 >
5045 > fi
5046 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
5047 > echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
5048 > if test "$ac_m_cpu_powerpc" = yes; then
5049 >        :
5050 >        CPU_FLAGS=-mcpu=powerpc
5051 > else
5052 >        :
5053 >
5054 > fi
5055 >
5056 >                fi
5057 >                if test -z "$CPU_FLAGS"; then
5058 >
5059 >
5060 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
5061 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
5062 > if test "${ac_m_powerpc+set}" = set; then
5063 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5064 > else
5065 >  echo 'void f(){}' > conftest.cpp
5066 > if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
5067 >        ac_m_powerpc=yes
5068 > else
5069 >        ac_m_powerpc=no
5070 > fi
5071 > rm -f conftest*
5072 >
5073 > fi
5074 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
5075 > echo "${ECHO_T}$ac_m_powerpc" >&6
5076 > if test "$ac_m_powerpc" = yes; then
5077 >        :
5078 >        CPU_FLAGS=-mpowerpc
5079 > else
5080 >        :
5081 >
5082 > fi
5083 >
5084 >                fi
5085 >          esac
5086 >  fi
5087 >
5088 >  if test -n "$CPU_FLAGS"; then
5089 >        CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
5090 >  fi
5091 >
5092 >  if test -z "$CXXFLAGS"; then
5093 >        echo ""
5094 >        echo "**********************************************************"
5095 >        echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
5096 >        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
5097 >        echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *"
5098 >        echo "**********************************************************"
5099 >        echo ""
5100 >        CXXFLAGS="-O3"
5101 >  fi
5102 >
5103 >
5104 >
5105 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
5106 > echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
5107 > if test "${ac_guessed_cxxflags+set}" = set; then
5108 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5109 > else
5110 >  echo 'void f(){}' > conftest.cpp
5111 > if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
5112 >        ac_guessed_cxxflags=yes
5113 > else
5114 >        ac_guessed_cxxflags=no
5115 > fi
5116 > rm -f conftest*
5117 >
5118 > fi
5119 > echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
5120 > echo "${ECHO_T}$ac_guessed_cxxflags" >&6
5121 > if test "$ac_guessed_cxxflags" = yes; then
5122 >        :
5123 >
5124 > else
5125 >        :
5126 >
5127 >        echo ""
5128 >        echo "**********************************************************"
5129 >        echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *"
5130 >        echo "* your compiler.                                         *"
5131 >        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
5132 >        echo "**********************************************************"
5133 >        echo ""
5134 >        CXXFLAGS=""
5135 >
5136 > fi
5137 >
5138 >
5139 > fi
5140 >
5141 >
5142 >
5143 >
5144 >
5145 > # Try to determine "good" native compiler flags if none specified on command
5146 > # line
5147 >
5148 > if test x"$F90FLAGS" = x ; then
5149 >  F90FLAGS=""
5150 >  case "${host_cpu}-${host_os}" in
5151 >
5152 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
5153 >                    F90FLAGS="-O"
5154 >                fi;;
5155 >   rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
5156 >                    F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
5157 >                fi;;
5158 >   powerpc*-aix*)
5159 >        if test "$F90" = f90 -o "$F90" = xlf90; then
5160 >                F90FLAGS="-O3 -qarch=ppc -qansialias -w"
5161 >                echo "*******************************************************"
5162 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
5163 >                echo "*  recommended that you use                           *"
5164 >                echo "*                                                     *"
5165 >                echo "*  F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
5166 >                echo "*                                 ^^^                 *"
5167 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
5168 >                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
5169 >                echo "*******************************************************"
5170 >        fi;;
5171 >   *darwin*)
5172 >        if test "$F90" = f90 -o "$F90" = xlf90; then
5173 >                F90FLAGS="-O3 -qtune=auto -w"
5174 >                echo "*********************************************************"
5175 >                echo "*  You have Darwin on an unknown powerpc system.  It is *"
5176 >                echo "*  recommended that you use                             *"
5177 >                echo "*                                                       *"
5178 >                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
5179 >                echo "*                                 ^^^                   *"
5180 >                echo "*  where xxx is 601, 603, 604, or whatever kind of      *"
5181 >                echo "*  PowerPC CPU you have.   For more info, man xlf.      *"
5182 >                echo "*********************************************************"
5183 >        fi;;
5184 >  esac
5185 >
5186 >  if test -n "$CPU_FLAGS"; then
5187 >        F90FLAGS="$F90FLAGS $CPU_FLAGS"
5188 >  fi
5189 >
5190 >  if test -z "$F90FLAGS"; then
5191 >        echo ""
5192 >        echo "**********************************************************"
5193 >        echo "* WARNING: Don't know the best F90FLAGS for this system  *"
5194 >        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
5195 >        echo "* (otherwise, a default of F90FLAGS=-O3 will be used)    *"
5196 >        echo "**********************************************************"
5197 >        echo ""
5198 >        F90FLAGS="-O3"
5199 >  fi
5200 >
5201 >
5202 > echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
5203 > echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
5204 > if test "${ac_guessed_f90flags+set}" = set; then
5205 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5206 > else
5207 >
5208 >
5209 >
5210 > ac_ext=f90
5211 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5212 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5213 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5214 >
5215 > echo 'program main' > conftest.$ac_ext
5216 > echo 'end program main' >> conftest.$ac_ext
5217 > ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
5218 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219 >  (eval $ac_compile) 2>&5
5220 >  ac_status=$?
5221 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 >  (exit $ac_status); }; then
5223 >        ac_guessed_f90flags=yes
5224 > else
5225 >        ac_guessed_f90flags=no
5226 > fi
5227 > rm -f conftest*
5228 > ac_ext=f90
5229 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5230 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5231 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5232 >
5233 >
5234 > fi
5235 > echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
5236 > echo "${ECHO_T}$ac_guessed_f90flags" >&6
5237 > if test "$ac_guessed_f90flags" = yes; then
5238 >        :
5239 >
5240 > else
5241 >        :
5242 >
5243 >        echo ""
5244 >        echo "**********************************************************"
5245 >        echo "* WARNING: The guessed F90FLAGS don't seem to work with  *"
5246 >        echo "* your compiler.                                         *"
5247 >        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
5248 >        echo "**********************************************************"
5249 >        echo ""
5250 >        F90FLAGS=""
5251 >
5252 > fi
5253 >
5254 >
5255 > fi
5256 >
5257 >     ;;
5258 > esac
5259 >
5260 > # Find a good install program.  We prefer a C program (faster),
5261 > # so one script is as good as another.  But avoid the broken or
5262 > # incompatible versions:
5263 > # SysV /etc/install, /usr/sbin/install
5264 > # SunOS /usr/etc/install
5265 > # IRIX /sbin/install
5266 > # AIX /bin/install
5267 > # AmigaOS /C/install, which installs bootblocks on floppy discs
5268 > # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5269 > # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5270 > # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5271 > # OS/2's system install, which has a completely different semantic
5272 > # ./install, which can be erroneously created by make from ./install.sh.
5273 > echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5274 > echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5275 > if test -z "$INSTALL"; then
5276 > if test "${ac_cv_path_install+set}" = set; then
5277 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5278 > else
5279 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 > for as_dir in $PATH
5281 > do
5282 >  IFS=$as_save_IFS
5283 >  test -z "$as_dir" && as_dir=.
5284 >  # Account for people who put trailing slashes in PATH elements.
5285 > case $as_dir/ in
5286 >  ./ | .// | /cC/* | \
5287 >  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5288 >  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5289 >  /usr/ucb/* ) ;;
5290 >  *)
5291 >    # OSF1 and SCO ODT 3.0 have their own names for install.
5292 >    # Don't use installbsd from OSF since it installs stuff as root
5293 >    # by default.
5294 >    for ac_prog in ginstall scoinst install; do
5295 >      for ac_exec_ext in '' $ac_executable_extensions; do
5296 >        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5297 >          if test $ac_prog = install &&
5298 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5299 >            # AIX install.  It has an incompatible calling convention.
5300 >            :
5301 >          elif test $ac_prog = install &&
5302 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5303 >            # program-specific install script used by HP pwplus--don't use.
5304 >            :
5305 >          else
5306 >            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5307 >            break 3
5308 >          fi
5309 >        fi
5310 >      done
5311 >    done
5312 >    ;;
5313 > esac
5314 > done
5315 >
5316 >
5317 > fi
5318 >  if test "${ac_cv_path_install+set}" = set; then
5319 >    INSTALL=$ac_cv_path_install
5320 >  else
5321 >    # As a last resort, use the slow shell script.  We don't cache a
5322 >    # path for INSTALL within a source directory, because that will
5323 >    # break other packages using the cache if that directory is
5324 >    # removed, or if the path is relative.
5325 >    INSTALL=$ac_install_sh
5326 >  fi
5327 > fi
5328 > echo "$as_me:$LINENO: result: $INSTALL" >&5
5329 > echo "${ECHO_T}$INSTALL" >&6
5330 >
5331 > # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5332 > # It thinks the first close brace ends the variable substitution.
5333 > test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5334 >
5335 > test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5336 >
5337 > test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5338 >
5339 > echo "$as_me:$LINENO: checking whether ln -s works" >&5
5340 > echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5341 > LN_S=$as_ln_s
5342 > if test "$LN_S" = "ln -s"; then
5343 >  echo "$as_me:$LINENO: result: yes" >&5
5344 > echo "${ECHO_T}yes" >&6
5345 > else
5346 >  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5347 > echo "${ECHO_T}no, using $LN_S" >&6
5348 > fi
5349 >
5350 > echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5351 > echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5352 > set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5353 > if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5354 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5355 > else
5356 >  cat >conftest.make <<\_ACEOF
5357 > all:
5358 >        @echo 'ac_maketemp="$(MAKE)"'
5359 > _ACEOF
5360 > # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5361 > eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5362 > if test -n "$ac_maketemp"; then
5363 >  eval ac_cv_prog_make_${ac_make}_set=yes
5364 > else
5365 >  eval ac_cv_prog_make_${ac_make}_set=no
5366 > fi
5367 > rm -f conftest.make
5368 > fi
5369 > if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5370 >  echo "$as_me:$LINENO: result: yes" >&5
5371 > echo "${ECHO_T}yes" >&6
5372 >  SET_MAKE=
5373 > else
5374 >  echo "$as_me:$LINENO: result: no" >&5
5375 > echo "${ECHO_T}no" >&6
5376 >  SET_MAKE="MAKE=${MAKE-make}"
5377 > fi
5378 >
5379 > if test -n "$ac_tool_prefix"; then
5380 >  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5381 > set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5382 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5383 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5384 > if test "${ac_cv_prog_RANLIB+set}" = set; then
5385 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5386 > else
5387 >  if test -n "$RANLIB"; then
5388 >  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5389 > else
5390 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391 > for as_dir in $PATH
5392 > do
5393 >  IFS=$as_save_IFS
5394 >  test -z "$as_dir" && as_dir=.
5395 >  for ac_exec_ext in '' $ac_executable_extensions; do
5396 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 >    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5398 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 >    break 2
5400 >  fi
5401 > done
5402 > done
5403 >
5404 > fi
5405 > fi
5406 > RANLIB=$ac_cv_prog_RANLIB
5407 > if test -n "$RANLIB"; then
5408 >  echo "$as_me:$LINENO: result: $RANLIB" >&5
5409 > echo "${ECHO_T}$RANLIB" >&6
5410 > else
5411 >  echo "$as_me:$LINENO: result: no" >&5
5412 > echo "${ECHO_T}no" >&6
5413 > fi
5414 >
5415 > fi
5416 > if test -z "$ac_cv_prog_RANLIB"; then
5417 >  ac_ct_RANLIB=$RANLIB
5418 >  # Extract the first word of "ranlib", so it can be a program name with args.
5419 > set dummy ranlib; ac_word=$2
5420 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5421 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5422 > if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5423 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5424 > else
5425 >  if test -n "$ac_ct_RANLIB"; then
5426 >  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5427 > else
5428 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 > for as_dir in $PATH
5430 > do
5431 >  IFS=$as_save_IFS
5432 >  test -z "$as_dir" && as_dir=.
5433 >  for ac_exec_ext in '' $ac_executable_extensions; do
5434 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435 >    ac_cv_prog_ac_ct_RANLIB="ranlib"
5436 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 >    break 2
5438 >  fi
5439 > done
5440 > done
5441 >
5442 >  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5443 > fi
5444 > fi
5445 > ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5446 > if test -n "$ac_ct_RANLIB"; then
5447 >  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5448 > echo "${ECHO_T}$ac_ct_RANLIB" >&6
5449 > else
5450 >  echo "$as_me:$LINENO: result: no" >&5
5451 > echo "${ECHO_T}no" >&6
5452 > fi
5453 >
5454 >  RANLIB=$ac_ct_RANLIB
5455 > else
5456 >  RANLIB="$ac_cv_prog_RANLIB"
5457 > fi
5458 >
5459 > for ac_prog in 'bison -y' byacc
5460 > do
5461 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
5462 > set dummy $ac_prog; ac_word=$2
5463 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5464 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5465 > if test "${ac_cv_prog_YACC+set}" = set; then
5466 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5467 > else
5468 >  if test -n "$YACC"; then
5469 >  ac_cv_prog_YACC="$YACC" # Let the user override the test.
5470 > else
5471 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 > for as_dir in $PATH
5473 > do
5474 >  IFS=$as_save_IFS
5475 >  test -z "$as_dir" && as_dir=.
5476 >  for ac_exec_ext in '' $ac_executable_extensions; do
5477 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5478 >    ac_cv_prog_YACC="$ac_prog"
5479 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 >    break 2
5481 >  fi
5482 > done
5483 > done
5484  
5485 + fi
5486 + fi
5487 + YACC=$ac_cv_prog_YACC
5488 + if test -n "$YACC"; then
5489 +  echo "$as_me:$LINENO: result: $YACC" >&5
5490 + echo "${ECHO_T}$YACC" >&6
5491 + else
5492 +  echo "$as_me:$LINENO: result: no" >&5
5493 + echo "${ECHO_T}no" >&6
5494 + fi
5495  
5496 +  test -n "$YACC" && break
5497 + done
5498 + test -n "$YACC" || YACC="yacc"
5499  
5500 <
5463 <
5464 <
5465 <
5466 <        for ac_prog in mpif90 hf90 mpxlf90 mpf90 mpxlf95 mpxlf_r
5500 > for ac_prog in flex lex
5501   do
5502    # Extract the first word of "$ac_prog", so it can be a program name with args.
5503   set dummy $ac_prog; ac_word=$2
5504   echo "$as_me:$LINENO: checking for $ac_word" >&5
5505   echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5506 < if test "${ac_cv_prog_MPIF90+set}" = set; then
5506 > if test "${ac_cv_prog_LEX+set}" = set; then
5507    echo $ECHO_N "(cached) $ECHO_C" >&6
5508   else
5509 <  if test -n "$MPIF90"; then
5510 <  ac_cv_prog_MPIF90="$MPIF90" # Let the user override the test.
5509 >  if test -n "$LEX"; then
5510 >  ac_cv_prog_LEX="$LEX" # Let the user override the test.
5511   else
5512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513   for as_dir in $PATH
# Line 5482 | Line 5516 | do
5516    test -z "$as_dir" && as_dir=.
5517    for ac_exec_ext in '' $ac_executable_extensions; do
5518    if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5519 <    ac_cv_prog_MPIF90="$ac_prog"
5519 >    ac_cv_prog_LEX="$ac_prog"
5520      echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5521      break 2
5522    fi
# Line 5491 | Line 5525 | MPIF90=$ac_cv_prog_MPIF90
5525  
5526   fi
5527   fi
5528 < MPIF90=$ac_cv_prog_MPIF90
5529 < if test -n "$MPIF90"; then
5530 <  echo "$as_me:$LINENO: result: $MPIF90" >&5
5531 < echo "${ECHO_T}$MPIF90" >&6
5528 > LEX=$ac_cv_prog_LEX
5529 > if test -n "$LEX"; then
5530 >  echo "$as_me:$LINENO: result: $LEX" >&5
5531 > echo "${ECHO_T}$LEX" >&6
5532   else
5533    echo "$as_me:$LINENO: result: no" >&5
5534   echo "${ECHO_T}no" >&6
5535   fi
5536  
5537 <  test -n "$MPIF90" && break
5537 >  test -n "$LEX" && break
5538   done
5539 < test -n "$MPIF90" || MPIF90="$F90"
5539 > test -n "$LEX" || LEX=":"
5540  
5541 <        acx_mpi_save_F90="$F90"
5542 <        F90="$MPIF90"
5541 > if test -z "$LEXLIB"
5542 > then
5543 >  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5544 > echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5545 > if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5546 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5547 > else
5548 >  ac_check_lib_save_LIBS=$LIBS
5549 > LIBS="-lfl  $LIBS"
5550 > cat >conftest.$ac_ext <<_ACEOF
5551  
5510
5511
5512 if test x = x"$MPILIBS"; then
5513        echo "$as_me:$LINENO: checking for MPI_Init" >&5
5514 echo $ECHO_N "checking for MPI_Init... $ECHO_C" >&6
5515                        cat >conftest.$ac_ext <<_ACEOF
5516
5552   program main
5553  
5554 <      call MPI_Init
5554 > call yywrap
5555   end program main
5556  
5557   _ACEOF
5558   rm -f conftest.$ac_objext conftest$ac_exeext
5559   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5560 <  (eval $ac_link) 2>&5
5560 >  (eval $ac_link) 2>conftest.er1
5561    ac_status=$?
5562 +  grep -v '^ *+' conftest.er1 >conftest.err
5563 +  rm -f conftest.er1
5564 +  cat conftest.err >&5
5565    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566    (exit $ac_status); } &&
5567 <         { ac_try='test -s conftest$ac_exeext'
5567 >         { ac_try='test -z "$ac_f90_werror_flag"
5568 >                         || test ! -s conftest.err'
5569    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570    (eval $ac_try) 2>&5
5571    ac_status=$?
5572    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 +  (exit $ac_status); }; } &&
5574 +         { ac_try='test -s conftest$ac_exeext'
5575 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 +  (eval $ac_try) 2>&5
5577 +  ac_status=$?
5578 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579    (exit $ac_status); }; }; then
5580 <  MPILIBS=" "
5536 <                                echo "$as_me:$LINENO: result: yes" >&5
5537 < echo "${ECHO_T}yes" >&6
5580 >  ac_cv_lib_fl_yywrap=yes
5581   else
5582    echo "$as_me: failed program was:" >&5
5583   sed 's/^/| /' conftest.$ac_ext >&5
5584  
5585 < echo "$as_me:$LINENO: result: no" >&5
5543 < echo "${ECHO_T}no" >&6
5585 > ac_cv_lib_fl_yywrap=no
5586   fi
5587 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5587 > rm -f conftest.err conftest.$ac_objext \
5588 >      conftest$ac_exeext conftest.$ac_ext
5589 > LIBS=$ac_check_lib_save_LIBS
5590   fi
5591 < if test x = x"$MPILIBS"; then
5592 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5593 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
5594 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
5591 > echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5592 > echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5593 > if test $ac_cv_lib_fl_yywrap = yes; then
5594 >  LEXLIB="-lfl"
5595 > else
5596 >  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5597 > echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5598 > if test "${ac_cv_lib_l_yywrap+set}" = set; then
5599    echo $ECHO_N "(cached) $ECHO_C" >&6
5600   else
5601    ac_check_lib_save_LIBS=$LIBS
5602 < LIBS="-lmpi  $LIBS"
5602 > LIBS="-ll  $LIBS"
5603   cat >conftest.$ac_ext <<_ACEOF
5604  
5605   program main
5606  
5607 < call MPI_Init
5607 > call yywrap
5608   end program main
5609  
5610   _ACEOF
5611   rm -f conftest.$ac_objext conftest$ac_exeext
5612   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5613 <  (eval $ac_link) 2>&5
5613 >  (eval $ac_link) 2>conftest.er1
5614    ac_status=$?
5615 +  grep -v '^ *+' conftest.er1 >conftest.err
5616 +  rm -f conftest.er1
5617 +  cat conftest.err >&5
5618    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619    (exit $ac_status); } &&
5620 <         { ac_try='test -s conftest$ac_exeext'
5620 >         { ac_try='test -z "$ac_f90_werror_flag"
5621 >                         || test ! -s conftest.err'
5622    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623    (eval $ac_try) 2>&5
5624    ac_status=$?
5625    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 +  (exit $ac_status); }; } &&
5627 +         { ac_try='test -s conftest$ac_exeext'
5628 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629 +  (eval $ac_try) 2>&5
5630 +  ac_status=$?
5631 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632    (exit $ac_status); }; }; then
5633 <  ac_cv_lib_mpi_MPI_Init=yes
5633 >  ac_cv_lib_l_yywrap=yes
5634   else
5635    echo "$as_me: failed program was:" >&5
5636   sed 's/^/| /' conftest.$ac_ext >&5
5637  
5638 < ac_cv_lib_mpi_MPI_Init=no
5638 > ac_cv_lib_l_yywrap=no
5639   fi
5640 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5640 > rm -f conftest.err conftest.$ac_objext \
5641 >      conftest$ac_exeext conftest.$ac_ext
5642   LIBS=$ac_check_lib_save_LIBS
5643   fi
5644 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
5645 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
5646 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
5647 <  MPILIBS="-lmpi"
5644 > echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5645 > echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5646 > if test $ac_cv_lib_l_yywrap = yes; then
5647 >  LEXLIB="-ll"
5648   fi
5649  
5650   fi
5651 < if test x = x"$MPILIBS"; then
5652 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
5653 < echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
5654 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
5651 >
5652 > fi
5653 >
5654 > if test "x$LEX" != "x:"; then
5655 >  echo "$as_me:$LINENO: checking lex output file root" >&5
5656 > echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5657 > if test "${ac_cv_prog_lex_root+set}" = set; then
5658    echo $ECHO_N "(cached) $ECHO_C" >&6
5659   else
5660 <  ac_check_lib_save_LIBS=$LIBS
5661 < LIBS="-lmpich  $LIBS"
5662 < cat >conftest.$ac_ext <<_ACEOF
5660 >  # The minimal lex program is just a single line: %%.  But some broken lexes
5661 > # (Solaris, I think it was) want two %% lines, so accommodate them.
5662 > cat >conftest.l <<_ACEOF
5663 > %%
5664 > %%
5665 > _ACEOF
5666 > { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5667 >  (eval $LEX conftest.l) 2>&5
5668 >  ac_status=$?
5669 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 >  (exit $ac_status); }
5671 > if test -f lex.yy.c; then
5672 >  ac_cv_prog_lex_root=lex.yy
5673 > elif test -f lexyy.c; then
5674 >  ac_cv_prog_lex_root=lexyy
5675 > else
5676 >  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5677 > echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5678 >   { (exit 1); exit 1; }; }
5679 > fi
5680 > fi
5681 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5682 > echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5683 > rm -f conftest.l
5684 > LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5685  
5686 < program main
5687 <
5688 < call MPI_Init
5689 < end program main
5690 <
5686 > echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5687 > echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5688 > if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5689 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5690 > else
5691 >  # POSIX says lex can declare yytext either as a pointer or an array; the
5692 > # default is implementation-dependent. Figure out which it is, since
5693 > # not all implementations provide the %pointer and %array declarations.
5694 > ac_cv_prog_lex_yytext_pointer=no
5695 > echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5696 > ac_save_LIBS=$LIBS
5697 > LIBS="$LIBS $LEXLIB"
5698 > cat >conftest.$ac_ext <<_ACEOF
5699 > `cat $LEX_OUTPUT_ROOT.c`
5700   _ACEOF
5701   rm -f conftest.$ac_objext conftest$ac_exeext
5702   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5703 <  (eval $ac_link) 2>&5
5703 >  (eval $ac_link) 2>conftest.er1
5704    ac_status=$?
5705 +  grep -v '^ *+' conftest.er1 >conftest.err
5706 +  rm -f conftest.er1
5707 +  cat conftest.err >&5
5708    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709    (exit $ac_status); } &&
5710 <         { ac_try='test -s conftest$ac_exeext'
5710 >         { ac_try='test -z "$ac_f90_werror_flag"
5711 >                         || test ! -s conftest.err'
5712    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713    (eval $ac_try) 2>&5
5714    ac_status=$?
5715    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 +  (exit $ac_status); }; } &&
5717 +         { ac_try='test -s conftest$ac_exeext'
5718 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 +  (eval $ac_try) 2>&5
5720 +  ac_status=$?
5721 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722    (exit $ac_status); }; }; then
5723 <  ac_cv_lib_mpich_MPI_Init=yes
5723 >  ac_cv_prog_lex_yytext_pointer=yes
5724   else
5725    echo "$as_me: failed program was:" >&5
5726   sed 's/^/| /' conftest.$ac_ext >&5
5727  
5625 ac_cv_lib_mpich_MPI_Init=no
5728   fi
5729 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5730 < LIBS=$ac_check_lib_save_LIBS
5729 > rm -f conftest.err conftest.$ac_objext \
5730 >      conftest$ac_exeext conftest.$ac_ext
5731 > LIBS=$ac_save_LIBS
5732 > rm -f "${LEX_OUTPUT_ROOT}.c"
5733 >
5734   fi
5735 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
5736 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
5737 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
5738 <  MPILIBS="-lmpich"
5735 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5736 > echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5737 > if test $ac_cv_prog_lex_yytext_pointer = yes; then
5738 >
5739 > cat >>confdefs.h <<\_ACEOF
5740 > #define YYTEXT_POINTER 1
5741 > _ACEOF
5742 >
5743 > fi
5744 >
5745 > fi
5746 > # Extract the first word of "ar", so it can be a program name with args.
5747 > set dummy ar; ac_word=$2
5748 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5749 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5750 > if test "${ac_cv_prog_AR+set}" = set; then
5751 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5752 > else
5753 >  if test -n "$AR"; then
5754 >  ac_cv_prog_AR="$AR" # Let the user override the test.
5755 > else
5756 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 > for as_dir in $PATH
5758 > do
5759 >  IFS=$as_save_IFS
5760 >  test -z "$as_dir" && as_dir=.
5761 >  for ac_exec_ext in '' $ac_executable_extensions; do
5762 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763 >    ac_cv_prog_AR="ar"
5764 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 >    break 2
5766 >  fi
5767 > done
5768 > done
5769 >
5770 >  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
5771   fi
5772 + fi
5773 + AR=$ac_cv_prog_AR
5774 + if test -n "$AR"; then
5775 +  echo "$as_me:$LINENO: result: $AR" >&5
5776 + echo "${ECHO_T}$AR" >&6
5777 + else
5778 +  echo "$as_me:$LINENO: result: no" >&5
5779 + echo "${ECHO_T}no" >&6
5780 + fi
5781  
5782 + if test "$AR" = "NONE"; then
5783 +  { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
5784 + echo "$as_me: error: --> Can't find \`ar'!" >&2;}
5785 +   { (exit 1); exit 1; }; }
5786 +  cat >confcache <<\_ACEOF
5787 + # This file is a shell script that caches the results of configure
5788 + # tests run on this system so they can be shared between configure
5789 + # scripts and configure runs, see configure's option --config-cache.
5790 + # It is not useful on other systems.  If it contains results you don't
5791 + # want to keep, you may remove or edit it.
5792 + #
5793 + # config.status only pays attention to the cache file if you give it
5794 + # the --recheck option to rerun configure.
5795 + #
5796 + # `ac_cv_env_foo' variables (set or unset) will be overridden when
5797 + # loading this file, other *unset* `ac_cv_foo' will be assigned the
5798 + # following values.
5799 +
5800 + _ACEOF
5801 +
5802 + # The following way of writing the cache mishandles newlines in values,
5803 + # but we know of no workaround that is simple, portable, and efficient.
5804 + # So, don't put newlines in cache variables' values.
5805 + # Ultrix sh set writes to stderr and can't be redirected directly,
5806 + # and sets the high bit in the cache file unless we assign to the vars.
5807 + {
5808 +  (set) 2>&1 |
5809 +    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5810 +    *ac_space=\ *)
5811 +      # `set' does not quote correctly, so add quotes (double-quote
5812 +      # substitution turns \\\\ into \\, and sed turns \\ into \).
5813 +      sed -n \
5814 +        "s/'/'\\\\''/g;
5815 +          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5816 +      ;;
5817 +    *)
5818 +      # `set' quotes correctly as required by POSIX, so do not add quotes.
5819 +      sed -n \
5820 +        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5821 +      ;;
5822 +    esac;
5823 + } |
5824 +  sed '
5825 +     t clear
5826 +     : clear
5827 +     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5828 +     t end
5829 +     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5830 +     : end' >>confcache
5831 + if diff $cache_file confcache >/dev/null 2>&1; then :; else
5832 +  if test -w $cache_file; then
5833 +    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5834 +    cat confcache >$cache_file
5835 +  else
5836 +    echo "not updating unwritable cache $cache_file"
5837 +  fi
5838   fi
5839 + rm -f confcache
5840 +  exit 1
5841 + fi
5842  
5843 + echo "$as_me:$LINENO: checking for mpi-directory" >&5
5844 + echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
5845  
5846 + # Check whether --with-mpi or --without-mpi was given.
5847 + if test "${with_mpi+set}" = set; then
5848 +  withval="$with_mpi"
5849 +  MPI_DIR="$withval"
5850 + else
5851 +  MPI_DIR="/usr/local"
5852 + fi;
5853 + echo "$as_me:$LINENO: result: $MPI_DIR" >&5
5854 + echo "${ECHO_T}$MPI_DIR" >&6
5855  
5640 F90="$acx_mpi_save_F90"
5856  
5857 + echo "$as_me:$LINENO: checking for mpi-lib-directory" >&5
5858 + echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6
5859  
5860 + # Check whether --with-mpi_libdir or --without-mpi_libdir was given.
5861 + if test "${with_mpi_libdir+set}" = set; then
5862 +  withval="$with_mpi_libdir"
5863 +  MPI_LIBDIR="$withval"
5864 + else
5865 +  MPI_LIBDIR="$MPI_DIR/lib"
5866 + fi;
5867 + echo "$as_me:$LINENO: result: $MPI_LIBDIR" >&5
5868 + echo "${ECHO_T}$MPI_LIBDIR" >&6
5869  
5644 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5645 if test x = x"$MPILIBS"; then
5870  
5871 <        :
5871 > echo "$as_me:$LINENO: checking for mpi-inc-directory" >&5
5872 > echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6
5873 >
5874 > # Check whether --with-mpi_inc or --without-mpi_inc was given.
5875 > if test "${with_mpi_inc+set}" = set; then
5876 >  withval="$with_mpi_inc"
5877 >  MPI_INC="$withval"
5878   else
5879 +  MPI_INC="$MPI_DIR/include"
5880 + fi;
5881 + echo "$as_me:$LINENO: result: $MPI_INC" >&5
5882 + echo "${ECHO_T}$MPI_INC" >&6
5883  
5650 cat >>confdefs.h <<\_ACEOF
5651 #define HAVE_MPI 1
5652 _ACEOF
5884  
5654        :
5655 fi
5885  
5886 + echo "$as_me:$LINENO: checking for MPI library" >&5
5887 + echo $ECHO_N "checking for MPI library... $ECHO_C" >&6
5888 + MPI_LIB=""
5889 + case "$host" in
5890 +  *-ibm-aix*)
5891 +    echo "$as_me:$LINENO: checking whether to use signal-based MPI library" >&5
5892 + echo $ECHO_N "checking whether to use signal-based MPI library... $ECHO_C" >&6
5893 +    echo "$as_me:$LINENO: result: $PACX_SIGNAL" >&5
5894 + echo "${ECHO_T}$PACX_SIGNAL" >&6
5895 +    if test "x$PACX_SIGNAL" = "xyes" ; then
5896 +      if test -f "$MPI_LIBDIR/libmpi.a" ; then
5897 +        MPI_LIB="-lmpi"
5898 +      elif test -f "$MPI_LIBDIR/libmpi.so" ; then
5899 +        MPI_LIB="-lmpi"
5900 +      elif test -f "$MPI_LIBDIR/libmpich.a" ; then
5901 +        MPI_LIB="-lmpich"
5902 +      else
5903 +        { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5904 + echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
5905 +   { (exit 1); exit 1; }; }
5906 +      fi
5907 +    else
5908 +      if test -f "$MPI_LIBDIR/libmpi_r.a" ; then
5909 +         MPI_LIB="-lmpi_r"
5910 +      else
5911 +         { { echo "$as_me:$LINENO: error: libmpi_r not found; check path for MPI package..." >&5
5912 + echo "$as_me: error: libmpi_r not found; check path for MPI package..." >&2;}
5913 +   { (exit 1); exit 1; }; }
5914 +      fi
5915 +    fi
5916 +    echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5917 + echo "${ECHO_T}found $MPI_LIB" >&6
5918 +  ;;
5919 +  *)                             if test -f "$MPI_LIBDIR/libmpich.a" ; then
5920 +      MPI_LIB="-lmpich"
5921 +    elif test -f "$MPI_LIBDIR/libmpi.so" ; then
5922 +      MPI_LIB="-lmpi"
5923 +    elif test -f "$MPI_LIBDIR/libmpi.a" ; then
5924 +      MPI_LIB="-lmpi"
5925 +    else
5926 +      { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5927 + echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
5928 +   { (exit 1); exit 1; }; }
5929 +    fi
5930 +    echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5931 + echo "${ECHO_T}found $MPI_LIB" >&6
5932 +  ;;
5933 + esac
5934  
5935 +
5936 +
5937   ac_ext=c
5938   ac_cpp='$CPP $CPPFLAGS'
5939   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5683 | Line 5962 | do
5962    # On the NeXT, cc -E runs the code through the compiler's parser,
5963    # not just through cpp. "Syntax error" is here to catch this case.
5964    cat >conftest.$ac_ext <<_ACEOF
5686 #line $LINENO "configure"
5965   /* confdefs.h.  */
5966   _ACEOF
5967   cat confdefs.h >>conftest.$ac_ext
# Line 5694 | Line 5972 | cat >>conftest.$ac_ext <<_ACEOF
5972   #else
5973   # include <assert.h>
5974   #endif
5975 <                     Syntax error
5975 >                     Syntax error
5976   _ACEOF
5977   if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5978    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
# Line 5706 | Line 5984 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
5984    (exit $ac_status); } >/dev/null; then
5985    if test -s conftest.err; then
5986      ac_cpp_err=$ac_c_preproc_warn_flag
5987 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5988    else
5989      ac_cpp_err=
5990    fi
# Line 5726 | Line 6005 | rm -f conftest.err conftest.$ac_ext
6005    # OK, works on sane cases.  Now check whether non-existent headers
6006    # can be detected and how.
6007    cat >conftest.$ac_ext <<_ACEOF
5729 #line $LINENO "configure"
6008   /* confdefs.h.  */
6009   _ACEOF
6010   cat confdefs.h >>conftest.$ac_ext
# Line 5744 | Line 6022 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6022    (exit $ac_status); } >/dev/null; then
6023    if test -s conftest.err; then
6024      ac_cpp_err=$ac_c_preproc_warn_flag
6025 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6026    else
6027      ac_cpp_err=
6028    fi
# Line 5790 | Line 6069 | do
6069    # On the NeXT, cc -E runs the code through the compiler's parser,
6070    # not just through cpp. "Syntax error" is here to catch this case.
6071    cat >conftest.$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
6072   /* confdefs.h.  */
6073   _ACEOF
6074   cat confdefs.h >>conftest.$ac_ext
# Line 5801 | Line 6079 | cat >>conftest.$ac_ext <<_ACEOF
6079   #else
6080   # include <assert.h>
6081   #endif
6082 <                     Syntax error
6082 >                     Syntax error
6083   _ACEOF
6084   if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6085    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
# Line 5813 | Line 6091 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6091    (exit $ac_status); } >/dev/null; then
6092    if test -s conftest.err; then
6093      ac_cpp_err=$ac_c_preproc_warn_flag
6094 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6095    else
6096      ac_cpp_err=
6097    fi
# Line 5833 | Line 6112 | rm -f conftest.err conftest.$ac_ext
6112    # OK, works on sane cases.  Now check whether non-existent headers
6113    # can be detected and how.
6114    cat >conftest.$ac_ext <<_ACEOF
5836 #line $LINENO "configure"
6115   /* confdefs.h.  */
6116   _ACEOF
6117   cat confdefs.h >>conftest.$ac_ext
# Line 5851 | Line 6129 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6129    (exit $ac_status); } >/dev/null; then
6130    if test -s conftest.err; then
6131      ac_cpp_err=$ac_c_preproc_warn_flag
6132 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6133    else
6134      ac_cpp_err=
6135    fi
# Line 5911 | Line 6190 | else
6190    echo $ECHO_N "(cached) $ECHO_C" >&6
6191   else
6192    cat >conftest.$ac_ext <<_ACEOF
5914 #line $LINENO "configure"
6193   /* confdefs.h.  */
6194   _ACEOF
6195   cat confdefs.h >>conftest.$ac_ext
# Line 5932 | Line 6210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6210   _ACEOF
6211   rm -f conftest.$ac_objext
6212   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6213 <  (eval $ac_compile) 2>&5
6213 >  (eval $ac_compile) 2>conftest.er1
6214    ac_status=$?
6215 +  grep -v '^ *+' conftest.er1 >conftest.err
6216 +  rm -f conftest.er1
6217 +  cat conftest.err >&5
6218    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219    (exit $ac_status); } &&
6220 <         { ac_try='test -s conftest.$ac_objext'
6220 >         { ac_try='test -z "$ac_c_werror_flag"
6221 >                         || test ! -s conftest.err'
6222    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223    (eval $ac_try) 2>&5
6224    ac_status=$?
6225    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 +  (exit $ac_status); }; } &&
6227 +         { ac_try='test -s conftest.$ac_objext'
6228 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6229 +  (eval $ac_try) 2>&5
6230 +  ac_status=$?
6231 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232    (exit $ac_status); }; }; then
6233    ac_cv_header_stdc=yes
6234   else
# Line 5949 | Line 6237 | rm -f conftest.$ac_objext conftest.$ac_ext
6237  
6238   ac_cv_header_stdc=no
6239   fi
6240 < rm -f conftest.$ac_objext conftest.$ac_ext
6240 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6241  
6242   if test $ac_cv_header_stdc = yes; then
6243    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6244    cat >conftest.$ac_ext <<_ACEOF
5957 #line $LINENO "configure"
6245   /* confdefs.h.  */
6246   _ACEOF
6247   cat confdefs.h >>conftest.$ac_ext
# Line 5976 | Line 6263 | if test $ac_cv_header_stdc = yes; then
6263   if test $ac_cv_header_stdc = yes; then
6264    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6265    cat >conftest.$ac_ext <<_ACEOF
5979 #line $LINENO "configure"
6266   /* confdefs.h.  */
6267   _ACEOF
6268   cat confdefs.h >>conftest.$ac_ext
# Line 6001 | Line 6287 | else
6287    :
6288   else
6289    cat >conftest.$ac_ext <<_ACEOF
6004 #line $LINENO "configure"
6290   /* confdefs.h.  */
6291   _ACEOF
6292   cat confdefs.h >>conftest.$ac_ext
# Line 6013 | Line 6298 | cat >>conftest.$ac_ext <<_ACEOF
6298   # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6299   #else
6300   # define ISLOWER(c) \
6301 <                   (('a' <= (c) && (c) <= 'i') \
6302 <                     || ('j' <= (c) && (c) <= 'r') \
6303 <                     || ('s' <= (c) && (c) <= 'z'))
6301 >                   (('a' <= (c) && (c) <= 'i') \
6302 >                     || ('j' <= (c) && (c) <= 'r') \
6303 >                     || ('s' <= (c) && (c) <= 'z'))
6304   # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6305   #endif
6306  
# Line 6026 | Line 6311 | main ()
6311    int i;
6312    for (i = 0; i < 256; i++)
6313      if (XOR (islower (i), ISLOWER (i))
6314 <        || toupper (i) != TOUPPER (i))
6314 >        || toupper (i) != TOUPPER (i))
6315        exit(2);
6316    exit (0);
6317   }
# Line 6051 | Line 6336 | rm -f core core.* *.core gmon.out bb.out conftest$ac_e
6336   ( exit $ac_status )
6337   ac_cv_header_stdc=no
6338   fi
6339 < rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6339 > rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6340   fi
6341   fi
6342   fi
# Line 6076 | Line 6361 | for ac_header in sys/types.h sys/stat.h stdlib.h strin
6361  
6362  
6363   for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6364 <                  inttypes.h stdint.h unistd.h
6364 >                  inttypes.h stdint.h unistd.h
6365   do
6366   as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6367   echo "$as_me:$LINENO: checking for $ac_header" >&5
# Line 6085 | Line 6370 | else
6370    echo $ECHO_N "(cached) $ECHO_C" >&6
6371   else
6372    cat >conftest.$ac_ext <<_ACEOF
6088 #line $LINENO "configure"
6373   /* confdefs.h.  */
6374   _ACEOF
6375   cat confdefs.h >>conftest.$ac_ext
# Line 6097 | Line 6381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6381   _ACEOF
6382   rm -f conftest.$ac_objext
6383   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6384 <  (eval $ac_compile) 2>&5
6384 >  (eval $ac_compile) 2>conftest.er1
6385    ac_status=$?
6386 +  grep -v '^ *+' conftest.er1 >conftest.err
6387 +  rm -f conftest.er1
6388 +  cat conftest.err >&5
6389    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390    (exit $ac_status); } &&
6391 <         { ac_try='test -s conftest.$ac_objext'
6391 >         { ac_try='test -z "$ac_c_werror_flag"
6392 >                         || test ! -s conftest.err'
6393    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394    (eval $ac_try) 2>&5
6395    ac_status=$?
6396    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 +  (exit $ac_status); }; } &&
6398 +         { ac_try='test -s conftest.$ac_objext'
6399 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6400 +  (eval $ac_try) 2>&5
6401 +  ac_status=$?
6402 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403    (exit $ac_status); }; }; then
6404    eval "$as_ac_Header=yes"
6405   else
# Line 6114 | Line 6408 | rm -f conftest.$ac_objext conftest.$ac_ext
6408  
6409   eval "$as_ac_Header=no"
6410   fi
6411 < rm -f conftest.$ac_objext conftest.$ac_ext
6411 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6412   fi
6413   echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6414   echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
# Line 6218 | Line 6512 | cat >conftest.$ac_ext <<_ACEOF
6512   echo "$as_me:$LINENO: checking sprng.h usability" >&5
6513   echo $ECHO_N "checking sprng.h usability... $ECHO_C" >&6
6514   cat >conftest.$ac_ext <<_ACEOF
6221 #line $LINENO "configure"
6515   /* confdefs.h.  */
6516   _ACEOF
6517   cat confdefs.h >>conftest.$ac_ext
# Line 6229 | Line 6522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6522   _ACEOF
6523   rm -f conftest.$ac_objext
6524   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6525 <  (eval $ac_compile) 2>&5
6525 >  (eval $ac_compile) 2>conftest.er1
6526    ac_status=$?
6527 +  grep -v '^ *+' conftest.er1 >conftest.err
6528 +  rm -f conftest.er1
6529 +  cat conftest.err >&5
6530    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531    (exit $ac_status); } &&
6532 <         { ac_try='test -s conftest.$ac_objext'
6532 >         { ac_try='test -z "$ac_c_werror_flag"
6533 >                         || test ! -s conftest.err'
6534    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535    (eval $ac_try) 2>&5
6536    ac_status=$?
6537    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538 +  (exit $ac_status); }; } &&
6539 +         { ac_try='test -s conftest.$ac_objext'
6540 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541 +  (eval $ac_try) 2>&5
6542 +  ac_status=$?
6543 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544    (exit $ac_status); }; }; then
6545    ac_header_compiler=yes
6546   else
# Line 6246 | Line 6549 | rm -f conftest.$ac_objext conftest.$ac_ext
6549  
6550   ac_header_compiler=no
6551   fi
6552 < rm -f conftest.$ac_objext conftest.$ac_ext
6552 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6553   echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6554   echo "${ECHO_T}$ac_header_compiler" >&6
6555  
# Line 6254 | Line 6557 | cat >conftest.$ac_ext <<_ACEOF
6557   echo "$as_me:$LINENO: checking sprng.h presence" >&5
6558   echo $ECHO_N "checking sprng.h presence... $ECHO_C" >&6
6559   cat >conftest.$ac_ext <<_ACEOF
6257 #line $LINENO "configure"
6560   /* confdefs.h.  */
6561   _ACEOF
6562   cat confdefs.h >>conftest.$ac_ext
# Line 6272 | Line 6574 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6574    (exit $ac_status); } >/dev/null; then
6575    if test -s conftest.err; then
6576      ac_cpp_err=$ac_c_preproc_warn_flag
6577 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6578    else
6579      ac_cpp_err=
6580    fi
# Line 6291 | Line 6594 | case $ac_header_compiler:$ac_header_preproc in
6594   echo "${ECHO_T}$ac_header_preproc" >&6
6595  
6596   # So?  What about this header?
6597 < case $ac_header_compiler:$ac_header_preproc in
6598 <  yes:no )
6597 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6598 >  yes:no: )
6599      { echo "$as_me:$LINENO: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&5
6600   echo "$as_me: WARNING: sprng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6601 <    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6602 < echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6603 <    (
6301 <      cat <<\_ASBOX
6302 < ## ------------------------------------ ##
6303 < ## Report this to bug-autoconf@gnu.org. ##
6304 < ## ------------------------------------ ##
6305 < _ASBOX
6306 <    ) |
6307 <      sed "s/^/$as_me: WARNING:     /" >&2
6601 >    { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the compiler's result" >&5
6602 > echo "$as_me: WARNING: sprng.h: proceeding with the compiler's result" >&2;}
6603 >    ac_header_preproc=yes
6604      ;;
6605 <  no:yes )
6605 >  no:yes:* )
6606      { echo "$as_me:$LINENO: WARNING: sprng.h: present but cannot be compiled" >&5
6607   echo "$as_me: WARNING: sprng.h: present but cannot be compiled" >&2;}
6608 <    { echo "$as_me:$LINENO: WARNING: sprng.h: check for missing prerequisite headers?" >&5
6609 < echo "$as_me: WARNING: sprng.h: check for missing prerequisite headers?" >&2;}
6608 >    { echo "$as_me:$LINENO: WARNING: sprng.h:     check for missing prerequisite headers?" >&5
6609 > echo "$as_me: WARNING: sprng.h:     check for missing prerequisite headers?" >&2;}
6610 >    { echo "$as_me:$LINENO: WARNING: sprng.h: see the Autoconf documentation" >&5
6611 > echo "$as_me: WARNING: sprng.h: see the Autoconf documentation" >&2;}
6612 >    { echo "$as_me:$LINENO: WARNING: sprng.h:     section \"Present But Cannot Be Compiled\"" >&5
6613 > echo "$as_me: WARNING: sprng.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6614      { echo "$as_me:$LINENO: WARNING: sprng.h: proceeding with the preprocessor's result" >&5
6615   echo "$as_me: WARNING: sprng.h: proceeding with the preprocessor's result" >&2;}
6616 +    { echo "$as_me:$LINENO: WARNING: sprng.h: in the future, the compiler will take precedence" >&5
6617 + echo "$as_me: WARNING: sprng.h: in the future, the compiler will take precedence" >&2;}
6618      (
6619        cat <<\_ASBOX
6620 < ## ------------------------------------ ##
6621 < ## Report this to bug-autoconf@gnu.org. ##
6622 < ## ------------------------------------ ##
6620 > ## ------------------------------ ##
6621 > ## Report this to gezelter@nd.edu ##
6622 > ## ------------------------------ ##
6623   _ASBOX
6624      ) |
6625        sed "s/^/$as_me: WARNING:     /" >&2
# Line 6344 | Line 6646 | cat >conftest.$ac_ext <<_ACEOF
6646    ac_check_lib_save_LIBS=$LIBS
6647   LIBS="-lsprng  $LIBS"
6648   cat >conftest.$ac_ext <<_ACEOF
6347 #line $LINENO "configure"
6649   /* confdefs.h.  */
6650   _ACEOF
6651   cat confdefs.h >>conftest.$ac_ext
# Line 6368 | Line 6669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6669   _ACEOF
6670   rm -f conftest.$ac_objext conftest$ac_exeext
6671   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6672 <  (eval $ac_link) 2>&5
6672 >  (eval $ac_link) 2>conftest.er1
6673    ac_status=$?
6674 +  grep -v '^ *+' conftest.er1 >conftest.err
6675 +  rm -f conftest.er1
6676 +  cat conftest.err >&5
6677    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678    (exit $ac_status); } &&
6679 <         { ac_try='test -s conftest$ac_exeext'
6679 >         { ac_try='test -z "$ac_c_werror_flag"
6680 >                         || test ! -s conftest.err'
6681    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682    (eval $ac_try) 2>&5
6683    ac_status=$?
6684    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 +  (exit $ac_status); }; } &&
6686 +         { ac_try='test -s conftest$ac_exeext'
6687 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688 +  (eval $ac_try) 2>&5
6689 +  ac_status=$?
6690 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691    (exit $ac_status); }; }; then
6692    ac_cv_lib_sprng_init_rng=yes
6693   else
# Line 6385 | Line 6696 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
6696  
6697   ac_cv_lib_sprng_init_rng=no
6698   fi
6699 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6699 > rm -f conftest.err conftest.$ac_objext \
6700 >      conftest$ac_exeext conftest.$ac_ext
6701   LIBS=$ac_check_lib_save_LIBS
6702   fi
6703   echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5
# Line 6465 | Line 6777 | cat >conftest.$ac_ext <<_ACEOF
6777   echo "$as_me:$LINENO: checking mkl.h usability" >&5
6778   echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6
6779   cat >conftest.$ac_ext <<_ACEOF
6468 #line $LINENO "configure"
6780   /* confdefs.h.  */
6781   _ACEOF
6782   cat confdefs.h >>conftest.$ac_ext
# Line 6476 | Line 6787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6787   _ACEOF
6788   rm -f conftest.$ac_objext
6789   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790 <  (eval $ac_compile) 2>&5
6790 >  (eval $ac_compile) 2>conftest.er1
6791    ac_status=$?
6792 +  grep -v '^ *+' conftest.er1 >conftest.err
6793 +  rm -f conftest.er1
6794 +  cat conftest.err >&5
6795    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796    (exit $ac_status); } &&
6797 <         { ac_try='test -s conftest.$ac_objext'
6797 >         { ac_try='test -z "$ac_c_werror_flag"
6798 >                         || test ! -s conftest.err'
6799    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800    (eval $ac_try) 2>&5
6801    ac_status=$?
6802    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 +  (exit $ac_status); }; } &&
6804 +         { ac_try='test -s conftest.$ac_objext'
6805 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 +  (eval $ac_try) 2>&5
6807 +  ac_status=$?
6808 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809    (exit $ac_status); }; }; then
6810    ac_header_compiler=yes
6811   else
# Line 6493 | Line 6814 | rm -f conftest.$ac_objext conftest.$ac_ext
6814  
6815   ac_header_compiler=no
6816   fi
6817 < rm -f conftest.$ac_objext conftest.$ac_ext
6817 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6818   echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6819   echo "${ECHO_T}$ac_header_compiler" >&6
6820  
# Line 6501 | Line 6822 | cat >conftest.$ac_ext <<_ACEOF
6822   echo "$as_me:$LINENO: checking mkl.h presence" >&5
6823   echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6
6824   cat >conftest.$ac_ext <<_ACEOF
6504 #line $LINENO "configure"
6825   /* confdefs.h.  */
6826   _ACEOF
6827   cat confdefs.h >>conftest.$ac_ext
# Line 6519 | Line 6839 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6839    (exit $ac_status); } >/dev/null; then
6840    if test -s conftest.err; then
6841      ac_cpp_err=$ac_c_preproc_warn_flag
6842 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6843    else
6844      ac_cpp_err=
6845    fi
# Line 6538 | Line 6859 | case $ac_header_compiler:$ac_header_preproc in
6859   echo "${ECHO_T}$ac_header_preproc" >&6
6860  
6861   # So?  What about this header?
6862 < case $ac_header_compiler:$ac_header_preproc in
6863 <  yes:no )
6862 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6863 >  yes:no: )
6864      { echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6865   echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6866 <    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
6867 < echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
6868 <    (
6548 <      cat <<\_ASBOX
6549 < ## ------------------------------------ ##
6550 < ## Report this to bug-autoconf@gnu.org. ##
6551 < ## ------------------------------------ ##
6552 < _ASBOX
6553 <    ) |
6554 <      sed "s/^/$as_me: WARNING:     /" >&2
6866 >    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the compiler's result" >&5
6867 > echo "$as_me: WARNING: mkl.h: proceeding with the compiler's result" >&2;}
6868 >    ac_header_preproc=yes
6869      ;;
6870 <  no:yes )
6870 >  no:yes:* )
6871      { echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5
6872   echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;}
6873 <    { echo "$as_me:$LINENO: WARNING: mkl.h: check for missing prerequisite headers?" >&5
6874 < echo "$as_me: WARNING: mkl.h: check for missing prerequisite headers?" >&2;}
6873 >    { echo "$as_me:$LINENO: WARNING: mkl.h:     check for missing prerequisite headers?" >&5
6874 > echo "$as_me: WARNING: mkl.h:     check for missing prerequisite headers?" >&2;}
6875 >    { echo "$as_me:$LINENO: WARNING: mkl.h: see the Autoconf documentation" >&5
6876 > echo "$as_me: WARNING: mkl.h: see the Autoconf documentation" >&2;}
6877 >    { echo "$as_me:$LINENO: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&5
6878 > echo "$as_me: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6879      { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
6880   echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
6881 +    { echo "$as_me:$LINENO: WARNING: mkl.h: in the future, the compiler will take precedence" >&5
6882 + echo "$as_me: WARNING: mkl.h: in the future, the compiler will take precedence" >&2;}
6883      (
6884        cat <<\_ASBOX
6885 < ## ------------------------------------ ##
6886 < ## Report this to bug-autoconf@gnu.org. ##
6887 < ## ------------------------------------ ##
6885 > ## ------------------------------ ##
6886 > ## Report this to gezelter@nd.edu ##
6887 > ## ------------------------------ ##
6888   _ASBOX
6889      ) |
6890        sed "s/^/$as_me: WARNING:     /" >&2
# Line 6591 | Line 6911 | cat >conftest.$ac_ext <<_ACEOF
6911    ac_check_lib_save_LIBS=$LIBS
6912   LIBS="-lmkl  $LIBS"
6913   cat >conftest.$ac_ext <<_ACEOF
6594 #line $LINENO "configure"
6914   /* confdefs.h.  */
6915   _ACEOF
6916   cat confdefs.h >>conftest.$ac_ext
# Line 6615 | Line 6934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6934   _ACEOF
6935   rm -f conftest.$ac_objext conftest$ac_exeext
6936   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6937 <  (eval $ac_link) 2>&5
6937 >  (eval $ac_link) 2>conftest.er1
6938    ac_status=$?
6939 +  grep -v '^ *+' conftest.er1 >conftest.err
6940 +  rm -f conftest.er1
6941 +  cat conftest.err >&5
6942    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943    (exit $ac_status); } &&
6944 <         { ac_try='test -s conftest$ac_exeext'
6944 >         { ac_try='test -z "$ac_c_werror_flag"
6945 >                         || test ! -s conftest.err'
6946    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6947    (eval $ac_try) 2>&5
6948    ac_status=$?
6949    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 +  (exit $ac_status); }; } &&
6951 +         { ac_try='test -s conftest$ac_exeext'
6952 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 +  (eval $ac_try) 2>&5
6954 +  ac_status=$?
6955 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956    (exit $ac_status); }; }; then
6957    ac_cv_lib_mkl_vslNewStream=yes
6958   else
# Line 6632 | Line 6961 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.
6961  
6962   ac_cv_lib_mkl_vslNewStream=no
6963   fi
6964 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6964 > rm -f conftest.err conftest.$ac_objext \
6965 >      conftest$ac_exeext conftest.$ac_ext
6966   LIBS=$ac_check_lib_save_LIBS
6967   fi
6968   echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5
# Line 6677 | Line 7007 | fi;
7007  
7008  
7009  
6680 # Check whether --with-mpi_f90_mods or --without-mpi_f90_mods was given.
6681 if test "${with_mpi_f90_mods+set}" = set; then
6682  withval="$with_mpi_f90_mods"
6683  mpi_f90_mods="$withval"
6684 else
6685  mpi_f90_mods="/usr/local/include/f90choice"
6686 fi;
7010  
6688  echo "$as_me:$LINENO: checking for MPI F90 modules" >&5
6689 echo $ECHO_N "checking for MPI F90 modules... $ECHO_C" >&6
6690
6691
6692  ac_ext=f90
6693 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6694 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6695 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6696
6697  ac_save_F90FLAGS=$F90FLAGS
6698  if test "$mpi_f90_mods"; then
6699  F90FLAGS="${F90FLAGS} -I${mpi_f90_mods}"
6700 fi
6701
6702    cat >conftest.$ac_ext <<_ACEOF
6703
6704
6705 program main
6706
6707 use mpi
6708 integer :: ierr
6709 call MPI_Init(ierr)
6710
6711
6712 end program main
6713
6714 _ACEOF
6715 rm -f conftest.$ac_objext
6716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6717  (eval $ac_compile) 2>&5
6718  ac_status=$?
6719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720  (exit $ac_status); } &&
6721         { ac_try='test -s conftest.$ac_objext'
6722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723  (eval $ac_try) 2>&5
6724  ac_status=$?
6725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726  (exit $ac_status); }; }; then
6727  HAVE_MPI_MOD=1
6728 else
6729  echo "$as_me: failed program was:" >&5
6730 sed 's/^/| /' conftest.$ac_ext >&5
6731
6732 HAVE_MPI_MOD=0
6733 fi
6734 rm -f conftest.$ac_objext conftest.$ac_ext
6735
6736  F90FLAGS=$ac_save_F90FLAGS
6737  ac_ext=f90
6738 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6739 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6740 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6741
6742
6743  if test "$HAVE_MPI_MOD" = 1; then
6744    echo "$as_me:$LINENO: result: yes" >&5
6745 echo "${ECHO_T}yes" >&6
6746
6747 cat >>confdefs.h <<\_ACEOF
6748 #define MPI_MOD 1
6749 _ACEOF
6750
6751    MPI_F90_MODS="-I${mpi_f90_mods}"
6752
6753    # The library name:
6754    if test -z "$MPI_LIB" ; then
6755       MPI_LIBNAME=-lmpich
6756    else
6757       MPI_LIBNAME="$MPI_LIB"
6758    fi
6759    if test -z "$MPIMODLIBNAME" ; then
6760       MPIMODLIBNAME="${MPI_LIBNAME}f90"
6761    fi
6762
6763  else
6764    echo "$as_me:$LINENO: result: no" >&5
6765 echo "${ECHO_T}no" >&6
6766    { { echo "$as_me:$LINENO: error: Couldn't locate MPI F90 Modules" >&5
6767 echo "$as_me: error: Couldn't locate MPI F90 Modules" >&2;}
6768   { (exit 1); exit 1; }; }
6769  fi
6770
6771
6772
6773
6774
7011   OBJEXT=".$OBJEXT"
7012  
7013   OOPSE=oopse
# Line 6795 | Line 7031 | SUBDIRS="libBASS libmdtools src forceFields samples ut
7031  
7032   MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
7033  
7034 < SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps"
7034 > SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps third-party"
7035  
7036   CFLAGS=${CFLAGS-""}
7037   CXXFLAGS=${CXXFLAGS-""}
# Line 6803 | Line 7039 | OPTIMIZE=${OPTIMIZE-"-O"}
7039   FFLAGS=${FFLAGS-""}
7040   F90FLAGS=${F90FLAGS-""}
7041   LDFLAGS=${LDFLAGS-""}
6806 OPTIMIZE=${OPTIMIZE-"-O"}
7042   DEBUG=${DEBUG-"-g"}
7043  
7044   case $debug in
7045 <  true)
6811 <     CFLAGS="$DEBUG $CFLAGS"
6812 <     CXXFLAGS="$DEBUG $CXXFLAGS"
7045 >  1)
7046       FFLAGS="$DEBUG $FFLAGS"
7047       F90FLAGS="$DEBUG $F90FLAGS"
7048       ;;
7049    *)
6817     CFLAGS="$OPTIMIZE $CFLAGS"
6818     CXXFLAGS="$OPTIMIZE $CXXFLAGS"
6819     FFLAGS="$OPTIMIZE $FFLAGS"
6820     F90FLAGS="$OPTIMIZE $F90FLAGS"
7050       ;;
7051   esac
7052  
# Line 6839 | Line 7068 | esac
7068  
7069            ac_config_headers="$ac_config_headers libmdtools/config.h"
7070  
7071 <                                                                                                                                                      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"
7071 >                                                                                                                                                                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"
7072  
7073  
7074   cat >confcache <<\_ACEOF
# Line 6870 | Line 7099 | _ACEOF
7099        # `set' does not quote correctly, so add quotes (double-quote
7100        # substitution turns \\\\ into \\, and sed turns \\ into \).
7101        sed -n \
7102 <        "s/'/'\\\\''/g;
7103 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7102 >        "s/'/'\\\\''/g;
7103 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7104        ;;
7105      *)
7106        # `set' quotes correctly as required by POSIX, so do not add quotes.
7107        sed -n \
7108 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7108 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7109        ;;
7110      esac;
7111   } |
# Line 6906 | Line 7135 | if test "x$srcdir" = x.; then
7135   # trailing colons and then remove the whole line if VPATH becomes empty
7136   # (actually we leave an empty line to preserve line numbers).
7137   if test "x$srcdir" = x.; then
7138 <  ac_vpsub='/^[         ]*VPATH[        ]*=/{
7138 >  ac_vpsub='/^[  ]*VPATH[        ]*=/{
7139   s/:*\$(srcdir):*/:/;
7140   s/:*\${srcdir}:*/:/;
7141   s/:*@srcdir@:*/:/;
7142 < s/^\([^=]*=[    ]*\):*/\1/;
7142 > s/^\([^=]*=[     ]*\):*/\1/;
7143   s/:*$//;
7144 < s/^[^=]*=[      ]*$//;
7144 > s/^[^=]*=[       ]*$//;
7145   }'
7146   fi
7147  
# Line 6923 | Line 7152 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && conti
7152   for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7153    # 1. Remove the extension, and $U if already installed.
7154    ac_i=`echo "$ac_i" |
7155 <         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7155 >         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7156    # 2. Add them.
7157    ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7158    ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
# Line 6967 | Line 7196 | fi
7196   elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7197    set -o posix
7198   fi
7199 + DUALCASE=1; export DUALCASE # for MKS sh
7200  
7201   # Support unset when possible.
7202 < if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7202 > if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7203    as_unset=unset
7204   else
7205    as_unset=false
# Line 6988 | Line 7218 | do
7218    LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7219    LC_TELEPHONE LC_TIME
7220   do
7221 <  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7221 >  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7222      eval $as_var=C; export $as_var
7223    else
7224      $as_unset $as_var
# Line 7167 | Line 7397 | else
7397   if mkdir -p . 2>/dev/null; then
7398    as_mkdir_p=:
7399   else
7400 +  test -d ./-p && rmdir ./-p
7401    as_mkdir_p=false
7402   fi
7403  
7404   as_executable_p="test -f"
7405  
7406   # Sed expression to map a string onto a valid CPP name.
7407 < as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7407 > as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7408  
7409   # Sed expression to map a string onto a valid variable name.
7410 < as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7410 > as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7411  
7412  
7413   # IFS
# Line 7203 | Line 7434 | generated by GNU Autoconf 2.57.  Invocation command li
7434   cat >&5 <<_CSEOF
7435  
7436   This file was extended by OOPSE $as_me 1.0, which was
7437 < generated by GNU Autoconf 2.57.  Invocation command line was
7437 > generated by GNU Autoconf 2.59.  Invocation command line was
7438  
7439    CONFIG_FILES    = $CONFIG_FILES
7440    CONFIG_HEADERS  = $CONFIG_HEADERS
# Line 7247 | Line 7478 | Usage: $0 [OPTIONS] [FILE]...
7478    -d, --debug      don't remove temporary files
7479        --recheck    update $as_me by reconfiguring in the same conditions
7480    --file=FILE[:TEMPLATE]
7481 <                   instantiate the configuration file FILE
7481 >                   instantiate the configuration file FILE
7482    --header=FILE[:TEMPLATE]
7483 <                   instantiate the configuration header FILE
7483 >                   instantiate the configuration header FILE
7484  
7485   Configuration files:
7486   $config_files
# Line 7263 | Line 7494 | configured by $0, generated by GNU Autoconf 2.57,
7494   cat >>$CONFIG_STATUS <<_ACEOF
7495   ac_cs_version="\\
7496   OOPSE config.status 1.0
7497 < configured by $0, generated by GNU Autoconf 2.57,
7497 > configured by $0, generated by GNU Autoconf 2.59,
7498    with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7499  
7500 < Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7270 < Free Software Foundation, Inc.
7500 > Copyright (C) 2003 Free Software Foundation, Inc.
7501   This config.status script is free software; the Free Software Foundation
7502   gives unlimited permission to copy, distribute and modify it."
7503   srcdir=$srcdir
# Line 7375 | Line 7605 | do
7605    "forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
7606    "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
7607    "staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;;
7608 +  "third-party/Makefile" ) CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
7609    "samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
7610    "samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
7611    "samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
# Line 7467 | Line 7698 | s,@DEBUG@,$DEBUG,;t t
7698   s,@ECHO_T@,$ECHO_T,;t t
7699   s,@LIBS@,$LIBS,;t t
7700   s,@PROGNAME@,$PROGNAME,;t t
7701 < s,@DEBUG@,$DEBUG,;t t
7701 > s,@debug@,$debug,;t t
7702   s,@build@,$build,;t t
7703   s,@build_cpu@,$build_cpu,;t t
7704   s,@build_vendor@,$build_vendor,;t t
# Line 7486 | Line 7717 | s,@F90@,$F90,;t t
7717   s,@CXX@,$CXX,;t t
7718   s,@CXXFLAGS@,$CXXFLAGS,;t t
7719   s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7720 + s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
7721 + s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
7722   s,@F90@,$F90,;t t
7723   s,@F90FLAGS@,$F90FLAGS,;t t
7724   s,@ac_ct_F90@,$ac_ct_F90,;t t
7725   s,@PREPFLAG@,$PREPFLAG,;t t
7726   s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
7727 + s,@F90LIBS@,$F90LIBS,;t t
7728 + s,@F90_FUNC@,$F90_FUNC,;t t
7729 + s,@F90_FUNC_@,$F90_FUNC_,;t t
7730 + s,@MOD@,$MOD,;t t
7731 + s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
7732 + s,@MODDIRFLAG@,$MODDIRFLAG,;t t
7733 + s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
7734   s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7735   s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7736   s,@INSTALL_DATA@,$INSTALL_DATA,;t t
# Line 7503 | Line 7743 | s,@F90LIBS@,$F90LIBS,;t t
7743   s,@LEXLIB@,$LEXLIB,;t t
7744   s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7745   s,@AR@,$AR,;t t
7746 < s,@F90LIBS@,$F90LIBS,;t t
7507 < s,@F90_FUNC@,$F90_FUNC,;t t
7508 < s,@F90_FUNC_@,$F90_FUNC_,;t t
7509 < s,@mpi_dir@,$mpi_dir,;t t
7746 > s,@mpi@,$mpi,;t t
7747   s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t
7748   s,@MPI_INC@,$MPI_INC,;t t
7749   s,@MPI_LIB@,$MPI_LIB,;t t
7513 s,@MPIF77@,$MPIF77,;t t
7514 s,@MPIF90@,$MPIF90,;t t
7515 s,@MPILIBS@,$MPILIBS,;t t
7750   s,@CPP@,$CPP,;t t
7751   s,@EGREP@,$EGREP,;t t
7752   s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t
# Line 7523 | Line 7757 | s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
7757   s,@MKL_LIB@,$MKL_LIB,;t t
7758   s,@MKL_INC@,$MKL_INC,;t t
7759   s,@HAVE_MKL@,$HAVE_MKL,;t t
7526 s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
7527 s,@MPIMODLIBNAME@,$MPIMODLIBNAME,;t t
7760   s,@BATEXT@,$BATEXT,;t t
7761   s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7762   s,@OOPSE@,$OOPSE,;t t
# Line 7562 | Line 7794 | _ACEOF
7794        (echo ':t
7795    /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7796        if test -z "$ac_sed_cmds"; then
7797 <        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7797 >        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7798        else
7799 <        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7799 >        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7800        fi
7801        ac_sed_frag=`expr $ac_sed_frag + 1`
7802        ac_beg=$ac_end
# Line 7582 | Line 7814 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" =
7814    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7815    case $ac_file in
7816    - | *:- | *:-:* ) # input from stdin
7817 <        cat >$tmp/stdin
7818 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7819 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7817 >        cat >$tmp/stdin
7818 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7819 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7820    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7821 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7821 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7822    * )   ac_file_in=$ac_file.in ;;
7823    esac
7824  
7825    # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7826    ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7827   $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7828 <         X"$ac_file" : 'X\(//\)[^/]' \| \
7829 <         X"$ac_file" : 'X\(//\)$' \| \
7830 <         X"$ac_file" : 'X\(/\)' \| \
7831 <         .     : '\(.\)' 2>/dev/null ||
7828 >         X"$ac_file" : 'X\(//\)[^/]' \| \
7829 >         X"$ac_file" : 'X\(//\)$' \| \
7830 >         X"$ac_file" : 'X\(/\)' \| \
7831 >         .     : '\(.\)' 2>/dev/null ||
7832   echo X"$ac_file" |
7833      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7834            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
# Line 7612 | Line 7844 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \|
7844        as_dirs="$as_dir $as_dirs"
7845        as_dir=`(dirname "$as_dir") 2>/dev/null ||
7846   $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7847 <         X"$as_dir" : 'X\(//\)[^/]' \| \
7848 <         X"$as_dir" : 'X\(//\)$' \| \
7849 <         X"$as_dir" : 'X\(/\)' \| \
7850 <         .     : '\(.\)' 2>/dev/null ||
7847 >         X"$as_dir" : 'X\(//\)[^/]' \| \
7848 >         X"$as_dir" : 'X\(//\)$' \| \
7849 >         X"$as_dir" : 'X\(/\)' \| \
7850 >         .     : '\(.\)' 2>/dev/null ||
7851   echo X"$as_dir" |
7852      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7853            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
# Line 7653 | Line 7885 | esac
7885      ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7886      ac_top_srcdir=$ac_top_builddir$srcdir ;;
7887   esac
7656 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7657 # absolute.
7658 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7659 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7660 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7661 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7888  
7889 + # Do not use `cd foo && pwd` to compute absolute paths, because
7890 + # the directories may not exist.
7891 + case `pwd` in
7892 + .) ac_abs_builddir="$ac_dir";;
7893 + *)
7894 +  case "$ac_dir" in
7895 +  .) ac_abs_builddir=`pwd`;;
7896 +  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7897 +  *) ac_abs_builddir=`pwd`/"$ac_dir";;
7898 +  esac;;
7899 + esac
7900 + case $ac_abs_builddir in
7901 + .) ac_abs_top_builddir=${ac_top_builddir}.;;
7902 + *)
7903 +  case ${ac_top_builddir}. in
7904 +  .) ac_abs_top_builddir=$ac_abs_builddir;;
7905 +  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7906 +  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7907 +  esac;;
7908 + esac
7909 + case $ac_abs_builddir in
7910 + .) ac_abs_srcdir=$ac_srcdir;;
7911 + *)
7912 +  case $ac_srcdir in
7913 +  .) ac_abs_srcdir=$ac_abs_builddir;;
7914 +  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7915 +  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7916 +  esac;;
7917 + esac
7918 + case $ac_abs_builddir in
7919 + .) ac_abs_top_srcdir=$ac_top_srcdir;;
7920 + *)
7921 +  case $ac_top_srcdir in
7922 +  .) ac_abs_top_srcdir=$ac_abs_builddir;;
7923 +  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7924 +  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7925 +  esac;;
7926 + esac
7927  
7928 +
7929    case $INSTALL in
7930    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7931    *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
# Line 7680 | Line 7945 | echo "$as_me: creating $ac_file" >&6;}
7945      configure_input="$ac_file.  "
7946    fi
7947    configure_input=$configure_input"Generated from `echo $ac_file_in |
7948 <                                     sed 's,.*/,,'` by configure."
7948 >                                     sed 's,.*/,,'` by configure."
7949  
7950    # First look for the input files in the build tree, otherwise in the
7951    # src tree.
# Line 7689 | Line 7954 | echo "$as_me: creating $ac_file" >&6;}
7954        case $f in
7955        -) echo $tmp/stdin ;;
7956        [\\/$]*)
7957 <         # Absolute (can't be DOS-style, as IFS=:)
7958 <         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7957 >         # Absolute (can't be DOS-style, as IFS=:)
7958 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7959   echo "$as_me: error: cannot find input file: $f" >&2;}
7960     { (exit 1); exit 1; }; }
7961 <         echo $f;;
7961 >         echo "$f";;
7962        *) # Relative
7963 <         if test -f "$f"; then
7964 <           # Build tree
7965 <           echo $f
7966 <         elif test -f "$srcdir/$f"; then
7967 <           # Source tree
7968 <           echo $srcdir/$f
7969 <         else
7970 <           # /dev/null tree
7971 <           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7963 >         if test -f "$f"; then
7964 >           # Build tree
7965 >           echo "$f"
7966 >         elif test -f "$srcdir/$f"; then
7967 >           # Source tree
7968 >           echo "$srcdir/$f"
7969 >         else
7970 >           # /dev/null tree
7971 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7972   echo "$as_me: error: cannot find input file: $f" >&2;}
7973     { (exit 1); exit 1; }; }
7974 <         fi;;
7974 >         fi;;
7975        esac
7976      done` || { (exit 1); exit 1; }
7977   _ACEOF
# Line 7748 | Line 8013 | ac_dA='s,^\([  ]*\)#\([        ]*define[       ][      ]*\)'
8013   # NAME is the cpp macro being defined and VALUE is the value it is being given.
8014   #
8015   # ac_d sets the value in "#define NAME VALUE" lines.
8016 < ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
8017 < ac_dB='[        ].*$,\1#\2'
8016 > ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8017 > ac_dB='[         ].*$,\1#\2'
8018   ac_dC=' '
8019   ac_dD=',;t'
8020   # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8021 < ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8021 > ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8022   ac_uB='$,\1#\2define\3'
8023   ac_uC=' '
8024   ac_uD=',;t'
# Line 7762 | Line 8027 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file"
8027    # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8028    case $ac_file in
8029    - | *:- | *:-:* ) # input from stdin
8030 <        cat >$tmp/stdin
8031 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8032 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8030 >        cat >$tmp/stdin
8031 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8032 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8033    *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8034 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8034 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8035    * )   ac_file_in=$ac_file.in ;;
8036    esac
8037  
# Line 7780 | Line 8045 | echo "$as_me: creating $ac_file" >&6;}
8045        case $f in
8046        -) echo $tmp/stdin ;;
8047        [\\/$]*)
8048 <         # Absolute (can't be DOS-style, as IFS=:)
8049 <         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8048 >         # Absolute (can't be DOS-style, as IFS=:)
8049 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8050   echo "$as_me: error: cannot find input file: $f" >&2;}
8051     { (exit 1); exit 1; }; }
8052 <         echo $f;;
8052 >         # Do quote $f, to prevent DOS paths from being IFS'd.
8053 >         echo "$f";;
8054        *) # Relative
8055 <         if test -f "$f"; then
8056 <           # Build tree
8057 <           echo $f
8058 <         elif test -f "$srcdir/$f"; then
8059 <           # Source tree
8060 <           echo $srcdir/$f
8061 <         else
8062 <           # /dev/null tree
8063 <           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8055 >         if test -f "$f"; then
8056 >           # Build tree
8057 >           echo "$f"
8058 >         elif test -f "$srcdir/$f"; then
8059 >           # Source tree
8060 >           echo "$srcdir/$f"
8061 >         else
8062 >           # /dev/null tree
8063 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8064   echo "$as_me: error: cannot find input file: $f" >&2;}
8065     { (exit 1); exit 1; }; }
8066 <         fi;;
8066 >         fi;;
8067        esac
8068      done` || { (exit 1); exit 1; }
8069    # Remove the trailing spaces.
8070 <  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
8070 >  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
8071  
8072   _ACEOF
8073  
# Line 7824 | Line 8090 | s,^[   ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*
8090   s,[\\$`],\\&,g
8091   t clear
8092   : clear
8093 < s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8093 > s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8094   t end
8095 < s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8095 > s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8096   : end
8097   _ACEOF
8098   # If some macros were called several times there might be several times
# Line 7840 | Line 8106 | s,^[   ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/*
8106   # example, in the case of _POSIX_SOURCE, which is predefined and required
8107   # on some systems where configure will not decide to define it.
8108   cat >>conftest.undefs <<\_ACEOF
8109 < s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8109 > s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8110   _ACEOF
8111  
8112   # Break up conftest.defines because some shells have a limit on the size
8113   # of here documents, and old seds have small limits too (100 cmds).
8114   echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8115 < echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8115 > echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8116   echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8117   echo '  :' >>$CONFIG_STATUS
8118   rm -f conftest.tail
# Line 7855 | Line 8121 | do
8121    # Write a limited-size here document to $tmp/defines.sed.
8122    echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8123    # Speed up: don't consider the non `#define' lines.
8124 <  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
8124 >  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
8125    # Work around the forget-to-reset-the-flag bug.
8126    echo 't clr' >>$CONFIG_STATUS
8127    echo ': clr' >>$CONFIG_STATUS
# Line 7882 | Line 8148 | do
8148    # Write a limited-size here document to $tmp/undefs.sed.
8149    echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8150    # Speed up: don't consider the non `#undef'
8151 <  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8151 >  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
8152    # Work around the forget-to-reset-the-flag bug.
8153    echo 't clr' >>$CONFIG_STATUS
8154    echo ': clr' >>$CONFIG_STATUS
# Line 7916 | Line 8182 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \|
8182      else
8183        ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8184   $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8185 <         X"$ac_file" : 'X\(//\)[^/]' \| \
8186 <         X"$ac_file" : 'X\(//\)$' \| \
8187 <         X"$ac_file" : 'X\(/\)' \| \
8188 <         .     : '\(.\)' 2>/dev/null ||
8185 >         X"$ac_file" : 'X\(//\)[^/]' \| \
8186 >         X"$ac_file" : 'X\(//\)$' \| \
8187 >         X"$ac_file" : 'X\(/\)' \| \
8188 >         .     : '\(.\)' 2>/dev/null ||
8189   echo X"$ac_file" |
8190      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8191            /^X\(\/\/\)[^/].*/{ s//\1/; q; }
# Line 7935 | Line 8201 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \|
8201        as_dirs="$as_dir $as_dirs"
8202        as_dir=`(dirname "$as_dir") 2>/dev/null ||
8203   $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8204 <         X"$as_dir" : 'X\(//\)[^/]' \| \
8205 <         X"$as_dir" : 'X\(//\)$' \| \
8206 <         X"$as_dir" : 'X\(/\)' \| \
8207 <         .     : '\(.\)' 2>/dev/null ||
8204 >         X"$as_dir" : 'X\(//\)[^/]' \| \
8205 >         X"$as_dir" : 'X\(//\)$' \| \
8206 >         X"$as_dir" : 'X\(/\)' \| \
8207 >         .     : '\(.\)' 2>/dev/null ||
8208   echo X"$as_dir" |
8209      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8210            /^X\(\/\/\)[^/].*/{ s//\1/; q; }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines