Skip to content

configury: test Fortran complex(real16) #13265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: v5.0.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions config/ompi_fortran_check_iso_fortran_env_real16.m4
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,22 @@ end program]])],
[AS_VAR_SET(iso_fortran_env_var_real16, no)])
AC_LANG_POP([Fortran])
])
AS_VAR_IF(iso_fortran_env_var_real16, [yes],
[AC_MSG_CHECKING([if Fortran compiler supports complex(ISO_FORTRAN_ENV:REAL16)])
AC_LANG_PUSH([Fortran])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[program check_for_iso_fortran_env_real16
use, intrinsic :: iso_fortran_env
complex(REAL16) :: var
var = 12.34
end program]])],
[AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])
AC_MSG_WARN([*** Fortran compiler supports real(REAL16) but])
AC_MSG_WARN([*** does *not* support complex(REAL16)])
AC_MSG_WARN([*** Disabling support for ISO_FORTRAN_ENV:REAL16])
AS_VAR_SET(iso_fortran_env_var_real16, no)])
AC_LANG_POP([Fortran])],
[])

AS_VAR_IF(iso_fortran_env_var_real16, [yes], [$1], [$2])
AS_VAR_POPDEF([iso_fortran_env_var_real16])
Expand Down