|
@@ -1462,14 +1462,16 @@ dbus_display = get_option('dbus_display') \
|
|
.allowed()
|
|
.allowed()
|
|
|
|
|
|
have_virtfs = get_option('virtfs') \
|
|
have_virtfs = get_option('virtfs') \
|
|
- .require(targetos == 'linux',
|
|
|
|
- error_message: 'virtio-9p (virtfs) requires Linux') \
|
|
|
|
- .require(libattr.found() and libcap_ng.found(),
|
|
|
|
- error_message: 'virtio-9p (virtfs) requires libcap-ng-devel and libattr-devel') \
|
|
|
|
|
|
+ .require(targetos == 'linux' or targetos == 'darwin',
|
|
|
|
+ error_message: 'virtio-9p (virtfs) requires Linux or macOS') \
|
|
|
|
+ .require(targetos == 'linux' or cc.has_function('pthread_fchdir_np'),
|
|
|
|
+ error_message: 'virtio-9p (virtfs) on macOS requires the presence of pthread_fchdir_np') \
|
|
|
|
+ .require(targetos == 'darwin' or (libattr.found() and libcap_ng.found()),
|
|
|
|
+ error_message: 'virtio-9p (virtfs) on Linux requires libcap-ng-devel and libattr-devel') \
|
|
.disable_auto_if(not have_tools and not have_system) \
|
|
.disable_auto_if(not have_tools and not have_system) \
|
|
.allowed()
|
|
.allowed()
|
|
|
|
|
|
-have_virtfs_proxy_helper = have_virtfs and have_tools
|
|
|
|
|
|
+have_virtfs_proxy_helper = targetos != 'darwin' and have_virtfs and have_tools
|
|
|
|
|
|
foreach k : get_option('trace_backends')
|
|
foreach k : get_option('trace_backends')
|
|
config_host_data.set('CONFIG_TRACE_' + k.to_upper(), true)
|
|
config_host_data.set('CONFIG_TRACE_' + k.to_upper(), true)
|