From patchwork Wed Jun 3 12:59:54 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Pike X-Patchwork-Id: 27660 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n53D707c006446 for ; Wed, 3 Jun 2009 13:07:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754329AbZFCNG4 (ORCPT ); Wed, 3 Jun 2009 09:06:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754521AbZFCNGz (ORCPT ); Wed, 3 Jun 2009 09:06:55 -0400 Received: from mail-fx0-f168.google.com ([209.85.220.168]:61696 "EHLO mail-fx0-f168.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753603AbZFCNGz (ORCPT ); Wed, 3 Jun 2009 09:06:55 -0400 Received: by mail-fx0-f168.google.com with SMTP id 12so7380191fxm.37 for ; Wed, 03 Jun 2009 06:06:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=MfU9WubhsgTvcychXN11FLzydwIbHGlMVG85NByyOyU=; b=MkFADRJ6B34MCjPjImnyUK47ZOU+SE8B0IWSWiFY3VNqfBSsfa4ECs0Vp+uXbQ1CMh Y36S0VdZYufqsBlageQWhdVoqEm98CUosczlFn/jgs7Y3UcK+JNXz9rA9WdCTOU3X5FF tzmPnMU3hh6Lx+P0HWCRzfRsJuvzrCPvj/z2k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=txgl84yGluYvLDMcmgS9VPxQMKav3+EcUt8V6kpqYDDlyPaJ/st+IVE/oKdS9tav6n zW3QMzVr17V4zazODu5J1f+gX+cMvSAle30UTWntbidrW0ykKre5e4SP7IU16qyCrUGI K1doBKkZwsbMUAOQpnzG9x6fMvfPNLDJ9huGE= Received: by 10.103.198.20 with SMTP id a20mr598085muq.29.1244033996855; Wed, 03 Jun 2009 05:59:56 -0700 (PDT) Received: from dupont.ts-a (78-105-13-9.zone3.bethere.co.uk [78.105.13.9]) by mx.google.com with ESMTPS id y6sm2889602mug.40.2009.06.03.05.59.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 03 Jun 2009 05:59:56 -0700 (PDT) Date: Wed, 3 Jun 2009 13:59:54 +0100 From: James Pike To: kvm@vger.kernel.org Subject: [PATCH] fix detection of kernel source directory Message-ID: <20090603125954.GA16220@dupont.ts-a> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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