Commit 1c093c7c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Configure: do not enable fontconfig on Win32 for Freetype

parent 375bd7cf
...@@ -3167,8 +3167,7 @@ AC_ARG_ENABLE(fribidi, ...@@ -3167,8 +3167,7 @@ AC_ARG_ENABLE(fribidi,
[ --enable-fribidi fribidi support (default enabled)]) [ --enable-fribidi fribidi support (default enabled)])
AC_ARG_ENABLE(fontconfig, AC_ARG_ENABLE(fontconfig,
[ --enable-fontconfig fontconfig support (default enabled)]) [ --enable-fontconfig fontconfig support (default enabled)])
if test "${enable_freetype}" != "no" if test "${enable_freetype}" != "no"; then
then
PKG_CHECK_MODULES(FREETYPE, freetype2,[ PKG_CHECK_MODULES(FREETYPE, freetype2,[
VLC_ADD_PLUGIN([freetype]) VLC_ADD_PLUGIN([freetype])
have_freetype=yes have_freetype=yes
...@@ -3177,14 +3176,18 @@ then ...@@ -3177,14 +3176,18 @@ then
VLC_ADD_LIBS([freetype],[-liconv -lz]) VLC_ADD_LIBS([freetype],[-liconv -lz])
fi fi
VLC_ADD_LIBS([freetype skins2],[${FREETYPE_LIBS}]) VLC_ADD_LIBS([freetype skins2],[${FREETYPE_LIBS}])
if test "${enable_fontconfig}" != "no"
then if test "${SYS}" != "mingw32"; then
if test "${enable_fontconfig}" != "no"; then
AC_CHECK_HEADERS(fontconfig/fontconfig.h, AC_CHECK_HEADERS(fontconfig/fontconfig.h,
[VLC_ADD_CPPFLAGS([freetype],[-DHAVE_FONTCONFIG]) [VLC_ADD_CPPFLAGS([freetype],[-DHAVE_FONTCONFIG])
VLC_ADD_LIBS([freetype],[-lfontconfig])]) VLC_ADD_LIBS([freetype],[-lfontconfig])])
AC_CHECK_HEADERS(Carbon/Carbon.h, AC_CHECK_HEADERS(Carbon/Carbon.h,
[VLC_ADD_LDFLAGS([freetype],[-Wl,-framework,Carbon])]) [VLC_ADD_LDFLAGS([freetype],[-Wl,-framework,Carbon])])
fi fi
else
VLC_ADD_LIBS([freetype],[-lgdi32])
fi
dnl fribidi support dnl fribidi support
if test "${enable_fribidi}" != "no" if test "${enable_fribidi}" != "no"
......
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