? example.patch
Index: examples/cairosimple.c
===================================================================
RCS file: /cvs/gnome/pango/examples/cairosimple.c,v
retrieving revision 1.5
diff -u -r1.5 cairosimple.c
--- examples/cairosimple.c	7 May 2005 18:05:17 -0000	1.5
+++ examples/cairosimple.c	6 Dec 2005 10:46:29 -0000
@@ -57,7 +57,7 @@
 {
   cairo_t *cr;
   char *filename;
-  cairo_status_t status;
+  cairo_status_t status = CAIRO_STATUS_SUCCESS;
   cairo_surface_t *surface;
 
   if (argc != 2)
@@ -79,7 +79,9 @@
   draw_text (cr);
   cairo_destroy (cr);
   
+#if CAIRO_HAS_PNG_FUNCTIONS
   status = cairo_surface_write_to_png (surface, filename);
+#endif
   cairo_surface_destroy (surface);
 
   if (status != CAIRO_STATUS_SUCCESS)
