build: clean up --with-session-tracking
This commit is contained in:
40
configure.ac
40
configure.ac
@@ -270,27 +270,27 @@ if test "$with_systemdsystemunitdir" != no; then
|
|||||||
AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
|
AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_WITH(session-tracking, AS_HELP_STRING([--with-session-tracking=systemd|ck|none], [Build NetworkManager with specific session tracking support]))
|
# session tracking support
|
||||||
if test "z$with_session_tracking" = "z"; then
|
AC_ARG_WITH(session-tracking, AS_HELP_STRING([--with-session-tracking=systemd|consolekit|no],
|
||||||
# Default to ConsoleKit session tracking like we used before
|
[Select session tracking support (default: consolekit)]))
|
||||||
with_session_tracking=ck
|
# default to consolekit
|
||||||
fi
|
AS_IF([test -z "$with_session_tracking"], with_session_tracking=consolekit)
|
||||||
|
AS_IF([test "$with_session_tracking" = "ck"], with_session_tracking=consolekit)
|
||||||
case $with_session_tracking in
|
AS_IF([test "$with_session_tracking" = "none"], with_session_tracking=no)
|
||||||
ck|none|no) ;;
|
# check value
|
||||||
systemd)
|
AS_IF([!echo "$with_session_tracking" | grep -E "^(systemd|consolekit|no)$"],
|
||||||
|
AC_MSG_ERROR([--with-session-tracking must be systemd/consolekit/no, not $with_session_tracking]))
|
||||||
|
# add conditionals and subtitutions
|
||||||
|
AM_CONDITIONAL(SESSION_TRACKING_CK, test "$with_session_tracking" = "consolekit")
|
||||||
|
AM_CONDITIONAL(SESSION_TRACKING_SYSTEMD, test "xwith_session_tracking" = "systemd")
|
||||||
|
if test "$with_session_tracking" = "systemd"; then
|
||||||
PKG_CHECK_MODULES(SYSTEMD_LOGIN, [libsystemd-login])
|
PKG_CHECK_MODULES(SYSTEMD_LOGIN, [libsystemd-login])
|
||||||
;;
|
AC_SUBST(SYSTEMD_LOGIN_CFLAGS)
|
||||||
*)
|
AC_SUBST(SYSTEMD_LOGIN_LIBS)
|
||||||
AC_MSG_ERROR(--with-session-tracking must be one of [none, ck, systemd])
|
fi
|
||||||
;;
|
if test "with_session_tracking" = "consolekit"; then
|
||||||
esac
|
AC_SUBST(CKDB_PATH, /var/run/ConsoleKit/database)
|
||||||
AC_SUBST(SYSTEMD_LOGIN_CFLAGS)
|
fi
|
||||||
AC_SUBST(SYSTEMD_LOGIN_LIBS)
|
|
||||||
AC_SUBST(CKDB_PATH, /var/run/ConsoleKit/database)
|
|
||||||
AM_CONDITIONAL(SESSION_TRACKING_CK, test "x$with_session_tracking" = "xck")
|
|
||||||
AM_CONDITIONAL(SESSION_TRACKING_SYSTEMD, test "x$with_session_tracking" = "xsystemd")
|
|
||||||
|
|
||||||
|
|
||||||
AC_ARG_WITH(suspend-resume, AS_HELP_STRING([--with-suspend-resume=upower|systemd], [Build NetworkManager with specific suspend/resume support]))
|
AC_ARG_WITH(suspend-resume, AS_HELP_STRING([--with-suspend-resume=upower|systemd], [Build NetworkManager with specific suspend/resume support]))
|
||||||
if test "z$with_suspend_resume" = "z"; then
|
if test "z$with_suspend_resume" = "z"; then
|
||||||
|
Reference in New Issue
Block a user