]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
system_gnutls: print the found gnutls version and detected features
authorStefan Metzmacher <metze@samba.org>
Wed, 16 Apr 2025 18:15:07 +0000 (20:15 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 17 Jul 2025 08:59:37 +0000 (08:59 +0000)
This makes it easier to analyze build failures.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
wscript_configure_system_gnutls

index f62de5560d6393b4864d768432078287a963e314..09c22ef5a9f2af9b89d399f571c8261c08e35bde 100644 (file)
@@ -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