diff options
author | sbrandt <sbrandt@043a8217-7a68-40fe-abfd-36aa7d4fa6a8> | 2014-09-23 14:41:47 +0000 |
---|---|---|
committer | sbrandt <sbrandt@043a8217-7a68-40fe-abfd-36aa7d4fa6a8> | 2014-09-23 14:41:47 +0000 |
commit | 8a230cf4d02f13c1c88c2f2e11dedd2a9755d630 (patch) | |
tree | 7b54c5ed36137e0bd58e21e797f498a7ca64a6fb | |
parent | e91db861faf29818fbb8909b7acddec3560f6092 (diff) |
Ticket 1655. Add executable name used by macports.
git-svn-id: http://svn.cactuscode.org/projects/ExternalLibraries/MPI/trunk@49 043a8217-7a68-40fe-abfd-36aa7d4fa6a8
-rw-r--r-- | configure.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.pl b/configure.pl index 34c4e2d..1489d58 100644 --- a/configure.pl +++ b/configure.pl @@ -69,10 +69,11 @@ if($mpi_search and !defined($mpi_cmd)) { $mpi_cmd = which("mpic++"); $mpi_cmd = which("mpiCC") unless(defined($mpi_cmd)); $mpi_cmd = which("mpicxx") unless(defined($mpi_cmd)); + $mpi_cmd = which("mpicxx-openmpi-mp") unless(defined($mpi_cmd)); $mpi_cmd = which("mpicc") unless(defined($mpi_cmd)); if(defined($mpi_cmd)) { $mpi_dir = $mpi_cmd; - $mpi_dir =~ s{/mpi(c\+\+|CC|cc|cxx)$}{}; + $mpi_dir =~ s{/mpi(c\+\+|CC|cc|cxx)[^/]*$}{}; $mpi_dir =~ s{/bin$}{}; message("Found mpi compiler wrapper at $mpi_cmd!"); mpi_get_info(); |