changeset 15799:a8854519f3ff

fix fribidi 0.10.5 and greater support (patch by Amir Shalem < amir at boom.org.il >)
author aurel
date Wed, 22 Jun 2005 22:12:55 +0000
parents 9bbda935c1df
children 56383b220e8b
files configure
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Wed Jun 22 13:00:36 2005 +0000
+++ b/configure	Wed Jun 22 22:12:55 2005 +0000
@@ -5121,9 +5121,13 @@
 	cat > $TMPC << EOF
 #include <stdio.h>
 #include <fribidi/fribidi.h>
+/* workaround for fribidi 0.10.4 and below */
+#if defined(FRIBIDI_CHARSET_UTF8) && !defined(FRIBIDI_CHAR_SET_UTF8)
+#define FRIBIDI_CHAR_SET_UTF8 FRIBIDI_CHARSET_UTF8
+#endif
 int main()
 {
-    if(fribidi_parse_charset("UTF-8") != FRIBIDI_CHARSET_UTF8) {
+    if(fribidi_parse_charset("UTF-8") != FRIBIDI_CHAR_SET_UTF8) {
        printf("Fribidi headers are not consistents with the library!\n");
        exit(1);
     }