Ignore:
Timestamp:
Dec 25, 2006 8:34:14 PM (17 years ago)
Author:
bennylp
Message:

Added TLS support in Makefiles (see ticket #3)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure.ac

    r770 r862  
    88AC_CONFIG_HEADER([pjlib/include/pj/compat/os_auto.h 
    99                  pjlib/include/pj/compat/m_auto.h 
     10                  pjsip/include/pjsip/sip_autoconf.h 
    1011                 ]) 
    1112AC_CONFIG_FILES([build.mak  
     
    386387dnl ########################################## 
    387388dnl # 
     389dnl # PJSIP CONFIG 
     390dnl # 
     391 
     392dnl # Include SSL support 
     393AC_SUBST(ac_no_ssl) 
     394AC_ARG_ENABLE(ssl, 
     395              [ 
     396                AC_HELP_STRING([--disable-ssl], 
     397                               [Exclude SSL support the build (default: autodetect)]) 
     398              ], 
     399              [ 
     400                if test "$enable_ssl" = "no"; then 
     401                 [ac_no_ssl=1] 
     402                 AC_MSG_RESULT([Checking if SSL support is disabled... yes]) 
     403                fi 
     404              ], 
     405              [ 
     406                AC_MSG_RESULT([checking for OpenSSL installations..]) 
     407                AC_SUBST(openssl_h_present) 
     408                AC_SUBST(libssl_present) 
     409                AC_SUBST(libcrypto_present) 
     410                AC_CHECK_HEADER(openssl/ssl.h,[openssl_h_present=1]) 
     411                AC_CHECK_LIB(ssl,SSL_library_init,[libssl_present=1 && LIBS="$LIBS -lssl"]) 
     412                AC_CHECK_LIB(crypto,ERR_load_BIO_strings,[libcrypto_present=1 && LIBS="$LIBS -lcrypto"]) 
     413                if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then 
     414                        AC_MSG_RESULT([OpenSSL library found, SSL support enabled]) 
     415                        AC_DEFINE(PJSIP_HAS_TLS_TRANSPORT, 1) 
     416                else 
     417                        AC_MSG_RESULT([** OpenSSL libraries not found, disabling SSL support **]) 
     418                fi 
     419              ]) 
     420 
     421 
     422dnl ########################################## 
     423dnl # 
    388424dnl # MANUAL CONFIG 
    389425dnl # 
Note: See TracChangeset for help on using the changeset viewer.