mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
#13891: Make TLS an optional feature in configure.ac
This commit is contained in:
@ -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" )
|
||||
|
||||
|
||||
###############################################################################################################################
|
||||
|
Reference in New Issue
Block a user