Hardens test for MPI

Previously, the configure script could fail to find an MPI
implementation but continue regardless. This alters the behaviour so
that the configure script fails if the check for MPI does.
master
Ian Kirker 2017-11-22 20:13:53 +00:00
parent b0bffa0d0e
commit 1dce7ffdb6
1 changed files with 6 additions and 2 deletions

View File

@ -18,8 +18,12 @@ AC_CANONICAL_HOST
AM_INIT_AUTOMAKE([check-news dist-bzip2 gnu no-define])
AM_MAINTAINER_MODE
# Checks for programs.
AX_PROG_CC_MPI
# Checks for programs
# We can't do anything without a working MPI
AX_PROG_CC_MPI(,,[
AC_MSG_FAILURE([MPI compiler requested, but couldn't use MPI.])
])
# No reason not to require modern C at this point
AC_PROG_CC_C99