mirror of
https://github.com/mborgerson/xemu.git
synced 2025-12-01 16:10:01 +00:00
meson, configure: move usbfs test to meson
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
13
meson.build
13
meson.build
@ -1940,6 +1940,19 @@ config_host_data.set('CONFIG_GETAUXVAL', cc.links(gnu_source_prefix + '''
|
||||
return getauxval(AT_HWCAP) == 0;
|
||||
}'''))
|
||||
|
||||
config_host_data.set('CONFIG_USBFS', have_linux_user and cc.compiles('''
|
||||
#include <linux/usbdevice_fs.h>
|
||||
|
||||
#ifndef USBDEVFS_GET_CAPABILITIES
|
||||
#error "USBDEVFS_GET_CAPABILITIES undefined"
|
||||
#endif
|
||||
|
||||
#ifndef USBDEVFS_DISCONNECT_CLAIM
|
||||
#error "USBDEVFS_DISCONNECT_CLAIM undefined"
|
||||
#endif
|
||||
|
||||
int main(void) { return 0; }'''))
|
||||
|
||||
have_keyring = get_option('keyring') \
|
||||
.require(targetos == 'linux', error_message: 'keyring is only available on Linux') \
|
||||
.require(cc.compiles('''
|
||||
|
||||
Reference in New Issue
Block a user