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

Comparing trunk/OOPSE/configure (file contents):
Revision 816 by gezelter, Fri Oct 24 17:36:02 2003 UTC vs.
Revision 1202 by gezelter, Thu May 27 16:20:36 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 MPI_LIBDIR MPI_INC MPI_F90INC MPI_LIB MPI_F90LIB CPP EGREP SPRNG_LIBDIR SPRNG_LIB SPRNG_INC HAVE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS'
315   ac_subst_files=''
316  
317   # Initialize some variables set by options.
# Line 784 | Line 784 | ac_env_MPIF77_set=${MPIF77+set}
784   ac_env_F90FLAGS_value=$F90FLAGS
785   ac_cv_env_F90FLAGS_set=${F90FLAGS+set}
786   ac_cv_env_F90FLAGS_value=$F90FLAGS
787 ac_env_MPIF77_set=${MPIF77+set}
788 ac_env_MPIF77_value=$MPIF77
789 ac_cv_env_MPIF77_set=${MPIF77+set}
790 ac_cv_env_MPIF77_value=$MPIF77
787   ac_env_CPP_set=${CPP+set}
788   ac_env_CPP_value=$CPP
789   ac_cv_env_CPP_set=${CPP+set}
# Line 874 | Line 870 | Optional Packages:
870   Optional Packages:
871    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
872    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
873 <  --with-mpi_dir=MPIDIR   give the path for MPI /usr/local
873 >  --with-mpi=MPIDIR   give the path for MPI /usr/local
874    --with-mpi-libdir=dir  give the path for MPI-libraries MPI_DIR/lib
875 <  --with-mpi_inc=dir  give the path for MPI-include-files MPI_DIR/include
875 >  --with-mpi-inc=dir  give the path for MPI-include-files MPI_DIR/include
876    --with-sprng_prefix=PREFIX
877                            Prefix where SPRNG is installed
878    --with-sprng-libdir=PREFIX  SPRNG library directory
879    --with-sprng-include=PREFIX
880                            SPRNG include directory
881 <  --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
881 >  --with-mkl              Do we want MKL will check /usr/local/intel/mkl61 /opt/intel/mkl61
882  
883   Some influential environment variables:
884    CC          C compiler command
# Line 897 | Line 891 | Some influential environment variables:
891    CXXFLAGS    C++ compiler flags
892    F90         Fortran 90 compiler command
893    F90FLAGS    Fortran 90 compiler flags
900  MPIF77      MPI Fortran compiler command
894    CPP         C preprocessor
895  
896   Use these variables to override the choices made by `configure' or to help
# Line 1828 | Line 1821 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1821  
1822  
1823  
1824 < # what should I build?
1824 >
1825  
1826 < # Check whether --enable-debug or --disable-debug was given.
1827 < if test "${enable_debug+set}" = set; then
1828 <  enableval="$enable_debug"
1829 <  DEBUG=1
1830 < fi;
1826 >
1827 >
1828 >
1829 >
1830 >
1831 >
1832 >
1833 >
1834 >
1835 >
1836 >
1837  
1838 +
1839 +
1840   # set program name
1841   PROGNAME="oopse"
1842  
1843  
1844 + # there are two ways to do debugging.  One with the --enable-debug flag
1845 + # and one using the DEBUG environment variable
1846 +
1847 + debug=0
1848 + # Check whether --enable-debug or --disable-debug was given.
1849 + if test "${enable_debug+set}" = set; then
1850 +  enableval="$enable_debug"
1851 +  debug=1
1852 + fi;
1853   if test "${DEBUG}"; then
1854  
1855   cat >>confdefs.h <<\_ACEOF
1856 < #define DEBUG 1
1856 > #define debug 1
1857   _ACEOF
1858  
1859    msg="$msg, debug mode"
# Line 2556 | Line 2566 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568   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
2790
2791
2792 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
2793 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
2794 if test "${ac_m_cpu_60x+set}" = set; then
2795  echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797  echo 'void f(){}' > conftest.c
2798 if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
2799        ac_m_cpu_60x=yes
2800 else
2801        ac_m_cpu_60x=no
2802 fi
2803 rm -f conftest*
2804
2805 fi
2806 echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
2807 echo "${ECHO_T}$ac_m_cpu_60x" >&6
2808 if test "$ac_m_cpu_60x" = yes; then
2809        :
2810        CPU_FLAGS=-mcpu=$cputype
2811 else
2812        :
2813
2814 fi
2815
2816                elif test "$cputype" = 750; then
2817
2818
2819 echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
2820 echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
2821 if test "${ac_cv_prog_gcc_2_95+set}" = set; then
2822  echo $ECHO_N "(cached) $ECHO_C" >&6
2823 else
2824
2825 cat > conftest.c <<EOF
2826 #ifdef __GNUC__
2827 #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
2828     yes;
2829 #  endif
2830 #endif
2831 EOF
2832 if { ac_try='${CC-cc} -E conftest.c'
2833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834  (eval $ac_try) 2>&5
2835  ac_status=$?
2836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2838  ac_cv_prog_gcc_2_95=yes
2839 else
2840  ac_cv_prog_gcc_2_95=no
2841 fi
2842
2843 fi
2844 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
2845 echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
2846 if test "$ac_cv_prog_gcc_2_95" = yes; then
2847        :
2848
2849
2850 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
2851 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
2852 if test "${ac_m_cpu_750+set}" = set; then
2853  echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855  echo 'void f(){}' > conftest.c
2856 if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
2857        ac_m_cpu_750=yes
2858 else
2859        ac_m_cpu_750=no
2860 fi
2861 rm -f conftest*
2862
2863 fi
2864 echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
2865 echo "${ECHO_T}$ac_m_cpu_750" >&6
2866 if test "$ac_m_cpu_750" = yes; then
2867        :
2868        CPU_FLAGS=-mcpu=750
2869 else
2870        :
2871
2872 fi
2873
2874 else
2875        :
2876
2877 fi
2878
2879                fi
2880                if test -z "$CPU_FLAGS"; then
2881
2882
2883 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
2884 echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
2885 if test "${ac_m_cpu_powerpc+set}" = set; then
2886  echo $ECHO_N "(cached) $ECHO_C" >&6
2887 else
2888  echo 'void f(){}' > conftest.c
2889 if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
2890        ac_m_cpu_powerpc=yes
2891 else
2892        ac_m_cpu_powerpc=no
2893 fi
2894 rm -f conftest*
2895
2896 fi
2897 echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
2898 echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
2899 if test "$ac_m_cpu_powerpc" = yes; then
2900        :
2901        CPU_FLAGS=-mcpu=powerpc
2902 else
2903        :
2904
2905 fi
2906
2907                fi
2908                if test -z "$CPU_FLAGS"; then
2909
2910
2911 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
2912 echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
2913 if test "${ac_m_powerpc+set}" = set; then
2914  echo $ECHO_N "(cached) $ECHO_C" >&6
2915 else
2916  echo 'void f(){}' > conftest.c
2917 if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
2918        ac_m_powerpc=yes
2919 else
2920        ac_m_powerpc=no
2921 fi
2922 rm -f conftest*
2923
2924 fi
2925 echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
2926 echo "${ECHO_T}$ac_m_powerpc" >&6
2927 if test "$ac_m_powerpc" = yes; then
2928        :
2929        CPU_FLAGS=-mpowerpc
2930 else
2931        :
2932
2933 fi
2934
2935                fi
2936          esac
2937  fi
2938
2939  if test -n "$CPU_FLAGS"; then
2940        CFLAGS="$CFLAGS $CPU_FLAGS"
2941  fi
2942
2943  if test -z "$CFLAGS"; then
2944        echo ""
2945        echo "********************************************************"
2946        echo "* WARNING: Don't know the best CFLAGS for this system  *"
2947        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
2948        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
2949        echo "********************************************************"
2950        echo ""
2951        CFLAGS="-O3"
2952  fi
2953
2954
2955
2956 echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
2957 echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
2958 if test "${ac_guessed_cflags+set}" = set; then
2959  echo $ECHO_N "(cached) $ECHO_C" >&6
2960 else
2961  echo 'void f(){}' > conftest.c
2962 if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
2963        ac_guessed_cflags=yes
2964 else
2965        ac_guessed_cflags=no
2966 fi
2967 rm -f conftest*
2569  
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        :
2570  
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
2571   ac_ext=cc
2572   ac_cpp='$CXXCPP $CPPFLAGS'
2573   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2574   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2575   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2576   if test -n "$ac_tool_prefix"; then
2577 <  for ac_prog in $CCC icpc icc xlC CC g++ c++
2577 >  for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2578    do
2579      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2580   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 3037 | Line 2616 | if test -z "$CXX"; then
2616   fi
2617   if test -z "$CXX"; then
2618    ac_ct_CXX=$CXX
2619 <  for ac_prog in $CCC icpc icc xlC CC g++ c++
2619 >  for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++
2620   do
2621    # Extract the first word of "$ac_prog", so it can be a program name with args.
2622   set dummy $ac_prog; ac_word=$2
# Line 3310 | Line 2889 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890  
2891  
2892 <
2893 <
2894 <
2895 < # Try to determine "good" native compiler flags if none specified on command
2896 < # line
2897 < if test "$ac_test_CXXFLAGS" != "set"; then
2898 <  CXXFLAGS=""
2899 <  case "${host_cpu}-${host_os}" in
2900 <
2901 <  *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
2902 <                    CXXFLAGS="-O"
2903 <                fi;;
3325 <  sparc-solaris2*) if test "$CXX" = CC; then
3326 <                    CXXFLAGS="-native -fast -xO5 -dalign"
3327 <                 fi;;
3328 <   rs6000*-aix*)  if test "$CXX" = xlC; then
3329 <                    CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
3330 <                fi;;
3331 <   powerpc*-aix*)
3332 <        if test "$CXX" = xlC; then
3333 <                CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
3334 <                echo "*******************************************************"
3335 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
3336 <                echo "*  recommended that you use                           *"
3337 <                echo "*                                                     *"
3338 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
3339 <                echo "*                                 ^^^                 *"
3340 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
3341 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
3342 <                echo "*******************************************************"
3343 <        fi;;
3344 <   *darwin*)
3345 <        if test "$CXX" = xlC; then
3346 <                CXXFLAGS="-O3 -qtune=auto -qansialias -w"
3347 <                echo "*******************************************************"
3348 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
3349 <                echo "*  recommended that you use                           *"
3350 <                echo "*                                                     *"
3351 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
3352 <                echo "*                                 ^^^                 *"
3353 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
3354 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
3355 <                echo "*******************************************************"
3356 <        fi;;
3357 <  esac
3358 <
3359 <  # use default flags for gcc on all systems
3360 <  if test $ac_cv_c_compiler_gnu = yes; then
3361 <     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
2892 > OOPSE_TEMPLATE_FLAGS=""
2893 > if test $ac_cv_cxx_compiler_gnu = no; then
2894 >  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5
2895 > echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6
2896 >  echo 'void f(){}' > conftest.cc
2897 >  if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then
2898 >    echo "$as_me:$LINENO: result: yes" >&5
2899 > echo "${ECHO_T}yes" >&6
2900 >    OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink"
2901 >  else
2902 >    echo "$as_me:$LINENO: result: no" >&5
2903 > echo "${ECHO_T}no" >&6
2904    fi
2905 <
2906 <  # test for gcc-specific flags:
2907 <  if test $ac_cv_c_compiler_gnu = yes; then
2908 <    # -malign-double for x86 systems
2909 <
2910 <
2911 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
2912 < echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
2913 < if test "${ac_align_double+set}" = set; then
2914 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2915 < 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 <
2905 >  rm -f conftest*
2906 >  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5
2907 > echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6
2908 >  echo 'void f(){}' > conftest.cc
2909 >  if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then
2910 >    echo "$as_me:$LINENO: result: yes" >&5
2911 > echo "${ECHO_T}yes" >&6
2912 >    OOPSE_TEMPLATE_FLAGS="-instances=static"
2913 >  else
2914 >    echo "$as_me:$LINENO: result: no" >&5
2915 > echo "${ECHO_T}no" >&6
2916    fi
2917 <
2918 <  CPU_FLAGS=""
2919 <  if test "$GCC" = "yes"; then
2920 <                  case "${host_cpu}" in
2921 <          i586*)
2922 <
2923 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
2924 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
2925 < if test "${ac_cpu_pentium+set}" = set; then
2926 <  echo $ECHO_N "(cached) $ECHO_C" >&6
2927 < 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
2917 >  rm -f conftest*
2918 >  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5
2919 > echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6
2920 >  echo 'void f(){}' > conftest.cc
2921 >  if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then
2922 >    echo "$as_me:$LINENO: result: yes" >&5
2923 > echo "${ECHO_T}yes" >&6
2924 >    OOPSE_TEMPLATE_FLAGS="-pto"
2925 >  else
2926 >    echo "$as_me:$LINENO: result: no" >&5
2927 > echo "${ECHO_T}no" >&6
2928    fi
2929 +  rm -f conftest*
2930 +  echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5
2931 + echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6
2932 +  echo 'void f(){}' > conftest.cc
2933 +  if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
2934 +    echo "$as_me:$LINENO: result: yes" >&5
2935 + echo "${ECHO_T}yes" >&6
2936  
3682  if test -n "$CPU_FLAGS"; then
3683        CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
3684  fi
2937  
2938 <  if test -z "$CXXFLAGS"; then
2939 <        echo ""
2940 <        echo "**********************************************************"
2941 <        echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
3690 <        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
3691 <        echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *"
3692 <        echo "**********************************************************"
3693 <        echo ""
3694 <        CXXFLAGS="-O3"
2938 >    EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std"
2939 >  else
2940 >    echo "$as_me:$LINENO: result: no" >&5
2941 > echo "${ECHO_T}no" >&6
2942    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
2943   fi
3710 rm -f conftest*
2944  
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        :
2945  
3718 else
3719        :
2946  
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=""
2947  
3730 fi
3731
3732
3733 fi
3734
2948   ac_ext=f90
2949   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
2950   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
2952   if test -n "$ac_tool_prefix"; then
2953 <  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2953 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2954    do
2955      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2956   set dummy $ac_tool_prefix$ac_prog; ac_word=$2
# Line 3779 | Line 2992 | if test -z "$F90"; then
2992   fi
2993   if test -z "$F90"; then
2994    ac_ct_F90=$F90
2995 <  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2995 >  for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2996   do
2997    # Extract the first word of "$ac_prog", so it can be a program name with args.
2998   set dummy $ac_prog; ac_word=$2
# Line 3880 | Line 3093 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
3093  
3094  
3095  
3096 < # Try to determine "good" native compiler flags if none specified on command
3097 < # line
3096 > # Try to determine native compiler flags that allow us to use F90 suffix
3097 > # for preprocessed f90 source.
3098  
3099 < if test x"$F90FLAGS" == x ; then
3100 <  F90FLAGS=""
3099 > if test "$ac_test_PREPFLAG" != "set"; then
3100 >  PREPFLAG=""
3101    case "${host_cpu}-${host_os}" in
3102  
3103 <  *linux*) if test "$F90" = ifc; then
3104 <                    F90FLAGS="-O"
3103 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3104 >                    PREPFLAG="-fpp1 "
3105                  fi;;
3106 <   rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3107 <                    F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
3106 >  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3107 >                    PREPFLAG="-qsuffix=cpp=F90 "
3108                  fi;;
3109 <   powerpc*-aix*)
3109 >  *darwin*)
3110          if test "$F90" = f90 -o "$F90" = xlf90; then
3111 <                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 "*******************************************************"
3111 >                PREPFLAG="-qsuffix=cpp=F90 "
3112          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;;
3113    esac
3114  
3115 <  if test -n "$CPU_FLAGS"; then
3116 <        F90FLAGS="$F90FLAGS $CPU_FLAGS"
3115 >  if test -z "$PREPFLAG"; then
3116 >        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5
3117 > echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;}
3118 >        PREPFLAG=""
3119    fi
3120  
3121 <  if test -z "$F90FLAGS"; then
3122 <        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
3121 >  echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3122 > echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3123  
3124  
3125 < 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
3125 >  ac_ext=f90
3126   ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3127   ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3129  
3130 < echo 'program main' > conftest.$ac_ext
3131 < echo 'end program main' >> conftest.$ac_ext
3132 < ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
3133 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3134 <  (eval $ac_compile) 2>&5
3135 <  ac_status=$?
3136 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 <  (exit $ac_status); }; then
3138 <        ac_guessed_f90flags=yes
3139 < else
3140 <        ac_guessed_f90flags=no
3141 < fi
3142 < rm -f conftest*
3143 < ac_ext=c
3144 < ac_cpp='$CPP $CPPFLAGS'
3145 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148 <
3149 <
3150 < fi
3151 < echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
3152 < echo "${ECHO_T}$ac_guessed_f90flags" >&6
3153 < if test "$ac_guessed_f90flags" = yes; then
3154 <        :
3155 <
3156 < else
3157 <        :
3158 <
3159 <        echo ""
3160 <        echo "**********************************************************"
3161 <        echo "* WARNING: The guessed F90FLAGS don't seem to work with  *"
3162 <        echo "* your compiler.                                         *"
3163 <        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
3164 <        echo "**********************************************************"
3165 <        echo ""
3166 <        F90FLAGS=""
3167 <
3168 < fi
3169 <
3170 <
3171 < fi
3172 <
3173 <
3174 <
3175 <
3176 <
3177 < # Try to determine native compiler flags that allow us to use F90 suffix
3178 < # for preprocessed f90 source.
3179 <
3180 < if test "$ac_test_PREPFLAG" != "set"; then
3181 <  PREPFLAG=""
3182 <  case "${host_cpu}-${host_os}" in
3183 <
3184 <  *linux*) if test "$F90" = ifc; then
3185 <                    PREPFLAG="-fpp1 "
3186 <                fi;;
3187 <  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3188 <                    PREPFLAG="-qsuffix=cpp=F90 "
3189 <                fi;;
3190 <  *darwin*)
3191 <        if test "$F90" = f90 -o "$F90" = xlf90; then
3192 <                PREPFLAG="-qsuffix=cpp=F90 "
3193 <        fi;;
3194 <  esac
3195 <
3196 <  if test -z "$PREPFLAG"; then
3197 <        echo ""
3198 <        echo "**********************************************************"
3199 <        echo "* WARNING: Don't know the best PREPFLAG for this system  *"
3200 <        echo "* Use  make PREPFLAG=..., or edit the top level Makefile *"
3201 <        echo "* (otherwise, an empty PREPFLAG will be used)            *"
3202 <        echo "**********************************************************"
3203 <        echo ""
3204 <        PREPFLAG=""
3205 <  fi
3206 <
3207 <  echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3208 < echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3209 <
3210 <
3211 <  ac_ext=f90
3212 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3213 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3215 <
3216 <  ac_save_ext=$ac_ext
3217 <  ac_ext=F90
3218 <  ac_save_F90FLAGS=$F90FLAGS
3219 <
3220 <  if test "$PREPFLAG"; then
3221 <  F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
3222 < fi
3223 <
3224 <    cat >conftest.$ac_ext <<_ACEOF
3225 <
3226 <
3227 < program main
3228 <
3229 <  integer :: i
3230 <  i = 1
3231 <
3232 <
3233 < end program main
3234 <
3235 < _ACEOF
3236 < rm -f conftest.$ac_objext
3237 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3238 <  (eval $ac_compile) 2>&5
3239 <  ac_status=$?
3240 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241 <  (exit $ac_status); } &&
3242 <         { ac_try='test -s conftest.$ac_objext'
3243 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244 <  (eval $ac_try) 2>&5
3245 <  ac_status=$?
3246 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 <  (exit $ac_status); }; }; then
3248 <  prepflagworks=1
3249 < else
3250 <  echo "$as_me: failed program was:" >&5
3251 < sed 's/^/| /' conftest.$ac_ext >&5
3252 <
3253 < prepflagworks=0
3254 < fi
3255 < rm -f conftest.$ac_objext conftest.$ac_ext
3256 <
3257 <  F90FLAGS=$ac_save_F90FLAGS
3258 <  ac_ext=$ac_save_ext
3259 <  ac_ext=c
3260 < ac_cpp='$CPP $CPPFLAGS'
3261 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
3264 <
3265 <
3266 <
3267 <  if test "$prepflagworks" = 1; then
3268 <    echo "$as_me:$LINENO: result: yes" >&5
3269 < echo "${ECHO_T}yes" >&6
3270 <
3271 <  else
3272 <    echo "$as_me:$LINENO: result: no" >&5
3273 < echo "${ECHO_T}no" >&6
3274 <    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3275 < echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3276 <   { (exit 1); exit 1; }; }
3277 <  fi
3278 < fi
3279 <
3280 <
3281 <
3282 <
3283 <
3284 < # Try to determine native compiler flags that allow us to use F90 suffix
3285 < # for preprocessed f90 source with -D type defines
3286 <
3287 < if test "$ac_test_PREPDEFFLAG" != "set"; then
3288 <  PREPDEFFLAG=""
3289 <  case "${host_cpu}-${host_os}" in
3290 <
3291 <  *linux*) if test "$F90" = ifc; then
3292 <                    PREPDEFFLAG=" "
3293 <                fi;;
3294 <  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3295 <                    PREPDEFFLAG="-WF,"
3296 <                fi;;
3297 <  *darwin*)
3298 <        if test "$F90" = f90 -o "$F90" = xlf90; then
3299 <                PREPDEFFLAG="-WF,"
3300 <        fi;;
3301 <  esac
3302 <
3303 <  if test -z "$PREPDEFFLAG"; then
3304 <        echo ""
3305 <        echo "*************************************************************"
3306 <        echo "* WARNING: Don't know the best PREPDEFFLAG for this system  *"
3307 <        echo "* Use  make PREPDEFFLAG=..., or edit the top level Makefile *"
3308 <        echo "* (otherwise, an empty PREPDEFFLAG will be used)            *"
3309 <        echo "*************************************************************"
3310 <        echo ""
3311 <        PREPDEFFLAG=" "
3312 <  fi
3313 <
3314 <  echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3315 < echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3316 <
3317 <
3318 <  ac_ext=f90
3319 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3320 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3322 <
3323 <  ac_save_ext=$ac_ext
3324 <  ac_ext=F90
3325 <  ac_save_F90FLAGS=$F90FLAGS
3326 <
3327 <  if test "$PREPDEFFLAG"; then
3328 <  F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
3329 < fi
3330 <
3331 <    cat >conftest.$ac_ext <<_ACEOF
3332 <
3333 <
3334 < program main
3335 <
3336 <  integer :: i
3337 < #ifdef TEST
3338 <  i = 1
3339 < #else
3340 <  choke me
3341 < #endif
3342 <
3343 <
3344 < end program main
3345 <
3346 < _ACEOF
3347 < rm -f conftest.$ac_objext
3348 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3349 <  (eval $ac_compile) 2>&5
3350 <  ac_status=$?
3351 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 <  (exit $ac_status); } &&
3353 <         { ac_try='test -s conftest.$ac_objext'
3354 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 <  (eval $ac_try) 2>&5
3356 <  ac_status=$?
3357 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 <  (exit $ac_status); }; }; then
3359 <  prepdefflagworks=1
3360 < else
3361 <  echo "$as_me: failed program was:" >&5
3362 < sed 's/^/| /' conftest.$ac_ext >&5
3363 <
3364 < prepdefflagworks=0
3365 < fi
3366 < rm -f conftest.$ac_objext conftest.$ac_ext
3367 <
3368 <  F90FLAGS=$ac_save_F90FLAGS
3369 <  ac_ext=$ac_save_ext
3370 <  ac_ext=c
3371 < ac_cpp='$CPP $CPPFLAGS'
3372 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375 <
3376 <
3377 <
3378 <  if test "$prepdefflagworks" = 1; then
3379 <    echo "$as_me:$LINENO: result: yes" >&5
3380 < echo "${ECHO_T}yes" >&6
3381 <
3382 <  else
3383 <    echo "$as_me:$LINENO: result: no" >&5
3384 < echo "${ECHO_T}no" >&6
3385 <    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3386 < echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3387 <   { (exit 1); exit 1; }; }
3388 <  fi
3389 < fi
3390 <
3391 < # Find a good install program.  We prefer a C program (faster),
3392 < # so one script is as good as another.  But avoid the broken or
3393 < # incompatible versions:
3394 < # SysV /etc/install, /usr/sbin/install
3395 < # SunOS /usr/etc/install
3396 < # IRIX /sbin/install
3397 < # AIX /bin/install
3398 < # AmigaOS /C/install, which installs bootblocks on floppy discs
3399 < # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3400 < # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3401 < # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3402 < # ./install, which can be erroneously created by make from ./install.sh.
3403 < echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3404 < echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3405 < if test -z "$INSTALL"; then
3406 < if test "${ac_cv_path_install+set}" = set; then
3407 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3408 < else
3409 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 < for as_dir in $PATH
3411 < do
3412 <  IFS=$as_save_IFS
3413 <  test -z "$as_dir" && as_dir=.
3414 <  # Account for people who put trailing slashes in PATH elements.
3415 < case $as_dir/ in
3416 <  ./ | .// | /cC/* | \
3417 <  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3418 <  /usr/ucb/* ) ;;
3419 <  *)
3420 <    # OSF1 and SCO ODT 3.0 have their own names for install.
3421 <    # Don't use installbsd from OSF since it installs stuff as root
3422 <    # by default.
3423 <    for ac_prog in ginstall scoinst install; do
3424 <      for ac_exec_ext in '' $ac_executable_extensions; do
3425 <        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3426 <          if test $ac_prog = install &&
3427 <            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3428 <            # AIX install.  It has an incompatible calling convention.
3429 <            :
3430 <          elif test $ac_prog = install &&
3431 <            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3432 <            # program-specific install script used by HP pwplus--don't use.
3433 <            :
3434 <          else
3435 <            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3436 <            break 3
3437 <          fi
3438 <        fi
3439 <      done
3440 <    done
3441 <    ;;
3442 < esac
3443 < done
3444 <
3445 <
3446 < fi
3447 <  if test "${ac_cv_path_install+set}" = set; then
3448 <    INSTALL=$ac_cv_path_install
3449 <  else
3450 <    # As a last resort, use the slow shell script.  We don't cache a
3451 <    # path for INSTALL within a source directory, because that will
3452 <    # break other packages using the cache if that directory is
3453 <    # removed, or if the path is relative.
3454 <    INSTALL=$ac_install_sh
3455 <  fi
3456 < fi
3457 < echo "$as_me:$LINENO: result: $INSTALL" >&5
3458 < echo "${ECHO_T}$INSTALL" >&6
3459 <
3460 < # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3461 < # It thinks the first close brace ends the variable substitution.
3462 < test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3463 <
3464 < test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3465 <
3466 < test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3467 <
3468 < echo "$as_me:$LINENO: checking whether ln -s works" >&5
3469 < echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3470 < LN_S=$as_ln_s
3471 < if test "$LN_S" = "ln -s"; then
3472 <  echo "$as_me:$LINENO: result: yes" >&5
3473 < echo "${ECHO_T}yes" >&6
3474 < else
3475 <  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3476 < echo "${ECHO_T}no, using $LN_S" >&6
3477 < fi
3478 <
3479 < echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3480 < echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3481 < set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3482 < if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3483 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3484 < else
3485 <  cat >conftest.make <<\_ACEOF
3486 < all:
3487 <        @echo 'ac_maketemp="$(MAKE)"'
3488 < _ACEOF
3489 < # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3490 < eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3491 < if test -n "$ac_maketemp"; then
3492 <  eval ac_cv_prog_make_${ac_make}_set=yes
3493 < else
3494 <  eval ac_cv_prog_make_${ac_make}_set=no
3495 < fi
3496 < rm -f conftest.make
3497 < fi
3498 < if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3499 <  echo "$as_me:$LINENO: result: yes" >&5
3500 < echo "${ECHO_T}yes" >&6
3501 <  SET_MAKE=
3502 < else
3503 <  echo "$as_me:$LINENO: result: no" >&5
3504 < echo "${ECHO_T}no" >&6
3505 <  SET_MAKE="MAKE=${MAKE-make}"
3506 < fi
3507 <
3508 < if test -n "$ac_tool_prefix"; then
3509 <  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3510 < set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3511 < echo "$as_me:$LINENO: checking for $ac_word" >&5
3512 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3513 < if test "${ac_cv_prog_RANLIB+set}" = set; then
3514 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3515 < else
3516 <  if test -n "$RANLIB"; then
3517 <  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3518 < else
3519 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 < for as_dir in $PATH
3521 < do
3522 <  IFS=$as_save_IFS
3523 <  test -z "$as_dir" && as_dir=.
3524 <  for ac_exec_ext in '' $ac_executable_extensions; do
3525 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3526 <    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3527 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 <    break 2
3529 <  fi
3530 < done
3531 < done
3532 <
3533 < fi
3534 < fi
3535 < RANLIB=$ac_cv_prog_RANLIB
3536 < if test -n "$RANLIB"; then
3537 <  echo "$as_me:$LINENO: result: $RANLIB" >&5
3538 < echo "${ECHO_T}$RANLIB" >&6
3539 < else
3540 <  echo "$as_me:$LINENO: result: no" >&5
3541 < echo "${ECHO_T}no" >&6
3542 < fi
3543 <
3544 < fi
3545 < if test -z "$ac_cv_prog_RANLIB"; then
3546 <  ac_ct_RANLIB=$RANLIB
3547 <  # Extract the first word of "ranlib", so it can be a program name with args.
3548 < set dummy ranlib; ac_word=$2
3549 < echo "$as_me:$LINENO: checking for $ac_word" >&5
3550 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3551 < if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3552 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3553 < else
3554 <  if test -n "$ac_ct_RANLIB"; then
3555 <  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3556 < else
3557 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 < for as_dir in $PATH
3559 < do
3560 <  IFS=$as_save_IFS
3561 <  test -z "$as_dir" && as_dir=.
3562 <  for ac_exec_ext in '' $ac_executable_extensions; do
3563 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564 <    ac_cv_prog_ac_ct_RANLIB="ranlib"
3565 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 <    break 2
3567 <  fi
3568 < done
3569 < done
3570 <
3571 <  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3572 < fi
3573 < fi
3574 < ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3575 < if test -n "$ac_ct_RANLIB"; then
3576 <  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3577 < echo "${ECHO_T}$ac_ct_RANLIB" >&6
3578 < else
3579 <  echo "$as_me:$LINENO: result: no" >&5
3580 < echo "${ECHO_T}no" >&6
3581 < fi
3582 <
3583 <  RANLIB=$ac_ct_RANLIB
3584 < else
3585 <  RANLIB="$ac_cv_prog_RANLIB"
3586 < fi
3587 <
3588 < for ac_prog in 'bison -y' byacc
3589 < do
3590 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
3591 < set dummy $ac_prog; ac_word=$2
3592 < echo "$as_me:$LINENO: checking for $ac_word" >&5
3593 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3594 < if test "${ac_cv_prog_YACC+set}" = set; then
3595 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3596 < else
3597 <  if test -n "$YACC"; then
3598 <  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3599 < else
3600 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 < for as_dir in $PATH
3602 < do
3603 <  IFS=$as_save_IFS
3604 <  test -z "$as_dir" && as_dir=.
3605 <  for ac_exec_ext in '' $ac_executable_extensions; do
3606 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607 <    ac_cv_prog_YACC="$ac_prog"
3608 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 <    break 2
3610 <  fi
3611 < done
3612 < done
3613 <
3614 < fi
3615 < fi
3616 < YACC=$ac_cv_prog_YACC
3617 < if test -n "$YACC"; then
3618 <  echo "$as_me:$LINENO: result: $YACC" >&5
3619 < echo "${ECHO_T}$YACC" >&6
3620 < else
3621 <  echo "$as_me:$LINENO: result: no" >&5
3622 < echo "${ECHO_T}no" >&6
3623 < fi
3624 <
3625 <  test -n "$YACC" && break
3626 < done
3627 < test -n "$YACC" || YACC="yacc"
3628 <
3629 <
3630 < for ac_prog in flex lex
3631 < do
3632 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
3633 < set dummy $ac_prog; ac_word=$2
3634 < echo "$as_me:$LINENO: checking for $ac_word" >&5
3635 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3636 < if test "${ac_cv_prog_LEX+set}" = set; then
3637 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3638 < else
3639 <  if test -n "$LEX"; then
3640 <  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3641 < else
3642 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 < for as_dir in $PATH
3644 < do
3645 <  IFS=$as_save_IFS
3646 <  test -z "$as_dir" && as_dir=.
3647 <  for ac_exec_ext in '' $ac_executable_extensions; do
3648 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649 <    ac_cv_prog_LEX="$ac_prog"
3650 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 <    break 2
3652 <  fi
3653 < done
3654 < done
3655 <
3656 < fi
3657 < fi
3658 < LEX=$ac_cv_prog_LEX
3659 < if test -n "$LEX"; then
3660 <  echo "$as_me:$LINENO: result: $LEX" >&5
3661 < echo "${ECHO_T}$LEX" >&6
3662 < else
3663 <  echo "$as_me:$LINENO: result: no" >&5
3664 < echo "${ECHO_T}no" >&6
3665 < fi
3666 <
3667 <  test -n "$LEX" && break
3668 < done
3669 < test -n "$LEX" || LEX=":"
3670 <
3671 < if test -z "$LEXLIB"
3672 < then
3673 <  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3674 < echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3675 < if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3676 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3677 < else
3678 <  ac_check_lib_save_LIBS=$LIBS
3679 < LIBS="-lfl  $LIBS"
3680 < cat >conftest.$ac_ext <<_ACEOF
3681 < #line $LINENO "configure"
3682 < /* confdefs.h.  */
3683 < _ACEOF
3684 < cat confdefs.h >>conftest.$ac_ext
3685 < cat >>conftest.$ac_ext <<_ACEOF
3686 < /* end confdefs.h.  */
3687 <
3688 < /* Override any gcc2 internal prototype to avoid an error.  */
3689 < #ifdef __cplusplus
3690 < extern "C"
3691 < #endif
3692 < /* We use char because int might match the return type of a gcc2
3693 <   builtin and then its argument prototype would still apply.  */
3694 < char yywrap ();
3695 < int
3696 < main ()
3697 < {
3698 < yywrap ();
3699 <  ;
3700 <  return 0;
3701 < }
3702 < _ACEOF
3703 < rm -f conftest.$ac_objext conftest$ac_exeext
3704 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705 <  (eval $ac_link) 2>&5
3706 <  ac_status=$?
3707 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 <  (exit $ac_status); } &&
3709 <         { ac_try='test -s conftest$ac_exeext'
3710 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711 <  (eval $ac_try) 2>&5
3712 <  ac_status=$?
3713 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 <  (exit $ac_status); }; }; then
3715 <  ac_cv_lib_fl_yywrap=yes
3716 < else
3717 <  echo "$as_me: failed program was:" >&5
3718 < sed 's/^/| /' conftest.$ac_ext >&5
3719 <
3720 < ac_cv_lib_fl_yywrap=no
3721 < fi
3722 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3723 < LIBS=$ac_check_lib_save_LIBS
3724 < fi
3725 < echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3726 < echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3727 < if test $ac_cv_lib_fl_yywrap = yes; then
3728 <  LEXLIB="-lfl"
3729 < else
3730 <  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3731 < echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3732 < if test "${ac_cv_lib_l_yywrap+set}" = set; then
3733 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3734 < else
3735 <  ac_check_lib_save_LIBS=$LIBS
3736 < LIBS="-ll  $LIBS"
3737 < cat >conftest.$ac_ext <<_ACEOF
3738 < #line $LINENO "configure"
3739 < /* confdefs.h.  */
3740 < _ACEOF
3741 < cat confdefs.h >>conftest.$ac_ext
3742 < cat >>conftest.$ac_ext <<_ACEOF
3743 < /* end confdefs.h.  */
3744 <
3745 < /* Override any gcc2 internal prototype to avoid an error.  */
3746 < #ifdef __cplusplus
3747 < extern "C"
3748 < #endif
3749 < /* We use char because int might match the return type of a gcc2
3750 <   builtin and then its argument prototype would still apply.  */
3751 < char yywrap ();
3752 < int
3753 < main ()
3754 < {
3755 < yywrap ();
3756 <  ;
3757 <  return 0;
3758 < }
3759 < _ACEOF
3760 < rm -f conftest.$ac_objext conftest$ac_exeext
3761 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3762 <  (eval $ac_link) 2>&5
3763 <  ac_status=$?
3764 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 <  (exit $ac_status); } &&
3766 <         { ac_try='test -s conftest$ac_exeext'
3767 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768 <  (eval $ac_try) 2>&5
3769 <  ac_status=$?
3770 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 <  (exit $ac_status); }; }; then
3772 <  ac_cv_lib_l_yywrap=yes
3773 < else
3774 <  echo "$as_me: failed program was:" >&5
3775 < sed 's/^/| /' conftest.$ac_ext >&5
3776 <
3777 < ac_cv_lib_l_yywrap=no
3778 < fi
3779 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3780 < LIBS=$ac_check_lib_save_LIBS
3781 < fi
3782 < echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3783 < echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3784 < if test $ac_cv_lib_l_yywrap = yes; then
3785 <  LEXLIB="-ll"
3786 < fi
3787 <
3788 < fi
3789 <
3790 < fi
3791 <
3792 < if test "x$LEX" != "x:"; then
3793 <  echo "$as_me:$LINENO: checking lex output file root" >&5
3794 < echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3795 < if test "${ac_cv_prog_lex_root+set}" = set; then
3796 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3797 < else
3798 <  # The minimal lex program is just a single line: %%.  But some broken lexes
3799 < # (Solaris, I think it was) want two %% lines, so accommodate them.
3800 < cat >conftest.l <<_ACEOF
3801 < %%
3802 < %%
3803 < _ACEOF
3804 < { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3805 <  (eval $LEX conftest.l) 2>&5
3806 <  ac_status=$?
3807 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808 <  (exit $ac_status); }
3809 < if test -f lex.yy.c; then
3810 <  ac_cv_prog_lex_root=lex.yy
3811 < elif test -f lexyy.c; then
3812 <  ac_cv_prog_lex_root=lexyy
3813 < else
3814 <  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3815 < echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3816 <   { (exit 1); exit 1; }; }
3817 < fi
3818 < fi
3819 < echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3820 < echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3821 < rm -f conftest.l
3822 < LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3823 <
3824 < echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3825 < echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3826 < if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3827 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3828 < else
3829 <  # POSIX says lex can declare yytext either as a pointer or an array; the
3830 < # default is implementation-dependent. Figure out which it is, since
3831 < # not all implementations provide the %pointer and %array declarations.
3832 < ac_cv_prog_lex_yytext_pointer=no
3833 < echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3834 < ac_save_LIBS=$LIBS
3835 < LIBS="$LIBS $LEXLIB"
3836 < cat >conftest.$ac_ext <<_ACEOF
3837 < `cat $LEX_OUTPUT_ROOT.c`
3838 < _ACEOF
3839 < rm -f conftest.$ac_objext conftest$ac_exeext
3840 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3841 <  (eval $ac_link) 2>&5
3842 <  ac_status=$?
3843 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 <  (exit $ac_status); } &&
3845 <         { ac_try='test -s conftest$ac_exeext'
3846 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 <  (eval $ac_try) 2>&5
3848 <  ac_status=$?
3849 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 <  (exit $ac_status); }; }; then
3851 <  ac_cv_prog_lex_yytext_pointer=yes
3852 < else
3853 <  echo "$as_me: failed program was:" >&5
3854 < sed 's/^/| /' conftest.$ac_ext >&5
3855 <
3856 < fi
3857 < rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3858 < LIBS=$ac_save_LIBS
3859 < rm -f "${LEX_OUTPUT_ROOT}.c"
3860 <
3861 < fi
3862 < echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3863 < echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3864 < if test $ac_cv_prog_lex_yytext_pointer = yes; then
3865 <
3866 < cat >>confdefs.h <<\_ACEOF
3867 < #define YYTEXT_POINTER 1
3868 < _ACEOF
3869 <
3870 < fi
3871 <
3872 < fi
3873 < # Extract the first word of "ar", so it can be a program name with args.
3874 < set dummy ar; ac_word=$2
3875 < echo "$as_me:$LINENO: checking for $ac_word" >&5
3876 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3877 < if test "${ac_cv_prog_AR+set}" = set; then
3878 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3879 < else
3880 <  if test -n "$AR"; then
3881 <  ac_cv_prog_AR="$AR" # Let the user override the test.
3882 < else
3883 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 < for as_dir in $PATH
3885 < do
3886 <  IFS=$as_save_IFS
3887 <  test -z "$as_dir" && as_dir=.
3888 <  for ac_exec_ext in '' $ac_executable_extensions; do
3889 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3890 <    ac_cv_prog_AR="ar"
3891 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3892 <    break 2
3893 <  fi
3894 < done
3895 < done
3896 <
3897 <  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
3898 < fi
3899 < fi
3900 < AR=$ac_cv_prog_AR
3901 < if test -n "$AR"; then
3902 <  echo "$as_me:$LINENO: result: $AR" >&5
3903 < echo "${ECHO_T}$AR" >&6
3904 < else
3905 <  echo "$as_me:$LINENO: result: no" >&5
3906 < echo "${ECHO_T}no" >&6
3907 < fi
3908 <
3909 < if test "$AR" = "NONE"; then
3910 <  { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
3911 < echo "$as_me: error: --> Can't find \`ar'!" >&2;}
3912 <   { (exit 1); exit 1; }; }
3913 <  cat >confcache <<\_ACEOF
3914 < # This file is a shell script that caches the results of configure
3915 < # tests run on this system so they can be shared between configure
3916 < # scripts and configure runs, see configure's option --config-cache.
3917 < # It is not useful on other systems.  If it contains results you don't
3918 < # want to keep, you may remove or edit it.
3919 < #
3920 < # config.status only pays attention to the cache file if you give it
3921 < # the --recheck option to rerun configure.
3922 < #
3923 < # `ac_cv_env_foo' variables (set or unset) will be overridden when
3924 < # loading this file, other *unset* `ac_cv_foo' will be assigned the
3925 < # following values.
3926 <
3927 < _ACEOF
3928 <
3929 < # The following way of writing the cache mishandles newlines in values,
3930 < # but we know of no workaround that is simple, portable, and efficient.
3931 < # So, don't put newlines in cache variables' values.
3932 < # Ultrix sh set writes to stderr and can't be redirected directly,
3933 < # and sets the high bit in the cache file unless we assign to the vars.
3934 < {
3935 <  (set) 2>&1 |
3936 <    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3937 <    *ac_space=\ *)
3938 <      # `set' does not quote correctly, so add quotes (double-quote
3939 <      # substitution turns \\\\ into \\, and sed turns \\ into \).
3940 <      sed -n \
3941 <        "s/'/'\\\\''/g;
3942 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3943 <      ;;
3944 <    *)
3945 <      # `set' quotes correctly as required by POSIX, so do not add quotes.
3946 <      sed -n \
3947 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3948 <      ;;
3949 <    esac;
3950 < } |
3951 <  sed '
3952 <     t clear
3953 <     : clear
3954 <     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3955 <     t end
3956 <     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3957 <     : end' >>confcache
3958 < if diff $cache_file confcache >/dev/null 2>&1; then :; else
3959 <  if test -w $cache_file; then
3960 <    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3961 <    cat confcache >$cache_file
3962 <  else
3963 <    echo "not updating unwritable cache $cache_file"
3964 <  fi
3965 < fi
3966 < rm -f confcache
3967 <  exit 1
3968 < fi
3969 <
3970 < ac_ext=f90
3971 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3972 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3974 <
3975 <
3976 <
3977 < ac_ext=f90
3978 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3979 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3980 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3981 < echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
3982 < echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3983 < if test "${ac_cv_prog_f90_v+set}" = set; then
3984 <  echo $ECHO_N "(cached) $ECHO_C" >&6
3985 < else
3986 <
3987 < cat >conftest.$ac_ext <<_ACEOF
3988 <
3989 < program main
3990 <
3991 <
3992 < end program main
3993 <
3994 < _ACEOF
3995 < rm -f conftest.$ac_objext
3996 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3997 <  (eval $ac_compile) 2>&5
3998 <  ac_status=$?
3999 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 <  (exit $ac_status); } &&
4001 <         { ac_try='test -s conftest.$ac_objext'
4002 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4003 <  (eval $ac_try) 2>&5
4004 <  ac_status=$?
4005 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 <  (exit $ac_status); }; }; then
4007 <  ac_cv_prog_f90_v=
4008 < # Try some options frequently used verbose output
4009 < for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4010 <  ac_ext=f90
4011 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4012 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4014 <
4015 < cat >conftest.$ac_ext <<_ACEOF
4016 <
4017 < program main
4018 <
4019 <
4020 < end program main
4021 <
4022 < _ACEOF
4023 <
4024 < # Compile and link our simple test program by passing a flag (argument
4025 < # 1 to this macro) to the Fortran 90 compiler in order to get
4026 < # "verbose" output that we can then parse for the Fortran 90 linker
4027 < # flags.
4028 < ac_save_F90FLAGS=$F90FLAGS
4029 < F90FLAGS="$F90FLAGS $ac_verb"
4030 <
4031 < (eval echo $as_me:4854: \"$ac_link\") >&5
4032 < ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4033 < echo "$ac_f90_v_output" >&5
4034 < F90FLAGS=$ac_save_F90FLAGS
4035 <
4036 < rm -f conftest.*
4037 < ac_ext=f90
4038 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4039 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4041 <
4042 < # If we are using xlf then replace all the commas with spaces.
4043 < if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4044 <  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4045 < fi
4046 <
4047 < # If we are using Cray Fortran then delete quotes.
4048 < # Use "\"" instead of '"' for font-lock-mode.
4049 < # FIXME: a more general fix for quoted arguments with spaces?
4050 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4051 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4052 < fi
4053 <  # look for -l* and *.a constructs in the output
4054 <  for ac_arg in $ac_f90_v_output; do
4055 <     case $ac_arg in
4056 <        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4057 <          ac_cv_prog_f90_v=$ac_verb
4058 <          break 2 ;;
4059 <     esac
4060 <  done
4061 < done
4062 < if test -z "$ac_cv_prog_f90_v"; then
4063 <   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
4064 < echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
4065 < fi
4066 < else
4067 <  echo "$as_me: failed program was:" >&5
4068 < sed 's/^/| /' conftest.$ac_ext >&5
4069 <
4070 < { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4071 < echo "$as_me: WARNING: compilation failed" >&2;}
4072 < fi
4073 < rm -f conftest.$ac_objext conftest.$ac_ext
4074 <
4075 < fi
4076 < echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
4077 < echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
4078 < echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
4079 < echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
4080 < if test "${ac_cv_flibs+set}" = set; then
4081 <  echo $ECHO_N "(cached) $ECHO_C" >&6
4082 < else
4083 <  if test "x$F90LIBS" != "x"; then
4084 <  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
4085 < else
4086 <
4087 < ac_ext=f90
4088 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4089 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4091 <
4092 < cat >conftest.$ac_ext <<_ACEOF
4093 <
4094 < program main
4095 <
4096 <
4097 < end program main
4098 <
4099 < _ACEOF
4100 <
4101 < # Compile and link our simple test program by passing a flag (argument
4102 < # 1 to this macro) to the Fortran 90 compiler in order to get
4103 < # "verbose" output that we can then parse for the Fortran 90 linker
4104 < # flags.
4105 < ac_save_F90FLAGS=$F90FLAGS
4106 < F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
4107 <
4108 < (eval echo $as_me:4931: \"$ac_link\") >&5
4109 < ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4110 < echo "$ac_f90_v_output" >&5
4111 < F90FLAGS=$ac_save_F90FLAGS
4112 <
4113 < rm -f conftest.*
4114 < ac_ext=f90
4115 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4116 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4118 <
4119 < # If we are using xlf then replace all the commas with spaces.
4120 < if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
4121 <  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
4122 < fi
4123 <
4124 < # If we are using Cray Fortran then delete quotes.
4125 < # Use "\"" instead of '"' for font-lock-mode.
4126 < # FIXME: a more general fix for quoted arguments with spaces?
4127 < if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
4128 <  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
4129 < fi
4130 <
4131 < ac_cv_f90libs=
4132 <
4133 < # Save positional arguments (if any)
4134 < ac_save_positional="$@"
4135 <
4136 < set X $ac_f90_v_output
4137 < while test $# != 1; do
4138 <  shift
4139 <  ac_arg=$1
4140 <  case $ac_arg in
4141 <        [\\/]*.a | ?:[\\/]*.a)
4142 <            ac_exists=false
4143 <  for ac_i in $ac_cv_f90libs; do
4144 <    if test x"$ac_arg" = x"$ac_i"; then
4145 <      ac_exists=true
4146 <      break
4147 <    fi
4148 <  done
4149 <
4150 <  if test x"$ac_exists" = xtrue; then
4151 <  :
4152 < else
4153 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4154 < fi
4155 <
4156 <          ;;
4157 <        -bI:*)
4158 <            ac_exists=false
4159 <  for ac_i in $ac_cv_f90libs; do
4160 <    if test x"$ac_arg" = x"$ac_i"; then
4161 <      ac_exists=true
4162 <      break
4163 <    fi
4164 <  done
4165 <
4166 <  if test x"$ac_exists" = xtrue; then
4167 <  :
4168 < else
4169 <  if test "$ac_compiler_gnu" = yes; then
4170 <  for ac_link_opt in $ac_arg; do
4171 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
4172 <  done
4173 < else
4174 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4175 < fi
4176 < fi
4177 <
4178 <          ;;
4179 <          # Ignore these flags.
4180 <        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
4181 <          ;;
4182 <        -lkernel32)
4183 <          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
4184 <          ;;
4185 <        -[LRuY])
4186 <          # These flags, when seen by themselves, take an argument.
4187 <          # We remove the space between option and argument and re-iterate
4188 <          # unless we find an empty arg or a new option (starting with -)
4189 <          case $2 in
4190 <             "" | -*);;
4191 <             *)
4192 <                ac_arg="$ac_arg$2"
4193 <
4194 <                shift; shift
4195 <                set X $ac_arg "$@"
4196 <                ;;
4197 <          esac
4198 <          ;;
4199 <        -YP,*)
4200 <          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4201 <              ac_exists=false
4202 <  for ac_i in $ac_cv_f90libs; do
4203 <    if test x"$ac_j" = x"$ac_i"; then
4204 <      ac_exists=true
4205 <      break
4206 <    fi
4207 <  done
4208 <
4209 <  if test x"$ac_exists" = xtrue; then
4210 <  :
4211 < else
4212 <  ac_arg="$ac_arg $ac_j"
4213 <                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
4214 < fi
3130 >  ac_save_ext=$ac_ext
3131 >  ac_ext=F90
3132 >  ac_save_F90FLAGS=$F90FLAGS
3133 >
3134 >  if test "$PREPFLAG"; then
3135 >  F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
3136 > fi
3137 >
3138 >    cat >conftest.$ac_ext <<_ACEOF
3139 >
3140 >
3141 > program main
3142 >
3143 >  integer :: i
3144 >  i = 1
3145 >
3146 >
3147 > end program main
3148 >
3149 > _ACEOF
3150 > rm -f conftest.$ac_objext
3151 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3152 >  (eval $ac_compile) 2>&5
3153 >  ac_status=$?
3154 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 >  (exit $ac_status); } &&
3156 >         { ac_try='test -s conftest.$ac_objext'
3157 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 >  (eval $ac_try) 2>&5
3159 >  ac_status=$?
3160 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 >  (exit $ac_status); }; }; then
3162 >  prepflagworks=1
3163 > else
3164 >  echo "$as_me: failed program was:" >&5
3165 > sed 's/^/| /' conftest.$ac_ext >&5
3166 >
3167 > prepflagworks=0
3168 > fi
3169 > rm -f conftest.$ac_objext conftest.$ac_ext
3170 >
3171 >  F90FLAGS=$ac_save_F90FLAGS
3172 >  ac_ext=$ac_save_ext
3173 >  ac_ext=c
3174 > ac_cpp='$CPP $CPPFLAGS'
3175 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178 >
3179 >
3180 >  if test "$prepflagworks" = 1; then
3181 >    echo "$as_me:$LINENO: result: yes" >&5
3182 > echo "${ECHO_T}yes" >&6
3183 >
3184 >  else
3185 >    echo "$as_me:$LINENO: result: no" >&5
3186 > echo "${ECHO_T}no" >&6
3187 >    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3188 > echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3189 >   { (exit 1); exit 1; }; }
3190 >  fi
3191 > fi
3192 >
3193 >
3194 >
3195 >
3196 >
3197 > # Try to determine native compiler flags that allow us to use F90 suffix
3198 > # for preprocessed f90 source with -D type defines
3199 >
3200 > if test "$ac_test_PREPDEFFLAG" != "set"; then
3201 >  PREPDEFFLAG=""
3202 >  case "${host_cpu}-${host_os}" in
3203 >
3204 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
3205 >                    PREPDEFFLAG=" "
3206 >                fi;;
3207 >  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3208 >                    PREPDEFFLAG="-WF,"
3209 >                fi;;
3210 >  *darwin*)
3211 >        if test "$F90" = f90 -o "$F90" = xlf90; then
3212 >                PREPDEFFLAG="-WF,"
3213 >        fi;;
3214 >  esac
3215 >
3216 >  if test -z "$PREPDEFFLAG"; then
3217 >        { echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5
3218 > echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;}
3219 >        PREPDEFFLAG=" "
3220 >  fi
3221 >
3222 >  echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3223 > echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3224 >
3225 >
3226 >  ac_ext=f90
3227 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3228 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3230 >
3231 >  ac_save_ext=$ac_ext
3232 >  ac_ext=F90
3233 >  ac_save_F90FLAGS=$F90FLAGS
3234 >
3235 >  if test "$PREPDEFFLAG"; then
3236 >  F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
3237 > fi
3238 >
3239 >    cat >conftest.$ac_ext <<_ACEOF
3240 >
3241 >
3242 > program main
3243 >
3244 >  integer :: i
3245 > #ifdef TEST
3246 >  i = 1
3247 > #else
3248 >  choke me
3249 > #endif
3250 >
3251 >
3252 > end program main
3253 >
3254 > _ACEOF
3255 > rm -f conftest.$ac_objext
3256 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3257 >  (eval $ac_compile) 2>&5
3258 >  ac_status=$?
3259 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 >  (exit $ac_status); } &&
3261 >         { ac_try='test -s conftest.$ac_objext'
3262 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263 >  (eval $ac_try) 2>&5
3264 >  ac_status=$?
3265 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 >  (exit $ac_status); }; }; then
3267 >  prepdefflagworks=1
3268 > else
3269 >  echo "$as_me: failed program was:" >&5
3270 > sed 's/^/| /' conftest.$ac_ext >&5
3271 >
3272 > prepdefflagworks=0
3273 > fi
3274 > rm -f conftest.$ac_objext conftest.$ac_ext
3275 >
3276 >  F90FLAGS=$ac_save_F90FLAGS
3277 >  ac_ext=$ac_save_ext
3278 >  ac_ext=c
3279 > ac_cpp='$CPP $CPPFLAGS'
3280 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283 >
3284 >
3285 >
3286 >  if test "$prepdefflagworks" = 1; then
3287 >    echo "$as_me:$LINENO: result: yes" >&5
3288 > echo "${ECHO_T}yes" >&6
3289 >
3290 >  else
3291 >    echo "$as_me:$LINENO: result: no" >&5
3292 > echo "${ECHO_T}no" >&6
3293 >    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3294 > echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3295 >   { (exit 1); exit 1; }; }
3296 >  fi
3297 > fi
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 >
3305 >
3306 > ac_ext=f90
3307 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3308 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3310 > echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5
3311 > echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6
3312 > if test "${ac_cv_prog_f90_v+set}" = set; then
3313 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3314 > else
3315 >
3316 > cat >conftest.$ac_ext <<_ACEOF
3317 >
3318 > program main
3319 >
3320 >
3321 > end program main
3322 >
3323 > _ACEOF
3324 > rm -f conftest.$ac_objext
3325 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3326 >  (eval $ac_compile) 2>&5
3327 >  ac_status=$?
3328 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 >  (exit $ac_status); } &&
3330 >         { ac_try='test -s conftest.$ac_objext'
3331 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332 >  (eval $ac_try) 2>&5
3333 >  ac_status=$?
3334 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 >  (exit $ac_status); }; }; then
3336 >  ac_cv_prog_f90_v=
3337 > # Try some options frequently used verbose output
3338 > for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3339 >  ac_ext=f90
3340 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3341 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3343 >
3344 > cat >conftest.$ac_ext <<_ACEOF
3345 >
3346 > program main
3347 >
3348 >
3349 > end program main
3350 >
3351 > _ACEOF
3352 >
3353 > # Compile and link our simple test program by passing a flag (argument
3354 > # 1 to this macro) to the Fortran 90 compiler in order to get
3355 > # "verbose" output that we can then parse for the Fortran 90 linker
3356 > # flags.
3357 > ac_save_F90FLAGS=$F90FLAGS
3358 > F90FLAGS="$F90FLAGS $ac_verb"
3359 >
3360 > (eval echo $as_me:3360: \"$ac_link\") >&5
3361 > ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3362 > echo "$ac_f90_v_output" >&5
3363 > F90FLAGS=$ac_save_F90FLAGS
3364 >
3365 > rm -f conftest.*
3366 > ac_ext=f90
3367 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3368 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3370 >
3371 > # If we are using xlf then replace all the commas with spaces.
3372 > if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3373 >  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3374 > fi
3375 >
3376 > # If we are using Cray Fortran then delete quotes.
3377 > # Use "\"" instead of '"' for font-lock-mode.
3378 > # FIXME: a more general fix for quoted arguments with spaces?
3379 > if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3380 >  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3381 > fi
3382 >  # look for -l* and *.a constructs in the output
3383 >  for ac_arg in $ac_f90_v_output; do
3384 >     case $ac_arg in
3385 >        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3386 >          ac_cv_prog_f90_v=$ac_verb
3387 >          break 2 ;;
3388 >     esac
3389 >  done
3390 > done
3391 > if test -z "$ac_cv_prog_f90_v"; then
3392 >   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5
3393 > echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;}
3394 > fi
3395 > else
3396 >  echo "$as_me: failed program was:" >&5
3397 > sed 's/^/| /' conftest.$ac_ext >&5
3398 >
3399 > { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3400 > echo "$as_me: WARNING: compilation failed" >&2;}
3401 > fi
3402 > rm -f conftest.$ac_objext conftest.$ac_ext
3403 >
3404 > fi
3405 > echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5
3406 > echo "${ECHO_T}$ac_cv_prog_f90_v" >&6
3407 > echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5
3408 > echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6
3409 > if test "${ac_cv_flibs+set}" = set; then
3410 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3411 > else
3412 >  if test "x$F90LIBS" != "x"; then
3413 >  ac_cv_f90libs="$F90LIBS" # Let the user override the test.
3414 > else
3415 >
3416 > ac_ext=f90
3417 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3418 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3420 >
3421 > cat >conftest.$ac_ext <<_ACEOF
3422 >
3423 > program main
3424 >
3425 >
3426 > end program main
3427 >
3428 > _ACEOF
3429 >
3430 > # Compile and link our simple test program by passing a flag (argument
3431 > # 1 to this macro) to the Fortran 90 compiler in order to get
3432 > # "verbose" output that we can then parse for the Fortran 90 linker
3433 > # flags.
3434 > ac_save_F90FLAGS=$F90FLAGS
3435 > F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3436 >
3437 > (eval echo $as_me:3437: \"$ac_link\") >&5
3438 > ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3439 > echo "$ac_f90_v_output" >&5
3440 > F90FLAGS=$ac_save_F90FLAGS
3441 >
3442 > rm -f conftest.*
3443 > ac_ext=f90
3444 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3445 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3447 >
3448 > # If we are using xlf then replace all the commas with spaces.
3449 > if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then
3450 >  ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'`
3451 > fi
3452 >
3453 > # If we are using Cray Fortran then delete quotes.
3454 > # Use "\"" instead of '"' for font-lock-mode.
3455 > # FIXME: a more general fix for quoted arguments with spaces?
3456 > if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then
3457 >  ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"`
3458 > fi
3459 >
3460 > ac_cv_f90libs=
3461 >
3462 > # Save positional arguments (if any)
3463 > ac_save_positional="$@"
3464 >
3465 > set X $ac_f90_v_output
3466 > while test $# != 1; do
3467 >  shift
3468 >  ac_arg=$1
3469 >  case $ac_arg in
3470 >        [\\/]*.a | ?:[\\/]*.a)
3471 >            ac_exists=false
3472 >  for ac_i in $ac_cv_f90libs; do
3473 >    if test x"$ac_arg" = x"$ac_i"; then
3474 >      ac_exists=true
3475 >      break
3476 >    fi
3477 >  done
3478 >
3479 >  if test x"$ac_exists" = xtrue; then
3480 >  :
3481 > else
3482 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3483 > fi
3484 >
3485 >          ;;
3486 >        -bI:*)
3487 >            ac_exists=false
3488 >  for ac_i in $ac_cv_f90libs; do
3489 >    if test x"$ac_arg" = x"$ac_i"; then
3490 >      ac_exists=true
3491 >      break
3492 >    fi
3493 >  done
3494 >
3495 >  if test x"$ac_exists" = xtrue; then
3496 >  :
3497 > else
3498 >  if test "$ac_compiler_gnu" = yes; then
3499 >  for ac_link_opt in $ac_arg; do
3500 >    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3501 >  done
3502 > else
3503 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3504 > fi
3505 > fi
3506 >
3507 >          ;;
3508 >          # Ignore these flags.
3509 >        -lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*)
3510 >          ;;
3511 >        -lkernel32)
3512 >          test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3513 >          ;;
3514 >        -[LRuY])
3515 >          # These flags, when seen by themselves, take an argument.
3516 >          # We remove the space between option and argument and re-iterate
3517 >          # unless we find an empty arg or a new option (starting with -)
3518 >          case $2 in
3519 >             "" | -*);;
3520 >             *)
3521 >                ac_arg="$ac_arg$2"
3522 >
3523 >                shift; shift
3524 >                set X $ac_arg "$@"
3525 >                ;;
3526 >          esac
3527 >          ;;
3528 >        -YP,*)
3529 >          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
3530 >              ac_exists=false
3531 >  for ac_i in $ac_cv_f90libs; do
3532 >    if test x"$ac_j" = x"$ac_i"; then
3533 >      ac_exists=true
3534 >      break
3535 >    fi
3536 >  done
3537 >
3538 >  if test x"$ac_exists" = xtrue; then
3539 >  :
3540 > else
3541 >  ac_arg="$ac_arg $ac_j"
3542 >                             ac_cv_f90libs="$ac_cv_f90libs $ac_j"
3543 > fi
3544 >
3545 >          done
3546 >          ;;
3547 >        -[lLR]*)
3548 >            ac_exists=false
3549 >  for ac_i in $ac_cv_f90libs; do
3550 >    if test x"$ac_arg" = x"$ac_i"; then
3551 >      ac_exists=true
3552 >      break
3553 >    fi
3554 >  done
3555 >
3556 >  if test x"$ac_exists" = xtrue; then
3557 >  :
3558 > else
3559 >  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
3560 > fi
3561 >
3562 >          ;;
3563 >          # Ignore everything else.
3564 >  esac
3565 > done
3566 > # restore positional arguments
3567 > set X $ac_save_positional; shift
3568 >
3569 > # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
3570 > # then we insist that the "run path" must be an absolute path (i.e. it
3571 > # must begin with a "/").
3572 > case `(uname -sr) 2>/dev/null` in
3573 >   "SunOS 5"*)
3574 >      ac_ld_run_path=`echo $ac_f90_v_output |
3575 >                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
3576 >      test "x$ac_ld_run_path" != x &&
3577 >
3578 >        if test "$ac_compiler_gnu" = yes; then
3579 >  for ac_link_opt in $ac_ld_run_path; do
3580 >    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
3581 >  done
3582 > else
3583 >  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
3584 > fi
3585 >      ;;
3586 > esac
3587 > fi # test "x$F90LIBS" = "x"
3588 >
3589 > fi
3590 > echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
3591 > echo "${ECHO_T}$ac_cv_flibs" >&6
3592 > F90LIBS="$ac_cv_f90libs"
3593 >
3594 > ac_ext=f90
3595 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3596 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3597 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3598 >
3599 >
3600 > echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
3601 > echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
3602 > if test "${ac_cv_f90_mangling+set}" = set; then
3603 >  echo $ECHO_N "(cached) $ECHO_C" >&6
3604 > else
3605 >  ac_ext=f90
3606 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3607 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3609 > cat >conftest.$ac_ext <<_ACEOF
3610 > subroutine foobar()
3611 > return
3612 > end
3613 > subroutine foo_bar()
3614 > return
3615 > end
3616 > _ACEOF
3617 > rm -f conftest.$ac_objext
3618 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3619 >  (eval $ac_compile) 2>&5
3620 >  ac_status=$?
3621 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 >  (exit $ac_status); } &&
3623 >         { ac_try='test -s conftest.$ac_objext'
3624 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 >  (eval $ac_try) 2>&5
3626 >  ac_status=$?
3627 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 >  (exit $ac_status); }; }; then
3629 >  mv conftest.$ac_objext cf90_test.$ac_objext
3630 >
3631 >  ac_ext=c
3632 > ac_cpp='$CPP $CPPFLAGS'
3633 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636 >
3637 >  ac_save_LIBS=$LIBS
3638 >  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
3639 >
3640 >  ac_success=no
3641 >  for ac_foobar in foobar FOOBAR; do
3642 >    for ac_underscore in "" "_"; do
3643 >      ac_func="$ac_foobar$ac_underscore"
3644 >      cat >conftest.$ac_ext <<_ACEOF
3645 > #line $LINENO "configure"
3646 > /* confdefs.h.  */
3647 > _ACEOF
3648 > cat confdefs.h >>conftest.$ac_ext
3649 > cat >>conftest.$ac_ext <<_ACEOF
3650 > /* end confdefs.h.  */
3651 >
3652 > /* Override any gcc2 internal prototype to avoid an error.  */
3653 > #ifdef __cplusplus
3654 > extern "C"
3655 > #endif
3656 > /* We use char because int might match the return type of a gcc2
3657 >   builtin and then its argument prototype would still apply.  */
3658 > char $ac_func ();
3659 > int
3660 > main ()
3661 > {
3662 > $ac_func ();
3663 >  ;
3664 >  return 0;
3665 > }
3666 > _ACEOF
3667 > rm -f conftest.$ac_objext conftest$ac_exeext
3668 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3669 >  (eval $ac_link) 2>&5
3670 >  ac_status=$?
3671 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 >  (exit $ac_status); } &&
3673 >         { ac_try='test -s conftest$ac_exeext'
3674 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 >  (eval $ac_try) 2>&5
3676 >  ac_status=$?
3677 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 >  (exit $ac_status); }; }; then
3679 >  ac_success=yes; break 2
3680 > else
3681 >  echo "$as_me: failed program was:" >&5
3682 > sed 's/^/| /' conftest.$ac_ext >&5
3683 >
3684 > fi
3685 > rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3686 >    done
3687 >  done
3688 >
3689 >  if test "$ac_success" = "yes"; then
3690 >     case $ac_foobar in
3691 >        foobar)
3692 >           ac_case=lower
3693 >           ac_foo_bar=foo_bar
3694 >           ;;
3695 >        FOOBAR)
3696 >           ac_case=upper
3697 >           ac_foo_bar=FOO_BAR
3698 >           ;;
3699 >     esac
3700 >
3701 >     ac_success_extra=no
3702 >     for ac_extra in "" "_"; do
3703 >        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
3704 >
3705 >        cat >conftest.$ac_ext <<_ACEOF
3706 > #line $LINENO "configure"
3707 > /* confdefs.h.  */
3708 > _ACEOF
3709 > cat confdefs.h >>conftest.$ac_ext
3710 > cat >>conftest.$ac_ext <<_ACEOF
3711 > /* end confdefs.h.  */
3712 >
3713 > /* Override any gcc2 internal prototype to avoid an error.  */
3714 > #ifdef __cplusplus
3715 > extern "C"
3716 > #endif
3717 > /* We use char because int might match the return type of a gcc2
3718 >   builtin and then its argument prototype would still apply.  */
3719 > char $ac_func ();
3720 > int
3721 > main ()
3722 > {
3723 > $ac_func ();
3724 >  ;
3725 >  return 0;
3726 > }
3727 > _ACEOF
3728 > rm -f conftest.$ac_objext conftest$ac_exeext
3729 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3730 >  (eval $ac_link) 2>&5
3731 >  ac_status=$?
3732 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 >  (exit $ac_status); } &&
3734 >         { ac_try='test -s conftest$ac_exeext'
3735 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3736 >  (eval $ac_try) 2>&5
3737 >  ac_status=$?
3738 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 >  (exit $ac_status); }; }; then
3740 >  ac_success_extra=yes; break
3741 > else
3742 >  echo "$as_me: failed program was:" >&5
3743 > sed 's/^/| /' conftest.$ac_ext >&5
3744 >
3745 > fi
3746 > rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3747 >     done
3748 >
3749 >     if test "$ac_success_extra" = "yes"; then
3750 >        ac_cv_f90_mangling="$ac_case case"
3751 >        if test -z "$ac_underscore"; then
3752 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
3753 >        else
3754 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
3755 >
3756 >        fi
3757 >        if test -z "$ac_extra"; then
3758 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
3759 >        else
3760 >           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
3761 >        fi
3762 >      else
3763 >        ac_cv_f90_mangling="unknown"
3764 >      fi
3765 >  else
3766 >     ac_cv_f90_mangling="unknown"
3767 >
3768 >  fi
3769 >
3770 >  LIBS=$ac_save_LIBS
3771 >  ac_ext=f90
3772 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3773 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3775 >  rm -f cf90_test* conftest*
3776 > else
3777 >  echo "$as_me: failed program was:" >&5
3778 > sed 's/^/| /' conftest.$ac_ext >&5
3779 >
3780 > fi
3781 > rm -f conftest.$ac_objext conftest.$ac_ext
3782 > ac_ext=f90
3783 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3784 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3786 >
3787 > fi
3788 > echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
3789 > echo "${ECHO_T}$ac_cv_f90_mangling" >&6
3790 >
3791 >
3792 >
3793 > case $ac_cv_f90_mangling in
3794 >  "lower case, no underscore, no extra underscore")
3795 >          cat >>confdefs.h <<\_ACEOF
3796 > #define F90_FUNC(name,NAME) name
3797 > _ACEOF
3798 >
3799 >          cat >>confdefs.h <<\_ACEOF
3800 > #define F90_FUNC_(name,NAME) name
3801 > _ACEOF
3802 > ;;
3803 >  "lower case, no underscore, extra underscore")
3804 >          cat >>confdefs.h <<\_ACEOF
3805 > #define F90_FUNC(name,NAME) name
3806 > _ACEOF
3807 >
3808 >          cat >>confdefs.h <<\_ACEOF
3809 > #define F90_FUNC_(name,NAME) name ## _
3810 > _ACEOF
3811 > ;;
3812 >  "lower case, underscore, no extra underscore")
3813 >          cat >>confdefs.h <<\_ACEOF
3814 > #define F90_FUNC(name,NAME) name ## _
3815 > _ACEOF
3816 >
3817 >          cat >>confdefs.h <<\_ACEOF
3818 > #define F90_FUNC_(name,NAME) name ## _
3819 > _ACEOF
3820 > ;;
3821 >  "lower case, underscore, extra underscore")
3822 >          cat >>confdefs.h <<\_ACEOF
3823 > #define F90_FUNC(name,NAME) name ## _
3824 > _ACEOF
3825 >
3826 >          cat >>confdefs.h <<\_ACEOF
3827 > #define F90_FUNC_(name,NAME) name ## __
3828 > _ACEOF
3829 > ;;
3830 >  "upper case, no underscore, no extra underscore")
3831 >          cat >>confdefs.h <<\_ACEOF
3832 > #define F90_FUNC(name,NAME) NAME
3833 > _ACEOF
3834 >
3835 >          cat >>confdefs.h <<\_ACEOF
3836 > #define F90_FUNC_(name,NAME) NAME
3837 > _ACEOF
3838 > ;;
3839 >  "upper case, no underscore, extra underscore")
3840 >          cat >>confdefs.h <<\_ACEOF
3841 > #define F90_FUNC(name,NAME) NAME
3842 > _ACEOF
3843 >
3844 >          cat >>confdefs.h <<\_ACEOF
3845 > #define F90_FUNC_(name,NAME) NAME ## _
3846 > _ACEOF
3847 > ;;
3848 >  "upper case, underscore, no extra underscore")
3849 >          cat >>confdefs.h <<\_ACEOF
3850 > #define F90_FUNC(name,NAME) NAME ## _
3851 > _ACEOF
3852 >
3853 >          cat >>confdefs.h <<\_ACEOF
3854 > #define F90_FUNC_(name,NAME) NAME ## _
3855 > _ACEOF
3856 > ;;
3857 >  "upper case, underscore, extra underscore")
3858 >          cat >>confdefs.h <<\_ACEOF
3859 > #define F90_FUNC(name,NAME) NAME ## _
3860 > _ACEOF
3861 >
3862 >          cat >>confdefs.h <<\_ACEOF
3863 > #define F90_FUNC_(name,NAME) NAME ## __
3864 > _ACEOF
3865 > ;;
3866 >  *)
3867 >          { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
3868 > echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
3869 >          ;;
3870 > esac
3871 >
3872 >
3873 >
3874 >
3875 >
3876 > echo "$as_me:$LINENO: checking for module suffix" >&5
3877 > echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
3878 > rm -f conftest*
3879 > # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
3880 > rm -f work*
3881 > cat >conftest.f90 <<EOF
3882 >        module conftest
3883 >        integer n
3884 >        parameter (n=1)
3885 >        end module conftest
3886 > EOF
3887 > # SGI and absoft compilers generates module name in upper case!
3888 > testname="conftest"
3889 > modcase="lower"
3890 > if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
3891 >    MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
3892 >    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
3893 >    if test -z "$MOD" ; then
3894 >        MOD=`ls CONFTEST* 2>/dev/null \
3895 >                | grep -v CONFTEST.f | grep -v CONFTEST.o`
3896 >        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
3897 >        if test -n "$MOD" ; then
3898 >            testname="CONFTEST"
3899 >            modcase="upper"
3900 >        fi
3901 >    fi
3902 >    if test -z "$MOD" ; then
3903 >        echo "$as_me:$LINENO: result: unknown" >&5
3904 > echo "${ECHO_T}unknown" >&6
3905 >        # Use mod if we can't figure it out
3906 >        MOD="mod"
3907 >    else
3908 >        echo "$as_me:$LINENO: result: $MOD" >&5
3909 > echo "${ECHO_T}$MOD" >&6
3910 >    fi
3911 >    if test -s work.pcl ; then
3912 >        { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
3913 > echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
3914 >    fi
3915 > else
3916 >    echo "$as_me:$LINENO: result: unknown" >&5
3917 > echo "${ECHO_T}unknown" >&6
3918 > fi
3919 >
3920 >
3921 >
3922 >
3923 >
3924 > # Check for module include path (some use -I, some (Solaris) use -M, some
3925 > # (absoft) use -p).
3926 > # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
3927 > # specified, work.pcl and work.pc are created.  However, if you specify
3928 > # a file, it must contain a the name of a file ending in .pc .  Ugh!
3929 > # Use the module made above
3930 > echo "$as_me:$LINENO: checking for module directory path flag" >&5
3931 > echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
3932 > rm -f conftest*
3933 > # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
3934 > rm -f work*
3935 > cat >conftest.f90 <<EOF
3936 >        module conftest
3937 >        integer n
3938 >        parameter (n=1)
3939 >        end module conftest
3940 > EOF
3941 > # SGI and absoft compilers generates module name in upper case!
3942 > testname="conftest"
3943 > if $F90 -c conftest.f90 > conftest.out 2>&1 ; then
3944 >   mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o`
3945 >   mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'`
3946 >   if test -n "$mod" ; then
3947 >      testname="CONFTEST"
3948 >   fi
3949 >   madedir=0
3950 >   if test ! -d conf ; then mkdir conf ; madedir=1; fi
3951 >   cp $testname.$MOD conf
3952 >   rm -f conftest* CONFTEST*
3953 >   cat >conftest1.f90 <<EOF
3954 >        program main
3955 >        use conftest
3956 >        print *, n
3957 >        end
3958 > EOF
3959 >   F90_WORK_FILES_ARG=""
3960 >   F90MODINCSPEC=""
3961 >   if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then
3962 >       MODDIRFLAG="-I"
3963 >       F90MODINCSPEC="-I<dir>"
3964 >       echo "$as_me:$LINENO: result: -I" >&5
3965 > echo "${ECHO_T}-I" >&6
3966 >   elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then
3967 >       MODDIRFLAG="-M"
3968 >       F90MODINCSPEC="-M<dir>"
3969 >       echo "$as_me:$LINENO: result: -M" >&5
3970 > echo "${ECHO_T}-M" >&6
3971 >   elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then
3972 >       MODDIRFLAG="-p"
3973 >       F90MODINCSPEC="-p<dir>"
3974 >       echo "$as_me:$LINENO: result: -p" >&5
3975 > echo "${ECHO_T}-p" >&6
3976 >   elif test -s work.pc ; then
3977 >        cp work.pc conf/mpimod.pc
3978 >        echo "mpimod.pc" > conf/mpimod.pcl
3979 >        echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
3980 >        if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
3981 >            MODDIRFLAG='-cl,mpimod.pcl'
3982 >            echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5
3983 > echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6
3984 >            F90_WORK_FILES_ARG="-cl,mpimod.pcl"
3985 >            F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
3986 >
3987 >        else
3988 >            # The version of the Intel compiler that I have refuses to let
3989 >            # you put the "work catalog" list anywhere but the current
3990 >            # directory. For example, you cannot in
3991 >         :
3992 >        fi
3993 >   fi
3994 >   if test -z "MODDIRFLAG" ; then
3995 >       echo "$as_me:$LINENO: result: unknown" >&5
3996 > echo "${ECHO_T}unknown" >&6
3997 >   fi
3998 >
3999 >
4000 >   rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
4001 >   if test $madedir = 1 ; then rmdir conf ; fi
4002 > fi
4003 >
4004 >
4005 >
4006 >
4007 > case $debug in
4008 >  1)
4009 >     ;;
4010 >  *)
4011 >
4012 >
4013 >
4014 >
4015 >
4016 >
4017 > echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
4018 > echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
4019 > if test "${ac_cv_prog_really_gcc+set}" = set; then
4020 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4021 > else
4022 >
4023 > cat > conftest.c <<EOF
4024 > #ifdef __GNUC__
4025 >  #ifndef __INTEL_COMPILER
4026 >     yes;
4027 >  #endif
4028 > #endif
4029 > EOF
4030 > if { ac_try='${CC-cc} -E conftest.c'
4031 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 >  (eval $ac_try) 2>&5
4033 >  ac_status=$?
4034 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4036 >  ac_cv_prog_really_gcc=yes
4037 > else
4038 >  ac_cv_prog_really_gcc=no
4039 > fi
4040 >
4041 > fi
4042 > echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
4043 > echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
4044 > if test "$ac_cv_prog_really_gcc" = yes; then
4045 >        :
4046 >
4047 > else
4048 >        :
4049 >
4050 > fi
4051 >
4052 >
4053 > # Try to determine "good" native compiler flags if none specified on command
4054 > # line
4055 > if test "$ac_test_CFLAGS" != "set"; then
4056 >  CFLAGS=""
4057 >  case "${host_cpu}-${host_os}" in
4058 >
4059 >  *linux*) if test "$CC" = icc; then
4060 >                    CFLAGS="-O"
4061 >                fi;;
4062 >  sparc-solaris2*) if test "$CC" = cc; then
4063 >                    CFLAGS="-native -fast -xO5 -dalign"
4064 >                 fi;;
4065 >
4066 >  alpha*-osf*)  if test "$CC" = cc; then
4067 >                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
4068 >                fi;;
4069 >
4070 >  hppa*-hpux*)  if test "$CC" = cc; then
4071 >                    CFLAGS="-Ae +O3 +Oall"
4072 >                fi;;
4073 >
4074 >   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
4075 >                    CFLAGS="-O3 -qtune=auto -qansialias -w"
4076 >                fi;;
4077 >   powerpc*-aix*)
4078 >        if test "$CC" = cc -o "$CC" = xlc; then
4079 >                CFLAGS="-O3 -qtune=auto -qansialias -w"
4080 >                echo "*******************************************************"
4081 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4082 >                echo "*  recommended that you use                           *"
4083 >                echo "*                                                     *"
4084 >                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4085 >                echo "*                                 ^^^                 *"
4086 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4087 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4088 >                echo "*******************************************************"
4089 >        fi;;
4090 >   *darwin*)
4091 >        if test "$CC" = xlc -o "$CC" = cc; then
4092 >                CFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
4093 >        fi;;
4094 >  esac
4095 >
4096 >  # use default flags for gcc on all systems
4097 >  if test $ac_cv_prog_really_gcc = yes; then
4098 >     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4099 >  fi
4100 >
4101 >  # test for gcc-specific flags:
4102 >  if test $ac_cv_prog_really_gcc = yes; then
4103 >    # -malign-double for x86 systems
4104 >
4105 >
4106 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
4107 > echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
4108 > if test "${ac_align_double+set}" = set; then
4109 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4110 > else
4111 >  echo 'void f(){}' > conftest.c
4112 > if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
4113 >        ac_align_double=yes
4114 > else
4115 >        ac_align_double=no
4116 > fi
4117 > rm -f conftest*
4118 >
4119 > fi
4120 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
4121 > echo "${ECHO_T}$ac_align_double" >&6
4122 > if test "$ac_align_double" = yes; then
4123 >        :
4124 >        CFLAGS="$CFLAGS -malign-double"
4125 > else
4126 >        :
4127 >
4128 > fi
4129 >
4130 >    # -fstrict-aliasing for gcc-2.95+
4131 >
4132 >
4133 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
4134 > echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
4135 > if test "${ac_fstrict_aliasing+set}" = set; then
4136 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4137 > else
4138 >  echo 'void f(){}' > conftest.c
4139 > if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
4140 >        ac_fstrict_aliasing=yes
4141 > else
4142 >        ac_fstrict_aliasing=no
4143 > fi
4144 > rm -f conftest*
4145 >
4146 > fi
4147 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4148 > echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4149 > if test "$ac_fstrict_aliasing" = yes; then
4150 >        :
4151 >        CFLAGS="$CFLAGS -fstrict-aliasing"
4152 > else
4153 >        :
4154 >
4155 > fi
4156 >
4157 >  fi
4158 >
4159 >  CPU_FLAGS=""
4160 >  if test $ac_cv_prog_really_gcc = yes; then
4161 >                  case "${host_cpu}" in
4162 >          i586*)
4163 >
4164 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
4165 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
4166 > if test "${ac_cpu_pentium+set}" = set; then
4167 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4168 > else
4169 >  echo 'void f(){}' > conftest.c
4170 > if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
4171 >        ac_cpu_pentium=yes
4172 > else
4173 >        ac_cpu_pentium=no
4174 > fi
4175 > rm -f conftest*
4176 >
4177 > fi
4178 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4179 > echo "${ECHO_T}$ac_cpu_pentium" >&6
4180 > if test "$ac_cpu_pentium" = yes; then
4181 >        :
4182 >        CPU_FLAGS=-mcpu=pentium
4183 > else
4184 >        :
4185 >
4186 >
4187 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
4188 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
4189 > if test "${ac_pentium+set}" = set; then
4190 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4191 > else
4192 >  echo 'void f(){}' > conftest.c
4193 > if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
4194 >        ac_pentium=yes
4195 > else
4196 >        ac_pentium=no
4197 > fi
4198 > rm -f conftest*
4199 >
4200 > fi
4201 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
4202 > echo "${ECHO_T}$ac_pentium" >&6
4203 > if test "$ac_pentium" = yes; then
4204 >        :
4205 >        CPU_FLAGS=-mpentium
4206 > else
4207 >        :
4208 >
4209 > fi
4210 >
4211 > fi
4212 >
4213 >                  ;;
4214 >          i686*)
4215 >
4216 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
4217 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4218 > if test "${ac_cpu_pentiumpro+set}" = set; then
4219 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4220 > else
4221 >  echo 'void f(){}' > conftest.c
4222 > if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
4223 >        ac_cpu_pentiumpro=yes
4224 > else
4225 >        ac_cpu_pentiumpro=no
4226 > fi
4227 > rm -f conftest*
4228 >
4229 > fi
4230 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4231 > echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4232 > if test "$ac_cpu_pentiumpro" = yes; then
4233 >        :
4234 >        CPU_FLAGS=-mcpu=pentiumpro
4235 > else
4236 >        :
4237 >
4238 >
4239 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
4240 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
4241 > if test "${ac_pentiumpro+set}" = set; then
4242 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4243 > else
4244 >  echo 'void f(){}' > conftest.c
4245 > if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
4246 >        ac_pentiumpro=yes
4247 > else
4248 >        ac_pentiumpro=no
4249 > fi
4250 > rm -f conftest*
4251 >
4252 > fi
4253 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4254 > echo "${ECHO_T}$ac_pentiumpro" >&6
4255 > if test "$ac_pentiumpro" = yes; then
4256 >        :
4257 >        CPU_FLAGS=-mpentiumpro
4258 > else
4259 >        :
4260 >
4261 > fi
4262 >
4263 > fi
4264 >
4265 >                  ;;
4266 >          powerpc*)
4267 >                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
4268 >                is60x=`echo $cputype | egrep "^600-9e?$"`
4269 >                if test -n "$is60x"; then
4270 >
4271 >
4272 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
4273 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
4274 > if test "${ac_m_cpu_60x+set}" = set; then
4275 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4276 > else
4277 >  echo 'void f(){}' > conftest.c
4278 > if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
4279 >        ac_m_cpu_60x=yes
4280 > else
4281 >        ac_m_cpu_60x=no
4282 > fi
4283 > rm -f conftest*
4284 >
4285 > fi
4286 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4287 > echo "${ECHO_T}$ac_m_cpu_60x" >&6
4288 > if test "$ac_m_cpu_60x" = yes; then
4289 >        :
4290 >        CPU_FLAGS=-mcpu=$cputype
4291 > else
4292 >        :
4293 >
4294 > fi
4295 >
4296 >                elif test "$cputype" = 750; then
4297 >
4298 >
4299 > echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
4300 > echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
4301 > if test "${ac_cv_prog_gcc_2_95+set}" = set; then
4302 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4303 > else
4304 >
4305 > cat > conftest.c <<EOF
4306 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4307 > #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4308 >     yes;
4309 > #  endif
4310 > #endif
4311 > EOF
4312 > if { ac_try='${CC-cc} -E conftest.c'
4313 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 >  (eval $ac_try) 2>&5
4315 >  ac_status=$?
4316 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4318 >  ac_cv_prog_gcc_2_95=yes
4319 > else
4320 >  ac_cv_prog_gcc_2_95=no
4321 > fi
4322 >
4323 > fi
4324 > echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
4325 > echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
4326 > if test "$ac_cv_prog_gcc_2_95" = yes; then
4327 >        :
4328 >
4329 >
4330 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
4331 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
4332 > if test "${ac_m_cpu_750+set}" = set; then
4333 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4334 > else
4335 >  echo 'void f(){}' > conftest.c
4336 > if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
4337 >        ac_m_cpu_750=yes
4338 > else
4339 >        ac_m_cpu_750=no
4340 > fi
4341 > rm -f conftest*
4342 >
4343 > fi
4344 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
4345 > echo "${ECHO_T}$ac_m_cpu_750" >&6
4346 > if test "$ac_m_cpu_750" = yes; then
4347 >        :
4348 >        CPU_FLAGS=-mcpu=750
4349 > else
4350 >        :
4351 >
4352 > fi
4353 >
4354 > else
4355 >        :
4356 >
4357 > fi
4358 >
4359 >                fi
4360 >                if test -z "$CPU_FLAGS"; then
4361 >
4362 >
4363 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
4364 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
4365 > if test "${ac_m_cpu_powerpc+set}" = set; then
4366 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4367 > else
4368 >  echo 'void f(){}' > conftest.c
4369 > if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
4370 >        ac_m_cpu_powerpc=yes
4371 > else
4372 >        ac_m_cpu_powerpc=no
4373 > fi
4374 > rm -f conftest*
4375 >
4376 > fi
4377 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
4378 > echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
4379 > if test "$ac_m_cpu_powerpc" = yes; then
4380 >        :
4381 >        CPU_FLAGS=-mcpu=powerpc
4382 > else
4383 >        :
4384 >
4385 > fi
4386 >
4387 >                fi
4388 >                if test -z "$CPU_FLAGS"; then
4389 >
4390 >
4391 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
4392 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
4393 > if test "${ac_m_powerpc+set}" = set; then
4394 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4395 > else
4396 >  echo 'void f(){}' > conftest.c
4397 > if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
4398 >        ac_m_powerpc=yes
4399 > else
4400 >        ac_m_powerpc=no
4401 > fi
4402 > rm -f conftest*
4403 >
4404 > fi
4405 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
4406 > echo "${ECHO_T}$ac_m_powerpc" >&6
4407 > if test "$ac_m_powerpc" = yes; then
4408 >        :
4409 >        CPU_FLAGS=-mpowerpc
4410 > else
4411 >        :
4412 >
4413 > fi
4414 >
4415 >                fi
4416 >          esac
4417 >  fi
4418 >
4419 >  if test -n "$CPU_FLAGS"; then
4420 >        CFLAGS="$CFLAGS $CPU_FLAGS"
4421 >  fi
4422 >
4423 >  if test -z "$CFLAGS"; then
4424 >        echo ""
4425 >        echo "********************************************************"
4426 >        echo "* WARNING: Don't know the best CFLAGS for this system  *"
4427 >        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
4428 >        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
4429 >        echo "********************************************************"
4430 >        echo ""
4431 >        CFLAGS="-O3"
4432 >  fi
4433 >
4434 >
4435 >
4436 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
4437 > echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
4438 > if test "${ac_guessed_cflags+set}" = set; then
4439 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4440 > else
4441 >  echo 'void f(){}' > conftest.c
4442 > if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
4443 >        ac_guessed_cflags=yes
4444 > else
4445 >        ac_guessed_cflags=no
4446 > fi
4447 > rm -f conftest*
4448 >
4449 > fi
4450 > echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
4451 > echo "${ECHO_T}$ac_guessed_cflags" >&6
4452 > if test "$ac_guessed_cflags" = yes; then
4453 >        :
4454 >
4455 > else
4456 >        :
4457 >
4458 >        echo ""
4459 >        echo "********************************************************"
4460 >        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
4461 >        echo "* your compiler.                                       *"
4462 >        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
4463 >        echo "********************************************************"
4464 >        echo ""
4465 >        CFLAGS=""
4466 >
4467 > fi
4468 >
4469 >
4470 > fi
4471 >
4472 >
4473 >
4474 >
4475 >
4476 >
4477 >
4478 > echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
4479 > echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6
4480 > if test "${ac_cv_prog_really_gxx+set}" = set; then
4481 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4482 > else
4483 >
4484 > cat > conftest.cpp <<EOF
4485 > #ifdef __GNUC__
4486 >  #ifndef __INTEL_COMPILER
4487 >     yes;
4488 >  #endif
4489 > #endif
4490 > EOF
4491 > if { ac_try='${CXX-c++} -E conftest.cpp'
4492 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 >  (eval $ac_try) 2>&5
4494 >  ac_status=$?
4495 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4497 >  ac_cv_prog_really_gxx=yes
4498 > else
4499 >  ac_cv_prog_really_gxx=no
4500 > fi
4501 >
4502 > fi
4503 > echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
4504 > echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
4505 > if test "$ac_cv_prog_really_gxx" = yes; then
4506 >        :
4507 >
4508 > else
4509 >        :
4510 >
4511 > fi
4512 >
4513 >
4514 > # Try to determine "good" native compiler flags if none specified on command
4515 > # line
4516 > if test "$ac_test_CXXFLAGS" != "set"; then
4517 >  CXXFLAGS=""
4518 >  case "${host_cpu}-${host_os}" in
4519 >
4520 >  *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
4521 >                    CXXFLAGS="-O"
4522 >                fi;;
4523 >  sparc-solaris2*) if test "$CXX" = CC; then
4524 >                    CXXFLAGS="-native -fast -xO5 -dalign"
4525 >                 fi;;
4526 >   rs6000*-aix*)  if test "$CXX" = xlC; then
4527 >                    CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
4528 >                fi;;
4529 >   powerpc*-aix*)
4530 >        if test "$CXX" = xlC; then
4531 >                CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
4532 >                echo "*******************************************************"
4533 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4534 >                echo "*  recommended that you use                           *"
4535 >                echo "*                                                     *"
4536 >                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4537 >                echo "*                                 ^^^                 *"
4538 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4539 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
4540 >                echo "*******************************************************"
4541 >        fi;;
4542 >   *darwin*)
4543 >        if test "$CXX" = xlc++; then
4544 >                CXXFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
4545 >        fi;;
4546 >  esac
4547 >
4548 >  # use default flags for gcc on all systems
4549 >  if test $ac_cv_prog_really_gxx = yes; then
4550 >     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
4551 >  fi
4552 >
4553 >  # test for gcc-specific flags:
4554 >  if test $ac_cv_prog_really_gxx = yes; then
4555 >    # -malign-double for x86 systems
4556 >
4557 >
4558 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
4559 > echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
4560 > if test "${ac_align_double+set}" = set; then
4561 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4562 > else
4563 >  echo 'void f(){}' > conftest.cpp
4564 > if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
4565 >        ac_align_double=yes
4566 > else
4567 >        ac_align_double=no
4568 > fi
4569 > rm -f conftest*
4570 >
4571 > fi
4572 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
4573 > echo "${ECHO_T}$ac_align_double" >&6
4574 > if test "$ac_align_double" = yes; then
4575 >        :
4576 >        CXXFLAGS="$CXXFLAGS -malign-double"
4577 > else
4578 >        :
4579 >
4580 > fi
4581 >
4582 >    # -fstrict-aliasing for gcc-2.95+
4583 >
4584 >
4585 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
4586 > echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
4587 > if test "${ac_fstrict_aliasing+set}" = set; then
4588 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4589 > else
4590 >  echo 'void f(){}' > conftest.cpp
4591 > if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
4592 >        ac_fstrict_aliasing=yes
4593 > else
4594 >        ac_fstrict_aliasing=no
4595 > fi
4596 > rm -f conftest*
4597 >
4598 > fi
4599 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
4600 > echo "${ECHO_T}$ac_fstrict_aliasing" >&6
4601 > if test "$ac_fstrict_aliasing" = yes; then
4602 >        :
4603 >        CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
4604 > else
4605 >        :
4606 >
4607 > fi
4608 >
4609 >  fi
4610 >
4611 >  CPU_FLAGS=""
4612 >  if test $ac_cv_prog_really_gxx = yes; then
4613 >                  case "${host_cpu}" in
4614 >          i586*)
4615 >
4616 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
4617 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
4618 > if test "${ac_cpu_pentium+set}" = set; then
4619 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4620 > else
4621 >  echo 'void f(){}' > conftest.cpp
4622 > if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
4623 >        ac_cpu_pentium=yes
4624 > else
4625 >        ac_cpu_pentium=no
4626 > fi
4627 > rm -f conftest*
4628 >
4629 > fi
4630 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
4631 > echo "${ECHO_T}$ac_cpu_pentium" >&6
4632 > if test "$ac_cpu_pentium" = yes; then
4633 >        :
4634 >        CPU_FLAGS=-mcpu=pentium
4635 > else
4636 >        :
4637 >
4638 >
4639 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
4640 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
4641 > if test "${ac_pentium+set}" = set; then
4642 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4643 > else
4644 >  echo 'void f(){}' > conftest.cpp
4645 > if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
4646 >        ac_pentium=yes
4647 > else
4648 >        ac_pentium=no
4649 > fi
4650 > rm -f conftest*
4651 >
4652 > fi
4653 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
4654 > echo "${ECHO_T}$ac_pentium" >&6
4655 > if test "$ac_pentium" = yes; then
4656 >        :
4657 >        CPU_FLAGS=-mpentium
4658 > else
4659 >        :
4660 >
4661 > fi
4662 >
4663 > fi
4664 >
4665 >                  ;;
4666 >          i686*)
4667 >
4668 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
4669 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
4670 > if test "${ac_cpu_pentiumpro+set}" = set; then
4671 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4672 > else
4673 >  echo 'void f(){}' > conftest.cpp
4674 > if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
4675 >        ac_cpu_pentiumpro=yes
4676 > else
4677 >        ac_cpu_pentiumpro=no
4678 > fi
4679 > rm -f conftest*
4680 >
4681 > fi
4682 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
4683 > echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
4684 > if test "$ac_cpu_pentiumpro" = yes; then
4685 >        :
4686 >        CPU_FLAGS=-mcpu=pentiumpro
4687 > else
4688 >        :
4689 >
4690 >
4691 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
4692 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
4693 > if test "${ac_pentiumpro+set}" = set; then
4694 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4695 > else
4696 >  echo 'void f(){}' > conftest.cpp
4697 > if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
4698 >        ac_pentiumpro=yes
4699 > else
4700 >        ac_pentiumpro=no
4701 > fi
4702 > rm -f conftest*
4703 >
4704 > fi
4705 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
4706 > echo "${ECHO_T}$ac_pentiumpro" >&6
4707 > if test "$ac_pentiumpro" = yes; then
4708 >        :
4709 >        CPU_FLAGS=-mpentiumpro
4710 > else
4711 >        :
4712 >
4713 > fi
4714 >
4715 > fi
4716 >
4717 >                  ;;
4718 >          powerpc*)
4719 >                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
4720 >                is60x=`echo $cputype | egrep "^600-9e?$"`
4721 >                if test -n "$is60x"; then
4722 >
4723 >
4724 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
4725 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
4726 > if test "${ac_m_cpu_60x+set}" = set; then
4727 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4728 > else
4729 >  echo 'void f(){}' > conftest.cpp
4730 > if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
4731 >        ac_m_cpu_60x=yes
4732 > else
4733 >        ac_m_cpu_60x=no
4734 > fi
4735 > rm -f conftest*
4736 >
4737 > fi
4738 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
4739 > echo "${ECHO_T}$ac_m_cpu_60x" >&6
4740 > if test "$ac_m_cpu_60x" = yes; then
4741 >        :
4742 >        CPU_FLAGS=-mcpu=$cputype
4743 > else
4744 >        :
4745 >
4746 > fi
4747 >
4748 >                elif test "$cputype" = 750; then
4749 >
4750 >
4751 > echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
4752 > echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
4753 > if test "${ac_cv_prog_gxx_2_95+set}" = set; then
4754 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4755 > else
4756 >
4757 > cat > conftest.cpp <<EOF
4758 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
4759 > #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
4760 >     yes;
4761 > #  endif
4762 > #endif
4763 > EOF
4764 > if { ac_try='${CXX-c++} -E conftest.cpp'
4765 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766 >  (eval $ac_try) 2>&5
4767 >  ac_status=$?
4768 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
4770 >  ac_cv_prog_gxx_2_95=yes
4771 > else
4772 >  ac_cv_prog_gxx_2_95=no
4773 > fi
4774 >
4775 > fi
4776 > echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
4777 > echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
4778 > if test "$ac_cv_prog_gxx_2_95" = yes; then
4779 >        :
4780 >
4781 >
4782 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
4783 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
4784 > if test "${ac_m_cpu_750+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++} -mcpu=750 -c conftest.cpp 2>&1`"; then
4789 >        ac_m_cpu_750=yes
4790 > else
4791 >        ac_m_cpu_750=no
4792 > fi
4793 > rm -f conftest*
4794 >
4795 > fi
4796 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
4797 > echo "${ECHO_T}$ac_m_cpu_750" >&6
4798 > if test "$ac_m_cpu_750" = yes; then
4799 >        :
4800 >        CPU_FLAGS=-mcpu=750
4801 > else
4802 >        :
4803 >
4804 > fi
4805 >
4806 > else
4807 >        :
4808 >
4809 > fi
4810 >
4811 >                fi
4812 >                if test -z "$CPU_FLAGS"; then
4813 >
4814 >
4815 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
4816 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
4817 > if test "${ac_m_cpu_powerpc+set}" = set; then
4818 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4819 > else
4820 >  echo 'void f(){}' > conftest.cpp
4821 > if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
4822 >        ac_m_cpu_powerpc=yes
4823 > else
4824 >        ac_m_cpu_powerpc=no
4825 > fi
4826 > rm -f conftest*
4827 >
4828 > fi
4829 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
4830 > echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
4831 > if test "$ac_m_cpu_powerpc" = yes; then
4832 >        :
4833 >        CPU_FLAGS=-mcpu=powerpc
4834 > else
4835 >        :
4836 >
4837 > fi
4838 >
4839 >                fi
4840 >                if test -z "$CPU_FLAGS"; then
4841 >
4842 >
4843 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
4844 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
4845 > if test "${ac_m_powerpc+set}" = set; then
4846 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4847 > else
4848 >  echo 'void f(){}' > conftest.cpp
4849 > if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
4850 >        ac_m_powerpc=yes
4851 > else
4852 >        ac_m_powerpc=no
4853 > fi
4854 > rm -f conftest*
4855 >
4856 > fi
4857 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
4858 > echo "${ECHO_T}$ac_m_powerpc" >&6
4859 > if test "$ac_m_powerpc" = yes; then
4860 >        :
4861 >        CPU_FLAGS=-mpowerpc
4862 > else
4863 >        :
4864 >
4865 > fi
4866 >
4867 >                fi
4868 >          esac
4869 >  fi
4870 >
4871 >  if test -n "$CPU_FLAGS"; then
4872 >        CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
4873 >  fi
4874 >
4875 >  if test -z "$CXXFLAGS"; then
4876 >        echo ""
4877 >        echo "**********************************************************"
4878 >        echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
4879 >        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
4880 >        echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *"
4881 >        echo "**********************************************************"
4882 >        echo ""
4883 >        CXXFLAGS="-O3"
4884 >  fi
4885 >
4886 >
4887 >
4888 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
4889 > echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
4890 > if test "${ac_guessed_cxxflags+set}" = set; then
4891 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4892 > else
4893 >  echo 'void f(){}' > conftest.cpp
4894 > if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
4895 >        ac_guessed_cxxflags=yes
4896 > else
4897 >        ac_guessed_cxxflags=no
4898 > fi
4899 > rm -f conftest*
4900 >
4901 > fi
4902 > echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
4903 > echo "${ECHO_T}$ac_guessed_cxxflags" >&6
4904 > if test "$ac_guessed_cxxflags" = yes; then
4905 >        :
4906 >
4907 > else
4908 >        :
4909 >
4910 >        echo ""
4911 >        echo "**********************************************************"
4912 >        echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *"
4913 >        echo "* your compiler.                                         *"
4914 >        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
4915 >        echo "**********************************************************"
4916 >        echo ""
4917 >        CXXFLAGS=""
4918 >
4919 > fi
4920 >
4921 >
4922 > fi
4923 >
4924 >
4925 >
4926 >
4927 >
4928 > # Try to determine "good" native compiler flags if none specified on command
4929 > # line
4930 >
4931 > if test x"$F90FLAGS" = x ; then
4932 >  F90FLAGS=""
4933 >  case "${host_cpu}-${host_os}" in
4934 >
4935 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
4936 >                    F90FLAGS="-O"
4937 >                fi;;
4938 >   rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
4939 >                    F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
4940 >                fi;;
4941 >   powerpc*-aix*)
4942 >        if test "$F90" = f90 -o "$F90" = xlf90; then
4943 >                F90FLAGS="-O3 -qarch=ppc -qansialias -w"
4944 >                echo "*******************************************************"
4945 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
4946 >                echo "*  recommended that you use                           *"
4947 >                echo "*                                                     *"
4948 >                echo "*  F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
4949 >                echo "*                                 ^^^                 *"
4950 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
4951 >                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
4952 >                echo "*******************************************************"
4953 >        fi;;
4954 >   *darwin*)
4955 >        if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then
4956 >                F90FLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto"
4957 >        fi;;
4958 >  esac
4959 >
4960 >  if test -n "$CPU_FLAGS"; then
4961 >        F90FLAGS="$F90FLAGS $CPU_FLAGS"
4962 >  fi
4963 >
4964 >  if test -z "$F90FLAGS"; then
4965 >        echo ""
4966 >        echo "**********************************************************"
4967 >        echo "* WARNING: Don't know the best F90FLAGS for this system  *"
4968 >        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
4969 >        echo "* (otherwise, a default of F90FLAGS=-O3 will be used)    *"
4970 >        echo "**********************************************************"
4971 >        echo ""
4972 >        F90FLAGS="-O3"
4973 >  fi
4974 >
4975 >
4976 > echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
4977 > echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
4978 > if test "${ac_guessed_f90flags+set}" = set; then
4979 >  echo $ECHO_N "(cached) $ECHO_C" >&6
4980 > else
4981 >
4982 >
4983 >
4984 > ac_ext=f90
4985 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4986 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4987 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4988 >
4989 > echo 'program main' > conftest.$ac_ext
4990 > echo 'end program main' >> conftest.$ac_ext
4991 > ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
4992 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993 >  (eval $ac_compile) 2>&5
4994 >  ac_status=$?
4995 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 >  (exit $ac_status); }; then
4997 >        ac_guessed_f90flags=yes
4998 > else
4999 >        ac_guessed_f90flags=no
5000 > fi
5001 > rm -f conftest*
5002 > ac_ext=f90
5003 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5004 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5006 >
5007 >
5008 > fi
5009 > echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
5010 > echo "${ECHO_T}$ac_guessed_f90flags" >&6
5011 > if test "$ac_guessed_f90flags" = yes; then
5012 >        :
5013 >
5014 > else
5015 >        :
5016 >
5017 >        echo ""
5018 >        echo "**********************************************************"
5019 >        echo "* WARNING: The guessed F90FLAGS don't seem to work with  *"
5020 >        echo "* your compiler.                                         *"
5021 >        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
5022 >        echo "**********************************************************"
5023 >        echo ""
5024 >        F90FLAGS=""
5025 >
5026 > fi
5027 >
5028 >
5029 > fi
5030 >
5031 >     ;;
5032 > esac
5033 >
5034 > # Find a good install program.  We prefer a C program (faster),
5035 > # so one script is as good as another.  But avoid the broken or
5036 > # incompatible versions:
5037 > # SysV /etc/install, /usr/sbin/install
5038 > # SunOS /usr/etc/install
5039 > # IRIX /sbin/install
5040 > # AIX /bin/install
5041 > # AmigaOS /C/install, which installs bootblocks on floppy discs
5042 > # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5043 > # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5044 > # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5045 > # ./install, which can be erroneously created by make from ./install.sh.
5046 > echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5047 > echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5048 > if test -z "$INSTALL"; then
5049 > if test "${ac_cv_path_install+set}" = set; then
5050 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5051 > else
5052 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 > for as_dir in $PATH
5054 > do
5055 >  IFS=$as_save_IFS
5056 >  test -z "$as_dir" && as_dir=.
5057 >  # Account for people who put trailing slashes in PATH elements.
5058 > case $as_dir/ in
5059 >  ./ | .// | /cC/* | \
5060 >  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5061 >  /usr/ucb/* ) ;;
5062 >  *)
5063 >    # OSF1 and SCO ODT 3.0 have their own names for install.
5064 >    # Don't use installbsd from OSF since it installs stuff as root
5065 >    # by default.
5066 >    for ac_prog in ginstall scoinst install; do
5067 >      for ac_exec_ext in '' $ac_executable_extensions; do
5068 >        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5069 >          if test $ac_prog = install &&
5070 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5071 >            # AIX install.  It has an incompatible calling convention.
5072 >            :
5073 >          elif test $ac_prog = install &&
5074 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5075 >            # program-specific install script used by HP pwplus--don't use.
5076 >            :
5077 >          else
5078 >            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5079 >            break 3
5080 >          fi
5081 >        fi
5082 >      done
5083 >    done
5084 >    ;;
5085 > esac
5086 > done
5087 >
5088 >
5089 > fi
5090 >  if test "${ac_cv_path_install+set}" = set; then
5091 >    INSTALL=$ac_cv_path_install
5092 >  else
5093 >    # As a last resort, use the slow shell script.  We don't cache a
5094 >    # path for INSTALL within a source directory, because that will
5095 >    # break other packages using the cache if that directory is
5096 >    # removed, or if the path is relative.
5097 >    INSTALL=$ac_install_sh
5098 >  fi
5099 > fi
5100 > echo "$as_me:$LINENO: result: $INSTALL" >&5
5101 > echo "${ECHO_T}$INSTALL" >&6
5102 >
5103 > # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5104 > # It thinks the first close brace ends the variable substitution.
5105 > test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5106 >
5107 > test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5108 >
5109 > test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5110 >
5111 > echo "$as_me:$LINENO: checking whether ln -s works" >&5
5112 > echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5113 > LN_S=$as_ln_s
5114 > if test "$LN_S" = "ln -s"; then
5115 >  echo "$as_me:$LINENO: result: yes" >&5
5116 > echo "${ECHO_T}yes" >&6
5117 > else
5118 >  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5119 > echo "${ECHO_T}no, using $LN_S" >&6
5120 > fi
5121 >
5122 > echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5123 > echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5124 > set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
5125 > if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5126 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5127 > else
5128 >  cat >conftest.make <<\_ACEOF
5129 > all:
5130 >        @echo 'ac_maketemp="$(MAKE)"'
5131 > _ACEOF
5132 > # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5133 > eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5134 > if test -n "$ac_maketemp"; then
5135 >  eval ac_cv_prog_make_${ac_make}_set=yes
5136 > else
5137 >  eval ac_cv_prog_make_${ac_make}_set=no
5138 > fi
5139 > rm -f conftest.make
5140 > fi
5141 > if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5142 >  echo "$as_me:$LINENO: result: yes" >&5
5143 > echo "${ECHO_T}yes" >&6
5144 >  SET_MAKE=
5145 > else
5146 >  echo "$as_me:$LINENO: result: no" >&5
5147 > echo "${ECHO_T}no" >&6
5148 >  SET_MAKE="MAKE=${MAKE-make}"
5149 > fi
5150 >
5151 > if test -n "$ac_tool_prefix"; then
5152 >  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5153 > set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5154 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156 > if test "${ac_cv_prog_RANLIB+set}" = set; then
5157 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5158 > else
5159 >  if test -n "$RANLIB"; then
5160 >  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5161 > else
5162 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 > for as_dir in $PATH
5164 > do
5165 >  IFS=$as_save_IFS
5166 >  test -z "$as_dir" && as_dir=.
5167 >  for ac_exec_ext in '' $ac_executable_extensions; do
5168 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169 >    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5170 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 >    break 2
5172 >  fi
5173 > done
5174 > done
5175 >
5176 > fi
5177 > fi
5178 > RANLIB=$ac_cv_prog_RANLIB
5179 > if test -n "$RANLIB"; then
5180 >  echo "$as_me:$LINENO: result: $RANLIB" >&5
5181 > echo "${ECHO_T}$RANLIB" >&6
5182 > else
5183 >  echo "$as_me:$LINENO: result: no" >&5
5184 > echo "${ECHO_T}no" >&6
5185 > fi
5186 >
5187 > fi
5188 > if test -z "$ac_cv_prog_RANLIB"; then
5189 >  ac_ct_RANLIB=$RANLIB
5190 >  # Extract the first word of "ranlib", so it can be a program name with args.
5191 > set dummy ranlib; ac_word=$2
5192 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5194 > if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5195 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5196 > else
5197 >  if test -n "$ac_ct_RANLIB"; then
5198 >  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5199 > else
5200 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 > for as_dir in $PATH
5202 > do
5203 >  IFS=$as_save_IFS
5204 >  test -z "$as_dir" && as_dir=.
5205 >  for ac_exec_ext in '' $ac_executable_extensions; do
5206 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207 >    ac_cv_prog_ac_ct_RANLIB="ranlib"
5208 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 >    break 2
5210 >  fi
5211 > done
5212 > done
5213 >
5214 >  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5215 > fi
5216 > fi
5217 > ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5218 > if test -n "$ac_ct_RANLIB"; then
5219 >  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5220 > echo "${ECHO_T}$ac_ct_RANLIB" >&6
5221 > else
5222 >  echo "$as_me:$LINENO: result: no" >&5
5223 > echo "${ECHO_T}no" >&6
5224 > fi
5225 >
5226 >  RANLIB=$ac_ct_RANLIB
5227 > else
5228 >  RANLIB="$ac_cv_prog_RANLIB"
5229 > fi
5230 >
5231 > for ac_prog in 'bison -y' byacc
5232 > do
5233 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
5234 > set dummy $ac_prog; ac_word=$2
5235 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5236 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5237 > if test "${ac_cv_prog_YACC+set}" = set; then
5238 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5239 > else
5240 >  if test -n "$YACC"; then
5241 >  ac_cv_prog_YACC="$YACC" # Let the user override the test.
5242 > else
5243 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 > for as_dir in $PATH
5245 > do
5246 >  IFS=$as_save_IFS
5247 >  test -z "$as_dir" && as_dir=.
5248 >  for ac_exec_ext in '' $ac_executable_extensions; do
5249 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250 >    ac_cv_prog_YACC="$ac_prog"
5251 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 >    break 2
5253 >  fi
5254 > done
5255 > done
5256 >
5257 > fi
5258 > fi
5259 > YACC=$ac_cv_prog_YACC
5260 > if test -n "$YACC"; then
5261 >  echo "$as_me:$LINENO: result: $YACC" >&5
5262 > echo "${ECHO_T}$YACC" >&6
5263 > else
5264 >  echo "$as_me:$LINENO: result: no" >&5
5265 > echo "${ECHO_T}no" >&6
5266 > fi
5267 >
5268 >  test -n "$YACC" && break
5269 > done
5270 > test -n "$YACC" || YACC="yacc"
5271 >
5272 > for ac_prog in flex lex
5273 > do
5274 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
5275 > set dummy $ac_prog; ac_word=$2
5276 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5277 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5278 > if test "${ac_cv_prog_LEX+set}" = set; then
5279 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5280 > else
5281 >  if test -n "$LEX"; then
5282 >  ac_cv_prog_LEX="$LEX" # Let the user override the test.
5283 > else
5284 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 > for as_dir in $PATH
5286 > do
5287 >  IFS=$as_save_IFS
5288 >  test -z "$as_dir" && as_dir=.
5289 >  for ac_exec_ext in '' $ac_executable_extensions; do
5290 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5291 >    ac_cv_prog_LEX="$ac_prog"
5292 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 >    break 2
5294 >  fi
5295 > done
5296 > done
5297  
5298 <          done
5299 <          ;;
5300 <        -[lLR]*)
5301 <            ac_exists=false
5302 <  for ac_i in $ac_cv_f90libs; do
5303 <    if test x"$ac_arg" = x"$ac_i"; then
5045 <      ac_exists=true
5046 <      break
5047 <    fi
5048 <  done
5049 <
5050 <  if test x"$ac_exists" = xtrue; then
5051 <  :
5298 > fi
5299 > fi
5300 > LEX=$ac_cv_prog_LEX
5301 > if test -n "$LEX"; then
5302 >  echo "$as_me:$LINENO: result: $LEX" >&5
5303 > echo "${ECHO_T}$LEX" >&6
5304   else
5305 <  ac_cv_f90libs="$ac_cv_f90libs $ac_arg"
5305 >  echo "$as_me:$LINENO: result: no" >&5
5306 > echo "${ECHO_T}no" >&6
5307   fi
5308  
5309 <          ;;
5057 <          # Ignore everything else.
5058 <  esac
5309 >  test -n "$LEX" && break
5310   done
5311 < # restore positional arguments
5061 < set X $ac_save_positional; shift
5311 > test -n "$LEX" || LEX=":"
5312  
5313 < # We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
5314 < # then we insist that the "run path" must be an absolute path (i.e. it
5315 < # must begin with a "/").
5316 < case `(uname -sr) 2>/dev/null` in
5317 <   "SunOS 5"*)
5318 <      ac_ld_run_path=`echo $ac_f90_v_output |
5069 <                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
5070 <      test "x$ac_ld_run_path" != x &&
5071 <
5072 <        if test "$ac_compiler_gnu" = yes; then
5073 <  for ac_link_opt in $ac_ld_run_path; do
5074 <    ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt"
5075 <  done
5313 > if test -z "$LEXLIB"
5314 > then
5315 >  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5316 > echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5317 > if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5318 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5319   else
5320 <  ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path"
5321 < fi
5322 <      ;;
5080 < esac
5081 < fi # test "x$F90LIBS" = "x"
5320 >  ac_check_lib_save_LIBS=$LIBS
5321 > LIBS="-lfl  $LIBS"
5322 > cat >conftest.$ac_ext <<_ACEOF
5323  
5324 < fi
5084 < echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5
5085 < echo "${ECHO_T}$ac_cv_flibs" >&6
5086 < F90LIBS="$ac_cv_f90libs"
5324 > program main
5325  
5326 < ac_ext=f90
5327 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5090 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5326 > call yywrap
5327 > end program main
5328  
5093 echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5
5094 echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6
5095 if test "${ac_cv_f90_mangling+set}" = set; then
5096  echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098  ac_ext=f90
5099 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5100 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5101 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5102 cat >conftest.$ac_ext <<_ACEOF
5103 subroutine foobar()
5104 return
5105 end
5106 subroutine foo_bar()
5107 return
5108 end
5329   _ACEOF
5330 < rm -f conftest.$ac_objext
5331 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5332 <  (eval $ac_compile) 2>&5
5330 > rm -f conftest.$ac_objext conftest$ac_exeext
5331 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5332 >  (eval $ac_link) 2>&5
5333    ac_status=$?
5334    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335    (exit $ac_status); } &&
5336 <         { ac_try='test -s conftest.$ac_objext'
5336 >         { ac_try='test -s conftest$ac_exeext'
5337    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338    (eval $ac_try) 2>&5
5339    ac_status=$?
5340    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341    (exit $ac_status); }; }; then
5342 <  mv conftest.$ac_objext cf90_test.$ac_objext
5342 >  ac_cv_lib_fl_yywrap=yes
5343 > else
5344 >  echo "$as_me: failed program was:" >&5
5345 > sed 's/^/| /' conftest.$ac_ext >&5
5346  
5347 <  ac_ext=c
5348 < ac_cpp='$CPP $CPPFLAGS'
5349 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
5347 > ac_cv_lib_fl_yywrap=no
5348 > fi
5349 > rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5350 > LIBS=$ac_check_lib_save_LIBS
5351 > fi
5352 > echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5353 > echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5354 > if test $ac_cv_lib_fl_yywrap = yes; then
5355 >  LEXLIB="-lfl"
5356 > else
5357 >  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5358 > echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5359 > if test "${ac_cv_lib_l_yywrap+set}" = set; then
5360 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5361 > else
5362 >  ac_check_lib_save_LIBS=$LIBS
5363 > LIBS="-ll  $LIBS"
5364 > cat >conftest.$ac_ext <<_ACEOF
5365  
5366 <  ac_save_LIBS=$LIBS
5131 <  LIBS="cf90_test.$ac_objext $F90LIBS $LIBS"
5366 > program main
5367  
5368 <  ac_success=no
5369 <  for ac_foobar in foobar FOOBAR; do
5135 <    for ac_underscore in "" "_"; do
5136 <      ac_func="$ac_foobar$ac_underscore"
5137 <      cat >conftest.$ac_ext <<_ACEOF
5138 < #line $LINENO "configure"
5139 < /* confdefs.h.  */
5140 < _ACEOF
5141 < cat confdefs.h >>conftest.$ac_ext
5142 < cat >>conftest.$ac_ext <<_ACEOF
5143 < /* end confdefs.h.  */
5368 > call yywrap
5369 > end program main
5370  
5145 /* Override any gcc2 internal prototype to avoid an error.  */
5146 #ifdef __cplusplus
5147 extern "C"
5148 #endif
5149 /* We use char because int might match the return type of a gcc2
5150   builtin and then its argument prototype would still apply.  */
5151 char $ac_func ();
5152 int
5153 main ()
5154 {
5155 $ac_func ();
5156  ;
5157  return 0;
5158 }
5371   _ACEOF
5372   rm -f conftest.$ac_objext conftest$ac_exeext
5373   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
# Line 5169 | Line 5381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5381    ac_status=$?
5382    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383    (exit $ac_status); }; }; then
5384 <  ac_success=yes; break 2
5384 >  ac_cv_lib_l_yywrap=yes
5385   else
5386    echo "$as_me: failed program was:" >&5
5387   sed 's/^/| /' conftest.$ac_ext >&5
5388  
5389 + ac_cv_lib_l_yywrap=no
5390   fi
5391   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5392 <    done
5393 <  done
5392 > LIBS=$ac_check_lib_save_LIBS
5393 > fi
5394 > echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5395 > echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5396 > if test $ac_cv_lib_l_yywrap = yes; then
5397 >  LEXLIB="-ll"
5398 > fi
5399  
5400 <  if test "$ac_success" = "yes"; then
5183 <     case $ac_foobar in
5184 <        foobar)
5185 <           ac_case=lower
5186 <           ac_foo_bar=foo_bar
5187 <           ;;
5188 <        FOOBAR)
5189 <           ac_case=upper
5190 <           ac_foo_bar=FOO_BAR
5191 <           ;;
5192 <     esac
5400 > fi
5401  
5402 <     ac_success_extra=no
5195 <     for ac_extra in "" "_"; do
5196 <        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
5402 > fi
5403  
5404 <        cat >conftest.$ac_ext <<_ACEOF
5405 < #line $LINENO "configure"
5406 < /* confdefs.h.  */
5404 > if test "x$LEX" != "x:"; then
5405 >  echo "$as_me:$LINENO: checking lex output file root" >&5
5406 > echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5407 > if test "${ac_cv_prog_lex_root+set}" = set; then
5408 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5409 > else
5410 >  # The minimal lex program is just a single line: %%.  But some broken lexes
5411 > # (Solaris, I think it was) want two %% lines, so accommodate them.
5412 > cat >conftest.l <<_ACEOF
5413 > %%
5414 > %%
5415   _ACEOF
5416 < cat confdefs.h >>conftest.$ac_ext
5417 < cat >>conftest.$ac_ext <<_ACEOF
5418 < /* end confdefs.h.  */
5416 > { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5417 >  (eval $LEX conftest.l) 2>&5
5418 >  ac_status=$?
5419 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 >  (exit $ac_status); }
5421 > if test -f lex.yy.c; then
5422 >  ac_cv_prog_lex_root=lex.yy
5423 > elif test -f lexyy.c; then
5424 >  ac_cv_prog_lex_root=lexyy
5425 > else
5426 >  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5427 > echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5428 >   { (exit 1); exit 1; }; }
5429 > fi
5430 > fi
5431 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5432 > echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5433 > rm -f conftest.l
5434 > LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5435  
5436 < /* Override any gcc2 internal prototype to avoid an error.  */
5437 < #ifdef __cplusplus
5438 < extern "C"
5439 < #endif
5440 < /* We use char because int might match the return type of a gcc2
5441 <   builtin and then its argument prototype would still apply.  */
5442 < char $ac_func ();
5443 < int
5444 < main ()
5445 < {
5446 < $ac_func ();
5447 <  ;
5448 <  return 0;
5449 < }
5436 > echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5437 > echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5438 > if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5439 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5440 > else
5441 >  # POSIX says lex can declare yytext either as a pointer or an array; the
5442 > # default is implementation-dependent. Figure out which it is, since
5443 > # not all implementations provide the %pointer and %array declarations.
5444 > ac_cv_prog_lex_yytext_pointer=no
5445 > echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5446 > ac_save_LIBS=$LIBS
5447 > LIBS="$LIBS $LEXLIB"
5448 > cat >conftest.$ac_ext <<_ACEOF
5449 > `cat $LEX_OUTPUT_ROOT.c`
5450   _ACEOF
5451   rm -f conftest.$ac_objext conftest$ac_exeext
5452   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
# Line 5230 | Line 5460 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5460    ac_status=$?
5461    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462    (exit $ac_status); }; }; then
5463 <  ac_success_extra=yes; break
5463 >  ac_cv_prog_lex_yytext_pointer=yes
5464   else
5465    echo "$as_me: failed program was:" >&5
5466   sed 's/^/| /' conftest.$ac_ext >&5
5467  
5468   fi
5469   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5470 <     done
5470 > LIBS=$ac_save_LIBS
5471 > rm -f "${LEX_OUTPUT_ROOT}.c"
5472  
5473 <     if test "$ac_success_extra" = "yes"; then
5474 <        ac_cv_f90_mangling="$ac_case case"
5475 <        if test -z "$ac_underscore"; then
5476 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore"
5246 <        else
5247 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore"
5473 > fi
5474 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5475 > echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5476 > if test $ac_cv_prog_lex_yytext_pointer = yes; then
5477  
5478 <        fi
5479 <        if test -z "$ac_extra"; then
5480 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore"
5252 <        else
5253 <           ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore"
5254 <        fi
5255 <      else
5256 <        ac_cv_f90_mangling="unknown"
5257 <      fi
5258 <  else
5259 <     ac_cv_f90_mangling="unknown"
5478 > cat >>confdefs.h <<\_ACEOF
5479 > #define YYTEXT_POINTER 1
5480 > _ACEOF
5481  
5482 <  fi
5482 > fi
5483  
5484 <  LIBS=$ac_save_LIBS
5485 <  ac_ext=f90
5486 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5487 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5488 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5489 <  rm -f cf90_test* conftest*
5484 > fi
5485 > # Extract the first word of "ar", so it can be a program name with args.
5486 > set dummy ar; ac_word=$2
5487 > echo "$as_me:$LINENO: checking for $ac_word" >&5
5488 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5489 > if test "${ac_cv_prog_AR+set}" = set; then
5490 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5491   else
5492 <  echo "$as_me: failed program was:" >&5
5493 < sed 's/^/| /' conftest.$ac_ext >&5
5492 >  if test -n "$AR"; then
5493 >  ac_cv_prog_AR="$AR" # Let the user override the test.
5494 > else
5495 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 > for as_dir in $PATH
5497 > do
5498 >  IFS=$as_save_IFS
5499 >  test -z "$as_dir" && as_dir=.
5500 >  for ac_exec_ext in '' $ac_executable_extensions; do
5501 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5502 >    ac_cv_prog_AR="ar"
5503 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 >    break 2
5505 >  fi
5506 > done
5507 > done
5508  
5509 +  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
5510   fi
5274 rm -f conftest.$ac_objext conftest.$ac_ext
5275 ac_ext=f90
5276 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
5277 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5278 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
5279
5511   fi
5512 < echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5
5513 < echo "${ECHO_T}$ac_cv_f90_mangling" >&6
5512 > AR=$ac_cv_prog_AR
5513 > if test -n "$AR"; then
5514 >  echo "$as_me:$LINENO: result: $AR" >&5
5515 > echo "${ECHO_T}$AR" >&6
5516 > else
5517 >  echo "$as_me:$LINENO: result: no" >&5
5518 > echo "${ECHO_T}no" >&6
5519 > fi
5520  
5521 + if test "$AR" = "NONE"; then
5522 +  { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
5523 + echo "$as_me: error: --> Can't find \`ar'!" >&2;}
5524 +   { (exit 1); exit 1; }; }
5525 +  cat >confcache <<\_ACEOF
5526 + # This file is a shell script that caches the results of configure
5527 + # tests run on this system so they can be shared between configure
5528 + # scripts and configure runs, see configure's option --config-cache.
5529 + # It is not useful on other systems.  If it contains results you don't
5530 + # want to keep, you may remove or edit it.
5531 + #
5532 + # config.status only pays attention to the cache file if you give it
5533 + # the --recheck option to rerun configure.
5534 + #
5535 + # `ac_cv_env_foo' variables (set or unset) will be overridden when
5536 + # loading this file, other *unset* `ac_cv_foo' will be assigned the
5537 + # following values.
5538  
5285
5286 case $ac_cv_f90_mangling in
5287  "lower case, no underscore, no extra underscore")
5288          cat >>confdefs.h <<\_ACEOF
5289 #define F90_FUNC(name,NAME) name
5539   _ACEOF
5540  
5541 <          cat >>confdefs.h <<\_ACEOF
5542 < #define F90_FUNC_(name,NAME) name
5543 < _ACEOF
5544 < ;;
5545 <  "lower case, no underscore, extra underscore")
5546 <          cat >>confdefs.h <<\_ACEOF
5547 < #define F90_FUNC(name,NAME) name
5548 < _ACEOF
5541 > # The following way of writing the cache mishandles newlines in values,
5542 > # but we know of no workaround that is simple, portable, and efficient.
5543 > # So, don't put newlines in cache variables' values.
5544 > # Ultrix sh set writes to stderr and can't be redirected directly,
5545 > # and sets the high bit in the cache file unless we assign to the vars.
5546 > {
5547 >  (set) 2>&1 |
5548 >    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5549 >    *ac_space=\ *)
5550 >      # `set' does not quote correctly, so add quotes (double-quote
5551 >      # substitution turns \\\\ into \\, and sed turns \\ into \).
5552 >      sed -n \
5553 >        "s/'/'\\\\''/g;
5554 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5555 >      ;;
5556 >    *)
5557 >      # `set' quotes correctly as required by POSIX, so do not add quotes.
5558 >      sed -n \
5559 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5560 >      ;;
5561 >    esac;
5562 > } |
5563 >  sed '
5564 >     t clear
5565 >     : clear
5566 >     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5567 >     t end
5568 >     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5569 >     : end' >>confcache
5570 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
5571 >  if test -w $cache_file; then
5572 >    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5573 >    cat confcache >$cache_file
5574 >  else
5575 >    echo "not updating unwritable cache $cache_file"
5576 >  fi
5577 > fi
5578 > rm -f confcache
5579 >  exit 1
5580 > fi
5581  
5301          cat >>confdefs.h <<\_ACEOF
5302 #define F90_FUNC_(name,NAME) name ## _
5303 _ACEOF
5304 ;;
5305  "lower case, underscore, no extra underscore")
5306          cat >>confdefs.h <<\_ACEOF
5307 #define F90_FUNC(name,NAME) name ## _
5308 _ACEOF
5309
5310          cat >>confdefs.h <<\_ACEOF
5311 #define F90_FUNC_(name,NAME) name ## _
5312 _ACEOF
5313 ;;
5314  "lower case, underscore, extra underscore")
5315          cat >>confdefs.h <<\_ACEOF
5316 #define F90_FUNC(name,NAME) name ## _
5317 _ACEOF
5318
5319          cat >>confdefs.h <<\_ACEOF
5320 #define F90_FUNC_(name,NAME) name ## __
5321 _ACEOF
5322 ;;
5323  "upper case, no underscore, no extra underscore")
5324          cat >>confdefs.h <<\_ACEOF
5325 #define F90_FUNC(name,NAME) NAME
5326 _ACEOF
5327
5328          cat >>confdefs.h <<\_ACEOF
5329 #define F90_FUNC_(name,NAME) NAME
5330 _ACEOF
5331 ;;
5332  "upper case, no underscore, extra underscore")
5333          cat >>confdefs.h <<\_ACEOF
5334 #define F90_FUNC(name,NAME) NAME
5335 _ACEOF
5336
5337          cat >>confdefs.h <<\_ACEOF
5338 #define F90_FUNC_(name,NAME) NAME ## _
5339 _ACEOF
5340 ;;
5341  "upper case, underscore, no extra underscore")
5342          cat >>confdefs.h <<\_ACEOF
5343 #define F90_FUNC(name,NAME) NAME ## _
5344 _ACEOF
5345
5346          cat >>confdefs.h <<\_ACEOF
5347 #define F90_FUNC_(name,NAME) NAME ## _
5348 _ACEOF
5349 ;;
5350  "upper case, underscore, extra underscore")
5351          cat >>confdefs.h <<\_ACEOF
5352 #define F90_FUNC(name,NAME) NAME ## _
5353 _ACEOF
5354
5355          cat >>confdefs.h <<\_ACEOF
5356 #define F90_FUNC_(name,NAME) NAME ## __
5357 _ACEOF
5358 ;;
5359  *)
5360          { echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5
5361 echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
5362          ;;
5363 esac
5364
5365
5366
5367
5582   echo "$as_me:$LINENO: checking for mpi-directory" >&5
5583   echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
5584  
5585 < # Check whether --with-mpi_dir or --without-mpi_dir was given.
5586 < if test "${with_mpi_dir+set}" = set; then
5587 <  withval="$with_mpi_dir"
5585 > # Check whether --with-mpi or --without-mpi was given.
5586 > if test "${with_mpi+set}" = set; then
5587 >  withval="$with_mpi"
5588    MPI_DIR="$withval"
5589   else
5590    MPI_DIR="/usr/local"
# Line 5396 | Line 5610 | echo $ECHO_N "checking for mpi-inc-directory... $ECHO_
5610   echo "$as_me:$LINENO: checking for mpi-inc-directory" >&5
5611   echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6
5612  
5613 < # Check whether --with-mpi_inc or --without-mpi_inc was given.
5613 > # Check whether --with-mpi-inc or --without-mpi-inc was given.
5614   if test "${with_mpi_inc+set}" = set; then
5615    withval="$with_mpi_inc"
5616    MPI_INC="$withval"
# Line 5407 | Line 5621 | echo "${ECHO_T}$MPI_INC" >&6
5621   echo "${ECHO_T}$MPI_INC" >&6
5622  
5623  
5624 + echo "$as_me:$LINENO: checking for mpi.h" >&5
5625 + echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
5626 + HAVE_MPIDOTH_C="no"
5627 + echo '#include <mpi.h>' > conftest.cc
5628 + if test -z "`${CXX} -I${MPI_INC} -c conftest.cc 2>&1`"; then
5629 +  echo "$as_me:$LINENO: result: yes" >&5
5630 + echo "${ECHO_T}yes" >&6
5631 +  HAVE_MPIDOTH_C="yes"
5632 + else
5633 +  echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
5634 + echo "${ECHO_T}no! Check MPI include paths" >&6
5635 + fi
5636 + rm -f conftest*
5637  
5638 < echo "$as_me:$LINENO: checking for MPI library" >&5
5639 < echo $ECHO_N "checking for MPI library... $ECHO_C" >&6
5640 < MPI_LIB=""
5641 < case "$host" in
5642 <  *-ibm-aix*)
5643 <    echo "$as_me:$LINENO: checking whether to use signal-based MPI library" >&5
5644 < echo $ECHO_N "checking whether to use signal-based MPI library... $ECHO_C" >&6
5645 <    echo "$as_me:$LINENO: result: $PACX_SIGNAL" >&5
5646 < echo "${ECHO_T}$PACX_SIGNAL" >&6
5647 <    if test "x$PACX_SIGNAL" = "xyes" ; then
5648 <      if test -f "$MPI_LIBDIR/libmpi.a" ; then
5649 <        MPI_LIB="-lmpi"
5650 <      elif test -f "$MPI_LIBDIR/libmpi.so" ; then
5651 <        MPI_LIB="-lmpi"
5652 <      elif test -f "$MPI_LIBDIR/libmpich.a" ; then
5653 <        MPI_LIB="-lmpich"
5654 <      else
5655 <        { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5656 < echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
5657 <   { (exit 1); exit 1; }; }
5431 <      fi
5432 <    else
5433 <      if test -f "$MPI_LIBDIR/libmpi_r.a" ; then
5434 <         MPI_LIB="-lmpi_r"
5435 <      else
5436 <         { { echo "$as_me:$LINENO: error: libmpi_r not found; check path for MPI package..." >&5
5437 < echo "$as_me: error: libmpi_r not found; check path for MPI package..." >&2;}
5438 <   { (exit 1); exit 1; }; }
5439 <      fi
5440 <    fi
5441 <    echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5442 < echo "${ECHO_T}found $MPI_LIB" >&6
5443 <  ;;
5444 <  *)                             if test -f "$MPI_LIBDIR/libmpi.a" ; then
5445 <      MPI_LIB="-lmpi"
5446 <    elif test -f "$MPI_LIBDIR/libmpi.so" ; then
5447 <      MPI_LIB="-lmpi"
5448 <    elif test -f "$MPI_LIBDIR/libmpich.a" ; then
5449 <      MPI_LIB="-lmpich"
5450 <    else
5451 <      { { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5
5452 < echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;}
5453 <   { (exit 1); exit 1; }; }
5454 <    fi
5455 <    echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5456 < echo "${ECHO_T}found $MPI_LIB" >&6
5457 <  ;;
5458 < esac
5638 > echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
5639 > echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
5640 > HAVE_MPIFDOTH_F90="no"
5641 > rm -f conftest*
5642 > cat >conftest.f90 <<EOF
5643 > program main
5644 >  include 'mpif.h'
5645 > end
5646 > EOF
5647 > if $F90 -I$MPI_INC -c conftest.f90 > conftest.out 2>&1 ; then
5648 >   echo "$as_me:$LINENO: result: yes" >&5
5649 > echo "${ECHO_T}yes" >&6
5650 >   MPI_F90INC="$MPI_INC"
5651 >   HAVE_MPIFDOTH_F90="yes"
5652 > else
5653 >   if test -s conftest.out ; then cat conftest.out >> config.log ; fi
5654 >   echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
5655 > echo "${ECHO_T}no! Check MPI include paths" >&6
5656 > fi
5657 > rm -f conftest*
5658  
5659  
5660 + ac_ext=c
5661 + ac_cpp='$CPP $CPPFLAGS'
5662 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5663 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5664 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
5665  
5666 + ac_save_LDFLAGS=$LDFLAGS
5667 + LDFLAGS="${LDFLAGS} -L${MPI_LIBDIR} "
5668  
5669 <
5670 <
5671 <
5672 <        for ac_prog in mpif90 hf90 mpxlf90 mpf90 mpxlf95 mpxlf_r
5467 < do
5468 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
5469 < set dummy $ac_prog; ac_word=$2
5470 < echo "$as_me:$LINENO: checking for $ac_word" >&5
5471 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5472 < if test "${ac_cv_prog_MPIF90+set}" = set; then
5669 > if test x = x"$MPI_LIB"; then
5670 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5671 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
5672 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
5673    echo $ECHO_N "(cached) $ECHO_C" >&6
5674   else
5675 <  if test -n "$MPIF90"; then
5676 <  ac_cv_prog_MPIF90="$MPIF90" # Let the user override the test.
5675 >  ac_check_lib_save_LIBS=$LIBS
5676 > LIBS="-lmpi  $LIBS"
5677 > cat >conftest.$ac_ext <<_ACEOF
5678 > #line $LINENO "configure"
5679 > /* confdefs.h.  */
5680 > _ACEOF
5681 > cat confdefs.h >>conftest.$ac_ext
5682 > cat >>conftest.$ac_ext <<_ACEOF
5683 > /* end confdefs.h.  */
5684 >
5685 > /* Override any gcc2 internal prototype to avoid an error.  */
5686 > #ifdef __cplusplus
5687 > extern "C"
5688 > #endif
5689 > /* We use char because int might match the return type of a gcc2
5690 >   builtin and then its argument prototype would still apply.  */
5691 > char MPI_Init ();
5692 > int
5693 > main ()
5694 > {
5695 > MPI_Init ();
5696 >  ;
5697 >  return 0;
5698 > }
5699 > _ACEOF
5700 > rm -f conftest.$ac_objext conftest$ac_exeext
5701 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5702 >  (eval $ac_link) 2>&5
5703 >  ac_status=$?
5704 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 >  (exit $ac_status); } &&
5706 >         { ac_try='test -s conftest$ac_exeext'
5707 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708 >  (eval $ac_try) 2>&5
5709 >  ac_status=$?
5710 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 >  (exit $ac_status); }; }; then
5712 >  ac_cv_lib_mpi_MPI_Init=yes
5713   else
5714 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 < for as_dir in $PATH
5480 < do
5481 <  IFS=$as_save_IFS
5482 <  test -z "$as_dir" && as_dir=.
5483 <  for ac_exec_ext in '' $ac_executable_extensions; do
5484 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 <    ac_cv_prog_MPIF90="$ac_prog"
5486 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 <    break 2
5488 <  fi
5489 < done
5490 < done
5714 >  echo "$as_me: failed program was:" >&5
5715 > sed 's/^/| /' conftest.$ac_ext >&5
5716  
5717 + ac_cv_lib_mpi_MPI_Init=no
5718   fi
5719 + rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5720 + LIBS=$ac_check_lib_save_LIBS
5721   fi
5722 < MPIF90=$ac_cv_prog_MPIF90
5723 < if test -n "$MPIF90"; then
5724 <  echo "$as_me:$LINENO: result: $MPIF90" >&5
5725 < echo "${ECHO_T}$MPIF90" >&6
5498 < else
5499 <  echo "$as_me:$LINENO: result: no" >&5
5500 < echo "${ECHO_T}no" >&6
5722 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
5723 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
5724 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
5725 >  MPI_LIB="-lmpi"
5726   fi
5727  
5728 <  test -n "$MPIF90" && break
5729 < done
5730 < test -n "$MPIF90" || MPIF90="$F90"
5728 > fi
5729 > if test x = x"$MPI_LIB"; then
5730 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
5731 > echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
5732 > if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
5733 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5734 > else
5735 >  ac_check_lib_save_LIBS=$LIBS
5736 > LIBS="-lmpich  $LIBS"
5737 > cat >conftest.$ac_ext <<_ACEOF
5738 > #line $LINENO "configure"
5739 > /* confdefs.h.  */
5740 > _ACEOF
5741 > cat confdefs.h >>conftest.$ac_ext
5742 > cat >>conftest.$ac_ext <<_ACEOF
5743 > /* end confdefs.h.  */
5744  
5745 <        acx_mpi_save_F90="$F90"
5746 <        F90="$MPIF90"
5747 <
5748 <
5749 <
5750 < if test x = x"$MPILIBS"; then
5751 <        echo "$as_me:$LINENO: checking for MPI_Init" >&5
5752 < echo $ECHO_N "checking for MPI_Init... $ECHO_C" >&6
5753 <                        cat >conftest.$ac_ext <<_ACEOF
5754 <
5755 < program main
5756 <
5757 <      call MPI_Init
5758 < end program main
5521 <
5745 > /* Override any gcc2 internal prototype to avoid an error.  */
5746 > #ifdef __cplusplus
5747 > extern "C"
5748 > #endif
5749 > /* We use char because int might match the return type of a gcc2
5750 >   builtin and then its argument prototype would still apply.  */
5751 > char MPI_Init ();
5752 > int
5753 > main ()
5754 > {
5755 > MPI_Init ();
5756 >  ;
5757 >  return 0;
5758 > }
5759   _ACEOF
5760   rm -f conftest.$ac_objext conftest$ac_exeext
5761   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
# Line 5532 | Line 5769 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5769    ac_status=$?
5770    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771    (exit $ac_status); }; }; then
5772 <  MPILIBS=" "
5536 <                                echo "$as_me:$LINENO: result: yes" >&5
5537 < echo "${ECHO_T}yes" >&6
5772 >  ac_cv_lib_mpich_MPI_Init=yes
5773   else
5774    echo "$as_me: failed program was:" >&5
5775   sed 's/^/| /' conftest.$ac_ext >&5
5776  
5777 < echo "$as_me:$LINENO: result: no" >&5
5543 < echo "${ECHO_T}no" >&6
5777 > ac_cv_lib_mpich_MPI_Init=no
5778   fi
5779   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5780 + LIBS=$ac_check_lib_save_LIBS
5781   fi
5782 < if test x = x"$MPILIBS"; then
5783 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5782 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
5783 > echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
5784 > if test $ac_cv_lib_mpich_MPI_Init = yes; then
5785 >  MPI_LIB="-lmpich"
5786 > fi
5787 >
5788 > fi
5789 > $as_unset ac_cv_lib_mpi_MPI_Init
5790 > if test x = x"$MPI_LIB"; then
5791 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5792   echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
5793   if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
5794    echo $ECHO_N "(cached) $ECHO_C" >&6
5795   else
5796    ac_check_lib_save_LIBS=$LIBS
5797 < LIBS="-lmpi  $LIBS"
5797 > LIBS="-lmpi "-llam" $LIBS"
5798   cat >conftest.$ac_ext <<_ACEOF
5799 + #line $LINENO "configure"
5800 + /* confdefs.h.  */
5801 + _ACEOF
5802 + cat confdefs.h >>conftest.$ac_ext
5803 + cat >>conftest.$ac_ext <<_ACEOF
5804 + /* end confdefs.h.  */
5805  
5806 < program main
5807 <
5808 < call MPI_Init
5809 < end program main
5810 <
5806 > /* Override any gcc2 internal prototype to avoid an error.  */
5807 > #ifdef __cplusplus
5808 > extern "C"
5809 > #endif
5810 > /* We use char because int might match the return type of a gcc2
5811 >   builtin and then its argument prototype would still apply.  */
5812 > char MPI_Init ();
5813 > int
5814 > main ()
5815 > {
5816 > MPI_Init ();
5817 >  ;
5818 >  return 0;
5819 > }
5820   _ACEOF
5821   rm -f conftest.$ac_objext conftest$ac_exeext
5822   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
# Line 5585 | Line 5843 | if test $ac_cv_lib_mpi_MPI_Init = yes; then
5843   echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
5844   echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
5845   if test $ac_cv_lib_mpi_MPI_Init = yes; then
5846 <  MPILIBS="-lmpi"
5846 >  MPI_LIB="-lmpi -llam"
5847   fi
5848  
5849   fi
5850 < if test x = x"$MPILIBS"; then
5851 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
5852 < echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
5853 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
5850 >
5851 > $as_unset ac_cv_lib_mpi_MPI_Init
5852 > if test x = x"$MPI_LIB"; then
5853 >   echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
5854 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
5855 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
5856    echo $ECHO_N "(cached) $ECHO_C" >&6
5857   else
5858    ac_check_lib_save_LIBS=$LIBS
5859 < LIBS="-lmpich  $LIBS"
5859 > LIBS="-lmpi -llam -lpthread $LIBS"
5860   cat >conftest.$ac_ext <<_ACEOF
5861 + #line $LINENO "configure"
5862 + /* confdefs.h.  */
5863 + _ACEOF
5864 + cat confdefs.h >>conftest.$ac_ext
5865 + cat >>conftest.$ac_ext <<_ACEOF
5866 + /* end confdefs.h.  */
5867  
5868 < program main
5869 <
5870 < call MPI_Init
5871 < end program main
5872 <
5868 > /* Override any gcc2 internal prototype to avoid an error.  */
5869 > #ifdef __cplusplus
5870 > extern "C"
5871 > #endif
5872 > /* We use char because int might match the return type of a gcc2
5873 >   builtin and then its argument prototype would still apply.  */
5874 > char MPI_Init ();
5875 > int
5876 > main ()
5877 > {
5878 > MPI_Init ();
5879 >  ;
5880 >  return 0;
5881 > }
5882   _ACEOF
5883   rm -f conftest.$ac_objext conftest$ac_exeext
5884   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
# Line 5617 | Line 5892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5892    ac_status=$?
5893    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894    (exit $ac_status); }; }; then
5895 <  ac_cv_lib_mpich_MPI_Init=yes
5895 >  ac_cv_lib_mpi_MPI_Init=yes
5896   else
5897    echo "$as_me: failed program was:" >&5
5898   sed 's/^/| /' conftest.$ac_ext >&5
5899  
5900 < ac_cv_lib_mpich_MPI_Init=no
5900 > ac_cv_lib_mpi_MPI_Init=no
5901   fi
5902   rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5903   LIBS=$ac_check_lib_save_LIBS
5904   fi
5905 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
5906 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
5907 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
5908 <  MPILIBS="-lmpich"
5905 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
5906 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
5907 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
5908 >  MPI_LIB="-lmpi -llam -lpthread"
5909 > else
5910 >  { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
5911 > echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
5912 >   { (exit 1); exit 1; }; }
5913   fi
5914  
5915   fi
5637
5638
5916  
5917 < F90="$acx_mpi_save_F90"
5917 > echo "$as_me:$LINENO: result: found $MPI_LIB" >&5
5918 > echo "${ECHO_T}found $MPI_LIB" >&6
5919  
5920  
5921 <
5922 < # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
5923 < if test x = x"$MPILIBS"; then
5924 <
5925 <        :
5921 > echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
5922 > echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
5923 > MPI_F90LIB=""
5924 > if test -f "$MPI_LIBDIR/libfmpich.a" ; then
5925 >  MPI_F90LIB="-lfmpich"
5926 > elif test -f "$MPI_LIBDIR/liblamf77mpi.a" ; then
5927 >  MPI_F90LIB="-llamf77mpi"
5928   else
5929 +  # nothing special found, we'll assume that the C library is all we need
5930 +  MPI_F90LIB="  "
5931 + fi
5932 + echo "$as_me:$LINENO: result: found $MPI_F90LIB" >&5
5933 + echo "${ECHO_T}found $MPI_F90LIB" >&6
5934  
5650 cat >>confdefs.h <<\_ACEOF
5651 #define HAVE_MPI 1
5652 _ACEOF
5935  
5654        :
5655 fi
5936  
5937  
5938   ac_ext=c
# Line 6401 | Line 6681 | fi
6681  
6682    CPPFLAGS=$ac_save_CPPFLAGS
6683    LDFLAGS=$ac_save_LDFLAGS
6684 <  ac_ext=f90
6685 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6686 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6687 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6684 >  ac_ext=c
6685 > ac_cpp='$CPP $CPPFLAGS'
6686 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6687 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6688 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6689  
6690  
6691    if test x_$HAVE_SPRNG != x_yes; then
# Line 6425 | Line 6706 | echo "${ECHO_T}yes" >&6
6706    withval="$with_mkl"
6707       echo "$as_me:$LINENO: result: yes" >&5
6708   echo "${ECHO_T}yes" >&6
6709 <    for dir in $withval /usr/local/intel/mkl60 /opt/intel/mkl60; do
6709 >    for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do
6710          mkldir="$dir"
6711          if test -f "$dir/include/mkl.h"; then
6712              found_mkl="yes";
# Line 6651 | Line 6932 | fi
6932  
6933    CPPFLAGS=$ac_save_CPPFLAGS
6934    LDFLAGS=$ac_save_LDFLAGS
6935 <  ac_ext=f90
6936 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
6937 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6938 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6935 >  ac_ext=c
6936 > ac_cpp='$CPP $CPPFLAGS'
6937 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6938 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6939 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6940  
6941  
6942    if test x_$HAVE_MKL != x_yes; then
# Line 6677 | Line 6959 | fi;
6959  
6960  
6961  
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;
6962  
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
6963   OBJEXT=".$OBJEXT"
6964  
6965   OOPSE=oopse
# Line 6795 | Line 6983 | SUBDIRS="libBASS libmdtools src forceFields samples ut
6983  
6984   MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
6985  
6986 < SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps"
6986 > SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps third-party shapes"
6987  
6988   CFLAGS=${CFLAGS-""}
6989   CXXFLAGS=${CXXFLAGS-""}
# Line 6803 | Line 6991 | OPTIMIZE=${OPTIMIZE-"-O"}
6991   FFLAGS=${FFLAGS-""}
6992   F90FLAGS=${F90FLAGS-""}
6993   LDFLAGS=${LDFLAGS-""}
6806 OPTIMIZE=${OPTIMIZE-"-O"}
6994   DEBUG=${DEBUG-"-g"}
6995  
6996   case $debug in
6997 <  true)
6811 <     CFLAGS="$DEBUG $CFLAGS"
6812 <     CXXFLAGS="$DEBUG $CXXFLAGS"
6997 >  1)
6998       FFLAGS="$DEBUG $FFLAGS"
6999       F90FLAGS="$DEBUG $F90FLAGS"
7000       ;;
7001    *)
6817     CFLAGS="$OPTIMIZE $CFLAGS"
6818     CXXFLAGS="$OPTIMIZE $CXXFLAGS"
6819     FFLAGS="$OPTIMIZE $FFLAGS"
6820     F90FLAGS="$OPTIMIZE $F90FLAGS"
7002       ;;
7003   esac
7004  
# Line 6839 | Line 7020 | esac
7020  
7021            ac_config_headers="$ac_config_headers libmdtools/config.h"
7022  
7023 <                                                                                                                                                      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"
7023 >                                                                                                                                                                          ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile staticProps/Makefile third-party/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile shapes/Makefile"
7024  
7025  
7026   cat >confcache <<\_ACEOF
# Line 7375 | Line 7556 | do
7556    "forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
7557    "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
7558    "staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;;
7559 +  "third-party/Makefile" ) CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;;
7560    "samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
7561    "samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
7562    "samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
7563    "samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;;
7564    "samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;;
7565    "samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;;
7566 +  "shapes/Makefile" ) CONFIG_FILES="$CONFIG_FILES shapes/Makefile" ;;
7567    "libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;;
7568    *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7569   echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
# Line 7467 | Line 7650 | s,@DEBUG@,$DEBUG,;t t
7650   s,@ECHO_T@,$ECHO_T,;t t
7651   s,@LIBS@,$LIBS,;t t
7652   s,@PROGNAME@,$PROGNAME,;t t
7653 < s,@DEBUG@,$DEBUG,;t t
7653 > s,@debug@,$debug,;t t
7654   s,@build@,$build,;t t
7655   s,@build_cpu@,$build_cpu,;t t
7656   s,@build_vendor@,$build_vendor,;t t
# Line 7486 | Line 7669 | s,@F90@,$F90,;t t
7669   s,@CXX@,$CXX,;t t
7670   s,@CXXFLAGS@,$CXXFLAGS,;t t
7671   s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7672 + s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
7673 + s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
7674   s,@F90@,$F90,;t t
7675   s,@F90FLAGS@,$F90FLAGS,;t t
7676   s,@ac_ct_F90@,$ac_ct_F90,;t t
7677   s,@PREPFLAG@,$PREPFLAG,;t t
7678   s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
7679 + s,@F90LIBS@,$F90LIBS,;t t
7680 + s,@F90_FUNC@,$F90_FUNC,;t t
7681 + s,@F90_FUNC_@,$F90_FUNC_,;t t
7682 + s,@MOD@,$MOD,;t t
7683 + s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
7684 + s,@MODDIRFLAG@,$MODDIRFLAG,;t t
7685 + s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
7686   s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7687   s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7688   s,@INSTALL_DATA@,$INSTALL_DATA,;t t
# Line 7503 | Line 7695 | s,@F90LIBS@,$F90LIBS,;t t
7695   s,@LEXLIB@,$LEXLIB,;t t
7696   s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7697   s,@AR@,$AR,;t t
7698 < s,@F90LIBS@,$F90LIBS,;t t
7507 < s,@F90_FUNC@,$F90_FUNC,;t t
7508 < s,@F90_FUNC_@,$F90_FUNC_,;t t
7509 < s,@mpi_dir@,$mpi_dir,;t t
7698 > s,@mpi@,$mpi,;t t
7699   s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t
7700   s,@MPI_INC@,$MPI_INC,;t t
7701 + s,@MPI_F90INC@,$MPI_F90INC,;t t
7702   s,@MPI_LIB@,$MPI_LIB,;t t
7703 < s,@MPIF77@,$MPIF77,;t t
7514 < s,@MPIF90@,$MPIF90,;t t
7515 < s,@MPILIBS@,$MPILIBS,;t t
7703 > s,@MPI_F90LIB@,$MPI_F90LIB,;t t
7704   s,@CPP@,$CPP,;t t
7705   s,@EGREP@,$EGREP,;t t
7706   s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t
# Line 7523 | Line 7711 | s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
7711   s,@MKL_LIB@,$MKL_LIB,;t t
7712   s,@MKL_INC@,$MKL_INC,;t t
7713   s,@HAVE_MKL@,$HAVE_MKL,;t t
7526 s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t
7527 s,@MPIMODLIBNAME@,$MPIMODLIBNAME,;t t
7714   s,@BATEXT@,$BATEXT,;t t
7715   s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
7716   s,@OOPSE@,$OOPSE,;t t

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines