Blame SOURCES/python-2.7.1-config.patch

b54164
diff --git a/Modules/Setup.dist b/Modules/Setup.dist
b54164
index bbc9222..2fcbb3f 100644
b54164
--- a/Modules/Setup.dist
b54164
+++ b/Modules/Setup.dist
23b3e9
@@ -153,7 +153,7 @@ GLHACK=-Dclear=__GLclear
23b3e9
 # modules are to be built as shared libraries (see above for more
23b3e9
 # detail; also note that *static* reverses this effect):
23b3e9
 
23b3e9
-#*shared*
23b3e9
+*shared*
23b3e9
 
23b3e9
 # GNU readline.  Unlike previous Python incarnations, GNU readline is
23b3e9
 # now incorporated in an optional module, configured in the Setup file
b54164
@@ -163,33 +163,33 @@ GLHACK=-Dclear=__GLclear
23b3e9
 # it, depending on your system -- see the GNU readline instructions.
23b3e9
 # It's okay for this to be a shared library, too.
23b3e9
 
23b3e9
-#readline readline.c -lreadline -ltermcap
23b3e9
+readline readline.c -lreadline -ltermcap
23b3e9
 
23b3e9
 
23b3e9
 # Modules that should always be present (non UNIX dependent):
23b3e9
 
23b3e9
-#array arraymodule.c	# array objects
23b3e9
-#cmath cmathmodule.c _math.c # -lm # complex math library functions
23b3e9
-#math mathmodule.c _math.c # -lm # math library functions, e.g. sin()
23b3e9
-#_struct _struct.c	# binary structure packing/unpacking
23b3e9
-#time timemodule.c # -lm # time operations and variables
23b3e9
-#operator operator.c	# operator.add() and similar goodies
23b3e9
-#_testcapi _testcapimodule.c    # Python C API test module
23b3e9
-#_random _randommodule.c	# Random number generator
23b3e9
-#_collections _collectionsmodule.c # Container types
23b3e9
+array arraymodule.c	# array objects
23b3e9
+cmath cmathmodule.c _math.c # -lm # complex math library functions
23b3e9
+math mathmodule.c _math.c # -lm # math library functions, e.g. sin()
23b3e9
+_struct _struct.c	# binary structure packing/unpacking
23b3e9
+time timemodule.c # -lm # time operations and variables
23b3e9
+operator operator.c	# operator.add() and similar goodies
23b3e9
+_testcapi _testcapimodule.c    # Python C API test module
23b3e9
+_random _randommodule.c	# Random number generator
23b3e9
+_collections _collectionsmodule.c # Container types
23b3e9
 #_heapq _heapqmodule.c		# Heapq type
23b3e9
-#itertools itertoolsmodule.c	# Functions creating iterators for efficient looping 
23b3e9
-#strop stropmodule.c		# String manipulations
23b3e9
-#_functools _functoolsmodule.c	# Tools for working with functions and callable objects
23b3e9
+itertools itertoolsmodule.c	# Functions creating iterators for efficient looping 
23b3e9
+strop stropmodule.c		# String manipulations
23b3e9
+_functools _functoolsmodule.c	# Tools for working with functions and callable objects
23b3e9
 #_elementtree -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI _elementtree.c	# elementtree accelerator
23b3e9
 #_pickle _pickle.c	# pickle accelerator
23b3e9
 #datetime datetimemodule.c	# date/time type
23b3e9
-#_bisect _bisectmodule.c	# Bisection algorithms
23b3e9
+_bisect _bisectmodule.c	# Bisection algorithms
23b3e9
 
23b3e9
-#unicodedata unicodedata.c    # static Unicode character database
23b3e9
+unicodedata unicodedata.c    # static Unicode character database
23b3e9
 
23b3e9
 # access to ISO C locale support
23b3e9
-#_locale _localemodule.c  # -lintl
23b3e9
+_locale _localemodule.c  # -lintl
23b3e9
 
23b3e9
 # Standard I/O baseline
23b3e9
 #_io -I$(srcdir)/Modules/_io _io/bufferedio.c _io/bytesio.c _io/fileio.c _io/iobase.c _io/_iomodule.c _io/stringio.c _io/textio.c
