Add fallback to tmpfile for use in cases where user's relying on
[p5sagit/p5-mst-13.2.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 #
14 osname='mpeix'
15 osvers='5.5'  # Isn't there a way to determine this dynamically?
16 #
17 # Force Configure to use our wrapper mpeix/nm script
18 #
19 PATH="$PWD/mpeix:$PATH"
20 nm="$PWD/mpeix/nm"
21 _nm=$nm
22 nm_opt='-configperl'
23 usenm='true'
24 #
25 # Various directory locations.
26 #
27 # Which ones of these does Configure get wrong?
28 test -z "$prefix" && prefix='/PERL/PUB'
29 archname='PA-RISC1.1'
30 bin="$prefix"
31 installman1dir="$prefix/man/man1"
32 installman3dir="$prefix/man/man3"
33 man1dir="$prefix/man/man1"
34 man3dir="$prefix/man/man3"
35 perlpath="$prefix/PERL"
36 scriptdir="$prefix"
37 startperl="#!$prefix/perl"
38 startsh='#!/bin/sh'
39 #
40 # Compiling.
41 #
42 test -z "$cc" && cc='gcc'
43 cccdlflags='none'
44 ccflags="$ccflags -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -D_POSIX_JOB_CONTROL -DIS_SOCKET_CLIB_ITSELF"
45 locincpth="$locincpth /usr/local/include /usr/contrib/include /BIND/PUB/include"
46 test -z "$optimize" && optimize="-O2"
47 ranlib='/bin/true'
48 # Special compiling options for certain source files.
49 # But what if you want -g?
50 regcomp_cflags='optimize=-O'
51 toke_cflags='ccflags="$ccflags -DARG_ZERO_IS_SCRIPT"'
52 #
53 # Linking.
54 #
55 lddlflags='-b'
56 # What if you want additional libs (e.g. gdbm)?
57 # This should remove the unwanted libraries from $libswanted and
58 # add on whatever ones are needed instead.
59 libs="$libs -lbind -lsyslog -lcurses -lsvipc -lsocket -lm -lc"
60 loclibpth="$loclibpth /usr/local/lib /usr/contrib/lib /BIND/PUB/lib /SYSLOG/PUB"
61 #
62 # External functions and data items.
63 #
64 # Does Configure *really* get *all* of these wrong?
65 #
66 d_crypt='define'
67 d_difftime='define'
68 d_dlerror='undef'
69 d_dlopen='undef'
70 d_Gconvert='gcvt((x),(n),(b))'
71 d_inetaton='undef'
72 d_link='undef'
73 d_mblen='define'
74 d_mbstowcs='define'
75 d_mbtowc='define'
76 d_memcmp='define'
77 d_memcpy='define'
78 d_memmove='define'
79 d_memset='define'
80 d_pwage='undef'
81 d_pwcomment='undef'
82 d_pwgecos='undef'
83 d_pwpasswd='undef'
84 d_setpgid='undef'
85 d_setsid='undef'
86 d_setvbuf='define'
87 d_statblks='undef'
88 d_strchr='define'
89 d_strcoll='define'
90 d_strerrm='strerror(e)'
91 d_strerror='define'
92 d_strtod='define'
93 d_strtol='define'
94 d_strtoul='define'
95 d_strxfrm='define'
96 d_syserrlst='define'
97 d_time='define'
98 d_wcstombs='define'
99 d_wctomb='define'
100 #
101 # Include files.
102 #
103 i_termios='undef'
104 i_time='define'
105 i_systime='undef'
106 i_systimek='undef'
107 timeincl='/usr/include/time.h'
108 #
109 # Data types.
110 #
111 timetype='time_t'