configure.ac: When compiling FLAC with ogg API, linking with ogg is mandatory.

This commit is contained in:
Avuton Olrich 2010-04-22 19:10:37 -07:00
parent 7c37f2879b
commit f4f4a908bb

View File

@ -766,6 +766,12 @@ if test x$enable_flac = xyes; then
fi fi
CFLAGS="$oldcflags" CFLAGS="$oldcflags"
LIBS="$oldlibs" LIBS="$oldlibs"
if test x$enable_oggflac = xflac; then
PKG_CHECK_MODULES(OGG, [ogg], FLAC_LIBS="${FLAC_LIBS} -logg",
enable_oggflac=yes;
AC_MSG_WARN("FLAC has the ogg API built in, but couldn't find ogg. Disabling oggflac."))
fi
fi fi
AM_CONDITIONAL(HAVE_FLAC, test x$enable_flac = xyes) AM_CONDITIONAL(HAVE_FLAC, test x$enable_flac = xyes)