made openssl support optional

This commit is contained in:
Logan007 2020-09-06 14:43:14 +05:45
parent 43090bdcb4
commit 5df7b241a3

View File

@ -25,6 +25,15 @@ else
N2N_LIBS="-lzstd ${N2N_LIBS}"
fi
AC_ARG_WITH([openssl],
[AS_HELP_STRING([--with-openssl],
[enable support for OpenSSL])],
[],
[with_openssl=no])
if test "x$with_openssl" != xno; then
AC_CHECK_LIB([crypto], [AES_cbc_encrypt])
if test "x$ac_cv_lib_crypto_AES_cbc_encrypt" != xyes; then
@ -47,6 +56,8 @@ else
AC_DEFINE([HAVE_OPENSSL_1_1], [], [OpenSSL 1.1 is present])
fi
fi
AC_CHECK_LIB([pcap], [pcap_open_live], pcap=true)
if test x$pcap != x; then