From 0d7c47a47b0d88b77be92bcffff7fd01f8dc3039 Mon Sep 17 00:00:00 2001 From: Alexandre Savard <alexandre.savard@savoirfairelinux.com> Date: Thu, 26 Jul 2012 14:25:51 -0400 Subject: [PATCH] #13891: Make TLS an optional feature in configure.ac --- daemon/configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/daemon/configure.ac b/daemon/configure.ac index 8e774538a8..d38f3cb88f 100644 --- a/daemon/configure.ac +++ b/daemon/configure.ac @@ -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" ) ############################################################################################################################### -- GitLab