--- libsoup-3.0.0/meson.build.orig 2021-09-18 17:42:24.256217200 +0200 +++ libsoup-3.0.0/meson.build 2021-09-19 22:18:19.217690057 +0200 @@ -344,11 +344,18 @@ endif ################ # NTLM not supported on Windows if host_machine.system() != 'windows' - ntlm_auth = find_program(get_option('ntlm_auth'), required: get_option('ntlm')) + ntlm_auth_path = get_option('ntlm_auth') + if ntlm_auth_path[0] == '/' + ntlm_auth_found = true + else + ntlm_auth = find_program(get_option('ntlm_auth'), required: get_option('ntlm')) + ntlm_auth_found = ntlm_auth.found() + ntlm_auth_path = ntlm_auth.path() + endif - if ntlm_auth.found() + if ntlm_auth_found add_project_arguments('-DUSE_NTLM_AUTH=1', language : 'c') - add_project_arguments('-DNTLM_AUTH="' + ntlm_auth.path() + '"', language : 'c') + add_project_arguments('-DNTLM_AUTH="' + ntlm_auth_path + '"', language : 'c') endif else ntlm_auth = dependency('', required: false) @@ -409,7 +416,7 @@ summary({ summary({ 'GSSAPI' : enable_gssapi, - 'NTLM' : ntlm_auth.found(), + 'NTLM' : ntlm_auth_found, 'Brotli' : brotlidec_dep.found(), 'Translations' : xgettext.found(), 'GIR' : enable_introspection,