blob: 37d0c30ece29bbed393afe2ea144c6e250319171 [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
5# Setup.in; 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
Guido van Rossumf4449de1995-04-10 11:37:18 +000010# are Makefile and config.c; the *.in 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
42# is used to build modules as shared libraries. (They must be
43# installed using "make sharedinstall".) (For compatibility,
44# *noconfig* has the same effect as *shared*.)
Guido van Rossumb6775db1994-08-01 11:34:53 +000045
Guido van Rossumfba715a1994-01-02 00:26:09 +000046# NOTE: As a standard policy, as many modules as can be supported by a
47# platform should be present. The distribution comes with all modules
48# enabled that are supported by most platforms and don't require you
Guido van Rossumf4449de1995-04-10 11:37:18 +000049# to ftp sources from elsewhere.
Guido van Rossumfba715a1994-01-02 00:26:09 +000050
51
Guido van Rossumb6775db1994-08-01 11:34:53 +000052# Some special rules to define PYTHONPATH.
53# Edit the definitions below to indicate which options you are using.
54# Don't add any whitespace or comments!
55
Guido van Rossum0c5e3c81996-07-31 17:49:01 +000056# Directories where library files get installed.
57# DESTLIB is for Python modules; MACHDESTLIB for shared libraries.
58DESTLIB=$(LIBDEST)
59MACHDESTLIB=$(BINLIBDEST)
Guido van Rossumb6775db1994-08-01 11:34:53 +000060
Guido van Rossum97227811997-04-11 17:19:54 +000061# NOTE: all the paths are now relative to the prefix that is computed
62# at run time!
63
Guido van Rossum0c5e3c81996-07-31 17:49:01 +000064# Standard path -- don't edit.
Guido van Rossum97227811997-04-11 17:19:54 +000065# No leading colon since this is the first entry.
66# Empty since this is now just the runtime prefix.
67DESTPATH=
Guido van Rossum1c206481995-09-13 18:39:04 +000068
Guido van Rossum0c5e3c81996-07-31 17:49:01 +000069# Site specific path components -- should begin with : if non-empty
70SITEPATH=
71
72# Standard path components for test modules
Guido van Rossum97227811997-04-11 17:19:54 +000073TESTPATH=:test
Guido van Rossumb6775db1994-08-01 11:34:53 +000074
Guido van Rossumd3c1bd31996-07-30 16:54:03 +000075# Path components for machine- or system-dependent modules and shared libraries
Guido van Rossuma9f02b81997-09-28 05:45:40 +000076MACHDEPPATH=:plat-$(MACHDEP)
Guido van Rossumb6775db1994-08-01 11:34:53 +000077
Guido van Rossum02ca3ab1996-07-30 20:36:59 +000078COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(STDWINPATH)$(TKPATH)
Guido van Rossumf5e0ea81994-09-12 15:35:36 +000079PYTHONPATH=$(COREPYTHONPATH)
Guido van Rossumb6775db1994-08-01 11:34:53 +000080
81
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000082# The modules listed here can't be built as shared libraries for
83# various reasons; therefore they are listed here instead of in the
84# normal order.
Guido van Rossum05bf2801994-10-20 22:01:38 +000085
Guido van Rossumf4449de1995-04-10 11:37:18 +000086# Some modules that are normally always on:
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000087
Guido van Rossum007c80e1997-07-11 18:40:46 +000088regex regexmodule.c regexpr.c # Regular expressions, GNU Emacs style
Guido van Rossum176bb411997-10-07 16:17:55 +000089reop reopmodule.c # Additional RE support (for re1.py)
90pcre pcremodule.c pypcre.c # Regular expressions, Perl style (for re.py)
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000091posix posixmodule.c # posix (UNIX) system calls
92signal signalmodule.c # signal(2)
93
Guido van Rossumf4449de1995-04-10 11:37:18 +000094# The SGI specific GL module:
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000095
Guido van Rossum81058211997-04-29 16:07:45 +000096#gl glmodule.c cgensupport.c -I$(srcdir) -lgl -lX11
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000097
Guido van Rossuma0cbb3d1997-12-04 00:48:27 +000098# The thread module is now automatically enabled, see Setup.thread.
Guido van Rossum05bf2801994-10-20 22:01:38 +000099
Barry Warsawe886ea91997-01-17 00:01:33 +0000100# Pure module. Cannot be linked dynamically.
101# -DWITH_QUANTIFY, -DWITH_PURIFY, or -DWITH_ALL_PURE
102#WHICH_PURE_PRODUCTS=-DWITH_ALL_PURE
103#PURE_INCLS=-I/usr/local/include
104#PURE_STUBLIBS=-L/usr/local/lib -lpurify_stubs -lquantify_stubs
105#pure puremodule.c $(WHICH_PURE_PRODUCTS) $(PURE_INCLS) $(PURE_STUBLIBS)
106
Guido van Rossum05bf2801994-10-20 22:01:38 +0000107# Uncommenting the following line tells makesetup that all following
Guido van Rossumf4449de1995-04-10 11:37:18 +0000108# modules are to be built as shared libraries (see above for more
109# detail):
Guido van Rossum05bf2801994-10-20 22:01:38 +0000110
Guido van Rossum613b9431996-08-20 19:50:17 +0000111#*shared*
Guido van Rossum05bf2801994-10-20 22:01:38 +0000112
Guido van Rossum0969d361997-08-05 21:27:50 +0000113# GNU readline. Unlike previous Python incarnations, GNU readline is
114# now incorporated in an optional module, configured in the Setup file
115# instead of by a configure script switch. You may have to insert a
116# -L option pointing to the directory where libreadline.* lives,
117# and you may have to change -ltermcap to -ltermlib or perhaps remove
118# it, depending on your system -- see the GNU readline instructions.
119# It's okay for this to be a shared library, too.
120
121#readline readline.c -lreadline -ltermcap
122
Guido van Rossum05bf2801994-10-20 22:01:38 +0000123
Guido van Rossumf4449de1995-04-10 11:37:18 +0000124# Modules that should always be present (non UNIX dependent):
Guido van Rossumfba715a1994-01-02 00:26:09 +0000125
Guido van Rossumf6971e21994-08-30 12:25:20 +0000126array arraymodule.c # array objects
Guido van Rossum613b9431996-08-20 19:50:17 +0000127cmath cmathmodule.c # -lm # complex math library functions
128math mathmodule.c # -lm # math library functions, e.g. sin()
Guido van Rossumf6971e21994-08-30 12:25:20 +0000129strop stropmodule.c # fast string operations implemented in C
130struct structmodule.c # binary structure packing/unpacking
Guido van Rossum613b9431996-08-20 19:50:17 +0000131time timemodule.c # -lm # time operations and variables
Guido van Rossumd3c1bd31996-07-30 16:54:03 +0000132operator operator.c # operator.add() and similar goodies
Guido van Rossumfba715a1994-01-02 00:26:09 +0000133
Guido van Rossum3df69bc1997-11-19 18:57:48 +0000134#_locale _localemodule.c # access to ISO C locale support
135
Guido van Rossumfba715a1994-01-02 00:26:09 +0000136
Guido van Rossumf4449de1995-04-10 11:37:18 +0000137# Modules with some UNIX dependencies -- on by default:
Guido van Rossumb6775db1994-08-01 11:34:53 +0000138# (If you have a really backward UNIX, select and socket may not be
139# supported...)
Guido van Rossumfba715a1994-01-02 00:26:09 +0000140
Guido van Rossumf6971e21994-08-30 12:25:20 +0000141fcntl fcntlmodule.c # fcntl(2) and ioctl(2)
142pwd pwdmodule.c # pwd(3)
143grp grpmodule.c # grp(3)
Guido van Rossumf6971e21994-08-30 12:25:20 +0000144select selectmodule.c # select(2); not on ancient System V
145socket socketmodule.c # socket(2); not on ancient System V
Guido van Rossumd3c1bd31996-07-30 16:54:03 +0000146errno errnomodule.c # posix (UNIX) errno values
Guido van Rossumfba715a1994-01-02 00:26:09 +0000147
Guido van Rossumf58575e1997-12-02 03:23:01 +0000148# The crypt module is now disabled by default because it breaks builds
149# on many systems (where -lcrypt is needed), e.g. Linux (I believe).
150#crypt cryptmodule.c # -lcrypt # crypt(3); needs -lcrypt on some systems
151
Guido van Rossumfba715a1994-01-02 00:26:09 +0000152
Guido van Rossumb6775db1994-08-01 11:34:53 +0000153# Some more UNIX dependent modules -- off by default, since these
Guido van Rossumf4449de1995-04-10 11:37:18 +0000154# are not supported by all UNIX systems:
Guido van Rossumb6775db1994-08-01 11:34:53 +0000155
Guido van Rossumf6971e21994-08-30 12:25:20 +0000156#nis nismodule.c # Sun yellow pages -- not everywhere
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000157#termios termios.c # Steen Lumholt's termios module
Guido van Rossum2e631391996-12-18 18:37:27 +0000158#resource resource.c # Jeremy Hylton's rlimit interface
Guido van Rossumb6775db1994-08-01 11:34:53 +0000159
160
Guido van Rossum3f0bff61997-09-03 00:44:14 +0000161# Multimedia modules -- off by default.
Guido van Rossum8700fe61997-11-22 17:35:19 +0000162# These don't work for 64-bit platforms!!!
Guido van Rossumf4449de1995-04-10 11:37:18 +0000163# These represent audio samples or images as strings:
Guido van Rossumfba715a1994-01-02 00:26:09 +0000164
Guido van Rossum3f0bff61997-09-03 00:44:14 +0000165#audioop audioop.c # Operations on audio samples
166#imageop imageop.c # Operations on images
167#rgbimg rgbimgmodule.c # Read SGI RGB image files (but coded portably)
Guido van Rossumfba715a1994-01-02 00:26:09 +0000168
169
170# The stdwin module provides a simple, portable (between X11 and Mac)
171# windowing interface. You need to ftp the STDWIN library, e.g. from
Guido van Rossumf4449de1995-04-10 11:37:18 +0000172# ftp://ftp.cwi.nl/pub/stdwin. (If you get it elsewhere, be sure to
173# get version 1.0 or higher!) The STDWIN variable must point to the
174# STDWIN toplevel directory.
Guido van Rossumfba715a1994-01-02 00:26:09 +0000175
Guido van Rossumf4449de1995-04-10 11:37:18 +0000176# Uncomment and edit as needed:
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000177#STDWIN=/ufs/guido/src/stdwin
Guido van Rossumf4449de1995-04-10 11:37:18 +0000178
179# Uncomment these lines:
Guido van Rossumab61c6b1997-09-08 01:54:43 +0000180#STDWINPATH=:lib-stdwin
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000181#LIBTEXTEDIT=$(STDWIN)/$(MACHDEP)/Packs/textedit/libtextedit.a
182#LIBX11STDWIN=$(STDWIN)/$(MACHDEP)/Ports/x11/libstdwin.a
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000183#stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBX11STDWIN) -lX11
184
Guido van Rossumf4449de1995-04-10 11:37:18 +0000185# Use this instead of the last two lines above for alphanumeric stdwin:
186#LIBALFASTDWIN=$(STDWIN)/$(MACHDEP)/Ports/alfa/libstdwin.a
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000187#stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBALFASTDWIN) -ltermcap
188
Guido van Rossumfba715a1994-01-02 00:26:09 +0000189
190# The md5 module implements the RSA Data Security, Inc. MD5
191# Message-Digest Algorithm, described in RFC 1321. The necessary files
192# md5c.c and md5.h are included here.
193
Guido van Rossumf6971e21994-08-30 12:25:20 +0000194md5 md5module.c md5c.c
Guido van Rossumfba715a1994-01-02 00:26:09 +0000195
196
197# The mpz module interfaces to the GNU Multiple Precision library.
Guido van Rossumb6775db1994-08-01 11:34:53 +0000198# You need to ftp the GNU MP library.
199# The GMP variable must point to the GMP source directory.
Guido van Rossum272841c1996-08-19 23:06:45 +0000200# This was originally written and tested against GMP 1.2 and 1.3.2.
201# It has been modified by Rob Hooft to work with 2.0.2 as well, but I
202# haven't tested it recently.
Guido van Rossumfba715a1994-01-02 00:26:09 +0000203
Guido van Rossumc3706071994-10-06 16:12:06 +0000204# A compatible MP library unencombered by the GPL also exists. It was
205# posted to comp.sources.misc in volume 40 and is widely available from
206# FTP archive sites. One URL for it is:
207# ftp://gatekeeper.dec.com/.b/usenet/comp.sources.misc/volume40/fgmp/part01.Z
208
Guido van Rossumfba715a1994-01-02 00:26:09 +0000209#GMP=/ufs/guido/src/gmp
Guido van Rossumf6971e21994-08-30 12:25:20 +0000210#mpz mpzmodule.c -I$(GMP) $(GMP)/libgmp.a
Guido van Rossumfba715a1994-01-02 00:26:09 +0000211
212
213# SGI IRIX specific modules -- off by default.
Guido van Rossum05bf2801994-10-20 22:01:38 +0000214
Guido van Rossumf4449de1995-04-10 11:37:18 +0000215# These module work on any SGI machine:
Guido van Rossumfba715a1994-01-02 00:26:09 +0000216
Guido van Rossumcaffcdf1995-03-10 15:14:13 +0000217# *** gl must be enabled higher up in this file ***
Guido van Rossum05bf2801994-10-20 22:01:38 +0000218#fm fmmodule.c -lfm -lgl # Font Manager
Guido van Rossum05bf2801994-10-20 22:01:38 +0000219#sgi sgimodule.c # sgi.nap() and a few more
220
221# This module requires the header file
Guido van Rossumf4449de1995-04-10 11:37:18 +0000222# /usr/people/4Dgifts/iristools/include/izoom.h:
Guido van Rossumd3d6f8f1997-05-05 20:48:00 +0000223#imgfile imgfile.c -limage -lgutil -lgl -lm # Image Processing Utilities
Guido van Rossum05bf2801994-10-20 22:01:38 +0000224
225
Guido van Rossumf4449de1995-04-10 11:37:18 +0000226# These modules require the Multimedia Development Option (I think):
Guido van Rossum05bf2801994-10-20 22:01:38 +0000227
228#al almodule.c -laudio # Audio Library
229#cd cdmodule.c -lcdaudio -lds -lmediad # CD Audio Library
230#cl clmodule.c -lcl -lawareaudio # Compression Library
231#sv svmodule.c yuvconvert.c -lsvideo -lXext -lX11 # Starter Video
232
Guido van Rossumfba715a1994-01-02 00:26:09 +0000233
234# The FORMS library, by Mark Overmars, implements user interface
235# components such as dialogs and buttons using SGI's GL and FM
236# libraries. You must ftp the FORMS library separately from
237# ftp://ftp.cs.ruu.nl/pub/SGI/FORMS. It was tested with FORMS 2.2a.
238# The FORMS variable must point to the FORMS subdirectory of the forms
Guido van Rossumf4449de1995-04-10 11:37:18 +0000239# toplevel directory:
Guido van Rossumfba715a1994-01-02 00:26:09 +0000240
241#FORMS=/ufs/guido/src/forms/FORMS
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000242#fl flmodule.c -I$(FORMS) $(FORMS)/libforms.a -lfm -lgl
Guido van Rossumfba715a1994-01-02 00:26:09 +0000243
244
Guido van Rossumf4449de1995-04-10 11:37:18 +0000245# SunOS specific modules -- off by default:
Guido van Rossumfba715a1994-01-02 00:26:09 +0000246
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000247#sunaudiodev sunaudiodev.c
Guido van Rossumfba715a1994-01-02 00:26:09 +0000248
249
Guido van Rossumf4449de1995-04-10 11:37:18 +0000250# George Neville-Neil's timing module:
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000251
252#timing timingmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000253
254
Guido van Rossum82df03e1996-08-08 19:08:47 +0000255# The _tkinter module.
Guido van Rossumd4837da1995-02-14 09:43:25 +0000256#
Guido van Rossum8700fe61997-11-22 17:35:19 +0000257# The TKPATH variable is always enabled, to save you the effort.
258TKPATH=:lib-tk
Guido van Rossume4485b01994-09-07 14:32:49 +0000259
Guido van Rossum8700fe61997-11-22 17:35:19 +0000260# The command for _tkinter is long and site specific. Please
261# uncomment and/or edit those parts as indicated. If you don't have a
262# specific extension (e.g. Tix or BLT), leave the corresponding line
263# commented out. (Leave the trailing backslashes in! If you
264# experience strange errors, you may want to join all uncommented
265# lines and remove the backslashes -- the backslash interpretation is
266# done by the shell's "read" command and it may not be implemented on
267# every system.
Guido van Rossume4485b01994-09-07 14:32:49 +0000268
Guido van Rossum8700fe61997-11-22 17:35:19 +0000269# *** Always uncomment this (leave the leading underscore in!):
270# _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
Guido van Rossumf58575e1997-12-02 03:23:01 +0000271# *** Uncomment and edit to reflect where your X11 header files are:
Guido van Rossum8700fe61997-11-22 17:35:19 +0000272# -I/usr/X11R6/include \
273# *** Or uncomment this for Solaris:
274# -I/usr/openwin/include \
275# *** Uncomment and edit to reflect where your Tcl/Tk headers are:
276# -I/usr/local/include \
277# *** Uncomment and edit for Tix extension only:
278# -DWITH_TIX -ltix4.1.8.0 \
279# *** Uncomment and edit for BLT extension only:
280# -DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
281# *** Uncomment and edit for PIL (TkImaging) extension only:
282# -DWITH_PIL -I../Extensions/Imaging/libImaging tkImaging.c \
Guido van Rossum8700fe61997-11-22 17:35:19 +0000283# *** Uncomment and edit for TOGL extension only:
284# -DWITH_TOGL togl.c \
285# *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
286# -L/usr/local/lib \
287# *** Uncomment and edit to reflect your Tcl/Tk versions:
288# -ltk8.0 -ltcl8.0 \
289# *** Uncomment and edit to reflect where your X11 libraries are:
290# -L/usr/X11R6/lib \
291# *** Or uncomment this for Solaris:
292# -L/usr/openwin/lib \
Guido van Rossumf58575e1997-12-02 03:23:01 +0000293# *** Uncomment these for TOGL extension only:
294# -lGL -lGLU -lXext -lXmu \
Guido van Rossumbef74b51997-12-16 18:12:30 +0000295# *** Uncomment for AIX:
296# -lld \
Guido van Rossum8700fe61997-11-22 17:35:19 +0000297# *** Always uncomment this; X11 libraries to link with:
Guido van Rossumf58575e1997-12-02 03:23:01 +0000298# -lX11
Guido van Rossume4485b01994-09-07 14:32:49 +0000299
Guido van Rossumf4449de1995-04-10 11:37:18 +0000300# Lance Ellinghaus's modules:
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000301
Guido van Rossume4485b01994-09-07 14:32:49 +0000302rotor rotormodule.c # enigma-inspired encryption
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000303#syslog syslogmodule.c # syslog daemon interface
Guido van Rossumf8afdcf1995-07-26 17:31:41 +0000304
305
306# Lance's curses module. This requires the System V version of
307# curses, sometimes known as ncurses (e.g. on Linux, link with
Guido van Rossum37ba0bc1995-08-04 04:20:45 +0000308# -lncurses instead of -lcurses; on SunOS 4.1.3, insert -I/usr/5include
309# -L/usr/5lib before -lcurses).
Guido van Rossumf8afdcf1995-07-26 17:31:41 +0000310
311#curses cursesmodule.c -lcurses -ltermcap
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000312
Guido van Rossumb6775db1994-08-01 11:34:53 +0000313
314
Guido van Rossumf4449de1995-04-10 11:37:18 +0000315# Tommy Burnette's 'new' module (creates new empty objects of certain kinds):
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000316
317#new newmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000318
319
Guido van Rossuma3c04b01995-01-12 11:29:01 +0000320# Generic (SunOS / SVR4) dynamic loading module.
321# This is not needed for dynamic loading of Python modules --
322# it is a highly experimental and dangerous device for calling
Guido van Rossumf4449de1995-04-10 11:37:18 +0000323# *arbitrary* C functions in *arbitrary* shared libraries:
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000324
325#dl dlmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000326
327
Guido van Rossum9afad041997-12-11 16:20:36 +0000328# Modules that provide persistent dictionary-like semantics. You will
329# probably want to arrange for at least one of them to be available on
330# your machine, though none are defined by default because of library
331# dependencies. The Python module anydbm.py provides an
332# implementation independent wrapper for these; dumbdbm.py provides
333# similar functionality (but slower of course) implemented in Python.
334
335# The standard Unix dbm module:
336
337#dbm dbmmodule.c # dbm(3) may require -lndbm or similar
338
339# Anthony Baxter's gdbm module. GNU dbm(3) will require -lgdbm:
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000340
341#gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
Guido van Rossumfba715a1994-01-02 00:26:09 +0000342
Guido van Rossum4b4c6641994-08-08 08:06:37 +0000343
Guido van Rossumd639b451995-08-28 02:59:06 +0000344# Berkeley DB interface.
Guido van Rossumae75f491995-07-18 18:18:11 +0000345#
346# This requires the Berkeley DB code, see
347# ftp://ftp.cs.berkeley.edu/pub/4bsd/db.1.85.tar.gz
348#
349# Edit the variables DB and DBPORT to point to the db top directory
350# and the subdirectory of PORT where you built it.
Guido van Rossum7f400be1997-08-05 02:25:24 +0000351#
352# (See http://www.jenkon-dev.com/~rd/python/ for an interface to
353# BSD DB 2.1.0.)
Guido van Rossumae75f491995-07-18 18:18:11 +0000354
Guido van Rossum9687a9211996-07-24 00:42:42 +0000355#DB=/depot/sundry/src/berkeley-db/db.1.85
356#DBPORT=$(DB)/PORT/irix.5.3
Guido van Rossum007c80e1997-07-11 18:40:46 +0000357#bsddb bsddbmodule.c -I$(DBPORT)/include -I$(DBPORT) $(DBPORT)/libdb.a
Guido van Rossumae75f491995-07-18 18:18:11 +0000358
359
360
Guido van Rossum31affb21995-06-14 22:31:38 +0000361# David Wayne Williams' soundex module
362#soundex soundex.c
363
Jack Jansen72781191995-08-07 14:34:15 +0000364# Helper module for various ascii-encoders
Guido van Rossumb50667d1995-10-12 00:41:40 +0000365binascii binascii.c
366
Guido van Rossumf00eb711996-08-21 22:11:54 +0000367# Fred Drake's interface to the Python parser
368parser parsermodule.c
Jack Jansen72781191995-08-07 14:34:15 +0000369
Guido van Rossumee88ff91997-01-11 19:29:30 +0000370# Digital Creations' cStringIO and cPickle
371cStringIO cStringIO.c
372cPickle cPickle.c
Guido van Rossum31affb21995-06-14 22:31:38 +0000373
Guido van Rossum53bb5501997-03-04 23:36:04 +0000374
Guido van Rossum10efb051997-02-14 23:03:31 +0000375# Lee Busby's SIGFPE modules.
376# The library to link fpectl with is platform specific.
Guido van Rossum53bb5501997-03-04 23:36:04 +0000377# Choose *one* of the options below for fpectl:
Guido van Rossum10efb051997-02-14 23:03:31 +0000378
Guido van Rossum53bb5501997-03-04 23:36:04 +0000379# For SGI IRIX (tested on 5.3):
380#fpectl fpectlmodule.c -lfpe
381
Guido van Rossum159b77f1997-03-04 23:44:15 +0000382# For Solaris with SunPro compiler (tested on Solaris 2.5 with SunPro C 4.2):
383# (Without the compiler you don't have -lsunmath.)
Guido van Rossum53bb5501997-03-04 23:36:04 +0000384#fpectl fpectlmodule.c -R/opt/SUNWspro/lib -lsunmath -lm
385
386# For other systems: see instructions in fpectlmodule.c.
387#fpectl fpectlmodule.c ...
388
389# Test module for fpectl. No extra libraries needed.
Guido van Rossum10efb051997-02-14 23:03:31 +0000390#fpetest fpetestmodule.c
391
Guido van Rossum7fa3b751997-04-29 15:41:26 +0000392# Andrew Kuchling's zlib module.
Guido van Rossumd3d6f8f1997-05-05 20:48:00 +0000393# This require zlib 1.0.4 (or later). See http://quest.jpl.nasa.gov/zlib/
394#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
Guido van Rossum7fa3b751997-04-29 15:41:26 +0000395
Guido van Rossum53bb5501997-03-04 23:36:04 +0000396
Guido van Rossumf4449de1995-04-10 11:37:18 +0000397# Example -- included for reference only:
Guido van Rossumf6971e21994-08-30 12:25:20 +0000398# xx xxmodule.c