aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-01-05 21:25:54 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-01-05 21:25:54 +0000
commit8f28f3fbbe1116c5f4f11ebf4167a770032e2606 (patch)
tree58396adc597ccbc263f9b2c94583b17cdfc42ccc /configure
parent43f238d7b6f75244b8c47409896a9725655e52ab (diff)
downloadqemu-8f28f3fbbe1116c5f4f11ebf4167a770032e2606.zip
qemu-8f28f3fbbe1116c5f4f11ebf4167a770032e2606.tar.gz
qemu-8f28f3fbbe1116c5f4f11ebf4167a770032e2606.tar.bz2
Configure check for alsa, by Bernhard Fischer.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2299 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure b/configure
index f03edd1..93bbe7b 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 <alsa/asoundlib.h>
+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"