mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-09 04:05:56 +00:00
autotools: define the polkit-agent package prefix when building without polkit-devel
Fixes: df1d214b2
(clients: polkit-agent: implement polkit agent without using libpolkit)
This commit is contained in:
parent
cfbfe06da9
commit
99a8a49c27
|
@ -656,13 +656,15 @@ AC_SUBST(NM_CONFIG_DEFAULT_MAIN_AUTH_POLKIT_TEXT, "$enable_polkit")
|
|||
|
||||
PKG_CHECK_MODULES(POLKIT, [polkit-agent-1 >= 0.97], [have_pk_agent=yes],[have_pk_agent=no])
|
||||
if test x"$have_pk_agent" = x"no"; then
|
||||
AC_MSG_ERROR(Polkit agent is required)
|
||||
POLKIT_PACKAGE_PREFIX="/usr"
|
||||
else
|
||||
POLKIT_PACKAGE_PREFIX=`$PKG_CONFIG --variable=prefix polkit-agent-1`
|
||||
fi
|
||||
POLKIT_PACKAGE_PREFIX=`$PKG_CONFIG --variable=prefix polkit-agent-1`
|
||||
AC_DEFINE_UNQUOTED([POLKIT_PACKAGE_PREFIX],
|
||||
["$POLKIT_PACKAGE_PREFIX"],
|
||||
[polkit-agent package prefix])
|
||||
|
||||
|
||||
AC_ARG_ENABLE(modify-system, AS_HELP_STRING([--enable-modify-system], [Allow users to modify system connections]))
|
||||
if test "${enable_modify_system}" = "yes"; then
|
||||
NM_MODIFY_SYSTEM_POLICY="yes"
|
||||
|
|
Loading…
Reference in New Issue
Block a user