In IRIX 5.3 the cc is awfully confused about the prototype
[p5sagit/p5-mst-13.2.git] / hints / irix_5.sh
1 # irix_5.sh
2 # Tue Jan  9 16:04:38 EST 1996
3 #  Add note about socket patch.
4 #
5 # Tue Jan  2 14:52:36 EST 1996
6 # Apparently, there's a stdio bug that can lead to memory
7 # corruption using perl's malloc, but not SGI's malloc.
8 usemymalloc='n'
9
10 ld=ld
11 i_time='define'
12
13 case "$cc" in
14 *gcc*) ccflags="$ccflags -D_BSD_TYPES" ;;
15 *) ccflags="$ccflags -D_POSIX_SOURCE -ansiposix -D_BSD_TYPES -Olimit 4000"
16 # Otherwise the cc thinks that a struct timeval * is not equivalent to
17 # a struct timeval *.  Yeah, you read that right.
18 pp_sys_cflags='ccflags="$ccflags -DPERL_IRIX5_SELECT_TIMEVAL_VOID_CAST"'
19    ;;
20 esac
21
22 lddlflags="-shared"
23 # For some reason we don't want -lsocket -lnsl or -ldl.  Can anyone
24 # contribute an explanation?
25 set `echo X "$libswanted "|sed -e 's/ socket / /' -e 's/ nsl / /' -e 's/ dl / /'`
26 shift
27 libswanted="$*"
28
29 # Date: Fri, 22 Dec 1995 11:49:17 -0800
30 # From: Matthew Black <black@csulb.edu>
31 # Subject: sockets broken under IRIX 5.3? YES...how to fix
32 # Anyone attempting to use perl4 or perl5 with SGI IRIX 5.3 may discover
33 # that sockets are essentially broken.  The syslog interface for perl also
34 # fails because it uses the broken socket interface.  This problem was
35 # reported to SGI as bug #255347 and it can be fixed by installing 
36 # patchSG0000596.  The patch can be downloaded from Advantage OnLine (SGI's
37 # WWW server) or from the Support Advantage 9/95 Patch CDROM.  Thanks to Tom 
38 # Christiansen and others who provided assistance.
39
40 case "$usethreads" in
41 $define|true|[yY]*)
42         cat >&4 <<EOM
43 IRIX `uname -r` does not support POSIX threads.
44 You should upgrade to at least IRIX 6.2 with pthread patches.
45 EOM
46         exit 1
47         ;;
48 esac
49
50 case " $use64bits $use64bitint $use64bitall " in
51 *" $define "*|*" true "*|*" [yY] "*)
52         cat >&4 <<EOM
53 IRIX `uname -r` does not support 64-bit types.
54 You should upgrade to at least IRIX 6.2.
55 Cannot continue, aborting.
56 EOM
57         exit 1
58 esac
59