This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: local($tied->{foo}) leaks
[perl5.git] / hints / mpeix.sh
1 # The MPE/iX linker doesn't complain about unresolved symbols, and so the only
2 # way to test for unresolved symbols in a program is by attempting to run it.
3 # But this is slow, and fraught with problems, so the better solution is to use
4 # nm.
5 #
6 # MPE/iX lacks a fully functional native nm, so we need to use our fake nm
7 # script which will extract the symbol info from the native link editor and
8 # reformat into something nm-like.
9 #
10 # Created for 5.003 by Mark Klein, mklein@dis.com.
11 # Substantially revised for 5.004_01 by Mark Bixby, markb@cccd.edu.
12 # Revised again for 5.004_69 by Mark Bixby, markb@cccd.edu.
13 # Revised for 5.6.0 by Mark Bixby, mbixby@power.net.
14 # Revised for 5.7.3 by Mark Bixby, mark@bixby.org.
15 #
16 osname='mpeix'
17 osvers=`uname -r | sed -e 's/.[A-Z]\.\([0-9]\)\([0-9]\)\.[0-9][0-9]/\1.\2/'`
18 #
19 # Force Configure to use our wrapper mpeix/nm script
20 #
21 PATH="$PWD/mpeix:$PATH"
22 nm="$PWD/mpeix/nm"
23 _nm=$nm
24 nm_opt='-configperl'
25 usenm='true'
26 #
27 # Work around the broken inline cat bug that corrupts here docs
28 #
29 alias -x cat=/bin/cat
30 #
31 # Various directory locations.
32 #
33 # Which ones of these does Configure get wrong?
34 test -z "$prefix" && prefix="/$HPACCOUNT/$HPGROUP"
35 archname='PA-RISC1.1'
36 bin="$prefix"
37 installman1dir="$prefix/man/man1"
38 installman3dir="$prefix/man/man3"
39 man1dir="$prefix/man/man1"
40 man3dir="$prefix/man/man3"
41 perlpath="$prefix/PERL"
42 scriptdir="$prefix"
43 startperl="#!$prefix/perl"
44 startsh='#!/bin/sh'
45 #
46 # Compiling.
47 #
48 test -z "$cc" && cc='gcc'
49 cccdlflags='none'
50 ccflags="$ccflags -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -D_POSIX_JOB_CONTROL -DIS_SOCKET_CLIB_ITSELF"
51 locincpth="$locincpth /usr/local/include /usr/contrib/include /BINDFW/CURRENT/include /SYSLOG/PUB"
52 test -z "$optimize" && optimize="-O2"
53 ranlib='/bin/true'
54 # Special compiling options for certain source files.
55 # But what if you want -g?
56 regcomp_cflags='optimize=-O'
57 toke_cflags='ccflags="$ccflags -DARG_ZERO_IS_SCRIPT"'
58 #
59 # Linking.
60 #
61 lddlflags='-b'
62 # Delete bsd and BSD from the library list.  Remove other randomly ordered
63 # libraries and then re-add them in their proper order (the MPE linker is
64 # order-sensitive).  Add additional MPE-specific libraries.
65 for mpe_remove in bind bsd BSD c curses m socket str svipc syslog; do
66   set `echo " $libswanted " | sed -e 's/ /  /g' -e "s/ $mpe_remove //"`
67   libswanted="$*"
68 done
69 libswanted="$libswanted bind syslog curses svipc socket str m c"
70 loclibpth="$loclibpth /usr/local/lib /usr/contrib/lib /BINDFW/CURRENT/lib /SYSLOG/PUB"
71 #
72 # External functions and data items.
73 #
74 # Q: Does Configure *really* get *all* of these wrong?
75 #
76 # A: Yes.  There are two MPE problems here.  The 'undef' functions exist on MPE,
77 # but are merely dummy routines that return ENOTIMPL or ESYSERR.  Since they're
78 # useless, let's just tell Perl to avoid them.  Also, a few data items are
79 # 'undef' because while they may exist in structures, they are uninitialized.
80 #
81 # The 'define' cases are a bit weirder.  MPE has a libc.a, libc.sl, and two
82 # special kernel shared libraries, /SYS/PUB/XL and /SYS/PUB/NL.  Much of what
83 # is in libc.a is duplicated within XL and NL, so when we created libc.sl, we
84 # omitted the duplicated functions.  Since Configure end ups scanning libc.sl,
85 # we need to 'define' the functions that had been removed.
86 #
87 # We don't want to scan XL or NL because we would find way too many POSIX or
88 # Unix named functions that are really vanilla MPE functions that do something
89 # completely different than on POSIX or Unix.
90 d_crypt='define'
91 d_dbmclose='undef'
92 d_difftime='define'
93 d_dlerror='undef'
94 d_dlopen='undef'
95 d_Gconvert='gcvt((x),(n),(b))'
96 d_gettimeod='undef'
97 d_inetaton='undef'
98 d_link='undef'
99 d_mblen='define'
100 d_mbstowcs='define'
101 d_mbtowc='define'
102 d_memchr='define'
103 d_memcmp='define'
104 d_memcpy='define'
105 d_memmove='define'
106 d_memset='define'
107 d_pwage='undef'
108 d_pwcomment='undef'
109 d_pwgecos='undef'
110 d_pwpasswd='undef'
111 d_setegid='undef'
112 d_seteuid='undef'
113 d_setitimer='undef'
114 d_setpgid='undef'
115 d_setsid='undef'
116 d_setvbuf='define'
117 d_statblks='undef'
118 d_strchr='define'
119 d_strcoll='define'
120 d_strerrm='strerror(e)'
121 d_strerror='define'
122 d_strtod='define'
123 d_strtol='define'
124 d_strtoul='define'
125 d_strxfrm='define'
126 d_syserrlst='define'
127 d_time='define'
128 d_wcstombs='define'
129 d_wctomb='define'
130 #
131 # Include files.
132 #
133 i_gdbm='undef' # the port is currently incomplete
134 i_termios='undef' # we have termios, but not the full set (just tcget/setattr)
135 i_time='define'
136 i_systime='undef'
137 i_systimek='undef'
138 timeincl='/usr/include/time.h'
139 #
140 # Data types.
141 #
142 timetype='time_t'
143 #
144 # Functionality.
145 #
146 uselargefiles="$undef"
147 #
148 # Expected functionality provided in mpeix.c.
149 #
150 archobjs='mpeix.o'
151
152 # Help gmake find mpeix.c
153 test -h mpeix.c || ln -s mpeix/mpeix.c mpeix.c
154
155 d_gettimeod='define'
156 d_truncate='define'