1
1

Merge pull request #7656 from hppritcha/topic/fix_issue_7580

rework check lustre config to avoid rpath lib64
Этот коммит содержится в:
Howard Pritchard 2020-04-24 09:38:42 -06:00 коммит произвёл GitHub
родитель 2e22a247bb ea690d008b
Коммит ee9baf0a3c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23

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

@ -14,6 +14,8 @@ dnl Copyright (c) 2009-2017 Cisco Systems, Inc. All rights reserved
dnl Copyright (c) 2008-2018 University of Houston. All rights reserved. dnl Copyright (c) 2008-2018 University of Houston. All rights reserved.
dnl Copyright (c) 2015-2018 Research Organization for Information Science dnl Copyright (c) 2015-2018 Research Organization for Information Science
dnl and Technology (RIST). All rights reserved. dnl and Technology (RIST). All rights reserved.
dnl Copyright (c) 2020 Triad National Security, LLC. All rights
dnl reserved.
dnl $COPYRIGHT$ dnl $COPYRIGHT$
dnl dnl
dnl Additional copyrights may follow dnl Additional copyrights may follow
@ -36,7 +38,6 @@ AC_DEFUN([OMPI_CHECK_LUSTRE],[
check_lustre_save_LDFLAGS="$LDFLAGS" check_lustre_save_LDFLAGS="$LDFLAGS"
check_lustre_save_CPPFLAGS="$CPPFLAGS" check_lustre_save_CPPFLAGS="$CPPFLAGS"
check_lustre_configuration="none"
ompi_check_lustre_happy="yes" ompi_check_lustre_happy="yes"
# Get some configuration information # Get some configuration information
@ -46,22 +47,24 @@ AC_DEFUN([OMPI_CHECK_LUSTRE],[
OPAL_CHECK_WITHDIR([lustre], [$with_lustre], [include/lustre/lustreapi.h]) OPAL_CHECK_WITHDIR([lustre], [$with_lustre], [include/lustre/lustreapi.h])
AS_IF([test "$with_lustre" = "no"], AS_IF([test "$with_lustre" = "no"],
[ompi_check_lustre_happy="no"], [ompi_check_lustre_happy=no])
[AS_IF([test -z "$with_lustre" || test "$with_lustre" = "yes"],
[ompi_check_lustre_dir="/usr"],
[ompi_check_lustre_dir=$with_lustre])
if test -e "$ompi_check_lustre_dir/lib64" ; then AS_IF([test "$ompi_check_lustre_happy" != "no" ],
ompi_check_lustre_libdir="$ompi_check_lustre_dir/lib64" [AC_MSG_CHECKING([looking for lustre libraries and header files in])
else AS_IF([test "$with_lustre" != "yes"],
ompi_check_lustre_libdir="$ompi_check_lustre_dir/lib" [ompi_check_lustre_dir=$with_lustre
fi AC_MSG_RESULT([($ompi_check_lustre_dir)])],
[AC_MSG_RESULT([(default search paths)])])
AS_IF([test -n "$with_lustre_libdir" && \
test "$with_lustre_libdir" != "yes"],
[ompi_check_lustre_libdir=$with_lustre_libdir])
])
# Add correct -I and -L flags AS_IF([test "$ompi_check_lustre_happy" != "no" ],
OPAL_CHECK_PACKAGE([$1], [lustre/lustreapi.h], [lustreapi], [llapi_file_create], [OPAL_CHECK_PACKAGE([$1], [lustre/lustreapi.h], [lustreapi], [llapi_file_create],
[], [$ompi_check_lustre_dir], [$ompi_check_lustre_libdir], [], [$ompi_check_lustre_dir], [$ompi_check_lustre_libdir],
[ompi_check_lustre_happy="yes"], [ompi_check_lustre_happy="yes"],
[ompi_check_lustre_happy="no"]) [ompi_check_lustre_happy="no"])])
AS_IF([test "$ompi_check_lustre_happy" = "yes"], AS_IF([test "$ompi_check_lustre_happy" = "yes"],
[AC_MSG_CHECKING([for required lustre data structures]) [AC_MSG_CHECKING([for required lustre data structures])
@ -86,11 +89,10 @@ EOF
) )
rm -f conftest.c conftest.o rm -f conftest.c conftest.o
AC_MSG_RESULT([$ompi_check_lustre_struct_happy])]) AC_MSG_RESULT([$ompi_check_lustre_struct_happy])])
])
AS_IF([test "$ompi_check_lustre_happy" = "yes"], AS_IF([test "$ompi_check_lustre_happy" = "yes"],
[$2], [$2],
[AS_IF([test ! -z "$with_lustre" && test "$with_lustre" != "no"], [AS_IF([test -n "$with_lustre" && test "$with_lustre" != "no"],
[AC_MSG_ERROR([Lustre support requested but not found. Aborting])]) [AC_MSG_ERROR([Lustre support requested but not found. Aborting])])
$3]) $3])
]) ])