Add autofoo stuff for svg

SVN revision: 24835
This commit is contained in:
sebastid 2006-08-17 16:43:30 +00:00 committed by sebastid
parent 63cc2539b2
commit 2b48ecaa61
1 changed files with 52 additions and 0 deletions

View File

@ -910,6 +910,54 @@ xpm_libs=""
AM_CONDITIONAL(BUILD_LOADER_XPM, test x$have_xpm = xyes)
#######################################
## SVG
have_svg="yes";
AC_MSG_CHECKING(whether to enable svg image loader)
AC_ARG_ENABLE(image-loader-svg,
[ --enable-image-loader-svg enable SVG image loader], [
if test x"$enableval" = x"yes" ; then
AC_MSG_RESULT(yes)
have_svg="yes"
else
AC_MSG_RESULT(no)
have_svg="no"
fi
], [
AC_MSG_RESULT($have_svg)
]
)
svg_cflags=""
svg_libs=""
if test "x$have_svg" = "xyes"; then
# Check if really available
PKG_CHECK_MODULES(SVG, librsvg-2.0,
[
have_svg="yes"
],
[
have_svg="no"
]
)
if test "x$have_svg" = "xyes"; then
PKG_CHECK_MODULES(CAIRO_SVG, cairo-svg,
[
have_svg="yes"
svg_cflags="$SVG_CFLAGS $CAIRO_SVG_CFLAGS"
svg_libs="$SVG_LIBS $CAIRO_SVG_LIBS"
],
[
have_svg="no"
]
)
fi
else
AC_MSG_RESULT(no)
fi
AM_CONDITIONAL(BUILD_LOADER_SVG, test x$have_svg = xyes)
#####################################################################
## Cpu based optimizations
@ -1743,6 +1791,8 @@ AC_SUBST(tiff_cflags)
AC_SUBST(tiff_libs)
AC_SUBST(xpm_cflags)
AC_SUBST(xpm_libs)
AC_SUBST(svg_cflags)
AC_SUBST(svg_libs)
# Build the list of required libs for evas.pc.in. Only works for libs
# which install a .pc file of course
@ -1817,6 +1867,7 @@ src/modules/loaders/jpeg/Makefile
src/modules/loaders/png/Makefile
src/modules/loaders/tiff/Makefile
src/modules/loaders/xpm/Makefile
src/modules/loaders/svg/Makefile
src/modules/savers/Makefile
src/modules/savers/edb/Makefile
src/modules/savers/eet/Makefile
@ -1868,6 +1919,7 @@ echo " EET.....................: $have_eet"
echo " EDB.....................: $have_edb"
echo " TIFF....................: $have_tiff"
echo " XPM.....................: $have_xpm"
echo " SVG.....................: $have_svg"
# FIXME: need to add modular image loader system
# FIXME: add more image loader modules
echo