]> granicus.if.org Git - python/commit
bpo-32598: Use autoconf to detect usable OpenSSL (#5242)
authorChristian Heimes <christian@python.org>
Sat, 20 Jan 2018 12:19:21 +0000 (13:19 +0100)
committerGitHub <noreply@github.com>
Sat, 20 Jan 2018 12:19:21 +0000 (13:19 +0100)
commitff5be6e8100276647e0077e80869fc022d1bb53f
tree70c1b01fa7040254bf81026e177a53862e7192b4
parentd911e40e788fb679723d78b6ea11cabf46caed5a
bpo-32598: Use autoconf to detect usable OpenSSL (#5242)

Add https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html
to auto-detect compiler flags, linker flags and libraries to compile
OpenSSL extensions. The M4 macro uses pkg-config and falls back to
manual detection.

Add autoconf magic to detect usable X509_VERIFY_PARAM_set1_host()
and related functions.

Refactor setup.py to use new config vars to compile _ssl and _hashlib
modules.

Signed-off-by: Christian Heimes <christian@python.org>
Makefile.pre.in
Misc/NEWS.d/next/Build/2018-01-19-14-50-19.bpo-32598.hP7bMV.rst [new file with mode: 0644]
Modules/_ssl.c
aclocal.m4
configure
configure.ac
m4/ax_check_openssl.m4 [new file with mode: 0644]
pyconfig.h.in
setup.py