@@ -10,7 +10,7 @@ dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
1010dnl University of Stuttgart. All rights reserved.
1111dnl Copyright (c) 2004-2006 The Regents of the University of California.
1212dnl 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
1414dnl Copyright (c) 2008-2012 University of Houston. All rights reserved.
1515dnl Copyright (c) 2015 Research Organization for Information Science
1616dnl 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])
0 commit comments