Changeset 5537 for pjproject/trunk/aconfigure.ac
- Timestamp:
- Jan 23, 2017 3:34:17 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure.ac
r5517 r5537 1556 1556 AC_CHECK_HEADER(openssl/ssl.h,[openssl_h_present=1]) 1557 1557 AC_CHECK_LIB(crypto,ERR_load_BIO_strings,[libcrypto_present=1 && LIBS="-lcrypto $LIBS"]) 1558 AC_CHECK_LIB(ssl,SSL_ library_init,[libssl_present=1 && LIBS="-lssl $LIBS"])1558 AC_CHECK_LIB(ssl,SSL_CTX_new,[libssl_present=1 && LIBS="-lssl $LIBS"]) 1559 1559 if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then 1560 1560 AC_MSG_RESULT([OpenSSL library found, SSL support enabled]) 1561 1561 1562 1562 # Check if SRTP should be compiled with OpenSSL 1563 # support, to enable cryptos such as AES GCM 1564 AC_CHECK_LIB(crypto,EVP_aes_128_gcm,[ac_ssl_has_aes_gcm=1]) 1563 # support, to enable cryptos such as AES GCM. 1564 1565 # EVP_CIPHER_CTX is now opaque in OpenSSL 1.1.0, libsrtp 1.5.4 uses it as a transparent type. 1566 # AC_CHECK_LIB(crypto,EVP_aes_128_gcm,[ac_ssl_has_aes_gcm=1]) 1567 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <openssl/evp.h>]], 1568 [EVP_CIPHER_CTX ctx;EVP_aes_128_gcm();])], 1569 [ac_ssl_has_aes_gcm=1]) 1565 1570 if test "x$ac_ssl_has_aes_gcm" = "x1"; then 1566 1571 AC_MSG_RESULT([OpenSSL has AES GCM support, SRTP will use OpenSSL])
Note: See TracChangeset
for help on using the changeset viewer.