From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: [PATCH] fix detection of kernel source directory Date: Mon, 08 Jun 2009 10:31:37 +0200 Message-ID: <4A2CCC69.2030709@siemens.com> References: <20090603125954.GA16220@dupont.ts-a> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, Avi Kivity To: James Pike Return-path: Received: from gecko.sbs.de ([194.138.37.40]:18784 "EHLO gecko.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753062AbZFHIbw (ORCPT ); Mon, 8 Jun 2009 04:31:52 -0400 In-Reply-To: <20090603125954.GA16220@dupont.ts-a> Sender: kvm-owner@vger.kernel.org List-ID: James Pike wrote: > Fix detection of kernel source directory when it is different to build > directory. > Signed-off-by: James Pike > > diff --git a/configure b/configure > index e01ba98..c3b7a5f 100755 > --- a/configure > +++ b/configure > @@ -91,7 +91,7 @@ arch=${arch%%-*} > > # see if we have split build and source directories > if [ -d "$kerneldir/include2" ]; then > - kernelsourcedir=${kerneldir%/*}/source > + kernelsourcedir=`readlink -f $kerneldir/source` > fi > > if [ -n "$no_uname" -a "$want_module" ]; then So far I can't reproduce any problem that the above could fix, but maybe Avi sees why we need it and that it doesn't regress elsewhere. Jan