Mercurial > SDL_sound_CoreAudio
diff configure.in @ 450:6d328f00c20d
Added Speex decoder.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sat, 13 Sep 2003 20:28:39 +0000 |
parents | ba94ffe34a47 |
children | 6e50a61059b8 |
line wrap: on
line diff
--- a/configure.in Sat Sep 13 20:27:33 2003 +0000 +++ b/configure.in Sat Sep 13 20:28:39 2003 +0000 @@ -235,6 +235,22 @@ fi fi +dnl Check for speex +AC_ARG_ENABLE(speex, +[ --enable-speex enable SPX decoding via libspeex [default=yes]], + , enable_speex=yes) +if test x$enable_speex = xyes; then + AC_CHECK_HEADER(ogg/ogg.h, have_ogg_hdr=yes) + AC_CHECK_LIB(ogg, ogg_sync_init, have_ogg_lib=yes) + AC_CHECK_HEADER(speex.h, have_speex_hdr=yes) + AC_CHECK_LIB(speex, speex_bits_init, have_speex_lib=yes) + if test "x$have_ogg_hdr" = "xyes" -a "x$have_ogg_lib" = "xyes" -a "x$have_speex_hdr" = "xyes" -a "x$have_speex_lib" = "xyes"; then + LIBS="$LIBS -logg -lspeex" + AC_DEFINE(SOUND_SUPPORTS_SPEEX) + fi +fi + + dnl Check for PhysicsFS http://icculus.org/physfs/ AC_ARG_ENABLE(physfs, [ --enable-physfs enable PhysicsFS in playsound [default=yes]],