configure.ac: detect libogg

Will be needed to compile libxiph.a.
This commit is contained in:
Max Kellermann 2016-05-03 23:31:17 +02:00
parent fb5610f9bd
commit 6c933d2b77
2 changed files with 6 additions and 0 deletions

View File

@ -586,6 +586,8 @@ noinst_LIBRARIES += libxiph.a
libxiph_a_SOURCES = \
src/lib/xiph/XiphTags.cxx src/lib/xiph/XiphTags.hxx
libxiph_a_CPPFLAGS = $(AM_CPPFLAGS) \
$(OGG_CFLAGS)
XIPH_LIBS = libxiph.a

View File

@ -1266,6 +1266,10 @@ if test x$enable_ogg = xyes || test x$enable_flac = xyes; then
have_xiph=yes
fi
if test x$have_ogg = xyes; then
PKG_CHECK_MODULES([OGG], [ogg],, [AC_MSG_ERROR([libogg not found])])
fi
AM_CONDITIONAL(HAVE_OGG, test x$have_ogg = xyes)
AM_CONDITIONAL(HAVE_XIPH, test x$have_xiph = xyes)