Add conditional dependency for libkeyutils

This modification enables better control over the inclusion of libkeyutils
based on the configuration, enhancing the flexibility of the build system.

Signed-off-by: Max Fritz <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Daniel P. Berrangé <[email protected]>
[thuth: Remove the "kwargs: static_kwargs" part - it's not necessary anymore]
Signed-off-by: Thomas Huth <[email protected]>
This commit is contained in:
Max Fritz authored and Thomas Huth committed 2023-06-05 07:27:23 +02:00
1 parent be4a4cb429
commit 0db0fbb5cf
1 file changed
+4 -2
+4 -2
View File
@@ -1781,8 +1781,10 @@ if gnutls.found()
tasn1 = dependency('libtasn1',
method: 'pkg-config')
endif
keyutils = dependency('libkeyutils', required: false,
method: 'pkg-config')
keyutils = not_found
if get_option('keyring').enabled()
keyutils = dependency('libkeyutils', required: false, method: 'pkg-config')
endif
has_gettid = cc.has_function('gettid')