commit cf9ba913445e940dbab95a906e6788ebb2258ef3
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Fri Aug 1 01:31:29 2025 +0200

    smp: Fix build with default parameters
    
    We need to automatically disable linux groups before automatically
    enabling apic.

diff --git a/i386/configfrag.ac b/i386/configfrag.ac
index 6cd1fdf7..1a6f5758 100644
--- a/i386/configfrag.ac
+++ b/i386/configfrag.ac
@@ -100,6 +100,11 @@ AC_ARG_ENABLE([apic],
   enable_apic=yes
 [fi]
 
+[if [ $mach_ncpus -gt 1 ]; then]
+  # Do not enable in SMP, it is not MP-safe
+  enable_linux_groups=no
+[fi]
+
 [if [ x"$enable_linux_groups" != xno ]; then]
   # Linux glue does not like APIC
   enable_apic=no
diff --git a/linux/configfrag.ac b/linux/configfrag.ac
index a4f9c5a9..c851e563 100644
--- a/linux/configfrag.ac
+++ b/linux/configfrag.ac
@@ -55,11 +55,6 @@ dnl USE OF THIS SOFTWARE.
 AC_ARG_ENABLE([linux-groups],
   AS_HELP_STRING([--disable-linux-groups], [Linux drivers]))
 
-[if [ $mach_ncpus -gt 1 ]; then]
-  # Do not enable in SMP, it is not MP-safe
-  enable_linux_groups=no
-[fi]
-
 AC_DEFUN([AC_OPTION_Linux_group], [
 AC_ARG_ENABLE([$1-group],
   AS_HELP_STRING([--enable-$1-group], [$2]),
