]>
Commit | Line | Data |
---|---|---|
cece116c | 1 | have_virtiofsd = (targetos == 'linux' and |
3f99cf57 | 2 | have_tools and |
90835c2b | 3 | seccomp.found() and |
727c8bb8 | 4 | libcap_ng.found() and |
3f99cf57 PB |
5 | 'CONFIG_VHOST_USER' in config_host) |
6 | ||
cece116c MT |
7 | if get_option('virtiofsd').enabled() |
8 | if not have_virtiofsd | |
9 | if targetos != 'linux' | |
10 | error('virtiofsd requires Linux') | |
727c8bb8 | 11 | elif not seccomp.found() or not libcap_ng.found() |
cece116c | 12 | error('virtiofsd requires libcap-ng-devel and seccomp-devel') |
0958ee89 WSM |
13 | elif 'CONFIG_VHOST_USER' not in config_host |
14 | error('virtiofsd needs vhost-user support') | |
15 | else | |
16 | # Disabled all the tools but virtiofsd. | |
17 | have_virtiofsd = true | |
cece116c MT |
18 | endif |
19 | endif | |
20 | elif get_option('virtiofsd').disabled() or not have_system | |
21 | have_virtiofsd = false | |
22 | endif | |
23 | ||
3f99cf57 PB |
24 | if have_virtiofsd |
25 | subdir('virtiofsd') | |
26 | endif |