From 5d260c405a513782888541cf963ab4c97325a275 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 19 Dec 2012 16:47:57 +0000 Subject: [PATCH] Efl: Fix FriBidiChar size detection. It's better than nothing, I don't know what the proper fix is. FRIBIDI_CFLAGS just doesn't exist. Doesn't that macro we use call PKG_CHECK_MODULES? SVN revision: 81385 --- configure.ac | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 1c99c74b61..f54dd2fd90 100644 --- a/configure.ac +++ b/configure.ac @@ -1469,13 +1469,7 @@ EFL_OPTIONAL_DEPEND_PKG([evas], [${want_fontconfig}], # fribidi support EFL_OPTIONAL_DEPEND_PKG([evas], [${want_fribidi}], - [FRIBIDI], [fribidi >= 0.19.2], - [ - CPPFLAGS_SAVE="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $FRIBIDI_CFLAGS" - AC_CHECK_SIZEOF([FriBidiChar], [], [#include ]) - CPPFLAGS="$CPPFLAGS_SAVE" - ]) + [FRIBIDI], [fribidi >= 0.19.2]) # harfbuzz support have_harfbuzz_ft="no" @@ -1739,6 +1733,14 @@ CPPFLAGS="$CPPFLAGS -Isrc/lib/eina" AC_CHECK_SIZEOF([Eina_Unicode], [], [#include ]) CPPFLAGS="$CPPFLAGS_SAVE" + +if test "x$have_fribidi" = "xyes" ; then + CPPFLAGS_SAVE="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $EVAS_CFLAGS" + AC_CHECK_SIZEOF([FriBidiChar], [], [#include ]) + CPPFLAGS="$CPPFLAGS_SAVE" +fi + ### Checks for structures AC_CHECK_TYPES([struct sigaction], [], [],