1
1

Update the pmi detection to report a more meaningful error message when with-pmi is specified but the pmi.h file cannot be found

This commit was SVN r27725.
Этот коммит содержится в:
Ralph Castain 2012-12-27 04:57:30 +00:00
родитель b6d50a5733
Коммит fb5079a310

Просмотреть файл

@ -64,7 +64,12 @@ AC_DEFUN([ORTE_CHECK_PMI],[
AS_IF([test -f "$with_pmi/include/pmi.h"], AS_IF([test -f "$with_pmi/include/pmi.h"],
[orte_check_pmi_$1_CPPFLAGS="-I$with_pmi/include"], [orte_check_pmi_$1_CPPFLAGS="-I$with_pmi/include"],
[AS_IF([test -f "$with_pmi/include/slurm/pmi.h"], [AS_IF([test -f "$with_pmi/include/slurm/pmi.h"],
[orte_check_pmi_$1_CPPFLAGS="-I$with_pmi/include/slurm"])])], [orte_check_pmi_$1_CPPFLAGS="-I$with_pmi/include/slurm"],
[AC_MSG_RESULT([not found])
AC_MSG_WARN([PMI support requested (via --with-pmi) but pmi.h])
AC_MSG_WARN([not found under specified location $with_pmi])
AC_MSG_ERROR([Aborting])
$3])])],
[AS_IF([test -f "/usr/include/slurm/pmi.h"], [AS_IF([test -f "/usr/include/slurm/pmi.h"],
[orte_check_pmi_$1_CPPFLAGS="-I/usr/include/slurm"])]) [orte_check_pmi_$1_CPPFLAGS="-I/usr/include/slurm"])])