Commit 03d646d3 authored by Tiago Peixoto's avatar Tiago Peixoto

Include test for pycairo.h header in configure.ac

parent 6b959e20
......@@ -255,6 +255,14 @@ if test "$USING_CAIRO" = "yes"; then
AC_SUBST(CAIROMM_CFLAGS)
AC_SUBST(CAIROMM_LIBS)
AC_PYTHON_MODULE(cairo)
[OLD_CXXFLAGS="${CXXFLAGS}"]
[OLD_CPPFLAGS="${CPPFLAGS}"]
[CXXFLAGS="${CXXFLAGS} ${CAIROMM_CFLAGS}"]
[CPPFLAGS="${CPPFLAGS} ${CAIROMM_CFLAGS}"]
AC_CHECK_HEADER([pycairo/pycairo.h], [],
[AC_MSG_ERROR([pycairo headers not found])])
[CXXFLAGS="${OLD_CXXFLAGS}"]
[CPPFLAGS="${OLD_CPPFLAGS}"]
fi
dnl Checks for typedefs, structures, and compiler characteristics.
......
......@@ -38,7 +38,7 @@
#include <cairommconfig.h>
#include <cairomm/context.h>
#include <cairomm/surface.h>
#include "pycairo/pycairo.h"
#include <pycairo/pycairo.h>
#include <boost/mpl/map/map50.hpp>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment