Support MPI version 4
@@ -220,11 +220,12 @@ AC_DEFINE_UNQUOTED(ADLB_MPI_VERSION, [${ADLB_MPI_VERSION}],
# if user wants to build with MPI 3,
# check the reported MPI_VERSION number
-if [[ ${ADLB_MPI_VERSION} == 3 ]]
+if (( ${ADLB_MPI_VERSION} >= 3 ))
then
AC_MSG_CHECKING([MPI version])
${CC} ${CFLAGS} -o maint/mpi_version3_test maint/mpi_version3_test.c
-[[ ${?} != 0 ]] && AC_MSG_ERROR([MPI_VERSION 3 is required for parallel tasks!
+[[ ${?} != 0 ]] && AC_MSG_ERROR(
+ [MPI_VERSION >= 3 is required for parallel tasks!
You must 1) re-configure with --enable-mpi-2
which disables parallel tasks; or
2) use an MPI 3 implementation])
