@@ -367,18 +367,21 @@ AC_DEFUN([OMPI_SETUP_MPI_FORTRAN],[
367
367
368
368
# We need to have ignore TKR functionality to build the mpi_f08
369
369
# module
370
- AS_IF([test $OMPI_TRY_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS &&
370
+ AS_IF([test $OMPI_TRY_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS && \
371
371
test $OMPI_FORTRAN_HAVE_IGNORE_TKR -eq 1],
372
372
[OMPI_BUILD_FORTRAN_BINDINGS= $OMPI_FORTRAN_USEMPIF08_BINDINGS
373
373
OMPI_FORTRAN_F08_PREDECL= $OMPI_FORTRAN_IGNORE_TKR_PREDECL
374
374
OMPI_FORTRAN_F08_TYPE= $OMPI_FORTRAN_IGNORE_TKR_TYPE
375
375
])
376
376
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])])
377
+ AS_IF([test $OMPI_TRY_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS && \
378
+ test $OMPI_BUILD_FORTRAN_BINDINGS -ge $OMPI_FORTRAN_USEMPIF08_BINDINGS ],
379
+ [ # If we don't have PMPI, we won't build mpi_f08 at all
380
+ AC_MSG_CHECKING([whether PMPI is enabled])
381
+ AS_IF([test $WANT_MPI_PROFILING -eq 1],
382
+ [AC_MSG_RESULT([yes])],
383
+ [OMPI_BUILD_FORTRAN_BINDINGS= $OMPI_FORTRAN_USEMPI_BINDINGS
384
+ AC_MSG_RESULT([no])])])
382
385
383
386
# The overall "_BIND_C" variable will be set to 1 if we have all
384
387
# the necessary forms of BIND(C)
0 commit comments