Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 88a6d7b

Browse files
committed
Merge pull request #540 from jsquyres/pr/fortran-sizeof-fix
fortran sizeof fixes
2 parents f3516d1 + 87c0cfb commit 88a6d7b

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

config/ompi_setup_mpi_fortran.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,8 @@ AC_DEFUN([OMPI_SETUP_MPI_FORTRAN],[
309309

310310
# We need INTERFACE, ISO_FORTRAN_ENV, and STORAGE_SIZE() support
311311
# to build MPI_SIZEOF support
312-
AS_IF([test $OMPI_FORTRAN_HAVE_INTERFACE -eq 1 && \
312+
AS_IF([test $ompi_fortran_happy -eq 1 && \
313+
test $OMPI_FORTRAN_HAVE_INTERFACE -eq 1 && \
313314
test $OMPI_FORTRAN_HAVE_ISO_FORTRAN_ENV -eq 1 && \
314315
test $OMPI_FORTRAN_HAVE_STORAGE_SIZE -eq 1],
315316
[OMPI_FORTRAN_BUILD_SIZEOF=1],

ompi/mpi/fortran/mpif-h/profile/Makefile.am

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ AM_CPPFLAGS = -DOMPI_PROFILE_LAYER=1 -DOMPI_COMPILING_FORTRAN_WRAPPERS=1
4545
noinst_LTLIBRARIES =
4646
if BUILD_PMPI_FORTRAN_MPIFH_BINDINGS_LAYER
4747
noinst_LTLIBRARIES += libmpi_mpifh_pmpi.la
48-
else
49-
noinst_LTLIBRARIES +=
5048
endif
5149

5250
headers = \
@@ -437,12 +435,12 @@ CLEANFILES += psizeof_f.f90
437435
# Build the MPI_SIZEOF code in a separate convenience library (see
438436
# lengthy comment in ompi/mpi/fortran/mpif-h/Makefile.am for an
439437
# explanation why).
440-
#if BUILD_FORTRAN_SIZEOF
438+
if BUILD_FORTRAN_SIZEOF
441439
noinst_LTLIBRARIES += libmpi_mpifh_psizeof.la
442440
# Do not dist this file; it is generated
443441
nodist_libmpi_mpifh_psizeof_la_SOURCES = psizeof_f.f90
444442
libmpi_mpifh_pmpi_la_LIBADD += libmpi_mpifh_psizeof.la
445-
#endif
443+
endif
446444

447445
sizeof_pl=$(top_srcdir)/ompi/mpi/fortran/base/gen-mpi-sizeof.pl
448446

0 commit comments

Comments
 (0)