From: ths Date: Fri, 5 Jan 2007 21:25:54 +0000 (+0000) Subject: Configure check for alsa, by Bernhard Fischer. X-Git-Tag: release_0_9_0-iwjtag~102 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=06c9a7541eb218577ed574c7b788ca2fa97c866c;p=qemu-xen-3.4-testing.git Configure check for alsa, by Bernhard Fischer. --- diff --git a/configure b/configure index f03edd16..93bbe7b7 100755 --- a/configure +++ b/configure @@ -509,6 +509,25 @@ fi # sdl compile test fi # cross compilation fi # -z $sdl +########################################## +# alsa sound support libraries + +if test "$alsa" = "yes" ; then + cat > $TMPC << EOF +#include +int main(void) { snd_pcm_t **handle; return snd_pcm_close(*handle); } +EOF + if $cc -o $TMPE $TMPC -lasound 2> /dev/null ; then + : + else + echo + echo "Error: Could not find alsa" + echo "Make sure to have the alsa libs and headers installed." + echo + exit 1 + fi +fi + # Check if tools are available to build documentation. if [ -x "`which texi2html`" ] && [ -x "`which pod2man`" ]; then build_docs="yes"