]> git.ipfire.org Git - thirdparty/curl.git/commit
configure: streamline Windows large file feature check
authorViktor Szakats <commit@vsz.me>
Sat, 11 Jan 2025 23:55:32 +0000 (00:55 +0100)
committerViktor Szakats <commit@vsz.me>
Mon, 13 Jan 2025 01:44:39 +0000 (02:44 +0100)
commita1184525a6fc144cccf81cab406880519777bd21
treeb08a7675809b5be7839a1252fe7c3b208fcc1db5
parent410c4629f20c5928f0e2bc73548e4c627afda1bd
configure: streamline Windows large file feature check

Before this patch the `CURL_CHECK_WIN32_LARGEFILE` feature check was
running an `AC_COMPILE` snippet that always succeeded. (except for
Windows CE, which isn't supported in other parts of `./configure` yet.)

The only Windows toolchain autotools supports is mingw. Of them, curl
only supports mingw-w64. All mingw-w64 versions support large files.
This allows to drop the check and assume it supported on Windows. To not
lose Windows CE support, rework that too, without using `AC_COMPILE`.

Drop the feature check altogether for non-Windows targets.

Ref: https://github.com/curl/curl/pull/15968#discussion_r1912158201
Follow-up to 7eb4ddb850d3757ac9e0b60b0198bbb11e83135e #15968

Closes #15971
acinclude.m4