summaryrefslogtreecommitdiff
path: root/BUILD/check-cpu
diff options
context:
space:
mode:
authorevgen@moonbone.local <>2006-08-29 18:58:50 +0400
committerevgen@moonbone.local <>2006-08-29 18:58:50 +0400
commit8cf97817173c080ec9399b306a9f5dbae96e5124 (patch)
tree9d51093e989e3337f3ebf66b989e6da4245afb95 /BUILD/check-cpu
parent002af6b5ea6e49e059bdc6e877f73e61912f16ea (diff)
parent7a55f7fac4fbd465321b641a1a0dca088eb099ea (diff)
downloadmariadb-git-8cf97817173c080ec9399b306a9f5dbae96e5124.tar.gz
Merge moonbone.local:/work/tmp_merge-5.0-mysql
into moonbone.local:/work/tmp_merge-5.1-opt-mysql
Diffstat (limited to 'BUILD/check-cpu')
-rwxr-xr-xBUILD/check-cpu6
1 files changed, 5 insertions, 1 deletions
diff --git a/BUILD/check-cpu b/BUILD/check-cpu
index 583e31ee389..2543b540d2a 100755
--- a/BUILD/check-cpu
+++ b/BUILD/check-cpu
@@ -93,6 +93,10 @@ case "$cpu_family--$model_name" in
*Opteron*)
cpu_arg="opteron";
;;
+ # MacOSX / Intel
+ *i386*i486*)
+ cpu_arg="pentium-m";
+ ;;
# Intel ia64
*Itanium*)
@@ -131,7 +135,7 @@ else
fi
cc_ver=`$cc --version | sed 1q`
-cc_verno=`echo $cc_ver | sed -e 's/[^0-9. ]//g; s/^ *//g; s/ .*//g'`
+cc_verno=`echo $cc_ver | sed -e 's/^.*gcc/gcc/g; s/[^0-9. ]//g; s/^ *//g; s/ .*//g'`
case "$cc_ver--$cc_verno" in
*GCC*)