diff options
author | Dan McGregor <dan.mcgregor@usask.ca> | 2017-03-02 04:22:13 (GMT) |
---|---|---|
committer | Dan McGregor <dan.mcgregor@usask.ca> | 2017-03-02 04:22:13 (GMT) |
commit | 6d1bcaa2f53dd540bbb85b5b98ee1422005cdc9e (patch) | |
tree | 46f493dc5b55f77031bf8b8300cc2622822e962e /Makefile.in | |
parent | f2f782dd1cf2b4ccb6f28f6113e7fedb23f078d6 (diff) |
Use configure to find the processor count
configure.ac now finds how to count the CPUs in a system. Currently
the getconf method and sysctl methods are supported. Adding more is
easy enough.
Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in index f0034cb..aa27d61 100644 --- a/Makefile.in +++ b/Makefile.in @@ -81,6 +81,7 @@ export LIBS := @LIBS@ export INTL_LIBS := @INTL_LIBS@ export curses_hdr := @ac_ct_curses_hdr@ export gettext := @gettext@ +export CPU_COUNT := @CPU_COUNT@ # config options to push down to kconfig KCONFIG:= @kconfig_options@ @@ -192,6 +193,7 @@ define sed_it -e 's,@@CT_awk@@,$(awk),g;' \ -e 's,@@CT_wget@@,$(wget),g;' \ -e 's,@@CT_curl@@,$(curl),g;' \ + -e 's,@@CT_cpucount@@,$(CPU_COUNT),g;' \ $< >$@ endef |