@@ -12,8 +12,8 @@ dnl Copyright (c) 2004-2006 The Regents of the University of California.
1212dnl All rights reserved.
1313dnl Copyright (c) 2009-2017 Cisco Systems, Inc. All rights reserved
1414dnl Copyright (c) 2008-2018 University of Houston. All rights reserved.
15- dnl Copyright (c) 2015 Research Organization for Information Science
16- dnl and Technology (RIST). All rights reserved.
15+ dnl Copyright (c) 2015-2018 Research Organization for Information Science
16+ dnl and Technology (RIST). All rights reserved.
1717dnl $COPYRIGHT $
1818dnl
1919dnl Additional copyrights may follow
@@ -63,8 +63,9 @@ AC_DEFUN([OMPI_CHECK_LUSTRE],[
6363 [ompi_check_lustre_happy= " yes" ],
6464 [ompi_check_lustre_happy= " no" ])
6565
66- AC_MSG_CHECKING([for required lustre data structures])
67- cat > conftest.c << EOF
66+ AS_IF([test " $ompi_check_lustre_happy " = " yes" ],
67+ [AC_MSG_CHECKING([for required lustre data structures])
68+ cat > conftest.c << EOF
6869# include "lustre/lustreapi.h"
6970void alloc_lum ()
7071{
@@ -76,15 +77,15 @@ void alloc_lum()
7677}
7778EOF
7879
79- # Try the compile
80- OPAL_LOG_COMMAND(
81- [$CC $CFLAGS -I$with_lustre /include -c conftest.c],
82- [ompi_check_lustre_struct_happy= " yes" ],
83- [ompi_check_lustre_struct_happy= " no"
84- ompi_check_lustre_happy= " no" ]
85- )
86- rm -f conftest.c conftest.o
87- AC_MSG_RESULT([$ompi_check_lustre_struct_happy ])
80+ # Try the compile
81+ OPAL_LOG_COMMAND(
82+ [$CC $CFLAGS -I$ompi_check_lustre_dir /include -c conftest.c],
83+ [ompi_check_lustre_struct_happy= " yes" ],
84+ [ompi_check_lustre_struct_happy= " no"
85+ ompi_check_lustre_happy= " no" ]
86+ )
87+ rm -f conftest.c conftest.o
88+ AC_MSG_RESULT([$ompi_check_lustre_struct_happy ]) ])
8889 ])
8990
9091 AS_IF([test " $ompi_check_lustre_happy " = " yes" ],
0 commit comments