@@ -4840,8 +4840,11 @@ fi
4840
4840
AC_MSG_RESULT ( $DYNLOADFILE )
4841
4841
if test "$DYNLOADFILE" != "dynload_stub.o"
4842
4842
then
4843
+ have_dynamic_loading=yes
4843
4844
AC_DEFINE ( HAVE_DYNAMIC_LOADING , 1 ,
4844
4845
[ Defined when any dynamic module loading is enabled.] )
4846
+ else
4847
+ have_dynamic_loading=no
4845
4848
fi
4846
4849
4847
4850
# MACHDEP_OBJS can be set to platform-specific object files needed by Python
@@ -7578,16 +7581,16 @@ PY_STDLIB_MOD([_testcapi], [test "$TEST_MODULES" = yes])
7578
7581
PY_STDLIB_MOD([ _testclinic] , [ test "$TEST_MODULES" = yes] )
7579
7582
PY_STDLIB_MOD([ _testinternalcapi] , [ test "$TEST_MODULES" = yes] , [ ] , [ -DPY3_DLLNAME="\"$DLLLIBRARY\""] , [ ] )
7580
7583
PY_STDLIB_MOD([ _testbuffer] , [ test "$TEST_MODULES" = yes] )
7581
- PY_STDLIB_MOD([ _testimportmultiple] , [ test "$TEST_MODULES" = yes] , [ test "$ac_cv_func_dlopen " = yes] )
7582
- PY_STDLIB_MOD([ _testmultiphase] , [ test "$TEST_MODULES" = yes] , [ test "$ac_cv_func_dlopen " = yes] )
7584
+ PY_STDLIB_MOD([ _testimportmultiple] , [ test "$TEST_MODULES" = yes] , [ test "$have_dynamic_loading " = yes] )
7585
+ PY_STDLIB_MOD([ _testmultiphase] , [ test "$TEST_MODULES" = yes] , [ test "$have_dynamic_loading " = yes] )
7583
7586
PY_STDLIB_MOD([ _xxtestfuzz] , [ test "$TEST_MODULES" = yes] )
7584
- PY_STDLIB_MOD([ _ctypes_test] , [ test "$TEST_MODULES" = yes] , [ test "$ac_cv_func_dlopen " = yes] , [ ] , [ -lm] )
7587
+ PY_STDLIB_MOD([ _ctypes_test] , [ test "$TEST_MODULES" = yes] , [ test "$have_dynamic_loading " = yes] , [ ] , [ -lm] )
7585
7588
7586
7589
dnl Limited API template modules.
7587
7590
dnl The limited C API is not compatible with the Py_TRACE_REFS macro.
7588
7591
dnl Emscripten does not support shared libraries yet.
7589
- PY_STDLIB_MOD([ xxlimited] , [ test "$with_trace_refs" = "no"] , [ test "$ac_cv_func_dlopen " = yes] )
7590
- PY_STDLIB_MOD([ xxlimited_35] , [ test "$with_trace_refs" = "no"] , [ test "$ac_cv_func_dlopen " = yes] )
7592
+ PY_STDLIB_MOD([ xxlimited] , [ test "$with_trace_refs" = "no"] , [ test "$have_dynamic_loading " = yes] )
7593
+ PY_STDLIB_MOD([ xxlimited_35] , [ test "$with_trace_refs" = "no"] , [ test "$have_dynamic_loading " = yes] )
7591
7594
7592
7595
# substitute multiline block, must come after last PY_STDLIB_MOD()
7593
7596
AC_SUBST ( [ MODULE_BLOCK] )
0 commit comments