--disable-smp patch

Love lha at stacken.kth.se
Mon Dec 7 02:03:56 CET 1998


Gerald Britton <gbritton at mit.edu> writes:

> This patch to configure.in allows --disable-smp passed to configure to
> actually do something useful and let you build for non-smp on an smp
> system.

I did it a little diffrent to make if possible to build non-smp on a smp.

Love

Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/arla/configure.in,v
retrieving revision 1.206
diff -u -w -r1.206 configure.in
--- configure.in        1998/12/06 21:18:48     1.206
+++ configure.in        1998/12/07 00:58:31
@@ -64,6 +64,8 @@
 [  --enable-smp            compile for SMP (currently only on Linux)],
 [if test "$enableval" = "yes"; then
   smp="-D__SMP__"
+else
+  smp="no"
 fi
 ])
 
@@ -196,6 +198,7 @@
   KERNEL_INCLUDE=-I`(cd $srcdir; pwd)`/xfs/linux
   KERNEL_SRCS='bsd-subr.c'
   KERNEL_HDRS=''
+if test "X$smp" = "X"; then
   AC_EGREP_CPP(
 changequote(, )dnl
 smp_[0-9a-z]*,dnl
@@ -204,6 +207,7 @@
 __ver_get_module_symbol], smp='-D__SMP__', [
 if grep 'smp_[0-9a-z]*\>' /proc/ksyms >/dev/null || test `grep -c
'^processor' 
/proc/cpuinfo` -gt 1; then
   smp='-D__SMP__'
+fi
 fi
 ])
   KERNEL_CFLAGS="-DMODULE -D__KERNEL__ $smp"






More information about the Arla-drinkers mailing list