diff --git a/INSTALL.swift b/INSTALL.swift index 5ced7083e2c32751364ab08b9818b84445f4334a..33c14049b640bee7e1d7be4aaca435dc18b7fda0 100644 --- a/INSTALL.swift +++ b/INSTALL.swift @@ -78,7 +78,8 @@ commands. MPI: an optional MPI library that fully supports MPI_THREAD_MULTIPLE. Before running configure the "mpirun" command should be available in the -shell. +shell. If your command isn't called "mpirun" then define the "MPIRUN" +environment variable, either in the shell or when running configure. METIS: a build of the METIS library can be optionally used to optimize the diff --git a/configure.ac b/configure.ac index 933f2ba453f7190855c4e5d8f9e3c41b3256c3d1..a3d38e86dfcc7bfaf94fc2a24d77b4441edc47f2 100644 --- a/configure.ac +++ b/configure.ac @@ -63,8 +63,12 @@ if test "$enable_mpi" = "yes"; then # Various MPI implementations require additional libraries when also using # threads. Use mpirun (on PATH) as that seems to be only command with - # version flag. - AC_PATH_PROG([MPIRUN],[mpirun],[notfound]) + # version flag, allow MPIRUN to override for systems that insist on + # a non-standard name (PRACE). + : ${MPIRUN='mpirun'} + if test "$MPIRUN" = "mpirun"; then + AC_PATH_PROG([MPIRUN],[mpirun],[notfound]) + fi if test "$MPIRUN" = "notfound"; then AC_MSG_WARN([Cannot find mpirun command on PATH, thread support may not be correct]) enable_mpi="no"