summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorunknown <antony@ltantony.mysql.com>2005-05-08 01:51:26 +0100
committerunknown <antony@ltantony.mysql.com>2005-05-08 01:51:26 +0100
commitbee950bd8360b867c3f191dc0548a85695190625 (patch)
tree6ce8f1f45e4385e076591cdac63ced75c0eee138 /BUILD
parent8222d259aa02bb19e03f9cfa3b0914b1176c27f6 (diff)
parent9a8e31a426e2f937bfcd744d9b9b02d464383549 (diff)
downloadmariadb-git-bee950bd8360b867c3f191dc0548a85695190625.tar.gz
Merge acurtis@bk-internal.mysql.com:/home/bk/mysql-4.1
into ltantony.mysql.com:/usr/home/antony/work2/fixbuild-4.1 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