Commit 8f28f3fbbe1116c5f4f11ebf4167a770032e2606

Authored by ths
1 parent 43f238d7

Configure check for alsa, by Bernhard Fischer.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2299 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 19 additions and 0 deletions
configure
... ... @@ -509,6 +509,25 @@ fi # sdl compile test
509 509 fi # cross compilation
510 510 fi # -z $sdl
511 511  
  512 +##########################################
  513 +# alsa sound support libraries
  514 +
  515 +if test "$alsa" = "yes" ; then
  516 + cat > $TMPC << EOF
  517 +#include <alsa/asoundlib.h>
  518 +int main(void) { snd_pcm_t **handle; return snd_pcm_close(*handle); }
  519 +EOF
  520 + if $cc -o $TMPE $TMPC -lasound 2> /dev/null ; then
  521 + :
  522 + else
  523 + echo
  524 + echo "Error: Could not find alsa"
  525 + echo "Make sure to have the alsa libs and headers installed."
  526 + echo
  527 + exit 1
  528 + fi
  529 +fi
  530 +
512 531 # Check if tools are available to build documentation.
513 532 if [ -x "`which texi2html`" ] && [ -x "`which pod2man`" ]; then
514 533 build_docs="yes"
... ...