From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H2U5r-0000i1-Un for qemu-devel@nongnu.org; Thu, 04 Jan 2007 10:01:24 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H2U5q-0000gp-CH for qemu-devel@nongnu.org; Thu, 04 Jan 2007 10:01:23 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H2U5q-0000gk-73 for qemu-devel@nongnu.org; Thu, 04 Jan 2007 10:01:22 -0500 Received: from [195.3.96.112] (helo=email.aon.at) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H2U5p-0006CQ-2O for qemu-devel@nongnu.org; Thu, 04 Jan 2007 10:01:21 -0500 Received: from m982p017.adsl.highway.telekom.at (HELO s37.loc) ([62.47.154.177]) (envelope-sender ) by smarthub72.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 4 Jan 2007 15:01:05 -0000 Received: from cow by s37.loc with local (Exim 4.63) (envelope-from ) id 1H2U7P-0006Cn-Qf for qemu-devel@nongnu.org; Thu, 04 Jan 2007 16:02:59 +0100 Date: Thu, 4 Jan 2007 16:02:59 +0100 From: Bernhard Fischer Message-ID: <20070104150259.GE28746@aon.at> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="dTy3Mrz/UPE2dbVg" Content-Disposition: inline Subject: [Qemu-devel] [patch] add configure check for working alsa Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --dTy3Mrz/UPE2dbVg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, This patchlet adds a check to configure that makes sure that we have a working alsa setup. Previously, if --enable-alsa was given but the user forgot to install the alsa libs proper, the build failed later on due to eventually missing libs. The patch makes sure that the user can spot that alsa support was turned off after configuration completed. thanks, --dTy3Mrz/UPE2dbVg Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="qemu.cvs-20070104.add-alsa-config-check.diff" diff --exclude='*.diff' -rduNp ../qemu_trunk.orig/configure ./configure --- ../qemu_trunk.orig/configure 2007-01-04 14:38:58.000000000 +0100 +++ ./configure 2007-01-04 14:48:14.000000000 +0100 @@ -509,6 +509,17 @@ fi # sdl compile test fi # cross compilation fi # -z $sdl +########################################## +# sound support libraries +# alsa +if test "$alsa" = "yes" ; then + cat > $TMPC << EOF +#include +int main(void) { snd_pcm_t **handle; return snd_pcm_close(*handle); } +EOF + $cc -o $TMPE $TMPC -lasound 2> /dev/null || alsa="no" +fi # alsa + # Check if tools are available to build documentation. if [ -x "`which texi2html`" ] && [ -x "`which pod2man`" ]; then build_docs="yes" --dTy3Mrz/UPE2dbVg--