summaryrefslogtreecommitdiff
path: root/build
Commit message (Collapse)AuthorAgeFilesLines
* Follow up to r1908503: restore INCLUDES setting.Yann Ylavic2023-03-271-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1908749 13f79535-47bb-0310-9956-ffa450edef68
* crypto_openssl: Fix configure/detection of OPENSSL_init_crypto()Yann Ylavic2023-03-181-24/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1908503 13f79535-47bb-0310-9956-ffa450edef68
* configure: Follow up to r1906889: Run the test for pthread_setname_np().Yann Ylavic2023-03-161-4/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1908438 13f79535-47bb-0310-9956-ffa450edef68
* Revert r1907986.Yann Ylavic2023-03-021-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1907987 13f79535-47bb-0310-9956-ffa450edef68
* configure: atomic builtins might be implemented for i586 and i686.Yann Ylavic2023-03-021-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1907986 13f79535-47bb-0310-9956-ffa450edef68
* Merge thread-name branch (PR 60587) [1]:Ivan Zhakov2023-01-211-0/+24
|\ | | | | | | | | | | | | | | | | * Introduce apr_thread_name_set() and apr_thread_name_get(). [1] https://bz.apache.org/bugzilla/show_bug.cgi?id=60587 [2] https://lists.apache.org/thread/z24logzc6v8tc0p2q3375cc10qo9y5yw git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1906889 13f79535-47bb-0310-9956-ffa450edef68
| * crude check for pthread_setname_npEric Covener2022-06-281-0/+24
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/thread-name@1902326 13f79535-47bb-0310-9956-ffa450edef68
* | Fix further strict C99 compliance issue. (fixes #37)Joe Orton2023-01-111-0/+20
| | | | | | | | | | | | | | | | PR: 66408 Submitted by: Sam James <sam gentoo.org> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1906594 13f79535-47bb-0310-9956-ffa450edef68
* | Fix configure for compilers which don't accept implicitJoe Orton2023-01-033-4/+4
| | | | | | | | | | | | | | | | | | | | int (no longer part of C since C99). Submitted by: Florian Weimer <fweimer redhat.com> PR: 66396 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1906347 13f79535-47bb-0310-9956-ffa450edef68
* | Remove trailing whitespaces in *.c.Ivan Zhakov2022-11-201-7/+7
|/ | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905414 13f79535-47bb-0310-9956-ffa450edef68
* set -lxml2 in non xml2-config caseEric Covener2022-06-221-0/+2
| | | | | | | Closes #36 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902176 13f79535-47bb-0310-9956-ffa450edef68
* Add minimal vcpkg ports/apr-2Mladen Turk2021-12-032-0/+64
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1895543 13f79535-47bb-0310-9956-ffa450edef68
* Since runtime SCTP detection is dependent on kernel configuration, addJoe Orton2021-10-121-2/+15
| | | | | | | | | | | | | | flags to make SCTP support reliable: * build/apr_network.m4 (APR_CHECK_SCTP): Add --disable-sctp flag to forcibly disable SCTP support, and --enable-sctp to fail configure if is SCTP support is requested but not available. Submitted by: Lubos Uhliarik <luhliari redhat.com>, jorton Github: closes #28 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1894167 13f79535-47bb-0310-9956-ffa450edef68
* Update config.guess and config.sub fromRainer Jung2021-08-312-826/+998
| | | | | | | https://git.savannah.gnu.org/cgit/config.git. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1892754 13f79535-47bb-0310-9956-ffa450edef68
* Follow up to r1887279: fix new APR_TRY_COMPILE_NO_WARNING.Yann Ylavic2021-03-241-2/+9
| | | | | | | | | | | | AC_LANG_PROGRAM generates an "int main()" prototype which some compilers warn about. Restore AC_LANG_SOURCE to manually set the correct main() but do not #include "confdefs.h" if it is inlined already by AC_LANG_SOURCE (i.e. check whether PACKAGE_NAME is already defined). Github: closes #25 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1888017 13f79535-47bb-0310-9956-ffa450edef68
* build/apr_common.m4: avoid explicit inclusion of "confdefs.h"Yann Ylavic2021-03-061-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The failure is observed on `autoconf-2.69d` (soon to be released as `autoconf-2.70`). There `int64_t` detection fails as: $ autoreconf && ./configure checking whether int64_t and int use fmt %d... no checking whether int64_t and long use fmt %ld... no checking whether int64_t and long long use fmt %lld... no configure: error: could not determine the string function for int64_t ``` This happens because `./configure` always stumbles on warning: configure:3350: gcc -c -g -O2 -Werror conftest.c >&5 In file included from conftest.c:31: confdefs.h:22: error: "__STDC_WANT_IEC_60559_ATTRIBS_EXT__" redefined [-Werror] 22 | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 | It's triggered by double inclusion of `"confdefs.h"` contents: explicitly in `APR_TRY_COMPILE_NO_WARNING` macro and implicitly via `AC_LANG_SOURCE` use. To fix it and avoid having to define `main()` declaration the change uses `AC_LANG_PROGRAM` instead. Tested on both `autoconf-2.69` and `autoconf-2.69d`. Github: closes #25 Submitted by: Sergei Trofimovich <slyfox gentoo.org> Reviewed by: ylavic git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1887279 13f79535-47bb-0310-9956-ffa450edef68
* inet_addr requires #include <arpa/inet.h>Jim Jagielski2020-10-291-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1882982 13f79535-47bb-0310-9956-ffa450edef68
* calls to exit() require stdlib.h or else we get ↵Jim Jagielski2020-10-292-0/+18
| | | | | | -Werror,-Wimplicit-function-declaration git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1882979 13f79535-47bb-0310-9956-ffa450edef68
* Use a more conventional perl pathWilliam A. Rowe Jr2020-08-051-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1880612 13f79535-47bb-0310-9956-ffa450edef68
* Correctly observe links as distinct from files to avoid modifying them.William A. Rowe Jr2020-08-051-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1880611 13f79535-47bb-0310-9956-ffa450edef68
* Avoid traversing .git or .svn trees, avoid correcting non-file entities ↵William A. Rowe Jr2020-08-051-1/+3
| | | | | | (e.g. links) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1880610 13f79535-47bb-0310-9956-ffa450edef68
* Use the xml2-config tool to configure libxml2. Revert changes to expat buildGraham Leggett2020-07-251-39/+50
| | | | | | | that prevented the expat library being propagated to APR. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1880286 13f79535-47bb-0310-9956-ffa450edef68
* APR's configure script uses AC_TRY_RUN to detect whether the return typeGraham Leggett2020-03-101-7/+4
| | | | | | | | | | of strerror_r is int. When cross-compiling this defaults to no. This commit adds an AC_CACHE_CHECK so users who cross-compile APR may influence the outcome with a configure variable. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1875065 13f79535-47bb-0310-9956-ffa450edef68
* * Add to correct include variableRuediger Pluem2020-01-101-1/+1
| | | | | | | | There is no APRUTIL_PRIV_INCLUDES in APR trunk. Add to INCLUDES instead like several lines below. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1872587 13f79535-47bb-0310-9956-ffa450edef68
* Update config.guess and config.sub fromRainer Jung2020-01-012-10/+15
| | | | | | | https://git.savannah.gnu.org/cgit/config.git. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1872203 13f79535-47bb-0310-9956-ffa450edef68
* Teach configure how to find and build against MariaDB 10.2. PR 61517Graham Leggett2019-12-281-23/+33
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1872060 13f79535-47bb-0310-9956-ffa450edef68
* Submitted by: Hongxu Jia <hongxu.jia@windriver.com>Graham Leggett2019-12-263-1/+130
| | | | | | | | | | | | | | | https://patch-diff.githubusercontent.com/raw/apache/apr/pull/8.patch While cross-compiling, the tools/gen_test_char could not be executed at build time, use AX_PROG_CC_FOR_BUILD to build native tools/gen_test_char Support explicit libtool by variable assigning before buildcheck.sh, it is helpful for cross-compiling (such as libtool=aarch64-linux-libtool) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1871998 13f79535-47bb-0310-9956-ffa450edef68
* Use AC_CHECK_SIZEOF, so as to support cross compiling. PR 56053.Graham Leggett2019-12-261-37/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1871980 13f79535-47bb-0310-9956-ffa450edef68
* apr_crypto_commoncrypto: Remove stray reference to -lcrypto thatGraham Leggett2019-11-061-2/+2
| | | | | | | prevented commoncrypto being enabled. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1869486 13f79535-47bb-0310-9956-ffa450edef68
* Update config.guess and config.sub fromRainer Jung2019-07-172-62/+233
| | | | | | | https://git.savannah.gnu.org/cgit/config.git. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1863205 13f79535-47bb-0310-9956-ffa450edef68
* Revert r1833421 et al:Graham Leggett2019-06-241-15/+0
| | | | | | | Remove hard linking of all crypto libraries to core APR. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1861960 13f79535-47bb-0310-9956-ffa450edef68
* apr_crypto_openssl: Remove unused link to the ssl library.Graham Leggett2019-06-231-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1861959 13f79535-47bb-0310-9956-ffa450edef68
* apr_crypto_openssl: use OPENSSL_init_crypto() to initialise OpenSSL Graham Leggett2019-06-231-1/+1
| | | | | | | | | on versions 1.1+. Reference: http://openssl.6102.n7.nabble.com/Shutting-down-openssl-is-the-correct-thing-to-do-nothing-td76857.html#a76862 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1861954 13f79535-47bb-0310-9956-ffa450edef68
* Allow NSS to be found on MacPorts installations.Graham Leggett2019-06-101-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1860980 13f79535-47bb-0310-9956-ffa450edef68
* Pull out caller actions from AC_CACHE_CHECK in APR_CHECK_TYPES_FMT_COMPATIBLE.Yann Ylavic2019-03-221-5/+10
| | | | | | | This allows to print results in the correct order when the function is chained. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1856089 13f79535-47bb-0310-9956-ffa450edef68
* Use stdint/inttypes 64bit types/formats when both available.Yann Ylavic2019-03-221-1/+5
| | | | | | | Which should be the case on modern platforms, no change for others. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1856042 13f79535-47bb-0310-9956-ffa450edef68
* Use proc mutex pthread by default when robust[_np]Yann Ylavic2019-03-221-1/+32
| | | | | | | | | | | | | On platforms that support pshared and robust pthread mutex, this is usually the best interprocess mutex mechanism because it's efficient, posix, not limited and not persistent on the system when the program exits (i.e. no need to delete it explicitely before leaving, like IPC SysV or files for instance). Note that on older POSIX systems pthread_mutex_{setrobust,consistent}() funcs existed with the non-posix _np() suffix, and we consider them equivalent. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1856022 13f79535-47bb-0310-9956-ffa450edef68
* Deprecate APR_CHECK_TYPES_COMPATIBLE for new APR_CHECK_TYPES_FMT_COMPATIBLEWilliam A. Rowe Jr2019-03-191-3/+27
| | | | | | | | | | | | | macro, testing both type compatibility in a more portable way, and verifying the printf format token for these types. Order of preference of long over int is preserved. (Defers off_t fixes for the subsequent patch.) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1855839 13f79535-47bb-0310-9956-ffa450edef68
* Silence some leftover noisy trace logicWilliam A. Rowe Jr2019-03-131-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1855443 13f79535-47bb-0310-9956-ffa450edef68
* Update config.guess and config.sub fromRainer Jung2019-01-012-1547/+1517
| | | | | | | https://git.savannah.gnu.org/cgit/config.git. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1850095 13f79535-47bb-0310-9956-ffa450edef68
* Fix Python3 compatibility.Branko Čibej2018-11-171-1/+2
| | | | | | | | * build/gen-build.py (extract_deps): Do not assume that source files are only ASCII. This fixes a build failure on macOS High Sierra. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1846806 13f79535-47bb-0310-9956-ffa450edef68
* Fix test coverage functionalityChristophe Jaillet2018-09-071-11/+40
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1840316 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1839627, this macro does not result in a usable CC_FOR_BUILDWilliam A. Rowe Jr2018-08-301-3/+1
| | | | | | | Corresponds to unsuccessful pull request #8. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1839701 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1839699, this contained unintended, additional noise. Re-correcting.William A. Rowe Jr2018-08-301-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1839700 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1839627, this macro does not result in a usable CC_FOR_BUILDWilliam A. Rowe Jr2018-08-301-3/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1839699 13f79535-47bb-0310-9956-ffa450edef68
* Submitted by: Hongxu Jia <hongxu.jia@windriver.com>William A. Rowe Jr2018-08-301-1/+3
| | | | | | | | | | | | | | | https://patch-diff.githubusercontent.com/raw/apache/apr/pull/8.patch While cross-compiling, the tools/gen_test_char could not be executed at build time, use AX_PROG_CC_FOR_BUILD to build native tools/gen_test_char Support explicit libtool by variable assigning before buildcheck.sh, it is helpful for cross-compiling (such as libtool=aarch64-linux-libtool) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1839627 13f79535-47bb-0310-9956-ffa450edef68
* crypto: follow up to r1833421.Yann Ylavic2018-08-041-1/+1
| | | | | | | | | | | Link with OpenSSL's libssl in addition to libcrypto, so that we can initialize and deinitialize them together (libssl can't do this independently). Also, for older OpenSSL versions, initialize the threading locks needed by the lib at runtime. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1837430 13f79535-47bb-0310-9956-ffa450edef68
* * build/buildcheck.sh, buildconf: Detect and run under Python 3 or 2,Joe Orton2018-06-272-23/+26
| | | | | | | | | and respect $PYTHON. * build/gen-build.py: Fix various Python 3 compatibility issues. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1834494 13f79535-47bb-0310-9956-ffa450edef68
* apr_crypto: follow up to r1833359: export full <lib>_LDFLAGS.Yann Ylavic2018-06-121-7/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1833425 13f79535-47bb-0310-9956-ffa450edef68
* apr_crypto: follow up to r1833359.Yann Ylavic2018-06-121-0/+10
| | | | | | | | | | | | | | | | | | | | | Link underlying crypto libraries (openssl, nss, and commoncrypto) with libapr when the corresponding --with is configured. This allows to initialize, terminate or check whether initialized respectively with apr_crypto_lib_init(), apr_crypto_lib_term() or apr_crypto_lib_is_initialized(). Users can now control the (un)initialization of those libraries, notably when they also use them independently and that doing this multiple times can cause leaks or unexpected behaviour. The initialization code is moved from "apr_crypto_{openssl,nss,commoncrypto}.c" where previously loaded dynamically (DSO) to "apr_crypto_internal.c" which is linked with libapr. Also apr_crypto_prng_init() can make sure the underlying crypto lib is ready. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1833421 13f79535-47bb-0310-9956-ffa450edef68