Browse Source

configure.ac: fix when option without-mpicc is set

Nathalie Furmento 7 years ago
parent
commit
c98da578cd
1 changed files with 3 additions and 1 deletions
  1. 3 1
      configure.ac

+ 3 - 1
configure.ac

@@ -271,13 +271,15 @@ AC_ARG_WITH(mpicc, [AS_HELP_STRING([--with-mpicc[=<path to mpicc>]],
    [
        if test x$withval = xyes; then
            AC_MSG_ERROR(--with-mpicc must be given a pathname)
+       elif test x$withval = xno ; then
+           mpi_requested=no
        else
 	   mpi_requested=yes
            mpicc_path=$withval
        fi
    ],
    [
-       mpi_requested=no
+       mpi_requested=maybe
        if test x$enable_simgrid = xyes ; then
            DEFAULT_MPICC=smpicc
        else