comparison configure @ 31204:5c4a513ca9eb

Actually run a detection whether external libass exists, instead of just assuming it does when internal libass is disabled.
author reimar
date Sat, 29 May 2010 14:57:17 +0000
parents cf8a807cf4af
children e79623333876
comparison
equal deleted inserted replaced
31203:cf8a807cf4af 31204:5c4a513ca9eb
6422 cc_check $($_freetypeconfig --cflags) $($_freetypeconfig --libs) && _ass=yes 6422 cc_check $($_freetypeconfig --cflags) $($_freetypeconfig --libs) && _ass=yes
6423 if test "$_ass" = no ; then 6423 if test "$_ass" = no ; then
6424 ass_internal=no 6424 ass_internal=no
6425 res_comment="FreeType >= 2.2.1 needed" 6425 res_comment="FreeType >= 2.2.1 needed"
6426 elif test "$ass_internal" = no ; then 6426 elif test "$ass_internal" = no ; then
6427 res_comment="external" 6427 cat > $TMPC << EOF
6428 extra_ldflags="$extra_ldflags -lass" 6428 #include <ass/ass.h>
6429 int main(void) {
6430 #if defined(LIBASS_VERSION) && LIBASS_VERSION >= 0x00907010
6431 ass_process_force_style(0);
6432 #else
6433 process_force_style(0);
6434 #endif
6435 return 0;
6436 }
6437 EOF
6438 if cc_check -lass ; then
6439 res_comment="external"
6440 extra_ldflags="$extra_ldflags -lass"
6441 else
6442 _ass=no
6443 fi
6429 fi 6444 fi
6430 fi 6445 fi
6431 if test "$_ass" = yes ; then 6446 if test "$_ass" = yes ; then
6432 def_ass='#define CONFIG_ASS 1' 6447 def_ass='#define CONFIG_ASS 1'
6433 else 6448 else