Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas


Modified Files:
        configure.in 


Log Message:
Add autofoo stuff for svg

===================================================================
RCS file: /cvs/e/e17/libs/evas/configure.in,v
retrieving revision 1.173
retrieving revision 1.174
diff -u -3 -r1.173 -r1.174
--- configure.in        12 Aug 2006 09:16:30 -0000      1.173
+++ configure.in        17 Aug 2006 16:43:30 -0000      1.174
@@ -910,6 +910,54 @@
 
 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_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/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 "  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



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to