From 99a8a49c270803f3f1993ee8622fbbdad42b1b0a Mon Sep 17 00:00:00 2001 From: Antonio Cardace Date: Tue, 24 Dec 2019 13:23:37 +0100 Subject: [PATCH] autotools: define the polkit-agent package prefix when building without polkit-devel Fixes: df1d214b2 (clients: polkit-agent: implement polkit agent without using libpolkit) --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 22cecb6efc..e54b88957a 100644 --- a/configure.ac +++ b/configure.ac @@ -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"