Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 1 | dnl Process this file with autoconf to produce a configure script. |
| 2 | AC_INIT([Makefile.in]) |
| 3 | |
Jason Evans | f3340ca | 2009-06-30 16:17:05 -0700 | [diff] [blame] | 4 | dnl ============================================================================ |
| 5 | dnl Custom macro definitions. |
| 6 | |
| 7 | dnl JE_CFLAGS_APPEND(cflag) |
| 8 | AC_DEFUN([JE_CFLAGS_APPEND], |
| 9 | [ |
| 10 | AC_MSG_CHECKING([whether compiler supports $1]) |
| 11 | TCFLAGS="${CFLAGS}" |
| 12 | if test "x${CFLAGS}" = "x" ; then |
| 13 | CFLAGS="$1" |
| 14 | else |
| 15 | CFLAGS="${CFLAGS} $1" |
| 16 | fi |
Jason Evans | 6684cac | 2012-03-05 12:15:36 -0800 | [diff] [blame] | 17 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM( |
Jason Evans | f3340ca | 2009-06-30 16:17:05 -0700 | [diff] [blame] | 18 | [[ |
| 19 | ]], [[ |
| 20 | return 0; |
| 21 | ]])], |
| 22 | AC_MSG_RESULT([yes]), |
| 23 | AC_MSG_RESULT([no]) |
| 24 | [CFLAGS="${TCFLAGS}"] |
| 25 | ) |
| 26 | ]) |
| 27 | |
| 28 | dnl JE_COMPILABLE(label, hcode, mcode, rvar) |
| 29 | AC_DEFUN([JE_COMPILABLE], |
| 30 | [ |
Jason Evans | 6684cac | 2012-03-05 12:15:36 -0800 | [diff] [blame] | 31 | AC_CACHE_CHECK([whether $1 is compilable], |
| 32 | [$4], |
| 33 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$2], |
| 34 | [$3])], |
| 35 | [$4=yes], |
| 36 | [$4=no])]) |
Jason Evans | f3340ca | 2009-06-30 16:17:05 -0700 | [diff] [blame] | 37 | ]) |
| 38 | |
| 39 | dnl ============================================================================ |
| 40 | |
Jason Evans | f576c63 | 2011-11-01 22:27:41 -0700 | [diff] [blame] | 41 | dnl Library revision. |
| 42 | rev=1 |
| 43 | AC_SUBST([rev]) |
| 44 | |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 45 | srcroot=$srcdir |
| 46 | if test "x${srcroot}" = "x." ; then |
| 47 | srcroot="" |
| 48 | else |
| 49 | srcroot="${srcroot}/" |
| 50 | fi |
| 51 | AC_SUBST([srcroot]) |
| 52 | abs_srcroot="`cd \"${srcdir}\"; pwd`/" |
| 53 | AC_SUBST([abs_srcroot]) |
| 54 | |
| 55 | objroot="" |
| 56 | AC_SUBST([objroot]) |
| 57 | abs_objroot="`pwd`/" |
| 58 | AC_SUBST([abs_objroot]) |
| 59 | |
| 60 | dnl Munge install path variables. |
| 61 | if test "x$prefix" = "xNONE" ; then |
| 62 | prefix="/usr/local" |
| 63 | fi |
| 64 | if test "x$exec_prefix" = "xNONE" ; then |
| 65 | exec_prefix=$prefix |
| 66 | fi |
| 67 | PREFIX=$prefix |
| 68 | AC_SUBST([PREFIX]) |
| 69 | BINDIR=`eval echo $bindir` |
| 70 | BINDIR=`eval echo $BINDIR` |
| 71 | AC_SUBST([BINDIR]) |
| 72 | INCLUDEDIR=`eval echo $includedir` |
| 73 | INCLUDEDIR=`eval echo $INCLUDEDIR` |
| 74 | AC_SUBST([INCLUDEDIR]) |
| 75 | LIBDIR=`eval echo $libdir` |
| 76 | LIBDIR=`eval echo $LIBDIR` |
| 77 | AC_SUBST([LIBDIR]) |
| 78 | DATADIR=`eval echo $datadir` |
| 79 | DATADIR=`eval echo $DATADIR` |
| 80 | AC_SUBST([DATADIR]) |
| 81 | MANDIR=`eval echo $mandir` |
| 82 | MANDIR=`eval echo $MANDIR` |
| 83 | AC_SUBST([MANDIR]) |
| 84 | |
Jason Evans | aee7fd2 | 2010-11-24 22:00:02 -0800 | [diff] [blame] | 85 | dnl Support for building documentation. |
| 86 | AC_PATH_PROG([XSLTPROC], [xsltproc], , [$PATH]) |
| 87 | AC_ARG_WITH([xslroot], |
| 88 | [AS_HELP_STRING([--with-xslroot=<path>], [XSL stylesheet root path])], |
| 89 | if test "x$with_xslroot" = "xno" ; then |
| 90 | XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl" |
| 91 | else |
| 92 | XSLROOT="${with_xslroot}" |
| 93 | fi, |
| 94 | XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl" |
| 95 | ) |
| 96 | AC_SUBST([XSLROOT]) |
| 97 | |
Jason Evans | f3340ca | 2009-06-30 16:17:05 -0700 | [diff] [blame] | 98 | dnl If CFLAGS isn't defined, set CFLAGS to something reasonable. Otherwise, |
| 99 | dnl just prevent autoconf from molesting CFLAGS. |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 100 | CFLAGS=$CFLAGS |
| 101 | AC_PROG_CC |
| 102 | if test "x$CFLAGS" = "x" ; then |
| 103 | no_CFLAGS="yes" |
Jason Evans | cfeccd3 | 2010-03-03 15:48:20 -0800 | [diff] [blame] | 104 | if test "x$GCC" = "xyes" ; then |
| 105 | JE_CFLAGS_APPEND([-std=gnu99]) |
| 106 | JE_CFLAGS_APPEND([-Wall]) |
| 107 | JE_CFLAGS_APPEND([-pipe]) |
| 108 | JE_CFLAGS_APPEND([-g3]) |
| 109 | fi |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 110 | fi |
| 111 | dnl Append EXTRA_CFLAGS to CFLAGS, if defined. |
| 112 | if test "x$EXTRA_CFLAGS" != "x" ; then |
Jason Evans | f3340ca | 2009-06-30 16:17:05 -0700 | [diff] [blame] | 113 | JE_CFLAGS_APPEND([$EXTRA_CFLAGS]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 114 | fi |
| 115 | AC_PROG_CPP |
| 116 | |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 117 | AC_CHECK_SIZEOF([void *]) |
| 118 | if test "x${ac_cv_sizeof_void_p}" = "x8" ; then |
Jason Evans | 94ad2b5 | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 119 | LG_SIZEOF_PTR=3 |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 120 | elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then |
Jason Evans | 94ad2b5 | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 121 | LG_SIZEOF_PTR=2 |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 122 | else |
| 123 | AC_MSG_ERROR([Unsupported pointer size: ${ac_cv_sizeof_void_p}]) |
| 124 | fi |
Jason Evans | 94ad2b5 | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 125 | AC_DEFINE_UNQUOTED([LG_SIZEOF_PTR], [$LG_SIZEOF_PTR]) |
| 126 | |
| 127 | AC_CHECK_SIZEOF([int]) |
| 128 | if test "x${ac_cv_sizeof_int}" = "x8" ; then |
| 129 | LG_SIZEOF_INT=3 |
| 130 | elif test "x${ac_cv_sizeof_int}" = "x4" ; then |
| 131 | LG_SIZEOF_INT=2 |
| 132 | else |
| 133 | AC_MSG_ERROR([Unsupported int size: ${ac_cv_sizeof_int}]) |
| 134 | fi |
| 135 | AC_DEFINE_UNQUOTED([LG_SIZEOF_INT], [$LG_SIZEOF_INT]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 136 | |
Jason Evans | 84c8eef | 2011-03-16 10:30:13 -0700 | [diff] [blame] | 137 | AC_CHECK_SIZEOF([long]) |
| 138 | if test "x${ac_cv_sizeof_long}" = "x8" ; then |
| 139 | LG_SIZEOF_LONG=3 |
| 140 | elif test "x${ac_cv_sizeof_long}" = "x4" ; then |
| 141 | LG_SIZEOF_LONG=2 |
| 142 | else |
| 143 | AC_MSG_ERROR([Unsupported long size: ${ac_cv_sizeof_long}]) |
| 144 | fi |
| 145 | AC_DEFINE_UNQUOTED([LG_SIZEOF_LONG], [$LG_SIZEOF_LONG]) |
| 146 | |
Jason Evans | d81e4bd | 2012-03-06 14:57:45 -0800 | [diff] [blame] | 147 | AC_CHECK_SIZEOF([intmax_t]) |
| 148 | if test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then |
| 149 | LG_SIZEOF_INTMAX_T=4 |
| 150 | elif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then |
| 151 | LG_SIZEOF_INTMAX_T=3 |
| 152 | elif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then |
| 153 | LG_SIZEOF_INTMAX_T=2 |
| 154 | else |
| 155 | AC_MSG_ERROR([Unsupported intmax_t size: ${ac_cv_sizeof_long}]) |
| 156 | fi |
| 157 | AC_DEFINE_UNQUOTED([LG_SIZEOF_INTMAX_T], [$LG_SIZEOF_INTMAX_T]) |
| 158 | |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 159 | AC_CANONICAL_HOST |
| 160 | dnl CPU-specific settings. |
| 161 | CPU_SPINWAIT="" |
| 162 | case "${host_cpu}" in |
| 163 | i[[345]]86) |
| 164 | ;; |
| 165 | i686) |
Jason Evans | f3340ca | 2009-06-30 16:17:05 -0700 | [diff] [blame] | 166 | JE_COMPILABLE([__asm__], [], [[__asm__ volatile("pause"); return 0;]], |
Jason Evans | 6684cac | 2012-03-05 12:15:36 -0800 | [diff] [blame] | 167 | [je_cv_asm]) |
| 168 | if test "x${je_cv_asm}" = "xyes" ; then |
Jason Evans | f3340ca | 2009-06-30 16:17:05 -0700 | [diff] [blame] | 169 | CPU_SPINWAIT='__asm__ volatile("pause")' |
| 170 | fi |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 171 | ;; |
| 172 | x86_64) |
Jason Evans | f3340ca | 2009-06-30 16:17:05 -0700 | [diff] [blame] | 173 | JE_COMPILABLE([__asm__ syntax], [], |
Jason Evans | 6684cac | 2012-03-05 12:15:36 -0800 | [diff] [blame] | 174 | [[__asm__ volatile("pause"); return 0;]], [je_cv_asm]) |
| 175 | if test "x${je_cv_asm}" = "xyes" ; then |
Jason Evans | f3340ca | 2009-06-30 16:17:05 -0700 | [diff] [blame] | 176 | CPU_SPINWAIT='__asm__ volatile("pause")' |
| 177 | fi |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 178 | ;; |
| 179 | *) |
| 180 | ;; |
| 181 | esac |
| 182 | AC_DEFINE_UNQUOTED([CPU_SPINWAIT], [$CPU_SPINWAIT]) |
| 183 | |
Antony Dovgal | 2bd3cbc | 2011-10-13 09:33:33 +0400 | [diff] [blame] | 184 | LD_PRELOAD_VAR="LD_PRELOAD" |
Jason Evans | f576c63 | 2011-11-01 22:27:41 -0700 | [diff] [blame] | 185 | so="so" |
Antony Dovgal | 2bd3cbc | 2011-10-13 09:33:33 +0400 | [diff] [blame] | 186 | |
Jason Evans | 7372b15 | 2012-02-10 20:22:09 -0800 | [diff] [blame] | 187 | dnl Heap profiling uses the log(3) function. |
| 188 | LIBS="$LIBS -lm" |
| 189 | |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 190 | dnl Platform-specific settings. abi and RPATH can probably be determined |
| 191 | dnl programmatically, but doing so is error-prone, which makes it generally |
| 192 | dnl not worth the trouble. |
| 193 | dnl |
| 194 | dnl Define cpp macros in CPPFLAGS, rather than doing AC_DEFINE(macro), since the |
| 195 | dnl definitions need to be seen before any headers are included, which is a pain |
| 196 | dnl to make happen otherwise. |
| 197 | case "${host}" in |
| 198 | *-*-darwin*) |
| 199 | CFLAGS="$CFLAGS -fno-common -no-cpp-precomp" |
| 200 | abi="macho" |
Jason Evans | ce93055 | 2010-10-24 13:03:07 -0700 | [diff] [blame] | 201 | AC_DEFINE([JEMALLOC_PURGE_MADVISE_FREE]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 202 | RPATH="" |
Antony Dovgal | 2bd3cbc | 2011-10-13 09:33:33 +0400 | [diff] [blame] | 203 | LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES" |
Jason Evans | f576c63 | 2011-11-01 22:27:41 -0700 | [diff] [blame] | 204 | so="dylib" |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 205 | ;; |
| 206 | *-*-freebsd*) |
| 207 | CFLAGS="$CFLAGS" |
| 208 | abi="elf" |
Jason Evans | 2dbecf1 | 2010-09-05 10:35:13 -0700 | [diff] [blame] | 209 | AC_DEFINE([JEMALLOC_PURGE_MADVISE_FREE]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 210 | RPATH="-Wl,-rpath," |
| 211 | ;; |
| 212 | *-*-linux*) |
| 213 | CFLAGS="$CFLAGS" |
| 214 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" |
| 215 | abi="elf" |
Jason Evans | 2dbecf1 | 2010-09-05 10:35:13 -0700 | [diff] [blame] | 216 | AC_DEFINE([JEMALLOC_PURGE_MADVISE_DONTNEED]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 217 | RPATH="-Wl,-rpath," |
| 218 | ;; |
| 219 | *-*-netbsd*) |
| 220 | AC_MSG_CHECKING([ABI]) |
| 221 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM( |
| 222 | [[#ifdef __ELF__ |
| 223 | /* ELF */ |
| 224 | #else |
| 225 | #error aout |
| 226 | #endif |
| 227 | ]])], |
| 228 | [CFLAGS="$CFLAGS"; abi="elf"], |
| 229 | [abi="aout"]) |
| 230 | AC_MSG_RESULT([$abi]) |
Jason Evans | 2dbecf1 | 2010-09-05 10:35:13 -0700 | [diff] [blame] | 231 | AC_DEFINE([JEMALLOC_PURGE_MADVISE_FREE]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 232 | RPATH="-Wl,-rpath," |
| 233 | ;; |
| 234 | *-*-solaris2*) |
| 235 | CFLAGS="$CFLAGS" |
| 236 | abi="elf" |
| 237 | RPATH="-Wl,-R," |
| 238 | dnl Solaris needs this for sigwait(). |
| 239 | CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" |
| 240 | LIBS="$LIBS -lposix4 -lsocket -lnsl" |
| 241 | ;; |
Antony Dovgal | 2bd3cbc | 2011-10-13 09:33:33 +0400 | [diff] [blame] | 242 | *-ibm-aix*) |
| 243 | if "$LG_SIZEOF_PTR" = "8"; then |
| 244 | dnl 64bit AIX |
| 245 | LD_PRELOAD_VAR="LDR_PRELOAD64" |
| 246 | else |
| 247 | dnl 32bit AIX |
| 248 | LD_PRELOAD_VAR="LDR_PRELOAD" |
| 249 | fi |
| 250 | abi="xcoff" |
| 251 | RPATH="-Wl,-rpath," |
| 252 | ;; |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 253 | *) |
| 254 | AC_MSG_RESULT([Unsupported operating system: ${host}]) |
| 255 | abi="elf" |
| 256 | RPATH="-Wl,-rpath," |
| 257 | ;; |
| 258 | esac |
| 259 | AC_SUBST([abi]) |
| 260 | AC_SUBST([RPATH]) |
Antony Dovgal | 2bd3cbc | 2011-10-13 09:33:33 +0400 | [diff] [blame] | 261 | AC_SUBST([LD_PRELOAD_VAR]) |
Jason Evans | f576c63 | 2011-11-01 22:27:41 -0700 | [diff] [blame] | 262 | AC_SUBST([so]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 263 | |
Jason Evans | fa5d245 | 2011-03-15 10:25:59 -0700 | [diff] [blame] | 264 | JE_COMPILABLE([__attribute__ syntax], |
| 265 | [static __attribute__((unused)) void foo(void){}], |
| 266 | [], |
Jason Evans | 6684cac | 2012-03-05 12:15:36 -0800 | [diff] [blame] | 267 | [je_cv_attribute]) |
| 268 | if test "x${je_cv_attribute}" = "xyes" ; then |
Jason Evans | fa5d245 | 2011-03-15 10:25:59 -0700 | [diff] [blame] | 269 | AC_DEFINE([JEMALLOC_HAVE_ATTR], [ ]) |
| 270 | if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then |
| 271 | JE_CFLAGS_APPEND([-fvisibility=hidden]) |
| 272 | fi |
| 273 | fi |
| 274 | |
Jason Evans | cfdc8cf | 2010-11-30 16:50:58 -0800 | [diff] [blame] | 275 | JE_COMPILABLE([mremap(...MREMAP_FIXED...)], [ |
| 276 | #define _GNU_SOURCE |
| 277 | #include <sys/mman.h> |
| 278 | ], [ |
| 279 | void *p = mremap((void *)0, 0, 0, MREMAP_MAYMOVE|MREMAP_FIXED, (void *)0); |
Jason Evans | 6684cac | 2012-03-05 12:15:36 -0800 | [diff] [blame] | 280 | ], [je_cv_mremap_fixed]) |
| 281 | if test "x${je_cv_mremap_fixed}" = "xyes" ; then |
Jason Evans | cfdc8cf | 2010-11-30 16:50:58 -0800 | [diff] [blame] | 282 | AC_DEFINE([JEMALLOC_MREMAP_FIXED]) |
| 283 | fi |
| 284 | |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 285 | dnl Support optional additions to rpath. |
| 286 | AC_ARG_WITH([rpath], |
Jason Evans | 90895cf | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 287 | [AS_HELP_STRING([--with-rpath=<rpath>], [Colon-separated rpath (ELF systems only)])], |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 288 | if test "x$with_rpath" = "xno" ; then |
| 289 | RPATH_EXTRA= |
| 290 | else |
| 291 | RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`" |
| 292 | fi, |
| 293 | RPATH_EXTRA= |
| 294 | ) |
| 295 | AC_SUBST([RPATH_EXTRA]) |
| 296 | |
| 297 | dnl Disable rules that do automatic regeneration of configure output by default. |
| 298 | AC_ARG_ENABLE([autogen], |
Jason Evans | 78d815c | 2010-01-17 14:06:20 -0800 | [diff] [blame] | 299 | [AS_HELP_STRING([--enable-autogen], [Automatically regenerate configure output])], |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 300 | if test "x$enable_autogen" = "xno" ; then |
| 301 | enable_autogen="0" |
| 302 | else |
| 303 | enable_autogen="1" |
| 304 | fi |
| 305 | , |
| 306 | enable_autogen="0" |
| 307 | ) |
| 308 | AC_SUBST([enable_autogen]) |
| 309 | |
| 310 | AC_PROG_INSTALL |
| 311 | AC_PROG_RANLIB |
| 312 | AC_PATH_PROG([AR], [ar], , [$PATH]) |
| 313 | AC_PATH_PROG([LD], [ld], , [$PATH]) |
| 314 | AC_PATH_PROG([AUTOCONF], [autoconf], , [$PATH]) |
| 315 | |
Jason Evans | 7e77eaf | 2012-03-02 17:47:37 -0800 | [diff] [blame] | 316 | public_syms="malloc_conf malloc_message malloc calloc posix_memalign realloc free malloc_usable_size malloc_stats_print mallctl mallctlnametomib mallctlbymib" |
| 317 | |
| 318 | dnl Check for allocator-related functions that should be wrapped. |
| 319 | AC_CHECK_FUNC([memalign], |
| 320 | [AC_DEFINE([JEMALLOC_OVERRIDE_MEMALIGN]) |
| 321 | public_syms="${public_syms} memalign"]) |
| 322 | AC_CHECK_FUNC([valloc], |
| 323 | [AC_DEFINE([JEMALLOC_OVERRIDE_VALLOC]) |
| 324 | public_syms="${public_syms} valloc"]) |
| 325 | |
| 326 | dnl Support the experimental API by default. |
| 327 | AC_ARG_ENABLE([experimental], |
| 328 | [AS_HELP_STRING([--disable-experimental], |
| 329 | [Disable support for the experimental API])], |
| 330 | [if test "x$enable_experimental" = "xno" ; then |
| 331 | enable_experimental="0" |
| 332 | else |
| 333 | enable_experimental="1" |
| 334 | fi |
| 335 | ], |
| 336 | [enable_experimental="1"] |
| 337 | ) |
| 338 | if test "x$enable_experimental" = "x1" ; then |
| 339 | AC_DEFINE([JEMALLOC_EXPERIMENTAL], [ ]) |
| 340 | public_syms="${public_syms} allocm dallocm nallocm rallocm sallocm" |
| 341 | fi |
| 342 | AC_SUBST([enable_experimental]) |
| 343 | |
Jason Evans | 0a5489e | 2012-03-01 17:19:20 -0800 | [diff] [blame] | 344 | dnl Perform no name mangling by default. |
| 345 | AC_ARG_WITH([mangling], |
| 346 | [AS_HELP_STRING([--with-mangling=<map>], [Mangle symbols in <map>])], |
| 347 | [mangling_map="$with_mangling"], [mangling_map=""]) |
| 348 | for nm in `echo ${mangling_map} |tr ',' ' '` ; do |
Jason Evans | 08fc3b2 | 2012-03-12 15:07:53 -0700 | [diff] [blame^] | 349 | k="`echo ${nm} |tr ':' ' ' |awk '{print $1}'`" |
| 350 | n="je_${k}" |
Jason Evans | 0a5489e | 2012-03-01 17:19:20 -0800 | [diff] [blame] | 351 | m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'` |
| 352 | AC_DEFINE_UNQUOTED([${n}], [${m}]) |
Jason Evans | 08fc3b2 | 2012-03-12 15:07:53 -0700 | [diff] [blame^] | 353 | dnl Remove key from public_syms so that it isn't redefined later. |
| 354 | public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${k}\$" |tr '\n' ' '` |
Jason Evans | 0a5489e | 2012-03-01 17:19:20 -0800 | [diff] [blame] | 355 | done |
| 356 | |
Jason Evans | 90895cf | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 357 | dnl Do not prefix public APIs by default. |
| 358 | AC_ARG_WITH([jemalloc_prefix], |
| 359 | [AS_HELP_STRING([--with-jemalloc-prefix=<prefix>], [Prefix to prepend to all public APIs])], |
Jason Evans | b0fd501 | 2010-01-17 01:49:20 -0800 | [diff] [blame] | 360 | [JEMALLOC_PREFIX="$with_jemalloc_prefix"], |
Jason Evans | 2dbecf1 | 2010-09-05 10:35:13 -0700 | [diff] [blame] | 361 | [if test "x$abi" != "xmacho" ; then |
| 362 | JEMALLOC_PREFIX="" |
| 363 | else |
| 364 | JEMALLOC_PREFIX="je_" |
| 365 | fi] |
Jason Evans | 90895cf | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 366 | ) |
| 367 | if test "x$JEMALLOC_PREFIX" != "x" ; then |
Jason Evans | e733970 | 2010-10-23 18:37:06 -0700 | [diff] [blame] | 368 | JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"` |
| 369 | AC_DEFINE_UNQUOTED([JEMALLOC_PREFIX], ["$JEMALLOC_PREFIX"]) |
| 370 | AC_DEFINE_UNQUOTED([JEMALLOC_CPREFIX], ["$JEMALLOC_CPREFIX"]) |
Jason Evans | 90895cf | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 371 | fi |
Jason Evans | 0a5489e | 2012-03-01 17:19:20 -0800 | [diff] [blame] | 372 | dnl Generate macros to rename public symbols. All public symbols are prefixed |
| 373 | dnl with je_ in the source code, so these macro definitions are needed even if |
| 374 | dnl --with-jemalloc-prefix wasn't specified. |
Jason Evans | 7e77eaf | 2012-03-02 17:47:37 -0800 | [diff] [blame] | 375 | for stem in ${public_syms}; do |
Jason Evans | 0a5489e | 2012-03-01 17:19:20 -0800 | [diff] [blame] | 376 | n="je_${stem}" |
| 377 | m="${JEMALLOC_PREFIX}${stem}" |
| 378 | AC_DEFINE_UNQUOTED([${n}], [${m}]) |
| 379 | done |
Jason Evans | 90895cf | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 380 | |
Jason Evans | 746e77a | 2011-07-30 16:40:52 -0700 | [diff] [blame] | 381 | dnl Do not mangle library-private APIs by default. |
| 382 | AC_ARG_WITH([private_namespace], |
| 383 | [AS_HELP_STRING([--with-private-namespace=<prefix>], [Prefix to prepend to all library-private APIs])], |
| 384 | [JEMALLOC_PRIVATE_NAMESPACE="$with_private_namespace"], |
| 385 | [JEMALLOC_PRIVATE_NAMESPACE=""] |
| 386 | ) |
| 387 | AC_DEFINE_UNQUOTED([JEMALLOC_PRIVATE_NAMESPACE], ["$JEMALLOC_PRIVATE_NAMESPACE"]) |
| 388 | if test "x$JEMALLOC_PRIVATE_NAMESPACE" != "x" ; then |
| 389 | AC_DEFINE_UNQUOTED([JEMALLOC_N(string_that_no_one_should_want_to_use_as_a_jemalloc_private_namespace_prefix)], [${JEMALLOC_PRIVATE_NAMESPACE}##string_that_no_one_should_want_to_use_as_a_jemalloc_private_namespace_prefix]) |
| 390 | else |
| 391 | AC_DEFINE_UNQUOTED([JEMALLOC_N(string_that_no_one_should_want_to_use_as_a_jemalloc_private_namespace_prefix)], [string_that_no_one_should_want_to_use_as_a_jemalloc_private_namespace_prefix]) |
| 392 | fi |
| 393 | |
Jason Evans | b0fd501 | 2010-01-17 01:49:20 -0800 | [diff] [blame] | 394 | dnl Do not add suffix to installed files by default. |
| 395 | AC_ARG_WITH([install_suffix], |
| 396 | [AS_HELP_STRING([--with-install-suffix=<suffix>], [Suffix to append to all installed files])], |
| 397 | [INSTALL_SUFFIX="$with_install_suffix"], |
| 398 | [INSTALL_SUFFIX=] |
| 399 | ) |
| 400 | install_suffix="$INSTALL_SUFFIX" |
| 401 | AC_SUBST([install_suffix]) |
| 402 | |
Jason Evans | aee7fd2 | 2010-11-24 22:00:02 -0800 | [diff] [blame] | 403 | cfgoutputs_in="${srcroot}Makefile.in" |
| 404 | cfgoutputs_in="${cfgoutputs_in} ${srcroot}doc/html.xsl.in" |
| 405 | cfgoutputs_in="${cfgoutputs_in} ${srcroot}doc/manpages.xsl.in" |
| 406 | cfgoutputs_in="${cfgoutputs_in} ${srcroot}doc/jemalloc.xml.in" |
Jason Evans | 0656ec0 | 2010-04-07 23:37:35 -0700 | [diff] [blame] | 407 | cfgoutputs_in="${cfgoutputs_in} ${srcroot}include/jemalloc/jemalloc.h.in" |
| 408 | cfgoutputs_in="${cfgoutputs_in} ${srcroot}include/jemalloc/internal/jemalloc_internal.h.in" |
Jason Evans | 9f3b0a7 | 2010-10-07 09:53:26 -0700 | [diff] [blame] | 409 | cfgoutputs_in="${cfgoutputs_in} ${srcroot}test/jemalloc_test.h.in" |
Jason Evans | b0fd501 | 2010-01-17 01:49:20 -0800 | [diff] [blame] | 410 | |
Jason Evans | aee7fd2 | 2010-11-24 22:00:02 -0800 | [diff] [blame] | 411 | cfgoutputs_out="Makefile" |
| 412 | cfgoutputs_out="${cfgoutputs_out} doc/html.xsl" |
| 413 | cfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl" |
| 414 | cfgoutputs_out="${cfgoutputs_out} doc/jemalloc${install_suffix}.xml" |
Jason Evans | 376b152 | 2010-02-11 14:45:59 -0800 | [diff] [blame] | 415 | cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc${install_suffix}.h" |
| 416 | cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_internal.h" |
Jason Evans | 9f3b0a7 | 2010-10-07 09:53:26 -0700 | [diff] [blame] | 417 | cfgoutputs_out="${cfgoutputs_out} test/jemalloc_test.h" |
Jason Evans | b0fd501 | 2010-01-17 01:49:20 -0800 | [diff] [blame] | 418 | |
Jason Evans | aee7fd2 | 2010-11-24 22:00:02 -0800 | [diff] [blame] | 419 | cfgoutputs_tup="Makefile" |
| 420 | cfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in" |
| 421 | cfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in" |
| 422 | cfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc${install_suffix}.xml:doc/jemalloc.xml.in" |
Jason Evans | 376b152 | 2010-02-11 14:45:59 -0800 | [diff] [blame] | 423 | cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc${install_suffix}.h:include/jemalloc/jemalloc.h.in" |
| 424 | cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_internal.h" |
Jason Evans | 9f3b0a7 | 2010-10-07 09:53:26 -0700 | [diff] [blame] | 425 | cfgoutputs_tup="${cfgoutputs_tup} test/jemalloc_test.h:test/jemalloc_test.h.in" |
Jason Evans | b0fd501 | 2010-01-17 01:49:20 -0800 | [diff] [blame] | 426 | |
Jason Evans | 0656ec0 | 2010-04-07 23:37:35 -0700 | [diff] [blame] | 427 | cfghdrs_in="${srcroot}include/jemalloc/jemalloc_defs.h.in" |
Jason Evans | b172610 | 2012-02-28 16:50:47 -0800 | [diff] [blame] | 428 | cfghdrs_in="${cfghdrs_in} ${srcroot}include/jemalloc/internal/size_classes.sh" |
Jason Evans | b0fd501 | 2010-01-17 01:49:20 -0800 | [diff] [blame] | 429 | |
Jason Evans | 376b152 | 2010-02-11 14:45:59 -0800 | [diff] [blame] | 430 | cfghdrs_out="include/jemalloc/jemalloc_defs${install_suffix}.h" |
Jason Evans | b172610 | 2012-02-28 16:50:47 -0800 | [diff] [blame] | 431 | cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/size_classes.h" |
Jason Evans | b0fd501 | 2010-01-17 01:49:20 -0800 | [diff] [blame] | 432 | |
Jason Evans | 376b152 | 2010-02-11 14:45:59 -0800 | [diff] [blame] | 433 | cfghdrs_tup="include/jemalloc/jemalloc_defs${install_suffix}.h:include/jemalloc/jemalloc_defs.h.in" |
Jason Evans | b0fd501 | 2010-01-17 01:49:20 -0800 | [diff] [blame] | 434 | |
Jason Evans | 355b438 | 2010-09-20 19:20:48 -0700 | [diff] [blame] | 435 | dnl Do not silence irrelevant compiler warnings by default, since enabling this |
| 436 | dnl option incurs a performance penalty. |
| 437 | AC_ARG_ENABLE([cc-silence], |
| 438 | [AS_HELP_STRING([--enable-cc-silence], |
| 439 | [Silence irrelevant compiler warnings])], |
| 440 | [if test "x$enable_cc_silence" = "xno" ; then |
| 441 | enable_cc_silence="0" |
| 442 | else |
| 443 | enable_cc_silence="1" |
| 444 | fi |
| 445 | ], |
| 446 | [enable_cc_silence="0"] |
| 447 | ) |
| 448 | if test "x$enable_cc_silence" = "x1" ; then |
| 449 | AC_DEFINE([JEMALLOC_CC_SILENCE]) |
| 450 | fi |
| 451 | |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 452 | dnl Do not compile with debugging by default. |
| 453 | AC_ARG_ENABLE([debug], |
| 454 | [AS_HELP_STRING([--enable-debug], [Build debugging code])], |
| 455 | [if test "x$enable_debug" = "xno" ; then |
| 456 | enable_debug="0" |
| 457 | else |
| 458 | enable_debug="1" |
| 459 | fi |
| 460 | ], |
| 461 | [enable_debug="0"] |
| 462 | ) |
| 463 | if test "x$enable_debug" = "x1" ; then |
| 464 | AC_DEFINE([JEMALLOC_DEBUG], [ ]) |
Jason Evans | 2dbecf1 | 2010-09-05 10:35:13 -0700 | [diff] [blame] | 465 | AC_DEFINE([JEMALLOC_IVSALLOC], [ ]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 466 | fi |
| 467 | AC_SUBST([enable_debug]) |
| 468 | |
| 469 | dnl Only optimize if not debugging. |
| 470 | if test "x$enable_debug" = "x0" -a "x$no_CFLAGS" = "xyes" ; then |
| 471 | dnl Make sure that an optimization flag was not specified in EXTRA_CFLAGS. |
Jason Evans | f3340ca | 2009-06-30 16:17:05 -0700 | [diff] [blame] | 472 | optimize="no" |
| 473 | echo "$EXTRA_CFLAGS" | grep "\-O" >/dev/null || optimize="yes" |
| 474 | if test "x${optimize}" = "xyes" ; then |
| 475 | if test "x$GCC" = "xyes" ; then |
| 476 | JE_CFLAGS_APPEND([-O3]) |
| 477 | JE_CFLAGS_APPEND([-funroll-loops]) |
Jason Evans | f3340ca | 2009-06-30 16:17:05 -0700 | [diff] [blame] | 478 | else |
| 479 | JE_CFLAGS_APPEND([-O]) |
| 480 | fi |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 481 | fi |
| 482 | fi |
| 483 | |
Jason Evans | d073a32 | 2012-02-28 20:41:16 -0800 | [diff] [blame] | 484 | dnl Enable statistics calculation by default. |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 485 | AC_ARG_ENABLE([stats], |
Jason Evans | 777c191 | 2012-02-28 20:49:22 -0800 | [diff] [blame] | 486 | [AS_HELP_STRING([--disable-stats], |
| 487 | [Disable statistics calculation/reporting])], |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 488 | [if test "x$enable_stats" = "xno" ; then |
| 489 | enable_stats="0" |
| 490 | else |
| 491 | enable_stats="1" |
| 492 | fi |
| 493 | ], |
Jason Evans | d073a32 | 2012-02-28 20:41:16 -0800 | [diff] [blame] | 494 | [enable_stats="1"] |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 495 | ) |
| 496 | if test "x$enable_stats" = "x1" ; then |
| 497 | AC_DEFINE([JEMALLOC_STATS], [ ]) |
| 498 | fi |
| 499 | AC_SUBST([enable_stats]) |
| 500 | |
Jason Evans | 6109fe0 | 2010-02-10 10:37:56 -0800 | [diff] [blame] | 501 | dnl Do not enable profiling by default. |
| 502 | AC_ARG_ENABLE([prof], |
| 503 | [AS_HELP_STRING([--enable-prof], [Enable allocation profiling])], |
| 504 | [if test "x$enable_prof" = "xno" ; then |
| 505 | enable_prof="0" |
| 506 | else |
| 507 | enable_prof="1" |
| 508 | fi |
| 509 | ], |
| 510 | [enable_prof="0"] |
| 511 | ) |
Jason Evans | 77f350b | 2011-03-15 22:23:12 -0700 | [diff] [blame] | 512 | if test "x$enable_prof" = "x1" ; then |
| 513 | backtrace_method="" |
Jason Evans | b27805b | 2010-02-10 18:15:53 -0800 | [diff] [blame] | 514 | else |
Jason Evans | 77f350b | 2011-03-15 22:23:12 -0700 | [diff] [blame] | 515 | backtrace_method="N/A" |
Jason Evans | b27805b | 2010-02-10 18:15:53 -0800 | [diff] [blame] | 516 | fi |
Jason Evans | 77f350b | 2011-03-15 22:23:12 -0700 | [diff] [blame] | 517 | |
Jason Evans | 6109fe0 | 2010-02-10 10:37:56 -0800 | [diff] [blame] | 518 | AC_ARG_ENABLE([prof-libunwind], |
| 519 | [AS_HELP_STRING([--enable-prof-libunwind], [Use libunwind for backtracing])], |
| 520 | [if test "x$enable_prof_libunwind" = "xno" ; then |
| 521 | enable_prof_libunwind="0" |
| 522 | else |
| 523 | enable_prof_libunwind="1" |
| 524 | fi |
| 525 | ], |
| 526 | [enable_prof_libunwind="0"] |
| 527 | ) |
Jason Evans | ca6bd4f | 2010-03-02 14:12:58 -0800 | [diff] [blame] | 528 | AC_ARG_WITH([static_libunwind], |
| 529 | [AS_HELP_STRING([--with-static-libunwind=<libunwind.a>], |
| 530 | [Path to static libunwind library; use rather than dynamically linking])], |
| 531 | if test "x$with_static_libunwind" = "xno" ; then |
| 532 | LUNWIND="-lunwind" |
| 533 | else |
| 534 | if test ! -f "$with_static_libunwind" ; then |
| 535 | AC_MSG_ERROR([Static libunwind not found: $with_static_libunwind]) |
| 536 | fi |
| 537 | LUNWIND="$with_static_libunwind" |
| 538 | fi, |
| 539 | LUNWIND="-lunwind" |
| 540 | ) |
Jason Evans | 77f350b | 2011-03-15 22:23:12 -0700 | [diff] [blame] | 541 | if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then |
| 542 | AC_CHECK_HEADERS([libunwind.h], , [enable_prof_libunwind="0"]) |
| 543 | if test "x$LUNWIND" = "x-lunwind" ; then |
| 544 | AC_CHECK_LIB([unwind], [backtrace], [LIBS="$LIBS $LUNWIND"], |
| 545 | [enable_prof_libunwind="0"]) |
| 546 | else |
| 547 | LIBS="$LIBS $LUNWIND" |
| 548 | fi |
| 549 | if test "x${enable_prof_libunwind}" = "x1" ; then |
| 550 | backtrace_method="libunwind" |
| 551 | AC_DEFINE([JEMALLOC_PROF_LIBUNWIND], [ ]) |
| 552 | fi |
| 553 | fi |
| 554 | |
| 555 | AC_ARG_ENABLE([prof-libgcc], |
| 556 | [AS_HELP_STRING([--disable-prof-libgcc], |
| 557 | [Do not use libgcc for backtracing])], |
| 558 | [if test "x$enable_prof_libgcc" = "xno" ; then |
| 559 | enable_prof_libgcc="0" |
| 560 | else |
| 561 | enable_prof_libgcc="1" |
| 562 | fi |
| 563 | ], |
| 564 | [enable_prof_libgcc="1"] |
| 565 | ) |
| 566 | if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \ |
| 567 | -a "x$GCC" = "xyes" ; then |
| 568 | AC_CHECK_HEADERS([unwind.h], , [enable_prof_libgcc="0"]) |
| 569 | AC_CHECK_LIB([gcc], [_Unwind_Backtrace], [LIBS="$LIBS -lgcc"], [enable_prof_libgcc="0"]) |
| 570 | dnl The following is conservative, in that it only has entries for CPUs on |
| 571 | dnl which jemalloc has been tested. |
| 572 | AC_MSG_CHECKING([libgcc-based backtracing reliability on ${host_cpu}]) |
| 573 | case "${host_cpu}" in |
| 574 | i[[3456]]86) |
| 575 | AC_MSG_RESULT([unreliable]) |
| 576 | enable_prof_libgcc="0"; |
| 577 | ;; |
| 578 | x86_64) |
| 579 | AC_MSG_RESULT([reliable]) |
| 580 | ;; |
| 581 | *) |
| 582 | AC_MSG_RESULT([unreliable]) |
| 583 | enable_prof_libgcc="0"; |
| 584 | ;; |
| 585 | esac |
| 586 | if test "x${enable_prof_libgcc}" = "x1" ; then |
| 587 | backtrace_method="libgcc" |
| 588 | AC_DEFINE([JEMALLOC_PROF_LIBGCC], [ ]) |
| 589 | fi |
| 590 | else |
| 591 | enable_prof_libgcc="0" |
| 592 | fi |
| 593 | |
| 594 | AC_ARG_ENABLE([prof-gcc], |
| 595 | [AS_HELP_STRING([--disable-prof-gcc], |
| 596 | [Do not use gcc intrinsics for backtracing])], |
| 597 | [if test "x$enable_prof_gcc" = "xno" ; then |
| 598 | enable_prof_gcc="0" |
| 599 | else |
| 600 | enable_prof_gcc="1" |
| 601 | fi |
| 602 | ], |
| 603 | [enable_prof_gcc="1"] |
| 604 | ) |
| 605 | if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \ |
| 606 | -a "x$GCC" = "xyes" ; then |
| 607 | backtrace_method="gcc intrinsics" |
| 608 | AC_DEFINE([JEMALLOC_PROF_GCC], [ ]) |
| 609 | else |
| 610 | enable_prof_gcc="0" |
| 611 | fi |
| 612 | |
| 613 | if test "x$backtrace_method" = "x" ; then |
| 614 | backtrace_method="none (disabling profiling)" |
| 615 | enable_prof="0" |
| 616 | fi |
| 617 | AC_MSG_CHECKING([configured backtracing method]) |
| 618 | AC_MSG_RESULT([$backtrace_method]) |
Jason Evans | 2dbecf1 | 2010-09-05 10:35:13 -0700 | [diff] [blame] | 619 | if test "x$enable_prof" = "x1" ; then |
Jason Evans | 2dbecf1 | 2010-09-05 10:35:13 -0700 | [diff] [blame] | 620 | AC_DEFINE([JEMALLOC_PROF], [ ]) |
Jason Evans | 2dbecf1 | 2010-09-05 10:35:13 -0700 | [diff] [blame] | 621 | fi |
| 622 | AC_SUBST([enable_prof]) |
Jason Evans | 2dbecf1 | 2010-09-05 10:35:13 -0700 | [diff] [blame] | 623 | |
Jason Evans | 84cbbcb | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 624 | dnl Enable thread-specific caching by default. |
| 625 | AC_ARG_ENABLE([tcache], |
| 626 | [AS_HELP_STRING([--disable-tcache], [Disable per thread caches])], |
| 627 | [if test "x$enable_tcache" = "xno" ; then |
| 628 | enable_tcache="0" |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 629 | else |
Jason Evans | 84cbbcb | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 630 | enable_tcache="1" |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 631 | fi |
| 632 | ], |
Jason Evans | 84cbbcb | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 633 | [enable_tcache="1"] |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 634 | ) |
Jason Evans | 2dbecf1 | 2010-09-05 10:35:13 -0700 | [diff] [blame] | 635 | if test "x$enable_tcache" = "x1" ; then |
| 636 | AC_DEFINE([JEMALLOC_TCACHE], [ ]) |
| 637 | fi |
| 638 | AC_SUBST([enable_tcache]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 639 | |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 640 | dnl Do not enable allocation from DSS by default. |
| 641 | AC_ARG_ENABLE([dss], |
| 642 | [AS_HELP_STRING([--enable-dss], [Enable allocation from DSS])], |
| 643 | [if test "x$enable_dss" = "xno" ; then |
| 644 | enable_dss="0" |
| 645 | else |
| 646 | enable_dss="1" |
| 647 | fi |
| 648 | ], |
| 649 | [enable_dss="0"] |
| 650 | ) |
| 651 | if test "x$enable_dss" = "x1" ; then |
| 652 | AC_DEFINE([JEMALLOC_DSS], [ ]) |
| 653 | fi |
| 654 | AC_SUBST([enable_dss]) |
| 655 | |
Jason Evans | 777c191 | 2012-02-28 20:49:22 -0800 | [diff] [blame] | 656 | dnl Support the junk/zero filling option by default. |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 657 | AC_ARG_ENABLE([fill], |
Jason Evans | 777c191 | 2012-02-28 20:49:22 -0800 | [diff] [blame] | 658 | [AS_HELP_STRING([--disable-fill], [Disable support for junk/zero filling])], |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 659 | [if test "x$enable_fill" = "xno" ; then |
| 660 | enable_fill="0" |
| 661 | else |
| 662 | enable_fill="1" |
| 663 | fi |
| 664 | ], |
Jason Evans | 777c191 | 2012-02-28 20:49:22 -0800 | [diff] [blame] | 665 | [enable_fill="1"] |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 666 | ) |
| 667 | if test "x$enable_fill" = "x1" ; then |
| 668 | AC_DEFINE([JEMALLOC_FILL], [ ]) |
| 669 | fi |
| 670 | AC_SUBST([enable_fill]) |
| 671 | |
| 672 | dnl Do not support the xmalloc option by default. |
| 673 | AC_ARG_ENABLE([xmalloc], |
| 674 | [AS_HELP_STRING([--enable-xmalloc], [Support xmalloc option])], |
| 675 | [if test "x$enable_xmalloc" = "xno" ; then |
| 676 | enable_xmalloc="0" |
| 677 | else |
| 678 | enable_xmalloc="1" |
| 679 | fi |
| 680 | ], |
| 681 | [enable_xmalloc="0"] |
| 682 | ) |
| 683 | if test "x$enable_xmalloc" = "x1" ; then |
| 684 | AC_DEFINE([JEMALLOC_XMALLOC], [ ]) |
| 685 | fi |
| 686 | AC_SUBST([enable_xmalloc]) |
| 687 | |
Jason Evans | 6684cac | 2012-03-05 12:15:36 -0800 | [diff] [blame] | 688 | AC_CACHE_CHECK([STATIC_PAGE_SHIFT], |
| 689 | [je_cv_static_page_shift], |
| 690 | AC_RUN_IFELSE([AC_LANG_PROGRAM( |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 691 | [[#include <stdio.h> |
| 692 | #include <unistd.h> |
| 693 | #include <strings.h> |
Jason Evans | 6684cac | 2012-03-05 12:15:36 -0800 | [diff] [blame] | 694 | ]], |
| 695 | [[ |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 696 | long result; |
| 697 | FILE *f; |
| 698 | |
| 699 | result = sysconf(_SC_PAGESIZE); |
| 700 | if (result == -1) { |
| 701 | return 1; |
| 702 | } |
| 703 | f = fopen("conftest.out", "w"); |
| 704 | if (f == NULL) { |
| 705 | return 1; |
| 706 | } |
| 707 | fprintf(f, "%u\n", ffs((int)result) - 1); |
| 708 | close(f); |
| 709 | |
| 710 | return 0; |
| 711 | ]])], |
Jason Evans | 6684cac | 2012-03-05 12:15:36 -0800 | [diff] [blame] | 712 | [je_cv_static_page_shift=`cat conftest.out`], |
| 713 | [je_cv_static_page_shift=undefined])) |
| 714 | |
| 715 | if test "x$je_cv_static_page_shift" != "xundefined"; then |
| 716 | AC_DEFINE_UNQUOTED([STATIC_PAGE_SHIFT], [$je_cv_static_page_shift]) |
| 717 | else |
| 718 | AC_MSG_ERROR([cannot determine value for STATIC_PAGE_SHIFT]) |
| 719 | fi |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 720 | |
| 721 | dnl ============================================================================ |
| 722 | dnl jemalloc configuration. |
| 723 | dnl |
Jason Evans | a40bc7a | 2010-03-02 13:01:16 -0800 | [diff] [blame] | 724 | |
| 725 | dnl Set VERSION if source directory has an embedded git repository. |
Jason Evans | 955851f | 2011-03-31 22:38:51 -0700 | [diff] [blame] | 726 | if test -d "${srcroot}.git" ; then |
Jason Evans | 79d660d | 2010-09-17 17:38:24 -0700 | [diff] [blame] | 727 | git describe --long --abbrev=40 > ${srcroot}VERSION |
Jason Evans | a40bc7a | 2010-03-02 13:01:16 -0800 | [diff] [blame] | 728 | fi |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 729 | jemalloc_version=`cat ${srcroot}VERSION` |
Jason Evans | a40bc7a | 2010-03-02 13:01:16 -0800 | [diff] [blame] | 730 | jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print [$]1}'` |
| 731 | jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print [$]2}'` |
| 732 | jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print [$]3}'` |
| 733 | jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print [$]4}'` |
| 734 | jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print [$]5}'` |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 735 | AC_SUBST([jemalloc_version]) |
Jason Evans | a40bc7a | 2010-03-02 13:01:16 -0800 | [diff] [blame] | 736 | AC_SUBST([jemalloc_version_major]) |
| 737 | AC_SUBST([jemalloc_version_minor]) |
| 738 | AC_SUBST([jemalloc_version_bugfix]) |
| 739 | AC_SUBST([jemalloc_version_nrev]) |
| 740 | AC_SUBST([jemalloc_version_gid]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 741 | |
| 742 | dnl ============================================================================ |
| 743 | dnl Configure pthreads. |
| 744 | |
| 745 | AC_CHECK_HEADERS([pthread.h], , [AC_MSG_ERROR([pthread.h is missing])]) |
| 746 | AC_CHECK_LIB([pthread], [pthread_create], [LIBS="$LIBS -lpthread"], |
| 747 | [AC_MSG_ERROR([libpthread is missing])]) |
| 748 | |
| 749 | CPPFLAGS="$CPPFLAGS -D_REENTRANT" |
| 750 | |
Jason Evans | 0fee70d | 2012-02-13 12:36:11 -0800 | [diff] [blame] | 751 | dnl Disable lazy locking by default. |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 752 | AC_ARG_ENABLE([lazy_lock], |
Jason Evans | 0fee70d | 2012-02-13 12:36:11 -0800 | [diff] [blame] | 753 | [AS_HELP_STRING([--enable-lazy-lock], |
| 754 | [Enable lazy locking (only lock when multi-threaded)])], |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 755 | [if test "x$enable_lazy_lock" = "xno" ; then |
| 756 | enable_lazy_lock="0" |
| 757 | else |
| 758 | enable_lazy_lock="1" |
| 759 | fi |
| 760 | ], |
Jason Evans | 0fee70d | 2012-02-13 12:36:11 -0800 | [diff] [blame] | 761 | [enable_lazy_lock="0"] |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 762 | ) |
| 763 | if test "x$enable_lazy_lock" = "x1" ; then |
| 764 | AC_CHECK_HEADERS([dlfcn.h], , [AC_MSG_ERROR([dlfcn.h is missing])]) |
| 765 | AC_CHECK_LIB([dl], [dlopen], [LIBS="$LIBS -ldl"], |
| 766 | [AC_MSG_ERROR([libdl is missing])]) |
| 767 | AC_DEFINE([JEMALLOC_LAZY_LOCK], [ ]) |
| 768 | fi |
| 769 | AC_SUBST([enable_lazy_lock]) |
| 770 | |
Jason Evans | 78d815c | 2010-01-17 14:06:20 -0800 | [diff] [blame] | 771 | AC_ARG_ENABLE([tls], |
| 772 | [AS_HELP_STRING([--disable-tls], [Disable thread-local storage (__thread keyword)])], |
| 773 | if test "x$enable_tls" = "xno" ; then |
| 774 | enable_tls="0" |
| 775 | else |
| 776 | enable_tls="1" |
| 777 | fi |
| 778 | , |
| 779 | enable_tls="1" |
| 780 | ) |
| 781 | if test "x${enable_tls}" = "x1" ; then |
| 782 | AC_MSG_CHECKING([for TLS]) |
Jason Evans | 6684cac | 2012-03-05 12:15:36 -0800 | [diff] [blame] | 783 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM( |
Jason Evans | 78d815c | 2010-01-17 14:06:20 -0800 | [diff] [blame] | 784 | [[ |
| 785 | __thread int x; |
| 786 | ]], [[ |
| 787 | x = 42; |
| 788 | |
| 789 | return 0; |
| 790 | ]])], |
| 791 | AC_MSG_RESULT([yes]), |
| 792 | AC_MSG_RESULT([no]) |
| 793 | enable_tls="0") |
| 794 | fi |
Jason Evans | b267d0f | 2010-08-13 15:42:29 -0700 | [diff] [blame] | 795 | AC_SUBST([enable_tls]) |
Jason Evans | 78d815c | 2010-01-17 14:06:20 -0800 | [diff] [blame] | 796 | if test "x${enable_tls}" = "x0" ; then |
| 797 | AC_DEFINE_UNQUOTED([NO_TLS], [ ]) |
| 798 | fi |
| 799 | |
Jason Evans | 2dbecf1 | 2010-09-05 10:35:13 -0700 | [diff] [blame] | 800 | dnl ============================================================================ |
Jason Evans | 84c8eef | 2011-03-16 10:30:13 -0700 | [diff] [blame] | 801 | dnl Check for ffsl(3), and fail if not found. This function exists on all |
| 802 | dnl platforms that jemalloc currently has a chance of functioning on without |
| 803 | dnl modification. |
Jason Evans | 6684cac | 2012-03-05 12:15:36 -0800 | [diff] [blame] | 804 | JE_COMPILABLE([a program using ffsl], |
| 805 | [ |
| 806 | #include <string.h> |
| 807 | ], |
| 808 | [ |
| 809 | { |
| 810 | int rv = ffsl(0x08); |
| 811 | } |
| 812 | ], |
| 813 | [je_cv_function_ffsl]) |
| 814 | if test "x${je_cv_function_ffsl}" != "xyes" ; then |
| 815 | AC_MSG_ERROR([Cannot build without ffsl(3)]) |
| 816 | fi |
Jason Evans | 84c8eef | 2011-03-16 10:30:13 -0700 | [diff] [blame] | 817 | |
| 818 | dnl ============================================================================ |
Jason Evans | 763baa6 | 2011-03-18 19:10:31 -0700 | [diff] [blame] | 819 | dnl Check for atomic(3) operations as provided on Darwin. |
| 820 | |
| 821 | JE_COMPILABLE([Darwin OSAtomic*()], [ |
| 822 | #include <libkern/OSAtomic.h> |
| 823 | #include <inttypes.h> |
| 824 | ], [ |
| 825 | { |
| 826 | int32_t x32 = 0; |
| 827 | volatile int32_t *x32p = &x32; |
| 828 | OSAtomicAdd32(1, x32p); |
| 829 | } |
| 830 | { |
| 831 | int64_t x64 = 0; |
| 832 | volatile int64_t *x64p = &x64; |
| 833 | OSAtomicAdd64(1, x64p); |
| 834 | } |
Jason Evans | 6684cac | 2012-03-05 12:15:36 -0800 | [diff] [blame] | 835 | ], [je_cv_osatomic]) |
| 836 | if test "x${je_cv_osatomic}" = "xyes" ; then |
Jason Evans | 763baa6 | 2011-03-18 19:10:31 -0700 | [diff] [blame] | 837 | AC_DEFINE([JEMALLOC_OSATOMIC]) |
| 838 | fi |
| 839 | |
| 840 | dnl ============================================================================ |
Jason Evans | 893a0ed | 2011-03-18 19:30:18 -0700 | [diff] [blame] | 841 | dnl Check for spinlock(3) operations as provided on Darwin. |
| 842 | |
| 843 | JE_COMPILABLE([Darwin OSSpin*()], [ |
| 844 | #include <libkern/OSAtomic.h> |
| 845 | #include <inttypes.h> |
| 846 | ], [ |
| 847 | OSSpinLock lock = 0; |
| 848 | OSSpinLockLock(&lock); |
| 849 | OSSpinLockUnlock(&lock); |
Jason Evans | 6684cac | 2012-03-05 12:15:36 -0800 | [diff] [blame] | 850 | ], [je_cv_osspin]) |
| 851 | if test "x${je_cv_osspin}" = "xyes" ; then |
Jason Evans | 893a0ed | 2011-03-18 19:30:18 -0700 | [diff] [blame] | 852 | AC_DEFINE([JEMALLOC_OSSPIN]) |
| 853 | fi |
| 854 | |
| 855 | dnl ============================================================================ |
Jason Evans | 2dbecf1 | 2010-09-05 10:35:13 -0700 | [diff] [blame] | 856 | dnl Darwin-related configuration. |
Jason Evans | 78d815c | 2010-01-17 14:06:20 -0800 | [diff] [blame] | 857 | |
Jason Evans | 2dbecf1 | 2010-09-05 10:35:13 -0700 | [diff] [blame] | 858 | if test "x${abi}" = "xmacho" ; then |
| 859 | AC_DEFINE([JEMALLOC_IVSALLOC]) |
| 860 | AC_DEFINE([JEMALLOC_ZONE]) |
Jason Evans | 6109fe0 | 2010-02-10 10:37:56 -0800 | [diff] [blame] | 861 | |
Jason Evans | 2dbecf1 | 2010-09-05 10:35:13 -0700 | [diff] [blame] | 862 | dnl The szone version jumped from 3 to 6 between the OS X 10.5.x and 10.6 |
| 863 | dnl releases. malloc_zone_t and malloc_introspection_t have new fields in |
| 864 | dnl 10.6, which is the only source-level indication of the change. |
| 865 | AC_MSG_CHECKING([malloc zone version]) |
| 866 | AC_TRY_COMPILE([#include <stdlib.h> |
| 867 | #include <malloc/malloc.h>], [ |
| 868 | static malloc_zone_t zone; |
| 869 | static struct malloc_introspection_t zone_introspect; |
| 870 | |
| 871 | zone.size = NULL; |
| 872 | zone.malloc = NULL; |
| 873 | zone.calloc = NULL; |
| 874 | zone.valloc = NULL; |
| 875 | zone.free = NULL; |
| 876 | zone.realloc = NULL; |
| 877 | zone.destroy = NULL; |
| 878 | zone.zone_name = "jemalloc_zone"; |
| 879 | zone.batch_malloc = NULL; |
| 880 | zone.batch_free = NULL; |
| 881 | zone.introspect = &zone_introspect; |
| 882 | zone.version = 6; |
| 883 | zone.memalign = NULL; |
| 884 | zone.free_definite_size = NULL; |
| 885 | |
| 886 | zone_introspect.enumerator = NULL; |
| 887 | zone_introspect.good_size = NULL; |
| 888 | zone_introspect.check = NULL; |
| 889 | zone_introspect.print = NULL; |
| 890 | zone_introspect.log = NULL; |
| 891 | zone_introspect.force_lock = NULL; |
| 892 | zone_introspect.force_unlock = NULL; |
| 893 | zone_introspect.statistics = NULL; |
| 894 | zone_introspect.zone_locked = NULL; |
| 895 | ], [AC_DEFINE_UNQUOTED([JEMALLOC_ZONE_VERSION], [6]) |
| 896 | AC_MSG_RESULT([6])], |
| 897 | [AC_DEFINE_UNQUOTED([JEMALLOC_ZONE_VERSION], [3]) |
| 898 | AC_MSG_RESULT([3])]) |
Jason Evans | b27805b | 2010-02-10 18:15:53 -0800 | [diff] [blame] | 899 | fi |
| 900 | |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 901 | dnl ============================================================================ |
| 902 | dnl Check for typedefs, structures, and compiler characteristics. |
| 903 | AC_HEADER_STDBOOL |
| 904 | |
Jason Evans | b172610 | 2012-02-28 16:50:47 -0800 | [diff] [blame] | 905 | AC_CONFIG_COMMANDS([include/jemalloc/internal/size_classes.h], [ |
| 906 | mkdir -p "include/jemalloc/internal" |
| 907 | "${srcdir}/include/jemalloc/internal/size_classes.sh" > "${objroot}include/jemalloc/internal/size_classes.h" |
| 908 | ]) |
| 909 | |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 910 | dnl Process .in files. |
Jason Evans | b0fd501 | 2010-01-17 01:49:20 -0800 | [diff] [blame] | 911 | AC_SUBST([cfghdrs_in]) |
| 912 | AC_SUBST([cfghdrs_out]) |
Jason Evans | 0656ec0 | 2010-04-07 23:37:35 -0700 | [diff] [blame] | 913 | AC_CONFIG_HEADERS([$cfghdrs_tup]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 914 | |
| 915 | dnl ============================================================================ |
| 916 | dnl Generate outputs. |
Antony Dovgal | 2bd3cbc | 2011-10-13 09:33:33 +0400 | [diff] [blame] | 917 | AC_CONFIG_FILES([$cfgoutputs_tup config.stamp bin/jemalloc.sh]) |
Jason Evans | b0fd501 | 2010-01-17 01:49:20 -0800 | [diff] [blame] | 918 | AC_SUBST([cfgoutputs_in]) |
| 919 | AC_SUBST([cfgoutputs_out]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 920 | AC_OUTPUT |
| 921 | |
| 922 | dnl ============================================================================ |
| 923 | dnl Print out the results of configuration. |
| 924 | AC_MSG_RESULT([===============================================================================]) |
Jason Evans | f576c63 | 2011-11-01 22:27:41 -0700 | [diff] [blame] | 925 | AC_MSG_RESULT([jemalloc version : ${jemalloc_version}]) |
| 926 | AC_MSG_RESULT([library revision : ${rev}]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 927 | AC_MSG_RESULT([]) |
| 928 | AC_MSG_RESULT([CC : ${CC}]) |
| 929 | AC_MSG_RESULT([CPPFLAGS : ${CPPFLAGS}]) |
| 930 | AC_MSG_RESULT([CFLAGS : ${CFLAGS}]) |
| 931 | AC_MSG_RESULT([LDFLAGS : ${LDFLAGS}]) |
| 932 | AC_MSG_RESULT([LIBS : ${LIBS}]) |
| 933 | AC_MSG_RESULT([RPATH_EXTRA : ${RPATH_EXTRA}]) |
| 934 | AC_MSG_RESULT([]) |
Jason Evans | aee7fd2 | 2010-11-24 22:00:02 -0800 | [diff] [blame] | 935 | AC_MSG_RESULT([XSLTPROC : ${XSLTPROC}]) |
| 936 | AC_MSG_RESULT([XSLROOT : ${XSLROOT}]) |
| 937 | AC_MSG_RESULT([]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 938 | AC_MSG_RESULT([PREFIX : ${PREFIX}]) |
| 939 | AC_MSG_RESULT([BINDIR : ${BINDIR}]) |
Jason Evans | 662a017 | 2009-07-01 19:24:31 -0700 | [diff] [blame] | 940 | AC_MSG_RESULT([INCLUDEDIR : ${INCLUDEDIR}]) |
| 941 | AC_MSG_RESULT([LIBDIR : ${LIBDIR}]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 942 | AC_MSG_RESULT([DATADIR : ${DATADIR}]) |
| 943 | AC_MSG_RESULT([MANDIR : ${MANDIR}]) |
| 944 | AC_MSG_RESULT([]) |
| 945 | AC_MSG_RESULT([srcroot : ${srcroot}]) |
| 946 | AC_MSG_RESULT([abs_srcroot : ${abs_srcroot}]) |
| 947 | AC_MSG_RESULT([objroot : ${objroot}]) |
| 948 | AC_MSG_RESULT([abs_objroot : ${abs_objroot}]) |
| 949 | AC_MSG_RESULT([]) |
Jason Evans | 90895cf | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 950 | AC_MSG_RESULT([JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}]) |
Jason Evans | 746e77a | 2011-07-30 16:40:52 -0700 | [diff] [blame] | 951 | AC_MSG_RESULT([JEMALLOC_PRIVATE_NAMESPACE]) |
| 952 | AC_MSG_RESULT([ : ${JEMALLOC_PRIVATE_NAMESPACE}]) |
Jason Evans | b0fd501 | 2010-01-17 01:49:20 -0800 | [diff] [blame] | 953 | AC_MSG_RESULT([install_suffix : ${install_suffix}]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 954 | AC_MSG_RESULT([autogen : ${enable_autogen}]) |
Jason Evans | 7e77eaf | 2012-03-02 17:47:37 -0800 | [diff] [blame] | 955 | AC_MSG_RESULT([experimental : ${enable_experimental}]) |
Jason Evans | 355b438 | 2010-09-20 19:20:48 -0700 | [diff] [blame] | 956 | AC_MSG_RESULT([cc-silence : ${enable_cc_silence}]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 957 | AC_MSG_RESULT([debug : ${enable_debug}]) |
| 958 | AC_MSG_RESULT([stats : ${enable_stats}]) |
Jason Evans | 6109fe0 | 2010-02-10 10:37:56 -0800 | [diff] [blame] | 959 | AC_MSG_RESULT([prof : ${enable_prof}]) |
| 960 | AC_MSG_RESULT([prof-libunwind : ${enable_prof_libunwind}]) |
Jason Evans | 77f350b | 2011-03-15 22:23:12 -0700 | [diff] [blame] | 961 | AC_MSG_RESULT([prof-libgcc : ${enable_prof_libgcc}]) |
| 962 | AC_MSG_RESULT([prof-gcc : ${enable_prof_gcc}]) |
Jason Evans | 84cbbcb | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 963 | AC_MSG_RESULT([tcache : ${enable_tcache}]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 964 | AC_MSG_RESULT([fill : ${enable_fill}]) |
| 965 | AC_MSG_RESULT([xmalloc : ${enable_xmalloc}]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 966 | AC_MSG_RESULT([dss : ${enable_dss}]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 967 | AC_MSG_RESULT([lazy_lock : ${enable_lazy_lock}]) |
Jason Evans | 2dbecf1 | 2010-09-05 10:35:13 -0700 | [diff] [blame] | 968 | AC_MSG_RESULT([tls : ${enable_tls}]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 969 | AC_MSG_RESULT([===============================================================================]) |