Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec95c7b

Browse files
committed
Changes for BeOS, QNX and long long, by Chris Herborth.
1 parent d8eb211 commit ec95c7b

5 files changed

Lines changed: 465 additions & 227 deletions

File tree

Makefile.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ INSTALL= @srcdir@/install-sh -c
134134
INSTALL_PROGRAM=${INSTALL} -m $(EXEMODE)
135135
INSTALL_DATA= ${INSTALL} -m $(FILEMODE)
136136

137+
# Use this to make a link between python$(VERSION) and python in $(BINDIR)
138+
LN=@LN@
139+
137140
# --with-PACKAGE options for configure script
138141
# e.g. --with-readline --with-svr5 --with-solaris --with-thread
139142
# (see README for an explanation)
@@ -237,7 +240,7 @@ bininstall: altbininstall
237240
then rm -f $(BINDIR)/python; \
238241
else true; \
239242
fi
240-
(cd $(BINDIR); ln python$(VERSION)$(EXE) python$(EXE))
243+
(cd $(BINDIR); $(LN) python$(VERSION)$(EXE) python$(EXE))
241244

242245
# Install the interpreter with $(VERSION) affixed
243246
# This goes into $(exec_prefix)

README

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -251,34 +251,52 @@ QNX: Chris Herborth ([email protected]) writes:
251251
ftp.qnx.com in /usr/free. I used the following process to build,
252252
test and install Python 1.5 under QNX:
253253

254-
1) SHELL=/usr/local/bin/bash CC=cc CFLAGS="-5 -O" RANLIB=: \
255-
bash ./configure --verbose --without-gcc --with-libm=""
254+
1) CONFIG_SHELL=/usr/local/bin/bash CC=cc RANLIB=: \
255+
./configure --verbose --without-gcc --with-libm=""
256256

257257
2) copy Modules/Setup.in to Modules/Setup; edit Modules/Setup to
258258
activate everything that makes sense for your system... tested
259259
here at QNX with the following modules:
260260

261-
regex reop pcre posix signal readline array cmath math strop
262-
struct time operator _locale fcntl pwd grp crypt select socket
263-
errno termios audioop imageop rgbimg md5 timing rotor syslog
264-
new gdbm soundex binascii parser cStringIO cPickle zlib curses
261+
array, audioop, binascii, cPickle, cStringIO, cmath, crypt, curses,
262+
errno, fcntl, gdbm, grp, imageop, _locale, math, md5, new, operator,
263+
parser, pcre, posix, pwd, readline, regex, reop, rgbimg, rotor,
264+
select, signal, socket, soundex, strop, struct, syslog, termios,
265+
time, timing, zlib
265266

266-
3) SHELL=/usr/local/bin/bash make SHELL=/usr/local/bin/bash
267+
Newly compiled/tested in 1.5.1:
267268

268-
4) SHELL=/usr/local/bin/bash make SHELL=/usr/local/bin/bash test
269+
audioop, imageop, rgbimgmodule
269270

270-
The socket, strftime and possibly gdbm tests might fail in the
271-
test harness; going through them by hand shows that they work.
272-
A good exercise for the reader: make these work "out of the box".
271+
3) make SHELL=/usr/local/bin/bash
272+
273+
or, if you feel the need for speed:
274+
275+
make SHELL=/usr/local/bin/bash OPT="-5 -Oil+nrt"
276+
277+
4) make SHELL=/usr/local/bin/bash test
278+
279+
The socket test might fail in the test harness; going through it by
280+
hand shows that they work.
273281

274-
5) SHELL=/usr/local/bin/bash make SHELL=/usr/local/bin/bash install
282+
A good exercise for the reader: make this work "out of the box".
283+
284+
Using GNU readline 2.2 seems to behave strangely, but I think that's
285+
a problem with my readline 2.2 port. :-\
286+
287+
5) make SHELL=/usr/local/bin/bash install
275288

276289
If you get SIGSEGVs while running Python (I haven't yet, but I've
277290
only run small programs and the test cases), you're probably running
278291
out of stack; the default 32k could be a little tight. To increase
279292
the stack size, edit the Makefile in the Modules directory to read:
280293
LDFLAGS = -N 48k
281294

295+
BeOS: Chris Herborth ([email protected]) writes:
296+
See BeOS/README for notes about compiling/installing Python on
297+
BeOS R3 or later. Note that only the PowerPC platform is supported
298+
at this time, but feel free to try building it on x86.
299+
282300
Cray T3E: Konrad Hinsen writes:
283301
1) Don't use gcc. It compiles Python/graminit.c into something that
284302
the Cray assembler doesn't like. Cray's cc seems to work fine.

config.h.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@
102102
/* Define if you have POSIX threads */
103103
#undef _POSIX_THREADS
104104

105+
/* Define if you have BeOS threads */
106+
#undef BEOS_THREADS
107+
105108
/* Define to force use of thread-safe errno, h_errno, and other functions */
106109
#undef _REENTRANT
107110

@@ -400,5 +403,11 @@
400403
/* Define if you have the ieee library (-lieee). */
401404
#undef HAVE_LIBIEEE
402405

406+
/* Define if your compiler supports long long. */
407+
#undef HAVE_LONG_LONG
408+
409+
/* The number of bytes in a long long. */
410+
#undef SIZEOF_LONG_LONG
411+
403412
/* Define if you have the m library (-lm). */
404413
#undef HAVE_LIBM

0 commit comments

Comments
 (0)