diff options
author | Christian Heimes <christian@python.org> | 2018-01-20 13:19:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-20 13:19:21 +0100 |
commit | ff5be6e8100276647e0077e80869fc022d1bb53f (patch) | |
tree | 70c1b01fa7040254bf81026e177a53862e7192b4 /Makefile.pre.in | |
parent | d911e40e788fb679723d78b6ea11cabf46caed5a (diff) | |
download | cpython-git-ff5be6e8100276647e0077e80869fc022d1bb53f.tar.gz |
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>
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index 994e8611e1..d151267173 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -181,6 +181,11 @@ RUNSHARED= @RUNSHARED@ # ensurepip options ENSUREPIP= @ENSUREPIP@ +# OpenSSL options for setup.py so sysconfig can pick up AC_SUBST() vars. +OPENSSL_INCLUDES=@OPENSSL_INCLUDES@ +OPENSSL_LIBS=@OPENSSL_LIBS@ +OPENSSL_LDFLAGS=@OPENSSL_LDFLAGS@ + # Modes for directories, executables and data files created by the # install process. Default to user-only-writable for all file types. DIRMODE= 755 |