On 12/10/2019 11:02 AM, Jun Zhao wrote:
> From: macweng <macw...@tencent.com>
> 
> 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().
> 
> Signed-off-by: macweng <macw...@tencent.com>
> ---
>  configure |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/configure b/configure
> index ca7137f..42e7df3 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 ||

Confirmed it fixes detecting OpenSSL 1.1.1 without pkg-config, so LGTM.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to