1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell [email protected] about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585ac_unique_file="Makefile.in" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622ac_subst_vars='LTLIBOBJS 623LIBOBJS 624cfgoutputs_out 625cfgoutputs_in 626cfghdrs_out 627cfghdrs_in 628enable_zone_allocator 629enable_tls 630enable_lazy_lock 631TESTLIBS 632jemalloc_version_gid 633jemalloc_version_nrev 634jemalloc_version_bugfix 635jemalloc_version_minor 636jemalloc_version_major 637jemalloc_version 638enable_cache_oblivious 639enable_xmalloc 640enable_valgrind 641enable_utrace 642enable_fill 643enable_munmap 644enable_tcache 645enable_prof 646enable_stats 647enable_debug 648je_ 649install_suffix 650private_namespace 651JEMALLOC_CPREFIX 652enable_code_coverage 653AUTOCONF 654LD 655RANLIB 656INSTALL_DATA 657INSTALL_SCRIPT 658INSTALL_PROGRAM 659enable_autogen 660RPATH_EXTRA 661CC_MM 662AROUT 663ARFLAGS 664MKLIB 665LDTARGET 666CTARGET 667PIC_CFLAGS 668SOREV 669EXTRA_LDFLAGS 670DSO_LDFLAGS 671libprefix 672exe 673a 674o 675importlib 676so 677LD_PRELOAD_VAR 678RPATH 679abi 680AR 681host_os 682host_vendor 683host_cpu 684host 685build_os 686build_vendor 687build_cpu 688build 689EGREP 690GREP 691CPP 692OBJEXT 693EXEEXT 694ac_ct_CC 695CPPFLAGS 696LDFLAGS 697CFLAGS 698CC 699XSLROOT 700XSLTPROC 701MANDIR 702DATADIR 703LIBDIR 704INCLUDEDIR 705BINDIR 706PREFIX 707abs_objroot 708objroot 709abs_srcroot 710srcroot 711rev 712CONFIG 713target_alias 714host_alias 715build_alias 716LIBS 717ECHO_T 718ECHO_N 719ECHO_C 720DEFS 721mandir 722localedir 723libdir 724psdir 725pdfdir 726dvidir 727htmldir 728infodir 729docdir 730oldincludedir 731includedir 732localstatedir 733sharedstatedir 734sysconfdir 735datadir 736datarootdir 737libexecdir 738sbindir 739bindir 740program_transform_name 741prefix 742exec_prefix 743PACKAGE_URL 744PACKAGE_BUGREPORT 745PACKAGE_STRING 746PACKAGE_VERSION 747PACKAGE_TARNAME 748PACKAGE_NAME 749PATH_SEPARATOR 750SHELL' 751ac_subst_files='' 752ac_user_opts=' 753enable_option_checking 754with_xslroot 755with_rpath 756enable_autogen 757enable_code_coverage 758with_mangling 759with_jemalloc_prefix 760with_export 761with_private_namespace 762with_install_suffix 763enable_cc_silence 764enable_debug 765enable_ivsalloc 766enable_stats 767enable_prof 768enable_prof_libunwind 769with_static_libunwind 770enable_prof_libgcc 771enable_prof_gcc 772enable_tcache 773enable_munmap 774enable_fill 775enable_utrace 776enable_valgrind 777enable_xmalloc 778enable_cache_oblivious 779with_lg_tiny_min 780with_lg_quantum 781with_lg_page 782with_lg_page_sizes 783with_lg_size_class_group 784enable_lazy_lock 785enable_tls 786enable_zone_allocator 787' 788 ac_precious_vars='build_alias 789host_alias 790target_alias 791CC 792CFLAGS 793LDFLAGS 794LIBS 795CPPFLAGS 796CPP' 797 798 799# Initialize some variables set by options. 800ac_init_help= 801ac_init_version=false 802ac_unrecognized_opts= 803ac_unrecognized_sep= 804# The variables have the same names as the options, with 805# dashes changed to underlines. 806cache_file=/dev/null 807exec_prefix=NONE 808no_create= 809no_recursion= 810prefix=NONE 811program_prefix=NONE 812program_suffix=NONE 813program_transform_name=s,x,x, 814silent= 815site= 816srcdir= 817verbose= 818x_includes=NONE 819x_libraries=NONE 820 821# Installation directory options. 822# These are left unexpanded so users can "make install exec_prefix=/foo" 823# and all the variables that are supposed to be based on exec_prefix 824# by default will actually change. 825# Use braces instead of parens because sh, perl, etc. also accept them. 826# (The list follows the same order as the GNU Coding Standards.) 827bindir='${exec_prefix}/bin' 828sbindir='${exec_prefix}/sbin' 829libexecdir='${exec_prefix}/libexec' 830datarootdir='${prefix}/share' 831datadir='${datarootdir}' 832sysconfdir='${prefix}/etc' 833sharedstatedir='${prefix}/com' 834localstatedir='${prefix}/var' 835includedir='${prefix}/include' 836oldincludedir='/usr/include' 837docdir='${datarootdir}/doc/${PACKAGE}' 838infodir='${datarootdir}/info' 839htmldir='${docdir}' 840dvidir='${docdir}' 841pdfdir='${docdir}' 842psdir='${docdir}' 843libdir='${exec_prefix}/lib' 844localedir='${datarootdir}/locale' 845mandir='${datarootdir}/man' 846 847ac_prev= 848ac_dashdash= 849for ac_option 850do 851 # If the previous option needs an argument, assign it. 852 if test -n "$ac_prev"; then 853 eval $ac_prev=\$ac_option 854 ac_prev= 855 continue 856 fi 857 858 case $ac_option in 859 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 860 *=) ac_optarg= ;; 861 *) ac_optarg=yes ;; 862 esac 863 864 # Accept the important Cygnus configure options, so we can diagnose typos. 865 866 case $ac_dashdash$ac_option in 867 --) 868 ac_dashdash=yes ;; 869 870 -bindir | --bindir | --bindi | --bind | --bin | --bi) 871 ac_prev=bindir ;; 872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 873 bindir=$ac_optarg ;; 874 875 -build | --build | --buil | --bui | --bu) 876 ac_prev=build_alias ;; 877 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 878 build_alias=$ac_optarg ;; 879 880 -cache-file | --cache-file | --cache-fil | --cache-fi \ 881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 882 ac_prev=cache_file ;; 883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 885 cache_file=$ac_optarg ;; 886 887 --config-cache | -C) 888 cache_file=config.cache ;; 889 890 -datadir | --datadir | --datadi | --datad) 891 ac_prev=datadir ;; 892 -datadir=* | --datadir=* | --datadi=* | --datad=*) 893 datadir=$ac_optarg ;; 894 895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 896 | --dataroo | --dataro | --datar) 897 ac_prev=datarootdir ;; 898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 900 datarootdir=$ac_optarg ;; 901 902 -disable-* | --disable-*) 903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 904 # Reject names that are not valid shell variable names. 905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 906 as_fn_error $? "invalid feature name: $ac_useropt" 907 ac_useropt_orig=$ac_useropt 908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 909 case $ac_user_opts in 910 *" 911"enable_$ac_useropt" 912"*) ;; 913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 914 ac_unrecognized_sep=', ';; 915 esac 916 eval enable_$ac_useropt=no ;; 917 918 -docdir | --docdir | --docdi | --doc | --do) 919 ac_prev=docdir ;; 920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 921 docdir=$ac_optarg ;; 922 923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 924 ac_prev=dvidir ;; 925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 926 dvidir=$ac_optarg ;; 927 928 -enable-* | --enable-*) 929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 930 # Reject names that are not valid shell variable names. 931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 932 as_fn_error $? "invalid feature name: $ac_useropt" 933 ac_useropt_orig=$ac_useropt 934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 935 case $ac_user_opts in 936 *" 937"enable_$ac_useropt" 938"*) ;; 939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 940 ac_unrecognized_sep=', ';; 941 esac 942 eval enable_$ac_useropt=\$ac_optarg ;; 943 944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 946 | --exec | --exe | --ex) 947 ac_prev=exec_prefix ;; 948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 950 | --exec=* | --exe=* | --ex=*) 951 exec_prefix=$ac_optarg ;; 952 953 -gas | --gas | --ga | --g) 954 # Obsolete; use --with-gas. 955 with_gas=yes ;; 956 957 -help | --help | --hel | --he | -h) 958 ac_init_help=long ;; 959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 960 ac_init_help=recursive ;; 961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 962 ac_init_help=short ;; 963 964 -host | --host | --hos | --ho) 965 ac_prev=host_alias ;; 966 -host=* | --host=* | --hos=* | --ho=*) 967 host_alias=$ac_optarg ;; 968 969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 970 ac_prev=htmldir ;; 971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 972 | --ht=*) 973 htmldir=$ac_optarg ;; 974 975 -includedir | --includedir | --includedi | --included | --include \ 976 | --includ | --inclu | --incl | --inc) 977 ac_prev=includedir ;; 978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 979 | --includ=* | --inclu=* | --incl=* | --inc=*) 980 includedir=$ac_optarg ;; 981 982 -infodir | --infodir | --infodi | --infod | --info | --inf) 983 ac_prev=infodir ;; 984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 985 infodir=$ac_optarg ;; 986 987 -libdir | --libdir | --libdi | --libd) 988 ac_prev=libdir ;; 989 -libdir=* | --libdir=* | --libdi=* | --libd=*) 990 libdir=$ac_optarg ;; 991 992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 993 | --libexe | --libex | --libe) 994 ac_prev=libexecdir ;; 995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 996 | --libexe=* | --libex=* | --libe=*) 997 libexecdir=$ac_optarg ;; 998 999 -localedir | --localedir | --localedi | --localed | --locale) 1000 ac_prev=localedir ;; 1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1002 localedir=$ac_optarg ;; 1003 1004 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1005 | --localstate | --localstat | --localsta | --localst | --locals) 1006 ac_prev=localstatedir ;; 1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1009 localstatedir=$ac_optarg ;; 1010 1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1012 ac_prev=mandir ;; 1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1014 mandir=$ac_optarg ;; 1015 1016 -nfp | --nfp | --nf) 1017 # Obsolete; use --without-fp. 1018 with_fp=no ;; 1019 1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1021 | --no-cr | --no-c | -n) 1022 no_create=yes ;; 1023 1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1026 no_recursion=yes ;; 1027 1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1030 | --oldin | --oldi | --old | --ol | --o) 1031 ac_prev=oldincludedir ;; 1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1035 oldincludedir=$ac_optarg ;; 1036 1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1038 ac_prev=prefix ;; 1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1040 prefix=$ac_optarg ;; 1041 1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1043 | --program-pre | --program-pr | --program-p) 1044 ac_prev=program_prefix ;; 1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1047 program_prefix=$ac_optarg ;; 1048 1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1050 | --program-suf | --program-su | --program-s) 1051 ac_prev=program_suffix ;; 1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1054 program_suffix=$ac_optarg ;; 1055 1056 -program-transform-name | --program-transform-name \ 1057 | --program-transform-nam | --program-transform-na \ 1058 | --program-transform-n | --program-transform- \ 1059 | --program-transform | --program-transfor \ 1060 | --program-transfo | --program-transf \ 1061 | --program-trans | --program-tran \ 1062 | --progr-tra | --program-tr | --program-t) 1063 ac_prev=program_transform_name ;; 1064 -program-transform-name=* | --program-transform-name=* \ 1065 | --program-transform-nam=* | --program-transform-na=* \ 1066 | --program-transform-n=* | --program-transform-=* \ 1067 | --program-transform=* | --program-transfor=* \ 1068 | --program-transfo=* | --program-transf=* \ 1069 | --program-trans=* | --program-tran=* \ 1070 | --progr-tra=* | --program-tr=* | --program-t=*) 1071 program_transform_name=$ac_optarg ;; 1072 1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1074 ac_prev=pdfdir ;; 1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1076 pdfdir=$ac_optarg ;; 1077 1078 -psdir | --psdir | --psdi | --psd | --ps) 1079 ac_prev=psdir ;; 1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1081 psdir=$ac_optarg ;; 1082 1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1084 | -silent | --silent | --silen | --sile | --sil) 1085 silent=yes ;; 1086 1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1088 ac_prev=sbindir ;; 1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1090 | --sbi=* | --sb=*) 1091 sbindir=$ac_optarg ;; 1092 1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1095 | --sharedst | --shareds | --shared | --share | --shar \ 1096 | --sha | --sh) 1097 ac_prev=sharedstatedir ;; 1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1101 | --sha=* | --sh=*) 1102 sharedstatedir=$ac_optarg ;; 1103 1104 -site | --site | --sit) 1105 ac_prev=site ;; 1106 -site=* | --site=* | --sit=*) 1107 site=$ac_optarg ;; 1108 1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1110 ac_prev=srcdir ;; 1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1112 srcdir=$ac_optarg ;; 1113 1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1115 | --syscon | --sysco | --sysc | --sys | --sy) 1116 ac_prev=sysconfdir ;; 1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1119 sysconfdir=$ac_optarg ;; 1120 1121 -target | --target | --targe | --targ | --tar | --ta | --t) 1122 ac_prev=target_alias ;; 1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1124 target_alias=$ac_optarg ;; 1125 1126 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1127 verbose=yes ;; 1128 1129 -version | --version | --versio | --versi | --vers | -V) 1130 ac_init_version=: ;; 1131 1132 -with-* | --with-*) 1133 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1134 # Reject names that are not valid shell variable names. 1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1136 as_fn_error $? "invalid package name: $ac_useropt" 1137 ac_useropt_orig=$ac_useropt 1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1139 case $ac_user_opts in 1140 *" 1141"with_$ac_useropt" 1142"*) ;; 1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1144 ac_unrecognized_sep=', ';; 1145 esac 1146 eval with_$ac_useropt=\$ac_optarg ;; 1147 1148 -without-* | --without-*) 1149 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1150 # Reject names that are not valid shell variable names. 1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1152 as_fn_error $? "invalid package name: $ac_useropt" 1153 ac_useropt_orig=$ac_useropt 1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1155 case $ac_user_opts in 1156 *" 1157"with_$ac_useropt" 1158"*) ;; 1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1160 ac_unrecognized_sep=', ';; 1161 esac 1162 eval with_$ac_useropt=no ;; 1163 1164 --x) 1165 # Obsolete; use --with-x. 1166 with_x=yes ;; 1167 1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1169 | --x-incl | --x-inc | --x-in | --x-i) 1170 ac_prev=x_includes ;; 1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1173 x_includes=$ac_optarg ;; 1174 1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1177 ac_prev=x_libraries ;; 1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1180 x_libraries=$ac_optarg ;; 1181 1182 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1183Try \`$0 --help' for more information" 1184 ;; 1185 1186 *=*) 1187 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1188 # Reject names that are not valid shell variable names. 1189 case $ac_envvar in #( 1190 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1191 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1192 esac 1193 eval $ac_envvar=\$ac_optarg 1194 export $ac_envvar ;; 1195 1196 *) 1197 # FIXME: should be removed in autoconf 3.0. 1198 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1200 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1201 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1202 ;; 1203 1204 esac 1205done 1206 1207if test -n "$ac_prev"; then 1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1209 as_fn_error $? "missing argument to $ac_option" 1210fi 1211 1212if test -n "$ac_unrecognized_opts"; then 1213 case $enable_option_checking in 1214 no) ;; 1215 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1216 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1217 esac 1218fi 1219 1220# Check all directory arguments for consistency. 1221for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1222 datadir sysconfdir sharedstatedir localstatedir includedir \ 1223 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1224 libdir localedir mandir 1225do 1226 eval ac_val=\$$ac_var 1227 # Remove trailing slashes. 1228 case $ac_val in 1229 */ ) 1230 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1231 eval $ac_var=\$ac_val;; 1232 esac 1233 # Be sure to have absolute directory names. 1234 case $ac_val in 1235 [\\/$]* | ?:[\\/]* ) continue;; 1236 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1237 esac 1238 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1239done 1240 1241# There might be people who depend on the old broken behavior: `$host' 1242# used to hold the argument of --host etc. 1243# FIXME: To remove some day. 1244build=$build_alias 1245host=$host_alias 1246target=$target_alias 1247 1248# FIXME: To remove some day. 1249if test "x$host_alias" != x; then 1250 if test "x$build_alias" = x; then 1251 cross_compiling=maybe 1252 elif test "x$build_alias" != "x$host_alias"; then 1253 cross_compiling=yes 1254 fi 1255fi 1256 1257ac_tool_prefix= 1258test -n "$host_alias" && ac_tool_prefix=$host_alias- 1259 1260test "$silent" = yes && exec 6>/dev/null 1261 1262 1263ac_pwd=`pwd` && test -n "$ac_pwd" && 1264ac_ls_di=`ls -di .` && 1265ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1266 as_fn_error $? "working directory cannot be determined" 1267test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1268 as_fn_error $? "pwd does not report name of working directory" 1269 1270 1271# Find the source files, if location was not specified. 1272if test -z "$srcdir"; then 1273 ac_srcdir_defaulted=yes 1274 # Try the directory containing this script, then the parent directory. 1275 ac_confdir=`$as_dirname -- "$as_myself" || 1276$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1277 X"$as_myself" : 'X\(//\)[^/]' \| \ 1278 X"$as_myself" : 'X\(//\)$' \| \ 1279 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1280$as_echo X"$as_myself" | 1281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1282 s//\1/ 1283 q 1284 } 1285 /^X\(\/\/\)[^/].*/{ 1286 s//\1/ 1287 q 1288 } 1289 /^X\(\/\/\)$/{ 1290 s//\1/ 1291 q 1292 } 1293 /^X\(\/\).*/{ 1294 s//\1/ 1295 q 1296 } 1297 s/.*/./; q'` 1298 srcdir=$ac_confdir 1299 if test ! -r "$srcdir/$ac_unique_file"; then 1300 srcdir=.. 1301 fi 1302else 1303 ac_srcdir_defaulted=no 1304fi 1305if test ! -r "$srcdir/$ac_unique_file"; then 1306 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1307 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1308fi 1309ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1310ac_abs_confdir=`( 1311 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1312 pwd)` 1313# When building in place, set srcdir=. 1314if test "$ac_abs_confdir" = "$ac_pwd"; then 1315 srcdir=. 1316fi 1317# Remove unnecessary trailing slashes from srcdir. 1318# Double slashes in file names in object file debugging info 1319# mess up M-x gdb in Emacs. 1320case $srcdir in 1321*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1322esac 1323for ac_var in $ac_precious_vars; do 1324 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1325 eval ac_env_${ac_var}_value=\$${ac_var} 1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1327 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1328done 1329 1330# 1331# Report the --help message. 1332# 1333if test "$ac_init_help" = "long"; then 1334 # Omit some internal or obsolete options to make the list less imposing. 1335 # This message is too long to be a string in the A/UX 3.1 sh. 1336 cat <<_ACEOF 1337\`configure' configures this package to adapt to many kinds of systems. 1338 1339Usage: $0 [OPTION]... [VAR=VALUE]... 1340 1341To assign environment variables (e.g., CC, CFLAGS...), specify them as 1342VAR=VALUE. See below for descriptions of some of the useful variables. 1343 1344Defaults for the options are specified in brackets. 1345 1346Configuration: 1347 -h, --help display this help and exit 1348 --help=short display options specific to this package 1349 --help=recursive display the short help of all the included packages 1350 -V, --version display version information and exit 1351 -q, --quiet, --silent do not print \`checking ...' messages 1352 --cache-file=FILE cache test results in FILE [disabled] 1353 -C, --config-cache alias for \`--cache-file=config.cache' 1354 -n, --no-create do not create output files 1355 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1356 1357Installation directories: 1358 --prefix=PREFIX install architecture-independent files in PREFIX 1359 [$ac_default_prefix] 1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1361 [PREFIX] 1362 1363By default, \`make install' will install all the files in 1364\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1365an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1366for instance \`--prefix=\$HOME'. 1367 1368For better control, use the options below. 1369 1370Fine tuning of the installation directories: 1371 --bindir=DIR user executables [EPREFIX/bin] 1372 --sbindir=DIR system admin executables [EPREFIX/sbin] 1373 --libexecdir=DIR program executables [EPREFIX/libexec] 1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1377 --libdir=DIR object code libraries [EPREFIX/lib] 1378 --includedir=DIR C header files [PREFIX/include] 1379 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1382 --infodir=DIR info documentation [DATAROOTDIR/info] 1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1384 --mandir=DIR man documentation [DATAROOTDIR/man] 1385 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1386 --htmldir=DIR html documentation [DOCDIR] 1387 --dvidir=DIR dvi documentation [DOCDIR] 1388 --pdfdir=DIR pdf documentation [DOCDIR] 1389 --psdir=DIR ps documentation [DOCDIR] 1390_ACEOF 1391 1392 cat <<\_ACEOF 1393 1394System types: 1395 --build=BUILD configure for building on BUILD [guessed] 1396 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1397_ACEOF 1398fi 1399 1400if test -n "$ac_init_help"; then 1401 1402 cat <<\_ACEOF 1403 1404Optional Features: 1405 --disable-option-checking ignore unrecognized --enable/--with options 1406 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1407 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1408 --enable-autogen Automatically regenerate configure output 1409 --enable-code-coverage Enable code coverage 1410 --disable-cc-silence Do not silence irrelevant compiler warnings 1411 --enable-debug Build debugging code (implies --enable-ivsalloc) 1412 --enable-ivsalloc Validate pointers passed through the public API 1413 --disable-stats Disable statistics calculation/reporting 1414 --enable-prof Enable allocation profiling 1415 --enable-prof-libunwind Use libunwind for backtracing 1416 --disable-prof-libgcc Do not use libgcc for backtracing 1417 --disable-prof-gcc Do not use gcc intrinsics for backtracing 1418 --disable-tcache Disable per thread caches 1419 --disable-munmap Disable VM deallocation via munmap(2) 1420 --disable-fill Disable support for junk/zero filling, quarantine, 1421 and redzones 1422 --enable-utrace Enable utrace(2)-based tracing 1423 --disable-valgrind Disable support for Valgrind 1424 --enable-xmalloc Support xmalloc option 1425 --disable-cache-oblivious 1426 Disable support for cache-oblivious allocation 1427 alignment 1428 --enable-lazy-lock Enable lazy locking (only lock when multi-threaded) 1429 --disable-tls Disable thread-local storage (__thread keyword) 1430 --disable-zone-allocator 1431 Disable zone allocator for Darwin 1432 1433Optional Packages: 1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1436 --with-xslroot=<path> XSL stylesheet root path 1437 --with-rpath=<rpath> Colon-separated rpath (ELF systems only) 1438 --with-mangling=<map> Mangle symbols in <map> 1439 --with-jemalloc-prefix=<prefix> 1440 Prefix to prepend to all public APIs 1441 --without-export disable exporting jemalloc public APIs 1442 --with-private-namespace=<prefix> 1443 Prefix to prepend to all library-private APIs 1444 --with-install-suffix=<suffix> 1445 Suffix to append to all installed files 1446 --with-static-libunwind=<libunwind.a> 1447 Path to static libunwind library; use rather than 1448 dynamically linking 1449 --with-lg-tiny-min=<lg-tiny-min> 1450 Base 2 log of minimum tiny size class to support 1451 --with-lg-quantum=<lg-quantum> 1452 Base 2 log of minimum allocation alignment 1453 --with-lg-page=<lg-page> 1454 Base 2 log of system page size 1455 --with-lg-page-sizes=<lg-page-sizes> 1456 Base 2 logs of system page sizes to support 1457 --with-lg-size-class-group=<lg-size-class-group> 1458 Base 2 log of size classes per doubling 1459 1460Some influential environment variables: 1461 CC C compiler command 1462 CFLAGS C compiler flags 1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1464 nonstandard directory <lib dir> 1465 LIBS libraries to pass to the linker, e.g. -l<library> 1466 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1467 you have headers in a nonstandard directory <include dir> 1468 CPP C preprocessor 1469 1470Use these variables to override the choices made by `configure' or to help 1471it to find libraries and programs with nonstandard names/locations. 1472 1473Report bugs to the package provider. 1474_ACEOF 1475ac_status=$? 1476fi 1477 1478if test "$ac_init_help" = "recursive"; then 1479 # If there are subdirs, report their specific --help. 1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1481 test -d "$ac_dir" || 1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1483 continue 1484 ac_builddir=. 1485 1486case "$ac_dir" in 1487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1488*) 1489 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1490 # A ".." for each directory in $ac_dir_suffix. 1491 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1492 case $ac_top_builddir_sub in 1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1495 esac ;; 1496esac 1497ac_abs_top_builddir=$ac_pwd 1498ac_abs_builddir=$ac_pwd$ac_dir_suffix 1499# for backward compatibility: 1500ac_top_builddir=$ac_top_build_prefix 1501 1502case $srcdir in 1503 .) # We are building in place. 1504 ac_srcdir=. 1505 ac_top_srcdir=$ac_top_builddir_sub 1506 ac_abs_top_srcdir=$ac_pwd ;; 1507 [\\/]* | ?:[\\/]* ) # Absolute name. 1508 ac_srcdir=$srcdir$ac_dir_suffix; 1509 ac_top_srcdir=$srcdir 1510 ac_abs_top_srcdir=$srcdir ;; 1511 *) # Relative name. 1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1513 ac_top_srcdir=$ac_top_build_prefix$srcdir 1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1515esac 1516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1517 1518 cd "$ac_dir" || { ac_status=$?; continue; } 1519 # Check for guested configure. 1520 if test -f "$ac_srcdir/configure.gnu"; then 1521 echo && 1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1523 elif test -f "$ac_srcdir/configure"; then 1524 echo && 1525 $SHELL "$ac_srcdir/configure" --help=recursive 1526 else 1527 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1528 fi || ac_status=$? 1529 cd "$ac_pwd" || { ac_status=$?; break; } 1530 done 1531fi 1532 1533test -n "$ac_init_help" && exit $ac_status 1534if $ac_init_version; then 1535 cat <<\_ACEOF 1536configure 1537generated by GNU Autoconf 2.69 1538 1539Copyright (C) 2012 Free Software Foundation, Inc. 1540This configure script is free software; the Free Software Foundation 1541gives unlimited permission to copy, distribute and modify it. 1542_ACEOF 1543 exit 1544fi 1545 1546## ------------------------ ## 1547## Autoconf initialization. ## 1548## ------------------------ ## 1549 1550# ac_fn_c_try_compile LINENO 1551# -------------------------- 1552# Try to compile conftest.$ac_ext, and return whether this succeeded. 1553ac_fn_c_try_compile () 1554{ 1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1556 rm -f conftest.$ac_objext 1557 if { { ac_try="$ac_compile" 1558case "(($ac_try" in 1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1560 *) ac_try_echo=$ac_try;; 1561esac 1562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1563$as_echo "$ac_try_echo"; } >&5 1564 (eval "$ac_compile") 2>conftest.err 1565 ac_status=$? 1566 if test -s conftest.err; then 1567 grep -v '^ *+' conftest.err >conftest.er1 1568 cat conftest.er1 >&5 1569 mv -f conftest.er1 conftest.err 1570 fi 1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1572 test $ac_status = 0; } && { 1573 test -z "$ac_c_werror_flag" || 1574 test ! -s conftest.err 1575 } && test -s conftest.$ac_objext; then : 1576 ac_retval=0 1577else 1578 $as_echo "$as_me: failed program was:" >&5 1579sed 's/^/| /' conftest.$ac_ext >&5 1580 1581 ac_retval=1 1582fi 1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1584 as_fn_set_status $ac_retval 1585 1586} # ac_fn_c_try_compile 1587 1588# ac_fn_c_try_cpp LINENO 1589# ---------------------- 1590# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1591ac_fn_c_try_cpp () 1592{ 1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1594 if { { ac_try="$ac_cpp conftest.$ac_ext" 1595case "(($ac_try" in 1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1597 *) ac_try_echo=$ac_try;; 1598esac 1599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1600$as_echo "$ac_try_echo"; } >&5 1601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1602 ac_status=$? 1603 if test -s conftest.err; then 1604 grep -v '^ *+' conftest.err >conftest.er1 1605 cat conftest.er1 >&5 1606 mv -f conftest.er1 conftest.err 1607 fi 1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1609 test $ac_status = 0; } > conftest.i && { 1610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1611 test ! -s conftest.err 1612 }; then : 1613 ac_retval=0 1614else 1615 $as_echo "$as_me: failed program was:" >&5 1616sed 's/^/| /' conftest.$ac_ext >&5 1617 1618 ac_retval=1 1619fi 1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1621 as_fn_set_status $ac_retval 1622 1623} # ac_fn_c_try_cpp 1624 1625# ac_fn_c_try_run LINENO 1626# ---------------------- 1627# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1628# that executables *can* be run. 1629ac_fn_c_try_run () 1630{ 1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1632 if { { ac_try="$ac_link" 1633case "(($ac_try" in 1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1635 *) ac_try_echo=$ac_try;; 1636esac 1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1638$as_echo "$ac_try_echo"; } >&5 1639 (eval "$ac_link") 2>&5 1640 ac_status=$? 1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1642 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1643 { { case "(($ac_try" in 1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1645 *) ac_try_echo=$ac_try;; 1646esac 1647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1648$as_echo "$ac_try_echo"; } >&5 1649 (eval "$ac_try") 2>&5 1650 ac_status=$? 1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1652 test $ac_status = 0; }; }; then : 1653 ac_retval=0 1654else 1655 $as_echo "$as_me: program exited with status $ac_status" >&5 1656 $as_echo "$as_me: failed program was:" >&5 1657sed 's/^/| /' conftest.$ac_ext >&5 1658 1659 ac_retval=$ac_status 1660fi 1661 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1663 as_fn_set_status $ac_retval 1664 1665} # ac_fn_c_try_run 1666 1667# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1668# ------------------------------------------------------- 1669# Tests whether HEADER exists and can be compiled using the include files in 1670# INCLUDES, setting the cache variable VAR accordingly. 1671ac_fn_c_check_header_compile () 1672{ 1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1675$as_echo_n "checking for $2... " >&6; } 1676if eval \${$3+:} false; then : 1677 $as_echo_n "(cached) " >&6 1678else 1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1680/* end confdefs.h. */ 1681$4 1682#include <$2> 1683_ACEOF 1684if ac_fn_c_try_compile "$LINENO"; then : 1685 eval "$3=yes" 1686else 1687 eval "$3=no" 1688fi 1689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1690fi 1691eval ac_res=\$$3 1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1693$as_echo "$ac_res" >&6; } 1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1695 1696} # ac_fn_c_check_header_compile 1697 1698# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1699# -------------------------------------------- 1700# Tries to find the compile-time value of EXPR in a program that includes 1701# INCLUDES, setting VAR accordingly. Returns whether the value could be 1702# computed 1703ac_fn_c_compute_int () 1704{ 1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1706 if test "$cross_compiling" = yes; then 1707 # Depending upon the size, compute the lo and hi bounds. 1708cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1709/* end confdefs.h. */ 1710$4 1711int 1712main () 1713{ 1714static int test_array [1 - 2 * !(($2) >= 0)]; 1715test_array [0] = 0; 1716return test_array [0]; 1717 1718 ; 1719 return 0; 1720} 1721_ACEOF 1722if ac_fn_c_try_compile "$LINENO"; then : 1723 ac_lo=0 ac_mid=0 1724 while :; do 1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1726/* end confdefs.h. */ 1727$4 1728int 1729main () 1730{ 1731static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1732test_array [0] = 0; 1733return test_array [0]; 1734 1735 ; 1736 return 0; 1737} 1738_ACEOF 1739if ac_fn_c_try_compile "$LINENO"; then : 1740 ac_hi=$ac_mid; break 1741else 1742 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1743 if test $ac_lo -le $ac_mid; then 1744 ac_lo= ac_hi= 1745 break 1746 fi 1747 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1748fi 1749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1750 done 1751else 1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1753/* end confdefs.h. */ 1754$4 1755int 1756main () 1757{ 1758static int test_array [1 - 2 * !(($2) < 0)]; 1759test_array [0] = 0; 1760return test_array [0]; 1761 1762 ; 1763 return 0; 1764} 1765_ACEOF 1766if ac_fn_c_try_compile "$LINENO"; then : 1767 ac_hi=-1 ac_mid=-1 1768 while :; do 1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1770/* end confdefs.h. */ 1771$4 1772int 1773main () 1774{ 1775static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1776test_array [0] = 0; 1777return test_array [0]; 1778 1779 ; 1780 return 0; 1781} 1782_ACEOF 1783if ac_fn_c_try_compile "$LINENO"; then : 1784 ac_lo=$ac_mid; break 1785else 1786 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1787 if test $ac_mid -le $ac_hi; then 1788 ac_lo= ac_hi= 1789 break 1790 fi 1791 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1792fi 1793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1794 done 1795else 1796 ac_lo= ac_hi= 1797fi 1798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1799fi 1800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1801# Binary search between lo and hi bounds. 1802while test "x$ac_lo" != "x$ac_hi"; do 1803 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1805/* end confdefs.h. */ 1806$4 1807int 1808main () 1809{ 1810static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1811test_array [0] = 0; 1812return test_array [0]; 1813 1814 ; 1815 return 0; 1816} 1817_ACEOF 1818if ac_fn_c_try_compile "$LINENO"; then : 1819 ac_hi=$ac_mid 1820else 1821 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1822fi 1823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1824done 1825case $ac_lo in #(( 1826?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1827'') ac_retval=1 ;; 1828esac 1829 else 1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1831/* end confdefs.h. */ 1832$4 1833static long int longval () { return $2; } 1834static unsigned long int ulongval () { return $2; } 1835#include <stdio.h> 1836#include <stdlib.h> 1837int 1838main () 1839{ 1840 1841 FILE *f = fopen ("conftest.val", "w"); 1842 if (! f) 1843 return 1; 1844 if (($2) < 0) 1845 { 1846 long int i = longval (); 1847 if (i != ($2)) 1848 return 1; 1849 fprintf (f, "%ld", i); 1850 } 1851 else 1852 { 1853 unsigned long int i = ulongval (); 1854 if (i != ($2)) 1855 return 1; 1856 fprintf (f, "%lu", i); 1857 } 1858 /* Do not output a trailing newline, as this causes \r\n confusion 1859 on some platforms. */ 1860 return ferror (f) || fclose (f) != 0; 1861 1862 ; 1863 return 0; 1864} 1865_ACEOF 1866if ac_fn_c_try_run "$LINENO"; then : 1867 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1868else 1869 ac_retval=1 1870fi 1871rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1872 conftest.$ac_objext conftest.beam conftest.$ac_ext 1873rm -f conftest.val 1874 1875 fi 1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1877 as_fn_set_status $ac_retval 1878 1879} # ac_fn_c_compute_int 1880 1881# ac_fn_c_try_link LINENO 1882# ----------------------- 1883# Try to link conftest.$ac_ext, and return whether this succeeded. 1884ac_fn_c_try_link () 1885{ 1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1887 rm -f conftest.$ac_objext conftest$ac_exeext 1888 if { { ac_try="$ac_link" 1889case "(($ac_try" in 1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1891 *) ac_try_echo=$ac_try;; 1892esac 1893eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1894$as_echo "$ac_try_echo"; } >&5 1895 (eval "$ac_link") 2>conftest.err 1896 ac_status=$? 1897 if test -s conftest.err; then 1898 grep -v '^ *+' conftest.err >conftest.er1 1899 cat conftest.er1 >&5 1900 mv -f conftest.er1 conftest.err 1901 fi 1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1903 test $ac_status = 0; } && { 1904 test -z "$ac_c_werror_flag" || 1905 test ! -s conftest.err 1906 } && test -s conftest$ac_exeext && { 1907 test "$cross_compiling" = yes || 1908 test -x conftest$ac_exeext 1909 }; then : 1910 ac_retval=0 1911else 1912 $as_echo "$as_me: failed program was:" >&5 1913sed 's/^/| /' conftest.$ac_ext >&5 1914 1915 ac_retval=1 1916fi 1917 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1918 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1919 # interfere with the next link command; also delete a directory that is 1920 # left behind by Apple's compiler. We do this before executing the actions. 1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1923 as_fn_set_status $ac_retval 1924 1925} # ac_fn_c_try_link 1926 1927# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1928# ------------------------------------------------------- 1929# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1930# the include files in INCLUDES and setting the cache variable VAR 1931# accordingly. 1932ac_fn_c_check_header_mongrel () 1933{ 1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1935 if eval \${$3+:} false; then : 1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1937$as_echo_n "checking for $2... " >&6; } 1938if eval \${$3+:} false; then : 1939 $as_echo_n "(cached) " >&6 1940fi 1941eval ac_res=\$$3 1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1943$as_echo "$ac_res" >&6; } 1944else 1945 # Is the header compilable? 1946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1947$as_echo_n "checking $2 usability... " >&6; } 1948cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1949/* end confdefs.h. */ 1950$4 1951#include <$2> 1952_ACEOF 1953if ac_fn_c_try_compile "$LINENO"; then : 1954 ac_header_compiler=yes 1955else 1956 ac_header_compiler=no 1957fi 1958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1960$as_echo "$ac_header_compiler" >&6; } 1961 1962# Is the header present? 1963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1964$as_echo_n "checking $2 presence... " >&6; } 1965cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1966/* end confdefs.h. */ 1967#include <$2> 1968_ACEOF 1969if ac_fn_c_try_cpp "$LINENO"; then : 1970 ac_header_preproc=yes 1971else 1972 ac_header_preproc=no 1973fi 1974rm -f conftest.err conftest.i conftest.$ac_ext 1975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1976$as_echo "$ac_header_preproc" >&6; } 1977 1978# So? What about this header? 1979case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1980 yes:no: ) 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1982$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1984$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1985 ;; 1986 no:yes:* ) 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1988$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1990$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1992$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1994$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1996$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1997 ;; 1998esac 1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2000$as_echo_n "checking for $2... " >&6; } 2001if eval \${$3+:} false; then : 2002 $as_echo_n "(cached) " >&6 2003else 2004 eval "$3=\$ac_header_compiler" 2005fi 2006eval ac_res=\$$3 2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2008$as_echo "$ac_res" >&6; } 2009fi 2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2011 2012} # ac_fn_c_check_header_mongrel 2013 2014# ac_fn_c_check_func LINENO FUNC VAR 2015# ---------------------------------- 2016# Tests whether FUNC exists, setting the cache variable VAR accordingly 2017ac_fn_c_check_func () 2018{ 2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2021$as_echo_n "checking for $2... " >&6; } 2022if eval \${$3+:} false; then : 2023 $as_echo_n "(cached) " >&6 2024else 2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2026/* end confdefs.h. */ 2027/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2028 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2029#define $2 innocuous_$2 2030 2031/* System header to define __stub macros and hopefully few prototypes, 2032 which can conflict with char $2 (); below. 2033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2034 <limits.h> exists even on freestanding compilers. */ 2035 2036#ifdef __STDC__ 2037# include <limits.h> 2038#else 2039# include <assert.h> 2040#endif 2041 2042#undef $2 2043 2044/* Override any GCC internal prototype to avoid an error. 2045 Use char because int might match the return type of a GCC 2046 builtin and then its argument prototype would still apply. */ 2047#ifdef __cplusplus 2048extern "C" 2049#endif 2050char $2 (); 2051/* The GNU C library defines this for functions which it implements 2052 to always fail with ENOSYS. Some functions are actually named 2053 something starting with __ and the normal name is an alias. */ 2054#if defined __stub_$2 || defined __stub___$2 2055choke me 2056#endif 2057 2058int 2059main () 2060{ 2061return $2 (); 2062 ; 2063 return 0; 2064} 2065_ACEOF 2066if ac_fn_c_try_link "$LINENO"; then : 2067 eval "$3=yes" 2068else 2069 eval "$3=no" 2070fi 2071rm -f core conftest.err conftest.$ac_objext \ 2072 conftest$ac_exeext conftest.$ac_ext 2073fi 2074eval ac_res=\$$3 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2076$as_echo "$ac_res" >&6; } 2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2078 2079} # ac_fn_c_check_func 2080 2081# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2082# ------------------------------------------- 2083# Tests whether TYPE exists after having included INCLUDES, setting cache 2084# variable VAR accordingly. 2085ac_fn_c_check_type () 2086{ 2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2089$as_echo_n "checking for $2... " >&6; } 2090if eval \${$3+:} false; then : 2091 $as_echo_n "(cached) " >&6 2092else 2093 eval "$3=no" 2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2095/* end confdefs.h. */ 2096$4 2097int 2098main () 2099{ 2100if (sizeof ($2)) 2101 return 0; 2102 ; 2103 return 0; 2104} 2105_ACEOF 2106if ac_fn_c_try_compile "$LINENO"; then : 2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2108/* end confdefs.h. */ 2109$4 2110int 2111main () 2112{ 2113if (sizeof (($2))) 2114 return 0; 2115 ; 2116 return 0; 2117} 2118_ACEOF 2119if ac_fn_c_try_compile "$LINENO"; then : 2120 2121else 2122 eval "$3=yes" 2123fi 2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2125fi 2126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2127fi 2128eval ac_res=\$$3 2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2130$as_echo "$ac_res" >&6; } 2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2132 2133} # ac_fn_c_check_type 2134cat >config.log <<_ACEOF 2135This file contains any messages produced by compilers while 2136running configure, to aid debugging if configure makes a mistake. 2137 2138It was created by $as_me, which was 2139generated by GNU Autoconf 2.69. Invocation command line was 2140 2141 $ $0 $@ 2142 2143_ACEOF 2144exec 5>>config.log 2145{ 2146cat <<_ASUNAME 2147## --------- ## 2148## Platform. ## 2149## --------- ## 2150 2151hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2152uname -m = `(uname -m) 2>/dev/null || echo unknown` 2153uname -r = `(uname -r) 2>/dev/null || echo unknown` 2154uname -s = `(uname -s) 2>/dev/null || echo unknown` 2155uname -v = `(uname -v) 2>/dev/null || echo unknown` 2156 2157/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2158/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2159 2160/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2161/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2162/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2163/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2164/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2165/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2166/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2167 2168_ASUNAME 2169 2170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2171for as_dir in $PATH 2172do 2173 IFS=$as_save_IFS 2174 test -z "$as_dir" && as_dir=. 2175 $as_echo "PATH: $as_dir" 2176 done 2177IFS=$as_save_IFS 2178 2179} >&5 2180 2181cat >&5 <<_ACEOF 2182 2183 2184## ----------- ## 2185## Core tests. ## 2186## ----------- ## 2187 2188_ACEOF 2189 2190 2191# Keep a trace of the command line. 2192# Strip out --no-create and --no-recursion so they do not pile up. 2193# Strip out --silent because we don't want to record it for future runs. 2194# Also quote any args containing shell meta-characters. 2195# Make two passes to allow for proper duplicate-argument suppression. 2196ac_configure_args= 2197ac_configure_args0= 2198ac_configure_args1= 2199ac_must_keep_next=false 2200for ac_pass in 1 2 2201do 2202 for ac_arg 2203 do 2204 case $ac_arg in 2205 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2207 | -silent | --silent | --silen | --sile | --sil) 2208 continue ;; 2209 *\'*) 2210 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2211 esac 2212 case $ac_pass in 2213 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2214 2) 2215 as_fn_append ac_configure_args1 " '$ac_arg'" 2216 if test $ac_must_keep_next = true; then 2217 ac_must_keep_next=false # Got value, back to normal. 2218 else 2219 case $ac_arg in 2220 *=* | --config-cache | -C | -disable-* | --disable-* \ 2221 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2222 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2223 | -with-* | --with-* | -without-* | --without-* | --x) 2224 case "$ac_configure_args0 " in 2225 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2226 esac 2227 ;; 2228 -* ) ac_must_keep_next=true ;; 2229 esac 2230 fi 2231 as_fn_append ac_configure_args " '$ac_arg'" 2232 ;; 2233 esac 2234 done 2235done 2236{ ac_configure_args0=; unset ac_configure_args0;} 2237{ ac_configure_args1=; unset ac_configure_args1;} 2238 2239# When interrupted or exit'd, cleanup temporary files, and complete 2240# config.log. We remove comments because anyway the quotes in there 2241# would cause problems or look ugly. 2242# WARNING: Use '\'' to represent an apostrophe within the trap. 2243# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2244trap 'exit_status=$? 2245 # Save into config.log some information that might help in debugging. 2246 { 2247 echo 2248 2249 $as_echo "## ---------------- ## 2250## Cache variables. ## 2251## ---------------- ##" 2252 echo 2253 # The following way of writing the cache mishandles newlines in values, 2254( 2255 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2256 eval ac_val=\$$ac_var 2257 case $ac_val in #( 2258 *${as_nl}*) 2259 case $ac_var in #( 2260 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2261$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2262 esac 2263 case $ac_var in #( 2264 _ | IFS | as_nl) ;; #( 2265 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2266 *) { eval $ac_var=; unset $ac_var;} ;; 2267 esac ;; 2268 esac 2269 done 2270 (set) 2>&1 | 2271 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2272 *${as_nl}ac_space=\ *) 2273 sed -n \ 2274 "s/'\''/'\''\\\\'\'''\''/g; 2275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2276 ;; #( 2277 *) 2278 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2279 ;; 2280 esac | 2281 sort 2282) 2283 echo 2284 2285 $as_echo "## ----------------- ## 2286## Output variables. ## 2287## ----------------- ##" 2288 echo 2289 for ac_var in $ac_subst_vars 2290 do 2291 eval ac_val=\$$ac_var 2292 case $ac_val in 2293 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2294 esac 2295 $as_echo "$ac_var='\''$ac_val'\''" 2296 done | sort 2297 echo 2298 2299 if test -n "$ac_subst_files"; then 2300 $as_echo "## ------------------- ## 2301## File substitutions. ## 2302## ------------------- ##" 2303 echo 2304 for ac_var in $ac_subst_files 2305 do 2306 eval ac_val=\$$ac_var 2307 case $ac_val in 2308 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2309 esac 2310 $as_echo "$ac_var='\''$ac_val'\''" 2311 done | sort 2312 echo 2313 fi 2314 2315 if test -s confdefs.h; then 2316 $as_echo "## ----------- ## 2317## confdefs.h. ## 2318## ----------- ##" 2319 echo 2320 cat confdefs.h 2321 echo 2322 fi 2323 test "$ac_signal" != 0 && 2324 $as_echo "$as_me: caught signal $ac_signal" 2325 $as_echo "$as_me: exit $exit_status" 2326 } >&5 2327 rm -f core *.core core.conftest.* && 2328 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2329 exit $exit_status 2330' 0 2331for ac_signal in 1 2 13 15; do 2332 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2333done 2334ac_signal=0 2335 2336# confdefs.h avoids OS command line length limits that DEFS can exceed. 2337rm -f -r conftest* confdefs.h 2338 2339$as_echo "/* confdefs.h */" > confdefs.h 2340 2341# Predefined preprocessor variables. 2342 2343cat >>confdefs.h <<_ACEOF 2344#define PACKAGE_NAME "$PACKAGE_NAME" 2345_ACEOF 2346 2347cat >>confdefs.h <<_ACEOF 2348#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2349_ACEOF 2350 2351cat >>confdefs.h <<_ACEOF 2352#define PACKAGE_VERSION "$PACKAGE_VERSION" 2353_ACEOF 2354 2355cat >>confdefs.h <<_ACEOF 2356#define PACKAGE_STRING "$PACKAGE_STRING" 2357_ACEOF 2358 2359cat >>confdefs.h <<_ACEOF 2360#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2361_ACEOF 2362 2363cat >>confdefs.h <<_ACEOF 2364#define PACKAGE_URL "$PACKAGE_URL" 2365_ACEOF 2366 2367 2368# Let the site file select an alternate cache file if it wants to. 2369# Prefer an explicitly selected file to automatically selected ones. 2370ac_site_file1=NONE 2371ac_site_file2=NONE 2372if test -n "$CONFIG_SITE"; then 2373 # We do not want a PATH search for config.site. 2374 case $CONFIG_SITE in #(( 2375 -*) ac_site_file1=./$CONFIG_SITE;; 2376 */*) ac_site_file1=$CONFIG_SITE;; 2377 *) ac_site_file1=./$CONFIG_SITE;; 2378 esac 2379elif test "x$prefix" != xNONE; then 2380 ac_site_file1=$prefix/share/config.site 2381 ac_site_file2=$prefix/etc/config.site 2382else 2383 ac_site_file1=$ac_default_prefix/share/config.site 2384 ac_site_file2=$ac_default_prefix/etc/config.site 2385fi 2386for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2387do 2388 test "x$ac_site_file" = xNONE && continue 2389 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2390 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2391$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2392 sed 's/^/| /' "$ac_site_file" >&5 2393 . "$ac_site_file" \ 2394 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2395$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2396as_fn_error $? "failed to load site script $ac_site_file 2397See \`config.log' for more details" "$LINENO" 5; } 2398 fi 2399done 2400 2401if test -r "$cache_file"; then 2402 # Some versions of bash will fail to source /dev/null (special files 2403 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2404 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2405 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2406$as_echo "$as_me: loading cache $cache_file" >&6;} 2407 case $cache_file in 2408 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2409 *) . "./$cache_file";; 2410 esac 2411 fi 2412else 2413 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2414$as_echo "$as_me: creating cache $cache_file" >&6;} 2415 >$cache_file 2416fi 2417 2418# Check that the precious variables saved in the cache have kept the same 2419# value. 2420ac_cache_corrupted=false 2421for ac_var in $ac_precious_vars; do 2422 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2423 eval ac_new_set=\$ac_env_${ac_var}_set 2424 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2425 eval ac_new_val=\$ac_env_${ac_var}_value 2426 case $ac_old_set,$ac_new_set in 2427 set,) 2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2429$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2430 ac_cache_corrupted=: ;; 2431 ,set) 2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2433$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2434 ac_cache_corrupted=: ;; 2435 ,);; 2436 *) 2437 if test "x$ac_old_val" != "x$ac_new_val"; then 2438 # differences in whitespace do not lead to failure. 2439 ac_old_val_w=`echo x $ac_old_val` 2440 ac_new_val_w=`echo x $ac_new_val` 2441 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2443$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2444 ac_cache_corrupted=: 2445 else 2446 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2447$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2448 eval $ac_var=\$ac_old_val 2449 fi 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2451$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2453$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2454 fi;; 2455 esac 2456 # Pass precious variables to config.status. 2457 if test "$ac_new_set" = set; then 2458 case $ac_new_val in 2459 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2460 *) ac_arg=$ac_var=$ac_new_val ;; 2461 esac 2462 case " $ac_configure_args " in 2463 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2464 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2465 esac 2466 fi 2467done 2468if $ac_cache_corrupted; then 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2472$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2473 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2474fi 2475## -------------------- ## 2476## Main body of script. ## 2477## -------------------- ## 2478 2479ac_ext=c 2480ac_cpp='$CPP $CPPFLAGS' 2481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2483ac_compiler_gnu=$ac_cv_c_compiler_gnu 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493CONFIG=`echo ${ac_configure_args} | sed -e 's#'"'"'\([^ ]*\)'"'"'#\1#g'` 2494 2495 2496rev=2 2497 2498 2499srcroot=$srcdir 2500if test "x${srcroot}" = "x." ; then 2501 srcroot="" 2502else 2503 srcroot="${srcroot}/" 2504fi 2505 2506abs_srcroot="`cd \"${srcdir}\"; pwd`/" 2507 2508 2509objroot="" 2510 2511abs_objroot="`pwd`/" 2512 2513 2514if test "x$prefix" = "xNONE" ; then 2515 prefix="/usr/local" 2516fi 2517if test "x$exec_prefix" = "xNONE" ; then 2518 exec_prefix=$prefix 2519fi 2520PREFIX=$prefix 2521 2522BINDIR=`eval echo $bindir` 2523BINDIR=`eval echo $BINDIR` 2524 2525INCLUDEDIR=`eval echo $includedir` 2526INCLUDEDIR=`eval echo $INCLUDEDIR` 2527 2528LIBDIR=`eval echo $libdir` 2529LIBDIR=`eval echo $LIBDIR` 2530 2531DATADIR=`eval echo $datadir` 2532DATADIR=`eval echo $DATADIR` 2533 2534MANDIR=`eval echo $mandir` 2535MANDIR=`eval echo $MANDIR` 2536 2537 2538# Extract the first word of "xsltproc", so it can be a program name with args. 2539set dummy xsltproc; ac_word=$2 2540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2541$as_echo_n "checking for $ac_word... " >&6; } 2542if ${ac_cv_path_XSLTPROC+:} false; then : 2543 $as_echo_n "(cached) " >&6 2544else 2545 case $XSLTPROC in 2546 [\\/]* | ?:[\\/]*) 2547 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 2548 ;; 2549 *) 2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2551for as_dir in $PATH 2552do 2553 IFS=$as_save_IFS 2554 test -z "$as_dir" && as_dir=. 2555 for ac_exec_ext in '' $ac_executable_extensions; do 2556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2557 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 2558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2559 break 2 2560 fi 2561done 2562 done 2563IFS=$as_save_IFS 2564 2565 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="false" 2566 ;; 2567esac 2568fi 2569XSLTPROC=$ac_cv_path_XSLTPROC 2570if test -n "$XSLTPROC"; then 2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 2572$as_echo "$XSLTPROC" >&6; } 2573else 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2575$as_echo "no" >&6; } 2576fi 2577 2578 2579if test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then 2580 DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl" 2581elif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then 2582 DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets" 2583else 2584 DEFAULT_XSLROOT="" 2585fi 2586 2587# Check whether --with-xslroot was given. 2588if test "${with_xslroot+set}" = set; then : 2589 withval=$with_xslroot; 2590if test "x$with_xslroot" = "xno" ; then 2591 XSLROOT="${DEFAULT_XSLROOT}" 2592else 2593 XSLROOT="${with_xslroot}" 2594fi 2595 2596else 2597 XSLROOT="${DEFAULT_XSLROOT}" 2598 2599fi 2600 2601 2602 2603CFLAGS=$CFLAGS 2604ac_ext=c 2605ac_cpp='$CPP $CPPFLAGS' 2606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2608ac_compiler_gnu=$ac_cv_c_compiler_gnu 2609if test -n "$ac_tool_prefix"; then 2610 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2611set dummy ${ac_tool_prefix}gcc; ac_word=$2 2612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2613$as_echo_n "checking for $ac_word... " >&6; } 2614if ${ac_cv_prog_CC+:} false; then : 2615 $as_echo_n "(cached) " >&6 2616else 2617 if test -n "$CC"; then 2618 ac_cv_prog_CC="$CC" # Let the user override the test. 2619else 2620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2621for as_dir in $PATH 2622do 2623 IFS=$as_save_IFS 2624 test -z "$as_dir" && as_dir=. 2625 for ac_exec_ext in '' $ac_executable_extensions; do 2626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2627 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2629 break 2 2630 fi 2631done 2632 done 2633IFS=$as_save_IFS 2634 2635fi 2636fi 2637CC=$ac_cv_prog_CC 2638if test -n "$CC"; then 2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2640$as_echo "$CC" >&6; } 2641else 2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2643$as_echo "no" >&6; } 2644fi 2645 2646 2647fi 2648if test -z "$ac_cv_prog_CC"; then 2649 ac_ct_CC=$CC 2650 # Extract the first word of "gcc", so it can be a program name with args. 2651set dummy gcc; ac_word=$2 2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2653$as_echo_n "checking for $ac_word... " >&6; } 2654if ${ac_cv_prog_ac_ct_CC+:} false; then : 2655 $as_echo_n "(cached) " >&6 2656else 2657 if test -n "$ac_ct_CC"; then 2658 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2659else 2660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2661for as_dir in $PATH 2662do 2663 IFS=$as_save_IFS 2664 test -z "$as_dir" && as_dir=. 2665 for ac_exec_ext in '' $ac_executable_extensions; do 2666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2667 ac_cv_prog_ac_ct_CC="gcc" 2668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2669 break 2 2670 fi 2671done 2672 done 2673IFS=$as_save_IFS 2674 2675fi 2676fi 2677ac_ct_CC=$ac_cv_prog_ac_ct_CC 2678if test -n "$ac_ct_CC"; then 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2680$as_echo "$ac_ct_CC" >&6; } 2681else 2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2683$as_echo "no" >&6; } 2684fi 2685 2686 if test "x$ac_ct_CC" = x; then 2687 CC="" 2688 else 2689 case $cross_compiling:$ac_tool_warned in 2690yes:) 2691{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2692$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2693ac_tool_warned=yes ;; 2694esac 2695 CC=$ac_ct_CC 2696 fi 2697else 2698 CC="$ac_cv_prog_CC" 2699fi 2700 2701if test -z "$CC"; then 2702 if test -n "$ac_tool_prefix"; then 2703 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2704set dummy ${ac_tool_prefix}cc; ac_word=$2 2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2706$as_echo_n "checking for $ac_word... " >&6; } 2707if ${ac_cv_prog_CC+:} false; then : 2708 $as_echo_n "(cached) " >&6 2709else 2710 if test -n "$CC"; then 2711 ac_cv_prog_CC="$CC" # Let the user override the test. 2712else 2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2714for as_dir in $PATH 2715do 2716 IFS=$as_save_IFS 2717 test -z "$as_dir" && as_dir=. 2718 for ac_exec_ext in '' $ac_executable_extensions; do 2719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2720 ac_cv_prog_CC="${ac_tool_prefix}cc" 2721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2722 break 2 2723 fi 2724done 2725 done 2726IFS=$as_save_IFS 2727 2728fi 2729fi 2730CC=$ac_cv_prog_CC 2731if test -n "$CC"; then 2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2733$as_echo "$CC" >&6; } 2734else 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2736$as_echo "no" >&6; } 2737fi 2738 2739 2740 fi 2741fi 2742if test -z "$CC"; then 2743 # Extract the first word of "cc", so it can be a program name with args. 2744set dummy cc; ac_word=$2 2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2746$as_echo_n "checking for $ac_word... " >&6; } 2747if ${ac_cv_prog_CC+:} false; then : 2748 $as_echo_n "(cached) " >&6 2749else 2750 if test -n "$CC"; then 2751 ac_cv_prog_CC="$CC" # Let the user override the test. 2752else 2753 ac_prog_rejected=no 2754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2755for as_dir in $PATH 2756do 2757 IFS=$as_save_IFS 2758 test -z "$as_dir" && as_dir=. 2759 for ac_exec_ext in '' $ac_executable_extensions; do 2760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2761 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2762 ac_prog_rejected=yes 2763 continue 2764 fi 2765 ac_cv_prog_CC="cc" 2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2767 break 2 2768 fi 2769done 2770 done 2771IFS=$as_save_IFS 2772 2773if test $ac_prog_rejected = yes; then 2774 # We found a bogon in the path, so make sure we never use it. 2775 set dummy $ac_cv_prog_CC 2776 shift 2777 if test $# != 0; then 2778 # We chose a different compiler from the bogus one. 2779 # However, it has the same basename, so the bogon will be chosen 2780 # first if we set CC to just the basename; use the full file name. 2781 shift 2782 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2783 fi 2784fi 2785fi 2786fi 2787CC=$ac_cv_prog_CC 2788if test -n "$CC"; then 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2790$as_echo "$CC" >&6; } 2791else 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2793$as_echo "no" >&6; } 2794fi 2795 2796 2797fi 2798if test -z "$CC"; then 2799 if test -n "$ac_tool_prefix"; then 2800 for ac_prog in cl.exe 2801 do 2802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2803set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2805$as_echo_n "checking for $ac_word... " >&6; } 2806if ${ac_cv_prog_CC+:} false; then : 2807 $as_echo_n "(cached) " >&6 2808else 2809 if test -n "$CC"; then 2810 ac_cv_prog_CC="$CC" # Let the user override the test. 2811else 2812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2813for as_dir in $PATH 2814do 2815 IFS=$as_save_IFS 2816 test -z "$as_dir" && as_dir=. 2817 for ac_exec_ext in '' $ac_executable_extensions; do 2818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2819 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2821 break 2 2822 fi 2823done 2824 done 2825IFS=$as_save_IFS 2826 2827fi 2828fi 2829CC=$ac_cv_prog_CC 2830if test -n "$CC"; then 2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2832$as_echo "$CC" >&6; } 2833else 2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2835$as_echo "no" >&6; } 2836fi 2837 2838 2839 test -n "$CC" && break 2840 done 2841fi 2842if test -z "$CC"; then 2843 ac_ct_CC=$CC 2844 for ac_prog in cl.exe 2845do 2846 # Extract the first word of "$ac_prog", so it can be a program name with args. 2847set dummy $ac_prog; ac_word=$2 2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2849$as_echo_n "checking for $ac_word... " >&6; } 2850if ${ac_cv_prog_ac_ct_CC+:} false; then : 2851 $as_echo_n "(cached) " >&6 2852else 2853 if test -n "$ac_ct_CC"; then 2854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2855else 2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2857for as_dir in $PATH 2858do 2859 IFS=$as_save_IFS 2860 test -z "$as_dir" && as_dir=. 2861 for ac_exec_ext in '' $ac_executable_extensions; do 2862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2863 ac_cv_prog_ac_ct_CC="$ac_prog" 2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2865 break 2 2866 fi 2867done 2868 done 2869IFS=$as_save_IFS 2870 2871fi 2872fi 2873ac_ct_CC=$ac_cv_prog_ac_ct_CC 2874if test -n "$ac_ct_CC"; then 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2876$as_echo "$ac_ct_CC" >&6; } 2877else 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2879$as_echo "no" >&6; } 2880fi 2881 2882 2883 test -n "$ac_ct_CC" && break 2884done 2885 2886 if test "x$ac_ct_CC" = x; then 2887 CC="" 2888 else 2889 case $cross_compiling:$ac_tool_warned in 2890yes:) 2891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2893ac_tool_warned=yes ;; 2894esac 2895 CC=$ac_ct_CC 2896 fi 2897fi 2898 2899fi 2900 2901 2902test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2904as_fn_error $? "no acceptable C compiler found in \$PATH 2905See \`config.log' for more details" "$LINENO" 5; } 2906 2907# Provide some information about the compiler. 2908$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2909set X $ac_compile 2910ac_compiler=$2 2911for ac_option in --version -v -V -qversion; do 2912 { { ac_try="$ac_compiler $ac_option >&5" 2913case "(($ac_try" in 2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2915 *) ac_try_echo=$ac_try;; 2916esac 2917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2918$as_echo "$ac_try_echo"; } >&5 2919 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2920 ac_status=$? 2921 if test -s conftest.err; then 2922 sed '10a\ 2923... rest of stderr output deleted ... 2924 10q' conftest.err >conftest.er1 2925 cat conftest.er1 >&5 2926 fi 2927 rm -f conftest.er1 conftest.err 2928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2929 test $ac_status = 0; } 2930done 2931 2932cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2933/* end confdefs.h. */ 2934 2935int 2936main () 2937{ 2938 2939 ; 2940 return 0; 2941} 2942_ACEOF 2943ac_clean_files_save=$ac_clean_files 2944ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2945# Try to create an executable without -o first, disregard a.out. 2946# It will help us diagnose broken compilers, and finding out an intuition 2947# of exeext. 2948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2949$as_echo_n "checking whether the C compiler works... " >&6; } 2950ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2951 2952# The possible output files: 2953ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2954 2955ac_rmfiles= 2956for ac_file in $ac_files 2957do 2958 case $ac_file in 2959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2960 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2961 esac 2962done 2963rm -f $ac_rmfiles 2964 2965if { { ac_try="$ac_link_default" 2966case "(($ac_try" in 2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2968 *) ac_try_echo=$ac_try;; 2969esac 2970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2971$as_echo "$ac_try_echo"; } >&5 2972 (eval "$ac_link_default") 2>&5 2973 ac_status=$? 2974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2975 test $ac_status = 0; }; then : 2976 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2977# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2978# in a Makefile. We should not override ac_cv_exeext if it was cached, 2979# so that the user can short-circuit this test for compilers unknown to 2980# Autoconf. 2981for ac_file in $ac_files '' 2982do 2983 test -f "$ac_file" || continue 2984 case $ac_file in 2985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2986 ;; 2987 [ab].out ) 2988 # We found the default executable, but exeext='' is most 2989 # certainly right. 2990 break;; 2991 *.* ) 2992 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2993 then :; else 2994 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2995 fi 2996 # We set ac_cv_exeext here because the later test for it is not 2997 # safe: cross compilers may not add the suffix if given an `-o' 2998 # argument, so we may need to know it at that point already. 2999 # Even if this section looks crufty: it has the advantage of 3000 # actually working. 3001 break;; 3002 * ) 3003 break;; 3004 esac 3005done 3006test "$ac_cv_exeext" = no && ac_cv_exeext= 3007 3008else 3009 ac_file='' 3010fi 3011if test -z "$ac_file"; then : 3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3013$as_echo "no" >&6; } 3014$as_echo "$as_me: failed program was:" >&5 3015sed 's/^/| /' conftest.$ac_ext >&5 3016 3017{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3018$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3019as_fn_error 77 "C compiler cannot create executables 3020See \`config.log' for more details" "$LINENO" 5; } 3021else 3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3023$as_echo "yes" >&6; } 3024fi 3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3026$as_echo_n "checking for C compiler default output file name... " >&6; } 3027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3028$as_echo "$ac_file" >&6; } 3029ac_exeext=$ac_cv_exeext 3030 3031rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3032ac_clean_files=$ac_clean_files_save 3033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3034$as_echo_n "checking for suffix of executables... " >&6; } 3035if { { ac_try="$ac_link" 3036case "(($ac_try" in 3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3038 *) ac_try_echo=$ac_try;; 3039esac 3040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3041$as_echo "$ac_try_echo"; } >&5 3042 (eval "$ac_link") 2>&5 3043 ac_status=$? 3044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3045 test $ac_status = 0; }; then : 3046 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3047# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3048# work properly (i.e., refer to `conftest.exe'), while it won't with 3049# `rm'. 3050for ac_file in conftest.exe conftest conftest.*; do 3051 test -f "$ac_file" || continue 3052 case $ac_file in 3053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3054 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3055 break;; 3056 * ) break;; 3057 esac 3058done 3059else 3060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3062as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3063See \`config.log' for more details" "$LINENO" 5; } 3064fi 3065rm -f conftest conftest$ac_cv_exeext 3066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3067$as_echo "$ac_cv_exeext" >&6; } 3068 3069rm -f conftest.$ac_ext 3070EXEEXT=$ac_cv_exeext 3071ac_exeext=$EXEEXT 3072cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3073/* end confdefs.h. */ 3074#include <stdio.h> 3075int 3076main () 3077{ 3078FILE *f = fopen ("conftest.out", "w"); 3079 return ferror (f) || fclose (f) != 0; 3080 3081 ; 3082 return 0; 3083} 3084_ACEOF 3085ac_clean_files="$ac_clean_files conftest.out" 3086# Check that the compiler produces executables we can run. If not, either 3087# the compiler is broken, or we cross compile. 3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3089$as_echo_n "checking whether we are cross compiling... " >&6; } 3090if test "$cross_compiling" != yes; then 3091 { { ac_try="$ac_link" 3092case "(($ac_try" in 3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3094 *) ac_try_echo=$ac_try;; 3095esac 3096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3097$as_echo "$ac_try_echo"; } >&5 3098 (eval "$ac_link") 2>&5 3099 ac_status=$? 3100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3101 test $ac_status = 0; } 3102 if { ac_try='./conftest$ac_cv_exeext' 3103 { { case "(($ac_try" in 3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3105 *) ac_try_echo=$ac_try;; 3106esac 3107eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3108$as_echo "$ac_try_echo"; } >&5 3109 (eval "$ac_try") 2>&5 3110 ac_status=$? 3111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3112 test $ac_status = 0; }; }; then 3113 cross_compiling=no 3114 else 3115 if test "$cross_compiling" = maybe; then 3116 cross_compiling=yes 3117 else 3118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3120as_fn_error $? "cannot run C compiled programs. 3121If you meant to cross compile, use \`--host'. 3122See \`config.log' for more details" "$LINENO" 5; } 3123 fi 3124 fi 3125fi 3126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3127$as_echo "$cross_compiling" >&6; } 3128 3129rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3130ac_clean_files=$ac_clean_files_save 3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3132$as_echo_n "checking for suffix of object files... " >&6; } 3133if ${ac_cv_objext+:} false; then : 3134 $as_echo_n "(cached) " >&6 3135else 3136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3137/* end confdefs.h. */ 3138 3139int 3140main () 3141{ 3142 3143 ; 3144 return 0; 3145} 3146_ACEOF 3147rm -f conftest.o conftest.obj 3148if { { ac_try="$ac_compile" 3149case "(($ac_try" in 3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3151 *) ac_try_echo=$ac_try;; 3152esac 3153eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3154$as_echo "$ac_try_echo"; } >&5 3155 (eval "$ac_compile") 2>&5 3156 ac_status=$? 3157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3158 test $ac_status = 0; }; then : 3159 for ac_file in conftest.o conftest.obj conftest.*; do 3160 test -f "$ac_file" || continue; 3161 case $ac_file in 3162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3163 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3164 break;; 3165 esac 3166done 3167else 3168 $as_echo "$as_me: failed program was:" >&5 3169sed 's/^/| /' conftest.$ac_ext >&5 3170 3171{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3173as_fn_error $? "cannot compute suffix of object files: cannot compile 3174See \`config.log' for more details" "$LINENO" 5; } 3175fi 3176rm -f conftest.$ac_cv_objext conftest.$ac_ext 3177fi 3178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3179$as_echo "$ac_cv_objext" >&6; } 3180OBJEXT=$ac_cv_objext 3181ac_objext=$OBJEXT 3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3183$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3184if ${ac_cv_c_compiler_gnu+:} false; then : 3185 $as_echo_n "(cached) " >&6 3186else 3187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3188/* end confdefs.h. */ 3189 3190int 3191main () 3192{ 3193#ifndef __GNUC__ 3194 choke me 3195#endif 3196 3197 ; 3198 return 0; 3199} 3200_ACEOF 3201if ac_fn_c_try_compile "$LINENO"; then : 3202 ac_compiler_gnu=yes 3203else 3204 ac_compiler_gnu=no 3205fi 3206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3207ac_cv_c_compiler_gnu=$ac_compiler_gnu 3208 3209fi 3210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3211$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3212if test $ac_compiler_gnu = yes; then 3213 GCC=yes 3214else 3215 GCC= 3216fi 3217ac_test_CFLAGS=${CFLAGS+set} 3218ac_save_CFLAGS=$CFLAGS 3219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3220$as_echo_n "checking whether $CC accepts -g... " >&6; } 3221if ${ac_cv_prog_cc_g+:} false; then : 3222 $as_echo_n "(cached) " >&6 3223else 3224 ac_save_c_werror_flag=$ac_c_werror_flag 3225 ac_c_werror_flag=yes 3226 ac_cv_prog_cc_g=no 3227 CFLAGS="-g" 3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3229/* end confdefs.h. */ 3230 3231int 3232main () 3233{ 3234 3235 ; 3236 return 0; 3237} 3238_ACEOF 3239if ac_fn_c_try_compile "$LINENO"; then : 3240 ac_cv_prog_cc_g=yes 3241else 3242 CFLAGS="" 3243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3244/* end confdefs.h. */ 3245 3246int 3247main () 3248{ 3249 3250 ; 3251 return 0; 3252} 3253_ACEOF 3254if ac_fn_c_try_compile "$LINENO"; then : 3255 3256else 3257 ac_c_werror_flag=$ac_save_c_werror_flag 3258 CFLAGS="-g" 3259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3260/* end confdefs.h. */ 3261 3262int 3263main () 3264{ 3265 3266 ; 3267 return 0; 3268} 3269_ACEOF 3270if ac_fn_c_try_compile "$LINENO"; then : 3271 ac_cv_prog_cc_g=yes 3272fi 3273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3274fi 3275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3276fi 3277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3278 ac_c_werror_flag=$ac_save_c_werror_flag 3279fi 3280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3281$as_echo "$ac_cv_prog_cc_g" >&6; } 3282if test "$ac_test_CFLAGS" = set; then 3283 CFLAGS=$ac_save_CFLAGS 3284elif test $ac_cv_prog_cc_g = yes; then 3285 if test "$GCC" = yes; then 3286 CFLAGS="-g -O2" 3287 else 3288 CFLAGS="-g" 3289 fi 3290else 3291 if test "$GCC" = yes; then 3292 CFLAGS="-O2" 3293 else 3294 CFLAGS= 3295 fi 3296fi 3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3298$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3299if ${ac_cv_prog_cc_c89+:} false; then : 3300 $as_echo_n "(cached) " >&6 3301else 3302 ac_cv_prog_cc_c89=no 3303ac_save_CC=$CC 3304cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3305/* end confdefs.h. */ 3306#include <stdarg.h> 3307#include <stdio.h> 3308struct stat; 3309/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3310struct buf { int x; }; 3311FILE * (*rcsopen) (struct buf *, struct stat *, int); 3312static char *e (p, i) 3313 char **p; 3314 int i; 3315{ 3316 return p[i]; 3317} 3318static char *f (char * (*g) (char **, int), char **p, ...) 3319{ 3320 char *s; 3321 va_list v; 3322 va_start (v,p); 3323 s = g (p, va_arg (v,int)); 3324 va_end (v); 3325 return s; 3326} 3327 3328/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3329 function prototypes and stuff, but not '\xHH' hex character constants. 3330 These don't provoke an error unfortunately, instead are silently treated 3331 as 'x'. The following induces an error, until -std is added to get 3332 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3333 array size at least. It's necessary to write '\x00'==0 to get something 3334 that's true only with -std. */ 3335int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3336 3337/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3338 inside strings and character constants. */ 3339#define FOO(x) 'x' 3340int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3341 3342int test (int i, double x); 3343struct s1 {int (*f) (int a);}; 3344struct s2 {int (*f) (double a);}; 3345int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3346int argc; 3347char **argv; 3348int 3349main () 3350{ 3351return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3352 ; 3353 return 0; 3354} 3355_ACEOF 3356for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3357 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3358do 3359 CC="$ac_save_CC $ac_arg" 3360 if ac_fn_c_try_compile "$LINENO"; then : 3361 ac_cv_prog_cc_c89=$ac_arg 3362fi 3363rm -f core conftest.err conftest.$ac_objext 3364 test "x$ac_cv_prog_cc_c89" != "xno" && break 3365done 3366rm -f conftest.$ac_ext 3367CC=$ac_save_CC 3368 3369fi 3370# AC_CACHE_VAL 3371case "x$ac_cv_prog_cc_c89" in 3372 x) 3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3374$as_echo "none needed" >&6; } ;; 3375 xno) 3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3377$as_echo "unsupported" >&6; } ;; 3378 *) 3379 CC="$CC $ac_cv_prog_cc_c89" 3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3381$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3382esac 3383if test "x$ac_cv_prog_cc_c89" != xno; then : 3384 3385fi 3386 3387ac_ext=c 3388ac_cpp='$CPP $CPPFLAGS' 3389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3391ac_compiler_gnu=$ac_cv_c_compiler_gnu 3392 3393if test "x$GCC" != "xyes" ; then 3394 3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5 3396$as_echo_n "checking whether compiler is MSVC... " >&6; } 3397if ${je_cv_msvc+:} false; then : 3398 $as_echo_n "(cached) " >&6 3399else 3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3401/* end confdefs.h. */ 3402 3403int 3404main () 3405{ 3406 3407#ifndef _MSC_VER 3408 int fail-1; 3409#endif 3410 3411 ; 3412 return 0; 3413} 3414_ACEOF 3415if ac_fn_c_try_compile "$LINENO"; then : 3416 je_cv_msvc=yes 3417else 3418 je_cv_msvc=no 3419fi 3420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3421fi 3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5 3423$as_echo "$je_cv_msvc" >&6; } 3424fi 3425 3426if test "x$CFLAGS" = "x" ; then 3427 no_CFLAGS="yes" 3428 if test "x$GCC" = "xyes" ; then 3429 3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5 3431$as_echo_n "checking whether compiler supports -std=gnu99... " >&6; } 3432TCFLAGS="${CFLAGS}" 3433if test "x${CFLAGS}" = "x" ; then 3434 CFLAGS="-std=gnu99" 3435else 3436 CFLAGS="${CFLAGS} -std=gnu99" 3437fi 3438cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3439/* end confdefs.h. */ 3440 3441 3442int 3443main () 3444{ 3445 3446 return 0; 3447 3448 ; 3449 return 0; 3450} 3451_ACEOF 3452if ac_fn_c_try_compile "$LINENO"; then : 3453 je_cv_cflags_appended=-std=gnu99 3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3455$as_echo "yes" >&6; } 3456else 3457 je_cv_cflags_appended= 3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3459$as_echo "no" >&6; } 3460 CFLAGS="${TCFLAGS}" 3461 3462fi 3463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3464 3465 if test "x$je_cv_cflags_appended" = "x-std=gnu99" ; then 3466 cat >>confdefs.h <<_ACEOF 3467#define JEMALLOC_HAS_RESTRICT 1 3468_ACEOF 3469 3470 fi 3471 3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5 3473$as_echo_n "checking whether compiler supports -Wall... " >&6; } 3474TCFLAGS="${CFLAGS}" 3475if test "x${CFLAGS}" = "x" ; then 3476 CFLAGS="-Wall" 3477else 3478 CFLAGS="${CFLAGS} -Wall" 3479fi 3480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3481/* end confdefs.h. */ 3482 3483 3484int 3485main () 3486{ 3487 3488 return 0; 3489 3490 ; 3491 return 0; 3492} 3493_ACEOF 3494if ac_fn_c_try_compile "$LINENO"; then : 3495 je_cv_cflags_appended=-Wall 3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3497$as_echo "yes" >&6; } 3498else 3499 je_cv_cflags_appended= 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3501$as_echo "no" >&6; } 3502 CFLAGS="${TCFLAGS}" 3503 3504fi 3505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3506 3507 3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror=declaration-after-statement" >&5 3509$as_echo_n "checking whether compiler supports -Werror=declaration-after-statement... " >&6; } 3510TCFLAGS="${CFLAGS}" 3511if test "x${CFLAGS}" = "x" ; then 3512 CFLAGS="-Werror=declaration-after-statement" 3513else 3514 CFLAGS="${CFLAGS} -Werror=declaration-after-statement" 3515fi 3516cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3517/* end confdefs.h. */ 3518 3519 3520int 3521main () 3522{ 3523 3524 return 0; 3525 3526 ; 3527 return 0; 3528} 3529_ACEOF 3530if ac_fn_c_try_compile "$LINENO"; then : 3531 je_cv_cflags_appended=-Werror=declaration-after-statement 3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3533$as_echo "yes" >&6; } 3534else 3535 je_cv_cflags_appended= 3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3537$as_echo "no" >&6; } 3538 CFLAGS="${TCFLAGS}" 3539 3540fi 3541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3542 3543 3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5 3545$as_echo_n "checking whether compiler supports -pipe... " >&6; } 3546TCFLAGS="${CFLAGS}" 3547if test "x${CFLAGS}" = "x" ; then 3548 CFLAGS="-pipe" 3549else 3550 CFLAGS="${CFLAGS} -pipe" 3551fi 3552cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3553/* end confdefs.h. */ 3554 3555 3556int 3557main () 3558{ 3559 3560 return 0; 3561 3562 ; 3563 return 0; 3564} 3565_ACEOF 3566if ac_fn_c_try_compile "$LINENO"; then : 3567 je_cv_cflags_appended=-pipe 3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3569$as_echo "yes" >&6; } 3570else 3571 je_cv_cflags_appended= 3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3573$as_echo "no" >&6; } 3574 CFLAGS="${TCFLAGS}" 3575 3576fi 3577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3578 3579 3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5 3581$as_echo_n "checking whether compiler supports -g3... " >&6; } 3582TCFLAGS="${CFLAGS}" 3583if test "x${CFLAGS}" = "x" ; then 3584 CFLAGS="-g3" 3585else 3586 CFLAGS="${CFLAGS} -g3" 3587fi 3588cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3589/* end confdefs.h. */ 3590 3591 3592int 3593main () 3594{ 3595 3596 return 0; 3597 3598 ; 3599 return 0; 3600} 3601_ACEOF 3602if ac_fn_c_try_compile "$LINENO"; then : 3603 je_cv_cflags_appended=-g3 3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3605$as_echo "yes" >&6; } 3606else 3607 je_cv_cflags_appended= 3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3609$as_echo "no" >&6; } 3610 CFLAGS="${TCFLAGS}" 3611 3612fi 3613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3614 3615 elif test "x$je_cv_msvc" = "xyes" ; then 3616 CC="$CC -nologo" 3617 3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5 3619$as_echo_n "checking whether compiler supports -Zi... " >&6; } 3620TCFLAGS="${CFLAGS}" 3621if test "x${CFLAGS}" = "x" ; then 3622 CFLAGS="-Zi" 3623else 3624 CFLAGS="${CFLAGS} -Zi" 3625fi 3626cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3627/* end confdefs.h. */ 3628 3629 3630int 3631main () 3632{ 3633 3634 return 0; 3635 3636 ; 3637 return 0; 3638} 3639_ACEOF 3640if ac_fn_c_try_compile "$LINENO"; then : 3641 je_cv_cflags_appended=-Zi 3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3643$as_echo "yes" >&6; } 3644else 3645 je_cv_cflags_appended= 3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3647$as_echo "no" >&6; } 3648 CFLAGS="${TCFLAGS}" 3649 3650fi 3651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3652 3653 3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5 3655$as_echo_n "checking whether compiler supports -MT... " >&6; } 3656TCFLAGS="${CFLAGS}" 3657if test "x${CFLAGS}" = "x" ; then 3658 CFLAGS="-MT" 3659else 3660 CFLAGS="${CFLAGS} -MT" 3661fi 3662cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3663/* end confdefs.h. */ 3664 3665 3666int 3667main () 3668{ 3669 3670 return 0; 3671 3672 ; 3673 return 0; 3674} 3675_ACEOF 3676if ac_fn_c_try_compile "$LINENO"; then : 3677 je_cv_cflags_appended=-MT 3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3679$as_echo "yes" >&6; } 3680else 3681 je_cv_cflags_appended= 3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3683$as_echo "no" >&6; } 3684 CFLAGS="${TCFLAGS}" 3685 3686fi 3687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3688 3689 3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5 3691$as_echo_n "checking whether compiler supports -W3... " >&6; } 3692TCFLAGS="${CFLAGS}" 3693if test "x${CFLAGS}" = "x" ; then 3694 CFLAGS="-W3" 3695else 3696 CFLAGS="${CFLAGS} -W3" 3697fi 3698cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3699/* end confdefs.h. */ 3700 3701 3702int 3703main () 3704{ 3705 3706 return 0; 3707 3708 ; 3709 return 0; 3710} 3711_ACEOF 3712if ac_fn_c_try_compile "$LINENO"; then : 3713 je_cv_cflags_appended=-W3 3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3715$as_echo "yes" >&6; } 3716else 3717 je_cv_cflags_appended= 3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3719$as_echo "no" >&6; } 3720 CFLAGS="${TCFLAGS}" 3721 3722fi 3723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3724 3725 3726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -FS" >&5 3727$as_echo_n "checking whether compiler supports -FS... " >&6; } 3728TCFLAGS="${CFLAGS}" 3729if test "x${CFLAGS}" = "x" ; then 3730 CFLAGS="-FS" 3731else 3732 CFLAGS="${CFLAGS} -FS" 3733fi 3734cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3735/* end confdefs.h. */ 3736 3737 3738int 3739main () 3740{ 3741 3742 return 0; 3743 3744 ; 3745 return 0; 3746} 3747_ACEOF 3748if ac_fn_c_try_compile "$LINENO"; then : 3749 je_cv_cflags_appended=-FS 3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3751$as_echo "yes" >&6; } 3752else 3753 je_cv_cflags_appended= 3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3755$as_echo "no" >&6; } 3756 CFLAGS="${TCFLAGS}" 3757 3758fi 3759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3760 3761 CPPFLAGS="$CPPFLAGS -I${srcdir}/include/msvc_compat" 3762 fi 3763fi 3764if test "x$EXTRA_CFLAGS" != "x" ; then 3765 3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports $EXTRA_CFLAGS" >&5 3767$as_echo_n "checking whether compiler supports $EXTRA_CFLAGS... " >&6; } 3768TCFLAGS="${CFLAGS}" 3769if test "x${CFLAGS}" = "x" ; then 3770 CFLAGS="$EXTRA_CFLAGS" 3771else 3772 CFLAGS="${CFLAGS} $EXTRA_CFLAGS" 3773fi 3774cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3775/* end confdefs.h. */ 3776 3777 3778int 3779main () 3780{ 3781 3782 return 0; 3783 3784 ; 3785 return 0; 3786} 3787_ACEOF 3788if ac_fn_c_try_compile "$LINENO"; then : 3789 je_cv_cflags_appended=$EXTRA_CFLAGS 3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3791$as_echo "yes" >&6; } 3792else 3793 je_cv_cflags_appended= 3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3795$as_echo "no" >&6; } 3796 CFLAGS="${TCFLAGS}" 3797 3798fi 3799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3800 3801fi 3802ac_ext=c 3803ac_cpp='$CPP $CPPFLAGS' 3804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3806ac_compiler_gnu=$ac_cv_c_compiler_gnu 3807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3808$as_echo_n "checking how to run the C preprocessor... " >&6; } 3809# On Suns, sometimes $CPP names a directory. 3810if test -n "$CPP" && test -d "$CPP"; then 3811 CPP= 3812fi 3813if test -z "$CPP"; then 3814 if ${ac_cv_prog_CPP+:} false; then : 3815 $as_echo_n "(cached) " >&6 3816else 3817 # Double quotes because CPP needs to be expanded 3818 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3819 do 3820 ac_preproc_ok=false 3821for ac_c_preproc_warn_flag in '' yes 3822do 3823 # Use a header file that comes with gcc, so configuring glibc 3824 # with a fresh cross-compiler works. 3825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3826 # <limits.h> exists even on freestanding compilers. 3827 # On the NeXT, cc -E runs the code through the compiler's parser, 3828 # not just through cpp. "Syntax error" is here to catch this case. 3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3830/* end confdefs.h. */ 3831#ifdef __STDC__ 3832# include <limits.h> 3833#else 3834# include <assert.h> 3835#endif 3836 Syntax error 3837_ACEOF 3838if ac_fn_c_try_cpp "$LINENO"; then : 3839 3840else 3841 # Broken: fails on valid input. 3842continue 3843fi 3844rm -f conftest.err conftest.i conftest.$ac_ext 3845 3846 # OK, works on sane cases. Now check whether nonexistent headers 3847 # can be detected and how. 3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3849/* end confdefs.h. */ 3850#include <ac_nonexistent.h> 3851_ACEOF 3852if ac_fn_c_try_cpp "$LINENO"; then : 3853 # Broken: success on invalid input. 3854continue 3855else 3856 # Passes both tests. 3857ac_preproc_ok=: 3858break 3859fi 3860rm -f conftest.err conftest.i conftest.$ac_ext 3861 3862done 3863# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3864rm -f conftest.i conftest.err conftest.$ac_ext 3865if $ac_preproc_ok; then : 3866 break 3867fi 3868 3869 done 3870 ac_cv_prog_CPP=$CPP 3871 3872fi 3873 CPP=$ac_cv_prog_CPP 3874else 3875 ac_cv_prog_CPP=$CPP 3876fi 3877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3878$as_echo "$CPP" >&6; } 3879ac_preproc_ok=false 3880for ac_c_preproc_warn_flag in '' yes 3881do 3882 # Use a header file that comes with gcc, so configuring glibc 3883 # with a fresh cross-compiler works. 3884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3885 # <limits.h> exists even on freestanding compilers. 3886 # On the NeXT, cc -E runs the code through the compiler's parser, 3887 # not just through cpp. "Syntax error" is here to catch this case. 3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3889/* end confdefs.h. */ 3890#ifdef __STDC__ 3891# include <limits.h> 3892#else 3893# include <assert.h> 3894#endif 3895 Syntax error 3896_ACEOF 3897if ac_fn_c_try_cpp "$LINENO"; then : 3898 3899else 3900 # Broken: fails on valid input. 3901continue 3902fi 3903rm -f conftest.err conftest.i conftest.$ac_ext 3904 3905 # OK, works on sane cases. Now check whether nonexistent headers 3906 # can be detected and how. 3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3908/* end confdefs.h. */ 3909#include <ac_nonexistent.h> 3910_ACEOF 3911if ac_fn_c_try_cpp "$LINENO"; then : 3912 # Broken: success on invalid input. 3913continue 3914else 3915 # Passes both tests. 3916ac_preproc_ok=: 3917break 3918fi 3919rm -f conftest.err conftest.i conftest.$ac_ext 3920 3921done 3922# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3923rm -f conftest.i conftest.err conftest.$ac_ext 3924if $ac_preproc_ok; then : 3925 3926else 3927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3929as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3930See \`config.log' for more details" "$LINENO" 5; } 3931fi 3932 3933ac_ext=c 3934ac_cpp='$CPP $CPPFLAGS' 3935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3937ac_compiler_gnu=$ac_cv_c_compiler_gnu 3938 3939 3940 3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3942$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3943if ${ac_cv_path_GREP+:} false; then : 3944 $as_echo_n "(cached) " >&6 3945else 3946 if test -z "$GREP"; then 3947 ac_path_GREP_found=false 3948 # Loop through the user's path and test for each of PROGNAME-LIST 3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3950for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3951do 3952 IFS=$as_save_IFS 3953 test -z "$as_dir" && as_dir=. 3954 for ac_prog in grep ggrep; do 3955 for ac_exec_ext in '' $ac_executable_extensions; do 3956 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3957 as_fn_executable_p "$ac_path_GREP" || continue 3958# Check for GNU ac_path_GREP and select it if it is found. 3959 # Check for GNU $ac_path_GREP 3960case `"$ac_path_GREP" --version 2>&1` in 3961*GNU*) 3962 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3963*) 3964 ac_count=0 3965 $as_echo_n 0123456789 >"conftest.in" 3966 while : 3967 do 3968 cat "conftest.in" "conftest.in" >"conftest.tmp" 3969 mv "conftest.tmp" "conftest.in" 3970 cp "conftest.in" "conftest.nl" 3971 $as_echo 'GREP' >> "conftest.nl" 3972 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3974 as_fn_arith $ac_count + 1 && ac_count=$as_val 3975 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3976 # Best one so far, save it but keep looking for a better one 3977 ac_cv_path_GREP="$ac_path_GREP" 3978 ac_path_GREP_max=$ac_count 3979 fi 3980 # 10*(2^10) chars as input seems more than enough 3981 test $ac_count -gt 10 && break 3982 done 3983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3984esac 3985 3986 $ac_path_GREP_found && break 3 3987 done 3988 done 3989 done 3990IFS=$as_save_IFS 3991 if test -z "$ac_cv_path_GREP"; then 3992 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3993 fi 3994else 3995 ac_cv_path_GREP=$GREP 3996fi 3997 3998fi 3999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4000$as_echo "$ac_cv_path_GREP" >&6; } 4001 GREP="$ac_cv_path_GREP" 4002 4003 4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4005$as_echo_n "checking for egrep... " >&6; } 4006if ${ac_cv_path_EGREP+:} false; then : 4007 $as_echo_n "(cached) " >&6 4008else 4009 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4010 then ac_cv_path_EGREP="$GREP -E" 4011 else 4012 if test -z "$EGREP"; then 4013 ac_path_EGREP_found=false 4014 # Loop through the user's path and test for each of PROGNAME-LIST 4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4016for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4017do 4018 IFS=$as_save_IFS 4019 test -z "$as_dir" && as_dir=. 4020 for ac_prog in egrep; do 4021 for ac_exec_ext in '' $ac_executable_extensions; do 4022 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4023 as_fn_executable_p "$ac_path_EGREP" || continue 4024# Check for GNU ac_path_EGREP and select it if it is found. 4025 # Check for GNU $ac_path_EGREP 4026case `"$ac_path_EGREP" --version 2>&1` in 4027*GNU*) 4028 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4029*) 4030 ac_count=0 4031 $as_echo_n 0123456789 >"conftest.in" 4032 while : 4033 do 4034 cat "conftest.in" "conftest.in" >"conftest.tmp" 4035 mv "conftest.tmp" "conftest.in" 4036 cp "conftest.in" "conftest.nl" 4037 $as_echo 'EGREP' >> "conftest.nl" 4038 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4039 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4040 as_fn_arith $ac_count + 1 && ac_count=$as_val 4041 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4042 # Best one so far, save it but keep looking for a better one 4043 ac_cv_path_EGREP="$ac_path_EGREP" 4044 ac_path_EGREP_max=$ac_count 4045 fi 4046 # 10*(2^10) chars as input seems more than enough 4047 test $ac_count -gt 10 && break 4048 done 4049 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4050esac 4051 4052 $ac_path_EGREP_found && break 3 4053 done 4054 done 4055 done 4056IFS=$as_save_IFS 4057 if test -z "$ac_cv_path_EGREP"; then 4058 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4059 fi 4060else 4061 ac_cv_path_EGREP=$EGREP 4062fi 4063 4064 fi 4065fi 4066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4067$as_echo "$ac_cv_path_EGREP" >&6; } 4068 EGREP="$ac_cv_path_EGREP" 4069 4070 4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4072$as_echo_n "checking for ANSI C header files... " >&6; } 4073if ${ac_cv_header_stdc+:} false; then : 4074 $as_echo_n "(cached) " >&6 4075else 4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4077/* end confdefs.h. */ 4078#include <stdlib.h> 4079#include <stdarg.h> 4080#include <string.h> 4081#include <float.h> 4082 4083int 4084main () 4085{ 4086 4087 ; 4088 return 0; 4089} 4090_ACEOF 4091if ac_fn_c_try_compile "$LINENO"; then : 4092 ac_cv_header_stdc=yes 4093else 4094 ac_cv_header_stdc=no 4095fi 4096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4097 4098if test $ac_cv_header_stdc = yes; then 4099 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4101/* end confdefs.h. */ 4102#include <string.h> 4103 4104_ACEOF 4105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4106 $EGREP "memchr" >/dev/null 2>&1; then : 4107 4108else 4109 ac_cv_header_stdc=no 4110fi 4111rm -f conftest* 4112 4113fi 4114 4115if test $ac_cv_header_stdc = yes; then 4116 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4118/* end confdefs.h. */ 4119#include <stdlib.h> 4120 4121_ACEOF 4122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4123 $EGREP "free" >/dev/null 2>&1; then : 4124 4125else 4126 ac_cv_header_stdc=no 4127fi 4128rm -f conftest* 4129 4130fi 4131 4132if test $ac_cv_header_stdc = yes; then 4133 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4134 if test "$cross_compiling" = yes; then : 4135 : 4136else 4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4138/* end confdefs.h. */ 4139#include <ctype.h> 4140#include <stdlib.h> 4141#if ((' ' & 0x0FF) == 0x020) 4142# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4143# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4144#else 4145# define ISLOWER(c) \ 4146 (('a' <= (c) && (c) <= 'i') \ 4147 || ('j' <= (c) && (c) <= 'r') \ 4148 || ('s' <= (c) && (c) <= 'z')) 4149# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4150#endif 4151 4152#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4153int 4154main () 4155{ 4156 int i; 4157 for (i = 0; i < 256; i++) 4158 if (XOR (islower (i), ISLOWER (i)) 4159 || toupper (i) != TOUPPER (i)) 4160 return 2; 4161 return 0; 4162} 4163_ACEOF 4164if ac_fn_c_try_run "$LINENO"; then : 4165 4166else 4167 ac_cv_header_stdc=no 4168fi 4169rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4170 conftest.$ac_objext conftest.beam conftest.$ac_ext 4171fi 4172 4173fi 4174fi 4175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4176$as_echo "$ac_cv_header_stdc" >&6; } 4177if test $ac_cv_header_stdc = yes; then 4178 4179$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4180 4181fi 4182 4183# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4184for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4185 inttypes.h stdint.h unistd.h 4186do : 4187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4188ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4189" 4190if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4191 cat >>confdefs.h <<_ACEOF 4192#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4193_ACEOF 4194 4195fi 4196 4197done 4198 4199 4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 4201$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 4202if ${ac_cv_c_bigendian+:} false; then : 4203 $as_echo_n "(cached) " >&6 4204else 4205 ac_cv_c_bigendian=unknown 4206 # See if we're dealing with a universal compiler. 4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4208/* end confdefs.h. */ 4209#ifndef __APPLE_CC__ 4210 not a universal capable compiler 4211 #endif 4212 typedef int dummy; 4213 4214_ACEOF 4215if ac_fn_c_try_compile "$LINENO"; then : 4216 4217 # Check for potential -arch flags. It is not universal unless 4218 # there are at least two -arch flags with different values. 4219 ac_arch= 4220 ac_prev= 4221 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 4222 if test -n "$ac_prev"; then 4223 case $ac_word in 4224 i?86 | x86_64 | ppc | ppc64) 4225 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 4226 ac_arch=$ac_word 4227 else 4228 ac_cv_c_bigendian=universal 4229 break 4230 fi 4231 ;; 4232 esac 4233 ac_prev= 4234 elif test "x$ac_word" = "x-arch"; then 4235 ac_prev=arch 4236 fi 4237 done 4238fi 4239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4240 if test $ac_cv_c_bigendian = unknown; then 4241 # See if sys/param.h defines the BYTE_ORDER macro. 4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4243/* end confdefs.h. */ 4244#include <sys/types.h> 4245 #include <sys/param.h> 4246 4247int 4248main () 4249{ 4250#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 4251 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 4252 && LITTLE_ENDIAN) 4253 bogus endian macros 4254 #endif 4255 4256 ; 4257 return 0; 4258} 4259_ACEOF 4260if ac_fn_c_try_compile "$LINENO"; then : 4261 # It does; now see whether it defined to BIG_ENDIAN or not. 4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4263/* end confdefs.h. */ 4264#include <sys/types.h> 4265 #include <sys/param.h> 4266 4267int 4268main () 4269{ 4270#if BYTE_ORDER != BIG_ENDIAN 4271 not big endian 4272 #endif 4273 4274 ; 4275 return 0; 4276} 4277_ACEOF 4278if ac_fn_c_try_compile "$LINENO"; then : 4279 ac_cv_c_bigendian=yes 4280else 4281 ac_cv_c_bigendian=no 4282fi 4283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4284fi 4285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4286 fi 4287 if test $ac_cv_c_bigendian = unknown; then 4288 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4290/* end confdefs.h. */ 4291#include <limits.h> 4292 4293int 4294main () 4295{ 4296#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 4297 bogus endian macros 4298 #endif 4299 4300 ; 4301 return 0; 4302} 4303_ACEOF 4304if ac_fn_c_try_compile "$LINENO"; then : 4305 # It does; now see whether it defined to _BIG_ENDIAN or not. 4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4307/* end confdefs.h. */ 4308#include <limits.h> 4309 4310int 4311main () 4312{ 4313#ifndef _BIG_ENDIAN 4314 not big endian 4315 #endif 4316 4317 ; 4318 return 0; 4319} 4320_ACEOF 4321if ac_fn_c_try_compile "$LINENO"; then : 4322 ac_cv_c_bigendian=yes 4323else 4324 ac_cv_c_bigendian=no 4325fi 4326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4327fi 4328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4329 fi 4330 if test $ac_cv_c_bigendian = unknown; then 4331 # Compile a test program. 4332 if test "$cross_compiling" = yes; then : 4333 # Try to guess by grepping values from an object file. 4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4335/* end confdefs.h. */ 4336short int ascii_mm[] = 4337 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4338 short int ascii_ii[] = 4339 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4340 int use_ascii (int i) { 4341 return ascii_mm[i] + ascii_ii[i]; 4342 } 4343 short int ebcdic_ii[] = 4344 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4345 short int ebcdic_mm[] = 4346 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4347 int use_ebcdic (int i) { 4348 return ebcdic_mm[i] + ebcdic_ii[i]; 4349 } 4350 extern int foo; 4351 4352int 4353main () 4354{ 4355return use_ascii (foo) == use_ebcdic (foo); 4356 ; 4357 return 0; 4358} 4359_ACEOF 4360if ac_fn_c_try_compile "$LINENO"; then : 4361 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 4362 ac_cv_c_bigendian=yes 4363 fi 4364 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4365 if test "$ac_cv_c_bigendian" = unknown; then 4366 ac_cv_c_bigendian=no 4367 else 4368 # finding both strings is unlikely to happen, but who knows? 4369 ac_cv_c_bigendian=unknown 4370 fi 4371 fi 4372fi 4373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4374else 4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4376/* end confdefs.h. */ 4377$ac_includes_default 4378int 4379main () 4380{ 4381 4382 /* Are we little or big endian? From Harbison&Steele. */ 4383 union 4384 { 4385 long int l; 4386 char c[sizeof (long int)]; 4387 } u; 4388 u.l = 1; 4389 return u.c[sizeof (long int) - 1] == 1; 4390 4391 ; 4392 return 0; 4393} 4394_ACEOF 4395if ac_fn_c_try_run "$LINENO"; then : 4396 ac_cv_c_bigendian=no 4397else 4398 ac_cv_c_bigendian=yes 4399fi 4400rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4401 conftest.$ac_objext conftest.beam conftest.$ac_ext 4402fi 4403 4404 fi 4405fi 4406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 4407$as_echo "$ac_cv_c_bigendian" >&6; } 4408 case $ac_cv_c_bigendian in #( 4409 yes) 4410 ac_cv_big_endian=1;; #( 4411 no) 4412 ac_cv_big_endian=0 ;; #( 4413 universal) 4414 4415$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 4416 4417 ;; #( 4418 *) 4419 as_fn_error $? "unknown endianness 4420 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 4421 esac 4422 4423if test "x${ac_cv_big_endian}" = "x1" ; then 4424 cat >>confdefs.h <<_ACEOF 4425#define JEMALLOC_BIG_ENDIAN 4426_ACEOF 4427 4428fi 4429 4430if test "x${je_cv_msvc}" = "xyes" -a "x${ac_cv_header_inttypes_h}" = "xno"; then 4431 CPPFLAGS="$CPPFLAGS -I${srcdir}/include/msvc_compat/C99" 4432fi 4433 4434# The cast to long int works around a bug in the HP C Compiler 4435# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4436# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4437# This bug is HP SR number 8606223364. 4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 4439$as_echo_n "checking size of void *... " >&6; } 4440if ${ac_cv_sizeof_void_p+:} false; then : 4441 $as_echo_n "(cached) " >&6 4442else 4443 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 4444 4445else 4446 if test "$ac_cv_type_void_p" = yes; then 4447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4449as_fn_error 77 "cannot compute sizeof (void *) 4450See \`config.log' for more details" "$LINENO" 5; } 4451 else 4452 ac_cv_sizeof_void_p=0 4453 fi 4454fi 4455 4456fi 4457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 4458$as_echo "$ac_cv_sizeof_void_p" >&6; } 4459 4460 4461 4462cat >>confdefs.h <<_ACEOF 4463#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 4464_ACEOF 4465 4466 4467if test "x${ac_cv_sizeof_void_p}" = "x8" ; then 4468 LG_SIZEOF_PTR=3 4469elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then 4470 LG_SIZEOF_PTR=2 4471else 4472 as_fn_error $? "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5 4473fi 4474cat >>confdefs.h <<_ACEOF 4475#define LG_SIZEOF_PTR $LG_SIZEOF_PTR 4476_ACEOF 4477 4478 4479# The cast to long int works around a bug in the HP C Compiler 4480# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4481# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4482# This bug is HP SR number 8606223364. 4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 4484$as_echo_n "checking size of int... " >&6; } 4485if ${ac_cv_sizeof_int+:} false; then : 4486 $as_echo_n "(cached) " >&6 4487else 4488 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 4489 4490else 4491 if test "$ac_cv_type_int" = yes; then 4492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4494as_fn_error 77 "cannot compute sizeof (int) 4495See \`config.log' for more details" "$LINENO" 5; } 4496 else 4497 ac_cv_sizeof_int=0 4498 fi 4499fi 4500 4501fi 4502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 4503$as_echo "$ac_cv_sizeof_int" >&6; } 4504 4505 4506 4507cat >>confdefs.h <<_ACEOF 4508#define SIZEOF_INT $ac_cv_sizeof_int 4509_ACEOF 4510 4511 4512if test "x${ac_cv_sizeof_int}" = "x8" ; then 4513 LG_SIZEOF_INT=3 4514elif test "x${ac_cv_sizeof_int}" = "x4" ; then 4515 LG_SIZEOF_INT=2 4516else 4517 as_fn_error $? "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5 4518fi 4519cat >>confdefs.h <<_ACEOF 4520#define LG_SIZEOF_INT $LG_SIZEOF_INT 4521_ACEOF 4522 4523 4524# The cast to long int works around a bug in the HP C Compiler 4525# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4526# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4527# This bug is HP SR number 8606223364. 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 4529$as_echo_n "checking size of long... " >&6; } 4530if ${ac_cv_sizeof_long+:} false; then : 4531 $as_echo_n "(cached) " >&6 4532else 4533 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 4534 4535else 4536 if test "$ac_cv_type_long" = yes; then 4537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4539as_fn_error 77 "cannot compute sizeof (long) 4540See \`config.log' for more details" "$LINENO" 5; } 4541 else 4542 ac_cv_sizeof_long=0 4543 fi 4544fi 4545 4546fi 4547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 4548$as_echo "$ac_cv_sizeof_long" >&6; } 4549 4550 4551 4552cat >>confdefs.h <<_ACEOF 4553#define SIZEOF_LONG $ac_cv_sizeof_long 4554_ACEOF 4555 4556 4557if test "x${ac_cv_sizeof_long}" = "x8" ; then 4558 LG_SIZEOF_LONG=3 4559elif test "x${ac_cv_sizeof_long}" = "x4" ; then 4560 LG_SIZEOF_LONG=2 4561else 4562 as_fn_error $? "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5 4563fi 4564cat >>confdefs.h <<_ACEOF 4565#define LG_SIZEOF_LONG $LG_SIZEOF_LONG 4566_ACEOF 4567 4568 4569# The cast to long int works around a bug in the HP C Compiler 4570# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4571# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4572# This bug is HP SR number 8606223364. 4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5 4574$as_echo_n "checking size of intmax_t... " >&6; } 4575if ${ac_cv_sizeof_intmax_t+:} false; then : 4576 $as_echo_n "(cached) " >&6 4577else 4578 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then : 4579 4580else 4581 if test "$ac_cv_type_intmax_t" = yes; then 4582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4584as_fn_error 77 "cannot compute sizeof (intmax_t) 4585See \`config.log' for more details" "$LINENO" 5; } 4586 else 4587 ac_cv_sizeof_intmax_t=0 4588 fi 4589fi 4590 4591fi 4592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5 4593$as_echo "$ac_cv_sizeof_intmax_t" >&6; } 4594 4595 4596 4597cat >>confdefs.h <<_ACEOF 4598#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t 4599_ACEOF 4600 4601 4602if test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then 4603 LG_SIZEOF_INTMAX_T=4 4604elif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then 4605 LG_SIZEOF_INTMAX_T=3 4606elif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then 4607 LG_SIZEOF_INTMAX_T=2 4608else 4609 as_fn_error $? "Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5 4610fi 4611cat >>confdefs.h <<_ACEOF 4612#define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T 4613_ACEOF 4614 4615 4616ac_aux_dir= 4617for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 4618 if test -f "$ac_dir/install-sh"; then 4619 ac_aux_dir=$ac_dir 4620 ac_install_sh="$ac_aux_dir/install-sh -c" 4621 break 4622 elif test -f "$ac_dir/install.sh"; then 4623 ac_aux_dir=$ac_dir 4624 ac_install_sh="$ac_aux_dir/install.sh -c" 4625 break 4626 elif test -f "$ac_dir/shtool"; then 4627 ac_aux_dir=$ac_dir 4628 ac_install_sh="$ac_aux_dir/shtool install -c" 4629 break 4630 fi 4631done 4632if test -z "$ac_aux_dir"; then 4633 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 4634fi 4635 4636# These three variables are undocumented and unsupported, 4637# and are intended to be withdrawn in a future Autoconf release. 4638# They can cause serious problems if a builder's source tree is in a directory 4639# whose full name contains unusual characters. 4640ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 4641ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 4642ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 4643 4644 4645# Make sure we can run config.sub. 4646$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4647 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4648 4649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4650$as_echo_n "checking build system type... " >&6; } 4651if ${ac_cv_build+:} false; then : 4652 $as_echo_n "(cached) " >&6 4653else 4654 ac_build_alias=$build_alias 4655test "x$ac_build_alias" = x && 4656 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4657test "x$ac_build_alias" = x && 4658 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4659ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4660 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4661 4662fi 4663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4664$as_echo "$ac_cv_build" >&6; } 4665case $ac_cv_build in 4666*-*-*) ;; 4667*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4668esac 4669build=$ac_cv_build 4670ac_save_IFS=$IFS; IFS='-' 4671set x $ac_cv_build 4672shift 4673build_cpu=$1 4674build_vendor=$2 4675shift; shift 4676# Remember, the first character of IFS is used to create $*, 4677# except with old shells: 4678build_os=$* 4679IFS=$ac_save_IFS 4680case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4681 4682 4683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4684$as_echo_n "checking host system type... " >&6; } 4685if ${ac_cv_host+:} false; then : 4686 $as_echo_n "(cached) " >&6 4687else 4688 if test "x$host_alias" = x; then 4689 ac_cv_host=$ac_cv_build 4690else 4691 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4692 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4693fi 4694 4695fi 4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4697$as_echo "$ac_cv_host" >&6; } 4698case $ac_cv_host in 4699*-*-*) ;; 4700*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4701esac 4702host=$ac_cv_host 4703ac_save_IFS=$IFS; IFS='-' 4704set x $ac_cv_host 4705shift 4706host_cpu=$1 4707host_vendor=$2 4708shift; shift 4709# Remember, the first character of IFS is used to create $*, 4710# except with old shells: 4711host_os=$* 4712IFS=$ac_save_IFS 4713case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4714 4715 4716CPU_SPINWAIT="" 4717case "${host_cpu}" in 4718 i686|x86_64) 4719 if ${je_cv_pause+:} false; then : 4720 $as_echo_n "(cached) " >&6 4721else 4722 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction is compilable" >&5 4724$as_echo_n "checking whether pause instruction is compilable... " >&6; } 4725if ${je_cv_pause+:} false; then : 4726 $as_echo_n "(cached) " >&6 4727else 4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4729/* end confdefs.h. */ 4730 4731int 4732main () 4733{ 4734__asm__ volatile("pause"); return 0; 4735 ; 4736 return 0; 4737} 4738_ACEOF 4739if ac_fn_c_try_link "$LINENO"; then : 4740 je_cv_pause=yes 4741else 4742 je_cv_pause=no 4743fi 4744rm -f core conftest.err conftest.$ac_objext \ 4745 conftest$ac_exeext conftest.$ac_ext 4746fi 4747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause" >&5 4748$as_echo "$je_cv_pause" >&6; } 4749 4750fi 4751 4752 if test "x${je_cv_pause}" = "xyes" ; then 4753 CPU_SPINWAIT='__asm__ volatile("pause")' 4754 fi 4755 ;; 4756 powerpc) 4757 cat >>confdefs.h <<_ACEOF 4758#define HAVE_ALTIVEC 4759_ACEOF 4760 4761 ;; 4762 *) 4763 ;; 4764esac 4765cat >>confdefs.h <<_ACEOF 4766#define CPU_SPINWAIT $CPU_SPINWAIT 4767_ACEOF 4768 4769 4770LD_PRELOAD_VAR="LD_PRELOAD" 4771so="so" 4772importlib="${so}" 4773o="$ac_objext" 4774a="a" 4775exe="$ac_exeext" 4776libprefix="lib" 4777DSO_LDFLAGS='-shared -Wl,-soname,$(@F)' 4778RPATH='-Wl,-rpath,$(1)' 4779SOREV="${so}.${rev}" 4780PIC_CFLAGS='-fPIC -DPIC' 4781CTARGET='-o $@' 4782LDTARGET='-o $@' 4783EXTRA_LDFLAGS= 4784ARFLAGS='crus' 4785AROUT=' $@' 4786CC_MM=1 4787 4788 4789 4790 4791if test -n "$ac_tool_prefix"; then 4792 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4793set dummy ${ac_tool_prefix}ar; ac_word=$2 4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4795$as_echo_n "checking for $ac_word... " >&6; } 4796if ${ac_cv_prog_AR+:} false; then : 4797 $as_echo_n "(cached) " >&6 4798else 4799 if test -n "$AR"; then 4800 ac_cv_prog_AR="$AR" # Let the user override the test. 4801else 4802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4803for as_dir in $PATH 4804do 4805 IFS=$as_save_IFS 4806 test -z "$as_dir" && as_dir=. 4807 for ac_exec_ext in '' $ac_executable_extensions; do 4808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4809 ac_cv_prog_AR="${ac_tool_prefix}ar" 4810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4811 break 2 4812 fi 4813done 4814 done 4815IFS=$as_save_IFS 4816 4817fi 4818fi 4819AR=$ac_cv_prog_AR 4820if test -n "$AR"; then 4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4822$as_echo "$AR" >&6; } 4823else 4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4825$as_echo "no" >&6; } 4826fi 4827 4828 4829fi 4830if test -z "$ac_cv_prog_AR"; then 4831 ac_ct_AR=$AR 4832 # Extract the first word of "ar", so it can be a program name with args. 4833set dummy ar; ac_word=$2 4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4835$as_echo_n "checking for $ac_word... " >&6; } 4836if ${ac_cv_prog_ac_ct_AR+:} false; then : 4837 $as_echo_n "(cached) " >&6 4838else 4839 if test -n "$ac_ct_AR"; then 4840 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4841else 4842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4843for as_dir in $PATH 4844do 4845 IFS=$as_save_IFS 4846 test -z "$as_dir" && as_dir=. 4847 for ac_exec_ext in '' $ac_executable_extensions; do 4848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4849 ac_cv_prog_ac_ct_AR="ar" 4850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4851 break 2 4852 fi 4853done 4854 done 4855IFS=$as_save_IFS 4856 4857fi 4858fi 4859ac_ct_AR=$ac_cv_prog_ac_ct_AR 4860if test -n "$ac_ct_AR"; then 4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4862$as_echo "$ac_ct_AR" >&6; } 4863else 4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4865$as_echo "no" >&6; } 4866fi 4867 4868 if test "x$ac_ct_AR" = x; then 4869 AR=":" 4870 else 4871 case $cross_compiling:$ac_tool_warned in 4872yes:) 4873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4875ac_tool_warned=yes ;; 4876esac 4877 AR=$ac_ct_AR 4878 fi 4879else 4880 AR="$ac_cv_prog_AR" 4881fi 4882 4883 4884default_munmap="1" 4885maps_coalesce="1" 4886case "${host}" in 4887 *-*-darwin* | *-*-ios*) 4888 CFLAGS="$CFLAGS" 4889 abi="macho" 4890 $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h 4891 4892 RPATH="" 4893 LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES" 4894 so="dylib" 4895 importlib="${so}" 4896 force_tls="0" 4897 DSO_LDFLAGS='-shared -Wl,-install_name,$(LIBDIR)/$(@F)' 4898 SOREV="${rev}.${so}" 4899 sbrk_deprecated="1" 4900 ;; 4901 *-*-freebsd*) 4902 CFLAGS="$CFLAGS" 4903 abi="elf" 4904 $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h 4905 4906 force_lazy_lock="1" 4907 ;; 4908 *-*-dragonfly*) 4909 CFLAGS="$CFLAGS" 4910 abi="elf" 4911 $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h 4912 4913 ;; 4914 *-*-openbsd*) 4915 CFLAGS="$CFLAGS" 4916 abi="elf" 4917 $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h 4918 4919 force_tls="0" 4920 ;; 4921 *-*-bitrig*) 4922 CFLAGS="$CFLAGS" 4923 abi="elf" 4924 $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h 4925 4926 ;; 4927 *-*-linux*) 4928 CFLAGS="$CFLAGS" 4929 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" 4930 abi="elf" 4931 $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h 4932 4933 $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED " >>confdefs.h 4934 4935 $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h 4936 4937 $as_echo "#define JEMALLOC_USE_CXX_THROW " >>confdefs.h 4938 4939 default_munmap="0" 4940 ;; 4941 *-*-netbsd*) 4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5 4943$as_echo_n "checking ABI... " >&6; } 4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4945/* end confdefs.h. */ 4946#ifdef __ELF__ 4947/* ELF */ 4948#else 4949#error aout 4950#endif 4951 4952int 4953main () 4954{ 4955 4956 ; 4957 return 0; 4958} 4959_ACEOF 4960if ac_fn_c_try_compile "$LINENO"; then : 4961 CFLAGS="$CFLAGS"; abi="elf" 4962else 4963 abi="aout" 4964fi 4965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5 4967$as_echo "$abi" >&6; } 4968 $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h 4969 4970 ;; 4971 *-*-solaris2*) 4972 CFLAGS="$CFLAGS" 4973 abi="elf" 4974 $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h 4975 4976 RPATH='-Wl,-R,$(1)' 4977 CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" 4978 LIBS="$LIBS -lposix4 -lsocket -lnsl" 4979 ;; 4980 *-ibm-aix*) 4981 if "$LG_SIZEOF_PTR" = "8"; then 4982 LD_PRELOAD_VAR="LDR_PRELOAD64" 4983 else 4984 LD_PRELOAD_VAR="LDR_PRELOAD" 4985 fi 4986 abi="xcoff" 4987 ;; 4988 *-*-mingw* | *-*-cygwin*) 4989 abi="pecoff" 4990 force_tls="0" 4991 force_lazy_lock="1" 4992 maps_coalesce="0" 4993 RPATH="" 4994 so="dll" 4995 if test "x$je_cv_msvc" = "xyes" ; then 4996 importlib="lib" 4997 DSO_LDFLAGS="-LD" 4998 EXTRA_LDFLAGS="-link -DEBUG" 4999 CTARGET='-Fo$@' 5000 LDTARGET='-Fe$@' 5001 AR='lib' 5002 ARFLAGS='-nologo -out:' 5003 AROUT='$@' 5004 CC_MM= 5005 else 5006 importlib="${so}" 5007 DSO_LDFLAGS="-shared" 5008 fi 5009 a="lib" 5010 libprefix="" 5011 SOREV="${so}" 5012 PIC_CFLAGS="" 5013 ;; 5014 *) 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5 5016$as_echo "Unsupported operating system: ${host}" >&6; } 5017 abi="elf" 5018 ;; 5019esac 5020 5021JEMALLOC_USABLE_SIZE_CONST=const 5022for ac_header in malloc.h 5023do : 5024 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" 5025if test "x$ac_cv_header_malloc_h" = xyes; then : 5026 cat >>confdefs.h <<_ACEOF 5027#define HAVE_MALLOC_H 1 5028_ACEOF 5029 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc_usable_size definition can use const argument" >&5 5031$as_echo_n "checking whether malloc_usable_size definition can use const argument... " >&6; } 5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5033/* end confdefs.h. */ 5034#include <malloc.h> 5035 #include <stddef.h> 5036 size_t malloc_usable_size(const void *ptr); 5037 5038int 5039main () 5040{ 5041 5042 ; 5043 return 0; 5044} 5045_ACEOF 5046if ac_fn_c_try_compile "$LINENO"; then : 5047 5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5049$as_echo "yes" >&6; } 5050 5051else 5052 5053 JEMALLOC_USABLE_SIZE_CONST= 5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5055$as_echo "no" >&6; } 5056 5057fi 5058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5059 5060fi 5061 5062done 5063 5064cat >>confdefs.h <<_ACEOF 5065#define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST 5066_ACEOF 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5 5090$as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; } 5091if ${je_cv_attribute+:} false; then : 5092 $as_echo_n "(cached) " >&6 5093else 5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5095/* end confdefs.h. */ 5096static __attribute__((unused)) void foo(void){} 5097int 5098main () 5099{ 5100 5101 ; 5102 return 0; 5103} 5104_ACEOF 5105if ac_fn_c_try_link "$LINENO"; then : 5106 je_cv_attribute=yes 5107else 5108 je_cv_attribute=no 5109fi 5110rm -f core conftest.err conftest.$ac_objext \ 5111 conftest$ac_exeext conftest.$ac_ext 5112fi 5113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5 5114$as_echo "$je_cv_attribute" >&6; } 5115 5116if test "x${je_cv_attribute}" = "xyes" ; then 5117 $as_echo "#define JEMALLOC_HAVE_ATTR " >>confdefs.h 5118 5119 if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then 5120 5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5 5122$as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; } 5123TCFLAGS="${CFLAGS}" 5124if test "x${CFLAGS}" = "x" ; then 5125 CFLAGS="-fvisibility=hidden" 5126else 5127 CFLAGS="${CFLAGS} -fvisibility=hidden" 5128fi 5129cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5130/* end confdefs.h. */ 5131 5132 5133int 5134main () 5135{ 5136 5137 return 0; 5138 5139 ; 5140 return 0; 5141} 5142_ACEOF 5143if ac_fn_c_try_compile "$LINENO"; then : 5144 je_cv_cflags_appended=-fvisibility=hidden 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5146$as_echo "yes" >&6; } 5147else 5148 je_cv_cflags_appended= 5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5150$as_echo "no" >&6; } 5151 CFLAGS="${TCFLAGS}" 5152 5153fi 5154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5155 5156 fi 5157fi 5158SAVED_CFLAGS="${CFLAGS}" 5159 5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 5161$as_echo_n "checking whether compiler supports -Werror... " >&6; } 5162TCFLAGS="${CFLAGS}" 5163if test "x${CFLAGS}" = "x" ; then 5164 CFLAGS="-Werror" 5165else 5166 CFLAGS="${CFLAGS} -Werror" 5167fi 5168cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5169/* end confdefs.h. */ 5170 5171 5172int 5173main () 5174{ 5175 5176 return 0; 5177 5178 ; 5179 return 0; 5180} 5181_ACEOF 5182if ac_fn_c_try_compile "$LINENO"; then : 5183 je_cv_cflags_appended=-Werror 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5185$as_echo "yes" >&6; } 5186else 5187 je_cv_cflags_appended= 5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5189$as_echo "no" >&6; } 5190 CFLAGS="${TCFLAGS}" 5191 5192fi 5193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5194 5195 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5 5197$as_echo_n "checking whether tls_model attribute is compilable... " >&6; } 5198if ${je_cv_tls_model+:} false; then : 5199 $as_echo_n "(cached) " >&6 5200else 5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5202/* end confdefs.h. */ 5203 5204int 5205main () 5206{ 5207static __thread int 5208 __attribute__((tls_model("initial-exec"), unused)) foo; 5209 foo = 0; 5210 ; 5211 return 0; 5212} 5213_ACEOF 5214if ac_fn_c_try_link "$LINENO"; then : 5215 je_cv_tls_model=yes 5216else 5217 je_cv_tls_model=no 5218fi 5219rm -f core conftest.err conftest.$ac_objext \ 5220 conftest$ac_exeext conftest.$ac_ext 5221fi 5222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5 5223$as_echo "$je_cv_tls_model" >&6; } 5224 5225CFLAGS="${SAVED_CFLAGS}" 5226if test "x${je_cv_tls_model}" = "xyes" ; then 5227 $as_echo "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h 5228 5229else 5230 $as_echo "#define JEMALLOC_TLS_MODEL " >>confdefs.h 5231 5232fi 5233SAVED_CFLAGS="${CFLAGS}" 5234 5235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 5236$as_echo_n "checking whether compiler supports -Werror... " >&6; } 5237TCFLAGS="${CFLAGS}" 5238if test "x${CFLAGS}" = "x" ; then 5239 CFLAGS="-Werror" 5240else 5241 CFLAGS="${CFLAGS} -Werror" 5242fi 5243cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5244/* end confdefs.h. */ 5245 5246 5247int 5248main () 5249{ 5250 5251 return 0; 5252 5253 ; 5254 return 0; 5255} 5256_ACEOF 5257if ac_fn_c_try_compile "$LINENO"; then : 5258 je_cv_cflags_appended=-Werror 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5260$as_echo "yes" >&6; } 5261else 5262 je_cv_cflags_appended= 5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5264$as_echo "no" >&6; } 5265 CFLAGS="${TCFLAGS}" 5266 5267fi 5268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5269 5270 5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloc_size attribute is compilable" >&5 5272$as_echo_n "checking whether alloc_size attribute is compilable... " >&6; } 5273if ${je_cv_alloc_size+:} false; then : 5274 $as_echo_n "(cached) " >&6 5275else 5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5277/* end confdefs.h. */ 5278#include <stdlib.h> 5279int 5280main () 5281{ 5282void *foo(size_t size) __attribute__((alloc_size(1))); 5283 ; 5284 return 0; 5285} 5286_ACEOF 5287if ac_fn_c_try_link "$LINENO"; then : 5288 je_cv_alloc_size=yes 5289else 5290 je_cv_alloc_size=no 5291fi 5292rm -f core conftest.err conftest.$ac_objext \ 5293 conftest$ac_exeext conftest.$ac_ext 5294fi 5295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_alloc_size" >&5 5296$as_echo "$je_cv_alloc_size" >&6; } 5297 5298CFLAGS="${SAVED_CFLAGS}" 5299if test "x${je_cv_alloc_size}" = "xyes" ; then 5300 $as_echo "#define JEMALLOC_HAVE_ATTR_ALLOC_SIZE " >>confdefs.h 5301 5302fi 5303SAVED_CFLAGS="${CFLAGS}" 5304 5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 5306$as_echo_n "checking whether compiler supports -Werror... " >&6; } 5307TCFLAGS="${CFLAGS}" 5308if test "x${CFLAGS}" = "x" ; then 5309 CFLAGS="-Werror" 5310else 5311 CFLAGS="${CFLAGS} -Werror" 5312fi 5313cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5314/* end confdefs.h. */ 5315 5316 5317int 5318main () 5319{ 5320 5321 return 0; 5322 5323 ; 5324 return 0; 5325} 5326_ACEOF 5327if ac_fn_c_try_compile "$LINENO"; then : 5328 je_cv_cflags_appended=-Werror 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5330$as_echo "yes" >&6; } 5331else 5332 je_cv_cflags_appended= 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5334$as_echo "no" >&6; } 5335 CFLAGS="${TCFLAGS}" 5336 5337fi 5338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5339 5340 5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(gnu_printf, ...) attribute is compilable" >&5 5342$as_echo_n "checking whether format(gnu_printf, ...) attribute is compilable... " >&6; } 5343if ${je_cv_format_gnu_printf+:} false; then : 5344 $as_echo_n "(cached) " >&6 5345else 5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5347/* end confdefs.h. */ 5348#include <stdlib.h> 5349int 5350main () 5351{ 5352void *foo(const char *format, ...) __attribute__((format(gnu_printf, 1, 2))); 5353 ; 5354 return 0; 5355} 5356_ACEOF 5357if ac_fn_c_try_link "$LINENO"; then : 5358 je_cv_format_gnu_printf=yes 5359else 5360 je_cv_format_gnu_printf=no 5361fi 5362rm -f core conftest.err conftest.$ac_objext \ 5363 conftest$ac_exeext conftest.$ac_ext 5364fi 5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_gnu_printf" >&5 5366$as_echo "$je_cv_format_gnu_printf" >&6; } 5367 5368CFLAGS="${SAVED_CFLAGS}" 5369if test "x${je_cv_format_gnu_printf}" = "xyes" ; then 5370 $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF " >>confdefs.h 5371 5372fi 5373SAVED_CFLAGS="${CFLAGS}" 5374 5375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 5376$as_echo_n "checking whether compiler supports -Werror... " >&6; } 5377TCFLAGS="${CFLAGS}" 5378if test "x${CFLAGS}" = "x" ; then 5379 CFLAGS="-Werror" 5380else 5381 CFLAGS="${CFLAGS} -Werror" 5382fi 5383cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5384/* end confdefs.h. */ 5385 5386 5387int 5388main () 5389{ 5390 5391 return 0; 5392 5393 ; 5394 return 0; 5395} 5396_ACEOF 5397if ac_fn_c_try_compile "$LINENO"; then : 5398 je_cv_cflags_appended=-Werror 5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5400$as_echo "yes" >&6; } 5401else 5402 je_cv_cflags_appended= 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5404$as_echo "no" >&6; } 5405 CFLAGS="${TCFLAGS}" 5406 5407fi 5408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5409 5410 5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5 5412$as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; } 5413if ${je_cv_format_printf+:} false; then : 5414 $as_echo_n "(cached) " >&6 5415else 5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5417/* end confdefs.h. */ 5418#include <stdlib.h> 5419int 5420main () 5421{ 5422void *foo(const char *format, ...) __attribute__((format(printf, 1, 2))); 5423 ; 5424 return 0; 5425} 5426_ACEOF 5427if ac_fn_c_try_link "$LINENO"; then : 5428 je_cv_format_printf=yes 5429else 5430 je_cv_format_printf=no 5431fi 5432rm -f core conftest.err conftest.$ac_objext \ 5433 conftest$ac_exeext conftest.$ac_ext 5434fi 5435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_printf" >&5 5436$as_echo "$je_cv_format_printf" >&6; } 5437 5438CFLAGS="${SAVED_CFLAGS}" 5439if test "x${je_cv_format_printf}" = "xyes" ; then 5440 $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF " >>confdefs.h 5441 5442fi 5443 5444 5445# Check whether --with-rpath was given. 5446if test "${with_rpath+set}" = set; then : 5447 withval=$with_rpath; if test "x$with_rpath" = "xno" ; then 5448 RPATH_EXTRA= 5449else 5450 RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`" 5451fi 5452else 5453 RPATH_EXTRA= 5454 5455fi 5456 5457 5458 5459# Check whether --enable-autogen was given. 5460if test "${enable_autogen+set}" = set; then : 5461 enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then 5462 enable_autogen="0" 5463else 5464 enable_autogen="1" 5465fi 5466 5467else 5468 enable_autogen="0" 5469 5470fi 5471 5472 5473 5474# Find a good install program. We prefer a C program (faster), 5475# so one script is as good as another. But avoid the broken or 5476# incompatible versions: 5477# SysV /etc/install, /usr/sbin/install 5478# SunOS /usr/etc/install 5479# IRIX /sbin/install 5480# AIX /bin/install 5481# AmigaOS /C/install, which installs bootblocks on floppy discs 5482# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 5483# AFS /usr/afsws/bin/install, which mishandles nonexistent args 5484# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 5485# OS/2's system install, which has a completely different semantic 5486# ./install, which can be erroneously created by make from ./install.sh. 5487# Reject install programs that cannot install multiple files. 5488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 5489$as_echo_n "checking for a BSD-compatible install... " >&6; } 5490if test -z "$INSTALL"; then 5491if ${ac_cv_path_install+:} false; then : 5492 $as_echo_n "(cached) " >&6 5493else 5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5495for as_dir in $PATH 5496do 5497 IFS=$as_save_IFS 5498 test -z "$as_dir" && as_dir=. 5499 # Account for people who put trailing slashes in PATH elements. 5500case $as_dir/ in #(( 5501 ./ | .// | /[cC]/* | \ 5502 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5503 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 5504 /usr/ucb/* ) ;; 5505 *) 5506 # OSF1 and SCO ODT 3.0 have their own names for install. 5507 # Don't use installbsd from OSF since it installs stuff as root 5508 # by default. 5509 for ac_prog in ginstall scoinst install; do 5510 for ac_exec_ext in '' $ac_executable_extensions; do 5511 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 5512 if test $ac_prog = install && 5513 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5514 # AIX install. It has an incompatible calling convention. 5515 : 5516 elif test $ac_prog = install && 5517 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5518 # program-specific install script used by HP pwplus--don't use. 5519 : 5520 else 5521 rm -rf conftest.one conftest.two conftest.dir 5522 echo one > conftest.one 5523 echo two > conftest.two 5524 mkdir conftest.dir 5525 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 5526 test -s conftest.one && test -s conftest.two && 5527 test -s conftest.dir/conftest.one && 5528 test -s conftest.dir/conftest.two 5529 then 5530 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 5531 break 3 5532 fi 5533 fi 5534 fi 5535 done 5536 done 5537 ;; 5538esac 5539 5540 done 5541IFS=$as_save_IFS 5542 5543rm -rf conftest.one conftest.two conftest.dir 5544 5545fi 5546 if test "${ac_cv_path_install+set}" = set; then 5547 INSTALL=$ac_cv_path_install 5548 else 5549 # As a last resort, use the slow shell script. Don't cache a 5550 # value for INSTALL within a source directory, because that will 5551 # break other packages using the cache if that directory is 5552 # removed, or if the value is a relative name. 5553 INSTALL=$ac_install_sh 5554 fi 5555fi 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5557$as_echo "$INSTALL" >&6; } 5558 5559# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5560# It thinks the first close brace ends the variable substitution. 5561test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5562 5563test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 5564 5565test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 5566 5567if test -n "$ac_tool_prefix"; then 5568 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5569set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5571$as_echo_n "checking for $ac_word... " >&6; } 5572if ${ac_cv_prog_RANLIB+:} false; then : 5573 $as_echo_n "(cached) " >&6 5574else 5575 if test -n "$RANLIB"; then 5576 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5577else 5578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5579for as_dir in $PATH 5580do 5581 IFS=$as_save_IFS 5582 test -z "$as_dir" && as_dir=. 5583 for ac_exec_ext in '' $ac_executable_extensions; do 5584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5585 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5587 break 2 5588 fi 5589done 5590 done 5591IFS=$as_save_IFS 5592 5593fi 5594fi 5595RANLIB=$ac_cv_prog_RANLIB 5596if test -n "$RANLIB"; then 5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5598$as_echo "$RANLIB" >&6; } 5599else 5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5601$as_echo "no" >&6; } 5602fi 5603 5604 5605fi 5606if test -z "$ac_cv_prog_RANLIB"; then 5607 ac_ct_RANLIB=$RANLIB 5608 # Extract the first word of "ranlib", so it can be a program name with args. 5609set dummy ranlib; ac_word=$2 5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5611$as_echo_n "checking for $ac_word... " >&6; } 5612if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5613 $as_echo_n "(cached) " >&6 5614else 5615 if test -n "$ac_ct_RANLIB"; then 5616 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5617else 5618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5619for as_dir in $PATH 5620do 5621 IFS=$as_save_IFS 5622 test -z "$as_dir" && as_dir=. 5623 for ac_exec_ext in '' $ac_executable_extensions; do 5624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5625 ac_cv_prog_ac_ct_RANLIB="ranlib" 5626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5627 break 2 5628 fi 5629done 5630 done 5631IFS=$as_save_IFS 5632 5633fi 5634fi 5635ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5636if test -n "$ac_ct_RANLIB"; then 5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5638$as_echo "$ac_ct_RANLIB" >&6; } 5639else 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5641$as_echo "no" >&6; } 5642fi 5643 5644 if test "x$ac_ct_RANLIB" = x; then 5645 RANLIB=":" 5646 else 5647 case $cross_compiling:$ac_tool_warned in 5648yes:) 5649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5651ac_tool_warned=yes ;; 5652esac 5653 RANLIB=$ac_ct_RANLIB 5654 fi 5655else 5656 RANLIB="$ac_cv_prog_RANLIB" 5657fi 5658 5659# Extract the first word of "ld", so it can be a program name with args. 5660set dummy ld; ac_word=$2 5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5662$as_echo_n "checking for $ac_word... " >&6; } 5663if ${ac_cv_path_LD+:} false; then : 5664 $as_echo_n "(cached) " >&6 5665else 5666 case $LD in 5667 [\\/]* | ?:[\\/]*) 5668 ac_cv_path_LD="$LD" # Let the user override the test with a path. 5669 ;; 5670 *) 5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5672for as_dir in $PATH 5673do 5674 IFS=$as_save_IFS 5675 test -z "$as_dir" && as_dir=. 5676 for ac_exec_ext in '' $ac_executable_extensions; do 5677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5678 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" 5679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5680 break 2 5681 fi 5682done 5683 done 5684IFS=$as_save_IFS 5685 5686 test -z "$ac_cv_path_LD" && ac_cv_path_LD="false" 5687 ;; 5688esac 5689fi 5690LD=$ac_cv_path_LD 5691if test -n "$LD"; then 5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5693$as_echo "$LD" >&6; } 5694else 5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5696$as_echo "no" >&6; } 5697fi 5698 5699 5700# Extract the first word of "autoconf", so it can be a program name with args. 5701set dummy autoconf; ac_word=$2 5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5703$as_echo_n "checking for $ac_word... " >&6; } 5704if ${ac_cv_path_AUTOCONF+:} false; then : 5705 $as_echo_n "(cached) " >&6 5706else 5707 case $AUTOCONF in 5708 [\\/]* | ?:[\\/]*) 5709 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path. 5710 ;; 5711 *) 5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5713for as_dir in $PATH 5714do 5715 IFS=$as_save_IFS 5716 test -z "$as_dir" && as_dir=. 5717 for ac_exec_ext in '' $ac_executable_extensions; do 5718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5719 ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext" 5720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5721 break 2 5722 fi 5723done 5724 done 5725IFS=$as_save_IFS 5726 5727 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="false" 5728 ;; 5729esac 5730fi 5731AUTOCONF=$ac_cv_path_AUTOCONF 5732if test -n "$AUTOCONF"; then 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 5734$as_echo "$AUTOCONF" >&6; } 5735else 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5737$as_echo "no" >&6; } 5738fi 5739 5740 5741 5742public_syms="malloc_conf malloc_message malloc calloc posix_memalign aligned_alloc realloc free mallocx rallocx xallocx sallocx dallocx sdallocx nallocx mallctl mallctlnametomib mallctlbymib malloc_stats_print malloc_usable_size" 5743 5744ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign" 5745if test "x$ac_cv_func_memalign" = xyes; then : 5746 $as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN " >>confdefs.h 5747 5748 public_syms="${public_syms} memalign" 5749fi 5750 5751ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc" 5752if test "x$ac_cv_func_valloc" = xyes; then : 5753 $as_echo "#define JEMALLOC_OVERRIDE_VALLOC " >>confdefs.h 5754 5755 public_syms="${public_syms} valloc" 5756fi 5757 5758 5759GCOV_FLAGS= 5760# Check whether --enable-code-coverage was given. 5761if test "${enable_code_coverage+set}" = set; then : 5762 enableval=$enable_code_coverage; if test "x$enable_code_coverage" = "xno" ; then 5763 enable_code_coverage="0" 5764else 5765 enable_code_coverage="1" 5766fi 5767 5768else 5769 enable_code_coverage="0" 5770 5771fi 5772 5773if test "x$enable_code_coverage" = "x1" ; then 5774 deoptimize="no" 5775 echo "$CFLAGS $EXTRA_CFLAGS" | grep '\-O' >/dev/null || deoptimize="yes" 5776 if test "x${deoptimize}" = "xyes" ; then 5777 5778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O0" >&5 5779$as_echo_n "checking whether compiler supports -O0... " >&6; } 5780TCFLAGS="${CFLAGS}" 5781if test "x${CFLAGS}" = "x" ; then 5782 CFLAGS="-O0" 5783else 5784 CFLAGS="${CFLAGS} -O0" 5785fi 5786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5787/* end confdefs.h. */ 5788 5789 5790int 5791main () 5792{ 5793 5794 return 0; 5795 5796 ; 5797 return 0; 5798} 5799_ACEOF 5800if ac_fn_c_try_compile "$LINENO"; then : 5801 je_cv_cflags_appended=-O0 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5803$as_echo "yes" >&6; } 5804else 5805 je_cv_cflags_appended= 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5807$as_echo "no" >&6; } 5808 CFLAGS="${TCFLAGS}" 5809 5810fi 5811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5812 5813 fi 5814 5815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fprofile-arcs -ftest-coverage" >&5 5816$as_echo_n "checking whether compiler supports -fprofile-arcs -ftest-coverage... " >&6; } 5817TCFLAGS="${CFLAGS}" 5818if test "x${CFLAGS}" = "x" ; then 5819 CFLAGS="-fprofile-arcs -ftest-coverage" 5820else 5821 CFLAGS="${CFLAGS} -fprofile-arcs -ftest-coverage" 5822fi 5823cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5824/* end confdefs.h. */ 5825 5826 5827int 5828main () 5829{ 5830 5831 return 0; 5832 5833 ; 5834 return 0; 5835} 5836_ACEOF 5837if ac_fn_c_try_compile "$LINENO"; then : 5838 je_cv_cflags_appended=-fprofile-arcs -ftest-coverage 5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5840$as_echo "yes" >&6; } 5841else 5842 je_cv_cflags_appended= 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5844$as_echo "no" >&6; } 5845 CFLAGS="${TCFLAGS}" 5846 5847fi 5848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5849 5850 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -fprofile-arcs -ftest-coverage" 5851 $as_echo "#define JEMALLOC_CODE_COVERAGE " >>confdefs.h 5852 5853fi 5854 5855 5856 5857# Check whether --with-mangling was given. 5858if test "${with_mangling+set}" = set; then : 5859 withval=$with_mangling; mangling_map="$with_mangling" 5860else 5861 mangling_map="" 5862fi 5863 5864 5865 5866# Check whether --with-jemalloc_prefix was given. 5867if test "${with_jemalloc_prefix+set}" = set; then : 5868 withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix" 5869else 5870 if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then 5871 JEMALLOC_PREFIX="" 5872else 5873 JEMALLOC_PREFIX="je_" 5874fi 5875 5876fi 5877 5878if test "x$JEMALLOC_PREFIX" != "x" ; then 5879 JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"` 5880 cat >>confdefs.h <<_ACEOF 5881#define JEMALLOC_PREFIX "$JEMALLOC_PREFIX" 5882_ACEOF 5883 5884 cat >>confdefs.h <<_ACEOF 5885#define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX" 5886_ACEOF 5887 5888fi 5889 5890 5891 5892# Check whether --with-export was given. 5893if test "${with_export+set}" = set; then : 5894 withval=$with_export; if test "x$with_export" = "xno"; then 5895 $as_echo "#define JEMALLOC_EXPORT /**/" >>confdefs.h 5896 5897fi 5898 5899fi 5900 5901 5902 5903# Check whether --with-private_namespace was given. 5904if test "${with_private_namespace+set}" = set; then : 5905 withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="${with_private_namespace}je_" 5906else 5907 JEMALLOC_PRIVATE_NAMESPACE="je_" 5908 5909fi 5910 5911cat >>confdefs.h <<_ACEOF 5912#define JEMALLOC_PRIVATE_NAMESPACE $JEMALLOC_PRIVATE_NAMESPACE 5913_ACEOF 5914 5915private_namespace="$JEMALLOC_PRIVATE_NAMESPACE" 5916 5917 5918 5919# Check whether --with-install_suffix was given. 5920if test "${with_install_suffix+set}" = set; then : 5921 withval=$with_install_suffix; INSTALL_SUFFIX="$with_install_suffix" 5922else 5923 INSTALL_SUFFIX= 5924 5925fi 5926 5927install_suffix="$INSTALL_SUFFIX" 5928 5929 5930je_="je_" 5931 5932 5933cfgoutputs_in="Makefile.in" 5934cfgoutputs_in="${cfgoutputs_in} jemalloc.pc.in" 5935cfgoutputs_in="${cfgoutputs_in} doc/html.xsl.in" 5936cfgoutputs_in="${cfgoutputs_in} doc/manpages.xsl.in" 5937cfgoutputs_in="${cfgoutputs_in} doc/jemalloc.xml.in" 5938cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_macros.h.in" 5939cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_protos.h.in" 5940cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_typedefs.h.in" 5941cfgoutputs_in="${cfgoutputs_in} include/jemalloc/internal/jemalloc_internal.h.in" 5942cfgoutputs_in="${cfgoutputs_in} test/test.sh.in" 5943cfgoutputs_in="${cfgoutputs_in} test/include/test/jemalloc_test.h.in" 5944 5945cfgoutputs_out="Makefile" 5946cfgoutputs_out="${cfgoutputs_out} jemalloc.pc" 5947cfgoutputs_out="${cfgoutputs_out} doc/html.xsl" 5948cfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl" 5949cfgoutputs_out="${cfgoutputs_out} doc/jemalloc.xml" 5950cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_macros.h" 5951cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_protos.h" 5952cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_typedefs.h" 5953cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_internal.h" 5954cfgoutputs_out="${cfgoutputs_out} test/test.sh" 5955cfgoutputs_out="${cfgoutputs_out} test/include/test/jemalloc_test.h" 5956 5957cfgoutputs_tup="Makefile" 5958cfgoutputs_tup="${cfgoutputs_tup} jemalloc.pc:jemalloc.pc.in" 5959cfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in" 5960cfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in" 5961cfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc.xml:doc/jemalloc.xml.in" 5962cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_macros.h:include/jemalloc/jemalloc_macros.h.in" 5963cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_protos.h:include/jemalloc/jemalloc_protos.h.in" 5964cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_typedefs.h:include/jemalloc/jemalloc_typedefs.h.in" 5965cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_internal.h" 5966cfgoutputs_tup="${cfgoutputs_tup} test/test.sh:test/test.sh.in" 5967cfgoutputs_tup="${cfgoutputs_tup} test/include/test/jemalloc_test.h:test/include/test/jemalloc_test.h.in" 5968 5969cfghdrs_in="include/jemalloc/jemalloc_defs.h.in" 5970cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/jemalloc_internal_defs.h.in" 5971cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_namespace.sh" 5972cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_unnamespace.sh" 5973cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_symbols.txt" 5974cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_namespace.sh" 5975cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_unnamespace.sh" 5976cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/size_classes.sh" 5977cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_rename.sh" 5978cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_mangle.sh" 5979cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc.sh" 5980cfghdrs_in="${cfghdrs_in} test/include/test/jemalloc_test_defs.h.in" 5981 5982cfghdrs_out="include/jemalloc/jemalloc_defs.h" 5983cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc${install_suffix}.h" 5984cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_namespace.h" 5985cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_unnamespace.h" 5986cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_symbols.txt" 5987cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_namespace.h" 5988cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_unnamespace.h" 5989cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/size_classes.h" 5990cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_protos_jet.h" 5991cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_rename.h" 5992cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle.h" 5993cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle_jet.h" 5994cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/jemalloc_internal_defs.h" 5995cfghdrs_out="${cfghdrs_out} test/include/test/jemalloc_test_defs.h" 5996 5997cfghdrs_tup="include/jemalloc/jemalloc_defs.h:include/jemalloc/jemalloc_defs.h.in" 5998cfghdrs_tup="${cfghdrs_tup} include/jemalloc/internal/jemalloc_internal_defs.h:include/jemalloc/internal/jemalloc_internal_defs.h.in" 5999cfghdrs_tup="${cfghdrs_tup} test/include/test/jemalloc_test_defs.h:test/include/test/jemalloc_test_defs.h.in" 6000 6001# Check whether --enable-cc-silence was given. 6002if test "${enable_cc_silence+set}" = set; then : 6003 enableval=$enable_cc_silence; if test "x$enable_cc_silence" = "xno" ; then 6004 enable_cc_silence="0" 6005else 6006 enable_cc_silence="1" 6007fi 6008 6009else 6010 enable_cc_silence="1" 6011 6012fi 6013 6014if test "x$enable_cc_silence" = "x1" ; then 6015 $as_echo "#define JEMALLOC_CC_SILENCE " >>confdefs.h 6016 6017fi 6018 6019# Check whether --enable-debug was given. 6020if test "${enable_debug+set}" = set; then : 6021 enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then 6022 enable_debug="0" 6023else 6024 enable_debug="1" 6025fi 6026 6027else 6028 enable_debug="0" 6029 6030fi 6031 6032if test "x$enable_debug" = "x1" ; then 6033 $as_echo "#define JEMALLOC_DEBUG " >>confdefs.h 6034 6035fi 6036if test "x$enable_debug" = "x1" ; then 6037 $as_echo "#define JEMALLOC_DEBUG " >>confdefs.h 6038 6039 enable_ivsalloc="1" 6040fi 6041 6042 6043# Check whether --enable-ivsalloc was given. 6044if test "${enable_ivsalloc+set}" = set; then : 6045 enableval=$enable_ivsalloc; if test "x$enable_ivsalloc" = "xno" ; then 6046 enable_ivsalloc="0" 6047else 6048 enable_ivsalloc="1" 6049fi 6050 6051else 6052 enable_ivsalloc="0" 6053 6054fi 6055 6056if test "x$enable_ivsalloc" = "x1" ; then 6057 $as_echo "#define JEMALLOC_IVSALLOC " >>confdefs.h 6058 6059fi 6060 6061if test "x$enable_debug" = "x0" -a "x$no_CFLAGS" = "xyes" ; then 6062 optimize="no" 6063 echo "$CFLAGS $EXTRA_CFLAGS" | grep '\-O' >/dev/null || optimize="yes" 6064 if test "x${optimize}" = "xyes" ; then 6065 if test "x$GCC" = "xyes" ; then 6066 6067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5 6068$as_echo_n "checking whether compiler supports -O3... " >&6; } 6069TCFLAGS="${CFLAGS}" 6070if test "x${CFLAGS}" = "x" ; then 6071 CFLAGS="-O3" 6072else 6073 CFLAGS="${CFLAGS} -O3" 6074fi 6075cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6076/* end confdefs.h. */ 6077 6078 6079int 6080main () 6081{ 6082 6083 return 0; 6084 6085 ; 6086 return 0; 6087} 6088_ACEOF 6089if ac_fn_c_try_compile "$LINENO"; then : 6090 je_cv_cflags_appended=-O3 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6092$as_echo "yes" >&6; } 6093else 6094 je_cv_cflags_appended= 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6096$as_echo "no" >&6; } 6097 CFLAGS="${TCFLAGS}" 6098 6099fi 6100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6101 6102 6103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5 6104$as_echo_n "checking whether compiler supports -funroll-loops... " >&6; } 6105TCFLAGS="${CFLAGS}" 6106if test "x${CFLAGS}" = "x" ; then 6107 CFLAGS="-funroll-loops" 6108else 6109 CFLAGS="${CFLAGS} -funroll-loops" 6110fi 6111cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6112/* end confdefs.h. */ 6113 6114 6115int 6116main () 6117{ 6118 6119 return 0; 6120 6121 ; 6122 return 0; 6123} 6124_ACEOF 6125if ac_fn_c_try_compile "$LINENO"; then : 6126 je_cv_cflags_appended=-funroll-loops 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6128$as_echo "yes" >&6; } 6129else 6130 je_cv_cflags_appended= 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6132$as_echo "no" >&6; } 6133 CFLAGS="${TCFLAGS}" 6134 6135fi 6136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6137 6138 elif test "x$je_cv_msvc" = "xyes" ; then 6139 6140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5 6141$as_echo_n "checking whether compiler supports -O2... " >&6; } 6142TCFLAGS="${CFLAGS}" 6143if test "x${CFLAGS}" = "x" ; then 6144 CFLAGS="-O2" 6145else 6146 CFLAGS="${CFLAGS} -O2" 6147fi 6148cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6149/* end confdefs.h. */ 6150 6151 6152int 6153main () 6154{ 6155 6156 return 0; 6157 6158 ; 6159 return 0; 6160} 6161_ACEOF 6162if ac_fn_c_try_compile "$LINENO"; then : 6163 je_cv_cflags_appended=-O2 6164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6165$as_echo "yes" >&6; } 6166else 6167 je_cv_cflags_appended= 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6169$as_echo "no" >&6; } 6170 CFLAGS="${TCFLAGS}" 6171 6172fi 6173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6174 6175 else 6176 6177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5 6178$as_echo_n "checking whether compiler supports -O... " >&6; } 6179TCFLAGS="${CFLAGS}" 6180if test "x${CFLAGS}" = "x" ; then 6181 CFLAGS="-O" 6182else 6183 CFLAGS="${CFLAGS} -O" 6184fi 6185cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6186/* end confdefs.h. */ 6187 6188 6189int 6190main () 6191{ 6192 6193 return 0; 6194 6195 ; 6196 return 0; 6197} 6198_ACEOF 6199if ac_fn_c_try_compile "$LINENO"; then : 6200 je_cv_cflags_appended=-O 6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6202$as_echo "yes" >&6; } 6203else 6204 je_cv_cflags_appended= 6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6206$as_echo "no" >&6; } 6207 CFLAGS="${TCFLAGS}" 6208 6209fi 6210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6211 6212 fi 6213 fi 6214fi 6215 6216# Check whether --enable-stats was given. 6217if test "${enable_stats+set}" = set; then : 6218 enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then 6219 enable_stats="0" 6220else 6221 enable_stats="1" 6222fi 6223 6224else 6225 enable_stats="1" 6226 6227fi 6228 6229if test "x$enable_stats" = "x1" ; then 6230 $as_echo "#define JEMALLOC_STATS " >>confdefs.h 6231 6232fi 6233 6234 6235# Check whether --enable-prof was given. 6236if test "${enable_prof+set}" = set; then : 6237 enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then 6238 enable_prof="0" 6239else 6240 enable_prof="1" 6241fi 6242 6243else 6244 enable_prof="0" 6245 6246fi 6247 6248if test "x$enable_prof" = "x1" ; then 6249 backtrace_method="" 6250else 6251 backtrace_method="N/A" 6252fi 6253 6254# Check whether --enable-prof-libunwind was given. 6255if test "${enable_prof_libunwind+set}" = set; then : 6256 enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then 6257 enable_prof_libunwind="0" 6258else 6259 enable_prof_libunwind="1" 6260fi 6261 6262else 6263 enable_prof_libunwind="0" 6264 6265fi 6266 6267 6268# Check whether --with-static_libunwind was given. 6269if test "${with_static_libunwind+set}" = set; then : 6270 withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then 6271 LUNWIND="-lunwind" 6272else 6273 if test ! -f "$with_static_libunwind" ; then 6274 as_fn_error $? "Static libunwind not found: $with_static_libunwind" "$LINENO" 5 6275 fi 6276 LUNWIND="$with_static_libunwind" 6277fi 6278else 6279 LUNWIND="-lunwind" 6280 6281fi 6282 6283if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then 6284 for ac_header in libunwind.h 6285do : 6286 ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default" 6287if test "x$ac_cv_header_libunwind_h" = xyes; then : 6288 cat >>confdefs.h <<_ACEOF 6289#define HAVE_LIBUNWIND_H 1 6290_ACEOF 6291 6292else 6293 enable_prof_libunwind="0" 6294fi 6295 6296done 6297 6298 if test "x$LUNWIND" = "x-lunwind" ; then 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unw_backtrace in -lunwind" >&5 6300$as_echo_n "checking for unw_backtrace in -lunwind... " >&6; } 6301if ${ac_cv_lib_unwind_unw_backtrace+:} false; then : 6302 $as_echo_n "(cached) " >&6 6303else 6304 ac_check_lib_save_LIBS=$LIBS 6305LIBS="-lunwind $LIBS" 6306cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6307/* end confdefs.h. */ 6308 6309/* Override any GCC internal prototype to avoid an error. 6310 Use char because int might match the return type of a GCC 6311 builtin and then its argument prototype would still apply. */ 6312#ifdef __cplusplus 6313extern "C" 6314#endif 6315char unw_backtrace (); 6316int 6317main () 6318{ 6319return unw_backtrace (); 6320 ; 6321 return 0; 6322} 6323_ACEOF 6324if ac_fn_c_try_link "$LINENO"; then : 6325 ac_cv_lib_unwind_unw_backtrace=yes 6326else 6327 ac_cv_lib_unwind_unw_backtrace=no 6328fi 6329rm -f core conftest.err conftest.$ac_objext \ 6330 conftest$ac_exeext conftest.$ac_ext 6331LIBS=$ac_check_lib_save_LIBS 6332fi 6333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_unw_backtrace" >&5 6334$as_echo "$ac_cv_lib_unwind_unw_backtrace" >&6; } 6335if test "x$ac_cv_lib_unwind_unw_backtrace" = xyes; then : 6336 LIBS="$LIBS $LUNWIND" 6337else 6338 enable_prof_libunwind="0" 6339fi 6340 6341 else 6342 LIBS="$LIBS $LUNWIND" 6343 fi 6344 if test "x${enable_prof_libunwind}" = "x1" ; then 6345 backtrace_method="libunwind" 6346 $as_echo "#define JEMALLOC_PROF_LIBUNWIND " >>confdefs.h 6347 6348 fi 6349fi 6350 6351# Check whether --enable-prof-libgcc was given. 6352if test "${enable_prof_libgcc+set}" = set; then : 6353 enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then 6354 enable_prof_libgcc="0" 6355else 6356 enable_prof_libgcc="1" 6357fi 6358 6359else 6360 enable_prof_libgcc="1" 6361 6362fi 6363 6364if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \ 6365 -a "x$GCC" = "xyes" ; then 6366 for ac_header in unwind.h 6367do : 6368 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default" 6369if test "x$ac_cv_header_unwind_h" = xyes; then : 6370 cat >>confdefs.h <<_ACEOF 6371#define HAVE_UNWIND_H 1 6372_ACEOF 6373 6374else 6375 enable_prof_libgcc="0" 6376fi 6377 6378done 6379 6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5 6381$as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; } 6382if ${ac_cv_lib_gcc__Unwind_Backtrace+:} false; then : 6383 $as_echo_n "(cached) " >&6 6384else 6385 ac_check_lib_save_LIBS=$LIBS 6386LIBS="-lgcc $LIBS" 6387cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6388/* end confdefs.h. */ 6389 6390/* Override any GCC internal prototype to avoid an error. 6391 Use char because int might match the return type of a GCC 6392 builtin and then its argument prototype would still apply. */ 6393#ifdef __cplusplus 6394extern "C" 6395#endif 6396char _Unwind_Backtrace (); 6397int 6398main () 6399{ 6400return _Unwind_Backtrace (); 6401 ; 6402 return 0; 6403} 6404_ACEOF 6405if ac_fn_c_try_link "$LINENO"; then : 6406 ac_cv_lib_gcc__Unwind_Backtrace=yes 6407else 6408 ac_cv_lib_gcc__Unwind_Backtrace=no 6409fi 6410rm -f core conftest.err conftest.$ac_objext \ 6411 conftest$ac_exeext conftest.$ac_ext 6412LIBS=$ac_check_lib_save_LIBS 6413fi 6414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5 6415$as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; } 6416if test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes; then : 6417 LIBS="$LIBS -lgcc" 6418else 6419 enable_prof_libgcc="0" 6420fi 6421 6422 if test "x${enable_prof_libgcc}" = "x1" ; then 6423 backtrace_method="libgcc" 6424 $as_echo "#define JEMALLOC_PROF_LIBGCC " >>confdefs.h 6425 6426 fi 6427else 6428 enable_prof_libgcc="0" 6429fi 6430 6431# Check whether --enable-prof-gcc was given. 6432if test "${enable_prof_gcc+set}" = set; then : 6433 enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then 6434 enable_prof_gcc="0" 6435else 6436 enable_prof_gcc="1" 6437fi 6438 6439else 6440 enable_prof_gcc="1" 6441 6442fi 6443 6444if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \ 6445 -a "x$GCC" = "xyes" ; then 6446 6447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fno-omit-frame-pointer" >&5 6448$as_echo_n "checking whether compiler supports -fno-omit-frame-pointer... " >&6; } 6449TCFLAGS="${CFLAGS}" 6450if test "x${CFLAGS}" = "x" ; then 6451 CFLAGS="-fno-omit-frame-pointer" 6452else 6453 CFLAGS="${CFLAGS} -fno-omit-frame-pointer" 6454fi 6455cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6456/* end confdefs.h. */ 6457 6458 6459int 6460main () 6461{ 6462 6463 return 0; 6464 6465 ; 6466 return 0; 6467} 6468_ACEOF 6469if ac_fn_c_try_compile "$LINENO"; then : 6470 je_cv_cflags_appended=-fno-omit-frame-pointer 6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6472$as_echo "yes" >&6; } 6473else 6474 je_cv_cflags_appended= 6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6476$as_echo "no" >&6; } 6477 CFLAGS="${TCFLAGS}" 6478 6479fi 6480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6481 6482 backtrace_method="gcc intrinsics" 6483 $as_echo "#define JEMALLOC_PROF_GCC " >>confdefs.h 6484 6485else 6486 enable_prof_gcc="0" 6487fi 6488 6489if test "x$backtrace_method" = "x" ; then 6490 backtrace_method="none (disabling profiling)" 6491 enable_prof="0" 6492fi 6493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5 6494$as_echo_n "checking configured backtracing method... " >&6; } 6495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5 6496$as_echo "$backtrace_method" >&6; } 6497if test "x$enable_prof" = "x1" ; then 6498 if test "x$abi" != "xpecoff"; then 6499 LIBS="$LIBS -lm" 6500 fi 6501 6502 $as_echo "#define JEMALLOC_PROF " >>confdefs.h 6503 6504fi 6505 6506 6507# Check whether --enable-tcache was given. 6508if test "${enable_tcache+set}" = set; then : 6509 enableval=$enable_tcache; if test "x$enable_tcache" = "xno" ; then 6510 enable_tcache="0" 6511else 6512 enable_tcache="1" 6513fi 6514 6515else 6516 enable_tcache="1" 6517 6518fi 6519 6520if test "x$enable_tcache" = "x1" ; then 6521 $as_echo "#define JEMALLOC_TCACHE " >>confdefs.h 6522 6523fi 6524 6525 6526if test "x${maps_coalesce}" = "x1" ; then 6527 $as_echo "#define JEMALLOC_MAPS_COALESCE " >>confdefs.h 6528 6529fi 6530 6531# Check whether --enable-munmap was given. 6532if test "${enable_munmap+set}" = set; then : 6533 enableval=$enable_munmap; if test "x$enable_munmap" = "xno" ; then 6534 enable_munmap="0" 6535else 6536 enable_munmap="1" 6537fi 6538 6539else 6540 enable_munmap="${default_munmap}" 6541 6542fi 6543 6544if test "x$enable_munmap" = "x1" ; then 6545 $as_echo "#define JEMALLOC_MUNMAP " >>confdefs.h 6546 6547fi 6548 6549 6550have_dss="1" 6551ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk" 6552if test "x$ac_cv_func_sbrk" = xyes; then : 6553 have_sbrk="1" 6554else 6555 have_sbrk="0" 6556fi 6557 6558if test "x$have_sbrk" = "x1" ; then 6559 if test "x$sbrk_deprecated" = "x1" ; then 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling dss allocation because sbrk is deprecated" >&5 6561$as_echo "Disabling dss allocation because sbrk is deprecated" >&6; } 6562 have_dss="0" 6563 fi 6564else 6565 have_dss="0" 6566fi 6567 6568if test "x$have_dss" = "x1" ; then 6569 $as_echo "#define JEMALLOC_DSS " >>confdefs.h 6570 6571fi 6572 6573# Check whether --enable-fill was given. 6574if test "${enable_fill+set}" = set; then : 6575 enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then 6576 enable_fill="0" 6577else 6578 enable_fill="1" 6579fi 6580 6581else 6582 enable_fill="1" 6583 6584fi 6585 6586if test "x$enable_fill" = "x1" ; then 6587 $as_echo "#define JEMALLOC_FILL " >>confdefs.h 6588 6589fi 6590 6591 6592# Check whether --enable-utrace was given. 6593if test "${enable_utrace+set}" = set; then : 6594 enableval=$enable_utrace; if test "x$enable_utrace" = "xno" ; then 6595 enable_utrace="0" 6596else 6597 enable_utrace="1" 6598fi 6599 6600else 6601 enable_utrace="0" 6602 6603fi 6604 6605 6606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5 6607$as_echo_n "checking whether utrace(2) is compilable... " >&6; } 6608if ${je_cv_utrace+:} false; then : 6609 $as_echo_n "(cached) " >&6 6610else 6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6612/* end confdefs.h. */ 6613 6614#include <sys/types.h> 6615#include <sys/param.h> 6616#include <sys/time.h> 6617#include <sys/uio.h> 6618#include <sys/ktrace.h> 6619 6620int 6621main () 6622{ 6623 6624 utrace((void *)0, 0); 6625 6626 ; 6627 return 0; 6628} 6629_ACEOF 6630if ac_fn_c_try_link "$LINENO"; then : 6631 je_cv_utrace=yes 6632else 6633 je_cv_utrace=no 6634fi 6635rm -f core conftest.err conftest.$ac_objext \ 6636 conftest$ac_exeext conftest.$ac_ext 6637fi 6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5 6639$as_echo "$je_cv_utrace" >&6; } 6640 6641if test "x${je_cv_utrace}" = "xno" ; then 6642 enable_utrace="0" 6643fi 6644if test "x$enable_utrace" = "x1" ; then 6645 $as_echo "#define JEMALLOC_UTRACE " >>confdefs.h 6646 6647fi 6648 6649 6650# Check whether --enable-valgrind was given. 6651if test "${enable_valgrind+set}" = set; then : 6652 enableval=$enable_valgrind; if test "x$enable_valgrind" = "xno" ; then 6653 enable_valgrind="0" 6654else 6655 enable_valgrind="1" 6656fi 6657 6658else 6659 enable_valgrind="1" 6660 6661fi 6662 6663if test "x$enable_valgrind" = "x1" ; then 6664 6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether valgrind is compilable" >&5 6666$as_echo_n "checking whether valgrind is compilable... " >&6; } 6667if ${je_cv_valgrind+:} false; then : 6668 $as_echo_n "(cached) " >&6 6669else 6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6671/* end confdefs.h. */ 6672 6673#include <valgrind/valgrind.h> 6674#include <valgrind/memcheck.h> 6675 6676#if !defined(VALGRIND_RESIZEINPLACE_BLOCK) 6677# error "Incompatible Valgrind version" 6678#endif 6679 6680int 6681main () 6682{ 6683 6684 ; 6685 return 0; 6686} 6687_ACEOF 6688if ac_fn_c_try_link "$LINENO"; then : 6689 je_cv_valgrind=yes 6690else 6691 je_cv_valgrind=no 6692fi 6693rm -f core conftest.err conftest.$ac_objext \ 6694 conftest$ac_exeext conftest.$ac_ext 6695fi 6696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_valgrind" >&5 6697$as_echo "$je_cv_valgrind" >&6; } 6698 6699 if test "x${je_cv_valgrind}" = "xno" ; then 6700 enable_valgrind="0" 6701 fi 6702 if test "x$enable_valgrind" = "x1" ; then 6703 $as_echo "#define JEMALLOC_VALGRIND " >>confdefs.h 6704 6705 fi 6706fi 6707 6708 6709# Check whether --enable-xmalloc was given. 6710if test "${enable_xmalloc+set}" = set; then : 6711 enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then 6712 enable_xmalloc="0" 6713else 6714 enable_xmalloc="1" 6715fi 6716 6717else 6718 enable_xmalloc="0" 6719 6720fi 6721 6722if test "x$enable_xmalloc" = "x1" ; then 6723 $as_echo "#define JEMALLOC_XMALLOC " >>confdefs.h 6724 6725fi 6726 6727 6728# Check whether --enable-cache-oblivious was given. 6729if test "${enable_cache_oblivious+set}" = set; then : 6730 enableval=$enable_cache_oblivious; if test "x$enable_cache_oblivious" = "xno" ; then 6731 enable_cache_oblivious="0" 6732else 6733 enable_cache_oblivious="1" 6734fi 6735 6736else 6737 enable_cache_oblivious="1" 6738 6739fi 6740 6741if test "x$enable_cache_oblivious" = "x1" ; then 6742 $as_echo "#define JEMALLOC_CACHE_OBLIVIOUS " >>confdefs.h 6743 6744fi 6745 6746 6747 6748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_ffsl is compilable" >&5 6749$as_echo_n "checking whether a program using __builtin_ffsl is compilable... " >&6; } 6750if ${je_cv_gcc_builtin_ffsl+:} false; then : 6751 $as_echo_n "(cached) " >&6 6752else 6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6754/* end confdefs.h. */ 6755 6756#include <stdio.h> 6757#include <strings.h> 6758#include <string.h> 6759 6760int 6761main () 6762{ 6763 6764 { 6765 int rv = __builtin_ffsl(0x08); 6766 printf("%d\n", rv); 6767 } 6768 6769 ; 6770 return 0; 6771} 6772_ACEOF 6773if ac_fn_c_try_link "$LINENO"; then : 6774 je_cv_gcc_builtin_ffsl=yes 6775else 6776 je_cv_gcc_builtin_ffsl=no 6777fi 6778rm -f core conftest.err conftest.$ac_objext \ 6779 conftest$ac_exeext conftest.$ac_ext 6780fi 6781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_ffsl" >&5 6782$as_echo "$je_cv_gcc_builtin_ffsl" >&6; } 6783 6784if test "x${je_cv_gcc_builtin_ffsl}" = "xyes" ; then 6785 $as_echo "#define JEMALLOC_INTERNAL_FFSL __builtin_ffsl" >>confdefs.h 6786 6787 $as_echo "#define JEMALLOC_INTERNAL_FFS __builtin_ffs" >>confdefs.h 6788 6789else 6790 6791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5 6792$as_echo_n "checking whether a program using ffsl is compilable... " >&6; } 6793if ${je_cv_function_ffsl+:} false; then : 6794 $as_echo_n "(cached) " >&6 6795else 6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6797/* end confdefs.h. */ 6798 6799 #include <stdio.h> 6800 #include <strings.h> 6801 #include <string.h> 6802 6803int 6804main () 6805{ 6806 6807 { 6808 int rv = ffsl(0x08); 6809 printf("%d\n", rv); 6810 } 6811 6812 ; 6813 return 0; 6814} 6815_ACEOF 6816if ac_fn_c_try_link "$LINENO"; then : 6817 je_cv_function_ffsl=yes 6818else 6819 je_cv_function_ffsl=no 6820fi 6821rm -f core conftest.err conftest.$ac_objext \ 6822 conftest$ac_exeext conftest.$ac_ext 6823fi 6824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5 6825$as_echo "$je_cv_function_ffsl" >&6; } 6826 6827 if test "x${je_cv_function_ffsl}" = "xyes" ; then 6828 $as_echo "#define JEMALLOC_INTERNAL_FFSL ffsl" >>confdefs.h 6829 6830 $as_echo "#define JEMALLOC_INTERNAL_FFS ffs" >>confdefs.h 6831 6832 else 6833 as_fn_error $? "Cannot build without ffsl(3) or __builtin_ffsl()" "$LINENO" 5 6834 fi 6835fi 6836 6837 6838# Check whether --with-lg_tiny_min was given. 6839if test "${with_lg_tiny_min+set}" = set; then : 6840 withval=$with_lg_tiny_min; LG_TINY_MIN="$with_lg_tiny_min" 6841else 6842 LG_TINY_MIN="3" 6843fi 6844 6845cat >>confdefs.h <<_ACEOF 6846#define LG_TINY_MIN $LG_TINY_MIN 6847_ACEOF 6848 6849 6850 6851# Check whether --with-lg_quantum was given. 6852if test "${with_lg_quantum+set}" = set; then : 6853 withval=$with_lg_quantum; LG_QUANTA="$with_lg_quantum" 6854else 6855 LG_QUANTA="3 4" 6856fi 6857 6858if test "x$with_lg_quantum" != "x" ; then 6859 cat >>confdefs.h <<_ACEOF 6860#define LG_QUANTUM $with_lg_quantum 6861_ACEOF 6862 6863fi 6864 6865 6866# Check whether --with-lg_page was given. 6867if test "${with_lg_page+set}" = set; then : 6868 withval=$with_lg_page; LG_PAGE="$with_lg_page" 6869else 6870 LG_PAGE="detect" 6871fi 6872 6873if test "x$LG_PAGE" = "xdetect"; then 6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LG_PAGE" >&5 6875$as_echo_n "checking LG_PAGE... " >&6; } 6876if ${je_cv_lg_page+:} false; then : 6877 $as_echo_n "(cached) " >&6 6878else 6879 if test "$cross_compiling" = yes; then : 6880 je_cv_lg_page=12 6881else 6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6883/* end confdefs.h. */ 6884 6885#include <strings.h> 6886#ifdef _WIN32 6887#include <windows.h> 6888#else 6889#include <unistd.h> 6890#endif 6891#include <stdio.h> 6892 6893int 6894main () 6895{ 6896 6897 int result; 6898 FILE *f; 6899 6900#ifdef _WIN32 6901 SYSTEM_INFO si; 6902 GetSystemInfo(&si); 6903 result = si.dwPageSize; 6904#else 6905 result = sysconf(_SC_PAGESIZE); 6906#endif 6907 if (result == -1) { 6908 return 1; 6909 } 6910 result = JEMALLOC_INTERNAL_FFSL(result) - 1; 6911 6912 f = fopen("conftest.out", "w"); 6913 if (f == NULL) { 6914 return 1; 6915 } 6916 fprintf(f, "%d\n", result); 6917 fclose(f); 6918 6919 return 0; 6920 6921 ; 6922 return 0; 6923} 6924_ACEOF 6925if ac_fn_c_try_run "$LINENO"; then : 6926 je_cv_lg_page=`cat conftest.out` 6927else 6928 je_cv_lg_page=undefined 6929fi 6930rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6931 conftest.$ac_objext conftest.beam conftest.$ac_ext 6932fi 6933 6934fi 6935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_page" >&5 6936$as_echo "$je_cv_lg_page" >&6; } 6937fi 6938if test "x${je_cv_lg_page}" != "x" ; then 6939 LG_PAGE="${je_cv_lg_page}" 6940fi 6941if test "x${LG_PAGE}" != "xundefined" ; then 6942 cat >>confdefs.h <<_ACEOF 6943#define LG_PAGE $LG_PAGE 6944_ACEOF 6945 6946else 6947 as_fn_error $? "cannot determine value for LG_PAGE" "$LINENO" 5 6948fi 6949 6950 6951# Check whether --with-lg_page_sizes was given. 6952if test "${with_lg_page_sizes+set}" = set; then : 6953 withval=$with_lg_page_sizes; LG_PAGE_SIZES="$with_lg_page_sizes" 6954else 6955 LG_PAGE_SIZES="$LG_PAGE" 6956fi 6957 6958 6959 6960# Check whether --with-lg_size_class_group was given. 6961if test "${with_lg_size_class_group+set}" = set; then : 6962 withval=$with_lg_size_class_group; LG_SIZE_CLASS_GROUP="$with_lg_size_class_group" 6963else 6964 LG_SIZE_CLASS_GROUP="2" 6965fi 6966 6967 6968if test ! -e "${objroot}VERSION" ; then 6969 if test ! -e "${srcroot}VERSION" ; then 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Missing VERSION file, and unable to generate it; creating bogus VERSION" >&5 6971$as_echo "Missing VERSION file, and unable to generate it; creating bogus VERSION" >&6; } 6972 echo "0.0.0-0-g0000000000000000000000000000000000000000" > "${objroot}VERSION" 6973 else 6974 cp ${srcroot}VERSION ${objroot}VERSION 6975 fi 6976fi 6977jemalloc_version=`cat "${objroot}VERSION"` 6978jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'` 6979jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'` 6980jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'` 6981jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'` 6982jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'` 6983 6984 6985 6986 6987 6988 6989 6990 6991if test "x$abi" != "xpecoff" ; then 6992 for ac_header in pthread.h 6993do : 6994 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 6995if test "x$ac_cv_header_pthread_h" = xyes; then : 6996 cat >>confdefs.h <<_ACEOF 6997#define HAVE_PTHREAD_H 1 6998_ACEOF 6999 7000else 7001 as_fn_error $? "pthread.h is missing" "$LINENO" 5 7002fi 7003 7004done 7005 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 7007$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 7008if ${ac_cv_lib_pthread_pthread_create+:} false; then : 7009 $as_echo_n "(cached) " >&6 7010else 7011 ac_check_lib_save_LIBS=$LIBS 7012LIBS="-lpthread $LIBS" 7013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7014/* end confdefs.h. */ 7015 7016/* Override any GCC internal prototype to avoid an error. 7017 Use char because int might match the return type of a GCC 7018 builtin and then its argument prototype would still apply. */ 7019#ifdef __cplusplus 7020extern "C" 7021#endif 7022char pthread_create (); 7023int 7024main () 7025{ 7026return pthread_create (); 7027 ; 7028 return 0; 7029} 7030_ACEOF 7031if ac_fn_c_try_link "$LINENO"; then : 7032 ac_cv_lib_pthread_pthread_create=yes 7033else 7034 ac_cv_lib_pthread_pthread_create=no 7035fi 7036rm -f core conftest.err conftest.$ac_objext \ 7037 conftest$ac_exeext conftest.$ac_ext 7038LIBS=$ac_check_lib_save_LIBS 7039fi 7040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 7041$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 7042if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 7043 LIBS="$LIBS -lpthread" 7044else 7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 7046$as_echo_n "checking for library containing pthread_create... " >&6; } 7047if ${ac_cv_search_pthread_create+:} false; then : 7048 $as_echo_n "(cached) " >&6 7049else 7050 ac_func_search_save_LIBS=$LIBS 7051cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7052/* end confdefs.h. */ 7053 7054/* Override any GCC internal prototype to avoid an error. 7055 Use char because int might match the return type of a GCC 7056 builtin and then its argument prototype would still apply. */ 7057#ifdef __cplusplus 7058extern "C" 7059#endif 7060char pthread_create (); 7061int 7062main () 7063{ 7064return pthread_create (); 7065 ; 7066 return 0; 7067} 7068_ACEOF 7069for ac_lib in '' ; do 7070 if test -z "$ac_lib"; then 7071 ac_res="none required" 7072 else 7073 ac_res=-l$ac_lib 7074 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7075 fi 7076 if ac_fn_c_try_link "$LINENO"; then : 7077 ac_cv_search_pthread_create=$ac_res 7078fi 7079rm -f core conftest.err conftest.$ac_objext \ 7080 conftest$ac_exeext 7081 if ${ac_cv_search_pthread_create+:} false; then : 7082 break 7083fi 7084done 7085if ${ac_cv_search_pthread_create+:} false; then : 7086 7087else 7088 ac_cv_search_pthread_create=no 7089fi 7090rm conftest.$ac_ext 7091LIBS=$ac_func_search_save_LIBS 7092fi 7093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 7094$as_echo "$ac_cv_search_pthread_create" >&6; } 7095ac_res=$ac_cv_search_pthread_create 7096if test "$ac_res" != no; then : 7097 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7098 7099else 7100 as_fn_error $? "libpthread is missing" "$LINENO" 5 7101fi 7102 7103fi 7104 7105fi 7106 7107CPPFLAGS="$CPPFLAGS -D_REENTRANT" 7108 7109SAVED_LIBS="${LIBS}" 7110LIBS= 7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 7112$as_echo_n "checking for library containing clock_gettime... " >&6; } 7113if ${ac_cv_search_clock_gettime+:} false; then : 7114 $as_echo_n "(cached) " >&6 7115else 7116 ac_func_search_save_LIBS=$LIBS 7117cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7118/* end confdefs.h. */ 7119 7120/* Override any GCC internal prototype to avoid an error. 7121 Use char because int might match the return type of a GCC 7122 builtin and then its argument prototype would still apply. */ 7123#ifdef __cplusplus 7124extern "C" 7125#endif 7126char clock_gettime (); 7127int 7128main () 7129{ 7130return clock_gettime (); 7131 ; 7132 return 0; 7133} 7134_ACEOF 7135for ac_lib in '' rt; do 7136 if test -z "$ac_lib"; then 7137 ac_res="none required" 7138 else 7139 ac_res=-l$ac_lib 7140 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7141 fi 7142 if ac_fn_c_try_link "$LINENO"; then : 7143 ac_cv_search_clock_gettime=$ac_res 7144fi 7145rm -f core conftest.err conftest.$ac_objext \ 7146 conftest$ac_exeext 7147 if ${ac_cv_search_clock_gettime+:} false; then : 7148 break 7149fi 7150done 7151if ${ac_cv_search_clock_gettime+:} false; then : 7152 7153else 7154 ac_cv_search_clock_gettime=no 7155fi 7156rm conftest.$ac_ext 7157LIBS=$ac_func_search_save_LIBS 7158fi 7159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 7160$as_echo "$ac_cv_search_clock_gettime" >&6; } 7161ac_res=$ac_cv_search_clock_gettime 7162if test "$ac_res" != no; then : 7163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7164 TESTLIBS="${LIBS}" 7165fi 7166 7167 7168LIBS="${SAVED_LIBS}" 7169 7170ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv" 7171if test "x$ac_cv_func_secure_getenv" = xyes; then : 7172 have_secure_getenv="1" 7173else 7174 have_secure_getenv="0" 7175 7176fi 7177 7178if test "x$have_secure_getenv" = "x1" ; then 7179 $as_echo "#define JEMALLOC_HAVE_SECURE_GETENV " >>confdefs.h 7180 7181fi 7182 7183ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 7184if test "x$ac_cv_func_issetugid" = xyes; then : 7185 have_issetugid="1" 7186else 7187 have_issetugid="0" 7188 7189fi 7190 7191if test "x$have_issetugid" = "x1" ; then 7192 $as_echo "#define JEMALLOC_HAVE_ISSETUGID " >>confdefs.h 7193 7194fi 7195 7196ac_fn_c_check_func "$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup" 7197if test "x$ac_cv_func__malloc_thread_cleanup" = xyes; then : 7198 have__malloc_thread_cleanup="1" 7199else 7200 have__malloc_thread_cleanup="0" 7201 7202fi 7203 7204if test "x$have__malloc_thread_cleanup" = "x1" ; then 7205 $as_echo "#define JEMALLOC_MALLOC_THREAD_CLEANUP " >>confdefs.h 7206 7207 force_tls="1" 7208fi 7209 7210ac_fn_c_check_func "$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb" 7211if test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes; then : 7212 have__pthread_mutex_init_calloc_cb="1" 7213else 7214 have__pthread_mutex_init_calloc_cb="0" 7215 7216fi 7217 7218if test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then 7219 $as_echo "#define JEMALLOC_MUTEX_INIT_CB 1" >>confdefs.h 7220 7221fi 7222 7223# Check whether --enable-lazy_lock was given. 7224if test "${enable_lazy_lock+set}" = set; then : 7225 enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then 7226 enable_lazy_lock="0" 7227else 7228 enable_lazy_lock="1" 7229fi 7230 7231else 7232 enable_lazy_lock="" 7233 7234fi 7235 7236if test "x$enable_lazy_lock" = "x" -a "x${force_lazy_lock}" = "x1" ; then 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5 7238$as_echo "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; } 7239 enable_lazy_lock="1" 7240fi 7241if test "x$enable_lazy_lock" = "x1" ; then 7242 if test "x$abi" != "xpecoff" ; then 7243 for ac_header in dlfcn.h 7244do : 7245 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 7246if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7247 cat >>confdefs.h <<_ACEOF 7248#define HAVE_DLFCN_H 1 7249_ACEOF 7250 7251else 7252 as_fn_error $? "dlfcn.h is missing" "$LINENO" 5 7253fi 7254 7255done 7256 7257 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" 7258if test "x$ac_cv_func_dlsym" = xyes; then : 7259 7260else 7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 7262$as_echo_n "checking for dlsym in -ldl... " >&6; } 7263if ${ac_cv_lib_dl_dlsym+:} false; then : 7264 $as_echo_n "(cached) " >&6 7265else 7266 ac_check_lib_save_LIBS=$LIBS 7267LIBS="-ldl $LIBS" 7268cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7269/* end confdefs.h. */ 7270 7271/* Override any GCC internal prototype to avoid an error. 7272 Use char because int might match the return type of a GCC 7273 builtin and then its argument prototype would still apply. */ 7274#ifdef __cplusplus 7275extern "C" 7276#endif 7277char dlsym (); 7278int 7279main () 7280{ 7281return dlsym (); 7282 ; 7283 return 0; 7284} 7285_ACEOF 7286if ac_fn_c_try_link "$LINENO"; then : 7287 ac_cv_lib_dl_dlsym=yes 7288else 7289 ac_cv_lib_dl_dlsym=no 7290fi 7291rm -f core conftest.err conftest.$ac_objext \ 7292 conftest$ac_exeext conftest.$ac_ext 7293LIBS=$ac_check_lib_save_LIBS 7294fi 7295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 7296$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 7297if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 7298 LIBS="$LIBS -ldl" 7299else 7300 as_fn_error $? "libdl is missing" "$LINENO" 5 7301fi 7302 7303 7304fi 7305 7306 fi 7307 $as_echo "#define JEMALLOC_LAZY_LOCK " >>confdefs.h 7308 7309else 7310 enable_lazy_lock="0" 7311fi 7312 7313 7314# Check whether --enable-tls was given. 7315if test "${enable_tls+set}" = set; then : 7316 enableval=$enable_tls; if test "x$enable_tls" = "xno" ; then 7317 enable_tls="0" 7318else 7319 enable_tls="1" 7320fi 7321 7322else 7323 enable_tls="" 7324 7325fi 7326 7327if test "x${enable_tls}" = "x" ; then 7328 if test "x${force_tls}" = "x1" ; then 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing TLS to avoid allocator/threading bootstrap issues" >&5 7330$as_echo "Forcing TLS to avoid allocator/threading bootstrap issues" >&6; } 7331 enable_tls="1" 7332 elif test "x${force_tls}" = "x0" ; then 7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no TLS to avoid allocator/threading bootstrap issues" >&5 7334$as_echo "Forcing no TLS to avoid allocator/threading bootstrap issues" >&6; } 7335 enable_tls="0" 7336 else 7337 enable_tls="1" 7338 fi 7339fi 7340if test "x${enable_tls}" = "x1" ; then 7341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5 7342$as_echo_n "checking for TLS... " >&6; } 7343cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7344/* end confdefs.h. */ 7345 7346 __thread int x; 7347 7348int 7349main () 7350{ 7351 7352 x = 42; 7353 7354 return 0; 7355 7356 ; 7357 return 0; 7358} 7359_ACEOF 7360if ac_fn_c_try_compile "$LINENO"; then : 7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7362$as_echo "yes" >&6; } 7363else 7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7365$as_echo "no" >&6; } 7366 enable_tls="0" 7367fi 7368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7369else 7370 enable_tls="0" 7371fi 7372 7373if test "x${enable_tls}" = "x1" ; then 7374 if test "x${force_tls}" = "x0" ; then 7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS enabled despite being marked unusable on this platform" >&5 7376$as_echo "$as_me: WARNING: TLS enabled despite being marked unusable on this platform" >&2;} 7377 fi 7378 cat >>confdefs.h <<_ACEOF 7379#define JEMALLOC_TLS 7380_ACEOF 7381 7382elif test "x${force_tls}" = "x1" ; then 7383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS disabled despite being marked critical on this platform" >&5 7384$as_echo "$as_me: WARNING: TLS disabled despite being marked critical on this platform" >&2;} 7385fi 7386 7387 7388 7389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 atomics is compilable" >&5 7390$as_echo_n "checking whether C11 atomics is compilable... " >&6; } 7391if ${je_cv_c11atomics+:} false; then : 7392 $as_echo_n "(cached) " >&6 7393else 7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7395/* end confdefs.h. */ 7396 7397#include <stdint.h> 7398#if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_ATOMICS__) 7399#include <stdatomic.h> 7400#else 7401#error Atomics not available 7402#endif 7403 7404int 7405main () 7406{ 7407 7408 uint64_t *p = (uint64_t *)0; 7409 uint64_t x = 1; 7410 volatile atomic_uint_least64_t *a = (volatile atomic_uint_least64_t *)p; 7411 uint64_t r = atomic_fetch_add(a, x) + x; 7412 return (r == 0); 7413 7414 ; 7415 return 0; 7416} 7417_ACEOF 7418if ac_fn_c_try_link "$LINENO"; then : 7419 je_cv_c11atomics=yes 7420else 7421 je_cv_c11atomics=no 7422fi 7423rm -f core conftest.err conftest.$ac_objext \ 7424 conftest$ac_exeext conftest.$ac_ext 7425fi 7426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_c11atomics" >&5 7427$as_echo "$je_cv_c11atomics" >&6; } 7428 7429if test "x${je_cv_c11atomics}" = "xyes" ; then 7430 $as_echo "#define JEMALLOC_C11ATOMICS 1" >>confdefs.h 7431 7432fi 7433 7434 7435 7436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic(9) is compilable" >&5 7437$as_echo_n "checking whether atomic(9) is compilable... " >&6; } 7438if ${je_cv_atomic9+:} false; then : 7439 $as_echo_n "(cached) " >&6 7440else 7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7442/* end confdefs.h. */ 7443 7444#include <sys/types.h> 7445#include <machine/atomic.h> 7446#include <inttypes.h> 7447 7448int 7449main () 7450{ 7451 7452 { 7453 uint32_t x32 = 0; 7454 volatile uint32_t *x32p = &x32; 7455 atomic_fetchadd_32(x32p, 1); 7456 } 7457 { 7458 unsigned long xlong = 0; 7459 volatile unsigned long *xlongp = &xlong; 7460 atomic_fetchadd_long(xlongp, 1); 7461 } 7462 7463 ; 7464 return 0; 7465} 7466_ACEOF 7467if ac_fn_c_try_link "$LINENO"; then : 7468 je_cv_atomic9=yes 7469else 7470 je_cv_atomic9=no 7471fi 7472rm -f core conftest.err conftest.$ac_objext \ 7473 conftest$ac_exeext conftest.$ac_ext 7474fi 7475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_atomic9" >&5 7476$as_echo "$je_cv_atomic9" >&6; } 7477 7478if test "x${je_cv_atomic9}" = "xyes" ; then 7479 $as_echo "#define JEMALLOC_ATOMIC9 1" >>confdefs.h 7480 7481fi 7482 7483 7484 7485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5 7486$as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; } 7487if ${je_cv_osatomic+:} false; then : 7488 $as_echo_n "(cached) " >&6 7489else 7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7491/* end confdefs.h. */ 7492 7493#include <libkern/OSAtomic.h> 7494#include <inttypes.h> 7495 7496int 7497main () 7498{ 7499 7500 { 7501 int32_t x32 = 0; 7502 volatile int32_t *x32p = &x32; 7503 OSAtomicAdd32(1, x32p); 7504 } 7505 { 7506 int64_t x64 = 0; 7507 volatile int64_t *x64p = &x64; 7508 OSAtomicAdd64(1, x64p); 7509 } 7510 7511 ; 7512 return 0; 7513} 7514_ACEOF 7515if ac_fn_c_try_link "$LINENO"; then : 7516 je_cv_osatomic=yes 7517else 7518 je_cv_osatomic=no 7519fi 7520rm -f core conftest.err conftest.$ac_objext \ 7521 conftest$ac_exeext conftest.$ac_ext 7522fi 7523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5 7524$as_echo "$je_cv_osatomic" >&6; } 7525 7526if test "x${je_cv_osatomic}" = "xyes" ; then 7527 $as_echo "#define JEMALLOC_OSATOMIC " >>confdefs.h 7528 7529fi 7530 7531 7532 7533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(2) is compilable" >&5 7534$as_echo_n "checking whether madvise(2) is compilable... " >&6; } 7535if ${je_cv_madvise+:} false; then : 7536 $as_echo_n "(cached) " >&6 7537else 7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7539/* end confdefs.h. */ 7540 7541#include <sys/mman.h> 7542 7543int 7544main () 7545{ 7546 7547 { 7548 madvise((void *)0, 0, 0); 7549 } 7550 7551 ; 7552 return 0; 7553} 7554_ACEOF 7555if ac_fn_c_try_link "$LINENO"; then : 7556 je_cv_madvise=yes 7557else 7558 je_cv_madvise=no 7559fi 7560rm -f core conftest.err conftest.$ac_objext \ 7561 conftest$ac_exeext conftest.$ac_ext 7562fi 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madvise" >&5 7564$as_echo "$je_cv_madvise" >&6; } 7565 7566if test "x${je_cv_madvise}" = "xyes" ; then 7567 $as_echo "#define JEMALLOC_HAVE_MADVISE " >>confdefs.h 7568 7569fi 7570 7571 7572 7573 7574if test "x${je_cv_atomic9}" != "xyes" -a "x${je_cv_osatomic}" != "xyes" ; then 7575 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 32-bit __sync_{add,sub}_and_fetch()" >&5 7577$as_echo_n "checking whether to force 32-bit __sync_{add,sub}_and_fetch()... " >&6; } 7578if ${je_cv_sync_compare_and_swap_4+:} false; then : 7579 $as_echo_n "(cached) " >&6 7580else 7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7582/* end confdefs.h. */ 7583 7584 #include <stdint.h> 7585 7586int 7587main () 7588{ 7589 7590 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 7591 { 7592 uint32_t x32 = 0; 7593 __sync_add_and_fetch(&x32, 42); 7594 __sync_sub_and_fetch(&x32, 1); 7595 } 7596 #else 7597 #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is defined, no need to force 7598 #endif 7599 7600 ; 7601 return 0; 7602} 7603_ACEOF 7604if ac_fn_c_try_link "$LINENO"; then : 7605 je_cv_sync_compare_and_swap_4=yes 7606else 7607 je_cv_sync_compare_and_swap_4=no 7608fi 7609rm -f core conftest.err conftest.$ac_objext \ 7610 conftest$ac_exeext conftest.$ac_ext 7611fi 7612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_4" >&5 7613$as_echo "$je_cv_sync_compare_and_swap_4" >&6; } 7614 7615 if test "x${je_cv_sync_compare_and_swap_4}" = "xyes" ; then 7616 $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_4 " >>confdefs.h 7617 7618 fi 7619 7620 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 64-bit __sync_{add,sub}_and_fetch()" >&5 7622$as_echo_n "checking whether to force 64-bit __sync_{add,sub}_and_fetch()... " >&6; } 7623if ${je_cv_sync_compare_and_swap_8+:} false; then : 7624 $as_echo_n "(cached) " >&6 7625else 7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7627/* end confdefs.h. */ 7628 7629 #include <stdint.h> 7630 7631int 7632main () 7633{ 7634 7635 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 7636 { 7637 uint64_t x64 = 0; 7638 __sync_add_and_fetch(&x64, 42); 7639 __sync_sub_and_fetch(&x64, 1); 7640 } 7641 #else 7642 #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 is defined, no need to force 7643 #endif 7644 7645 ; 7646 return 0; 7647} 7648_ACEOF 7649if ac_fn_c_try_link "$LINENO"; then : 7650 je_cv_sync_compare_and_swap_8=yes 7651else 7652 je_cv_sync_compare_and_swap_8=no 7653fi 7654rm -f core conftest.err conftest.$ac_objext \ 7655 conftest$ac_exeext conftest.$ac_ext 7656fi 7657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_8" >&5 7658$as_echo "$je_cv_sync_compare_and_swap_8" >&6; } 7659 7660 if test "x${je_cv_sync_compare_and_swap_8}" = "xyes" ; then 7661 $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_8 " >>confdefs.h 7662 7663 fi 7664 7665fi 7666 7667 7668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5 7669$as_echo_n "checking for __builtin_clz... " >&6; } 7670if ${je_cv_builtin_clz+:} false; then : 7671 $as_echo_n "(cached) " >&6 7672else 7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7674/* end confdefs.h. */ 7675 7676int 7677main () 7678{ 7679 7680 { 7681 unsigned x = 0; 7682 int y = __builtin_clz(x); 7683 } 7684 { 7685 unsigned long x = 0; 7686 int y = __builtin_clzl(x); 7687 } 7688 7689 ; 7690 return 0; 7691} 7692_ACEOF 7693if ac_fn_c_try_link "$LINENO"; then : 7694 je_cv_builtin_clz=yes 7695else 7696 je_cv_builtin_clz=no 7697fi 7698rm -f core conftest.err conftest.$ac_objext \ 7699 conftest$ac_exeext conftest.$ac_ext 7700fi 7701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_builtin_clz" >&5 7702$as_echo "$je_cv_builtin_clz" >&6; } 7703 7704if test "x${je_cv_builtin_clz}" = "xyes" ; then 7705 $as_echo "#define JEMALLOC_HAVE_BUILTIN_CLZ " >>confdefs.h 7706 7707fi 7708 7709 7710 7711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSSpin*() is compilable" >&5 7712$as_echo_n "checking whether Darwin OSSpin*() is compilable... " >&6; } 7713if ${je_cv_osspin+:} false; then : 7714 $as_echo_n "(cached) " >&6 7715else 7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7717/* end confdefs.h. */ 7718 7719#include <libkern/OSAtomic.h> 7720#include <inttypes.h> 7721 7722int 7723main () 7724{ 7725 7726 OSSpinLock lock = 0; 7727 OSSpinLockLock(&lock); 7728 OSSpinLockUnlock(&lock); 7729 7730 ; 7731 return 0; 7732} 7733_ACEOF 7734if ac_fn_c_try_link "$LINENO"; then : 7735 je_cv_osspin=yes 7736else 7737 je_cv_osspin=no 7738fi 7739rm -f core conftest.err conftest.$ac_objext \ 7740 conftest$ac_exeext conftest.$ac_ext 7741fi 7742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osspin" >&5 7743$as_echo "$je_cv_osspin" >&6; } 7744 7745if test "x${je_cv_osspin}" = "xyes" ; then 7746 $as_echo "#define JEMALLOC_OSSPIN " >>confdefs.h 7747 7748fi 7749 7750 7751# Check whether --enable-zone-allocator was given. 7752if test "${enable_zone_allocator+set}" = set; then : 7753 enableval=$enable_zone_allocator; if test "x$enable_zone_allocator" = "xno" ; then 7754 enable_zone_allocator="0" 7755else 7756 enable_zone_allocator="1" 7757fi 7758 7759else 7760 if test "x${abi}" = "xmacho"; then 7761 enable_zone_allocator="1" 7762fi 7763 7764 7765fi 7766 7767 7768 7769if test "x${enable_zone_allocator}" = "x1" ; then 7770 if test "x${abi}" != "xmacho"; then 7771 as_fn_error $? "--enable-zone-allocator is only supported on Darwin" "$LINENO" 5 7772 fi 7773 $as_echo "#define JEMALLOC_ZONE " >>confdefs.h 7774 7775 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking malloc zone version" >&5 7777$as_echo_n "checking malloc zone version... " >&6; } 7778 7779 7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7781/* end confdefs.h. */ 7782#include <malloc/malloc.h> 7783int 7784main () 7785{ 7786static int foo[sizeof(malloc_zone_t) == sizeof(void *) * 14 ? 1 : -1] 7787 7788 ; 7789 return 0; 7790} 7791_ACEOF 7792if ac_fn_c_try_compile "$LINENO"; then : 7793 JEMALLOC_ZONE_VERSION=3 7794else 7795 7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7797/* end confdefs.h. */ 7798#include <malloc/malloc.h> 7799int 7800main () 7801{ 7802static int foo[sizeof(malloc_zone_t) == sizeof(void *) * 15 ? 1 : -1] 7803 7804 ; 7805 return 0; 7806} 7807_ACEOF 7808if ac_fn_c_try_compile "$LINENO"; then : 7809 JEMALLOC_ZONE_VERSION=5 7810else 7811 7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7813/* end confdefs.h. */ 7814#include <malloc/malloc.h> 7815int 7816main () 7817{ 7818static int foo[sizeof(malloc_zone_t) == sizeof(void *) * 16 ? 1 : -1] 7819 7820 ; 7821 return 0; 7822} 7823_ACEOF 7824if ac_fn_c_try_compile "$LINENO"; then : 7825 7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7827/* end confdefs.h. */ 7828#include <malloc/malloc.h> 7829int 7830main () 7831{ 7832static int foo[sizeof(malloc_introspection_t) == sizeof(void *) * 9 ? 1 : -1] 7833 7834 ; 7835 return 0; 7836} 7837_ACEOF 7838if ac_fn_c_try_compile "$LINENO"; then : 7839 JEMALLOC_ZONE_VERSION=6 7840else 7841 7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7843/* end confdefs.h. */ 7844#include <malloc/malloc.h> 7845int 7846main () 7847{ 7848static int foo[sizeof(malloc_introspection_t) == sizeof(void *) * 13 ? 1 : -1] 7849 7850 ; 7851 return 0; 7852} 7853_ACEOF 7854if ac_fn_c_try_compile "$LINENO"; then : 7855 JEMALLOC_ZONE_VERSION=7 7856else 7857 JEMALLOC_ZONE_VERSION= 7858 7859fi 7860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7861fi 7862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7863else 7864 7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7866/* end confdefs.h. */ 7867#include <malloc/malloc.h> 7868int 7869main () 7870{ 7871static int foo[sizeof(malloc_zone_t) == sizeof(void *) * 17 ? 1 : -1] 7872 7873 ; 7874 return 0; 7875} 7876_ACEOF 7877if ac_fn_c_try_compile "$LINENO"; then : 7878 JEMALLOC_ZONE_VERSION=8 7879else 7880 7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7882/* end confdefs.h. */ 7883#include <malloc/malloc.h> 7884int 7885main () 7886{ 7887static int foo[sizeof(malloc_zone_t) > sizeof(void *) * 17 ? 1 : -1] 7888 7889 ; 7890 return 0; 7891} 7892_ACEOF 7893if ac_fn_c_try_compile "$LINENO"; then : 7894 JEMALLOC_ZONE_VERSION=9 7895else 7896 JEMALLOC_ZONE_VERSION= 7897 7898fi 7899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7900fi 7901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7902fi 7903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7904fi 7905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7906fi 7907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7908 if test "x${JEMALLOC_ZONE_VERSION}" = "x"; then 7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 7910$as_echo "unsupported" >&6; } 7911 as_fn_error $? "Unsupported malloc zone version" "$LINENO" 5 7912 fi 7913 if test "${JEMALLOC_ZONE_VERSION}" = 9; then 7914 JEMALLOC_ZONE_VERSION=8 7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: > 8" >&5 7916$as_echo "> 8" >&6; } 7917 else 7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JEMALLOC_ZONE_VERSION" >&5 7919$as_echo "$JEMALLOC_ZONE_VERSION" >&6; } 7920 fi 7921 cat >>confdefs.h <<_ACEOF 7922#define JEMALLOC_ZONE_VERSION $JEMALLOC_ZONE_VERSION 7923_ACEOF 7924 7925fi 7926 7927 7928 7929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc malloc hook is compilable" >&5 7930$as_echo_n "checking whether glibc malloc hook is compilable... " >&6; } 7931if ${je_cv_glibc_malloc_hook+:} false; then : 7932 $as_echo_n "(cached) " >&6 7933else 7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7935/* end confdefs.h. */ 7936 7937#include <stddef.h> 7938 7939extern void (* __free_hook)(void *ptr); 7940extern void *(* __malloc_hook)(size_t size); 7941extern void *(* __realloc_hook)(void *ptr, size_t size); 7942 7943int 7944main () 7945{ 7946 7947 void *ptr = 0L; 7948 if (__malloc_hook) ptr = __malloc_hook(1); 7949 if (__realloc_hook) ptr = __realloc_hook(ptr, 2); 7950 if (__free_hook && ptr) __free_hook(ptr); 7951 7952 ; 7953 return 0; 7954} 7955_ACEOF 7956if ac_fn_c_try_link "$LINENO"; then : 7957 je_cv_glibc_malloc_hook=yes 7958else 7959 je_cv_glibc_malloc_hook=no 7960fi 7961rm -f core conftest.err conftest.$ac_objext \ 7962 conftest$ac_exeext conftest.$ac_ext 7963fi 7964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_malloc_hook" >&5 7965$as_echo "$je_cv_glibc_malloc_hook" >&6; } 7966 7967if test "x${je_cv_glibc_malloc_hook}" = "xyes" ; then 7968 $as_echo "#define JEMALLOC_GLIBC_MALLOC_HOOK " >>confdefs.h 7969 7970fi 7971 7972 7973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc memalign hook is compilable" >&5 7974$as_echo_n "checking whether glibc memalign hook is compilable... " >&6; } 7975if ${je_cv_glibc_memalign_hook+:} false; then : 7976 $as_echo_n "(cached) " >&6 7977else 7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7979/* end confdefs.h. */ 7980 7981#include <stddef.h> 7982 7983extern void *(* __memalign_hook)(size_t alignment, size_t size); 7984 7985int 7986main () 7987{ 7988 7989 void *ptr = 0L; 7990 if (__memalign_hook) ptr = __memalign_hook(16, 7); 7991 7992 ; 7993 return 0; 7994} 7995_ACEOF 7996if ac_fn_c_try_link "$LINENO"; then : 7997 je_cv_glibc_memalign_hook=yes 7998else 7999 je_cv_glibc_memalign_hook=no 8000fi 8001rm -f core conftest.err conftest.$ac_objext \ 8002 conftest$ac_exeext conftest.$ac_ext 8003fi 8004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_memalign_hook" >&5 8005$as_echo "$je_cv_glibc_memalign_hook" >&6; } 8006 8007if test "x${je_cv_glibc_memalign_hook}" = "xyes" ; then 8008 $as_echo "#define JEMALLOC_GLIBC_MEMALIGN_HOOK " >>confdefs.h 8009 8010fi 8011 8012 8013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads adaptive mutexes is compilable" >&5 8014$as_echo_n "checking whether pthreads adaptive mutexes is compilable... " >&6; } 8015if ${je_cv_pthread_mutex_adaptive_np+:} false; then : 8016 $as_echo_n "(cached) " >&6 8017else 8018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8019/* end confdefs.h. */ 8020 8021#include <pthread.h> 8022 8023int 8024main () 8025{ 8026 8027 pthread_mutexattr_t attr; 8028 pthread_mutexattr_init(&attr); 8029 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP); 8030 pthread_mutexattr_destroy(&attr); 8031 8032 ; 8033 return 0; 8034} 8035_ACEOF 8036if ac_fn_c_try_link "$LINENO"; then : 8037 je_cv_pthread_mutex_adaptive_np=yes 8038else 8039 je_cv_pthread_mutex_adaptive_np=no 8040fi 8041rm -f core conftest.err conftest.$ac_objext \ 8042 conftest$ac_exeext conftest.$ac_ext 8043fi 8044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_mutex_adaptive_np" >&5 8045$as_echo "$je_cv_pthread_mutex_adaptive_np" >&6; } 8046 8047if test "x${je_cv_pthread_mutex_adaptive_np}" = "xyes" ; then 8048 $as_echo "#define JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP " >>confdefs.h 8049 8050fi 8051 8052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 8053$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 8054if ${ac_cv_header_stdbool_h+:} false; then : 8055 $as_echo_n "(cached) " >&6 8056else 8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8058/* end confdefs.h. */ 8059 8060 #include <stdbool.h> 8061 #ifndef bool 8062 "error: bool is not defined" 8063 #endif 8064 #ifndef false 8065 "error: false is not defined" 8066 #endif 8067 #if false 8068 "error: false is not 0" 8069 #endif 8070 #ifndef true 8071 "error: true is not defined" 8072 #endif 8073 #if true != 1 8074 "error: true is not 1" 8075 #endif 8076 #ifndef __bool_true_false_are_defined 8077 "error: __bool_true_false_are_defined is not defined" 8078 #endif 8079 8080 struct s { _Bool s: 1; _Bool t; } s; 8081 8082 char a[true == 1 ? 1 : -1]; 8083 char b[false == 0 ? 1 : -1]; 8084 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 8085 char d[(bool) 0.5 == true ? 1 : -1]; 8086 /* See body of main program for 'e'. */ 8087 char f[(_Bool) 0.0 == false ? 1 : -1]; 8088 char g[true]; 8089 char h[sizeof (_Bool)]; 8090 char i[sizeof s.t]; 8091 enum { j = false, k = true, l = false * true, m = true * 256 }; 8092 /* The following fails for 8093 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 8094 _Bool n[m]; 8095 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 8096 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 8097 /* Catch a bug in an HP-UX C compiler. See 8098 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 8099 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 8100 */ 8101 _Bool q = true; 8102 _Bool *pq = &q; 8103 8104int 8105main () 8106{ 8107 8108 bool e = &s; 8109 *pq |= q; 8110 *pq |= ! q; 8111 /* Refer to every declared value, to avoid compiler optimizations. */ 8112 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 8113 + !m + !n + !o + !p + !q + !pq); 8114 8115 ; 8116 return 0; 8117} 8118_ACEOF 8119if ac_fn_c_try_compile "$LINENO"; then : 8120 ac_cv_header_stdbool_h=yes 8121else 8122 ac_cv_header_stdbool_h=no 8123fi 8124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8125fi 8126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 8127$as_echo "$ac_cv_header_stdbool_h" >&6; } 8128 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 8129if test "x$ac_cv_type__Bool" = xyes; then : 8130 8131cat >>confdefs.h <<_ACEOF 8132#define HAVE__BOOL 1 8133_ACEOF 8134 8135 8136fi 8137 8138 8139if test $ac_cv_header_stdbool_h = yes; then 8140 8141$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 8142 8143fi 8144 8145 8146 8147ac_config_commands="$ac_config_commands include/jemalloc/internal/private_namespace.h" 8148 8149ac_config_commands="$ac_config_commands include/jemalloc/internal/private_unnamespace.h" 8150 8151ac_config_commands="$ac_config_commands include/jemalloc/internal/public_symbols.txt" 8152 8153ac_config_commands="$ac_config_commands include/jemalloc/internal/public_namespace.h" 8154 8155ac_config_commands="$ac_config_commands include/jemalloc/internal/public_unnamespace.h" 8156 8157ac_config_commands="$ac_config_commands include/jemalloc/internal/size_classes.h" 8158 8159ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_protos_jet.h" 8160 8161ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_rename.h" 8162 8163ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle.h" 8164 8165ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle_jet.h" 8166 8167ac_config_commands="$ac_config_commands include/jemalloc/jemalloc.h" 8168 8169 8170 8171 8172ac_config_headers="$ac_config_headers $cfghdrs_tup" 8173 8174 8175 8176ac_config_files="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc-config bin/jemalloc.sh bin/jeprof" 8177 8178 8179 8180cat >confcache <<\_ACEOF 8181# This file is a shell script that caches the results of configure 8182# tests run on this system so they can be shared between configure 8183# scripts and configure runs, see configure's option --config-cache. 8184# It is not useful on other systems. If it contains results you don't 8185# want to keep, you may remove or edit it. 8186# 8187# config.status only pays attention to the cache file if you give it 8188# the --recheck option to rerun configure. 8189# 8190# `ac_cv_env_foo' variables (set or unset) will be overridden when 8191# loading this file, other *unset* `ac_cv_foo' will be assigned the 8192# following values. 8193 8194_ACEOF 8195 8196# The following way of writing the cache mishandles newlines in values, 8197# but we know of no workaround that is simple, portable, and efficient. 8198# So, we kill variables containing newlines. 8199# Ultrix sh set writes to stderr and can't be redirected directly, 8200# and sets the high bit in the cache file unless we assign to the vars. 8201( 8202 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8203 eval ac_val=\$$ac_var 8204 case $ac_val in #( 8205 *${as_nl}*) 8206 case $ac_var in #( 8207 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 8208$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 8209 esac 8210 case $ac_var in #( 8211 _ | IFS | as_nl) ;; #( 8212 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 8213 *) { eval $ac_var=; unset $ac_var;} ;; 8214 esac ;; 8215 esac 8216 done 8217 8218 (set) 2>&1 | 8219 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8220 *${as_nl}ac_space=\ *) 8221 # `set' does not quote correctly, so add quotes: double-quote 8222 # substitution turns \\\\ into \\, and sed turns \\ into \. 8223 sed -n \ 8224 "s/'/'\\\\''/g; 8225 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8226 ;; #( 8227 *) 8228 # `set' quotes correctly as required by POSIX, so do not add quotes. 8229 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 8230 ;; 8231 esac | 8232 sort 8233) | 8234 sed ' 8235 /^ac_cv_env_/b end 8236 t clear 8237 :clear 8238 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8239 t end 8240 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8241 :end' >>confcache 8242if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8243 if test -w "$cache_file"; then 8244 if test "x$cache_file" != "x/dev/null"; then 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 8246$as_echo "$as_me: updating cache $cache_file" >&6;} 8247 if test ! -f "$cache_file" || test -h "$cache_file"; then 8248 cat confcache >"$cache_file" 8249 else 8250 case $cache_file in #( 8251 */* | ?:*) 8252 mv -f confcache "$cache_file"$$ && 8253 mv -f "$cache_file"$$ "$cache_file" ;; #( 8254 *) 8255 mv -f confcache "$cache_file" ;; 8256 esac 8257 fi 8258 fi 8259 else 8260 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 8261$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8262 fi 8263fi 8264rm -f confcache 8265 8266test "x$prefix" = xNONE && prefix=$ac_default_prefix 8267# Let make expand exec_prefix. 8268test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8269 8270DEFS=-DHAVE_CONFIG_H 8271 8272ac_libobjs= 8273ac_ltlibobjs= 8274U= 8275for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8276 # 1. Remove the extension, and $U if already installed. 8277 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8278 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 8279 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8280 # will be set to the directory where LIBOBJS objects are built. 8281 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8282 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 8283done 8284LIBOBJS=$ac_libobjs 8285 8286LTLIBOBJS=$ac_ltlibobjs 8287 8288 8289 8290 8291: "${CONFIG_STATUS=./config.status}" 8292ac_write_fail=0 8293ac_clean_files_save=$ac_clean_files 8294ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8295{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 8296$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 8297as_write_fail=0 8298cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 8299#! $SHELL 8300# Generated by $as_me. 8301# Run this file to recreate the current configuration. 8302# Compiler output produced by configure, useful for debugging 8303# configure, is in config.log if it exists. 8304 8305debug=false 8306ac_cs_recheck=false 8307ac_cs_silent=false 8308 8309SHELL=\${CONFIG_SHELL-$SHELL} 8310export SHELL 8311_ASEOF 8312cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 8313## -------------------- ## 8314## M4sh Initialization. ## 8315## -------------------- ## 8316 8317# Be more Bourne compatible 8318DUALCASE=1; export DUALCASE # for MKS sh 8319if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 8320 emulate sh 8321 NULLCMD=: 8322 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 8323 # is contrary to our usage. Disable this feature. 8324 alias -g '${1+"$@"}'='"$@"' 8325 setopt NO_GLOB_SUBST 8326else 8327 case `(set -o) 2>/dev/null` in #( 8328 *posix*) : 8329 set -o posix ;; #( 8330 *) : 8331 ;; 8332esac 8333fi 8334 8335 8336as_nl=' 8337' 8338export as_nl 8339# Printing a long string crashes Solaris 7 /usr/bin/printf. 8340as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8341as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 8342as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 8343# Prefer a ksh shell builtin over an external printf program on Solaris, 8344# but without wasting forks for bash or zsh. 8345if test -z "$BASH_VERSION$ZSH_VERSION" \ 8346 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 8347 as_echo='print -r --' 8348 as_echo_n='print -rn --' 8349elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 8350 as_echo='printf %s\n' 8351 as_echo_n='printf %s' 8352else 8353 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 8354 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 8355 as_echo_n='/usr/ucb/echo -n' 8356 else 8357 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 8358 as_echo_n_body='eval 8359 arg=$1; 8360 case $arg in #( 8361 *"$as_nl"*) 8362 expr "X$arg" : "X\\(.*\\)$as_nl"; 8363 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 8364 esac; 8365 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 8366 ' 8367 export as_echo_n_body 8368 as_echo_n='sh -c $as_echo_n_body as_echo' 8369 fi 8370 export as_echo_body 8371 as_echo='sh -c $as_echo_body as_echo' 8372fi 8373 8374# The user is always right. 8375if test "${PATH_SEPARATOR+set}" != set; then 8376 PATH_SEPARATOR=: 8377 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 8378 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 8379 PATH_SEPARATOR=';' 8380 } 8381fi 8382 8383 8384# IFS 8385# We need space, tab and new line, in precisely that order. Quoting is 8386# there to prevent editors from complaining about space-tab. 8387# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8388# splitting by setting IFS to empty value.) 8389IFS=" "" $as_nl" 8390 8391# Find who we are. Look in the path if we contain no directory separator. 8392as_myself= 8393case $0 in #(( 8394 *[\\/]* ) as_myself=$0 ;; 8395 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8396for as_dir in $PATH 8397do 8398 IFS=$as_save_IFS 8399 test -z "$as_dir" && as_dir=. 8400 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8401 done 8402IFS=$as_save_IFS 8403 8404 ;; 8405esac 8406# We did not find ourselves, most probably we were run as `sh COMMAND' 8407# in which case we are not to be found in the path. 8408if test "x$as_myself" = x; then 8409 as_myself=$0 8410fi 8411if test ! -f "$as_myself"; then 8412 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8413 exit 1 8414fi 8415 8416# Unset variables that we do not need and which cause bugs (e.g. in 8417# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 8418# suppresses any "Segmentation fault" message there. '((' could 8419# trigger a bug in pdksh 5.2.14. 8420for as_var in BASH_ENV ENV MAIL MAILPATH 8421do eval test x\${$as_var+set} = xset \ 8422 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 8423done 8424PS1='$ ' 8425PS2='> ' 8426PS4='+ ' 8427 8428# NLS nuisances. 8429LC_ALL=C 8430export LC_ALL 8431LANGUAGE=C 8432export LANGUAGE 8433 8434# CDPATH. 8435(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 8436 8437 8438# as_fn_error STATUS ERROR [LINENO LOG_FD] 8439# ---------------------------------------- 8440# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 8441# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 8442# script with STATUS, using 1 if that was 0. 8443as_fn_error () 8444{ 8445 as_status=$1; test $as_status -eq 0 && as_status=1 8446 if test "$4"; then 8447 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 8448 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 8449 fi 8450 $as_echo "$as_me: error: $2" >&2 8451 as_fn_exit $as_status 8452} # as_fn_error 8453 8454 8455# as_fn_set_status STATUS 8456# ----------------------- 8457# Set $? to STATUS, without forking. 8458as_fn_set_status () 8459{ 8460 return $1 8461} # as_fn_set_status 8462 8463# as_fn_exit STATUS 8464# ----------------- 8465# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 8466as_fn_exit () 8467{ 8468 set +e 8469 as_fn_set_status $1 8470 exit $1 8471} # as_fn_exit 8472 8473# as_fn_unset VAR 8474# --------------- 8475# Portably unset VAR. 8476as_fn_unset () 8477{ 8478 { eval $1=; unset $1;} 8479} 8480as_unset=as_fn_unset 8481# as_fn_append VAR VALUE 8482# ---------------------- 8483# Append the text in VALUE to the end of the definition contained in VAR. Take 8484# advantage of any shell optimizations that allow amortized linear growth over 8485# repeated appends, instead of the typical quadratic growth present in naive 8486# implementations. 8487if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 8488 eval 'as_fn_append () 8489 { 8490 eval $1+=\$2 8491 }' 8492else 8493 as_fn_append () 8494 { 8495 eval $1=\$$1\$2 8496 } 8497fi # as_fn_append 8498 8499# as_fn_arith ARG... 8500# ------------------ 8501# Perform arithmetic evaluation on the ARGs, and store the result in the 8502# global $as_val. Take advantage of shells that can avoid forks. The arguments 8503# must be portable across $(()) and expr. 8504if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 8505 eval 'as_fn_arith () 8506 { 8507 as_val=$(( $* )) 8508 }' 8509else 8510 as_fn_arith () 8511 { 8512 as_val=`expr "$@" || test $? -eq 1` 8513 } 8514fi # as_fn_arith 8515 8516 8517if expr a : '\(a\)' >/dev/null 2>&1 && 8518 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8519 as_expr=expr 8520else 8521 as_expr=false 8522fi 8523 8524if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 8525 as_basename=basename 8526else 8527 as_basename=false 8528fi 8529 8530if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 8531 as_dirname=dirname 8532else 8533 as_dirname=false 8534fi 8535 8536as_me=`$as_basename -- "$0" || 8537$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8538 X"$0" : 'X\(//\)$' \| \ 8539 X"$0" : 'X\(/\)' \| . 2>/dev/null || 8540$as_echo X/"$0" | 8541 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8542 s//\1/ 8543 q 8544 } 8545 /^X\/\(\/\/\)$/{ 8546 s//\1/ 8547 q 8548 } 8549 /^X\/\(\/\).*/{ 8550 s//\1/ 8551 q 8552 } 8553 s/.*/./; q'` 8554 8555# Avoid depending upon Character Ranges. 8556as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8557as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8558as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8559as_cr_digits='0123456789' 8560as_cr_alnum=$as_cr_Letters$as_cr_digits 8561 8562ECHO_C= ECHO_N= ECHO_T= 8563case `echo -n x` in #((((( 8564-n*) 8565 case `echo 'xy\c'` in 8566 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8567 xy) ECHO_C='\c';; 8568 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 8569 ECHO_T=' ';; 8570 esac;; 8571*) 8572 ECHO_N='-n';; 8573esac 8574 8575rm -f conf$$ conf$$.exe conf$$.file 8576if test -d conf$$.dir; then 8577 rm -f conf$$.dir/conf$$.file 8578else 8579 rm -f conf$$.dir 8580 mkdir conf$$.dir 2>/dev/null 8581fi 8582if (echo >conf$$.file) 2>/dev/null; then 8583 if ln -s conf$$.file conf$$ 2>/dev/null; then 8584 as_ln_s='ln -s' 8585 # ... but there are two gotchas: 8586 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8587 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 8588 # In both cases, we have to default to `cp -pR'. 8589 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8590 as_ln_s='cp -pR' 8591 elif ln conf$$.file conf$$ 2>/dev/null; then 8592 as_ln_s=ln 8593 else 8594 as_ln_s='cp -pR' 8595 fi 8596else 8597 as_ln_s='cp -pR' 8598fi 8599rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8600rmdir conf$$.dir 2>/dev/null 8601 8602 8603# as_fn_mkdir_p 8604# ------------- 8605# Create "$as_dir" as a directory, including parents if necessary. 8606as_fn_mkdir_p () 8607{ 8608 8609 case $as_dir in #( 8610 -*) as_dir=./$as_dir;; 8611 esac 8612 test -d "$as_dir" || eval $as_mkdir_p || { 8613 as_dirs= 8614 while :; do 8615 case $as_dir in #( 8616 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 8617 *) as_qdir=$as_dir;; 8618 esac 8619 as_dirs="'$as_qdir' $as_dirs" 8620 as_dir=`$as_dirname -- "$as_dir" || 8621$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8622 X"$as_dir" : 'X\(//\)[^/]' \| \ 8623 X"$as_dir" : 'X\(//\)$' \| \ 8624 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 8625$as_echo X"$as_dir" | 8626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8627 s//\1/ 8628 q 8629 } 8630 /^X\(\/\/\)[^/].*/{ 8631 s//\1/ 8632 q 8633 } 8634 /^X\(\/\/\)$/{ 8635 s//\1/ 8636 q 8637 } 8638 /^X\(\/\).*/{ 8639 s//\1/ 8640 q 8641 } 8642 s/.*/./; q'` 8643 test -d "$as_dir" && break 8644 done 8645 test -z "$as_dirs" || eval "mkdir $as_dirs" 8646 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 8647 8648 8649} # as_fn_mkdir_p 8650if mkdir -p . 2>/dev/null; then 8651 as_mkdir_p='mkdir -p "$as_dir"' 8652else 8653 test -d ./-p && rmdir ./-p 8654 as_mkdir_p=false 8655fi 8656 8657 8658# as_fn_executable_p FILE 8659# ----------------------- 8660# Test if FILE is an executable regular file. 8661as_fn_executable_p () 8662{ 8663 test -f "$1" && test -x "$1" 8664} # as_fn_executable_p 8665as_test_x='test -x' 8666as_executable_p=as_fn_executable_p 8667 8668# Sed expression to map a string onto a valid CPP name. 8669as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8670 8671# Sed expression to map a string onto a valid variable name. 8672as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8673 8674 8675exec 6>&1 8676## ----------------------------------- ## 8677## Main body of $CONFIG_STATUS script. ## 8678## ----------------------------------- ## 8679_ASEOF 8680test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 8681 8682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8683# Save the log message, to keep $0 and so on meaningful, and to 8684# report actual input values of CONFIG_FILES etc. instead of their 8685# values after options handling. 8686ac_log=" 8687This file was extended by $as_me, which was 8688generated by GNU Autoconf 2.69. Invocation command line was 8689 8690 CONFIG_FILES = $CONFIG_FILES 8691 CONFIG_HEADERS = $CONFIG_HEADERS 8692 CONFIG_LINKS = $CONFIG_LINKS 8693 CONFIG_COMMANDS = $CONFIG_COMMANDS 8694 $ $0 $@ 8695 8696on `(hostname || uname -n) 2>/dev/null | sed 1q` 8697" 8698 8699_ACEOF 8700 8701case $ac_config_files in *" 8702"*) set x $ac_config_files; shift; ac_config_files=$*;; 8703esac 8704 8705case $ac_config_headers in *" 8706"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 8707esac 8708 8709 8710cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8711# Files that config.status was made for. 8712config_files="$ac_config_files" 8713config_headers="$ac_config_headers" 8714config_commands="$ac_config_commands" 8715 8716_ACEOF 8717 8718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8719ac_cs_usage="\ 8720\`$as_me' instantiates files and other configuration actions 8721from templates according to the current configuration. Unless the files 8722and actions are specified as TAGs, all are instantiated by default. 8723 8724Usage: $0 [OPTION]... [TAG]... 8725 8726 -h, --help print this help, then exit 8727 -V, --version print version number and configuration settings, then exit 8728 --config print configuration, then exit 8729 -q, --quiet, --silent 8730 do not print progress messages 8731 -d, --debug don't remove temporary files 8732 --recheck update $as_me by reconfiguring in the same conditions 8733 --file=FILE[:TEMPLATE] 8734 instantiate the configuration file FILE 8735 --header=FILE[:TEMPLATE] 8736 instantiate the configuration header FILE 8737 8738Configuration files: 8739$config_files 8740 8741Configuration headers: 8742$config_headers 8743 8744Configuration commands: 8745$config_commands 8746 8747Report bugs to the package provider." 8748 8749_ACEOF 8750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8751ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 8752ac_cs_version="\\ 8753config.status 8754configured by $0, generated by GNU Autoconf 2.69, 8755 with options \\"\$ac_cs_config\\" 8756 8757Copyright (C) 2012 Free Software Foundation, Inc. 8758This config.status script is free software; the Free Software Foundation 8759gives unlimited permission to copy, distribute and modify it." 8760 8761ac_pwd='$ac_pwd' 8762srcdir='$srcdir' 8763INSTALL='$INSTALL' 8764test -n "\$AWK" || AWK=awk 8765_ACEOF 8766 8767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8768# The default lists apply if the user does not specify any file. 8769ac_need_defaults=: 8770while test $# != 0 8771do 8772 case $1 in 8773 --*=?*) 8774 ac_option=`expr "X$1" : 'X\([^=]*\)='` 8775 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 8776 ac_shift=: 8777 ;; 8778 --*=) 8779 ac_option=`expr "X$1" : 'X\([^=]*\)='` 8780 ac_optarg= 8781 ac_shift=: 8782 ;; 8783 *) 8784 ac_option=$1 8785 ac_optarg=$2 8786 ac_shift=shift 8787 ;; 8788 esac 8789 8790 case $ac_option in 8791 # Handling of the options. 8792 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8793 ac_cs_recheck=: ;; 8794 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 8795 $as_echo "$ac_cs_version"; exit ;; 8796 --config | --confi | --conf | --con | --co | --c ) 8797 $as_echo "$ac_cs_config"; exit ;; 8798 --debug | --debu | --deb | --de | --d | -d ) 8799 debug=: ;; 8800 --file | --fil | --fi | --f ) 8801 $ac_shift 8802 case $ac_optarg in 8803 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8804 '') as_fn_error $? "missing file argument" ;; 8805 esac 8806 as_fn_append CONFIG_FILES " '$ac_optarg'" 8807 ac_need_defaults=false;; 8808 --header | --heade | --head | --hea ) 8809 $ac_shift 8810 case $ac_optarg in 8811 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 8812 esac 8813 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 8814 ac_need_defaults=false;; 8815 --he | --h) 8816 # Conflict between --help and --header 8817 as_fn_error $? "ambiguous option: \`$1' 8818Try \`$0 --help' for more information.";; 8819 --help | --hel | -h ) 8820 $as_echo "$ac_cs_usage"; exit ;; 8821 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8822 | -silent | --silent | --silen | --sile | --sil | --si | --s) 8823 ac_cs_silent=: ;; 8824 8825 # This is an error. 8826 -*) as_fn_error $? "unrecognized option: \`$1' 8827Try \`$0 --help' for more information." ;; 8828 8829 *) as_fn_append ac_config_targets " $1" 8830 ac_need_defaults=false ;; 8831 8832 esac 8833 shift 8834done 8835 8836ac_configure_extra_args= 8837 8838if $ac_cs_silent; then 8839 exec 6>/dev/null 8840 ac_configure_extra_args="$ac_configure_extra_args --silent" 8841fi 8842 8843_ACEOF 8844cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8845if \$ac_cs_recheck; then 8846 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8847 shift 8848 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 8849 CONFIG_SHELL='$SHELL' 8850 export CONFIG_SHELL 8851 exec "\$@" 8852fi 8853 8854_ACEOF 8855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8856exec 5>>config.log 8857{ 8858 echo 8859 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8860## Running $as_me. ## 8861_ASBOX 8862 $as_echo "$ac_log" 8863} >&5 8864 8865_ACEOF 8866cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 8867# 8868# INIT-COMMANDS 8869# 8870 8871 srcdir="${srcdir}" 8872 objroot="${objroot}" 8873 8874 8875 srcdir="${srcdir}" 8876 objroot="${objroot}" 8877 8878 8879 srcdir="${srcdir}" 8880 objroot="${objroot}" 8881 mangling_map="${mangling_map}" 8882 public_syms="${public_syms}" 8883 JEMALLOC_PREFIX="${JEMALLOC_PREFIX}" 8884 8885 8886 srcdir="${srcdir}" 8887 objroot="${objroot}" 8888 8889 8890 srcdir="${srcdir}" 8891 objroot="${objroot}" 8892 8893 8894 SHELL="${SHELL}" 8895 srcdir="${srcdir}" 8896 objroot="${objroot}" 8897 LG_QUANTA="${LG_QUANTA}" 8898 LG_TINY_MIN=${LG_TINY_MIN} 8899 LG_PAGE_SIZES="${LG_PAGE_SIZES}" 8900 LG_SIZE_CLASS_GROUP=${LG_SIZE_CLASS_GROUP} 8901 8902 8903 srcdir="${srcdir}" 8904 objroot="${objroot}" 8905 8906 8907 srcdir="${srcdir}" 8908 objroot="${objroot}" 8909 8910 8911 srcdir="${srcdir}" 8912 objroot="${objroot}" 8913 8914 8915 srcdir="${srcdir}" 8916 objroot="${objroot}" 8917 8918 8919 srcdir="${srcdir}" 8920 objroot="${objroot}" 8921 install_suffix="${install_suffix}" 8922 8923 8924_ACEOF 8925 8926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 8927 8928# Handling of arguments. 8929for ac_config_target in $ac_config_targets 8930do 8931 case $ac_config_target in 8932 "include/jemalloc/internal/private_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_namespace.h" ;; 8933 "include/jemalloc/internal/private_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_unnamespace.h" ;; 8934 "include/jemalloc/internal/public_symbols.txt") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_symbols.txt" ;; 8935 "include/jemalloc/internal/public_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_namespace.h" ;; 8936 "include/jemalloc/internal/public_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_unnamespace.h" ;; 8937 "include/jemalloc/internal/size_classes.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/size_classes.h" ;; 8938 "include/jemalloc/jemalloc_protos_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_protos_jet.h" ;; 8939 "include/jemalloc/jemalloc_rename.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_rename.h" ;; 8940 "include/jemalloc/jemalloc_mangle.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle.h" ;; 8941 "include/jemalloc/jemalloc_mangle_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle_jet.h" ;; 8942 "include/jemalloc/jemalloc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc.h" ;; 8943 "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;; 8944 "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;; 8945 "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;; 8946 "bin/jemalloc-config") CONFIG_FILES="$CONFIG_FILES bin/jemalloc-config" ;; 8947 "bin/jemalloc.sh") CONFIG_FILES="$CONFIG_FILES bin/jemalloc.sh" ;; 8948 "bin/jeprof") CONFIG_FILES="$CONFIG_FILES bin/jeprof" ;; 8949 8950 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 8951 esac 8952done 8953 8954 8955# If the user did not use the arguments to specify the items to instantiate, 8956# then the envvar interface is used. Set only those that are not. 8957# We use the long form for the default assignment because of an extremely 8958# bizarre bug on SunOS 4.1.3. 8959if $ac_need_defaults; then 8960 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8961 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8962 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 8963fi 8964 8965# Have a temporary directory for convenience. Make it in the build tree 8966# simply because there is no reason against having it here, and in addition, 8967# creating and moving files from /tmp can sometimes cause problems. 8968# Hook for its removal unless debugging. 8969# Note that there is a small window in which the directory will not be cleaned: 8970# after its creation but before its name has been assigned to `$tmp'. 8971$debug || 8972{ 8973 tmp= ac_tmp= 8974 trap 'exit_status=$? 8975 : "${ac_tmp:=$tmp}" 8976 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 8977' 0 8978 trap 'as_fn_exit 1' 1 2 13 15 8979} 8980# Create a (secure) tmp directory for tmp files. 8981 8982{ 8983 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 8984 test -d "$tmp" 8985} || 8986{ 8987 tmp=./conf$$-$RANDOM 8988 (umask 077 && mkdir "$tmp") 8989} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 8990ac_tmp=$tmp 8991 8992# Set up the scripts for CONFIG_FILES section. 8993# No need to generate them if there are no CONFIG_FILES. 8994# This happens for instance with `./config.status config.h'. 8995if test -n "$CONFIG_FILES"; then 8996 8997 8998ac_cr=`echo X | tr X '\015'` 8999# On cygwin, bash can eat \r inside `` if the user requested igncr. 9000# But we know of no other shell where ac_cr would be empty at this 9001# point, so we can use a bashism as a fallback. 9002if test "x$ac_cr" = x; then 9003 eval ac_cr=\$\'\\r\' 9004fi 9005ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 9006if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 9007 ac_cs_awk_cr='\\r' 9008else 9009 ac_cs_awk_cr=$ac_cr 9010fi 9011 9012echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 9013_ACEOF 9014 9015 9016{ 9017 echo "cat >conf$$subs.awk <<_ACEOF" && 9018 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 9019 echo "_ACEOF" 9020} >conf$$subs.sh || 9021 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9022ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 9023ac_delim='%!_!# ' 9024for ac_last_try in false false false false false :; do 9025 . ./conf$$subs.sh || 9026 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9027 9028 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 9029 if test $ac_delim_n = $ac_delim_num; then 9030 break 9031 elif $ac_last_try; then 9032 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9033 else 9034 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9035 fi 9036done 9037rm -f conf$$subs.sh 9038 9039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9040cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 9041_ACEOF 9042sed -n ' 9043h 9044s/^/S["/; s/!.*/"]=/ 9045p 9046g 9047s/^[^!]*!// 9048:repl 9049t repl 9050s/'"$ac_delim"'$// 9051t delim 9052:nl 9053h 9054s/\(.\{148\}\)..*/\1/ 9055t more1 9056s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 9057p 9058n 9059b repl 9060:more1 9061s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9062p 9063g 9064s/.\{148\}// 9065t nl 9066:delim 9067h 9068s/\(.\{148\}\)..*/\1/ 9069t more2 9070s/["\\]/\\&/g; s/^/"/; s/$/"/ 9071p 9072b 9073:more2 9074s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9075p 9076g 9077s/.\{148\}// 9078t delim 9079' <conf$$subs.awk | sed ' 9080/^[^""]/{ 9081 N 9082 s/\n// 9083} 9084' >>$CONFIG_STATUS || ac_write_fail=1 9085rm -f conf$$subs.awk 9086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9087_ACAWK 9088cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 9089 for (key in S) S_is_set[key] = 1 9090 FS = "" 9091 9092} 9093{ 9094 line = $ 0 9095 nfields = split(line, field, "@") 9096 substed = 0 9097 len = length(field[1]) 9098 for (i = 2; i < nfields; i++) { 9099 key = field[i] 9100 keylen = length(key) 9101 if (S_is_set[key]) { 9102 value = S[key] 9103 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 9104 len += length(value) + length(field[++i]) 9105 substed = 1 9106 } else 9107 len += 1 + keylen 9108 } 9109 9110 print line 9111} 9112 9113_ACAWK 9114_ACEOF 9115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9116if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 9117 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 9118else 9119 cat 9120fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 9121 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 9122_ACEOF 9123 9124# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 9125# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 9126# trailing colons and then remove the whole line if VPATH becomes empty 9127# (actually we leave an empty line to preserve line numbers). 9128if test "x$srcdir" = x.; then 9129 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 9130h 9131s/// 9132s/^/:/ 9133s/[ ]*$/:/ 9134s/:\$(srcdir):/:/g 9135s/:\${srcdir}:/:/g 9136s/:@srcdir@:/:/g 9137s/^:*// 9138s/:*$// 9139x 9140s/\(=[ ]*\).*/\1/ 9141G 9142s/\n// 9143s/^[^=]*=[ ]*$// 9144}' 9145fi 9146 9147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9148fi # test -n "$CONFIG_FILES" 9149 9150# Set up the scripts for CONFIG_HEADERS section. 9151# No need to generate them if there are no CONFIG_HEADERS. 9152# This happens for instance with `./config.status Makefile'. 9153if test -n "$CONFIG_HEADERS"; then 9154cat >"$ac_tmp/defines.awk" <<\_ACAWK || 9155BEGIN { 9156_ACEOF 9157 9158# Transform confdefs.h into an awk script `defines.awk', embedded as 9159# here-document in config.status, that substitutes the proper values into 9160# config.h.in to produce config.h. 9161 9162# Create a delimiter string that does not exist in confdefs.h, to ease 9163# handling of long lines. 9164ac_delim='%!_!# ' 9165for ac_last_try in false false :; do 9166 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 9167 if test -z "$ac_tt"; then 9168 break 9169 elif $ac_last_try; then 9170 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 9171 else 9172 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9173 fi 9174done 9175 9176# For the awk script, D is an array of macro values keyed by name, 9177# likewise P contains macro parameters if any. Preserve backslash 9178# newline sequences. 9179 9180ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 9181sed -n ' 9182s/.\{148\}/&'"$ac_delim"'/g 9183t rset 9184:rset 9185s/^[ ]*#[ ]*define[ ][ ]*/ / 9186t def 9187d 9188:def 9189s/\\$// 9190t bsnl 9191s/["\\]/\\&/g 9192s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9193D["\1"]=" \3"/p 9194s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 9195d 9196:bsnl 9197s/["\\]/\\&/g 9198s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9199D["\1"]=" \3\\\\\\n"\\/p 9200t cont 9201s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 9202t cont 9203d 9204:cont 9205n 9206s/.\{148\}/&'"$ac_delim"'/g 9207t clear 9208:clear 9209s/\\$// 9210t bsnlc 9211s/["\\]/\\&/g; s/^/"/; s/$/"/p 9212d 9213:bsnlc 9214s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 9215b cont 9216' <confdefs.h | sed ' 9217s/'"$ac_delim"'/"\\\ 9218"/g' >>$CONFIG_STATUS || ac_write_fail=1 9219 9220cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9221 for (key in D) D_is_set[key] = 1 9222 FS = "" 9223} 9224/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 9225 line = \$ 0 9226 split(line, arg, " ") 9227 if (arg[1] == "#") { 9228 defundef = arg[2] 9229 mac1 = arg[3] 9230 } else { 9231 defundef = substr(arg[1], 2) 9232 mac1 = arg[2] 9233 } 9234 split(mac1, mac2, "(") #) 9235 macro = mac2[1] 9236 prefix = substr(line, 1, index(line, defundef) - 1) 9237 if (D_is_set[macro]) { 9238 # Preserve the white space surrounding the "#". 9239 print prefix "define", macro P[macro] D[macro] 9240 next 9241 } else { 9242 # Replace #undef with comments. This is necessary, for example, 9243 # in the case of _POSIX_SOURCE, which is predefined and required 9244 # on some systems where configure will not decide to define it. 9245 if (defundef == "undef") { 9246 print "/*", prefix defundef, macro, "*/" 9247 next 9248 } 9249 } 9250} 9251{ print } 9252_ACAWK 9253_ACEOF 9254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9255 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 9256fi # test -n "$CONFIG_HEADERS" 9257 9258 9259eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 9260shift 9261for ac_tag 9262do 9263 case $ac_tag in 9264 :[FHLC]) ac_mode=$ac_tag; continue;; 9265 esac 9266 case $ac_mode$ac_tag in 9267 :[FHL]*:*);; 9268 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 9269 :[FH]-) ac_tag=-:-;; 9270 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 9271 esac 9272 ac_save_IFS=$IFS 9273 IFS=: 9274 set x $ac_tag 9275 IFS=$ac_save_IFS 9276 shift 9277 ac_file=$1 9278 shift 9279 9280 case $ac_mode in 9281 :L) ac_source=$1;; 9282 :[FH]) 9283 ac_file_inputs= 9284 for ac_f 9285 do 9286 case $ac_f in 9287 -) ac_f="$ac_tmp/stdin";; 9288 *) # Look for the file first in the build tree, then in the source tree 9289 # (if the path is not absolute). The absolute path cannot be DOS-style, 9290 # because $ac_f cannot contain `:'. 9291 test -f "$ac_f" || 9292 case $ac_f in 9293 [\\/$]*) false;; 9294 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 9295 esac || 9296 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 9297 esac 9298 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 9299 as_fn_append ac_file_inputs " '$ac_f'" 9300 done 9301 9302 # Let's still pretend it is `configure' which instantiates (i.e., don't 9303 # use $as_me), people would be surprised to read: 9304 # /* config.h. Generated by config.status. */ 9305 configure_input='Generated from '` 9306 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 9307 `' by configure.' 9308 if test x"$ac_file" != x-; then 9309 configure_input="$ac_file. $configure_input" 9310 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 9311$as_echo "$as_me: creating $ac_file" >&6;} 9312 fi 9313 # Neutralize special characters interpreted by sed in replacement strings. 9314 case $configure_input in #( 9315 *\&* | *\|* | *\\* ) 9316 ac_sed_conf_input=`$as_echo "$configure_input" | 9317 sed 's/[\\\\&|]/\\\\&/g'`;; #( 9318 *) ac_sed_conf_input=$configure_input;; 9319 esac 9320 9321 case $ac_tag in 9322 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 9323 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 9324 esac 9325 ;; 9326 esac 9327 9328 ac_dir=`$as_dirname -- "$ac_file" || 9329$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9330 X"$ac_file" : 'X\(//\)[^/]' \| \ 9331 X"$ac_file" : 'X\(//\)$' \| \ 9332 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 9333$as_echo X"$ac_file" | 9334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9335 s//\1/ 9336 q 9337 } 9338 /^X\(\/\/\)[^/].*/{ 9339 s//\1/ 9340 q 9341 } 9342 /^X\(\/\/\)$/{ 9343 s//\1/ 9344 q 9345 } 9346 /^X\(\/\).*/{ 9347 s//\1/ 9348 q 9349 } 9350 s/.*/./; q'` 9351 as_dir="$ac_dir"; as_fn_mkdir_p 9352 ac_builddir=. 9353 9354case "$ac_dir" in 9355.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9356*) 9357 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 9358 # A ".." for each directory in $ac_dir_suffix. 9359 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 9360 case $ac_top_builddir_sub in 9361 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9362 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9363 esac ;; 9364esac 9365ac_abs_top_builddir=$ac_pwd 9366ac_abs_builddir=$ac_pwd$ac_dir_suffix 9367# for backward compatibility: 9368ac_top_builddir=$ac_top_build_prefix 9369 9370case $srcdir in 9371 .) # We are building in place. 9372 ac_srcdir=. 9373 ac_top_srcdir=$ac_top_builddir_sub 9374 ac_abs_top_srcdir=$ac_pwd ;; 9375 [\\/]* | ?:[\\/]* ) # Absolute name. 9376 ac_srcdir=$srcdir$ac_dir_suffix; 9377 ac_top_srcdir=$srcdir 9378 ac_abs_top_srcdir=$srcdir ;; 9379 *) # Relative name. 9380 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 9381 ac_top_srcdir=$ac_top_build_prefix$srcdir 9382 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 9383esac 9384ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 9385 9386 9387 case $ac_mode in 9388 :F) 9389 # 9390 # CONFIG_FILE 9391 # 9392 9393 case $INSTALL in 9394 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9395 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 9396 esac 9397_ACEOF 9398 9399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9400# If the template does not know about datarootdir, expand it. 9401# FIXME: This hack should be removed a few years after 2.60. 9402ac_datarootdir_hack=; ac_datarootdir_seen= 9403ac_sed_dataroot=' 9404/datarootdir/ { 9405 p 9406 q 9407} 9408/@datadir@/p 9409/@docdir@/p 9410/@infodir@/p 9411/@localedir@/p 9412/@mandir@/p' 9413case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 9414*datarootdir*) ac_datarootdir_seen=yes;; 9415*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9417$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9418_ACEOF 9419cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9420 ac_datarootdir_hack=' 9421 s&@datadir@&$datadir&g 9422 s&@docdir@&$docdir&g 9423 s&@infodir@&$infodir&g 9424 s&@localedir@&$localedir&g 9425 s&@mandir@&$mandir&g 9426 s&\\\${datarootdir}&$datarootdir&g' ;; 9427esac 9428_ACEOF 9429 9430# Neutralize VPATH when `$srcdir' = `.'. 9431# Shell code in configure.ac might set extrasub. 9432# FIXME: do we really want to maintain this feature? 9433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9434ac_sed_extra="$ac_vpsub 9435$extrasub 9436_ACEOF 9437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9438:t 9439/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9440s|@configure_input@|$ac_sed_conf_input|;t t 9441s&@top_builddir@&$ac_top_builddir_sub&;t t 9442s&@top_build_prefix@&$ac_top_build_prefix&;t t 9443s&@srcdir@&$ac_srcdir&;t t 9444s&@abs_srcdir@&$ac_abs_srcdir&;t t 9445s&@top_srcdir@&$ac_top_srcdir&;t t 9446s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9447s&@builddir@&$ac_builddir&;t t 9448s&@abs_builddir@&$ac_abs_builddir&;t t 9449s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9450s&@INSTALL@&$ac_INSTALL&;t t 9451$ac_datarootdir_hack 9452" 9453eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 9454 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9455 9456test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9457 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 9458 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 9459 "$ac_tmp/out"`; test -z "$ac_out"; } && 9460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9461which seems to be undefined. Please make sure it is defined" >&5 9462$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9463which seems to be undefined. Please make sure it is defined" >&2;} 9464 9465 rm -f "$ac_tmp/stdin" 9466 case $ac_file in 9467 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 9468 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 9469 esac \ 9470 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9471 ;; 9472 :H) 9473 # 9474 # CONFIG_HEADER 9475 # 9476 if test x"$ac_file" != x-; then 9477 { 9478 $as_echo "/* $configure_input */" \ 9479 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 9480 } >"$ac_tmp/config.h" \ 9481 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9482 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 9483 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 9484$as_echo "$as_me: $ac_file is unchanged" >&6;} 9485 else 9486 rm -f "$ac_file" 9487 mv "$ac_tmp/config.h" "$ac_file" \ 9488 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9489 fi 9490 else 9491 $as_echo "/* $configure_input */" \ 9492 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 9493 || as_fn_error $? "could not create -" "$LINENO" 5 9494 fi 9495 ;; 9496 9497 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 9498$as_echo "$as_me: executing $ac_file commands" >&6;} 9499 ;; 9500 esac 9501 9502 9503 case $ac_file$ac_mode in 9504 "include/jemalloc/internal/private_namespace.h":C) 9505 mkdir -p "${objroot}include/jemalloc/internal" 9506 "${srcdir}/include/jemalloc/internal/private_namespace.sh" "${srcdir}/include/jemalloc/internal/private_symbols.txt" > "${objroot}include/jemalloc/internal/private_namespace.h" 9507 ;; 9508 "include/jemalloc/internal/private_unnamespace.h":C) 9509 mkdir -p "${objroot}include/jemalloc/internal" 9510 "${srcdir}/include/jemalloc/internal/private_unnamespace.sh" "${srcdir}/include/jemalloc/internal/private_symbols.txt" > "${objroot}include/jemalloc/internal/private_unnamespace.h" 9511 ;; 9512 "include/jemalloc/internal/public_symbols.txt":C) 9513 f="${objroot}include/jemalloc/internal/public_symbols.txt" 9514 mkdir -p "${objroot}include/jemalloc/internal" 9515 cp /dev/null "${f}" 9516 for nm in `echo ${mangling_map} |tr ',' ' '` ; do 9517 n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'` 9518 m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'` 9519 echo "${n}:${m}" >> "${f}" 9520 public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${n}\$" |tr '\n' ' '` 9521 done 9522 for sym in ${public_syms} ; do 9523 n="${sym}" 9524 m="${JEMALLOC_PREFIX}${sym}" 9525 echo "${n}:${m}" >> "${f}" 9526 done 9527 ;; 9528 "include/jemalloc/internal/public_namespace.h":C) 9529 mkdir -p "${objroot}include/jemalloc/internal" 9530 "${srcdir}/include/jemalloc/internal/public_namespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_namespace.h" 9531 ;; 9532 "include/jemalloc/internal/public_unnamespace.h":C) 9533 mkdir -p "${objroot}include/jemalloc/internal" 9534 "${srcdir}/include/jemalloc/internal/public_unnamespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_unnamespace.h" 9535 ;; 9536 "include/jemalloc/internal/size_classes.h":C) 9537 mkdir -p "${objroot}include/jemalloc/internal" 9538 "${SHELL}" "${srcdir}/include/jemalloc/internal/size_classes.sh" "${LG_QUANTA}" ${LG_TINY_MIN} "${LG_PAGE_SIZES}" ${LG_SIZE_CLASS_GROUP} > "${objroot}include/jemalloc/internal/size_classes.h" 9539 ;; 9540 "include/jemalloc/jemalloc_protos_jet.h":C) 9541 mkdir -p "${objroot}include/jemalloc" 9542 cat "${srcdir}/include/jemalloc/jemalloc_protos.h.in" | sed -e 's/@je_@/jet_/g' > "${objroot}include/jemalloc/jemalloc_protos_jet.h" 9543 ;; 9544 "include/jemalloc/jemalloc_rename.h":C) 9545 mkdir -p "${objroot}include/jemalloc" 9546 "${srcdir}/include/jemalloc/jemalloc_rename.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/jemalloc_rename.h" 9547 ;; 9548 "include/jemalloc/jemalloc_mangle.h":C) 9549 mkdir -p "${objroot}include/jemalloc" 9550 "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" je_ > "${objroot}include/jemalloc/jemalloc_mangle.h" 9551 ;; 9552 "include/jemalloc/jemalloc_mangle_jet.h":C) 9553 mkdir -p "${objroot}include/jemalloc" 9554 "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" jet_ > "${objroot}include/jemalloc/jemalloc_mangle_jet.h" 9555 ;; 9556 "include/jemalloc/jemalloc.h":C) 9557 mkdir -p "${objroot}include/jemalloc" 9558 "${srcdir}/include/jemalloc/jemalloc.sh" "${objroot}" > "${objroot}include/jemalloc/jemalloc${install_suffix}.h" 9559 ;; 9560 9561 esac 9562done # for ac_tag 9563 9564 9565as_fn_exit 0 9566_ACEOF 9567ac_clean_files=$ac_clean_files_save 9568 9569test $ac_write_fail = 0 || 9570 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 9571 9572 9573# configure is writing to config.log, and then calls config.status. 9574# config.status does its own redirection, appending to config.log. 9575# Unfortunately, on DOS this fails, as config.log is still kept open 9576# by configure, so config.status won't be able to write to it; its 9577# output is simply discarded. So we exec the FD to /dev/null, 9578# effectively closing config.log, so it can be properly (re)opened and 9579# appended to by config.status. When coming back to configure, we 9580# need to make the FD available again. 9581if test "$no_create" != yes; then 9582 ac_cs_success=: 9583 ac_config_status_args= 9584 test "$silent" = yes && 9585 ac_config_status_args="$ac_config_status_args --quiet" 9586 exec 5>/dev/null 9587 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9588 exec 5>>config.log 9589 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9590 # would make configure fail if this is the last instruction. 9591 $ac_cs_success || as_fn_exit 1 9592fi 9593if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 9594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 9595$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 9596fi 9597 9598 9599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5 9600$as_echo "===============================================================================" >&6; } 9601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version : ${jemalloc_version}" >&5 9602$as_echo "jemalloc version : ${jemalloc_version}" >&6; } 9603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: library revision : ${rev}" >&5 9604$as_echo "library revision : ${rev}" >&6; } 9605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 9606$as_echo "" >&6; } 9607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIG : ${CONFIG}" >&5 9608$as_echo "CONFIG : ${CONFIG}" >&6; } 9609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC : ${CC}" >&5 9610$as_echo "CC : ${CC}" >&6; } 9611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CFLAGS : ${CFLAGS}" >&5 9612$as_echo "CFLAGS : ${CFLAGS}" >&6; } 9613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS : ${CPPFLAGS}" >&5 9614$as_echo "CPPFLAGS : ${CPPFLAGS}" >&6; } 9615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS : ${LDFLAGS}" >&5 9616$as_echo "LDFLAGS : ${LDFLAGS}" >&6; } 9617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&5 9618$as_echo "EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&6; } 9619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS : ${LIBS}" >&5 9620$as_echo "LIBS : ${LIBS}" >&6; } 9621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: TESTLIBS : ${TESTLIBS}" >&5 9622$as_echo "TESTLIBS : ${TESTLIBS}" >&6; } 9623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA : ${RPATH_EXTRA}" >&5 9624$as_echo "RPATH_EXTRA : ${RPATH_EXTRA}" >&6; } 9625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 9626$as_echo "" >&6; } 9627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC : ${XSLTPROC}" >&5 9628$as_echo "XSLTPROC : ${XSLTPROC}" >&6; } 9629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT : ${XSLROOT}" >&5 9630$as_echo "XSLROOT : ${XSLROOT}" >&6; } 9631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 9632$as_echo "" >&6; } 9633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX : ${PREFIX}" >&5 9634$as_echo "PREFIX : ${PREFIX}" >&6; } 9635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR : ${BINDIR}" >&5 9636$as_echo "BINDIR : ${BINDIR}" >&6; } 9637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR : ${DATADIR}" >&5 9638$as_echo "DATADIR : ${DATADIR}" >&6; } 9639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR : ${INCLUDEDIR}" >&5 9640$as_echo "INCLUDEDIR : ${INCLUDEDIR}" >&6; } 9641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR : ${LIBDIR}" >&5 9642$as_echo "LIBDIR : ${LIBDIR}" >&6; } 9643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR : ${MANDIR}" >&5 9644$as_echo "MANDIR : ${MANDIR}" >&6; } 9645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 9646$as_echo "" >&6; } 9647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot : ${srcroot}" >&5 9648$as_echo "srcroot : ${srcroot}" >&6; } 9649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot : ${abs_srcroot}" >&5 9650$as_echo "abs_srcroot : ${abs_srcroot}" >&6; } 9651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot : ${objroot}" >&5 9652$as_echo "objroot : ${objroot}" >&6; } 9653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot : ${abs_objroot}" >&5 9654$as_echo "abs_objroot : ${abs_objroot}" >&6; } 9655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 9656$as_echo "" >&6; } 9657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&5 9658$as_echo "JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&6; } 9659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5 9660$as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; } 9661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5 9662$as_echo " : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; } 9663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix : ${install_suffix}" >&5 9664$as_echo "install_suffix : ${install_suffix}" >&6; } 9665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen : ${enable_autogen}" >&5 9666$as_echo "autogen : ${enable_autogen}" >&6; } 9667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cc-silence : ${enable_cc_silence}" >&5 9668$as_echo "cc-silence : ${enable_cc_silence}" >&6; } 9669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: debug : ${enable_debug}" >&5 9670$as_echo "debug : ${enable_debug}" >&6; } 9671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: code-coverage : ${enable_code_coverage}" >&5 9672$as_echo "code-coverage : ${enable_code_coverage}" >&6; } 9673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: stats : ${enable_stats}" >&5 9674$as_echo "stats : ${enable_stats}" >&6; } 9675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof : ${enable_prof}" >&5 9676$as_echo "prof : ${enable_prof}" >&6; } 9677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind : ${enable_prof_libunwind}" >&5 9678$as_echo "prof-libunwind : ${enable_prof_libunwind}" >&6; } 9679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc : ${enable_prof_libgcc}" >&5 9680$as_echo "prof-libgcc : ${enable_prof_libgcc}" >&6; } 9681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc : ${enable_prof_gcc}" >&5 9682$as_echo "prof-gcc : ${enable_prof_gcc}" >&6; } 9683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: tcache : ${enable_tcache}" >&5 9684$as_echo "tcache : ${enable_tcache}" >&6; } 9685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: fill : ${enable_fill}" >&5 9686$as_echo "fill : ${enable_fill}" >&6; } 9687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: utrace : ${enable_utrace}" >&5 9688$as_echo "utrace : ${enable_utrace}" >&6; } 9689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: valgrind : ${enable_valgrind}" >&5 9690$as_echo "valgrind : ${enable_valgrind}" >&6; } 9691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc : ${enable_xmalloc}" >&5 9692$as_echo "xmalloc : ${enable_xmalloc}" >&6; } 9693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: munmap : ${enable_munmap}" >&5 9694$as_echo "munmap : ${enable_munmap}" >&6; } 9695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock : ${enable_lazy_lock}" >&5 9696$as_echo "lazy_lock : ${enable_lazy_lock}" >&6; } 9697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: tls : ${enable_tls}" >&5 9698$as_echo "tls : ${enable_tls}" >&6; } 9699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cache-oblivious : ${enable_cache_oblivious}" >&5 9700$as_echo "cache-oblivious : ${enable_cache_oblivious}" >&6; } 9701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5 9702$as_echo "===============================================================================" >&6; } 9703