[empathy] add have_gtk3 var
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] add have_gtk3 var
- Date: Thu, 8 Jul 2010 13:06:22 +0000 (UTC)
commit 5033a8f7fae372bece2f8c49c7fd1e7f69e37fb9
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Jul 8 14:54:37 2010 +0200
add have_gtk3 var
configure.ac | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index bf21da2..0de76f4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -172,16 +172,17 @@ AC_ARG_ENABLE(gtk3,
# Try to use GTK+3 if available
if test "x$enable_gtk3" != "xno"; then
PKG_CHECK_MODULES(GTK, [gtk+-3.0 >= $GTK_REQUIRED],
- enable_gtk3="yes", enable_gtk3="no")
+ have_gtk3="yes", have_gtk3="no")
+else
+ have_gtk3="no"
fi
-if test "x$enable_gtk3" == "xyes"; then
+if test "x$have_gtk3" == "xyes"; then
# GTK3 specific deps
PKG_CHECK_MODULES(CANBERRA, libcanberra-gtk3 >= $LIBCANBERRA_GTK_REQUIRED)
PKG_CHECK_MODULES(LIBNOTIFY, libnotify >= $LIBNOTIFY_REQUIRED_GTK3)
PKG_CHECK_MODULES(UNIQUE, unique-3.0 >= $UNIQUE_REQUIRED)
else
- enable_gtk3=no
PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED)
# GTK2 specific deps
@@ -285,7 +286,7 @@ AC_ARG_ENABLE(webkit,
if test "x$enable_webkit" != "xno"; then
- if test "x$enable_gtk3" == "xno"; then
+ if test "x$have_gtk3" == "xno"; then
PKG_CHECK_MODULES(WEBKIT, [webkit-1.0 >= $WEBKIT_REQUIRED],
have_webkit="yes", have_webkit="no")
else
@@ -353,7 +354,7 @@ AC_ARG_ENABLE(map,
if test "x$enable_map" != "xno"; then
- if test "x$enable_gtk3" == "xno"; then
+ if test "x$have_gtk3" == "xno"; then
PKG_CHECK_MODULES(LIBCHAMPLAIN,
[
champlain-0.4 >= $LIBCHAMPLAIN_REQUIRED,
@@ -445,7 +446,7 @@ AC_ARG_ENABLE(nautilus-sendto,
enable_nautilus_sendto=auto)
if test "x$enable_nautilus_sendto" != "xno"; then
- if test "x$enable_gtk3" == "xno"; then
+ if test "x$have_gtk3" == "xno"; then
# Newer NST requires GTK+3 so we can't use it
PKG_CHECK_MODULES(NST,[nautilus-sendto >= $NAUTILUS_SENDTO_REQUIRED
nautilus-sendto < 2.90.0],
@@ -532,7 +533,7 @@ Configure summary:
Compiler Flags..............: ${CFLAGS} ${ERROR_CFLAGS}
Prefix......................: ${prefix}
Coding style checks.........: ${ENABLE_CODING_STYLE_CHECKS}
- Use GTK+3...................: ${enable_gtk3}
+ Use GTK+3...................: ${have_gtk3}
Features:
Spell checking (enchant)....: ${have_enchant}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]