]> git.ipfire.org Git - thirdparty/git.git/commit
meson: fix OpenSSL fallback when not explicitly required
authorPatrick Steinhardt <ps@pks.im>
Wed, 26 Feb 2025 08:22:12 +0000 (09:22 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Feb 2025 17:09:35 +0000 (09:09 -0800)
commit6128301075c90ac1d25badcc29771d1547fdf80f
treec7258373c6d53d9d96306064397e94f705008db1
parentbd262d07b65af894b1014cd8cc2d02aaee65800b
meson: fix OpenSSL fallback when not explicitly required

When OpenSSL isn't provided by the system we know to fall back to the
subproject wrapper. This is especially helpful on Windows systems, where
you typically don't have OpenSSL available, in order to reduce the
number of required dependencies.

The fallback is broken though when the OpenSSL backend is set to 'auto'
as we end up calling `dependency('openssl', required: false)` in that
case, which implicitly disables falling back to the wrapper.

Fix the issue by re-allowing the fallback in case either OpenSSL is
required or in case the backend is set to 'auto'. While at it, fix
reporting of the backend in case the user asked us to pick no HTTPS
backend at all.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
meson.build