[gedit-plugins] 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] Disable synctex plugin if dbus-python is not found.
- Date: Sat, 18 Sep 2010 04:32:38 +0000 (UTC)
commit 13e7ad98c64a2efefa2cebef530c2d605efa6588
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 03240a0..25bb77c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -243,6 +243,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]