diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index f14fb8e0b5..b5dbc0d250 100644 --- a/configure.ac +++ b/configure.ac @@ -498,6 +498,22 @@ else fi AC_SUBST(NM_CONFIG_DEFAULT_AUTH_POLKIT_TEXT) +PKG_CHECK_MODULES(POLKIT, [polkit-agent-1 >= 0.97], [have_pk_agent=yes],[have_pk_agent=no]) +AC_ARG_ENABLE(polkit-agent, AS_HELP_STRING([--enable-polkit-agent], [enable polkit agent for clients]), + [enable_polkit_agent=${enableval}], [enable_polkit_agent=${have_pk_agent}]) +if (test "${enable_polkit_agent}" = "yes"); then + if test x"$have_pk_agent" = x"no"; then + AC_MSG_ERROR(Polkit agent is required) + fi + + AC_SUBST(POLKIT_CFLAGS) + AC_SUBST(POLKIT_LIBS) + AC_DEFINE(WITH_POLKIT_AGENT, 1, [Define if you have polkit agent]) +else + AC_DEFINE(WITH_POLKIT_AGENT, 0, [Define if you have polkit agent]) +fi +AM_CONDITIONAL(WITH_POLKIT_AGENT, test "${enable_polkit_agent}" = "yes") + AC_ARG_ENABLE(modify-system, AS_HELP_STRING([--enable-modify-system], [Allow users to modify system connections])) if test "${enable_modify_system}" = "yes"; then @@ -642,7 +658,7 @@ if (test "${enable_bluez5_dun}" = "yes"); then fi AC_DEFINE(WITH_BLUEZ5_DUN, 1, [Define if you have Bluez 5 libraries]) else - AC_DEFINE(HAVE_BLUEZ5_DUN, 0, [Define if you have Bluez 5 libraries]) + AC_DEFINE(WITH_BLUEZ5_DUN, 0, [Define if you have Bluez 5 libraries]) fi AM_CONDITIONAL(WITH_BLUEZ5_DUN, test "${enable_bluez5_dun}" = "yes") @@ -959,6 +975,7 @@ man/NetworkManager.conf.xml man/nm-system-settings.conf.5 man/nm-online.1 man/nmcli.1 +man/nmtui.1 po/Makefile.in policy/Makefile policy/org.freedesktop.NetworkManager.policy.in @@ -1013,6 +1030,7 @@ if test "${enable_polkit}" = "yes"; then else echo " policykit: no" fi +echo " polkit agent: ${enable_polkit_agent}" echo " selinux: $have_selinux" echo |