1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-10 15:54:17 +01:00

wrlib: added support for imagemagick third-party lib

It uses to provide some missing common image format
like SVG, BMP, PICT, ...
This commit is contained in:
David Maciejak
2014-03-08 11:02:08 +08:00
committed by Carlos R. Mafra
parent b6ffe90ec4
commit bb69682b88
10 changed files with 183 additions and 2 deletions

View File

@@ -322,6 +322,11 @@ dnl ==========
dnl AC_ARG_VAR(PKGCONFIG, [pkg-config command])
AC_CHECK_PROG(PKGCONFIG, pkg-config, pkg-config)
dnl MagickWand-config
dnl ==========
dnl AC_ARG_VAR(MAGICKWCONFIG, [MagickWand-config command])
AC_CHECK_PROG(MAGICKWCONFIG, MagickWand-config, MagickWand-config)
dnl gettext
dnl =======
@@ -559,6 +564,26 @@ else
fi
AC_SUBST(FCLIBS)
dnl
dnl libMagickWand
dnl
AC_MSG_CHECKING([for libmagickwand header])
IMFLAGS=`$MAGICKWCONFIG --cflags`
if test "x$IMFLAGS" = "x" ; then
AC_MSG_RESULT([not found])
else
AC_MSG_RESULT([found])
fi
AC_SUBST(IMFLAGS)
AC_MSG_CHECKING([for libmagickwand library])
IMLIBS=`$MAGICKWCONFIG --ldflags`
if test "x$IMLIBS" = "x" ; then
AC_MSG_RESULT([not found])
else
AC_MSG_RESULT([found])
fi
AC_SUBST(IMLIBS)
dnl Xft2 antialiased font support
dnl =============================
@@ -690,6 +715,17 @@ AC_ARG_ENABLE([webp],
WM_IMGFMT_CHECK_WEBP
dnl MAGICK Support
dnl ===========
AC_ARG_ENABLE([magick],
[AS_HELP_STRING([--disable-magick], [disable MAGICK support through libMagickWand])],
[AS_CASE(["$enableval"],
[yes|no], [],
[AC_MSG_ERROR([bad value $enableval for --enable-magick])] )],
[enable_magick=auto])
WM_IMGFMT_CHECK_MAGICK
dnl PPM Support
dnl ===========
# The PPM format is always enabled because we have built-in support for the format