summaryrefslogtreecommitdiff
path: root/server/external
diff options
context:
space:
mode:
Diffstat (limited to 'server/external')
-rw-r--r--server/external/crypto.m413
1 files changed, 13 insertions, 0 deletions
diff --git a/server/external/crypto.m4 b/server/external/crypto.m4
new file mode 100644
index 00000000..d1bcf40a
--- /dev/null
+++ b/server/external/crypto.m4
@@ -0,0 +1,13 @@
+AC_ARG_ENABLE(crypto,
+ [ --enable-crypto Use OpenSSL crypto instead of NSS],
+ [CRYPTO="$enableval"],
+ [CRYPTO="no"]
+)
+
+if test x$CRYPTO != xyes; then
+ PKG_CHECK_MODULES([NSS],[nss],[have_nss=1],[have_nss=])
+else
+ PKG_CHECK_MODULES([CRYPTO],[libcrypto],[have_crypto=1],[have_crypto=])
+fi
+AM_CONDITIONAL([HAVE_NSS], [test x$have_nss != x])
+AM_CONDITIONAL([HAVE_CRYPTO], [test x$have_crypto != x])