summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authoriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-05-04 16:34:05 +0000
committeriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-05-04 16:34:05 +0000
commit4ea78566ce7fb06b5523341b76d3dd81f643f0ed (patch)
tree14714f49b795489bd93992b106862b5bdfe0b81e /configure
parentf15aff6bd02aa9c3bbb233fb05f13f423873d70c (diff)
downloadmpv-4ea78566ce7fb06b5523341b76d3dd81f643f0ed.tar.bz2
mpv-4ea78566ce7fb06b5523341b76d3dd81f643f0ed.tar.xz
check for XviD compiled with pthread support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18387 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure13
1 files changed, 11 insertions, 2 deletions
diff --git a/configure b/configure
index 529ef8577a..7009aada48 100755
--- a/configure
+++ b/configure
@@ -6388,7 +6388,16 @@ cat > $TMPC << EOF
#include <xvid.h>
int main(void) { xvid_global(0, 0, 0, 0); return 0; }
EOF
- if test "$_xvid" != no && cc_check $_inc_xvid $_ld_xvid $_ld_lm ; then
+ if test "$_xvid" != no ;then
+ if cc_check $_inc_xvid $_ld_xvid $_ld_lm ; then
+ _xvid4=yes
+ elif cc_check $_inc_xvid $_ld_xvid $_ld_lm $_ld_pthread ; then
+ _xvid4=yes;
+ _ld_xvid="$_ld_xvid $_ld_pthread"
+ fi
+ fi
+
+ if test "$_xvid4" = yes ; then
_xvid=yes
_xvid4=yes
_def_xvid3='#undef HAVE_XVID3'
@@ -6405,7 +6414,7 @@ fi
echores "$_xvid"
if test "$_xvid4" = yes ; then
- echocheck "XviD 1.1 or higher"
+ echocheck "XviD two pass plugin"
cat > $TMPC << EOF
#include <xvid.h>
int main(void) { xvid_plugin_2pass2_t s; s.vbv_size=0; return 0; }