# HG changeset patch # User diego # Date 1128448691 0 # Node ID 338f5c64434b5e8927e3fd22fed2f73cb5acfd5b # Parent f734c20de10af2ecd5cad761a629685b516cc2f4 Use pkg-config to detect theora dependencies. patch by j -- at -- thing -- dot -- net diff -r f734c20de10a -r 338f5c64434b configure --- a/configure Tue Oct 04 16:47:38 2005 +0000 +++ b/configure Tue Oct 04 17:58:11 2005 +0000 @@ -5286,10 +5286,11 @@ fi echores "$_vorbis" -echocheck "OggTheora support (only the CVS version!)" +echocheck "OggTheora support" if test "$_theora" = auto ; then _theora=no - cat > $TMPC << EOF + if ( pkg-config --exists 'theora' ) >> "$TMPLOG" 2>&1 ; then + cat > $TMPC << EOF #include #include int main(void) @@ -5323,12 +5324,13 @@ return 0; } EOF - cc_check -ltheora -logg $_ld_lm && _theora=yes + cc_check `pkg-config --libs --cflags theora` && _theora=yes + fi fi if test "$_theora" = yes ; then _def_theora='#define HAVE_OGGTHEORA 1' _codecmodules="libtheora $_codecmodules" - _ld_theora="-ltheora -logg" + _ld_theora=`pkg-config --libs --cflags theora` else _def_theora='#undef HAVE_OGGTHEORA' _nocodecmodules="libtheora $_nocodecmodules"