[413] in arla-drinkers
Re: --disable-smp patch
daemon@ATHENA.MIT.EDU (Love)
Sun Dec 6 20:10:15 1998
From owner-arla-drinkers@stacken.kth.se Mon Dec 07 01:10:14 1998
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 24380 invoked from network); 7 Dec 1998 01:10:12 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
by bloom-picayune.mit.edu with SMTP; 7 Dec 1998 01:10:12 -0000
Received: (from majordom@localhost)
by sundance.stacken.kth.se (8.8.8/8.8.8) id CAA28461
for arla-drinkers-list; Mon, 7 Dec 1998 02:03:56 +0100 (MET)
Received: from elixir.e.kth.se (1073744992@elixir.e.kth.se [130.237.48.5])
by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id CAA28457
for <arla-drinkers@stacken.kth.se>; Mon, 7 Dec 1998 02:03:53 +0100 (MET)
Received: from anchor.s3.kth.se (anchor.s3.kth.se [130.237.43.59])
by elixir.e.kth.se (8.8.7/8.8.7) with ESMTP id CAA00916;
Mon, 7 Dec 1998 02:03:52 +0100 (MET)
Received: (lha@localhost) by anchor.s3.kth.se (8.8.7/8.6.6) id CAA08478; Mon, 7 Dec 1998 02:03:51 +0100 (MET)
To: Gerald Britton <gbritton@mit.edu>
Cc: arla-drinkers@stacken.kth.se
Subject: Re: --disable-smp patch
References: <19981206190806.A26058@light-brigade.mit.edu>
From: Love <lha@stacken.kth.se>
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
Date: 07 Dec 1998 02:03:51 +0100
In-Reply-To: Gerald Britton's message of Sun, 6 Dec 1998 19:08:06 -0500
Message-ID: <amg1asyd8o.fsf@anchor.s3.kth.se>
Lines: 45
X-Mailer: Gnus v5.5/Emacs 20.2
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk
Gerald Britton <gbritton@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"