AC_SUBST(IDEA_OBJ) if test "x$ac_cv_lib_nettle_nettle_ctr_crypt" = "xyes"; then PIKE_FEATURE_OK(Nettle) # camellia is available in Nettle 2.1 and later. # gcm is available in Nettle 2.2 and later. # ripemd160 is available in Nettle 2.3 and later. # sha3 and gosthash94 are available in Nettle 2.6 and later. # chacha, poly1305 and eax are available in Nettle 3.0 and later.
# version.h was added in Nettle 3.1.1.
AC_CHECK_HEADERS(nettle/camellia.h \ nettle/gcm.h \ nettle/ripemd160.h \ nettle/sha3.h nettle/gosthash94.h \ nettle/chacha.h nettle/chacha-poly1305.h \ nettle/poly1305.h nettle/eax.h \ nettle/dsa.h nettle/umac.h nettle/ecdsa.h \
) # Check that the libraries match. # # Note that there can be false positives in the test above # when multiple versions of Nettle are installed concurrently. AC_CHECK_FUNCS(nettle_camellia128_crypt \ nettle_gcm_encrypt \ nettle_ripemd160_init \ nettle_sha3_256_init nettle_gosthash94_init \ nettle_chacha_crypt nettle_chacha_poly1305_encrypt \