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