xref: /freebsd/sys/contrib/openzfs/config/user-libcrypto.m4 (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1dnl #
2dnl # Check for libcrypto. Used for userspace password derivation via PBKDF2.
3dnl #
4AC_DEFUN([ZFS_AC_CONFIG_USER_LIBCRYPTO], [
5	ZFS_AC_FIND_SYSTEM_LIBRARY(LIBCRYPTO, [libcrypto], [openssl/evp.h], [], [crypto], [PKCS5_PBKDF2_HMAC_SHA1], [], [
6		AC_MSG_FAILURE([
7		*** evp.h missing, libssl-devel package required])])
8])
9