From 506878269a232a7d3722d4598d9fb57a61b5272a Mon Sep 17 00:00:00 2001 From: Etienne Brateau Date: Tue, 19 Nov 2024 20:10:48 +0100 Subject: configfrag: fix usage of mach_ncpus before his definition Message-ID: <20241119191048.43597-1-etienne.brateau@gmail.com> --- configfrag-first.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'configfrag-first.ac') diff --git a/configfrag-first.ac b/configfrag-first.ac index 5dc0db2c..22e34af8 100644 --- a/configfrag-first.ac +++ b/configfrag-first.ac @@ -23,6 +23,17 @@ nlpr=0 AC_ARG_ENABLE([pae], AS_HELP_STRING([--enable-pae], [PAE support (ix86-only); on i386-at disabled by default, otherwise enabled by default])) + +# Multiprocessor support is still broken. +AH_TEMPLATE([MULTIPROCESSOR], [set things up for a uniprocessor]) +AC_ARG_ENABLE([ncpus], + AS_HELP_STRING([--enable-ncpus=N], [specify the maximum number of cpus to be supported]), + [mach_ncpus=$enable_ncpus], + [mach_ncpus=1]) +AC_DEFINE_UNQUOTED([NCPUS], [$mach_ncpus], [number of CPUs]) +[if [ $mach_ncpus -gt 1 ]; then] + AC_DEFINE([MULTIPROCESSOR], [1], [set things up for a multiprocessor]) +[fi] dnl Local Variables: dnl mode: autoconf -- cgit v1.2.3