[vte] Add x11 to pkg-config dep list on gdk-x11



commit be41faea3651c2a90012648490ebf346eac82d04
Author: Christian Persch <chpe gnome org>
Date:   Sun Apr 4 17:03:24 2010 +0200

    Add x11 to pkg-config dep list on gdk-x11
    
    Bug #613525.

 configure.in |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/configure.in b/configure.in
index 9e9fc4c..e9d8806 100644
--- a/configure.in
+++ b/configure.in
@@ -336,7 +336,15 @@ case "$vte_cv_termcap_lib" in
 esac
 
 # Search for the required modules.
-VTE_PKGS="glib-2.0 >= $GLIB_REQUIRED gobject-2.0 pango >= $PANGO_REQUIRED gtk+-2.0 >= $GTK_REQUIRED gobject-2.0 gio-2.0 gio-unix-2.0"
+
+# We have a direct dependency on X11 on gdk-x11, see bug #613525
+GDK_TARGET="$($PKG_CONFIG --variable target gdk-2.0)"
+case "$GDK_TARGET" in
+  x11) PLATFORM_PKGS="x11" ;;
+  *) PLATFORM_PKGS="" ;;
+esac
+
+VTE_PKGS="glib-2.0 >= $GLIB_REQUIRED gobject-2.0 pango >= $PANGO_REQUIRED gtk+-2.0 >= $GTK_REQUIRED gobject-2.0 gio-2.0 gio-unix-2.0 $PLATFORM_PKGS"
 PKG_CHECK_MODULES([VTE],[$VTE_PKGS])
 AC_SUBST([VTE_PKGS])
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]