summaryrefslogtreecommitdiff
path: root/configure.in
Commit message (Collapse)AuthorAgeFilesLines
* Simplify avoiding the dirread_r deprecated and unwise invocations, by alwayswrowe2019-04-011-4/+2
| | | | | | | | | | presuming READDIR_IS_THREAD_SAFE for our purposes. Users can force-override this to gain dirread_r detection again, but it would not be advised in 1.7.0 and later releases. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1856756 13f79535-47bb-0310-9956-ffa450edef68
* Revert r1789258, r1856189, r1856191 following discussion on list, in favorwrowe2019-04-011-24/+1
| | | | | | | | | | | | | | | of a simpler path of avoiding dirread_r always, by default. This saves us various additional detection logic, and follows advice of library maintainers and our library's behavior, any apparent "thread safety" offered by the _r() flavors of this function were not truly supported by APR's allocation or dirread_r reentrancy of parallel threads attemping to access the same open directory descriptor. Retains r1856192, r1856196 to avoid wasteful allocation in the dirread() case. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1856755 13f79535-47bb-0310-9956-ffa450edef68
* Follow up to r1856189: sys/types.h possibly needed.ylavic2019-03-251-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1856191 13f79535-47bb-0310-9956-ffa450edef68
* Follow up to r1789258: configure to detect whether readdir() is thread-safe.ylavic2019-03-251-1/+23
| | | | | | | | | | | | | On platforms where readdir_r() is available but deprecated, readdir() is to be used although it's not in libc_r (e.g. Linux has no libc_r). In this case we can APR_TRY_COMPILE_NO_WARNING readdir_r() and, if it's deprecated, define READDIR_IS_THREAD_SAFE. With this we don't need user-defined APR_USE_READDIR{,64}_R from r1789258. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1856189 13f79535-47bb-0310-9956-ffa450edef68
* The string conversion to apr_off_t is strtoll when it's a long long.ylavic2019-03-221-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1856063 13f79535-47bb-0310-9956-ffa450edef68
* Use stdint/inttypes 64bit types/formats when both available.ylavic2019-03-221-11/+34
| | | | | | | Which should be the case on modern platforms, no change for others. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1856042 13f79535-47bb-0310-9956-ffa450edef68
* Use proc mutex pthread by default when robust[_np]ylavic2019-03-221-0/+8
| | | | | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@1856022 13f79535-47bb-0310-9956-ffa450edef68
* Replace generic off_t logic with APR_CHECK_TYPES_FMT_COMPATIBLE,wrowe2019-03-191-11/+18
| | | | | | | | | | confirming that the best int type is elected for off_t, even where the bytewidth of multiple int types is identical. Resolves issues around APR_OFF_T_FMT reported on modern BSD compilers. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1855840 13f79535-47bb-0310-9956-ffa450edef68
* Deprecate APR_CHECK_TYPES_COMPATIBLE for new APR_CHECK_TYPES_FMT_COMPATIBLEwrowe2019-03-191-4/+9
| | | | | | | | | | | | | 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: http://svn.apache.org/repos/asf/apr/apr/trunk@1855839 13f79535-47bb-0310-9956-ffa450edef68
* Quit redundantly looking up shlibpath_varwrowe2019-03-131-1/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1855444 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1839627, this macro does not result in a usable CC_FOR_BUILDwrowe2018-08-301-3/+0
| | | | | | | Corresponds to unsuccessful pull request #8. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1839701 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1839699, this contained unintended, additional noise. Re-correcting.wrowe2018-08-301-0/+3
| | | | git-svn-id: http://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_BUILDwrowe2018-08-301-3/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1839699 13f79535-47bb-0310-9956-ffa450edef68
* Submitted by: Hongxu Jia <hongxu.jia@windriver.com>wrowe2018-08-301-0/+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: http://svn.apache.org/repos/asf/apr/apr/trunk@1839627 13f79535-47bb-0310-9956-ffa450edef68
* If --with-installbuilddir is not supplied, it unconditially overrides the valuerjung2018-08-251-2/+2
| | | | | | | | | | | | | set by APR_SET_LAYOUT. Disable that and stop showing an invalid default value. PR 56090. Patch provided by Michael Osipov. This fixes #11. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1839068 13f79535-47bb-0310-9956-ffa450edef68
* Provide APR_SIZEOF_OFF_T.ylavic2018-07-251-0/+7
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1836616 13f79535-47bb-0310-9956-ffa450edef68
* configure.in: match fallback apr_off_t type with the comment/format.ylavic2018-07-251-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1836615 13f79535-47bb-0310-9956-ffa450edef68
* rand: follow up to r1814240: still honor --with-devrandom if specified.ylavic2018-06-011-13/+17
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1832691 13f79535-47bb-0310-9956-ffa450edef68
* configure: fix detection of net/if.h on openbsd.ylavic2018-03-221-2/+8
| | | | | | | | | | | Depends on sys/socket.h. PR-61976. Proposed by: David Carlier <devnexen gmail.com> Reviewed by: ylavic git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1827534 13f79535-47bb-0310-9956-ffa450edef68
* Support IPv6 link-local address scope/zone mapping.jorton2017-11-281-2/+4
| | | | | | | | | | | | | | | | | | | | * network_io/unix/sockaddr.c (apr_sockaddr_zone_set, apr_sockaddr_zone_get): New functions. (apr_sockaddr_ip_getbuf): Append %scope for link-local address. (apr_sockaddr_equal): Compare link-local address with different scopes as not equal. * include/apr_network_io.h: Add function declarations. * configure.in: Test for if_indextoname and if_nametoindex. * test/testsock.c (test_zone): New test case. * include/arch/win32/apr_private.h: Assume Windows supports if_nametoindex and if_indextoname. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1816527 13f79535-47bb-0310-9956-ffa450edef68
* rand: follow up to r1814240.ylavic2017-11-041-0/+7
| | | | | | | | Fall back to using SYS_getrandom syscall when it's available in linux (3.17+) but not in glibc (2.25+, not very deployed yet). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1814326 13f79535-47bb-0310-9956-ffa450edef68
* rand: add support for getrandom() on Linux as an entropy source.ylavic2017-11-041-0/+10
| | | | | | | | | | | Use it for apr_generate_random_bytes() when available, reading from the urandom source, and non-blocking such that the call fails with EAGAIN if there is not enough entropy on the system (which shouldn't be the case in userspace). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1814240 13f79535-47bb-0310-9956-ffa450edef68
* rand: add support for the arc4random API as an entropy source.ylavic2017-11-031-0/+9
| | | | | | | | | | | | | The arc4random API originates from OpenBSD where it supersedes random(3), rand(3), and files in the /dev filesystem. Use it for apr_generate_random_bytes(). Proposed by: Christian Weisgerber Reviewed by: ylavic git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1814239 13f79535-47bb-0310-9956-ffa450edef68
* Also affects clang 5 (and maybe older versions too)jim2017-10-031-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1811000 13f79535-47bb-0310-9956-ffa450edef68
* Macro doesn't exit herejim2017-10-021-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1810452 13f79535-47bb-0310-9956-ffa450edef68
* Get maint mode working again w/ macOS Xcode 9 (clang-900)jim2017-10-021-0/+5
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1810450 13f79535-47bb-0310-9956-ffa450edef68
* locks: when pthread_mutex_timedlock() isn't available, fall back to anylavic2017-04-051-0/+5
| | | | | | | | implementation based on pthread_cond_timedwait() when possible. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1790330 13f79535-47bb-0310-9956-ffa450edef68
* Do not try to use fdatasync() on macOS.brane2017-04-051-0/+5
| | | | | | | | | Use the platform-specific fcntl(fd, F_FULLFSYNC) instead. See http://apr.markmail.org/thread/hlgqd5yr6j4auxol git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1790200 13f79535-47bb-0310-9956-ffa450edef68
* Follow up to r1763665: use correct array initializer.ylavic2016-10-061-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1763667 13f79535-47bb-0310-9956-ffa450edef68
* crypto: provide apr_crypto_memzero, garanteed to not be optimized out byylavic2016-10-061-0/+53
| | | | | | | | compilers. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1763665 13f79535-47bb-0310-9956-ffa450edef68
* * configure.in: Detect mkostemp, mkostemp64.jorton2015-06-041-2/+2
| | | | | | | | | * file_io/unix/mktemp.c (apr_file_mktemp): Use glibc mkostemp or mkostemp64 where available to set FD_CLOEXEC without the extra system calls. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1683520 13f79535-47bb-0310-9956-ffa450edef68
* Switch to generic atomics for (unpatched) Solaris 10 not exporting some atomicylavic2015-04-231-1/+14
| | | | | | | functions. PR 55418. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1675668 13f79535-47bb-0310-9956-ffa450edef68
* Don't use mkstemp() on HP-UX. It is limited to creationtrawick2015-04-041-2/+18
| | | | | | | | | of 26 temporary files. PR: 57677 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1671356 13f79535-47bb-0310-9956-ffa450edef68
* build: Correctly use AC_(PATH|CHECK)_TOOL to support cross compilation.trawick2015-04-041-2/+2
| | | | | | | | | PR: 56866 Submitted by: Timothy Gu <timothygu99 gmail.com> Reviewed by: trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1671296 13f79535-47bb-0310-9956-ffa450edef68
* locks: introduce apr_{thread,proc,global}_mutex_timedlock().ylavic2015-03-191-8/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For proc mutexes, the new mechanism APR_LOCK_DEFAULT_TIMED usable at creation time allows for the best mechanism to be elected (unixes: 1 to 3, or specific: 4 to 7): 1. PROC_PTHREAD if pthread_mutex_timedlock() and pthread_mutex_set_robust_np() are both available, 2. SYSV if semtimedop() is availale, 3. POSIXSEM if sem_timedwait() is available, 4. BeOS' acquire_sem_etc() if available, 5. NetWare falls back to apr_thread_mutex_timedlock() as for others functions, 6. OS2's DosRequestMutexSem(), 7. Windows' WaitForSingleObject(). Otherwise (like when fcntl and flock only are availble, if that's ever possible), APR_ENOTIMPL is returned. For thread mutexes, the new flag APR_THREAD_MUTEX_TIMED, usable at create() time still, allows to switch to an implementation using a condition variable and apr_thread_cond_timedwait() when if no native mechanism is available (eg. NetWare, pthreads but without pthread_mutex_timedlock() available). On windows, this initializes a WaitForSingleObject()able handle (Mutex) instead of the fastest (but not timeout-able) CRITICAL_SECTION used by default. All apr_{thread,proc,global}_mutex_timedlock() functions can take a relative or absolute time, thanks to the last (boolean) argument. Test suite updated accordingly. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1667900 13f79535-47bb-0310-9956-ffa450edef68
* Add option to use guard pagessf2014-05-091-1/+14
| | | | | | | | | | Add new --enable-allocator-guard-pages configure option which works like --enable-allocator-uses-mmap, but will also add inaccessible guard pages before and after each memnode. This will result in higher ressource usage but allow to find/protect against certain buffer overflow/overread bugs. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1593615 13f79535-47bb-0310-9956-ffa450edef68
* Option to detect concurrent accesses to poolssf2014-05-091-0/+8
| | | | | | | | | | | | | | Enabled by new configure option --enable-pool-concurrency-check. Compared to pool-owner-debugging, this only detects cases where there is actual contention between accesses. The advantage is that runtime costs should be relatively low. The diagnostic messages could still use some improvement. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1593614 13f79535-47bb-0310-9956-ffa450edef68
* Revert sys/attr.h test for the time being, reapplying later as a complete patchwrowe2014-02-121-1/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1567758 13f79535-47bb-0310-9956-ffa450edef68
* Correct nonsense test for non-exported sys/stat.h autoconf flagwrowe2014-02-121-0/+1
| | | | | | | Introduce non-exported sys/attr.h autoconf flag for OS/X git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1567722 13f79535-47bb-0310-9956-ffa450edef68
* Maintain ordering but use OVERRIDE if enabled AND foundjim2014-01-251-5/+8
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1561321 13f79535-47bb-0310-9956-ffa450edef68
* *) Fix POSIX shared memory (shm_open) use for named shared memory.jim2014-01-251-5/+9
| | | | | | | PR 55928. [Jozef Hatala <jh-asf skrt org>] git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1561260 13f79535-47bb-0310-9956-ffa450edef68
* Follow up to r1535027 and r1535157:trawick2013-11-131-1/+1
| | | | | | | | | | | Fix sed re escaping issue in recognition of Linux kernel version. PR: 55690 Submitted by: Arfrever Frehtes Taifersar Arahesis <arfrever.fta gmail.com> Reviewed by: trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1541486 13f79535-47bb-0310-9956-ffa450edef68
* Fix fcntl(fd, F_GETFL) call in r1539374sf2013-11-061-3/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1539389 13f79535-47bb-0310-9956-ffa450edef68
* Use fcntl instead of SOCK_NONBLOCK to make socket nonblockingsf2013-11-061-2/+6
| | | | | | | | | | | in accept4 check. There are platforms (e.g. Hurd) that support SOCK_NONBLOCK only with accept4(), but not with socket(). See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=715028 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1539374 13f79535-47bb-0310-9956-ffa450edef68
* * configure.in: Fix r1535027 for Linux kernel versions x.0.y.jorton2013-10-231-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1535157 13f79535-47bb-0310-9956-ffa450edef68
* * configure.in: Fix Linux kernel version detection, which did notjorton2013-10-231-8/+16
| | | | | | | | | anticipate "3.11.x"-style double digit versioning. PR: 55690 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1535027 13f79535-47bb-0310-9956-ffa450edef68
* Trick autoconf into printing the correct default prefix in the helpsf2013-05-031-0/+3
| | | | | | | | | | The defaults of some dirs like libexecdir are still not printed correctly, though. PR: 54032 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1478954 13f79535-47bb-0310-9956-ffa450edef68
* Mark apr_dbd_freetds as unsupported and remove it from all buildsniq2013-03-301-1/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1462772 13f79535-47bb-0310-9956-ffa450edef68
* Add valgrind supportsf2013-01-261-0/+16
| | | | | | | | | | | | | | | | | Teach valgrind about apr pools, allocators, and bucket allocators if --with-valgrind is passed to configure. This has less impact on program behavior and performance than compiling with complete pool-debugging. Even with valgrind support compiled in, the performance impact if not running under valgrind should be minimal. It may make sense to use pool-debugging together with valgrind support because pool-debugging does not help with allocators and bucket allocators. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1438957 13f79535-47bb-0310-9956-ffa450edef68
* Resolve these warnings when linking test programs with the MinGW/MSYS toolchain:trawick2012-08-141-6/+13
| | | | | | | | | libtool: link: warning: `-no-install' is ignored for i686-pc-mingw32 libtool: link: warning: assuming `-no-fast-install' instead git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1372849 13f79535-47bb-0310-9956-ffa450edef68