From: Christian Grothoff Date: Tue, 21 Jan 2014 09:18:08 +0000 (+0000) Subject: add configure test for libogg to fix #3278 X-Git-Tag: initial-import-from-subversion-38251~4987 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b9824e99d706b7d021b438da16ded7df59b20f8c;p=oweals%2Fgnunet.git add configure test for libogg to fix #3278 --- diff --git a/configure.ac b/configure.ac index cd159115e..b74bb267f 100644 --- a/configure.ac +++ b/configure.ac @@ -408,6 +408,20 @@ then AC_DEFINE([HAVE_OPUS],[1],[Have libopus library]) fi +# libogg +AC_CHECK_LIB(ogg, ogg_stream_flush_fill, + [AC_CHECK_HEADERS([ogg/ogg.h], + AM_CONDITIONAL(HAVE_OGG, true) + ogg=1 + AC_DEFINE(HAVE_OGG,1,[Have ogg]), + AM_CONDITIONAL(HAVE_OGG, false) + ogg=0 + AC_DEFINE(HAVE_OGG,0,[lacking ogg]))], + AM_CONDITIONAL(HAVE_OGG, false) + ogg=0) + + + gst=0 PKG_CHECK_MODULES( [GST], @@ -421,7 +435,7 @@ PKG_CHECK_MODULES( ]) # Pulse Audio -if test "x$pulse" != "x1" -o "x$opus" != "x1" +if test "x$pulse" != "x1" -o "x$opus" != "x1" -o "x$ogg" != "x1" then if test "x$gst" != "x1" -o "x$opus" != "x1" then