summaryrefslogtreecommitdiff
path: root/m4
Commit message (Collapse)AuthorAgeFilesLines
...
* build: provide easy code coverage measuringDaniel Stenberg2017-06-021-0/+219
| | | | Closes #1528
* curl-compilers.m4: escape square brackets in regexMarcel Raad2017-06-011-1/+1
| | | | | Otherwise, they are removed in the final configure file. Also changed sed to "$SED" like in most other calls in this file.
* curl-compilers.m4: fix compiler_num for clangMarcel Raad2017-06-011-1/+1
| | | | | | | | | "clang -dumpversion" always returns "4.2.1", the GCC version that clang was initially compatible to. Use "clang -v" instead, which returns the actual clang version. Fixes https://github.com/curl/curl/issues/1522 Closes https://github.com/curl/curl/pull/1523
* curl-compilers.m4: enable -Wshift-sign-overflow for clangMarcel Raad2017-05-311-0/+5
| | | | | | | | clang 2.9+ supports -Wshift-sign-overflow, which warns about undefined behavior on signed left shifts when shifting by too many places. Ref: https://github.com/curl/curl/issues/1516 Closes https://github.com/curl/curl/pull/1517
* configure: stop prepending to LDFLAGS, CPPFLAGSJay Satiro2017-04-251-2/+2
| | | | | | | | - Change prepends to appends because user's LDFLAGS and CPPFLAGS should always come first so they're searched before ours. Bug: https://github.com/curl/curl/issues/1420 Reported-by: Helmut K. C. Tessarek
* curl-compilers.m4: accept -Og and -Ofast GCC flagsMarcel Raad2017-04-241-1/+1
| | | | | | | | | | | | -Og, introduced in GCC 4.8, optimizes for debugging experience. -Ofast, introduced in GCC 4.7, builds on -O3 and enables further optimizations breaking strict standards compliance. When specified in CFLAGS, these were always overridden by -O0 or -O2. Fix this by adding them to flags_opt_all. Ref: https://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/Optimize-Options.html Ref: https://github.com/curl/curl/pull/1404#issuecomment-296401570 Closes https://github.com/curl/curl/pull/1440
* curl-compilers.m4: turn implicit function declarations into errorsMarcel Raad2017-04-151-2/+5
| | | | | | | | | | | | | This adds -Werror-implicit-function-declaration for GCC 2.95+ so that these errors are visible at the point where they occur instead of only at link time. Implicit function declarations are illegal in C99 and C++ anyway, and the same warning has been turned into an error for ICC in commit 3072c5b8a127057aa922b7c51051bbb4a630b091. Ref: https://gcc.gnu.org/onlinedocs/gcc-2.95.2/gcc_2.html#SEC8 Ref: https://curl.haxx.se/mail/lib-2017-04/0001.html Closes https://github.com/curl/curl/pull/1419
* spelling fixesklemens2017-03-263-7/+7
| | | | Closes #1356
* configure: fix for --enable-pthreadsJay Satiro2017-03-021-4/+0
| | | | | | | Better handle options conflicts that can occur if --enable-pthreads. Bug: https://github.com/curl/curl/pull/1295 Reported-by: Marc-Antoine Perennou
* s/cURL/curlDaniel Stenberg2016-11-071-1/+1
| | | | | | We're mostly saying just "curl" in lower case these days so here's a big cleanup to adapt to this reality. A few instances are left as the project could still formally be considered called cURL.
* configure/CURL_CHECK_FUNC_POLL: disable poll completely on macDaniel Stenberg2016-10-181-1/+4
| | | | | | ... so that the same libcurl build easier can run on any version. Follow-up to issue #1057
* configure: detect the broken poll() in macOS 10.12Daniel Stenberg2016-10-111-3/+19
| | | | Fixes #1057
* curl-compilers.m4: improve detection of GCC's -fvisibility= flagKamil Dudka2016-06-211-2/+2
| | | | | | | | | | Some builds of GCC produce output on both stdout and stderr when --help --verbose is used. The 2>&1 redirection caused them to be arbitrarily interleaved with each other because of stream buffering. Consequently, grep failed to match the fvisibility= string in the mixed output, even though the string was present in GCC's standard output. This led to silently disabling symbol hiding in some builds of curl.
* configure: ac_cv_ -> curl_cv_ for write-only varsIrfan Adilovic2016-04-211-103/+103
| | | | | | | | | | | | | | | | | | | These configure vars are modified in a curl-specific way but never evaluated or loaded from cache, even though they are designated as _cv_. We could either implement proper AC_CACHE_CHECKs for them, or remove them completely. Fixes #603 as ac_cv_func_gethostbyname is no longer clobbered, and AC_CHECK_FUNC(gethostbyname...) will no longer spuriously succeed after the first configure run with caching. `ac_cv_func_strcasecmp` is curious, see #770. `eval "ac_cv_func_$func=yes"` can still cause problems as it works in tandem with AC_CHECK_FUNCS and then potentially modifies its result. It would be best to rewrite this test to use a new CURL_CHECK_FUNCS macro, which works the same as AC_CHECK_FUNCS but relies on caching the values of curl_cv_func_* variables, without modifiying ac_cv_func_*.
* configure: ac_cv_ -> curl_cv_ for r/w varsIrfan Adilovic2016-04-212-36/+36
| | | | | | | These configure vars are modified in a curl-specific way and modified by the configure process, but are never loaded from cache, even though they are designated as _cv_. We should implement proper AC_CACHE_CHECKs for them eventually.
* configure: ac_cv_ -> curl_cv_ for all cached varsIrfan Adilovic2016-04-212-3/+3
| | | | | | | | | | | | | This was automated by: sed -b -i -f <(ack -A1 AC_CACHE_CHECK | \ ack -o 'ac_cv_.*?\b' | \ sort -u | xargs -n1 bash -c \ 'echo "s/$0/curl_cv_${0#ac_cv_}/g"') \ $(git ls-files) This only changed the prefix for 16 variables actually checked with AC_CACHE_CHECK.
* URLs: Change more haxx.se URLs from http: to https:Dan Fandrich2016-02-031-1/+1
|
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-035-5/+5
|
* configure: detect IPv6 support on WindowsJohannes Schindelin2015-12-201-0/+10
| | | | | | | This patch was "nicked" from the MINGW-packages project by Daniel. https://github.com/Alexpux/MINGW-packages/commit/9253d0bf58a1486e91f7efb5316e7fdb48fa4007 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
* configure: allow static builds on mingwDaniel Stenberg2015-12-201-1/+1
| | | | | | | This patch is adopted from the MINGW-packages project. It makes it possible to build curl both shared and static again. URL: https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-curl
* curl-confopts.m4: Add missing ')'Tatsuhiro Tsujikawa2015-09-261-1/+1
| | | | | | ... for CURL_CHECK_OPTION_RT Closes #456
* configure: add --disable-rt optionMichaƂ Fita2015-07-241-0/+36
| | | | | | | | | | This option disables any attempts in configure to create dependency on stuff requiring linking to librt.so and libpthread.so, in this case this means clock_gettime(CLOCK_MONOTONIC, &mt). We were in need to build curl which doesn't link libpthread.so to avoid the following bug: https://sourceware.org/bugzilla/show_bug.cgi?id=16628.
* build: Fix typo from OpenSSL 1.0.2 version detection fixDrake Arconis2015-06-141-1/+1
|
* build: Properly detect OpenSSL 1.0.2 when using configureDrake Arconis2015-06-141-0/+9
|
* Enable poll on darwin13Daniel Johnson2014-05-061-1/+1
| | | | | Poll has long been broken on Mac OS X. Starting with 10.9 (darwin13) it now works correctly so this patch enables it there.
* configure: use icc options without spaceDaniel Stenberg2013-09-271-2/+2
| | | | | | | | The latest version(s) of the icc compiler no longer accept the extra space in the -we (warning enable), -wd (warning disable), etc. Reported-by: Elmira A Semenova Bug: http://curl.haxx.se/mail/lib-2013-09/0182.html
* configure: improve CURL_CHECK_COMPILER_PROTOTYPE_MISMATCHDaniel Stenberg2013-09-071-1/+1
| | | | | | The compiler test used a variable before it was assigned when it tried to see how it acts on a mismatching prototype, which could cause a false positive.
* configure: warn on bad env variable use, don't errorDaniel Stenberg2013-08-051-1/+1
| | | | Use XC_CHECK_BUILD_FLAGS instead XC_CHECK_USER_FLAGS.
* Revert "configure: don't error out on variable confusions, just warn"Daniel Stenberg2013-08-051-1/+1
| | | | This reverts commit 6b27703b5f525eccdc0a8409f51de8595c75132a.
* configure: don't error out on variable confusions, just warnDaniel Stenberg2013-08-041-1/+1
|
* configure: rephrase the notice in _XC_CHECK_VAR_*Daniel Stenberg2013-08-031-4/+4
| | | | | | Instead of claiming it is an error, we call it a "note" to reduce the severity level. But the following text now says the [variable] "*should* only be used to specify"... instead of previously having said "may".
* xc-am-iface.m4: comments refinementYang Tse2013-07-181-6/+19
|
* configure: fix 'subdir-objects' distclean related issueYang Tse2013-07-181-0/+165
| | | | See XC_AMEND_DISTCLEAN comments for details.
* xc-am-iface.m4: provide XC_AUTOMAKE macroYang Tse2013-07-091-0/+75
|
* configure: use XC_LIBTOOL for portability across libtool versionsYang Tse2013-03-081-27/+3
|
* xc-lt-iface.m4: provide XC_LIBTOOL macroYang Tse2013-03-081-0/+465
|
* strcasestr: remove check for this unused functionDaniel Stenberg2013-02-231-86/+0
|
* strlcat: remove functionDaniel Stenberg2013-02-141-88/+2
| | | | | | | | | | | | | | | | | | This function was only used twice, both in places where performance isn't crucial (socks + if2ip). Removing the use of this function removes the need to have our private version for systems without it == reduced amount of code. Also, in the SOCKS case it is clearly better to fail gracefully rather than to truncate the results. This work was triggered by a bug report on the strcal prototype in strequal.h. strlcat was added in commit db70cd28 in February 2001! Bug: http://curl.haxx.se/bug/view.cgi?id=1192 Reported by: Jeremy Huddleston
* zz40-xc-ovr.m4: fix 'wc' detection - follow-up 2Yang Tse2013-01-301-1/+1
| | | | | | | - Fix a pair of single quotes to double quotes. URL: http://curl.haxx.se/mail/lib-2013-01/0355.html Reported by: Tor Arntsen
* zz40-xc-ovr.m4: fix 'wc' detection - follow-upYang Tse2013-01-301-8/+20
| | | | | | - Take into account that 'wc' may return leading spaces and/or tabs. - Set initial IFS to space, tab and newline.
* zz40-xc-ovr.m4: fix 'wc' detectionYang Tse2013-01-301-3/+14
| | | | | | | | | | - Take into account that 'wc' may return leading spaces. - Set internationalization behavior variables. Tor Arntsen analyzed and reported the issue. URL: http://curl.haxx.se/mail/lib-2013-01/0351.html
* zz40-xc-ovr.m4: check another three basic utilitiesYang Tse2013-01-291-24/+116
|
* zz40-xc-ovr.m4: 1.0 interface stabilizationYang Tse2013-01-281-89/+116
| | | | | | | | | | | - Stabilization results in 4 public interface m4 macros: XC_CONFIGURE_PREAMBLE XC_CONFIGURE_PREAMBLE_VER_MAJOR XC_CONFIGURE_PREAMBLE_VER_MINOR XC_CHECK_PATH_SEPARATOR - Avoid one level of internal indirection - Update comments - Drop XC_OVR_ZZ40 macro
* zz40-xc-ovr.m4: emit witness message in configure BODYYang Tse2013-01-261-3/+36
| | | | | This avoids witness message in output when running configure --help, while sending the message to config.log for other configure runs.
* zz40-xc-ovr.m4: truly do version conditional overridingYang Tse2013-01-251-2/+15
| | | | | | - version conditional overriding - catch unexpanded XC macros - fix double words in comments
* zz40-xc-ovr.m4: fix variable assignment of subshell output bashismYang Tse2013-01-251-5/+5
| | | | | | Tor Arntsen analyzed and reported the issue. URL: http://curl.haxx.se/mail/lib-2013-01/0306.html
* zz40-xc-ovr.m4: reinstate strict AC_REQUIRE macro dependenciesYang Tse2013-01-251-0/+36
|
* zz40-xc-ovr.m4: avoid double single-quote usageYang Tse2013-01-251-4/+4
|
* zz40-xc-ovr.m4: parentheses balancing of 'case' statementsYang Tse2013-01-251-6/+6
| | | | | | m4 quadrigraph shell comment technique allows proper autoconf parentheses balancing in shell 'case' statements. The presence of unbalanced parentheses may otherwise trigger expansion bugs.
* zz40-xc-ovr.m4: internals overhaulingYang Tse2013-01-241-90/+120
| | | | | | | | | - Update comments - Execute commands in subshells - Faster path separator check - Fix missing 'test' command - Rename private macros - Minimize AC_REQUIRE usage