summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2025-04-16 20:15:07 +0200
committerStefan Metzmacher <metze@samba.org>2025-07-17 08:59:37 +0000
commitbd786a1e63849ba2f081dfa2fc0d52a6f249cb87 (patch)
tree2dbe7322a44329149ce0d48defb0b77b4b5d761c
parentf309c7381eda3107e7716958acd4f31119e0f7fd (diff)
downloadsamba-bd786a1e63849ba2f081dfa2fc0d52a6f249cb87.tar.gz
samba-bd786a1e63849ba2f081dfa2fc0d52a6f249cb87.tar.bz2
samba-bd786a1e63849ba2f081dfa2fc0d52a6f249cb87.zip
system_gnutls: print the found gnutls version and detected features
This makes it easier to analyze build failures. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r--wscript_configure_system_gnutls3
1 files changed, 3 insertions, 0 deletions
diff --git a/wscript_configure_system_gnutls b/wscript_configure_system_gnutls
index f62de5560d6..09c22ef5a9f 100644
--- a/wscript_configure_system_gnutls
+++ b/wscript_configure_system_gnutls
@@ -17,6 +17,7 @@ conf.CHECK_CFG(package='gnutls',
mandatory=True)
gnutls_version_str = conf.cmd_and_log(conf.env.PKGCONFIG + ['--modversion', 'gnutls']).strip()
+conf.msg('Found GnuTLS Version', gnutls_version_str)
gnutls_version = parse_version(gnutls_version_str)
# Define gnutls as a system library
@@ -32,11 +33,13 @@ conf.SET_TARGET_TYPE('gnutls', 'SYSLIB')
# 3.6.10 - 3.6.14 have a severe memory leak with AES-CCM
# https://gitlab.com/gnutls/gnutls/-/merge_requests/1278
if (gnutls_version > parse_version('3.6.14')):
+ conf.msg('Defined ALLOW_GNUTLS_AEAD_CIPHER_ENCRYPTV2_AES_CCM', '1')
conf.DEFINE('ALLOW_GNUTLS_AEAD_CIPHER_ENCRYPTV2_AES_CCM', 1)
# GNUTLS_CB_TLS_SERVER_END_POINT is available with
# 3.7.2
if (gnutls_version >= parse_version('3.7.2')):
+ conf.msg('Defined HAVE_GNUTLS_CB_TLS_SERVER_END_POINT', '1')
conf.DEFINE('HAVE_GNUTLS_CB_TLS_SERVER_END_POINT', 1)
# Check if gnutls has fips mode support