summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in16
1 files changed, 13 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index b31bf49..40b5f75 100644
--- a/configure.in
+++ b/configure.in
@@ -35,8 +35,8 @@ if test x$with_client != xno && test -z "$CLIENT"; then
gw_CHECK_QT
# CXXFLAGS="$CXXFLAGS $QT_CXXLAGS"
# LDFLAGS="$LDFLAGS $QT_LDADD"
- AC_SUBST(QT_CXXFLAGS)
- AC_SUBST(QT_LDADD)
+ AC_SUBST(QT_CXXFLAGS)
+ AC_SUBST(QT_LDADD)
dnl ======================
dnl Check for the Xv extension
@@ -50,7 +50,17 @@ if test x$with_client != xno && test -z "$CLIENT"; then
AC_CHECK_HEADER(libraw1394/raw1394.h, , AC_MSG_ERROR([*** libraw1394 headers not found!]))
AC_CHECK_LIB(raw1394, raw1394_get_userdata, , AC_MSG_ERROR([*** libraw1394 not found!]))
- AC_OUTPUT(client/Makefile)
+ dnl ======================
+ dnl Check for the cairo library
+ dnl ======================
+ AC_CHECK_HEADER(cairo/cairo-features.h, , AC_MSG_ERROR([*** cairo headers not found!]))
+ CAIRO_CXXFLAGS="`pkg-config --cflags cairo` -I/usr/local/include"
+ AC_SUBST(CAIRO_CXXFLAGS)
+ AC_CHECK_LIB(svg-cairo, svg_cairo_create, , AC_MSG_ERROR([*** libcairo not found!]))
+ CAIRO_LDFLAGS="`pkg-config --libs cairo` -lsvg -lsvg-cairo"
+ AC_SUBST(CAIRO_LDFLAGS)
+
+ AC_OUTPUT(client/Makefile)
dnl Make code aware of the gui
AC_DEFINE([USE_CLIENT], [], [Is defined if the project is configured to compile with client])