diff options
author | Daiki Ueno <ueno@gnu.org> | 2020-04-26 19:26:36 +0200 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2020-05-04 14:25:17 +0200 |
commit | 108a0b233bea58b8fd3f624eba81f77304879b87 (patch) | |
tree | 5ba1e480b26c8c015e36416c132cdcf018d74d6c | |
parent | 4d8f3321158528ae47d4c62382911196ab80f338 (diff) | |
download | gnutls-108a0b233bea58b8fd3f624eba81f77304879b87.tar.gz |
configure.ac: fix broken nettle_cfb8_decrypt detection
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>
-rw-r--r-- | configure.ac | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index fb24986bb6..b5781fc58f 100644 --- a/configure.ac +++ b/configure.ac @@ -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 |