orte/alps: add support for --with-alps=yes on CLE 5.0 and clean out tabs
This commit was SVN r27096.
Этот коммит содержится в:
родитель
254f34133c
Коммит
0061ac066b
@ -26,43 +26,63 @@ AC_DEFUN([ORTE_CHECK_ALPS],[
|
|||||||
# we can get the static library ordering correct
|
# we can get the static library ordering correct
|
||||||
AC_REQUIRE([ORTE_CHECK_PMI])
|
AC_REQUIRE([ORTE_CHECK_PMI])
|
||||||
|
|
||||||
AC_ARG_WITH([alps],
|
AC_ARG_WITH([alps],
|
||||||
[AC_HELP_STRING([--with-alps(=DIR|yes|no)],
|
[AC_HELP_STRING([--with-alps(=DIR|yes|no)],
|
||||||
[Build with ALPS scheduler component, optionally adding DIR/include, DIR/lib, and DIR/lib64 to the search path for headers and libraries (default: no)])])
|
[Build with ALPS scheduler component, optionally adding DIR/include, DIR/lib, and DIR/lib64 to the search path for headers and libraries (default: no)])])
|
||||||
OMPI_CHECK_WITHDIR([alps], [$with_alps], [.])
|
OMPI_CHECK_WITHDIR([alps], [$with_alps], [.])
|
||||||
|
|
||||||
AC_ARG_WITH([alps-libdir],
|
AC_ARG_WITH([alps-libdir],
|
||||||
[AC_HELP_STRING([--with-alps-libdir=DIR],
|
[AC_HELP_STRING([--with-alps-libdir=DIR],
|
||||||
[Location of alps libraries (alpslli, alpsutil) (default: /usr/lib/alps)])])
|
[Location of alps libraries (alpslli, alpsutil) (default: /usr/lib/alps)])])
|
||||||
|
|
||||||
# save the CPPFLAGS so we can check for alps/apInfo.h without adding $with_alps/include to the global path
|
# save the CPPFLAGS so we can check for alps/apInfo.h without adding $with_alps/include to the global path
|
||||||
orte_check_alps_$1_save_CPPFLAGS="$CPPFLAGS"
|
orte_check_alps_$1_save_CPPFLAGS="$CPPFLAGS"
|
||||||
|
|
||||||
if test "$with_alps" = "no" -o -z "$with_alps" ; then
|
#
|
||||||
orte_check_alps_happy="no"
|
# check to see where alps is installed, it wandered to a new location starting with CLE 5.0
|
||||||
|
#
|
||||||
|
|
||||||
|
if test -f "/usr/lib/alps/libalps.a" ; then
|
||||||
|
using_cle5_install="no"
|
||||||
|
else
|
||||||
|
using_cle5_install="yes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$with_alps" = "no" -o -z "$with_alps" ; then
|
||||||
|
orte_check_alps_happy="no"
|
||||||
else
|
else
|
||||||
# Only need to do these tests once (this macro is invoked
|
# Only need to do these tests once (this macro is invoked
|
||||||
# from multiple different components' configure.m4 scripts
|
# from multiple different components' configure.m4 scripts
|
||||||
|
|
||||||
orte_check_alps_happy="yes"
|
orte_check_alps_happy="yes"
|
||||||
orte_check_alps_libdir="$with_alps_libdir"
|
orte_check_alps_libdir="$with_alps_libdir"
|
||||||
|
|
||||||
if test -z "$orte_check_alps_libdir" ; then
|
if test -z "$orte_check_alps_libdir" ; then
|
||||||
if test "$with_alps" != "yes" ; then
|
if test "$with_alps" != "yes" ; then
|
||||||
AS_IF([test -d "$with_alps/lib64"],
|
AS_IF([test -d "$with_alps/lib64"],
|
||||||
[orte_check_alps_libdir="$with_alps/lib64"],
|
[orte_check_alps_libdir="$with_alps/lib64"],
|
||||||
[orte_check_alps_libdir="$with_alps/lib"])
|
[orte_check_alps_libdir="$with_alps/lib"])
|
||||||
else
|
else
|
||||||
orte_check_alps_libdir="/usr/lib/alps"
|
if test "$using_cle5_install" = "yes"; then
|
||||||
fi
|
orte_check_alps_libdir="/opt/cray/alps/default/lib64"
|
||||||
fi
|
else
|
||||||
|
orte_check_alps_libdir="/usr/lib/alps"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
AS_IF([test "$with_alps" = "yes"],
|
if test "$using_cle5_install" = "yes" ; then
|
||||||
[orte_check_alps_dir="/usr"],
|
AS_IF([test "$with_alps" = "yes"],
|
||||||
[orte_check_alps_dir="$with_alps"])
|
[orte_check_alps_dir="/usr"],
|
||||||
|
[orte_check_alps_dir="$with_alps"])
|
||||||
|
else
|
||||||
|
AS_IF([test "$with_alps" = "yes"],
|
||||||
|
[orte_check_alps_dir="/opt/cray/alps/default"],
|
||||||
|
[orte_check_alps_dir="$with_alps"])
|
||||||
|
fi
|
||||||
|
|
||||||
$1_CPPFLAGS="-I$orte_check_alps_dir/include"
|
$1_CPPFLAGS="-I$orte_check_alps_dir/include"
|
||||||
$1_LDFLAGS="-L$orte_check_alps_libdir"
|
$1_LDFLAGS="-L$orte_check_alps_libdir"
|
||||||
|
|
||||||
if test -z "$orte_check_alps_pmi_happy"; then
|
if test -z "$orte_check_alps_pmi_happy"; then
|
||||||
# if pmi support is requested, then ORTE_CHECK_PMI
|
# if pmi support is requested, then ORTE_CHECK_PMI
|
||||||
@ -87,7 +107,7 @@ AC_DEFUN([ORTE_CHECK_ALPS],[
|
|||||||
AC_MSG_ERROR([Cannot continue])])
|
AC_MSG_ERROR([Cannot continue])])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AS_IF([test "$orte_check_alps_happy" = "yes"],
|
AS_IF([test "$orte_check_alps_happy" = "yes"],
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user