diff options
author | unknown <antony@ltantony.mysql.com> | 2005-05-08 01:49:40 +0100 |
---|---|---|
committer | unknown <antony@ltantony.mysql.com> | 2005-05-08 01:49:40 +0100 |
commit | b7aa21df96958da319b936ad5b54008e6f25fd8b (patch) | |
tree | 2e0b2520e22cfba3c26a7be4bf2d52b866c36d35 /BUILD | |
parent | 303229750d5f717a3174f34ba056482951a8a0a2 (diff) | |
parent | fcf18772dde963cc564d21ef89824a82a9d60771 (diff) | |
download | mariadb-git-b7aa21df96958da319b936ad5b54008e6f25fd8b.tar.gz |
Merge ltantony.mysql.com:/usr/home/antony/work2/fixbuild-5.0
into ltantony.mysql.com:/usr/home/antony/work2/fixbuild-5.1
BitKeeper/etc/logging_ok:
auto-union
Diffstat (limited to 'BUILD')
-rwxr-xr-x | BUILD/check-cpu | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/BUILD/check-cpu b/BUILD/check-cpu index 553df39191f..ce106e5a603 100755 --- a/BUILD/check-cpu +++ b/BUILD/check-cpu @@ -19,6 +19,18 @@ if test -r /proc/cpuinfo ; then if test -z "$model_name" ; then model_name=`uname -m` fi +else + # Fallback when there is no /proc/cpuinfo + case "`uname -s`" in + FreeBSD) + cpu_family=`uname -m`; + model_name=`sysctl -b hw.model` + ;; + *) + cpu_family=`uname -m`; + model_name="unknown"; + ;; + esac fi case "$cpu_family--$model_name" in |