Whamcloud - gitweb
LU-13903 build: Move GLIBC/openssl checks to where needed. 53/39653/6
authorMr NeilBrown <neilb@suse.de>
Wed, 5 Aug 2020 02:06:52 +0000 (12:06 +1000)
committerOleg Drokin <green@whamcloud.com>
Wed, 10 Mar 2021 08:02:49 +0000 (08:02 +0000)
Two config checks on glibs support:
LC_GLIBC_SUPPORT_FHANDLES
LC_GLIBC_SUPPORT_COPY_FILE_RANGE
and two on openssl support:
LC_OPENSSL_SSK
LC_OPENSSL_GETSEPOL

are currently only run when modules are being built.
The FHANDLES test is needed when building tests.
The COPY_FILE_RANGE test is needed when building
utils as are the OPENSSL checks

So move the calls to these tests to a more appropriate place, so that
  ./configure --disable-modules --disable-server
can run correctly.

Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Id7801112cd53601b3d560119784cbd062bf9610e
Reviewed-on: https://review.whamcloud.com/39653
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
config/lustre-build.m4
lustre/autoconf/lustre-core.m4

index 4d089bd..e963320 100644 (file)
@@ -663,8 +663,14 @@ LC_CONFIG_CRYPTO
 # Tests depends from utils (multiop from liblustreapi)
 AS_IF([test "x$enable_utils" = xno], [enable_tests="no"])
 
+AS_IF([test "x$enable_utils" = xyes], [
+       LC_GLIBC_SUPPORT_COPY_FILE_RANGE
+       LC_OPENSSL_SSK
+       LC_OPENSSL_GETSEPOL
+])
 AS_IF([test "x$enable_tests" = xyes], [
        LC_HAVE_LIBAIO
+       LC_GLIBC_SUPPORT_FHANDLES
 ])
 
 LIBCFS_CONFIG_CDEBUG
index 09e256a..5ccdead 100644 (file)
@@ -2359,11 +2359,6 @@ AC_DEFUN([LC_PROG_LINUX], [
        LC_CONFIG_FHANDLE
        LC_CONFIG_GSS
 
-       LC_GLIBC_SUPPORT_FHANDLES
-       LC_GLIBC_SUPPORT_COPY_FILE_RANGE
-       LC_OPENSSL_SSK
-       LC_OPENSSL_GETSEPOL
-
        # 3.10
        LC_HAVE_PROJECT_QUOTA