Commit 0d7c47a4 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

#13891: Make TLS an optional feature in configure.ac

parent b4b2f57d
......@@ -168,8 +168,16 @@ PKG_CHECK_MODULES([CCRTP], [libccrtp] >= ${LIBCCRTP_MIN_VERSION},, [
# required dependency(ies): libssl #
###############################################################################################################################
dnl Check for OpenSSL to link against pjsip and provide SIPS TLS support
PKG_CHECK_MODULES([libssl], libssl,, AC_MSG_ERROR([Missing ssl development package: libssl-dev]))
AC_ARG_WITH([tls],
[ AS_HELP_STRING([--without-tls], [disable support tls]) ],
[],
[with_tls=yes])
AS_IF([test "xwith_tls" = "xyes"], [
PKG_CHECK_MODULES([libssl], libssl,, AC_MSG_ERROR([Missing ssl development package: libssl-dev]))
]);
AC_DEFINE_UNQUOTED([HAVE_TLS], `if test "x$with_tls" = "xyes"; then echo 1; else echo 0; fi`, [Define if you have tls support])
AM_CONDITIONAL(BUILD_TLS, test "x$with_tls" = "xyes" )
###############################################################################################################################
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment