[MPlayer-dev-eng] [PATCH] fix theora detection and compile when missing pkgconfig
Gianluigi Tiesi
mplayer at netfarm.it
Wed Dec 13 08:16:10 CET 2006
On system without pkgconfig (i.e. mingw ... or my mingw :P)
theora is only tested while linking it using -ltheora
but it needs also -logg
Review the patch and change if needed
Bye
--
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
-------------- next part --------------
diff -NuBr -x.svn -xhelp_mp.h -xlibdha -x'*.so' -x'*.log' -x'*.a' -x'*.exe' -x'*.o' -xconfigure.log -xconfig.mak -x.cvsignore -xconfig.h -xcodecs.conf.h -xversion.h -x.depend main/configure sherpya/configure
--- main/configure 2006-12-13 05:56:05.139723200 +0100
+++ sherpya/configure 2006-12-13 07:54:59.268096000 +0100
@@ -5738,12 +5738,12 @@
return 0;
}
EOF
- for _ld_theora in "`$_pkg_config --silence-errors --libs --cflags theora`" "-ltheora"; do
+ for _ld_theora in "`$_pkg_config --silence-errors --libs --cflags theora`" "-ltheora -logg"; do
cc_check $_ld_theora && _ld_extra="$_ld_extra $_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
+ for _ld_theora in "`$_pkg_config --silence-errors --libs --cflags theora`" "-ltheora -logg"; do
cc_check -I. tremor/bitwise.c $_ld_theora \
&& _ld_extra="$_ld_extra $_ld_theora" && theora=yes && break
done
@@ -6861,7 +6861,7 @@
return (int)ascii_name;
}
EOF
- if cc_check ; then
+ if cc_check $_inc_extra; then
if strings $TMPO | grep -l MPlayerBigEndian >/dev/null ; then
_big_endian=yes
else
More information about the MPlayer-dev-eng
mailing list