summaryrefslogtreecommitdiff
path: root/m4
Commit message (Collapse)AuthorAgeFilesLines
* m4/curl-compilers: tell clang -Wno-pointer-bool-conversionDaniel Stenberg2021-12-291-0/+3
| | | | | | | | To hush compiler warnings we don't care for: error: address of function 'X' will always evaluate to 'true' Fixes #8197 Closes #8198
* openssl: define HAVE_OPENSSL_VERSION for OpenSSL 1.1.0+Jay Satiro2021-12-161-4/+1
| | | | | | | | | | | | | | | | | | | | | Prior to this change OpenSSL_version was only detected in configure builds. For other builds the old version parsing code was used which would result in incorrect versioning for OpenSSL 3: Before: curl 7.80.0 (i386-pc-win32) libcurl/7.80.0 OpenSSL/3.0.0a zlib/1.2.11 WinIDN libssh2/1.9.0 After: curl 7.80.0 (i386-pc-win32) libcurl/7.80.0 OpenSSL/3.0.1 zlib/1.2.11 WinIDN libssh2/1.9.0 Reported-by: lllaffer@users.noreply.github.com Fixes https://github.com/curl/curl/issues/8154 Closes https://github.com/curl/curl/pull/8155
* configure: fix runtime-lib detection on macOSBernhard Walle2021-11-181-4/+10
| | | | | | | | | | | | With a non-standard installation of openssl we get this error: checking run-time libs availability... failed configure: error: one or more libs available at link-time are not available run-time. Libs used at link-time: -lnghttp2 -lssl -lcrypto -lssl -lcrypto -lz There's already code to set LD_LIBRARY_PATH on Linux, so set DYLD_LIBRARY_PATH equivalent on macOS. Closes #8028
* configure: add -lm to configure for rustls build.Jacob Hoffman-Andrews2021-11-131-8/+3
| | | | | | | | | Note: The list of libraries that rustc tells us we need to include is longer, but also includes some more platform-specific libraries that I am not sure how to effectively incorporate. Adding just -lm seems to solve an immediate problem, so I'm adding just that. Closes #8002
* vtls/rustls: update to compile with rustls-ffi v0.8.0Kevin Burke2021-11-111-4/+4
| | | | | | | | | | | | Some method names, as well as the generated library name, were changed in a recent refactoring. Further, change the default configuration instructions to check for Hyper in either "target/debug" or "target/release" - the latter contains an optimized build configuration. Fixes #7947 Closes #7948
* curl-confopts.m4: remove --enable/disable-hidden-symbolsDaniel Stenberg2021-10-221-4/+0
| | | | | | | These configure options have been saying "deprecated" since 9e24b9c7af (April 2012). It was about time we remove them. Closes #7891
* misc: update copyright yearsDaniel Stenberg2021-10-151-1/+1
|
* curl-openssl.m4: modify library order for openssl linkingMichael Afanasiev2021-10-081-2/+2
| | | | | | | | lcrypto may depend on lz, and configure corrently fails with when statically linking as the order is "-lz -lcrypto". This commit switches the order to "-lcrypto -lz". Closes #7826
* misc: fix a few issues on MidnightBSDLucas Holt2021-10-052-1/+5
| | | | Closes #7812
* configure: remove `HAVE_WINSOCK_H` definitionMarcel Raad2021-09-291-6/+1
| | | | | | It's not used anymore. Closes https://github.com/curl/curl/pull/7795
* Revert "build: remove checks for WinSock 1"Daniel Stenberg2021-09-291-1/+6
| | | | | | | | Due to CI issues This reverts commit c2ea04f92b00b6271627cb218647527b5a50f2fc. Closes #7790
* build: remove checks for WinSock 1Marcel Raad2021-09-281-6/+1
| | | | | | It's not supported anymore. Closes https://github.com/curl/curl/pull/7778
* curl-openssl: pass argument to sed single-quotedDaniel Stenberg2021-09-231-1/+1
| | | | | | | | | | ... instead of using an escaped double-quote. This is an attempt to make this work better with ksh that otherwise would insist on a double escape! Reported-by: Randall S. Becker Fixes #7758 Closes #7764
* mailing lists: move from cool.haxx.se to lists.haxx.seDaniel Stenberg2021-08-301-1/+1
|
* curl-openssl.m4: show correct output for OpenSSL v3Daniel Stenberg2021-08-221-3/+27
| | | | | | | | | | | | | | | Using 3.0.0 versions configure should now show this: checking for OpenSSL headers version... 3.0.0 - 0x300 checking for OpenSSL library version... 3.0.0 checking for OpenSSL headers and library versions matching... yes This output doesn't actually change what configure generates but is only "cosmetic". Reported-by: Randall S. Becker Fixes #7606 Closes #7608
* curl-openssl.m4: check lib64 for the pkg-config fileDaniel Stenberg2021-07-261-2/+15
| | | | | | | | OpenSSL recently started putting the libs in $prefix/lib64 on 'make install', so we check that directory for pkg-config data if the 'lib' check fails. Closes #7503
* misc: copyright year range updatesDaniel Stenberg2021-07-191-1/+1
|
* build: fix IoctlSocket FIONBIO checkAndrea Pappacoda2021-07-161-1/+1
| | | | | | | Prior to this change HAVE_IOCTLSOCKET_CAMEL_FIONBIO mistakenly checked for (lowercase) ioctlsocket when it should have checked for IoctlSocket. Closes https://github.com/curl/curl/pull/7375
* configure: inhibit the implicit-fallthrough warning on gcc-12Daniel Stenberg2021-06-291-1/+4
| | | | | | | | | ... since it no longer acknowledges the comment markup we use for that purpose. Reported-by: Younes El-karama Fixes #7295 Closes #7307
* hostip: (macOS) free returned memory of SCDynamicStoreCopyProxiesGregory Muchka2021-06-211-2/+2
| | | | | | | | | | | | | | From Apples documentation on SCDynamicStoreCopyProxies, "Return Value: A dictionary of key-value pairs that represent the current internet proxy settings, or NULL if no proxy settings have been defined or if an error occurred. You must release the returned value." Failure to release the returned value of SCDynamicStoreCopyProxies can result in a memory leak. Source: https://developer.apple.com/documentation/systemconfiguration/1517088-scdynamicstorecopyproxies Closes #7265
* configure/cmake: remove checks for unused gethostbyaddr and gethostbyaddr_rGergely Nagy2021-06-182-275/+0
| | | | Closes #7276
* configure/cmake: remove checks for unused inet_ntoa and inet_ntoa_rGergely Nagy2021-06-182-164/+0
| | | | Closes #7276
* configure: remove unused check for gai_strerrorGergely Nagy2021-06-181-96/+0
| | | | Closes #7276
* configure/cmake: remove unused define HAVE_FREEIFADDRSGergely Nagy2021-06-181-84/+0
| | | | Closes #7276
* configure/cmake: remove checks for unused getservbyport_rGergely Nagy2021-06-182-176/+0
| | | | Closes #7276
* configure: do not strip out debug flagsDaniel Stenberg2021-06-171-69/+1
| | | | | | | | | To allow users to set them when invoking configure without using --with-debug. Reported-by: Alex Xu Fixes #7216 Closes #7267
* rustls: remove native_roots fallbackJacob Hoffman-Andrews2021-06-141-3/+0
| | | | | | | | | | | For the commandline tool, we expect to be passed SSL_CONN_CONFIG(CAfile); for library use, the use should pass a set of trusted roots (like in other TLS backends). This also removes a dependency on Security.framework when building on macOS. Closes #7250
* lib/hostip6.c: make NAT64 address synthesis on macOS workRadek Zajic2021-05-251-0/+52
| | | | Closes #7121
* rustls: switch read_tls and write_tls to callbacksJacob Hoffman-Andrews2021-05-241-1/+1
| | | | | | | And update to 0.6.0, including a rename from session to connection for many fields. Closes #7071
* wolfssl: remove SSLv3 support leftoversDaniel Stenberg2021-05-181-3/+1
| | | | Closes #7088
* curl-wolfssl.m4: without custom include path, assume /usr/includeDaniel Stenberg2021-05-181-2/+2
| | | | | | | | | | | ... so that we can point out the root of the OpenSSL emulation headers. Previously this used the '$includedir' variable which is wrong since that defaults to the dir where the current configure invoke will install the built libcurl headers: /usr/local by default. Fixes #7085 Reported-by: Joel Jakobsson Closes #7087
* m4: add security frameworks on Mac when compiling rustlsKevin Burke2021-04-251-0/+3
| | | | | | | | | | | | | | | | Previously compiling rustls on Mac would only complete if you also compiled the SecureTransport TLS backend, which curl would prefer to the Rust backend. Appending these flags to LDFLAGS makes it possible to compile the Rustls backend on Mac without the SecureTransport backend, which means this patch will make it possible for Mac users to use the Rustls backend for TLS. Reviewed-by: Jacob Hoffman-Andrews Fixes #6955 Cloes #6956
* configure: split out each TLS library detector into its own functionDaniel Stenberg2021-04-2211-1/+1426
| | | | ... and put those functions in separate m4 files per TLS library.
* configure: include <time.h> unconditionallyMichael Forney2021-04-071-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | In 2682e5f5, several instances of AC_HEADER_TIME were removed since it is a deprecated autoconf macro. However, this was the macro that defined TIME_WITH_SYS_TIME, which was used to indicate that <time.h> can be included alongside <sys/time.h>. TIME_WITH_SYS_TIME is still used in the configure test body and since it is no longer defined, <time.h> is *not* included on systems that have <sys/time.h>. In particular, at least on musl libc and glibc, <sys/time.h> does not implicitly include <time.h> and does not declare clock_gettime, gmtime_r, or localtime_r. This causes configure to fail to detect those functions. The AC_HEADER_TIME macro deprecation text says > All current systems provide time.h; it need not be checked for. > Not all systems provide sys/time.h, but those that do, all allow > you to include it and time.h simultaneously. So, to fix this issue, simply include <time.h> unconditionally when testing for time-related functions and in libcurl, and don't bother checking for it. Closes #6859
* configure: remove use of deprecated macrosDaniel Stenberg2021-03-161-1/+0
| | | | AC_HEADER_TIME, AC_HEADER_STDC and AC_TYPE_SIGNAL
* configure: s/AC_HELP_STRING/AS_HELP_STRINGDaniel Stenberg2021-03-162-27/+27
| | | | | | | | | 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
* build: delete unused feature guardsViktor Szakats2021-02-231-85/+1
| | | | | | | | | | - `HAVE_STRNCASECMP` - `HAVE_TCGETATTR` - `HAVE_TCSETATTR` Reviewed-by: Jay Satiro Reviewed-by: Daniel Stenberg Closes #6645
* configure: set -Wextra-semi-stmt for clang with --enable-debugDaniel Stenberg2020-12-291-0/+1
| | | | | | | To have it properly complain on empty statements with no effect. Ref: #6376 Closes #6378
* Revert "libcurl.pc: make it relocatable"Daniel Stenberg2020-11-093-344/+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
* curl.se: new homeDaniel Stenberg2020-11-046-6/+6
| | | | Closes #6172
* libcurl.pc: make it relocatableCristian Morales Vega2020-10-153-0/+344
| | | | | | | | 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
* ECH: renamed from ESNI in docs and configureDaniel Stenberg2020-09-291-21/+21
| | | | | | Encrypted Client Hello (ECH) is the current name. Closes #6022
* lib: fix -Wassign-enum warningsDaniel Stenberg2020-09-081-0/+4
| | | | | | | | | | configure --enable-debug now enables -Wassign-enum with clang, identifying several enum "abuses" also fixed. Reported-by: Gisle Vanem Bug: https://github.com/curl/curl/commit/879007f8118771f4896334731aaca5850a154675#commitcomment-42087553 Closes #5929
* configure: let --enable-debug set -Wenum-conversion with gcc >= 10Daniel Stenberg2020-09-071-0/+4
| | | | | | | | Unfortunately, this option is not detecting the same issues as clang's -Wassign-enum flag, but should still be useful to detect future mistakes. Closes #5930
* configure: allow disabling warningsMarcel Raad2020-07-171-48/+74
| | | | | | | | | | When using `--enable-warnings`, it was not possible to disable warnings via CFLAGS that got explicitly enabled. Now warnings are not enabled anymore if they are explicitly disabled (or enabled) in CFLAGS. This works for at least GCC, clang, and TCC as they have corresponding `-Wno-` options for every warning. Closes https://github.com/curl/curl/pull/5689
* configure: remove use of -vec-report0 from CFLAGS with iccDaniel Stenberg2020-04-061-5/+0
| | | | | | | ... as it apparently isn't (always) supported. Reported-by: Alain Miniussi Fixes #5096 Closes #5191
* copyright: fix out-of-date copyright ranges and missing headersDaniel Stenberg2020-03-2410-9/+30
| | | | | | | | | Reported by the new script 'scripts/copyright.pl'. The script has a regex whitelist for the files that don't need copyright headers. Removed three (mostly usesless) README files from docs/ Closes #5141
* curl-functions.m4: remove inappropriate AC_REQUIRERoss Burton2020-03-211-2/+0
| | | | | | | | | | | | | AC_REQUIRE means "if this macro hasn't been executed already, execute it". So in a wrapper around AC_RUN_IFELSE, AC_REQUIRE(AC_RUN_IFELSE) isn't correct at that will execute AC_RUN_IFELSE without any arguments. With autoconf 2.69 this is basically a no-op, but with autoconf 2.70, AC_RUN_IFELSE without a default value when cross-compiling is fatal. The result is that curl with autoconf 2.70 cannot cross-compile. Fixes https://github.com/curl/curl/issues/5126 Closes https://github.com/curl/curl/pull/5130
* configure: convert -I to -isystem as a last stepDaniel Stenberg2020-03-111-5/+4
| | | | | | | As all the -I uses in CFLAGS at that point are for system headers and third party libraries this helps us remove/ignore warnings on those! Closes #5060
* configure: document 'compiler_num' for gccDaniel Stenberg2020-03-111-3/+12
| | | | | | | | | | The CURL_CHECK_COMPILER_GNU_C function sets the number to MAJOR*100 + MINOR and ignores the patch version, and since gcc version 7 it only sets it to MAJOR*100. Reported-by: Stepan Efremov Ref: #5067 Closes #5069