summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2021-11-29 15:01:55 (GMT)
committerGitHub <noreply@github.com>2021-11-29 15:01:55 (GMT)
commit6ac3c8a3140c17bd71ba98dfc5250c371101e77c (patch)
tree03f175edccd688be32ea2d9a097998f61289650d /configure
parentc1dec9540ab04691f8d4a131671e069913e6eee3 (diff)
downloadcpython-6ac3c8a3140c17bd71ba98dfc5250c371101e77c.zip
cpython-6ac3c8a3140c17bd71ba98dfc5250c371101e77c.tar.gz
cpython-6ac3c8a3140c17bd71ba98dfc5250c371101e77c.tar.bz2
bpo-40280: Emscripten systems use .wasm suffix by default (GH-29842)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure28
1 files changed, 22 insertions, 6 deletions
diff --git a/configure b/configure
index c675923..12c8d10 100755
--- a/configure
+++ b/configure
@@ -1738,7 +1738,8 @@ Optional Packages:
--with-cxx-main[=COMPILER]
compile main() and link Python executable with C++
compiler specified in COMPILER (default is $CXX)
- --with-suffix=SUFFIX set executable suffix to SUFFIX (default is '.exe')
+ --with-suffix=SUFFIX set executable suffix to SUFFIX (default is empty,
+ yes is mapped to '.exe')
--with-pydebug build with Py_DEBUG defined (default is no)
--with-trace-refs enable tracing references for debugging purpose
(default is no)
@@ -6136,11 +6137,26 @@ $as_echo_n "checking for --with-suffix... " >&6; }
# Check whether --with-suffix was given.
if test "${with_suffix+set}" = set; then :
withval=$with_suffix;
- case $withval in
- no) EXEEXT=;;
- yes) EXEEXT=.exe;;
- *) EXEEXT=$withval;;
- esac
+ case $with_suffix in #(
+ no) :
+ EXEEXT= ;; #(
+ yes) :
+ EXEEXT=.exe ;; #(
+ *) :
+ EXEEXT=$with_suffix
+ ;;
+esac
+
+else
+
+ case $ac_sys_system in #(
+ Emscripten) :
+ EXEEXT=.wasm ;; #(
+ *) :
+ EXEEXT=
+ ;;
+esac
+
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5