configure.ac: disable libflac's oggflac support with --disable-oggflac

The configure flag "--disable-oggflac" disabled only liboggflac.
This commit is contained in:
Avuton Olrich 2008-11-03 17:35:16 +01:00 committed by Max Kellermann
parent dda8fc4f6b
commit b54348a1e5

View File

@ -701,7 +701,7 @@ if test x$enable_flac = xyes; then
oldlibs="$LIBS"
CFLAGS="$CFLAGS $FLAC_CFLAGS"
LIBS="$LIBS $FLAC_LIBS"
if test x$enable_flac = xyes; then
if test x$enable_flac = xyes && test x$enable_oggflac = xyes; then
AC_CHECK_DECL(FLAC_API_SUPPORTS_OGG_FLAC,
[enable_oggflac=flac], [],
[#include <FLAC/export.h>])