if test x$enable_consolekit = xyes; then
AC_DEFINE(WITH_CONSOLEKIT, 1, [Define if ConsoleKit support is enabled])
+ AC_DEFINE(LOGIND_RUNNING(), 0,
+ [Define to a check for whether the system is running logind])
fi
AC_ARG_ENABLE(logind,
if test x$enable_logind = xyes; then
AC_DEFINE(WITH_LOGIND, 1, [Define if systemd logind support is enabled])
+ AC_DEFINE(LOGIND_RUNNING(), (access("/run/systemd/seats/", F_OK) >= 0),
+ [Define to a check for whether the system is running logind])
fi
if test x$enable_consolekit = xno -a x$enable_logind = xno; then
G_BEGIN_DECLS
-#ifdef WITH_LOGIND
-#define LOGIND_RUNNING() (access("/run/systemd/seats/", F_OK) >= 0)
-#else
-#define LOGIND_RUNNING() (false)
-#endif
-
#define SESSION_TYPE (session_get_type())
#define SESSION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SESSION_TYPE, Session))
#define SESSION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SESSION_TYPE, SessionClass))