]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
configure: fix SIV detection in gnutls
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 2 Sep 2021 08:36:03 +0000 (10:36 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 2 Sep 2021 13:17:00 +0000 (15:17 +0200)
gnutls_aead_cipher_init() is declared in gnutls/crypto.h. If the
compiler handles implicit declarations as errors, the SIV support was
not detected. Fix the check to use the correct header.

configure

index 5b8948f0d3685b160708905d65b9873a0042c626..282cc5290091409b3ca5627159aa29a549ba87d1 100755 (executable)
--- a/configure
+++ b/configure
@@ -955,7 +955,7 @@ if [ $feat_ntp = "1" ] && [ $feat_nts = "1" ] && [ $try_gnutls = "1" ]; then
       add_def HAVE_SIV
       add_def HAVE_NETTLE_SIV_CMAC
     else
-      if test_code 'SIV in gnutls' 'gnutls/gnutls.h' \
+      if test_code 'SIV in gnutls' 'gnutls/crypto.h' \
         "$test_cflags" "$test_link" '
           return gnutls_aead_cipher_init(NULL, GNUTLS_CIPHER_AES_128_SIV, NULL);'
       then