[412] in arla-drinkers
--disable-smp patch
daemon@ATHENA.MIT.EDU (Gerald Britton)
Sun Dec 6 19:24:27 1998
From owner-arla-drinkers@stacken.kth.se Mon Dec 07 00:24:26 1998
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 24002 invoked from network); 7 Dec 1998 00:24:25 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
by bloom-picayune.mit.edu with SMTP; 7 Dec 1998 00:24:25 -0000
Received: (from majordom@localhost)
by sundance.stacken.kth.se (8.8.8/8.8.8) id BAA27922
for arla-drinkers-list; Mon, 7 Dec 1998 01:08:14 +0100 (MET)
Received: from light-brigade.mit.edu (qmailr@LIGHT-BRIGADE.MIT.EDU [18.244.1.25])
by sundance.stacken.kth.se (8.8.8/8.8.8) with SMTP id BAA27918
for <arla-drinkers@stacken.kth.se>; Mon, 7 Dec 1998 01:08:10 +0100 (MET)
Received: (qmail 26259 invoked by uid 3499); 6 Dec 1998 19:08:07 -0500
Message-ID: <19981206190806.A26058@light-brigade.mit.edu>
Date: Sun, 6 Dec 1998 19:08:06 -0500
From: Gerald Britton <gbritton@mit.edu>
To: arla-drinkers@stacken.kth.se
Subject: --disable-smp patch
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.93.2
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk
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.
diff -ruN arla-0.17/configure.in arla-0.17.new/configure.in
--- arla-0.17/configure.in Sun Dec 6 16:18:48 1998
+++ arla-0.17.new/configure.in Sun Dec 6 18:01:50 1998
@@ -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 "$smp" != "no"; then
AC_EGREP_CPP(
changequote(, )dnl
smp_[0-9a-z]*,dnl
@@ -206,6 +209,9 @@
smp='-D__SMP__'
fi
])
+else
+smp=""
+fi
KERNEL_CFLAGS="-DMODULE -D__KERNEL__ $smp"
XFS_SUBDIR=linux
KERNEL=/dev/null