Mercurial > mplayer.hg
comparison configure @ 18386:e68027956822
check for XviD compiled with pthread support
author | iive |
---|---|
date | Thu, 04 May 2006 16:34:05 +0000 |
parents | 29b2221982b3 |
children | 67a41ab8e9ed |
comparison
equal
deleted
inserted
replaced
18385:4cdb4082d899 | 18386:e68027956822 |
---|---|
6386 else | 6386 else |
6387 cat > $TMPC << EOF | 6387 cat > $TMPC << EOF |
6388 #include <xvid.h> | 6388 #include <xvid.h> |
6389 int main(void) { xvid_global(0, 0, 0, 0); return 0; } | 6389 int main(void) { xvid_global(0, 0, 0, 0); return 0; } |
6390 EOF | 6390 EOF |
6391 if test "$_xvid" != no && cc_check $_inc_xvid $_ld_xvid $_ld_lm ; then | 6391 if test "$_xvid" != no ;then |
6392 if cc_check $_inc_xvid $_ld_xvid $_ld_lm ; then | |
6393 _xvid4=yes | |
6394 elif cc_check $_inc_xvid $_ld_xvid $_ld_lm $_ld_pthread ; then | |
6395 _xvid4=yes; | |
6396 _ld_xvid="$_ld_xvid $_ld_pthread" | |
6397 fi | |
6398 fi | |
6399 | |
6400 if test "$_xvid4" = yes ; then | |
6392 _xvid=yes | 6401 _xvid=yes |
6393 _xvid4=yes | 6402 _xvid4=yes |
6394 _def_xvid3='#undef HAVE_XVID3' | 6403 _def_xvid3='#undef HAVE_XVID3' |
6395 _def_xvid4='#define HAVE_XVID4 1' | 6404 _def_xvid4='#define HAVE_XVID4 1' |
6396 _codecmodules="xvid $_codecmodules" | 6405 _codecmodules="xvid $_codecmodules" |
6403 fi | 6412 fi |
6404 fi | 6413 fi |
6405 echores "$_xvid" | 6414 echores "$_xvid" |
6406 | 6415 |
6407 if test "$_xvid4" = yes ; then | 6416 if test "$_xvid4" = yes ; then |
6408 echocheck "XviD 1.1 or higher" | 6417 echocheck "XviD two pass plugin" |
6409 cat > $TMPC << EOF | 6418 cat > $TMPC << EOF |
6410 #include <xvid.h> | 6419 #include <xvid.h> |
6411 int main(void) { xvid_plugin_2pass2_t s; s.vbv_size=0; return 0; } | 6420 int main(void) { xvid_plugin_2pass2_t s; s.vbv_size=0; return 0; } |
6412 EOF | 6421 EOF |
6413 if cc_check $_inc_xvid $_ld_xvid $_ld_lb ; then | 6422 if cc_check $_inc_xvid $_ld_xvid $_ld_lb ; then |