AM_CONDITIONAL([ENABLE_TRACKER], [test "x$enable_tracker_backend" = "xyes"])
+if test "x$enable_tracker_backend" = "xyes"; then
+ AC_DEFINE(HAVE_TRACKER, [1],
+ [Define as 1 if you have the Tracker backend])
+else
+ AC_DEFINE(HAVE_TRACKER, [0],
+ [Define as 1 if you have the Tracker backend])
+fi
+
AC_ARG_ENABLE(eds-backend,
AC_HELP_STRING([--enable-eds-backend],
[ build the E-D-S backend]),
enable_eds_backend=$enableval,
enable_eds_backend=yes )
+if test "x$enable_eds_backend" = "xyes"; then
+ AC_DEFINE(HAVE_EDS, [1], [Define as 1 if you have the eds backend])
+else
+ AC_DEFINE(HAVE_EDS, [0], [Define as 1 if you have the eds backend])
+fi
+
+
AM_CONDITIONAL([ENABLE_EDS], [test "x$enable_eds_backend" = "xyes"])
# Automatically check the dependencies for the libsocialweb backend
enable_libsocialweb_backend=$enableval,
enable_libsocialweb_backend=auto )
+# this may be overwritten farther down
+AC_DEFINE(HAVE_LIBSOCIALWEB, [0],
+ [Define as 1 if you have the libsocialweb backend])
if test "x$enable_libsocialweb_backend" != "xno"; then
PKG_CHECK_MODULES([SW_CLIENT], [libsocialweb-client >= $SW_CLIENT_REQUIRED],
have_libsocialweb_backend="yes", have_libsocialweb_backend="no")
fi
if test "x$have_libsocialweb_backend" = "xyes"; then
- AC_DEFINE(HAVE_LIBSOCIALWEB, [],
+ AC_DEFINE(HAVE_LIBSOCIALWEB, [1],
[Define if you have the libsocialweb backend])
fi
else
[CCode (cname = "LOCALE_DIR")]
public static const string LOCALE_DIR;
+
+ [CCode (cname = "HAVE_EDS")]
+ public static bool HAVE_EDS;
+
+ [CCode (cname = "HAVE_LIBSOCIALWEB")]
+ public static bool HAVE_LIBSOCIALWEB;
+
+ [CCode (cname = "HAVE_TRACKER")]
+ public static bool HAVE_TRACKER;
}