More MachTen hints
[p5sagit/p5-mst-13.2.git] / hints / machten_2.sh
1 # machten.sh
2 # This file has been put together by Mark Pease <peasem@primenet.com>
3 # Comments, questions, and improvements welcome!
4 #
5 # MachTen does not support dynamic loading. If you wish to, you
6 # can fetch, compile, and install the dld package.
7 # This ought to work with the ext/DynaLoader/dl_dld.xs in the 
8 # perl5 package. Have fun!
9 # Some possible locations for dld:
10 # ftp-swiss.ai.mit.edu:pub/scm/dld-3.2.7.tar.gz
11 # prep.ai.mit.edu:/pub/gnu/jacal/dld-3.2.7.tar.gz
12 # ftp.cs.indiana.edu:/pub/scheme-repository/imp/SCM-support/dld-3.2.7.tar.gz
13 # tsx-11.mit.edu:/pub/linux/sources/libs/dld-3.2.7.tar.gz
14 #
15 #  Original version was for MachTen 2.1.1.
16 #  Last modified by Andy Dougherty   <doughera@lafcol.lafayette.edu>
17 #  Tue Aug 13 12:31:01 EDT 1996
18 #
19 #  Warning about tests which no longer fail
20 #    fixed by Tom Phoenix <rootbeer@teleport.com>
21 #  March 5, 1997
22 #
23 #  Locale, optimization, and malloc changes by Tom Phoenix Mar 15, 1997
24
25 # There seem to be some hard-to-diagnose problems under MachTen's
26 # malloc, so we'll use Perl's. If you have problems which Perl's
27 # malloc's diagnostics can't help you with, you may wish to use
28 # MachTen's malloc after all.
29 case "$usemymalloc" in
30 '') usemymalloc='y' ;;
31 esac
32
33 # I (Tom Phoenix) don't know how to test for locales on MachTen. (If
34 # you do, please fix this hints file!) But since mine didn't come
35 # with locales working out of the box, I'll assume that's the case
36 # for most folks.
37 case "$d_setlocale" in
38 '') d_setlocale=undef
39 esac
40
41 # MachTen doesn't have secure setid scripts
42 d_suidsafe='undef'
43 d_dosuid='define'
44
45 case "$optimize" in
46 '') optimize='-O2' ;;
47 esac
48
49 so='none'
50 # These are useful only if you have DLD, but harmless otherwise.
51 # Make sure gcc doesn't use -fpic.
52 cccdlflags=' '  # That's an empty space.
53 lddlflags='-r'
54 dlext='o'
55
56 # MachTen does not support POSIX enough to compile the POSIX module.
57 useposix=false
58
59 #MachTen might have an incomplete Berkeley DB implementation.
60 i_db=$undef
61
62 #MachTen versions 2.X have no hard links.  This variable is used
63 # by File::Find.
64 # 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 # Without this, tests io/fs #4 and op/stat #3 will fail.
68 dont_use_nlink=define
69
70 cat <<'EOM' >&4
71
72 During Configure, you may get two "WHOA THERE" messages, for $d_setlocale
73 and $i_db being 'undef'. You may keep the undef value.
74
75 At the end of Configure, you will see a harmless message
76
77 Hmm...You had some extra variables I don't know about...I'll try to keep 'em.
78         Propagating recommended variable dont_use_nlink
79
80 Read the File::Find documentation for more information.
81
82 EOM