This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
check in all confperl changes as of change#1964 into cfgperl
[perl5.git] / hints / os390.sh
1 # hints/os390.sh
2 #
3 # OS/390 hints by David J. Fiander <davidf@mks.com>
4 #
5 # OS/390 OpenEdition Release 3 Mon Sep 22 1997 thanks to:
6 #     
7 #     John Pfuntner <pfuntner@vnet.ibm.com>
8 #     Len Johnson <lenjay@ibm.net>
9 #     Bud Huff  <BAHUFF@us.oracle.com>
10 #     Peter Prymmer <pvhp@forte.com>
11 #     Andy Dougherty  <doughera@lafcol.lafayette.edu>
12 #     Tim Bunce  <Tim.Bunce@ig.co.uk>
13 #
14 #  as well as the authors of the aix.sh file
15 #
16
17 # To get ANSI C, we need to use c89, and ld doesn't exist
18 cc='c89'
19 ld='c89'
20 # c89 hides most of the useful header stuff, _ALL_SOURCE turns it on again,
21 # YYDYNAMIC ensures that the OS/390 yacc generated parser is reentrant.
22 # -DEBCDIC should come from Configure.
23 ccflags='-DMAXSIG=38 -DOEMVS -D_OE_SOCKETS -D_XOPEN_SOURCE_EXTENDED -D_ALL_SOURCE -DYYDYNAMIC'
24 # Turning on optimization breaks perl
25 optimize='none'
26
27 alignbytes=8
28
29 usemymalloc='n'
30
31 so='a'
32
33 # On OS/390, libc.a doesn't really hold anything at all,
34 # so running nm on it is pretty useless.
35 usenm='n'
36
37 # Dynamic loading doesn't work on OS/390 quite yet
38 usedl='n'
39 dlext='none'
40
41 # Configure can't figure this out for some reason
42 d_shmatprototype='define'
43
44 usenm='false'
45 i_time='define'
46 i_systime='define'
47
48 # (from aix.sh)
49 # uname -m output is too specific and not appropriate here
50 # osname should come from Configure
51 #
52 case "$archname" in
53 '') archname="$osname" ;;
54 esac
55
56 archobjs=ebcdic.o
57
58 # We have our own cppstdin.
59 echo 'cat >.$$.c; '"$cc"' -E -Wc,NOLOC ${1+"$@"} .$$.c; rm .$$.c' > cppstdin