This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
5.004 removed deprecated %OVERLOAD support silently
[perl5.git] / hints / machten.sh
CommitLineData
fec02dd3 1# machten.sh
44a8e56a 2# This is for MachTen 4.0.3. It might work on other versions too.
db90f03e 3#
4# MachTen users might need a fixed tr from ftp.tenon.com. This should
5# be described in the MachTen release notes.
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#
44a8e56a 16# Reinstate sigsetjmp iff version is 4.0.3 or greater; use nm
17# (assumes Configure change); prune libswanted -- Dominic Dunlop 970113
18# Warn about test failure due to old Berkeley db -- Dominic Dunlop 970105
55497cff 19# Do not use perl's malloc; SysV IPC OK -- Neil Cutcliffe, Tenon 961030
20# File::Find's use of link count disabled by Dominic Dunlop 960528
21# Perl's use of sigsetjmp etc. disabled by Dominic Dunlop 960521
db90f03e 22#
fec02dd3
AD
23# Comments, questions, and improvements welcome!
24#
db90f03e 25# MachTen 4.X does support dynamic loading, but perl doesn't
26# know how to use it yet.
fec02dd3 27#
baf67fda 28# Updated by Dominic Dunlop <domo@tcp.ip.lu>
44a8e56a 29# Tue Jan 14 10:17:18 WET 1997
55497cff 30
31# Power MachTen is a real memory system and its standard malloc
32# has been optimized for this. Using this malloc instead of Perl's
33# malloc may result in significant memory savings.
34usemymalloc='false'
c07a80fd 35
44a8e56a 36# Make symbol table listings les voluminous
37nmopts=-gp
c07a80fd 38
55497cff 39# Install in /usr/local by default
40prefix='/usr/local'
41
db90f03e 42# At least on PowerMac, doubles must be aligned on 8 byte boundaries.
43# I don't know if this is true for all MachTen systems, or how to
44# determine this automatically.
45alignbytes=8
baf67fda 46
44a8e56a 47# 4.0.2 and earlier had a problem with perl's use of sigsetjmp and
baf67fda 48# friends. Use setjmp and friends instead.
44a8e56a 49expr "$osvers" \< "4.0.3" > /dev/null && d_sigsetjmp='undef'
50
51# Get rid of some extra libs which it takes Configure a tediously
52# long time never to find on MachTen
53set `echo X "$libswanted "|sed -e 's/ net / /' -e 's/ socket / /' \
54 -e 's/ inet / /' -e 's/ nsl / /' -e 's/ nm / /' -e 's/ malloc / /' \
55 -e 's/ ld / /' -e 's/ sun / /' -e 's/ posix / /' \
56 -e 's/ cposix / /' -e 's/ crypt / /' \
57 -e 's/ ucb / /' -e 's/ bsd / /' -e 's/ BSD / /' -e 's/ PW / /'`
58shift
59libswanted="$*"
baf67fda 60
61# MachTen always reports ony two links to directories, even if they
62# contain subdirectories. Consequently, we use this variable to stop
63# File::Find using the link count to determine whether there are
64# subdirectories to be searched. This will generate a harmless message:
65# Hmm...You had some extra variables I don't know about...I'll try to keep 'em.
66# Propagating recommended variable dont_use_nlink
67dont_use_nlink=define
68
69cat <<'EOM' >&4
70
71Tests
72 io/fs test 4 and
73 op/stat test 3
74may fail since MachTen does not return a useful nlinks field to stat
75on directories.
76
77At the end of Configure, you will see a harmless message
78
79Hmm...You had some extra variables I don't know about...I'll try to keep 'em.
80 Propagating recommended variable dont_use_nlink
44a8e56a 81 Propagating recommended variable nmopts
82Read the File::Find documentation for more information about dont_use_nlink
baf67fda 83
84EOM
44a8e56a 85test -r ./broken-db.msg && . ./broken-db.msg