Commit 810704b6 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

configure: use pkg-config for fontconfig

It´s shipped a .pc file for about 15 years.
parent f564aefb
...@@ -3169,14 +3169,14 @@ if test "${enable_freetype}" != "no"; then ...@@ -3169,14 +3169,14 @@ if test "${enable_freetype}" != "no"; then
VLC_ADD_CPPFLAGS([skins2],[${FREETYPE_CFLAGS}]) VLC_ADD_CPPFLAGS([skins2],[${FREETYPE_CFLAGS}])
VLC_ADD_LIBS([skins2],[${FREETYPE_LIBS}]) VLC_ADD_LIBS([skins2],[${FREETYPE_LIBS}])
dnl fontconfig support dnl fontconfig support
if test "${SYS}" != "mingw32" -a "${SYS}" != "darwin" ; then AS_IF([test "${enable_fontconfig}" != "no" -a "${SYS}" != "mingw32" -a "${SYS}" != "darwin"], [
if test "${enable_fontconfig}" != "no"; then PKG_CHECK_MODULES(FONTCONFIG, [fontconfig], [
AC_CHECK_HEADERS(fontconfig/fontconfig.h, [ have_fontconfig="yes"
have_fontconfig="yes" ], [
],[AC_MSG_WARN([library fontconfig not found. Styles will be disabled in freetype])]) AC_MSG_WARN([${FONTCONFIG_PKG_ERRORS}. Styles will be disabled in FreeType.])
fi ])
fi ])
dnl fribidi support dnl fribidi support
if test "${enable_fribidi}" != "no"; then if test "${enable_fribidi}" != "no"; then
......
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