aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in21
1 files changed, 18 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index 2529377f74..2e45957c6d 100644
--- a/configure.in
+++ b/configure.in
@@ -220,12 +220,12 @@ dnl AC_SUBST(GNOMEGNORBA_LIBS)
dnl ******************************
dnl Check for Bonobo
dnl ******************************
-AC_MSG_CHECKING(for Bonobo >= 0.10)
+AC_MSG_CHECKING(for Bonobo >= 0.15)
if gnome-config --libs bonobo > /dev/null 2>&1; then
vers=`gnome-config --modversion bonobo`
case $vers
in
- bonobo-0.?) bonobo_ok=false ;;
+ bonobo-0.?|bonobo-0.1[0-4]) bonobo_ok=false ;;
*) bonobo_ok=true ;;
esac
else
@@ -235,7 +235,22 @@ fi
if $bonobo_ok; then
AC_MSG_RESULT($vers found)
else
- AC_MSG_ERROR(Bonobo 0.10 is required to compile Evolution)
+ AC_MSG_ERROR(Bonobo 0.15 is required to compile Evolution)
+fi
+
+dnl Check 0.15 vs post-0.15
+saved_CFLAGS="$CFLAGS"
+saved_LDFLAGS="$LDFLAGS"
+CFLAGS="$CFLAGS `gnome-config --cflags bonobo`"
+LDFLAGS="$LDFLAGS `gnome-config --libs bonobo`"
+AC_TRY_COMPILE([
+#include <bonobo/bonobo-ui-handler.h>
+],[
+bonobo_ui_handler_menu_set_callback (NULL, NULL, NULL, NULL, NULL);
+],bonobo_new=true,bonobo_new=false)
+
+if $bonobo_new; then
+ AC_DEFINE(BONOBO_POST_0_15)
fi