Commit 4d797e20 authored by Pekka Pessi's avatar Pekka Pessi

Don't define HAVE_SOFIA_STUN if there is no Openssl.

Luiz Augusto von Dentz 	to sofia-sip-devel (Oct 14):
We just found a bug when compiling sofia-sip without openssl installed (it
should disable stun). The patch corrects it (thanks andrunko).

darcs-hash:20051015073121-65a35-d099b35405521752fbebca447849f00ccfbd6a52.gz
parent 4e080be5
......@@ -6,7 +6,7 @@ AC_PREREQ(2.57)
dnl information on the package
dnl ---------------------------
AC_INIT([sofia-sip], [1.11.0])
AC_INIT([sofia-sip], [1.11.0.2005.10.13])
AC_CONFIG_SRCDIR([libsofia-sip-ua/sip/sip.h])
# dnl calls AC_CANONICAL_ macros that are required by AM_INIT_AUTOMAKE
......@@ -59,8 +59,9 @@ AC_DEFINE([HAVE_SOFIA_SMIME], 0, [Define as 1 if we use S/MIME library])
dnl compile STUN only if OPENSSL is available
if test x${HAVE_OPENSSL} != x1 ; then
AC_MSG_WARN([** STUN support disabled as OpenSSL headers and/or libraries were not found **])
else
AC_DEFINE_UNQUOTED([HAVE_SOFIA_STUN], 1, [Define as 1 if we use STUN library])
fi
AC_DEFINE_UNQUOTED([HAVE_SOFIA_STUN], $HAVE_OPENSSL, [Define as 1 if we use STUN library])
AC_DEFINE([HAVE_SRTP], 0, [Define as 1 if we use SRTP])
AC_DEFINE([HAVE_UPNP], 0, [Define as 1 if we use UPnP])
......
Markdown is supported
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