Add some checks for optional fortran datatypes, required by the ddt
engine This commit was SVN r2934.
Этот коммит содержится в:
родитель
4655fe3943
Коммит
df98ca0010
@ -11,6 +11,7 @@ EXTRA_DIST = \
|
||||
cxx_find_template_repository.m4 \
|
||||
cxx_find_exception_flags.m4 \
|
||||
cxx_have_exceptions.m4 \
|
||||
f77_check_sizeof.m4 \
|
||||
f77_find_ext_symbol_convention.m4 \
|
||||
f77_get_alignment.m4 \
|
||||
f77_get_sizeof.m4 \
|
||||
|
28
config/f77_check_type.m4
Обычный файл
28
config/f77_check_type.m4
Обычный файл
@ -0,0 +1,28 @@
|
||||
dnl -*- shell-script -*-
|
||||
dnl
|
||||
dnl $HEADER$
|
||||
dnl
|
||||
|
||||
AC_DEFUN([OMPI_F77_CHECK_TYPE],[
|
||||
# Determine FORTRAN datatype size.
|
||||
# First arg is type, 2nd arg is config var to define
|
||||
|
||||
AC_MSG_CHECKING([if FORTRAN compiler supports $1])
|
||||
|
||||
AC_LANG_PUSH(Fortran 77)
|
||||
AC_COMPILE_IFELSE(AC_LANG_SOURCE([[C
|
||||
program main
|
||||
$1 bogus_variable
|
||||
end]]),
|
||||
[HAPPY=1
|
||||
AC_MSG_RESULT([yes])],
|
||||
[HAPPY=0
|
||||
AC_MSG_RESULT([no])])
|
||||
AC_LANG_POP
|
||||
|
||||
str="$2=$HAPPY"
|
||||
echo happy is: $HAPPY
|
||||
echo str is: $str
|
||||
eval $str
|
||||
|
||||
unset HAPPY])dnl
|
43
configure.ac
43
configure.ac
@ -284,6 +284,17 @@ AC_DEFINE_UNQUOTED(OMPI_WANT_CXX_BINDINGS, $WANT_MPI_CXX_SUPPORT,
|
||||
# Fortran
|
||||
##################################
|
||||
|
||||
OMPI_HAVE_FORTRAN_INTEGER1=0
|
||||
OMPI_HAVE_FORTRAN_INTEGER2=0
|
||||
OMPI_HAVE_FORTRAN_INTEGER4=0
|
||||
OMPI_HAVE_FORTRAN_INTEGER8=0
|
||||
OMPI_HAVE_FORTRAN_INTEGER4=0
|
||||
OMPI_HAVE_FORTRAN_INTEGER8=0
|
||||
OMPI_HAVE_FORTRAN_INTEGER16=0
|
||||
OMPI_HAVE_FORTRAN_COMPLEX8=0
|
||||
OMPI_HAVE_FORTRAN_COMPLEX16=0
|
||||
OMPI_HAVE_FORTRAN_COMPLEX32=0
|
||||
|
||||
OMPI_SIZEOF_FORTRAN_INT=0
|
||||
OMPI_SIZEOF_FORTRAN_REAL=0
|
||||
OMPI_SIZEOF_FORTRAN_DBLPREC=0
|
||||
@ -316,6 +327,17 @@ else
|
||||
# If we want fortran support, then get the sizes and alignments of
|
||||
# all the rest of the fortran types
|
||||
|
||||
OMPI_F77_CHECK_TYPE(INTEGER*1, OMPI_HAVE_FORTRAN_INTEGER1)
|
||||
OMPI_F77_CHECK_TYPE(INTEGER*2, OMPI_HAVE_FORTRAN_INTEGER2)
|
||||
OMPI_F77_CHECK_TYPE(INTEGER*4, OMPI_HAVE_FORTRAN_INTEGER4)
|
||||
OMPI_F77_CHECK_TYPE(INTEGER*8, OMPI_HAVE_FORTRAN_INTEGER8)
|
||||
OMPI_F77_CHECK_TYPE(INTEGER*4, OMPI_HAVE_FORTRAN_INTEGER4)
|
||||
OMPI_F77_CHECK_TYPE(INTEGER*8, OMPI_HAVE_FORTRAN_INTEGER8)
|
||||
OMPI_F77_CHECK_TYPE(INTEGER*16, OMPI_HAVE_FORTRAN_INTEGER16)
|
||||
OMPI_F77_CHECK_TYPE(COMPLEX*8, OMPI_HAVE_FORTRAN_COMPLEX8)
|
||||
OMPI_F77_CHECK_TYPE(COMPLEX*16, OMPI_HAVE_FORTRAN_COMPLEX16)
|
||||
OMPI_F77_CHECK_TYPE(COMPLEX*32, OMPI_HAVE_FORTRAN_COMPLEX32)
|
||||
|
||||
OMPI_F77_GET_SIZEOF(LOGICAL, OMPI_SIZEOF_FORTRAN_LOGICAL)
|
||||
OMPI_F77_GET_SIZEOF(INTEGER, OMPI_SIZEOF_FORTRAN_INT)
|
||||
OMPI_F77_GET_SIZEOF(REAL, OMPI_SIZEOF_FORTRAN_REAL)
|
||||
@ -331,6 +353,27 @@ else
|
||||
OMPI_F77_GET_ALIGNMENT(DOUBLE COMPLEX, OMPI_ALIGNMENT_FORTRAN_DBLCOMPLEX)
|
||||
fi
|
||||
|
||||
AC_DEFINE_UNQUOTED(OMPI_HAVE_FORTRAN_INTEGER1, $OMPI_HAVE_FORTRAN_INTEGER1,
|
||||
[Whether we have FORTRAN INTEGER1 or not])
|
||||
AC_DEFINE_UNQUOTED(OMPI_HAVE_FORTRAN_INTEGER2, $OMPI_HAVE_FORTRAN_INTEGER2,
|
||||
[Whether we have FORTRAN INTEGER2 or not])
|
||||
AC_DEFINE_UNQUOTED(OMPI_HAVE_FORTRAN_INTEGER4, $OMPI_HAVE_FORTRAN_INTEGER4,
|
||||
[Whether we have FORTRAN INTEGER4 or not])
|
||||
AC_DEFINE_UNQUOTED(OMPI_HAVE_FORTRAN_INTEGER8, $OMPI_HAVE_FORTRAN_INTEGER8,
|
||||
[Whether we have FORTRAN INTEGER8 or not])
|
||||
AC_DEFINE_UNQUOTED(OMPI_HAVE_FORTRAN_INTEGER4, $OMPI_HAVE_FORTRAN_INTEGER4,
|
||||
[Whether we have FORTRAN INTEGER4 or not])
|
||||
AC_DEFINE_UNQUOTED(OMPI_HAVE_FORTRAN_INTEGER8, $OMPI_HAVE_FORTRAN_INTEGER8,
|
||||
[Whether we have FORTRAN INTEGER8 or not])
|
||||
AC_DEFINE_UNQUOTED(OMPI_HAVE_FORTRAN_INTEGER16, $OMPI_HAVE_FORTRAN_INTEGER16,
|
||||
[Whether we have FORTRAN INTEGER16 or not])
|
||||
AC_DEFINE_UNQUOTED(OMPI_HAVE_FORTRAN_COMPLEX8, $OMPI_HAVE_FORTRAN_COMPLEX8,
|
||||
[Whether we have FORTRAN COMPLEX8 or not])
|
||||
AC_DEFINE_UNQUOTED(OMPI_HAVE_FORTRAN_COMPLEX16, $OMPI_HAVE_FORTRAN_COMPLEX16,
|
||||
[Whether we have FORTRAN COMPLEX16 or not])
|
||||
AC_DEFINE_UNQUOTED(OMPI_HAVE_FORTRAN_COMPLEX32, $OMPI_HAVE_FORTRAN_COMPLEX32,
|
||||
[Whether we have FORTRAN COMPLEX32 or not])
|
||||
|
||||
AC_DEFINE_UNQUOTED(OMPI_SIZEOF_FORTRAN_LOGICAL, $OMPI_SIZEOF_FORTRAN_LOGICAL,
|
||||
[Size of fortran logical])
|
||||
AC_DEFINE_UNQUOTED(OMPI_SIZEOF_FORTRAN_INT, $OMPI_SIZEOF_FORTRAN_INT,
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user