if (is_table_item (output_item))
ascii_output_table_item (a, to_table_item (output_item));
+#ifdef HAVE_CAIRO
else if (is_chart_item (output_item) && a->chart_file_name != NULL)
{
struct chart_item *chart_item = to_chart_item (output_item);
free (file_name);
}
}
+#endif /* HAVE_CAIRO */
else if (is_text_item (output_item))
{
const struct text_item *text_item = to_text_item (output_item);
/* PSPP - a program for statistical analysis.
- Copyright (C) 2009 Free Software Foundation, Inc.
+ Copyright (C) 2009, 2010 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#ifndef OUTPUT_CAIRO_H
#define OUTPUT_CAIRO_H 1
+#ifdef HAVE_CAIRO
+
#include <cairo/cairo.h>
struct chart_item;
char *xr_draw_png_chart (const struct chart_item *,
const char *file_name_template, int number);
+#endif /* HAVE_CAIRO */
+
#endif /* output/cairo.h */
struct table_item *table_item = to_table_item (output_item);
html_output_table (html, table_item);
}
+#ifdef HAVE_CAIRO
else if (is_chart_item (output_item) && html->chart_file_name != NULL)
{
struct chart_item *chart_item = to_chart_item (output_item);
free (file_name);
}
}
+#endif /* HAVE_CAIRO */
else if (is_text_item (output_item))
{
struct text_item *text_item = to_text_item (output_item);
exit (EXIT_FAILURE);
output_driver_register (driver);
+#ifdef HAVE_CAIRO
/* Render to render.pdf. */
string_map_insert (&options, "output-file", "render.pdf");
string_map_insert (&options, "headers", "off");
if (driver == NULL)
exit (EXIT_FAILURE);
output_driver_register (driver);
+#endif
string_map_destroy (&options);
}