This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Do not use the Perl malloc in IRIX, suggested by
[perl5.git] / hints / irix_6.sh
index ce301df..6f4ca17 100644 (file)
@@ -48,7 +48,13 @@ case "$cc" in
     *) test -f /usr/lib32/libm.so && cc='cc -n32' ;;
     esac       
 esac
-test -z "$cc" && cc=cc
+
+cc=${cc:-cc}
+
+case "$cc" in
+*gcc*) ;;
+*) ccversion=`cc -version` ;;
+esac
 
 case "$use64bitint" in
 $define|true|[yY]*)
@@ -111,7 +117,7 @@ esac'
        libc='/usr/lib32/libc.so'
        plibpth='/usr/lib32 /lib32 /usr/ccs/lib'
        ;;
-*"cc -64")
+*"cc -64"*)
 
        loclibpth="$loclibpth /usr/lib64"
        libscheck='case "`/usr/bin/file $xxx`" in
@@ -156,7 +162,7 @@ esac
 
 # Settings common to both native compiler modes.
 case "$cc" in
-*"cc -n32"|*"cc -64")
+*"cc -n32"*|*"cc -64"*)
        ld=$cc
 
        # perl's malloc can return improperly aligned buffer
@@ -328,3 +334,15 @@ EOCBU
 
 # The -n32 makes off_t to be 8 bytes, so we should have largefileness.
 
+# Until we figure out what to be probe for in Configure (ditto for hpux.sh)
+case "$usemorebits" in # Need to expand this now, then.
+$define|true|[yY]*) use64bitint="$define"; uselongdouble="$define" ;;
+esac
+case "$use64bitint" in
+$define|true|[yY]*) ;;
+*) d_casti32='undef' ;;
+esac
+
+# Helmut Jarausch reports that Perl's malloc is rather unusable
+# with IRIX, and SGI confirms the problem.
+usemymalloc=${usemymalloc:-false}