*) 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]*)
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
# 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
# workaround for an optimizer bug
case "`$cc -version 2>&1`" in
-*7.2.*|*7.3.1.*) op_cflags='optimize=-O1' ;;
+*7.2.*) op_cflags='optimize=-O1'; opmini_cflags='optimize=-O1' ;;
+*7.3.1.*) op_cflags='optimize=-O2'; opmini_cflags='optimize=-O2' ;;
esac
# We don't want these libraries.
# 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}