summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorunknown <antony@ltantony.mysql.com>2005-05-08 01:20:47 +0100
committerunknown <antony@ltantony.mysql.com>2005-05-08 01:20:47 +0100
commitff7676c39a798b6454fe58406fc5a9dc6d62ca3b (patch)
tree2655abade8eeba5ea33ecced844be53429ed684d /BUILD
parent2a5b1316431eb8d1ae083d7a169a5e8f7e0c6418 (diff)
parentcf664e752b0238b595c3ed85715a5121aad688ad (diff)
downloadmariadb-git-ff7676c39a798b6454fe58406fc5a9dc6d62ca3b.tar.gz
Merge ltantony.mysql.com:/usr/home/antony/work2/fixbuild-4.1
into ltantony.mysql.com:/usr/home/antony/work2/fixbuild-5.0 BitKeeper/etc/logging_ok: auto-union
Diffstat (limited to 'BUILD')
-rwxr-xr-xBUILD/check-cpu12
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