]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
detect_modules(): On Redhat 9, building the ssl stuff eventually
authorBarry Warsaw <barry@python.org>
Sun, 27 Apr 2003 04:00:01 +0000 (04:00 +0000)
committerBarry Warsaw <barry@python.org>
Sun, 27 Apr 2003 04:00:01 +0000 (04:00 +0000)
includes krb5.h.  Copy the krb5_h stanza from Python 2.3's setup.py
which seems to fix the problem.

setup.py

index 243481c73afd681b5e7ef1922ecf154e531ea900..b18349875d4b752f9d5a3e95e51b40f564adbbd2 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -372,8 +372,12 @@ class PyBuildExt(build_ext):
                                       '/usr/contrib/ssl/lib/'
                                      ] )
 
-        if (ssl_incs is not None and
-            ssl_libs is not None):
+        krb5_h = find_file('krb5.h', inc_dirs,
+                           ['/usr/kerberos/include'])
+        if krb5_h:
+            ssl_incs += krb5_h
+
+        if ssl_incs is not None and ssl_libs is not None:
             rtlibs = None
             if platform.startswith('sunos'):
                 rtlibs = ssl_libs