2 6.1*) shellflags="-m+65536" ;;
6 # If we used fastmd (the default) integer values would be limited to 46 bits.
8 '') optimize="$optimize -O1 -h nofastmd" ;;
11 # At least in the following environment
12 # uname -a: snxxxx xxxx 9.0.2.2 sin.0 CRAY Y-MP
13 # cc -V: Cray Standard C Version 4.0.3 (057126) Jan 29 2006 07:27:26
14 # one has to drop optimisation from perl.c or otherwise
15 # the resulting miniperl executable does nothing (visible)
16 # but always exits with zero (success) exit status, this
17 # making it impossible to build the perl executable. --jhi
18 perl_cflags='optimize="-O0"'
20 # The default is to die in runtime on math overflows.
21 # Let's not do that. --jhi
22 ccflags="$ccflags -h matherror=errno"
24 # Cray floating point (cfp) CPUs need -h rounddiv
25 # (It gives int((2/3)*3) a chance to be 2, not 1. --jhi)
26 # (but IEEE CPUs, IEEE/ieee/CPE1 CPUs should not have -h rounddiv,
27 # since the compiler on those CPUs doesn't even support the option.)
28 if /etc/cpu -i | grep -q cfp
30 ccflags="$ccflags -h rounddiv"
33 # Avoid an optimizer bug where a volatile variables
34 # isn't correctly saved and restored --Mark P. Lutz
35 pp_ctl_cflags='ccflags="$ccflags -h scalar0 -h vector0"'
36 # Otherwise the unpack %65c checksums will fail.
37 pp_pack_cflags='optimize="$ccflags -h scalar0 -h vector0"'
38 case "$usemymalloc" in
39 '') # The perl malloc.c SHOULD work says Ilya.
40 # But for the time being (5.004_68), alas, it doesn't. --jhi
42 # ccflags="$ccflags -DNO_RCHECK"
46 # Configure gets fooled for some reason, these do not exist.
49 # These exist but do not really work.
52 # No shared libraries.
57 # Threads call-back unit.
58 cat > UU/usethreads.cbu <<'EOCBU'
59 # This script UU/usethreads.cbu will get 'called-back' by Configure
60 # after it has prompted the user for whether to use threads.
63 set `echo X "$libswanted "| sed -e "s/ c / pthread c /"`