1
1

Remove unnecessary configure.m4 from pmix framework level. Update opal_check_pmi.m4 to correctly report Slurm locations

Этот коммит содержится в:
Ralph Castain 2014-10-27 13:24:52 -07:00
родитель a16c1e4418
Коммит 698ecd14a1
2 изменённых файлов: 27 добавлений и 47 удалений

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

@ -26,7 +26,7 @@
# define an internal function for checking the existence
# and validity of a PMI library
#
# OPAL_CHECK_PMI_LIB(installdir, pmi, function, [action-if-valid], [action-if-not-valid])
# OPAL_CHECK_PMI_LIB(installdir, pmi, function, [action-if-slurm], [action-if-valid], [action-if-not-valid])
# --------------------------------------------------------
AC_DEFUN([OPAL_CHECK_PMI_LIB],
[
@ -48,7 +48,8 @@ AC_DEFUN([OPAL_CHECK_PMI_LIB],
AC_MSG_CHECKING([for $2.h in $1/include/slurm])
AS_IF([test -f $1/include/slurm/$2.h],
[AC_MSG_RESULT([found])
mycppflags="-I$1/include/slurm"],
mycppflags="-I$1/include/slurm"
$4],
[AC_MSG_RESULT([not found])
hdr_happy=no])])
@ -98,7 +99,7 @@ AC_DEFUN([OPAL_CHECK_PMI_LIB],
LIBS="$save_LIBS"
AS_IF([test "$hdr_happy" = "yes" && test "$lib_happy" = "yes"],
[$4], [$5])
[$5], [$6])
OPAL_VAR_SCOPE_POP
])
@ -133,34 +134,41 @@ AC_DEFUN([OPAL_CHECK_PMI],[
# work with slurm :-(
AS_IF([test ! -z "$with_pmi" && test "$with_pmi" != "yes"],
[check_install_dir=$with_pmi
default_loc="no"],
[check_install_dir="/usr"
default_loc="yes"])
default_loc=no],
[check_install_dir=/usr
default_loc=yes])
# check for pmi-1 lib */
OPAL_CHECK_PMI_LIB([$check_install_dir],
[pmi], [PMI_Init],
[have_pmi1=yes
AS_IF([test "$default_loc" = "no"],
[$1_CPPFLAGS="$pmi_CPPFLAGS"
$1_LDFLAGS="$pmi_LDFLAGS"
have_rpath="$pmi_rpath"
added_flags=yes])
local_libs="$pmi_LIBS"],
[default_loc=no],
[have_pmi1=yes],
[have_pmi1=no])
AS_IF([test "$have_pmi1" = "yes"],
[AS_IF([test "$default_loc" = "no"],
[$1_CPPFLAGS="$pmi_CPPFLAGS"
$1_LDFLAGS="$pmi_LDFLAGS"
have_rpath="$pmi_rpath"
added_flags=yes])
local_libs="$pmi_LIBS"])
# check for pmi2 lib */
OPAL_CHECK_PMI_LIB([$check_install_dir],
[pmi2], [PMI2_Init],
[default_loc=no],
[have_pmi2=yes
opal_have_pmi2=1
AS_IF([test "$default_loc" = "no" && test "$added_flags" = "no"],
[$1_CPPFLAGS="$pmi2_CPPFLAGS"
$1_LDFLAGS="$pmi2_LDFLAGS"
have_rpath="$pmi2_rpath"])
local_libs="local_libs $pmi2_LIBS"],
opal_have_pmi2=1],
[have_pmi2=no])
AS_IF([test "$have_pmi2" = "yes"],
[AS_IF([test "$default_loc" = "no" && test "$added_flags" = "no"],
[$1_CPPFLAGS="$pmi2_CPPFLAGS"
$1_LDFLAGS="$pmi2_LDFLAGS"
have_rpath="$pmi2_rpath"
added_flags=yes])
local_libs="$local_libs $pmi2_LIBS"])
# since support was explicitly requested, then we should error out
# if we didn't find the required support
AS_IF([test "$have_pmi1" != "yes" && test "$have_pmi2" != "yes"],

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

@ -1,28 +0,0 @@
dnl -*- shell-script -*-
dnl
dnl Copyright (c) 2014 Intel, Inc. All rights reserved.
dnl $COPYRIGHT$
dnl
dnl Additional copyrights may follow
dnl
dnl $HEADER$
dnl
AC_DEFUN([MCA_opal_pmix_CONFIG],[
# configure all the components first
MCA_CONFIGURE_FRAMEWORK($1, $2, 1)
# Get the CPPFLAGS for the PMI headers
AC_MSG_CHECKING([for PMI headers])
OPAL_CHECK_PMI([pmix], [opal_pmix_happy=1], [opal_pmix_happy=0])
OPAL_CHECK_CRAY_PMI([pmix], [opal_pmix_cray_happy=1], [opal_pmix_cray_happy=0])
AS_IF([test $opal_pmix_happy = 1 -o $opal_pmix_cray_happy = 1],
[AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])])
# add the required make directives - we only care about the CPPFLAGS
AC_MSG_CHECKING([for PMIX CPPFLAGS])
AC_SUBST([pmix_CPPFLAGS])
AC_MSG_RESULT([$pmix_CPPFLAGS])
])dnl