Upgrade DB_File to 1.56:
[p5sagit/p5-mst-13.2.git] / hints / machten.sh
CommitLineData
fec02dd3 1# machten.sh
a55e790a 2# This is for MachTen 4.0.3. It might work on other versions and variants too.
db90f03e 3#
a55e790a 4# Users of earlier MachTen versions might need a fixed tr from ftp.tenon.com.
5# This should be described in the MachTen release notes.
db90f03e 6#
7# MachTen 2.x has its own hint file.
8#
9# This file has been put together by Andy Dougherty
10# <doughera@lafcol.lafayette.edu> based on comments from lots of
11# folks, especially
12# Mark Pease <peasem@primenet.com>
13# Martijn Koster <m.koster@webcrawler.com>
14# Richard Yeh <rcyeh@cco.caltech.edu>
baf67fda 15#
a55e790a 16# Raise perl's stack size -- Dominic Dunlop <domo@tcp.ip.lu> 970922
44a8e56a 17# Reinstate sigsetjmp iff version is 4.0.3 or greater; use nm
18# (assumes Configure change); prune libswanted -- Dominic Dunlop 970113
19# Warn about test failure due to old Berkeley db -- Dominic Dunlop 970105
55497cff 20# Do not use perl's malloc; SysV IPC OK -- Neil Cutcliffe, Tenon 961030
21# File::Find's use of link count disabled by Dominic Dunlop 960528
22# Perl's use of sigsetjmp etc. disabled by Dominic Dunlop 960521
db90f03e 23#
fec02dd3 24# Comments, questions, and improvements welcome!
25#
db90f03e 26# MachTen 4.X does support dynamic loading, but perl doesn't
27# know how to use it yet.
55497cff 28
29# Power MachTen is a real memory system and its standard malloc
30# has been optimized for this. Using this malloc instead of Perl's
31# malloc may result in significant memory savings.
32usemymalloc='false'
c07a80fd 33
44a8e56a 34# Make symbol table listings les voluminous
35nmopts=-gp
c07a80fd 36
a55e790a 37# Increase perl's stack size. Without this, lib/complex.t crashes out.
38# Particularly perverse programs may require that perl has an even larger
39# stack allocation than that specified here. (See man setstackspace )
40ldflags='-Xlstack=0x014000'
41
55497cff 42# Install in /usr/local by default
43prefix='/usr/local'
44
db90f03e 45# At least on PowerMac, doubles must be aligned on 8 byte boundaries.
46# I don't know if this is true for all MachTen systems, or how to
47# determine this automatically.
48alignbytes=8
baf67fda 49
44a8e56a 50# 4.0.2 and earlier had a problem with perl's use of sigsetjmp and
baf67fda 51# friends. Use setjmp and friends instead.
44a8e56a 52expr "$osvers" \< "4.0.3" > /dev/null && d_sigsetjmp='undef'
53
54# Get rid of some extra libs which it takes Configure a tediously
55# long time never to find on MachTen
56set `echo X "$libswanted "|sed -e 's/ net / /' -e 's/ socket / /' \
57 -e 's/ inet / /' -e 's/ nsl / /' -e 's/ nm / /' -e 's/ malloc / /' \
58 -e 's/ ld / /' -e 's/ sun / /' -e 's/ posix / /' \
59 -e 's/ cposix / /' -e 's/ crypt / /' \
60 -e 's/ ucb / /' -e 's/ bsd / /' -e 's/ BSD / /' -e 's/ PW / /'`
61shift
62libswanted="$*"
baf67fda 63
64# MachTen always reports ony two links to directories, even if they
65# contain subdirectories. Consequently, we use this variable to stop
66# File::Find using the link count to determine whether there are
67# subdirectories to be searched. This will generate a harmless message:
68# Hmm...You had some extra variables I don't know about...I'll try to keep 'em.
69# Propagating recommended variable dont_use_nlink
70dont_use_nlink=define
71
72cat <<'EOM' >&4
73
74Tests
75 io/fs test 4 and
76 op/stat test 3
77may fail since MachTen does not return a useful nlinks field to stat
78on directories.
79
80At the end of Configure, you will see a harmless message
81
82Hmm...You had some extra variables I don't know about...I'll try to keep 'em.
83 Propagating recommended variable dont_use_nlink
44a8e56a 84 Propagating recommended variable nmopts
85Read the File::Find documentation for more information about dont_use_nlink
baf67fda 86
87EOM
44a8e56a 88test -r ./broken-db.msg && . ./broken-db.msg