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"
CFLAGS_NODIST="$CFLAGS_NODIST -pthread"
;; #(
- WASI) :
+ WASI/*) :
$as_echo "#define _WASI_EMULATED_SIGNAL 1" >>confdefs.h
case $ac_sys_system in #(
Emscripten) :
MODULES_SETUP_STDLIB=Modules/Setup.stdlib ;; #(
+ WASI) :
+ MODULES_SETUP_STDLIB=Modules/Setup.stdlib ;; #(
*) :
MODULES_SETUP_STDLIB=
;;
py_cv_module__testimportmultiple=n/a ;; #(
*) :
if test "$TEST_MODULES" = yes; then :
- if true; then :
+ if test "$ac_cv_func_dlopen" = yes; then :
py_cv_module__testimportmultiple=yes
else
py_cv_module__testimportmultiple=missing
py_cv_module__testmultiphase=n/a ;; #(
*) :
if test "$TEST_MODULES" = yes; then :
- if true; then :
+ if test "$ac_cv_func_dlopen" = yes; then :
py_cv_module__testmultiphase=yes
else
py_cv_module__testmultiphase=missing
*xxlimited*) :
py_cv_module_xxlimited=n/a ;; #(
*) :
- if test "$with_trace_refs" = "no" -a "$ac_sys_system" != "Emscripten"; then :
- if true; then :
+ if test "$with_trace_refs" = "no"; then :
+ if test "$ac_cv_func_dlopen" = yes; then :
py_cv_module_xxlimited=yes
else
py_cv_module_xxlimited=missing
*xxlimited_35*) :
py_cv_module_xxlimited_35=n/a ;; #(
*) :
- if test "$with_trace_refs" = "no" -a "$ac_sys_system" != "Emscripten"; then :
- if true; then :
+ if test "$with_trace_refs" = "no"; then :
+ if test "$ac_cv_func_dlopen" = yes; then :
py_cv_module_xxlimited_35=yes
else
py_cv_module_xxlimited_35=missing
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"
CFLAGS_NODIST="$CFLAGS_NODIST -pthread"
],
- [WASI], [
+ [WASI/*], [
AC_DEFINE([_WASI_EMULATED_SIGNAL], [1], [Define to 1 if you want to emulate signals on WASI])
LIBS="$LIBS -lwasi-emulated-signal"
echo "#define _WASI_EMULATED_SIGNAL 1" >> confdefs.h
AC_MSG_CHECKING([for additional Modules/Setup files])
AS_CASE([$ac_sys_system],
[Emscripten], [MODULES_SETUP_STDLIB=Modules/Setup.stdlib],
+ [WASI], [MODULES_SETUP_STDLIB=Modules/Setup.stdlib],
[MODULES_SETUP_STDLIB=]
)
AC_MSG_RESULT([$MODULES_SETUP_STDLIB])
PY_STDLIB_MOD([_testcapi], [test "$TEST_MODULES" = yes])
PY_STDLIB_MOD([_testinternalcapi], [test "$TEST_MODULES" = yes])
PY_STDLIB_MOD([_testbuffer], [test "$TEST_MODULES" = yes])
-PY_STDLIB_MOD([_testimportmultiple], [test "$TEST_MODULES" = yes])
-PY_STDLIB_MOD([_testmultiphase], [test "$TEST_MODULES" = yes])
+PY_STDLIB_MOD([_testimportmultiple], [test "$TEST_MODULES" = yes], [test "$ac_cv_func_dlopen" = yes])
+PY_STDLIB_MOD([_testmultiphase], [test "$TEST_MODULES" = yes], [test "$ac_cv_func_dlopen" = yes])
PY_STDLIB_MOD([_xxtestfuzz], [test "$TEST_MODULES" = yes])
PY_STDLIB_MOD([_ctypes_test], [test "$TEST_MODULES" = yes], [], [], [-lm])
dnl Limited API template modules.
dnl The limited C API is not compatible with the Py_TRACE_REFS macro.
dnl Emscripten does not support shared libraries yet.
-PY_STDLIB_MOD([xxlimited], [test "$with_trace_refs" = "no" -a "$ac_sys_system" != "Emscripten"])
-PY_STDLIB_MOD([xxlimited_35], [test "$with_trace_refs" = "no" -a "$ac_sys_system" != "Emscripten"])
+PY_STDLIB_MOD([xxlimited], [test "$with_trace_refs" = "no"], [test "$ac_cv_func_dlopen" = yes])
+PY_STDLIB_MOD([xxlimited_35], [test "$with_trace_refs" = "no"], [test "$ac_cv_func_dlopen" = yes])
# substitute multiline block, must come after last PY_STDLIB_MOD()
AC_SUBST([MODULE_BLOCK])