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,
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 <alsa/asoundlib.h> +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"
_______________________________________________ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel