Commit 9b1d3726 authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

Don't define HAVE_FREETYPE unless we have freetype.h.

parent e2a55be4
...@@ -406,7 +406,6 @@ else ...@@ -406,7 +406,6 @@ else
FREETYPEINCL="" FREETYPEINCL=""
wine_cv_msg_freetype=yes wine_cv_msg_freetype=yes
else else
AC_DEFINE(HAVE_FREETYPE, 1, [Define if FreeType 2 is installed])
FREETYPELIBS=`$ft_devel --libs` FREETYPELIBS=`$ft_devel --libs`
FREETYPEINCL=`$ft_devel --cflags` FREETYPEINCL=`$ft_devel --cflags`
ac_save_CPPFLAGS="$CPPFLAGS" ac_save_CPPFLAGS="$CPPFLAGS"
...@@ -424,7 +423,16 @@ else ...@@ -424,7 +423,16 @@ else
AC_DEFINE(HAVE_FREETYPE_FTTRIGON_H, 1, AC_DEFINE(HAVE_FREETYPE_FTTRIGON_H, 1,
[Define if you have the <freetype/fttrigon.h> header file.])) [Define if you have the <freetype/fttrigon.h> header file.]))
CPPFLAGS="$ac_save_CPPFLAGS" CPPFLAGS="$ac_save_CPPFLAGS"
wine_cv_msg_freetype=no dnl Check that we have at least freetype/freetype.h
if test "$ac_cv_header_freetype_freetype_h" = "yes"
then
AC_DEFINE(HAVE_FREETYPE, 1, [Define if FreeType 2 is installed])
wine_cv_msg_freetype=no
else
FREETYPELIBS=""
FREETYPEINCL=""
wine_cv_msg_freetype=yes
fi
fi fi
fi fi
AC_SUBST(FREETYPELIBS) AC_SUBST(FREETYPELIBS)
...@@ -1426,7 +1434,8 @@ if test "$wine_cv_msg_freetype" = "yes" ...@@ -1426,7 +1434,8 @@ if test "$wine_cv_msg_freetype" = "yes"
then then
echo echo
echo "*** Note: Your system appears to have the FreeType 2 runtime libraries" echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
echo "*** installed, but 'freetype-config' is not in your PATH. Install the" echo "*** installed, but either 'freetype-config' is not in your PATH or"
echo "*** you do not have the FreeType include files. Install the"
echo "*** freetype-devel package (or its equivalent on your distribution) to" echo "*** freetype-devel package (or its equivalent on your distribution) to"
echo "*** enable Wine to use TrueType fonts." echo "*** enable Wine to use TrueType fonts."
fi fi
......
...@@ -472,12 +472,12 @@ ...@@ -472,12 +472,12 @@
/* Define if we have CUPS */ /* Define if we have CUPS */
#undef HAVE_CUPS #undef HAVE_CUPS
/* Define if FreeType 2 is installed */
#undef HAVE_FREETYPE
/* Define if you have the <freetype/fttrigon.h> header file. */ /* Define if you have the <freetype/fttrigon.h> header file. */
#undef HAVE_FREETYPE_FTTRIGON_H #undef HAVE_FREETYPE_FTTRIGON_H
/* Define if FreeType 2 is installed */
#undef HAVE_FREETYPE
/* Define if we can use ppdev.h for parallel port access */ /* Define if we can use ppdev.h for parallel port access */
#undef HAVE_PPDEV #undef HAVE_PPDEV
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment