aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-08-03 14:46:30 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-10 13:05:40 -0500
commita4bf67808779e0df8f977f818733058eeb2fa1b6 (patch)
tree58ab78fe5ebfaff9c8b003df018369f837530ec3 /configure
parent997e690ab933e4c59315c8bd9e9828ca95262e52 (diff)
Move sound library selection to sound selection
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 13 insertions, 4 deletions
diff --git a/configure b/configure
index 53055791f6..e4f763bdbc 100755
--- a/configure
+++ b/configure
@@ -993,6 +993,7 @@ for drv in $audio_drv_list; do
alsa)
audio_drv_probe $drv alsa/asoundlib.h -lasound \
"snd_pcm_t **handle; return snd_pcm_close(*handle);"
+ libs_softmmu="-lasound $libs_softmmu"
;;
fmod)
@@ -1004,22 +1005,33 @@ for drv in $audio_drv_list; do
exit 1
fi
audio_drv_probe $drv fmod.h $fmod_lib "return FSOUND_GetVersion();" "-I $fmod_inc"
+ libs_softmmu="$fmod_lib $libs_softmmu"
;;
esd)
audio_drv_probe $drv esd.h -lesd 'return esd_play_stream(0, 0, "", 0);'
+ libs_softmmu="-lesd $libs_softmmu"
;;
pa)
audio_drv_probe $drv pulse/simple.h -lpulse-simple \
"pa_simple *s = NULL; pa_simple_free(s); return 0;"
+ libs_softmmu="-lpulse-simple $libs_softmmu"
;;
coreaudio)
libs_softmmu="-framework CoreAudio $libs_softmmu"
;;
- oss|sdl|wav|dsound)
+ dsound)
+ libs_softmmu="-lole32 -ldxguid $libs_softmmu"
+ ;;
+
+ oss)
+ libs_softmmu="$oss_lib $libs_softmmu"
+ ;;
+
+ sdl|wav)
# XXX: Probes for CoreAudio, DirectSound, SDL(?)
;;
@@ -1602,10 +1614,7 @@ for drv in $audio_drv_list; do
def=CONFIG_`echo $drv | tr '[:lower:]' '[:upper:]'`
echo "$def=y" >> $config_host_mak
if test "$drv" = "fmod"; then
- echo "FMOD_LIBS=$fmod_lib" >> $config_host_mak
echo "FMOD_CFLAGS=-I$fmod_inc" >> $config_host_mak
- elif test "$drv" = "oss"; then
- echo "OSS_LIBS=$oss_lib" >> $config_host_mak
fi
done
if test "$mixemu" = "yes" ; then