From 59b42cdde8d3d79ea81056009463de76e3c08dd4 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 5 Nov 2005 09:57:13 +0000 Subject: 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 --- configure | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'configure') 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 #include @@ -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" -- cgit v1.2.3