Commit | Line | Data |
c4f23d77 |
1 | case "$optimize" in |
2 | '') optimize="-O1" ;; |
3 | esac |
7a4c00b4 |
4 | d_setregid='undef' |
5 | d_setreuid='undef' |
c4f23d77 |
6 | case "$usemymalloc" in |
7 | '') usemymalloc='y' |
8 | ccflags="$ccflags -DNO_RCHECK" |
9 | ;; |
10 | esac |
c71a9cee |
11 | # If somebody ignores the Cray PATH. |
12 | case ":$PATH:" in |
13 | *:/opt/ctl/bin:*) ;; |
14 | '') case "$cc" in |
15 | '') test -x /opt/ctl/bin/cc && cc=/opt/ctl/bin/cc ;; |
16 | esac |
17 | ;; |
18 | esac |
2220a076 |
19 | # As of UNICOS/mk 2.0.5.24 the shm* are in libc but unimplemented |
20 | # (an attempt to use them causes a runtime error) |
21 | # XXX Configure probe for really functional shm*() is needed XXX |
22 | if test "$d_shm" = ""; then |
90f189fc |
23 | d_shmat=${d_shmat:-undef} |
24 | d_shmdt=${d_shmdt:-undef} |
25 | d_shmget=${d_shmget:-undef} |
26 | d_shmctl=${d_shmctl:-undef} |
27 | case "$d_shmat$d_shmctl$d_shmdt$d_shmget" in |
28 | *"undef"*) d_shm="$undef" ;; |
29 | esac |
2220a076 |
30 | fi |
a99318aa |
31 | # Otherwise the unpack %65c checksums will fail. |
23fb6509 |
32 | pp_pack_cflags='optimize="-h scalar0 -h vector0"' |
bc2e71b5 |
33 | # No shared libraries. |
34 | so='none' |
35 | # Threads call-back unit. |
acbe1256 |
36 | cat > UU/usethreads.cbu <<'EOCBU' |
37 | # This script UU/usethreads.cbu will get 'called-back' by Configure |
38 | # after it has prompted the user for whether to use threads. |
39 | case "$usethreads" in |
40 | $define|true|[yY]*) |
41 | set `echo X "$libswanted "| sed -e "s/ c / pthread c /"` |
42 | shift |
43 | libswanted="$*" |
44 | ;; |
45 | esac |
46 | EOCBU |