1# config.site override for cross compiling to wasm32-wasi platform
2#
3# Written by Christian Heimes <[email protected]>
4
5# cannot be detected in cross builds
6ac_cv_buggy_getaddrinfo=no
7
8# WASI has no /dev/pt*
9ac_cv_file__dev_ptmx=no
10ac_cv_file__dev_ptc=no
11
12# dummy readelf, WASI build does not need readelf.
13ac_cv_prog_ac_ct_READELF=true
14
15# get/setrlimit are not supported
16ac_cv_header_sys_resource_h=no
17
18# undefined symbols / unsupported features
19ac_cv_func_eventfd=no
20
21# WASI SDK 15.0 has no pipe syscall.
22ac_cv_func_pipe=no
23
24# WASI SDK 15.0 cannot create fifos and special files.
25ac_cv_func_mkfifo=no
26ac_cv_func_mkfifoat=no
27ac_cv_func_mknod=no
28ac_cv_func_mknodat=no
29ac_cv_func_makedev=no
30
31# fdopendir() fails on SDK 15.0,
32# OSError: [Errno 28] Invalid argument: '.'
33ac_cv_func_fdopendir=no
34
35# WASI sockets are limited to operations on given socket fd and inet sockets.
36# Disable AF_UNIX and AF_PACKET support, see socketmodule.h.
37ac_cv_header_sys_un_h=no
38ac_cv_header_netpacket_packet_h=no
39
40# disable accept for WASM runtimes without sock_accept
41#ac_cv_func_accept=no
42#ac_cv_func_accept4=no
43