Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLcwH-0006SR-BK for qemu-devel@nongnu.org; Tue, 30 Jun 2009 08:59:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLcwB-0006Qo-Gh for qemu-devel@nongnu.org; Tue, 30 Jun 2009 08:59:56 -0400 Received: from [199.232.76.173] (port=37746 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLcwB-0006Ql-B8 for qemu-devel@nongnu.org; Tue, 30 Jun 2009 08:59:51 -0400 Received: from va3ehsobe005.messaging.microsoft.com ([216.32.180.15]:57077 helo=VA3EHSOBE006.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1MLcwA-00051S-Tx for qemu-devel@nongnu.org; Tue, 30 Jun 2009 08:59:51 -0400 Received: from mail181-va3 (localhost.localdomain [127.0.0.1]) by mail181-va3-R.bigfish.com (Postfix) with ESMTP id 0900715006BD for ; Tue, 30 Jun 2009 12:59:49 +0000 (UTC) Received: from svlb1extmailp02.amd.com (unknown [139.95.251.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail181-va3.bigfish.com (Postfix) with ESMTP id 9831B1038050 for ; Tue, 30 Jun 2009 12:59:46 +0000 (UTC) Received: from svlb1twp02.amd.com ([139.95.250.35]) by svlb1extmailp02.amd.com (Switch-3.2.7/Switch-3.2.7) with ESMTP id n5UCxc5b010925 for ; Tue, 30 Jun 2009 05:59:41 -0700 Received: from SSVLEXBH1.amd.com (ssvlexbh1.amd.com [139.95.53.182]) by svlb1twp02.amd.com (Tumbleweed MailGate 3.5.1) with ESMTP id 2AD3F1103C0 for ; Tue, 30 Jun 2009 05:59:36 -0700 (PDT) From: Christoph Egger Date: Tue, 30 Jun 2009 14:59:38 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_6wgSK3AupQkmG6Q" Message-ID: <200906301459.38451.Christoph.Egger@amd.com> Subject: [Qemu-devel] [PATCH] configure: detect xen with --extra-cflags / --extra-ldflags List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --Boundary-00=_6wgSK3AupQkmG6Q Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! Attached patch lets configure find xen headers and xen libs when called with --extra-cflags and --extra-ldflags options. Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_6wgSK3AupQkmG6Q Content-Type: text/x-diff; charset="us-ascii"; name="qemu_xen_configure.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="qemu_xen_configure.diff" diff --git a/configure b/configure index eb9d73a..41cdcf9 100755 --- a/configure +++ b/configure @@ -849,9 +849,9 @@ if test "$xen" = "yes" ; then cat > $TMPC < #include -int main(void) { xs_daemon_open; xc_interface_open; } +int main(void) { xs_daemon_open(); xc_interface_open(); return 0; } EOF - if $cc $ARCH_CFLAGS -c -o $TMPO $TMPC -lxenstore -lxenctrl 2> /dev/null > /dev/null ; then + if $cc $CFLAGS $ARCH_CFLAGS -c -o $TMPO $TMPC $LDFLAGS -lxenstore -lxenctrl 2> /dev/null > /dev/null ; then : else xen="no" --Boundary-00=_6wgSK3AupQkmG6Q--