]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
configure: provide Largefile feature for curl-config
authorDaniel Stenberg <daniel@haxx.se>
Tue, 9 Mar 2021 23:38:21 +0000 (00:38 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 11 Mar 2021 09:12:30 +0000 (10:12 +0100)
... as cmake now does it correctly, and make test1014 check for it

Closes #6702

configure.ac
tests/libtest/test1013.pl

index 1af9d0f41964e9af2ab7786e7c684713cc4a22f6..f3b11f0053b85901b4d1e552e8b9d6b924074109 100755 (executable)
@@ -5262,6 +5262,13 @@ if test "x$ECH_ENABLED" = "x1"; then
   SUPPORT_FEATURES="$SUPPORT_FEATURES ECH"
 fi
 
+if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
+  if test ${ac_cv_sizeof_off_t} -gt 4 -o \
+     "$curl_win32_file_api" = "win32_large_files"; then
+    SUPPORT_FEATURES="$SUPPORT_FEATURES Largefile"
+  fi
+fi
+
 dnl replace spaces with newlines
 dnl sort the lines
 dnl replace the newlines back to spaces
index 055ef957af8ac34c4864652e0668215bf0935199..4160ff92360cc5e8502e643e89b6f1b0847e91e5 100755 (executable)
@@ -6,7 +6,7 @@
 #                            | (__| |_| |  _ <| |___
 #                             \___|\___/|_| \_\_____|
 #
-# Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
 #
 # This software is licensed as described in the file COPYING, which
 # you should have received as part of this distribution. The terms
@@ -44,7 +44,7 @@ $curl_protocols =~ /\w+: (.*)$/;
 @curl = split / /,$1;
 
 # These features are not supported by curl-config
-@curl = grep(!/^(Debug|TrackMemory|Metalink|Largefile|CharConv)$/i, @curl);
+@curl = grep(!/^(Debug|TrackMemory|Metalink|CharConv)$/i, @curl);
 @curl = sort @curl;
 
 # Read the output of curl-config