| 1 | # machten.sh |
| 2 | # This is for MachTen 4.0.3. It might work on other versions too. |
| 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> |
| 15 | # |
| 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 |
| 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 |
| 22 | # |
| 23 | # Comments, questions, and improvements welcome! |
| 24 | # |
| 25 | # MachTen 4.X does support dynamic loading, but perl doesn't |
| 26 | # know how to use it yet. |
| 27 | # |
| 28 | # Updated by Dominic Dunlop <domo@tcp.ip.lu> |
| 29 | # Tue Jan 14 10:17:18 WET 1997 |
| 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. |
| 34 | usemymalloc='false' |
| 35 | |
| 36 | # Make symbol table listings les voluminous |
| 37 | nmopts=-gp |
| 38 | |
| 39 | # Install in /usr/local by default |
| 40 | prefix='/usr/local' |
| 41 | |
| 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. |
| 45 | alignbytes=8 |
| 46 | |
| 47 | # 4.0.2 and earlier had a problem with perl's use of sigsetjmp and |
| 48 | # friends. Use setjmp and friends instead. |
| 49 | expr "$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 |
| 53 | set `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 / /'` |
| 58 | shift |
| 59 | libswanted="$*" |
| 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 |
| 67 | dont_use_nlink=define |
| 68 | |
| 69 | cat <<'EOM' >&4 |
| 70 | |
| 71 | Tests |
| 72 | io/fs test 4 and |
| 73 | op/stat test 3 |
| 74 | may fail since MachTen does not return a useful nlinks field to stat |
| 75 | on directories. |
| 76 | |
| 77 | At the end of Configure, you will see a harmless message |
| 78 | |
| 79 | Hmm...You had some extra variables I don't know about...I'll try to keep 'em. |
| 80 | Propagating recommended variable dont_use_nlink |
| 81 | Propagating recommended variable nmopts |
| 82 | Read the File::Find documentation for more information about dont_use_nlink |
| 83 | |
| 84 | EOM |
| 85 | test -r ./broken-db.msg && . ./broken-db.msg |