|
|
|
@ -109,10 +109,12 @@ PKG_CHECK_MODULES(PNG, [libpng]) |
|
|
|
|
PKG_CHECK_MODULES(WEBP, [libwebp], [have_webp=yes], [have_webp=no]) |
|
|
|
|
AS_IF([test "x$have_webp" = "xyes"], |
|
|
|
|
[AC_DEFINE([HAVE_WEBP], [1], [Have webp])]) |
|
|
|
|
IMAGE_LIBS="$PIXMAN_LIBS $PNG_LIBS $WEBP_LIBS" |
|
|
|
|
IMAGE_CFLAGS="$PIXMAN_CFLAGS $PNG_CFLAGS $WEBP_CFLAGS" |
|
|
|
|
AC_SUBST(IMAGE_LIBS) |
|
|
|
|
AC_SUBST(IMAGE_CFLAGS) |
|
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(CAIRO, [cairo]) |
|
|
|
|
SHARED_LIBS="$CAIRO_LIBS $PIXMAN_LIBS $PNG_LIBS $WEBP_LIBS" |
|
|
|
|
SHARED_CFLAGS="$CAIRO_CFLAGS $PIXMAN_CFLAGS $PNG_CFLAGS $WEBP_CFLAGS" |
|
|
|
|
AC_SUBST(SHARED_LIBS) |
|
|
|
|
AC_SUBST(SHARED_CFLAGS) |
|
|
|
|
|
|
|
|
|
AC_CHECK_LIB([jpeg], [jpeg_CreateDecompress], have_jpeglib=yes) |
|
|
|
|
if test x$have_jpeglib = xyes; then |
|
|
|
|