Mercurial > mplayer.hg
comparison configure @ 15810:27b1d5a4f972
makes fribidi <= 0.10.4 works again
author | aurel |
---|---|
date | Thu, 23 Jun 2005 23:40:07 +0000 |
parents | a8854519f3ff |
children | 5aa87072ef31 |
comparison
equal
deleted
inserted
replaced
15809:c4974449b18c | 15810:27b1d5a4f972 |
---|---|
5118 echocheck "fribidi with charsets" | 5118 echocheck "fribidi with charsets" |
5119 if test "$_fribidi" = yes ; then | 5119 if test "$_fribidi" = yes ; then |
5120 if ( $_fribidiconfig --version ) >/dev/null 2>&1 ; then | 5120 if ( $_fribidiconfig --version ) >/dev/null 2>&1 ; then |
5121 cat > $TMPC << EOF | 5121 cat > $TMPC << EOF |
5122 #include <stdio.h> | 5122 #include <stdio.h> |
5123 /* workaround for fribidi 0.10.4 and below */ | |
5124 #define FRIBIDI_CHARSET_UTF8 FRIBIDI_CHAR_SET_UTF8 | |
5123 #include <fribidi/fribidi.h> | 5125 #include <fribidi/fribidi.h> |
5124 /* workaround for fribidi 0.10.4 and below */ | |
5125 #if defined(FRIBIDI_CHARSET_UTF8) && !defined(FRIBIDI_CHAR_SET_UTF8) | |
5126 #define FRIBIDI_CHAR_SET_UTF8 FRIBIDI_CHARSET_UTF8 | |
5127 #endif | |
5128 int main() | 5126 int main() |
5129 { | 5127 { |
5130 if(fribidi_parse_charset("UTF-8") != FRIBIDI_CHAR_SET_UTF8) { | 5128 if(fribidi_parse_charset("UTF-8") != FRIBIDI_CHAR_SET_UTF8) { |
5131 printf("Fribidi headers are not consistents with the library!\n"); | 5129 printf("Fribidi headers are not consistents with the library!\n"); |
5132 exit(1); | 5130 exit(1); |