]> git.ipfire.org Git - thirdparty/pdns.git/blob - m4/pdns_check_libcrypto_ecdsa.m4
7c2c48ad67233cbd34918687be558513e2b6ba74
[thirdparty/pdns.git] / m4 / pdns_check_libcrypto_ecdsa.m4
1 AC_DEFUN([PDNS_CHECK_LIBCRYPTO_ECDSA], [
2 AC_REQUIRE([PDNS_CHECK_LIBCRYPTO])
3 libcrypto_ecdsa=yes
4 AC_CHECK_HEADER([openssl/ecdsa.h], [
5 AC_CHECK_DECLS([NID_X9_62_prime256v1, NID_secp384r1], [ : ], [
6 libcrypto_ecdsa=no
7 ], [AC_INCLUDES_DEFAULT
8 #include <openssl/evp.h>
9 ])
10 ], [
11 libcrypto_ecdsa=no
12 ])
13
14 AS_IF([test "x$libcrypto_ecdsa" = "xyes"], [
15 AC_DEFINE([HAVE_LIBCRYPTO_ECDSA], [1], [define to 1 if OpenSSL ecdsa support is available.])
16 ])
17 ])