--- ../qemu_trunk.orig/configure 2007-01-04 14:38:58.000000000 +0100 +++ configure 2007-01-04 20:46:22.000000000 +0100 @@ -509,6 +536,25 @@ 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 + 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 # alsa + # Check if tools are available to build documentation. if [ -x "`which texi2html`" ] && [ -x "`which pod2man`" ]; then build_docs="yes"