From patchwork Sun Nov 14 11:49:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 71111 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id DFCEAB7123 for ; Sun, 14 Nov 2010 23:12:10 +1100 (EST) Received: from localhost ([127.0.0.1]:44830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHbRH-0004y7-G9 for incoming@patchwork.ozlabs.org; Sun, 14 Nov 2010 07:12:07 -0500 Received: from [140.186.70.92] (port=43630 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHb5e-00035f-1o for qemu-devel@nongnu.org; Sun, 14 Nov 2010 06:49:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHb5c-0004KL-Ff for qemu-devel@nongnu.org; Sun, 14 Nov 2010 06:49:45 -0500 Received: from mail-pv0-f173.google.com ([74.125.83.173]:39811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHb5c-0004EC-AX for qemu-devel@nongnu.org; Sun, 14 Nov 2010 06:49:44 -0500 Received: by mail-pv0-f173.google.com with SMTP id 11so976782pvh.4 for ; Sun, 14 Nov 2010 03:49:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:subject:date :message-id:x-mailer:in-reply-to:references; bh=2ABytyh73LlzWK7An6m5XRV8u5Iv0mJdevCQFulmSGk=; b=j0vHWKLxo52xI2paWjqQF0Shsgerr1TU2z4cnEcFBaQXjzmS3hsSn4P7kK/wIRfCz6 OHEaZNiAhX3uhhNPLSVzeg8La35u5rO2TLq/UMAagRQBtprj+g/YMQEbwsudzIQ+ih/m SvkfEasNlxW75XyEafu4pHqaY6TWNawCV4/vI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:date:message-id:x-mailer:in-reply-to :references; b=A5tK7QgGYrSafnQBb+cJDga6/Rgw65ThGIxR0cCXM8SG9SwIy6ONslWCZdgbO2pRWL BOmO2vYsh4CIGQFHcrSM26Twspzxk5eCZsDFIS54cGwmgEXJTbj+Hkz+4lCqE1/+pr4w 0GBzr2Ie0C2JDlKTZU4Oy4xq0cX3rAThee6RA= Received: by 10.142.242.10 with SMTP id p10mr3571137wfh.194.1289735383851; Sun, 14 Nov 2010 03:49:43 -0800 (PST) Received: from localhost.localdomain (s209p8.home.99maxprogres.cz [85.93.118.17]) by mx.google.com with ESMTPS id x35sm7086810wfd.13.2010.11.14.03.49.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 14 Nov 2010 03:49:43 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Sun, 14 Nov 2010 12:49:01 +0100 Message-Id: <1289735342-8660-14-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.7.3.2 In-Reply-To: <1289735342-8660-1-git-send-email-pbonzini@redhat.com> References: <1289735342-8660-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH 13/14] move --srcdir detection earlier X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This will help getting config.guess and config.sub from the srcdir. Signed-off-by: Paolo Bonzini --- configure | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/configure b/configure index e667b12..4412234 100755 --- a/configure +++ b/configure @@ -69,6 +69,7 @@ path_of() { } # default parameters +source_path=`dirname "$0"` cpu="" interp_prefix="/usr/gnemul/qemu-%M" static="no" @@ -174,6 +175,8 @@ for opt do ;; --cc=*) CC="$optarg" ;; + --source-path=*) source_path="$optarg" + ;; --cpu=*) cpu="$optarg" ;; --extra-cflags=*) QEMU_CFLAGS="$optarg $QEMU_CFLAGS" @@ -220,6 +223,9 @@ QEMU_CFLAGS="-D_FORTIFY_SOURCE=2 $QEMU_CFLAGS" QEMU_INCLUDES="-I. -I\$(SRC_PATH)" LDFLAGS="-g $LDFLAGS" +# make source path absolute +source_path=`cd "$source_path"; pwd` + check_define() { cat > $TMPC <