From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49732) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2a8X-0002Sf-IA for qemu-devel@nongnu.org; Wed, 10 Jun 2015 03:09:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z2a8R-0007Wo-Lt for qemu-devel@nongnu.org; Wed, 10 Jun 2015 03:09:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z2a8R-0007Wj-Eu for qemu-devel@nongnu.org; Wed, 10 Jun 2015 03:09:15 -0400 Message-ID: <1433920152.16508.14.camel@redhat.com> From: Gerd Hoffmann Date: Wed, 10 Jun 2015 09:09:12 +0200 In-Reply-To: References: <1433846851-20552-1-git-send-email-kraxel@redhat.com> <5576F4A7.6090306@gmail.com> Content-Type: multipart/mixed; boundary="=-HgO9w7nYAQIqA8Ilf2CC" Mime-Version: 1.0 Subject: Re: [Qemu-devel] [PULL 00/12] audio patch queue List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Developers , =?UTF-8?Q?K=C5=91v=C3=A1g=C3=B3_Zolt=C3=A1n?= --=-HgO9w7nYAQIqA8Ilf2CC Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Hi, > Right, but you can't break compilation. At a minimum, we > need a configure test so we don't try to build the dsound > backend unless the compile environment supports it. Can you try whenever the attached patch works for you? thanks, Gerd --=-HgO9w7nYAQIqA8Ilf2CC Content-Type: text/x-patch; name="0001-only-enable-dsound-in-case-the-header-file-is-presen.patch"; charset="UTF-8" Content-Description: Content-Disposition: inline; filename*0=0001-only-enable-dsound-in-case-the-header-file-is-presen.pat; filename*1=ch Content-Transfer-Encoding: 7bit >>From a3964a1c6f46ddb5631b7d397c7a7a628ad5c8cd Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Wed, 10 Jun 2015 09:07:35 +0200 Subject: [PATCH] only enable dsound in case the header file is present Signed-off-by: Gerd Hoffmann --- configure | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/configure b/configure index ccf8dc7..222694f 100755 --- a/configure +++ b/configure @@ -435,6 +435,14 @@ EOF compile_object } +check_include() { +cat > $TMPC < +int main(void) { return 0; } +EOF + compile_object +} + write_c_skeleton() { cat > $TMPC <