diff options
author | Jason Evans <je@facebook.com> | 2010-09-20 23:44:23 (GMT) |
---|---|---|
committer | Jason Evans <je@facebook.com> | 2010-09-20 23:52:41 (GMT) |
commit | 6a0d2918ceede07a36a50389c1a8a95755b0a7f6 (patch) | |
tree | 32c22c8462324579f122e9a26e3533008b66b81a /jemalloc/configure.ac | |
parent | a09f55c87d799e6e0e64972838ca6768027e9174 (diff) | |
download | jemalloc-6a0d2918ceede07a36a50389c1a8a95755b0a7f6.zip jemalloc-6a0d2918ceede07a36a50389c1a8a95755b0a7f6.tar.gz jemalloc-6a0d2918ceede07a36a50389c1a8a95755b0a7f6.tar.bz2 |
Add memalign() and valloc() overrides.
If memalign() and/or valloc() are present on the system, override them
in order to avoid mixed allocator usage.
Diffstat (limited to 'jemalloc/configure.ac')
-rw-r--r-- | jemalloc/configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/jemalloc/configure.ac b/jemalloc/configure.ac index b0d470a..127b695 100644 --- a/jemalloc/configure.ac +++ b/jemalloc/configure.ac @@ -711,6 +711,14 @@ if test "x${enable_tls}" = "x0" ; then fi dnl ============================================================================ +dnl Check for allocator-related functions that should be wrapped. + +AC_CHECK_FUNC([memalign], + [AC_DEFINE([JEMALLOC_OVERRIDE_MEMALIGN])]) +AC_CHECK_FUNC([valloc], + [AC_DEFINE([JEMALLOC_OVERRIDE_VALLOC])]) + +dnl ============================================================================ dnl Darwin-related configuration. if test "x${abi}" = "xmacho" ; then |