1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[meson] compilation fix when neither openssl nor gnutls were enabled

This commit is contained in:
Witold Filipczyk 2022-10-08 11:21:25 +02:00
parent 766d0d655c
commit 2dc85a2060
2 changed files with 8 additions and 2 deletions

View File

@ -131,7 +131,13 @@ else
conf_data.set('CONFIG_OS_UNIX', false)
endif
conf_data.set('CONFIG_SSL', true)
if conf_data.get('CONFIG_GNUTLS') or conf_data.get('CONFIG_OPENSSL')
conf_data.set('CONFIG_SSL', true)
else
conf_data.set('CONFIG_SSL', false)
endif
conf_data.set('CONFIG_OS_OS2', false)
conf_data.set('CONFIG_OS_RISCOS', false)

View File

@ -1,2 +1,2 @@
t = executable('match-hostname-test', 'match-hostname-test.c', meson.current_source_dir() + '/../match-hostname.c', testdeps, c_args:['-DHAVE_CONFIG_H'], include_directories:['.', '..', '../..', '../../..', '../../../..'])
t = executable('match-hostname-test', 'match-hostname-test.c', meson.source_root()+'/src/network/ssl/match-hostname.c', testdeps, c_args:['-DHAVE_CONFIG_H'], include_directories:['.', '..', '../..', '../../..', '../../../..'])
test('match-hostname-test', t)