Commit c320a4eb authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Configure: more information about missing fontconfig/fribidi

parent f8db78d5
...@@ -3268,51 +3268,51 @@ dnl ...@@ -3268,51 +3268,51 @@ dnl
dnl freetype module dnl freetype module
dnl dnl
AC_ARG_ENABLE(freetype, AC_ARG_ENABLE(freetype,
[ --enable-freetype freetype support (default enabled)]) [ --enable-freetype freetype support (default auto)])
AC_ARG_ENABLE(fribidi, AC_ARG_ENABLE(fribidi,
[ --enable-fribidi fribidi support (default enabled)]) [ --enable-fribidi fribidi support (default auto)])
AC_ARG_ENABLE(fontconfig, AC_ARG_ENABLE(fontconfig,
[ --enable-fontconfig fontconfig support (default enabled)]) [ --enable-fontconfig fontconfig support (default auto)])
if test "${enable_freetype}" != "no"; then if test "${enable_freetype}" != "no"; then
PKG_CHECK_MODULES(FREETYPE, freetype2,[ PKG_CHECK_MODULES(FREETYPE, freetype2, [
VLC_ADD_PLUGIN([freetype])
have_freetype=yes have_freetype=yes
VLC_ADD_PLUGIN([freetype])
VLC_ADD_CPPFLAGS([freetype skins2],[${FREETYPE_CFLAGS}]) VLC_ADD_CPPFLAGS([freetype skins2],[${FREETYPE_CFLAGS}])
if test "${SYS}" = "mingw32"; then if test "${SYS}" = "mingw32"; 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}])
AC_CHECK_HEADERS(Carbon/Carbon.h,
[VLC_ADD_LDFLAGS([freetype],[-Wl,-framework,Carbon])])
dnl fontconfig support
if test "${SYS}" != "mingw32"; then if test "${SYS}" != "mingw32"; then
if test "${enable_fontconfig}" != "no"; 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_MSG_WARN([library fontconfig not found. Styles will be disabled in freetype])])
[VLC_ADD_LDFLAGS([freetype],[-Wl,-framework,Carbon])])
fi fi
else else
VLC_ADD_LIBS([freetype],[-lgdi32]) VLC_ADD_LIBS([freetype],[-lgdi32])
fi fi
dnl fribidi support dnl fribidi support
if test "${enable_fribidi}" != "no" if test "${enable_fribidi}" != "no"; then
then
PKG_CHECK_MODULES(FRIBIDI, fribidi, [ PKG_CHECK_MODULES(FRIBIDI, fribidi, [
VLC_ADD_CPPFLAGS([freetype skins2], [${FRIBIDI_CFLAGS} -DHAVE_FRIBIDI]) VLC_ADD_CPPFLAGS([freetype skins2], [${FRIBIDI_CFLAGS} -DHAVE_FRIBIDI])
VLC_ADD_LIBS([freetype skins2], [${FRIBIDI_LIBS}]) VLC_ADD_LIBS([freetype skins2], [${FRIBIDI_LIBS}])
]) ],[AC_MSG_WARN([library fribidi not found. Bidirectional support will be disabled in freetype])])
fi fi
],[ ],[
have_freetype=no have_freetype=no
AS_IF([ test "${enable_freetype}" = "yes"],[ AS_IF([ test "${enable_freetype}" = "yes"],[
AC_MSG_ERROR([I couldn't find the freetype package. You can download libfreetype2 AC_MSG_ERROR([Freetype2 package cannot be detected. Install Freetype2 development or configure with --disable-freetype.])
from http://www.freetype.org/, or configure with --disable-freetype. Have a nice day.
])
]) ])
]) ])
fi fi
dnl dnl
......
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