+PKG_CHECK_MODULES([CAIRO], [cairo >= 1.8 pango pangocairo],
+ [HAVE_CAIRO=yes
+ CPPFLAGS="$CPPFLAGS $CAIRO_CFLAGS"
+ LIBS="$LIBPLOT_LIBS $LIBS"
+ AC_DEFINE([HAVE_CAIRO], 1,
+ [Define to 1 if Cairo and Pango are available.])],
+ [HAVE_CAIRO=no
+ PSPP_OPTIONAL_PREREQ([cairo 1.8 or later])])
+AM_CONDITIONAL([HAVE_CAIRO], [test $HAVE_CAIRO = yes])
+