blob: 9aa6ab1111cda80235f4bd6902531c9dcb4c6cd9 [file] [log] [blame]
Guido van Rossumb6775db1994-08-01 11:34:53 +00001# The file Setup is used by the makesetup script to construct the files
2# Makefile and config.c, from Makefile.pre and config.c.in,
3# respectively. The file Setup itself is initially copied from
4# Setup.in; once it exists it will not be overwritten, so you can edit
Guido van Rossumf4449de1995-04-10 11:37:18 +00005# Setup to your heart's content. Note that Makefile.pre is created
6# from Makefile.pre.in by the toplevel configure script.
Guido van Rossumb6775db1994-08-01 11:34:53 +00007
8# (VPATH notes: Setup and Makefile.pre are in the build directory, as
Guido van Rossumf4449de1995-04-10 11:37:18 +00009# are Makefile and config.c; the *.in files are in the source
Guido van Rossumb6775db1994-08-01 11:34:53 +000010# directory.)
11
Guido van Rossumfba715a1994-01-02 00:26:09 +000012# Each line in this file describes one or more optional modules.
13# Comment out lines to suppress modules.
14# Lines have the following structure:
15#
Guido van Rossumf6971e21994-08-30 12:25:20 +000016# <module> ... [<sourcefile> ...] [<cpparg> ...] [<library> ...]
Guido van Rossumfba715a1994-01-02 00:26:09 +000017#
Guido van Rossumf6971e21994-08-30 12:25:20 +000018# <sourcefile> is anything ending in .c (.C, .cc, .c++ are C++ files)
Guido van Rossumfba715a1994-01-02 00:26:09 +000019# <cpparg> is anything starting with -I, -D, -U or -C
20# <library> is anything ending in .a or beginning with -l or -L
21# <module> is anything else but should be a valid Python
22# identifier (letters, digits, underscores, beginning with non-digit)
23#
24# Lines can also have the form
25#
26# <name> = <value>
27#
28# which defines a Make variable definition inserted into Makefile.in
Guido van Rossum7cc5abd1994-09-12 10:42:20 +000029#
30# Finally, if a line has the literal form
31#
32# *noconfig*
33#
34# (that is including the '*' and '*' !) then the following modules will
35# not be included in the config.c file, nor in the list of objects to be
36# added to the library archive, and their linker options won't be added
37# to the linker options, but rules to create their .o files and their
Guido van Rossumf4449de1995-04-10 11:37:18 +000038# shared libraries will still be added to the Makefile, and their
39# names will be collected in the Make variable SHAREDMODS. This is
40# used to build modules as shared libraries. (They must be installed
41# using "make sharedinstall".)
Guido van Rossumb6775db1994-08-01 11:34:53 +000042
Guido van Rossumfba715a1994-01-02 00:26:09 +000043# NOTE: As a standard policy, as many modules as can be supported by a
44# platform should be present. The distribution comes with all modules
45# enabled that are supported by most platforms and don't require you
Guido van Rossumf4449de1995-04-10 11:37:18 +000046# to ftp sources from elsewhere.
Guido van Rossumfba715a1994-01-02 00:26:09 +000047
48
Guido van Rossum02530b01996-07-31 22:43:38 +000049# -------> Uncomment this line if you are running AIX <----------
50# -------> and if you are building with shared libraries <----------
51#LINKCC= makexp_aix python.exp "" $(MYLIBS) $(ADDOBJS) ; $(CC)
52
53
Guido van Rossumb6775db1994-08-01 11:34:53 +000054# Some special rules to define PYTHONPATH.
55# Edit the definitions below to indicate which options you are using.
56# Don't add any whitespace or comments!
57
Guido van Rossum0c5e3c81996-07-31 17:49:01 +000058# Directories where library files get installed.
59# DESTLIB is for Python modules; MACHDESTLIB for shared libraries.
60DESTLIB=$(LIBDEST)
61MACHDESTLIB=$(BINLIBDEST)
Guido van Rossumb6775db1994-08-01 11:34:53 +000062
Guido van Rossum0c5e3c81996-07-31 17:49:01 +000063# Standard path -- don't edit.
64# No leading colon since this is the first entry
Guido van Rossum02ca3ab1996-07-30 20:36:59 +000065DESTPATH=$(DESTLIB)
Guido van Rossum1c206481995-09-13 18:39:04 +000066
Guido van Rossum0c5e3c81996-07-31 17:49:01 +000067# Site specific path components -- should begin with : if non-empty
68SITEPATH=
69
70# Standard path components for test modules
Guido van Rossumb6775db1994-08-01 11:34:53 +000071TESTPATH=:$(DESTLIB)/test
72
Guido van Rossumd3c1bd31996-07-30 16:54:03 +000073# Path components for machine- or system-dependent modules and shared libraries
74MACHDEPPATH=:$(DESTLIB)/$(MACHDEP):$(MACHDESTLIB)/sharedmodules
Guido van Rossumb6775db1994-08-01 11:34:53 +000075
Guido van Rossum02ca3ab1996-07-30 20:36:59 +000076COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(STDWINPATH)$(TKPATH)
Guido van Rossumf5e0ea81994-09-12 15:35:36 +000077PYTHONPATH=$(COREPYTHONPATH)
Guido van Rossumb6775db1994-08-01 11:34:53 +000078
79
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000080# The modules listed here can't be built as shared libraries for
81# various reasons; therefore they are listed here instead of in the
82# normal order.
Guido van Rossum05bf2801994-10-20 22:01:38 +000083
Guido van Rossumf4449de1995-04-10 11:37:18 +000084# Some modules that are normally always on:
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000085
86posix posixmodule.c # posix (UNIX) system calls
87signal signalmodule.c # signal(2)
88
Guido van Rossumf4449de1995-04-10 11:37:18 +000089# The SGI specific GL module:
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000090
Guido van Rossum05bf2801994-10-20 22:01:38 +000091#gl glmodule.c -lgl -lX11 # Graphics Library -- SGI only
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000092
Guido van Rossumd3c1bd31996-07-30 16:54:03 +000093# Thread module -- use only if Python has thread support for your OS.
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000094# Note that you must have configured (and built!) Python with the
Guido van Rossumf4449de1995-04-10 11:37:18 +000095# --with-thread option passed to the configure script for this to work:
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000096
97#thread threadmodule.c
Guido van Rossum05bf2801994-10-20 22:01:38 +000098
99# Uncommenting the following line tells makesetup that all following
Guido van Rossumf4449de1995-04-10 11:37:18 +0000100# modules are to be built as shared libraries (see above for more
101# detail):
Guido van Rossum05bf2801994-10-20 22:01:38 +0000102
103#*noconfig*
104
105
Guido van Rossumf4449de1995-04-10 11:37:18 +0000106# Modules that should always be present (non UNIX dependent):
Guido van Rossumfba715a1994-01-02 00:26:09 +0000107
Guido van Rossumf6971e21994-08-30 12:25:20 +0000108array arraymodule.c # array objects
Guido van Rossum00bd2e51996-01-12 01:40:19 +0000109cmath cmathmodule.c # complex math library functions
Guido van Rossum02530b01996-07-31 22:43:38 +0000110math mathmodule.c # math library functions, e.g. sin()
Guido van Rossumf6971e21994-08-30 12:25:20 +0000111regex regexmodule.c regexpr.c # Regular expressions, GNU Emacs style
112strop stropmodule.c # fast string operations implemented in C
113struct structmodule.c # binary structure packing/unpacking
114time timemodule.c # time operations and variables
Guido van Rossumd3c1bd31996-07-30 16:54:03 +0000115operator operator.c # operator.add() and similar goodies
Guido van Rossumfba715a1994-01-02 00:26:09 +0000116
117
Guido van Rossumf4449de1995-04-10 11:37:18 +0000118# Modules with some UNIX dependencies -- on by default:
Guido van Rossumb6775db1994-08-01 11:34:53 +0000119# (If you have a really backward UNIX, select and socket may not be
120# supported...)
Guido van Rossumfba715a1994-01-02 00:26:09 +0000121
Guido van Rossumf6971e21994-08-30 12:25:20 +0000122fcntl fcntlmodule.c # fcntl(2) and ioctl(2)
123pwd pwdmodule.c # pwd(3)
124grp grpmodule.c # grp(3)
Guido van Rossumd4837da1995-02-14 09:43:25 +0000125crypt cryptmodule.c # -lcrypt # crypt(3); needs -lcrypt on some systems
Guido van Rossumf6971e21994-08-30 12:25:20 +0000126select selectmodule.c # select(2); not on ancient System V
127socket socketmodule.c # socket(2); not on ancient System V
Guido van Rossumd3c1bd31996-07-30 16:54:03 +0000128errno errnomodule.c # posix (UNIX) errno values
Guido van Rossumfba715a1994-01-02 00:26:09 +0000129
130
Guido van Rossumb6775db1994-08-01 11:34:53 +0000131# Some more UNIX dependent modules -- off by default, since these
Guido van Rossumf4449de1995-04-10 11:37:18 +0000132# are not supported by all UNIX systems:
Guido van Rossumb6775db1994-08-01 11:34:53 +0000133
Guido van Rossumf6971e21994-08-30 12:25:20 +0000134#dbm dbmmodule.c # dbm(3) may require -lndbm or similar
135#nis nismodule.c # Sun yellow pages -- not everywhere
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000136#termios termios.c # Steen Lumholt's termios module
Guido van Rossumb6775db1994-08-01 11:34:53 +0000137
138
139# Multimedia modules -- on by default.
Guido van Rossumf4449de1995-04-10 11:37:18 +0000140# These represent audio samples or images as strings:
Guido van Rossumfba715a1994-01-02 00:26:09 +0000141
Guido van Rossumf6971e21994-08-30 12:25:20 +0000142audioop audioop.c # Operations on audio samples
143imageop imageop.c # Operations on images
144rgbimg rgbimgmodule.c # Read SGI RGB image files (but coded portably)
Guido van Rossumfba715a1994-01-02 00:26:09 +0000145
146
147# The stdwin module provides a simple, portable (between X11 and Mac)
148# windowing interface. You need to ftp the STDWIN library, e.g. from
Guido van Rossumf4449de1995-04-10 11:37:18 +0000149# ftp://ftp.cwi.nl/pub/stdwin. (If you get it elsewhere, be sure to
150# get version 1.0 or higher!) The STDWIN variable must point to the
151# STDWIN toplevel directory.
Guido van Rossumfba715a1994-01-02 00:26:09 +0000152
Guido van Rossumf4449de1995-04-10 11:37:18 +0000153# Uncomment and edit as needed:
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000154#STDWIN=/ufs/guido/src/stdwin
Guido van Rossumf4449de1995-04-10 11:37:18 +0000155
156# Uncomment these lines:
157#STDWINPATH=:$(DESTLIB)/stdwin
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000158#LIBTEXTEDIT=$(STDWIN)/$(MACHDEP)/Packs/textedit/libtextedit.a
159#LIBX11STDWIN=$(STDWIN)/$(MACHDEP)/Ports/x11/libstdwin.a
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000160#stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBX11STDWIN) -lX11
161
Guido van Rossumf4449de1995-04-10 11:37:18 +0000162# Use this instead of the last two lines above for alphanumeric stdwin:
163#LIBALFASTDWIN=$(STDWIN)/$(MACHDEP)/Ports/alfa/libstdwin.a
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000164#stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBALFASTDWIN) -ltermcap
165
Guido van Rossumfba715a1994-01-02 00:26:09 +0000166
167# The md5 module implements the RSA Data Security, Inc. MD5
168# Message-Digest Algorithm, described in RFC 1321. The necessary files
169# md5c.c and md5.h are included here.
170
Guido van Rossumf6971e21994-08-30 12:25:20 +0000171md5 md5module.c md5c.c
Guido van Rossumfba715a1994-01-02 00:26:09 +0000172
173
174# The mpz module interfaces to the GNU Multiple Precision library.
Guido van Rossumb6775db1994-08-01 11:34:53 +0000175# You need to ftp the GNU MP library.
176# The GMP variable must point to the GMP source directory.
177# This was originally written and tested against GMP 1.2. I have
178# compiled it against GMP 1.3.2 (the latest I believe) and it seems to
179# work OK, but I haven't tested it thoroughly (lacking knowledge about
180# it).
Guido van Rossumfba715a1994-01-02 00:26:09 +0000181
Guido van Rossumc3706071994-10-06 16:12:06 +0000182# A compatible MP library unencombered by the GPL also exists. It was
183# posted to comp.sources.misc in volume 40 and is widely available from
184# FTP archive sites. One URL for it is:
185# ftp://gatekeeper.dec.com/.b/usenet/comp.sources.misc/volume40/fgmp/part01.Z
186
Guido van Rossumfba715a1994-01-02 00:26:09 +0000187#GMP=/ufs/guido/src/gmp
Guido van Rossumf6971e21994-08-30 12:25:20 +0000188#mpz mpzmodule.c -I$(GMP) $(GMP)/libgmp.a
Guido van Rossumfba715a1994-01-02 00:26:09 +0000189
190
191# SGI IRIX specific modules -- off by default.
Guido van Rossum05bf2801994-10-20 22:01:38 +0000192
Guido van Rossumf4449de1995-04-10 11:37:18 +0000193# These module work on any SGI machine:
Guido van Rossumfba715a1994-01-02 00:26:09 +0000194
Guido van Rossumcaffcdf1995-03-10 15:14:13 +0000195# *** gl must be enabled higher up in this file ***
Guido van Rossum05bf2801994-10-20 22:01:38 +0000196#fm fmmodule.c -lfm -lgl # Font Manager
Guido van Rossum05bf2801994-10-20 22:01:38 +0000197#sgi sgimodule.c # sgi.nap() and a few more
198
199# This module requires the header file
Guido van Rossumf4449de1995-04-10 11:37:18 +0000200# /usr/people/4Dgifts/iristools/include/izoom.h:
Guido van Rossum05bf2801994-10-20 22:01:38 +0000201
Guido van Rossum02530b01996-07-31 22:43:38 +0000202#imgfile imgfile.c -limage -lgutil # Image Processing Utilities
Guido van Rossum05bf2801994-10-20 22:01:38 +0000203
204
Guido van Rossumf4449de1995-04-10 11:37:18 +0000205# These modules require the Multimedia Development Option (I think):
Guido van Rossum05bf2801994-10-20 22:01:38 +0000206
207#al almodule.c -laudio # Audio Library
208#cd cdmodule.c -lcdaudio -lds -lmediad # CD Audio Library
209#cl clmodule.c -lcl -lawareaudio # Compression Library
210#sv svmodule.c yuvconvert.c -lsvideo -lXext -lX11 # Starter Video
211
Guido van Rossumfba715a1994-01-02 00:26:09 +0000212
213# The FORMS library, by Mark Overmars, implements user interface
214# components such as dialogs and buttons using SGI's GL and FM
215# libraries. You must ftp the FORMS library separately from
216# ftp://ftp.cs.ruu.nl/pub/SGI/FORMS. It was tested with FORMS 2.2a.
217# The FORMS variable must point to the FORMS subdirectory of the forms
Guido van Rossumf4449de1995-04-10 11:37:18 +0000218# toplevel directory:
Guido van Rossumfba715a1994-01-02 00:26:09 +0000219
220#FORMS=/ufs/guido/src/forms/FORMS
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000221#fl flmodule.c -I$(FORMS) $(FORMS)/libforms.a -lfm -lgl
Guido van Rossumfba715a1994-01-02 00:26:09 +0000222
223
Guido van Rossumf4449de1995-04-10 11:37:18 +0000224# SunOS specific modules -- off by default:
Guido van Rossumfba715a1994-01-02 00:26:09 +0000225
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000226#sunaudiodev sunaudiodev.c
Guido van Rossumfba715a1994-01-02 00:26:09 +0000227
228
Guido van Rossumf4449de1995-04-10 11:37:18 +0000229# George Neville-Neil's timing module:
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000230
231#timing timingmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000232
233
Guido van Rossum82df03e1996-08-08 19:08:47 +0000234# The _tkinter module.
Guido van Rossumd4837da1995-02-14 09:43:25 +0000235#
Guido van Rossumae75f491995-07-18 18:18:11 +0000236# See the section "The Tk interface" in ../README for more info.
Guido van Rossum82df03e1996-08-08 19:08:47 +0000237#
238# Enable the TKPATH line and choose the most applicable _tkinter line.
239# You may have to change /usr/local to wherever Tcl/Tk are installed.
240# Change the -l arguments to use Tcl 7.4 and Tk 4.0!
Guido van Rossume4485b01994-09-07 14:32:49 +0000241
Guido van Rossum82df03e1996-08-08 19:08:47 +0000242# *** ALWAYS enable this line:
Guido van Rossume4485b01994-09-07 14:32:49 +0000243#TKPATH=:$(DESTLIB)/tkinter
244
Guido van Rossum82df03e1996-08-08 19:08:47 +0000245# *** Enable *one* of the following lines:
246# For Solaris:
247#_tkinter _tkinter.c -I/usr/openwin/include -I/usr/local/include -L/usr/openwin/lib -L/usr/local/lib -ltk4.1 -ltcl7.5 -lX11
248# For generic system (may have to add -I/-L options to find X11):
249#_tkinter _tkinter.c -I/usr/local/include -L/usr/local/lib -ltk4.1 -ltcl7.5 -lX11
250
Guido van Rossume4485b01994-09-07 14:32:49 +0000251
Guido van Rossumf4449de1995-04-10 11:37:18 +0000252# Lance Ellinghaus's modules:
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000253
Guido van Rossume4485b01994-09-07 14:32:49 +0000254rotor rotormodule.c # enigma-inspired encryption
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000255#syslog syslogmodule.c # syslog daemon interface
Guido van Rossumf8afdcf1995-07-26 17:31:41 +0000256
257
258# Lance's curses module. This requires the System V version of
259# curses, sometimes known as ncurses (e.g. on Linux, link with
Guido van Rossum37ba0bc1995-08-04 04:20:45 +0000260# -lncurses instead of -lcurses; on SunOS 4.1.3, insert -I/usr/5include
261# -L/usr/5lib before -lcurses).
Guido van Rossumf8afdcf1995-07-26 17:31:41 +0000262
263#curses cursesmodule.c -lcurses -ltermcap
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000264
Guido van Rossumb6775db1994-08-01 11:34:53 +0000265
266
Guido van Rossumf4449de1995-04-10 11:37:18 +0000267# Tommy Burnette's 'new' module (creates new empty objects of certain kinds):
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000268
269#new newmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000270
271
Guido van Rossumf4449de1995-04-10 11:37:18 +0000272# John Redford's sybase module (requires sybase):
Guido van Rossumae75f491995-07-18 18:18:11 +0000273# (Unfortunately this code is orphaned. Read the source for documentation.)
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000274
275#sybase sybasemodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000276
277
Guido van Rossuma3c04b01995-01-12 11:29:01 +0000278# Generic (SunOS / SVR4) dynamic loading module.
279# This is not needed for dynamic loading of Python modules --
280# it is a highly experimental and dangerous device for calling
Guido van Rossumf4449de1995-04-10 11:37:18 +0000281# *arbitrary* C functions in *arbitrary* shared libraries:
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000282
283#dl dlmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000284
285
Guido van Rossum4b4c6641994-08-08 08:06:37 +0000286# Anthony Baxter's gdbm module (derived from Jack's dbm module)
Guido van Rossumf4449de1995-04-10 11:37:18 +0000287# GNU dbm(3) will require -lgdbm:
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000288
289#gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
Guido van Rossumfba715a1994-01-02 00:26:09 +0000290
Guido van Rossum4b4c6641994-08-08 08:06:37 +0000291
Guido van Rossumd639b451995-08-28 02:59:06 +0000292# Berkeley DB interface.
Guido van Rossumae75f491995-07-18 18:18:11 +0000293#
294# This requires the Berkeley DB code, see
295# ftp://ftp.cs.berkeley.edu/pub/4bsd/db.1.85.tar.gz
296#
297# Edit the variables DB and DBPORT to point to the db top directory
298# and the subdirectory of PORT where you built it.
299
Guido van Rossum9687a9211996-07-24 00:42:42 +0000300#DB=/depot/sundry/src/berkeley-db/db.1.85
301#DBPORT=$(DB)/PORT/irix.5.3
302#bsddb bsddbmodule.o -I$(DBPORT)/include $(DBPORT)/libdb.a
Guido van Rossumae75f491995-07-18 18:18:11 +0000303
304
305
Guido van Rossum31affb21995-06-14 22:31:38 +0000306# Andy Bensky's "environment" module (contains putenv())
307#environment environment.c
308
309# David Wayne Williams' soundex module
310#soundex soundex.c
311
Guido van Rossum37ba0bc1995-08-04 04:20:45 +0000312# Objective-C (incomplete!!!)
313#objc.c
314
Jack Jansen72781191995-08-07 14:34:15 +0000315# Helper module for various ascii-encoders
Guido van Rossumb50667d1995-10-12 00:41:40 +0000316binascii binascii.c
317
318# Fred Drake's interface to the Python parser.
319# (Not enabled by default because it is big and doesn't compile with
320# cc on SunOS 4.1.3)
321#parser parsermodule.c
Jack Jansen72781191995-08-07 14:34:15 +0000322
Guido van Rossum31affb21995-06-14 22:31:38 +0000323
Guido van Rossumf4449de1995-04-10 11:37:18 +0000324# Example -- included for reference only:
Guido van Rossumf6971e21994-08-30 12:25:20 +0000325# xx xxmodule.c