diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2007-08-20 03:50:24 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2007-08-20 03:50:24 +0800 |
commit | ee80a3d68bc38e200842ef83353a25b3630feb82 (patch) | |
tree | 7e39fb5d50d33dcbcb1ed605dc24ffe5d689091e /configure.ac | |
parent | 2e5e67d151d63a7939ec6864f3f05b20a53e20ae (diff) | |
download | gsoc2013-empathy-ee80a3d68bc38e200842ef83353a25b3630feb82.tar gsoc2013-empathy-ee80a3d68bc38e200842ef83353a25b3630feb82.tar.gz gsoc2013-empathy-ee80a3d68bc38e200842ef83353a25b3630feb82.tar.bz2 gsoc2013-empathy-ee80a3d68bc38e200842ef83353a25b3630feb82.tar.lz gsoc2013-empathy-ee80a3d68bc38e200842ef83353a25b3630feb82.tar.xz gsoc2013-empathy-ee80a3d68bc38e200842ef83353a25b3630feb82.tar.zst gsoc2013-empathy-ee80a3d68bc38e200842ef83353a25b3630feb82.zip |
2007-08-19 Xavier Claessens <xclaesse@gmail.com>
* python/pyempathy/pyempathy.defs:
* python/pyempathy/pyempathymodule.c:
* python/pyempathy/Makefile.am:
* python/pyempathy/pyempathy.override:
* python/pyempathygtk/pyempathygtk.override:
* python/pyempathygtk/pyempathygtk.defs:
* python/pyempathygtk/Makefile.am:
* python/pyempathygtk/pyempathygtkmodule.c:
* python/Makefile.am:
* libempathy/empathy-time.h:
* configure.ac:
* Makefile.am: Add python binding. Fixes bug #457660 (Michael Sheldon).
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@264 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 43 |
1 files changed, 42 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 74ea426c3..f582d2bd7 100644 --- a/configure.ac +++ b/configure.ac @@ -145,7 +145,46 @@ if test "x$enable_aspell" = "xyes" -a "x$have_aspell" != "xyes"; then AC_MSG_ERROR([Couldn't find aspell.]) fi + +dnl ----------------------------------------------------------- +dnl Python Bindings dnl ----------------------------------------------------------- +AC_ARG_ENABLE(python, + AS_HELP_STRING([--enable-python=@<:@no/yes/auto@:>@], + [build python bindings to libempathy and libempathy-gtk]), , + enable_python=auto) + +PKG_CHECK_MODULES(PYTHON_BINDING, +[ + pygtk-2.0, + glib-2.0 >= $GLIB_REQUIRED + gobject-2.0 + gconf-2.0 >= $GCONF_REQUIRED + libxml-2.0 + gnome-vfs-2.0 + libtelepathy >= $TELEPATHY_REQUIRED + libmissioncontrol >= $MISSION_CONTROL_REQUIRED + gtk+-2.0 >= $GTK_REQUIRED + libglade-2.0 >= $LIBGLADE_REQUIRED + libgnomeui-2.0 +], have_python="yes", have_python="no") + +if test "x$have_python" = "xno"; then + if test "x$enable_python" = "xyes"; then + AC_MSG_ERROR([Could not find python dependencies]) + fi + enable_python="no (missing dependencies)" +else + if test "x$enable_python" != "xno"; then + enable_python="yes" + else + enable_python="no (disabled)" + fi +fi +AM_CONDITIONAL(HAVE_PYTHON, test x$enable_python = xyes) + +dnl ----------------------------------------------------------- + AC_OUTPUT([ Makefile data/Makefile @@ -164,5 +203,7 @@ AC_OUTPUT([ doc/Makefile doc/libempathy/Makefile doc/libempathy-gtk/Makefile + python/Makefile + python/pyempathy/Makefile + python/pyempathygtk/Makefile ]) - |