summaryrefslogtreecommitdiff
path: root/configure.in
Commit message (Collapse)AuthorAgeFilesLines
* * 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
* * configure.in: Use AC_MSG_* rather than direct echo, making --quiet modejorton2012-06-061-26/+39
| | | | | | | work (better). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1346860 13f79535-47bb-0310-9956-ffa450edef68
* z/OS "threadsafe" apr_pollset_poll depends on async i/o feeding angregames2012-04-131-0/+19
| | | | | | | | IPC message queue. Create a configure test for that combo and test it elsewhere. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1325944 13f79535-47bb-0310-9956-ffa450edef68
* support for thread-hopping apr_pollset_* using z/OS async i/o. gregames2012-04-031-0/+2
| | | | | | | no support for apr_pollcb yet. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1308910 13f79535-47bb-0310-9956-ffa450edef68
* apr_crypto: Crypto library detection runs twice (from main configure logicminfrin2011-12-141-2/+0
| | | | | | | | | | as well as from APU_CHECK_CRYPTO). Crypto enablement depends on enablement of a crypto library, but forgetting to enable a crypto library silently proceeds without failing. Submitted by: trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1214516 13f79535-47bb-0310-9956-ffa450edef68
* Drop the incomplete LDAP abstraction layer from APR 2.0 as decided on-list.wrowe2011-05-311-6/+0
| | | | | | | | It was not possible to use this interface without ldap provider internals. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1129809 13f79535-47bb-0310-9956-ffa450edef68
* Fix badly misplaced SUBSTwrowe2011-05-291-0/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1128947 13f79535-47bb-0310-9956-ffa450edef68
* Begin refactoring to prepare for ldap removalwrowe2011-05-291-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1128885 13f79535-47bb-0310-9956-ffa450edef68
* indentation fixtrawick2011-04-171-12/+11
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1094141 13f79535-47bb-0310-9956-ffa450edef68
* improve sync between apr.h and apr.hwtrawick2011-04-091-1/+12
| | | | | | | | notably, APR_HAS_SENDFILE and APR_HAS_MMAP are now enabled for MinGW builds git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1090664 13f79535-47bb-0310-9956-ffa450edef68
* MinGW/MSYS: Support shared builds of APR, other general improvementstrawick2011-04-021-9/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to support of this toolchain. test/Makefile.in: * $(LT_LDFLAGS) must be placed after the driver, otherwise it will act exactly like $(LTFLAGS). This is required, otherwise libtool will be never able to recognize the "-no-undefined" flag. * if mod_test.la does not specify $(LOCAL_LIBS), compilation will fail (this is required by both static and shared builds). include/apr.h.in: * It is required to declare APR_DECLARE, APR_DECLARE_NONSTD and APR_DECLARE_DATA as they are in apr.hw, otherwise the generate DLL won't export any symbol. APR_MODULE_DECLARE_DATA is already included, but previous ones are not. configure.in: * $(LT_LDFLAGS) must be placed after the driver, as described for test/Makefile.in. * Added "-no-undefined" flag to $(LT_LDFLAGS) if the target platform is Windows. * Declare APR_DECLARE_EXPORT or APR_DECLARE_STATIC, required by the macro added in include/apr.h.in. * Removed the "strange" libraries detection (btw, probably it was also breaking platforms without __stdcall calling convention, like Windows CE/Mobile/Phone, since function names were decorated), linker gave error without sense if adding "-lkernel32", probably because it creates a conflict of library precedence and dependency. PR: 46175 Submitted by: Carlo Bramini <carlo.bramix libero.it> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1088023 13f79535-47bb-0310-9956-ffa450edef68
* fix a bit of 'if FOO'/'ifdef FOO' confusiontrawick2011-03-291-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1086695 13f79535-47bb-0310-9956-ffa450edef68
* axe some commented-out mingw logictrawick2011-03-291-13/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1086666 13f79535-47bb-0310-9956-ffa450edef68
* Fixed apr_ino_t typedef for MinGW builds.fuankg2011-03-291-8/+17
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1086633 13f79535-47bb-0310-9956-ffa450edef68
* Fixed mingw platform identifier to catch all cross compilers.fuankg2011-03-271-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1085985 13f79535-47bb-0310-9956-ffa450edef68
* Moved platform-specific stuff to build/apr_hints.m4.fuankg2011-03-271-5/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1085978 13f79535-47bb-0310-9956-ffa450edef68
* Removed duplicate already set in build/apr_hints.m4.fuankg2011-03-271-1/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1085976 13f79535-47bb-0310-9956-ffa450edef68
* Revert r1085937 per Jeff's suggestion.fuankg2011-03-271-1/+0
| | | | | | | Such defines should go into build/apr_hints.m4. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1085974 13f79535-47bb-0310-9956-ffa450edef68
* Set APR_HAS_OS_UUID=1 for Windows builds.fuankg2011-03-271-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1085937 13f79535-47bb-0310-9956-ffa450edef68
* Fixed process.h detection with configure builds.fuankg2011-03-261-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1085660 13f79535-47bb-0310-9956-ffa450edef68
* Support selection of libxml2 vs expat in autoconf build.niq2011-03-251-2/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1085350 13f79535-47bb-0310-9956-ffa450edef68
* MinGW improvements:trawick2011-03-191-4/+14
| | | | | | | | | | | | | | | | * fix settings of APR_HAS_USER, APR_HAS_XTHREAD_FILES, APR_THREAD_FUNC, and APR_PROCATTR_USER_SET_REQUIRES_PASSOWRD * stop setting optimization level back to -O0, which isn't needed any more * bypass autodetection of O_NONBLOCK, TCP_NODELAY, and OS uuid suppot also, change the defaulting of have_unicode_fs to use the APR macro PR: 46175 (this is a moderate part of the patch) Submitted by: Carlo Bramini Reviewed/tweaked by: trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1083242 13f79535-47bb-0310-9956-ffa450edef68
* Fix definition of apr_ino_t to be independent of _FILE_OFFSET_BITS evensf2011-03-071-6/+10
| | | | | | | | | | | if ino_t is 'unsigned int' (this case was not caught by APR_CHECK_TYPES_COMPATIBLE(... unsigned long...) ). Also don't limit the special handling to 32bit platforms, as there are platforms (e.g. kfreebsd-gnu-amd64) where _FILE_OFFSET_BITS influences ino_t even on 64bit. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1078845 13f79535-47bb-0310-9956-ffa450edef68
* * Remove empty [ ] block as it causes an empty "else fi" block that therpluem2011-03-021-4/+3
| | | | | | | shell does not like. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1076133 13f79535-47bb-0310-9956-ffa450edef68
* Add new configure option --enable-allocator-uses-mmap to use mmapsf2011-02-181-0/+12
| | | | | | | | | | | | | | | instead of malloc in apr_allocator_alloc(). This greatly reduces memory fragmentation with malloc implementations (e.g. glibc) that don't handle allocationss of a page-size-multiples in an efficient way. It also makes apr_allocator_max_free_set() actually have some effect on such platforms. The handling of page sizes other than 4k seems like a lot of trouble for a very small number of platforms, but there does not seem to be a reasonable way to check this at compile time. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1072165 13f79535-47bb-0310-9956-ffa450edef68
* Minor update for Darwinjim2011-01-171-6/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1059987 13f79535-47bb-0310-9956-ffa450edef68
* now that we treat OS X special, revert ordering change backjim2010-12-201-33/+32
| | | | | | | to perfering shortest rather than longest git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1051230 13f79535-47bb-0310-9956-ffa450edef68
* (Try to) support Darwin's "universal" builds by allowing forjim2010-12-181-0/+60
| | | | | | | | | | | 2 separate bit sizes for some types in the same binary/library (which is what a universal build is). As such, the C header files need to know how the *current* codebase is being built (which links to apr) and choose the correct bit size depending on the compiler flags. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1050644 13f79535-47bb-0310-9956-ffa450edef68
* Re-arrange sizing tests to go from largest tojim2010-12-171-32/+33
| | | | | | | | | | smallest, instead of the reverse. This allows OS X 10.6 to compile cleanly in both 32 and 64 bit mode git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1050391 13f79535-47bb-0310-9956-ffa450edef68
* Solve ELF-32 builds on ia64-hpuxwrowe2010-06-021-3/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@950670 13f79535-47bb-0310-9956-ffa450edef68
* Revert r949211 miscommitwrowe2010-06-021-10/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@950669 13f79535-47bb-0310-9956-ffa450edef68