summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorGeorgi Kodinov <joro@sun.com>2009-07-10 16:04:40 +0300
committerGeorgi Kodinov <joro@sun.com>2009-07-10 16:04:40 +0300
commit2b4ec29274ea00935c852c903ba41df2bc74a76c (patch)
treefec347d7505d2a6db59bb4792b51d1b87c2b59cb /BUILD
parent3e642d155eedb0321b8b51fae976a5053fad3b82 (diff)
parent55f514ad0505182cb3a7f3f955a16baadb2493ba (diff)
downloadmariadb-git-2b4ec29274ea00935c852c903ba41df2bc74a76c.tar.gz
merged 5.0-bugteam->5.1-bugteam
Diffstat (limited to 'BUILD')
-rwxr-xr-xBUILD/check-cpu9
1 files changed, 7 insertions, 2 deletions
diff --git a/BUILD/check-cpu b/BUILD/check-cpu
index 33bf857b845..9fa48adfb5f 100755
--- a/BUILD/check-cpu
+++ b/BUILD/check-cpu
@@ -47,8 +47,13 @@ check_cpu () {
model_name=`sysctl -n hw.model`
;;
Darwin)
- cpu_family=`uname -p`
- model_name=`machine`
+ cpu_family=`sysctl -n machdep.cpu.vendor`
+ model_name=`sysctl -n machdep.cpu.brand_string`
+ if [ -z "$cpu_family" -o -z "$model_name" ]
+ then
+ cpu_family=`uname -p`
+ model_name=`machine`
+ fi
;;
*)
cpu_family=`uname -m`;