diff --git a/configure.ac b/configure.ac index 2cab70d09..27091de0f 100644 --- a/configure.ac +++ b/configure.ac @@ -68,7 +68,8 @@ GTK_MIN_VERSION=2.91.7 GIO_MIN_VERSION=2.25.9 LIBECAL_REQUIRED=1.6.0 LIBEDATASERVER_REQUIRED=1.2.0 -LIBEDATASERVERUI_REQUIRED=1.2.0 +LIBEDATASERVERUI2_REQUIRED=2.91.6 +LIBEDATASERVERUI3_REQUIRED=1.2.0 # Collect more than 20 libraries for a prize! @@ -117,7 +118,13 @@ PKG_CHECK_EXISTS([gnome-bluetooth-1.0 >= 2.90.0], AC_SUBST([HAVE_BLUETOOTH],[0]) AC_MSG_RESULT([no])]) -PKG_CHECK_MODULES(LIBECAL, libecal-1.2 >= $LIBECAL_REQUIRED libedataserver-1.2 >= $LIBEDATASERVER_REQUIRED libedataserverui-1.2 >= $LIBEDATASERVERUI_REQUIRED) +# Default to libedataserverui-3.0, but allow falling back to 1.2 +PKG_CHECK_EXISTS(libedataserverui-3.0, + [EDS_API=3.0 + LIBEDATASERVERUI_REQUIRED=$LIBEDATASERVERUI3_REQUIRED], + [EDS_API=1.2 + LIBEDATASERVERUI_REQUIRED=$LIBEDATASERVERUI2_REQUIRED]) +PKG_CHECK_MODULES(LIBECAL, libecal-1.2 >= $LIBECAL_REQUIRED libedataserver-1.2 >= $LIBEDATASERVER_REQUIRED libedataserverui-$EDS_API >= $LIBEDATASERVERUI_REQUIRED) AC_SUBST(LIBECAL_CFLAGS) AC_SUBST(LIBECAL_LIBS)