Home | History | Annotate | Download | only in jemalloc_new
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69.
      4 #
      5 #
      6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
      7 #
      8 #
      9 # This configure script is free software; the Free Software Foundation
     10 # gives unlimited permission to copy, distribute and modify it.
     11 ## -------------------- ##
     12 ## M4sh Initialization. ##
     13 ## -------------------- ##
     14 
     15 # Be more Bourne compatible
     16 DUALCASE=1; export DUALCASE # for MKS sh
     17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
     18   emulate sh
     19   NULLCMD=:
     20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     21   # is contrary to our usage.  Disable this feature.
     22   alias -g '${1+"$@"}'='"$@"'
     23   setopt NO_GLOB_SUBST
     24 else
     25   case `(set -o) 2>/dev/null` in #(
     26   *posix*) :
     27     set -o posix ;; #(
     28   *) :
     29      ;;
     30 esac
     31 fi
     32 
     33 
     34 as_nl='
     35 '
     36 export as_nl
     37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     41 # Prefer a ksh shell builtin over an external printf program on Solaris,
     42 # but without wasting forks for bash or zsh.
     43 if test -z "$BASH_VERSION$ZSH_VERSION" \
     44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     45   as_echo='print -r --'
     46   as_echo_n='print -rn --'
     47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     48   as_echo='printf %s\n'
     49   as_echo_n='printf %s'
     50 else
     51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     53     as_echo_n='/usr/ucb/echo -n'
     54   else
     55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     56     as_echo_n_body='eval
     57       arg=$1;
     58       case $arg in #(
     59       *"$as_nl"*)
     60 	expr "X$arg" : "X\\(.*\\)$as_nl";
     61 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     62       esac;
     63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     64     '
     65     export as_echo_n_body
     66     as_echo_n='sh -c $as_echo_n_body as_echo'
     67   fi
     68   export as_echo_body
     69   as_echo='sh -c $as_echo_body as_echo'
     70 fi
     71 
     72 # The user is always right.
     73 if test "${PATH_SEPARATOR+set}" != set; then
     74   PATH_SEPARATOR=:
     75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     77       PATH_SEPARATOR=';'
     78   }
     79 fi
     80 
     81 
     82 # IFS
     83 # We need space, tab and new line, in precisely that order.  Quoting is
     84 # there to prevent editors from complaining about space-tab.
     85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     86 # splitting by setting IFS to empty value.)
     87 IFS=" ""	$as_nl"
     88 
     89 # Find who we are.  Look in the path if we contain no directory separator.
     90 as_myself=
     91 case $0 in #((
     92   *[\\/]* ) as_myself=$0 ;;
     93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     94 for as_dir in $PATH
     95 do
     96   IFS=$as_save_IFS
     97   test -z "$as_dir" && as_dir=.
     98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     99   done
    100 IFS=$as_save_IFS
    101 
    102      ;;
    103 esac
    104 # We did not find ourselves, most probably we were run as `sh COMMAND'
    105 # in which case we are not to be found in the path.
    106 if test "x$as_myself" = x; then
    107   as_myself=$0
    108 fi
    109 if test ! -f "$as_myself"; then
    110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    111   exit 1
    112 fi
    113 
    114 # Unset variables that we do not need and which cause bugs (e.g. in
    115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    116 # suppresses any "Segmentation fault" message there.  '((' could
    117 # trigger a bug in pdksh 5.2.14.
    118 for as_var in BASH_ENV ENV MAIL MAILPATH
    119 do eval test x\${$as_var+set} = xset \
    120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    121 done
    122 PS1='$ '
    123 PS2='> '
    124 PS4='+ '
    125 
    126 # NLS nuisances.
    127 LC_ALL=C
    128 export LC_ALL
    129 LANGUAGE=C
    130 export LANGUAGE
    131 
    132 # CDPATH.
    133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    134 
    135 # Use a proper internal environment variable to ensure we don't fall
    136   # into an infinite loop, continuously re-executing ourselves.
    137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    138     _as_can_reexec=no; export _as_can_reexec;
    139     # We cannot yet assume a decent shell, so we have to provide a
    140 # neutralization value for shells without unset; and this also
    141 # works around shells that cannot unset nonexistent variables.
    142 # Preserve -v and -x to the replacement shell.
    143 BASH_ENV=/dev/null
    144 ENV=/dev/null
    145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    146 case $- in # ((((
    147   *v*x* | *x*v* ) as_opts=-vx ;;
    148   *v* ) as_opts=-v ;;
    149   *x* ) as_opts=-x ;;
    150   * ) as_opts= ;;
    151 esac
    152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    153 # Admittedly, this is quite paranoid, since all the known shells bail
    154 # out after a failed `exec'.
    155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    156 as_fn_exit 255
    157   fi
    158   # We don't want this to propagate to other subprocesses.
    159           { _as_can_reexec=; unset _as_can_reexec;}
    160 if test "x$CONFIG_SHELL" = x; then
    161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    162   emulate sh
    163   NULLCMD=:
    164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    165   # is contrary to our usage.  Disable this feature.
    166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    167   setopt NO_GLOB_SUBST
    168 else
    169   case \`(set -o) 2>/dev/null\` in #(
    170   *posix*) :
    171     set -o posix ;; #(
    172   *) :
    173      ;;
    174 esac
    175 fi
    176 "
    177   as_required="as_fn_return () { (exit \$1); }
    178 as_fn_success () { as_fn_return 0; }
    179 as_fn_failure () { as_fn_return 1; }
    180 as_fn_ret_success () { return 0; }
    181 as_fn_ret_failure () { return 1; }
    182 
    183 exitcode=0
    184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    189 
    190 else
    191   exitcode=1; echo positional parameters were not saved.
    192 fi
    193 test x\$exitcode = x0 || exit 1
    194 test -x / || exit 1"
    195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    199 test \$(( 1 + 1 )) = 2 || exit 1"
    200   if (eval "$as_required") 2>/dev/null; then :
    201   as_have_required=yes
    202 else
    203   as_have_required=no
    204 fi
    205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    206 
    207 else
    208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    209 as_found=false
    210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    211 do
    212   IFS=$as_save_IFS
    213   test -z "$as_dir" && as_dir=.
    214   as_found=:
    215   case $as_dir in #(
    216 	 /*)
    217 	   for as_base in sh bash ksh sh5; do
    218 	     # Try only shells that exist, to save several forks.
    219 	     as_shell=$as_dir/$as_base
    220 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    221 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    222   CONFIG_SHELL=$as_shell as_have_required=yes
    223 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    224   break 2
    225 fi
    226 fi
    227 	   done;;
    228        esac
    229   as_found=false
    230 done
    231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    232 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    233   CONFIG_SHELL=$SHELL as_have_required=yes
    234 fi; }
    235 IFS=$as_save_IFS
    236 
    237 
    238       if test "x$CONFIG_SHELL" != x; then :
    239   export CONFIG_SHELL
    240              # We cannot yet assume a decent shell, so we have to provide a
    241 # neutralization value for shells without unset; and this also
    242 # works around shells that cannot unset nonexistent variables.
    243 # Preserve -v and -x to the replacement shell.
    244 BASH_ENV=/dev/null
    245 ENV=/dev/null
    246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    247 case $- in # ((((
    248   *v*x* | *x*v* ) as_opts=-vx ;;
    249   *v* ) as_opts=-v ;;
    250   *x* ) as_opts=-x ;;
    251   * ) as_opts= ;;
    252 esac
    253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    254 # Admittedly, this is quite paranoid, since all the known shells bail
    255 # out after a failed `exec'.
    256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    257 exit 255
    258 fi
    259 
    260     if test x$as_have_required = xno; then :
    261   $as_echo "$0: This script requires a shell more modern than all"
    262   $as_echo "$0: the shells that I found on your system."
    263   if test x${ZSH_VERSION+set} = xset ; then
    264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    266   else
    267     $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
    268 $0: including any error possibly output before this
    269 $0: message. Then install a modern shell, or manually run
    270 $0: the script under such a shell if you do have one."
    271   fi
    272   exit 1
    273 fi
    274 fi
    275 fi
    276 SHELL=${CONFIG_SHELL-/bin/sh}
    277 export SHELL
    278 # Unset more variables known to interfere with behavior of common tools.
    279 CLICOLOR_FORCE= GREP_OPTIONS=
    280 unset CLICOLOR_FORCE GREP_OPTIONS
    281 
    282 ## --------------------- ##
    283 ## M4sh Shell Functions. ##
    284 ## --------------------- ##
    285 # as_fn_unset VAR
    286 # ---------------
    287 # Portably unset VAR.
    288 as_fn_unset ()
    289 {
    290   { eval $1=; unset $1;}
    291 }
    292 as_unset=as_fn_unset
    293 
    294 # as_fn_set_status STATUS
    295 # -----------------------
    296 # Set $? to STATUS, without forking.
    297 as_fn_set_status ()
    298 {
    299   return $1
    300 } # as_fn_set_status
    301 
    302 # as_fn_exit STATUS
    303 # -----------------
    304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    305 as_fn_exit ()
    306 {
    307   set +e
    308   as_fn_set_status $1
    309   exit $1
    310 } # as_fn_exit
    311 
    312 # as_fn_mkdir_p
    313 # -------------
    314 # Create "$as_dir" as a directory, including parents if necessary.
    315 as_fn_mkdir_p ()
    316 {
    317 
    318   case $as_dir in #(
    319   -*) as_dir=./$as_dir;;
    320   esac
    321   test -d "$as_dir" || eval $as_mkdir_p || {
    322     as_dirs=
    323     while :; do
    324       case $as_dir in #(
    325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    326       *) as_qdir=$as_dir;;
    327       esac
    328       as_dirs="'$as_qdir' $as_dirs"
    329       as_dir=`$as_dirname -- "$as_dir" ||
    330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    331 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    332 	 X"$as_dir" : 'X\(//\)$' \| \
    333 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    334 $as_echo X"$as_dir" |
    335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    336 	    s//\1/
    337 	    q
    338 	  }
    339 	  /^X\(\/\/\)[^/].*/{
    340 	    s//\1/
    341 	    q
    342 	  }
    343 	  /^X\(\/\/\)$/{
    344 	    s//\1/
    345 	    q
    346 	  }
    347 	  /^X\(\/\).*/{
    348 	    s//\1/
    349 	    q
    350 	  }
    351 	  s/.*/./; q'`
    352       test -d "$as_dir" && break
    353     done
    354     test -z "$as_dirs" || eval "mkdir $as_dirs"
    355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    356 
    357 
    358 } # as_fn_mkdir_p
    359 
    360 # as_fn_executable_p FILE
    361 # -----------------------
    362 # Test if FILE is an executable regular file.
    363 as_fn_executable_p ()
    364 {
    365   test -f "$1" && test -x "$1"
    366 } # as_fn_executable_p
    367 # as_fn_append VAR VALUE
    368 # ----------------------
    369 # Append the text in VALUE to the end of the definition contained in VAR. Take
    370 # advantage of any shell optimizations that allow amortized linear growth over
    371 # repeated appends, instead of the typical quadratic growth present in naive
    372 # implementations.
    373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    374   eval 'as_fn_append ()
    375   {
    376     eval $1+=\$2
    377   }'
    378 else
    379   as_fn_append ()
    380   {
    381     eval $1=\$$1\$2
    382   }
    383 fi # as_fn_append
    384 
    385 # as_fn_arith ARG...
    386 # ------------------
    387 # Perform arithmetic evaluation on the ARGs, and store the result in the
    388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    389 # must be portable across $(()) and expr.
    390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    391   eval 'as_fn_arith ()
    392   {
    393     as_val=$(( $* ))
    394   }'
    395 else
    396   as_fn_arith ()
    397   {
    398     as_val=`expr "$@" || test $? -eq 1`
    399   }
    400 fi # as_fn_arith
    401 
    402 
    403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    404 # ----------------------------------------
    405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    407 # script with STATUS, using 1 if that was 0.
    408 as_fn_error ()
    409 {
    410   as_status=$1; test $as_status -eq 0 && as_status=1
    411   if test "$4"; then
    412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    414   fi
    415   $as_echo "$as_me: error: $2" >&2
    416   as_fn_exit $as_status
    417 } # as_fn_error
    418 
    419 if expr a : '\(a\)' >/dev/null 2>&1 &&
    420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    421   as_expr=expr
    422 else
    423   as_expr=false
    424 fi
    425 
    426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    427   as_basename=basename
    428 else
    429   as_basename=false
    430 fi
    431 
    432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    433   as_dirname=dirname
    434 else
    435   as_dirname=false
    436 fi
    437 
    438 as_me=`$as_basename -- "$0" ||
    439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    440 	 X"$0" : 'X\(//\)$' \| \
    441 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    442 $as_echo X/"$0" |
    443     sed '/^.*\/\([^/][^/]*\)\/*$/{
    444 	    s//\1/
    445 	    q
    446 	  }
    447 	  /^X\/\(\/\/\)$/{
    448 	    s//\1/
    449 	    q
    450 	  }
    451 	  /^X\/\(\/\).*/{
    452 	    s//\1/
    453 	    q
    454 	  }
    455 	  s/.*/./; q'`
    456 
    457 # Avoid depending upon Character Ranges.
    458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    461 as_cr_digits='0123456789'
    462 as_cr_alnum=$as_cr_Letters$as_cr_digits
    463 
    464 
    465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    470   sed -n '
    471     p
    472     /[$]LINENO/=
    473   ' <$as_myself |
    474     sed '
    475       s/[$]LINENO.*/&-/
    476       t lineno
    477       b
    478       :lineno
    479       N
    480       :loop
    481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    482       t loop
    483       s/-\n.*//
    484     ' >$as_me.lineno &&
    485   chmod +x "$as_me.lineno" ||
    486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    487 
    488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    489   # already done that, so ensure we don't try to do so again and fall
    490   # in an infinite loop.  This has already happened in practice.
    491   _as_can_reexec=no; export _as_can_reexec
    492   # Don't try to exec as it changes $[0], causing all sort of problems
    493   # (the dirname of $[0] is not the place where we might find the
    494   # original and so on.  Autoconf is especially sensitive to this).
    495   . "./$as_me.lineno"
    496   # Exit status is that of the last command.
    497   exit
    498 }
    499 
    500 ECHO_C= ECHO_N= ECHO_T=
    501 case `echo -n x` in #(((((
    502 -n*)
    503   case `echo 'xy\c'` in
    504   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    505   xy)  ECHO_C='\c';;
    506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    507        ECHO_T='	';;
    508   esac;;
    509 *)
    510   ECHO_N='-n';;
    511 esac
    512 
    513 rm -f conf$$ conf$$.exe conf$$.file
    514 if test -d conf$$.dir; then
    515   rm -f conf$$.dir/conf$$.file
    516 else
    517   rm -f conf$$.dir
    518   mkdir conf$$.dir 2>/dev/null
    519 fi
    520 if (echo >conf$$.file) 2>/dev/null; then
    521   if ln -s conf$$.file conf$$ 2>/dev/null; then
    522     as_ln_s='ln -s'
    523     # ... but there are two gotchas:
    524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    526     # In both cases, we have to default to `cp -pR'.
    527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    528       as_ln_s='cp -pR'
    529   elif ln conf$$.file conf$$ 2>/dev/null; then
    530     as_ln_s=ln
    531   else
    532     as_ln_s='cp -pR'
    533   fi
    534 else
    535   as_ln_s='cp -pR'
    536 fi
    537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    538 rmdir conf$$.dir 2>/dev/null
    539 
    540 if mkdir -p . 2>/dev/null; then
    541   as_mkdir_p='mkdir -p "$as_dir"'
    542 else
    543   test -d ./-p && rmdir ./-p
    544   as_mkdir_p=false
    545 fi
    546 
    547 as_test_x='test -x'
    548 as_executable_p=as_fn_executable_p
    549 
    550 # Sed expression to map a string onto a valid CPP name.
    551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    552 
    553 # Sed expression to map a string onto a valid variable name.
    554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    555 
    556 
    557 test -n "$DJDIR" || exec 7<&0 </dev/null
    558 exec 6>&1
    559 
    560 # Name of the host.
    561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    562 # so uname gets run too.
    563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    564 
    565 #
    566 # Initializations.
    567 #
    568 ac_default_prefix=/usr/local
    569 ac_clean_files=
    570 ac_config_libobj_dir=.
    571 LIBOBJS=
    572 cross_compiling=no
    573 subdirs=
    574 MFLAGS=
    575 MAKEFLAGS=
    576 
    577 # Identity of this package.
    578 PACKAGE_NAME=
    579 PACKAGE_TARNAME=
    580 PACKAGE_VERSION=
    581 PACKAGE_STRING=
    582 PACKAGE_BUGREPORT=
    583 PACKAGE_URL=
    584 
    585 ac_unique_file="Makefile.in"
    586 # Factoring default headers for most tests.
    587 ac_includes_default="\
    588 #include <stdio.h>
    589 #ifdef HAVE_SYS_TYPES_H
    590 # include <sys/types.h>
    591 #endif
    592 #ifdef HAVE_SYS_STAT_H
    593 # include <sys/stat.h>
    594 #endif
    595 #ifdef STDC_HEADERS
    596 # include <stdlib.h>
    597 # include <stddef.h>
    598 #else
    599 # ifdef HAVE_STDLIB_H
    600 #  include <stdlib.h>
    601 # endif
    602 #endif
    603 #ifdef HAVE_STRING_H
    604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    605 #  include <memory.h>
    606 # endif
    607 # include <string.h>
    608 #endif
    609 #ifdef HAVE_STRINGS_H
    610 # include <strings.h>
    611 #endif
    612 #ifdef HAVE_INTTYPES_H
    613 # include <inttypes.h>
    614 #endif
    615 #ifdef HAVE_STDINT_H
    616 # include <stdint.h>
    617 #endif
    618 #ifdef HAVE_UNISTD_H
    619 # include <unistd.h>
    620 #endif"
    621 
    622 ac_subst_vars='LTLIBOBJS
    623 LIBOBJS
    624 cfgoutputs_out
    625 cfgoutputs_in
    626 cfghdrs_out
    627 cfghdrs_in
    628 enable_initial_exec_tls
    629 enable_zone_allocator
    630 enable_tls
    631 enable_lazy_lock
    632 jemalloc_version_gid
    633 jemalloc_version_nrev
    634 jemalloc_version_bugfix
    635 jemalloc_version_minor
    636 jemalloc_version_major
    637 jemalloc_version
    638 enable_log
    639 enable_cache_oblivious
    640 enable_xmalloc
    641 enable_utrace
    642 enable_fill
    643 enable_prof
    644 enable_stats
    645 enable_debug
    646 je_
    647 install_suffix
    648 private_namespace
    649 JEMALLOC_CPREFIX
    650 JEMALLOC_PREFIX
    651 AUTOCONF
    652 LD
    653 RANLIB
    654 INSTALL_DATA
    655 INSTALL_SCRIPT
    656 INSTALL_PROGRAM
    657 enable_autogen
    658 RPATH_EXTRA
    659 LM
    660 CC_MM
    661 DUMP_SYMS
    662 AROUT
    663 ARFLAGS
    664 MKLIB
    665 TEST_LD_MODE
    666 LDTARGET
    667 CTARGET
    668 PIC_CFLAGS
    669 SOREV
    670 EXTRA_LDFLAGS
    671 DSO_LDFLAGS
    672 link_whole_archive
    673 libprefix
    674 exe
    675 a
    676 o
    677 importlib
    678 so
    679 LD_PRELOAD_VAR
    680 RPATH
    681 abi
    682 AWK
    683 NM
    684 AR
    685 host_os
    686 host_vendor
    687 host_cpu
    688 host
    689 build_os
    690 build_vendor
    691 build_cpu
    692 build
    693 EGREP
    694 GREP
    695 EXTRA_CXXFLAGS
    696 SPECIFIED_CXXFLAGS
    697 CONFIGURE_CXXFLAGS
    698 enable_cxx
    699 HAVE_CXX14
    700 ac_ct_CXX
    701 CXXFLAGS
    702 CXX
    703 CPP
    704 EXTRA_CFLAGS
    705 SPECIFIED_CFLAGS
    706 CONFIGURE_CFLAGS
    707 OBJEXT
    708 EXEEXT
    709 ac_ct_CC
    710 CPPFLAGS
    711 LDFLAGS
    712 CFLAGS
    713 CC
    714 XSLROOT
    715 XSLTPROC
    716 MANDIR
    717 DATADIR
    718 LIBDIR
    719 INCLUDEDIR
    720 BINDIR
    721 PREFIX
    722 abs_objroot
    723 objroot
    724 abs_srcroot
    725 srcroot
    726 rev
    727 CONFIG
    728 target_alias
    729 host_alias
    730 build_alias
    731 LIBS
    732 ECHO_T
    733 ECHO_N
    734 ECHO_C
    735 DEFS
    736 mandir
    737 localedir
    738 libdir
    739 psdir
    740 pdfdir
    741 dvidir
    742 htmldir
    743 infodir
    744 docdir
    745 oldincludedir
    746 includedir
    747 runstatedir
    748 localstatedir
    749 sharedstatedir
    750 sysconfdir
    751 datadir
    752 datarootdir
    753 libexecdir
    754 sbindir
    755 bindir
    756 program_transform_name
    757 prefix
    758 exec_prefix
    759 PACKAGE_URL
    760 PACKAGE_BUGREPORT
    761 PACKAGE_STRING
    762 PACKAGE_VERSION
    763 PACKAGE_TARNAME
    764 PACKAGE_NAME
    765 PATH_SEPARATOR
    766 SHELL'
    767 ac_subst_files=''
    768 ac_user_opts='
    769 enable_option_checking
    770 with_xslroot
    771 enable_cxx
    772 with_lg_vaddr
    773 with_rpath
    774 enable_autogen
    775 with_mangling
    776 with_jemalloc_prefix
    777 with_export
    778 with_private_namespace
    779 with_install_suffix
    780 with_malloc_conf
    781 enable_debug
    782 enable_stats
    783 enable_prof
    784 enable_prof_libunwind
    785 with_static_libunwind
    786 enable_prof_libgcc
    787 enable_prof_gcc
    788 enable_fill
    789 enable_utrace
    790 enable_xmalloc
    791 enable_cache_oblivious
    792 enable_log
    793 with_lg_quantum
    794 with_lg_page
    795 with_lg_hugepage
    796 with_lg_page_sizes
    797 with_version
    798 enable_syscall
    799 enable_lazy_lock
    800 enable_zone_allocator
    801 enable_initial_exec_tls
    802 '
    803       ac_precious_vars='build_alias
    804 host_alias
    805 target_alias
    806 CC
    807 CFLAGS
    808 LDFLAGS
    809 LIBS
    810 CPPFLAGS
    811 CPP
    812 CXX
    813 CXXFLAGS
    814 CCC'
    815 
    816 
    817 # Initialize some variables set by options.
    818 ac_init_help=
    819 ac_init_version=false
    820 ac_unrecognized_opts=
    821 ac_unrecognized_sep=
    822 # The variables have the same names as the options, with
    823 # dashes changed to underlines.
    824 cache_file=/dev/null
    825 exec_prefix=NONE
    826 no_create=
    827 no_recursion=
    828 prefix=NONE
    829 program_prefix=NONE
    830 program_suffix=NONE
    831 program_transform_name=s,x,x,
    832 silent=
    833 site=
    834 srcdir=
    835 verbose=
    836 x_includes=NONE
    837 x_libraries=NONE
    838 
    839 # Installation directory options.
    840 # These are left unexpanded so users can "make install exec_prefix=/foo"
    841 # and all the variables that are supposed to be based on exec_prefix
    842 # by default will actually change.
    843 # Use braces instead of parens because sh, perl, etc. also accept them.
    844 # (The list follows the same order as the GNU Coding Standards.)
    845 bindir='${exec_prefix}/bin'
    846 sbindir='${exec_prefix}/sbin'
    847 libexecdir='${exec_prefix}/libexec'
    848 datarootdir='${prefix}/share'
    849 datadir='${datarootdir}'
    850 sysconfdir='${prefix}/etc'
    851 sharedstatedir='${prefix}/com'
    852 localstatedir='${prefix}/var'
    853 runstatedir='${localstatedir}/run'
    854 includedir='${prefix}/include'
    855 oldincludedir='/usr/include'
    856 docdir='${datarootdir}/doc/${PACKAGE}'
    857 infodir='${datarootdir}/info'
    858 htmldir='${docdir}'
    859 dvidir='${docdir}'
    860 pdfdir='${docdir}'
    861 psdir='${docdir}'
    862 libdir='${exec_prefix}/lib'
    863 localedir='${datarootdir}/locale'
    864 mandir='${datarootdir}/man'
    865 
    866 ac_prev=
    867 ac_dashdash=
    868 for ac_option
    869 do
    870   # If the previous option needs an argument, assign it.
    871   if test -n "$ac_prev"; then
    872     eval $ac_prev=\$ac_option
    873     ac_prev=
    874     continue
    875   fi
    876 
    877   case $ac_option in
    878   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    879   *=)   ac_optarg= ;;
    880   *)    ac_optarg=yes ;;
    881   esac
    882 
    883   # Accept the important Cygnus configure options, so we can diagnose typos.
    884 
    885   case $ac_dashdash$ac_option in
    886   --)
    887     ac_dashdash=yes ;;
    888 
    889   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    890     ac_prev=bindir ;;
    891   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    892     bindir=$ac_optarg ;;
    893 
    894   -build | --build | --buil | --bui | --bu)
    895     ac_prev=build_alias ;;
    896   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    897     build_alias=$ac_optarg ;;
    898 
    899   -cache-file | --cache-file | --cache-fil | --cache-fi \
    900   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    901     ac_prev=cache_file ;;
    902   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    903   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    904     cache_file=$ac_optarg ;;
    905 
    906   --config-cache | -C)
    907     cache_file=config.cache ;;
    908 
    909   -datadir | --datadir | --datadi | --datad)
    910     ac_prev=datadir ;;
    911   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    912     datadir=$ac_optarg ;;
    913 
    914   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    915   | --dataroo | --dataro | --datar)
    916     ac_prev=datarootdir ;;
    917   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    918   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    919     datarootdir=$ac_optarg ;;
    920 
    921   -disable-* | --disable-*)
    922     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    923     # Reject names that are not valid shell variable names.
    924     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    925       as_fn_error $? "invalid feature name: $ac_useropt"
    926     ac_useropt_orig=$ac_useropt
    927     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    928     case $ac_user_opts in
    929       *"
    930 "enable_$ac_useropt"
    931 "*) ;;
    932       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    933 	 ac_unrecognized_sep=', ';;
    934     esac
    935     eval enable_$ac_useropt=no ;;
    936 
    937   -docdir | --docdir | --docdi | --doc | --do)
    938     ac_prev=docdir ;;
    939   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    940     docdir=$ac_optarg ;;
    941 
    942   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    943     ac_prev=dvidir ;;
    944   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    945     dvidir=$ac_optarg ;;
    946 
    947   -enable-* | --enable-*)
    948     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    949     # Reject names that are not valid shell variable names.
    950     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    951       as_fn_error $? "invalid feature name: $ac_useropt"
    952     ac_useropt_orig=$ac_useropt
    953     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    954     case $ac_user_opts in
    955       *"
    956 "enable_$ac_useropt"
    957 "*) ;;
    958       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    959 	 ac_unrecognized_sep=', ';;
    960     esac
    961     eval enable_$ac_useropt=\$ac_optarg ;;
    962 
    963   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    964   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    965   | --exec | --exe | --ex)
    966     ac_prev=exec_prefix ;;
    967   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    968   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    969   | --exec=* | --exe=* | --ex=*)
    970     exec_prefix=$ac_optarg ;;
    971 
    972   -gas | --gas | --ga | --g)
    973     # Obsolete; use --with-gas.
    974     with_gas=yes ;;
    975 
    976   -help | --help | --hel | --he | -h)
    977     ac_init_help=long ;;
    978   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    979     ac_init_help=recursive ;;
    980   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    981     ac_init_help=short ;;
    982 
    983   -host | --host | --hos | --ho)
    984     ac_prev=host_alias ;;
    985   -host=* | --host=* | --hos=* | --ho=*)
    986     host_alias=$ac_optarg ;;
    987 
    988   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    989     ac_prev=htmldir ;;
    990   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    991   | --ht=*)
    992     htmldir=$ac_optarg ;;
    993 
    994   -includedir | --includedir | --includedi | --included | --include \
    995   | --includ | --inclu | --incl | --inc)
    996     ac_prev=includedir ;;
    997   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    998   | --includ=* | --inclu=* | --incl=* | --inc=*)
    999     includedir=$ac_optarg ;;
   1000 
   1001   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1002     ac_prev=infodir ;;
   1003   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1004     infodir=$ac_optarg ;;
   1005 
   1006   -libdir | --libdir | --libdi | --libd)
   1007     ac_prev=libdir ;;
   1008   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1009     libdir=$ac_optarg ;;
   1010 
   1011   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1012   | --libexe | --libex | --libe)
   1013     ac_prev=libexecdir ;;
   1014   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1015   | --libexe=* | --libex=* | --libe=*)
   1016     libexecdir=$ac_optarg ;;
   1017 
   1018   -localedir | --localedir | --localedi | --localed | --locale)
   1019     ac_prev=localedir ;;
   1020   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1021     localedir=$ac_optarg ;;
   1022 
   1023   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1024   | --localstate | --localstat | --localsta | --localst | --locals)
   1025     ac_prev=localstatedir ;;
   1026   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1027   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1028     localstatedir=$ac_optarg ;;
   1029 
   1030   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1031     ac_prev=mandir ;;
   1032   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1033     mandir=$ac_optarg ;;
   1034 
   1035   -nfp | --nfp | --nf)
   1036     # Obsolete; use --without-fp.
   1037     with_fp=no ;;
   1038 
   1039   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1040   | --no-cr | --no-c | -n)
   1041     no_create=yes ;;
   1042 
   1043   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1044   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1045     no_recursion=yes ;;
   1046 
   1047   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1048   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1049   | --oldin | --oldi | --old | --ol | --o)
   1050     ac_prev=oldincludedir ;;
   1051   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1052   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1053   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1054     oldincludedir=$ac_optarg ;;
   1055 
   1056   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1057     ac_prev=prefix ;;
   1058   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1059     prefix=$ac_optarg ;;
   1060 
   1061   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1062   | --program-pre | --program-pr | --program-p)
   1063     ac_prev=program_prefix ;;
   1064   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1065   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1066     program_prefix=$ac_optarg ;;
   1067 
   1068   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1069   | --program-suf | --program-su | --program-s)
   1070     ac_prev=program_suffix ;;
   1071   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1072   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1073     program_suffix=$ac_optarg ;;
   1074 
   1075   -program-transform-name | --program-transform-name \
   1076   | --program-transform-nam | --program-transform-na \
   1077   | --program-transform-n | --program-transform- \
   1078   | --program-transform | --program-transfor \
   1079   | --program-transfo | --program-transf \
   1080   | --program-trans | --program-tran \
   1081   | --progr-tra | --program-tr | --program-t)
   1082     ac_prev=program_transform_name ;;
   1083   -program-transform-name=* | --program-transform-name=* \
   1084   | --program-transform-nam=* | --program-transform-na=* \
   1085   | --program-transform-n=* | --program-transform-=* \
   1086   | --program-transform=* | --program-transfor=* \
   1087   | --program-transfo=* | --program-transf=* \
   1088   | --program-trans=* | --program-tran=* \
   1089   | --progr-tra=* | --program-tr=* | --program-t=*)
   1090     program_transform_name=$ac_optarg ;;
   1091 
   1092   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1093     ac_prev=pdfdir ;;
   1094   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1095     pdfdir=$ac_optarg ;;
   1096 
   1097   -psdir | --psdir | --psdi | --psd | --ps)
   1098     ac_prev=psdir ;;
   1099   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1100     psdir=$ac_optarg ;;
   1101 
   1102   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1103   | -silent | --silent | --silen | --sile | --sil)
   1104     silent=yes ;;
   1105 
   1106   -runstatedir | --runstatedir | --runstatedi | --runstated \
   1107   | --runstate | --runstat | --runsta | --runst | --runs \
   1108   | --run | --ru | --r)
   1109     ac_prev=runstatedir ;;
   1110   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
   1111   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
   1112   | --run=* | --ru=* | --r=*)
   1113     runstatedir=$ac_optarg ;;
   1114 
   1115   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1116     ac_prev=sbindir ;;
   1117   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1118   | --sbi=* | --sb=*)
   1119     sbindir=$ac_optarg ;;
   1120 
   1121   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1122   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1123   | --sharedst | --shareds | --shared | --share | --shar \
   1124   | --sha | --sh)
   1125     ac_prev=sharedstatedir ;;
   1126   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1127   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1128   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1129   | --sha=* | --sh=*)
   1130     sharedstatedir=$ac_optarg ;;
   1131 
   1132   -site | --site | --sit)
   1133     ac_prev=site ;;
   1134   -site=* | --site=* | --sit=*)
   1135     site=$ac_optarg ;;
   1136 
   1137   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1138     ac_prev=srcdir ;;
   1139   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1140     srcdir=$ac_optarg ;;
   1141 
   1142   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1143   | --syscon | --sysco | --sysc | --sys | --sy)
   1144     ac_prev=sysconfdir ;;
   1145   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1146   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1147     sysconfdir=$ac_optarg ;;
   1148 
   1149   -target | --target | --targe | --targ | --tar | --ta | --t)
   1150     ac_prev=target_alias ;;
   1151   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1152     target_alias=$ac_optarg ;;
   1153 
   1154   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1155     verbose=yes ;;
   1156 
   1157   -version | --version | --versio | --versi | --vers | -V)
   1158     ac_init_version=: ;;
   1159 
   1160   -with-* | --with-*)
   1161     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1162     # Reject names that are not valid shell variable names.
   1163     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1164       as_fn_error $? "invalid package name: $ac_useropt"
   1165     ac_useropt_orig=$ac_useropt
   1166     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1167     case $ac_user_opts in
   1168       *"
   1169 "with_$ac_useropt"
   1170 "*) ;;
   1171       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1172 	 ac_unrecognized_sep=', ';;
   1173     esac
   1174     eval with_$ac_useropt=\$ac_optarg ;;
   1175 
   1176   -without-* | --without-*)
   1177     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1178     # Reject names that are not valid shell variable names.
   1179     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1180       as_fn_error $? "invalid package name: $ac_useropt"
   1181     ac_useropt_orig=$ac_useropt
   1182     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1183     case $ac_user_opts in
   1184       *"
   1185 "with_$ac_useropt"
   1186 "*) ;;
   1187       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1188 	 ac_unrecognized_sep=', ';;
   1189     esac
   1190     eval with_$ac_useropt=no ;;
   1191 
   1192   --x)
   1193     # Obsolete; use --with-x.
   1194     with_x=yes ;;
   1195 
   1196   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1197   | --x-incl | --x-inc | --x-in | --x-i)
   1198     ac_prev=x_includes ;;
   1199   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1200   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1201     x_includes=$ac_optarg ;;
   1202 
   1203   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1204   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1205     ac_prev=x_libraries ;;
   1206   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1207   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1208     x_libraries=$ac_optarg ;;
   1209 
   1210   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1211 Try \`$0 --help' for more information"
   1212     ;;
   1213 
   1214   *=*)
   1215     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1216     # Reject names that are not valid shell variable names.
   1217     case $ac_envvar in #(
   1218       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1219       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1220     esac
   1221     eval $ac_envvar=\$ac_optarg
   1222     export $ac_envvar ;;
   1223 
   1224   *)
   1225     # FIXME: should be removed in autoconf 3.0.
   1226     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1227     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1228       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1229     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1230     ;;
   1231 
   1232   esac
   1233 done
   1234 
   1235 if test -n "$ac_prev"; then
   1236   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1237   as_fn_error $? "missing argument to $ac_option"
   1238 fi
   1239 
   1240 if test -n "$ac_unrecognized_opts"; then
   1241   case $enable_option_checking in
   1242     no) ;;
   1243     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1244     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1245   esac
   1246 fi
   1247 
   1248 # Check all directory arguments for consistency.
   1249 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1250 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1251 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1252 		libdir localedir mandir runstatedir
   1253 do
   1254   eval ac_val=\$$ac_var
   1255   # Remove trailing slashes.
   1256   case $ac_val in
   1257     */ )
   1258       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1259       eval $ac_var=\$ac_val;;
   1260   esac
   1261   # Be sure to have absolute directory names.
   1262   case $ac_val in
   1263     [\\/$]* | ?:[\\/]* )  continue;;
   1264     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1265   esac
   1266   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1267 done
   1268 
   1269 # There might be people who depend on the old broken behavior: `$host'
   1270 # used to hold the argument of --host etc.
   1271 # FIXME: To remove some day.
   1272 build=$build_alias
   1273 host=$host_alias
   1274 target=$target_alias
   1275 
   1276 # FIXME: To remove some day.
   1277 if test "x$host_alias" != x; then
   1278   if test "x$build_alias" = x; then
   1279     cross_compiling=maybe
   1280   elif test "x$build_alias" != "x$host_alias"; then
   1281     cross_compiling=yes
   1282   fi
   1283 fi
   1284 
   1285 ac_tool_prefix=
   1286 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1287 
   1288 test "$silent" = yes && exec 6>/dev/null
   1289 
   1290 
   1291 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1292 ac_ls_di=`ls -di .` &&
   1293 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1294   as_fn_error $? "working directory cannot be determined"
   1295 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1296   as_fn_error $? "pwd does not report name of working directory"
   1297 
   1298 
   1299 # Find the source files, if location was not specified.
   1300 if test -z "$srcdir"; then
   1301   ac_srcdir_defaulted=yes
   1302   # Try the directory containing this script, then the parent directory.
   1303   ac_confdir=`$as_dirname -- "$as_myself" ||
   1304 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1305 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1306 	 X"$as_myself" : 'X\(//\)$' \| \
   1307 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1308 $as_echo X"$as_myself" |
   1309     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1310 	    s//\1/
   1311 	    q
   1312 	  }
   1313 	  /^X\(\/\/\)[^/].*/{
   1314 	    s//\1/
   1315 	    q
   1316 	  }
   1317 	  /^X\(\/\/\)$/{
   1318 	    s//\1/
   1319 	    q
   1320 	  }
   1321 	  /^X\(\/\).*/{
   1322 	    s//\1/
   1323 	    q
   1324 	  }
   1325 	  s/.*/./; q'`
   1326   srcdir=$ac_confdir
   1327   if test ! -r "$srcdir/$ac_unique_file"; then
   1328     srcdir=..
   1329   fi
   1330 else
   1331   ac_srcdir_defaulted=no
   1332 fi
   1333 if test ! -r "$srcdir/$ac_unique_file"; then
   1334   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1335   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1336 fi
   1337 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1338 ac_abs_confdir=`(
   1339 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1340 	pwd)`
   1341 # When building in place, set srcdir=.
   1342 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1343   srcdir=.
   1344 fi
   1345 # Remove unnecessary trailing slashes from srcdir.
   1346 # Double slashes in file names in object file debugging info
   1347 # mess up M-x gdb in Emacs.
   1348 case $srcdir in
   1349 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1350 esac
   1351 for ac_var in $ac_precious_vars; do
   1352   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1353   eval ac_env_${ac_var}_value=\$${ac_var}
   1354   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1355   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1356 done
   1357 
   1358 #
   1359 # Report the --help message.
   1360 #
   1361 if test "$ac_init_help" = "long"; then
   1362   # Omit some internal or obsolete options to make the list less imposing.
   1363   # This message is too long to be a string in the A/UX 3.1 sh.
   1364   cat <<_ACEOF
   1365 \`configure' configures this package to adapt to many kinds of systems.
   1366 
   1367 Usage: $0 [OPTION]... [VAR=VALUE]...
   1368 
   1369 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1370 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1371 
   1372 Defaults for the options are specified in brackets.
   1373 
   1374 Configuration:
   1375   -h, --help              display this help and exit
   1376       --help=short        display options specific to this package
   1377       --help=recursive    display the short help of all the included packages
   1378   -V, --version           display version information and exit
   1379   -q, --quiet, --silent   do not print \`checking ...' messages
   1380       --cache-file=FILE   cache test results in FILE [disabled]
   1381   -C, --config-cache      alias for \`--cache-file=config.cache'
   1382   -n, --no-create         do not create output files
   1383       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1384 
   1385 Installation directories:
   1386   --prefix=PREFIX         install architecture-independent files in PREFIX
   1387                           [$ac_default_prefix]
   1388   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1389                           [PREFIX]
   1390 
   1391 By default, \`make install' will install all the files in
   1392 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1393 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1394 for instance \`--prefix=\$HOME'.
   1395 
   1396 For better control, use the options below.
   1397 
   1398 Fine tuning of the installation directories:
   1399   --bindir=DIR            user executables [EPREFIX/bin]
   1400   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1401   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1402   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1403   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1404   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1405   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   1406   --libdir=DIR            object code libraries [EPREFIX/lib]
   1407   --includedir=DIR        C header files [PREFIX/include]
   1408   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1409   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1410   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1411   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1412   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1413   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1414   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
   1415   --htmldir=DIR           html documentation [DOCDIR]
   1416   --dvidir=DIR            dvi documentation [DOCDIR]
   1417   --pdfdir=DIR            pdf documentation [DOCDIR]
   1418   --psdir=DIR             ps documentation [DOCDIR]
   1419 _ACEOF
   1420 
   1421   cat <<\_ACEOF
   1422 
   1423 System types:
   1424   --build=BUILD     configure for building on BUILD [guessed]
   1425   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1426 _ACEOF
   1427 fi
   1428 
   1429 if test -n "$ac_init_help"; then
   1430 
   1431   cat <<\_ACEOF
   1432 
   1433 Optional Features:
   1434   --disable-option-checking  ignore unrecognized --enable/--with options
   1435   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1436   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1437   --disable-cxx           Disable C++ integration
   1438   --enable-autogen        Automatically regenerate configure output
   1439   --enable-debug          Build debugging code
   1440   --disable-stats         Disable statistics calculation/reporting
   1441   --enable-prof           Enable allocation profiling
   1442   --enable-prof-libunwind Use libunwind for backtracing
   1443   --disable-prof-libgcc   Do not use libgcc for backtracing
   1444   --disable-prof-gcc      Do not use gcc intrinsics for backtracing
   1445   --disable-fill          Disable support for junk/zero filling
   1446   --enable-utrace         Enable utrace(2)-based tracing
   1447   --enable-xmalloc        Support xmalloc option
   1448   --disable-cache-oblivious
   1449                           Disable support for cache-oblivious allocation
   1450                           alignment
   1451   --enable-log            Support debug logging
   1452   --disable-syscall       Disable use of syscall(2)
   1453   --enable-lazy-lock      Enable lazy locking (only lock when multi-threaded)
   1454   --disable-zone-allocator
   1455                           Disable zone allocator for Darwin
   1456   --disable-initial-exec-tls
   1457                           Disable the initial-exec tls model
   1458 
   1459 Optional Packages:
   1460   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1461   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1462   --with-xslroot=<path>   XSL stylesheet root path
   1463   --with-lg-vaddr=<lg-vaddr>
   1464                           Number of significant virtual address bits
   1465   --with-rpath=<rpath>    Colon-separated rpath (ELF systems only)
   1466   --with-mangling=<map>   Mangle symbols in <map>
   1467   --with-jemalloc-prefix=<prefix>
   1468                           Prefix to prepend to all public APIs
   1469   --without-export        disable exporting jemalloc public APIs
   1470   --with-private-namespace=<prefix>
   1471                           Prefix to prepend to all library-private APIs
   1472   --with-install-suffix=<suffix>
   1473                           Suffix to append to all installed files
   1474   --with-malloc-conf=<malloc_conf>
   1475                           config.malloc_conf options string
   1476   --with-static-libunwind=<libunwind.a>
   1477                           Path to static libunwind library; use rather than
   1478                           dynamically linking
   1479   --with-lg-quantum=<lg-quantum>
   1480                           Base 2 log of minimum allocation alignment
   1481   --with-lg-page=<lg-page>
   1482                           Base 2 log of system page size
   1483   --with-lg-hugepage=<lg-hugepage>
   1484                           Base 2 log of system huge page size
   1485   --with-lg-page-sizes=<lg-page-sizes>
   1486                           Base 2 logs of system page sizes to support
   1487   --with-version=<major>.<minor>.<bugfix>-<nrev>-g<gid>
   1488                           Version string
   1489 
   1490 Some influential environment variables:
   1491   CC          C compiler command
   1492   CFLAGS      C compiler flags
   1493   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1494               nonstandard directory <lib dir>
   1495   LIBS        libraries to pass to the linker, e.g. -l<library>
   1496   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1497               you have headers in a nonstandard directory <include dir>
   1498   CPP         C preprocessor
   1499   CXX         C++ compiler command
   1500   CXXFLAGS    C++ compiler flags
   1501 
   1502 Use these variables to override the choices made by `configure' or to help
   1503 it to find libraries and programs with nonstandard names/locations.
   1504 
   1505 Report bugs to the package provider.
   1506 _ACEOF
   1507 ac_status=$?
   1508 fi
   1509 
   1510 if test "$ac_init_help" = "recursive"; then
   1511   # If there are subdirs, report their specific --help.
   1512   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1513     test -d "$ac_dir" ||
   1514       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1515       continue
   1516     ac_builddir=.
   1517 
   1518 case "$ac_dir" in
   1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1520 *)
   1521   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1522   # A ".." for each directory in $ac_dir_suffix.
   1523   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1524   case $ac_top_builddir_sub in
   1525   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1526   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1527   esac ;;
   1528 esac
   1529 ac_abs_top_builddir=$ac_pwd
   1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1531 # for backward compatibility:
   1532 ac_top_builddir=$ac_top_build_prefix
   1533 
   1534 case $srcdir in
   1535   .)  # We are building in place.
   1536     ac_srcdir=.
   1537     ac_top_srcdir=$ac_top_builddir_sub
   1538     ac_abs_top_srcdir=$ac_pwd ;;
   1539   [\\/]* | ?:[\\/]* )  # Absolute name.
   1540     ac_srcdir=$srcdir$ac_dir_suffix;
   1541     ac_top_srcdir=$srcdir
   1542     ac_abs_top_srcdir=$srcdir ;;
   1543   *) # Relative name.
   1544     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1545     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1546     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1547 esac
   1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1549 
   1550     cd "$ac_dir" || { ac_status=$?; continue; }
   1551     # Check for guested configure.
   1552     if test -f "$ac_srcdir/configure.gnu"; then
   1553       echo &&
   1554       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1555     elif test -f "$ac_srcdir/configure"; then
   1556       echo &&
   1557       $SHELL "$ac_srcdir/configure" --help=recursive
   1558     else
   1559       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1560     fi || ac_status=$?
   1561     cd "$ac_pwd" || { ac_status=$?; break; }
   1562   done
   1563 fi
   1564 
   1565 test -n "$ac_init_help" && exit $ac_status
   1566 if $ac_init_version; then
   1567   cat <<\_ACEOF
   1568 configure
   1569 generated by GNU Autoconf 2.69
   1570 
   1571 Copyright (C) 2012 Free Software Foundation, Inc.
   1572 This configure script is free software; the Free Software Foundation
   1573 gives unlimited permission to copy, distribute and modify it.
   1574 _ACEOF
   1575   exit
   1576 fi
   1577 
   1578 ## ------------------------ ##
   1579 ## Autoconf initialization. ##
   1580 ## ------------------------ ##
   1581 
   1582 # ac_fn_c_try_compile LINENO
   1583 # --------------------------
   1584 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1585 ac_fn_c_try_compile ()
   1586 {
   1587   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1588   rm -f conftest.$ac_objext
   1589   if { { ac_try="$ac_compile"
   1590 case "(($ac_try" in
   1591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1592   *) ac_try_echo=$ac_try;;
   1593 esac
   1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1595 $as_echo "$ac_try_echo"; } >&5
   1596   (eval "$ac_compile") 2>conftest.err
   1597   ac_status=$?
   1598   if test -s conftest.err; then
   1599     grep -v '^ *+' conftest.err >conftest.er1
   1600     cat conftest.er1 >&5
   1601     mv -f conftest.er1 conftest.err
   1602   fi
   1603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1604   test $ac_status = 0; } && {
   1605 	 test -z "$ac_c_werror_flag" ||
   1606 	 test ! -s conftest.err
   1607        } && test -s conftest.$ac_objext; then :
   1608   ac_retval=0
   1609 else
   1610   $as_echo "$as_me: failed program was:" >&5
   1611 sed 's/^/| /' conftest.$ac_ext >&5
   1612 
   1613 	ac_retval=1
   1614 fi
   1615   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1616   as_fn_set_status $ac_retval
   1617 
   1618 } # ac_fn_c_try_compile
   1619 
   1620 # ac_fn_c_try_cpp LINENO
   1621 # ----------------------
   1622 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1623 ac_fn_c_try_cpp ()
   1624 {
   1625   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1626   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1627 case "(($ac_try" in
   1628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1629   *) ac_try_echo=$ac_try;;
   1630 esac
   1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1632 $as_echo "$ac_try_echo"; } >&5
   1633   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1634   ac_status=$?
   1635   if test -s conftest.err; then
   1636     grep -v '^ *+' conftest.err >conftest.er1
   1637     cat conftest.er1 >&5
   1638     mv -f conftest.er1 conftest.err
   1639   fi
   1640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1641   test $ac_status = 0; } > conftest.i && {
   1642 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1643 	 test ! -s conftest.err
   1644        }; then :
   1645   ac_retval=0
   1646 else
   1647   $as_echo "$as_me: failed program was:" >&5
   1648 sed 's/^/| /' conftest.$ac_ext >&5
   1649 
   1650     ac_retval=1
   1651 fi
   1652   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1653   as_fn_set_status $ac_retval
   1654 
   1655 } # ac_fn_c_try_cpp
   1656 
   1657 # ac_fn_cxx_try_compile LINENO
   1658 # ----------------------------
   1659 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1660 ac_fn_cxx_try_compile ()
   1661 {
   1662   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1663   rm -f conftest.$ac_objext
   1664   if { { ac_try="$ac_compile"
   1665 case "(($ac_try" in
   1666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1667   *) ac_try_echo=$ac_try;;
   1668 esac
   1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1670 $as_echo "$ac_try_echo"; } >&5
   1671   (eval "$ac_compile") 2>conftest.err
   1672   ac_status=$?
   1673   if test -s conftest.err; then
   1674     grep -v '^ *+' conftest.err >conftest.er1
   1675     cat conftest.er1 >&5
   1676     mv -f conftest.er1 conftest.err
   1677   fi
   1678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1679   test $ac_status = 0; } && {
   1680 	 test -z "$ac_cxx_werror_flag" ||
   1681 	 test ! -s conftest.err
   1682        } && test -s conftest.$ac_objext; then :
   1683   ac_retval=0
   1684 else
   1685   $as_echo "$as_me: failed program was:" >&5
   1686 sed 's/^/| /' conftest.$ac_ext >&5
   1687 
   1688 	ac_retval=1
   1689 fi
   1690   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1691   as_fn_set_status $ac_retval
   1692 
   1693 } # ac_fn_cxx_try_compile
   1694 
   1695 # ac_fn_c_try_link LINENO
   1696 # -----------------------
   1697 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1698 ac_fn_c_try_link ()
   1699 {
   1700   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1701   rm -f conftest.$ac_objext conftest$ac_exeext
   1702   if { { ac_try="$ac_link"
   1703 case "(($ac_try" in
   1704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1705   *) ac_try_echo=$ac_try;;
   1706 esac
   1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1708 $as_echo "$ac_try_echo"; } >&5
   1709   (eval "$ac_link") 2>conftest.err
   1710   ac_status=$?
   1711   if test -s conftest.err; then
   1712     grep -v '^ *+' conftest.err >conftest.er1
   1713     cat conftest.er1 >&5
   1714     mv -f conftest.er1 conftest.err
   1715   fi
   1716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1717   test $ac_status = 0; } && {
   1718 	 test -z "$ac_c_werror_flag" ||
   1719 	 test ! -s conftest.err
   1720        } && test -s conftest$ac_exeext && {
   1721 	 test "$cross_compiling" = yes ||
   1722 	 test -x conftest$ac_exeext
   1723        }; then :
   1724   ac_retval=0
   1725 else
   1726   $as_echo "$as_me: failed program was:" >&5
   1727 sed 's/^/| /' conftest.$ac_ext >&5
   1728 
   1729 	ac_retval=1
   1730 fi
   1731   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1732   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1733   # interfere with the next link command; also delete a directory that is
   1734   # left behind by Apple's compiler.  We do this before executing the actions.
   1735   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1736   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1737   as_fn_set_status $ac_retval
   1738 
   1739 } # ac_fn_c_try_link
   1740 
   1741 # ac_fn_c_try_run LINENO
   1742 # ----------------------
   1743 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1744 # that executables *can* be run.
   1745 ac_fn_c_try_run ()
   1746 {
   1747   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1748   if { { ac_try="$ac_link"
   1749 case "(($ac_try" in
   1750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1751   *) ac_try_echo=$ac_try;;
   1752 esac
   1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1754 $as_echo "$ac_try_echo"; } >&5
   1755   (eval "$ac_link") 2>&5
   1756   ac_status=$?
   1757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1758   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1759   { { case "(($ac_try" in
   1760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1761   *) ac_try_echo=$ac_try;;
   1762 esac
   1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1764 $as_echo "$ac_try_echo"; } >&5
   1765   (eval "$ac_try") 2>&5
   1766   ac_status=$?
   1767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1768   test $ac_status = 0; }; }; then :
   1769   ac_retval=0
   1770 else
   1771   $as_echo "$as_me: program exited with status $ac_status" >&5
   1772        $as_echo "$as_me: failed program was:" >&5
   1773 sed 's/^/| /' conftest.$ac_ext >&5
   1774 
   1775        ac_retval=$ac_status
   1776 fi
   1777   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1778   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1779   as_fn_set_status $ac_retval
   1780 
   1781 } # ac_fn_c_try_run
   1782 
   1783 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1784 # -------------------------------------------------------
   1785 # Tests whether HEADER exists and can be compiled using the include files in
   1786 # INCLUDES, setting the cache variable VAR accordingly.
   1787 ac_fn_c_check_header_compile ()
   1788 {
   1789   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1791 $as_echo_n "checking for $2... " >&6; }
   1792 if eval \${$3+:} false; then :
   1793   $as_echo_n "(cached) " >&6
   1794 else
   1795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1796 /* end confdefs.h.  */
   1797 $4
   1798 #include <$2>
   1799 _ACEOF
   1800 if ac_fn_c_try_compile "$LINENO"; then :
   1801   eval "$3=yes"
   1802 else
   1803   eval "$3=no"
   1804 fi
   1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1806 fi
   1807 eval ac_res=\$$3
   1808 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1809 $as_echo "$ac_res" >&6; }
   1810   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1811 
   1812 } # ac_fn_c_check_header_compile
   1813 
   1814 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   1815 # --------------------------------------------
   1816 # Tries to find the compile-time value of EXPR in a program that includes
   1817 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   1818 # computed
   1819 ac_fn_c_compute_int ()
   1820 {
   1821   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1822   if test "$cross_compiling" = yes; then
   1823     # Depending upon the size, compute the lo and hi bounds.
   1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1825 /* end confdefs.h.  */
   1826 $4
   1827 int
   1828 main ()
   1829 {
   1830 static int test_array [1 - 2 * !(($2) >= 0)];
   1831 test_array [0] = 0;
   1832 return test_array [0];
   1833 
   1834   ;
   1835   return 0;
   1836 }
   1837 _ACEOF
   1838 if ac_fn_c_try_compile "$LINENO"; then :
   1839   ac_lo=0 ac_mid=0
   1840   while :; do
   1841     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1842 /* end confdefs.h.  */
   1843 $4
   1844 int
   1845 main ()
   1846 {
   1847 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   1848 test_array [0] = 0;
   1849 return test_array [0];
   1850 
   1851   ;
   1852   return 0;
   1853 }
   1854 _ACEOF
   1855 if ac_fn_c_try_compile "$LINENO"; then :
   1856   ac_hi=$ac_mid; break
   1857 else
   1858   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   1859 			if test $ac_lo -le $ac_mid; then
   1860 			  ac_lo= ac_hi=
   1861 			  break
   1862 			fi
   1863 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   1864 fi
   1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1866   done
   1867 else
   1868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1869 /* end confdefs.h.  */
   1870 $4
   1871 int
   1872 main ()
   1873 {
   1874 static int test_array [1 - 2 * !(($2) < 0)];
   1875 test_array [0] = 0;
   1876 return test_array [0];
   1877 
   1878   ;
   1879   return 0;
   1880 }
   1881 _ACEOF
   1882 if ac_fn_c_try_compile "$LINENO"; then :
   1883   ac_hi=-1 ac_mid=-1
   1884   while :; do
   1885     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1886 /* end confdefs.h.  */
   1887 $4
   1888 int
   1889 main ()
   1890 {
   1891 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   1892 test_array [0] = 0;
   1893 return test_array [0];
   1894 
   1895   ;
   1896   return 0;
   1897 }
   1898 _ACEOF
   1899 if ac_fn_c_try_compile "$LINENO"; then :
   1900   ac_lo=$ac_mid; break
   1901 else
   1902   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   1903 			if test $ac_mid -le $ac_hi; then
   1904 			  ac_lo= ac_hi=
   1905 			  break
   1906 			fi
   1907 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   1908 fi
   1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1910   done
   1911 else
   1912   ac_lo= ac_hi=
   1913 fi
   1914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1915 fi
   1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1917 # Binary search between lo and hi bounds.
   1918 while test "x$ac_lo" != "x$ac_hi"; do
   1919   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   1920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1921 /* end confdefs.h.  */
   1922 $4
   1923 int
   1924 main ()
   1925 {
   1926 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   1927 test_array [0] = 0;
   1928 return test_array [0];
   1929 
   1930   ;
   1931   return 0;
   1932 }
   1933 _ACEOF
   1934 if ac_fn_c_try_compile "$LINENO"; then :
   1935   ac_hi=$ac_mid
   1936 else
   1937   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   1938 fi
   1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1940 done
   1941 case $ac_lo in #((
   1942 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   1943 '') ac_retval=1 ;;
   1944 esac
   1945   else
   1946     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1947 /* end confdefs.h.  */
   1948 $4
   1949 static long int longval () { return $2; }
   1950 static unsigned long int ulongval () { return $2; }
   1951 #include <stdio.h>
   1952 #include <stdlib.h>
   1953 int
   1954 main ()
   1955 {
   1956 
   1957   FILE *f = fopen ("conftest.val", "w");
   1958   if (! f)
   1959     return 1;
   1960   if (($2) < 0)
   1961     {
   1962       long int i = longval ();
   1963       if (i != ($2))
   1964 	return 1;
   1965       fprintf (f, "%ld", i);
   1966     }
   1967   else
   1968     {
   1969       unsigned long int i = ulongval ();
   1970       if (i != ($2))
   1971 	return 1;
   1972       fprintf (f, "%lu", i);
   1973     }
   1974   /* Do not output a trailing newline, as this causes \r\n confusion
   1975      on some platforms.  */
   1976   return ferror (f) || fclose (f) != 0;
   1977 
   1978   ;
   1979   return 0;
   1980 }
   1981 _ACEOF
   1982 if ac_fn_c_try_run "$LINENO"; then :
   1983   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   1984 else
   1985   ac_retval=1
   1986 fi
   1987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   1988   conftest.$ac_objext conftest.beam conftest.$ac_ext
   1989 rm -f conftest.val
   1990 
   1991   fi
   1992   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1993   as_fn_set_status $ac_retval
   1994 
   1995 } # ac_fn_c_compute_int
   1996 
   1997 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1998 # -------------------------------------------------------
   1999 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   2000 # the include files in INCLUDES and setting the cache variable VAR
   2001 # accordingly.
   2002 ac_fn_c_check_header_mongrel ()
   2003 {
   2004   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2005   if eval \${$3+:} false; then :
   2006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2007 $as_echo_n "checking for $2... " >&6; }
   2008 if eval \${$3+:} false; then :
   2009   $as_echo_n "(cached) " >&6
   2010 fi
   2011 eval ac_res=\$$3
   2012 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2013 $as_echo "$ac_res" >&6; }
   2014 else
   2015   # Is the header compilable?
   2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   2017 $as_echo_n "checking $2 usability... " >&6; }
   2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2019 /* end confdefs.h.  */
   2020 $4
   2021 #include <$2>
   2022 _ACEOF
   2023 if ac_fn_c_try_compile "$LINENO"; then :
   2024   ac_header_compiler=yes
   2025 else
   2026   ac_header_compiler=no
   2027 fi
   2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   2030 $as_echo "$ac_header_compiler" >&6; }
   2031 
   2032 # Is the header present?
   2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   2034 $as_echo_n "checking $2 presence... " >&6; }
   2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2036 /* end confdefs.h.  */
   2037 #include <$2>
   2038 _ACEOF
   2039 if ac_fn_c_try_cpp "$LINENO"; then :
   2040   ac_header_preproc=yes
   2041 else
   2042   ac_header_preproc=no
   2043 fi
   2044 rm -f conftest.err conftest.i conftest.$ac_ext
   2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   2046 $as_echo "$ac_header_preproc" >&6; }
   2047 
   2048 # So?  What about this header?
   2049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   2050   yes:no: )
   2051     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   2052 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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     ;;
   2056   no:yes:* )
   2057     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   2058 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   2059     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   2060 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   2061     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   2062 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   2063     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   2064 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   2065     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   2066 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   2067     ;;
   2068 esac
   2069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2070 $as_echo_n "checking for $2... " >&6; }
   2071 if eval \${$3+:} false; then :
   2072   $as_echo_n "(cached) " >&6
   2073 else
   2074   eval "$3=\$ac_header_compiler"
   2075 fi
   2076 eval ac_res=\$$3
   2077 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2078 $as_echo "$ac_res" >&6; }
   2079 fi
   2080   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2081 
   2082 } # ac_fn_c_check_header_mongrel
   2083 
   2084 # ac_fn_c_check_func LINENO FUNC VAR
   2085 # ----------------------------------
   2086 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2087 ac_fn_c_check_func ()
   2088 {
   2089   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2091 $as_echo_n "checking for $2... " >&6; }
   2092 if eval \${$3+:} false; then :
   2093   $as_echo_n "(cached) " >&6
   2094 else
   2095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2096 /* end confdefs.h.  */
   2097 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2099 #define $2 innocuous_$2
   2100 
   2101 /* System header to define __stub macros and hopefully few prototypes,
   2102     which can conflict with char $2 (); below.
   2103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2104     <limits.h> exists even on freestanding compilers.  */
   2105 
   2106 #ifdef __STDC__
   2107 # include <limits.h>
   2108 #else
   2109 # include <assert.h>
   2110 #endif
   2111 
   2112 #undef $2
   2113 
   2114 /* Override any GCC internal prototype to avoid an error.
   2115    Use char because int might match the return type of a GCC
   2116    builtin and then its argument prototype would still apply.  */
   2117 #ifdef __cplusplus
   2118 extern "C"
   2119 #endif
   2120 char $2 ();
   2121 /* The GNU C library defines this for functions which it implements
   2122     to always fail with ENOSYS.  Some functions are actually named
   2123     something starting with __ and the normal name is an alias.  */
   2124 #if defined __stub_$2 || defined __stub___$2
   2125 choke me
   2126 #endif
   2127 
   2128 int
   2129 main ()
   2130 {
   2131 return $2 ();
   2132   ;
   2133   return 0;
   2134 }
   2135 _ACEOF
   2136 if ac_fn_c_try_link "$LINENO"; then :
   2137   eval "$3=yes"
   2138 else
   2139   eval "$3=no"
   2140 fi
   2141 rm -f core conftest.err conftest.$ac_objext \
   2142     conftest$ac_exeext conftest.$ac_ext
   2143 fi
   2144 eval ac_res=\$$3
   2145 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2146 $as_echo "$ac_res" >&6; }
   2147   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2148 
   2149 } # ac_fn_c_check_func
   2150 
   2151 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2152 # -------------------------------------------
   2153 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2154 # variable VAR accordingly.
   2155 ac_fn_c_check_type ()
   2156 {
   2157   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2159 $as_echo_n "checking for $2... " >&6; }
   2160 if eval \${$3+:} false; then :
   2161   $as_echo_n "(cached) " >&6
   2162 else
   2163   eval "$3=no"
   2164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2165 /* end confdefs.h.  */
   2166 $4
   2167 int
   2168 main ()
   2169 {
   2170 if (sizeof ($2))
   2171 	 return 0;
   2172   ;
   2173   return 0;
   2174 }
   2175 _ACEOF
   2176 if ac_fn_c_try_compile "$LINENO"; then :
   2177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2178 /* end confdefs.h.  */
   2179 $4
   2180 int
   2181 main ()
   2182 {
   2183 if (sizeof (($2)))
   2184 	    return 0;
   2185   ;
   2186   return 0;
   2187 }
   2188 _ACEOF
   2189 if ac_fn_c_try_compile "$LINENO"; then :
   2190 
   2191 else
   2192   eval "$3=yes"
   2193 fi
   2194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2195 fi
   2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2197 fi
   2198 eval ac_res=\$$3
   2199 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2200 $as_echo "$ac_res" >&6; }
   2201   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2202 
   2203 } # ac_fn_c_check_type
   2204 cat >config.log <<_ACEOF
   2205 This file contains any messages produced by compilers while
   2206 running configure, to aid debugging if configure makes a mistake.
   2207 
   2208 It was created by $as_me, which was
   2209 generated by GNU Autoconf 2.69.  Invocation command line was
   2210 
   2211   $ $0 $@
   2212 
   2213 _ACEOF
   2214 exec 5>>config.log
   2215 {
   2216 cat <<_ASUNAME
   2217 ## --------- ##
   2218 ## Platform. ##
   2219 ## --------- ##
   2220 
   2221 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2222 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2223 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2224 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2225 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2226 
   2227 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2228 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2229 
   2230 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2231 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2232 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2233 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2234 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2235 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2236 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2237 
   2238 _ASUNAME
   2239 
   2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2241 for as_dir in $PATH
   2242 do
   2243   IFS=$as_save_IFS
   2244   test -z "$as_dir" && as_dir=.
   2245     $as_echo "PATH: $as_dir"
   2246   done
   2247 IFS=$as_save_IFS
   2248 
   2249 } >&5
   2250 
   2251 cat >&5 <<_ACEOF
   2252 
   2253 
   2254 ## ----------- ##
   2255 ## Core tests. ##
   2256 ## ----------- ##
   2257 
   2258 _ACEOF
   2259 
   2260 
   2261 # Keep a trace of the command line.
   2262 # Strip out --no-create and --no-recursion so they do not pile up.
   2263 # Strip out --silent because we don't want to record it for future runs.
   2264 # Also quote any args containing shell meta-characters.
   2265 # Make two passes to allow for proper duplicate-argument suppression.
   2266 ac_configure_args=
   2267 ac_configure_args0=
   2268 ac_configure_args1=
   2269 ac_must_keep_next=false
   2270 for ac_pass in 1 2
   2271 do
   2272   for ac_arg
   2273   do
   2274     case $ac_arg in
   2275     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2276     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2277     | -silent | --silent | --silen | --sile | --sil)
   2278       continue ;;
   2279     *\'*)
   2280       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2281     esac
   2282     case $ac_pass in
   2283     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2284     2)
   2285       as_fn_append ac_configure_args1 " '$ac_arg'"
   2286       if test $ac_must_keep_next = true; then
   2287 	ac_must_keep_next=false # Got value, back to normal.
   2288       else
   2289 	case $ac_arg in
   2290 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2291 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2292 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2293 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2294 	    case "$ac_configure_args0 " in
   2295 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2296 	    esac
   2297 	    ;;
   2298 	  -* ) ac_must_keep_next=true ;;
   2299 	esac
   2300       fi
   2301       as_fn_append ac_configure_args " '$ac_arg'"
   2302       ;;
   2303     esac
   2304   done
   2305 done
   2306 { ac_configure_args0=; unset ac_configure_args0;}
   2307 { ac_configure_args1=; unset ac_configure_args1;}
   2308 
   2309 # When interrupted or exit'd, cleanup temporary files, and complete
   2310 # config.log.  We remove comments because anyway the quotes in there
   2311 # would cause problems or look ugly.
   2312 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2313 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2314 trap 'exit_status=$?
   2315   # Save into config.log some information that might help in debugging.
   2316   {
   2317     echo
   2318 
   2319     $as_echo "## ---------------- ##
   2320 ## Cache variables. ##
   2321 ## ---------------- ##"
   2322     echo
   2323     # The following way of writing the cache mishandles newlines in values,
   2324 (
   2325   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2326     eval ac_val=\$$ac_var
   2327     case $ac_val in #(
   2328     *${as_nl}*)
   2329       case $ac_var in #(
   2330       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2331 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2332       esac
   2333       case $ac_var in #(
   2334       _ | IFS | as_nl) ;; #(
   2335       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2336       *) { eval $ac_var=; unset $ac_var;} ;;
   2337       esac ;;
   2338     esac
   2339   done
   2340   (set) 2>&1 |
   2341     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2342     *${as_nl}ac_space=\ *)
   2343       sed -n \
   2344 	"s/'\''/'\''\\\\'\'''\''/g;
   2345 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2346       ;; #(
   2347     *)
   2348       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2349       ;;
   2350     esac |
   2351     sort
   2352 )
   2353     echo
   2354 
   2355     $as_echo "## ----------------- ##
   2356 ## Output variables. ##
   2357 ## ----------------- ##"
   2358     echo
   2359     for ac_var in $ac_subst_vars
   2360     do
   2361       eval ac_val=\$$ac_var
   2362       case $ac_val in
   2363       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2364       esac
   2365       $as_echo "$ac_var='\''$ac_val'\''"
   2366     done | sort
   2367     echo
   2368 
   2369     if test -n "$ac_subst_files"; then
   2370       $as_echo "## ------------------- ##
   2371 ## File substitutions. ##
   2372 ## ------------------- ##"
   2373       echo
   2374       for ac_var in $ac_subst_files
   2375       do
   2376 	eval ac_val=\$$ac_var
   2377 	case $ac_val in
   2378 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2379 	esac
   2380 	$as_echo "$ac_var='\''$ac_val'\''"
   2381       done | sort
   2382       echo
   2383     fi
   2384 
   2385     if test -s confdefs.h; then
   2386       $as_echo "## ----------- ##
   2387 ## confdefs.h. ##
   2388 ## ----------- ##"
   2389       echo
   2390       cat confdefs.h
   2391       echo
   2392     fi
   2393     test "$ac_signal" != 0 &&
   2394       $as_echo "$as_me: caught signal $ac_signal"
   2395     $as_echo "$as_me: exit $exit_status"
   2396   } >&5
   2397   rm -f core *.core core.conftest.* &&
   2398     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2399     exit $exit_status
   2400 ' 0
   2401 for ac_signal in 1 2 13 15; do
   2402   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2403 done
   2404 ac_signal=0
   2405 
   2406 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2407 rm -f -r conftest* confdefs.h
   2408 
   2409 $as_echo "/* confdefs.h */" > confdefs.h
   2410 
   2411 # Predefined preprocessor variables.
   2412 
   2413 cat >>confdefs.h <<_ACEOF
   2414 #define PACKAGE_NAME "$PACKAGE_NAME"
   2415 _ACEOF
   2416 
   2417 cat >>confdefs.h <<_ACEOF
   2418 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2419 _ACEOF
   2420 
   2421 cat >>confdefs.h <<_ACEOF
   2422 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2423 _ACEOF
   2424 
   2425 cat >>confdefs.h <<_ACEOF
   2426 #define PACKAGE_STRING "$PACKAGE_STRING"
   2427 _ACEOF
   2428 
   2429 cat >>confdefs.h <<_ACEOF
   2430 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2431 _ACEOF
   2432 
   2433 cat >>confdefs.h <<_ACEOF
   2434 #define PACKAGE_URL "$PACKAGE_URL"
   2435 _ACEOF
   2436 
   2437 
   2438 # Let the site file select an alternate cache file if it wants to.
   2439 # Prefer an explicitly selected file to automatically selected ones.
   2440 ac_site_file1=NONE
   2441 ac_site_file2=NONE
   2442 if test -n "$CONFIG_SITE"; then
   2443   # We do not want a PATH search for config.site.
   2444   case $CONFIG_SITE in #((
   2445     -*)  ac_site_file1=./$CONFIG_SITE;;
   2446     */*) ac_site_file1=$CONFIG_SITE;;
   2447     *)   ac_site_file1=./$CONFIG_SITE;;
   2448   esac
   2449 elif test "x$prefix" != xNONE; then
   2450   ac_site_file1=$prefix/share/config.site
   2451   ac_site_file2=$prefix/etc/config.site
   2452 else
   2453   ac_site_file1=$ac_default_prefix/share/config.site
   2454   ac_site_file2=$ac_default_prefix/etc/config.site
   2455 fi
   2456 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2457 do
   2458   test "x$ac_site_file" = xNONE && continue
   2459   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2460     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2461 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2462     sed 's/^/| /' "$ac_site_file" >&5
   2463     . "$ac_site_file" \
   2464       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2466 as_fn_error $? "failed to load site script $ac_site_file
   2467 See \`config.log' for more details" "$LINENO" 5; }
   2468   fi
   2469 done
   2470 
   2471 if test -r "$cache_file"; then
   2472   # Some versions of bash will fail to source /dev/null (special files
   2473   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2474   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2475     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2476 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2477     case $cache_file in
   2478       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2479       *)                      . "./$cache_file";;
   2480     esac
   2481   fi
   2482 else
   2483   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2484 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2485   >$cache_file
   2486 fi
   2487 
   2488 # Check that the precious variables saved in the cache have kept the same
   2489 # value.
   2490 ac_cache_corrupted=false
   2491 for ac_var in $ac_precious_vars; do
   2492   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2493   eval ac_new_set=\$ac_env_${ac_var}_set
   2494   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2495   eval ac_new_val=\$ac_env_${ac_var}_value
   2496   case $ac_old_set,$ac_new_set in
   2497     set,)
   2498       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2499 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2500       ac_cache_corrupted=: ;;
   2501     ,set)
   2502       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2503 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2504       ac_cache_corrupted=: ;;
   2505     ,);;
   2506     *)
   2507       if test "x$ac_old_val" != "x$ac_new_val"; then
   2508 	# differences in whitespace do not lead to failure.
   2509 	ac_old_val_w=`echo x $ac_old_val`
   2510 	ac_new_val_w=`echo x $ac_new_val`
   2511 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2512 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2513 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2514 	  ac_cache_corrupted=:
   2515 	else
   2516 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2517 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2518 	  eval $ac_var=\$ac_old_val
   2519 	fi
   2520 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2521 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2522 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2523 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2524       fi;;
   2525   esac
   2526   # Pass precious variables to config.status.
   2527   if test "$ac_new_set" = set; then
   2528     case $ac_new_val in
   2529     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2530     *) ac_arg=$ac_var=$ac_new_val ;;
   2531     esac
   2532     case " $ac_configure_args " in
   2533       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2534       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2535     esac
   2536   fi
   2537 done
   2538 if $ac_cache_corrupted; then
   2539   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2541   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2542 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2543   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2544 fi
   2545 ## -------------------- ##
   2546 ## Main body of script. ##
   2547 ## -------------------- ##
   2548 
   2549 ac_ext=c
   2550 ac_cpp='$CPP $CPPFLAGS'
   2551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2554 
   2555 
   2556 
   2557 ac_aux_dir=
   2558 for ac_dir in build-aux "$srcdir"/build-aux; do
   2559   if test -f "$ac_dir/install-sh"; then
   2560     ac_aux_dir=$ac_dir
   2561     ac_install_sh="$ac_aux_dir/install-sh -c"
   2562     break
   2563   elif test -f "$ac_dir/install.sh"; then
   2564     ac_aux_dir=$ac_dir
   2565     ac_install_sh="$ac_aux_dir/install.sh -c"
   2566     break
   2567   elif test -f "$ac_dir/shtool"; then
   2568     ac_aux_dir=$ac_dir
   2569     ac_install_sh="$ac_aux_dir/shtool install -c"
   2570     break
   2571   fi
   2572 done
   2573 if test -z "$ac_aux_dir"; then
   2574   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
   2575 fi
   2576 
   2577 # These three variables are undocumented and unsupported,
   2578 # and are intended to be withdrawn in a future Autoconf release.
   2579 # They can cause serious problems if a builder's source tree is in a directory
   2580 # whose full name contains unusual characters.
   2581 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2582 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2583 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2584 
   2585 
   2586 
   2587 
   2588 
   2589 
   2590 
   2591 
   2592 CONFIGURE_CFLAGS=
   2593 SPECIFIED_CFLAGS="${CFLAGS}"
   2594 
   2595 
   2596 
   2597 
   2598 
   2599 CONFIGURE_CXXFLAGS=
   2600 SPECIFIED_CXXFLAGS="${CXXFLAGS}"
   2601 
   2602 
   2603 
   2604 
   2605 
   2606 CONFIG=`echo ${ac_configure_args} | sed -e 's#'"'"'\([^ ]*\)'"'"'#\1#g'`
   2607 
   2608 
   2609 rev=2
   2610 
   2611 
   2612 srcroot=$srcdir
   2613 if test "x${srcroot}" = "x." ; then
   2614   srcroot=""
   2615 else
   2616   srcroot="${srcroot}/"
   2617 fi
   2618 
   2619 abs_srcroot="`cd \"${srcdir}\"; pwd`/"
   2620 
   2621 
   2622 objroot=""
   2623 
   2624 abs_objroot="`pwd`/"
   2625 
   2626 
   2627 if test "x$prefix" = "xNONE" ; then
   2628   prefix="/usr/local"
   2629 fi
   2630 if test "x$exec_prefix" = "xNONE" ; then
   2631   exec_prefix=$prefix
   2632 fi
   2633 PREFIX=$prefix
   2634 
   2635 BINDIR=`eval echo $bindir`
   2636 BINDIR=`eval echo $BINDIR`
   2637 
   2638 INCLUDEDIR=`eval echo $includedir`
   2639 INCLUDEDIR=`eval echo $INCLUDEDIR`
   2640 
   2641 LIBDIR=`eval echo $libdir`
   2642 LIBDIR=`eval echo $LIBDIR`
   2643 
   2644 DATADIR=`eval echo $datadir`
   2645 DATADIR=`eval echo $DATADIR`
   2646 
   2647 MANDIR=`eval echo $mandir`
   2648 MANDIR=`eval echo $MANDIR`
   2649 
   2650 
   2651 # Extract the first word of "xsltproc", so it can be a program name with args.
   2652 set dummy xsltproc; ac_word=$2
   2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2654 $as_echo_n "checking for $ac_word... " >&6; }
   2655 if ${ac_cv_path_XSLTPROC+:} false; then :
   2656   $as_echo_n "(cached) " >&6
   2657 else
   2658   case $XSLTPROC in
   2659   [\\/]* | ?:[\\/]*)
   2660   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
   2661   ;;
   2662   *)
   2663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2664 for as_dir in $PATH
   2665 do
   2666   IFS=$as_save_IFS
   2667   test -z "$as_dir" && as_dir=.
   2668     for ac_exec_ext in '' $ac_executable_extensions; do
   2669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2670     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
   2671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2672     break 2
   2673   fi
   2674 done
   2675   done
   2676 IFS=$as_save_IFS
   2677 
   2678   test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="false"
   2679   ;;
   2680 esac
   2681 fi
   2682 XSLTPROC=$ac_cv_path_XSLTPROC
   2683 if test -n "$XSLTPROC"; then
   2684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
   2685 $as_echo "$XSLTPROC" >&6; }
   2686 else
   2687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2688 $as_echo "no" >&6; }
   2689 fi
   2690 
   2691 
   2692 if test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then
   2693   DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl"
   2694 elif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then
   2695   DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets"
   2696 else
   2697     DEFAULT_XSLROOT=""
   2698 fi
   2699 
   2700 # Check whether --with-xslroot was given.
   2701 if test "${with_xslroot+set}" = set; then :
   2702   withval=$with_xslroot;
   2703 if test "x$with_xslroot" = "xno" ; then
   2704   XSLROOT="${DEFAULT_XSLROOT}"
   2705 else
   2706   XSLROOT="${with_xslroot}"
   2707 fi
   2708 
   2709 else
   2710   XSLROOT="${DEFAULT_XSLROOT}"
   2711 
   2712 fi
   2713 
   2714 
   2715 
   2716 CFLAGS=$CFLAGS
   2717 ac_ext=c
   2718 ac_cpp='$CPP $CPPFLAGS'
   2719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2722 if test -n "$ac_tool_prefix"; then
   2723   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2724 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2726 $as_echo_n "checking for $ac_word... " >&6; }
   2727 if ${ac_cv_prog_CC+:} false; then :
   2728   $as_echo_n "(cached) " >&6
   2729 else
   2730   if test -n "$CC"; then
   2731   ac_cv_prog_CC="$CC" # Let the user override the test.
   2732 else
   2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2734 for as_dir in $PATH
   2735 do
   2736   IFS=$as_save_IFS
   2737   test -z "$as_dir" && as_dir=.
   2738     for ac_exec_ext in '' $ac_executable_extensions; do
   2739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2740     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2742     break 2
   2743   fi
   2744 done
   2745   done
   2746 IFS=$as_save_IFS
   2747 
   2748 fi
   2749 fi
   2750 CC=$ac_cv_prog_CC
   2751 if test -n "$CC"; then
   2752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2753 $as_echo "$CC" >&6; }
   2754 else
   2755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2756 $as_echo "no" >&6; }
   2757 fi
   2758 
   2759 
   2760 fi
   2761 if test -z "$ac_cv_prog_CC"; then
   2762   ac_ct_CC=$CC
   2763   # Extract the first word of "gcc", so it can be a program name with args.
   2764 set dummy gcc; ac_word=$2
   2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2766 $as_echo_n "checking for $ac_word... " >&6; }
   2767 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2768   $as_echo_n "(cached) " >&6
   2769 else
   2770   if test -n "$ac_ct_CC"; then
   2771   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2772 else
   2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2774 for as_dir in $PATH
   2775 do
   2776   IFS=$as_save_IFS
   2777   test -z "$as_dir" && as_dir=.
   2778     for ac_exec_ext in '' $ac_executable_extensions; do
   2779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2780     ac_cv_prog_ac_ct_CC="gcc"
   2781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2782     break 2
   2783   fi
   2784 done
   2785   done
   2786 IFS=$as_save_IFS
   2787 
   2788 fi
   2789 fi
   2790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2791 if test -n "$ac_ct_CC"; then
   2792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2793 $as_echo "$ac_ct_CC" >&6; }
   2794 else
   2795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2796 $as_echo "no" >&6; }
   2797 fi
   2798 
   2799   if test "x$ac_ct_CC" = x; then
   2800     CC=""
   2801   else
   2802     case $cross_compiling:$ac_tool_warned in
   2803 yes:)
   2804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2806 ac_tool_warned=yes ;;
   2807 esac
   2808     CC=$ac_ct_CC
   2809   fi
   2810 else
   2811   CC="$ac_cv_prog_CC"
   2812 fi
   2813 
   2814 if test -z "$CC"; then
   2815           if test -n "$ac_tool_prefix"; then
   2816     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2817 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2819 $as_echo_n "checking for $ac_word... " >&6; }
   2820 if ${ac_cv_prog_CC+:} false; then :
   2821   $as_echo_n "(cached) " >&6
   2822 else
   2823   if test -n "$CC"; then
   2824   ac_cv_prog_CC="$CC" # Let the user override the test.
   2825 else
   2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2827 for as_dir in $PATH
   2828 do
   2829   IFS=$as_save_IFS
   2830   test -z "$as_dir" && as_dir=.
   2831     for ac_exec_ext in '' $ac_executable_extensions; do
   2832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2833     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2835     break 2
   2836   fi
   2837 done
   2838   done
   2839 IFS=$as_save_IFS
   2840 
   2841 fi
   2842 fi
   2843 CC=$ac_cv_prog_CC
   2844 if test -n "$CC"; then
   2845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2846 $as_echo "$CC" >&6; }
   2847 else
   2848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2849 $as_echo "no" >&6; }
   2850 fi
   2851 
   2852 
   2853   fi
   2854 fi
   2855 if test -z "$CC"; then
   2856   # Extract the first word of "cc", so it can be a program name with args.
   2857 set dummy cc; ac_word=$2
   2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2859 $as_echo_n "checking for $ac_word... " >&6; }
   2860 if ${ac_cv_prog_CC+:} false; then :
   2861   $as_echo_n "(cached) " >&6
   2862 else
   2863   if test -n "$CC"; then
   2864   ac_cv_prog_CC="$CC" # Let the user override the test.
   2865 else
   2866   ac_prog_rejected=no
   2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2868 for as_dir in $PATH
   2869 do
   2870   IFS=$as_save_IFS
   2871   test -z "$as_dir" && as_dir=.
   2872     for ac_exec_ext in '' $ac_executable_extensions; do
   2873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2874     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2875        ac_prog_rejected=yes
   2876        continue
   2877      fi
   2878     ac_cv_prog_CC="cc"
   2879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2880     break 2
   2881   fi
   2882 done
   2883   done
   2884 IFS=$as_save_IFS
   2885 
   2886 if test $ac_prog_rejected = yes; then
   2887   # We found a bogon in the path, so make sure we never use it.
   2888   set dummy $ac_cv_prog_CC
   2889   shift
   2890   if test $# != 0; then
   2891     # We chose a different compiler from the bogus one.
   2892     # However, it has the same basename, so the bogon will be chosen
   2893     # first if we set CC to just the basename; use the full file name.
   2894     shift
   2895     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2896   fi
   2897 fi
   2898 fi
   2899 fi
   2900 CC=$ac_cv_prog_CC
   2901 if test -n "$CC"; then
   2902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2903 $as_echo "$CC" >&6; }
   2904 else
   2905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2906 $as_echo "no" >&6; }
   2907 fi
   2908 
   2909 
   2910 fi
   2911 if test -z "$CC"; then
   2912   if test -n "$ac_tool_prefix"; then
   2913   for ac_prog in cl.exe
   2914   do
   2915     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2918 $as_echo_n "checking for $ac_word... " >&6; }
   2919 if ${ac_cv_prog_CC+:} false; then :
   2920   $as_echo_n "(cached) " >&6
   2921 else
   2922   if test -n "$CC"; then
   2923   ac_cv_prog_CC="$CC" # Let the user override the test.
   2924 else
   2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2926 for as_dir in $PATH
   2927 do
   2928   IFS=$as_save_IFS
   2929   test -z "$as_dir" && as_dir=.
   2930     for ac_exec_ext in '' $ac_executable_extensions; do
   2931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2932     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2934     break 2
   2935   fi
   2936 done
   2937   done
   2938 IFS=$as_save_IFS
   2939 
   2940 fi
   2941 fi
   2942 CC=$ac_cv_prog_CC
   2943 if test -n "$CC"; then
   2944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2945 $as_echo "$CC" >&6; }
   2946 else
   2947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2948 $as_echo "no" >&6; }
   2949 fi
   2950 
   2951 
   2952     test -n "$CC" && break
   2953   done
   2954 fi
   2955 if test -z "$CC"; then
   2956   ac_ct_CC=$CC
   2957   for ac_prog in cl.exe
   2958 do
   2959   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2960 set dummy $ac_prog; ac_word=$2
   2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2962 $as_echo_n "checking for $ac_word... " >&6; }
   2963 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   2964   $as_echo_n "(cached) " >&6
   2965 else
   2966   if test -n "$ac_ct_CC"; then
   2967   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2968 else
   2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2970 for as_dir in $PATH
   2971 do
   2972   IFS=$as_save_IFS
   2973   test -z "$as_dir" && as_dir=.
   2974     for ac_exec_ext in '' $ac_executable_extensions; do
   2975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2976     ac_cv_prog_ac_ct_CC="$ac_prog"
   2977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2978     break 2
   2979   fi
   2980 done
   2981   done
   2982 IFS=$as_save_IFS
   2983 
   2984 fi
   2985 fi
   2986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2987 if test -n "$ac_ct_CC"; then
   2988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2989 $as_echo "$ac_ct_CC" >&6; }
   2990 else
   2991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2992 $as_echo "no" >&6; }
   2993 fi
   2994 
   2995 
   2996   test -n "$ac_ct_CC" && break
   2997 done
   2998 
   2999   if test "x$ac_ct_CC" = x; then
   3000     CC=""
   3001   else
   3002     case $cross_compiling:$ac_tool_warned in
   3003 yes:)
   3004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3006 ac_tool_warned=yes ;;
   3007 esac
   3008     CC=$ac_ct_CC
   3009   fi
   3010 fi
   3011 
   3012 fi
   3013 
   3014 
   3015 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3017 as_fn_error $? "no acceptable C compiler found in \$PATH
   3018 See \`config.log' for more details" "$LINENO" 5; }
   3019 
   3020 # Provide some information about the compiler.
   3021 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3022 set X $ac_compile
   3023 ac_compiler=$2
   3024 for ac_option in --version -v -V -qversion; do
   3025   { { ac_try="$ac_compiler $ac_option >&5"
   3026 case "(($ac_try" in
   3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3028   *) ac_try_echo=$ac_try;;
   3029 esac
   3030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3031 $as_echo "$ac_try_echo"; } >&5
   3032   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3033   ac_status=$?
   3034   if test -s conftest.err; then
   3035     sed '10a\
   3036 ... rest of stderr output deleted ...
   3037          10q' conftest.err >conftest.er1
   3038     cat conftest.er1 >&5
   3039   fi
   3040   rm -f conftest.er1 conftest.err
   3041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3042   test $ac_status = 0; }
   3043 done
   3044 
   3045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3046 /* end confdefs.h.  */
   3047 
   3048 int
   3049 main ()
   3050 {
   3051 
   3052   ;
   3053   return 0;
   3054 }
   3055 _ACEOF
   3056 ac_clean_files_save=$ac_clean_files
   3057 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3058 # Try to create an executable without -o first, disregard a.out.
   3059 # It will help us diagnose broken compilers, and finding out an intuition
   3060 # of exeext.
   3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3062 $as_echo_n "checking whether the C compiler works... " >&6; }
   3063 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3064 
   3065 # The possible output files:
   3066 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3067 
   3068 ac_rmfiles=
   3069 for ac_file in $ac_files
   3070 do
   3071   case $ac_file in
   3072     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3073     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3074   esac
   3075 done
   3076 rm -f $ac_rmfiles
   3077 
   3078 if { { ac_try="$ac_link_default"
   3079 case "(($ac_try" in
   3080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3081   *) ac_try_echo=$ac_try;;
   3082 esac
   3083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3084 $as_echo "$ac_try_echo"; } >&5
   3085   (eval "$ac_link_default") 2>&5
   3086   ac_status=$?
   3087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3088   test $ac_status = 0; }; then :
   3089   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3090 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3091 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3092 # so that the user can short-circuit this test for compilers unknown to
   3093 # Autoconf.
   3094 for ac_file in $ac_files ''
   3095 do
   3096   test -f "$ac_file" || continue
   3097   case $ac_file in
   3098     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3099 	;;
   3100     [ab].out )
   3101 	# We found the default executable, but exeext='' is most
   3102 	# certainly right.
   3103 	break;;
   3104     *.* )
   3105 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3106 	then :; else
   3107 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3108 	fi
   3109 	# We set ac_cv_exeext here because the later test for it is not
   3110 	# safe: cross compilers may not add the suffix if given an `-o'
   3111 	# argument, so we may need to know it at that point already.
   3112 	# Even if this section looks crufty: it has the advantage of
   3113 	# actually working.
   3114 	break;;
   3115     * )
   3116 	break;;
   3117   esac
   3118 done
   3119 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3120 
   3121 else
   3122   ac_file=''
   3123 fi
   3124 if test -z "$ac_file"; then :
   3125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3126 $as_echo "no" >&6; }
   3127 $as_echo "$as_me: failed program was:" >&5
   3128 sed 's/^/| /' conftest.$ac_ext >&5
   3129 
   3130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3132 as_fn_error 77 "C compiler cannot create executables
   3133 See \`config.log' for more details" "$LINENO" 5; }
   3134 else
   3135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3136 $as_echo "yes" >&6; }
   3137 fi
   3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3139 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3141 $as_echo "$ac_file" >&6; }
   3142 ac_exeext=$ac_cv_exeext
   3143 
   3144 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3145 ac_clean_files=$ac_clean_files_save
   3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3147 $as_echo_n "checking for suffix of executables... " >&6; }
   3148 if { { ac_try="$ac_link"
   3149 case "(($ac_try" in
   3150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3151   *) ac_try_echo=$ac_try;;
   3152 esac
   3153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3154 $as_echo "$ac_try_echo"; } >&5
   3155   (eval "$ac_link") 2>&5
   3156   ac_status=$?
   3157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3158   test $ac_status = 0; }; then :
   3159   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3160 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3161 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3162 # `rm'.
   3163 for ac_file in conftest.exe conftest conftest.*; do
   3164   test -f "$ac_file" || continue
   3165   case $ac_file in
   3166     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3167     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3168 	  break;;
   3169     * ) break;;
   3170   esac
   3171 done
   3172 else
   3173   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3175 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3176 See \`config.log' for more details" "$LINENO" 5; }
   3177 fi
   3178 rm -f conftest conftest$ac_cv_exeext
   3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3180 $as_echo "$ac_cv_exeext" >&6; }
   3181 
   3182 rm -f conftest.$ac_ext
   3183 EXEEXT=$ac_cv_exeext
   3184 ac_exeext=$EXEEXT
   3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3186 /* end confdefs.h.  */
   3187 #include <stdio.h>
   3188 int
   3189 main ()
   3190 {
   3191 FILE *f = fopen ("conftest.out", "w");
   3192  return ferror (f) || fclose (f) != 0;
   3193 
   3194   ;
   3195   return 0;
   3196 }
   3197 _ACEOF
   3198 ac_clean_files="$ac_clean_files conftest.out"
   3199 # Check that the compiler produces executables we can run.  If not, either
   3200 # the compiler is broken, or we cross compile.
   3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3202 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3203 if test "$cross_compiling" != yes; then
   3204   { { ac_try="$ac_link"
   3205 case "(($ac_try" in
   3206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3207   *) ac_try_echo=$ac_try;;
   3208 esac
   3209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3210 $as_echo "$ac_try_echo"; } >&5
   3211   (eval "$ac_link") 2>&5
   3212   ac_status=$?
   3213   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3214   test $ac_status = 0; }
   3215   if { ac_try='./conftest$ac_cv_exeext'
   3216   { { case "(($ac_try" in
   3217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3218   *) ac_try_echo=$ac_try;;
   3219 esac
   3220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3221 $as_echo "$ac_try_echo"; } >&5
   3222   (eval "$ac_try") 2>&5
   3223   ac_status=$?
   3224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3225   test $ac_status = 0; }; }; then
   3226     cross_compiling=no
   3227   else
   3228     if test "$cross_compiling" = maybe; then
   3229 	cross_compiling=yes
   3230     else
   3231 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3233 as_fn_error $? "cannot run C compiled programs.
   3234 If you meant to cross compile, use \`--host'.
   3235 See \`config.log' for more details" "$LINENO" 5; }
   3236     fi
   3237   fi
   3238 fi
   3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3240 $as_echo "$cross_compiling" >&6; }
   3241 
   3242 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3243 ac_clean_files=$ac_clean_files_save
   3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3245 $as_echo_n "checking for suffix of object files... " >&6; }
   3246 if ${ac_cv_objext+:} false; then :
   3247   $as_echo_n "(cached) " >&6
   3248 else
   3249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3250 /* end confdefs.h.  */
   3251 
   3252 int
   3253 main ()
   3254 {
   3255 
   3256   ;
   3257   return 0;
   3258 }
   3259 _ACEOF
   3260 rm -f conftest.o conftest.obj
   3261 if { { ac_try="$ac_compile"
   3262 case "(($ac_try" in
   3263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3264   *) ac_try_echo=$ac_try;;
   3265 esac
   3266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3267 $as_echo "$ac_try_echo"; } >&5
   3268   (eval "$ac_compile") 2>&5
   3269   ac_status=$?
   3270   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3271   test $ac_status = 0; }; then :
   3272   for ac_file in conftest.o conftest.obj conftest.*; do
   3273   test -f "$ac_file" || continue;
   3274   case $ac_file in
   3275     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3276     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3277        break;;
   3278   esac
   3279 done
   3280 else
   3281   $as_echo "$as_me: failed program was:" >&5
   3282 sed 's/^/| /' conftest.$ac_ext >&5
   3283 
   3284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3286 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3287 See \`config.log' for more details" "$LINENO" 5; }
   3288 fi
   3289 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3290 fi
   3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3292 $as_echo "$ac_cv_objext" >&6; }
   3293 OBJEXT=$ac_cv_objext
   3294 ac_objext=$OBJEXT
   3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3296 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3297 if ${ac_cv_c_compiler_gnu+:} false; then :
   3298   $as_echo_n "(cached) " >&6
   3299 else
   3300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3301 /* end confdefs.h.  */
   3302 
   3303 int
   3304 main ()
   3305 {
   3306 #ifndef __GNUC__
   3307        choke me
   3308 #endif
   3309 
   3310   ;
   3311   return 0;
   3312 }
   3313 _ACEOF
   3314 if ac_fn_c_try_compile "$LINENO"; then :
   3315   ac_compiler_gnu=yes
   3316 else
   3317   ac_compiler_gnu=no
   3318 fi
   3319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3320 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3321 
   3322 fi
   3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3324 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3325 if test $ac_compiler_gnu = yes; then
   3326   GCC=yes
   3327 else
   3328   GCC=
   3329 fi
   3330 ac_test_CFLAGS=${CFLAGS+set}
   3331 ac_save_CFLAGS=$CFLAGS
   3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3333 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3334 if ${ac_cv_prog_cc_g+:} false; then :
   3335   $as_echo_n "(cached) " >&6
   3336 else
   3337   ac_save_c_werror_flag=$ac_c_werror_flag
   3338    ac_c_werror_flag=yes
   3339    ac_cv_prog_cc_g=no
   3340    CFLAGS="-g"
   3341    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3342 /* end confdefs.h.  */
   3343 
   3344 int
   3345 main ()
   3346 {
   3347 
   3348   ;
   3349   return 0;
   3350 }
   3351 _ACEOF
   3352 if ac_fn_c_try_compile "$LINENO"; then :
   3353   ac_cv_prog_cc_g=yes
   3354 else
   3355   CFLAGS=""
   3356       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3357 /* end confdefs.h.  */
   3358 
   3359 int
   3360 main ()
   3361 {
   3362 
   3363   ;
   3364   return 0;
   3365 }
   3366 _ACEOF
   3367 if ac_fn_c_try_compile "$LINENO"; then :
   3368 
   3369 else
   3370   ac_c_werror_flag=$ac_save_c_werror_flag
   3371 	 CFLAGS="-g"
   3372 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3373 /* end confdefs.h.  */
   3374 
   3375 int
   3376 main ()
   3377 {
   3378 
   3379   ;
   3380   return 0;
   3381 }
   3382 _ACEOF
   3383 if ac_fn_c_try_compile "$LINENO"; then :
   3384   ac_cv_prog_cc_g=yes
   3385 fi
   3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3387 fi
   3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3389 fi
   3390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3391    ac_c_werror_flag=$ac_save_c_werror_flag
   3392 fi
   3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3394 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3395 if test "$ac_test_CFLAGS" = set; then
   3396   CFLAGS=$ac_save_CFLAGS
   3397 elif test $ac_cv_prog_cc_g = yes; then
   3398   if test "$GCC" = yes; then
   3399     CFLAGS="-g -O2"
   3400   else
   3401     CFLAGS="-g"
   3402   fi
   3403 else
   3404   if test "$GCC" = yes; then
   3405     CFLAGS="-O2"
   3406   else
   3407     CFLAGS=
   3408   fi
   3409 fi
   3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3411 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3412 if ${ac_cv_prog_cc_c89+:} false; then :
   3413   $as_echo_n "(cached) " >&6
   3414 else
   3415   ac_cv_prog_cc_c89=no
   3416 ac_save_CC=$CC
   3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3418 /* end confdefs.h.  */
   3419 #include <stdarg.h>
   3420 #include <stdio.h>
   3421 struct stat;
   3422 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3423 struct buf { int x; };
   3424 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3425 static char *e (p, i)
   3426      char **p;
   3427      int i;
   3428 {
   3429   return p[i];
   3430 }
   3431 static char *f (char * (*g) (char **, int), char **p, ...)
   3432 {
   3433   char *s;
   3434   va_list v;
   3435   va_start (v,p);
   3436   s = g (p, va_arg (v,int));
   3437   va_end (v);
   3438   return s;
   3439 }
   3440 
   3441 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3442    function prototypes and stuff, but not '\xHH' hex character constants.
   3443    These don't provoke an error unfortunately, instead are silently treated
   3444    as 'x'.  The following induces an error, until -std is added to get
   3445    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3446    array size at least.  It's necessary to write '\x00'==0 to get something
   3447    that's true only with -std.  */
   3448 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3449 
   3450 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3451    inside strings and character constants.  */
   3452 #define FOO(x) 'x'
   3453 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3454 
   3455 int test (int i, double x);
   3456 struct s1 {int (*f) (int a);};
   3457 struct s2 {int (*f) (double a);};
   3458 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3459 int argc;
   3460 char **argv;
   3461 int
   3462 main ()
   3463 {
   3464 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3465   ;
   3466   return 0;
   3467 }
   3468 _ACEOF
   3469 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3470 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3471 do
   3472   CC="$ac_save_CC $ac_arg"
   3473   if ac_fn_c_try_compile "$LINENO"; then :
   3474   ac_cv_prog_cc_c89=$ac_arg
   3475 fi
   3476 rm -f core conftest.err conftest.$ac_objext
   3477   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3478 done
   3479 rm -f conftest.$ac_ext
   3480 CC=$ac_save_CC
   3481 
   3482 fi
   3483 # AC_CACHE_VAL
   3484 case "x$ac_cv_prog_cc_c89" in
   3485   x)
   3486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3487 $as_echo "none needed" >&6; } ;;
   3488   xno)
   3489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3490 $as_echo "unsupported" >&6; } ;;
   3491   *)
   3492     CC="$CC $ac_cv_prog_cc_c89"
   3493     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3494 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3495 esac
   3496 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3497 
   3498 fi
   3499 
   3500 ac_ext=c
   3501 ac_cpp='$CPP $CPPFLAGS'
   3502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3505 
   3506 
   3507 if test "x$GCC" != "xyes" ; then
   3508 
   3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5
   3510 $as_echo_n "checking whether compiler is MSVC... " >&6; }
   3511 if ${je_cv_msvc+:} false; then :
   3512   $as_echo_n "(cached) " >&6
   3513 else
   3514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3515 /* end confdefs.h.  */
   3516 
   3517 int
   3518 main ()
   3519 {
   3520 
   3521 #ifndef _MSC_VER
   3522   int fail-1;
   3523 #endif
   3524 
   3525   ;
   3526   return 0;
   3527 }
   3528 _ACEOF
   3529 if ac_fn_c_try_compile "$LINENO"; then :
   3530   je_cv_msvc=yes
   3531 else
   3532   je_cv_msvc=no
   3533 fi
   3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3535 fi
   3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5
   3537 $as_echo "$je_cv_msvc" >&6; }
   3538 fi
   3539 
   3540 je_cv_cray_prgenv_wrapper=""
   3541 if test "x${PE_ENV}" != "x" ; then
   3542   case "${CC}" in
   3543     CC|cc)
   3544 	je_cv_cray_prgenv_wrapper="yes"
   3545 	;;
   3546     *)
   3547        ;;
   3548   esac
   3549 fi
   3550 
   3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is cray" >&5
   3552 $as_echo_n "checking whether compiler is cray... " >&6; }
   3553 if ${je_cv_cray+:} false; then :
   3554   $as_echo_n "(cached) " >&6
   3555 else
   3556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3557 /* end confdefs.h.  */
   3558 
   3559 int
   3560 main ()
   3561 {
   3562 
   3563 #ifndef _CRAYC
   3564   int fail-1;
   3565 #endif
   3566 
   3567   ;
   3568   return 0;
   3569 }
   3570 _ACEOF
   3571 if ac_fn_c_try_compile "$LINENO"; then :
   3572   je_cv_cray=yes
   3573 else
   3574   je_cv_cray=no
   3575 fi
   3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3577 fi
   3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray" >&5
   3579 $as_echo "$je_cv_cray" >&6; }
   3580 
   3581 if test "x${je_cv_cray}" = "xyes" ; then
   3582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cray compiler version is 8.4" >&5
   3583 $as_echo_n "checking whether cray compiler version is 8.4... " >&6; }
   3584 if ${je_cv_cray_84+:} false; then :
   3585   $as_echo_n "(cached) " >&6
   3586 else
   3587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3588 /* end confdefs.h.  */
   3589 
   3590 int
   3591 main ()
   3592 {
   3593 
   3594 #if !(_RELEASE_MAJOR == 8 && _RELEASE_MINOR == 4)
   3595   int fail-1;
   3596 #endif
   3597 
   3598   ;
   3599   return 0;
   3600 }
   3601 _ACEOF
   3602 if ac_fn_c_try_compile "$LINENO"; then :
   3603   je_cv_cray_84=yes
   3604 else
   3605   je_cv_cray_84=no
   3606 fi
   3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3608 fi
   3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray_84" >&5
   3610 $as_echo "$je_cv_cray_84" >&6; }
   3611 fi
   3612 
   3613 if test "x$GCC" = "xyes" ; then
   3614 
   3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu11" >&5
   3616 $as_echo_n "checking whether compiler supports -std=gnu11... " >&6; }
   3617 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   3618 T_APPEND_V=-std=gnu11
   3619   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   3620   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   3621 else
   3622   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   3623 fi
   3624 
   3625 
   3626 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3627   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3628 else
   3629   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3630 fi
   3631 
   3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3633 /* end confdefs.h.  */
   3634 
   3635 
   3636 int
   3637 main ()
   3638 {
   3639 
   3640     return 0;
   3641 
   3642   ;
   3643   return 0;
   3644 }
   3645 _ACEOF
   3646 if ac_fn_c_try_compile "$LINENO"; then :
   3647   je_cv_cflags_added=-std=gnu11
   3648               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3649 $as_echo "yes" >&6; }
   3650 else
   3651   je_cv_cflags_added=
   3652               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3653 $as_echo "no" >&6; }
   3654               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   3655 
   3656 fi
   3657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3658 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3659   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3660 else
   3661   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3662 fi
   3663 
   3664 
   3665   if test "x$je_cv_cflags_added" = "x-std=gnu11" ; then
   3666     cat >>confdefs.h <<_ACEOF
   3667 #define JEMALLOC_HAS_RESTRICT 1
   3668 _ACEOF
   3669 
   3670   else
   3671 
   3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5
   3673 $as_echo_n "checking whether compiler supports -std=gnu99... " >&6; }
   3674 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   3675 T_APPEND_V=-std=gnu99
   3676   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   3677   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   3678 else
   3679   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   3680 fi
   3681 
   3682 
   3683 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3684   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3685 else
   3686   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3687 fi
   3688 
   3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3690 /* end confdefs.h.  */
   3691 
   3692 
   3693 int
   3694 main ()
   3695 {
   3696 
   3697     return 0;
   3698 
   3699   ;
   3700   return 0;
   3701 }
   3702 _ACEOF
   3703 if ac_fn_c_try_compile "$LINENO"; then :
   3704   je_cv_cflags_added=-std=gnu99
   3705               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3706 $as_echo "yes" >&6; }
   3707 else
   3708   je_cv_cflags_added=
   3709               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3710 $as_echo "no" >&6; }
   3711               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   3712 
   3713 fi
   3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3715 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3716   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3717 else
   3718   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3719 fi
   3720 
   3721 
   3722     if test "x$je_cv_cflags_added" = "x-std=gnu99" ; then
   3723       cat >>confdefs.h <<_ACEOF
   3724 #define JEMALLOC_HAS_RESTRICT 1
   3725 _ACEOF
   3726 
   3727     fi
   3728   fi
   3729 
   3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
   3731 $as_echo_n "checking whether compiler supports -Wall... " >&6; }
   3732 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   3733 T_APPEND_V=-Wall
   3734   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   3735   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   3736 else
   3737   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   3738 fi
   3739 
   3740 
   3741 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3742   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3743 else
   3744   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3745 fi
   3746 
   3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3748 /* end confdefs.h.  */
   3749 
   3750 
   3751 int
   3752 main ()
   3753 {
   3754 
   3755     return 0;
   3756 
   3757   ;
   3758   return 0;
   3759 }
   3760 _ACEOF
   3761 if ac_fn_c_try_compile "$LINENO"; then :
   3762   je_cv_cflags_added=-Wall
   3763               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3764 $as_echo "yes" >&6; }
   3765 else
   3766   je_cv_cflags_added=
   3767               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3768 $as_echo "no" >&6; }
   3769               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   3770 
   3771 fi
   3772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3773 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3774   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3775 else
   3776   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3777 fi
   3778 
   3779 
   3780 
   3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wshorten-64-to-32" >&5
   3782 $as_echo_n "checking whether compiler supports -Wshorten-64-to-32... " >&6; }
   3783 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   3784 T_APPEND_V=-Wshorten-64-to-32
   3785   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   3786   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   3787 else
   3788   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   3789 fi
   3790 
   3791 
   3792 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3793   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3794 else
   3795   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3796 fi
   3797 
   3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3799 /* end confdefs.h.  */
   3800 
   3801 
   3802 int
   3803 main ()
   3804 {
   3805 
   3806     return 0;
   3807 
   3808   ;
   3809   return 0;
   3810 }
   3811 _ACEOF
   3812 if ac_fn_c_try_compile "$LINENO"; then :
   3813   je_cv_cflags_added=-Wshorten-64-to-32
   3814               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3815 $as_echo "yes" >&6; }
   3816 else
   3817   je_cv_cflags_added=
   3818               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3819 $as_echo "no" >&6; }
   3820               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   3821 
   3822 fi
   3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3824 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3825   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3826 else
   3827   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3828 fi
   3829 
   3830 
   3831 
   3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-compare" >&5
   3833 $as_echo_n "checking whether compiler supports -Wsign-compare... " >&6; }
   3834 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   3835 T_APPEND_V=-Wsign-compare
   3836   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   3837   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   3838 else
   3839   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   3840 fi
   3841 
   3842 
   3843 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3844   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3845 else
   3846   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3847 fi
   3848 
   3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3850 /* end confdefs.h.  */
   3851 
   3852 
   3853 int
   3854 main ()
   3855 {
   3856 
   3857     return 0;
   3858 
   3859   ;
   3860   return 0;
   3861 }
   3862 _ACEOF
   3863 if ac_fn_c_try_compile "$LINENO"; then :
   3864   je_cv_cflags_added=-Wsign-compare
   3865               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3866 $as_echo "yes" >&6; }
   3867 else
   3868   je_cv_cflags_added=
   3869               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3870 $as_echo "no" >&6; }
   3871               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   3872 
   3873 fi
   3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3875 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3876   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3877 else
   3878   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3879 fi
   3880 
   3881 
   3882 
   3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wundef" >&5
   3884 $as_echo_n "checking whether compiler supports -Wundef... " >&6; }
   3885 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   3886 T_APPEND_V=-Wundef
   3887   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   3888   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   3889 else
   3890   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   3891 fi
   3892 
   3893 
   3894 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3895   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3896 else
   3897   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3898 fi
   3899 
   3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3901 /* end confdefs.h.  */
   3902 
   3903 
   3904 int
   3905 main ()
   3906 {
   3907 
   3908     return 0;
   3909 
   3910   ;
   3911   return 0;
   3912 }
   3913 _ACEOF
   3914 if ac_fn_c_try_compile "$LINENO"; then :
   3915   je_cv_cflags_added=-Wundef
   3916               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3917 $as_echo "yes" >&6; }
   3918 else
   3919   je_cv_cflags_added=
   3920               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3921 $as_echo "no" >&6; }
   3922               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   3923 
   3924 fi
   3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3926 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3927   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3928 else
   3929   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3930 fi
   3931 
   3932 
   3933 
   3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-format-zero-length" >&5
   3935 $as_echo_n "checking whether compiler supports -Wno-format-zero-length... " >&6; }
   3936 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   3937 T_APPEND_V=-Wno-format-zero-length
   3938   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   3939   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   3940 else
   3941   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   3942 fi
   3943 
   3944 
   3945 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3946   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3947 else
   3948   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3949 fi
   3950 
   3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3952 /* end confdefs.h.  */
   3953 
   3954 
   3955 int
   3956 main ()
   3957 {
   3958 
   3959     return 0;
   3960 
   3961   ;
   3962   return 0;
   3963 }
   3964 _ACEOF
   3965 if ac_fn_c_try_compile "$LINENO"; then :
   3966   je_cv_cflags_added=-Wno-format-zero-length
   3967               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3968 $as_echo "yes" >&6; }
   3969 else
   3970   je_cv_cflags_added=
   3971               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3972 $as_echo "no" >&6; }
   3973               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   3974 
   3975 fi
   3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3977 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3978   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3979 else
   3980   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   3981 fi
   3982 
   3983 
   3984 
   3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5
   3986 $as_echo_n "checking whether compiler supports -pipe... " >&6; }
   3987 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   3988 T_APPEND_V=-pipe
   3989   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   3990   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   3991 else
   3992   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   3993 fi
   3994 
   3995 
   3996 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   3997   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   3998 else
   3999   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4000 fi
   4001 
   4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4003 /* end confdefs.h.  */
   4004 
   4005 
   4006 int
   4007 main ()
   4008 {
   4009 
   4010     return 0;
   4011 
   4012   ;
   4013   return 0;
   4014 }
   4015 _ACEOF
   4016 if ac_fn_c_try_compile "$LINENO"; then :
   4017   je_cv_cflags_added=-pipe
   4018               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4019 $as_echo "yes" >&6; }
   4020 else
   4021   je_cv_cflags_added=
   4022               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4023 $as_echo "no" >&6; }
   4024               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4025 
   4026 fi
   4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4028 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4029   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4030 else
   4031   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4032 fi
   4033 
   4034 
   4035 
   4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
   4037 $as_echo_n "checking whether compiler supports -g3... " >&6; }
   4038 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4039 T_APPEND_V=-g3
   4040   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4041   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4042 else
   4043   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4044 fi
   4045 
   4046 
   4047 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4048   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4049 else
   4050   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4051 fi
   4052 
   4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4054 /* end confdefs.h.  */
   4055 
   4056 
   4057 int
   4058 main ()
   4059 {
   4060 
   4061     return 0;
   4062 
   4063   ;
   4064   return 0;
   4065 }
   4066 _ACEOF
   4067 if ac_fn_c_try_compile "$LINENO"; then :
   4068   je_cv_cflags_added=-g3
   4069               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4070 $as_echo "yes" >&6; }
   4071 else
   4072   je_cv_cflags_added=
   4073               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4074 $as_echo "no" >&6; }
   4075               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4076 
   4077 fi
   4078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4079 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4080   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4081 else
   4082   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4083 fi
   4084 
   4085 
   4086 elif test "x$je_cv_msvc" = "xyes" ; then
   4087   CC="$CC -nologo"
   4088 
   4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5
   4090 $as_echo_n "checking whether compiler supports -Zi... " >&6; }
   4091 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4092 T_APPEND_V=-Zi
   4093   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4094   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4095 else
   4096   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4097 fi
   4098 
   4099 
   4100 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4101   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4102 else
   4103   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4104 fi
   4105 
   4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4107 /* end confdefs.h.  */
   4108 
   4109 
   4110 int
   4111 main ()
   4112 {
   4113 
   4114     return 0;
   4115 
   4116   ;
   4117   return 0;
   4118 }
   4119 _ACEOF
   4120 if ac_fn_c_try_compile "$LINENO"; then :
   4121   je_cv_cflags_added=-Zi
   4122               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4123 $as_echo "yes" >&6; }
   4124 else
   4125   je_cv_cflags_added=
   4126               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4127 $as_echo "no" >&6; }
   4128               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4129 
   4130 fi
   4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4132 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4133   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4134 else
   4135   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4136 fi
   4137 
   4138 
   4139 
   4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5
   4141 $as_echo_n "checking whether compiler supports -MT... " >&6; }
   4142 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4143 T_APPEND_V=-MT
   4144   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4145   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4146 else
   4147   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4148 fi
   4149 
   4150 
   4151 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4152   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4153 else
   4154   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4155 fi
   4156 
   4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4158 /* end confdefs.h.  */
   4159 
   4160 
   4161 int
   4162 main ()
   4163 {
   4164 
   4165     return 0;
   4166 
   4167   ;
   4168   return 0;
   4169 }
   4170 _ACEOF
   4171 if ac_fn_c_try_compile "$LINENO"; then :
   4172   je_cv_cflags_added=-MT
   4173               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4174 $as_echo "yes" >&6; }
   4175 else
   4176   je_cv_cflags_added=
   4177               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4178 $as_echo "no" >&6; }
   4179               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4180 
   4181 fi
   4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4183 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4184   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4185 else
   4186   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4187 fi
   4188 
   4189 
   4190 
   4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5
   4192 $as_echo_n "checking whether compiler supports -W3... " >&6; }
   4193 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4194 T_APPEND_V=-W3
   4195   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4196   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4197 else
   4198   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4199 fi
   4200 
   4201 
   4202 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4203   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4204 else
   4205   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4206 fi
   4207 
   4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4209 /* end confdefs.h.  */
   4210 
   4211 
   4212 int
   4213 main ()
   4214 {
   4215 
   4216     return 0;
   4217 
   4218   ;
   4219   return 0;
   4220 }
   4221 _ACEOF
   4222 if ac_fn_c_try_compile "$LINENO"; then :
   4223   je_cv_cflags_added=-W3
   4224               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4225 $as_echo "yes" >&6; }
   4226 else
   4227   je_cv_cflags_added=
   4228               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4229 $as_echo "no" >&6; }
   4230               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4231 
   4232 fi
   4233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4234 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4235   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4236 else
   4237   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4238 fi
   4239 
   4240 
   4241 
   4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -FS" >&5
   4243 $as_echo_n "checking whether compiler supports -FS... " >&6; }
   4244 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4245 T_APPEND_V=-FS
   4246   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4247   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4248 else
   4249   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4250 fi
   4251 
   4252 
   4253 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4254   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4255 else
   4256   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4257 fi
   4258 
   4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4260 /* end confdefs.h.  */
   4261 
   4262 
   4263 int
   4264 main ()
   4265 {
   4266 
   4267     return 0;
   4268 
   4269   ;
   4270   return 0;
   4271 }
   4272 _ACEOF
   4273 if ac_fn_c_try_compile "$LINENO"; then :
   4274   je_cv_cflags_added=-FS
   4275               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4276 $as_echo "yes" >&6; }
   4277 else
   4278   je_cv_cflags_added=
   4279               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4280 $as_echo "no" >&6; }
   4281               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4282 
   4283 fi
   4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4285 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4286   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4287 else
   4288   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4289 fi
   4290 
   4291 
   4292   T_APPEND_V=-I${srcdir}/include/msvc_compat
   4293   if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4294   CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
   4295 else
   4296   CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
   4297 fi
   4298 
   4299 
   4300 fi
   4301 if test "x$je_cv_cray" = "xyes" ; then
   4302     if test "x$je_cv_cray_84" = "xyes" ; then
   4303 
   4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hipa2" >&5
   4305 $as_echo_n "checking whether compiler supports -hipa2... " >&6; }
   4306 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4307 T_APPEND_V=-hipa2
   4308   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4309   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4310 else
   4311   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4312 fi
   4313 
   4314 
   4315 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4316   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4317 else
   4318   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4319 fi
   4320 
   4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4322 /* end confdefs.h.  */
   4323 
   4324 
   4325 int
   4326 main ()
   4327 {
   4328 
   4329     return 0;
   4330 
   4331   ;
   4332   return 0;
   4333 }
   4334 _ACEOF
   4335 if ac_fn_c_try_compile "$LINENO"; then :
   4336   je_cv_cflags_added=-hipa2
   4337               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4338 $as_echo "yes" >&6; }
   4339 else
   4340   je_cv_cflags_added=
   4341               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4342 $as_echo "no" >&6; }
   4343               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4344 
   4345 fi
   4346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4347 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4348   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4349 else
   4350   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4351 fi
   4352 
   4353 
   4354 
   4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnognu" >&5
   4356 $as_echo_n "checking whether compiler supports -hnognu... " >&6; }
   4357 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4358 T_APPEND_V=-hnognu
   4359   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4360   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4361 else
   4362   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4363 fi
   4364 
   4365 
   4366 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4367   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4368 else
   4369   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4370 fi
   4371 
   4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4373 /* end confdefs.h.  */
   4374 
   4375 
   4376 int
   4377 main ()
   4378 {
   4379 
   4380     return 0;
   4381 
   4382   ;
   4383   return 0;
   4384 }
   4385 _ACEOF
   4386 if ac_fn_c_try_compile "$LINENO"; then :
   4387   je_cv_cflags_added=-hnognu
   4388               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4389 $as_echo "yes" >&6; }
   4390 else
   4391   je_cv_cflags_added=
   4392               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4393 $as_echo "no" >&6; }
   4394               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4395 
   4396 fi
   4397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4398 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4399   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4400 else
   4401   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4402 fi
   4403 
   4404 
   4405   fi
   4406 
   4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=128" >&5
   4408 $as_echo_n "checking whether compiler supports -hnomessage=128... " >&6; }
   4409 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4410 T_APPEND_V=-hnomessage=128
   4411   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4412   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4413 else
   4414   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4415 fi
   4416 
   4417 
   4418 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4419   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4420 else
   4421   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4422 fi
   4423 
   4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4425 /* end confdefs.h.  */
   4426 
   4427 
   4428 int
   4429 main ()
   4430 {
   4431 
   4432     return 0;
   4433 
   4434   ;
   4435   return 0;
   4436 }
   4437 _ACEOF
   4438 if ac_fn_c_try_compile "$LINENO"; then :
   4439   je_cv_cflags_added=-hnomessage=128
   4440               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4441 $as_echo "yes" >&6; }
   4442 else
   4443   je_cv_cflags_added=
   4444               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4445 $as_echo "no" >&6; }
   4446               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4447 
   4448 fi
   4449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4450 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4451   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4452 else
   4453   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4454 fi
   4455 
   4456 
   4457 
   4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=1357" >&5
   4459 $as_echo_n "checking whether compiler supports -hnomessage=1357... " >&6; }
   4460 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   4461 T_APPEND_V=-hnomessage=1357
   4462   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   4463   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   4464 else
   4465   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   4466 fi
   4467 
   4468 
   4469 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4470   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4471 else
   4472   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4473 fi
   4474 
   4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4476 /* end confdefs.h.  */
   4477 
   4478 
   4479 int
   4480 main ()
   4481 {
   4482 
   4483     return 0;
   4484 
   4485   ;
   4486   return 0;
   4487 }
   4488 _ACEOF
   4489 if ac_fn_c_try_compile "$LINENO"; then :
   4490   je_cv_cflags_added=-hnomessage=1357
   4491               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4492 $as_echo "yes" >&6; }
   4493 else
   4494   je_cv_cflags_added=
   4495               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4496 $as_echo "no" >&6; }
   4497               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   4498 
   4499 fi
   4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4501 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   4502   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   4503 else
   4504   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   4505 fi
   4506 
   4507 
   4508 fi
   4509 
   4510 
   4511 
   4512 ac_ext=c
   4513 ac_cpp='$CPP $CPPFLAGS'
   4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   4518 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   4519 # On Suns, sometimes $CPP names a directory.
   4520 if test -n "$CPP" && test -d "$CPP"; then
   4521   CPP=
   4522 fi
   4523 if test -z "$CPP"; then
   4524   if ${ac_cv_prog_CPP+:} false; then :
   4525   $as_echo_n "(cached) " >&6
   4526 else
   4527       # Double quotes because CPP needs to be expanded
   4528     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   4529     do
   4530       ac_preproc_ok=false
   4531 for ac_c_preproc_warn_flag in '' yes
   4532 do
   4533   # Use a header file that comes with gcc, so configuring glibc
   4534   # with a fresh cross-compiler works.
   4535   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4536   # <limits.h> exists even on freestanding compilers.
   4537   # On the NeXT, cc -E runs the code through the compiler's parser,
   4538   # not just through cpp. "Syntax error" is here to catch this case.
   4539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4540 /* end confdefs.h.  */
   4541 #ifdef __STDC__
   4542 # include <limits.h>
   4543 #else
   4544 # include <assert.h>
   4545 #endif
   4546 		     Syntax error
   4547 _ACEOF
   4548 if ac_fn_c_try_cpp "$LINENO"; then :
   4549 
   4550 else
   4551   # Broken: fails on valid input.
   4552 continue
   4553 fi
   4554 rm -f conftest.err conftest.i conftest.$ac_ext
   4555 
   4556   # OK, works on sane cases.  Now check whether nonexistent headers
   4557   # can be detected and how.
   4558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4559 /* end confdefs.h.  */
   4560 #include <ac_nonexistent.h>
   4561 _ACEOF
   4562 if ac_fn_c_try_cpp "$LINENO"; then :
   4563   # Broken: success on invalid input.
   4564 continue
   4565 else
   4566   # Passes both tests.
   4567 ac_preproc_ok=:
   4568 break
   4569 fi
   4570 rm -f conftest.err conftest.i conftest.$ac_ext
   4571 
   4572 done
   4573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4574 rm -f conftest.i conftest.err conftest.$ac_ext
   4575 if $ac_preproc_ok; then :
   4576   break
   4577 fi
   4578 
   4579     done
   4580     ac_cv_prog_CPP=$CPP
   4581 
   4582 fi
   4583   CPP=$ac_cv_prog_CPP
   4584 else
   4585   ac_cv_prog_CPP=$CPP
   4586 fi
   4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   4588 $as_echo "$CPP" >&6; }
   4589 ac_preproc_ok=false
   4590 for ac_c_preproc_warn_flag in '' yes
   4591 do
   4592   # Use a header file that comes with gcc, so configuring glibc
   4593   # with a fresh cross-compiler works.
   4594   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4595   # <limits.h> exists even on freestanding compilers.
   4596   # On the NeXT, cc -E runs the code through the compiler's parser,
   4597   # not just through cpp. "Syntax error" is here to catch this case.
   4598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4599 /* end confdefs.h.  */
   4600 #ifdef __STDC__
   4601 # include <limits.h>
   4602 #else
   4603 # include <assert.h>
   4604 #endif
   4605 		     Syntax error
   4606 _ACEOF
   4607 if ac_fn_c_try_cpp "$LINENO"; then :
   4608 
   4609 else
   4610   # Broken: fails on valid input.
   4611 continue
   4612 fi
   4613 rm -f conftest.err conftest.i conftest.$ac_ext
   4614 
   4615   # OK, works on sane cases.  Now check whether nonexistent headers
   4616   # can be detected and how.
   4617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4618 /* end confdefs.h.  */
   4619 #include <ac_nonexistent.h>
   4620 _ACEOF
   4621 if ac_fn_c_try_cpp "$LINENO"; then :
   4622   # Broken: success on invalid input.
   4623 continue
   4624 else
   4625   # Passes both tests.
   4626 ac_preproc_ok=:
   4627 break
   4628 fi
   4629 rm -f conftest.err conftest.i conftest.$ac_ext
   4630 
   4631 done
   4632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4633 rm -f conftest.i conftest.err conftest.$ac_ext
   4634 if $ac_preproc_ok; then :
   4635 
   4636 else
   4637   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4639 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   4640 See \`config.log' for more details" "$LINENO" 5; }
   4641 fi
   4642 
   4643 ac_ext=c
   4644 ac_cpp='$CPP $CPPFLAGS'
   4645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4648 
   4649 
   4650 # Check whether --enable-cxx was given.
   4651 if test "${enable_cxx+set}" = set; then :
   4652   enableval=$enable_cxx; if test "x$enable_cxx" = "xno" ; then
   4653   enable_cxx="0"
   4654 else
   4655   enable_cxx="1"
   4656 fi
   4657 
   4658 else
   4659   enable_cxx="1"
   4660 
   4661 fi
   4662 
   4663 if test "x$enable_cxx" = "x1" ; then
   4664       # ===========================================================================
   4665 #   http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html
   4666 # ===========================================================================
   4667 #
   4668 # SYNOPSIS
   4669 #
   4670 #   AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional])
   4671 #
   4672 # DESCRIPTION
   4673 #
   4674 #   Check for baseline language coverage in the compiler for the specified
   4675 #   version of the C++ standard.  If necessary, add switches to CXX and
   4676 #   CXXCPP to enable support.  VERSION may be '11' (for the C++11 standard)
   4677 #   or '14' (for the C++14 standard).
   4678 #
   4679 #   The second argument, if specified, indicates whether you insist on an
   4680 #   extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
   4681 #   -std=c++11).  If neither is specified, you get whatever works, with
   4682 #   preference for an extended mode.
   4683 #
   4684 #   The third argument, if specified 'mandatory' or if left unspecified,
   4685 #   indicates that baseline support for the specified C++ standard is
   4686 #   required and that the macro should error out if no mode with that
   4687 #   support is found.  If specified 'optional', then configuration proceeds
   4688 #   regardless, after defining HAVE_CXX${VERSION} if and only if a
   4689 #   supporting mode is found.
   4690 #
   4691 # LICENSE
   4692 #
   4693 #   Copyright (c) 2008 Benjamin Kosnik <bkoz (at] redhat.com>
   4694 #   Copyright (c) 2012 Zack Weinberg <zackw (at] panix.com>
   4695 #   Copyright (c) 2013 Roy Stogner <roystgnr (at] ices.utexas.edu>
   4696 #   Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov (at] google.com>
   4697 #   Copyright (c) 2015 Paul Norman <penorman (at] mac.com>
   4698 #   Copyright (c) 2015 Moritz Klammler <moritz (at] klammler.eu>
   4699 #
   4700 #   Copying and distribution of this file, with or without modification, are
   4701 #   permitted in any medium without royalty provided the copyright notice
   4702 #   and this notice are preserved.  This file is offered as-is, without any
   4703 #   warranty.
   4704 
   4705 #serial 4
   4706 
   4707 
   4708 
   4709 
   4710 
   4711 
   4712 
   4713 
   4714 
   4715 
   4716 
   4717 
   4718 
   4719 
   4720 
   4721 
   4722 
   4723 
   4724 
   4725 
   4726   ac_ext=cpp
   4727 ac_cpp='$CXXCPP $CPPFLAGS'
   4728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   4731 if test -z "$CXX"; then
   4732   if test -n "$CCC"; then
   4733     CXX=$CCC
   4734   else
   4735     if test -n "$ac_tool_prefix"; then
   4736   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   4737   do
   4738     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4741 $as_echo_n "checking for $ac_word... " >&6; }
   4742 if ${ac_cv_prog_CXX+:} false; then :
   4743   $as_echo_n "(cached) " >&6
   4744 else
   4745   if test -n "$CXX"; then
   4746   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   4747 else
   4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4749 for as_dir in $PATH
   4750 do
   4751   IFS=$as_save_IFS
   4752   test -z "$as_dir" && as_dir=.
   4753     for ac_exec_ext in '' $ac_executable_extensions; do
   4754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4755     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   4756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4757     break 2
   4758   fi
   4759 done
   4760   done
   4761 IFS=$as_save_IFS
   4762 
   4763 fi
   4764 fi
   4765 CXX=$ac_cv_prog_CXX
   4766 if test -n "$CXX"; then
   4767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   4768 $as_echo "$CXX" >&6; }
   4769 else
   4770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4771 $as_echo "no" >&6; }
   4772 fi
   4773 
   4774 
   4775     test -n "$CXX" && break
   4776   done
   4777 fi
   4778 if test -z "$CXX"; then
   4779   ac_ct_CXX=$CXX
   4780   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   4781 do
   4782   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4783 set dummy $ac_prog; ac_word=$2
   4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4785 $as_echo_n "checking for $ac_word... " >&6; }
   4786 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
   4787   $as_echo_n "(cached) " >&6
   4788 else
   4789   if test -n "$ac_ct_CXX"; then
   4790   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   4791 else
   4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4793 for as_dir in $PATH
   4794 do
   4795   IFS=$as_save_IFS
   4796   test -z "$as_dir" && as_dir=.
   4797     for ac_exec_ext in '' $ac_executable_extensions; do
   4798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4799     ac_cv_prog_ac_ct_CXX="$ac_prog"
   4800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4801     break 2
   4802   fi
   4803 done
   4804   done
   4805 IFS=$as_save_IFS
   4806 
   4807 fi
   4808 fi
   4809 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   4810 if test -n "$ac_ct_CXX"; then
   4811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
   4812 $as_echo "$ac_ct_CXX" >&6; }
   4813 else
   4814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4815 $as_echo "no" >&6; }
   4816 fi
   4817 
   4818 
   4819   test -n "$ac_ct_CXX" && break
   4820 done
   4821 
   4822   if test "x$ac_ct_CXX" = x; then
   4823     CXX="g++"
   4824   else
   4825     case $cross_compiling:$ac_tool_warned in
   4826 yes:)
   4827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4829 ac_tool_warned=yes ;;
   4830 esac
   4831     CXX=$ac_ct_CXX
   4832   fi
   4833 fi
   4834 
   4835   fi
   4836 fi
   4837 # Provide some information about the compiler.
   4838 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
   4839 set X $ac_compile
   4840 ac_compiler=$2
   4841 for ac_option in --version -v -V -qversion; do
   4842   { { ac_try="$ac_compiler $ac_option >&5"
   4843 case "(($ac_try" in
   4844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4845   *) ac_try_echo=$ac_try;;
   4846 esac
   4847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4848 $as_echo "$ac_try_echo"; } >&5
   4849   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   4850   ac_status=$?
   4851   if test -s conftest.err; then
   4852     sed '10a\
   4853 ... rest of stderr output deleted ...
   4854          10q' conftest.err >conftest.er1
   4855     cat conftest.er1 >&5
   4856   fi
   4857   rm -f conftest.er1 conftest.err
   4858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4859   test $ac_status = 0; }
   4860 done
   4861 
   4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
   4863 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
   4864 if ${ac_cv_cxx_compiler_gnu+:} false; then :
   4865   $as_echo_n "(cached) " >&6
   4866 else
   4867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4868 /* end confdefs.h.  */
   4869 
   4870 int
   4871 main ()
   4872 {
   4873 #ifndef __GNUC__
   4874        choke me
   4875 #endif
   4876 
   4877   ;
   4878   return 0;
   4879 }
   4880 _ACEOF
   4881 if ac_fn_cxx_try_compile "$LINENO"; then :
   4882   ac_compiler_gnu=yes
   4883 else
   4884   ac_compiler_gnu=no
   4885 fi
   4886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4887 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   4888 
   4889 fi
   4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
   4891 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
   4892 if test $ac_compiler_gnu = yes; then
   4893   GXX=yes
   4894 else
   4895   GXX=
   4896 fi
   4897 ac_test_CXXFLAGS=${CXXFLAGS+set}
   4898 ac_save_CXXFLAGS=$CXXFLAGS
   4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
   4900 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
   4901 if ${ac_cv_prog_cxx_g+:} false; then :
   4902   $as_echo_n "(cached) " >&6
   4903 else
   4904   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   4905    ac_cxx_werror_flag=yes
   4906    ac_cv_prog_cxx_g=no
   4907    CXXFLAGS="-g"
   4908    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4909 /* end confdefs.h.  */
   4910 
   4911 int
   4912 main ()
   4913 {
   4914 
   4915   ;
   4916   return 0;
   4917 }
   4918 _ACEOF
   4919 if ac_fn_cxx_try_compile "$LINENO"; then :
   4920   ac_cv_prog_cxx_g=yes
   4921 else
   4922   CXXFLAGS=""
   4923       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4924 /* end confdefs.h.  */
   4925 
   4926 int
   4927 main ()
   4928 {
   4929 
   4930   ;
   4931   return 0;
   4932 }
   4933 _ACEOF
   4934 if ac_fn_cxx_try_compile "$LINENO"; then :
   4935 
   4936 else
   4937   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   4938 	 CXXFLAGS="-g"
   4939 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4940 /* end confdefs.h.  */
   4941 
   4942 int
   4943 main ()
   4944 {
   4945 
   4946   ;
   4947   return 0;
   4948 }
   4949 _ACEOF
   4950 if ac_fn_cxx_try_compile "$LINENO"; then :
   4951   ac_cv_prog_cxx_g=yes
   4952 fi
   4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4954 fi
   4955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4956 fi
   4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4958    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   4959 fi
   4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
   4961 $as_echo "$ac_cv_prog_cxx_g" >&6; }
   4962 if test "$ac_test_CXXFLAGS" = set; then
   4963   CXXFLAGS=$ac_save_CXXFLAGS
   4964 elif test $ac_cv_prog_cxx_g = yes; then
   4965   if test "$GXX" = yes; then
   4966     CXXFLAGS="-g -O2"
   4967   else
   4968     CXXFLAGS="-g"
   4969   fi
   4970 else
   4971   if test "$GXX" = yes; then
   4972     CXXFLAGS="-O2"
   4973   else
   4974     CXXFLAGS=
   4975   fi
   4976 fi
   4977 ac_ext=cpp
   4978 ac_cpp='$CXXCPP $CPPFLAGS'
   4979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   4982 
   4983 
   4984       ax_cxx_compile_cxx14_required=false
   4985   ac_ext=cpp
   4986 ac_cpp='$CXXCPP $CPPFLAGS'
   4987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   4990   ac_success=no
   4991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
   4992 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
   4993 if ${ax_cv_cxx_compile_cxx14+:} false; then :
   4994   $as_echo_n "(cached) " >&6
   4995 else
   4996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4997 /* end confdefs.h.  */
   4998 
   4999 
   5000 // If the compiler admits that it is not ready for C++11, why torture it?
   5001 // Hopefully, this will speed up the test.
   5002 
   5003 #ifndef __cplusplus
   5004 
   5005 #error "This is not a C++ compiler"
   5006 
   5007 #elif __cplusplus < 201103L
   5008 
   5009 #error "This is not a C++11 compiler"
   5010 
   5011 #else
   5012 
   5013 namespace cxx11
   5014 {
   5015 
   5016   namespace test_static_assert
   5017   {
   5018 
   5019     template <typename T>
   5020     struct check
   5021     {
   5022       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   5023     };
   5024 
   5025   }
   5026 
   5027   namespace test_final_override
   5028   {
   5029 
   5030     struct Base
   5031     {
   5032       virtual void f() {}
   5033     };
   5034 
   5035     struct Derived : public Base
   5036     {
   5037       virtual void f() override {}
   5038     };
   5039 
   5040   }
   5041 
   5042   namespace test_double_right_angle_brackets
   5043   {
   5044 
   5045     template < typename T >
   5046     struct check {};
   5047 
   5048     typedef check<void> single_type;
   5049     typedef check<check<void>> double_type;
   5050     typedef check<check<check<void>>> triple_type;
   5051     typedef check<check<check<check<void>>>> quadruple_type;
   5052 
   5053   }
   5054 
   5055   namespace test_decltype
   5056   {
   5057 
   5058     int
   5059     f()
   5060     {
   5061       int a = 1;
   5062       decltype(a) b = 2;
   5063       return a + b;
   5064     }
   5065 
   5066   }
   5067 
   5068   namespace test_type_deduction
   5069   {
   5070 
   5071     template < typename T1, typename T2 >
   5072     struct is_same
   5073     {
   5074       static const bool value = false;
   5075     };
   5076 
   5077     template < typename T >
   5078     struct is_same<T, T>
   5079     {
   5080       static const bool value = true;
   5081     };
   5082 
   5083     template < typename T1, typename T2 >
   5084     auto
   5085     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   5086     {
   5087       return a1 + a2;
   5088     }
   5089 
   5090     int
   5091     test(const int c, volatile int v)
   5092     {
   5093       static_assert(is_same<int, decltype(0)>::value == true, "");
   5094       static_assert(is_same<int, decltype(c)>::value == false, "");
   5095       static_assert(is_same<int, decltype(v)>::value == false, "");
   5096       auto ac = c;
   5097       auto av = v;
   5098       auto sumi = ac + av + 'x';
   5099       auto sumf = ac + av + 1.0;
   5100       static_assert(is_same<int, decltype(ac)>::value == true, "");
   5101       static_assert(is_same<int, decltype(av)>::value == true, "");
   5102       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   5103       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   5104       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   5105       return (sumf > 0.0) ? sumi : add(c, v);
   5106     }
   5107 
   5108   }
   5109 
   5110   namespace test_noexcept
   5111   {
   5112 
   5113     int f() { return 0; }
   5114     int g() noexcept { return 0; }
   5115 
   5116     static_assert(noexcept(f()) == false, "");
   5117     static_assert(noexcept(g()) == true, "");
   5118 
   5119   }
   5120 
   5121   namespace test_constexpr
   5122   {
   5123 
   5124     template < typename CharT >
   5125     unsigned long constexpr
   5126     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   5127     {
   5128       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   5129     }
   5130 
   5131     template < typename CharT >
   5132     unsigned long constexpr
   5133     strlen_c(const CharT *const s) noexcept
   5134     {
   5135       return strlen_c_r(s, 0UL);
   5136     }
   5137 
   5138     static_assert(strlen_c("") == 0UL, "");
   5139     static_assert(strlen_c("1") == 1UL, "");
   5140     static_assert(strlen_c("example") == 7UL, "");
   5141     static_assert(strlen_c("another\0example") == 7UL, "");
   5142 
   5143   }
   5144 
   5145   namespace test_rvalue_references
   5146   {
   5147 
   5148     template < int N >
   5149     struct answer
   5150     {
   5151       static constexpr int value = N;
   5152     };
   5153 
   5154     answer<1> f(int&)       { return answer<1>(); }
   5155     answer<2> f(const int&) { return answer<2>(); }
   5156     answer<3> f(int&&)      { return answer<3>(); }
   5157 
   5158     void
   5159     test()
   5160     {
   5161       int i = 0;
   5162       const int c = 0;
   5163       static_assert(decltype(f(i))::value == 1, "");
   5164       static_assert(decltype(f(c))::value == 2, "");
   5165       static_assert(decltype(f(0))::value == 3, "");
   5166     }
   5167 
   5168   }
   5169 
   5170   namespace test_uniform_initialization
   5171   {
   5172 
   5173     struct test
   5174     {
   5175       static const int zero {};
   5176       static const int one {1};
   5177     };
   5178 
   5179     static_assert(test::zero == 0, "");
   5180     static_assert(test::one == 1, "");
   5181 
   5182   }
   5183 
   5184   namespace test_lambdas
   5185   {
   5186 
   5187     void
   5188     test1()
   5189     {
   5190       auto lambda1 = [](){};
   5191       auto lambda2 = lambda1;
   5192       lambda1();
   5193       lambda2();
   5194     }
   5195 
   5196     int
   5197     test2()
   5198     {
   5199       auto a = [](int i, int j){ return i + j; }(1, 2);
   5200       auto b = []() -> int { return '0'; }();
   5201       auto c = [=](){ return a + b; }();
   5202       auto d = [&](){ return c; }();
   5203       auto e = [a, &b](int x) mutable {
   5204         const auto identity = [](int y){ return y; };
   5205         for (auto i = 0; i < a; ++i)
   5206           a += b--;
   5207         return x + identity(a + b);
   5208       }(0);
   5209       return a + b + c + d + e;
   5210     }
   5211 
   5212     int
   5213     test3()
   5214     {
   5215       const auto nullary = [](){ return 0; };
   5216       const auto unary = [](int x){ return x; };
   5217       using nullary_t = decltype(nullary);
   5218       using unary_t = decltype(unary);
   5219       const auto higher1st = [](nullary_t f){ return f(); };
   5220       const auto higher2nd = [unary](nullary_t f1){
   5221         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   5222       };
   5223       return higher1st(nullary) + higher2nd(nullary)(unary);
   5224     }
   5225 
   5226   }
   5227 
   5228   namespace test_variadic_templates
   5229   {
   5230 
   5231     template <int...>
   5232     struct sum;
   5233 
   5234     template <int N0, int... N1toN>
   5235     struct sum<N0, N1toN...>
   5236     {
   5237       static constexpr auto value = N0 + sum<N1toN...>::value;
   5238     };
   5239 
   5240     template <>
   5241     struct sum<>
   5242     {
   5243       static constexpr auto value = 0;
   5244     };
   5245 
   5246     static_assert(sum<>::value == 0, "");
   5247     static_assert(sum<1>::value == 1, "");
   5248     static_assert(sum<23>::value == 23, "");
   5249     static_assert(sum<1, 2>::value == 3, "");
   5250     static_assert(sum<5, 5, 11>::value == 21, "");
   5251     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   5252 
   5253   }
   5254 
   5255   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   5256   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   5257   // because of this.
   5258   namespace test_template_alias_sfinae
   5259   {
   5260 
   5261     struct foo {};
   5262 
   5263     template<typename T>
   5264     using member = typename T::member_type;
   5265 
   5266     template<typename T>
   5267     void func(...) {}
   5268 
   5269     template<typename T>
   5270     void func(member<T>*) {}
   5271 
   5272     void test();
   5273 
   5274     void test() { func<foo>(0); }
   5275 
   5276   }
   5277 
   5278 }  // namespace cxx11
   5279 
   5280 #endif  // __cplusplus >= 201103L
   5281 
   5282 
   5283 
   5284 
   5285 // If the compiler admits that it is not ready for C++14, why torture it?
   5286 // Hopefully, this will speed up the test.
   5287 
   5288 #ifndef __cplusplus
   5289 
   5290 #error "This is not a C++ compiler"
   5291 
   5292 #elif __cplusplus < 201402L
   5293 
   5294 #error "This is not a C++14 compiler"
   5295 
   5296 #else
   5297 
   5298 namespace cxx14
   5299 {
   5300 
   5301   namespace test_polymorphic_lambdas
   5302   {
   5303 
   5304     int
   5305     test()
   5306     {
   5307       const auto lambda = [](auto&&... args){
   5308         const auto istiny = [](auto x){
   5309           return (sizeof(x) == 1UL) ? 1 : 0;
   5310         };
   5311         const int aretiny[] = { istiny(args)... };
   5312         return aretiny[0];
   5313       };
   5314       return lambda(1, 1L, 1.0f, '1');
   5315     }
   5316 
   5317   }
   5318 
   5319   namespace test_binary_literals
   5320   {
   5321 
   5322     constexpr auto ivii = 0b0000000000101010;
   5323     static_assert(ivii == 42, "wrong value");
   5324 
   5325   }
   5326 
   5327   namespace test_generalized_constexpr
   5328   {
   5329 
   5330     template < typename CharT >
   5331     constexpr unsigned long
   5332     strlen_c(const CharT *const s) noexcept
   5333     {
   5334       auto length = 0UL;
   5335       for (auto p = s; *p; ++p)
   5336         ++length;
   5337       return length;
   5338     }
   5339 
   5340     static_assert(strlen_c("") == 0UL, "");
   5341     static_assert(strlen_c("x") == 1UL, "");
   5342     static_assert(strlen_c("test") == 4UL, "");
   5343     static_assert(strlen_c("another\0test") == 7UL, "");
   5344 
   5345   }
   5346 
   5347   namespace test_lambda_init_capture
   5348   {
   5349 
   5350     int
   5351     test()
   5352     {
   5353       auto x = 0;
   5354       const auto lambda1 = [a = x](int b){ return a + b; };
   5355       const auto lambda2 = [a = lambda1(x)](){ return a; };
   5356       return lambda2();
   5357     }
   5358 
   5359   }
   5360 
   5361   namespace test_digit_seperators
   5362   {
   5363 
   5364     constexpr auto ten_million = 100'000'000;
   5365     static_assert(ten_million == 100000000, "");
   5366 
   5367   }
   5368 
   5369   namespace test_return_type_deduction
   5370   {
   5371 
   5372     auto f(int& x) { return x; }
   5373     decltype(auto) g(int& x) { return x; }
   5374 
   5375     template < typename T1, typename T2 >
   5376     struct is_same
   5377     {
   5378       static constexpr auto value = false;
   5379     };
   5380 
   5381     template < typename T >
   5382     struct is_same<T, T>
   5383     {
   5384       static constexpr auto value = true;
   5385     };
   5386 
   5387     int
   5388     test()
   5389     {
   5390       auto x = 0;
   5391       static_assert(is_same<int, decltype(f(x))>::value, "");
   5392       static_assert(is_same<int&, decltype(g(x))>::value, "");
   5393       return x;
   5394     }
   5395 
   5396   }
   5397 
   5398 }  // namespace cxx14
   5399 
   5400 #endif  // __cplusplus >= 201402L
   5401 
   5402 
   5403 
   5404 _ACEOF
   5405 if ac_fn_cxx_try_compile "$LINENO"; then :
   5406   ax_cv_cxx_compile_cxx14=yes
   5407 else
   5408   ax_cv_cxx_compile_cxx14=no
   5409 fi
   5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5411 fi
   5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
   5413 $as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
   5414   if test x$ax_cv_cxx_compile_cxx14 = xyes; then
   5415     ac_success=yes
   5416   fi
   5417 
   5418 
   5419 
   5420     if test x$ac_success = xno; then
   5421                 for switch in -std=c++14 -std=c++0x +std=c++14 "-h std=c++14"; do
   5422       cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
   5423       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
   5424 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
   5425 if eval \${$cachevar+:} false; then :
   5426   $as_echo_n "(cached) " >&6
   5427 else
   5428   ac_save_CXX="$CXX"
   5429          CXX="$CXX $switch"
   5430          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5431 /* end confdefs.h.  */
   5432 
   5433 
   5434 // If the compiler admits that it is not ready for C++11, why torture it?
   5435 // Hopefully, this will speed up the test.
   5436 
   5437 #ifndef __cplusplus
   5438 
   5439 #error "This is not a C++ compiler"
   5440 
   5441 #elif __cplusplus < 201103L
   5442 
   5443 #error "This is not a C++11 compiler"
   5444 
   5445 #else
   5446 
   5447 namespace cxx11
   5448 {
   5449 
   5450   namespace test_static_assert
   5451   {
   5452 
   5453     template <typename T>
   5454     struct check
   5455     {
   5456       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   5457     };
   5458 
   5459   }
   5460 
   5461   namespace test_final_override
   5462   {
   5463 
   5464     struct Base
   5465     {
   5466       virtual void f() {}
   5467     };
   5468 
   5469     struct Derived : public Base
   5470     {
   5471       virtual void f() override {}
   5472     };
   5473 
   5474   }
   5475 
   5476   namespace test_double_right_angle_brackets
   5477   {
   5478 
   5479     template < typename T >
   5480     struct check {};
   5481 
   5482     typedef check<void> single_type;
   5483     typedef check<check<void>> double_type;
   5484     typedef check<check<check<void>>> triple_type;
   5485     typedef check<check<check<check<void>>>> quadruple_type;
   5486 
   5487   }
   5488 
   5489   namespace test_decltype
   5490   {
   5491 
   5492     int
   5493     f()
   5494     {
   5495       int a = 1;
   5496       decltype(a) b = 2;
   5497       return a + b;
   5498     }
   5499 
   5500   }
   5501 
   5502   namespace test_type_deduction
   5503   {
   5504 
   5505     template < typename T1, typename T2 >
   5506     struct is_same
   5507     {
   5508       static const bool value = false;
   5509     };
   5510 
   5511     template < typename T >
   5512     struct is_same<T, T>
   5513     {
   5514       static const bool value = true;
   5515     };
   5516 
   5517     template < typename T1, typename T2 >
   5518     auto
   5519     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   5520     {
   5521       return a1 + a2;
   5522     }
   5523 
   5524     int
   5525     test(const int c, volatile int v)
   5526     {
   5527       static_assert(is_same<int, decltype(0)>::value == true, "");
   5528       static_assert(is_same<int, decltype(c)>::value == false, "");
   5529       static_assert(is_same<int, decltype(v)>::value == false, "");
   5530       auto ac = c;
   5531       auto av = v;
   5532       auto sumi = ac + av + 'x';
   5533       auto sumf = ac + av + 1.0;
   5534       static_assert(is_same<int, decltype(ac)>::value == true, "");
   5535       static_assert(is_same<int, decltype(av)>::value == true, "");
   5536       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   5537       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   5538       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   5539       return (sumf > 0.0) ? sumi : add(c, v);
   5540     }
   5541 
   5542   }
   5543 
   5544   namespace test_noexcept
   5545   {
   5546 
   5547     int f() { return 0; }
   5548     int g() noexcept { return 0; }
   5549 
   5550     static_assert(noexcept(f()) == false, "");
   5551     static_assert(noexcept(g()) == true, "");
   5552 
   5553   }
   5554 
   5555   namespace test_constexpr
   5556   {
   5557 
   5558     template < typename CharT >
   5559     unsigned long constexpr
   5560     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   5561     {
   5562       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   5563     }
   5564 
   5565     template < typename CharT >
   5566     unsigned long constexpr
   5567     strlen_c(const CharT *const s) noexcept
   5568     {
   5569       return strlen_c_r(s, 0UL);
   5570     }
   5571 
   5572     static_assert(strlen_c("") == 0UL, "");
   5573     static_assert(strlen_c("1") == 1UL, "");
   5574     static_assert(strlen_c("example") == 7UL, "");
   5575     static_assert(strlen_c("another\0example") == 7UL, "");
   5576 
   5577   }
   5578 
   5579   namespace test_rvalue_references
   5580   {
   5581 
   5582     template < int N >
   5583     struct answer
   5584     {
   5585       static constexpr int value = N;
   5586     };
   5587 
   5588     answer<1> f(int&)       { return answer<1>(); }
   5589     answer<2> f(const int&) { return answer<2>(); }
   5590     answer<3> f(int&&)      { return answer<3>(); }
   5591 
   5592     void
   5593     test()
   5594     {
   5595       int i = 0;
   5596       const int c = 0;
   5597       static_assert(decltype(f(i))::value == 1, "");
   5598       static_assert(decltype(f(c))::value == 2, "");
   5599       static_assert(decltype(f(0))::value == 3, "");
   5600     }
   5601 
   5602   }
   5603 
   5604   namespace test_uniform_initialization
   5605   {
   5606 
   5607     struct test
   5608     {
   5609       static const int zero {};
   5610       static const int one {1};
   5611     };
   5612 
   5613     static_assert(test::zero == 0, "");
   5614     static_assert(test::one == 1, "");
   5615 
   5616   }
   5617 
   5618   namespace test_lambdas
   5619   {
   5620 
   5621     void
   5622     test1()
   5623     {
   5624       auto lambda1 = [](){};
   5625       auto lambda2 = lambda1;
   5626       lambda1();
   5627       lambda2();
   5628     }
   5629 
   5630     int
   5631     test2()
   5632     {
   5633       auto a = [](int i, int j){ return i + j; }(1, 2);
   5634       auto b = []() -> int { return '0'; }();
   5635       auto c = [=](){ return a + b; }();
   5636       auto d = [&](){ return c; }();
   5637       auto e = [a, &b](int x) mutable {
   5638         const auto identity = [](int y){ return y; };
   5639         for (auto i = 0; i < a; ++i)
   5640           a += b--;
   5641         return x + identity(a + b);
   5642       }(0);
   5643       return a + b + c + d + e;
   5644     }
   5645 
   5646     int
   5647     test3()
   5648     {
   5649       const auto nullary = [](){ return 0; };
   5650       const auto unary = [](int x){ return x; };
   5651       using nullary_t = decltype(nullary);
   5652       using unary_t = decltype(unary);
   5653       const auto higher1st = [](nullary_t f){ return f(); };
   5654       const auto higher2nd = [unary](nullary_t f1){
   5655         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   5656       };
   5657       return higher1st(nullary) + higher2nd(nullary)(unary);
   5658     }
   5659 
   5660   }
   5661 
   5662   namespace test_variadic_templates
   5663   {
   5664 
   5665     template <int...>
   5666     struct sum;
   5667 
   5668     template <int N0, int... N1toN>
   5669     struct sum<N0, N1toN...>
   5670     {
   5671       static constexpr auto value = N0 + sum<N1toN...>::value;
   5672     };
   5673 
   5674     template <>
   5675     struct sum<>
   5676     {
   5677       static constexpr auto value = 0;
   5678     };
   5679 
   5680     static_assert(sum<>::value == 0, "");
   5681     static_assert(sum<1>::value == 1, "");
   5682     static_assert(sum<23>::value == 23, "");
   5683     static_assert(sum<1, 2>::value == 3, "");
   5684     static_assert(sum<5, 5, 11>::value == 21, "");
   5685     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   5686 
   5687   }
   5688 
   5689   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   5690   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   5691   // because of this.
   5692   namespace test_template_alias_sfinae
   5693   {
   5694 
   5695     struct foo {};
   5696 
   5697     template<typename T>
   5698     using member = typename T::member_type;
   5699 
   5700     template<typename T>
   5701     void func(...) {}
   5702 
   5703     template<typename T>
   5704     void func(member<T>*) {}
   5705 
   5706     void test();
   5707 
   5708     void test() { func<foo>(0); }
   5709 
   5710   }
   5711 
   5712 }  // namespace cxx11
   5713 
   5714 #endif  // __cplusplus >= 201103L
   5715 
   5716 
   5717 
   5718 
   5719 // If the compiler admits that it is not ready for C++14, why torture it?
   5720 // Hopefully, this will speed up the test.
   5721 
   5722 #ifndef __cplusplus
   5723 
   5724 #error "This is not a C++ compiler"
   5725 
   5726 #elif __cplusplus < 201402L
   5727 
   5728 #error "This is not a C++14 compiler"
   5729 
   5730 #else
   5731 
   5732 namespace cxx14
   5733 {
   5734 
   5735   namespace test_polymorphic_lambdas
   5736   {
   5737 
   5738     int
   5739     test()
   5740     {
   5741       const auto lambda = [](auto&&... args){
   5742         const auto istiny = [](auto x){
   5743           return (sizeof(x) == 1UL) ? 1 : 0;
   5744         };
   5745         const int aretiny[] = { istiny(args)... };
   5746         return aretiny[0];
   5747       };
   5748       return lambda(1, 1L, 1.0f, '1');
   5749     }
   5750 
   5751   }
   5752 
   5753   namespace test_binary_literals
   5754   {
   5755 
   5756     constexpr auto ivii = 0b0000000000101010;
   5757     static_assert(ivii == 42, "wrong value");
   5758 
   5759   }
   5760 
   5761   namespace test_generalized_constexpr
   5762   {
   5763 
   5764     template < typename CharT >
   5765     constexpr unsigned long
   5766     strlen_c(const CharT *const s) noexcept
   5767     {
   5768       auto length = 0UL;
   5769       for (auto p = s; *p; ++p)
   5770         ++length;
   5771       return length;
   5772     }
   5773 
   5774     static_assert(strlen_c("") == 0UL, "");
   5775     static_assert(strlen_c("x") == 1UL, "");
   5776     static_assert(strlen_c("test") == 4UL, "");
   5777     static_assert(strlen_c("another\0test") == 7UL, "");
   5778 
   5779   }
   5780 
   5781   namespace test_lambda_init_capture
   5782   {
   5783 
   5784     int
   5785     test()
   5786     {
   5787       auto x = 0;
   5788       const auto lambda1 = [a = x](int b){ return a + b; };
   5789       const auto lambda2 = [a = lambda1(x)](){ return a; };
   5790       return lambda2();
   5791     }
   5792 
   5793   }
   5794 
   5795   namespace test_digit_seperators
   5796   {
   5797 
   5798     constexpr auto ten_million = 100'000'000;
   5799     static_assert(ten_million == 100000000, "");
   5800 
   5801   }
   5802 
   5803   namespace test_return_type_deduction
   5804   {
   5805 
   5806     auto f(int& x) { return x; }
   5807     decltype(auto) g(int& x) { return x; }
   5808 
   5809     template < typename T1, typename T2 >
   5810     struct is_same
   5811     {
   5812       static constexpr auto value = false;
   5813     };
   5814 
   5815     template < typename T >
   5816     struct is_same<T, T>
   5817     {
   5818       static constexpr auto value = true;
   5819     };
   5820 
   5821     int
   5822     test()
   5823     {
   5824       auto x = 0;
   5825       static_assert(is_same<int, decltype(f(x))>::value, "");
   5826       static_assert(is_same<int&, decltype(g(x))>::value, "");
   5827       return x;
   5828     }
   5829 
   5830   }
   5831 
   5832 }  // namespace cxx14
   5833 
   5834 #endif  // __cplusplus >= 201402L
   5835 
   5836 
   5837 
   5838 _ACEOF
   5839 if ac_fn_cxx_try_compile "$LINENO"; then :
   5840   eval $cachevar=yes
   5841 else
   5842   eval $cachevar=no
   5843 fi
   5844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5845          CXX="$ac_save_CXX"
   5846 fi
   5847 eval ac_res=\$$cachevar
   5848 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   5849 $as_echo "$ac_res" >&6; }
   5850       if eval test x\$$cachevar = xyes; then
   5851         CXX="$CXX $switch"
   5852         if test -n "$CXXCPP" ; then
   5853           CXXCPP="$CXXCPP $switch"
   5854         fi
   5855         ac_success=yes
   5856         break
   5857       fi
   5858     done
   5859   fi
   5860   ac_ext=c
   5861 ac_cpp='$CPP $CPPFLAGS'
   5862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5865 
   5866   if test x$ax_cxx_compile_cxx14_required = xtrue; then
   5867     if test x$ac_success = xno; then
   5868       as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
   5869     fi
   5870   fi
   5871   if test x$ac_success = xno; then
   5872     HAVE_CXX14=0
   5873     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
   5874 $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
   5875   else
   5876     HAVE_CXX14=1
   5877 
   5878 $as_echo "#define HAVE_CXX14 1" >>confdefs.h
   5879 
   5880   fi
   5881 
   5882 
   5883   if test "x${HAVE_CXX14}" = "x1" ; then
   5884 
   5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
   5886 $as_echo_n "checking whether compiler supports -Wall... " >&6; }
   5887 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
   5888 T_APPEND_V=-Wall
   5889   if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   5890   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
   5891 else
   5892   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
   5893 fi
   5894 
   5895 
   5896 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   5897   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   5898 else
   5899   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   5900 fi
   5901 
   5902 ac_ext=cpp
   5903 ac_cpp='$CXXCPP $CPPFLAGS'
   5904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5907 
   5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5909 /* end confdefs.h.  */
   5910 
   5911 
   5912 int
   5913 main ()
   5914 {
   5915 
   5916     return 0;
   5917 
   5918   ;
   5919   return 0;
   5920 }
   5921 _ACEOF
   5922 if ac_fn_cxx_try_compile "$LINENO"; then :
   5923   je_cv_cxxflags_added=-Wall
   5924               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5925 $as_echo "yes" >&6; }
   5926 else
   5927   je_cv_cxxflags_added=
   5928               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5929 $as_echo "no" >&6; }
   5930               CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
   5931 
   5932 fi
   5933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5934 ac_ext=c
   5935 ac_cpp='$CPP $CPPFLAGS'
   5936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5939 
   5940 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   5941   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   5942 else
   5943   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   5944 fi
   5945 
   5946 
   5947 
   5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
   5949 $as_echo_n "checking whether compiler supports -g3... " >&6; }
   5950 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
   5951 T_APPEND_V=-g3
   5952   if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   5953   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
   5954 else
   5955   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
   5956 fi
   5957 
   5958 
   5959 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   5960   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   5961 else
   5962   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   5963 fi
   5964 
   5965 ac_ext=cpp
   5966 ac_cpp='$CXXCPP $CPPFLAGS'
   5967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5970 
   5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5972 /* end confdefs.h.  */
   5973 
   5974 
   5975 int
   5976 main ()
   5977 {
   5978 
   5979     return 0;
   5980 
   5981   ;
   5982   return 0;
   5983 }
   5984 _ACEOF
   5985 if ac_fn_cxx_try_compile "$LINENO"; then :
   5986   je_cv_cxxflags_added=-g3
   5987               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5988 $as_echo "yes" >&6; }
   5989 else
   5990   je_cv_cxxflags_added=
   5991               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5992 $as_echo "no" >&6; }
   5993               CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
   5994 
   5995 fi
   5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5997 ac_ext=c
   5998 ac_cpp='$CPP $CPPFLAGS'
   5999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6002 
   6003 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   6004   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   6005 else
   6006   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   6007 fi
   6008 
   6009 
   6010 
   6011     SAVED_LIBS="${LIBS}"
   6012     T_APPEND_V=-lstdc++
   6013   if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   6014   LIBS="${LIBS}${T_APPEND_V}"
   6015 else
   6016   LIBS="${LIBS} ${T_APPEND_V}"
   6017 fi
   6018 
   6019 
   6020 
   6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libstdc++ linkage is compilable" >&5
   6022 $as_echo_n "checking whether libstdc++ linkage is compilable... " >&6; }
   6023 if ${je_cv_libstdcxx+:} false; then :
   6024   $as_echo_n "(cached) " >&6
   6025 else
   6026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6027 /* end confdefs.h.  */
   6028 
   6029 #include <stdlib.h>
   6030 
   6031 int
   6032 main ()
   6033 {
   6034 
   6035 	int *arr = (int *)malloc(sizeof(int) * 42);
   6036 	if (arr == NULL)
   6037 		return 1;
   6038 
   6039   ;
   6040   return 0;
   6041 }
   6042 _ACEOF
   6043 if ac_fn_c_try_link "$LINENO"; then :
   6044   je_cv_libstdcxx=yes
   6045 else
   6046   je_cv_libstdcxx=no
   6047 fi
   6048 rm -f core conftest.err conftest.$ac_objext \
   6049     conftest$ac_exeext conftest.$ac_ext
   6050 fi
   6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_libstdcxx" >&5
   6052 $as_echo "$je_cv_libstdcxx" >&6; }
   6053 
   6054     if test "x${je_cv_libstdcxx}" = "xno" ; then
   6055       LIBS="${SAVED_LIBS}"
   6056     fi
   6057   else
   6058     enable_cxx="0"
   6059   fi
   6060 fi
   6061 
   6062 
   6063 
   6064 
   6065 
   6066 
   6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   6068 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   6069 if ${ac_cv_path_GREP+:} false; then :
   6070   $as_echo_n "(cached) " >&6
   6071 else
   6072   if test -z "$GREP"; then
   6073   ac_path_GREP_found=false
   6074   # Loop through the user's path and test for each of PROGNAME-LIST
   6075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6076 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   6077 do
   6078   IFS=$as_save_IFS
   6079   test -z "$as_dir" && as_dir=.
   6080     for ac_prog in grep ggrep; do
   6081     for ac_exec_ext in '' $ac_executable_extensions; do
   6082       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   6083       as_fn_executable_p "$ac_path_GREP" || continue
   6084 # Check for GNU ac_path_GREP and select it if it is found.
   6085   # Check for GNU $ac_path_GREP
   6086 case `"$ac_path_GREP" --version 2>&1` in
   6087 *GNU*)
   6088   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   6089 *)
   6090   ac_count=0
   6091   $as_echo_n 0123456789 >"conftest.in"
   6092   while :
   6093   do
   6094     cat "conftest.in" "conftest.in" >"conftest.tmp"
   6095     mv "conftest.tmp" "conftest.in"
   6096     cp "conftest.in" "conftest.nl"
   6097     $as_echo 'GREP' >> "conftest.nl"
   6098     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   6099     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   6100     as_fn_arith $ac_count + 1 && ac_count=$as_val
   6101     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   6102       # Best one so far, save it but keep looking for a better one
   6103       ac_cv_path_GREP="$ac_path_GREP"
   6104       ac_path_GREP_max=$ac_count
   6105     fi
   6106     # 10*(2^10) chars as input seems more than enough
   6107     test $ac_count -gt 10 && break
   6108   done
   6109   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   6110 esac
   6111 
   6112       $ac_path_GREP_found && break 3
   6113     done
   6114   done
   6115   done
   6116 IFS=$as_save_IFS
   6117   if test -z "$ac_cv_path_GREP"; then
   6118     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   6119   fi
   6120 else
   6121   ac_cv_path_GREP=$GREP
   6122 fi
   6123 
   6124 fi
   6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   6126 $as_echo "$ac_cv_path_GREP" >&6; }
   6127  GREP="$ac_cv_path_GREP"
   6128 
   6129 
   6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   6131 $as_echo_n "checking for egrep... " >&6; }
   6132 if ${ac_cv_path_EGREP+:} false; then :
   6133   $as_echo_n "(cached) " >&6
   6134 else
   6135   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   6136    then ac_cv_path_EGREP="$GREP -E"
   6137    else
   6138      if test -z "$EGREP"; then
   6139   ac_path_EGREP_found=false
   6140   # Loop through the user's path and test for each of PROGNAME-LIST
   6141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6142 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   6143 do
   6144   IFS=$as_save_IFS
   6145   test -z "$as_dir" && as_dir=.
   6146     for ac_prog in egrep; do
   6147     for ac_exec_ext in '' $ac_executable_extensions; do
   6148       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   6149       as_fn_executable_p "$ac_path_EGREP" || continue
   6150 # Check for GNU ac_path_EGREP and select it if it is found.
   6151   # Check for GNU $ac_path_EGREP
   6152 case `"$ac_path_EGREP" --version 2>&1` in
   6153 *GNU*)
   6154   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   6155 *)
   6156   ac_count=0
   6157   $as_echo_n 0123456789 >"conftest.in"
   6158   while :
   6159   do
   6160     cat "conftest.in" "conftest.in" >"conftest.tmp"
   6161     mv "conftest.tmp" "conftest.in"
   6162     cp "conftest.in" "conftest.nl"
   6163     $as_echo 'EGREP' >> "conftest.nl"
   6164     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   6165     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   6166     as_fn_arith $ac_count + 1 && ac_count=$as_val
   6167     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   6168       # Best one so far, save it but keep looking for a better one
   6169       ac_cv_path_EGREP="$ac_path_EGREP"
   6170       ac_path_EGREP_max=$ac_count
   6171     fi
   6172     # 10*(2^10) chars as input seems more than enough
   6173     test $ac_count -gt 10 && break
   6174   done
   6175   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   6176 esac
   6177 
   6178       $ac_path_EGREP_found && break 3
   6179     done
   6180   done
   6181   done
   6182 IFS=$as_save_IFS
   6183   if test -z "$ac_cv_path_EGREP"; then
   6184     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   6185   fi
   6186 else
   6187   ac_cv_path_EGREP=$EGREP
   6188 fi
   6189 
   6190    fi
   6191 fi
   6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   6193 $as_echo "$ac_cv_path_EGREP" >&6; }
   6194  EGREP="$ac_cv_path_EGREP"
   6195 
   6196 
   6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   6198 $as_echo_n "checking for ANSI C header files... " >&6; }
   6199 if ${ac_cv_header_stdc+:} false; then :
   6200   $as_echo_n "(cached) " >&6
   6201 else
   6202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6203 /* end confdefs.h.  */
   6204 #include <stdlib.h>
   6205 #include <stdarg.h>
   6206 #include <string.h>
   6207 #include <float.h>
   6208 
   6209 int
   6210 main ()
   6211 {
   6212 
   6213   ;
   6214   return 0;
   6215 }
   6216 _ACEOF
   6217 if ac_fn_c_try_compile "$LINENO"; then :
   6218   ac_cv_header_stdc=yes
   6219 else
   6220   ac_cv_header_stdc=no
   6221 fi
   6222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6223 
   6224 if test $ac_cv_header_stdc = yes; then
   6225   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   6226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6227 /* end confdefs.h.  */
   6228 #include <string.h>
   6229 
   6230 _ACEOF
   6231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6232   $EGREP "memchr" >/dev/null 2>&1; then :
   6233 
   6234 else
   6235   ac_cv_header_stdc=no
   6236 fi
   6237 rm -f conftest*
   6238 
   6239 fi
   6240 
   6241 if test $ac_cv_header_stdc = yes; then
   6242   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   6243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6244 /* end confdefs.h.  */
   6245 #include <stdlib.h>
   6246 
   6247 _ACEOF
   6248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6249   $EGREP "free" >/dev/null 2>&1; then :
   6250 
   6251 else
   6252   ac_cv_header_stdc=no
   6253 fi
   6254 rm -f conftest*
   6255 
   6256 fi
   6257 
   6258 if test $ac_cv_header_stdc = yes; then
   6259   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   6260   if test "$cross_compiling" = yes; then :
   6261   :
   6262 else
   6263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6264 /* end confdefs.h.  */
   6265 #include <ctype.h>
   6266 #include <stdlib.h>
   6267 #if ((' ' & 0x0FF) == 0x020)
   6268 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   6269 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   6270 #else
   6271 # define ISLOWER(c) \
   6272 		   (('a' <= (c) && (c) <= 'i') \
   6273 		     || ('j' <= (c) && (c) <= 'r') \
   6274 		     || ('s' <= (c) && (c) <= 'z'))
   6275 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   6276 #endif
   6277 
   6278 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   6279 int
   6280 main ()
   6281 {
   6282   int i;
   6283   for (i = 0; i < 256; i++)
   6284     if (XOR (islower (i), ISLOWER (i))
   6285 	|| toupper (i) != TOUPPER (i))
   6286       return 2;
   6287   return 0;
   6288 }
   6289 _ACEOF
   6290 if ac_fn_c_try_run "$LINENO"; then :
   6291 
   6292 else
   6293   ac_cv_header_stdc=no
   6294 fi
   6295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   6296   conftest.$ac_objext conftest.beam conftest.$ac_ext
   6297 fi
   6298 
   6299 fi
   6300 fi
   6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   6302 $as_echo "$ac_cv_header_stdc" >&6; }
   6303 if test $ac_cv_header_stdc = yes; then
   6304 
   6305 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   6306 
   6307 fi
   6308 
   6309 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   6310 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   6311 		  inttypes.h stdint.h unistd.h
   6312 do :
   6313   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6314 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   6315 "
   6316 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   6317   cat >>confdefs.h <<_ACEOF
   6318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6319 _ACEOF
   6320 
   6321 fi
   6322 
   6323 done
   6324 
   6325 
   6326  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   6327 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   6328 if ${ac_cv_c_bigendian+:} false; then :
   6329   $as_echo_n "(cached) " >&6
   6330 else
   6331   ac_cv_c_bigendian=unknown
   6332     # See if we're dealing with a universal compiler.
   6333     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6334 /* end confdefs.h.  */
   6335 #ifndef __APPLE_CC__
   6336 	       not a universal capable compiler
   6337 	     #endif
   6338 	     typedef int dummy;
   6339 
   6340 _ACEOF
   6341 if ac_fn_c_try_compile "$LINENO"; then :
   6342 
   6343 	# Check for potential -arch flags.  It is not universal unless
   6344 	# there are at least two -arch flags with different values.
   6345 	ac_arch=
   6346 	ac_prev=
   6347 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   6348 	 if test -n "$ac_prev"; then
   6349 	   case $ac_word in
   6350 	     i?86 | x86_64 | ppc | ppc64)
   6351 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   6352 		 ac_arch=$ac_word
   6353 	       else
   6354 		 ac_cv_c_bigendian=universal
   6355 		 break
   6356 	       fi
   6357 	       ;;
   6358 	   esac
   6359 	   ac_prev=
   6360 	 elif test "x$ac_word" = "x-arch"; then
   6361 	   ac_prev=arch
   6362 	 fi
   6363        done
   6364 fi
   6365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6366     if test $ac_cv_c_bigendian = unknown; then
   6367       # See if sys/param.h defines the BYTE_ORDER macro.
   6368       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6369 /* end confdefs.h.  */
   6370 #include <sys/types.h>
   6371 	     #include <sys/param.h>
   6372 
   6373 int
   6374 main ()
   6375 {
   6376 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   6377 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   6378 		     && LITTLE_ENDIAN)
   6379 	      bogus endian macros
   6380 	     #endif
   6381 
   6382   ;
   6383   return 0;
   6384 }
   6385 _ACEOF
   6386 if ac_fn_c_try_compile "$LINENO"; then :
   6387   # It does; now see whether it defined to BIG_ENDIAN or not.
   6388 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6389 /* end confdefs.h.  */
   6390 #include <sys/types.h>
   6391 		#include <sys/param.h>
   6392 
   6393 int
   6394 main ()
   6395 {
   6396 #if BYTE_ORDER != BIG_ENDIAN
   6397 		 not big endian
   6398 		#endif
   6399 
   6400   ;
   6401   return 0;
   6402 }
   6403 _ACEOF
   6404 if ac_fn_c_try_compile "$LINENO"; then :
   6405   ac_cv_c_bigendian=yes
   6406 else
   6407   ac_cv_c_bigendian=no
   6408 fi
   6409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6410 fi
   6411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6412     fi
   6413     if test $ac_cv_c_bigendian = unknown; then
   6414       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   6415       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6416 /* end confdefs.h.  */
   6417 #include <limits.h>
   6418 
   6419 int
   6420 main ()
   6421 {
   6422 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   6423 	      bogus endian macros
   6424 	     #endif
   6425 
   6426   ;
   6427   return 0;
   6428 }
   6429 _ACEOF
   6430 if ac_fn_c_try_compile "$LINENO"; then :
   6431   # It does; now see whether it defined to _BIG_ENDIAN or not.
   6432 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6433 /* end confdefs.h.  */
   6434 #include <limits.h>
   6435 
   6436 int
   6437 main ()
   6438 {
   6439 #ifndef _BIG_ENDIAN
   6440 		 not big endian
   6441 		#endif
   6442 
   6443   ;
   6444   return 0;
   6445 }
   6446 _ACEOF
   6447 if ac_fn_c_try_compile "$LINENO"; then :
   6448   ac_cv_c_bigendian=yes
   6449 else
   6450   ac_cv_c_bigendian=no
   6451 fi
   6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6453 fi
   6454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6455     fi
   6456     if test $ac_cv_c_bigendian = unknown; then
   6457       # Compile a test program.
   6458       if test "$cross_compiling" = yes; then :
   6459   # Try to guess by grepping values from an object file.
   6460 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6461 /* end confdefs.h.  */
   6462 short int ascii_mm[] =
   6463 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   6464 		short int ascii_ii[] =
   6465 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   6466 		int use_ascii (int i) {
   6467 		  return ascii_mm[i] + ascii_ii[i];
   6468 		}
   6469 		short int ebcdic_ii[] =
   6470 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   6471 		short int ebcdic_mm[] =
   6472 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   6473 		int use_ebcdic (int i) {
   6474 		  return ebcdic_mm[i] + ebcdic_ii[i];
   6475 		}
   6476 		extern int foo;
   6477 
   6478 int
   6479 main ()
   6480 {
   6481 return use_ascii (foo) == use_ebcdic (foo);
   6482   ;
   6483   return 0;
   6484 }
   6485 _ACEOF
   6486 if ac_fn_c_try_compile "$LINENO"; then :
   6487   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   6488 	      ac_cv_c_bigendian=yes
   6489 	    fi
   6490 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   6491 	      if test "$ac_cv_c_bigendian" = unknown; then
   6492 		ac_cv_c_bigendian=no
   6493 	      else
   6494 		# finding both strings is unlikely to happen, but who knows?
   6495 		ac_cv_c_bigendian=unknown
   6496 	      fi
   6497 	    fi
   6498 fi
   6499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6500 else
   6501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6502 /* end confdefs.h.  */
   6503 $ac_includes_default
   6504 int
   6505 main ()
   6506 {
   6507 
   6508 	     /* Are we little or big endian?  From Harbison&Steele.  */
   6509 	     union
   6510 	     {
   6511 	       long int l;
   6512 	       char c[sizeof (long int)];
   6513 	     } u;
   6514 	     u.l = 1;
   6515 	     return u.c[sizeof (long int) - 1] == 1;
   6516 
   6517   ;
   6518   return 0;
   6519 }
   6520 _ACEOF
   6521 if ac_fn_c_try_run "$LINENO"; then :
   6522   ac_cv_c_bigendian=no
   6523 else
   6524   ac_cv_c_bigendian=yes
   6525 fi
   6526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   6527   conftest.$ac_objext conftest.beam conftest.$ac_ext
   6528 fi
   6529 
   6530     fi
   6531 fi
   6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   6533 $as_echo "$ac_cv_c_bigendian" >&6; }
   6534  case $ac_cv_c_bigendian in #(
   6535    yes)
   6536      ac_cv_big_endian=1;; #(
   6537    no)
   6538      ac_cv_big_endian=0 ;; #(
   6539    universal)
   6540 
   6541 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   6542 
   6543      ;; #(
   6544    *)
   6545      as_fn_error $? "unknown endianness
   6546  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   6547  esac
   6548 
   6549 if test "x${ac_cv_big_endian}" = "x1" ; then
   6550   cat >>confdefs.h <<_ACEOF
   6551 #define JEMALLOC_BIG_ENDIAN
   6552 _ACEOF
   6553 
   6554 fi
   6555 
   6556 if test "x${je_cv_msvc}" = "xyes" -a "x${ac_cv_header_inttypes_h}" = "xno"; then
   6557   T_APPEND_V=-I${srcdir}/include/msvc_compat/C99
   6558   if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   6559   CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
   6560 else
   6561   CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
   6562 fi
   6563 
   6564 
   6565 fi
   6566 
   6567 if test "x${je_cv_msvc}" = "xyes" ; then
   6568   LG_SIZEOF_PTR=LG_SIZEOF_PTR_WIN
   6569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&5
   6570 $as_echo "Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&6; }
   6571 else
   6572   # The cast to long int works around a bug in the HP C Compiler
   6573 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   6574 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   6575 # This bug is HP SR number 8606223364.
   6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
   6577 $as_echo_n "checking size of void *... " >&6; }
   6578 if ${ac_cv_sizeof_void_p+:} false; then :
   6579   $as_echo_n "(cached) " >&6
   6580 else
   6581   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
   6582 
   6583 else
   6584   if test "$ac_cv_type_void_p" = yes; then
   6585      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   6587 as_fn_error 77 "cannot compute sizeof (void *)
   6588 See \`config.log' for more details" "$LINENO" 5; }
   6589    else
   6590      ac_cv_sizeof_void_p=0
   6591    fi
   6592 fi
   6593 
   6594 fi
   6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
   6596 $as_echo "$ac_cv_sizeof_void_p" >&6; }
   6597 
   6598 
   6599 
   6600 cat >>confdefs.h <<_ACEOF
   6601 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
   6602 _ACEOF
   6603 
   6604 
   6605   if test "x${ac_cv_sizeof_void_p}" = "x8" ; then
   6606     LG_SIZEOF_PTR=3
   6607   elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then
   6608     LG_SIZEOF_PTR=2
   6609   else
   6610     as_fn_error $? "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5
   6611   fi
   6612 fi
   6613 cat >>confdefs.h <<_ACEOF
   6614 #define LG_SIZEOF_PTR $LG_SIZEOF_PTR
   6615 _ACEOF
   6616 
   6617 
   6618 # The cast to long int works around a bug in the HP C Compiler
   6619 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   6620 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   6621 # This bug is HP SR number 8606223364.
   6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
   6623 $as_echo_n "checking size of int... " >&6; }
   6624 if ${ac_cv_sizeof_int+:} false; then :
   6625   $as_echo_n "(cached) " >&6
   6626 else
   6627   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
   6628 
   6629 else
   6630   if test "$ac_cv_type_int" = yes; then
   6631      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   6633 as_fn_error 77 "cannot compute sizeof (int)
   6634 See \`config.log' for more details" "$LINENO" 5; }
   6635    else
   6636      ac_cv_sizeof_int=0
   6637    fi
   6638 fi
   6639 
   6640 fi
   6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
   6642 $as_echo "$ac_cv_sizeof_int" >&6; }
   6643 
   6644 
   6645 
   6646 cat >>confdefs.h <<_ACEOF
   6647 #define SIZEOF_INT $ac_cv_sizeof_int
   6648 _ACEOF
   6649 
   6650 
   6651 if test "x${ac_cv_sizeof_int}" = "x8" ; then
   6652   LG_SIZEOF_INT=3
   6653 elif test "x${ac_cv_sizeof_int}" = "x4" ; then
   6654   LG_SIZEOF_INT=2
   6655 else
   6656   as_fn_error $? "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5
   6657 fi
   6658 cat >>confdefs.h <<_ACEOF
   6659 #define LG_SIZEOF_INT $LG_SIZEOF_INT
   6660 _ACEOF
   6661 
   6662 
   6663 # The cast to long int works around a bug in the HP C Compiler
   6664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   6665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   6666 # This bug is HP SR number 8606223364.
   6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
   6668 $as_echo_n "checking size of long... " >&6; }
   6669 if ${ac_cv_sizeof_long+:} false; then :
   6670   $as_echo_n "(cached) " >&6
   6671 else
   6672   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
   6673 
   6674 else
   6675   if test "$ac_cv_type_long" = yes; then
   6676      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   6678 as_fn_error 77 "cannot compute sizeof (long)
   6679 See \`config.log' for more details" "$LINENO" 5; }
   6680    else
   6681      ac_cv_sizeof_long=0
   6682    fi
   6683 fi
   6684 
   6685 fi
   6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
   6687 $as_echo "$ac_cv_sizeof_long" >&6; }
   6688 
   6689 
   6690 
   6691 cat >>confdefs.h <<_ACEOF
   6692 #define SIZEOF_LONG $ac_cv_sizeof_long
   6693 _ACEOF
   6694 
   6695 
   6696 if test "x${ac_cv_sizeof_long}" = "x8" ; then
   6697   LG_SIZEOF_LONG=3
   6698 elif test "x${ac_cv_sizeof_long}" = "x4" ; then
   6699   LG_SIZEOF_LONG=2
   6700 else
   6701   as_fn_error $? "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5
   6702 fi
   6703 cat >>confdefs.h <<_ACEOF
   6704 #define LG_SIZEOF_LONG $LG_SIZEOF_LONG
   6705 _ACEOF
   6706 
   6707 
   6708 # The cast to long int works around a bug in the HP C Compiler
   6709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   6710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   6711 # This bug is HP SR number 8606223364.
   6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
   6713 $as_echo_n "checking size of long long... " >&6; }
   6714 if ${ac_cv_sizeof_long_long+:} false; then :
   6715   $as_echo_n "(cached) " >&6
   6716 else
   6717   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
   6718 
   6719 else
   6720   if test "$ac_cv_type_long_long" = yes; then
   6721      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   6723 as_fn_error 77 "cannot compute sizeof (long long)
   6724 See \`config.log' for more details" "$LINENO" 5; }
   6725    else
   6726      ac_cv_sizeof_long_long=0
   6727    fi
   6728 fi
   6729 
   6730 fi
   6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
   6732 $as_echo "$ac_cv_sizeof_long_long" >&6; }
   6733 
   6734 
   6735 
   6736 cat >>confdefs.h <<_ACEOF
   6737 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
   6738 _ACEOF
   6739 
   6740 
   6741 if test "x${ac_cv_sizeof_long_long}" = "x8" ; then
   6742   LG_SIZEOF_LONG_LONG=3
   6743 elif test "x${ac_cv_sizeof_long_long}" = "x4" ; then
   6744   LG_SIZEOF_LONG_LONG=2
   6745 else
   6746   as_fn_error $? "Unsupported long long size: ${ac_cv_sizeof_long_long}" "$LINENO" 5
   6747 fi
   6748 cat >>confdefs.h <<_ACEOF
   6749 #define LG_SIZEOF_LONG_LONG $LG_SIZEOF_LONG_LONG
   6750 _ACEOF
   6751 
   6752 
   6753 # The cast to long int works around a bug in the HP C Compiler
   6754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   6755 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   6756 # This bug is HP SR number 8606223364.
   6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
   6758 $as_echo_n "checking size of intmax_t... " >&6; }
   6759 if ${ac_cv_sizeof_intmax_t+:} false; then :
   6760   $as_echo_n "(cached) " >&6
   6761 else
   6762   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t"        "$ac_includes_default"; then :
   6763 
   6764 else
   6765   if test "$ac_cv_type_intmax_t" = yes; then
   6766      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   6768 as_fn_error 77 "cannot compute sizeof (intmax_t)
   6769 See \`config.log' for more details" "$LINENO" 5; }
   6770    else
   6771      ac_cv_sizeof_intmax_t=0
   6772    fi
   6773 fi
   6774 
   6775 fi
   6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
   6777 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
   6778 
   6779 
   6780 
   6781 cat >>confdefs.h <<_ACEOF
   6782 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
   6783 _ACEOF
   6784 
   6785 
   6786 if test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then
   6787   LG_SIZEOF_INTMAX_T=4
   6788 elif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then
   6789   LG_SIZEOF_INTMAX_T=3
   6790 elif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then
   6791   LG_SIZEOF_INTMAX_T=2
   6792 else
   6793   as_fn_error $? "Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5
   6794 fi
   6795 cat >>confdefs.h <<_ACEOF
   6796 #define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T
   6797 _ACEOF
   6798 
   6799 
   6800 # Make sure we can run config.sub.
   6801 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   6802   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   6803 
   6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   6805 $as_echo_n "checking build system type... " >&6; }
   6806 if ${ac_cv_build+:} false; then :
   6807   $as_echo_n "(cached) " >&6
   6808 else
   6809   ac_build_alias=$build_alias
   6810 test "x$ac_build_alias" = x &&
   6811   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   6812 test "x$ac_build_alias" = x &&
   6813   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   6814 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   6815   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   6816 
   6817 fi
   6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   6819 $as_echo "$ac_cv_build" >&6; }
   6820 case $ac_cv_build in
   6821 *-*-*) ;;
   6822 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   6823 esac
   6824 build=$ac_cv_build
   6825 ac_save_IFS=$IFS; IFS='-'
   6826 set x $ac_cv_build
   6827 shift
   6828 build_cpu=$1
   6829 build_vendor=$2
   6830 shift; shift
   6831 # Remember, the first character of IFS is used to create $*,
   6832 # except with old shells:
   6833 build_os=$*
   6834 IFS=$ac_save_IFS
   6835 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   6836 
   6837 
   6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   6839 $as_echo_n "checking host system type... " >&6; }
   6840 if ${ac_cv_host+:} false; then :
   6841   $as_echo_n "(cached) " >&6
   6842 else
   6843   if test "x$host_alias" = x; then
   6844   ac_cv_host=$ac_cv_build
   6845 else
   6846   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   6847     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   6848 fi
   6849 
   6850 fi
   6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   6852 $as_echo "$ac_cv_host" >&6; }
   6853 case $ac_cv_host in
   6854 *-*-*) ;;
   6855 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   6856 esac
   6857 host=$ac_cv_host
   6858 ac_save_IFS=$IFS; IFS='-'
   6859 set x $ac_cv_host
   6860 shift
   6861 host_cpu=$1
   6862 host_vendor=$2
   6863 shift; shift
   6864 # Remember, the first character of IFS is used to create $*,
   6865 # except with old shells:
   6866 host_os=$*
   6867 IFS=$ac_save_IFS
   6868 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   6869 
   6870 
   6871 CPU_SPINWAIT=""
   6872 case "${host_cpu}" in
   6873   i686|x86_64)
   6874 	HAVE_CPU_SPINWAIT=1
   6875 	if test "x${je_cv_msvc}" = "xyes" ; then
   6876 	    if ${je_cv_pause_msvc+:} false; then :
   6877   $as_echo_n "(cached) " >&6
   6878 else
   6879 
   6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction MSVC is compilable" >&5
   6881 $as_echo_n "checking whether pause instruction MSVC is compilable... " >&6; }
   6882 if ${je_cv_pause_msvc+:} false; then :
   6883   $as_echo_n "(cached) " >&6
   6884 else
   6885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6886 /* end confdefs.h.  */
   6887 
   6888 int
   6889 main ()
   6890 {
   6891 _mm_pause(); return 0;
   6892   ;
   6893   return 0;
   6894 }
   6895 _ACEOF
   6896 if ac_fn_c_try_link "$LINENO"; then :
   6897   je_cv_pause_msvc=yes
   6898 else
   6899   je_cv_pause_msvc=no
   6900 fi
   6901 rm -f core conftest.err conftest.$ac_objext \
   6902     conftest$ac_exeext conftest.$ac_ext
   6903 fi
   6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause_msvc" >&5
   6905 $as_echo "$je_cv_pause_msvc" >&6; }
   6906 
   6907 fi
   6908 
   6909 	    if test "x${je_cv_pause_msvc}" = "xyes" ; then
   6910 		CPU_SPINWAIT='_mm_pause()'
   6911 	    fi
   6912 	else
   6913 	    if ${je_cv_pause+:} false; then :
   6914   $as_echo_n "(cached) " >&6
   6915 else
   6916 
   6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction is compilable" >&5
   6918 $as_echo_n "checking whether pause instruction is compilable... " >&6; }
   6919 if ${je_cv_pause+:} false; then :
   6920   $as_echo_n "(cached) " >&6
   6921 else
   6922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6923 /* end confdefs.h.  */
   6924 
   6925 int
   6926 main ()
   6927 {
   6928 __asm__ volatile("pause"); return 0;
   6929   ;
   6930   return 0;
   6931 }
   6932 _ACEOF
   6933 if ac_fn_c_try_link "$LINENO"; then :
   6934   je_cv_pause=yes
   6935 else
   6936   je_cv_pause=no
   6937 fi
   6938 rm -f core conftest.err conftest.$ac_objext \
   6939     conftest$ac_exeext conftest.$ac_ext
   6940 fi
   6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause" >&5
   6942 $as_echo "$je_cv_pause" >&6; }
   6943 
   6944 fi
   6945 
   6946 	    if test "x${je_cv_pause}" = "xyes" ; then
   6947 		CPU_SPINWAIT='__asm__ volatile("pause")'
   6948 	    fi
   6949 	fi
   6950 	;;
   6951   *)
   6952 	HAVE_CPU_SPINWAIT=0
   6953 	;;
   6954 esac
   6955 cat >>confdefs.h <<_ACEOF
   6956 #define HAVE_CPU_SPINWAIT $HAVE_CPU_SPINWAIT
   6957 _ACEOF
   6958 
   6959 cat >>confdefs.h <<_ACEOF
   6960 #define CPU_SPINWAIT $CPU_SPINWAIT
   6961 _ACEOF
   6962 
   6963 
   6964 
   6965 # Check whether --with-lg_vaddr was given.
   6966 if test "${with_lg_vaddr+set}" = set; then :
   6967   withval=$with_lg_vaddr; LG_VADDR="$with_lg_vaddr"
   6968 else
   6969   LG_VADDR="detect"
   6970 fi
   6971 
   6972 
   6973 case "${host_cpu}" in
   6974   aarch64)
   6975     if test "x$LG_VADDR" = "xdetect"; then
   6976       { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
   6977 $as_echo_n "checking number of significant virtual address bits... " >&6; }
   6978       if test "x${LG_SIZEOF_PTR}" = "x2" ; then
   6979         #aarch64 ILP32
   6980         LG_VADDR=32
   6981       else
   6982         #aarch64 LP64
   6983         LG_VADDR=48
   6984       fi
   6985       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
   6986 $as_echo "$LG_VADDR" >&6; }
   6987     fi
   6988     ;;
   6989   x86_64)
   6990     if test "x$LG_VADDR" = "xdetect"; then
   6991       { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
   6992 $as_echo_n "checking number of significant virtual address bits... " >&6; }
   6993 if ${je_cv_lg_vaddr+:} false; then :
   6994   $as_echo_n "(cached) " >&6
   6995 else
   6996   if test "$cross_compiling" = yes; then :
   6997   je_cv_lg_vaddr=57
   6998 else
   6999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7000 /* end confdefs.h.  */
   7001 
   7002 #include <stdio.h>
   7003 #ifdef _WIN32
   7004 #include <limits.h>
   7005 #include <intrin.h>
   7006 typedef unsigned __int32 uint32_t;
   7007 #else
   7008 #include <stdint.h>
   7009 #endif
   7010 
   7011 int
   7012 main ()
   7013 {
   7014 
   7015 	uint32_t r[4];
   7016 	uint32_t eax_in = 0x80000008U;
   7017 #ifdef _WIN32
   7018 	__cpuid((int *)r, (int)eax_in);
   7019 #else
   7020 	asm volatile ("cpuid"
   7021 	    : "=a" (r[0]), "=b" (r[1]), "=c" (r[2]), "=d" (r[3])
   7022 	    : "a" (eax_in), "c" (0)
   7023 	);
   7024 #endif
   7025 	uint32_t eax_out = r[0];
   7026 	uint32_t vaddr = ((eax_out & 0x0000ff00U) >> 8);
   7027 	FILE *f = fopen("conftest.out", "w");
   7028 	if (f == NULL) {
   7029 		return 1;
   7030 	}
   7031 	if (vaddr > (sizeof(void *) << 3)) {
   7032 		vaddr = sizeof(void *) << 3;
   7033 	}
   7034 	fprintf(f, "%u", vaddr);
   7035 	fclose(f);
   7036 	return 0;
   7037 
   7038   ;
   7039   return 0;
   7040 }
   7041 _ACEOF
   7042 if ac_fn_c_try_run "$LINENO"; then :
   7043   je_cv_lg_vaddr=`cat conftest.out`
   7044 else
   7045   je_cv_lg_vaddr=error
   7046 fi
   7047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   7048   conftest.$ac_objext conftest.beam conftest.$ac_ext
   7049 fi
   7050 
   7051 fi
   7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_vaddr" >&5
   7053 $as_echo "$je_cv_lg_vaddr" >&6; }
   7054       if test "x${je_cv_lg_vaddr}" != "x" ; then
   7055         LG_VADDR="${je_cv_lg_vaddr}"
   7056       fi
   7057       if test "x${LG_VADDR}" != "xerror" ; then
   7058         cat >>confdefs.h <<_ACEOF
   7059 #define LG_VADDR $LG_VADDR
   7060 _ACEOF
   7061 
   7062       else
   7063         as_fn_error $? "cannot determine number of significant virtual address bits" "$LINENO" 5
   7064       fi
   7065     fi
   7066     ;;
   7067   *)
   7068     if test "x$LG_VADDR" = "xdetect"; then
   7069       { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
   7070 $as_echo_n "checking number of significant virtual address bits... " >&6; }
   7071       if test "x${LG_SIZEOF_PTR}" = "x3" ; then
   7072         LG_VADDR=64
   7073       elif test "x${LG_SIZEOF_PTR}" = "x2" ; then
   7074         LG_VADDR=32
   7075       elif test "x${LG_SIZEOF_PTR}" = "xLG_SIZEOF_PTR_WIN" ; then
   7076         LG_VADDR="(1U << (LG_SIZEOF_PTR_WIN+3))"
   7077       else
   7078         as_fn_error $? "Unsupported lg(pointer size): ${LG_SIZEOF_PTR}" "$LINENO" 5
   7079       fi
   7080       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
   7081 $as_echo "$LG_VADDR" >&6; }
   7082     fi
   7083     ;;
   7084 esac
   7085 cat >>confdefs.h <<_ACEOF
   7086 #define LG_VADDR $LG_VADDR
   7087 _ACEOF
   7088 
   7089 
   7090 LD_PRELOAD_VAR="LD_PRELOAD"
   7091 so="so"
   7092 importlib="${so}"
   7093 o="$ac_objext"
   7094 a="a"
   7095 exe="$ac_exeext"
   7096 libprefix="lib"
   7097 link_whole_archive="0"
   7098 DSO_LDFLAGS='-shared -Wl,-soname,$(@F)'
   7099 RPATH='-Wl,-rpath,$(1)'
   7100 SOREV="${so}.${rev}"
   7101 PIC_CFLAGS='-fPIC -DPIC'
   7102 CTARGET='-o $@'
   7103 LDTARGET='-o $@'
   7104 TEST_LD_MODE=
   7105 EXTRA_LDFLAGS=
   7106 ARFLAGS='crus'
   7107 AROUT=' $@'
   7108 CC_MM=1
   7109 
   7110 if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
   7111   TEST_LD_MODE='-dynamic'
   7112 fi
   7113 
   7114 if test "x${je_cv_cray}" = "xyes" ; then
   7115   CC_MM=
   7116 fi
   7117 
   7118 
   7119 
   7120 
   7121 if test -n "$ac_tool_prefix"; then
   7122   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   7123 set dummy ${ac_tool_prefix}ar; ac_word=$2
   7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7125 $as_echo_n "checking for $ac_word... " >&6; }
   7126 if ${ac_cv_prog_AR+:} false; then :
   7127   $as_echo_n "(cached) " >&6
   7128 else
   7129   if test -n "$AR"; then
   7130   ac_cv_prog_AR="$AR" # Let the user override the test.
   7131 else
   7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7133 for as_dir in $PATH
   7134 do
   7135   IFS=$as_save_IFS
   7136   test -z "$as_dir" && as_dir=.
   7137     for ac_exec_ext in '' $ac_executable_extensions; do
   7138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7139     ac_cv_prog_AR="${ac_tool_prefix}ar"
   7140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7141     break 2
   7142   fi
   7143 done
   7144   done
   7145 IFS=$as_save_IFS
   7146 
   7147 fi
   7148 fi
   7149 AR=$ac_cv_prog_AR
   7150 if test -n "$AR"; then
   7151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   7152 $as_echo "$AR" >&6; }
   7153 else
   7154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7155 $as_echo "no" >&6; }
   7156 fi
   7157 
   7158 
   7159 fi
   7160 if test -z "$ac_cv_prog_AR"; then
   7161   ac_ct_AR=$AR
   7162   # Extract the first word of "ar", so it can be a program name with args.
   7163 set dummy ar; ac_word=$2
   7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7165 $as_echo_n "checking for $ac_word... " >&6; }
   7166 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   7167   $as_echo_n "(cached) " >&6
   7168 else
   7169   if test -n "$ac_ct_AR"; then
   7170   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   7171 else
   7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7173 for as_dir in $PATH
   7174 do
   7175   IFS=$as_save_IFS
   7176   test -z "$as_dir" && as_dir=.
   7177     for ac_exec_ext in '' $ac_executable_extensions; do
   7178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7179     ac_cv_prog_ac_ct_AR="ar"
   7180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7181     break 2
   7182   fi
   7183 done
   7184   done
   7185 IFS=$as_save_IFS
   7186 
   7187 fi
   7188 fi
   7189 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   7190 if test -n "$ac_ct_AR"; then
   7191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   7192 $as_echo "$ac_ct_AR" >&6; }
   7193 else
   7194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7195 $as_echo "no" >&6; }
   7196 fi
   7197 
   7198   if test "x$ac_ct_AR" = x; then
   7199     AR=":"
   7200   else
   7201     case $cross_compiling:$ac_tool_warned in
   7202 yes:)
   7203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7205 ac_tool_warned=yes ;;
   7206 esac
   7207     AR=$ac_ct_AR
   7208   fi
   7209 else
   7210   AR="$ac_cv_prog_AR"
   7211 fi
   7212 
   7213 
   7214 
   7215 
   7216 
   7217 if test -n "$ac_tool_prefix"; then
   7218   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
   7219 set dummy ${ac_tool_prefix}nm; ac_word=$2
   7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7221 $as_echo_n "checking for $ac_word... " >&6; }
   7222 if ${ac_cv_prog_NM+:} false; then :
   7223   $as_echo_n "(cached) " >&6
   7224 else
   7225   if test -n "$NM"; then
   7226   ac_cv_prog_NM="$NM" # Let the user override the test.
   7227 else
   7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7229 for as_dir in $PATH
   7230 do
   7231   IFS=$as_save_IFS
   7232   test -z "$as_dir" && as_dir=.
   7233     for ac_exec_ext in '' $ac_executable_extensions; do
   7234   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7235     ac_cv_prog_NM="${ac_tool_prefix}nm"
   7236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7237     break 2
   7238   fi
   7239 done
   7240   done
   7241 IFS=$as_save_IFS
   7242 
   7243 fi
   7244 fi
   7245 NM=$ac_cv_prog_NM
   7246 if test -n "$NM"; then
   7247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
   7248 $as_echo "$NM" >&6; }
   7249 else
   7250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7251 $as_echo "no" >&6; }
   7252 fi
   7253 
   7254 
   7255 fi
   7256 if test -z "$ac_cv_prog_NM"; then
   7257   ac_ct_NM=$NM
   7258   # Extract the first word of "nm", so it can be a program name with args.
   7259 set dummy nm; ac_word=$2
   7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7261 $as_echo_n "checking for $ac_word... " >&6; }
   7262 if ${ac_cv_prog_ac_ct_NM+:} false; then :
   7263   $as_echo_n "(cached) " >&6
   7264 else
   7265   if test -n "$ac_ct_NM"; then
   7266   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
   7267 else
   7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7269 for as_dir in $PATH
   7270 do
   7271   IFS=$as_save_IFS
   7272   test -z "$as_dir" && as_dir=.
   7273     for ac_exec_ext in '' $ac_executable_extensions; do
   7274   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7275     ac_cv_prog_ac_ct_NM="nm"
   7276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7277     break 2
   7278   fi
   7279 done
   7280   done
   7281 IFS=$as_save_IFS
   7282 
   7283 fi
   7284 fi
   7285 ac_ct_NM=$ac_cv_prog_ac_ct_NM
   7286 if test -n "$ac_ct_NM"; then
   7287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
   7288 $as_echo "$ac_ct_NM" >&6; }
   7289 else
   7290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7291 $as_echo "no" >&6; }
   7292 fi
   7293 
   7294   if test "x$ac_ct_NM" = x; then
   7295     NM=":"
   7296   else
   7297     case $cross_compiling:$ac_tool_warned in
   7298 yes:)
   7299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7301 ac_tool_warned=yes ;;
   7302 esac
   7303     NM=$ac_ct_NM
   7304   fi
   7305 else
   7306   NM="$ac_cv_prog_NM"
   7307 fi
   7308 
   7309 
   7310 for ac_prog in gawk mawk nawk awk
   7311 do
   7312   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7313 set dummy $ac_prog; ac_word=$2
   7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7315 $as_echo_n "checking for $ac_word... " >&6; }
   7316 if ${ac_cv_prog_AWK+:} false; then :
   7317   $as_echo_n "(cached) " >&6
   7318 else
   7319   if test -n "$AWK"; then
   7320   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   7321 else
   7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7323 for as_dir in $PATH
   7324 do
   7325   IFS=$as_save_IFS
   7326   test -z "$as_dir" && as_dir=.
   7327     for ac_exec_ext in '' $ac_executable_extensions; do
   7328   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7329     ac_cv_prog_AWK="$ac_prog"
   7330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7331     break 2
   7332   fi
   7333 done
   7334   done
   7335 IFS=$as_save_IFS
   7336 
   7337 fi
   7338 fi
   7339 AWK=$ac_cv_prog_AWK
   7340 if test -n "$AWK"; then
   7341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   7342 $as_echo "$AWK" >&6; }
   7343 else
   7344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7345 $as_echo "no" >&6; }
   7346 fi
   7347 
   7348 
   7349   test -n "$AWK" && break
   7350 done
   7351 
   7352 
   7353 default_retain="0"
   7354 maps_coalesce="1"
   7355 DUMP_SYMS="${NM} -a"
   7356 SYM_PREFIX=""
   7357 case "${host}" in
   7358   *-*-darwin* | *-*-ios*)
   7359 	abi="macho"
   7360 	RPATH=""
   7361 	LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
   7362 	so="dylib"
   7363 	importlib="${so}"
   7364 	force_tls="0"
   7365 	DSO_LDFLAGS='-shared -Wl,-install_name,$(LIBDIR)/$(@F)'
   7366 	SOREV="${rev}.${so}"
   7367 	sbrk_deprecated="1"
   7368 	SYM_PREFIX="_"
   7369 	;;
   7370   *-*-freebsd*)
   7371 	abi="elf"
   7372 	$as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT  " >>confdefs.h
   7373 
   7374 	force_lazy_lock="1"
   7375 	;;
   7376   *-*-dragonfly*)
   7377 	abi="elf"
   7378 	;;
   7379   *-*-openbsd*)
   7380 	abi="elf"
   7381 	force_tls="0"
   7382 	;;
   7383   *-*-bitrig*)
   7384 	abi="elf"
   7385 	;;
   7386   *-*-linux-android)
   7387 		T_APPEND_V=-D_GNU_SOURCE
   7388   if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   7389   CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
   7390 else
   7391   CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
   7392 fi
   7393 
   7394 
   7395 	abi="elf"
   7396 	$as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS  " >>confdefs.h
   7397 
   7398 	$as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
   7399 
   7400 	$as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY  " >>confdefs.h
   7401 
   7402 	$as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
   7403 
   7404 	$as_echo "#define JEMALLOC_C11_ATOMICS 1" >>confdefs.h
   7405 
   7406 	force_tls="0"
   7407 	if test "${LG_SIZEOF_PTR}" = "3"; then
   7408 	  default_retain="1"
   7409 	fi
   7410 	;;
   7411   *-*-linux*)
   7412 		T_APPEND_V=-D_GNU_SOURCE
   7413   if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   7414   CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
   7415 else
   7416   CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
   7417 fi
   7418 
   7419 
   7420 	abi="elf"
   7421 	$as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS  " >>confdefs.h
   7422 
   7423 	$as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
   7424 
   7425 	$as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY  " >>confdefs.h
   7426 
   7427 	$as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
   7428 
   7429 	$as_echo "#define JEMALLOC_USE_CXX_THROW  " >>confdefs.h
   7430 
   7431 	if test "${LG_SIZEOF_PTR}" = "3"; then
   7432 	  default_retain="1"
   7433 	fi
   7434 	;;
   7435   *-*-kfreebsd*)
   7436 		T_APPEND_V=-D_GNU_SOURCE
   7437   if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   7438   CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
   7439 else
   7440   CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
   7441 fi
   7442 
   7443 
   7444 	abi="elf"
   7445 	$as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
   7446 
   7447 	$as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT  " >>confdefs.h
   7448 
   7449 	$as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
   7450 
   7451 	$as_echo "#define JEMALLOC_USE_CXX_THROW  " >>confdefs.h
   7452 
   7453 	;;
   7454   *-*-netbsd*)
   7455 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5
   7456 $as_echo_n "checking ABI... " >&6; }
   7457         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7458 /* end confdefs.h.  */
   7459 #ifdef __ELF__
   7460 /* ELF */
   7461 #else
   7462 #error aout
   7463 #endif
   7464 
   7465 int
   7466 main ()
   7467 {
   7468 
   7469   ;
   7470   return 0;
   7471 }
   7472 _ACEOF
   7473 if ac_fn_c_try_compile "$LINENO"; then :
   7474   abi="elf"
   7475 else
   7476   abi="aout"
   7477 fi
   7478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7479 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5
   7480 $as_echo "$abi" >&6; }
   7481 	;;
   7482   *-*-solaris2*)
   7483 	abi="elf"
   7484 	RPATH='-Wl,-R,$(1)'
   7485 		T_APPEND_V=-D_POSIX_PTHREAD_SEMANTICS
   7486   if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   7487   CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
   7488 else
   7489   CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
   7490 fi
   7491 
   7492 
   7493 	T_APPEND_V=-lposix4 -lsocket -lnsl
   7494   if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   7495   LIBS="${LIBS}${T_APPEND_V}"
   7496 else
   7497   LIBS="${LIBS} ${T_APPEND_V}"
   7498 fi
   7499 
   7500 
   7501 	;;
   7502   *-ibm-aix*)
   7503 	if test "${LG_SIZEOF_PTR}" = "3"; then
   7504 	  	  LD_PRELOAD_VAR="LDR_PRELOAD64"
   7505 	else
   7506 	  	  LD_PRELOAD_VAR="LDR_PRELOAD"
   7507 	fi
   7508 	abi="xcoff"
   7509 	;;
   7510   *-*-mingw* | *-*-cygwin*)
   7511 	abi="pecoff"
   7512 	force_tls="0"
   7513 	maps_coalesce="0"
   7514 	RPATH=""
   7515 	so="dll"
   7516 	if test "x$je_cv_msvc" = "xyes" ; then
   7517 	  importlib="lib"
   7518 	  DSO_LDFLAGS="-LD"
   7519 	  EXTRA_LDFLAGS="-link -DEBUG"
   7520 	  CTARGET='-Fo$@'
   7521 	  LDTARGET='-Fe$@'
   7522 	  AR='lib'
   7523 	  ARFLAGS='-nologo -out:'
   7524 	  AROUT='$@'
   7525 	  CC_MM=
   7526         else
   7527 	  importlib="${so}"
   7528 	  DSO_LDFLAGS="-shared"
   7529 	  link_whole_archive="1"
   7530 	fi
   7531 	case "${host}" in
   7532 	  *-*-cygwin*)
   7533 	    DUMP_SYMS="dumpbin /SYMBOLS"
   7534 	    ;;
   7535 	  *)
   7536 	    ;;
   7537 	esac
   7538 	a="lib"
   7539 	libprefix=""
   7540 	SOREV="${so}"
   7541 	PIC_CFLAGS=""
   7542 	;;
   7543   *)
   7544 	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5
   7545 $as_echo "Unsupported operating system: ${host}" >&6; }
   7546 	abi="elf"
   7547 	;;
   7548 esac
   7549 
   7550 JEMALLOC_USABLE_SIZE_CONST=const
   7551 for ac_header in malloc.h
   7552 do :
   7553   ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
   7554 if test "x$ac_cv_header_malloc_h" = xyes; then :
   7555   cat >>confdefs.h <<_ACEOF
   7556 #define HAVE_MALLOC_H 1
   7557 _ACEOF
   7558 
   7559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc_usable_size definition can use const argument" >&5
   7560 $as_echo_n "checking whether malloc_usable_size definition can use const argument... " >&6; }
   7561   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7562 /* end confdefs.h.  */
   7563 #include <malloc.h>
   7564      #include <stddef.h>
   7565     size_t malloc_usable_size(const void *ptr);
   7566 
   7567 int
   7568 main ()
   7569 {
   7570 
   7571   ;
   7572   return 0;
   7573 }
   7574 _ACEOF
   7575 if ac_fn_c_try_compile "$LINENO"; then :
   7576 
   7577                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7578 $as_echo "yes" >&6; }
   7579 
   7580 else
   7581 
   7582                 JEMALLOC_USABLE_SIZE_CONST=
   7583                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7584 $as_echo "no" >&6; }
   7585 
   7586 fi
   7587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7588 
   7589 fi
   7590 
   7591 done
   7592 
   7593 cat >>confdefs.h <<_ACEOF
   7594 #define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST
   7595 _ACEOF
   7596 
   7597 
   7598 
   7599 
   7600 
   7601 
   7602 
   7603 
   7604 
   7605 
   7606 
   7607 
   7608 
   7609 
   7610 
   7611 
   7612 
   7613 
   7614 
   7615 
   7616 
   7617 
   7618 
   7619 
   7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
   7621 $as_echo_n "checking for library containing log... " >&6; }
   7622 if ${ac_cv_search_log+:} false; then :
   7623   $as_echo_n "(cached) " >&6
   7624 else
   7625   ac_func_search_save_LIBS=$LIBS
   7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7627 /* end confdefs.h.  */
   7628 
   7629 /* Override any GCC internal prototype to avoid an error.
   7630    Use char because int might match the return type of a GCC
   7631    builtin and then its argument prototype would still apply.  */
   7632 #ifdef __cplusplus
   7633 extern "C"
   7634 #endif
   7635 char log ();
   7636 int
   7637 main ()
   7638 {
   7639 return log ();
   7640   ;
   7641   return 0;
   7642 }
   7643 _ACEOF
   7644 for ac_lib in '' m; do
   7645   if test -z "$ac_lib"; then
   7646     ac_res="none required"
   7647   else
   7648     ac_res=-l$ac_lib
   7649     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7650   fi
   7651   if ac_fn_c_try_link "$LINENO"; then :
   7652   ac_cv_search_log=$ac_res
   7653 fi
   7654 rm -f core conftest.err conftest.$ac_objext \
   7655     conftest$ac_exeext
   7656   if ${ac_cv_search_log+:} false; then :
   7657   break
   7658 fi
   7659 done
   7660 if ${ac_cv_search_log+:} false; then :
   7661 
   7662 else
   7663   ac_cv_search_log=no
   7664 fi
   7665 rm conftest.$ac_ext
   7666 LIBS=$ac_func_search_save_LIBS
   7667 fi
   7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
   7669 $as_echo "$ac_cv_search_log" >&6; }
   7670 ac_res=$ac_cv_search_log
   7671 if test "$ac_res" != no; then :
   7672   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7673 
   7674 else
   7675   as_fn_error $? "Missing math functions" "$LINENO" 5
   7676 fi
   7677 
   7678 if test "x$ac_cv_search_log" != "xnone required" ; then
   7679   LM="$ac_cv_search_log"
   7680 else
   7681   LM=
   7682 fi
   7683 
   7684 
   7685 
   7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5
   7687 $as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; }
   7688 if ${je_cv_attribute+:} false; then :
   7689   $as_echo_n "(cached) " >&6
   7690 else
   7691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7692 /* end confdefs.h.  */
   7693 static __attribute__((unused)) void foo(void){}
   7694 int
   7695 main ()
   7696 {
   7697 
   7698   ;
   7699   return 0;
   7700 }
   7701 _ACEOF
   7702 if ac_fn_c_try_link "$LINENO"; then :
   7703   je_cv_attribute=yes
   7704 else
   7705   je_cv_attribute=no
   7706 fi
   7707 rm -f core conftest.err conftest.$ac_objext \
   7708     conftest$ac_exeext conftest.$ac_ext
   7709 fi
   7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5
   7711 $as_echo "$je_cv_attribute" >&6; }
   7712 
   7713 if test "x${je_cv_attribute}" = "xyes" ; then
   7714   $as_echo "#define JEMALLOC_HAVE_ATTR  " >>confdefs.h
   7715 
   7716   if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then
   7717 
   7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
   7719 $as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
   7720 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   7721 T_APPEND_V=-fvisibility=hidden
   7722   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   7723   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   7724 else
   7725   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   7726 fi
   7727 
   7728 
   7729 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   7730   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   7731 else
   7732   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   7733 fi
   7734 
   7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7736 /* end confdefs.h.  */
   7737 
   7738 
   7739 int
   7740 main ()
   7741 {
   7742 
   7743     return 0;
   7744 
   7745   ;
   7746   return 0;
   7747 }
   7748 _ACEOF
   7749 if ac_fn_c_try_compile "$LINENO"; then :
   7750   je_cv_cflags_added=-fvisibility=hidden
   7751               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7752 $as_echo "yes" >&6; }
   7753 else
   7754   je_cv_cflags_added=
   7755               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7756 $as_echo "no" >&6; }
   7757               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   7758 
   7759 fi
   7760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7761 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   7762   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   7763 else
   7764   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   7765 fi
   7766 
   7767 
   7768 
   7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
   7770 $as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
   7771 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
   7772 T_APPEND_V=-fvisibility=hidden
   7773   if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   7774   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
   7775 else
   7776   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
   7777 fi
   7778 
   7779 
   7780 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   7781   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   7782 else
   7783   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   7784 fi
   7785 
   7786 ac_ext=cpp
   7787 ac_cpp='$CXXCPP $CPPFLAGS'
   7788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   7791 
   7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7793 /* end confdefs.h.  */
   7794 
   7795 
   7796 int
   7797 main ()
   7798 {
   7799 
   7800     return 0;
   7801 
   7802   ;
   7803   return 0;
   7804 }
   7805 _ACEOF
   7806 if ac_fn_cxx_try_compile "$LINENO"; then :
   7807   je_cv_cxxflags_added=-fvisibility=hidden
   7808               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7809 $as_echo "yes" >&6; }
   7810 else
   7811   je_cv_cxxflags_added=
   7812               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7813 $as_echo "no" >&6; }
   7814               CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
   7815 
   7816 fi
   7817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7818 ac_ext=c
   7819 ac_cpp='$CPP $CPPFLAGS'
   7820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7823 
   7824 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   7825   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   7826 else
   7827   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   7828 fi
   7829 
   7830 
   7831   fi
   7832 fi
   7833 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   7834 
   7835 
   7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
   7837 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
   7838 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   7839 T_APPEND_V=-Werror
   7840   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   7841   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   7842 else
   7843   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   7844 fi
   7845 
   7846 
   7847 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   7848   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   7849 else
   7850   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   7851 fi
   7852 
   7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7854 /* end confdefs.h.  */
   7855 
   7856 
   7857 int
   7858 main ()
   7859 {
   7860 
   7861     return 0;
   7862 
   7863   ;
   7864   return 0;
   7865 }
   7866 _ACEOF
   7867 if ac_fn_c_try_compile "$LINENO"; then :
   7868   je_cv_cflags_added=-Werror
   7869               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7870 $as_echo "yes" >&6; }
   7871 else
   7872   je_cv_cflags_added=
   7873               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7874 $as_echo "no" >&6; }
   7875               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   7876 
   7877 fi
   7878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7879 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   7880   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   7881 else
   7882   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   7883 fi
   7884 
   7885 
   7886 
   7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
   7888 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
   7889 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   7890 T_APPEND_V=-herror_on_warning
   7891   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   7892   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   7893 else
   7894   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   7895 fi
   7896 
   7897 
   7898 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   7899   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   7900 else
   7901   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   7902 fi
   7903 
   7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7905 /* end confdefs.h.  */
   7906 
   7907 
   7908 int
   7909 main ()
   7910 {
   7911 
   7912     return 0;
   7913 
   7914   ;
   7915   return 0;
   7916 }
   7917 _ACEOF
   7918 if ac_fn_c_try_compile "$LINENO"; then :
   7919   je_cv_cflags_added=-herror_on_warning
   7920               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7921 $as_echo "yes" >&6; }
   7922 else
   7923   je_cv_cflags_added=
   7924               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7925 $as_echo "no" >&6; }
   7926               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   7927 
   7928 fi
   7929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7930 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   7931   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   7932 else
   7933   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   7934 fi
   7935 
   7936 
   7937 
   7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5
   7939 $as_echo_n "checking whether tls_model attribute is compilable... " >&6; }
   7940 if ${je_cv_tls_model+:} false; then :
   7941   $as_echo_n "(cached) " >&6
   7942 else
   7943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7944 /* end confdefs.h.  */
   7945 
   7946 int
   7947 main ()
   7948 {
   7949 static __thread int
   7950                __attribute__((tls_model("initial-exec"), unused)) foo;
   7951                foo = 0;
   7952   ;
   7953   return 0;
   7954 }
   7955 _ACEOF
   7956 if ac_fn_c_try_link "$LINENO"; then :
   7957   je_cv_tls_model=yes
   7958 else
   7959   je_cv_tls_model=no
   7960 fi
   7961 rm -f core conftest.err conftest.$ac_objext \
   7962     conftest$ac_exeext conftest.$ac_ext
   7963 fi
   7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5
   7965 $as_echo "$je_cv_tls_model" >&6; }
   7966 
   7967 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
   7968 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   7969   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   7970 else
   7971   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   7972 fi
   7973 
   7974 
   7975 
   7976 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   7977 
   7978 
   7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
   7980 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
   7981 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   7982 T_APPEND_V=-Werror
   7983   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   7984   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   7985 else
   7986   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   7987 fi
   7988 
   7989 
   7990 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   7991   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   7992 else
   7993   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   7994 fi
   7995 
   7996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7997 /* end confdefs.h.  */
   7998 
   7999 
   8000 int
   8001 main ()
   8002 {
   8003 
   8004     return 0;
   8005 
   8006   ;
   8007   return 0;
   8008 }
   8009 _ACEOF
   8010 if ac_fn_c_try_compile "$LINENO"; then :
   8011   je_cv_cflags_added=-Werror
   8012               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8013 $as_echo "yes" >&6; }
   8014 else
   8015   je_cv_cflags_added=
   8016               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8017 $as_echo "no" >&6; }
   8018               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   8019 
   8020 fi
   8021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8022 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8023   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8024 else
   8025   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8026 fi
   8027 
   8028 
   8029 
   8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
   8031 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
   8032 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   8033 T_APPEND_V=-herror_on_warning
   8034   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   8035   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   8036 else
   8037   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   8038 fi
   8039 
   8040 
   8041 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8042   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8043 else
   8044   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8045 fi
   8046 
   8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8048 /* end confdefs.h.  */
   8049 
   8050 
   8051 int
   8052 main ()
   8053 {
   8054 
   8055     return 0;
   8056 
   8057   ;
   8058   return 0;
   8059 }
   8060 _ACEOF
   8061 if ac_fn_c_try_compile "$LINENO"; then :
   8062   je_cv_cflags_added=-herror_on_warning
   8063               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8064 $as_echo "yes" >&6; }
   8065 else
   8066   je_cv_cflags_added=
   8067               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8068 $as_echo "no" >&6; }
   8069               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   8070 
   8071 fi
   8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8073 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8074   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8075 else
   8076   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8077 fi
   8078 
   8079 
   8080 
   8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloc_size attribute is compilable" >&5
   8082 $as_echo_n "checking whether alloc_size attribute is compilable... " >&6; }
   8083 if ${je_cv_alloc_size+:} false; then :
   8084   $as_echo_n "(cached) " >&6
   8085 else
   8086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8087 /* end confdefs.h.  */
   8088 #include <stdlib.h>
   8089 int
   8090 main ()
   8091 {
   8092 void *foo(size_t size) __attribute__((alloc_size(1)));
   8093   ;
   8094   return 0;
   8095 }
   8096 _ACEOF
   8097 if ac_fn_c_try_link "$LINENO"; then :
   8098   je_cv_alloc_size=yes
   8099 else
   8100   je_cv_alloc_size=no
   8101 fi
   8102 rm -f core conftest.err conftest.$ac_objext \
   8103     conftest$ac_exeext conftest.$ac_ext
   8104 fi
   8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_alloc_size" >&5
   8106 $as_echo "$je_cv_alloc_size" >&6; }
   8107 
   8108 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
   8109 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8110   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8111 else
   8112   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8113 fi
   8114 
   8115 
   8116 if test "x${je_cv_alloc_size}" = "xyes" ; then
   8117   $as_echo "#define JEMALLOC_HAVE_ATTR_ALLOC_SIZE  " >>confdefs.h
   8118 
   8119 fi
   8120 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   8121 
   8122 
   8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
   8124 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
   8125 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   8126 T_APPEND_V=-Werror
   8127   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   8128   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   8129 else
   8130   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   8131 fi
   8132 
   8133 
   8134 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8135   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8136 else
   8137   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8138 fi
   8139 
   8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8141 /* end confdefs.h.  */
   8142 
   8143 
   8144 int
   8145 main ()
   8146 {
   8147 
   8148     return 0;
   8149 
   8150   ;
   8151   return 0;
   8152 }
   8153 _ACEOF
   8154 if ac_fn_c_try_compile "$LINENO"; then :
   8155   je_cv_cflags_added=-Werror
   8156               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8157 $as_echo "yes" >&6; }
   8158 else
   8159   je_cv_cflags_added=
   8160               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8161 $as_echo "no" >&6; }
   8162               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   8163 
   8164 fi
   8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8166 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8167   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8168 else
   8169   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8170 fi
   8171 
   8172 
   8173 
   8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
   8175 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
   8176 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   8177 T_APPEND_V=-herror_on_warning
   8178   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   8179   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   8180 else
   8181   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   8182 fi
   8183 
   8184 
   8185 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8186   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8187 else
   8188   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8189 fi
   8190 
   8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8192 /* end confdefs.h.  */
   8193 
   8194 
   8195 int
   8196 main ()
   8197 {
   8198 
   8199     return 0;
   8200 
   8201   ;
   8202   return 0;
   8203 }
   8204 _ACEOF
   8205 if ac_fn_c_try_compile "$LINENO"; then :
   8206   je_cv_cflags_added=-herror_on_warning
   8207               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8208 $as_echo "yes" >&6; }
   8209 else
   8210   je_cv_cflags_added=
   8211               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8212 $as_echo "no" >&6; }
   8213               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   8214 
   8215 fi
   8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8217 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8218   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8219 else
   8220   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8221 fi
   8222 
   8223 
   8224 
   8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(gnu_printf, ...) attribute is compilable" >&5
   8226 $as_echo_n "checking whether format(gnu_printf, ...) attribute is compilable... " >&6; }
   8227 if ${je_cv_format_gnu_printf+:} false; then :
   8228   $as_echo_n "(cached) " >&6
   8229 else
   8230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8231 /* end confdefs.h.  */
   8232 #include <stdlib.h>
   8233 int
   8234 main ()
   8235 {
   8236 void *foo(const char *format, ...) __attribute__((format(gnu_printf, 1, 2)));
   8237   ;
   8238   return 0;
   8239 }
   8240 _ACEOF
   8241 if ac_fn_c_try_link "$LINENO"; then :
   8242   je_cv_format_gnu_printf=yes
   8243 else
   8244   je_cv_format_gnu_printf=no
   8245 fi
   8246 rm -f core conftest.err conftest.$ac_objext \
   8247     conftest$ac_exeext conftest.$ac_ext
   8248 fi
   8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_gnu_printf" >&5
   8250 $as_echo "$je_cv_format_gnu_printf" >&6; }
   8251 
   8252 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
   8253 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8254   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8255 else
   8256   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8257 fi
   8258 
   8259 
   8260 if test "x${je_cv_format_gnu_printf}" = "xyes" ; then
   8261   $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF  " >>confdefs.h
   8262 
   8263 fi
   8264 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   8265 
   8266 
   8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
   8268 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
   8269 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   8270 T_APPEND_V=-Werror
   8271   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   8272   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   8273 else
   8274   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   8275 fi
   8276 
   8277 
   8278 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8279   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8280 else
   8281   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8282 fi
   8283 
   8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8285 /* end confdefs.h.  */
   8286 
   8287 
   8288 int
   8289 main ()
   8290 {
   8291 
   8292     return 0;
   8293 
   8294   ;
   8295   return 0;
   8296 }
   8297 _ACEOF
   8298 if ac_fn_c_try_compile "$LINENO"; then :
   8299   je_cv_cflags_added=-Werror
   8300               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8301 $as_echo "yes" >&6; }
   8302 else
   8303   je_cv_cflags_added=
   8304               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8305 $as_echo "no" >&6; }
   8306               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   8307 
   8308 fi
   8309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8310 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8311   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8312 else
   8313   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8314 fi
   8315 
   8316 
   8317 
   8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
   8319 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
   8320 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   8321 T_APPEND_V=-herror_on_warning
   8322   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   8323   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   8324 else
   8325   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   8326 fi
   8327 
   8328 
   8329 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8330   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8331 else
   8332   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8333 fi
   8334 
   8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8336 /* end confdefs.h.  */
   8337 
   8338 
   8339 int
   8340 main ()
   8341 {
   8342 
   8343     return 0;
   8344 
   8345   ;
   8346   return 0;
   8347 }
   8348 _ACEOF
   8349 if ac_fn_c_try_compile "$LINENO"; then :
   8350   je_cv_cflags_added=-herror_on_warning
   8351               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   8352 $as_echo "yes" >&6; }
   8353 else
   8354   je_cv_cflags_added=
   8355               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8356 $as_echo "no" >&6; }
   8357               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   8358 
   8359 fi
   8360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8361 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8362   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8363 else
   8364   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8365 fi
   8366 
   8367 
   8368 
   8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5
   8370 $as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; }
   8371 if ${je_cv_format_printf+:} false; then :
   8372   $as_echo_n "(cached) " >&6
   8373 else
   8374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8375 /* end confdefs.h.  */
   8376 #include <stdlib.h>
   8377 int
   8378 main ()
   8379 {
   8380 void *foo(const char *format, ...) __attribute__((format(printf, 1, 2)));
   8381   ;
   8382   return 0;
   8383 }
   8384 _ACEOF
   8385 if ac_fn_c_try_link "$LINENO"; then :
   8386   je_cv_format_printf=yes
   8387 else
   8388   je_cv_format_printf=no
   8389 fi
   8390 rm -f core conftest.err conftest.$ac_objext \
   8391     conftest$ac_exeext conftest.$ac_ext
   8392 fi
   8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_printf" >&5
   8394 $as_echo "$je_cv_format_printf" >&6; }
   8395 
   8396 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
   8397 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8398   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8399 else
   8400   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8401 fi
   8402 
   8403 
   8404 if test "x${je_cv_format_printf}" = "xyes" ; then
   8405   $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF  " >>confdefs.h
   8406 
   8407 fi
   8408 
   8409 
   8410 # Check whether --with-rpath was given.
   8411 if test "${with_rpath+set}" = set; then :
   8412   withval=$with_rpath; if test "x$with_rpath" = "xno" ; then
   8413   RPATH_EXTRA=
   8414 else
   8415   RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`"
   8416 fi
   8417 else
   8418   RPATH_EXTRA=
   8419 
   8420 fi
   8421 
   8422 
   8423 
   8424 # Check whether --enable-autogen was given.
   8425 if test "${enable_autogen+set}" = set; then :
   8426   enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then
   8427   enable_autogen="0"
   8428 else
   8429   enable_autogen="1"
   8430 fi
   8431 
   8432 else
   8433   enable_autogen="0"
   8434 
   8435 fi
   8436 
   8437 
   8438 
   8439 # Find a good install program.  We prefer a C program (faster),
   8440 # so one script is as good as another.  But avoid the broken or
   8441 # incompatible versions:
   8442 # SysV /etc/install, /usr/sbin/install
   8443 # SunOS /usr/etc/install
   8444 # IRIX /sbin/install
   8445 # AIX /bin/install
   8446 # AmigaOS /C/install, which installs bootblocks on floppy discs
   8447 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   8448 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   8449 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   8450 # OS/2's system install, which has a completely different semantic
   8451 # ./install, which can be erroneously created by make from ./install.sh.
   8452 # Reject install programs that cannot install multiple files.
   8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   8454 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   8455 if test -z "$INSTALL"; then
   8456 if ${ac_cv_path_install+:} false; then :
   8457   $as_echo_n "(cached) " >&6
   8458 else
   8459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8460 for as_dir in $PATH
   8461 do
   8462   IFS=$as_save_IFS
   8463   test -z "$as_dir" && as_dir=.
   8464     # Account for people who put trailing slashes in PATH elements.
   8465 case $as_dir/ in #((
   8466   ./ | .// | /[cC]/* | \
   8467   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   8468   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   8469   /usr/ucb/* ) ;;
   8470   *)
   8471     # OSF1 and SCO ODT 3.0 have their own names for install.
   8472     # Don't use installbsd from OSF since it installs stuff as root
   8473     # by default.
   8474     for ac_prog in ginstall scoinst install; do
   8475       for ac_exec_ext in '' $ac_executable_extensions; do
   8476 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   8477 	  if test $ac_prog = install &&
   8478 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   8479 	    # AIX install.  It has an incompatible calling convention.
   8480 	    :
   8481 	  elif test $ac_prog = install &&
   8482 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   8483 	    # program-specific install script used by HP pwplus--don't use.
   8484 	    :
   8485 	  else
   8486 	    rm -rf conftest.one conftest.two conftest.dir
   8487 	    echo one > conftest.one
   8488 	    echo two > conftest.two
   8489 	    mkdir conftest.dir
   8490 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   8491 	      test -s conftest.one && test -s conftest.two &&
   8492 	      test -s conftest.dir/conftest.one &&
   8493 	      test -s conftest.dir/conftest.two
   8494 	    then
   8495 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   8496 	      break 3
   8497 	    fi
   8498 	  fi
   8499 	fi
   8500       done
   8501     done
   8502     ;;
   8503 esac
   8504 
   8505   done
   8506 IFS=$as_save_IFS
   8507 
   8508 rm -rf conftest.one conftest.two conftest.dir
   8509 
   8510 fi
   8511   if test "${ac_cv_path_install+set}" = set; then
   8512     INSTALL=$ac_cv_path_install
   8513   else
   8514     # As a last resort, use the slow shell script.  Don't cache a
   8515     # value for INSTALL within a source directory, because that will
   8516     # break other packages using the cache if that directory is
   8517     # removed, or if the value is a relative name.
   8518     INSTALL=$ac_install_sh
   8519   fi
   8520 fi
   8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   8522 $as_echo "$INSTALL" >&6; }
   8523 
   8524 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   8525 # It thinks the first close brace ends the variable substitution.
   8526 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   8527 
   8528 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   8529 
   8530 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   8531 
   8532 if test -n "$ac_tool_prefix"; then
   8533   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   8534 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8536 $as_echo_n "checking for $ac_word... " >&6; }
   8537 if ${ac_cv_prog_RANLIB+:} false; then :
   8538   $as_echo_n "(cached) " >&6
   8539 else
   8540   if test -n "$RANLIB"; then
   8541   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   8542 else
   8543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8544 for as_dir in $PATH
   8545 do
   8546   IFS=$as_save_IFS
   8547   test -z "$as_dir" && as_dir=.
   8548     for ac_exec_ext in '' $ac_executable_extensions; do
   8549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8550     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   8551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8552     break 2
   8553   fi
   8554 done
   8555   done
   8556 IFS=$as_save_IFS
   8557 
   8558 fi
   8559 fi
   8560 RANLIB=$ac_cv_prog_RANLIB
   8561 if test -n "$RANLIB"; then
   8562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   8563 $as_echo "$RANLIB" >&6; }
   8564 else
   8565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8566 $as_echo "no" >&6; }
   8567 fi
   8568 
   8569 
   8570 fi
   8571 if test -z "$ac_cv_prog_RANLIB"; then
   8572   ac_ct_RANLIB=$RANLIB
   8573   # Extract the first word of "ranlib", so it can be a program name with args.
   8574 set dummy ranlib; ac_word=$2
   8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8576 $as_echo_n "checking for $ac_word... " >&6; }
   8577 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   8578   $as_echo_n "(cached) " >&6
   8579 else
   8580   if test -n "$ac_ct_RANLIB"; then
   8581   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   8582 else
   8583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8584 for as_dir in $PATH
   8585 do
   8586   IFS=$as_save_IFS
   8587   test -z "$as_dir" && as_dir=.
   8588     for ac_exec_ext in '' $ac_executable_extensions; do
   8589   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8590     ac_cv_prog_ac_ct_RANLIB="ranlib"
   8591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8592     break 2
   8593   fi
   8594 done
   8595   done
   8596 IFS=$as_save_IFS
   8597 
   8598 fi
   8599 fi
   8600 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   8601 if test -n "$ac_ct_RANLIB"; then
   8602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   8603 $as_echo "$ac_ct_RANLIB" >&6; }
   8604 else
   8605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8606 $as_echo "no" >&6; }
   8607 fi
   8608 
   8609   if test "x$ac_ct_RANLIB" = x; then
   8610     RANLIB=":"
   8611   else
   8612     case $cross_compiling:$ac_tool_warned in
   8613 yes:)
   8614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8616 ac_tool_warned=yes ;;
   8617 esac
   8618     RANLIB=$ac_ct_RANLIB
   8619   fi
   8620 else
   8621   RANLIB="$ac_cv_prog_RANLIB"
   8622 fi
   8623 
   8624 # Extract the first word of "ld", so it can be a program name with args.
   8625 set dummy ld; ac_word=$2
   8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8627 $as_echo_n "checking for $ac_word... " >&6; }
   8628 if ${ac_cv_path_LD+:} false; then :
   8629   $as_echo_n "(cached) " >&6
   8630 else
   8631   case $LD in
   8632   [\\/]* | ?:[\\/]*)
   8633   ac_cv_path_LD="$LD" # Let the user override the test with a path.
   8634   ;;
   8635   *)
   8636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8637 for as_dir in $PATH
   8638 do
   8639   IFS=$as_save_IFS
   8640   test -z "$as_dir" && as_dir=.
   8641     for ac_exec_ext in '' $ac_executable_extensions; do
   8642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8643     ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
   8644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8645     break 2
   8646   fi
   8647 done
   8648   done
   8649 IFS=$as_save_IFS
   8650 
   8651   test -z "$ac_cv_path_LD" && ac_cv_path_LD="false"
   8652   ;;
   8653 esac
   8654 fi
   8655 LD=$ac_cv_path_LD
   8656 if test -n "$LD"; then
   8657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   8658 $as_echo "$LD" >&6; }
   8659 else
   8660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8661 $as_echo "no" >&6; }
   8662 fi
   8663 
   8664 
   8665 # Extract the first word of "autoconf", so it can be a program name with args.
   8666 set dummy autoconf; ac_word=$2
   8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8668 $as_echo_n "checking for $ac_word... " >&6; }
   8669 if ${ac_cv_path_AUTOCONF+:} false; then :
   8670   $as_echo_n "(cached) " >&6
   8671 else
   8672   case $AUTOCONF in
   8673   [\\/]* | ?:[\\/]*)
   8674   ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
   8675   ;;
   8676   *)
   8677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8678 for as_dir in $PATH
   8679 do
   8680   IFS=$as_save_IFS
   8681   test -z "$as_dir" && as_dir=.
   8682     for ac_exec_ext in '' $ac_executable_extensions; do
   8683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8684     ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
   8685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8686     break 2
   8687   fi
   8688 done
   8689   done
   8690 IFS=$as_save_IFS
   8691 
   8692   test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="false"
   8693   ;;
   8694 esac
   8695 fi
   8696 AUTOCONF=$ac_cv_path_AUTOCONF
   8697 if test -n "$AUTOCONF"; then
   8698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
   8699 $as_echo "$AUTOCONF" >&6; }
   8700 else
   8701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8702 $as_echo "no" >&6; }
   8703 fi
   8704 
   8705 
   8706 
   8707 
   8708 # Check whether --with-mangling was given.
   8709 if test "${with_mangling+set}" = set; then :
   8710   withval=$with_mangling; mangling_map="$with_mangling"
   8711 else
   8712   mangling_map=""
   8713 fi
   8714 
   8715 
   8716 
   8717 # Check whether --with-jemalloc_prefix was given.
   8718 if test "${with_jemalloc_prefix+set}" = set; then :
   8719   withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix"
   8720 else
   8721   if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then
   8722   JEMALLOC_PREFIX=""
   8723 else
   8724   JEMALLOC_PREFIX="je_"
   8725 fi
   8726 
   8727 fi
   8728 
   8729 if test "x$JEMALLOC_PREFIX" = "x" ; then
   8730   $as_echo "#define JEMALLOC_IS_MALLOC 1" >>confdefs.h
   8731 
   8732 else
   8733   JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"`
   8734   cat >>confdefs.h <<_ACEOF
   8735 #define JEMALLOC_PREFIX "$JEMALLOC_PREFIX"
   8736 _ACEOF
   8737 
   8738   cat >>confdefs.h <<_ACEOF
   8739 #define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX"
   8740 _ACEOF
   8741 
   8742 fi
   8743 
   8744 
   8745 
   8746 
   8747 # Check whether --with-export was given.
   8748 if test "${with_export+set}" = set; then :
   8749   withval=$with_export; if test "x$with_export" = "xno"; then
   8750   $as_echo "#define JEMALLOC_EXPORT /**/" >>confdefs.h
   8751 
   8752 fi
   8753 
   8754 fi
   8755 
   8756 
   8757 public_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"
   8758 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
   8759 if test "x$ac_cv_func_memalign" = xyes; then :
   8760   $as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN  " >>confdefs.h
   8761 
   8762 	       public_syms="${public_syms} memalign"
   8763 fi
   8764 
   8765 ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
   8766 if test "x$ac_cv_func_valloc" = xyes; then :
   8767   $as_echo "#define JEMALLOC_OVERRIDE_VALLOC  " >>confdefs.h
   8768 
   8769 	       public_syms="${public_syms} valloc"
   8770 fi
   8771 
   8772 
   8773 wrap_syms=
   8774 if test "x${JEMALLOC_PREFIX}" = "x" ; then
   8775   ac_fn_c_check_func "$LINENO" "__libc_calloc" "ac_cv_func___libc_calloc"
   8776 if test "x$ac_cv_func___libc_calloc" = xyes; then :
   8777   $as_echo "#define JEMALLOC_OVERRIDE___LIBC_CALLOC  " >>confdefs.h
   8778 
   8779 		 wrap_syms="${wrap_syms} __libc_calloc"
   8780 fi
   8781 
   8782   ac_fn_c_check_func "$LINENO" "__libc_free" "ac_cv_func___libc_free"
   8783 if test "x$ac_cv_func___libc_free" = xyes; then :
   8784   $as_echo "#define JEMALLOC_OVERRIDE___LIBC_FREE  " >>confdefs.h
   8785 
   8786 		 wrap_syms="${wrap_syms} __libc_free"
   8787 fi
   8788 
   8789   ac_fn_c_check_func "$LINENO" "__libc_malloc" "ac_cv_func___libc_malloc"
   8790 if test "x$ac_cv_func___libc_malloc" = xyes; then :
   8791   $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MALLOC  " >>confdefs.h
   8792 
   8793 		 wrap_syms="${wrap_syms} __libc_malloc"
   8794 fi
   8795 
   8796   ac_fn_c_check_func "$LINENO" "__libc_memalign" "ac_cv_func___libc_memalign"
   8797 if test "x$ac_cv_func___libc_memalign" = xyes; then :
   8798   $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MEMALIGN  " >>confdefs.h
   8799 
   8800 		 wrap_syms="${wrap_syms} __libc_memalign"
   8801 fi
   8802 
   8803   ac_fn_c_check_func "$LINENO" "__libc_realloc" "ac_cv_func___libc_realloc"
   8804 if test "x$ac_cv_func___libc_realloc" = xyes; then :
   8805   $as_echo "#define JEMALLOC_OVERRIDE___LIBC_REALLOC  " >>confdefs.h
   8806 
   8807 		 wrap_syms="${wrap_syms} __libc_realloc"
   8808 fi
   8809 
   8810   ac_fn_c_check_func "$LINENO" "__libc_valloc" "ac_cv_func___libc_valloc"
   8811 if test "x$ac_cv_func___libc_valloc" = xyes; then :
   8812   $as_echo "#define JEMALLOC_OVERRIDE___LIBC_VALLOC  " >>confdefs.h
   8813 
   8814 		 wrap_syms="${wrap_syms} __libc_valloc"
   8815 fi
   8816 
   8817   ac_fn_c_check_func "$LINENO" "__posix_memalign" "ac_cv_func___posix_memalign"
   8818 if test "x$ac_cv_func___posix_memalign" = xyes; then :
   8819   $as_echo "#define JEMALLOC_OVERRIDE___POSIX_MEMALIGN  " >>confdefs.h
   8820 
   8821 		 wrap_syms="${wrap_syms} __posix_memalign"
   8822 fi
   8823 
   8824 fi
   8825 
   8826 case "${host}" in
   8827   *-*-mingw* | *-*-cygwin*)
   8828     wrap_syms="${wrap_syms} tls_callback"
   8829     ;;
   8830   *)
   8831     ;;
   8832 esac
   8833 
   8834 
   8835 # Check whether --with-private_namespace was given.
   8836 if test "${with_private_namespace+set}" = set; then :
   8837   withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="${with_private_namespace}je_"
   8838 else
   8839   JEMALLOC_PRIVATE_NAMESPACE="je_"
   8840 
   8841 fi
   8842 
   8843 cat >>confdefs.h <<_ACEOF
   8844 #define JEMALLOC_PRIVATE_NAMESPACE $JEMALLOC_PRIVATE_NAMESPACE
   8845 _ACEOF
   8846 
   8847 private_namespace="$JEMALLOC_PRIVATE_NAMESPACE"
   8848 
   8849 
   8850 
   8851 # Check whether --with-install_suffix was given.
   8852 if test "${with_install_suffix+set}" = set; then :
   8853   withval=$with_install_suffix; INSTALL_SUFFIX="$with_install_suffix"
   8854 else
   8855   INSTALL_SUFFIX=
   8856 
   8857 fi
   8858 
   8859 install_suffix="$INSTALL_SUFFIX"
   8860 
   8861 
   8862 
   8863 # Check whether --with-malloc_conf was given.
   8864 if test "${with_malloc_conf+set}" = set; then :
   8865   withval=$with_malloc_conf; JEMALLOC_CONFIG_MALLOC_CONF="$with_malloc_conf"
   8866 else
   8867   JEMALLOC_CONFIG_MALLOC_CONF=""
   8868 
   8869 fi
   8870 
   8871 config_malloc_conf="$JEMALLOC_CONFIG_MALLOC_CONF"
   8872 cat >>confdefs.h <<_ACEOF
   8873 #define JEMALLOC_CONFIG_MALLOC_CONF "$config_malloc_conf"
   8874 _ACEOF
   8875 
   8876 
   8877 je_="je_"
   8878 
   8879 
   8880 cfgoutputs_in="Makefile.in"
   8881 cfgoutputs_in="${cfgoutputs_in} jemalloc.pc.in"
   8882 cfgoutputs_in="${cfgoutputs_in} doc/html.xsl.in"
   8883 cfgoutputs_in="${cfgoutputs_in} doc/manpages.xsl.in"
   8884 cfgoutputs_in="${cfgoutputs_in} doc/jemalloc.xml.in"
   8885 cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_macros.h.in"
   8886 cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_protos.h.in"
   8887 cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_typedefs.h.in"
   8888 cfgoutputs_in="${cfgoutputs_in} include/jemalloc/internal/jemalloc_preamble.h.in"
   8889 cfgoutputs_in="${cfgoutputs_in} test/test.sh.in"
   8890 cfgoutputs_in="${cfgoutputs_in} test/include/test/jemalloc_test.h.in"
   8891 
   8892 cfgoutputs_out="Makefile"
   8893 cfgoutputs_out="${cfgoutputs_out} jemalloc.pc"
   8894 cfgoutputs_out="${cfgoutputs_out} doc/html.xsl"
   8895 cfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl"
   8896 cfgoutputs_out="${cfgoutputs_out} doc/jemalloc.xml"
   8897 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_macros.h"
   8898 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_protos.h"
   8899 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_typedefs.h"
   8900 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_preamble.h"
   8901 cfgoutputs_out="${cfgoutputs_out} test/test.sh"
   8902 cfgoutputs_out="${cfgoutputs_out} test/include/test/jemalloc_test.h"
   8903 
   8904 cfgoutputs_tup="Makefile"
   8905 cfgoutputs_tup="${cfgoutputs_tup} jemalloc.pc:jemalloc.pc.in"
   8906 cfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in"
   8907 cfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in"
   8908 cfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc.xml:doc/jemalloc.xml.in"
   8909 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_macros.h:include/jemalloc/jemalloc_macros.h.in"
   8910 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_protos.h:include/jemalloc/jemalloc_protos.h.in"
   8911 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_typedefs.h:include/jemalloc/jemalloc_typedefs.h.in"
   8912 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_preamble.h"
   8913 cfgoutputs_tup="${cfgoutputs_tup} test/test.sh:test/test.sh.in"
   8914 cfgoutputs_tup="${cfgoutputs_tup} test/include/test/jemalloc_test.h:test/include/test/jemalloc_test.h.in"
   8915 
   8916 cfghdrs_in="include/jemalloc/jemalloc_defs.h.in"
   8917 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/jemalloc_internal_defs.h.in"
   8918 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_symbols.sh"
   8919 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_namespace.sh"
   8920 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_namespace.sh"
   8921 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_unnamespace.sh"
   8922 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/size_classes.sh"
   8923 cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_rename.sh"
   8924 cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_mangle.sh"
   8925 cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc.sh"
   8926 cfghdrs_in="${cfghdrs_in} test/include/test/jemalloc_test_defs.h.in"
   8927 
   8928 cfghdrs_out="include/jemalloc/jemalloc_defs.h"
   8929 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc${install_suffix}.h"
   8930 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols.awk"
   8931 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols_jet.awk"
   8932 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_symbols.txt"
   8933 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_namespace.h"
   8934 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_unnamespace.h"
   8935 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/size_classes.h"
   8936 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_protos_jet.h"
   8937 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_rename.h"
   8938 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle.h"
   8939 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle_jet.h"
   8940 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/jemalloc_internal_defs.h"
   8941 cfghdrs_out="${cfghdrs_out} test/include/test/jemalloc_test_defs.h"
   8942 
   8943 cfghdrs_tup="include/jemalloc/jemalloc_defs.h:include/jemalloc/jemalloc_defs.h.in"
   8944 cfghdrs_tup="${cfghdrs_tup} include/jemalloc/internal/jemalloc_internal_defs.h:include/jemalloc/internal/jemalloc_internal_defs.h.in"
   8945 cfghdrs_tup="${cfghdrs_tup} test/include/test/jemalloc_test_defs.h:test/include/test/jemalloc_test_defs.h.in"
   8946 
   8947 # Check whether --enable-debug was given.
   8948 if test "${enable_debug+set}" = set; then :
   8949   enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then
   8950   enable_debug="0"
   8951 else
   8952   enable_debug="1"
   8953 fi
   8954 
   8955 else
   8956   enable_debug="0"
   8957 
   8958 fi
   8959 
   8960 if test "x$enable_debug" = "x1" ; then
   8961   $as_echo "#define JEMALLOC_DEBUG  " >>confdefs.h
   8962 
   8963 fi
   8964 if test "x$enable_debug" = "x1" ; then
   8965   $as_echo "#define JEMALLOC_DEBUG  " >>confdefs.h
   8966 
   8967 fi
   8968 
   8969 
   8970 if test "x$enable_debug" = "x0" ; then
   8971   if test "x$GCC" = "xyes" ; then
   8972 
   8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
   8974 $as_echo_n "checking whether compiler supports -O3... " >&6; }
   8975 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   8976 T_APPEND_V=-O3
   8977   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   8978   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   8979 else
   8980   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   8981 fi
   8982 
   8983 
   8984 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   8985   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   8986 else
   8987   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   8988 fi
   8989 
   8990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8991 /* end confdefs.h.  */
   8992 
   8993 
   8994 int
   8995 main ()
   8996 {
   8997 
   8998     return 0;
   8999 
   9000   ;
   9001   return 0;
   9002 }
   9003 _ACEOF
   9004 if ac_fn_c_try_compile "$LINENO"; then :
   9005   je_cv_cflags_added=-O3
   9006               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9007 $as_echo "yes" >&6; }
   9008 else
   9009   je_cv_cflags_added=
   9010               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9011 $as_echo "no" >&6; }
   9012               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   9013 
   9014 fi
   9015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9016 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9017   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9018 else
   9019   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9020 fi
   9021 
   9022 
   9023 
   9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
   9025 $as_echo_n "checking whether compiler supports -O3... " >&6; }
   9026 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
   9027 T_APPEND_V=-O3
   9028   if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9029   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
   9030 else
   9031   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
   9032 fi
   9033 
   9034 
   9035 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   9036   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   9037 else
   9038   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   9039 fi
   9040 
   9041 ac_ext=cpp
   9042 ac_cpp='$CXXCPP $CPPFLAGS'
   9043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   9046 
   9047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9048 /* end confdefs.h.  */
   9049 
   9050 
   9051 int
   9052 main ()
   9053 {
   9054 
   9055     return 0;
   9056 
   9057   ;
   9058   return 0;
   9059 }
   9060 _ACEOF
   9061 if ac_fn_cxx_try_compile "$LINENO"; then :
   9062   je_cv_cxxflags_added=-O3
   9063               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9064 $as_echo "yes" >&6; }
   9065 else
   9066   je_cv_cxxflags_added=
   9067               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9068 $as_echo "no" >&6; }
   9069               CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
   9070 
   9071 fi
   9072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9073 ac_ext=c
   9074 ac_cpp='$CPP $CPPFLAGS'
   9075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9078 
   9079 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   9080   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   9081 else
   9082   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   9083 fi
   9084 
   9085 
   9086 
   9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5
   9088 $as_echo_n "checking whether compiler supports -funroll-loops... " >&6; }
   9089 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   9090 T_APPEND_V=-funroll-loops
   9091   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9092   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   9093 else
   9094   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   9095 fi
   9096 
   9097 
   9098 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9099   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9100 else
   9101   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9102 fi
   9103 
   9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9105 /* end confdefs.h.  */
   9106 
   9107 
   9108 int
   9109 main ()
   9110 {
   9111 
   9112     return 0;
   9113 
   9114   ;
   9115   return 0;
   9116 }
   9117 _ACEOF
   9118 if ac_fn_c_try_compile "$LINENO"; then :
   9119   je_cv_cflags_added=-funroll-loops
   9120               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9121 $as_echo "yes" >&6; }
   9122 else
   9123   je_cv_cflags_added=
   9124               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9125 $as_echo "no" >&6; }
   9126               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   9127 
   9128 fi
   9129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9130 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9131   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9132 else
   9133   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9134 fi
   9135 
   9136 
   9137   elif test "x$je_cv_msvc" = "xyes" ; then
   9138 
   9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
   9140 $as_echo_n "checking whether compiler supports -O2... " >&6; }
   9141 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   9142 T_APPEND_V=-O2
   9143   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9144   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   9145 else
   9146   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   9147 fi
   9148 
   9149 
   9150 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9151   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9152 else
   9153   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9154 fi
   9155 
   9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9157 /* end confdefs.h.  */
   9158 
   9159 
   9160 int
   9161 main ()
   9162 {
   9163 
   9164     return 0;
   9165 
   9166   ;
   9167   return 0;
   9168 }
   9169 _ACEOF
   9170 if ac_fn_c_try_compile "$LINENO"; then :
   9171   je_cv_cflags_added=-O2
   9172               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9173 $as_echo "yes" >&6; }
   9174 else
   9175   je_cv_cflags_added=
   9176               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9177 $as_echo "no" >&6; }
   9178               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   9179 
   9180 fi
   9181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9182 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9183   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9184 else
   9185   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9186 fi
   9187 
   9188 
   9189 
   9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
   9191 $as_echo_n "checking whether compiler supports -O2... " >&6; }
   9192 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
   9193 T_APPEND_V=-O2
   9194   if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9195   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
   9196 else
   9197   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
   9198 fi
   9199 
   9200 
   9201 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   9202   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   9203 else
   9204   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   9205 fi
   9206 
   9207 ac_ext=cpp
   9208 ac_cpp='$CXXCPP $CPPFLAGS'
   9209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   9212 
   9213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9214 /* end confdefs.h.  */
   9215 
   9216 
   9217 int
   9218 main ()
   9219 {
   9220 
   9221     return 0;
   9222 
   9223   ;
   9224   return 0;
   9225 }
   9226 _ACEOF
   9227 if ac_fn_cxx_try_compile "$LINENO"; then :
   9228   je_cv_cxxflags_added=-O2
   9229               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9230 $as_echo "yes" >&6; }
   9231 else
   9232   je_cv_cxxflags_added=
   9233               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9234 $as_echo "no" >&6; }
   9235               CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
   9236 
   9237 fi
   9238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9239 ac_ext=c
   9240 ac_cpp='$CPP $CPPFLAGS'
   9241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9244 
   9245 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   9246   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   9247 else
   9248   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   9249 fi
   9250 
   9251 
   9252   else
   9253 
   9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
   9255 $as_echo_n "checking whether compiler supports -O... " >&6; }
   9256 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   9257 T_APPEND_V=-O
   9258   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9259   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   9260 else
   9261   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   9262 fi
   9263 
   9264 
   9265 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9266   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9267 else
   9268   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9269 fi
   9270 
   9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9272 /* end confdefs.h.  */
   9273 
   9274 
   9275 int
   9276 main ()
   9277 {
   9278 
   9279     return 0;
   9280 
   9281   ;
   9282   return 0;
   9283 }
   9284 _ACEOF
   9285 if ac_fn_c_try_compile "$LINENO"; then :
   9286   je_cv_cflags_added=-O
   9287               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9288 $as_echo "yes" >&6; }
   9289 else
   9290   je_cv_cflags_added=
   9291               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9292 $as_echo "no" >&6; }
   9293               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   9294 
   9295 fi
   9296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9297 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9298   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9299 else
   9300   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9301 fi
   9302 
   9303 
   9304 
   9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
   9306 $as_echo_n "checking whether compiler supports -O... " >&6; }
   9307 T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
   9308 T_APPEND_V=-O
   9309   if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9310   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
   9311 else
   9312   CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
   9313 fi
   9314 
   9315 
   9316 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   9317   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   9318 else
   9319   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   9320 fi
   9321 
   9322 ac_ext=cpp
   9323 ac_cpp='$CXXCPP $CPPFLAGS'
   9324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   9327 
   9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9329 /* end confdefs.h.  */
   9330 
   9331 
   9332 int
   9333 main ()
   9334 {
   9335 
   9336     return 0;
   9337 
   9338   ;
   9339   return 0;
   9340 }
   9341 _ACEOF
   9342 if ac_fn_cxx_try_compile "$LINENO"; then :
   9343   je_cv_cxxflags_added=-O
   9344               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9345 $as_echo "yes" >&6; }
   9346 else
   9347   je_cv_cxxflags_added=
   9348               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9349 $as_echo "no" >&6; }
   9350               CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
   9351 
   9352 fi
   9353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9354 ac_ext=c
   9355 ac_cpp='$CPP $CPPFLAGS'
   9356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9359 
   9360 if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
   9361   CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
   9362 else
   9363   CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
   9364 fi
   9365 
   9366 
   9367   fi
   9368 fi
   9369 
   9370 # Check whether --enable-stats was given.
   9371 if test "${enable_stats+set}" = set; then :
   9372   enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then
   9373   enable_stats="0"
   9374 else
   9375   enable_stats="1"
   9376 fi
   9377 
   9378 else
   9379   enable_stats="1"
   9380 
   9381 fi
   9382 
   9383 if test "x$enable_stats" = "x1" ; then
   9384   $as_echo "#define JEMALLOC_STATS  " >>confdefs.h
   9385 
   9386 fi
   9387 
   9388 
   9389 # Check whether --enable-prof was given.
   9390 if test "${enable_prof+set}" = set; then :
   9391   enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then
   9392   enable_prof="0"
   9393 else
   9394   enable_prof="1"
   9395 fi
   9396 
   9397 else
   9398   enable_prof="0"
   9399 
   9400 fi
   9401 
   9402 if test "x$enable_prof" = "x1" ; then
   9403   backtrace_method=""
   9404 else
   9405   backtrace_method="N/A"
   9406 fi
   9407 
   9408 # Check whether --enable-prof-libunwind was given.
   9409 if test "${enable_prof_libunwind+set}" = set; then :
   9410   enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then
   9411   enable_prof_libunwind="0"
   9412 else
   9413   enable_prof_libunwind="1"
   9414 fi
   9415 
   9416 else
   9417   enable_prof_libunwind="0"
   9418 
   9419 fi
   9420 
   9421 
   9422 # Check whether --with-static_libunwind was given.
   9423 if test "${with_static_libunwind+set}" = set; then :
   9424   withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then
   9425   LUNWIND="-lunwind"
   9426 else
   9427   if test ! -f "$with_static_libunwind" ; then
   9428     as_fn_error $? "Static libunwind not found: $with_static_libunwind" "$LINENO" 5
   9429   fi
   9430   LUNWIND="$with_static_libunwind"
   9431 fi
   9432 else
   9433   LUNWIND="-lunwind"
   9434 
   9435 fi
   9436 
   9437 if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then
   9438   for ac_header in libunwind.h
   9439 do :
   9440   ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
   9441 if test "x$ac_cv_header_libunwind_h" = xyes; then :
   9442   cat >>confdefs.h <<_ACEOF
   9443 #define HAVE_LIBUNWIND_H 1
   9444 _ACEOF
   9445 
   9446 else
   9447   enable_prof_libunwind="0"
   9448 fi
   9449 
   9450 done
   9451 
   9452   if test "x$LUNWIND" = "x-lunwind" ; then
   9453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unw_backtrace in -lunwind" >&5
   9454 $as_echo_n "checking for unw_backtrace in -lunwind... " >&6; }
   9455 if ${ac_cv_lib_unwind_unw_backtrace+:} false; then :
   9456   $as_echo_n "(cached) " >&6
   9457 else
   9458   ac_check_lib_save_LIBS=$LIBS
   9459 LIBS="-lunwind  $LIBS"
   9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9461 /* end confdefs.h.  */
   9462 
   9463 /* Override any GCC internal prototype to avoid an error.
   9464    Use char because int might match the return type of a GCC
   9465    builtin and then its argument prototype would still apply.  */
   9466 #ifdef __cplusplus
   9467 extern "C"
   9468 #endif
   9469 char unw_backtrace ();
   9470 int
   9471 main ()
   9472 {
   9473 return unw_backtrace ();
   9474   ;
   9475   return 0;
   9476 }
   9477 _ACEOF
   9478 if ac_fn_c_try_link "$LINENO"; then :
   9479   ac_cv_lib_unwind_unw_backtrace=yes
   9480 else
   9481   ac_cv_lib_unwind_unw_backtrace=no
   9482 fi
   9483 rm -f core conftest.err conftest.$ac_objext \
   9484     conftest$ac_exeext conftest.$ac_ext
   9485 LIBS=$ac_check_lib_save_LIBS
   9486 fi
   9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_unw_backtrace" >&5
   9488 $as_echo "$ac_cv_lib_unwind_unw_backtrace" >&6; }
   9489 if test "x$ac_cv_lib_unwind_unw_backtrace" = xyes; then :
   9490   T_APPEND_V=$LUNWIND
   9491   if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9492   LIBS="${LIBS}${T_APPEND_V}"
   9493 else
   9494   LIBS="${LIBS} ${T_APPEND_V}"
   9495 fi
   9496 
   9497 
   9498 else
   9499   enable_prof_libunwind="0"
   9500 fi
   9501 
   9502   else
   9503     T_APPEND_V=$LUNWIND
   9504   if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9505   LIBS="${LIBS}${T_APPEND_V}"
   9506 else
   9507   LIBS="${LIBS} ${T_APPEND_V}"
   9508 fi
   9509 
   9510 
   9511   fi
   9512   if test "x${enable_prof_libunwind}" = "x1" ; then
   9513     backtrace_method="libunwind"
   9514     $as_echo "#define JEMALLOC_PROF_LIBUNWIND  " >>confdefs.h
   9515 
   9516   fi
   9517 fi
   9518 
   9519 # Check whether --enable-prof-libgcc was given.
   9520 if test "${enable_prof_libgcc+set}" = set; then :
   9521   enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then
   9522   enable_prof_libgcc="0"
   9523 else
   9524   enable_prof_libgcc="1"
   9525 fi
   9526 
   9527 else
   9528   enable_prof_libgcc="1"
   9529 
   9530 fi
   9531 
   9532 if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \
   9533      -a "x$GCC" = "xyes" ; then
   9534   for ac_header in unwind.h
   9535 do :
   9536   ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
   9537 if test "x$ac_cv_header_unwind_h" = xyes; then :
   9538   cat >>confdefs.h <<_ACEOF
   9539 #define HAVE_UNWIND_H 1
   9540 _ACEOF
   9541 
   9542 else
   9543   enable_prof_libgcc="0"
   9544 fi
   9545 
   9546 done
   9547 
   9548   if test "x${enable_prof_libgcc}" = "x1" ; then
   9549     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5
   9550 $as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; }
   9551 if ${ac_cv_lib_gcc__Unwind_Backtrace+:} false; then :
   9552   $as_echo_n "(cached) " >&6
   9553 else
   9554   ac_check_lib_save_LIBS=$LIBS
   9555 LIBS="-lgcc  $LIBS"
   9556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9557 /* end confdefs.h.  */
   9558 
   9559 /* Override any GCC internal prototype to avoid an error.
   9560    Use char because int might match the return type of a GCC
   9561    builtin and then its argument prototype would still apply.  */
   9562 #ifdef __cplusplus
   9563 extern "C"
   9564 #endif
   9565 char _Unwind_Backtrace ();
   9566 int
   9567 main ()
   9568 {
   9569 return _Unwind_Backtrace ();
   9570   ;
   9571   return 0;
   9572 }
   9573 _ACEOF
   9574 if ac_fn_c_try_link "$LINENO"; then :
   9575   ac_cv_lib_gcc__Unwind_Backtrace=yes
   9576 else
   9577   ac_cv_lib_gcc__Unwind_Backtrace=no
   9578 fi
   9579 rm -f core conftest.err conftest.$ac_objext \
   9580     conftest$ac_exeext conftest.$ac_ext
   9581 LIBS=$ac_check_lib_save_LIBS
   9582 fi
   9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5
   9584 $as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; }
   9585 if test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes; then :
   9586   T_APPEND_V=-lgcc
   9587   if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9588   LIBS="${LIBS}${T_APPEND_V}"
   9589 else
   9590   LIBS="${LIBS} ${T_APPEND_V}"
   9591 fi
   9592 
   9593 
   9594 else
   9595   enable_prof_libgcc="0"
   9596 fi
   9597 
   9598   fi
   9599   if test "x${enable_prof_libgcc}" = "x1" ; then
   9600     backtrace_method="libgcc"
   9601     $as_echo "#define JEMALLOC_PROF_LIBGCC  " >>confdefs.h
   9602 
   9603   fi
   9604 else
   9605   enable_prof_libgcc="0"
   9606 fi
   9607 
   9608 # Check whether --enable-prof-gcc was given.
   9609 if test "${enable_prof_gcc+set}" = set; then :
   9610   enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then
   9611   enable_prof_gcc="0"
   9612 else
   9613   enable_prof_gcc="1"
   9614 fi
   9615 
   9616 else
   9617   enable_prof_gcc="1"
   9618 
   9619 fi
   9620 
   9621 if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \
   9622      -a "x$GCC" = "xyes" ; then
   9623 
   9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fno-omit-frame-pointer" >&5
   9625 $as_echo_n "checking whether compiler supports -fno-omit-frame-pointer... " >&6; }
   9626 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   9627 T_APPEND_V=-fno-omit-frame-pointer
   9628   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9629   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   9630 else
   9631   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   9632 fi
   9633 
   9634 
   9635 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9636   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9637 else
   9638   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9639 fi
   9640 
   9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9642 /* end confdefs.h.  */
   9643 
   9644 
   9645 int
   9646 main ()
   9647 {
   9648 
   9649     return 0;
   9650 
   9651   ;
   9652   return 0;
   9653 }
   9654 _ACEOF
   9655 if ac_fn_c_try_compile "$LINENO"; then :
   9656   je_cv_cflags_added=-fno-omit-frame-pointer
   9657               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   9658 $as_echo "yes" >&6; }
   9659 else
   9660   je_cv_cflags_added=
   9661               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9662 $as_echo "no" >&6; }
   9663               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   9664 
   9665 fi
   9666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9667 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   9668   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   9669 else
   9670   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   9671 fi
   9672 
   9673 
   9674   backtrace_method="gcc intrinsics"
   9675   $as_echo "#define JEMALLOC_PROF_GCC  " >>confdefs.h
   9676 
   9677 else
   9678   enable_prof_gcc="0"
   9679 fi
   9680 
   9681 if test "x$backtrace_method" = "x" ; then
   9682   backtrace_method="none (disabling profiling)"
   9683   enable_prof="0"
   9684 fi
   9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5
   9686 $as_echo_n "checking configured backtracing method... " >&6; }
   9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5
   9688 $as_echo "$backtrace_method" >&6; }
   9689 if test "x$enable_prof" = "x1" ; then
   9690     T_APPEND_V=$LM
   9691   if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   9692   LIBS="${LIBS}${T_APPEND_V}"
   9693 else
   9694   LIBS="${LIBS} ${T_APPEND_V}"
   9695 fi
   9696 
   9697 
   9698 
   9699   $as_echo "#define JEMALLOC_PROF  " >>confdefs.h
   9700 
   9701 fi
   9702 
   9703 
   9704 if test "x${maps_coalesce}" = "x1" ; then
   9705   $as_echo "#define JEMALLOC_MAPS_COALESCE  " >>confdefs.h
   9706 
   9707 fi
   9708 
   9709 if test "x$default_retain" = "x1" ; then
   9710   $as_echo "#define JEMALLOC_RETAIN  " >>confdefs.h
   9711 
   9712 fi
   9713 
   9714 have_dss="1"
   9715 ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
   9716 if test "x$ac_cv_func_sbrk" = xyes; then :
   9717   have_sbrk="1"
   9718 else
   9719   have_sbrk="0"
   9720 fi
   9721 
   9722 if test "x$have_sbrk" = "x1" ; then
   9723   if test "x$sbrk_deprecated" = "x1" ; then
   9724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling dss allocation because sbrk is deprecated" >&5
   9725 $as_echo "Disabling dss allocation because sbrk is deprecated" >&6; }
   9726     have_dss="0"
   9727   fi
   9728 else
   9729   have_dss="0"
   9730 fi
   9731 
   9732 if test "x$have_dss" = "x1" ; then
   9733   $as_echo "#define JEMALLOC_DSS  " >>confdefs.h
   9734 
   9735 fi
   9736 
   9737 # Check whether --enable-fill was given.
   9738 if test "${enable_fill+set}" = set; then :
   9739   enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then
   9740   enable_fill="0"
   9741 else
   9742   enable_fill="1"
   9743 fi
   9744 
   9745 else
   9746   enable_fill="1"
   9747 
   9748 fi
   9749 
   9750 if test "x$enable_fill" = "x1" ; then
   9751   $as_echo "#define JEMALLOC_FILL  " >>confdefs.h
   9752 
   9753 fi
   9754 
   9755 
   9756 # Check whether --enable-utrace was given.
   9757 if test "${enable_utrace+set}" = set; then :
   9758   enableval=$enable_utrace; if test "x$enable_utrace" = "xno" ; then
   9759   enable_utrace="0"
   9760 else
   9761   enable_utrace="1"
   9762 fi
   9763 
   9764 else
   9765   enable_utrace="0"
   9766 
   9767 fi
   9768 
   9769 
   9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5
   9771 $as_echo_n "checking whether utrace(2) is compilable... " >&6; }
   9772 if ${je_cv_utrace+:} false; then :
   9773   $as_echo_n "(cached) " >&6
   9774 else
   9775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9776 /* end confdefs.h.  */
   9777 
   9778 #include <sys/types.h>
   9779 #include <sys/param.h>
   9780 #include <sys/time.h>
   9781 #include <sys/uio.h>
   9782 #include <sys/ktrace.h>
   9783 
   9784 int
   9785 main ()
   9786 {
   9787 
   9788 	utrace((void *)0, 0);
   9789 
   9790   ;
   9791   return 0;
   9792 }
   9793 _ACEOF
   9794 if ac_fn_c_try_link "$LINENO"; then :
   9795   je_cv_utrace=yes
   9796 else
   9797   je_cv_utrace=no
   9798 fi
   9799 rm -f core conftest.err conftest.$ac_objext \
   9800     conftest$ac_exeext conftest.$ac_ext
   9801 fi
   9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5
   9803 $as_echo "$je_cv_utrace" >&6; }
   9804 
   9805 if test "x${je_cv_utrace}" = "xno" ; then
   9806   enable_utrace="0"
   9807 fi
   9808 if test "x$enable_utrace" = "x1" ; then
   9809   $as_echo "#define JEMALLOC_UTRACE  " >>confdefs.h
   9810 
   9811 fi
   9812 
   9813 
   9814 # Check whether --enable-xmalloc was given.
   9815 if test "${enable_xmalloc+set}" = set; then :
   9816   enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then
   9817   enable_xmalloc="0"
   9818 else
   9819   enable_xmalloc="1"
   9820 fi
   9821 
   9822 else
   9823   enable_xmalloc="0"
   9824 
   9825 fi
   9826 
   9827 if test "x$enable_xmalloc" = "x1" ; then
   9828   $as_echo "#define JEMALLOC_XMALLOC  " >>confdefs.h
   9829 
   9830 fi
   9831 
   9832 
   9833 # Check whether --enable-cache-oblivious was given.
   9834 if test "${enable_cache_oblivious+set}" = set; then :
   9835   enableval=$enable_cache_oblivious; if test "x$enable_cache_oblivious" = "xno" ; then
   9836   enable_cache_oblivious="0"
   9837 else
   9838   enable_cache_oblivious="1"
   9839 fi
   9840 
   9841 else
   9842   enable_cache_oblivious="1"
   9843 
   9844 fi
   9845 
   9846 if test "x$enable_cache_oblivious" = "x1" ; then
   9847   $as_echo "#define JEMALLOC_CACHE_OBLIVIOUS  " >>confdefs.h
   9848 
   9849 fi
   9850 
   9851 
   9852 # Check whether --enable-log was given.
   9853 if test "${enable_log+set}" = set; then :
   9854   enableval=$enable_log; if test "x$enable_log" = "xno" ; then
   9855   enable_log="0"
   9856 else
   9857   enable_log="1"
   9858 fi
   9859 
   9860 else
   9861   enable_log="0"
   9862 
   9863 fi
   9864 
   9865 if test "x$enable_log" = "x1" ; then
   9866   $as_echo "#define JEMALLOC_LOG  " >>confdefs.h
   9867 
   9868 fi
   9869 
   9870 
   9871 
   9872 
   9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_unreachable is compilable" >&5
   9874 $as_echo_n "checking whether a program using __builtin_unreachable is compilable... " >&6; }
   9875 if ${je_cv_gcc_builtin_unreachable+:} false; then :
   9876   $as_echo_n "(cached) " >&6
   9877 else
   9878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9879 /* end confdefs.h.  */
   9880 
   9881 void foo (void) {
   9882   __builtin_unreachable();
   9883 }
   9884 
   9885 int
   9886 main ()
   9887 {
   9888 
   9889 	{
   9890 		foo();
   9891 	}
   9892 
   9893   ;
   9894   return 0;
   9895 }
   9896 _ACEOF
   9897 if ac_fn_c_try_link "$LINENO"; then :
   9898   je_cv_gcc_builtin_unreachable=yes
   9899 else
   9900   je_cv_gcc_builtin_unreachable=no
   9901 fi
   9902 rm -f core conftest.err conftest.$ac_objext \
   9903     conftest$ac_exeext conftest.$ac_ext
   9904 fi
   9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_unreachable" >&5
   9906 $as_echo "$je_cv_gcc_builtin_unreachable" >&6; }
   9907 
   9908 if test "x${je_cv_gcc_builtin_unreachable}" = "xyes" ; then
   9909   $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable" >>confdefs.h
   9910 
   9911 else
   9912   $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE abort" >>confdefs.h
   9913 
   9914 fi
   9915 
   9916 
   9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_ffsl is compilable" >&5
   9918 $as_echo_n "checking whether a program using __builtin_ffsl is compilable... " >&6; }
   9919 if ${je_cv_gcc_builtin_ffsl+:} false; then :
   9920   $as_echo_n "(cached) " >&6
   9921 else
   9922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9923 /* end confdefs.h.  */
   9924 
   9925 #include <stdio.h>
   9926 #include <strings.h>
   9927 #include <string.h>
   9928 
   9929 int
   9930 main ()
   9931 {
   9932 
   9933 	{
   9934 		int rv = __builtin_ffsl(0x08);
   9935 		printf("%d\n", rv);
   9936 	}
   9937 
   9938   ;
   9939   return 0;
   9940 }
   9941 _ACEOF
   9942 if ac_fn_c_try_link "$LINENO"; then :
   9943   je_cv_gcc_builtin_ffsl=yes
   9944 else
   9945   je_cv_gcc_builtin_ffsl=no
   9946 fi
   9947 rm -f core conftest.err conftest.$ac_objext \
   9948     conftest$ac_exeext conftest.$ac_ext
   9949 fi
   9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_ffsl" >&5
   9951 $as_echo "$je_cv_gcc_builtin_ffsl" >&6; }
   9952 
   9953 if test "x${je_cv_gcc_builtin_ffsl}" = "xyes" ; then
   9954   $as_echo "#define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll" >>confdefs.h
   9955 
   9956   $as_echo "#define JEMALLOC_INTERNAL_FFSL __builtin_ffsl" >>confdefs.h
   9957 
   9958   $as_echo "#define JEMALLOC_INTERNAL_FFS __builtin_ffs" >>confdefs.h
   9959 
   9960 else
   9961 
   9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5
   9963 $as_echo_n "checking whether a program using ffsl is compilable... " >&6; }
   9964 if ${je_cv_function_ffsl+:} false; then :
   9965   $as_echo_n "(cached) " >&6
   9966 else
   9967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9968 /* end confdefs.h.  */
   9969 
   9970   #include <stdio.h>
   9971   #include <strings.h>
   9972   #include <string.h>
   9973 
   9974 int
   9975 main ()
   9976 {
   9977 
   9978 	{
   9979 		int rv = ffsl(0x08);
   9980 		printf("%d\n", rv);
   9981 	}
   9982 
   9983   ;
   9984   return 0;
   9985 }
   9986 _ACEOF
   9987 if ac_fn_c_try_link "$LINENO"; then :
   9988   je_cv_function_ffsl=yes
   9989 else
   9990   je_cv_function_ffsl=no
   9991 fi
   9992 rm -f core conftest.err conftest.$ac_objext \
   9993     conftest$ac_exeext conftest.$ac_ext
   9994 fi
   9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5
   9996 $as_echo "$je_cv_function_ffsl" >&6; }
   9997 
   9998   if test "x${je_cv_function_ffsl}" = "xyes" ; then
   9999     $as_echo "#define JEMALLOC_INTERNAL_FFSLL ffsll" >>confdefs.h
   10000 
   10001     $as_echo "#define JEMALLOC_INTERNAL_FFSL ffsl" >>confdefs.h
   10002 
   10003     $as_echo "#define JEMALLOC_INTERNAL_FFS ffs" >>confdefs.h
   10004 
   10005   else
   10006     as_fn_error $? "Cannot build without ffsl(3) or __builtin_ffsl()" "$LINENO" 5
   10007   fi
   10008 fi
   10009 
   10010 
   10011 # Check whether --with-lg_quantum was given.
   10012 if test "${with_lg_quantum+set}" = set; then :
   10013   withval=$with_lg_quantum; LG_QUANTA="$with_lg_quantum"
   10014 else
   10015   LG_QUANTA="3 4"
   10016 fi
   10017 
   10018 if test "x$with_lg_quantum" != "x" ; then
   10019   cat >>confdefs.h <<_ACEOF
   10020 #define LG_QUANTUM $with_lg_quantum
   10021 _ACEOF
   10022 
   10023 fi
   10024 
   10025 
   10026 # Check whether --with-lg_page was given.
   10027 if test "${with_lg_page+set}" = set; then :
   10028   withval=$with_lg_page; LG_PAGE="$with_lg_page"
   10029 else
   10030   LG_PAGE="detect"
   10031 fi
   10032 
   10033 if test "x$LG_PAGE" = "xdetect"; then
   10034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking LG_PAGE" >&5
   10035 $as_echo_n "checking LG_PAGE... " >&6; }
   10036 if ${je_cv_lg_page+:} false; then :
   10037   $as_echo_n "(cached) " >&6
   10038 else
   10039   if test "$cross_compiling" = yes; then :
   10040   je_cv_lg_page=12
   10041 else
   10042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10043 /* end confdefs.h.  */
   10044 
   10045 #include <strings.h>
   10046 #ifdef _WIN32
   10047 #include <windows.h>
   10048 #else
   10049 #include <unistd.h>
   10050 #endif
   10051 #include <stdio.h>
   10052 
   10053 int
   10054 main ()
   10055 {
   10056 
   10057     int result;
   10058     FILE *f;
   10059 
   10060 #ifdef _WIN32
   10061     SYSTEM_INFO si;
   10062     GetSystemInfo(&si);
   10063     result = si.dwPageSize;
   10064 #else
   10065     result = sysconf(_SC_PAGESIZE);
   10066 #endif
   10067     if (result == -1) {
   10068 	return 1;
   10069     }
   10070     result = JEMALLOC_INTERNAL_FFSL(result) - 1;
   10071 
   10072     f = fopen("conftest.out", "w");
   10073     if (f == NULL) {
   10074 	return 1;
   10075     }
   10076     fprintf(f, "%d", result);
   10077     fclose(f);
   10078 
   10079     return 0;
   10080 
   10081   ;
   10082   return 0;
   10083 }
   10084 _ACEOF
   10085 if ac_fn_c_try_run "$LINENO"; then :
   10086   je_cv_lg_page=`cat conftest.out`
   10087 else
   10088   je_cv_lg_page=undefined
   10089 fi
   10090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10091   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10092 fi
   10093 
   10094 fi
   10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_page" >&5
   10096 $as_echo "$je_cv_lg_page" >&6; }
   10097 fi
   10098 if test "x${je_cv_lg_page}" != "x" ; then
   10099   LG_PAGE="${je_cv_lg_page}"
   10100 fi
   10101 if test "x${LG_PAGE}" != "xundefined" ; then
   10102    cat >>confdefs.h <<_ACEOF
   10103 #define LG_PAGE $LG_PAGE
   10104 _ACEOF
   10105 
   10106 else
   10107    as_fn_error $? "cannot determine value for LG_PAGE" "$LINENO" 5
   10108 fi
   10109 
   10110 
   10111 # Check whether --with-lg_hugepage was given.
   10112 if test "${with_lg_hugepage+set}" = set; then :
   10113   withval=$with_lg_hugepage; je_cv_lg_hugepage="${with_lg_hugepage}"
   10114 else
   10115   je_cv_lg_hugepage=""
   10116 fi
   10117 
   10118 if test "x${je_cv_lg_hugepage}" = "x" ; then
   10119           if test -e "/proc/meminfo" ; then
   10120     hpsk=`cat /proc/meminfo 2>/dev/null | \
   10121           grep -e '^Hugepagesize:[[:space:]]\+[0-9]\+[[:space:]]kB$' | \
   10122           awk '{print $2}'`
   10123     if test "x${hpsk}" != "x" ; then
   10124       je_cv_lg_hugepage=10
   10125       while test "${hpsk}" -gt 1 ; do
   10126         hpsk="$((hpsk / 2))"
   10127         je_cv_lg_hugepage="$((je_cv_lg_hugepage + 1))"
   10128       done
   10129     fi
   10130   fi
   10131 
   10132     if test "x${je_cv_lg_hugepage}" = "x" ; then
   10133     je_cv_lg_hugepage=21
   10134   fi
   10135 fi
   10136 if test "x${LG_PAGE}" != "xundefined" -a \
   10137         "${je_cv_lg_hugepage}" -lt "${LG_PAGE}" ; then
   10138   as_fn_error $? "Huge page size (2^${je_cv_lg_hugepage}) must be at least page size (2^${LG_PAGE})" "$LINENO" 5
   10139 fi
   10140 cat >>confdefs.h <<_ACEOF
   10141 #define LG_HUGEPAGE ${je_cv_lg_hugepage}
   10142 _ACEOF
   10143 
   10144 
   10145 
   10146 # Check whether --with-lg_page_sizes was given.
   10147 if test "${with_lg_page_sizes+set}" = set; then :
   10148   withval=$with_lg_page_sizes; LG_PAGE_SIZES="$with_lg_page_sizes"
   10149 else
   10150   LG_PAGE_SIZES="$LG_PAGE"
   10151 fi
   10152 
   10153 
   10154 
   10155 
   10156 # Check whether --with-version was given.
   10157 if test "${with_version+set}" = set; then :
   10158   withval=$with_version;
   10159     echo "${with_version}" | grep '^[0-9]\+\.[0-9]\+\.[0-9]\+-[0-9]\+-g[0-9a-f]\+$' 2>&1 1>/dev/null
   10160     if test $? -eq 0 ; then
   10161       echo "$with_version" > "${objroot}VERSION"
   10162     else
   10163       echo "${with_version}" | grep '^VERSION$' 2>&1 1>/dev/null
   10164       if test $? -ne 0 ; then
   10165         as_fn_error $? "${with_version} does not match <major>.<minor>.<bugfix>-<nrev>-g<gid> or VERSION" "$LINENO" 5
   10166       fi
   10167     fi
   10168 
   10169 else
   10170 
   10171         if test "x`test ! \"${srcroot}\" && cd \"${srcroot}\"; git rev-parse --is-inside-work-tree 2>/dev/null`" = "xtrue" ; then
   10172                         for pattern in '[0-9].[0-9].[0-9]' '[0-9].[0-9].[0-9][0-9]' \
   10173                      '[0-9].[0-9][0-9].[0-9]' '[0-9].[0-9][0-9].[0-9][0-9]' \
   10174                      '[0-9][0-9].[0-9].[0-9]' '[0-9][0-9].[0-9].[0-9][0-9]' \
   10175                      '[0-9][0-9].[0-9][0-9].[0-9]' \
   10176                      '[0-9][0-9].[0-9][0-9].[0-9][0-9]'; do
   10177         (test ! "${srcroot}" && cd "${srcroot}"; git describe --long --abbrev=40 --match="${pattern}") > "${objroot}VERSION.tmp" 2>/dev/null
   10178         if test $? -eq 0 ; then
   10179           mv "${objroot}VERSION.tmp" "${objroot}VERSION"
   10180           break
   10181         fi
   10182       done
   10183     fi
   10184     rm -f "${objroot}VERSION.tmp"
   10185 
   10186 fi
   10187 
   10188 
   10189 if test ! -e "${objroot}VERSION" ; then
   10190   if test ! -e "${srcroot}VERSION" ; then
   10191     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Missing VERSION file, and unable to generate it; creating bogus VERSION" >&5
   10192 $as_echo "Missing VERSION file, and unable to generate it; creating bogus VERSION" >&6; }
   10193     echo "0.0.0-0-g0000000000000000000000000000000000000000" > "${objroot}VERSION"
   10194   else
   10195     cp ${srcroot}VERSION ${objroot}VERSION
   10196   fi
   10197 fi
   10198 jemalloc_version=`cat "${objroot}VERSION"`
   10199 jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'`
   10200 jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'`
   10201 jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'`
   10202 jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'`
   10203 jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'`
   10204 
   10205 
   10206 
   10207 
   10208 
   10209 
   10210 
   10211 
   10212 if test "x$abi" != "xpecoff" ; then
   10213   $as_echo "#define JEMALLOC_HAVE_PTHREAD  " >>confdefs.h
   10214 
   10215   for ac_header in pthread.h
   10216 do :
   10217   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
   10218 if test "x$ac_cv_header_pthread_h" = xyes; then :
   10219   cat >>confdefs.h <<_ACEOF
   10220 #define HAVE_PTHREAD_H 1
   10221 _ACEOF
   10222 
   10223 else
   10224   as_fn_error $? "pthread.h is missing" "$LINENO" 5
   10225 fi
   10226 
   10227 done
   10228 
   10229       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
   10230 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
   10231 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
   10232   $as_echo_n "(cached) " >&6
   10233 else
   10234   ac_check_lib_save_LIBS=$LIBS
   10235 LIBS="-lpthread  $LIBS"
   10236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10237 /* end confdefs.h.  */
   10238 
   10239 /* Override any GCC internal prototype to avoid an error.
   10240    Use char because int might match the return type of a GCC
   10241    builtin and then its argument prototype would still apply.  */
   10242 #ifdef __cplusplus
   10243 extern "C"
   10244 #endif
   10245 char pthread_create ();
   10246 int
   10247 main ()
   10248 {
   10249 return pthread_create ();
   10250   ;
   10251   return 0;
   10252 }
   10253 _ACEOF
   10254 if ac_fn_c_try_link "$LINENO"; then :
   10255   ac_cv_lib_pthread_pthread_create=yes
   10256 else
   10257   ac_cv_lib_pthread_pthread_create=no
   10258 fi
   10259 rm -f core conftest.err conftest.$ac_objext \
   10260     conftest$ac_exeext conftest.$ac_ext
   10261 LIBS=$ac_check_lib_save_LIBS
   10262 fi
   10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
   10264 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
   10265 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
   10266   T_APPEND_V=-lpthread
   10267   if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   10268   LIBS="${LIBS}${T_APPEND_V}"
   10269 else
   10270   LIBS="${LIBS} ${T_APPEND_V}"
   10271 fi
   10272 
   10273 
   10274 else
   10275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
   10276 $as_echo_n "checking for library containing pthread_create... " >&6; }
   10277 if ${ac_cv_search_pthread_create+:} false; then :
   10278   $as_echo_n "(cached) " >&6
   10279 else
   10280   ac_func_search_save_LIBS=$LIBS
   10281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10282 /* end confdefs.h.  */
   10283 
   10284 /* Override any GCC internal prototype to avoid an error.
   10285    Use char because int might match the return type of a GCC
   10286    builtin and then its argument prototype would still apply.  */
   10287 #ifdef __cplusplus
   10288 extern "C"
   10289 #endif
   10290 char pthread_create ();
   10291 int
   10292 main ()
   10293 {
   10294 return pthread_create ();
   10295   ;
   10296   return 0;
   10297 }
   10298 _ACEOF
   10299 for ac_lib in '' ; do
   10300   if test -z "$ac_lib"; then
   10301     ac_res="none required"
   10302   else
   10303     ac_res=-l$ac_lib
   10304     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   10305   fi
   10306   if ac_fn_c_try_link "$LINENO"; then :
   10307   ac_cv_search_pthread_create=$ac_res
   10308 fi
   10309 rm -f core conftest.err conftest.$ac_objext \
   10310     conftest$ac_exeext
   10311   if ${ac_cv_search_pthread_create+:} false; then :
   10312   break
   10313 fi
   10314 done
   10315 if ${ac_cv_search_pthread_create+:} false; then :
   10316 
   10317 else
   10318   ac_cv_search_pthread_create=no
   10319 fi
   10320 rm conftest.$ac_ext
   10321 LIBS=$ac_func_search_save_LIBS
   10322 fi
   10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
   10324 $as_echo "$ac_cv_search_pthread_create" >&6; }
   10325 ac_res=$ac_cv_search_pthread_create
   10326 if test "$ac_res" != no; then :
   10327   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   10328 
   10329 else
   10330   as_fn_error $? "libpthread is missing" "$LINENO" 5
   10331 fi
   10332 
   10333 fi
   10334 
   10335   wrap_syms="${wrap_syms} pthread_create"
   10336   have_pthread="1"
   10337     have_dlsym="1"
   10338   for ac_header in dlfcn.h
   10339 do :
   10340   ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
   10341 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   10342   cat >>confdefs.h <<_ACEOF
   10343 #define HAVE_DLFCN_H 1
   10344 _ACEOF
   10345  ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
   10346 if test "x$ac_cv_func_dlsym" = xyes; then :
   10347 
   10348 else
   10349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
   10350 $as_echo_n "checking for dlsym in -ldl... " >&6; }
   10351 if ${ac_cv_lib_dl_dlsym+:} false; then :
   10352   $as_echo_n "(cached) " >&6
   10353 else
   10354   ac_check_lib_save_LIBS=$LIBS
   10355 LIBS="-ldl  $LIBS"
   10356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10357 /* end confdefs.h.  */
   10358 
   10359 /* Override any GCC internal prototype to avoid an error.
   10360    Use char because int might match the return type of a GCC
   10361    builtin and then its argument prototype would still apply.  */
   10362 #ifdef __cplusplus
   10363 extern "C"
   10364 #endif
   10365 char dlsym ();
   10366 int
   10367 main ()
   10368 {
   10369 return dlsym ();
   10370   ;
   10371   return 0;
   10372 }
   10373 _ACEOF
   10374 if ac_fn_c_try_link "$LINENO"; then :
   10375   ac_cv_lib_dl_dlsym=yes
   10376 else
   10377   ac_cv_lib_dl_dlsym=no
   10378 fi
   10379 rm -f core conftest.err conftest.$ac_objext \
   10380     conftest$ac_exeext conftest.$ac_ext
   10381 LIBS=$ac_check_lib_save_LIBS
   10382 fi
   10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
   10384 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
   10385 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
   10386   LIBS="$LIBS -ldl"
   10387 else
   10388   have_dlsym="0"
   10389 fi
   10390 
   10391 fi
   10392 
   10393 else
   10394   have_dlsym="0"
   10395 fi
   10396 
   10397 done
   10398 
   10399   if test "x$have_dlsym" = "x1" ; then
   10400     $as_echo "#define JEMALLOC_HAVE_DLSYM  " >>confdefs.h
   10401 
   10402   fi
   10403 
   10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_atfork(3) is compilable" >&5
   10405 $as_echo_n "checking whether pthread_atfork(3) is compilable... " >&6; }
   10406 if ${je_cv_pthread_atfork+:} false; then :
   10407   $as_echo_n "(cached) " >&6
   10408 else
   10409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10410 /* end confdefs.h.  */
   10411 
   10412 #include <pthread.h>
   10413 
   10414 int
   10415 main ()
   10416 {
   10417 
   10418   pthread_atfork((void *)0, (void *)0, (void *)0);
   10419 
   10420   ;
   10421   return 0;
   10422 }
   10423 _ACEOF
   10424 if ac_fn_c_try_link "$LINENO"; then :
   10425   je_cv_pthread_atfork=yes
   10426 else
   10427   je_cv_pthread_atfork=no
   10428 fi
   10429 rm -f core conftest.err conftest.$ac_objext \
   10430     conftest$ac_exeext conftest.$ac_ext
   10431 fi
   10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_atfork" >&5
   10433 $as_echo "$je_cv_pthread_atfork" >&6; }
   10434 
   10435   if test "x${je_cv_pthread_atfork}" = "xyes" ; then
   10436     $as_echo "#define JEMALLOC_HAVE_PTHREAD_ATFORK  " >>confdefs.h
   10437 
   10438   fi
   10439 
   10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np(3) is compilable" >&5
   10441 $as_echo_n "checking whether pthread_setname_np(3) is compilable... " >&6; }
   10442 if ${je_cv_pthread_setname_np+:} false; then :
   10443   $as_echo_n "(cached) " >&6
   10444 else
   10445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10446 /* end confdefs.h.  */
   10447 
   10448 #include <pthread.h>
   10449 
   10450 int
   10451 main ()
   10452 {
   10453 
   10454   pthread_setname_np(pthread_self(), "setname_test");
   10455 
   10456   ;
   10457   return 0;
   10458 }
   10459 _ACEOF
   10460 if ac_fn_c_try_link "$LINENO"; then :
   10461   je_cv_pthread_setname_np=yes
   10462 else
   10463   je_cv_pthread_setname_np=no
   10464 fi
   10465 rm -f core conftest.err conftest.$ac_objext \
   10466     conftest$ac_exeext conftest.$ac_ext
   10467 fi
   10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_setname_np" >&5
   10469 $as_echo "$je_cv_pthread_setname_np" >&6; }
   10470 
   10471   if test "x${je_cv_pthread_setname_np}" = "xyes" ; then
   10472     $as_echo "#define JEMALLOC_HAVE_PTHREAD_SETNAME_NP  " >>confdefs.h
   10473 
   10474   fi
   10475 fi
   10476 
   10477 T_APPEND_V=-D_REENTRANT
   10478   if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   10479   CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
   10480 else
   10481   CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
   10482 fi
   10483 
   10484 
   10485 
   10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
   10487 $as_echo_n "checking for library containing clock_gettime... " >&6; }
   10488 if ${ac_cv_search_clock_gettime+:} false; then :
   10489   $as_echo_n "(cached) " >&6
   10490 else
   10491   ac_func_search_save_LIBS=$LIBS
   10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10493 /* end confdefs.h.  */
   10494 
   10495 /* Override any GCC internal prototype to avoid an error.
   10496    Use char because int might match the return type of a GCC
   10497    builtin and then its argument prototype would still apply.  */
   10498 #ifdef __cplusplus
   10499 extern "C"
   10500 #endif
   10501 char clock_gettime ();
   10502 int
   10503 main ()
   10504 {
   10505 return clock_gettime ();
   10506   ;
   10507   return 0;
   10508 }
   10509 _ACEOF
   10510 for ac_lib in '' rt; do
   10511   if test -z "$ac_lib"; then
   10512     ac_res="none required"
   10513   else
   10514     ac_res=-l$ac_lib
   10515     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   10516   fi
   10517   if ac_fn_c_try_link "$LINENO"; then :
   10518   ac_cv_search_clock_gettime=$ac_res
   10519 fi
   10520 rm -f core conftest.err conftest.$ac_objext \
   10521     conftest$ac_exeext
   10522   if ${ac_cv_search_clock_gettime+:} false; then :
   10523   break
   10524 fi
   10525 done
   10526 if ${ac_cv_search_clock_gettime+:} false; then :
   10527 
   10528 else
   10529   ac_cv_search_clock_gettime=no
   10530 fi
   10531 rm conftest.$ac_ext
   10532 LIBS=$ac_func_search_save_LIBS
   10533 fi
   10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
   10535 $as_echo "$ac_cv_search_clock_gettime" >&6; }
   10536 ac_res=$ac_cv_search_clock_gettime
   10537 if test "$ac_res" != no; then :
   10538   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   10539 
   10540 fi
   10541 
   10542 
   10543 if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
   10544   if test "$ac_cv_search_clock_gettime" != "-lrt"; then
   10545     SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   10546 
   10547 
   10548     unset ac_cv_search_clock_gettime
   10549 
   10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -dynamic" >&5
   10551 $as_echo_n "checking whether compiler supports -dynamic... " >&6; }
   10552 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   10553 T_APPEND_V=-dynamic
   10554   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   10555   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   10556 else
   10557   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   10558 fi
   10559 
   10560 
   10561 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   10562   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   10563 else
   10564   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   10565 fi
   10566 
   10567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10568 /* end confdefs.h.  */
   10569 
   10570 
   10571 int
   10572 main ()
   10573 {
   10574 
   10575     return 0;
   10576 
   10577   ;
   10578   return 0;
   10579 }
   10580 _ACEOF
   10581 if ac_fn_c_try_compile "$LINENO"; then :
   10582   je_cv_cflags_added=-dynamic
   10583               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10584 $as_echo "yes" >&6; }
   10585 else
   10586   je_cv_cflags_added=
   10587               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10588 $as_echo "no" >&6; }
   10589               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   10590 
   10591 fi
   10592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10593 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   10594   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   10595 else
   10596   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   10597 fi
   10598 
   10599 
   10600     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
   10601 $as_echo_n "checking for library containing clock_gettime... " >&6; }
   10602 if ${ac_cv_search_clock_gettime+:} false; then :
   10603   $as_echo_n "(cached) " >&6
   10604 else
   10605   ac_func_search_save_LIBS=$LIBS
   10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10607 /* end confdefs.h.  */
   10608 
   10609 /* Override any GCC internal prototype to avoid an error.
   10610    Use char because int might match the return type of a GCC
   10611    builtin and then its argument prototype would still apply.  */
   10612 #ifdef __cplusplus
   10613 extern "C"
   10614 #endif
   10615 char clock_gettime ();
   10616 int
   10617 main ()
   10618 {
   10619 return clock_gettime ();
   10620   ;
   10621   return 0;
   10622 }
   10623 _ACEOF
   10624 for ac_lib in '' rt; do
   10625   if test -z "$ac_lib"; then
   10626     ac_res="none required"
   10627   else
   10628     ac_res=-l$ac_lib
   10629     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   10630   fi
   10631   if ac_fn_c_try_link "$LINENO"; then :
   10632   ac_cv_search_clock_gettime=$ac_res
   10633 fi
   10634 rm -f core conftest.err conftest.$ac_objext \
   10635     conftest$ac_exeext
   10636   if ${ac_cv_search_clock_gettime+:} false; then :
   10637   break
   10638 fi
   10639 done
   10640 if ${ac_cv_search_clock_gettime+:} false; then :
   10641 
   10642 else
   10643   ac_cv_search_clock_gettime=no
   10644 fi
   10645 rm conftest.$ac_ext
   10646 LIBS=$ac_func_search_save_LIBS
   10647 fi
   10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
   10649 $as_echo "$ac_cv_search_clock_gettime" >&6; }
   10650 ac_res=$ac_cv_search_clock_gettime
   10651 if test "$ac_res" != no; then :
   10652   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   10653 
   10654 fi
   10655 
   10656 
   10657     CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
   10658 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   10659   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   10660 else
   10661   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   10662 fi
   10663 
   10664 
   10665   fi
   10666 fi
   10667 
   10668 
   10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable" >&5
   10670 $as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... " >&6; }
   10671 if ${je_cv_clock_monotonic_coarse+:} false; then :
   10672   $as_echo_n "(cached) " >&6
   10673 else
   10674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10675 /* end confdefs.h.  */
   10676 
   10677 #include <time.h>
   10678 
   10679 int
   10680 main ()
   10681 {
   10682 
   10683 	struct timespec ts;
   10684 
   10685 	clock_gettime(CLOCK_MONOTONIC_COARSE, &ts);
   10686 
   10687   ;
   10688   return 0;
   10689 }
   10690 _ACEOF
   10691 if ac_fn_c_try_link "$LINENO"; then :
   10692   je_cv_clock_monotonic_coarse=yes
   10693 else
   10694   je_cv_clock_monotonic_coarse=no
   10695 fi
   10696 rm -f core conftest.err conftest.$ac_objext \
   10697     conftest$ac_exeext conftest.$ac_ext
   10698 fi
   10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic_coarse" >&5
   10700 $as_echo "$je_cv_clock_monotonic_coarse" >&6; }
   10701 
   10702 if test "x${je_cv_clock_monotonic_coarse}" = "xyes" ; then
   10703   $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1" >>confdefs.h
   10704 
   10705 fi
   10706 
   10707 
   10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable" >&5
   10709 $as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... " >&6; }
   10710 if ${je_cv_clock_monotonic+:} false; then :
   10711   $as_echo_n "(cached) " >&6
   10712 else
   10713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10714 /* end confdefs.h.  */
   10715 
   10716 #include <unistd.h>
   10717 #include <time.h>
   10718 
   10719 int
   10720 main ()
   10721 {
   10722 
   10723 	struct timespec ts;
   10724 
   10725 	clock_gettime(CLOCK_MONOTONIC, &ts);
   10726 #if !defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK < 0
   10727 #  error _POSIX_MONOTONIC_CLOCK missing/invalid
   10728 #endif
   10729 
   10730   ;
   10731   return 0;
   10732 }
   10733 _ACEOF
   10734 if ac_fn_c_try_link "$LINENO"; then :
   10735   je_cv_clock_monotonic=yes
   10736 else
   10737   je_cv_clock_monotonic=no
   10738 fi
   10739 rm -f core conftest.err conftest.$ac_objext \
   10740     conftest$ac_exeext conftest.$ac_ext
   10741 fi
   10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic" >&5
   10743 $as_echo "$je_cv_clock_monotonic" >&6; }
   10744 
   10745 if test "x${je_cv_clock_monotonic}" = "xyes" ; then
   10746   $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
   10747 
   10748 fi
   10749 
   10750 
   10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mach_absolute_time() is compilable" >&5
   10752 $as_echo_n "checking whether mach_absolute_time() is compilable... " >&6; }
   10753 if ${je_cv_mach_absolute_time+:} false; then :
   10754   $as_echo_n "(cached) " >&6
   10755 else
   10756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10757 /* end confdefs.h.  */
   10758 
   10759 #include <mach/mach_time.h>
   10760 
   10761 int
   10762 main ()
   10763 {
   10764 
   10765 	mach_absolute_time();
   10766 
   10767   ;
   10768   return 0;
   10769 }
   10770 _ACEOF
   10771 if ac_fn_c_try_link "$LINENO"; then :
   10772   je_cv_mach_absolute_time=yes
   10773 else
   10774   je_cv_mach_absolute_time=no
   10775 fi
   10776 rm -f core conftest.err conftest.$ac_objext \
   10777     conftest$ac_exeext conftest.$ac_ext
   10778 fi
   10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mach_absolute_time" >&5
   10780 $as_echo "$je_cv_mach_absolute_time" >&6; }
   10781 
   10782 if test "x${je_cv_mach_absolute_time}" = "xyes" ; then
   10783   $as_echo "#define JEMALLOC_HAVE_MACH_ABSOLUTE_TIME 1" >>confdefs.h
   10784 
   10785 fi
   10786 
   10787 # Check whether --enable-syscall was given.
   10788 if test "${enable_syscall+set}" = set; then :
   10789   enableval=$enable_syscall; if test "x$enable_syscall" = "xno" ; then
   10790   enable_syscall="0"
   10791 else
   10792   enable_syscall="1"
   10793 fi
   10794 
   10795 else
   10796   enable_syscall="1"
   10797 
   10798 fi
   10799 
   10800 if test "x$enable_syscall" = "x1" ; then
   10801       SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   10802 
   10803 
   10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
   10805 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
   10806 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   10807 T_APPEND_V=-Werror
   10808   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   10809   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   10810 else
   10811   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   10812 fi
   10813 
   10814 
   10815 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   10816   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   10817 else
   10818   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   10819 fi
   10820 
   10821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10822 /* end confdefs.h.  */
   10823 
   10824 
   10825 int
   10826 main ()
   10827 {
   10828 
   10829     return 0;
   10830 
   10831   ;
   10832   return 0;
   10833 }
   10834 _ACEOF
   10835 if ac_fn_c_try_compile "$LINENO"; then :
   10836   je_cv_cflags_added=-Werror
   10837               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10838 $as_echo "yes" >&6; }
   10839 else
   10840   je_cv_cflags_added=
   10841               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10842 $as_echo "no" >&6; }
   10843               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   10844 
   10845 fi
   10846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10847 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   10848   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   10849 else
   10850   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   10851 fi
   10852 
   10853 
   10854 
   10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syscall(2) is compilable" >&5
   10856 $as_echo_n "checking whether syscall(2) is compilable... " >&6; }
   10857 if ${je_cv_syscall+:} false; then :
   10858   $as_echo_n "(cached) " >&6
   10859 else
   10860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10861 /* end confdefs.h.  */
   10862 
   10863 #include <sys/syscall.h>
   10864 #include <unistd.h>
   10865 
   10866 int
   10867 main ()
   10868 {
   10869 
   10870 	syscall(SYS_write, 2, "hello", 5);
   10871 
   10872   ;
   10873   return 0;
   10874 }
   10875 _ACEOF
   10876 if ac_fn_c_try_link "$LINENO"; then :
   10877   je_cv_syscall=yes
   10878 else
   10879   je_cv_syscall=no
   10880 fi
   10881 rm -f core conftest.err conftest.$ac_objext \
   10882     conftest$ac_exeext conftest.$ac_ext
   10883 fi
   10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_syscall" >&5
   10885 $as_echo "$je_cv_syscall" >&6; }
   10886 
   10887   CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
   10888 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   10889   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   10890 else
   10891   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   10892 fi
   10893 
   10894 
   10895   if test "x$je_cv_syscall" = "xyes" ; then
   10896     $as_echo "#define JEMALLOC_USE_SYSCALL  " >>confdefs.h
   10897 
   10898   fi
   10899 fi
   10900 
   10901 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
   10902 if test "x$ac_cv_func_secure_getenv" = xyes; then :
   10903   have_secure_getenv="1"
   10904 else
   10905   have_secure_getenv="0"
   10906 
   10907 fi
   10908 
   10909 if test "x$have_secure_getenv" = "x1" ; then
   10910   $as_echo "#define JEMALLOC_HAVE_SECURE_GETENV  " >>confdefs.h
   10911 
   10912 fi
   10913 
   10914 ac_fn_c_check_func "$LINENO" "sched_getcpu" "ac_cv_func_sched_getcpu"
   10915 if test "x$ac_cv_func_sched_getcpu" = xyes; then :
   10916   have_sched_getcpu="1"
   10917 else
   10918   have_sched_getcpu="0"
   10919 
   10920 fi
   10921 
   10922 if test "x$have_sched_getcpu" = "x1" ; then
   10923   $as_echo "#define JEMALLOC_HAVE_SCHED_GETCPU  " >>confdefs.h
   10924 
   10925 fi
   10926 
   10927 ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity"
   10928 if test "x$ac_cv_func_sched_setaffinity" = xyes; then :
   10929   have_sched_setaffinity="1"
   10930 else
   10931   have_sched_setaffinity="0"
   10932 
   10933 fi
   10934 
   10935 if test "x$have_sched_setaffinity" = "x1" ; then
   10936   $as_echo "#define JEMALLOC_HAVE_SCHED_SETAFFINITY  " >>confdefs.h
   10937 
   10938 fi
   10939 
   10940 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
   10941 if test "x$ac_cv_func_issetugid" = xyes; then :
   10942   have_issetugid="1"
   10943 else
   10944   have_issetugid="0"
   10945 
   10946 fi
   10947 
   10948 if test "x$have_issetugid" = "x1" ; then
   10949   $as_echo "#define JEMALLOC_HAVE_ISSETUGID  " >>confdefs.h
   10950 
   10951 fi
   10952 
   10953 ac_fn_c_check_func "$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup"
   10954 if test "x$ac_cv_func__malloc_thread_cleanup" = xyes; then :
   10955   have__malloc_thread_cleanup="1"
   10956 else
   10957   have__malloc_thread_cleanup="0"
   10958 
   10959 fi
   10960 
   10961 if test "x$have__malloc_thread_cleanup" = "x1" ; then
   10962   $as_echo "#define JEMALLOC_MALLOC_THREAD_CLEANUP  " >>confdefs.h
   10963 
   10964   wrap_syms="${wrap_syms} _malloc_thread_cleanup"
   10965   force_tls="1"
   10966 fi
   10967 
   10968 ac_fn_c_check_func "$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb"
   10969 if test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes; then :
   10970   have__pthread_mutex_init_calloc_cb="1"
   10971 else
   10972   have__pthread_mutex_init_calloc_cb="0"
   10973 
   10974 fi
   10975 
   10976 if test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then
   10977   $as_echo "#define JEMALLOC_MUTEX_INIT_CB 1" >>confdefs.h
   10978 
   10979   wrap_syms="${wrap_syms} _malloc_prefork _malloc_postfork"
   10980 fi
   10981 
   10982 # Check whether --enable-lazy_lock was given.
   10983 if test "${enable_lazy_lock+set}" = set; then :
   10984   enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then
   10985   enable_lazy_lock="0"
   10986 else
   10987   enable_lazy_lock="1"
   10988 fi
   10989 
   10990 else
   10991   enable_lazy_lock=""
   10992 
   10993 fi
   10994 
   10995 if test "x${enable_lazy_lock}" = "x" ; then
   10996   if test "x${force_lazy_lock}" = "x1" ; then
   10997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5
   10998 $as_echo "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; }
   10999     enable_lazy_lock="1"
   11000   else
   11001     enable_lazy_lock="0"
   11002   fi
   11003 fi
   11004 if test "x${enable_lazy_lock}" = "x1" -a "x${abi}" = "xpecoff" ; then
   11005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no lazy-lock because thread creation monitoring is unimplemented" >&5
   11006 $as_echo "Forcing no lazy-lock because thread creation monitoring is unimplemented" >&6; }
   11007   enable_lazy_lock="0"
   11008 fi
   11009 if test "x$enable_lazy_lock" = "x1" ; then
   11010   if test "x$have_dlsym" = "x1" ; then
   11011     $as_echo "#define JEMALLOC_LAZY_LOCK  " >>confdefs.h
   11012 
   11013   else
   11014     as_fn_error $? "Missing dlsym support: lazy-lock cannot be enabled." "$LINENO" 5
   11015   fi
   11016 fi
   11017 
   11018 
   11019 if test "x${force_tls}" = "x1" ; then
   11020   enable_tls="1"
   11021 elif test "x${force_tls}" = "x0" ; then
   11022   enable_tls="0"
   11023 else
   11024   enable_tls="1"
   11025 fi
   11026 if test "x${enable_tls}" = "x1" ; then
   11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
   11028 $as_echo_n "checking for TLS... " >&6; }
   11029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11030 /* end confdefs.h.  */
   11031 
   11032     __thread int x;
   11033 
   11034 int
   11035 main ()
   11036 {
   11037 
   11038     x = 42;
   11039 
   11040     return 0;
   11041 
   11042   ;
   11043   return 0;
   11044 }
   11045 _ACEOF
   11046 if ac_fn_c_try_compile "$LINENO"; then :
   11047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11048 $as_echo "yes" >&6; }
   11049 else
   11050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11051 $as_echo "no" >&6; }
   11052               enable_tls="0"
   11053 fi
   11054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11055 else
   11056   enable_tls="0"
   11057 fi
   11058 
   11059 if test "x${enable_tls}" = "x1" ; then
   11060   cat >>confdefs.h <<_ACEOF
   11061 #define JEMALLOC_TLS
   11062 _ACEOF
   11063 
   11064 fi
   11065 
   11066 
   11067 
   11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 atomics is compilable" >&5
   11069 $as_echo_n "checking whether C11 atomics is compilable... " >&6; }
   11070 if ${je_cv_c11_atomics+:} false; then :
   11071   $as_echo_n "(cached) " >&6
   11072 else
   11073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11074 /* end confdefs.h.  */
   11075 
   11076 #include <stdint.h>
   11077 #if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_ATOMICS__)
   11078 #include <stdatomic.h>
   11079 #else
   11080 #error Atomics not available
   11081 #endif
   11082 
   11083 int
   11084 main ()
   11085 {
   11086 
   11087     uint64_t *p = (uint64_t *)0;
   11088     uint64_t x = 1;
   11089     volatile atomic_uint_least64_t *a = (volatile atomic_uint_least64_t *)p;
   11090     uint64_t r = atomic_fetch_add(a, x) + x;
   11091     return r == 0;
   11092 
   11093   ;
   11094   return 0;
   11095 }
   11096 _ACEOF
   11097 if ac_fn_c_try_link "$LINENO"; then :
   11098   je_cv_c11_atomics=yes
   11099 else
   11100   je_cv_c11_atomics=no
   11101 fi
   11102 rm -f core conftest.err conftest.$ac_objext \
   11103     conftest$ac_exeext conftest.$ac_ext
   11104 fi
   11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_c11_atomics" >&5
   11106 $as_echo "$je_cv_c11_atomics" >&6; }
   11107 
   11108 if test "x${je_cv_c11_atomics}" = "xyes" ; then
   11109   $as_echo "#define JEMALLOC_C11_ATOMICS 1" >>confdefs.h
   11110 
   11111 fi
   11112 
   11113 
   11114 
   11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __atomic atomics is compilable" >&5
   11116 $as_echo_n "checking whether GCC __atomic atomics is compilable... " >&6; }
   11117 if ${je_cv_gcc_atomic_atomics+:} false; then :
   11118   $as_echo_n "(cached) " >&6
   11119 else
   11120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11121 /* end confdefs.h.  */
   11122 
   11123 
   11124 int
   11125 main ()
   11126 {
   11127 
   11128     int x = 0;
   11129     int val = 1;
   11130     int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED);
   11131     int after_add = x;
   11132     return after_add == 1;
   11133 
   11134   ;
   11135   return 0;
   11136 }
   11137 _ACEOF
   11138 if ac_fn_c_try_link "$LINENO"; then :
   11139   je_cv_gcc_atomic_atomics=yes
   11140 else
   11141   je_cv_gcc_atomic_atomics=no
   11142 fi
   11143 rm -f core conftest.err conftest.$ac_objext \
   11144     conftest$ac_exeext conftest.$ac_ext
   11145 fi
   11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_atomic_atomics" >&5
   11147 $as_echo "$je_cv_gcc_atomic_atomics" >&6; }
   11148 
   11149 if test "x${je_cv_gcc_atomic_atomics}" = "xyes" ; then
   11150   $as_echo "#define JEMALLOC_GCC_ATOMIC_ATOMICS 1" >>confdefs.h
   11151 
   11152 fi
   11153 
   11154 
   11155 
   11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __sync atomics is compilable" >&5
   11157 $as_echo_n "checking whether GCC __sync atomics is compilable... " >&6; }
   11158 if ${je_cv_gcc_sync_atomics+:} false; then :
   11159   $as_echo_n "(cached) " >&6
   11160 else
   11161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11162 /* end confdefs.h.  */
   11163 
   11164 
   11165 int
   11166 main ()
   11167 {
   11168 
   11169     int x = 0;
   11170     int before_add = __sync_fetch_and_add(&x, 1);
   11171     int after_add = x;
   11172     return (before_add == 0) && (after_add == 1);
   11173 
   11174   ;
   11175   return 0;
   11176 }
   11177 _ACEOF
   11178 if ac_fn_c_try_link "$LINENO"; then :
   11179   je_cv_gcc_sync_atomics=yes
   11180 else
   11181   je_cv_gcc_sync_atomics=no
   11182 fi
   11183 rm -f core conftest.err conftest.$ac_objext \
   11184     conftest$ac_exeext conftest.$ac_ext
   11185 fi
   11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_sync_atomics" >&5
   11187 $as_echo "$je_cv_gcc_sync_atomics" >&6; }
   11188 
   11189 if test "x${je_cv_gcc_sync_atomics}" = "xyes" ; then
   11190   $as_echo "#define JEMALLOC_GCC_SYNC_ATOMICS 1" >>confdefs.h
   11191 
   11192 fi
   11193 
   11194 
   11195 
   11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5
   11197 $as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; }
   11198 if ${je_cv_osatomic+:} false; then :
   11199   $as_echo_n "(cached) " >&6
   11200 else
   11201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11202 /* end confdefs.h.  */
   11203 
   11204 #include <libkern/OSAtomic.h>
   11205 #include <inttypes.h>
   11206 
   11207 int
   11208 main ()
   11209 {
   11210 
   11211 	{
   11212 		int32_t x32 = 0;
   11213 		volatile int32_t *x32p = &x32;
   11214 		OSAtomicAdd32(1, x32p);
   11215 	}
   11216 	{
   11217 		int64_t x64 = 0;
   11218 		volatile int64_t *x64p = &x64;
   11219 		OSAtomicAdd64(1, x64p);
   11220 	}
   11221 
   11222   ;
   11223   return 0;
   11224 }
   11225 _ACEOF
   11226 if ac_fn_c_try_link "$LINENO"; then :
   11227   je_cv_osatomic=yes
   11228 else
   11229   je_cv_osatomic=no
   11230 fi
   11231 rm -f core conftest.err conftest.$ac_objext \
   11232     conftest$ac_exeext conftest.$ac_ext
   11233 fi
   11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5
   11235 $as_echo "$je_cv_osatomic" >&6; }
   11236 
   11237 if test "x${je_cv_osatomic}" = "xyes" ; then
   11238   $as_echo "#define JEMALLOC_OSATOMIC  " >>confdefs.h
   11239 
   11240 fi
   11241 
   11242 
   11243 
   11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(2) is compilable" >&5
   11245 $as_echo_n "checking whether madvise(2) is compilable... " >&6; }
   11246 if ${je_cv_madvise+:} false; then :
   11247   $as_echo_n "(cached) " >&6
   11248 else
   11249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11250 /* end confdefs.h.  */
   11251 
   11252 #include <sys/mman.h>
   11253 
   11254 int
   11255 main ()
   11256 {
   11257 
   11258 	madvise((void *)0, 0, 0);
   11259 
   11260   ;
   11261   return 0;
   11262 }
   11263 _ACEOF
   11264 if ac_fn_c_try_link "$LINENO"; then :
   11265   je_cv_madvise=yes
   11266 else
   11267   je_cv_madvise=no
   11268 fi
   11269 rm -f core conftest.err conftest.$ac_objext \
   11270     conftest$ac_exeext conftest.$ac_ext
   11271 fi
   11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madvise" >&5
   11273 $as_echo "$je_cv_madvise" >&6; }
   11274 
   11275 if test "x${je_cv_madvise}" = "xyes" ; then
   11276   $as_echo "#define JEMALLOC_HAVE_MADVISE  " >>confdefs.h
   11277 
   11278 
   11279 
   11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_FREE) is compilable" >&5
   11281 $as_echo_n "checking whether madvise(..., MADV_FREE) is compilable... " >&6; }
   11282 if ${je_cv_madv_free+:} false; then :
   11283   $as_echo_n "(cached) " >&6
   11284 else
   11285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11286 /* end confdefs.h.  */
   11287 
   11288 #include <sys/mman.h>
   11289 
   11290 int
   11291 main ()
   11292 {
   11293 
   11294 	madvise((void *)0, 0, MADV_FREE);
   11295 
   11296   ;
   11297   return 0;
   11298 }
   11299 _ACEOF
   11300 if ac_fn_c_try_link "$LINENO"; then :
   11301   je_cv_madv_free=yes
   11302 else
   11303   je_cv_madv_free=no
   11304 fi
   11305 rm -f core conftest.err conftest.$ac_objext \
   11306     conftest$ac_exeext conftest.$ac_ext
   11307 fi
   11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_free" >&5
   11309 $as_echo "$je_cv_madv_free" >&6; }
   11310 
   11311   if test "x${je_cv_madv_free}" = "xyes" ; then
   11312     $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
   11313 
   11314   elif test "x${je_cv_madvise}" = "xyes" ; then
   11315     case "${host_cpu}" in i686|x86_64)
   11316         case "${host}" in *-*-linux*)
   11317             $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
   11318 
   11319             $as_echo "#define JEMALLOC_DEFINE_MADVISE_FREE  " >>confdefs.h
   11320 
   11321 	    ;;
   11322         esac
   11323         ;;
   11324     esac
   11325   fi
   11326 
   11327 
   11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DONTNEED) is compilable" >&5
   11329 $as_echo_n "checking whether madvise(..., MADV_DONTNEED) is compilable... " >&6; }
   11330 if ${je_cv_madv_dontneed+:} false; then :
   11331   $as_echo_n "(cached) " >&6
   11332 else
   11333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11334 /* end confdefs.h.  */
   11335 
   11336 #include <sys/mman.h>
   11337 
   11338 int
   11339 main ()
   11340 {
   11341 
   11342 	madvise((void *)0, 0, MADV_DONTNEED);
   11343 
   11344   ;
   11345   return 0;
   11346 }
   11347 _ACEOF
   11348 if ac_fn_c_try_link "$LINENO"; then :
   11349   je_cv_madv_dontneed=yes
   11350 else
   11351   je_cv_madv_dontneed=no
   11352 fi
   11353 rm -f core conftest.err conftest.$ac_objext \
   11354     conftest$ac_exeext conftest.$ac_ext
   11355 fi
   11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontneed" >&5
   11357 $as_echo "$je_cv_madv_dontneed" >&6; }
   11358 
   11359   if test "x${je_cv_madv_dontneed}" = "xyes" ; then
   11360     $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED  " >>confdefs.h
   11361 
   11362   fi
   11363 
   11364 
   11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DO[NT]DUMP) is compilable" >&5
   11366 $as_echo_n "checking whether madvise(..., MADV_DO[NT]DUMP) is compilable... " >&6; }
   11367 if ${je_cv_madv_dontdump+:} false; then :
   11368   $as_echo_n "(cached) " >&6
   11369 else
   11370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11371 /* end confdefs.h.  */
   11372 
   11373 #include <sys/mman.h>
   11374 
   11375 int
   11376 main ()
   11377 {
   11378 
   11379 	madvise((void *)0, 0, MADV_DONTDUMP);
   11380 	madvise((void *)0, 0, MADV_DODUMP);
   11381 
   11382   ;
   11383   return 0;
   11384 }
   11385 _ACEOF
   11386 if ac_fn_c_try_link "$LINENO"; then :
   11387   je_cv_madv_dontdump=yes
   11388 else
   11389   je_cv_madv_dontdump=no
   11390 fi
   11391 rm -f core conftest.err conftest.$ac_objext \
   11392     conftest$ac_exeext conftest.$ac_ext
   11393 fi
   11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontdump" >&5
   11395 $as_echo "$je_cv_madv_dontdump" >&6; }
   11396 
   11397   if test "x${je_cv_madv_dontdump}" = "xyes" ; then
   11398     $as_echo "#define JEMALLOC_MADVISE_DONTDUMP  " >>confdefs.h
   11399 
   11400   fi
   11401 
   11402 
   11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable" >&5
   11404 $as_echo_n "checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable... " >&6; }
   11405 if ${je_cv_thp+:} false; then :
   11406   $as_echo_n "(cached) " >&6
   11407 else
   11408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11409 /* end confdefs.h.  */
   11410 
   11411 #include <sys/mman.h>
   11412 
   11413 int
   11414 main ()
   11415 {
   11416 
   11417 	madvise((void *)0, 0, MADV_HUGEPAGE);
   11418 	madvise((void *)0, 0, MADV_NOHUGEPAGE);
   11419 
   11420   ;
   11421   return 0;
   11422 }
   11423 _ACEOF
   11424 if ac_fn_c_try_link "$LINENO"; then :
   11425   je_cv_thp=yes
   11426 else
   11427   je_cv_thp=no
   11428 fi
   11429 rm -f core conftest.err conftest.$ac_objext \
   11430     conftest$ac_exeext conftest.$ac_ext
   11431 fi
   11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_thp" >&5
   11433 $as_echo "$je_cv_thp" >&6; }
   11434 
   11435 case "${host_cpu}" in
   11436   arm*)
   11437     ;;
   11438   *)
   11439   if test "x${je_cv_thp}" = "xyes" ; then
   11440     $as_echo "#define JEMALLOC_HAVE_MADVISE_HUGE  " >>confdefs.h
   11441 
   11442   fi
   11443   ;;
   11444 esac
   11445 fi
   11446 
   11447 
   11448 
   11449 
   11450 if test "x${je_cv_atomic9}" != "xyes" -a "x${je_cv_osatomic}" != "xyes" ; then
   11451 
   11452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 32-bit __sync_{add,sub}_and_fetch()" >&5
   11453 $as_echo_n "checking whether to force 32-bit __sync_{add,sub}_and_fetch()... " >&6; }
   11454 if ${je_cv_sync_compare_and_swap_4+:} false; then :
   11455   $as_echo_n "(cached) " >&6
   11456 else
   11457   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11458 /* end confdefs.h.  */
   11459 
   11460                                                  #include <stdint.h>
   11461 
   11462 int
   11463 main ()
   11464 {
   11465 
   11466                                                  #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
   11467                                                  {
   11468                                                     uint32_t x32 = 0;
   11469                                                     __sync_add_and_fetch(&x32, 42);
   11470                                                     __sync_sub_and_fetch(&x32, 1);
   11471                                                  }
   11472                                                  #else
   11473                                                  #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is defined, no need to force
   11474                                                  #endif
   11475 
   11476   ;
   11477   return 0;
   11478 }
   11479 _ACEOF
   11480 if ac_fn_c_try_link "$LINENO"; then :
   11481   je_cv_sync_compare_and_swap_4=yes
   11482 else
   11483   je_cv_sync_compare_and_swap_4=no
   11484 fi
   11485 rm -f core conftest.err conftest.$ac_objext \
   11486     conftest$ac_exeext conftest.$ac_ext
   11487 fi
   11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_4" >&5
   11489 $as_echo "$je_cv_sync_compare_and_swap_4" >&6; }
   11490 
   11491   if test "x${je_cv_sync_compare_and_swap_4}" = "xyes" ; then
   11492     $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_4  " >>confdefs.h
   11493 
   11494   fi
   11495 
   11496 
   11497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 64-bit __sync_{add,sub}_and_fetch()" >&5
   11498 $as_echo_n "checking whether to force 64-bit __sync_{add,sub}_and_fetch()... " >&6; }
   11499 if ${je_cv_sync_compare_and_swap_8+:} false; then :
   11500   $as_echo_n "(cached) " >&6
   11501 else
   11502   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11503 /* end confdefs.h.  */
   11504 
   11505                                                  #include <stdint.h>
   11506 
   11507 int
   11508 main ()
   11509 {
   11510 
   11511                                                  #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
   11512                                                  {
   11513                                                     uint64_t x64 = 0;
   11514                                                     __sync_add_and_fetch(&x64, 42);
   11515                                                     __sync_sub_and_fetch(&x64, 1);
   11516                                                  }
   11517                                                  #else
   11518                                                  #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 is defined, no need to force
   11519                                                  #endif
   11520 
   11521   ;
   11522   return 0;
   11523 }
   11524 _ACEOF
   11525 if ac_fn_c_try_link "$LINENO"; then :
   11526   je_cv_sync_compare_and_swap_8=yes
   11527 else
   11528   je_cv_sync_compare_and_swap_8=no
   11529 fi
   11530 rm -f core conftest.err conftest.$ac_objext \
   11531     conftest$ac_exeext conftest.$ac_ext
   11532 fi
   11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_8" >&5
   11534 $as_echo "$je_cv_sync_compare_and_swap_8" >&6; }
   11535 
   11536   if test "x${je_cv_sync_compare_and_swap_8}" = "xyes" ; then
   11537     $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_8  " >>confdefs.h
   11538 
   11539   fi
   11540 
   11541 fi
   11542 
   11543 
   11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
   11545 $as_echo_n "checking for __builtin_clz... " >&6; }
   11546 if ${je_cv_builtin_clz+:} false; then :
   11547   $as_echo_n "(cached) " >&6
   11548 else
   11549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11550 /* end confdefs.h.  */
   11551 
   11552 int
   11553 main ()
   11554 {
   11555 
   11556                                                 {
   11557                                                         unsigned x = 0;
   11558                                                         int y = __builtin_clz(x);
   11559                                                 }
   11560                                                 {
   11561                                                         unsigned long x = 0;
   11562                                                         int y = __builtin_clzl(x);
   11563                                                 }
   11564 
   11565   ;
   11566   return 0;
   11567 }
   11568 _ACEOF
   11569 if ac_fn_c_try_link "$LINENO"; then :
   11570   je_cv_builtin_clz=yes
   11571 else
   11572   je_cv_builtin_clz=no
   11573 fi
   11574 rm -f core conftest.err conftest.$ac_objext \
   11575     conftest$ac_exeext conftest.$ac_ext
   11576 fi
   11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_builtin_clz" >&5
   11578 $as_echo "$je_cv_builtin_clz" >&6; }
   11579 
   11580 if test "x${je_cv_builtin_clz}" = "xyes" ; then
   11581   $as_echo "#define JEMALLOC_HAVE_BUILTIN_CLZ  " >>confdefs.h
   11582 
   11583 fi
   11584 
   11585 
   11586 
   11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin os_unfair_lock_*() is compilable" >&5
   11588 $as_echo_n "checking whether Darwin os_unfair_lock_*() is compilable... " >&6; }
   11589 if ${je_cv_os_unfair_lock+:} false; then :
   11590   $as_echo_n "(cached) " >&6
   11591 else
   11592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11593 /* end confdefs.h.  */
   11594 
   11595 #include <os/lock.h>
   11596 #include <AvailabilityMacros.h>
   11597 
   11598 int
   11599 main ()
   11600 {
   11601 
   11602 	#if MAC_OS_X_VERSION_MIN_REQUIRED < 101200
   11603 	#error "os_unfair_lock is not supported"
   11604 	#else
   11605 	os_unfair_lock lock = OS_UNFAIR_LOCK_INIT;
   11606 	os_unfair_lock_lock(&lock);
   11607 	os_unfair_lock_unlock(&lock);
   11608 	#endif
   11609 
   11610   ;
   11611   return 0;
   11612 }
   11613 _ACEOF
   11614 if ac_fn_c_try_link "$LINENO"; then :
   11615   je_cv_os_unfair_lock=yes
   11616 else
   11617   je_cv_os_unfair_lock=no
   11618 fi
   11619 rm -f core conftest.err conftest.$ac_objext \
   11620     conftest$ac_exeext conftest.$ac_ext
   11621 fi
   11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_os_unfair_lock" >&5
   11623 $as_echo "$je_cv_os_unfair_lock" >&6; }
   11624 
   11625 if test "x${je_cv_os_unfair_lock}" = "xyes" ; then
   11626   $as_echo "#define JEMALLOC_OS_UNFAIR_LOCK  " >>confdefs.h
   11627 
   11628 fi
   11629 
   11630 
   11631 
   11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSSpin*() is compilable" >&5
   11633 $as_echo_n "checking whether Darwin OSSpin*() is compilable... " >&6; }
   11634 if ${je_cv_osspin+:} false; then :
   11635   $as_echo_n "(cached) " >&6
   11636 else
   11637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11638 /* end confdefs.h.  */
   11639 
   11640 #include <libkern/OSAtomic.h>
   11641 #include <inttypes.h>
   11642 
   11643 int
   11644 main ()
   11645 {
   11646 
   11647 	OSSpinLock lock = 0;
   11648 	OSSpinLockLock(&lock);
   11649 	OSSpinLockUnlock(&lock);
   11650 
   11651   ;
   11652   return 0;
   11653 }
   11654 _ACEOF
   11655 if ac_fn_c_try_link "$LINENO"; then :
   11656   je_cv_osspin=yes
   11657 else
   11658   je_cv_osspin=no
   11659 fi
   11660 rm -f core conftest.err conftest.$ac_objext \
   11661     conftest$ac_exeext conftest.$ac_ext
   11662 fi
   11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osspin" >&5
   11664 $as_echo "$je_cv_osspin" >&6; }
   11665 
   11666 if test "x${je_cv_osspin}" = "xyes" ; then
   11667   $as_echo "#define JEMALLOC_OSSPIN  " >>confdefs.h
   11668 
   11669 fi
   11670 
   11671 
   11672 # Check whether --enable-zone-allocator was given.
   11673 if test "${enable_zone_allocator+set}" = set; then :
   11674   enableval=$enable_zone_allocator; if test "x$enable_zone_allocator" = "xno" ; then
   11675   enable_zone_allocator="0"
   11676 else
   11677   enable_zone_allocator="1"
   11678 fi
   11679 
   11680 else
   11681   if test "x${abi}" = "xmacho"; then
   11682   enable_zone_allocator="1"
   11683 fi
   11684 
   11685 
   11686 fi
   11687 
   11688 
   11689 
   11690 if test "x${enable_zone_allocator}" = "x1" ; then
   11691   if test "x${abi}" != "xmacho"; then
   11692     as_fn_error $? "--enable-zone-allocator is only supported on Darwin" "$LINENO" 5
   11693   fi
   11694   $as_echo "#define JEMALLOC_ZONE  " >>confdefs.h
   11695 
   11696 fi
   11697 
   11698 # Check whether --enable-initial-exec-tls was given.
   11699 if test "${enable_initial_exec_tls+set}" = set; then :
   11700   enableval=$enable_initial_exec_tls; if test "x$enable_initial_exec_tls" = "xno" ; then
   11701   enable_initial_exec_tls="0"
   11702 else
   11703   enable_initial_exec_tls="1"
   11704 fi
   11705 
   11706 else
   11707   enable_initial_exec_tls="1"
   11708 
   11709 fi
   11710 
   11711 
   11712 
   11713 if test "x${je_cv_tls_model}" = "xyes" -a \
   11714        "x${enable_initial_exec_tls}" = "x1" ; then
   11715   $as_echo "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h
   11716 
   11717 else
   11718   $as_echo "#define JEMALLOC_TLS_MODEL  " >>confdefs.h
   11719 
   11720 fi
   11721 
   11722 
   11723 if test "x${have_pthread}" = "x1" -a "x${have_dlsym}" = "x1" \
   11724     -a "x${je_cv_os_unfair_lock}" != "xyes" \
   11725     -a "x${je_cv_osspin}" != "xyes" ; then
   11726   $as_echo "#define JEMALLOC_BACKGROUND_THREAD 1" >>confdefs.h
   11727 
   11728 fi
   11729 
   11730 
   11731 
   11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc malloc hook is compilable" >&5
   11733 $as_echo_n "checking whether glibc malloc hook is compilable... " >&6; }
   11734 if ${je_cv_glibc_malloc_hook+:} false; then :
   11735   $as_echo_n "(cached) " >&6
   11736 else
   11737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11738 /* end confdefs.h.  */
   11739 
   11740 #include <stddef.h>
   11741 
   11742 extern void (* __free_hook)(void *ptr);
   11743 extern void *(* __malloc_hook)(size_t size);
   11744 extern void *(* __realloc_hook)(void *ptr, size_t size);
   11745 
   11746 int
   11747 main ()
   11748 {
   11749 
   11750   void *ptr = 0L;
   11751   if (__malloc_hook) ptr = __malloc_hook(1);
   11752   if (__realloc_hook) ptr = __realloc_hook(ptr, 2);
   11753   if (__free_hook && ptr) __free_hook(ptr);
   11754 
   11755   ;
   11756   return 0;
   11757 }
   11758 _ACEOF
   11759 if ac_fn_c_try_link "$LINENO"; then :
   11760   je_cv_glibc_malloc_hook=yes
   11761 else
   11762   je_cv_glibc_malloc_hook=no
   11763 fi
   11764 rm -f core conftest.err conftest.$ac_objext \
   11765     conftest$ac_exeext conftest.$ac_ext
   11766 fi
   11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_malloc_hook" >&5
   11768 $as_echo "$je_cv_glibc_malloc_hook" >&6; }
   11769 
   11770 if test "x${je_cv_glibc_malloc_hook}" = "xyes" ; then
   11771   if test "x${JEMALLOC_PREFIX}" = "x" ; then
   11772     $as_echo "#define JEMALLOC_GLIBC_MALLOC_HOOK  " >>confdefs.h
   11773 
   11774     wrap_syms="${wrap_syms} __free_hook __malloc_hook __realloc_hook"
   11775   fi
   11776 fi
   11777 
   11778 
   11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc memalign hook is compilable" >&5
   11780 $as_echo_n "checking whether glibc memalign hook is compilable... " >&6; }
   11781 if ${je_cv_glibc_memalign_hook+:} false; then :
   11782   $as_echo_n "(cached) " >&6
   11783 else
   11784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11785 /* end confdefs.h.  */
   11786 
   11787 #include <stddef.h>
   11788 
   11789 extern void *(* __memalign_hook)(size_t alignment, size_t size);
   11790 
   11791 int
   11792 main ()
   11793 {
   11794 
   11795   void *ptr = 0L;
   11796   if (__memalign_hook) ptr = __memalign_hook(16, 7);
   11797 
   11798   ;
   11799   return 0;
   11800 }
   11801 _ACEOF
   11802 if ac_fn_c_try_link "$LINENO"; then :
   11803   je_cv_glibc_memalign_hook=yes
   11804 else
   11805   je_cv_glibc_memalign_hook=no
   11806 fi
   11807 rm -f core conftest.err conftest.$ac_objext \
   11808     conftest$ac_exeext conftest.$ac_ext
   11809 fi
   11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_memalign_hook" >&5
   11811 $as_echo "$je_cv_glibc_memalign_hook" >&6; }
   11812 
   11813 if test "x${je_cv_glibc_memalign_hook}" = "xyes" ; then
   11814   if test "x${JEMALLOC_PREFIX}" = "x" ; then
   11815     $as_echo "#define JEMALLOC_GLIBC_MEMALIGN_HOOK  " >>confdefs.h
   11816 
   11817     wrap_syms="${wrap_syms} __memalign_hook"
   11818   fi
   11819 fi
   11820 
   11821 
   11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads adaptive mutexes is compilable" >&5
   11823 $as_echo_n "checking whether pthreads adaptive mutexes is compilable... " >&6; }
   11824 if ${je_cv_pthread_mutex_adaptive_np+:} false; then :
   11825   $as_echo_n "(cached) " >&6
   11826 else
   11827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11828 /* end confdefs.h.  */
   11829 
   11830 #include <pthread.h>
   11831 
   11832 int
   11833 main ()
   11834 {
   11835 
   11836   pthread_mutexattr_t attr;
   11837   pthread_mutexattr_init(&attr);
   11838   pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
   11839   pthread_mutexattr_destroy(&attr);
   11840 
   11841   ;
   11842   return 0;
   11843 }
   11844 _ACEOF
   11845 if ac_fn_c_try_link "$LINENO"; then :
   11846   je_cv_pthread_mutex_adaptive_np=yes
   11847 else
   11848   je_cv_pthread_mutex_adaptive_np=no
   11849 fi
   11850 rm -f core conftest.err conftest.$ac_objext \
   11851     conftest$ac_exeext conftest.$ac_ext
   11852 fi
   11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_mutex_adaptive_np" >&5
   11854 $as_echo "$je_cv_pthread_mutex_adaptive_np" >&6; }
   11855 
   11856 if test "x${je_cv_pthread_mutex_adaptive_np}" = "xyes" ; then
   11857   $as_echo "#define JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP  " >>confdefs.h
   11858 
   11859 fi
   11860 
   11861 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   11862 
   11863 
   11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -D_GNU_SOURCE" >&5
   11865 $as_echo_n "checking whether compiler supports -D_GNU_SOURCE... " >&6; }
   11866 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   11867 T_APPEND_V=-D_GNU_SOURCE
   11868   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   11869   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   11870 else
   11871   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   11872 fi
   11873 
   11874 
   11875 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   11876   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   11877 else
   11878   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   11879 fi
   11880 
   11881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11882 /* end confdefs.h.  */
   11883 
   11884 
   11885 int
   11886 main ()
   11887 {
   11888 
   11889     return 0;
   11890 
   11891   ;
   11892   return 0;
   11893 }
   11894 _ACEOF
   11895 if ac_fn_c_try_compile "$LINENO"; then :
   11896   je_cv_cflags_added=-D_GNU_SOURCE
   11897               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11898 $as_echo "yes" >&6; }
   11899 else
   11900   je_cv_cflags_added=
   11901               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11902 $as_echo "no" >&6; }
   11903               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   11904 
   11905 fi
   11906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11907 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   11908   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   11909 else
   11910   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   11911 fi
   11912 
   11913 
   11914 
   11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
   11916 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
   11917 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   11918 T_APPEND_V=-Werror
   11919   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   11920   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   11921 else
   11922   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   11923 fi
   11924 
   11925 
   11926 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   11927   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   11928 else
   11929   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   11930 fi
   11931 
   11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11933 /* end confdefs.h.  */
   11934 
   11935 
   11936 int
   11937 main ()
   11938 {
   11939 
   11940     return 0;
   11941 
   11942   ;
   11943   return 0;
   11944 }
   11945 _ACEOF
   11946 if ac_fn_c_try_compile "$LINENO"; then :
   11947   je_cv_cflags_added=-Werror
   11948               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11949 $as_echo "yes" >&6; }
   11950 else
   11951   je_cv_cflags_added=
   11952               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11953 $as_echo "no" >&6; }
   11954               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   11955 
   11956 fi
   11957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11958 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   11959   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   11960 else
   11961   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   11962 fi
   11963 
   11964 
   11965 
   11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
   11967 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
   11968 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
   11969 T_APPEND_V=-herror_on_warning
   11970   if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
   11971   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
   11972 else
   11973   CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
   11974 fi
   11975 
   11976 
   11977 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   11978   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   11979 else
   11980   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   11981 fi
   11982 
   11983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11984 /* end confdefs.h.  */
   11985 
   11986 
   11987 int
   11988 main ()
   11989 {
   11990 
   11991     return 0;
   11992 
   11993   ;
   11994   return 0;
   11995 }
   11996 _ACEOF
   11997 if ac_fn_c_try_compile "$LINENO"; then :
   11998   je_cv_cflags_added=-herror_on_warning
   11999               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   12000 $as_echo "yes" >&6; }
   12001 else
   12002   je_cv_cflags_added=
   12003               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12004 $as_echo "no" >&6; }
   12005               CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
   12006 
   12007 fi
   12008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12009 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   12010   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   12011 else
   12012   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   12013 fi
   12014 
   12015 
   12016 
   12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char with gnu source is compilable" >&5
   12018 $as_echo_n "checking whether strerror_r returns char with gnu source is compilable... " >&6; }
   12019 if ${je_cv_strerror_r_returns_char_with_gnu_source+:} false; then :
   12020   $as_echo_n "(cached) " >&6
   12021 else
   12022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12023 /* end confdefs.h.  */
   12024 
   12025 #include <errno.h>
   12026 #include <stdio.h>
   12027 #include <stdlib.h>
   12028 #include <string.h>
   12029 
   12030 int
   12031 main ()
   12032 {
   12033 
   12034   char *buffer = (char *) malloc(100);
   12035   char *error = strerror_r(EINVAL, buffer, 100);
   12036   printf("%s\n", error);
   12037 
   12038   ;
   12039   return 0;
   12040 }
   12041 _ACEOF
   12042 if ac_fn_c_try_link "$LINENO"; then :
   12043   je_cv_strerror_r_returns_char_with_gnu_source=yes
   12044 else
   12045   je_cv_strerror_r_returns_char_with_gnu_source=no
   12046 fi
   12047 rm -f core conftest.err conftest.$ac_objext \
   12048     conftest$ac_exeext conftest.$ac_ext
   12049 fi
   12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_strerror_r_returns_char_with_gnu_source" >&5
   12051 $as_echo "$je_cv_strerror_r_returns_char_with_gnu_source" >&6; }
   12052 
   12053 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
   12054 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
   12055   CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
   12056 else
   12057   CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
   12058 fi
   12059 
   12060 
   12061 if test "x${je_cv_strerror_r_returns_char_with_gnu_source}" = "xyes" ; then
   12062   $as_echo "#define JEMALLOC_STRERROR_R_RETURNS_CHAR_WITH_GNU_SOURCE  " >>confdefs.h
   12063 
   12064 fi
   12065 
   12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
   12067 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
   12068 if ${ac_cv_header_stdbool_h+:} false; then :
   12069   $as_echo_n "(cached) " >&6
   12070 else
   12071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12072 /* end confdefs.h.  */
   12073 
   12074              #include <stdbool.h>
   12075              #ifndef bool
   12076               "error: bool is not defined"
   12077              #endif
   12078              #ifndef false
   12079               "error: false is not defined"
   12080              #endif
   12081              #if false
   12082               "error: false is not 0"
   12083              #endif
   12084              #ifndef true
   12085               "error: true is not defined"
   12086              #endif
   12087              #if true != 1
   12088               "error: true is not 1"
   12089              #endif
   12090              #ifndef __bool_true_false_are_defined
   12091               "error: __bool_true_false_are_defined is not defined"
   12092              #endif
   12093 
   12094              struct s { _Bool s: 1; _Bool t; } s;
   12095 
   12096              char a[true == 1 ? 1 : -1];
   12097              char b[false == 0 ? 1 : -1];
   12098              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
   12099              char d[(bool) 0.5 == true ? 1 : -1];
   12100              /* See body of main program for 'e'.  */
   12101              char f[(_Bool) 0.0 == false ? 1 : -1];
   12102              char g[true];
   12103              char h[sizeof (_Bool)];
   12104              char i[sizeof s.t];
   12105              enum { j = false, k = true, l = false * true, m = true * 256 };
   12106              /* The following fails for
   12107                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
   12108              _Bool n[m];
   12109              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
   12110              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
   12111              /* Catch a bug in an HP-UX C compiler.  See
   12112                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
   12113                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
   12114               */
   12115              _Bool q = true;
   12116              _Bool *pq = &q;
   12117 
   12118 int
   12119 main ()
   12120 {
   12121 
   12122              bool e = &s;
   12123              *pq |= q;
   12124              *pq |= ! q;
   12125              /* Refer to every declared value, to avoid compiler optimizations.  */
   12126              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
   12127                      + !m + !n + !o + !p + !q + !pq);
   12128 
   12129   ;
   12130   return 0;
   12131 }
   12132 _ACEOF
   12133 if ac_fn_c_try_compile "$LINENO"; then :
   12134   ac_cv_header_stdbool_h=yes
   12135 else
   12136   ac_cv_header_stdbool_h=no
   12137 fi
   12138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12139 fi
   12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
   12141 $as_echo "$ac_cv_header_stdbool_h" >&6; }
   12142    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
   12143 if test "x$ac_cv_type__Bool" = xyes; then :
   12144 
   12145 cat >>confdefs.h <<_ACEOF
   12146 #define HAVE__BOOL 1
   12147 _ACEOF
   12148 
   12149 
   12150 fi
   12151 
   12152 
   12153 if test $ac_cv_header_stdbool_h = yes; then
   12154 
   12155 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
   12156 
   12157 fi
   12158 
   12159 
   12160 
   12161 ac_config_commands="$ac_config_commands include/jemalloc/internal/public_symbols.txt"
   12162 
   12163 ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols.awk"
   12164 
   12165 ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols_jet.awk"
   12166 
   12167 ac_config_commands="$ac_config_commands include/jemalloc/internal/public_namespace.h"
   12168 
   12169 ac_config_commands="$ac_config_commands include/jemalloc/internal/public_unnamespace.h"
   12170 
   12171 ac_config_commands="$ac_config_commands include/jemalloc/internal/size_classes.h"
   12172 
   12173 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_protos_jet.h"
   12174 
   12175 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_rename.h"
   12176 
   12177 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle.h"
   12178 
   12179 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle_jet.h"
   12180 
   12181 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc.h"
   12182 
   12183 
   12184 
   12185 
   12186 ac_config_headers="$ac_config_headers $cfghdrs_tup"
   12187 
   12188 
   12189 
   12190 ac_config_files="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc-config bin/jemalloc.sh bin/jeprof"
   12191 
   12192 
   12193 
   12194 cat >confcache <<\_ACEOF
   12195 # This file is a shell script that caches the results of configure
   12196 # tests run on this system so they can be shared between configure
   12197 # scripts and configure runs, see configure's option --config-cache.
   12198 # It is not useful on other systems.  If it contains results you don't
   12199 # want to keep, you may remove or edit it.
   12200 #
   12201 # config.status only pays attention to the cache file if you give it
   12202 # the --recheck option to rerun configure.
   12203 #
   12204 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   12205 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   12206 # following values.
   12207 
   12208 _ACEOF
   12209 
   12210 # The following way of writing the cache mishandles newlines in values,
   12211 # but we know of no workaround that is simple, portable, and efficient.
   12212 # So, we kill variables containing newlines.
   12213 # Ultrix sh set writes to stderr and can't be redirected directly,
   12214 # and sets the high bit in the cache file unless we assign to the vars.
   12215 (
   12216   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   12217     eval ac_val=\$$ac_var
   12218     case $ac_val in #(
   12219     *${as_nl}*)
   12220       case $ac_var in #(
   12221       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   12222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   12223       esac
   12224       case $ac_var in #(
   12225       _ | IFS | as_nl) ;; #(
   12226       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   12227       *) { eval $ac_var=; unset $ac_var;} ;;
   12228       esac ;;
   12229     esac
   12230   done
   12231 
   12232   (set) 2>&1 |
   12233     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   12234     *${as_nl}ac_space=\ *)
   12235       # `set' does not quote correctly, so add quotes: double-quote
   12236       # substitution turns \\\\ into \\, and sed turns \\ into \.
   12237       sed -n \
   12238 	"s/'/'\\\\''/g;
   12239 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   12240       ;; #(
   12241     *)
   12242       # `set' quotes correctly as required by POSIX, so do not add quotes.
   12243       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   12244       ;;
   12245     esac |
   12246     sort
   12247 ) |
   12248   sed '
   12249      /^ac_cv_env_/b end
   12250      t clear
   12251      :clear
   12252      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   12253      t end
   12254      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   12255      :end' >>confcache
   12256 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   12257   if test -w "$cache_file"; then
   12258     if test "x$cache_file" != "x/dev/null"; then
   12259       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   12260 $as_echo "$as_me: updating cache $cache_file" >&6;}
   12261       if test ! -f "$cache_file" || test -h "$cache_file"; then
   12262 	cat confcache >"$cache_file"
   12263       else
   12264         case $cache_file in #(
   12265         */* | ?:*)
   12266 	  mv -f confcache "$cache_file"$$ &&
   12267 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   12268         *)
   12269 	  mv -f confcache "$cache_file" ;;
   12270 	esac
   12271       fi
   12272     fi
   12273   else
   12274     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   12275 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   12276   fi
   12277 fi
   12278 rm -f confcache
   12279 
   12280 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   12281 # Let make expand exec_prefix.
   12282 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   12283 
   12284 DEFS=-DHAVE_CONFIG_H
   12285 
   12286 ac_libobjs=
   12287 ac_ltlibobjs=
   12288 U=
   12289 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   12290   # 1. Remove the extension, and $U if already installed.
   12291   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   12292   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   12293   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   12294   #    will be set to the directory where LIBOBJS objects are built.
   12295   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   12296   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   12297 done
   12298 LIBOBJS=$ac_libobjs
   12299 
   12300 LTLIBOBJS=$ac_ltlibobjs
   12301 
   12302 
   12303 
   12304 
   12305 : "${CONFIG_STATUS=./config.status}"
   12306 ac_write_fail=0
   12307 ac_clean_files_save=$ac_clean_files
   12308 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   12309 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   12310 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   12311 as_write_fail=0
   12312 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   12313 #! $SHELL
   12314 # Generated by $as_me.
   12315 # Run this file to recreate the current configuration.
   12316 # Compiler output produced by configure, useful for debugging
   12317 # configure, is in config.log if it exists.
   12318 
   12319 debug=false
   12320 ac_cs_recheck=false
   12321 ac_cs_silent=false
   12322 
   12323 SHELL=\${CONFIG_SHELL-$SHELL}
   12324 export SHELL
   12325 _ASEOF
   12326 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   12327 ## -------------------- ##
   12328 ## M4sh Initialization. ##
   12329 ## -------------------- ##
   12330 
   12331 # Be more Bourne compatible
   12332 DUALCASE=1; export DUALCASE # for MKS sh
   12333 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   12334   emulate sh
   12335   NULLCMD=:
   12336   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   12337   # is contrary to our usage.  Disable this feature.
   12338   alias -g '${1+"$@"}'='"$@"'
   12339   setopt NO_GLOB_SUBST
   12340 else
   12341   case `(set -o) 2>/dev/null` in #(
   12342   *posix*) :
   12343     set -o posix ;; #(
   12344   *) :
   12345      ;;
   12346 esac
   12347 fi
   12348 
   12349 
   12350 as_nl='
   12351 '
   12352 export as_nl
   12353 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   12354 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   12355 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   12356 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   12357 # Prefer a ksh shell builtin over an external printf program on Solaris,
   12358 # but without wasting forks for bash or zsh.
   12359 if test -z "$BASH_VERSION$ZSH_VERSION" \
   12360     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   12361   as_echo='print -r --'
   12362   as_echo_n='print -rn --'
   12363 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   12364   as_echo='printf %s\n'
   12365   as_echo_n='printf %s'
   12366 else
   12367   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   12368     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   12369     as_echo_n='/usr/ucb/echo -n'
   12370   else
   12371     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   12372     as_echo_n_body='eval
   12373       arg=$1;
   12374       case $arg in #(
   12375       *"$as_nl"*)
   12376 	expr "X$arg" : "X\\(.*\\)$as_nl";
   12377 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   12378       esac;
   12379       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   12380     '
   12381     export as_echo_n_body
   12382     as_echo_n='sh -c $as_echo_n_body as_echo'
   12383   fi
   12384   export as_echo_body
   12385   as_echo='sh -c $as_echo_body as_echo'
   12386 fi
   12387 
   12388 # The user is always right.
   12389 if test "${PATH_SEPARATOR+set}" != set; then
   12390   PATH_SEPARATOR=:
   12391   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   12392     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   12393       PATH_SEPARATOR=';'
   12394   }
   12395 fi
   12396 
   12397 
   12398 # IFS
   12399 # We need space, tab and new line, in precisely that order.  Quoting is
   12400 # there to prevent editors from complaining about space-tab.
   12401 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   12402 # splitting by setting IFS to empty value.)
   12403 IFS=" ""	$as_nl"
   12404 
   12405 # Find who we are.  Look in the path if we contain no directory separator.
   12406 as_myself=
   12407 case $0 in #((
   12408   *[\\/]* ) as_myself=$0 ;;
   12409   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12410 for as_dir in $PATH
   12411 do
   12412   IFS=$as_save_IFS
   12413   test -z "$as_dir" && as_dir=.
   12414     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   12415   done
   12416 IFS=$as_save_IFS
   12417 
   12418      ;;
   12419 esac
   12420 # We did not find ourselves, most probably we were run as `sh COMMAND'
   12421 # in which case we are not to be found in the path.
   12422 if test "x$as_myself" = x; then
   12423   as_myself=$0
   12424 fi
   12425 if test ! -f "$as_myself"; then
   12426   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   12427   exit 1
   12428 fi
   12429 
   12430 # Unset variables that we do not need and which cause bugs (e.g. in
   12431 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   12432 # suppresses any "Segmentation fault" message there.  '((' could
   12433 # trigger a bug in pdksh 5.2.14.
   12434 for as_var in BASH_ENV ENV MAIL MAILPATH
   12435 do eval test x\${$as_var+set} = xset \
   12436   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   12437 done
   12438 PS1='$ '
   12439 PS2='> '
   12440 PS4='+ '
   12441 
   12442 # NLS nuisances.
   12443 LC_ALL=C
   12444 export LC_ALL
   12445 LANGUAGE=C
   12446 export LANGUAGE
   12447 
   12448 # CDPATH.
   12449 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   12450 
   12451 
   12452 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   12453 # ----------------------------------------
   12454 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   12455 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   12456 # script with STATUS, using 1 if that was 0.
   12457 as_fn_error ()
   12458 {
   12459   as_status=$1; test $as_status -eq 0 && as_status=1
   12460   if test "$4"; then
   12461     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   12462     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   12463   fi
   12464   $as_echo "$as_me: error: $2" >&2
   12465   as_fn_exit $as_status
   12466 } # as_fn_error
   12467 
   12468 
   12469 # as_fn_set_status STATUS
   12470 # -----------------------
   12471 # Set $? to STATUS, without forking.
   12472 as_fn_set_status ()
   12473 {
   12474   return $1
   12475 } # as_fn_set_status
   12476 
   12477 # as_fn_exit STATUS
   12478 # -----------------
   12479 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   12480 as_fn_exit ()
   12481 {
   12482   set +e
   12483   as_fn_set_status $1
   12484   exit $1
   12485 } # as_fn_exit
   12486 
   12487 # as_fn_unset VAR
   12488 # ---------------
   12489 # Portably unset VAR.
   12490 as_fn_unset ()
   12491 {
   12492   { eval $1=; unset $1;}
   12493 }
   12494 as_unset=as_fn_unset
   12495 # as_fn_append VAR VALUE
   12496 # ----------------------
   12497 # Append the text in VALUE to the end of the definition contained in VAR. Take
   12498 # advantage of any shell optimizations that allow amortized linear growth over
   12499 # repeated appends, instead of the typical quadratic growth present in naive
   12500 # implementations.
   12501 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   12502   eval 'as_fn_append ()
   12503   {
   12504     eval $1+=\$2
   12505   }'
   12506 else
   12507   as_fn_append ()
   12508   {
   12509     eval $1=\$$1\$2
   12510   }
   12511 fi # as_fn_append
   12512 
   12513 # as_fn_arith ARG...
   12514 # ------------------
   12515 # Perform arithmetic evaluation on the ARGs, and store the result in the
   12516 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   12517 # must be portable across $(()) and expr.
   12518 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   12519   eval 'as_fn_arith ()
   12520   {
   12521     as_val=$(( $* ))
   12522   }'
   12523 else
   12524   as_fn_arith ()
   12525   {
   12526     as_val=`expr "$@" || test $? -eq 1`
   12527   }
   12528 fi # as_fn_arith
   12529 
   12530 
   12531 if expr a : '\(a\)' >/dev/null 2>&1 &&
   12532    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   12533   as_expr=expr
   12534 else
   12535   as_expr=false
   12536 fi
   12537 
   12538 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   12539   as_basename=basename
   12540 else
   12541   as_basename=false
   12542 fi
   12543 
   12544 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   12545   as_dirname=dirname
   12546 else
   12547   as_dirname=false
   12548 fi
   12549 
   12550 as_me=`$as_basename -- "$0" ||
   12551 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   12552 	 X"$0" : 'X\(//\)$' \| \
   12553 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   12554 $as_echo X/"$0" |
   12555     sed '/^.*\/\([^/][^/]*\)\/*$/{
   12556 	    s//\1/
   12557 	    q
   12558 	  }
   12559 	  /^X\/\(\/\/\)$/{
   12560 	    s//\1/
   12561 	    q
   12562 	  }
   12563 	  /^X\/\(\/\).*/{
   12564 	    s//\1/
   12565 	    q
   12566 	  }
   12567 	  s/.*/./; q'`
   12568 
   12569 # Avoid depending upon Character Ranges.
   12570 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   12571 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   12572 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   12573 as_cr_digits='0123456789'
   12574 as_cr_alnum=$as_cr_Letters$as_cr_digits
   12575 
   12576 ECHO_C= ECHO_N= ECHO_T=
   12577 case `echo -n x` in #(((((
   12578 -n*)
   12579   case `echo 'xy\c'` in
   12580   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   12581   xy)  ECHO_C='\c';;
   12582   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   12583        ECHO_T='	';;
   12584   esac;;
   12585 *)
   12586   ECHO_N='-n';;
   12587 esac
   12588 
   12589 rm -f conf$$ conf$$.exe conf$$.file
   12590 if test -d conf$$.dir; then
   12591   rm -f conf$$.dir/conf$$.file
   12592 else
   12593   rm -f conf$$.dir
   12594   mkdir conf$$.dir 2>/dev/null
   12595 fi
   12596 if (echo >conf$$.file) 2>/dev/null; then
   12597   if ln -s conf$$.file conf$$ 2>/dev/null; then
   12598     as_ln_s='ln -s'
   12599     # ... but there are two gotchas:
   12600     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   12601     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   12602     # In both cases, we have to default to `cp -pR'.
   12603     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   12604       as_ln_s='cp -pR'
   12605   elif ln conf$$.file conf$$ 2>/dev/null; then
   12606     as_ln_s=ln
   12607   else
   12608     as_ln_s='cp -pR'
   12609   fi
   12610 else
   12611   as_ln_s='cp -pR'
   12612 fi
   12613 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   12614 rmdir conf$$.dir 2>/dev/null
   12615 
   12616 
   12617 # as_fn_mkdir_p
   12618 # -------------
   12619 # Create "$as_dir" as a directory, including parents if necessary.
   12620 as_fn_mkdir_p ()
   12621 {
   12622 
   12623   case $as_dir in #(
   12624   -*) as_dir=./$as_dir;;
   12625   esac
   12626   test -d "$as_dir" || eval $as_mkdir_p || {
   12627     as_dirs=
   12628     while :; do
   12629       case $as_dir in #(
   12630       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   12631       *) as_qdir=$as_dir;;
   12632       esac
   12633       as_dirs="'$as_qdir' $as_dirs"
   12634       as_dir=`$as_dirname -- "$as_dir" ||
   12635 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   12636 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   12637 	 X"$as_dir" : 'X\(//\)$' \| \
   12638 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   12639 $as_echo X"$as_dir" |
   12640     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   12641 	    s//\1/
   12642 	    q
   12643 	  }
   12644 	  /^X\(\/\/\)[^/].*/{
   12645 	    s//\1/
   12646 	    q
   12647 	  }
   12648 	  /^X\(\/\/\)$/{
   12649 	    s//\1/
   12650 	    q
   12651 	  }
   12652 	  /^X\(\/\).*/{
   12653 	    s//\1/
   12654 	    q
   12655 	  }
   12656 	  s/.*/./; q'`
   12657       test -d "$as_dir" && break
   12658     done
   12659     test -z "$as_dirs" || eval "mkdir $as_dirs"
   12660   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   12661 
   12662 
   12663 } # as_fn_mkdir_p
   12664 if mkdir -p . 2>/dev/null; then
   12665   as_mkdir_p='mkdir -p "$as_dir"'
   12666 else
   12667   test -d ./-p && rmdir ./-p
   12668   as_mkdir_p=false
   12669 fi
   12670 
   12671 
   12672 # as_fn_executable_p FILE
   12673 # -----------------------
   12674 # Test if FILE is an executable regular file.
   12675 as_fn_executable_p ()
   12676 {
   12677   test -f "$1" && test -x "$1"
   12678 } # as_fn_executable_p
   12679 as_test_x='test -x'
   12680 as_executable_p=as_fn_executable_p
   12681 
   12682 # Sed expression to map a string onto a valid CPP name.
   12683 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   12684 
   12685 # Sed expression to map a string onto a valid variable name.
   12686 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   12687 
   12688 
   12689 exec 6>&1
   12690 ## ----------------------------------- ##
   12691 ## Main body of $CONFIG_STATUS script. ##
   12692 ## ----------------------------------- ##
   12693 _ASEOF
   12694 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   12695 
   12696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   12697 # Save the log message, to keep $0 and so on meaningful, and to
   12698 # report actual input values of CONFIG_FILES etc. instead of their
   12699 # values after options handling.
   12700 ac_log="
   12701 This file was extended by $as_me, which was
   12702 generated by GNU Autoconf 2.69.  Invocation command line was
   12703 
   12704   CONFIG_FILES    = $CONFIG_FILES
   12705   CONFIG_HEADERS  = $CONFIG_HEADERS
   12706   CONFIG_LINKS    = $CONFIG_LINKS
   12707   CONFIG_COMMANDS = $CONFIG_COMMANDS
   12708   $ $0 $@
   12709 
   12710 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   12711 "
   12712 
   12713 _ACEOF
   12714 
   12715 case $ac_config_files in *"
   12716 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   12717 esac
   12718 
   12719 case $ac_config_headers in *"
   12720 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   12721 esac
   12722 
   12723 
   12724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   12725 # Files that config.status was made for.
   12726 config_files="$ac_config_files"
   12727 config_headers="$ac_config_headers"
   12728 config_commands="$ac_config_commands"
   12729 
   12730 _ACEOF
   12731 
   12732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   12733 ac_cs_usage="\
   12734 \`$as_me' instantiates files and other configuration actions
   12735 from templates according to the current configuration.  Unless the files
   12736 and actions are specified as TAGs, all are instantiated by default.
   12737 
   12738 Usage: $0 [OPTION]... [TAG]...
   12739 
   12740   -h, --help       print this help, then exit
   12741   -V, --version    print version number and configuration settings, then exit
   12742       --config     print configuration, then exit
   12743   -q, --quiet, --silent
   12744                    do not print progress messages
   12745   -d, --debug      don't remove temporary files
   12746       --recheck    update $as_me by reconfiguring in the same conditions
   12747       --file=FILE[:TEMPLATE]
   12748                    instantiate the configuration file FILE
   12749       --header=FILE[:TEMPLATE]
   12750                    instantiate the configuration header FILE
   12751 
   12752 Configuration files:
   12753 $config_files
   12754 
   12755 Configuration headers:
   12756 $config_headers
   12757 
   12758 Configuration commands:
   12759 $config_commands
   12760 
   12761 Report bugs to the package provider."
   12762 
   12763 _ACEOF
   12764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   12765 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   12766 ac_cs_version="\\
   12767 config.status
   12768 configured by $0, generated by GNU Autoconf 2.69,
   12769   with options \\"\$ac_cs_config\\"
   12770 
   12771 Copyright (C) 2012 Free Software Foundation, Inc.
   12772 This config.status script is free software; the Free Software Foundation
   12773 gives unlimited permission to copy, distribute and modify it."
   12774 
   12775 ac_pwd='$ac_pwd'
   12776 srcdir='$srcdir'
   12777 INSTALL='$INSTALL'
   12778 AWK='$AWK'
   12779 test -n "\$AWK" || AWK=awk
   12780 _ACEOF
   12781 
   12782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   12783 # The default lists apply if the user does not specify any file.
   12784 ac_need_defaults=:
   12785 while test $# != 0
   12786 do
   12787   case $1 in
   12788   --*=?*)
   12789     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   12790     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   12791     ac_shift=:
   12792     ;;
   12793   --*=)
   12794     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   12795     ac_optarg=
   12796     ac_shift=:
   12797     ;;
   12798   *)
   12799     ac_option=$1
   12800     ac_optarg=$2
   12801     ac_shift=shift
   12802     ;;
   12803   esac
   12804 
   12805   case $ac_option in
   12806   # Handling of the options.
   12807   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   12808     ac_cs_recheck=: ;;
   12809   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   12810     $as_echo "$ac_cs_version"; exit ;;
   12811   --config | --confi | --conf | --con | --co | --c )
   12812     $as_echo "$ac_cs_config"; exit ;;
   12813   --debug | --debu | --deb | --de | --d | -d )
   12814     debug=: ;;
   12815   --file | --fil | --fi | --f )
   12816     $ac_shift
   12817     case $ac_optarg in
   12818     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   12819     '') as_fn_error $? "missing file argument" ;;
   12820     esac
   12821     as_fn_append CONFIG_FILES " '$ac_optarg'"
   12822     ac_need_defaults=false;;
   12823   --header | --heade | --head | --hea )
   12824     $ac_shift
   12825     case $ac_optarg in
   12826     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   12827     esac
   12828     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   12829     ac_need_defaults=false;;
   12830   --he | --h)
   12831     # Conflict between --help and --header
   12832     as_fn_error $? "ambiguous option: \`$1'
   12833 Try \`$0 --help' for more information.";;
   12834   --help | --hel | -h )
   12835     $as_echo "$ac_cs_usage"; exit ;;
   12836   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   12837   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   12838     ac_cs_silent=: ;;
   12839 
   12840   # This is an error.
   12841   -*) as_fn_error $? "unrecognized option: \`$1'
   12842 Try \`$0 --help' for more information." ;;
   12843 
   12844   *) as_fn_append ac_config_targets " $1"
   12845      ac_need_defaults=false ;;
   12846 
   12847   esac
   12848   shift
   12849 done
   12850 
   12851 ac_configure_extra_args=
   12852 
   12853 if $ac_cs_silent; then
   12854   exec 6>/dev/null
   12855   ac_configure_extra_args="$ac_configure_extra_args --silent"
   12856 fi
   12857 
   12858 _ACEOF
   12859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   12860 if \$ac_cs_recheck; then
   12861   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   12862   shift
   12863   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   12864   CONFIG_SHELL='$SHELL'
   12865   export CONFIG_SHELL
   12866   exec "\$@"
   12867 fi
   12868 
   12869 _ACEOF
   12870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   12871 exec 5>>config.log
   12872 {
   12873   echo
   12874   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   12875 ## Running $as_me. ##
   12876 _ASBOX
   12877   $as_echo "$ac_log"
   12878 } >&5
   12879 
   12880 _ACEOF
   12881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   12882 #
   12883 # INIT-COMMANDS
   12884 #
   12885 
   12886   srcdir="${srcdir}"
   12887   objroot="${objroot}"
   12888   mangling_map="${mangling_map}"
   12889   public_syms="${public_syms}"
   12890   JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
   12891 
   12892 
   12893   srcdir="${srcdir}"
   12894   objroot="${objroot}"
   12895   public_syms="${public_syms}"
   12896   wrap_syms="${wrap_syms}"
   12897   SYM_PREFIX="${SYM_PREFIX}"
   12898   JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
   12899 
   12900 
   12901   srcdir="${srcdir}"
   12902   objroot="${objroot}"
   12903   public_syms="${public_syms}"
   12904   wrap_syms="${wrap_syms}"
   12905   SYM_PREFIX="${SYM_PREFIX}"
   12906 
   12907 
   12908   srcdir="${srcdir}"
   12909   objroot="${objroot}"
   12910 
   12911 
   12912   srcdir="${srcdir}"
   12913   objroot="${objroot}"
   12914 
   12915 
   12916   SHELL="${SHELL}"
   12917   srcdir="${srcdir}"
   12918   objroot="${objroot}"
   12919   LG_QUANTA="${LG_QUANTA}"
   12920   LG_PAGE_SIZES="${LG_PAGE_SIZES}"
   12921 
   12922 
   12923   srcdir="${srcdir}"
   12924   objroot="${objroot}"
   12925 
   12926 
   12927   srcdir="${srcdir}"
   12928   objroot="${objroot}"
   12929 
   12930 
   12931   srcdir="${srcdir}"
   12932   objroot="${objroot}"
   12933 
   12934 
   12935   srcdir="${srcdir}"
   12936   objroot="${objroot}"
   12937 
   12938 
   12939   srcdir="${srcdir}"
   12940   objroot="${objroot}"
   12941   install_suffix="${install_suffix}"
   12942 
   12943 
   12944 _ACEOF
   12945 
   12946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   12947 
   12948 # Handling of arguments.
   12949 for ac_config_target in $ac_config_targets
   12950 do
   12951   case $ac_config_target in
   12952     "include/jemalloc/internal/public_symbols.txt") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_symbols.txt" ;;
   12953     "include/jemalloc/internal/private_symbols.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols.awk" ;;
   12954     "include/jemalloc/internal/private_symbols_jet.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols_jet.awk" ;;
   12955     "include/jemalloc/internal/public_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_namespace.h" ;;
   12956     "include/jemalloc/internal/public_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_unnamespace.h" ;;
   12957     "include/jemalloc/internal/size_classes.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/size_classes.h" ;;
   12958     "include/jemalloc/jemalloc_protos_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_protos_jet.h" ;;
   12959     "include/jemalloc/jemalloc_rename.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_rename.h" ;;
   12960     "include/jemalloc/jemalloc_mangle.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle.h" ;;
   12961     "include/jemalloc/jemalloc_mangle_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle_jet.h" ;;
   12962     "include/jemalloc/jemalloc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc.h" ;;
   12963     "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;;
   12964     "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;;
   12965     "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;;
   12966     "bin/jemalloc-config") CONFIG_FILES="$CONFIG_FILES bin/jemalloc-config" ;;
   12967     "bin/jemalloc.sh") CONFIG_FILES="$CONFIG_FILES bin/jemalloc.sh" ;;
   12968     "bin/jeprof") CONFIG_FILES="$CONFIG_FILES bin/jeprof" ;;
   12969 
   12970   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   12971   esac
   12972 done
   12973 
   12974 
   12975 # If the user did not use the arguments to specify the items to instantiate,
   12976 # then the envvar interface is used.  Set only those that are not.
   12977 # We use the long form for the default assignment because of an extremely
   12978 # bizarre bug on SunOS 4.1.3.
   12979 if $ac_need_defaults; then
   12980   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   12981   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   12982   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   12983 fi
   12984 
   12985 # Have a temporary directory for convenience.  Make it in the build tree
   12986 # simply because there is no reason against having it here, and in addition,
   12987 # creating and moving files from /tmp can sometimes cause problems.
   12988 # Hook for its removal unless debugging.
   12989 # Note that there is a small window in which the directory will not be cleaned:
   12990 # after its creation but before its name has been assigned to `$tmp'.
   12991 $debug ||
   12992 {
   12993   tmp= ac_tmp=
   12994   trap 'exit_status=$?
   12995   : "${ac_tmp:=$tmp}"
   12996   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   12997 ' 0
   12998   trap 'as_fn_exit 1' 1 2 13 15
   12999 }
   13000 # Create a (secure) tmp directory for tmp files.
   13001 
   13002 {
   13003   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   13004   test -d "$tmp"
   13005 }  ||
   13006 {
   13007   tmp=./conf$$-$RANDOM
   13008   (umask 077 && mkdir "$tmp")
   13009 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   13010 ac_tmp=$tmp
   13011 
   13012 # Set up the scripts for CONFIG_FILES section.
   13013 # No need to generate them if there are no CONFIG_FILES.
   13014 # This happens for instance with `./config.status config.h'.
   13015 if test -n "$CONFIG_FILES"; then
   13016 
   13017 
   13018 ac_cr=`echo X | tr X '\015'`
   13019 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   13020 # But we know of no other shell where ac_cr would be empty at this
   13021 # point, so we can use a bashism as a fallback.
   13022 if test "x$ac_cr" = x; then
   13023   eval ac_cr=\$\'\\r\'
   13024 fi
   13025 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   13026 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   13027   ac_cs_awk_cr='\\r'
   13028 else
   13029   ac_cs_awk_cr=$ac_cr
   13030 fi
   13031 
   13032 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   13033 _ACEOF
   13034 
   13035 
   13036 {
   13037   echo "cat >conf$$subs.awk <<_ACEOF" &&
   13038   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   13039   echo "_ACEOF"
   13040 } >conf$$subs.sh ||
   13041   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   13042 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   13043 ac_delim='%!_!# '
   13044 for ac_last_try in false false false false false :; do
   13045   . ./conf$$subs.sh ||
   13046     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   13047 
   13048   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   13049   if test $ac_delim_n = $ac_delim_num; then
   13050     break
   13051   elif $ac_last_try; then
   13052     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   13053   else
   13054     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   13055   fi
   13056 done
   13057 rm -f conf$$subs.sh
   13058 
   13059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   13060 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   13061 _ACEOF
   13062 sed -n '
   13063 h
   13064 s/^/S["/; s/!.*/"]=/
   13065 p
   13066 g
   13067 s/^[^!]*!//
   13068 :repl
   13069 t repl
   13070 s/'"$ac_delim"'$//
   13071 t delim
   13072 :nl
   13073 h
   13074 s/\(.\{148\}\)..*/\1/
   13075 t more1
   13076 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   13077 p
   13078 n
   13079 b repl
   13080 :more1
   13081 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   13082 p
   13083 g
   13084 s/.\{148\}//
   13085 t nl
   13086 :delim
   13087 h
   13088 s/\(.\{148\}\)..*/\1/
   13089 t more2
   13090 s/["\\]/\\&/g; s/^/"/; s/$/"/
   13091 p
   13092 b
   13093 :more2
   13094 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   13095 p
   13096 g
   13097 s/.\{148\}//
   13098 t delim
   13099 ' <conf$$subs.awk | sed '
   13100 /^[^""]/{
   13101   N
   13102   s/\n//
   13103 }
   13104 ' >>$CONFIG_STATUS || ac_write_fail=1
   13105 rm -f conf$$subs.awk
   13106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   13107 _ACAWK
   13108 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   13109   for (key in S) S_is_set[key] = 1
   13110   FS = ""
   13111 
   13112 }
   13113 {
   13114   line = $ 0
   13115   nfields = split(line, field, "@")
   13116   substed = 0
   13117   len = length(field[1])
   13118   for (i = 2; i < nfields; i++) {
   13119     key = field[i]
   13120     keylen = length(key)
   13121     if (S_is_set[key]) {
   13122       value = S[key]
   13123       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   13124       len += length(value) + length(field[++i])
   13125       substed = 1
   13126     } else
   13127       len += 1 + keylen
   13128   }
   13129 
   13130   print line
   13131 }
   13132 
   13133 _ACAWK
   13134 _ACEOF
   13135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   13136 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   13137   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   13138 else
   13139   cat
   13140 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   13141   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   13142 _ACEOF
   13143 
   13144 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   13145 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   13146 # trailing colons and then remove the whole line if VPATH becomes empty
   13147 # (actually we leave an empty line to preserve line numbers).
   13148 if test "x$srcdir" = x.; then
   13149   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   13150 h
   13151 s///
   13152 s/^/:/
   13153 s/[	 ]*$/:/
   13154 s/:\$(srcdir):/:/g
   13155 s/:\${srcdir}:/:/g
   13156 s/:@srcdir@:/:/g
   13157 s/^:*//
   13158 s/:*$//
   13159 x
   13160 s/\(=[	 ]*\).*/\1/
   13161 G
   13162 s/\n//
   13163 s/^[^=]*=[	 ]*$//
   13164 }'
   13165 fi
   13166 
   13167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   13168 fi # test -n "$CONFIG_FILES"
   13169 
   13170 # Set up the scripts for CONFIG_HEADERS section.
   13171 # No need to generate them if there are no CONFIG_HEADERS.
   13172 # This happens for instance with `./config.status Makefile'.
   13173 if test -n "$CONFIG_HEADERS"; then
   13174 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   13175 BEGIN {
   13176 _ACEOF
   13177 
   13178 # Transform confdefs.h into an awk script `defines.awk', embedded as
   13179 # here-document in config.status, that substitutes the proper values into
   13180 # config.h.in to produce config.h.
   13181 
   13182 # Create a delimiter string that does not exist in confdefs.h, to ease
   13183 # handling of long lines.
   13184 ac_delim='%!_!# '
   13185 for ac_last_try in false false :; do
   13186   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   13187   if test -z "$ac_tt"; then
   13188     break
   13189   elif $ac_last_try; then
   13190     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   13191   else
   13192     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   13193   fi
   13194 done
   13195 
   13196 # For the awk script, D is an array of macro values keyed by name,
   13197 # likewise P contains macro parameters if any.  Preserve backslash
   13198 # newline sequences.
   13199 
   13200 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   13201 sed -n '
   13202 s/.\{148\}/&'"$ac_delim"'/g
   13203 t rset
   13204 :rset
   13205 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   13206 t def
   13207 d
   13208 :def
   13209 s/\\$//
   13210 t bsnl
   13211 s/["\\]/\\&/g
   13212 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   13213 D["\1"]=" \3"/p
   13214 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   13215 d
   13216 :bsnl
   13217 s/["\\]/\\&/g
   13218 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   13219 D["\1"]=" \3\\\\\\n"\\/p
   13220 t cont
   13221 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   13222 t cont
   13223 d
   13224 :cont
   13225 n
   13226 s/.\{148\}/&'"$ac_delim"'/g
   13227 t clear
   13228 :clear
   13229 s/\\$//
   13230 t bsnlc
   13231 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   13232 d
   13233 :bsnlc
   13234 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   13235 b cont
   13236 ' <confdefs.h | sed '
   13237 s/'"$ac_delim"'/"\\\
   13238 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   13239 
   13240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   13241   for (key in D) D_is_set[key] = 1
   13242   FS = ""
   13243 }
   13244 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   13245   line = \$ 0
   13246   split(line, arg, " ")
   13247   if (arg[1] == "#") {
   13248     defundef = arg[2]
   13249     mac1 = arg[3]
   13250   } else {
   13251     defundef = substr(arg[1], 2)
   13252     mac1 = arg[2]
   13253   }
   13254   split(mac1, mac2, "(") #)
   13255   macro = mac2[1]
   13256   prefix = substr(line, 1, index(line, defundef) - 1)
   13257   if (D_is_set[macro]) {
   13258     # Preserve the white space surrounding the "#".
   13259     print prefix "define", macro P[macro] D[macro]
   13260     next
   13261   } else {
   13262     # Replace #undef with comments.  This is necessary, for example,
   13263     # in the case of _POSIX_SOURCE, which is predefined and required
   13264     # on some systems where configure will not decide to define it.
   13265     if (defundef == "undef") {
   13266       print "/*", prefix defundef, macro, "*/"
   13267       next
   13268     }
   13269   }
   13270 }
   13271 { print }
   13272 _ACAWK
   13273 _ACEOF
   13274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   13275   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   13276 fi # test -n "$CONFIG_HEADERS"
   13277 
   13278 
   13279 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   13280 shift
   13281 for ac_tag
   13282 do
   13283   case $ac_tag in
   13284   :[FHLC]) ac_mode=$ac_tag; continue;;
   13285   esac
   13286   case $ac_mode$ac_tag in
   13287   :[FHL]*:*);;
   13288   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   13289   :[FH]-) ac_tag=-:-;;
   13290   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   13291   esac
   13292   ac_save_IFS=$IFS
   13293   IFS=:
   13294   set x $ac_tag
   13295   IFS=$ac_save_IFS
   13296   shift
   13297   ac_file=$1
   13298   shift
   13299 
   13300   case $ac_mode in
   13301   :L) ac_source=$1;;
   13302   :[FH])
   13303     ac_file_inputs=
   13304     for ac_f
   13305     do
   13306       case $ac_f in
   13307       -) ac_f="$ac_tmp/stdin";;
   13308       *) # Look for the file first in the build tree, then in the source tree
   13309 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   13310 	 # because $ac_f cannot contain `:'.
   13311 	 test -f "$ac_f" ||
   13312 	   case $ac_f in
   13313 	   [\\/$]*) false;;
   13314 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   13315 	   esac ||
   13316 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   13317       esac
   13318       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   13319       as_fn_append ac_file_inputs " '$ac_f'"
   13320     done
   13321 
   13322     # Let's still pretend it is `configure' which instantiates (i.e., don't
   13323     # use $as_me), people would be surprised to read:
   13324     #    /* config.h.  Generated by config.status.  */
   13325     configure_input='Generated from '`
   13326 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   13327 	`' by configure.'
   13328     if test x"$ac_file" != x-; then
   13329       configure_input="$ac_file.  $configure_input"
   13330       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   13331 $as_echo "$as_me: creating $ac_file" >&6;}
   13332     fi
   13333     # Neutralize special characters interpreted by sed in replacement strings.
   13334     case $configure_input in #(
   13335     *\&* | *\|* | *\\* )
   13336        ac_sed_conf_input=`$as_echo "$configure_input" |
   13337        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   13338     *) ac_sed_conf_input=$configure_input;;
   13339     esac
   13340 
   13341     case $ac_tag in
   13342     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   13343       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   13344     esac
   13345     ;;
   13346   esac
   13347 
   13348   ac_dir=`$as_dirname -- "$ac_file" ||
   13349 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   13350 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   13351 	 X"$ac_file" : 'X\(//\)$' \| \
   13352 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   13353 $as_echo X"$ac_file" |
   13354     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   13355 	    s//\1/
   13356 	    q
   13357 	  }
   13358 	  /^X\(\/\/\)[^/].*/{
   13359 	    s//\1/
   13360 	    q
   13361 	  }
   13362 	  /^X\(\/\/\)$/{
   13363 	    s//\1/
   13364 	    q
   13365 	  }
   13366 	  /^X\(\/\).*/{
   13367 	    s//\1/
   13368 	    q
   13369 	  }
   13370 	  s/.*/./; q'`
   13371   as_dir="$ac_dir"; as_fn_mkdir_p
   13372   ac_builddir=.
   13373 
   13374 case "$ac_dir" in
   13375 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   13376 *)
   13377   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   13378   # A ".." for each directory in $ac_dir_suffix.
   13379   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   13380   case $ac_top_builddir_sub in
   13381   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   13382   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   13383   esac ;;
   13384 esac
   13385 ac_abs_top_builddir=$ac_pwd
   13386 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   13387 # for backward compatibility:
   13388 ac_top_builddir=$ac_top_build_prefix
   13389 
   13390 case $srcdir in
   13391   .)  # We are building in place.
   13392     ac_srcdir=.
   13393     ac_top_srcdir=$ac_top_builddir_sub
   13394     ac_abs_top_srcdir=$ac_pwd ;;
   13395   [\\/]* | ?:[\\/]* )  # Absolute name.
   13396     ac_srcdir=$srcdir$ac_dir_suffix;
   13397     ac_top_srcdir=$srcdir
   13398     ac_abs_top_srcdir=$srcdir ;;
   13399   *) # Relative name.
   13400     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   13401     ac_top_srcdir=$ac_top_build_prefix$srcdir
   13402     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   13403 esac
   13404 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   13405 
   13406 
   13407   case $ac_mode in
   13408   :F)
   13409   #
   13410   # CONFIG_FILE
   13411   #
   13412 
   13413   case $INSTALL in
   13414   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   13415   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   13416   esac
   13417 _ACEOF
   13418 
   13419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   13420 # If the template does not know about datarootdir, expand it.
   13421 # FIXME: This hack should be removed a few years after 2.60.
   13422 ac_datarootdir_hack=; ac_datarootdir_seen=
   13423 ac_sed_dataroot='
   13424 /datarootdir/ {
   13425   p
   13426   q
   13427 }
   13428 /@datadir@/p
   13429 /@docdir@/p
   13430 /@infodir@/p
   13431 /@localedir@/p
   13432 /@mandir@/p'
   13433 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   13434 *datarootdir*) ac_datarootdir_seen=yes;;
   13435 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   13436   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   13437 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   13438 _ACEOF
   13439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   13440   ac_datarootdir_hack='
   13441   s&@datadir@&$datadir&g
   13442   s&@docdir@&$docdir&g
   13443   s&@infodir@&$infodir&g
   13444   s&@localedir@&$localedir&g
   13445   s&@mandir@&$mandir&g
   13446   s&\\\${datarootdir}&$datarootdir&g' ;;
   13447 esac
   13448 _ACEOF
   13449 
   13450 # Neutralize VPATH when `$srcdir' = `.'.
   13451 # Shell code in configure.ac might set extrasub.
   13452 # FIXME: do we really want to maintain this feature?
   13453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   13454 ac_sed_extra="$ac_vpsub
   13455 $extrasub
   13456 _ACEOF
   13457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   13458 :t
   13459 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   13460 s|@configure_input@|$ac_sed_conf_input|;t t
   13461 s&@top_builddir@&$ac_top_builddir_sub&;t t
   13462 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   13463 s&@srcdir@&$ac_srcdir&;t t
   13464 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   13465 s&@top_srcdir@&$ac_top_srcdir&;t t
   13466 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   13467 s&@builddir@&$ac_builddir&;t t
   13468 s&@abs_builddir@&$ac_abs_builddir&;t t
   13469 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   13470 s&@INSTALL@&$ac_INSTALL&;t t
   13471 $ac_datarootdir_hack
   13472 "
   13473 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   13474   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   13475 
   13476 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   13477   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   13478   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   13479       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   13480   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   13481 which seems to be undefined.  Please make sure it is defined" >&5
   13482 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   13483 which seems to be undefined.  Please make sure it is defined" >&2;}
   13484 
   13485   rm -f "$ac_tmp/stdin"
   13486   case $ac_file in
   13487   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   13488   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   13489   esac \
   13490   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   13491  ;;
   13492   :H)
   13493   #
   13494   # CONFIG_HEADER
   13495   #
   13496   if test x"$ac_file" != x-; then
   13497     {
   13498       $as_echo "/* $configure_input  */" \
   13499       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   13500     } >"$ac_tmp/config.h" \
   13501       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   13502     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   13503       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   13504 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   13505     else
   13506       rm -f "$ac_file"
   13507       mv "$ac_tmp/config.h" "$ac_file" \
   13508 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   13509     fi
   13510   else
   13511     $as_echo "/* $configure_input  */" \
   13512       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   13513       || as_fn_error $? "could not create -" "$LINENO" 5
   13514   fi
   13515  ;;
   13516 
   13517   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   13518 $as_echo "$as_me: executing $ac_file commands" >&6;}
   13519  ;;
   13520   esac
   13521 
   13522 
   13523   case $ac_file$ac_mode in
   13524     "include/jemalloc/internal/public_symbols.txt":C)
   13525   f="${objroot}include/jemalloc/internal/public_symbols.txt"
   13526   mkdir -p "${objroot}include/jemalloc/internal"
   13527   cp /dev/null "${f}"
   13528   for nm in `echo ${mangling_map} |tr ',' ' '` ; do
   13529     n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'`
   13530     m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'`
   13531     echo "${n}:${m}" >> "${f}"
   13532         public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${n}\$" |tr '\n' ' '`
   13533   done
   13534   for sym in ${public_syms} ; do
   13535     n="${sym}"
   13536     m="${JEMALLOC_PREFIX}${sym}"
   13537     echo "${n}:${m}" >> "${f}"
   13538   done
   13539  ;;
   13540     "include/jemalloc/internal/private_symbols.awk":C)
   13541   f="${objroot}include/jemalloc/internal/private_symbols.awk"
   13542   mkdir -p "${objroot}include/jemalloc/internal"
   13543   export_syms=`for sym in ${public_syms}; do echo "${JEMALLOC_PREFIX}${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
   13544   "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols.awk"
   13545  ;;
   13546     "include/jemalloc/internal/private_symbols_jet.awk":C)
   13547   f="${objroot}include/jemalloc/internal/private_symbols_jet.awk"
   13548   mkdir -p "${objroot}include/jemalloc/internal"
   13549   export_syms=`for sym in ${public_syms}; do echo "jet_${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
   13550   "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols_jet.awk"
   13551  ;;
   13552     "include/jemalloc/internal/public_namespace.h":C)
   13553   mkdir -p "${objroot}include/jemalloc/internal"
   13554   "${srcdir}/include/jemalloc/internal/public_namespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_namespace.h"
   13555  ;;
   13556     "include/jemalloc/internal/public_unnamespace.h":C)
   13557   mkdir -p "${objroot}include/jemalloc/internal"
   13558   "${srcdir}/include/jemalloc/internal/public_unnamespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_unnamespace.h"
   13559  ;;
   13560     "include/jemalloc/internal/size_classes.h":C)
   13561   mkdir -p "${objroot}include/jemalloc/internal"
   13562   "${SHELL}" "${srcdir}/include/jemalloc/internal/size_classes.sh" "${LG_QUANTA}" 3 "${LG_PAGE_SIZES}" 2 > "${objroot}include/jemalloc/internal/size_classes.h"
   13563  ;;
   13564     "include/jemalloc/jemalloc_protos_jet.h":C)
   13565   mkdir -p "${objroot}include/jemalloc"
   13566   cat "${srcdir}/include/jemalloc/jemalloc_protos.h.in" | sed -e 's/@je_@/jet_/g' > "${objroot}include/jemalloc/jemalloc_protos_jet.h"
   13567  ;;
   13568     "include/jemalloc/jemalloc_rename.h":C)
   13569   mkdir -p "${objroot}include/jemalloc"
   13570   "${srcdir}/include/jemalloc/jemalloc_rename.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/jemalloc_rename.h"
   13571  ;;
   13572     "include/jemalloc/jemalloc_mangle.h":C)
   13573   mkdir -p "${objroot}include/jemalloc"
   13574   "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" je_ > "${objroot}include/jemalloc/jemalloc_mangle.h"
   13575  ;;
   13576     "include/jemalloc/jemalloc_mangle_jet.h":C)
   13577   mkdir -p "${objroot}include/jemalloc"
   13578   "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" jet_ > "${objroot}include/jemalloc/jemalloc_mangle_jet.h"
   13579  ;;
   13580     "include/jemalloc/jemalloc.h":C)
   13581   mkdir -p "${objroot}include/jemalloc"
   13582   "${srcdir}/include/jemalloc/jemalloc.sh" "${objroot}" > "${objroot}include/jemalloc/jemalloc${install_suffix}.h"
   13583  ;;
   13584 
   13585   esac
   13586 done # for ac_tag
   13587 
   13588 
   13589 as_fn_exit 0
   13590 _ACEOF
   13591 ac_clean_files=$ac_clean_files_save
   13592 
   13593 test $ac_write_fail = 0 ||
   13594   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   13595 
   13596 
   13597 # configure is writing to config.log, and then calls config.status.
   13598 # config.status does its own redirection, appending to config.log.
   13599 # Unfortunately, on DOS this fails, as config.log is still kept open
   13600 # by configure, so config.status won't be able to write to it; its
   13601 # output is simply discarded.  So we exec the FD to /dev/null,
   13602 # effectively closing config.log, so it can be properly (re)opened and
   13603 # appended to by config.status.  When coming back to configure, we
   13604 # need to make the FD available again.
   13605 if test "$no_create" != yes; then
   13606   ac_cs_success=:
   13607   ac_config_status_args=
   13608   test "$silent" = yes &&
   13609     ac_config_status_args="$ac_config_status_args --quiet"
   13610   exec 5>/dev/null
   13611   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   13612   exec 5>>config.log
   13613   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   13614   # would make configure fail if this is the last instruction.
   13615   $ac_cs_success || as_fn_exit 1
   13616 fi
   13617 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   13618   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   13619 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   13620 fi
   13621 
   13622 
   13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
   13624 $as_echo "===============================================================================" >&6; }
   13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version   : ${jemalloc_version}" >&5
   13626 $as_echo "jemalloc version   : ${jemalloc_version}" >&6; }
   13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: library revision   : ${rev}" >&5
   13628 $as_echo "library revision   : ${rev}" >&6; }
   13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   13630 $as_echo "" >&6; }
   13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIG             : ${CONFIG}" >&5
   13632 $as_echo "CONFIG             : ${CONFIG}" >&6; }
   13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC                 : ${CC}" >&5
   13634 $as_echo "CC                 : ${CC}" >&6; }
   13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CFLAGS   : ${CONFIGURE_CFLAGS}" >&5
   13636 $as_echo "CONFIGURE_CFLAGS   : ${CONFIGURE_CFLAGS}" >&6; }
   13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CFLAGS   : ${SPECIFIED_CFLAGS}" >&5
   13638 $as_echo "SPECIFIED_CFLAGS   : ${SPECIFIED_CFLAGS}" >&6; }
   13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CFLAGS       : ${EXTRA_CFLAGS}" >&5
   13640 $as_echo "EXTRA_CFLAGS       : ${EXTRA_CFLAGS}" >&6; }
   13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS           : ${CPPFLAGS}" >&5
   13642 $as_echo "CPPFLAGS           : ${CPPFLAGS}" >&6; }
   13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CXX                : ${CXX}" >&5
   13644 $as_echo "CXX                : ${CXX}" >&6; }
   13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&5
   13646 $as_echo "CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&6; }
   13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&5
   13648 $as_echo "SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&6; }
   13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CXXFLAGS     : ${EXTRA_CXXFLAGS}" >&5
   13650 $as_echo "EXTRA_CXXFLAGS     : ${EXTRA_CXXFLAGS}" >&6; }
   13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS            : ${LDFLAGS}" >&5
   13652 $as_echo "LDFLAGS            : ${LDFLAGS}" >&6; }
   13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_LDFLAGS      : ${EXTRA_LDFLAGS}" >&5
   13654 $as_echo "EXTRA_LDFLAGS      : ${EXTRA_LDFLAGS}" >&6; }
   13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DSO_LDFLAGS        : ${DSO_LDFLAGS}" >&5
   13656 $as_echo "DSO_LDFLAGS        : ${DSO_LDFLAGS}" >&6; }
   13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS               : ${LIBS}" >&5
   13658 $as_echo "LIBS               : ${LIBS}" >&6; }
   13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA        : ${RPATH_EXTRA}" >&5
   13660 $as_echo "RPATH_EXTRA        : ${RPATH_EXTRA}" >&6; }
   13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   13662 $as_echo "" >&6; }
   13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC           : ${XSLTPROC}" >&5
   13664 $as_echo "XSLTPROC           : ${XSLTPROC}" >&6; }
   13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT            : ${XSLROOT}" >&5
   13666 $as_echo "XSLROOT            : ${XSLROOT}" >&6; }
   13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   13668 $as_echo "" >&6; }
   13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX             : ${PREFIX}" >&5
   13670 $as_echo "PREFIX             : ${PREFIX}" >&6; }
   13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR             : ${BINDIR}" >&5
   13672 $as_echo "BINDIR             : ${BINDIR}" >&6; }
   13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR            : ${DATADIR}" >&5
   13674 $as_echo "DATADIR            : ${DATADIR}" >&6; }
   13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR         : ${INCLUDEDIR}" >&5
   13676 $as_echo "INCLUDEDIR         : ${INCLUDEDIR}" >&6; }
   13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR             : ${LIBDIR}" >&5
   13678 $as_echo "LIBDIR             : ${LIBDIR}" >&6; }
   13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR             : ${MANDIR}" >&5
   13680 $as_echo "MANDIR             : ${MANDIR}" >&6; }
   13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   13682 $as_echo "" >&6; }
   13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot            : ${srcroot}" >&5
   13684 $as_echo "srcroot            : ${srcroot}" >&6; }
   13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot        : ${abs_srcroot}" >&5
   13686 $as_echo "abs_srcroot        : ${abs_srcroot}" >&6; }
   13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot            : ${objroot}" >&5
   13688 $as_echo "objroot            : ${objroot}" >&6; }
   13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot        : ${abs_objroot}" >&5
   13690 $as_echo "abs_objroot        : ${abs_objroot}" >&6; }
   13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
   13692 $as_echo "" >&6; }
   13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX    : ${JEMALLOC_PREFIX}" >&5
   13694 $as_echo "JEMALLOC_PREFIX    : ${JEMALLOC_PREFIX}" >&6; }
   13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5
   13696 $as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; }
   13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result:                    : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5
   13698 $as_echo "                   : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; }
   13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix     : ${install_suffix}" >&5
   13700 $as_echo "install_suffix     : ${install_suffix}" >&6; }
   13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc_conf        : ${config_malloc_conf}" >&5
   13702 $as_echo "malloc_conf        : ${config_malloc_conf}" >&6; }
   13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen            : ${enable_autogen}" >&5
   13704 $as_echo "autogen            : ${enable_autogen}" >&6; }
   13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug              : ${enable_debug}" >&5
   13706 $as_echo "debug              : ${enable_debug}" >&6; }
   13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: stats              : ${enable_stats}" >&5
   13708 $as_echo "stats              : ${enable_stats}" >&6; }
   13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof               : ${enable_prof}" >&5
   13710 $as_echo "prof               : ${enable_prof}" >&6; }
   13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind     : ${enable_prof_libunwind}" >&5
   13712 $as_echo "prof-libunwind     : ${enable_prof_libunwind}" >&6; }
   13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc        : ${enable_prof_libgcc}" >&5
   13714 $as_echo "prof-libgcc        : ${enable_prof_libgcc}" >&6; }
   13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc           : ${enable_prof_gcc}" >&5
   13716 $as_echo "prof-gcc           : ${enable_prof_gcc}" >&6; }
   13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fill               : ${enable_fill}" >&5
   13718 $as_echo "fill               : ${enable_fill}" >&6; }
   13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: utrace             : ${enable_utrace}" >&5
   13720 $as_echo "utrace             : ${enable_utrace}" >&6; }
   13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc            : ${enable_xmalloc}" >&5
   13722 $as_echo "xmalloc            : ${enable_xmalloc}" >&6; }
   13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: log                : ${enable_log}" >&5
   13724 $as_echo "log                : ${enable_log}" >&6; }
   13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock          : ${enable_lazy_lock}" >&5
   13726 $as_echo "lazy_lock          : ${enable_lazy_lock}" >&6; }
   13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cache-oblivious    : ${enable_cache_oblivious}" >&5
   13728 $as_echo "cache-oblivious    : ${enable_cache_oblivious}" >&6; }
   13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cxx                : ${enable_cxx}" >&5
   13730 $as_echo "cxx                : ${enable_cxx}" >&6; }
   13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
   13732 $as_echo "===============================================================================" >&6; }
   13733