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

Comparing trunk/OOPSE/configure (file contents):
Revision 791 by mmeineke, Mon Sep 29 22:05:56 2003 UTC vs.
Revision 896 by chuckv, Mon Jan 5 22:18:40 2004 UTC

# Line 311 | Line 311 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKA
311   # include <unistd.h>
312   #endif"
313  
314 < 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'
314 > 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_dir MPI_LIBDIR MPI_INC MPI_LIB MPIF77 MPIF90 MPILIBS MPI_F90_MODS MPIMODLIBNAME EGREP CPP 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'
315   ac_subst_files=''
316  
317   # Initialize some variables set by options.
# Line 877 | Line 877 | Optional Packages:
877    --with-mpi_dir=MPIDIR   give the path for MPI /usr/local
878    --with-mpi-libdir=dir  give the path for MPI-libraries MPI_DIR/lib
879    --with-mpi_inc=dir  give the path for MPI-include-files MPI_DIR/include
880 +  --with-mpi_f90_mods=<dir>
881 +                          Location where MPI f90 modules are installed
882    --with-sprng_prefix=PREFIX
883                            Prefix where SPRNG is installed
884 <  --with-sprng_lib_prefix=PREFIX  SPRNG library directory
885 <  --with-sprng_include_prefix=PREFIX
884 >  --with-sprng-libdir=PREFIX  SPRNG library directory
885 >  --with-sprng-include=PREFIX
886                            SPRNG include directory
887    --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
888  
889   Some influential environment variables:
890    CC          C compiler command
# Line 1828 | Line 1828 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1828  
1829  
1830  
1831 # what should I build?
1831  
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;
1832  
1833 +
1834 +
1835 +
1836 +
1837 +
1838 +
1839   # set program name
1840   PROGNAME="oopse"
1841  
1842  
1843 + # there are two ways to do debugging.  One with the --enable-debug flag
1844 + # and one using the DEBUG environment variable
1845 +
1846 + debug=0
1847 + # Check whether --enable-debug or --disable-debug was given.
1848 + if test "${enable_debug+set}" = set; then
1849 +  enableval="$enable_debug"
1850 +  debug=1
1851 + fi;
1852   if test "${DEBUG}"; then
1853  
1854   cat >>confdefs.h <<\_ACEOF
1855 < #define DEBUG 1
1855 > #define debug 1
1856   _ACEOF
1857  
1858    msg="$msg, debug mode"
# Line 2556 | Line 2565 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
2565   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2559
2560
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
2568  
2569  
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
2570   ac_ext=cc
2571   ac_cpp='$CXXCPP $CPPFLAGS'
2572   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2575   if test -n "$ac_tool_prefix"; then
2576 <  for ac_prog in $CCC icpc icc xlC g++ c++
2576 >  for ac_prog in $CCC icpc icc xlC CC g++ c++
2577    do
2578      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2579   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 3037 | Line 2615 | if test -z "$CXX"; then
2615   fi
2616   if test -z "$CXX"; then
2617    ac_ct_CXX=$CXX
2618 <  for ac_prog in $CCC icpc icc xlC g++ c++
2618 >  for ac_prog in $CCC icpc icc xlC CC g++ c++
2619   do
2620    # Extract the first word of "$ac_prog", so it can be a program name with args.
2621   set dummy $ac_prog; ac_word=$2
# Line 3308 | Line 2886 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
2886   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888   ac_compiler_gnu=$ac_cv_c_compiler_gnu
3311
3312
3313
3314
3315
3316 # Try to determine "good" native compiler flags if none specified on command
3317 # line
3318 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
2889  
2890 <  # use default flags for gcc on all systems
2891 <  if test $ac_cv_c_compiler_gnu = yes; then
2892 <     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
2893 <  fi
2894 <
2895 <  # test for gcc-specific flags:
2896 <  if test $ac_cv_c_compiler_gnu = yes; then
2897 <    # -malign-double for x86 systems
2898 <
2899 <
2900 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
2901 < echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
3371 < if test "${ac_align_double+set}" = set; then
3372 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3373 < else
3374 <  echo 'void f(){}' > conftest.cpp
3375 < if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
3376 <        ac_align_double=yes
3377 < else
3378 <        ac_align_double=no
3379 < fi
3380 < rm -f conftest*
3381 <
3382 < fi
3383 < echo "$as_me:$LINENO: result: $ac_align_double" >&5
3384 < echo "${ECHO_T}$ac_align_double" >&6
3385 < if test "$ac_align_double" = yes; then
3386 <        :
3387 <        CXXFLAGS="$CXXFLAGS -malign-double"
3388 < else
3389 <        :
3390 <
3391 < fi
3392 <
3393 <    # -fstrict-aliasing for gcc-2.95+
3394 <
3395 <
3396 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
3397 < echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
3398 < if test "${ac_fstrict_aliasing+set}" = set; then
3399 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3400 < else
3401 <  echo 'void f(){}' > conftest.cpp
3402 < if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
3403 <        ac_fstrict_aliasing=yes
3404 < else
3405 <        ac_fstrict_aliasing=no
3406 < fi
3407 < rm -f conftest*
3408 <
3409 < 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 <
3418 < fi
3419 <
2890 > OOPSE_TEMPLATE_FLAGS=""
2891 > if test $ac_cv_cxx_compiler_gnu = no; then
2892 >  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5
2893 > echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6
2894 >  echo 'void f(){}' > conftest.cc
2895 >  if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
2896 >    echo "$as_me:$LINENO: result: yes" >&5
2897 > echo "${ECHO_T}yes" >&6
2898 >    OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink"
2899 >  else
2900 >    echo "$as_me:$LINENO: result: no" >&5
2901 > echo "${ECHO_T}no" >&6
2902    fi
2903 <
2904 <  CPU_FLAGS=""
2905 <  if test "$GCC" = "yes"; then
2906 <                  case "${host_cpu}" in
2907 <          i586*)
2908 <
2909 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
2910 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
2911 < if test "${ac_cpu_pentium+set}" = set; then
2912 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2913 < 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
2903 >  rm -f conftest*
2904 >  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5
2905 > echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6
2906 >  echo 'void f(){}' > conftest.cc
2907 >  if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
2908 >    echo "$as_me:$LINENO: result: yes" >&5
2909 > echo "${ECHO_T}yes" >&6
2910 >    OOPSE_TEMPLATE_FLAGS="-instances=static"
2911 >  else
2912 >    echo "$as_me:$LINENO: result: no" >&5
2913 > echo "${ECHO_T}no" >&6
2914    fi
2915 <
2916 <  if test -n "$CPU_FLAGS"; then
2917 <        CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
2915 >  rm -f conftest*
2916 >  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5
2917 > echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6
2918 >  echo 'void f(){}' > conftest.cc
2919 >  if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then
2920 >    echo "$as_me:$LINENO: result: yes" >&5
2921 > echo "${ECHO_T}yes" >&6
2922 >    OOPSE_TEMPLATE_FLAGS="-pto"
2923 >  else
2924 >    echo "$as_me:$LINENO: result: no" >&5
2925 > echo "${ECHO_T}no" >&6
2926    fi
2927 <
2928 <  if test -z "$CXXFLAGS"; then
2929 <        echo ""
2930 <        echo "**********************************************************"
2931 <        echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
2932 <        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
2933 <        echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *"
2934 <        echo "**********************************************************"
2935 <        echo ""
2936 <        CXXFLAGS="-O3"
2927 >  rm -f conftest*
2928 >  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5
2929 > echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6
2930 >  echo 'void f(){}' > conftest.cc
2931 >  if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
2932 >    echo "$as_me:$LINENO: result: yes" >&5
2933 > echo "${ECHO_T}yes" >&6
2934 >    EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std"
2935 >  else
2936 >    echo "$as_me:$LINENO: result: no" >&5
2937 > echo "${ECHO_T}no" >&6
2938    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
2939   fi
3710 rm -f conftest*
2940  
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        :
2941  
3718 else
3719        :
2942  
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=""
2943  
3730 fi
3731
3732
3733 fi
3734
2944   ac_ext=f90
2945   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
2946   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
# Line 3880 | Line 3089 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3089  
3090  
3091  
3092 < # Try to determine "good" native compiler flags if none specified on command
3093 < # line
3092 > # Try to determine native compiler flags that allow us to use F90 suffix
3093 > # for preprocessed f90 source.
3094  
3095 < if test "$ac_test_F90FLAGS" != "set"; then
3096 <  F90FLAGS=""
3095 > if test "$ac_test_PREPFLAG" != "set"; then
3096 >  PREPFLAG=""
3097    case "${host_cpu}-${host_os}" in
3098  
3099    *linux*) if test "$F90" = ifc; then
3100 <                    F90FLAGS="-O"
3100 >                    PREPFLAG="-fpp1 "
3101                  fi;;
3102 <   rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3103 <                    F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
3102 >  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3103 >                    PREPFLAG="-qsuffix=cpp=F90 "
3104                  fi;;
3105 <   powerpc*-aix*)
3105 >  *darwin*)
3106          if test "$F90" = f90 -o "$F90" = xlf90; then
3107 <                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 "*******************************************************"
3107 >                PREPFLAG="-qsuffix=cpp=F90 "
3108          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;;
3109    esac
3110  
3111 <  if test -n "$CPU_FLAGS"; then
3112 <        F90FLAGS="$F90FLAGS $CPU_FLAGS"
3111 >  if test -z "$PREPFLAG"; then
3112 >        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
3113 > echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
3114 >        PREPFLAG=""
3115    fi
3116  
3117 <  if test -z "$F90FLAGS"; then
3118 <        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
3117 >  echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3118 > echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3119  
3120  
3121 < 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
3121 >  ac_ext=f90
3122   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3123   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3125  
3126 < echo 'program main' > conftest.$ac_ext
3127 < echo 'end program main' >> conftest.$ac_ext
3128 < ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
3129 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3130 <  (eval $ac_compile) 2>&5
3131 <  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
3126 >  ac_save_ext=$ac_ext
3127 >  ac_ext=F90
3128 >  ac_save_F90FLAGS=$F90FLAGS
3129 >
3130 >  if test "$PREPFLAG"; then
3131 >  F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
3132   fi
3965 rm -f conftest*
3966 ac_ext=c
3967 ac_cpp='$CPP $CPPFLAGS'
3968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133  
3134 +    cat >conftest.$ac_ext <<_ACEOF
3135  
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        :
3136  
3137 < else
3138 <        :
3139 <
3140 <        echo ""
3141 <        echo "**********************************************************"
3142 <        echo "* WARNING: The guessed F90FLAGS don't seem to work with  *"
3143 <        echo "* your compiler.                                         *"
3144 <        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
3145 <        echo "**********************************************************"
3146 <        echo ""
3147 <        F90FLAGS=""
3148 <
3149 < fi
3150 <
3151 <
3152 < fi
3153 <
3154 <
3155 <
3156 <
3157 <
3158 < # Try to determine native compiler flags that allow us to use F90 suffix
3159 < # for preprocessed f90 source.
3160 <
3161 < if test "$ac_test_PREPFLAG" != "set"; then
3162 <  PREPFLAG=""
3163 <  case "${host_cpu}-${host_os}" in
3164 <
3165 <  *linux*) if test "$F90" = ifc; then
3166 <                    PREPFLAG="-fpp1 "
3167 <                fi;;
3168 <  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3169 <                    PREPFLAG="-qsuffix=cpp=F90 "
3170 <                fi;;
3171 <  *darwin*)
3172 <        if test "$F90" = f90 -o "$F90" = xlf90; then
3173 <                PREPFLAG="-qsuffix=cpp=F90 "
3174 <        fi;;
3175 <  esac
3176 <
3177 <  if test -z "$PREPFLAG"; then
3178 <        echo ""
3179 <        echo "**********************************************************"
3180 <        echo "* WARNING: Don't know the best PREPFLAG for this system  *"
3181 <        echo "* Use  make PREPFLAG=..., or edit the top level Makefile *"
3182 <        echo "* (otherwise, an empty PREPFLAG will be used)            *"
3183 <        echo "**********************************************************"
3184 <        echo ""
3185 <        PREPFLAG=""
3186 <  fi
3187 <
3188 <  echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3189 < echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3190 <
3191 <
3192 <  ac_ext=f90
3193 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3194 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3196 <
3197 <  ac_save_ext=$ac_ext
3198 <  ac_ext=F90
3199 <  ac_save_F90FLAGS=$F90FLAGS
3200 <
3201 <  if test "$PREPFLAG"; then
3202 <  F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
3203 < fi
3204 <
3205 <    cat >conftest.$ac_ext <<_ACEOF
3206 <
3207 <
3208 < program main
3209 <
3210 <  integer :: i
3211 <  i = 1
3212 <
3213 <
3214 < end program main
3215 <
3216 < _ACEOF
3217 < rm -f conftest.$ac_objext
3218 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219 <  (eval $ac_compile) 2>&5
3220 <  ac_status=$?
3221 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 <  (exit $ac_status); } &&
3223 <         { ac_try='test -s conftest.$ac_objext'
3224 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 <  (eval $ac_try) 2>&5
3226 <  ac_status=$?
3227 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 <  (exit $ac_status); }; }; then
3229 <  prepflagworks=1
3230 < else
3231 <  echo "$as_me: failed program was:" >&5
3232 < sed 's/^/| /' conftest.$ac_ext >&5
3233 <
3234 < prepflagworks=0
3235 < fi
3236 < rm -f conftest.$ac_objext conftest.$ac_ext
3237 <
3238 <  F90FLAGS=$ac_save_F90FLAGS
3239 <  ac_ext=$ac_save_ext
3240 <  ac_ext=c
3241 < ac_cpp='$CPP $CPPFLAGS'
3242 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
3245 <
3246 <
3247 <
3248 <  if test "$prepflagworks" = 1; then
3249 <    echo "$as_me:$LINENO: result: yes" >&5
3250 < echo "${ECHO_T}yes" >&6
3251 <
3252 <  else
3253 <    echo "$as_me:$LINENO: result: no" >&5
3254 < echo "${ECHO_T}no" >&6
3255 <    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3256 < echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3257 <   { (exit 1); exit 1; }; }
3258 <  fi
3259 < fi
3260 <
3261 <
3262 <
3263 <
3264 <
3265 < # Try to determine native compiler flags that allow us to use F90 suffix
3266 < # for preprocessed f90 source with -D type defines
3267 <
3268 < if test "$ac_test_PREPDEFFLAG" != "set"; then
3269 <  PREPDEFFLAG=""
3270 <  case "${host_cpu}-${host_os}" in
3271 <
3272 <  *linux*) if test "$F90" = ifc; then
3273 <                    PREPDEFFLAG=" "
3274 <                fi;;
3275 <  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3276 <                    PREPDEFFLAG="-WF,"
3277 <                fi;;
3278 <  *darwin*)
3279 <        if test "$F90" = f90 -o "$F90" = xlf90; then
3280 <                PREPDEFFLAG="-WF,"
3281 <        fi;;
3282 <  esac
3283 <
3284 <  if test -z "$PREPDEFFLAG"; then
3285 <        echo ""
3286 <        echo "*************************************************************"
3287 <        echo "* WARNING: Don't know the best PREPDEFFLAG for this system  *"
3288 <        echo "* Use  make PREPDEFFLAG=..., or edit the top level Makefile *"
3289 <        echo "* (otherwise, an empty PREPDEFFLAG will be used)            *"
3290 <        echo "*************************************************************"
3291 <        echo ""
3292 <        PREPDEFFLAG=" "
3293 <  fi
3294 <
3295 <  echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3296 < echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3297 <
3298 <
3299 <  ac_ext=f90
3300 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3301 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3303 <
3304 <  ac_save_ext=$ac_ext
3305 <  ac_ext=F90
3306 <  ac_save_F90FLAGS=$F90FLAGS
3307 <
3308 <  if test "$PREPDEFFLAG"; then
3309 <  F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
3310 < fi
3311 <
3312 <    cat >conftest.$ac_ext <<_ACEOF
3313 <
3314 <
3315 < program main
3316 <
3317 <  integer :: i
3318 < #ifdef TEST
3319 <  i = 1
3320 < #else
3321 <  choke me
3322 < #endif
3323 <
3324 <
3325 < end program main
3326 <
3327 < _ACEOF
3328 < rm -f conftest.$ac_objext
3329 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3330 <  (eval $ac_compile) 2>&5
3331 <  ac_status=$?
3332 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333 <  (exit $ac_status); } &&
3334 <         { ac_try='test -s conftest.$ac_objext'
3335 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3336 <  (eval $ac_try) 2>&5
3337 <  ac_status=$?
3338 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 <  (exit $ac_status); }; }; then
3340 <  prepdefflagworks=1
3341 < else
3342 <  echo "$as_me: failed program was:" >&5
3343 < sed 's/^/| /' conftest.$ac_ext >&5
3344 <
3345 < prepdefflagworks=0
3346 < fi
3347 < rm -f conftest.$ac_objext conftest.$ac_ext
3348 <
3349 <  F90FLAGS=$ac_save_F90FLAGS
3350 <  ac_ext=$ac_save_ext
3351 <  ac_ext=c
3352 < ac_cpp='$CPP $CPPFLAGS'
3353 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356 <
3357 <
3358 <
3359 <  if test "$prepdefflagworks" = 1; then
3360 <    echo "$as_me:$LINENO: result: yes" >&5
3361 < echo "${ECHO_T}yes" >&6
3362 <
3363 <  else
3364 <    echo "$as_me:$LINENO: result: no" >&5
3365 < echo "${ECHO_T}no" >&6
3366 <    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3367 < echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3368 <   { (exit 1); exit 1; }; }
3369 <  fi
3370 < fi
3371 <
3372 < # Find a good install program.  We prefer a C program (faster),
3373 < # so one script is as good as another.  But avoid the broken or
3374 < # incompatible versions:
3375 < # SysV /etc/install, /usr/sbin/install
3376 < # SunOS /usr/etc/install
3377 < # IRIX /sbin/install
3378 < # AIX /bin/install
3379 < # AmigaOS /C/install, which installs bootblocks on floppy discs
3380 < # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3381 < # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3382 < # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3383 < # ./install, which can be erroneously created by make from ./install.sh.
3384 < echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3385 < echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3386 < if test -z "$INSTALL"; then
3387 < if test "${ac_cv_path_install+set}" = set; then
3388 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3389 < else
3390 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 < for as_dir in $PATH
3392 < do
3393 <  IFS=$as_save_IFS
3394 <  test -z "$as_dir" && as_dir=.
3395 <  # Account for people who put trailing slashes in PATH elements.
3396 < case $as_dir/ in
3397 <  ./ | .// | /cC/* | \
3398 <  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3399 <  /usr/ucb/* ) ;;
3400 <  *)
3401 <    # OSF1 and SCO ODT 3.0 have their own names for install.
3402 <    # Don't use installbsd from OSF since it installs stuff as root
3403 <    # by default.
3404 <    for ac_prog in ginstall scoinst install; do
3405 <      for ac_exec_ext in '' $ac_executable_extensions; do
3406 <        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3407 <          if test $ac_prog = install &&
3408 <            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3409 <            # AIX install.  It has an incompatible calling convention.
3410 <            :
3411 <          elif test $ac_prog = install &&
3412 <            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3413 <            # program-specific install script used by HP pwplus--don't use.
3414 <            :
3415 <          else
3416 <            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3417 <            break 3
3418 <          fi
3419 <        fi
3420 <      done
3421 <    done
3422 <    ;;
3423 < esac
3424 < done
3425 <
3426 <
3427 < fi
3428 <  if test "${ac_cv_path_install+set}" = set; then
3429 <    INSTALL=$ac_cv_path_install
3430 <  else
3431 <    # As a last resort, use the slow shell script.  We don't cache a
3432 <    # path for INSTALL within a source directory, because that will
3433 <    # break other packages using the cache if that directory is
3434 <    # removed, or if the path is relative.
3435 <    INSTALL=$ac_install_sh
3436 <  fi
3437 < fi
3438 < echo "$as_me:$LINENO: result: $INSTALL" >&5
3439 < echo "${ECHO_T}$INSTALL" >&6
3440 <
3441 < # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3442 < # It thinks the first close brace ends the variable substitution.
3443 < test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3444 <
3445 < test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3446 <
3447 < test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3448 <
3449 < echo "$as_me:$LINENO: checking whether ln -s works" >&5
3450 < echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3451 < LN_S=$as_ln_s
3452 < if test "$LN_S" = "ln -s"; then
3453 <  echo "$as_me:$LINENO: result: yes" >&5
3454 < echo "${ECHO_T}yes" >&6
3455 < else
3456 <  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3457 < echo "${ECHO_T}no, using $LN_S" >&6
3458 < fi
3459 <
3460 < echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3461 < echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3462 < set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3463 < if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3464 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3465 < else
3466 <  cat >conftest.make <<\_ACEOF
3467 < all:
3468 <        @echo 'ac_maketemp="$(MAKE)"'
3469 < _ACEOF
3470 < # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3471 < eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3472 < if test -n "$ac_maketemp"; then
3473 <  eval ac_cv_prog_make_${ac_make}_set=yes
3474 < else
3475 <  eval ac_cv_prog_make_${ac_make}_set=no
3476 < fi
3477 < rm -f conftest.make
3478 < fi
3479 < if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3480 <  echo "$as_me:$LINENO: result: yes" >&5
3481 < echo "${ECHO_T}yes" >&6
3482 <  SET_MAKE=
3483 < else
3484 <  echo "$as_me:$LINENO: result: no" >&5
3485 < echo "${ECHO_T}no" >&6
3486 <  SET_MAKE="MAKE=${MAKE-make}"
3487 < fi
3488 <
3489 < if test -n "$ac_tool_prefix"; then
3490 <  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3491 < set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3492 < echo "$as_me:$LINENO: checking for $ac_word" >&5
3493 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3494 < if test "${ac_cv_prog_RANLIB+set}" = set; then
3495 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3496 < else
3497 <  if test -n "$RANLIB"; then
3498 <  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3499 < else
3500 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 < for as_dir in $PATH
3502 < do
3503 <  IFS=$as_save_IFS
3504 <  test -z "$as_dir" && as_dir=.
3505 <  for ac_exec_ext in '' $ac_executable_extensions; do
3506 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507 <    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3508 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 <    break 2
3510 <  fi
3511 < done
3512 < done
3513 <
3514 < fi
3515 < fi
3516 < RANLIB=$ac_cv_prog_RANLIB
3517 < if test -n "$RANLIB"; then
3518 <  echo "$as_me:$LINENO: result: $RANLIB" >&5
3519 < echo "${ECHO_T}$RANLIB" >&6
3520 < else
3521 <  echo "$as_me:$LINENO: result: no" >&5
3522 < echo "${ECHO_T}no" >&6
3523 < fi
3524 <
3525 < fi
3526 < if test -z "$ac_cv_prog_RANLIB"; then
3527 <  ac_ct_RANLIB=$RANLIB
3528 <  # Extract the first word of "ranlib", so it can be a program name with args.
3529 < set dummy ranlib; ac_word=$2
3530 < echo "$as_me:$LINENO: checking for $ac_word" >&5
3531 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3532 < if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3533 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3534 < else
3535 <  if test -n "$ac_ct_RANLIB"; then
3536 <  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3537 < else
3538 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 < for as_dir in $PATH
3540 < do
3541 <  IFS=$as_save_IFS
3542 <  test -z "$as_dir" && as_dir=.
3543 <  for ac_exec_ext in '' $ac_executable_extensions; do
3544 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3545 <    ac_cv_prog_ac_ct_RANLIB="ranlib"
3546 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 <    break 2
3548 <  fi
3549 < done
3550 < done
3551 <
3552 <  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3553 < fi
3554 < fi
3555 < ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3556 < if test -n "$ac_ct_RANLIB"; then
3557 <  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3558 < echo "${ECHO_T}$ac_ct_RANLIB" >&6
3559 < else
3560 <  echo "$as_me:$LINENO: result: no" >&5
3561 < echo "${ECHO_T}no" >&6
3562 < fi
3563 <
3564 <  RANLIB=$ac_ct_RANLIB
3565 < else
3566 <  RANLIB="$ac_cv_prog_RANLIB"
3567 < fi
3568 <
3569 < for ac_prog in 'bison -y' byacc
3570 < do
3571 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
3572 < set dummy $ac_prog; ac_word=$2
3573 < echo "$as_me:$LINENO: checking for $ac_word" >&5
3574 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3575 < if test "${ac_cv_prog_YACC+set}" = set; then
3576 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3577 < else
3578 <  if test -n "$YACC"; then
3579 <  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3580 < else
3581 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 < for as_dir in $PATH
3583 < do
3584 <  IFS=$as_save_IFS
3585 <  test -z "$as_dir" && as_dir=.
3586 <  for ac_exec_ext in '' $ac_executable_extensions; do
3587 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3588 <    ac_cv_prog_YACC="$ac_prog"
3589 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3590 <    break 2
3591 <  fi
3592 < done
3593 < done
3594 <
3595 < fi
3596 < fi
3597 < YACC=$ac_cv_prog_YACC
3598 < if test -n "$YACC"; then
3599 <  echo "$as_me:$LINENO: result: $YACC" >&5
3600 < echo "${ECHO_T}$YACC" >&6
3601 < else
3602 <  echo "$as_me:$LINENO: result: no" >&5
3603 < echo "${ECHO_T}no" >&6
3604 < fi
3605 <
3606 <  test -n "$YACC" && break
3607 < done
3608 < test -n "$YACC" || YACC="yacc"
3609 <
3610 <
3611 < for ac_prog in flex lex
3612 < do
3613 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
3614 < set dummy $ac_prog; ac_word=$2
3615 < echo "$as_me:$LINENO: checking for $ac_word" >&5
3616 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3617 < if test "${ac_cv_prog_LEX+set}" = set; then
3618 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3619 < else
3620 <  if test -n "$LEX"; then
3621 <  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3622 < else
3623 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 < for as_dir in $PATH
3625 < do
3626 <  IFS=$as_save_IFS
3627 <  test -z "$as_dir" && as_dir=.
3628 <  for ac_exec_ext in '' $ac_executable_extensions; do
3629 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3630 <    ac_cv_prog_LEX="$ac_prog"
3631 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 <    break 2
3633 <  fi
3634 < done
3635 < done
3636 <
3637 < fi
3638 < fi
3639 < LEX=$ac_cv_prog_LEX
3640 < if test -n "$LEX"; then
3641 <  echo "$as_me:$LINENO: result: $LEX" >&5
3642 < echo "${ECHO_T}$LEX" >&6
3643 < else
3644 <  echo "$as_me:$LINENO: result: no" >&5
3645 < echo "${ECHO_T}no" >&6
3646 < fi
3647 <
3648 <  test -n "$LEX" && break
3649 < done
3650 < test -n "$LEX" || LEX=":"
3651 <
3652 < if test -z "$LEXLIB"
3653 < then
3654 <  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3655 < echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3656 < if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3657 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3658 < else
3659 <  ac_check_lib_save_LIBS=$LIBS
3660 < LIBS="-lfl  $LIBS"
3661 < cat >conftest.$ac_ext <<_ACEOF
3662 < #line $LINENO "configure"
3663 < /* confdefs.h.  */
3664 < _ACEOF
3665 < cat confdefs.h >>conftest.$ac_ext
3666 < cat >>conftest.$ac_ext <<_ACEOF
3667 < /* end confdefs.h.  */
3668 <
3669 < /* Override any gcc2 internal prototype to avoid an error.  */
3670 < #ifdef __cplusplus
3671 < extern "C"
3672 < #endif
3673 < /* We use char because int might match the return type of a gcc2
3674 <   builtin and then its argument prototype would still apply.  */
3675 < char yywrap ();
3676 < int
3677 < main ()
3678 < {
3679 < yywrap ();
3680 <  ;
3681 <  return 0;
3682 < }
3683 < _ACEOF
3684 < rm -f conftest.$ac_objext conftest$ac_exeext
3685 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3686 <  (eval $ac_link) 2>&5
3687 <  ac_status=$?
3688 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 <  (exit $ac_status); } &&
3690 <         { ac_try='test -s conftest$ac_exeext'
3691 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692 <  (eval $ac_try) 2>&5
3693 <  ac_status=$?
3694 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 <  (exit $ac_status); }; }; then
3696 <  ac_cv_lib_fl_yywrap=yes
3697 < else
3698 <  echo "$as_me: failed program was:" >&5
3699 < sed 's/^/| /' conftest.$ac_ext >&5
3700 <
3701 < ac_cv_lib_fl_yywrap=no
3702 < fi
3703 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3704 < LIBS=$ac_check_lib_save_LIBS
3705 < fi
3706 < echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3707 < echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3708 < if test $ac_cv_lib_fl_yywrap = yes; then
3709 <  LEXLIB="-lfl"
3710 < else
3711 <  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3712 < echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3713 < if test "${ac_cv_lib_l_yywrap+set}" = set; then
3714 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3715 < else
3716 <  ac_check_lib_save_LIBS=$LIBS
3717 < LIBS="-ll  $LIBS"
3718 < cat >conftest.$ac_ext <<_ACEOF
3719 < #line $LINENO "configure"
3720 < /* confdefs.h.  */
3721 < _ACEOF
3722 < cat confdefs.h >>conftest.$ac_ext
3723 < cat >>conftest.$ac_ext <<_ACEOF
3724 < /* end confdefs.h.  */
3725 <
3726 < /* Override any gcc2 internal prototype to avoid an error.  */
3727 < #ifdef __cplusplus
3728 < extern "C"
3729 < #endif
3730 < /* We use char because int might match the return type of a gcc2
3731 <   builtin and then its argument prototype would still apply.  */
3732 < char yywrap ();
3733 < int
3734 < main ()
3735 < {
3736 < yywrap ();
3737 <  ;
3738 <  return 0;
3739 < }
3740 < _ACEOF
3741 < rm -f conftest.$ac_objext conftest$ac_exeext
3742 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3743 <  (eval $ac_link) 2>&5
3744 <  ac_status=$?
3745 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 <  (exit $ac_status); } &&
3747 <         { ac_try='test -s conftest$ac_exeext'
3748 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 <  (eval $ac_try) 2>&5
3750 <  ac_status=$?
3751 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 <  (exit $ac_status); }; }; then
3753 <  ac_cv_lib_l_yywrap=yes
3754 < else
3755 <  echo "$as_me: failed program was:" >&5
3756 < sed 's/^/| /' conftest.$ac_ext >&5
3757 <
3758 < ac_cv_lib_l_yywrap=no
3759 < fi
3760 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3761 < LIBS=$ac_check_lib_save_LIBS
3762 < fi
3763 < echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3764 < echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3765 < if test $ac_cv_lib_l_yywrap = yes; then
3766 <  LEXLIB="-ll"
3767 < fi
3768 <
3769 < fi
3770 <
3771 < fi
3772 <
3773 < if test "x$LEX" != "x:"; then
3774 <  echo "$as_me:$LINENO: checking lex output file root" >&5
3775 < echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3776 < if test "${ac_cv_prog_lex_root+set}" = set; then
3777 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3778 < else
3779 <  # The minimal lex program is just a single line: %%.  But some broken lexes
3780 < # (Solaris, I think it was) want two %% lines, so accommodate them.
3781 < cat >conftest.l <<_ACEOF
3782 < %%
3783 < %%
3784 < _ACEOF
3785 < { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3786 <  (eval $LEX conftest.l) 2>&5
3787 <  ac_status=$?
3788 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 <  (exit $ac_status); }
3790 < if test -f lex.yy.c; then
3791 <  ac_cv_prog_lex_root=lex.yy
3792 < elif test -f lexyy.c; then
3793 <  ac_cv_prog_lex_root=lexyy
3794 < else
3795 <  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3796 < echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3797 <   { (exit 1); exit 1; }; }
3798 < fi
3799 < fi
3800 < echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3801 < echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3802 < rm -f conftest.l
3803 < LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3804 <
3805 < echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3806 < echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3807 < if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3808 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3809 < else
3810 <  # POSIX says lex can declare yytext either as a pointer or an array; the
3811 < # default is implementation-dependent. Figure out which it is, since
3812 < # not all implementations provide the %pointer and %array declarations.
3813 < ac_cv_prog_lex_yytext_pointer=no
3814 < echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3815 < ac_save_LIBS=$LIBS
3816 < LIBS="$LIBS $LEXLIB"
3817 < cat >conftest.$ac_ext <<_ACEOF
3818 < `cat $LEX_OUTPUT_ROOT.c`
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_prog_lex_yytext_pointer=yes
3833 < else
3834 <  echo "$as_me: failed program was:" >&5
3835 < sed 's/^/| /' conftest.$ac_ext >&5
3836 <
3837 < fi
3838 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3839 < LIBS=$ac_save_LIBS
3840 < rm -f "${LEX_OUTPUT_ROOT}.c"
3841 <
3842 < fi
3843 < echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3844 < echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3845 < if test $ac_cv_prog_lex_yytext_pointer = yes; then
3846 <
3847 < cat >>confdefs.h <<\_ACEOF
3848 < #define YYTEXT_POINTER 1
3849 < _ACEOF
3850 <
3851 < fi
3852 <
3853 < fi
3854 < # Extract the first word of "ar", so it can be a program name with args.
3855 < set dummy ar; ac_word=$2
3856 < echo "$as_me:$LINENO: checking for $ac_word" >&5
3857 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3858 < if test "${ac_cv_prog_AR+set}" = set; then
3859 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3860 < else
3861 <  if test -n "$AR"; then
3862 <  ac_cv_prog_AR="$AR" # Let the user override the test.
3863 < else
3864 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 < for as_dir in $PATH
3866 < do
3867 <  IFS=$as_save_IFS
3868 <  test -z "$as_dir" && as_dir=.
3869 <  for ac_exec_ext in '' $ac_executable_extensions; do
3870 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3871 <    ac_cv_prog_AR="ar"
3872 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 <    break 2
3874 <  fi
3875 < done
3876 < done
3877 <
3878 <  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
3879 < fi
3880 < fi
3881 < AR=$ac_cv_prog_AR
3882 < if test -n "$AR"; then
3883 <  echo "$as_me:$LINENO: result: $AR" >&5
3884 < echo "${ECHO_T}$AR" >&6
3885 < else
3886 <  echo "$as_me:$LINENO: result: no" >&5
3887 < echo "${ECHO_T}no" >&6
3888 < fi
3889 <
3890 < if test "$AR" = "NONE"; then
3891 <  { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
3892 < echo "$as_me: error: --> Can't find \`ar'!" >&2;}
3893 <   { (exit 1); exit 1; }; }
3894 <  cat >confcache <<\_ACEOF
3895 < # This file is a shell script that caches the results of configure
3896 < # tests run on this system so they can be shared between configure
3897 < # scripts and configure runs, see configure's option --config-cache.
3898 < # It is not useful on other systems.  If it contains results you don't
3899 < # want to keep, you may remove or edit it.
3900 < #
3901 < # config.status only pays attention to the cache file if you give it
3902 < # the --recheck option to rerun configure.
3903 < #
3904 < # `ac_cv_env_foo' variables (set or unset) will be overridden when
3905 < # loading this file, other *unset* `ac_cv_foo' will be assigned the
3906 < # following values.
3907 <
3908 < _ACEOF
3909 <
3910 < # The following way of writing the cache mishandles newlines in values,
3911 < # but we know of no workaround that is simple, portable, and efficient.
3912 < # So, don't put newlines in cache variables' values.
3913 < # Ultrix sh set writes to stderr and can't be redirected directly,
3914 < # and sets the high bit in the cache file unless we assign to the vars.
3915 < {
3916 <  (set) 2>&1 |
3917 <    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3918 <    *ac_space=\ *)
3919 <      # `set' does not quote correctly, so add quotes (double-quote
3920 <      # substitution turns \\\\ into \\, and sed turns \\ into \).
3921 <      sed -n \
3922 <        "s/'/'\\\\''/g;
3923 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3924 <      ;;
3925 <    *)
3926 <      # `set' quotes correctly as required by POSIX, so do not add quotes.
3927 <      sed -n \
3928 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3929 <      ;;
3930 <    esac;
3931 < } |
3932 <  sed '
3933 <     t clear
3934 <     : clear
3935 <     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3936 <     t end
3937 <     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3938 <     : end' >>confcache
3939 < if diff $cache_file confcache >/dev/null 2>&1; then :; else
3940 <  if test -w $cache_file; then
3941 <    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3942 <    cat confcache >$cache_file
3943 <  else
3944 <    echo "not updating unwritable cache $cache_file"
3945 <  fi
3946 < fi
3947 < rm -f confcache
3948 <  exit 1
3949 < fi
3950 <
3951 < ac_ext=f90
3952 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3953 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3955 <
3956 <
3957 <
3958 < ac_ext=f90
3959 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3960 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3961 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3962 < echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
3963 < echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3964 < if test "${ac_cv_prog_f90_v+set}" = set; then
3965 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3966 < else
3967 <
3968 < cat >conftest.$ac_ext <<_ACEOF
3969 <
3970 < program main
3971 <
3972 <
3973 < end program main
3974 <
3975 < _ACEOF
3976 < rm -f conftest.$ac_objext
3977 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978 <  (eval $ac_compile) 2>&5
3979 <  ac_status=$?
3980 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 <  (exit $ac_status); } &&
3982 <         { ac_try='test -s conftest.$ac_objext'
3983 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3984 <  (eval $ac_try) 2>&5
3985 <  ac_status=$?
3986 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 <  (exit $ac_status); }; }; then
3988 <  ac_cv_prog_f90_v=
3989 < # Try some options frequently used verbose output
3990 < for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3991 <  ac_ext=f90
3992 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3993 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3995 <
3996 < cat >conftest.$ac_ext <<_ACEOF
3997 <
3998 < program main
3999 <
4000 <
4001 < end program main
4002 <
4003 < _ACEOF
4004 <
4005 < # Compile and link our simple test program by passing a flag (argument
4006 < # 1 to this macro) to the Fortran 90 compiler in order to get
4007 < # "verbose" output that we can then parse for the Fortran 90 linker
4008 < # flags.
4009 < ac_save_F90FLAGS=$F90FLAGS
4010 < F90FLAGS="$F90FLAGS $ac_verb"
4011 <
4012 < (eval echo $as_me:4854: \"$ac_link\") >&5
4013 < ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4014 < echo "$ac_f90_v_output" >&5
4015 < F90FLAGS=$ac_save_F90FLAGS
4016 <
4017 < rm -f conftest.*
4018 < ac_ext=f90
4019 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4020 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4022 <
4023 < # If we are using xlf then replace all the commas with spaces.
4024 < if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4025 <  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4026 < fi
4027 <
4028 < # If we are using Cray Fortran then delete quotes.
4029 < # Use "\"" instead of '"' for font-lock-mode.
4030 < # FIXME: a more general fix for quoted arguments with spaces?
4031 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4032 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4033 < fi
4034 <  # look for -l* and *.a constructs in the output
4035 <  for ac_arg in $ac_f90_v_output; do
4036 <     case $ac_arg in
4037 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4038 <          ac_cv_prog_f90_v=$ac_verb
4039 <          break 2 ;;
4040 <     esac
4041 <  done
4042 < done
4043 < if test -z "$ac_cv_prog_f90_v"; then
4044 <   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
4045 < echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
4046 < fi
4047 < else
4048 <  echo "$as_me: failed program was:" >&5
4049 < sed 's/^/| /' conftest.$ac_ext >&5
4050 <
4051 < { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4052 < echo "$as_me: WARNING: compilation failed" >&2;}
4053 < fi
4054 < rm -f conftest.$ac_objext conftest.$ac_ext
4055 <
4056 < fi
4057 < echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
4058 < echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
4059 < echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
4060 < echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
4061 < if test "${ac_cv_flibs+set}" = set; then
4062 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4063 < else
4064 <  if test "x$F90LIBS" != "x"; then
4065 <  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
4066 < else
4067 <
4068 < ac_ext=f90
4069 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4070 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4072 <
4073 < cat >conftest.$ac_ext <<_ACEOF
4074 <
4075 < program main
4076 <
4077 <
4078 < end program main
4079 <
4080 < _ACEOF
4081 <
4082 < # Compile and link our simple test program by passing a flag (argument
4083 < # 1 to this macro) to the Fortran 90 compiler in order to get
4084 < # "verbose" output that we can then parse for the Fortran 90 linker
4085 < # flags.
4086 < ac_save_F90FLAGS=$F90FLAGS
4087 < F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
4088 <
4089 < (eval echo $as_me:4931: \"$ac_link\") >&5
4090 < ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4091 < echo "$ac_f90_v_output" >&5
4092 < F90FLAGS=$ac_save_F90FLAGS
4093 <
4094 < rm -f conftest.*
4095 < ac_ext=f90
4096 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4097 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4098 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4099 <
4100 < # If we are using xlf then replace all the commas with spaces.
4101 < if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4102 <  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4103 < fi
4104 <
4105 < # If we are using Cray Fortran then delete quotes.
4106 < # Use "\"" instead of '"' for font-lock-mode.
4107 < # FIXME: a more general fix for quoted arguments with spaces?
4108 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4109 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4110 < fi
4111 <
4112 < ac_cv_f90libs=
4113 <
4114 < # Save positional arguments (if any)
4115 < ac_save_positional="$@"
4116 <
4117 < set X $ac_f90_v_output
4118 < while test $# != 1; do
4119 <  shift
4120 <  ac_arg=$1
4121 <  case $ac_arg in
4122 <        [\\/]*.a | ?:[\\/]*.a)
4123 <            ac_exists=false
4124 <  for ac_i in $ac_cv_f90libs; do
4125 <    if test x"$ac_arg" = x"$ac_i"; then
4126 <      ac_exists=true
4127 <      break
4128 <    fi
4129 <  done
4130 <
4131 <  if test x"$ac_exists" = xtrue; then
4132 <  :
4133 < else
4134 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4135 < fi
4136 <
4137 <          ;;
4138 <        -bI:*)
4139 <            ac_exists=false
4140 <  for ac_i in $ac_cv_f90libs; do
4141 <    if test x"$ac_arg" = x"$ac_i"; then
4142 <      ac_exists=true
4143 <      break
4144 <    fi
4145 <  done
4146 <
4147 <  if test x"$ac_exists" = xtrue; then
4148 <  :
4149 < else
4150 <  if test "$ac_compiler_gnu" = yes; then
4151 <  for ac_link_opt in $ac_arg; do
4152 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4153 <  done
4154 < else
4155 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4156 < fi
4157 < fi
4158 <
4159 <          ;;
4160 <          # Ignore these flags.
4161 <        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
4162 <          ;;
4163 <        -lkernel32)
4164 <          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4165 <          ;;
4166 <        -[LRuY])
4167 <          # These flags, when seen by themselves, take an argument.
4168 <          # We remove the space between option and argument and re-iterate
4169 <          # unless we find an empty arg or a new option (starting with -)
4170 <          case $2 in
4171 <             "" | -*);;
4172 <             *)
4173 <                ac_arg="$ac_arg$2"
4174 <
4175 <                shift; shift
4176 <                set X $ac_arg "$@"
4177 <                ;;
4178 <          esac
4179 <          ;;
4180 <        -YP,*)
4181 <          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4182 <              ac_exists=false
4183 <  for ac_i in $ac_cv_f90libs; do
4184 <    if test x"$ac_j" = x"$ac_i"; then
4185 <      ac_exists=true
4186 <      break
4187 <    fi
4188 <  done
4189 <
4190 <  if test x"$ac_exists" = xtrue; then
4191 <  :
4192 < else
4193 <  ac_arg="$ac_arg $ac_j"
4194 <                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
4195 < fi
4196 <
4197 <          done
4198 <          ;;
4199 <        -[lLR]*)
4200 <            ac_exists=false
4201 <  for ac_i in $ac_cv_f90libs; do
4202 <    if test x"$ac_arg" = x"$ac_i"; then
4203 <      ac_exists=true
4204 <      break
4205 <    fi
4206 <  done
4207 <
4208 <  if test x"$ac_exists" = xtrue; then
4209 <  :
4210 < else
4211 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4212 < fi
4213 <
4214 <          ;;
4215 <          # Ignore everything else.
4216 <  esac
4217 < done
4218 < # restore positional arguments
4219 < set X $ac_save_positional; shift
4220 <
4221 < # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4222 < # then we insist that the "run path" must be an absolute path (i.e. it
4223 < # must begin with a "/").
4224 < case `(uname -sr) 2>/dev/null` in
4225 <   "SunOS 5"*)
4226 <      ac_ld_run_path=`echo $ac_f90_v_output |
4227 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4228 <      test "x$ac_ld_run_path" != x &&
4229 <
4230 <        if test "$ac_compiler_gnu" = yes; then
4231 <  for ac_link_opt in $ac_ld_run_path; do
4232 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4233 <  done
4234 < else
4235 <  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
4236 < fi
4237 <      ;;
4238 < esac
4239 < fi # test "x$F90LIBS" = "x"
4240 <
4241 < fi
4242 < echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
4243 < echo "${ECHO_T}$ac_cv_flibs" >&6
4244 < F90LIBS="$ac_cv_f90libs"
4245 <
4246 < ac_ext=f90
4247 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4248 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4250 <
4251 < echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
4252 < echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
4253 < if test "${ac_cv_f90_mangling+set}" = set; then
4254 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4255 < else
4256 <  ac_ext=f90
4257 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4258 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4260 < cat >conftest.$ac_ext <<_ACEOF
4261 < subroutine foobar()
4262 < return
4263 < end
4264 < subroutine foo_bar()
4265 < return
4266 < end
4267 < _ACEOF
4268 < rm -f conftest.$ac_objext
4269 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4270 <  (eval $ac_compile) 2>&5
4271 <  ac_status=$?
4272 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 <  (exit $ac_status); } &&
4274 <         { ac_try='test -s conftest.$ac_objext'
4275 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 <  (eval $ac_try) 2>&5
4277 <  ac_status=$?
4278 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 <  (exit $ac_status); }; }; then
4280 <  mv conftest.$ac_objext cf90_test.$ac_objext
4281 <
4282 <  ac_ext=c
4283 < ac_cpp='$CPP $CPPFLAGS'
4284 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287 <
4288 <  ac_save_LIBS=$LIBS
4289 <  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
4290 <
4291 <  ac_success=no
4292 <  for ac_foobar in foobar FOOBAR; do
4293 <    for ac_underscore in "" "_"; do
4294 <      ac_func="$ac_foobar$ac_underscore"
4295 <      cat >conftest.$ac_ext <<_ACEOF
4296 < #line $LINENO "configure"
4297 < /* confdefs.h.  */
4298 < _ACEOF
4299 < cat confdefs.h >>conftest.$ac_ext
4300 < cat >>conftest.$ac_ext <<_ACEOF
4301 < /* end confdefs.h.  */
4302 <
4303 < /* Override any gcc2 internal prototype to avoid an error.  */
4304 < #ifdef __cplusplus
4305 < extern "C"
4306 < #endif
4307 < /* We use char because int might match the return type of a gcc2
4308 <   builtin and then its argument prototype would still apply.  */
4309 < char $ac_func ();
4310 < int
4311 < main ()
4312 < {
4313 < $ac_func ();
4314 <  ;
4315 <  return 0;
4316 < }
4317 < _ACEOF
4318 < rm -f conftest.$ac_objext conftest$ac_exeext
4319 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4320 <  (eval $ac_link) 2>&5
4321 <  ac_status=$?
4322 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 <  (exit $ac_status); } &&
4324 <         { ac_try='test -s conftest$ac_exeext'
4325 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4326 <  (eval $ac_try) 2>&5
4327 <  ac_status=$?
4328 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 <  (exit $ac_status); }; }; then
4330 <  ac_success=yes; break 2
4331 < else
4332 <  echo "$as_me: failed program was:" >&5
4333 < sed 's/^/| /' conftest.$ac_ext >&5
4334 <
4335 < fi
4336 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4337 <    done
4338 <  done
4339 <
4340 <  if test "$ac_success" = "yes"; then
4341 <     case $ac_foobar in
4342 <        foobar)
4343 <           ac_case=lower
4344 <           ac_foo_bar=foo_bar
4345 <           ;;
4346 <        FOOBAR)
4347 <           ac_case=upper
4348 <           ac_foo_bar=FOO_BAR
4349 <           ;;
4350 <     esac
4351 <
4352 <     ac_success_extra=no
4353 <     for ac_extra in "" "_"; do
4354 <        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4355 <
4356 <        cat >conftest.$ac_ext <<_ACEOF
4357 < #line $LINENO "configure"
4358 < /* confdefs.h.  */
4359 < _ACEOF
4360 < cat confdefs.h >>conftest.$ac_ext
4361 < cat >>conftest.$ac_ext <<_ACEOF
4362 < /* end confdefs.h.  */
4363 <
4364 < /* Override any gcc2 internal prototype to avoid an error.  */
4365 < #ifdef __cplusplus
4366 < extern "C"
4367 < #endif
4368 < /* We use char because int might match the return type of a gcc2
4369 <   builtin and then its argument prototype would still apply.  */
4370 < char $ac_func ();
4371 < int
4372 < main ()
4373 < {
4374 < $ac_func ();
4375 <  ;
4376 <  return 0;
4377 < }
4378 < _ACEOF
4379 < rm -f conftest.$ac_objext conftest$ac_exeext
4380 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4381 <  (eval $ac_link) 2>&5
4382 <  ac_status=$?
4383 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 <  (exit $ac_status); } &&
4385 <         { ac_try='test -s conftest$ac_exeext'
4386 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 <  (eval $ac_try) 2>&5
4388 <  ac_status=$?
4389 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 <  (exit $ac_status); }; }; then
4391 <  ac_success_extra=yes; break
4392 < else
4393 <  echo "$as_me: failed program was:" >&5
4394 < sed 's/^/| /' conftest.$ac_ext >&5
4395 <
4396 < fi
4397 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4398 <     done
4399 <
4400 <     if test "$ac_success_extra" = "yes"; then
4401 <        ac_cv_f90_mangling="$ac_case case"
4402 <        if test -z "$ac_underscore"; then
4403 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
4404 <        else
4405 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
4406 <
4407 <        fi
4408 <        if test -z "$ac_extra"; then
4409 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
4410 <        else
4411 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
4412 <        fi
4413 <      else
4414 <        ac_cv_f90_mangling="unknown"
4415 <      fi
4416 <  else
4417 <     ac_cv_f90_mangling="unknown"
4418 <
4419 <  fi
4420 <
4421 <  LIBS=$ac_save_LIBS
4422 <  ac_ext=f90
4423 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4424 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4426 <  rm -f cf90_test* conftest*
4427 < else
4428 <  echo "$as_me: failed program was:" >&5
4429 < sed 's/^/| /' conftest.$ac_ext >&5
4430 <
4431 < fi
4432 < rm -f conftest.$ac_objext conftest.$ac_ext
4433 < ac_ext=f90
4434 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4435 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4436 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4437 <
4438 < fi
4439 < echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
4440 < echo "${ECHO_T}$ac_cv_f90_mangling" >&6
4441 <
4442 <
4443 <
4444 < case $ac_cv_f90_mangling in
4445 <  "lower case, no underscore, no extra underscore")
4446 <          cat >>confdefs.h <<\_ACEOF
4447 < #define F90_FUNC(name,NAME) name
4448 < _ACEOF
4449 <
4450 <          cat >>confdefs.h <<\_ACEOF
4451 < #define F90_FUNC_(name,NAME) name
4452 < _ACEOF
4453 < ;;
4454 <  "lower case, no underscore, extra underscore")
4455 <          cat >>confdefs.h <<\_ACEOF
4456 < #define F90_FUNC(name,NAME) name
4457 < _ACEOF
4458 <
4459 <          cat >>confdefs.h <<\_ACEOF
4460 < #define F90_FUNC_(name,NAME) name ## _
4461 < _ACEOF
4462 < ;;
4463 <  "lower case, underscore, no extra underscore")
4464 <          cat >>confdefs.h <<\_ACEOF
4465 < #define F90_FUNC(name,NAME) name ## _
4466 < _ACEOF
4467 <
4468 <          cat >>confdefs.h <<\_ACEOF
4469 < #define F90_FUNC_(name,NAME) name ## _
4470 < _ACEOF
4471 < ;;
4472 <  "lower case, underscore, extra underscore")
4473 <          cat >>confdefs.h <<\_ACEOF
4474 < #define F90_FUNC(name,NAME) name ## _
4475 < _ACEOF
4476 <
4477 <          cat >>confdefs.h <<\_ACEOF
4478 < #define F90_FUNC_(name,NAME) name ## __
4479 < _ACEOF
4480 < ;;
4481 <  "upper case, no underscore, no extra underscore")
4482 <          cat >>confdefs.h <<\_ACEOF
4483 < #define F90_FUNC(name,NAME) NAME
4484 < _ACEOF
3137 > program main
3138 >
3139 >  integer :: i
3140 >  i = 1
3141 >
3142 >
3143 > end program main
3144 >
3145 > _ACEOF
3146 > rm -f conftest.$ac_objext
3147 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3148 >  (eval $ac_compile) 2>&5
3149 >  ac_status=$?
3150 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 >  (exit $ac_status); } &&
3152 >         { ac_try='test -s conftest.$ac_objext'
3153 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154 >  (eval $ac_try) 2>&5
3155 >  ac_status=$?
3156 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 >  (exit $ac_status); }; }; then
3158 >  prepflagworks=1
3159 > else
3160 >  echo "$as_me: failed program was:" >&5
3161 > sed 's/^/| /' conftest.$ac_ext >&5
3162 >
3163 > prepflagworks=0
3164 > fi
3165 > rm -f conftest.$ac_objext conftest.$ac_ext
3166 >
3167 >  F90FLAGS=$ac_save_F90FLAGS
3168 >  ac_ext=$ac_save_ext
3169 >  ac_ext=c
3170 > ac_cpp='$CPP $CPPFLAGS'
3171 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174 >
3175 >
3176 >
3177 >  if test "$prepflagworks" = 1; then
3178 >    echo "$as_me:$LINENO: result: yes" >&5
3179 > echo "${ECHO_T}yes" >&6
3180 >
3181 >  else
3182 >    echo "$as_me:$LINENO: result: no" >&5
3183 > echo "${ECHO_T}no" >&6
3184 >    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3185 > echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3186 >   { (exit 1); exit 1; }; }
3187 >  fi
3188 > fi
3189 >
3190 >
3191 >
3192 >
3193 >
3194 > # Try to determine native compiler flags that allow us to use F90 suffix
3195 > # for preprocessed f90 source with -D type defines
3196 >
3197 > if test "$ac_test_PREPDEFFLAG" != "set"; then
3198 >  PREPDEFFLAG=""
3199 >  case "${host_cpu}-${host_os}" in
3200 >
3201 >  *linux*) if test "$F90" = ifc; then
3202 >                    PREPDEFFLAG=" "
3203 >                fi;;
3204 >  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3205 >                    PREPDEFFLAG="-WF,"
3206 >                fi;;
3207 >  *darwin*)
3208 >        if test "$F90" = f90 -o "$F90" = xlf90; then
3209 >                PREPDEFFLAG="-WF,"
3210 >        fi;;
3211 >  esac
3212 >
3213 >  if test -z "$PREPDEFFLAG"; then
3214 >        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
3215 > echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
3216 >        PREPDEFFLAG=" "
3217 >  fi
3218 >
3219 >  echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3220 > echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3221 >
3222 >
3223 >  ac_ext=f90
3224 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3225 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3227 >
3228 >  ac_save_ext=$ac_ext
3229 >  ac_ext=F90
3230 >  ac_save_F90FLAGS=$F90FLAGS
3231 >
3232 >  if test "$PREPDEFFLAG"; then
3233 >  F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
3234 > fi
3235 >
3236 >    cat >conftest.$ac_ext <<_ACEOF
3237 >
3238 >
3239 > program main
3240 >
3241 >  integer :: i
3242 > #ifdef TEST
3243 >  i = 1
3244 > #else
3245 >  choke me
3246 > #endif
3247 >
3248 >
3249 > end program main
3250 >
3251 > _ACEOF
3252 > rm -f conftest.$ac_objext
3253 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3254 >  (eval $ac_compile) 2>&5
3255 >  ac_status=$?
3256 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 >  (exit $ac_status); } &&
3258 >         { ac_try='test -s conftest.$ac_objext'
3259 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 >  (eval $ac_try) 2>&5
3261 >  ac_status=$?
3262 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 >  (exit $ac_status); }; }; then
3264 >  prepdefflagworks=1
3265 > else
3266 >  echo "$as_me: failed program was:" >&5
3267 > sed 's/^/| /' conftest.$ac_ext >&5
3268 >
3269 > prepdefflagworks=0
3270 > fi
3271 > rm -f conftest.$ac_objext conftest.$ac_ext
3272 >
3273 >  F90FLAGS=$ac_save_F90FLAGS
3274 >  ac_ext=$ac_save_ext
3275 >  ac_ext=c
3276 > ac_cpp='$CPP $CPPFLAGS'
3277 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3278 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3279 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3280 >
3281 >
3282 >
3283 >  if test "$prepdefflagworks" = 1; then
3284 >    echo "$as_me:$LINENO: result: yes" >&5
3285 > echo "${ECHO_T}yes" >&6
3286 >
3287 >  else
3288 >    echo "$as_me:$LINENO: result: no" >&5
3289 > echo "${ECHO_T}no" >&6
3290 >    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3291 > echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3292 >   { (exit 1); exit 1; }; }
3293 >  fi
3294 > fi
3295 >
3296 > ac_ext=f90
3297 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3298 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3300 >
3301 >
3302 >
3303 > ac_ext=f90
3304 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3305 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3306 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3307 > echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
3308 > echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3309 > if test "${ac_cv_prog_f90_v+set}" = set; then
3310 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3311 > else
3312 >
3313 > cat >conftest.$ac_ext <<_ACEOF
3314 >
3315 > program main
3316 >
3317 >
3318 > end program main
3319 >
3320 > _ACEOF
3321 > rm -f conftest.$ac_objext
3322 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3323 >  (eval $ac_compile) 2>&5
3324 >  ac_status=$?
3325 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 >  (exit $ac_status); } &&
3327 >         { ac_try='test -s conftest.$ac_objext'
3328 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 >  (eval $ac_try) 2>&5
3330 >  ac_status=$?
3331 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 >  (exit $ac_status); }; }; then
3333 >  ac_cv_prog_f90_v=
3334 > # Try some options frequently used verbose output
3335 > for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3336 >  ac_ext=f90
3337 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3338 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3340 >
3341 > cat >conftest.$ac_ext <<_ACEOF
3342 >
3343 > program main
3344 >
3345 >
3346 > end program main
3347 >
3348 > _ACEOF
3349 >
3350 > # Compile and link our simple test program by passing a flag (argument
3351 > # 1 to this macro) to the Fortran 90 compiler in order to get
3352 > # "verbose" output that we can then parse for the Fortran 90 linker
3353 > # flags.
3354 > ac_save_F90FLAGS=$F90FLAGS
3355 > F90FLAGS="$F90FLAGS $ac_verb"
3356 >
3357 > (eval echo $as_me:3357: \"$ac_link\") >&5
3358 > ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3359 > echo "$ac_f90_v_output" >&5
3360 > F90FLAGS=$ac_save_F90FLAGS
3361 >
3362 > rm -f conftest.*
3363 > ac_ext=f90
3364 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3365 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3366 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3367 >
3368 > # If we are using xlf then replace all the commas with spaces.
3369 > if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3370 >  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3371 > fi
3372 >
3373 > # If we are using Cray Fortran then delete quotes.
3374 > # Use "\"" instead of '"' for font-lock-mode.
3375 > # FIXME: a more general fix for quoted arguments with spaces?
3376 > if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3377 >  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3378 > fi
3379 >  # look for -l* and *.a constructs in the output
3380 >  for ac_arg in $ac_f90_v_output; do
3381 >     case $ac_arg in
3382 >        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3383 >          ac_cv_prog_f90_v=$ac_verb
3384 >          break 2 ;;
3385 >     esac
3386 >  done
3387 > done
3388 > if test -z "$ac_cv_prog_f90_v"; then
3389 >   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
3390 > echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
3391 > fi
3392 > else
3393 >  echo "$as_me: failed program was:" >&5
3394 > sed 's/^/| /' conftest.$ac_ext >&5
3395 >
3396 > { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3397 > echo "$as_me: WARNING: compilation failed" >&2;}
3398 > fi
3399 > rm -f conftest.$ac_objext conftest.$ac_ext
3400 >
3401 > fi
3402 > echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
3403 > echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
3404 > echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
3405 > echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
3406 > if test "${ac_cv_flibs+set}" = set; then
3407 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3408 > else
3409 >  if test "x$F90LIBS" != "x"; then
3410 >  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
3411 > else
3412 >
3413 > ac_ext=f90
3414 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3415 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3417 >
3418 > cat >conftest.$ac_ext <<_ACEOF
3419 >
3420 > program main
3421 >
3422 >
3423 > end program main
3424 >
3425 > _ACEOF
3426 >
3427 > # Compile and link our simple test program by passing a flag (argument
3428 > # 1 to this macro) to the Fortran 90 compiler in order to get
3429 > # "verbose" output that we can then parse for the Fortran 90 linker
3430 > # flags.
3431 > ac_save_F90FLAGS=$F90FLAGS
3432 > F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3433 >
3434 > (eval echo $as_me:3434: \"$ac_link\") >&5
3435 > ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3436 > echo "$ac_f90_v_output" >&5
3437 > F90FLAGS=$ac_save_F90FLAGS
3438 >
3439 > rm -f conftest.*
3440 > ac_ext=f90
3441 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3442 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3444 >
3445 > # If we are using xlf then replace all the commas with spaces.
3446 > if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3447 >  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3448 > fi
3449 >
3450 > # If we are using Cray Fortran then delete quotes.
3451 > # Use "\"" instead of '"' for font-lock-mode.
3452 > # FIXME: a more general fix for quoted arguments with spaces?
3453 > if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3454 >  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3455 > fi
3456 >
3457 > ac_cv_f90libs=
3458 >
3459 > # Save positional arguments (if any)
3460 > ac_save_positional="$@"
3461 >
3462 > set X $ac_f90_v_output
3463 > while test $# != 1; do
3464 >  shift
3465 >  ac_arg=$1
3466 >  case $ac_arg in
3467 >        [\\/]*.a | ?:[\\/]*.a)
3468 >            ac_exists=false
3469 >  for ac_i in $ac_cv_f90libs; do
3470 >    if test x"$ac_arg" = x"$ac_i"; then
3471 >      ac_exists=true
3472 >      break
3473 >    fi
3474 >  done
3475 >
3476 >  if test x"$ac_exists" = xtrue; then
3477 >  :
3478 > else
3479 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3480 > fi
3481 >
3482 >          ;;
3483 >        -bI:*)
3484 >            ac_exists=false
3485 >  for ac_i in $ac_cv_f90libs; do
3486 >    if test x"$ac_arg" = x"$ac_i"; then
3487 >      ac_exists=true
3488 >      break
3489 >    fi
3490 >  done
3491 >
3492 >  if test x"$ac_exists" = xtrue; then
3493 >  :
3494 > else
3495 >  if test "$ac_compiler_gnu" = yes; then
3496 >  for ac_link_opt in $ac_arg; do
3497 >    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3498 >  done
3499 > else
3500 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3501 > fi
3502 > fi
3503 >
3504 >          ;;
3505 >          # Ignore these flags.
3506 >        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
3507 >          ;;
3508 >        -lkernel32)
3509 >          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3510 >          ;;
3511 >        -[LRuY])
3512 >          # These flags, when seen by themselves, take an argument.
3513 >          # We remove the space between option and argument and re-iterate
3514 >          # unless we find an empty arg or a new option (starting with -)
3515 >          case $2 in
3516 >             "" | -*);;
3517 >             *)
3518 >                ac_arg="$ac_arg$2"
3519 >
3520 >                shift; shift
3521 >                set X $ac_arg "$@"
3522 >                ;;
3523 >          esac
3524 >          ;;
3525 >        -YP,*)
3526 >          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3527 >              ac_exists=false
3528 >  for ac_i in $ac_cv_f90libs; do
3529 >    if test x"$ac_j" = x"$ac_i"; then
3530 >      ac_exists=true
3531 >      break
3532 >    fi
3533 >  done
3534 >
3535 >  if test x"$ac_exists" = xtrue; then
3536 >  :
3537 > else
3538 >  ac_arg="$ac_arg $ac_j"
3539 >                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
3540 > fi
3541 >
3542 >          done
3543 >          ;;
3544 >        -[lLR]*)
3545 >            ac_exists=false
3546 >  for ac_i in $ac_cv_f90libs; do
3547 >    if test x"$ac_arg" = x"$ac_i"; then
3548 >      ac_exists=true
3549 >      break
3550 >    fi
3551 >  done
3552 >
3553 >  if test x"$ac_exists" = xtrue; then
3554 >  :
3555 > else
3556 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3557 > fi
3558 >
3559 >          ;;
3560 >          # Ignore everything else.
3561 >  esac
3562 > done
3563 > # restore positional arguments
3564 > set X $ac_save_positional; shift
3565 >
3566 > # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
3567 > # then we insist that the "run path" must be an absolute path (i.e. it
3568 > # must begin with a "/").
3569 > case `(uname -sr) 2>/dev/null` in
3570 >   "SunOS 5"*)
3571 >      ac_ld_run_path=`echo $ac_f90_v_output |
3572 >                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3573 >      test "x$ac_ld_run_path" != x &&
3574 >
3575 >        if test "$ac_compiler_gnu" = yes; then
3576 >  for ac_link_opt in $ac_ld_run_path; do
3577 >    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3578 >  done
3579 > else
3580 >  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
3581 > fi
3582 >      ;;
3583 > esac
3584 > fi # test "x$F90LIBS" = "x"
3585 >
3586 > fi
3587 > echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
3588 > echo "${ECHO_T}$ac_cv_flibs" >&6
3589 > F90LIBS="$ac_cv_f90libs"
3590 >
3591 > ac_ext=f90
3592 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3593 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3594 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3595 >
3596 >
3597 > echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
3598 > echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
3599 > if test "${ac_cv_f90_mangling+set}" = set; then
3600 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3601 > else
3602 >  ac_ext=f90
3603 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3604 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3606 > cat >conftest.$ac_ext <<_ACEOF
3607 > subroutine foobar()
3608 > return
3609 > end
3610 > subroutine foo_bar()
3611 > return
3612 > end
3613 > _ACEOF
3614 > rm -f conftest.$ac_objext
3615 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3616 >  (eval $ac_compile) 2>&5
3617 >  ac_status=$?
3618 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 >  (exit $ac_status); } &&
3620 >         { ac_try='test -s conftest.$ac_objext'
3621 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 >  (eval $ac_try) 2>&5
3623 >  ac_status=$?
3624 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 >  (exit $ac_status); }; }; then
3626 >  mv conftest.$ac_objext cf90_test.$ac_objext
3627 >
3628 >  ac_ext=c
3629 > ac_cpp='$CPP $CPPFLAGS'
3630 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633 >
3634 >  ac_save_LIBS=$LIBS
3635 >  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
3636 >
3637 >  ac_success=no
3638 >  for ac_foobar in foobar FOOBAR; do
3639 >    for ac_underscore in "" "_"; do
3640 >      ac_func="$ac_foobar$ac_underscore"
3641 >      cat >conftest.$ac_ext <<_ACEOF
3642 > #line $LINENO "configure"
3643 > /* confdefs.h.  */
3644 > _ACEOF
3645 > cat confdefs.h >>conftest.$ac_ext
3646 > cat >>conftest.$ac_ext <<_ACEOF
3647 > /* end confdefs.h.  */
3648 >
3649 > /* Override any gcc2 internal prototype to avoid an error.  */
3650 > #ifdef __cplusplus
3651 > extern "C"
3652 > #endif
3653 > /* We use char because int might match the return type of a gcc2
3654 >   builtin and then its argument prototype would still apply.  */
3655 > char $ac_func ();
3656 > int
3657 > main ()
3658 > {
3659 > $ac_func ();
3660 >  ;
3661 >  return 0;
3662 > }
3663 > _ACEOF
3664 > rm -f conftest.$ac_objext conftest$ac_exeext
3665 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3666 >  (eval $ac_link) 2>&5
3667 >  ac_status=$?
3668 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 >  (exit $ac_status); } &&
3670 >         { ac_try='test -s conftest$ac_exeext'
3671 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 >  (eval $ac_try) 2>&5
3673 >  ac_status=$?
3674 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 >  (exit $ac_status); }; }; then
3676 >  ac_success=yes; break 2
3677 > else
3678 >  echo "$as_me: failed program was:" >&5
3679 > sed 's/^/| /' conftest.$ac_ext >&5
3680 >
3681 > fi
3682 > rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3683 >    done
3684 >  done
3685 >
3686 >  if test "$ac_success" = "yes"; then
3687 >     case $ac_foobar in
3688 >        foobar)
3689 >           ac_case=lower
3690 >           ac_foo_bar=foo_bar
3691 >           ;;
3692 >        FOOBAR)
3693 >           ac_case=upper
3694 >           ac_foo_bar=FOO_BAR
3695 >           ;;
3696 >     esac
3697 >
3698 >     ac_success_extra=no
3699 >     for ac_extra in "" "_"; do
3700 >        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
3701 >
3702 >        cat >conftest.$ac_ext <<_ACEOF
3703 > #line $LINENO "configure"
3704 > /* confdefs.h.  */
3705 > _ACEOF
3706 > cat confdefs.h >>conftest.$ac_ext
3707 > cat >>conftest.$ac_ext <<_ACEOF
3708 > /* end confdefs.h.  */
3709 >
3710 > /* Override any gcc2 internal prototype to avoid an error.  */
3711 > #ifdef __cplusplus
3712 > extern "C"
3713 > #endif
3714 > /* We use char because int might match the return type of a gcc2
3715 >   builtin and then its argument prototype would still apply.  */
3716 > char $ac_func ();
3717 > int
3718 > main ()
3719 > {
3720 > $ac_func ();
3721 >  ;
3722 >  return 0;
3723 > }
3724 > _ACEOF
3725 > rm -f conftest.$ac_objext conftest$ac_exeext
3726 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3727 >  (eval $ac_link) 2>&5
3728 >  ac_status=$?
3729 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 >  (exit $ac_status); } &&
3731 >         { ac_try='test -s conftest$ac_exeext'
3732 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 >  (eval $ac_try) 2>&5
3734 >  ac_status=$?
3735 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 >  (exit $ac_status); }; }; then
3737 >  ac_success_extra=yes; break
3738 > else
3739 >  echo "$as_me: failed program was:" >&5
3740 > sed 's/^/| /' conftest.$ac_ext >&5
3741 >
3742 > fi
3743 > rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3744 >     done
3745 >
3746 >     if test "$ac_success_extra" = "yes"; then
3747 >        ac_cv_f90_mangling="$ac_case case"
3748 >        if test -z "$ac_underscore"; then
3749 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
3750 >        else
3751 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
3752 >
3753 >        fi
3754 >        if test -z "$ac_extra"; then
3755 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
3756 >        else
3757 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
3758 >        fi
3759 >      else
3760 >        ac_cv_f90_mangling="unknown"
3761 >      fi
3762 >  else
3763 >     ac_cv_f90_mangling="unknown"
3764 >
3765 >  fi
3766 >
3767 >  LIBS=$ac_save_LIBS
3768 >  ac_ext=f90
3769 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3770 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3772 >  rm -f cf90_test* conftest*
3773 > else
3774 >  echo "$as_me: failed program was:" >&5
3775 > sed 's/^/| /' conftest.$ac_ext >&5
3776 >
3777 > fi
3778 > rm -f conftest.$ac_objext conftest.$ac_ext
3779 > ac_ext=f90
3780 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3781 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3782 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3783 >
3784 > fi
3785 > echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
3786 > echo "${ECHO_T}$ac_cv_f90_mangling" >&6
3787 >
3788 >
3789 >
3790 > case $ac_cv_f90_mangling in
3791 >  "lower case, no underscore, no extra underscore")
3792 >          cat >>confdefs.h <<\_ACEOF
3793 > #define F90_FUNC(name,NAME) name
3794 > _ACEOF
3795 >
3796 >          cat >>confdefs.h <<\_ACEOF
3797 > #define F90_FUNC_(name,NAME) name
3798 > _ACEOF
3799 > ;;
3800 >  "lower case, no underscore, extra underscore")
3801 >          cat >>confdefs.h <<\_ACEOF
3802 > #define F90_FUNC(name,NAME) name
3803 > _ACEOF
3804 >
3805 >          cat >>confdefs.h <<\_ACEOF
3806 > #define F90_FUNC_(name,NAME) name ## _
3807 > _ACEOF
3808 > ;;
3809 >  "lower case, underscore, no extra underscore")
3810 >          cat >>confdefs.h <<\_ACEOF
3811 > #define F90_FUNC(name,NAME) name ## _
3812 > _ACEOF
3813 >
3814 >          cat >>confdefs.h <<\_ACEOF
3815 > #define F90_FUNC_(name,NAME) name ## _
3816 > _ACEOF
3817 > ;;
3818 >  "lower case, underscore, extra underscore")
3819 >          cat >>confdefs.h <<\_ACEOF
3820 > #define F90_FUNC(name,NAME) name ## _
3821 > _ACEOF
3822 >
3823 >          cat >>confdefs.h <<\_ACEOF
3824 > #define F90_FUNC_(name,NAME) name ## __
3825 > _ACEOF
3826 > ;;
3827 >  "upper case, no underscore, no extra underscore")
3828 >          cat >>confdefs.h <<\_ACEOF
3829 > #define F90_FUNC(name,NAME) NAME
3830 > _ACEOF
3831 >
3832 >          cat >>confdefs.h <<\_ACEOF
3833 > #define F90_FUNC_(name,NAME) NAME
3834 > _ACEOF
3835 > ;;
3836 >  "upper case, no underscore, extra underscore")
3837 >          cat >>confdefs.h <<\_ACEOF
3838 > #define F90_FUNC(name,NAME) NAME
3839 > _ACEOF
3840 >
3841 >          cat >>confdefs.h <<\_ACEOF
3842 > #define F90_FUNC_(name,NAME) NAME ## _
3843 > _ACEOF
3844 > ;;
3845 >  "upper case, underscore, no extra underscore")
3846 >          cat >>confdefs.h <<\_ACEOF
3847 > #define F90_FUNC(name,NAME) NAME ## _
3848 > _ACEOF
3849 >
3850 >          cat >>confdefs.h <<\_ACEOF
3851 > #define F90_FUNC_(name,NAME) NAME ## _
3852 > _ACEOF
3853 > ;;
3854 >  "upper case, underscore, extra underscore")
3855 >          cat >>confdefs.h <<\_ACEOF
3856 > #define F90_FUNC(name,NAME) NAME ## _
3857 > _ACEOF
3858 >
3859 >          cat >>confdefs.h <<\_ACEOF
3860 > #define F90_FUNC_(name,NAME) NAME ## __
3861 > _ACEOF
3862 > ;;
3863 >  *)
3864 >          { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
3865 > echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
3866 >          ;;
3867 > esac
3868 >
3869 >
3870 >
3871 >
3872 >
3873 > echo "$as_me:$LINENO: checking for module suffix" >&5
3874 > echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
3875 > rm -f conftest*
3876 > # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
3877 > rm -f work*
3878 > cat >conftest.f90 <<EOF
3879 >        module conftest
3880 >        integer n
3881 >        parameter (n=1)
3882 >        end module conftest
3883 > EOF
3884 > # SGI and absoft compilers generates module name in upper case!
3885 > testname="conftest"
3886 > modcase="lower"
3887 > if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
3888 >    MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
3889 >    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
3890 >    if test -z "$MOD" ; then
3891 >        MOD=`ls CONFTEST* 2>/dev/null \
3892 >                | grep -v CONFTEST.f | grep -v CONFTEST.o`
3893 >        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
3894 >        if test -n "$MOD" ; then
3895 >            testname="CONFTEST"
3896 >            modcase="upper"
3897 >        fi
3898 >    fi
3899 >    if test -z "$MOD" ; then
3900 >        echo "$as_me:$LINENO: result: unknown" >&5
3901 > echo "${ECHO_T}unknown" >&6
3902 >        # Use mod if we can't figure it out
3903 >        MOD="mod"
3904 >    else
3905 >        echo "$as_me:$LINENO: result: $MOD" >&5
3906 > echo "${ECHO_T}$MOD" >&6
3907 >    fi
3908 >    if test -s work.pcl ; then
3909 >        { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
3910 > echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
3911 >    fi
3912 > else
3913 >    echo "$as_me:$LINENO: result: unknown" >&5
3914 > echo "${ECHO_T}unknown" >&6
3915 > fi
3916 >
3917 >
3918 >
3919 >
3920 >
3921 > # Check for module include path (some use -I, some (Solaris) use -M, some
3922 > # (absoft) use -p).
3923 > # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
3924 > # specified, work.pcl and work.pc are created.  However, if you specify
3925 > # a file, it must contain a the name of a file ending in .pc .  Ugh!
3926 > # Use the module made above
3927 > echo "$as_me:$LINENO: checking for module directory path flag" >&5
3928 > echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
3929 > rm -f conftest*
3930 > # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
3931 > rm -f work*
3932 > cat >conftest.f90 <<EOF
3933 >        module conftest
3934 >        integer n
3935 >        parameter (n=1)
3936 >        end module conftest
3937 > EOF
3938 > # SGI and absoft compilers generates module name in upper case!
3939 > testname="conftest"
3940 > if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
3941 >   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o`
3942 >   mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
3943 >   if test -n "$mod" ; then
3944 >      testname="CONFTEST"
3945 >   fi
3946 >   madedir=0
3947 >   if test ! -d conf ; then mkdir conf ; madedir=1; fi
3948 >   cp $testname.$MOD conf
3949 >   rm -f conftest* CONFTEST*
3950 >   cat >conftest1.f90 <<EOF
3951 >        program main
3952 >        use conftest
3953 >        print *, n
3954 >        end
3955 > EOF
3956 >   F90_WORK_FILES_ARG=""
3957 >   F90MODINCSPEC=""
3958 >   if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then
3959 >       MODDIRFLAG="-I"
3960 >       F90MODINCSPEC="-I<dir>"
3961 >       echo "$as_me:$LINENO: result: -I" >&5
3962 > echo "${ECHO_T}-I" >&6
3963 >   elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then
3964 >       MODDIRFLAG="-M"
3965 >       F90MODINCSPEC="-M<dir>"
3966 >       echo "$as_me:$LINENO: result: -M" >&5
3967 > echo "${ECHO_T}-M" >&6
3968 >   elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then
3969 >       MODDIRFLAG="-p"
3970 >       F90MODINCSPEC="-p<dir>"
3971 >       echo "$as_me:$LINENO: result: -p" >&5
3972 > echo "${ECHO_T}-p" >&6
3973 >   elif test -s work.pc ; then
3974 >        cp work.pc conf/mpimod.pc
3975 >        echo "mpimod.pc" > conf/mpimod.pcl
3976 >        echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
3977 >        if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
3978 >            MODDIRFLAG='-cl,mpimod.pcl'
3979 >            echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
3980 > echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6
3981 >            F90_WORK_FILES_ARG="-cl,mpimod.pcl"
3982 >            F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
3983 >
3984 >        else
3985 >            # The version of the Intel compiler that I have refuses to let
3986 >            # you put the "work catalog" list anywhere but the current
3987 >            # directory. For example, you cannot in
3988 >         :
3989 >        fi
3990 >   fi
3991 >   if test -z "MODDIRFLAG" ; then
3992 >       echo "$as_me:$LINENO: result: unknown" >&5
3993 > echo "${ECHO_T}unknown" >&6
3994 >   fi
3995 >
3996 >
3997 >   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
3998 >   if test $madedir = 1 ; then rmdir conf ; fi
3999 > fi
4000 >
4001 >
4002 >
4003 >
4004 > case $debug in
4005 >  1)
4006 >     ;;
4007 >  *)
4008 >
4009 >
4010 >
4011 >
4012 > # Try to determine "good" native compiler flags if none specified on command
4013 > # line
4014 > if test "$ac_test_CFLAGS" != "set"; then
4015 >  CFLAGS=""
4016 >  case "${host_cpu}-${host_os}" in
4017 >
4018 >  *linux*) if test "$CC" = icc; then
4019 >                    CFLAGS="-O"
4020 >                fi;;
4021 >  sparc-solaris2*) if test "$CC" = cc; then
4022 >                    CFLAGS="-native -fast -xO5 -dalign"
4023 >                 fi;;
4024 >
4025 >  alpha*-osf*)  if test "$CC" = cc; then
4026 >                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
4027 >                fi;;
4028 >
4029 >  hppa*-hpux*)  if test "$CC" = cc; then
4030 >                    CFLAGS="-Ae +O3 +Oall"
4031 >                fi;;
4032 >
4033 >   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
4034 >                    CFLAGS="-O3 -qtune=auto -qansialias -w"
4035 >                fi;;
4036 >   powerpc*-aix*)
4037 >        if test "$CC" = cc -o "$CC" = xlc; then
4038 >                CFLAGS="-O3 -qtune=auto -qansialias -w"
4039 >                echo "*******************************************************"
4040 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4041 >                echo "*  recommended that you use                           *"
4042 >                echo "*                                                     *"
4043 >                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4044 >                echo "*                                 ^^^                 *"
4045 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4046 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4047 >                echo "*******************************************************"
4048 >        fi;;
4049 >   *darwin*)
4050 >        if test "$CC" = xlc -o "$CC" = cc; then
4051 >                CFLAGS="-O3 -qtune=auto -w"
4052 >                echo "*******************************************************"
4053 >                echo "*  You have Darwin on an unknown powerpc system.      *"
4054 >                echo "*  It is recommended that you use                     *"
4055 >                echo "*                                                     *"
4056 >                echo "*  CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
4057 >                echo "*                               ^^^                   *"
4058 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4059 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4060 >                echo "*******************************************************"
4061 >        fi;;
4062 >  esac
4063 >
4064 >  # use default flags for gcc on all systems
4065 >  if test $ac_cv_c_compiler_gnu = yes; then
4066 >     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4067 >  fi
4068 >
4069 >  # test for gcc-specific flags:
4070 >  if test $ac_cv_c_compiler_gnu = yes; then
4071 >    # -malign-double for x86 systems
4072 >
4073 >
4074 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
4075 > echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
4076 > if test "${ac_align_double+set}" = set; then
4077 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4078 > else
4079 >  echo 'void f(){}' > conftest.c
4080 > if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
4081 >        ac_align_double=yes
4082 > else
4083 >        ac_align_double=no
4084 > fi
4085 > rm -f conftest*
4086 >
4087 > fi
4088 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
4089 > echo "${ECHO_T}$ac_align_double" >&6
4090 > if test "$ac_align_double" = yes; then
4091 >        :
4092 >        CFLAGS="$CFLAGS -malign-double"
4093 > else
4094 >        :
4095 >
4096 > fi
4097 >
4098 >    # -fstrict-aliasing for gcc-2.95+
4099 >
4100 >
4101 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
4102 > echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
4103 > if test "${ac_fstrict_aliasing+set}" = set; then
4104 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4105 > else
4106 >  echo 'void f(){}' > conftest.c
4107 > if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
4108 >        ac_fstrict_aliasing=yes
4109 > else
4110 >        ac_fstrict_aliasing=no
4111 > fi
4112 > rm -f conftest*
4113 >
4114 > fi
4115 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4116 > echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4117 > if test "$ac_fstrict_aliasing" = yes; then
4118 >        :
4119 >        CFLAGS="$CFLAGS -fstrict-aliasing"
4120 > else
4121 >        :
4122 >
4123 > fi
4124 >
4125 >  fi
4126 >
4127 >  CPU_FLAGS=""
4128 >  if test "$GCC" = "yes"; then
4129 >                  case "${host_cpu}" in
4130 >          i586*)
4131 >
4132 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4133 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
4134 > if test "${ac_cpu_pentium+set}" = set; then
4135 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4136 > else
4137 >  echo 'void f(){}' > conftest.c
4138 > if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
4139 >        ac_cpu_pentium=yes
4140 > else
4141 >        ac_cpu_pentium=no
4142 > fi
4143 > rm -f conftest*
4144 >
4145 > fi
4146 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4147 > echo "${ECHO_T}$ac_cpu_pentium" >&6
4148 > if test "$ac_cpu_pentium" = yes; then
4149 >        :
4150 >        CPU_FLAGS=-mcpu=pentium
4151 > else
4152 >        :
4153 >
4154 >
4155 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
4156 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
4157 > if test "${ac_pentium+set}" = set; then
4158 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4159 > else
4160 >  echo 'void f(){}' > conftest.c
4161 > if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
4162 >        ac_pentium=yes
4163 > else
4164 >        ac_pentium=no
4165 > fi
4166 > rm -f conftest*
4167 >
4168 > fi
4169 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
4170 > echo "${ECHO_T}$ac_pentium" >&6
4171 > if test "$ac_pentium" = yes; then
4172 >        :
4173 >        CPU_FLAGS=-mpentium
4174 > else
4175 >        :
4176 >
4177 > fi
4178 >
4179 > fi
4180 >
4181 >                  ;;
4182 >          i686*)
4183 >
4184 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
4185 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4186 > if test "${ac_cpu_pentiumpro+set}" = set; then
4187 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4188 > else
4189 >  echo 'void f(){}' > conftest.c
4190 > if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
4191 >        ac_cpu_pentiumpro=yes
4192 > else
4193 >        ac_cpu_pentiumpro=no
4194 > fi
4195 > rm -f conftest*
4196 >
4197 > fi
4198 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4199 > echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4200 > if test "$ac_cpu_pentiumpro" = yes; then
4201 >        :
4202 >        CPU_FLAGS=-mcpu=pentiumpro
4203 > else
4204 >        :
4205 >
4206 >
4207 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
4208 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
4209 > if test "${ac_pentiumpro+set}" = set; then
4210 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4211 > else
4212 >  echo 'void f(){}' > conftest.c
4213 > if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
4214 >        ac_pentiumpro=yes
4215 > else
4216 >        ac_pentiumpro=no
4217 > fi
4218 > rm -f conftest*
4219 >
4220 > fi
4221 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4222 > echo "${ECHO_T}$ac_pentiumpro" >&6
4223 > if test "$ac_pentiumpro" = yes; then
4224 >        :
4225 >        CPU_FLAGS=-mpentiumpro
4226 > else
4227 >        :
4228 >
4229 > fi
4230 >
4231 > fi
4232 >
4233 >                  ;;
4234 >          powerpc*)
4235 >                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
4236 >                is60x=`echo $cputype | egrep "^600-9e?$"`
4237 >                if test -n "$is60x"; then
4238 >
4239 >
4240 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
4241 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
4242 > if test "${ac_m_cpu_60x+set}" = set; then
4243 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4244 > else
4245 >  echo 'void f(){}' > conftest.c
4246 > if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
4247 >        ac_m_cpu_60x=yes
4248 > else
4249 >        ac_m_cpu_60x=no
4250 > fi
4251 > rm -f conftest*
4252 >
4253 > fi
4254 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4255 > echo "${ECHO_T}$ac_m_cpu_60x" >&6
4256 > if test "$ac_m_cpu_60x" = yes; then
4257 >        :
4258 >        CPU_FLAGS=-mcpu=$cputype
4259 > else
4260 >        :
4261 >
4262 > fi
4263 >
4264 >                elif test "$cputype" = 750; then
4265 >
4266 >
4267 > echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
4268 > echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
4269 > if test "${ac_cv_prog_gcc_2_95+set}" = set; then
4270 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4271 > else
4272 >
4273 > cat > conftest.c <<EOF
4274 > #ifdef __GNUC__
4275 > #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4276 >     yes;
4277 > #  endif
4278 > #endif
4279 > EOF
4280 > if { ac_try='${CC-cc} -E conftest.c'
4281 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4282 >  (eval $ac_try) 2>&5
4283 >  ac_status=$?
4284 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4286 >  ac_cv_prog_gcc_2_95=yes
4287 > else
4288 >  ac_cv_prog_gcc_2_95=no
4289 > fi
4290 >
4291 > fi
4292 > echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
4293 > echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
4294 > if test "$ac_cv_prog_gcc_2_95" = yes; then
4295 >        :
4296 >
4297 >
4298 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
4299 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
4300 > if test "${ac_m_cpu_750+set}" = set; then
4301 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4302 > else
4303 >  echo 'void f(){}' > conftest.c
4304 > if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
4305 >        ac_m_cpu_750=yes
4306 > else
4307 >        ac_m_cpu_750=no
4308 > fi
4309 > rm -f conftest*
4310 >
4311 > fi
4312 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
4313 > echo "${ECHO_T}$ac_m_cpu_750" >&6
4314 > if test "$ac_m_cpu_750" = yes; then
4315 >        :
4316 >        CPU_FLAGS=-mcpu=750
4317 > else
4318 >        :
4319 >
4320 > fi
4321 >
4322 > else
4323 >        :
4324 >
4325 > fi
4326 >
4327 >                fi
4328 >                if test -z "$CPU_FLAGS"; then
4329 >
4330 >
4331 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
4332 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
4333 > if test "${ac_m_cpu_powerpc+set}" = set; then
4334 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4335 > else
4336 >  echo 'void f(){}' > conftest.c
4337 > if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
4338 >        ac_m_cpu_powerpc=yes
4339 > else
4340 >        ac_m_cpu_powerpc=no
4341 > fi
4342 > rm -f conftest*
4343 >
4344 > fi
4345 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
4346 > echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
4347 > if test "$ac_m_cpu_powerpc" = yes; then
4348 >        :
4349 >        CPU_FLAGS=-mcpu=powerpc
4350 > else
4351 >        :
4352 >
4353 > fi
4354 >
4355 >                fi
4356 >                if test -z "$CPU_FLAGS"; then
4357 >
4358 >
4359 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
4360 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
4361 > if test "${ac_m_powerpc+set}" = set; then
4362 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4363 > else
4364 >  echo 'void f(){}' > conftest.c
4365 > if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
4366 >        ac_m_powerpc=yes
4367 > else
4368 >        ac_m_powerpc=no
4369 > fi
4370 > rm -f conftest*
4371 >
4372 > fi
4373 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
4374 > echo "${ECHO_T}$ac_m_powerpc" >&6
4375 > if test "$ac_m_powerpc" = yes; then
4376 >        :
4377 >        CPU_FLAGS=-mpowerpc
4378 > else
4379 >        :
4380 >
4381 > fi
4382 >
4383 >                fi
4384 >          esac
4385 >  fi
4386 >
4387 >  if test -n "$CPU_FLAGS"; then
4388 >        CFLAGS="$CFLAGS $CPU_FLAGS"
4389 >  fi
4390 >
4391 >  if test -z "$CFLAGS"; then
4392 >        echo ""
4393 >        echo "********************************************************"
4394 >        echo "* WARNING: Don't know the best CFLAGS for this system  *"
4395 >        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
4396 >        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
4397 >        echo "********************************************************"
4398 >        echo ""
4399 >        CFLAGS="-O3"
4400 >  fi
4401 >
4402 >
4403 >
4404 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
4405 > echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
4406 > if test "${ac_guessed_cflags+set}" = set; then
4407 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4408 > else
4409 >  echo 'void f(){}' > conftest.c
4410 > if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
4411 >        ac_guessed_cflags=yes
4412 > else
4413 >        ac_guessed_cflags=no
4414 > fi
4415 > rm -f conftest*
4416 >
4417 > fi
4418 > echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
4419 > echo "${ECHO_T}$ac_guessed_cflags" >&6
4420 > if test "$ac_guessed_cflags" = yes; then
4421 >        :
4422 >
4423 > else
4424 >        :
4425 >
4426 >        echo ""
4427 >        echo "********************************************************"
4428 >        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
4429 >        echo "* your compiler.                                       *"
4430 >        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
4431 >        echo "********************************************************"
4432 >        echo ""
4433 >        CFLAGS=""
4434 >
4435 > fi
4436 >
4437 >
4438 > fi
4439 >
4440 >
4441 >
4442 >
4443 >
4444 > # Try to determine "good" native compiler flags if none specified on command
4445 > # line
4446 > if test "$ac_test_CXXFLAGS" != "set"; then
4447 >  CXXFLAGS=""
4448 >  case "${host_cpu}-${host_os}" in
4449 >
4450 >  *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
4451 >                    CXXFLAGS="-O"
4452 >                fi;;
4453 >  sparc-solaris2*) if test "$CXX" = CC; then
4454 >                    CXXFLAGS="-native -fast -xO5 -dalign"
4455 >                 fi;;
4456 >   rs6000*-aix*)  if test "$CXX" = xlC; then
4457 >                    CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
4458 >                fi;;
4459 >   powerpc*-aix*)
4460 >        if test "$CXX" = xlC; then
4461 >                CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
4462 >                echo "*******************************************************"
4463 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4464 >                echo "*  recommended that you use                           *"
4465 >                echo "*                                                     *"
4466 >                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4467 >                echo "*                                 ^^^                 *"
4468 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4469 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4470 >                echo "*******************************************************"
4471 >        fi;;
4472 >   *darwin*)
4473 >        if test "$CXX" = xlC; then
4474 >                CXXFLAGS="-O3 -qtune=auto -qansialias -w"
4475 >                echo "*******************************************************"
4476 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4477 >                echo "*  recommended that you use                           *"
4478 >                echo "*                                                     *"
4479 >                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4480 >                echo "*                                 ^^^                 *"
4481 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4482 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4483 >                echo "*******************************************************"
4484 >        fi;;
4485 >  esac
4486 >
4487 >  # use default flags for gcc on all systems
4488 >  if test $ac_cv_c_compiler_gnu = yes; then
4489 >     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4490 >  fi
4491 >
4492 >  # test for gcc-specific flags:
4493 >  if test $ac_cv_c_compiler_gnu = yes; then
4494 >    # -malign-double for x86 systems
4495 >
4496 >
4497 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
4498 > echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
4499 > if test "${ac_align_double+set}" = set; then
4500 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4501 > else
4502 >  echo 'void f(){}' > conftest.cpp
4503 > if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
4504 >        ac_align_double=yes
4505 > else
4506 >        ac_align_double=no
4507 > fi
4508 > rm -f conftest*
4509 >
4510 > fi
4511 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
4512 > echo "${ECHO_T}$ac_align_double" >&6
4513 > if test "$ac_align_double" = yes; then
4514 >        :
4515 >        CXXFLAGS="$CXXFLAGS -malign-double"
4516 > else
4517 >        :
4518 >
4519 > fi
4520 >
4521 >    # -fstrict-aliasing for gcc-2.95+
4522 >
4523 >
4524 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
4525 > echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
4526 > if test "${ac_fstrict_aliasing+set}" = set; then
4527 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4528 > else
4529 >  echo 'void f(){}' > conftest.cpp
4530 > if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
4531 >        ac_fstrict_aliasing=yes
4532 > else
4533 >        ac_fstrict_aliasing=no
4534 > fi
4535 > rm -f conftest*
4536 >
4537 > fi
4538 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4539 > echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4540 > if test "$ac_fstrict_aliasing" = yes; then
4541 >        :
4542 >        CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
4543 > else
4544 >        :
4545 >
4546 > fi
4547 >
4548 >  fi
4549 >
4550 >  CPU_FLAGS=""
4551 >  if test "$GCC" = "yes"; then
4552 >                  case "${host_cpu}" in
4553 >          i586*)
4554 >
4555 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4556 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
4557 > if test "${ac_cpu_pentium+set}" = set; then
4558 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4559 > else
4560 >  echo 'void f(){}' > conftest.c
4561 > if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
4562 >        ac_cpu_pentium=yes
4563 > else
4564 >        ac_cpu_pentium=no
4565 > fi
4566 > rm -f conftest*
4567 >
4568 > fi
4569 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4570 > echo "${ECHO_T}$ac_cpu_pentium" >&6
4571 > if test "$ac_cpu_pentium" = yes; then
4572 >        :
4573 >        CPU_FLAGS=-mcpu=pentium
4574 > else
4575 >        :
4576 >
4577 >
4578 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
4579 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
4580 > if test "${ac_pentium+set}" = set; then
4581 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4582 > else
4583 >  echo 'void f(){}' > conftest.cpp
4584 > if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
4585 >        ac_pentium=yes
4586 > else
4587 >        ac_pentium=no
4588 > fi
4589 > rm -f conftest*
4590 >
4591 > fi
4592 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
4593 > echo "${ECHO_T}$ac_pentium" >&6
4594 > if test "$ac_pentium" = yes; then
4595 >        :
4596 >        CPU_FLAGS=-mpentium
4597 > else
4598 >        :
4599 >
4600 > fi
4601 >
4602 > fi
4603 >
4604 >                  ;;
4605 >          i686*)
4606 >
4607 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
4608 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4609 > if test "${ac_cpu_pentiumpro+set}" = set; then
4610 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4611 > else
4612 >  echo 'void f(){}' > conftest.cpp
4613 > if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
4614 >        ac_cpu_pentiumpro=yes
4615 > else
4616 >        ac_cpu_pentiumpro=no
4617 > fi
4618 > rm -f conftest*
4619 >
4620 > fi
4621 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4622 > echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4623 > if test "$ac_cpu_pentiumpro" = yes; then
4624 >        :
4625 >        CPU_FLAGS=-mcpu=pentiumpro
4626 > else
4627 >        :
4628 >
4629 >
4630 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
4631 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
4632 > if test "${ac_pentiumpro+set}" = set; then
4633 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4634 > else
4635 >  echo 'void f(){}' > conftest.cpp
4636 > if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
4637 >        ac_pentiumpro=yes
4638 > else
4639 >        ac_pentiumpro=no
4640 > fi
4641 > rm -f conftest*
4642 >
4643 > fi
4644 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4645 > echo "${ECHO_T}$ac_pentiumpro" >&6
4646 > if test "$ac_pentiumpro" = yes; then
4647 >        :
4648 >        CPU_FLAGS=-mpentiumpro
4649 > else
4650 >        :
4651 >
4652 > fi
4653 >
4654 > fi
4655 >
4656 >                  ;;
4657 >          powerpc*)
4658 >                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
4659 >                is60x=`echo $cputype | egrep "^600-9e?$"`
4660 >                if test -n "$is60x"; then
4661 >
4662 >
4663 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
4664 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
4665 > if test "${ac_m_cpu_60x+set}" = set; then
4666 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4667 > else
4668 >  echo 'void f(){}' > conftest.cpp
4669 > if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
4670 >        ac_m_cpu_60x=yes
4671 > else
4672 >        ac_m_cpu_60x=no
4673 > fi
4674 > rm -f conftest*
4675 >
4676 > fi
4677 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4678 > echo "${ECHO_T}$ac_m_cpu_60x" >&6
4679 > if test "$ac_m_cpu_60x" = yes; then
4680 >        :
4681 >        CPU_FLAGS=-mcpu=$cputype
4682 > else
4683 >        :
4684 >
4685 > fi
4686 >
4687 >                elif test "$cputype" = 750; then
4688 >
4689 >
4690 > echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
4691 > echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
4692 > if test "${ac_cv_prog_gcc_2_95+set}" = set; then
4693 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4694 > else
4695 >
4696 > cat > conftest.c <<EOF
4697 > #ifdef __GNUC__
4698 > #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4699 >     yes;
4700 > #  endif
4701 > #endif
4702 > EOF
4703 > if { ac_try='${CC-cc} -E conftest.c'
4704 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705 >  (eval $ac_try) 2>&5
4706 >  ac_status=$?
4707 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4709 >  ac_cv_prog_gcc_2_95=yes
4710 > else
4711 >  ac_cv_prog_gcc_2_95=no
4712 > fi
4713 >
4714 > fi
4715 > echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
4716 > echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
4717 > if test "$ac_cv_prog_gcc_2_95" = yes; then
4718 >        :
4719 >
4720 >
4721 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
4722 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
4723 > if test "${ac_m_cpu_750+set}" = set; then
4724 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4725 > else
4726 >  echo 'void f(){}' > conftest.cpp
4727 > if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
4728 >        ac_m_cpu_750=yes
4729 > else
4730 >        ac_m_cpu_750=no
4731 > fi
4732 > rm -f conftest*
4733 >
4734 > fi
4735 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
4736 > echo "${ECHO_T}$ac_m_cpu_750" >&6
4737 > if test "$ac_m_cpu_750" = yes; then
4738 >        :
4739 >        CPU_FLAGS=-mcpu=750
4740 > else
4741 >        :
4742 >
4743 > fi
4744 >
4745 > else
4746 >        :
4747 >
4748 > fi
4749 >
4750 >                fi
4751 >                if test -z "$CPU_FLAGS"; then
4752 >
4753 >
4754 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
4755 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
4756 > if test "${ac_m_cpu_powerpc+set}" = set; then
4757 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4758 > else
4759 >  echo 'void f(){}' > conftest.cpp
4760 > if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
4761 >        ac_m_cpu_powerpc=yes
4762 > else
4763 >        ac_m_cpu_powerpc=no
4764 > fi
4765 > rm -f conftest*
4766 >
4767 > fi
4768 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
4769 > echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
4770 > if test "$ac_m_cpu_powerpc" = yes; then
4771 >        :
4772 >        CPU_FLAGS=-mcpu=powerpc
4773 > else
4774 >        :
4775 >
4776 > fi
4777 >
4778 >                fi
4779 >                if test -z "$CPU_FLAGS"; then
4780 >
4781 >
4782 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
4783 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
4784 > if test "${ac_m_powerpc+set}" = set; then
4785 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4786 > else
4787 >  echo 'void f(){}' > conftest.cpp
4788 > if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
4789 >        ac_m_powerpc=yes
4790 > else
4791 >        ac_m_powerpc=no
4792 > fi
4793 > rm -f conftest*
4794 >
4795 > fi
4796 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
4797 > echo "${ECHO_T}$ac_m_powerpc" >&6
4798 > if test "$ac_m_powerpc" = yes; then
4799 >        :
4800 >        CPU_FLAGS=-mpowerpc
4801 > else
4802 >        :
4803 >
4804 > fi
4805 >
4806 >                fi
4807 >          esac
4808 >  fi
4809 >
4810 >  if test -n "$CPU_FLAGS"; then
4811 >        CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
4812 >  fi
4813 >
4814 >  if test -z "$CXXFLAGS"; then
4815 >        echo ""
4816 >        echo "**********************************************************"
4817 >        echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
4818 >        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
4819 >        echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *"
4820 >        echo "**********************************************************"
4821 >        echo ""
4822 >        CXXFLAGS="-O3"
4823 >  fi
4824 >
4825 >
4826 >
4827 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
4828 > echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
4829 > if test "${ac_guessed_cxxflags+set}" = set; then
4830 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4831 > else
4832 >  echo 'void f(){}' > conftest.cpp
4833 > if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
4834 >        ac_guessed_cxxflags=yes
4835 > else
4836 >        ac_guessed_cxxflags=no
4837 > fi
4838 > rm -f conftest*
4839 >
4840 > fi
4841 > echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
4842 > echo "${ECHO_T}$ac_guessed_cxxflags" >&6
4843 > if test "$ac_guessed_cxxflags" = yes; then
4844 >        :
4845 >
4846 > else
4847 >        :
4848 >
4849 >        echo ""
4850 >        echo "**********************************************************"
4851 >        echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *"
4852 >        echo "* your compiler.                                         *"
4853 >        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
4854 >        echo "**********************************************************"
4855 >        echo ""
4856 >        CXXFLAGS=""
4857 >
4858 > fi
4859 >
4860 >
4861 > fi
4862 >
4863 >
4864 >
4865 >
4866 >
4867 > # Try to determine "good" native compiler flags if none specified on command
4868 > # line
4869 >
4870 > if test x"$F90FLAGS" = x ; then
4871 >  F90FLAGS=""
4872 >  case "${host_cpu}-${host_os}" in
4873 >
4874 >  *linux*) if test "$F90" = ifc; then
4875 >                    F90FLAGS="-O"
4876 >                fi;;
4877 >   rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
4878 >                    F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
4879 >                fi;;
4880 >   powerpc*-aix*)
4881 >        if test "$F90" = f90 -o "$F90" = xlf90; then
4882 >                F90FLAGS="-O3 -qarch=ppc -qansialias -w"
4883 >                echo "*******************************************************"
4884 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4885 >                echo "*  recommended that you use                           *"
4886 >                echo "*                                                     *"
4887 >                echo "*  F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4888 >                echo "*                                 ^^^                 *"
4889 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4890 >                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
4891 >                echo "*******************************************************"
4892 >        fi;;
4893 >   *darwin*)
4894 >        if test "$F90" = f90 -o "$F90" = xlf90; then
4895 >                F90FLAGS="-O3 -qtune=auto -w"
4896 >                echo "*********************************************************"
4897 >                echo "*  You have Darwin on an unknown powerpc system.  It is *"
4898 >                echo "*  recommended that you use                             *"
4899 >                echo "*                                                       *"
4900 >                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w    *"
4901 >                echo "*                                 ^^^                   *"
4902 >                echo "*  where xxx is 601, 603, 604, or whatever kind of      *"
4903 >                echo "*  PowerPC CPU you have.   For more info, man xlf.      *"
4904 >                echo "*********************************************************"
4905 >        fi;;
4906 >  esac
4907 >
4908 >  if test -n "$CPU_FLAGS"; then
4909 >        F90FLAGS="$F90FLAGS $CPU_FLAGS"
4910 >  fi
4911 >
4912 >  if test -z "$F90FLAGS"; then
4913 >        echo ""
4914 >        echo "**********************************************************"
4915 >        echo "* WARNING: Don't know the best F90FLAGS for this system  *"
4916 >        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
4917 >        echo "* (otherwise, a default of F90FLAGS=-O3 will be used)    *"
4918 >        echo "**********************************************************"
4919 >        echo ""
4920 >        F90FLAGS="-O3"
4921 >  fi
4922 >
4923 >
4924 > echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
4925 > echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
4926 > if test "${ac_guessed_f90flags+set}" = set; then
4927 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4928 > else
4929 >
4930 >
4931 >
4932 > ac_ext=f90
4933 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4934 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4935 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4936 >
4937 > echo 'program main' > conftest.$ac_ext
4938 > echo 'end program main' >> conftest.$ac_ext
4939 > ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
4940 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4941 >  (eval $ac_compile) 2>&5
4942 >  ac_status=$?
4943 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 >  (exit $ac_status); }; then
4945 >        ac_guessed_f90flags=yes
4946 > else
4947 >        ac_guessed_f90flags=no
4948 > fi
4949 > rm -f conftest*
4950 > ac_ext=f90
4951 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4952 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4953 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4954 >
4955 >
4956 > fi
4957 > echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
4958 > echo "${ECHO_T}$ac_guessed_f90flags" >&6
4959 > if test "$ac_guessed_f90flags" = yes; then
4960 >        :
4961 >
4962 > else
4963 >        :
4964 >
4965 >        echo ""
4966 >        echo "**********************************************************"
4967 >        echo "* WARNING: The guessed F90FLAGS don't seem to work with  *"
4968 >        echo "* your compiler.                                         *"
4969 >        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
4970 >        echo "**********************************************************"
4971 >        echo ""
4972 >        F90FLAGS=""
4973 >
4974 > fi
4975 >
4976 >
4977 > fi
4978 >
4979 >     ;;
4980 > esac
4981 >
4982 > # Find a good install program.  We prefer a C program (faster),
4983 > # so one script is as good as another.  But avoid the broken or
4984 > # incompatible versions:
4985 > # SysV /etc/install, /usr/sbin/install
4986 > # SunOS /usr/etc/install
4987 > # IRIX /sbin/install
4988 > # AIX /bin/install
4989 > # AmigaOS /C/install, which installs bootblocks on floppy discs
4990 > # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4991 > # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4992 > # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4993 > # ./install, which can be erroneously created by make from ./install.sh.
4994 > echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4995 > echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4996 > if test -z "$INSTALL"; then
4997 > if test "${ac_cv_path_install+set}" = set; then
4998 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4999 > else
5000 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 > for as_dir in $PATH
5002 > do
5003 >  IFS=$as_save_IFS
5004 >  test -z "$as_dir" && as_dir=.
5005 >  # Account for people who put trailing slashes in PATH elements.
5006 > case $as_dir/ in
5007 >  ./ | .// | /cC/* | \
5008 >  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5009 >  /usr/ucb/* ) ;;
5010 >  *)
5011 >    # OSF1 and SCO ODT 3.0 have their own names for install.
5012 >    # Don't use installbsd from OSF since it installs stuff as root
5013 >    # by default.
5014 >    for ac_prog in ginstall scoinst install; do
5015 >      for ac_exec_ext in '' $ac_executable_extensions; do
5016 >        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5017 >          if test $ac_prog = install &&
5018 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5019 >            # AIX install.  It has an incompatible calling convention.
5020 >            :
5021 >          elif test $ac_prog = install &&
5022 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5023 >            # program-specific install script used by HP pwplus--don't use.
5024 >            :
5025 >          else
5026 >            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5027 >            break 3
5028 >          fi
5029 >        fi
5030 >      done
5031 >    done
5032 >    ;;
5033 > esac
5034 > done
5035 >
5036 >
5037 > fi
5038 >  if test "${ac_cv_path_install+set}" = set; then
5039 >    INSTALL=$ac_cv_path_install
5040 >  else
5041 >    # As a last resort, use the slow shell script.  We don't cache a
5042 >    # path for INSTALL within a source directory, because that will
5043 >    # break other packages using the cache if that directory is
5044 >    # removed, or if the path is relative.
5045 >    INSTALL=$ac_install_sh
5046 >  fi
5047 > fi
5048 > echo "$as_me:$LINENO: result: $INSTALL" >&5
5049 > echo "${ECHO_T}$INSTALL" >&6
5050 >
5051 > # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5052 > # It thinks the first close brace ends the variable substitution.
5053 > test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5054 >
5055 > test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5056 >
5057 > test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5058 >
5059 > echo "$as_me:$LINENO: checking whether ln -s works" >&5
5060 > echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5061 > LN_S=$as_ln_s
5062 > if test "$LN_S" = "ln -s"; then
5063 >  echo "$as_me:$LINENO: result: yes" >&5
5064 > echo "${ECHO_T}yes" >&6
5065 > else
5066 >  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5067 > echo "${ECHO_T}no, using $LN_S" >&6
5068 > fi
5069 >
5070 > echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5071 > echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5072 > set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5073 > if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5074 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5075 > else
5076 >  cat >conftest.make <<\_ACEOF
5077 > all:
5078 >        @echo 'ac_maketemp="$(MAKE)"'
5079 > _ACEOF
5080 > # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5081 > eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5082 > if test -n "$ac_maketemp"; then
5083 >  eval ac_cv_prog_make_${ac_make}_set=yes
5084 > else
5085 >  eval ac_cv_prog_make_${ac_make}_set=no
5086 > fi
5087 > rm -f conftest.make
5088 > fi
5089 > if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5090 >  echo "$as_me:$LINENO: result: yes" >&5
5091 > echo "${ECHO_T}yes" >&6
5092 >  SET_MAKE=
5093 > else
5094 >  echo "$as_me:$LINENO: result: no" >&5
5095 > echo "${ECHO_T}no" >&6
5096 >  SET_MAKE="MAKE=${MAKE-make}"
5097 > fi
5098 >
5099 > if test -n "$ac_tool_prefix"; then
5100 >  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5101 > set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5102 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5103 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5104 > if test "${ac_cv_prog_RANLIB+set}" = set; then
5105 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5106 > else
5107 >  if test -n "$RANLIB"; then
5108 >  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5109 > else
5110 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 > for as_dir in $PATH
5112 > do
5113 >  IFS=$as_save_IFS
5114 >  test -z "$as_dir" && as_dir=.
5115 >  for ac_exec_ext in '' $ac_executable_extensions; do
5116 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5117 >    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5118 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 >    break 2
5120 >  fi
5121 > done
5122 > done
5123 >
5124 > fi
5125 > fi
5126 > RANLIB=$ac_cv_prog_RANLIB
5127 > if test -n "$RANLIB"; then
5128 >  echo "$as_me:$LINENO: result: $RANLIB" >&5
5129 > echo "${ECHO_T}$RANLIB" >&6
5130 > else
5131 >  echo "$as_me:$LINENO: result: no" >&5
5132 > echo "${ECHO_T}no" >&6
5133 > fi
5134 >
5135 > fi
5136 > if test -z "$ac_cv_prog_RANLIB"; then
5137 >  ac_ct_RANLIB=$RANLIB
5138 >  # Extract the first word of "ranlib", so it can be a program name with args.
5139 > set dummy ranlib; ac_word=$2
5140 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142 > if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5143 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5144 > else
5145 >  if test -n "$ac_ct_RANLIB"; then
5146 >  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5147 > else
5148 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 > for as_dir in $PATH
5150 > do
5151 >  IFS=$as_save_IFS
5152 >  test -z "$as_dir" && as_dir=.
5153 >  for ac_exec_ext in '' $ac_executable_extensions; do
5154 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 >    ac_cv_prog_ac_ct_RANLIB="ranlib"
5156 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 >    break 2
5158 >  fi
5159 > done
5160 > done
5161 >
5162 >  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5163 > fi
5164 > fi
5165 > ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5166 > if test -n "$ac_ct_RANLIB"; then
5167 >  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5168 > echo "${ECHO_T}$ac_ct_RANLIB" >&6
5169 > else
5170 >  echo "$as_me:$LINENO: result: no" >&5
5171 > echo "${ECHO_T}no" >&6
5172 > fi
5173 >
5174 >  RANLIB=$ac_ct_RANLIB
5175 > else
5176 >  RANLIB="$ac_cv_prog_RANLIB"
5177 > fi
5178 >
5179 > for ac_prog in 'bison -y' byacc
5180 > do
5181 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
5182 > set dummy $ac_prog; ac_word=$2
5183 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5184 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5185 > if test "${ac_cv_prog_YACC+set}" = set; then
5186 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5187 > else
5188 >  if test -n "$YACC"; then
5189 >  ac_cv_prog_YACC="$YACC" # Let the user override the test.
5190 > else
5191 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 > for as_dir in $PATH
5193 > do
5194 >  IFS=$as_save_IFS
5195 >  test -z "$as_dir" && as_dir=.
5196 >  for ac_exec_ext in '' $ac_executable_extensions; do
5197 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198 >    ac_cv_prog_YACC="$ac_prog"
5199 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 >    break 2
5201 >  fi
5202 > done
5203 > done
5204 >
5205 > fi
5206 > fi
5207 > YACC=$ac_cv_prog_YACC
5208 > if test -n "$YACC"; then
5209 >  echo "$as_me:$LINENO: result: $YACC" >&5
5210 > echo "${ECHO_T}$YACC" >&6
5211 > else
5212 >  echo "$as_me:$LINENO: result: no" >&5
5213 > echo "${ECHO_T}no" >&6
5214 > fi
5215 >
5216 >  test -n "$YACC" && break
5217 > done
5218 > test -n "$YACC" || YACC="yacc"
5219 >
5220 > for ac_prog in flex lex
5221 > do
5222 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
5223 > set dummy $ac_prog; ac_word=$2
5224 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5226 > if test "${ac_cv_prog_LEX+set}" = set; then
5227 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5228 > else
5229 >  if test -n "$LEX"; then
5230 >  ac_cv_prog_LEX="$LEX" # Let the user override the test.
5231 > else
5232 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 > for as_dir in $PATH
5234 > do
5235 >  IFS=$as_save_IFS
5236 >  test -z "$as_dir" && as_dir=.
5237 >  for ac_exec_ext in '' $ac_executable_extensions; do
5238 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5239 >    ac_cv_prog_LEX="$ac_prog"
5240 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 >    break 2
5242 >  fi
5243 > done
5244 > done
5245 >
5246 > fi
5247 > fi
5248 > LEX=$ac_cv_prog_LEX
5249 > if test -n "$LEX"; then
5250 >  echo "$as_me:$LINENO: result: $LEX" >&5
5251 > echo "${ECHO_T}$LEX" >&6
5252 > else
5253 >  echo "$as_me:$LINENO: result: no" >&5
5254 > echo "${ECHO_T}no" >&6
5255 > fi
5256 >
5257 >  test -n "$LEX" && break
5258 > done
5259 > test -n "$LEX" || LEX=":"
5260 >
5261 > if test -z "$LEXLIB"
5262 > then
5263 >  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5264 > echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5265 > if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5266 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5267 > else
5268 >  ac_check_lib_save_LIBS=$LIBS
5269 > LIBS="-lfl  $LIBS"
5270 > cat >conftest.$ac_ext <<_ACEOF
5271 >
5272 > program main
5273 >
5274 > call yywrap
5275 > end program main
5276 >
5277 > _ACEOF
5278 > rm -f conftest.$ac_objext conftest$ac_exeext
5279 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5280 >  (eval $ac_link) 2>&5
5281 >  ac_status=$?
5282 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 >  (exit $ac_status); } &&
5284 >         { ac_try='test -s conftest$ac_exeext'
5285 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286 >  (eval $ac_try) 2>&5
5287 >  ac_status=$?
5288 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 >  (exit $ac_status); }; }; then
5290 >  ac_cv_lib_fl_yywrap=yes
5291 > else
5292 >  echo "$as_me: failed program was:" >&5
5293 > sed 's/^/| /' conftest.$ac_ext >&5
5294 >
5295 > ac_cv_lib_fl_yywrap=no
5296 > fi
5297 > rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5298 > LIBS=$ac_check_lib_save_LIBS
5299 > fi
5300 > echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5301 > echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5302 > if test $ac_cv_lib_fl_yywrap = yes; then
5303 >  LEXLIB="-lfl"
5304 > else
5305 >  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5306 > echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5307 > if test "${ac_cv_lib_l_yywrap+set}" = set; then
5308 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5309 > else
5310 >  ac_check_lib_save_LIBS=$LIBS
5311 > LIBS="-ll  $LIBS"
5312 > cat >conftest.$ac_ext <<_ACEOF
5313 >
5314 > program main
5315 >
5316 > call yywrap
5317 > end program main
5318 >
5319 > _ACEOF
5320 > rm -f conftest.$ac_objext conftest$ac_exeext
5321 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5322 >  (eval $ac_link) 2>&5
5323 >  ac_status=$?
5324 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 >  (exit $ac_status); } &&
5326 >         { ac_try='test -s conftest$ac_exeext'
5327 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 >  (eval $ac_try) 2>&5
5329 >  ac_status=$?
5330 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 >  (exit $ac_status); }; }; then
5332 >  ac_cv_lib_l_yywrap=yes
5333 > else
5334 >  echo "$as_me: failed program was:" >&5
5335 > sed 's/^/| /' conftest.$ac_ext >&5
5336 >
5337 > ac_cv_lib_l_yywrap=no
5338 > fi
5339 > rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5340 > LIBS=$ac_check_lib_save_LIBS
5341 > fi
5342 > echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5343 > echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5344 > if test $ac_cv_lib_l_yywrap = yes; then
5345 >  LEXLIB="-ll"
5346 > fi
5347 >
5348 > fi
5349 >
5350 > fi
5351 >
5352 > if test "x$LEX" != "x:"; then
5353 >  echo "$as_me:$LINENO: checking lex output file root" >&5
5354 > echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5355 > if test "${ac_cv_prog_lex_root+set}" = set; then
5356 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5357 > else
5358 >  # The minimal lex program is just a single line: %%.  But some broken lexes
5359 > # (Solaris, I think it was) want two %% lines, so accommodate them.
5360 > cat >conftest.l <<_ACEOF
5361 > %%
5362 > %%
5363 > _ACEOF
5364 > { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5365 >  (eval $LEX conftest.l) 2>&5
5366 >  ac_status=$?
5367 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 >  (exit $ac_status); }
5369 > if test -f lex.yy.c; then
5370 >  ac_cv_prog_lex_root=lex.yy
5371 > elif test -f lexyy.c; then
5372 >  ac_cv_prog_lex_root=lexyy
5373 > else
5374 >  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5375 > echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5376 >   { (exit 1); exit 1; }; }
5377 > fi
5378 > fi
5379 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5380 > echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5381 > rm -f conftest.l
5382 > LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5383 >
5384 > echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5385 > echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5386 > if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5387 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5388 > else
5389 >  # POSIX says lex can declare yytext either as a pointer or an array; the
5390 > # default is implementation-dependent. Figure out which it is, since
5391 > # not all implementations provide the %pointer and %array declarations.
5392 > ac_cv_prog_lex_yytext_pointer=no
5393 > echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5394 > ac_save_LIBS=$LIBS
5395 > LIBS="$LIBS $LEXLIB"
5396 > cat >conftest.$ac_ext <<_ACEOF
5397 > `cat $LEX_OUTPUT_ROOT.c`
5398 > _ACEOF
5399 > rm -f conftest.$ac_objext conftest$ac_exeext
5400 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5401 >  (eval $ac_link) 2>&5
5402 >  ac_status=$?
5403 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 >  (exit $ac_status); } &&
5405 >         { ac_try='test -s conftest$ac_exeext'
5406 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 >  (eval $ac_try) 2>&5
5408 >  ac_status=$?
5409 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 >  (exit $ac_status); }; }; then
5411 >  ac_cv_prog_lex_yytext_pointer=yes
5412 > else
5413 >  echo "$as_me: failed program was:" >&5
5414 > sed 's/^/| /' conftest.$ac_ext >&5
5415 >
5416 > fi
5417 > rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5418 > LIBS=$ac_save_LIBS
5419 > rm -f "${LEX_OUTPUT_ROOT}.c"
5420 >
5421 > fi
5422 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5423 > echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5424 > if test $ac_cv_prog_lex_yytext_pointer = yes; then
5425 >
5426 > cat >>confdefs.h <<\_ACEOF
5427 > #define YYTEXT_POINTER 1
5428 > _ACEOF
5429 >
5430 > fi
5431 >
5432 > fi
5433 > # Extract the first word of "ar", so it can be a program name with args.
5434 > set dummy ar; ac_word=$2
5435 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5436 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5437 > if test "${ac_cv_prog_AR+set}" = set; then
5438 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5439 > else
5440 >  if test -n "$AR"; then
5441 >  ac_cv_prog_AR="$AR" # Let the user override the test.
5442 > else
5443 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 > for as_dir in $PATH
5445 > do
5446 >  IFS=$as_save_IFS
5447 >  test -z "$as_dir" && as_dir=.
5448 >  for ac_exec_ext in '' $ac_executable_extensions; do
5449 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450 >    ac_cv_prog_AR="ar"
5451 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 >    break 2
5453 >  fi
5454 > done
5455 > done
5456 >
5457 >  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
5458 > fi
5459 > fi
5460 > AR=$ac_cv_prog_AR
5461 > if test -n "$AR"; then
5462 >  echo "$as_me:$LINENO: result: $AR" >&5
5463 > echo "${ECHO_T}$AR" >&6
5464 > else
5465 >  echo "$as_me:$LINENO: result: no" >&5
5466 > echo "${ECHO_T}no" >&6
5467 > fi
5468  
5469 <          cat >>confdefs.h <<\_ACEOF
5470 < #define F90_FUNC_(name,NAME) NAME
5471 < _ACEOF
5472 < ;;
5473 <  "upper case, no underscore, extra underscore")
5474 <          cat >>confdefs.h <<\_ACEOF
5475 < #define F90_FUNC(name,NAME) NAME
5476 < _ACEOF
5469 > if test "$AR" = "NONE"; then
5470 >  { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
5471 > echo "$as_me: error: --> Can't find \`ar'!" >&2;}
5472 >   { (exit 1); exit 1; }; }
5473 >  cat >confcache <<\_ACEOF
5474 > # This file is a shell script that caches the results of configure
5475 > # tests run on this system so they can be shared between configure
5476 > # scripts and configure runs, see configure's option --config-cache.
5477 > # It is not useful on other systems.  If it contains results you don't
5478 > # want to keep, you may remove or edit it.
5479 > #
5480 > # config.status only pays attention to the cache file if you give it
5481 > # the --recheck option to rerun configure.
5482 > #
5483 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
5484 > # loading this file, other *unset* `ac_cv_foo' will be assigned the
5485 > # following values.
5486  
5337          cat >>confdefs.h <<\_ACEOF
5338 #define F90_FUNC_(name,NAME) NAME ## _
5487   _ACEOF
5340 ;;
5341  "upper case, underscore, no extra underscore")
5342          cat >>confdefs.h <<\_ACEOF
5343 #define F90_FUNC(name,NAME) NAME ## _
5344 _ACEOF
5488  
5489 <          cat >>confdefs.h <<\_ACEOF
5490 < #define F90_FUNC_(name,NAME) NAME ## _
5491 < _ACEOF
5492 < ;;
5493 <  "upper case, underscore, extra underscore")
5494 <          cat >>confdefs.h <<\_ACEOF
5495 < #define F90_FUNC(name,NAME) NAME ## _
5496 < _ACEOF
5497 <
5498 <          cat >>confdefs.h <<\_ACEOF
5499 < #define F90_FUNC_(name,NAME) NAME ## __
5500 < _ACEOF
5501 < ;;
5502 <  *)
5503 <          { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
5504 < echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
5505 <          ;;
5506 < esac
5507 <
5508 <
5509 <
5489 > # The following way of writing the cache mishandles newlines in values,
5490 > # but we know of no workaround that is simple, portable, and efficient.
5491 > # So, don't put newlines in cache variables' values.
5492 > # Ultrix sh set writes to stderr and can't be redirected directly,
5493 > # and sets the high bit in the cache file unless we assign to the vars.
5494 > {
5495 >  (set) 2>&1 |
5496 >    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5497 >    *ac_space=\ *)
5498 >      # `set' does not quote correctly, so add quotes (double-quote
5499 >      # substitution turns \\\\ into \\, and sed turns \\ into \).
5500 >      sed -n \
5501 >        "s/'/'\\\\''/g;
5502 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5503 >      ;;
5504 >    *)
5505 >      # `set' quotes correctly as required by POSIX, so do not add quotes.
5506 >      sed -n \
5507 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5508 >      ;;
5509 >    esac;
5510 > } |
5511 >  sed '
5512 >     t clear
5513 >     : clear
5514 >     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5515 >     t end
5516 >     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5517 >     : end' >>confcache
5518 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
5519 >  if test -w $cache_file; then
5520 >    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5521 >    cat confcache >$cache_file
5522 >  else
5523 >    echo "not updating unwritable cache $cache_file"
5524 >  fi
5525 > fi
5526 > rm -f confcache
5527 >  exit 1
5528 > fi
5529  
5530   echo "$as_me:$LINENO: checking for mpi-directory" >&5
5531   echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
# Line 5441 | Line 5603 | echo "${ECHO_T}found $MPI_LIB" >&6
5603      echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5604   echo "${ECHO_T}found $MPI_LIB" >&6
5605    ;;
5606 <  *)                             if test -f "$MPI_LIBDIR/libmpi.a" ; then
5607 <      MPI_LIB="-lmpi"
5606 >  *)                             if test -f "$MPI_LIBDIR/libmpich.a" ; then
5607 >      MPI_LIB="-lmpich"
5608      elif test -f "$MPI_LIBDIR/libmpi.so" ; then
5609        MPI_LIB="-lmpi"
5610 <    elif test -f "$MPI_LIBDIR/libmpich.a" ; then
5611 <      MPI_LIB="-lmpich"
5610 >    elif test -f "$MPI_LIBDIR/libmpi.a" ; then
5611 >      MPI_LIB="-lmpi"
5612      else
5613        { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5614   echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
# Line 5655 | Line 5817 | ac_ext=c
5817   fi
5818  
5819  
5820 +
5821 +
5822 +
5823 + # Check whether --with-mpi_f90_mods or --without-mpi_f90_mods was given.
5824 + if test "${with_mpi_f90_mods+set}" = set; then
5825 +  withval="$with_mpi_f90_mods"
5826 +  mpi_f90_mods="$withval"
5827 + else
5828 +  mpi_f90_mods="/usr/local/include/f90choice"
5829 + fi;
5830 +
5831 +  echo "$as_me:$LINENO: checking for MPI F90 modules" >&5
5832 + echo $ECHO_N "checking for MPI F90 modules... $ECHO_C" >&6
5833 +
5834 +
5835 +  ac_ext=f90
5836 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5837 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5838 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5839 +
5840 +  ac_save_F90FLAGS=$F90FLAGS
5841 +
5842 +  if test "$mpi_f90_mods"; then
5843 +  F90FLAGS="${F90FLAGS} ${MODDIRFLAG}${mpi_f90_mods}"
5844 + fi
5845 +
5846 +    cat >conftest.$ac_ext <<_ACEOF
5847 +
5848 +
5849 + program main
5850 +
5851 + use mpi
5852 + integer :: ierr
5853 + call MPI_Init(ierr)
5854 +
5855 +
5856 + end program main
5857 +
5858 + _ACEOF
5859 + rm -f conftest.$ac_objext
5860 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861 +  (eval $ac_compile) 2>&5
5862 +  ac_status=$?
5863 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 +  (exit $ac_status); } &&
5865 +         { ac_try='test -s conftest.$ac_objext'
5866 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867 +  (eval $ac_try) 2>&5
5868 +  ac_status=$?
5869 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 +  (exit $ac_status); }; }; then
5871 +  HAVE_MPI_MOD=1
5872 + else
5873 +  echo "$as_me: failed program was:" >&5
5874 + sed 's/^/| /' conftest.$ac_ext >&5
5875 +
5876 + HAVE_MPI_MOD=0
5877 + fi
5878 + rm -f conftest.$ac_objext conftest.$ac_ext
5879 +
5880 +  F90FLAGS=$ac_save_F90FLAGS
5881 +  ac_ext=f90
5882 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5883 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5884 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5885 +
5886 +
5887 +  if test "$HAVE_MPI_MOD" = 1; then
5888 +    echo "$as_me:$LINENO: result: yes" >&5
5889 + echo "${ECHO_T}yes" >&6
5890 +
5891 + cat >>confdefs.h <<\_ACEOF
5892 + #define MPI_MOD 1
5893 + _ACEOF
5894 +
5895 +    MPI_F90_MODS="${mpi_f90_mods}"
5896 +
5897 +    # The library name:
5898 +    if test -z "$MPI_LIB" ; then
5899 +       MPI_LIBNAME=-lmpich
5900 +    else
5901 +       MPI_LIBNAME="$MPI_LIB"
5902 +    fi
5903 +    if test -z "$MPIMODLIBNAME" ; then
5904 +       MPIMODLIBNAME="${MPI_LIBNAME}f90"
5905 +    fi
5906 +
5907 +  else
5908 +    echo "$as_me:$LINENO: result: no" >&5
5909 + echo "${ECHO_T}no" >&6
5910 +    { echo "$as_me:$LINENO: WARNING: Couldn't locate MPI F90 Modules" >&5
5911 + echo "$as_me: WARNING: Couldn't locate MPI F90 Modules" >&2;}
5912 +  fi
5913 +
5914 +
5915 +
5916 + if test "$HAVE_MPI_MOD" = 1; then
5917 +
5918 + cat >>confdefs.h <<\_ACEOF
5919 + #define MPI_MOD 1
5920 + _ACEOF
5921 +
5922 + else
5923 +        ac_ext=f90
5924 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5925 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5927 +
5928 +        echo "$as_me:$LINENO: checking for egrep" >&5
5929 + echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5930 + if test "${ac_cv_prog_egrep+set}" = set; then
5931 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5932 + else
5933 +  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5934 +    then ac_cv_prog_egrep='grep -E'
5935 +    else ac_cv_prog_egrep='egrep'
5936 +    fi
5937 + fi
5938 + echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5939 + echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5940 + EGREP=$ac_cv_prog_egrep
5941 +
5942 +
5943 + echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5944 + echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5945 + if test "${ac_cv_header_stdc+set}" = set; then
5946 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5947 + else
5948 +  cat >conftest.$ac_ext <<_ACEOF
5949 +
5950 + program main
5951 + #include <stdlib.h>
5952 + #include <stdarg.h>
5953 + #include <string.h>
5954 + #include <float.h>
5955 +
5956 +
5957 + end program main
5958 +
5959 + _ACEOF
5960 + rm -f conftest.$ac_objext
5961 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5962 +  (eval $ac_compile) 2>&5
5963 +  ac_status=$?
5964 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 +  (exit $ac_status); } &&
5966 +         { ac_try='test -s conftest.$ac_objext'
5967 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 +  (eval $ac_try) 2>&5
5969 +  ac_status=$?
5970 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 +  (exit $ac_status); }; }; then
5972 +  ac_cv_header_stdc=yes
5973 + else
5974 +  echo "$as_me: failed program was:" >&5
5975 + sed 's/^/| /' conftest.$ac_ext >&5
5976 +
5977 + ac_cv_header_stdc=no
5978 + fi
5979 + rm -f conftest.$ac_objext conftest.$ac_ext
5980 +
5981 + if test $ac_cv_header_stdc = yes; then
5982 +  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5983 +  cat >conftest.$ac_ext <<_ACEOF
5984 + #include <string.h>
5985 +
5986 + _ACEOF
5987 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5988 +  $EGREP "memchr" >/dev/null 2>&1; then
5989 +  :
5990 + else
5991 +  ac_cv_header_stdc=no
5992 + fi
5993 + rm -f conftest*
5994 +
5995 + fi
5996 +
5997 + if test $ac_cv_header_stdc = yes; then
5998 +  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5999 +  cat >conftest.$ac_ext <<_ACEOF
6000 + #include <stdlib.h>
6001 +
6002 + _ACEOF
6003 + if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6004 +  $EGREP "free" >/dev/null 2>&1; then
6005 +  :
6006 + else
6007 +  ac_cv_header_stdc=no
6008 + fi
6009 + rm -f conftest*
6010 +
6011 + fi
6012 +
6013 + if test $ac_cv_header_stdc = yes; then
6014 +  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6015 +  if test "$cross_compiling" = yes; then
6016 +  :
6017 + else
6018 +  cat >conftest.$ac_ext <<_ACEOF
6019 + #include <ctype.h>
6020 + #if ((' ' & 0x0FF) == 0x020)
6021 + # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6022 + # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6023 + #else
6024 + # define ISLOWER(c) \
6025 +                   (('a' <= (c) && (c) <= 'i') \
6026 +                     || ('j' <= (c) && (c) <= 'r') \
6027 +                     || ('s' <= (c) && (c) <= 'z'))
6028 + # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6029 + #endif
6030 +
6031 + #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6032 + int
6033 + main ()
6034 + {
6035 +  int i;
6036 +  for (i = 0; i < 256; i++)
6037 +    if (XOR (islower (i), ISLOWER (i))
6038 +        || toupper (i) != TOUPPER (i))
6039 +      exit(2);
6040 +  exit (0);
6041 + }
6042 + _ACEOF
6043 + rm -f conftest$ac_exeext
6044 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6045 +  (eval $ac_link) 2>&5
6046 +  ac_status=$?
6047 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 +  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6049 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050 +  (eval $ac_try) 2>&5
6051 +  ac_status=$?
6052 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 +  (exit $ac_status); }; }; then
6054 +  :
6055 + else
6056 +  echo "$as_me: program exited with status $ac_status" >&5
6057 + echo "$as_me: failed program was:" >&5
6058 + sed 's/^/| /' conftest.$ac_ext >&5
6059 +
6060 + ( exit $ac_status )
6061 + ac_cv_header_stdc=no
6062 + fi
6063 + rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6064 + fi
6065 + fi
6066 + fi
6067 + echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6068 + echo "${ECHO_T}$ac_cv_header_stdc" >&6
6069 + if test $ac_cv_header_stdc = yes; then
6070 +
6071 + cat >>confdefs.h <<\_ACEOF
6072 + #define STDC_HEADERS 1
6073 + _ACEOF
6074 +
6075 + fi
6076 +
6077 + # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6078 +
6079 +
6080 +
6081 +
6082 +
6083 +
6084 +
6085 +
6086 +
6087 + for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6088 +                  inttypes.h stdint.h unistd.h
6089 + do
6090 + as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6091 + echo "$as_me:$LINENO: checking for $ac_header" >&5
6092 + echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6093 + if eval "test \"\${$as_ac_Header+set}\" = set"; then
6094 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6095 + else
6096 +  cat >conftest.$ac_ext <<_ACEOF
6097 + $ac_includes_default
6098 +
6099 + #include <$ac_header>
6100 + _ACEOF
6101 + rm -f conftest.$ac_objext
6102 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6103 +  (eval $ac_compile) 2>&5
6104 +  ac_status=$?
6105 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 +  (exit $ac_status); } &&
6107 +         { ac_try='test -s conftest.$ac_objext'
6108 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109 +  (eval $ac_try) 2>&5
6110 +  ac_status=$?
6111 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 +  (exit $ac_status); }; }; then
6113 +  eval "$as_ac_Header=yes"
6114 + else
6115 +  echo "$as_me: failed program was:" >&5
6116 + sed 's/^/| /' conftest.$ac_ext >&5
6117 +
6118 + eval "$as_ac_Header=no"
6119 + fi
6120 + rm -f conftest.$ac_objext conftest.$ac_ext
6121 + fi
6122 + echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6123 + echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6124 + if test `eval echo '${'$as_ac_Header'}'` = yes; then
6125 +  cat >>confdefs.h <<_ACEOF
6126 + #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6127 + _ACEOF
6128 +
6129 + fi
6130 +
6131 + done
6132 +
6133 +
6134 +
6135 + for ac_header in mpif.h
6136 + do
6137 + as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6138 + if eval "test \"\${$as_ac_Header+set}\" = set"; then
6139 +  echo "$as_me:$LINENO: checking for $ac_header" >&5
6140 + echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6141 + if eval "test \"\${$as_ac_Header+set}\" = set"; then
6142 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6143 + fi
6144 + echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6145 + echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6146 + else
6147 +  # Is the header compilable?
6148 + echo "$as_me:$LINENO: checking $ac_header usability" >&5
6149 + echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6150 + cat >conftest.$ac_ext <<_ACEOF
6151 + $ac_includes_default
6152 + #include <$ac_header>
6153 + _ACEOF
6154 + rm -f conftest.$ac_objext
6155 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6156 +  (eval $ac_compile) 2>&5
6157 +  ac_status=$?
6158 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 +  (exit $ac_status); } &&
6160 +         { ac_try='test -s conftest.$ac_objext'
6161 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6162 +  (eval $ac_try) 2>&5
6163 +  ac_status=$?
6164 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 +  (exit $ac_status); }; }; then
6166 +  ac_header_compiler=yes
6167 + else
6168 +  echo "$as_me: failed program was:" >&5
6169 + sed 's/^/| /' conftest.$ac_ext >&5
6170 +
6171 + ac_header_compiler=no
6172 + fi
6173 + rm -f conftest.$ac_objext conftest.$ac_ext
6174 + echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6175 + echo "${ECHO_T}$ac_header_compiler" >&6
6176 +
6177 + # Is the header present?
6178 + echo "$as_me:$LINENO: checking $ac_header presence" >&5
6179 + echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6180 + cat >conftest.$ac_ext <<_ACEOF
6181 + #include <$ac_header>
6182 + _ACEOF
6183 + if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6184 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6185 +  ac_status=$?
6186 +  grep -v '^ *+' conftest.er1 >conftest.err
6187 +  rm -f conftest.er1
6188 +  cat conftest.err >&5
6189 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 +  (exit $ac_status); } >/dev/null; then
6191 +  if test -s conftest.err; then
6192 +    ac_cpp_err=$ac_f90_preproc_warn_flag
6193 +  else
6194 +    ac_cpp_err=
6195 +  fi
6196 + else
6197 +  ac_cpp_err=yes
6198 + fi
6199 + if test -z "$ac_cpp_err"; then
6200 +  ac_header_preproc=yes
6201 + else
6202 +  echo "$as_me: failed program was:" >&5
6203 + sed 's/^/| /' conftest.$ac_ext >&5
6204 +
6205 +  ac_header_preproc=no
6206 + fi
6207 + rm -f conftest.err conftest.$ac_ext
6208 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6209 + echo "${ECHO_T}$ac_header_preproc" >&6
6210 +
6211 + # So?  What about this header?
6212 + case $ac_header_compiler:$ac_header_preproc in
6213 +  yes:no )
6214 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6215 + echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6216 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6217 + echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6218 +    (
6219 +      cat <<\_ASBOX
6220 + ## ------------------------------------ ##
6221 + ## Report this to bug-autoconf@gnu.org. ##
6222 + ## ------------------------------------ ##
6223 + _ASBOX
6224 +    ) |
6225 +      sed "s/^/$as_me: WARNING:     /" >&2
6226 +    ;;
6227 +  no:yes )
6228 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6229 + echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6230 +    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6231 + echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6232 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6233 + echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6234 +    (
6235 +      cat <<\_ASBOX
6236 + ## ------------------------------------ ##
6237 + ## Report this to bug-autoconf@gnu.org. ##
6238 + ## ------------------------------------ ##
6239 + _ASBOX
6240 +    ) |
6241 +      sed "s/^/$as_me: WARNING:     /" >&2
6242 +    ;;
6243 + esac
6244 + echo "$as_me:$LINENO: checking for $ac_header" >&5
6245 + echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6246 + if eval "test \"\${$as_ac_Header+set}\" = set"; then
6247 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6248 + else
6249 +  eval "$as_ac_Header=$ac_header_preproc"
6250 + fi
6251 + echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6252 + echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6253 +
6254 + fi
6255 + if test `eval echo '${'$as_ac_Header'}'` = yes; then
6256 +  cat >>confdefs.h <<_ACEOF
6257 + #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6258 + _ACEOF
6259 +
6260 + fi
6261 +
6262 + done
6263 +
6264 +        ac_ext=c
6265 + ac_cpp='$CPP $CPPFLAGS'
6266 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6267 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6268 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
6269 +
6270 +
6271 + cat >>confdefs.h <<\_ACEOF
6272 + #define MPI_H 1
6273 + _ACEOF
6274 +
6275 + fi
6276 +
6277   ac_ext=c
6278   ac_cpp='$CPP $CPPFLAGS'
6279   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 5890 | Line 6509 | echo "$as_me:$LINENO: checking for egrep" >&5
6509   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6510  
6511  
5893 echo "$as_me:$LINENO: checking for egrep" >&5
5894 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5895 if test "${ac_cv_prog_egrep+set}" = set; then
5896  echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5899    then ac_cv_prog_egrep='grep -E'
5900    else ac_cv_prog_egrep='egrep'
5901    fi
5902 fi
5903 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5904 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5905 EGREP=$ac_cv_prog_egrep
6512  
6513  
5908 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5909 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5910 if test "${ac_cv_header_stdc+set}" = set; then
5911  echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913  cat >conftest.$ac_ext <<_ACEOF
5914 #line $LINENO "configure"
5915 /* confdefs.h.  */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h.  */
5920 #include <stdlib.h>
5921 #include <stdarg.h>
5922 #include <string.h>
5923 #include <float.h>
6514  
5925 int
5926 main ()
5927 {
5928
5929  ;
5930  return 0;
5931 }
5932 _ACEOF
5933 rm -f conftest.$ac_objext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5935  (eval $ac_compile) 2>&5
5936  ac_status=$?
5937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938  (exit $ac_status); } &&
5939         { ac_try='test -s conftest.$ac_objext'
5940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941  (eval $ac_try) 2>&5
5942  ac_status=$?
5943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944  (exit $ac_status); }; }; then
5945  ac_cv_header_stdc=yes
5946 else
5947  echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5949
5950 ac_cv_header_stdc=no
5951 fi
5952 rm -f conftest.$ac_objext conftest.$ac_ext
5953
5954 if test $ac_cv_header_stdc = yes; then
5955  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5956  cat >conftest.$ac_ext <<_ACEOF
5957 #line $LINENO "configure"
5958 /* confdefs.h.  */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h.  */
5963 #include <string.h>
5964
5965 _ACEOF
5966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5967  $EGREP "memchr" >/dev/null 2>&1; then
5968  :
5969 else
5970  ac_cv_header_stdc=no
5971 fi
5972 rm -f conftest*
5973
5974 fi
5975
5976 if test $ac_cv_header_stdc = yes; then
5977  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5978  cat >conftest.$ac_ext <<_ACEOF
5979 #line $LINENO "configure"
5980 /* confdefs.h.  */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h.  */
5985 #include <stdlib.h>
5986
5987 _ACEOF
5988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5989  $EGREP "free" >/dev/null 2>&1; then
5990  :
5991 else
5992  ac_cv_header_stdc=no
5993 fi
5994 rm -f conftest*
5995
5996 fi
5997
5998 if test $ac_cv_header_stdc = yes; then
5999  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6000  if test "$cross_compiling" = yes; then
6001  :
6002 else
6003  cat >conftest.$ac_ext <<_ACEOF
6004 #line $LINENO "configure"
6005 /* confdefs.h.  */
6006 _ACEOF
6007 cat confdefs.h >>conftest.$ac_ext
6008 cat >>conftest.$ac_ext <<_ACEOF
6009 /* end confdefs.h.  */
6010 #include <ctype.h>
6011 #if ((' ' & 0x0FF) == 0x020)
6012 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6013 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6014 #else
6015 # define ISLOWER(c) \
6016                   (('a' <= (c) && (c) <= 'i') \
6017                     || ('j' <= (c) && (c) <= 'r') \
6018                     || ('s' <= (c) && (c) <= 'z'))
6019 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6020 #endif
6021
6022 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6023 int
6024 main ()
6025 {
6026  int i;
6027  for (i = 0; i < 256; i++)
6028    if (XOR (islower (i), ISLOWER (i))
6029        || toupper (i) != TOUPPER (i))
6030      exit(2);
6031  exit (0);
6032 }
6033 _ACEOF
6034 rm -f conftest$ac_exeext
6035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6036  (eval $ac_link) 2>&5
6037  ac_status=$?
6038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041  (eval $ac_try) 2>&5
6042  ac_status=$?
6043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044  (exit $ac_status); }; }; then
6045  :
6046 else
6047  echo "$as_me: program exited with status $ac_status" >&5
6048 echo "$as_me: failed program was:" >&5
6049 sed 's/^/| /' conftest.$ac_ext >&5
6050
6051 ( exit $ac_status )
6052 ac_cv_header_stdc=no
6053 fi
6054 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6055 fi
6056 fi
6057 fi
6058 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6059 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6060 if test $ac_cv_header_stdc = yes; then
6061
6062 cat >>confdefs.h <<\_ACEOF
6063 #define STDC_HEADERS 1
6064 _ACEOF
6065
6066 fi
6067
6068 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6079                  inttypes.h stdint.h unistd.h
6080 do
6081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6082 echo "$as_me:$LINENO: checking for $ac_header" >&5
6083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6085  echo $ECHO_N "(cached) $ECHO_C" >&6
6086 else
6087  cat >conftest.$ac_ext <<_ACEOF
6088 #line $LINENO "configure"
6089 /* confdefs.h.  */
6090 _ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h.  */
6094 $ac_includes_default
6095
6096 #include <$ac_header>
6097 _ACEOF
6098 rm -f conftest.$ac_objext
6099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6100  (eval $ac_compile) 2>&5
6101  ac_status=$?
6102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103  (exit $ac_status); } &&
6104         { ac_try='test -s conftest.$ac_objext'
6105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106  (eval $ac_try) 2>&5
6107  ac_status=$?
6108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109  (exit $ac_status); }; }; then
6110  eval "$as_ac_Header=yes"
6111 else
6112  echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6114
6115 eval "$as_ac_Header=no"
6116 fi
6117 rm -f conftest.$ac_objext conftest.$ac_ext
6118 fi
6119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6122  cat >>confdefs.h <<_ACEOF
6123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6124 _ACEOF
6125
6126 fi
6127
6128 done
6129
6130
6131
6132
6133
6515   # Check whether --with-sprng_prefix or --without-sprng_prefix was given.
6516   if test "${with_sprng_prefix+set}" = set; then
6517    withval="$with_sprng_prefix"
# Line 6139 | Line 6520 | fi;
6520    sprng_prefix="/usr/local"
6521   fi;
6522  
6523 < # Check whether --with-sprng_lib_prefix or --without-sprng_lib_prefix was given.
6524 < if test "${with_sprng_lib_prefix+set}" = set; then
6525 <  withval="$with_sprng_lib_prefix"
6526 <  sprng_lib_prefix="$withval"
6523 > # Check whether --with-sprng-libdir or --without-sprng-libdir was given.
6524 > if test "${with_sprng_libdir+set}" = set; then
6525 >  withval="$with_sprng_libdir"
6526 >  sprng_libdir="$withval"
6527   else
6528 <  sprng_lib_prefix="/usr/local/lib"
6528 >  sprng_libdir="/usr/local/lib"
6529   fi;
6530  
6531 < # Check whether --with-sprng_include_prefix or --without-sprng_include_prefix was given.
6532 < if test "${with_sprng_include_prefix+set}" = set; then
6533 <  withval="$with_sprng_include_prefix"
6534 <  sprng_include_prefix="$withval"
6531 > # Check whether --with-sprng-include or --without-sprng-include was given.
6532 > if test "${with_sprng_include+set}" = set; then
6533 >  withval="$with_sprng_include"
6534 >  sprng_include="$withval"
6535   else
6536 <  sprng_include_prefix="/usr/local/include/sprng"
6536 >  sprng_include="/usr/local/include/sprng"
6537   fi;
6538  
6539 <  if test x$sprng_lib_prefix = x ; then
6540 <    sprng_lib_prefix=${sprng_prefix}/lib
6539 >  if test x$sprng_libdir = x ; then
6540 >    sprng_libdir=${sprng_prefix}/lib
6541    fi
6542  
6543 <  if test x$sprng_include_prefix = x ; then
6544 <    sprng_include_prefix=${sprng_prefix}/include
6543 >  if test x$sprng_include = x ; then
6544 >    sprng_include=${sprng_prefix}/include
6545    fi
6546  
6547 <  echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include_prefix" >&5
6548 < echo $ECHO_N "checking for SPRNG include files in $sprng_include_prefix... $ECHO_C" >&6
6549 <  if test -f ${sprng_include_prefix}/sprng.h; then
6547 >  echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include" >&5
6548 > echo $ECHO_N "checking for SPRNG include files in $sprng_include... $ECHO_C" >&6
6549 >  if test -f ${sprng_include}/sprng.h; then
6550      have_sprngincl=yes
6551      echo "$as_me:$LINENO: result: yes" >&5
6552   echo "${ECHO_T}yes" >&6
# Line 6178 | Line 6559 | echo "$as_me: error: Could not locate the SPRNG includ
6559     { (exit 1); exit 1; }; }
6560    fi
6561  
6562 <  echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_lib_prefix" >&5
6563 < echo $ECHO_N "checking for SPRNG libraries in $sprng_lib_prefix... $ECHO_C" >&6
6564 <  if test -f ${sprng_lib_prefix}/libsprng.a; then
6562 >  echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_libdir" >&5
6563 > echo $ECHO_N "checking for SPRNG libraries in $sprng_libdir... $ECHO_C" >&6
6564 >  if test -f ${sprng_libdir}/libsprng.a; then
6565      have_sprnglib=yes
6566      echo "$as_me:$LINENO: result: yes" >&5
6567   echo "${ECHO_T}yes" >&6
# Line 6202 | Line 6583 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6583   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6584  
6585    ac_save_CPPFLAGS=$CPPFLAGS
6586 <  CPPFLAGS="${CPPFLAGS} -I${sprng_include_prefix}"
6586 >  CPPFLAGS="${CPPFLAGS} -I${sprng_include}"
6587    ac_save_LDFLAGS=$LDFLAGS
6588 <  LDFLAGS="${LDFLAGS} -L${sprng_lib_prefix} -lsprng"
6588 >  LDFLAGS="${LDFLAGS} -L${sprng_libdir} -lsprng"
6589    if test "${ac_cv_header_sprng_h+set}" = set; then
6590    echo "$as_me:$LINENO: checking for sprng.h" >&5
6591   echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
# Line 6391 | Line 6772 | if test $ac_cv_lib_sprng_init_rng = yes; then
6772   echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5
6773   echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6
6774   if test $ac_cv_lib_sprng_init_rng = yes; then
6775 <  SPRNG_LIBDIR="${sprng_lib_prefix}"
6776 <                     SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include_prefix}"
6775 >  SPRNG_LIBDIR="${sprng_libdir}"
6776 >                     SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include}"
6777                       HAVE_SPRNG="yes"
6778   fi
6779  
# Line 6401 | Line 6782 | fi
6782  
6783    CPPFLAGS=$ac_save_CPPFLAGS
6784    LDFLAGS=$ac_save_LDFLAGS
6785 <  ac_ext=f90
6786 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6787 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6788 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6785 >  ac_ext=c
6786 > ac_cpp='$CPP $CPPFLAGS'
6787 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6790  
6791  
6792    if test x_$HAVE_SPRNG != x_yes; then
# Line 6651 | Line 7033 | fi
7033  
7034    CPPFLAGS=$ac_save_CPPFLAGS
7035    LDFLAGS=$ac_save_LDFLAGS
7036 <  ac_ext=f90
7037 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
7038 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7039 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
7036 >  ac_ext=c
7037 > ac_cpp='$CPP $CPPFLAGS'
7038 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7039 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7040 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
7041  
7042  
7043    if test x_$HAVE_MKL != x_yes; then
# Line 6677 | Line 7060 | fi;
7060  
7061  
7062  
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;
7063  
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
7064   OBJEXT=".$OBJEXT"
7065  
7066   OOPSE=oopse
# Line 6795 | Line 7084 | SUBDIRS="libBASS libmdtools src forceFields samples ut
7084  
7085   MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
7086  
7087 < SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder"
7087 > SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps"
7088  
7089 < #CFLAGS=${CFLAGS-""}
7090 < #CXXFLAGS=${CXXFLAGS-""}
7091 < #CPPFLAGS=${CPPFLAGS-""}
7092 < #FFLAGS=${FFLAGS-""}
7093 < #LDFLAGS=${LDFLAGS-""}
7094 < #OPTIMIZE=${OPTIMIZE-"-O"}
7095 < #DEBUG=${DEBUG-"-g"}
7089 > CFLAGS=${CFLAGS-""}
7090 > CXXFLAGS=${CXXFLAGS-""}
7091 > CPPFLAGS=${CPPFLAGS-""}
7092 > FFLAGS=${FFLAGS-""}
7093 > F90FLAGS=${F90FLAGS-""}
7094 > LDFLAGS=${LDFLAGS-""}
7095 > DEBUG=${DEBUG-"-g"}
7096  
7097   case $debug in
7098 <  true)
6810 <     CFLAGS="$DEBUG $CFLAGS"
6811 <     CXXFLAGS="$DEBUG $CXXFLAGS"
7098 >  1)
7099       FFLAGS="$DEBUG $FFLAGS"
7100       F90FLAGS="$DEBUG $F90FLAGS"
7101       ;;
7102    *)
6816     CFLAGS="$OPTIMIZE $CFLAGS"
6817     CXXFLAGS="$OPTIMIZE $CXXFLAGS"
6818     FFLAGS="$OPTIMIZE $FFLAGS"
6819     F90FLAGS="$OPTIMIZE $F90FLAGS"
7103       ;;
7104   esac
7105  
# Line 6838 | Line 7121 | esac
7121  
7122            ac_config_headers="$ac_config_headers libmdtools/config.h"
7123  
7124 <                                                                                                                                            ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile"
7124 >                                                                                                                                                      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"
7125  
7126  
7127   cat >confcache <<\_ACEOF
# Line 7373 | Line 7656 | do
7656    "utils/sysbuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;;
7657    "forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
7658    "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
7659 +  "staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;;
7660    "samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
7661    "samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
7662    "samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
# Line 7465 | Line 7749 | s,@DEBUG@,$DEBUG,;t t
7749   s,@ECHO_T@,$ECHO_T,;t t
7750   s,@LIBS@,$LIBS,;t t
7751   s,@PROGNAME@,$PROGNAME,;t t
7752 < s,@DEBUG@,$DEBUG,;t t
7752 > s,@debug@,$debug,;t t
7753   s,@build@,$build,;t t
7754   s,@build_cpu@,$build_cpu,;t t
7755   s,@build_vendor@,$build_vendor,;t t
# Line 7484 | Line 7768 | s,@F90@,$F90,;t t
7768   s,@CXX@,$CXX,;t t
7769   s,@CXXFLAGS@,$CXXFLAGS,;t t
7770   s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7771 + s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
7772 + s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
7773   s,@F90@,$F90,;t t
7774   s,@F90FLAGS@,$F90FLAGS,;t t
7775   s,@ac_ct_F90@,$ac_ct_F90,;t t
7776   s,@PREPFLAG@,$PREPFLAG,;t t
7777   s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
7778 + s,@F90LIBS@,$F90LIBS,;t t
7779 + s,@F90_FUNC@,$F90_FUNC,;t t
7780 + s,@F90_FUNC_@,$F90_FUNC_,;t t
7781 + s,@MOD@,$MOD,;t t
7782 + s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
7783 + s,@MODDIRFLAG@,$MODDIRFLAG,;t t
7784 + s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
7785   s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7786   s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7787   s,@INSTALL_DATA@,$INSTALL_DATA,;t t
# Line 7501 | Line 7794 | s,@F90LIBS@,$F90LIBS,;t t
7794   s,@LEXLIB@,$LEXLIB,;t t
7795   s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7796   s,@AR@,$AR,;t t
7504 s,@F90LIBS@,$F90LIBS,;t t
7505 s,@F90_FUNC@,$F90_FUNC,;t t
7506 s,@F90_FUNC_@,$F90_FUNC_,;t t
7797   s,@mpi_dir@,$mpi_dir,;t t
7798   s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t
7799   s,@MPI_INC@,$MPI_INC,;t t
# Line 7511 | Line 7801 | s,@CPP@,$CPP,;t t
7801   s,@MPIF77@,$MPIF77,;t t
7802   s,@MPIF90@,$MPIF90,;t t
7803   s,@MPILIBS@,$MPILIBS,;t t
7804 < s,@CPP@,$CPP,;t t
7804 > s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
7805 > s,@MPIMODLIBNAME@,$MPIMODLIBNAME,;t t
7806   s,@EGREP@,$EGREP,;t t
7807 + s,@CPP@,$CPP,;t t
7808   s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t
7809   s,@SPRNG_LIB@,$SPRNG_LIB,;t t
7810   s,@SPRNG_INC@,$SPRNG_INC,;t t
# Line 7521 | Line 7813 | s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
7813   s,@MKL_LIB@,$MKL_LIB,;t t
7814   s,@MKL_INC@,$MKL_INC,;t t
7815   s,@HAVE_MKL@,$HAVE_MKL,;t t
7524 s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
7525 s,@MPIMODLIBNAME@,$MPIMODLIBNAME,;t t
7816   s,@BATEXT@,$BATEXT,;t t
7817   s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7818   s,@OOPSE@,$OOPSE,;t t

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines