blob: 522ca527dab58e4f5ad4b155e33ec35f566c9422 [file] [log] [blame]
Barry Warsawc7736b91997-09-04 13:05:14 +00001# -*- makefile -*-
Guido van Rossumb6775db1994-08-01 11:34:53 +00002# The file Setup is used by the makesetup script to construct the files
3# Makefile and config.c, from Makefile.pre and config.c.in,
4# respectively. The file Setup itself is initially copied from
Fred Drakecf3bc8c2000-10-26 17:07:40 +00005# Setup.dist; once it exists it will not be overwritten, so you can edit
Guido van Rossumf4449de1995-04-10 11:37:18 +00006# Setup to your heart's content. Note that Makefile.pre is created
7# from Makefile.pre.in by the toplevel configure script.
Guido van Rossumb6775db1994-08-01 11:34:53 +00008
9# (VPATH notes: Setup and Makefile.pre are in the build directory, as
Fred Drakecf3bc8c2000-10-26 17:07:40 +000010# are Makefile and config.c; the *.in and *.dist files are in the source
Guido van Rossumb6775db1994-08-01 11:34:53 +000011# directory.)
12
Guido van Rossumfba715a1994-01-02 00:26:09 +000013# Each line in this file describes one or more optional modules.
14# Comment out lines to suppress modules.
15# Lines have the following structure:
16#
Guido van Rossumf6971e21994-08-30 12:25:20 +000017# <module> ... [<sourcefile> ...] [<cpparg> ...] [<library> ...]
Guido van Rossumfba715a1994-01-02 00:26:09 +000018#
Guido van Rossumf6971e21994-08-30 12:25:20 +000019# <sourcefile> is anything ending in .c (.C, .cc, .c++ are C++ files)
Guido van Rossumfba715a1994-01-02 00:26:09 +000020# <cpparg> is anything starting with -I, -D, -U or -C
21# <library> is anything ending in .a or beginning with -l or -L
22# <module> is anything else but should be a valid Python
23# identifier (letters, digits, underscores, beginning with non-digit)
24#
Guido van Rossum613b9431996-08-20 19:50:17 +000025# (As the makesetup script changes, it may recognize some other
26# arguments as well, e.g. *.so and *.sl as libraries. See the big
27# case statement in the makesetup script.)
28#
Guido van Rossumfba715a1994-01-02 00:26:09 +000029# Lines can also have the form
30#
31# <name> = <value>
32#
33# which defines a Make variable definition inserted into Makefile.in
Guido van Rossum7cc5abd1994-09-12 10:42:20 +000034#
Guido van Rossum30e817e1997-12-02 16:46:39 +000035# Finally, if a line contains just the word "*shared*" (without the
36# quotes but with the stars), then the following modules will not be
37# included in the config.c file, nor in the list of objects to be
38# added to the library archive, and their linker options won't be
39# added to the linker options, but rules to create their .o files and
40# their shared libraries will still be added to the Makefile, and
41# their names will be collected in the Make variable SHAREDMODS. This
Guido van Rossum7fef86e1998-10-07 14:41:54 +000042# is used to build modules as shared libraries. (They can be
43# installed using "make sharedinstall", which is implied by the
44# toplevel "make install" target.) (For compatibility,
Guido van Rossum30e817e1997-12-02 16:46:39 +000045# *noconfig* has the same effect as *shared*.)
Guido van Rossumb71c5701999-02-22 18:11:18 +000046#
47# In addition, *static* reverses this effect (negating a previous
48# *shared* line).
Guido van Rossumb6775db1994-08-01 11:34:53 +000049
Guido van Rossumfba715a1994-01-02 00:26:09 +000050# NOTE: As a standard policy, as many modules as can be supported by a
51# platform should be present. The distribution comes with all modules
52# enabled that are supported by most platforms and don't require you
Guido van Rossumf4449de1995-04-10 11:37:18 +000053# to ftp sources from elsewhere.
Guido van Rossumfba715a1994-01-02 00:26:09 +000054
55
Guido van Rossumb6775db1994-08-01 11:34:53 +000056# Some special rules to define PYTHONPATH.
57# Edit the definitions below to indicate which options you are using.
58# Don't add any whitespace or comments!
59
Guido van Rossum0c5e3c81996-07-31 17:49:01 +000060# Directories where library files get installed.
61# DESTLIB is for Python modules; MACHDESTLIB for shared libraries.
62DESTLIB=$(LIBDEST)
63MACHDESTLIB=$(BINLIBDEST)
Guido van Rossumb6775db1994-08-01 11:34:53 +000064
Guido van Rossum97227811997-04-11 17:19:54 +000065# NOTE: all the paths are now relative to the prefix that is computed
66# at run time!
67
Guido van Rossum0c5e3c81996-07-31 17:49:01 +000068# Standard path -- don't edit.
Guido van Rossum97227811997-04-11 17:19:54 +000069# No leading colon since this is the first entry.
70# Empty since this is now just the runtime prefix.
71DESTPATH=
Guido van Rossum1c206481995-09-13 18:39:04 +000072
Guido van Rossum0c5e3c81996-07-31 17:49:01 +000073# Site specific path components -- should begin with : if non-empty
74SITEPATH=
75
76# Standard path components for test modules
Guido van Rossum7d83a5e1999-02-08 21:49:22 +000077TESTPATH=
Guido van Rossumb6775db1994-08-01 11:34:53 +000078
Guido van Rossumd3c1bd31996-07-30 16:54:03 +000079# Path components for machine- or system-dependent modules and shared libraries
Guido van Rossuma9f02b81997-09-28 05:45:40 +000080MACHDEPPATH=:plat-$(MACHDEP)
Guido van Rossumb6775db1994-08-01 11:34:53 +000081
Guido van Rossum2808b742000-05-03 22:34:12 +000082COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(TKPATH)
Guido van Rossumf5e0ea81994-09-12 15:35:36 +000083PYTHONPATH=$(COREPYTHONPATH)
Guido van Rossumb6775db1994-08-01 11:34:53 +000084
85
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000086# The modules listed here can't be built as shared libraries for
87# various reasons; therefore they are listed here instead of in the
88# normal order.
Guido van Rossum05bf2801994-10-20 22:01:38 +000089
Guido van Rossumf4449de1995-04-10 11:37:18 +000090# Some modules that are normally always on:
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000091
Guido van Rossum007c80e1997-07-11 18:40:46 +000092regex regexmodule.c regexpr.c # Regular expressions, GNU Emacs style
Guido van Rossum176bb411997-10-07 16:17:55 +000093pcre pcremodule.c pypcre.c # Regular expressions, Perl style (for re.py)
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000094posix posixmodule.c # posix (UNIX) system calls
95signal signalmodule.c # signal(2)
Guido van Rossume5679352000-03-31 15:01:27 +000096_sre _sre.c # Fredrik Lundh's new regular expressions
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000097
Guido van Rossumf4449de1995-04-10 11:37:18 +000098# The SGI specific GL module:
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000099
Guido van Rossum605b93d1998-10-21 15:08:40 +0000100GLHACK=-Dclear=__GLclear
101#gl glmodule.c cgensupport.c -I$(srcdir) $(GLHACK) -lgl -lX11
Guido van Rossumcaffcdf1995-03-10 15:14:13 +0000102
Barry Warsawe886ea91997-01-17 00:01:33 +0000103# Pure module. Cannot be linked dynamically.
104# -DWITH_QUANTIFY, -DWITH_PURIFY, or -DWITH_ALL_PURE
105#WHICH_PURE_PRODUCTS=-DWITH_ALL_PURE
106#PURE_INCLS=-I/usr/local/include
107#PURE_STUBLIBS=-L/usr/local/lib -lpurify_stubs -lquantify_stubs
108#pure puremodule.c $(WHICH_PURE_PRODUCTS) $(PURE_INCLS) $(PURE_STUBLIBS)
109
Guido van Rossum05bf2801994-10-20 22:01:38 +0000110# Uncommenting the following line tells makesetup that all following
Guido van Rossumf4449de1995-04-10 11:37:18 +0000111# modules are to be built as shared libraries (see above for more
Guido van Rossumb71c5701999-02-22 18:11:18 +0000112# detail; also note that *static* reverses this effect):
Guido van Rossum05bf2801994-10-20 22:01:38 +0000113
Guido van Rossum613b9431996-08-20 19:50:17 +0000114#*shared*
Guido van Rossum05bf2801994-10-20 22:01:38 +0000115
Guido van Rossum0969d361997-08-05 21:27:50 +0000116# GNU readline. Unlike previous Python incarnations, GNU readline is
117# now incorporated in an optional module, configured in the Setup file
118# instead of by a configure script switch. You may have to insert a
119# -L option pointing to the directory where libreadline.* lives,
120# and you may have to change -ltermcap to -ltermlib or perhaps remove
121# it, depending on your system -- see the GNU readline instructions.
122# It's okay for this to be a shared library, too.
Guido van Rossum3d15bd82001-01-10 18:53:48 +0000123#
124# First, look at Setup.config; configure may have set this for you.
Guido van Rossum0969d361997-08-05 21:27:50 +0000125
126#readline readline.c -lreadline -ltermcap
127
Guido van Rossum05bf2801994-10-20 22:01:38 +0000128
Guido van Rossumf4449de1995-04-10 11:37:18 +0000129# Modules that should always be present (non UNIX dependent):
Guido van Rossumfba715a1994-01-02 00:26:09 +0000130
Guido van Rossumf6971e21994-08-30 12:25:20 +0000131array arraymodule.c # array objects
Guido van Rossum613b9431996-08-20 19:50:17 +0000132cmath cmathmodule.c # -lm # complex math library functions
133math mathmodule.c # -lm # math library functions, e.g. sin()
Guido van Rossumf6971e21994-08-30 12:25:20 +0000134strop stropmodule.c # fast string operations implemented in C
135struct structmodule.c # binary structure packing/unpacking
Guido van Rossum613b9431996-08-20 19:50:17 +0000136time timemodule.c # -lm # time operations and variables
Guido van Rossumd3c1bd31996-07-30 16:54:03 +0000137operator operator.c # operator.add() and similar goodies
Guido van Rossumc7de91b2000-03-10 23:12:08 +0000138_codecs _codecsmodule.c # access to the builtin codecs and codec registry
139
140unicodedata unicodedata.c unicodedatabase.c
141 # static Unicode character database
Marc-André Lemburg2dabf692000-06-28 16:42:39 +0000142ucnhash ucnhash.c # Unicode Character Name expansion hash table
Guido van Rossumfba715a1994-01-02 00:26:09 +0000143
Marc-André Lemburg753131c2000-06-07 09:12:54 +0000144_locale _localemodule.c # access to ISO C locale support
Guido van Rossum3df69bc1997-11-19 18:57:48 +0000145
Guido van Rossumfba715a1994-01-02 00:26:09 +0000146
Guido van Rossumf4449de1995-04-10 11:37:18 +0000147# Modules with some UNIX dependencies -- on by default:
Guido van Rossumb6775db1994-08-01 11:34:53 +0000148# (If you have a really backward UNIX, select and socket may not be
149# supported...)
Guido van Rossumfba715a1994-01-02 00:26:09 +0000150
Guido van Rossumf6971e21994-08-30 12:25:20 +0000151fcntl fcntlmodule.c # fcntl(2) and ioctl(2)
152pwd pwdmodule.c # pwd(3)
153grp grpmodule.c # grp(3)
Guido van Rossumcbdff761999-12-07 21:47:09 +0000154errno errnomodule.c # posix (UNIX) errno values
Guido van Rossumf6971e21994-08-30 12:25:20 +0000155select selectmodule.c # select(2); not on ancient System V
Fred Drakeb526e5f2000-08-16 14:19:43 +0000156_socket socketmodule.c # socket(2)
Guido van Rossumcbdff761999-12-07 21:47:09 +0000157
Fred Drakee64572b2000-09-15 18:55:58 +0000158# Memory-mapped files (also works on Win32).
Fred Drake0422e7f2000-10-02 21:20:22 +0000159mmap mmapmodule.c
Fred Drakee64572b2000-09-15 18:55:58 +0000160
Guido van Rossumea3375d2001-01-09 21:46:50 +0000161# Dynamic readlines
162xreadlines xreadlinesmodule.c
163
Guido van Rossumcbdff761999-12-07 21:47:09 +0000164# Socket module compiled with SSL support; you must edit the SSL variable:
165#SSL=/usr/local/ssl
Thomas Wouters65f39ad2000-08-24 22:54:53 +0000166#_socket socketmodule.c \
Guido van Rossumcbdff761999-12-07 21:47:09 +0000167# -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
168# -L$(SSL)/lib -lssl -lcrypto
Guido van Rossumfba715a1994-01-02 00:26:09 +0000169
Guido van Rossumf58575e1997-12-02 03:23:01 +0000170# The crypt module is now disabled by default because it breaks builds
171# on many systems (where -lcrypt is needed), e.g. Linux (I believe).
172#crypt cryptmodule.c # -lcrypt # crypt(3); needs -lcrypt on some systems
173
Guido van Rossumfba715a1994-01-02 00:26:09 +0000174
Guido van Rossumb6775db1994-08-01 11:34:53 +0000175# Some more UNIX dependent modules -- off by default, since these
Guido van Rossumf4449de1995-04-10 11:37:18 +0000176# are not supported by all UNIX systems:
Guido van Rossumb6775db1994-08-01 11:34:53 +0000177
Guido van Rossum61b705a2000-02-29 15:52:40 +0000178#nis nismodule.c -lnsl # Sun yellow pages -- not everywhere
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000179#termios termios.c # Steen Lumholt's termios module
Guido van Rossum2e631391996-12-18 18:37:27 +0000180#resource resource.c # Jeremy Hylton's rlimit interface
Guido van Rossumb6775db1994-08-01 11:34:53 +0000181
182
Guido van Rossum3f0bff61997-09-03 00:44:14 +0000183# Multimedia modules -- off by default.
Guido van Rossum8700fe61997-11-22 17:35:19 +0000184# These don't work for 64-bit platforms!!!
Guido van Rossumf4449de1995-04-10 11:37:18 +0000185# These represent audio samples or images as strings:
Guido van Rossumfba715a1994-01-02 00:26:09 +0000186
Guido van Rossum3f0bff61997-09-03 00:44:14 +0000187#audioop audioop.c # Operations on audio samples
188#imageop imageop.c # Operations on images
Fred Drake0422e7f2000-10-02 21:20:22 +0000189#rgbimg rgbimgmodule.c # Read SGI RGB image files (but coded portably)
Guido van Rossumfba715a1994-01-02 00:26:09 +0000190
191
Guido van Rossumfba715a1994-01-02 00:26:09 +0000192# The md5 module implements the RSA Data Security, Inc. MD5
193# Message-Digest Algorithm, described in RFC 1321. The necessary files
194# md5c.c and md5.h are included here.
195
Guido van Rossumf6971e21994-08-30 12:25:20 +0000196md5 md5module.c md5c.c
Guido van Rossumfba715a1994-01-02 00:26:09 +0000197
198
Guido van Rossum29d2acc1999-03-24 19:03:59 +0000199# The sha module implements the SHA checksum algorithm.
200# (NIST's Secure Hash Algorithm.)
201sha shamodule.c
202
203
Guido van Rossumfba715a1994-01-02 00:26:09 +0000204# The mpz module interfaces to the GNU Multiple Precision library.
Guido van Rossumb6775db1994-08-01 11:34:53 +0000205# You need to ftp the GNU MP library.
206# The GMP variable must point to the GMP source directory.
Guido van Rossum272841c1996-08-19 23:06:45 +0000207# This was originally written and tested against GMP 1.2 and 1.3.2.
208# It has been modified by Rob Hooft to work with 2.0.2 as well, but I
209# haven't tested it recently.
Guido van Rossumfba715a1994-01-02 00:26:09 +0000210
Guido van Rossumc3706071994-10-06 16:12:06 +0000211# A compatible MP library unencombered by the GPL also exists. It was
212# posted to comp.sources.misc in volume 40 and is widely available from
213# FTP archive sites. One URL for it is:
214# ftp://gatekeeper.dec.com/.b/usenet/comp.sources.misc/volume40/fgmp/part01.Z
215
Guido van Rossumfba715a1994-01-02 00:26:09 +0000216#GMP=/ufs/guido/src/gmp
Guido van Rossumf6971e21994-08-30 12:25:20 +0000217#mpz mpzmodule.c -I$(GMP) $(GMP)/libgmp.a
Guido van Rossumfba715a1994-01-02 00:26:09 +0000218
219
220# SGI IRIX specific modules -- off by default.
Guido van Rossum05bf2801994-10-20 22:01:38 +0000221
Guido van Rossumf4449de1995-04-10 11:37:18 +0000222# These module work on any SGI machine:
Guido van Rossumfba715a1994-01-02 00:26:09 +0000223
Guido van Rossumcaffcdf1995-03-10 15:14:13 +0000224# *** gl must be enabled higher up in this file ***
Guido van Rossum605b93d1998-10-21 15:08:40 +0000225#fm fmmodule.c $(GLHACK) -lfm -lgl # Font Manager
Guido van Rossum05bf2801994-10-20 22:01:38 +0000226#sgi sgimodule.c # sgi.nap() and a few more
227
228# This module requires the header file
Guido van Rossumf4449de1995-04-10 11:37:18 +0000229# /usr/people/4Dgifts/iristools/include/izoom.h:
Guido van Rossumd3d6f8f1997-05-05 20:48:00 +0000230#imgfile imgfile.c -limage -lgutil -lgl -lm # Image Processing Utilities
Guido van Rossum05bf2801994-10-20 22:01:38 +0000231
232
Guido van Rossumf4449de1995-04-10 11:37:18 +0000233# These modules require the Multimedia Development Option (I think):
Guido van Rossum05bf2801994-10-20 22:01:38 +0000234
235#al almodule.c -laudio # Audio Library
236#cd cdmodule.c -lcdaudio -lds -lmediad # CD Audio Library
237#cl clmodule.c -lcl -lawareaudio # Compression Library
238#sv svmodule.c yuvconvert.c -lsvideo -lXext -lX11 # Starter Video
239
Guido van Rossumfba715a1994-01-02 00:26:09 +0000240
241# The FORMS library, by Mark Overmars, implements user interface
242# components such as dialogs and buttons using SGI's GL and FM
243# libraries. You must ftp the FORMS library separately from
244# ftp://ftp.cs.ruu.nl/pub/SGI/FORMS. It was tested with FORMS 2.2a.
Guido van Rossum3f200d71998-10-21 17:03:36 +0000245# NOTE: if you want to be able to use FORMS and curses simultaneously
246# (or both link them statically into the same binary), you must
247# compile all of FORMS with the cc option "-Dclear=__GLclear".
248
Guido van Rossumfba715a1994-01-02 00:26:09 +0000249# The FORMS variable must point to the FORMS subdirectory of the forms
Guido van Rossumf4449de1995-04-10 11:37:18 +0000250# toplevel directory:
Guido van Rossumfba715a1994-01-02 00:26:09 +0000251
252#FORMS=/ufs/guido/src/forms/FORMS
Guido van Rossum605b93d1998-10-21 15:08:40 +0000253#fl flmodule.c -I$(FORMS) $(GLHACK) $(FORMS)/libforms.a -lfm -lgl
Guido van Rossumfba715a1994-01-02 00:26:09 +0000254
255
Guido van Rossumf4449de1995-04-10 11:37:18 +0000256# SunOS specific modules -- off by default:
Guido van Rossumfba715a1994-01-02 00:26:09 +0000257
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000258#sunaudiodev sunaudiodev.c
Guido van Rossumfba715a1994-01-02 00:26:09 +0000259
260
Guido van Rossumaaf0ab22000-03-30 23:27:44 +0000261# Linux specific modules -- off by default:
262
Guido van Rossum8de16932000-03-31 16:56:32 +0000263#linuxaudiodev linuxaudiodev.c
Guido van Rossumaaf0ab22000-03-30 23:27:44 +0000264
265
Guido van Rossumf4449de1995-04-10 11:37:18 +0000266# George Neville-Neil's timing module:
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000267
268#timing timingmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000269
270
Guido van Rossum82df03e1996-08-08 19:08:47 +0000271# The _tkinter module.
Guido van Rossumd4837da1995-02-14 09:43:25 +0000272#
Guido van Rossum8700fe61997-11-22 17:35:19 +0000273# The TKPATH variable is always enabled, to save you the effort.
274TKPATH=:lib-tk
Guido van Rossume4485b01994-09-07 14:32:49 +0000275
Guido van Rossum8700fe61997-11-22 17:35:19 +0000276# The command for _tkinter is long and site specific. Please
277# uncomment and/or edit those parts as indicated. If you don't have a
278# specific extension (e.g. Tix or BLT), leave the corresponding line
279# commented out. (Leave the trailing backslashes in! If you
280# experience strange errors, you may want to join all uncommented
281# lines and remove the backslashes -- the backslash interpretation is
282# done by the shell's "read" command and it may not be implemented on
283# every system.
Guido van Rossume4485b01994-09-07 14:32:49 +0000284
Guido van Rossum8700fe61997-11-22 17:35:19 +0000285# *** Always uncomment this (leave the leading underscore in!):
286# _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
Guido van Rossum8bf6dc71999-01-25 21:38:29 +0000287# *** Uncomment and edit to reflect where your Tcl/Tk headers are:
288# -I/usr/local/include \
Guido van Rossumf58575e1997-12-02 03:23:01 +0000289# *** Uncomment and edit to reflect where your X11 header files are:
Guido van Rossum8700fe61997-11-22 17:35:19 +0000290# -I/usr/X11R6/include \
291# *** Or uncomment this for Solaris:
292# -I/usr/openwin/include \
Guido van Rossum8700fe61997-11-22 17:35:19 +0000293# *** Uncomment and edit for Tix extension only:
294# -DWITH_TIX -ltix4.1.8.0 \
295# *** Uncomment and edit for BLT extension only:
296# -DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
297# *** Uncomment and edit for PIL (TkImaging) extension only:
Guido van Rossumcfc4cf62000-12-12 21:07:08 +0000298# (See http://www.pythonware.com/products/pil/ for more info)
Guido van Rossum8700fe61997-11-22 17:35:19 +0000299# -DWITH_PIL -I../Extensions/Imaging/libImaging tkImaging.c \
Guido van Rossum8700fe61997-11-22 17:35:19 +0000300# *** Uncomment and edit for TOGL extension only:
301# -DWITH_TOGL togl.c \
302# *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
303# -L/usr/local/lib \
304# *** Uncomment and edit to reflect your Tcl/Tk versions:
305# -ltk8.0 -ltcl8.0 \
306# *** Uncomment and edit to reflect where your X11 libraries are:
307# -L/usr/X11R6/lib \
308# *** Or uncomment this for Solaris:
309# -L/usr/openwin/lib \
Guido van Rossumf58575e1997-12-02 03:23:01 +0000310# *** Uncomment these for TOGL extension only:
311# -lGL -lGLU -lXext -lXmu \
Guido van Rossumbef74b51997-12-16 18:12:30 +0000312# *** Uncomment for AIX:
313# -lld \
Guido van Rossum8700fe61997-11-22 17:35:19 +0000314# *** Always uncomment this; X11 libraries to link with:
Guido van Rossumf58575e1997-12-02 03:23:01 +0000315# -lX11
Guido van Rossume4485b01994-09-07 14:32:49 +0000316
Guido van Rossumf4449de1995-04-10 11:37:18 +0000317# Lance Ellinghaus's modules:
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000318
Guido van Rossume4485b01994-09-07 14:32:49 +0000319rotor rotormodule.c # enigma-inspired encryption
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000320#syslog syslogmodule.c # syslog daemon interface
Guido van Rossumf8afdcf1995-07-26 17:31:41 +0000321
322
Andrew M. Kuchlingb7f198e2000-06-10 23:12:32 +0000323# Curses support, requring the System V version of curses, often
324# provided by the ncurses library. e.g. on Linux, link with -lncurses
325# instead of -lcurses; on SunOS 4.1.3, insert -I/usr/5include
Guido van Rossum37ba0bc1995-08-04 04:20:45 +0000326# -L/usr/5lib before -lcurses).
Guido van Rossum3d15bd82001-01-10 18:53:48 +0000327#
328# First, look at Setup.config; configure may have set this for you.
Guido van Rossumf8afdcf1995-07-26 17:31:41 +0000329
Andrew M. Kuchlingb7f198e2000-06-10 23:12:32 +0000330#_curses _cursesmodule.c -lcurses -ltermcap
Andrew M. Kuchling1a86cbb2000-12-22 21:57:33 +0000331# Wrapper for the panel library that's part of ncurses and SYSV curses.
332#_curses_panel _curses_panel.c -lpanel -lncurses
Guido van Rossumb6775db1994-08-01 11:34:53 +0000333
334
Guido van Rossumf4449de1995-04-10 11:37:18 +0000335# Tommy Burnette's 'new' module (creates new empty objects of certain kinds):
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000336
Guido van Rossum0db4c941998-09-21 14:45:22 +0000337new newmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000338
339
Guido van Rossuma3c04b01995-01-12 11:29:01 +0000340# Generic (SunOS / SVR4) dynamic loading module.
341# This is not needed for dynamic loading of Python modules --
342# it is a highly experimental and dangerous device for calling
Guido van Rossumf4449de1995-04-10 11:37:18 +0000343# *arbitrary* C functions in *arbitrary* shared libraries:
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000344
345#dl dlmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000346
347
Guido van Rossum9afad041997-12-11 16:20:36 +0000348# Modules that provide persistent dictionary-like semantics. You will
349# probably want to arrange for at least one of them to be available on
350# your machine, though none are defined by default because of library
351# dependencies. The Python module anydbm.py provides an
352# implementation independent wrapper for these; dumbdbm.py provides
353# similar functionality (but slower of course) implemented in Python.
354
355# The standard Unix dbm module:
356
357#dbm dbmmodule.c # dbm(3) may require -lndbm or similar
358
359# Anthony Baxter's gdbm module. GNU dbm(3) will require -lgdbm:
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000360
361#gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
Guido van Rossumfba715a1994-01-02 00:26:09 +0000362
Guido van Rossum4b4c6641994-08-08 08:06:37 +0000363
Guido van Rossumd639b451995-08-28 02:59:06 +0000364# Berkeley DB interface.
Guido van Rossumae75f491995-07-18 18:18:11 +0000365#
366# This requires the Berkeley DB code, see
367# ftp://ftp.cs.berkeley.edu/pub/4bsd/db.1.85.tar.gz
368#
369# Edit the variables DB and DBPORT to point to the db top directory
370# and the subdirectory of PORT where you built it.
Guido van Rossum7f400be1997-08-05 02:25:24 +0000371#
Fred Drake8f176ac2000-10-14 04:14:09 +0000372# (See http://electricrain.com/greg/python/bsddb3/ for an interface to
373# BSD DB 3.x.)
Guido van Rossumae75f491995-07-18 18:18:11 +0000374
Fred Drakec9cb8472000-08-31 16:11:07 +0000375# Note: If a db.h file is found by configure, bsddb will be enabled
Fred Drake8f176ac2000-10-14 04:14:09 +0000376# automatically via Setup.config.in. It only needs to be enabled here
377# if it is not automatically enabled there; check the generated
378# Setup.config before enabling it here.
Fred Drakec9cb8472000-08-31 16:11:07 +0000379
Guido van Rossum9687a921996-07-24 00:42:42 +0000380#DB=/depot/sundry/src/berkeley-db/db.1.85
381#DBPORT=$(DB)/PORT/irix.5.3
Guido van Rossum007c80e1997-07-11 18:40:46 +0000382#bsddb bsddbmodule.c -I$(DBPORT)/include -I$(DBPORT) $(DBPORT)/libdb.a
Guido van Rossumae75f491995-07-18 18:18:11 +0000383
384
385
Guido van Rossum5d30e741998-04-10 20:44:11 +0000386# David Wayne Williams' soundex module (obsolete -- this will disappear!)
Guido van Rossum31affb21995-06-14 22:31:38 +0000387#soundex soundex.c
388
Jack Jansen72781191995-08-07 14:34:15 +0000389# Helper module for various ascii-encoders
Guido van Rossumb50667d1995-10-12 00:41:40 +0000390binascii binascii.c
391
Guido van Rossumf00eb711996-08-21 22:11:54 +0000392# Fred Drake's interface to the Python parser
393parser parsermodule.c
Jack Jansen72781191995-08-07 14:34:15 +0000394
Guido van Rossumee88ff91997-01-11 19:29:30 +0000395# Digital Creations' cStringIO and cPickle
396cStringIO cStringIO.c
397cPickle cPickle.c
Guido van Rossum31affb21995-06-14 22:31:38 +0000398
Guido van Rossum53bb5501997-03-04 23:36:04 +0000399
Guido van Rossum10efb051997-02-14 23:03:31 +0000400# Lee Busby's SIGFPE modules.
401# The library to link fpectl with is platform specific.
Guido van Rossum53bb5501997-03-04 23:36:04 +0000402# Choose *one* of the options below for fpectl:
Guido van Rossum10efb051997-02-14 23:03:31 +0000403
Guido van Rossum53bb5501997-03-04 23:36:04 +0000404# For SGI IRIX (tested on 5.3):
405#fpectl fpectlmodule.c -lfpe
406
Guido van Rossum159b77f1997-03-04 23:44:15 +0000407# For Solaris with SunPro compiler (tested on Solaris 2.5 with SunPro C 4.2):
408# (Without the compiler you don't have -lsunmath.)
Guido van Rossum53bb5501997-03-04 23:36:04 +0000409#fpectl fpectlmodule.c -R/opt/SUNWspro/lib -lsunmath -lm
410
411# For other systems: see instructions in fpectlmodule.c.
412#fpectl fpectlmodule.c ...
413
414# Test module for fpectl. No extra libraries needed.
Guido van Rossum10efb051997-02-14 23:03:31 +0000415#fpetest fpetestmodule.c
416
Guido van Rossum7fa3b751997-04-29 15:41:26 +0000417# Andrew Kuchling's zlib module.
Guido van Rossum29d2acc1999-03-24 19:03:59 +0000418# This require zlib 1.1.3 (or later).
Guido van Rossum64608cf1998-02-06 22:36:10 +0000419# See http://www.cdrom.com/pub/infozip/zlib/
Guido van Rossumd3d6f8f1997-05-05 20:48:00 +0000420#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
Guido van Rossum7fa3b751997-04-29 15:41:26 +0000421
Andrew M. Kuchlingb7f10532000-03-31 15:43:31 +0000422# Interface to the Expat XML parser
Guido van Rossumd1bda0c2000-03-31 16:39:02 +0000423#
424# Expat is written by James Clark and must be downloaded separately
425# (see below). The pyexpat module was written by Paul Prescod after a
426# prototype by Jack Jansen.
427#
428# The Expat dist includes Windows .lib and .dll files. Home page is at
429# http://www.jclark.com/xml/expat.html, the current production release is
430# always ftp://ftp.jclark.com/pub/xml/expat.zip.
431#
Fred Drake3de16f32000-06-29 05:29:08 +0000432# EXPAT_DIR, below, should point to the expat/ directory created by
433# unpacking the Expat source distribution.
Guido van Rossumd1bda0c2000-03-31 16:39:02 +0000434#
Fred Drake3de16f32000-06-29 05:29:08 +0000435# Note: the expat build process doesn't yet build a libexpat.a; you can
436# do this manually while we try convince the author to add it. To do so,
437# cd to EXPAT_DIR, run "make" if you have not done so, then run:
438#
Jeremy Hyltona22a0b32000-06-29 14:40:45 +0000439# ar cr libexpat.a xmltok/*.o xmlparse/*.o
Fred Drake3de16f32000-06-29 05:29:08 +0000440#
441#EXPAT_DIR=/usr/local/src/expat
Andrew M. Kuchlingb7f10532000-03-31 15:43:31 +0000442#pyexpat pyexpat.c -I$(EXPAT_DIR)/xmlparse -L$(EXPAT_DIR) -lexpat
443
Guido van Rossumd1bda0c2000-03-31 16:39:02 +0000444
Guido van Rossumf4449de1995-04-10 11:37:18 +0000445# Example -- included for reference only:
Guido van Rossumf6971e21994-08-30 12:25:20 +0000446# xx xxmodule.c