diff options
author | Andy Polyakov <appro@openssl.org> | 1999-07-25 20:40:58 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 1999-07-25 20:40:58 +0000 |
commit | da8fa72f990e50b7ca5b597cb78134ce63269ca7 (patch) | |
tree | 82f5003d45544195aa9741d0f1104c7dea52fc43 /config | |
parent | 6841fb0d1e3c52d35e6d3c75482be044a0a8a5c0 (diff) | |
download | openssl-da8fa72f990e50b7ca5b597cb78134ce63269ca7.tar.gz |
SGI IRIX config updates.
Diffstat (limited to 'config')
-rwxr-xr-x | config | 43 |
1 files changed, 38 insertions, 5 deletions
@@ -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" ;; |