aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-01-16 17:24:01 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:11 +0100
commit63039a76484b181e18a76144f7c38b1467dd861b (patch)
tree4e823866846d025127bc77c401a0a4a457eef98e /configure.ac
parent537c1bf6b534e3dfc07b8b53c674256b7a5dc023 (diff)
Check with pkg-config for gdk-pixbuf and gdk-pixbuf-2.0
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 12 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index e4fb4bed..21fb1be0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -144,10 +144,21 @@ AS_IF([test "x$enable_cairo" != "xno"],
AM_CONDITIONAL([HAVE_CAIRO], test x$havecairo = xtrue)
+PKG_CHECK_MODULES([GDK_pixbuf], [gdk-pixbuf], [],
+[
+ PKG_CHECK_MODULES([GDK_pixbuf_2], [gdk-pixbuf-2.0], [],
+ [
+ AC_ERROR([gdk-pixbuf is required.])
+ ])
+])
+
+
CFLAGS="$CFLAGS $HDF5_CFLAGS $GTK_CFLAGS $GSL_CFLAGS $OPENCL_CFLAGS -pthread"
CFLAGS="$CFLAGS $LIBTIFF_CFLAGS -D_GNU_SOURCE $libPNG_CFLAGS $Cairo_CFLAGS"
+CFLAGS="$CFLAGS $GDK_pixbuf_CFLAGS $GDK_pixbuf_2_CFLAGS"
LIBS="$LIBS $HDF5_LIBS -lm -lz $GSL_LIBS $GTK_LIBS $OPENCL_LIBS -pthread"
-LIBS="$LIBS $LIBTIFF_LIBS $libPNG_LIBS $Cairo_LIBS"
+LIBS="$LIBS $LIBTIFF_LIBS $libPNG_LIBS $Cairo_LIBS $GDK_pixbuf_LIBS"
+LIBS="$LIBS $GDK_pixbuf_2_LIBS"
AC_CONFIG_FILES(Makefile lib/Makefile)
AC_OUTPUT