2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>

* configure.ac: Check for ft2build.h.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-02-09 14:09:08 +01:00
parent 62509f0434
commit 660960d697
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
* configure.ac: Check for ft2build.h.
2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
* kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".

View File

@ -679,6 +679,16 @@ if test x"$grub_mkfont_excuse" = x ; then
freetype_cflags=`freetype-config --cflags`
freetype_libs=`freetype-config --libs`
fi
if test x"$grub_mkfont_excuse" = x ; then
# Check for freetype libraries.
SAVED_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $freetype_cflags"
AC_CHECK_HEADERS([ft2build.h], [],
[grub_mkfont_excuse=["need freetype2 headers"]])
CFLAGS="$SAVED_CFLAGS"
fi
if test x"$enable_grub_mkfont" = xyes && test x"$grub_mkfont_excuse" != x ; then
AC_MSG_ERROR([grub-mkfont was explicitly requested but can't be compiled])
fi