[network-manager-applet] build: enhance GTK version choice at configure time
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] build: enhance GTK version choice at configure time
- Date: Fri, 18 Feb 2011 21:21:45 +0000 (UTC)
commit 01c4541bf3161a04e4134ccc67c8c95a71be42f6
Author: Dan Williams <dcbw redhat com>
Date: Fri Feb 18 15:21:43 2011 -0600
build: enhance GTK version choice at configure time
Make the choice automatic if not overridden by the configure
arguments.
configure.ac | 21 +++++++++++----------
1 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index fdbd81e..a952ffd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -77,17 +77,18 @@ PKG_CHECK_MODULES(NMA,
gnome-keyring-1
libnotify >= 0.4.3])
-AC_ARG_WITH([gtk2], AS_HELP_STRING([--with-gtk2], [Use GTK+ 2.x instead of GTK+ 3.x]),
- with_gtk2="$withval",with_gtk2=no)
-gtkver=3
-case "${with_gtk2}" in
- yes) PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.20)
- gtkver=2
- ;;
- *) PKG_CHECK_MODULES(GTK, gtk+-3.0 >= 2.91.4)
- ;;
+AC_ARG_WITH([gtkver], AS_HELP_STRING([--with-gtkver], [The major version of GTK+ to build with]),
+ with_gtkver="$withval",with_gtkver=3)
+case "${with_gtkver}" in
+ 2) PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.20)
+ gtkver=2
+ ;;
+ *) PKG_CHECK_MODULES(GTK, gtk+-3.0 >= 2.91.4)
+ gtkver=3
+ ;;
esac
-AM_CONDITIONAL(USE_GTK2, test x"$gtkver" = "x2")
+AC_SUBST(GTK_CFLAGS)
+AC_SUBST(GTK_LIBS)
# Check for dbus-1.2.6 or later for deny-by-default rules
PKG_CHECK_MODULES(DBUS_126, [dbus-1 >= 1.2.6], [have_dbus_126=yes],[have_dbus_126=no])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]