]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
configure.ac: fix broken nettle_cfb8_decrypt detection
authorDaiki Ueno <ueno@gnu.org>
Sun, 26 Apr 2020 17:26:36 +0000 (19:26 +0200)
committerDaiki Ueno <ueno@gnu.org>
Mon, 4 May 2020 12:25:17 +0000 (14:25 +0200)
Given the fixed version of the function will be part of Nettle 3.6,
use pkg-config --atleast-version instead of a manually comparison of
the Nettle version.

Fixes #974.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
configure.ac

index fb24986bb6f8c5b26a559bb538111ed966a3d8e9..b5781fc58f52fbb8fa8ff284e8a2e3857c7a5d70 100644 (file)
@@ -602,9 +602,8 @@ LIBS=$save_LIBS
 
 # Check if nettle has CFB8 support
 if test -z "$ac_cv_func_nettle_cfb8_encrypt"; then
-       # nettle_cfb8_decrypt in nettle 3.5 is known to be broken
-       ver=`$PKG_CONFIG --modversion nettle`
-       if expr "$ver" : '^3\.5\b' >/dev/null; then
+       # nettle_cfb8_decrypt in nettle upto 3.6 is known to be broken
+       if ! $PKG_CONFIG --atleast-version=3.6 nettle; then
                ac_cv_func_nettle_cfb8_encrypt=no
        fi
 fi