# HG changeset patch # User diego # Date 1323085095 0 # Node ID c25804f1521e69fe82519081c2b8d28fe20c2b31 # Parent f2f80a26f8b7715217bf60f83cd0ae16ab844077 configure: (internal) libass depends on FriBiDi now; check availability diff -r f2f80a26f8b7 -r c25804f1521e configure --- a/configure Mon Dec 05 11:38:13 2011 +0000 +++ b/configure Mon Dec 05 11:38:15 2011 +0000 @@ -5911,12 +5911,44 @@ echores "$_fontconfig" +echocheck "fribidi with charsets" +if test "$_fribidi" = auto ; then + cat > $TMPC << EOF +#include +/* workaround for fribidi 0.10.4 and below */ +#define FRIBIDI_CHARSET_UTF8 FRIBIDI_CHAR_SET_UTF8 +#include +int main(void) { + if (fribidi_parse_charset("UTF-8") != FRIBIDI_CHAR_SET_UTF8) + exit(1); + return 0; +} +EOF + _fribidi=no + cc_check -lfribidi && _fribidi=yes && extra_ldflags="$extra_ldflags -lfribidi" + if $_pkg_config --exists fribidi > /dev/null 2>&1 && + test "$_fribidi" = no ; then + inc_tmp="$($_pkg_config --cflags fribidi)" + ld_tmp="$($_pkg_config --libs fribidi)" + cc_check $inc_tmp $ld_tmp && _fribidi=yes && + extra_cflags="$extra_cflags $inc_tmp" && + extra_ldflags="$extra_ldflags $ld_tmp" + fi +fi +if test "$_fribidi" = yes ; then + def_fribidi='#define CONFIG_FRIBIDI 1' +else + def_fribidi='#undef CONFIG_FRIBIDI' +fi +echores "$_fribidi" + + echocheck "SSA/ASS support" -# libass depends on FreeType -if test "$_freetype" = no ; then +# libass depends on FreeType and FriBiDi +if test "$_freetype" = no || test "$_fribidi" = no ; then _ass=no ass_internal=no - res_comment="FreeType support needed" + res_comment="FreeType and FriBiDi support needed" fi if test "$_ass" = auto ; then @@ -5967,38 +5999,6 @@ echores "$_ass" -echocheck "fribidi with charsets" -if test "$_fribidi" = auto ; then - cat > $TMPC << EOF -#include -/* workaround for fribidi 0.10.4 and below */ -#define FRIBIDI_CHARSET_UTF8 FRIBIDI_CHAR_SET_UTF8 -#include -int main(void) { - if (fribidi_parse_charset("UTF-8") != FRIBIDI_CHAR_SET_UTF8) - exit(1); - return 0; -} -EOF - _fribidi=no - cc_check -lfribidi && _fribidi=yes && extra_ldflags="$extra_ldflags -lfribidi" - if $_pkg_config --exists fribidi > /dev/null 2>&1 && - test "$_fribidi" = no ; then - inc_tmp="$($_pkg_config --cflags fribidi)" - ld_tmp="$($_pkg_config --libs fribidi)" - cc_check $inc_tmp $ld_tmp && _fribidi=yes && - extra_cflags="$extra_cflags $inc_tmp" && - extra_ldflags="$extra_ldflags $ld_tmp" - fi -fi -if test "$_fribidi" = yes ; then - def_fribidi='#define CONFIG_FRIBIDI 1' -else - def_fribidi='#undef CONFIG_FRIBIDI' -fi -echores "$_fribidi" - - echocheck "ENCA" if test "$_enca" = auto ; then _enca=no