summaryrefslogtreecommitdiff
path: root/aconfigure
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
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')
-rwxr-xr-xaconfigure6
1 files changed, 3 insertions, 3 deletions
diff --git a/aconfigure b/aconfigure
index 18bbc56f..0c01a785 100755
--- a/aconfigure
+++ b/aconfigure
@@ -7675,7 +7675,7 @@ if ${ac_cv_lib_crypto_ERR_load_BIO_strings+:} false; then :
$as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lcrypto $LIBS"
+LIBS="-lcrypto -ldl -lz $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -7706,7 +7706,7 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_ERR_load_BIO_strings" >&5
$as_echo "$ac_cv_lib_crypto_ERR_load_BIO_strings" >&6; }
if test "x$ac_cv_lib_crypto_ERR_load_BIO_strings" = xyes; then :
- libcrypto_present=1 && LIBS="$LIBS -lcrypto"
+ libcrypto_present=1 && LIBS="-lcrypto -ldl -lz $LIBS"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
@@ -7746,7 +7746,7 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
- libssl_present=1 && LIBS="$LIBS -lssl"
+ libssl_present=1 && LIBS="-lssl $LIBS"
fi
if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then