Fossil SCM

Narrowed the configure script's is_mingw test: it was checking only the output of uname for `*mingw*`, but that catches MSYS2, which provides a Linux-like environment, not what this MinGW test is meant to handle.

wyoung 2025-02-10 19:04 trunk
Commit 5c6dee54ca1965e338019feb7c1a86f2638a5f6aeb54ea88eb81d12aca9313db
1 file changed +4 -1
+4 -1
--- auto.def
+++ auto.def
@@ -244,11 +244,14 @@
244244
test_system_sqlite
245245
246246
}
247247
248248
proc is_mingw {} {
249
- return [string match *mingw* [get-define host]]
249
+ return [expr {
250
+ [string match *mingw* [get-define host]] &&
251
+ ![file exists "/dev/null"]
252
+ }]
250253
}
251254
252255
if {[is_mingw]} {
253256
define-append EXTRA_CFLAGS -DBROKEN_MINGW_CMDLINE
254257
define-append LIBS -lkernel32 -lws2_32
255258
--- auto.def
+++ auto.def
@@ -244,11 +244,14 @@
244 test_system_sqlite
245
246 }
247
248 proc is_mingw {} {
249 return [string match *mingw* [get-define host]]
 
 
 
250 }
251
252 if {[is_mingw]} {
253 define-append EXTRA_CFLAGS -DBROKEN_MINGW_CMDLINE
254 define-append LIBS -lkernel32 -lws2_32
255
--- auto.def
+++ auto.def
@@ -244,11 +244,14 @@
244 test_system_sqlite
245
246 }
247
248 proc is_mingw {} {
249 return [expr {
250 [string match *mingw* [get-define host]] &&
251 ![file exists "/dev/null"]
252 }]
253 }
254
255 if {[is_mingw]} {
256 define-append EXTRA_CFLAGS -DBROKEN_MINGW_CMDLINE
257 define-append LIBS -lkernel32 -lws2_32
258

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button