From 4c597bda967e16346e6ae9f3c235faed37e77e7d Mon Sep 17 00:00:00 2001 From: Markus Blatt <mblatt@dune-project.org> Date: Fri, 1 Aug 2008 23:18:37 +0000 Subject: [PATCH] Check for support of MPI-2 Standard. [[Imported from SVN: r5256]] --- m4/dune_mpi.m4 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/m4/dune_mpi.m4 b/m4/dune_mpi.m4 index b5e82badf..3cc516b16 100644 --- a/m4/dune_mpi.m4 +++ b/m4/dune_mpi.m4 @@ -155,6 +155,11 @@ AC_DEFUN([DUNE_MPI],[ fi AC_LANG_POP + # Check for MPI-2 Standard + # We have to provide a dummy lib here as we do not know what the name + # of the mpi is. -lm should be save. + AC_CHECK_LIB(m,[MPI_Finalized], [AC_DEFINE(MPI_2, 1, [Define to 1 MPI supports MPI-2])]) + # restore variables LIBS="$ac_save_LIBS" CPPFLAGS="$ac_save_CPPFLAGS" -- GitLab