@@ -1850,7 +1850,7 @@ AS_CASE([$ac_sys_system/$ac_sys_emscripten_target],
1850
1850
LDFLAGS_NODIST="$LDFLAGS_NODIST -s ASSERTIONS=1 -s ALLOW_MEMORY_GROWTH=1 -s NODERAWFS=1 -s EXIT_RUNTIME=1 -s USE_PTHREADS -s PROXY_TO_PTHREAD"
1851
1851
CFLAGS_NODIST="$CFLAGS_NODIST -pthread"
1852
1852
] ,
1853
- [ WASI] , [
1853
+ [ WASI/* ] , [
1854
1854
AC_DEFINE ( [ _WASI_EMULATED_SIGNAL] , [ 1] , [ Define to 1 if you want to emulate signals on WASI] )
1855
1855
LIBS="$LIBS -lwasi-emulated-signal"
1856
1856
echo "#define _WASI_EMULATED_SIGNAL 1" >> confdefs.h
@@ -6407,6 +6407,7 @@ dnl Use Modules/Setup.stdlib as additional provider?
6407
6407
AC_MSG_CHECKING ( [ for additional Modules/Setup files] )
6408
6408
AS_CASE ( [ $ac_sys_system] ,
6409
6409
[ Emscripten] , [ MODULES_SETUP_STDLIB=Modules/Setup.stdlib] ,
6410
+ [ WASI] , [ MODULES_SETUP_STDLIB=Modules/Setup.stdlib] ,
6410
6411
[ MODULES_SETUP_STDLIB=]
6411
6412
)
6412
6413
AC_MSG_RESULT ( [ $MODULES_SETUP_STDLIB] )
@@ -6599,16 +6600,16 @@ dnl test modules
6599
6600
PY_STDLIB_MOD([ _testcapi] , [ test "$TEST_MODULES" = yes] )
6600
6601
PY_STDLIB_MOD([ _testinternalcapi] , [ test "$TEST_MODULES" = yes] )
6601
6602
PY_STDLIB_MOD([ _testbuffer] , [ test "$TEST_MODULES" = yes] )
6602
- PY_STDLIB_MOD([ _testimportmultiple] , [ test "$TEST_MODULES" = yes] )
6603
- PY_STDLIB_MOD([ _testmultiphase] , [ test "$TEST_MODULES" = yes] )
6603
+ PY_STDLIB_MOD([ _testimportmultiple] , [ test "$TEST_MODULES" = yes] , [ test "$ac_cv_func_dlopen" = yes ] )
6604
+ PY_STDLIB_MOD([ _testmultiphase] , [ test "$TEST_MODULES" = yes] , [ test "$ac_cv_func_dlopen" = yes ] )
6604
6605
PY_STDLIB_MOD([ _xxtestfuzz] , [ test "$TEST_MODULES" = yes] )
6605
6606
PY_STDLIB_MOD([ _ctypes_test] , [ test "$TEST_MODULES" = yes] , [ ] , [ ] , [ -lm] )
6606
6607
6607
6608
dnl Limited API template modules.
6608
6609
dnl The limited C API is not compatible with the Py_TRACE_REFS macro.
6609
6610
dnl Emscripten does not support shared libraries yet.
6610
- PY_STDLIB_MOD([ xxlimited] , [ test "$with_trace_refs" = "no" -a "$ac_sys_system" != "Emscripten" ] )
6611
- PY_STDLIB_MOD([ xxlimited_35] , [ test "$with_trace_refs" = "no" -a "$ac_sys_system" != "Emscripten" ] )
6611
+ PY_STDLIB_MOD([ xxlimited] , [ test "$with_trace_refs" = "no"] , [ test "$ac_cv_func_dlopen" = yes ] )
6612
+ PY_STDLIB_MOD([ xxlimited_35] , [ test "$with_trace_refs" = "no"] , [ test "$ac_cv_func_dlopen" = yes ] )
6612
6613
6613
6614
# substitute multiline block, must come after last PY_STDLIB_MOD()
6614
6615
AC_SUBST ( [ MODULE_BLOCK] )
0 commit comments