|
|
# octave links agains -lmpi by default | # octave links agains -lmpi by default |
# mpich needs -lmpich instead | # mpich needs -lmpich instead |
if use mpi; then | if use mpi; then |
CC="mpicc" && CXX="mpiCC" |
|
if has_version 'sys-cluster/mpich'; then | if has_version 'sys-cluster/mpich'; then |
|
CC="mpicc" && CXX="mpiCC" |
|
myconf="${myconf} --with-mpi=mpich" |
|
elif has_version 'sys-cluster/mpich2'; then |
|
CC="mpicc" && CXX="mpicxx" |
myconf="${myconf} --with-mpi=mpich" | myconf="${myconf} --with-mpi=mpich" |
else | else |
|
CC="mpicc" && CXX="mpiCC" |
myconf="${myconf} --with-mpi=mpi" | myconf="${myconf} --with-mpi=mpi" |
fi | fi |
else | else |