summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-11-16 18:59:02 +0000
committerRichard Levitte <levitte@openssl.org>2000-11-16 18:59:02 +0000
commitd5695a26a60ea8de12c28a148739e1b00bee0c78 (patch)
treec26380dbf5088c4b9db505dbfe997403b4ece93f /config
parent8bfc8f934f8bf80cc9df25192a1d01720755dd3c (diff)
/proc/cpuinfo can have several lines containing the word "type". We want the one that is "type", plain and simple. Caught by Raoul Borenius <borenius@shuttle.de>
Diffstat (limited to 'config')
-rwxr-xr-xconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/config b/config
index 8e7e39afca..8eec5c1e11 100755
--- a/config
+++ b/config
@@ -442,7 +442,7 @@ EOF
#read waste < /dev/tty
OUT="linux-sparcv9" ;;
sparc-*-linux2)
- KARCH=`awk '/type/{print$3}' /proc/cpuinfo`
+ KARCH=`awk '/^type/{print$3}' /proc/cpuinfo`
case ${KARCH:-sun4} in
sun4u*) OUT="linux-sparcv9" ;;
sun4m) OUT="linux-sparcv8" ;;