From: Jean-Baptiste Kempf Date: Fri, 1 Apr 2011 23:09:54 +0000 (+0200) Subject: Configure: do not enable fontconfig on Win32 for Freetype X-Git-Tag: 1.2.0-pre1~3255 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=1c093c7cad02a73e0974270e601acbd8769f737e;p=vlc Configure: do not enable fontconfig on Win32 for Freetype --- diff --git a/configure.ac b/configure.ac index beb5dd625f..4464374ab4 100644 --- a/configure.ac +++ b/configure.ac @@ -3167,8 +3167,7 @@ AC_ARG_ENABLE(fribidi, [ --enable-fribidi fribidi support (default enabled)]) AC_ARG_ENABLE(fontconfig, [ --enable-fontconfig fontconfig support (default enabled)]) -if test "${enable_freetype}" != "no" -then +if test "${enable_freetype}" != "no"; then PKG_CHECK_MODULES(FREETYPE, freetype2,[ VLC_ADD_PLUGIN([freetype]) have_freetype=yes @@ -3177,16 +3176,20 @@ then VLC_ADD_LIBS([freetype],[-liconv -lz]) fi VLC_ADD_LIBS([freetype skins2],[${FREETYPE_LIBS}]) - if test "${enable_fontconfig}" != "no" - then - AC_CHECK_HEADERS(fontconfig/fontconfig.h, - [VLC_ADD_CPPFLAGS([freetype],[-DHAVE_FONTCONFIG]) - VLC_ADD_LIBS([freetype],[-lfontconfig])]) - AC_CHECK_HEADERS(Carbon/Carbon.h, - [VLC_ADD_LDFLAGS([freetype],[-Wl,-framework,Carbon])]) + + if test "${SYS}" != "mingw32"; then + if test "${enable_fontconfig}" != "no"; then + AC_CHECK_HEADERS(fontconfig/fontconfig.h, + [VLC_ADD_CPPFLAGS([freetype],[-DHAVE_FONTCONFIG]) + VLC_ADD_LIBS([freetype],[-lfontconfig])]) + AC_CHECK_HEADERS(Carbon/Carbon.h, + [VLC_ADD_LDFLAGS([freetype],[-Wl,-framework,Carbon])]) + fi + else + VLC_ADD_LIBS([freetype],[-lgdi32]) fi - dnl fribidi support + dnl fribidi support if test "${enable_fribidi}" != "no" then PKG_CHECK_MODULES(FRIBIDI, fribidi, [