]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Check for gdk_pixbuf_xlib-2.0 in configure script
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:38 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:38 +0000 (11:23 -0700)
gdk_pixbuf_xlib-2.0 is no longer part of gdk-pixbuf2 in newer
distributions (for example Fedora 26), so it's no longer pulled
in as a dependency from the gtk devel packages. Therefore we
need an extra check for it.

open-vm-tools/configure.ac

index 117cf97657eeb18c00fdb34156cd28110c068b47..22c9380e2bca6269f0e77a60c153a12b0ed866dd 100644 (file)
@@ -716,6 +716,16 @@ else
       have_xcomposite="yes"
    fi
 
+   AC_VMW_CHECK_LIB([gdk_pixbuf_xlib-2.0],
+                    [GDK_PIXBUF_XLIB2],
+                    [gdk-pixbuf-xlib-2.0],
+                    [],
+                    [],
+                    [gdk-pixbuf-xlib/gdk-pixbuf-xlib.h],
+                    [],
+                    [],
+                    [AC_MSG_ERROR([gdk-pixbuf-xlib-2.0 not found. Please configure without X11 (using --without-x) or install the gdk-pixbuf-xlib-2.0 devel package.])])
+
    # Check whether we have gtk+ 3.0.
    if test "$with_gtk3" != "no"; then
       # gdk_display_get_default_group (added in gtk+ 2.4.0) is function currently