b54164
@@ -199,41 +199,41 @@ GLHACK=-Dclear=__GLclear
23b3e9
 # (If you have a really backward UNIX, select and socket may not be
23b3e9
 # supported...)
23b3e9
 
23b3e9
-#fcntl fcntlmodule.c	# fcntl(2) and ioctl(2)
23b3e9
-#spwd spwdmodule.c		# spwd(3) 
23b3e9
-#grp grpmodule.c		# grp(3)
23b3e9
-#select selectmodule.c	# select(2); not on ancient System V
23b3e9
+fcntl fcntlmodule.c	# fcntl(2) and ioctl(2)
23b3e9
+spwd spwdmodule.c		# spwd(3) 
23b3e9
+grp grpmodule.c		# grp(3)
23b3e9
+select selectmodule.c	# select(2); not on ancient System V
23b3e9
 
23b3e9
 # Memory-mapped files (also works on Win32).
23b3e9
-#mmap mmapmodule.c
23b3e9
+mmap mmapmodule.c
23b3e9
 
23b3e9
 # CSV file helper
23b3e9
-#_csv _csv.c
23b3e9
+_csv _csv.c
23b3e9
 
23b3e9
 # Socket module helper for socket(2)
23b3e9
-#_socket socketmodule.c timemodule.c
23b3e9
+_socket socketmodule.c timemodule.c
23b3e9
 
23b3e9
 # Socket module helper for SSL support; you must comment out the other
23b3e9
 # socket line above, and possibly edit the SSL variable:
23b3e9
 #SSL=/usr/local/ssl
23b3e9
-#_ssl _ssl.c \
23b3e9
-#	-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
23b3e9
-#	-L$(SSL)/lib -lssl -lcrypto
23b3e9
+_ssl _ssl.c \
23b3e9
+	-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
23b3e9
+	-L$(SSL)/lib -lssl -lcrypto
23b3e9
 
23b3e9
 # The crypt module is now disabled by default because it breaks builds
23b3e9
 # on many systems (where -lcrypt is needed), e.g. Linux (I believe).
23b3e9
 #
23b3e9
 # First, look at Setup.config; configure may have set this for you.
23b3e9
 
23b3e9
-#crypt cryptmodule.c # -lcrypt	# crypt(3); needs -lcrypt on some systems
23b3e9
+crypt cryptmodule.c # -lcrypt	# crypt(3); needs -lcrypt on some systems
23b3e9
 
23b3e9
 
23b3e9
 # Some more UNIX dependent modules -- off by default, since these
23b3e9
 # are not supported by all UNIX systems:
23b3e9
 
23b3e9
-#nis nismodule.c -lnsl	# Sun yellow pages -- not everywhere
23b3e9
-#termios termios.c	# Steen Lumholt's termios module
23b3e9
-#resource resource.c	# Jeremy Hylton's rlimit interface
23b3e9
+nis nismodule.c -lnsl	# Sun yellow pages -- not everywhere
23b3e9
+termios termios.c	# Steen Lumholt's termios module
23b3e9
+resource resource.c	# Jeremy Hylton's rlimit interface
23b3e9
 
23b3e9
 
23b3e9
 # Multimedia modules -- off by default.
b54164
@@ -241,8 +241,8 @@ GLHACK=-Dclear=__GLclear
23b3e9
 # #993173 says audioop works on 64-bit platforms, though.
23b3e9
 # These represent audio samples or images as strings:
23b3e9
 
23b3e9
-#audioop audioop.c	# Operations on audio samples
23b3e9
-#imageop imageop.c	# Operations on images
23b3e9
+audioop audioop.c	# Operations on audio samples
23b3e9
+imageop imageop.c	# Operations on images
23b3e9
 
23b3e9
 
23b3e9
 # Note that the _md5 and _sha modules are normally only built if the
b54164
@@ -252,14 +252,14 @@ GLHACK=-Dclear=__GLclear
23b3e9
 # Message-Digest Algorithm, described in RFC 1321.  The necessary files
23b3e9
 # md5.c and md5.h are included here.
