Fix conftest module names.
psblas-3.4-maint
Salvatore Filippone 9 years ago
parent 7871ffc824
commit 5b2ca16124

@ -565,7 +565,7 @@ AC_LANG_PUSH([Fortran])
dnl ac_link='${MPIFC-$FC} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' dnl ac_link='${MPIFC-$FC} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
ac_fc=${MPIFC-$FC}; ac_fc=${MPIFC-$FC};
AC_COMPILE_IFELSE([ AC_COMPILE_IFELSE([
module iface module conftest
interface foo interface foo
subroutine i_sub_foo(v) subroutine i_sub_foo(v)
@ -577,7 +577,7 @@ module iface
procedure i_sub_foo procedure i_sub_foo
end interface bar end interface bar
end module iface], end module conftest],
[ AC_MSG_RESULT([yes]) [ AC_MSG_RESULT([yes])
ifelse([$1], , :, [ $1])], ifelse([$1], , :, [ $1])],
[ AC_MSG_RESULT([no]) [ AC_MSG_RESULT([no])
@ -653,7 +653,7 @@ AC_LANG_PUSH([Fortran])
dnl ac_link='${MPIFC-$FC} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' dnl ac_link='${MPIFC-$FC} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
ac_fc=${MPIFC-$FC}; ac_fc=${MPIFC-$FC};
AC_COMPILE_IFELSE([ AC_COMPILE_IFELSE([
module foo_mod module conftest_mod
type foo type foo
integer :: i integer :: i
contains contains
@ -676,9 +676,9 @@ contains
res = a%i res = a%i
end function getit end function getit
end module foo_mod end module conftest_mod
program conftest program conftest
use foo_mod use conftest_mod
type(foo) :: foovar type(foo) :: foovar
end program conftest], end program conftest],
[ AC_MSG_RESULT([yes]) [ AC_MSG_RESULT([yes])
@ -712,7 +712,7 @@ dnl Warning : square brackets are EVIL!
dnl ac_link='${MPIFC-$FC} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' dnl ac_link='${MPIFC-$FC} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
ac_fc=${MPIFC-$FC}; ac_fc=${MPIFC-$FC};
AC_COMPILE_IFELSE([ AC_COMPILE_IFELSE([
module foo_mod module conftest_mod
type foo type foo
integer :: i integer :: i
contains contains
@ -725,9 +725,9 @@ contains
type(foo) :: a type(foo) :: a
! Just a test ! Just a test
end subroutine destroy_foo end subroutine destroy_foo
end module foo_mod end module conftest_mod
program conftest program conftest
use foo_mod use conftest_mod
type(foo) :: foovar type(foo) :: foovar
end program conftest], end program conftest],
[ AC_MSG_RESULT([yes]) [ AC_MSG_RESULT([yes])

8402
configure vendored

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save