mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
meson: add libnl build option
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
8485287485
commit
b3e2ef408b
@ -1168,6 +1168,7 @@ export SOURCE_DATE_EPOCH=$(stat --printf='%Y' %{_specdir}/%{name}.spec)
|
|||||||
-Dyajl=enabled \
|
-Dyajl=enabled \
|
||||||
%{?arg_sanlock} \
|
%{?arg_sanlock} \
|
||||||
-Dlibpcap=enabled \
|
-Dlibpcap=enabled \
|
||||||
|
-Dlibnl=enabled \
|
||||||
-Daudit=enabled \
|
-Daudit=enabled \
|
||||||
-Ddtrace=enabled \
|
-Ddtrace=enabled \
|
||||||
%{?arg_firewalld} \
|
%{?arg_firewalld} \
|
||||||
|
@ -1075,9 +1075,9 @@ libiscsi_version = '1.18.0'
|
|||||||
libiscsi_dep = dependency('libiscsi', version: '>=' + libiscsi_version, required: get_option('libiscsi'))
|
libiscsi_dep = dependency('libiscsi', version: '>=' + libiscsi_version, required: get_option('libiscsi'))
|
||||||
|
|
||||||
libnl_version = '3.0'
|
libnl_version = '3.0'
|
||||||
if host_machine.system() == 'linux'
|
if not get_option('libnl').disabled() and host_machine.system() == 'linux'
|
||||||
libnl_dep = dependency('libnl-3.0', version: '>=' + libnl_version, required: false)
|
libnl_dep = dependency('libnl-3.0', version: '>=' + libnl_version, required: get_option('libnl'))
|
||||||
libnl_route_dep = dependency('libnl-route-3.0', version: '>=' + libnl_version, required: false)
|
libnl_route_dep = dependency('libnl-route-3.0', version: '>=' + libnl_version, required: get_option('libnl'))
|
||||||
|
|
||||||
if libnl_dep.found() and libnl_route_dep.found()
|
if libnl_dep.found() and libnl_route_dep.found()
|
||||||
libnl_dep = declare_dependency(
|
libnl_dep = declare_dependency(
|
||||||
@ -1085,6 +1085,8 @@ if host_machine.system() == 'linux'
|
|||||||
)
|
)
|
||||||
conf.set('WITH_LIBNL', 1)
|
conf.set('WITH_LIBNL', 1)
|
||||||
endif
|
endif
|
||||||
|
elif get_option('libnl').enabled()
|
||||||
|
error('libnl can be enabled only on linux')
|
||||||
else
|
else
|
||||||
libnl_dep = dependency('', required: false)
|
libnl_dep = dependency('', required: false)
|
||||||
endif
|
endif
|
||||||
|
@ -21,6 +21,7 @@ option('curl', type: 'feature', value: 'auto', description: 'curl support')
|
|||||||
option('fuse', type: 'feature', value: 'auto', description: 'fuse support')
|
option('fuse', type: 'feature', value: 'auto', description: 'fuse support')
|
||||||
option('glusterfs', type: 'feature', value: 'auto', description: 'glusterfs support')
|
option('glusterfs', type: 'feature', value: 'auto', description: 'glusterfs support')
|
||||||
option('libiscsi', type: 'feature', value: 'auto', description: 'libiscsi support')
|
option('libiscsi', type: 'feature', value: 'auto', description: 'libiscsi support')
|
||||||
|
option('libnl', type: 'feature', value: 'auto', description: 'libnl support')
|
||||||
option('libpcap', type: 'feature', value: 'auto', description: 'libpcap support')
|
option('libpcap', type: 'feature', value: 'auto', description: 'libpcap support')
|
||||||
option('libssh', type: 'feature', value: 'auto', description: 'libssh support')
|
option('libssh', type: 'feature', value: 'auto', description: 'libssh support')
|
||||||
option('libssh2', type: 'feature', value: 'auto', description: 'libssh2 support')
|
option('libssh2', type: 'feature', value: 'auto', description: 'libssh2 support')
|
||||||
|
Loading…
Reference in New Issue
Block a user