Skip to content

Commit 52acc89

Browse files
ggouaillardetjanjust
authored andcommitted
configury: fix Fortran common alignment detection
Do not try to detect Fortran common alignment if no Fortran compiler is available. Ref. #13257 :bot:notacherrypick Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent e457150 commit 52acc89

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

config/ompi_setup_mpi_fortran.m4

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ AC_DEFUN([OMPI_SETUP_MPI_FORTRAN],[
142142
OMPI_FORTRAN_IKINDS=
143143
OMPI_FORTRAN_RKINDS=
144144
OMPI_FORTRAN_CKINDS=
145-
OMPI_FORTRAN_GET_COMMON_ALIGNMENT([OMPI_FORTRAN_COMMON_ALIGNMENT])
145+
AS_IF([test $ompi_fortran_happy -eq 1],
146+
[OMPI_FORTRAN_GET_COMMON_ALIGNMENT([OMPI_FORTRAN_COMMON_ALIGNMENT])],
147+
[OMPI_FORTRAN_COMMON_ALIGNMENT=0])
146148
AC_SUBST([OMPI_FORTRAN_COMMON_ALIGNMENT])
147149

148150
# We want to set the #define's for all of these, so invoke the macros

0 commit comments

Comments
 (0)