Skip to content

Commit 2d1a8fa

Browse files
committed
fortran: do not build the f08 bindings if PMPI is not built
1 parent 588dcc3 commit 2d1a8fa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

config/ompi_setup_mpi_fortran.m4

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,12 @@ AC_DEFUN([OMPI_SETUP_MPI_FORTRAN],[
374374
OMPI_FORTRAN_F08_TYPE=$OMPI_FORTRAN_IGNORE_TKR_TYPE
375375
])
376376

377+
# F08 bindings require the usempi PMPI profiling bindings
378+
AS_IF([test "$WANT_MPI_PROFILING" -eq 0],
379+
[OMPI_TRY_FORTRAN_BINDINGS=$OMPI_FORTRAN_USEMPI_BINDINGS
380+
OMPI_BUILD_FORTRAN_BINDINGS=$OMPI_FORTRAN_USEMPI_BINDINGS
381+
AC_MSG_WARN([PMPI is not built, cannot build usempif08 bindings])])
382+
377383
# The overall "_BIND_C" variable will be set to 1 if we have all
378384
# the necessary forms of BIND(C)
379385
OMPI_FORTRAN_HAVE_BIND_C=0

0 commit comments

Comments
 (0)