diff --git a/configure.ac b/configure.ac index ebd3401..f50537a 100644 --- a/configure.ac +++ b/configure.ac @@ -37,6 +37,8 @@ PKG_CHECK_MODULES([LIBXML], [libxml-2.0]) PKG_CHECK_MODULES([LIBXSLT], [libexslt]) PKG_CHECK_MODULES([WEBKIT], [webkit2gtk-4.0]) PKG_CHECK_MODULES([GDA], [libgda-5.0 libgda-sqlite-5.0]) +PKG_CHECK_MODULES([PIXBUF], [gdk-pixbuf-2.0]) +PKG_CHECK_MODULES([RSVG], [librsvg-2.0]) PKG_CHECK_MODULES([SWE_GLIB], [swe-glib >= 2.1.0]) LIBGD_INIT([ diff --git a/src/Makefile.am b/src/Makefile.am index e681b70..f7438cf 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -32,7 +32,7 @@ AM_CPPFLAGS = -DG_LOG_DOMAIN=\"Astrognome\" -DLOCALEDIR=\"$(localedir)\" -DPKGDA bin_PROGRAMS = astrognome astrognome_SOURCES = $(astrognome_source_files) $(BUILT_SOURCES) -astrognome_LDADD = $(SWE_GLIB_LIBS) $(GTK_LIBS) $(LIBXML_LIBS) $(LIBXSLT_LIBS) $(WEBKIT_LIBS) $(GDA_LIBS) $(top_builddir)/libgd/libgd.la +astrognome_LDADD = $(SWE_GLIB_LIBS) $(GTK_LIBS) $(LIBXML_LIBS) $(LIBXSLT_LIBS) $(WEBKIT_LIBS) $(GDA_LIBS) $(PIXBUF_LIBS) $(RSVG_LIBS) $(top_builddir)/libgd/libgd.la astrognome_LDFLAGS = -rdynamic -astrognome_CFLAGS = $(SWE_GLIB_CFLAGS) $(CFLAGS) $(GTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBXSLT_CFLAGS) $(WEBKIT_CFLAGS) $(GDA_CFLAGS) -Wall +astrognome_CFLAGS = $(SWE_GLIB_CFLAGS) $(CFLAGS) $(GTK_CFLAGS) $(LIBXML_CFLAGS) $(LIBXSLT_CFLAGS) $(WEBKIT_CFLAGS) $(GDA_CFLAGS) $(PIXBUF_CFLAGS) $(RSVG_CFLAGS) -Wall diff --git a/src/ag-chart.c b/src/ag-chart.c index 2d73769..66a59b7 100644 --- a/src/ag-chart.c +++ b/src/ag-chart.c @@ -10,6 +10,7 @@ #include #include #include +#include #include "config.h" #include "astrognome.h" @@ -41,6 +42,10 @@ typedef enum { XML_CONVERT_INT } XmlConvertType; +#if !LIBRSVG_HAVE_CSS +# error "We need RSVG CSS support to export charts as images!" +#endif + G_DEFINE_QUARK(ag_chart_error_quark, ag_chart_error); G_DEFINE_TYPE_WITH_PRIVATE(AgChart, ag_chart, GSWE_TYPE_MOMENT);