This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: t/op/tie.t #19 TODO ENOTWORKING
[perl5.git] / hints / unicos.sh
CommitLineData
68decaef
LW
1case `uname -r` in
26.1*) shellflags="-m+65536" ;;
3esac
c4f23d77 4case "$optimize" in
b84d4f81 5# If we used fastmd (the default) integer values would be limited to 46 bits.
214f2c7f 6# --Mark P. Lutz
a20e3af3 7'') optimize="$optimize -h nofastmd" ;;
8bda1795 8esac
f3ff050f 9# The default is to die in runtime on math overflows.
a20e3af3 10# Let's not do that. --jhi
45ff97fd 11ccflags="$ccflags -h matherror=errno"
f3ff050f 12# Give int((2/3)*3) a chance to be 2, not 1. --jhi
6d788a80
JH
13case "`uname -m`" in
14"CRAY TS") ;; # -h rounddiv not available here
15*) ccflags="$ccflags -h rounddiv" ;;
16esac
214f2c7f
JH
17# Avoid an optimizer bug where a volatile variables
18# isn't correctly saved and restored --Mark P. Lutz
19pp_ctl_cflags='ccflags="$ccflags -h scalar0 -h vector0"'
d8526ec6 20# Otherwise the unpack %65c checksums will fail.
23fb6509 21pp_pack_cflags='optimize="$ccflags -h scalar0 -h vector0"'
693762b4 22case "$usemymalloc" in
214f2c7f 23'') # The perl malloc.c SHOULD work says Ilya.
8bda1795 24 # But for the time being (5.004_68), alas, it doesn't. --jhi
5283c38d
JH
25 # usemymalloc='y'
26 # ccflags="$ccflags -DNO_RCHECK"
27 usemymalloc='n'
c4f23d77 28 ;;
693762b4 29esac
333b7451 30# Configure gets fooled for some reason, these do not exist.
e1f2cf02 31d_getpgid='undef'
333b7451 32d_setitimer='undef'
214f2c7f
JH
33# These exist but do not really work.
34d_setregid='undef'
35d_setreuid='undef'
bc2e71b5
JH
36# No shared libraries.
37so='none'
38# Threads call-back unit.
acbe1256
JH
39cat > UU/usethreads.cbu <<'EOCBU'
40# This script UU/usethreads.cbu will get 'called-back' by Configure
41# after it has prompted the user for whether to use threads.
42case "$usethreads" in
43$define|true|[yY]*)
44 set `echo X "$libswanted "| sed -e "s/ c / pthread c /"`
45 shift
46 libswanted="$*"
47 ;;
48esac
49EOCBU