[gedit-plugins/gnome-2-32] Disable synctex plugin if dbus-python is not found.
- From: Jose Aliste <jaliste src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins/gnome-2-32] Disable synctex plugin if dbus-python is not found.
- Date: Sat, 18 Sep 2010 04:33:05 +0000 (UTC)
commit 6b15cf6153930ea1a024733e7c734d6ded920a98
Author: José Aliste <jaliste src gnome org>
Date: Sat Sep 18 00:28:56 2010 -0400
Disable synctex plugin if dbus-python is not found.
configure.ac | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 65e3208..4f14c75 100644
--- a/configure.ac
+++ b/configure.ac
@@ -339,6 +339,32 @@ then
fi
# ================================================================
+# Synctex (dbus-python)
+# ================================================================
+plugin_defined synctex
+if test "$?" = 1
+then
+ DBUSPYTHON_REQUIRED=0.82
+ PKG_CHECK_MODULES([DBUSPYTHON],
+ [dbus-python >= $DBUSPYTHON_REQUIRED],
+ [have_synctex=yes],[have_synctex=no])
+
+ AC_SUBST([DBUS_PYTHON_CFLAGS])
+ AC_SUBST([DBUS_PYTHON_LIBS])
+
+ if test "x$have_synctex" = "xno"; then
+ plugin_defined_explicit synctex
+ if test "$?" = 1
+ then
+ AC_MSG_ERROR([dbus-python could not be found, needed for synctex plugin])
+ else
+ AC_MSG_WARN([dbus-python could not be found, synctex plugin will be disabled])
+ undef_plugin synctex "dbus-python not found"
+ fi
+ fi
+fi
+
+# ================================================================
# Terminal plugin vte check
# ================================================================
plugin_defined terminal
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]