summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-05-11 18:29:07 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-05-11 18:29:07 +0000
commit598c7fd57627a1753219435e2097fd1d274506d7 (patch)
treea99c5368d9045faa985d78ea29cb3a9c522b066e /configure
parentffc479f7460c53cc0eaeb389935d78bb8b20eb3b (diff)
downloadmpv-598c7fd57627a1753219435e2097fd1d274506d7.tar.bz2
mpv-598c7fd57627a1753219435e2097fd1d274506d7.tar.xz
Theora demuxer/codec support, patch by David Kuehling <dvdkhlng@gmx.de>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10096 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure27
1 files changed, 27 insertions, 0 deletions
diff --git a/configure b/configure
index 3c27fa66b9..5a259a47c0 100755
--- a/configure
+++ b/configure
@@ -189,6 +189,7 @@ Codecs:
--enable-libfame enable libfame realtime encoder [autodetect]
--enable-vorbis build with OggVorbis support [autodetect]
--enable-tremor build with integer-only OggVorbis support [disabled]
+ --enable-theora build with OggTheora support [autodetect]
--enable-matroska build with Matroska support [autodetect]
--enable-faad build with FAAD2 (MP4/AAC) support [autodetect]
--disable-libdv disable libdv 0.9.5 en/decoding support [autodetect]
@@ -1026,6 +1027,7 @@ _esd=auto
_liblzo=auto
_mad=auto
_vorbis=auto
+_theora=auto
_matroska=auto
_tremor=no
_faad=auto
@@ -1180,6 +1182,8 @@ for ac_option do
--disable-vorbis) _vorbis=no ;;
--enable-tremor) _tremor=yes ;;
--disable-tremor) _tremor=no ;;
+ --enable-theora) _theora=yes ;;
+ --disable-theora) _theora=no ;;
--enable-matroska) _matroska=yes ;;
--disable-matroska) _matroska=no ;;
--enable-faad) _faad=yes ;;
@@ -4028,6 +4032,25 @@ else
fi
echores "$_vorbis"
+echocheck "OggTheora support"
+if test "$_theora" = auto ; then
+ _theora=no
+ cat > $TMPC << EOF
+#include <theora/theora.h>
+int main(void) { theora_version_number (); return 0; }
+EOF
+ cc_check -ltheora -logg -lm && _theora=yes
+fi
+if test "$_theora" = yes ; then
+ _def_theora='#define HAVE_OGGTHEORA 1'
+ _codecmodules="libtheora $_codecmodules"
+ _ld_theora="-ltheora"
+else
+ _def_theora='#undef HAVE_OGGTHEORA'
+ _nocodecmodules="libtheora $_nocodecmodules"
+fi
+echores "$_theora"
+
echocheck "Matroska support"
if test "$_matroska" != no ; then
@@ -5272,6 +5295,7 @@ FRIBIDI_LIB = $_ld_fribidi
LIBLZO_LIB= $_ld_liblzo
MAD_LIB = $_ld_mad
VORBIS_LIB = $_ld_vorbis $_ld_libdv
+THEORA_LIB = $_ld_theora
FAAD_LIB = $_ld_faad
SMBSUPPORT_LIB = $_ld_smb
XMMS_PLUGINS = $_xmms
@@ -5687,6 +5711,9 @@ $_def_vorbis
/* enable Tremor as vorbis decoder */
$_def_tremor
+/* enable OggTheora support */
+$_def_theora
+
/* enable Matroska support */
$_def_matroska
$_def_matroska_gcc2