Attempt to count the number of logical processor cores (including virtual and HT cores) currently available to use on the machine and place detected value in CPU_COUNT variable.
On successful detection, ACTION-IF-DETECTED is executed if present. If the detection fails, then ACTION-IF-NOT-DETECTED is triggered. The default ACTION-IF-NOT-DETECTED is to set CPU_COUNT to 1.
Download the latest version of ax_count_cpus.m4 or browse the macro’s revision history.
Copyright © 2014,2016 Karlson2k (Evgeny Grin) firstname.lastname@example.org
Copyright © 2012 Brian Aker email@example.com
Copyright © 2008 Michael Paul Bailey firstname.lastname@example.org
Copyright © 2008 Christophe Tournayre email@example.com
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.