aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormacweng <macweng@tencent.com>2019-12-10 17:32:33 +0800
committerJun Zhao <barryjzhao@tencent.com>2019-12-11 14:46:53 +0800
commite3c732bb0c9bbed9516bfabe0c1ea50d27cbb93f (patch)
tree95472bbb30e66214aba2cc16ee51ae19a0f65ebc
parent952fd0c768747a0f910ce8b689fd23d7c67a51f8 (diff)
downloadffmpeg-e3c732bb0c9bbed9516bfabe0c1ea50d27cbb93f.tar.gz
configure: add OPENSSL_init_ssl check if pkg-config fail
fix when pkg-config fail and openssl > 1.1.0 --enable-openssl fail, the root cause is check_lib can't found the SSL_library_init(). Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: macweng <macweng@tencent.com>
-rwxr-xr-xconfigure1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure b/configure
index ca7137f341..42e7df3941 100755
--- a/configure
+++ b/configure
@@ -6403,6 +6403,7 @@ enabled omx_rpi && { test_code cc OMX_Core.h OMX_IndexConfigBrcmVideoR
enabled omx && require_headers OMX_Core.h
enabled openssl && { check_pkg_config openssl openssl openssl/ssl.h OPENSSL_init_ssl ||
check_pkg_config openssl openssl openssl/ssl.h SSL_library_init ||
+ check_lib openssl openssl/ssl.h OPENSSL_init_ssl -lssl -lcrypto ||
check_lib openssl openssl/ssl.h SSL_library_init -lssl -lcrypto ||
check_lib openssl openssl/ssl.h SSL_library_init -lssl32 -leay32 ||
check_lib openssl openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 ||