[vte/vte-0-24] Add x11 to pkg-config dep list on gdk-x11
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-0-24] Add x11 to pkg-config dep list on gdk-x11
- Date: Thu, 8 Apr 2010 11:16:51 +0000 (UTC)
commit 0ed604d8a8f83e6fdb5444be0305abeb7b0d1f7f
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.
(cherry picked from commit be41faea3651c2a90012648490ebf346eac82d04)
configure.in | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/configure.in b/configure.in
index 2c0be83..c398fab 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]