@@ -1994,6 +1994,10 @@ AS_CASE([$ac_sys_system],
19941994 AC_DEFINE ( [ _WASI_EMULATED_PROCESS_CLOCKS] , [ 1] , [ Define to 1 if you want to emulate process clocks on WASI] )
19951995 LIBS="$LIBS -lwasi-emulated-signal -lwasi-emulated-getpid -lwasi-emulated-process-clocks"
19961996 echo "#define _WASI_EMULATED_SIGNAL 1" >> confdefs.h
1997+
1998+ dnl increase initial memory and stack size, move stack first
1999+ dnl https://github.com/WebAssembly/wasi-libc/issues/233
2000+ AS_VAR_APPEND ( [ LDFLAGS_NODIST] , [ " -z stack-size=524288 -Wl,--stack-first -Wl,--initial-memory=10485760"] )
19972001 ]
19982002)
19992003
@@ -4046,13 +4050,17 @@ dnl the check does not work on cross compilation case...
40464050#include <sys/types.h>
40474051#include <sys/socket.h>] ] ,
40484052[ [ int domain = AF_INET6;] ] ) ] ,[
4049- AC_MSG_RESULT ( yes )
40504053 ipv6=yes
40514054] ,[
4052- AC_MSG_RESULT ( no )
40534055 ipv6=no
40544056] )
40554057
4058+ AS_CASE ( [ $ac_sys_system] ,
4059+ [ WASI] , [ ipv6=no]
4060+ )
4061+
4062+ AC_MSG_RESULT ( [ $ipv6] )
4063+
40564064if test "$ipv6" = "yes"; then
40574065 AC_MSG_CHECKING ( if RFC2553 API is available )
40584066 AC_COMPILE_IFELSE ( [
@@ -4232,9 +4240,10 @@ AC_ARG_WITH(pymalloc,
42324240
42334241if test -z "$with_pymalloc"
42344242then
4235- dnl default to yes except for wasm32-emscripten
4243+ dnl default to yes except for wasm32-emscripten and wasm32-wasi.
42364244 AS_CASE ( [ $ac_sys_system] ,
42374245 [ Emscripten] , [ with_pymalloc="no"] ,
4246+ [ WASI] , [ with_pymalloc="no"] ,
42384247 [ with_pymalloc="yes"]
42394248 )
42404249fi
@@ -6680,7 +6689,11 @@ AS_CASE([$ac_sys_system],
66806689 )
66816690 ] ,
66826691 [ Emscripten/node*] , [ ] ,
6683- [ WASI/*] , [ ]
6692+ [ WASI/*] , [
6693+ PY_STDLIB_MOD_SET_NA(
6694+ [ _ctypes_test] ,
6695+ )
6696+ ]
66846697 )
66856698 ] ,
66866699 [ PY_STDLIB_MOD_SET_NA([ _scproxy] )]
0 commit comments