diff --git a/m4/dune_mpi.m4 b/m4/dune_mpi.m4 index dd6bcf7c156465c9cd87c6c93d68fa07358ddc07..dbd9e87df6373fd6b3704370950fba4dd41eb822 100644 --- a/m4/dune_mpi.m4 +++ b/m4/dune_mpi.m4 @@ -51,6 +51,11 @@ AC_DEFUN([DUNE_MPI],[ # implicitly sets the HAVE_MPI-define and the MPICXX-substitution ACX_MPI() + # remove HAVE_MPI from confdefs.h + cp confdefs.h confdefs.h.tmp + grep -v "^#define HAVE_MPI " confdefs.h.tmp > confdefs.h + rm -f confdefs.h.tmp + # disable runtest if we have a queuing system AC_ARG_ENABLE(mpiruntest, AC_HELP_STRING([--disable-mpiruntest], @@ -245,6 +250,7 @@ dune_mpi_remove () { if test x"$with_mpi" != xno ; then AC_SUBST(MPI_CPPFLAGS, $MPI_CPPFLAGS) AC_SUBST(MPI_LDFLAGS, $MPI_LDFLAGS) + AC_DEFINE(HAVE_MPI,1,[Define if you have the MPI library.]) else AC_SUBST(MPI_CPPFLAGS, "") AC_SUBST(MPI_LDFLAGS, "")