Mercurial > mplayer.hg
comparison configure @ 30124:248d9886d0b0
Fix compilation if FreeType is not available, in particular do not try to build
libass and use the internal ass.h as a stub for structs needed for EOSD.
author | reimar |
---|---|
date | Fri, 01 Jan 2010 18:51:59 +0000 |
parents | 29977961a197 |
children | b932fc1042f1 |
comparison
equal
deleted
inserted
replaced
30123:0f5f75b4a015 | 30124:248d9886d0b0 |
---|---|
6152 | 6152 |
6153 echocheck "SSA/ASS support" | 6153 echocheck "SSA/ASS support" |
6154 # libass depends on FreeType | 6154 # libass depends on FreeType |
6155 if test "$_freetype" = no ; then | 6155 if test "$_freetype" = no ; then |
6156 _ass=no | 6156 _ass=no |
6157 ass_internal=no | |
6157 _res_comment="FreeType support needed" | 6158 _res_comment="FreeType support needed" |
6158 fi | 6159 fi |
6159 | 6160 |
6160 if test "$_ass" = auto ; then | 6161 if test "$_ass" = auto ; then |
6161 cat > $TMPC << EOF | 6162 cat > $TMPC << EOF |
6167 int main(void) { return 0; } | 6168 int main(void) { return 0; } |
6168 EOF | 6169 EOF |
6169 _ass=no | 6170 _ass=no |
6170 cc_check $($_freetypeconfig --cflags) $($_freetypeconfig --libs) && _ass=yes | 6171 cc_check $($_freetypeconfig --cflags) $($_freetypeconfig --libs) && _ass=yes |
6171 if test "$_ass" = no ; then | 6172 if test "$_ass" = no ; then |
6173 ass_internal=no | |
6172 _res_comment="FreeType >= 2.1.8 needed" | 6174 _res_comment="FreeType >= 2.1.8 needed" |
6173 elif test "$ass_internal" = no ; then | 6175 elif test "$ass_internal" = no ; then |
6174 _res_comment="external" | 6176 _res_comment="external" |
6175 extra_ldflags="$extra_ldflags -lass" | 6177 extra_ldflags="$extra_ldflags -lass" |
6176 fi | 6178 fi |