1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@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 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585ac_unique_file="Makefile.in" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622ac_subst_vars='LTLIBOBJS 623LIBOBJS 624cfgoutputs_out 625cfgoutputs_in 626cfghdrs_out 627cfghdrs_in 628enable_initial_exec_tls 629enable_zone_allocator 630enable_tls 631enable_lazy_lock 632jemalloc_version_gid 633jemalloc_version_nrev 634jemalloc_version_bugfix 635jemalloc_version_minor 636jemalloc_version_major 637jemalloc_version 638enable_log 639enable_cache_oblivious 640enable_xmalloc 641enable_utrace 642enable_fill 643enable_prof 644enable_stats 645enable_debug 646je_ 647install_suffix 648private_namespace 649JEMALLOC_CPREFIX 650JEMALLOC_PREFIX 651AUTOCONF 652LD 653RANLIB 654INSTALL_DATA 655INSTALL_SCRIPT 656INSTALL_PROGRAM 657enable_autogen 658RPATH_EXTRA 659LM 660CC_MM 661DUMP_SYMS 662AROUT 663ARFLAGS 664MKLIB 665TEST_LD_MODE 666LDTARGET 667CTARGET 668PIC_CFLAGS 669SOREV 670EXTRA_LDFLAGS 671DSO_LDFLAGS 672link_whole_archive 673libprefix 674exe 675a 676o 677importlib 678so 679LD_PRELOAD_VAR 680RPATH 681abi 682AWK 683NM 684AR 685host_os 686host_vendor 687host_cpu 688host 689build_os 690build_vendor 691build_cpu 692build 693EGREP 694GREP 695EXTRA_CXXFLAGS 696SPECIFIED_CXXFLAGS 697CONFIGURE_CXXFLAGS 698enable_cxx 699HAVE_CXX14 700ac_ct_CXX 701CXXFLAGS 702CXX 703CPP 704EXTRA_CFLAGS 705SPECIFIED_CFLAGS 706CONFIGURE_CFLAGS 707OBJEXT 708EXEEXT 709ac_ct_CC 710CPPFLAGS 711LDFLAGS 712CFLAGS 713CC 714XSLROOT 715XSLTPROC 716MANDIR 717DATADIR 718LIBDIR 719INCLUDEDIR 720BINDIR 721PREFIX 722abs_objroot 723objroot 724abs_srcroot 725srcroot 726rev 727CONFIG 728target_alias 729host_alias 730build_alias 731LIBS 732ECHO_T 733ECHO_N 734ECHO_C 735DEFS 736mandir 737localedir 738libdir 739psdir 740pdfdir 741dvidir 742htmldir 743infodir 744docdir 745oldincludedir 746includedir 747localstatedir 748sharedstatedir 749sysconfdir 750datadir 751datarootdir 752libexecdir 753sbindir 754bindir 755program_transform_name 756prefix 757exec_prefix 758PACKAGE_URL 759PACKAGE_BUGREPORT 760PACKAGE_STRING 761PACKAGE_VERSION 762PACKAGE_TARNAME 763PACKAGE_NAME 764PATH_SEPARATOR 765SHELL' 766ac_subst_files='' 767ac_user_opts=' 768enable_option_checking 769with_xslroot 770enable_cxx 771with_lg_vaddr 772with_rpath 773enable_autogen 774with_mangling 775with_jemalloc_prefix 776with_export 777with_private_namespace 778with_install_suffix 779with_malloc_conf 780enable_debug 781enable_stats 782enable_prof 783enable_prof_libunwind 784with_static_libunwind 785enable_prof_libgcc 786enable_prof_gcc 787enable_fill 788enable_utrace 789enable_xmalloc 790enable_cache_oblivious 791enable_log 792with_lg_quantum 793with_lg_page 794with_lg_hugepage 795with_lg_page_sizes 796with_version 797enable_syscall 798enable_lazy_lock 799enable_zone_allocator 800enable_initial_exec_tls 801' 802 ac_precious_vars='build_alias 803host_alias 804target_alias 805CC 806CFLAGS 807LDFLAGS 808LIBS 809CPPFLAGS 810CPP 811CXX 812CXXFLAGS 813CCC' 814 815 816# Initialize some variables set by options. 817ac_init_help= 818ac_init_version=false 819ac_unrecognized_opts= 820ac_unrecognized_sep= 821# The variables have the same names as the options, with 822# dashes changed to underlines. 823cache_file=/dev/null 824exec_prefix=NONE 825no_create= 826no_recursion= 827prefix=NONE 828program_prefix=NONE 829program_suffix=NONE 830program_transform_name=s,x,x, 831silent= 832site= 833srcdir= 834verbose= 835x_includes=NONE 836x_libraries=NONE 837 838# Installation directory options. 839# These are left unexpanded so users can "make install exec_prefix=/foo" 840# and all the variables that are supposed to be based on exec_prefix 841# by default will actually change. 842# Use braces instead of parens because sh, perl, etc. also accept them. 843# (The list follows the same order as the GNU Coding Standards.) 844bindir='${exec_prefix}/bin' 845sbindir='${exec_prefix}/sbin' 846libexecdir='${exec_prefix}/libexec' 847datarootdir='${prefix}/share' 848datadir='${datarootdir}' 849sysconfdir='${prefix}/etc' 850sharedstatedir='${prefix}/com' 851localstatedir='${prefix}/var' 852includedir='${prefix}/include' 853oldincludedir='/usr/include' 854docdir='${datarootdir}/doc/${PACKAGE}' 855infodir='${datarootdir}/info' 856htmldir='${docdir}' 857dvidir='${docdir}' 858pdfdir='${docdir}' 859psdir='${docdir}' 860libdir='${exec_prefix}/lib' 861localedir='${datarootdir}/locale' 862mandir='${datarootdir}/man' 863 864ac_prev= 865ac_dashdash= 866for ac_option 867do 868 # If the previous option needs an argument, assign it. 869 if test -n "$ac_prev"; then 870 eval $ac_prev=\$ac_option 871 ac_prev= 872 continue 873 fi 874 875 case $ac_option in 876 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 877 *=) ac_optarg= ;; 878 *) ac_optarg=yes ;; 879 esac 880 881 # Accept the important Cygnus configure options, so we can diagnose typos. 882 883 case $ac_dashdash$ac_option in 884 --) 885 ac_dashdash=yes ;; 886 887 -bindir | --bindir | --bindi | --bind | --bin | --bi) 888 ac_prev=bindir ;; 889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 890 bindir=$ac_optarg ;; 891 892 -build | --build | --buil | --bui | --bu) 893 ac_prev=build_alias ;; 894 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 895 build_alias=$ac_optarg ;; 896 897 -cache-file | --cache-file | --cache-fil | --cache-fi \ 898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 899 ac_prev=cache_file ;; 900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 902 cache_file=$ac_optarg ;; 903 904 --config-cache | -C) 905 cache_file=config.cache ;; 906 907 -datadir | --datadir | --datadi | --datad) 908 ac_prev=datadir ;; 909 -datadir=* | --datadir=* | --datadi=* | --datad=*) 910 datadir=$ac_optarg ;; 911 912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 913 | --dataroo | --dataro | --datar) 914 ac_prev=datarootdir ;; 915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 917 datarootdir=$ac_optarg ;; 918 919 -disable-* | --disable-*) 920 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 921 # Reject names that are not valid shell variable names. 922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 923 as_fn_error $? "invalid feature name: $ac_useropt" 924 ac_useropt_orig=$ac_useropt 925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 926 case $ac_user_opts in 927 *" 928"enable_$ac_useropt" 929"*) ;; 930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 931 ac_unrecognized_sep=', ';; 932 esac 933 eval enable_$ac_useropt=no ;; 934 935 -docdir | --docdir | --docdi | --doc | --do) 936 ac_prev=docdir ;; 937 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 938 docdir=$ac_optarg ;; 939 940 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 941 ac_prev=dvidir ;; 942 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 943 dvidir=$ac_optarg ;; 944 945 -enable-* | --enable-*) 946 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 947 # Reject names that are not valid shell variable names. 948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 949 as_fn_error $? "invalid feature name: $ac_useropt" 950 ac_useropt_orig=$ac_useropt 951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 952 case $ac_user_opts in 953 *" 954"enable_$ac_useropt" 955"*) ;; 956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 957 ac_unrecognized_sep=', ';; 958 esac 959 eval enable_$ac_useropt=\$ac_optarg ;; 960 961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 963 | --exec | --exe | --ex) 964 ac_prev=exec_prefix ;; 965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 967 | --exec=* | --exe=* | --ex=*) 968 exec_prefix=$ac_optarg ;; 969 970 -gas | --gas | --ga | --g) 971 # Obsolete; use --with-gas. 972 with_gas=yes ;; 973 974 -help | --help | --hel | --he | -h) 975 ac_init_help=long ;; 976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 977 ac_init_help=recursive ;; 978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 979 ac_init_help=short ;; 980 981 -host | --host | --hos | --ho) 982 ac_prev=host_alias ;; 983 -host=* | --host=* | --hos=* | --ho=*) 984 host_alias=$ac_optarg ;; 985 986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 987 ac_prev=htmldir ;; 988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 989 | --ht=*) 990 htmldir=$ac_optarg ;; 991 992 -includedir | --includedir | --includedi | --included | --include \ 993 | --includ | --inclu | --incl | --inc) 994 ac_prev=includedir ;; 995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 996 | --includ=* | --inclu=* | --incl=* | --inc=*) 997 includedir=$ac_optarg ;; 998 999 -infodir | --infodir | --infodi | --infod | --info | --inf) 1000 ac_prev=infodir ;; 1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1002 infodir=$ac_optarg ;; 1003 1004 -libdir | --libdir | --libdi | --libd) 1005 ac_prev=libdir ;; 1006 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1007 libdir=$ac_optarg ;; 1008 1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1010 | --libexe | --libex | --libe) 1011 ac_prev=libexecdir ;; 1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1013 | --libexe=* | --libex=* | --libe=*) 1014 libexecdir=$ac_optarg ;; 1015 1016 -localedir | --localedir | --localedi | --localed | --locale) 1017 ac_prev=localedir ;; 1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1019 localedir=$ac_optarg ;; 1020 1021 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1022 | --localstate | --localstat | --localsta | --localst | --locals) 1023 ac_prev=localstatedir ;; 1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1026 localstatedir=$ac_optarg ;; 1027 1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1029 ac_prev=mandir ;; 1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1031 mandir=$ac_optarg ;; 1032 1033 -nfp | --nfp | --nf) 1034 # Obsolete; use --without-fp. 1035 with_fp=no ;; 1036 1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1038 | --no-cr | --no-c | -n) 1039 no_create=yes ;; 1040 1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1043 no_recursion=yes ;; 1044 1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1047 | --oldin | --oldi | --old | --ol | --o) 1048 ac_prev=oldincludedir ;; 1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1052 oldincludedir=$ac_optarg ;; 1053 1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1055 ac_prev=prefix ;; 1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1057 prefix=$ac_optarg ;; 1058 1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1060 | --program-pre | --program-pr | --program-p) 1061 ac_prev=program_prefix ;; 1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1064 program_prefix=$ac_optarg ;; 1065 1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1067 | --program-suf | --program-su | --program-s) 1068 ac_prev=program_suffix ;; 1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1071 program_suffix=$ac_optarg ;; 1072 1073 -program-transform-name | --program-transform-name \ 1074 | --program-transform-nam | --program-transform-na \ 1075 | --program-transform-n | --program-transform- \ 1076 | --program-transform | --program-transfor \ 1077 | --program-transfo | --program-transf \ 1078 | --program-trans | --program-tran \ 1079 | --progr-tra | --program-tr | --program-t) 1080 ac_prev=program_transform_name ;; 1081 -program-transform-name=* | --program-transform-name=* \ 1082 | --program-transform-nam=* | --program-transform-na=* \ 1083 | --program-transform-n=* | --program-transform-=* \ 1084 | --program-transform=* | --program-transfor=* \ 1085 | --program-transfo=* | --program-transf=* \ 1086 | --program-trans=* | --program-tran=* \ 1087 | --progr-tra=* | --program-tr=* | --program-t=*) 1088 program_transform_name=$ac_optarg ;; 1089 1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1091 ac_prev=pdfdir ;; 1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1093 pdfdir=$ac_optarg ;; 1094 1095 -psdir | --psdir | --psdi | --psd | --ps) 1096 ac_prev=psdir ;; 1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1098 psdir=$ac_optarg ;; 1099 1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1101 | -silent | --silent | --silen | --sile | --sil) 1102 silent=yes ;; 1103 1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1105 ac_prev=sbindir ;; 1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1107 | --sbi=* | --sb=*) 1108 sbindir=$ac_optarg ;; 1109 1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1112 | --sharedst | --shareds | --shared | --share | --shar \ 1113 | --sha | --sh) 1114 ac_prev=sharedstatedir ;; 1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1118 | --sha=* | --sh=*) 1119 sharedstatedir=$ac_optarg ;; 1120 1121 -site | --site | --sit) 1122 ac_prev=site ;; 1123 -site=* | --site=* | --sit=*) 1124 site=$ac_optarg ;; 1125 1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1127 ac_prev=srcdir ;; 1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1129 srcdir=$ac_optarg ;; 1130 1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1132 | --syscon | --sysco | --sysc | --sys | --sy) 1133 ac_prev=sysconfdir ;; 1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1136 sysconfdir=$ac_optarg ;; 1137 1138 -target | --target | --targe | --targ | --tar | --ta | --t) 1139 ac_prev=target_alias ;; 1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1141 target_alias=$ac_optarg ;; 1142 1143 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1144 verbose=yes ;; 1145 1146 -version | --version | --versio | --versi | --vers | -V) 1147 ac_init_version=: ;; 1148 1149 -with-* | --with-*) 1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1151 # Reject names that are not valid shell variable names. 1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1153 as_fn_error $? "invalid package name: $ac_useropt" 1154 ac_useropt_orig=$ac_useropt 1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1156 case $ac_user_opts in 1157 *" 1158"with_$ac_useropt" 1159"*) ;; 1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1161 ac_unrecognized_sep=', ';; 1162 esac 1163 eval with_$ac_useropt=\$ac_optarg ;; 1164 1165 -without-* | --without-*) 1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1167 # Reject names that are not valid shell variable names. 1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1169 as_fn_error $? "invalid package name: $ac_useropt" 1170 ac_useropt_orig=$ac_useropt 1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1172 case $ac_user_opts in 1173 *" 1174"with_$ac_useropt" 1175"*) ;; 1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1177 ac_unrecognized_sep=', ';; 1178 esac 1179 eval with_$ac_useropt=no ;; 1180 1181 --x) 1182 # Obsolete; use --with-x. 1183 with_x=yes ;; 1184 1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1186 | --x-incl | --x-inc | --x-in | --x-i) 1187 ac_prev=x_includes ;; 1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1190 x_includes=$ac_optarg ;; 1191 1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1194 ac_prev=x_libraries ;; 1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1197 x_libraries=$ac_optarg ;; 1198 1199 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1200Try \`$0 --help' for more information" 1201 ;; 1202 1203 *=*) 1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1205 # Reject names that are not valid shell variable names. 1206 case $ac_envvar in #( 1207 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1208 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1209 esac 1210 eval $ac_envvar=\$ac_optarg 1211 export $ac_envvar ;; 1212 1213 *) 1214 # FIXME: should be removed in autoconf 3.0. 1215 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1217 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1219 ;; 1220 1221 esac 1222done 1223 1224if test -n "$ac_prev"; then 1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1226 as_fn_error $? "missing argument to $ac_option" 1227fi 1228 1229if test -n "$ac_unrecognized_opts"; then 1230 case $enable_option_checking in 1231 no) ;; 1232 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1233 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1234 esac 1235fi 1236 1237# Check all directory arguments for consistency. 1238for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1239 datadir sysconfdir sharedstatedir localstatedir includedir \ 1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1241 libdir localedir mandir 1242do 1243 eval ac_val=\$$ac_var 1244 # Remove trailing slashes. 1245 case $ac_val in 1246 */ ) 1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1248 eval $ac_var=\$ac_val;; 1249 esac 1250 # Be sure to have absolute directory names. 1251 case $ac_val in 1252 [\\/$]* | ?:[\\/]* ) continue;; 1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1254 esac 1255 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1256done 1257 1258# There might be people who depend on the old broken behavior: `$host' 1259# used to hold the argument of --host etc. 1260# FIXME: To remove some day. 1261build=$build_alias 1262host=$host_alias 1263target=$target_alias 1264 1265# FIXME: To remove some day. 1266if test "x$host_alias" != x; then 1267 if test "x$build_alias" = x; then 1268 cross_compiling=maybe 1269 elif test "x$build_alias" != "x$host_alias"; then 1270 cross_compiling=yes 1271 fi 1272fi 1273 1274ac_tool_prefix= 1275test -n "$host_alias" && ac_tool_prefix=$host_alias- 1276 1277test "$silent" = yes && exec 6>/dev/null 1278 1279 1280ac_pwd=`pwd` && test -n "$ac_pwd" && 1281ac_ls_di=`ls -di .` && 1282ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1283 as_fn_error $? "working directory cannot be determined" 1284test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1285 as_fn_error $? "pwd does not report name of working directory" 1286 1287 1288# Find the source files, if location was not specified. 1289if test -z "$srcdir"; then 1290 ac_srcdir_defaulted=yes 1291 # Try the directory containing this script, then the parent directory. 1292 ac_confdir=`$as_dirname -- "$as_myself" || 1293$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1294 X"$as_myself" : 'X\(//\)[^/]' \| \ 1295 X"$as_myself" : 'X\(//\)$' \| \ 1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1297$as_echo X"$as_myself" | 1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\/\)[^/].*/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\/\)$/{ 1307 s//\1/ 1308 q 1309 } 1310 /^X\(\/\).*/{ 1311 s//\1/ 1312 q 1313 } 1314 s/.*/./; q'` 1315 srcdir=$ac_confdir 1316 if test ! -r "$srcdir/$ac_unique_file"; then 1317 srcdir=.. 1318 fi 1319else 1320 ac_srcdir_defaulted=no 1321fi 1322if test ! -r "$srcdir/$ac_unique_file"; then 1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1324 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1325fi 1326ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1327ac_abs_confdir=`( 1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1329 pwd)` 1330# When building in place, set srcdir=. 1331if test "$ac_abs_confdir" = "$ac_pwd"; then 1332 srcdir=. 1333fi 1334# Remove unnecessary trailing slashes from srcdir. 1335# Double slashes in file names in object file debugging info 1336# mess up M-x gdb in Emacs. 1337case $srcdir in 1338*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1339esac 1340for ac_var in $ac_precious_vars; do 1341 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1342 eval ac_env_${ac_var}_value=\$${ac_var} 1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1344 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1345done 1346 1347# 1348# Report the --help message. 1349# 1350if test "$ac_init_help" = "long"; then 1351 # Omit some internal or obsolete options to make the list less imposing. 1352 # This message is too long to be a string in the A/UX 3.1 sh. 1353 cat <<_ACEOF 1354\`configure' configures this package to adapt to many kinds of systems. 1355 1356Usage: $0 [OPTION]... [VAR=VALUE]... 1357 1358To assign environment variables (e.g., CC, CFLAGS...), specify them as 1359VAR=VALUE. See below for descriptions of some of the useful variables. 1360 1361Defaults for the options are specified in brackets. 1362 1363Configuration: 1364 -h, --help display this help and exit 1365 --help=short display options specific to this package 1366 --help=recursive display the short help of all the included packages 1367 -V, --version display version information and exit 1368 -q, --quiet, --silent do not print \`checking ...' messages 1369 --cache-file=FILE cache test results in FILE [disabled] 1370 -C, --config-cache alias for \`--cache-file=config.cache' 1371 -n, --no-create do not create output files 1372 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1373 1374Installation directories: 1375 --prefix=PREFIX install architecture-independent files in PREFIX 1376 [$ac_default_prefix] 1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1378 [PREFIX] 1379 1380By default, \`make install' will install all the files in 1381\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1382an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1383for instance \`--prefix=\$HOME'. 1384 1385For better control, use the options below. 1386 1387Fine tuning of the installation directories: 1388 --bindir=DIR user executables [EPREFIX/bin] 1389 --sbindir=DIR system admin executables [EPREFIX/sbin] 1390 --libexecdir=DIR program executables [EPREFIX/libexec] 1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1394 --libdir=DIR object code libraries [EPREFIX/lib] 1395 --includedir=DIR C header files [PREFIX/include] 1396 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1399 --infodir=DIR info documentation [DATAROOTDIR/info] 1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1401 --mandir=DIR man documentation [DATAROOTDIR/man] 1402 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1403 --htmldir=DIR html documentation [DOCDIR] 1404 --dvidir=DIR dvi documentation [DOCDIR] 1405 --pdfdir=DIR pdf documentation [DOCDIR] 1406 --psdir=DIR ps documentation [DOCDIR] 1407_ACEOF 1408 1409 cat <<\_ACEOF 1410 1411System types: 1412 --build=BUILD configure for building on BUILD [guessed] 1413 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1414_ACEOF 1415fi 1416 1417if test -n "$ac_init_help"; then 1418 1419 cat <<\_ACEOF 1420 1421Optional Features: 1422 --disable-option-checking ignore unrecognized --enable/--with options 1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1425 --disable-cxx Disable C++ integration 1426 --enable-autogen Automatically regenerate configure output 1427 --enable-debug Build debugging code 1428 --disable-stats Disable statistics calculation/reporting 1429 --enable-prof Enable allocation profiling 1430 --enable-prof-libunwind Use libunwind for backtracing 1431 --disable-prof-libgcc Do not use libgcc for backtracing 1432 --disable-prof-gcc Do not use gcc intrinsics for backtracing 1433 --disable-fill Disable support for junk/zero filling 1434 --enable-utrace Enable utrace(2)-based tracing 1435 --enable-xmalloc Support xmalloc option 1436 --disable-cache-oblivious 1437 Disable support for cache-oblivious allocation 1438 alignment 1439 --enable-log Support debug logging 1440 --disable-syscall Disable use of syscall(2) 1441 --enable-lazy-lock Enable lazy locking (only lock when multi-threaded) 1442 --disable-zone-allocator 1443 Disable zone allocator for Darwin 1444 --disable-initial-exec-tls 1445 Disable the initial-exec tls model 1446 1447Optional Packages: 1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1450 --with-xslroot=<path> XSL stylesheet root path 1451 --with-lg-vaddr=<lg-vaddr> 1452 Number of significant virtual address bits 1453 --with-rpath=<rpath> Colon-separated rpath (ELF systems only) 1454 --with-mangling=<map> Mangle symbols in <map> 1455 --with-jemalloc-prefix=<prefix> 1456 Prefix to prepend to all public APIs 1457 --without-export disable exporting jemalloc public APIs 1458 --with-private-namespace=<prefix> 1459 Prefix to prepend to all library-private APIs 1460 --with-install-suffix=<suffix> 1461 Suffix to append to all installed files 1462 --with-malloc-conf=<malloc_conf> 1463 config.malloc_conf options string 1464 --with-static-libunwind=<libunwind.a> 1465 Path to static libunwind library; use rather than 1466 dynamically linking 1467 --with-lg-quantum=<lg-quantum> 1468 Base 2 log of minimum allocation alignment 1469 --with-lg-page=<lg-page> 1470 Base 2 log of system page size 1471 --with-lg-hugepage=<lg-hugepage> 1472 Base 2 log of system huge page size 1473 --with-lg-page-sizes=<lg-page-sizes> 1474 Base 2 logs of system page sizes to support 1475 --with-version=<major>.<minor>.<bugfix>-<nrev>-g<gid> 1476 Version string 1477 1478Some influential environment variables: 1479 CC C compiler command 1480 CFLAGS C compiler flags 1481 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1482 nonstandard directory <lib dir> 1483 LIBS libraries to pass to the linker, e.g. -l<library> 1484 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1485 you have headers in a nonstandard directory <include dir> 1486 CPP C preprocessor 1487 CXX C++ compiler command 1488 CXXFLAGS C++ compiler flags 1489 1490Use these variables to override the choices made by `configure' or to help 1491it to find libraries and programs with nonstandard names/locations. 1492 1493Report bugs to the package provider. 1494_ACEOF 1495ac_status=$? 1496fi 1497 1498if test "$ac_init_help" = "recursive"; then 1499 # If there are subdirs, report their specific --help. 1500 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1501 test -d "$ac_dir" || 1502 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1503 continue 1504 ac_builddir=. 1505 1506case "$ac_dir" in 1507.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1508*) 1509 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1510 # A ".." for each directory in $ac_dir_suffix. 1511 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1512 case $ac_top_builddir_sub in 1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1515 esac ;; 1516esac 1517ac_abs_top_builddir=$ac_pwd 1518ac_abs_builddir=$ac_pwd$ac_dir_suffix 1519# for backward compatibility: 1520ac_top_builddir=$ac_top_build_prefix 1521 1522case $srcdir in 1523 .) # We are building in place. 1524 ac_srcdir=. 1525 ac_top_srcdir=$ac_top_builddir_sub 1526 ac_abs_top_srcdir=$ac_pwd ;; 1527 [\\/]* | ?:[\\/]* ) # Absolute name. 1528 ac_srcdir=$srcdir$ac_dir_suffix; 1529 ac_top_srcdir=$srcdir 1530 ac_abs_top_srcdir=$srcdir ;; 1531 *) # Relative name. 1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1533 ac_top_srcdir=$ac_top_build_prefix$srcdir 1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1535esac 1536ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1537 1538 cd "$ac_dir" || { ac_status=$?; continue; } 1539 # Check for guested configure. 1540 if test -f "$ac_srcdir/configure.gnu"; then 1541 echo && 1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1543 elif test -f "$ac_srcdir/configure"; then 1544 echo && 1545 $SHELL "$ac_srcdir/configure" --help=recursive 1546 else 1547 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1548 fi || ac_status=$? 1549 cd "$ac_pwd" || { ac_status=$?; break; } 1550 done 1551fi 1552 1553test -n "$ac_init_help" && exit $ac_status 1554if $ac_init_version; then 1555 cat <<\_ACEOF 1556configure 1557generated by GNU Autoconf 2.69 1558 1559Copyright (C) 2012 Free Software Foundation, Inc. 1560This configure script is free software; the Free Software Foundation 1561gives unlimited permission to copy, distribute and modify it. 1562_ACEOF 1563 exit 1564fi 1565 1566## ------------------------ ## 1567## Autoconf initialization. ## 1568## ------------------------ ## 1569 1570# ac_fn_c_try_compile LINENO 1571# -------------------------- 1572# Try to compile conftest.$ac_ext, and return whether this succeeded. 1573ac_fn_c_try_compile () 1574{ 1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1576 rm -f conftest.$ac_objext 1577 if { { ac_try="$ac_compile" 1578case "(($ac_try" in 1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1580 *) ac_try_echo=$ac_try;; 1581esac 1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1583$as_echo "$ac_try_echo"; } >&5 1584 (eval "$ac_compile") 2>conftest.err 1585 ac_status=$? 1586 if test -s conftest.err; then 1587 grep -v '^ *+' conftest.err >conftest.er1 1588 cat conftest.er1 >&5 1589 mv -f conftest.er1 conftest.err 1590 fi 1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1592 test $ac_status = 0; } && { 1593 test -z "$ac_c_werror_flag" || 1594 test ! -s conftest.err 1595 } && test -s conftest.$ac_objext; then : 1596 ac_retval=0 1597else 1598 $as_echo "$as_me: failed program was:" >&5 1599sed 's/^/| /' conftest.$ac_ext >&5 1600 1601 ac_retval=1 1602fi 1603 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1604 as_fn_set_status $ac_retval 1605 1606} # ac_fn_c_try_compile 1607 1608# ac_fn_c_try_cpp LINENO 1609# ---------------------- 1610# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1611ac_fn_c_try_cpp () 1612{ 1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1614 if { { ac_try="$ac_cpp conftest.$ac_ext" 1615case "(($ac_try" in 1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1617 *) ac_try_echo=$ac_try;; 1618esac 1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1620$as_echo "$ac_try_echo"; } >&5 1621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1622 ac_status=$? 1623 if test -s conftest.err; then 1624 grep -v '^ *+' conftest.err >conftest.er1 1625 cat conftest.er1 >&5 1626 mv -f conftest.er1 conftest.err 1627 fi 1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1629 test $ac_status = 0; } > conftest.i && { 1630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1631 test ! -s conftest.err 1632 }; then : 1633 ac_retval=0 1634else 1635 $as_echo "$as_me: failed program was:" >&5 1636sed 's/^/| /' conftest.$ac_ext >&5 1637 1638 ac_retval=1 1639fi 1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1641 as_fn_set_status $ac_retval 1642 1643} # ac_fn_c_try_cpp 1644 1645# ac_fn_cxx_try_compile LINENO 1646# ---------------------------- 1647# Try to compile conftest.$ac_ext, and return whether this succeeded. 1648ac_fn_cxx_try_compile () 1649{ 1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1651 rm -f conftest.$ac_objext 1652 if { { ac_try="$ac_compile" 1653case "(($ac_try" in 1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1655 *) ac_try_echo=$ac_try;; 1656esac 1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1658$as_echo "$ac_try_echo"; } >&5 1659 (eval "$ac_compile") 2>conftest.err 1660 ac_status=$? 1661 if test -s conftest.err; then 1662 grep -v '^ *+' conftest.err >conftest.er1 1663 cat conftest.er1 >&5 1664 mv -f conftest.er1 conftest.err 1665 fi 1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1667 test $ac_status = 0; } && { 1668 test -z "$ac_cxx_werror_flag" || 1669 test ! -s conftest.err 1670 } && test -s conftest.$ac_objext; then : 1671 ac_retval=0 1672else 1673 $as_echo "$as_me: failed program was:" >&5 1674sed 's/^/| /' conftest.$ac_ext >&5 1675 1676 ac_retval=1 1677fi 1678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1679 as_fn_set_status $ac_retval 1680 1681} # ac_fn_cxx_try_compile 1682 1683# ac_fn_c_try_link LINENO 1684# ----------------------- 1685# Try to link conftest.$ac_ext, and return whether this succeeded. 1686ac_fn_c_try_link () 1687{ 1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1689 rm -f conftest.$ac_objext conftest$ac_exeext 1690 if { { ac_try="$ac_link" 1691case "(($ac_try" in 1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1693 *) ac_try_echo=$ac_try;; 1694esac 1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1696$as_echo "$ac_try_echo"; } >&5 1697 (eval "$ac_link") 2>conftest.err 1698 ac_status=$? 1699 if test -s conftest.err; then 1700 grep -v '^ *+' conftest.err >conftest.er1 1701 cat conftest.er1 >&5 1702 mv -f conftest.er1 conftest.err 1703 fi 1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1705 test $ac_status = 0; } && { 1706 test -z "$ac_c_werror_flag" || 1707 test ! -s conftest.err 1708 } && test -s conftest$ac_exeext && { 1709 test "$cross_compiling" = yes || 1710 test -x conftest$ac_exeext 1711 }; then : 1712 ac_retval=0 1713else 1714 $as_echo "$as_me: failed program was:" >&5 1715sed 's/^/| /' conftest.$ac_ext >&5 1716 1717 ac_retval=1 1718fi 1719 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1720 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1721 # interfere with the next link command; also delete a directory that is 1722 # left behind by Apple's compiler. We do this before executing the actions. 1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1725 as_fn_set_status $ac_retval 1726 1727} # ac_fn_c_try_link 1728 1729# ac_fn_c_try_run LINENO 1730# ---------------------- 1731# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1732# that executables *can* be run. 1733ac_fn_c_try_run () 1734{ 1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1736 if { { ac_try="$ac_link" 1737case "(($ac_try" in 1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1739 *) ac_try_echo=$ac_try;; 1740esac 1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1742$as_echo "$ac_try_echo"; } >&5 1743 (eval "$ac_link") 2>&5 1744 ac_status=$? 1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1746 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1747 { { case "(($ac_try" in 1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1749 *) ac_try_echo=$ac_try;; 1750esac 1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1752$as_echo "$ac_try_echo"; } >&5 1753 (eval "$ac_try") 2>&5 1754 ac_status=$? 1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1756 test $ac_status = 0; }; }; then : 1757 ac_retval=0 1758else 1759 $as_echo "$as_me: program exited with status $ac_status" >&5 1760 $as_echo "$as_me: failed program was:" >&5 1761sed 's/^/| /' conftest.$ac_ext >&5 1762 1763 ac_retval=$ac_status 1764fi 1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1767 as_fn_set_status $ac_retval 1768 1769} # ac_fn_c_try_run 1770 1771# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1772# ------------------------------------------------------- 1773# Tests whether HEADER exists and can be compiled using the include files in 1774# INCLUDES, setting the cache variable VAR accordingly. 1775ac_fn_c_check_header_compile () 1776{ 1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1779$as_echo_n "checking for $2... " >&6; } 1780if eval \${$3+:} false; then : 1781 $as_echo_n "(cached) " >&6 1782else 1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1784/* end confdefs.h. */ 1785$4 1786#include <$2> 1787_ACEOF 1788if ac_fn_c_try_compile "$LINENO"; then : 1789 eval "$3=yes" 1790else 1791 eval "$3=no" 1792fi 1793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1794fi 1795eval ac_res=\$$3 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1797$as_echo "$ac_res" >&6; } 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 1800} # ac_fn_c_check_header_compile 1801 1802# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1803# -------------------------------------------- 1804# Tries to find the compile-time value of EXPR in a program that includes 1805# INCLUDES, setting VAR accordingly. Returns whether the value could be 1806# computed 1807ac_fn_c_compute_int () 1808{ 1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1810 if test "$cross_compiling" = yes; then 1811 # Depending upon the size, compute the lo and hi bounds. 1812cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1813/* end confdefs.h. */ 1814$4 1815int 1816main () 1817{ 1818static int test_array [1 - 2 * !(($2) >= 0)]; 1819test_array [0] = 0; 1820return test_array [0]; 1821 1822 ; 1823 return 0; 1824} 1825_ACEOF 1826if ac_fn_c_try_compile "$LINENO"; then : 1827 ac_lo=0 ac_mid=0 1828 while :; do 1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1830/* end confdefs.h. */ 1831$4 1832int 1833main () 1834{ 1835static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1836test_array [0] = 0; 1837return test_array [0]; 1838 1839 ; 1840 return 0; 1841} 1842_ACEOF 1843if ac_fn_c_try_compile "$LINENO"; then : 1844 ac_hi=$ac_mid; break 1845else 1846 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1847 if test $ac_lo -le $ac_mid; then 1848 ac_lo= ac_hi= 1849 break 1850 fi 1851 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1852fi 1853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1854 done 1855else 1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1857/* end confdefs.h. */ 1858$4 1859int 1860main () 1861{ 1862static int test_array [1 - 2 * !(($2) < 0)]; 1863test_array [0] = 0; 1864return test_array [0]; 1865 1866 ; 1867 return 0; 1868} 1869_ACEOF 1870if ac_fn_c_try_compile "$LINENO"; then : 1871 ac_hi=-1 ac_mid=-1 1872 while :; do 1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1874/* end confdefs.h. */ 1875$4 1876int 1877main () 1878{ 1879static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1880test_array [0] = 0; 1881return test_array [0]; 1882 1883 ; 1884 return 0; 1885} 1886_ACEOF 1887if ac_fn_c_try_compile "$LINENO"; then : 1888 ac_lo=$ac_mid; break 1889else 1890 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1891 if test $ac_mid -le $ac_hi; then 1892 ac_lo= ac_hi= 1893 break 1894 fi 1895 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1896fi 1897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1898 done 1899else 1900 ac_lo= ac_hi= 1901fi 1902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1903fi 1904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1905# Binary search between lo and hi bounds. 1906while test "x$ac_lo" != "x$ac_hi"; do 1907 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1909/* end confdefs.h. */ 1910$4 1911int 1912main () 1913{ 1914static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1915test_array [0] = 0; 1916return test_array [0]; 1917 1918 ; 1919 return 0; 1920} 1921_ACEOF 1922if ac_fn_c_try_compile "$LINENO"; then : 1923 ac_hi=$ac_mid 1924else 1925 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1926fi 1927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1928done 1929case $ac_lo in #(( 1930?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1931'') ac_retval=1 ;; 1932esac 1933 else 1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1935/* end confdefs.h. */ 1936$4 1937static long int longval () { return $2; } 1938static unsigned long int ulongval () { return $2; } 1939#include <stdio.h> 1940#include <stdlib.h> 1941int 1942main () 1943{ 1944 1945 FILE *f = fopen ("conftest.val", "w"); 1946 if (! f) 1947 return 1; 1948 if (($2) < 0) 1949 { 1950 long int i = longval (); 1951 if (i != ($2)) 1952 return 1; 1953 fprintf (f, "%ld", i); 1954 } 1955 else 1956 { 1957 unsigned long int i = ulongval (); 1958 if (i != ($2)) 1959 return 1; 1960 fprintf (f, "%lu", i); 1961 } 1962 /* Do not output a trailing newline, as this causes \r\n confusion 1963 on some platforms. */ 1964 return ferror (f) || fclose (f) != 0; 1965 1966 ; 1967 return 0; 1968} 1969_ACEOF 1970if ac_fn_c_try_run "$LINENO"; then : 1971 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1972else 1973 ac_retval=1 1974fi 1975rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1976 conftest.$ac_objext conftest.beam conftest.$ac_ext 1977rm -f conftest.val 1978 1979 fi 1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1981 as_fn_set_status $ac_retval 1982 1983} # ac_fn_c_compute_int 1984 1985# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1986# ------------------------------------------------------- 1987# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1988# the include files in INCLUDES and setting the cache variable VAR 1989# accordingly. 1990ac_fn_c_check_header_mongrel () 1991{ 1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1993 if eval \${$3+:} false; then : 1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1995$as_echo_n "checking for $2... " >&6; } 1996if eval \${$3+:} false; then : 1997 $as_echo_n "(cached) " >&6 1998fi 1999eval ac_res=\$$3 2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2001$as_echo "$ac_res" >&6; } 2002else 2003 # Is the header compilable? 2004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2005$as_echo_n "checking $2 usability... " >&6; } 2006cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2007/* end confdefs.h. */ 2008$4 2009#include <$2> 2010_ACEOF 2011if ac_fn_c_try_compile "$LINENO"; then : 2012 ac_header_compiler=yes 2013else 2014 ac_header_compiler=no 2015fi 2016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2018$as_echo "$ac_header_compiler" >&6; } 2019 2020# Is the header present? 2021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2022$as_echo_n "checking $2 presence... " >&6; } 2023cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2024/* end confdefs.h. */ 2025#include <$2> 2026_ACEOF 2027if ac_fn_c_try_cpp "$LINENO"; then : 2028 ac_header_preproc=yes 2029else 2030 ac_header_preproc=no 2031fi 2032rm -f conftest.err conftest.i conftest.$ac_ext 2033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2034$as_echo "$ac_header_preproc" >&6; } 2035 2036# So? What about this header? 2037case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2038 yes:no: ) 2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2040$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2042$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2043 ;; 2044 no:yes:* ) 2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2046$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2048$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2050$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2052$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2054$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2055 ;; 2056esac 2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2058$as_echo_n "checking for $2... " >&6; } 2059if eval \${$3+:} false; then : 2060 $as_echo_n "(cached) " >&6 2061else 2062 eval "$3=\$ac_header_compiler" 2063fi 2064eval ac_res=\$$3 2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2066$as_echo "$ac_res" >&6; } 2067fi 2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2069 2070} # ac_fn_c_check_header_mongrel 2071 2072# ac_fn_c_check_func LINENO FUNC VAR 2073# ---------------------------------- 2074# Tests whether FUNC exists, setting the cache variable VAR accordingly 2075ac_fn_c_check_func () 2076{ 2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2079$as_echo_n "checking for $2... " >&6; } 2080if eval \${$3+:} false; then : 2081 $as_echo_n "(cached) " >&6 2082else 2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2084/* end confdefs.h. */ 2085/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2086 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2087#define $2 innocuous_$2 2088 2089/* System header to define __stub macros and hopefully few prototypes, 2090 which can conflict with char $2 (); below. 2091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2092 <limits.h> exists even on freestanding compilers. */ 2093 2094#ifdef __STDC__ 2095# include <limits.h> 2096#else 2097# include <assert.h> 2098#endif 2099 2100#undef $2 2101 2102/* Override any GCC internal prototype to avoid an error. 2103 Use char because int might match the return type of a GCC 2104 builtin and then its argument prototype would still apply. */ 2105#ifdef __cplusplus 2106extern "C" 2107#endif 2108char $2 (); 2109/* The GNU C library defines this for functions which it implements 2110 to always fail with ENOSYS. Some functions are actually named 2111 something starting with __ and the normal name is an alias. */ 2112#if defined __stub_$2 || defined __stub___$2 2113choke me 2114#endif 2115 2116int 2117main () 2118{ 2119return $2 (); 2120 ; 2121 return 0; 2122} 2123_ACEOF 2124if ac_fn_c_try_link "$LINENO"; then : 2125 eval "$3=yes" 2126else 2127 eval "$3=no" 2128fi 2129rm -f core conftest.err conftest.$ac_objext \ 2130 conftest$ac_exeext conftest.$ac_ext 2131fi 2132eval ac_res=\$$3 2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2134$as_echo "$ac_res" >&6; } 2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2136 2137} # ac_fn_c_check_func 2138 2139# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2140# ------------------------------------------- 2141# Tests whether TYPE exists after having included INCLUDES, setting cache 2142# variable VAR accordingly. 2143ac_fn_c_check_type () 2144{ 2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2147$as_echo_n "checking for $2... " >&6; } 2148if eval \${$3+:} false; then : 2149 $as_echo_n "(cached) " >&6 2150else 2151 eval "$3=no" 2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2153/* end confdefs.h. */ 2154$4 2155int 2156main () 2157{ 2158if (sizeof ($2)) 2159 return 0; 2160 ; 2161 return 0; 2162} 2163_ACEOF 2164if ac_fn_c_try_compile "$LINENO"; then : 2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2166/* end confdefs.h. */ 2167$4 2168int 2169main () 2170{ 2171if (sizeof (($2))) 2172 return 0; 2173 ; 2174 return 0; 2175} 2176_ACEOF 2177if ac_fn_c_try_compile "$LINENO"; then : 2178 2179else 2180 eval "$3=yes" 2181fi 2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2183fi 2184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2185fi 2186eval ac_res=\$$3 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2188$as_echo "$ac_res" >&6; } 2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2190 2191} # ac_fn_c_check_type 2192cat >config.log <<_ACEOF 2193This file contains any messages produced by compilers while 2194running configure, to aid debugging if configure makes a mistake. 2195 2196It was created by $as_me, which was 2197generated by GNU Autoconf 2.69. Invocation command line was 2198 2199 $ $0 $@ 2200 2201_ACEOF 2202exec 5>>config.log 2203{ 2204cat <<_ASUNAME 2205## --------- ## 2206## Platform. ## 2207## --------- ## 2208 2209hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2210uname -m = `(uname -m) 2>/dev/null || echo unknown` 2211uname -r = `(uname -r) 2>/dev/null || echo unknown` 2212uname -s = `(uname -s) 2>/dev/null || echo unknown` 2213uname -v = `(uname -v) 2>/dev/null || echo unknown` 2214 2215/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2216/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2217 2218/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2219/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2220/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2221/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2222/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2223/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2224/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2225 2226_ASUNAME 2227 2228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2229for as_dir in $PATH 2230do 2231 IFS=$as_save_IFS 2232 test -z "$as_dir" && as_dir=. 2233 $as_echo "PATH: $as_dir" 2234 done 2235IFS=$as_save_IFS 2236 2237} >&5 2238 2239cat >&5 <<_ACEOF 2240 2241 2242## ----------- ## 2243## Core tests. ## 2244## ----------- ## 2245 2246_ACEOF 2247 2248 2249# Keep a trace of the command line. 2250# Strip out --no-create and --no-recursion so they do not pile up. 2251# Strip out --silent because we don't want to record it for future runs. 2252# Also quote any args containing shell meta-characters. 2253# Make two passes to allow for proper duplicate-argument suppression. 2254ac_configure_args= 2255ac_configure_args0= 2256ac_configure_args1= 2257ac_must_keep_next=false 2258for ac_pass in 1 2 2259do 2260 for ac_arg 2261 do 2262 case $ac_arg in 2263 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2264 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2265 | -silent | --silent | --silen | --sile | --sil) 2266 continue ;; 2267 *\'*) 2268 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2269 esac 2270 case $ac_pass in 2271 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2272 2) 2273 as_fn_append ac_configure_args1 " '$ac_arg'" 2274 if test $ac_must_keep_next = true; then 2275 ac_must_keep_next=false # Got value, back to normal. 2276 else 2277 case $ac_arg in 2278 *=* | --config-cache | -C | -disable-* | --disable-* \ 2279 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2280 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2281 | -with-* | --with-* | -without-* | --without-* | --x) 2282 case "$ac_configure_args0 " in 2283 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2284 esac 2285 ;; 2286 -* ) ac_must_keep_next=true ;; 2287 esac 2288 fi 2289 as_fn_append ac_configure_args " '$ac_arg'" 2290 ;; 2291 esac 2292 done 2293done 2294{ ac_configure_args0=; unset ac_configure_args0;} 2295{ ac_configure_args1=; unset ac_configure_args1;} 2296 2297# When interrupted or exit'd, cleanup temporary files, and complete 2298# config.log. We remove comments because anyway the quotes in there 2299# would cause problems or look ugly. 2300# WARNING: Use '\'' to represent an apostrophe within the trap. 2301# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2302trap 'exit_status=$? 2303 # Save into config.log some information that might help in debugging. 2304 { 2305 echo 2306 2307 $as_echo "## ---------------- ## 2308## Cache variables. ## 2309## ---------------- ##" 2310 echo 2311 # The following way of writing the cache mishandles newlines in values, 2312( 2313 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2314 eval ac_val=\$$ac_var 2315 case $ac_val in #( 2316 *${as_nl}*) 2317 case $ac_var in #( 2318 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2319$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2320 esac 2321 case $ac_var in #( 2322 _ | IFS | as_nl) ;; #( 2323 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2324 *) { eval $ac_var=; unset $ac_var;} ;; 2325 esac ;; 2326 esac 2327 done 2328 (set) 2>&1 | 2329 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2330 *${as_nl}ac_space=\ *) 2331 sed -n \ 2332 "s/'\''/'\''\\\\'\'''\''/g; 2333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2334 ;; #( 2335 *) 2336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2337 ;; 2338 esac | 2339 sort 2340) 2341 echo 2342 2343 $as_echo "## ----------------- ## 2344## Output variables. ## 2345## ----------------- ##" 2346 echo 2347 for ac_var in $ac_subst_vars 2348 do 2349 eval ac_val=\$$ac_var 2350 case $ac_val in 2351 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2352 esac 2353 $as_echo "$ac_var='\''$ac_val'\''" 2354 done | sort 2355 echo 2356 2357 if test -n "$ac_subst_files"; then 2358 $as_echo "## ------------------- ## 2359## File substitutions. ## 2360## ------------------- ##" 2361 echo 2362 for ac_var in $ac_subst_files 2363 do 2364 eval ac_val=\$$ac_var 2365 case $ac_val in 2366 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2367 esac 2368 $as_echo "$ac_var='\''$ac_val'\''" 2369 done | sort 2370 echo 2371 fi 2372 2373 if test -s confdefs.h; then 2374 $as_echo "## ----------- ## 2375## confdefs.h. ## 2376## ----------- ##" 2377 echo 2378 cat confdefs.h 2379 echo 2380 fi 2381 test "$ac_signal" != 0 && 2382 $as_echo "$as_me: caught signal $ac_signal" 2383 $as_echo "$as_me: exit $exit_status" 2384 } >&5 2385 rm -f core *.core core.conftest.* && 2386 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2387 exit $exit_status 2388' 0 2389for ac_signal in 1 2 13 15; do 2390 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2391done 2392ac_signal=0 2393 2394# confdefs.h avoids OS command line length limits that DEFS can exceed. 2395rm -f -r conftest* confdefs.h 2396 2397$as_echo "/* confdefs.h */" > confdefs.h 2398 2399# Predefined preprocessor variables. 2400 2401cat >>confdefs.h <<_ACEOF 2402#define PACKAGE_NAME "$PACKAGE_NAME" 2403_ACEOF 2404 2405cat >>confdefs.h <<_ACEOF 2406#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2407_ACEOF 2408 2409cat >>confdefs.h <<_ACEOF 2410#define PACKAGE_VERSION "$PACKAGE_VERSION" 2411_ACEOF 2412 2413cat >>confdefs.h <<_ACEOF 2414#define PACKAGE_STRING "$PACKAGE_STRING" 2415_ACEOF 2416 2417cat >>confdefs.h <<_ACEOF 2418#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2419_ACEOF 2420 2421cat >>confdefs.h <<_ACEOF 2422#define PACKAGE_URL "$PACKAGE_URL" 2423_ACEOF 2424 2425 2426# Let the site file select an alternate cache file if it wants to. 2427# Prefer an explicitly selected file to automatically selected ones. 2428ac_site_file1=NONE 2429ac_site_file2=NONE 2430if test -n "$CONFIG_SITE"; then 2431 # We do not want a PATH search for config.site. 2432 case $CONFIG_SITE in #(( 2433 -*) ac_site_file1=./$CONFIG_SITE;; 2434 */*) ac_site_file1=$CONFIG_SITE;; 2435 *) ac_site_file1=./$CONFIG_SITE;; 2436 esac 2437elif test "x$prefix" != xNONE; then 2438 ac_site_file1=$prefix/share/config.site 2439 ac_site_file2=$prefix/etc/config.site 2440else 2441 ac_site_file1=$ac_default_prefix/share/config.site 2442 ac_site_file2=$ac_default_prefix/etc/config.site 2443fi 2444for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2445do 2446 test "x$ac_site_file" = xNONE && continue 2447 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2448 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2449$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2450 sed 's/^/| /' "$ac_site_file" >&5 2451 . "$ac_site_file" \ 2452 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2454as_fn_error $? "failed to load site script $ac_site_file 2455See \`config.log' for more details" "$LINENO" 5; } 2456 fi 2457done 2458 2459if test -r "$cache_file"; then 2460 # Some versions of bash will fail to source /dev/null (special files 2461 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2462 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2464$as_echo "$as_me: loading cache $cache_file" >&6;} 2465 case $cache_file in 2466 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2467 *) . "./$cache_file";; 2468 esac 2469 fi 2470else 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2472$as_echo "$as_me: creating cache $cache_file" >&6;} 2473 >$cache_file 2474fi 2475 2476# Check that the precious variables saved in the cache have kept the same 2477# value. 2478ac_cache_corrupted=false 2479for ac_var in $ac_precious_vars; do 2480 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2481 eval ac_new_set=\$ac_env_${ac_var}_set 2482 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2483 eval ac_new_val=\$ac_env_${ac_var}_value 2484 case $ac_old_set,$ac_new_set in 2485 set,) 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2487$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2488 ac_cache_corrupted=: ;; 2489 ,set) 2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2491$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2492 ac_cache_corrupted=: ;; 2493 ,);; 2494 *) 2495 if test "x$ac_old_val" != "x$ac_new_val"; then 2496 # differences in whitespace do not lead to failure. 2497 ac_old_val_w=`echo x $ac_old_val` 2498 ac_new_val_w=`echo x $ac_new_val` 2499 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2501$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2502 ac_cache_corrupted=: 2503 else 2504 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2505$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2506 eval $ac_var=\$ac_old_val 2507 fi 2508 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2509$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2510 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2511$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2512 fi;; 2513 esac 2514 # Pass precious variables to config.status. 2515 if test "$ac_new_set" = set; then 2516 case $ac_new_val in 2517 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2518 *) ac_arg=$ac_var=$ac_new_val ;; 2519 esac 2520 case " $ac_configure_args " in 2521 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2522 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2523 esac 2524 fi 2525done 2526if $ac_cache_corrupted; then 2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2530$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2531 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2532fi 2533## -------------------- ## 2534## Main body of script. ## 2535## -------------------- ## 2536 2537ac_ext=c 2538ac_cpp='$CPP $CPPFLAGS' 2539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2541ac_compiler_gnu=$ac_cv_c_compiler_gnu 2542 2543 2544 2545ac_aux_dir= 2546for ac_dir in build-aux "$srcdir"/build-aux; do 2547 if test -f "$ac_dir/install-sh"; then 2548 ac_aux_dir=$ac_dir 2549 ac_install_sh="$ac_aux_dir/install-sh -c" 2550 break 2551 elif test -f "$ac_dir/install.sh"; then 2552 ac_aux_dir=$ac_dir 2553 ac_install_sh="$ac_aux_dir/install.sh -c" 2554 break 2555 elif test -f "$ac_dir/shtool"; then 2556 ac_aux_dir=$ac_dir 2557 ac_install_sh="$ac_aux_dir/shtool install -c" 2558 break 2559 fi 2560done 2561if test -z "$ac_aux_dir"; then 2562 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2563fi 2564 2565# These three variables are undocumented and unsupported, 2566# and are intended to be withdrawn in a future Autoconf release. 2567# They can cause serious problems if a builder's source tree is in a directory 2568# whose full name contains unusual characters. 2569ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2570ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2571ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2572 2573 2574 2575 2576 2577 2578 2579 2580CONFIGURE_CFLAGS= 2581SPECIFIED_CFLAGS="${CFLAGS}" 2582 2583 2584 2585 2586 2587CONFIGURE_CXXFLAGS= 2588SPECIFIED_CXXFLAGS="${CXXFLAGS}" 2589 2590 2591 2592 2593 2594CONFIG=`echo ${ac_configure_args} | sed -e 's#'"'"'\([^ ]*\)'"'"'#\1#g'` 2595 2596 2597rev=2 2598 2599 2600srcroot=$srcdir 2601if test "x${srcroot}" = "x." ; then 2602 srcroot="" 2603else 2604 srcroot="${srcroot}/" 2605fi 2606 2607abs_srcroot="`cd \"${srcdir}\"; pwd`/" 2608 2609 2610objroot="" 2611 2612abs_objroot="`pwd`/" 2613 2614 2615if test "x$prefix" = "xNONE" ; then 2616 prefix="/usr/local" 2617fi 2618if test "x$exec_prefix" = "xNONE" ; then 2619 exec_prefix=$prefix 2620fi 2621PREFIX=$prefix 2622 2623BINDIR=`eval echo $bindir` 2624BINDIR=`eval echo $BINDIR` 2625 2626INCLUDEDIR=`eval echo $includedir` 2627INCLUDEDIR=`eval echo $INCLUDEDIR` 2628 2629LIBDIR=`eval echo $libdir` 2630LIBDIR=`eval echo $LIBDIR` 2631 2632DATADIR=`eval echo $datadir` 2633DATADIR=`eval echo $DATADIR` 2634 2635MANDIR=`eval echo $mandir` 2636MANDIR=`eval echo $MANDIR` 2637 2638 2639# Extract the first word of "xsltproc", so it can be a program name with args. 2640set dummy xsltproc; ac_word=$2 2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2642$as_echo_n "checking for $ac_word... " >&6; } 2643if ${ac_cv_path_XSLTPROC+:} false; then : 2644 $as_echo_n "(cached) " >&6 2645else 2646 case $XSLTPROC in 2647 [\\/]* | ?:[\\/]*) 2648 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 2649 ;; 2650 *) 2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2652for as_dir in $PATH 2653do 2654 IFS=$as_save_IFS 2655 test -z "$as_dir" && as_dir=. 2656 for ac_exec_ext in '' $ac_executable_extensions; do 2657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2658 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 2659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2660 break 2 2661 fi 2662done 2663 done 2664IFS=$as_save_IFS 2665 2666 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="false" 2667 ;; 2668esac 2669fi 2670XSLTPROC=$ac_cv_path_XSLTPROC 2671if test -n "$XSLTPROC"; then 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 2673$as_echo "$XSLTPROC" >&6; } 2674else 2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2676$as_echo "no" >&6; } 2677fi 2678 2679 2680if test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then 2681 DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl" 2682elif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then 2683 DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets" 2684else 2685 DEFAULT_XSLROOT="" 2686fi 2687 2688# Check whether --with-xslroot was given. 2689if test "${with_xslroot+set}" = set; then : 2690 withval=$with_xslroot; 2691if test "x$with_xslroot" = "xno" ; then 2692 XSLROOT="${DEFAULT_XSLROOT}" 2693else 2694 XSLROOT="${with_xslroot}" 2695fi 2696 2697else 2698 XSLROOT="${DEFAULT_XSLROOT}" 2699 2700fi 2701 2702 2703 2704CFLAGS=$CFLAGS 2705ac_ext=c 2706ac_cpp='$CPP $CPPFLAGS' 2707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2709ac_compiler_gnu=$ac_cv_c_compiler_gnu 2710if test -n "$ac_tool_prefix"; then 2711 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2712set dummy ${ac_tool_prefix}gcc; ac_word=$2 2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2714$as_echo_n "checking for $ac_word... " >&6; } 2715if ${ac_cv_prog_CC+:} false; then : 2716 $as_echo_n "(cached) " >&6 2717else 2718 if test -n "$CC"; then 2719 ac_cv_prog_CC="$CC" # Let the user override the test. 2720else 2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2722for as_dir in $PATH 2723do 2724 IFS=$as_save_IFS 2725 test -z "$as_dir" && as_dir=. 2726 for ac_exec_ext in '' $ac_executable_extensions; do 2727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2728 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2730 break 2 2731 fi 2732done 2733 done 2734IFS=$as_save_IFS 2735 2736fi 2737fi 2738CC=$ac_cv_prog_CC 2739if test -n "$CC"; then 2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2741$as_echo "$CC" >&6; } 2742else 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2744$as_echo "no" >&6; } 2745fi 2746 2747 2748fi 2749if test -z "$ac_cv_prog_CC"; then 2750 ac_ct_CC=$CC 2751 # Extract the first word of "gcc", so it can be a program name with args. 2752set dummy gcc; ac_word=$2 2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2754$as_echo_n "checking for $ac_word... " >&6; } 2755if ${ac_cv_prog_ac_ct_CC+:} false; then : 2756 $as_echo_n "(cached) " >&6 2757else 2758 if test -n "$ac_ct_CC"; then 2759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2760else 2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2762for as_dir in $PATH 2763do 2764 IFS=$as_save_IFS 2765 test -z "$as_dir" && as_dir=. 2766 for ac_exec_ext in '' $ac_executable_extensions; do 2767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2768 ac_cv_prog_ac_ct_CC="gcc" 2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2770 break 2 2771 fi 2772done 2773 done 2774IFS=$as_save_IFS 2775 2776fi 2777fi 2778ac_ct_CC=$ac_cv_prog_ac_ct_CC 2779if test -n "$ac_ct_CC"; then 2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2781$as_echo "$ac_ct_CC" >&6; } 2782else 2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2784$as_echo "no" >&6; } 2785fi 2786 2787 if test "x$ac_ct_CC" = x; then 2788 CC="" 2789 else 2790 case $cross_compiling:$ac_tool_warned in 2791yes:) 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2794ac_tool_warned=yes ;; 2795esac 2796 CC=$ac_ct_CC 2797 fi 2798else 2799 CC="$ac_cv_prog_CC" 2800fi 2801 2802if test -z "$CC"; then 2803 if test -n "$ac_tool_prefix"; then 2804 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2805set dummy ${ac_tool_prefix}cc; ac_word=$2 2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2807$as_echo_n "checking for $ac_word... " >&6; } 2808if ${ac_cv_prog_CC+:} false; then : 2809 $as_echo_n "(cached) " >&6 2810else 2811 if test -n "$CC"; then 2812 ac_cv_prog_CC="$CC" # Let the user override the test. 2813else 2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2815for as_dir in $PATH 2816do 2817 IFS=$as_save_IFS 2818 test -z "$as_dir" && as_dir=. 2819 for ac_exec_ext in '' $ac_executable_extensions; do 2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2821 ac_cv_prog_CC="${ac_tool_prefix}cc" 2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2823 break 2 2824 fi 2825done 2826 done 2827IFS=$as_save_IFS 2828 2829fi 2830fi 2831CC=$ac_cv_prog_CC 2832if test -n "$CC"; then 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2834$as_echo "$CC" >&6; } 2835else 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2837$as_echo "no" >&6; } 2838fi 2839 2840 2841 fi 2842fi 2843if test -z "$CC"; then 2844 # Extract the first word of "cc", so it can be a program name with args. 2845set dummy cc; ac_word=$2 2846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2847$as_echo_n "checking for $ac_word... " >&6; } 2848if ${ac_cv_prog_CC+:} false; then : 2849 $as_echo_n "(cached) " >&6 2850else 2851 if test -n "$CC"; then 2852 ac_cv_prog_CC="$CC" # Let the user override the test. 2853else 2854 ac_prog_rejected=no 2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2856for as_dir in $PATH 2857do 2858 IFS=$as_save_IFS 2859 test -z "$as_dir" && as_dir=. 2860 for ac_exec_ext in '' $ac_executable_extensions; do 2861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2862 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2863 ac_prog_rejected=yes 2864 continue 2865 fi 2866 ac_cv_prog_CC="cc" 2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2868 break 2 2869 fi 2870done 2871 done 2872IFS=$as_save_IFS 2873 2874if test $ac_prog_rejected = yes; then 2875 # We found a bogon in the path, so make sure we never use it. 2876 set dummy $ac_cv_prog_CC 2877 shift 2878 if test $# != 0; then 2879 # We chose a different compiler from the bogus one. 2880 # However, it has the same basename, so the bogon will be chosen 2881 # first if we set CC to just the basename; use the full file name. 2882 shift 2883 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2884 fi 2885fi 2886fi 2887fi 2888CC=$ac_cv_prog_CC 2889if test -n "$CC"; then 2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2891$as_echo "$CC" >&6; } 2892else 2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2894$as_echo "no" >&6; } 2895fi 2896 2897 2898fi 2899if test -z "$CC"; then 2900 if test -n "$ac_tool_prefix"; then 2901 for ac_prog in cl.exe 2902 do 2903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2904set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2906$as_echo_n "checking for $ac_word... " >&6; } 2907if ${ac_cv_prog_CC+:} false; then : 2908 $as_echo_n "(cached) " >&6 2909else 2910 if test -n "$CC"; then 2911 ac_cv_prog_CC="$CC" # Let the user override the test. 2912else 2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2914for as_dir in $PATH 2915do 2916 IFS=$as_save_IFS 2917 test -z "$as_dir" && as_dir=. 2918 for ac_exec_ext in '' $ac_executable_extensions; do 2919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2920 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2922 break 2 2923 fi 2924done 2925 done 2926IFS=$as_save_IFS 2927 2928fi 2929fi 2930CC=$ac_cv_prog_CC 2931if test -n "$CC"; then 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2933$as_echo "$CC" >&6; } 2934else 2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2936$as_echo "no" >&6; } 2937fi 2938 2939 2940 test -n "$CC" && break 2941 done 2942fi 2943if test -z "$CC"; then 2944 ac_ct_CC=$CC 2945 for ac_prog in cl.exe 2946do 2947 # Extract the first word of "$ac_prog", so it can be a program name with args. 2948set dummy $ac_prog; ac_word=$2 2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2950$as_echo_n "checking for $ac_word... " >&6; } 2951if ${ac_cv_prog_ac_ct_CC+:} false; then : 2952 $as_echo_n "(cached) " >&6 2953else 2954 if test -n "$ac_ct_CC"; then 2955 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2956else 2957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2958for as_dir in $PATH 2959do 2960 IFS=$as_save_IFS 2961 test -z "$as_dir" && as_dir=. 2962 for ac_exec_ext in '' $ac_executable_extensions; do 2963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2964 ac_cv_prog_ac_ct_CC="$ac_prog" 2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2966 break 2 2967 fi 2968done 2969 done 2970IFS=$as_save_IFS 2971 2972fi 2973fi 2974ac_ct_CC=$ac_cv_prog_ac_ct_CC 2975if test -n "$ac_ct_CC"; then 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2977$as_echo "$ac_ct_CC" >&6; } 2978else 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2980$as_echo "no" >&6; } 2981fi 2982 2983 2984 test -n "$ac_ct_CC" && break 2985done 2986 2987 if test "x$ac_ct_CC" = x; then 2988 CC="" 2989 else 2990 case $cross_compiling:$ac_tool_warned in 2991yes:) 2992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2994ac_tool_warned=yes ;; 2995esac 2996 CC=$ac_ct_CC 2997 fi 2998fi 2999 3000fi 3001 3002 3003test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3005as_fn_error $? "no acceptable C compiler found in \$PATH 3006See \`config.log' for more details" "$LINENO" 5; } 3007 3008# Provide some information about the compiler. 3009$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3010set X $ac_compile 3011ac_compiler=$2 3012for ac_option in --version -v -V -qversion; do 3013 { { ac_try="$ac_compiler $ac_option >&5" 3014case "(($ac_try" in 3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3016 *) ac_try_echo=$ac_try;; 3017esac 3018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3019$as_echo "$ac_try_echo"; } >&5 3020 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3021 ac_status=$? 3022 if test -s conftest.err; then 3023 sed '10a\ 3024... rest of stderr output deleted ... 3025 10q' conftest.err >conftest.er1 3026 cat conftest.er1 >&5 3027 fi 3028 rm -f conftest.er1 conftest.err 3029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3030 test $ac_status = 0; } 3031done 3032 3033cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3034/* end confdefs.h. */ 3035 3036int 3037main () 3038{ 3039 3040 ; 3041 return 0; 3042} 3043_ACEOF 3044ac_clean_files_save=$ac_clean_files 3045ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3046# Try to create an executable without -o first, disregard a.out. 3047# It will help us diagnose broken compilers, and finding out an intuition 3048# of exeext. 3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3050$as_echo_n "checking whether the C compiler works... " >&6; } 3051ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3052 3053# The possible output files: 3054ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3055 3056ac_rmfiles= 3057for ac_file in $ac_files 3058do 3059 case $ac_file in 3060 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3061 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3062 esac 3063done 3064rm -f $ac_rmfiles 3065 3066if { { ac_try="$ac_link_default" 3067case "(($ac_try" in 3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3069 *) ac_try_echo=$ac_try;; 3070esac 3071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3072$as_echo "$ac_try_echo"; } >&5 3073 (eval "$ac_link_default") 2>&5 3074 ac_status=$? 3075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3076 test $ac_status = 0; }; then : 3077 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3078# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3079# in a Makefile. We should not override ac_cv_exeext if it was cached, 3080# so that the user can short-circuit this test for compilers unknown to 3081# Autoconf. 3082for ac_file in $ac_files '' 3083do 3084 test -f "$ac_file" || continue 3085 case $ac_file in 3086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3087 ;; 3088 [ab].out ) 3089 # We found the default executable, but exeext='' is most 3090 # certainly right. 3091 break;; 3092 *.* ) 3093 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3094 then :; else 3095 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3096 fi 3097 # We set ac_cv_exeext here because the later test for it is not 3098 # safe: cross compilers may not add the suffix if given an `-o' 3099 # argument, so we may need to know it at that point already. 3100 # Even if this section looks crufty: it has the advantage of 3101 # actually working. 3102 break;; 3103 * ) 3104 break;; 3105 esac 3106done 3107test "$ac_cv_exeext" = no && ac_cv_exeext= 3108 3109else 3110 ac_file='' 3111fi 3112if test -z "$ac_file"; then : 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3114$as_echo "no" >&6; } 3115$as_echo "$as_me: failed program was:" >&5 3116sed 's/^/| /' conftest.$ac_ext >&5 3117 3118{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3120as_fn_error 77 "C compiler cannot create executables 3121See \`config.log' for more details" "$LINENO" 5; } 3122else 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3124$as_echo "yes" >&6; } 3125fi 3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3127$as_echo_n "checking for C compiler default output file name... " >&6; } 3128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3129$as_echo "$ac_file" >&6; } 3130ac_exeext=$ac_cv_exeext 3131 3132rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3133ac_clean_files=$ac_clean_files_save 3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3135$as_echo_n "checking for suffix of executables... " >&6; } 3136if { { ac_try="$ac_link" 3137case "(($ac_try" in 3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3139 *) ac_try_echo=$ac_try;; 3140esac 3141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3142$as_echo "$ac_try_echo"; } >&5 3143 (eval "$ac_link") 2>&5 3144 ac_status=$? 3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3146 test $ac_status = 0; }; then : 3147 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3148# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3149# work properly (i.e., refer to `conftest.exe'), while it won't with 3150# `rm'. 3151for ac_file in conftest.exe conftest conftest.*; do 3152 test -f "$ac_file" || continue 3153 case $ac_file in 3154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3155 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3156 break;; 3157 * ) break;; 3158 esac 3159done 3160else 3161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3163as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3164See \`config.log' for more details" "$LINENO" 5; } 3165fi 3166rm -f conftest conftest$ac_cv_exeext 3167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3168$as_echo "$ac_cv_exeext" >&6; } 3169 3170rm -f conftest.$ac_ext 3171EXEEXT=$ac_cv_exeext 3172ac_exeext=$EXEEXT 3173cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3174/* end confdefs.h. */ 3175#include <stdio.h> 3176int 3177main () 3178{ 3179FILE *f = fopen ("conftest.out", "w"); 3180 return ferror (f) || fclose (f) != 0; 3181 3182 ; 3183 return 0; 3184} 3185_ACEOF 3186ac_clean_files="$ac_clean_files conftest.out" 3187# Check that the compiler produces executables we can run. If not, either 3188# the compiler is broken, or we cross compile. 3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3190$as_echo_n "checking whether we are cross compiling... " >&6; } 3191if test "$cross_compiling" != yes; then 3192 { { ac_try="$ac_link" 3193case "(($ac_try" in 3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3195 *) ac_try_echo=$ac_try;; 3196esac 3197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3198$as_echo "$ac_try_echo"; } >&5 3199 (eval "$ac_link") 2>&5 3200 ac_status=$? 3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3202 test $ac_status = 0; } 3203 if { ac_try='./conftest$ac_cv_exeext' 3204 { { case "(($ac_try" in 3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3206 *) ac_try_echo=$ac_try;; 3207esac 3208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3209$as_echo "$ac_try_echo"; } >&5 3210 (eval "$ac_try") 2>&5 3211 ac_status=$? 3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3213 test $ac_status = 0; }; }; then 3214 cross_compiling=no 3215 else 3216 if test "$cross_compiling" = maybe; then 3217 cross_compiling=yes 3218 else 3219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3221as_fn_error $? "cannot run C compiled programs. 3222If you meant to cross compile, use \`--host'. 3223See \`config.log' for more details" "$LINENO" 5; } 3224 fi 3225 fi 3226fi 3227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3228$as_echo "$cross_compiling" >&6; } 3229 3230rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3231ac_clean_files=$ac_clean_files_save 3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3233$as_echo_n "checking for suffix of object files... " >&6; } 3234if ${ac_cv_objext+:} false; then : 3235 $as_echo_n "(cached) " >&6 3236else 3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3238/* end confdefs.h. */ 3239 3240int 3241main () 3242{ 3243 3244 ; 3245 return 0; 3246} 3247_ACEOF 3248rm -f conftest.o conftest.obj 3249if { { ac_try="$ac_compile" 3250case "(($ac_try" in 3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3252 *) ac_try_echo=$ac_try;; 3253esac 3254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3255$as_echo "$ac_try_echo"; } >&5 3256 (eval "$ac_compile") 2>&5 3257 ac_status=$? 3258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3259 test $ac_status = 0; }; then : 3260 for ac_file in conftest.o conftest.obj conftest.*; do 3261 test -f "$ac_file" || continue; 3262 case $ac_file in 3263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3264 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3265 break;; 3266 esac 3267done 3268else 3269 $as_echo "$as_me: failed program was:" >&5 3270sed 's/^/| /' conftest.$ac_ext >&5 3271 3272{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3274as_fn_error $? "cannot compute suffix of object files: cannot compile 3275See \`config.log' for more details" "$LINENO" 5; } 3276fi 3277rm -f conftest.$ac_cv_objext conftest.$ac_ext 3278fi 3279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3280$as_echo "$ac_cv_objext" >&6; } 3281OBJEXT=$ac_cv_objext 3282ac_objext=$OBJEXT 3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3284$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3285if ${ac_cv_c_compiler_gnu+:} false; then : 3286 $as_echo_n "(cached) " >&6 3287else 3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3289/* end confdefs.h. */ 3290 3291int 3292main () 3293{ 3294#ifndef __GNUC__ 3295 choke me 3296#endif 3297 3298 ; 3299 return 0; 3300} 3301_ACEOF 3302if ac_fn_c_try_compile "$LINENO"; then : 3303 ac_compiler_gnu=yes 3304else 3305 ac_compiler_gnu=no 3306fi 3307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3308ac_cv_c_compiler_gnu=$ac_compiler_gnu 3309 3310fi 3311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3312$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3313if test $ac_compiler_gnu = yes; then 3314 GCC=yes 3315else 3316 GCC= 3317fi 3318ac_test_CFLAGS=${CFLAGS+set} 3319ac_save_CFLAGS=$CFLAGS 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3321$as_echo_n "checking whether $CC accepts -g... " >&6; } 3322if ${ac_cv_prog_cc_g+:} false; then : 3323 $as_echo_n "(cached) " >&6 3324else 3325 ac_save_c_werror_flag=$ac_c_werror_flag 3326 ac_c_werror_flag=yes 3327 ac_cv_prog_cc_g=no 3328 CFLAGS="-g" 3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3330/* end confdefs.h. */ 3331 3332int 3333main () 3334{ 3335 3336 ; 3337 return 0; 3338} 3339_ACEOF 3340if ac_fn_c_try_compile "$LINENO"; then : 3341 ac_cv_prog_cc_g=yes 3342else 3343 CFLAGS="" 3344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3345/* end confdefs.h. */ 3346 3347int 3348main () 3349{ 3350 3351 ; 3352 return 0; 3353} 3354_ACEOF 3355if ac_fn_c_try_compile "$LINENO"; then : 3356 3357else 3358 ac_c_werror_flag=$ac_save_c_werror_flag 3359 CFLAGS="-g" 3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3361/* end confdefs.h. */ 3362 3363int 3364main () 3365{ 3366 3367 ; 3368 return 0; 3369} 3370_ACEOF 3371if ac_fn_c_try_compile "$LINENO"; then : 3372 ac_cv_prog_cc_g=yes 3373fi 3374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3375fi 3376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3377fi 3378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3379 ac_c_werror_flag=$ac_save_c_werror_flag 3380fi 3381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3382$as_echo "$ac_cv_prog_cc_g" >&6; } 3383if test "$ac_test_CFLAGS" = set; then 3384 CFLAGS=$ac_save_CFLAGS 3385elif test $ac_cv_prog_cc_g = yes; then 3386 if test "$GCC" = yes; then 3387 CFLAGS="-g -O2" 3388 else 3389 CFLAGS="-g" 3390 fi 3391else 3392 if test "$GCC" = yes; then 3393 CFLAGS="-O2" 3394 else 3395 CFLAGS= 3396 fi 3397fi 3398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3399$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3400if ${ac_cv_prog_cc_c89+:} false; then : 3401 $as_echo_n "(cached) " >&6 3402else 3403 ac_cv_prog_cc_c89=no 3404ac_save_CC=$CC 3405cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3406/* end confdefs.h. */ 3407#include <stdarg.h> 3408#include <stdio.h> 3409struct stat; 3410/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3411struct buf { int x; }; 3412FILE * (*rcsopen) (struct buf *, struct stat *, int); 3413static char *e (p, i) 3414 char **p; 3415 int i; 3416{ 3417 return p[i]; 3418} 3419static char *f (char * (*g) (char **, int), char **p, ...) 3420{ 3421 char *s; 3422 va_list v; 3423 va_start (v,p); 3424 s = g (p, va_arg (v,int)); 3425 va_end (v); 3426 return s; 3427} 3428 3429/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3430 function prototypes and stuff, but not '\xHH' hex character constants. 3431 These don't provoke an error unfortunately, instead are silently treated 3432 as 'x'. The following induces an error, until -std is added to get 3433 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3434 array size at least. It's necessary to write '\x00'==0 to get something 3435 that's true only with -std. */ 3436int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3437 3438/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3439 inside strings and character constants. */ 3440#define FOO(x) 'x' 3441int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3442 3443int test (int i, double x); 3444struct s1 {int (*f) (int a);}; 3445struct s2 {int (*f) (double a);}; 3446int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3447int argc; 3448char **argv; 3449int 3450main () 3451{ 3452return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3453 ; 3454 return 0; 3455} 3456_ACEOF 3457for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3458 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3459do 3460 CC="$ac_save_CC $ac_arg" 3461 if ac_fn_c_try_compile "$LINENO"; then : 3462 ac_cv_prog_cc_c89=$ac_arg 3463fi 3464rm -f core conftest.err conftest.$ac_objext 3465 test "x$ac_cv_prog_cc_c89" != "xno" && break 3466done 3467rm -f conftest.$ac_ext 3468CC=$ac_save_CC 3469 3470fi 3471# AC_CACHE_VAL 3472case "x$ac_cv_prog_cc_c89" in 3473 x) 3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3475$as_echo "none needed" >&6; } ;; 3476 xno) 3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3478$as_echo "unsupported" >&6; } ;; 3479 *) 3480 CC="$CC $ac_cv_prog_cc_c89" 3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3482$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3483esac 3484if test "x$ac_cv_prog_cc_c89" != xno; then : 3485 3486fi 3487 3488ac_ext=c 3489ac_cpp='$CPP $CPPFLAGS' 3490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3492ac_compiler_gnu=$ac_cv_c_compiler_gnu 3493 3494 3495if test "x$GCC" != "xyes" ; then 3496 3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5 3498$as_echo_n "checking whether compiler is MSVC... " >&6; } 3499if ${je_cv_msvc+:} false; then : 3500 $as_echo_n "(cached) " >&6 3501else 3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3503/* end confdefs.h. */ 3504 3505int 3506main () 3507{ 3508 3509#ifndef _MSC_VER 3510 int fail-1; 3511#endif 3512 3513 ; 3514 return 0; 3515} 3516_ACEOF 3517if ac_fn_c_try_compile "$LINENO"; then : 3518 je_cv_msvc=yes 3519else 3520 je_cv_msvc=no 3521fi 3522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3523fi 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5 3525$as_echo "$je_cv_msvc" >&6; } 3526fi 3527 3528je_cv_cray_prgenv_wrapper="" 3529if test "x${PE_ENV}" != "x" ; then 3530 case "${CC}" in 3531 CC|cc) 3532 je_cv_cray_prgenv_wrapper="yes" 3533 ;; 3534 *) 3535 ;; 3536 esac 3537fi 3538 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is cray" >&5 3540$as_echo_n "checking whether compiler is cray... " >&6; } 3541if ${je_cv_cray+:} false; then : 3542 $as_echo_n "(cached) " >&6 3543else 3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3545/* end confdefs.h. */ 3546 3547int 3548main () 3549{ 3550 3551#ifndef _CRAYC 3552 int fail-1; 3553#endif 3554 3555 ; 3556 return 0; 3557} 3558_ACEOF 3559if ac_fn_c_try_compile "$LINENO"; then : 3560 je_cv_cray=yes 3561else 3562 je_cv_cray=no 3563fi 3564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3565fi 3566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray" >&5 3567$as_echo "$je_cv_cray" >&6; } 3568 3569if test "x${je_cv_cray}" = "xyes" ; then 3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cray compiler version is 8.4" >&5 3571$as_echo_n "checking whether cray compiler version is 8.4... " >&6; } 3572if ${je_cv_cray_84+:} false; then : 3573 $as_echo_n "(cached) " >&6 3574else 3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3576/* end confdefs.h. */ 3577 3578int 3579main () 3580{ 3581 3582#if !(_RELEASE_MAJOR == 8 && _RELEASE_MINOR == 4) 3583 int fail-1; 3584#endif 3585 3586 ; 3587 return 0; 3588} 3589_ACEOF 3590if ac_fn_c_try_compile "$LINENO"; then : 3591 je_cv_cray_84=yes 3592else 3593 je_cv_cray_84=no 3594fi 3595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3596fi 3597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray_84" >&5 3598$as_echo "$je_cv_cray_84" >&6; } 3599fi 3600 3601if test "x$GCC" = "xyes" ; then 3602 3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu11" >&5 3604$as_echo_n "checking whether compiler supports -std=gnu11... " >&6; } 3605T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 3606T_APPEND_V=-std=gnu11 3607 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 3608 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 3609else 3610 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 3611fi 3612 3613 3614if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3615 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3616else 3617 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3618fi 3619 3620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3621/* end confdefs.h. */ 3622 3623 3624int 3625main () 3626{ 3627 3628 return 0; 3629 3630 ; 3631 return 0; 3632} 3633_ACEOF 3634if ac_fn_c_try_compile "$LINENO"; then : 3635 je_cv_cflags_added=-std=gnu11 3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3637$as_echo "yes" >&6; } 3638else 3639 je_cv_cflags_added= 3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3641$as_echo "no" >&6; } 3642 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 3643 3644fi 3645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3646if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3647 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3648else 3649 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3650fi 3651 3652 3653 if test "x$je_cv_cflags_added" = "x-std=gnu11" ; then 3654 cat >>confdefs.h <<_ACEOF 3655#define JEMALLOC_HAS_RESTRICT 1 3656_ACEOF 3657 3658 else 3659 3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5 3661$as_echo_n "checking whether compiler supports -std=gnu99... " >&6; } 3662T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 3663T_APPEND_V=-std=gnu99 3664 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 3665 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 3666else 3667 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 3668fi 3669 3670 3671if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3672 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3673else 3674 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3675fi 3676 3677cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3678/* end confdefs.h. */ 3679 3680 3681int 3682main () 3683{ 3684 3685 return 0; 3686 3687 ; 3688 return 0; 3689} 3690_ACEOF 3691if ac_fn_c_try_compile "$LINENO"; then : 3692 je_cv_cflags_added=-std=gnu99 3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3694$as_echo "yes" >&6; } 3695else 3696 je_cv_cflags_added= 3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3698$as_echo "no" >&6; } 3699 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 3700 3701fi 3702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3703if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3704 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3705else 3706 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3707fi 3708 3709 3710 if test "x$je_cv_cflags_added" = "x-std=gnu99" ; then 3711 cat >>confdefs.h <<_ACEOF 3712#define JEMALLOC_HAS_RESTRICT 1 3713_ACEOF 3714 3715 fi 3716 fi 3717 3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5 3719$as_echo_n "checking whether compiler supports -Wall... " >&6; } 3720T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 3721T_APPEND_V=-Wall 3722 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 3723 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 3724else 3725 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 3726fi 3727 3728 3729if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3730 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3731else 3732 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3733fi 3734 3735cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3736/* end confdefs.h. */ 3737 3738 3739int 3740main () 3741{ 3742 3743 return 0; 3744 3745 ; 3746 return 0; 3747} 3748_ACEOF 3749if ac_fn_c_try_compile "$LINENO"; then : 3750 je_cv_cflags_added=-Wall 3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3752$as_echo "yes" >&6; } 3753else 3754 je_cv_cflags_added= 3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3756$as_echo "no" >&6; } 3757 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 3758 3759fi 3760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3761if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3762 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3763else 3764 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3765fi 3766 3767 3768 3769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wshorten-64-to-32" >&5 3770$as_echo_n "checking whether compiler supports -Wshorten-64-to-32... " >&6; } 3771T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 3772T_APPEND_V=-Wshorten-64-to-32 3773 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 3774 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 3775else 3776 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 3777fi 3778 3779 3780if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3781 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3782else 3783 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3784fi 3785 3786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3787/* end confdefs.h. */ 3788 3789 3790int 3791main () 3792{ 3793 3794 return 0; 3795 3796 ; 3797 return 0; 3798} 3799_ACEOF 3800if ac_fn_c_try_compile "$LINENO"; then : 3801 je_cv_cflags_added=-Wshorten-64-to-32 3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3803$as_echo "yes" >&6; } 3804else 3805 je_cv_cflags_added= 3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3807$as_echo "no" >&6; } 3808 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 3809 3810fi 3811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3812if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3813 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3814else 3815 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3816fi 3817 3818 3819 3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-compare" >&5 3821$as_echo_n "checking whether compiler supports -Wsign-compare... " >&6; } 3822T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 3823T_APPEND_V=-Wsign-compare 3824 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 3825 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 3826else 3827 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 3828fi 3829 3830 3831if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3832 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3833else 3834 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3835fi 3836 3837cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3838/* end confdefs.h. */ 3839 3840 3841int 3842main () 3843{ 3844 3845 return 0; 3846 3847 ; 3848 return 0; 3849} 3850_ACEOF 3851if ac_fn_c_try_compile "$LINENO"; then : 3852 je_cv_cflags_added=-Wsign-compare 3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3854$as_echo "yes" >&6; } 3855else 3856 je_cv_cflags_added= 3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3858$as_echo "no" >&6; } 3859 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 3860 3861fi 3862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3863if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3864 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3865else 3866 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3867fi 3868 3869 3870 3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wundef" >&5 3872$as_echo_n "checking whether compiler supports -Wundef... " >&6; } 3873T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 3874T_APPEND_V=-Wundef 3875 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 3876 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 3877else 3878 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 3879fi 3880 3881 3882if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3883 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3884else 3885 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3886fi 3887 3888cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3889/* end confdefs.h. */ 3890 3891 3892int 3893main () 3894{ 3895 3896 return 0; 3897 3898 ; 3899 return 0; 3900} 3901_ACEOF 3902if ac_fn_c_try_compile "$LINENO"; then : 3903 je_cv_cflags_added=-Wundef 3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3905$as_echo "yes" >&6; } 3906else 3907 je_cv_cflags_added= 3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3909$as_echo "no" >&6; } 3910 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 3911 3912fi 3913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3914if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3915 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3916else 3917 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3918fi 3919 3920 3921 3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-format-zero-length" >&5 3923$as_echo_n "checking whether compiler supports -Wno-format-zero-length... " >&6; } 3924T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 3925T_APPEND_V=-Wno-format-zero-length 3926 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 3927 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 3928else 3929 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 3930fi 3931 3932 3933if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3934 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3935else 3936 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3937fi 3938 3939cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3940/* end confdefs.h. */ 3941 3942 3943int 3944main () 3945{ 3946 3947 return 0; 3948 3949 ; 3950 return 0; 3951} 3952_ACEOF 3953if ac_fn_c_try_compile "$LINENO"; then : 3954 je_cv_cflags_added=-Wno-format-zero-length 3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3956$as_echo "yes" >&6; } 3957else 3958 je_cv_cflags_added= 3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3960$as_echo "no" >&6; } 3961 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 3962 3963fi 3964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3965if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3966 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3967else 3968 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3969fi 3970 3971 3972 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5 3974$as_echo_n "checking whether compiler supports -pipe... " >&6; } 3975T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 3976T_APPEND_V=-pipe 3977 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 3978 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 3979else 3980 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 3981fi 3982 3983 3984if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 3985 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 3986else 3987 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 3988fi 3989 3990cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3991/* end confdefs.h. */ 3992 3993 3994int 3995main () 3996{ 3997 3998 return 0; 3999 4000 ; 4001 return 0; 4002} 4003_ACEOF 4004if ac_fn_c_try_compile "$LINENO"; then : 4005 je_cv_cflags_added=-pipe 4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4007$as_echo "yes" >&6; } 4008else 4009 je_cv_cflags_added= 4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4011$as_echo "no" >&6; } 4012 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4013 4014fi 4015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4016if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4017 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4018else 4019 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4020fi 4021 4022 4023 4024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5 4025$as_echo_n "checking whether compiler supports -g3... " >&6; } 4026T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4027T_APPEND_V=-g3 4028 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4029 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4030else 4031 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4032fi 4033 4034 4035if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4036 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4037else 4038 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4039fi 4040 4041cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4042/* end confdefs.h. */ 4043 4044 4045int 4046main () 4047{ 4048 4049 return 0; 4050 4051 ; 4052 return 0; 4053} 4054_ACEOF 4055if ac_fn_c_try_compile "$LINENO"; then : 4056 je_cv_cflags_added=-g3 4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4058$as_echo "yes" >&6; } 4059else 4060 je_cv_cflags_added= 4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4062$as_echo "no" >&6; } 4063 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4064 4065fi 4066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4067if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4068 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4069else 4070 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4071fi 4072 4073 4074elif test "x$je_cv_msvc" = "xyes" ; then 4075 CC="$CC -nologo" 4076 4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5 4078$as_echo_n "checking whether compiler supports -Zi... " >&6; } 4079T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4080T_APPEND_V=-Zi 4081 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4082 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4083else 4084 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4085fi 4086 4087 4088if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4089 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4090else 4091 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4092fi 4093 4094cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4095/* end confdefs.h. */ 4096 4097 4098int 4099main () 4100{ 4101 4102 return 0; 4103 4104 ; 4105 return 0; 4106} 4107_ACEOF 4108if ac_fn_c_try_compile "$LINENO"; then : 4109 je_cv_cflags_added=-Zi 4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4111$as_echo "yes" >&6; } 4112else 4113 je_cv_cflags_added= 4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4115$as_echo "no" >&6; } 4116 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4117 4118fi 4119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4120if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4121 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4122else 4123 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4124fi 4125 4126 4127 4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5 4129$as_echo_n "checking whether compiler supports -MT... " >&6; } 4130T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4131T_APPEND_V=-MT 4132 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4133 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4134else 4135 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4136fi 4137 4138 4139if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4140 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4141else 4142 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4143fi 4144 4145cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4146/* end confdefs.h. */ 4147 4148 4149int 4150main () 4151{ 4152 4153 return 0; 4154 4155 ; 4156 return 0; 4157} 4158_ACEOF 4159if ac_fn_c_try_compile "$LINENO"; then : 4160 je_cv_cflags_added=-MT 4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4162$as_echo "yes" >&6; } 4163else 4164 je_cv_cflags_added= 4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4166$as_echo "no" >&6; } 4167 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4168 4169fi 4170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4171if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4172 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4173else 4174 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4175fi 4176 4177 4178 4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5 4180$as_echo_n "checking whether compiler supports -W3... " >&6; } 4181T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4182T_APPEND_V=-W3 4183 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4184 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4185else 4186 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4187fi 4188 4189 4190if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4191 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4192else 4193 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4194fi 4195 4196cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4197/* end confdefs.h. */ 4198 4199 4200int 4201main () 4202{ 4203 4204 return 0; 4205 4206 ; 4207 return 0; 4208} 4209_ACEOF 4210if ac_fn_c_try_compile "$LINENO"; then : 4211 je_cv_cflags_added=-W3 4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4213$as_echo "yes" >&6; } 4214else 4215 je_cv_cflags_added= 4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4217$as_echo "no" >&6; } 4218 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4219 4220fi 4221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4222if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4223 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4224else 4225 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4226fi 4227 4228 4229 4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -FS" >&5 4231$as_echo_n "checking whether compiler supports -FS... " >&6; } 4232T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4233T_APPEND_V=-FS 4234 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4235 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4236else 4237 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4238fi 4239 4240 4241if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4242 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4243else 4244 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4245fi 4246 4247cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4248/* end confdefs.h. */ 4249 4250 4251int 4252main () 4253{ 4254 4255 return 0; 4256 4257 ; 4258 return 0; 4259} 4260_ACEOF 4261if ac_fn_c_try_compile "$LINENO"; then : 4262 je_cv_cflags_added=-FS 4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4264$as_echo "yes" >&6; } 4265else 4266 je_cv_cflags_added= 4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4268$as_echo "no" >&6; } 4269 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4270 4271fi 4272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4273if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4274 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4275else 4276 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4277fi 4278 4279 4280 T_APPEND_V=-I${srcdir}/include/msvc_compat 4281 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4282 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}" 4283else 4284 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}" 4285fi 4286 4287 4288fi 4289if test "x$je_cv_cray" = "xyes" ; then 4290 if test "x$je_cv_cray_84" = "xyes" ; then 4291 4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hipa2" >&5 4293$as_echo_n "checking whether compiler supports -hipa2... " >&6; } 4294T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4295T_APPEND_V=-hipa2 4296 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4297 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4298else 4299 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4300fi 4301 4302 4303if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4304 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4305else 4306 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4307fi 4308 4309cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4310/* end confdefs.h. */ 4311 4312 4313int 4314main () 4315{ 4316 4317 return 0; 4318 4319 ; 4320 return 0; 4321} 4322_ACEOF 4323if ac_fn_c_try_compile "$LINENO"; then : 4324 je_cv_cflags_added=-hipa2 4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4326$as_echo "yes" >&6; } 4327else 4328 je_cv_cflags_added= 4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4330$as_echo "no" >&6; } 4331 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4332 4333fi 4334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4335if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4336 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4337else 4338 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4339fi 4340 4341 4342 4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnognu" >&5 4344$as_echo_n "checking whether compiler supports -hnognu... " >&6; } 4345T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4346T_APPEND_V=-hnognu 4347 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4348 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4349else 4350 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4351fi 4352 4353 4354if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4355 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4356else 4357 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4358fi 4359 4360cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4361/* end confdefs.h. */ 4362 4363 4364int 4365main () 4366{ 4367 4368 return 0; 4369 4370 ; 4371 return 0; 4372} 4373_ACEOF 4374if ac_fn_c_try_compile "$LINENO"; then : 4375 je_cv_cflags_added=-hnognu 4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4377$as_echo "yes" >&6; } 4378else 4379 je_cv_cflags_added= 4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4381$as_echo "no" >&6; } 4382 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4383 4384fi 4385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4386if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4387 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4388else 4389 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4390fi 4391 4392 4393 fi 4394 4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=128" >&5 4396$as_echo_n "checking whether compiler supports -hnomessage=128... " >&6; } 4397T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4398T_APPEND_V=-hnomessage=128 4399 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4400 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4401else 4402 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4403fi 4404 4405 4406if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4407 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4408else 4409 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4410fi 4411 4412cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4413/* end confdefs.h. */ 4414 4415 4416int 4417main () 4418{ 4419 4420 return 0; 4421 4422 ; 4423 return 0; 4424} 4425_ACEOF 4426if ac_fn_c_try_compile "$LINENO"; then : 4427 je_cv_cflags_added=-hnomessage=128 4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4429$as_echo "yes" >&6; } 4430else 4431 je_cv_cflags_added= 4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4433$as_echo "no" >&6; } 4434 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4435 4436fi 4437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4438if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4439 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4440else 4441 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4442fi 4443 4444 4445 4446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=1357" >&5 4447$as_echo_n "checking whether compiler supports -hnomessage=1357... " >&6; } 4448T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 4449T_APPEND_V=-hnomessage=1357 4450 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 4451 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 4452else 4453 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 4454fi 4455 4456 4457if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4458 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4459else 4460 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4461fi 4462 4463cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4464/* end confdefs.h. */ 4465 4466 4467int 4468main () 4469{ 4470 4471 return 0; 4472 4473 ; 4474 return 0; 4475} 4476_ACEOF 4477if ac_fn_c_try_compile "$LINENO"; then : 4478 je_cv_cflags_added=-hnomessage=1357 4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4480$as_echo "yes" >&6; } 4481else 4482 je_cv_cflags_added= 4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4484$as_echo "no" >&6; } 4485 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 4486 4487fi 4488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4489if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 4490 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 4491else 4492 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 4493fi 4494 4495 4496fi 4497 4498 4499 4500ac_ext=c 4501ac_cpp='$CPP $CPPFLAGS' 4502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4504ac_compiler_gnu=$ac_cv_c_compiler_gnu 4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4506$as_echo_n "checking how to run the C preprocessor... " >&6; } 4507# On Suns, sometimes $CPP names a directory. 4508if test -n "$CPP" && test -d "$CPP"; then 4509 CPP= 4510fi 4511if test -z "$CPP"; then 4512 if ${ac_cv_prog_CPP+:} false; then : 4513 $as_echo_n "(cached) " >&6 4514else 4515 # Double quotes because CPP needs to be expanded 4516 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4517 do 4518 ac_preproc_ok=false 4519for ac_c_preproc_warn_flag in '' yes 4520do 4521 # Use a header file that comes with gcc, so configuring glibc 4522 # with a fresh cross-compiler works. 4523 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4524 # <limits.h> exists even on freestanding compilers. 4525 # On the NeXT, cc -E runs the code through the compiler's parser, 4526 # not just through cpp. "Syntax error" is here to catch this case. 4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4528/* end confdefs.h. */ 4529#ifdef __STDC__ 4530# include <limits.h> 4531#else 4532# include <assert.h> 4533#endif 4534 Syntax error 4535_ACEOF 4536if ac_fn_c_try_cpp "$LINENO"; then : 4537 4538else 4539 # Broken: fails on valid input. 4540continue 4541fi 4542rm -f conftest.err conftest.i conftest.$ac_ext 4543 4544 # OK, works on sane cases. Now check whether nonexistent headers 4545 # can be detected and how. 4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4547/* end confdefs.h. */ 4548#include <ac_nonexistent.h> 4549_ACEOF 4550if ac_fn_c_try_cpp "$LINENO"; then : 4551 # Broken: success on invalid input. 4552continue 4553else 4554 # Passes both tests. 4555ac_preproc_ok=: 4556break 4557fi 4558rm -f conftest.err conftest.i conftest.$ac_ext 4559 4560done 4561# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4562rm -f conftest.i conftest.err conftest.$ac_ext 4563if $ac_preproc_ok; then : 4564 break 4565fi 4566 4567 done 4568 ac_cv_prog_CPP=$CPP 4569 4570fi 4571 CPP=$ac_cv_prog_CPP 4572else 4573 ac_cv_prog_CPP=$CPP 4574fi 4575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4576$as_echo "$CPP" >&6; } 4577ac_preproc_ok=false 4578for ac_c_preproc_warn_flag in '' yes 4579do 4580 # Use a header file that comes with gcc, so configuring glibc 4581 # with a fresh cross-compiler works. 4582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4583 # <limits.h> exists even on freestanding compilers. 4584 # On the NeXT, cc -E runs the code through the compiler's parser, 4585 # not just through cpp. "Syntax error" is here to catch this case. 4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4587/* end confdefs.h. */ 4588#ifdef __STDC__ 4589# include <limits.h> 4590#else 4591# include <assert.h> 4592#endif 4593 Syntax error 4594_ACEOF 4595if ac_fn_c_try_cpp "$LINENO"; then : 4596 4597else 4598 # Broken: fails on valid input. 4599continue 4600fi 4601rm -f conftest.err conftest.i conftest.$ac_ext 4602 4603 # OK, works on sane cases. Now check whether nonexistent headers 4604 # can be detected and how. 4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4606/* end confdefs.h. */ 4607#include <ac_nonexistent.h> 4608_ACEOF 4609if ac_fn_c_try_cpp "$LINENO"; then : 4610 # Broken: success on invalid input. 4611continue 4612else 4613 # Passes both tests. 4614ac_preproc_ok=: 4615break 4616fi 4617rm -f conftest.err conftest.i conftest.$ac_ext 4618 4619done 4620# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4621rm -f conftest.i conftest.err conftest.$ac_ext 4622if $ac_preproc_ok; then : 4623 4624else 4625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4627as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4628See \`config.log' for more details" "$LINENO" 5; } 4629fi 4630 4631ac_ext=c 4632ac_cpp='$CPP $CPPFLAGS' 4633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4635ac_compiler_gnu=$ac_cv_c_compiler_gnu 4636 4637 4638# Check whether --enable-cxx was given. 4639if test "${enable_cxx+set}" = set; then : 4640 enableval=$enable_cxx; if test "x$enable_cxx" = "xno" ; then 4641 enable_cxx="0" 4642else 4643 enable_cxx="1" 4644fi 4645 4646else 4647 enable_cxx="1" 4648 4649fi 4650 4651if test "x$enable_cxx" = "x1" ; then 4652 # =========================================================================== 4653# http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html 4654# =========================================================================== 4655# 4656# SYNOPSIS 4657# 4658# AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional]) 4659# 4660# DESCRIPTION 4661# 4662# Check for baseline language coverage in the compiler for the specified 4663# version of the C++ standard. If necessary, add switches to CXX and 4664# CXXCPP to enable support. VERSION may be '11' (for the C++11 standard) 4665# or '14' (for the C++14 standard). 4666# 4667# The second argument, if specified, indicates whether you insist on an 4668# extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g. 4669# -std=c++11). If neither is specified, you get whatever works, with 4670# preference for an extended mode. 4671# 4672# The third argument, if specified 'mandatory' or if left unspecified, 4673# indicates that baseline support for the specified C++ standard is 4674# required and that the macro should error out if no mode with that 4675# support is found. If specified 'optional', then configuration proceeds 4676# regardless, after defining HAVE_CXX${VERSION} if and only if a 4677# supporting mode is found. 4678# 4679# LICENSE 4680# 4681# Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com> 4682# Copyright (c) 2012 Zack Weinberg <zackw@panix.com> 4683# Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu> 4684# Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com> 4685# Copyright (c) 2015 Paul Norman <penorman@mac.com> 4686# Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu> 4687# 4688# Copying and distribution of this file, with or without modification, are 4689# permitted in any medium without royalty provided the copyright notice 4690# and this notice are preserved. This file is offered as-is, without any 4691# warranty. 4692 4693#serial 4 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 ac_ext=cpp 4715ac_cpp='$CXXCPP $CPPFLAGS' 4716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4719if test -z "$CXX"; then 4720 if test -n "$CCC"; then 4721 CXX=$CCC 4722 else 4723 if test -n "$ac_tool_prefix"; then 4724 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4725 do 4726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4727set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4729$as_echo_n "checking for $ac_word... " >&6; } 4730if ${ac_cv_prog_CXX+:} false; then : 4731 $as_echo_n "(cached) " >&6 4732else 4733 if test -n "$CXX"; then 4734 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4735else 4736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4737for as_dir in $PATH 4738do 4739 IFS=$as_save_IFS 4740 test -z "$as_dir" && as_dir=. 4741 for ac_exec_ext in '' $ac_executable_extensions; do 4742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4743 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4745 break 2 4746 fi 4747done 4748 done 4749IFS=$as_save_IFS 4750 4751fi 4752fi 4753CXX=$ac_cv_prog_CXX 4754if test -n "$CXX"; then 4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4756$as_echo "$CXX" >&6; } 4757else 4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4759$as_echo "no" >&6; } 4760fi 4761 4762 4763 test -n "$CXX" && break 4764 done 4765fi 4766if test -z "$CXX"; then 4767 ac_ct_CXX=$CXX 4768 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4769do 4770 # Extract the first word of "$ac_prog", so it can be a program name with args. 4771set dummy $ac_prog; ac_word=$2 4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4773$as_echo_n "checking for $ac_word... " >&6; } 4774if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4775 $as_echo_n "(cached) " >&6 4776else 4777 if test -n "$ac_ct_CXX"; then 4778 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4779else 4780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4781for as_dir in $PATH 4782do 4783 IFS=$as_save_IFS 4784 test -z "$as_dir" && as_dir=. 4785 for ac_exec_ext in '' $ac_executable_extensions; do 4786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4787 ac_cv_prog_ac_ct_CXX="$ac_prog" 4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4789 break 2 4790 fi 4791done 4792 done 4793IFS=$as_save_IFS 4794 4795fi 4796fi 4797ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4798if test -n "$ac_ct_CXX"; then 4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4800$as_echo "$ac_ct_CXX" >&6; } 4801else 4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4803$as_echo "no" >&6; } 4804fi 4805 4806 4807 test -n "$ac_ct_CXX" && break 4808done 4809 4810 if test "x$ac_ct_CXX" = x; then 4811 CXX="g++" 4812 else 4813 case $cross_compiling:$ac_tool_warned in 4814yes:) 4815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4817ac_tool_warned=yes ;; 4818esac 4819 CXX=$ac_ct_CXX 4820 fi 4821fi 4822 4823 fi 4824fi 4825# Provide some information about the compiler. 4826$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4827set X $ac_compile 4828ac_compiler=$2 4829for ac_option in --version -v -V -qversion; do 4830 { { ac_try="$ac_compiler $ac_option >&5" 4831case "(($ac_try" in 4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4833 *) ac_try_echo=$ac_try;; 4834esac 4835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4836$as_echo "$ac_try_echo"; } >&5 4837 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4838 ac_status=$? 4839 if test -s conftest.err; then 4840 sed '10a\ 4841... rest of stderr output deleted ... 4842 10q' conftest.err >conftest.er1 4843 cat conftest.er1 >&5 4844 fi 4845 rm -f conftest.er1 conftest.err 4846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4847 test $ac_status = 0; } 4848done 4849 4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4851$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4852if ${ac_cv_cxx_compiler_gnu+:} false; then : 4853 $as_echo_n "(cached) " >&6 4854else 4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4856/* end confdefs.h. */ 4857 4858int 4859main () 4860{ 4861#ifndef __GNUC__ 4862 choke me 4863#endif 4864 4865 ; 4866 return 0; 4867} 4868_ACEOF 4869if ac_fn_cxx_try_compile "$LINENO"; then : 4870 ac_compiler_gnu=yes 4871else 4872 ac_compiler_gnu=no 4873fi 4874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4875ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4876 4877fi 4878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4879$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4880if test $ac_compiler_gnu = yes; then 4881 GXX=yes 4882else 4883 GXX= 4884fi 4885ac_test_CXXFLAGS=${CXXFLAGS+set} 4886ac_save_CXXFLAGS=$CXXFLAGS 4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4888$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4889if ${ac_cv_prog_cxx_g+:} false; then : 4890 $as_echo_n "(cached) " >&6 4891else 4892 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4893 ac_cxx_werror_flag=yes 4894 ac_cv_prog_cxx_g=no 4895 CXXFLAGS="-g" 4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4897/* end confdefs.h. */ 4898 4899int 4900main () 4901{ 4902 4903 ; 4904 return 0; 4905} 4906_ACEOF 4907if ac_fn_cxx_try_compile "$LINENO"; then : 4908 ac_cv_prog_cxx_g=yes 4909else 4910 CXXFLAGS="" 4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4912/* end confdefs.h. */ 4913 4914int 4915main () 4916{ 4917 4918 ; 4919 return 0; 4920} 4921_ACEOF 4922if ac_fn_cxx_try_compile "$LINENO"; then : 4923 4924else 4925 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4926 CXXFLAGS="-g" 4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4928/* end confdefs.h. */ 4929 4930int 4931main () 4932{ 4933 4934 ; 4935 return 0; 4936} 4937_ACEOF 4938if ac_fn_cxx_try_compile "$LINENO"; then : 4939 ac_cv_prog_cxx_g=yes 4940fi 4941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4942fi 4943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4944fi 4945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4946 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4947fi 4948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4949$as_echo "$ac_cv_prog_cxx_g" >&6; } 4950if test "$ac_test_CXXFLAGS" = set; then 4951 CXXFLAGS=$ac_save_CXXFLAGS 4952elif test $ac_cv_prog_cxx_g = yes; then 4953 if test "$GXX" = yes; then 4954 CXXFLAGS="-g -O2" 4955 else 4956 CXXFLAGS="-g" 4957 fi 4958else 4959 if test "$GXX" = yes; then 4960 CXXFLAGS="-O2" 4961 else 4962 CXXFLAGS= 4963 fi 4964fi 4965ac_ext=cpp 4966ac_cpp='$CXXCPP $CPPFLAGS' 4967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4970 4971 4972 ax_cxx_compile_cxx14_required=false 4973 ac_ext=cpp 4974ac_cpp='$CXXCPP $CPPFLAGS' 4975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4978 ac_success=no 4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5 4980$as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; } 4981if ${ax_cv_cxx_compile_cxx14+:} false; then : 4982 $as_echo_n "(cached) " >&6 4983else 4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4985/* end confdefs.h. */ 4986 4987 4988// If the compiler admits that it is not ready for C++11, why torture it? 4989// Hopefully, this will speed up the test. 4990 4991#ifndef __cplusplus 4992 4993#error "This is not a C++ compiler" 4994 4995#elif __cplusplus < 201103L 4996 4997#error "This is not a C++11 compiler" 4998 4999#else 5000 5001namespace cxx11 5002{ 5003 5004 namespace test_static_assert 5005 { 5006 5007 template <typename T> 5008 struct check 5009 { 5010 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 5011 }; 5012 5013 } 5014 5015 namespace test_final_override 5016 { 5017 5018 struct Base 5019 { 5020 virtual void f() {} 5021 }; 5022 5023 struct Derived : public Base 5024 { 5025 virtual void f() override {} 5026 }; 5027 5028 } 5029 5030 namespace test_double_right_angle_brackets 5031 { 5032 5033 template < typename T > 5034 struct check {}; 5035 5036 typedef check<void> single_type; 5037 typedef check<check<void>> double_type; 5038 typedef check<check<check<void>>> triple_type; 5039 typedef check<check<check<check<void>>>> quadruple_type; 5040 5041 } 5042 5043 namespace test_decltype 5044 { 5045 5046 int 5047 f() 5048 { 5049 int a = 1; 5050 decltype(a) b = 2; 5051 return a + b; 5052 } 5053 5054 } 5055 5056 namespace test_type_deduction 5057 { 5058 5059 template < typename T1, typename T2 > 5060 struct is_same 5061 { 5062 static const bool value = false; 5063 }; 5064 5065 template < typename T > 5066 struct is_same<T, T> 5067 { 5068 static const bool value = true; 5069 }; 5070 5071 template < typename T1, typename T2 > 5072 auto 5073 add(T1 a1, T2 a2) -> decltype(a1 + a2) 5074 { 5075 return a1 + a2; 5076 } 5077 5078 int 5079 test(const int c, volatile int v) 5080 { 5081 static_assert(is_same<int, decltype(0)>::value == true, ""); 5082 static_assert(is_same<int, decltype(c)>::value == false, ""); 5083 static_assert(is_same<int, decltype(v)>::value == false, ""); 5084 auto ac = c; 5085 auto av = v; 5086 auto sumi = ac + av + 'x'; 5087 auto sumf = ac + av + 1.0; 5088 static_assert(is_same<int, decltype(ac)>::value == true, ""); 5089 static_assert(is_same<int, decltype(av)>::value == true, ""); 5090 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 5091 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 5092 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 5093 return (sumf > 0.0) ? sumi : add(c, v); 5094 } 5095 5096 } 5097 5098 namespace test_noexcept 5099 { 5100 5101 int f() { return 0; } 5102 int g() noexcept { return 0; } 5103 5104 static_assert(noexcept(f()) == false, ""); 5105 static_assert(noexcept(g()) == true, ""); 5106 5107 } 5108 5109 namespace test_constexpr 5110 { 5111 5112 template < typename CharT > 5113 unsigned long constexpr 5114 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 5115 { 5116 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 5117 } 5118 5119 template < typename CharT > 5120 unsigned long constexpr 5121 strlen_c(const CharT *const s) noexcept 5122 { 5123 return strlen_c_r(s, 0UL); 5124 } 5125 5126 static_assert(strlen_c("") == 0UL, ""); 5127 static_assert(strlen_c("1") == 1UL, ""); 5128 static_assert(strlen_c("example") == 7UL, ""); 5129 static_assert(strlen_c("another\0example") == 7UL, ""); 5130 5131 } 5132 5133 namespace test_rvalue_references 5134 { 5135 5136 template < int N > 5137 struct answer 5138 { 5139 static constexpr int value = N; 5140 }; 5141 5142 answer<1> f(int&) { return answer<1>(); } 5143 answer<2> f(const int&) { return answer<2>(); } 5144 answer<3> f(int&&) { return answer<3>(); } 5145 5146 void 5147 test() 5148 { 5149 int i = 0; 5150 const int c = 0; 5151 static_assert(decltype(f(i))::value == 1, ""); 5152 static_assert(decltype(f(c))::value == 2, ""); 5153 static_assert(decltype(f(0))::value == 3, ""); 5154 } 5155 5156 } 5157 5158 namespace test_uniform_initialization 5159 { 5160 5161 struct test 5162 { 5163 static const int zero {}; 5164 static const int one {1}; 5165 }; 5166 5167 static_assert(test::zero == 0, ""); 5168 static_assert(test::one == 1, ""); 5169 5170 } 5171 5172 namespace test_lambdas 5173 { 5174 5175 void 5176 test1() 5177 { 5178 auto lambda1 = [](){}; 5179 auto lambda2 = lambda1; 5180 lambda1(); 5181 lambda2(); 5182 } 5183 5184 int 5185 test2() 5186 { 5187 auto a = [](int i, int j){ return i + j; }(1, 2); 5188 auto b = []() -> int { return '0'; }(); 5189 auto c = [=](){ return a + b; }(); 5190 auto d = [&](){ return c; }(); 5191 auto e = [a, &b](int x) mutable { 5192 const auto identity = [](int y){ return y; }; 5193 for (auto i = 0; i < a; ++i) 5194 a += b--; 5195 return x + identity(a + b); 5196 }(0); 5197 return a + b + c + d + e; 5198 } 5199 5200 int 5201 test3() 5202 { 5203 const auto nullary = [](){ return 0; }; 5204 const auto unary = [](int x){ return x; }; 5205 using nullary_t = decltype(nullary); 5206 using unary_t = decltype(unary); 5207 const auto higher1st = [](nullary_t f){ return f(); }; 5208 const auto higher2nd = [unary](nullary_t f1){ 5209 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 5210 }; 5211 return higher1st(nullary) + higher2nd(nullary)(unary); 5212 } 5213 5214 } 5215 5216 namespace test_variadic_templates 5217 { 5218 5219 template <int...> 5220 struct sum; 5221 5222 template <int N0, int... N1toN> 5223 struct sum<N0, N1toN...> 5224 { 5225 static constexpr auto value = N0 + sum<N1toN...>::value; 5226 }; 5227 5228 template <> 5229 struct sum<> 5230 { 5231 static constexpr auto value = 0; 5232 }; 5233 5234 static_assert(sum<>::value == 0, ""); 5235 static_assert(sum<1>::value == 1, ""); 5236 static_assert(sum<23>::value == 23, ""); 5237 static_assert(sum<1, 2>::value == 3, ""); 5238 static_assert(sum<5, 5, 11>::value == 21, ""); 5239 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 5240 5241 } 5242 5243 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 5244 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 5245 // because of this. 5246 namespace test_template_alias_sfinae 5247 { 5248 5249 struct foo {}; 5250 5251 template<typename T> 5252 using member = typename T::member_type; 5253 5254 template<typename T> 5255 void func(...) {} 5256 5257 template<typename T> 5258 void func(member<T>*) {} 5259 5260 void test(); 5261 5262 void test() { func<foo>(0); } 5263 5264 } 5265 5266} // namespace cxx11 5267 5268#endif // __cplusplus >= 201103L 5269 5270 5271 5272 5273// If the compiler admits that it is not ready for C++14, why torture it? 5274// Hopefully, this will speed up the test. 5275 5276#ifndef __cplusplus 5277 5278#error "This is not a C++ compiler" 5279 5280#elif __cplusplus < 201402L 5281 5282#error "This is not a C++14 compiler" 5283 5284#else 5285 5286namespace cxx14 5287{ 5288 5289 namespace test_polymorphic_lambdas 5290 { 5291 5292 int 5293 test() 5294 { 5295 const auto lambda = [](auto&&... args){ 5296 const auto istiny = [](auto x){ 5297 return (sizeof(x) == 1UL) ? 1 : 0; 5298 }; 5299 const int aretiny[] = { istiny(args)... }; 5300 return aretiny[0]; 5301 }; 5302 return lambda(1, 1L, 1.0f, '1'); 5303 } 5304 5305 } 5306 5307 namespace test_binary_literals 5308 { 5309 5310 constexpr auto ivii = 0b0000000000101010; 5311 static_assert(ivii == 42, "wrong value"); 5312 5313 } 5314 5315 namespace test_generalized_constexpr 5316 { 5317 5318 template < typename CharT > 5319 constexpr unsigned long 5320 strlen_c(const CharT *const s) noexcept 5321 { 5322 auto length = 0UL; 5323 for (auto p = s; *p; ++p) 5324 ++length; 5325 return length; 5326 } 5327 5328 static_assert(strlen_c("") == 0UL, ""); 5329 static_assert(strlen_c("x") == 1UL, ""); 5330 static_assert(strlen_c("test") == 4UL, ""); 5331 static_assert(strlen_c("another\0test") == 7UL, ""); 5332 5333 } 5334 5335 namespace test_lambda_init_capture 5336 { 5337 5338 int 5339 test() 5340 { 5341 auto x = 0; 5342 const auto lambda1 = [a = x](int b){ return a + b; }; 5343 const auto lambda2 = [a = lambda1(x)](){ return a; }; 5344 return lambda2(); 5345 } 5346 5347 } 5348 5349 namespace test_digit_seperators 5350 { 5351 5352 constexpr auto ten_million = 100'000'000; 5353 static_assert(ten_million == 100000000, ""); 5354 5355 } 5356 5357 namespace test_return_type_deduction 5358 { 5359 5360 auto f(int& x) { return x; } 5361 decltype(auto) g(int& x) { return x; } 5362 5363 template < typename T1, typename T2 > 5364 struct is_same 5365 { 5366 static constexpr auto value = false; 5367 }; 5368 5369 template < typename T > 5370 struct is_same<T, T> 5371 { 5372 static constexpr auto value = true; 5373 }; 5374 5375 int 5376 test() 5377 { 5378 auto x = 0; 5379 static_assert(is_same<int, decltype(f(x))>::value, ""); 5380 static_assert(is_same<int&, decltype(g(x))>::value, ""); 5381 return x; 5382 } 5383 5384 } 5385 5386} // namespace cxx14 5387 5388#endif // __cplusplus >= 201402L 5389 5390 5391 5392_ACEOF 5393if ac_fn_cxx_try_compile "$LINENO"; then : 5394 ax_cv_cxx_compile_cxx14=yes 5395else 5396 ax_cv_cxx_compile_cxx14=no 5397fi 5398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5399fi 5400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5 5401$as_echo "$ax_cv_cxx_compile_cxx14" >&6; } 5402 if test x$ax_cv_cxx_compile_cxx14 = xyes; then 5403 ac_success=yes 5404 fi 5405 5406 5407 5408 if test x$ac_success = xno; then 5409 for switch in -std=c++14 -std=c++0x +std=c++14 "-h std=c++14"; do 5410 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh` 5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5 5412$as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; } 5413if eval \${$cachevar+:} false; then : 5414 $as_echo_n "(cached) " >&6 5415else 5416 ac_save_CXX="$CXX" 5417 CXX="$CXX $switch" 5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5419/* end confdefs.h. */ 5420 5421 5422// If the compiler admits that it is not ready for C++11, why torture it? 5423// Hopefully, this will speed up the test. 5424 5425#ifndef __cplusplus 5426 5427#error "This is not a C++ compiler" 5428 5429#elif __cplusplus < 201103L 5430 5431#error "This is not a C++11 compiler" 5432 5433#else 5434 5435namespace cxx11 5436{ 5437 5438 namespace test_static_assert 5439 { 5440 5441 template <typename T> 5442 struct check 5443 { 5444 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 5445 }; 5446 5447 } 5448 5449 namespace test_final_override 5450 { 5451 5452 struct Base 5453 { 5454 virtual void f() {} 5455 }; 5456 5457 struct Derived : public Base 5458 { 5459 virtual void f() override {} 5460 }; 5461 5462 } 5463 5464 namespace test_double_right_angle_brackets 5465 { 5466 5467 template < typename T > 5468 struct check {}; 5469 5470 typedef check<void> single_type; 5471 typedef check<check<void>> double_type; 5472 typedef check<check<check<void>>> triple_type; 5473 typedef check<check<check<check<void>>>> quadruple_type; 5474 5475 } 5476 5477 namespace test_decltype 5478 { 5479 5480 int 5481 f() 5482 { 5483 int a = 1; 5484 decltype(a) b = 2; 5485 return a + b; 5486 } 5487 5488 } 5489 5490 namespace test_type_deduction 5491 { 5492 5493 template < typename T1, typename T2 > 5494 struct is_same 5495 { 5496 static const bool value = false; 5497 }; 5498 5499 template < typename T > 5500 struct is_same<T, T> 5501 { 5502 static const bool value = true; 5503 }; 5504 5505 template < typename T1, typename T2 > 5506 auto 5507 add(T1 a1, T2 a2) -> decltype(a1 + a2) 5508 { 5509 return a1 + a2; 5510 } 5511 5512 int 5513 test(const int c, volatile int v) 5514 { 5515 static_assert(is_same<int, decltype(0)>::value == true, ""); 5516 static_assert(is_same<int, decltype(c)>::value == false, ""); 5517 static_assert(is_same<int, decltype(v)>::value == false, ""); 5518 auto ac = c; 5519 auto av = v; 5520 auto sumi = ac + av + 'x'; 5521 auto sumf = ac + av + 1.0; 5522 static_assert(is_same<int, decltype(ac)>::value == true, ""); 5523 static_assert(is_same<int, decltype(av)>::value == true, ""); 5524 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 5525 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 5526 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 5527 return (sumf > 0.0) ? sumi : add(c, v); 5528 } 5529 5530 } 5531 5532 namespace test_noexcept 5533 { 5534 5535 int f() { return 0; } 5536 int g() noexcept { return 0; } 5537 5538 static_assert(noexcept(f()) == false, ""); 5539 static_assert(noexcept(g()) == true, ""); 5540 5541 } 5542 5543 namespace test_constexpr 5544 { 5545 5546 template < typename CharT > 5547 unsigned long constexpr 5548 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 5549 { 5550 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 5551 } 5552 5553 template < typename CharT > 5554 unsigned long constexpr 5555 strlen_c(const CharT *const s) noexcept 5556 { 5557 return strlen_c_r(s, 0UL); 5558 } 5559 5560 static_assert(strlen_c("") == 0UL, ""); 5561 static_assert(strlen_c("1") == 1UL, ""); 5562 static_assert(strlen_c("example") == 7UL, ""); 5563 static_assert(strlen_c("another\0example") == 7UL, ""); 5564 5565 } 5566 5567 namespace test_rvalue_references 5568 { 5569 5570 template < int N > 5571 struct answer 5572 { 5573 static constexpr int value = N; 5574 }; 5575 5576 answer<1> f(int&) { return answer<1>(); } 5577 answer<2> f(const int&) { return answer<2>(); } 5578 answer<3> f(int&&) { return answer<3>(); } 5579 5580 void 5581 test() 5582 { 5583 int i = 0; 5584 const int c = 0; 5585 static_assert(decltype(f(i))::value == 1, ""); 5586 static_assert(decltype(f(c))::value == 2, ""); 5587 static_assert(decltype(f(0))::value == 3, ""); 5588 } 5589 5590 } 5591 5592 namespace test_uniform_initialization 5593 { 5594 5595 struct test 5596 { 5597 static const int zero {}; 5598 static const int one {1}; 5599 }; 5600 5601 static_assert(test::zero == 0, ""); 5602 static_assert(test::one == 1, ""); 5603 5604 } 5605 5606 namespace test_lambdas 5607 { 5608 5609 void 5610 test1() 5611 { 5612 auto lambda1 = [](){}; 5613 auto lambda2 = lambda1; 5614 lambda1(); 5615 lambda2(); 5616 } 5617 5618 int 5619 test2() 5620 { 5621 auto a = [](int i, int j){ return i + j; }(1, 2); 5622 auto b = []() -> int { return '0'; }(); 5623 auto c = [=](){ return a + b; }(); 5624 auto d = [&](){ return c; }(); 5625 auto e = [a, &b](int x) mutable { 5626 const auto identity = [](int y){ return y; }; 5627 for (auto i = 0; i < a; ++i) 5628 a += b--; 5629 return x + identity(a + b); 5630 }(0); 5631 return a + b + c + d + e; 5632 } 5633 5634 int 5635 test3() 5636 { 5637 const auto nullary = [](){ return 0; }; 5638 const auto unary = [](int x){ return x; }; 5639 using nullary_t = decltype(nullary); 5640 using unary_t = decltype(unary); 5641 const auto higher1st = [](nullary_t f){ return f(); }; 5642 const auto higher2nd = [unary](nullary_t f1){ 5643 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 5644 }; 5645 return higher1st(nullary) + higher2nd(nullary)(unary); 5646 } 5647 5648 } 5649 5650 namespace test_variadic_templates 5651 { 5652 5653 template <int...> 5654 struct sum; 5655 5656 template <int N0, int... N1toN> 5657 struct sum<N0, N1toN...> 5658 { 5659 static constexpr auto value = N0 + sum<N1toN...>::value; 5660 }; 5661 5662 template <> 5663 struct sum<> 5664 { 5665 static constexpr auto value = 0; 5666 }; 5667 5668 static_assert(sum<>::value == 0, ""); 5669 static_assert(sum<1>::value == 1, ""); 5670 static_assert(sum<23>::value == 23, ""); 5671 static_assert(sum<1, 2>::value == 3, ""); 5672 static_assert(sum<5, 5, 11>::value == 21, ""); 5673 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 5674 5675 } 5676 5677 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 5678 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 5679 // because of this. 5680 namespace test_template_alias_sfinae 5681 { 5682 5683 struct foo {}; 5684 5685 template<typename T> 5686 using member = typename T::member_type; 5687 5688 template<typename T> 5689 void func(...) {} 5690 5691 template<typename T> 5692 void func(member<T>*) {} 5693 5694 void test(); 5695 5696 void test() { func<foo>(0); } 5697 5698 } 5699 5700} // namespace cxx11 5701 5702#endif // __cplusplus >= 201103L 5703 5704 5705 5706 5707// If the compiler admits that it is not ready for C++14, why torture it? 5708// Hopefully, this will speed up the test. 5709 5710#ifndef __cplusplus 5711 5712#error "This is not a C++ compiler" 5713 5714#elif __cplusplus < 201402L 5715 5716#error "This is not a C++14 compiler" 5717 5718#else 5719 5720namespace cxx14 5721{ 5722 5723 namespace test_polymorphic_lambdas 5724 { 5725 5726 int 5727 test() 5728 { 5729 const auto lambda = [](auto&&... args){ 5730 const auto istiny = [](auto x){ 5731 return (sizeof(x) == 1UL) ? 1 : 0; 5732 }; 5733 const int aretiny[] = { istiny(args)... }; 5734 return aretiny[0]; 5735 }; 5736 return lambda(1, 1L, 1.0f, '1'); 5737 } 5738 5739 } 5740 5741 namespace test_binary_literals 5742 { 5743 5744 constexpr auto ivii = 0b0000000000101010; 5745 static_assert(ivii == 42, "wrong value"); 5746 5747 } 5748 5749 namespace test_generalized_constexpr 5750 { 5751 5752 template < typename CharT > 5753 constexpr unsigned long 5754 strlen_c(const CharT *const s) noexcept 5755 { 5756 auto length = 0UL; 5757 for (auto p = s; *p; ++p) 5758 ++length; 5759 return length; 5760 } 5761 5762 static_assert(strlen_c("") == 0UL, ""); 5763 static_assert(strlen_c("x") == 1UL, ""); 5764 static_assert(strlen_c("test") == 4UL, ""); 5765 static_assert(strlen_c("another\0test") == 7UL, ""); 5766 5767 } 5768 5769 namespace test_lambda_init_capture 5770 { 5771 5772 int 5773 test() 5774 { 5775 auto x = 0; 5776 const auto lambda1 = [a = x](int b){ return a + b; }; 5777 const auto lambda2 = [a = lambda1(x)](){ return a; }; 5778 return lambda2(); 5779 } 5780 5781 } 5782 5783 namespace test_digit_seperators 5784 { 5785 5786 constexpr auto ten_million = 100'000'000; 5787 static_assert(ten_million == 100000000, ""); 5788 5789 } 5790 5791 namespace test_return_type_deduction 5792 { 5793 5794 auto f(int& x) { return x; } 5795 decltype(auto) g(int& x) { return x; } 5796 5797 template < typename T1, typename T2 > 5798 struct is_same 5799 { 5800 static constexpr auto value = false; 5801 }; 5802 5803 template < typename T > 5804 struct is_same<T, T> 5805 { 5806 static constexpr auto value = true; 5807 }; 5808 5809 int 5810 test() 5811 { 5812 auto x = 0; 5813 static_assert(is_same<int, decltype(f(x))>::value, ""); 5814 static_assert(is_same<int&, decltype(g(x))>::value, ""); 5815 return x; 5816 } 5817 5818 } 5819 5820} // namespace cxx14 5821 5822#endif // __cplusplus >= 201402L 5823 5824 5825 5826_ACEOF 5827if ac_fn_cxx_try_compile "$LINENO"; then : 5828 eval $cachevar=yes 5829else 5830 eval $cachevar=no 5831fi 5832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5833 CXX="$ac_save_CXX" 5834fi 5835eval ac_res=\$$cachevar 5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5837$as_echo "$ac_res" >&6; } 5838 if eval test x\$$cachevar = xyes; then 5839 CXX="$CXX $switch" 5840 if test -n "$CXXCPP" ; then 5841 CXXCPP="$CXXCPP $switch" 5842 fi 5843 ac_success=yes 5844 break 5845 fi 5846 done 5847 fi 5848 ac_ext=c 5849ac_cpp='$CPP $CPPFLAGS' 5850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5852ac_compiler_gnu=$ac_cv_c_compiler_gnu 5853 5854 if test x$ax_cxx_compile_cxx14_required = xtrue; then 5855 if test x$ac_success = xno; then 5856 as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5 5857 fi 5858 fi 5859 if test x$ac_success = xno; then 5860 HAVE_CXX14=0 5861 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5 5862$as_echo "$as_me: No compiler with C++14 support was found" >&6;} 5863 else 5864 HAVE_CXX14=1 5865 5866$as_echo "#define HAVE_CXX14 1" >>confdefs.h 5867 5868 fi 5869 5870 5871 if test "x${HAVE_CXX14}" = "x1" ; then 5872 5873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5 5874$as_echo_n "checking whether compiler supports -Wall... " >&6; } 5875T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}" 5876T_APPEND_V=-Wall 5877 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 5878 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}" 5879else 5880 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}" 5881fi 5882 5883 5884if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 5885 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 5886else 5887 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 5888fi 5889 5890ac_ext=cpp 5891ac_cpp='$CXXCPP $CPPFLAGS' 5892ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5893ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5894ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5895 5896cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5897/* end confdefs.h. */ 5898 5899 5900int 5901main () 5902{ 5903 5904 return 0; 5905 5906 ; 5907 return 0; 5908} 5909_ACEOF 5910if ac_fn_cxx_try_compile "$LINENO"; then : 5911 je_cv_cxxflags_added=-Wall 5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5913$as_echo "yes" >&6; } 5914else 5915 je_cv_cxxflags_added= 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5917$as_echo "no" >&6; } 5918 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}" 5919 5920fi 5921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5922ac_ext=c 5923ac_cpp='$CPP $CPPFLAGS' 5924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5926ac_compiler_gnu=$ac_cv_c_compiler_gnu 5927 5928if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 5929 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 5930else 5931 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 5932fi 5933 5934 5935 5936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5 5937$as_echo_n "checking whether compiler supports -g3... " >&6; } 5938T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}" 5939T_APPEND_V=-g3 5940 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 5941 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}" 5942else 5943 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}" 5944fi 5945 5946 5947if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 5948 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 5949else 5950 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 5951fi 5952 5953ac_ext=cpp 5954ac_cpp='$CXXCPP $CPPFLAGS' 5955ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5956ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5957ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5958 5959cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5960/* end confdefs.h. */ 5961 5962 5963int 5964main () 5965{ 5966 5967 return 0; 5968 5969 ; 5970 return 0; 5971} 5972_ACEOF 5973if ac_fn_cxx_try_compile "$LINENO"; then : 5974 je_cv_cxxflags_added=-g3 5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5976$as_echo "yes" >&6; } 5977else 5978 je_cv_cxxflags_added= 5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5980$as_echo "no" >&6; } 5981 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}" 5982 5983fi 5984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5985ac_ext=c 5986ac_cpp='$CPP $CPPFLAGS' 5987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5989ac_compiler_gnu=$ac_cv_c_compiler_gnu 5990 5991if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 5992 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 5993else 5994 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 5995fi 5996 5997 5998 5999 SAVED_LIBS="${LIBS}" 6000 T_APPEND_V=-lstdc++ 6001 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 6002 LIBS="${LIBS}${T_APPEND_V}" 6003else 6004 LIBS="${LIBS} ${T_APPEND_V}" 6005fi 6006 6007 6008 6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libstdc++ linkage is compilable" >&5 6010$as_echo_n "checking whether libstdc++ linkage is compilable... " >&6; } 6011if ${je_cv_libstdcxx+:} false; then : 6012 $as_echo_n "(cached) " >&6 6013else 6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6015/* end confdefs.h. */ 6016 6017#include <stdlib.h> 6018 6019int 6020main () 6021{ 6022 6023 int *arr = (int *)malloc(sizeof(int) * 42); 6024 if (arr == NULL) 6025 return 1; 6026 6027 ; 6028 return 0; 6029} 6030_ACEOF 6031if ac_fn_c_try_link "$LINENO"; then : 6032 je_cv_libstdcxx=yes 6033else 6034 je_cv_libstdcxx=no 6035fi 6036rm -f core conftest.err conftest.$ac_objext \ 6037 conftest$ac_exeext conftest.$ac_ext 6038fi 6039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_libstdcxx" >&5 6040$as_echo "$je_cv_libstdcxx" >&6; } 6041 6042 if test "x${je_cv_libstdcxx}" = "xno" ; then 6043 LIBS="${SAVED_LIBS}" 6044 fi 6045 else 6046 enable_cxx="0" 6047 fi 6048fi 6049 6050 6051 6052 6053 6054 6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6056$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6057if ${ac_cv_path_GREP+:} false; then : 6058 $as_echo_n "(cached) " >&6 6059else 6060 if test -z "$GREP"; then 6061 ac_path_GREP_found=false 6062 # Loop through the user's path and test for each of PROGNAME-LIST 6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6064for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6065do 6066 IFS=$as_save_IFS 6067 test -z "$as_dir" && as_dir=. 6068 for ac_prog in grep ggrep; do 6069 for ac_exec_ext in '' $ac_executable_extensions; do 6070 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6071 as_fn_executable_p "$ac_path_GREP" || continue 6072# Check for GNU ac_path_GREP and select it if it is found. 6073 # Check for GNU $ac_path_GREP 6074case `"$ac_path_GREP" --version 2>&1` in 6075*GNU*) 6076 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6077*) 6078 ac_count=0 6079 $as_echo_n 0123456789 >"conftest.in" 6080 while : 6081 do 6082 cat "conftest.in" "conftest.in" >"conftest.tmp" 6083 mv "conftest.tmp" "conftest.in" 6084 cp "conftest.in" "conftest.nl" 6085 $as_echo 'GREP' >> "conftest.nl" 6086 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6088 as_fn_arith $ac_count + 1 && ac_count=$as_val 6089 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6090 # Best one so far, save it but keep looking for a better one 6091 ac_cv_path_GREP="$ac_path_GREP" 6092 ac_path_GREP_max=$ac_count 6093 fi 6094 # 10*(2^10) chars as input seems more than enough 6095 test $ac_count -gt 10 && break 6096 done 6097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6098esac 6099 6100 $ac_path_GREP_found && break 3 6101 done 6102 done 6103 done 6104IFS=$as_save_IFS 6105 if test -z "$ac_cv_path_GREP"; then 6106 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6107 fi 6108else 6109 ac_cv_path_GREP=$GREP 6110fi 6111 6112fi 6113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6114$as_echo "$ac_cv_path_GREP" >&6; } 6115 GREP="$ac_cv_path_GREP" 6116 6117 6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6119$as_echo_n "checking for egrep... " >&6; } 6120if ${ac_cv_path_EGREP+:} false; then : 6121 $as_echo_n "(cached) " >&6 6122else 6123 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6124 then ac_cv_path_EGREP="$GREP -E" 6125 else 6126 if test -z "$EGREP"; then 6127 ac_path_EGREP_found=false 6128 # Loop through the user's path and test for each of PROGNAME-LIST 6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6130for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6131do 6132 IFS=$as_save_IFS 6133 test -z "$as_dir" && as_dir=. 6134 for ac_prog in egrep; do 6135 for ac_exec_ext in '' $ac_executable_extensions; do 6136 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6137 as_fn_executable_p "$ac_path_EGREP" || continue 6138# Check for GNU ac_path_EGREP and select it if it is found. 6139 # Check for GNU $ac_path_EGREP 6140case `"$ac_path_EGREP" --version 2>&1` in 6141*GNU*) 6142 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6143*) 6144 ac_count=0 6145 $as_echo_n 0123456789 >"conftest.in" 6146 while : 6147 do 6148 cat "conftest.in" "conftest.in" >"conftest.tmp" 6149 mv "conftest.tmp" "conftest.in" 6150 cp "conftest.in" "conftest.nl" 6151 $as_echo 'EGREP' >> "conftest.nl" 6152 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6153 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6154 as_fn_arith $ac_count + 1 && ac_count=$as_val 6155 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6156 # Best one so far, save it but keep looking for a better one 6157 ac_cv_path_EGREP="$ac_path_EGREP" 6158 ac_path_EGREP_max=$ac_count 6159 fi 6160 # 10*(2^10) chars as input seems more than enough 6161 test $ac_count -gt 10 && break 6162 done 6163 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6164esac 6165 6166 $ac_path_EGREP_found && break 3 6167 done 6168 done 6169 done 6170IFS=$as_save_IFS 6171 if test -z "$ac_cv_path_EGREP"; then 6172 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6173 fi 6174else 6175 ac_cv_path_EGREP=$EGREP 6176fi 6177 6178 fi 6179fi 6180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6181$as_echo "$ac_cv_path_EGREP" >&6; } 6182 EGREP="$ac_cv_path_EGREP" 6183 6184 6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6186$as_echo_n "checking for ANSI C header files... " >&6; } 6187if ${ac_cv_header_stdc+:} false; then : 6188 $as_echo_n "(cached) " >&6 6189else 6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6191/* end confdefs.h. */ 6192#include <stdlib.h> 6193#include <stdarg.h> 6194#include <string.h> 6195#include <float.h> 6196 6197int 6198main () 6199{ 6200 6201 ; 6202 return 0; 6203} 6204_ACEOF 6205if ac_fn_c_try_compile "$LINENO"; then : 6206 ac_cv_header_stdc=yes 6207else 6208 ac_cv_header_stdc=no 6209fi 6210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6211 6212if test $ac_cv_header_stdc = yes; then 6213 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6215/* end confdefs.h. */ 6216#include <string.h> 6217 6218_ACEOF 6219if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6220 $EGREP "memchr" >/dev/null 2>&1; then : 6221 6222else 6223 ac_cv_header_stdc=no 6224fi 6225rm -f conftest* 6226 6227fi 6228 6229if test $ac_cv_header_stdc = yes; then 6230 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6232/* end confdefs.h. */ 6233#include <stdlib.h> 6234 6235_ACEOF 6236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6237 $EGREP "free" >/dev/null 2>&1; then : 6238 6239else 6240 ac_cv_header_stdc=no 6241fi 6242rm -f conftest* 6243 6244fi 6245 6246if test $ac_cv_header_stdc = yes; then 6247 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6248 if test "$cross_compiling" = yes; then : 6249 : 6250else 6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6252/* end confdefs.h. */ 6253#include <ctype.h> 6254#include <stdlib.h> 6255#if ((' ' & 0x0FF) == 0x020) 6256# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6257# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6258#else 6259# define ISLOWER(c) \ 6260 (('a' <= (c) && (c) <= 'i') \ 6261 || ('j' <= (c) && (c) <= 'r') \ 6262 || ('s' <= (c) && (c) <= 'z')) 6263# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6264#endif 6265 6266#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6267int 6268main () 6269{ 6270 int i; 6271 for (i = 0; i < 256; i++) 6272 if (XOR (islower (i), ISLOWER (i)) 6273 || toupper (i) != TOUPPER (i)) 6274 return 2; 6275 return 0; 6276} 6277_ACEOF 6278if ac_fn_c_try_run "$LINENO"; then : 6279 6280else 6281 ac_cv_header_stdc=no 6282fi 6283rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6284 conftest.$ac_objext conftest.beam conftest.$ac_ext 6285fi 6286 6287fi 6288fi 6289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6290$as_echo "$ac_cv_header_stdc" >&6; } 6291if test $ac_cv_header_stdc = yes; then 6292 6293$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6294 6295fi 6296 6297# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6298for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6299 inttypes.h stdint.h unistd.h 6300do : 6301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6302ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6303" 6304if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6305 cat >>confdefs.h <<_ACEOF 6306#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6307_ACEOF 6308 6309fi 6310 6311done 6312 6313 6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 6315$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 6316if ${ac_cv_c_bigendian+:} false; then : 6317 $as_echo_n "(cached) " >&6 6318else 6319 ac_cv_c_bigendian=unknown 6320 # See if we're dealing with a universal compiler. 6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6322/* end confdefs.h. */ 6323#ifndef __APPLE_CC__ 6324 not a universal capable compiler 6325 #endif 6326 typedef int dummy; 6327 6328_ACEOF 6329if ac_fn_c_try_compile "$LINENO"; then : 6330 6331 # Check for potential -arch flags. It is not universal unless 6332 # there are at least two -arch flags with different values. 6333 ac_arch= 6334 ac_prev= 6335 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 6336 if test -n "$ac_prev"; then 6337 case $ac_word in 6338 i?86 | x86_64 | ppc | ppc64) 6339 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 6340 ac_arch=$ac_word 6341 else 6342 ac_cv_c_bigendian=universal 6343 break 6344 fi 6345 ;; 6346 esac 6347 ac_prev= 6348 elif test "x$ac_word" = "x-arch"; then 6349 ac_prev=arch 6350 fi 6351 done 6352fi 6353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6354 if test $ac_cv_c_bigendian = unknown; then 6355 # See if sys/param.h defines the BYTE_ORDER macro. 6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6357/* end confdefs.h. */ 6358#include <sys/types.h> 6359 #include <sys/param.h> 6360 6361int 6362main () 6363{ 6364#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 6365 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 6366 && LITTLE_ENDIAN) 6367 bogus endian macros 6368 #endif 6369 6370 ; 6371 return 0; 6372} 6373_ACEOF 6374if ac_fn_c_try_compile "$LINENO"; then : 6375 # It does; now see whether it defined to BIG_ENDIAN or not. 6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6377/* end confdefs.h. */ 6378#include <sys/types.h> 6379 #include <sys/param.h> 6380 6381int 6382main () 6383{ 6384#if BYTE_ORDER != BIG_ENDIAN 6385 not big endian 6386 #endif 6387 6388 ; 6389 return 0; 6390} 6391_ACEOF 6392if ac_fn_c_try_compile "$LINENO"; then : 6393 ac_cv_c_bigendian=yes 6394else 6395 ac_cv_c_bigendian=no 6396fi 6397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6398fi 6399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6400 fi 6401 if test $ac_cv_c_bigendian = unknown; then 6402 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6404/* end confdefs.h. */ 6405#include <limits.h> 6406 6407int 6408main () 6409{ 6410#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 6411 bogus endian macros 6412 #endif 6413 6414 ; 6415 return 0; 6416} 6417_ACEOF 6418if ac_fn_c_try_compile "$LINENO"; then : 6419 # It does; now see whether it defined to _BIG_ENDIAN or not. 6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6421/* end confdefs.h. */ 6422#include <limits.h> 6423 6424int 6425main () 6426{ 6427#ifndef _BIG_ENDIAN 6428 not big endian 6429 #endif 6430 6431 ; 6432 return 0; 6433} 6434_ACEOF 6435if ac_fn_c_try_compile "$LINENO"; then : 6436 ac_cv_c_bigendian=yes 6437else 6438 ac_cv_c_bigendian=no 6439fi 6440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6441fi 6442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6443 fi 6444 if test $ac_cv_c_bigendian = unknown; then 6445 # Compile a test program. 6446 if test "$cross_compiling" = yes; then : 6447 # Try to guess by grepping values from an object file. 6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6449/* end confdefs.h. */ 6450short int ascii_mm[] = 6451 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 6452 short int ascii_ii[] = 6453 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 6454 int use_ascii (int i) { 6455 return ascii_mm[i] + ascii_ii[i]; 6456 } 6457 short int ebcdic_ii[] = 6458 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 6459 short int ebcdic_mm[] = 6460 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 6461 int use_ebcdic (int i) { 6462 return ebcdic_mm[i] + ebcdic_ii[i]; 6463 } 6464 extern int foo; 6465 6466int 6467main () 6468{ 6469return use_ascii (foo) == use_ebcdic (foo); 6470 ; 6471 return 0; 6472} 6473_ACEOF 6474if ac_fn_c_try_compile "$LINENO"; then : 6475 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 6476 ac_cv_c_bigendian=yes 6477 fi 6478 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 6479 if test "$ac_cv_c_bigendian" = unknown; then 6480 ac_cv_c_bigendian=no 6481 else 6482 # finding both strings is unlikely to happen, but who knows? 6483 ac_cv_c_bigendian=unknown 6484 fi 6485 fi 6486fi 6487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6488else 6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6490/* end confdefs.h. */ 6491$ac_includes_default 6492int 6493main () 6494{ 6495 6496 /* Are we little or big endian? From Harbison&Steele. */ 6497 union 6498 { 6499 long int l; 6500 char c[sizeof (long int)]; 6501 } u; 6502 u.l = 1; 6503 return u.c[sizeof (long int) - 1] == 1; 6504 6505 ; 6506 return 0; 6507} 6508_ACEOF 6509if ac_fn_c_try_run "$LINENO"; then : 6510 ac_cv_c_bigendian=no 6511else 6512 ac_cv_c_bigendian=yes 6513fi 6514rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6515 conftest.$ac_objext conftest.beam conftest.$ac_ext 6516fi 6517 6518 fi 6519fi 6520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 6521$as_echo "$ac_cv_c_bigendian" >&6; } 6522 case $ac_cv_c_bigendian in #( 6523 yes) 6524 ac_cv_big_endian=1;; #( 6525 no) 6526 ac_cv_big_endian=0 ;; #( 6527 universal) 6528 6529$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 6530 6531 ;; #( 6532 *) 6533 as_fn_error $? "unknown endianness 6534 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 6535 esac 6536 6537if test "x${ac_cv_big_endian}" = "x1" ; then 6538 cat >>confdefs.h <<_ACEOF 6539#define JEMALLOC_BIG_ENDIAN 6540_ACEOF 6541 6542fi 6543 6544if test "x${je_cv_msvc}" = "xyes" -a "x${ac_cv_header_inttypes_h}" = "xno"; then 6545 T_APPEND_V=-I${srcdir}/include/msvc_compat/C99 6546 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 6547 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}" 6548else 6549 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}" 6550fi 6551 6552 6553fi 6554 6555if test "x${je_cv_msvc}" = "xyes" ; then 6556 LG_SIZEOF_PTR=LG_SIZEOF_PTR_WIN 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&5 6558$as_echo "Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&6; } 6559else 6560 # The cast to long int works around a bug in the HP C Compiler 6561# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6562# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6563# This bug is HP SR number 8606223364. 6564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 6565$as_echo_n "checking size of void *... " >&6; } 6566if ${ac_cv_sizeof_void_p+:} false; then : 6567 $as_echo_n "(cached) " >&6 6568else 6569 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 6570 6571else 6572 if test "$ac_cv_type_void_p" = yes; then 6573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6575as_fn_error 77 "cannot compute sizeof (void *) 6576See \`config.log' for more details" "$LINENO" 5; } 6577 else 6578 ac_cv_sizeof_void_p=0 6579 fi 6580fi 6581 6582fi 6583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 6584$as_echo "$ac_cv_sizeof_void_p" >&6; } 6585 6586 6587 6588cat >>confdefs.h <<_ACEOF 6589#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 6590_ACEOF 6591 6592 6593 if test "x${ac_cv_sizeof_void_p}" = "x8" ; then 6594 LG_SIZEOF_PTR=3 6595 elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then 6596 LG_SIZEOF_PTR=2 6597 else 6598 as_fn_error $? "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5 6599 fi 6600fi 6601cat >>confdefs.h <<_ACEOF 6602#define LG_SIZEOF_PTR $LG_SIZEOF_PTR 6603_ACEOF 6604 6605 6606# The cast to long int works around a bug in the HP C Compiler 6607# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6608# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6609# This bug is HP SR number 8606223364. 6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 6611$as_echo_n "checking size of int... " >&6; } 6612if ${ac_cv_sizeof_int+:} false; then : 6613 $as_echo_n "(cached) " >&6 6614else 6615 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 6616 6617else 6618 if test "$ac_cv_type_int" = yes; then 6619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6620$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6621as_fn_error 77 "cannot compute sizeof (int) 6622See \`config.log' for more details" "$LINENO" 5; } 6623 else 6624 ac_cv_sizeof_int=0 6625 fi 6626fi 6627 6628fi 6629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 6630$as_echo "$ac_cv_sizeof_int" >&6; } 6631 6632 6633 6634cat >>confdefs.h <<_ACEOF 6635#define SIZEOF_INT $ac_cv_sizeof_int 6636_ACEOF 6637 6638 6639if test "x${ac_cv_sizeof_int}" = "x8" ; then 6640 LG_SIZEOF_INT=3 6641elif test "x${ac_cv_sizeof_int}" = "x4" ; then 6642 LG_SIZEOF_INT=2 6643else 6644 as_fn_error $? "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5 6645fi 6646cat >>confdefs.h <<_ACEOF 6647#define LG_SIZEOF_INT $LG_SIZEOF_INT 6648_ACEOF 6649 6650 6651# The cast to long int works around a bug in the HP C Compiler 6652# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6653# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6654# This bug is HP SR number 8606223364. 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 6656$as_echo_n "checking size of long... " >&6; } 6657if ${ac_cv_sizeof_long+:} false; then : 6658 $as_echo_n "(cached) " >&6 6659else 6660 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 6661 6662else 6663 if test "$ac_cv_type_long" = yes; then 6664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6666as_fn_error 77 "cannot compute sizeof (long) 6667See \`config.log' for more details" "$LINENO" 5; } 6668 else 6669 ac_cv_sizeof_long=0 6670 fi 6671fi 6672 6673fi 6674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 6675$as_echo "$ac_cv_sizeof_long" >&6; } 6676 6677 6678 6679cat >>confdefs.h <<_ACEOF 6680#define SIZEOF_LONG $ac_cv_sizeof_long 6681_ACEOF 6682 6683 6684if test "x${ac_cv_sizeof_long}" = "x8" ; then 6685 LG_SIZEOF_LONG=3 6686elif test "x${ac_cv_sizeof_long}" = "x4" ; then 6687 LG_SIZEOF_LONG=2 6688else 6689 as_fn_error $? "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5 6690fi 6691cat >>confdefs.h <<_ACEOF 6692#define LG_SIZEOF_LONG $LG_SIZEOF_LONG 6693_ACEOF 6694 6695 6696# The cast to long int works around a bug in the HP C Compiler 6697# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6698# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6699# This bug is HP SR number 8606223364. 6700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 6701$as_echo_n "checking size of long long... " >&6; } 6702if ${ac_cv_sizeof_long_long+:} false; then : 6703 $as_echo_n "(cached) " >&6 6704else 6705 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 6706 6707else 6708 if test "$ac_cv_type_long_long" = yes; then 6709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6711as_fn_error 77 "cannot compute sizeof (long long) 6712See \`config.log' for more details" "$LINENO" 5; } 6713 else 6714 ac_cv_sizeof_long_long=0 6715 fi 6716fi 6717 6718fi 6719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 6720$as_echo "$ac_cv_sizeof_long_long" >&6; } 6721 6722 6723 6724cat >>confdefs.h <<_ACEOF 6725#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 6726_ACEOF 6727 6728 6729if test "x${ac_cv_sizeof_long_long}" = "x8" ; then 6730 LG_SIZEOF_LONG_LONG=3 6731elif test "x${ac_cv_sizeof_long_long}" = "x4" ; then 6732 LG_SIZEOF_LONG_LONG=2 6733else 6734 as_fn_error $? "Unsupported long long size: ${ac_cv_sizeof_long_long}" "$LINENO" 5 6735fi 6736cat >>confdefs.h <<_ACEOF 6737#define LG_SIZEOF_LONG_LONG $LG_SIZEOF_LONG_LONG 6738_ACEOF 6739 6740 6741# The cast to long int works around a bug in the HP C Compiler 6742# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6743# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6744# This bug is HP SR number 8606223364. 6745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5 6746$as_echo_n "checking size of intmax_t... " >&6; } 6747if ${ac_cv_sizeof_intmax_t+:} false; then : 6748 $as_echo_n "(cached) " >&6 6749else 6750 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then : 6751 6752else 6753 if test "$ac_cv_type_intmax_t" = yes; then 6754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6756as_fn_error 77 "cannot compute sizeof (intmax_t) 6757See \`config.log' for more details" "$LINENO" 5; } 6758 else 6759 ac_cv_sizeof_intmax_t=0 6760 fi 6761fi 6762 6763fi 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5 6765$as_echo "$ac_cv_sizeof_intmax_t" >&6; } 6766 6767 6768 6769cat >>confdefs.h <<_ACEOF 6770#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t 6771_ACEOF 6772 6773 6774if test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then 6775 LG_SIZEOF_INTMAX_T=4 6776elif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then 6777 LG_SIZEOF_INTMAX_T=3 6778elif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then 6779 LG_SIZEOF_INTMAX_T=2 6780else 6781 as_fn_error $? "Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5 6782fi 6783cat >>confdefs.h <<_ACEOF 6784#define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T 6785_ACEOF 6786 6787 6788# Make sure we can run config.sub. 6789$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6790 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6791 6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6793$as_echo_n "checking build system type... " >&6; } 6794if ${ac_cv_build+:} false; then : 6795 $as_echo_n "(cached) " >&6 6796else 6797 ac_build_alias=$build_alias 6798test "x$ac_build_alias" = x && 6799 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6800test "x$ac_build_alias" = x && 6801 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6802ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6803 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6804 6805fi 6806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6807$as_echo "$ac_cv_build" >&6; } 6808case $ac_cv_build in 6809*-*-*) ;; 6810*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6811esac 6812build=$ac_cv_build 6813ac_save_IFS=$IFS; IFS='-' 6814set x $ac_cv_build 6815shift 6816build_cpu=$1 6817build_vendor=$2 6818shift; shift 6819# Remember, the first character of IFS is used to create $*, 6820# except with old shells: 6821build_os=$* 6822IFS=$ac_save_IFS 6823case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6824 6825 6826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6827$as_echo_n "checking host system type... " >&6; } 6828if ${ac_cv_host+:} false; then : 6829 $as_echo_n "(cached) " >&6 6830else 6831 if test "x$host_alias" = x; then 6832 ac_cv_host=$ac_cv_build 6833else 6834 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6835 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6836fi 6837 6838fi 6839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6840$as_echo "$ac_cv_host" >&6; } 6841case $ac_cv_host in 6842*-*-*) ;; 6843*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6844esac 6845host=$ac_cv_host 6846ac_save_IFS=$IFS; IFS='-' 6847set x $ac_cv_host 6848shift 6849host_cpu=$1 6850host_vendor=$2 6851shift; shift 6852# Remember, the first character of IFS is used to create $*, 6853# except with old shells: 6854host_os=$* 6855IFS=$ac_save_IFS 6856case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6857 6858 6859CPU_SPINWAIT="" 6860case "${host_cpu}" in 6861 i686|x86_64) 6862 HAVE_CPU_SPINWAIT=1 6863 if test "x${je_cv_msvc}" = "xyes" ; then 6864 if ${je_cv_pause_msvc+:} false; then : 6865 $as_echo_n "(cached) " >&6 6866else 6867 6868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction MSVC is compilable" >&5 6869$as_echo_n "checking whether pause instruction MSVC is compilable... " >&6; } 6870if ${je_cv_pause_msvc+:} false; then : 6871 $as_echo_n "(cached) " >&6 6872else 6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6874/* end confdefs.h. */ 6875 6876int 6877main () 6878{ 6879_mm_pause(); return 0; 6880 ; 6881 return 0; 6882} 6883_ACEOF 6884if ac_fn_c_try_link "$LINENO"; then : 6885 je_cv_pause_msvc=yes 6886else 6887 je_cv_pause_msvc=no 6888fi 6889rm -f core conftest.err conftest.$ac_objext \ 6890 conftest$ac_exeext conftest.$ac_ext 6891fi 6892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause_msvc" >&5 6893$as_echo "$je_cv_pause_msvc" >&6; } 6894 6895fi 6896 6897 if test "x${je_cv_pause_msvc}" = "xyes" ; then 6898 CPU_SPINWAIT='_mm_pause()' 6899 fi 6900 else 6901 if ${je_cv_pause+:} false; then : 6902 $as_echo_n "(cached) " >&6 6903else 6904 6905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction is compilable" >&5 6906$as_echo_n "checking whether pause instruction is compilable... " >&6; } 6907if ${je_cv_pause+:} false; then : 6908 $as_echo_n "(cached) " >&6 6909else 6910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6911/* end confdefs.h. */ 6912 6913int 6914main () 6915{ 6916__asm__ volatile("pause"); return 0; 6917 ; 6918 return 0; 6919} 6920_ACEOF 6921if ac_fn_c_try_link "$LINENO"; then : 6922 je_cv_pause=yes 6923else 6924 je_cv_pause=no 6925fi 6926rm -f core conftest.err conftest.$ac_objext \ 6927 conftest$ac_exeext conftest.$ac_ext 6928fi 6929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause" >&5 6930$as_echo "$je_cv_pause" >&6; } 6931 6932fi 6933 6934 if test "x${je_cv_pause}" = "xyes" ; then 6935 CPU_SPINWAIT='__asm__ volatile("pause")' 6936 fi 6937 fi 6938 ;; 6939 *) 6940 HAVE_CPU_SPINWAIT=0 6941 ;; 6942esac 6943cat >>confdefs.h <<_ACEOF 6944#define HAVE_CPU_SPINWAIT $HAVE_CPU_SPINWAIT 6945_ACEOF 6946 6947cat >>confdefs.h <<_ACEOF 6948#define CPU_SPINWAIT $CPU_SPINWAIT 6949_ACEOF 6950 6951 6952 6953# Check whether --with-lg_vaddr was given. 6954if test "${with_lg_vaddr+set}" = set; then : 6955 withval=$with_lg_vaddr; LG_VADDR="$with_lg_vaddr" 6956else 6957 LG_VADDR="detect" 6958fi 6959 6960 6961case "${host_cpu}" in 6962 aarch64) 6963 if test "x$LG_VADDR" = "xdetect"; then 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5 6965$as_echo_n "checking number of significant virtual address bits... " >&6; } 6966 if test "x${LG_SIZEOF_PTR}" = "x2" ; then 6967 #aarch64 ILP32 6968 LG_VADDR=32 6969 else 6970 #aarch64 LP64 6971 LG_VADDR=48 6972 fi 6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5 6974$as_echo "$LG_VADDR" >&6; } 6975 fi 6976 ;; 6977 x86_64) 6978 if test "x$LG_VADDR" = "xdetect"; then 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5 6980$as_echo_n "checking number of significant virtual address bits... " >&6; } 6981if ${je_cv_lg_vaddr+:} false; then : 6982 $as_echo_n "(cached) " >&6 6983else 6984 if test "$cross_compiling" = yes; then : 6985 je_cv_lg_vaddr=57 6986else 6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6988/* end confdefs.h. */ 6989 6990#include <stdio.h> 6991#ifdef _WIN32 6992#include <limits.h> 6993#include <intrin.h> 6994typedef unsigned __int32 uint32_t; 6995#else 6996#include <stdint.h> 6997#endif 6998 6999int 7000main () 7001{ 7002 7003 uint32_t r[4]; 7004 uint32_t eax_in = 0x80000008U; 7005#ifdef _WIN32 7006 __cpuid((int *)r, (int)eax_in); 7007#else 7008 asm volatile ("cpuid" 7009 : "=a" (r[0]), "=b" (r[1]), "=c" (r[2]), "=d" (r[3]) 7010 : "a" (eax_in), "c" (0) 7011 ); 7012#endif 7013 uint32_t eax_out = r[0]; 7014 uint32_t vaddr = ((eax_out & 0x0000ff00U) >> 8); 7015 FILE *f = fopen("conftest.out", "w"); 7016 if (f == NULL) { 7017 return 1; 7018 } 7019 if (vaddr > (sizeof(void *) << 3)) { 7020 vaddr = sizeof(void *) << 3; 7021 } 7022 fprintf(f, "%u", vaddr); 7023 fclose(f); 7024 return 0; 7025 7026 ; 7027 return 0; 7028} 7029_ACEOF 7030if ac_fn_c_try_run "$LINENO"; then : 7031 je_cv_lg_vaddr=`cat conftest.out` 7032else 7033 je_cv_lg_vaddr=error 7034fi 7035rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7036 conftest.$ac_objext conftest.beam conftest.$ac_ext 7037fi 7038 7039fi 7040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_vaddr" >&5 7041$as_echo "$je_cv_lg_vaddr" >&6; } 7042 if test "x${je_cv_lg_vaddr}" != "x" ; then 7043 LG_VADDR="${je_cv_lg_vaddr}" 7044 fi 7045 if test "x${LG_VADDR}" != "xerror" ; then 7046 cat >>confdefs.h <<_ACEOF 7047#define LG_VADDR $LG_VADDR 7048_ACEOF 7049 7050 else 7051 as_fn_error $? "cannot determine number of significant virtual address bits" "$LINENO" 5 7052 fi 7053 fi 7054 ;; 7055 *) 7056 if test "x$LG_VADDR" = "xdetect"; then 7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5 7058$as_echo_n "checking number of significant virtual address bits... " >&6; } 7059 if test "x${LG_SIZEOF_PTR}" = "x3" ; then 7060 LG_VADDR=64 7061 elif test "x${LG_SIZEOF_PTR}" = "x2" ; then 7062 LG_VADDR=32 7063 elif test "x${LG_SIZEOF_PTR}" = "xLG_SIZEOF_PTR_WIN" ; then 7064 LG_VADDR="(1U << (LG_SIZEOF_PTR_WIN+3))" 7065 else 7066 as_fn_error $? "Unsupported lg(pointer size): ${LG_SIZEOF_PTR}" "$LINENO" 5 7067 fi 7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5 7069$as_echo "$LG_VADDR" >&6; } 7070 fi 7071 ;; 7072esac 7073cat >>confdefs.h <<_ACEOF 7074#define LG_VADDR $LG_VADDR 7075_ACEOF 7076 7077 7078LD_PRELOAD_VAR="LD_PRELOAD" 7079so="so" 7080importlib="${so}" 7081o="$ac_objext" 7082a="a" 7083exe="$ac_exeext" 7084libprefix="lib" 7085link_whole_archive="0" 7086DSO_LDFLAGS='-shared -Wl,-soname,$(@F)' 7087RPATH='-Wl,-rpath,$(1)' 7088SOREV="${so}.${rev}" 7089PIC_CFLAGS='-fPIC -DPIC' 7090CTARGET='-o $@' 7091LDTARGET='-o $@' 7092TEST_LD_MODE= 7093EXTRA_LDFLAGS= 7094ARFLAGS='crus' 7095AROUT=' $@' 7096CC_MM=1 7097 7098if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then 7099 TEST_LD_MODE='-dynamic' 7100fi 7101 7102if test "x${je_cv_cray}" = "xyes" ; then 7103 CC_MM= 7104fi 7105 7106 7107 7108 7109if test -n "$ac_tool_prefix"; then 7110 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7111set dummy ${ac_tool_prefix}ar; ac_word=$2 7112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7113$as_echo_n "checking for $ac_word... " >&6; } 7114if ${ac_cv_prog_AR+:} false; then : 7115 $as_echo_n "(cached) " >&6 7116else 7117 if test -n "$AR"; then 7118 ac_cv_prog_AR="$AR" # Let the user override the test. 7119else 7120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7121for as_dir in $PATH 7122do 7123 IFS=$as_save_IFS 7124 test -z "$as_dir" && as_dir=. 7125 for ac_exec_ext in '' $ac_executable_extensions; do 7126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7127 ac_cv_prog_AR="${ac_tool_prefix}ar" 7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7129 break 2 7130 fi 7131done 7132 done 7133IFS=$as_save_IFS 7134 7135fi 7136fi 7137AR=$ac_cv_prog_AR 7138if test -n "$AR"; then 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7140$as_echo "$AR" >&6; } 7141else 7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7143$as_echo "no" >&6; } 7144fi 7145 7146 7147fi 7148if test -z "$ac_cv_prog_AR"; then 7149 ac_ct_AR=$AR 7150 # Extract the first word of "ar", so it can be a program name with args. 7151set dummy ar; ac_word=$2 7152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7153$as_echo_n "checking for $ac_word... " >&6; } 7154if ${ac_cv_prog_ac_ct_AR+:} false; then : 7155 $as_echo_n "(cached) " >&6 7156else 7157 if test -n "$ac_ct_AR"; then 7158 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7159else 7160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7161for as_dir in $PATH 7162do 7163 IFS=$as_save_IFS 7164 test -z "$as_dir" && as_dir=. 7165 for ac_exec_ext in '' $ac_executable_extensions; do 7166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7167 ac_cv_prog_ac_ct_AR="ar" 7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7169 break 2 7170 fi 7171done 7172 done 7173IFS=$as_save_IFS 7174 7175fi 7176fi 7177ac_ct_AR=$ac_cv_prog_ac_ct_AR 7178if test -n "$ac_ct_AR"; then 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7180$as_echo "$ac_ct_AR" >&6; } 7181else 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7183$as_echo "no" >&6; } 7184fi 7185 7186 if test "x$ac_ct_AR" = x; then 7187 AR=":" 7188 else 7189 case $cross_compiling:$ac_tool_warned in 7190yes:) 7191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7193ac_tool_warned=yes ;; 7194esac 7195 AR=$ac_ct_AR 7196 fi 7197else 7198 AR="$ac_cv_prog_AR" 7199fi 7200 7201 7202 7203 7204 7205if test -n "$ac_tool_prefix"; then 7206 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. 7207set dummy ${ac_tool_prefix}nm; ac_word=$2 7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7209$as_echo_n "checking for $ac_word... " >&6; } 7210if ${ac_cv_prog_NM+:} false; then : 7211 $as_echo_n "(cached) " >&6 7212else 7213 if test -n "$NM"; then 7214 ac_cv_prog_NM="$NM" # Let the user override the test. 7215else 7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7217for as_dir in $PATH 7218do 7219 IFS=$as_save_IFS 7220 test -z "$as_dir" && as_dir=. 7221 for ac_exec_ext in '' $ac_executable_extensions; do 7222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7223 ac_cv_prog_NM="${ac_tool_prefix}nm" 7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7225 break 2 7226 fi 7227done 7228 done 7229IFS=$as_save_IFS 7230 7231fi 7232fi 7233NM=$ac_cv_prog_NM 7234if test -n "$NM"; then 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 7236$as_echo "$NM" >&6; } 7237else 7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7239$as_echo "no" >&6; } 7240fi 7241 7242 7243fi 7244if test -z "$ac_cv_prog_NM"; then 7245 ac_ct_NM=$NM 7246 # Extract the first word of "nm", so it can be a program name with args. 7247set dummy nm; ac_word=$2 7248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7249$as_echo_n "checking for $ac_word... " >&6; } 7250if ${ac_cv_prog_ac_ct_NM+:} false; then : 7251 $as_echo_n "(cached) " >&6 7252else 7253 if test -n "$ac_ct_NM"; then 7254 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 7255else 7256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7257for as_dir in $PATH 7258do 7259 IFS=$as_save_IFS 7260 test -z "$as_dir" && as_dir=. 7261 for ac_exec_ext in '' $ac_executable_extensions; do 7262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7263 ac_cv_prog_ac_ct_NM="nm" 7264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7265 break 2 7266 fi 7267done 7268 done 7269IFS=$as_save_IFS 7270 7271fi 7272fi 7273ac_ct_NM=$ac_cv_prog_ac_ct_NM 7274if test -n "$ac_ct_NM"; then 7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 7276$as_echo "$ac_ct_NM" >&6; } 7277else 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7279$as_echo "no" >&6; } 7280fi 7281 7282 if test "x$ac_ct_NM" = x; then 7283 NM=":" 7284 else 7285 case $cross_compiling:$ac_tool_warned in 7286yes:) 7287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7289ac_tool_warned=yes ;; 7290esac 7291 NM=$ac_ct_NM 7292 fi 7293else 7294 NM="$ac_cv_prog_NM" 7295fi 7296 7297 7298for ac_prog in gawk mawk nawk awk 7299do 7300 # Extract the first word of "$ac_prog", so it can be a program name with args. 7301set dummy $ac_prog; ac_word=$2 7302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7303$as_echo_n "checking for $ac_word... " >&6; } 7304if ${ac_cv_prog_AWK+:} false; then : 7305 $as_echo_n "(cached) " >&6 7306else 7307 if test -n "$AWK"; then 7308 ac_cv_prog_AWK="$AWK" # Let the user override the test. 7309else 7310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7311for as_dir in $PATH 7312do 7313 IFS=$as_save_IFS 7314 test -z "$as_dir" && as_dir=. 7315 for ac_exec_ext in '' $ac_executable_extensions; do 7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7317 ac_cv_prog_AWK="$ac_prog" 7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7319 break 2 7320 fi 7321done 7322 done 7323IFS=$as_save_IFS 7324 7325fi 7326fi 7327AWK=$ac_cv_prog_AWK 7328if test -n "$AWK"; then 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 7330$as_echo "$AWK" >&6; } 7331else 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7333$as_echo "no" >&6; } 7334fi 7335 7336 7337 test -n "$AWK" && break 7338done 7339 7340 7341default_retain="0" 7342maps_coalesce="1" 7343DUMP_SYMS="${NM} -a" 7344SYM_PREFIX="" 7345case "${host}" in 7346 *-*-darwin* | *-*-ios*) 7347 abi="macho" 7348 RPATH="" 7349 LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES" 7350 so="dylib" 7351 importlib="${so}" 7352 force_tls="0" 7353 DSO_LDFLAGS='-shared -Wl,-install_name,$(LIBDIR)/$(@F)' 7354 SOREV="${rev}.${so}" 7355 sbrk_deprecated="1" 7356 SYM_PREFIX="_" 7357 ;; 7358 *-*-freebsd*) 7359 abi="elf" 7360 $as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT " >>confdefs.h 7361 7362 force_lazy_lock="1" 7363 ;; 7364 *-*-dragonfly*) 7365 abi="elf" 7366 ;; 7367 *-*-openbsd*) 7368 abi="elf" 7369 force_tls="0" 7370 ;; 7371 *-*-bitrig*) 7372 abi="elf" 7373 ;; 7374 *-*-linux-android) 7375 T_APPEND_V=-D_GNU_SOURCE 7376 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 7377 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}" 7378else 7379 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}" 7380fi 7381 7382 7383 abi="elf" 7384 $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS " >>confdefs.h 7385 7386 $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h 7387 7388 $as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY " >>confdefs.h 7389 7390 $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h 7391 7392 $as_echo "#define JEMALLOC_C11_ATOMICS 1" >>confdefs.h 7393 7394 force_tls="0" 7395 if test "${LG_SIZEOF_PTR}" = "3"; then 7396 default_retain="1" 7397 fi 7398 ;; 7399 *-*-linux*) 7400 T_APPEND_V=-D_GNU_SOURCE 7401 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 7402 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}" 7403else 7404 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}" 7405fi 7406 7407 7408 abi="elf" 7409 $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS " >>confdefs.h 7410 7411 $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h 7412 7413 $as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY " >>confdefs.h 7414 7415 $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h 7416 7417 $as_echo "#define JEMALLOC_USE_CXX_THROW " >>confdefs.h 7418 7419 if test "${LG_SIZEOF_PTR}" = "3"; then 7420 default_retain="1" 7421 fi 7422 ;; 7423 *-*-kfreebsd*) 7424 T_APPEND_V=-D_GNU_SOURCE 7425 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 7426 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}" 7427else 7428 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}" 7429fi 7430 7431 7432 abi="elf" 7433 $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h 7434 7435 $as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT " >>confdefs.h 7436 7437 $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h 7438 7439 $as_echo "#define JEMALLOC_USE_CXX_THROW " >>confdefs.h 7440 7441 ;; 7442 *-*-netbsd*) 7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5 7444$as_echo_n "checking ABI... " >&6; } 7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7446/* end confdefs.h. */ 7447#ifdef __ELF__ 7448/* ELF */ 7449#else 7450#error aout 7451#endif 7452 7453int 7454main () 7455{ 7456 7457 ; 7458 return 0; 7459} 7460_ACEOF 7461if ac_fn_c_try_compile "$LINENO"; then : 7462 abi="elf" 7463else 7464 abi="aout" 7465fi 7466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5 7468$as_echo "$abi" >&6; } 7469 ;; 7470 *-*-solaris2*) 7471 abi="elf" 7472 RPATH='-Wl,-R,$(1)' 7473 T_APPEND_V=-D_POSIX_PTHREAD_SEMANTICS 7474 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 7475 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}" 7476else 7477 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}" 7478fi 7479 7480 7481 T_APPEND_V=-lposix4 -lsocket -lnsl 7482 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 7483 LIBS="${LIBS}${T_APPEND_V}" 7484else 7485 LIBS="${LIBS} ${T_APPEND_V}" 7486fi 7487 7488 7489 ;; 7490 *-ibm-aix*) 7491 if test "${LG_SIZEOF_PTR}" = "3"; then 7492 LD_PRELOAD_VAR="LDR_PRELOAD64" 7493 else 7494 LD_PRELOAD_VAR="LDR_PRELOAD" 7495 fi 7496 abi="xcoff" 7497 ;; 7498 *-*-mingw* | *-*-cygwin*) 7499 abi="pecoff" 7500 force_tls="0" 7501 maps_coalesce="0" 7502 RPATH="" 7503 so="dll" 7504 if test "x$je_cv_msvc" = "xyes" ; then 7505 importlib="lib" 7506 DSO_LDFLAGS="-LD" 7507 EXTRA_LDFLAGS="-link -DEBUG" 7508 CTARGET='-Fo$@' 7509 LDTARGET='-Fe$@' 7510 AR='lib' 7511 ARFLAGS='-nologo -out:' 7512 AROUT='$@' 7513 CC_MM= 7514 else 7515 importlib="${so}" 7516 DSO_LDFLAGS="-shared" 7517 link_whole_archive="1" 7518 fi 7519 case "${host}" in 7520 *-*-cygwin*) 7521 DUMP_SYMS="dumpbin /SYMBOLS" 7522 ;; 7523 *) 7524 ;; 7525 esac 7526 a="lib" 7527 libprefix="" 7528 SOREV="${so}" 7529 PIC_CFLAGS="" 7530 ;; 7531 *) 7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5 7533$as_echo "Unsupported operating system: ${host}" >&6; } 7534 abi="elf" 7535 ;; 7536esac 7537 7538JEMALLOC_USABLE_SIZE_CONST=const 7539for ac_header in malloc.h 7540do : 7541 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" 7542if test "x$ac_cv_header_malloc_h" = xyes; then : 7543 cat >>confdefs.h <<_ACEOF 7544#define HAVE_MALLOC_H 1 7545_ACEOF 7546 7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc_usable_size definition can use const argument" >&5 7548$as_echo_n "checking whether malloc_usable_size definition can use const argument... " >&6; } 7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7550/* end confdefs.h. */ 7551#include <malloc.h> 7552 #include <stddef.h> 7553 size_t malloc_usable_size(const void *ptr); 7554 7555int 7556main () 7557{ 7558 7559 ; 7560 return 0; 7561} 7562_ACEOF 7563if ac_fn_c_try_compile "$LINENO"; then : 7564 7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7566$as_echo "yes" >&6; } 7567 7568else 7569 7570 JEMALLOC_USABLE_SIZE_CONST= 7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7572$as_echo "no" >&6; } 7573 7574fi 7575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7576 7577fi 7578 7579done 7580 7581cat >>confdefs.h <<_ACEOF 7582#define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST 7583_ACEOF 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5 7609$as_echo_n "checking for library containing log... " >&6; } 7610if ${ac_cv_search_log+:} false; then : 7611 $as_echo_n "(cached) " >&6 7612else 7613 ac_func_search_save_LIBS=$LIBS 7614cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7615/* end confdefs.h. */ 7616 7617/* Override any GCC internal prototype to avoid an error. 7618 Use char because int might match the return type of a GCC 7619 builtin and then its argument prototype would still apply. */ 7620#ifdef __cplusplus 7621extern "C" 7622#endif 7623char log (); 7624int 7625main () 7626{ 7627return log (); 7628 ; 7629 return 0; 7630} 7631_ACEOF 7632for ac_lib in '' m; do 7633 if test -z "$ac_lib"; then 7634 ac_res="none required" 7635 else 7636 ac_res=-l$ac_lib 7637 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7638 fi 7639 if ac_fn_c_try_link "$LINENO"; then : 7640 ac_cv_search_log=$ac_res 7641fi 7642rm -f core conftest.err conftest.$ac_objext \ 7643 conftest$ac_exeext 7644 if ${ac_cv_search_log+:} false; then : 7645 break 7646fi 7647done 7648if ${ac_cv_search_log+:} false; then : 7649 7650else 7651 ac_cv_search_log=no 7652fi 7653rm conftest.$ac_ext 7654LIBS=$ac_func_search_save_LIBS 7655fi 7656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5 7657$as_echo "$ac_cv_search_log" >&6; } 7658ac_res=$ac_cv_search_log 7659if test "$ac_res" != no; then : 7660 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7661 7662else 7663 as_fn_error $? "Missing math functions" "$LINENO" 5 7664fi 7665 7666if test "x$ac_cv_search_log" != "xnone required" ; then 7667 LM="$ac_cv_search_log" 7668else 7669 LM= 7670fi 7671 7672 7673 7674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5 7675$as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; } 7676if ${je_cv_attribute+:} false; then : 7677 $as_echo_n "(cached) " >&6 7678else 7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7680/* end confdefs.h. */ 7681static __attribute__((unused)) void foo(void){} 7682int 7683main () 7684{ 7685 7686 ; 7687 return 0; 7688} 7689_ACEOF 7690if ac_fn_c_try_link "$LINENO"; then : 7691 je_cv_attribute=yes 7692else 7693 je_cv_attribute=no 7694fi 7695rm -f core conftest.err conftest.$ac_objext \ 7696 conftest$ac_exeext conftest.$ac_ext 7697fi 7698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5 7699$as_echo "$je_cv_attribute" >&6; } 7700 7701if test "x${je_cv_attribute}" = "xyes" ; then 7702 $as_echo "#define JEMALLOC_HAVE_ATTR " >>confdefs.h 7703 7704 if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then 7705 7706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5 7707$as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; } 7708T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 7709T_APPEND_V=-fvisibility=hidden 7710 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 7711 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 7712else 7713 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 7714fi 7715 7716 7717if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 7718 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 7719else 7720 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 7721fi 7722 7723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7724/* end confdefs.h. */ 7725 7726 7727int 7728main () 7729{ 7730 7731 return 0; 7732 7733 ; 7734 return 0; 7735} 7736_ACEOF 7737if ac_fn_c_try_compile "$LINENO"; then : 7738 je_cv_cflags_added=-fvisibility=hidden 7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7740$as_echo "yes" >&6; } 7741else 7742 je_cv_cflags_added= 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7744$as_echo "no" >&6; } 7745 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 7746 7747fi 7748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7749if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 7750 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 7751else 7752 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 7753fi 7754 7755 7756 7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5 7758$as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; } 7759T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}" 7760T_APPEND_V=-fvisibility=hidden 7761 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 7762 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}" 7763else 7764 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}" 7765fi 7766 7767 7768if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 7769 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 7770else 7771 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 7772fi 7773 7774ac_ext=cpp 7775ac_cpp='$CXXCPP $CPPFLAGS' 7776ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7777ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7778ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7779 7780cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7781/* end confdefs.h. */ 7782 7783 7784int 7785main () 7786{ 7787 7788 return 0; 7789 7790 ; 7791 return 0; 7792} 7793_ACEOF 7794if ac_fn_cxx_try_compile "$LINENO"; then : 7795 je_cv_cxxflags_added=-fvisibility=hidden 7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7797$as_echo "yes" >&6; } 7798else 7799 je_cv_cxxflags_added= 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7801$as_echo "no" >&6; } 7802 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}" 7803 7804fi 7805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7806ac_ext=c 7807ac_cpp='$CPP $CPPFLAGS' 7808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7810ac_compiler_gnu=$ac_cv_c_compiler_gnu 7811 7812if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 7813 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 7814else 7815 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 7816fi 7817 7818 7819 fi 7820fi 7821SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 7822 7823 7824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 7825$as_echo_n "checking whether compiler supports -Werror... " >&6; } 7826T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 7827T_APPEND_V=-Werror 7828 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 7829 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 7830else 7831 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 7832fi 7833 7834 7835if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 7836 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 7837else 7838 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 7839fi 7840 7841cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7842/* end confdefs.h. */ 7843 7844 7845int 7846main () 7847{ 7848 7849 return 0; 7850 7851 ; 7852 return 0; 7853} 7854_ACEOF 7855if ac_fn_c_try_compile "$LINENO"; then : 7856 je_cv_cflags_added=-Werror 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7858$as_echo "yes" >&6; } 7859else 7860 je_cv_cflags_added= 7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7862$as_echo "no" >&6; } 7863 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 7864 7865fi 7866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7867if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 7868 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 7869else 7870 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 7871fi 7872 7873 7874 7875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5 7876$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; } 7877T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 7878T_APPEND_V=-herror_on_warning 7879 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 7880 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 7881else 7882 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 7883fi 7884 7885 7886if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 7887 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 7888else 7889 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 7890fi 7891 7892cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7893/* end confdefs.h. */ 7894 7895 7896int 7897main () 7898{ 7899 7900 return 0; 7901 7902 ; 7903 return 0; 7904} 7905_ACEOF 7906if ac_fn_c_try_compile "$LINENO"; then : 7907 je_cv_cflags_added=-herror_on_warning 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7909$as_echo "yes" >&6; } 7910else 7911 je_cv_cflags_added= 7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7913$as_echo "no" >&6; } 7914 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 7915 7916fi 7917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7918if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 7919 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 7920else 7921 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 7922fi 7923 7924 7925 7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5 7927$as_echo_n "checking whether tls_model attribute is compilable... " >&6; } 7928if ${je_cv_tls_model+:} false; then : 7929 $as_echo_n "(cached) " >&6 7930else 7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7932/* end confdefs.h. */ 7933 7934int 7935main () 7936{ 7937static __thread int 7938 __attribute__((tls_model("initial-exec"), unused)) foo; 7939 foo = 0; 7940 ; 7941 return 0; 7942} 7943_ACEOF 7944if ac_fn_c_try_link "$LINENO"; then : 7945 je_cv_tls_model=yes 7946else 7947 je_cv_tls_model=no 7948fi 7949rm -f core conftest.err conftest.$ac_objext \ 7950 conftest$ac_exeext conftest.$ac_ext 7951fi 7952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5 7953$as_echo "$je_cv_tls_model" >&6; } 7954 7955CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}" 7956if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 7957 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 7958else 7959 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 7960fi 7961 7962 7963 7964SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 7965 7966 7967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 7968$as_echo_n "checking whether compiler supports -Werror... " >&6; } 7969T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 7970T_APPEND_V=-Werror 7971 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 7972 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 7973else 7974 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 7975fi 7976 7977 7978if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 7979 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 7980else 7981 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 7982fi 7983 7984cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7985/* end confdefs.h. */ 7986 7987 7988int 7989main () 7990{ 7991 7992 return 0; 7993 7994 ; 7995 return 0; 7996} 7997_ACEOF 7998if ac_fn_c_try_compile "$LINENO"; then : 7999 je_cv_cflags_added=-Werror 8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8001$as_echo "yes" >&6; } 8002else 8003 je_cv_cflags_added= 8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8005$as_echo "no" >&6; } 8006 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 8007 8008fi 8009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8010if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 8011 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 8012else 8013 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 8014fi 8015 8016 8017 8018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5 8019$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; } 8020T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 8021T_APPEND_V=-herror_on_warning 8022 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 8023 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 8024else 8025 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 8026fi 8027 8028 8029if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 8030 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 8031else 8032 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 8033fi 8034 8035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8036/* end confdefs.h. */ 8037 8038 8039int 8040main () 8041{ 8042 8043 return 0; 8044 8045 ; 8046 return 0; 8047} 8048_ACEOF 8049if ac_fn_c_try_compile "$LINENO"; then : 8050 je_cv_cflags_added=-herror_on_warning 8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8052$as_echo "yes" >&6; } 8053else 8054 je_cv_cflags_added= 8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8056$as_echo "no" >&6; } 8057 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 8058 8059fi 8060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8061if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 8062 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 8063else 8064 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 8065fi 8066 8067 8068 8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloc_size attribute is compilable" >&5 8070$as_echo_n "checking whether alloc_size attribute is compilable... " >&6; } 8071if ${je_cv_alloc_size+:} false; then : 8072 $as_echo_n "(cached) " >&6 8073else 8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8075/* end confdefs.h. */ 8076#include <stdlib.h> 8077int 8078main () 8079{ 8080void *foo(size_t size) __attribute__((alloc_size(1))); 8081 ; 8082 return 0; 8083} 8084_ACEOF 8085if ac_fn_c_try_link "$LINENO"; then : 8086 je_cv_alloc_size=yes 8087else 8088 je_cv_alloc_size=no 8089fi 8090rm -f core conftest.err conftest.$ac_objext \ 8091 conftest$ac_exeext conftest.$ac_ext 8092fi 8093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_alloc_size" >&5 8094$as_echo "$je_cv_alloc_size" >&6; } 8095 8096CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}" 8097if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 8098 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 8099else 8100 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 8101fi 8102 8103 8104if test "x${je_cv_alloc_size}" = "xyes" ; then 8105 $as_echo "#define JEMALLOC_HAVE_ATTR_ALLOC_SIZE " >>confdefs.h 8106 8107fi 8108SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 8109 8110 8111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 8112$as_echo_n "checking whether compiler supports -Werror... " >&6; } 8113T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 8114T_APPEND_V=-Werror 8115 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 8116 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 8117else 8118 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 8119fi 8120 8121 8122if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 8123 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 8124else 8125 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 8126fi 8127 8128cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8129/* end confdefs.h. */ 8130 8131 8132int 8133main () 8134{ 8135 8136 return 0; 8137 8138 ; 8139 return 0; 8140} 8141_ACEOF 8142if ac_fn_c_try_compile "$LINENO"; then : 8143 je_cv_cflags_added=-Werror 8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8145$as_echo "yes" >&6; } 8146else 8147 je_cv_cflags_added= 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8149$as_echo "no" >&6; } 8150 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 8151 8152fi 8153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8154if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 8155 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 8156else 8157 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 8158fi 8159 8160 8161 8162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5 8163$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; } 8164T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 8165T_APPEND_V=-herror_on_warning 8166 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 8167 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 8168else 8169 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 8170fi 8171 8172 8173if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 8174 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 8175else 8176 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 8177fi 8178 8179cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8180/* end confdefs.h. */ 8181 8182 8183int 8184main () 8185{ 8186 8187 return 0; 8188 8189 ; 8190 return 0; 8191} 8192_ACEOF 8193if ac_fn_c_try_compile "$LINENO"; then : 8194 je_cv_cflags_added=-herror_on_warning 8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8196$as_echo "yes" >&6; } 8197else 8198 je_cv_cflags_added= 8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8200$as_echo "no" >&6; } 8201 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 8202 8203fi 8204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8205if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 8206 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 8207else 8208 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 8209fi 8210 8211 8212 8213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(gnu_printf, ...) attribute is compilable" >&5 8214$as_echo_n "checking whether format(gnu_printf, ...) attribute is compilable... " >&6; } 8215if ${je_cv_format_gnu_printf+:} false; then : 8216 $as_echo_n "(cached) " >&6 8217else 8218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8219/* end confdefs.h. */ 8220#include <stdlib.h> 8221int 8222main () 8223{ 8224void *foo(const char *format, ...) __attribute__((format(gnu_printf, 1, 2))); 8225 ; 8226 return 0; 8227} 8228_ACEOF 8229if ac_fn_c_try_link "$LINENO"; then : 8230 je_cv_format_gnu_printf=yes 8231else 8232 je_cv_format_gnu_printf=no 8233fi 8234rm -f core conftest.err conftest.$ac_objext \ 8235 conftest$ac_exeext conftest.$ac_ext 8236fi 8237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_gnu_printf" >&5 8238$as_echo "$je_cv_format_gnu_printf" >&6; } 8239 8240CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}" 8241if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 8242 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 8243else 8244 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 8245fi 8246 8247 8248if test "x${je_cv_format_gnu_printf}" = "xyes" ; then 8249 $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF " >>confdefs.h 8250 8251fi 8252SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 8253 8254 8255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 8256$as_echo_n "checking whether compiler supports -Werror... " >&6; } 8257T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 8258T_APPEND_V=-Werror 8259 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 8260 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 8261else 8262 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 8263fi 8264 8265 8266if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 8267 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 8268else 8269 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 8270fi 8271 8272cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8273/* end confdefs.h. */ 8274 8275 8276int 8277main () 8278{ 8279 8280 return 0; 8281 8282 ; 8283 return 0; 8284} 8285_ACEOF 8286if ac_fn_c_try_compile "$LINENO"; then : 8287 je_cv_cflags_added=-Werror 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8289$as_echo "yes" >&6; } 8290else 8291 je_cv_cflags_added= 8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8293$as_echo "no" >&6; } 8294 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 8295 8296fi 8297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8298if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 8299 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 8300else 8301 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 8302fi 8303 8304 8305 8306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5 8307$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; } 8308T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 8309T_APPEND_V=-herror_on_warning 8310 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 8311 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 8312else 8313 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 8314fi 8315 8316 8317if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 8318 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 8319else 8320 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 8321fi 8322 8323cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8324/* end confdefs.h. */ 8325 8326 8327int 8328main () 8329{ 8330 8331 return 0; 8332 8333 ; 8334 return 0; 8335} 8336_ACEOF 8337if ac_fn_c_try_compile "$LINENO"; then : 8338 je_cv_cflags_added=-herror_on_warning 8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8340$as_echo "yes" >&6; } 8341else 8342 je_cv_cflags_added= 8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8344$as_echo "no" >&6; } 8345 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 8346 8347fi 8348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8349if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 8350 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 8351else 8352 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 8353fi 8354 8355 8356 8357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5 8358$as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; } 8359if ${je_cv_format_printf+:} false; then : 8360 $as_echo_n "(cached) " >&6 8361else 8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8363/* end confdefs.h. */ 8364#include <stdlib.h> 8365int 8366main () 8367{ 8368void *foo(const char *format, ...) __attribute__((format(printf, 1, 2))); 8369 ; 8370 return 0; 8371} 8372_ACEOF 8373if ac_fn_c_try_link "$LINENO"; then : 8374 je_cv_format_printf=yes 8375else 8376 je_cv_format_printf=no 8377fi 8378rm -f core conftest.err conftest.$ac_objext \ 8379 conftest$ac_exeext conftest.$ac_ext 8380fi 8381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_printf" >&5 8382$as_echo "$je_cv_format_printf" >&6; } 8383 8384CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}" 8385if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 8386 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 8387else 8388 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 8389fi 8390 8391 8392if test "x${je_cv_format_printf}" = "xyes" ; then 8393 $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF " >>confdefs.h 8394 8395fi 8396 8397 8398# Check whether --with-rpath was given. 8399if test "${with_rpath+set}" = set; then : 8400 withval=$with_rpath; if test "x$with_rpath" = "xno" ; then 8401 RPATH_EXTRA= 8402else 8403 RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`" 8404fi 8405else 8406 RPATH_EXTRA= 8407 8408fi 8409 8410 8411 8412# Check whether --enable-autogen was given. 8413if test "${enable_autogen+set}" = set; then : 8414 enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then 8415 enable_autogen="0" 8416else 8417 enable_autogen="1" 8418fi 8419 8420else 8421 enable_autogen="0" 8422 8423fi 8424 8425 8426 8427# Find a good install program. We prefer a C program (faster), 8428# so one script is as good as another. But avoid the broken or 8429# incompatible versions: 8430# SysV /etc/install, /usr/sbin/install 8431# SunOS /usr/etc/install 8432# IRIX /sbin/install 8433# AIX /bin/install 8434# AmigaOS /C/install, which installs bootblocks on floppy discs 8435# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 8436# AFS /usr/afsws/bin/install, which mishandles nonexistent args 8437# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 8438# OS/2's system install, which has a completely different semantic 8439# ./install, which can be erroneously created by make from ./install.sh. 8440# Reject install programs that cannot install multiple files. 8441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 8442$as_echo_n "checking for a BSD-compatible install... " >&6; } 8443if test -z "$INSTALL"; then 8444if ${ac_cv_path_install+:} false; then : 8445 $as_echo_n "(cached) " >&6 8446else 8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8448for as_dir in $PATH 8449do 8450 IFS=$as_save_IFS 8451 test -z "$as_dir" && as_dir=. 8452 # Account for people who put trailing slashes in PATH elements. 8453case $as_dir/ in #(( 8454 ./ | .// | /[cC]/* | \ 8455 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 8456 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 8457 /usr/ucb/* ) ;; 8458 *) 8459 # OSF1 and SCO ODT 3.0 have their own names for install. 8460 # Don't use installbsd from OSF since it installs stuff as root 8461 # by default. 8462 for ac_prog in ginstall scoinst install; do 8463 for ac_exec_ext in '' $ac_executable_extensions; do 8464 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 8465 if test $ac_prog = install && 8466 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 8467 # AIX install. It has an incompatible calling convention. 8468 : 8469 elif test $ac_prog = install && 8470 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 8471 # program-specific install script used by HP pwplus--don't use. 8472 : 8473 else 8474 rm -rf conftest.one conftest.two conftest.dir 8475 echo one > conftest.one 8476 echo two > conftest.two 8477 mkdir conftest.dir 8478 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 8479 test -s conftest.one && test -s conftest.two && 8480 test -s conftest.dir/conftest.one && 8481 test -s conftest.dir/conftest.two 8482 then 8483 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 8484 break 3 8485 fi 8486 fi 8487 fi 8488 done 8489 done 8490 ;; 8491esac 8492 8493 done 8494IFS=$as_save_IFS 8495 8496rm -rf conftest.one conftest.two conftest.dir 8497 8498fi 8499 if test "${ac_cv_path_install+set}" = set; then 8500 INSTALL=$ac_cv_path_install 8501 else 8502 # As a last resort, use the slow shell script. Don't cache a 8503 # value for INSTALL within a source directory, because that will 8504 # break other packages using the cache if that directory is 8505 # removed, or if the value is a relative name. 8506 INSTALL=$ac_install_sh 8507 fi 8508fi 8509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 8510$as_echo "$INSTALL" >&6; } 8511 8512# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 8513# It thinks the first close brace ends the variable substitution. 8514test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 8515 8516test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 8517 8518test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 8519 8520if test -n "$ac_tool_prefix"; then 8521 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 8522set dummy ${ac_tool_prefix}ranlib; ac_word=$2 8523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8524$as_echo_n "checking for $ac_word... " >&6; } 8525if ${ac_cv_prog_RANLIB+:} false; then : 8526 $as_echo_n "(cached) " >&6 8527else 8528 if test -n "$RANLIB"; then 8529 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 8530else 8531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8532for as_dir in $PATH 8533do 8534 IFS=$as_save_IFS 8535 test -z "$as_dir" && as_dir=. 8536 for ac_exec_ext in '' $ac_executable_extensions; do 8537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8538 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 8539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8540 break 2 8541 fi 8542done 8543 done 8544IFS=$as_save_IFS 8545 8546fi 8547fi 8548RANLIB=$ac_cv_prog_RANLIB 8549if test -n "$RANLIB"; then 8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 8551$as_echo "$RANLIB" >&6; } 8552else 8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8554$as_echo "no" >&6; } 8555fi 8556 8557 8558fi 8559if test -z "$ac_cv_prog_RANLIB"; then 8560 ac_ct_RANLIB=$RANLIB 8561 # Extract the first word of "ranlib", so it can be a program name with args. 8562set dummy ranlib; ac_word=$2 8563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8564$as_echo_n "checking for $ac_word... " >&6; } 8565if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8566 $as_echo_n "(cached) " >&6 8567else 8568 if test -n "$ac_ct_RANLIB"; then 8569 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8570else 8571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8572for as_dir in $PATH 8573do 8574 IFS=$as_save_IFS 8575 test -z "$as_dir" && as_dir=. 8576 for ac_exec_ext in '' $ac_executable_extensions; do 8577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8578 ac_cv_prog_ac_ct_RANLIB="ranlib" 8579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8580 break 2 8581 fi 8582done 8583 done 8584IFS=$as_save_IFS 8585 8586fi 8587fi 8588ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8589if test -n "$ac_ct_RANLIB"; then 8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8591$as_echo "$ac_ct_RANLIB" >&6; } 8592else 8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8594$as_echo "no" >&6; } 8595fi 8596 8597 if test "x$ac_ct_RANLIB" = x; then 8598 RANLIB=":" 8599 else 8600 case $cross_compiling:$ac_tool_warned in 8601yes:) 8602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8604ac_tool_warned=yes ;; 8605esac 8606 RANLIB=$ac_ct_RANLIB 8607 fi 8608else 8609 RANLIB="$ac_cv_prog_RANLIB" 8610fi 8611 8612# Extract the first word of "ld", so it can be a program name with args. 8613set dummy ld; ac_word=$2 8614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8615$as_echo_n "checking for $ac_word... " >&6; } 8616if ${ac_cv_path_LD+:} false; then : 8617 $as_echo_n "(cached) " >&6 8618else 8619 case $LD in 8620 [\\/]* | ?:[\\/]*) 8621 ac_cv_path_LD="$LD" # Let the user override the test with a path. 8622 ;; 8623 *) 8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8625for as_dir in $PATH 8626do 8627 IFS=$as_save_IFS 8628 test -z "$as_dir" && as_dir=. 8629 for ac_exec_ext in '' $ac_executable_extensions; do 8630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8631 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" 8632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8633 break 2 8634 fi 8635done 8636 done 8637IFS=$as_save_IFS 8638 8639 test -z "$ac_cv_path_LD" && ac_cv_path_LD="false" 8640 ;; 8641esac 8642fi 8643LD=$ac_cv_path_LD 8644if test -n "$LD"; then 8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 8646$as_echo "$LD" >&6; } 8647else 8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8649$as_echo "no" >&6; } 8650fi 8651 8652 8653# Extract the first word of "autoconf", so it can be a program name with args. 8654set dummy autoconf; ac_word=$2 8655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8656$as_echo_n "checking for $ac_word... " >&6; } 8657if ${ac_cv_path_AUTOCONF+:} false; then : 8658 $as_echo_n "(cached) " >&6 8659else 8660 case $AUTOCONF in 8661 [\\/]* | ?:[\\/]*) 8662 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path. 8663 ;; 8664 *) 8665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8666for as_dir in $PATH 8667do 8668 IFS=$as_save_IFS 8669 test -z "$as_dir" && as_dir=. 8670 for ac_exec_ext in '' $ac_executable_extensions; do 8671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8672 ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext" 8673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8674 break 2 8675 fi 8676done 8677 done 8678IFS=$as_save_IFS 8679 8680 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="false" 8681 ;; 8682esac 8683fi 8684AUTOCONF=$ac_cv_path_AUTOCONF 8685if test -n "$AUTOCONF"; then 8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 8687$as_echo "$AUTOCONF" >&6; } 8688else 8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8690$as_echo "no" >&6; } 8691fi 8692 8693 8694 8695 8696# Check whether --with-mangling was given. 8697if test "${with_mangling+set}" = set; then : 8698 withval=$with_mangling; mangling_map="$with_mangling" 8699else 8700 mangling_map="" 8701fi 8702 8703 8704 8705# Check whether --with-jemalloc_prefix was given. 8706if test "${with_jemalloc_prefix+set}" = set; then : 8707 withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix" 8708else 8709 if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then 8710 JEMALLOC_PREFIX="" 8711else 8712 JEMALLOC_PREFIX="je_" 8713fi 8714 8715fi 8716 8717if test "x$JEMALLOC_PREFIX" = "x" ; then 8718 $as_echo "#define JEMALLOC_IS_MALLOC 1" >>confdefs.h 8719 8720else 8721 JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"` 8722 cat >>confdefs.h <<_ACEOF 8723#define JEMALLOC_PREFIX "$JEMALLOC_PREFIX" 8724_ACEOF 8725 8726 cat >>confdefs.h <<_ACEOF 8727#define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX" 8728_ACEOF 8729 8730fi 8731 8732 8733 8734 8735# Check whether --with-export was given. 8736if test "${with_export+set}" = set; then : 8737 withval=$with_export; if test "x$with_export" = "xno"; then 8738 $as_echo "#define JEMALLOC_EXPORT /**/" >>confdefs.h 8739 8740fi 8741 8742fi 8743 8744 8745public_syms="aligned_alloc calloc dallocx free mallctl mallctlbymib mallctlnametomib malloc malloc_conf malloc_message malloc_stats_print malloc_usable_size mallocx nallocx posix_memalign rallocx realloc sallocx sdallocx xallocx" 8746ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign" 8747if test "x$ac_cv_func_memalign" = xyes; then : 8748 $as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN " >>confdefs.h 8749 8750 public_syms="${public_syms} memalign" 8751fi 8752 8753ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc" 8754if test "x$ac_cv_func_valloc" = xyes; then : 8755 $as_echo "#define JEMALLOC_OVERRIDE_VALLOC " >>confdefs.h 8756 8757 public_syms="${public_syms} valloc" 8758fi 8759 8760 8761wrap_syms= 8762if test "x${JEMALLOC_PREFIX}" = "x" ; then 8763 ac_fn_c_check_func "$LINENO" "__libc_calloc" "ac_cv_func___libc_calloc" 8764if test "x$ac_cv_func___libc_calloc" = xyes; then : 8765 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_CALLOC " >>confdefs.h 8766 8767 wrap_syms="${wrap_syms} __libc_calloc" 8768fi 8769 8770 ac_fn_c_check_func "$LINENO" "__libc_free" "ac_cv_func___libc_free" 8771if test "x$ac_cv_func___libc_free" = xyes; then : 8772 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_FREE " >>confdefs.h 8773 8774 wrap_syms="${wrap_syms} __libc_free" 8775fi 8776 8777 ac_fn_c_check_func "$LINENO" "__libc_malloc" "ac_cv_func___libc_malloc" 8778if test "x$ac_cv_func___libc_malloc" = xyes; then : 8779 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MALLOC " >>confdefs.h 8780 8781 wrap_syms="${wrap_syms} __libc_malloc" 8782fi 8783 8784 ac_fn_c_check_func "$LINENO" "__libc_memalign" "ac_cv_func___libc_memalign" 8785if test "x$ac_cv_func___libc_memalign" = xyes; then : 8786 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MEMALIGN " >>confdefs.h 8787 8788 wrap_syms="${wrap_syms} __libc_memalign" 8789fi 8790 8791 ac_fn_c_check_func "$LINENO" "__libc_realloc" "ac_cv_func___libc_realloc" 8792if test "x$ac_cv_func___libc_realloc" = xyes; then : 8793 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_REALLOC " >>confdefs.h 8794 8795 wrap_syms="${wrap_syms} __libc_realloc" 8796fi 8797 8798 ac_fn_c_check_func "$LINENO" "__libc_valloc" "ac_cv_func___libc_valloc" 8799if test "x$ac_cv_func___libc_valloc" = xyes; then : 8800 $as_echo "#define JEMALLOC_OVERRIDE___LIBC_VALLOC " >>confdefs.h 8801 8802 wrap_syms="${wrap_syms} __libc_valloc" 8803fi 8804 8805 ac_fn_c_check_func "$LINENO" "__posix_memalign" "ac_cv_func___posix_memalign" 8806if test "x$ac_cv_func___posix_memalign" = xyes; then : 8807 $as_echo "#define JEMALLOC_OVERRIDE___POSIX_MEMALIGN " >>confdefs.h 8808 8809 wrap_syms="${wrap_syms} __posix_memalign" 8810fi 8811 8812fi 8813 8814case "${host}" in 8815 *-*-mingw* | *-*-cygwin*) 8816 wrap_syms="${wrap_syms} tls_callback" 8817 ;; 8818 *) 8819 ;; 8820esac 8821 8822 8823# Check whether --with-private_namespace was given. 8824if test "${with_private_namespace+set}" = set; then : 8825 withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="${with_private_namespace}je_" 8826else 8827 JEMALLOC_PRIVATE_NAMESPACE="je_" 8828 8829fi 8830 8831cat >>confdefs.h <<_ACEOF 8832#define JEMALLOC_PRIVATE_NAMESPACE $JEMALLOC_PRIVATE_NAMESPACE 8833_ACEOF 8834 8835private_namespace="$JEMALLOC_PRIVATE_NAMESPACE" 8836 8837 8838 8839# Check whether --with-install_suffix was given. 8840if test "${with_install_suffix+set}" = set; then : 8841 withval=$with_install_suffix; INSTALL_SUFFIX="$with_install_suffix" 8842else 8843 INSTALL_SUFFIX= 8844 8845fi 8846 8847install_suffix="$INSTALL_SUFFIX" 8848 8849 8850 8851# Check whether --with-malloc_conf was given. 8852if test "${with_malloc_conf+set}" = set; then : 8853 withval=$with_malloc_conf; JEMALLOC_CONFIG_MALLOC_CONF="$with_malloc_conf" 8854else 8855 JEMALLOC_CONFIG_MALLOC_CONF="" 8856 8857fi 8858 8859config_malloc_conf="$JEMALLOC_CONFIG_MALLOC_CONF" 8860cat >>confdefs.h <<_ACEOF 8861#define JEMALLOC_CONFIG_MALLOC_CONF "$config_malloc_conf" 8862_ACEOF 8863 8864 8865je_="je_" 8866 8867 8868cfgoutputs_in="Makefile.in" 8869cfgoutputs_in="${cfgoutputs_in} jemalloc.pc.in" 8870cfgoutputs_in="${cfgoutputs_in} doc/html.xsl.in" 8871cfgoutputs_in="${cfgoutputs_in} doc/manpages.xsl.in" 8872cfgoutputs_in="${cfgoutputs_in} doc/jemalloc.xml.in" 8873cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_macros.h.in" 8874cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_protos.h.in" 8875cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_typedefs.h.in" 8876cfgoutputs_in="${cfgoutputs_in} include/jemalloc/internal/jemalloc_preamble.h.in" 8877cfgoutputs_in="${cfgoutputs_in} test/test.sh.in" 8878cfgoutputs_in="${cfgoutputs_in} test/include/test/jemalloc_test.h.in" 8879 8880cfgoutputs_out="Makefile" 8881cfgoutputs_out="${cfgoutputs_out} jemalloc.pc" 8882cfgoutputs_out="${cfgoutputs_out} doc/html.xsl" 8883cfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl" 8884cfgoutputs_out="${cfgoutputs_out} doc/jemalloc.xml" 8885cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_macros.h" 8886cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_protos.h" 8887cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_typedefs.h" 8888cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_preamble.h" 8889cfgoutputs_out="${cfgoutputs_out} test/test.sh" 8890cfgoutputs_out="${cfgoutputs_out} test/include/test/jemalloc_test.h" 8891 8892cfgoutputs_tup="Makefile" 8893cfgoutputs_tup="${cfgoutputs_tup} jemalloc.pc:jemalloc.pc.in" 8894cfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in" 8895cfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in" 8896cfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc.xml:doc/jemalloc.xml.in" 8897cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_macros.h:include/jemalloc/jemalloc_macros.h.in" 8898cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_protos.h:include/jemalloc/jemalloc_protos.h.in" 8899cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_typedefs.h:include/jemalloc/jemalloc_typedefs.h.in" 8900cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_preamble.h" 8901cfgoutputs_tup="${cfgoutputs_tup} test/test.sh:test/test.sh.in" 8902cfgoutputs_tup="${cfgoutputs_tup} test/include/test/jemalloc_test.h:test/include/test/jemalloc_test.h.in" 8903 8904cfghdrs_in="include/jemalloc/jemalloc_defs.h.in" 8905cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/jemalloc_internal_defs.h.in" 8906cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_symbols.sh" 8907cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_namespace.sh" 8908cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_namespace.sh" 8909cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_unnamespace.sh" 8910cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/size_classes.sh" 8911cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_rename.sh" 8912cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_mangle.sh" 8913cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc.sh" 8914cfghdrs_in="${cfghdrs_in} test/include/test/jemalloc_test_defs.h.in" 8915 8916cfghdrs_out="include/jemalloc/jemalloc_defs.h" 8917cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc${install_suffix}.h" 8918cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols.awk" 8919cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols_jet.awk" 8920cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_symbols.txt" 8921cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_namespace.h" 8922cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_unnamespace.h" 8923cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/size_classes.h" 8924cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_protos_jet.h" 8925cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_rename.h" 8926cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle.h" 8927cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle_jet.h" 8928cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/jemalloc_internal_defs.h" 8929cfghdrs_out="${cfghdrs_out} test/include/test/jemalloc_test_defs.h" 8930 8931cfghdrs_tup="include/jemalloc/jemalloc_defs.h:include/jemalloc/jemalloc_defs.h.in" 8932cfghdrs_tup="${cfghdrs_tup} include/jemalloc/internal/jemalloc_internal_defs.h:include/jemalloc/internal/jemalloc_internal_defs.h.in" 8933cfghdrs_tup="${cfghdrs_tup} test/include/test/jemalloc_test_defs.h:test/include/test/jemalloc_test_defs.h.in" 8934 8935# Check whether --enable-debug was given. 8936if test "${enable_debug+set}" = set; then : 8937 enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then 8938 enable_debug="0" 8939else 8940 enable_debug="1" 8941fi 8942 8943else 8944 enable_debug="0" 8945 8946fi 8947 8948if test "x$enable_debug" = "x1" ; then 8949 $as_echo "#define JEMALLOC_DEBUG " >>confdefs.h 8950 8951fi 8952if test "x$enable_debug" = "x1" ; then 8953 $as_echo "#define JEMALLOC_DEBUG " >>confdefs.h 8954 8955fi 8956 8957 8958if test "x$enable_debug" = "x0" ; then 8959 if test "x$GCC" = "xyes" ; then 8960 8961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5 8962$as_echo_n "checking whether compiler supports -O3... " >&6; } 8963T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 8964T_APPEND_V=-O3 8965 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 8966 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 8967else 8968 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 8969fi 8970 8971 8972if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 8973 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 8974else 8975 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 8976fi 8977 8978cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8979/* end confdefs.h. */ 8980 8981 8982int 8983main () 8984{ 8985 8986 return 0; 8987 8988 ; 8989 return 0; 8990} 8991_ACEOF 8992if ac_fn_c_try_compile "$LINENO"; then : 8993 je_cv_cflags_added=-O3 8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8995$as_echo "yes" >&6; } 8996else 8997 je_cv_cflags_added= 8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8999$as_echo "no" >&6; } 9000 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 9001 9002fi 9003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9004if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9005 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9006else 9007 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9008fi 9009 9010 9011 9012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5 9013$as_echo_n "checking whether compiler supports -O3... " >&6; } 9014T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}" 9015T_APPEND_V=-O3 9016 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9017 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}" 9018else 9019 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}" 9020fi 9021 9022 9023if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 9024 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 9025else 9026 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 9027fi 9028 9029ac_ext=cpp 9030ac_cpp='$CXXCPP $CPPFLAGS' 9031ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9032ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9033ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9034 9035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9036/* end confdefs.h. */ 9037 9038 9039int 9040main () 9041{ 9042 9043 return 0; 9044 9045 ; 9046 return 0; 9047} 9048_ACEOF 9049if ac_fn_cxx_try_compile "$LINENO"; then : 9050 je_cv_cxxflags_added=-O3 9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9052$as_echo "yes" >&6; } 9053else 9054 je_cv_cxxflags_added= 9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9056$as_echo "no" >&6; } 9057 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}" 9058 9059fi 9060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9061ac_ext=c 9062ac_cpp='$CPP $CPPFLAGS' 9063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9065ac_compiler_gnu=$ac_cv_c_compiler_gnu 9066 9067if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 9068 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 9069else 9070 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 9071fi 9072 9073 9074 9075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5 9076$as_echo_n "checking whether compiler supports -funroll-loops... " >&6; } 9077T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9078T_APPEND_V=-funroll-loops 9079 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9080 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 9081else 9082 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 9083fi 9084 9085 9086if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9087 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9088else 9089 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9090fi 9091 9092cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9093/* end confdefs.h. */ 9094 9095 9096int 9097main () 9098{ 9099 9100 return 0; 9101 9102 ; 9103 return 0; 9104} 9105_ACEOF 9106if ac_fn_c_try_compile "$LINENO"; then : 9107 je_cv_cflags_added=-funroll-loops 9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9109$as_echo "yes" >&6; } 9110else 9111 je_cv_cflags_added= 9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9113$as_echo "no" >&6; } 9114 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 9115 9116fi 9117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9118if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9119 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9120else 9121 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9122fi 9123 9124 9125 elif test "x$je_cv_msvc" = "xyes" ; then 9126 9127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5 9128$as_echo_n "checking whether compiler supports -O2... " >&6; } 9129T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9130T_APPEND_V=-O2 9131 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9132 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 9133else 9134 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 9135fi 9136 9137 9138if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9139 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9140else 9141 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9142fi 9143 9144cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9145/* end confdefs.h. */ 9146 9147 9148int 9149main () 9150{ 9151 9152 return 0; 9153 9154 ; 9155 return 0; 9156} 9157_ACEOF 9158if ac_fn_c_try_compile "$LINENO"; then : 9159 je_cv_cflags_added=-O2 9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9161$as_echo "yes" >&6; } 9162else 9163 je_cv_cflags_added= 9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9165$as_echo "no" >&6; } 9166 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 9167 9168fi 9169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9170if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9171 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9172else 9173 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9174fi 9175 9176 9177 9178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5 9179$as_echo_n "checking whether compiler supports -O2... " >&6; } 9180T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}" 9181T_APPEND_V=-O2 9182 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9183 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}" 9184else 9185 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}" 9186fi 9187 9188 9189if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 9190 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 9191else 9192 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 9193fi 9194 9195ac_ext=cpp 9196ac_cpp='$CXXCPP $CPPFLAGS' 9197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9200 9201cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9202/* end confdefs.h. */ 9203 9204 9205int 9206main () 9207{ 9208 9209 return 0; 9210 9211 ; 9212 return 0; 9213} 9214_ACEOF 9215if ac_fn_cxx_try_compile "$LINENO"; then : 9216 je_cv_cxxflags_added=-O2 9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9218$as_echo "yes" >&6; } 9219else 9220 je_cv_cxxflags_added= 9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9222$as_echo "no" >&6; } 9223 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}" 9224 9225fi 9226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9227ac_ext=c 9228ac_cpp='$CPP $CPPFLAGS' 9229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9231ac_compiler_gnu=$ac_cv_c_compiler_gnu 9232 9233if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 9234 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 9235else 9236 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 9237fi 9238 9239 9240 else 9241 9242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5 9243$as_echo_n "checking whether compiler supports -O... " >&6; } 9244T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9245T_APPEND_V=-O 9246 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9247 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 9248else 9249 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 9250fi 9251 9252 9253if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9254 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9255else 9256 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9257fi 9258 9259cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9260/* end confdefs.h. */ 9261 9262 9263int 9264main () 9265{ 9266 9267 return 0; 9268 9269 ; 9270 return 0; 9271} 9272_ACEOF 9273if ac_fn_c_try_compile "$LINENO"; then : 9274 je_cv_cflags_added=-O 9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9276$as_echo "yes" >&6; } 9277else 9278 je_cv_cflags_added= 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9280$as_echo "no" >&6; } 9281 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 9282 9283fi 9284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9285if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9286 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9287else 9288 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9289fi 9290 9291 9292 9293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5 9294$as_echo_n "checking whether compiler supports -O... " >&6; } 9295T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}" 9296T_APPEND_V=-O 9297 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9298 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}" 9299else 9300 CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}" 9301fi 9302 9303 9304if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 9305 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 9306else 9307 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 9308fi 9309 9310ac_ext=cpp 9311ac_cpp='$CXXCPP $CPPFLAGS' 9312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9315 9316cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9317/* end confdefs.h. */ 9318 9319 9320int 9321main () 9322{ 9323 9324 return 0; 9325 9326 ; 9327 return 0; 9328} 9329_ACEOF 9330if ac_fn_cxx_try_compile "$LINENO"; then : 9331 je_cv_cxxflags_added=-O 9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9333$as_echo "yes" >&6; } 9334else 9335 je_cv_cxxflags_added= 9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9337$as_echo "no" >&6; } 9338 CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}" 9339 9340fi 9341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9342ac_ext=c 9343ac_cpp='$CPP $CPPFLAGS' 9344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9346ac_compiler_gnu=$ac_cv_c_compiler_gnu 9347 9348if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then 9349 CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}" 9350else 9351 CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}" 9352fi 9353 9354 9355 fi 9356fi 9357 9358# Check whether --enable-stats was given. 9359if test "${enable_stats+set}" = set; then : 9360 enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then 9361 enable_stats="0" 9362else 9363 enable_stats="1" 9364fi 9365 9366else 9367 enable_stats="1" 9368 9369fi 9370 9371if test "x$enable_stats" = "x1" ; then 9372 $as_echo "#define JEMALLOC_STATS " >>confdefs.h 9373 9374fi 9375 9376 9377# Check whether --enable-prof was given. 9378if test "${enable_prof+set}" = set; then : 9379 enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then 9380 enable_prof="0" 9381else 9382 enable_prof="1" 9383fi 9384 9385else 9386 enable_prof="0" 9387 9388fi 9389 9390if test "x$enable_prof" = "x1" ; then 9391 backtrace_method="" 9392else 9393 backtrace_method="N/A" 9394fi 9395 9396# Check whether --enable-prof-libunwind was given. 9397if test "${enable_prof_libunwind+set}" = set; then : 9398 enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then 9399 enable_prof_libunwind="0" 9400else 9401 enable_prof_libunwind="1" 9402fi 9403 9404else 9405 enable_prof_libunwind="0" 9406 9407fi 9408 9409 9410# Check whether --with-static_libunwind was given. 9411if test "${with_static_libunwind+set}" = set; then : 9412 withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then 9413 LUNWIND="-lunwind" 9414else 9415 if test ! -f "$with_static_libunwind" ; then 9416 as_fn_error $? "Static libunwind not found: $with_static_libunwind" "$LINENO" 5 9417 fi 9418 LUNWIND="$with_static_libunwind" 9419fi 9420else 9421 LUNWIND="-lunwind" 9422 9423fi 9424 9425if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then 9426 for ac_header in libunwind.h 9427do : 9428 ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default" 9429if test "x$ac_cv_header_libunwind_h" = xyes; then : 9430 cat >>confdefs.h <<_ACEOF 9431#define HAVE_LIBUNWIND_H 1 9432_ACEOF 9433 9434else 9435 enable_prof_libunwind="0" 9436fi 9437 9438done 9439 9440 if test "x$LUNWIND" = "x-lunwind" ; then 9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unw_backtrace in -lunwind" >&5 9442$as_echo_n "checking for unw_backtrace in -lunwind... " >&6; } 9443if ${ac_cv_lib_unwind_unw_backtrace+:} false; then : 9444 $as_echo_n "(cached) " >&6 9445else 9446 ac_check_lib_save_LIBS=$LIBS 9447LIBS="-lunwind $LIBS" 9448cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9449/* end confdefs.h. */ 9450 9451/* Override any GCC internal prototype to avoid an error. 9452 Use char because int might match the return type of a GCC 9453 builtin and then its argument prototype would still apply. */ 9454#ifdef __cplusplus 9455extern "C" 9456#endif 9457char unw_backtrace (); 9458int 9459main () 9460{ 9461return unw_backtrace (); 9462 ; 9463 return 0; 9464} 9465_ACEOF 9466if ac_fn_c_try_link "$LINENO"; then : 9467 ac_cv_lib_unwind_unw_backtrace=yes 9468else 9469 ac_cv_lib_unwind_unw_backtrace=no 9470fi 9471rm -f core conftest.err conftest.$ac_objext \ 9472 conftest$ac_exeext conftest.$ac_ext 9473LIBS=$ac_check_lib_save_LIBS 9474fi 9475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_unw_backtrace" >&5 9476$as_echo "$ac_cv_lib_unwind_unw_backtrace" >&6; } 9477if test "x$ac_cv_lib_unwind_unw_backtrace" = xyes; then : 9478 T_APPEND_V=$LUNWIND 9479 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9480 LIBS="${LIBS}${T_APPEND_V}" 9481else 9482 LIBS="${LIBS} ${T_APPEND_V}" 9483fi 9484 9485 9486else 9487 enable_prof_libunwind="0" 9488fi 9489 9490 else 9491 T_APPEND_V=$LUNWIND 9492 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9493 LIBS="${LIBS}${T_APPEND_V}" 9494else 9495 LIBS="${LIBS} ${T_APPEND_V}" 9496fi 9497 9498 9499 fi 9500 if test "x${enable_prof_libunwind}" = "x1" ; then 9501 backtrace_method="libunwind" 9502 $as_echo "#define JEMALLOC_PROF_LIBUNWIND " >>confdefs.h 9503 9504 fi 9505fi 9506 9507# Check whether --enable-prof-libgcc was given. 9508if test "${enable_prof_libgcc+set}" = set; then : 9509 enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then 9510 enable_prof_libgcc="0" 9511else 9512 enable_prof_libgcc="1" 9513fi 9514 9515else 9516 enable_prof_libgcc="1" 9517 9518fi 9519 9520if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \ 9521 -a "x$GCC" = "xyes" ; then 9522 for ac_header in unwind.h 9523do : 9524 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default" 9525if test "x$ac_cv_header_unwind_h" = xyes; then : 9526 cat >>confdefs.h <<_ACEOF 9527#define HAVE_UNWIND_H 1 9528_ACEOF 9529 9530else 9531 enable_prof_libgcc="0" 9532fi 9533 9534done 9535 9536 if test "x${enable_prof_libgcc}" = "x1" ; then 9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5 9538$as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; } 9539if ${ac_cv_lib_gcc__Unwind_Backtrace+:} false; then : 9540 $as_echo_n "(cached) " >&6 9541else 9542 ac_check_lib_save_LIBS=$LIBS 9543LIBS="-lgcc $LIBS" 9544cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9545/* end confdefs.h. */ 9546 9547/* Override any GCC internal prototype to avoid an error. 9548 Use char because int might match the return type of a GCC 9549 builtin and then its argument prototype would still apply. */ 9550#ifdef __cplusplus 9551extern "C" 9552#endif 9553char _Unwind_Backtrace (); 9554int 9555main () 9556{ 9557return _Unwind_Backtrace (); 9558 ; 9559 return 0; 9560} 9561_ACEOF 9562if ac_fn_c_try_link "$LINENO"; then : 9563 ac_cv_lib_gcc__Unwind_Backtrace=yes 9564else 9565 ac_cv_lib_gcc__Unwind_Backtrace=no 9566fi 9567rm -f core conftest.err conftest.$ac_objext \ 9568 conftest$ac_exeext conftest.$ac_ext 9569LIBS=$ac_check_lib_save_LIBS 9570fi 9571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5 9572$as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; } 9573if test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes; then : 9574 T_APPEND_V=-lgcc 9575 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9576 LIBS="${LIBS}${T_APPEND_V}" 9577else 9578 LIBS="${LIBS} ${T_APPEND_V}" 9579fi 9580 9581 9582else 9583 enable_prof_libgcc="0" 9584fi 9585 9586 fi 9587 if test "x${enable_prof_libgcc}" = "x1" ; then 9588 backtrace_method="libgcc" 9589 $as_echo "#define JEMALLOC_PROF_LIBGCC " >>confdefs.h 9590 9591 fi 9592else 9593 enable_prof_libgcc="0" 9594fi 9595 9596# Check whether --enable-prof-gcc was given. 9597if test "${enable_prof_gcc+set}" = set; then : 9598 enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then 9599 enable_prof_gcc="0" 9600else 9601 enable_prof_gcc="1" 9602fi 9603 9604else 9605 enable_prof_gcc="1" 9606 9607fi 9608 9609if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \ 9610 -a "x$GCC" = "xyes" ; then 9611 9612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fno-omit-frame-pointer" >&5 9613$as_echo_n "checking whether compiler supports -fno-omit-frame-pointer... " >&6; } 9614T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 9615T_APPEND_V=-fno-omit-frame-pointer 9616 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9617 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 9618else 9619 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 9620fi 9621 9622 9623if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9624 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9625else 9626 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9627fi 9628 9629cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9630/* end confdefs.h. */ 9631 9632 9633int 9634main () 9635{ 9636 9637 return 0; 9638 9639 ; 9640 return 0; 9641} 9642_ACEOF 9643if ac_fn_c_try_compile "$LINENO"; then : 9644 je_cv_cflags_added=-fno-omit-frame-pointer 9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9646$as_echo "yes" >&6; } 9647else 9648 je_cv_cflags_added= 9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9650$as_echo "no" >&6; } 9651 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 9652 9653fi 9654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9655if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 9656 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 9657else 9658 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 9659fi 9660 9661 9662 backtrace_method="gcc intrinsics" 9663 $as_echo "#define JEMALLOC_PROF_GCC " >>confdefs.h 9664 9665else 9666 enable_prof_gcc="0" 9667fi 9668 9669if test "x$backtrace_method" = "x" ; then 9670 backtrace_method="none (disabling profiling)" 9671 enable_prof="0" 9672fi 9673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5 9674$as_echo_n "checking configured backtracing method... " >&6; } 9675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5 9676$as_echo "$backtrace_method" >&6; } 9677if test "x$enable_prof" = "x1" ; then 9678 T_APPEND_V=$LM 9679 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 9680 LIBS="${LIBS}${T_APPEND_V}" 9681else 9682 LIBS="${LIBS} ${T_APPEND_V}" 9683fi 9684 9685 9686 9687 $as_echo "#define JEMALLOC_PROF " >>confdefs.h 9688 9689fi 9690 9691 9692if test "x${maps_coalesce}" = "x1" ; then 9693 $as_echo "#define JEMALLOC_MAPS_COALESCE " >>confdefs.h 9694 9695fi 9696 9697if test "x$default_retain" = "x1" ; then 9698 $as_echo "#define JEMALLOC_RETAIN " >>confdefs.h 9699 9700fi 9701 9702have_dss="1" 9703ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk" 9704if test "x$ac_cv_func_sbrk" = xyes; then : 9705 have_sbrk="1" 9706else 9707 have_sbrk="0" 9708fi 9709 9710if test "x$have_sbrk" = "x1" ; then 9711 if test "x$sbrk_deprecated" = "x1" ; then 9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling dss allocation because sbrk is deprecated" >&5 9713$as_echo "Disabling dss allocation because sbrk is deprecated" >&6; } 9714 have_dss="0" 9715 fi 9716else 9717 have_dss="0" 9718fi 9719 9720if test "x$have_dss" = "x1" ; then 9721 $as_echo "#define JEMALLOC_DSS " >>confdefs.h 9722 9723fi 9724 9725# Check whether --enable-fill was given. 9726if test "${enable_fill+set}" = set; then : 9727 enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then 9728 enable_fill="0" 9729else 9730 enable_fill="1" 9731fi 9732 9733else 9734 enable_fill="1" 9735 9736fi 9737 9738if test "x$enable_fill" = "x1" ; then 9739 $as_echo "#define JEMALLOC_FILL " >>confdefs.h 9740 9741fi 9742 9743 9744# Check whether --enable-utrace was given. 9745if test "${enable_utrace+set}" = set; then : 9746 enableval=$enable_utrace; if test "x$enable_utrace" = "xno" ; then 9747 enable_utrace="0" 9748else 9749 enable_utrace="1" 9750fi 9751 9752else 9753 enable_utrace="0" 9754 9755fi 9756 9757 9758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5 9759$as_echo_n "checking whether utrace(2) is compilable... " >&6; } 9760if ${je_cv_utrace+:} false; then : 9761 $as_echo_n "(cached) " >&6 9762else 9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9764/* end confdefs.h. */ 9765 9766#include <sys/types.h> 9767#include <sys/param.h> 9768#include <sys/time.h> 9769#include <sys/uio.h> 9770#include <sys/ktrace.h> 9771 9772int 9773main () 9774{ 9775 9776 utrace((void *)0, 0); 9777 9778 ; 9779 return 0; 9780} 9781_ACEOF 9782if ac_fn_c_try_link "$LINENO"; then : 9783 je_cv_utrace=yes 9784else 9785 je_cv_utrace=no 9786fi 9787rm -f core conftest.err conftest.$ac_objext \ 9788 conftest$ac_exeext conftest.$ac_ext 9789fi 9790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5 9791$as_echo "$je_cv_utrace" >&6; } 9792 9793if test "x${je_cv_utrace}" = "xno" ; then 9794 enable_utrace="0" 9795fi 9796if test "x$enable_utrace" = "x1" ; then 9797 $as_echo "#define JEMALLOC_UTRACE " >>confdefs.h 9798 9799fi 9800 9801 9802# Check whether --enable-xmalloc was given. 9803if test "${enable_xmalloc+set}" = set; then : 9804 enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then 9805 enable_xmalloc="0" 9806else 9807 enable_xmalloc="1" 9808fi 9809 9810else 9811 enable_xmalloc="0" 9812 9813fi 9814 9815if test "x$enable_xmalloc" = "x1" ; then 9816 $as_echo "#define JEMALLOC_XMALLOC " >>confdefs.h 9817 9818fi 9819 9820 9821# Check whether --enable-cache-oblivious was given. 9822if test "${enable_cache_oblivious+set}" = set; then : 9823 enableval=$enable_cache_oblivious; if test "x$enable_cache_oblivious" = "xno" ; then 9824 enable_cache_oblivious="0" 9825else 9826 enable_cache_oblivious="1" 9827fi 9828 9829else 9830 enable_cache_oblivious="1" 9831 9832fi 9833 9834if test "x$enable_cache_oblivious" = "x1" ; then 9835 $as_echo "#define JEMALLOC_CACHE_OBLIVIOUS " >>confdefs.h 9836 9837fi 9838 9839 9840# Check whether --enable-log was given. 9841if test "${enable_log+set}" = set; then : 9842 enableval=$enable_log; if test "x$enable_log" = "xno" ; then 9843 enable_log="0" 9844else 9845 enable_log="1" 9846fi 9847 9848else 9849 enable_log="0" 9850 9851fi 9852 9853if test "x$enable_log" = "x1" ; then 9854 $as_echo "#define JEMALLOC_LOG " >>confdefs.h 9855 9856fi 9857 9858 9859 9860 9861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_unreachable is compilable" >&5 9862$as_echo_n "checking whether a program using __builtin_unreachable is compilable... " >&6; } 9863if ${je_cv_gcc_builtin_unreachable+:} false; then : 9864 $as_echo_n "(cached) " >&6 9865else 9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9867/* end confdefs.h. */ 9868 9869void foo (void) { 9870 __builtin_unreachable(); 9871} 9872 9873int 9874main () 9875{ 9876 9877 { 9878 foo(); 9879 } 9880 9881 ; 9882 return 0; 9883} 9884_ACEOF 9885if ac_fn_c_try_link "$LINENO"; then : 9886 je_cv_gcc_builtin_unreachable=yes 9887else 9888 je_cv_gcc_builtin_unreachable=no 9889fi 9890rm -f core conftest.err conftest.$ac_objext \ 9891 conftest$ac_exeext conftest.$ac_ext 9892fi 9893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_unreachable" >&5 9894$as_echo "$je_cv_gcc_builtin_unreachable" >&6; } 9895 9896if test "x${je_cv_gcc_builtin_unreachable}" = "xyes" ; then 9897 $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable" >>confdefs.h 9898 9899else 9900 $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE abort" >>confdefs.h 9901 9902fi 9903 9904 9905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_ffsl is compilable" >&5 9906$as_echo_n "checking whether a program using __builtin_ffsl is compilable... " >&6; } 9907if ${je_cv_gcc_builtin_ffsl+:} false; then : 9908 $as_echo_n "(cached) " >&6 9909else 9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9911/* end confdefs.h. */ 9912 9913#include <stdio.h> 9914#include <strings.h> 9915#include <string.h> 9916 9917int 9918main () 9919{ 9920 9921 { 9922 int rv = __builtin_ffsl(0x08); 9923 printf("%d\n", rv); 9924 } 9925 9926 ; 9927 return 0; 9928} 9929_ACEOF 9930if ac_fn_c_try_link "$LINENO"; then : 9931 je_cv_gcc_builtin_ffsl=yes 9932else 9933 je_cv_gcc_builtin_ffsl=no 9934fi 9935rm -f core conftest.err conftest.$ac_objext \ 9936 conftest$ac_exeext conftest.$ac_ext 9937fi 9938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_ffsl" >&5 9939$as_echo "$je_cv_gcc_builtin_ffsl" >&6; } 9940 9941if test "x${je_cv_gcc_builtin_ffsl}" = "xyes" ; then 9942 $as_echo "#define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll" >>confdefs.h 9943 9944 $as_echo "#define JEMALLOC_INTERNAL_FFSL __builtin_ffsl" >>confdefs.h 9945 9946 $as_echo "#define JEMALLOC_INTERNAL_FFS __builtin_ffs" >>confdefs.h 9947 9948else 9949 9950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5 9951$as_echo_n "checking whether a program using ffsl is compilable... " >&6; } 9952if ${je_cv_function_ffsl+:} false; then : 9953 $as_echo_n "(cached) " >&6 9954else 9955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9956/* end confdefs.h. */ 9957 9958 #include <stdio.h> 9959 #include <strings.h> 9960 #include <string.h> 9961 9962int 9963main () 9964{ 9965 9966 { 9967 int rv = ffsl(0x08); 9968 printf("%d\n", rv); 9969 } 9970 9971 ; 9972 return 0; 9973} 9974_ACEOF 9975if ac_fn_c_try_link "$LINENO"; then : 9976 je_cv_function_ffsl=yes 9977else 9978 je_cv_function_ffsl=no 9979fi 9980rm -f core conftest.err conftest.$ac_objext \ 9981 conftest$ac_exeext conftest.$ac_ext 9982fi 9983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5 9984$as_echo "$je_cv_function_ffsl" >&6; } 9985 9986 if test "x${je_cv_function_ffsl}" = "xyes" ; then 9987 $as_echo "#define JEMALLOC_INTERNAL_FFSLL ffsll" >>confdefs.h 9988 9989 $as_echo "#define JEMALLOC_INTERNAL_FFSL ffsl" >>confdefs.h 9990 9991 $as_echo "#define JEMALLOC_INTERNAL_FFS ffs" >>confdefs.h 9992 9993 else 9994 as_fn_error $? "Cannot build without ffsl(3) or __builtin_ffsl()" "$LINENO" 5 9995 fi 9996fi 9997 9998 9999# Check whether --with-lg_quantum was given. 10000if test "${with_lg_quantum+set}" = set; then : 10001 withval=$with_lg_quantum; LG_QUANTA="$with_lg_quantum" 10002else 10003 LG_QUANTA="3 4" 10004fi 10005 10006if test "x$with_lg_quantum" != "x" ; then 10007 cat >>confdefs.h <<_ACEOF 10008#define LG_QUANTUM $with_lg_quantum 10009_ACEOF 10010 10011fi 10012 10013 10014# Check whether --with-lg_page was given. 10015if test "${with_lg_page+set}" = set; then : 10016 withval=$with_lg_page; LG_PAGE="$with_lg_page" 10017else 10018 LG_PAGE="detect" 10019fi 10020 10021if test "x$LG_PAGE" = "xdetect"; then 10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LG_PAGE" >&5 10023$as_echo_n "checking LG_PAGE... " >&6; } 10024if ${je_cv_lg_page+:} false; then : 10025 $as_echo_n "(cached) " >&6 10026else 10027 if test "$cross_compiling" = yes; then : 10028 je_cv_lg_page=12 10029else 10030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10031/* end confdefs.h. */ 10032 10033#include <strings.h> 10034#ifdef _WIN32 10035#include <windows.h> 10036#else 10037#include <unistd.h> 10038#endif 10039#include <stdio.h> 10040 10041int 10042main () 10043{ 10044 10045 int result; 10046 FILE *f; 10047 10048#ifdef _WIN32 10049 SYSTEM_INFO si; 10050 GetSystemInfo(&si); 10051 result = si.dwPageSize; 10052#else 10053 result = sysconf(_SC_PAGESIZE); 10054#endif 10055 if (result == -1) { 10056 return 1; 10057 } 10058 result = JEMALLOC_INTERNAL_FFSL(result) - 1; 10059 10060 f = fopen("conftest.out", "w"); 10061 if (f == NULL) { 10062 return 1; 10063 } 10064 fprintf(f, "%d", result); 10065 fclose(f); 10066 10067 return 0; 10068 10069 ; 10070 return 0; 10071} 10072_ACEOF 10073if ac_fn_c_try_run "$LINENO"; then : 10074 je_cv_lg_page=`cat conftest.out` 10075else 10076 je_cv_lg_page=undefined 10077fi 10078rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10079 conftest.$ac_objext conftest.beam conftest.$ac_ext 10080fi 10081 10082fi 10083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_page" >&5 10084$as_echo "$je_cv_lg_page" >&6; } 10085fi 10086if test "x${je_cv_lg_page}" != "x" ; then 10087 LG_PAGE="${je_cv_lg_page}" 10088fi 10089if test "x${LG_PAGE}" != "xundefined" ; then 10090 cat >>confdefs.h <<_ACEOF 10091#define LG_PAGE $LG_PAGE 10092_ACEOF 10093 10094else 10095 as_fn_error $? "cannot determine value for LG_PAGE" "$LINENO" 5 10096fi 10097 10098 10099# Check whether --with-lg_hugepage was given. 10100if test "${with_lg_hugepage+set}" = set; then : 10101 withval=$with_lg_hugepage; je_cv_lg_hugepage="${with_lg_hugepage}" 10102else 10103 je_cv_lg_hugepage="" 10104fi 10105 10106if test "x${je_cv_lg_hugepage}" = "x" ; then 10107 if test -e "/proc/meminfo" ; then 10108 hpsk=`cat /proc/meminfo 2>/dev/null | \ 10109 grep -e '^Hugepagesize:[[:space:]]\+[0-9]\+[[:space:]]kB$' | \ 10110 awk '{print $2}'` 10111 if test "x${hpsk}" != "x" ; then 10112 je_cv_lg_hugepage=10 10113 while test "${hpsk}" -gt 1 ; do 10114 hpsk="$((hpsk / 2))" 10115 je_cv_lg_hugepage="$((je_cv_lg_hugepage + 1))" 10116 done 10117 fi 10118 fi 10119 10120 if test "x${je_cv_lg_hugepage}" = "x" ; then 10121 je_cv_lg_hugepage=21 10122 fi 10123fi 10124if test "x${LG_PAGE}" != "xundefined" -a \ 10125 "${je_cv_lg_hugepage}" -lt "${LG_PAGE}" ; then 10126 as_fn_error $? "Huge page size (2^${je_cv_lg_hugepage}) must be at least page size (2^${LG_PAGE})" "$LINENO" 5 10127fi 10128cat >>confdefs.h <<_ACEOF 10129#define LG_HUGEPAGE ${je_cv_lg_hugepage} 10130_ACEOF 10131 10132 10133 10134# Check whether --with-lg_page_sizes was given. 10135if test "${with_lg_page_sizes+set}" = set; then : 10136 withval=$with_lg_page_sizes; LG_PAGE_SIZES="$with_lg_page_sizes" 10137else 10138 LG_PAGE_SIZES="$LG_PAGE" 10139fi 10140 10141 10142 10143 10144# Check whether --with-version was given. 10145if test "${with_version+set}" = set; then : 10146 withval=$with_version; 10147 echo "${with_version}" | grep '^[0-9]\+\.[0-9]\+\.[0-9]\+-[0-9]\+-g[0-9a-f]\+$' 2>&1 1>/dev/null 10148 if test $? -eq 0 ; then 10149 echo "$with_version" > "${objroot}VERSION" 10150 else 10151 echo "${with_version}" | grep '^VERSION$' 2>&1 1>/dev/null 10152 if test $? -ne 0 ; then 10153 as_fn_error $? "${with_version} does not match <major>.<minor>.<bugfix>-<nrev>-g<gid> or VERSION" "$LINENO" 5 10154 fi 10155 fi 10156 10157else 10158 10159 if test "x`test ! \"${srcroot}\" && cd \"${srcroot}\"; git rev-parse --is-inside-work-tree 2>/dev/null`" = "xtrue" ; then 10160 for pattern in '[0-9].[0-9].[0-9]' '[0-9].[0-9].[0-9][0-9]' \ 10161 '[0-9].[0-9][0-9].[0-9]' '[0-9].[0-9][0-9].[0-9][0-9]' \ 10162 '[0-9][0-9].[0-9].[0-9]' '[0-9][0-9].[0-9].[0-9][0-9]' \ 10163 '[0-9][0-9].[0-9][0-9].[0-9]' \ 10164 '[0-9][0-9].[0-9][0-9].[0-9][0-9]'; do 10165 (test ! "${srcroot}" && cd "${srcroot}"; git describe --long --abbrev=40 --match="${pattern}") > "${objroot}VERSION.tmp" 2>/dev/null 10166 if test $? -eq 0 ; then 10167 mv "${objroot}VERSION.tmp" "${objroot}VERSION" 10168 break 10169 fi 10170 done 10171 fi 10172 rm -f "${objroot}VERSION.tmp" 10173 10174fi 10175 10176 10177if test ! -e "${objroot}VERSION" ; then 10178 if test ! -e "${srcroot}VERSION" ; then 10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Missing VERSION file, and unable to generate it; creating bogus VERSION" >&5 10180$as_echo "Missing VERSION file, and unable to generate it; creating bogus VERSION" >&6; } 10181 echo "0.0.0-0-g0000000000000000000000000000000000000000" > "${objroot}VERSION" 10182 else 10183 cp ${srcroot}VERSION ${objroot}VERSION 10184 fi 10185fi 10186jemalloc_version=`cat "${objroot}VERSION"` 10187jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'` 10188jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'` 10189jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'` 10190jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'` 10191jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'` 10192 10193 10194 10195 10196 10197 10198 10199 10200if test "x$abi" != "xpecoff" ; then 10201 $as_echo "#define JEMALLOC_HAVE_PTHREAD " >>confdefs.h 10202 10203 for ac_header in pthread.h 10204do : 10205 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 10206if test "x$ac_cv_header_pthread_h" = xyes; then : 10207 cat >>confdefs.h <<_ACEOF 10208#define HAVE_PTHREAD_H 1 10209_ACEOF 10210 10211else 10212 as_fn_error $? "pthread.h is missing" "$LINENO" 5 10213fi 10214 10215done 10216 10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 10218$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 10219if ${ac_cv_lib_pthread_pthread_create+:} false; then : 10220 $as_echo_n "(cached) " >&6 10221else 10222 ac_check_lib_save_LIBS=$LIBS 10223LIBS="-lpthread $LIBS" 10224cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10225/* end confdefs.h. */ 10226 10227/* Override any GCC internal prototype to avoid an error. 10228 Use char because int might match the return type of a GCC 10229 builtin and then its argument prototype would still apply. */ 10230#ifdef __cplusplus 10231extern "C" 10232#endif 10233char pthread_create (); 10234int 10235main () 10236{ 10237return pthread_create (); 10238 ; 10239 return 0; 10240} 10241_ACEOF 10242if ac_fn_c_try_link "$LINENO"; then : 10243 ac_cv_lib_pthread_pthread_create=yes 10244else 10245 ac_cv_lib_pthread_pthread_create=no 10246fi 10247rm -f core conftest.err conftest.$ac_objext \ 10248 conftest$ac_exeext conftest.$ac_ext 10249LIBS=$ac_check_lib_save_LIBS 10250fi 10251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 10252$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 10253if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 10254 T_APPEND_V=-lpthread 10255 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 10256 LIBS="${LIBS}${T_APPEND_V}" 10257else 10258 LIBS="${LIBS} ${T_APPEND_V}" 10259fi 10260 10261 10262else 10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 10264$as_echo_n "checking for library containing pthread_create... " >&6; } 10265if ${ac_cv_search_pthread_create+:} false; then : 10266 $as_echo_n "(cached) " >&6 10267else 10268 ac_func_search_save_LIBS=$LIBS 10269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10270/* end confdefs.h. */ 10271 10272/* Override any GCC internal prototype to avoid an error. 10273 Use char because int might match the return type of a GCC 10274 builtin and then its argument prototype would still apply. */ 10275#ifdef __cplusplus 10276extern "C" 10277#endif 10278char pthread_create (); 10279int 10280main () 10281{ 10282return pthread_create (); 10283 ; 10284 return 0; 10285} 10286_ACEOF 10287for ac_lib in '' ; do 10288 if test -z "$ac_lib"; then 10289 ac_res="none required" 10290 else 10291 ac_res=-l$ac_lib 10292 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10293 fi 10294 if ac_fn_c_try_link "$LINENO"; then : 10295 ac_cv_search_pthread_create=$ac_res 10296fi 10297rm -f core conftest.err conftest.$ac_objext \ 10298 conftest$ac_exeext 10299 if ${ac_cv_search_pthread_create+:} false; then : 10300 break 10301fi 10302done 10303if ${ac_cv_search_pthread_create+:} false; then : 10304 10305else 10306 ac_cv_search_pthread_create=no 10307fi 10308rm conftest.$ac_ext 10309LIBS=$ac_func_search_save_LIBS 10310fi 10311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 10312$as_echo "$ac_cv_search_pthread_create" >&6; } 10313ac_res=$ac_cv_search_pthread_create 10314if test "$ac_res" != no; then : 10315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10316 10317else 10318 as_fn_error $? "libpthread is missing" "$LINENO" 5 10319fi 10320 10321fi 10322 10323 wrap_syms="${wrap_syms} pthread_create" 10324 have_pthread="1" 10325 have_dlsym="1" 10326 for ac_header in dlfcn.h 10327do : 10328 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 10329if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10330 cat >>confdefs.h <<_ACEOF 10331#define HAVE_DLFCN_H 1 10332_ACEOF 10333 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" 10334if test "x$ac_cv_func_dlsym" = xyes; then : 10335 10336else 10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 10338$as_echo_n "checking for dlsym in -ldl... " >&6; } 10339if ${ac_cv_lib_dl_dlsym+:} false; then : 10340 $as_echo_n "(cached) " >&6 10341else 10342 ac_check_lib_save_LIBS=$LIBS 10343LIBS="-ldl $LIBS" 10344cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10345/* end confdefs.h. */ 10346 10347/* Override any GCC internal prototype to avoid an error. 10348 Use char because int might match the return type of a GCC 10349 builtin and then its argument prototype would still apply. */ 10350#ifdef __cplusplus 10351extern "C" 10352#endif 10353char dlsym (); 10354int 10355main () 10356{ 10357return dlsym (); 10358 ; 10359 return 0; 10360} 10361_ACEOF 10362if ac_fn_c_try_link "$LINENO"; then : 10363 ac_cv_lib_dl_dlsym=yes 10364else 10365 ac_cv_lib_dl_dlsym=no 10366fi 10367rm -f core conftest.err conftest.$ac_objext \ 10368 conftest$ac_exeext conftest.$ac_ext 10369LIBS=$ac_check_lib_save_LIBS 10370fi 10371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 10372$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 10373if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 10374 LIBS="$LIBS -ldl" 10375else 10376 have_dlsym="0" 10377fi 10378 10379fi 10380 10381else 10382 have_dlsym="0" 10383fi 10384 10385done 10386 10387 if test "x$have_dlsym" = "x1" ; then 10388 $as_echo "#define JEMALLOC_HAVE_DLSYM " >>confdefs.h 10389 10390 fi 10391 10392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_atfork(3) is compilable" >&5 10393$as_echo_n "checking whether pthread_atfork(3) is compilable... " >&6; } 10394if ${je_cv_pthread_atfork+:} false; then : 10395 $as_echo_n "(cached) " >&6 10396else 10397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10398/* end confdefs.h. */ 10399 10400#include <pthread.h> 10401 10402int 10403main () 10404{ 10405 10406 pthread_atfork((void *)0, (void *)0, (void *)0); 10407 10408 ; 10409 return 0; 10410} 10411_ACEOF 10412if ac_fn_c_try_link "$LINENO"; then : 10413 je_cv_pthread_atfork=yes 10414else 10415 je_cv_pthread_atfork=no 10416fi 10417rm -f core conftest.err conftest.$ac_objext \ 10418 conftest$ac_exeext conftest.$ac_ext 10419fi 10420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_atfork" >&5 10421$as_echo "$je_cv_pthread_atfork" >&6; } 10422 10423 if test "x${je_cv_pthread_atfork}" = "xyes" ; then 10424 $as_echo "#define JEMALLOC_HAVE_PTHREAD_ATFORK " >>confdefs.h 10425 10426 fi 10427 10428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np(3) is compilable" >&5 10429$as_echo_n "checking whether pthread_setname_np(3) is compilable... " >&6; } 10430if ${je_cv_pthread_setname_np+:} false; then : 10431 $as_echo_n "(cached) " >&6 10432else 10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10434/* end confdefs.h. */ 10435 10436#include <pthread.h> 10437 10438int 10439main () 10440{ 10441 10442 pthread_setname_np(pthread_self(), "setname_test"); 10443 10444 ; 10445 return 0; 10446} 10447_ACEOF 10448if ac_fn_c_try_link "$LINENO"; then : 10449 je_cv_pthread_setname_np=yes 10450else 10451 je_cv_pthread_setname_np=no 10452fi 10453rm -f core conftest.err conftest.$ac_objext \ 10454 conftest$ac_exeext conftest.$ac_ext 10455fi 10456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_setname_np" >&5 10457$as_echo "$je_cv_pthread_setname_np" >&6; } 10458 10459 if test "x${je_cv_pthread_setname_np}" = "xyes" ; then 10460 $as_echo "#define JEMALLOC_HAVE_PTHREAD_SETNAME_NP " >>confdefs.h 10461 10462 fi 10463fi 10464 10465T_APPEND_V=-D_REENTRANT 10466 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 10467 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}" 10468else 10469 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}" 10470fi 10471 10472 10473 10474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 10475$as_echo_n "checking for library containing clock_gettime... " >&6; } 10476if ${ac_cv_search_clock_gettime+:} false; then : 10477 $as_echo_n "(cached) " >&6 10478else 10479 ac_func_search_save_LIBS=$LIBS 10480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10481/* end confdefs.h. */ 10482 10483/* Override any GCC internal prototype to avoid an error. 10484 Use char because int might match the return type of a GCC 10485 builtin and then its argument prototype would still apply. */ 10486#ifdef __cplusplus 10487extern "C" 10488#endif 10489char clock_gettime (); 10490int 10491main () 10492{ 10493return clock_gettime (); 10494 ; 10495 return 0; 10496} 10497_ACEOF 10498for ac_lib in '' rt; do 10499 if test -z "$ac_lib"; then 10500 ac_res="none required" 10501 else 10502 ac_res=-l$ac_lib 10503 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10504 fi 10505 if ac_fn_c_try_link "$LINENO"; then : 10506 ac_cv_search_clock_gettime=$ac_res 10507fi 10508rm -f core conftest.err conftest.$ac_objext \ 10509 conftest$ac_exeext 10510 if ${ac_cv_search_clock_gettime+:} false; then : 10511 break 10512fi 10513done 10514if ${ac_cv_search_clock_gettime+:} false; then : 10515 10516else 10517 ac_cv_search_clock_gettime=no 10518fi 10519rm conftest.$ac_ext 10520LIBS=$ac_func_search_save_LIBS 10521fi 10522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 10523$as_echo "$ac_cv_search_clock_gettime" >&6; } 10524ac_res=$ac_cv_search_clock_gettime 10525if test "$ac_res" != no; then : 10526 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10527 10528fi 10529 10530 10531if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then 10532 if test "$ac_cv_search_clock_gettime" != "-lrt"; then 10533 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 10534 10535 10536 unset ac_cv_search_clock_gettime 10537 10538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -dynamic" >&5 10539$as_echo_n "checking whether compiler supports -dynamic... " >&6; } 10540T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 10541T_APPEND_V=-dynamic 10542 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 10543 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 10544else 10545 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 10546fi 10547 10548 10549if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 10550 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 10551else 10552 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 10553fi 10554 10555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10556/* end confdefs.h. */ 10557 10558 10559int 10560main () 10561{ 10562 10563 return 0; 10564 10565 ; 10566 return 0; 10567} 10568_ACEOF 10569if ac_fn_c_try_compile "$LINENO"; then : 10570 je_cv_cflags_added=-dynamic 10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10572$as_echo "yes" >&6; } 10573else 10574 je_cv_cflags_added= 10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10576$as_echo "no" >&6; } 10577 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 10578 10579fi 10580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10581if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 10582 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 10583else 10584 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 10585fi 10586 10587 10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 10589$as_echo_n "checking for library containing clock_gettime... " >&6; } 10590if ${ac_cv_search_clock_gettime+:} false; then : 10591 $as_echo_n "(cached) " >&6 10592else 10593 ac_func_search_save_LIBS=$LIBS 10594cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10595/* end confdefs.h. */ 10596 10597/* Override any GCC internal prototype to avoid an error. 10598 Use char because int might match the return type of a GCC 10599 builtin and then its argument prototype would still apply. */ 10600#ifdef __cplusplus 10601extern "C" 10602#endif 10603char clock_gettime (); 10604int 10605main () 10606{ 10607return clock_gettime (); 10608 ; 10609 return 0; 10610} 10611_ACEOF 10612for ac_lib in '' rt; do 10613 if test -z "$ac_lib"; then 10614 ac_res="none required" 10615 else 10616 ac_res=-l$ac_lib 10617 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10618 fi 10619 if ac_fn_c_try_link "$LINENO"; then : 10620 ac_cv_search_clock_gettime=$ac_res 10621fi 10622rm -f core conftest.err conftest.$ac_objext \ 10623 conftest$ac_exeext 10624 if ${ac_cv_search_clock_gettime+:} false; then : 10625 break 10626fi 10627done 10628if ${ac_cv_search_clock_gettime+:} false; then : 10629 10630else 10631 ac_cv_search_clock_gettime=no 10632fi 10633rm conftest.$ac_ext 10634LIBS=$ac_func_search_save_LIBS 10635fi 10636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 10637$as_echo "$ac_cv_search_clock_gettime" >&6; } 10638ac_res=$ac_cv_search_clock_gettime 10639if test "$ac_res" != no; then : 10640 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10641 10642fi 10643 10644 10645 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}" 10646if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 10647 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 10648else 10649 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 10650fi 10651 10652 10653 fi 10654fi 10655 10656 10657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable" >&5 10658$as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... " >&6; } 10659if ${je_cv_clock_monotonic_coarse+:} false; then : 10660 $as_echo_n "(cached) " >&6 10661else 10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10663/* end confdefs.h. */ 10664 10665#include <time.h> 10666 10667int 10668main () 10669{ 10670 10671 struct timespec ts; 10672 10673 clock_gettime(CLOCK_MONOTONIC_COARSE, &ts); 10674 10675 ; 10676 return 0; 10677} 10678_ACEOF 10679if ac_fn_c_try_link "$LINENO"; then : 10680 je_cv_clock_monotonic_coarse=yes 10681else 10682 je_cv_clock_monotonic_coarse=no 10683fi 10684rm -f core conftest.err conftest.$ac_objext \ 10685 conftest$ac_exeext conftest.$ac_ext 10686fi 10687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic_coarse" >&5 10688$as_echo "$je_cv_clock_monotonic_coarse" >&6; } 10689 10690if test "x${je_cv_clock_monotonic_coarse}" = "xyes" ; then 10691 $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1" >>confdefs.h 10692 10693fi 10694 10695 10696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable" >&5 10697$as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... " >&6; } 10698if ${je_cv_clock_monotonic+:} false; then : 10699 $as_echo_n "(cached) " >&6 10700else 10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10702/* end confdefs.h. */ 10703 10704#include <unistd.h> 10705#include <time.h> 10706 10707int 10708main () 10709{ 10710 10711 struct timespec ts; 10712 10713 clock_gettime(CLOCK_MONOTONIC, &ts); 10714#if !defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK < 0 10715# error _POSIX_MONOTONIC_CLOCK missing/invalid 10716#endif 10717 10718 ; 10719 return 0; 10720} 10721_ACEOF 10722if ac_fn_c_try_link "$LINENO"; then : 10723 je_cv_clock_monotonic=yes 10724else 10725 je_cv_clock_monotonic=no 10726fi 10727rm -f core conftest.err conftest.$ac_objext \ 10728 conftest$ac_exeext conftest.$ac_ext 10729fi 10730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic" >&5 10731$as_echo "$je_cv_clock_monotonic" >&6; } 10732 10733if test "x${je_cv_clock_monotonic}" = "xyes" ; then 10734 $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC 1" >>confdefs.h 10735 10736fi 10737 10738 10739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mach_absolute_time() is compilable" >&5 10740$as_echo_n "checking whether mach_absolute_time() is compilable... " >&6; } 10741if ${je_cv_mach_absolute_time+:} false; then : 10742 $as_echo_n "(cached) " >&6 10743else 10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10745/* end confdefs.h. */ 10746 10747#include <mach/mach_time.h> 10748 10749int 10750main () 10751{ 10752 10753 mach_absolute_time(); 10754 10755 ; 10756 return 0; 10757} 10758_ACEOF 10759if ac_fn_c_try_link "$LINENO"; then : 10760 je_cv_mach_absolute_time=yes 10761else 10762 je_cv_mach_absolute_time=no 10763fi 10764rm -f core conftest.err conftest.$ac_objext \ 10765 conftest$ac_exeext conftest.$ac_ext 10766fi 10767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mach_absolute_time" >&5 10768$as_echo "$je_cv_mach_absolute_time" >&6; } 10769 10770if test "x${je_cv_mach_absolute_time}" = "xyes" ; then 10771 $as_echo "#define JEMALLOC_HAVE_MACH_ABSOLUTE_TIME 1" >>confdefs.h 10772 10773fi 10774 10775# Check whether --enable-syscall was given. 10776if test "${enable_syscall+set}" = set; then : 10777 enableval=$enable_syscall; if test "x$enable_syscall" = "xno" ; then 10778 enable_syscall="0" 10779else 10780 enable_syscall="1" 10781fi 10782 10783else 10784 enable_syscall="1" 10785 10786fi 10787 10788if test "x$enable_syscall" = "x1" ; then 10789 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 10790 10791 10792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 10793$as_echo_n "checking whether compiler supports -Werror... " >&6; } 10794T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 10795T_APPEND_V=-Werror 10796 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 10797 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 10798else 10799 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 10800fi 10801 10802 10803if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 10804 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 10805else 10806 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 10807fi 10808 10809cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10810/* end confdefs.h. */ 10811 10812 10813int 10814main () 10815{ 10816 10817 return 0; 10818 10819 ; 10820 return 0; 10821} 10822_ACEOF 10823if ac_fn_c_try_compile "$LINENO"; then : 10824 je_cv_cflags_added=-Werror 10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10826$as_echo "yes" >&6; } 10827else 10828 je_cv_cflags_added= 10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10830$as_echo "no" >&6; } 10831 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 10832 10833fi 10834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10835if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 10836 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 10837else 10838 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 10839fi 10840 10841 10842 10843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syscall(2) is compilable" >&5 10844$as_echo_n "checking whether syscall(2) is compilable... " >&6; } 10845if ${je_cv_syscall+:} false; then : 10846 $as_echo_n "(cached) " >&6 10847else 10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10849/* end confdefs.h. */ 10850 10851#include <sys/syscall.h> 10852#include <unistd.h> 10853 10854int 10855main () 10856{ 10857 10858 syscall(SYS_write, 2, "hello", 5); 10859 10860 ; 10861 return 0; 10862} 10863_ACEOF 10864if ac_fn_c_try_link "$LINENO"; then : 10865 je_cv_syscall=yes 10866else 10867 je_cv_syscall=no 10868fi 10869rm -f core conftest.err conftest.$ac_objext \ 10870 conftest$ac_exeext conftest.$ac_ext 10871fi 10872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_syscall" >&5 10873$as_echo "$je_cv_syscall" >&6; } 10874 10875 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}" 10876if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 10877 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 10878else 10879 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 10880fi 10881 10882 10883 if test "x$je_cv_syscall" = "xyes" ; then 10884 $as_echo "#define JEMALLOC_USE_SYSCALL " >>confdefs.h 10885 10886 fi 10887fi 10888 10889ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv" 10890if test "x$ac_cv_func_secure_getenv" = xyes; then : 10891 have_secure_getenv="1" 10892else 10893 have_secure_getenv="0" 10894 10895fi 10896 10897if test "x$have_secure_getenv" = "x1" ; then 10898 $as_echo "#define JEMALLOC_HAVE_SECURE_GETENV " >>confdefs.h 10899 10900fi 10901 10902ac_fn_c_check_func "$LINENO" "sched_getcpu" "ac_cv_func_sched_getcpu" 10903if test "x$ac_cv_func_sched_getcpu" = xyes; then : 10904 have_sched_getcpu="1" 10905else 10906 have_sched_getcpu="0" 10907 10908fi 10909 10910if test "x$have_sched_getcpu" = "x1" ; then 10911 $as_echo "#define JEMALLOC_HAVE_SCHED_GETCPU " >>confdefs.h 10912 10913fi 10914 10915ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity" 10916if test "x$ac_cv_func_sched_setaffinity" = xyes; then : 10917 have_sched_setaffinity="1" 10918else 10919 have_sched_setaffinity="0" 10920 10921fi 10922 10923if test "x$have_sched_setaffinity" = "x1" ; then 10924 $as_echo "#define JEMALLOC_HAVE_SCHED_SETAFFINITY " >>confdefs.h 10925 10926fi 10927 10928ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" 10929if test "x$ac_cv_func_issetugid" = xyes; then : 10930 have_issetugid="1" 10931else 10932 have_issetugid="0" 10933 10934fi 10935 10936if test "x$have_issetugid" = "x1" ; then 10937 $as_echo "#define JEMALLOC_HAVE_ISSETUGID " >>confdefs.h 10938 10939fi 10940 10941ac_fn_c_check_func "$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup" 10942if test "x$ac_cv_func__malloc_thread_cleanup" = xyes; then : 10943 have__malloc_thread_cleanup="1" 10944else 10945 have__malloc_thread_cleanup="0" 10946 10947fi 10948 10949if test "x$have__malloc_thread_cleanup" = "x1" ; then 10950 $as_echo "#define JEMALLOC_MALLOC_THREAD_CLEANUP " >>confdefs.h 10951 10952 wrap_syms="${wrap_syms} _malloc_thread_cleanup" 10953 force_tls="1" 10954fi 10955 10956ac_fn_c_check_func "$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb" 10957if test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes; then : 10958 have__pthread_mutex_init_calloc_cb="1" 10959else 10960 have__pthread_mutex_init_calloc_cb="0" 10961 10962fi 10963 10964if test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then 10965 $as_echo "#define JEMALLOC_MUTEX_INIT_CB 1" >>confdefs.h 10966 10967 wrap_syms="${wrap_syms} _malloc_prefork _malloc_postfork" 10968fi 10969 10970# Check whether --enable-lazy_lock was given. 10971if test "${enable_lazy_lock+set}" = set; then : 10972 enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then 10973 enable_lazy_lock="0" 10974else 10975 enable_lazy_lock="1" 10976fi 10977 10978else 10979 enable_lazy_lock="" 10980 10981fi 10982 10983if test "x${enable_lazy_lock}" = "x" ; then 10984 if test "x${force_lazy_lock}" = "x1" ; then 10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5 10986$as_echo "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; } 10987 enable_lazy_lock="1" 10988 else 10989 enable_lazy_lock="0" 10990 fi 10991fi 10992if test "x${enable_lazy_lock}" = "x1" -a "x${abi}" = "xpecoff" ; then 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no lazy-lock because thread creation monitoring is unimplemented" >&5 10994$as_echo "Forcing no lazy-lock because thread creation monitoring is unimplemented" >&6; } 10995 enable_lazy_lock="0" 10996fi 10997if test "x$enable_lazy_lock" = "x1" ; then 10998 if test "x$have_dlsym" = "x1" ; then 10999 $as_echo "#define JEMALLOC_LAZY_LOCK " >>confdefs.h 11000 11001 else 11002 as_fn_error $? "Missing dlsym support: lazy-lock cannot be enabled." "$LINENO" 5 11003 fi 11004fi 11005 11006 11007if test "x${force_tls}" = "x1" ; then 11008 enable_tls="1" 11009elif test "x${force_tls}" = "x0" ; then 11010 enable_tls="0" 11011else 11012 enable_tls="1" 11013fi 11014if test "x${enable_tls}" = "x1" ; then 11015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5 11016$as_echo_n "checking for TLS... " >&6; } 11017cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11018/* end confdefs.h. */ 11019 11020 __thread int x; 11021 11022int 11023main () 11024{ 11025 11026 x = 42; 11027 11028 return 0; 11029 11030 ; 11031 return 0; 11032} 11033_ACEOF 11034if ac_fn_c_try_compile "$LINENO"; then : 11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11036$as_echo "yes" >&6; } 11037else 11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11039$as_echo "no" >&6; } 11040 enable_tls="0" 11041fi 11042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11043else 11044 enable_tls="0" 11045fi 11046 11047if test "x${enable_tls}" = "x1" ; then 11048 cat >>confdefs.h <<_ACEOF 11049#define JEMALLOC_TLS 11050_ACEOF 11051 11052fi 11053 11054 11055 11056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 atomics is compilable" >&5 11057$as_echo_n "checking whether C11 atomics is compilable... " >&6; } 11058if ${je_cv_c11_atomics+:} false; then : 11059 $as_echo_n "(cached) " >&6 11060else 11061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11062/* end confdefs.h. */ 11063 11064#include <stdint.h> 11065#if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_ATOMICS__) 11066#include <stdatomic.h> 11067#else 11068#error Atomics not available 11069#endif 11070 11071int 11072main () 11073{ 11074 11075 uint64_t *p = (uint64_t *)0; 11076 uint64_t x = 1; 11077 volatile atomic_uint_least64_t *a = (volatile atomic_uint_least64_t *)p; 11078 uint64_t r = atomic_fetch_add(a, x) + x; 11079 return r == 0; 11080 11081 ; 11082 return 0; 11083} 11084_ACEOF 11085if ac_fn_c_try_link "$LINENO"; then : 11086 je_cv_c11_atomics=yes 11087else 11088 je_cv_c11_atomics=no 11089fi 11090rm -f core conftest.err conftest.$ac_objext \ 11091 conftest$ac_exeext conftest.$ac_ext 11092fi 11093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_c11_atomics" >&5 11094$as_echo "$je_cv_c11_atomics" >&6; } 11095 11096if test "x${je_cv_c11_atomics}" = "xyes" ; then 11097 $as_echo "#define JEMALLOC_C11_ATOMICS 1" >>confdefs.h 11098 11099fi 11100 11101 11102 11103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __atomic atomics is compilable" >&5 11104$as_echo_n "checking whether GCC __atomic atomics is compilable... " >&6; } 11105if ${je_cv_gcc_atomic_atomics+:} false; then : 11106 $as_echo_n "(cached) " >&6 11107else 11108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11109/* end confdefs.h. */ 11110 11111 11112int 11113main () 11114{ 11115 11116 int x = 0; 11117 int val = 1; 11118 int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED); 11119 int after_add = x; 11120 return after_add == 1; 11121 11122 ; 11123 return 0; 11124} 11125_ACEOF 11126if ac_fn_c_try_link "$LINENO"; then : 11127 je_cv_gcc_atomic_atomics=yes 11128else 11129 je_cv_gcc_atomic_atomics=no 11130fi 11131rm -f core conftest.err conftest.$ac_objext \ 11132 conftest$ac_exeext conftest.$ac_ext 11133fi 11134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_atomic_atomics" >&5 11135$as_echo "$je_cv_gcc_atomic_atomics" >&6; } 11136 11137if test "x${je_cv_gcc_atomic_atomics}" = "xyes" ; then 11138 $as_echo "#define JEMALLOC_GCC_ATOMIC_ATOMICS 1" >>confdefs.h 11139 11140fi 11141 11142 11143 11144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __sync atomics is compilable" >&5 11145$as_echo_n "checking whether GCC __sync atomics is compilable... " >&6; } 11146if ${je_cv_gcc_sync_atomics+:} false; then : 11147 $as_echo_n "(cached) " >&6 11148else 11149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11150/* end confdefs.h. */ 11151 11152 11153int 11154main () 11155{ 11156 11157 int x = 0; 11158 int before_add = __sync_fetch_and_add(&x, 1); 11159 int after_add = x; 11160 return (before_add == 0) && (after_add == 1); 11161 11162 ; 11163 return 0; 11164} 11165_ACEOF 11166if ac_fn_c_try_link "$LINENO"; then : 11167 je_cv_gcc_sync_atomics=yes 11168else 11169 je_cv_gcc_sync_atomics=no 11170fi 11171rm -f core conftest.err conftest.$ac_objext \ 11172 conftest$ac_exeext conftest.$ac_ext 11173fi 11174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_sync_atomics" >&5 11175$as_echo "$je_cv_gcc_sync_atomics" >&6; } 11176 11177if test "x${je_cv_gcc_sync_atomics}" = "xyes" ; then 11178 $as_echo "#define JEMALLOC_GCC_SYNC_ATOMICS 1" >>confdefs.h 11179 11180fi 11181 11182 11183 11184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5 11185$as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; } 11186if ${je_cv_osatomic+:} false; then : 11187 $as_echo_n "(cached) " >&6 11188else 11189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11190/* end confdefs.h. */ 11191 11192#include <libkern/OSAtomic.h> 11193#include <inttypes.h> 11194 11195int 11196main () 11197{ 11198 11199 { 11200 int32_t x32 = 0; 11201 volatile int32_t *x32p = &x32; 11202 OSAtomicAdd32(1, x32p); 11203 } 11204 { 11205 int64_t x64 = 0; 11206 volatile int64_t *x64p = &x64; 11207 OSAtomicAdd64(1, x64p); 11208 } 11209 11210 ; 11211 return 0; 11212} 11213_ACEOF 11214if ac_fn_c_try_link "$LINENO"; then : 11215 je_cv_osatomic=yes 11216else 11217 je_cv_osatomic=no 11218fi 11219rm -f core conftest.err conftest.$ac_objext \ 11220 conftest$ac_exeext conftest.$ac_ext 11221fi 11222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5 11223$as_echo "$je_cv_osatomic" >&6; } 11224 11225if test "x${je_cv_osatomic}" = "xyes" ; then 11226 $as_echo "#define JEMALLOC_OSATOMIC " >>confdefs.h 11227 11228fi 11229 11230 11231 11232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(2) is compilable" >&5 11233$as_echo_n "checking whether madvise(2) is compilable... " >&6; } 11234if ${je_cv_madvise+:} false; then : 11235 $as_echo_n "(cached) " >&6 11236else 11237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11238/* end confdefs.h. */ 11239 11240#include <sys/mman.h> 11241 11242int 11243main () 11244{ 11245 11246 madvise((void *)0, 0, 0); 11247 11248 ; 11249 return 0; 11250} 11251_ACEOF 11252if ac_fn_c_try_link "$LINENO"; then : 11253 je_cv_madvise=yes 11254else 11255 je_cv_madvise=no 11256fi 11257rm -f core conftest.err conftest.$ac_objext \ 11258 conftest$ac_exeext conftest.$ac_ext 11259fi 11260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madvise" >&5 11261$as_echo "$je_cv_madvise" >&6; } 11262 11263if test "x${je_cv_madvise}" = "xyes" ; then 11264 $as_echo "#define JEMALLOC_HAVE_MADVISE " >>confdefs.h 11265 11266 11267 11268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_FREE) is compilable" >&5 11269$as_echo_n "checking whether madvise(..., MADV_FREE) is compilable... " >&6; } 11270if ${je_cv_madv_free+:} false; then : 11271 $as_echo_n "(cached) " >&6 11272else 11273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11274/* end confdefs.h. */ 11275 11276#include <sys/mman.h> 11277 11278int 11279main () 11280{ 11281 11282 madvise((void *)0, 0, MADV_FREE); 11283 11284 ; 11285 return 0; 11286} 11287_ACEOF 11288if ac_fn_c_try_link "$LINENO"; then : 11289 je_cv_madv_free=yes 11290else 11291 je_cv_madv_free=no 11292fi 11293rm -f core conftest.err conftest.$ac_objext \ 11294 conftest$ac_exeext conftest.$ac_ext 11295fi 11296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_free" >&5 11297$as_echo "$je_cv_madv_free" >&6; } 11298 11299 if test "x${je_cv_madv_free}" = "xyes" ; then 11300 $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h 11301 11302 elif test "x${je_cv_madvise}" = "xyes" ; then 11303 case "${host_cpu}" in i686|x86_64) 11304 case "${host}" in *-*-linux*) 11305 $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h 11306 11307 $as_echo "#define JEMALLOC_DEFINE_MADVISE_FREE " >>confdefs.h 11308 11309 ;; 11310 esac 11311 ;; 11312 esac 11313 fi 11314 11315 11316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DONTNEED) is compilable" >&5 11317$as_echo_n "checking whether madvise(..., MADV_DONTNEED) is compilable... " >&6; } 11318if ${je_cv_madv_dontneed+:} false; then : 11319 $as_echo_n "(cached) " >&6 11320else 11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11322/* end confdefs.h. */ 11323 11324#include <sys/mman.h> 11325 11326int 11327main () 11328{ 11329 11330 madvise((void *)0, 0, MADV_DONTNEED); 11331 11332 ; 11333 return 0; 11334} 11335_ACEOF 11336if ac_fn_c_try_link "$LINENO"; then : 11337 je_cv_madv_dontneed=yes 11338else 11339 je_cv_madv_dontneed=no 11340fi 11341rm -f core conftest.err conftest.$ac_objext \ 11342 conftest$ac_exeext conftest.$ac_ext 11343fi 11344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontneed" >&5 11345$as_echo "$je_cv_madv_dontneed" >&6; } 11346 11347 if test "x${je_cv_madv_dontneed}" = "xyes" ; then 11348 $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED " >>confdefs.h 11349 11350 fi 11351 11352 11353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DO[NT]DUMP) is compilable" >&5 11354$as_echo_n "checking whether madvise(..., MADV_DO[NT]DUMP) is compilable... " >&6; } 11355if ${je_cv_madv_dontdump+:} false; then : 11356 $as_echo_n "(cached) " >&6 11357else 11358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11359/* end confdefs.h. */ 11360 11361#include <sys/mman.h> 11362 11363int 11364main () 11365{ 11366 11367 madvise((void *)0, 0, MADV_DONTDUMP); 11368 madvise((void *)0, 0, MADV_DODUMP); 11369 11370 ; 11371 return 0; 11372} 11373_ACEOF 11374if ac_fn_c_try_link "$LINENO"; then : 11375 je_cv_madv_dontdump=yes 11376else 11377 je_cv_madv_dontdump=no 11378fi 11379rm -f core conftest.err conftest.$ac_objext \ 11380 conftest$ac_exeext conftest.$ac_ext 11381fi 11382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontdump" >&5 11383$as_echo "$je_cv_madv_dontdump" >&6; } 11384 11385 if test "x${je_cv_madv_dontdump}" = "xyes" ; then 11386 $as_echo "#define JEMALLOC_MADVISE_DONTDUMP " >>confdefs.h 11387 11388 fi 11389 11390 11391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable" >&5 11392$as_echo_n "checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable... " >&6; } 11393if ${je_cv_thp+:} false; then : 11394 $as_echo_n "(cached) " >&6 11395else 11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11397/* end confdefs.h. */ 11398 11399#include <sys/mman.h> 11400 11401int 11402main () 11403{ 11404 11405 madvise((void *)0, 0, MADV_HUGEPAGE); 11406 madvise((void *)0, 0, MADV_NOHUGEPAGE); 11407 11408 ; 11409 return 0; 11410} 11411_ACEOF 11412if ac_fn_c_try_link "$LINENO"; then : 11413 je_cv_thp=yes 11414else 11415 je_cv_thp=no 11416fi 11417rm -f core conftest.err conftest.$ac_objext \ 11418 conftest$ac_exeext conftest.$ac_ext 11419fi 11420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_thp" >&5 11421$as_echo "$je_cv_thp" >&6; } 11422 11423case "${host_cpu}" in 11424 arm*) 11425 ;; 11426 *) 11427 if test "x${je_cv_thp}" = "xyes" ; then 11428 $as_echo "#define JEMALLOC_HAVE_MADVISE_HUGE " >>confdefs.h 11429 11430 fi 11431 ;; 11432esac 11433fi 11434 11435 11436 11437 11438if test "x${je_cv_atomic9}" != "xyes" -a "x${je_cv_osatomic}" != "xyes" ; then 11439 11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 32-bit __sync_{add,sub}_and_fetch()" >&5 11441$as_echo_n "checking whether to force 32-bit __sync_{add,sub}_and_fetch()... " >&6; } 11442if ${je_cv_sync_compare_and_swap_4+:} false; then : 11443 $as_echo_n "(cached) " >&6 11444else 11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11446/* end confdefs.h. */ 11447 11448 #include <stdint.h> 11449 11450int 11451main () 11452{ 11453 11454 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 11455 { 11456 uint32_t x32 = 0; 11457 __sync_add_and_fetch(&x32, 42); 11458 __sync_sub_and_fetch(&x32, 1); 11459 } 11460 #else 11461 #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is defined, no need to force 11462 #endif 11463 11464 ; 11465 return 0; 11466} 11467_ACEOF 11468if ac_fn_c_try_link "$LINENO"; then : 11469 je_cv_sync_compare_and_swap_4=yes 11470else 11471 je_cv_sync_compare_and_swap_4=no 11472fi 11473rm -f core conftest.err conftest.$ac_objext \ 11474 conftest$ac_exeext conftest.$ac_ext 11475fi 11476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_4" >&5 11477$as_echo "$je_cv_sync_compare_and_swap_4" >&6; } 11478 11479 if test "x${je_cv_sync_compare_and_swap_4}" = "xyes" ; then 11480 $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_4 " >>confdefs.h 11481 11482 fi 11483 11484 11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 64-bit __sync_{add,sub}_and_fetch()" >&5 11486$as_echo_n "checking whether to force 64-bit __sync_{add,sub}_and_fetch()... " >&6; } 11487if ${je_cv_sync_compare_and_swap_8+:} false; then : 11488 $as_echo_n "(cached) " >&6 11489else 11490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11491/* end confdefs.h. */ 11492 11493 #include <stdint.h> 11494 11495int 11496main () 11497{ 11498 11499 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 11500 { 11501 uint64_t x64 = 0; 11502 __sync_add_and_fetch(&x64, 42); 11503 __sync_sub_and_fetch(&x64, 1); 11504 } 11505 #else 11506 #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 is defined, no need to force 11507 #endif 11508 11509 ; 11510 return 0; 11511} 11512_ACEOF 11513if ac_fn_c_try_link "$LINENO"; then : 11514 je_cv_sync_compare_and_swap_8=yes 11515else 11516 je_cv_sync_compare_and_swap_8=no 11517fi 11518rm -f core conftest.err conftest.$ac_objext \ 11519 conftest$ac_exeext conftest.$ac_ext 11520fi 11521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_8" >&5 11522$as_echo "$je_cv_sync_compare_and_swap_8" >&6; } 11523 11524 if test "x${je_cv_sync_compare_and_swap_8}" = "xyes" ; then 11525 $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_8 " >>confdefs.h 11526 11527 fi 11528 11529fi 11530 11531 11532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5 11533$as_echo_n "checking for __builtin_clz... " >&6; } 11534if ${je_cv_builtin_clz+:} false; then : 11535 $as_echo_n "(cached) " >&6 11536else 11537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11538/* end confdefs.h. */ 11539 11540int 11541main () 11542{ 11543 11544 { 11545 unsigned x = 0; 11546 int y = __builtin_clz(x); 11547 } 11548 { 11549 unsigned long x = 0; 11550 int y = __builtin_clzl(x); 11551 } 11552 11553 ; 11554 return 0; 11555} 11556_ACEOF 11557if ac_fn_c_try_link "$LINENO"; then : 11558 je_cv_builtin_clz=yes 11559else 11560 je_cv_builtin_clz=no 11561fi 11562rm -f core conftest.err conftest.$ac_objext \ 11563 conftest$ac_exeext conftest.$ac_ext 11564fi 11565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_builtin_clz" >&5 11566$as_echo "$je_cv_builtin_clz" >&6; } 11567 11568if test "x${je_cv_builtin_clz}" = "xyes" ; then 11569 $as_echo "#define JEMALLOC_HAVE_BUILTIN_CLZ " >>confdefs.h 11570 11571fi 11572 11573 11574 11575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin os_unfair_lock_*() is compilable" >&5 11576$as_echo_n "checking whether Darwin os_unfair_lock_*() is compilable... " >&6; } 11577if ${je_cv_os_unfair_lock+:} false; then : 11578 $as_echo_n "(cached) " >&6 11579else 11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11581/* end confdefs.h. */ 11582 11583#include <os/lock.h> 11584#include <AvailabilityMacros.h> 11585 11586int 11587main () 11588{ 11589 11590 #if MAC_OS_X_VERSION_MIN_REQUIRED < 101200 11591 #error "os_unfair_lock is not supported" 11592 #else 11593 os_unfair_lock lock = OS_UNFAIR_LOCK_INIT; 11594 os_unfair_lock_lock(&lock); 11595 os_unfair_lock_unlock(&lock); 11596 #endif 11597 11598 ; 11599 return 0; 11600} 11601_ACEOF 11602if ac_fn_c_try_link "$LINENO"; then : 11603 je_cv_os_unfair_lock=yes 11604else 11605 je_cv_os_unfair_lock=no 11606fi 11607rm -f core conftest.err conftest.$ac_objext \ 11608 conftest$ac_exeext conftest.$ac_ext 11609fi 11610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_os_unfair_lock" >&5 11611$as_echo "$je_cv_os_unfair_lock" >&6; } 11612 11613if test "x${je_cv_os_unfair_lock}" = "xyes" ; then 11614 $as_echo "#define JEMALLOC_OS_UNFAIR_LOCK " >>confdefs.h 11615 11616fi 11617 11618 11619 11620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSSpin*() is compilable" >&5 11621$as_echo_n "checking whether Darwin OSSpin*() is compilable... " >&6; } 11622if ${je_cv_osspin+:} false; then : 11623 $as_echo_n "(cached) " >&6 11624else 11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11626/* end confdefs.h. */ 11627 11628#include <libkern/OSAtomic.h> 11629#include <inttypes.h> 11630 11631int 11632main () 11633{ 11634 11635 OSSpinLock lock = 0; 11636 OSSpinLockLock(&lock); 11637 OSSpinLockUnlock(&lock); 11638 11639 ; 11640 return 0; 11641} 11642_ACEOF 11643if ac_fn_c_try_link "$LINENO"; then : 11644 je_cv_osspin=yes 11645else 11646 je_cv_osspin=no 11647fi 11648rm -f core conftest.err conftest.$ac_objext \ 11649 conftest$ac_exeext conftest.$ac_ext 11650fi 11651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osspin" >&5 11652$as_echo "$je_cv_osspin" >&6; } 11653 11654if test "x${je_cv_osspin}" = "xyes" ; then 11655 $as_echo "#define JEMALLOC_OSSPIN " >>confdefs.h 11656 11657fi 11658 11659 11660# Check whether --enable-zone-allocator was given. 11661if test "${enable_zone_allocator+set}" = set; then : 11662 enableval=$enable_zone_allocator; if test "x$enable_zone_allocator" = "xno" ; then 11663 enable_zone_allocator="0" 11664else 11665 enable_zone_allocator="1" 11666fi 11667 11668else 11669 if test "x${abi}" = "xmacho"; then 11670 enable_zone_allocator="1" 11671fi 11672 11673 11674fi 11675 11676 11677 11678if test "x${enable_zone_allocator}" = "x1" ; then 11679 if test "x${abi}" != "xmacho"; then 11680 as_fn_error $? "--enable-zone-allocator is only supported on Darwin" "$LINENO" 5 11681 fi 11682 $as_echo "#define JEMALLOC_ZONE " >>confdefs.h 11683 11684fi 11685 11686# Check whether --enable-initial-exec-tls was given. 11687if test "${enable_initial_exec_tls+set}" = set; then : 11688 enableval=$enable_initial_exec_tls; if test "x$enable_initial_exec_tls" = "xno" ; then 11689 enable_initial_exec_tls="0" 11690else 11691 enable_initial_exec_tls="1" 11692fi 11693 11694else 11695 enable_initial_exec_tls="1" 11696 11697fi 11698 11699 11700 11701if test "x${je_cv_tls_model}" = "xyes" -a \ 11702 "x${enable_initial_exec_tls}" = "x1" ; then 11703 $as_echo "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h 11704 11705else 11706 $as_echo "#define JEMALLOC_TLS_MODEL " >>confdefs.h 11707 11708fi 11709 11710 11711if test "x${have_pthread}" = "x1" -a "x${have_dlsym}" = "x1" \ 11712 -a "x${je_cv_os_unfair_lock}" != "xyes" \ 11713 -a "x${je_cv_osspin}" != "xyes" ; then 11714 $as_echo "#define JEMALLOC_BACKGROUND_THREAD 1" >>confdefs.h 11715 11716fi 11717 11718 11719 11720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc malloc hook is compilable" >&5 11721$as_echo_n "checking whether glibc malloc hook is compilable... " >&6; } 11722if ${je_cv_glibc_malloc_hook+:} false; then : 11723 $as_echo_n "(cached) " >&6 11724else 11725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11726/* end confdefs.h. */ 11727 11728#include <stddef.h> 11729 11730extern void (* __free_hook)(void *ptr); 11731extern void *(* __malloc_hook)(size_t size); 11732extern void *(* __realloc_hook)(void *ptr, size_t size); 11733 11734int 11735main () 11736{ 11737 11738 void *ptr = 0L; 11739 if (__malloc_hook) ptr = __malloc_hook(1); 11740 if (__realloc_hook) ptr = __realloc_hook(ptr, 2); 11741 if (__free_hook && ptr) __free_hook(ptr); 11742 11743 ; 11744 return 0; 11745} 11746_ACEOF 11747if ac_fn_c_try_link "$LINENO"; then : 11748 je_cv_glibc_malloc_hook=yes 11749else 11750 je_cv_glibc_malloc_hook=no 11751fi 11752rm -f core conftest.err conftest.$ac_objext \ 11753 conftest$ac_exeext conftest.$ac_ext 11754fi 11755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_malloc_hook" >&5 11756$as_echo "$je_cv_glibc_malloc_hook" >&6; } 11757 11758if test "x${je_cv_glibc_malloc_hook}" = "xyes" ; then 11759 if test "x${JEMALLOC_PREFIX}" = "x" ; then 11760 $as_echo "#define JEMALLOC_GLIBC_MALLOC_HOOK " >>confdefs.h 11761 11762 wrap_syms="${wrap_syms} __free_hook __malloc_hook __realloc_hook" 11763 fi 11764fi 11765 11766 11767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc memalign hook is compilable" >&5 11768$as_echo_n "checking whether glibc memalign hook is compilable... " >&6; } 11769if ${je_cv_glibc_memalign_hook+:} false; then : 11770 $as_echo_n "(cached) " >&6 11771else 11772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11773/* end confdefs.h. */ 11774 11775#include <stddef.h> 11776 11777extern void *(* __memalign_hook)(size_t alignment, size_t size); 11778 11779int 11780main () 11781{ 11782 11783 void *ptr = 0L; 11784 if (__memalign_hook) ptr = __memalign_hook(16, 7); 11785 11786 ; 11787 return 0; 11788} 11789_ACEOF 11790if ac_fn_c_try_link "$LINENO"; then : 11791 je_cv_glibc_memalign_hook=yes 11792else 11793 je_cv_glibc_memalign_hook=no 11794fi 11795rm -f core conftest.err conftest.$ac_objext \ 11796 conftest$ac_exeext conftest.$ac_ext 11797fi 11798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_memalign_hook" >&5 11799$as_echo "$je_cv_glibc_memalign_hook" >&6; } 11800 11801if test "x${je_cv_glibc_memalign_hook}" = "xyes" ; then 11802 if test "x${JEMALLOC_PREFIX}" = "x" ; then 11803 $as_echo "#define JEMALLOC_GLIBC_MEMALIGN_HOOK " >>confdefs.h 11804 11805 wrap_syms="${wrap_syms} __memalign_hook" 11806 fi 11807fi 11808 11809 11810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads adaptive mutexes is compilable" >&5 11811$as_echo_n "checking whether pthreads adaptive mutexes is compilable... " >&6; } 11812if ${je_cv_pthread_mutex_adaptive_np+:} false; then : 11813 $as_echo_n "(cached) " >&6 11814else 11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11816/* end confdefs.h. */ 11817 11818#include <pthread.h> 11819 11820int 11821main () 11822{ 11823 11824 pthread_mutexattr_t attr; 11825 pthread_mutexattr_init(&attr); 11826 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP); 11827 pthread_mutexattr_destroy(&attr); 11828 11829 ; 11830 return 0; 11831} 11832_ACEOF 11833if ac_fn_c_try_link "$LINENO"; then : 11834 je_cv_pthread_mutex_adaptive_np=yes 11835else 11836 je_cv_pthread_mutex_adaptive_np=no 11837fi 11838rm -f core conftest.err conftest.$ac_objext \ 11839 conftest$ac_exeext conftest.$ac_ext 11840fi 11841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_mutex_adaptive_np" >&5 11842$as_echo "$je_cv_pthread_mutex_adaptive_np" >&6; } 11843 11844if test "x${je_cv_pthread_mutex_adaptive_np}" = "xyes" ; then 11845 $as_echo "#define JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP " >>confdefs.h 11846 11847fi 11848 11849SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 11850 11851 11852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -D_GNU_SOURCE" >&5 11853$as_echo_n "checking whether compiler supports -D_GNU_SOURCE... " >&6; } 11854T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 11855T_APPEND_V=-D_GNU_SOURCE 11856 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 11857 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 11858else 11859 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 11860fi 11861 11862 11863if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 11864 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 11865else 11866 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 11867fi 11868 11869cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11870/* end confdefs.h. */ 11871 11872 11873int 11874main () 11875{ 11876 11877 return 0; 11878 11879 ; 11880 return 0; 11881} 11882_ACEOF 11883if ac_fn_c_try_compile "$LINENO"; then : 11884 je_cv_cflags_added=-D_GNU_SOURCE 11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11886$as_echo "yes" >&6; } 11887else 11888 je_cv_cflags_added= 11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11890$as_echo "no" >&6; } 11891 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 11892 11893fi 11894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11895if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 11896 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 11897else 11898 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 11899fi 11900 11901 11902 11903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5 11904$as_echo_n "checking whether compiler supports -Werror... " >&6; } 11905T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 11906T_APPEND_V=-Werror 11907 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 11908 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 11909else 11910 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 11911fi 11912 11913 11914if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 11915 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 11916else 11917 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 11918fi 11919 11920cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11921/* end confdefs.h. */ 11922 11923 11924int 11925main () 11926{ 11927 11928 return 0; 11929 11930 ; 11931 return 0; 11932} 11933_ACEOF 11934if ac_fn_c_try_compile "$LINENO"; then : 11935 je_cv_cflags_added=-Werror 11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11937$as_echo "yes" >&6; } 11938else 11939 je_cv_cflags_added= 11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11941$as_echo "no" >&6; } 11942 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 11943 11944fi 11945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11946if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 11947 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 11948else 11949 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 11950fi 11951 11952 11953 11954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5 11955$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; } 11956T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}" 11957T_APPEND_V=-herror_on_warning 11958 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then 11959 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}" 11960else 11961 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}" 11962fi 11963 11964 11965if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 11966 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 11967else 11968 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 11969fi 11970 11971cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11972/* end confdefs.h. */ 11973 11974 11975int 11976main () 11977{ 11978 11979 return 0; 11980 11981 ; 11982 return 0; 11983} 11984_ACEOF 11985if ac_fn_c_try_compile "$LINENO"; then : 11986 je_cv_cflags_added=-herror_on_warning 11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11988$as_echo "yes" >&6; } 11989else 11990 je_cv_cflags_added= 11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11992$as_echo "no" >&6; } 11993 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}" 11994 11995fi 11996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11997if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 11998 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 11999else 12000 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 12001fi 12002 12003 12004 12005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char with gnu source is compilable" >&5 12006$as_echo_n "checking whether strerror_r returns char with gnu source is compilable... " >&6; } 12007if ${je_cv_strerror_r_returns_char_with_gnu_source+:} false; then : 12008 $as_echo_n "(cached) " >&6 12009else 12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12011/* end confdefs.h. */ 12012 12013#include <errno.h> 12014#include <stdio.h> 12015#include <stdlib.h> 12016#include <string.h> 12017 12018int 12019main () 12020{ 12021 12022 char *buffer = (char *) malloc(100); 12023 char *error = strerror_r(EINVAL, buffer, 100); 12024 printf("%s\n", error); 12025 12026 ; 12027 return 0; 12028} 12029_ACEOF 12030if ac_fn_c_try_link "$LINENO"; then : 12031 je_cv_strerror_r_returns_char_with_gnu_source=yes 12032else 12033 je_cv_strerror_r_returns_char_with_gnu_source=no 12034fi 12035rm -f core conftest.err conftest.$ac_objext \ 12036 conftest$ac_exeext conftest.$ac_ext 12037fi 12038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_strerror_r_returns_char_with_gnu_source" >&5 12039$as_echo "$je_cv_strerror_r_returns_char_with_gnu_source" >&6; } 12040 12041CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}" 12042if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then 12043 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}" 12044else 12045 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}" 12046fi 12047 12048 12049if test "x${je_cv_strerror_r_returns_char_with_gnu_source}" = "xyes" ; then 12050 $as_echo "#define JEMALLOC_STRERROR_R_RETURNS_CHAR_WITH_GNU_SOURCE " >>confdefs.h 12051 12052fi 12053 12054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 12055$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 12056if ${ac_cv_header_stdbool_h+:} false; then : 12057 $as_echo_n "(cached) " >&6 12058else 12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12060/* end confdefs.h. */ 12061 12062 #include <stdbool.h> 12063 #ifndef bool 12064 "error: bool is not defined" 12065 #endif 12066 #ifndef false 12067 "error: false is not defined" 12068 #endif 12069 #if false 12070 "error: false is not 0" 12071 #endif 12072 #ifndef true 12073 "error: true is not defined" 12074 #endif 12075 #if true != 1 12076 "error: true is not 1" 12077 #endif 12078 #ifndef __bool_true_false_are_defined 12079 "error: __bool_true_false_are_defined is not defined" 12080 #endif 12081 12082 struct s { _Bool s: 1; _Bool t; } s; 12083 12084 char a[true == 1 ? 1 : -1]; 12085 char b[false == 0 ? 1 : -1]; 12086 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 12087 char d[(bool) 0.5 == true ? 1 : -1]; 12088 /* See body of main program for 'e'. */ 12089 char f[(_Bool) 0.0 == false ? 1 : -1]; 12090 char g[true]; 12091 char h[sizeof (_Bool)]; 12092 char i[sizeof s.t]; 12093 enum { j = false, k = true, l = false * true, m = true * 256 }; 12094 /* The following fails for 12095 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 12096 _Bool n[m]; 12097 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 12098 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 12099 /* Catch a bug in an HP-UX C compiler. See 12100 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 12101 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 12102 */ 12103 _Bool q = true; 12104 _Bool *pq = &q; 12105 12106int 12107main () 12108{ 12109 12110 bool e = &s; 12111 *pq |= q; 12112 *pq |= ! q; 12113 /* Refer to every declared value, to avoid compiler optimizations. */ 12114 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 12115 + !m + !n + !o + !p + !q + !pq); 12116 12117 ; 12118 return 0; 12119} 12120_ACEOF 12121if ac_fn_c_try_compile "$LINENO"; then : 12122 ac_cv_header_stdbool_h=yes 12123else 12124 ac_cv_header_stdbool_h=no 12125fi 12126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12127fi 12128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 12129$as_echo "$ac_cv_header_stdbool_h" >&6; } 12130 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 12131if test "x$ac_cv_type__Bool" = xyes; then : 12132 12133cat >>confdefs.h <<_ACEOF 12134#define HAVE__BOOL 1 12135_ACEOF 12136 12137 12138fi 12139 12140 12141if test $ac_cv_header_stdbool_h = yes; then 12142 12143$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 12144 12145fi 12146 12147 12148 12149ac_config_commands="$ac_config_commands include/jemalloc/internal/public_symbols.txt" 12150 12151ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols.awk" 12152 12153ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols_jet.awk" 12154 12155ac_config_commands="$ac_config_commands include/jemalloc/internal/public_namespace.h" 12156 12157ac_config_commands="$ac_config_commands include/jemalloc/internal/public_unnamespace.h" 12158 12159ac_config_commands="$ac_config_commands include/jemalloc/internal/size_classes.h" 12160 12161ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_protos_jet.h" 12162 12163ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_rename.h" 12164 12165ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle.h" 12166 12167ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle_jet.h" 12168 12169ac_config_commands="$ac_config_commands include/jemalloc/jemalloc.h" 12170 12171 12172 12173 12174ac_config_headers="$ac_config_headers $cfghdrs_tup" 12175 12176 12177 12178ac_config_files="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc-config bin/jemalloc.sh bin/jeprof" 12179 12180 12181 12182cat >confcache <<\_ACEOF 12183# This file is a shell script that caches the results of configure 12184# tests run on this system so they can be shared between configure 12185# scripts and configure runs, see configure's option --config-cache. 12186# It is not useful on other systems. If it contains results you don't 12187# want to keep, you may remove or edit it. 12188# 12189# config.status only pays attention to the cache file if you give it 12190# the --recheck option to rerun configure. 12191# 12192# `ac_cv_env_foo' variables (set or unset) will be overridden when 12193# loading this file, other *unset* `ac_cv_foo' will be assigned the 12194# following values. 12195 12196_ACEOF 12197 12198# The following way of writing the cache mishandles newlines in values, 12199# but we know of no workaround that is simple, portable, and efficient. 12200# So, we kill variables containing newlines. 12201# Ultrix sh set writes to stderr and can't be redirected directly, 12202# and sets the high bit in the cache file unless we assign to the vars. 12203( 12204 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12205 eval ac_val=\$$ac_var 12206 case $ac_val in #( 12207 *${as_nl}*) 12208 case $ac_var in #( 12209 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12210$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12211 esac 12212 case $ac_var in #( 12213 _ | IFS | as_nl) ;; #( 12214 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12215 *) { eval $ac_var=; unset $ac_var;} ;; 12216 esac ;; 12217 esac 12218 done 12219 12220 (set) 2>&1 | 12221 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12222 *${as_nl}ac_space=\ *) 12223 # `set' does not quote correctly, so add quotes: double-quote 12224 # substitution turns \\\\ into \\, and sed turns \\ into \. 12225 sed -n \ 12226 "s/'/'\\\\''/g; 12227 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12228 ;; #( 12229 *) 12230 # `set' quotes correctly as required by POSIX, so do not add quotes. 12231 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12232 ;; 12233 esac | 12234 sort 12235) | 12236 sed ' 12237 /^ac_cv_env_/b end 12238 t clear 12239 :clear 12240 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12241 t end 12242 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12243 :end' >>confcache 12244if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12245 if test -w "$cache_file"; then 12246 if test "x$cache_file" != "x/dev/null"; then 12247 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12248$as_echo "$as_me: updating cache $cache_file" >&6;} 12249 if test ! -f "$cache_file" || test -h "$cache_file"; then 12250 cat confcache >"$cache_file" 12251 else 12252 case $cache_file in #( 12253 */* | ?:*) 12254 mv -f confcache "$cache_file"$$ && 12255 mv -f "$cache_file"$$ "$cache_file" ;; #( 12256 *) 12257 mv -f confcache "$cache_file" ;; 12258 esac 12259 fi 12260 fi 12261 else 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12263$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12264 fi 12265fi 12266rm -f confcache 12267 12268test "x$prefix" = xNONE && prefix=$ac_default_prefix 12269# Let make expand exec_prefix. 12270test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12271 12272DEFS=-DHAVE_CONFIG_H 12273 12274ac_libobjs= 12275ac_ltlibobjs= 12276U= 12277for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12278 # 1. Remove the extension, and $U if already installed. 12279 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12280 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12281 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12282 # will be set to the directory where LIBOBJS objects are built. 12283 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12284 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12285done 12286LIBOBJS=$ac_libobjs 12287 12288LTLIBOBJS=$ac_ltlibobjs 12289 12290 12291 12292 12293: "${CONFIG_STATUS=./config.status}" 12294ac_write_fail=0 12295ac_clean_files_save=$ac_clean_files 12296ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12297{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12298$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12299as_write_fail=0 12300cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12301#! $SHELL 12302# Generated by $as_me. 12303# Run this file to recreate the current configuration. 12304# Compiler output produced by configure, useful for debugging 12305# configure, is in config.log if it exists. 12306 12307debug=false 12308ac_cs_recheck=false 12309ac_cs_silent=false 12310 12311SHELL=\${CONFIG_SHELL-$SHELL} 12312export SHELL 12313_ASEOF 12314cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12315## -------------------- ## 12316## M4sh Initialization. ## 12317## -------------------- ## 12318 12319# Be more Bourne compatible 12320DUALCASE=1; export DUALCASE # for MKS sh 12321if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12322 emulate sh 12323 NULLCMD=: 12324 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12325 # is contrary to our usage. Disable this feature. 12326 alias -g '${1+"$@"}'='"$@"' 12327 setopt NO_GLOB_SUBST 12328else 12329 case `(set -o) 2>/dev/null` in #( 12330 *posix*) : 12331 set -o posix ;; #( 12332 *) : 12333 ;; 12334esac 12335fi 12336 12337 12338as_nl=' 12339' 12340export as_nl 12341# Printing a long string crashes Solaris 7 /usr/bin/printf. 12342as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12343as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12344as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12345# Prefer a ksh shell builtin over an external printf program on Solaris, 12346# but without wasting forks for bash or zsh. 12347if test -z "$BASH_VERSION$ZSH_VERSION" \ 12348 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12349 as_echo='print -r --' 12350 as_echo_n='print -rn --' 12351elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12352 as_echo='printf %s\n' 12353 as_echo_n='printf %s' 12354else 12355 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12356 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12357 as_echo_n='/usr/ucb/echo -n' 12358 else 12359 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12360 as_echo_n_body='eval 12361 arg=$1; 12362 case $arg in #( 12363 *"$as_nl"*) 12364 expr "X$arg" : "X\\(.*\\)$as_nl"; 12365 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12366 esac; 12367 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12368 ' 12369 export as_echo_n_body 12370 as_echo_n='sh -c $as_echo_n_body as_echo' 12371 fi 12372 export as_echo_body 12373 as_echo='sh -c $as_echo_body as_echo' 12374fi 12375 12376# The user is always right. 12377if test "${PATH_SEPARATOR+set}" != set; then 12378 PATH_SEPARATOR=: 12379 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12380 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12381 PATH_SEPARATOR=';' 12382 } 12383fi 12384 12385 12386# IFS 12387# We need space, tab and new line, in precisely that order. Quoting is 12388# there to prevent editors from complaining about space-tab. 12389# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12390# splitting by setting IFS to empty value.) 12391IFS=" "" $as_nl" 12392 12393# Find who we are. Look in the path if we contain no directory separator. 12394as_myself= 12395case $0 in #(( 12396 *[\\/]* ) as_myself=$0 ;; 12397 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12398for as_dir in $PATH 12399do 12400 IFS=$as_save_IFS 12401 test -z "$as_dir" && as_dir=. 12402 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12403 done 12404IFS=$as_save_IFS 12405 12406 ;; 12407esac 12408# We did not find ourselves, most probably we were run as `sh COMMAND' 12409# in which case we are not to be found in the path. 12410if test "x$as_myself" = x; then 12411 as_myself=$0 12412fi 12413if test ! -f "$as_myself"; then 12414 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12415 exit 1 12416fi 12417 12418# Unset variables that we do not need and which cause bugs (e.g. in 12419# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12420# suppresses any "Segmentation fault" message there. '((' could 12421# trigger a bug in pdksh 5.2.14. 12422for as_var in BASH_ENV ENV MAIL MAILPATH 12423do eval test x\${$as_var+set} = xset \ 12424 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12425done 12426PS1='$ ' 12427PS2='> ' 12428PS4='+ ' 12429 12430# NLS nuisances. 12431LC_ALL=C 12432export LC_ALL 12433LANGUAGE=C 12434export LANGUAGE 12435 12436# CDPATH. 12437(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12438 12439 12440# as_fn_error STATUS ERROR [LINENO LOG_FD] 12441# ---------------------------------------- 12442# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12443# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12444# script with STATUS, using 1 if that was 0. 12445as_fn_error () 12446{ 12447 as_status=$1; test $as_status -eq 0 && as_status=1 12448 if test "$4"; then 12449 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12450 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12451 fi 12452 $as_echo "$as_me: error: $2" >&2 12453 as_fn_exit $as_status 12454} # as_fn_error 12455 12456 12457# as_fn_set_status STATUS 12458# ----------------------- 12459# Set $? to STATUS, without forking. 12460as_fn_set_status () 12461{ 12462 return $1 12463} # as_fn_set_status 12464 12465# as_fn_exit STATUS 12466# ----------------- 12467# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12468as_fn_exit () 12469{ 12470 set +e 12471 as_fn_set_status $1 12472 exit $1 12473} # as_fn_exit 12474 12475# as_fn_unset VAR 12476# --------------- 12477# Portably unset VAR. 12478as_fn_unset () 12479{ 12480 { eval $1=; unset $1;} 12481} 12482as_unset=as_fn_unset 12483# as_fn_append VAR VALUE 12484# ---------------------- 12485# Append the text in VALUE to the end of the definition contained in VAR. Take 12486# advantage of any shell optimizations that allow amortized linear growth over 12487# repeated appends, instead of the typical quadratic growth present in naive 12488# implementations. 12489if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12490 eval 'as_fn_append () 12491 { 12492 eval $1+=\$2 12493 }' 12494else 12495 as_fn_append () 12496 { 12497 eval $1=\$$1\$2 12498 } 12499fi # as_fn_append 12500 12501# as_fn_arith ARG... 12502# ------------------ 12503# Perform arithmetic evaluation on the ARGs, and store the result in the 12504# global $as_val. Take advantage of shells that can avoid forks. The arguments 12505# must be portable across $(()) and expr. 12506if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12507 eval 'as_fn_arith () 12508 { 12509 as_val=$(( $* )) 12510 }' 12511else 12512 as_fn_arith () 12513 { 12514 as_val=`expr "$@" || test $? -eq 1` 12515 } 12516fi # as_fn_arith 12517 12518 12519if expr a : '\(a\)' >/dev/null 2>&1 && 12520 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12521 as_expr=expr 12522else 12523 as_expr=false 12524fi 12525 12526if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12527 as_basename=basename 12528else 12529 as_basename=false 12530fi 12531 12532if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12533 as_dirname=dirname 12534else 12535 as_dirname=false 12536fi 12537 12538as_me=`$as_basename -- "$0" || 12539$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12540 X"$0" : 'X\(//\)$' \| \ 12541 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12542$as_echo X/"$0" | 12543 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12544 s//\1/ 12545 q 12546 } 12547 /^X\/\(\/\/\)$/{ 12548 s//\1/ 12549 q 12550 } 12551 /^X\/\(\/\).*/{ 12552 s//\1/ 12553 q 12554 } 12555 s/.*/./; q'` 12556 12557# Avoid depending upon Character Ranges. 12558as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12559as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12560as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12561as_cr_digits='0123456789' 12562as_cr_alnum=$as_cr_Letters$as_cr_digits 12563 12564ECHO_C= ECHO_N= ECHO_T= 12565case `echo -n x` in #((((( 12566-n*) 12567 case `echo 'xy\c'` in 12568 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12569 xy) ECHO_C='\c';; 12570 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12571 ECHO_T=' ';; 12572 esac;; 12573*) 12574 ECHO_N='-n';; 12575esac 12576 12577rm -f conf$$ conf$$.exe conf$$.file 12578if test -d conf$$.dir; then 12579 rm -f conf$$.dir/conf$$.file 12580else 12581 rm -f conf$$.dir 12582 mkdir conf$$.dir 2>/dev/null 12583fi 12584if (echo >conf$$.file) 2>/dev/null; then 12585 if ln -s conf$$.file conf$$ 2>/dev/null; then 12586 as_ln_s='ln -s' 12587 # ... but there are two gotchas: 12588 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12589 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12590 # In both cases, we have to default to `cp -pR'. 12591 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12592 as_ln_s='cp -pR' 12593 elif ln conf$$.file conf$$ 2>/dev/null; then 12594 as_ln_s=ln 12595 else 12596 as_ln_s='cp -pR' 12597 fi 12598else 12599 as_ln_s='cp -pR' 12600fi 12601rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12602rmdir conf$$.dir 2>/dev/null 12603 12604 12605# as_fn_mkdir_p 12606# ------------- 12607# Create "$as_dir" as a directory, including parents if necessary. 12608as_fn_mkdir_p () 12609{ 12610 12611 case $as_dir in #( 12612 -*) as_dir=./$as_dir;; 12613 esac 12614 test -d "$as_dir" || eval $as_mkdir_p || { 12615 as_dirs= 12616 while :; do 12617 case $as_dir in #( 12618 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12619 *) as_qdir=$as_dir;; 12620 esac 12621 as_dirs="'$as_qdir' $as_dirs" 12622 as_dir=`$as_dirname -- "$as_dir" || 12623$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12624 X"$as_dir" : 'X\(//\)[^/]' \| \ 12625 X"$as_dir" : 'X\(//\)$' \| \ 12626 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12627$as_echo X"$as_dir" | 12628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12629 s//\1/ 12630 q 12631 } 12632 /^X\(\/\/\)[^/].*/{ 12633 s//\1/ 12634 q 12635 } 12636 /^X\(\/\/\)$/{ 12637 s//\1/ 12638 q 12639 } 12640 /^X\(\/\).*/{ 12641 s//\1/ 12642 q 12643 } 12644 s/.*/./; q'` 12645 test -d "$as_dir" && break 12646 done 12647 test -z "$as_dirs" || eval "mkdir $as_dirs" 12648 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12649 12650 12651} # as_fn_mkdir_p 12652if mkdir -p . 2>/dev/null; then 12653 as_mkdir_p='mkdir -p "$as_dir"' 12654else 12655 test -d ./-p && rmdir ./-p 12656 as_mkdir_p=false 12657fi 12658 12659 12660# as_fn_executable_p FILE 12661# ----------------------- 12662# Test if FILE is an executable regular file. 12663as_fn_executable_p () 12664{ 12665 test -f "$1" && test -x "$1" 12666} # as_fn_executable_p 12667as_test_x='test -x' 12668as_executable_p=as_fn_executable_p 12669 12670# Sed expression to map a string onto a valid CPP name. 12671as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12672 12673# Sed expression to map a string onto a valid variable name. 12674as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12675 12676 12677exec 6>&1 12678## ----------------------------------- ## 12679## Main body of $CONFIG_STATUS script. ## 12680## ----------------------------------- ## 12681_ASEOF 12682test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12683 12684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12685# Save the log message, to keep $0 and so on meaningful, and to 12686# report actual input values of CONFIG_FILES etc. instead of their 12687# values after options handling. 12688ac_log=" 12689This file was extended by $as_me, which was 12690generated by GNU Autoconf 2.69. Invocation command line was 12691 12692 CONFIG_FILES = $CONFIG_FILES 12693 CONFIG_HEADERS = $CONFIG_HEADERS 12694 CONFIG_LINKS = $CONFIG_LINKS 12695 CONFIG_COMMANDS = $CONFIG_COMMANDS 12696 $ $0 $@ 12697 12698on `(hostname || uname -n) 2>/dev/null | sed 1q` 12699" 12700 12701_ACEOF 12702 12703case $ac_config_files in *" 12704"*) set x $ac_config_files; shift; ac_config_files=$*;; 12705esac 12706 12707case $ac_config_headers in *" 12708"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12709esac 12710 12711 12712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12713# Files that config.status was made for. 12714config_files="$ac_config_files" 12715config_headers="$ac_config_headers" 12716config_commands="$ac_config_commands" 12717 12718_ACEOF 12719 12720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12721ac_cs_usage="\ 12722\`$as_me' instantiates files and other configuration actions 12723from templates according to the current configuration. Unless the files 12724and actions are specified as TAGs, all are instantiated by default. 12725 12726Usage: $0 [OPTION]... [TAG]... 12727 12728 -h, --help print this help, then exit 12729 -V, --version print version number and configuration settings, then exit 12730 --config print configuration, then exit 12731 -q, --quiet, --silent 12732 do not print progress messages 12733 -d, --debug don't remove temporary files 12734 --recheck update $as_me by reconfiguring in the same conditions 12735 --file=FILE[:TEMPLATE] 12736 instantiate the configuration file FILE 12737 --header=FILE[:TEMPLATE] 12738 instantiate the configuration header FILE 12739 12740Configuration files: 12741$config_files 12742 12743Configuration headers: 12744$config_headers 12745 12746Configuration commands: 12747$config_commands 12748 12749Report bugs to the package provider." 12750 12751_ACEOF 12752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12753ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12754ac_cs_version="\\ 12755config.status 12756configured by $0, generated by GNU Autoconf 2.69, 12757 with options \\"\$ac_cs_config\\" 12758 12759Copyright (C) 2012 Free Software Foundation, Inc. 12760This config.status script is free software; the Free Software Foundation 12761gives unlimited permission to copy, distribute and modify it." 12762 12763ac_pwd='$ac_pwd' 12764srcdir='$srcdir' 12765INSTALL='$INSTALL' 12766AWK='$AWK' 12767test -n "\$AWK" || AWK=awk 12768_ACEOF 12769 12770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12771# The default lists apply if the user does not specify any file. 12772ac_need_defaults=: 12773while test $# != 0 12774do 12775 case $1 in 12776 --*=?*) 12777 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12778 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12779 ac_shift=: 12780 ;; 12781 --*=) 12782 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12783 ac_optarg= 12784 ac_shift=: 12785 ;; 12786 *) 12787 ac_option=$1 12788 ac_optarg=$2 12789 ac_shift=shift 12790 ;; 12791 esac 12792 12793 case $ac_option in 12794 # Handling of the options. 12795 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12796 ac_cs_recheck=: ;; 12797 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12798 $as_echo "$ac_cs_version"; exit ;; 12799 --config | --confi | --conf | --con | --co | --c ) 12800 $as_echo "$ac_cs_config"; exit ;; 12801 --debug | --debu | --deb | --de | --d | -d ) 12802 debug=: ;; 12803 --file | --fil | --fi | --f ) 12804 $ac_shift 12805 case $ac_optarg in 12806 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12807 '') as_fn_error $? "missing file argument" ;; 12808 esac 12809 as_fn_append CONFIG_FILES " '$ac_optarg'" 12810 ac_need_defaults=false;; 12811 --header | --heade | --head | --hea ) 12812 $ac_shift 12813 case $ac_optarg in 12814 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12815 esac 12816 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12817 ac_need_defaults=false;; 12818 --he | --h) 12819 # Conflict between --help and --header 12820 as_fn_error $? "ambiguous option: \`$1' 12821Try \`$0 --help' for more information.";; 12822 --help | --hel | -h ) 12823 $as_echo "$ac_cs_usage"; exit ;; 12824 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12825 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12826 ac_cs_silent=: ;; 12827 12828 # This is an error. 12829 -*) as_fn_error $? "unrecognized option: \`$1' 12830Try \`$0 --help' for more information." ;; 12831 12832 *) as_fn_append ac_config_targets " $1" 12833 ac_need_defaults=false ;; 12834 12835 esac 12836 shift 12837done 12838 12839ac_configure_extra_args= 12840 12841if $ac_cs_silent; then 12842 exec 6>/dev/null 12843 ac_configure_extra_args="$ac_configure_extra_args --silent" 12844fi 12845 12846_ACEOF 12847cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12848if \$ac_cs_recheck; then 12849 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12850 shift 12851 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12852 CONFIG_SHELL='$SHELL' 12853 export CONFIG_SHELL 12854 exec "\$@" 12855fi 12856 12857_ACEOF 12858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12859exec 5>>config.log 12860{ 12861 echo 12862 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12863## Running $as_me. ## 12864_ASBOX 12865 $as_echo "$ac_log" 12866} >&5 12867 12868_ACEOF 12869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12870# 12871# INIT-COMMANDS 12872# 12873 12874 srcdir="${srcdir}" 12875 objroot="${objroot}" 12876 mangling_map="${mangling_map}" 12877 public_syms="${public_syms}" 12878 JEMALLOC_PREFIX="${JEMALLOC_PREFIX}" 12879 12880 12881 srcdir="${srcdir}" 12882 objroot="${objroot}" 12883 public_syms="${public_syms}" 12884 wrap_syms="${wrap_syms}" 12885 SYM_PREFIX="${SYM_PREFIX}" 12886 JEMALLOC_PREFIX="${JEMALLOC_PREFIX}" 12887 12888 12889 srcdir="${srcdir}" 12890 objroot="${objroot}" 12891 public_syms="${public_syms}" 12892 wrap_syms="${wrap_syms}" 12893 SYM_PREFIX="${SYM_PREFIX}" 12894 12895 12896 srcdir="${srcdir}" 12897 objroot="${objroot}" 12898 12899 12900 srcdir="${srcdir}" 12901 objroot="${objroot}" 12902 12903 12904 SHELL="${SHELL}" 12905 srcdir="${srcdir}" 12906 objroot="${objroot}" 12907 LG_QUANTA="${LG_QUANTA}" 12908 LG_PAGE_SIZES="${LG_PAGE_SIZES}" 12909 12910 12911 srcdir="${srcdir}" 12912 objroot="${objroot}" 12913 12914 12915 srcdir="${srcdir}" 12916 objroot="${objroot}" 12917 12918 12919 srcdir="${srcdir}" 12920 objroot="${objroot}" 12921 12922 12923 srcdir="${srcdir}" 12924 objroot="${objroot}" 12925 12926 12927 srcdir="${srcdir}" 12928 objroot="${objroot}" 12929 install_suffix="${install_suffix}" 12930 12931 12932_ACEOF 12933 12934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12935 12936# Handling of arguments. 12937for ac_config_target in $ac_config_targets 12938do 12939 case $ac_config_target in 12940 "include/jemalloc/internal/public_symbols.txt") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_symbols.txt" ;; 12941 "include/jemalloc/internal/private_symbols.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols.awk" ;; 12942 "include/jemalloc/internal/private_symbols_jet.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols_jet.awk" ;; 12943 "include/jemalloc/internal/public_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_namespace.h" ;; 12944 "include/jemalloc/internal/public_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_unnamespace.h" ;; 12945 "include/jemalloc/internal/size_classes.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/size_classes.h" ;; 12946 "include/jemalloc/jemalloc_protos_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_protos_jet.h" ;; 12947 "include/jemalloc/jemalloc_rename.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_rename.h" ;; 12948 "include/jemalloc/jemalloc_mangle.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle.h" ;; 12949 "include/jemalloc/jemalloc_mangle_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle_jet.h" ;; 12950 "include/jemalloc/jemalloc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc.h" ;; 12951 "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;; 12952 "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;; 12953 "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;; 12954 "bin/jemalloc-config") CONFIG_FILES="$CONFIG_FILES bin/jemalloc-config" ;; 12955 "bin/jemalloc.sh") CONFIG_FILES="$CONFIG_FILES bin/jemalloc.sh" ;; 12956 "bin/jeprof") CONFIG_FILES="$CONFIG_FILES bin/jeprof" ;; 12957 12958 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12959 esac 12960done 12961 12962 12963# If the user did not use the arguments to specify the items to instantiate, 12964# then the envvar interface is used. Set only those that are not. 12965# We use the long form for the default assignment because of an extremely 12966# bizarre bug on SunOS 4.1.3. 12967if $ac_need_defaults; then 12968 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12969 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12970 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12971fi 12972 12973# Have a temporary directory for convenience. Make it in the build tree 12974# simply because there is no reason against having it here, and in addition, 12975# creating and moving files from /tmp can sometimes cause problems. 12976# Hook for its removal unless debugging. 12977# Note that there is a small window in which the directory will not be cleaned: 12978# after its creation but before its name has been assigned to `$tmp'. 12979$debug || 12980{ 12981 tmp= ac_tmp= 12982 trap 'exit_status=$? 12983 : "${ac_tmp:=$tmp}" 12984 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12985' 0 12986 trap 'as_fn_exit 1' 1 2 13 15 12987} 12988# Create a (secure) tmp directory for tmp files. 12989 12990{ 12991 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12992 test -d "$tmp" 12993} || 12994{ 12995 tmp=./conf$$-$RANDOM 12996 (umask 077 && mkdir "$tmp") 12997} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12998ac_tmp=$tmp 12999 13000# Set up the scripts for CONFIG_FILES section. 13001# No need to generate them if there are no CONFIG_FILES. 13002# This happens for instance with `./config.status config.h'. 13003if test -n "$CONFIG_FILES"; then 13004 13005 13006ac_cr=`echo X | tr X '\015'` 13007# On cygwin, bash can eat \r inside `` if the user requested igncr. 13008# But we know of no other shell where ac_cr would be empty at this 13009# point, so we can use a bashism as a fallback. 13010if test "x$ac_cr" = x; then 13011 eval ac_cr=\$\'\\r\' 13012fi 13013ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13014if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13015 ac_cs_awk_cr='\\r' 13016else 13017 ac_cs_awk_cr=$ac_cr 13018fi 13019 13020echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13021_ACEOF 13022 13023 13024{ 13025 echo "cat >conf$$subs.awk <<_ACEOF" && 13026 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13027 echo "_ACEOF" 13028} >conf$$subs.sh || 13029 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13030ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13031ac_delim='%!_!# ' 13032for ac_last_try in false false false false false :; do 13033 . ./conf$$subs.sh || 13034 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13035 13036 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13037 if test $ac_delim_n = $ac_delim_num; then 13038 break 13039 elif $ac_last_try; then 13040 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13041 else 13042 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13043 fi 13044done 13045rm -f conf$$subs.sh 13046 13047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13048cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13049_ACEOF 13050sed -n ' 13051h 13052s/^/S["/; s/!.*/"]=/ 13053p 13054g 13055s/^[^!]*!// 13056:repl 13057t repl 13058s/'"$ac_delim"'$// 13059t delim 13060:nl 13061h 13062s/\(.\{148\}\)..*/\1/ 13063t more1 13064s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13065p 13066n 13067b repl 13068:more1 13069s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13070p 13071g 13072s/.\{148\}// 13073t nl 13074:delim 13075h 13076s/\(.\{148\}\)..*/\1/ 13077t more2 13078s/["\\]/\\&/g; s/^/"/; s/$/"/ 13079p 13080b 13081:more2 13082s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13083p 13084g 13085s/.\{148\}// 13086t delim 13087' <conf$$subs.awk | sed ' 13088/^[^""]/{ 13089 N 13090 s/\n// 13091} 13092' >>$CONFIG_STATUS || ac_write_fail=1 13093rm -f conf$$subs.awk 13094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13095_ACAWK 13096cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13097 for (key in S) S_is_set[key] = 1 13098 FS = "" 13099 13100} 13101{ 13102 line = $ 0 13103 nfields = split(line, field, "@") 13104 substed = 0 13105 len = length(field[1]) 13106 for (i = 2; i < nfields; i++) { 13107 key = field[i] 13108 keylen = length(key) 13109 if (S_is_set[key]) { 13110 value = S[key] 13111 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13112 len += length(value) + length(field[++i]) 13113 substed = 1 13114 } else 13115 len += 1 + keylen 13116 } 13117 13118 print line 13119} 13120 13121_ACAWK 13122_ACEOF 13123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13124if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13125 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13126else 13127 cat 13128fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13129 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13130_ACEOF 13131 13132# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13133# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13134# trailing colons and then remove the whole line if VPATH becomes empty 13135# (actually we leave an empty line to preserve line numbers). 13136if test "x$srcdir" = x.; then 13137 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13138h 13139s/// 13140s/^/:/ 13141s/[ ]*$/:/ 13142s/:\$(srcdir):/:/g 13143s/:\${srcdir}:/:/g 13144s/:@srcdir@:/:/g 13145s/^:*// 13146s/:*$// 13147x 13148s/\(=[ ]*\).*/\1/ 13149G 13150s/\n// 13151s/^[^=]*=[ ]*$// 13152}' 13153fi 13154 13155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13156fi # test -n "$CONFIG_FILES" 13157 13158# Set up the scripts for CONFIG_HEADERS section. 13159# No need to generate them if there are no CONFIG_HEADERS. 13160# This happens for instance with `./config.status Makefile'. 13161if test -n "$CONFIG_HEADERS"; then 13162cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13163BEGIN { 13164_ACEOF 13165 13166# Transform confdefs.h into an awk script `defines.awk', embedded as 13167# here-document in config.status, that substitutes the proper values into 13168# config.h.in to produce config.h. 13169 13170# Create a delimiter string that does not exist in confdefs.h, to ease 13171# handling of long lines. 13172ac_delim='%!_!# ' 13173for ac_last_try in false false :; do 13174 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13175 if test -z "$ac_tt"; then 13176 break 13177 elif $ac_last_try; then 13178 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13179 else 13180 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13181 fi 13182done 13183 13184# For the awk script, D is an array of macro values keyed by name, 13185# likewise P contains macro parameters if any. Preserve backslash 13186# newline sequences. 13187 13188ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13189sed -n ' 13190s/.\{148\}/&'"$ac_delim"'/g 13191t rset 13192:rset 13193s/^[ ]*#[ ]*define[ ][ ]*/ / 13194t def 13195d 13196:def 13197s/\\$// 13198t bsnl 13199s/["\\]/\\&/g 13200s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13201D["\1"]=" \3"/p 13202s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13203d 13204:bsnl 13205s/["\\]/\\&/g 13206s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13207D["\1"]=" \3\\\\\\n"\\/p 13208t cont 13209s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13210t cont 13211d 13212:cont 13213n 13214s/.\{148\}/&'"$ac_delim"'/g 13215t clear 13216:clear 13217s/\\$// 13218t bsnlc 13219s/["\\]/\\&/g; s/^/"/; s/$/"/p 13220d 13221:bsnlc 13222s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13223b cont 13224' <confdefs.h | sed ' 13225s/'"$ac_delim"'/"\\\ 13226"/g' >>$CONFIG_STATUS || ac_write_fail=1 13227 13228cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13229 for (key in D) D_is_set[key] = 1 13230 FS = "" 13231} 13232/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13233 line = \$ 0 13234 split(line, arg, " ") 13235 if (arg[1] == "#") { 13236 defundef = arg[2] 13237 mac1 = arg[3] 13238 } else { 13239 defundef = substr(arg[1], 2) 13240 mac1 = arg[2] 13241 } 13242 split(mac1, mac2, "(") #) 13243 macro = mac2[1] 13244 prefix = substr(line, 1, index(line, defundef) - 1) 13245 if (D_is_set[macro]) { 13246 # Preserve the white space surrounding the "#". 13247 print prefix "define", macro P[macro] D[macro] 13248 next 13249 } else { 13250 # Replace #undef with comments. This is necessary, for example, 13251 # in the case of _POSIX_SOURCE, which is predefined and required 13252 # on some systems where configure will not decide to define it. 13253 if (defundef == "undef") { 13254 print "/*", prefix defundef, macro, "*/" 13255 next 13256 } 13257 } 13258} 13259{ print } 13260_ACAWK 13261_ACEOF 13262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13263 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13264fi # test -n "$CONFIG_HEADERS" 13265 13266 13267eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13268shift 13269for ac_tag 13270do 13271 case $ac_tag in 13272 :[FHLC]) ac_mode=$ac_tag; continue;; 13273 esac 13274 case $ac_mode$ac_tag in 13275 :[FHL]*:*);; 13276 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13277 :[FH]-) ac_tag=-:-;; 13278 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13279 esac 13280 ac_save_IFS=$IFS 13281 IFS=: 13282 set x $ac_tag 13283 IFS=$ac_save_IFS 13284 shift 13285 ac_file=$1 13286 shift 13287 13288 case $ac_mode in 13289 :L) ac_source=$1;; 13290 :[FH]) 13291 ac_file_inputs= 13292 for ac_f 13293 do 13294 case $ac_f in 13295 -) ac_f="$ac_tmp/stdin";; 13296 *) # Look for the file first in the build tree, then in the source tree 13297 # (if the path is not absolute). The absolute path cannot be DOS-style, 13298 # because $ac_f cannot contain `:'. 13299 test -f "$ac_f" || 13300 case $ac_f in 13301 [\\/$]*) false;; 13302 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13303 esac || 13304 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13305 esac 13306 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13307 as_fn_append ac_file_inputs " '$ac_f'" 13308 done 13309 13310 # Let's still pretend it is `configure' which instantiates (i.e., don't 13311 # use $as_me), people would be surprised to read: 13312 # /* config.h. Generated by config.status. */ 13313 configure_input='Generated from '` 13314 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13315 `' by configure.' 13316 if test x"$ac_file" != x-; then 13317 configure_input="$ac_file. $configure_input" 13318 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13319$as_echo "$as_me: creating $ac_file" >&6;} 13320 fi 13321 # Neutralize special characters interpreted by sed in replacement strings. 13322 case $configure_input in #( 13323 *\&* | *\|* | *\\* ) 13324 ac_sed_conf_input=`$as_echo "$configure_input" | 13325 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13326 *) ac_sed_conf_input=$configure_input;; 13327 esac 13328 13329 case $ac_tag in 13330 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13331 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13332 esac 13333 ;; 13334 esac 13335 13336 ac_dir=`$as_dirname -- "$ac_file" || 13337$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13338 X"$ac_file" : 'X\(//\)[^/]' \| \ 13339 X"$ac_file" : 'X\(//\)$' \| \ 13340 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13341$as_echo X"$ac_file" | 13342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13343 s//\1/ 13344 q 13345 } 13346 /^X\(\/\/\)[^/].*/{ 13347 s//\1/ 13348 q 13349 } 13350 /^X\(\/\/\)$/{ 13351 s//\1/ 13352 q 13353 } 13354 /^X\(\/\).*/{ 13355 s//\1/ 13356 q 13357 } 13358 s/.*/./; q'` 13359 as_dir="$ac_dir"; as_fn_mkdir_p 13360 ac_builddir=. 13361 13362case "$ac_dir" in 13363.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13364*) 13365 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13366 # A ".." for each directory in $ac_dir_suffix. 13367 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13368 case $ac_top_builddir_sub in 13369 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13370 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13371 esac ;; 13372esac 13373ac_abs_top_builddir=$ac_pwd 13374ac_abs_builddir=$ac_pwd$ac_dir_suffix 13375# for backward compatibility: 13376ac_top_builddir=$ac_top_build_prefix 13377 13378case $srcdir in 13379 .) # We are building in place. 13380 ac_srcdir=. 13381 ac_top_srcdir=$ac_top_builddir_sub 13382 ac_abs_top_srcdir=$ac_pwd ;; 13383 [\\/]* | ?:[\\/]* ) # Absolute name. 13384 ac_srcdir=$srcdir$ac_dir_suffix; 13385 ac_top_srcdir=$srcdir 13386 ac_abs_top_srcdir=$srcdir ;; 13387 *) # Relative name. 13388 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13389 ac_top_srcdir=$ac_top_build_prefix$srcdir 13390 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13391esac 13392ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13393 13394 13395 case $ac_mode in 13396 :F) 13397 # 13398 # CONFIG_FILE 13399 # 13400 13401 case $INSTALL in 13402 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13403 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13404 esac 13405_ACEOF 13406 13407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13408# If the template does not know about datarootdir, expand it. 13409# FIXME: This hack should be removed a few years after 2.60. 13410ac_datarootdir_hack=; ac_datarootdir_seen= 13411ac_sed_dataroot=' 13412/datarootdir/ { 13413 p 13414 q 13415} 13416/@datadir@/p 13417/@docdir@/p 13418/@infodir@/p 13419/@localedir@/p 13420/@mandir@/p' 13421case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13422*datarootdir*) ac_datarootdir_seen=yes;; 13423*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13425$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13426_ACEOF 13427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13428 ac_datarootdir_hack=' 13429 s&@datadir@&$datadir&g 13430 s&@docdir@&$docdir&g 13431 s&@infodir@&$infodir&g 13432 s&@localedir@&$localedir&g 13433 s&@mandir@&$mandir&g 13434 s&\\\${datarootdir}&$datarootdir&g' ;; 13435esac 13436_ACEOF 13437 13438# Neutralize VPATH when `$srcdir' = `.'. 13439# Shell code in configure.ac might set extrasub. 13440# FIXME: do we really want to maintain this feature? 13441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13442ac_sed_extra="$ac_vpsub 13443$extrasub 13444_ACEOF 13445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13446:t 13447/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13448s|@configure_input@|$ac_sed_conf_input|;t t 13449s&@top_builddir@&$ac_top_builddir_sub&;t t 13450s&@top_build_prefix@&$ac_top_build_prefix&;t t 13451s&@srcdir@&$ac_srcdir&;t t 13452s&@abs_srcdir@&$ac_abs_srcdir&;t t 13453s&@top_srcdir@&$ac_top_srcdir&;t t 13454s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13455s&@builddir@&$ac_builddir&;t t 13456s&@abs_builddir@&$ac_abs_builddir&;t t 13457s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13458s&@INSTALL@&$ac_INSTALL&;t t 13459$ac_datarootdir_hack 13460" 13461eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13462 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13463 13464test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13465 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13466 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13467 "$ac_tmp/out"`; test -z "$ac_out"; } && 13468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13469which seems to be undefined. Please make sure it is defined" >&5 13470$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13471which seems to be undefined. Please make sure it is defined" >&2;} 13472 13473 rm -f "$ac_tmp/stdin" 13474 case $ac_file in 13475 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13476 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13477 esac \ 13478 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13479 ;; 13480 :H) 13481 # 13482 # CONFIG_HEADER 13483 # 13484 if test x"$ac_file" != x-; then 13485 { 13486 $as_echo "/* $configure_input */" \ 13487 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13488 } >"$ac_tmp/config.h" \ 13489 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13490 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13491 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13492$as_echo "$as_me: $ac_file is unchanged" >&6;} 13493 else 13494 rm -f "$ac_file" 13495 mv "$ac_tmp/config.h" "$ac_file" \ 13496 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13497 fi 13498 else 13499 $as_echo "/* $configure_input */" \ 13500 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13501 || as_fn_error $? "could not create -" "$LINENO" 5 13502 fi 13503 ;; 13504 13505 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13506$as_echo "$as_me: executing $ac_file commands" >&6;} 13507 ;; 13508 esac 13509 13510 13511 case $ac_file$ac_mode in 13512 "include/jemalloc/internal/public_symbols.txt":C) 13513 f="${objroot}include/jemalloc/internal/public_symbols.txt" 13514 mkdir -p "${objroot}include/jemalloc/internal" 13515 cp /dev/null "${f}" 13516 for nm in `echo ${mangling_map} |tr ',' ' '` ; do 13517 n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'` 13518 m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'` 13519 echo "${n}:${m}" >> "${f}" 13520 public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${n}\$" |tr '\n' ' '` 13521 done 13522 for sym in ${public_syms} ; do 13523 n="${sym}" 13524 m="${JEMALLOC_PREFIX}${sym}" 13525 echo "${n}:${m}" >> "${f}" 13526 done 13527 ;; 13528 "include/jemalloc/internal/private_symbols.awk":C) 13529 f="${objroot}include/jemalloc/internal/private_symbols.awk" 13530 mkdir -p "${objroot}include/jemalloc/internal" 13531 export_syms=`for sym in ${public_syms}; do echo "${JEMALLOC_PREFIX}${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;` 13532 "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols.awk" 13533 ;; 13534 "include/jemalloc/internal/private_symbols_jet.awk":C) 13535 f="${objroot}include/jemalloc/internal/private_symbols_jet.awk" 13536 mkdir -p "${objroot}include/jemalloc/internal" 13537 export_syms=`for sym in ${public_syms}; do echo "jet_${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;` 13538 "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols_jet.awk" 13539 ;; 13540 "include/jemalloc/internal/public_namespace.h":C) 13541 mkdir -p "${objroot}include/jemalloc/internal" 13542 "${srcdir}/include/jemalloc/internal/public_namespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_namespace.h" 13543 ;; 13544 "include/jemalloc/internal/public_unnamespace.h":C) 13545 mkdir -p "${objroot}include/jemalloc/internal" 13546 "${srcdir}/include/jemalloc/internal/public_unnamespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_unnamespace.h" 13547 ;; 13548 "include/jemalloc/internal/size_classes.h":C) 13549 mkdir -p "${objroot}include/jemalloc/internal" 13550 "${SHELL}" "${srcdir}/include/jemalloc/internal/size_classes.sh" "${LG_QUANTA}" 3 "${LG_PAGE_SIZES}" 2 > "${objroot}include/jemalloc/internal/size_classes.h" 13551 ;; 13552 "include/jemalloc/jemalloc_protos_jet.h":C) 13553 mkdir -p "${objroot}include/jemalloc" 13554 cat "${srcdir}/include/jemalloc/jemalloc_protos.h.in" | sed -e 's/@je_@/jet_/g' > "${objroot}include/jemalloc/jemalloc_protos_jet.h" 13555 ;; 13556 "include/jemalloc/jemalloc_rename.h":C) 13557 mkdir -p "${objroot}include/jemalloc" 13558 "${srcdir}/include/jemalloc/jemalloc_rename.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/jemalloc_rename.h" 13559 ;; 13560 "include/jemalloc/jemalloc_mangle.h":C) 13561 mkdir -p "${objroot}include/jemalloc" 13562 "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" je_ > "${objroot}include/jemalloc/jemalloc_mangle.h" 13563 ;; 13564 "include/jemalloc/jemalloc_mangle_jet.h":C) 13565 mkdir -p "${objroot}include/jemalloc" 13566 "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" jet_ > "${objroot}include/jemalloc/jemalloc_mangle_jet.h" 13567 ;; 13568 "include/jemalloc/jemalloc.h":C) 13569 mkdir -p "${objroot}include/jemalloc" 13570 "${srcdir}/include/jemalloc/jemalloc.sh" "${objroot}" > "${objroot}include/jemalloc/jemalloc${install_suffix}.h" 13571 ;; 13572 13573 esac 13574done # for ac_tag 13575 13576 13577as_fn_exit 0 13578_ACEOF 13579ac_clean_files=$ac_clean_files_save 13580 13581test $ac_write_fail = 0 || 13582 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13583 13584 13585# configure is writing to config.log, and then calls config.status. 13586# config.status does its own redirection, appending to config.log. 13587# Unfortunately, on DOS this fails, as config.log is still kept open 13588# by configure, so config.status won't be able to write to it; its 13589# output is simply discarded. So we exec the FD to /dev/null, 13590# effectively closing config.log, so it can be properly (re)opened and 13591# appended to by config.status. When coming back to configure, we 13592# need to make the FD available again. 13593if test "$no_create" != yes; then 13594 ac_cs_success=: 13595 ac_config_status_args= 13596 test "$silent" = yes && 13597 ac_config_status_args="$ac_config_status_args --quiet" 13598 exec 5>/dev/null 13599 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13600 exec 5>>config.log 13601 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13602 # would make configure fail if this is the last instruction. 13603 $ac_cs_success || as_fn_exit 1 13604fi 13605if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13607$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13608fi 13609 13610 13611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5 13612$as_echo "===============================================================================" >&6; } 13613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version : ${jemalloc_version}" >&5 13614$as_echo "jemalloc version : ${jemalloc_version}" >&6; } 13615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: library revision : ${rev}" >&5 13616$as_echo "library revision : ${rev}" >&6; } 13617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 13618$as_echo "" >&6; } 13619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIG : ${CONFIG}" >&5 13620$as_echo "CONFIG : ${CONFIG}" >&6; } 13621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC : ${CC}" >&5 13622$as_echo "CC : ${CC}" >&6; } 13623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CFLAGS : ${CONFIGURE_CFLAGS}" >&5 13624$as_echo "CONFIGURE_CFLAGS : ${CONFIGURE_CFLAGS}" >&6; } 13625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CFLAGS : ${SPECIFIED_CFLAGS}" >&5 13626$as_echo "SPECIFIED_CFLAGS : ${SPECIFIED_CFLAGS}" >&6; } 13627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CFLAGS : ${EXTRA_CFLAGS}" >&5 13628$as_echo "EXTRA_CFLAGS : ${EXTRA_CFLAGS}" >&6; } 13629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS : ${CPPFLAGS}" >&5 13630$as_echo "CPPFLAGS : ${CPPFLAGS}" >&6; } 13631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CXX : ${CXX}" >&5 13632$as_echo "CXX : ${CXX}" >&6; } 13633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&5 13634$as_echo "CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&6; } 13635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&5 13636$as_echo "SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&6; } 13637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CXXFLAGS : ${EXTRA_CXXFLAGS}" >&5 13638$as_echo "EXTRA_CXXFLAGS : ${EXTRA_CXXFLAGS}" >&6; } 13639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS : ${LDFLAGS}" >&5 13640$as_echo "LDFLAGS : ${LDFLAGS}" >&6; } 13641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&5 13642$as_echo "EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&6; } 13643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: DSO_LDFLAGS : ${DSO_LDFLAGS}" >&5 13644$as_echo "DSO_LDFLAGS : ${DSO_LDFLAGS}" >&6; } 13645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS : ${LIBS}" >&5 13646$as_echo "LIBS : ${LIBS}" >&6; } 13647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA : ${RPATH_EXTRA}" >&5 13648$as_echo "RPATH_EXTRA : ${RPATH_EXTRA}" >&6; } 13649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 13650$as_echo "" >&6; } 13651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC : ${XSLTPROC}" >&5 13652$as_echo "XSLTPROC : ${XSLTPROC}" >&6; } 13653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT : ${XSLROOT}" >&5 13654$as_echo "XSLROOT : ${XSLROOT}" >&6; } 13655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 13656$as_echo "" >&6; } 13657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX : ${PREFIX}" >&5 13658$as_echo "PREFIX : ${PREFIX}" >&6; } 13659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR : ${BINDIR}" >&5 13660$as_echo "BINDIR : ${BINDIR}" >&6; } 13661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR : ${DATADIR}" >&5 13662$as_echo "DATADIR : ${DATADIR}" >&6; } 13663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR : ${INCLUDEDIR}" >&5 13664$as_echo "INCLUDEDIR : ${INCLUDEDIR}" >&6; } 13665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR : ${LIBDIR}" >&5 13666$as_echo "LIBDIR : ${LIBDIR}" >&6; } 13667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR : ${MANDIR}" >&5 13668$as_echo "MANDIR : ${MANDIR}" >&6; } 13669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 13670$as_echo "" >&6; } 13671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot : ${srcroot}" >&5 13672$as_echo "srcroot : ${srcroot}" >&6; } 13673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot : ${abs_srcroot}" >&5 13674$as_echo "abs_srcroot : ${abs_srcroot}" >&6; } 13675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot : ${objroot}" >&5 13676$as_echo "objroot : ${objroot}" >&6; } 13677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot : ${abs_objroot}" >&5 13678$as_echo "abs_objroot : ${abs_objroot}" >&6; } 13679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 13680$as_echo "" >&6; } 13681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&5 13682$as_echo "JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&6; } 13683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5 13684$as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; } 13685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5 13686$as_echo " : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; } 13687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix : ${install_suffix}" >&5 13688$as_echo "install_suffix : ${install_suffix}" >&6; } 13689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc_conf : ${config_malloc_conf}" >&5 13690$as_echo "malloc_conf : ${config_malloc_conf}" >&6; } 13691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen : ${enable_autogen}" >&5 13692$as_echo "autogen : ${enable_autogen}" >&6; } 13693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: debug : ${enable_debug}" >&5 13694$as_echo "debug : ${enable_debug}" >&6; } 13695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: stats : ${enable_stats}" >&5 13696$as_echo "stats : ${enable_stats}" >&6; } 13697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof : ${enable_prof}" >&5 13698$as_echo "prof : ${enable_prof}" >&6; } 13699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind : ${enable_prof_libunwind}" >&5 13700$as_echo "prof-libunwind : ${enable_prof_libunwind}" >&6; } 13701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc : ${enable_prof_libgcc}" >&5 13702$as_echo "prof-libgcc : ${enable_prof_libgcc}" >&6; } 13703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc : ${enable_prof_gcc}" >&5 13704$as_echo "prof-gcc : ${enable_prof_gcc}" >&6; } 13705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: fill : ${enable_fill}" >&5 13706$as_echo "fill : ${enable_fill}" >&6; } 13707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: utrace : ${enable_utrace}" >&5 13708$as_echo "utrace : ${enable_utrace}" >&6; } 13709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc : ${enable_xmalloc}" >&5 13710$as_echo "xmalloc : ${enable_xmalloc}" >&6; } 13711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: log : ${enable_log}" >&5 13712$as_echo "log : ${enable_log}" >&6; } 13713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock : ${enable_lazy_lock}" >&5 13714$as_echo "lazy_lock : ${enable_lazy_lock}" >&6; } 13715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cache-oblivious : ${enable_cache_oblivious}" >&5 13716$as_echo "cache-oblivious : ${enable_cache_oblivious}" >&6; } 13717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cxx : ${enable_cxx}" >&5 13718$as_echo "cxx : ${enable_cxx}" >&6; } 13719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5 13720$as_echo "===============================================================================" >&6; } 13721