Skip to content

Commit ceae9e3

Browse files
authored
Merge pull request #3483 from jsquyres/pr/v3.0.x/with-lustre-fixes
v3.0.x: lustre fixes
2 parents c4082af + 0f20414 commit ceae9e3

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

config/ompi_check_lustre.m4

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
1010
dnl University of Stuttgart. All rights reserved.
1111
dnl Copyright (c) 2004-2006 The Regents of the University of California.
1212
dnl All rights reserved.
13-
dnl Copyright (c) 2009 Cisco Systems, Inc. All rights reserved.
13+
dnl Copyright (c) 2009-2017 Cisco Systems, Inc. All rights reserved
1414
dnl Copyright (c) 2008-2012 University of Houston. All rights reserved.
1515
dnl Copyright (c) 2015 Research Organization for Information Science
1616
dnl and Technology (RIST). All rights reserved.
@@ -39,16 +39,15 @@ AC_DEFUN([OMPI_CHECK_LUSTRE],[
3939
check_lustre_configuration="none"
4040
ompi_check_lustre_happy="yes"
4141

42-
4342
# Get some configuration information
4443
AC_ARG_WITH([lustre],
4544
[AC_HELP_STRING([--with-lustre(=DIR)],
4645
[Build Lustre support, optionally adding DIR/include, DIR/lib, and DIR/lib64 to the search path for headers and libraries])])
4746
OPAL_CHECK_WITHDIR([lustre], [$with_lustre], [include/lustre/liblustreapi.h])
4847

49-
AS_IF([test -z "$with_lustre"],
48+
AS_IF([test -z "$with_lustre" || test "$with_lustre" = "yes"],
5049
[ompi_check_lustre_dir="/usr"],
51-
[ompi_check_lustre_dir="$with_lustre"])
50+
[ompi_check_lustre_dir=$with_lustre])
5251

5352
if test -e "$ompi_check_lustre_dir/lib64" ; then
5453
ompi_check_lustre_libdir="$ompi_check_lustre_dir/lib64"
@@ -88,6 +87,6 @@ OPAL_LOG_COMMAND(
8887
AS_IF([test "$ompi_check_lustre_happy" = "yes"],
8988
[$2],
9089
[AS_IF([test ! -z "$with_lustre" && test "$with_lustre" != "no"],
91-
[echo LUSTRE support not found])
92-
$3])
90+
[AC_MSG_ERROR([Lustre support requested but not found. Aborting])])
91+
$3])
9392
])

ompi/mca/fs/lustre/configure.m4

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# University of Stuttgart. All rights reserved.
1111
# Copyright (c) 2004-2005 The Regents of the University of California.
1212
# All rights reserved.
13-
# Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
13+
# Copyright (c) 2010-2017 Cisco Systems, Inc. All rights reserved
1414
# Copyright (c) 2008-2012 University of Houston. All rights reserved.
1515
# $COPYRIGHT$
1616
#
@@ -34,12 +34,6 @@ AC_DEFUN([MCA_ompi_fs_lustre_CONFIG],[
3434
[$1],
3535
[$2])
3636

37-
# AC_CHECK_HEADERS([lustre/liblustreapi.h], [],
38-
# [AC_CHECK_HEADERS([lustre/liblustreapi.h], [], [$2],
39-
# [AC_INCLUDES_DEFAULT])],
40-
# [AC_INCLUDES_DEFAULT])
41-
42-
4337
# substitute in the things needed to build lustre
4438
AC_SUBST([fs_lustre_CPPFLAGS])
4539
AC_SUBST([fs_lustre_LDFLAGS])

0 commit comments

Comments
 (0)