Permalink
Browse files

check for OpenSSL ecdsa support

  • Loading branch information...
1 parent af17de8 commit 4627ea0fc72fad7917a2b661c527aa1176bc90b0 @mind04 mind04 committed with mind04 May 11, 2016
Showing with 14 additions and 1 deletion.
  1. +14 −1 m4/ax_check_openssl.m4
@@ -109,7 +109,20 @@ AC_DEFUN([AX_CHECK_OPENSSL], [
[AC_LANG_PROGRAM([#include <openssl/crypto.h>], [CRYPTO_free(NULL)])],
[
AC_MSG_RESULT([yes])
- $1
+ openssl_ecdsa=yes
+ AC_CHECK_FUNC(ECDSA_do_sign,
+ [
+ AC_CHECK_DECLS([NID_X9_62_prime256v1, NID_secp384r1], [ : ], [ openssl_ecdsa=no ], [AC_INCLUDES_DEFAULT
+#include <openssl/evp.h>
+ ])
+ ], [
+ openssl_ecdsa=no
+ ])
+ AS_IF([test "x$openssl_ecdsa" = "xyes"], [
+ $1
+ ], [
+ $2
+ ])
], [
AC_MSG_RESULT([no])
$2

0 comments on commit 4627ea0

Please sign in to comment.