Commit ce9cae44 authored by Yann Pouillon's avatar Yann Pouillon
Browse files

[LibOMM] Updated build system to the mandatory status of MatrixSwitch

parent af7cdbc4
......@@ -13,6 +13,7 @@
# Autotools parameters
ACLOCAL_AMFLAGS = -I config/m4
AM_DISTCHECK_CONFIGURE_FLAGS = --with-msw="@with_msw@"
# Subdirectories containing makefiles
SUBDIRS = src examples doc
......
......@@ -249,7 +249,7 @@ if test -n "${PSP_LIBS}"; then
omm_psp_type="env"
fi
# MatrixSwitch (optional)
# MatrixSwitch (mandatory)
AC_ARG_WITH([msw],
[AS_HELP_STRING([--with-msw],
[Install prefix of the MatrixSwitch library (e.g. /usr/local). MatrixSwitch support will be enabled only if you use this option. You may use --with-msw without argument if MatrixSwitch is installed as a system library, and --without-msw to disable MatrixSwitch support completely.])],
......@@ -301,6 +301,12 @@ done
# while it is mandatory])
#fi
# MatrixSwitch must be enabled
if test "${omm_msw_enable}" != "yes"; then
AC_MSG_ERROR([MatrixSwitch support has been disabled
while it is mandatory])
fi
# All MPI wrappers must be provided at once
tmp_mpi_vars="${MPICC}${MPIFC}"
if test -n "${tmp_mpi_vars}" -a \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment