build: rename build option "--with-polkit-agent-helper-1{-path,}"

Suggested-by: Michael Biebl <biebl@debian.org>
This commit is contained in:
Thomas Haller
2021-02-16 21:33:30 +01:00
parent cd86b462fc
commit d9968b133b
3 changed files with 11 additions and 5 deletions

View File

@@ -514,7 +514,7 @@ config_h.set_quoted('NM_CONFIG_DEFAULT_MAIN_AUTH_POLKIT', config_auth_polkit_def
enable_modify_system = get_option('modify_system')
polkit_agent_helper_1_path = get_option('polkit_agent_helper_1_path')
polkit_agent_helper_1_path = get_option('polkit_agent_helper_1')
foreach p : [ '/usr/libexec/polkit-agent-helper-1',
'/usr/lib/polkit-1/polkit-agent-helper-1',
'/usr/lib/policykit-1/polkit-agent-helper-1' ]
@@ -525,6 +525,9 @@ endforeach
if polkit_agent_helper_1_path == ''
polkit_agent_helper_1_path = '/usr/lib/polkit-1/polkit-agent-helper-1'
endif
if polkit_agent_helper_1_path[0] != '/'
error('polkit_agent_helper_1 must be an absolute path, but is ' + polkit_agent_helper_1_path)
endif
config_h.set_quoted('POLKIT_AGENT_HELPER_1_PATH', polkit_agent_helper_1_path)