23b3e9
 
23b3e9
-#_md5 md5module.c md5.c
23b3e9
+_md5 md5module.c md5.c
23b3e9
 
23b3e9
 
23b3e9
 # The _sha module implements the SHA checksum algorithms.
23b3e9
 # (NIST's Secure Hash Algorithms.)
23b3e9
-#_sha shamodule.c
23b3e9
-#_sha256 sha256module.c
23b3e9
-#_sha512 sha512module.c
23b3e9
+_sha shamodule.c
23b3e9
+_sha256 sha256module.c
23b3e9
+_sha512 sha512module.c
23b3e9
 
23b3e9
 
23b3e9
 # SGI IRIX specific modules -- off by default.
b54164
@@ -306,12 +306,12 @@ GLHACK=-Dclear=__GLclear
23b3e9
 # A Linux specific module -- off by default; this may also work on 
23b3e9
 # some *BSDs.
23b3e9
 
23b3e9
-#linuxaudiodev linuxaudiodev.c
23b3e9
+linuxaudiodev linuxaudiodev.c
23b3e9
 
23b3e9
 
23b3e9
 # George Neville-Neil's timing module:
23b3e9
 
23b3e9
-#timing timingmodule.c
23b3e9
+timing timingmodule.c
23b3e9
 
23b3e9
 
23b3e9
 # The _tkinter module.
b54164
@@ -326,7 +326,7 @@ GLHACK=-Dclear=__GLclear
23b3e9
 # every system.
23b3e9
 
23b3e9
 # *** Always uncomment this (leave the leading underscore in!):
23b3e9
-# _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
23b3e9
+_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
23b3e9
 # *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
23b3e9
 #	-L/usr/local/lib \
23b3e9
 # *** Uncomment and edit to reflect where your Tcl/Tk headers are:
b54164
@@ -336,7 +336,7 @@ GLHACK=-Dclear=__GLclear
23b3e9
 # *** Or uncomment this for Solaris:
23b3e9
 #	-I/usr/openwin/include \
23b3e9
 # *** Uncomment and edit for Tix extension only:
23b3e9
-#	-DWITH_TIX -ltix8.1.8.2 \
23b3e9
+	-DWITH_TIX -ltix \
23b3e9
 # *** Uncomment and edit for BLT extension only:
23b3e9
 #	-DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
23b3e9
 # *** Uncomment and edit for PIL (TkImaging) extension only:
b54164
@@ -345,7 +345,7 @@ GLHACK=-Dclear=__GLclear
23b3e9
 # *** Uncomment and edit for TOGL extension only:
23b3e9
 #	-DWITH_TOGL togl.c \
23b3e9
 # *** Uncomment and edit to reflect your Tcl/Tk versions:
23b3e9
-#	-ltk8.2 -ltcl8.2 \
23b3e9
+	-ltk -ltcl \
23b3e9
 # *** Uncomment and edit to reflect where your X11 libraries are:
23b3e9
 #	-L/usr/X11R6/lib \
23b3e9
 # *** Or uncomment this for Solaris:
b54164
@@ -355,7 +355,7 @@ GLHACK=-Dclear=__GLclear
23b3e9
 # *** Uncomment for AIX:
23b3e9
 #	-lld \
23b3e9
 # *** Always uncomment this; X11 libraries to link with:
23b3e9
-#	-lX11
23b3e9
+	-lX11
23b3e9
 
23b3e9
 # Lance Ellinghaus's syslog module
23b3e9
 #syslog syslogmodule.c		# syslog daemon interface
b54164
@@ -377,7 +377,7 @@ GLHACK=-Dclear=__GLclear
23b3e9
 # it is a highly experimental and dangerous device for calling
23b3e9
 # *arbitrary* C functions in *arbitrary* shared libraries:
23b3e9
 
23b3e9
-#dl dlmodule.c
23b3e9
+dl dlmodule.c
23b3e9
 
23b3e9
 
23b3e9
 # Modules that provide persistent dictionary-like semantics.  You will
b54164
@@ -400,7 +400,7 @@ GLHACK=-Dclear=__GLclear
23b3e9
 #
