summaryrefslogtreecommitdiff
path: root/aconfigure.ac
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2014-12-03 04:16:24 +0000
committerNanang Izzuddin <nanang@teluu.com>2014-12-03 04:16:24 +0000
commit092e35cdb39fd12d16e5db27d53947f4d85f95c5 (patch)
treec9004e68c727b13b72e8642073931ff72de04054 /aconfigure.ac
parent21947418c443ca7318649476bc5d113af9746315 (diff)
Misc (re #1782): Fixed OpenSSL detection in configure script due to incomplete dependencies and bad library order, which causes OpenSSL detection failure on some platform such as Android mips and arm64.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4966 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'aconfigure.ac')
-rw-r--r--aconfigure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/aconfigure.ac b/aconfigure.ac
index 8a5dd2c6..fd23234d 100644
--- a/aconfigure.ac
+++ b/aconfigure.ac
@@ -1532,8 +1532,8 @@ AC_ARG_ENABLE(ssl,
AC_SUBST(libssl_present)
AC_SUBST(libcrypto_present)
AC_CHECK_HEADER(openssl/ssl.h,[openssl_h_present=1])
- AC_CHECK_LIB(crypto,ERR_load_BIO_strings,[libcrypto_present=1 && LIBS="$LIBS -lcrypto"])
- 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="-lcrypto -ldl -lz $LIBS"],,-ldl -lz)
+ AC_CHECK_LIB(ssl,SSL_library_init,[libssl_present=1 && LIBS="-lssl $LIBS"])
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])
# PJSIP_HAS_TLS_TRANSPORT setting follows PJ_HAS_SSL_SOCK