[ooo-build-commit] .: configure.in
Thorsten Behrens
thorsten at kemper.freedesktop.org
Tue Sep 21 13:35:11 PDT 2010
configure.in | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit d82fd58883c207631ff8683de2720b5cc9fba6e5
Author: Thorsten Behrens <tbehrens at novell.com>
Date: Tue Sep 21 22:28:08 2010 +0200
Added mac version of num_cpu detection
diff --git a/configure.in b/configure.in
index 69b5529..30f667a 100644
--- a/configure.in
+++ b/configure.in
@@ -7383,7 +7383,11 @@ dnl ===================================================================
dnl Number of CPUs to use during the build
dnl ===================================================================
AC_MSG_CHECKING([for number of processors to use])
-BUILD_NCPUS=`grep $'^processor\t*:' /proc/cpuinfo | wc -l`
+if test "z`uname -s`" = "zDarwin"; then
+ BUILD_NCPUS=`sysctl -n hw.ncpu`
+else
+ BUILD_NCPUS=`grep $'^processor\t*:' /proc/cpuinfo | wc -l`
+fi
if test "z$with_num_cpus" != "z"; then
BUILD_NCPUS=$with_num_cpus
fi
More information about the ooo-build-commit
mailing list