X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fmachten.sh;h=2ae79f17e3735bf222b155263f610f149a5f8b14;hb=0c815be9f490bd7db5177b102e9ec25d74b97f4f;hp=f6f75d6616814c783aa875602b756a0c2b5ca712;hpb=55497cffdd24c959994f9a8ddd56db8ce85e1c5b;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/machten.sh b/hints/machten.sh index f6f75d6..2ae79f1 100644 --- a/hints/machten.sh +++ b/hints/machten.sh @@ -1,8 +1,8 @@ # machten.sh -# This is for MachTen 4.0.2. It might work on other versions too. +# This is for MachTen 4.0.3. It might work on other versions and variants too. # -# MachTen users might need a fixed tr from ftp.tenon.com. This should -# be described in the MachTen release notes. +# Users of earlier MachTen versions might need a fixed tr from ftp.tenon.com. +# This should be described in the MachTen release notes. # # MachTen 2.x has its own hint file. # @@ -13,6 +13,13 @@ # Martijn Koster # Richard Yeh # +# Use of semctl() can crash system: disable -- Dominic Dunlop 980506 +# Raise stack size further; slight tweaks to accomodate MT 4.1 +# -- Dominic Dunlop 980211 +# Raise perl's stack size -- Dominic Dunlop 970922 +# Reinstate sigsetjmp iff version is 4.0.3 or greater; use nm +# (assumes Configure change); prune libswanted -- Dominic Dunlop 970113 +# Warn about test failure due to old Berkeley db -- Dominic Dunlop 970105 # Do not use perl's malloc; SysV IPC OK -- Neil Cutcliffe, Tenon 961030 # File::Find's use of link count disabled by Dominic Dunlop 960528 # Perl's use of sigsetjmp etc. disabled by Dominic Dunlop 960521 @@ -21,18 +28,19 @@ # # MachTen 4.X does support dynamic loading, but perl doesn't # know how to use it yet. -# -# Updated by Dominic Dunlop -# Wed Nov 13 11:47:09 WET 1996 - # Power MachTen is a real memory system and its standard malloc # has been optimized for this. Using this malloc instead of Perl's # malloc may result in significant memory savings. usemymalloc='false' -# Configure doesn't know how to parse the nm output. -usenm=undef +# Make symbol table listings les voluminous +nmopts=-gp + +# Increase perl's stack size. Without this, lib/complex.t crashes out. +# Particularly perverse programs may require that perl has an even larger +# stack allocation than that specified here. (See man setstackspace ) +ldflags='-Xlstack=0x018000' # Install in /usr/local by default prefix='/usr/local' @@ -42,10 +50,25 @@ prefix='/usr/local' # determine this automatically. alignbytes=8 -# There appears to be a problem with perl's use of sigsetjmp and +# 4.0.2 and earlier had a problem with perl's use of sigsetjmp and # friends. Use setjmp and friends instead. -d_sigsetjmp='undef' +expr "$osvers" \< "4.0.3" > /dev/null && d_sigsetjmp='undef' + +# semctl(.., .., IPC_STATUS, ..) hangs system: say we don't have semctl() +d_semctl='undef' +# Get rid of some extra libs which it takes Configure a tediously +# long time never to find on MachTen +set `echo X "$libswanted "|sed -e 's/ net / /' -e 's/ socket / /' \ + -e 's/ inet / /' -e 's/ nsl / /' -e 's/ nm / /' -e 's/ malloc / /' \ + -e 's/ ld / /' -e 's/ sun / /' -e 's/ posix / /' \ + -e 's/ cposix / /' -e 's/ crypt / /' \ + -e 's/ ucb / /' -e 's/ bsd / /' -e 's/ BSD / /' -e 's/ PW / /'` +shift +libswanted="$*" + +# While link counts on MachTen 4.1's fast file systems work correctly, +# on Macintosh Heirarchical File Systems, (and on HFS+) # MachTen always reports ony two links to directories, even if they # contain subdirectories. Consequently, we use this variable to stop # File::Find using the link count to determine whether there are @@ -56,17 +79,28 @@ dont_use_nlink=define cat <<'EOM' >&4 -Tests - io/fs test 4 and - op/stat test 3 -may fail since MachTen does not return a useful nlinks field to stat -on directories. +During Configure, you may see the message + +*** WHOA THERE!!! *** + The recommended value for $d_semctl on this machine was "undef"! + Keep the recommended value? [y] + +Select the default answer: semctl() is buggy, and perl should be built +without it. At the end of Configure, you will see a harmless message Hmm...You had some extra variables I don't know about...I'll try to keep 'em. Propagating recommended variable dont_use_nlink + Propagating recommended variable nmopts +Read the File::Find documentation for more information about dont_use_nlink -Read the File::Find documentation for more information. +Tests + io/fs test 4 and + op/stat test 3 +may fail since MachTen may not return a useful nlinks field to stat +on directories. EOM +expr "$osvers" \< "4.1" >/dev/null && test -r ./broken-db.msg && \ + . ./broken-db.msg