blob: af7d2357d4951228b20c5aac2a35533af2857739 [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 Rossum7cc5abd1994-09-12 10:42:20 +000063PYTHONPATH=.:$(DESTLIB)$(TESTPATH)$(MACHDEPPATH)$(STDWINPATH)$(TKPATH)
Guido van Rossumb6775db1994-08-01 11:34:53 +000064
65
Guido van Rossumfba715a1994-01-02 00:26:09 +000066# Modules that should always be present (non UNIX dependent)
67
Guido van Rossumf6971e21994-08-30 12:25:20 +000068array arraymodule.c # array objects
69math mathmodule.c # math library functions, e.g. sin()
70parser parsermodule.c # raw interface to the Python parser
71posix posixmodule.c # posix (UNIX) system calls
72regex regexmodule.c regexpr.c # Regular expressions, GNU Emacs style
73strop stropmodule.c # fast string operations implemented in C
74struct structmodule.c # binary structure packing/unpacking
75time timemodule.c # time operations and variables
Guido van Rossumfba715a1994-01-02 00:26:09 +000076
77
78# Modules with some UNIX dependencies -- on by default.
Guido van Rossumb6775db1994-08-01 11:34:53 +000079# (If you have a really backward UNIX, select and socket may not be
80# supported...)
Guido van Rossumfba715a1994-01-02 00:26:09 +000081
Guido van Rossumf6971e21994-08-30 12:25:20 +000082fcntl fcntlmodule.c # fcntl(2) and ioctl(2)
83pwd pwdmodule.c # pwd(3)
84grp grpmodule.c # grp(3)
85crypt cryptmodule.c # crypt(3)
86select selectmodule.c # select(2); not on ancient System V
87socket socketmodule.c # socket(2); not on ancient System V
88signal signalmodule.c # signal(2)
Guido van Rossumfba715a1994-01-02 00:26:09 +000089
90
Guido van Rossumb6775db1994-08-01 11:34:53 +000091# Some more UNIX dependent modules -- off by default, since these
92# are not supported by all UNIX systems.
93
Guido van Rossumf6971e21994-08-30 12:25:20 +000094#dbm dbmmodule.c # dbm(3) may require -lndbm or similar
95#nis nismodule.c # Sun yellow pages -- not everywhere
Guido van Rossum7cc5abd1994-09-12 10:42:20 +000096#termios termios.c # Steen Lumholt's termios module
Guido van Rossumb6775db1994-08-01 11:34:53 +000097
98
99# Multimedia modules -- on by default.
Guido van Rossumfba715a1994-01-02 00:26:09 +0000100# These represent audio samples or images as strings
101
Guido van Rossumf6971e21994-08-30 12:25:20 +0000102audioop audioop.c # Operations on audio samples
103imageop imageop.c # Operations on images
104rgbimg rgbimgmodule.c # Read SGI RGB image files (but coded portably)
Guido van Rossumfba715a1994-01-02 00:26:09 +0000105
106
107# The stdwin module provides a simple, portable (between X11 and Mac)
108# windowing interface. You need to ftp the STDWIN library, e.g. from
109# ftp://ftp.cwi.nl/pub/stdwin. The STDWIN variable must point to the
110# STDWIN toplevel directory. The ARCH variable must be set to the
111# architecture identifier used to build STDWIN. NB if you combine this
Guido van Rossume4485b01994-09-07 14:32:49 +0000112# with the gl module on an SGI IRIX 4 machine, you should replace
113"-lX11" with "-lX11_s".
Guido van Rossumfba715a1994-01-02 00:26:09 +0000114
115#STDWIN=/ufs/guido/src/stdwin
Guido van Rossumb6775db1994-08-01 11:34:53 +0000116#ARCH=???
Guido van Rossumf6971e21994-08-30 12:25:20 +0000117#stdwin stdwinmodule.c -I$(STDWIN)/H $(STDWIN)/Build/$(ARCH)/x11/lib/lib.a -lX11
Guido van Rossume4485b01994-09-07 14:32:49 +0000118#STDWINPATH=:$(DESTLIB)/stdwin
Guido van Rossumfba715a1994-01-02 00:26:09 +0000119
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000120# For STDWIN 1.0 it's a bit different:
121
122#STDWIN=/ufs/guido/src/stdwin
123#LIBTEXTEDIT=$(STDWIN)/$(MACHDEP)/Packs/textedit/libtextedit.a
124#LIBX11STDWIN=$(STDWIN)/$(MACHDEP)/Ports/x11/libstdwin.a
125#LIBALFASTDWIN=$(STDWIN)/$(MACHDEP)/Ports/alfa/libstdwin.a
126#stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBX11STDWIN) -lX11
127
128# Or use the following for the alphanumeric version:
129
130#stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBALFASTDWIN) -ltermcap
131
Guido van Rossumfba715a1994-01-02 00:26:09 +0000132
133# The md5 module implements the RSA Data Security, Inc. MD5
134# Message-Digest Algorithm, described in RFC 1321. The necessary files
135# md5c.c and md5.h are included here.
136
Guido van Rossumf6971e21994-08-30 12:25:20 +0000137md5 md5module.c md5c.c
Guido van Rossumfba715a1994-01-02 00:26:09 +0000138
139
140# The mpz module interfaces to the GNU Multiple Precision library.
Guido van Rossumb6775db1994-08-01 11:34:53 +0000141# You need to ftp the GNU MP library.
142# The GMP variable must point to the GMP source directory.
143# This was originally written and tested against GMP 1.2. I have
144# compiled it against GMP 1.3.2 (the latest I believe) and it seems to
145# work OK, but I haven't tested it thoroughly (lacking knowledge about
146# it).
Guido van Rossumfba715a1994-01-02 00:26:09 +0000147
148#GMP=/ufs/guido/src/gmp
Guido van Rossumf6971e21994-08-30 12:25:20 +0000149#mpz mpzmodule.c -I$(GMP) $(GMP)/libgmp.a
Guido van Rossumfba715a1994-01-02 00:26:09 +0000150
151
152# SGI IRIX specific modules -- off by default.
153# Switch this on if you have an SGI machine.
154# Note that some required libraries and header files aren't always
155# installed; you may be better off switching on only 'fm' and 'gl'
156# (Font Manager and Graphics Library).
157
Guido van Rossumb6775db1994-08-01 11:34:53 +0000158# # ADD THESE FOR IRIX5:
Guido van Rossumf6971e21994-08-30 12:25:20 +0000159#al almodule.c -laudio
160#cd cdmodule.c -lcdaudio -lds # -lmediad
161#cl clmodule.c -lcl # -lawareaudio
162#fm fmmodule.c -lfm_s -lgl_s
163#gl glmodule.c -lgl_s -lX11_s
164#imgfile imgfile.c -limage -lgutil
165#sgi sgimodule.c
166#sv svmodule.c yuvconvert.c -lsvideo -lXext -lX11_s
Guido van Rossumfba715a1994-01-02 00:26:09 +0000167
168# The FORMS library, by Mark Overmars, implements user interface
169# components such as dialogs and buttons using SGI's GL and FM
170# libraries. You must ftp the FORMS library separately from
171# ftp://ftp.cs.ruu.nl/pub/SGI/FORMS. It was tested with FORMS 2.2a.
172# The FORMS variable must point to the FORMS subdirectory of the forms
173# toplevel directory.
174
175#FORMS=/ufs/guido/src/forms/FORMS
Guido van Rossumf6971e21994-08-30 12:25:20 +0000176#fl flmodule.c -I$(FORMS) $(FORMS)/libforms.a
Guido van Rossumfba715a1994-01-02 00:26:09 +0000177
178
179# SunOS specific modules -- off by default
180
Guido van Rossumf6971e21994-08-30 12:25:20 +0000181# sunaudiodev sunaudiodev.c
Guido van Rossumfba715a1994-01-02 00:26:09 +0000182
183
184# Thread module -- works on SGI IRIX and on SunOS 5.x (SOLARIS) only.
185# Note that you must have configured (and built!) Python with the
186# --with-thread option passed to the configure script for this to work.
187
Guido van Rossumf6971e21994-08-30 12:25:20 +0000188# thread threadmodule.c
Guido van Rossumfba715a1994-01-02 00:26:09 +0000189
190
Guido van Rossumb6775db1994-08-01 11:34:53 +0000191# GNN's timing module
Guido van Rossumf6971e21994-08-30 12:25:20 +0000192# timing timingmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000193
194
Guido van Rossume4485b01994-09-07 14:32:49 +0000195# Steen Lumholt's tkinter module. For use with plain Tk, use the
196# first line. For use with extended Tk, edit tkappinit.c, add
197# appropriate -DWITH_... and libraries/objects to the second line, and
198# use that. In all cases also enable the last line (TKPATH).
199
200#tkinter tkintermodule.c -I/usr/local/include -L/usr/local/lib -ltk -ltcl -lX11
201#tkinter tkintermodule.c tkappinit.c -DWITH_APPINIT -I/usr/local/include -L/usr/local/lib -ltk -ltcl -lX11
202#TKPATH=:$(DESTLIB)/tkinter
203
204
Guido van Rossumf6971e21994-08-30 12:25:20 +0000205# Lance Ellinghouse's modules
Guido van Rossume4485b01994-09-07 14:32:49 +0000206rotor rotormodule.c # enigma-inspired encryption
Guido van Rossumf6971e21994-08-30 12:25:20 +0000207# syslog syslogmodule.c # syslog daemon interface
208# curses cursesmodule.c -lcurses -ltermcap # guess what?
Guido van Rossumb6775db1994-08-01 11:34:53 +0000209
210
211# Tommy Burnette's 'new' module (creates new empty objects of certain kinds)
Guido van Rossumf6971e21994-08-30 12:25:20 +0000212# new newmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000213
214
215# John Redford's sybase module
Guido van Rossumf6971e21994-08-30 12:25:20 +0000216# sybase sybasemodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000217
218
219# Generic (SunOS / SVR4) dynamic loading module
Guido van Rossumf6971e21994-08-30 12:25:20 +0000220# dl dlmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000221
222
223# Jack Jansen's imgformat module
Guido van Rossumf6971e21994-08-30 12:25:20 +0000224# imgformat imgformat.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000225
226
Guido van Rossum4b4c6641994-08-08 08:06:37 +0000227# Anthony Baxter's gdbm module (derived from Jack's dbm module)
228# GNU dbm(3) will require -lgdbm
Guido van Rossumf6971e21994-08-30 12:25:20 +0000229# gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
Guido van Rossumfba715a1994-01-02 00:26:09 +0000230
Guido van Rossum4b4c6641994-08-08 08:06:37 +0000231
232# Example -- included for reference only
Guido van Rossumf6971e21994-08-30 12:25:20 +0000233# xx xxmodule.c