summaryrefslogtreecommitdiff
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* configure: remove use of deprecated macrosDaniel Stenberg2021-03-161-10/+1
| | | | AC_HEADER_TIME, AC_HEADER_STDC and AC_TYPE_SIGNAL
* configure: make AC_TRY_* into AC_*_IFELSEDaniel Stenberg2021-03-161-28/+33
| | | | ... as the former versions are deprecated.
* configure: s/AC_HELP_STRING/AS_HELP_STRINGDaniel Stenberg2021-03-161-149/+149
| | | | | | | | | AC_HELP_STRING is deprecated in 2.70+ and I believe AS_HELP_STRING works already since 2.59 so bump the minimum required version to that. Reported-by: Emil Engler Fixes #6647 Closes #6748
* config: fix building SMB with configure using Win32 CryptoMarc Hoersken2021-03-151-16/+25
| | | | | | | | | | | | | | | | | | | Align conditions for NTLM features between CMake and configure builds by differentiating between USE_NTLM and USE_CURL_NTLM_CORE, just like curl_setup.h does internally to detect support of: - USE_NTLM: required for NTLM crypto authentication feature - USE_CURL_NTLM_CORE: required for SMB protocol Implement USE_WIN32_CRYPTO detection by checking for Crypt functions in wincrypt.h which are not available in the Windows App environment. Link advapi32 and crypt32 for Crypto API and Schannel SSL backend. Fix condition of Schannel SSL backend in CMake build accordingly. Reviewed-by: Marcel Raad Closes #6277
* configure: only add OpenSSL paths if they are definedMichael Hordijk2021-03-121-2/+4
| | | | | | | | Add paths for OpenSSL compiling and linking only if they have been defined. If they haven't been defined, we'll assume that the paths are already available to the toolchain. Closes #6730
* configure: provide Largefile feature for curl-configDaniel Stenberg2021-03-111-0/+7
| | | | | | ... as cmake now does it correctly, and make test1014 check for it Closes #6702
* configure: fail if --with-quiche is used and quiche isn't foundDaniel Stenberg2021-02-241-4/+2
| | | | Closes #6652
* build: delete unused feature guardsViktor Szakats2021-02-231-1/+0
| | | | | | | | | | - `HAVE_STRNCASECMP` - `HAVE_TCGETATTR` - `HAVE_TCSETATTR` Reviewed-by: Jay Satiro Reviewed-by: Daniel Stenberg Closes #6645
* configure: make hyper opt-in, and fail if missingJacob Hoffman-Andrews2021-02-231-17/+11
| | | | | | | | | | | | Previously, configure would look for hyper by default, and use it if found; otherwise it would not use hyper, and not error. Now, configure will not look for hyper unless --with-hyper is passed. If configure looks for hyper and fails, it will error. Also, add -ld -lpthread -lm to Hyper's libs. I think they are required. Closes #6598
* gnutls: assume nettle crypto supportDaniel Stenberg2021-02-181-14/+3
| | | | | | | nettle has been the default crypto library with GnuTLS since 2010. By dropping support for the previous libcrypto, we simplify code. Closes #6625
* vtls: initial implementation of rustls backendJacob Hoffman-Andrews2021-02-091-2/+95
| | | | | | | | | | | | | | | | | This adds a new TLS backend, rustls. It uses the C-to-rustls bindings from https://github.com/abetterinternet/crustls. Rustls is at https://github.com/ctz/rustls/. There is still a fair bit to be done, like sending CloseNotify on connection shutdown, respecting CAPATH, and properly indicating features like "supports TLS 1.3 ciphersuites." But it works well enough to make requests and receive responses. Blog post for context: https://www.abetterinternet.org/post/memory-safe-curl/ Closes #6350
* sasl: support SCRAM-SHA-1 and SCRAM-SHA-256 via libgsaslSimon Josefsson2021-02-091-0/+28
| | | | Closes #6372
* COPYING/configure: bump copyright year rangeDaniel Stenberg2021-01-011-2/+2
|
* configure: add --with-hyperDaniel Stenberg2020-12-181-4/+98
| | | | | | As the first (optional) HTTP backend alternative instead of native Close #6110
* gopher: Implement secure gopher protocol.parazyd2020-12-151-0/+3
| | | | | | | | | | | | | | | | | | This commit introduces a "gophers" handler inside the gopher protocol if USE_SSL is defined. This protocol is no different than the usual gopher prococol, with the added TLS encapsulation upon connecting. The protocol has been adopted in the gopher community, and many people have enabled TLS in their gopher daemons like geomyidae(8), and clients, like clic(1) and hurl(1). I have not implemented test units for this protocol because my knowledge of Perl is sub-par. However, for someone more knowledgeable it might be fairly trivial, because the same test that tests the plain gopher protocol can be used for "gophers" just by adding a TLS listener. Signed-off-by: parazyd <parazyd@dyne.org> Closes #6208
* curl: add compatibility for Amiga and GCC 6.5Oliver Urbann2020-11-201-3/+3
| | | | | | | Changes are mainly reordering and adding of includes required to compile with a more recent version of GCC. Closes #6220
* Revert "libcurl.pc: make it relocatable"Daniel Stenberg2020-11-091-12/+0
| | | | | | | | | | This reverts commit 3862c37b6373a55ca704171d45ba5ee91dec2c9f. That fix should either be done differently or with an option. Reported-by: asavah on github Fixes #6157 Closes #6183
* configure: pass -pthread to Libs.private for pkg-configDaniel Stenberg2020-11-071-1/+3
| | | | | | Reported-by: Cristian Morales Vega Fixes #6168 Closes #6181
* curl.se: new homeDaniel Stenberg2020-11-041-3/+3
| | | | Closes #6172
* hsts: add support for Strict-Transport-SecurityDaniel Stenberg2020-11-031-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | - enable in the build (configure) - header parsing - host name lookup - unit tests for the above - CI build - CURL_VERSION_HSTS bit - curl_version_info support - curl -V output - curl-config --features - CURLOPT_HSTS_CTRL - man page for CURLOPT_HSTS_CTRL - curl --hsts (sets CURLOPT_HSTS_CTRL and works with --libcurl) - man page for --hsts - save cache to disk - load cache from disk - CURLOPT_HSTS - man page for CURLOPT_HSTS - added docs/HSTS.md - fixed --version docs - adjusted curl_easy_duphandle Closes #5896
* configure: use pkgconfig to find openSSL when cross-compilingCristian Morales Vega2020-10-291-8/+2
| | | | | | | This reverts 736a40fec (November 2004), which doesn't explain why it was done. Closes #6145
* alt-svc: enable by defaultDaniel Stenberg2020-10-251-9/+11
| | | | | | | | Remove CURLALTSVC_IMMEDIATELY, which was never implemented/supported. alt-svc support in curl is no longer considered experimental Closes #5868
* libssh2: require version 1.0 or laterDaniel Stenberg2020-10-221-1/+2
| | | | | | | ... and simplify the code accordingly. libssh2 version 1.0 was released in April 2009. Closes #6116
* libcurl.pc: make it relocatableCristian Morales Vega2020-10-151-0/+12
| | | | | | | | It supposes when people specify the libdir/includedir they do it to change where under prefix/exec_prefix it should be, not to make it independent of prefix/exec_prefix. Closes #6061
* configure: don't say HTTPS-proxy is enabled when disabled!Daniel Stenberg2020-09-301-3/+7
| | | | | | | Reported-by: Kamil Dudka Reviewed-by: Kamil Dudka Bug: https://github.com/curl/curl/pull/5735#issuecomment-701376388 Closes #6029
* ECH: renamed from ESNI in docs and configureDaniel Stenberg2020-09-291-18/+18
| | | | | | Encrypted Client Hello (ECH) is the current name. Closes #6022
* configure: use "no" instead of "disabled" for the end summaryDaniel Stenberg2020-09-291-4/+4
| | | | | ... for consistency but also to make them more distinctly stand out next to the "enabled" lines.
* mqtt: enable by defaultDaniel Stenberg2020-08-311-4/+3
| | | | | | No longer considered experimental. Closes #5858
* ntlm: fix condition for curl_ntlm_core usageMarcel Raad2020-08-291-1/+1
| | | | | | | | | | | | `USE_WINDOWS_SSPI` without `USE_WIN32_CRYPTO` but with any other DES backend is fine, but was excluded before. This also fixes test 1013 as the condition for SMB support in configure.ac didn't match the condition in the source code. Now it does. Fixes https://github.com/curl/curl/issues/1262 Closes https://github.com/curl/curl/pull/5771
* configure: added --disable-get-easy-optionsDaniel Stenberg2020-08-271-0/+18
| | | | | | To allow disabling of the curl_easy_option APIs in a build. Closes #5365
* socketpair: allow CURL_DISABLE_SOCKETPAIRDaniel Stenberg2020-08-261-0/+18
| | | | | | ... to completely disable the use of socketpair Closes #5850
* configure: fix pkg-config detecting wolfsslDaniel Stenberg2020-08-241-2/+6
| | | | | | | | When amending the include path with "/wolfssl", this now properly strips off all whitespace from the path variable! Previously this would lead to pkg-config builds creating bad command lines. Closes #5848
* TLS naming: fix more Winssl and Darwinssl leftoversDaniel Stenberg2020-08-081-13/+13
| | | | | | | | | | | | | The CMake option is now called CMAKE_USE_SCHANNEL The winbuild flag is USE_SCHANNEL The CI jobs and build scripts only use the new names and the new name options Tests now require 'Schannel' (when necessary) Closes #5795
* configure: cleanup wolfssl + pkg-config conflicts when cross compiling.Ehren Bendler2020-07-271-9/+20
| | | | | | | Also choose a different wolfSSL function to test for NTLM support. Fixes #5605 Closes #5682
* configure: show zstd "no" in summary when built without itDaniel Stenberg2020-07-271-0/+1
| | | | | | Reported-by: Marc Hörsken Fixes #5720 Closes #5730
* content_encoding: add zstd decoding supportGilles Vollant2020-07-121-0/+91
| | | | | | | | | include zstd curl patch for Makefile.m32 from vszakats and include Add CMake support for zstd from Peter Wu Helped-by: Viktor Szakats Helped-by: Peter Wu Closes #5453
* configure.ac: Sort features name in summaryNicolas Sterchele2020-07-121-0/+4
| | | | | | - Same as protocols Closes #5656
* configure: for wolfSSL, check for the DES func needed for NTLMDaniel Stenberg2020-06-161-6/+50
| | | | Also adds pkg-config support for the wolfSSL detection.
* configure: only strip first -L from LDFLAGSDaniel Stenberg2020-06-041-14/+14
| | | | | | | | | | | | | | In the logic that works out if a given OpenSSL path works, it stripped off a possibly leading -L flag using an incorrect sed pattern which would remove all instances of -L in the string, including if the path itself contained that two-letter sequence! The same pattern was used and is now updated in multiple places. Now it only removes -L if it starts the strings. Reported-by: Mohamed Osama Fixes #5519 Closes #5521
* select: add overflow checks for timeval conversionsMarc Hoersken2020-05-301-0/+13
| | | | | | | | | | | | Using time_t and suseconds_t if suseconds_t is available, long on Windows (maybe others in the future) and int elsewhere. Also handle case of ULONG_MAX being greater or equal to INFINITE. Assisted-by: Jay Satiro Reviewed-by: Daniel Stenberg Part of #5343
* configure: repair the check if argv can be written toDaniel Stenberg2020-05-281-5/+7
| | | | | | | | | | | | | | Due to bad escaping of the test code, the test wouldn't build and thus result in a negative test result, which would lead to the unconditional assumption that overwriting the arguments doesn't work and thus curl would never hide credentials given in the command line, even when it would otherwise be possible. Regression from commit 2d4c2152c (7.60.0) Reported-by: huzunhao on github Fixes #5470 Closes #5471
* configure: fix pthread check with static boringsslPeter Wu2020-05-221-2/+13
| | | | | | | A shared boringssl/OpenSSL library requires -lcrypto only for linking. A static build additionally requires `-ldl -lpthread`. In the latter case `-lpthread` is added to LIBS which prevented `-pthread` from being added to CFLAGS. Clear LIBS to fix linking failures for libtest tests.
* configure: the wolfssh backend does not provide SCPDaniel Stenberg2020-05-131-1/+0
| | | | Closes #5387
* libcurl.pc: Merge Libs.private into Libs for static-only buildsJames Le Cuirot2020-05-121-0/+7
| | | | | | | | | | | | | | | | | A project being built entirely statically will call pkg-config with --static, which utilises the Libs.private field. Conversely it will not use --static when not being built entirely statically, even if there is only a static build of libcurl available. This will most likely cause the build to fail due to underlinking unless we merge the Libs fields. Consider that this is what the Meson build system does when it generates pkg-config files. I have also reflected this in the --libs argument of curl-config even though REQUIRE_LIB_DEPS always seems to be "yes" anyway. Closes #5373
* quiche: enable qlog outputDaniel Stenberg2020-05-051-0/+1
| | | | | | | | | | | | | | | quiche has the potential to log qlog files. To enable this, you must build quiche with the qlog feature enabled `cargo build --features qlog`. curl then passes a file descriptor to quiche, which takes ownership of the file. The FD transfer only works on UNIX. The convention is to enable logging when the QLOGDIR environment is set. This should be a path to a folder where files are written with the naming template <SCID>.qlog. Co-authored-by: Lucas Pardue Replaces #5337 Closes #5341
* gnutls: bump lowest supported version to 3.1.10Daniel Stenberg2020-04-211-2/+2
| | | | | | | | | GnuTLS 3.1.10 added new functions we want to use. That version was released on Mar 22, 2013. Removing support for older versions also greatly simplifies the code. Ref: #5271 Closes #5276
* mqtt: add new experimental protocolBjorn Stenberg2020-04-141-0/+19
| | | | Closes #5173
* configure: don't check for Security.framework when cross-compilingDennis Felsing2020-04-061-1/+1
| | | | | | Since it checks for the local file, not the cross-compiled one. Closes #5189
* vquic: add support for GnuTLS backend of ngtcp2Daiki Ueno2020-03-311-1/+56
| | | | | | | | Currently, the TLS backend used by vquic/ngtcp2.c is selected at compile time. Therefore OpenSSL support needs to be explicitly disabled. Signed-off-by: Daiki Ueno <dueno@redhat.com> Closes #5148
* build: fixed build for systems with select() in unistd.hHarry Sintonen2020-03-311-0/+2
| | | | Closes #5169