311 |
|
# include <unistd.h> |
312 |
|
#endif" |
313 |
|
|
314 |
< |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR F90LIBS F90_FUNC F90_FUNC_ mpi_dir MPI_LIBDIR MPI_INC MPI_LIB MPIF77 MPIF90 MPILIBS CPP EGREP SPRNG_LIBDIR SPRNG_LIB SPRNG_INC HAVE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL MPI_F90_MODS MPIMODLIBNAME BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS' |
314 |
> |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT AR MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI CPP EGREP SPRNG_LIBDIR SPRNG_LIB SPRNG_INC HAVE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LIBOBJS LTLIBOBJS' |
315 |
|
ac_subst_files='' |
316 |
|
|
317 |
|
# Initialize some variables set by options. |
784 |
|
ac_env_F90FLAGS_value=$F90FLAGS |
785 |
|
ac_cv_env_F90FLAGS_set=${F90FLAGS+set} |
786 |
|
ac_cv_env_F90FLAGS_value=$F90FLAGS |
787 |
– |
ac_env_MPIF77_set=${MPIF77+set} |
788 |
– |
ac_env_MPIF77_value=$MPIF77 |
789 |
– |
ac_cv_env_MPIF77_set=${MPIF77+set} |
790 |
– |
ac_cv_env_MPIF77_value=$MPIF77 |
787 |
|
ac_env_CPP_set=${CPP+set} |
788 |
|
ac_env_CPP_value=$CPP |
789 |
|
ac_cv_env_CPP_set=${CPP+set} |
870 |
|
Optional Packages: |
871 |
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
872 |
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
873 |
< |
--with-mpi_dir=MPIDIR give the path for MPI /usr/local |
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 |
873 |
> |
--with-mpi=<prefix> compile with MPI libraries in <prefix> [default=no] |
874 |
|
--with-sprng_prefix=PREFIX |
875 |
|
Prefix where SPRNG is installed |
876 |
|
--with-sprng-libdir=PREFIX SPRNG library directory |
877 |
|
--with-sprng-include=PREFIX |
878 |
|
SPRNG include directory |
879 |
< |
--with-mkl Do we want MKL will check /usr/local/intel/mkl60 /opt/intel/mkl60 |
886 |
< |
--with-mpi_f90_mods=<dir> |
887 |
< |
Location where MPI f90 modules are installed |
879 |
> |
--with-mkl Do we want MKL will check /usr/local/intel/mkl61 /opt/intel/mkl61 |
880 |
|
|
881 |
|
Some influential environment variables: |
882 |
|
CC C compiler command |
889 |
|
CXXFLAGS C++ compiler flags |
890 |
|
F90 Fortran 90 compiler command |
891 |
|
F90FLAGS Fortran 90 compiler flags |
900 |
– |
MPIF77 MPI Fortran compiler command |
892 |
|
CPP C preprocessor |
893 |
|
|
894 |
|
Use these variables to override the choices made by `configure' or to help |
1783 |
|
# $SHELLVAR to the Fortran 95 mangled name. If the SHELLVAR |
1784 |
|
# argument is not supplied, it defaults to NAME. |
1785 |
|
# AC_F95_FUNC |
1786 |
+ |
|
1787 |
+ |
|
1788 |
|
|
1789 |
|
|
1790 |
|
|
1821 |
|
|
1822 |
|
|
1823 |
|
|
1824 |
+ |
|
1825 |
+ |
|
1826 |
+ |
|
1827 |
+ |
|
1828 |
+ |
|
1829 |
+ |
|
1830 |
+ |
|
1831 |
+ |
|
1832 |
+ |
|
1833 |
+ |
|
1834 |
+ |
|
1835 |
+ |
|
1836 |
+ |
|
1837 |
|
# set program name |
1838 |
|
PROGNAME="oopse" |
1839 |
|
|
2564 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2565 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2566 |
|
|
2567 |
+ |
|
2568 |
|
ac_ext=cc |
2569 |
|
ac_cpp='$CXXCPP $CPPFLAGS' |
2570 |
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2571 |
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2572 |
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2573 |
|
if test -n "$ac_tool_prefix"; then |
2574 |
< |
for ac_prog in $CCC icpc icc xlC CC g++ c++ |
2574 |
> |
for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++ |
2575 |
|
do |
2576 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2577 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2613 |
|
fi |
2614 |
|
if test -z "$CXX"; then |
2615 |
|
ac_ct_CXX=$CXX |
2616 |
< |
for ac_prog in $CCC icpc icc xlC CC g++ c++ |
2616 |
> |
for ac_prog in $CCC icpc icc xlc++ xlC CC g++ c++ |
2617 |
|
do |
2618 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2619 |
|
set dummy $ac_prog; ac_word=$2 |
2884 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2885 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2886 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2887 |
+ |
|
2888 |
+ |
|
2889 |
+ |
OOPSE_TEMPLATE_FLAGS="" |
2890 |
+ |
if test $ac_cv_cxx_compiler_gnu = no; then |
2891 |
+ |
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -ptused -no_prelink" >&5 |
2892 |
+ |
echo $ECHO_N "checking checking whether ${CXX} accepts -ptused -no_prelink... $ECHO_C" >&6 |
2893 |
+ |
echo 'void f(){}' > conftest.cc |
2894 |
+ |
if test -z "`${CXX} -ptused -no_prelink -c conftest.cc 2>&1`"; then |
2895 |
+ |
echo "$as_me:$LINENO: result: yes" >&5 |
2896 |
+ |
echo "${ECHO_T}yes" >&6 |
2897 |
+ |
OOPSE_TEMPLATE_FLAGS="-ptused -no_prelink" |
2898 |
+ |
else |
2899 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
2900 |
+ |
echo "${ECHO_T}no" >&6 |
2901 |
+ |
fi |
2902 |
+ |
rm -f conftest* |
2903 |
+ |
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -instances=static" >&5 |
2904 |
+ |
echo $ECHO_N "checking checking whether ${CXX} accepts -instances=static... $ECHO_C" >&6 |
2905 |
+ |
echo 'void f(){}' > conftest.cc |
2906 |
+ |
if test -z "`${CXX} -instances=static -c conftest.cc 2>&1`"; then |
2907 |
+ |
echo "$as_me:$LINENO: result: yes" >&5 |
2908 |
+ |
echo "${ECHO_T}yes" >&6 |
2909 |
+ |
OOPSE_TEMPLATE_FLAGS="-instances=static" |
2910 |
+ |
else |
2911 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
2912 |
+ |
echo "${ECHO_T}no" >&6 |
2913 |
+ |
fi |
2914 |
+ |
rm -f conftest* |
2915 |
+ |
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -pto" >&5 |
2916 |
+ |
echo $ECHO_N "checking checking whether ${CXX} accepts -pto... $ECHO_C" >&6 |
2917 |
+ |
echo 'void f(){}' > conftest.cc |
2918 |
+ |
if test -z "`${CXX} -pto -c conftest.cc 2>&1`"; then |
2919 |
+ |
echo "$as_me:$LINENO: result: yes" >&5 |
2920 |
+ |
echo "${ECHO_T}yes" >&6 |
2921 |
+ |
OOPSE_TEMPLATE_FLAGS="-pto" |
2922 |
+ |
else |
2923 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
2924 |
+ |
echo "${ECHO_T}no" >&6 |
2925 |
+ |
fi |
2926 |
+ |
rm -f conftest* |
2927 |
+ |
echo "$as_me:$LINENO: checking checking whether ${CXX} accepts -LANG:std" >&5 |
2928 |
+ |
echo $ECHO_N "checking checking whether ${CXX} accepts -LANG:std... $ECHO_C" >&6 |
2929 |
+ |
echo 'void f(){}' > conftest.cc |
2930 |
+ |
if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then |
2931 |
+ |
echo "$as_me:$LINENO: result: yes" >&5 |
2932 |
+ |
echo "${ECHO_T}yes" >&6 |
2933 |
|
|
2934 |
+ |
|
2935 |
+ |
EXTRA_CC_FLAG=${EXTRA_CC_FLAG}" -LANG:std" |
2936 |
+ |
else |
2937 |
+ |
echo "$as_me:$LINENO: result: no" >&5 |
2938 |
+ |
echo "${ECHO_T}no" >&6 |
2939 |
+ |
fi |
2940 |
+ |
fi |
2941 |
+ |
|
2942 |
+ |
|
2943 |
+ |
|
2944 |
+ |
|
2945 |
|
ac_ext=f90 |
2946 |
|
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
2947 |
|
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2948 |
|
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
2949 |
|
if test -n "$ac_tool_prefix"; then |
2950 |
< |
for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
2950 |
> |
for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
2951 |
|
do |
2952 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2953 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2989 |
|
fi |
2990 |
|
if test -z "$F90"; then |
2991 |
|
ac_ct_F90=$F90 |
2992 |
< |
for ac_prog in ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
2992 |
> |
for ac_prog in ifort ifc f90 xlf90 pgf90 epcf90 f95 xlf95 lf95 fort g95 |
2993 |
|
do |
2994 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2995 |
|
set dummy $ac_prog; ac_word=$2 |
3097 |
|
PREPFLAG="" |
3098 |
|
case "${host_cpu}-${host_os}" in |
3099 |
|
|
3100 |
< |
*linux*) if test "$F90" = ifc; then |
3100 |
> |
*linux*) if test "$F90" = ifc -o "$F90" = ifort; then |
3101 |
|
PREPFLAG="-fpp1 " |
3102 |
|
fi;; |
3103 |
|
*aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
3110 |
|
esac |
3111 |
|
|
3112 |
|
if test -z "$PREPFLAG"; then |
3113 |
< |
echo "" |
3114 |
< |
echo "**********************************************************" |
3051 |
< |
echo "* WARNING: Don't know the best PREPFLAG for this system *" |
3052 |
< |
echo "* Use make PREPFLAG=..., or edit the top level Makefile *" |
3053 |
< |
echo "* (otherwise, an empty PREPFLAG will be used) *" |
3054 |
< |
echo "**********************************************************" |
3055 |
< |
echo "" |
3113 |
> |
{ echo "$as_me:$LINENO: WARNING: \"Using empty PREPFLAG\"" >&5 |
3114 |
> |
echo "$as_me: WARNING: \"Using empty PREPFLAG\"" >&2;} |
3115 |
|
PREPFLAG="" |
3116 |
|
fi |
3117 |
|
|
3174 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3175 |
|
|
3176 |
|
|
3118 |
– |
|
3177 |
|
if test "$prepflagworks" = 1; then |
3178 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
3179 |
|
echo "${ECHO_T}yes" >&6 |
3198 |
|
PREPDEFFLAG="" |
3199 |
|
case "${host_cpu}-${host_os}" in |
3200 |
|
|
3201 |
< |
*linux*) if test "$F90" = ifc; then |
3201 |
> |
*linux*) if test "$F90" = ifc -o "$F90" = ifort; then |
3202 |
|
PREPDEFFLAG=" " |
3203 |
|
fi;; |
3204 |
|
*aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
3211 |
|
esac |
3212 |
|
|
3213 |
|
if test -z "$PREPDEFFLAG"; then |
3214 |
< |
echo "" |
3215 |
< |
echo "*************************************************************" |
3158 |
< |
echo "* WARNING: Don't know the best PREPDEFFLAG for this system *" |
3159 |
< |
echo "* Use make PREPDEFFLAG=..., or edit the top level Makefile *" |
3160 |
< |
echo "* (otherwise, an empty PREPDEFFLAG will be used) *" |
3161 |
< |
echo "*************************************************************" |
3162 |
< |
echo "" |
3214 |
> |
{ echo "$as_me:$LINENO: WARNING: \"Using empty PREPDEFFLAG\"" >&5 |
3215 |
> |
echo "$as_me: WARNING: \"Using empty PREPDEFFLAG\"" >&2;} |
3216 |
|
PREPDEFFLAG=" " |
3217 |
|
fi |
3218 |
|
|
3291 |
|
echo "$as_me: error: Can't figure out working Fortran90 preprocessor define flag" >&2;} |
3292 |
|
{ (exit 1); exit 1; }; } |
3293 |
|
fi |
3294 |
+ |
fi |
3295 |
+ |
|
3296 |
+ |
ac_ext=f90 |
3297 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3298 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3299 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3300 |
+ |
|
3301 |
+ |
|
3302 |
+ |
|
3303 |
+ |
ac_ext=f90 |
3304 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3305 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3306 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3307 |
+ |
echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5 |
3308 |
+ |
echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6 |
3309 |
+ |
if test "${ac_cv_prog_f90_v+set}" = set; then |
3310 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3311 |
+ |
else |
3312 |
+ |
|
3313 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3314 |
+ |
|
3315 |
+ |
program main |
3316 |
+ |
|
3317 |
+ |
|
3318 |
+ |
end program main |
3319 |
+ |
|
3320 |
+ |
_ACEOF |
3321 |
+ |
rm -f conftest.$ac_objext |
3322 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3323 |
+ |
(eval $ac_compile) 2>&5 |
3324 |
+ |
ac_status=$? |
3325 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3326 |
+ |
(exit $ac_status); } && |
3327 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
3328 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3329 |
+ |
(eval $ac_try) 2>&5 |
3330 |
+ |
ac_status=$? |
3331 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3332 |
+ |
(exit $ac_status); }; }; then |
3333 |
+ |
ac_cv_prog_f90_v= |
3334 |
+ |
# Try some options frequently used verbose output |
3335 |
+ |
for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
3336 |
+ |
ac_ext=f90 |
3337 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3338 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3339 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3340 |
+ |
|
3341 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3342 |
+ |
|
3343 |
+ |
program main |
3344 |
+ |
|
3345 |
+ |
|
3346 |
+ |
end program main |
3347 |
+ |
|
3348 |
+ |
_ACEOF |
3349 |
+ |
|
3350 |
+ |
# Compile and link our simple test program by passing a flag (argument |
3351 |
+ |
# 1 to this macro) to the Fortran 90 compiler in order to get |
3352 |
+ |
# "verbose" output that we can then parse for the Fortran 90 linker |
3353 |
+ |
# flags. |
3354 |
+ |
ac_save_F90FLAGS=$F90FLAGS |
3355 |
+ |
F90FLAGS="$F90FLAGS $ac_verb" |
3356 |
+ |
|
3357 |
+ |
(eval echo $as_me:3357: \"$ac_link\") >&5 |
3358 |
+ |
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
3359 |
+ |
echo "$ac_f90_v_output" >&5 |
3360 |
+ |
F90FLAGS=$ac_save_F90FLAGS |
3361 |
+ |
|
3362 |
+ |
rm -f conftest.* |
3363 |
+ |
ac_ext=f90 |
3364 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3365 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3366 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3367 |
+ |
|
3368 |
+ |
# If we are using xlf then replace all the commas with spaces. |
3369 |
+ |
if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then |
3370 |
+ |
ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'` |
3371 |
|
fi |
3372 |
|
|
3373 |
+ |
# If we are using Cray Fortran then delete quotes. |
3374 |
+ |
# Use "\"" instead of '"' for font-lock-mode. |
3375 |
+ |
# FIXME: a more general fix for quoted arguments with spaces? |
3376 |
+ |
if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then |
3377 |
+ |
ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"` |
3378 |
+ |
fi |
3379 |
+ |
# look for -l* and *.a constructs in the output |
3380 |
+ |
for ac_arg in $ac_f90_v_output; do |
3381 |
+ |
case $ac_arg in |
3382 |
+ |
[\\/]*.a | ?:[\\/]*.a | -[lLRu]*) |
3383 |
+ |
ac_cv_prog_f90_v=$ac_verb |
3384 |
+ |
break 2 ;; |
3385 |
+ |
esac |
3386 |
+ |
done |
3387 |
+ |
done |
3388 |
+ |
if test -z "$ac_cv_prog_f90_v"; then |
3389 |
+ |
{ echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5 |
3390 |
+ |
echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;} |
3391 |
+ |
fi |
3392 |
+ |
else |
3393 |
+ |
echo "$as_me: failed program was:" >&5 |
3394 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3395 |
|
|
3396 |
+ |
{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5 |
3397 |
+ |
echo "$as_me: WARNING: compilation failed" >&2;} |
3398 |
+ |
fi |
3399 |
+ |
rm -f conftest.$ac_objext conftest.$ac_ext |
3400 |
+ |
|
3401 |
+ |
fi |
3402 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5 |
3403 |
+ |
echo "${ECHO_T}$ac_cv_prog_f90_v" >&6 |
3404 |
+ |
echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5 |
3405 |
+ |
echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6 |
3406 |
+ |
if test "${ac_cv_flibs+set}" = set; then |
3407 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3408 |
+ |
else |
3409 |
+ |
if test "x$F90LIBS" != "x"; then |
3410 |
+ |
ac_cv_f90libs="$F90LIBS" # Let the user override the test. |
3411 |
+ |
else |
3412 |
+ |
|
3413 |
+ |
ac_ext=f90 |
3414 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3415 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3416 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3417 |
+ |
|
3418 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3419 |
+ |
|
3420 |
+ |
program main |
3421 |
+ |
|
3422 |
+ |
|
3423 |
+ |
end program main |
3424 |
+ |
|
3425 |
+ |
_ACEOF |
3426 |
+ |
|
3427 |
+ |
# Compile and link our simple test program by passing a flag (argument |
3428 |
+ |
# 1 to this macro) to the Fortran 90 compiler in order to get |
3429 |
+ |
# "verbose" output that we can then parse for the Fortran 90 linker |
3430 |
+ |
# flags. |
3431 |
+ |
ac_save_F90FLAGS=$F90FLAGS |
3432 |
+ |
F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v" |
3433 |
+ |
|
3434 |
+ |
(eval echo $as_me:3434: \"$ac_link\") >&5 |
3435 |
+ |
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
3436 |
+ |
echo "$ac_f90_v_output" >&5 |
3437 |
+ |
F90FLAGS=$ac_save_F90FLAGS |
3438 |
+ |
|
3439 |
+ |
rm -f conftest.* |
3440 |
+ |
ac_ext=f90 |
3441 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3442 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3443 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3444 |
+ |
|
3445 |
+ |
# If we are using xlf then replace all the commas with spaces. |
3446 |
+ |
if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then |
3447 |
+ |
ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'` |
3448 |
+ |
fi |
3449 |
+ |
|
3450 |
+ |
# If we are using Cray Fortran then delete quotes. |
3451 |
+ |
# Use "\"" instead of '"' for font-lock-mode. |
3452 |
+ |
# FIXME: a more general fix for quoted arguments with spaces? |
3453 |
+ |
if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then |
3454 |
+ |
ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"` |
3455 |
+ |
fi |
3456 |
+ |
|
3457 |
+ |
ac_cv_f90libs= |
3458 |
+ |
|
3459 |
+ |
# Save positional arguments (if any) |
3460 |
+ |
ac_save_positional="$@" |
3461 |
+ |
|
3462 |
+ |
set X $ac_f90_v_output |
3463 |
+ |
while test $# != 1; do |
3464 |
+ |
shift |
3465 |
+ |
ac_arg=$1 |
3466 |
+ |
case $ac_arg in |
3467 |
+ |
[\\/]*.a | ?:[\\/]*.a) |
3468 |
+ |
ac_exists=false |
3469 |
+ |
for ac_i in $ac_cv_f90libs; do |
3470 |
+ |
if test x"$ac_arg" = x"$ac_i"; then |
3471 |
+ |
ac_exists=true |
3472 |
+ |
break |
3473 |
+ |
fi |
3474 |
+ |
done |
3475 |
+ |
|
3476 |
+ |
if test x"$ac_exists" = xtrue; then |
3477 |
+ |
: |
3478 |
+ |
else |
3479 |
+ |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
3480 |
+ |
fi |
3481 |
+ |
|
3482 |
+ |
;; |
3483 |
+ |
-bI:*) |
3484 |
+ |
ac_exists=false |
3485 |
+ |
for ac_i in $ac_cv_f90libs; do |
3486 |
+ |
if test x"$ac_arg" = x"$ac_i"; then |
3487 |
+ |
ac_exists=true |
3488 |
+ |
break |
3489 |
+ |
fi |
3490 |
+ |
done |
3491 |
+ |
|
3492 |
+ |
if test x"$ac_exists" = xtrue; then |
3493 |
+ |
: |
3494 |
+ |
else |
3495 |
+ |
if test "$ac_compiler_gnu" = yes; then |
3496 |
+ |
for ac_link_opt in $ac_arg; do |
3497 |
+ |
ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt" |
3498 |
+ |
done |
3499 |
+ |
else |
3500 |
+ |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
3501 |
+ |
fi |
3502 |
+ |
fi |
3503 |
+ |
|
3504 |
+ |
;; |
3505 |
+ |
# Ignore these flags. |
3506 |
+ |
-lang* | -lcrt[012].o | -lc | -lgcc | -LANG:=*) |
3507 |
+ |
;; |
3508 |
+ |
-lkernel32) |
3509 |
+ |
test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
3510 |
+ |
;; |
3511 |
+ |
-[LRuY]) |
3512 |
+ |
# These flags, when seen by themselves, take an argument. |
3513 |
+ |
# We remove the space between option and argument and re-iterate |
3514 |
+ |
# unless we find an empty arg or a new option (starting with -) |
3515 |
+ |
case $2 in |
3516 |
+ |
"" | -*);; |
3517 |
+ |
*) |
3518 |
+ |
ac_arg="$ac_arg$2" |
3519 |
+ |
|
3520 |
+ |
shift; shift |
3521 |
+ |
set X $ac_arg "$@" |
3522 |
+ |
;; |
3523 |
+ |
esac |
3524 |
+ |
;; |
3525 |
+ |
-YP,*) |
3526 |
+ |
for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
3527 |
+ |
ac_exists=false |
3528 |
+ |
for ac_i in $ac_cv_f90libs; do |
3529 |
+ |
if test x"$ac_j" = x"$ac_i"; then |
3530 |
+ |
ac_exists=true |
3531 |
+ |
break |
3532 |
+ |
fi |
3533 |
+ |
done |
3534 |
+ |
|
3535 |
+ |
if test x"$ac_exists" = xtrue; then |
3536 |
+ |
: |
3537 |
+ |
else |
3538 |
+ |
ac_arg="$ac_arg $ac_j" |
3539 |
+ |
ac_cv_f90libs="$ac_cv_f90libs $ac_j" |
3540 |
+ |
fi |
3541 |
+ |
|
3542 |
+ |
done |
3543 |
+ |
;; |
3544 |
+ |
-[lLR]*) |
3545 |
+ |
ac_exists=false |
3546 |
+ |
for ac_i in $ac_cv_f90libs; do |
3547 |
+ |
if test x"$ac_arg" = x"$ac_i"; then |
3548 |
+ |
ac_exists=true |
3549 |
+ |
break |
3550 |
+ |
fi |
3551 |
+ |
done |
3552 |
+ |
|
3553 |
+ |
if test x"$ac_exists" = xtrue; then |
3554 |
+ |
: |
3555 |
+ |
else |
3556 |
+ |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
3557 |
+ |
fi |
3558 |
+ |
|
3559 |
+ |
;; |
3560 |
+ |
# Ignore everything else. |
3561 |
+ |
esac |
3562 |
+ |
done |
3563 |
+ |
# restore positional arguments |
3564 |
+ |
set X $ac_save_positional; shift |
3565 |
+ |
|
3566 |
+ |
# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, |
3567 |
+ |
# then we insist that the "run path" must be an absolute path (i.e. it |
3568 |
+ |
# must begin with a "/"). |
3569 |
+ |
case `(uname -sr) 2>/dev/null` in |
3570 |
+ |
"SunOS 5"*) |
3571 |
+ |
ac_ld_run_path=`echo $ac_f90_v_output | |
3572 |
+ |
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
3573 |
+ |
test "x$ac_ld_run_path" != x && |
3574 |
+ |
|
3575 |
+ |
if test "$ac_compiler_gnu" = yes; then |
3576 |
+ |
for ac_link_opt in $ac_ld_run_path; do |
3577 |
+ |
ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt" |
3578 |
+ |
done |
3579 |
+ |
else |
3580 |
+ |
ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path" |
3581 |
+ |
fi |
3582 |
+ |
;; |
3583 |
+ |
esac |
3584 |
+ |
fi # test "x$F90LIBS" = "x" |
3585 |
+ |
|
3586 |
+ |
fi |
3587 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5 |
3588 |
+ |
echo "${ECHO_T}$ac_cv_flibs" >&6 |
3589 |
+ |
F90LIBS="$ac_cv_f90libs" |
3590 |
+ |
|
3591 |
+ |
ac_ext=f90 |
3592 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3593 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3594 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3595 |
+ |
|
3596 |
+ |
|
3597 |
+ |
echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5 |
3598 |
+ |
echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6 |
3599 |
+ |
if test "${ac_cv_f90_mangling+set}" = set; then |
3600 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3601 |
+ |
else |
3602 |
+ |
ac_ext=f90 |
3603 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3604 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3605 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3606 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3607 |
+ |
subroutine foobar() |
3608 |
+ |
return |
3609 |
+ |
end |
3610 |
+ |
subroutine foo_bar() |
3611 |
+ |
return |
3612 |
+ |
end |
3613 |
+ |
_ACEOF |
3614 |
+ |
rm -f conftest.$ac_objext |
3615 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3616 |
+ |
(eval $ac_compile) 2>&5 |
3617 |
+ |
ac_status=$? |
3618 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3619 |
+ |
(exit $ac_status); } && |
3620 |
+ |
{ ac_try='test -s conftest.$ac_objext' |
3621 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3622 |
+ |
(eval $ac_try) 2>&5 |
3623 |
+ |
ac_status=$? |
3624 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3625 |
+ |
(exit $ac_status); }; }; then |
3626 |
+ |
mv conftest.$ac_objext cf90_test.$ac_objext |
3627 |
+ |
|
3628 |
+ |
ac_ext=c |
3629 |
+ |
ac_cpp='$CPP $CPPFLAGS' |
3630 |
+ |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3631 |
+ |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3632 |
+ |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3633 |
+ |
|
3634 |
+ |
ac_save_LIBS=$LIBS |
3635 |
+ |
LIBS="cf90_test.$ac_objext $F90LIBS $LIBS" |
3636 |
+ |
|
3637 |
+ |
ac_success=no |
3638 |
+ |
for ac_foobar in foobar FOOBAR; do |
3639 |
+ |
for ac_underscore in "" "_"; do |
3640 |
+ |
ac_func="$ac_foobar$ac_underscore" |
3641 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3642 |
+ |
#line $LINENO "configure" |
3643 |
+ |
/* confdefs.h. */ |
3644 |
+ |
_ACEOF |
3645 |
+ |
cat confdefs.h >>conftest.$ac_ext |
3646 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
3647 |
+ |
/* end confdefs.h. */ |
3648 |
+ |
|
3649 |
+ |
/* Override any gcc2 internal prototype to avoid an error. */ |
3650 |
+ |
#ifdef __cplusplus |
3651 |
+ |
extern "C" |
3652 |
+ |
#endif |
3653 |
+ |
/* We use char because int might match the return type of a gcc2 |
3654 |
+ |
builtin and then its argument prototype would still apply. */ |
3655 |
+ |
char $ac_func (); |
3656 |
+ |
int |
3657 |
+ |
main () |
3658 |
+ |
{ |
3659 |
+ |
$ac_func (); |
3660 |
+ |
; |
3661 |
+ |
return 0; |
3662 |
+ |
} |
3663 |
+ |
_ACEOF |
3664 |
+ |
rm -f conftest.$ac_objext conftest$ac_exeext |
3665 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3666 |
+ |
(eval $ac_link) 2>&5 |
3667 |
+ |
ac_status=$? |
3668 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3669 |
+ |
(exit $ac_status); } && |
3670 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
3671 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3672 |
+ |
(eval $ac_try) 2>&5 |
3673 |
+ |
ac_status=$? |
3674 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3675 |
+ |
(exit $ac_status); }; }; then |
3676 |
+ |
ac_success=yes; break 2 |
3677 |
+ |
else |
3678 |
+ |
echo "$as_me: failed program was:" >&5 |
3679 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3680 |
+ |
|
3681 |
+ |
fi |
3682 |
+ |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3683 |
+ |
done |
3684 |
+ |
done |
3685 |
+ |
|
3686 |
+ |
if test "$ac_success" = "yes"; then |
3687 |
+ |
case $ac_foobar in |
3688 |
+ |
foobar) |
3689 |
+ |
ac_case=lower |
3690 |
+ |
ac_foo_bar=foo_bar |
3691 |
+ |
;; |
3692 |
+ |
FOOBAR) |
3693 |
+ |
ac_case=upper |
3694 |
+ |
ac_foo_bar=FOO_BAR |
3695 |
+ |
;; |
3696 |
+ |
esac |
3697 |
+ |
|
3698 |
+ |
ac_success_extra=no |
3699 |
+ |
for ac_extra in "" "_"; do |
3700 |
+ |
ac_func="$ac_foo_bar$ac_underscore$ac_extra" |
3701 |
+ |
|
3702 |
+ |
cat >conftest.$ac_ext <<_ACEOF |
3703 |
+ |
#line $LINENO "configure" |
3704 |
+ |
/* confdefs.h. */ |
3705 |
+ |
_ACEOF |
3706 |
+ |
cat confdefs.h >>conftest.$ac_ext |
3707 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
3708 |
+ |
/* end confdefs.h. */ |
3709 |
+ |
|
3710 |
+ |
/* Override any gcc2 internal prototype to avoid an error. */ |
3711 |
+ |
#ifdef __cplusplus |
3712 |
+ |
extern "C" |
3713 |
+ |
#endif |
3714 |
+ |
/* We use char because int might match the return type of a gcc2 |
3715 |
+ |
builtin and then its argument prototype would still apply. */ |
3716 |
+ |
char $ac_func (); |
3717 |
+ |
int |
3718 |
+ |
main () |
3719 |
+ |
{ |
3720 |
+ |
$ac_func (); |
3721 |
+ |
; |
3722 |
+ |
return 0; |
3723 |
+ |
} |
3724 |
+ |
_ACEOF |
3725 |
+ |
rm -f conftest.$ac_objext conftest$ac_exeext |
3726 |
+ |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3727 |
+ |
(eval $ac_link) 2>&5 |
3728 |
+ |
ac_status=$? |
3729 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3730 |
+ |
(exit $ac_status); } && |
3731 |
+ |
{ ac_try='test -s conftest$ac_exeext' |
3732 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3733 |
+ |
(eval $ac_try) 2>&5 |
3734 |
+ |
ac_status=$? |
3735 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3736 |
+ |
(exit $ac_status); }; }; then |
3737 |
+ |
ac_success_extra=yes; break |
3738 |
+ |
else |
3739 |
+ |
echo "$as_me: failed program was:" >&5 |
3740 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3741 |
+ |
|
3742 |
+ |
fi |
3743 |
+ |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3744 |
+ |
done |
3745 |
+ |
|
3746 |
+ |
if test "$ac_success_extra" = "yes"; then |
3747 |
+ |
ac_cv_f90_mangling="$ac_case case" |
3748 |
+ |
if test -z "$ac_underscore"; then |
3749 |
+ |
ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore" |
3750 |
+ |
else |
3751 |
+ |
ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore" |
3752 |
+ |
|
3753 |
+ |
fi |
3754 |
+ |
if test -z "$ac_extra"; then |
3755 |
+ |
ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore" |
3756 |
+ |
else |
3757 |
+ |
ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore" |
3758 |
+ |
fi |
3759 |
+ |
else |
3760 |
+ |
ac_cv_f90_mangling="unknown" |
3761 |
+ |
fi |
3762 |
+ |
else |
3763 |
+ |
ac_cv_f90_mangling="unknown" |
3764 |
+ |
|
3765 |
+ |
fi |
3766 |
+ |
|
3767 |
+ |
LIBS=$ac_save_LIBS |
3768 |
+ |
ac_ext=f90 |
3769 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3770 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3771 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3772 |
+ |
rm -f cf90_test* conftest* |
3773 |
+ |
else |
3774 |
+ |
echo "$as_me: failed program was:" >&5 |
3775 |
+ |
sed 's/^/| /' conftest.$ac_ext >&5 |
3776 |
+ |
|
3777 |
+ |
fi |
3778 |
+ |
rm -f conftest.$ac_objext conftest.$ac_ext |
3779 |
+ |
ac_ext=f90 |
3780 |
+ |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
3781 |
+ |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3782 |
+ |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
3783 |
+ |
|
3784 |
+ |
fi |
3785 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5 |
3786 |
+ |
echo "${ECHO_T}$ac_cv_f90_mangling" >&6 |
3787 |
+ |
|
3788 |
+ |
|
3789 |
+ |
|
3790 |
+ |
case $ac_cv_f90_mangling in |
3791 |
+ |
"lower case, no underscore, no extra underscore") |
3792 |
+ |
cat >>confdefs.h <<\_ACEOF |
3793 |
+ |
#define F90_FUNC(name,NAME) name |
3794 |
+ |
_ACEOF |
3795 |
+ |
|
3796 |
+ |
cat >>confdefs.h <<\_ACEOF |
3797 |
+ |
#define F90_FUNC_(name,NAME) name |
3798 |
+ |
_ACEOF |
3799 |
+ |
;; |
3800 |
+ |
"lower case, no underscore, extra underscore") |
3801 |
+ |
cat >>confdefs.h <<\_ACEOF |
3802 |
+ |
#define F90_FUNC(name,NAME) name |
3803 |
+ |
_ACEOF |
3804 |
+ |
|
3805 |
+ |
cat >>confdefs.h <<\_ACEOF |
3806 |
+ |
#define F90_FUNC_(name,NAME) name ## _ |
3807 |
+ |
_ACEOF |
3808 |
+ |
;; |
3809 |
+ |
"lower case, underscore, no extra underscore") |
3810 |
+ |
cat >>confdefs.h <<\_ACEOF |
3811 |
+ |
#define F90_FUNC(name,NAME) name ## _ |
3812 |
+ |
_ACEOF |
3813 |
+ |
|
3814 |
+ |
cat >>confdefs.h <<\_ACEOF |
3815 |
+ |
#define F90_FUNC_(name,NAME) name ## _ |
3816 |
+ |
_ACEOF |
3817 |
+ |
;; |
3818 |
+ |
"lower case, underscore, extra underscore") |
3819 |
+ |
cat >>confdefs.h <<\_ACEOF |
3820 |
+ |
#define F90_FUNC(name,NAME) name ## _ |
3821 |
+ |
_ACEOF |
3822 |
+ |
|
3823 |
+ |
cat >>confdefs.h <<\_ACEOF |
3824 |
+ |
#define F90_FUNC_(name,NAME) name ## __ |
3825 |
+ |
_ACEOF |
3826 |
+ |
;; |
3827 |
+ |
"upper case, no underscore, no extra underscore") |
3828 |
+ |
cat >>confdefs.h <<\_ACEOF |
3829 |
+ |
#define F90_FUNC(name,NAME) NAME |
3830 |
+ |
_ACEOF |
3831 |
+ |
|
3832 |
+ |
cat >>confdefs.h <<\_ACEOF |
3833 |
+ |
#define F90_FUNC_(name,NAME) NAME |
3834 |
+ |
_ACEOF |
3835 |
+ |
;; |
3836 |
+ |
"upper case, no underscore, extra underscore") |
3837 |
+ |
cat >>confdefs.h <<\_ACEOF |
3838 |
+ |
#define F90_FUNC(name,NAME) NAME |
3839 |
+ |
_ACEOF |
3840 |
+ |
|
3841 |
+ |
cat >>confdefs.h <<\_ACEOF |
3842 |
+ |
#define F90_FUNC_(name,NAME) NAME ## _ |
3843 |
+ |
_ACEOF |
3844 |
+ |
;; |
3845 |
+ |
"upper case, underscore, no extra underscore") |
3846 |
+ |
cat >>confdefs.h <<\_ACEOF |
3847 |
+ |
#define F90_FUNC(name,NAME) NAME ## _ |
3848 |
+ |
_ACEOF |
3849 |
+ |
|
3850 |
+ |
cat >>confdefs.h <<\_ACEOF |
3851 |
+ |
#define F90_FUNC_(name,NAME) NAME ## _ |
3852 |
+ |
_ACEOF |
3853 |
+ |
;; |
3854 |
+ |
"upper case, underscore, extra underscore") |
3855 |
+ |
cat >>confdefs.h <<\_ACEOF |
3856 |
+ |
#define F90_FUNC(name,NAME) NAME ## _ |
3857 |
+ |
_ACEOF |
3858 |
+ |
|
3859 |
+ |
cat >>confdefs.h <<\_ACEOF |
3860 |
+ |
#define F90_FUNC_(name,NAME) NAME ## __ |
3861 |
+ |
_ACEOF |
3862 |
+ |
;; |
3863 |
+ |
*) |
3864 |
+ |
{ echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5 |
3865 |
+ |
echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;} |
3866 |
+ |
;; |
3867 |
+ |
esac |
3868 |
+ |
|
3869 |
+ |
|
3870 |
+ |
|
3871 |
+ |
|
3872 |
+ |
|
3873 |
+ |
echo "$as_me:$LINENO: checking for module suffix" >&5 |
3874 |
+ |
echo $ECHO_N "checking for module suffix... $ECHO_C" >&6 |
3875 |
+ |
rm -f conftest* |
3876 |
+ |
# Intel ifc compiler generates files by the name of work.pc and work.pcl (!) |
3877 |
+ |
rm -f work* |
3878 |
+ |
cat >conftest.f90 <<EOF |
3879 |
+ |
module conftest |
3880 |
+ |
integer n |
3881 |
+ |
parameter (n=1) |
3882 |
+ |
end module conftest |
3883 |
+ |
EOF |
3884 |
+ |
# SGI and absoft compilers generates module name in upper case! |
3885 |
+ |
testname="conftest" |
3886 |
+ |
modcase="lower" |
3887 |
+ |
if $F90 -c conftest.f90 > conftest.out 2>&1 ; then |
3888 |
+ |
MOD=`ls conftest* | grep -v conftest.f | grep -v conftest.o` |
3889 |
+ |
MOD=`echo "$MOD" | sed -e 's/conftest\.//g'` |
3890 |
+ |
if test -z "$MOD" ; then |
3891 |
+ |
MOD=`ls CONFTEST* 2>/dev/null \ |
3892 |
+ |
| grep -v CONFTEST.f | grep -v CONFTEST.o` |
3893 |
+ |
MOD=`echo "$MOD" | sed -e 's/CONFTEST\.//g'` |
3894 |
+ |
if test -n "$MOD" ; then |
3895 |
+ |
testname="CONFTEST" |
3896 |
+ |
modcase="upper" |
3897 |
+ |
fi |
3898 |
+ |
fi |
3899 |
+ |
if test -z "$MOD" ; then |
3900 |
+ |
echo "$as_me:$LINENO: result: unknown" >&5 |
3901 |
+ |
echo "${ECHO_T}unknown" >&6 |
3902 |
+ |
# Use mod if we can't figure it out |
3903 |
+ |
MOD="mod" |
3904 |
+ |
else |
3905 |
+ |
echo "$as_me:$LINENO: result: $MOD" >&5 |
3906 |
+ |
echo "${ECHO_T}$MOD" >&6 |
3907 |
+ |
fi |
3908 |
+ |
if test -s work.pcl ; then |
3909 |
+ |
{ echo "$as_me:$LINENO: WARNING: Compiler generates auxillery files!" >&5 |
3910 |
+ |
echo "$as_me: WARNING: Compiler generates auxillery files!" >&2;} |
3911 |
+ |
fi |
3912 |
+ |
else |
3913 |
+ |
echo "$as_me:$LINENO: result: unknown" >&5 |
3914 |
+ |
echo "${ECHO_T}unknown" >&6 |
3915 |
+ |
fi |
3916 |
+ |
|
3917 |
+ |
|
3918 |
+ |
|
3919 |
+ |
|
3920 |
+ |
|
3921 |
+ |
# Check for module include path (some use -I, some (Solaris) use -M, some |
3922 |
+ |
# (absoft) use -p). |
3923 |
+ |
# Intel compilers use a wierd system: -cl,filename.pcl . If no file is |
3924 |
+ |
# specified, work.pcl and work.pc are created. However, if you specify |
3925 |
+ |
# a file, it must contain a the name of a file ending in .pc . Ugh! |
3926 |
+ |
# Use the module made above |
3927 |
+ |
echo "$as_me:$LINENO: checking for module directory path flag" >&5 |
3928 |
+ |
echo $ECHO_N "checking for module directory path flag... $ECHO_C" >&6 |
3929 |
+ |
rm -f conftest* |
3930 |
+ |
# Intel ifc compiler generates files by the name of work.pc and work.pcl (!) |
3931 |
+ |
rm -f work* |
3932 |
+ |
cat >conftest.f90 <<EOF |
3933 |
+ |
module conftest |
3934 |
+ |
integer n |
3935 |
+ |
parameter (n=1) |
3936 |
+ |
end module conftest |
3937 |
+ |
EOF |
3938 |
+ |
# SGI and absoft compilers generates module name in upper case! |
3939 |
+ |
testname="conftest" |
3940 |
+ |
if $F90 -c conftest.f90 > conftest.out 2>&1 ; then |
3941 |
+ |
mod=`ls CONFTEST* 2>/dev/null | grep -v CONFTEST.f | grep -v CONFTEST.o` |
3942 |
+ |
mod=`echo "$mod" | sed -e 's/CONFTEST\.//g'` |
3943 |
+ |
if test -n "$mod" ; then |
3944 |
+ |
testname="CONFTEST" |
3945 |
+ |
fi |
3946 |
+ |
madedir=0 |
3947 |
+ |
if test ! -d conf ; then mkdir conf ; madedir=1; fi |
3948 |
+ |
cp $testname.$MOD conf |
3949 |
+ |
rm -f conftest* CONFTEST* |
3950 |
+ |
cat >conftest1.f90 <<EOF |
3951 |
+ |
program main |
3952 |
+ |
use conftest |
3953 |
+ |
print *, n |
3954 |
+ |
end |
3955 |
+ |
EOF |
3956 |
+ |
F90_WORK_FILES_ARG="" |
3957 |
+ |
F90MODINCSPEC="" |
3958 |
+ |
if $F90 -c -Iconf conftest1.f90 > conftest.out 2>&1 ; then |
3959 |
+ |
MODDIRFLAG="-I" |
3960 |
+ |
F90MODINCSPEC="-I<dir>" |
3961 |
+ |
echo "$as_me:$LINENO: result: -I" >&5 |
3962 |
+ |
echo "${ECHO_T}-I" >&6 |
3963 |
+ |
elif $F90 -c -Mconf conftest1.f90 >> conftest.out 2>&1 ; then |
3964 |
+ |
MODDIRFLAG="-M" |
3965 |
+ |
F90MODINCSPEC="-M<dir>" |
3966 |
+ |
echo "$as_me:$LINENO: result: -M" >&5 |
3967 |
+ |
echo "${ECHO_T}-M" >&6 |
3968 |
+ |
elif $F90 -c -pconf conftest1.f90 >> conftest.out 2>&1 ; then |
3969 |
+ |
MODDIRFLAG="-p" |
3970 |
+ |
F90MODINCSPEC="-p<dir>" |
3971 |
+ |
echo "$as_me:$LINENO: result: -p" >&5 |
3972 |
+ |
echo "${ECHO_T}-p" >&6 |
3973 |
+ |
elif test -s work.pc ; then |
3974 |
+ |
cp work.pc conf/mpimod.pc |
3975 |
+ |
echo "mpimod.pc" > conf/mpimod.pcl |
3976 |
+ |
echo "`pwd`/conf/mpimod.pc" >> conf/mpimod.pcl |
3977 |
+ |
if $F90 -c -cl,conf/mpimod.pcl conftest1.f >>conftest.out 2>&1 ; then |
3978 |
+ |
MODDIRFLAG='-cl,mpimod.pcl' |
3979 |
+ |
echo "$as_me:$LINENO: result: -cl,filename where filename contains a list of files and directories" >&5 |
3980 |
+ |
echo "${ECHO_T}-cl,filename where filename contains a list of files and directories" >&6 |
3981 |
+ |
F90_WORK_FILES_ARG="-cl,mpimod.pcl" |
3982 |
+ |
F90MODINCSPEC="-cl,<dir>/<file>mod.pcl" |
3983 |
+ |
|
3984 |
+ |
else |
3985 |
+ |
# The version of the Intel compiler that I have refuses to let |
3986 |
+ |
# you put the "work catalog" list anywhere but the current |
3987 |
+ |
# directory. For example, you cannot in |
3988 |
+ |
: |
3989 |
+ |
fi |
3990 |
+ |
fi |
3991 |
+ |
if test -z "MODDIRFLAG" ; then |
3992 |
+ |
echo "$as_me:$LINENO: result: unknown" >&5 |
3993 |
+ |
echo "${ECHO_T}unknown" >&6 |
3994 |
+ |
fi |
3995 |
+ |
|
3996 |
+ |
|
3997 |
+ |
rm -f conftest* conf/conftest* conf/CONFTEST* CONFTEST* conf/mpimod* |
3998 |
+ |
if test $madedir = 1 ; then rmdir conf ; fi |
3999 |
+ |
fi |
4000 |
+ |
|
4001 |
+ |
|
4002 |
+ |
|
4003 |
+ |
|
4004 |
|
case $debug in |
4005 |
|
1) |
4006 |
|
;; |
4007 |
|
*) |
4008 |
+ |
|
4009 |
+ |
|
4010 |
+ |
|
4011 |
+ |
|
4012 |
+ |
|
4013 |
+ |
|
4014 |
+ |
echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5 |
4015 |
+ |
echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6 |
4016 |
+ |
if test "${ac_cv_prog_really_gcc+set}" = set; then |
4017 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4018 |
+ |
else |
4019 |
|
|
4020 |
+ |
cat > conftest.c <<EOF |
4021 |
+ |
#ifdef __GNUC__ |
4022 |
+ |
#ifndef __INTEL_COMPILER |
4023 |
+ |
yes; |
4024 |
+ |
#endif |
4025 |
+ |
#endif |
4026 |
+ |
EOF |
4027 |
+ |
if { ac_try='${CC-cc} -E conftest.c' |
4028 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4029 |
+ |
(eval $ac_try) 2>&5 |
4030 |
+ |
ac_status=$? |
4031 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4032 |
+ |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
4033 |
+ |
ac_cv_prog_really_gcc=yes |
4034 |
+ |
else |
4035 |
+ |
ac_cv_prog_really_gcc=no |
4036 |
+ |
fi |
4037 |
|
|
4038 |
+ |
fi |
4039 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5 |
4040 |
+ |
echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6 |
4041 |
+ |
if test "$ac_cv_prog_really_gcc" = yes; then |
4042 |
+ |
: |
4043 |
|
|
4044 |
+ |
else |
4045 |
+ |
: |
4046 |
|
|
4047 |
+ |
fi |
4048 |
+ |
|
4049 |
+ |
|
4050 |
|
# Try to determine "good" native compiler flags if none specified on command |
4051 |
|
# line |
4052 |
|
if test "$ac_test_CFLAGS" != "set"; then |
4086 |
|
fi;; |
4087 |
|
*darwin*) |
4088 |
|
if test "$CC" = xlc -o "$CC" = cc; then |
4089 |
< |
CFLAGS="-O3 -qtune=auto -w" |
3292 |
< |
echo "*******************************************************" |
3293 |
< |
echo "* You have Darwin on an unknown powerpc system. *" |
3294 |
< |
echo "* It is recommended that you use *" |
3295 |
< |
echo "* *" |
3296 |
< |
echo "* CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
3297 |
< |
echo "* ^^^ *" |
3298 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
3299 |
< |
echo "* PowerPC CPU you have. For more info, man cc. *" |
3300 |
< |
echo "*******************************************************" |
4089 |
> |
CFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
4090 |
|
fi;; |
4091 |
|
esac |
4092 |
|
|
4093 |
|
# use default flags for gcc on all systems |
4094 |
< |
if test $ac_cv_c_compiler_gnu = yes; then |
4094 |
> |
if test $ac_cv_prog_really_gcc = yes; then |
4095 |
|
CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
4096 |
|
fi |
4097 |
|
|
4098 |
|
# test for gcc-specific flags: |
4099 |
< |
if test $ac_cv_c_compiler_gnu = yes; then |
4099 |
> |
if test $ac_cv_prog_really_gcc = yes; then |
4100 |
|
# -malign-double for x86 systems |
4101 |
|
|
4102 |
|
|
4154 |
|
fi |
4155 |
|
|
4156 |
|
CPU_FLAGS="" |
4157 |
< |
if test "$GCC" = "yes"; then |
4157 |
> |
if test $ac_cv_prog_really_gcc = yes; then |
4158 |
|
case "${host_cpu}" in |
4159 |
|
i586*) |
4160 |
|
|
4300 |
|
else |
4301 |
|
|
4302 |
|
cat > conftest.c <<EOF |
4303 |
< |
#ifdef __GNUC__ |
4303 |
> |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
4304 |
|
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
4305 |
|
yes; |
4306 |
|
# endif |
4464 |
|
fi |
4465 |
|
|
4466 |
|
|
4467 |
+ |
fi |
4468 |
+ |
|
4469 |
+ |
|
4470 |
+ |
|
4471 |
+ |
|
4472 |
+ |
|
4473 |
+ |
|
4474 |
+ |
|
4475 |
+ |
echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5 |
4476 |
+ |
echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6 |
4477 |
+ |
if test "${ac_cv_prog_really_gxx+set}" = set; then |
4478 |
+ |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4479 |
+ |
else |
4480 |
+ |
|
4481 |
+ |
cat > conftest.cpp <<EOF |
4482 |
+ |
#ifdef __GNUC__ |
4483 |
+ |
#ifndef __INTEL_COMPILER |
4484 |
+ |
yes; |
4485 |
+ |
#endif |
4486 |
+ |
#endif |
4487 |
+ |
EOF |
4488 |
+ |
if { ac_try='${CXX-c++} -E conftest.cpp' |
4489 |
+ |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4490 |
+ |
(eval $ac_try) 2>&5 |
4491 |
+ |
ac_status=$? |
4492 |
+ |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4493 |
+ |
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
4494 |
+ |
ac_cv_prog_really_gxx=yes |
4495 |
+ |
else |
4496 |
+ |
ac_cv_prog_really_gxx=no |
4497 |
|
fi |
4498 |
|
|
4499 |
+ |
fi |
4500 |
+ |
echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5 |
4501 |
+ |
echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6 |
4502 |
+ |
if test "$ac_cv_prog_really_gxx" = yes; then |
4503 |
+ |
: |
4504 |
|
|
4505 |
+ |
else |
4506 |
+ |
: |
4507 |
|
|
4508 |
+ |
fi |
4509 |
|
|
4510 |
|
|
4511 |
|
# Try to determine "good" native compiler flags if none specified on command |
4537 |
|
echo "*******************************************************" |
4538 |
|
fi;; |
4539 |
|
*darwin*) |
4540 |
< |
if test "$CXX" = xlC; then |
4541 |
< |
CXXFLAGS="-O3 -qtune=auto -qansialias -w" |
3715 |
< |
echo "*******************************************************" |
3716 |
< |
echo "* You have AIX on an unknown powerpc system. It is *" |
3717 |
< |
echo "* recommended that you use *" |
3718 |
< |
echo "* *" |
3719 |
< |
echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
3720 |
< |
echo "* ^^^ *" |
3721 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
3722 |
< |
echo "* PowerPC CPU you have. For more info, man cc. *" |
3723 |
< |
echo "*******************************************************" |
4540 |
> |
if test "$CXX" = xlc++; then |
4541 |
> |
CXXFLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto -qaltivec" |
4542 |
|
fi;; |
4543 |
|
esac |
4544 |
|
|
4545 |
|
# use default flags for gcc on all systems |
4546 |
< |
if test $ac_cv_c_compiler_gnu = yes; then |
4546 |
> |
if test $ac_cv_prog_really_gxx = yes; then |
4547 |
|
CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic" |
4548 |
|
fi |
4549 |
|
|
4550 |
|
# test for gcc-specific flags: |
4551 |
< |
if test $ac_cv_c_compiler_gnu = yes; then |
4551 |
> |
if test $ac_cv_prog_really_gxx = yes; then |
4552 |
|
# -malign-double for x86 systems |
4553 |
|
|
4554 |
|
|
4606 |
|
fi |
4607 |
|
|
4608 |
|
CPU_FLAGS="" |
4609 |
< |
if test "$GCC" = "yes"; then |
4609 |
> |
if test $ac_cv_prog_really_gxx = yes; then |
4610 |
|
case "${host_cpu}" in |
4611 |
|
i586*) |
4612 |
|
|
4613 |
< |
echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5 |
4614 |
< |
echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6 |
4613 |
> |
echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5 |
4614 |
> |
echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6 |
4615 |
|
if test "${ac_cpu_pentium+set}" = set; then |
4616 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4617 |
|
else |
4618 |
< |
echo 'void f(){}' > conftest.c |
4619 |
< |
if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then |
4618 |
> |
echo 'void f(){}' > conftest.cpp |
4619 |
> |
if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then |
4620 |
|
ac_cpu_pentium=yes |
4621 |
|
else |
4622 |
|
ac_cpu_pentium=no |
4745 |
|
elif test "$cputype" = 750; then |
4746 |
|
|
4747 |
|
|
4748 |
< |
echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5 |
4749 |
< |
echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6 |
4750 |
< |
if test "${ac_cv_prog_gcc_2_95+set}" = set; then |
4748 |
> |
echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5 |
4749 |
> |
echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6 |
4750 |
> |
if test "${ac_cv_prog_gxx_2_95+set}" = set; then |
4751 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4752 |
|
else |
4753 |
|
|
4754 |
< |
cat > conftest.c <<EOF |
4755 |
< |
#ifdef __GNUC__ |
4754 |
> |
cat > conftest.cpp <<EOF |
4755 |
> |
#ifdef __GNUC__ && !defined (__INTEL_COMPILER) |
4756 |
|
# if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) |
4757 |
|
yes; |
4758 |
|
# endif |
4759 |
|
#endif |
4760 |
|
EOF |
4761 |
< |
if { ac_try='${CC-cc} -E conftest.c' |
4761 |
> |
if { ac_try='${CXX-c++} -E conftest.cpp' |
4762 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4763 |
|
(eval $ac_try) 2>&5 |
4764 |
|
ac_status=$? |
4765 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4766 |
|
(exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then |
4767 |
< |
ac_cv_prog_gcc_2_95=yes |
4767 |
> |
ac_cv_prog_gxx_2_95=yes |
4768 |
|
else |
4769 |
< |
ac_cv_prog_gcc_2_95=no |
4769 |
> |
ac_cv_prog_gxx_2_95=no |
4770 |
|
fi |
4771 |
|
|
4772 |
|
fi |
4773 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5 |
4774 |
< |
echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6 |
4775 |
< |
if test "$ac_cv_prog_gcc_2_95" = yes; then |
4773 |
> |
echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5 |
4774 |
> |
echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6 |
4775 |
> |
if test "$ac_cv_prog_gxx_2_95" = yes; then |
4776 |
|
: |
4777 |
|
|
4778 |
|
|
4925 |
|
# Try to determine "good" native compiler flags if none specified on command |
4926 |
|
# line |
4927 |
|
|
4928 |
< |
if test x"$F90FLAGS" == x ; then |
4928 |
> |
if test x"$F90FLAGS" = x ; then |
4929 |
|
F90FLAGS="" |
4930 |
|
case "${host_cpu}-${host_os}" in |
4931 |
|
|
4932 |
< |
*linux*) if test "$F90" = ifc; then |
4932 |
> |
*linux*) if test "$F90" = ifc -o "$F90" = ifort; then |
4933 |
|
F90FLAGS="-O" |
4934 |
|
fi;; |
4935 |
|
rs6000*-aix*) if test "$F90" = xlf90 -o "$F90" = f90; then |
4949 |
|
echo "*******************************************************" |
4950 |
|
fi;; |
4951 |
|
*darwin*) |
4952 |
< |
if test "$F90" = f90 -o "$F90" = xlf90; then |
4953 |
< |
F90FLAGS="-O3 -qtune=auto -w" |
4136 |
< |
echo "*********************************************************" |
4137 |
< |
echo "* You have Darwin on an unknown powerpc system. It is *" |
4138 |
< |
echo "* recommended that you use *" |
4139 |
< |
echo "* *" |
4140 |
< |
echo "* CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w *" |
4141 |
< |
echo "* ^^^ *" |
4142 |
< |
echo "* where xxx is 601, 603, 604, or whatever kind of *" |
4143 |
< |
echo "* PowerPC CPU you have. For more info, man xlf. *" |
4144 |
< |
echo "*********************************************************" |
4952 |
> |
if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then |
4953 |
> |
F90FLAGS="-qthreaded -O5 -qtune=auto -qarch=auto -qunroll=auto" |
4954 |
|
fi;; |
4955 |
|
esac |
4956 |
|
|
4996 |
|
ac_guessed_f90flags=no |
4997 |
|
fi |
4998 |
|
rm -f conftest* |
4999 |
< |
ac_ext=c |
5000 |
< |
ac_cpp='$CPP $CPPFLAGS' |
5001 |
< |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5002 |
< |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4194 |
< |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4999 |
> |
ac_ext=f90 |
5000 |
> |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5001 |
> |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5002 |
> |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5003 |
|
|
5004 |
|
|
5005 |
|
fi |
5265 |
|
test -n "$YACC" && break |
5266 |
|
done |
5267 |
|
test -n "$YACC" || YACC="yacc" |
4460 |
– |
|
5268 |
|
|
5269 |
|
for ac_prog in flex lex |
5270 |
|
do |
5317 |
|
ac_check_lib_save_LIBS=$LIBS |
5318 |
|
LIBS="-lfl $LIBS" |
5319 |
|
cat >conftest.$ac_ext <<_ACEOF |
4513 |
– |
#line $LINENO "configure" |
4514 |
– |
/* confdefs.h. */ |
4515 |
– |
_ACEOF |
4516 |
– |
cat confdefs.h >>conftest.$ac_ext |
4517 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
4518 |
– |
/* end confdefs.h. */ |
5320 |
|
|
5321 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
5322 |
< |
#ifdef __cplusplus |
5323 |
< |
extern "C" |
5324 |
< |
#endif |
5325 |
< |
/* We use char because int might match the return type of a gcc2 |
4525 |
< |
builtin and then its argument prototype would still apply. */ |
4526 |
< |
char yywrap (); |
4527 |
< |
int |
4528 |
< |
main () |
4529 |
< |
{ |
4530 |
< |
yywrap (); |
4531 |
< |
; |
4532 |
< |
return 0; |
4533 |
< |
} |
5321 |
> |
program main |
5322 |
> |
|
5323 |
> |
call yywrap |
5324 |
> |
end program main |
5325 |
> |
|
5326 |
|
_ACEOF |
5327 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5328 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5359 |
|
ac_check_lib_save_LIBS=$LIBS |
5360 |
|
LIBS="-ll $LIBS" |
5361 |
|
cat >conftest.$ac_ext <<_ACEOF |
4570 |
– |
#line $LINENO "configure" |
4571 |
– |
/* confdefs.h. */ |
4572 |
– |
_ACEOF |
4573 |
– |
cat confdefs.h >>conftest.$ac_ext |
4574 |
– |
cat >>conftest.$ac_ext <<_ACEOF |
4575 |
– |
/* end confdefs.h. */ |
5362 |
|
|
5363 |
< |
/* Override any gcc2 internal prototype to avoid an error. */ |
5364 |
< |
#ifdef __cplusplus |
5365 |
< |
extern "C" |
5366 |
< |
#endif |
5367 |
< |
/* We use char because int might match the return type of a gcc2 |
4582 |
< |
builtin and then its argument prototype would still apply. */ |
4583 |
< |
char yywrap (); |
4584 |
< |
int |
4585 |
< |
main () |
4586 |
< |
{ |
4587 |
< |
yywrap (); |
4588 |
< |
; |
4589 |
< |
return 0; |
4590 |
< |
} |
5363 |
> |
program main |
5364 |
> |
|
5365 |
> |
call yywrap |
5366 |
> |
end program main |
5367 |
> |
|
5368 |
|
_ACEOF |
5369 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5370 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5576 |
|
exit 1 |
5577 |
|
fi |
5578 |
|
|
4802 |
– |
ac_ext=f90 |
4803 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4804 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4805 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5579 |
|
|
5580 |
|
|
5581 |
< |
|
5582 |
< |
ac_ext=f90 |
5583 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5584 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4812 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4813 |
< |
echo "$as_me:$LINENO: checking how to get verbose linking output from $F90" >&5 |
4814 |
< |
echo $ECHO_N "checking how to get verbose linking output from $F90... $ECHO_C" >&6 |
4815 |
< |
if test "${ac_cv_prog_f90_v+set}" = set; then |
4816 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5581 |
> |
# Check whether --with-mpi or --without-mpi was given. |
5582 |
> |
if test "${with_mpi+set}" = set; then |
5583 |
> |
withval="$with_mpi" |
5584 |
> |
with_mpi=$withval |
5585 |
|
else |
5586 |
+ |
with_mpi="no" |
5587 |
+ |
fi; |
5588 |
|
|
5589 |
< |
cat >conftest.$ac_ext <<_ACEOF |
5589 |
> |
case "x$with_mpi" in |
5590 |
> |
xyes | "x") USE_MPI=yes;; |
5591 |
> |
xno) USE_MPI=no ;; |
5592 |
> |
*) MPI="$with_mpi"; USE_MPI=yes ;; |
5593 |
> |
esac |
5594 |
> |
if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then |
5595 |
> |
MPI="/usr/local" |
5596 |
> |
fi |
5597 |
> |
if test "$USE_MPI" = "yes"; then |
5598 |
> |
echo "MPI = $MPI" |
5599 |
|
|
4821 |
– |
program main |
5600 |
|
|
5601 |
< |
|
5602 |
< |
end program main |
5603 |
< |
|
4826 |
< |
_ACEOF |
4827 |
< |
rm -f conftest.$ac_objext |
4828 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4829 |
< |
(eval $ac_compile) 2>&5 |
4830 |
< |
ac_status=$? |
4831 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4832 |
< |
(exit $ac_status); } && |
4833 |
< |
{ ac_try='test -s conftest.$ac_objext' |
4834 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4835 |
< |
(eval $ac_try) 2>&5 |
4836 |
< |
ac_status=$? |
4837 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4838 |
< |
(exit $ac_status); }; }; then |
4839 |
< |
ac_cv_prog_f90_v= |
4840 |
< |
# Try some options frequently used verbose output |
4841 |
< |
for ac_verb in -v -verbose --verbose -V -\#\#\#; do |
4842 |
< |
ac_ext=f90 |
4843 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4844 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4845 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5601 |
> |
# Set variables... |
5602 |
> |
MPI_LIB_DIR="$MPI/lib" |
5603 |
> |
MPI_INC_DIR="$MPI/include" |
5604 |
|
|
4847 |
– |
cat >conftest.$ac_ext <<_ACEOF |
5605 |
|
|
4849 |
– |
program main |
5606 |
|
|
5607 |
< |
|
5608 |
< |
end program main |
5609 |
< |
|
5610 |
< |
_ACEOF |
5611 |
< |
|
5612 |
< |
# Compile and link our simple test program by passing a flag (argument |
5613 |
< |
# 1 to this macro) to the Fortran 90 compiler in order to get |
5614 |
< |
# "verbose" output that we can then parse for the Fortran 90 linker |
5615 |
< |
# flags. |
5616 |
< |
ac_save_F90FLAGS=$F90FLAGS |
5617 |
< |
F90FLAGS="$F90FLAGS $ac_verb" |
5618 |
< |
|
4863 |
< |
(eval echo $as_me:4863: \"$ac_link\") >&5 |
4864 |
< |
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
4865 |
< |
echo "$ac_f90_v_output" >&5 |
4866 |
< |
F90FLAGS=$ac_save_F90FLAGS |
4867 |
< |
|
4868 |
< |
rm -f conftest.* |
4869 |
< |
ac_ext=f90 |
4870 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4871 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4872 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4873 |
< |
|
4874 |
< |
# If we are using xlf then replace all the commas with spaces. |
4875 |
< |
if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then |
4876 |
< |
ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'` |
5607 |
> |
echo "$as_me:$LINENO: checking for mpi.h" >&5 |
5608 |
> |
echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6 |
5609 |
> |
have_mpi_h=0 |
5610 |
> |
echo '#include <mpi.h>' > conftest.cc |
5611 |
> |
if test -z "`${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1`"; then |
5612 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
5613 |
> |
echo "${ECHO_T}yes" >&6 |
5614 |
> |
have_mpi_h=1 |
5615 |
> |
else |
5616 |
> |
echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
5617 |
> |
echo "${ECHO_T}no! Check MPI include paths" >&6 |
5618 |
> |
USE_MPI="no" |
5619 |
|
fi |
5620 |
+ |
rm -f conftest* |
5621 |
+ |
if test "$have_mpi_h" = 1; then |
5622 |
|
|
5623 |
< |
# If we are using Cray Fortran then delete quotes. |
5624 |
< |
# Use "\"" instead of '"' for font-lock-mode. |
5625 |
< |
# FIXME: a more general fix for quoted arguments with spaces? |
4882 |
< |
if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then |
4883 |
< |
ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"` |
4884 |
< |
fi |
4885 |
< |
# look for -l* and *.a constructs in the output |
4886 |
< |
for ac_arg in $ac_f90_v_output; do |
4887 |
< |
case $ac_arg in |
4888 |
< |
[\\/]*.a | ?:[\\/]*.a | -[lLRu]*) |
4889 |
< |
ac_cv_prog_f90_v=$ac_verb |
4890 |
< |
break 2 ;; |
4891 |
< |
esac |
4892 |
< |
done |
4893 |
< |
done |
4894 |
< |
if test -z "$ac_cv_prog_f90_v"; then |
4895 |
< |
{ echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F90" >&5 |
4896 |
< |
echo "$as_me: WARNING: cannot determine how to obtain linking information from $F90" >&2;} |
4897 |
< |
fi |
4898 |
< |
else |
4899 |
< |
echo "$as_me: failed program was:" >&5 |
4900 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
5623 |
> |
cat >>confdefs.h <<\_ACEOF |
5624 |
> |
#define HAVE_MPI_H 1 |
5625 |
> |
_ACEOF |
5626 |
|
|
4902 |
– |
{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5 |
4903 |
– |
echo "$as_me: WARNING: compilation failed" >&2;} |
5627 |
|
fi |
4905 |
– |
rm -f conftest.$ac_objext conftest.$ac_ext |
5628 |
|
|
5629 |
< |
fi |
5630 |
< |
echo "$as_me:$LINENO: result: $ac_cv_prog_f90_v" >&5 |
5631 |
< |
echo "${ECHO_T}$ac_cv_prog_f90_v" >&6 |
5632 |
< |
echo "$as_me:$LINENO: checking for Fortran 90 libraries" >&5 |
5633 |
< |
echo $ECHO_N "checking for Fortran 90 libraries... $ECHO_C" >&6 |
5634 |
< |
if test "${ac_cv_flibs+set}" = set; then |
5635 |
< |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5629 |
> |
echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5 |
5630 |
> |
echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6 |
5631 |
> |
have_mpif_h=0 |
5632 |
> |
rm -f conftest* |
5633 |
> |
cat >conftest.f90 <<EOF |
5634 |
> |
program main |
5635 |
> |
include 'mpif.h' |
5636 |
> |
end |
5637 |
> |
EOF |
5638 |
> |
if $F90 -I$MPI_INC_DIR -c conftest.f90 > conftest.out 2>&1 ; then |
5639 |
> |
echo "$as_me:$LINENO: result: yes" >&5 |
5640 |
> |
echo "${ECHO_T}yes" >&6 |
5641 |
> |
MPI_F90_INC="$MPI_INC_DIR" |
5642 |
> |
have_mpif_h=1 |
5643 |
|
else |
5644 |
< |
if test "x$F90LIBS" != "x"; then |
5645 |
< |
ac_cv_f90libs="$F90LIBS" # Let the user override the test. |
5646 |
< |
else |
5644 |
> |
if test -s conftest.out ; then |
5645 |
> |
cat conftest.out >> config.log |
5646 |
> |
fi |
5647 |
> |
echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5 |
5648 |
> |
echo "${ECHO_T}no! Check MPI include paths" >&6 |
5649 |
> |
USE_MPI="no" |
5650 |
> |
fi |
5651 |
> |
rm -f conftest* |
5652 |
|
|
5653 |
< |
ac_ext=f90 |
4920 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4921 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4922 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5653 |
> |
if test "$have_mpif_h" = 1; then |
5654 |
|
|
5655 |
< |
cat >conftest.$ac_ext <<_ACEOF |
5656 |
< |
|
4926 |
< |
program main |
4927 |
< |
|
4928 |
< |
|
4929 |
< |
end program main |
4930 |
< |
|
5655 |
> |
cat >>confdefs.h <<\_ACEOF |
5656 |
> |
#define HAVE_MPIF_H 1 |
5657 |
|
_ACEOF |
5658 |
|
|
4933 |
– |
# Compile and link our simple test program by passing a flag (argument |
4934 |
– |
# 1 to this macro) to the Fortran 90 compiler in order to get |
4935 |
– |
# "verbose" output that we can then parse for the Fortran 90 linker |
4936 |
– |
# flags. |
4937 |
– |
ac_save_F90FLAGS=$F90FLAGS |
4938 |
– |
F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v" |
4939 |
– |
|
4940 |
– |
(eval echo $as_me:4940: \"$ac_link\") >&5 |
4941 |
– |
ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
4942 |
– |
echo "$ac_f90_v_output" >&5 |
4943 |
– |
F90FLAGS=$ac_save_F90FLAGS |
4944 |
– |
|
4945 |
– |
rm -f conftest.* |
4946 |
– |
ac_ext=f90 |
4947 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
4948 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4949 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
4950 |
– |
|
4951 |
– |
# If we are using xlf then replace all the commas with spaces. |
4952 |
– |
if echo $ac_f90_v_output | grep xlfentry >/dev/null 2>&1; then |
4953 |
– |
ac_f90_v_output=`echo $ac_f90_v_output | sed 's/,/ /g'` |
5659 |
|
fi |
5660 |
|
|
5661 |
< |
# If we are using Cray Fortran then delete quotes. |
5662 |
< |
# Use "\"" instead of '"' for font-lock-mode. |
5663 |
< |
# FIXME: a more general fix for quoted arguments with spaces? |
5664 |
< |
if echo $ac_f90_v_output | grep cft90 >/dev/null 2>&1; then |
5665 |
< |
ac_f90_v_output=`echo $ac_f90_v_output | sed "s/\"//g"` |
4961 |
< |
fi |
5661 |
> |
ac_ext=c |
5662 |
> |
ac_cpp='$CPP $CPPFLAGS' |
5663 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5664 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5665 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5666 |
|
|
5667 |
< |
ac_cv_f90libs= |
5667 |
> |
ac_save_LDFLAGS=$LDFLAGS |
5668 |
> |
LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} " |
5669 |
|
|
5670 |
< |
# Save positional arguments (if any) |
5671 |
< |
ac_save_positional="$@" |
5672 |
< |
|
5673 |
< |
set X $ac_f90_v_output |
4969 |
< |
while test $# != 1; do |
4970 |
< |
shift |
4971 |
< |
ac_arg=$1 |
4972 |
< |
case $ac_arg in |
4973 |
< |
[\\/]*.a | ?:[\\/]*.a) |
4974 |
< |
ac_exists=false |
4975 |
< |
for ac_i in $ac_cv_f90libs; do |
4976 |
< |
if test x"$ac_arg" = x"$ac_i"; then |
4977 |
< |
ac_exists=true |
4978 |
< |
break |
4979 |
< |
fi |
4980 |
< |
done |
4981 |
< |
|
4982 |
< |
if test x"$ac_exists" = xtrue; then |
4983 |
< |
: |
4984 |
< |
else |
4985 |
< |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
4986 |
< |
fi |
4987 |
< |
|
4988 |
< |
;; |
4989 |
< |
-bI:*) |
4990 |
< |
ac_exists=false |
4991 |
< |
for ac_i in $ac_cv_f90libs; do |
4992 |
< |
if test x"$ac_arg" = x"$ac_i"; then |
4993 |
< |
ac_exists=true |
4994 |
< |
break |
4995 |
< |
fi |
4996 |
< |
done |
4997 |
< |
|
4998 |
< |
if test x"$ac_exists" = xtrue; then |
4999 |
< |
: |
5000 |
< |
else |
5001 |
< |
if test "$ac_compiler_gnu" = yes; then |
5002 |
< |
for ac_link_opt in $ac_arg; do |
5003 |
< |
ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt" |
5004 |
< |
done |
5005 |
< |
else |
5006 |
< |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
5007 |
< |
fi |
5008 |
< |
fi |
5009 |
< |
|
5010 |
< |
;; |
5011 |
< |
# Ignore these flags. |
5012 |
< |
-lang* | -lcrt0.o | -lc | -lgcc | -LANG:=*) |
5013 |
< |
;; |
5014 |
< |
-lkernel32) |
5015 |
< |
test x"$CYGWIN" != xyes && ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
5016 |
< |
;; |
5017 |
< |
-[LRuY]) |
5018 |
< |
# These flags, when seen by themselves, take an argument. |
5019 |
< |
# We remove the space between option and argument and re-iterate |
5020 |
< |
# unless we find an empty arg or a new option (starting with -) |
5021 |
< |
case $2 in |
5022 |
< |
"" | -*);; |
5023 |
< |
*) |
5024 |
< |
ac_arg="$ac_arg$2" |
5025 |
< |
|
5026 |
< |
shift; shift |
5027 |
< |
set X $ac_arg "$@" |
5028 |
< |
;; |
5029 |
< |
esac |
5030 |
< |
;; |
5031 |
< |
-YP,*) |
5032 |
< |
for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do |
5033 |
< |
ac_exists=false |
5034 |
< |
for ac_i in $ac_cv_f90libs; do |
5035 |
< |
if test x"$ac_j" = x"$ac_i"; then |
5036 |
< |
ac_exists=true |
5037 |
< |
break |
5038 |
< |
fi |
5039 |
< |
done |
5040 |
< |
|
5041 |
< |
if test x"$ac_exists" = xtrue; then |
5042 |
< |
: |
5043 |
< |
else |
5044 |
< |
ac_arg="$ac_arg $ac_j" |
5045 |
< |
ac_cv_f90libs="$ac_cv_f90libs $ac_j" |
5046 |
< |
fi |
5047 |
< |
|
5048 |
< |
done |
5049 |
< |
;; |
5050 |
< |
-[lLR]*) |
5051 |
< |
ac_exists=false |
5052 |
< |
for ac_i in $ac_cv_f90libs; do |
5053 |
< |
if test x"$ac_arg" = x"$ac_i"; then |
5054 |
< |
ac_exists=true |
5055 |
< |
break |
5056 |
< |
fi |
5057 |
< |
done |
5058 |
< |
|
5059 |
< |
if test x"$ac_exists" = xtrue; then |
5060 |
< |
: |
5061 |
< |
else |
5062 |
< |
ac_cv_f90libs="$ac_cv_f90libs $ac_arg" |
5063 |
< |
fi |
5064 |
< |
|
5065 |
< |
;; |
5066 |
< |
# Ignore everything else. |
5067 |
< |
esac |
5068 |
< |
done |
5069 |
< |
# restore positional arguments |
5070 |
< |
set X $ac_save_positional; shift |
5071 |
< |
|
5072 |
< |
# We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, |
5073 |
< |
# then we insist that the "run path" must be an absolute path (i.e. it |
5074 |
< |
# must begin with a "/"). |
5075 |
< |
case `(uname -sr) 2>/dev/null` in |
5076 |
< |
"SunOS 5"*) |
5077 |
< |
ac_ld_run_path=`echo $ac_f90_v_output | |
5078 |
< |
sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` |
5079 |
< |
test "x$ac_ld_run_path" != x && |
5080 |
< |
|
5081 |
< |
if test "$ac_compiler_gnu" = yes; then |
5082 |
< |
for ac_link_opt in $ac_ld_run_path; do |
5083 |
< |
ac_cv_f90libs="$ac_cv_f90libs -Xlinker $ac_link_opt" |
5084 |
< |
done |
5085 |
< |
else |
5086 |
< |
ac_cv_f90libs="$ac_cv_f90libs $ac_ld_run_path" |
5087 |
< |
fi |
5088 |
< |
;; |
5089 |
< |
esac |
5090 |
< |
fi # test "x$F90LIBS" = "x" |
5091 |
< |
|
5092 |
< |
fi |
5093 |
< |
echo "$as_me:$LINENO: result: $ac_cv_flibs" >&5 |
5094 |
< |
echo "${ECHO_T}$ac_cv_flibs" >&6 |
5095 |
< |
F90LIBS="$ac_cv_f90libs" |
5096 |
< |
|
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 |
< |
|
5102 |
< |
echo "$as_me:$LINENO: checking for Fortran 90 name-mangling scheme" >&5 |
5103 |
< |
echo $ECHO_N "checking for Fortran 90 name-mangling scheme... $ECHO_C" >&6 |
5104 |
< |
if test "${ac_cv_f90_mangling+set}" = set; then |
5670 |
> |
if test x = x"$MPI_LIB"; then |
5671 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
5672 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
5673 |
> |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
5674 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5675 |
|
else |
5676 |
< |
ac_ext=f90 |
5677 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5109 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5110 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5676 |
> |
ac_check_lib_save_LIBS=$LIBS |
5677 |
> |
LIBS="-lmpi $LIBS" |
5678 |
|
cat >conftest.$ac_ext <<_ACEOF |
5112 |
– |
subroutine foobar() |
5113 |
– |
return |
5114 |
– |
end |
5115 |
– |
subroutine foo_bar() |
5116 |
– |
return |
5117 |
– |
end |
5118 |
– |
_ACEOF |
5119 |
– |
rm -f conftest.$ac_objext |
5120 |
– |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5121 |
– |
(eval $ac_compile) 2>&5 |
5122 |
– |
ac_status=$? |
5123 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5124 |
– |
(exit $ac_status); } && |
5125 |
– |
{ ac_try='test -s conftest.$ac_objext' |
5126 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5127 |
– |
(eval $ac_try) 2>&5 |
5128 |
– |
ac_status=$? |
5129 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5130 |
– |
(exit $ac_status); }; }; then |
5131 |
– |
mv conftest.$ac_objext cf90_test.$ac_objext |
5132 |
– |
|
5133 |
– |
ac_ext=c |
5134 |
– |
ac_cpp='$CPP $CPPFLAGS' |
5135 |
– |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5136 |
– |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5137 |
– |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5138 |
– |
|
5139 |
– |
ac_save_LIBS=$LIBS |
5140 |
– |
LIBS="cf90_test.$ac_objext $F90LIBS $LIBS" |
5141 |
– |
|
5142 |
– |
ac_success=no |
5143 |
– |
for ac_foobar in foobar FOOBAR; do |
5144 |
– |
for ac_underscore in "" "_"; do |
5145 |
– |
ac_func="$ac_foobar$ac_underscore" |
5146 |
– |
cat >conftest.$ac_ext <<_ACEOF |
5679 |
|
#line $LINENO "configure" |
5680 |
|
/* confdefs.h. */ |
5681 |
|
_ACEOF |
5689 |
|
#endif |
5690 |
|
/* We use char because int might match the return type of a gcc2 |
5691 |
|
builtin and then its argument prototype would still apply. */ |
5692 |
< |
char $ac_func (); |
5692 |
> |
char MPI_Init (); |
5693 |
|
int |
5694 |
|
main () |
5695 |
|
{ |
5696 |
< |
$ac_func (); |
5696 |
> |
MPI_Init (); |
5697 |
|
; |
5698 |
|
return 0; |
5699 |
|
} |
5710 |
|
ac_status=$? |
5711 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5712 |
|
(exit $ac_status); }; }; then |
5713 |
< |
ac_success=yes; break 2 |
5713 |
> |
ac_cv_lib_mpi_MPI_Init=yes |
5714 |
|
else |
5715 |
|
echo "$as_me: failed program was:" >&5 |
5716 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5717 |
|
|
5718 |
+ |
ac_cv_lib_mpi_MPI_Init=no |
5719 |
|
fi |
5720 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5721 |
< |
done |
5722 |
< |
done |
5721 |
> |
LIBS=$ac_check_lib_save_LIBS |
5722 |
> |
fi |
5723 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
5724 |
> |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
5725 |
> |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
5726 |
> |
MPI_LIB="-lmpi" |
5727 |
> |
fi |
5728 |
|
|
5729 |
< |
if test "$ac_success" = "yes"; then |
5730 |
< |
case $ac_foobar in |
5731 |
< |
foobar) |
5732 |
< |
ac_case=lower |
5733 |
< |
ac_foo_bar=foo_bar |
5734 |
< |
;; |
5735 |
< |
FOOBAR) |
5736 |
< |
ac_case=upper |
5737 |
< |
ac_foo_bar=FOO_BAR |
5738 |
< |
;; |
5201 |
< |
esac |
5202 |
< |
|
5203 |
< |
ac_success_extra=no |
5204 |
< |
for ac_extra in "" "_"; do |
5205 |
< |
ac_func="$ac_foo_bar$ac_underscore$ac_extra" |
5206 |
< |
|
5207 |
< |
cat >conftest.$ac_ext <<_ACEOF |
5729 |
> |
fi |
5730 |
> |
if test x = x"$MPI_LIB"; then |
5731 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 |
5732 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6 |
5733 |
> |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then |
5734 |
> |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5735 |
> |
else |
5736 |
> |
ac_check_lib_save_LIBS=$LIBS |
5737 |
> |
LIBS="-lmpich $LIBS" |
5738 |
> |
cat >conftest.$ac_ext <<_ACEOF |
5739 |
|
#line $LINENO "configure" |
5740 |
|
/* confdefs.h. */ |
5741 |
|
_ACEOF |
5749 |
|
#endif |
5750 |
|
/* We use char because int might match the return type of a gcc2 |
5751 |
|
builtin and then its argument prototype would still apply. */ |
5752 |
< |
char $ac_func (); |
5752 |
> |
char MPI_Init (); |
5753 |
|
int |
5754 |
|
main () |
5755 |
|
{ |
5756 |
< |
$ac_func (); |
5756 |
> |
MPI_Init (); |
5757 |
|
; |
5758 |
|
return 0; |
5759 |
|
} |
5770 |
|
ac_status=$? |
5771 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5772 |
|
(exit $ac_status); }; }; then |
5773 |
< |
ac_success_extra=yes; break |
5773 |
> |
ac_cv_lib_mpich_MPI_Init=yes |
5774 |
|
else |
5775 |
|
echo "$as_me: failed program was:" >&5 |
5776 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5777 |
|
|
5778 |
+ |
ac_cv_lib_mpich_MPI_Init=no |
5779 |
|
fi |
5780 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5781 |
< |
done |
5250 |
< |
|
5251 |
< |
if test "$ac_success_extra" = "yes"; then |
5252 |
< |
ac_cv_f90_mangling="$ac_case case" |
5253 |
< |
if test -z "$ac_underscore"; then |
5254 |
< |
ac_cv_f90_mangling="$ac_cv_f90_mangling, no underscore" |
5255 |
< |
else |
5256 |
< |
ac_cv_f90_mangling="$ac_cv_f90_mangling, underscore" |
5257 |
< |
|
5258 |
< |
fi |
5259 |
< |
if test -z "$ac_extra"; then |
5260 |
< |
ac_cv_f90_mangling="$ac_cv_f90_mangling, no extra underscore" |
5261 |
< |
else |
5262 |
< |
ac_cv_f90_mangling="$ac_cv_f90_mangling, extra underscore" |
5263 |
< |
fi |
5264 |
< |
else |
5265 |
< |
ac_cv_f90_mangling="unknown" |
5266 |
< |
fi |
5267 |
< |
else |
5268 |
< |
ac_cv_f90_mangling="unknown" |
5269 |
< |
|
5270 |
< |
fi |
5271 |
< |
|
5272 |
< |
LIBS=$ac_save_LIBS |
5273 |
< |
ac_ext=f90 |
5274 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5275 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5276 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5277 |
< |
rm -f cf90_test* conftest* |
5278 |
< |
else |
5279 |
< |
echo "$as_me: failed program was:" >&5 |
5280 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
5281 |
< |
|
5781 |
> |
LIBS=$ac_check_lib_save_LIBS |
5782 |
|
fi |
5783 |
< |
rm -f conftest.$ac_objext conftest.$ac_ext |
5784 |
< |
ac_ext=f90 |
5785 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
5786 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5287 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
5288 |
< |
|
5783 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
5784 |
> |
echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6 |
5785 |
> |
if test $ac_cv_lib_mpich_MPI_Init = yes; then |
5786 |
> |
MPI_LIB="-lmpich" |
5787 |
|
fi |
5290 |
– |
echo "$as_me:$LINENO: result: $ac_cv_f90_mangling" >&5 |
5291 |
– |
echo "${ECHO_T}$ac_cv_f90_mangling" >&6 |
5292 |
– |
|
5293 |
– |
|
5294 |
– |
|
5295 |
– |
case $ac_cv_f90_mangling in |
5296 |
– |
"lower case, no underscore, no extra underscore") |
5297 |
– |
cat >>confdefs.h <<\_ACEOF |
5298 |
– |
#define F90_FUNC(name,NAME) name |
5299 |
– |
_ACEOF |
5300 |
– |
|
5301 |
– |
cat >>confdefs.h <<\_ACEOF |
5302 |
– |
#define F90_FUNC_(name,NAME) name |
5303 |
– |
_ACEOF |
5304 |
– |
;; |
5305 |
– |
"lower case, no underscore, extra underscore") |
5306 |
– |
cat >>confdefs.h <<\_ACEOF |
5307 |
– |
#define F90_FUNC(name,NAME) name |
5308 |
– |
_ACEOF |
5788 |
|
|
5310 |
– |
cat >>confdefs.h <<\_ACEOF |
5311 |
– |
#define F90_FUNC_(name,NAME) name ## _ |
5312 |
– |
_ACEOF |
5313 |
– |
;; |
5314 |
– |
"lower case, underscore, no extra underscore") |
5315 |
– |
cat >>confdefs.h <<\_ACEOF |
5316 |
– |
#define F90_FUNC(name,NAME) name ## _ |
5317 |
– |
_ACEOF |
5318 |
– |
|
5319 |
– |
cat >>confdefs.h <<\_ACEOF |
5320 |
– |
#define F90_FUNC_(name,NAME) name ## _ |
5321 |
– |
_ACEOF |
5322 |
– |
;; |
5323 |
– |
"lower case, underscore, extra underscore") |
5324 |
– |
cat >>confdefs.h <<\_ACEOF |
5325 |
– |
#define F90_FUNC(name,NAME) name ## _ |
5326 |
– |
_ACEOF |
5327 |
– |
|
5328 |
– |
cat >>confdefs.h <<\_ACEOF |
5329 |
– |
#define F90_FUNC_(name,NAME) name ## __ |
5330 |
– |
_ACEOF |
5331 |
– |
;; |
5332 |
– |
"upper case, no underscore, no extra underscore") |
5333 |
– |
cat >>confdefs.h <<\_ACEOF |
5334 |
– |
#define F90_FUNC(name,NAME) NAME |
5335 |
– |
_ACEOF |
5336 |
– |
|
5337 |
– |
cat >>confdefs.h <<\_ACEOF |
5338 |
– |
#define F90_FUNC_(name,NAME) NAME |
5339 |
– |
_ACEOF |
5340 |
– |
;; |
5341 |
– |
"upper case, no underscore, extra underscore") |
5342 |
– |
cat >>confdefs.h <<\_ACEOF |
5343 |
– |
#define F90_FUNC(name,NAME) NAME |
5344 |
– |
_ACEOF |
5345 |
– |
|
5346 |
– |
cat >>confdefs.h <<\_ACEOF |
5347 |
– |
#define F90_FUNC_(name,NAME) NAME ## _ |
5348 |
– |
_ACEOF |
5349 |
– |
;; |
5350 |
– |
"upper case, underscore, no extra underscore") |
5351 |
– |
cat >>confdefs.h <<\_ACEOF |
5352 |
– |
#define F90_FUNC(name,NAME) NAME ## _ |
5353 |
– |
_ACEOF |
5354 |
– |
|
5355 |
– |
cat >>confdefs.h <<\_ACEOF |
5356 |
– |
#define F90_FUNC_(name,NAME) NAME ## _ |
5357 |
– |
_ACEOF |
5358 |
– |
;; |
5359 |
– |
"upper case, underscore, extra underscore") |
5360 |
– |
cat >>confdefs.h <<\_ACEOF |
5361 |
– |
#define F90_FUNC(name,NAME) NAME ## _ |
5362 |
– |
_ACEOF |
5363 |
– |
|
5364 |
– |
cat >>confdefs.h <<\_ACEOF |
5365 |
– |
#define F90_FUNC_(name,NAME) NAME ## __ |
5366 |
– |
_ACEOF |
5367 |
– |
;; |
5368 |
– |
*) |
5369 |
– |
{ echo "$as_me:$LINENO: WARNING: unknown Fortran 90 name-mangling scheme" >&5 |
5370 |
– |
echo "$as_me: WARNING: unknown Fortran 90 name-mangling scheme" >&2;} |
5371 |
– |
;; |
5372 |
– |
esac |
5373 |
– |
|
5374 |
– |
|
5375 |
– |
|
5376 |
– |
|
5377 |
– |
echo "$as_me:$LINENO: checking for mpi-directory" >&5 |
5378 |
– |
echo $ECHO_N "checking for mpi-directory... $ECHO_C" >&6 |
5379 |
– |
|
5380 |
– |
# Check whether --with-mpi_dir or --without-mpi_dir was given. |
5381 |
– |
if test "${with_mpi_dir+set}" = set; then |
5382 |
– |
withval="$with_mpi_dir" |
5383 |
– |
MPI_DIR="$withval" |
5384 |
– |
else |
5385 |
– |
MPI_DIR="/usr/local" |
5386 |
– |
fi; |
5387 |
– |
echo "$as_me:$LINENO: result: $MPI_DIR" >&5 |
5388 |
– |
echo "${ECHO_T}$MPI_DIR" >&6 |
5389 |
– |
|
5390 |
– |
|
5391 |
– |
echo "$as_me:$LINENO: checking for mpi-lib-directory" >&5 |
5392 |
– |
echo $ECHO_N "checking for mpi-lib-directory... $ECHO_C" >&6 |
5393 |
– |
|
5394 |
– |
# Check whether --with-mpi_libdir or --without-mpi_libdir was given. |
5395 |
– |
if test "${with_mpi_libdir+set}" = set; then |
5396 |
– |
withval="$with_mpi_libdir" |
5397 |
– |
MPI_LIBDIR="$withval" |
5398 |
– |
else |
5399 |
– |
MPI_LIBDIR="$MPI_DIR/lib" |
5400 |
– |
fi; |
5401 |
– |
echo "$as_me:$LINENO: result: $MPI_LIBDIR" >&5 |
5402 |
– |
echo "${ECHO_T}$MPI_LIBDIR" >&6 |
5403 |
– |
|
5404 |
– |
|
5405 |
– |
echo "$as_me:$LINENO: checking for mpi-inc-directory" >&5 |
5406 |
– |
echo $ECHO_N "checking for mpi-inc-directory... $ECHO_C" >&6 |
5407 |
– |
|
5408 |
– |
# Check whether --with-mpi_inc or --without-mpi_inc was given. |
5409 |
– |
if test "${with_mpi_inc+set}" = set; then |
5410 |
– |
withval="$with_mpi_inc" |
5411 |
– |
MPI_INC="$withval" |
5412 |
– |
else |
5413 |
– |
MPI_INC="$MPI_DIR/include" |
5414 |
– |
fi; |
5415 |
– |
echo "$as_me:$LINENO: result: $MPI_INC" >&5 |
5416 |
– |
echo "${ECHO_T}$MPI_INC" >&6 |
5417 |
– |
|
5418 |
– |
|
5419 |
– |
|
5420 |
– |
echo "$as_me:$LINENO: checking for MPI library" >&5 |
5421 |
– |
echo $ECHO_N "checking for MPI library... $ECHO_C" >&6 |
5422 |
– |
MPI_LIB="" |
5423 |
– |
case "$host" in |
5424 |
– |
*-ibm-aix*) |
5425 |
– |
echo "$as_me:$LINENO: checking whether to use signal-based MPI library" >&5 |
5426 |
– |
echo $ECHO_N "checking whether to use signal-based MPI library... $ECHO_C" >&6 |
5427 |
– |
echo "$as_me:$LINENO: result: $PACX_SIGNAL" >&5 |
5428 |
– |
echo "${ECHO_T}$PACX_SIGNAL" >&6 |
5429 |
– |
if test "x$PACX_SIGNAL" = "xyes" ; then |
5430 |
– |
if test -f "$MPI_LIBDIR/libmpi.a" ; then |
5431 |
– |
MPI_LIB="-lmpi" |
5432 |
– |
elif test -f "$MPI_LIBDIR/libmpi.so" ; then |
5433 |
– |
MPI_LIB="-lmpi" |
5434 |
– |
elif test -f "$MPI_LIBDIR/libmpich.a" ; then |
5435 |
– |
MPI_LIB="-lmpich" |
5436 |
– |
else |
5437 |
– |
{ { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5 |
5438 |
– |
echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;} |
5439 |
– |
{ (exit 1); exit 1; }; } |
5440 |
– |
fi |
5441 |
– |
else |
5442 |
– |
if test -f "$MPI_LIBDIR/libmpi_r.a" ; then |
5443 |
– |
MPI_LIB="-lmpi_r" |
5444 |
– |
else |
5445 |
– |
{ { echo "$as_me:$LINENO: error: libmpi_r not found; check path for MPI package..." >&5 |
5446 |
– |
echo "$as_me: error: libmpi_r not found; check path for MPI package..." >&2;} |
5447 |
– |
{ (exit 1); exit 1; }; } |
5448 |
– |
fi |
5449 |
– |
fi |
5450 |
– |
echo "$as_me:$LINENO: result: found $MPI_LIB" >&5 |
5451 |
– |
echo "${ECHO_T}found $MPI_LIB" >&6 |
5452 |
– |
;; |
5453 |
– |
*) if test -f "$MPI_LIBDIR/libmpi.a" ; then |
5454 |
– |
MPI_LIB="-lmpi" |
5455 |
– |
elif test -f "$MPI_LIBDIR/libmpi.so" ; then |
5456 |
– |
MPI_LIB="-lmpi" |
5457 |
– |
elif test -f "$MPI_LIBDIR/libmpich.a" ; then |
5458 |
– |
MPI_LIB="-lmpich" |
5459 |
– |
else |
5460 |
– |
{ { echo "$as_me:$LINENO: error: neither libmpi nor libmpich found; check path for MPI package first..." >&5 |
5461 |
– |
echo "$as_me: error: neither libmpi nor libmpich found; check path for MPI package first..." >&2;} |
5462 |
– |
{ (exit 1); exit 1; }; } |
5463 |
– |
fi |
5464 |
– |
echo "$as_me:$LINENO: result: found $MPI_LIB" >&5 |
5465 |
– |
echo "${ECHO_T}found $MPI_LIB" >&6 |
5466 |
– |
;; |
5467 |
– |
esac |
5468 |
– |
|
5469 |
– |
|
5470 |
– |
|
5471 |
– |
|
5472 |
– |
|
5473 |
– |
|
5474 |
– |
|
5475 |
– |
for ac_prog in mpif90 hf90 mpxlf90 mpf90 mpxlf95 mpxlf_r |
5476 |
– |
do |
5477 |
– |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
5478 |
– |
set dummy $ac_prog; ac_word=$2 |
5479 |
– |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5480 |
– |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5481 |
– |
if test "${ac_cv_prog_MPIF90+set}" = set; then |
5482 |
– |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5483 |
– |
else |
5484 |
– |
if test -n "$MPIF90"; then |
5485 |
– |
ac_cv_prog_MPIF90="$MPIF90" # Let the user override the test. |
5486 |
– |
else |
5487 |
– |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5488 |
– |
for as_dir in $PATH |
5489 |
– |
do |
5490 |
– |
IFS=$as_save_IFS |
5491 |
– |
test -z "$as_dir" && as_dir=. |
5492 |
– |
for ac_exec_ext in '' $ac_executable_extensions; do |
5493 |
– |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5494 |
– |
ac_cv_prog_MPIF90="$ac_prog" |
5495 |
– |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5496 |
– |
break 2 |
5497 |
– |
fi |
5498 |
– |
done |
5499 |
– |
done |
5500 |
– |
|
5789 |
|
fi |
5790 |
< |
fi |
5791 |
< |
MPIF90=$ac_cv_prog_MPIF90 |
5504 |
< |
if test -n "$MPIF90"; then |
5505 |
< |
echo "$as_me:$LINENO: result: $MPIF90" >&5 |
5506 |
< |
echo "${ECHO_T}$MPIF90" >&6 |
5507 |
< |
else |
5508 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
5509 |
< |
echo "${ECHO_T}no" >&6 |
5510 |
< |
fi |
5511 |
< |
|
5512 |
< |
test -n "$MPIF90" && break |
5513 |
< |
done |
5514 |
< |
test -n "$MPIF90" || MPIF90="$F90" |
5515 |
< |
|
5516 |
< |
acx_mpi_save_F90="$F90" |
5517 |
< |
F90="$MPIF90" |
5518 |
< |
|
5519 |
< |
|
5520 |
< |
|
5521 |
< |
if test x = x"$MPILIBS"; then |
5522 |
< |
echo "$as_me:$LINENO: checking for MPI_Init" >&5 |
5523 |
< |
echo $ECHO_N "checking for MPI_Init... $ECHO_C" >&6 |
5524 |
< |
cat >conftest.$ac_ext <<_ACEOF |
5525 |
< |
|
5526 |
< |
program main |
5527 |
< |
|
5528 |
< |
call MPI_Init |
5529 |
< |
end program main |
5530 |
< |
|
5531 |
< |
_ACEOF |
5532 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext |
5533 |
< |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5534 |
< |
(eval $ac_link) 2>&5 |
5535 |
< |
ac_status=$? |
5536 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5537 |
< |
(exit $ac_status); } && |
5538 |
< |
{ ac_try='test -s conftest$ac_exeext' |
5539 |
< |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5540 |
< |
(eval $ac_try) 2>&5 |
5541 |
< |
ac_status=$? |
5542 |
< |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5543 |
< |
(exit $ac_status); }; }; then |
5544 |
< |
MPILIBS=" " |
5545 |
< |
echo "$as_me:$LINENO: result: yes" >&5 |
5546 |
< |
echo "${ECHO_T}yes" >&6 |
5547 |
< |
else |
5548 |
< |
echo "$as_me: failed program was:" >&5 |
5549 |
< |
sed 's/^/| /' conftest.$ac_ext >&5 |
5550 |
< |
|
5551 |
< |
echo "$as_me:$LINENO: result: no" >&5 |
5552 |
< |
echo "${ECHO_T}no" >&6 |
5553 |
< |
fi |
5554 |
< |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5555 |
< |
fi |
5556 |
< |
if test x = x"$MPILIBS"; then |
5790 |
> |
$as_unset ac_cv_lib_mpi_MPI_Init |
5791 |
> |
if test x = x"$MPI_LIB"; then |
5792 |
|
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
5793 |
|
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
5794 |
|
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
5795 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5796 |
|
else |
5797 |
|
ac_check_lib_save_LIBS=$LIBS |
5798 |
< |
LIBS="-lmpi $LIBS" |
5798 |
> |
LIBS="-lmpi "-llam" $LIBS" |
5799 |
|
cat >conftest.$ac_ext <<_ACEOF |
5800 |
< |
|
5801 |
< |
program main |
5802 |
< |
|
5803 |
< |
call MPI_Init |
5804 |
< |
end program main |
5800 |
> |
#line $LINENO "configure" |
5801 |
> |
/* confdefs.h. */ |
5802 |
> |
_ACEOF |
5803 |
> |
cat confdefs.h >>conftest.$ac_ext |
5804 |
> |
cat >>conftest.$ac_ext <<_ACEOF |
5805 |
> |
/* end confdefs.h. */ |
5806 |
|
|
5807 |
+ |
/* Override any gcc2 internal prototype to avoid an error. */ |
5808 |
+ |
#ifdef __cplusplus |
5809 |
+ |
extern "C" |
5810 |
+ |
#endif |
5811 |
+ |
/* We use char because int might match the return type of a gcc2 |
5812 |
+ |
builtin and then its argument prototype would still apply. */ |
5813 |
+ |
char MPI_Init (); |
5814 |
+ |
int |
5815 |
+ |
main () |
5816 |
+ |
{ |
5817 |
+ |
MPI_Init (); |
5818 |
+ |
; |
5819 |
+ |
return 0; |
5820 |
+ |
} |
5821 |
|
_ACEOF |
5822 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5823 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5844 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
5845 |
|
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
5846 |
|
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
5847 |
< |
MPILIBS="-lmpi" |
5847 |
> |
MPI_LIB="-lmpi -llam" |
5848 |
|
fi |
5849 |
|
|
5850 |
|
fi |
5851 |
< |
if test x = x"$MPILIBS"; then |
5852 |
< |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 |
5853 |
< |
echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6 |
5854 |
< |
if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then |
5851 |
> |
|
5852 |
> |
$as_unset ac_cv_lib_mpi_MPI_Init |
5853 |
> |
if test x = x"$MPI_LIB"; then |
5854 |
> |
echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |
5855 |
> |
echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6 |
5856 |
> |
if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then |
5857 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5858 |
|
else |
5859 |
|
ac_check_lib_save_LIBS=$LIBS |
5860 |
< |
LIBS="-lmpich $LIBS" |
5860 |
> |
LIBS="-lmpi -llam -lpthread $LIBS" |
5861 |
|
cat >conftest.$ac_ext <<_ACEOF |
5862 |
+ |
#line $LINENO "configure" |
5863 |
+ |
/* confdefs.h. */ |
5864 |
+ |
_ACEOF |
5865 |
+ |
cat confdefs.h >>conftest.$ac_ext |
5866 |
+ |
cat >>conftest.$ac_ext <<_ACEOF |
5867 |
+ |
/* end confdefs.h. */ |
5868 |
|
|
5869 |
< |
program main |
5870 |
< |
|
5871 |
< |
call MPI_Init |
5872 |
< |
end program main |
5873 |
< |
|
5869 |
> |
/* Override any gcc2 internal prototype to avoid an error. */ |
5870 |
> |
#ifdef __cplusplus |
5871 |
> |
extern "C" |
5872 |
> |
#endif |
5873 |
> |
/* We use char because int might match the return type of a gcc2 |
5874 |
> |
builtin and then its argument prototype would still apply. */ |
5875 |
> |
char MPI_Init (); |
5876 |
> |
int |
5877 |
> |
main () |
5878 |
> |
{ |
5879 |
> |
MPI_Init (); |
5880 |
> |
; |
5881 |
> |
return 0; |
5882 |
> |
} |
5883 |
|
_ACEOF |
5884 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5885 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5893 |
|
ac_status=$? |
5894 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5895 |
|
(exit $ac_status); }; }; then |
5896 |
< |
ac_cv_lib_mpich_MPI_Init=yes |
5896 |
> |
ac_cv_lib_mpi_MPI_Init=yes |
5897 |
|
else |
5898 |
|
echo "$as_me: failed program was:" >&5 |
5899 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5900 |
|
|
5901 |
< |
ac_cv_lib_mpich_MPI_Init=no |
5901 |
> |
ac_cv_lib_mpi_MPI_Init=no |
5902 |
|
fi |
5903 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5904 |
|
LIBS=$ac_check_lib_save_LIBS |
5905 |
|
fi |
5906 |
< |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 |
5907 |
< |
echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6 |
5908 |
< |
if test $ac_cv_lib_mpich_MPI_Init = yes; then |
5909 |
< |
MPILIBS="-lmpich" |
5906 |
> |
echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5 |
5907 |
> |
echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6 |
5908 |
> |
if test $ac_cv_lib_mpi_MPI_Init = yes; then |
5909 |
> |
MPI_LIB="-lmpi -llam -lpthread" |
5910 |
> |
else |
5911 |
> |
|
5912 |
> |
{ { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5 |
5913 |
> |
echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;} |
5914 |
> |
{ (exit 1); exit 1; }; } |
5915 |
> |
USE_MPI="no" |
5916 |
> |
|
5917 |
|
fi |
5918 |
|
|
5919 |
|
fi |
5920 |
|
|
5921 |
|
|
5922 |
|
|
5923 |
< |
F90="$acx_mpi_save_F90" |
5924 |
< |
|
5925 |
< |
|
5926 |
< |
|
5927 |
< |
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
5928 |
< |
if test x = x"$MPILIBS"; then |
5929 |
< |
|
5656 |
< |
: |
5923 |
> |
echo "$as_me:$LINENO: checking for MPI Fortran library" >&5 |
5924 |
> |
echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6 |
5925 |
> |
MPI_F90_LIB="" |
5926 |
> |
if test -f "$MPI_LIB_DIR/libfmpich.a" ; then |
5927 |
> |
MPI_F90_LIB="-lfmpich" |
5928 |
> |
elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then |
5929 |
> |
MPI_F90_LIB="-llamf77mpi" |
5930 |
|
else |
5931 |
+ |
MPI_F90_LIB=" " |
5932 |
+ |
fi |
5933 |
+ |
echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5 |
5934 |
+ |
echo "${ECHO_T}found $MPI_F90_LIB" >&6 |
5935 |
|
|
5936 |
< |
cat >>confdefs.h <<\_ACEOF |
5660 |
< |
#define HAVE_MPI 1 |
5661 |
< |
_ACEOF |
5662 |
< |
|
5663 |
< |
: |
5936 |
> |
|
5937 |
|
fi |
5938 |
+ |
|
5939 |
|
|
5940 |
|
|
5941 |
|
ac_ext=c |
6684 |
|
|
6685 |
|
CPPFLAGS=$ac_save_CPPFLAGS |
6686 |
|
LDFLAGS=$ac_save_LDFLAGS |
6687 |
< |
ac_ext=f90 |
6688 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
6689 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6690 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
6687 |
> |
ac_ext=c |
6688 |
> |
ac_cpp='$CPP $CPPFLAGS' |
6689 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6690 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6691 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6692 |
|
|
6693 |
|
|
6694 |
|
if test x_$HAVE_SPRNG != x_yes; then |
6709 |
|
withval="$with_mkl" |
6710 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
6711 |
|
echo "${ECHO_T}yes" >&6 |
6712 |
< |
for dir in $withval /usr/local/intel/mkl60 /opt/intel/mkl60; do |
6712 |
> |
for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do |
6713 |
|
mkldir="$dir" |
6714 |
|
if test -f "$dir/include/mkl.h"; then |
6715 |
|
found_mkl="yes"; |
6935 |
|
|
6936 |
|
CPPFLAGS=$ac_save_CPPFLAGS |
6937 |
|
LDFLAGS=$ac_save_LDFLAGS |
6938 |
< |
ac_ext=f90 |
6939 |
< |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
6940 |
< |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6941 |
< |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
6938 |
> |
ac_ext=c |
6939 |
> |
ac_cpp='$CPP $CPPFLAGS' |
6940 |
> |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6941 |
> |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6942 |
> |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6943 |
|
|
6944 |
|
|
6945 |
|
if test x_$HAVE_MKL != x_yes; then |
6957 |
|
echo "$as_me:$LINENO: result: no" >&5 |
6958 |
|
echo "${ECHO_T}no" >&6 |
6959 |
|
|
6684 |
– |
fi; |
6685 |
– |
|
6686 |
– |
|
6687 |
– |
|
6688 |
– |
|
6689 |
– |
# Check whether --with-mpi_f90_mods or --without-mpi_f90_mods was given. |
6690 |
– |
if test "${with_mpi_f90_mods+set}" = set; then |
6691 |
– |
withval="$with_mpi_f90_mods" |
6692 |
– |
mpi_f90_mods="$withval" |
6693 |
– |
else |
6694 |
– |
mpi_f90_mods="/usr/local/include/f90choice" |
6960 |
|
fi; |
6696 |
– |
|
6697 |
– |
echo "$as_me:$LINENO: checking for MPI F90 modules" >&5 |
6698 |
– |
echo $ECHO_N "checking for MPI F90 modules... $ECHO_C" >&6 |
6699 |
– |
|
6700 |
– |
|
6701 |
– |
ac_ext=f90 |
6702 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
6703 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6704 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
6705 |
– |
|
6706 |
– |
ac_save_F90FLAGS=$F90FLAGS |
6707 |
– |
if test "$mpi_f90_mods"; then |
6708 |
– |
F90FLAGS="${F90FLAGS} -I${mpi_f90_mods}" |
6709 |
– |
fi |
6710 |
– |
|
6711 |
– |
cat >conftest.$ac_ext <<_ACEOF |
6712 |
– |
|
6713 |
– |
|
6714 |
– |
program main |
6715 |
– |
|
6716 |
– |
use mpi |
6717 |
– |
integer :: ierr |
6718 |
– |
call MPI_Init(ierr) |
6719 |
– |
|
6720 |
– |
|
6721 |
– |
end program main |
6722 |
– |
|
6723 |
– |
_ACEOF |
6724 |
– |
rm -f conftest.$ac_objext |
6725 |
– |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6726 |
– |
(eval $ac_compile) 2>&5 |
6727 |
– |
ac_status=$? |
6728 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6729 |
– |
(exit $ac_status); } && |
6730 |
– |
{ ac_try='test -s conftest.$ac_objext' |
6731 |
– |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6732 |
– |
(eval $ac_try) 2>&5 |
6733 |
– |
ac_status=$? |
6734 |
– |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6735 |
– |
(exit $ac_status); }; }; then |
6736 |
– |
HAVE_MPI_MOD=1 |
6737 |
– |
else |
6738 |
– |
echo "$as_me: failed program was:" >&5 |
6739 |
– |
sed 's/^/| /' conftest.$ac_ext >&5 |
6740 |
– |
|
6741 |
– |
HAVE_MPI_MOD=0 |
6742 |
– |
fi |
6743 |
– |
rm -f conftest.$ac_objext conftest.$ac_ext |
6744 |
– |
|
6745 |
– |
F90FLAGS=$ac_save_F90FLAGS |
6746 |
– |
ac_ext=f90 |
6747 |
– |
ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5' |
6748 |
– |
ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6749 |
– |
ac_compiler_gnu=$ac_cv_f90_compiler_gnu |
6750 |
– |
|
6751 |
– |
|
6752 |
– |
if test "$HAVE_MPI_MOD" = 1; then |
6753 |
– |
echo "$as_me:$LINENO: result: yes" >&5 |
6754 |
– |
echo "${ECHO_T}yes" >&6 |
6755 |
– |
|
6756 |
– |
cat >>confdefs.h <<\_ACEOF |
6757 |
– |
#define MPI_MOD 1 |
6758 |
– |
_ACEOF |
6961 |
|
|
6760 |
– |
MPI_F90_MODS="-I${mpi_f90_mods}" |
6962 |
|
|
6762 |
– |
# The library name: |
6763 |
– |
if test -z "$MPI_LIB" ; then |
6764 |
– |
MPI_LIBNAME=-lmpich |
6765 |
– |
else |
6766 |
– |
MPI_LIBNAME="$MPI_LIB" |
6767 |
– |
fi |
6768 |
– |
if test -z "$MPIMODLIBNAME" ; then |
6769 |
– |
MPIMODLIBNAME="${MPI_LIBNAME}f90" |
6770 |
– |
fi |
6963 |
|
|
6772 |
– |
else |
6773 |
– |
echo "$as_me:$LINENO: result: no" >&5 |
6774 |
– |
echo "${ECHO_T}no" >&6 |
6775 |
– |
{ { echo "$as_me:$LINENO: error: Couldn't locate MPI F90 Modules" >&5 |
6776 |
– |
echo "$as_me: error: Couldn't locate MPI F90 Modules" >&2;} |
6777 |
– |
{ (exit 1); exit 1; }; } |
6778 |
– |
fi |
6964 |
|
|
6965 |
|
|
6781 |
– |
|
6782 |
– |
|
6783 |
– |
|
6966 |
|
OBJEXT=".$OBJEXT" |
6967 |
|
|
6968 |
|
OOPSE=oopse |
6986 |
|
|
6987 |
|
MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f" |
6988 |
|
|
6989 |
< |
SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps" |
6989 |
> |
SUBDIRS="libBASS libmdtools src forceFields samples utils utils/sysbuilder staticProps third-party " |
6990 |
|
|
6991 |
|
CFLAGS=${CFLAGS-""} |
6992 |
|
CXXFLAGS=${CXXFLAGS-""} |
6998 |
|
|
6999 |
|
case $debug in |
7000 |
|
1) |
6819 |
– |
CFLAGS="$DEBUG $CFLAGS" |
6820 |
– |
CXXFLAGS="$DEBUG $CXXFLAGS" |
7001 |
|
FFLAGS="$DEBUG $FFLAGS" |
7002 |
|
F90FLAGS="$DEBUG $F90FLAGS" |
7003 |
|
;; |
7021 |
|
|
7022 |
|
|
7023 |
|
|
7024 |
< |
ac_config_headers="$ac_config_headers libmdtools/config.h" |
7024 |
> |
ac_config_headers="$ac_config_headers libBASS/config.h libmdtools/config.h" |
7025 |
|
|
7026 |
< |
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" |
7026 |
> |
ac_config_files="$ac_config_files Makefile libBASS/Makefile libmdtools/Makefile src/Makefile utils/Makefile utils/sysbuilder/Makefile forceFields/Makefile samples/Makefile staticProps/Makefile third-party/Makefile samples/alkane/Makefile samples/argon/Makefile samples/beadLipid/Makefile samples/lipid/Makefile samples/metals/Makefile samples/water/Makefile" |
7027 |
|
|
7028 |
|
|
7029 |
|
cat >confcache <<\_ACEOF |
7559 |
|
"forceFields/Makefile" ) CONFIG_FILES="$CONFIG_FILES forceFields/Makefile" ;; |
7560 |
|
"samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; |
7561 |
|
"staticProps/Makefile" ) CONFIG_FILES="$CONFIG_FILES staticProps/Makefile" ;; |
7562 |
+ |
"third-party/Makefile" ) CONFIG_FILES="$CONFIG_FILES third-party/Makefile" ;; |
7563 |
|
"samples/alkane/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/alkane/Makefile" ;; |
7564 |
|
"samples/argon/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/argon/Makefile" ;; |
7565 |
|
"samples/beadLipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/beadLipid/Makefile" ;; |
7566 |
|
"samples/lipid/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/lipid/Makefile" ;; |
7567 |
|
"samples/metals/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/metals/Makefile" ;; |
7568 |
|
"samples/water/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/water/Makefile" ;; |
7569 |
+ |
"libBASS/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libBASS/config.h" ;; |
7570 |
|
"libmdtools/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS libmdtools/config.h" ;; |
7571 |
|
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
7572 |
|
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
7672 |
|
s,@CXX@,$CXX,;t t |
7673 |
|
s,@CXXFLAGS@,$CXXFLAGS,;t t |
7674 |
|
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
7675 |
+ |
s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t |
7676 |
+ |
s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t |
7677 |
|
s,@F90@,$F90,;t t |
7678 |
|
s,@F90FLAGS@,$F90FLAGS,;t t |
7679 |
|
s,@ac_ct_F90@,$ac_ct_F90,;t t |
7680 |
|
s,@PREPFLAG@,$PREPFLAG,;t t |
7681 |
|
s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t |
7682 |
+ |
s,@F90LIBS@,$F90LIBS,;t t |
7683 |
+ |
s,@F90_FUNC@,$F90_FUNC,;t t |
7684 |
+ |
s,@F90_FUNC_@,$F90_FUNC_,;t t |
7685 |
+ |
s,@MOD@,$MOD,;t t |
7686 |
+ |
s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t |
7687 |
+ |
s,@MODDIRFLAG@,$MODDIRFLAG,;t t |
7688 |
+ |
s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t |
7689 |
|
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
7690 |
|
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
7691 |
|
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
7698 |
|
s,@LEXLIB@,$LEXLIB,;t t |
7699 |
|
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
7700 |
|
s,@AR@,$AR,;t t |
7701 |
< |
s,@F90LIBS@,$F90LIBS,;t t |
7702 |
< |
s,@F90_FUNC@,$F90_FUNC,;t t |
7703 |
< |
s,@F90_FUNC_@,$F90_FUNC_,;t t |
7513 |
< |
s,@mpi_dir@,$mpi_dir,;t t |
7514 |
< |
s,@MPI_LIBDIR@,$MPI_LIBDIR,;t t |
7515 |
< |
s,@MPI_INC@,$MPI_INC,;t t |
7701 |
> |
s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t |
7702 |
> |
s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t |
7703 |
> |
s,@MPI_F90_INC@,$MPI_F90_INC,;t t |
7704 |
|
s,@MPI_LIB@,$MPI_LIB,;t t |
7705 |
< |
s,@MPIF77@,$MPIF77,;t t |
7706 |
< |
s,@MPIF90@,$MPIF90,;t t |
7519 |
< |
s,@MPILIBS@,$MPILIBS,;t t |
7705 |
> |
s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t |
7706 |
> |
s,@USE_MPI@,$USE_MPI,;t t |
7707 |
|
s,@CPP@,$CPP,;t t |
7708 |
|
s,@EGREP@,$EGREP,;t t |
7709 |
|
s,@SPRNG_LIBDIR@,$SPRNG_LIBDIR,;t t |
7714 |
|
s,@MKL_LIB@,$MKL_LIB,;t t |
7715 |
|
s,@MKL_INC@,$MKL_INC,;t t |
7716 |
|
s,@HAVE_MKL@,$HAVE_MKL,;t t |
7530 |
– |
s,@MPI_F90_MODS@,$MPI_F90_MODS,;t t |
7531 |
– |
s,@MPIMODLIBNAME@,$MPIMODLIBNAME,;t t |
7717 |
|
s,@BATEXT@,$BATEXT,;t t |
7718 |
|
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
7719 |
|
s,@OOPSE@,$OOPSE,;t t |