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 fortran_machine_defs BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS' |
314 |
> |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR mpi_dir MPI_LIBDIR MPI_INC MPI_LIB MPIF77 MPIF90 MPILIBS 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. |
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 |
1828 |
|
|
1829 |
|
|
1830 |
|
|
1831 |
– |
# what should I build? |
1831 |
|
|
1832 |
< |
# 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" |
2565 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2566 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2567 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2568 |
+ |
|
2569 |
+ |
|
2570 |
+ |
ac_ext=cc |
2571 |
+ |
ac_cpp='$CXXCPP $CPPFLAGS' |
2572 |
+ |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2573 |
+ |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2574 |
+ |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2575 |
+ |
if test -n "$ac_tool_prefix"; then |
2576 |
+ |
for ac_prog in $CCC icpc icc xlC CC g++ c++ |
2577 |
+ |
do |
2578 |
+ |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2579 |
+ |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2580 |
+ |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2581 |
+ |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2582 |
+ |
if test "${ac_cv_prog_CXX+set}" = set; then |
2583 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2584 |
+ |
else |
2585 |
+ |
if test -n "$CXX"; then |
2586 |
+ |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
2587 |
+ |
else |
2588 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2589 |
+ |
for as_dir in $PATH |
2590 |
+ |
do |
2591 |
+ |
IFS=$as_save_IFS |
2592 |
+ |
test -z "$as_dir" && as_dir=. |
2593 |
+ |
for ac_exec_ext in '' $ac_executable_extensions; do |
2594 |
+ |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2595 |
+ |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
2596 |
+ |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2597 |
+ |
break 2 |
2598 |
+ |
fi |
2599 |
+ |
done |
2600 |
+ |
done |
2601 |
+ |
|
2602 |
+ |
fi |
2603 |
+ |
fi |
2604 |
+ |
CXX=$ac_cv_prog_CXX |
2605 |
+ |
if test -n "$CXX"; then |
2606 |
+ |
echo "$as_me:$LINENO: result: $CXX" >&5 |
2607 |
+ |
echo "${ECHO_T}$CXX" >&6 |
2608 |
+ |
else |
2609 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
2610 |
+ |
echo "${ECHO_T}no" >&6 |
2611 |
+ |
fi |
2612 |
+ |
|
2613 |
+ |
test -n "$CXX" && break |
2614 |
+ |
done |
2615 |
+ |
fi |
2616 |
+ |
if test -z "$CXX"; then |
2617 |
+ |
ac_ct_CXX=$CXX |
2618 |
+ |
for ac_prog in $CCC icpc icc xlC CC g++ c++ |
2619 |
+ |
do |
2620 |
+ |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2621 |
+ |
set dummy $ac_prog; ac_word=$2 |
2622 |
+ |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2623 |
+ |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2624 |
+ |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
2625 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2626 |
+ |
else |
2627 |
+ |
if test -n "$ac_ct_CXX"; then |
2628 |
+ |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
2629 |
+ |
else |
2630 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2631 |
+ |
for as_dir in $PATH |
2632 |
+ |
do |
2633 |
+ |
IFS=$as_save_IFS |
2634 |
+ |
test -z "$as_dir" && as_dir=. |
2635 |
+ |
for ac_exec_ext in '' $ac_executable_extensions; do |
2636 |
+ |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2637 |
+ |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
2638 |
+ |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2639 |
+ |
break 2 |
2640 |
+ |
fi |
2641 |
+ |
done |
2642 |
+ |
done |
2643 |
+ |
|
2644 |
+ |
fi |
2645 |
+ |
fi |
2646 |
+ |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
2647 |
+ |
if test -n "$ac_ct_CXX"; then |
2648 |
+ |
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
2649 |
+ |
echo "${ECHO_T}$ac_ct_CXX" >&6 |
2650 |
+ |
else |
2651 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
2652 |
+ |
echo "${ECHO_T}no" >&6 |
2653 |
+ |
fi |
2654 |
|
|
2655 |
+ |
test -n "$ac_ct_CXX" && break |
2656 |
+ |
done |
2657 |
+ |
test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
2658 |
|
|
2659 |
+ |
CXX=$ac_ct_CXX |
2660 |
+ |
fi |
2661 |
|
|
2662 |
|
|
2663 |
+ |
# Provide some information about the compiler. |
2664 |
+ |
echo "$as_me:$LINENO:" \ |
2665 |
+ |
"checking for C++ compiler version" >&5 |
2666 |
+ |
ac_compiler=`set X $ac_compile; echo $2` |
2667 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2668 |
+ |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
2669 |
+ |
ac_status=$? |
2670 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2671 |
+ |
(exit $ac_status); } |
2672 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2673 |
+ |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
2674 |
+ |
ac_status=$? |
2675 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2676 |
+ |
(exit $ac_status); } |
2677 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2678 |
+ |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
2679 |
+ |
ac_status=$? |
2680 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2681 |
+ |
(exit $ac_status); } |
2682 |
|
|
2683 |
+ |
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
2684 |
+ |
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
2685 |
+ |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
2686 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2687 |
+ |
else |
2688 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
2689 |
+ |
#line $LINENO "configure" |
2690 |
+ |
/* confdefs.h. */ |
2691 |
+ |
_ACEOF |
2692 |
+ |
cat confdefs.h >>conftest.$ac_ext |
2693 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
2694 |
+ |
/* end confdefs.h. */ |
2695 |
+ |
|
2696 |
+ |
int |
2697 |
+ |
main () |
2698 |
+ |
{ |
2699 |
+ |
#ifndef __GNUC__ |
2700 |
+ |
choke me |
2701 |
+ |
#endif |
2702 |
+ |
|
2703 |
+ |
; |
2704 |
+ |
return 0; |
2705 |
+ |
} |
2706 |
+ |
_ACEOF |
2707 |
+ |
rm -f conftest.$ac_objext |
2708 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2709 |
+ |
(eval $ac_compile) 2>&5 |
2710 |
+ |
ac_status=$? |
2711 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2712 |
+ |
(exit $ac_status); } && |
2713 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2714 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2715 |
+ |
(eval $ac_try) 2>&5 |
2716 |
+ |
ac_status=$? |
2717 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2718 |
+ |
(exit $ac_status); }; }; then |
2719 |
+ |
ac_compiler_gnu=yes |
2720 |
+ |
else |
2721 |
+ |
echo "$as_me: failed program was:" >&5 |
2722 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
2723 |
+ |
|
2724 |
+ |
ac_compiler_gnu=no |
2725 |
+ |
fi |
2726 |
+ |
rm -f conftest.$ac_objext conftest.$ac_ext |
2727 |
+ |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
2728 |
+ |
|
2729 |
+ |
fi |
2730 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
2731 |
+ |
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
2732 |
+ |
GXX=`test $ac_compiler_gnu = yes && echo yes` |
2733 |
+ |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
2734 |
+ |
ac_save_CXXFLAGS=$CXXFLAGS |
2735 |
+ |
CXXFLAGS="-g" |
2736 |
+ |
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
2737 |
+ |
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
2738 |
+ |
if test "${ac_cv_prog_cxx_g+set}" = set; then |
2739 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2740 |
+ |
else |
2741 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
2742 |
+ |
#line $LINENO "configure" |
2743 |
+ |
/* confdefs.h. */ |
2744 |
+ |
_ACEOF |
2745 |
+ |
cat confdefs.h >>conftest.$ac_ext |
2746 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
2747 |
+ |
/* end confdefs.h. */ |
2748 |
+ |
|
2749 |
+ |
int |
2750 |
+ |
main () |
2751 |
+ |
{ |
2752 |
+ |
|
2753 |
+ |
; |
2754 |
+ |
return 0; |
2755 |
+ |
} |
2756 |
+ |
_ACEOF |
2757 |
+ |
rm -f conftest.$ac_objext |
2758 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2759 |
+ |
(eval $ac_compile) 2>&5 |
2760 |
+ |
ac_status=$? |
2761 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2762 |
+ |
(exit $ac_status); } && |
2763 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2764 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2765 |
+ |
(eval $ac_try) 2>&5 |
2766 |
+ |
ac_status=$? |
2767 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2768 |
+ |
(exit $ac_status); }; }; then |
2769 |
+ |
ac_cv_prog_cxx_g=yes |
2770 |
+ |
else |
2771 |
+ |
echo "$as_me: failed program was:" >&5 |
2772 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
2773 |
+ |
|
2774 |
+ |
ac_cv_prog_cxx_g=no |
2775 |
+ |
fi |
2776 |
+ |
rm -f conftest.$ac_objext conftest.$ac_ext |
2777 |
+ |
fi |
2778 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
2779 |
+ |
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
2780 |
+ |
if test "$ac_test_CXXFLAGS" = set; then |
2781 |
+ |
CXXFLAGS=$ac_save_CXXFLAGS |
2782 |
+ |
elif test $ac_cv_prog_cxx_g = yes; then |
2783 |
+ |
if test "$GXX" = yes; then |
2784 |
+ |
CXXFLAGS="-g -O2" |
2785 |
+ |
else |
2786 |
+ |
CXXFLAGS="-g" |
2787 |
+ |
fi |
2788 |
+ |
else |
2789 |
+ |
if test "$GXX" = yes; then |
2790 |
+ |
CXXFLAGS="-O2" |
2791 |
+ |
else |
2792 |
+ |
CXXFLAGS= |
2793 |
+ |
fi |
2794 |
+ |
fi |
2795 |
+ |
for ac_declaration in \ |
2796 |
+ |
''\ |
2797 |
+ |
'#include <stdlib.h>' \ |
2798 |
+ |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2799 |
+ |
'extern "C" void std::exit (int); using std::exit;' \ |
2800 |
+ |
'extern "C" void exit (int) throw ();' \ |
2801 |
+ |
'extern "C" void exit (int);' \ |
2802 |
+ |
'void exit (int);' |
2803 |
+ |
do |
2804 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
2805 |
+ |
#line $LINENO "configure" |
2806 |
+ |
/* confdefs.h. */ |
2807 |
+ |
_ACEOF |
2808 |
+ |
cat confdefs.h >>conftest.$ac_ext |
2809 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
2810 |
+ |
/* end confdefs.h. */ |
2811 |
+ |
#include <stdlib.h> |
2812 |
+ |
$ac_declaration |
2813 |
+ |
int |
2814 |
+ |
main () |
2815 |
+ |
{ |
2816 |
+ |
exit (42); |
2817 |
+ |
; |
2818 |
+ |
return 0; |
2819 |
+ |
} |
2820 |
+ |
_ACEOF |
2821 |
+ |
rm -f conftest.$ac_objext |
2822 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2823 |
+ |
(eval $ac_compile) 2>&5 |
2824 |
+ |
ac_status=$? |
2825 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2826 |
+ |
(exit $ac_status); } && |
2827 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2828 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2829 |
+ |
(eval $ac_try) 2>&5 |
2830 |
+ |
ac_status=$? |
2831 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2832 |
+ |
(exit $ac_status); }; }; then |
2833 |
+ |
: |
2834 |
+ |
else |
2835 |
+ |
echo "$as_me: failed program was:" >&5 |
2836 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
2837 |
+ |
|
2838 |
+ |
continue |
2839 |
+ |
fi |
2840 |
+ |
rm -f conftest.$ac_objext conftest.$ac_ext |
2841 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
2842 |
+ |
#line $LINENO "configure" |
2843 |
+ |
/* confdefs.h. */ |
2844 |
+ |
_ACEOF |
2845 |
+ |
cat confdefs.h >>conftest.$ac_ext |
2846 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
2847 |
+ |
/* end confdefs.h. */ |
2848 |
+ |
$ac_declaration |
2849 |
+ |
int |
2850 |
+ |
main () |
2851 |
+ |
{ |
2852 |
+ |
exit (42); |
2853 |
+ |
; |
2854 |
+ |
return 0; |
2855 |
+ |
} |
2856 |
+ |
_ACEOF |
2857 |
+ |
rm -f conftest.$ac_objext |
2858 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2859 |
+ |
(eval $ac_compile) 2>&5 |
2860 |
+ |
ac_status=$? |
2861 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2862 |
+ |
(exit $ac_status); } && |
2863 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
2864 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2865 |
+ |
(eval $ac_try) 2>&5 |
2866 |
+ |
ac_status=$? |
2867 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2868 |
+ |
(exit $ac_status); }; }; then |
2869 |
+ |
break |
2870 |
+ |
else |
2871 |
+ |
echo "$as_me: failed program was:" >&5 |
2872 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
2873 |
+ |
|
2874 |
+ |
fi |
2875 |
+ |
rm -f conftest.$ac_objext conftest.$ac_ext |
2876 |
+ |
done |
2877 |
+ |
rm -f conftest* |
2878 |
+ |
if test -n "$ac_declaration"; then |
2879 |
+ |
echo '#ifdef __cplusplus' >>confdefs.h |
2880 |
+ |
echo $ac_declaration >>confdefs.h |
2881 |
+ |
echo '#endif' >>confdefs.h |
2882 |
+ |
fi |
2883 |
+ |
|
2884 |
+ |
ac_ext=c |
2885 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
2886 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2887 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2888 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2889 |
+ |
|
2890 |
+ |
OOPSE_TEMPLATE_FLAGS="" |
2891 |
+ |
if test $ac_cv_cxx_compiler_gnu = no; then |
2892 |
+ |
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5 |
2893 |
+ |
echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6 |
2894 |
+ |
echo 'void f(){}' > conftest.cc |
2895 |
+ |
if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then |
2896 |
+ |
echo "$as_me:$LINENO: result: yes" >&5 |
2897 |
+ |
echo "${ECHO_T}yes" >&6 |
2898 |
+ |
OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink" |
2899 |
+ |
else |
2900 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
2901 |
+ |
echo "${ECHO_T}no" >&6 |
2902 |
+ |
fi |
2903 |
+ |
rm -f conftest* |
2904 |
+ |
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5 |
2905 |
+ |
echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6 |
2906 |
+ |
echo 'void f(){}' > conftest.cc |
2907 |
+ |
if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then |
2908 |
+ |
echo "$as_me:$LINENO: result: yes" >&5 |
2909 |
+ |
echo "${ECHO_T}yes" >&6 |
2910 |
+ |
OOPSE_TEMPLATE_FLAGS="-instances=static" |
2911 |
+ |
else |
2912 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
2913 |
+ |
echo "${ECHO_T}no" >&6 |
2914 |
+ |
fi |
2915 |
+ |
rm -f conftest* |
2916 |
+ |
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5 |
2917 |
+ |
echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6 |
2918 |
+ |
echo 'void f(){}' > conftest.cc |
2919 |
+ |
if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then |
2920 |
+ |
echo "$as_me:$LINENO: result: yes" >&5 |
2921 |
+ |
echo "${ECHO_T}yes" >&6 |
2922 |
+ |
OOPSE_TEMPLATE_FLAGS="-pto" |
2923 |
+ |
else |
2924 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
2925 |
+ |
echo "${ECHO_T}no" >&6 |
2926 |
+ |
fi |
2927 |
+ |
rm -f conftest* |
2928 |
+ |
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5 |
2929 |
+ |
echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6 |
2930 |
+ |
echo 'void f(){}' > conftest.cc |
2931 |
+ |
if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then |
2932 |
+ |
echo "$as_me:$LINENO: result: yes" >&5 |
2933 |
+ |
echo "${ECHO_T}yes" >&6 |
2934 |
+ |
EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std" |
2935 |
+ |
else |
2936 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
2937 |
+ |
echo "${ECHO_T}no" >&6 |
2938 |
+ |
fi |
2939 |
+ |
fi |
2940 |
+ |
|
2941 |
+ |
|
2942 |
+ |
|
2943 |
+ |
|
2944 |
+ |
ac_ext=f90 |
2945 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
2946 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2947 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
2948 |
+ |
if test -n "$ac_tool_prefix"; then |
2949 |
+ |
for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
2950 |
+ |
do |
2951 |
+ |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2952 |
+ |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2953 |
+ |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2954 |
+ |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2955 |
+ |
if test "${ac_cv_prog_F90+set}" = set; then |
2956 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2957 |
+ |
else |
2958 |
+ |
if test -n "$F90"; then |
2959 |
+ |
ac_cv_prog_F90="$F90" # Let the user override the test. |
2960 |
+ |
else |
2961 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2962 |
+ |
for as_dir in $PATH |
2963 |
+ |
do |
2964 |
+ |
IFS=$as_save_IFS |
2965 |
+ |
test -z "$as_dir" && as_dir=. |
2966 |
+ |
for ac_exec_ext in '' $ac_executable_extensions; do |
2967 |
+ |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2968 |
+ |
ac_cv_prog_F90="$ac_tool_prefix$ac_prog" |
2969 |
+ |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2970 |
+ |
break 2 |
2971 |
+ |
fi |
2972 |
+ |
done |
2973 |
+ |
done |
2974 |
+ |
|
2975 |
+ |
fi |
2976 |
+ |
fi |
2977 |
+ |
F90=$ac_cv_prog_F90 |
2978 |
+ |
if test -n "$F90"; then |
2979 |
+ |
echo "$as_me:$LINENO: result: $F90" >&5 |
2980 |
+ |
echo "${ECHO_T}$F90" >&6 |
2981 |
+ |
else |
2982 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
2983 |
+ |
echo "${ECHO_T}no" >&6 |
2984 |
+ |
fi |
2985 |
+ |
|
2986 |
+ |
test -n "$F90" && break |
2987 |
+ |
done |
2988 |
+ |
fi |
2989 |
+ |
if test -z "$F90"; then |
2990 |
+ |
ac_ct_F90=$F90 |
2991 |
+ |
for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
2992 |
+ |
do |
2993 |
+ |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2994 |
+ |
set dummy $ac_prog; ac_word=$2 |
2995 |
+ |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2996 |
+ |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2997 |
+ |
if test "${ac_cv_prog_ac_ct_F90+set}" = set; then |
2998 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2999 |
+ |
else |
3000 |
+ |
if test -n "$ac_ct_F90"; then |
3001 |
+ |
ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test. |
3002 |
+ |
else |
3003 |
+ |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3004 |
+ |
for as_dir in $PATH |
3005 |
+ |
do |
3006 |
+ |
IFS=$as_save_IFS |
3007 |
+ |
test -z "$as_dir" && as_dir=. |
3008 |
+ |
for ac_exec_ext in '' $ac_executable_extensions; do |
3009 |
+ |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3010 |
+ |
ac_cv_prog_ac_ct_F90="$ac_prog" |
3011 |
+ |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3012 |
+ |
break 2 |
3013 |
+ |
fi |
3014 |
+ |
done |
3015 |
+ |
done |
3016 |
+ |
|
3017 |
+ |
fi |
3018 |
+ |
fi |
3019 |
+ |
ac_ct_F90=$ac_cv_prog_ac_ct_F90 |
3020 |
+ |
if test -n "$ac_ct_F90"; then |
3021 |
+ |
echo "$as_me:$LINENO: result: $ac_ct_F90" >&5 |
3022 |
+ |
echo "${ECHO_T}$ac_ct_F90" >&6 |
3023 |
+ |
else |
3024 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
3025 |
+ |
echo "${ECHO_T}no" >&6 |
3026 |
+ |
fi |
3027 |
+ |
|
3028 |
+ |
test -n "$ac_ct_F90" && break |
3029 |
+ |
done |
3030 |
+ |
|
3031 |
+ |
F90=$ac_ct_F90 |
3032 |
+ |
fi |
3033 |
+ |
|
3034 |
+ |
|
3035 |
+ |
# If we don't use `.F90' as extension, the preprocessor is not run on the |
3036 |
+ |
# input file. |
3037 |
+ |
ac_save_ext=$ac_ext |
3038 |
+ |
ac_ext=F90 |
3039 |
+ |
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 90 compiler" >&5 |
3040 |
+ |
echo $ECHO_N "checking whether we are using the GNU Fortran 90 compiler... $ECHO_C" >&6 |
3041 |
+ |
if test "${ac_cv_f90_compiler_gnu+set}" = set; then |
3042 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3043 |
+ |
else |
3044 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3045 |
+ |
|
3046 |
+ |
program main |
3047 |
+ |
|
3048 |
+ |
#ifndef __GNUC__ |
3049 |
+ |
choke me |
3050 |
+ |
#endif |
3051 |
+ |
|
3052 |
+ |
end program main |
3053 |
+ |
|
3054 |
+ |
_ACEOF |
3055 |
+ |
rm -f conftest.$ac_objext |
3056 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3057 |
+ |
(eval $ac_compile) 2>&5 |
3058 |
+ |
ac_status=$? |
3059 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3060 |
+ |
(exit $ac_status); } && |
3061 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
3062 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3063 |
+ |
(eval $ac_try) 2>&5 |
3064 |
+ |
ac_status=$? |
3065 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3066 |
+ |
(exit $ac_status); }; }; then |
3067 |
+ |
ac_compiler_gnu=yes |
3068 |
+ |
else |
3069 |
+ |
echo "$as_me: failed program was:" >&5 |
3070 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3071 |
+ |
|
3072 |
+ |
ac_compiler_gnu=no |
3073 |
+ |
fi |
3074 |
+ |
rm -f conftest.$ac_objext conftest.$ac_ext |
3075 |
+ |
ac_cv_f90_compiler_gnu=$ac_compiler_gnu |
3076 |
+ |
|
3077 |
+ |
fi |
3078 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_f90_compiler_gnu" >&5 |
3079 |
+ |
echo "${ECHO_T}$ac_cv_f90_compiler_gnu" >&6 |
3080 |
+ |
ac_ext=$ac_save_ext |
3081 |
+ |
G95=`test $ac_compiler_gnu = yes && echo yes` |
3082 |
+ |
ac_ext=c |
3083 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
3084 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3085 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3086 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3087 |
+ |
|
3088 |
+ |
|
3089 |
+ |
|
3090 |
+ |
|
3091 |
+ |
|
3092 |
+ |
# Try to determine native compiler flags that allow us to use F90 suffix |
3093 |
+ |
# for preprocessed f90 source. |
3094 |
+ |
|
3095 |
+ |
if test "$ac_test_PREPFLAG" != "set"; then |
3096 |
+ |
PREPFLAG="" |
3097 |
+ |
case "${host_cpu}-${host_os}" in |
3098 |
+ |
|
3099 |
+ |
*linux*) if test "$F90" = ifc; then |
3100 |
+ |
PREPFLAG="-fpp1 " |
3101 |
+ |
fi;; |
3102 |
+ |
*aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
3103 |
+ |
PREPFLAG="-qsuffix=cpp=F90 " |
3104 |
+ |
fi;; |
3105 |
+ |
*darwin*) |
3106 |
+ |
if test "$F90" = f90 -o "$F90" = xlf90; then |
3107 |
+ |
PREPFLAG="-qsuffix=cpp=F90 " |
3108 |
+ |
fi;; |
3109 |
+ |
esac |
3110 |
+ |
|
3111 |
+ |
if test -z "$PREPFLAG"; then |
3112 |
+ |
echo "" |
3113 |
+ |
echo "**********************************************************" |
3114 |
+ |
echo "* WARNING: Don't know the best PREPFLAG for this system *" |
3115 |
+ |
echo "* Use make PREPFLAG=..., or edit the top level Makefile *" |
3116 |
+ |
echo "* (otherwise, an empty PREPFLAG will be used) *" |
3117 |
+ |
echo "**********************************************************" |
3118 |
+ |
echo "" |
3119 |
+ |
PREPFLAG="" |
3120 |
+ |
fi |
3121 |
+ |
|
3122 |
+ |
echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5 |
3123 |
+ |
echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6 |
3124 |
+ |
|
3125 |
+ |
|
3126 |
+ |
ac_ext=f90 |
3127 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3128 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3129 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3130 |
+ |
|
3131 |
+ |
ac_save_ext=$ac_ext |
3132 |
+ |
ac_ext=F90 |
3133 |
+ |
ac_save_F90FLAGS=$F90FLAGS |
3134 |
+ |
|
3135 |
+ |
if test "$PREPFLAG"; then |
3136 |
+ |
F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST" |
3137 |
+ |
fi |
3138 |
+ |
|
3139 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3140 |
+ |
|
3141 |
+ |
|
3142 |
+ |
program main |
3143 |
+ |
|
3144 |
+ |
integer :: i |
3145 |
+ |
i = 1 |
3146 |
+ |
|
3147 |
+ |
|
3148 |
+ |
end program main |
3149 |
+ |
|
3150 |
+ |
_ACEOF |
3151 |
+ |
rm -f conftest.$ac_objext |
3152 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3153 |
+ |
(eval $ac_compile) 2>&5 |
3154 |
+ |
ac_status=$? |
3155 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3156 |
+ |
(exit $ac_status); } && |
3157 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
3158 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3159 |
+ |
(eval $ac_try) 2>&5 |
3160 |
+ |
ac_status=$? |
3161 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3162 |
+ |
(exit $ac_status); }; }; then |
3163 |
+ |
prepflagworks=1 |
3164 |
+ |
else |
3165 |
+ |
echo "$as_me: failed program was:" >&5 |
3166 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3167 |
+ |
|
3168 |
+ |
prepflagworks=0 |
3169 |
+ |
fi |
3170 |
+ |
rm -f conftest.$ac_objext conftest.$ac_ext |
3171 |
+ |
|
3172 |
+ |
F90FLAGS=$ac_save_F90FLAGS |
3173 |
+ |
ac_ext=$ac_save_ext |
3174 |
+ |
ac_ext=c |
3175 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
3176 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3177 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3178 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3179 |
+ |
|
3180 |
+ |
|
3181 |
+ |
|
3182 |
+ |
if test "$prepflagworks" = 1; then |
3183 |
+ |
echo "$as_me:$LINENO: result: yes" >&5 |
3184 |
+ |
echo "${ECHO_T}yes" >&6 |
3185 |
+ |
|
3186 |
+ |
else |
3187 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
3188 |
+ |
echo "${ECHO_T}no" >&6 |
3189 |
+ |
{ { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5 |
3190 |
+ |
echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;} |
3191 |
+ |
{ (exit 1); exit 1; }; } |
3192 |
+ |
fi |
3193 |
+ |
fi |
3194 |
+ |
|
3195 |
+ |
|
3196 |
+ |
|
3197 |
+ |
|
3198 |
+ |
|
3199 |
+ |
# Try to determine native compiler flags that allow us to use F90 suffix |
3200 |
+ |
# for preprocessed f90 source with -D type defines |
3201 |
+ |
|
3202 |
+ |
if test "$ac_test_PREPDEFFLAG" != "set"; then |
3203 |
+ |
PREPDEFFLAG="" |
3204 |
+ |
case "${host_cpu}-${host_os}" in |
3205 |
+ |
|
3206 |
+ |
*linux*) if test "$F90" = ifc; then |
3207 |
+ |
PREPDEFFLAG=" " |
3208 |
+ |
fi;; |
3209 |
+ |
*aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
3210 |
+ |
PREPDEFFLAG="-WF," |
3211 |
+ |
fi;; |
3212 |
+ |
*darwin*) |
3213 |
+ |
if test "$F90" = f90 -o "$F90" = xlf90; then |
3214 |
+ |
PREPDEFFLAG="-WF," |
3215 |
+ |
fi;; |
3216 |
+ |
esac |
3217 |
+ |
|
3218 |
+ |
if test -z "$PREPDEFFLAG"; then |
3219 |
+ |
echo "" |
3220 |
+ |
echo "*************************************************************" |
3221 |
+ |
echo "* WARNING: Don't know the best PREPDEFFLAG for this system *" |
3222 |
+ |
echo "* Use make PREPDEFFLAG=..., or edit the top level Makefile *" |
3223 |
+ |
echo "* (otherwise, an empty PREPDEFFLAG will be used) *" |
3224 |
+ |
echo "*************************************************************" |
3225 |
+ |
echo "" |
3226 |
+ |
PREPDEFFLAG=" " |
3227 |
+ |
fi |
3228 |
+ |
|
3229 |
+ |
echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5 |
3230 |
+ |
echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6 |
3231 |
+ |
|
3232 |
+ |
|
3233 |
+ |
ac_ext=f90 |
3234 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3235 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3236 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3237 |
+ |
|
3238 |
+ |
ac_save_ext=$ac_ext |
3239 |
+ |
ac_ext=F90 |
3240 |
+ |
ac_save_F90FLAGS=$F90FLAGS |
3241 |
+ |
|
3242 |
+ |
if test "$PREPDEFFLAG"; then |
3243 |
+ |
F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST" |
3244 |
+ |
fi |
3245 |
+ |
|
3246 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3247 |
+ |
|
3248 |
+ |
|
3249 |
+ |
program main |
3250 |
+ |
|
3251 |
+ |
integer :: i |
3252 |
+ |
#ifdef TEST |
3253 |
+ |
i = 1 |
3254 |
+ |
#else |
3255 |
+ |
choke me |
3256 |
+ |
#endif |
3257 |
+ |
|
3258 |
+ |
|
3259 |
+ |
end program main |
3260 |
+ |
|
3261 |
+ |
_ACEOF |
3262 |
+ |
rm -f conftest.$ac_objext |
3263 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3264 |
+ |
(eval $ac_compile) 2>&5 |
3265 |
+ |
ac_status=$? |
3266 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3267 |
+ |
(exit $ac_status); } && |
3268 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
3269 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3270 |
+ |
(eval $ac_try) 2>&5 |
3271 |
+ |
ac_status=$? |
3272 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3273 |
+ |
(exit $ac_status); }; }; then |
3274 |
+ |
prepdefflagworks=1 |
3275 |
+ |
else |
3276 |
+ |
echo "$as_me: failed program was:" >&5 |
3277 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3278 |
+ |
|
3279 |
+ |
prepdefflagworks=0 |
3280 |
+ |
fi |
3281 |
+ |
rm -f conftest.$ac_objext conftest.$ac_ext |
3282 |
+ |
|
3283 |
+ |
F90FLAGS=$ac_save_F90FLAGS |
3284 |
+ |
ac_ext=$ac_save_ext |
3285 |
+ |
ac_ext=c |
3286 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
3287 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3288 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3289 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3290 |
+ |
|
3291 |
+ |
|
3292 |
+ |
|
3293 |
+ |
if test "$prepdefflagworks" = 1; then |
3294 |
+ |
echo "$as_me:$LINENO: result: yes" >&5 |
3295 |
+ |
echo "${ECHO_T}yes" >&6 |
3296 |
+ |
|
3297 |
+ |
else |
3298 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
3299 |
+ |
echo "${ECHO_T}no" >&6 |
3300 |
+ |
{ { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5 |
3301 |
+ |
echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;} |
3302 |
+ |
{ (exit 1); exit 1; }; } |
3303 |
+ |
fi |
3304 |
+ |
fi |
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 |
+ |
|
3311 |
+ |
|
3312 |
+ |
|
3313 |
+ |
ac_ext=f90 |
3314 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3315 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3316 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3317 |
+ |
echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5 |
3318 |
+ |
echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6 |
3319 |
+ |
if test "${ac_cv_prog_f90_v+set}" = set; then |
3320 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3321 |
+ |
else |
3322 |
+ |
|
3323 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3324 |
+ |
|
3325 |
+ |
program main |
3326 |
+ |
|
3327 |
+ |
|
3328 |
+ |
end program main |
3329 |
+ |
|
3330 |
+ |
_ACEOF |
3331 |
+ |
rm -f conftest.$ac_objext |
3332 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3333 |
+ |
(eval $ac_compile) 2>&5 |
3334 |
+ |
ac_status=$? |
3335 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3336 |
+ |
(exit $ac_status); } && |
3337 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
3338 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3339 |
+ |
(eval $ac_try) 2>&5 |
3340 |
+ |
ac_status=$? |
3341 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3342 |
+ |
(exit $ac_status); }; }; then |
3343 |
+ |
ac_cv_prog_f90_v= |
3344 |
+ |
# Try some options frequently used verbose output |
3345 |
+ |
for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
3346 |
+ |
ac_ext=f90 |
3347 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3348 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3349 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3350 |
+ |
|
3351 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3352 |
+ |
|
3353 |
+ |
program main |
3354 |
+ |
|
3355 |
+ |
|
3356 |
+ |
end program main |
3357 |
+ |
|
3358 |
+ |
_ACEOF |
3359 |
+ |
|
3360 |
+ |
# Compile and link our simple test program by passing a flag (argument |
3361 |
+ |
# 1 to this macro) to the Fortran 90 compiler in order to get |
3362 |
+ |
# "verbose" output that we can then parse for the Fortran 90 linker |
3363 |
+ |
# flags. |
3364 |
+ |
ac_save_F90FLAGS=$F90FLAGS |
3365 |
+ |
F90FLAGS="$F90FLAGS $ac_verb" |
3366 |
+ |
|
3367 |
+ |
(eval echo $as_me:3367: \"$ac_link\") >&5 |
3368 |
+ |
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
3369 |
+ |
echo "$ac_f90_v_output" >&5 |
3370 |
+ |
F90FLAGS=$ac_save_F90FLAGS |
3371 |
+ |
|
3372 |
+ |
rm -f conftest.* |
3373 |
+ |
ac_ext=f90 |
3374 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3375 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3376 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3377 |
+ |
|
3378 |
+ |
# If we are using xlf then replace all the commas with spaces. |
3379 |
+ |
if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then |
3380 |
+ |
ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'` |
3381 |
+ |
fi |
3382 |
+ |
|
3383 |
+ |
# If we are using Cray Fortran then delete quotes. |
3384 |
+ |
# Use "\"" instead of '"' for font-lock-mode. |
3385 |
+ |
# FIXME: a more general fix for quoted arguments with spaces? |
3386 |
+ |
if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then |
3387 |
+ |
ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"` |
3388 |
+ |
fi |
3389 |
+ |
# look for -l* and *.a constructs in the output |
3390 |
+ |
for ac_arg in $ac_f90_v_output; do |
3391 |
+ |
case $ac_arg in |
3392 |
+ |
[\\/]*.a | ?:[\\/]*.a | -[lLRu]*) |
3393 |
+ |
ac_cv_prog_f90_v=$ac_verb |
3394 |
+ |
break 2 ;; |
3395 |
+ |
esac |
3396 |
+ |
done |
3397 |
+ |
done |
3398 |
+ |
if test -z "$ac_cv_prog_f90_v"; then |
3399 |
+ |
{ echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5 |
3400 |
+ |
echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;} |
3401 |
+ |
fi |
3402 |
+ |
else |
3403 |
+ |
echo "$as_me: failed program was:" >&5 |
3404 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3405 |
+ |
|
3406 |
+ |
{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5 |
3407 |
+ |
echo "$as_me: WARNING: compilation failed" >&2;} |
3408 |
+ |
fi |
3409 |
+ |
rm -f conftest.$ac_objext conftest.$ac_ext |
3410 |
+ |
|
3411 |
+ |
fi |
3412 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5 |
3413 |
+ |
echo "${ECHO_T}$ac_cv_prog_f90_v" >&6 |
3414 |
+ |
echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5 |
3415 |
+ |
echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6 |
3416 |
+ |
if test "${ac_cv_flibs+set}" = set; then |
3417 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3418 |
+ |
else |
3419 |
+ |
if test "x$F90LIBS" != "x"; then |
3420 |
+ |
ac_cv_f90libs="$F90LIBS" # Let the user override the test. |
3421 |
+ |
else |
3422 |
+ |
|
3423 |
+ |
ac_ext=f90 |
3424 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3425 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3426 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3427 |
+ |
|
3428 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3429 |
+ |
|
3430 |
+ |
program main |
3431 |
+ |
|
3432 |
+ |
|
3433 |
+ |
end program main |
3434 |
+ |
|
3435 |
+ |
_ACEOF |
3436 |
+ |
|
3437 |
+ |
# Compile and link our simple test program by passing a flag (argument |
3438 |
+ |
# 1 to this macro) to the Fortran 90 compiler in order to get |
3439 |
+ |
# "verbose" output that we can then parse for the Fortran 90 linker |
3440 |
+ |
# flags. |
3441 |
+ |
ac_save_F90FLAGS=$F90FLAGS |
3442 |
+ |
F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v" |
3443 |
+ |
|
3444 |
+ |
(eval echo $as_me:3444: \"$ac_link\") >&5 |
3445 |
+ |
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
3446 |
+ |
echo "$ac_f90_v_output" >&5 |
3447 |
+ |
F90FLAGS=$ac_save_F90FLAGS |
3448 |
+ |
|
3449 |
+ |
rm -f conftest.* |
3450 |
+ |
ac_ext=f90 |
3451 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3452 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3453 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3454 |
+ |
|
3455 |
+ |
# If we are using xlf then replace all the commas with spaces. |
3456 |
+ |
if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then |
3457 |
+ |
ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'` |
3458 |
+ |
fi |
3459 |
+ |
|
3460 |
+ |
# If we are using Cray Fortran then delete quotes. |
3461 |
+ |
# Use "\"" instead of '"' for font-lock-mode. |
3462 |
+ |
# FIXME: a more general fix for quoted arguments with spaces? |
3463 |
+ |
if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then |
3464 |
+ |
ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"` |
3465 |
+ |
fi |
3466 |
+ |
|
3467 |
+ |
ac_cv_f90libs= |
3468 |
+ |
|
3469 |
+ |
# Save positional arguments (if any) |
3470 |
+ |
ac_save_positional="$@" |
3471 |
+ |
|
3472 |
+ |
set X $ac_f90_v_output |
3473 |
+ |
while test $# != 1; do |
3474 |
+ |
shift |
3475 |
+ |
ac_arg=$1 |
3476 |
+ |
case $ac_arg in |
3477 |
+ |
[\\/]*.a | ?:[\\/]*.a) |
3478 |
+ |
ac_exists=false |
3479 |
+ |
for ac_i in $ac_cv_f90libs; do |
3480 |
+ |
if test x"$ac_arg" = x"$ac_i"; then |
3481 |
+ |
ac_exists=true |
3482 |
+ |
break |
3483 |
+ |
fi |
3484 |
+ |
done |
3485 |
+ |
|
3486 |
+ |
if test x"$ac_exists" = xtrue; then |
3487 |
+ |
: |
3488 |
+ |
else |
3489 |
+ |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
3490 |
+ |
fi |
3491 |
+ |
|
3492 |
+ |
;; |
3493 |
+ |
-bI:*) |
3494 |
+ |
ac_exists=false |
3495 |
+ |
for ac_i in $ac_cv_f90libs; do |
3496 |
+ |
if test x"$ac_arg" = x"$ac_i"; then |
3497 |
+ |
ac_exists=true |
3498 |
+ |
break |
3499 |
+ |
fi |
3500 |
+ |
done |
3501 |
+ |
|
3502 |
+ |
if test x"$ac_exists" = xtrue; then |
3503 |
+ |
: |
3504 |
+ |
else |
3505 |
+ |
if test "$ac_compiler_gnu" = yes; then |
3506 |
+ |
for ac_link_opt in $ac_arg; do |
3507 |
+ |
ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt" |
3508 |
+ |
done |
3509 |
+ |
else |
3510 |
+ |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
3511 |
+ |
fi |
3512 |
+ |
fi |
3513 |
+ |
|
3514 |
+ |
;; |
3515 |
+ |
# Ignore these flags. |
3516 |
+ |
-lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*) |
3517 |
+ |
;; |
3518 |
+ |
-lkernel32) |
3519 |
+ |
test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
3520 |
+ |
;; |
3521 |
+ |
-[LRuY]) |
3522 |
+ |
# These flags, when seen by themselves, take an argument. |
3523 |
+ |
# We remove the space between option and argument and re-iterate |
3524 |
+ |
# unless we find an empty arg or a new option (starting with -) |
3525 |
+ |
case $2 in |
3526 |
+ |
"" | -*);; |
3527 |
+ |
*) |
3528 |
+ |
ac_arg="$ac_arg$2" |
3529 |
+ |
|
3530 |
+ |
shift; shift |
3531 |
+ |
set X $ac_arg "$@" |
3532 |
+ |
;; |
3533 |
+ |
esac |
3534 |
+ |
;; |
3535 |
+ |
-YP,*) |
3536 |
+ |
for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
3537 |
+ |
ac_exists=false |
3538 |
+ |
for ac_i in $ac_cv_f90libs; do |
3539 |
+ |
if test x"$ac_j" = x"$ac_i"; then |
3540 |
+ |
ac_exists=true |
3541 |
+ |
break |
3542 |
+ |
fi |
3543 |
+ |
done |
3544 |
+ |
|
3545 |
+ |
if test x"$ac_exists" = xtrue; then |
3546 |
+ |
: |
3547 |
+ |
else |
3548 |
+ |
ac_arg="$ac_arg $ac_j" |
3549 |
+ |
ac_cv_f90libs="$ac_cv_f90libs $ac_j" |
3550 |
+ |
fi |
3551 |
+ |
|
3552 |
+ |
done |
3553 |
+ |
;; |
3554 |
+ |
-[lLR]*) |
3555 |
+ |
ac_exists=false |
3556 |
+ |
for ac_i in $ac_cv_f90libs; do |
3557 |
+ |
if test x"$ac_arg" = x"$ac_i"; then |
3558 |
+ |
ac_exists=true |
3559 |
+ |
break |
3560 |
+ |
fi |
3561 |
+ |
done |
3562 |
+ |
|
3563 |
+ |
if test x"$ac_exists" = xtrue; then |
3564 |
+ |
: |
3565 |
+ |
else |
3566 |
+ |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
3567 |
+ |
fi |
3568 |
+ |
|
3569 |
+ |
;; |
3570 |
+ |
# Ignore everything else. |
3571 |
+ |
esac |
3572 |
+ |
done |
3573 |
+ |
# restore positional arguments |
3574 |
+ |
set X $ac_save_positional; shift |
3575 |
+ |
|
3576 |
+ |
# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, |
3577 |
+ |
# then we insist that the "run path" must be an absolute path (i.e. it |
3578 |
+ |
# must begin with a "/"). |
3579 |
+ |
case `(uname -sr) 2>/dev/null` in |
3580 |
+ |
"SunOS 5"*) |
3581 |
+ |
ac_ld_run_path=`echo $ac_f90_v_output | |
3582 |
+ |
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
3583 |
+ |
test "x$ac_ld_run_path" != x && |
3584 |
+ |
|
3585 |
+ |
if test "$ac_compiler_gnu" = yes; then |
3586 |
+ |
for ac_link_opt in $ac_ld_run_path; do |
3587 |
+ |
ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt" |
3588 |
+ |
done |
3589 |
+ |
else |
3590 |
+ |
ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path" |
3591 |
+ |
fi |
3592 |
+ |
;; |
3593 |
+ |
esac |
3594 |
+ |
fi # test "x$F90LIBS" = "x" |
3595 |
+ |
|
3596 |
+ |
fi |
3597 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5 |
3598 |
+ |
echo "${ECHO_T}$ac_cv_flibs" >&6 |
3599 |
+ |
F90LIBS="$ac_cv_f90libs" |
3600 |
+ |
|
3601 |
+ |
ac_ext=f90 |
3602 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3603 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3604 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3605 |
+ |
|
3606 |
+ |
|
3607 |
+ |
echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5 |
3608 |
+ |
echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6 |
3609 |
+ |
if test "${ac_cv_f90_mangling+set}" = set; then |
3610 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3611 |
+ |
else |
3612 |
+ |
ac_ext=f90 |
3613 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3614 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3615 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3616 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3617 |
+ |
subroutine foobar() |
3618 |
+ |
return |
3619 |
+ |
end |
3620 |
+ |
subroutine foo_bar() |
3621 |
+ |
return |
3622 |
+ |
end |
3623 |
+ |
_ACEOF |
3624 |
+ |
rm -f conftest.$ac_objext |
3625 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3626 |
+ |
(eval $ac_compile) 2>&5 |
3627 |
+ |
ac_status=$? |
3628 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3629 |
+ |
(exit $ac_status); } && |
3630 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
3631 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3632 |
+ |
(eval $ac_try) 2>&5 |
3633 |
+ |
ac_status=$? |
3634 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3635 |
+ |
(exit $ac_status); }; }; then |
3636 |
+ |
mv conftest.$ac_objext cf90_test.$ac_objext |
3637 |
+ |
|
3638 |
+ |
ac_ext=c |
3639 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
3640 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3641 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3642 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3643 |
+ |
|
3644 |
+ |
ac_save_LIBS=$LIBS |
3645 |
+ |
LIBS="cf90_test.$ac_objext $F90LIBS $LIBS" |
3646 |
+ |
|
3647 |
+ |
ac_success=no |
3648 |
+ |
for ac_foobar in foobar FOOBAR; do |
3649 |
+ |
for ac_underscore in "" "_"; do |
3650 |
+ |
ac_func="$ac_foobar$ac_underscore" |
3651 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3652 |
+ |
#line $LINENO "configure" |
3653 |
+ |
/* confdefs.h. */ |
3654 |
+ |
_ACEOF |
3655 |
+ |
cat confdefs.h >>conftest.$ac_ext |
3656 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
3657 |
+ |
/* end confdefs.h. */ |
3658 |
+ |
|
3659 |
+ |
/* Override any gcc2 internal prototype to avoid an error. */ |
3660 |
+ |
#ifdef __cplusplus |
3661 |
+ |
extern "C" |
3662 |
+ |
#endif |
3663 |
+ |
/* We use char because int might match the return type of a gcc2 |
3664 |
+ |
builtin and then its argument prototype would still apply. */ |
3665 |
+ |
char $ac_func (); |
3666 |
+ |
int |
3667 |
+ |
main () |
3668 |
+ |
{ |
3669 |
+ |
$ac_func (); |
3670 |
+ |
; |
3671 |
+ |
return 0; |
3672 |
+ |
} |
3673 |
+ |
_ACEOF |
3674 |
+ |
rm -f conftest.$ac_objext conftest$ac_exeext |
3675 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3676 |
+ |
(eval $ac_link) 2>&5 |
3677 |
+ |
ac_status=$? |
3678 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3679 |
+ |
(exit $ac_status); } && |
3680 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
3681 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3682 |
+ |
(eval $ac_try) 2>&5 |
3683 |
+ |
ac_status=$? |
3684 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3685 |
+ |
(exit $ac_status); }; }; then |
3686 |
+ |
ac_success=yes; break 2 |
3687 |
+ |
else |
3688 |
+ |
echo "$as_me: failed program was:" >&5 |
3689 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3690 |
+ |
|
3691 |
+ |
fi |
3692 |
+ |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3693 |
+ |
done |
3694 |
+ |
done |
3695 |
+ |
|
3696 |
+ |
if test "$ac_success" = "yes"; then |
3697 |
+ |
case $ac_foobar in |
3698 |
+ |
foobar) |
3699 |
+ |
ac_case=lower |
3700 |
+ |
ac_foo_bar=foo_bar |
3701 |
+ |
;; |
3702 |
+ |
FOOBAR) |
3703 |
+ |
ac_case=upper |
3704 |
+ |
ac_foo_bar=FOO_BAR |
3705 |
+ |
;; |
3706 |
+ |
esac |
3707 |
+ |
|
3708 |
+ |
ac_success_extra=no |
3709 |
+ |
for ac_extra in "" "_"; do |
3710 |
+ |
ac_func="$ac_foo_bar$ac_underscore$ac_extra" |
3711 |
+ |
|
3712 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3713 |
+ |
#line $LINENO "configure" |
3714 |
+ |
/* confdefs.h. */ |
3715 |
+ |
_ACEOF |
3716 |
+ |
cat confdefs.h >>conftest.$ac_ext |
3717 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
3718 |
+ |
/* end confdefs.h. */ |
3719 |
+ |
|
3720 |
+ |
/* Override any gcc2 internal prototype to avoid an error. */ |
3721 |
+ |
#ifdef __cplusplus |
3722 |
+ |
extern "C" |
3723 |
+ |
#endif |
3724 |
+ |
/* We use char because int might match the return type of a gcc2 |
3725 |
+ |
builtin and then its argument prototype would still apply. */ |
3726 |
+ |
char $ac_func (); |
3727 |
+ |
int |
3728 |
+ |
main () |
3729 |
+ |
{ |
3730 |
+ |
$ac_func (); |
3731 |
+ |
; |
3732 |
+ |
return 0; |
3733 |
+ |
} |
3734 |
+ |
_ACEOF |
3735 |
+ |
rm -f conftest.$ac_objext conftest$ac_exeext |
3736 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3737 |
+ |
(eval $ac_link) 2>&5 |
3738 |
+ |
ac_status=$? |
3739 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3740 |
+ |
(exit $ac_status); } && |
3741 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
3742 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3743 |
+ |
(eval $ac_try) 2>&5 |
3744 |
+ |
ac_status=$? |
3745 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3746 |
+ |
(exit $ac_status); }; }; then |
3747 |
+ |
ac_success_extra=yes; break |
3748 |
+ |
else |
3749 |
+ |
echo "$as_me: failed program was:" >&5 |
3750 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3751 |
+ |
|
3752 |
+ |
fi |
3753 |
+ |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3754 |
+ |
done |
3755 |
+ |
|
3756 |
+ |
if test "$ac_success_extra" = "yes"; then |
3757 |
+ |
ac_cv_f90_mangling="$ac_case case" |
3758 |
+ |
if test -z "$ac_underscore"; then |
3759 |
+ |
ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore" |
3760 |
+ |
else |
3761 |
+ |
ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore" |
3762 |
+ |
|
3763 |
+ |
fi |
3764 |
+ |
if test -z "$ac_extra"; then |
3765 |
+ |
ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore" |
3766 |
+ |
else |
3767 |
+ |
ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore" |
3768 |
+ |
fi |
3769 |
+ |
else |
3770 |
+ |
ac_cv_f90_mangling="unknown" |
3771 |
+ |
fi |
3772 |
+ |
else |
3773 |
+ |
ac_cv_f90_mangling="unknown" |
3774 |
+ |
|
3775 |
+ |
fi |
3776 |
+ |
|
3777 |
+ |
LIBS=$ac_save_LIBS |
3778 |
+ |
ac_ext=f90 |
3779 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3780 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3781 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3782 |
+ |
rm -f cf90_test* conftest* |
3783 |
+ |
else |
3784 |
+ |
echo "$as_me: failed program was:" >&5 |
3785 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3786 |
+ |
|
3787 |
+ |
fi |
3788 |
+ |
rm -f conftest.$ac_objext conftest.$ac_ext |
3789 |
+ |
ac_ext=f90 |
3790 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3791 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3792 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3793 |
+ |
|
3794 |
+ |
fi |
3795 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5 |
3796 |
+ |
echo "${ECHO_T}$ac_cv_f90_mangling" >&6 |
3797 |
+ |
|
3798 |
+ |
|
3799 |
+ |
|
3800 |
+ |
case $ac_cv_f90_mangling in |
3801 |
+ |
"lower case, no underscore, no extra underscore") |
3802 |
+ |
cat >>confdefs.h <<\_ACEOF |
3803 |
+ |
#define F90_FUNC(name,NAME) name |
3804 |
+ |
_ACEOF |
3805 |
+ |
|
3806 |
+ |
cat >>confdefs.h <<\_ACEOF |
3807 |
+ |
#define F90_FUNC_(name,NAME) name |
3808 |
+ |
_ACEOF |
3809 |
+ |
;; |
3810 |
+ |
"lower case, no underscore, extra underscore") |
3811 |
+ |
cat >>confdefs.h <<\_ACEOF |
3812 |
+ |
#define F90_FUNC(name,NAME) name |
3813 |
+ |
_ACEOF |
3814 |
+ |
|
3815 |
+ |
cat >>confdefs.h <<\_ACEOF |
3816 |
+ |
#define F90_FUNC_(name,NAME) name ## _ |
3817 |
+ |
_ACEOF |
3818 |
+ |
;; |
3819 |
+ |
"lower case, underscore, no extra underscore") |
3820 |
+ |
cat >>confdefs.h <<\_ACEOF |
3821 |
+ |
#define F90_FUNC(name,NAME) name ## _ |
3822 |
+ |
_ACEOF |
3823 |
+ |
|
3824 |
+ |
cat >>confdefs.h <<\_ACEOF |
3825 |
+ |
#define F90_FUNC_(name,NAME) name ## _ |
3826 |
+ |
_ACEOF |
3827 |
+ |
;; |
3828 |
+ |
"lower case, underscore, extra underscore") |
3829 |
+ |
cat >>confdefs.h <<\_ACEOF |
3830 |
+ |
#define F90_FUNC(name,NAME) name ## _ |
3831 |
+ |
_ACEOF |
3832 |
+ |
|
3833 |
+ |
cat >>confdefs.h <<\_ACEOF |
3834 |
+ |
#define F90_FUNC_(name,NAME) name ## __ |
3835 |
+ |
_ACEOF |
3836 |
+ |
;; |
3837 |
+ |
"upper case, no underscore, no extra underscore") |
3838 |
+ |
cat >>confdefs.h <<\_ACEOF |
3839 |
+ |
#define F90_FUNC(name,NAME) NAME |
3840 |
+ |
_ACEOF |
3841 |
+ |
|
3842 |
+ |
cat >>confdefs.h <<\_ACEOF |
3843 |
+ |
#define F90_FUNC_(name,NAME) NAME |
3844 |
+ |
_ACEOF |
3845 |
+ |
;; |
3846 |
+ |
"upper case, no underscore, extra underscore") |
3847 |
+ |
cat >>confdefs.h <<\_ACEOF |
3848 |
+ |
#define F90_FUNC(name,NAME) NAME |
3849 |
+ |
_ACEOF |
3850 |
+ |
|
3851 |
+ |
cat >>confdefs.h <<\_ACEOF |
3852 |
+ |
#define F90_FUNC_(name,NAME) NAME ## _ |
3853 |
+ |
_ACEOF |
3854 |
+ |
;; |
3855 |
+ |
"upper case, underscore, no extra underscore") |
3856 |
+ |
cat >>confdefs.h <<\_ACEOF |
3857 |
+ |
#define F90_FUNC(name,NAME) NAME ## _ |
3858 |
+ |
_ACEOF |
3859 |
+ |
|
3860 |
+ |
cat >>confdefs.h <<\_ACEOF |
3861 |
+ |
#define F90_FUNC_(name,NAME) NAME ## _ |
3862 |
+ |
_ACEOF |
3863 |
+ |
;; |
3864 |
+ |
"upper case, underscore, extra underscore") |
3865 |
+ |
cat >>confdefs.h <<\_ACEOF |
3866 |
+ |
#define F90_FUNC(name,NAME) NAME ## _ |
3867 |
+ |
_ACEOF |
3868 |
+ |
|
3869 |
+ |
cat >>confdefs.h <<\_ACEOF |
3870 |
+ |
#define F90_FUNC_(name,NAME) NAME ## __ |
3871 |
+ |
_ACEOF |
3872 |
+ |
;; |
3873 |
+ |
*) |
3874 |
+ |
{ echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5 |
3875 |
+ |
echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;} |
3876 |
+ |
;; |
3877 |
+ |
esac |
3878 |
+ |
|
3879 |
+ |
|
3880 |
+ |
|
3881 |
+ |
|
3882 |
+ |
|
3883 |
+ |
echo "$as_me:$LINENO: checking for module suffix" >&5 |
3884 |
+ |
echo $ECHO_N "checking for module suffix... $ECHO_C" >&6 |
3885 |
+ |
rm -f conftest* |
3886 |
+ |
# Intel ifc compiler generates files by the name of work.pc and work.pcl (!) |
3887 |
+ |
rm -f work* |
3888 |
+ |
cat >conftest.f90 <<EOF |
3889 |
+ |
module conftest |
3890 |
+ |
integer n |
3891 |
+ |
parameter (n=1) |
3892 |
+ |
end module conftest |
3893 |
+ |
EOF |
3894 |
+ |
# SGI and absoft compilers generates module name in upper case! |
3895 |
+ |
testname="conftest" |
3896 |
+ |
modcase="lower" |
3897 |
+ |
if $F90 -c conftest.f90 > conftest.out 2>&1 ; then |
3898 |
+ |
MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o` |
3899 |
+ |
MOD=`echo "$MOD" | sed -e 's/conftest\.//g'` |
3900 |
+ |
if test -z "$MOD" ; then |
3901 |
+ |
MOD=`ls CONFTEST* 2>/dev/null \ |
3902 |
+ |
| grep -v CONFTEST.f | grep -v CONFTEST.o` |
3903 |
+ |
MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'` |
3904 |
+ |
if test -n "$MOD" ; then |
3905 |
+ |
testname="CONFTEST" |
3906 |
+ |
modcase="upper" |
3907 |
+ |
fi |
3908 |
+ |
fi |
3909 |
+ |
if test -z "$MOD" ; then |
3910 |
+ |
echo "$as_me:$LINENO: result: unknown" >&5 |
3911 |
+ |
echo "${ECHO_T}unknown" >&6 |
3912 |
+ |
# Use mod if we can't figure it out |
3913 |
+ |
MOD="mod" |
3914 |
+ |
else |
3915 |
+ |
echo "$as_me:$LINENO: result: $MOD" >&5 |
3916 |
+ |
echo "${ECHO_T}$MOD" >&6 |
3917 |
+ |
fi |
3918 |
+ |
if test -s work.pcl ; then |
3919 |
+ |
{ echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5 |
3920 |
+ |
echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;} |
3921 |
+ |
fi |
3922 |
+ |
else |
3923 |
+ |
echo "$as_me:$LINENO: result: unknown" >&5 |
3924 |
+ |
echo "${ECHO_T}unknown" >&6 |
3925 |
+ |
fi |
3926 |
+ |
|
3927 |
+ |
|
3928 |
+ |
|
3929 |
+ |
|
3930 |
+ |
|
3931 |
+ |
# Check for module include path (some use -I, some (Solaris) use -M, some |
3932 |
+ |
# (absoft) use -p). |
3933 |
+ |
# Intel compilers use a wierd system: -cl,filename.pcl . If no file is |
3934 |
+ |
# specified, work.pcl and work.pc are created. However, if you specify |
3935 |
+ |
# a file, it must contain a the name of a file ending in .pc . Ugh! |
3936 |
+ |
# Use the module made above |
3937 |
+ |
echo "$as_me:$LINENO: checking for module directory path flag" >&5 |
3938 |
+ |
echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6 |
3939 |
+ |
rm -f conftest* |
3940 |
+ |
# Intel ifc compiler generates files by the name of work.pc and work.pcl (!) |
3941 |
+ |
rm -f work* |
3942 |
+ |
cat >conftest.f90 <<EOF |
3943 |
+ |
module conftest |
3944 |
+ |
integer n |
3945 |
+ |
parameter (n=1) |
3946 |
+ |
end module conftest |
3947 |
+ |
EOF |
3948 |
+ |
# SGI and absoft compilers generates module name in upper case! |
3949 |
+ |
testname="conftest" |
3950 |
+ |
if $F90 -c conftest.f90 > conftest.out 2>&1 ; then |
3951 |
+ |
mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o` |
3952 |
+ |
mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'` |
3953 |
+ |
if test -n "$mod" ; then |
3954 |
+ |
testname="CONFTEST" |
3955 |
+ |
fi |
3956 |
+ |
madedir=0 |
3957 |
+ |
if test ! -d conf ; then mkdir conf ; madedir=1; fi |
3958 |
+ |
cp $testname.$MOD conf |
3959 |
+ |
rm -f conftest* CONFTEST* |
3960 |
+ |
cat >conftest1.f90 <<EOF |
3961 |
+ |
program main |
3962 |
+ |
use conftest |
3963 |
+ |
print *, n |
3964 |
+ |
end |
3965 |
+ |
EOF |
3966 |
+ |
F90_WORK_FILES_ARG="" |
3967 |
+ |
F90MODINCSPEC="" |
3968 |
+ |
if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then |
3969 |
+ |
MODDIRFLAG="-I" |
3970 |
+ |
F90MODINCSPEC="-I<dir>" |
3971 |
+ |
echo "$as_me:$LINENO: result: -I" >&5 |
3972 |
+ |
echo "${ECHO_T}-I" >&6 |
3973 |
+ |
elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then |
3974 |
+ |
MODDIRFLAG="-M" |
3975 |
+ |
F90MODINCSPEC="-M<dir>" |
3976 |
+ |
echo "$as_me:$LINENO: result: -M" >&5 |
3977 |
+ |
echo "${ECHO_T}-M" >&6 |
3978 |
+ |
elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then |
3979 |
+ |
MODDIRFLAG="-p" |
3980 |
+ |
F90MODINCSPEC="-p<dir>" |
3981 |
+ |
echo "$as_me:$LINENO: result: -p" >&5 |
3982 |
+ |
echo "${ECHO_T}-p" >&6 |
3983 |
+ |
elif test -s work.pc ; then |
3984 |
+ |
cp work.pc conf/mpimod.pc |
3985 |
+ |
echo "mpimod.pc" > conf/mpimod.pcl |
3986 |
+ |
echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl |
3987 |
+ |
if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then |
3988 |
+ |
MODDIRFLAG='-cl,mpimod.pcl' |
3989 |
+ |
echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5 |
3990 |
+ |
echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6 |
3991 |
+ |
F90_WORK_FILES_ARG="-cl,mpimod.pcl" |
3992 |
+ |
F90MODINCSPEC="-cl,<dir>/<file>mod.pcl" |
3993 |
+ |
|
3994 |
+ |
else |
3995 |
+ |
# The version of the Intel compiler that I have refuses to let |
3996 |
+ |
# you put the "work catalog" list anywhere but the current |
3997 |
+ |
# directory. For example, you cannot in |
3998 |
+ |
: |
3999 |
+ |
fi |
4000 |
+ |
fi |
4001 |
+ |
if test -z "MODDIRFLAG" ; then |
4002 |
+ |
echo "$as_me:$LINENO: result: unknown" >&5 |
4003 |
+ |
echo "${ECHO_T}unknown" >&6 |
4004 |
+ |
fi |
4005 |
+ |
|
4006 |
+ |
|
4007 |
+ |
rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod* |
4008 |
+ |
if test $madedir = 1 ; then rmdir conf ; fi |
4009 |
+ |
fi |
4010 |
+ |
|
4011 |
+ |
|
4012 |
+ |
|
4013 |
+ |
|
4014 |
+ |
case $debug in |
4015 |
+ |
1) |
4016 |
+ |
;; |
4017 |
+ |
*) |
4018 |
+ |
|
4019 |
+ |
|
4020 |
+ |
|
4021 |
+ |
|
4022 |
|
# Try to determine "good" native compiler flags if none specified on command |
4023 |
|
# line |
4024 |
|
if test "$ac_test_CFLAGS" != "set"; then |
4441 |
|
echo "********************************************************" |
4442 |
|
echo "" |
4443 |
|
CFLAGS="" |
2986 |
– |
|
2987 |
– |
fi |
2988 |
– |
|
2989 |
– |
|
2990 |
– |
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 |
4444 |
|
|
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 |
3065 |
– |
|
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 |
4445 |
|
fi |
4446 |
|
|
3077 |
– |
test -n "$ac_ct_CXX" && break |
3078 |
– |
done |
3079 |
– |
test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
4447 |
|
|
3081 |
– |
CXX=$ac_ct_CXX |
4448 |
|
fi |
4449 |
|
|
4450 |
|
|
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); } |
4451 |
|
|
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. */ |
4452 |
|
|
3118 |
– |
int |
3119 |
– |
main () |
3120 |
– |
{ |
3121 |
– |
#ifndef __GNUC__ |
3122 |
– |
choke me |
3123 |
– |
#endif |
4453 |
|
|
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 |
– |
|
4454 |
|
# Try to determine "good" native compiler flags if none specified on command |
4455 |
|
# line |
4456 |
|
if test "$ac_test_CXXFLAGS" != "set"; then |
4864 |
|
echo "**********************************************************" |
4865 |
|
echo "" |
4866 |
|
CXXFLAGS="" |
3729 |
– |
|
3730 |
– |
fi |
3731 |
– |
|
3732 |
– |
|
3733 |
– |
fi |
4867 |
|
|
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 |
– |
|
4868 |
|
fi |
3767 |
– |
fi |
3768 |
– |
F90=$ac_cv_prog_F90 |
3769 |
– |
if test -n "$F90"; then |
3770 |
– |
echo "$as_me:$LINENO: result: $F90" >&5 |
3771 |
– |
echo "${ECHO_T}$F90" >&6 |
3772 |
– |
else |
3773 |
– |
echo "$as_me:$LINENO: result: no" >&5 |
3774 |
– |
echo "${ECHO_T}no" >&6 |
3775 |
– |
fi |
3776 |
– |
|
3777 |
– |
test -n "$F90" && break |
3778 |
– |
done |
3779 |
– |
fi |
3780 |
– |
if test -z "$F90"; then |
3781 |
– |
ac_ct_F90=$F90 |
3782 |
– |
for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
3783 |
– |
do |
3784 |
– |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3785 |
– |
set dummy $ac_prog; ac_word=$2 |
3786 |
– |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3787 |
– |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3788 |
– |
if test "${ac_cv_prog_ac_ct_F90+set}" = set; then |
3789 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3790 |
– |
else |
3791 |
– |
if test -n "$ac_ct_F90"; then |
3792 |
– |
ac_cv_prog_ac_ct_F90="$ac_ct_F90" # Let the user override the test. |
3793 |
– |
else |
3794 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3795 |
– |
for as_dir in $PATH |
3796 |
– |
do |
3797 |
– |
IFS=$as_save_IFS |
3798 |
– |
test -z "$as_dir" && as_dir=. |
3799 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
3800 |
– |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3801 |
– |
ac_cv_prog_ac_ct_F90="$ac_prog" |
3802 |
– |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3803 |
– |
break 2 |
3804 |
– |
fi |
3805 |
– |
done |
3806 |
– |
done |
3807 |
– |
|
3808 |
– |
fi |
3809 |
– |
fi |
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 |
3818 |
– |
|
3819 |
– |
test -n "$ac_ct_F90" && break |
3820 |
– |
done |
3821 |
– |
|
3822 |
– |
F90=$ac_ct_F90 |
3823 |
– |
fi |
3824 |
– |
|
3825 |
– |
|
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 |
4869 |
|
|
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 |
4870 |
|
|
4871 |
|
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 |
4872 |
|
|
4873 |
|
|
4874 |
|
|
4876 |
|
|
4877 |
|
# Try to determine "good" native compiler flags if none specified on command |
4878 |
|
# line |
4879 |
< |
if test "$ac_test_F90FLAGS" != "set"; then |
4879 |
> |
|
4880 |
> |
if test x"$F90FLAGS" = x ; then |
4881 |
|
F90FLAGS="" |
4882 |
|
case "${host_cpu}-${host_os}" in |
4883 |
|
|
4957 |
|
ac_guessed_f90flags=no |
4958 |
|
fi |
4959 |
|
rm -f conftest* |
4960 |
< |
ac_ext=c |
4961 |
< |
ac_cpp='$CPP $CPPFLAGS' |
4962 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4963 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3969 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4960 |
> |
ac_ext=f90 |
4961 |
> |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4962 |
> |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4963 |
> |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4964 |
|
|
4965 |
|
|
4966 |
|
fi |
4980 |
|
echo "**********************************************************" |
4981 |
|
echo "" |
4982 |
|
F90FLAGS="" |
3989 |
– |
|
3990 |
– |
fi |
3991 |
– |
|
3992 |
– |
|
3993 |
– |
fi |
3994 |
– |
|
3995 |
– |
|
3996 |
– |
|
3997 |
– |
|
3998 |
– |
|
3999 |
– |
# Try to determine native compiler flags that allow us to use F90 suffix |
4000 |
– |
# for preprocessed f90 source. |
4001 |
– |
|
4002 |
– |
if test "$ac_test_PREPFLAG" != "set"; then |
4003 |
– |
PREPFLAG="" |
4004 |
– |
case "${host_cpu}-${host_os}" in |
4005 |
– |
|
4006 |
– |
*linux*) if test "$F90" = ifc; then |
4007 |
– |
PREPFLAG="-fpp1 " |
4008 |
– |
fi;; |
4009 |
– |
*aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
4010 |
– |
PREPFLAG="-qsuffix=cpp=F90 " |
4011 |
– |
fi;; |
4012 |
– |
*darwin*) |
4013 |
– |
if test "$F90" = f90 -o "$F90" = xlf90; then |
4014 |
– |
PREPFLAG="-qsuffix=cpp=F90 " |
4015 |
– |
fi;; |
4016 |
– |
esac |
4017 |
– |
|
4018 |
– |
if test -z "$PREPFLAG"; then |
4019 |
– |
echo "" |
4020 |
– |
echo "**********************************************************" |
4021 |
– |
echo "* WARNING: Don't know the best PREPFLAG for this system *" |
4022 |
– |
echo "* Use make PREPFLAG=..., or edit the top level Makefile *" |
4023 |
– |
echo "* (otherwise, an empty PREPFLAG will be used) *" |
4024 |
– |
echo "**********************************************************" |
4025 |
– |
echo "" |
4026 |
– |
PREPFLAG="" |
4027 |
– |
fi |
4028 |
– |
|
4029 |
– |
echo "$as_me:$LINENO: checking to make sure F90 preprocessor flag works" >&5 |
4030 |
– |
echo $ECHO_N "checking to make sure F90 preprocessor flag works... $ECHO_C" >&6 |
4031 |
– |
|
4032 |
– |
|
4033 |
– |
ac_ext=f90 |
4034 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4035 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4036 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4037 |
– |
|
4038 |
– |
ac_save_ext=$ac_ext |
4039 |
– |
ac_ext=F90 |
4040 |
– |
ac_save_F90FLAGS=$F90FLAGS |
4041 |
– |
|
4042 |
– |
if test "$PREPFLAG"; then |
4043 |
– |
F90FLAGS="${F90FLAGS} ${PREPFLAG}-DTEST" |
4044 |
– |
fi |
4045 |
– |
|
4046 |
– |
cat >conftest.$ac_ext <<_ACEOF |
4047 |
– |
|
4048 |
– |
|
4049 |
– |
program main |
4050 |
– |
|
4051 |
– |
integer :: i |
4052 |
– |
i = 1 |
4053 |
– |
|
4054 |
– |
|
4055 |
– |
end program main |
4056 |
– |
|
4057 |
– |
_ACEOF |
4058 |
– |
rm -f conftest.$ac_objext |
4059 |
– |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4060 |
– |
(eval $ac_compile) 2>&5 |
4061 |
– |
ac_status=$? |
4062 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4063 |
– |
(exit $ac_status); } && |
4064 |
– |
{ ac_try='test -s conftest.$ac_objext' |
4065 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4066 |
– |
(eval $ac_try) 2>&5 |
4067 |
– |
ac_status=$? |
4068 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4069 |
– |
(exit $ac_status); }; }; then |
4070 |
– |
prepflagworks=1 |
4071 |
– |
else |
4072 |
– |
echo "$as_me: failed program was:" >&5 |
4073 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
4074 |
– |
|
4075 |
– |
prepflagworks=0 |
4076 |
– |
fi |
4077 |
– |
rm -f conftest.$ac_objext conftest.$ac_ext |
4078 |
– |
|
4079 |
– |
F90FLAGS=$ac_save_F90FLAGS |
4080 |
– |
ac_ext=$ac_save_ext |
4081 |
– |
ac_ext=c |
4082 |
– |
ac_cpp='$CPP $CPPFLAGS' |
4083 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4084 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4085 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4983 |
|
|
4087 |
– |
|
4088 |
– |
|
4089 |
– |
if test "$prepflagworks" = 1; then |
4090 |
– |
echo "$as_me:$LINENO: result: yes" >&5 |
4091 |
– |
echo "${ECHO_T}yes" >&6 |
4092 |
– |
|
4093 |
– |
else |
4094 |
– |
echo "$as_me:$LINENO: result: no" >&5 |
4095 |
– |
echo "${ECHO_T}no" >&6 |
4096 |
– |
{ { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor flag" >&5 |
4097 |
– |
echo "$as_me: error: Can't figure out working Fortran90 preprocessor flag" >&2;} |
4098 |
– |
{ (exit 1); exit 1; }; } |
4099 |
– |
fi |
4984 |
|
fi |
4985 |
|
|
4986 |
|
|
4103 |
– |
|
4104 |
– |
|
4105 |
– |
|
4106 |
– |
# Try to determine native compiler flags that allow us to use F90 suffix |
4107 |
– |
# for preprocessed f90 source with -D type defines |
4108 |
– |
|
4109 |
– |
if test "$ac_test_PREPDEFFLAG" != "set"; then |
4110 |
– |
PREPDEFFLAG="" |
4111 |
– |
case "${host_cpu}-${host_os}" in |
4112 |
– |
|
4113 |
– |
*linux*) if test "$F90" = ifc; then |
4114 |
– |
PREPDEFFLAG=" " |
4115 |
– |
fi;; |
4116 |
– |
*aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
4117 |
– |
PREPDEFFLAG="-WF," |
4118 |
– |
fi;; |
4119 |
– |
*darwin*) |
4120 |
– |
if test "$F90" = f90 -o "$F90" = xlf90; then |
4121 |
– |
PREPDEFFLAG="-WF," |
4122 |
– |
fi;; |
4123 |
– |
esac |
4124 |
– |
|
4125 |
– |
if test -z "$PREPDEFFLAG"; then |
4126 |
– |
echo "" |
4127 |
– |
echo "*************************************************************" |
4128 |
– |
echo "* WARNING: Don't know the best PREPDEFFLAG for this system *" |
4129 |
– |
echo "* Use make PREPDEFFLAG=..., or edit the top level Makefile *" |
4130 |
– |
echo "* (otherwise, an empty PREPDEFFLAG will be used) *" |
4131 |
– |
echo "*************************************************************" |
4132 |
– |
echo "" |
4133 |
– |
PREPDEFFLAG=" " |
4134 |
– |
fi |
4135 |
– |
|
4136 |
– |
echo "$as_me:$LINENO: checking to make sure F90 preprocessor define flag works" >&5 |
4137 |
– |
echo $ECHO_N "checking to make sure F90 preprocessor define flag works... $ECHO_C" >&6 |
4138 |
– |
|
4139 |
– |
|
4140 |
– |
ac_ext=f90 |
4141 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4142 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4143 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4144 |
– |
|
4145 |
– |
ac_save_ext=$ac_ext |
4146 |
– |
ac_ext=F90 |
4147 |
– |
ac_save_F90FLAGS=$F90FLAGS |
4148 |
– |
|
4149 |
– |
if test "$PREPDEFFLAG"; then |
4150 |
– |
F90FLAGS="${F90FLAGS} ${PREPFLAG} ${PREPDEFFLAG}-DTEST" |
4987 |
|
fi |
4988 |
|
|
4989 |
< |
cat >conftest.$ac_ext <<_ACEOF |
4990 |
< |
|
4155 |
< |
|
4156 |
< |
program main |
4157 |
< |
|
4158 |
< |
integer :: i |
4159 |
< |
#ifdef TEST |
4160 |
< |
i = 1 |
4161 |
< |
#else |
4162 |
< |
choke me |
4163 |
< |
#endif |
4164 |
< |
|
4165 |
< |
|
4166 |
< |
end program main |
4167 |
< |
|
4168 |
< |
_ACEOF |
4169 |
< |
rm -f conftest.$ac_objext |
4170 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4171 |
< |
(eval $ac_compile) 2>&5 |
4172 |
< |
ac_status=$? |
4173 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4174 |
< |
(exit $ac_status); } && |
4175 |
< |
{ ac_try='test -s conftest.$ac_objext' |
4176 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4177 |
< |
(eval $ac_try) 2>&5 |
4178 |
< |
ac_status=$? |
4179 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4180 |
< |
(exit $ac_status); }; }; then |
4181 |
< |
prepdefflagworks=1 |
4182 |
< |
else |
4183 |
< |
echo "$as_me: failed program was:" >&5 |
4184 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
4185 |
< |
|
4186 |
< |
prepdefflagworks=0 |
4187 |
< |
fi |
4188 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
4189 |
< |
|
4190 |
< |
F90FLAGS=$ac_save_F90FLAGS |
4191 |
< |
ac_ext=$ac_save_ext |
4192 |
< |
ac_ext=c |
4193 |
< |
ac_cpp='$CPP $CPPFLAGS' |
4194 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4195 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4196 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4197 |
< |
|
4198 |
< |
|
4199 |
< |
|
4200 |
< |
if test "$prepdefflagworks" = 1; then |
4201 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
4202 |
< |
echo "${ECHO_T}yes" >&6 |
4203 |
< |
|
4204 |
< |
else |
4205 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
4206 |
< |
echo "${ECHO_T}no" >&6 |
4207 |
< |
{ { echo "$as_me:$LINENO: error: Can't figure out working Fortran90 preprocessor define flag" >&5 |
4208 |
< |
echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;} |
4209 |
< |
{ (exit 1); exit 1; }; } |
4210 |
< |
fi |
4211 |
< |
fi |
4989 |
> |
;; |
4990 |
> |
esac |
4991 |
|
|
4992 |
|
# Find a good install program. We prefer a C program (faster), |
4993 |
|
# so one script is as good as another. But avoid the broken or |
5227 |
|
done |
5228 |
|
test -n "$YACC" || YACC="yacc" |
5229 |
|
|
4451 |
– |
|
5230 |
|
for ac_prog in flex lex |
5231 |
|
do |
5232 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
5278 |
|
ac_check_lib_save_LIBS=$LIBS |
5279 |
|
LIBS="-lfl $LIBS" |
5280 |
|
cat >conftest.$ac_ext <<_ACEOF |
5281 |
< |
#line $LINENO "configure" |
5282 |
< |
/* confdefs.h. */ |
4505 |
< |
_ACEOF |
4506 |
< |
cat confdefs.h >>conftest.$ac_ext |
4507 |
< |
cat >>conftest.$ac_ext <<_ACEOF |
4508 |
< |
/* end confdefs.h. */ |
5281 |
> |
|
5282 |
> |
program main |
5283 |
|
|
5284 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
5285 |
< |
#ifdef __cplusplus |
5286 |
< |
extern "C" |
4513 |
< |
#endif |
4514 |
< |
/* We use char because int might match the return type of a gcc2 |
4515 |
< |
builtin and then its argument prototype would still apply. */ |
4516 |
< |
char yywrap (); |
4517 |
< |
int |
4518 |
< |
main () |
4519 |
< |
{ |
4520 |
< |
yywrap (); |
4521 |
< |
; |
4522 |
< |
return 0; |
4523 |
< |
} |
5284 |
> |
call yywrap |
5285 |
> |
end program main |
5286 |
> |
|
5287 |
|
_ACEOF |
5288 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5289 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5320 |
|
ac_check_lib_save_LIBS=$LIBS |
5321 |
|
LIBS="-ll $LIBS" |
5322 |
|
cat >conftest.$ac_ext <<_ACEOF |
4560 |
– |
#line $LINENO "configure" |
4561 |
– |
/* confdefs.h. */ |
4562 |
– |
_ACEOF |
4563 |
– |
cat confdefs.h >>conftest.$ac_ext |
4564 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
4565 |
– |
/* end confdefs.h. */ |
5323 |
|
|
5324 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
5325 |
< |
#ifdef __cplusplus |
5326 |
< |
extern "C" |
5327 |
< |
#endif |
5328 |
< |
/* We use char because int might match the return type of a gcc2 |
4572 |
< |
builtin and then its argument prototype would still apply. */ |
4573 |
< |
char yywrap (); |
4574 |
< |
int |
4575 |
< |
main () |
4576 |
< |
{ |
4577 |
< |
yywrap (); |
4578 |
< |
; |
4579 |
< |
return 0; |
4580 |
< |
} |
5324 |
> |
program main |
5325 |
> |
|
5326 |
> |
call yywrap |
5327 |
> |
end program main |
5328 |
> |
|
5329 |
|
_ACEOF |
5330 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5331 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5537 |
|
exit 1 |
5538 |
|
fi |
5539 |
|
|
4792 |
– |
ac_ext=f90 |
4793 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4794 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4795 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4796 |
– |
|
4797 |
– |
|
4798 |
– |
|
4799 |
– |
ac_ext=f90 |
4800 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4801 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4802 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4803 |
– |
echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5 |
4804 |
– |
echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6 |
4805 |
– |
if test "${ac_cv_prog_f90_v+set}" = set; then |
4806 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4807 |
– |
else |
4808 |
– |
|
4809 |
– |
cat >conftest.$ac_ext <<_ACEOF |
4810 |
– |
|
4811 |
– |
program main |
4812 |
– |
|
4813 |
– |
|
4814 |
– |
end program main |
4815 |
– |
|
4816 |
– |
_ACEOF |
4817 |
– |
rm -f conftest.$ac_objext |
4818 |
– |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4819 |
– |
(eval $ac_compile) 2>&5 |
4820 |
– |
ac_status=$? |
4821 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4822 |
– |
(exit $ac_status); } && |
4823 |
– |
{ ac_try='test -s conftest.$ac_objext' |
4824 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4825 |
– |
(eval $ac_try) 2>&5 |
4826 |
– |
ac_status=$? |
4827 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4828 |
– |
(exit $ac_status); }; }; then |
4829 |
– |
ac_cv_prog_f90_v= |
4830 |
– |
# Try some options frequently used verbose output |
4831 |
– |
for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
4832 |
– |
ac_ext=f90 |
4833 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4834 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4835 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4836 |
– |
|
4837 |
– |
cat >conftest.$ac_ext <<_ACEOF |
4838 |
– |
|
4839 |
– |
program main |
4840 |
– |
|
4841 |
– |
|
4842 |
– |
end program main |
4843 |
– |
|
4844 |
– |
_ACEOF |
4845 |
– |
|
4846 |
– |
# Compile and link our simple test program by passing a flag (argument |
4847 |
– |
# 1 to this macro) to the Fortran 90 compiler in order to get |
4848 |
– |
# "verbose" output that we can then parse for the Fortran 90 linker |
4849 |
– |
# flags. |
4850 |
– |
ac_save_F90FLAGS=$F90FLAGS |
4851 |
– |
F90FLAGS="$F90FLAGS $ac_verb" |
4852 |
– |
|
4853 |
– |
(eval echo $as_me:4853: \"$ac_link\") >&5 |
4854 |
– |
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
4855 |
– |
echo "$ac_f90_v_output" >&5 |
4856 |
– |
F90FLAGS=$ac_save_F90FLAGS |
4857 |
– |
|
4858 |
– |
rm -f conftest.* |
4859 |
– |
ac_ext=f90 |
4860 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4861 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4862 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4863 |
– |
|
4864 |
– |
# If we are using xlf then replace all the commas with spaces. |
4865 |
– |
if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then |
4866 |
– |
ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'` |
4867 |
– |
fi |
4868 |
– |
|
4869 |
– |
# If we are using Cray Fortran then delete quotes. |
4870 |
– |
# Use "\"" instead of '"' for font-lock-mode. |
4871 |
– |
# FIXME: a more general fix for quoted arguments with spaces? |
4872 |
– |
if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then |
4873 |
– |
ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"` |
4874 |
– |
fi |
4875 |
– |
# look for -l* and *.a constructs in the output |
4876 |
– |
for ac_arg in $ac_f90_v_output; do |
4877 |
– |
case $ac_arg in |
4878 |
– |
[\\/]*.a | ?:[\\/]*.a | -[lLRu]*) |
4879 |
– |
ac_cv_prog_f90_v=$ac_verb |
4880 |
– |
break 2 ;; |
4881 |
– |
esac |
4882 |
– |
done |
4883 |
– |
done |
4884 |
– |
if test -z "$ac_cv_prog_f90_v"; then |
4885 |
– |
{ echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5 |
4886 |
– |
echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;} |
4887 |
– |
fi |
4888 |
– |
else |
4889 |
– |
echo "$as_me: failed program was:" >&5 |
4890 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
4891 |
– |
|
4892 |
– |
{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5 |
4893 |
– |
echo "$as_me: WARNING: compilation failed" >&2;} |
4894 |
– |
fi |
4895 |
– |
rm -f conftest.$ac_objext conftest.$ac_ext |
4896 |
– |
|
4897 |
– |
fi |
4898 |
– |
echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5 |
4899 |
– |
echo "${ECHO_T}$ac_cv_prog_f90_v" >&6 |
4900 |
– |
echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5 |
4901 |
– |
echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6 |
4902 |
– |
if test "${ac_cv_flibs+set}" = set; then |
4903 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4904 |
– |
else |
4905 |
– |
if test "x$F90LIBS" != "x"; then |
4906 |
– |
ac_cv_f90libs="$F90LIBS" # Let the user override the test. |
4907 |
– |
else |
4908 |
– |
|
4909 |
– |
ac_ext=f90 |
4910 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4911 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4912 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4913 |
– |
|
4914 |
– |
cat >conftest.$ac_ext <<_ACEOF |
4915 |
– |
|
4916 |
– |
program main |
4917 |
– |
|
4918 |
– |
|
4919 |
– |
end program main |
4920 |
– |
|
4921 |
– |
_ACEOF |
4922 |
– |
|
4923 |
– |
# Compile and link our simple test program by passing a flag (argument |
4924 |
– |
# 1 to this macro) to the Fortran 90 compiler in order to get |
4925 |
– |
# "verbose" output that we can then parse for the Fortran 90 linker |
4926 |
– |
# flags. |
4927 |
– |
ac_save_F90FLAGS=$F90FLAGS |
4928 |
– |
F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v" |
4929 |
– |
|
4930 |
– |
(eval echo $as_me:4930: \"$ac_link\") >&5 |
4931 |
– |
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
4932 |
– |
echo "$ac_f90_v_output" >&5 |
4933 |
– |
F90FLAGS=$ac_save_F90FLAGS |
4934 |
– |
|
4935 |
– |
rm -f conftest.* |
4936 |
– |
ac_ext=f90 |
4937 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4938 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4939 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4940 |
– |
|
4941 |
– |
# If we are using xlf then replace all the commas with spaces. |
4942 |
– |
if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then |
4943 |
– |
ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'` |
4944 |
– |
fi |
4945 |
– |
|
4946 |
– |
# If we are using Cray Fortran then delete quotes. |
4947 |
– |
# Use "\"" instead of '"' for font-lock-mode. |
4948 |
– |
# FIXME: a more general fix for quoted arguments with spaces? |
4949 |
– |
if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then |
4950 |
– |
ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"` |
4951 |
– |
fi |
4952 |
– |
|
4953 |
– |
ac_cv_f90libs= |
4954 |
– |
|
4955 |
– |
# Save positional arguments (if any) |
4956 |
– |
ac_save_positional="$@" |
4957 |
– |
|
4958 |
– |
set X $ac_f90_v_output |
4959 |
– |
while test $# != 1; do |
4960 |
– |
shift |
4961 |
– |
ac_arg=$1 |
4962 |
– |
case $ac_arg in |
4963 |
– |
[\\/]*.a | ?:[\\/]*.a) |
4964 |
– |
ac_exists=false |
4965 |
– |
for ac_i in $ac_cv_f90libs; do |
4966 |
– |
if test x"$ac_arg" = x"$ac_i"; then |
4967 |
– |
ac_exists=true |
4968 |
– |
break |
4969 |
– |
fi |
4970 |
– |
done |
4971 |
– |
|
4972 |
– |
if test x"$ac_exists" = xtrue; then |
4973 |
– |
: |
4974 |
– |
else |
4975 |
– |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
4976 |
– |
fi |
4977 |
– |
|
4978 |
– |
;; |
4979 |
– |
-bI:*) |
4980 |
– |
ac_exists=false |
4981 |
– |
for ac_i in $ac_cv_f90libs; do |
4982 |
– |
if test x"$ac_arg" = x"$ac_i"; then |
4983 |
– |
ac_exists=true |
4984 |
– |
break |
4985 |
– |
fi |
4986 |
– |
done |
4987 |
– |
|
4988 |
– |
if test x"$ac_exists" = xtrue; then |
4989 |
– |
: |
4990 |
– |
else |
4991 |
– |
if test "$ac_compiler_gnu" = yes; then |
4992 |
– |
for ac_link_opt in $ac_arg; do |
4993 |
– |
ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt" |
4994 |
– |
done |
4995 |
– |
else |
4996 |
– |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
4997 |
– |
fi |
4998 |
– |
fi |
4999 |
– |
|
5000 |
– |
;; |
5001 |
– |
# Ignore these flags. |
5002 |
– |
-lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*) |
5003 |
– |
;; |
5004 |
– |
-lkernel32) |
5005 |
– |
test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
5006 |
– |
;; |
5007 |
– |
-[LRuY]) |
5008 |
– |
# These flags, when seen by themselves, take an argument. |
5009 |
– |
# We remove the space between option and argument and re-iterate |
5010 |
– |
# unless we find an empty arg or a new option (starting with -) |
5011 |
– |
case $2 in |
5012 |
– |
"" | -*);; |
5013 |
– |
*) |
5014 |
– |
ac_arg="$ac_arg$2" |
5015 |
– |
|
5016 |
– |
shift; shift |
5017 |
– |
set X $ac_arg "$@" |
5018 |
– |
;; |
5019 |
– |
esac |
5020 |
– |
;; |
5021 |
– |
-YP,*) |
5022 |
– |
for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
5023 |
– |
ac_exists=false |
5024 |
– |
for ac_i in $ac_cv_f90libs; do |
5025 |
– |
if test x"$ac_j" = x"$ac_i"; then |
5026 |
– |
ac_exists=true |
5027 |
– |
break |
5028 |
– |
fi |
5029 |
– |
done |
5030 |
– |
|
5031 |
– |
if test x"$ac_exists" = xtrue; then |
5032 |
– |
: |
5033 |
– |
else |
5034 |
– |
ac_arg="$ac_arg $ac_j" |
5035 |
– |
ac_cv_f90libs="$ac_cv_f90libs $ac_j" |
5036 |
– |
fi |
5037 |
– |
|
5038 |
– |
done |
5039 |
– |
;; |
5040 |
– |
-[lLR]*) |
5041 |
– |
ac_exists=false |
5042 |
– |
for ac_i in $ac_cv_f90libs; do |
5043 |
– |
if test x"$ac_arg" = x"$ac_i"; then |
5044 |
– |
ac_exists=true |
5045 |
– |
break |
5046 |
– |
fi |
5047 |
– |
done |
5048 |
– |
|
5049 |
– |
if test x"$ac_exists" = xtrue; then |
5050 |
– |
: |
5051 |
– |
else |
5052 |
– |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
5053 |
– |
fi |
5054 |
– |
|
5055 |
– |
;; |
5056 |
– |
# Ignore everything else. |
5057 |
– |
esac |
5058 |
– |
done |
5059 |
– |
# restore positional arguments |
5060 |
– |
set X $ac_save_positional; shift |
5061 |
– |
|
5062 |
– |
# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, |
5063 |
– |
# then we insist that the "run path" must be an absolute path (i.e. it |
5064 |
– |
# must begin with a "/"). |
5065 |
– |
case `(uname -sr) 2>/dev/null` in |
5066 |
– |
"SunOS 5"*) |
5067 |
– |
ac_ld_run_path=`echo $ac_f90_v_output | |
5068 |
– |
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
5069 |
– |
test "x$ac_ld_run_path" != x && |
5070 |
– |
|
5071 |
– |
if test "$ac_compiler_gnu" = yes; then |
5072 |
– |
for ac_link_opt in $ac_ld_run_path; do |
5073 |
– |
ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt" |
5074 |
– |
done |
5075 |
– |
else |
5076 |
– |
ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path" |
5077 |
– |
fi |
5078 |
– |
;; |
5079 |
– |
esac |
5080 |
– |
fi # test "x$F90LIBS" = "x" |
5081 |
– |
|
5082 |
– |
fi |
5083 |
– |
echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5 |
5084 |
– |
echo "${ECHO_T}$ac_cv_flibs" >&6 |
5085 |
– |
F90LIBS="$ac_cv_f90libs" |
5086 |
– |
|
5087 |
– |
ac_ext=f90 |
5088 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5089 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5090 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5091 |
– |
|
5092 |
– |
echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5 |
5093 |
– |
echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6 |
5094 |
– |
if test "${ac_cv_f90_mangling+set}" = set; then |
5095 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5096 |
– |
else |
5097 |
– |
ac_ext=f90 |
5098 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5099 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5100 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5101 |
– |
cat >conftest.$ac_ext <<_ACEOF |
5102 |
– |
subroutine foobar() |
5103 |
– |
return |
5104 |
– |
end |
5105 |
– |
subroutine foo_bar() |
5106 |
– |
return |
5107 |
– |
end |
5108 |
– |
_ACEOF |
5109 |
– |
rm -f conftest.$ac_objext |
5110 |
– |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5111 |
– |
(eval $ac_compile) 2>&5 |
5112 |
– |
ac_status=$? |
5113 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5114 |
– |
(exit $ac_status); } && |
5115 |
– |
{ ac_try='test -s conftest.$ac_objext' |
5116 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5117 |
– |
(eval $ac_try) 2>&5 |
5118 |
– |
ac_status=$? |
5119 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5120 |
– |
(exit $ac_status); }; }; then |
5121 |
– |
mv conftest.$ac_objext cf90_test.$ac_objext |
5122 |
– |
|
5123 |
– |
ac_ext=c |
5124 |
– |
ac_cpp='$CPP $CPPFLAGS' |
5125 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5126 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5127 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5128 |
– |
|
5129 |
– |
ac_save_LIBS=$LIBS |
5130 |
– |
LIBS="cf90_test.$ac_objext $F90LIBS $LIBS" |
5131 |
– |
|
5132 |
– |
ac_success=no |
5133 |
– |
for ac_foobar in foobar FOOBAR; do |
5134 |
– |
for ac_underscore in "" "_"; do |
5135 |
– |
ac_func="$ac_foobar$ac_underscore" |
5136 |
– |
cat >conftest.$ac_ext <<_ACEOF |
5137 |
– |
#line $LINENO "configure" |
5138 |
– |
/* confdefs.h. */ |
5139 |
– |
_ACEOF |
5140 |
– |
cat confdefs.h >>conftest.$ac_ext |
5141 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
5142 |
– |
/* end confdefs.h. */ |
5143 |
– |
|
5144 |
– |
/* Override any gcc2 internal prototype to avoid an error. */ |
5145 |
– |
#ifdef __cplusplus |
5146 |
– |
extern "C" |
5147 |
– |
#endif |
5148 |
– |
/* We use char because int might match the return type of a gcc2 |
5149 |
– |
builtin and then its argument prototype would still apply. */ |
5150 |
– |
char $ac_func (); |
5151 |
– |
int |
5152 |
– |
main () |
5153 |
– |
{ |
5154 |
– |
$ac_func (); |
5155 |
– |
; |
5156 |
– |
return 0; |
5157 |
– |
} |
5158 |
– |
_ACEOF |
5159 |
– |
rm -f conftest.$ac_objext conftest$ac_exeext |
5160 |
– |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5161 |
– |
(eval $ac_link) 2>&5 |
5162 |
– |
ac_status=$? |
5163 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5164 |
– |
(exit $ac_status); } && |
5165 |
– |
{ ac_try='test -s conftest$ac_exeext' |
5166 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5167 |
– |
(eval $ac_try) 2>&5 |
5168 |
– |
ac_status=$? |
5169 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5170 |
– |
(exit $ac_status); }; }; then |
5171 |
– |
ac_success=yes; break 2 |
5172 |
– |
else |
5173 |
– |
echo "$as_me: failed program was:" >&5 |
5174 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
5175 |
– |
|
5176 |
– |
fi |
5177 |
– |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5178 |
– |
done |
5179 |
– |
done |
5180 |
– |
|
5181 |
– |
if test "$ac_success" = "yes"; then |
5182 |
– |
case $ac_foobar in |
5183 |
– |
foobar) |
5184 |
– |
ac_case=lower |
5185 |
– |
ac_foo_bar=foo_bar |
5186 |
– |
;; |
5187 |
– |
FOOBAR) |
5188 |
– |
ac_case=upper |
5189 |
– |
ac_foo_bar=FOO_BAR |
5190 |
– |
;; |
5191 |
– |
esac |
5192 |
– |
|
5193 |
– |
ac_success_extra=no |
5194 |
– |
for ac_extra in "" "_"; do |
5195 |
– |
ac_func="$ac_foo_bar$ac_underscore$ac_extra" |
5196 |
– |
|
5197 |
– |
cat >conftest.$ac_ext <<_ACEOF |
5198 |
– |
#line $LINENO "configure" |
5199 |
– |
/* confdefs.h. */ |
5200 |
– |
_ACEOF |
5201 |
– |
cat confdefs.h >>conftest.$ac_ext |
5202 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
5203 |
– |
/* end confdefs.h. */ |
5204 |
– |
|
5205 |
– |
/* Override any gcc2 internal prototype to avoid an error. */ |
5206 |
– |
#ifdef __cplusplus |
5207 |
– |
extern "C" |
5208 |
– |
#endif |
5209 |
– |
/* We use char because int might match the return type of a gcc2 |
5210 |
– |
builtin and then its argument prototype would still apply. */ |
5211 |
– |
char $ac_func (); |
5212 |
– |
int |
5213 |
– |
main () |
5214 |
– |
{ |
5215 |
– |
$ac_func (); |
5216 |
– |
; |
5217 |
– |
return 0; |
5218 |
– |
} |
5219 |
– |
_ACEOF |
5220 |
– |
rm -f conftest.$ac_objext conftest$ac_exeext |
5221 |
– |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5222 |
– |
(eval $ac_link) 2>&5 |
5223 |
– |
ac_status=$? |
5224 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5225 |
– |
(exit $ac_status); } && |
5226 |
– |
{ ac_try='test -s conftest$ac_exeext' |
5227 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5228 |
– |
(eval $ac_try) 2>&5 |
5229 |
– |
ac_status=$? |
5230 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5231 |
– |
(exit $ac_status); }; }; then |
5232 |
– |
ac_success_extra=yes; break |
5233 |
– |
else |
5234 |
– |
echo "$as_me: failed program was:" >&5 |
5235 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
5236 |
– |
|
5237 |
– |
fi |
5238 |
– |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5239 |
– |
done |
5240 |
– |
|
5241 |
– |
if test "$ac_success_extra" = "yes"; then |
5242 |
– |
ac_cv_f90_mangling="$ac_case case" |
5243 |
– |
if test -z "$ac_underscore"; then |
5244 |
– |
ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore" |
5245 |
– |
else |
5246 |
– |
ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore" |
5247 |
– |
|
5248 |
– |
fi |
5249 |
– |
if test -z "$ac_extra"; then |
5250 |
– |
ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore" |
5251 |
– |
else |
5252 |
– |
ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore" |
5253 |
– |
fi |
5254 |
– |
else |
5255 |
– |
ac_cv_f90_mangling="unknown" |
5256 |
– |
fi |
5257 |
– |
else |
5258 |
– |
ac_cv_f90_mangling="unknown" |
5259 |
– |
|
5260 |
– |
fi |
5261 |
– |
|
5262 |
– |
LIBS=$ac_save_LIBS |
5263 |
– |
ac_ext=f90 |
5264 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5265 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5266 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5267 |
– |
rm -f cf90_test* conftest* |
5268 |
– |
else |
5269 |
– |
echo "$as_me: failed program was:" >&5 |
5270 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
5271 |
– |
|
5272 |
– |
fi |
5273 |
– |
rm -f conftest.$ac_objext conftest.$ac_ext |
5274 |
– |
ac_ext=f90 |
5275 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5276 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5277 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5278 |
– |
|
5279 |
– |
fi |
5280 |
– |
echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5 |
5281 |
– |
echo "${ECHO_T}$ac_cv_f90_mangling" >&6 |
5282 |
– |
|
5283 |
– |
|
5284 |
– |
|
5285 |
– |
case $ac_cv_f90_mangling in |
5286 |
– |
"lower case, no underscore, no extra underscore") |
5287 |
– |
cat >>confdefs.h <<\_ACEOF |
5288 |
– |
#define F90_FUNC(name,NAME) name |
5289 |
– |
_ACEOF |
5290 |
– |
|
5291 |
– |
cat >>confdefs.h <<\_ACEOF |
5292 |
– |
#define F90_FUNC_(name,NAME) name |
5293 |
– |
_ACEOF |
5294 |
– |
;; |
5295 |
– |
"lower case, no underscore, extra underscore") |
5296 |
– |
cat >>confdefs.h <<\_ACEOF |
5297 |
– |
#define F90_FUNC(name,NAME) name |
5298 |
– |
_ACEOF |
5299 |
– |
|
5300 |
– |
cat >>confdefs.h <<\_ACEOF |
5301 |
– |
#define F90_FUNC_(name,NAME) name ## _ |
5302 |
– |
_ACEOF |
5303 |
– |
;; |
5304 |
– |
"lower case, underscore, no extra underscore") |
5305 |
– |
cat >>confdefs.h <<\_ACEOF |
5306 |
– |
#define F90_FUNC(name,NAME) name ## _ |
5307 |
– |
_ACEOF |
5308 |
– |
|
5309 |
– |
cat >>confdefs.h <<\_ACEOF |
5310 |
– |
#define F90_FUNC_(name,NAME) name ## _ |
5311 |
– |
_ACEOF |
5312 |
– |
;; |
5313 |
– |
"lower case, underscore, extra underscore") |
5314 |
– |
cat >>confdefs.h <<\_ACEOF |
5315 |
– |
#define F90_FUNC(name,NAME) name ## _ |
5316 |
– |
_ACEOF |
5317 |
– |
|
5318 |
– |
cat >>confdefs.h <<\_ACEOF |
5319 |
– |
#define F90_FUNC_(name,NAME) name ## __ |
5320 |
– |
_ACEOF |
5321 |
– |
;; |
5322 |
– |
"upper case, no underscore, no extra underscore") |
5323 |
– |
cat >>confdefs.h <<\_ACEOF |
5324 |
– |
#define F90_FUNC(name,NAME) NAME |
5325 |
– |
_ACEOF |
5326 |
– |
|
5327 |
– |
cat >>confdefs.h <<\_ACEOF |
5328 |
– |
#define F90_FUNC_(name,NAME) NAME |
5329 |
– |
_ACEOF |
5330 |
– |
;; |
5331 |
– |
"upper case, no underscore, extra underscore") |
5332 |
– |
cat >>confdefs.h <<\_ACEOF |
5333 |
– |
#define F90_FUNC(name,NAME) NAME |
5334 |
– |
_ACEOF |
5335 |
– |
|
5336 |
– |
cat >>confdefs.h <<\_ACEOF |
5337 |
– |
#define F90_FUNC_(name,NAME) NAME ## _ |
5338 |
– |
_ACEOF |
5339 |
– |
;; |
5340 |
– |
"upper case, underscore, no extra underscore") |
5341 |
– |
cat >>confdefs.h <<\_ACEOF |
5342 |
– |
#define F90_FUNC(name,NAME) NAME ## _ |
5343 |
– |
_ACEOF |
5344 |
– |
|
5345 |
– |
cat >>confdefs.h <<\_ACEOF |
5346 |
– |
#define F90_FUNC_(name,NAME) NAME ## _ |
5347 |
– |
_ACEOF |
5348 |
– |
;; |
5349 |
– |
"upper case, underscore, extra underscore") |
5350 |
– |
cat >>confdefs.h <<\_ACEOF |
5351 |
– |
#define F90_FUNC(name,NAME) NAME ## _ |
5352 |
– |
_ACEOF |
5353 |
– |
|
5354 |
– |
cat >>confdefs.h <<\_ACEOF |
5355 |
– |
#define F90_FUNC_(name,NAME) NAME ## __ |
5356 |
– |
_ACEOF |
5357 |
– |
;; |
5358 |
– |
*) |
5359 |
– |
{ echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5 |
5360 |
– |
echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;} |
5361 |
– |
;; |
5362 |
– |
esac |
5363 |
– |
|
5364 |
– |
|
5365 |
– |
|
5366 |
– |
|
5540 |
|
echo "$as_me:$LINENO: checking for mpi-directory" >&5 |
5541 |
|
echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6 |
5542 |
|
|
5543 |
< |
# Check whether --with-MPI_DIR or --without-MPI_DIR was given. |
5544 |
< |
if test "${with_MPI_DIR+set}" = set; then |
5545 |
< |
withval="$with_MPI_DIR" |
5543 |
> |
# Check whether --with-mpi_dir or --without-mpi_dir was given. |
5544 |
> |
if test "${with_mpi_dir+set}" = set; then |
5545 |
> |
withval="$with_mpi_dir" |
5546 |
|
MPI_DIR="$withval" |
5547 |
|
else |
5548 |
|
MPI_DIR="/usr/local" |
5554 |
|
echo "$as_me:$LINENO: checking for mpi-lib-directory" >&5 |
5555 |
|
echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6 |
5556 |
|
|
5557 |
< |
# Check whether --with-MPI_LIBDIR or --without-MPI_LIBDIR was given. |
5558 |
< |
if test "${with_MPI_LIBDIR+set}" = set; then |
5559 |
< |
withval="$with_MPI_LIBDIR" |
5557 |
> |
# Check whether --with-mpi_libdir or --without-mpi_libdir was given. |
5558 |
> |
if test "${with_mpi_libdir+set}" = set; then |
5559 |
> |
withval="$with_mpi_libdir" |
5560 |
|
MPI_LIBDIR="$withval" |
5561 |
|
else |
5562 |
|
MPI_LIBDIR="$MPI_DIR/lib" |
5568 |
|
echo "$as_me:$LINENO: checking for mpi-inc-directory" >&5 |
5569 |
|
echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6 |
5570 |
|
|
5571 |
< |
# Check whether --with-MPI_INC or --without-MPI_INC was given. |
5572 |
< |
if test "${with_MPI_INC+set}" = set; then |
5573 |
< |
withval="$with_MPI_INC" |
5571 |
> |
# Check whether --with-mpi_inc or --without-mpi_inc was given. |
5572 |
> |
if test "${with_mpi_inc+set}" = set; then |
5573 |
> |
withval="$with_mpi_inc" |
5574 |
|
MPI_INC="$withval" |
5575 |
|
else |
5576 |
|
MPI_INC="$MPI_DIR/include" |
6303 |
|
|
6304 |
|
|
6305 |
|
|
6306 |
< |
# Check whether --with-sprng-prefix or --without-sprng-prefix was given. |
6306 |
> |
# Check whether --with-sprng_prefix or --without-sprng_prefix was given. |
6307 |
|
if test "${with_sprng_prefix+set}" = set; then |
6308 |
|
withval="$with_sprng_prefix" |
6309 |
|
sprng_prefix="$withval" |
6311 |
|
sprng_prefix="/usr/local" |
6312 |
|
fi; |
6313 |
|
|
6314 |
< |
# Check whether --with-sprng-lib-prefix or --without-sprng-lib-prefix was given. |
6315 |
< |
if test "${with_sprng_lib_prefix+set}" = set; then |
6316 |
< |
withval="$with_sprng_lib_prefix" |
6317 |
< |
sprng_lib_prefix="$withval" |
6314 |
> |
# Check whether --with-sprng-libdir or --without-sprng-libdir was given. |
6315 |
> |
if test "${with_sprng_libdir+set}" = set; then |
6316 |
> |
withval="$with_sprng_libdir" |
6317 |
> |
sprng_libdir="$withval" |
6318 |
|
else |
6319 |
< |
sprng_lib_prefix="/usr/local/lib" |
6319 |
> |
sprng_libdir="/usr/local/lib" |
6320 |
|
fi; |
6321 |
|
|
6322 |
< |
# Check whether --with-sprng-include-prefix or --without-sprng-include-prefix was given. |
6323 |
< |
if test "${with_sprng_include_prefix+set}" = set; then |
6324 |
< |
withval="$with_sprng_include_prefix" |
6325 |
< |
sprng_include_prefix="$withval" |
6322 |
> |
# Check whether --with-sprng-include or --without-sprng-include was given. |
6323 |
> |
if test "${with_sprng_include+set}" = set; then |
6324 |
> |
withval="$with_sprng_include" |
6325 |
> |
sprng_include="$withval" |
6326 |
|
else |
6327 |
< |
sprng_include_prefix="/usr/local/include/sprng" |
6327 |
> |
sprng_include="/usr/local/include/sprng" |
6328 |
|
fi; |
6329 |
|
|
6330 |
< |
if test x$sprng_lib_prefix = x ; then |
6331 |
< |
sprng_lib_prefix=${sprng_prefix}/lib |
6330 |
> |
if test x$sprng_libdir = x ; then |
6331 |
> |
sprng_libdir=${sprng_prefix}/lib |
6332 |
|
fi |
6333 |
|
|
6334 |
< |
if test x$sprng_include_prefix = x ; then |
6335 |
< |
sprng_include_prefix=${sprng_prefix}/include |
6334 |
> |
if test x$sprng_include = x ; then |
6335 |
> |
sprng_include=${sprng_prefix}/include |
6336 |
|
fi |
6337 |
|
|
6338 |
< |
echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include_prefix" >&5 |
6339 |
< |
echo $ECHO_N "checking for SPRNG include files in $sprng_include_prefix... $ECHO_C" >&6 |
6340 |
< |
if test -f ${sprng_include_prefix}/sprng.h; then |
6338 |
> |
echo "$as_me:$LINENO: checking for SPRNG include files in $sprng_include" >&5 |
6339 |
> |
echo $ECHO_N "checking for SPRNG include files in $sprng_include... $ECHO_C" >&6 |
6340 |
> |
if test -f ${sprng_include}/sprng.h; then |
6341 |
|
have_sprngincl=yes |
6342 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
6343 |
|
echo "${ECHO_T}yes" >&6 |
6350 |
|
{ (exit 1); exit 1; }; } |
6351 |
|
fi |
6352 |
|
|
6353 |
< |
echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_lib_prefix" >&5 |
6354 |
< |
echo $ECHO_N "checking for SPRNG libraries in $sprng_lib_prefix... $ECHO_C" >&6 |
6355 |
< |
if test -f ${sprng_lib_prefix}/libsprng.a; then |
6353 |
> |
echo "$as_me:$LINENO: checking for SPRNG libraries in $sprng_libdir" >&5 |
6354 |
> |
echo $ECHO_N "checking for SPRNG libraries in $sprng_libdir... $ECHO_C" >&6 |
6355 |
> |
if test -f ${sprng_libdir}/libsprng.a; then |
6356 |
|
have_sprnglib=yes |
6357 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
6358 |
|
echo "${ECHO_T}yes" >&6 |
6374 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6375 |
|
|
6376 |
|
ac_save_CPPFLAGS=$CPPFLAGS |
6377 |
< |
CPPFLAGS="${CPPFLAGS} -I${sprng_include_prefix}" |
6377 |
> |
CPPFLAGS="${CPPFLAGS} -I${sprng_include}" |
6378 |
|
ac_save_LDFLAGS=$LDFLAGS |
6379 |
< |
LDFLAGS="${LDFLAGS} -L${sprng_lib_prefix} -lsprng" |
6379 |
> |
LDFLAGS="${LDFLAGS} -L${sprng_libdir} -lsprng" |
6380 |
|
if test "${ac_cv_header_sprng_h+set}" = set; then |
6381 |
|
echo "$as_me:$LINENO: checking for sprng.h" >&5 |
6382 |
|
echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6 |
6563 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5 |
6564 |
|
echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6 |
6565 |
|
if test $ac_cv_lib_sprng_init_rng = yes; then |
6566 |
< |
SPRNG_LIBDIR="${sprng_lib_prefix}" |
6567 |
< |
SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include_prefix}" |
6566 |
> |
SPRNG_LIBDIR="${sprng_libdir}" |
6567 |
> |
SPRNG_LIB="-lsprng" SPRNG_INC="-I${sprng_include}" |
6568 |
|
HAVE_SPRNG="yes" |
6569 |
|
fi |
6570 |
|
|
6849 |
|
|
6850 |
|
|
6851 |
|
|
6852 |
+ |
|
6853 |
|
# Check whether --with-mpi_f90_mods or --without-mpi_f90_mods was given. |
6854 |
|
if test "${with_mpi_f90_mods+set}" = set; then |
6855 |
|
withval="$with_mpi_f90_mods" |
6868 |
|
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
6869 |
|
|
6870 |
|
ac_save_F90FLAGS=$F90FLAGS |
6871 |
+ |
|
6872 |
|
if test "$mpi_f90_mods"; then |
6873 |
< |
F90FLAGS="${F90FLAGS} -I${mpi_f90_mods}" |
6873 |
> |
F90FLAGS="${F90FLAGS} ${MODDIRFLAG}${mpi_f90_mods}" |
6874 |
|
fi |
6875 |
|
|
6876 |
|
cat >conftest.$ac_ext <<_ACEOF |
6922 |
|
#define MPI_MOD 1 |
6923 |
|
_ACEOF |
6924 |
|
|
6925 |
< |
MPI_F90_MODS="-I${mpi_f90_mods}" |
6925 |
> |
MPI_F90_MODS="${mpi_f90_mods}" |
6926 |
|
|
6927 |
+ |
# The library name: |
6928 |
+ |
if test -z "$MPI_LIB" ; then |
6929 |
+ |
MPI_LIBNAME=-lmpich |
6930 |
+ |
else |
6931 |
+ |
MPI_LIBNAME="$MPI_LIB" |
6932 |
+ |
fi |
6933 |
+ |
if test -z "$MPIMODLIBNAME" ; then |
6934 |
+ |
MPIMODLIBNAME="${MPI_LIBNAME}f90" |
6935 |
+ |
fi |
6936 |
+ |
|
6937 |
|
else |
6938 |
|
echo "$as_me:$LINENO: result: no" >&5 |
6939 |
|
echo "${ECHO_T}no" >&6 |
6944 |
|
|
6945 |
|
|
6946 |
|
|
6762 |
– |
case $F90 in |
6763 |
– |
ifc) fortran_machine_defs='Linux_ifc_machdep$(O)' ;; |
6764 |
– |
*) fortran_machine_defs='' ;; |
6765 |
– |
esac |
6947 |
|
|
6948 |
|
|
6768 |
– |
|
6769 |
– |
|
6949 |
|
OBJEXT=".$OBJEXT" |
6950 |
|
|
6951 |
|
OOPSE=oopse |
6969 |
|
|
6970 |
|
MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f" |
6971 |
|
|
6972 |
< |
SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder" |
6972 |
> |
SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps" |
6973 |
|
|
6974 |
< |
#CFLAGS=${CFLAGS-""} |
6975 |
< |
#CXXFLAGS=${CXXFLAGS-""} |
6976 |
< |
#CPPFLAGS=${CPPFLAGS-""} |
6977 |
< |
#FFLAGS=${FFLAGS-""} |
6978 |
< |
#LDFLAGS=${LDFLAGS-""} |
6979 |
< |
#OPTIMIZE=${OPTIMIZE-"-O"} |
6980 |
< |
#DEBUG=${DEBUG-"-g"} |
6974 |
> |
CFLAGS=${CFLAGS-""} |
6975 |
> |
CXXFLAGS=${CXXFLAGS-""} |
6976 |
> |
CPPFLAGS=${CPPFLAGS-""} |
6977 |
> |
FFLAGS=${FFLAGS-""} |
6978 |
> |
F90FLAGS=${F90FLAGS-""} |
6979 |
> |
LDFLAGS=${LDFLAGS-""} |
6980 |
> |
DEBUG=${DEBUG-"-g"} |
6981 |
|
|
6982 |
|
case $debug in |
6983 |
< |
true) |
6805 |
< |
CFLAGS="$DEBUG $CFLAGS" |
6806 |
< |
CXXFLAGS="$DEBUG $CXXFLAGS" |
6983 |
> |
1) |
6984 |
|
FFLAGS="$DEBUG $FFLAGS" |
6985 |
|
F90FLAGS="$DEBUG $F90FLAGS" |
6986 |
|
;; |
6987 |
|
*) |
6811 |
– |
CFLAGS="$OPTIMIZE $CFLAGS" |
6812 |
– |
CXXFLAGS="$OPTIMIZE $CXXFLAGS" |
6813 |
– |
FFLAGS="$OPTIMIZE $FFLAGS" |
6814 |
– |
F90FLAGS="$OPTIMIZE $F90FLAGS" |
6988 |
|
;; |
6989 |
|
esac |
6990 |
|
|
7006 |
|
|
7007 |
|
ac_config_headers="$ac_config_headers libmdtools/config.h" |
7008 |
|
|
7009 |
< |
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" |
7009 |
> |
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" |
7010 |
|
|
7011 |
|
|
7012 |
|
cat >confcache <<\_ACEOF |
7541 |
|
"utils/sysbuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/sysbuilder/Makefile" ;; |
7542 |
|
"forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;; |
7543 |
|
"samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; |
7544 |
+ |
"staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;; |
7545 |
|
"samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;; |
7546 |
|
"samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;; |
7547 |
|
"samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;; |
7634 |
|
s,@ECHO_T@,$ECHO_T,;t t |
7635 |
|
s,@LIBS@,$LIBS,;t t |
7636 |
|
s,@PROGNAME@,$PROGNAME,;t t |
7637 |
< |
s,@DEBUG@,$DEBUG,;t t |
7637 |
> |
s,@debug@,$debug,;t t |
7638 |
|
s,@build@,$build,;t t |
7639 |
|
s,@build_cpu@,$build_cpu,;t t |
7640 |
|
s,@build_vendor@,$build_vendor,;t t |
7653 |
|
s,@CXX@,$CXX,;t t |
7654 |
|
s,@CXXFLAGS@,$CXXFLAGS,;t t |
7655 |
|
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
7656 |
+ |
s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t |
7657 |
+ |
s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t |
7658 |
|
s,@F90@,$F90,;t t |
7659 |
|
s,@F90FLAGS@,$F90FLAGS,;t t |
7660 |
|
s,@ac_ct_F90@,$ac_ct_F90,;t t |
7661 |
|
s,@PREPFLAG@,$PREPFLAG,;t t |
7662 |
|
s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t |
7663 |
+ |
s,@F90LIBS@,$F90LIBS,;t t |
7664 |
+ |
s,@F90_FUNC@,$F90_FUNC,;t t |
7665 |
+ |
s,@F90_FUNC_@,$F90_FUNC_,;t t |
7666 |
+ |
s,@MOD@,$MOD,;t t |
7667 |
+ |
s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t |
7668 |
+ |
s,@MODDIRFLAG@,$MODDIRFLAG,;t t |
7669 |
+ |
s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t |
7670 |
|
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
7671 |
|
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
7672 |
|
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
7679 |
|
s,@LEXLIB@,$LEXLIB,;t t |
7680 |
|
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
7681 |
|
s,@AR@,$AR,;t t |
7682 |
< |
s,@F90LIBS@,$F90LIBS,;t t |
7500 |
< |
s,@F90_FUNC@,$F90_FUNC,;t t |
7501 |
< |
s,@F90_FUNC_@,$F90_FUNC_,;t t |
7502 |
< |
s,@MPI_DIR@,$MPI_DIR,;t t |
7682 |
> |
s,@mpi_dir@,$mpi_dir,;t t |
7683 |
|
s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t |
7684 |
|
s,@MPI_INC@,$MPI_INC,;t t |
7685 |
|
s,@MPI_LIB@,$MPI_LIB,;t t |
7697 |
|
s,@MKL_INC@,$MKL_INC,;t t |
7698 |
|
s,@HAVE_MKL@,$HAVE_MKL,;t t |
7699 |
|
s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t |
7700 |
< |
s,@fortran_machine_defs@,$fortran_machine_defs,;t t |
7700 |
> |
s,@MPIMODLIBNAME@,$MPIMODLIBNAME,;t t |
7701 |
|
s,@BATEXT@,$BATEXT,;t t |
7702 |
|
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
7703 |
|
s,@OOPSE@,$OOPSE,;t t |