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
CommitLineData
1d84e8df
JH
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.
f6e660f0 13# Revised for 5.6.0 by Mark Bixby, mbixby@power.net.
feb33499 14# Revised for 5.7.3 by Mark Bixby, mark@bixby.org.
1d84e8df 15#
1aef975c 16osname='mpeix'
f6e660f0 17osvers=`uname -r | sed -e 's/.[A-Z]\.\([0-9]\)\([0-9]\)\.[0-9][0-9]/\1.\2/'`
1d84e8df
JH
18#
19# Force Configure to use our wrapper mpeix/nm script
20#
21PATH="$PWD/mpeix:$PATH"
22nm="$PWD/mpeix/nm"
23_nm=$nm
24nm_opt='-configperl'
25usenm='true'
26#
b62e3068
JH
27# Work around the broken inline cat bug that corrupts here docs
28#
29alias -x cat=/bin/cat
30#
1d84e8df
JH
31# Various directory locations.
32#
c22e42be 33# Which ones of these does Configure get wrong?
feb33499 34test -z "$prefix" && prefix="/$HPACCOUNT/$HPGROUP"
1d84e8df
JH
35archname='PA-RISC1.1'
36bin="$prefix"
37installman1dir="$prefix/man/man1"
38installman3dir="$prefix/man/man3"
39man1dir="$prefix/man/man1"
40man3dir="$prefix/man/man3"
41perlpath="$prefix/PERL"
42scriptdir="$prefix"
203df805 43startperl="#!$prefix/perl"
1d84e8df
JH
44startsh='#!/bin/sh'
45#
46# Compiling.
47#
c22e42be 48test -z "$cc" && cc='gcc'
1d84e8df 49cccdlflags='none'
c22e42be 50ccflags="$ccflags -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -D_POSIX_JOB_CONTROL -DIS_SOCKET_CLIB_ITSELF"
b62e3068 51locincpth="$locincpth /usr/local/include /usr/contrib/include /BINDFW/CURRENT/include /SYSLOG/PUB"
c22e42be 52test -z "$optimize" && optimize="-O2"
1d84e8df
JH
53ranlib='/bin/true'
54# Special compiling options for certain source files.
c22e42be 55# But what if you want -g?
1d84e8df
JH
56regcomp_cflags='optimize=-O'
57toke_cflags='ccflags="$ccflags -DARG_ZERO_IS_SCRIPT"'
58#
59# Linking.
60#
61lddlflags='-b'
f6e660f0
JH
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.
65for 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="$*"
68done
69libswanted="$libswanted bind syslog curses svipc socket str m c"
b62e3068 70loclibpth="$loclibpth /usr/local/lib /usr/contrib/lib /BINDFW/CURRENT/lib /SYSLOG/PUB"
1d84e8df
JH
71#
72# External functions and data items.
73#
f6e660f0 74# Q: Does Configure *really* get *all* of these wrong?
c22e42be 75#
f6e660f0
JH
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.
1d84e8df 90d_crypt='define'
b62e3068 91d_dbmclose='undef'
1d84e8df
JH
92d_difftime='define'
93d_dlerror='undef'
94d_dlopen='undef'
95d_Gconvert='gcvt((x),(n),(b))'
b62e3068 96d_gettimeod='undef'
1d84e8df 97d_inetaton='undef'
1aef975c 98d_link='undef'
1d84e8df
JH
99d_mblen='define'
100d_mbstowcs='define'
101d_mbtowc='define'
611857da 102d_memchr='define'
1d84e8df
JH
103d_memcmp='define'
104d_memcpy='define'
105d_memmove='define'
106d_memset='define'
107d_pwage='undef'
1aef975c 108d_pwcomment='undef'
1d84e8df
JH
109d_pwgecos='undef'
110d_pwpasswd='undef'
b62e3068
JH
111d_setegid='undef'
112d_seteuid='undef'
113d_setitimer='undef'
1d84e8df
JH
114d_setpgid='undef'
115d_setsid='undef'
116d_setvbuf='define'
1aef975c 117d_statblks='undef'
1d84e8df
JH
118d_strchr='define'
119d_strcoll='define'
120d_strerrm='strerror(e)'
121d_strerror='define'
122d_strtod='define'
123d_strtol='define'
124d_strtoul='define'
125d_strxfrm='define'
126d_syserrlst='define'
127d_time='define'
128d_wcstombs='define'
129d_wctomb='define'
130#
131# Include files.
132#
b62e3068 133i_gdbm='undef' # the port is currently incomplete
f6e660f0 134i_termios='undef' # we have termios, but not the full set (just tcget/setattr)
1d84e8df
JH
135i_time='define'
136i_systime='undef'
137i_systimek='undef'
138timeincl='/usr/include/time.h'
139#
140# Data types.
141#
142timetype='time_t'
f6e660f0
JH
143#
144# Functionality.
145#
f6e660f0 146uselargefiles="$undef"
feb33499
JH
147#
148# Expected functionality provided in mpeix.c.
149#
150archobjs='mpeix.o'
151
152# Help gmake find mpeix.c
153test -h mpeix.c || ln -s mpeix/mpeix.c mpeix.c
154
155d_gettimeod='define'
156d_truncate='define'