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.
Commit
5c6dee54ca1965e338019feb7c1a86f2638a5f6aeb54ea88eb81d12aca9313db
Parent
25672b1def9cd6e…
1 file changed
+4
-1
M
auto.def
+4
-1
| --- auto.def | ||
| +++ auto.def | ||
| @@ -244,11 +244,14 @@ | ||
| 244 | 244 | test_system_sqlite |
| 245 | 245 | |
| 246 | 246 | } |
| 247 | 247 | |
| 248 | 248 | 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 | + }] | |
| 250 | 253 | } |
| 251 | 254 | |
| 252 | 255 | if {[is_mingw]} { |
| 253 | 256 | define-append EXTRA_CFLAGS -DBROKEN_MINGW_CMDLINE |
| 254 | 257 | define-append LIBS -lkernel32 -lws2_32 |
| 255 | 258 |
| --- 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 |