meosn: curl: also check for and use libssh2 if available

This commit is contained in:
Tim-Philipp Müller 2018-01-22 18:53:22 +00:00
parent b691700f5e
commit cfe030ad1b
2 changed files with 5 additions and 2 deletions

View file

@ -15,6 +15,9 @@ curl_sources = [
curl_dep = dependency('libcurl', version : '>= 7.35.0', required : false)
if curl_dep.found()
ssh_dep = dependency('libssh2', version : '>= 1.4.3', required : false)
cdata.set('HAVE_SSH2', ssh_dep.found())
gstcurl = library('gstcurl',
curl_sources,
c_args : gst_plugins_bad_args,

View file

@ -436,8 +436,6 @@ else
endif
endif
configure_file(output : 'config.h', configuration : cdata)
gst_plugins_bad_args = ['-DHAVE_CONFIG_H']
configinc = include_directories('.')
libsinc = include_directories('gst-libs')
@ -462,6 +460,8 @@ subdir('ext')
subdir('tests')
subdir('pkgconfig')
configure_file(output : 'config.h', configuration : cdata)
# xgettext is optional (on Windows for instance)
if find_program('xgettext', required : false).found()
subdir('po')