-])
-
-#
-# LC_CONFIG_LIBLUSTRE
-#
-# whether to build liblustre
-#
-AC_DEFUN([LC_CONFIG_LIBLUSTRE],
-[AC_MSG_CHECKING([whether to build Lustre library])
-AC_ARG_ENABLE([liblustre],
- AC_HELP_STRING([--disable-liblustre],
- [disable building of Lustre library]),
- [],[enable_liblustre=$with_sysio])
-AC_MSG_RESULT([$enable_liblustre])
-# only build sysio if liblustre is built
-with_sysio="$enable_liblustre"
-
-AC_MSG_CHECKING([whether to build liblustre tests])
-AC_ARG_ENABLE([liblustre-tests],
- AC_HELP_STRING([--enable-liblustre-tests],
- [enable liblustre tests, if --disable-tests is used]),
- [],[enable_liblustre_tests=$enable_tests])
-if test x$enable_liblustre != xyes ; then
- enable_liblustre_tests='no'
-fi
-AC_MSG_RESULT([$enable_liblustre_tests])
-
-AC_MSG_CHECKING([whether to enable liblustre acl])
-AC_ARG_ENABLE([liblustre-acl],
- AC_HELP_STRING([--disable-liblustre-acl],
- [disable ACL support for liblustre]),
- [],[enable_liblustre_acl=yes])
-AC_MSG_RESULT([$enable_liblustre_acl])
-if test x$enable_liblustre_acl = xyes ; then
- AC_DEFINE(LIBLUSTRE_POSIX_ACL, 1, Liblustre Support ACL-enabled MDS)
-fi
-
-#
-# --enable-mpitest
-#
-AC_ARG_ENABLE(mpitests,
- AC_HELP_STRING([--enable-mpitests=yes|no|mpicc wrapper],
- [include mpi tests]),
- [
- enable_mpitests=yes
- case $enableval in
- yes)
- MPICC_WRAPPER=mpicc
- ;;
- no)
- enable_mpitests=no
- ;;
- *)
- MPICC_WRAPPER=$enableval
- ;;
- esac
- ],
- [
- MPICC_WRAPPER=mpicc
- enable_mpitests=yes
- ]
-)
-
-if test x$enable_mpitests != xno; then
- AC_MSG_CHECKING([whether mpitests can be built])
- oldcc=$CC
- CC=$MPICC_WRAPPER
- AC_LINK_IFELSE(
- [AC_LANG_PROGRAM([[
- #include <mpi.h>
- ]],[[
- int flag;
- MPI_Initialized(&flag);
- ]])],
- [
- AC_MSG_RESULT([yes])
- ],[
- AC_MSG_RESULT([no])
- enable_mpitests=no
+]) # LC_CONFIG_CLIENT
+
+#
+# --enable-mpitests
+#
+AC_DEFUN([LB_CONFIG_MPITESTS], [
+AC_ARG_ENABLE([mpitests],
+ AC_HELP_STRING([--enable-mpitests=<yes|no|mpicc wrapper>],
+ [include mpi tests]), [
+ enable_mpitests="yes"
+ case $enableval in
+ yes)
+ MPICC_WRAPPER="mpicc"
+ ;;
+ no)
+ enable_mpitests="no"
+ ;;
+ *)
+ MPICC_WRAPPER=$enableval
+ ;;
+ esac
+ ], [
+ enable_mpitests="yes"
+ MPICC_WRAPPER="mpicc"