]> rtime.felk.cvut.cz Git - sojka/lightdm.git/commitdiff
Force the user to enable one of ConsoleKit or logind
authorIain Lane <iain.lane@canonical.com>
Tue, 16 Apr 2013 11:56:51 +0000 (12:56 +0100)
committerIain Lane <iain.lane@canonical.com>
Tue, 16 Apr 2013 11:56:51 +0000 (12:56 +0100)
configure.ac

index ec85934c8f3f15f2493b4bd8ee258b439722cbe1..bbc25b67dfd29719556fadac5529c911ff1a1788 100644 (file)
@@ -191,6 +191,10 @@ if test x$enable_logind = xyes; then
   AC_DEFINE(WITH_LOGIND, 1, [Define if systemd logind support is enabled])
 fi
 
+if test x$enable_consolekit = xno -a x$enable_logind = xno; then
+   AC_MSG_ERROR(one of --enable-consolekit or --enable-logind must be supplied)
+fi
+
 dnl ###########################################################################
 dnl Documentation
 dnl ###########################################################################