mirror of
https://github.com/pyenv/pyenv-doctor.git
synced 2025-12-08 15:31:27 +09:00
Merge pull request #1 from michaelmior/sslv1.1.0
Also check OPENSSL_init_ssl to support OpenSSL 1.1.0
This commit is contained in:
commit
beb447e6d7
@ -35,9 +35,12 @@ if ( test -n "$WITH_CPYTHON" || test -n "$WITH_PYPY" || test -n "$WITH_STACKLESS
|
||||
|
||||
## OpenSSL
|
||||
AC_CHECK_LIB(ssl, SSL_library_init, [HAVE_LIBSSL=yes], [HAVE_LIBSSL=no])
|
||||
if test "$HAVE_LIBSSL" = "no"; then
|
||||
AC_CHECK_LIB(ssl, OPENSSL_init_ssl, [HAVE_LIBSSL=yes], [HAVE_LIBSSL=no])
|
||||
if test "$HAVE_LIBSSL" = "no"; then
|
||||
AC_MSG_ERROR([OpenSSL is not installed.])
|
||||
fi
|
||||
fi
|
||||
AC_CHECK_HEADERS(openssl/ssl.h, [HAVE_SSL_H=yes], [HAVE_SSL_H=no])
|
||||
if test "$HAVE_SSL_H" = "no"; then
|
||||
AC_MSG_ERROR([OpenSSL development header is not installed.])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user