|
|
@ -6744,10 +6744,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# Optional features
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for Fortran VOLATILE" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for Fortran VOLATILE" >&5
|
|
|
|
$as_echo_n "checking support for Fortran VOLATILE... " >&6; }
|
|
|
|
$as_echo_n "checking support for Fortran VOLATILE... " >&6; }
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
@ -6767,12 +6763,13 @@ _ACEOF
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
$as_echo "yes" >&6; }
|
|
|
|
$as_echo "yes" >&6; }
|
|
|
|
FDEFINES="$psblas_cv_define_prepend-DHAVE_VOLATILE $FDEFINES"
|
|
|
|
:
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
$as_echo "no" >&6; }
|
|
|
|
$as_echo "no" >&6; }
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
|
|
|
|
as_fn_error $? "Sorry, cannot build PSBLAS without support for VOLATILE" "$LINENO" 5
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
@ -6784,31 +6781,36 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking test GENERIC interfaces" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for Fortran FINAL" >&5
|
|
|
|
$as_echo_n "checking test GENERIC interfaces... " >&6; }
|
|
|
|
$as_echo_n "checking support for Fortran FINAL... " >&6; }
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
ac_exeext=''
|
|
|
|
ac_exeext=''
|
|
|
|
ac_ext='F90'
|
|
|
|
ac_ext='f90'
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
|
|
|
|
|
|
|
|
module conftest
|
|
|
|
module conftest_mod
|
|
|
|
|
|
|
|
type foo
|
|
|
|
interface foo
|
|
|
|
integer :: i
|
|
|
|
subroutine i_sub_foo(v)
|
|
|
|
contains
|
|
|
|
integer, intent(inout) :: v(:)
|
|
|
|
final :: destroy_foo
|
|
|
|
end subroutine i_sub_foo
|
|
|
|
end type foo
|
|
|
|
end interface foo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
interface bar
|
|
|
|
|
|
|
|
procedure i_sub_foo
|
|
|
|
|
|
|
|
end interface bar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end module conftest
|
|
|
|
private destroy_foo
|
|
|
|
|
|
|
|
contains
|
|
|
|
|
|
|
|
subroutine destroy_foo(a)
|
|
|
|
|
|
|
|
type(foo) :: a
|
|
|
|
|
|
|
|
! Just a test
|
|
|
|
|
|
|
|
end subroutine destroy_foo
|
|
|
|
|
|
|
|
end module conftest_mod
|
|
|
|
|
|
|
|
program conftest
|
|
|
|
|
|
|
|
use conftest_mod
|
|
|
|
|
|
|
|
type(foo) :: foovar
|
|
|
|
|
|
|
|
end program conftest
|
|
|
|
_ACEOF
|
|
|
|
_ACEOF
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
@ -6819,7 +6821,7 @@ else
|
|
|
|
$as_echo "no" >&6; }
|
|
|
|
$as_echo "no" >&6; }
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
FDEFINES="$psblas_cv_define_prepend-DHAVE_BUGGY_GENERICS $FDEFINES"
|
|
|
|
as_fn_error $? "Sorry, cannot build PSBLAS without support for FINAL" "$LINENO" 5
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
@ -6831,35 +6833,48 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for Fortran FLUSH statement" >&5
|
|
|
|
|
|
|
|
$as_echo_n "checking support for Fortran FLUSH statement... " >&6; }
|
|
|
|
#
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
# Optional features
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking test GENERIC interfaces" >&5
|
|
|
|
|
|
|
|
$as_echo_n "checking test GENERIC interfaces... " >&6; }
|
|
|
|
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
ac_exeext=''
|
|
|
|
ac_exeext=''
|
|
|
|
ac_ext='f90'
|
|
|
|
ac_ext='F90'
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
|
|
|
|
|
|
|
|
program conftest
|
|
|
|
module conftest
|
|
|
|
integer :: iunit=10
|
|
|
|
|
|
|
|
open(10)
|
|
|
|
interface foo
|
|
|
|
write(10,*) 'Test '
|
|
|
|
subroutine i_sub_foo(v)
|
|
|
|
flush(10)
|
|
|
|
integer, intent(inout) :: v(:)
|
|
|
|
close(10)
|
|
|
|
end subroutine i_sub_foo
|
|
|
|
end program conftest
|
|
|
|
end interface foo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
interface bar
|
|
|
|
|
|
|
|
procedure i_sub_foo
|
|
|
|
|
|
|
|
end interface bar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end module conftest
|
|
|
|
_ACEOF
|
|
|
|
_ACEOF
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
$as_echo "yes" >&6; }
|
|
|
|
$as_echo "yes" >&6; }
|
|
|
|
FDEFINES="$psblas_cv_define_prepend-DHAVE_FLUSH_STMT $FDEFINES"
|
|
|
|
:
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
$as_echo "no" >&6; }
|
|
|
|
$as_echo "no" >&6; }
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
|
|
|
|
FDEFINES="$psblas_cv_define_prepend-DHAVE_BUGGY_GENERICS $FDEFINES"
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
@ -6871,9 +6886,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for Fortran FLUSH statement" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for Fortran FINAL" >&5
|
|
|
|
$as_echo_n "checking support for Fortran FLUSH statement... " >&6; }
|
|
|
|
$as_echo_n "checking support for Fortran FINAL... " >&6; }
|
|
|
|
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
@ -6884,29 +6898,18 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
|
|
|
|
|
|
|
|
module conftest_mod
|
|
|
|
|
|
|
|
type foo
|
|
|
|
|
|
|
|
integer :: i
|
|
|
|
|
|
|
|
contains
|
|
|
|
|
|
|
|
final :: destroy_foo
|
|
|
|
|
|
|
|
end type foo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private destroy_foo
|
|
|
|
|
|
|
|
contains
|
|
|
|
|
|
|
|
subroutine destroy_foo(a)
|
|
|
|
|
|
|
|
type(foo) :: a
|
|
|
|
|
|
|
|
! Just a test
|
|
|
|
|
|
|
|
end subroutine destroy_foo
|
|
|
|
|
|
|
|
end module conftest_mod
|
|
|
|
|
|
|
|
program conftest
|
|
|
|
program conftest
|
|
|
|
use conftest_mod
|
|
|
|
integer :: iunit=10
|
|
|
|
type(foo) :: foovar
|
|
|
|
open(10)
|
|
|
|
|
|
|
|
write(10,*) 'Test '
|
|
|
|
|
|
|
|
flush(10)
|
|
|
|
|
|
|
|
close(10)
|
|
|
|
end program conftest
|
|
|
|
end program conftest
|
|
|
|
_ACEOF
|
|
|
|
_ACEOF
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
$as_echo "yes" >&6; }
|
|
|
|
$as_echo "yes" >&6; }
|
|
|
|
FDEFINES="$psblas_cv_define_prepend-DHAVE_FINAL $FDEFINES"
|
|
|
|
FDEFINES="$psblas_cv_define_prepend-DHAVE_FLUSH_STMT $FDEFINES"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
$as_echo "no" >&6; }
|
|
|
|
$as_echo "no" >&6; }
|
|
|
@ -6923,6 +6926,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for Fortran SAME_TYPE_AS" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for Fortran SAME_TYPE_AS" >&5
|
|
|
|
$as_echo_n "checking support for Fortran SAME_TYPE_AS... " >&6; }
|
|
|
|
$as_echo_n "checking support for Fortran SAME_TYPE_AS... " >&6; }
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|