From 0c81b4c59b1afd0c39b07f364581e7d5e8a2295d Mon Sep 17 00:00:00 2001
From: Jerome Martinez <jerome@mediaarea.net>
Date: Tue, 2 Dec 2025 12:29:03 +0100
Subject: [PATCH 05/19] configure evaluate toolchain to determine suffix

---
 configure | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 38cbfd3d1b..bef0a16c1f 100755
--- a/configure
+++ b/configure
@@ -4929,11 +4929,15 @@ fi
 exesuf() {
     case $1 in
         mingw32*|mingw64*|msys*|win32|win64|cygwin*|*-dos|freedos|opendos|os/2*|symbian|windows_nt) echo .exe ;;
+        *)
+            case $2 in
+                msvc) echo .exe ;;
+            esac ;;
     esac
 }
 
-EXESUF=$(exesuf $target_os)
-HOSTEXESUF=$(exesuf $host_os)
+EXESUF=$(exesuf $target_os $toolchain)
+HOSTEXESUF=$(exesuf $host_os $toolchain)
 
 # set temporary file name
 : ${TMPDIR:=$TEMPDIR}
-- 
2.52.0

