瀏覽代碼

configure.ac: fix detection of mpiexec

Nathalie Furmento 14 年之前
父節點
當前提交
ebbc8dcc66
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      configure.ac

+ 2 - 2
configure.ac

@@ -827,8 +827,8 @@ AC_ARG_WITH(mpiexec, [AS_HELP_STRING([--with-mpiexec[=<path to mpiexec>]],
 		fi
 	],
 	[
-		# nothing was specified: default value is used
-		AC_PATH_PROG(mpiexec_path, $(dirname $mpicc_path)/mpiexec, [no], [])
+		# nothing was specified: look in the path
+		AC_PATH_PROG(mpiexec_path, mpiexec, [no], [$(dirname $mpicc_path):$PATH])
 	])
 
 AC_MSG_CHECKING(whether mpiexec is available)