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 16 DUALCASE=1; export DUALCASE # for MKS sh 17 if 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 24 else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30 esac 31 fi 32 33 34 as_nl=' 35 ' 36 export as_nl 37 # Printing a long string crashes Solaris 7 /usr/bin/printf. 38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40 as_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. 43 if 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 --' 47 elif (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' 50 else 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' 70 fi 71 72 # The user is always right. 73 if 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 } 79 fi 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.) 87 IFS=" "" $as_nl" 88 89 # Find who we are. Look in the path if we contain no directory separator. 90 as_myself= 91 case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94 for as_dir in $PATH 95 do 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 100 IFS=$as_save_IFS 101 102 ;; 103 esac 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. 106 if test "x$as_myself" = x; then 107 as_myself=$0 108 fi 109 if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112 fi 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. 118 for as_var in BASH_ENV ENV MAIL MAILPATH 119 do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121 done 122 PS1='$ ' 123 PS2='> ' 124 PS4='+ ' 125 126 # NLS nuisances. 127 LC_ALL=C 128 export LC_ALL 129 LANGUAGE=C 130 export 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. 143 BASH_ENV=/dev/null 144 ENV=/dev/null 145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146 case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151 esac 152 exec $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 156 as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160 if 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 168 else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174 esac 175 fi 176 " 177 as_required="as_fn_return () { (exit \$1); } 178 as_fn_success () { as_fn_return 0; } 179 as_fn_failure () { as_fn_return 1; } 180 as_fn_ret_success () { return 0; } 181 as_fn_ret_failure () { return 1; } 182 183 exitcode=0 184 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190 else 191 exitcode=1; echo positional parameters were not saved. 192 fi 193 test x\$exitcode = x0 || exit 1 194 test -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 199 test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202 else 203 as_have_required=no 204 fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207 else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209 as_found=false 210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211 do 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 225 fi 226 fi 227 done;; 228 esac 229 as_found=false 230 done 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 234 fi; } 235 IFS=$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. 244 BASH_ENV=/dev/null 245 ENV=/dev/null 246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247 case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252 esac 253 exec $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 257 exit 255 258 fi 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 bug-autoconf (at] gnu.org 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 273 fi 274 fi 275 fi 276 SHELL=${CONFIG_SHELL-/bin/sh} 277 export SHELL 278 # Unset more variables known to interfere with behavior of common tools. 279 CLICOLOR_FORCE= GREP_OPTIONS= 280 unset CLICOLOR_FORCE GREP_OPTIONS 281 282 ## --------------------- ## 283 ## M4sh Shell Functions. ## 284 ## --------------------- ## 285 # as_fn_unset VAR 286 # --------------- 287 # Portably unset VAR. 288 as_fn_unset () 289 { 290 { eval $1=; unset $1;} 291 } 292 as_unset=as_fn_unset 293 294 # as_fn_set_status STATUS 295 # ----------------------- 296 # Set $? to STATUS, without forking. 297 as_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. 305 as_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. 315 as_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. 363 as_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. 373 if (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 }' 378 else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383 fi # 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. 390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395 else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400 fi # 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. 408 as_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 419 if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422 else 423 as_expr=false 424 fi 425 426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428 else 429 as_basename=false 430 fi 431 432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434 else 435 as_dirname=false 436 fi 437 438 as_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. 458 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461 as_cr_digits='0123456789' 462 as_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 500 ECHO_C= ECHO_N= ECHO_T= 501 case `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';; 511 esac 512 513 rm -f conf$$ conf$$.exe conf$$.file 514 if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516 else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519 fi 520 if (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 534 else 535 as_ln_s='cp -pR' 536 fi 537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538 rmdir conf$$.dir 2>/dev/null 539 540 if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542 else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545 fi 546 547 as_test_x='test -x' 548 as_executable_p=as_fn_executable_p 549 550 # Sed expression to map a string onto a valid CPP name. 551 as_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. 554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557 test -n "$DJDIR" || exec 7<&0 </dev/null 558 exec 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. 563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565 # 566 # Initializations. 567 # 568 ac_default_prefix=/usr/local 569 ac_clean_files= 570 ac_config_libobj_dir=. 571 LIBOBJS= 572 cross_compiling=no 573 subdirs= 574 MFLAGS= 575 MAKEFLAGS= 576 577 # Identity of this package. 578 PACKAGE_NAME= 579 PACKAGE_TARNAME= 580 PACKAGE_VERSION= 581 PACKAGE_STRING= 582 PACKAGE_BUGREPORT= 583 PACKAGE_URL= 584 585 ac_unique_file="Makefile.in" 586 # Factoring default headers for most tests. 587 ac_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 622 ac_subst_vars='LTLIBOBJS 623 LIBOBJS 624 cfgoutputs_out 625 cfgoutputs_in 626 cfghdrs_out 627 cfghdrs_in 628 enable_initial_exec_tls 629 enable_zone_allocator 630 enable_tls 631 enable_lazy_lock 632 libdl 633 enable_uaf_detection 634 enable_opt_size_checks 635 enable_opt_safety_checks 636 force_getenv 637 enable_readlinkat 638 enable_log 639 enable_cache_oblivious 640 enable_xmalloc 641 enable_experimental_sdt 642 enable_utrace 643 enable_fill 644 enable_prof 645 enable_experimental_smallocx 646 enable_stats 647 enable_debug 648 je_ 649 install_suffix 650 private_namespace 651 JEMALLOC_CPREFIX 652 JEMALLOC_PREFIX 653 enable_static 654 enable_shared 655 enable_doc 656 AUTOCONF 657 LD 658 RANLIB 659 INSTALL_DATA 660 INSTALL_SCRIPT 661 INSTALL_PROGRAM 662 enable_autogen 663 RPATH_EXTRA 664 LM 665 CC_MM 666 DUMP_SYMS 667 AROUT 668 ARFLAGS 669 MKLIB 670 TEST_LD_MODE 671 LDTARGET 672 CTARGET 673 PIC_CFLAGS 674 SOREV 675 EXTRA_LDFLAGS 676 DSO_LDFLAGS 677 link_whole_archive 678 libprefix 679 exe 680 a 681 o 682 importlib 683 so 684 LD_PRELOAD_VAR 685 RPATH 686 abi 687 jemalloc_version_gid 688 jemalloc_version_nrev 689 jemalloc_version_bugfix 690 jemalloc_version_minor 691 jemalloc_version_major 692 jemalloc_version 693 AWK 694 NM 695 AR 696 host_os 697 host_vendor 698 host_cpu 699 host 700 build_os 701 build_vendor 702 build_cpu 703 build 704 EGREP 705 GREP 706 EXTRA_CXXFLAGS 707 SPECIFIED_CXXFLAGS 708 CONFIGURE_CXXFLAGS 709 enable_cxx 710 HAVE_CXX14 711 HAVE_CXX17 712 ac_ct_CXX 713 CXXFLAGS 714 CXX 715 CPP 716 EXTRA_CFLAGS 717 SPECIFIED_CFLAGS 718 CONFIGURE_CFLAGS 719 OBJEXT 720 EXEEXT 721 ac_ct_CC 722 CPPFLAGS 723 LDFLAGS 724 CFLAGS 725 CC 726 XSLROOT 727 XSLTPROC 728 MANDIR 729 DATADIR 730 LIBDIR 731 INCLUDEDIR 732 BINDIR 733 PREFIX 734 abs_objroot 735 objroot 736 abs_srcroot 737 srcroot 738 rev 739 CONFIG 740 target_alias 741 host_alias 742 build_alias 743 LIBS 744 ECHO_T 745 ECHO_N 746 ECHO_C 747 DEFS 748 mandir 749 localedir 750 libdir 751 psdir 752 pdfdir 753 dvidir 754 htmldir 755 infodir 756 docdir 757 oldincludedir 758 includedir 759 runstatedir 760 localstatedir 761 sharedstatedir 762 sysconfdir 763 datadir 764 datarootdir 765 libexecdir 766 sbindir 767 bindir 768 program_transform_name 769 prefix 770 exec_prefix 771 PACKAGE_URL 772 PACKAGE_BUGREPORT 773 PACKAGE_STRING 774 PACKAGE_VERSION 775 PACKAGE_TARNAME 776 PACKAGE_NAME 777 PATH_SEPARATOR 778 SHELL' 779 ac_subst_files='' 780 ac_user_opts=' 781 enable_option_checking 782 with_xslroot 783 enable_cxx 784 with_cxx_stdlib 785 with_lg_vaddr 786 with_version 787 with_rpath 788 enable_autogen 789 enable_doc 790 enable_shared 791 enable_static 792 with_mangling 793 with_jemalloc_prefix 794 with_export 795 with_private_namespace 796 with_install_suffix 797 with_malloc_conf 798 enable_debug 799 enable_stats 800 enable_user_config 801 enable_experimental_smallocx 802 enable_prof 803 enable_prof_libunwind 804 with_static_libunwind 805 enable_prof_frameptr 806 enable_prof_libgcc 807 enable_prof_gcc 808 enable_dss 809 enable_fill 810 enable_utrace 811 enable_experimental_sdt 812 enable_xmalloc 813 enable_cache_oblivious 814 enable_log 815 enable_readlinkat 816 enable_force_getenv 817 enable_opt_safety_checks 818 enable_opt_size_checks 819 enable_uaf_detection 820 with_lg_quantum 821 with_lg_slab_maxregs 822 with_lg_page 823 with_lg_hugepage 824 enable_libdl 825 enable_syscall 826 enable_lazy_lock 827 with_experimental_sys_process_madvise 828 enable_zone_allocator 829 enable_initial_exec_tls 830 enable_pageid 831 enable_tsan 832 enable_ubsan 833 ' 834 ac_precious_vars='build_alias 835 host_alias 836 target_alias 837 CC 838 CFLAGS 839 LDFLAGS 840 LIBS 841 CPPFLAGS 842 CPP 843 CXX 844 CXXFLAGS 845 CCC' 846 847 848 # Initialize some variables set by options. 849 ac_init_help= 850 ac_init_version=false 851 ac_unrecognized_opts= 852 ac_unrecognized_sep= 853 # The variables have the same names as the options, with 854 # dashes changed to underlines. 855 cache_file=/dev/null 856 exec_prefix=NONE 857 no_create= 858 no_recursion= 859 prefix=NONE 860 program_prefix=NONE 861 program_suffix=NONE 862 program_transform_name=s,x,x, 863 silent= 864 site= 865 srcdir= 866 verbose= 867 x_includes=NONE 868 x_libraries=NONE 869 870 # Installation directory options. 871 # These are left unexpanded so users can "make install exec_prefix=/foo" 872 # and all the variables that are supposed to be based on exec_prefix 873 # by default will actually change. 874 # Use braces instead of parens because sh, perl, etc. also accept them. 875 # (The list follows the same order as the GNU Coding Standards.) 876 bindir='${exec_prefix}/bin' 877 sbindir='${exec_prefix}/sbin' 878 libexecdir='${exec_prefix}/libexec' 879 datarootdir='${prefix}/share' 880 datadir='${datarootdir}' 881 sysconfdir='${prefix}/etc' 882 sharedstatedir='${prefix}/com' 883 localstatedir='${prefix}/var' 884 runstatedir='${localstatedir}/run' 885 includedir='${prefix}/include' 886 oldincludedir='/usr/include' 887 docdir='${datarootdir}/doc/${PACKAGE}' 888 infodir='${datarootdir}/info' 889 htmldir='${docdir}' 890 dvidir='${docdir}' 891 pdfdir='${docdir}' 892 psdir='${docdir}' 893 libdir='${exec_prefix}/lib' 894 localedir='${datarootdir}/locale' 895 mandir='${datarootdir}/man' 896 897 ac_prev= 898 ac_dashdash= 899 for ac_option 900 do 901 # If the previous option needs an argument, assign it. 902 if test -n "$ac_prev"; then 903 eval $ac_prev=\$ac_option 904 ac_prev= 905 continue 906 fi 907 908 case $ac_option in 909 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 910 *=) ac_optarg= ;; 911 *) ac_optarg=yes ;; 912 esac 913 914 # Accept the important Cygnus configure options, so we can diagnose typos. 915 916 case $ac_dashdash$ac_option in 917 --) 918 ac_dashdash=yes ;; 919 920 -bindir | --bindir | --bindi | --bind | --bin | --bi) 921 ac_prev=bindir ;; 922 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 923 bindir=$ac_optarg ;; 924 925 -build | --build | --buil | --bui | --bu) 926 ac_prev=build_alias ;; 927 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 928 build_alias=$ac_optarg ;; 929 930 -cache-file | --cache-file | --cache-fil | --cache-fi \ 931 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 932 ac_prev=cache_file ;; 933 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 934 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 935 cache_file=$ac_optarg ;; 936 937 --config-cache | -C) 938 cache_file=config.cache ;; 939 940 -datadir | --datadir | --datadi | --datad) 941 ac_prev=datadir ;; 942 -datadir=* | --datadir=* | --datadi=* | --datad=*) 943 datadir=$ac_optarg ;; 944 945 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 946 | --dataroo | --dataro | --datar) 947 ac_prev=datarootdir ;; 948 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 949 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 950 datarootdir=$ac_optarg ;; 951 952 -disable-* | --disable-*) 953 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 954 # Reject names that are not valid shell variable names. 955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 956 as_fn_error $? "invalid feature name: $ac_useropt" 957 ac_useropt_orig=$ac_useropt 958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 959 case $ac_user_opts in 960 *" 961 "enable_$ac_useropt" 962 "*) ;; 963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 964 ac_unrecognized_sep=', ';; 965 esac 966 eval enable_$ac_useropt=no ;; 967 968 -docdir | --docdir | --docdi | --doc | --do) 969 ac_prev=docdir ;; 970 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 971 docdir=$ac_optarg ;; 972 973 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 974 ac_prev=dvidir ;; 975 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 976 dvidir=$ac_optarg ;; 977 978 -enable-* | --enable-*) 979 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 980 # Reject names that are not valid shell variable names. 981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 982 as_fn_error $? "invalid feature name: $ac_useropt" 983 ac_useropt_orig=$ac_useropt 984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 985 case $ac_user_opts in 986 *" 987 "enable_$ac_useropt" 988 "*) ;; 989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 990 ac_unrecognized_sep=', ';; 991 esac 992 eval enable_$ac_useropt=\$ac_optarg ;; 993 994 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 995 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 996 | --exec | --exe | --ex) 997 ac_prev=exec_prefix ;; 998 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 999 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1000 | --exec=* | --exe=* | --ex=*) 1001 exec_prefix=$ac_optarg ;; 1002 1003 -gas | --gas | --ga | --g) 1004 # Obsolete; use --with-gas. 1005 with_gas=yes ;; 1006 1007 -help | --help | --hel | --he | -h) 1008 ac_init_help=long ;; 1009 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1010 ac_init_help=recursive ;; 1011 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1012 ac_init_help=short ;; 1013 1014 -host | --host | --hos | --ho) 1015 ac_prev=host_alias ;; 1016 -host=* | --host=* | --hos=* | --ho=*) 1017 host_alias=$ac_optarg ;; 1018 1019 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1020 ac_prev=htmldir ;; 1021 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1022 | --ht=*) 1023 htmldir=$ac_optarg ;; 1024 1025 -includedir | --includedir | --includedi | --included | --include \ 1026 | --includ | --inclu | --incl | --inc) 1027 ac_prev=includedir ;; 1028 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1029 | --includ=* | --inclu=* | --incl=* | --inc=*) 1030 includedir=$ac_optarg ;; 1031 1032 -infodir | --infodir | --infodi | --infod | --info | --inf) 1033 ac_prev=infodir ;; 1034 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1035 infodir=$ac_optarg ;; 1036 1037 -libdir | --libdir | --libdi | --libd) 1038 ac_prev=libdir ;; 1039 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1040 libdir=$ac_optarg ;; 1041 1042 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1043 | --libexe | --libex | --libe) 1044 ac_prev=libexecdir ;; 1045 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1046 | --libexe=* | --libex=* | --libe=*) 1047 libexecdir=$ac_optarg ;; 1048 1049 -localedir | --localedir | --localedi | --localed | --locale) 1050 ac_prev=localedir ;; 1051 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1052 localedir=$ac_optarg ;; 1053 1054 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1055 | --localstate | --localstat | --localsta | --localst | --locals) 1056 ac_prev=localstatedir ;; 1057 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1058 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1059 localstatedir=$ac_optarg ;; 1060 1061 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1062 ac_prev=mandir ;; 1063 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1064 mandir=$ac_optarg ;; 1065 1066 -nfp | --nfp | --nf) 1067 # Obsolete; use --without-fp. 1068 with_fp=no ;; 1069 1070 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1071 | --no-cr | --no-c | -n) 1072 no_create=yes ;; 1073 1074 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1075 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1076 no_recursion=yes ;; 1077 1078 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1079 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1080 | --oldin | --oldi | --old | --ol | --o) 1081 ac_prev=oldincludedir ;; 1082 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1083 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1084 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1085 oldincludedir=$ac_optarg ;; 1086 1087 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1088 ac_prev=prefix ;; 1089 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1090 prefix=$ac_optarg ;; 1091 1092 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1093 | --program-pre | --program-pr | --program-p) 1094 ac_prev=program_prefix ;; 1095 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1096 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1097 program_prefix=$ac_optarg ;; 1098 1099 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1100 | --program-suf | --program-su | --program-s) 1101 ac_prev=program_suffix ;; 1102 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1103 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1104 program_suffix=$ac_optarg ;; 1105 1106 -program-transform-name | --program-transform-name \ 1107 | --program-transform-nam | --program-transform-na \ 1108 | --program-transform-n | --program-transform- \ 1109 | --program-transform | --program-transfor \ 1110 | --program-transfo | --program-transf \ 1111 | --program-trans | --program-tran \ 1112 | --progr-tra | --program-tr | --program-t) 1113 ac_prev=program_transform_name ;; 1114 -program-transform-name=* | --program-transform-name=* \ 1115 | --program-transform-nam=* | --program-transform-na=* \ 1116 | --program-transform-n=* | --program-transform-=* \ 1117 | --program-transform=* | --program-transfor=* \ 1118 | --program-transfo=* | --program-transf=* \ 1119 | --program-trans=* | --program-tran=* \ 1120 | --progr-tra=* | --program-tr=* | --program-t=*) 1121 program_transform_name=$ac_optarg ;; 1122 1123 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1124 ac_prev=pdfdir ;; 1125 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1126 pdfdir=$ac_optarg ;; 1127 1128 -psdir | --psdir | --psdi | --psd | --ps) 1129 ac_prev=psdir ;; 1130 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1131 psdir=$ac_optarg ;; 1132 1133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1134 | -silent | --silent | --silen | --sile | --sil) 1135 silent=yes ;; 1136 1137 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1138 | --runstate | --runstat | --runsta | --runst | --runs \ 1139 | --run | --ru | --r) 1140 ac_prev=runstatedir ;; 1141 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1142 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1143 | --run=* | --ru=* | --r=*) 1144 runstatedir=$ac_optarg ;; 1145 1146 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1147 ac_prev=sbindir ;; 1148 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1149 | --sbi=* | --sb=*) 1150 sbindir=$ac_optarg ;; 1151 1152 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1153 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1154 | --sharedst | --shareds | --shared | --share | --shar \ 1155 | --sha | --sh) 1156 ac_prev=sharedstatedir ;; 1157 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1158 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1159 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1160 | --sha=* | --sh=*) 1161 sharedstatedir=$ac_optarg ;; 1162 1163 -site | --site | --sit) 1164 ac_prev=site ;; 1165 -site=* | --site=* | --sit=*) 1166 site=$ac_optarg ;; 1167 1168 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1169 ac_prev=srcdir ;; 1170 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1171 srcdir=$ac_optarg ;; 1172 1173 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1174 | --syscon | --sysco | --sysc | --sys | --sy) 1175 ac_prev=sysconfdir ;; 1176 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1177 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1178 sysconfdir=$ac_optarg ;; 1179 1180 -target | --target | --targe | --targ | --tar | --ta | --t) 1181 ac_prev=target_alias ;; 1182 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1183 target_alias=$ac_optarg ;; 1184 1185 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1186 verbose=yes ;; 1187 1188 -version | --version | --versio | --versi | --vers | -V) 1189 ac_init_version=: ;; 1190 1191 -with-* | --with-*) 1192 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1193 # Reject names that are not valid shell variable names. 1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1195 as_fn_error $? "invalid package name: $ac_useropt" 1196 ac_useropt_orig=$ac_useropt 1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1198 case $ac_user_opts in 1199 *" 1200 "with_$ac_useropt" 1201 "*) ;; 1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1203 ac_unrecognized_sep=', ';; 1204 esac 1205 eval with_$ac_useropt=\$ac_optarg ;; 1206 1207 -without-* | --without-*) 1208 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1209 # Reject names that are not valid shell variable names. 1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1211 as_fn_error $? "invalid package name: $ac_useropt" 1212 ac_useropt_orig=$ac_useropt 1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1214 case $ac_user_opts in 1215 *" 1216 "with_$ac_useropt" 1217 "*) ;; 1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1219 ac_unrecognized_sep=', ';; 1220 esac 1221 eval with_$ac_useropt=no ;; 1222 1223 --x) 1224 # Obsolete; use --with-x. 1225 with_x=yes ;; 1226 1227 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1228 | --x-incl | --x-inc | --x-in | --x-i) 1229 ac_prev=x_includes ;; 1230 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1231 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1232 x_includes=$ac_optarg ;; 1233 1234 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1235 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1236 ac_prev=x_libraries ;; 1237 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1238 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1239 x_libraries=$ac_optarg ;; 1240 1241 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1242 Try \`$0 --help' for more information" 1243 ;; 1244 1245 *=*) 1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1247 # Reject names that are not valid shell variable names. 1248 case $ac_envvar in #( 1249 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1250 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1251 esac 1252 eval $ac_envvar=\$ac_optarg 1253 export $ac_envvar ;; 1254 1255 *) 1256 # FIXME: should be removed in autoconf 3.0. 1257 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1258 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1259 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1260 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1261 ;; 1262 1263 esac 1264 done 1265 1266 if test -n "$ac_prev"; then 1267 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1268 as_fn_error $? "missing argument to $ac_option" 1269 fi 1270 1271 if test -n "$ac_unrecognized_opts"; then 1272 case $enable_option_checking in 1273 no) ;; 1274 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1275 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1276 esac 1277 fi 1278 1279 # Check all directory arguments for consistency. 1280 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1281 datadir sysconfdir sharedstatedir localstatedir includedir \ 1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1283 libdir localedir mandir runstatedir 1284 do 1285 eval ac_val=\$$ac_var 1286 # Remove trailing slashes. 1287 case $ac_val in 1288 */ ) 1289 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1290 eval $ac_var=\$ac_val;; 1291 esac 1292 # Be sure to have absolute directory names. 1293 case $ac_val in 1294 [\\/$]* | ?:[\\/]* ) continue;; 1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1296 esac 1297 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1298 done 1299 1300 # There might be people who depend on the old broken behavior: `$host' 1301 # used to hold the argument of --host etc. 1302 # FIXME: To remove some day. 1303 build=$build_alias 1304 host=$host_alias 1305 target=$target_alias 1306 1307 # FIXME: To remove some day. 1308 if test "x$host_alias" != x; then 1309 if test "x$build_alias" = x; then 1310 cross_compiling=maybe 1311 elif test "x$build_alias" != "x$host_alias"; then 1312 cross_compiling=yes 1313 fi 1314 fi 1315 1316 ac_tool_prefix= 1317 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1318 1319 test "$silent" = yes && exec 6>/dev/null 1320 1321 1322 ac_pwd=`pwd` && test -n "$ac_pwd" && 1323 ac_ls_di=`ls -di .` && 1324 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1325 as_fn_error $? "working directory cannot be determined" 1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1327 as_fn_error $? "pwd does not report name of working directory" 1328 1329 1330 # Find the source files, if location was not specified. 1331 if test -z "$srcdir"; then 1332 ac_srcdir_defaulted=yes 1333 # Try the directory containing this script, then the parent directory. 1334 ac_confdir=`$as_dirname -- "$as_myself" || 1335 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1336 X"$as_myself" : 'X\(//\)[^/]' \| \ 1337 X"$as_myself" : 'X\(//\)$' \| \ 1338 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1339 $as_echo X"$as_myself" | 1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1341 s//\1/ 1342 q 1343 } 1344 /^X\(\/\/\)[^/].*/{ 1345 s//\1/ 1346 q 1347 } 1348 /^X\(\/\/\)$/{ 1349 s//\1/ 1350 q 1351 } 1352 /^X\(\/\).*/{ 1353 s//\1/ 1354 q 1355 } 1356 s/.*/./; q'` 1357 srcdir=$ac_confdir 1358 if test ! -r "$srcdir/$ac_unique_file"; then 1359 srcdir=.. 1360 fi 1361 else 1362 ac_srcdir_defaulted=no 1363 fi 1364 if test ! -r "$srcdir/$ac_unique_file"; then 1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1366 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1367 fi 1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1369 ac_abs_confdir=`( 1370 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1371 pwd)` 1372 # When building in place, set srcdir=. 1373 if test "$ac_abs_confdir" = "$ac_pwd"; then 1374 srcdir=. 1375 fi 1376 # Remove unnecessary trailing slashes from srcdir. 1377 # Double slashes in file names in object file debugging info 1378 # mess up M-x gdb in Emacs. 1379 case $srcdir in 1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1381 esac 1382 for ac_var in $ac_precious_vars; do 1383 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1384 eval ac_env_${ac_var}_value=\$${ac_var} 1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1386 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1387 done 1388 1389 # 1390 # Report the --help message. 1391 # 1392 if test "$ac_init_help" = "long"; then 1393 # Omit some internal or obsolete options to make the list less imposing. 1394 # This message is too long to be a string in the A/UX 3.1 sh. 1395 cat <<_ACEOF 1396 \`configure' configures this package to adapt to many kinds of systems. 1397 1398 Usage: $0 [OPTION]... [VAR=VALUE]... 1399 1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1401 VAR=VALUE. See below for descriptions of some of the useful variables. 1402 1403 Defaults for the options are specified in brackets. 1404 1405 Configuration: 1406 -h, --help display this help and exit 1407 --help=short display options specific to this package 1408 --help=recursive display the short help of all the included packages 1409 -V, --version display version information and exit 1410 -q, --quiet, --silent do not print \`checking ...' messages 1411 --cache-file=FILE cache test results in FILE [disabled] 1412 -C, --config-cache alias for \`--cache-file=config.cache' 1413 -n, --no-create do not create output files 1414 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1415 1416 Installation directories: 1417 --prefix=PREFIX install architecture-independent files in PREFIX 1418 [$ac_default_prefix] 1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1420 [PREFIX] 1421 1422 By default, \`make install' will install all the files in 1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1425 for instance \`--prefix=\$HOME'. 1426 1427 For better control, use the options below. 1428 1429 Fine tuning of the installation directories: 1430 --bindir=DIR user executables [EPREFIX/bin] 1431 --sbindir=DIR system admin executables [EPREFIX/sbin] 1432 --libexecdir=DIR program executables [EPREFIX/libexec] 1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1436 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1437 --libdir=DIR object code libraries [EPREFIX/lib] 1438 --includedir=DIR C header files [PREFIX/include] 1439 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1442 --infodir=DIR info documentation [DATAROOTDIR/info] 1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1444 --mandir=DIR man documentation [DATAROOTDIR/man] 1445 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1446 --htmldir=DIR html documentation [DOCDIR] 1447 --dvidir=DIR dvi documentation [DOCDIR] 1448 --pdfdir=DIR pdf documentation [DOCDIR] 1449 --psdir=DIR ps documentation [DOCDIR] 1450 _ACEOF 1451 1452 cat <<\_ACEOF 1453 1454 System types: 1455 --build=BUILD configure for building on BUILD [guessed] 1456 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1457 _ACEOF 1458 fi 1459 1460 if test -n "$ac_init_help"; then 1461 1462 cat <<\_ACEOF 1463 1464 Optional Features: 1465 --disable-option-checking ignore unrecognized --enable/--with options 1466 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1467 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1468 --disable-cxx Disable C++ integration 1469 --enable-autogen Automatically regenerate configure output 1470 --enable-doc Build documentation 1471 --enable-shared Build shared libaries 1472 --enable-static Build static libaries 1473 --enable-debug Build debugging code 1474 --disable-stats Disable statistics calculation/reporting 1475 --disable-user-config Do not read malloc config from /etc/malloc.conf or 1476 MALLOC_CONF 1477 --enable-experimental-smallocx 1478 Enable experimental smallocx API 1479 --enable-prof Enable allocation profiling 1480 --enable-prof-libunwind Use libunwind for backtracing 1481 --enable-prof-frameptr Use optimized frame pointer unwinder for backtracing 1482 (Linux only) 1483 --disable-prof-libgcc Do not use libgcc for backtracing 1484 --disable-prof-gcc Do not use gcc intrinsics for backtracing 1485 --disable-dss Disable usage of sbrk(2) 1486 --disable-fill Disable support for junk/zero filling 1487 --enable-utrace Enable utrace(2)-based tracing 1488 --enable-experimental-sdt 1489 Enable systemtap USDT probes 1490 --enable-xmalloc Support xmalloc option 1491 --disable-cache-oblivious 1492 Disable support for cache-oblivious allocation 1493 alignment 1494 --enable-log Support debug logging 1495 --enable-readlinkat Use readlinkat over readlink 1496 --enable-force-getenv Use getenv over secure_getenv 1497 --enable-opt-safety-checks 1498 Perform certain low-overhead checks, even in opt 1499 mode 1500 --enable-opt-size-checks 1501 Perform sized-deallocation argument checks, even in 1502 opt mode 1503 --enable-uaf-detection Allow sampled junk-filling on deallocation to detect 1504 use-after-free 1505 --disable-libdl Do not use libdl 1506 --disable-syscall Disable use of syscall(2) 1507 --enable-lazy-lock Enable lazy locking (only lock when multi-threaded) 1508 --disable-zone-allocator 1509 Disable zone allocator for Darwin 1510 --disable-initial-exec-tls 1511 Disable the initial-exec tls model 1512 --enable-pageid Enable named pages 1513 --enable-tsan Enable thread sanitizer 1514 --enable-ubsan Enable undefined behavior sanitizer 1515 1516 Optional Packages: 1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1519 --with-xslroot=<path> XSL stylesheet root path 1520 --with-cxx-stdlib=<libstdc++|libcxx> 1521 Specify the C++ standard library to link (default: 1522 probe for libstdc++) 1523 --with-lg-vaddr=<lg-vaddr> 1524 Number of significant virtual address bits 1525 --with-version=<major>.<minor>.<bugfix>-<nrev>-g<gid> 1526 Version string 1527 --with-rpath=<rpath> Colon-separated rpath (ELF systems only) 1528 --with-mangling=<map> Mangle symbols in <map> 1529 --with-jemalloc-prefix=<prefix> 1530 Prefix to prepend to all public APIs 1531 --without-export disable exporting jemalloc public APIs 1532 --with-private-namespace=<prefix> 1533 Prefix to prepend to all library-private APIs 1534 --with-install-suffix=<suffix> 1535 Suffix to append to all installed files 1536 --with-malloc-conf=<malloc_conf> 1537 config.malloc_conf options string 1538 --with-static-libunwind=<libunwind.a> 1539 Path to static libunwind library; use rather than 1540 dynamically linking 1541 --with-lg-quantum=<lg-quantum> 1542 Base 2 log of minimum allocation alignment 1543 --with-lg-slab-maxregs=<lg-slab-maxregs> 1544 Base 2 log of maximum number of regions in a slab 1545 (used with malloc_conf slab_sizes) 1546 --with-lg-page=<lg-page> 1547 Base 2 log of system page size 1548 --with-lg-hugepage=<lg-hugepage> 1549 Base 2 log of system huge page size 1550 --with-experimental-sys-process-madvise=<experimental-sys-process-madvise> 1551 Force process_madvise and use 1552 experimental-sys-process-madvise number when making 1553 syscall 1554 1555 Some influential environment variables: 1556 CC C compiler command 1557 CFLAGS C compiler flags 1558 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1559 nonstandard directory <lib dir> 1560 LIBS libraries to pass to the linker, e.g. -l<library> 1561 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1562 you have headers in a nonstandard directory <include dir> 1563 CPP C preprocessor 1564 CXX C++ compiler command 1565 CXXFLAGS C++ compiler flags 1566 1567 Use these variables to override the choices made by `configure' or to help 1568 it to find libraries and programs with nonstandard names/locations. 1569 1570 Report bugs to the package provider. 1571 _ACEOF 1572 ac_status=$? 1573 fi 1574 1575 if test "$ac_init_help" = "recursive"; then 1576 # If there are subdirs, report their specific --help. 1577 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1578 test -d "$ac_dir" || 1579 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1580 continue 1581 ac_builddir=. 1582 1583 case "$ac_dir" in 1584 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1585 *) 1586 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1587 # A ".." for each directory in $ac_dir_suffix. 1588 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1589 case $ac_top_builddir_sub in 1590 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1591 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1592 esac ;; 1593 esac 1594 ac_abs_top_builddir=$ac_pwd 1595 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1596 # for backward compatibility: 1597 ac_top_builddir=$ac_top_build_prefix 1598 1599 case $srcdir in 1600 .) # We are building in place. 1601 ac_srcdir=. 1602 ac_top_srcdir=$ac_top_builddir_sub 1603 ac_abs_top_srcdir=$ac_pwd ;; 1604 [\\/]* | ?:[\\/]* ) # Absolute name. 1605 ac_srcdir=$srcdir$ac_dir_suffix; 1606 ac_top_srcdir=$srcdir 1607 ac_abs_top_srcdir=$srcdir ;; 1608 *) # Relative name. 1609 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1610 ac_top_srcdir=$ac_top_build_prefix$srcdir 1611 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1612 esac 1613 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1614 1615 cd "$ac_dir" || { ac_status=$?; continue; } 1616 # Check for guested configure. 1617 if test -f "$ac_srcdir/configure.gnu"; then 1618 echo && 1619 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1620 elif test -f "$ac_srcdir/configure"; then 1621 echo && 1622 $SHELL "$ac_srcdir/configure" --help=recursive 1623 else 1624 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1625 fi || ac_status=$? 1626 cd "$ac_pwd" || { ac_status=$?; break; } 1627 done 1628 fi 1629 1630 test -n "$ac_init_help" && exit $ac_status 1631 if $ac_init_version; then 1632 cat <<\_ACEOF 1633 configure 1634 generated by GNU Autoconf 2.69 1635 1636 Copyright (C) 2012 Free Software Foundation, Inc. 1637 This configure script is free software; the Free Software Foundation 1638 gives unlimited permission to copy, distribute and modify it. 1639 _ACEOF 1640 exit 1641 fi 1642 1643 ## ------------------------ ## 1644 ## Autoconf initialization. ## 1645 ## ------------------------ ## 1646 1647 # ac_fn_c_try_compile LINENO 1648 # -------------------------- 1649 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1650 ac_fn_c_try_compile () 1651 { 1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1653 rm -f conftest.$ac_objext 1654 if { { ac_try="$ac_compile" 1655 case "(($ac_try" in 1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1657 *) ac_try_echo=$ac_try;; 1658 esac 1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1660 $as_echo "$ac_try_echo"; } >&5 1661 (eval "$ac_compile") 2>conftest.err 1662 ac_status=$? 1663 if test -s conftest.err; then 1664 grep -v '^ *+' conftest.err >conftest.er1 1665 cat conftest.er1 >&5 1666 mv -f conftest.er1 conftest.err 1667 fi 1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1669 test $ac_status = 0; } && { 1670 test -z "$ac_c_werror_flag" || 1671 test ! -s conftest.err 1672 } && test -s conftest.$ac_objext; then : 1673 ac_retval=0 1674 else 1675 $as_echo "$as_me: failed program was:" >&5 1676 sed 's/^/| /' conftest.$ac_ext >&5 1677 1678 ac_retval=1 1679 fi 1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1681 as_fn_set_status $ac_retval 1682 1683 } # ac_fn_c_try_compile 1684 1685 # ac_fn_c_try_cpp LINENO 1686 # ---------------------- 1687 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1688 ac_fn_c_try_cpp () 1689 { 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691 if { { ac_try="$ac_cpp conftest.$ac_ext" 1692 case "(($ac_try" in 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1694 *) ac_try_echo=$ac_try;; 1695 esac 1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1697 $as_echo "$ac_try_echo"; } >&5 1698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1699 ac_status=$? 1700 if test -s conftest.err; then 1701 grep -v '^ *+' conftest.err >conftest.er1 1702 cat conftest.er1 >&5 1703 mv -f conftest.er1 conftest.err 1704 fi 1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1706 test $ac_status = 0; } > conftest.i && { 1707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1708 test ! -s conftest.err 1709 }; then : 1710 ac_retval=0 1711 else 1712 $as_echo "$as_me: failed program was:" >&5 1713 sed 's/^/| /' conftest.$ac_ext >&5 1714 1715 ac_retval=1 1716 fi 1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1718 as_fn_set_status $ac_retval 1719 1720 } # ac_fn_c_try_cpp 1721 1722 # ac_fn_cxx_try_compile LINENO 1723 # ---------------------------- 1724 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1725 ac_fn_cxx_try_compile () 1726 { 1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1728 rm -f conftest.$ac_objext 1729 if { { ac_try="$ac_compile" 1730 case "(($ac_try" in 1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1732 *) ac_try_echo=$ac_try;; 1733 esac 1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1735 $as_echo "$ac_try_echo"; } >&5 1736 (eval "$ac_compile") 2>conftest.err 1737 ac_status=$? 1738 if test -s conftest.err; then 1739 grep -v '^ *+' conftest.err >conftest.er1 1740 cat conftest.er1 >&5 1741 mv -f conftest.er1 conftest.err 1742 fi 1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1744 test $ac_status = 0; } && { 1745 test -z "$ac_cxx_werror_flag" || 1746 test ! -s conftest.err 1747 } && test -s conftest.$ac_objext; then : 1748 ac_retval=0 1749 else 1750 $as_echo "$as_me: failed program was:" >&5 1751 sed 's/^/| /' conftest.$ac_ext >&5 1752 1753 ac_retval=1 1754 fi 1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1756 as_fn_set_status $ac_retval 1757 1758 } # ac_fn_cxx_try_compile 1759 1760 # ac_fn_c_try_link LINENO 1761 # ----------------------- 1762 # Try to link conftest.$ac_ext, and return whether this succeeded. 1763 ac_fn_c_try_link () 1764 { 1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1766 rm -f conftest.$ac_objext conftest$ac_exeext 1767 if { { ac_try="$ac_link" 1768 case "(($ac_try" in 1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1770 *) ac_try_echo=$ac_try;; 1771 esac 1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1773 $as_echo "$ac_try_echo"; } >&5 1774 (eval "$ac_link") 2>conftest.err 1775 ac_status=$? 1776 if test -s conftest.err; then 1777 grep -v '^ *+' conftest.err >conftest.er1 1778 cat conftest.er1 >&5 1779 mv -f conftest.er1 conftest.err 1780 fi 1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1782 test $ac_status = 0; } && { 1783 test -z "$ac_c_werror_flag" || 1784 test ! -s conftest.err 1785 } && test -s conftest$ac_exeext && { 1786 test "$cross_compiling" = yes || 1787 test -x conftest$ac_exeext 1788 }; then : 1789 ac_retval=0 1790 else 1791 $as_echo "$as_me: failed program was:" >&5 1792 sed 's/^/| /' conftest.$ac_ext >&5 1793 1794 ac_retval=1 1795 fi 1796 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1797 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1798 # interfere with the next link command; also delete a directory that is 1799 # left behind by Apple's compiler. We do this before executing the actions. 1800 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1802 as_fn_set_status $ac_retval 1803 1804 } # ac_fn_c_try_link 1805 1806 # ac_fn_c_try_run LINENO 1807 # ---------------------- 1808 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1809 # that executables *can* be run. 1810 ac_fn_c_try_run () 1811 { 1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1813 if { { ac_try="$ac_link" 1814 case "(($ac_try" in 1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1816 *) ac_try_echo=$ac_try;; 1817 esac 1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1819 $as_echo "$ac_try_echo"; } >&5 1820 (eval "$ac_link") 2>&5 1821 ac_status=$? 1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1823 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1824 { { case "(($ac_try" in 1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1826 *) ac_try_echo=$ac_try;; 1827 esac 1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1829 $as_echo "$ac_try_echo"; } >&5 1830 (eval "$ac_try") 2>&5 1831 ac_status=$? 1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1833 test $ac_status = 0; }; }; then : 1834 ac_retval=0 1835 else 1836 $as_echo "$as_me: program exited with status $ac_status" >&5 1837 $as_echo "$as_me: failed program was:" >&5 1838 sed 's/^/| /' conftest.$ac_ext >&5 1839 1840 ac_retval=$ac_status 1841 fi 1842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1844 as_fn_set_status $ac_retval 1845 1846 } # ac_fn_c_try_run 1847 1848 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1849 # ------------------------------------------------------- 1850 # Tests whether HEADER exists and can be compiled using the include files in 1851 # INCLUDES, setting the cache variable VAR accordingly. 1852 ac_fn_c_check_header_compile () 1853 { 1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1856 $as_echo_n "checking for $2... " >&6; } 1857 if eval \${$3+:} false; then : 1858 $as_echo_n "(cached) " >&6 1859 else 1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1861 /* end confdefs.h. */ 1862 $4 1863 #include <$2> 1864 _ACEOF 1865 if ac_fn_c_try_compile "$LINENO"; then : 1866 eval "$3=yes" 1867 else 1868 eval "$3=no" 1869 fi 1870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1871 fi 1872 eval ac_res=\$$3 1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1874 $as_echo "$ac_res" >&6; } 1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1876 1877 } # ac_fn_c_check_header_compile 1878 1879 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1880 # -------------------------------------------- 1881 # Tries to find the compile-time value of EXPR in a program that includes 1882 # INCLUDES, setting VAR accordingly. Returns whether the value could be 1883 # computed 1884 ac_fn_c_compute_int () 1885 { 1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1887 if test "$cross_compiling" = yes; then 1888 # Depending upon the size, compute the lo and hi bounds. 1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1890 /* end confdefs.h. */ 1891 $4 1892 int 1893 main () 1894 { 1895 static int test_array [1 - 2 * !(($2) >= 0)]; 1896 test_array [0] = 0; 1897 return test_array [0]; 1898 1899 ; 1900 return 0; 1901 } 1902 _ACEOF 1903 if ac_fn_c_try_compile "$LINENO"; then : 1904 ac_lo=0 ac_mid=0 1905 while :; do 1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1907 /* end confdefs.h. */ 1908 $4 1909 int 1910 main () 1911 { 1912 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1913 test_array [0] = 0; 1914 return test_array [0]; 1915 1916 ; 1917 return 0; 1918 } 1919 _ACEOF 1920 if ac_fn_c_try_compile "$LINENO"; then : 1921 ac_hi=$ac_mid; break 1922 else 1923 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1924 if test $ac_lo -le $ac_mid; then 1925 ac_lo= ac_hi= 1926 break 1927 fi 1928 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1929 fi 1930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1931 done 1932 else 1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1934 /* end confdefs.h. */ 1935 $4 1936 int 1937 main () 1938 { 1939 static int test_array [1 - 2 * !(($2) < 0)]; 1940 test_array [0] = 0; 1941 return test_array [0]; 1942 1943 ; 1944 return 0; 1945 } 1946 _ACEOF 1947 if ac_fn_c_try_compile "$LINENO"; then : 1948 ac_hi=-1 ac_mid=-1 1949 while :; do 1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1951 /* end confdefs.h. */ 1952 $4 1953 int 1954 main () 1955 { 1956 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1957 test_array [0] = 0; 1958 return test_array [0]; 1959 1960 ; 1961 return 0; 1962 } 1963 _ACEOF 1964 if ac_fn_c_try_compile "$LINENO"; then : 1965 ac_lo=$ac_mid; break 1966 else 1967 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1968 if test $ac_mid -le $ac_hi; then 1969 ac_lo= ac_hi= 1970 break 1971 fi 1972 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1973 fi 1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1975 done 1976 else 1977 ac_lo= ac_hi= 1978 fi 1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1980 fi 1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1982 # Binary search between lo and hi bounds. 1983 while test "x$ac_lo" != "x$ac_hi"; do 1984 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1986 /* end confdefs.h. */ 1987 $4 1988 int 1989 main () 1990 { 1991 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1992 test_array [0] = 0; 1993 return test_array [0]; 1994 1995 ; 1996 return 0; 1997 } 1998 _ACEOF 1999 if ac_fn_c_try_compile "$LINENO"; then : 2000 ac_hi=$ac_mid 2001 else 2002 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2003 fi 2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2005 done 2006 case $ac_lo in #(( 2007 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2008 '') ac_retval=1 ;; 2009 esac 2010 else 2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2012 /* end confdefs.h. */ 2013 $4 2014 static long int longval () { return $2; } 2015 static unsigned long int ulongval () { return $2; } 2016 #include <stdio.h> 2017 #include <stdlib.h> 2018 int 2019 main () 2020 { 2021 2022 FILE *f = fopen ("conftest.val", "w"); 2023 if (! f) 2024 return 1; 2025 if (($2) < 0) 2026 { 2027 long int i = longval (); 2028 if (i != ($2)) 2029 return 1; 2030 fprintf (f, "%ld", i); 2031 } 2032 else 2033 { 2034 unsigned long int i = ulongval (); 2035 if (i != ($2)) 2036 return 1; 2037 fprintf (f, "%lu", i); 2038 } 2039 /* Do not output a trailing newline, as this causes \r\n confusion 2040 on some platforms. */ 2041 return ferror (f) || fclose (f) != 0; 2042 2043 ; 2044 return 0; 2045 } 2046 _ACEOF 2047 if ac_fn_c_try_run "$LINENO"; then : 2048 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2049 else 2050 ac_retval=1 2051 fi 2052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2053 conftest.$ac_objext conftest.beam conftest.$ac_ext 2054 rm -f conftest.val 2055 2056 fi 2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2058 as_fn_set_status $ac_retval 2059 2060 } # ac_fn_c_compute_int 2061 2062 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2063 # ------------------------------------------------------- 2064 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2065 # the include files in INCLUDES and setting the cache variable VAR 2066 # accordingly. 2067 ac_fn_c_check_header_mongrel () 2068 { 2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2070 if eval \${$3+:} false; then : 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2072 $as_echo_n "checking for $2... " >&6; } 2073 if eval \${$3+:} false; then : 2074 $as_echo_n "(cached) " >&6 2075 fi 2076 eval ac_res=\$$3 2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2078 $as_echo "$ac_res" >&6; } 2079 else 2080 # Is the header compilable? 2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2082 $as_echo_n "checking $2 usability... " >&6; } 2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2084 /* end confdefs.h. */ 2085 $4 2086 #include <$2> 2087 _ACEOF 2088 if ac_fn_c_try_compile "$LINENO"; then : 2089 ac_header_compiler=yes 2090 else 2091 ac_header_compiler=no 2092 fi 2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2095 $as_echo "$ac_header_compiler" >&6; } 2096 2097 # Is the header present? 2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2099 $as_echo_n "checking $2 presence... " >&6; } 2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2101 /* end confdefs.h. */ 2102 #include <$2> 2103 _ACEOF 2104 if ac_fn_c_try_cpp "$LINENO"; then : 2105 ac_header_preproc=yes 2106 else 2107 ac_header_preproc=no 2108 fi 2109 rm -f conftest.err conftest.i conftest.$ac_ext 2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2111 $as_echo "$ac_header_preproc" >&6; } 2112 2113 # So? What about this header? 2114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2115 yes:no: ) 2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2117 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2119 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2120 ;; 2121 no:yes:* ) 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2123 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2125 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2127 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2129 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2131 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2132 ;; 2133 esac 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2135 $as_echo_n "checking for $2... " >&6; } 2136 if eval \${$3+:} false; then : 2137 $as_echo_n "(cached) " >&6 2138 else 2139 eval "$3=\$ac_header_compiler" 2140 fi 2141 eval ac_res=\$$3 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2143 $as_echo "$ac_res" >&6; } 2144 fi 2145 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2146 2147 } # ac_fn_c_check_header_mongrel 2148 2149 # ac_fn_c_check_func LINENO FUNC VAR 2150 # ---------------------------------- 2151 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2152 ac_fn_c_check_func () 2153 { 2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2156 $as_echo_n "checking for $2... " >&6; } 2157 if eval \${$3+:} false; then : 2158 $as_echo_n "(cached) " >&6 2159 else 2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2161 /* end confdefs.h. */ 2162 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2163 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2164 #define $2 innocuous_$2 2165 2166 /* System header to define __stub macros and hopefully few prototypes, 2167 which can conflict with char $2 (); below. 2168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2169 <limits.h> exists even on freestanding compilers. */ 2170 2171 #ifdef __STDC__ 2172 # include <limits.h> 2173 #else 2174 # include <assert.h> 2175 #endif 2176 2177 #undef $2 2178 2179 /* Override any GCC internal prototype to avoid an error. 2180 Use char because int might match the return type of a GCC 2181 builtin and then its argument prototype would still apply. */ 2182 #ifdef __cplusplus 2183 extern "C" 2184 #endif 2185 char $2 (); 2186 /* The GNU C library defines this for functions which it implements 2187 to always fail with ENOSYS. Some functions are actually named 2188 something starting with __ and the normal name is an alias. */ 2189 #if defined __stub_$2 || defined __stub___$2 2190 choke me 2191 #endif 2192 2193 int 2194 main () 2195 { 2196 return $2 (); 2197 ; 2198 return 0; 2199 } 2200 _ACEOF 2201 if ac_fn_c_try_link "$LINENO"; then : 2202 eval "$3=yes" 2203 else 2204 eval "$3=no" 2205 fi 2206 rm -f core conftest.err conftest.$ac_objext \ 2207 conftest$ac_exeext conftest.$ac_ext 2208 fi 2209 eval ac_res=\$$3 2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2211 $as_echo "$ac_res" >&6; } 2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2213 2214 } # ac_fn_c_check_func 2215 2216 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2217 # --------------------------------------------- 2218 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2219 # accordingly. 2220 ac_fn_c_check_decl () 2221 { 2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2223 as_decl_name=`echo $2|sed 's/ *(.*//'` 2224 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2226 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2227 if eval \${$3+:} false; then : 2228 $as_echo_n "(cached) " >&6 2229 else 2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2231 /* end confdefs.h. */ 2232 $4 2233 int 2234 main () 2235 { 2236 #ifndef $as_decl_name 2237 #ifdef __cplusplus 2238 (void) $as_decl_use; 2239 #else 2240 (void) $as_decl_name; 2241 #endif 2242 #endif 2243 2244 ; 2245 return 0; 2246 } 2247 _ACEOF 2248 if ac_fn_c_try_compile "$LINENO"; then : 2249 eval "$3=yes" 2250 else 2251 eval "$3=no" 2252 fi 2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2254 fi 2255 eval ac_res=\$$3 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2257 $as_echo "$ac_res" >&6; } 2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2259 2260 } # ac_fn_c_check_decl 2261 2262 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2263 # ------------------------------------------- 2264 # Tests whether TYPE exists after having included INCLUDES, setting cache 2265 # variable VAR accordingly. 2266 ac_fn_c_check_type () 2267 { 2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2270 $as_echo_n "checking for $2... " >&6; } 2271 if eval \${$3+:} false; then : 2272 $as_echo_n "(cached) " >&6 2273 else 2274 eval "$3=no" 2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2276 /* end confdefs.h. */ 2277 $4 2278 int 2279 main () 2280 { 2281 if (sizeof ($2)) 2282 return 0; 2283 ; 2284 return 0; 2285 } 2286 _ACEOF 2287 if ac_fn_c_try_compile "$LINENO"; then : 2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2289 /* end confdefs.h. */ 2290 $4 2291 int 2292 main () 2293 { 2294 if (sizeof (($2))) 2295 return 0; 2296 ; 2297 return 0; 2298 } 2299 _ACEOF 2300 if ac_fn_c_try_compile "$LINENO"; then : 2301 2302 else 2303 eval "$3=yes" 2304 fi 2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2306 fi 2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2308 fi 2309 eval ac_res=\$$3 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2311 $as_echo "$ac_res" >&6; } 2312 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2313 2314 } # ac_fn_c_check_type 2315 cat >config.log <<_ACEOF 2316 This file contains any messages produced by compilers while 2317 running configure, to aid debugging if configure makes a mistake. 2318 2319 It was created by $as_me, which was 2320 generated by GNU Autoconf 2.69. Invocation command line was 2321 2322 $ $0 $@ 2323 2324 _ACEOF 2325 exec 5>>config.log 2326 { 2327 cat <<_ASUNAME 2328 ## --------- ## 2329 ## Platform. ## 2330 ## --------- ## 2331 2332 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2333 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2334 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2335 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2336 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2337 2338 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2339 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2340 2341 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2342 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2343 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2344 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2345 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2346 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2347 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2348 2349 _ASUNAME 2350 2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2352 for as_dir in $PATH 2353 do 2354 IFS=$as_save_IFS 2355 test -z "$as_dir" && as_dir=. 2356 $as_echo "PATH: $as_dir" 2357 done 2358 IFS=$as_save_IFS 2359 2360 } >&5 2361 2362 cat >&5 <<_ACEOF 2363 2364 2365 ## ----------- ## 2366 ## Core tests. ## 2367 ## ----------- ## 2368 2369 _ACEOF 2370 2371 2372 # Keep a trace of the command line. 2373 # Strip out --no-create and --no-recursion so they do not pile up. 2374 # Strip out --silent because we don't want to record it for future runs. 2375 # Also quote any args containing shell meta-characters. 2376 # Make two passes to allow for proper duplicate-argument suppression. 2377 ac_configure_args= 2378 ac_configure_args0= 2379 ac_configure_args1= 2380 ac_must_keep_next=false 2381 for ac_pass in 1 2 2382 do 2383 for ac_arg 2384 do 2385 case $ac_arg in 2386 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2388 | -silent | --silent | --silen | --sile | --sil) 2389 continue ;; 2390 *\'*) 2391 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2392 esac 2393 case $ac_pass in 2394 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2395 2) 2396 as_fn_append ac_configure_args1 " '$ac_arg'" 2397 if test $ac_must_keep_next = true; then 2398 ac_must_keep_next=false # Got value, back to normal. 2399 else 2400 case $ac_arg in 2401 *=* | --config-cache | -C | -disable-* | --disable-* \ 2402 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2403 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2404 | -with-* | --with-* | -without-* | --without-* | --x) 2405 case "$ac_configure_args0 " in 2406 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2407 esac 2408 ;; 2409 -* ) ac_must_keep_next=true ;; 2410 esac 2411 fi 2412 as_fn_append ac_configure_args " '$ac_arg'" 2413 ;; 2414 esac 2415 done 2416 done 2417 { ac_configure_args0=; unset ac_configure_args0;} 2418 { ac_configure_args1=; unset ac_configure_args1;} 2419 2420 # When interrupted or exit'd, cleanup temporary files, and complete 2421 # config.log. We remove comments because anyway the quotes in there 2422 # would cause problems or look ugly. 2423 # WARNING: Use '\'' to represent an apostrophe within the trap. 2424 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2425 trap 'exit_status=$? 2426 # Save into config.log some information that might help in debugging. 2427 { 2428 echo 2429 2430 $as_echo "## ---------------- ## 2431 ## Cache variables. ## 2432 ## ---------------- ##" 2433 echo 2434 # The following way of writing the cache mishandles newlines in values, 2435 ( 2436 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2437 eval ac_val=\$$ac_var 2438 case $ac_val in #( 2439 *${as_nl}*) 2440 case $ac_var in #( 2441 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2442 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2443 esac 2444 case $ac_var in #( 2445 _ | IFS | as_nl) ;; #( 2446 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2447 *) { eval $ac_var=; unset $ac_var;} ;; 2448 esac ;; 2449 esac 2450 done 2451 (set) 2>&1 | 2452 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2453 *${as_nl}ac_space=\ *) 2454 sed -n \ 2455 "s/'\''/'\''\\\\'\'''\''/g; 2456 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2457 ;; #( 2458 *) 2459 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2460 ;; 2461 esac | 2462 sort 2463 ) 2464 echo 2465 2466 $as_echo "## ----------------- ## 2467 ## Output variables. ## 2468 ## ----------------- ##" 2469 echo 2470 for ac_var in $ac_subst_vars 2471 do 2472 eval ac_val=\$$ac_var 2473 case $ac_val in 2474 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2475 esac 2476 $as_echo "$ac_var='\''$ac_val'\''" 2477 done | sort 2478 echo 2479 2480 if test -n "$ac_subst_files"; then 2481 $as_echo "## ------------------- ## 2482 ## File substitutions. ## 2483 ## ------------------- ##" 2484 echo 2485 for ac_var in $ac_subst_files 2486 do 2487 eval ac_val=\$$ac_var 2488 case $ac_val in 2489 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2490 esac 2491 $as_echo "$ac_var='\''$ac_val'\''" 2492 done | sort 2493 echo 2494 fi 2495 2496 if test -s confdefs.h; then 2497 $as_echo "## ----------- ## 2498 ## confdefs.h. ## 2499 ## ----------- ##" 2500 echo 2501 cat confdefs.h 2502 echo 2503 fi 2504 test "$ac_signal" != 0 && 2505 $as_echo "$as_me: caught signal $ac_signal" 2506 $as_echo "$as_me: exit $exit_status" 2507 } >&5 2508 rm -f core *.core core.conftest.* && 2509 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2510 exit $exit_status 2511 ' 0 2512 for ac_signal in 1 2 13 15; do 2513 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2514 done 2515 ac_signal=0 2516 2517 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2518 rm -f -r conftest* confdefs.h 2519 2520 $as_echo "/* confdefs.h */" > confdefs.h 2521 2522 # Predefined preprocessor variables. 2523 2524 cat >>confdefs.h <<_ACEOF 2525 #define PACKAGE_NAME "$PACKAGE_NAME" 2526 _ACEOF 2527 2528 cat >>confdefs.h <<_ACEOF 2529 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2530 _ACEOF 2531 2532 cat >>confdefs.h <<_ACEOF 2533 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2534 _ACEOF 2535 2536 cat >>confdefs.h <<_ACEOF 2537 #define PACKAGE_STRING "$PACKAGE_STRING" 2538 _ACEOF 2539 2540 cat >>confdefs.h <<_ACEOF 2541 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2542 _ACEOF 2543 2544 cat >>confdefs.h <<_ACEOF 2545 #define PACKAGE_URL "$PACKAGE_URL" 2546 _ACEOF 2547 2548 2549 # Let the site file select an alternate cache file if it wants to. 2550 # Prefer an explicitly selected file to automatically selected ones. 2551 ac_site_file1=NONE 2552 ac_site_file2=NONE 2553 if test -n "$CONFIG_SITE"; then 2554 # We do not want a PATH search for config.site. 2555 case $CONFIG_SITE in #(( 2556 -*) ac_site_file1=./$CONFIG_SITE;; 2557 */*) ac_site_file1=$CONFIG_SITE;; 2558 *) ac_site_file1=./$CONFIG_SITE;; 2559 esac 2560 elif test "x$prefix" != xNONE; then 2561 ac_site_file1=$prefix/share/config.site 2562 ac_site_file2=$prefix/etc/config.site 2563 else 2564 ac_site_file1=$ac_default_prefix/share/config.site 2565 ac_site_file2=$ac_default_prefix/etc/config.site 2566 fi 2567 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2568 do 2569 test "x$ac_site_file" = xNONE && continue 2570 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2571 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2572 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2573 sed 's/^/| /' "$ac_site_file" >&5 2574 . "$ac_site_file" \ 2575 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2577 as_fn_error $? "failed to load site script $ac_site_file 2578 See \`config.log' for more details" "$LINENO" 5; } 2579 fi 2580 done 2581 2582 if test -r "$cache_file"; then 2583 # Some versions of bash will fail to source /dev/null (special files 2584 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2585 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2587 $as_echo "$as_me: loading cache $cache_file" >&6;} 2588 case $cache_file in 2589 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2590 *) . "./$cache_file";; 2591 esac 2592 fi 2593 else 2594 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2595 $as_echo "$as_me: creating cache $cache_file" >&6;} 2596 >$cache_file 2597 fi 2598 2599 # Check that the precious variables saved in the cache have kept the same 2600 # value. 2601 ac_cache_corrupted=false 2602 for ac_var in $ac_precious_vars; do 2603 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2604 eval ac_new_set=\$ac_env_${ac_var}_set 2605 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2606 eval ac_new_val=\$ac_env_${ac_var}_value 2607 case $ac_old_set,$ac_new_set in 2608 set,) 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2610 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2611 ac_cache_corrupted=: ;; 2612 ,set) 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2614 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2615 ac_cache_corrupted=: ;; 2616 ,);; 2617 *) 2618 if test "x$ac_old_val" != "x$ac_new_val"; then 2619 # differences in whitespace do not lead to failure. 2620 ac_old_val_w=`echo x $ac_old_val` 2621 ac_new_val_w=`echo x $ac_new_val` 2622 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2623 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2624 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2625 ac_cache_corrupted=: 2626 else 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2628 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2629 eval $ac_var=\$ac_old_val 2630 fi 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2632 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2634 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2635 fi;; 2636 esac 2637 # Pass precious variables to config.status. 2638 if test "$ac_new_set" = set; then 2639 case $ac_new_val in 2640 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2641 *) ac_arg=$ac_var=$ac_new_val ;; 2642 esac 2643 case " $ac_configure_args " in 2644 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2645 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2646 esac 2647 fi 2648 done 2649 if $ac_cache_corrupted; then 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2652 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2653 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2654 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2655 fi 2656 ## -------------------- ## 2657 ## Main body of script. ## 2658 ## -------------------- ## 2659 2660 ac_ext=c 2661 ac_cpp='$CPP $CPPFLAGS' 2662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2664 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2665 2666 2667 2668 ac_aux_dir= 2669 for ac_dir in build-aux "$srcdir"/build-aux; do 2670 if test -f "$ac_dir/install-sh"; then 2671 ac_aux_dir=$ac_dir 2672 ac_install_sh="$ac_aux_dir/install-sh -c" 2673 break 2674 elif test -f "$ac_dir/install.sh"; then 2675 ac_aux_dir=$ac_dir 2676 ac_install_sh="$ac_aux_dir/install.sh -c" 2677 break 2678 elif test -f "$ac_dir/shtool"; then 2679 ac_aux_dir=$ac_dir 2680 ac_install_sh="$ac_aux_dir/shtool install -c" 2681 break 2682 fi 2683 done 2684 if test -z "$ac_aux_dir"; then 2685 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2686 fi 2687 2688 # These three variables are undocumented and unsupported, 2689 # and are intended to be withdrawn in a future Autoconf release. 2690 # They can cause serious problems if a builder's source tree is in a directory 2691 # whose full name contains unusual characters. 2692 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2693 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2694 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2695 2696 2697 2698 2699 2700 2701 2702 2703 CONFIGURE_CFLAGS= 2704 SPECIFIED_CFLAGS="${CFLAGS}" 2705 2706 2707 2708 2709 2710 CONFIGURE_CXXFLAGS= 2711 SPECIFIED_CXXFLAGS="${CXXFLAGS}" 2712 2713 2714 CONFIGURE_LDFLAGS= 2715 SPECIFIED_LDFLAGS="${LDFLAGS}" 2716 2717 2718 2719 2720 2721 CONFIG=`echo ${ac_configure_args} | sed -e 's#'"'"'\([^ ]*\)'"'"'#\1#g'` 2722 2723 2724 rev=2 2725 2726 2727 srcroot=$srcdir 2728 if test "x${srcroot}" = "x." ; then 2729 srcroot="" 2730 else 2731 srcroot="${srcroot}/" 2732 fi 2733 2734 abs_srcroot="`cd \"${srcdir}\"; pwd`/" 2735 2736 2737 objroot="" 2738 2739 abs_objroot="`pwd`/" 2740 2741 2742 case "$prefix" in 2743 *\ * ) as_fn_error $? "Prefix should not contain spaces" "$LINENO" 5 ;; 2744 "NONE" ) prefix="/usr/local" ;; 2745 esac 2746 case "$exec_prefix" in 2747 *\ * ) as_fn_error $? "Exec prefix should not contain spaces" "$LINENO" 5 ;; 2748 "NONE" ) exec_prefix=$prefix ;; 2749 esac 2750 PREFIX=$prefix 2751 2752 BINDIR=`eval echo $bindir` 2753 BINDIR=`eval echo $BINDIR` 2754 2755 INCLUDEDIR=`eval echo $includedir` 2756 INCLUDEDIR=`eval echo $INCLUDEDIR` 2757 2758 LIBDIR=`eval echo $libdir` 2759 LIBDIR=`eval echo $LIBDIR` 2760 2761 DATADIR=`eval echo $datadir` 2762 DATADIR=`eval echo $DATADIR` 2763 2764 MANDIR=`eval echo $mandir` 2765 MANDIR=`eval echo $MANDIR` 2766 2767 2768 # Extract the first word of "xsltproc", so it can be a program name with args. 2769 set dummy xsltproc; ac_word=$2 2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2771 $as_echo_n "checking for $ac_word... " >&6; } 2772 if ${ac_cv_path_XSLTPROC+:} false; then : 2773 $as_echo_n "(cached) " >&6 2774 else 2775 case $XSLTPROC in 2776 [\\/]* | ?:[\\/]*) 2777 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 2778 ;; 2779 *) 2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2781 for as_dir in $PATH 2782 do 2783 IFS=$as_save_IFS 2784 test -z "$as_dir" && as_dir=. 2785 for ac_exec_ext in '' $ac_executable_extensions; do 2786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2787 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2789 break 2 2790 fi 2791 done 2792 done 2793 IFS=$as_save_IFS 2794 2795 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="false" 2796 ;; 2797 esac 2798 fi 2799 XSLTPROC=$ac_cv_path_XSLTPROC 2800 if test -n "$XSLTPROC"; then 2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 2802 $as_echo "$XSLTPROC" >&6; } 2803 else 2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2805 $as_echo "no" >&6; } 2806 fi 2807 2808 2809 if test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then 2810 DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl" 2811 elif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then 2812 DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets" 2813 else 2814 DEFAULT_XSLROOT="" 2815 fi 2816 2817 # Check whether --with-xslroot was given. 2818 if test "${with_xslroot+set}" = set; then : 2819 withval=$with_xslroot; 2820 if test "x$with_xslroot" = "xno" ; then 2821 XSLROOT="${DEFAULT_XSLROOT}" 2822 else 2823 XSLROOT="${with_xslroot}" 2824 fi 2825 2826 else 2827 XSLROOT="${DEFAULT_XSLROOT}" 2828 2829 fi 2830 2831 if test "x$XSLTPROC" = "xfalse" ; then 2832 XSLROOT="" 2833 fi 2834 2835 2836 CFLAGS=$CFLAGS 2837 ac_ext=c 2838 ac_cpp='$CPP $CPPFLAGS' 2839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2841 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2842 if test -n "$ac_tool_prefix"; then 2843 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2844 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2846 $as_echo_n "checking for $ac_word... " >&6; } 2847 if ${ac_cv_prog_CC+:} false; then : 2848 $as_echo_n "(cached) " >&6 2849 else 2850 if test -n "$CC"; then 2851 ac_cv_prog_CC="$CC" # Let the user override the test. 2852 else 2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2854 for as_dir in $PATH 2855 do 2856 IFS=$as_save_IFS 2857 test -z "$as_dir" && as_dir=. 2858 for ac_exec_ext in '' $ac_executable_extensions; do 2859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2860 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2862 break 2 2863 fi 2864 done 2865 done 2866 IFS=$as_save_IFS 2867 2868 fi 2869 fi 2870 CC=$ac_cv_prog_CC 2871 if test -n "$CC"; then 2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2873 $as_echo "$CC" >&6; } 2874 else 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2876 $as_echo "no" >&6; } 2877 fi 2878 2879 2880 fi 2881 if test -z "$ac_cv_prog_CC"; then 2882 ac_ct_CC=$CC 2883 # Extract the first word of "gcc", so it can be a program name with args. 2884 set dummy gcc; ac_word=$2 2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2886 $as_echo_n "checking for $ac_word... " >&6; } 2887 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2888 $as_echo_n "(cached) " >&6 2889 else 2890 if test -n "$ac_ct_CC"; then 2891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2892 else 2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2894 for as_dir in $PATH 2895 do 2896 IFS=$as_save_IFS 2897 test -z "$as_dir" && as_dir=. 2898 for ac_exec_ext in '' $ac_executable_extensions; do 2899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2900 ac_cv_prog_ac_ct_CC="gcc" 2901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2902 break 2 2903 fi 2904 done 2905 done 2906 IFS=$as_save_IFS 2907 2908 fi 2909 fi 2910 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2911 if test -n "$ac_ct_CC"; then 2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2913 $as_echo "$ac_ct_CC" >&6; } 2914 else 2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2916 $as_echo "no" >&6; } 2917 fi 2918 2919 if test "x$ac_ct_CC" = x; then 2920 CC="" 2921 else 2922 case $cross_compiling:$ac_tool_warned in 2923 yes:) 2924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2926 ac_tool_warned=yes ;; 2927 esac 2928 CC=$ac_ct_CC 2929 fi 2930 else 2931 CC="$ac_cv_prog_CC" 2932 fi 2933 2934 if test -z "$CC"; then 2935 if test -n "$ac_tool_prefix"; then 2936 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2937 set dummy ${ac_tool_prefix}cc; ac_word=$2 2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2939 $as_echo_n "checking for $ac_word... " >&6; } 2940 if ${ac_cv_prog_CC+:} false; then : 2941 $as_echo_n "(cached) " >&6 2942 else 2943 if test -n "$CC"; then 2944 ac_cv_prog_CC="$CC" # Let the user override the test. 2945 else 2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2947 for as_dir in $PATH 2948 do 2949 IFS=$as_save_IFS 2950 test -z "$as_dir" && as_dir=. 2951 for ac_exec_ext in '' $ac_executable_extensions; do 2952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2953 ac_cv_prog_CC="${ac_tool_prefix}cc" 2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2955 break 2 2956 fi 2957 done 2958 done 2959 IFS=$as_save_IFS 2960 2961 fi 2962 fi 2963 CC=$ac_cv_prog_CC 2964 if test -n "$CC"; then 2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2966 $as_echo "$CC" >&6; } 2967 else 2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2969 $as_echo "no" >&6; } 2970 fi 2971 2972 2973 fi 2974 fi 2975 if test -z "$CC"; then 2976 # Extract the first word of "cc", so it can be a program name with args. 2977 set dummy cc; ac_word=$2 2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2979 $as_echo_n "checking for $ac_word... " >&6; } 2980 if ${ac_cv_prog_CC+:} false; then : 2981 $as_echo_n "(cached) " >&6 2982 else 2983 if test -n "$CC"; then 2984 ac_cv_prog_CC="$CC" # Let the user override the test. 2985 else 2986 ac_prog_rejected=no 2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2988 for as_dir in $PATH 2989 do 2990 IFS=$as_save_IFS 2991 test -z "$as_dir" && as_dir=. 2992 for ac_exec_ext in '' $ac_executable_extensions; do 2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2994 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2995 ac_prog_rejected=yes 2996 continue 2997 fi 2998 ac_cv_prog_CC="cc" 2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3000 break 2 3001 fi 3002 done 3003 done 3004 IFS=$as_save_IFS 3005 3006 if test $ac_prog_rejected = yes; then 3007 # We found a bogon in the path, so make sure we never use it. 3008 set dummy $ac_cv_prog_CC 3009 shift 3010 if test $# != 0; then 3011 # We chose a different compiler from the bogus one. 3012 # However, it has the same basename, so the bogon will be chosen 3013 # first if we set CC to just the basename; use the full file name. 3014 shift 3015 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3016 fi 3017 fi 3018 fi 3019 fi 3020 CC=$ac_cv_prog_CC 3021 if test -n "$CC"; then 3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3023 $as_echo "$CC" >&6; } 3024 else 3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3026 $as_echo "no" >&6; } 3027 fi 3028 3029 3030 fi 3031 if test -z "$CC"; then 3032 if test -n "$ac_tool_prefix"; then 3033 for ac_prog in cl.exe 3034 do 3035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3038 $as_echo_n "checking for $ac_word... " >&6; } 3039 if ${ac_cv_prog_CC+:} false; then : 3040 $as_echo_n "(cached) " >&6 3041 else 3042 if test -n "$CC"; then 3043 ac_cv_prog_CC="$CC" # Let the user override the test. 3044 else 3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3046 for as_dir in $PATH 3047 do 3048 IFS=$as_save_IFS 3049 test -z "$as_dir" && as_dir=. 3050 for ac_exec_ext in '' $ac_executable_extensions; do 3051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3052 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3054 break 2 3055 fi 3056 done 3057 done 3058 IFS=$as_save_IFS 3059 3060 fi 3061 fi 3062 CC=$ac_cv_prog_CC 3063 if test -n "$CC"; then 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3065 $as_echo "$CC" >&6; } 3066 else 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3068 $as_echo "no" >&6; } 3069 fi 3070 3071 3072 test -n "$CC" && break 3073 done 3074 fi 3075 if test -z "$CC"; then 3076 ac_ct_CC=$CC 3077 for ac_prog in cl.exe 3078 do 3079 # Extract the first word of "$ac_prog", so it can be a program name with args. 3080 set dummy $ac_prog; ac_word=$2 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3082 $as_echo_n "checking for $ac_word... " >&6; } 3083 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3084 $as_echo_n "(cached) " >&6 3085 else 3086 if test -n "$ac_ct_CC"; then 3087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3088 else 3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3090 for as_dir in $PATH 3091 do 3092 IFS=$as_save_IFS 3093 test -z "$as_dir" && as_dir=. 3094 for ac_exec_ext in '' $ac_executable_extensions; do 3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3096 ac_cv_prog_ac_ct_CC="$ac_prog" 3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3098 break 2 3099 fi 3100 done 3101 done 3102 IFS=$as_save_IFS 3103 3104 fi 3105 fi 3106 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3107 if test -n "$ac_ct_CC"; then 3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3109 $as_echo "$ac_ct_CC" >&6; } 3110 else 3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3112 $as_echo "no" >&6; } 3113 fi 3114 3115 3116 test -n "$ac_ct_CC" && break 3117 done 3118 3119 if test "x$ac_ct_CC" = x; then 3120 CC="" 3121 else 3122 case $cross_compiling:$ac_tool_warned in 3123 yes:) 3124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3126 ac_tool_warned=yes ;; 3127 esac 3128 CC=$ac_ct_CC 3129 fi 3130 fi 3131 3132 fi 3133 3134 3135 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3137 as_fn_error $? "no acceptable C compiler found in \$PATH 3138 See \`config.log' for more details" "$LINENO" 5; } 3139 3140 # Provide some information about the compiler. 3141 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3142 set X $ac_compile 3143 ac_compiler=$2 3144 for ac_option in --version -v -V -qversion; do 3145 { { ac_try="$ac_compiler $ac_option >&5" 3146 case "(($ac_try" in 3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3148 *) ac_try_echo=$ac_try;; 3149 esac 3150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3151 $as_echo "$ac_try_echo"; } >&5 3152 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3153 ac_status=$? 3154 if test -s conftest.err; then 3155 sed '10a\ 3156 ... rest of stderr output deleted ... 3157 10q' conftest.err >conftest.er1 3158 cat conftest.er1 >&5 3159 fi 3160 rm -f conftest.er1 conftest.err 3161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3162 test $ac_status = 0; } 3163 done 3164 3165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3166 /* end confdefs.h. */ 3167 3168 int 3169 main () 3170 { 3171 3172 ; 3173 return 0; 3174 } 3175 _ACEOF 3176 ac_clean_files_save=$ac_clean_files 3177 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3178 # Try to create an executable without -o first, disregard a.out. 3179 # It will help us diagnose broken compilers, and finding out an intuition 3180 # of exeext. 3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3182 $as_echo_n "checking whether the C compiler works... " >&6; } 3183 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3184 3185 # The possible output files: 3186 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3187 3188 ac_rmfiles= 3189 for ac_file in $ac_files 3190 do 3191 case $ac_file in 3192 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3193 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3194 esac 3195 done 3196 rm -f $ac_rmfiles 3197 3198 if { { ac_try="$ac_link_default" 3199 case "(($ac_try" in 3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3201 *) ac_try_echo=$ac_try;; 3202 esac 3203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3204 $as_echo "$ac_try_echo"; } >&5 3205 (eval "$ac_link_default") 2>&5 3206 ac_status=$? 3207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3208 test $ac_status = 0; }; then : 3209 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3210 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3211 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3212 # so that the user can short-circuit this test for compilers unknown to 3213 # Autoconf. 3214 for ac_file in $ac_files '' 3215 do 3216 test -f "$ac_file" || continue 3217 case $ac_file in 3218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3219 ;; 3220 [ab].out ) 3221 # We found the default executable, but exeext='' is most 3222 # certainly right. 3223 break;; 3224 *.* ) 3225 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3226 then :; else 3227 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3228 fi 3229 # We set ac_cv_exeext here because the later test for it is not 3230 # safe: cross compilers may not add the suffix if given an `-o' 3231 # argument, so we may need to know it at that point already. 3232 # Even if this section looks crufty: it has the advantage of 3233 # actually working. 3234 break;; 3235 * ) 3236 break;; 3237 esac 3238 done 3239 test "$ac_cv_exeext" = no && ac_cv_exeext= 3240 3241 else 3242 ac_file='' 3243 fi 3244 if test -z "$ac_file"; then : 3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3246 $as_echo "no" >&6; } 3247 $as_echo "$as_me: failed program was:" >&5 3248 sed 's/^/| /' conftest.$ac_ext >&5 3249 3250 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3252 as_fn_error 77 "C compiler cannot create executables 3253 See \`config.log' for more details" "$LINENO" 5; } 3254 else 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3256 $as_echo "yes" >&6; } 3257 fi 3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3259 $as_echo_n "checking for C compiler default output file name... " >&6; } 3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3261 $as_echo "$ac_file" >&6; } 3262 ac_exeext=$ac_cv_exeext 3263 3264 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3265 ac_clean_files=$ac_clean_files_save 3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3267 $as_echo_n "checking for suffix of executables... " >&6; } 3268 if { { ac_try="$ac_link" 3269 case "(($ac_try" in 3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3271 *) ac_try_echo=$ac_try;; 3272 esac 3273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3274 $as_echo "$ac_try_echo"; } >&5 3275 (eval "$ac_link") 2>&5 3276 ac_status=$? 3277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3278 test $ac_status = 0; }; then : 3279 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3280 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3281 # work properly (i.e., refer to `conftest.exe'), while it won't with 3282 # `rm'. 3283 for ac_file in conftest.exe conftest conftest.*; do 3284 test -f "$ac_file" || continue 3285 case $ac_file in 3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3287 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3288 break;; 3289 * ) break;; 3290 esac 3291 done 3292 else 3293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3295 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3296 See \`config.log' for more details" "$LINENO" 5; } 3297 fi 3298 rm -f conftest conftest$ac_cv_exeext 3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3300 $as_echo "$ac_cv_exeext" >&6; } 3301 3302 rm -f conftest.$ac_ext 3303 EXEEXT=$ac_cv_exeext 3304 ac_exeext=$EXEEXT 3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3306 /* end confdefs.h. */ 3307 #include <stdio.h> 3308 int 3309 main () 3310 { 3311 FILE *f = fopen ("conftest.out", "w"); 3312 return ferror (f) || fclose (f) != 0; 3313 3314 ; 3315 return 0; 3316 } 3317 _ACEOF 3318 ac_clean_files="$ac_clean_files conftest.out" 3319 # Check that the compiler produces executables we can run. If not, either 3320 # the compiler is broken, or we cross compile. 3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3322 $as_echo_n "checking whether we are cross compiling... " >&6; } 3323 if test "$cross_compiling" != yes; then 3324 { { ac_try="$ac_link" 3325 case "(($ac_try" in 3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3327 *) ac_try_echo=$ac_try;; 3328 esac 3329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3330 $as_echo "$ac_try_echo"; } >&5 3331 (eval "$ac_link") 2>&5 3332 ac_status=$? 3333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3334 test $ac_status = 0; } 3335 if { ac_try='./conftest$ac_cv_exeext' 3336 { { case "(($ac_try" in 3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3338 *) ac_try_echo=$ac_try;; 3339 esac 3340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3341 $as_echo "$ac_try_echo"; } >&5 3342 (eval "$ac_try") 2>&5 3343 ac_status=$? 3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3345 test $ac_status = 0; }; }; then 3346 cross_compiling=no 3347 else 3348 if test "$cross_compiling" = maybe; then 3349 cross_compiling=yes 3350 else 3351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3353 as_fn_error $? "cannot run C compiled programs. 3354 If you meant to cross compile, use \`--host'. 3355 See \`config.log' for more details" "$LINENO" 5; } 3356 fi 3357 fi 3358 fi 3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3360 $as_echo "$cross_compiling" >&6; } 3361 3362 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3363 ac_clean_files=$ac_clean_files_save 3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3365 $as_echo_n "checking for suffix of object files... " >&6; } 3366 if ${ac_cv_objext+:} false; then : 3367 $as_echo_n "(cached) " >&6 3368 else 3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3370 /* end confdefs.h. */ 3371 3372 int 3373 main () 3374 { 3375 3376 ; 3377 return 0; 3378 } 3379 _ACEOF 3380 rm -f conftest.o conftest.obj 3381 if { { ac_try="$ac_compile" 3382 case "(($ac_try" in 3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3384 *) ac_try_echo=$ac_try;; 3385 esac 3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3387 $as_echo "$ac_try_echo"; } >&5 3388 (eval "$ac_compile") 2>&5 3389 ac_status=$? 3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3391 test $ac_status = 0; }; then : 3392 for ac_file in conftest.o conftest.obj conftest.*; do 3393 test -f "$ac_file" || continue; 3394 case $ac_file in 3395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3396 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3397 break;; 3398 esac 3399 done 3400 else 3401 $as_echo "$as_me: failed program was:" >&5 3402 sed 's/^/| /' conftest.$ac_ext >&5 3403 3404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3406 as_fn_error $? "cannot compute suffix of object files: cannot compile 3407 See \`config.log' for more details" "$LINENO" 5; } 3408 fi 3409 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3410 fi 3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3412 $as_echo "$ac_cv_objext" >&6; } 3413 OBJEXT=$ac_cv_objext 3414 ac_objext=$OBJEXT 3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3416 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3417 if ${ac_cv_c_compiler_gnu+:} false; then : 3418 $as_echo_n "(cached) " >&6 3419 else 3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3421 /* end confdefs.h. */ 3422 3423 int 3424 main () 3425 { 3426 #ifndef __GNUC__ 3427 choke me 3428 #endif 3429 3430 ; 3431 return 0; 3432 } 3433 _ACEOF 3434 if ac_fn_c_try_compile "$LINENO"; then : 3435 ac_compiler_gnu=yes 3436 else 3437 ac_compiler_gnu=no 3438 fi 3439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3440 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3441 3442 fi 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3444 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3445 if test $ac_compiler_gnu = yes; then 3446 GCC=yes 3447 else 3448 GCC= 3449 fi 3450 ac_test_CFLAGS=${CFLAGS+set} 3451 ac_save_CFLAGS=$CFLAGS 3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3453 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3454 if ${ac_cv_prog_cc_g+:} false; then : 3455 $as_echo_n "(cached) " >&6 3456 else 3457 ac_save_c_werror_flag=$ac_c_werror_flag 3458 ac_c_werror_flag=yes 3459 ac_cv_prog_cc_g=no 3460 CFLAGS="-g" 3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3462 /* end confdefs.h. */ 3463 3464 int 3465 main () 3466 { 3467 3468 ; 3469 return 0; 3470 } 3471 _ACEOF 3472 if ac_fn_c_try_compile "$LINENO"; then : 3473 ac_cv_prog_cc_g=yes 3474 else 3475 CFLAGS="" 3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3477 /* end confdefs.h. */ 3478 3479 int 3480 main () 3481 { 3482 3483 ; 3484 return 0; 3485 } 3486 _ACEOF 3487 if ac_fn_c_try_compile "$LINENO"; then : 3488 3489 else 3490 ac_c_werror_flag=$ac_save_c_werror_flag 3491 CFLAGS="-g" 3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3493 /* end confdefs.h. */ 3494 3495 int 3496 main () 3497 { 3498 3499 ; 3500 return 0; 3501 } 3502 _ACEOF 3503 if ac_fn_c_try_compile "$LINENO"; then : 3504 ac_cv_prog_cc_g=yes 3505 fi 3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3507 fi 3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3509 fi 3510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3511 ac_c_werror_flag=$ac_save_c_werror_flag 3512 fi 3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3514 $as_echo "$ac_cv_prog_cc_g" >&6; } 3515 if test "$ac_test_CFLAGS" = set; then 3516 CFLAGS=$ac_save_CFLAGS 3517 elif test $ac_cv_prog_cc_g = yes; then 3518 if test "$GCC" = yes; then 3519 CFLAGS="-g -O2" 3520 else 3521 CFLAGS="-g" 3522 fi 3523 else 3524 if test "$GCC" = yes; then 3525 CFLAGS="-O2" 3526 else 3527 CFLAGS= 3528 fi 3529 fi 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3531 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3532 if ${ac_cv_prog_cc_c89+:} false; then : 3533 $as_echo_n "(cached) " >&6 3534 else 3535 ac_cv_prog_cc_c89=no 3536 ac_save_CC=$CC 3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3538 /* end confdefs.h. */ 3539 #include <stdarg.h> 3540 #include <stdio.h> 3541 struct stat; 3542 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3543 struct buf { int x; }; 3544 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3545 static char *e (p, i) 3546 char **p; 3547 int i; 3548 { 3549 return p[i]; 3550 } 3551 static char *f (char * (*g) (char **, int), char **p, ...) 3552 { 3553 char *s; 3554 va_list v; 3555 va_start (v,p); 3556 s = g (p, va_arg (v,int)); 3557 va_end (v); 3558 return s; 3559 } 3560 3561 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3562 function prototypes and stuff, but not '\xHH' hex character constants. 3563 These don't provoke an error unfortunately, instead are silently treated 3564 as 'x'. The following induces an error, until -std is added to get 3565 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3566 array size at least. It's necessary to write '\x00'==0 to get something 3567 that's true only with -std. */ 3568 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3569 3570 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3571 inside strings and character constants. */ 3572 #define FOO(x) 'x' 3573 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3574 3575 int test (int i, double x); 3576 struct s1 {int (*f) (int a);}; 3577 struct s2 {int (*f) (double a);}; 3578 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3579 int argc; 3580 char **argv; 3581 int 3582 main () 3583 { 3584 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3585 ; 3586 return 0; 3587 } 3588 _ACEOF 3589 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3590 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3591 do 3592 CC="$ac_save_CC $ac_arg" 3593 if ac_fn_c_try_compile "$LINENO"; then : 3594 ac_cv_prog_cc_c89=$ac_arg 3595 fi 3596 rm -f core conftest.err conftest.$ac_objext 3597 test "x$ac_cv_prog_cc_c89" != "xno" && break 3598 done 3599 rm -f conftest.$ac_ext 3600 CC=$ac_save_CC 3601 3602 fi 3603 # AC_CACHE_VAL 3604 case "x$ac_cv_prog_cc_c89" in 3605 x) 3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3607 $as_echo "none needed" >&6; } ;; 3608 xno) 3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3610 $as_echo "unsupported" >&6; } ;; 3611 *) 3612 CC="$CC $ac_cv_prog_cc_c89" 3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3614 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3615 esac 3616 if test "x$ac_cv_prog_cc_c89" != xno; then : 3617 3618 fi 3619 3620 ac_ext=c 3621 ac_cpp='$CPP $CPPFLAGS' 3622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3624 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3625 3626 3627 if test "x$GCC" != "xyes" ; then 3628 3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5 3630 $as_echo_n "checking whether compiler is MSVC... " >&6; } 3631 if ${je_cv_msvc+:} false; then : 3632 $as_echo_n "(cached) " >&6 3633 else 3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3635 /* end confdefs.h. */ 3636 3637 int 3638 main () 3639 { 3640 3641 #ifndef _MSC_VER 3642 int fail-1; 3643 #endif 3644 3645 ; 3646 return 0; 3647 } 3648 _ACEOF 3649 if ac_fn_c_try_compile "$LINENO"; then : 3650 je_cv_msvc=yes 3651 else 3652 je_cv_msvc=no 3653 fi 3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3655 fi 3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5 3657 $as_echo "$je_cv_msvc" >&6; } 3658 fi 3659 3660 je_cv_cray_prgenv_wrapper="" 3661 if test "x${PE_ENV}" != "x" ; then 3662 case "${CC}" in 3663 CC|cc) 3664 je_cv_cray_prgenv_wrapper="yes" 3665 ;; 3666 *) 3667 ;; 3668 esac 3669 fi 3670 3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is cray" >&5 3672 $as_echo_n "checking whether compiler is cray... " >&6; } 3673 if ${je_cv_cray+:} false; then : 3674 $as_echo_n "(cached) " >&6 3675 else 3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3677 /* end confdefs.h. */ 3678 3679 int 3680 main () 3681 { 3682 3683 #ifndef _CRAYC 3684 int fail-1; 3685 #endif 3686 3687 ; 3688 return 0; 3689 } 3690 _ACEOF 3691 if ac_fn_c_try_compile "$LINENO"; then : 3692 je_cv_cray=yes 3693 else 3694 je_cv_cray=no 3695 fi 3696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3697 fi 3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray" >&5 3699 $as_echo "$je_cv_cray" >&6; } 3700 3701 if test "x${je_cv_cray}" = "xyes" ; then 3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cray compiler version is 8.4" >&5 3703 $as_echo_n "checking whether cray compiler version is 8.4... " >&6; } 3704 if ${je_cv_cray_84+:} false; then : 3705 $as_echo_n "(cached) " >&6 3706 else 3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3708 /* end confdefs.h. */ 3709 3710 int 3711 main () 3712 { 3713 3714 #if !(_RELEASE_MAJOR == 8 && _RELEASE_MINOR == 4) 3715 int fail-1; 3716 #endif 3717 3718 ; 3719 return 0; 3720 } 3721 _ACEOF 3722 if ac_fn_c_try_compile "$LINENO"; then : 3723 je_cv_cray_84=yes 3724 else 3725 je_cv_cray_84=no 3726 fi 3727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3728 fi 3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray_84" >&5 3730 $as_echo "$je_cv_cray_84" >&6; } 3731 fi 3732 3733 if test "x$GCC" = "xyes" ; then 3734 3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu11" >&5 3736 $as_echo_n "checking whether compiler supports -std=gnu11... " >&6; } 3737 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 3738 T_APPEND_V=-std=gnu11 3739 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 3740 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 3741 else 3742 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 3743 fi 3744 3745 3746 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3747 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3748 else 3749 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3750 fi 3751 3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3753 /* end confdefs.h. */ 3754 3755 3756 int 3757 main () 3758 { 3759 3760 return 0; 3761 3762 ; 3763 return 0; 3764 } 3765 _ACEOF 3766 if ac_fn_c_try_compile "$LINENO"; then : 3767 je_cv_cflags_added=-std=gnu11 3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3769 $as_echo "yes" >&6; } 3770 else 3771 je_cv_cflags_added= 3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3773 $as_echo "no" >&6; } 3774 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 3775 3776 fi 3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3778 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3779 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3780 else 3781 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3782 fi 3783 3784 3785 if test "x$je_cv_cflags_added" = "x-std=gnu11" ; then 3786 3787 cat >>confdefs.h <<_ACEOF 3788 #define JEMALLOC_HAS_RESTRICT 3789 _ACEOF 3790 3791 else 3792 3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5 3794 $as_echo_n "checking whether compiler supports -std=gnu99... " >&6; } 3795 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 3796 T_APPEND_V=-std=gnu99 3797 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 3798 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 3799 else 3800 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 3801 fi 3802 3803 3804 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3805 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3806 else 3807 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3808 fi 3809 3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3811 /* end confdefs.h. */ 3812 3813 3814 int 3815 main () 3816 { 3817 3818 return 0; 3819 3820 ; 3821 return 0; 3822 } 3823 _ACEOF 3824 if ac_fn_c_try_compile "$LINENO"; then : 3825 je_cv_cflags_added=-std=gnu99 3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3827 $as_echo "yes" >&6; } 3828 else 3829 je_cv_cflags_added= 3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3831 $as_echo "no" >&6; } 3832 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 3833 3834 fi 3835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3836 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3837 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3838 else 3839 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3840 fi 3841 3842 3843 if test "x$je_cv_cflags_added" = "x-std=gnu99" ; then 3844 3845 cat >>confdefs.h <<_ACEOF 3846 #define JEMALLOC_HAS_RESTRICT 3847 _ACEOF 3848 3849 fi 3850 fi 3851 3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror=unknown-warning-option" >&5 3853 $as_echo_n "checking whether compiler supports -Werror=unknown-warning-option... " >&6; } 3854 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 3855 T_APPEND_V=-Werror=unknown-warning-option 3856 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 3857 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 3858 else 3859 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 3860 fi 3861 3862 3863 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3864 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3865 else 3866 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3867 fi 3868 3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3870 /* end confdefs.h. */ 3871 3872 3873 int 3874 main () 3875 { 3876 3877 return 0; 3878 3879 ; 3880 return 0; 3881 } 3882 _ACEOF 3883 if ac_fn_c_try_compile "$LINENO"; then : 3884 je_cv_cflags_added=-Werror=unknown-warning-option 3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3886 $as_echo "yes" >&6; } 3887 else 3888 je_cv_cflags_added= 3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3890 $as_echo "no" >&6; } 3891 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 3892 3893 fi 3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3895 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3896 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3897 else 3898 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3899 fi 3900 3901 3902 3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5 3904 $as_echo_n "checking whether compiler supports -Wall... " >&6; } 3905 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 3906 T_APPEND_V=-Wall 3907 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 3908 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 3909 else 3910 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 3911 fi 3912 3913 3914 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3915 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3916 else 3917 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3918 fi 3919 3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3921 /* end confdefs.h. */ 3922 3923 3924 int 3925 main () 3926 { 3927 3928 return 0; 3929 3930 ; 3931 return 0; 3932 } 3933 _ACEOF 3934 if ac_fn_c_try_compile "$LINENO"; then : 3935 je_cv_cflags_added=-Wall 3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3937 $as_echo "yes" >&6; } 3938 else 3939 je_cv_cflags_added= 3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3941 $as_echo "no" >&6; } 3942 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 3943 3944 fi 3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3946 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3947 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3948 else 3949 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3950 fi 3951 3952 3953 3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wextra" >&5 3955 $as_echo_n "checking whether compiler supports -Wextra... " >&6; } 3956 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 3957 T_APPEND_V=-Wextra 3958 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 3959 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 3960 else 3961 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 3962 fi 3963 3964 3965 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3966 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3967 else 3968 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3969 fi 3970 3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3972 /* end confdefs.h. */ 3973 3974 3975 int 3976 main () 3977 { 3978 3979 return 0; 3980 3981 ; 3982 return 0; 3983 } 3984 _ACEOF 3985 if ac_fn_c_try_compile "$LINENO"; then : 3986 je_cv_cflags_added=-Wextra 3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3988 $as_echo "yes" >&6; } 3989 else 3990 je_cv_cflags_added= 3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3992 $as_echo "no" >&6; } 3993 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 3994 3995 fi 3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3997 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3998 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3999 else 4000 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4001 fi 4002 4003 4004 4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wshorten-64-to-32" >&5 4006 $as_echo_n "checking whether compiler supports -Wshorten-64-to-32... " >&6; } 4007 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4008 T_APPEND_V=-Wshorten-64-to-32 4009 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4010 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4011 else 4012 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4013 fi 4014 4015 4016 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4017 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4018 else 4019 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4020 fi 4021 4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4023 /* end confdefs.h. */ 4024 4025 4026 int 4027 main () 4028 { 4029 4030 return 0; 4031 4032 ; 4033 return 0; 4034 } 4035 _ACEOF 4036 if ac_fn_c_try_compile "$LINENO"; then : 4037 je_cv_cflags_added=-Wshorten-64-to-32 4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4039 $as_echo "yes" >&6; } 4040 else 4041 je_cv_cflags_added= 4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4043 $as_echo "no" >&6; } 4044 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4045 4046 fi 4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4048 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4049 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4050 else 4051 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4052 fi 4053 4054 4055 4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-compare" >&5 4057 $as_echo_n "checking whether compiler supports -Wsign-compare... " >&6; } 4058 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4059 T_APPEND_V=-Wsign-compare 4060 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4061 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4062 else 4063 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4064 fi 4065 4066 4067 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4068 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4069 else 4070 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4071 fi 4072 4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4074 /* end confdefs.h. */ 4075 4076 4077 int 4078 main () 4079 { 4080 4081 return 0; 4082 4083 ; 4084 return 0; 4085 } 4086 _ACEOF 4087 if ac_fn_c_try_compile "$LINENO"; then : 4088 je_cv_cflags_added=-Wsign-compare 4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4090 $as_echo "yes" >&6; } 4091 else 4092 je_cv_cflags_added= 4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4094 $as_echo "no" >&6; } 4095 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4096 4097 fi 4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4099 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4100 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4101 else 4102 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4103 fi 4104 4105 4106 4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wundef" >&5 4108 $as_echo_n "checking whether compiler supports -Wundef... " >&6; } 4109 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4110 T_APPEND_V=-Wundef 4111 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4112 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4113 else 4114 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4115 fi 4116 4117 4118 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4119 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4120 else 4121 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4122 fi 4123 4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4125 /* end confdefs.h. */ 4126 4127 4128 int 4129 main () 4130 { 4131 4132 return 0; 4133 4134 ; 4135 return 0; 4136 } 4137 _ACEOF 4138 if ac_fn_c_try_compile "$LINENO"; then : 4139 je_cv_cflags_added=-Wundef 4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4141 $as_echo "yes" >&6; } 4142 else 4143 je_cv_cflags_added= 4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4145 $as_echo "no" >&6; } 4146 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4147 4148 fi 4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4150 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4151 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4152 else 4153 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4154 fi 4155 4156 4157 4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-format-zero-length" >&5 4159 $as_echo_n "checking whether compiler supports -Wno-format-zero-length... " >&6; } 4160 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4161 T_APPEND_V=-Wno-format-zero-length 4162 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4163 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4164 else 4165 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4166 fi 4167 4168 4169 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4170 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4171 else 4172 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4173 fi 4174 4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4176 /* end confdefs.h. */ 4177 4178 4179 int 4180 main () 4181 { 4182 4183 return 0; 4184 4185 ; 4186 return 0; 4187 } 4188 _ACEOF 4189 if ac_fn_c_try_compile "$LINENO"; then : 4190 je_cv_cflags_added=-Wno-format-zero-length 4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4192 $as_echo "yes" >&6; } 4193 else 4194 je_cv_cflags_added= 4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4196 $as_echo "no" >&6; } 4197 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4198 4199 fi 4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4201 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4202 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4203 else 4204 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4205 fi 4206 4207 4208 4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wpointer-arith" >&5 4210 $as_echo_n "checking whether compiler supports -Wpointer-arith... " >&6; } 4211 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4212 T_APPEND_V=-Wpointer-arith 4213 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4214 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4215 else 4216 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4217 fi 4218 4219 4220 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4221 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4222 else 4223 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4224 fi 4225 4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4227 /* end confdefs.h. */ 4228 4229 4230 int 4231 main () 4232 { 4233 4234 return 0; 4235 4236 ; 4237 return 0; 4238 } 4239 _ACEOF 4240 if ac_fn_c_try_compile "$LINENO"; then : 4241 je_cv_cflags_added=-Wpointer-arith 4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4243 $as_echo "yes" >&6; } 4244 else 4245 je_cv_cflags_added= 4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4247 $as_echo "no" >&6; } 4248 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4249 4250 fi 4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4252 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4253 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4254 else 4255 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4256 fi 4257 4258 4259 4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-missing-braces" >&5 4261 $as_echo_n "checking whether compiler supports -Wno-missing-braces... " >&6; } 4262 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4263 T_APPEND_V=-Wno-missing-braces 4264 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4265 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4266 else 4267 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4268 fi 4269 4270 4271 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4272 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4273 else 4274 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4275 fi 4276 4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4278 /* end confdefs.h. */ 4279 4280 4281 int 4282 main () 4283 { 4284 4285 return 0; 4286 4287 ; 4288 return 0; 4289 } 4290 _ACEOF 4291 if ac_fn_c_try_compile "$LINENO"; then : 4292 je_cv_cflags_added=-Wno-missing-braces 4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4294 $as_echo "yes" >&6; } 4295 else 4296 je_cv_cflags_added= 4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4298 $as_echo "no" >&6; } 4299 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4300 4301 fi 4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4303 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4304 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4305 else 4306 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4307 fi 4308 4309 4310 4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-missing-field-initializers" >&5 4312 $as_echo_n "checking whether compiler supports -Wno-missing-field-initializers... " >&6; } 4313 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4314 T_APPEND_V=-Wno-missing-field-initializers 4315 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4316 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4317 else 4318 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4319 fi 4320 4321 4322 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4323 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4324 else 4325 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4326 fi 4327 4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4329 /* end confdefs.h. */ 4330 4331 4332 int 4333 main () 4334 { 4335 4336 return 0; 4337 4338 ; 4339 return 0; 4340 } 4341 _ACEOF 4342 if ac_fn_c_try_compile "$LINENO"; then : 4343 je_cv_cflags_added=-Wno-missing-field-initializers 4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4345 $as_echo "yes" >&6; } 4346 else 4347 je_cv_cflags_added= 4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4349 $as_echo "no" >&6; } 4350 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4351 4352 fi 4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4354 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4355 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4356 else 4357 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4358 fi 4359 4360 4361 4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-missing-attributes" >&5 4363 $as_echo_n "checking whether compiler supports -Wno-missing-attributes... " >&6; } 4364 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4365 T_APPEND_V=-Wno-missing-attributes 4366 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4367 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4368 else 4369 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4370 fi 4371 4372 4373 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4374 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4375 else 4376 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4377 fi 4378 4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4380 /* end confdefs.h. */ 4381 4382 4383 int 4384 main () 4385 { 4386 4387 return 0; 4388 4389 ; 4390 return 0; 4391 } 4392 _ACEOF 4393 if ac_fn_c_try_compile "$LINENO"; then : 4394 je_cv_cflags_added=-Wno-missing-attributes 4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4396 $as_echo "yes" >&6; } 4397 else 4398 je_cv_cflags_added= 4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4400 $as_echo "no" >&6; } 4401 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4402 4403 fi 4404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4405 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4406 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4407 else 4408 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4409 fi 4410 4411 4412 4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5 4414 $as_echo_n "checking whether compiler supports -pipe... " >&6; } 4415 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4416 T_APPEND_V=-pipe 4417 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4418 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4419 else 4420 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4421 fi 4422 4423 4424 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4425 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4426 else 4427 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4428 fi 4429 4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4431 /* end confdefs.h. */ 4432 4433 4434 int 4435 main () 4436 { 4437 4438 return 0; 4439 4440 ; 4441 return 0; 4442 } 4443 _ACEOF 4444 if ac_fn_c_try_compile "$LINENO"; then : 4445 je_cv_cflags_added=-pipe 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4447 $as_echo "yes" >&6; } 4448 else 4449 je_cv_cflags_added= 4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4451 $as_echo "no" >&6; } 4452 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4453 4454 fi 4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4456 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4457 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4458 else 4459 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4460 fi 4461 4462 4463 4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5 4465 $as_echo_n "checking whether compiler supports -g3... " >&6; } 4466 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4467 T_APPEND_V=-g3 4468 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4469 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4470 else 4471 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4472 fi 4473 4474 4475 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4476 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4477 else 4478 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4479 fi 4480 4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4482 /* end confdefs.h. */ 4483 4484 4485 int 4486 main () 4487 { 4488 4489 return 0; 4490 4491 ; 4492 return 0; 4493 } 4494 _ACEOF 4495 if ac_fn_c_try_compile "$LINENO"; then : 4496 je_cv_cflags_added=-g3 4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4498 $as_echo "yes" >&6; } 4499 else 4500 je_cv_cflags_added= 4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4502 $as_echo "no" >&6; } 4503 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4504 4505 fi 4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4507 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4508 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4509 else 4510 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4511 fi 4512 4513 4514 elif test "x$je_cv_msvc" = "xyes" ; then 4515 CC="$CC -nologo" 4516 4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5 4518 $as_echo_n "checking whether compiler supports -Zi... " >&6; } 4519 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4520 T_APPEND_V=-Zi 4521 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4522 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4523 else 4524 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4525 fi 4526 4527 4528 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4529 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4530 else 4531 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4532 fi 4533 4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4535 /* end confdefs.h. */ 4536 4537 4538 int 4539 main () 4540 { 4541 4542 return 0; 4543 4544 ; 4545 return 0; 4546 } 4547 _ACEOF 4548 if ac_fn_c_try_compile "$LINENO"; then : 4549 je_cv_cflags_added=-Zi 4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4551 $as_echo "yes" >&6; } 4552 else 4553 je_cv_cflags_added= 4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4555 $as_echo "no" >&6; } 4556 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4557 4558 fi 4559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4560 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4561 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4562 else 4563 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4564 fi 4565 4566 4567 4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5 4569 $as_echo_n "checking whether compiler supports -MT... " >&6; } 4570 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4571 T_APPEND_V=-MT 4572 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4573 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4574 else 4575 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4576 fi 4577 4578 4579 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4580 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4581 else 4582 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4583 fi 4584 4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4586 /* end confdefs.h. */ 4587 4588 4589 int 4590 main () 4591 { 4592 4593 return 0; 4594 4595 ; 4596 return 0; 4597 } 4598 _ACEOF 4599 if ac_fn_c_try_compile "$LINENO"; then : 4600 je_cv_cflags_added=-MT 4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4602 $as_echo "yes" >&6; } 4603 else 4604 je_cv_cflags_added= 4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4606 $as_echo "no" >&6; } 4607 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4608 4609 fi 4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4611 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4612 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4613 else 4614 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4615 fi 4616 4617 4618 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5 4620 $as_echo_n "checking whether compiler supports -W3... " >&6; } 4621 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4622 T_APPEND_V=-W3 4623 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4624 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4625 else 4626 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4627 fi 4628 4629 4630 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4631 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4632 else 4633 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4634 fi 4635 4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4637 /* end confdefs.h. */ 4638 4639 4640 int 4641 main () 4642 { 4643 4644 return 0; 4645 4646 ; 4647 return 0; 4648 } 4649 _ACEOF 4650 if ac_fn_c_try_compile "$LINENO"; then : 4651 je_cv_cflags_added=-W3 4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4653 $as_echo "yes" >&6; } 4654 else 4655 je_cv_cflags_added= 4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4657 $as_echo "no" >&6; } 4658 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4659 4660 fi 4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4662 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4663 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4664 else 4665 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4666 fi 4667 4668 4669 4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -FS" >&5 4671 $as_echo_n "checking whether compiler supports -FS... " >&6; } 4672 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4673 T_APPEND_V=-FS 4674 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4675 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4676 else 4677 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4678 fi 4679 4680 4681 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4682 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4683 else 4684 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4685 fi 4686 4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4688 /* end confdefs.h. */ 4689 4690 4691 int 4692 main () 4693 { 4694 4695 return 0; 4696 4697 ; 4698 return 0; 4699 } 4700 _ACEOF 4701 if ac_fn_c_try_compile "$LINENO"; then : 4702 je_cv_cflags_added=-FS 4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4704 $as_echo "yes" >&6; } 4705 else 4706 je_cv_cflags_added= 4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4708 $as_echo "no" >&6; } 4709 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4710 4711 fi 4712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4713 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4714 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4715 else 4716 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4717 fi 4718 4719 4720 T_APPEND_V=-I${srcdir}/include/msvc_compat 4721 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4722 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}" 4723 else 4724 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}" 4725 fi 4726 4727 4728 fi 4729 if test "x$je_cv_cray" = "xyes" ; then 4730 if test "x$je_cv_cray_84" = "xyes" ; then 4731 4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hipa2" >&5 4733 $as_echo_n "checking whether compiler supports -hipa2... " >&6; } 4734 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4735 T_APPEND_V=-hipa2 4736 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4737 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4738 else 4739 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4740 fi 4741 4742 4743 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4744 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4745 else 4746 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4747 fi 4748 4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4750 /* end confdefs.h. */ 4751 4752 4753 int 4754 main () 4755 { 4756 4757 return 0; 4758 4759 ; 4760 return 0; 4761 } 4762 _ACEOF 4763 if ac_fn_c_try_compile "$LINENO"; then : 4764 je_cv_cflags_added=-hipa2 4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4766 $as_echo "yes" >&6; } 4767 else 4768 je_cv_cflags_added= 4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4770 $as_echo "no" >&6; } 4771 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4772 4773 fi 4774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4775 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4776 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4777 else 4778 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4779 fi 4780 4781 4782 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnognu" >&5 4784 $as_echo_n "checking whether compiler supports -hnognu... " >&6; } 4785 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4786 T_APPEND_V=-hnognu 4787 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4788 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4789 else 4790 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4791 fi 4792 4793 4794 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4795 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4796 else 4797 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4798 fi 4799 4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4801 /* end confdefs.h. */ 4802 4803 4804 int 4805 main () 4806 { 4807 4808 return 0; 4809 4810 ; 4811 return 0; 4812 } 4813 _ACEOF 4814 if ac_fn_c_try_compile "$LINENO"; then : 4815 je_cv_cflags_added=-hnognu 4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4817 $as_echo "yes" >&6; } 4818 else 4819 je_cv_cflags_added= 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4821 $as_echo "no" >&6; } 4822 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4823 4824 fi 4825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4826 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4827 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4828 else 4829 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4830 fi 4831 4832 4833 fi 4834 4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=128" >&5 4836 $as_echo_n "checking whether compiler supports -hnomessage=128... " >&6; } 4837 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4838 T_APPEND_V=-hnomessage=128 4839 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4840 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4841 else 4842 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4843 fi 4844 4845 4846 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4847 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4848 else 4849 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4850 fi 4851 4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4853 /* end confdefs.h. */ 4854 4855 4856 int 4857 main () 4858 { 4859 4860 return 0; 4861 4862 ; 4863 return 0; 4864 } 4865 _ACEOF 4866 if ac_fn_c_try_compile "$LINENO"; then : 4867 je_cv_cflags_added=-hnomessage=128 4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4869 $as_echo "yes" >&6; } 4870 else 4871 je_cv_cflags_added= 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4873 $as_echo "no" >&6; } 4874 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4875 4876 fi 4877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4878 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4879 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4880 else 4881 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4882 fi 4883 4884 4885 4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=1357" >&5 4887 $as_echo_n "checking whether compiler supports -hnomessage=1357... " >&6; } 4888 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4889 T_APPEND_V=-hnomessage=1357 4890 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4891 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4892 else 4893 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4894 fi 4895 4896 4897 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4898 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4899 else 4900 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4901 fi 4902 4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4904 /* end confdefs.h. */ 4905 4906 4907 int 4908 main () 4909 { 4910 4911 return 0; 4912 4913 ; 4914 return 0; 4915 } 4916 _ACEOF 4917 if ac_fn_c_try_compile "$LINENO"; then : 4918 je_cv_cflags_added=-hnomessage=1357 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4920 $as_echo "yes" >&6; } 4921 else 4922 je_cv_cflags_added= 4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4924 $as_echo "no" >&6; } 4925 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4926 4927 fi 4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4929 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4930 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4931 else 4932 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4933 fi 4934 4935 4936 fi 4937 4938 4939 4940 ac_ext=c 4941 ac_cpp='$CPP $CPPFLAGS' 4942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4944 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4946 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4947 # On Suns, sometimes $CPP names a directory. 4948 if test -n "$CPP" && test -d "$CPP"; then 4949 CPP= 4950 fi 4951 if test -z "$CPP"; then 4952 if ${ac_cv_prog_CPP+:} false; then : 4953 $as_echo_n "(cached) " >&6 4954 else 4955 # Double quotes because CPP needs to be expanded 4956 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4957 do 4958 ac_preproc_ok=false 4959 for ac_c_preproc_warn_flag in '' yes 4960 do 4961 # Use a header file that comes with gcc, so configuring glibc 4962 # with a fresh cross-compiler works. 4963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4964 # <limits.h> exists even on freestanding compilers. 4965 # On the NeXT, cc -E runs the code through the compiler's parser, 4966 # not just through cpp. "Syntax error" is here to catch this case. 4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4968 /* end confdefs.h. */ 4969 #ifdef __STDC__ 4970 # include <limits.h> 4971 #else 4972 # include <assert.h> 4973 #endif 4974 Syntax error 4975 _ACEOF 4976 if ac_fn_c_try_cpp "$LINENO"; then : 4977 4978 else 4979 # Broken: fails on valid input. 4980 continue 4981 fi 4982 rm -f conftest.err conftest.i conftest.$ac_ext 4983 4984 # OK, works on sane cases. Now check whether nonexistent headers 4985 # can be detected and how. 4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4987 /* end confdefs.h. */ 4988 #include <ac_nonexistent.h> 4989 _ACEOF 4990 if ac_fn_c_try_cpp "$LINENO"; then : 4991 # Broken: success on invalid input. 4992 continue 4993 else 4994 # Passes both tests. 4995 ac_preproc_ok=: 4996 break 4997 fi 4998 rm -f conftest.err conftest.i conftest.$ac_ext 4999 5000 done 5001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5002 rm -f conftest.i conftest.err conftest.$ac_ext 5003 if $ac_preproc_ok; then : 5004 break 5005 fi 5006 5007 done 5008 ac_cv_prog_CPP=$CPP 5009 5010 fi 5011 CPP=$ac_cv_prog_CPP 5012 else 5013 ac_cv_prog_CPP=$CPP 5014 fi 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5016 $as_echo "$CPP" >&6; } 5017 ac_preproc_ok=false 5018 for ac_c_preproc_warn_flag in '' yes 5019 do 5020 # Use a header file that comes with gcc, so configuring glibc 5021 # with a fresh cross-compiler works. 5022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5023 # <limits.h> exists even on freestanding compilers. 5024 # On the NeXT, cc -E runs the code through the compiler's parser, 5025 # not just through cpp. "Syntax error" is here to catch this case. 5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5027 /* end confdefs.h. */ 5028 #ifdef __STDC__ 5029 # include <limits.h> 5030 #else 5031 # include <assert.h> 5032 #endif 5033 Syntax error 5034 _ACEOF 5035 if ac_fn_c_try_cpp "$LINENO"; then : 5036 5037 else 5038 # Broken: fails on valid input. 5039 continue 5040 fi 5041 rm -f conftest.err conftest.i conftest.$ac_ext 5042 5043 # OK, works on sane cases. Now check whether nonexistent headers 5044 # can be detected and how. 5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5046 /* end confdefs.h. */ 5047 #include <ac_nonexistent.h> 5048 _ACEOF 5049 if ac_fn_c_try_cpp "$LINENO"; then : 5050 # Broken: success on invalid input. 5051 continue 5052 else 5053 # Passes both tests. 5054 ac_preproc_ok=: 5055 break 5056 fi 5057 rm -f conftest.err conftest.i conftest.$ac_ext 5058 5059 done 5060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5061 rm -f conftest.i conftest.err conftest.$ac_ext 5062 if $ac_preproc_ok; then : 5063 5064 else 5065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5067 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5068 See \`config.log' for more details" "$LINENO" 5; } 5069 fi 5070 5071 ac_ext=c 5072 ac_cpp='$CPP $CPPFLAGS' 5073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5075 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5076 5077 5078 # Check whether --enable-cxx was given. 5079 if test "${enable_cxx+set}" = set; then : 5080 enableval=$enable_cxx; if test "x$enable_cxx" = "xno" ; then 5081 enable_cxx="0" 5082 else 5083 enable_cxx="1" 5084 fi 5085 5086 else 5087 enable_cxx="1" 5088 5089 fi 5090 5091 5092 # Check whether --with-cxx_stdlib was given. 5093 if test "${with_cxx_stdlib+set}" = set; then : 5094 withval=$with_cxx_stdlib; case "${with_cxx_stdlib}" in 5095 libstdc++|libcxx) ;; 5096 *) as_fn_error $? "bad value ${with_cxx_stdlib} for --with-cxx-stdlib" "$LINENO" 5 ;; 5097 esac 5098 else 5099 with_cxx_stdlib="" 5100 5101 fi 5102 5103 if test "x$enable_cxx" = "x1" ; then 5104 # =========================================================================== 5105 # https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html 5106 # =========================================================================== 5107 # 5108 # SYNOPSIS 5109 # 5110 # AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional]) 5111 # 5112 # DESCRIPTION 5113 # 5114 # Check for baseline language coverage in the compiler for the specified 5115 # version of the C++ standard. If necessary, add switches to CXX and 5116 # CXXCPP to enable support. VERSION may be '11' (for the C++11 standard) 5117 # or '14' (for the C++14 standard). 5118 # 5119 # The second argument, if specified, indicates whether you insist on an 5120 # extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g. 5121 # -std=c++11). If neither is specified, you get whatever works, with 5122 # preference for an extended mode. 5123 # 5124 # The third argument, if specified 'mandatory' or if left unspecified, 5125 # indicates that baseline support for the specified C++ standard is 5126 # required and that the macro should error out if no mode with that 5127 # support is found. If specified 'optional', then configuration proceeds 5128 # regardless, after defining HAVE_CXX${VERSION} if and only if a 5129 # supporting mode is found. 5130 # 5131 # LICENSE 5132 # 5133 # Copyright (c) 2008 Benjamin Kosnik <bkoz (at] redhat.com> 5134 # Copyright (c) 2012 Zack Weinberg <zackw (at] panix.com> 5135 # Copyright (c) 2013 Roy Stogner <roystgnr (at] ices.utexas.edu> 5136 # Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov (at] google.com> 5137 # Copyright (c) 2015 Paul Norman <penorman (at] mac.com> 5138 # Copyright (c) 2015 Moritz Klammler <moritz (at] klammler.eu> 5139 # Copyright (c) 2016, 2018 Krzesimir Nowak <qdlacz (at] gmail.com> 5140 # Copyright (c) 2019 Enji Cooper <yaneurabeya (at] gmail.com> 5141 # 5142 # Copying and distribution of this file, with or without modification, are 5143 # permitted in any medium without royalty provided the copyright notice 5144 # and this notice are preserved. This file is offered as-is, without any 5145 # warranty. 5146 5147 #serial 11 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 ac_ext=cpp 5174 ac_cpp='$CXXCPP $CPPFLAGS' 5175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5178 if test -z "$CXX"; then 5179 if test -n "$CCC"; then 5180 CXX=$CCC 5181 else 5182 if test -n "$ac_tool_prefix"; then 5183 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5184 do 5185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5188 $as_echo_n "checking for $ac_word... " >&6; } 5189 if ${ac_cv_prog_CXX+:} false; then : 5190 $as_echo_n "(cached) " >&6 5191 else 5192 if test -n "$CXX"; then 5193 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5194 else 5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5196 for as_dir in $PATH 5197 do 5198 IFS=$as_save_IFS 5199 test -z "$as_dir" && as_dir=. 5200 for ac_exec_ext in '' $ac_executable_extensions; do 5201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5202 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5204 break 2 5205 fi 5206 done 5207 done 5208 IFS=$as_save_IFS 5209 5210 fi 5211 fi 5212 CXX=$ac_cv_prog_CXX 5213 if test -n "$CXX"; then 5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5215 $as_echo "$CXX" >&6; } 5216 else 5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5218 $as_echo "no" >&6; } 5219 fi 5220 5221 5222 test -n "$CXX" && break 5223 done 5224 fi 5225 if test -z "$CXX"; then 5226 ac_ct_CXX=$CXX 5227 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5228 do 5229 # Extract the first word of "$ac_prog", so it can be a program name with args. 5230 set dummy $ac_prog; ac_word=$2 5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5232 $as_echo_n "checking for $ac_word... " >&6; } 5233 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 5234 $as_echo_n "(cached) " >&6 5235 else 5236 if test -n "$ac_ct_CXX"; then 5237 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5238 else 5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5240 for as_dir in $PATH 5241 do 5242 IFS=$as_save_IFS 5243 test -z "$as_dir" && as_dir=. 5244 for ac_exec_ext in '' $ac_executable_extensions; do 5245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5246 ac_cv_prog_ac_ct_CXX="$ac_prog" 5247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5248 break 2 5249 fi 5250 done 5251 done 5252 IFS=$as_save_IFS 5253 5254 fi 5255 fi 5256 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5257 if test -n "$ac_ct_CXX"; then 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5259 $as_echo "$ac_ct_CXX" >&6; } 5260 else 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5262 $as_echo "no" >&6; } 5263 fi 5264 5265 5266 test -n "$ac_ct_CXX" && break 5267 done 5268 5269 if test "x$ac_ct_CXX" = x; then 5270 CXX="g++" 5271 else 5272 case $cross_compiling:$ac_tool_warned in 5273 yes:) 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5276 ac_tool_warned=yes ;; 5277 esac 5278 CXX=$ac_ct_CXX 5279 fi 5280 fi 5281 5282 fi 5283 fi 5284 # Provide some information about the compiler. 5285 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5286 set X $ac_compile 5287 ac_compiler=$2 5288 for ac_option in --version -v -V -qversion; do 5289 { { ac_try="$ac_compiler $ac_option >&5" 5290 case "(($ac_try" in 5291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5292 *) ac_try_echo=$ac_try;; 5293 esac 5294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5295 $as_echo "$ac_try_echo"; } >&5 5296 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5297 ac_status=$? 5298 if test -s conftest.err; then 5299 sed '10a\ 5300 ... rest of stderr output deleted ... 5301 10q' conftest.err >conftest.er1 5302 cat conftest.er1 >&5 5303 fi 5304 rm -f conftest.er1 conftest.err 5305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5306 test $ac_status = 0; } 5307 done 5308 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5310 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5311 if ${ac_cv_cxx_compiler_gnu+:} false; then : 5312 $as_echo_n "(cached) " >&6 5313 else 5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5315 /* end confdefs.h. */ 5316 5317 int 5318 main () 5319 { 5320 #ifndef __GNUC__ 5321 choke me 5322 #endif 5323 5324 ; 5325 return 0; 5326 } 5327 _ACEOF 5328 if ac_fn_cxx_try_compile "$LINENO"; then : 5329 ac_compiler_gnu=yes 5330 else 5331 ac_compiler_gnu=no 5332 fi 5333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5334 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5335 5336 fi 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5338 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5339 if test $ac_compiler_gnu = yes; then 5340 GXX=yes 5341 else 5342 GXX= 5343 fi 5344 ac_test_CXXFLAGS=${CXXFLAGS+set} 5345 ac_save_CXXFLAGS=$CXXFLAGS 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5347 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 5348 if ${ac_cv_prog_cxx_g+:} false; then : 5349 $as_echo_n "(cached) " >&6 5350 else 5351 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5352 ac_cxx_werror_flag=yes 5353 ac_cv_prog_cxx_g=no 5354 CXXFLAGS="-g" 5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5356 /* end confdefs.h. */ 5357 5358 int 5359 main () 5360 { 5361 5362 ; 5363 return 0; 5364 } 5365 _ACEOF 5366 if ac_fn_cxx_try_compile "$LINENO"; then : 5367 ac_cv_prog_cxx_g=yes 5368 else 5369 CXXFLAGS="" 5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5371 /* end confdefs.h. */ 5372 5373 int 5374 main () 5375 { 5376 5377 ; 5378 return 0; 5379 } 5380 _ACEOF 5381 if ac_fn_cxx_try_compile "$LINENO"; then : 5382 5383 else 5384 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5385 CXXFLAGS="-g" 5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5387 /* end confdefs.h. */ 5388 5389 int 5390 main () 5391 { 5392 5393 ; 5394 return 0; 5395 } 5396 _ACEOF 5397 if ac_fn_cxx_try_compile "$LINENO"; then : 5398 ac_cv_prog_cxx_g=yes 5399 fi 5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5401 fi 5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5403 fi 5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5405 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5406 fi 5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5408 $as_echo "$ac_cv_prog_cxx_g" >&6; } 5409 if test "$ac_test_CXXFLAGS" = set; then 5410 CXXFLAGS=$ac_save_CXXFLAGS 5411 elif test $ac_cv_prog_cxx_g = yes; then 5412 if test "$GXX" = yes; then 5413 CXXFLAGS="-g -O2" 5414 else 5415 CXXFLAGS="-g" 5416 fi 5417 else 5418 if test "$GXX" = yes; then 5419 CXXFLAGS="-O2" 5420 else 5421 CXXFLAGS= 5422 fi 5423 fi 5424 ac_ext=cpp 5425 ac_cpp='$CXXCPP $CPPFLAGS' 5426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5429 5430 5431 ax_cxx_compile_alternatives="17 1z" ax_cxx_compile_cxx17_required=false 5432 ac_ext=cpp 5433 ac_cpp='$CXXCPP $CPPFLAGS' 5434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5437 ac_success=no 5438 5439 5440 5441 if test x$ac_success = xno; then 5442 for alternative in ${ax_cxx_compile_alternatives}; do 5443 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do 5444 cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh` 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5 5446 $as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; } 5447 if eval \${$cachevar+:} false; then : 5448 $as_echo_n "(cached) " >&6 5449 else 5450 ac_save_CXX="$CXX" 5451 CXX="$CXX $switch" 5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5453 /* end confdefs.h. */ 5454 5455 5456 // If the compiler admits that it is not ready for C++11, why torture it? 5457 // Hopefully, this will speed up the test. 5458 5459 #ifndef __cplusplus 5460 5461 #error "This is not a C++ compiler" 5462 5463 #elif __cplusplus < 201103L 5464 5465 #error "This is not a C++11 compiler" 5466 5467 #else 5468 5469 namespace cxx11 5470 { 5471 5472 namespace test_static_assert 5473 { 5474 5475 template <typename T> 5476 struct check 5477 { 5478 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 5479 }; 5480 5481 } 5482 5483 namespace test_final_override 5484 { 5485 5486 struct Base 5487 { 5488 virtual ~Base() {} 5489 virtual void f() {} 5490 }; 5491 5492 struct Derived : public Base 5493 { 5494 virtual ~Derived() override {} 5495 virtual void f() override {} 5496 }; 5497 5498 } 5499 5500 namespace test_double_right_angle_brackets 5501 { 5502 5503 template < typename T > 5504 struct check {}; 5505 5506 typedef check<void> single_type; 5507 typedef check<check<void>> double_type; 5508 typedef check<check<check<void>>> triple_type; 5509 typedef check<check<check<check<void>>>> quadruple_type; 5510 5511 } 5512 5513 namespace test_decltype 5514 { 5515 5516 int 5517 f() 5518 { 5519 int a = 1; 5520 decltype(a) b = 2; 5521 return a + b; 5522 } 5523 5524 } 5525 5526 namespace test_type_deduction 5527 { 5528 5529 template < typename T1, typename T2 > 5530 struct is_same 5531 { 5532 static const bool value = false; 5533 }; 5534 5535 template < typename T > 5536 struct is_same<T, T> 5537 { 5538 static const bool value = true; 5539 }; 5540 5541 template < typename T1, typename T2 > 5542 auto 5543 add(T1 a1, T2 a2) -> decltype(a1 + a2) 5544 { 5545 return a1 + a2; 5546 } 5547 5548 int 5549 test(const int c, volatile int v) 5550 { 5551 static_assert(is_same<int, decltype(0)>::value == true, ""); 5552 static_assert(is_same<int, decltype(c)>::value == false, ""); 5553 static_assert(is_same<int, decltype(v)>::value == false, ""); 5554 auto ac = c; 5555 auto av = v; 5556 auto sumi = ac + av + 'x'; 5557 auto sumf = ac + av + 1.0; 5558 static_assert(is_same<int, decltype(ac)>::value == true, ""); 5559 static_assert(is_same<int, decltype(av)>::value == true, ""); 5560 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 5561 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 5562 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 5563 return (sumf > 0.0) ? sumi : add(c, v); 5564 } 5565 5566 } 5567 5568 namespace test_noexcept 5569 { 5570 5571 int f() { return 0; } 5572 int g() noexcept { return 0; } 5573 5574 static_assert(noexcept(f()) == false, ""); 5575 static_assert(noexcept(g()) == true, ""); 5576 5577 } 5578 5579 namespace test_constexpr 5580 { 5581 5582 template < typename CharT > 5583 unsigned long constexpr 5584 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 5585 { 5586 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 5587 } 5588 5589 template < typename CharT > 5590 unsigned long constexpr 5591 strlen_c(const CharT *const s) noexcept 5592 { 5593 return strlen_c_r(s, 0UL); 5594 } 5595 5596 static_assert(strlen_c("") == 0UL, ""); 5597 static_assert(strlen_c("1") == 1UL, ""); 5598 static_assert(strlen_c("example") == 7UL, ""); 5599 static_assert(strlen_c("another\0example") == 7UL, ""); 5600 5601 } 5602 5603 namespace test_rvalue_references 5604 { 5605 5606 template < int N > 5607 struct answer 5608 { 5609 static constexpr int value = N; 5610 }; 5611 5612 answer<1> f(int&) { return answer<1>(); } 5613 answer<2> f(const int&) { return answer<2>(); } 5614 answer<3> f(int&&) { return answer<3>(); } 5615 5616 void 5617 test() 5618 { 5619 int i = 0; 5620 const int c = 0; 5621 static_assert(decltype(f(i))::value == 1, ""); 5622 static_assert(decltype(f(c))::value == 2, ""); 5623 static_assert(decltype(f(0))::value == 3, ""); 5624 } 5625 5626 } 5627 5628 namespace test_uniform_initialization 5629 { 5630 5631 struct test 5632 { 5633 static const int zero {}; 5634 static const int one {1}; 5635 }; 5636 5637 static_assert(test::zero == 0, ""); 5638 static_assert(test::one == 1, ""); 5639 5640 } 5641 5642 namespace test_lambdas 5643 { 5644 5645 void 5646 test1() 5647 { 5648 auto lambda1 = [](){}; 5649 auto lambda2 = lambda1; 5650 lambda1(); 5651 lambda2(); 5652 } 5653 5654 int 5655 test2() 5656 { 5657 auto a = [](int i, int j){ return i + j; }(1, 2); 5658 auto b = []() -> int { return '0'; }(); 5659 auto c = [=](){ return a + b; }(); 5660 auto d = [&](){ return c; }(); 5661 auto e = [a, &b](int x) mutable { 5662 const auto identity = [](int y){ return y; }; 5663 for (auto i = 0; i < a; ++i) 5664 a += b--; 5665 return x + identity(a + b); 5666 }(0); 5667 return a + b + c + d + e; 5668 } 5669 5670 int 5671 test3() 5672 { 5673 const auto nullary = [](){ return 0; }; 5674 const auto unary = [](int x){ return x; }; 5675 using nullary_t = decltype(nullary); 5676 using unary_t = decltype(unary); 5677 const auto higher1st = [](nullary_t f){ return f(); }; 5678 const auto higher2nd = [unary](nullary_t f1){ 5679 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 5680 }; 5681 return higher1st(nullary) + higher2nd(nullary)(unary); 5682 } 5683 5684 } 5685 5686 namespace test_variadic_templates 5687 { 5688 5689 template <int...> 5690 struct sum; 5691 5692 template <int N0, int... N1toN> 5693 struct sum<N0, N1toN...> 5694 { 5695 static constexpr auto value = N0 + sum<N1toN...>::value; 5696 }; 5697 5698 template <> 5699 struct sum<> 5700 { 5701 static constexpr auto value = 0; 5702 }; 5703 5704 static_assert(sum<>::value == 0, ""); 5705 static_assert(sum<1>::value == 1, ""); 5706 static_assert(sum<23>::value == 23, ""); 5707 static_assert(sum<1, 2>::value == 3, ""); 5708 static_assert(sum<5, 5, 11>::value == 21, ""); 5709 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 5710 5711 } 5712 5713 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 5714 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 5715 // because of this. 5716 namespace test_template_alias_sfinae 5717 { 5718 5719 struct foo {}; 5720 5721 template<typename T> 5722 using member = typename T::member_type; 5723 5724 template<typename T> 5725 void func(...) {} 5726 5727 template<typename T> 5728 void func(member<T>*) {} 5729 5730 void test(); 5731 5732 void test() { func<foo>(0); } 5733 5734 } 5735 5736 } // namespace cxx11 5737 5738 #endif // __cplusplus >= 201103L 5739 5740 5741 5742 5743 // If the compiler admits that it is not ready for C++14, why torture it? 5744 // Hopefully, this will speed up the test. 5745 5746 #ifndef __cplusplus 5747 5748 #error "This is not a C++ compiler" 5749 5750 #elif __cplusplus < 201402L 5751 5752 #error "This is not a C++14 compiler" 5753 5754 #else 5755 5756 namespace cxx14 5757 { 5758 5759 namespace test_polymorphic_lambdas 5760 { 5761 5762 int 5763 test() 5764 { 5765 const auto lambda = [](auto&&... args){ 5766 const auto istiny = [](auto x){ 5767 return (sizeof(x) == 1UL) ? 1 : 0; 5768 }; 5769 const int aretiny[] = { istiny(args)... }; 5770 return aretiny[0]; 5771 }; 5772 return lambda(1, 1L, 1.0f, '1'); 5773 } 5774 5775 } 5776 5777 namespace test_binary_literals 5778 { 5779 5780 constexpr auto ivii = 0b0000000000101010; 5781 static_assert(ivii == 42, "wrong value"); 5782 5783 } 5784 5785 namespace test_generalized_constexpr 5786 { 5787 5788 template < typename CharT > 5789 constexpr unsigned long 5790 strlen_c(const CharT *const s) noexcept 5791 { 5792 auto length = 0UL; 5793 for (auto p = s; *p; ++p) 5794 ++length; 5795 return length; 5796 } 5797 5798 static_assert(strlen_c("") == 0UL, ""); 5799 static_assert(strlen_c("x") == 1UL, ""); 5800 static_assert(strlen_c("test") == 4UL, ""); 5801 static_assert(strlen_c("another\0test") == 7UL, ""); 5802 5803 } 5804 5805 namespace test_lambda_init_capture 5806 { 5807 5808 int 5809 test() 5810 { 5811 auto x = 0; 5812 const auto lambda1 = [a = x](int b){ return a + b; }; 5813 const auto lambda2 = [a = lambda1(x)](){ return a; }; 5814 return lambda2(); 5815 } 5816 5817 } 5818 5819 namespace test_digit_separators 5820 { 5821 5822 constexpr auto ten_million = 100'000'000; 5823 static_assert(ten_million == 100000000, ""); 5824 5825 } 5826 5827 namespace test_return_type_deduction 5828 { 5829 5830 auto f(int& x) { return x; } 5831 decltype(auto) g(int& x) { return x; } 5832 5833 template < typename T1, typename T2 > 5834 struct is_same 5835 { 5836 static constexpr auto value = false; 5837 }; 5838 5839 template < typename T > 5840 struct is_same<T, T> 5841 { 5842 static constexpr auto value = true; 5843 }; 5844 5845 int 5846 test() 5847 { 5848 auto x = 0; 5849 static_assert(is_same<int, decltype(f(x))>::value, ""); 5850 static_assert(is_same<int&, decltype(g(x))>::value, ""); 5851 return x; 5852 } 5853 5854 } 5855 5856 } // namespace cxx14 5857 5858 #endif // __cplusplus >= 201402L 5859 5860 5861 5862 5863 // If the compiler admits that it is not ready for C++17, why torture it? 5864 // Hopefully, this will speed up the test. 5865 5866 #ifndef __cplusplus 5867 5868 #error "This is not a C++ compiler" 5869 5870 #elif __cplusplus < 201703L 5871 5872 #error "This is not a C++17 compiler" 5873 5874 #else 5875 5876 #include <initializer_list> 5877 #include <utility> 5878 #include <type_traits> 5879 5880 namespace cxx17 5881 { 5882 5883 namespace test_constexpr_lambdas 5884 { 5885 5886 constexpr int foo = [](){return 42;}(); 5887 5888 } 5889 5890 namespace test::nested_namespace::definitions 5891 { 5892 5893 } 5894 5895 namespace test_fold_expression 5896 { 5897 5898 template<typename... Args> 5899 int multiply(Args... args) 5900 { 5901 return (args * ... * 1); 5902 } 5903 5904 template<typename... Args> 5905 bool all(Args... args) 5906 { 5907 return (args && ...); 5908 } 5909 5910 } 5911 5912 namespace test_extended_static_assert 5913 { 5914 5915 static_assert (true); 5916 5917 } 5918 5919 namespace test_auto_brace_init_list 5920 { 5921 5922 auto foo = {5}; 5923 auto bar {5}; 5924 5925 static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value); 5926 static_assert(std::is_same<int, decltype(bar)>::value); 5927 } 5928 5929 namespace test_typename_in_template_template_parameter 5930 { 5931 5932 template<template<typename> typename X> struct D; 5933 5934 } 5935 5936 namespace test_fallthrough_nodiscard_maybe_unused_attributes 5937 { 5938 5939 int f1() 5940 { 5941 return 42; 5942 } 5943 5944 [[nodiscard]] int f2() 5945 { 5946 [[maybe_unused]] auto unused = f1(); 5947 5948 switch (f1()) 5949 { 5950 case 17: 5951 f1(); 5952 [[fallthrough]]; 5953 case 42: 5954 f1(); 5955 } 5956 return f1(); 5957 } 5958 5959 } 5960 5961 namespace test_extended_aggregate_initialization 5962 { 5963 5964 struct base1 5965 { 5966 int b1, b2 = 42; 5967 }; 5968 5969 struct base2 5970 { 5971 base2() { 5972 b3 = 42; 5973 } 5974 int b3; 5975 }; 5976 5977 struct derived : base1, base2 5978 { 5979 int d; 5980 }; 5981 5982 derived d1 {{1, 2}, {}, 4}; // full initialization 5983 derived d2 {{}, {}, 4}; // value-initialized bases 5984 5985 } 5986 5987 namespace test_general_range_based_for_loop 5988 { 5989 5990 struct iter 5991 { 5992 int i; 5993 5994 int& operator* () 5995 { 5996 return i; 5997 } 5998 5999 const int& operator* () const 6000 { 6001 return i; 6002 } 6003 6004 iter& operator++() 6005 { 6006 ++i; 6007 return *this; 6008 } 6009 }; 6010 6011 struct sentinel 6012 { 6013 int i; 6014 }; 6015 6016 bool operator== (const iter& i, const sentinel& s) 6017 { 6018 return i.i == s.i; 6019 } 6020 6021 bool operator!= (const iter& i, const sentinel& s) 6022 { 6023 return !(i == s); 6024 } 6025 6026 struct range 6027 { 6028 iter begin() const 6029 { 6030 return {0}; 6031 } 6032 6033 sentinel end() const 6034 { 6035 return {5}; 6036 } 6037 }; 6038 6039 void f() 6040 { 6041 range r {}; 6042 6043 for (auto i : r) 6044 { 6045 [[maybe_unused]] auto v = i; 6046 } 6047 } 6048 6049 } 6050 6051 namespace test_lambda_capture_asterisk_this_by_value 6052 { 6053 6054 struct t 6055 { 6056 int i; 6057 int foo() 6058 { 6059 return [*this]() 6060 { 6061 return i; 6062 }(); 6063 } 6064 }; 6065 6066 } 6067 6068 namespace test_enum_class_construction 6069 { 6070 6071 enum class byte : unsigned char 6072 {}; 6073 6074 byte foo {42}; 6075 6076 } 6077 6078 namespace test_constexpr_if 6079 { 6080 6081 template <bool cond> 6082 int f () 6083 { 6084 if constexpr(cond) 6085 { 6086 return 13; 6087 } 6088 else 6089 { 6090 return 42; 6091 } 6092 } 6093 6094 } 6095 6096 namespace test_selection_statement_with_initializer 6097 { 6098 6099 int f() 6100 { 6101 return 13; 6102 } 6103 6104 int f2() 6105 { 6106 if (auto i = f(); i > 0) 6107 { 6108 return 3; 6109 } 6110 6111 switch (auto i = f(); i + 4) 6112 { 6113 case 17: 6114 return 2; 6115 6116 default: 6117 return 1; 6118 } 6119 } 6120 6121 } 6122 6123 namespace test_template_argument_deduction_for_class_templates 6124 { 6125 6126 template <typename T1, typename T2> 6127 struct pair 6128 { 6129 pair (T1 p1, T2 p2) 6130 : m1 {p1}, 6131 m2 {p2} 6132 {} 6133 6134 T1 m1; 6135 T2 m2; 6136 }; 6137 6138 void f() 6139 { 6140 [[maybe_unused]] auto p = pair{13, 42u}; 6141 } 6142 6143 } 6144 6145 namespace test_non_type_auto_template_parameters 6146 { 6147 6148 template <auto n> 6149 struct B 6150 {}; 6151 6152 B<5> b1; 6153 B<'a'> b2; 6154 6155 } 6156 6157 namespace test_structured_bindings 6158 { 6159 6160 int arr[2] = { 1, 2 }; 6161 std::pair<int, int> pr = { 1, 2 }; 6162 6163 auto f1() -> int(&)[2] 6164 { 6165 return arr; 6166 } 6167 6168 auto f2() -> std::pair<int, int>& 6169 { 6170 return pr; 6171 } 6172 6173 struct S 6174 { 6175 int x1 : 2; 6176 volatile double y1; 6177 }; 6178 6179 S f3() 6180 { 6181 return {}; 6182 } 6183 6184 auto [ x1, y1 ] = f1(); 6185 auto& [ xr1, yr1 ] = f1(); 6186 auto [ x2, y2 ] = f2(); 6187 auto& [ xr2, yr2 ] = f2(); 6188 const auto [ x3, y3 ] = f3(); 6189 6190 } 6191 6192 namespace test_exception_spec_type_system 6193 { 6194 6195 struct Good {}; 6196 struct Bad {}; 6197 6198 void g1() noexcept; 6199 void g2(); 6200 6201 template<typename T> 6202 Bad 6203 f(T*, T*); 6204 6205 template<typename T1, typename T2> 6206 Good 6207 f(T1*, T2*); 6208 6209 static_assert (std::is_same_v<Good, decltype(f(g1, g2))>); 6210 6211 } 6212 6213 namespace test_inline_variables 6214 { 6215 6216 template<class T> void f(T) 6217 {} 6218 6219 template<class T> inline T g(T) 6220 { 6221 return T{}; 6222 } 6223 6224 template<> inline void f<>(int) 6225 {} 6226 6227 template<> int g<>(int) 6228 { 6229 return 5; 6230 } 6231 6232 } 6233 6234 } // namespace cxx17 6235 6236 #endif // __cplusplus < 201703L 6237 6238 6239 6240 _ACEOF 6241 if ac_fn_cxx_try_compile "$LINENO"; then : 6242 eval $cachevar=yes 6243 else 6244 eval $cachevar=no 6245 fi 6246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6247 CXX="$ac_save_CXX" 6248 fi 6249 eval ac_res=\$$cachevar 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6251 $as_echo "$ac_res" >&6; } 6252 if eval test x\$$cachevar = xyes; then 6253 CXX="$CXX $switch" 6254 if test -n "$CXXCPP" ; then 6255 CXXCPP="$CXXCPP $switch" 6256 fi 6257 ac_success=yes 6258 break 6259 fi 6260 done 6261 if test x$ac_success = xyes; then 6262 break 6263 fi 6264 done 6265 fi 6266 ac_ext=c 6267 ac_cpp='$CPP $CPPFLAGS' 6268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6270 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6271 6272 if test x$ax_cxx_compile_cxx17_required = xtrue; then 6273 if test x$ac_success = xno; then 6274 as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5 6275 fi 6276 fi 6277 if test x$ac_success = xno; then 6278 HAVE_CXX17=0 6279 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5 6280 $as_echo "$as_me: No compiler with C++17 support was found" >&6;} 6281 else 6282 HAVE_CXX17=1 6283 6284 $as_echo "#define HAVE_CXX17 1" >>confdefs.h 6285 6286 fi 6287 6288 6289 if test "x${HAVE_CXX17}" != "x1"; then 6290 ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=false 6291 ac_ext=cpp 6292 ac_cpp='$CXXCPP $CPPFLAGS' 6293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6296 ac_success=no 6297 6298 6299 6300 if test x$ac_success = xno; then 6301 for alternative in ${ax_cxx_compile_alternatives}; do 6302 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do 6303 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh` 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5 6305 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; } 6306 if eval \${$cachevar+:} false; then : 6307 $as_echo_n "(cached) " >&6 6308 else 6309 ac_save_CXX="$CXX" 6310 CXX="$CXX $switch" 6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6312 /* end confdefs.h. */ 6313 6314 6315 // If the compiler admits that it is not ready for C++11, why torture it? 6316 // Hopefully, this will speed up the test. 6317 6318 #ifndef __cplusplus 6319 6320 #error "This is not a C++ compiler" 6321 6322 #elif __cplusplus < 201103L 6323 6324 #error "This is not a C++11 compiler" 6325 6326 #else 6327 6328 namespace cxx11 6329 { 6330 6331 namespace test_static_assert 6332 { 6333 6334 template <typename T> 6335 struct check 6336 { 6337 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 6338 }; 6339 6340 } 6341 6342 namespace test_final_override 6343 { 6344 6345 struct Base 6346 { 6347 virtual ~Base() {} 6348 virtual void f() {} 6349 }; 6350 6351 struct Derived : public Base 6352 { 6353 virtual ~Derived() override {} 6354 virtual void f() override {} 6355 }; 6356 6357 } 6358 6359 namespace test_double_right_angle_brackets 6360 { 6361 6362 template < typename T > 6363 struct check {}; 6364 6365 typedef check<void> single_type; 6366 typedef check<check<void>> double_type; 6367 typedef check<check<check<void>>> triple_type; 6368 typedef check<check<check<check<void>>>> quadruple_type; 6369 6370 } 6371 6372 namespace test_decltype 6373 { 6374 6375 int 6376 f() 6377 { 6378 int a = 1; 6379 decltype(a) b = 2; 6380 return a + b; 6381 } 6382 6383 } 6384 6385 namespace test_type_deduction 6386 { 6387 6388 template < typename T1, typename T2 > 6389 struct is_same 6390 { 6391 static const bool value = false; 6392 }; 6393 6394 template < typename T > 6395 struct is_same<T, T> 6396 { 6397 static const bool value = true; 6398 }; 6399 6400 template < typename T1, typename T2 > 6401 auto 6402 add(T1 a1, T2 a2) -> decltype(a1 + a2) 6403 { 6404 return a1 + a2; 6405 } 6406 6407 int 6408 test(const int c, volatile int v) 6409 { 6410 static_assert(is_same<int, decltype(0)>::value == true, ""); 6411 static_assert(is_same<int, decltype(c)>::value == false, ""); 6412 static_assert(is_same<int, decltype(v)>::value == false, ""); 6413 auto ac = c; 6414 auto av = v; 6415 auto sumi = ac + av + 'x'; 6416 auto sumf = ac + av + 1.0; 6417 static_assert(is_same<int, decltype(ac)>::value == true, ""); 6418 static_assert(is_same<int, decltype(av)>::value == true, ""); 6419 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 6420 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 6421 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 6422 return (sumf > 0.0) ? sumi : add(c, v); 6423 } 6424 6425 } 6426 6427 namespace test_noexcept 6428 { 6429 6430 int f() { return 0; } 6431 int g() noexcept { return 0; } 6432 6433 static_assert(noexcept(f()) == false, ""); 6434 static_assert(noexcept(g()) == true, ""); 6435 6436 } 6437 6438 namespace test_constexpr 6439 { 6440 6441 template < typename CharT > 6442 unsigned long constexpr 6443 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 6444 { 6445 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 6446 } 6447 6448 template < typename CharT > 6449 unsigned long constexpr 6450 strlen_c(const CharT *const s) noexcept 6451 { 6452 return strlen_c_r(s, 0UL); 6453 } 6454 6455 static_assert(strlen_c("") == 0UL, ""); 6456 static_assert(strlen_c("1") == 1UL, ""); 6457 static_assert(strlen_c("example") == 7UL, ""); 6458 static_assert(strlen_c("another\0example") == 7UL, ""); 6459 6460 } 6461 6462 namespace test_rvalue_references 6463 { 6464 6465 template < int N > 6466 struct answer 6467 { 6468 static constexpr int value = N; 6469 }; 6470 6471 answer<1> f(int&) { return answer<1>(); } 6472 answer<2> f(const int&) { return answer<2>(); } 6473 answer<3> f(int&&) { return answer<3>(); } 6474 6475 void 6476 test() 6477 { 6478 int i = 0; 6479 const int c = 0; 6480 static_assert(decltype(f(i))::value == 1, ""); 6481 static_assert(decltype(f(c))::value == 2, ""); 6482 static_assert(decltype(f(0))::value == 3, ""); 6483 } 6484 6485 } 6486 6487 namespace test_uniform_initialization 6488 { 6489 6490 struct test 6491 { 6492 static const int zero {}; 6493 static const int one {1}; 6494 }; 6495 6496 static_assert(test::zero == 0, ""); 6497 static_assert(test::one == 1, ""); 6498 6499 } 6500 6501 namespace test_lambdas 6502 { 6503 6504 void 6505 test1() 6506 { 6507 auto lambda1 = [](){}; 6508 auto lambda2 = lambda1; 6509 lambda1(); 6510 lambda2(); 6511 } 6512 6513 int 6514 test2() 6515 { 6516 auto a = [](int i, int j){ return i + j; }(1, 2); 6517 auto b = []() -> int { return '0'; }(); 6518 auto c = [=](){ return a + b; }(); 6519 auto d = [&](){ return c; }(); 6520 auto e = [a, &b](int x) mutable { 6521 const auto identity = [](int y){ return y; }; 6522 for (auto i = 0; i < a; ++i) 6523 a += b--; 6524 return x + identity(a + b); 6525 }(0); 6526 return a + b + c + d + e; 6527 } 6528 6529 int 6530 test3() 6531 { 6532 const auto nullary = [](){ return 0; }; 6533 const auto unary = [](int x){ return x; }; 6534 using nullary_t = decltype(nullary); 6535 using unary_t = decltype(unary); 6536 const auto higher1st = [](nullary_t f){ return f(); }; 6537 const auto higher2nd = [unary](nullary_t f1){ 6538 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 6539 }; 6540 return higher1st(nullary) + higher2nd(nullary)(unary); 6541 } 6542 6543 } 6544 6545 namespace test_variadic_templates 6546 { 6547 6548 template <int...> 6549 struct sum; 6550 6551 template <int N0, int... N1toN> 6552 struct sum<N0, N1toN...> 6553 { 6554 static constexpr auto value = N0 + sum<N1toN...>::value; 6555 }; 6556 6557 template <> 6558 struct sum<> 6559 { 6560 static constexpr auto value = 0; 6561 }; 6562 6563 static_assert(sum<>::value == 0, ""); 6564 static_assert(sum<1>::value == 1, ""); 6565 static_assert(sum<23>::value == 23, ""); 6566 static_assert(sum<1, 2>::value == 3, ""); 6567 static_assert(sum<5, 5, 11>::value == 21, ""); 6568 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 6569 6570 } 6571 6572 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 6573 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 6574 // because of this. 6575 namespace test_template_alias_sfinae 6576 { 6577 6578 struct foo {}; 6579 6580 template<typename T> 6581 using member = typename T::member_type; 6582 6583 template<typename T> 6584 void func(...) {} 6585 6586 template<typename T> 6587 void func(member<T>*) {} 6588 6589 void test(); 6590 6591 void test() { func<foo>(0); } 6592 6593 } 6594 6595 } // namespace cxx11 6596 6597 #endif // __cplusplus >= 201103L 6598 6599 6600 6601 6602 // If the compiler admits that it is not ready for C++14, why torture it? 6603 // Hopefully, this will speed up the test. 6604 6605 #ifndef __cplusplus 6606 6607 #error "This is not a C++ compiler" 6608 6609 #elif __cplusplus < 201402L 6610 6611 #error "This is not a C++14 compiler" 6612 6613 #else 6614 6615 namespace cxx14 6616 { 6617 6618 namespace test_polymorphic_lambdas 6619 { 6620 6621 int 6622 test() 6623 { 6624 const auto lambda = [](auto&&... args){ 6625 const auto istiny = [](auto x){ 6626 return (sizeof(x) == 1UL) ? 1 : 0; 6627 }; 6628 const int aretiny[] = { istiny(args)... }; 6629 return aretiny[0]; 6630 }; 6631 return lambda(1, 1L, 1.0f, '1'); 6632 } 6633 6634 } 6635 6636 namespace test_binary_literals 6637 { 6638 6639 constexpr auto ivii = 0b0000000000101010; 6640 static_assert(ivii == 42, "wrong value"); 6641 6642 } 6643 6644 namespace test_generalized_constexpr 6645 { 6646 6647 template < typename CharT > 6648 constexpr unsigned long 6649 strlen_c(const CharT *const s) noexcept 6650 { 6651 auto length = 0UL; 6652 for (auto p = s; *p; ++p) 6653 ++length; 6654 return length; 6655 } 6656 6657 static_assert(strlen_c("") == 0UL, ""); 6658 static_assert(strlen_c("x") == 1UL, ""); 6659 static_assert(strlen_c("test") == 4UL, ""); 6660 static_assert(strlen_c("another\0test") == 7UL, ""); 6661 6662 } 6663 6664 namespace test_lambda_init_capture 6665 { 6666 6667 int 6668 test() 6669 { 6670 auto x = 0; 6671 const auto lambda1 = [a = x](int b){ return a + b; }; 6672 const auto lambda2 = [a = lambda1(x)](){ return a; }; 6673 return lambda2(); 6674 } 6675 6676 } 6677 6678 namespace test_digit_separators 6679 { 6680 6681 constexpr auto ten_million = 100'000'000; 6682 static_assert(ten_million == 100000000, ""); 6683 6684 } 6685 6686 namespace test_return_type_deduction 6687 { 6688 6689 auto f(int& x) { return x; } 6690 decltype(auto) g(int& x) { return x; } 6691 6692 template < typename T1, typename T2 > 6693 struct is_same 6694 { 6695 static constexpr auto value = false; 6696 }; 6697 6698 template < typename T > 6699 struct is_same<T, T> 6700 { 6701 static constexpr auto value = true; 6702 }; 6703 6704 int 6705 test() 6706 { 6707 auto x = 0; 6708 static_assert(is_same<int, decltype(f(x))>::value, ""); 6709 static_assert(is_same<int&, decltype(g(x))>::value, ""); 6710 return x; 6711 } 6712 6713 } 6714 6715 } // namespace cxx14 6716 6717 #endif // __cplusplus >= 201402L 6718 6719 6720 6721 _ACEOF 6722 if ac_fn_cxx_try_compile "$LINENO"; then : 6723 eval $cachevar=yes 6724 else 6725 eval $cachevar=no 6726 fi 6727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6728 CXX="$ac_save_CXX" 6729 fi 6730 eval ac_res=\$$cachevar 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6732 $as_echo "$ac_res" >&6; } 6733 if eval test x\$$cachevar = xyes; then 6734 CXX="$CXX $switch" 6735 if test -n "$CXXCPP" ; then 6736 CXXCPP="$CXXCPP $switch" 6737 fi 6738 ac_success=yes 6739 break 6740 fi 6741 done 6742 if test x$ac_success = xyes; then 6743 break 6744 fi 6745 done 6746 fi 6747 ac_ext=c 6748 ac_cpp='$CPP $CPPFLAGS' 6749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6751 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6752 6753 if test x$ax_cxx_compile_cxx14_required = xtrue; then 6754 if test x$ac_success = xno; then 6755 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5 6756 fi 6757 fi 6758 if test x$ac_success = xno; then 6759 HAVE_CXX14=0 6760 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5 6761 $as_echo "$as_me: No compiler with C++14 support was found" >&6;} 6762 else 6763 HAVE_CXX14=1 6764 6765 $as_echo "#define HAVE_CXX14 1" >>confdefs.h 6766 6767 fi 6768 6769 6770 fi 6771 if test "x${HAVE_CXX14}" = "x1" -o "x${HAVE_CXX17}" = "x1"; then 6772 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5 6774 $as_echo_n "checking whether compiler supports -Wall... " >&6; } 6775 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}" 6776 T_APPEND_V=-Wall 6777 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 6778 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}" 6779 else 6780 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}" 6781 fi 6782 6783 6784 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 6785 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 6786 else 6787 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 6788 fi 6789 6790 ac_ext=cpp 6791 ac_cpp='$CXXCPP $CPPFLAGS' 6792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6795 6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6797 /* end confdefs.h. */ 6798 6799 6800 int 6801 main () 6802 { 6803 6804 return 0; 6805 6806 ; 6807 return 0; 6808 } 6809 _ACEOF 6810 if ac_fn_cxx_try_compile "$LINENO"; then : 6811 je_cv_cxxflags_added=-Wall 6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6813 $as_echo "yes" >&6; } 6814 else 6815 je_cv_cxxflags_added= 6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6817 $as_echo "no" >&6; } 6818 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}" 6819 6820 fi 6821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6822 ac_ext=c 6823 ac_cpp='$CPP $CPPFLAGS' 6824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6826 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6827 6828 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 6829 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 6830 else 6831 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 6832 fi 6833 6834 6835 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wextra" >&5 6837 $as_echo_n "checking whether compiler supports -Wextra... " >&6; } 6838 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}" 6839 T_APPEND_V=-Wextra 6840 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 6841 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}" 6842 else 6843 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}" 6844 fi 6845 6846 6847 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 6848 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 6849 else 6850 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 6851 fi 6852 6853 ac_ext=cpp 6854 ac_cpp='$CXXCPP $CPPFLAGS' 6855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6858 6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6860 /* end confdefs.h. */ 6861 6862 6863 int 6864 main () 6865 { 6866 6867 return 0; 6868 6869 ; 6870 return 0; 6871 } 6872 _ACEOF 6873 if ac_fn_cxx_try_compile "$LINENO"; then : 6874 je_cv_cxxflags_added=-Wextra 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6876 $as_echo "yes" >&6; } 6877 else 6878 je_cv_cxxflags_added= 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6880 $as_echo "no" >&6; } 6881 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}" 6882 6883 fi 6884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6885 ac_ext=c 6886 ac_cpp='$CPP $CPPFLAGS' 6887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6889 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6890 6891 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 6892 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 6893 else 6894 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 6895 fi 6896 6897 6898 6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5 6900 $as_echo_n "checking whether compiler supports -g3... " >&6; } 6901 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}" 6902 T_APPEND_V=-g3 6903 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 6904 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}" 6905 else 6906 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}" 6907 fi 6908 6909 6910 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 6911 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 6912 else 6913 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 6914 fi 6915 6916 ac_ext=cpp 6917 ac_cpp='$CXXCPP $CPPFLAGS' 6918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6921 6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6923 /* end confdefs.h. */ 6924 6925 6926 int 6927 main () 6928 { 6929 6930 return 0; 6931 6932 ; 6933 return 0; 6934 } 6935 _ACEOF 6936 if ac_fn_cxx_try_compile "$LINENO"; then : 6937 je_cv_cxxflags_added=-g3 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6939 $as_echo "yes" >&6; } 6940 else 6941 je_cv_cxxflags_added= 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6943 $as_echo "no" >&6; } 6944 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}" 6945 6946 fi 6947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6948 ac_ext=c 6949 ac_cpp='$CPP $CPPFLAGS' 6950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6952 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6953 6954 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 6955 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 6956 else 6957 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 6958 fi 6959 6960 6961 6962 SAVED_LIBS="${LIBS}" 6963 case "${with_cxx_stdlib}" in 6964 libstdc++) 6965 T_APPEND_V=-lstdc++ 6966 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 6967 LIBS="${LIBS}${T_APPEND_V}" 6968 else 6969 LIBS="${LIBS} ${T_APPEND_V}" 6970 fi 6971 6972 6973 ;; 6974 libcxx) 6975 T_APPEND_V=-lc++ 6976 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 6977 LIBS="${LIBS}${T_APPEND_V}" 6978 else 6979 LIBS="${LIBS} ${T_APPEND_V}" 6980 fi 6981 6982 6983 ;; 6984 *) 6985 T_APPEND_V=-lstdc++ 6986 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 6987 LIBS="${LIBS}${T_APPEND_V}" 6988 else 6989 LIBS="${LIBS} ${T_APPEND_V}" 6990 fi 6991 6992 6993 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libstdc++ linkage is compilable" >&5 6995 $as_echo_n "checking whether libstdc++ linkage is compilable... " >&6; } 6996 if ${je_cv_libstdcxx+:} false; then : 6997 $as_echo_n "(cached) " >&6 6998 else 6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7000 /* end confdefs.h. */ 7001 7002 #include <stdlib.h> 7003 7004 int 7005 main () 7006 { 7007 7008 int *arr = (int *)malloc(sizeof(int) * 42); 7009 if (arr == NULL) 7010 return 1; 7011 7012 ; 7013 return 0; 7014 } 7015 _ACEOF 7016 if ac_fn_c_try_link "$LINENO"; then : 7017 je_cv_libstdcxx=yes 7018 else 7019 je_cv_libstdcxx=no 7020 fi 7021 rm -f core conftest.err conftest.$ac_objext \ 7022 conftest$ac_exeext conftest.$ac_ext 7023 fi 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_libstdcxx" >&5 7025 $as_echo "$je_cv_libstdcxx" >&6; } 7026 7027 if test "x${je_cv_libstdcxx}" = "xno" ; then 7028 LIBS="${SAVED_LIBS}" 7029 fi 7030 ;; 7031 esac 7032 else 7033 enable_cxx="0" 7034 fi 7035 fi 7036 if test "x$enable_cxx" = "x1"; then 7037 7038 $as_echo "#define JEMALLOC_ENABLE_CXX " >>confdefs.h 7039 7040 fi 7041 7042 7043 7044 7045 7046 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 7048 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 7049 if ${ac_cv_path_GREP+:} false; then : 7050 $as_echo_n "(cached) " >&6 7051 else 7052 if test -z "$GREP"; then 7053 ac_path_GREP_found=false 7054 # Loop through the user's path and test for each of PROGNAME-LIST 7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7056 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7057 do 7058 IFS=$as_save_IFS 7059 test -z "$as_dir" && as_dir=. 7060 for ac_prog in grep ggrep; do 7061 for ac_exec_ext in '' $ac_executable_extensions; do 7062 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 7063 as_fn_executable_p "$ac_path_GREP" || continue 7064 # Check for GNU ac_path_GREP and select it if it is found. 7065 # Check for GNU $ac_path_GREP 7066 case `"$ac_path_GREP" --version 2>&1` in 7067 *GNU*) 7068 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7069 *) 7070 ac_count=0 7071 $as_echo_n 0123456789 >"conftest.in" 7072 while : 7073 do 7074 cat "conftest.in" "conftest.in" >"conftest.tmp" 7075 mv "conftest.tmp" "conftest.in" 7076 cp "conftest.in" "conftest.nl" 7077 $as_echo 'GREP' >> "conftest.nl" 7078 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7079 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7080 as_fn_arith $ac_count + 1 && ac_count=$as_val 7081 if test $ac_count -gt ${ac_path_GREP_max-0}; then 7082 # Best one so far, save it but keep looking for a better one 7083 ac_cv_path_GREP="$ac_path_GREP" 7084 ac_path_GREP_max=$ac_count 7085 fi 7086 # 10*(2^10) chars as input seems more than enough 7087 test $ac_count -gt 10 && break 7088 done 7089 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7090 esac 7091 7092 $ac_path_GREP_found && break 3 7093 done 7094 done 7095 done 7096 IFS=$as_save_IFS 7097 if test -z "$ac_cv_path_GREP"; then 7098 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7099 fi 7100 else 7101 ac_cv_path_GREP=$GREP 7102 fi 7103 7104 fi 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 7106 $as_echo "$ac_cv_path_GREP" >&6; } 7107 GREP="$ac_cv_path_GREP" 7108 7109 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 7111 $as_echo_n "checking for egrep... " >&6; } 7112 if ${ac_cv_path_EGREP+:} false; then : 7113 $as_echo_n "(cached) " >&6 7114 else 7115 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 7116 then ac_cv_path_EGREP="$GREP -E" 7117 else 7118 if test -z "$EGREP"; then 7119 ac_path_EGREP_found=false 7120 # Loop through the user's path and test for each of PROGNAME-LIST 7121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7122 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7123 do 7124 IFS=$as_save_IFS 7125 test -z "$as_dir" && as_dir=. 7126 for ac_prog in egrep; do 7127 for ac_exec_ext in '' $ac_executable_extensions; do 7128 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 7129 as_fn_executable_p "$ac_path_EGREP" || continue 7130 # Check for GNU ac_path_EGREP and select it if it is found. 7131 # Check for GNU $ac_path_EGREP 7132 case `"$ac_path_EGREP" --version 2>&1` in 7133 *GNU*) 7134 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 7135 *) 7136 ac_count=0 7137 $as_echo_n 0123456789 >"conftest.in" 7138 while : 7139 do 7140 cat "conftest.in" "conftest.in" >"conftest.tmp" 7141 mv "conftest.tmp" "conftest.in" 7142 cp "conftest.in" "conftest.nl" 7143 $as_echo 'EGREP' >> "conftest.nl" 7144 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7145 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7146 as_fn_arith $ac_count + 1 && ac_count=$as_val 7147 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 7148 # Best one so far, save it but keep looking for a better one 7149 ac_cv_path_EGREP="$ac_path_EGREP" 7150 ac_path_EGREP_max=$ac_count 7151 fi 7152 # 10*(2^10) chars as input seems more than enough 7153 test $ac_count -gt 10 && break 7154 done 7155 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7156 esac 7157 7158 $ac_path_EGREP_found && break 3 7159 done 7160 done 7161 done 7162 IFS=$as_save_IFS 7163 if test -z "$ac_cv_path_EGREP"; then 7164 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7165 fi 7166 else 7167 ac_cv_path_EGREP=$EGREP 7168 fi 7169 7170 fi 7171 fi 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 7173 $as_echo "$ac_cv_path_EGREP" >&6; } 7174 EGREP="$ac_cv_path_EGREP" 7175 7176 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7178 $as_echo_n "checking for ANSI C header files... " >&6; } 7179 if ${ac_cv_header_stdc+:} false; then : 7180 $as_echo_n "(cached) " >&6 7181 else 7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7183 /* end confdefs.h. */ 7184 #include <stdlib.h> 7185 #include <stdarg.h> 7186 #include <string.h> 7187 #include <float.h> 7188 7189 int 7190 main () 7191 { 7192 7193 ; 7194 return 0; 7195 } 7196 _ACEOF 7197 if ac_fn_c_try_compile "$LINENO"; then : 7198 ac_cv_header_stdc=yes 7199 else 7200 ac_cv_header_stdc=no 7201 fi 7202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7203 7204 if test $ac_cv_header_stdc = yes; then 7205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7207 /* end confdefs.h. */ 7208 #include <string.h> 7209 7210 _ACEOF 7211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7212 $EGREP "memchr" >/dev/null 2>&1; then : 7213 7214 else 7215 ac_cv_header_stdc=no 7216 fi 7217 rm -f conftest* 7218 7219 fi 7220 7221 if test $ac_cv_header_stdc = yes; then 7222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7224 /* end confdefs.h. */ 7225 #include <stdlib.h> 7226 7227 _ACEOF 7228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7229 $EGREP "free" >/dev/null 2>&1; then : 7230 7231 else 7232 ac_cv_header_stdc=no 7233 fi 7234 rm -f conftest* 7235 7236 fi 7237 7238 if test $ac_cv_header_stdc = yes; then 7239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7240 if test "$cross_compiling" = yes; then : 7241 : 7242 else 7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7244 /* end confdefs.h. */ 7245 #include <ctype.h> 7246 #include <stdlib.h> 7247 #if ((' ' & 0x0FF) == 0x020) 7248 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7249 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7250 #else 7251 # define ISLOWER(c) \ 7252 (('a' <= (c) && (c) <= 'i') \ 7253 || ('j' <= (c) && (c) <= 'r') \ 7254 || ('s' <= (c) && (c) <= 'z')) 7255 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7256 #endif 7257 7258 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7259 int 7260 main () 7261 { 7262 int i; 7263 for (i = 0; i < 256; i++) 7264 if (XOR (islower (i), ISLOWER (i)) 7265 || toupper (i) != TOUPPER (i)) 7266 return 2; 7267 return 0; 7268 } 7269 _ACEOF 7270 if ac_fn_c_try_run "$LINENO"; then : 7271 7272 else 7273 ac_cv_header_stdc=no 7274 fi 7275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7276 conftest.$ac_objext conftest.beam conftest.$ac_ext 7277 fi 7278 7279 fi 7280 fi 7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7282 $as_echo "$ac_cv_header_stdc" >&6; } 7283 if test $ac_cv_header_stdc = yes; then 7284 7285 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 7286 7287 fi 7288 7289 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 7290 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7291 inttypes.h stdint.h unistd.h 7292 do : 7293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7294 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7295 " 7296 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7297 cat >>confdefs.h <<_ACEOF 7298 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7299 _ACEOF 7300 7301 fi 7302 7303 done 7304 7305 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 7307 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 7308 if ${ac_cv_c_bigendian+:} false; then : 7309 $as_echo_n "(cached) " >&6 7310 else 7311 ac_cv_c_bigendian=unknown 7312 # See if we're dealing with a universal compiler. 7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7314 /* end confdefs.h. */ 7315 #ifndef __APPLE_CC__ 7316 not a universal capable compiler 7317 #endif 7318 typedef int dummy; 7319 7320 _ACEOF 7321 if ac_fn_c_try_compile "$LINENO"; then : 7322 7323 # Check for potential -arch flags. It is not universal unless 7324 # there are at least two -arch flags with different values. 7325 ac_arch= 7326 ac_prev= 7327 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 7328 if test -n "$ac_prev"; then 7329 case $ac_word in 7330 i?86 | x86_64 | ppc | ppc64) 7331 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 7332 ac_arch=$ac_word 7333 else 7334 ac_cv_c_bigendian=universal 7335 break 7336 fi 7337 ;; 7338 esac 7339 ac_prev= 7340 elif test "x$ac_word" = "x-arch"; then 7341 ac_prev=arch 7342 fi 7343 done 7344 fi 7345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7346 if test $ac_cv_c_bigendian = unknown; then 7347 # See if sys/param.h defines the BYTE_ORDER macro. 7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7349 /* end confdefs.h. */ 7350 #include <sys/types.h> 7351 #include <sys/param.h> 7352 7353 int 7354 main () 7355 { 7356 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 7357 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 7358 && LITTLE_ENDIAN) 7359 bogus endian macros 7360 #endif 7361 7362 ; 7363 return 0; 7364 } 7365 _ACEOF 7366 if ac_fn_c_try_compile "$LINENO"; then : 7367 # It does; now see whether it defined to BIG_ENDIAN or not. 7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7369 /* end confdefs.h. */ 7370 #include <sys/types.h> 7371 #include <sys/param.h> 7372 7373 int 7374 main () 7375 { 7376 #if BYTE_ORDER != BIG_ENDIAN 7377 not big endian 7378 #endif 7379 7380 ; 7381 return 0; 7382 } 7383 _ACEOF 7384 if ac_fn_c_try_compile "$LINENO"; then : 7385 ac_cv_c_bigendian=yes 7386 else 7387 ac_cv_c_bigendian=no 7388 fi 7389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7390 fi 7391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7392 fi 7393 if test $ac_cv_c_bigendian = unknown; then 7394 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7396 /* end confdefs.h. */ 7397 #include <limits.h> 7398 7399 int 7400 main () 7401 { 7402 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 7403 bogus endian macros 7404 #endif 7405 7406 ; 7407 return 0; 7408 } 7409 _ACEOF 7410 if ac_fn_c_try_compile "$LINENO"; then : 7411 # It does; now see whether it defined to _BIG_ENDIAN or not. 7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7413 /* end confdefs.h. */ 7414 #include <limits.h> 7415 7416 int 7417 main () 7418 { 7419 #ifndef _BIG_ENDIAN 7420 not big endian 7421 #endif 7422 7423 ; 7424 return 0; 7425 } 7426 _ACEOF 7427 if ac_fn_c_try_compile "$LINENO"; then : 7428 ac_cv_c_bigendian=yes 7429 else 7430 ac_cv_c_bigendian=no 7431 fi 7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7433 fi 7434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7435 fi 7436 if test $ac_cv_c_bigendian = unknown; then 7437 # Compile a test program. 7438 if test "$cross_compiling" = yes; then : 7439 # Try to guess by grepping values from an object file. 7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7441 /* end confdefs.h. */ 7442 short int ascii_mm[] = 7443 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 7444 short int ascii_ii[] = 7445 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 7446 int use_ascii (int i) { 7447 return ascii_mm[i] + ascii_ii[i]; 7448 } 7449 short int ebcdic_ii[] = 7450 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 7451 short int ebcdic_mm[] = 7452 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 7453 int use_ebcdic (int i) { 7454 return ebcdic_mm[i] + ebcdic_ii[i]; 7455 } 7456 extern int foo; 7457 7458 int 7459 main () 7460 { 7461 return use_ascii (foo) == use_ebcdic (foo); 7462 ; 7463 return 0; 7464 } 7465 _ACEOF 7466 if ac_fn_c_try_compile "$LINENO"; then : 7467 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 7468 ac_cv_c_bigendian=yes 7469 fi 7470 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 7471 if test "$ac_cv_c_bigendian" = unknown; then 7472 ac_cv_c_bigendian=no 7473 else 7474 # finding both strings is unlikely to happen, but who knows? 7475 ac_cv_c_bigendian=unknown 7476 fi 7477 fi 7478 fi 7479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7480 else 7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7482 /* end confdefs.h. */ 7483 $ac_includes_default 7484 int 7485 main () 7486 { 7487 7488 /* Are we little or big endian? From Harbison&Steele. */ 7489 union 7490 { 7491 long int l; 7492 char c[sizeof (long int)]; 7493 } u; 7494 u.l = 1; 7495 return u.c[sizeof (long int) - 1] == 1; 7496 7497 ; 7498 return 0; 7499 } 7500 _ACEOF 7501 if ac_fn_c_try_run "$LINENO"; then : 7502 ac_cv_c_bigendian=no 7503 else 7504 ac_cv_c_bigendian=yes 7505 fi 7506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7507 conftest.$ac_objext conftest.beam conftest.$ac_ext 7508 fi 7509 7510 fi 7511 fi 7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 7513 $as_echo "$ac_cv_c_bigendian" >&6; } 7514 case $ac_cv_c_bigendian in #( 7515 yes) 7516 ac_cv_big_endian=1;; #( 7517 no) 7518 ac_cv_big_endian=0 ;; #( 7519 universal) 7520 7521 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 7522 7523 ;; #( 7524 *) 7525 as_fn_error $? "unknown endianness 7526 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 7527 esac 7528 7529 if test "x${ac_cv_big_endian}" = "x1" ; then 7530 7531 cat >>confdefs.h <<_ACEOF 7532 #define JEMALLOC_BIG_ENDIAN 7533 _ACEOF 7534 7535 fi 7536 7537 if test "x${je_cv_msvc}" = "xyes" -a "x${ac_cv_header_inttypes_h}" = "xno"; then 7538 T_APPEND_V=-I${srcdir}/include/msvc_compat/C99 7539 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 7540 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}" 7541 else 7542 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}" 7543 fi 7544 7545 7546 fi 7547 7548 if test "x${je_cv_msvc}" = "xyes" ; then 7549 LG_SIZEOF_PTR=LG_SIZEOF_PTR_WIN 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&5 7551 $as_echo "Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&6; } 7552 else 7553 # The cast to long int works around a bug in the HP C Compiler 7554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7556 # This bug is HP SR number 8606223364. 7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 7558 $as_echo_n "checking size of void *... " >&6; } 7559 if ${ac_cv_sizeof_void_p+:} false; then : 7560 $as_echo_n "(cached) " >&6 7561 else 7562 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 7563 7564 else 7565 if test "$ac_cv_type_void_p" = yes; then 7566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7568 as_fn_error 77 "cannot compute sizeof (void *) 7569 See \`config.log' for more details" "$LINENO" 5; } 7570 else 7571 ac_cv_sizeof_void_p=0 7572 fi 7573 fi 7574 7575 fi 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 7577 $as_echo "$ac_cv_sizeof_void_p" >&6; } 7578 7579 7580 7581 cat >>confdefs.h <<_ACEOF 7582 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p 7583 _ACEOF 7584 7585 7586 if test "x${ac_cv_sizeof_void_p}" = "x8" ; then 7587 LG_SIZEOF_PTR=3 7588 elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then 7589 LG_SIZEOF_PTR=2 7590 else 7591 as_fn_error $? "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5 7592 fi 7593 fi 7594 7595 cat >>confdefs.h <<_ACEOF 7596 #define LG_SIZEOF_PTR $LG_SIZEOF_PTR 7597 _ACEOF 7598 7599 7600 # The cast to long int works around a bug in the HP C Compiler 7601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7603 # This bug is HP SR number 8606223364. 7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 7605 $as_echo_n "checking size of int... " >&6; } 7606 if ${ac_cv_sizeof_int+:} false; then : 7607 $as_echo_n "(cached) " >&6 7608 else 7609 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 7610 7611 else 7612 if test "$ac_cv_type_int" = yes; then 7613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7615 as_fn_error 77 "cannot compute sizeof (int) 7616 See \`config.log' for more details" "$LINENO" 5; } 7617 else 7618 ac_cv_sizeof_int=0 7619 fi 7620 fi 7621 7622 fi 7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 7624 $as_echo "$ac_cv_sizeof_int" >&6; } 7625 7626 7627 7628 cat >>confdefs.h <<_ACEOF 7629 #define SIZEOF_INT $ac_cv_sizeof_int 7630 _ACEOF 7631 7632 7633 if test "x${ac_cv_sizeof_int}" = "x8" ; then 7634 LG_SIZEOF_INT=3 7635 elif test "x${ac_cv_sizeof_int}" = "x4" ; then 7636 LG_SIZEOF_INT=2 7637 else 7638 as_fn_error $? "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5 7639 fi 7640 7641 cat >>confdefs.h <<_ACEOF 7642 #define LG_SIZEOF_INT $LG_SIZEOF_INT 7643 _ACEOF 7644 7645 7646 # The cast to long int works around a bug in the HP C Compiler 7647 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7648 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7649 # This bug is HP SR number 8606223364. 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 7651 $as_echo_n "checking size of long... " >&6; } 7652 if ${ac_cv_sizeof_long+:} false; then : 7653 $as_echo_n "(cached) " >&6 7654 else 7655 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 7656 7657 else 7658 if test "$ac_cv_type_long" = yes; then 7659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7661 as_fn_error 77 "cannot compute sizeof (long) 7662 See \`config.log' for more details" "$LINENO" 5; } 7663 else 7664 ac_cv_sizeof_long=0 7665 fi 7666 fi 7667 7668 fi 7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 7670 $as_echo "$ac_cv_sizeof_long" >&6; } 7671 7672 7673 7674 cat >>confdefs.h <<_ACEOF 7675 #define SIZEOF_LONG $ac_cv_sizeof_long 7676 _ACEOF 7677 7678 7679 if test "x${ac_cv_sizeof_long}" = "x8" ; then 7680 LG_SIZEOF_LONG=3 7681 elif test "x${ac_cv_sizeof_long}" = "x4" ; then 7682 LG_SIZEOF_LONG=2 7683 else 7684 as_fn_error $? "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5 7685 fi 7686 7687 cat >>confdefs.h <<_ACEOF 7688 #define LG_SIZEOF_LONG $LG_SIZEOF_LONG 7689 _ACEOF 7690 7691 7692 # The cast to long int works around a bug in the HP C Compiler 7693 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7694 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7695 # This bug is HP SR number 8606223364. 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 7697 $as_echo_n "checking size of long long... " >&6; } 7698 if ${ac_cv_sizeof_long_long+:} false; then : 7699 $as_echo_n "(cached) " >&6 7700 else 7701 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 7702 7703 else 7704 if test "$ac_cv_type_long_long" = yes; then 7705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7707 as_fn_error 77 "cannot compute sizeof (long long) 7708 See \`config.log' for more details" "$LINENO" 5; } 7709 else 7710 ac_cv_sizeof_long_long=0 7711 fi 7712 fi 7713 7714 fi 7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 7716 $as_echo "$ac_cv_sizeof_long_long" >&6; } 7717 7718 7719 7720 cat >>confdefs.h <<_ACEOF 7721 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 7722 _ACEOF 7723 7724 7725 if test "x${ac_cv_sizeof_long_long}" = "x8" ; then 7726 LG_SIZEOF_LONG_LONG=3 7727 elif test "x${ac_cv_sizeof_long_long}" = "x4" ; then 7728 LG_SIZEOF_LONG_LONG=2 7729 else 7730 as_fn_error $? "Unsupported long long size: ${ac_cv_sizeof_long_long}" "$LINENO" 5 7731 fi 7732 7733 cat >>confdefs.h <<_ACEOF 7734 #define LG_SIZEOF_LONG_LONG $LG_SIZEOF_LONG_LONG 7735 _ACEOF 7736 7737 7738 # The cast to long int works around a bug in the HP C Compiler 7739 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7740 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7741 # This bug is HP SR number 8606223364. 7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5 7743 $as_echo_n "checking size of intmax_t... " >&6; } 7744 if ${ac_cv_sizeof_intmax_t+:} false; then : 7745 $as_echo_n "(cached) " >&6 7746 else 7747 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then : 7748 7749 else 7750 if test "$ac_cv_type_intmax_t" = yes; then 7751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7753 as_fn_error 77 "cannot compute sizeof (intmax_t) 7754 See \`config.log' for more details" "$LINENO" 5; } 7755 else 7756 ac_cv_sizeof_intmax_t=0 7757 fi 7758 fi 7759 7760 fi 7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5 7762 $as_echo "$ac_cv_sizeof_intmax_t" >&6; } 7763 7764 7765 7766 cat >>confdefs.h <<_ACEOF 7767 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t 7768 _ACEOF 7769 7770 7771 if test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then 7772 LG_SIZEOF_INTMAX_T=4 7773 elif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then 7774 LG_SIZEOF_INTMAX_T=3 7775 elif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then 7776 LG_SIZEOF_INTMAX_T=2 7777 else 7778 as_fn_error $? "Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5 7779 fi 7780 7781 cat >>confdefs.h <<_ACEOF 7782 #define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T 7783 _ACEOF 7784 7785 7786 # Make sure we can run config.sub. 7787 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 7788 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 7789 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 7791 $as_echo_n "checking build system type... " >&6; } 7792 if ${ac_cv_build+:} false; then : 7793 $as_echo_n "(cached) " >&6 7794 else 7795 ac_build_alias=$build_alias 7796 test "x$ac_build_alias" = x && 7797 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 7798 test "x$ac_build_alias" = x && 7799 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 7800 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 7801 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 7802 7803 fi 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 7805 $as_echo "$ac_cv_build" >&6; } 7806 case $ac_cv_build in 7807 *-*-*) ;; 7808 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 7809 esac 7810 build=$ac_cv_build 7811 ac_save_IFS=$IFS; IFS='-' 7812 set x $ac_cv_build 7813 shift 7814 build_cpu=$1 7815 build_vendor=$2 7816 shift; shift 7817 # Remember, the first character of IFS is used to create $*, 7818 # except with old shells: 7819 build_os=$* 7820 IFS=$ac_save_IFS 7821 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 7822 7823 7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 7825 $as_echo_n "checking host system type... " >&6; } 7826 if ${ac_cv_host+:} false; then : 7827 $as_echo_n "(cached) " >&6 7828 else 7829 if test "x$host_alias" = x; then 7830 ac_cv_host=$ac_cv_build 7831 else 7832 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 7833 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 7834 fi 7835 7836 fi 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 7838 $as_echo "$ac_cv_host" >&6; } 7839 case $ac_cv_host in 7840 *-*-*) ;; 7841 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 7842 esac 7843 host=$ac_cv_host 7844 ac_save_IFS=$IFS; IFS='-' 7845 set x $ac_cv_host 7846 shift 7847 host_cpu=$1 7848 host_vendor=$2 7849 shift; shift 7850 # Remember, the first character of IFS is used to create $*, 7851 # except with old shells: 7852 host_os=$* 7853 IFS=$ac_save_IFS 7854 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 7855 7856 7857 CPU_SPINWAIT="" 7858 case "${host_cpu}" in 7859 i686|x86_64) 7860 HAVE_CPU_SPINWAIT=1 7861 if test "x${je_cv_msvc}" = "xyes" ; then 7862 if ${je_cv_pause_msvc+:} false; then : 7863 $as_echo_n "(cached) " >&6 7864 else 7865 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction MSVC is compilable" >&5 7867 $as_echo_n "checking whether pause instruction MSVC is compilable... " >&6; } 7868 if ${je_cv_pause_msvc+:} false; then : 7869 $as_echo_n "(cached) " >&6 7870 else 7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7872 /* end confdefs.h. */ 7873 7874 int 7875 main () 7876 { 7877 _mm_pause(); return 0; 7878 ; 7879 return 0; 7880 } 7881 _ACEOF 7882 if ac_fn_c_try_link "$LINENO"; then : 7883 je_cv_pause_msvc=yes 7884 else 7885 je_cv_pause_msvc=no 7886 fi 7887 rm -f core conftest.err conftest.$ac_objext \ 7888 conftest$ac_exeext conftest.$ac_ext 7889 fi 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause_msvc" >&5 7891 $as_echo "$je_cv_pause_msvc" >&6; } 7892 7893 fi 7894 7895 if test "x${je_cv_pause_msvc}" = "xyes" ; then 7896 CPU_SPINWAIT='_mm_pause()' 7897 fi 7898 else 7899 if ${je_cv_pause+:} false; then : 7900 $as_echo_n "(cached) " >&6 7901 else 7902 7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction is compilable" >&5 7904 $as_echo_n "checking whether pause instruction is compilable... " >&6; } 7905 if ${je_cv_pause+:} false; then : 7906 $as_echo_n "(cached) " >&6 7907 else 7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7909 /* end confdefs.h. */ 7910 7911 int 7912 main () 7913 { 7914 __asm__ volatile("pause"); return 0; 7915 ; 7916 return 0; 7917 } 7918 _ACEOF 7919 if ac_fn_c_try_link "$LINENO"; then : 7920 je_cv_pause=yes 7921 else 7922 je_cv_pause=no 7923 fi 7924 rm -f core conftest.err conftest.$ac_objext \ 7925 conftest$ac_exeext conftest.$ac_ext 7926 fi 7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause" >&5 7928 $as_echo "$je_cv_pause" >&6; } 7929 7930 fi 7931 7932 if test "x${je_cv_pause}" = "xyes" ; then 7933 CPU_SPINWAIT='__asm__ volatile("pause")' 7934 fi 7935 fi 7936 ;; 7937 aarch64|arm*) 7938 HAVE_CPU_SPINWAIT=1 7939 if ${je_cv_isb+:} false; then : 7940 $as_echo_n "(cached) " >&6 7941 else 7942 7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isb instruction is compilable" >&5 7944 $as_echo_n "checking whether isb instruction is compilable... " >&6; } 7945 if ${je_cv_isb+:} false; then : 7946 $as_echo_n "(cached) " >&6 7947 else 7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7949 /* end confdefs.h. */ 7950 7951 int 7952 main () 7953 { 7954 __asm__ volatile("isb"); return 0; 7955 ; 7956 return 0; 7957 } 7958 _ACEOF 7959 if ac_fn_c_try_link "$LINENO"; then : 7960 je_cv_isb=yes 7961 else 7962 je_cv_isb=no 7963 fi 7964 rm -f core conftest.err conftest.$ac_objext \ 7965 conftest$ac_exeext conftest.$ac_ext 7966 fi 7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_isb" >&5 7968 $as_echo "$je_cv_isb" >&6; } 7969 7970 fi 7971 7972 if test "x${je_cv_isb}" = "xyes" ; then 7973 CPU_SPINWAIT='__asm__ volatile("isb")' 7974 fi 7975 ;; 7976 *) 7977 HAVE_CPU_SPINWAIT=0 7978 ;; 7979 esac 7980 7981 cat >>confdefs.h <<_ACEOF 7982 #define HAVE_CPU_SPINWAIT $HAVE_CPU_SPINWAIT 7983 _ACEOF 7984 7985 7986 cat >>confdefs.h <<_ACEOF 7987 #define CPU_SPINWAIT $CPU_SPINWAIT 7988 _ACEOF 7989 7990 7991 7992 # Check whether --with-lg_vaddr was given. 7993 if test "${with_lg_vaddr+set}" = set; then : 7994 withval=$with_lg_vaddr; LG_VADDR="$with_lg_vaddr" 7995 else 7996 LG_VADDR="detect" 7997 fi 7998 7999 8000 case "${host_cpu}" in 8001 aarch64) 8002 if test "x$LG_VADDR" = "xdetect"; then 8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5 8004 $as_echo_n "checking number of significant virtual address bits... " >&6; } 8005 if test "x${LG_SIZEOF_PTR}" = "x2" ; then 8006 #aarch64 ILP32 8007 LG_VADDR=32 8008 else 8009 #aarch64 LP64 8010 LG_VADDR=48 8011 fi 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5 8013 $as_echo "$LG_VADDR" >&6; } 8014 fi 8015 ;; 8016 x86_64) 8017 if test "x$LG_VADDR" = "xdetect"; then 8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5 8019 $as_echo_n "checking number of significant virtual address bits... " >&6; } 8020 if ${je_cv_lg_vaddr+:} false; then : 8021 $as_echo_n "(cached) " >&6 8022 else 8023 if test "$cross_compiling" = yes; then : 8024 je_cv_lg_vaddr=57 8025 else 8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8027 /* end confdefs.h. */ 8028 8029 #include <stdio.h> 8030 #ifdef _WIN32 8031 #include <limits.h> 8032 #include <intrin.h> 8033 typedef unsigned __int32 uint32_t; 8034 #else 8035 #include <stdint.h> 8036 #endif 8037 8038 int 8039 main () 8040 { 8041 8042 uint32_t r[4]; 8043 uint32_t eax_in = 0x80000008U; 8044 #ifdef _WIN32 8045 __cpuid((int *)r, (int)eax_in); 8046 #else 8047 asm volatile ("cpuid" 8048 : "=a" (r[0]), "=b" (r[1]), "=c" (r[2]), "=d" (r[3]) 8049 : "a" (eax_in), "c" (0) 8050 ); 8051 #endif 8052 uint32_t eax_out = r[0]; 8053 uint32_t vaddr = ((eax_out & 0x0000ff00U) >> 8); 8054 FILE *f = fopen("conftest.out", "w"); 8055 if (f == NULL) { 8056 return 1; 8057 } 8058 if (vaddr > (sizeof(void *) << 3)) { 8059 vaddr = sizeof(void *) << 3; 8060 } 8061 fprintf(f, "%u", vaddr); 8062 fclose(f); 8063 return 0; 8064 8065 ; 8066 return 0; 8067 } 8068 _ACEOF 8069 if ac_fn_c_try_run "$LINENO"; then : 8070 je_cv_lg_vaddr=`cat conftest.out` 8071 else 8072 je_cv_lg_vaddr=error 8073 fi 8074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8075 conftest.$ac_objext conftest.beam conftest.$ac_ext 8076 fi 8077 8078 fi 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_vaddr" >&5 8080 $as_echo "$je_cv_lg_vaddr" >&6; } 8081 if test "x${je_cv_lg_vaddr}" != "x" ; then 8082 LG_VADDR="${je_cv_lg_vaddr}" 8083 fi 8084 if test "x${LG_VADDR}" != "xerror" ; then 8085 8086 cat >>confdefs.h <<_ACEOF 8087 #define LG_VADDR $LG_VADDR 8088 _ACEOF 8089 8090 else 8091 as_fn_error $? "cannot determine number of significant virtual address bits" "$LINENO" 5 8092 fi 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking rdtscp support" >&5 8094 $as_echo_n "checking rdtscp support... " >&6; } 8095 if ${je_cv_rdtscp+:} false; then : 8096 $as_echo_n "(cached) " >&6 8097 else 8098 if test "$cross_compiling" = yes; then : 8099 je_cv_rdtscp=no 8100 else 8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8102 /* end confdefs.h. */ 8103 8104 #include <stdint.h> 8105 8106 int 8107 main () 8108 { 8109 8110 unsigned int dx; 8111 asm volatile("rdtscp" : "=d"(dx) ::); 8112 return 0; 8113 8114 ; 8115 return 0; 8116 } 8117 _ACEOF 8118 if ac_fn_c_try_run "$LINENO"; then : 8119 je_cv_rdtscp=yes 8120 else 8121 je_cv_rdtscp=no 8122 fi 8123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8124 conftest.$ac_objext conftest.beam conftest.$ac_ext 8125 fi 8126 8127 fi 8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_rdtscp" >&5 8129 $as_echo "$je_cv_rdtscp" >&6; } 8130 if test "x${je_cv_rdtscp}" = "xyes"; then 8131 8132 $as_echo "#define JEMALLOC_HAVE_RDTSCP " >>confdefs.h 8133 8134 fi 8135 fi 8136 ;; 8137 *) 8138 if test "x$LG_VADDR" = "xdetect"; then 8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5 8140 $as_echo_n "checking number of significant virtual address bits... " >&6; } 8141 if test "x${LG_SIZEOF_PTR}" = "x3" ; then 8142 LG_VADDR=64 8143 elif test "x${LG_SIZEOF_PTR}" = "x2" ; then 8144 LG_VADDR=32 8145 elif test "x${LG_SIZEOF_PTR}" = "xLG_SIZEOF_PTR_WIN" ; then 8146 LG_VADDR="(1U << (LG_SIZEOF_PTR_WIN+3))" 8147 else 8148 as_fn_error $? "Unsupported lg(pointer size): ${LG_SIZEOF_PTR}" "$LINENO" 5 8149 fi 8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5 8151 $as_echo "$LG_VADDR" >&6; } 8152 fi 8153 ;; 8154 esac 8155 8156 cat >>confdefs.h <<_ACEOF 8157 #define LG_VADDR $LG_VADDR 8158 _ACEOF 8159 8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking asm volatile support" >&5 8161 $as_echo_n "checking asm volatile support... " >&6; } 8162 if ${je_cv_asm_volatile+:} false; then : 8163 $as_echo_n "(cached) " >&6 8164 else 8165 if test "$cross_compiling" = yes; then : 8166 je_cv_asm_volatile=no 8167 else 8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8169 /* end confdefs.h. */ 8170 8171 8172 int 8173 main () 8174 { 8175 8176 void* ptr; 8177 asm volatile("" : "+r"(ptr)); 8178 return 0; 8179 8180 ; 8181 return 0; 8182 } 8183 _ACEOF 8184 if ac_fn_c_try_run "$LINENO"; then : 8185 je_cv_asm_volatile=yes 8186 else 8187 je_cv_asm_volatile=no 8188 fi 8189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8190 conftest.$ac_objext conftest.beam conftest.$ac_ext 8191 fi 8192 8193 fi 8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_asm_volatile" >&5 8195 $as_echo "$je_cv_asm_volatile" >&6; } 8196 if test "x${je_cv_asm_volatile}" = "xyes"; then 8197 8198 $as_echo "#define JEMALLOC_HAVE_ASM_VOLATILE " >>confdefs.h 8199 8200 fi 8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __int128 support" >&5 8202 $as_echo_n "checking __int128 support... " >&6; } 8203 if ${je_cv_int128+:} false; then : 8204 $as_echo_n "(cached) " >&6 8205 else 8206 if test "$cross_compiling" = yes; then : 8207 je_cv_int128=no 8208 else 8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8210 /* end confdefs.h. */ 8211 8212 8213 int 8214 main () 8215 { 8216 8217 __int128 temp = 0; 8218 return temp; 8219 8220 ; 8221 return 0; 8222 } 8223 _ACEOF 8224 if ac_fn_c_try_run "$LINENO"; then : 8225 je_cv_int128=yes 8226 else 8227 je_cv_int128=no 8228 fi 8229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8230 conftest.$ac_objext conftest.beam conftest.$ac_ext 8231 fi 8232 8233 fi 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_int128" >&5 8235 $as_echo "$je_cv_int128" >&6; } 8236 if test "x${je_cv_int128}" = "xyes"; then 8237 8238 $as_echo "#define JEMALLOC_HAVE_INT128 " >>confdefs.h 8239 8240 fi 8241 8242 LD_PRELOAD_VAR="LD_PRELOAD" 8243 so="so" 8244 importlib="${so}" 8245 o="$ac_objext" 8246 a="a" 8247 exe="$ac_exeext" 8248 libprefix="lib" 8249 link_whole_archive="0" 8250 DSO_LDFLAGS='-shared -Wl,-soname,$(@F)' 8251 RPATH='-Wl,-rpath,$(1)' 8252 SOREV="${so}.${rev}" 8253 PIC_CFLAGS='-fPIC -DPIC' 8254 CTARGET='-o $@' 8255 LDTARGET='-o $@' 8256 TEST_LD_MODE= 8257 EXTRA_LDFLAGS= 8258 ARFLAGS='crus' 8259 AROUT=' $@' 8260 CC_MM=1 8261 8262 if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then 8263 TEST_LD_MODE='-dynamic' 8264 fi 8265 8266 if test "x${je_cv_cray}" = "xyes" ; then 8267 CC_MM= 8268 fi 8269 8270 8271 8272 8273 if test -n "$ac_tool_prefix"; then 8274 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 8275 set dummy ${ac_tool_prefix}ar; ac_word=$2 8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8277 $as_echo_n "checking for $ac_word... " >&6; } 8278 if ${ac_cv_prog_AR+:} false; then : 8279 $as_echo_n "(cached) " >&6 8280 else 8281 if test -n "$AR"; then 8282 ac_cv_prog_AR="$AR" # Let the user override the test. 8283 else 8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8285 for as_dir in $PATH 8286 do 8287 IFS=$as_save_IFS 8288 test -z "$as_dir" && as_dir=. 8289 for ac_exec_ext in '' $ac_executable_extensions; do 8290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8291 ac_cv_prog_AR="${ac_tool_prefix}ar" 8292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8293 break 2 8294 fi 8295 done 8296 done 8297 IFS=$as_save_IFS 8298 8299 fi 8300 fi 8301 AR=$ac_cv_prog_AR 8302 if test -n "$AR"; then 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8304 $as_echo "$AR" >&6; } 8305 else 8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8307 $as_echo "no" >&6; } 8308 fi 8309 8310 8311 fi 8312 if test -z "$ac_cv_prog_AR"; then 8313 ac_ct_AR=$AR 8314 # Extract the first word of "ar", so it can be a program name with args. 8315 set dummy ar; ac_word=$2 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8317 $as_echo_n "checking for $ac_word... " >&6; } 8318 if ${ac_cv_prog_ac_ct_AR+:} false; then : 8319 $as_echo_n "(cached) " >&6 8320 else 8321 if test -n "$ac_ct_AR"; then 8322 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8323 else 8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8325 for as_dir in $PATH 8326 do 8327 IFS=$as_save_IFS 8328 test -z "$as_dir" && as_dir=. 8329 for ac_exec_ext in '' $ac_executable_extensions; do 8330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8331 ac_cv_prog_ac_ct_AR="ar" 8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8333 break 2 8334 fi 8335 done 8336 done 8337 IFS=$as_save_IFS 8338 8339 fi 8340 fi 8341 ac_ct_AR=$ac_cv_prog_ac_ct_AR 8342 if test -n "$ac_ct_AR"; then 8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8344 $as_echo "$ac_ct_AR" >&6; } 8345 else 8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8347 $as_echo "no" >&6; } 8348 fi 8349 8350 if test "x$ac_ct_AR" = x; then 8351 AR=":" 8352 else 8353 case $cross_compiling:$ac_tool_warned in 8354 yes:) 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8357 ac_tool_warned=yes ;; 8358 esac 8359 AR=$ac_ct_AR 8360 fi 8361 else 8362 AR="$ac_cv_prog_AR" 8363 fi 8364 8365 8366 8367 8368 8369 if test -n "$ac_tool_prefix"; then 8370 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. 8371 set dummy ${ac_tool_prefix}nm; ac_word=$2 8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8373 $as_echo_n "checking for $ac_word... " >&6; } 8374 if ${ac_cv_prog_NM+:} false; then : 8375 $as_echo_n "(cached) " >&6 8376 else 8377 if test -n "$NM"; then 8378 ac_cv_prog_NM="$NM" # Let the user override the test. 8379 else 8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8381 for as_dir in $PATH 8382 do 8383 IFS=$as_save_IFS 8384 test -z "$as_dir" && as_dir=. 8385 for ac_exec_ext in '' $ac_executable_extensions; do 8386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8387 ac_cv_prog_NM="${ac_tool_prefix}nm" 8388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8389 break 2 8390 fi 8391 done 8392 done 8393 IFS=$as_save_IFS 8394 8395 fi 8396 fi 8397 NM=$ac_cv_prog_NM 8398 if test -n "$NM"; then 8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 8400 $as_echo "$NM" >&6; } 8401 else 8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8403 $as_echo "no" >&6; } 8404 fi 8405 8406 8407 fi 8408 if test -z "$ac_cv_prog_NM"; then 8409 ac_ct_NM=$NM 8410 # Extract the first word of "nm", so it can be a program name with args. 8411 set dummy nm; ac_word=$2 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8413 $as_echo_n "checking for $ac_word... " >&6; } 8414 if ${ac_cv_prog_ac_ct_NM+:} false; then : 8415 $as_echo_n "(cached) " >&6 8416 else 8417 if test -n "$ac_ct_NM"; then 8418 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 8419 else 8420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8421 for as_dir in $PATH 8422 do 8423 IFS=$as_save_IFS 8424 test -z "$as_dir" && as_dir=. 8425 for ac_exec_ext in '' $ac_executable_extensions; do 8426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8427 ac_cv_prog_ac_ct_NM="nm" 8428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8429 break 2 8430 fi 8431 done 8432 done 8433 IFS=$as_save_IFS 8434 8435 fi 8436 fi 8437 ac_ct_NM=$ac_cv_prog_ac_ct_NM 8438 if test -n "$ac_ct_NM"; then 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 8440 $as_echo "$ac_ct_NM" >&6; } 8441 else 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8443 $as_echo "no" >&6; } 8444 fi 8445 8446 if test "x$ac_ct_NM" = x; then 8447 NM=":" 8448 else 8449 case $cross_compiling:$ac_tool_warned in 8450 yes:) 8451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8453 ac_tool_warned=yes ;; 8454 esac 8455 NM=$ac_ct_NM 8456 fi 8457 else 8458 NM="$ac_cv_prog_NM" 8459 fi 8460 8461 8462 for ac_prog in gawk mawk nawk awk 8463 do 8464 # Extract the first word of "$ac_prog", so it can be a program name with args. 8465 set dummy $ac_prog; ac_word=$2 8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8467 $as_echo_n "checking for $ac_word... " >&6; } 8468 if ${ac_cv_prog_AWK+:} false; then : 8469 $as_echo_n "(cached) " >&6 8470 else 8471 if test -n "$AWK"; then 8472 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8473 else 8474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8475 for as_dir in $PATH 8476 do 8477 IFS=$as_save_IFS 8478 test -z "$as_dir" && as_dir=. 8479 for ac_exec_ext in '' $ac_executable_extensions; do 8480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8481 ac_cv_prog_AWK="$ac_prog" 8482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8483 break 2 8484 fi 8485 done 8486 done 8487 IFS=$as_save_IFS 8488 8489 fi 8490 fi 8491 AWK=$ac_cv_prog_AWK 8492 if test -n "$AWK"; then 8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8494 $as_echo "$AWK" >&6; } 8495 else 8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8497 $as_echo "no" >&6; } 8498 fi 8499 8500 8501 test -n "$AWK" && break 8502 done 8503 8504 8505 8506 8507 # Check whether --with-version was given. 8508 if test "${with_version+set}" = set; then : 8509 withval=$with_version; 8510 echo "${with_version}" | grep '^[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}-[0-9]\{1,\}-g[0-9a-f]\{1,\}$' 2>&1 1>/dev/null 8511 if test $? -eq 0 ; then 8512 echo "$with_version" > "${objroot}VERSION" 8513 else 8514 echo "${with_version}" | grep '^VERSION$' 2>&1 1>/dev/null 8515 if test $? -ne 0 ; then 8516 as_fn_error $? "${with_version} does not match <major>.<minor>.<bugfix>-<nrev>-g<gid> or VERSION" "$LINENO" 5 8517 fi 8518 fi 8519 8520 else 8521 8522 if test "x`test ! \"${srcroot}\" && cd \"${srcroot}\"; git rev-parse --is-inside-work-tree 2>/dev/null`" = "xtrue" ; then 8523 for pattern in '[0-9].[0-9].[0-9]' '[0-9].[0-9].[0-9][0-9]' \ 8524 '[0-9].[0-9][0-9].[0-9]' '[0-9].[0-9][0-9].[0-9][0-9]' \ 8525 '[0-9][0-9].[0-9].[0-9]' '[0-9][0-9].[0-9].[0-9][0-9]' \ 8526 '[0-9][0-9].[0-9][0-9].[0-9]' \ 8527 '[0-9][0-9].[0-9][0-9].[0-9][0-9]'; do 8528 (test ! "${srcroot}" && cd "${srcroot}"; git describe --long --abbrev=40 --match="${pattern}") > "${objroot}VERSION.tmp" 2>/dev/null 8529 if test $? -eq 0 ; then 8530 mv "${objroot}VERSION.tmp" "${objroot}VERSION" 8531 break 8532 fi 8533 done 8534 fi 8535 rm -f "${objroot}VERSION.tmp" 8536 8537 fi 8538 8539 8540 if test ! -e "${objroot}VERSION" ; then 8541 if test ! -e "${srcroot}VERSION" ; then 8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Missing VERSION file, and unable to generate it; creating bogus VERSION" >&5 8543 $as_echo "Missing VERSION file, and unable to generate it; creating bogus VERSION" >&6; } 8544 echo "0.0.0-0-g000000missing_version_try_git_fetch_tags" > "${objroot}VERSION" 8545 else 8546 cp ${srcroot}VERSION ${objroot}VERSION 8547 fi 8548 fi 8549 jemalloc_version=`cat "${objroot}VERSION"` 8550 jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'` 8551 jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'` 8552 jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'` 8553 jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'` 8554 jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'` 8555 8556 8557 8558 8559 8560 8561 8562 default_retain="0" 8563 zero_realloc_default_free="0" 8564 maps_coalesce="1" 8565 DUMP_SYMS="${NM} -a" 8566 SYM_PREFIX="" 8567 case "${host}" in 8568 *-*-darwin* | *-*-ios*) 8569 abi="macho" 8570 RPATH="" 8571 LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES" 8572 so="dylib" 8573 importlib="${so}" 8574 force_tls="0" 8575 DSO_LDFLAGS='-shared -Wl,-install_name,$(LIBDIR)/$(@F)' 8576 SOREV="${rev}.${so}" 8577 sbrk_deprecated="1" 8578 SYM_PREFIX="_" 8579 if test "${LG_SIZEOF_PTR}" = "3"; then 8580 default_retain="1" 8581 fi 8582 ;; 8583 *-*-freebsd*) 8584 T_APPEND_V=-D_BSD_SOURCE 8585 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 8586 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}" 8587 else 8588 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}" 8589 fi 8590 8591 8592 abi="elf" 8593 8594 $as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT " >>confdefs.h 8595 8596 force_lazy_lock="1" 8597 ;; 8598 *-*-dragonfly*) 8599 abi="elf" 8600 ;; 8601 *-*-openbsd*) 8602 abi="elf" 8603 force_tls="0" 8604 ;; 8605 *-*-bitrig*) 8606 abi="elf" 8607 ;; 8608 *-*-linux-android*) 8609 T_APPEND_V=-D_GNU_SOURCE 8610 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 8611 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}" 8612 else 8613 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}" 8614 fi 8615 8616 8617 abi="elf" 8618 glibc="0" 8619 8620 $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS " >>confdefs.h 8621 8622 8623 $as_echo "#define JEMALLOC_HAS_ALLOCA_H " >>confdefs.h 8624 8625 8626 $as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY " >>confdefs.h 8627 8628 8629 $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h 8630 8631 8632 $as_echo "#define JEMALLOC_C11_ATOMICS " >>confdefs.h 8633 8634 force_tls="0" 8635 if test "${LG_SIZEOF_PTR}" = "3"; then 8636 default_retain="1" 8637 fi 8638 zero_realloc_default_free="1" 8639 ;; 8640 *-*-linux-musl*) 8641 T_APPEND_V=-D_GNU_SOURCE 8642 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 8643 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}" 8644 else 8645 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}" 8646 fi 8647 8648 8649 abi="elf" 8650 8651 $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS " >>confdefs.h 8652 8653 8654 $as_echo "#define JEMALLOC_HAS_ALLOCA_H " >>confdefs.h 8655 8656 8657 $as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY " >>confdefs.h 8658 8659 8660 $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h 8661 8662 if test "${LG_SIZEOF_PTR}" = "3"; then 8663 default_retain="1" 8664 fi 8665 zero_realloc_default_free="1" 8666 ;; 8667 *-*-linux*) 8668 T_APPEND_V=-D_GNU_SOURCE 8669 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 8670 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}" 8671 else 8672 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}" 8673 fi 8674 8675 8676 abi="elf" 8677 glibc="1" 8678 8679 $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS " >>confdefs.h 8680 8681 8682 $as_echo "#define JEMALLOC_HAS_ALLOCA_H " >>confdefs.h 8683 8684 8685 $as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY " >>confdefs.h 8686 8687 8688 $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h 8689 8690 8691 $as_echo "#define JEMALLOC_USE_CXX_THROW " >>confdefs.h 8692 8693 if test "${LG_SIZEOF_PTR}" = "3"; then 8694 default_retain="1" 8695 fi 8696 zero_realloc_default_free="1" 8697 ;; 8698 *-*-kfreebsd*) 8699 T_APPEND_V=-D_GNU_SOURCE 8700 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 8701 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}" 8702 else 8703 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}" 8704 fi 8705 8706 8707 abi="elf" 8708 8709 $as_echo "#define JEMALLOC_HAS_ALLOCA_H " >>confdefs.h 8710 8711 8712 $as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT " >>confdefs.h 8713 8714 8715 $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h 8716 8717 8718 $as_echo "#define JEMALLOC_USE_CXX_THROW " >>confdefs.h 8719 8720 ;; 8721 *-*-netbsd*) 8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5 8723 $as_echo_n "checking ABI... " >&6; } 8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8725 /* end confdefs.h. */ 8726 #ifdef __ELF__ 8727 /* ELF */ 8728 #else 8729 #error aout 8730 #endif 8731 8732 int 8733 main () 8734 { 8735 8736 ; 8737 return 0; 8738 } 8739 _ACEOF 8740 if ac_fn_c_try_compile "$LINENO"; then : 8741 abi="elf" 8742 else 8743 abi="aout" 8744 fi 8745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5 8747 $as_echo "$abi" >&6; } 8748 ;; 8749 *-*-solaris2*) 8750 abi="elf" 8751 RPATH='-Wl,-R,$(1)' 8752 T_APPEND_V=-D_POSIX_PTHREAD_SEMANTICS 8753 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 8754 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}" 8755 else 8756 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}" 8757 fi 8758 8759 8760 T_APPEND_V=-lposix4 -lsocket -lnsl 8761 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 8762 LIBS="${LIBS}${T_APPEND_V}" 8763 else 8764 LIBS="${LIBS} ${T_APPEND_V}" 8765 fi 8766 8767 8768 ;; 8769 *-ibm-aix*) 8770 if test "${LG_SIZEOF_PTR}" = "3"; then 8771 LD_PRELOAD_VAR="LDR_PRELOAD64" 8772 else 8773 LD_PRELOAD_VAR="LDR_PRELOAD" 8774 fi 8775 abi="xcoff" 8776 ;; 8777 *-*-mingw* | *-*-cygwin*) 8778 abi="pecoff" 8779 force_tls="0" 8780 maps_coalesce="0" 8781 RPATH="" 8782 so="dll" 8783 if test "x$je_cv_msvc" = "xyes" ; then 8784 importlib="lib" 8785 DSO_LDFLAGS="-LD" 8786 EXTRA_LDFLAGS="-link -DEBUG" 8787 CTARGET='-Fo$@' 8788 LDTARGET='-Fe$@' 8789 AR='lib' 8790 ARFLAGS='-nologo -out:' 8791 AROUT='$@' 8792 CC_MM= 8793 else 8794 importlib="${so}" 8795 DSO_LDFLAGS="-shared" 8796 link_whole_archive="1" 8797 fi 8798 case "${host}" in 8799 *-*-cygwin*) 8800 DUMP_SYMS="dumpbin /SYMBOLS" 8801 ;; 8802 *) 8803 ;; 8804 esac 8805 a="lib" 8806 libprefix="" 8807 SOREV="${so}" 8808 PIC_CFLAGS="" 8809 if test "${LG_SIZEOF_PTR}" = "3"; then 8810 default_retain="1" 8811 fi 8812 zero_realloc_default_free="1" 8813 ;; 8814 *-*-nto-qnx) 8815 abi="elf" 8816 force_tls="0" 8817 8818 $as_echo "#define JEMALLOC_HAS_ALLOCA_H " >>confdefs.h 8819 8820 ;; 8821 *) 8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5 8823 $as_echo "Unsupported operating system: ${host}" >&6; } 8824 abi="elf" 8825 ;; 8826 esac 8827 8828 JEMALLOC_USABLE_SIZE_CONST=const 8829 for ac_header in malloc.h 8830 do : 8831 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" 8832 if test "x$ac_cv_header_malloc_h" = xyes; then : 8833 cat >>confdefs.h <<_ACEOF 8834 #define HAVE_MALLOC_H 1 8835 _ACEOF 8836 8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc_usable_size definition can use const argument" >&5 8838 $as_echo_n "checking whether malloc_usable_size definition can use const argument... " >&6; } 8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8840 /* end confdefs.h. */ 8841 #include <malloc.h> 8842 #include <stddef.h> 8843 size_t malloc_usable_size(const void *ptr); 8844 8845 int 8846 main () 8847 { 8848 8849 ; 8850 return 0; 8851 } 8852 _ACEOF 8853 if ac_fn_c_try_compile "$LINENO"; then : 8854 8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8856 $as_echo "yes" >&6; } 8857 8858 else 8859 8860 JEMALLOC_USABLE_SIZE_CONST= 8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8862 $as_echo "no" >&6; } 8863 8864 fi 8865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8866 8867 fi 8868 8869 done 8870 8871 8872 cat >>confdefs.h <<_ACEOF 8873 #define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST 8874 _ACEOF 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 # On MSVC, log is an intrinsic that doesn't require libm. However, 8901 # AC_SEARCH_LIBS does not successfully detect this, as it will try to compile 8902 # a program using the wrong signature for log. Newer versions of MSVC CL detects 8903 # this and rejects the program with the following messages. 8904 # 8905 # conftest.c(40): warning C4391: 'char log()': incorrect return type for intrinsic function, expected 'double' 8906 # conftest.c(44): error C2168: 'log': too few actual parameters for intrinsic function 8907 # 8908 # Since log is always available on MSVC (it's been around since the dawn of 8909 # time), we simply always assume it's there if MSVC is detected. 8910 if test "x$je_cv_msvc" = "xyes" ; then 8911 LM= 8912 else 8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5 8914 $as_echo_n "checking for library containing log... " >&6; } 8915 if ${ac_cv_search_log+:} false; then : 8916 $as_echo_n "(cached) " >&6 8917 else 8918 ac_func_search_save_LIBS=$LIBS 8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8920 /* end confdefs.h. */ 8921 8922 /* Override any GCC internal prototype to avoid an error. 8923 Use char because int might match the return type of a GCC 8924 builtin and then its argument prototype would still apply. */ 8925 #ifdef __cplusplus 8926 extern "C" 8927 #endif 8928 char log (); 8929 int 8930 main () 8931 { 8932 return log (); 8933 ; 8934 return 0; 8935 } 8936 _ACEOF 8937 for ac_lib in '' m; do 8938 if test -z "$ac_lib"; then 8939 ac_res="none required" 8940 else 8941 ac_res=-l$ac_lib 8942 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8943 fi 8944 if ac_fn_c_try_link "$LINENO"; then : 8945 ac_cv_search_log=$ac_res 8946 fi 8947 rm -f core conftest.err conftest.$ac_objext \ 8948 conftest$ac_exeext 8949 if ${ac_cv_search_log+:} false; then : 8950 break 8951 fi 8952 done 8953 if ${ac_cv_search_log+:} false; then : 8954 8955 else 8956 ac_cv_search_log=no 8957 fi 8958 rm conftest.$ac_ext 8959 LIBS=$ac_func_search_save_LIBS 8960 fi 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5 8962 $as_echo "$ac_cv_search_log" >&6; } 8963 ac_res=$ac_cv_search_log 8964 if test "$ac_res" != no; then : 8965 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8966 8967 else 8968 as_fn_error $? "Missing math functions" "$LINENO" 5 8969 fi 8970 8971 if test "x$ac_cv_search_log" != "xnone required" ; then 8972 LM="$ac_cv_search_log" 8973 else 8974 LM= 8975 fi 8976 fi 8977 8978 8979 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5 8981 $as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; } 8982 if ${je_cv_attribute+:} false; then : 8983 $as_echo_n "(cached) " >&6 8984 else 8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8986 /* end confdefs.h. */ 8987 static __attribute__((unused)) void foo(void){} 8988 int 8989 main () 8990 { 8991 8992 ; 8993 return 0; 8994 } 8995 _ACEOF 8996 if ac_fn_c_try_link "$LINENO"; then : 8997 je_cv_attribute=yes 8998 else 8999 je_cv_attribute=no 9000 fi 9001 rm -f core conftest.err conftest.$ac_objext \ 9002 conftest$ac_exeext conftest.$ac_ext 9003 fi 9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5 9005 $as_echo "$je_cv_attribute" >&6; } 9006 9007 if test "x${je_cv_attribute}" = "xyes" ; then 9008 9009 $as_echo "#define JEMALLOC_HAVE_ATTR " >>confdefs.h 9010 9011 if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then 9012 9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5 9014 $as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; } 9015 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9016 T_APPEND_V=-fvisibility=hidden 9017 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9018 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 9019 else 9020 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 9021 fi 9022 9023 9024 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9025 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9026 else 9027 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9028 fi 9029 9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9031 /* end confdefs.h. */ 9032 9033 9034 int 9035 main () 9036 { 9037 9038 return 0; 9039 9040 ; 9041 return 0; 9042 } 9043 _ACEOF 9044 if ac_fn_c_try_compile "$LINENO"; then : 9045 je_cv_cflags_added=-fvisibility=hidden 9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9047 $as_echo "yes" >&6; } 9048 else 9049 je_cv_cflags_added= 9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9051 $as_echo "no" >&6; } 9052 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 9053 9054 fi 9055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9056 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9057 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9058 else 9059 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9060 fi 9061 9062 9063 9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5 9065 $as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; } 9066 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}" 9067 T_APPEND_V=-fvisibility=hidden 9068 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9069 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}" 9070 else 9071 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}" 9072 fi 9073 9074 9075 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 9076 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 9077 else 9078 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 9079 fi 9080 9081 ac_ext=cpp 9082 ac_cpp='$CXXCPP $CPPFLAGS' 9083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9086 9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9088 /* end confdefs.h. */ 9089 9090 9091 int 9092 main () 9093 { 9094 9095 return 0; 9096 9097 ; 9098 return 0; 9099 } 9100 _ACEOF 9101 if ac_fn_cxx_try_compile "$LINENO"; then : 9102 je_cv_cxxflags_added=-fvisibility=hidden 9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9104 $as_echo "yes" >&6; } 9105 else 9106 je_cv_cxxflags_added= 9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9108 $as_echo "no" >&6; } 9109 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}" 9110 9111 fi 9112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9113 ac_ext=c 9114 ac_cpp='$CPP $CPPFLAGS' 9115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9117 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9118 9119 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 9120 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 9121 else 9122 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 9123 fi 9124 9125 9126 fi 9127 fi 9128 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9129 9130 9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 9132 $as_echo_n "checking whether compiler supports -Werror... " >&6; } 9133 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9134 T_APPEND_V=-Werror 9135 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9136 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 9137 else 9138 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 9139 fi 9140 9141 9142 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9143 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9144 else 9145 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9146 fi 9147 9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9149 /* end confdefs.h. */ 9150 9151 9152 int 9153 main () 9154 { 9155 9156 return 0; 9157 9158 ; 9159 return 0; 9160 } 9161 _ACEOF 9162 if ac_fn_c_try_compile "$LINENO"; then : 9163 je_cv_cflags_added=-Werror 9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9165 $as_echo "yes" >&6; } 9166 else 9167 je_cv_cflags_added= 9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9169 $as_echo "no" >&6; } 9170 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 9171 9172 fi 9173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9174 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9175 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9176 else 9177 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9178 fi 9179 9180 9181 9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5 9183 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; } 9184 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9185 T_APPEND_V=-herror_on_warning 9186 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9187 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 9188 else 9189 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 9190 fi 9191 9192 9193 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9194 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9195 else 9196 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9197 fi 9198 9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9200 /* end confdefs.h. */ 9201 9202 9203 int 9204 main () 9205 { 9206 9207 return 0; 9208 9209 ; 9210 return 0; 9211 } 9212 _ACEOF 9213 if ac_fn_c_try_compile "$LINENO"; then : 9214 je_cv_cflags_added=-herror_on_warning 9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9216 $as_echo "yes" >&6; } 9217 else 9218 je_cv_cflags_added= 9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9220 $as_echo "no" >&6; } 9221 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 9222 9223 fi 9224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9225 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9226 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9227 else 9228 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9229 fi 9230 9231 9232 9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5 9234 $as_echo_n "checking whether tls_model attribute is compilable... " >&6; } 9235 if ${je_cv_tls_model+:} false; then : 9236 $as_echo_n "(cached) " >&6 9237 else 9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9239 /* end confdefs.h. */ 9240 9241 int 9242 main () 9243 { 9244 static __thread int 9245 __attribute__((tls_model("initial-exec"), unused)) foo; 9246 foo = 0; 9247 ; 9248 return 0; 9249 } 9250 _ACEOF 9251 if ac_fn_c_try_link "$LINENO"; then : 9252 je_cv_tls_model=yes 9253 else 9254 je_cv_tls_model=no 9255 fi 9256 rm -f core conftest.err conftest.$ac_objext \ 9257 conftest$ac_exeext conftest.$ac_ext 9258 fi 9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5 9260 $as_echo "$je_cv_tls_model" >&6; } 9261 9262 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}" 9263 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9264 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9265 else 9266 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9267 fi 9268 9269 9270 9271 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9272 9273 9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 9275 $as_echo_n "checking whether compiler supports -Werror... " >&6; } 9276 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9277 T_APPEND_V=-Werror 9278 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9279 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 9280 else 9281 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 9282 fi 9283 9284 9285 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9286 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9287 else 9288 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9289 fi 9290 9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9292 /* end confdefs.h. */ 9293 9294 9295 int 9296 main () 9297 { 9298 9299 return 0; 9300 9301 ; 9302 return 0; 9303 } 9304 _ACEOF 9305 if ac_fn_c_try_compile "$LINENO"; then : 9306 je_cv_cflags_added=-Werror 9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9308 $as_echo "yes" >&6; } 9309 else 9310 je_cv_cflags_added= 9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9312 $as_echo "no" >&6; } 9313 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 9314 9315 fi 9316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9317 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9318 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9319 else 9320 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9321 fi 9322 9323 9324 9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5 9326 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; } 9327 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9328 T_APPEND_V=-herror_on_warning 9329 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9330 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 9331 else 9332 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 9333 fi 9334 9335 9336 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9337 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9338 else 9339 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9340 fi 9341 9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9343 /* end confdefs.h. */ 9344 9345 9346 int 9347 main () 9348 { 9349 9350 return 0; 9351 9352 ; 9353 return 0; 9354 } 9355 _ACEOF 9356 if ac_fn_c_try_compile "$LINENO"; then : 9357 je_cv_cflags_added=-herror_on_warning 9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9359 $as_echo "yes" >&6; } 9360 else 9361 je_cv_cflags_added= 9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9363 $as_echo "no" >&6; } 9364 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 9365 9366 fi 9367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9368 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9369 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9370 else 9371 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9372 fi 9373 9374 9375 9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloc_size attribute is compilable" >&5 9377 $as_echo_n "checking whether alloc_size attribute is compilable... " >&6; } 9378 if ${je_cv_alloc_size+:} false; then : 9379 $as_echo_n "(cached) " >&6 9380 else 9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9382 /* end confdefs.h. */ 9383 #include <stdlib.h> 9384 int 9385 main () 9386 { 9387 void *foo(size_t size) __attribute__((alloc_size(1))); 9388 ; 9389 return 0; 9390 } 9391 _ACEOF 9392 if ac_fn_c_try_link "$LINENO"; then : 9393 je_cv_alloc_size=yes 9394 else 9395 je_cv_alloc_size=no 9396 fi 9397 rm -f core conftest.err conftest.$ac_objext \ 9398 conftest$ac_exeext conftest.$ac_ext 9399 fi 9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_alloc_size" >&5 9401 $as_echo "$je_cv_alloc_size" >&6; } 9402 9403 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}" 9404 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9405 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9406 else 9407 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9408 fi 9409 9410 9411 if test "x${je_cv_alloc_size}" = "xyes" ; then 9412 9413 $as_echo "#define JEMALLOC_HAVE_ATTR_ALLOC_SIZE " >>confdefs.h 9414 9415 fi 9416 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9417 9418 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 9420 $as_echo_n "checking whether compiler supports -Werror... " >&6; } 9421 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9422 T_APPEND_V=-Werror 9423 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9424 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 9425 else 9426 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 9427 fi 9428 9429 9430 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9431 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9432 else 9433 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9434 fi 9435 9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9437 /* end confdefs.h. */ 9438 9439 9440 int 9441 main () 9442 { 9443 9444 return 0; 9445 9446 ; 9447 return 0; 9448 } 9449 _ACEOF 9450 if ac_fn_c_try_compile "$LINENO"; then : 9451 je_cv_cflags_added=-Werror 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9453 $as_echo "yes" >&6; } 9454 else 9455 je_cv_cflags_added= 9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9457 $as_echo "no" >&6; } 9458 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 9459 9460 fi 9461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9462 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9463 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9464 else 9465 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9466 fi 9467 9468 9469 9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5 9471 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; } 9472 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9473 T_APPEND_V=-herror_on_warning 9474 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9475 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 9476 else 9477 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 9478 fi 9479 9480 9481 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9482 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9483 else 9484 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9485 fi 9486 9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9488 /* end confdefs.h. */ 9489 9490 9491 int 9492 main () 9493 { 9494 9495 return 0; 9496 9497 ; 9498 return 0; 9499 } 9500 _ACEOF 9501 if ac_fn_c_try_compile "$LINENO"; then : 9502 je_cv_cflags_added=-herror_on_warning 9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9504 $as_echo "yes" >&6; } 9505 else 9506 je_cv_cflags_added= 9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9508 $as_echo "no" >&6; } 9509 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 9510 9511 fi 9512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9513 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9514 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9515 else 9516 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9517 fi 9518 9519 9520 9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(gnu_printf, ...) attribute is compilable" >&5 9522 $as_echo_n "checking whether format(gnu_printf, ...) attribute is compilable... " >&6; } 9523 if ${je_cv_format_gnu_printf+:} false; then : 9524 $as_echo_n "(cached) " >&6 9525 else 9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9527 /* end confdefs.h. */ 9528 #include <stdlib.h> 9529 int 9530 main () 9531 { 9532 void *foo(const char *format, ...) __attribute__((format(gnu_printf, 1, 2))); 9533 ; 9534 return 0; 9535 } 9536 _ACEOF 9537 if ac_fn_c_try_link "$LINENO"; then : 9538 je_cv_format_gnu_printf=yes 9539 else 9540 je_cv_format_gnu_printf=no 9541 fi 9542 rm -f core conftest.err conftest.$ac_objext \ 9543 conftest$ac_exeext conftest.$ac_ext 9544 fi 9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_gnu_printf" >&5 9546 $as_echo "$je_cv_format_gnu_printf" >&6; } 9547 9548 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}" 9549 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9550 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9551 else 9552 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9553 fi 9554 9555 9556 if test "x${je_cv_format_gnu_printf}" = "xyes" ; then 9557 9558 $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF " >>confdefs.h 9559 9560 fi 9561 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9562 9563 9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 9565 $as_echo_n "checking whether compiler supports -Werror... " >&6; } 9566 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9567 T_APPEND_V=-Werror 9568 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9569 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 9570 else 9571 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 9572 fi 9573 9574 9575 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9576 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9577 else 9578 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9579 fi 9580 9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9582 /* end confdefs.h. */ 9583 9584 9585 int 9586 main () 9587 { 9588 9589 return 0; 9590 9591 ; 9592 return 0; 9593 } 9594 _ACEOF 9595 if ac_fn_c_try_compile "$LINENO"; then : 9596 je_cv_cflags_added=-Werror 9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9598 $as_echo "yes" >&6; } 9599 else 9600 je_cv_cflags_added= 9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9602 $as_echo "no" >&6; } 9603 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 9604 9605 fi 9606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9607 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9608 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9609 else 9610 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9611 fi 9612 9613 9614 9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5 9616 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; } 9617 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9618 T_APPEND_V=-herror_on_warning 9619 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9620 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 9621 else 9622 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 9623 fi 9624 9625 9626 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9627 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9628 else 9629 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9630 fi 9631 9632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9633 /* end confdefs.h. */ 9634 9635 9636 int 9637 main () 9638 { 9639 9640 return 0; 9641 9642 ; 9643 return 0; 9644 } 9645 _ACEOF 9646 if ac_fn_c_try_compile "$LINENO"; then : 9647 je_cv_cflags_added=-herror_on_warning 9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9649 $as_echo "yes" >&6; } 9650 else 9651 je_cv_cflags_added= 9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9653 $as_echo "no" >&6; } 9654 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 9655 9656 fi 9657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9658 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9659 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9660 else 9661 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9662 fi 9663 9664 9665 9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5 9667 $as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; } 9668 if ${je_cv_format_printf+:} false; then : 9669 $as_echo_n "(cached) " >&6 9670 else 9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9672 /* end confdefs.h. */ 9673 #include <stdlib.h> 9674 int 9675 main () 9676 { 9677 void *foo(const char *format, ...) __attribute__((format(printf, 1, 2))); 9678 ; 9679 return 0; 9680 } 9681 _ACEOF 9682 if ac_fn_c_try_link "$LINENO"; then : 9683 je_cv_format_printf=yes 9684 else 9685 je_cv_format_printf=no 9686 fi 9687 rm -f core conftest.err conftest.$ac_objext \ 9688 conftest$ac_exeext conftest.$ac_ext 9689 fi 9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_printf" >&5 9691 $as_echo "$je_cv_format_printf" >&6; } 9692 9693 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}" 9694 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9695 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9696 else 9697 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9698 fi 9699 9700 9701 if test "x${je_cv_format_printf}" = "xyes" ; then 9702 9703 $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF " >>confdefs.h 9704 9705 fi 9706 9707 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9708 9709 9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 9711 $as_echo_n "checking whether compiler supports -Werror... " >&6; } 9712 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9713 T_APPEND_V=-Werror 9714 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9715 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 9716 else 9717 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 9718 fi 9719 9720 9721 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9722 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9723 else 9724 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9725 fi 9726 9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9728 /* end confdefs.h. */ 9729 9730 9731 int 9732 main () 9733 { 9734 9735 return 0; 9736 9737 ; 9738 return 0; 9739 } 9740 _ACEOF 9741 if ac_fn_c_try_compile "$LINENO"; then : 9742 je_cv_cflags_added=-Werror 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9744 $as_echo "yes" >&6; } 9745 else 9746 je_cv_cflags_added= 9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9748 $as_echo "no" >&6; } 9749 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 9750 9751 fi 9752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9753 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9754 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9755 else 9756 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9757 fi 9758 9759 9760 9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5 9762 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; } 9763 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9764 T_APPEND_V=-herror_on_warning 9765 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9766 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 9767 else 9768 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 9769 fi 9770 9771 9772 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9773 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9774 else 9775 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9776 fi 9777 9778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9779 /* end confdefs.h. */ 9780 9781 9782 int 9783 main () 9784 { 9785 9786 return 0; 9787 9788 ; 9789 return 0; 9790 } 9791 _ACEOF 9792 if ac_fn_c_try_compile "$LINENO"; then : 9793 je_cv_cflags_added=-herror_on_warning 9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9795 $as_echo "yes" >&6; } 9796 else 9797 je_cv_cflags_added= 9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9799 $as_echo "no" >&6; } 9800 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 9801 9802 fi 9803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9804 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9805 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9806 else 9807 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9808 fi 9809 9810 9811 9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5 9813 $as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; } 9814 if ${je_cv_format_arg+:} false; then : 9815 $as_echo_n "(cached) " >&6 9816 else 9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9818 /* end confdefs.h. */ 9819 #include <stdlib.h> 9820 int 9821 main () 9822 { 9823 const char * __attribute__((__format_arg__(1))) foo(const char *format); 9824 ; 9825 return 0; 9826 } 9827 _ACEOF 9828 if ac_fn_c_try_link "$LINENO"; then : 9829 je_cv_format_arg=yes 9830 else 9831 je_cv_format_arg=no 9832 fi 9833 rm -f core conftest.err conftest.$ac_objext \ 9834 conftest$ac_exeext conftest.$ac_ext 9835 fi 9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_arg" >&5 9837 $as_echo "$je_cv_format_arg" >&6; } 9838 9839 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}" 9840 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9841 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9842 else 9843 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9844 fi 9845 9846 9847 if test "x${je_cv_format_arg}" = "xyes" ; then 9848 9849 $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_ARG " >>confdefs.h 9850 9851 fi 9852 9853 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9854 9855 9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wimplicit-fallthrough" >&5 9857 $as_echo_n "checking whether compiler supports -Wimplicit-fallthrough... " >&6; } 9858 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9859 T_APPEND_V=-Wimplicit-fallthrough 9860 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9861 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 9862 else 9863 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 9864 fi 9865 9866 9867 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9868 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9869 else 9870 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9871 fi 9872 9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9874 /* end confdefs.h. */ 9875 9876 9877 int 9878 main () 9879 { 9880 9881 return 0; 9882 9883 ; 9884 return 0; 9885 } 9886 _ACEOF 9887 if ac_fn_c_try_compile "$LINENO"; then : 9888 je_cv_cflags_added=-Wimplicit-fallthrough 9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9890 $as_echo "yes" >&6; } 9891 else 9892 je_cv_cflags_added= 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9894 $as_echo "no" >&6; } 9895 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 9896 9897 fi 9898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9899 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9900 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9901 else 9902 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9903 fi 9904 9905 9906 9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fallthrough attribute is compilable" >&5 9908 $as_echo_n "checking whether fallthrough attribute is compilable... " >&6; } 9909 if ${je_cv_fallthrough+:} false; then : 9910 $as_echo_n "(cached) " >&6 9911 else 9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9913 /* end confdefs.h. */ 9914 #if !__has_attribute(fallthrough) 9915 #error "foo" 9916 #endif 9917 int 9918 main () 9919 { 9920 int x = 0; 9921 switch (x) { 9922 case 0: __attribute__((__fallthrough__)); 9923 case 1: return 1; 9924 } 9925 ; 9926 return 0; 9927 } 9928 _ACEOF 9929 if ac_fn_c_try_link "$LINENO"; then : 9930 je_cv_fallthrough=yes 9931 else 9932 je_cv_fallthrough=no 9933 fi 9934 rm -f core conftest.err conftest.$ac_objext \ 9935 conftest$ac_exeext conftest.$ac_ext 9936 fi 9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_fallthrough" >&5 9938 $as_echo "$je_cv_fallthrough" >&6; } 9939 9940 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}" 9941 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9942 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9943 else 9944 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9945 fi 9946 9947 9948 if test "x${je_cv_fallthrough}" = "xyes" ; then 9949 9950 $as_echo "#define JEMALLOC_HAVE_ATTR_FALLTHROUGH " >>confdefs.h 9951 9952 9953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wimplicit-fallthrough" >&5 9954 $as_echo_n "checking whether compiler supports -Wimplicit-fallthrough... " >&6; } 9955 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9956 T_APPEND_V=-Wimplicit-fallthrough 9957 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9958 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 9959 else 9960 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 9961 fi 9962 9963 9964 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9965 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9966 else 9967 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9968 fi 9969 9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9971 /* end confdefs.h. */ 9972 9973 9974 int 9975 main () 9976 { 9977 9978 return 0; 9979 9980 ; 9981 return 0; 9982 } 9983 _ACEOF 9984 if ac_fn_c_try_compile "$LINENO"; then : 9985 je_cv_cflags_added=-Wimplicit-fallthrough 9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9987 $as_echo "yes" >&6; } 9988 else 9989 je_cv_cflags_added= 9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9991 $as_echo "no" >&6; } 9992 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 9993 9994 fi 9995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9996 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9997 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9998 else 9999 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 10000 fi 10001 10002 10003 10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wimplicit-fallthrough" >&5 10005 $as_echo_n "checking whether compiler supports -Wimplicit-fallthrough... " >&6; } 10006 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}" 10007 T_APPEND_V=-Wimplicit-fallthrough 10008 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 10009 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}" 10010 else 10011 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}" 10012 fi 10013 10014 10015 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 10016 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 10017 else 10018 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 10019 fi 10020 10021 ac_ext=cpp 10022 ac_cpp='$CXXCPP $CPPFLAGS' 10023 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10024 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10025 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10026 10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10028 /* end confdefs.h. */ 10029 10030 10031 int 10032 main () 10033 { 10034 10035 return 0; 10036 10037 ; 10038 return 0; 10039 } 10040 _ACEOF 10041 if ac_fn_cxx_try_compile "$LINENO"; then : 10042 je_cv_cxxflags_added=-Wimplicit-fallthrough 10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10044 $as_echo "yes" >&6; } 10045 else 10046 je_cv_cxxflags_added= 10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10048 $as_echo "no" >&6; } 10049 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}" 10050 10051 fi 10052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10053 ac_ext=c 10054 ac_cpp='$CPP $CPPFLAGS' 10055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10057 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10058 10059 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 10060 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 10061 else 10062 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 10063 fi 10064 10065 10066 fi 10067 10068 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 10069 10070 10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 10072 $as_echo_n "checking whether compiler supports -Werror... " >&6; } 10073 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 10074 T_APPEND_V=-Werror 10075 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 10076 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 10077 else 10078 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 10079 fi 10080 10081 10082 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 10083 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 10084 else 10085 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 10086 fi 10087 10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10089 /* end confdefs.h. */ 10090 10091 10092 int 10093 main () 10094 { 10095 10096 return 0; 10097 10098 ; 10099 return 0; 10100 } 10101 _ACEOF 10102 if ac_fn_c_try_compile "$LINENO"; then : 10103 je_cv_cflags_added=-Werror 10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10105 $as_echo "yes" >&6; } 10106 else 10107 je_cv_cflags_added= 10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10109 $as_echo "no" >&6; } 10110 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 10111 10112 fi 10113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10114 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 10115 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 10116 else 10117 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 10118 fi 10119 10120 10121 10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5 10123 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; } 10124 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 10125 T_APPEND_V=-herror_on_warning 10126 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 10127 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 10128 else 10129 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 10130 fi 10131 10132 10133 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 10134 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 10135 else 10136 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 10137 fi 10138 10139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10140 /* end confdefs.h. */ 10141 10142 10143 int 10144 main () 10145 { 10146 10147 return 0; 10148 10149 ; 10150 return 0; 10151 } 10152 _ACEOF 10153 if ac_fn_c_try_compile "$LINENO"; then : 10154 je_cv_cflags_added=-herror_on_warning 10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10156 $as_echo "yes" >&6; } 10157 else 10158 je_cv_cflags_added= 10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10160 $as_echo "no" >&6; } 10161 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 10162 10163 fi 10164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10165 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 10166 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 10167 else 10168 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 10169 fi 10170 10171 10172 10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cold attribute is compilable" >&5 10174 $as_echo_n "checking whether cold attribute is compilable... " >&6; } 10175 if ${je_cv_cold+:} false; then : 10176 $as_echo_n "(cached) " >&6 10177 else 10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10179 /* end confdefs.h. */ 10180 10181 int 10182 main () 10183 { 10184 __attribute__((__cold__)) void foo(); 10185 ; 10186 return 0; 10187 } 10188 _ACEOF 10189 if ac_fn_c_try_link "$LINENO"; then : 10190 je_cv_cold=yes 10191 else 10192 je_cv_cold=no 10193 fi 10194 rm -f core conftest.err conftest.$ac_objext \ 10195 conftest$ac_exeext conftest.$ac_ext 10196 fi 10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cold" >&5 10198 $as_echo "$je_cv_cold" >&6; } 10199 10200 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}" 10201 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 10202 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 10203 else 10204 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 10205 fi 10206 10207 10208 if test "x${je_cv_cold}" = "xyes" ; then 10209 10210 $as_echo "#define JEMALLOC_HAVE_ATTR_COLD " >>confdefs.h 10211 10212 fi 10213 10214 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 10215 10216 10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wdeprecated-declarations" >&5 10218 $as_echo_n "checking whether compiler supports -Wdeprecated-declarations... " >&6; } 10219 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 10220 T_APPEND_V=-Wdeprecated-declarations 10221 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 10222 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 10223 else 10224 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 10225 fi 10226 10227 10228 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 10229 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 10230 else 10231 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 10232 fi 10233 10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10235 /* end confdefs.h. */ 10236 10237 10238 int 10239 main () 10240 { 10241 10242 return 0; 10243 10244 ; 10245 return 0; 10246 } 10247 _ACEOF 10248 if ac_fn_c_try_compile "$LINENO"; then : 10249 je_cv_cflags_added=-Wdeprecated-declarations 10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10251 $as_echo "yes" >&6; } 10252 else 10253 je_cv_cflags_added= 10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10255 $as_echo "no" >&6; } 10256 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 10257 10258 fi 10259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10260 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 10261 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 10262 else 10263 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 10264 fi 10265 10266 10267 10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deprecated attribute is compilable" >&5 10269 $as_echo_n "checking whether deprecated attribute is compilable... " >&6; } 10270 if ${je_cv_deprecated+:} false; then : 10271 $as_echo_n "(cached) " >&6 10272 else 10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10274 /* end confdefs.h. */ 10275 #if !__has_attribute(deprecated) 10276 #error "deprecated attribute not supported" 10277 #endif 10278 struct has_deprecated_field { 10279 int good; 10280 int __attribute__((deprecated("Do not use"))) bad; 10281 }; 10282 10283 int 10284 main () 10285 { 10286 struct has_deprecated_field instance; 10287 instance.good = 0; 10288 instance.bad = 1; 10289 10290 ; 10291 return 0; 10292 } 10293 _ACEOF 10294 if ac_fn_c_try_link "$LINENO"; then : 10295 je_cv_deprecated=yes 10296 else 10297 je_cv_deprecated=no 10298 fi 10299 rm -f core conftest.err conftest.$ac_objext \ 10300 conftest$ac_exeext conftest.$ac_ext 10301 fi 10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_deprecated" >&5 10303 $as_echo "$je_cv_deprecated" >&6; } 10304 10305 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}" 10306 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 10307 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 10308 else 10309 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 10310 fi 10311 10312 10313 if test "x${je_cv_deprecated}" = "xyes" ; then 10314 10315 $as_echo "#define JEMALLOC_HAVE_ATTR_DEPRECATED " >>confdefs.h 10316 10317 10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wdeprecated-declarations" >&5 10319 $as_echo_n "checking whether compiler supports -Wdeprecated-declarations... " >&6; } 10320 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 10321 T_APPEND_V=-Wdeprecated-declarations 10322 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 10323 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 10324 else 10325 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 10326 fi 10327 10328 10329 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 10330 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 10331 else 10332 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 10333 fi 10334 10335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10336 /* end confdefs.h. */ 10337 10338 10339 int 10340 main () 10341 { 10342 10343 return 0; 10344 10345 ; 10346 return 0; 10347 } 10348 _ACEOF 10349 if ac_fn_c_try_compile "$LINENO"; then : 10350 je_cv_cflags_added=-Wdeprecated-declarations 10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10352 $as_echo "yes" >&6; } 10353 else 10354 je_cv_cflags_added= 10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10356 $as_echo "no" >&6; } 10357 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 10358 10359 fi 10360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10361 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 10362 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 10363 else 10364 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 10365 fi 10366 10367 10368 10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wdeprecated-declarations" >&5 10370 $as_echo_n "checking whether compiler supports -Wdeprecated-declarations... " >&6; } 10371 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}" 10372 T_APPEND_V=-Wdeprecated-declarations 10373 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 10374 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}" 10375 else 10376 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}" 10377 fi 10378 10379 10380 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 10381 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 10382 else 10383 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 10384 fi 10385 10386 ac_ext=cpp 10387 ac_cpp='$CXXCPP $CPPFLAGS' 10388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10391 10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10393 /* end confdefs.h. */ 10394 10395 10396 int 10397 main () 10398 { 10399 10400 return 0; 10401 10402 ; 10403 return 0; 10404 } 10405 _ACEOF 10406 if ac_fn_cxx_try_compile "$LINENO"; then : 10407 je_cv_cxxflags_added=-Wdeprecated-declarations 10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10409 $as_echo "yes" >&6; } 10410 else 10411 je_cv_cxxflags_added= 10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10413 $as_echo "no" >&6; } 10414 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}" 10415 10416 fi 10417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10418 ac_ext=c 10419 ac_cpp='$CPP $CPPFLAGS' 10420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10422 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10423 10424 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 10425 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 10426 else 10427 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 10428 fi 10429 10430 10431 fi 10432 10433 10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vm_make_tag is compilable" >&5 10435 $as_echo_n "checking whether vm_make_tag is compilable... " >&6; } 10436 if ${je_cv_vm_make_tag+:} false; then : 10437 $as_echo_n "(cached) " >&6 10438 else 10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10440 /* end confdefs.h. */ 10441 #include <sys/mman.h> 10442 #include <mach/vm_statistics.h> 10443 int 10444 main () 10445 { 10446 void *p; 10447 p = mmap(0, 16, PROT_READ, MAP_ANON|MAP_PRIVATE, VM_MAKE_TAG(1), 0); 10448 munmap(p, 16); 10449 ; 10450 return 0; 10451 } 10452 _ACEOF 10453 if ac_fn_c_try_link "$LINENO"; then : 10454 je_cv_vm_make_tag=yes 10455 else 10456 je_cv_vm_make_tag=no 10457 fi 10458 rm -f core conftest.err conftest.$ac_objext \ 10459 conftest$ac_exeext conftest.$ac_ext 10460 fi 10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_vm_make_tag" >&5 10462 $as_echo "$je_cv_vm_make_tag" >&6; } 10463 10464 if test "x${je_cv_vm_make_tag}" = "xyes" ; then 10465 10466 $as_echo "#define JEMALLOC_HAVE_VM_MAKE_TAG " >>confdefs.h 10467 10468 fi 10469 10470 10471 # Check whether --with-rpath was given. 10472 if test "${with_rpath+set}" = set; then : 10473 withval=$with_rpath; if test "x$with_rpath" = "xno" ; then 10474 RPATH_EXTRA= 10475 else 10476 RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`" 10477 fi 10478 else 10479 RPATH_EXTRA= 10480 10481 fi 10482 10483 10484 10485 # Check whether --enable-autogen was given. 10486 if test "${enable_autogen+set}" = set; then : 10487 enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then 10488 enable_autogen="0" 10489 else 10490 enable_autogen="1" 10491 fi 10492 10493 else 10494 enable_autogen="0" 10495 10496 fi 10497 10498 10499 10500 # Find a good install program. We prefer a C program (faster), 10501 # so one script is as good as another. But avoid the broken or 10502 # incompatible versions: 10503 # SysV /etc/install, /usr/sbin/install 10504 # SunOS /usr/etc/install 10505 # IRIX /sbin/install 10506 # AIX /bin/install 10507 # AmigaOS /C/install, which installs bootblocks on floppy discs 10508 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 10509 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 10510 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 10511 # OS/2's system install, which has a completely different semantic 10512 # ./install, which can be erroneously created by make from ./install.sh. 10513 # Reject install programs that cannot install multiple files. 10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 10515 $as_echo_n "checking for a BSD-compatible install... " >&6; } 10516 if test -z "$INSTALL"; then 10517 if ${ac_cv_path_install+:} false; then : 10518 $as_echo_n "(cached) " >&6 10519 else 10520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10521 for as_dir in $PATH 10522 do 10523 IFS=$as_save_IFS 10524 test -z "$as_dir" && as_dir=. 10525 # Account for people who put trailing slashes in PATH elements. 10526 case $as_dir/ in #(( 10527 ./ | .// | /[cC]/* | \ 10528 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 10529 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 10530 /usr/ucb/* ) ;; 10531 *) 10532 # OSF1 and SCO ODT 3.0 have their own names for install. 10533 # Don't use installbsd from OSF since it installs stuff as root 10534 # by default. 10535 for ac_prog in ginstall scoinst install; do 10536 for ac_exec_ext in '' $ac_executable_extensions; do 10537 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 10538 if test $ac_prog = install && 10539 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 10540 # AIX install. It has an incompatible calling convention. 10541 : 10542 elif test $ac_prog = install && 10543 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 10544 # program-specific install script used by HP pwplus--don't use. 10545 : 10546 else 10547 rm -rf conftest.one conftest.two conftest.dir 10548 echo one > conftest.one 10549 echo two > conftest.two 10550 mkdir conftest.dir 10551 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 10552 test -s conftest.one && test -s conftest.two && 10553 test -s conftest.dir/conftest.one && 10554 test -s conftest.dir/conftest.two 10555 then 10556 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 10557 break 3 10558 fi 10559 fi 10560 fi 10561 done 10562 done 10563 ;; 10564 esac 10565 10566 done 10567 IFS=$as_save_IFS 10568 10569 rm -rf conftest.one conftest.two conftest.dir 10570 10571 fi 10572 if test "${ac_cv_path_install+set}" = set; then 10573 INSTALL=$ac_cv_path_install 10574 else 10575 # As a last resort, use the slow shell script. Don't cache a 10576 # value for INSTALL within a source directory, because that will 10577 # break other packages using the cache if that directory is 10578 # removed, or if the value is a relative name. 10579 INSTALL=$ac_install_sh 10580 fi 10581 fi 10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 10583 $as_echo "$INSTALL" >&6; } 10584 10585 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 10586 # It thinks the first close brace ends the variable substitution. 10587 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 10588 10589 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 10590 10591 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 10592 10593 if test -n "$ac_tool_prefix"; then 10594 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 10595 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10597 $as_echo_n "checking for $ac_word... " >&6; } 10598 if ${ac_cv_prog_RANLIB+:} false; then : 10599 $as_echo_n "(cached) " >&6 10600 else 10601 if test -n "$RANLIB"; then 10602 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 10603 else 10604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10605 for as_dir in $PATH 10606 do 10607 IFS=$as_save_IFS 10608 test -z "$as_dir" && as_dir=. 10609 for ac_exec_ext in '' $ac_executable_extensions; do 10610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10611 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 10612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10613 break 2 10614 fi 10615 done 10616 done 10617 IFS=$as_save_IFS 10618 10619 fi 10620 fi 10621 RANLIB=$ac_cv_prog_RANLIB 10622 if test -n "$RANLIB"; then 10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 10624 $as_echo "$RANLIB" >&6; } 10625 else 10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10627 $as_echo "no" >&6; } 10628 fi 10629 10630 10631 fi 10632 if test -z "$ac_cv_prog_RANLIB"; then 10633 ac_ct_RANLIB=$RANLIB 10634 # Extract the first word of "ranlib", so it can be a program name with args. 10635 set dummy ranlib; ac_word=$2 10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10637 $as_echo_n "checking for $ac_word... " >&6; } 10638 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 10639 $as_echo_n "(cached) " >&6 10640 else 10641 if test -n "$ac_ct_RANLIB"; then 10642 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 10643 else 10644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10645 for as_dir in $PATH 10646 do 10647 IFS=$as_save_IFS 10648 test -z "$as_dir" && as_dir=. 10649 for ac_exec_ext in '' $ac_executable_extensions; do 10650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10651 ac_cv_prog_ac_ct_RANLIB="ranlib" 10652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10653 break 2 10654 fi 10655 done 10656 done 10657 IFS=$as_save_IFS 10658 10659 fi 10660 fi 10661 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 10662 if test -n "$ac_ct_RANLIB"; then 10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 10664 $as_echo "$ac_ct_RANLIB" >&6; } 10665 else 10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10667 $as_echo "no" >&6; } 10668 fi 10669 10670 if test "x$ac_ct_RANLIB" = x; then 10671 RANLIB=":" 10672 else 10673 case $cross_compiling:$ac_tool_warned in 10674 yes:) 10675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10677 ac_tool_warned=yes ;; 10678 esac 10679 RANLIB=$ac_ct_RANLIB 10680 fi 10681 else 10682 RANLIB="$ac_cv_prog_RANLIB" 10683 fi 10684 10685 # Extract the first word of "ld", so it can be a program name with args. 10686 set dummy ld; ac_word=$2 10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10688 $as_echo_n "checking for $ac_word... " >&6; } 10689 if ${ac_cv_path_LD+:} false; then : 10690 $as_echo_n "(cached) " >&6 10691 else 10692 case $LD in 10693 [\\/]* | ?:[\\/]*) 10694 ac_cv_path_LD="$LD" # Let the user override the test with a path. 10695 ;; 10696 *) 10697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10698 for as_dir in $PATH 10699 do 10700 IFS=$as_save_IFS 10701 test -z "$as_dir" && as_dir=. 10702 for ac_exec_ext in '' $ac_executable_extensions; do 10703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10704 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" 10705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10706 break 2 10707 fi 10708 done 10709 done 10710 IFS=$as_save_IFS 10711 10712 test -z "$ac_cv_path_LD" && ac_cv_path_LD="false" 10713 ;; 10714 esac 10715 fi 10716 LD=$ac_cv_path_LD 10717 if test -n "$LD"; then 10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 10719 $as_echo "$LD" >&6; } 10720 else 10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10722 $as_echo "no" >&6; } 10723 fi 10724 10725 10726 # Extract the first word of "autoconf", so it can be a program name with args. 10727 set dummy autoconf; ac_word=$2 10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10729 $as_echo_n "checking for $ac_word... " >&6; } 10730 if ${ac_cv_path_AUTOCONF+:} false; then : 10731 $as_echo_n "(cached) " >&6 10732 else 10733 case $AUTOCONF in 10734 [\\/]* | ?:[\\/]*) 10735 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path. 10736 ;; 10737 *) 10738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10739 for as_dir in $PATH 10740 do 10741 IFS=$as_save_IFS 10742 test -z "$as_dir" && as_dir=. 10743 for ac_exec_ext in '' $ac_executable_extensions; do 10744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10745 ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext" 10746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10747 break 2 10748 fi 10749 done 10750 done 10751 IFS=$as_save_IFS 10752 10753 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="false" 10754 ;; 10755 esac 10756 fi 10757 AUTOCONF=$ac_cv_path_AUTOCONF 10758 if test -n "$AUTOCONF"; then 10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 10760 $as_echo "$AUTOCONF" >&6; } 10761 else 10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10763 $as_echo "no" >&6; } 10764 fi 10765 10766 10767 10768 # Check whether --enable-doc was given. 10769 if test "${enable_doc+set}" = set; then : 10770 enableval=$enable_doc; if test "x$enable_doc" = "xno" ; then 10771 enable_doc="0" 10772 else 10773 enable_doc="1" 10774 fi 10775 10776 else 10777 enable_doc="1" 10778 10779 fi 10780 10781 10782 10783 # Check whether --enable-shared was given. 10784 if test "${enable_shared+set}" = set; then : 10785 enableval=$enable_shared; if test "x$enable_shared" = "xno" ; then 10786 enable_shared="0" 10787 else 10788 enable_shared="1" 10789 fi 10790 10791 else 10792 enable_shared="1" 10793 10794 fi 10795 10796 10797 10798 # Check whether --enable-static was given. 10799 if test "${enable_static+set}" = set; then : 10800 enableval=$enable_static; if test "x$enable_static" = "xno" ; then 10801 enable_static="0" 10802 else 10803 enable_static="1" 10804 fi 10805 10806 else 10807 enable_static="1" 10808 10809 fi 10810 10811 10812 10813 if test "$enable_shared$enable_static" = "00" ; then 10814 as_fn_error $? "Please enable one of shared or static builds" "$LINENO" 5 10815 fi 10816 10817 10818 # Check whether --with-mangling was given. 10819 if test "${with_mangling+set}" = set; then : 10820 withval=$with_mangling; mangling_map="$with_mangling" 10821 else 10822 mangling_map="" 10823 fi 10824 10825 10826 10827 # Check whether --with-jemalloc_prefix was given. 10828 if test "${with_jemalloc_prefix+set}" = set; then : 10829 withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix" 10830 else 10831 if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then 10832 JEMALLOC_PREFIX="" 10833 else 10834 JEMALLOC_PREFIX="je_" 10835 fi 10836 10837 fi 10838 10839 if test "x$JEMALLOC_PREFIX" = "x" ; then 10840 10841 $as_echo "#define JEMALLOC_IS_MALLOC " >>confdefs.h 10842 10843 else 10844 JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"` 10845 10846 cat >>confdefs.h <<_ACEOF 10847 #define JEMALLOC_PREFIX "$JEMALLOC_PREFIX" 10848 _ACEOF 10849 10850 10851 cat >>confdefs.h <<_ACEOF 10852 #define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX" 10853 _ACEOF 10854 10855 fi 10856 10857 10858 10859 10860 # Check whether --with-export was given. 10861 if test "${with_export+set}" = set; then : 10862 withval=$with_export; if test "x$with_export" = "xno"; then 10863 10864 $as_echo "#define JEMALLOC_EXPORT " >>confdefs.h 10865 10866 fi 10867 10868 fi 10869 10870 10871 public_syms="aligned_alloc calloc dallocx free free_sized free_aligned_sized mallctl mallctlbymib mallctlnametomib malloc malloc_conf malloc_conf_2_conf_harder malloc_message malloc_stats_print malloc_usable_size mallocx smallocx_${jemalloc_version_gid} nallocx posix_memalign rallocx realloc sallocx sdallocx xallocx" 10872 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign" 10873 if test "x$ac_cv_func_memalign" = xyes; then : 10874 10875 $as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN " >>confdefs.h 10876 10877 public_syms="${public_syms} memalign" 10878 fi 10879 10880 ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc" 10881 if test "x$ac_cv_func_valloc" = xyes; then : 10882 10883 $as_echo "#define JEMALLOC_OVERRIDE_VALLOC " >>confdefs.h 10884 10885 public_syms="${public_syms} valloc" 10886 fi 10887 10888 ac_fn_c_check_func "$LINENO" "pvalloc" "ac_cv_func_pvalloc" 10889 if test "x$ac_cv_func_pvalloc" = xyes; then : 10890 10891 $as_echo "#define JEMALLOC_OVERRIDE_PVALLOC " >>confdefs.h 10892 10893 public_syms="${public_syms} pvalloc" 10894 fi 10895 10896 ac_fn_c_check_func "$LINENO" "malloc_size" "ac_cv_func_malloc_size" 10897 if test "x$ac_cv_func_malloc_size" = xyes; then : 10898 10899 $as_echo "#define JEMALLOC_HAVE_MALLOC_SIZE " >>confdefs.h 10900 10901 public_syms="${public_syms} malloc_size" 10902 fi 10903 10904 10905 wrap_syms= 10906 if test "x${JEMALLOC_PREFIX}" = "x" ; then 10907 ac_fn_c_check_func "$LINENO" "__libc_calloc" "ac_cv_func___libc_calloc" 10908 if test "x$ac_cv_func___libc_calloc" = xyes; then : 10909 10910 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_CALLOC " >>confdefs.h 10911 10912 wrap_syms="${wrap_syms} __libc_calloc" 10913 fi 10914 10915 ac_fn_c_check_func "$LINENO" "__libc_free" "ac_cv_func___libc_free" 10916 if test "x$ac_cv_func___libc_free" = xyes; then : 10917 10918 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_FREE " >>confdefs.h 10919 10920 wrap_syms="${wrap_syms} __libc_free" 10921 fi 10922 10923 ac_fn_c_check_func "$LINENO" "__libc_free_sized" "ac_cv_func___libc_free_sized" 10924 if test "x$ac_cv_func___libc_free_sized" = xyes; then : 10925 10926 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_FREE_SIZED " >>confdefs.h 10927 10928 wrap_syms="${wrap_syms} __libc_free_sized" 10929 fi 10930 10931 ac_fn_c_check_func "$LINENO" "__libc_free_aligned_sized" "ac_cv_func___libc_free_aligned_sized" 10932 if test "x$ac_cv_func___libc_free_aligned_sized" = xyes; then : 10933 10934 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_FREE_ALIGNED_SIZED " >>confdefs.h 10935 10936 wrap_syms="${wrap_syms} __libc_free_aligned_sized" 10937 fi 10938 10939 ac_fn_c_check_func "$LINENO" "__libc_malloc" "ac_cv_func___libc_malloc" 10940 if test "x$ac_cv_func___libc_malloc" = xyes; then : 10941 10942 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MALLOC " >>confdefs.h 10943 10944 wrap_syms="${wrap_syms} __libc_malloc" 10945 fi 10946 10947 ac_fn_c_check_func "$LINENO" "__libc_memalign" "ac_cv_func___libc_memalign" 10948 if test "x$ac_cv_func___libc_memalign" = xyes; then : 10949 10950 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MEMALIGN " >>confdefs.h 10951 10952 wrap_syms="${wrap_syms} __libc_memalign" 10953 fi 10954 10955 ac_fn_c_check_func "$LINENO" "__libc_realloc" "ac_cv_func___libc_realloc" 10956 if test "x$ac_cv_func___libc_realloc" = xyes; then : 10957 10958 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_REALLOC " >>confdefs.h 10959 10960 wrap_syms="${wrap_syms} __libc_realloc" 10961 fi 10962 10963 ac_fn_c_check_func "$LINENO" "__libc_valloc" "ac_cv_func___libc_valloc" 10964 if test "x$ac_cv_func___libc_valloc" = xyes; then : 10965 10966 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_VALLOC " >>confdefs.h 10967 10968 wrap_syms="${wrap_syms} __libc_valloc" 10969 fi 10970 10971 ac_fn_c_check_func "$LINENO" "__libc_pvalloc" "ac_cv_func___libc_pvalloc" 10972 if test "x$ac_cv_func___libc_pvalloc" = xyes; then : 10973 10974 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_PVALLOC " >>confdefs.h 10975 10976 wrap_syms="${wrap_syms} __libc_pvalloc" 10977 fi 10978 10979 ac_fn_c_check_func "$LINENO" "__posix_memalign" "ac_cv_func___posix_memalign" 10980 if test "x$ac_cv_func___posix_memalign" = xyes; then : 10981 10982 $as_echo "#define JEMALLOC_OVERRIDE___POSIX_MEMALIGN " >>confdefs.h 10983 10984 wrap_syms="${wrap_syms} __posix_memalign" 10985 fi 10986 10987 fi 10988 10989 case "${host}" in 10990 *-*-mingw* | *-*-cygwin*) 10991 wrap_syms="${wrap_syms} tls_callback" 10992 ;; 10993 *) 10994 ;; 10995 esac 10996 10997 10998 # Check whether --with-private_namespace was given. 10999 if test "${with_private_namespace+set}" = set; then : 11000 withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="${with_private_namespace}je_" 11001 else 11002 JEMALLOC_PRIVATE_NAMESPACE="je_" 11003 11004 fi 11005 11006 11007 cat >>confdefs.h <<_ACEOF 11008 #define JEMALLOC_PRIVATE_NAMESPACE $JEMALLOC_PRIVATE_NAMESPACE 11009 _ACEOF 11010 11011 private_namespace="$JEMALLOC_PRIVATE_NAMESPACE" 11012 11013 11014 11015 # Check whether --with-install_suffix was given. 11016 if test "${with_install_suffix+set}" = set; then : 11017 withval=$with_install_suffix; case "$with_install_suffix" in 11018 *\ * ) as_fn_error $? "Install suffix should not contain spaces" "$LINENO" 5 ;; 11019 * ) INSTALL_SUFFIX="$with_install_suffix" ;; 11020 esac 11021 else 11022 INSTALL_SUFFIX= 11023 11024 fi 11025 11026 install_suffix="$INSTALL_SUFFIX" 11027 11028 11029 11030 # Check whether --with-malloc_conf was given. 11031 if test "${with_malloc_conf+set}" = set; then : 11032 withval=$with_malloc_conf; JEMALLOC_CONFIG_MALLOC_CONF="$with_malloc_conf" 11033 else 11034 JEMALLOC_CONFIG_MALLOC_CONF="" 11035 11036 fi 11037 11038 config_malloc_conf="$JEMALLOC_CONFIG_MALLOC_CONF" 11039 11040 cat >>confdefs.h <<_ACEOF 11041 #define JEMALLOC_CONFIG_MALLOC_CONF "$config_malloc_conf" 11042 _ACEOF 11043 11044 11045 je_="je_" 11046 11047 11048 cfgoutputs_in="Makefile.in" 11049 cfgoutputs_in="${cfgoutputs_in} jemalloc.pc.in" 11050 cfgoutputs_in="${cfgoutputs_in} doc/html.xsl.in" 11051 cfgoutputs_in="${cfgoutputs_in} doc/manpages.xsl.in" 11052 cfgoutputs_in="${cfgoutputs_in} doc/jemalloc.xml.in" 11053 cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_macros.h.in" 11054 cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_protos.h.in" 11055 cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_typedefs.h.in" 11056 cfgoutputs_in="${cfgoutputs_in} include/jemalloc/internal/jemalloc_preamble.h.in" 11057 cfgoutputs_in="${cfgoutputs_in} test/test.sh.in" 11058 cfgoutputs_in="${cfgoutputs_in} test/include/test/jemalloc_test.h.in" 11059 11060 cfgoutputs_out="Makefile" 11061 cfgoutputs_out="${cfgoutputs_out} jemalloc.pc" 11062 cfgoutputs_out="${cfgoutputs_out} doc/html.xsl" 11063 cfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl" 11064 cfgoutputs_out="${cfgoutputs_out} doc/jemalloc.xml" 11065 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_macros.h" 11066 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_protos.h" 11067 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_typedefs.h" 11068 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_preamble.h" 11069 cfgoutputs_out="${cfgoutputs_out} test/test.sh" 11070 cfgoutputs_out="${cfgoutputs_out} test/include/test/jemalloc_test.h" 11071 11072 cfgoutputs_tup="Makefile" 11073 cfgoutputs_tup="${cfgoutputs_tup} jemalloc.pc:jemalloc.pc.in" 11074 cfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in" 11075 cfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in" 11076 cfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc.xml:doc/jemalloc.xml.in" 11077 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_macros.h:include/jemalloc/jemalloc_macros.h.in" 11078 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_protos.h:include/jemalloc/jemalloc_protos.h.in" 11079 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_typedefs.h:include/jemalloc/jemalloc_typedefs.h.in" 11080 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_preamble.h" 11081 cfgoutputs_tup="${cfgoutputs_tup} test/test.sh:test/test.sh.in" 11082 cfgoutputs_tup="${cfgoutputs_tup} test/include/test/jemalloc_test.h:test/include/test/jemalloc_test.h.in" 11083 11084 cfghdrs_in="include/jemalloc/jemalloc_defs.h.in" 11085 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/jemalloc_internal_defs.h.in" 11086 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_symbols.sh" 11087 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_namespace.sh" 11088 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_namespace.sh" 11089 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_unnamespace.sh" 11090 cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_rename.sh" 11091 cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_mangle.sh" 11092 cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc.sh" 11093 cfghdrs_in="${cfghdrs_in} test/include/test/jemalloc_test_defs.h.in" 11094 11095 cfghdrs_out="include/jemalloc/jemalloc_defs.h" 11096 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc${install_suffix}.h" 11097 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols.awk" 11098 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols_jet.awk" 11099 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_symbols.txt" 11100 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_namespace.h" 11101 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_unnamespace.h" 11102 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_protos_jet.h" 11103 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_rename.h" 11104 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle.h" 11105 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle_jet.h" 11106 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/jemalloc_internal_defs.h" 11107 cfghdrs_out="${cfghdrs_out} test/include/test/jemalloc_test_defs.h" 11108 11109 cfghdrs_tup="include/jemalloc/jemalloc_defs.h:include/jemalloc/jemalloc_defs.h.in" 11110 cfghdrs_tup="${cfghdrs_tup} include/jemalloc/internal/jemalloc_internal_defs.h:include/jemalloc/internal/jemalloc_internal_defs.h.in" 11111 cfghdrs_tup="${cfghdrs_tup} test/include/test/jemalloc_test_defs.h:test/include/test/jemalloc_test_defs.h.in" 11112 11113 11114 # Check whether --enable-debug was given. 11115 if test "${enable_debug+set}" = set; then : 11116 enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then 11117 enable_debug="0" 11118 else 11119 enable_debug="1" 11120 fi 11121 11122 else 11123 enable_debug="0" 11124 11125 fi 11126 11127 if test "x$enable_debug" = "x1" ; then 11128 11129 $as_echo "#define JEMALLOC_DEBUG " >>confdefs.h 11130 11131 fi 11132 11133 11134 if test "x$enable_debug" = "x0" ; then 11135 if test "x$GCC" = "xyes" ; then 11136 11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5 11138 $as_echo_n "checking whether compiler supports -O3... " >&6; } 11139 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 11140 T_APPEND_V=-O3 11141 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 11142 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 11143 else 11144 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 11145 fi 11146 11147 11148 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 11149 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 11150 else 11151 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 11152 fi 11153 11154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11155 /* end confdefs.h. */ 11156 11157 11158 int 11159 main () 11160 { 11161 11162 return 0; 11163 11164 ; 11165 return 0; 11166 } 11167 _ACEOF 11168 if ac_fn_c_try_compile "$LINENO"; then : 11169 je_cv_cflags_added=-O3 11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11171 $as_echo "yes" >&6; } 11172 else 11173 je_cv_cflags_added= 11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11175 $as_echo "no" >&6; } 11176 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 11177 11178 fi 11179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11180 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 11181 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 11182 else 11183 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 11184 fi 11185 11186 11187 11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5 11189 $as_echo_n "checking whether compiler supports -O3... " >&6; } 11190 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}" 11191 T_APPEND_V=-O3 11192 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 11193 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}" 11194 else 11195 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}" 11196 fi 11197 11198 11199 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 11200 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 11201 else 11202 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 11203 fi 11204 11205 ac_ext=cpp 11206 ac_cpp='$CXXCPP $CPPFLAGS' 11207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11210 11211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11212 /* end confdefs.h. */ 11213 11214 11215 int 11216 main () 11217 { 11218 11219 return 0; 11220 11221 ; 11222 return 0; 11223 } 11224 _ACEOF 11225 if ac_fn_cxx_try_compile "$LINENO"; then : 11226 je_cv_cxxflags_added=-O3 11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11228 $as_echo "yes" >&6; } 11229 else 11230 je_cv_cxxflags_added= 11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11232 $as_echo "no" >&6; } 11233 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}" 11234 11235 fi 11236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11237 ac_ext=c 11238 ac_cpp='$CPP $CPPFLAGS' 11239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11241 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11242 11243 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 11244 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 11245 else 11246 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 11247 fi 11248 11249 11250 11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5 11252 $as_echo_n "checking whether compiler supports -funroll-loops... " >&6; } 11253 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 11254 T_APPEND_V=-funroll-loops 11255 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 11256 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 11257 else 11258 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 11259 fi 11260 11261 11262 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 11263 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 11264 else 11265 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 11266 fi 11267 11268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11269 /* end confdefs.h. */ 11270 11271 11272 int 11273 main () 11274 { 11275 11276 return 0; 11277 11278 ; 11279 return 0; 11280 } 11281 _ACEOF 11282 if ac_fn_c_try_compile "$LINENO"; then : 11283 je_cv_cflags_added=-funroll-loops 11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11285 $as_echo "yes" >&6; } 11286 else 11287 je_cv_cflags_added= 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11289 $as_echo "no" >&6; } 11290 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 11291 11292 fi 11293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11294 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 11295 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 11296 else 11297 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 11298 fi 11299 11300 11301 elif test "x$je_cv_msvc" = "xyes" ; then 11302 11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5 11304 $as_echo_n "checking whether compiler supports -O2... " >&6; } 11305 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 11306 T_APPEND_V=-O2 11307 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 11308 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 11309 else 11310 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 11311 fi 11312 11313 11314 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 11315 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 11316 else 11317 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 11318 fi 11319 11320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11321 /* end confdefs.h. */ 11322 11323 11324 int 11325 main () 11326 { 11327 11328 return 0; 11329 11330 ; 11331 return 0; 11332 } 11333 _ACEOF 11334 if ac_fn_c_try_compile "$LINENO"; then : 11335 je_cv_cflags_added=-O2 11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11337 $as_echo "yes" >&6; } 11338 else 11339 je_cv_cflags_added= 11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11341 $as_echo "no" >&6; } 11342 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 11343 11344 fi 11345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11346 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 11347 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 11348 else 11349 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 11350 fi 11351 11352 11353 11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5 11355 $as_echo_n "checking whether compiler supports -O2... " >&6; } 11356 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}" 11357 T_APPEND_V=-O2 11358 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 11359 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}" 11360 else 11361 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}" 11362 fi 11363 11364 11365 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 11366 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 11367 else 11368 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 11369 fi 11370 11371 ac_ext=cpp 11372 ac_cpp='$CXXCPP $CPPFLAGS' 11373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11376 11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11378 /* end confdefs.h. */ 11379 11380 11381 int 11382 main () 11383 { 11384 11385 return 0; 11386 11387 ; 11388 return 0; 11389 } 11390 _ACEOF 11391 if ac_fn_cxx_try_compile "$LINENO"; then : 11392 je_cv_cxxflags_added=-O2 11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11394 $as_echo "yes" >&6; } 11395 else 11396 je_cv_cxxflags_added= 11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11398 $as_echo "no" >&6; } 11399 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}" 11400 11401 fi 11402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11403 ac_ext=c 11404 ac_cpp='$CPP $CPPFLAGS' 11405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11407 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11408 11409 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 11410 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 11411 else 11412 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 11413 fi 11414 11415 11416 else 11417 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5 11419 $as_echo_n "checking whether compiler supports -O... " >&6; } 11420 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 11421 T_APPEND_V=-O 11422 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 11423 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 11424 else 11425 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 11426 fi 11427 11428 11429 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 11430 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 11431 else 11432 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 11433 fi 11434 11435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11436 /* end confdefs.h. */ 11437 11438 11439 int 11440 main () 11441 { 11442 11443 return 0; 11444 11445 ; 11446 return 0; 11447 } 11448 _ACEOF 11449 if ac_fn_c_try_compile "$LINENO"; then : 11450 je_cv_cflags_added=-O 11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11452 $as_echo "yes" >&6; } 11453 else 11454 je_cv_cflags_added= 11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11456 $as_echo "no" >&6; } 11457 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 11458 11459 fi 11460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11461 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 11462 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 11463 else 11464 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 11465 fi 11466 11467 11468 11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5 11470 $as_echo_n "checking whether compiler supports -O... " >&6; } 11471 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}" 11472 T_APPEND_V=-O 11473 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 11474 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}" 11475 else 11476 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}" 11477 fi 11478 11479 11480 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 11481 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 11482 else 11483 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 11484 fi 11485 11486 ac_ext=cpp 11487 ac_cpp='$CXXCPP $CPPFLAGS' 11488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11491 11492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11493 /* end confdefs.h. */ 11494 11495 11496 int 11497 main () 11498 { 11499 11500 return 0; 11501 11502 ; 11503 return 0; 11504 } 11505 _ACEOF 11506 if ac_fn_cxx_try_compile "$LINENO"; then : 11507 je_cv_cxxflags_added=-O 11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11509 $as_echo "yes" >&6; } 11510 else 11511 je_cv_cxxflags_added= 11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11513 $as_echo "no" >&6; } 11514 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}" 11515 11516 fi 11517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11518 ac_ext=c 11519 ac_cpp='$CPP $CPPFLAGS' 11520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11522 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11523 11524 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 11525 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 11526 else 11527 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 11528 fi 11529 11530 11531 fi 11532 fi 11533 11534 # Check whether --enable-stats was given. 11535 if test "${enable_stats+set}" = set; then : 11536 enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then 11537 enable_stats="0" 11538 else 11539 enable_stats="1" 11540 fi 11541 11542 else 11543 enable_stats="1" 11544 11545 fi 11546 11547 if test "x$enable_stats" = "x1" ; then 11548 11549 $as_echo "#define JEMALLOC_STATS " >>confdefs.h 11550 11551 fi 11552 11553 11554 # Check whether --enable-user_config was given. 11555 if test "${enable_user_config+set}" = set; then : 11556 enableval=$enable_user_config; if test "x$enable_user_config" = "xno" ; then 11557 enable_user_config="0" 11558 else 11559 enable_user_config="1" 11560 fi 11561 11562 else 11563 enable_user_config="1" 11564 11565 fi 11566 11567 if test "x$enable_user_config" = "x1" ; then 11568 11569 $as_echo "#define JEMALLOC_CONFIG_ENV " >>confdefs.h 11570 11571 11572 $as_echo "#define JEMALLOC_CONFIG_FILE " >>confdefs.h 11573 11574 fi 11575 11576 # Check whether --enable-experimental_smallocx was given. 11577 if test "${enable_experimental_smallocx+set}" = set; then : 11578 enableval=$enable_experimental_smallocx; if test "x$enable_experimental_smallocx" = "xno" ; then 11579 enable_experimental_smallocx="0" 11580 else 11581 enable_experimental_smallocx="1" 11582 fi 11583 11584 else 11585 enable_experimental_smallocx="0" 11586 11587 fi 11588 11589 if test "x$enable_experimental_smallocx" = "x1" ; then 11590 11591 $as_echo "#define JEMALLOC_EXPERIMENTAL_SMALLOCX_API " >>confdefs.h 11592 11593 fi 11594 11595 11596 # Check whether --enable-prof was given. 11597 if test "${enable_prof+set}" = set; then : 11598 enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then 11599 enable_prof="0" 11600 else 11601 enable_prof="1" 11602 fi 11603 11604 else 11605 enable_prof="0" 11606 11607 fi 11608 11609 if test "x$enable_prof" = "x1" ; then 11610 backtrace_method="" 11611 else 11612 backtrace_method="N/A" 11613 fi 11614 11615 # Check whether --enable-prof-libunwind was given. 11616 if test "${enable_prof_libunwind+set}" = set; then : 11617 enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then 11618 enable_prof_libunwind="0" 11619 else 11620 enable_prof_libunwind="1" 11621 if test "x$enable_prof" = "x0" ; then 11622 as_fn_error $? "--enable-prof-libunwind should only be used with --enable-prof" "$LINENO" 5 11623 fi 11624 fi 11625 11626 else 11627 enable_prof_libunwind="0" 11628 11629 fi 11630 11631 11632 # Check whether --with-static_libunwind was given. 11633 if test "${with_static_libunwind+set}" = set; then : 11634 withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then 11635 LUNWIND="-lunwind" 11636 else 11637 if test ! -f "$with_static_libunwind" ; then 11638 as_fn_error $? "Static libunwind not found: $with_static_libunwind" "$LINENO" 5 11639 fi 11640 LUNWIND="$with_static_libunwind" 11641 fi 11642 else 11643 LUNWIND="-lunwind" 11644 11645 fi 11646 11647 if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then 11648 for ac_header in libunwind.h 11649 do : 11650 ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default" 11651 if test "x$ac_cv_header_libunwind_h" = xyes; then : 11652 cat >>confdefs.h <<_ACEOF 11653 #define HAVE_LIBUNWIND_H 1 11654 _ACEOF 11655 11656 else 11657 enable_prof_libunwind="0" 11658 fi 11659 11660 done 11661 11662 if test "x$LUNWIND" = "x-lunwind" ; then 11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unw_backtrace in -lunwind" >&5 11664 $as_echo_n "checking for unw_backtrace in -lunwind... " >&6; } 11665 if ${ac_cv_lib_unwind_unw_backtrace+:} false; then : 11666 $as_echo_n "(cached) " >&6 11667 else 11668 ac_check_lib_save_LIBS=$LIBS 11669 LIBS="-lunwind $LIBS" 11670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11671 /* end confdefs.h. */ 11672 11673 /* Override any GCC internal prototype to avoid an error. 11674 Use char because int might match the return type of a GCC 11675 builtin and then its argument prototype would still apply. */ 11676 #ifdef __cplusplus 11677 extern "C" 11678 #endif 11679 char unw_backtrace (); 11680 int 11681 main () 11682 { 11683 return unw_backtrace (); 11684 ; 11685 return 0; 11686 } 11687 _ACEOF 11688 if ac_fn_c_try_link "$LINENO"; then : 11689 ac_cv_lib_unwind_unw_backtrace=yes 11690 else 11691 ac_cv_lib_unwind_unw_backtrace=no 11692 fi 11693 rm -f core conftest.err conftest.$ac_objext \ 11694 conftest$ac_exeext conftest.$ac_ext 11695 LIBS=$ac_check_lib_save_LIBS 11696 fi 11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_unw_backtrace" >&5 11698 $as_echo "$ac_cv_lib_unwind_unw_backtrace" >&6; } 11699 if test "x$ac_cv_lib_unwind_unw_backtrace" = xyes; then : 11700 T_APPEND_V=$LUNWIND 11701 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 11702 LIBS="${LIBS}${T_APPEND_V}" 11703 else 11704 LIBS="${LIBS} ${T_APPEND_V}" 11705 fi 11706 11707 11708 else 11709 enable_prof_libunwind="0" 11710 fi 11711 11712 else 11713 T_APPEND_V=$LUNWIND 11714 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 11715 LIBS="${LIBS}${T_APPEND_V}" 11716 else 11717 LIBS="${LIBS} ${T_APPEND_V}" 11718 fi 11719 11720 11721 fi 11722 if test "x${enable_prof_libunwind}" = "x1" ; then 11723 backtrace_method="libunwind" 11724 11725 $as_echo "#define JEMALLOC_PROF_LIBUNWIND " >>confdefs.h 11726 11727 fi 11728 fi 11729 11730 if test `uname -s` = "Linux" 11731 then 11732 # Check whether --enable-prof-frameptr was given. 11733 if test "${enable_prof_frameptr+set}" = set; then : 11734 enableval=$enable_prof_frameptr; if test "x$enable_prof_frameptr" = "xno" ; then 11735 enable_prof_frameptr="0" 11736 else 11737 enable_prof_frameptr="1" 11738 if test "x$enable_prof" = "x0" ; then 11739 as_fn_error $? "--enable-prof-frameptr should only be used with --enable-prof" "$LINENO" 5 11740 fi 11741 fi 11742 11743 else 11744 enable_prof_frameptr="0" 11745 11746 fi 11747 11748 if test "x$backtrace_method" = "x" -a "x$enable_prof_frameptr" = "x1" \ 11749 -a "x$GCC" = "xyes" ; then 11750 11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fno-omit-frame-pointer" >&5 11752 $as_echo_n "checking whether compiler supports -fno-omit-frame-pointer... " >&6; } 11753 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 11754 T_APPEND_V=-fno-omit-frame-pointer 11755 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 11756 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 11757 else 11758 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 11759 fi 11760 11761 11762 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 11763 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 11764 else 11765 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 11766 fi 11767 11768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11769 /* end confdefs.h. */ 11770 11771 11772 int 11773 main () 11774 { 11775 11776 return 0; 11777 11778 ; 11779 return 0; 11780 } 11781 _ACEOF 11782 if ac_fn_c_try_compile "$LINENO"; then : 11783 je_cv_cflags_added=-fno-omit-frame-pointer 11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11785 $as_echo "yes" >&6; } 11786 else 11787 je_cv_cflags_added= 11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11789 $as_echo "no" >&6; } 11790 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 11791 11792 fi 11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11794 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 11795 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 11796 else 11797 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 11798 fi 11799 11800 11801 backtrace_method="frame pointer linux" 11802 11803 $as_echo "#define JEMALLOC_PROF_FRAME_POINTER " >>confdefs.h 11804 11805 else 11806 enable_prof_frameptr="0" 11807 fi 11808 else 11809 enable_prof_frameptr="0" 11810 fi 11811 11812 # Check whether --enable-prof-libgcc was given. 11813 if test "${enable_prof_libgcc+set}" = set; then : 11814 enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then 11815 enable_prof_libgcc="0" 11816 else 11817 enable_prof_libgcc="1" 11818 fi 11819 11820 else 11821 enable_prof_libgcc="1" 11822 11823 fi 11824 11825 if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \ 11826 -a "x$GCC" = "xyes" ; then 11827 for ac_header in unwind.h 11828 do : 11829 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default" 11830 if test "x$ac_cv_header_unwind_h" = xyes; then : 11831 cat >>confdefs.h <<_ACEOF 11832 #define HAVE_UNWIND_H 1 11833 _ACEOF 11834 11835 else 11836 enable_prof_libgcc="0" 11837 fi 11838 11839 done 11840 11841 if test "x${enable_prof_libgcc}" = "x1" ; then 11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5 11843 $as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; } 11844 if ${ac_cv_lib_gcc__Unwind_Backtrace+:} false; then : 11845 $as_echo_n "(cached) " >&6 11846 else 11847 ac_check_lib_save_LIBS=$LIBS 11848 LIBS="-lgcc $LIBS" 11849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11850 /* end confdefs.h. */ 11851 11852 /* Override any GCC internal prototype to avoid an error. 11853 Use char because int might match the return type of a GCC 11854 builtin and then its argument prototype would still apply. */ 11855 #ifdef __cplusplus 11856 extern "C" 11857 #endif 11858 char _Unwind_Backtrace (); 11859 int 11860 main () 11861 { 11862 return _Unwind_Backtrace (); 11863 ; 11864 return 0; 11865 } 11866 _ACEOF 11867 if ac_fn_c_try_link "$LINENO"; then : 11868 ac_cv_lib_gcc__Unwind_Backtrace=yes 11869 else 11870 ac_cv_lib_gcc__Unwind_Backtrace=no 11871 fi 11872 rm -f core conftest.err conftest.$ac_objext \ 11873 conftest$ac_exeext conftest.$ac_ext 11874 LIBS=$ac_check_lib_save_LIBS 11875 fi 11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5 11877 $as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; } 11878 if test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes; then : 11879 T_APPEND_V=-lgcc 11880 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 11881 LIBS="${LIBS}${T_APPEND_V}" 11882 else 11883 LIBS="${LIBS} ${T_APPEND_V}" 11884 fi 11885 11886 11887 else 11888 enable_prof_libgcc="0" 11889 fi 11890 11891 fi 11892 if test "x${enable_prof_libgcc}" = "x1" ; then 11893 backtrace_method="libgcc" 11894 11895 $as_echo "#define JEMALLOC_PROF_LIBGCC " >>confdefs.h 11896 11897 fi 11898 else 11899 enable_prof_libgcc="0" 11900 fi 11901 11902 # Check whether --enable-prof-gcc was given. 11903 if test "${enable_prof_gcc+set}" = set; then : 11904 enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then 11905 enable_prof_gcc="0" 11906 else 11907 enable_prof_gcc="1" 11908 fi 11909 11910 else 11911 enable_prof_gcc="1" 11912 11913 fi 11914 11915 if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \ 11916 -a "x$GCC" = "xyes" ; then 11917 11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fno-omit-frame-pointer" >&5 11919 $as_echo_n "checking whether compiler supports -fno-omit-frame-pointer... " >&6; } 11920 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 11921 T_APPEND_V=-fno-omit-frame-pointer 11922 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 11923 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 11924 else 11925 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 11926 fi 11927 11928 11929 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 11930 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 11931 else 11932 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 11933 fi 11934 11935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11936 /* end confdefs.h. */ 11937 11938 11939 int 11940 main () 11941 { 11942 11943 return 0; 11944 11945 ; 11946 return 0; 11947 } 11948 _ACEOF 11949 if ac_fn_c_try_compile "$LINENO"; then : 11950 je_cv_cflags_added=-fno-omit-frame-pointer 11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11952 $as_echo "yes" >&6; } 11953 else 11954 je_cv_cflags_added= 11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11956 $as_echo "no" >&6; } 11957 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 11958 11959 fi 11960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11961 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 11962 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 11963 else 11964 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 11965 fi 11966 11967 11968 backtrace_method="gcc intrinsics" 11969 11970 $as_echo "#define JEMALLOC_PROF_GCC " >>confdefs.h 11971 11972 else 11973 enable_prof_gcc="0" 11974 fi 11975 11976 if test "x$backtrace_method" = "x" ; then 11977 backtrace_method="none (disabling profiling)" 11978 enable_prof="0" 11979 fi 11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5 11981 $as_echo_n "checking configured backtracing method... " >&6; } 11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5 11983 $as_echo "$backtrace_method" >&6; } 11984 if test "x$enable_prof" = "x1" ; then 11985 T_APPEND_V=$LM 11986 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 11987 LIBS="${LIBS}${T_APPEND_V}" 11988 else 11989 LIBS="${LIBS} ${T_APPEND_V}" 11990 fi 11991 11992 11993 11994 11995 $as_echo "#define JEMALLOC_PROF " >>confdefs.h 11996 11997 fi 11998 11999 12000 if test "x${maps_coalesce}" = "x1" ; then 12001 12002 $as_echo "#define JEMALLOC_MAPS_COALESCE " >>confdefs.h 12003 12004 fi 12005 12006 if test "x$default_retain" = "x1" ; then 12007 12008 $as_echo "#define JEMALLOC_RETAIN " >>confdefs.h 12009 12010 fi 12011 12012 if test "x$zero_realloc_default_free" = "x1" ; then 12013 12014 $as_echo "#define JEMALLOC_ZERO_REALLOC_DEFAULT_FREE " >>confdefs.h 12015 12016 fi 12017 12018 # Check whether --enable-dss was given. 12019 if test "${enable_dss+set}" = set; then : 12020 enableval=$enable_dss; if test "x$enable_dss" = "xno" ; then 12021 enable_dss="0" 12022 else 12023 enable_dss="1" 12024 fi 12025 12026 else 12027 enable_dss="1" 12028 12029 fi 12030 12031 12032 have_dss="1" 12033 ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk" 12034 if test "x$ac_cv_func_sbrk" = xyes; then : 12035 have_sbrk="1" 12036 else 12037 have_sbrk="0" 12038 fi 12039 12040 if test "x$have_sbrk" = "x1" ; then 12041 if test "x$sbrk_deprecated" = "x1" ; then 12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling dss allocation because sbrk is deprecated" >&5 12043 $as_echo "Disabling dss allocation because sbrk is deprecated" >&6; } 12044 have_dss="0" 12045 fi 12046 else 12047 have_dss="0" 12048 fi 12049 12050 if test "x$have_dss" = "x1" -a "x$enable_dss" = "x1" ; then 12051 12052 $as_echo "#define JEMALLOC_DSS " >>confdefs.h 12053 12054 fi 12055 12056 # Check whether --enable-fill was given. 12057 if test "${enable_fill+set}" = set; then : 12058 enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then 12059 enable_fill="0" 12060 else 12061 enable_fill="1" 12062 fi 12063 12064 else 12065 enable_fill="1" 12066 12067 fi 12068 12069 if test "x$enable_fill" = "x1" ; then 12070 12071 $as_echo "#define JEMALLOC_FILL " >>confdefs.h 12072 12073 fi 12074 12075 12076 # Check whether --enable-utrace was given. 12077 if test "${enable_utrace+set}" = set; then : 12078 enableval=$enable_utrace; if test "x$enable_utrace" = "xno" ; then 12079 enable_utrace="0" 12080 else 12081 enable_utrace="1" 12082 fi 12083 12084 else 12085 enable_utrace="0" 12086 12087 fi 12088 12089 12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5 12091 $as_echo_n "checking whether utrace(2) is compilable... " >&6; } 12092 if ${je_cv_utrace+:} false; then : 12093 $as_echo_n "(cached) " >&6 12094 else 12095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12096 /* end confdefs.h. */ 12097 12098 #include <sys/types.h> 12099 #include <sys/param.h> 12100 #include <sys/time.h> 12101 #include <sys/uio.h> 12102 #include <sys/ktrace.h> 12103 12104 int 12105 main () 12106 { 12107 12108 utrace((void *)0, 0); 12109 12110 ; 12111 return 0; 12112 } 12113 _ACEOF 12114 if ac_fn_c_try_link "$LINENO"; then : 12115 je_cv_utrace=yes 12116 else 12117 je_cv_utrace=no 12118 fi 12119 rm -f core conftest.err conftest.$ac_objext \ 12120 conftest$ac_exeext conftest.$ac_ext 12121 fi 12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5 12123 $as_echo "$je_cv_utrace" >&6; } 12124 12125 if test "x${je_cv_utrace}" = "xno" ; then 12126 12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) with label is compilable" >&5 12128 $as_echo_n "checking whether utrace(2) with label is compilable... " >&6; } 12129 if ${je_cv_utrace_label+:} false; then : 12130 $as_echo_n "(cached) " >&6 12131 else 12132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12133 /* end confdefs.h. */ 12134 12135 #include <sys/types.h> 12136 #include <sys/param.h> 12137 #include <sys/time.h> 12138 #include <sys/uio.h> 12139 #include <sys/ktrace.h> 12140 12141 int 12142 main () 12143 { 12144 12145 utrace((void *)0, (void *)0, 0); 12146 12147 ; 12148 return 0; 12149 } 12150 _ACEOF 12151 if ac_fn_c_try_link "$LINENO"; then : 12152 je_cv_utrace_label=yes 12153 else 12154 je_cv_utrace_label=no 12155 fi 12156 rm -f core conftest.err conftest.$ac_objext \ 12157 conftest$ac_exeext conftest.$ac_ext 12158 fi 12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace_label" >&5 12160 $as_echo "$je_cv_utrace_label" >&6; } 12161 12162 if test "x${je_cv_utrace_label}" = "xno"; then 12163 enable_utrace="0" 12164 fi 12165 if test "x$enable_utrace" = "x1" ; then 12166 12167 $as_echo "#define JEMALLOC_UTRACE_LABEL " >>confdefs.h 12168 12169 fi 12170 else 12171 if test "x$enable_utrace" = "x1" ; then 12172 12173 $as_echo "#define JEMALLOC_UTRACE " >>confdefs.h 12174 12175 fi 12176 fi 12177 12178 12179 # Check whether --enable-experimental-sdt was given. 12180 if test "${enable_experimental_sdt+set}" = set; then : 12181 enableval=$enable_experimental_sdt; if test "x$enable_experimental_sdt" = "xno" ; then 12182 enable_experimental_sdt="0" 12183 else 12184 12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether systemtap sdt is compilable" >&5 12186 $as_echo_n "checking whether systemtap sdt is compilable... " >&6; } 12187 if ${je_cv_stap_sdt+:} false; then : 12188 $as_echo_n "(cached) " >&6 12189 else 12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12191 /* end confdefs.h. */ 12192 12193 #include <sys/sdt.h> 12194 12195 int 12196 main () 12197 { 12198 12199 void foo(int i, void *p) { STAP_PROBE2(jemalloc, test, i, p); } 12200 12201 ; 12202 return 0; 12203 } 12204 _ACEOF 12205 if ac_fn_c_try_link "$LINENO"; then : 12206 je_cv_stap_sdt=yes 12207 else 12208 je_cv_stap_sdt=no 12209 fi 12210 rm -f core conftest.err conftest.$ac_objext \ 12211 conftest$ac_exeext conftest.$ac_ext 12212 fi 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_stap_sdt" >&5 12214 $as_echo "$je_cv_stap_sdt" >&6; } 12215 12216 12217 if test "x${je_cv_stap_sdt}" = "xyes" ; then 12218 enable_experimental_sdt="1" 12219 elif test "x${abi}" = "xelf" ; then 12220 case "${host}" in 12221 *-*-linux-android*) 12222 case "${host_cpu}" in aarch64|x86_64) 12223 enable_experimental_sdt="2" 12224 ;; 12225 esac 12226 ;; 12227 *-*-linux*) 12228 case "${host_cpu}" in x86_64|aarch64|arm*) 12229 enable_experimental_sdt="2" 12230 ;; 12231 esac 12232 ;; 12233 *) 12234 enable_experimental_sdt="0" 12235 as_fn_error $? "Unsupported sdt on this platform" "$LINENO" 5 12236 ;; 12237 esac 12238 else 12239 as_fn_error $? "Unsupported sdt on this platform" "$LINENO" 5 12240 fi 12241 fi 12242 12243 else 12244 enable_experimental_sdt="0" 12245 12246 fi 12247 12248 12249 if test "x$enable_experimental_sdt" = "x1" ; then 12250 12251 $as_echo "#define JEMALLOC_EXPERIMENTAL_USDT_STAP " >>confdefs.h 12252 12253 elif test "x$enable_experimental_sdt" = "x2"; then 12254 12255 $as_echo "#define JEMALLOC_EXPERIMENTAL_USDT_CUSTOM " >>confdefs.h 12256 12257 fi 12258 12259 12260 # Check whether --enable-xmalloc was given. 12261 if test "${enable_xmalloc+set}" = set; then : 12262 enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then 12263 enable_xmalloc="0" 12264 else 12265 enable_xmalloc="1" 12266 fi 12267 12268 else 12269 enable_xmalloc="0" 12270 12271 fi 12272 12273 if test "x$enable_xmalloc" = "x1" ; then 12274 12275 $as_echo "#define JEMALLOC_XMALLOC " >>confdefs.h 12276 12277 fi 12278 12279 12280 # Check whether --enable-cache-oblivious was given. 12281 if test "${enable_cache_oblivious+set}" = set; then : 12282 enableval=$enable_cache_oblivious; if test "x$enable_cache_oblivious" = "xno" ; then 12283 enable_cache_oblivious="0" 12284 else 12285 enable_cache_oblivious="1" 12286 fi 12287 12288 else 12289 enable_cache_oblivious="1" 12290 12291 fi 12292 12293 if test "x$enable_cache_oblivious" = "x1" ; then 12294 12295 $as_echo "#define JEMALLOC_CACHE_OBLIVIOUS " >>confdefs.h 12296 12297 fi 12298 12299 12300 # Check whether --enable-log was given. 12301 if test "${enable_log+set}" = set; then : 12302 enableval=$enable_log; if test "x$enable_log" = "xno" ; then 12303 enable_log="0" 12304 else 12305 enable_log="1" 12306 fi 12307 12308 else 12309 enable_log="0" 12310 12311 fi 12312 12313 if test "x$enable_log" = "x1" ; then 12314 12315 $as_echo "#define JEMALLOC_LOG " >>confdefs.h 12316 12317 fi 12318 12319 12320 # Check whether --enable-readlinkat was given. 12321 if test "${enable_readlinkat+set}" = set; then : 12322 enableval=$enable_readlinkat; if test "x$enable_readlinkat" = "xno" ; then 12323 enable_readlinkat="0" 12324 else 12325 enable_readlinkat="1" 12326 fi 12327 12328 else 12329 enable_readlinkat="0" 12330 12331 fi 12332 12333 if test "x$enable_readlinkat" = "x1" ; then 12334 12335 $as_echo "#define JEMALLOC_READLINKAT " >>confdefs.h 12336 12337 fi 12338 12339 12340 # Check whether --enable-force-getenv was given. 12341 if test "${enable_force_getenv+set}" = set; then : 12342 enableval=$enable_force_getenv; if test "x$enable_force_getenv" = "xno" ; then 12343 enable_force_getenv="0" 12344 else 12345 enable_force_getenv="1" 12346 fi 12347 12348 else 12349 enable_force_getenv="0" 12350 12351 fi 12352 12353 if test "x$enable_force_getenv" = "x1" ; then 12354 12355 $as_echo "#define JEMALLOC_FORCE_GETENV " >>confdefs.h 12356 12357 fi 12358 12359 12360 # Check whether --enable-opt-safety-checks was given. 12361 if test "${enable_opt_safety_checks+set}" = set; then : 12362 enableval=$enable_opt_safety_checks; if test "x$enable_opt_safety_checks" = "xno" ; then 12363 enable_opt_safety_checks="0" 12364 else 12365 enable_opt_safety_checks="1" 12366 fi 12367 12368 else 12369 enable_opt_safety_checks="0" 12370 12371 fi 12372 12373 if test "x$enable_opt_safety_checks" = "x1" ; then 12374 12375 $as_echo "#define JEMALLOC_OPT_SAFETY_CHECKS " >>confdefs.h 12376 12377 fi 12378 12379 12380 # Check whether --enable-opt-size-checks was given. 12381 if test "${enable_opt_size_checks+set}" = set; then : 12382 enableval=$enable_opt_size_checks; if test "x$enable_opt_size_checks" = "xno" ; then 12383 enable_opt_size_checks="0" 12384 else 12385 enable_opt_size_checks="1" 12386 fi 12387 12388 else 12389 enable_opt_size_checks="0" 12390 12391 fi 12392 12393 if test "x$enable_opt_size_checks" = "x1" ; then 12394 12395 $as_echo "#define JEMALLOC_OPT_SIZE_CHECKS " >>confdefs.h 12396 12397 fi 12398 12399 12400 # Check whether --enable-uaf-detection was given. 12401 if test "${enable_uaf_detection+set}" = set; then : 12402 enableval=$enable_uaf_detection; if test "x$enable_uaf_detection" = "xno" ; then 12403 enable_uaf_detection="0" 12404 else 12405 enable_uaf_detection="1" 12406 fi 12407 12408 else 12409 enable_uaf_detection="0" 12410 12411 fi 12412 12413 if test "x$enable_uaf_detection" = "x1" ; then 12414 12415 $as_echo "#define JEMALLOC_UAF_DETECTION " >>confdefs.h 12416 12417 fi 12418 12419 12420 12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_unreachable is compilable" >&5 12422 $as_echo_n "checking whether a program using __builtin_unreachable is compilable... " >&6; } 12423 if ${je_cv_gcc_builtin_unreachable+:} false; then : 12424 $as_echo_n "(cached) " >&6 12425 else 12426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12427 /* end confdefs.h. */ 12428 12429 void foo (void) { 12430 __builtin_unreachable(); 12431 } 12432 12433 int 12434 main () 12435 { 12436 12437 { 12438 foo(); 12439 } 12440 12441 ; 12442 return 0; 12443 } 12444 _ACEOF 12445 if ac_fn_c_try_link "$LINENO"; then : 12446 je_cv_gcc_builtin_unreachable=yes 12447 else 12448 je_cv_gcc_builtin_unreachable=no 12449 fi 12450 rm -f core conftest.err conftest.$ac_objext \ 12451 conftest$ac_exeext conftest.$ac_ext 12452 fi 12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_unreachable" >&5 12454 $as_echo "$je_cv_gcc_builtin_unreachable" >&6; } 12455 12456 if test "x${je_cv_gcc_builtin_unreachable}" = "xyes" ; then 12457 12458 $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable" >>confdefs.h 12459 12460 else 12461 12462 $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE abort" >>confdefs.h 12463 12464 fi 12465 12466 12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_ffsl is compilable" >&5 12468 $as_echo_n "checking whether a program using __builtin_ffsl is compilable... " >&6; } 12469 if ${je_cv_gcc_builtin_ffsl+:} false; then : 12470 $as_echo_n "(cached) " >&6 12471 else 12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12473 /* end confdefs.h. */ 12474 12475 #include <stdio.h> 12476 #include <strings.h> 12477 #include <string.h> 12478 12479 int 12480 main () 12481 { 12482 12483 { 12484 int rv = __builtin_ffsl(0x08); 12485 printf("%d\n", rv); 12486 } 12487 12488 ; 12489 return 0; 12490 } 12491 _ACEOF 12492 if ac_fn_c_try_link "$LINENO"; then : 12493 je_cv_gcc_builtin_ffsl=yes 12494 else 12495 je_cv_gcc_builtin_ffsl=no 12496 fi 12497 rm -f core conftest.err conftest.$ac_objext \ 12498 conftest$ac_exeext conftest.$ac_ext 12499 fi 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_ffsl" >&5 12501 $as_echo "$je_cv_gcc_builtin_ffsl" >&6; } 12502 12503 if test "x${je_cv_gcc_builtin_ffsl}" = "xyes" ; then 12504 12505 $as_echo "#define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll" >>confdefs.h 12506 12507 12508 $as_echo "#define JEMALLOC_INTERNAL_FFSL __builtin_ffsl" >>confdefs.h 12509 12510 12511 $as_echo "#define JEMALLOC_INTERNAL_FFS __builtin_ffs" >>confdefs.h 12512 12513 else 12514 12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5 12516 $as_echo_n "checking whether a program using ffsl is compilable... " >&6; } 12517 if ${je_cv_function_ffsl+:} false; then : 12518 $as_echo_n "(cached) " >&6 12519 else 12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12521 /* end confdefs.h. */ 12522 12523 #include <stdio.h> 12524 #include <strings.h> 12525 #include <string.h> 12526 12527 int 12528 main () 12529 { 12530 12531 { 12532 int rv = ffsl(0x08); 12533 printf("%d\n", rv); 12534 } 12535 12536 ; 12537 return 0; 12538 } 12539 _ACEOF 12540 if ac_fn_c_try_link "$LINENO"; then : 12541 je_cv_function_ffsl=yes 12542 else 12543 je_cv_function_ffsl=no 12544 fi 12545 rm -f core conftest.err conftest.$ac_objext \ 12546 conftest$ac_exeext conftest.$ac_ext 12547 fi 12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5 12549 $as_echo "$je_cv_function_ffsl" >&6; } 12550 12551 if test "x${je_cv_function_ffsl}" = "xyes" ; then 12552 12553 $as_echo "#define JEMALLOC_INTERNAL_FFSLL ffsll" >>confdefs.h 12554 12555 12556 $as_echo "#define JEMALLOC_INTERNAL_FFSL ffsl" >>confdefs.h 12557 12558 12559 $as_echo "#define JEMALLOC_INTERNAL_FFS ffs" >>confdefs.h 12560 12561 else 12562 as_fn_error $? "Cannot build without ffsl(3) or __builtin_ffsl()" "$LINENO" 5 12563 fi 12564 fi 12565 12566 12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_popcountl is compilable" >&5 12568 $as_echo_n "checking whether a program using __builtin_popcountl is compilable... " >&6; } 12569 if ${je_cv_gcc_builtin_popcountl+:} false; then : 12570 $as_echo_n "(cached) " >&6 12571 else 12572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12573 /* end confdefs.h. */ 12574 12575 #include <stdio.h> 12576 #include <strings.h> 12577 #include <string.h> 12578 12579 int 12580 main () 12581 { 12582 12583 { 12584 int rv = __builtin_popcountl(0x08); 12585 printf("%d\n", rv); 12586 } 12587 12588 ; 12589 return 0; 12590 } 12591 _ACEOF 12592 if ac_fn_c_try_link "$LINENO"; then : 12593 je_cv_gcc_builtin_popcountl=yes 12594 else 12595 je_cv_gcc_builtin_popcountl=no 12596 fi 12597 rm -f core conftest.err conftest.$ac_objext \ 12598 conftest$ac_exeext conftest.$ac_ext 12599 fi 12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_popcountl" >&5 12601 $as_echo "$je_cv_gcc_builtin_popcountl" >&6; } 12602 12603 if test "x${je_cv_gcc_builtin_popcountl}" = "xyes" ; then 12604 12605 $as_echo "#define JEMALLOC_INTERNAL_POPCOUNT __builtin_popcount" >>confdefs.h 12606 12607 12608 $as_echo "#define JEMALLOC_INTERNAL_POPCOUNTL __builtin_popcountl" >>confdefs.h 12609 12610 12611 $as_echo "#define JEMALLOC_INTERNAL_POPCOUNTLL __builtin_popcountll" >>confdefs.h 12612 12613 fi 12614 12615 12616 # Check whether --with-lg_quantum was given. 12617 if test "${with_lg_quantum+set}" = set; then : 12618 withval=$with_lg_quantum; 12619 fi 12620 12621 if test "x$with_lg_quantum" != "x" ; then 12622 12623 cat >>confdefs.h <<_ACEOF 12624 #define LG_QUANTUM $with_lg_quantum 12625 _ACEOF 12626 12627 fi 12628 12629 12630 # Check whether --with-lg_slab_maxregs was given. 12631 if test "${with_lg_slab_maxregs+set}" = set; then : 12632 withval=$with_lg_slab_maxregs; CONFIG_LG_SLAB_MAXREGS="with_lg_slab_maxregs" 12633 else 12634 CONFIG_LG_SLAB_MAXREGS="" 12635 fi 12636 12637 if test "x$with_lg_slab_maxregs" != "x" ; then 12638 12639 cat >>confdefs.h <<_ACEOF 12640 #define CONFIG_LG_SLAB_MAXREGS $with_lg_slab_maxregs 12641 _ACEOF 12642 12643 fi 12644 12645 12646 # Check whether --with-lg_page was given. 12647 if test "${with_lg_page+set}" = set; then : 12648 withval=$with_lg_page; LG_PAGE="$with_lg_page" 12649 else 12650 LG_PAGE="detect" 12651 fi 12652 12653 case "${host}" in 12654 aarch64-apple-darwin*) 12655 if test "x${host}" != "x${build}" -a "x$LG_PAGE" = "xdetect"; then 12656 LG_PAGE=14 12657 fi 12658 ;; 12659 *-*-linux-android) 12660 if test "x$LG_PAGE" = "xdetect"; then 12661 ac_fn_c_check_decl "$LINENO" "PAGE_SIZE" "ac_cv_have_decl_PAGE_SIZE" "#include <sys/user.h> 12662 " 12663 if test "x$ac_cv_have_decl_PAGE_SIZE" = xyes; then : 12664 ac_have_decl=1 12665 else 12666 ac_have_decl=0 12667 fi 12668 12669 cat >>confdefs.h <<_ACEOF 12670 #define HAVE_DECL_PAGE_SIZE $ac_have_decl 12671 _ACEOF 12672 if test $ac_have_decl = 1; then : 12673 LG_PAGE=12 12674 else 12675 LG_PAGE=14 12676 fi 12677 12678 fi 12679 ;; 12680 aarch64-unknown-linux-*) 12681 if test "x$LG_PAGE" = "xdetect"; then 12682 LG_PAGE=16 12683 fi 12684 ;; 12685 esac 12686 if test "x$LG_PAGE" = "xdetect"; then 12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LG_PAGE" >&5 12688 $as_echo_n "checking LG_PAGE... " >&6; } 12689 if ${je_cv_lg_page+:} false; then : 12690 $as_echo_n "(cached) " >&6 12691 else 12692 if test "$cross_compiling" = yes; then : 12693 je_cv_lg_page=12 12694 else 12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12696 /* end confdefs.h. */ 12697 12698 #include <strings.h> 12699 #ifdef _WIN32 12700 #include <windows.h> 12701 #else 12702 #include <unistd.h> 12703 #endif 12704 #include <stdio.h> 12705 12706 int 12707 main () 12708 { 12709 12710 int result; 12711 FILE *f; 12712 12713 #ifdef _WIN32 12714 SYSTEM_INFO si; 12715 GetSystemInfo(&si); 12716 result = si.dwPageSize; 12717 #else 12718 result = sysconf(_SC_PAGESIZE); 12719 #endif 12720 if (result == -1) { 12721 return 1; 12722 } 12723 result = JEMALLOC_INTERNAL_FFSL(result) - 1; 12724 12725 f = fopen("conftest.out", "w"); 12726 if (f == NULL) { 12727 return 1; 12728 } 12729 fprintf(f, "%d", result); 12730 fclose(f); 12731 12732 return 0; 12733 12734 ; 12735 return 0; 12736 } 12737 _ACEOF 12738 if ac_fn_c_try_run "$LINENO"; then : 12739 je_cv_lg_page=`cat conftest.out` 12740 else 12741 je_cv_lg_page=undefined 12742 fi 12743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12744 conftest.$ac_objext conftest.beam conftest.$ac_ext 12745 fi 12746 12747 fi 12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_page" >&5 12749 $as_echo "$je_cv_lg_page" >&6; } 12750 fi 12751 if test "x${je_cv_lg_page}" != "x" ; then 12752 LG_PAGE="${je_cv_lg_page}" 12753 fi 12754 if test "x${LG_PAGE}" != "xundefined" ; then 12755 12756 cat >>confdefs.h <<_ACEOF 12757 #define LG_PAGE $LG_PAGE 12758 _ACEOF 12759 12760 else 12761 as_fn_error $? "cannot determine value for LG_PAGE" "$LINENO" 5 12762 fi 12763 12764 12765 # Check whether --with-lg_hugepage was given. 12766 if test "${with_lg_hugepage+set}" = set; then : 12767 withval=$with_lg_hugepage; je_cv_lg_hugepage="${with_lg_hugepage}" 12768 else 12769 je_cv_lg_hugepage="" 12770 fi 12771 12772 if test "x${je_cv_lg_hugepage}" = "x" ; then 12773 if test -e "/proc/meminfo" ; then 12774 hpsk=`cat /proc/meminfo 2>/dev/null | \ 12775 grep '^Hugepagesize:[[:space:]]\{1,\}[0-9]\{1,\}[[:space:]]kB$' | \ 12776 awk '{print $2}'` 12777 if test "x${hpsk}" != "x" ; then 12778 je_cv_lg_hugepage=10 12779 while test "${hpsk}" -gt 1 ; do 12780 hpsk="$((hpsk / 2))" 12781 je_cv_lg_hugepage="$((je_cv_lg_hugepage + 1))" 12782 done 12783 fi 12784 fi 12785 12786 if test "x${je_cv_lg_hugepage}" = "x" ; then 12787 je_cv_lg_hugepage=21 12788 fi 12789 fi 12790 if test "x${LG_PAGE}" != "xundefined" -a \ 12791 "${je_cv_lg_hugepage}" -lt "${LG_PAGE}" ; then 12792 as_fn_error $? "Huge page size (2^${je_cv_lg_hugepage}) must be at least page size (2^${LG_PAGE})" "$LINENO" 5 12793 fi 12794 12795 cat >>confdefs.h <<_ACEOF 12796 #define LG_HUGEPAGE ${je_cv_lg_hugepage} 12797 _ACEOF 12798 12799 12800 # Check whether --enable-libdl was given. 12801 if test "${enable_libdl+set}" = set; then : 12802 enableval=$enable_libdl; if test "x$enable_libdl" = "xno" ; then 12803 enable_libdl="0" 12804 else 12805 enable_libdl="1" 12806 fi 12807 12808 else 12809 enable_libdl="1" 12810 12811 fi 12812 12813 12814 12815 12816 if test "x$abi" != "xpecoff" ; then 12817 12818 $as_echo "#define JEMALLOC_HAVE_PTHREAD " >>confdefs.h 12819 12820 for ac_header in pthread.h 12821 do : 12822 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 12823 if test "x$ac_cv_header_pthread_h" = xyes; then : 12824 cat >>confdefs.h <<_ACEOF 12825 #define HAVE_PTHREAD_H 1 12826 _ACEOF 12827 12828 else 12829 as_fn_error $? "pthread.h is missing" "$LINENO" 5 12830 fi 12831 12832 done 12833 12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 12835 $as_echo_n "checking for pthread_create in -lpthread... " >&6; } 12836 if ${ac_cv_lib_pthread_pthread_create+:} false; then : 12837 $as_echo_n "(cached) " >&6 12838 else 12839 ac_check_lib_save_LIBS=$LIBS 12840 LIBS="-lpthread $LIBS" 12841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12842 /* end confdefs.h. */ 12843 12844 /* Override any GCC internal prototype to avoid an error. 12845 Use char because int might match the return type of a GCC 12846 builtin and then its argument prototype would still apply. */ 12847 #ifdef __cplusplus 12848 extern "C" 12849 #endif 12850 char pthread_create (); 12851 int 12852 main () 12853 { 12854 return pthread_create (); 12855 ; 12856 return 0; 12857 } 12858 _ACEOF 12859 if ac_fn_c_try_link "$LINENO"; then : 12860 ac_cv_lib_pthread_pthread_create=yes 12861 else 12862 ac_cv_lib_pthread_pthread_create=no 12863 fi 12864 rm -f core conftest.err conftest.$ac_objext \ 12865 conftest$ac_exeext conftest.$ac_ext 12866 LIBS=$ac_check_lib_save_LIBS 12867 fi 12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 12869 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 12870 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 12871 T_APPEND_V=-pthread 12872 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 12873 LIBS="${LIBS}${T_APPEND_V}" 12874 else 12875 LIBS="${LIBS} ${T_APPEND_V}" 12876 fi 12877 12878 12879 else 12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 12881 $as_echo_n "checking for library containing pthread_create... " >&6; } 12882 if ${ac_cv_search_pthread_create+:} false; then : 12883 $as_echo_n "(cached) " >&6 12884 else 12885 ac_func_search_save_LIBS=$LIBS 12886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12887 /* end confdefs.h. */ 12888 12889 /* Override any GCC internal prototype to avoid an error. 12890 Use char because int might match the return type of a GCC 12891 builtin and then its argument prototype would still apply. */ 12892 #ifdef __cplusplus 12893 extern "C" 12894 #endif 12895 char pthread_create (); 12896 int 12897 main () 12898 { 12899 return pthread_create (); 12900 ; 12901 return 0; 12902 } 12903 _ACEOF 12904 for ac_lib in '' ; do 12905 if test -z "$ac_lib"; then 12906 ac_res="none required" 12907 else 12908 ac_res=-l$ac_lib 12909 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12910 fi 12911 if ac_fn_c_try_link "$LINENO"; then : 12912 ac_cv_search_pthread_create=$ac_res 12913 fi 12914 rm -f core conftest.err conftest.$ac_objext \ 12915 conftest$ac_exeext 12916 if ${ac_cv_search_pthread_create+:} false; then : 12917 break 12918 fi 12919 done 12920 if ${ac_cv_search_pthread_create+:} false; then : 12921 12922 else 12923 ac_cv_search_pthread_create=no 12924 fi 12925 rm conftest.$ac_ext 12926 LIBS=$ac_func_search_save_LIBS 12927 fi 12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 12929 $as_echo "$ac_cv_search_pthread_create" >&6; } 12930 ac_res=$ac_cv_search_pthread_create 12931 if test "$ac_res" != no; then : 12932 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12933 12934 else 12935 as_fn_error $? "libpthread is missing" "$LINENO" 5 12936 fi 12937 12938 fi 12939 12940 wrap_syms="${wrap_syms} pthread_create" 12941 have_pthread="1" 12942 12943 if test "x$enable_libdl" = "x1" ; then 12944 have_dlsym="1" 12945 for ac_header in dlfcn.h 12946 do : 12947 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 12948 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 12949 cat >>confdefs.h <<_ACEOF 12950 #define HAVE_DLFCN_H 1 12951 _ACEOF 12952 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" 12953 if test "x$ac_cv_func_dlsym" = xyes; then : 12954 12955 else 12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 12957 $as_echo_n "checking for dlsym in -ldl... " >&6; } 12958 if ${ac_cv_lib_dl_dlsym+:} false; then : 12959 $as_echo_n "(cached) " >&6 12960 else 12961 ac_check_lib_save_LIBS=$LIBS 12962 LIBS="-ldl $LIBS" 12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12964 /* end confdefs.h. */ 12965 12966 /* Override any GCC internal prototype to avoid an error. 12967 Use char because int might match the return type of a GCC 12968 builtin and then its argument prototype would still apply. */ 12969 #ifdef __cplusplus 12970 extern "C" 12971 #endif 12972 char dlsym (); 12973 int 12974 main () 12975 { 12976 return dlsym (); 12977 ; 12978 return 0; 12979 } 12980 _ACEOF 12981 if ac_fn_c_try_link "$LINENO"; then : 12982 ac_cv_lib_dl_dlsym=yes 12983 else 12984 ac_cv_lib_dl_dlsym=no 12985 fi 12986 rm -f core conftest.err conftest.$ac_objext \ 12987 conftest$ac_exeext conftest.$ac_ext 12988 LIBS=$ac_check_lib_save_LIBS 12989 fi 12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 12991 $as_echo "$ac_cv_lib_dl_dlsym" >&6; } 12992 if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 12993 LIBS="$LIBS -ldl" 12994 else 12995 have_dlsym="0" 12996 fi 12997 12998 fi 12999 13000 else 13001 have_dlsym="0" 13002 fi 13003 13004 done 13005 13006 if test "x$have_dlsym" = "x1" ; then 13007 13008 $as_echo "#define JEMALLOC_HAVE_DLSYM " >>confdefs.h 13009 13010 fi 13011 else 13012 have_dlsym="0" 13013 fi 13014 13015 13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_atfork(3) is compilable" >&5 13017 $as_echo_n "checking whether pthread_atfork(3) is compilable... " >&6; } 13018 if ${je_cv_pthread_atfork+:} false; then : 13019 $as_echo_n "(cached) " >&6 13020 else 13021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13022 /* end confdefs.h. */ 13023 13024 #include <pthread.h> 13025 13026 int 13027 main () 13028 { 13029 13030 pthread_atfork((void *)0, (void *)0, (void *)0); 13031 13032 ; 13033 return 0; 13034 } 13035 _ACEOF 13036 if ac_fn_c_try_link "$LINENO"; then : 13037 je_cv_pthread_atfork=yes 13038 else 13039 je_cv_pthread_atfork=no 13040 fi 13041 rm -f core conftest.err conftest.$ac_objext \ 13042 conftest$ac_exeext conftest.$ac_ext 13043 fi 13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_atfork" >&5 13045 $as_echo "$je_cv_pthread_atfork" >&6; } 13046 13047 if test "x${je_cv_pthread_atfork}" = "xyes" ; then 13048 13049 $as_echo "#define JEMALLOC_HAVE_PTHREAD_ATFORK " >>confdefs.h 13050 13051 fi 13052 13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np(3) is compilable" >&5 13054 $as_echo_n "checking whether pthread_setname_np(3) is compilable... " >&6; } 13055 if ${je_cv_pthread_setname_np+:} false; then : 13056 $as_echo_n "(cached) " >&6 13057 else 13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13059 /* end confdefs.h. */ 13060 13061 #include <pthread.h> 13062 13063 int 13064 main () 13065 { 13066 13067 pthread_setname_np(pthread_self(), "setname_test"); 13068 13069 ; 13070 return 0; 13071 } 13072 _ACEOF 13073 if ac_fn_c_try_link "$LINENO"; then : 13074 je_cv_pthread_setname_np=yes 13075 else 13076 je_cv_pthread_setname_np=no 13077 fi 13078 rm -f core conftest.err conftest.$ac_objext \ 13079 conftest$ac_exeext conftest.$ac_ext 13080 fi 13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_setname_np" >&5 13082 $as_echo "$je_cv_pthread_setname_np" >&6; } 13083 13084 if test "x${je_cv_pthread_setname_np}" = "xyes" ; then 13085 13086 $as_echo "#define JEMALLOC_HAVE_PTHREAD_SETNAME_NP " >>confdefs.h 13087 13088 fi 13089 13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_getname_np(3) is compilable" >&5 13091 $as_echo_n "checking whether pthread_getname_np(3) is compilable... " >&6; } 13092 if ${je_cv_pthread_getname_np+:} false; then : 13093 $as_echo_n "(cached) " >&6 13094 else 13095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13096 /* end confdefs.h. */ 13097 13098 #include <pthread.h> 13099 #include <stdlib.h> 13100 13101 int 13102 main () 13103 { 13104 13105 { 13106 char *name = malloc(16); 13107 pthread_getname_np(pthread_self(), name, 16); 13108 free(name); 13109 } 13110 13111 ; 13112 return 0; 13113 } 13114 _ACEOF 13115 if ac_fn_c_try_link "$LINENO"; then : 13116 je_cv_pthread_getname_np=yes 13117 else 13118 je_cv_pthread_getname_np=no 13119 fi 13120 rm -f core conftest.err conftest.$ac_objext \ 13121 conftest$ac_exeext conftest.$ac_ext 13122 fi 13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_getname_np" >&5 13124 $as_echo "$je_cv_pthread_getname_np" >&6; } 13125 13126 if test "x${je_cv_pthread_getname_np}" = "xyes" ; then 13127 13128 $as_echo "#define JEMALLOC_HAVE_PTHREAD_GETNAME_NP " >>confdefs.h 13129 13130 fi 13131 13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_set_name_np(3) is compilable" >&5 13133 $as_echo_n "checking whether pthread_set_name_np(3) is compilable... " >&6; } 13134 if ${je_cv_pthread_set_name_np+:} false; then : 13135 $as_echo_n "(cached) " >&6 13136 else 13137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13138 /* end confdefs.h. */ 13139 13140 #include <pthread.h> 13141 #include <pthread_np.h> 13142 13143 int 13144 main () 13145 { 13146 13147 pthread_set_name_np(pthread_self(), "set_name_test"); 13148 13149 ; 13150 return 0; 13151 } 13152 _ACEOF 13153 if ac_fn_c_try_link "$LINENO"; then : 13154 je_cv_pthread_set_name_np=yes 13155 else 13156 je_cv_pthread_set_name_np=no 13157 fi 13158 rm -f core conftest.err conftest.$ac_objext \ 13159 conftest$ac_exeext conftest.$ac_ext 13160 fi 13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_set_name_np" >&5 13162 $as_echo "$je_cv_pthread_set_name_np" >&6; } 13163 13164 if test "x${je_cv_pthread_set_name_np}" = "xyes" ; then 13165 13166 $as_echo "#define JEMALLOC_HAVE_PTHREAD_SET_NAME_NP " >>confdefs.h 13167 13168 fi 13169 13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_get_name_np(3) is compilable" >&5 13171 $as_echo_n "checking whether pthread_get_name_np(3) is compilable... " >&6; } 13172 if ${je_cv_pthread_get_name_np+:} false; then : 13173 $as_echo_n "(cached) " >&6 13174 else 13175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13176 /* end confdefs.h. */ 13177 13178 #include <pthread.h> 13179 #include <pthread_np.h> 13180 #include <stdlib.h> 13181 13182 int 13183 main () 13184 { 13185 13186 { 13187 char *name = malloc(16); 13188 pthread_get_name_np(pthread_self(), name, 16); 13189 free(name); 13190 } 13191 13192 ; 13193 return 0; 13194 } 13195 _ACEOF 13196 if ac_fn_c_try_link "$LINENO"; then : 13197 je_cv_pthread_get_name_np=yes 13198 else 13199 je_cv_pthread_get_name_np=no 13200 fi 13201 rm -f core conftest.err conftest.$ac_objext \ 13202 conftest$ac_exeext conftest.$ac_ext 13203 fi 13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_get_name_np" >&5 13205 $as_echo "$je_cv_pthread_get_name_np" >&6; } 13206 13207 if test "x${je_cv_pthread_get_name_np}" = "xyes" ; then 13208 13209 $as_echo "#define JEMALLOC_HAVE_PTHREAD_GET_NAME_NP " >>confdefs.h 13210 13211 fi 13212 fi 13213 13214 T_APPEND_V=-D_REENTRANT 13215 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 13216 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}" 13217 else 13218 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}" 13219 fi 13220 13221 13222 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 13224 $as_echo_n "checking for library containing clock_gettime... " >&6; } 13225 if ${ac_cv_search_clock_gettime+:} false; then : 13226 $as_echo_n "(cached) " >&6 13227 else 13228 ac_func_search_save_LIBS=$LIBS 13229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13230 /* end confdefs.h. */ 13231 13232 /* Override any GCC internal prototype to avoid an error. 13233 Use char because int might match the return type of a GCC 13234 builtin and then its argument prototype would still apply. */ 13235 #ifdef __cplusplus 13236 extern "C" 13237 #endif 13238 char clock_gettime (); 13239 int 13240 main () 13241 { 13242 return clock_gettime (); 13243 ; 13244 return 0; 13245 } 13246 _ACEOF 13247 for ac_lib in '' rt; do 13248 if test -z "$ac_lib"; then 13249 ac_res="none required" 13250 else 13251 ac_res=-l$ac_lib 13252 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13253 fi 13254 if ac_fn_c_try_link "$LINENO"; then : 13255 ac_cv_search_clock_gettime=$ac_res 13256 fi 13257 rm -f core conftest.err conftest.$ac_objext \ 13258 conftest$ac_exeext 13259 if ${ac_cv_search_clock_gettime+:} false; then : 13260 break 13261 fi 13262 done 13263 if ${ac_cv_search_clock_gettime+:} false; then : 13264 13265 else 13266 ac_cv_search_clock_gettime=no 13267 fi 13268 rm conftest.$ac_ext 13269 LIBS=$ac_func_search_save_LIBS 13270 fi 13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 13272 $as_echo "$ac_cv_search_clock_gettime" >&6; } 13273 ac_res=$ac_cv_search_clock_gettime 13274 if test "$ac_res" != no; then : 13275 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13276 13277 fi 13278 13279 13280 if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then 13281 if test "$ac_cv_search_clock_gettime" != "-lrt"; then 13282 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 13283 13284 13285 unset ac_cv_search_clock_gettime 13286 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -dynamic" >&5 13288 $as_echo_n "checking whether compiler supports -dynamic... " >&6; } 13289 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 13290 T_APPEND_V=-dynamic 13291 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 13292 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 13293 else 13294 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 13295 fi 13296 13297 13298 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 13299 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 13300 else 13301 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 13302 fi 13303 13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13305 /* end confdefs.h. */ 13306 13307 13308 int 13309 main () 13310 { 13311 13312 return 0; 13313 13314 ; 13315 return 0; 13316 } 13317 _ACEOF 13318 if ac_fn_c_try_compile "$LINENO"; then : 13319 je_cv_cflags_added=-dynamic 13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13321 $as_echo "yes" >&6; } 13322 else 13323 je_cv_cflags_added= 13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13325 $as_echo "no" >&6; } 13326 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 13327 13328 fi 13329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13330 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 13331 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 13332 else 13333 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 13334 fi 13335 13336 13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 13338 $as_echo_n "checking for library containing clock_gettime... " >&6; } 13339 if ${ac_cv_search_clock_gettime+:} false; then : 13340 $as_echo_n "(cached) " >&6 13341 else 13342 ac_func_search_save_LIBS=$LIBS 13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13344 /* end confdefs.h. */ 13345 13346 /* Override any GCC internal prototype to avoid an error. 13347 Use char because int might match the return type of a GCC 13348 builtin and then its argument prototype would still apply. */ 13349 #ifdef __cplusplus 13350 extern "C" 13351 #endif 13352 char clock_gettime (); 13353 int 13354 main () 13355 { 13356 return clock_gettime (); 13357 ; 13358 return 0; 13359 } 13360 _ACEOF 13361 for ac_lib in '' rt; do 13362 if test -z "$ac_lib"; then 13363 ac_res="none required" 13364 else 13365 ac_res=-l$ac_lib 13366 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13367 fi 13368 if ac_fn_c_try_link "$LINENO"; then : 13369 ac_cv_search_clock_gettime=$ac_res 13370 fi 13371 rm -f core conftest.err conftest.$ac_objext \ 13372 conftest$ac_exeext 13373 if ${ac_cv_search_clock_gettime+:} false; then : 13374 break 13375 fi 13376 done 13377 if ${ac_cv_search_clock_gettime+:} false; then : 13378 13379 else 13380 ac_cv_search_clock_gettime=no 13381 fi 13382 rm conftest.$ac_ext 13383 LIBS=$ac_func_search_save_LIBS 13384 fi 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 13386 $as_echo "$ac_cv_search_clock_gettime" >&6; } 13387 ac_res=$ac_cv_search_clock_gettime 13388 if test "$ac_res" != no; then : 13389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13390 13391 fi 13392 13393 13394 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}" 13395 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 13396 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 13397 else 13398 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 13399 fi 13400 13401 13402 fi 13403 fi 13404 13405 13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable" >&5 13407 $as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... " >&6; } 13408 if ${je_cv_clock_monotonic_coarse+:} false; then : 13409 $as_echo_n "(cached) " >&6 13410 else 13411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13412 /* end confdefs.h. */ 13413 13414 #include <time.h> 13415 13416 int 13417 main () 13418 { 13419 13420 struct timespec ts; 13421 13422 clock_gettime(CLOCK_MONOTONIC_COARSE, &ts); 13423 13424 ; 13425 return 0; 13426 } 13427 _ACEOF 13428 if ac_fn_c_try_link "$LINENO"; then : 13429 je_cv_clock_monotonic_coarse=yes 13430 else 13431 je_cv_clock_monotonic_coarse=no 13432 fi 13433 rm -f core conftest.err conftest.$ac_objext \ 13434 conftest$ac_exeext conftest.$ac_ext 13435 fi 13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic_coarse" >&5 13437 $as_echo "$je_cv_clock_monotonic_coarse" >&6; } 13438 13439 if test "x${je_cv_clock_monotonic_coarse}" = "xyes" ; then 13440 13441 $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE " >>confdefs.h 13442 13443 fi 13444 13445 13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable" >&5 13447 $as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... " >&6; } 13448 if ${je_cv_clock_monotonic+:} false; then : 13449 $as_echo_n "(cached) " >&6 13450 else 13451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13452 /* end confdefs.h. */ 13453 13454 #include <unistd.h> 13455 #include <time.h> 13456 13457 int 13458 main () 13459 { 13460 13461 struct timespec ts; 13462 13463 clock_gettime(CLOCK_MONOTONIC, &ts); 13464 #if !defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK < 0 13465 # error _POSIX_MONOTONIC_CLOCK missing/invalid 13466 #endif 13467 13468 ; 13469 return 0; 13470 } 13471 _ACEOF 13472 if ac_fn_c_try_link "$LINENO"; then : 13473 je_cv_clock_monotonic=yes 13474 else 13475 je_cv_clock_monotonic=no 13476 fi 13477 rm -f core conftest.err conftest.$ac_objext \ 13478 conftest$ac_exeext conftest.$ac_ext 13479 fi 13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic" >&5 13481 $as_echo "$je_cv_clock_monotonic" >&6; } 13482 13483 if test "x${je_cv_clock_monotonic}" = "xyes" ; then 13484 13485 $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC " >>confdefs.h 13486 13487 fi 13488 13489 13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mach_absolute_time() is compilable" >&5 13491 $as_echo_n "checking whether mach_absolute_time() is compilable... " >&6; } 13492 if ${je_cv_mach_absolute_time+:} false; then : 13493 $as_echo_n "(cached) " >&6 13494 else 13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13496 /* end confdefs.h. */ 13497 13498 #include <mach/mach_time.h> 13499 13500 int 13501 main () 13502 { 13503 13504 mach_absolute_time(); 13505 13506 ; 13507 return 0; 13508 } 13509 _ACEOF 13510 if ac_fn_c_try_link "$LINENO"; then : 13511 je_cv_mach_absolute_time=yes 13512 else 13513 je_cv_mach_absolute_time=no 13514 fi 13515 rm -f core conftest.err conftest.$ac_objext \ 13516 conftest$ac_exeext conftest.$ac_ext 13517 fi 13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mach_absolute_time" >&5 13519 $as_echo "$je_cv_mach_absolute_time" >&6; } 13520 13521 if test "x${je_cv_mach_absolute_time}" = "xyes" ; then 13522 13523 $as_echo "#define JEMALLOC_HAVE_MACH_ABSOLUTE_TIME " >>confdefs.h 13524 13525 fi 13526 13527 13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_REALTIME, ...) is compilable" >&5 13529 $as_echo_n "checking whether clock_gettime(CLOCK_REALTIME, ...) is compilable... " >&6; } 13530 if ${je_cv_clock_realtime+:} false; then : 13531 $as_echo_n "(cached) " >&6 13532 else 13533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13534 /* end confdefs.h. */ 13535 13536 #include <time.h> 13537 13538 int 13539 main () 13540 { 13541 13542 struct timespec ts; 13543 13544 clock_gettime(CLOCK_REALTIME, &ts); 13545 13546 ; 13547 return 0; 13548 } 13549 _ACEOF 13550 if ac_fn_c_try_link "$LINENO"; then : 13551 je_cv_clock_realtime=yes 13552 else 13553 je_cv_clock_realtime=no 13554 fi 13555 rm -f core conftest.err conftest.$ac_objext \ 13556 conftest$ac_exeext conftest.$ac_ext 13557 fi 13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_realtime" >&5 13559 $as_echo "$je_cv_clock_realtime" >&6; } 13560 13561 if test "x${je_cv_clock_realtime}" = "xyes" ; then 13562 13563 $as_echo "#define JEMALLOC_HAVE_CLOCK_REALTIME " >>confdefs.h 13564 13565 fi 13566 13567 13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime_nsec_np() is compilable" >&5 13569 $as_echo_n "checking whether clock_gettime_nsec_np() is compilable... " >&6; } 13570 if ${je_cv_clock_gettime_nsec_np+:} false; then : 13571 $as_echo_n "(cached) " >&6 13572 else 13573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13574 /* end confdefs.h. */ 13575 13576 #include <time.h> 13577 13578 int 13579 main () 13580 { 13581 13582 clock_gettime_nsec_np(CLOCK_UPTIME_RAW); 13583 13584 ; 13585 return 0; 13586 } 13587 _ACEOF 13588 if ac_fn_c_try_link "$LINENO"; then : 13589 je_cv_clock_gettime_nsec_np=yes 13590 else 13591 je_cv_clock_gettime_nsec_np=no 13592 fi 13593 rm -f core conftest.err conftest.$ac_objext \ 13594 conftest$ac_exeext conftest.$ac_ext 13595 fi 13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_gettime_nsec_np" >&5 13597 $as_echo "$je_cv_clock_gettime_nsec_np" >&6; } 13598 13599 if test "x${je_cv_clock_gettime_nsec_np}" = "xyes" ; then 13600 13601 $as_echo "#define JEMALLOC_HAVE_CLOCK_GETTIME_NSEC_NP " >>confdefs.h 13602 13603 fi 13604 13605 # Check whether --enable-syscall was given. 13606 if test "${enable_syscall+set}" = set; then : 13607 enableval=$enable_syscall; if test "x$enable_syscall" = "xno" ; then 13608 enable_syscall="0" 13609 else 13610 enable_syscall="1" 13611 fi 13612 13613 else 13614 enable_syscall="1" 13615 13616 fi 13617 13618 if test "x$enable_syscall" = "x1" ; then 13619 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 13620 13621 13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 13623 $as_echo_n "checking whether compiler supports -Werror... " >&6; } 13624 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 13625 T_APPEND_V=-Werror 13626 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 13627 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 13628 else 13629 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 13630 fi 13631 13632 13633 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 13634 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 13635 else 13636 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 13637 fi 13638 13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13640 /* end confdefs.h. */ 13641 13642 13643 int 13644 main () 13645 { 13646 13647 return 0; 13648 13649 ; 13650 return 0; 13651 } 13652 _ACEOF 13653 if ac_fn_c_try_compile "$LINENO"; then : 13654 je_cv_cflags_added=-Werror 13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13656 $as_echo "yes" >&6; } 13657 else 13658 je_cv_cflags_added= 13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13660 $as_echo "no" >&6; } 13661 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 13662 13663 fi 13664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13665 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 13666 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 13667 else 13668 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 13669 fi 13670 13671 13672 13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syscall(2) is compilable" >&5 13674 $as_echo_n "checking whether syscall(2) is compilable... " >&6; } 13675 if ${je_cv_syscall+:} false; then : 13676 $as_echo_n "(cached) " >&6 13677 else 13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13679 /* end confdefs.h. */ 13680 13681 #include <sys/syscall.h> 13682 #include <unistd.h> 13683 13684 int 13685 main () 13686 { 13687 13688 syscall(SYS_write, 2, "hello", 5); 13689 13690 ; 13691 return 0; 13692 } 13693 _ACEOF 13694 if ac_fn_c_try_link "$LINENO"; then : 13695 je_cv_syscall=yes 13696 else 13697 je_cv_syscall=no 13698 fi 13699 rm -f core conftest.err conftest.$ac_objext \ 13700 conftest$ac_exeext conftest.$ac_ext 13701 fi 13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_syscall" >&5 13703 $as_echo "$je_cv_syscall" >&6; } 13704 13705 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}" 13706 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 13707 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 13708 else 13709 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 13710 fi 13711 13712 13713 if test "x$je_cv_syscall" = "xyes" ; then 13714 13715 $as_echo "#define JEMALLOC_USE_SYSCALL " >>confdefs.h 13716 13717 fi 13718 fi 13719 13720 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv" 13721 if test "x$ac_cv_func_secure_getenv" = xyes; then : 13722 have_secure_getenv="1" 13723 else 13724 have_secure_getenv="0" 13725 13726 fi 13727 13728 if test "x$have_secure_getenv" = "x1" ; then 13729 13730 $as_echo "#define JEMALLOC_HAVE_SECURE_GETENV " >>confdefs.h 13731 13732 fi 13733 13734 ac_fn_c_check_func "$LINENO" "sched_getcpu" "ac_cv_func_sched_getcpu" 13735 if test "x$ac_cv_func_sched_getcpu" = xyes; then : 13736 have_sched_getcpu="1" 13737 else 13738 have_sched_getcpu="0" 13739 13740 fi 13741 13742 if test "x$have_sched_getcpu" = "x1" ; then 13743 13744 $as_echo "#define JEMALLOC_HAVE_SCHED_GETCPU " >>confdefs.h 13745 13746 fi 13747 13748 ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity" 13749 if test "x$ac_cv_func_sched_setaffinity" = xyes; then : 13750 have_sched_setaffinity="1" 13751 else 13752 have_sched_setaffinity="0" 13753 13754 fi 13755 13756 if test "x$have_sched_setaffinity" = "x1" ; then 13757 13758 $as_echo "#define JEMALLOC_HAVE_SCHED_SETAFFINITY " >>confdefs.h 13759 13760 fi 13761 13762 ac_fn_c_check_func "$LINENO" "pthread_setaffinity_np" "ac_cv_func_pthread_setaffinity_np" 13763 if test "x$ac_cv_func_pthread_setaffinity_np" = xyes; then : 13764 have_pthread_setaffinity_np="1" 13765 else 13766 have_pthread_setaffinity_np="0" 13767 13768 fi 13769 13770 if test "x$have_pthread_setaffinity_np" = "x1" ; then 13771 13772 $as_echo "#define JEMALLOC_HAVE_PTHREAD_SETAFFINITY_NP " >>confdefs.h 13773 13774 fi 13775 13776 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 13777 if test "x$ac_cv_func_issetugid" = xyes; then : 13778 have_issetugid="1" 13779 else 13780 have_issetugid="0" 13781 13782 fi 13783 13784 if test "x$have_issetugid" = "x1" ; then 13785 13786 $as_echo "#define JEMALLOC_HAVE_ISSETUGID " >>confdefs.h 13787 13788 fi 13789 13790 ac_fn_c_check_func "$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup" 13791 if test "x$ac_cv_func__malloc_thread_cleanup" = xyes; then : 13792 have__malloc_thread_cleanup="1" 13793 else 13794 have__malloc_thread_cleanup="0" 13795 13796 fi 13797 13798 if test "x$have__malloc_thread_cleanup" = "x1" ; then 13799 13800 $as_echo "#define JEMALLOC_MALLOC_THREAD_CLEANUP " >>confdefs.h 13801 13802 wrap_syms="${wrap_syms} _malloc_thread_cleanup _malloc_tsd_cleanup_register" 13803 force_tls="1" 13804 fi 13805 13806 ac_fn_c_check_func "$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb" 13807 if test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes; then : 13808 have__pthread_mutex_init_calloc_cb="1" 13809 else 13810 have__pthread_mutex_init_calloc_cb="0" 13811 13812 fi 13813 13814 if test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then 13815 13816 $as_echo "#define JEMALLOC_MUTEX_INIT_CB " >>confdefs.h 13817 13818 wrap_syms="${wrap_syms} _malloc_prefork _malloc_postfork" 13819 fi 13820 13821 ac_fn_c_check_func "$LINENO" "memcntl" "ac_cv_func_memcntl" 13822 if test "x$ac_cv_func_memcntl" = xyes; then : 13823 have_memcntl="1" 13824 else 13825 have_memcntl="0" 13826 fi 13827 13828 if test "x$have_memcntl" = "x1" ; then 13829 13830 $as_echo "#define JEMALLOC_HAVE_MEMCNTL " >>confdefs.h 13831 13832 fi 13833 13834 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl" 13835 if test "x$ac_cv_func_prctl" = xyes; then : 13836 have_prctl="1" 13837 else 13838 have_prctl="0" 13839 fi 13840 13841 if test "x$have_prctl" = "x1" ; then 13842 13843 $as_echo "#define JEMALLOC_HAVE_PRCTL " >>confdefs.h 13844 13845 fi 13846 13847 # Check whether --enable-lazy_lock was given. 13848 if test "${enable_lazy_lock+set}" = set; then : 13849 enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then 13850 enable_lazy_lock="0" 13851 else 13852 enable_lazy_lock="1" 13853 fi 13854 13855 else 13856 enable_lazy_lock="" 13857 13858 fi 13859 13860 if test "x${enable_lazy_lock}" = "x" ; then 13861 if test "x${force_lazy_lock}" = "x1" ; then 13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5 13863 $as_echo "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; } 13864 enable_lazy_lock="1" 13865 else 13866 enable_lazy_lock="0" 13867 fi 13868 fi 13869 if test "x${enable_lazy_lock}" = "x1" -a "x${abi}" = "xpecoff" ; then 13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no lazy-lock because thread creation monitoring is unimplemented" >&5 13871 $as_echo "Forcing no lazy-lock because thread creation monitoring is unimplemented" >&6; } 13872 enable_lazy_lock="0" 13873 fi 13874 if test "x$enable_lazy_lock" = "x1" ; then 13875 if test "x$have_dlsym" = "x1" ; then 13876 13877 $as_echo "#define JEMALLOC_LAZY_LOCK " >>confdefs.h 13878 13879 else 13880 as_fn_error $? "Missing dlsym support: lazy-lock cannot be enabled." "$LINENO" 5 13881 fi 13882 fi 13883 13884 13885 if test "x${force_tls}" = "x1" ; then 13886 enable_tls="1" 13887 elif test "x${force_tls}" = "x0" ; then 13888 enable_tls="0" 13889 else 13890 enable_tls="1" 13891 fi 13892 if test "x${enable_tls}" = "x1" ; then 13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5 13894 $as_echo_n "checking for TLS... " >&6; } 13895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13896 /* end confdefs.h. */ 13897 13898 __thread int x; 13899 13900 int 13901 main () 13902 { 13903 13904 x = 42; 13905 13906 return 0; 13907 13908 ; 13909 return 0; 13910 } 13911 _ACEOF 13912 if ac_fn_c_try_compile "$LINENO"; then : 13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13914 $as_echo "yes" >&6; } 13915 else 13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13917 $as_echo "no" >&6; } 13918 enable_tls="0" 13919 fi 13920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13921 else 13922 enable_tls="0" 13923 fi 13924 13925 if test "x${enable_tls}" = "x1" ; then 13926 13927 cat >>confdefs.h <<_ACEOF 13928 #define JEMALLOC_TLS 13929 _ACEOF 13930 13931 fi 13932 13933 13934 13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 atomics is compilable" >&5 13936 $as_echo_n "checking whether C11 atomics is compilable... " >&6; } 13937 if ${je_cv_c11_atomics+:} false; then : 13938 $as_echo_n "(cached) " >&6 13939 else 13940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13941 /* end confdefs.h. */ 13942 13943 #include <stdint.h> 13944 #if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_ATOMICS__) 13945 #include <stdatomic.h> 13946 #else 13947 #error Atomics not available 13948 #endif 13949 13950 int 13951 main () 13952 { 13953 13954 uint64_t *p = (uint64_t *)0; 13955 uint64_t x = 1; 13956 volatile atomic_uint_least64_t *a = (volatile atomic_uint_least64_t *)p; 13957 uint64_t r = atomic_fetch_add(a, x) + x; 13958 return r == 0; 13959 13960 ; 13961 return 0; 13962 } 13963 _ACEOF 13964 if ac_fn_c_try_link "$LINENO"; then : 13965 je_cv_c11_atomics=yes 13966 else 13967 je_cv_c11_atomics=no 13968 fi 13969 rm -f core conftest.err conftest.$ac_objext \ 13970 conftest$ac_exeext conftest.$ac_ext 13971 fi 13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_c11_atomics" >&5 13973 $as_echo "$je_cv_c11_atomics" >&6; } 13974 13975 if test "x${je_cv_c11_atomics}" = "xyes" ; then 13976 13977 $as_echo "#define JEMALLOC_C11_ATOMICS " >>confdefs.h 13978 13979 fi 13980 13981 13982 13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __atomic atomics is compilable" >&5 13984 $as_echo_n "checking whether GCC __atomic atomics is compilable... " >&6; } 13985 if ${je_cv_gcc_atomic_atomics+:} false; then : 13986 $as_echo_n "(cached) " >&6 13987 else 13988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13989 /* end confdefs.h. */ 13990 13991 13992 int 13993 main () 13994 { 13995 13996 int x = 0; 13997 int val = 1; 13998 int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED); 13999 int after_add = x; 14000 return after_add == 1; 14001 14002 ; 14003 return 0; 14004 } 14005 _ACEOF 14006 if ac_fn_c_try_link "$LINENO"; then : 14007 je_cv_gcc_atomic_atomics=yes 14008 else 14009 je_cv_gcc_atomic_atomics=no 14010 fi 14011 rm -f core conftest.err conftest.$ac_objext \ 14012 conftest$ac_exeext conftest.$ac_ext 14013 fi 14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_atomic_atomics" >&5 14015 $as_echo "$je_cv_gcc_atomic_atomics" >&6; } 14016 14017 if test "x${je_cv_gcc_atomic_atomics}" = "xyes" ; then 14018 14019 $as_echo "#define JEMALLOC_GCC_ATOMIC_ATOMICS " >>confdefs.h 14020 14021 14022 14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC 8-bit __atomic atomics is compilable" >&5 14024 $as_echo_n "checking whether GCC 8-bit __atomic atomics is compilable... " >&6; } 14025 if ${je_cv_gcc_u8_atomic_atomics+:} false; then : 14026 $as_echo_n "(cached) " >&6 14027 else 14028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14029 /* end confdefs.h. */ 14030 14031 14032 int 14033 main () 14034 { 14035 14036 unsigned char x = 0; 14037 int val = 1; 14038 int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED); 14039 int after_add = (int)x; 14040 return after_add == 1; 14041 14042 ; 14043 return 0; 14044 } 14045 _ACEOF 14046 if ac_fn_c_try_link "$LINENO"; then : 14047 je_cv_gcc_u8_atomic_atomics=yes 14048 else 14049 je_cv_gcc_u8_atomic_atomics=no 14050 fi 14051 rm -f core conftest.err conftest.$ac_objext \ 14052 conftest$ac_exeext conftest.$ac_ext 14053 fi 14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_u8_atomic_atomics" >&5 14055 $as_echo "$je_cv_gcc_u8_atomic_atomics" >&6; } 14056 14057 if test "x${je_cv_gcc_u8_atomic_atomics}" = "xyes" ; then 14058 14059 $as_echo "#define JEMALLOC_GCC_U8_ATOMIC_ATOMICS " >>confdefs.h 14060 14061 fi 14062 fi 14063 14064 14065 14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __sync atomics is compilable" >&5 14067 $as_echo_n "checking whether GCC __sync atomics is compilable... " >&6; } 14068 if ${je_cv_gcc_sync_atomics+:} false; then : 14069 $as_echo_n "(cached) " >&6 14070 else 14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14072 /* end confdefs.h. */ 14073 14074 14075 int 14076 main () 14077 { 14078 14079 int x = 0; 14080 int before_add = __sync_fetch_and_add(&x, 1); 14081 int after_add = x; 14082 return (before_add == 0) && (after_add == 1); 14083 14084 ; 14085 return 0; 14086 } 14087 _ACEOF 14088 if ac_fn_c_try_link "$LINENO"; then : 14089 je_cv_gcc_sync_atomics=yes 14090 else 14091 je_cv_gcc_sync_atomics=no 14092 fi 14093 rm -f core conftest.err conftest.$ac_objext \ 14094 conftest$ac_exeext conftest.$ac_ext 14095 fi 14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_sync_atomics" >&5 14097 $as_echo "$je_cv_gcc_sync_atomics" >&6; } 14098 14099 if test "x${je_cv_gcc_sync_atomics}" = "xyes" ; then 14100 14101 $as_echo "#define JEMALLOC_GCC_SYNC_ATOMICS " >>confdefs.h 14102 14103 14104 14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC 8-bit __sync atomics is compilable" >&5 14106 $as_echo_n "checking whether GCC 8-bit __sync atomics is compilable... " >&6; } 14107 if ${je_cv_gcc_u8_sync_atomics+:} false; then : 14108 $as_echo_n "(cached) " >&6 14109 else 14110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14111 /* end confdefs.h. */ 14112 14113 14114 int 14115 main () 14116 { 14117 14118 unsigned char x = 0; 14119 int before_add = __sync_fetch_and_add(&x, 1); 14120 int after_add = (int)x; 14121 return (before_add == 0) && (after_add == 1); 14122 14123 ; 14124 return 0; 14125 } 14126 _ACEOF 14127 if ac_fn_c_try_link "$LINENO"; then : 14128 je_cv_gcc_u8_sync_atomics=yes 14129 else 14130 je_cv_gcc_u8_sync_atomics=no 14131 fi 14132 rm -f core conftest.err conftest.$ac_objext \ 14133 conftest$ac_exeext conftest.$ac_ext 14134 fi 14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_u8_sync_atomics" >&5 14136 $as_echo "$je_cv_gcc_u8_sync_atomics" >&6; } 14137 14138 if test "x${je_cv_gcc_u8_sync_atomics}" = "xyes" ; then 14139 14140 $as_echo "#define JEMALLOC_GCC_U8_SYNC_ATOMICS " >>confdefs.h 14141 14142 fi 14143 fi 14144 14145 14146 14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5 14148 $as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; } 14149 if ${je_cv_osatomic+:} false; then : 14150 $as_echo_n "(cached) " >&6 14151 else 14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14153 /* end confdefs.h. */ 14154 14155 #include <libkern/OSAtomic.h> 14156 #include <inttypes.h> 14157 14158 int 14159 main () 14160 { 14161 14162 { 14163 int32_t x32 = 0; 14164 volatile int32_t *x32p = &x32; 14165 OSAtomicAdd32(1, x32p); 14166 } 14167 { 14168 int64_t x64 = 0; 14169 volatile int64_t *x64p = &x64; 14170 OSAtomicAdd64(1, x64p); 14171 } 14172 14173 ; 14174 return 0; 14175 } 14176 _ACEOF 14177 if ac_fn_c_try_link "$LINENO"; then : 14178 je_cv_osatomic=yes 14179 else 14180 je_cv_osatomic=no 14181 fi 14182 rm -f core conftest.err conftest.$ac_objext \ 14183 conftest$ac_exeext conftest.$ac_ext 14184 fi 14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5 14186 $as_echo "$je_cv_osatomic" >&6; } 14187 14188 if test "x${je_cv_osatomic}" = "xyes" ; then 14189 14190 $as_echo "#define JEMALLOC_OSATOMIC " >>confdefs.h 14191 14192 fi 14193 14194 14195 14196 # Check whether --with-experimental_sys_process_madvise was given. 14197 if test "${with_experimental_sys_process_madvise+set}" = set; then : 14198 withval=$with_experimental_sys_process_madvise; je_cv_sys_pmadv_nr="${with_experimental_sys_process_madvise}" 14199 else 14200 je_cv_sys_pmadv_nr="" 14201 fi 14202 14203 14204 14205 14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(2) is compilable" >&5 14207 $as_echo_n "checking whether madvise(2) is compilable... " >&6; } 14208 if ${je_cv_madvise+:} false; then : 14209 $as_echo_n "(cached) " >&6 14210 else 14211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14212 /* end confdefs.h. */ 14213 14214 #include <sys/mman.h> 14215 14216 int 14217 main () 14218 { 14219 14220 madvise((void *)0, 0, 0); 14221 14222 ; 14223 return 0; 14224 } 14225 _ACEOF 14226 if ac_fn_c_try_link "$LINENO"; then : 14227 je_cv_madvise=yes 14228 else 14229 je_cv_madvise=no 14230 fi 14231 rm -f core conftest.err conftest.$ac_objext \ 14232 conftest$ac_exeext conftest.$ac_ext 14233 fi 14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madvise" >&5 14235 $as_echo "$je_cv_madvise" >&6; } 14236 14237 if test "x${je_cv_madvise}" = "xyes" ; then 14238 14239 $as_echo "#define JEMALLOC_HAVE_MADVISE " >>confdefs.h 14240 14241 14242 14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_FREE) is compilable" >&5 14244 $as_echo_n "checking whether madvise(..., MADV_FREE) is compilable... " >&6; } 14245 if ${je_cv_madv_free+:} false; then : 14246 $as_echo_n "(cached) " >&6 14247 else 14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14249 /* end confdefs.h. */ 14250 14251 #include <sys/mman.h> 14252 14253 int 14254 main () 14255 { 14256 14257 madvise((void *)0, 0, MADV_FREE); 14258 14259 ; 14260 return 0; 14261 } 14262 _ACEOF 14263 if ac_fn_c_try_link "$LINENO"; then : 14264 je_cv_madv_free=yes 14265 else 14266 je_cv_madv_free=no 14267 fi 14268 rm -f core conftest.err conftest.$ac_objext \ 14269 conftest$ac_exeext conftest.$ac_ext 14270 fi 14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_free" >&5 14272 $as_echo "$je_cv_madv_free" >&6; } 14273 14274 if test "x${je_cv_madv_free}" = "xyes" ; then 14275 14276 $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h 14277 14278 elif test "x${je_cv_madvise}" = "xyes" ; then 14279 case "${host_cpu}" in i686|x86_64) 14280 case "${host}" in *-*-linux*) 14281 14282 $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h 14283 14284 14285 $as_echo "#define JEMALLOC_DEFINE_MADVISE_FREE " >>confdefs.h 14286 14287 ;; 14288 esac 14289 ;; 14290 esac 14291 fi 14292 14293 14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DONTNEED) is compilable" >&5 14295 $as_echo_n "checking whether madvise(..., MADV_DONTNEED) is compilable... " >&6; } 14296 if ${je_cv_madv_dontneed+:} false; then : 14297 $as_echo_n "(cached) " >&6 14298 else 14299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14300 /* end confdefs.h. */ 14301 14302 #include <sys/mman.h> 14303 14304 int 14305 main () 14306 { 14307 14308 madvise((void *)0, 0, MADV_DONTNEED); 14309 14310 ; 14311 return 0; 14312 } 14313 _ACEOF 14314 if ac_fn_c_try_link "$LINENO"; then : 14315 je_cv_madv_dontneed=yes 14316 else 14317 je_cv_madv_dontneed=no 14318 fi 14319 rm -f core conftest.err conftest.$ac_objext \ 14320 conftest$ac_exeext conftest.$ac_ext 14321 fi 14322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontneed" >&5 14323 $as_echo "$je_cv_madv_dontneed" >&6; } 14324 14325 if test "x${je_cv_madv_dontneed}" = "xyes" ; then 14326 14327 $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED " >>confdefs.h 14328 14329 fi 14330 14331 14332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DO[NT]DUMP) is compilable" >&5 14333 $as_echo_n "checking whether madvise(..., MADV_DO[NT]DUMP) is compilable... " >&6; } 14334 if ${je_cv_madv_dontdump+:} false; then : 14335 $as_echo_n "(cached) " >&6 14336 else 14337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14338 /* end confdefs.h. */ 14339 14340 #include <sys/mman.h> 14341 14342 int 14343 main () 14344 { 14345 14346 madvise((void *)0, 0, MADV_DONTDUMP); 14347 madvise((void *)0, 0, MADV_DODUMP); 14348 14349 ; 14350 return 0; 14351 } 14352 _ACEOF 14353 if ac_fn_c_try_link "$LINENO"; then : 14354 je_cv_madv_dontdump=yes 14355 else 14356 je_cv_madv_dontdump=no 14357 fi 14358 rm -f core conftest.err conftest.$ac_objext \ 14359 conftest$ac_exeext conftest.$ac_ext 14360 fi 14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontdump" >&5 14362 $as_echo "$je_cv_madv_dontdump" >&6; } 14363 14364 if test "x${je_cv_madv_dontdump}" = "xyes" ; then 14365 14366 $as_echo "#define JEMALLOC_MADVISE_DONTDUMP " >>confdefs.h 14367 14368 fi 14369 14370 14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable" >&5 14372 $as_echo_n "checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable... " >&6; } 14373 if ${je_cv_thp+:} false; then : 14374 $as_echo_n "(cached) " >&6 14375 else 14376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14377 /* end confdefs.h. */ 14378 14379 #include <sys/mman.h> 14380 14381 int 14382 main () 14383 { 14384 14385 madvise((void *)0, 0, MADV_HUGEPAGE); 14386 madvise((void *)0, 0, MADV_NOHUGEPAGE); 14387 14388 ; 14389 return 0; 14390 } 14391 _ACEOF 14392 if ac_fn_c_try_link "$LINENO"; then : 14393 je_cv_thp=yes 14394 else 14395 je_cv_thp=no 14396 fi 14397 rm -f core conftest.err conftest.$ac_objext \ 14398 conftest$ac_exeext conftest.$ac_ext 14399 fi 14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_thp" >&5 14401 $as_echo "$je_cv_thp" >&6; } 14402 14403 case "${host_cpu}" in 14404 arm*) 14405 ;; 14406 *) 14407 if test "x${je_cv_thp}" = "xyes" ; then 14408 14409 $as_echo "#define JEMALLOC_HAVE_MADVISE_HUGE " >>confdefs.h 14410 14411 fi 14412 ;; 14413 esac 14414 14415 14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_[NO]CORE) is compilable" >&5 14417 $as_echo_n "checking whether madvise(..., MADV_[NO]CORE) is compilable... " >&6; } 14418 if ${je_cv_madv_nocore+:} false; then : 14419 $as_echo_n "(cached) " >&6 14420 else 14421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14422 /* end confdefs.h. */ 14423 14424 #include <sys/mman.h> 14425 14426 int 14427 main () 14428 { 14429 14430 madvise((void *)0, 0, MADV_NOCORE); 14431 madvise((void *)0, 0, MADV_CORE); 14432 14433 ; 14434 return 0; 14435 } 14436 _ACEOF 14437 if ac_fn_c_try_link "$LINENO"; then : 14438 je_cv_madv_nocore=yes 14439 else 14440 je_cv_madv_nocore=no 14441 fi 14442 rm -f core conftest.err conftest.$ac_objext \ 14443 conftest$ac_exeext conftest.$ac_ext 14444 fi 14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_nocore" >&5 14446 $as_echo "$je_cv_madv_nocore" >&6; } 14447 14448 if test "x${je_cv_madv_nocore}" = "xyes" ; then 14449 14450 $as_echo "#define JEMALLOC_MADVISE_NOCORE " >>confdefs.h 14451 14452 fi 14453 14454 14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_COLLAPSE) is compilable" >&5 14456 $as_echo_n "checking whether madvise(..., MADV_COLLAPSE) is compilable... " >&6; } 14457 if ${je_cv_madv_collapse+:} false; then : 14458 $as_echo_n "(cached) " >&6 14459 else 14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14461 /* end confdefs.h. */ 14462 14463 #include <sys/mman.h> 14464 14465 int 14466 main () 14467 { 14468 14469 madvise((void *)0, 0, MADV_COLLAPSE); 14470 14471 ; 14472 return 0; 14473 } 14474 _ACEOF 14475 if ac_fn_c_try_link "$LINENO"; then : 14476 je_cv_madv_collapse=yes 14477 else 14478 je_cv_madv_collapse=no 14479 fi 14480 rm -f core conftest.err conftest.$ac_objext \ 14481 conftest$ac_exeext conftest.$ac_ext 14482 fi 14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_collapse" >&5 14484 $as_echo "$je_cv_madv_collapse" >&6; } 14485 14486 if test "x${je_cv_madv_collapse}" = "xyes" ; then 14487 14488 $as_echo "#define JEMALLOC_HAVE_MADVISE_COLLAPSE " >>confdefs.h 14489 14490 fi 14491 14492 14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether process_madvise(2) is compilable" >&5 14494 $as_echo_n "checking whether process_madvise(2) is compilable... " >&6; } 14495 if ${je_cv_process_madvise+:} false; then : 14496 $as_echo_n "(cached) " >&6 14497 else 14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14499 /* end confdefs.h. */ 14500 14501 #include <sys/pidfd.h> 14502 #include <sys/syscall.h> 14503 #include <unistd.h> 14504 14505 int 14506 main () 14507 { 14508 14509 syscall(SYS_process_madvise, PIDFD_SELF, (void *)0, 0, 0, 0); 14510 14511 ; 14512 return 0; 14513 } 14514 _ACEOF 14515 if ac_fn_c_try_link "$LINENO"; then : 14516 je_cv_process_madvise=yes 14517 else 14518 je_cv_process_madvise=no 14519 fi 14520 rm -f core conftest.err conftest.$ac_objext \ 14521 conftest$ac_exeext conftest.$ac_ext 14522 fi 14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_process_madvise" >&5 14524 $as_echo "$je_cv_process_madvise" >&6; } 14525 14526 if test "x${je_cv_process_madvise}" = "xyes" ; then 14527 14528 $as_echo "#define JEMALLOC_HAVE_PROCESS_MADVISE " >>confdefs.h 14529 14530 else 14531 if test "x${je_cv_sys_pmadv_nr}" != "x" ; then 14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing usage of process_madvise with syscall nr=${je_cv_sys_pmadv_nr}" >&5 14533 $as_echo "Forcing usage of process_madvise with syscall nr=${je_cv_sys_pmadv_nr}" >&6; } 14534 14535 $as_echo "#define JEMALLOC_HAVE_PROCESS_MADVISE " >>confdefs.h 14536 14537 14538 cat >>confdefs.h <<_ACEOF 14539 #define EXPERIMENTAL_SYS_PROCESS_MADVISE_NR ${je_cv_sys_pmadv_nr} 14540 _ACEOF 14541 14542 fi 14543 fi 14544 else 14545 14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_madvise is compilable" >&5 14547 $as_echo_n "checking whether posix_madvise is compilable... " >&6; } 14548 if ${je_cv_posix_madvise+:} false; then : 14549 $as_echo_n "(cached) " >&6 14550 else 14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14552 /* end confdefs.h. */ 14553 14554 #include <sys/mman.h> 14555 14556 int 14557 main () 14558 { 14559 14560 posix_madvise((void *)0, 0, 0); 14561 14562 ; 14563 return 0; 14564 } 14565 _ACEOF 14566 if ac_fn_c_try_link "$LINENO"; then : 14567 je_cv_posix_madvise=yes 14568 else 14569 je_cv_posix_madvise=no 14570 fi 14571 rm -f core conftest.err conftest.$ac_objext \ 14572 conftest$ac_exeext conftest.$ac_ext 14573 fi 14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_posix_madvise" >&5 14575 $as_echo "$je_cv_posix_madvise" >&6; } 14576 14577 if test "x${je_cv_posix_madvise}" = "xyes" ; then 14578 14579 $as_echo "#define JEMALLOC_HAVE_POSIX_MADVISE " >>confdefs.h 14580 14581 14582 14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_madvise(..., POSIX_MADV_DONTNEED) is compilable" >&5 14584 $as_echo_n "checking whether posix_madvise(..., POSIX_MADV_DONTNEED) is compilable... " >&6; } 14585 if ${je_cv_posix_madv_dontneed+:} false; then : 14586 $as_echo_n "(cached) " >&6 14587 else 14588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14589 /* end confdefs.h. */ 14590 14591 #include <sys/mman.h> 14592 14593 int 14594 main () 14595 { 14596 14597 posix_madvise((void *)0, 0, POSIX_MADV_DONTNEED); 14598 14599 ; 14600 return 0; 14601 } 14602 _ACEOF 14603 if ac_fn_c_try_link "$LINENO"; then : 14604 je_cv_posix_madv_dontneed=yes 14605 else 14606 je_cv_posix_madv_dontneed=no 14607 fi 14608 rm -f core conftest.err conftest.$ac_objext \ 14609 conftest$ac_exeext conftest.$ac_ext 14610 fi 14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_posix_madv_dontneed" >&5 14612 $as_echo "$je_cv_posix_madv_dontneed" >&6; } 14613 14614 if test "x${je_cv_posix_madv_dontneed}" = "xyes" ; then 14615 14616 $as_echo "#define JEMALLOC_PURGE_POSIX_MADVISE_DONTNEED " >>confdefs.h 14617 14618 fi 14619 fi 14620 fi 14621 14622 14623 14624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mprotect(2) is compilable" >&5 14625 $as_echo_n "checking whether mprotect(2) is compilable... " >&6; } 14626 if ${je_cv_mprotect+:} false; then : 14627 $as_echo_n "(cached) " >&6 14628 else 14629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14630 /* end confdefs.h. */ 14631 14632 #include <sys/mman.h> 14633 14634 int 14635 main () 14636 { 14637 14638 mprotect((void *)0, 0, PROT_NONE); 14639 14640 ; 14641 return 0; 14642 } 14643 _ACEOF 14644 if ac_fn_c_try_link "$LINENO"; then : 14645 je_cv_mprotect=yes 14646 else 14647 je_cv_mprotect=no 14648 fi 14649 rm -f core conftest.err conftest.$ac_objext \ 14650 conftest$ac_exeext conftest.$ac_ext 14651 fi 14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mprotect" >&5 14653 $as_echo "$je_cv_mprotect" >&6; } 14654 14655 if test "x${je_cv_mprotect}" = "xyes" ; then 14656 14657 $as_echo "#define JEMALLOC_HAVE_MPROTECT " >>confdefs.h 14658 14659 fi 14660 14661 14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5 14663 $as_echo_n "checking for __builtin_clz... " >&6; } 14664 if ${je_cv_builtin_clz+:} false; then : 14665 $as_echo_n "(cached) " >&6 14666 else 14667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14668 /* end confdefs.h. */ 14669 14670 int 14671 main () 14672 { 14673 14674 { 14675 unsigned x = 0; 14676 int y = __builtin_clz(x); 14677 } 14678 { 14679 unsigned long x = 0; 14680 int y = __builtin_clzl(x); 14681 } 14682 { 14683 unsigned long long x = 0; 14684 int y = __builtin_clzll(x); 14685 } 14686 14687 ; 14688 return 0; 14689 } 14690 _ACEOF 14691 if ac_fn_c_try_link "$LINENO"; then : 14692 je_cv_builtin_clz=yes 14693 else 14694 je_cv_builtin_clz=no 14695 fi 14696 rm -f core conftest.err conftest.$ac_objext \ 14697 conftest$ac_exeext conftest.$ac_ext 14698 fi 14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_builtin_clz" >&5 14700 $as_echo "$je_cv_builtin_clz" >&6; } 14701 14702 if test "x${je_cv_builtin_clz}" = "xyes" ; then 14703 14704 $as_echo "#define JEMALLOC_HAVE_BUILTIN_CLZ " >>confdefs.h 14705 14706 fi 14707 14708 14709 14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin os_unfair_lock_*() is compilable" >&5 14711 $as_echo_n "checking whether Darwin os_unfair_lock_*() is compilable... " >&6; } 14712 if ${je_cv_os_unfair_lock+:} false; then : 14713 $as_echo_n "(cached) " >&6 14714 else 14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14716 /* end confdefs.h. */ 14717 14718 #include <os/lock.h> 14719 #include <AvailabilityMacros.h> 14720 14721 int 14722 main () 14723 { 14724 14725 #if MAC_OS_X_VERSION_MIN_REQUIRED < 101200 14726 #error "os_unfair_lock is not supported" 14727 #else 14728 os_unfair_lock lock = OS_UNFAIR_LOCK_INIT; 14729 os_unfair_lock_lock(&lock); 14730 os_unfair_lock_unlock(&lock); 14731 #endif 14732 14733 ; 14734 return 0; 14735 } 14736 _ACEOF 14737 if ac_fn_c_try_link "$LINENO"; then : 14738 je_cv_os_unfair_lock=yes 14739 else 14740 je_cv_os_unfair_lock=no 14741 fi 14742 rm -f core conftest.err conftest.$ac_objext \ 14743 conftest$ac_exeext conftest.$ac_ext 14744 fi 14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_os_unfair_lock" >&5 14746 $as_echo "$je_cv_os_unfair_lock" >&6; } 14747 14748 if test "x${je_cv_os_unfair_lock}" = "xyes" ; then 14749 14750 $as_echo "#define JEMALLOC_OS_UNFAIR_LOCK " >>confdefs.h 14751 14752 fi 14753 14754 14755 # Check whether --enable-zone-allocator was given. 14756 if test "${enable_zone_allocator+set}" = set; then : 14757 enableval=$enable_zone_allocator; if test "x$enable_zone_allocator" = "xno" ; then 14758 enable_zone_allocator="0" 14759 else 14760 enable_zone_allocator="1" 14761 fi 14762 14763 else 14764 if test "x${abi}" = "xmacho"; then 14765 enable_zone_allocator="1" 14766 fi 14767 14768 14769 fi 14770 14771 14772 14773 if test "x${enable_zone_allocator}" = "x1" ; then 14774 if test "x${abi}" != "xmacho"; then 14775 as_fn_error $? "--enable-zone-allocator is only supported on Darwin" "$LINENO" 5 14776 fi 14777 14778 $as_echo "#define JEMALLOC_ZONE " >>confdefs.h 14779 14780 fi 14781 14782 # Check whether --enable-initial-exec-tls was given. 14783 if test "${enable_initial_exec_tls+set}" = set; then : 14784 enableval=$enable_initial_exec_tls; if test "x$enable_initial_exec_tls" = "xno" ; then 14785 enable_initial_exec_tls="0" 14786 else 14787 enable_initial_exec_tls="1" 14788 fi 14789 14790 else 14791 enable_initial_exec_tls="1" 14792 14793 fi 14794 14795 14796 14797 if test "x${je_cv_tls_model}" = "xyes" -a \ 14798 "x${enable_initial_exec_tls}" = "x1" ; then 14799 14800 $as_echo "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h 14801 14802 else 14803 14804 $as_echo "#define JEMALLOC_TLS_MODEL " >>confdefs.h 14805 14806 fi 14807 14808 # Check whether --enable-pageid was given. 14809 if test "${enable_pageid+set}" = set; then : 14810 enableval=$enable_pageid; if test "x$enable_pageid" = "xno" ; then 14811 enable_pageid="0" 14812 else 14813 enable_pageid="1" 14814 fi 14815 14816 else 14817 enable_pageid="0" 14818 14819 fi 14820 14821 if test "x$enable_pageid" = "x1" ; then 14822 14823 $as_echo "#define JEMALLOC_PAGEID " >>confdefs.h 14824 14825 fi 14826 14827 # Check whether --enable-tsan was given. 14828 if test "${enable_tsan+set}" = set; then : 14829 enableval=$enable_tsan; if test "x$enable_tsan" = "xno" ; then 14830 enable_tsan="0" 14831 else 14832 enable_tsan="1" 14833 fi 14834 14835 else 14836 enable_tsan="0" 14837 14838 fi 14839 14840 if test "x$enable_tsan" = "x1" ; then 14841 14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fsanitize=thread" >&5 14843 $as_echo_n "checking whether compiler supports -fsanitize=thread... " >&6; } 14844 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 14845 T_APPEND_V=-fsanitize=thread 14846 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 14847 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 14848 else 14849 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 14850 fi 14851 14852 14853 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 14854 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 14855 else 14856 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 14857 fi 14858 14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14860 /* end confdefs.h. */ 14861 14862 14863 int 14864 main () 14865 { 14866 14867 return 0; 14868 14869 ; 14870 return 0; 14871 } 14872 _ACEOF 14873 if ac_fn_c_try_compile "$LINENO"; then : 14874 je_cv_cflags_added=-fsanitize=thread 14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14876 $as_echo "yes" >&6; } 14877 else 14878 je_cv_cflags_added= 14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14880 $as_echo "no" >&6; } 14881 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 14882 14883 fi 14884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14885 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 14886 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 14887 else 14888 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 14889 fi 14890 14891 14892 14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fsanitize=thread" >&5 14894 $as_echo_n "checking whether compiler supports -fsanitize=thread... " >&6; } 14895 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}" 14896 T_APPEND_V=-fsanitize=thread 14897 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 14898 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}" 14899 else 14900 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}" 14901 fi 14902 14903 14904 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 14905 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 14906 else 14907 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 14908 fi 14909 14910 ac_ext=cpp 14911 ac_cpp='$CXXCPP $CPPFLAGS' 14912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14915 14916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14917 /* end confdefs.h. */ 14918 14919 14920 int 14921 main () 14922 { 14923 14924 return 0; 14925 14926 ; 14927 return 0; 14928 } 14929 _ACEOF 14930 if ac_fn_cxx_try_compile "$LINENO"; then : 14931 je_cv_cxxflags_added=-fsanitize=thread 14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14933 $as_echo "yes" >&6; } 14934 else 14935 je_cv_cxxflags_added= 14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14937 $as_echo "no" >&6; } 14938 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}" 14939 14940 fi 14941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14942 ac_ext=c 14943 ac_cpp='$CPP $CPPFLAGS' 14944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14946 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14947 14948 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 14949 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 14950 else 14951 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 14952 fi 14953 14954 14955 14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports -fsanitize=thread" >&5 14957 $as_echo_n "checking whether linker supports -fsanitize=thread... " >&6; } 14958 T_CONFIGURE_LDFLAGS="${CONFIGURE_LDFLAGS}" 14959 T_APPEND_V=-fsanitize=thread 14960 if test "x${CONFIGURE_LDFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 14961 CONFIGURE_LDFLAGS="${CONFIGURE_LDFLAGS}${T_APPEND_V}" 14962 else 14963 CONFIGURE_LDFLAGS="${CONFIGURE_LDFLAGS} ${T_APPEND_V}" 14964 fi 14965 14966 14967 if test "x${CONFIGURE_LDFLAGS}" = "x" -o "x${SPECIFIED_LDFLAGS}" = "x" ; then 14968 LDFLAGS="${CONFIGURE_LDFLAGS}${SPECIFIED_LDFLAGS}" 14969 else 14970 LDFLAGS="${CONFIGURE_LDFLAGS} ${SPECIFIED_LDFLAGS}" 14971 fi 14972 14973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14974 /* end confdefs.h. */ 14975 14976 14977 int 14978 main () 14979 { 14980 14981 return 0; 14982 14983 ; 14984 return 0; 14985 } 14986 _ACEOF 14987 if ac_fn_c_try_link "$LINENO"; then : 14988 je_cv_ldflags_added=-fsanitize=thread 14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14990 $as_echo "yes" >&6; } 14991 else 14992 je_cv_ldflags_added= 14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14994 $as_echo "no" >&6; } 14995 CONFIGURE_LDFLAGS="${T_CONFIGURE_LDFLAGS}" 14996 14997 fi 14998 rm -f core conftest.err conftest.$ac_objext \ 14999 conftest$ac_exeext conftest.$ac_ext 15000 if test "x${CONFIGURE_LDFLAGS}" = "x" -o "x${SPECIFIED_LDFLAGS}" = "x" ; then 15001 LDFLAGS="${CONFIGURE_LDFLAGS}${SPECIFIED_LDFLAGS}" 15002 else 15003 LDFLAGS="${CONFIGURE_LDFLAGS} ${SPECIFIED_LDFLAGS}" 15004 fi 15005 15006 15007 fi 15008 15009 # Check whether --enable-ubsan was given. 15010 if test "${enable_ubsan+set}" = set; then : 15011 enableval=$enable_ubsan; if test "x$enable_ubsan" = "xno" ; then 15012 enable_ubsan="0" 15013 else 15014 enable_ubsan="1" 15015 fi 15016 15017 else 15018 enable_ubsan="0" 15019 15020 fi 15021 15022 if test "x$enable_ubsan" = "x1" ; then 15023 15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fsanitize=undefined" >&5 15025 $as_echo_n "checking whether compiler supports -fsanitize=undefined... " >&6; } 15026 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 15027 T_APPEND_V=-fsanitize=undefined 15028 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 15029 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 15030 else 15031 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 15032 fi 15033 15034 15035 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 15036 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 15037 else 15038 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 15039 fi 15040 15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15042 /* end confdefs.h. */ 15043 15044 15045 int 15046 main () 15047 { 15048 15049 return 0; 15050 15051 ; 15052 return 0; 15053 } 15054 _ACEOF 15055 if ac_fn_c_try_compile "$LINENO"; then : 15056 je_cv_cflags_added=-fsanitize=undefined 15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15058 $as_echo "yes" >&6; } 15059 else 15060 je_cv_cflags_added= 15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15062 $as_echo "no" >&6; } 15063 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 15064 15065 fi 15066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15067 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 15068 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 15069 else 15070 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 15071 fi 15072 15073 15074 15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fsanitize=undefined" >&5 15076 $as_echo_n "checking whether compiler supports -fsanitize=undefined... " >&6; } 15077 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}" 15078 T_APPEND_V=-fsanitize=undefined 15079 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 15080 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}" 15081 else 15082 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}" 15083 fi 15084 15085 15086 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 15087 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 15088 else 15089 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 15090 fi 15091 15092 ac_ext=cpp 15093 ac_cpp='$CXXCPP $CPPFLAGS' 15094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15097 15098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15099 /* end confdefs.h. */ 15100 15101 15102 int 15103 main () 15104 { 15105 15106 return 0; 15107 15108 ; 15109 return 0; 15110 } 15111 _ACEOF 15112 if ac_fn_cxx_try_compile "$LINENO"; then : 15113 je_cv_cxxflags_added=-fsanitize=undefined 15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15115 $as_echo "yes" >&6; } 15116 else 15117 je_cv_cxxflags_added= 15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15119 $as_echo "no" >&6; } 15120 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}" 15121 15122 fi 15123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15124 ac_ext=c 15125 ac_cpp='$CPP $CPPFLAGS' 15126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15128 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15129 15130 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 15131 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 15132 else 15133 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 15134 fi 15135 15136 15137 15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports -fsanitize=undefined" >&5 15139 $as_echo_n "checking whether linker supports -fsanitize=undefined... " >&6; } 15140 T_CONFIGURE_LDFLAGS="${CONFIGURE_LDFLAGS}" 15141 T_APPEND_V=-fsanitize=undefined 15142 if test "x${CONFIGURE_LDFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 15143 CONFIGURE_LDFLAGS="${CONFIGURE_LDFLAGS}${T_APPEND_V}" 15144 else 15145 CONFIGURE_LDFLAGS="${CONFIGURE_LDFLAGS} ${T_APPEND_V}" 15146 fi 15147 15148 15149 if test "x${CONFIGURE_LDFLAGS}" = "x" -o "x${SPECIFIED_LDFLAGS}" = "x" ; then 15150 LDFLAGS="${CONFIGURE_LDFLAGS}${SPECIFIED_LDFLAGS}" 15151 else 15152 LDFLAGS="${CONFIGURE_LDFLAGS} ${SPECIFIED_LDFLAGS}" 15153 fi 15154 15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15156 /* end confdefs.h. */ 15157 15158 15159 int 15160 main () 15161 { 15162 15163 return 0; 15164 15165 ; 15166 return 0; 15167 } 15168 _ACEOF 15169 if ac_fn_c_try_link "$LINENO"; then : 15170 je_cv_ldflags_added=-fsanitize=undefined 15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15172 $as_echo "yes" >&6; } 15173 else 15174 je_cv_ldflags_added= 15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15176 $as_echo "no" >&6; } 15177 CONFIGURE_LDFLAGS="${T_CONFIGURE_LDFLAGS}" 15178 15179 fi 15180 rm -f core conftest.err conftest.$ac_objext \ 15181 conftest$ac_exeext conftest.$ac_ext 15182 if test "x${CONFIGURE_LDFLAGS}" = "x" -o "x${SPECIFIED_LDFLAGS}" = "x" ; then 15183 LDFLAGS="${CONFIGURE_LDFLAGS}${SPECIFIED_LDFLAGS}" 15184 else 15185 LDFLAGS="${CONFIGURE_LDFLAGS} ${SPECIFIED_LDFLAGS}" 15186 fi 15187 15188 15189 fi 15190 15191 15192 if test "x${have_pthread}" = "x1" -a "x${je_cv_os_unfair_lock}" != "xyes" -a \ 15193 "x${abi}" != "xmacho" ; then 15194 15195 $as_echo "#define JEMALLOC_BACKGROUND_THREAD " >>confdefs.h 15196 15197 fi 15198 15199 15200 if test "x$glibc" = "x1" ; then 15201 15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc malloc hook is compilable" >&5 15203 $as_echo_n "checking whether glibc malloc hook is compilable... " >&6; } 15204 if ${je_cv_glibc_malloc_hook+:} false; then : 15205 $as_echo_n "(cached) " >&6 15206 else 15207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15208 /* end confdefs.h. */ 15209 15210 #include <stddef.h> 15211 15212 extern void (* __free_hook)(void *ptr); 15213 extern void *(* __malloc_hook)(size_t size); 15214 extern void *(* __realloc_hook)(void *ptr, size_t size); 15215 15216 int 15217 main () 15218 { 15219 15220 void *ptr = 0L; 15221 if (__malloc_hook) ptr = __malloc_hook(1); 15222 if (__realloc_hook) ptr = __realloc_hook(ptr, 2); 15223 if (__free_hook && ptr) __free_hook(ptr); 15224 15225 ; 15226 return 0; 15227 } 15228 _ACEOF 15229 if ac_fn_c_try_link "$LINENO"; then : 15230 je_cv_glibc_malloc_hook=yes 15231 else 15232 je_cv_glibc_malloc_hook=no 15233 fi 15234 rm -f core conftest.err conftest.$ac_objext \ 15235 conftest$ac_exeext conftest.$ac_ext 15236 fi 15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_malloc_hook" >&5 15238 $as_echo "$je_cv_glibc_malloc_hook" >&6; } 15239 15240 if test "x${je_cv_glibc_malloc_hook}" = "xyes" ; then 15241 if test "x${JEMALLOC_PREFIX}" = "x" ; then 15242 15243 $as_echo "#define JEMALLOC_GLIBC_MALLOC_HOOK " >>confdefs.h 15244 15245 wrap_syms="${wrap_syms} __free_hook __malloc_hook __realloc_hook" 15246 fi 15247 fi 15248 15249 15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc memalign hook is compilable" >&5 15251 $as_echo_n "checking whether glibc memalign hook is compilable... " >&6; } 15252 if ${je_cv_glibc_memalign_hook+:} false; then : 15253 $as_echo_n "(cached) " >&6 15254 else 15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15256 /* end confdefs.h. */ 15257 15258 #include <stddef.h> 15259 15260 extern void *(* __memalign_hook)(size_t alignment, size_t size); 15261 15262 int 15263 main () 15264 { 15265 15266 void *ptr = 0L; 15267 if (__memalign_hook) ptr = __memalign_hook(16, 7); 15268 15269 ; 15270 return 0; 15271 } 15272 _ACEOF 15273 if ac_fn_c_try_link "$LINENO"; then : 15274 je_cv_glibc_memalign_hook=yes 15275 else 15276 je_cv_glibc_memalign_hook=no 15277 fi 15278 rm -f core conftest.err conftest.$ac_objext \ 15279 conftest$ac_exeext conftest.$ac_ext 15280 fi 15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_memalign_hook" >&5 15282 $as_echo "$je_cv_glibc_memalign_hook" >&6; } 15283 15284 if test "x${je_cv_glibc_memalign_hook}" = "xyes" ; then 15285 if test "x${JEMALLOC_PREFIX}" = "x" ; then 15286 15287 $as_echo "#define JEMALLOC_GLIBC_MEMALIGN_HOOK " >>confdefs.h 15288 15289 wrap_syms="${wrap_syms} __memalign_hook" 15290 fi 15291 fi 15292 fi 15293 15294 15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads adaptive mutexes is compilable" >&5 15296 $as_echo_n "checking whether pthreads adaptive mutexes is compilable... " >&6; } 15297 if ${je_cv_pthread_mutex_adaptive_np+:} false; then : 15298 $as_echo_n "(cached) " >&6 15299 else 15300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15301 /* end confdefs.h. */ 15302 15303 #include <pthread.h> 15304 15305 int 15306 main () 15307 { 15308 15309 pthread_mutexattr_t attr; 15310 pthread_mutexattr_init(&attr); 15311 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP); 15312 pthread_mutexattr_destroy(&attr); 15313 15314 ; 15315 return 0; 15316 } 15317 _ACEOF 15318 if ac_fn_c_try_link "$LINENO"; then : 15319 je_cv_pthread_mutex_adaptive_np=yes 15320 else 15321 je_cv_pthread_mutex_adaptive_np=no 15322 fi 15323 rm -f core conftest.err conftest.$ac_objext \ 15324 conftest$ac_exeext conftest.$ac_ext 15325 fi 15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_mutex_adaptive_np" >&5 15327 $as_echo "$je_cv_pthread_mutex_adaptive_np" >&6; } 15328 15329 if test "x${je_cv_pthread_mutex_adaptive_np}" = "xyes" ; then 15330 15331 $as_echo "#define JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP " >>confdefs.h 15332 15333 fi 15334 15335 15336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettid is compilable" >&5 15337 $as_echo_n "checking whether gettid is compilable... " >&6; } 15338 if ${je_cv_gettid+:} false; then : 15339 $as_echo_n "(cached) " >&6 15340 else 15341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15342 /* end confdefs.h. */ 15343 15344 #include <unistd.h> 15345 15346 int 15347 main () 15348 { 15349 15350 int tid = gettid(); 15351 15352 ; 15353 return 0; 15354 } 15355 _ACEOF 15356 if ac_fn_c_try_link "$LINENO"; then : 15357 je_cv_gettid=yes 15358 else 15359 je_cv_gettid=no 15360 fi 15361 rm -f core conftest.err conftest.$ac_objext \ 15362 conftest$ac_exeext conftest.$ac_ext 15363 fi 15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gettid" >&5 15365 $as_echo "$je_cv_gettid" >&6; } 15366 15367 if test "x${je_cv_gettid}" = "xyes" ; then 15368 15369 $as_echo "#define JEMALLOC_HAVE_GETTID " >>confdefs.h 15370 15371 fi 15372 15373 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 15374 15375 15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -D_GNU_SOURCE" >&5 15377 $as_echo_n "checking whether compiler supports -D_GNU_SOURCE... " >&6; } 15378 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 15379 T_APPEND_V=-D_GNU_SOURCE 15380 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 15381 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 15382 else 15383 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 15384 fi 15385 15386 15387 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 15388 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 15389 else 15390 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 15391 fi 15392 15393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15394 /* end confdefs.h. */ 15395 15396 15397 int 15398 main () 15399 { 15400 15401 return 0; 15402 15403 ; 15404 return 0; 15405 } 15406 _ACEOF 15407 if ac_fn_c_try_compile "$LINENO"; then : 15408 je_cv_cflags_added=-D_GNU_SOURCE 15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15410 $as_echo "yes" >&6; } 15411 else 15412 je_cv_cflags_added= 15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15414 $as_echo "no" >&6; } 15415 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 15416 15417 fi 15418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15419 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 15420 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 15421 else 15422 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 15423 fi 15424 15425 15426 15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 15428 $as_echo_n "checking whether compiler supports -Werror... " >&6; } 15429 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 15430 T_APPEND_V=-Werror 15431 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 15432 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 15433 else 15434 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 15435 fi 15436 15437 15438 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 15439 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 15440 else 15441 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 15442 fi 15443 15444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15445 /* end confdefs.h. */ 15446 15447 15448 int 15449 main () 15450 { 15451 15452 return 0; 15453 15454 ; 15455 return 0; 15456 } 15457 _ACEOF 15458 if ac_fn_c_try_compile "$LINENO"; then : 15459 je_cv_cflags_added=-Werror 15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15461 $as_echo "yes" >&6; } 15462 else 15463 je_cv_cflags_added= 15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15465 $as_echo "no" >&6; } 15466 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 15467 15468 fi 15469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15470 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 15471 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 15472 else 15473 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 15474 fi 15475 15476 15477 15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5 15479 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; } 15480 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 15481 T_APPEND_V=-herror_on_warning 15482 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 15483 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 15484 else 15485 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 15486 fi 15487 15488 15489 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 15490 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 15491 else 15492 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 15493 fi 15494 15495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15496 /* end confdefs.h. */ 15497 15498 15499 int 15500 main () 15501 { 15502 15503 return 0; 15504 15505 ; 15506 return 0; 15507 } 15508 _ACEOF 15509 if ac_fn_c_try_compile "$LINENO"; then : 15510 je_cv_cflags_added=-herror_on_warning 15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15512 $as_echo "yes" >&6; } 15513 else 15514 je_cv_cflags_added= 15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15516 $as_echo "no" >&6; } 15517 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 15518 15519 fi 15520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15521 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 15522 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 15523 else 15524 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 15525 fi 15526 15527 15528 15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char with gnu source is compilable" >&5 15530 $as_echo_n "checking whether strerror_r returns char with gnu source is compilable... " >&6; } 15531 if ${je_cv_strerror_r_returns_char_with_gnu_source+:} false; then : 15532 $as_echo_n "(cached) " >&6 15533 else 15534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15535 /* end confdefs.h. */ 15536 15537 #include <errno.h> 15538 #include <stdio.h> 15539 #include <stdlib.h> 15540 #include <string.h> 15541 15542 int 15543 main () 15544 { 15545 15546 char *buffer = (char *) malloc(100); 15547 char *error = strerror_r(EINVAL, buffer, 100); 15548 printf("%s\n", error); 15549 15550 ; 15551 return 0; 15552 } 15553 _ACEOF 15554 if ac_fn_c_try_link "$LINENO"; then : 15555 je_cv_strerror_r_returns_char_with_gnu_source=yes 15556 else 15557 je_cv_strerror_r_returns_char_with_gnu_source=no 15558 fi 15559 rm -f core conftest.err conftest.$ac_objext \ 15560 conftest$ac_exeext conftest.$ac_ext 15561 fi 15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_strerror_r_returns_char_with_gnu_source" >&5 15563 $as_echo "$je_cv_strerror_r_returns_char_with_gnu_source" >&6; } 15564 15565 if test "x${je_cv_strerror_r_returns_char_with_gnu_source}" = "xno" ; then 15566 15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r header only is compilable" >&5 15568 $as_echo_n "checking whether strerror_r header only is compilable... " >&6; } 15569 if ${je_cv_strerror_r_header_pass+:} false; then : 15570 $as_echo_n "(cached) " >&6 15571 else 15572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15573 /* end confdefs.h. */ 15574 15575 #include <errno.h> 15576 #include <stdio.h> 15577 #include <stdlib.h> 15578 #include <string.h> 15579 15580 int 15581 main () 15582 { 15583 15584 ; 15585 return 0; 15586 } 15587 _ACEOF 15588 if ac_fn_c_try_link "$LINENO"; then : 15589 je_cv_strerror_r_header_pass=yes 15590 else 15591 je_cv_strerror_r_header_pass=no 15592 fi 15593 rm -f core conftest.err conftest.$ac_objext \ 15594 conftest$ac_exeext conftest.$ac_ext 15595 fi 15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_strerror_r_header_pass" >&5 15597 $as_echo "$je_cv_strerror_r_header_pass" >&6; } 15598 15599 fi 15600 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}" 15601 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 15602 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 15603 else 15604 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 15605 fi 15606 15607 15608 if test "x${je_cv_strerror_r_returns_char_with_gnu_source}" = "xyes" ; then 15609 15610 $as_echo "#define JEMALLOC_STRERROR_R_RETURNS_CHAR_WITH_GNU_SOURCE " >>confdefs.h 15611 15612 elif test "x${je_cv_strerror_r_header_pass}" = "xno" ; then 15613 as_fn_error $? "cannot determine return type of strerror_r" "$LINENO" 5 15614 fi 15615 15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 15617 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 15618 if ${ac_cv_header_stdbool_h+:} false; then : 15619 $as_echo_n "(cached) " >&6 15620 else 15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15622 /* end confdefs.h. */ 15623 15624 #include <stdbool.h> 15625 #ifndef bool 15626 "error: bool is not defined" 15627 #endif 15628 #ifndef false 15629 "error: false is not defined" 15630 #endif 15631 #if false 15632 "error: false is not 0" 15633 #endif 15634 #ifndef true 15635 "error: true is not defined" 15636 #endif 15637 #if true != 1 15638 "error: true is not 1" 15639 #endif 15640 #ifndef __bool_true_false_are_defined 15641 "error: __bool_true_false_are_defined is not defined" 15642 #endif 15643 15644 struct s { _Bool s: 1; _Bool t; } s; 15645 15646 char a[true == 1 ? 1 : -1]; 15647 char b[false == 0 ? 1 : -1]; 15648 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 15649 char d[(bool) 0.5 == true ? 1 : -1]; 15650 /* See body of main program for 'e'. */ 15651 char f[(_Bool) 0.0 == false ? 1 : -1]; 15652 char g[true]; 15653 char h[sizeof (_Bool)]; 15654 char i[sizeof s.t]; 15655 enum { j = false, k = true, l = false * true, m = true * 256 }; 15656 /* The following fails for 15657 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 15658 _Bool n[m]; 15659 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 15660 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 15661 /* Catch a bug in an HP-UX C compiler. See 15662 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 15663 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 15664 */ 15665 _Bool q = true; 15666 _Bool *pq = &q; 15667 15668 int 15669 main () 15670 { 15671 15672 bool e = &s; 15673 *pq |= q; 15674 *pq |= ! q; 15675 /* Refer to every declared value, to avoid compiler optimizations. */ 15676 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 15677 + !m + !n + !o + !p + !q + !pq); 15678 15679 ; 15680 return 0; 15681 } 15682 _ACEOF 15683 if ac_fn_c_try_compile "$LINENO"; then : 15684 ac_cv_header_stdbool_h=yes 15685 else 15686 ac_cv_header_stdbool_h=no 15687 fi 15688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15689 fi 15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 15691 $as_echo "$ac_cv_header_stdbool_h" >&6; } 15692 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 15693 if test "x$ac_cv_type__Bool" = xyes; then : 15694 15695 cat >>confdefs.h <<_ACEOF 15696 #define HAVE__BOOL 1 15697 _ACEOF 15698 15699 15700 fi 15701 15702 15703 if test $ac_cv_header_stdbool_h = yes; then 15704 15705 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 15706 15707 fi 15708 15709 15710 15711 ac_config_commands="$ac_config_commands include/jemalloc/internal/public_symbols.txt" 15712 15713 ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols.awk" 15714 15715 ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols_jet.awk" 15716 15717 ac_config_commands="$ac_config_commands include/jemalloc/internal/public_namespace.h" 15718 15719 ac_config_commands="$ac_config_commands include/jemalloc/internal/public_unnamespace.h" 15720 15721 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_protos_jet.h" 15722 15723 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_rename.h" 15724 15725 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle.h" 15726 15727 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle_jet.h" 15728 15729 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc.h" 15730 15731 15732 15733 15734 ac_config_headers="$ac_config_headers $cfghdrs_tup" 15735 15736 15737 15738 ac_config_files="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc-config bin/jemalloc.sh bin/jeprof" 15739 15740 15741 15742 cat >confcache <<\_ACEOF 15743 # This file is a shell script that caches the results of configure 15744 # tests run on this system so they can be shared between configure 15745 # scripts and configure runs, see configure's option --config-cache. 15746 # It is not useful on other systems. If it contains results you don't 15747 # want to keep, you may remove or edit it. 15748 # 15749 # config.status only pays attention to the cache file if you give it 15750 # the --recheck option to rerun configure. 15751 # 15752 # `ac_cv_env_foo' variables (set or unset) will be overridden when 15753 # loading this file, other *unset* `ac_cv_foo' will be assigned the 15754 # following values. 15755 15756 _ACEOF 15757 15758 # The following way of writing the cache mishandles newlines in values, 15759 # but we know of no workaround that is simple, portable, and efficient. 15760 # So, we kill variables containing newlines. 15761 # Ultrix sh set writes to stderr and can't be redirected directly, 15762 # and sets the high bit in the cache file unless we assign to the vars. 15763 ( 15764 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15765 eval ac_val=\$$ac_var 15766 case $ac_val in #( 15767 *${as_nl}*) 15768 case $ac_var in #( 15769 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15770 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15771 esac 15772 case $ac_var in #( 15773 _ | IFS | as_nl) ;; #( 15774 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15775 *) { eval $ac_var=; unset $ac_var;} ;; 15776 esac ;; 15777 esac 15778 done 15779 15780 (set) 2>&1 | 15781 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15782 *${as_nl}ac_space=\ *) 15783 # `set' does not quote correctly, so add quotes: double-quote 15784 # substitution turns \\\\ into \\, and sed turns \\ into \. 15785 sed -n \ 15786 "s/'/'\\\\''/g; 15787 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15788 ;; #( 15789 *) 15790 # `set' quotes correctly as required by POSIX, so do not add quotes. 15791 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15792 ;; 15793 esac | 15794 sort 15795 ) | 15796 sed ' 15797 /^ac_cv_env_/b end 15798 t clear 15799 :clear 15800 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15801 t end 15802 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15803 :end' >>confcache 15804 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15805 if test -w "$cache_file"; then 15806 if test "x$cache_file" != "x/dev/null"; then 15807 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15808 $as_echo "$as_me: updating cache $cache_file" >&6;} 15809 if test ! -f "$cache_file" || test -h "$cache_file"; then 15810 cat confcache >"$cache_file" 15811 else 15812 case $cache_file in #( 15813 */* | ?:*) 15814 mv -f confcache "$cache_file"$$ && 15815 mv -f "$cache_file"$$ "$cache_file" ;; #( 15816 *) 15817 mv -f confcache "$cache_file" ;; 15818 esac 15819 fi 15820 fi 15821 else 15822 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15823 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15824 fi 15825 fi 15826 rm -f confcache 15827 15828 test "x$prefix" = xNONE && prefix=$ac_default_prefix 15829 # Let make expand exec_prefix. 15830 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15831 15832 DEFS=-DHAVE_CONFIG_H 15833 15834 ac_libobjs= 15835 ac_ltlibobjs= 15836 U= 15837 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15838 # 1. Remove the extension, and $U if already installed. 15839 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15840 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15841 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15842 # will be set to the directory where LIBOBJS objects are built. 15843 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15844 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15845 done 15846 LIBOBJS=$ac_libobjs 15847 15848 LTLIBOBJS=$ac_ltlibobjs 15849 15850 15851 15852 15853 : "${CONFIG_STATUS=./config.status}" 15854 ac_write_fail=0 15855 ac_clean_files_save=$ac_clean_files 15856 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15857 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15858 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15859 as_write_fail=0 15860 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15861 #! $SHELL 15862 # Generated by $as_me. 15863 # Run this file to recreate the current configuration. 15864 # Compiler output produced by configure, useful for debugging 15865 # configure, is in config.log if it exists. 15866 15867 debug=false 15868 ac_cs_recheck=false 15869 ac_cs_silent=false 15870 15871 SHELL=\${CONFIG_SHELL-$SHELL} 15872 export SHELL 15873 _ASEOF 15874 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15875 ## -------------------- ## 15876 ## M4sh Initialization. ## 15877 ## -------------------- ## 15878 15879 # Be more Bourne compatible 15880 DUALCASE=1; export DUALCASE # for MKS sh 15881 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15882 emulate sh 15883 NULLCMD=: 15884 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15885 # is contrary to our usage. Disable this feature. 15886 alias -g '${1+"$@"}'='"$@"' 15887 setopt NO_GLOB_SUBST 15888 else 15889 case `(set -o) 2>/dev/null` in #( 15890 *posix*) : 15891 set -o posix ;; #( 15892 *) : 15893 ;; 15894 esac 15895 fi 15896 15897 15898 as_nl=' 15899 ' 15900 export as_nl 15901 # Printing a long string crashes Solaris 7 /usr/bin/printf. 15902 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15903 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15904 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15905 # Prefer a ksh shell builtin over an external printf program on Solaris, 15906 # but without wasting forks for bash or zsh. 15907 if test -z "$BASH_VERSION$ZSH_VERSION" \ 15908 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15909 as_echo='print -r --' 15910 as_echo_n='print -rn --' 15911 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15912 as_echo='printf %s\n' 15913 as_echo_n='printf %s' 15914 else 15915 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15916 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15917 as_echo_n='/usr/ucb/echo -n' 15918 else 15919 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15920 as_echo_n_body='eval 15921 arg=$1; 15922 case $arg in #( 15923 *"$as_nl"*) 15924 expr "X$arg" : "X\\(.*\\)$as_nl"; 15925 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15926 esac; 15927 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15928 ' 15929 export as_echo_n_body 15930 as_echo_n='sh -c $as_echo_n_body as_echo' 15931 fi 15932 export as_echo_body 15933 as_echo='sh -c $as_echo_body as_echo' 15934 fi 15935 15936 # The user is always right. 15937 if test "${PATH_SEPARATOR+set}" != set; then 15938 PATH_SEPARATOR=: 15939 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15940 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15941 PATH_SEPARATOR=';' 15942 } 15943 fi 15944 15945 15946 # IFS 15947 # We need space, tab and new line, in precisely that order. Quoting is 15948 # there to prevent editors from complaining about space-tab. 15949 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 15950 # splitting by setting IFS to empty value.) 15951 IFS=" "" $as_nl" 15952 15953 # Find who we are. Look in the path if we contain no directory separator. 15954 as_myself= 15955 case $0 in #(( 15956 *[\\/]* ) as_myself=$0 ;; 15957 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15958 for as_dir in $PATH 15959 do 15960 IFS=$as_save_IFS 15961 test -z "$as_dir" && as_dir=. 15962 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15963 done 15964 IFS=$as_save_IFS 15965 15966 ;; 15967 esac 15968 # We did not find ourselves, most probably we were run as `sh COMMAND' 15969 # in which case we are not to be found in the path. 15970 if test "x$as_myself" = x; then 15971 as_myself=$0 15972 fi 15973 if test ! -f "$as_myself"; then 15974 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15975 exit 1 15976 fi 15977 15978 # Unset variables that we do not need and which cause bugs (e.g. in 15979 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15980 # suppresses any "Segmentation fault" message there. '((' could 15981 # trigger a bug in pdksh 5.2.14. 15982 for as_var in BASH_ENV ENV MAIL MAILPATH 15983 do eval test x\${$as_var+set} = xset \ 15984 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15985 done 15986 PS1='$ ' 15987 PS2='> ' 15988 PS4='+ ' 15989 15990 # NLS nuisances. 15991 LC_ALL=C 15992 export LC_ALL 15993 LANGUAGE=C 15994 export LANGUAGE 15995 15996 # CDPATH. 15997 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15998 15999 16000 # as_fn_error STATUS ERROR [LINENO LOG_FD] 16001 # ---------------------------------------- 16002 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16003 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16004 # script with STATUS, using 1 if that was 0. 16005 as_fn_error () 16006 { 16007 as_status=$1; test $as_status -eq 0 && as_status=1 16008 if test "$4"; then 16009 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16010 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16011 fi 16012 $as_echo "$as_me: error: $2" >&2 16013 as_fn_exit $as_status 16014 } # as_fn_error 16015 16016 16017 # as_fn_set_status STATUS 16018 # ----------------------- 16019 # Set $? to STATUS, without forking. 16020 as_fn_set_status () 16021 { 16022 return $1 16023 } # as_fn_set_status 16024 16025 # as_fn_exit STATUS 16026 # ----------------- 16027 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16028 as_fn_exit () 16029 { 16030 set +e 16031 as_fn_set_status $1 16032 exit $1 16033 } # as_fn_exit 16034 16035 # as_fn_unset VAR 16036 # --------------- 16037 # Portably unset VAR. 16038 as_fn_unset () 16039 { 16040 { eval $1=; unset $1;} 16041 } 16042 as_unset=as_fn_unset 16043 # as_fn_append VAR VALUE 16044 # ---------------------- 16045 # Append the text in VALUE to the end of the definition contained in VAR. Take 16046 # advantage of any shell optimizations that allow amortized linear growth over 16047 # repeated appends, instead of the typical quadratic growth present in naive 16048 # implementations. 16049 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16050 eval 'as_fn_append () 16051 { 16052 eval $1+=\$2 16053 }' 16054 else 16055 as_fn_append () 16056 { 16057 eval $1=\$$1\$2 16058 } 16059 fi # as_fn_append 16060 16061 # as_fn_arith ARG... 16062 # ------------------ 16063 # Perform arithmetic evaluation on the ARGs, and store the result in the 16064 # global $as_val. Take advantage of shells that can avoid forks. The arguments 16065 # must be portable across $(()) and expr. 16066 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16067 eval 'as_fn_arith () 16068 { 16069 as_val=$(( $* )) 16070 }' 16071 else 16072 as_fn_arith () 16073 { 16074 as_val=`expr "$@" || test $? -eq 1` 16075 } 16076 fi # as_fn_arith 16077 16078 16079 if expr a : '\(a\)' >/dev/null 2>&1 && 16080 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16081 as_expr=expr 16082 else 16083 as_expr=false 16084 fi 16085 16086 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16087 as_basename=basename 16088 else 16089 as_basename=false 16090 fi 16091 16092 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16093 as_dirname=dirname 16094 else 16095 as_dirname=false 16096 fi 16097 16098 as_me=`$as_basename -- "$0" || 16099 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16100 X"$0" : 'X\(//\)$' \| \ 16101 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16102 $as_echo X/"$0" | 16103 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16104 s//\1/ 16105 q 16106 } 16107 /^X\/\(\/\/\)$/{ 16108 s//\1/ 16109 q 16110 } 16111 /^X\/\(\/\).*/{ 16112 s//\1/ 16113 q 16114 } 16115 s/.*/./; q'` 16116 16117 # Avoid depending upon Character Ranges. 16118 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16119 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16120 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16121 as_cr_digits='0123456789' 16122 as_cr_alnum=$as_cr_Letters$as_cr_digits 16123 16124 ECHO_C= ECHO_N= ECHO_T= 16125 case `echo -n x` in #((((( 16126 -n*) 16127 case `echo 'xy\c'` in 16128 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16129 xy) ECHO_C='\c';; 16130 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16131 ECHO_T=' ';; 16132 esac;; 16133 *) 16134 ECHO_N='-n';; 16135 esac 16136 16137 rm -f conf$$ conf$$.exe conf$$.file 16138 if test -d conf$$.dir; then 16139 rm -f conf$$.dir/conf$$.file 16140 else 16141 rm -f conf$$.dir 16142 mkdir conf$$.dir 2>/dev/null 16143 fi 16144 if (echo >conf$$.file) 2>/dev/null; then 16145 if ln -s conf$$.file conf$$ 2>/dev/null; then 16146 as_ln_s='ln -s' 16147 # ... but there are two gotchas: 16148 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16149 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16150 # In both cases, we have to default to `cp -pR'. 16151 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16152 as_ln_s='cp -pR' 16153 elif ln conf$$.file conf$$ 2>/dev/null; then 16154 as_ln_s=ln 16155 else 16156 as_ln_s='cp -pR' 16157 fi 16158 else 16159 as_ln_s='cp -pR' 16160 fi 16161 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16162 rmdir conf$$.dir 2>/dev/null 16163 16164 16165 # as_fn_mkdir_p 16166 # ------------- 16167 # Create "$as_dir" as a directory, including parents if necessary. 16168 as_fn_mkdir_p () 16169 { 16170 16171 case $as_dir in #( 16172 -*) as_dir=./$as_dir;; 16173 esac 16174 test -d "$as_dir" || eval $as_mkdir_p || { 16175 as_dirs= 16176 while :; do 16177 case $as_dir in #( 16178 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16179 *) as_qdir=$as_dir;; 16180 esac 16181 as_dirs="'$as_qdir' $as_dirs" 16182 as_dir=`$as_dirname -- "$as_dir" || 16183 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16184 X"$as_dir" : 'X\(//\)[^/]' \| \ 16185 X"$as_dir" : 'X\(//\)$' \| \ 16186 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16187 $as_echo X"$as_dir" | 16188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16189 s//\1/ 16190 q 16191 } 16192 /^X\(\/\/\)[^/].*/{ 16193 s//\1/ 16194 q 16195 } 16196 /^X\(\/\/\)$/{ 16197 s//\1/ 16198 q 16199 } 16200 /^X\(\/\).*/{ 16201 s//\1/ 16202 q 16203 } 16204 s/.*/./; q'` 16205 test -d "$as_dir" && break 16206 done 16207 test -z "$as_dirs" || eval "mkdir $as_dirs" 16208 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16209 16210 16211 } # as_fn_mkdir_p 16212 if mkdir -p . 2>/dev/null; then 16213 as_mkdir_p='mkdir -p "$as_dir"' 16214 else 16215 test -d ./-p && rmdir ./-p 16216 as_mkdir_p=false 16217 fi 16218 16219 16220 # as_fn_executable_p FILE 16221 # ----------------------- 16222 # Test if FILE is an executable regular file. 16223 as_fn_executable_p () 16224 { 16225 test -f "$1" && test -x "$1" 16226 } # as_fn_executable_p 16227 as_test_x='test -x' 16228 as_executable_p=as_fn_executable_p 16229 16230 # Sed expression to map a string onto a valid CPP name. 16231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16232 16233 # Sed expression to map a string onto a valid variable name. 16234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16235 16236 16237 exec 6>&1 16238 ## ----------------------------------- ## 16239 ## Main body of $CONFIG_STATUS script. ## 16240 ## ----------------------------------- ## 16241 _ASEOF 16242 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16243 16244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16245 # Save the log message, to keep $0 and so on meaningful, and to 16246 # report actual input values of CONFIG_FILES etc. instead of their 16247 # values after options handling. 16248 ac_log=" 16249 This file was extended by $as_me, which was 16250 generated by GNU Autoconf 2.69. Invocation command line was 16251 16252 CONFIG_FILES = $CONFIG_FILES 16253 CONFIG_HEADERS = $CONFIG_HEADERS 16254 CONFIG_LINKS = $CONFIG_LINKS 16255 CONFIG_COMMANDS = $CONFIG_COMMANDS 16256 $ $0 $@ 16257 16258 on `(hostname || uname -n) 2>/dev/null | sed 1q` 16259 " 16260 16261 _ACEOF 16262 16263 case $ac_config_files in *" 16264 "*) set x $ac_config_files; shift; ac_config_files=$*;; 16265 esac 16266 16267 case $ac_config_headers in *" 16268 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16269 esac 16270 16271 16272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16273 # Files that config.status was made for. 16274 config_files="$ac_config_files" 16275 config_headers="$ac_config_headers" 16276 config_commands="$ac_config_commands" 16277 16278 _ACEOF 16279 16280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16281 ac_cs_usage="\ 16282 \`$as_me' instantiates files and other configuration actions 16283 from templates according to the current configuration. Unless the files 16284 and actions are specified as TAGs, all are instantiated by default. 16285 16286 Usage: $0 [OPTION]... [TAG]... 16287 16288 -h, --help print this help, then exit 16289 -V, --version print version number and configuration settings, then exit 16290 --config print configuration, then exit 16291 -q, --quiet, --silent 16292 do not print progress messages 16293 -d, --debug don't remove temporary files 16294 --recheck update $as_me by reconfiguring in the same conditions 16295 --file=FILE[:TEMPLATE] 16296 instantiate the configuration file FILE 16297 --header=FILE[:TEMPLATE] 16298 instantiate the configuration header FILE 16299 16300 Configuration files: 16301 $config_files 16302 16303 Configuration headers: 16304 $config_headers 16305 16306 Configuration commands: 16307 $config_commands 16308 16309 Report bugs to the package provider." 16310 16311 _ACEOF 16312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16313 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16314 ac_cs_version="\\ 16315 config.status 16316 configured by $0, generated by GNU Autoconf 2.69, 16317 with options \\"\$ac_cs_config\\" 16318 16319 Copyright (C) 2012 Free Software Foundation, Inc. 16320 This config.status script is free software; the Free Software Foundation 16321 gives unlimited permission to copy, distribute and modify it." 16322 16323 ac_pwd='$ac_pwd' 16324 srcdir='$srcdir' 16325 INSTALL='$INSTALL' 16326 AWK='$AWK' 16327 test -n "\$AWK" || AWK=awk 16328 _ACEOF 16329 16330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16331 # The default lists apply if the user does not specify any file. 16332 ac_need_defaults=: 16333 while test $# != 0 16334 do 16335 case $1 in 16336 --*=?*) 16337 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16338 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16339 ac_shift=: 16340 ;; 16341 --*=) 16342 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16343 ac_optarg= 16344 ac_shift=: 16345 ;; 16346 *) 16347 ac_option=$1 16348 ac_optarg=$2 16349 ac_shift=shift 16350 ;; 16351 esac 16352 16353 case $ac_option in 16354 # Handling of the options. 16355 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16356 ac_cs_recheck=: ;; 16357 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16358 $as_echo "$ac_cs_version"; exit ;; 16359 --config | --confi | --conf | --con | --co | --c ) 16360 $as_echo "$ac_cs_config"; exit ;; 16361 --debug | --debu | --deb | --de | --d | -d ) 16362 debug=: ;; 16363 --file | --fil | --fi | --f ) 16364 $ac_shift 16365 case $ac_optarg in 16366 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16367 '') as_fn_error $? "missing file argument" ;; 16368 esac 16369 as_fn_append CONFIG_FILES " '$ac_optarg'" 16370 ac_need_defaults=false;; 16371 --header | --heade | --head | --hea ) 16372 $ac_shift 16373 case $ac_optarg in 16374 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16375 esac 16376 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16377 ac_need_defaults=false;; 16378 --he | --h) 16379 # Conflict between --help and --header 16380 as_fn_error $? "ambiguous option: \`$1' 16381 Try \`$0 --help' for more information.";; 16382 --help | --hel | -h ) 16383 $as_echo "$ac_cs_usage"; exit ;; 16384 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16385 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16386 ac_cs_silent=: ;; 16387 16388 # This is an error. 16389 -*) as_fn_error $? "unrecognized option: \`$1' 16390 Try \`$0 --help' for more information." ;; 16391 16392 *) as_fn_append ac_config_targets " $1" 16393 ac_need_defaults=false ;; 16394 16395 esac 16396 shift 16397 done 16398 16399 ac_configure_extra_args= 16400 16401 if $ac_cs_silent; then 16402 exec 6>/dev/null 16403 ac_configure_extra_args="$ac_configure_extra_args --silent" 16404 fi 16405 16406 _ACEOF 16407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16408 if \$ac_cs_recheck; then 16409 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16410 shift 16411 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16412 CONFIG_SHELL='$SHELL' 16413 export CONFIG_SHELL 16414 exec "\$@" 16415 fi 16416 16417 _ACEOF 16418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16419 exec 5>>config.log 16420 { 16421 echo 16422 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16423 ## Running $as_me. ## 16424 _ASBOX 16425 $as_echo "$ac_log" 16426 } >&5 16427 16428 _ACEOF 16429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16430 # 16431 # INIT-COMMANDS 16432 # 16433 16434 srcdir="${srcdir}" 16435 objroot="${objroot}" 16436 mangling_map="${mangling_map}" 16437 public_syms="${public_syms}" 16438 JEMALLOC_PREFIX="${JEMALLOC_PREFIX}" 16439 16440 16441 srcdir="${srcdir}" 16442 objroot="${objroot}" 16443 public_syms="${public_syms}" 16444 wrap_syms="${wrap_syms}" 16445 SYM_PREFIX="${SYM_PREFIX}" 16446 JEMALLOC_PREFIX="${JEMALLOC_PREFIX}" 16447 16448 16449 srcdir="${srcdir}" 16450 objroot="${objroot}" 16451 public_syms="${public_syms}" 16452 wrap_syms="${wrap_syms}" 16453 SYM_PREFIX="${SYM_PREFIX}" 16454 16455 16456 srcdir="${srcdir}" 16457 objroot="${objroot}" 16458 16459 16460 srcdir="${srcdir}" 16461 objroot="${objroot}" 16462 16463 16464 srcdir="${srcdir}" 16465 objroot="${objroot}" 16466 16467 16468 srcdir="${srcdir}" 16469 objroot="${objroot}" 16470 16471 16472 srcdir="${srcdir}" 16473 objroot="${objroot}" 16474 16475 16476 srcdir="${srcdir}" 16477 objroot="${objroot}" 16478 16479 16480 srcdir="${srcdir}" 16481 objroot="${objroot}" 16482 install_suffix="${install_suffix}" 16483 16484 16485 _ACEOF 16486 16487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16488 16489 # Handling of arguments. 16490 for ac_config_target in $ac_config_targets 16491 do 16492 case $ac_config_target in 16493 "include/jemalloc/internal/public_symbols.txt") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_symbols.txt" ;; 16494 "include/jemalloc/internal/private_symbols.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols.awk" ;; 16495 "include/jemalloc/internal/private_symbols_jet.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols_jet.awk" ;; 16496 "include/jemalloc/internal/public_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_namespace.h" ;; 16497 "include/jemalloc/internal/public_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_unnamespace.h" ;; 16498 "include/jemalloc/jemalloc_protos_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_protos_jet.h" ;; 16499 "include/jemalloc/jemalloc_rename.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_rename.h" ;; 16500 "include/jemalloc/jemalloc_mangle.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle.h" ;; 16501 "include/jemalloc/jemalloc_mangle_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle_jet.h" ;; 16502 "include/jemalloc/jemalloc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc.h" ;; 16503 "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;; 16504 "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;; 16505 "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;; 16506 "bin/jemalloc-config") CONFIG_FILES="$CONFIG_FILES bin/jemalloc-config" ;; 16507 "bin/jemalloc.sh") CONFIG_FILES="$CONFIG_FILES bin/jemalloc.sh" ;; 16508 "bin/jeprof") CONFIG_FILES="$CONFIG_FILES bin/jeprof" ;; 16509 16510 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16511 esac 16512 done 16513 16514 16515 # If the user did not use the arguments to specify the items to instantiate, 16516 # then the envvar interface is used. Set only those that are not. 16517 # We use the long form for the default assignment because of an extremely 16518 # bizarre bug on SunOS 4.1.3. 16519 if $ac_need_defaults; then 16520 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16521 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16522 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16523 fi 16524 16525 # Have a temporary directory for convenience. Make it in the build tree 16526 # simply because there is no reason against having it here, and in addition, 16527 # creating and moving files from /tmp can sometimes cause problems. 16528 # Hook for its removal unless debugging. 16529 # Note that there is a small window in which the directory will not be cleaned: 16530 # after its creation but before its name has been assigned to `$tmp'. 16531 $debug || 16532 { 16533 tmp= ac_tmp= 16534 trap 'exit_status=$? 16535 : "${ac_tmp:=$tmp}" 16536 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16537 ' 0 16538 trap 'as_fn_exit 1' 1 2 13 15 16539 } 16540 # Create a (secure) tmp directory for tmp files. 16541 16542 { 16543 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16544 test -d "$tmp" 16545 } || 16546 { 16547 tmp=./conf$$-$RANDOM 16548 (umask 077 && mkdir "$tmp") 16549 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16550 ac_tmp=$tmp 16551 16552 # Set up the scripts for CONFIG_FILES section. 16553 # No need to generate them if there are no CONFIG_FILES. 16554 # This happens for instance with `./config.status config.h'. 16555 if test -n "$CONFIG_FILES"; then 16556 16557 16558 ac_cr=`echo X | tr X '\015'` 16559 # On cygwin, bash can eat \r inside `` if the user requested igncr. 16560 # But we know of no other shell where ac_cr would be empty at this 16561 # point, so we can use a bashism as a fallback. 16562 if test "x$ac_cr" = x; then 16563 eval ac_cr=\$\'\\r\' 16564 fi 16565 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16566 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16567 ac_cs_awk_cr='\\r' 16568 else 16569 ac_cs_awk_cr=$ac_cr 16570 fi 16571 16572 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16573 _ACEOF 16574 16575 16576 { 16577 echo "cat >conf$$subs.awk <<_ACEOF" && 16578 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16579 echo "_ACEOF" 16580 } >conf$$subs.sh || 16581 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16582 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16583 ac_delim='%!_!# ' 16584 for ac_last_try in false false false false false :; do 16585 . ./conf$$subs.sh || 16586 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16587 16588 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16589 if test $ac_delim_n = $ac_delim_num; then 16590 break 16591 elif $ac_last_try; then 16592 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16593 else 16594 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16595 fi 16596 done 16597 rm -f conf$$subs.sh 16598 16599 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16600 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16601 _ACEOF 16602 sed -n ' 16603 h 16604 s/^/S["/; s/!.*/"]=/ 16605 p 16606 g 16607 s/^[^!]*!// 16608 :repl 16609 t repl 16610 s/'"$ac_delim"'$// 16611 t delim 16612 :nl 16613 h 16614 s/\(.\{148\}\)..*/\1/ 16615 t more1 16616 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16617 p 16618 n 16619 b repl 16620 :more1 16621 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16622 p 16623 g 16624 s/.\{148\}// 16625 t nl 16626 :delim 16627 h 16628 s/\(.\{148\}\)..*/\1/ 16629 t more2 16630 s/["\\]/\\&/g; s/^/"/; s/$/"/ 16631 p 16632 b 16633 :more2 16634 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16635 p 16636 g 16637 s/.\{148\}// 16638 t delim 16639 ' <conf$$subs.awk | sed ' 16640 /^[^""]/{ 16641 N 16642 s/\n// 16643 } 16644 ' >>$CONFIG_STATUS || ac_write_fail=1 16645 rm -f conf$$subs.awk 16646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16647 _ACAWK 16648 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16649 for (key in S) S_is_set[key] = 1 16650 FS = "" 16651 16652 } 16653 { 16654 line = $ 0 16655 nfields = split(line, field, "@") 16656 substed = 0 16657 len = length(field[1]) 16658 for (i = 2; i < nfields; i++) { 16659 key = field[i] 16660 keylen = length(key) 16661 if (S_is_set[key]) { 16662 value = S[key] 16663 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16664 len += length(value) + length(field[++i]) 16665 substed = 1 16666 } else 16667 len += 1 + keylen 16668 } 16669 16670 print line 16671 } 16672 16673 _ACAWK 16674 _ACEOF 16675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16676 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16677 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16678 else 16679 cat 16680 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16681 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16682 _ACEOF 16683 16684 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16685 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16686 # trailing colons and then remove the whole line if VPATH becomes empty 16687 # (actually we leave an empty line to preserve line numbers). 16688 if test "x$srcdir" = x.; then 16689 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16690 h 16691 s/// 16692 s/^/:/ 16693 s/[ ]*$/:/ 16694 s/:\$(srcdir):/:/g 16695 s/:\${srcdir}:/:/g 16696 s/:@srcdir@:/:/g 16697 s/^:*// 16698 s/:*$// 16699 x 16700 s/\(=[ ]*\).*/\1/ 16701 G 16702 s/\n// 16703 s/^[^=]*=[ ]*$// 16704 }' 16705 fi 16706 16707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16708 fi # test -n "$CONFIG_FILES" 16709 16710 # Set up the scripts for CONFIG_HEADERS section. 16711 # No need to generate them if there are no CONFIG_HEADERS. 16712 # This happens for instance with `./config.status Makefile'. 16713 if test -n "$CONFIG_HEADERS"; then 16714 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16715 BEGIN { 16716 _ACEOF 16717 16718 # Transform confdefs.h into an awk script `defines.awk', embedded as 16719 # here-document in config.status, that substitutes the proper values into 16720 # config.h.in to produce config.h. 16721 16722 # Create a delimiter string that does not exist in confdefs.h, to ease 16723 # handling of long lines. 16724 ac_delim='%!_!# ' 16725 for ac_last_try in false false :; do 16726 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16727 if test -z "$ac_tt"; then 16728 break 16729 elif $ac_last_try; then 16730 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16731 else 16732 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16733 fi 16734 done 16735 16736 # For the awk script, D is an array of macro values keyed by name, 16737 # likewise P contains macro parameters if any. Preserve backslash 16738 # newline sequences. 16739 16740 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16741 sed -n ' 16742 s/.\{148\}/&'"$ac_delim"'/g 16743 t rset 16744 :rset 16745 s/^[ ]*#[ ]*define[ ][ ]*/ / 16746 t def 16747 d 16748 :def 16749 s/\\$// 16750 t bsnl 16751 s/["\\]/\\&/g 16752 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16753 D["\1"]=" \3"/p 16754 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16755 d 16756 :bsnl 16757 s/["\\]/\\&/g 16758 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16759 D["\1"]=" \3\\\\\\n"\\/p 16760 t cont 16761 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16762 t cont 16763 d 16764 :cont 16765 n 16766 s/.\{148\}/&'"$ac_delim"'/g 16767 t clear 16768 :clear 16769 s/\\$// 16770 t bsnlc 16771 s/["\\]/\\&/g; s/^/"/; s/$/"/p 16772 d 16773 :bsnlc 16774 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16775 b cont 16776 ' <confdefs.h | sed ' 16777 s/'"$ac_delim"'/"\\\ 16778 "/g' >>$CONFIG_STATUS || ac_write_fail=1 16779 16780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16781 for (key in D) D_is_set[key] = 1 16782 FS = "" 16783 } 16784 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16785 line = \$ 0 16786 split(line, arg, " ") 16787 if (arg[1] == "#") { 16788 defundef = arg[2] 16789 mac1 = arg[3] 16790 } else { 16791 defundef = substr(arg[1], 2) 16792 mac1 = arg[2] 16793 } 16794 split(mac1, mac2, "(") #) 16795 macro = mac2[1] 16796 prefix = substr(line, 1, index(line, defundef) - 1) 16797 if (D_is_set[macro]) { 16798 # Preserve the white space surrounding the "#". 16799 print prefix "define", macro P[macro] D[macro] 16800 next 16801 } else { 16802 # Replace #undef with comments. This is necessary, for example, 16803 # in the case of _POSIX_SOURCE, which is predefined and required 16804 # on some systems where configure will not decide to define it. 16805 if (defundef == "undef") { 16806 print "/*", prefix defundef, macro, "*/" 16807 next 16808 } 16809 } 16810 } 16811 { print } 16812 _ACAWK 16813 _ACEOF 16814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16815 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16816 fi # test -n "$CONFIG_HEADERS" 16817 16818 16819 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16820 shift 16821 for ac_tag 16822 do 16823 case $ac_tag in 16824 :[FHLC]) ac_mode=$ac_tag; continue;; 16825 esac 16826 case $ac_mode$ac_tag in 16827 :[FHL]*:*);; 16828 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16829 :[FH]-) ac_tag=-:-;; 16830 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16831 esac 16832 ac_save_IFS=$IFS 16833 IFS=: 16834 set x $ac_tag 16835 IFS=$ac_save_IFS 16836 shift 16837 ac_file=$1 16838 shift 16839 16840 case $ac_mode in 16841 :L) ac_source=$1;; 16842 :[FH]) 16843 ac_file_inputs= 16844 for ac_f 16845 do 16846 case $ac_f in 16847 -) ac_f="$ac_tmp/stdin";; 16848 *) # Look for the file first in the build tree, then in the source tree 16849 # (if the path is not absolute). The absolute path cannot be DOS-style, 16850 # because $ac_f cannot contain `:'. 16851 test -f "$ac_f" || 16852 case $ac_f in 16853 [\\/$]*) false;; 16854 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16855 esac || 16856 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16857 esac 16858 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16859 as_fn_append ac_file_inputs " '$ac_f'" 16860 done 16861 16862 # Let's still pretend it is `configure' which instantiates (i.e., don't 16863 # use $as_me), people would be surprised to read: 16864 # /* config.h. Generated by config.status. */ 16865 configure_input='Generated from '` 16866 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16867 `' by configure.' 16868 if test x"$ac_file" != x-; then 16869 configure_input="$ac_file. $configure_input" 16870 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16871 $as_echo "$as_me: creating $ac_file" >&6;} 16872 fi 16873 # Neutralize special characters interpreted by sed in replacement strings. 16874 case $configure_input in #( 16875 *\&* | *\|* | *\\* ) 16876 ac_sed_conf_input=`$as_echo "$configure_input" | 16877 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16878 *) ac_sed_conf_input=$configure_input;; 16879 esac 16880 16881 case $ac_tag in 16882 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16883 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16884 esac 16885 ;; 16886 esac 16887 16888 ac_dir=`$as_dirname -- "$ac_file" || 16889 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16890 X"$ac_file" : 'X\(//\)[^/]' \| \ 16891 X"$ac_file" : 'X\(//\)$' \| \ 16892 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16893 $as_echo X"$ac_file" | 16894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16895 s//\1/ 16896 q 16897 } 16898 /^X\(\/\/\)[^/].*/{ 16899 s//\1/ 16900 q 16901 } 16902 /^X\(\/\/\)$/{ 16903 s//\1/ 16904 q 16905 } 16906 /^X\(\/\).*/{ 16907 s//\1/ 16908 q 16909 } 16910 s/.*/./; q'` 16911 as_dir="$ac_dir"; as_fn_mkdir_p 16912 ac_builddir=. 16913 16914 case "$ac_dir" in 16915 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16916 *) 16917 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16918 # A ".." for each directory in $ac_dir_suffix. 16919 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16920 case $ac_top_builddir_sub in 16921 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16922 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16923 esac ;; 16924 esac 16925 ac_abs_top_builddir=$ac_pwd 16926 ac_abs_builddir=$ac_pwd$ac_dir_suffix 16927 # for backward compatibility: 16928 ac_top_builddir=$ac_top_build_prefix 16929 16930 case $srcdir in 16931 .) # We are building in place. 16932 ac_srcdir=. 16933 ac_top_srcdir=$ac_top_builddir_sub 16934 ac_abs_top_srcdir=$ac_pwd ;; 16935 [\\/]* | ?:[\\/]* ) # Absolute name. 16936 ac_srcdir=$srcdir$ac_dir_suffix; 16937 ac_top_srcdir=$srcdir 16938 ac_abs_top_srcdir=$srcdir ;; 16939 *) # Relative name. 16940 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16941 ac_top_srcdir=$ac_top_build_prefix$srcdir 16942 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16943 esac 16944 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16945 16946 16947 case $ac_mode in 16948 :F) 16949 # 16950 # CONFIG_FILE 16951 # 16952 16953 case $INSTALL in 16954 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16955 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16956 esac 16957 _ACEOF 16958 16959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16960 # If the template does not know about datarootdir, expand it. 16961 # FIXME: This hack should be removed a few years after 2.60. 16962 ac_datarootdir_hack=; ac_datarootdir_seen= 16963 ac_sed_dataroot=' 16964 /datarootdir/ { 16965 p 16966 q 16967 } 16968 /@datadir@/p 16969 /@docdir@/p 16970 /@infodir@/p 16971 /@localedir@/p 16972 /@mandir@/p' 16973 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16974 *datarootdir*) ac_datarootdir_seen=yes;; 16975 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16977 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16978 _ACEOF 16979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16980 ac_datarootdir_hack=' 16981 s&@datadir@&$datadir&g 16982 s&@docdir@&$docdir&g 16983 s&@infodir@&$infodir&g 16984 s&@localedir@&$localedir&g 16985 s&@mandir@&$mandir&g 16986 s&\\\${datarootdir}&$datarootdir&g' ;; 16987 esac 16988 _ACEOF 16989 16990 # Neutralize VPATH when `$srcdir' = `.'. 16991 # Shell code in configure.ac might set extrasub. 16992 # FIXME: do we really want to maintain this feature? 16993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16994 ac_sed_extra="$ac_vpsub 16995 $extrasub 16996 _ACEOF 16997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16998 :t 16999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17000 s|@configure_input@|$ac_sed_conf_input|;t t 17001 s&@top_builddir@&$ac_top_builddir_sub&;t t 17002 s&@top_build_prefix@&$ac_top_build_prefix&;t t 17003 s&@srcdir@&$ac_srcdir&;t t 17004 s&@abs_srcdir@&$ac_abs_srcdir&;t t 17005 s&@top_srcdir@&$ac_top_srcdir&;t t 17006 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17007 s&@builddir@&$ac_builddir&;t t 17008 s&@abs_builddir@&$ac_abs_builddir&;t t 17009 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17010 s&@INSTALL@&$ac_INSTALL&;t t 17011 $ac_datarootdir_hack 17012 " 17013 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17014 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17015 17016 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17017 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17018 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17019 "$ac_tmp/out"`; test -z "$ac_out"; } && 17020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17021 which seems to be undefined. Please make sure it is defined" >&5 17022 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17023 which seems to be undefined. Please make sure it is defined" >&2;} 17024 17025 rm -f "$ac_tmp/stdin" 17026 case $ac_file in 17027 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17028 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17029 esac \ 17030 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17031 ;; 17032 :H) 17033 # 17034 # CONFIG_HEADER 17035 # 17036 if test x"$ac_file" != x-; then 17037 { 17038 $as_echo "/* $configure_input */" \ 17039 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17040 } >"$ac_tmp/config.h" \ 17041 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17042 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17043 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17044 $as_echo "$as_me: $ac_file is unchanged" >&6;} 17045 else 17046 rm -f "$ac_file" 17047 mv "$ac_tmp/config.h" "$ac_file" \ 17048 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17049 fi 17050 else 17051 $as_echo "/* $configure_input */" \ 17052 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17053 || as_fn_error $? "could not create -" "$LINENO" 5 17054 fi 17055 ;; 17056 17057 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17058 $as_echo "$as_me: executing $ac_file commands" >&6;} 17059 ;; 17060 esac 17061 17062 17063 case $ac_file$ac_mode in 17064 "include/jemalloc/internal/public_symbols.txt":C) 17065 f="${objroot}include/jemalloc/internal/public_symbols.txt" 17066 mkdir -p "${objroot}include/jemalloc/internal" 17067 cp /dev/null "${f}" 17068 for nm in `echo ${mangling_map} |tr ',' ' '` ; do 17069 n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'` 17070 m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'` 17071 echo "${n}:${m}" >> "${f}" 17072 public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${n}\$" |tr '\n' ' '` 17073 done 17074 for sym in ${public_syms} ; do 17075 n="${sym}" 17076 m="${JEMALLOC_PREFIX}${sym}" 17077 echo "${n}:${m}" >> "${f}" 17078 done 17079 ;; 17080 "include/jemalloc/internal/private_symbols.awk":C) 17081 f="${objroot}include/jemalloc/internal/private_symbols.awk" 17082 mkdir -p "${objroot}include/jemalloc/internal" 17083 export_syms=`for sym in ${public_syms}; do echo "${JEMALLOC_PREFIX}${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;` 17084 "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols.awk" 17085 ;; 17086 "include/jemalloc/internal/private_symbols_jet.awk":C) 17087 f="${objroot}include/jemalloc/internal/private_symbols_jet.awk" 17088 mkdir -p "${objroot}include/jemalloc/internal" 17089 export_syms=`for sym in ${public_syms}; do echo "jet_${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;` 17090 "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols_jet.awk" 17091 ;; 17092 "include/jemalloc/internal/public_namespace.h":C) 17093 mkdir -p "${objroot}include/jemalloc/internal" 17094 "${srcdir}/include/jemalloc/internal/public_namespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_namespace.h" 17095 ;; 17096 "include/jemalloc/internal/public_unnamespace.h":C) 17097 mkdir -p "${objroot}include/jemalloc/internal" 17098 "${srcdir}/include/jemalloc/internal/public_unnamespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_unnamespace.h" 17099 ;; 17100 "include/jemalloc/jemalloc_protos_jet.h":C) 17101 mkdir -p "${objroot}include/jemalloc" 17102 cat "${srcdir}/include/jemalloc/jemalloc_protos.h.in" | sed -e 's/@je_@/jet_/g' > "${objroot}include/jemalloc/jemalloc_protos_jet.h" 17103 ;; 17104 "include/jemalloc/jemalloc_rename.h":C) 17105 mkdir -p "${objroot}include/jemalloc" 17106 "${srcdir}/include/jemalloc/jemalloc_rename.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/jemalloc_rename.h" 17107 ;; 17108 "include/jemalloc/jemalloc_mangle.h":C) 17109 mkdir -p "${objroot}include/jemalloc" 17110 "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" je_ > "${objroot}include/jemalloc/jemalloc_mangle.h" 17111 ;; 17112 "include/jemalloc/jemalloc_mangle_jet.h":C) 17113 mkdir -p "${objroot}include/jemalloc" 17114 "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" jet_ > "${objroot}include/jemalloc/jemalloc_mangle_jet.h" 17115 ;; 17116 "include/jemalloc/jemalloc.h":C) 17117 mkdir -p "${objroot}include/jemalloc" 17118 "${srcdir}/include/jemalloc/jemalloc.sh" "${objroot}" > "${objroot}include/jemalloc/jemalloc${install_suffix}.h" 17119 ;; 17120 17121 esac 17122 done # for ac_tag 17123 17124 17125 as_fn_exit 0 17126 _ACEOF 17127 ac_clean_files=$ac_clean_files_save 17128 17129 test $ac_write_fail = 0 || 17130 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17131 17132 17133 # configure is writing to config.log, and then calls config.status. 17134 # config.status does its own redirection, appending to config.log. 17135 # Unfortunately, on DOS this fails, as config.log is still kept open 17136 # by configure, so config.status won't be able to write to it; its 17137 # output is simply discarded. So we exec the FD to /dev/null, 17138 # effectively closing config.log, so it can be properly (re)opened and 17139 # appended to by config.status. When coming back to configure, we 17140 # need to make the FD available again. 17141 if test "$no_create" != yes; then 17142 ac_cs_success=: 17143 ac_config_status_args= 17144 test "$silent" = yes && 17145 ac_config_status_args="$ac_config_status_args --quiet" 17146 exec 5>/dev/null 17147 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17148 exec 5>>config.log 17149 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17150 # would make configure fail if this is the last instruction. 17151 $ac_cs_success || as_fn_exit 1 17152 fi 17153 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17155 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17156 fi 17157 17158 17159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5 17160 $as_echo "===============================================================================" >&6; } 17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version : ${jemalloc_version}" >&5 17162 $as_echo "jemalloc version : ${jemalloc_version}" >&6; } 17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: library revision : ${rev}" >&5 17164 $as_echo "library revision : ${rev}" >&6; } 17165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 17166 $as_echo "" >&6; } 17167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIG : ${CONFIG}" >&5 17168 $as_echo "CONFIG : ${CONFIG}" >&6; } 17169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC : ${CC}" >&5 17170 $as_echo "CC : ${CC}" >&6; } 17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CFLAGS : ${CONFIGURE_CFLAGS}" >&5 17172 $as_echo "CONFIGURE_CFLAGS : ${CONFIGURE_CFLAGS}" >&6; } 17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CFLAGS : ${SPECIFIED_CFLAGS}" >&5 17174 $as_echo "SPECIFIED_CFLAGS : ${SPECIFIED_CFLAGS}" >&6; } 17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CFLAGS : ${EXTRA_CFLAGS}" >&5 17176 $as_echo "EXTRA_CFLAGS : ${EXTRA_CFLAGS}" >&6; } 17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS : ${CPPFLAGS}" >&5 17178 $as_echo "CPPFLAGS : ${CPPFLAGS}" >&6; } 17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CXX : ${CXX}" >&5 17180 $as_echo "CXX : ${CXX}" >&6; } 17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&5 17182 $as_echo "CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&6; } 17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&5 17184 $as_echo "SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&6; } 17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CXXFLAGS : ${EXTRA_CXXFLAGS}" >&5 17186 $as_echo "EXTRA_CXXFLAGS : ${EXTRA_CXXFLAGS}" >&6; } 17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_LDFLAGS : ${CONFIGURE_LDFLAGS}" >&5 17188 $as_echo "CONFIGURE_LDFLAGS : ${CONFIGURE_LDFLAGS}" >&6; } 17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_LDFLAGS : ${SPECIFIED_LDFLAGS}" >&5 17190 $as_echo "SPECIFIED_LDFLAGS : ${SPECIFIED_LDFLAGS}" >&6; } 17191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&5 17192 $as_echo "EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&6; } 17193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DSO_LDFLAGS : ${DSO_LDFLAGS}" >&5 17194 $as_echo "DSO_LDFLAGS : ${DSO_LDFLAGS}" >&6; } 17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS : ${LIBS}" >&5 17196 $as_echo "LIBS : ${LIBS}" >&6; } 17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA : ${RPATH_EXTRA}" >&5 17198 $as_echo "RPATH_EXTRA : ${RPATH_EXTRA}" >&6; } 17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 17200 $as_echo "" >&6; } 17201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC : ${XSLTPROC}" >&5 17202 $as_echo "XSLTPROC : ${XSLTPROC}" >&6; } 17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT : ${XSLROOT}" >&5 17204 $as_echo "XSLROOT : ${XSLROOT}" >&6; } 17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 17206 $as_echo "" >&6; } 17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX : ${PREFIX}" >&5 17208 $as_echo "PREFIX : ${PREFIX}" >&6; } 17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR : ${BINDIR}" >&5 17210 $as_echo "BINDIR : ${BINDIR}" >&6; } 17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR : ${DATADIR}" >&5 17212 $as_echo "DATADIR : ${DATADIR}" >&6; } 17213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR : ${INCLUDEDIR}" >&5 17214 $as_echo "INCLUDEDIR : ${INCLUDEDIR}" >&6; } 17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR : ${LIBDIR}" >&5 17216 $as_echo "LIBDIR : ${LIBDIR}" >&6; } 17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR : ${MANDIR}" >&5 17218 $as_echo "MANDIR : ${MANDIR}" >&6; } 17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 17220 $as_echo "" >&6; } 17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LG_PAGE : ${LG_PAGE}" >&5 17222 $as_echo "LG_PAGE : ${LG_PAGE}" >&6; } 17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 17224 $as_echo "" >&6; } 17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot : ${srcroot}" >&5 17226 $as_echo "srcroot : ${srcroot}" >&6; } 17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot : ${abs_srcroot}" >&5 17228 $as_echo "abs_srcroot : ${abs_srcroot}" >&6; } 17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot : ${objroot}" >&5 17230 $as_echo "objroot : ${objroot}" >&6; } 17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot : ${abs_objroot}" >&5 17232 $as_echo "abs_objroot : ${abs_objroot}" >&6; } 17233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 17234 $as_echo "" >&6; } 17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&5 17236 $as_echo "JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&6; } 17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5 17238 $as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; } 17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5 17240 $as_echo " : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; } 17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix : ${install_suffix}" >&5 17242 $as_echo "install_suffix : ${install_suffix}" >&6; } 17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc_conf : ${config_malloc_conf}" >&5 17244 $as_echo "malloc_conf : ${config_malloc_conf}" >&6; } 17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: documentation : ${enable_doc}" >&5 17246 $as_echo "documentation : ${enable_doc}" >&6; } 17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared libs : ${enable_shared}" >&5 17248 $as_echo "shared libs : ${enable_shared}" >&6; } 17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static libs : ${enable_static}" >&5 17250 $as_echo "static libs : ${enable_static}" >&6; } 17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen : ${enable_autogen}" >&5 17252 $as_echo "autogen : ${enable_autogen}" >&6; } 17253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug : ${enable_debug}" >&5 17254 $as_echo "debug : ${enable_debug}" >&6; } 17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: stats : ${enable_stats}" >&5 17256 $as_echo "stats : ${enable_stats}" >&6; } 17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: user_config : ${enable_user_config}" >&5 17258 $as_echo "user_config : ${enable_user_config}" >&6; } 17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: experimental_smallocx : ${enable_experimental_smallocx}" >&5 17260 $as_echo "experimental_smallocx : ${enable_experimental_smallocx}" >&6; } 17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof : ${enable_prof}" >&5 17262 $as_echo "prof : ${enable_prof}" >&6; } 17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind : ${enable_prof_libunwind}" >&5 17264 $as_echo "prof-libunwind : ${enable_prof_libunwind}" >&6; } 17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-frameptr : ${enable_prof_frameptr}" >&5 17266 $as_echo "prof-frameptr : ${enable_prof_frameptr}" >&6; } 17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc : ${enable_prof_libgcc}" >&5 17268 $as_echo "prof-libgcc : ${enable_prof_libgcc}" >&6; } 17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc : ${enable_prof_gcc}" >&5 17270 $as_echo "prof-gcc : ${enable_prof_gcc}" >&6; } 17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fill : ${enable_fill}" >&5 17272 $as_echo "fill : ${enable_fill}" >&6; } 17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: utrace : ${enable_utrace}" >&5 17274 $as_echo "utrace : ${enable_utrace}" >&6; } 17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc : ${enable_xmalloc}" >&5 17276 $as_echo "xmalloc : ${enable_xmalloc}" >&6; } 17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: log : ${enable_log}" >&5 17278 $as_echo "log : ${enable_log}" >&6; } 17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock : ${enable_lazy_lock}" >&5 17280 $as_echo "lazy_lock : ${enable_lazy_lock}" >&6; } 17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cache-oblivious : ${enable_cache_oblivious}" >&5 17282 $as_echo "cache-oblivious : ${enable_cache_oblivious}" >&6; } 17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pageid : ${enable_pageid}" >&5 17284 $as_echo "pageid : ${enable_pageid}" >&6; } 17285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cxx : ${enable_cxx}" >&5 17286 $as_echo "cxx : ${enable_cxx}" >&6; } 17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dss : ${enable_dss}" >&5 17288 $as_echo "dss : ${enable_dss}" >&6; } 17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: tsan : ${enable_tsan}" >&5 17290 $as_echo "tsan : ${enable_tsan}" >&6; } 17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ubsan : ${enable_ubsan}" >&5 17292 $as_echo "ubsan : ${enable_ubsan}" >&6; } 17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5 17294 $as_echo "===============================================================================" >&6; } 17295