oggvorbis: define HAVE_OGGVORBIS when tremor is enabled

When tremor (libvorbisidec) is used, HAVE_OGGVORBIS was not defined.
This commit is contained in:
Max Kellermann 2009-01-15 22:54:07 +01:00
parent 3e87e4f3ab
commit c77c61bf3f
2 changed files with 4 additions and 1 deletions

1
NEWS
View File

@ -18,6 +18,7 @@ MPD 0.14.1 - not yet released
* decoders:
- mp4: support the writer/composer tag
- id3: strip leading and trailing whitespace from ID3 tags
- oggvorbis: fix tremor support
* audio outputs:
- jack: allocate default port names (fixes a crash)
* update:

View File

@ -866,7 +866,9 @@ if test x$use_tremor = xyes; then
CFLAGS="$CFLAGS $TREMOR_CFLAGS"
LIBS="$LIBS $TREMOR_LIBS"
AC_CHECK_LIB(vorbisidec,ov_read,enable_oggvorbis=yes,enable_oggvorbis=no;AC_MSG_WARN([vorbisidec lib needed for ogg support with tremor -- disabling ogg support]))
if test x$enable_oggvorbis = xno; then
if test x$enable_oggvorbis = xyes; then
AC_DEFINE(HAVE_OGGVORBIS, 1, [Define for Ogg Vorbis support]),
else
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi