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 785 by gezelter, Thu Sep 25 16:42:34 2003 UTC vs.
Revision 826 by gezelter, Mon Oct 27 23:00:59 2003 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 F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC mpi_dir MPI_LIBDIR MPI_INC MPI_LIB MPIF77 MPIF90 MPILIBS CPP EGREP SPRNG_LIBDIR SPRNG_LIB SPRNG_INC HAVE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL MPI_F90_MODS MPIMODLIBNAME BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS'
315   ac_subst_files=''
316  
317   # Initialize some variables set by options.
# Line 874 | Line 874 | Optional Packages:
874   Optional Packages:
875    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
876    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
877 <  --with-mpi-dir=MPIDIR   give the path for MPI /usr/local
878 <  --with-mpi-lib-dir=dir  give the path for MPI-libraries MPI_DIR/lib
879 <  --with-mpi-inc-dir=dir  give the path for MPI-include-files MPI_DIR/include
880 <  --with-sprng-prefix=PREFIX
877 >  --with-mpi_dir=MPIDIR   give the path for MPI /usr/local
878 >  --with-mpi-libdir=dir  give the path for MPI-libraries MPI_DIR/lib
879 >  --with-mpi_inc=dir  give the path for MPI-include-files MPI_DIR/include
880 >  --with-sprng_prefix=PREFIX
881                            Prefix where SPRNG is installed
882 <  --with-sprng-lib=PREFIX  SPRNG library directory
882 >  --with-sprng-libdir=PREFIX  SPRNG library directory
883    --with-sprng-include=PREFIX
884                            SPRNG include directory
885    --with-mkl              Do we want MKL will check /usr/local/intel/mkl60 /opt/intel/mkl60
# Line 1828 | Line 1828 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1828  
1829  
1830  
1831 # what should I build?
1831  
1833 # Check whether --enable-debug or --disable-debug was given.
1834 if test "${enable_debug+set}" = set; then
1835  enableval="$enable_debug"
1836  DEBUG=1
1837 fi;
1832  
1833 +
1834 +
1835 +
1836 +
1837 +
1838 +
1839   # set program name
1840   PROGNAME="oopse"
1841  
1842  
1843 + # there are two ways to do debugging.  One with the --enable-debug flag
1844 + # and one using the DEBUG environment variable
1845 +
1846 + debug=0
1847 + # Check whether --enable-debug or --disable-debug was given.
1848 + if test "${enable_debug+set}" = set; then
1849 +  enableval="$enable_debug"
1850 +  debug=1
1851 + fi;
1852   if test "${DEBUG}"; then
1853  
1854   cat >>confdefs.h <<\_ACEOF
1855 < #define DEBUG 1
1855 > #define debug 1
1856   _ACEOF
1857  
1858    msg="$msg, debug mode"
# Line 2557 | Line 2566 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567   ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568  
2569 + ac_ext=cc
2570 + ac_cpp='$CXXCPP $CPPFLAGS'
2571 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2574 + if test -n "$ac_tool_prefix"; then
2575 +  for ac_prog in $CCC icpc icc xlC CC g++ c++
2576 +  do
2577 +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2578 + set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2579 + echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 + echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2581 + if test "${ac_cv_prog_CXX+set}" = set; then
2582 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2583 + else
2584 +  if test -n "$CXX"; then
2585 +  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2586 + else
2587 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 + for as_dir in $PATH
2589 + do
2590 +  IFS=$as_save_IFS
2591 +  test -z "$as_dir" && as_dir=.
2592 +  for ac_exec_ext in '' $ac_executable_extensions; do
2593 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594 +    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2595 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 +    break 2
2597 +  fi
2598 + done
2599 + done
2600  
2601 + fi
2602 + fi
2603 + CXX=$ac_cv_prog_CXX
2604 + if test -n "$CXX"; then
2605 +  echo "$as_me:$LINENO: result: $CXX" >&5
2606 + echo "${ECHO_T}$CXX" >&6
2607 + else
2608 +  echo "$as_me:$LINENO: result: no" >&5
2609 + echo "${ECHO_T}no" >&6
2610 + fi
2611  
2612 +    test -n "$CXX" && break
2613 +  done
2614 + fi
2615 + if test -z "$CXX"; then
2616 +  ac_ct_CXX=$CXX
2617 +  for ac_prog in $CCC icpc icc xlC CC g++ c++
2618 + do
2619 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
2620 + set dummy $ac_prog; ac_word=$2
2621 + echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 + echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623 + if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2624 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2625 + else
2626 +  if test -n "$ac_ct_CXX"; then
2627 +  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2628 + else
2629 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 + for as_dir in $PATH
2631 + do
2632 +  IFS=$as_save_IFS
2633 +  test -z "$as_dir" && as_dir=.
2634 +  for ac_exec_ext in '' $ac_executable_extensions; do
2635 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 +    ac_cv_prog_ac_ct_CXX="$ac_prog"
2637 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 +    break 2
2639 +  fi
2640 + done
2641 + done
2642  
2643 + fi
2644 + fi
2645 + ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2646 + if test -n "$ac_ct_CXX"; then
2647 +  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2648 + echo "${ECHO_T}$ac_ct_CXX" >&6
2649 + else
2650 +  echo "$as_me:$LINENO: result: no" >&5
2651 + echo "${ECHO_T}no" >&6
2652 + fi
2653  
2654 +  test -n "$ac_ct_CXX" && break
2655 + done
2656 + test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2657 +
2658 +  CXX=$ac_ct_CXX
2659 + fi
2660 +
2661 +
2662 + # Provide some information about the compiler.
2663 + echo "$as_me:$LINENO:" \
2664 +     "checking for C++ compiler version" >&5
2665 + ac_compiler=`set X $ac_compile; echo $2`
2666 + { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2667 +  (eval $ac_compiler --version </dev/null >&5) 2>&5
2668 +  ac_status=$?
2669 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 +  (exit $ac_status); }
2671 + { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2672 +  (eval $ac_compiler -v </dev/null >&5) 2>&5
2673 +  ac_status=$?
2674 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 +  (exit $ac_status); }
2676 + { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2677 +  (eval $ac_compiler -V </dev/null >&5) 2>&5
2678 +  ac_status=$?
2679 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 +  (exit $ac_status); }
2681 +
2682 + echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2683 + echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2684 + if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2685 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2686 + else
2687 +  cat >conftest.$ac_ext <<_ACEOF
2688 + #line $LINENO "configure"
2689 + /* confdefs.h.  */
2690 + _ACEOF
2691 + cat confdefs.h >>conftest.$ac_ext
2692 + cat >>conftest.$ac_ext <<_ACEOF
2693 + /* end confdefs.h.  */
2694 +
2695 + int
2696 + main ()
2697 + {
2698 + #ifndef __GNUC__
2699 +       choke me
2700 + #endif
2701 +
2702 +  ;
2703 +  return 0;
2704 + }
2705 + _ACEOF
2706 + rm -f conftest.$ac_objext
2707 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708 +  (eval $ac_compile) 2>&5
2709 +  ac_status=$?
2710 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 +  (exit $ac_status); } &&
2712 +         { ac_try='test -s conftest.$ac_objext'
2713 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714 +  (eval $ac_try) 2>&5
2715 +  ac_status=$?
2716 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 +  (exit $ac_status); }; }; then
2718 +  ac_compiler_gnu=yes
2719 + else
2720 +  echo "$as_me: failed program was:" >&5
2721 + sed 's/^/| /' conftest.$ac_ext >&5
2722 +
2723 + ac_compiler_gnu=no
2724 + fi
2725 + rm -f conftest.$ac_objext conftest.$ac_ext
2726 + ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2727 +
2728 + fi
2729 + echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2730 + echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2731 + GXX=`test $ac_compiler_gnu = yes && echo yes`
2732 + ac_test_CXXFLAGS=${CXXFLAGS+set}
2733 + ac_save_CXXFLAGS=$CXXFLAGS
2734 + CXXFLAGS="-g"
2735 + echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2736 + echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2737 + if test "${ac_cv_prog_cxx_g+set}" = set; then
2738 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2739 + else
2740 +  cat >conftest.$ac_ext <<_ACEOF
2741 + #line $LINENO "configure"
2742 + /* confdefs.h.  */
2743 + _ACEOF
2744 + cat confdefs.h >>conftest.$ac_ext
2745 + cat >>conftest.$ac_ext <<_ACEOF
2746 + /* end confdefs.h.  */
2747 +
2748 + int
2749 + main ()
2750 + {
2751 +
2752 +  ;
2753 +  return 0;
2754 + }
2755 + _ACEOF
2756 + rm -f conftest.$ac_objext
2757 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 +  (eval $ac_compile) 2>&5
2759 +  ac_status=$?
2760 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 +  (exit $ac_status); } &&
2762 +         { ac_try='test -s conftest.$ac_objext'
2763 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 +  (eval $ac_try) 2>&5
2765 +  ac_status=$?
2766 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 +  (exit $ac_status); }; }; then
2768 +  ac_cv_prog_cxx_g=yes
2769 + else
2770 +  echo "$as_me: failed program was:" >&5
2771 + sed 's/^/| /' conftest.$ac_ext >&5
2772 +
2773 + ac_cv_prog_cxx_g=no
2774 + fi
2775 + rm -f conftest.$ac_objext conftest.$ac_ext
2776 + fi
2777 + echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2778 + echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2779 + if test "$ac_test_CXXFLAGS" = set; then
2780 +  CXXFLAGS=$ac_save_CXXFLAGS
2781 + elif test $ac_cv_prog_cxx_g = yes; then
2782 +  if test "$GXX" = yes; then
2783 +    CXXFLAGS="-g -O2"
2784 +  else
2785 +    CXXFLAGS="-g"
2786 +  fi
2787 + else
2788 +  if test "$GXX" = yes; then
2789 +    CXXFLAGS="-O2"
2790 +  else
2791 +    CXXFLAGS=
2792 +  fi
2793 + fi
2794 + for ac_declaration in \
2795 +   ''\
2796 +   '#include <stdlib.h>' \
2797 +   'extern "C" void std::exit (int) throw (); using std::exit;' \
2798 +   'extern "C" void std::exit (int); using std::exit;' \
2799 +   'extern "C" void exit (int) throw ();' \
2800 +   'extern "C" void exit (int);' \
2801 +   'void exit (int);'
2802 + do
2803 +  cat >conftest.$ac_ext <<_ACEOF
2804 + #line $LINENO "configure"
2805 + /* confdefs.h.  */
2806 + _ACEOF
2807 + cat confdefs.h >>conftest.$ac_ext
2808 + cat >>conftest.$ac_ext <<_ACEOF
2809 + /* end confdefs.h.  */
2810 + #include <stdlib.h>
2811 + $ac_declaration
2812 + int
2813 + main ()
2814 + {
2815 + exit (42);
2816 +  ;
2817 +  return 0;
2818 + }
2819 + _ACEOF
2820 + rm -f conftest.$ac_objext
2821 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822 +  (eval $ac_compile) 2>&5
2823 +  ac_status=$?
2824 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 +  (exit $ac_status); } &&
2826 +         { ac_try='test -s conftest.$ac_objext'
2827 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 +  (eval $ac_try) 2>&5
2829 +  ac_status=$?
2830 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 +  (exit $ac_status); }; }; then
2832 +  :
2833 + else
2834 +  echo "$as_me: failed program was:" >&5
2835 + sed 's/^/| /' conftest.$ac_ext >&5
2836 +
2837 + continue
2838 + fi
2839 + rm -f conftest.$ac_objext conftest.$ac_ext
2840 +  cat >conftest.$ac_ext <<_ACEOF
2841 + #line $LINENO "configure"
2842 + /* confdefs.h.  */
2843 + _ACEOF
2844 + cat confdefs.h >>conftest.$ac_ext
2845 + cat >>conftest.$ac_ext <<_ACEOF
2846 + /* end confdefs.h.  */
2847 + $ac_declaration
2848 + int
2849 + main ()
2850 + {
2851 + exit (42);
2852 +  ;
2853 +  return 0;
2854 + }
2855 + _ACEOF
2856 + rm -f conftest.$ac_objext
2857 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2858 +  (eval $ac_compile) 2>&5
2859 +  ac_status=$?
2860 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 +  (exit $ac_status); } &&
2862 +         { ac_try='test -s conftest.$ac_objext'
2863 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 +  (eval $ac_try) 2>&5
2865 +  ac_status=$?
2866 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 +  (exit $ac_status); }; }; then
2868 +  break
2869 + else
2870 +  echo "$as_me: failed program was:" >&5
2871 + sed 's/^/| /' conftest.$ac_ext >&5
2872 +
2873 + fi
2874 + rm -f conftest.$ac_objext conftest.$ac_ext
2875 + done
2876 + rm -f conftest*
2877 + if test -n "$ac_declaration"; then
2878 +  echo '#ifdef __cplusplus' >>confdefs.h
2879 +  echo $ac_declaration      >>confdefs.h
2880 +  echo '#endif'             >>confdefs.h
2881 + fi
2882 +
2883 + ac_ext=c
2884 + ac_cpp='$CPP $CPPFLAGS'
2885 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888 +
2889 + ac_ext=f90
2890 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
2891 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
2893 + if test -n "$ac_tool_prefix"; then
2894 +  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2895 +  do
2896 +    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2897 + set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2898 + echo "$as_me:$LINENO: checking for $ac_word" >&5
2899 + echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2900 + if test "${ac_cv_prog_F90+set}" = set; then
2901 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2902 + else
2903 +  if test -n "$F90"; then
2904 +  ac_cv_prog_F90="$F90" # Let the user override the test.
2905 + else
2906 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 + for as_dir in $PATH
2908 + do
2909 +  IFS=$as_save_IFS
2910 +  test -z "$as_dir" && as_dir=.
2911 +  for ac_exec_ext in '' $ac_executable_extensions; do
2912 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913 +    ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
2914 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 +    break 2
2916 +  fi
2917 + done
2918 + done
2919 +
2920 + fi
2921 + fi
2922 + F90=$ac_cv_prog_F90
2923 + if test -n "$F90"; then
2924 +  echo "$as_me:$LINENO: result: $F90" >&5
2925 + echo "${ECHO_T}$F90" >&6
2926 + else
2927 +  echo "$as_me:$LINENO: result: no" >&5
2928 + echo "${ECHO_T}no" >&6
2929 + fi
2930 +
2931 +    test -n "$F90" && break
2932 +  done
2933 + fi
2934 + if test -z "$F90"; then
2935 +  ac_ct_F90=$F90
2936 +  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
2937 + do
2938 +  # Extract the first word of "$ac_prog", so it can be a program name with args.
2939 + set dummy $ac_prog; ac_word=$2
2940 + echo "$as_me:$LINENO: checking for $ac_word" >&5
2941 + echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942 + if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
2943 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2944 + else
2945 +  if test -n "$ac_ct_F90"; then
2946 +  ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
2947 + else
2948 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 + for as_dir in $PATH
2950 + do
2951 +  IFS=$as_save_IFS
2952 +  test -z "$as_dir" && as_dir=.
2953 +  for ac_exec_ext in '' $ac_executable_extensions; do
2954 +  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2955 +    ac_cv_prog_ac_ct_F90="$ac_prog"
2956 +    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 +    break 2
2958 +  fi
2959 + done
2960 + done
2961 +
2962 + fi
2963 + fi
2964 + ac_ct_F90=$ac_cv_prog_ac_ct_F90
2965 + if test -n "$ac_ct_F90"; then
2966 +  echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
2967 + echo "${ECHO_T}$ac_ct_F90" >&6
2968 + else
2969 +  echo "$as_me:$LINENO: result: no" >&5
2970 + echo "${ECHO_T}no" >&6
2971 + fi
2972 +
2973 +  test -n "$ac_ct_F90" && break
2974 + done
2975 +
2976 +  F90=$ac_ct_F90
2977 + fi
2978 +
2979 +
2980 + # If we don't use `.F90' as extension, the preprocessor is not run on the
2981 + # input file.
2982 + ac_save_ext=$ac_ext
2983 + ac_ext=F90
2984 + echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
2985 + echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
2986 + if test "${ac_cv_f90_compiler_gnu+set}" = set; then
2987 +  echo $ECHO_N "(cached) $ECHO_C" >&6
2988 + else
2989 +  cat >conftest.$ac_ext <<_ACEOF
2990 +
2991 + program main
2992 +
2993 + #ifndef __GNUC__
2994 +       choke me
2995 + #endif
2996 +
2997 + end program main
2998 +
2999 + _ACEOF
3000 + rm -f conftest.$ac_objext
3001 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3002 +  (eval $ac_compile) 2>&5
3003 +  ac_status=$?
3004 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 +  (exit $ac_status); } &&
3006 +         { ac_try='test -s conftest.$ac_objext'
3007 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008 +  (eval $ac_try) 2>&5
3009 +  ac_status=$?
3010 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 +  (exit $ac_status); }; }; then
3012 +  ac_compiler_gnu=yes
3013 + else
3014 +  echo "$as_me: failed program was:" >&5
3015 + sed 's/^/| /' conftest.$ac_ext >&5
3016 +
3017 + ac_compiler_gnu=no
3018 + fi
3019 + rm -f conftest.$ac_objext conftest.$ac_ext
3020 + ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3021 +
3022 + fi
3023 + echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3024 + echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3025 + ac_ext=$ac_save_ext
3026 + G95=`test $ac_compiler_gnu = yes && echo yes`
3027 + ac_ext=c
3028 + ac_cpp='$CPP $CPPFLAGS'
3029 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032 +
3033 +
3034 +
3035 +
3036 +
3037 + # Try to determine native compiler flags that allow us to use F90 suffix
3038 + # for preprocessed f90 source.
3039 +
3040 + if test "$ac_test_PREPFLAG" != "set"; then
3041 +  PREPFLAG=""
3042 +  case "${host_cpu}-${host_os}" in
3043 +
3044 +  *linux*) if test "$F90" = ifc; then
3045 +                    PREPFLAG="-fpp1 "
3046 +                fi;;
3047 +  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3048 +                    PREPFLAG="-qsuffix=cpp=F90 "
3049 +                fi;;
3050 +  *darwin*)
3051 +        if test "$F90" = f90 -o "$F90" = xlf90; then
3052 +                PREPFLAG="-qsuffix=cpp=F90 "
3053 +        fi;;
3054 +  esac
3055 +
3056 +  if test -z "$PREPFLAG"; then
3057 +        echo ""
3058 +        echo "**********************************************************"
3059 +        echo "* WARNING: Don't know the best PREPFLAG for this system  *"
3060 +        echo "* Use  make PREPFLAG=..., or edit the top level Makefile *"
3061 +        echo "* (otherwise, an empty PREPFLAG will be used)            *"
3062 +        echo "**********************************************************"
3063 +        echo ""
3064 +        PREPFLAG=""
3065 +  fi
3066 +
3067 +  echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
3068 + echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
3069 +
3070 +
3071 +  ac_ext=f90
3072 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3073 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3074 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3075 +
3076 +  ac_save_ext=$ac_ext
3077 +  ac_ext=F90
3078 +  ac_save_F90FLAGS=$F90FLAGS
3079 +
3080 +  if test "$PREPFLAG"; then
3081 +  F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
3082 + fi
3083 +
3084 +    cat >conftest.$ac_ext <<_ACEOF
3085 +
3086 +
3087 + program main
3088 +
3089 +  integer :: i
3090 +  i = 1
3091 +
3092 +
3093 + end program main
3094 +
3095 + _ACEOF
3096 + rm -f conftest.$ac_objext
3097 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3098 +  (eval $ac_compile) 2>&5
3099 +  ac_status=$?
3100 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 +  (exit $ac_status); } &&
3102 +         { ac_try='test -s conftest.$ac_objext'
3103 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104 +  (eval $ac_try) 2>&5
3105 +  ac_status=$?
3106 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 +  (exit $ac_status); }; }; then
3108 +  prepflagworks=1
3109 + else
3110 +  echo "$as_me: failed program was:" >&5
3111 + sed 's/^/| /' conftest.$ac_ext >&5
3112 +
3113 + prepflagworks=0
3114 + fi
3115 + rm -f conftest.$ac_objext conftest.$ac_ext
3116 +
3117 +  F90FLAGS=$ac_save_F90FLAGS
3118 +  ac_ext=$ac_save_ext
3119 +  ac_ext=c
3120 + ac_cpp='$CPP $CPPFLAGS'
3121 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124 +
3125 +
3126 +
3127 +  if test "$prepflagworks" = 1; then
3128 +    echo "$as_me:$LINENO: result: yes" >&5
3129 + echo "${ECHO_T}yes" >&6
3130 +
3131 +  else
3132 +    echo "$as_me:$LINENO: result: no" >&5
3133 + echo "${ECHO_T}no" >&6
3134 +    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
3135 + echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
3136 +   { (exit 1); exit 1; }; }
3137 +  fi
3138 + fi
3139 +
3140 +
3141 +
3142 +
3143 +
3144 + # Try to determine native compiler flags that allow us to use F90 suffix
3145 + # for preprocessed f90 source with -D type defines
3146 +
3147 + if test "$ac_test_PREPDEFFLAG" != "set"; then
3148 +  PREPDEFFLAG=""
3149 +  case "${host_cpu}-${host_os}" in
3150 +
3151 +  *linux*) if test "$F90" = ifc; then
3152 +                    PREPDEFFLAG=" "
3153 +                fi;;
3154 +  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
3155 +                    PREPDEFFLAG="-WF,"
3156 +                fi;;
3157 +  *darwin*)
3158 +        if test "$F90" = f90 -o "$F90" = xlf90; then
3159 +                PREPDEFFLAG="-WF,"
3160 +        fi;;
3161 +  esac
3162 +
3163 +  if test -z "$PREPDEFFLAG"; then
3164 +        echo ""
3165 +        echo "*************************************************************"
3166 +        echo "* WARNING: Don't know the best PREPDEFFLAG for this system  *"
3167 +        echo "* Use  make PREPDEFFLAG=..., or edit the top level Makefile *"
3168 +        echo "* (otherwise, an empty PREPDEFFLAG will be used)            *"
3169 +        echo "*************************************************************"
3170 +        echo ""
3171 +        PREPDEFFLAG=" "
3172 +  fi
3173 +
3174 +  echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
3175 + echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
3176 +
3177 +
3178 +  ac_ext=f90
3179 + ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3180 + ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 + ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3182 +
3183 +  ac_save_ext=$ac_ext
3184 +  ac_ext=F90
3185 +  ac_save_F90FLAGS=$F90FLAGS
3186 +
3187 +  if test "$PREPDEFFLAG"; then
3188 +  F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
3189 + fi
3190 +
3191 +    cat >conftest.$ac_ext <<_ACEOF
3192 +
3193 +
3194 + program main
3195 +
3196 +  integer :: i
3197 + #ifdef TEST
3198 +  i = 1
3199 + #else
3200 +  choke me
3201 + #endif
3202 +
3203 +
3204 + end program main
3205 +
3206 + _ACEOF
3207 + rm -f conftest.$ac_objext
3208 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209 +  (eval $ac_compile) 2>&5
3210 +  ac_status=$?
3211 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 +  (exit $ac_status); } &&
3213 +         { ac_try='test -s conftest.$ac_objext'
3214 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215 +  (eval $ac_try) 2>&5
3216 +  ac_status=$?
3217 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 +  (exit $ac_status); }; }; then
3219 +  prepdefflagworks=1
3220 + else
3221 +  echo "$as_me: failed program was:" >&5
3222 + sed 's/^/| /' conftest.$ac_ext >&5
3223 +
3224 + prepdefflagworks=0
3225 + fi
3226 + rm -f conftest.$ac_objext conftest.$ac_ext
3227 +
3228 +  F90FLAGS=$ac_save_F90FLAGS
3229 +  ac_ext=$ac_save_ext
3230 +  ac_ext=c
3231 + ac_cpp='$CPP $CPPFLAGS'
3232 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235 +
3236 +
3237 +
3238 +  if test "$prepdefflagworks" = 1; then
3239 +    echo "$as_me:$LINENO: result: yes" >&5
3240 + echo "${ECHO_T}yes" >&6
3241 +
3242 +  else
3243 +    echo "$as_me:$LINENO: result: no" >&5
3244 + echo "${ECHO_T}no" >&6
3245 +    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
3246 + echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
3247 +   { (exit 1); exit 1; }; }
3248 +  fi
3249 + fi
3250 +
3251 +
3252 + case $debug in
3253 +  1)
3254 +     ;;
3255 +  *)
3256 +
3257 +
3258 +
3259 +
3260   # Try to determine "good" native compiler flags if none specified on command
3261   # line
3262   if test "$ac_test_CFLAGS" != "set"; then
# Line 2988 | Line 3684 | fi
3684  
3685  
3686   fi
2991
2992 ac_ext=cc
2993 ac_cpp='$CXXCPP $CPPFLAGS'
2994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2997 if test -n "$ac_tool_prefix"; then
2998  for ac_prog in $CCC icpc icc xlC g++ c++
2999  do
3000    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3001 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3002 echo "$as_me:$LINENO: checking for $ac_word" >&5
3003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3004 if test "${ac_cv_prog_CXX+set}" = set; then
3005  echo $ECHO_N "(cached) $ECHO_C" >&6
3006 else
3007  if test -n "$CXX"; then
3008  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013  IFS=$as_save_IFS
3014  test -z "$as_dir" && as_dir=.
3015  for ac_exec_ext in '' $ac_executable_extensions; do
3016  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3018    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3019    break 2
3020  fi
3021 done
3022 done
3023
3024 fi
3025 fi
3026 CXX=$ac_cv_prog_CXX
3027 if test -n "$CXX"; then
3028  echo "$as_me:$LINENO: result: $CXX" >&5
3029 echo "${ECHO_T}$CXX" >&6
3030 else
3031  echo "$as_me:$LINENO: result: no" >&5
3032 echo "${ECHO_T}no" >&6
3033 fi
3034
3035    test -n "$CXX" && break
3036  done
3037 fi
3038 if test -z "$CXX"; then
3039  ac_ct_CXX=$CXX
3040  for ac_prog in $CCC icpc icc xlC g++ c++
3041 do
3042  # Extract the first word of "$ac_prog", so it can be a program name with args.
3043 set dummy $ac_prog; ac_word=$2
3044 echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3046 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3047  echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049  if test -n "$ac_ct_CXX"; then
3050  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3054 do
3055  IFS=$as_save_IFS
3056  test -z "$as_dir" && as_dir=.
3057  for ac_exec_ext in '' $ac_executable_extensions; do
3058  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059    ac_cv_prog_ac_ct_CXX="$ac_prog"
3060    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061    break 2
3062  fi
3063 done
3064 done
3687  
3066 fi
3067 fi
3068 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3069 if test -n "$ac_ct_CXX"; then
3070  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3071 echo "${ECHO_T}$ac_ct_CXX" >&6
3072 else
3073  echo "$as_me:$LINENO: result: no" >&5
3074 echo "${ECHO_T}no" >&6
3075 fi
3688  
3077  test -n "$ac_ct_CXX" && break
3078 done
3079 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3689  
3081  CXX=$ac_ct_CXX
3082 fi
3690  
3691  
3085 # Provide some information about the compiler.
3086 echo "$as_me:$LINENO:" \
3087     "checking for C++ compiler version" >&5
3088 ac_compiler=`set X $ac_compile; echo $2`
3089 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3090  (eval $ac_compiler --version </dev/null >&5) 2>&5
3091  ac_status=$?
3092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093  (exit $ac_status); }
3094 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3095  (eval $ac_compiler -v </dev/null >&5) 2>&5
3096  ac_status=$?
3097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098  (exit $ac_status); }
3099 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3100  (eval $ac_compiler -V </dev/null >&5) 2>&5
3101  ac_status=$?
3102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103  (exit $ac_status); }
3104
3105 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3106 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3107 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3108  echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110  cat >conftest.$ac_ext <<_ACEOF
3111 #line $LINENO "configure"
3112 /* confdefs.h.  */
3113 _ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h.  */
3117
3118 int
3119 main ()
3120 {
3121 #ifndef __GNUC__
3122       choke me
3123 #endif
3124
3125  ;
3126  return 0;
3127 }
3128 _ACEOF
3129 rm -f conftest.$ac_objext
3130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3131  (eval $ac_compile) 2>&5
3132  ac_status=$?
3133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); } &&
3135         { ac_try='test -s conftest.$ac_objext'
3136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137  (eval $ac_try) 2>&5
3138  ac_status=$?
3139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140  (exit $ac_status); }; }; then
3141  ac_compiler_gnu=yes
3142 else
3143  echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3145
3146 ac_compiler_gnu=no
3147 fi
3148 rm -f conftest.$ac_objext conftest.$ac_ext
3149 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3150
3151 fi
3152 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3153 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3154 GXX=`test $ac_compiler_gnu = yes && echo yes`
3155 ac_test_CXXFLAGS=${CXXFLAGS+set}
3156 ac_save_CXXFLAGS=$CXXFLAGS
3157 CXXFLAGS="-g"
3158 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3159 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3160 if test "${ac_cv_prog_cxx_g+set}" = set; then
3161  echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163  cat >conftest.$ac_ext <<_ACEOF
3164 #line $LINENO "configure"
3165 /* confdefs.h.  */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h.  */
3170
3171 int
3172 main ()
3173 {
3174
3175  ;
3176  return 0;
3177 }
3178 _ACEOF
3179 rm -f conftest.$ac_objext
3180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3181  (eval $ac_compile) 2>&5
3182  ac_status=$?
3183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184  (exit $ac_status); } &&
3185         { ac_try='test -s conftest.$ac_objext'
3186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187  (eval $ac_try) 2>&5
3188  ac_status=$?
3189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190  (exit $ac_status); }; }; then
3191  ac_cv_prog_cxx_g=yes
3192 else
3193  echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196 ac_cv_prog_cxx_g=no
3197 fi
3198 rm -f conftest.$ac_objext conftest.$ac_ext
3199 fi
3200 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3201 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3202 if test "$ac_test_CXXFLAGS" = set; then
3203  CXXFLAGS=$ac_save_CXXFLAGS
3204 elif test $ac_cv_prog_cxx_g = yes; then
3205  if test "$GXX" = yes; then
3206    CXXFLAGS="-g -O2"
3207  else
3208    CXXFLAGS="-g"
3209  fi
3210 else
3211  if test "$GXX" = yes; then
3212    CXXFLAGS="-O2"
3213  else
3214    CXXFLAGS=
3215  fi
3216 fi
3217 for ac_declaration in \
3218   ''\
3219   '#include <stdlib.h>' \
3220   'extern "C" void std::exit (int) throw (); using std::exit;' \
3221   'extern "C" void std::exit (int); using std::exit;' \
3222   'extern "C" void exit (int) throw ();' \
3223   'extern "C" void exit (int);' \
3224   'void exit (int);'
3225 do
3226  cat >conftest.$ac_ext <<_ACEOF
3227 #line $LINENO "configure"
3228 /* confdefs.h.  */
3229 _ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h.  */
3233 #include <stdlib.h>
3234 $ac_declaration
3235 int
3236 main ()
3237 {
3238 exit (42);
3239  ;
3240  return 0;
3241 }
3242 _ACEOF
3243 rm -f conftest.$ac_objext
3244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3245  (eval $ac_compile) 2>&5
3246  ac_status=$?
3247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248  (exit $ac_status); } &&
3249         { ac_try='test -s conftest.$ac_objext'
3250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251  (eval $ac_try) 2>&5
3252  ac_status=$?
3253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254  (exit $ac_status); }; }; then
3255  :
3256 else
3257  echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260 continue
3261 fi
3262 rm -f conftest.$ac_objext conftest.$ac_ext
3263  cat >conftest.$ac_ext <<_ACEOF
3264 #line $LINENO "configure"
3265 /* confdefs.h.  */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h.  */
3270 $ac_declaration
3271 int
3272 main ()
3273 {
3274 exit (42);
3275  ;
3276  return 0;
3277 }
3278 _ACEOF
3279 rm -f conftest.$ac_objext
3280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3281  (eval $ac_compile) 2>&5
3282  ac_status=$?
3283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284  (exit $ac_status); } &&
3285         { ac_try='test -s conftest.$ac_objext'
3286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287  (eval $ac_try) 2>&5
3288  ac_status=$?
3289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290  (exit $ac_status); }; }; then
3291  break
3292 else
3293  echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3295
3296 fi
3297 rm -f conftest.$ac_objext conftest.$ac_ext
3298 done
3299 rm -f conftest*
3300 if test -n "$ac_declaration"; then
3301  echo '#ifdef __cplusplus' >>confdefs.h
3302  echo $ac_declaration      >>confdefs.h
3303  echo '#endif'             >>confdefs.h
3304 fi
3305
3306 ac_ext=c
3307 ac_cpp='$CPP $CPPFLAGS'
3308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3311
3312
3313
3314
3315
3692   # Try to determine "good" native compiler flags if none specified on command
3693   # line
3694   if test "$ac_test_CXXFLAGS" != "set"; then
# Line 3729 | Line 4105 | fi
4105  
4106   fi
4107  
3732
3733 fi
3734
3735 ac_ext=f90
3736 ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
3737 ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_f90_compiler_gnu
3739 if test -n "$ac_tool_prefix"; then
3740  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3741  do
3742    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3744 echo "$as_me:$LINENO: checking for $ac_word" >&5
3745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3746 if test "${ac_cv_prog_F90+set}" = set; then
3747  echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749  if test -n "$F90"; then
3750  ac_cv_prog_F90="$F90" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3754 do
3755  IFS=$as_save_IFS
3756  test -z "$as_dir" && as_dir=.
3757  for ac_exec_ext in '' $ac_executable_extensions; do
3758  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759    ac_cv_prog_F90="$ac_tool_prefix$ac_prog"
3760    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3761    break 2
3762  fi
3763 done
3764 done
3765
3766 fi
3767 fi
3768 F90=$ac_cv_prog_F90
3769 if test -n "$F90"; then
3770  echo "$as_me:$LINENO: result: $F90" >&5
3771 echo "${ECHO_T}$F90" >&6
3772 else
3773  echo "$as_me:$LINENO: result: no" >&5
3774 echo "${ECHO_T}no" >&6
3775 fi
4108  
3777    test -n "$F90" && break
3778  done
4109   fi
3780 if test -z "$F90"; then
3781  ac_ct_F90=$F90
3782  for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95
3783 do
3784  # Extract the first word of "$ac_prog", so it can be a program name with args.
3785 set dummy $ac_prog; ac_word=$2
3786 echo "$as_me:$LINENO: checking for $ac_word" >&5
3787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3788 if test "${ac_cv_prog_ac_ct_F90+set}" = set; then
3789  echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791  if test -n "$ac_ct_F90"; then
3792  ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test.
3793 else
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH
3796 do
3797  IFS=$as_save_IFS
3798  test -z "$as_dir" && as_dir=.
3799  for ac_exec_ext in '' $ac_executable_extensions; do
3800  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801    ac_cv_prog_ac_ct_F90="$ac_prog"
3802    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3803    break 2
3804  fi
3805 done
3806 done
4110  
3808 fi
3809 fi
3810 ac_ct_F90=$ac_cv_prog_ac_ct_F90
3811 if test -n "$ac_ct_F90"; then
3812  echo "$as_me:$LINENO: result: $ac_ct_F90" >&5
3813 echo "${ECHO_T}$ac_ct_F90" >&6
3814 else
3815  echo "$as_me:$LINENO: result: no" >&5
3816 echo "${ECHO_T}no" >&6
3817 fi
4111  
3819  test -n "$ac_ct_F90" && break
3820 done
4112  
3822  F90=$ac_ct_F90
3823 fi
4113  
4114  
3826 # If we don't use `.F90' as extension, the preprocessor is not run on the
3827 # input file.
3828 ac_save_ext=$ac_ext
3829 ac_ext=F90
3830 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5
3831 echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6
3832 if test "${ac_cv_f90_compiler_gnu+set}" = set; then
3833  echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835  cat >conftest.$ac_ext <<_ACEOF
3836
3837 program main
3838
3839 #ifndef __GNUC__
3840       choke me
3841 #endif
3842
3843 end program main
3844
3845 _ACEOF
3846 rm -f conftest.$ac_objext
3847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3848  (eval $ac_compile) 2>&5
3849  ac_status=$?
3850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851  (exit $ac_status); } &&
3852         { ac_try='test -s conftest.$ac_objext'
3853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854  (eval $ac_try) 2>&5
3855  ac_status=$?
3856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857  (exit $ac_status); }; }; then
3858  ac_compiler_gnu=yes
3859 else
3860  echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3862
3863 ac_compiler_gnu=no
3864 fi
3865 rm -f conftest.$ac_objext conftest.$ac_ext
3866 ac_cv_f90_compiler_gnu=$ac_compiler_gnu
3867
3868 fi
3869 echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5
3870 echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6
3871 ac_ext=$ac_save_ext
3872 G95=`test $ac_compiler_gnu = yes && echo yes`
3873 ac_ext=c
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878
3879
3880
3881
3882
4115   # Try to determine "good" native compiler flags if none specified on command
4116   # line
4117  
4118 < if test "$ac_test_F90FLAGS" != "set"; then
4118 > if test x"$F90FLAGS" == x ; then
4119    F90FLAGS=""
4120    case "${host_cpu}-${host_os}" in
4121  
# Line 3993 | Line 4225 | fi
4225  
4226   fi
4227  
4228 <
4229 <
3998 <
3999 <
4000 < # Try to determine native compiler flags that allow us to use F90 suffix
4001 < # for preprocessed f90 source.
4002 <
4003 < if test "$ac_test_PREPFLAG" != "set"; then
4004 <  PREPFLAG=""
4005 <  case "${host_cpu}-${host_os}" in
4006 <
4007 <  *linux*) if test "$F90" = ifc; then
4008 <                    PREPFLAG="-fpp1 "
4009 <                fi;;
4010 <  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
4011 <                    PREPFLAG="-qsuffix=cpp=F90 "
4012 <                fi;;
4013 <  *darwin*)
4014 <        if test "$F90" = f90 -o "$F90" = xlf90; then
4015 <                PREPFLAG="-qsuffix=cpp=F90 "
4016 <        fi;;
4017 <  esac
4018 <
4019 <  if test -z "$PREPFLAG"; then
4020 <        echo ""
4021 <        echo "**********************************************************"
4022 <        echo "* WARNING: Don't know the best PREPFLAG for this system  *"
4023 <        echo "* Use  make PREPFLAG=..., or edit the top level Makefile *"
4024 <        echo "* (otherwise, an empty PREPFLAG will be used)            *"
4025 <        echo "**********************************************************"
4026 <        echo ""
4027 <        PREPFLAG=""
4028 <  fi
4029 <
4030 <  echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5
4031 < echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6
4032 <
4033 <
4034 <  ac_ext=f90
4035 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4036 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4038 <
4039 <  ac_save_ext=$ac_ext
4040 <  ac_ext=F90
4041 <  ac_save_F90FLAGS=$F90FLAGS
4042 <
4043 <  if test "$PREPFLAG"; then
4044 <  F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST"
4045 < fi
4046 <
4047 <    cat >conftest.$ac_ext <<_ACEOF
4048 <
4049 <
4050 < program main
4051 <
4052 <  integer :: i
4053 <  i = 1
4054 <
4055 <
4056 < end program main
4057 <
4058 < _ACEOF
4059 < rm -f conftest.$ac_objext
4060 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4061 <  (eval $ac_compile) 2>&5
4062 <  ac_status=$?
4063 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 <  (exit $ac_status); } &&
4065 <         { ac_try='test -s conftest.$ac_objext'
4066 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 <  (eval $ac_try) 2>&5
4068 <  ac_status=$?
4069 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 <  (exit $ac_status); }; }; then
4071 <  prepflagworks=1
4072 < else
4073 <  echo "$as_me: failed program was:" >&5
4074 < sed 's/^/| /' conftest.$ac_ext >&5
4075 <
4076 < prepflagworks=0
4077 < fi
4078 < rm -f conftest.$ac_objext conftest.$ac_ext
4079 <
4080 <  F90FLAGS=$ac_save_F90FLAGS
4081 <  ac_ext=$ac_save_ext
4082 <  ac_ext=c
4083 < ac_cpp='$CPP $CPPFLAGS'
4084 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087 <
4088 <
4089 <
4090 <  if test "$prepflagworks" = 1; then
4091 <    echo "$as_me:$LINENO: result: yes" >&5
4092 < echo "${ECHO_T}yes" >&6
4093 <
4094 <  else
4095 <    echo "$as_me:$LINENO: result: no" >&5
4096 < echo "${ECHO_T}no" >&6
4097 <    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5
4098 < echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;}
4099 <   { (exit 1); exit 1; }; }
4100 <  fi
4101 < fi
4102 <
4103 <
4104 <
4105 <
4106 <
4107 < # Try to determine native compiler flags that allow us to use F90 suffix
4108 < # for preprocessed f90 source with -D type defines
4109 <
4110 < if test "$ac_test_PREPDEFFLAG" != "set"; then
4111 <  PREPDEFFLAG=""
4112 <  case "${host_cpu}-${host_os}" in
4113 <
4114 <  *linux*) if test "$F90" = ifc; then
4115 <                    PREPDEFFLAG=" "
4116 <                fi;;
4117 <  *aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
4118 <                    PREPDEFFLAG="-WF,"
4119 <                fi;;
4120 <  *darwin*)
4121 <        if test "$F90" = f90 -o "$F90" = xlf90; then
4122 <                PREPDEFFLAG="-WF,"
4123 <        fi;;
4124 <  esac
4125 <
4126 <  if test -z "$PREPDEFFLAG"; then
4127 <        echo ""
4128 <        echo "*************************************************************"
4129 <        echo "* WARNING: Don't know the best PREPDEFFLAG for this system  *"
4130 <        echo "* Use  make PREPDEFFLAG=..., or edit the top level Makefile *"
4131 <        echo "* (otherwise, an empty PREPDEFFLAG will be used)            *"
4132 <        echo "*************************************************************"
4133 <        echo ""
4134 <        PREPDEFFLAG=" "
4135 <  fi
4136 <
4137 <  echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5
4138 < echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6
4139 <
4140 <
4141 <  ac_ext=f90
4142 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
4143 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
4145 <
4146 <  ac_save_ext=$ac_ext
4147 <  ac_ext=F90
4148 <  ac_save_F90FLAGS=$F90FLAGS
4149 <
4150 <  if test "$PREPDEFFLAG"; then
4151 <  F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST"
4152 < fi
4153 <
4154 <    cat >conftest.$ac_ext <<_ACEOF
4155 <
4156 <
4157 < program main
4158 <
4159 <  integer :: i
4160 < #ifdef TEST
4161 <  i = 1
4162 < #else
4163 <  choke me
4164 < #endif
4165 <
4166 <
4167 < end program main
4168 <
4169 < _ACEOF
4170 < rm -f conftest.$ac_objext
4171 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4172 <  (eval $ac_compile) 2>&5
4173 <  ac_status=$?
4174 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 <  (exit $ac_status); } &&
4176 <         { ac_try='test -s conftest.$ac_objext'
4177 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4178 <  (eval $ac_try) 2>&5
4179 <  ac_status=$?
4180 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 <  (exit $ac_status); }; }; then
4182 <  prepdefflagworks=1
4183 < else
4184 <  echo "$as_me: failed program was:" >&5
4185 < sed 's/^/| /' conftest.$ac_ext >&5
4186 <
4187 < prepdefflagworks=0
4188 < fi
4189 < rm -f conftest.$ac_objext conftest.$ac_ext
4190 <
4191 <  F90FLAGS=$ac_save_F90FLAGS
4192 <  ac_ext=$ac_save_ext
4193 <  ac_ext=c
4194 < ac_cpp='$CPP $CPPFLAGS'
4195 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198 <
4199 <
4200 <
4201 <  if test "$prepdefflagworks" = 1; then
4202 <    echo "$as_me:$LINENO: result: yes" >&5
4203 < echo "${ECHO_T}yes" >&6
4204 <
4205 <  else
4206 <    echo "$as_me:$LINENO: result: no" >&5
4207 < echo "${ECHO_T}no" >&6
4208 <    { { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5
4209 < echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;}
4210 <   { (exit 1); exit 1; }; }
4211 <  fi
4212 < fi
4228 >     ;;
4229 > esac
4230  
4231   # Find a good install program.  We prefer a C program (faster),
4232   # so one script is as good as another.  But avoid the broken or
# Line 4851 | Line 4868 | F90FLAGS="$F90FLAGS $ac_verb"
4868   ac_save_F90FLAGS=$F90FLAGS
4869   F90FLAGS="$F90FLAGS $ac_verb"
4870  
4871 < (eval echo $as_me:4854: \"$ac_link\") >&5
4871 > (eval echo $as_me:4871: \"$ac_link\") >&5
4872   ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4873   echo "$ac_f90_v_output" >&5
4874   F90FLAGS=$ac_save_F90FLAGS
# Line 4928 | Line 4945 | F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
4945   ac_save_F90FLAGS=$F90FLAGS
4946   F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
4947  
4948 < (eval echo $as_me:4931: \"$ac_link\") >&5
4948 > (eval echo $as_me:4948: \"$ac_link\") >&5
4949   ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4950   echo "$ac_f90_v_output" >&5
4951   F90FLAGS=$ac_save_F90FLAGS
# Line 5361 | Line 5378 | esac
5378   echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;}
5379            ;;
5380   esac
5381 +
5382  
5383  
5384  
5385  
5386 + echo "$as_me:$LINENO: checking for module suffix" >&5
5387 + echo $ECHO_N "checking for module suffix... $ECHO_C" >&6
5388 + rm -f conftest*
5389 + # Intel ifc compiler generates files by the name of work.pc and work.pcl (!)
5390 + rm -f work*
5391 + cat >conftest.f <<EOF
5392 +        module conftest
5393 +        integer n
5394 +        parameter (n=1)
5395 +        end module conftest
5396 + EOF
5397 + # SGI and absoft compilers generates module name in upper case!
5398 + testname="conftest"
5399 + modcase="lower"
5400 + if $F90 -c conftest.f > conftest.out 2>&1 ; then
5401 +    MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o`
5402 +    MOD=`echo "$MOD" | sed -e 's/conftest\.//g'`
5403 +    if test -z "$MOD" ; then
5404 +        MOD=`ls CONFTEST* 2>/dev/null \
5405 +                | grep -v CONFTEST.f | grep -v CONFTEST.o`
5406 +        MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'`
5407 +        if test -n "$MOD" ; then
5408 +            testname="CONFTEST"
5409 +            modcase="upper"
5410 +        fi
5411 +    fi
5412 +    if test -z "$MOD" ; then
5413 +        echo "$as_me:$LINENO: result: unknown" >&5
5414 + echo "${ECHO_T}unknown" >&6
5415 +        # Use mod if we can't figure it out
5416 +        MOD="mod"
5417 +    else
5418 +        echo "$as_me:$LINENO: result: $MOD" >&5
5419 + echo "${ECHO_T}$MOD" >&6
5420 +    fi
5421 +    if test -s work.pcl ; then
5422 +        { echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5
5423 + echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;}
5424 +    fi
5425 + else
5426 +    echo "$as_me:$LINENO: result: unknown" >&5
5427 + echo "${ECHO_T}unknown" >&6
5428 + fi
5429 +
5430 +
5431 +
5432 +
5433 +
5434 + # Check for module include path (some use -I, some (Solaris) use -M, some
5435 + # (absoft) use -p).
5436 + # Intel compilers use a wierd system: -cl,filename.pcl .  If no file is
5437 + # specified, work.pcl and work.pc are created.  However, if you specify
5438 + # a file, it must contain a the name of a file ending in .pc .  Ugh!
5439 + # Use the module made above
5440 + echo "$as_me:$LINENO: checking for module directory path flag" >&5
5441 + echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6
5442 + madedir=0
5443 + if test ! -d conf ; then mkdir conf ; madedir=1; fi
5444 + cp $testname.$MOD conf
5445 + rm -f conftest* CONFTEST*
5446 + cat >conftest1.f <<EOF
5447 +        program main
5448 +        use conftest
5449 +        print *, n
5450 +        end
5451 + EOF
5452 + F90_WORK_FILES_ARG=""
5453 + F90MODINCSPEC=""
5454 + if $F90 -c -Iconf conftest1.f > conftest.out 2>&1 ; then
5455 +    MODDIRFLAG="-I"
5456 +    F90MODINCSPEC="-I<dir>"
5457 +    echo "$as_me:$LINENO: result: -I" >&5
5458 + echo "${ECHO_T}-I" >&6
5459 + elif $F90 -c -Mconf conftest1.f >> conftest.out 2>&1 ; then
5460 +    MODDIRFLAG="-M"
5461 +    F90MODINCSPEC="-M<dir>"
5462 +    echo "$as_me:$LINENO: result: -M" >&5
5463 + echo "${ECHO_T}-M" >&6
5464 + elif $F90 -c -pconf conftest1.f >> conftest.out 2>&1 ; then
5465 +    MODDIRFLAG="-p"
5466 +    F90MODINCSPEC="-p<dir>"
5467 +    echo "$as_me:$LINENO: result: -p" >&5
5468 + echo "${ECHO_T}-p" >&6
5469 + elif test -s work.pc ; then
5470 +     cp work.pc conf/mpimod.pc
5471 +     echo "mpimod.pc" > conf/mpimod.pcl
5472 +     echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl
5473 +     if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then
5474 +         MODDIRFLAG='-cl,mpimod.pcl'
5475 +         echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and
5476 + directories" >&5
5477 + echo "${ECHO_T}-cl,filename where filename contains a list of files and
5478 + directories" >&6
5479 +         F90_WORK_FILES_ARG="-cl,mpimod.pcl"
5480 +         F90MODINCSPEC="-cl,<dir>/<file>mod.pcl"
5481 +
5482 +     else
5483 +         # The version of the Intel compiler that I have refuses to let
5484 +         # you put the "work catalog" list anywhere but the current directory.
5485 +         # For example, you cannot in
5486 +         :
5487 +     fi
5488 + fi
5489 + if test -z "MODDIRFLAG" ; then
5490 +    echo "$as_me:$LINENO: result: unknown" >&5
5491 + echo "${ECHO_T}unknown" >&6
5492 + fi
5493 +
5494 +
5495 + rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod*
5496 + if test $madedir = 1 ; then rmdir conf ; fi
5497 +
5498 +
5499 +
5500   echo "$as_me:$LINENO: checking for mpi-directory" >&5
5501   echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6
5502  
5503 < # Check whether --with-MPI_DIR or --without-MPI_DIR was given.
5504 < if test "${with_MPI_DIR+set}" = set; then
5505 <  withval="$with_MPI_DIR"
5503 > # Check whether --with-mpi_dir or --without-mpi_dir was given.
5504 > if test "${with_mpi_dir+set}" = set; then
5505 >  withval="$with_mpi_dir"
5506    MPI_DIR="$withval"
5507   else
5508    MPI_DIR="/usr/local"
# Line 5382 | Line 5514 | echo $ECHO_N "checking for mpi-lib-directory... $ECHO_
5514   echo "$as_me:$LINENO: checking for mpi-lib-directory" >&5
5515   echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6
5516  
5517 < # Check whether --with-MPI_LIBDIR or --without-MPI_LIBDIR was given.
5518 < if test "${with_MPI_LIBDIR+set}" = set; then
5519 <  withval="$with_MPI_LIBDIR"
5517 > # Check whether --with-mpi_libdir or --without-mpi_libdir was given.
5518 > if test "${with_mpi_libdir+set}" = set; then
5519 >  withval="$with_mpi_libdir"
5520    MPI_LIBDIR="$withval"
5521   else
5522    MPI_LIBDIR="$MPI_DIR/lib"
# Line 5396 | Line 5528 | echo $ECHO_N "checking for mpi-inc-directory... $ECHO_
5528   echo "$as_me:$LINENO: checking for mpi-inc-directory" >&5
5529   echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6
5530  
5531 < # Check whether --with-MPI_INC or --without-MPI_INC was given.
5532 < if test "${with_MPI_INC+set}" = set; then
5533 <  withval="$with_MPI_INC"
5531 > # Check whether --with-mpi_inc or --without-mpi_inc was given.
5532 > if test "${with_mpi_inc+set}" = set; then
5533 >  withval="$with_mpi_inc"
5534    MPI_INC="$withval"
5535   else
5536    MPI_INC="$MPI_DIR/include"
# Line 6131 | Line 6263 | done
6263  
6264  
6265  
6266 < # Check whether --with-sprng-prefix or --without-sprng-prefix was given.
6266 > # Check whether --with-sprng_prefix or --without-sprng_prefix was given.
6267   if test "${with_sprng_prefix+set}" = set; then
6268    withval="$with_sprng_prefix"
6269    sprng_prefix="$withval"
# Line 6139 | Line 6271 | fi;
6271    sprng_prefix="/usr/local"
6272   fi;
6273  
6274 < # Check whether --with-sprng-lib-prefix or --without-sprng-lib-prefix was given.
6275 < if test "${with_sprng_lib_prefix+set}" = set; then
6276 <  withval="$with_sprng_lib_prefix"
6277 <  sprng_lib_prefix="$withval"
6274 > # Check whether --with-sprng-libdir or --without-sprng-libdir was given.
6275 > if test "${with_sprng_libdir+set}" = set; then
6276 >  withval="$with_sprng_libdir"
6277 >  sprng_libdir="$withval"
6278   else
6279 <  sprng_lib_prefix="/usr/local/lib"
6279 >  sprng_libdir="/usr/local/lib"
6280   fi;
6281  
6282 < # Check whether --with-sprng-include-prefix or --without-sprng-include-prefix was given.
6283 < if test "${with_sprng_include_prefix+set}" = set; then
6284 <  withval="$with_sprng_include_prefix"
6285 <  sprng_include_prefix="$withval"
6282 > # Check whether --with-sprng-include or --without-sprng-include was given.
6283 > if test "${with_sprng_include+set}" = set; then
6284 >  withval="$with_sprng_include"
6285 >  sprng_include="$withval"
6286   else
6287 <  sprng_include_prefix="/usr/local/include/sprng"
6287 >  sprng_include="/usr/local/include/sprng"
6288   fi;
6289  
6290 <  if test x$sprng_lib_prefix = x ; then
6291 <    sprng_lib_prefix=${sprng_prefix}/lib
6290 >  if test x$sprng_libdir = x ; then
6291 >    sprng_libdir=${sprng_prefix}/lib
6292    fi
6293  
6294 <  if test x$sprng_include_prefix = x ; then
6295 <    sprng_include_prefix=${sprng_prefix}/include
6294 >  if test x$sprng_include = x ; then
6295 >    sprng_include=${sprng_prefix}/include
6296    fi
6297  
6298 <  echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include_prefix" >&5
6299 < echo $ECHO_N "checking for SPRNG include files in $sprng_include_prefix... $ECHO_C" >&6
6300 <  if test -f ${sprng_include_prefix}/sprng.h; then
6298 >  echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include" >&5
6299 > echo $ECHO_N "checking for SPRNG include files in $sprng_include... $ECHO_C" >&6
6300 >  if test -f ${sprng_include}/sprng.h; then
6301      have_sprngincl=yes
6302      echo "$as_me:$LINENO: result: yes" >&5
6303   echo "${ECHO_T}yes" >&6
# Line 6178 | Line 6310 | echo "$as_me: error: Could not locate the SPRNG includ
6310     { (exit 1); exit 1; }; }
6311    fi
6312  
6313 <  echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_lib_prefix" >&5
6314 < echo $ECHO_N "checking for SPRNG libraries in $sprng_lib_prefix... $ECHO_C" >&6
6315 <  if test -f ${sprng_lib_prefix}/libsprng.a; then
6313 >  echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_libdir" >&5
6314 > echo $ECHO_N "checking for SPRNG libraries in $sprng_libdir... $ECHO_C" >&6
6315 >  if test -f ${sprng_libdir}/libsprng.a; then
6316      have_sprnglib=yes
6317      echo "$as_me:$LINENO: result: yes" >&5
6318   echo "${ECHO_T}yes" >&6
# Line 6202 | Line 6334 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
6334   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6335  
6336    ac_save_CPPFLAGS=$CPPFLAGS
6337 <  CPPFLAGS="${CPPFLAGS} -I${sprng_include_prefix}"
6337 >  CPPFLAGS="${CPPFLAGS} -I${sprng_include}"
6338    ac_save_LDFLAGS=$LDFLAGS
6339 <  LDFLAGS="${LDFLAGS} -L${sprng_lib_prefix} -lsprng"
6339 >  LDFLAGS="${LDFLAGS} -L${sprng_libdir} -lsprng"
6340    if test "${ac_cv_header_sprng_h+set}" = set; then
6341    echo "$as_me:$LINENO: checking for sprng.h" >&5
6342   echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
# Line 6391 | Line 6523 | if test $ac_cv_lib_sprng_init_rng = yes; then
6523   echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5
6524   echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6
6525   if test $ac_cv_lib_sprng_init_rng = yes; then
6526 <  SPRNG_LIBDIR="${sprng_lib_prefix}"
6527 <                     SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include_prefix}"
6526 >  SPRNG_LIBDIR="${sprng_libdir}"
6527 >                     SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include}"
6528                       HAVE_SPRNG="yes"
6529   fi
6530  
# Line 6677 | Line 6809 | fi;
6809  
6810  
6811  
6812 +
6813   # Check whether --with-mpi_f90_mods or --without-mpi_f90_mods was given.
6814   if test "${with_mpi_f90_mods+set}" = set; then
6815    withval="$with_mpi_f90_mods"
# Line 6695 | Line 6828 | ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6828   ac_compiler_gnu=$ac_cv_f90_compiler_gnu
6829  
6830    ac_save_F90FLAGS=$F90FLAGS
6831 +
6832    if test "$mpi_f90_mods"; then
6833 <  F90FLAGS="${F90FLAGS} -I${mpi_f90_mods}"
6833 >  F90FLAGS="${F90FLAGS} ${MODDIRFLAG}${mpi_f90_mods}"
6834   fi
6835  
6836      cat >conftest.$ac_ext <<_ACEOF
# Line 6748 | Line 6882 | _ACEOF
6882   #define MPI_MOD 1
6883   _ACEOF
6884  
6885 <    MPI_F90_MODS="-I${mpi_f90_mods}"
6885 >    MPI_F90_MODS="${mpi_f90_mods}"
6886  
6887      # The library name:
6888      if test -z "$MPI_LIB" ; then
# Line 6795 | Line 6929 | SUBDIRS="libBASS libmdtools src forceFields samples ut
6929  
6930   MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
6931  
6932 < SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder"
6932 > SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps"
6933  
6934 < #CFLAGS=${CFLAGS-""}
6935 < #CXXFLAGS=${CXXFLAGS-""}
6936 < #CPPFLAGS=${CPPFLAGS-""}
6937 < #FFLAGS=${FFLAGS-""}
6938 < #LDFLAGS=${LDFLAGS-""}
6939 < #OPTIMIZE=${OPTIMIZE-"-O"}
6940 < #DEBUG=${DEBUG-"-g"}
6934 > CFLAGS=${CFLAGS-""}
6935 > CXXFLAGS=${CXXFLAGS-""}
6936 > CPPFLAGS=${CPPFLAGS-""}
6937 > FFLAGS=${FFLAGS-""}
6938 > F90FLAGS=${F90FLAGS-""}
6939 > LDFLAGS=${LDFLAGS-""}
6940 > DEBUG=${DEBUG-"-g"}
6941  
6942   case $debug in
6943 <  true)
6810 <     CFLAGS="$DEBUG $CFLAGS"
6811 <     CXXFLAGS="$DEBUG $CXXFLAGS"
6943 >  1)
6944       FFLAGS="$DEBUG $FFLAGS"
6945       F90FLAGS="$DEBUG $F90FLAGS"
6946       ;;
6947    *)
6816     CFLAGS="$OPTIMIZE $CFLAGS"
6817     CXXFLAGS="$OPTIMIZE $CXXFLAGS"
6818     FFLAGS="$OPTIMIZE $FFLAGS"
6819     F90FLAGS="$OPTIMIZE $F90FLAGS"
6948       ;;
6949   esac
6950  
# Line 6838 | Line 6966 | esac
6966  
6967            ac_config_headers="$ac_config_headers libmdtools/config.h"
6968  
6969 <                                                                                                                                            ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile"
6969 >                                                                                                                                                      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"
6970  
6971  
6972   cat >confcache <<\_ACEOF
# Line 7373 | Line 7501 | do
7501    "utils/sysbuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;;
7502    "forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;;
7503    "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
7504 +  "staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;;
7505    "samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;;
7506    "samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;;
7507    "samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;;
# Line 7465 | Line 7594 | s,@DEBUG@,$DEBUG,;t t
7594   s,@ECHO_T@,$ECHO_T,;t t
7595   s,@LIBS@,$LIBS,;t t
7596   s,@PROGNAME@,$PROGNAME,;t t
7597 < s,@DEBUG@,$DEBUG,;t t
7597 > s,@debug@,$debug,;t t
7598   s,@build@,$build,;t t
7599   s,@build_cpu@,$build_cpu,;t t
7600   s,@build_vendor@,$build_vendor,;t t
# Line 7504 | Line 7633 | s,@MPI_DIR@,$MPI_DIR,;t t
7633   s,@F90LIBS@,$F90LIBS,;t t
7634   s,@F90_FUNC@,$F90_FUNC,;t t
7635   s,@F90_FUNC_@,$F90_FUNC_,;t t
7636 < s,@MPI_DIR@,$MPI_DIR,;t t
7636 > s,@MOD@,$MOD,;t t
7637 > s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
7638 > s,@MODDIRFLAG@,$MODDIRFLAG,;t t
7639 > s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
7640 > s,@mpi_dir@,$mpi_dir,;t t
7641   s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t
7642   s,@MPI_INC@,$MPI_INC,;t t
7643   s,@MPI_LIB@,$MPI_LIB,;t t

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines