tBasic SDL_mixer sound support. - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 7f53f9c57b3a2782f1c78a1a796536d63a4c6206
(DIR) parent 784aab29a0315f6177affbbe064b5fac22d8444a
(HTM) Author: Ben Webb <ben@salilab.org>
Date: Sat, 4 May 2002 17:36:39 +0000
Basic SDL_mixer sound support.
Diffstat:
M configure.in | 17 +++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/configure.in b/configure.in
t@@ -172,6 +172,23 @@ else
AC_DEFINE(HAVE_ESD, 1, [Do we have the ESD sound library?])
fi
+ dnl Add SDL_mixer sound support if available
+ SDL=no
+ AM_PATH_SDL(1.0.0, SDL=yes)
+ if test "$SDL" = "yes"; then
+ headers=no
+ libs=no
+ AC_CHECK_HEADER(SDL/SDL_mixer.h, headers=yes)
+ AC_CHECK_LIB(SDL_mixer, Mix_OpenAudio, libs=yes)
+ if test "$libs" = "yes"; then
+ if test "$headers" = "yes"; then
+ SOUND_CFLAGS="$SOUND_CFLAGS $SDL_CFLAGS"
+ SOUND_LIBS="$SOUND_LIBS $SDL_LIBS -lSDL_mixer"
+ AC_DEFINE(HAVE_SDL_MIXER, 1, [Do we have the SDL_mixer sound library?])
+ fi
+ fi
+ fi
+
dnl Use console server by default
if test "$GUI_SERVER" = "probe"; then
GUI_SERVER="no"