mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Make sure HAVE_FT_BITMAP_SIZE_Y_PPEM has the right value; ported from the cairo configure.in. Bug 327879, patch by Karl Tomlinson <mozbugz@karlt.net>, r=pavlov
This commit is contained in:
parent
a53341e7fc
commit
5ef1ad0e48
33
configure.in
33
configure.in
@ -2920,8 +2920,41 @@ else
|
||||
|
||||
LDFLAGS="$_SAVE_LDFLAGS"
|
||||
|
||||
dnl ========================================================
|
||||
dnl = Check for freetype2 and its functionality
|
||||
dnl ========================================================
|
||||
AC_CHECK_FT2(6.1.0, [_HAVE_FREETYPE2=1], [_HAVE_FREETYPE2=])
|
||||
|
||||
if test "$_HAVE_FREETYPE2"; then
|
||||
_SAVE_LIBS="$LIBS"
|
||||
_SAVE_CFLAGS="$CFLAGS"
|
||||
LIBS="$LIBS $FT2_LIBS"
|
||||
CFLAGS="$CFLAGS $FT2_CFLAGS"
|
||||
|
||||
AC_CACHE_CHECK(for FT_Bitmap_Size.y_ppem,
|
||||
ac_cv_member_FT_Bitmap_Size_y_ppem,
|
||||
[AC_TRY_COMPILE([#include <ft2build.h>
|
||||
#include FT_FREETYPE_H],
|
||||
[FT_Bitmap_Size s;
|
||||
if (sizeof s.y_ppem) return 0;
|
||||
return 1],
|
||||
ac_cv_member_FT_Bitmap_Size_y_ppem=yes,
|
||||
ac_cv_member_FT_Bitmap_Size_y_ppem=no)])
|
||||
if test "$ac_cv_member_FT_Bitmap_Size_y_ppem" = yes; then
|
||||
HAVE_FT_BITMAP_SIZE_Y_PPEM=1
|
||||
else
|
||||
HAVE_FT_BITMAP_SIZE_Y_PPEM=0
|
||||
fi
|
||||
AC_DEFINE_UNQUOTED(HAVE_FT_BITMAP_SIZE_Y_PPEM,
|
||||
$HAVE_FT_BITMAP_SIZE_Y_PPEM,
|
||||
[FT_Bitmap_Size structure includes y_ppem field])
|
||||
|
||||
AC_CHECK_FUNCS(FT_GlyphSlot_Embolden FT_Load_Sfnt_Table FT_Select_Size)
|
||||
|
||||
LIBS="$_SAVE_LIBS"
|
||||
CFLAGS="$_SAVE_CFLAGS"
|
||||
fi
|
||||
|
||||
fi # $no_x
|
||||
|
||||
AC_SUBST(XCFLAGS)
|
||||
|
Loading…
Reference in New Issue
Block a user