aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>1999-07-25 20:40:58 +0000
committerAndy Polyakov <appro@openssl.org>1999-07-25 20:40:58 +0000
commitda8fa72f990e50b7ca5b597cb78134ce63269ca7 (patch)
tree82f5003d45544195aa9741d0f1104c7dea52fc43 /config
parent6841fb0d1e3c52d35e6d3c75482be044a0a8a5c0 (diff)
downloadopenssl-da8fa72f990e50b7ca5b597cb78134ce63269ca7.tar.gz
SGI IRIX config updates.
Diffstat (limited to 'config')
-rwxr-xr-xconfig43
1 files changed, 38 insertions, 5 deletions
diff --git a/config b/config
index 6f36435d48..582a8b038c 100755
--- a/config
+++ b/config
@@ -94,12 +94,16 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
esac
;;
- IRIX:*)
- echo "${MACHINE}-sgi-irix"; exit 0
+ IRIX:5.*)
+ echo "mips2-sgi-irix"; exit 0
+ ;;
+
+ IRIX:6.*)
+ echo "mips3-sgi-irix"; exit 0
;;
IRIX64:*)
- echo "${MACHINE}-sgi-irix64"; exit 0
+ echo "mips4-sgi-irix64"; exit 0
;;
Linux:[2-9].*)
@@ -298,7 +302,7 @@ if [ "$GCCVER" != "" ]; then
# then strip off whatever prefix Cygnus prepends the number with...
GCCVER=`echo $GCCVER | sed 's/^[a-z]*\-//'`
# peak only digits before and after first dot, e.g. 2.95.1 gives 29
- GCCVER=`echo $GCCVER | sed '/\([0-9]\)\.\([0-9]\).*/\1\2/'`
+ GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'`
else
CC=cc
if [ "$SYSTEM" = "SunOS" ]
@@ -311,6 +315,9 @@ else
fi
fi
+GCCVER=${GCCVER:-0}
+CCVER=${CCVER:-0}
+
# read the output of the embedded GuessOS
read GUESSOS
@@ -323,6 +330,32 @@ case "$GUESSOS" in
alpha-*-linux2) OUT="alpha-gcc" ;;
ppc-*-linux2) OUT="linux-ppc" ;;
mips-*-linux?) OUT="linux-mips" ;;
+ mips2-sgi-irix)
+ CPU=`(hinv -t cpu) 2>/dev/null | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'`
+ CPU=${CPU:-0}
+ if [ $CPU -ge 4000 ]; then
+ options="$options -mips2"
+ fi
+ OUT="irix-$CC"
+ ;;
+ mips3-sgi-irix)
+ CPU=`(hinv -t cpu) 2>/dev/null | sed 's/^CPU:[^R]*R\([0-9]*\).*/\1/'`
+ CPU=${CPU:-0}
+ if [ $CPU -ge 5000 ]; then
+ options="$options -mips4"
+ else
+ options="$options -mips3"
+ fi
+ OUT="irix-mips3-$CC"
+ ;;
+ mips4-sgi-irix64)
+ echo "WARNING! If you wish to build 64-bit library, then you have to"
+ echo " invoke './Configre irix64-mips4-$CC' *manually*."
+ echo " Type Ctrl-C if you don't want to continue."
+ read waste < /dev/tty
+ options="$options -mips4"
+ OUT="irix-mips3-$CC"
+ ;;
sparc64-*-linux2)
#Before we uncomment following line we have to wait at least till
#64-bit glibc for SPARC is available:-(
@@ -331,7 +364,7 @@ case "$GUESSOS" in
#echo " Type Ctrl-C if you don't want to continue."
#read waste < /dev/tty
OUT="linux-sparcv9" ;;
- sparc-*-linux2) OUT="linux-sparc" ;;
+ sparc-*-linux2)
KARCH=`awk '/type/{print$3}' /proc/cpuinfo`
case ${KARCH:-sun4} in
sun4u*) OUT="linux-sparcv9" ;;