diff --git a/configure b/configure index 382e0309747..4dfd4a565d1 100755 --- a/configure +++ b/configure @@ -20268,7 +20268,15 @@ $as_echo_n "checking for ensurepip... " >&6; } if test "${with_ensurepip+set}" = set; then : withval=$with_ensurepip; else - with_ensurepip=upgrade + + case $ac_sys_system in #( + Emscripten) : + $with_ensurepip=no ;; #( + *) : + with_ensurepip=upgrade + ;; +esac + fi case $with_ensurepip in #( diff --git a/configure.ac b/configure.ac index 1e5fef337ca..38f943fa9d7 100644 --- a/configure.ac +++ b/configure.ac @@ -5871,7 +5871,12 @@ AC_ARG_WITH(ensurepip, [AS_HELP_STRING([--with-ensurepip@<:@=install|upgrade|no@:>@], ["install" or "upgrade" using bundled pip (default is upgrade)])], [], - [with_ensurepip=upgrade]) + [ + AS_CASE([$ac_sys_system], + [Emscripten], [$with_ensurepip=no], + [with_ensurepip=upgrade] + ) + ]) AS_CASE($with_ensurepip, [yes|upgrade],[ENSUREPIP=upgrade], [install],[ENSUREPIP=install],