diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-01-21 09:18:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-01-21 09:18:08 +0000 |
commit | b9824e99d706b7d021b438da16ded7df59b20f8c (patch) | |
tree | 006a305a29b38b937bf964ede9f08df167a1011b /configure.ac | |
parent | 5737f8b1a7370717d198a34133942401d404cde8 (diff) |
add configure test for libogg to fix #3278
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 15 insertions, 1 deletions
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 |