summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-11-05 09:57:13 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-11-05 09:57:13 +0000
commit59b42cdde8d3d79ea81056009463de76e3c08dd4 (patch)
tree406623e4d55d9814852f2196541d84109bb0ef76 /configure
parent316bb1d44c247df643ca2835891b0bc192f8cd0f (diff)
downloadmpv-59b42cdde8d3d79ea81056009463de76e3c08dd4.tar.bz2
mpv-59b42cdde8d3d79ea81056009463de76e3c08dd4.tar.xz
Allow detection of theora without pkg-config and linking against internal
tremor ogg functions instead of external ogg lib. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16914 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 8 insertions, 3 deletions
diff --git a/configure b/configure
index 609a43c25f..48e4fb5646 100755
--- a/configure
+++ b/configure
@@ -5392,7 +5392,6 @@ echores "$_vorbis"
echocheck "OggTheora support"
if test "$_theora" = auto ; then
_theora=no
- if ( pkg-config --exists 'theora' ) >> "$TMPLOG" 2>&1 ; then
cat > $TMPC << EOF
#include <theora/theora.h>
#include <string.h>
@@ -5427,16 +5426,22 @@ int main(void)
return 0;
}
EOF
- cc_check `pkg-config --libs --cflags theora` && _theora=yes
+ for _ld_theora in "`pkg-config --silence-errors --libs --cflags theora`" "-ltheora"; do
+ cc_check $_ld_theora && _theora=yes && break
+ done
+ if test "$_theora" = no && test "$_tremor_internal" = yes; then
+ for _ld_theora in "`pkg-config --silence-errors --libs --cflags theora`" "-ltheora"; do
+ cc_check -I. tremor/bitwise.c $_ld_theora && _theora=yes && break
+ done
fi
fi
if test "$_theora" = yes ; then
_def_theora='#define HAVE_OGGTHEORA 1'
_codecmodules="libtheora $_codecmodules"
- _ld_theora=`pkg-config --libs --cflags theora`
else
_def_theora='#undef HAVE_OGGTHEORA'
_nocodecmodules="libtheora $_nocodecmodules"
+ _ld_theora=""
fi
echores "$_theora"