summaryrefslogtreecommitdiff
path: root/aconfigure.ac
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-12-25 20:34:14 +0000
committerBenny Prijono <bennylp@teluu.com>2006-12-25 20:34:14 +0000
commit2c57eaea78b397d120cfe359ff5d8026dae17f60 (patch)
tree2cae009a860b5cdddebffc78a005f441f702f5a1 /aconfigure.ac
parentd6a9dded719756a7a873f1f9a6c1d201859b0ee6 (diff)
Added TLS support in Makefiles (see ticket #3)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@862 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'aconfigure.ac')
-rw-r--r--aconfigure.ac36
1 files changed, 36 insertions, 0 deletions
diff --git a/aconfigure.ac b/aconfigure.ac
index 8bc454e8..700c2273 100644
--- a/aconfigure.ac
+++ b/aconfigure.ac
@@ -7,6 +7,7 @@ AC_CANONICAL_HOST
AC_CANONICAL_TARGET
AC_CONFIG_HEADER([pjlib/include/pj/compat/os_auto.h
pjlib/include/pj/compat/m_auto.h
+ pjsip/include/pjsip/sip_autoconf.h
])
AC_CONFIG_FILES([build.mak
build/os-auto.mak
@@ -385,6 +386,41 @@ AC_ARG_ENABLE(ilbc-codec,
dnl ##########################################
dnl #
+dnl # PJSIP CONFIG
+dnl #
+
+dnl # Include SSL support
+AC_SUBST(ac_no_ssl)
+AC_ARG_ENABLE(ssl,
+ [
+ AC_HELP_STRING([--disable-ssl],
+ [Exclude SSL support the build (default: autodetect)])
+ ],
+ [
+ if test "$enable_ssl" = "no"; then
+ [ac_no_ssl=1]
+ AC_MSG_RESULT([Checking if SSL support is disabled... yes])
+ fi
+ ],
+ [
+ AC_MSG_RESULT([checking for OpenSSL installations..])
+ AC_SUBST(openssl_h_present)
+ AC_SUBST(libssl_present)
+ AC_SUBST(libcrypto_present)
+ AC_CHECK_HEADER(openssl/ssl.h,[openssl_h_present=1])
+ AC_CHECK_LIB(ssl,SSL_library_init,[libssl_present=1 && LIBS="$LIBS -lssl"])
+ AC_CHECK_LIB(crypto,ERR_load_BIO_strings,[libcrypto_present=1 && LIBS="$LIBS -lcrypto"])
+ if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then
+ AC_MSG_RESULT([OpenSSL library found, SSL support enabled])
+ AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1)
+ else
+ AC_MSG_RESULT([** OpenSSL libraries not found, disabling SSL support **])
+ fi
+ ])
+
+
+dnl ##########################################
+dnl #
dnl # MANUAL CONFIG
dnl #