|
From: <sv...@va...> - 2014-08-21 10:04:11
|
Author: mjw
Date: Thu Aug 21 10:04:04 2014
New Revision: 14325
Log:
Check some known PATHs for mpicc in configure.
On some distributions (fedora) mpicc not installed on the default PATH.
Add a search path for finding mpicc by default if it is installed.
The user can still override the used mpicc compiler using --with-mpicc=.
Modified:
trunk/configure.ac
Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Thu Aug 21 10:04:04 2014
@@ -2541,7 +2541,8 @@
# Note: this is a kludge in that it assumes the specified mpicc
# understands -m32/-m64 regardless of what is specified using
# --with-mpicc=.
-MPI_CC="mpicc"
+AC_PATH_PROG([MPI_CC], [mpicc], [mpicc],
+ [$PATH:/usr/lib/openmpi/bin:/usr/lib64/openmpi/bin])
mflag_primary=
if test x$VGCONF_PLATFORM_PRI_CAPS = xX86_LINUX \
|