X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fautoconf%2Flustre-core.m4;h=30960c273a2c912d94e0c9a1f919ee6c70597138;hp=bc1cdb3fc94817d02e80152e319a2fb144eeb23b;hb=f6fb5ab37906ed82a64f4e9a664427f209e76d54;hpb=59dc41c31a551cf4aea24a99cfabad8fc35c5a74 diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index bc1cdb3..30960c2 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -405,7 +405,9 @@ AC_MSG_RESULT([$enable_smfs]) # Lustre linux kernel checks # AC_DEFUN([LC_PROG_LINUX], -[LC_CONFIG_BACKINGFS +[if test x$enable_server = xyes ; then + LC_CONFIG_BACKINGFS +fi LC_CONFIG_PINGER LC_CONFIG_GSS LC_CONFIG_SNAPFS @@ -422,6 +424,26 @@ LC_FUNC_DEV_SET_RDONLY ]) # +# LC_CONFIG_CLIENT_SERVER +# +# Build client/server sides of Lustre +# +AC_DEFUN([LC_CONFIG_CLIENT_SERVER], +[AC_MSG_CHECKING([whether to build Lustre server support]) +AC_ARG_ENABLE([server], + AC_HELP_STRING([--disable-server], + [disable Lustre server support]), + [],[enable_server='yes']) +AC_MSG_RESULT([$enable_server]) + +AC_MSG_CHECKING([whether to build Lustre client support]) +AC_ARG_ENABLE([client], + AC_HELP_STRING([--disable-client], + [disable Lustre client support]), + [],[enable_client='yes']) +AC_MSG_RESULT([$enable_client])]) + +# # LC_CONFIG_LIBLUSTRE # # whether to build liblustre @@ -483,6 +505,8 @@ AM_CONDITIONAL(GSS, test x$enable_gss = xyes) AM_CONDITIONAL(LIBLUSTRE, test x$enable_liblustre = xyes) AM_CONDITIONAL(LIBLUSTRE_TESTS, test x$enable_liblustre_tests = xyes) AM_CONDITIONAL(MPITESTS, test x$enable_mpitests = xyes, Build MPI Tests) +AM_CONDITIONAL(CLIENT, test x$enable_client = xyes) +AM_CONDITIONAL(SERVER, test x$enable_server = xyes) ]) #