aboutsummaryrefslogtreecommitdiff
path: root/m4/ax_count_cpus.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/ax_count_cpus.m4')
-rw-r--r--m4/ax_count_cpus.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/m4/ax_count_cpus.m4 b/m4/ax_count_cpus.m4
index d4f3d290..39b68d32 100644
--- a/m4/ax_count_cpus.m4
+++ b/m4/ax_count_cpus.m4
@@ -15,6 +15,7 @@
15# 15#
16# LICENSE 16# LICENSE
17# 17#
18# Copyright (c) 2014 Karlson2k (Evgeny Grin) <k2k@narod.ru>
18# Copyright (c) 2012 Brian Aker <brian@tangent.org> 19# Copyright (c) 2012 Brian Aker <brian@tangent.org>
19# Copyright (c) 2008 Michael Paul Bailey <jinxidoru@byu.net> 20# Copyright (c) 2008 Michael Paul Bailey <jinxidoru@byu.net>
20# Copyright (c) 2008 Christophe Tournayre <turn3r@users.sourceforge.net> 21# Copyright (c) 2008 Christophe Tournayre <turn3r@users.sourceforge.net>
@@ -45,6 +46,14 @@
45 AS_IF([test "x$CPU_COUNT" = "x0" -a -e /proc/cpuinfo],[ 46 AS_IF([test "x$CPU_COUNT" = "x0" -a -e /proc/cpuinfo],[
46 CPU_COUNT=`$EGREP -c '^processor' /proc/cpuinfo` 47 CPU_COUNT=`$EGREP -c '^processor' /proc/cpuinfo`
47 ]) 48 ])
49 ])],[
50 *mingw*],[
51 AS_IF([test -n "$NUMBER_OF_PROCESSORS"],[
52 CPU_COUNT="$NUMBER_OF_PROCESSORS"
53 ])],[
54 *cygwin*],[
55 AS_IF([test -n "$NUMBER_OF_PROCESSORS"],[
56 CPU_COUNT="$NUMBER_OF_PROCESSORS"
48 ]) 57 ])
49 ]) 58 ])
50 59