From 5cdd84fd28928c28f67ce0241f15dd7edb9a1ab3 Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Sun, 15 Mar 2015 17:08:10 +0000 Subject: [PATCH] Add support for WolfSSL (autoconf) --- configure.ac | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index a02f7a122..089014c26 100644 --- a/configure.ac +++ b/configure.ac @@ -137,10 +137,13 @@ AS_IF([test "x$want_crypto" = "xauto" -o "x$want_crypto" = "xopenssl"], [ ) ]) AS_IF([test "x$want_crypto" = "xauto" -o "x$want_crypto" = "xcyassl"], [ - PKG_CHECK_MODULES(CYASSL, [cyassl >= $CYASSL_MINIMUM], - [want_crypto="cyassl"; CRYPTO_PKG="cyassl"; CRYPTO_CFLAGS="$CYASSL_CFLAGS"; CRYPTO_LIBS="$CYASSL_LIBS"], - [AS_IF([test "x$want_crypto" = "xcyassl"], - [AC_MSG_ERROR([CyaSSL support requested, but library not found.])] + PKG_CHECK_MODULES(WOLFSSL, [wolfssl >= $CYASSL_MINIMUM], + [want_crypto="cyassl"; CRYPTO_PKG="cyassl"; CRYPTO_CFLAGS="$WOLFSSL_CFLAGS"; CRYPTO_LIBS="$WOLFSSL_LIBS"], + [PKG_CHECK_MODULES(CYASSL, [cyassl >= $CYASSL_MINIMUM], + [want_crypto="cyassl"; CRYPTO_PKG="cyassl"; CRYPTO_CFLAGS="$CYASSL_CFLAGS"; CRYPTO_LIBS="$CYASSL_LIBS"], + [AS_IF([test "x$want_crypto" = "xcyassl"], + [AC_MSG_ERROR([CyaSSL support requested, but library not found.])] + )] )] ) ]) -- 2.40.0