From: Richard Levitte Date: Thu, 16 Nov 2000 18:59:02 +0000 (+0000) Subject: /proc/cpuinfo can have several lines containing the word "type". We want the one... X-Git-Tag: OpenSSL_0_9_6a-beta1~107^2~178 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=d5695a26a60ea8de12c28a148739e1b00bee0c78;ds=sidebyside /proc/cpuinfo can have several lines containing the word "type". We want the one that is "type", plain and simple. Caught by Raoul Borenius --- 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" ;;