configure: check for nettle_memeql_sec()

This fixes build with nettle versions before 3.3.
This commit is contained in:
Miroslav Lichvar
2025-05-05 14:17:26 +02:00
parent c17f481a20
commit f5fdfee150
2 changed files with 9 additions and 2 deletions

7
configure vendored
View File

@@ -898,6 +898,13 @@ if [ $feat_sechash = "1" ] && [ "x$HASH_LINK" = "x" ] && [ $try_nettle = "1" ];
EXTRA_OBJECTS="$EXTRA_OBJECTS cmac_nettle.o"
EXTRA_CLI_OBJECTS="$EXTRA_CLI_OBJECTS cmac_nettle.o"
fi
if test_code 'nettle_memeql_sec()' 'nettle/memops.h' \
"$test_cflags" "$test_link" \
'return nettle_memeql_sec("", "", 0);'
then
add_def HAVE_NETTLE_MEMEQL
fi
fi
fi