blob: 44ad2b2229ed45295dde4f26088e0368fa9b9cca [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
5# Setup to your heart's content. One possibility is to overwrite it
6# with a copy of Setup.sgi or Setup.sunos[45] before you start editing.
7# Note that Makefile.pre is created from Makefile.pre.in by the toplevel
8# configure script.
9
10# (VPATH notes: Setup and Makefile.pre are in the build directory, as
11# are Makefile and config.c; Setup.in and config.c.in are in the source
12# directory.)
13
Guido van Rossumfba715a1994-01-02 00:26:09 +000014# Each line in this file describes one or more optional modules.
15# Comment out lines to suppress modules.
16# Lines have the following structure:
17#
Guido van Rossumf6971e21994-08-30 12:25:20 +000018# <module> ... [<sourcefile> ...] [<cpparg> ...] [<library> ...]
Guido van Rossumfba715a1994-01-02 00:26:09 +000019#
Guido van Rossumf6971e21994-08-30 12:25:20 +000020# <sourcefile> is anything ending in .c (.C, .cc, .c++ are C++ files)
Guido van Rossumfba715a1994-01-02 00:26:09 +000021# <cpparg> is anything starting with -I, -D, -U or -C
22# <library> is anything ending in .a or beginning with -l or -L
23# <module> is anything else but should be a valid Python
24# identifier (letters, digits, underscores, beginning with non-digit)
25#
26# Lines can also have the form
27#
28# <name> = <value>
29#
30# which defines a Make variable definition inserted into Makefile.in
Guido van Rossum7cc5abd1994-09-12 10:42:20 +000031#
32# Finally, if a line has the literal form
33#
34# *noconfig*
35#
36# (that is including the '*' and '*' !) then the following modules will
37# not be 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 added
39# to the linker options, but rules to create their .o files and their
40# shared libraries will still be added to the Makefile
Guido van Rossumb6775db1994-08-01 11:34:53 +000041
Guido van Rossumfba715a1994-01-02 00:26:09 +000042# NOTE: As a standard policy, as many modules as can be supported by a
43# platform should be present. The distribution comes with all modules
44# enabled that are supported by most platforms and don't require you
45# to ftp sources from elsewhere. To make this easier for SGI
46# platforms, you can copy Setup.sgi to Setup (or edit Makefile.in.in
47# to use Setup.sgi instead of Setup).
48
49
Guido van Rossumb6775db1994-08-01 11:34:53 +000050# Some special rules to define PYTHONPATH.
51# Edit the definitions below to indicate which options you are using.
52# Don't add any whitespace or comments!
53
54# Don't edit this (usually)
55DESTLIB=$(prefix)/lib/python
56
57# Standard enabled (tests are always available)
58TESTPATH=:$(DESTLIB)/test
59
Guido van Rossum7cc5abd1994-09-12 10:42:20 +000060# Path for machine- or system-dependent modules (and shared libraries)
61MACHDEPPATH=:$(DESTLIB)/$(MACHDEP)
Guido van Rossumb6775db1994-08-01 11:34:53 +000062
Guido van Rossumf5e0ea81994-09-12 15:35:36 +000063COREPYTHONPATH=.:$(DESTLIB)$(TESTPATH)$(MACHDEPPATH)$(STDWINPATH)$(TKPATH)
64PYTHONPATH=$(COREPYTHONPATH)
Guido van Rossumb6775db1994-08-01 11:34:53 +000065
66
Guido van Rossum05bf2801994-10-20 22:01:38 +000067# If you want to build most modules as shared libraries, here are
68# a couple of lines to enable. The modules listed here can't be
69# built as shared libraries for various reasons.
70# IF YOU ENABLE THEM HERE, DISABLE THEM LATER IN THE Setup FILE!
71
72#posix posixmodule.c # posix (UNIX) system calls
73#signal signalmodule.c # signal(2)
74#gl glmodule.c -lgl -lX11 # Graphics Library -- SGI only
75#thread threadmodule.c # threads -- see below
76
77# Uncommenting the following line tells makesetup that all following
78# modules are to be built as shared libraries (see above for more detail).
79
80#*noconfig*
81
82
Guido van Rossumfba715a1994-01-02 00:26:09 +000083# Modules that should always be present (non UNIX dependent)
Guido van Rossumbe9f1491994-09-21 12:31:05 +000084# NB when using shared libraries, don't make posix a shared library!
Guido van Rossumfba715a1994-01-02 00:26:09 +000085
Guido van Rossumf6971e21994-08-30 12:25:20 +000086array arraymodule.c # array objects
Guido van Rossumf5e0ea81994-09-12 15:35:36 +000087math mathmodule.c -lm # math library functions, e.g. sin()
Guido van Rossumf6971e21994-08-30 12:25:20 +000088parser parsermodule.c # raw interface to the Python parser
89posix posixmodule.c # posix (UNIX) system calls
90regex regexmodule.c regexpr.c # Regular expressions, GNU Emacs style
91strop stropmodule.c # fast string operations implemented in C
92struct structmodule.c # binary structure packing/unpacking
93time timemodule.c # time operations and variables
Guido van Rossumfba715a1994-01-02 00:26:09 +000094
95
96# Modules with some UNIX dependencies -- on by default.
Guido van Rossumb6775db1994-08-01 11:34:53 +000097# (If you have a really backward UNIX, select and socket may not be
98# supported...)
Guido van Rossum05bf2801994-10-20 22:01:38 +000099# NB when using shared libraries, don't make signal a shared library!
Guido van Rossumfba715a1994-01-02 00:26:09 +0000100
Guido van Rossumf6971e21994-08-30 12:25:20 +0000101fcntl fcntlmodule.c # fcntl(2) and ioctl(2)
102pwd pwdmodule.c # pwd(3)
103grp grpmodule.c # grp(3)
104crypt cryptmodule.c # crypt(3)
105select selectmodule.c # select(2); not on ancient System V
106socket socketmodule.c # socket(2); not on ancient System V
107signal signalmodule.c # signal(2)
Guido van Rossumfba715a1994-01-02 00:26:09 +0000108
109
Guido van Rossumb6775db1994-08-01 11:34:53 +0000110# Some more UNIX dependent modules -- off by default, since these
111# are not supported by all UNIX systems.
112
Guido van Rossumf6971e21994-08-30 12:25:20 +0000113#dbm dbmmodule.c # dbm(3) may require -lndbm or similar
114#nis nismodule.c # Sun yellow pages -- not everywhere
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000115#termios termios.c # Steen Lumholt's termios module
Guido van Rossumb6775db1994-08-01 11:34:53 +0000116
117
118# Multimedia modules -- on by default.
Guido van Rossumfba715a1994-01-02 00:26:09 +0000119# These represent audio samples or images as strings
120
Guido van Rossumf6971e21994-08-30 12:25:20 +0000121audioop audioop.c # Operations on audio samples
122imageop imageop.c # Operations on images
123rgbimg rgbimgmodule.c # Read SGI RGB image files (but coded portably)
Guido van Rossumfba715a1994-01-02 00:26:09 +0000124
125
126# The stdwin module provides a simple, portable (between X11 and Mac)
127# windowing interface. You need to ftp the STDWIN library, e.g. from
128# ftp://ftp.cwi.nl/pub/stdwin. The STDWIN variable must point to the
129# STDWIN toplevel directory. The ARCH variable must be set to the
130# architecture identifier used to build STDWIN. NB if you combine this
Guido van Rossume4485b01994-09-07 14:32:49 +0000131# with the gl module on an SGI IRIX 4 machine, you should replace
Sjoerd Mullenderbf677ed1994-09-15 14:50:05 +0000132# "-lX11" with "-lX11_s".
Guido van Rossumfba715a1994-01-02 00:26:09 +0000133
134#STDWIN=/ufs/guido/src/stdwin
Guido van Rossumb6775db1994-08-01 11:34:53 +0000135#ARCH=???
Guido van Rossumf6971e21994-08-30 12:25:20 +0000136#stdwin stdwinmodule.c -I$(STDWIN)/H $(STDWIN)/Build/$(ARCH)/x11/lib/lib.a -lX11
Guido van Rossume4485b01994-09-07 14:32:49 +0000137#STDWINPATH=:$(DESTLIB)/stdwin
Guido van Rossumfba715a1994-01-02 00:26:09 +0000138
Guido van Rossumc3706071994-10-06 16:12:06 +0000139# For STDWIN 0.9.9 or higher, it's a bit different:
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000140
141#STDWIN=/ufs/guido/src/stdwin
142#LIBTEXTEDIT=$(STDWIN)/$(MACHDEP)/Packs/textedit/libtextedit.a
143#LIBX11STDWIN=$(STDWIN)/$(MACHDEP)/Ports/x11/libstdwin.a
144#LIBALFASTDWIN=$(STDWIN)/$(MACHDEP)/Ports/alfa/libstdwin.a
145#stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBX11STDWIN) -lX11
146
147# Or use the following for the alphanumeric version:
148
149#stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBALFASTDWIN) -ltermcap
150
Guido van Rossumfba715a1994-01-02 00:26:09 +0000151
152# The md5 module implements the RSA Data Security, Inc. MD5
153# Message-Digest Algorithm, described in RFC 1321. The necessary files
154# md5c.c and md5.h are included here.
155
Guido van Rossumf6971e21994-08-30 12:25:20 +0000156md5 md5module.c md5c.c
Guido van Rossumfba715a1994-01-02 00:26:09 +0000157
158
159# The mpz module interfaces to the GNU Multiple Precision library.
Guido van Rossumb6775db1994-08-01 11:34:53 +0000160# You need to ftp the GNU MP library.
161# The GMP variable must point to the GMP source directory.
162# This was originally written and tested against GMP 1.2. I have
163# compiled it against GMP 1.3.2 (the latest I believe) and it seems to
164# work OK, but I haven't tested it thoroughly (lacking knowledge about
165# it).
Guido van Rossumfba715a1994-01-02 00:26:09 +0000166
Guido van Rossumc3706071994-10-06 16:12:06 +0000167# A compatible MP library unencombered by the GPL also exists. It was
168# posted to comp.sources.misc in volume 40 and is widely available from
169# FTP archive sites. One URL for it is:
170# ftp://gatekeeper.dec.com/.b/usenet/comp.sources.misc/volume40/fgmp/part01.Z
171
Guido van Rossumfba715a1994-01-02 00:26:09 +0000172#GMP=/ufs/guido/src/gmp
Guido van Rossumf6971e21994-08-30 12:25:20 +0000173#mpz mpzmodule.c -I$(GMP) $(GMP)/libgmp.a
Guido van Rossumfba715a1994-01-02 00:26:09 +0000174
175
176# SGI IRIX specific modules -- off by default.
Guido van Rossum05bf2801994-10-20 22:01:38 +0000177
178# These module work on any SGI machine.
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000179# NB when using shared libraries, don't make gl a shared library!
Guido van Rossumfba715a1994-01-02 00:26:09 +0000180
Guido van Rossum05bf2801994-10-20 22:01:38 +0000181#fm fmmodule.c -lfm -lgl # Font Manager
182#gl glmodule.c -lgl -lX11 # Graphics Library
183#sgi sgimodule.c # sgi.nap() and a few more
184
185# This module requires the header file
186# /usr/people/4Dgifts/iristools/include/izoom.h
187
188#imgfile imgfile.c -limage -lgutil -lm # Image Processing Utilities
189
190
191# These modules require the Multimedia Development Option (I think).
192# Note that -lmediad and -lawareaudio are only present on IRIX 5 and
193# should be taken out for IRIX 4.
194
195#al almodule.c -laudio # Audio Library
196#cd cdmodule.c -lcdaudio -lds -lmediad # CD Audio Library
197#cl clmodule.c -lcl -lawareaudio # Compression Library
198#sv svmodule.c yuvconvert.c -lsvideo -lXext -lX11 # Starter Video
199
Guido van Rossumfba715a1994-01-02 00:26:09 +0000200
201# The FORMS library, by Mark Overmars, implements user interface
202# components such as dialogs and buttons using SGI's GL and FM
203# libraries. You must ftp the FORMS library separately from
204# ftp://ftp.cs.ruu.nl/pub/SGI/FORMS. It was tested with FORMS 2.2a.
205# The FORMS variable must point to the FORMS subdirectory of the forms
206# toplevel directory.
207
208#FORMS=/ufs/guido/src/forms/FORMS
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000209#fl flmodule.c -I$(FORMS) $(FORMS)/libforms.a -lfm -lgl
Guido van Rossumfba715a1994-01-02 00:26:09 +0000210
211
212# SunOS specific modules -- off by default
213
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000214#sunaudiodev sunaudiodev.c
Guido van Rossumfba715a1994-01-02 00:26:09 +0000215
216
217# Thread module -- works on SGI IRIX and on SunOS 5.x (SOLARIS) only.
218# Note that you must have configured (and built!) Python with the
219# --with-thread option passed to the configure script for this to work.
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000220# NB when using shared libraries, don't make thread a shared library!
Guido van Rossumfba715a1994-01-02 00:26:09 +0000221
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000222#thread threadmodule.c
Guido van Rossumfba715a1994-01-02 00:26:09 +0000223
224
Guido van Rossumb6775db1994-08-01 11:34:53 +0000225# GNN's timing module
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000226
227#timing timingmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000228
229
Guido van Rossum524b5881995-01-04 19:10:35 +0000230# Steen Lumholt's tkinter module.
231#
232# For use with plain Tk, use the first line.
233#
234# For use with extended Tk (i.e. if you have added extra widgets to
235# the Tk library, such as the common "studButton" and "triButton"
236# extensions), edit tkappinit.c, add appropriate -DWITH_... and
237# libraries/objects to the second line, and use that.
238#
239# In all cases also enable the last line (TKPATH).
Guido van Rossume4485b01994-09-07 14:32:49 +0000240
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000241# *** Use ONE of the following two lines, see previous comments ***
Guido van Rossume4485b01994-09-07 14:32:49 +0000242#tkinter tkintermodule.c -I/usr/local/include -L/usr/local/lib -ltk -ltcl -lX11
243#tkinter tkintermodule.c tkappinit.c -DWITH_APPINIT -I/usr/local/include -L/usr/local/lib -ltk -ltcl -lX11
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000244
Guido van Rossum524b5881995-01-04 19:10:35 +0000245# *** ALWAYS use this line as well ***
Guido van Rossume4485b01994-09-07 14:32:49 +0000246#TKPATH=:$(DESTLIB)/tkinter
247
248
Guido van Rossumf6971e21994-08-30 12:25:20 +0000249# Lance Ellinghouse's modules
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000250
Guido van Rossume4485b01994-09-07 14:32:49 +0000251rotor rotormodule.c # enigma-inspired encryption
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000252#syslog syslogmodule.c # syslog daemon interface
253#curses cursesmodule.c -lcurses -ltermcap # guess what?
254
Guido van Rossumb6775db1994-08-01 11:34:53 +0000255
256
257# Tommy Burnette's 'new' module (creates new empty objects of certain kinds)
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000258
259#new newmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000260
261
262# John Redford's sybase module
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000263
264#sybase sybasemodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000265
266
Guido van Rossuma3c04b01995-01-12 11:29:01 +0000267# Generic (SunOS / SVR4) dynamic loading module.
268# This is not needed for dynamic loading of Python modules --
269# it is a highly experimental and dangerous device for calling
270# *arbitrary* C functions in *arbitrary* shared libraries.
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000271
272#dl dlmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000273
274
Guido van Rossum4b4c6641994-08-08 08:06:37 +0000275# Anthony Baxter's gdbm module (derived from Jack's dbm module)
276# GNU dbm(3) will require -lgdbm
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000277
278#gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
Guido van Rossumfba715a1994-01-02 00:26:09 +0000279
Guido van Rossum4b4c6641994-08-08 08:06:37 +0000280
281# Example -- included for reference only
Guido van Rossumf6971e21994-08-30 12:25:20 +0000282# xx xxmodule.c