]> granicus.if.org Git - transmission/commitdiff
Add support for WolfSSL (autoconf)
authorMike Gelfand <mikedld@mikedld.com>
Sun, 15 Mar 2015 17:08:10 +0000 (17:08 +0000)
committerMike Gelfand <mikedld@mikedld.com>
Sun, 15 Mar 2015 17:08:10 +0000 (17:08 +0000)
configure.ac

index a02f7a122fb7a9940414796c80418baa58184243..089014c26d6fad25e16c8518e36003af150ed6d6 100644 (file)
@@ -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.])]
+            )]
         )]
     )
 ])