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 |
| 17 | AC_RUN_IFELSE([AC_LANG_PROGRAM( |
| 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 | [ |
| 31 | AC_MSG_CHECKING([whether $1 is compilable]) |
| 32 | AC_RUN_IFELSE([AC_LANG_PROGRAM( |
| 33 | [$2], [$3])], |
| 34 | AC_MSG_RESULT([yes]) |
| 35 | [$4="yes"], |
| 36 | AC_MSG_RESULT([no]) |
| 37 | [$4="no"] |
| 38 | ) |
| 39 | ]) |
| 40 | |
| 41 | dnl ============================================================================ |
| 42 | |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 43 | srcroot=$srcdir |
| 44 | if test "x${srcroot}" = "x." ; then |
| 45 | srcroot="" |
| 46 | else |
| 47 | srcroot="${srcroot}/" |
| 48 | fi |
| 49 | AC_SUBST([srcroot]) |
| 50 | abs_srcroot="`cd \"${srcdir}\"; pwd`/" |
| 51 | AC_SUBST([abs_srcroot]) |
| 52 | |
| 53 | objroot="" |
| 54 | AC_SUBST([objroot]) |
| 55 | abs_objroot="`pwd`/" |
| 56 | AC_SUBST([abs_objroot]) |
| 57 | |
| 58 | dnl Munge install path variables. |
| 59 | if test "x$prefix" = "xNONE" ; then |
| 60 | prefix="/usr/local" |
| 61 | fi |
| 62 | if test "x$exec_prefix" = "xNONE" ; then |
| 63 | exec_prefix=$prefix |
| 64 | fi |
| 65 | PREFIX=$prefix |
| 66 | AC_SUBST([PREFIX]) |
| 67 | BINDIR=`eval echo $bindir` |
| 68 | BINDIR=`eval echo $BINDIR` |
| 69 | AC_SUBST([BINDIR]) |
| 70 | INCLUDEDIR=`eval echo $includedir` |
| 71 | INCLUDEDIR=`eval echo $INCLUDEDIR` |
| 72 | AC_SUBST([INCLUDEDIR]) |
| 73 | LIBDIR=`eval echo $libdir` |
| 74 | LIBDIR=`eval echo $LIBDIR` |
| 75 | AC_SUBST([LIBDIR]) |
| 76 | DATADIR=`eval echo $datadir` |
| 77 | DATADIR=`eval echo $DATADIR` |
| 78 | AC_SUBST([DATADIR]) |
| 79 | MANDIR=`eval echo $mandir` |
| 80 | MANDIR=`eval echo $MANDIR` |
| 81 | AC_SUBST([MANDIR]) |
| 82 | |
Jason Evans | f3340ca | 2009-06-30 16:17:05 -0700 | [diff] [blame] | 83 | dnl If CFLAGS isn't defined, set CFLAGS to something reasonable. Otherwise, |
| 84 | dnl just prevent autoconf from molesting CFLAGS. |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 85 | CFLAGS=$CFLAGS |
| 86 | AC_PROG_CC |
| 87 | if test "x$CFLAGS" = "x" ; then |
| 88 | no_CFLAGS="yes" |
Jason Evans | cfeccd3 | 2010-03-03 15:48:20 -0800 | [diff] [blame^] | 89 | if test "x$GCC" = "xyes" ; then |
| 90 | JE_CFLAGS_APPEND([-std=gnu99]) |
| 91 | JE_CFLAGS_APPEND([-Wall]) |
| 92 | JE_CFLAGS_APPEND([-pipe]) |
| 93 | JE_CFLAGS_APPEND([-g3]) |
| 94 | fi |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 95 | fi |
| 96 | dnl Append EXTRA_CFLAGS to CFLAGS, if defined. |
| 97 | if test "x$EXTRA_CFLAGS" != "x" ; then |
Jason Evans | f3340ca | 2009-06-30 16:17:05 -0700 | [diff] [blame] | 98 | JE_CFLAGS_APPEND([$EXTRA_CFLAGS]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 99 | fi |
| 100 | AC_PROG_CPP |
| 101 | |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 102 | AC_CHECK_SIZEOF([void *]) |
| 103 | if test "x${ac_cv_sizeof_void_p}" = "x8" ; then |
Jason Evans | 94ad2b5 | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 104 | LG_SIZEOF_PTR=3 |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 105 | elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then |
Jason Evans | 94ad2b5 | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 106 | LG_SIZEOF_PTR=2 |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 107 | else |
| 108 | AC_MSG_ERROR([Unsupported pointer size: ${ac_cv_sizeof_void_p}]) |
| 109 | fi |
Jason Evans | 94ad2b5 | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 110 | AC_DEFINE_UNQUOTED([LG_SIZEOF_PTR], [$LG_SIZEOF_PTR]) |
| 111 | |
| 112 | AC_CHECK_SIZEOF([int]) |
| 113 | if test "x${ac_cv_sizeof_int}" = "x8" ; then |
| 114 | LG_SIZEOF_INT=3 |
| 115 | elif test "x${ac_cv_sizeof_int}" = "x4" ; then |
| 116 | LG_SIZEOF_INT=2 |
| 117 | else |
| 118 | AC_MSG_ERROR([Unsupported int size: ${ac_cv_sizeof_int}]) |
| 119 | fi |
| 120 | AC_DEFINE_UNQUOTED([LG_SIZEOF_INT], [$LG_SIZEOF_INT]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 121 | |
| 122 | AC_CANONICAL_HOST |
| 123 | dnl CPU-specific settings. |
| 124 | CPU_SPINWAIT="" |
| 125 | case "${host_cpu}" in |
| 126 | i[[345]]86) |
| 127 | ;; |
| 128 | i686) |
Jason Evans | f3340ca | 2009-06-30 16:17:05 -0700 | [diff] [blame] | 129 | JE_COMPILABLE([__asm__], [], [[__asm__ volatile("pause"); return 0;]], |
| 130 | [asm]) |
| 131 | if test "x${asm}" = "xyes" ; then |
| 132 | CPU_SPINWAIT='__asm__ volatile("pause")' |
| 133 | fi |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 134 | ;; |
| 135 | x86_64) |
Jason Evans | f3340ca | 2009-06-30 16:17:05 -0700 | [diff] [blame] | 136 | JE_COMPILABLE([__asm__ syntax], [], |
| 137 | [[__asm__ volatile("pause"); return 0;]], [asm]) |
| 138 | if test "x${asm}" = "xyes" ; then |
| 139 | CPU_SPINWAIT='__asm__ volatile("pause")' |
| 140 | fi |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 141 | ;; |
| 142 | *) |
| 143 | ;; |
| 144 | esac |
| 145 | AC_DEFINE_UNQUOTED([CPU_SPINWAIT], [$CPU_SPINWAIT]) |
| 146 | |
Jason Evans | f3340ca | 2009-06-30 16:17:05 -0700 | [diff] [blame] | 147 | JE_COMPILABLE([__attribute__ syntax], |
| 148 | [static __attribute__((unused)) void foo(void){}], |
| 149 | [], |
| 150 | [attribute]) |
| 151 | if test "x${attribute}" = "xyes" ; then |
Jason Evans | 9ad4823 | 2010-01-03 11:59:20 -0800 | [diff] [blame] | 152 | AC_DEFINE([JEMALLOC_HAVE_ATTR], [ ]) |
Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 153 | if test "x$GCC" = "xyes" ; then |
| 154 | JE_CFLAGS_APPEND([-fvisibility=internal]) |
| 155 | fi |
Jason Evans | f3340ca | 2009-06-30 16:17:05 -0700 | [diff] [blame] | 156 | fi |
| 157 | |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 158 | dnl Platform-specific settings. abi and RPATH can probably be determined |
| 159 | dnl programmatically, but doing so is error-prone, which makes it generally |
| 160 | dnl not worth the trouble. |
| 161 | dnl |
| 162 | dnl Define cpp macros in CPPFLAGS, rather than doing AC_DEFINE(macro), since the |
| 163 | dnl definitions need to be seen before any headers are included, which is a pain |
| 164 | dnl to make happen otherwise. |
| 165 | case "${host}" in |
| 166 | *-*-darwin*) |
| 167 | CFLAGS="$CFLAGS -fno-common -no-cpp-precomp" |
| 168 | abi="macho" |
| 169 | RPATH="" |
| 170 | ;; |
| 171 | *-*-freebsd*) |
| 172 | CFLAGS="$CFLAGS" |
| 173 | abi="elf" |
| 174 | RPATH="-Wl,-rpath," |
| 175 | ;; |
| 176 | *-*-linux*) |
| 177 | CFLAGS="$CFLAGS" |
| 178 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" |
| 179 | abi="elf" |
| 180 | RPATH="-Wl,-rpath," |
| 181 | ;; |
| 182 | *-*-netbsd*) |
| 183 | AC_MSG_CHECKING([ABI]) |
| 184 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM( |
| 185 | [[#ifdef __ELF__ |
| 186 | /* ELF */ |
| 187 | #else |
| 188 | #error aout |
| 189 | #endif |
| 190 | ]])], |
| 191 | [CFLAGS="$CFLAGS"; abi="elf"], |
| 192 | [abi="aout"]) |
| 193 | AC_MSG_RESULT([$abi]) |
| 194 | RPATH="-Wl,-rpath," |
| 195 | ;; |
| 196 | *-*-solaris2*) |
| 197 | CFLAGS="$CFLAGS" |
| 198 | abi="elf" |
| 199 | RPATH="-Wl,-R," |
| 200 | dnl Solaris needs this for sigwait(). |
| 201 | CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" |
| 202 | LIBS="$LIBS -lposix4 -lsocket -lnsl" |
| 203 | ;; |
| 204 | *) |
| 205 | AC_MSG_RESULT([Unsupported operating system: ${host}]) |
| 206 | abi="elf" |
| 207 | RPATH="-Wl,-rpath," |
| 208 | ;; |
| 209 | esac |
| 210 | AC_SUBST([abi]) |
| 211 | AC_SUBST([RPATH]) |
| 212 | |
| 213 | dnl Support optional additions to rpath. |
| 214 | AC_ARG_WITH([rpath], |
Jason Evans | 90895cf | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 215 | [AS_HELP_STRING([--with-rpath=<rpath>], [Colon-separated rpath (ELF systems only)])], |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 216 | if test "x$with_rpath" = "xno" ; then |
| 217 | RPATH_EXTRA= |
| 218 | else |
| 219 | RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`" |
| 220 | fi, |
| 221 | RPATH_EXTRA= |
| 222 | ) |
| 223 | AC_SUBST([RPATH_EXTRA]) |
| 224 | |
| 225 | dnl Disable rules that do automatic regeneration of configure output by default. |
| 226 | AC_ARG_ENABLE([autogen], |
Jason Evans | 78d815c | 2010-01-17 14:06:20 -0800 | [diff] [blame] | 227 | [AS_HELP_STRING([--enable-autogen], [Automatically regenerate configure output])], |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 228 | if test "x$enable_autogen" = "xno" ; then |
| 229 | enable_autogen="0" |
| 230 | else |
| 231 | enable_autogen="1" |
| 232 | fi |
| 233 | , |
| 234 | enable_autogen="0" |
| 235 | ) |
| 236 | AC_SUBST([enable_autogen]) |
| 237 | |
| 238 | AC_PROG_INSTALL |
| 239 | AC_PROG_RANLIB |
| 240 | AC_PATH_PROG([AR], [ar], , [$PATH]) |
| 241 | AC_PATH_PROG([LD], [ld], , [$PATH]) |
| 242 | AC_PATH_PROG([AUTOCONF], [autoconf], , [$PATH]) |
| 243 | |
Jason Evans | 90895cf | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 244 | dnl Do not prefix public APIs by default. |
| 245 | AC_ARG_WITH([jemalloc_prefix], |
| 246 | [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] | 247 | [JEMALLOC_PREFIX="$with_jemalloc_prefix"], |
| 248 | [JEMALLOC_PREFIX=] |
Jason Evans | 90895cf | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 249 | ) |
| 250 | if test "x$JEMALLOC_PREFIX" != "x" ; then |
| 251 | AC_DEFINE([JEMALLOC_PREFIX], [ ]) |
Jason Evans | b0fd501 | 2010-01-17 01:49:20 -0800 | [diff] [blame] | 252 | jemalloc_prefix="$JEMALLOC_PREFIX" |
Jason Evans | 90895cf | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 253 | AC_SUBST([jemalloc_prefix]) |
Jason Evans | e476f8a | 2010-01-16 09:53:50 -0800 | [diff] [blame] | 254 | AC_DEFINE_UNQUOTED([JEMALLOC_P(string_that_no_one_should_want_to_use_as_a_jemalloc_API_prefix)], [${JEMALLOC_PREFIX}##string_that_no_one_should_want_to_use_as_a_jemalloc_API_prefix]) |
Jason Evans | 90895cf | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 255 | fi |
| 256 | |
Jason Evans | b0fd501 | 2010-01-17 01:49:20 -0800 | [diff] [blame] | 257 | dnl Do not add suffix to installed files by default. |
| 258 | AC_ARG_WITH([install_suffix], |
| 259 | [AS_HELP_STRING([--with-install-suffix=<suffix>], [Suffix to append to all installed files])], |
| 260 | [INSTALL_SUFFIX="$with_install_suffix"], |
| 261 | [INSTALL_SUFFIX=] |
| 262 | ) |
| 263 | install_suffix="$INSTALL_SUFFIX" |
| 264 | AC_SUBST([install_suffix]) |
| 265 | |
| 266 | cfgoutputs_in="Makefile doc/jemalloc.3.in" |
Jason Evans | 376b152 | 2010-02-11 14:45:59 -0800 | [diff] [blame] | 267 | cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc.h.in" |
| 268 | cfgoutputs_in="${cfgoutputs_in} include/jemalloc/internal/jemalloc_internal.h.in" |
Jason Evans | b0fd501 | 2010-01-17 01:49:20 -0800 | [diff] [blame] | 269 | |
| 270 | cfgoutputs_out="Makefile doc/jemalloc${install_suffix}.3" |
Jason Evans | 376b152 | 2010-02-11 14:45:59 -0800 | [diff] [blame] | 271 | cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc${install_suffix}.h" |
| 272 | cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_internal.h" |
Jason Evans | b0fd501 | 2010-01-17 01:49:20 -0800 | [diff] [blame] | 273 | |
| 274 | cfgoutputs_tup="Makefile doc/jemalloc${install_suffix}.3:doc/jemalloc.3.in" |
Jason Evans | 376b152 | 2010-02-11 14:45:59 -0800 | [diff] [blame] | 275 | cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc${install_suffix}.h:include/jemalloc/jemalloc.h.in" |
| 276 | cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_internal.h" |
Jason Evans | b0fd501 | 2010-01-17 01:49:20 -0800 | [diff] [blame] | 277 | |
Jason Evans | 376b152 | 2010-02-11 14:45:59 -0800 | [diff] [blame] | 278 | cfghdrs_in="include/jemalloc/jemalloc_defs.h.in" |
Jason Evans | b0fd501 | 2010-01-17 01:49:20 -0800 | [diff] [blame] | 279 | |
Jason Evans | 376b152 | 2010-02-11 14:45:59 -0800 | [diff] [blame] | 280 | cfghdrs_out="include/jemalloc/jemalloc_defs${install_suffix}.h" |
Jason Evans | b0fd501 | 2010-01-17 01:49:20 -0800 | [diff] [blame] | 281 | |
Jason Evans | 376b152 | 2010-02-11 14:45:59 -0800 | [diff] [blame] | 282 | 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] | 283 | |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 284 | dnl Do not compile with debugging by default. |
| 285 | AC_ARG_ENABLE([debug], |
| 286 | [AS_HELP_STRING([--enable-debug], [Build debugging code])], |
| 287 | [if test "x$enable_debug" = "xno" ; then |
| 288 | enable_debug="0" |
| 289 | else |
| 290 | enable_debug="1" |
| 291 | fi |
| 292 | ], |
| 293 | [enable_debug="0"] |
| 294 | ) |
| 295 | if test "x$enable_debug" = "x1" ; then |
| 296 | AC_DEFINE([JEMALLOC_DEBUG], [ ]) |
| 297 | fi |
| 298 | AC_SUBST([enable_debug]) |
| 299 | |
| 300 | dnl Only optimize if not debugging. |
| 301 | if test "x$enable_debug" = "x0" -a "x$no_CFLAGS" = "xyes" ; then |
| 302 | 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] | 303 | optimize="no" |
| 304 | echo "$EXTRA_CFLAGS" | grep "\-O" >/dev/null || optimize="yes" |
| 305 | if test "x${optimize}" = "xyes" ; then |
| 306 | if test "x$GCC" = "xyes" ; then |
| 307 | JE_CFLAGS_APPEND([-O3]) |
| 308 | JE_CFLAGS_APPEND([-funroll-loops]) |
Jason Evans | cfeccd3 | 2010-03-03 15:48:20 -0800 | [diff] [blame^] | 309 | JE_CFLAGS_APPEND([-march=native]) |
Jason Evans | f3340ca | 2009-06-30 16:17:05 -0700 | [diff] [blame] | 310 | else |
| 311 | JE_CFLAGS_APPEND([-O]) |
| 312 | fi |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 313 | fi |
| 314 | fi |
| 315 | |
| 316 | dnl Do not enable statistics calculation by default. |
| 317 | AC_ARG_ENABLE([stats], |
| 318 | [AS_HELP_STRING([--enable-stats], [Enable statistics calculation/reporting])], |
| 319 | [if test "x$enable_stats" = "xno" ; then |
| 320 | enable_stats="0" |
| 321 | else |
| 322 | enable_stats="1" |
| 323 | fi |
| 324 | ], |
| 325 | [enable_stats="0"] |
| 326 | ) |
| 327 | if test "x$enable_stats" = "x1" ; then |
| 328 | AC_DEFINE([JEMALLOC_STATS], [ ]) |
| 329 | fi |
| 330 | AC_SUBST([enable_stats]) |
Jason Evans | cc00a15 | 2009-06-25 18:06:48 -0700 | [diff] [blame] | 331 | if test "x$enable_stats" = "x0" ; then |
| 332 | roff_stats=".\\\" " |
| 333 | else |
| 334 | roff_stats="" |
| 335 | fi |
| 336 | AC_SUBST([roff_stats]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 337 | |
Jason Evans | 6109fe0 | 2010-02-10 10:37:56 -0800 | [diff] [blame] | 338 | dnl Do not enable profiling by default. |
| 339 | AC_ARG_ENABLE([prof], |
| 340 | [AS_HELP_STRING([--enable-prof], [Enable allocation profiling])], |
| 341 | [if test "x$enable_prof" = "xno" ; then |
| 342 | enable_prof="0" |
| 343 | else |
| 344 | enable_prof="1" |
| 345 | fi |
| 346 | ], |
| 347 | [enable_prof="0"] |
| 348 | ) |
Jason Evans | b27805b | 2010-02-10 18:15:53 -0800 | [diff] [blame] | 349 | AC_ARG_ENABLE([prof-libgcc], |
| 350 | [AS_HELP_STRING([--disable-prof-libgcc], |
| 351 | [Do not use libgcc for backtracing])], |
| 352 | [if test "x$enable_prof_libgcc" = "xno" ; then |
| 353 | enable_prof_libgcc="0" |
| 354 | else |
| 355 | enable_prof_libgcc="1" |
| 356 | fi |
| 357 | ], |
| 358 | [enable_prof_libgcc="1"] |
| 359 | ) |
Jason Evans | 6109fe0 | 2010-02-10 10:37:56 -0800 | [diff] [blame] | 360 | AC_ARG_ENABLE([prof-libunwind], |
| 361 | [AS_HELP_STRING([--enable-prof-libunwind], [Use libunwind for backtracing])], |
| 362 | [if test "x$enable_prof_libunwind" = "xno" ; then |
| 363 | enable_prof_libunwind="0" |
| 364 | else |
| 365 | enable_prof_libunwind="1" |
| 366 | fi |
| 367 | ], |
| 368 | [enable_prof_libunwind="0"] |
| 369 | ) |
Jason Evans | ca6bd4f | 2010-03-02 14:12:58 -0800 | [diff] [blame] | 370 | AC_ARG_WITH([static_libunwind], |
| 371 | [AS_HELP_STRING([--with-static-libunwind=<libunwind.a>], |
| 372 | [Path to static libunwind library; use rather than dynamically linking])], |
| 373 | if test "x$with_static_libunwind" = "xno" ; then |
| 374 | LUNWIND="-lunwind" |
| 375 | else |
| 376 | if test ! -f "$with_static_libunwind" ; then |
| 377 | AC_MSG_ERROR([Static libunwind not found: $with_static_libunwind]) |
| 378 | fi |
| 379 | LUNWIND="$with_static_libunwind" |
| 380 | fi, |
| 381 | LUNWIND="-lunwind" |
| 382 | ) |
Jason Evans | 6109fe0 | 2010-02-10 10:37:56 -0800 | [diff] [blame] | 383 | dnl Finish prof-related definitions below, once TLS configuration is done. |
| 384 | |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 385 | dnl Enable tiny allocations by default. |
| 386 | AC_ARG_ENABLE([tiny], |
| 387 | [AS_HELP_STRING([--disable-tiny], [Disable tiny (sub-quantum) allocations])], |
| 388 | [if test "x$enable_tiny" = "xno" ; then |
| 389 | enable_tiny="0" |
| 390 | else |
| 391 | enable_tiny="1" |
| 392 | fi |
| 393 | ], |
| 394 | [enable_tiny="1"] |
| 395 | ) |
| 396 | if test "x$enable_tiny" = "x1" ; then |
| 397 | AC_DEFINE([JEMALLOC_TINY], [ ]) |
| 398 | fi |
| 399 | AC_SUBST([enable_tiny]) |
Jason Evans | cc00a15 | 2009-06-25 18:06:48 -0700 | [diff] [blame] | 400 | if test "x$enable_tiny" = "x0" ; then |
| 401 | roff_tiny=".\\\" " |
| 402 | roff_no_tiny="" |
| 403 | else |
| 404 | roff_tiny="" |
| 405 | roff_no_tiny=".\\\" " |
| 406 | fi |
| 407 | AC_SUBST([roff_tiny]) |
| 408 | AC_SUBST([roff_no_tiny]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 409 | |
Jason Evans | 84cbbcb | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 410 | dnl Enable thread-specific caching by default. |
| 411 | AC_ARG_ENABLE([tcache], |
| 412 | [AS_HELP_STRING([--disable-tcache], [Disable per thread caches])], |
| 413 | [if test "x$enable_tcache" = "xno" ; then |
| 414 | enable_tcache="0" |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 415 | else |
Jason Evans | 84cbbcb | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 416 | enable_tcache="1" |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 417 | fi |
| 418 | ], |
Jason Evans | 84cbbcb | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 419 | [enable_tcache="1"] |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 420 | ) |
Jason Evans | 84cbbcb | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 421 | dnl Finish tcache-related definitions below, once TLS configuration is done. |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 422 | |
Jason Evans | 4201af0 | 2010-01-24 02:53:40 -0800 | [diff] [blame] | 423 | dnl Do not enable mmap()ped swap files by default. |
| 424 | AC_ARG_ENABLE([swap], |
| 425 | [AS_HELP_STRING([--enable-swap], [Enable mmap()ped swap files])], |
| 426 | [if test "x$enable_swap" = "xno" ; then |
| 427 | enable_swap="0" |
| 428 | else |
| 429 | enable_swap="1" |
| 430 | fi |
| 431 | ], |
| 432 | [enable_swap="0"] |
| 433 | ) |
| 434 | if test "x$enable_swap" = "x1" ; then |
| 435 | AC_DEFINE([JEMALLOC_SWAP], [ ]) |
| 436 | fi |
| 437 | AC_SUBST([enable_swap]) |
| 438 | if test "x$enable_swap" = "x0" ; then |
| 439 | roff_swap=".\\\" " |
| 440 | else |
| 441 | roff_swap="" |
| 442 | fi |
| 443 | AC_SUBST([roff_swap]) |
| 444 | |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 445 | dnl Do not enable allocation from DSS by default. |
| 446 | AC_ARG_ENABLE([dss], |
| 447 | [AS_HELP_STRING([--enable-dss], [Enable allocation from DSS])], |
| 448 | [if test "x$enable_dss" = "xno" ; then |
| 449 | enable_dss="0" |
| 450 | else |
| 451 | enable_dss="1" |
| 452 | fi |
| 453 | ], |
| 454 | [enable_dss="0"] |
| 455 | ) |
| 456 | if test "x$enable_dss" = "x1" ; then |
| 457 | AC_DEFINE([JEMALLOC_DSS], [ ]) |
| 458 | fi |
| 459 | AC_SUBST([enable_dss]) |
Jason Evans | cc00a15 | 2009-06-25 18:06:48 -0700 | [diff] [blame] | 460 | if test "x$enable_dss" = "x0" ; then |
| 461 | roff_dss=".\\\" " |
| 462 | else |
| 463 | roff_dss="" |
| 464 | fi |
| 465 | AC_SUBST([roff_dss]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 466 | |
| 467 | dnl Do not support the junk/zero filling option by default. |
| 468 | AC_ARG_ENABLE([fill], |
| 469 | [AS_HELP_STRING([--enable-fill], [Support junk/zero filling option])], |
| 470 | [if test "x$enable_fill" = "xno" ; then |
| 471 | enable_fill="0" |
| 472 | else |
| 473 | enable_fill="1" |
| 474 | fi |
| 475 | ], |
| 476 | [enable_fill="0"] |
| 477 | ) |
| 478 | if test "x$enable_fill" = "x1" ; then |
| 479 | AC_DEFINE([JEMALLOC_FILL], [ ]) |
| 480 | fi |
| 481 | AC_SUBST([enable_fill]) |
Jason Evans | cc00a15 | 2009-06-25 18:06:48 -0700 | [diff] [blame] | 482 | if test "x$enable_fill" = "x0" ; then |
| 483 | roff_fill=".\\\" " |
| 484 | else |
| 485 | roff_fill="" |
| 486 | fi |
| 487 | AC_SUBST([roff_fill]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 488 | |
| 489 | dnl Do not support the xmalloc option by default. |
| 490 | AC_ARG_ENABLE([xmalloc], |
| 491 | [AS_HELP_STRING([--enable-xmalloc], [Support xmalloc option])], |
| 492 | [if test "x$enable_xmalloc" = "xno" ; then |
| 493 | enable_xmalloc="0" |
| 494 | else |
| 495 | enable_xmalloc="1" |
| 496 | fi |
| 497 | ], |
| 498 | [enable_xmalloc="0"] |
| 499 | ) |
| 500 | if test "x$enable_xmalloc" = "x1" ; then |
| 501 | AC_DEFINE([JEMALLOC_XMALLOC], [ ]) |
| 502 | fi |
| 503 | AC_SUBST([enable_xmalloc]) |
Jason Evans | cc00a15 | 2009-06-25 18:06:48 -0700 | [diff] [blame] | 504 | if test "x$enable_xmalloc" = "x0" ; then |
| 505 | roff_xmalloc=".\\\" " |
| 506 | else |
| 507 | roff_xmalloc="" |
| 508 | fi |
| 509 | AC_SUBST([roff_xmalloc]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 510 | |
| 511 | dnl Do not support the SYSV option by default. |
| 512 | AC_ARG_ENABLE([sysv], |
| 513 | [AS_HELP_STRING([--enable-sysv], [Support SYSV semantics option])], |
| 514 | [if test "x$enable_sysv" = "xno" ; then |
| 515 | enable_sysv="0" |
| 516 | else |
| 517 | enable_sysv="1" |
| 518 | fi |
| 519 | ], |
| 520 | [enable_sysv="0"] |
| 521 | ) |
| 522 | if test "x$enable_sysv" = "x1" ; then |
| 523 | AC_DEFINE([JEMALLOC_SYSV], [ ]) |
| 524 | fi |
| 525 | AC_SUBST([enable_sysv]) |
Jason Evans | cc00a15 | 2009-06-25 18:06:48 -0700 | [diff] [blame] | 526 | if test "x$enable_sysv" = "x0" ; then |
| 527 | roff_sysv=".\\\" " |
| 528 | else |
| 529 | roff_sysv="" |
| 530 | fi |
| 531 | AC_SUBST([roff_sysv]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 532 | |
| 533 | dnl Do not determine page shift at run time by default. |
| 534 | AC_ARG_ENABLE([dynamic_page_shift], |
| 535 | [AS_HELP_STRING([--enable-dynamic-page-shift], |
| 536 | [Determine page size at run time (don't trust configure result)])], |
| 537 | [if test "x$enable_dynamic_page_shift" = "xno" ; then |
| 538 | enable_dynamic_page_shift="0" |
| 539 | else |
| 540 | enable_dynamic_page_shift="1" |
| 541 | fi |
| 542 | ], |
| 543 | [enable_dynamic_page_shift="0"] |
| 544 | ) |
| 545 | if test "x$enable_dynamic_page_shift" = "x1" ; then |
| 546 | AC_DEFINE([DYNAMIC_PAGE_SHIFT], [ ]) |
| 547 | fi |
| 548 | AC_SUBST([enable_dynamic_page_shift]) |
| 549 | |
| 550 | AC_MSG_CHECKING([STATIC_PAGE_SHIFT]) |
| 551 | AC_RUN_IFELSE([AC_LANG_PROGRAM( |
| 552 | [[#include <stdio.h> |
| 553 | #include <unistd.h> |
| 554 | #include <strings.h> |
| 555 | ]], [[ |
| 556 | long result; |
| 557 | FILE *f; |
| 558 | |
| 559 | result = sysconf(_SC_PAGESIZE); |
| 560 | if (result == -1) { |
| 561 | return 1; |
| 562 | } |
| 563 | f = fopen("conftest.out", "w"); |
| 564 | if (f == NULL) { |
| 565 | return 1; |
| 566 | } |
| 567 | fprintf(f, "%u\n", ffs((int)result) - 1); |
| 568 | close(f); |
| 569 | |
| 570 | return 0; |
| 571 | ]])], |
| 572 | [STATIC_PAGE_SHIFT=`cat conftest.out`] |
| 573 | AC_MSG_RESULT([$STATIC_PAGE_SHIFT]) |
| 574 | AC_DEFINE_UNQUOTED([STATIC_PAGE_SHIFT], [$STATIC_PAGE_SHIFT]), |
| 575 | AC_MSG_RESULT([error])) |
| 576 | |
| 577 | dnl ============================================================================ |
| 578 | dnl jemalloc configuration. |
| 579 | dnl |
Jason Evans | a40bc7a | 2010-03-02 13:01:16 -0800 | [diff] [blame] | 580 | |
| 581 | dnl Set VERSION if source directory has an embedded git repository. |
| 582 | if test -d "${srcroot}../.git" ; then |
| 583 | git describe --long > ${srcroot}VERSION |
| 584 | fi |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 585 | jemalloc_version=`cat ${srcroot}VERSION` |
Jason Evans | a40bc7a | 2010-03-02 13:01:16 -0800 | [diff] [blame] | 586 | jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print [$]1}'` |
| 587 | jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print [$]2}'` |
| 588 | jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print [$]3}'` |
| 589 | jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print [$]4}'` |
| 590 | jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print [$]5}'` |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 591 | AC_SUBST([jemalloc_version]) |
Jason Evans | a40bc7a | 2010-03-02 13:01:16 -0800 | [diff] [blame] | 592 | AC_SUBST([jemalloc_version_major]) |
| 593 | AC_SUBST([jemalloc_version_minor]) |
| 594 | AC_SUBST([jemalloc_version_bugfix]) |
| 595 | AC_SUBST([jemalloc_version_nrev]) |
| 596 | AC_SUBST([jemalloc_version_gid]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 597 | |
| 598 | dnl ============================================================================ |
| 599 | dnl Configure pthreads. |
| 600 | |
| 601 | AC_CHECK_HEADERS([pthread.h], , [AC_MSG_ERROR([pthread.h is missing])]) |
| 602 | AC_CHECK_LIB([pthread], [pthread_create], [LIBS="$LIBS -lpthread"], |
| 603 | [AC_MSG_ERROR([libpthread is missing])]) |
| 604 | |
| 605 | CPPFLAGS="$CPPFLAGS -D_REENTRANT" |
| 606 | |
Jason Evans | cc00a15 | 2009-06-25 18:06:48 -0700 | [diff] [blame] | 607 | dnl Enable lazy locking by default. |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 608 | AC_ARG_ENABLE([lazy_lock], |
Jason Evans | a162402 | 2009-11-09 14:58:12 -0800 | [diff] [blame] | 609 | [AS_HELP_STRING([--disable-lazy-lock], |
Jason Evans | cc00a15 | 2009-06-25 18:06:48 -0700 | [diff] [blame] | 610 | [Disable lazy locking (always lock, even when single-threaded)])], |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 611 | [if test "x$enable_lazy_lock" = "xno" ; then |
| 612 | enable_lazy_lock="0" |
| 613 | else |
| 614 | enable_lazy_lock="1" |
| 615 | fi |
| 616 | ], |
Jason Evans | cc00a15 | 2009-06-25 18:06:48 -0700 | [diff] [blame] | 617 | [enable_lazy_lock="1"] |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 618 | ) |
| 619 | if test "x$enable_lazy_lock" = "x1" ; then |
| 620 | AC_CHECK_HEADERS([dlfcn.h], , [AC_MSG_ERROR([dlfcn.h is missing])]) |
| 621 | AC_CHECK_LIB([dl], [dlopen], [LIBS="$LIBS -ldl"], |
| 622 | [AC_MSG_ERROR([libdl is missing])]) |
| 623 | AC_DEFINE([JEMALLOC_LAZY_LOCK], [ ]) |
| 624 | fi |
| 625 | AC_SUBST([enable_lazy_lock]) |
| 626 | |
Jason Evans | 78d815c | 2010-01-17 14:06:20 -0800 | [diff] [blame] | 627 | AC_ARG_ENABLE([tls], |
| 628 | [AS_HELP_STRING([--disable-tls], [Disable thread-local storage (__thread keyword)])], |
| 629 | if test "x$enable_tls" = "xno" ; then |
| 630 | enable_tls="0" |
| 631 | else |
| 632 | enable_tls="1" |
| 633 | fi |
| 634 | , |
| 635 | enable_tls="1" |
| 636 | ) |
| 637 | if test "x${enable_tls}" = "x1" ; then |
| 638 | AC_MSG_CHECKING([for TLS]) |
| 639 | AC_RUN_IFELSE([AC_LANG_PROGRAM( |
| 640 | [[ |
| 641 | __thread int x; |
| 642 | ]], [[ |
| 643 | x = 42; |
| 644 | |
| 645 | return 0; |
| 646 | ]])], |
| 647 | AC_MSG_RESULT([yes]), |
| 648 | AC_MSG_RESULT([no]) |
| 649 | enable_tls="0") |
| 650 | fi |
| 651 | if test "x${enable_tls}" = "x0" ; then |
| 652 | AC_DEFINE_UNQUOTED([NO_TLS], [ ]) |
| 653 | fi |
| 654 | |
| 655 | dnl Finish tcache-related definitions, now that TLS configuration is done. |
| 656 | if test "x$enable_tls" = "x0" ; then |
| 657 | enable_tcache="0" |
| 658 | fi |
| 659 | if test "x$enable_tcache" = "x1" ; then |
| 660 | AC_DEFINE([JEMALLOC_TCACHE], [ ]) |
| 661 | fi |
| 662 | AC_SUBST([enable_tcache]) |
| 663 | if test "x$enable_tcache" = "x0" ; then |
| 664 | roff_tcache=".\\\" " |
| 665 | roff_no_tcache="" |
| 666 | else |
| 667 | roff_tcache="" |
| 668 | roff_no_tcache=".\\\" " |
| 669 | fi |
| 670 | AC_SUBST([roff_tcache]) |
| 671 | AC_SUBST([roff_no_tcache]) |
| 672 | |
Jason Evans | 6109fe0 | 2010-02-10 10:37:56 -0800 | [diff] [blame] | 673 | dnl Finish prof-related definitions, now that TLS configuration is done. |
| 674 | if test "x$enable_tls" = "x0" ; then |
| 675 | enable_prof="0" |
| 676 | fi |
| 677 | if test "x$enable_prof" = "x1" ; then |
Jason Evans | b9477e7 | 2010-03-01 20:15:26 -0800 | [diff] [blame] | 678 | LIBS="$LIBS -lm" |
Jason Evans | 6109fe0 | 2010-02-10 10:37:56 -0800 | [diff] [blame] | 679 | AC_DEFINE([JEMALLOC_PROF], [ ]) |
| 680 | if test "x$enable_prof_libunwind" = "x1" ; then |
| 681 | AC_CHECK_HEADERS([libunwind.h], , [enable_prof_libunwind="0"]) |
Jason Evans | cfeccd3 | 2010-03-03 15:48:20 -0800 | [diff] [blame^] | 682 | if test "x$LUNWIND" = "x-lunwind" ; then |
| 683 | AC_CHECK_LIB([unwind], [backtrace], [LIBS="$LIBS $LUNWIND"], |
| 684 | [enable_prof_libunwind="0"]) |
| 685 | else |
| 686 | LIBS="$LIBS $LUNWIND" |
| 687 | fi |
Jason Evans | 6109fe0 | 2010-02-10 10:37:56 -0800 | [diff] [blame] | 688 | if test "x${enable_prof_libunwind}" = "x1" ; then |
| 689 | AC_DEFINE([JEMALLOC_PROF_LIBUNWIND], [ ]) |
| 690 | fi |
| 691 | fi |
| 692 | fi |
| 693 | AC_SUBST([enable_prof]) |
| 694 | if test "x$enable_prof" = "x0" ; then |
| 695 | roff_prof=".\\\" " |
Jason Evans | b01a6c2 | 2010-02-11 10:25:36 -0800 | [diff] [blame] | 696 | roff_no_prof="" |
Jason Evans | 6109fe0 | 2010-02-10 10:37:56 -0800 | [diff] [blame] | 697 | else |
| 698 | roff_prof="" |
Jason Evans | b01a6c2 | 2010-02-11 10:25:36 -0800 | [diff] [blame] | 699 | roff_no_prof=".\\\" " |
Jason Evans | 6109fe0 | 2010-02-10 10:37:56 -0800 | [diff] [blame] | 700 | fi |
| 701 | AC_SUBST([roff_prof]) |
Jason Evans | b01a6c2 | 2010-02-11 10:25:36 -0800 | [diff] [blame] | 702 | AC_SUBST([roff_no_prof]) |
Jason Evans | 6109fe0 | 2010-02-10 10:37:56 -0800 | [diff] [blame] | 703 | |
Jason Evans | b27805b | 2010-02-10 18:15:53 -0800 | [diff] [blame] | 704 | dnl If libunwind isn't enabled, try to use libgcc rather than gcc intrinsics |
| 705 | dnl for backtracing. |
| 706 | if test "x$enable_prof" = "x1" -a "x$enable_prof_libunwind" = "x0" \ |
| 707 | -a "x$GCC" = "xyes" -a "x$enable_prof_libgcc" = "x1" ; then |
| 708 | enable_prof_libgcc="1" |
| 709 | AC_CHECK_HEADERS([unwind.h], , [enable_prof_libgcc="0"]) |
| 710 | AC_CHECK_LIB([gcc], [_Unwind_Backtrace], [LIBS="$LIBS -lgcc"], [enable_prof_libgcc="0"]) |
| 711 | if test "x${enable_prof_libgcc}" = "x1" ; then |
| 712 | AC_DEFINE([JEMALLOC_PROF_LIBGCC], [ ]) |
| 713 | fi |
| 714 | fi |
| 715 | |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 716 | dnl ============================================================================ |
| 717 | dnl Check for typedefs, structures, and compiler characteristics. |
| 718 | AC_HEADER_STDBOOL |
| 719 | |
| 720 | dnl Process .in files. |
Jason Evans | b0fd501 | 2010-01-17 01:49:20 -0800 | [diff] [blame] | 721 | AC_SUBST([cfghdrs_in]) |
| 722 | AC_SUBST([cfghdrs_out]) |
| 723 | AC_CONFIG_HEADERS([$cfghdrs_tup cfghdrs.stamp]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 724 | |
| 725 | dnl ============================================================================ |
| 726 | dnl Generate outputs. |
Jason Evans | b0fd501 | 2010-01-17 01:49:20 -0800 | [diff] [blame] | 727 | AC_CONFIG_FILES([$cfgoutputs_tup cfgoutputs.stamp]) |
| 728 | AC_SUBST([cfgoutputs_in]) |
| 729 | AC_SUBST([cfgoutputs_out]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 730 | AC_OUTPUT |
| 731 | |
| 732 | dnl ============================================================================ |
| 733 | dnl Print out the results of configuration. |
| 734 | AC_MSG_RESULT([===============================================================================]) |
| 735 | AC_MSG_RESULT([jemalloc version : $jemalloc_version]) |
| 736 | AC_MSG_RESULT([]) |
| 737 | AC_MSG_RESULT([CC : ${CC}]) |
| 738 | AC_MSG_RESULT([CPPFLAGS : ${CPPFLAGS}]) |
| 739 | AC_MSG_RESULT([CFLAGS : ${CFLAGS}]) |
| 740 | AC_MSG_RESULT([LDFLAGS : ${LDFLAGS}]) |
| 741 | AC_MSG_RESULT([LIBS : ${LIBS}]) |
| 742 | AC_MSG_RESULT([RPATH_EXTRA : ${RPATH_EXTRA}]) |
| 743 | AC_MSG_RESULT([]) |
| 744 | AC_MSG_RESULT([PREFIX : ${PREFIX}]) |
| 745 | AC_MSG_RESULT([BINDIR : ${BINDIR}]) |
Jason Evans | 662a017 | 2009-07-01 19:24:31 -0700 | [diff] [blame] | 746 | AC_MSG_RESULT([INCLUDEDIR : ${INCLUDEDIR}]) |
| 747 | AC_MSG_RESULT([LIBDIR : ${LIBDIR}]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 748 | AC_MSG_RESULT([DATADIR : ${DATADIR}]) |
| 749 | AC_MSG_RESULT([MANDIR : ${MANDIR}]) |
| 750 | AC_MSG_RESULT([]) |
| 751 | AC_MSG_RESULT([srcroot : ${srcroot}]) |
| 752 | AC_MSG_RESULT([abs_srcroot : ${abs_srcroot}]) |
| 753 | AC_MSG_RESULT([objroot : ${objroot}]) |
| 754 | AC_MSG_RESULT([abs_objroot : ${abs_objroot}]) |
| 755 | AC_MSG_RESULT([]) |
Jason Evans | 90895cf | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 756 | AC_MSG_RESULT([JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}]) |
Jason Evans | b0fd501 | 2010-01-17 01:49:20 -0800 | [diff] [blame] | 757 | AC_MSG_RESULT([install_suffix : ${install_suffix}]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 758 | AC_MSG_RESULT([autogen : ${enable_autogen}]) |
| 759 | AC_MSG_RESULT([debug : ${enable_debug}]) |
| 760 | AC_MSG_RESULT([stats : ${enable_stats}]) |
Jason Evans | 6109fe0 | 2010-02-10 10:37:56 -0800 | [diff] [blame] | 761 | AC_MSG_RESULT([prof : ${enable_prof}]) |
| 762 | AC_MSG_RESULT([prof-libunwind : ${enable_prof_libunwind}]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 763 | AC_MSG_RESULT([tiny : ${enable_tiny}]) |
Jason Evans | 84cbbcb | 2009-12-29 00:09:15 -0800 | [diff] [blame] | 764 | AC_MSG_RESULT([tcache : ${enable_tcache}]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 765 | AC_MSG_RESULT([fill : ${enable_fill}]) |
| 766 | AC_MSG_RESULT([xmalloc : ${enable_xmalloc}]) |
| 767 | AC_MSG_RESULT([sysv : ${enable_sysv}]) |
Jason Evans | 4201af0 | 2010-01-24 02:53:40 -0800 | [diff] [blame] | 768 | AC_MSG_RESULT([swap : ${enable_swap}]) |
Jason Evans | b7924f5 | 2009-06-23 19:01:18 -0700 | [diff] [blame] | 769 | AC_MSG_RESULT([dss : ${enable_dss}]) |
| 770 | AC_MSG_RESULT([dynamic_page_shift : ${enable_dynamic_page_shift}]) |
| 771 | AC_MSG_RESULT([lazy_lock : ${enable_lazy_lock}]) |
| 772 | AC_MSG_RESULT([===============================================================================]) |