mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-09 14:40:54 +00:00
build: Add --enable-sysprofd configure flag
This is useful to ensure reproducible builds. https://bugzilla.gnome.org/show_bug.cgi?id=767902
This commit is contained in:
committed by
Christian Hergert
parent
6e597e8898
commit
a7a6c59bda
21
configure.ac
21
configure.ac
@ -113,12 +113,23 @@ PKG_CHECK_MODULES(SYSTEMD,
|
|||||||
[have_systemd=yes],
|
[have_systemd=yes],
|
||||||
[have_systemd=no])
|
[have_systemd=no])
|
||||||
|
|
||||||
enable_sysprofd=no
|
# sysprofd requires libsystemd and polkit, and is required to run
|
||||||
AS_IF([test "$have_polkit" = "yes" && test "$have_systemd" = "yes"],[
|
# the ui without root permissions
|
||||||
enable_sysprofd=yes
|
AC_ARG_ENABLE([sysprofd],
|
||||||
|
[AS_HELP_STRING([--enable-sysprofd=@<:@yes/no/auto@:>@],
|
||||||
|
[Build Sysprof D-Bus daemon.])],
|
||||||
|
[enable_sysprofd=$enableval],
|
||||||
|
[enable_sysprofd=auto])
|
||||||
|
AS_IF([test "$enable_sysprofd" = "auto"],[
|
||||||
|
AS_IF([test "$have_polkit" = "yes" && test "$have_systemd" = "yes"],
|
||||||
|
[enable_sysprofd=yes],
|
||||||
|
[enable_sysprofd=no])
|
||||||
|
])
|
||||||
|
AS_IF([test "$enable_sysprofd" = "yes"],[
|
||||||
|
AS_IF([test "$have_systemd" = "yes" && test "$have_polkit" = "yes"],[],[
|
||||||
|
AC_MSG_ERROR([--enable-sysprofd requires libsystemd >= systemd_required_version and polkit-gobject-1])
|
||||||
|
])
|
||||||
])
|
])
|
||||||
|
|
||||||
# we require systemd for sysprofd
|
|
||||||
AM_CONDITIONAL(ENABLE_SYSPROFD, [test "$enable_sysprofd" = "yes"])
|
AM_CONDITIONAL(ENABLE_SYSPROFD, [test "$enable_sysprofd" = "yes"])
|
||||||
|
|
||||||
# we might be building sysprof-cli without the UI
|
# we might be building sysprof-cli without the UI
|
||||||
|
|||||||
Reference in New Issue
Block a user