23b3e9
 # First, look at Setup.config; configure may have set this for you.
23b3e9
 
23b3e9
-#gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
23b3e9
+gdbm gdbmmodule.c -lgdbm
23b3e9
 
23b3e9
 
23b3e9
 # Sleepycat Berkeley DB interface.
b54164
@@ -415,11 +415,9 @@ GLHACK=-Dclear=__GLclear
23b3e9
 #
23b3e9
 # Edit the variables DB and DBLIBVERto point to the db top directory
23b3e9
 # and the subdirectory of PORT where you built it.
23b3e9
-#DB=/usr/local/BerkeleyDB.4.0
23b3e9
-#DBLIBVER=4.0
23b3e9
-#DBINC=$(DB)/include
23b3e9
-#DBLIB=$(DB)/lib
23b3e9
-#_bsddb _bsddb.c -I$(DBINC) -L$(DBLIB) -ldb-$(DBLIBVER)
23b3e9
+DBINC=/usr/include/libdb
23b3e9
+DBLIB=/usr/lib
23b3e9
+_bsddb _bsddb.c -I$(DBINC) -L$(DBLIB) -ldb
23b3e9
 
23b3e9
 # Historical Berkeley DB 1.85
23b3e9
 #
b54164
@@ -434,14 +432,14 @@ GLHACK=-Dclear=__GLclear
23b3e9
 
23b3e9
 
23b3e9
 # Helper module for various ascii-encoders
23b3e9
-#binascii binascii.c
23b3e9
+binascii binascii.c
23b3e9
 
23b3e9
 # Fred Drake's interface to the Python parser
23b3e9
-#parser parsermodule.c
23b3e9
+parser parsermodule.c
23b3e9
 
23b3e9
 # cStringIO and cPickle
23b3e9
-#cStringIO cStringIO.c
23b3e9
-#cPickle cPickle.c
23b3e9
+cStringIO cStringIO.c
23b3e9
+cPickle cPickle.c
23b3e9
 
23b3e9
 
23b3e9
 # Lee Busby's SIGFPE modules.
b54164
@@ -464,7 +462,7 @@ GLHACK=-Dclear=__GLclear
23b3e9
 # Andrew Kuchling's zlib module.
23b3e9
 # This require zlib 1.1.3 (or later).
23b3e9
 # See http://www.gzip.org/zlib/
23b3e9
-#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
23b3e9
+zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
23b3e9
 
23b3e9
 # Interface to the Expat XML parser
b54164
 # More information on Expat can be found at www.libexpat.org.
b54164
@@ -475,14 +473,14 @@ GLHACK=-Dclear=__GLclear
23b3e9
 # Hye-Shik Chang's CJKCodecs
23b3e9
 
23b3e9
 # multibytecodec is required for all the other CJK codec modules
23b3e9
-#_multibytecodec cjkcodecs/multibytecodec.c
b54164
-
23b3e9
-#_codecs_cn cjkcodecs/_codecs_cn.c
23b3e9
-#_codecs_hk cjkcodecs/_codecs_hk.c
23b3e9
-#_codecs_iso2022 cjkcodecs/_codecs_iso2022.c
23b3e9
-#_codecs_jp cjkcodecs/_codecs_jp.c
23b3e9
-#_codecs_kr cjkcodecs/_codecs_kr.c
23b3e9
-#_codecs_tw cjkcodecs/_codecs_tw.c
b54164
+_multibytecodec cjkcodecs/multibytecodec.c
b54164
+
23b3e9
+_codecs_cn cjkcodecs/_codecs_cn.c
23b3e9
+_codecs_hk cjkcodecs/_codecs_hk.c
23b3e9
+_codecs_iso2022 cjkcodecs/_codecs_iso2022.c
23b3e9
+_codecs_jp cjkcodecs/_codecs_jp.c
23b3e9
+_codecs_kr cjkcodecs/_codecs_kr.c
23b3e9
+_codecs_tw cjkcodecs/_codecs_tw.c
23b3e9
 
23b3e9
 # Example -- included for reference only:
23b3e9
 # xx xxmodule.c