Fix triplet

This commit is contained in:
pancake 2014-03-05 22:22:38 +01:00
parent c8b18c5597
commit c7772d91fa
1 changed files with 6 additions and 3 deletions

9
configure vendored
View File

@ -37,10 +37,13 @@ while : ; do
ENVWORDS="${ENVWORDS} $1_CPU $1_OS"
STR=`eval "echo ${S}$1"`
SPLIT_CPU="`echo "$STR" | cut -d - -f 1`"
#SPLIT_OS="`echo "$STR" | awk -F - '{print $(NF-1)}'`"
SPLIT_OS="`echo "$STR" | awk -F - '{
if($1="unknown"){ if (NF<3) { print $2; } else { print $3; }
} else { print $(NF-1); }
if ($2=="unknown"){
if (NF<3) { print $2; } else { print $3; }
} else {
if ($2=="linux") { print $2; } else
if (NF<3) { print $2; } else { print $3; }
}
}'`"
eval "$1_CPU=\"$SPLIT_CPU\""
eval "$1_OS=\"$SPLIT_OS\""