1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200  if (eval "$as_required") 2>/dev/null; then :
201  as_have_required=yes
202else
203  as_have_required=no
204fi
205  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212  IFS=$as_save_IFS
213  test -z "$as_dir" && as_dir=.
214  as_found=:
215  case $as_dir in #(
216	 /*)
217	   for as_base in sh bash ksh sh5; do
218	     # Try only shells that exist, to save several forks.
219	     as_shell=$as_dir/$as_base
220	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222  CONFIG_SHELL=$as_shell as_have_required=yes
223		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224  break 2
225fi
226fi
227	   done;;
228       esac
229  as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233  CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238      if test "x$CONFIG_SHELL" != x; then :
239  export CONFIG_SHELL
240             # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248  *v*x* | *x*v* ) as_opts=-vx ;;
249  *v* ) as_opts=-v ;;
250  *x* ) as_opts=-x ;;
251  * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260    if test x$as_have_required = xno; then :
261  $as_echo "$0: This script requires a shell more modern than all"
262  $as_echo "$0: the shells that I found on your system."
263  if test x${ZSH_VERSION+set} = xset ; then
264    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266  else
267    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271  fi
272  exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290  { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299  return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307  set +e
308  as_fn_set_status $1
309  exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318  case $as_dir in #(
319  -*) as_dir=./$as_dir;;
320  esac
321  test -d "$as_dir" || eval $as_mkdir_p || {
322    as_dirs=
323    while :; do
324      case $as_dir in #(
325      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326      *) as_qdir=$as_dir;;
327      esac
328      as_dirs="'$as_qdir' $as_dirs"
329      as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331	 X"$as_dir" : 'X\(//\)[^/]' \| \
332	 X"$as_dir" : 'X\(//\)$' \| \
333	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336	    s//\1/
337	    q
338	  }
339	  /^X\(\/\/\)[^/].*/{
340	    s//\1/
341	    q
342	  }
343	  /^X\(\/\/\)$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\).*/{
348	    s//\1/
349	    q
350	  }
351	  s/.*/./; q'`
352      test -d "$as_dir" && break
353    done
354    test -z "$as_dirs" || eval "mkdir $as_dirs"
355  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365  test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374  eval 'as_fn_append ()
375  {
376    eval $1+=\$2
377  }'
378else
379  as_fn_append ()
380  {
381    eval $1=\$$1\$2
382  }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391  eval 'as_fn_arith ()
392  {
393    as_val=$(( $* ))
394  }'
395else
396  as_fn_arith ()
397  {
398    as_val=`expr "$@" || test $? -eq 1`
399  }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410  as_status=$1; test $as_status -eq 0 && as_status=1
411  if test "$4"; then
412    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414  fi
415  $as_echo "$as_me: error: $2" >&2
416  as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
421  as_expr=expr
422else
423  as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427  as_basename=basename
428else
429  as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433  as_dirname=dirname
434else
435  as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440	 X"$0" : 'X\(//\)$' \| \
441	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443    sed '/^.*\/\([^/][^/]*\)\/*$/{
444	    s//\1/
445	    q
446	  }
447	  /^X\/\(\/\/\)$/{
448	    s//\1/
449	    q
450	  }
451	  /^X\/\(\/\).*/{
452	    s//\1/
453	    q
454	  }
455	  s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465  as_lineno_1=$LINENO as_lineno_1a=$LINENO
466  as_lineno_2=$LINENO as_lineno_2a=$LINENO
467  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
470  sed -n '
471    p
472    /[$]LINENO/=
473  ' <$as_myself |
474    sed '
475      s/[$]LINENO.*/&-/
476      t lineno
477      b
478      :lineno
479      N
480      :loop
481      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482      t loop
483      s/-\n.*//
484    ' >$as_me.lineno &&
485  chmod +x "$as_me.lineno" ||
486    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489  # already done that, so ensure we don't try to do so again and fall
490  # in an infinite loop.  This has already happened in practice.
491  _as_can_reexec=no; export _as_can_reexec
492  # Don't try to exec as it changes $[0], causing all sort of problems
493  # (the dirname of $[0] is not the place where we might find the
494  # original and so on.  Autoconf is especially sensitive to this).
495  . "./$as_me.lineno"
496  # Exit status is that of the last command.
497  exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503  case `echo 'xy\c'` in
504  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
505  xy)  ECHO_C='\c';;
506  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
507       ECHO_T='	';;
508  esac;;
509*)
510  ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515  rm -f conf$$.dir/conf$$.file
516else
517  rm -f conf$$.dir
518  mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521  if ln -s conf$$.file conf$$ 2>/dev/null; then
522    as_ln_s='ln -s'
523    # ... but there are two gotchas:
524    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526    # In both cases, we have to default to `cp -pR'.
527    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528      as_ln_s='cp -pR'
529  elif ln conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s=ln
531  else
532    as_ln_s='cp -pR'
533  fi
534else
535  as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541  as_mkdir_p='mkdir -p "$as_dir"'
542else
543  test -d ./-p && rmdir ./-p
544  as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
583PACKAGE_URL=
584
585ac_unique_file="Makefile.in"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600#  include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605#  include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622ac_subst_vars='LTLIBOBJS
623LIBOBJS
624cfgoutputs_out
625cfgoutputs_in
626cfghdrs_out
627cfghdrs_in
628enable_initial_exec_tls
629enable_zone_allocator
630enable_tls
631enable_lazy_lock
632libdl
633enable_extra_size_check
634enable_readlinkat
635enable_log
636enable_cache_oblivious
637enable_xmalloc
638enable_utrace
639enable_fill
640enable_prof
641enable_experimental_smallocx
642enable_stats
643enable_debug
644je_
645install_suffix
646private_namespace
647JEMALLOC_CPREFIX
648JEMALLOC_PREFIX
649enable_static
650enable_shared
651AUTOCONF
652LD
653RANLIB
654INSTALL_DATA
655INSTALL_SCRIPT
656INSTALL_PROGRAM
657enable_autogen
658RPATH_EXTRA
659LM
660CC_MM
661DUMP_SYMS
662AROUT
663ARFLAGS
664MKLIB
665TEST_LD_MODE
666LDTARGET
667CTARGET
668PIC_CFLAGS
669SOREV
670EXTRA_LDFLAGS
671DSO_LDFLAGS
672link_whole_archive
673libprefix
674exe
675a
676o
677importlib
678so
679LD_PRELOAD_VAR
680RPATH
681abi
682jemalloc_version_gid
683jemalloc_version_nrev
684jemalloc_version_bugfix
685jemalloc_version_minor
686jemalloc_version_major
687jemalloc_version
688AWK
689NM
690AR
691host_os
692host_vendor
693host_cpu
694host
695build_os
696build_vendor
697build_cpu
698build
699EGREP
700GREP
701EXTRA_CXXFLAGS
702SPECIFIED_CXXFLAGS
703CONFIGURE_CXXFLAGS
704enable_cxx
705HAVE_CXX14
706ac_ct_CXX
707CXXFLAGS
708CXX
709CPP
710EXTRA_CFLAGS
711SPECIFIED_CFLAGS
712CONFIGURE_CFLAGS
713OBJEXT
714EXEEXT
715ac_ct_CC
716CPPFLAGS
717LDFLAGS
718CFLAGS
719CC
720XSLROOT
721XSLTPROC
722MANDIR
723DATADIR
724LIBDIR
725INCLUDEDIR
726BINDIR
727PREFIX
728abs_objroot
729objroot
730abs_srcroot
731srcroot
732rev
733CONFIG
734target_alias
735host_alias
736build_alias
737LIBS
738ECHO_T
739ECHO_N
740ECHO_C
741DEFS
742mandir
743localedir
744libdir
745psdir
746pdfdir
747dvidir
748htmldir
749infodir
750docdir
751oldincludedir
752includedir
753localstatedir
754sharedstatedir
755sysconfdir
756datadir
757datarootdir
758libexecdir
759sbindir
760bindir
761program_transform_name
762prefix
763exec_prefix
764PACKAGE_URL
765PACKAGE_BUGREPORT
766PACKAGE_STRING
767PACKAGE_VERSION
768PACKAGE_TARNAME
769PACKAGE_NAME
770PATH_SEPARATOR
771SHELL'
772ac_subst_files=''
773ac_user_opts='
774enable_option_checking
775with_xslroot
776enable_cxx
777with_lg_vaddr
778with_version
779with_rpath
780enable_autogen
781enable_shared
782enable_static
783with_mangling
784with_jemalloc_prefix
785with_export
786with_private_namespace
787with_install_suffix
788with_malloc_conf
789enable_debug
790enable_stats
791enable_experimental_smallocx
792enable_prof
793enable_prof_libunwind
794with_static_libunwind
795enable_prof_libgcc
796enable_prof_gcc
797enable_fill
798enable_utrace
799enable_xmalloc
800enable_cache_oblivious
801enable_log
802enable_readlinkat
803enable_extra_size_check
804with_lg_quantum
805with_lg_page
806with_lg_hugepage
807enable_libdl
808enable_syscall
809enable_lazy_lock
810enable_zone_allocator
811enable_initial_exec_tls
812'
813      ac_precious_vars='build_alias
814host_alias
815target_alias
816CC
817CFLAGS
818LDFLAGS
819LIBS
820CPPFLAGS
821CPP
822CXX
823CXXFLAGS
824CCC'
825
826
827# Initialize some variables set by options.
828ac_init_help=
829ac_init_version=false
830ac_unrecognized_opts=
831ac_unrecognized_sep=
832# The variables have the same names as the options, with
833# dashes changed to underlines.
834cache_file=/dev/null
835exec_prefix=NONE
836no_create=
837no_recursion=
838prefix=NONE
839program_prefix=NONE
840program_suffix=NONE
841program_transform_name=s,x,x,
842silent=
843site=
844srcdir=
845verbose=
846x_includes=NONE
847x_libraries=NONE
848
849# Installation directory options.
850# These are left unexpanded so users can "make install exec_prefix=/foo"
851# and all the variables that are supposed to be based on exec_prefix
852# by default will actually change.
853# Use braces instead of parens because sh, perl, etc. also accept them.
854# (The list follows the same order as the GNU Coding Standards.)
855bindir='${exec_prefix}/bin'
856sbindir='${exec_prefix}/sbin'
857libexecdir='${exec_prefix}/libexec'
858datarootdir='${prefix}/share'
859datadir='${datarootdir}'
860sysconfdir='${prefix}/etc'
861sharedstatedir='${prefix}/com'
862localstatedir='${prefix}/var'
863includedir='${prefix}/include'
864oldincludedir='/usr/include'
865docdir='${datarootdir}/doc/${PACKAGE}'
866infodir='${datarootdir}/info'
867htmldir='${docdir}'
868dvidir='${docdir}'
869pdfdir='${docdir}'
870psdir='${docdir}'
871libdir='${exec_prefix}/lib'
872localedir='${datarootdir}/locale'
873mandir='${datarootdir}/man'
874
875ac_prev=
876ac_dashdash=
877for ac_option
878do
879  # If the previous option needs an argument, assign it.
880  if test -n "$ac_prev"; then
881    eval $ac_prev=\$ac_option
882    ac_prev=
883    continue
884  fi
885
886  case $ac_option in
887  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888  *=)   ac_optarg= ;;
889  *)    ac_optarg=yes ;;
890  esac
891
892  # Accept the important Cygnus configure options, so we can diagnose typos.
893
894  case $ac_dashdash$ac_option in
895  --)
896    ac_dashdash=yes ;;
897
898  -bindir | --bindir | --bindi | --bind | --bin | --bi)
899    ac_prev=bindir ;;
900  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901    bindir=$ac_optarg ;;
902
903  -build | --build | --buil | --bui | --bu)
904    ac_prev=build_alias ;;
905  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906    build_alias=$ac_optarg ;;
907
908  -cache-file | --cache-file | --cache-fil | --cache-fi \
909  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910    ac_prev=cache_file ;;
911  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913    cache_file=$ac_optarg ;;
914
915  --config-cache | -C)
916    cache_file=config.cache ;;
917
918  -datadir | --datadir | --datadi | --datad)
919    ac_prev=datadir ;;
920  -datadir=* | --datadir=* | --datadi=* | --datad=*)
921    datadir=$ac_optarg ;;
922
923  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924  | --dataroo | --dataro | --datar)
925    ac_prev=datarootdir ;;
926  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928    datarootdir=$ac_optarg ;;
929
930  -disable-* | --disable-*)
931    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932    # Reject names that are not valid shell variable names.
933    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934      as_fn_error $? "invalid feature name: $ac_useropt"
935    ac_useropt_orig=$ac_useropt
936    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937    case $ac_user_opts in
938      *"
939"enable_$ac_useropt"
940"*) ;;
941      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942	 ac_unrecognized_sep=', ';;
943    esac
944    eval enable_$ac_useropt=no ;;
945
946  -docdir | --docdir | --docdi | --doc | --do)
947    ac_prev=docdir ;;
948  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949    docdir=$ac_optarg ;;
950
951  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952    ac_prev=dvidir ;;
953  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954    dvidir=$ac_optarg ;;
955
956  -enable-* | --enable-*)
957    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958    # Reject names that are not valid shell variable names.
959    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960      as_fn_error $? "invalid feature name: $ac_useropt"
961    ac_useropt_orig=$ac_useropt
962    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963    case $ac_user_opts in
964      *"
965"enable_$ac_useropt"
966"*) ;;
967      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968	 ac_unrecognized_sep=', ';;
969    esac
970    eval enable_$ac_useropt=\$ac_optarg ;;
971
972  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974  | --exec | --exe | --ex)
975    ac_prev=exec_prefix ;;
976  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978  | --exec=* | --exe=* | --ex=*)
979    exec_prefix=$ac_optarg ;;
980
981  -gas | --gas | --ga | --g)
982    # Obsolete; use --with-gas.
983    with_gas=yes ;;
984
985  -help | --help | --hel | --he | -h)
986    ac_init_help=long ;;
987  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988    ac_init_help=recursive ;;
989  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990    ac_init_help=short ;;
991
992  -host | --host | --hos | --ho)
993    ac_prev=host_alias ;;
994  -host=* | --host=* | --hos=* | --ho=*)
995    host_alias=$ac_optarg ;;
996
997  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998    ac_prev=htmldir ;;
999  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000  | --ht=*)
1001    htmldir=$ac_optarg ;;
1002
1003  -includedir | --includedir | --includedi | --included | --include \
1004  | --includ | --inclu | --incl | --inc)
1005    ac_prev=includedir ;;
1006  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007  | --includ=* | --inclu=* | --incl=* | --inc=*)
1008    includedir=$ac_optarg ;;
1009
1010  -infodir | --infodir | --infodi | --infod | --info | --inf)
1011    ac_prev=infodir ;;
1012  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1013    infodir=$ac_optarg ;;
1014
1015  -libdir | --libdir | --libdi | --libd)
1016    ac_prev=libdir ;;
1017  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1018    libdir=$ac_optarg ;;
1019
1020  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021  | --libexe | --libex | --libe)
1022    ac_prev=libexecdir ;;
1023  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024  | --libexe=* | --libex=* | --libe=*)
1025    libexecdir=$ac_optarg ;;
1026
1027  -localedir | --localedir | --localedi | --localed | --locale)
1028    ac_prev=localedir ;;
1029  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030    localedir=$ac_optarg ;;
1031
1032  -localstatedir | --localstatedir | --localstatedi | --localstated \
1033  | --localstate | --localstat | --localsta | --localst | --locals)
1034    ac_prev=localstatedir ;;
1035  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1036  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1037    localstatedir=$ac_optarg ;;
1038
1039  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040    ac_prev=mandir ;;
1041  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1042    mandir=$ac_optarg ;;
1043
1044  -nfp | --nfp | --nf)
1045    # Obsolete; use --without-fp.
1046    with_fp=no ;;
1047
1048  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049  | --no-cr | --no-c | -n)
1050    no_create=yes ;;
1051
1052  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054    no_recursion=yes ;;
1055
1056  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058  | --oldin | --oldi | --old | --ol | --o)
1059    ac_prev=oldincludedir ;;
1060  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1063    oldincludedir=$ac_optarg ;;
1064
1065  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066    ac_prev=prefix ;;
1067  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1068    prefix=$ac_optarg ;;
1069
1070  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071  | --program-pre | --program-pr | --program-p)
1072    ac_prev=program_prefix ;;
1073  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1075    program_prefix=$ac_optarg ;;
1076
1077  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078  | --program-suf | --program-su | --program-s)
1079    ac_prev=program_suffix ;;
1080  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1082    program_suffix=$ac_optarg ;;
1083
1084  -program-transform-name | --program-transform-name \
1085  | --program-transform-nam | --program-transform-na \
1086  | --program-transform-n | --program-transform- \
1087  | --program-transform | --program-transfor \
1088  | --program-transfo | --program-transf \
1089  | --program-trans | --program-tran \
1090  | --progr-tra | --program-tr | --program-t)
1091    ac_prev=program_transform_name ;;
1092  -program-transform-name=* | --program-transform-name=* \
1093  | --program-transform-nam=* | --program-transform-na=* \
1094  | --program-transform-n=* | --program-transform-=* \
1095  | --program-transform=* | --program-transfor=* \
1096  | --program-transfo=* | --program-transf=* \
1097  | --program-trans=* | --program-tran=* \
1098  | --progr-tra=* | --program-tr=* | --program-t=*)
1099    program_transform_name=$ac_optarg ;;
1100
1101  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102    ac_prev=pdfdir ;;
1103  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104    pdfdir=$ac_optarg ;;
1105
1106  -psdir | --psdir | --psdi | --psd | --ps)
1107    ac_prev=psdir ;;
1108  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109    psdir=$ac_optarg ;;
1110
1111  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112  | -silent | --silent | --silen | --sile | --sil)
1113    silent=yes ;;
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'
1211Try \`$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
1233done
1234
1235if test -n "$ac_prev"; then
1236  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237  as_fn_error $? "missing argument to $ac_option"
1238fi
1239
1240if 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
1246fi
1247
1248# Check all directory arguments for consistency.
1249for 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
1253do
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"
1267done
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.
1272build=$build_alias
1273host=$host_alias
1274target=$target_alias
1275
1276# FIXME: To remove some day.
1277if 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
1283fi
1284
1285ac_tool_prefix=
1286test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287
1288test "$silent" = yes && exec 6>/dev/null
1289
1290
1291ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292ac_ls_di=`ls -di .` &&
1293ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294  as_fn_error $? "working directory cannot be determined"
1295test "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.
1300if 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
1330else
1331  ac_srcdir_defaulted=no
1332fi
1333if 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"
1336fi
1337ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1338ac_abs_confdir=`(
1339	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1340	pwd)`
1341# When building in place, set srcdir=.
1342if test "$ac_abs_confdir" = "$ac_pwd"; then
1343  srcdir=.
1344fi
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.
1348case $srcdir in
1349*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350esac
1351for 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}
1356done
1357
1358#
1359# Report the --help message.
1360#
1361if 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
1367Usage: $0 [OPTION]... [VAR=VALUE]...
1368
1369To assign environment variables (e.g., CC, CFLAGS...), specify them as
1370VAR=VALUE.  See below for descriptions of some of the useful variables.
1371
1372Defaults for the options are specified in brackets.
1373
1374Configuration:
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
1385Installation 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
1391By default, \`make install' will install all the files in
1392\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1393an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1394for instance \`--prefix=\$HOME'.
1395
1396For better control, use the options below.
1397
1398Fine 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  --libdir=DIR            object code libraries [EPREFIX/lib]
1406  --includedir=DIR        C header files [PREFIX/include]
1407  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1408  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1409  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1410  --infodir=DIR           info documentation [DATAROOTDIR/info]
1411  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1412  --mandir=DIR            man documentation [DATAROOTDIR/man]
1413  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1414  --htmldir=DIR           html documentation [DOCDIR]
1415  --dvidir=DIR            dvi documentation [DOCDIR]
1416  --pdfdir=DIR            pdf documentation [DOCDIR]
1417  --psdir=DIR             ps documentation [DOCDIR]
1418_ACEOF
1419
1420  cat <<\_ACEOF
1421
1422System types:
1423  --build=BUILD     configure for building on BUILD [guessed]
1424  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1425_ACEOF
1426fi
1427
1428if test -n "$ac_init_help"; then
1429
1430  cat <<\_ACEOF
1431
1432Optional Features:
1433  --disable-option-checking  ignore unrecognized --enable/--with options
1434  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1435  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1436  --disable-cxx           Disable C++ integration
1437  --enable-autogen        Automatically regenerate configure output
1438  --enable-shared         Build shared libaries
1439  --enable-static         Build static libaries
1440  --enable-debug          Build debugging code
1441  --disable-stats         Disable statistics calculation/reporting
1442  --enable-experimental-smallocx
1443                          Enable experimental smallocx API
1444  --enable-prof           Enable allocation profiling
1445  --enable-prof-libunwind Use libunwind for backtracing
1446  --disable-prof-libgcc   Do not use libgcc for backtracing
1447  --disable-prof-gcc      Do not use gcc intrinsics for backtracing
1448  --disable-fill          Disable support for junk/zero filling
1449  --enable-utrace         Enable utrace(2)-based tracing
1450  --enable-xmalloc        Support xmalloc option
1451  --disable-cache-oblivious
1452                          Disable support for cache-oblivious allocation
1453                          alignment
1454  --enable-log            Support debug logging
1455  --enable-readlinkat     Use readlinkat over readlink
1456  --enable-extra-size-check
1457                          Perform additonal size related sanity checks
1458  --disable-libdl         Do not use libdl
1459  --disable-syscall       Disable use of syscall(2)
1460  --enable-lazy-lock      Enable lazy locking (only lock when multi-threaded)
1461  --disable-zone-allocator
1462                          Disable zone allocator for Darwin
1463  --disable-initial-exec-tls
1464                          Disable the initial-exec tls model
1465
1466Optional Packages:
1467  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1468  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1469  --with-xslroot=<path>   XSL stylesheet root path
1470  --with-lg-vaddr=<lg-vaddr>
1471                          Number of significant virtual address bits
1472  --with-version=<major>.<minor>.<bugfix>-<nrev>-g<gid>
1473                          Version string
1474  --with-rpath=<rpath>    Colon-separated rpath (ELF systems only)
1475  --with-mangling=<map>   Mangle symbols in <map>
1476  --with-jemalloc-prefix=<prefix>
1477                          Prefix to prepend to all public APIs
1478  --without-export        disable exporting jemalloc public APIs
1479  --with-private-namespace=<prefix>
1480                          Prefix to prepend to all library-private APIs
1481  --with-install-suffix=<suffix>
1482                          Suffix to append to all installed files
1483  --with-malloc-conf=<malloc_conf>
1484                          config.malloc_conf options string
1485  --with-static-libunwind=<libunwind.a>
1486                          Path to static libunwind library; use rather than
1487                          dynamically linking
1488  --with-lg-quantum=<lg-quantum>
1489                          Base 2 log of minimum allocation alignment
1490  --with-lg-page=<lg-page>
1491                          Base 2 log of system page size
1492  --with-lg-hugepage=<lg-hugepage>
1493                          Base 2 log of system huge page size
1494
1495Some influential environment variables:
1496  CC          C compiler command
1497  CFLAGS      C compiler flags
1498  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1499              nonstandard directory <lib dir>
1500  LIBS        libraries to pass to the linker, e.g. -l<library>
1501  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1502              you have headers in a nonstandard directory <include dir>
1503  CPP         C preprocessor
1504  CXX         C++ compiler command
1505  CXXFLAGS    C++ compiler flags
1506
1507Use these variables to override the choices made by `configure' or to help
1508it to find libraries and programs with nonstandard names/locations.
1509
1510Report bugs to the package provider.
1511_ACEOF
1512ac_status=$?
1513fi
1514
1515if test "$ac_init_help" = "recursive"; then
1516  # If there are subdirs, report their specific --help.
1517  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518    test -d "$ac_dir" ||
1519      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1520      continue
1521    ac_builddir=.
1522
1523case "$ac_dir" in
1524.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525*)
1526  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1527  # A ".." for each directory in $ac_dir_suffix.
1528  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1529  case $ac_top_builddir_sub in
1530  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532  esac ;;
1533esac
1534ac_abs_top_builddir=$ac_pwd
1535ac_abs_builddir=$ac_pwd$ac_dir_suffix
1536# for backward compatibility:
1537ac_top_builddir=$ac_top_build_prefix
1538
1539case $srcdir in
1540  .)  # We are building in place.
1541    ac_srcdir=.
1542    ac_top_srcdir=$ac_top_builddir_sub
1543    ac_abs_top_srcdir=$ac_pwd ;;
1544  [\\/]* | ?:[\\/]* )  # Absolute name.
1545    ac_srcdir=$srcdir$ac_dir_suffix;
1546    ac_top_srcdir=$srcdir
1547    ac_abs_top_srcdir=$srcdir ;;
1548  *) # Relative name.
1549    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550    ac_top_srcdir=$ac_top_build_prefix$srcdir
1551    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1552esac
1553ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1554
1555    cd "$ac_dir" || { ac_status=$?; continue; }
1556    # Check for guested configure.
1557    if test -f "$ac_srcdir/configure.gnu"; then
1558      echo &&
1559      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560    elif test -f "$ac_srcdir/configure"; then
1561      echo &&
1562      $SHELL "$ac_srcdir/configure" --help=recursive
1563    else
1564      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1565    fi || ac_status=$?
1566    cd "$ac_pwd" || { ac_status=$?; break; }
1567  done
1568fi
1569
1570test -n "$ac_init_help" && exit $ac_status
1571if $ac_init_version; then
1572  cat <<\_ACEOF
1573configure
1574generated by GNU Autoconf 2.69
1575
1576Copyright (C) 2012 Free Software Foundation, Inc.
1577This configure script is free software; the Free Software Foundation
1578gives unlimited permission to copy, distribute and modify it.
1579_ACEOF
1580  exit
1581fi
1582
1583## ------------------------ ##
1584## Autoconf initialization. ##
1585## ------------------------ ##
1586
1587# ac_fn_c_try_compile LINENO
1588# --------------------------
1589# Try to compile conftest.$ac_ext, and return whether this succeeded.
1590ac_fn_c_try_compile ()
1591{
1592  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593  rm -f conftest.$ac_objext
1594  if { { ac_try="$ac_compile"
1595case "(($ac_try" in
1596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597  *) ac_try_echo=$ac_try;;
1598esac
1599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600$as_echo "$ac_try_echo"; } >&5
1601  (eval "$ac_compile") 2>conftest.err
1602  ac_status=$?
1603  if test -s conftest.err; then
1604    grep -v '^ *+' conftest.err >conftest.er1
1605    cat conftest.er1 >&5
1606    mv -f conftest.er1 conftest.err
1607  fi
1608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609  test $ac_status = 0; } && {
1610	 test -z "$ac_c_werror_flag" ||
1611	 test ! -s conftest.err
1612       } && test -s conftest.$ac_objext; then :
1613  ac_retval=0
1614else
1615  $as_echo "$as_me: failed program was:" >&5
1616sed 's/^/| /' conftest.$ac_ext >&5
1617
1618	ac_retval=1
1619fi
1620  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621  as_fn_set_status $ac_retval
1622
1623} # ac_fn_c_try_compile
1624
1625# ac_fn_c_try_cpp LINENO
1626# ----------------------
1627# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1628ac_fn_c_try_cpp ()
1629{
1630  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631  if { { ac_try="$ac_cpp conftest.$ac_ext"
1632case "(($ac_try" in
1633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634  *) ac_try_echo=$ac_try;;
1635esac
1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637$as_echo "$ac_try_echo"; } >&5
1638  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1639  ac_status=$?
1640  if test -s conftest.err; then
1641    grep -v '^ *+' conftest.err >conftest.er1
1642    cat conftest.er1 >&5
1643    mv -f conftest.er1 conftest.err
1644  fi
1645  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646  test $ac_status = 0; } > conftest.i && {
1647	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1648	 test ! -s conftest.err
1649       }; then :
1650  ac_retval=0
1651else
1652  $as_echo "$as_me: failed program was:" >&5
1653sed 's/^/| /' conftest.$ac_ext >&5
1654
1655    ac_retval=1
1656fi
1657  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658  as_fn_set_status $ac_retval
1659
1660} # ac_fn_c_try_cpp
1661
1662# ac_fn_cxx_try_compile LINENO
1663# ----------------------------
1664# Try to compile conftest.$ac_ext, and return whether this succeeded.
1665ac_fn_cxx_try_compile ()
1666{
1667  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668  rm -f conftest.$ac_objext
1669  if { { ac_try="$ac_compile"
1670case "(($ac_try" in
1671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672  *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676  (eval "$ac_compile") 2>conftest.err
1677  ac_status=$?
1678  if test -s conftest.err; then
1679    grep -v '^ *+' conftest.err >conftest.er1
1680    cat conftest.er1 >&5
1681    mv -f conftest.er1 conftest.err
1682  fi
1683  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684  test $ac_status = 0; } && {
1685	 test -z "$ac_cxx_werror_flag" ||
1686	 test ! -s conftest.err
1687       } && test -s conftest.$ac_objext; then :
1688  ac_retval=0
1689else
1690  $as_echo "$as_me: failed program was:" >&5
1691sed 's/^/| /' conftest.$ac_ext >&5
1692
1693	ac_retval=1
1694fi
1695  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696  as_fn_set_status $ac_retval
1697
1698} # ac_fn_cxx_try_compile
1699
1700# ac_fn_c_try_link LINENO
1701# -----------------------
1702# Try to link conftest.$ac_ext, and return whether this succeeded.
1703ac_fn_c_try_link ()
1704{
1705  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706  rm -f conftest.$ac_objext conftest$ac_exeext
1707  if { { ac_try="$ac_link"
1708case "(($ac_try" in
1709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710  *) ac_try_echo=$ac_try;;
1711esac
1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713$as_echo "$ac_try_echo"; } >&5
1714  (eval "$ac_link") 2>conftest.err
1715  ac_status=$?
1716  if test -s conftest.err; then
1717    grep -v '^ *+' conftest.err >conftest.er1
1718    cat conftest.er1 >&5
1719    mv -f conftest.er1 conftest.err
1720  fi
1721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722  test $ac_status = 0; } && {
1723	 test -z "$ac_c_werror_flag" ||
1724	 test ! -s conftest.err
1725       } && test -s conftest$ac_exeext && {
1726	 test "$cross_compiling" = yes ||
1727	 test -x conftest$ac_exeext
1728       }; then :
1729  ac_retval=0
1730else
1731  $as_echo "$as_me: failed program was:" >&5
1732sed 's/^/| /' conftest.$ac_ext >&5
1733
1734	ac_retval=1
1735fi
1736  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1737  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1738  # interfere with the next link command; also delete a directory that is
1739  # left behind by Apple's compiler.  We do this before executing the actions.
1740  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742  as_fn_set_status $ac_retval
1743
1744} # ac_fn_c_try_link
1745
1746# ac_fn_c_try_run LINENO
1747# ----------------------
1748# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1749# that executables *can* be run.
1750ac_fn_c_try_run ()
1751{
1752  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753  if { { ac_try="$ac_link"
1754case "(($ac_try" in
1755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756  *) ac_try_echo=$ac_try;;
1757esac
1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759$as_echo "$ac_try_echo"; } >&5
1760  (eval "$ac_link") 2>&5
1761  ac_status=$?
1762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1764  { { case "(($ac_try" in
1765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766  *) ac_try_echo=$ac_try;;
1767esac
1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769$as_echo "$ac_try_echo"; } >&5
1770  (eval "$ac_try") 2>&5
1771  ac_status=$?
1772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773  test $ac_status = 0; }; }; then :
1774  ac_retval=0
1775else
1776  $as_echo "$as_me: program exited with status $ac_status" >&5
1777       $as_echo "$as_me: failed program was:" >&5
1778sed 's/^/| /' conftest.$ac_ext >&5
1779
1780       ac_retval=$ac_status
1781fi
1782  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784  as_fn_set_status $ac_retval
1785
1786} # ac_fn_c_try_run
1787
1788# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1789# -------------------------------------------------------
1790# Tests whether HEADER exists and can be compiled using the include files in
1791# INCLUDES, setting the cache variable VAR accordingly.
1792ac_fn_c_check_header_compile ()
1793{
1794  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796$as_echo_n "checking for $2... " >&6; }
1797if eval \${$3+:} false; then :
1798  $as_echo_n "(cached) " >&6
1799else
1800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801/* end confdefs.h.  */
1802$4
1803#include <$2>
1804_ACEOF
1805if ac_fn_c_try_compile "$LINENO"; then :
1806  eval "$3=yes"
1807else
1808  eval "$3=no"
1809fi
1810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811fi
1812eval ac_res=\$$3
1813	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814$as_echo "$ac_res" >&6; }
1815  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816
1817} # ac_fn_c_check_header_compile
1818
1819# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1820# --------------------------------------------
1821# Tries to find the compile-time value of EXPR in a program that includes
1822# INCLUDES, setting VAR accordingly. Returns whether the value could be
1823# computed
1824ac_fn_c_compute_int ()
1825{
1826  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827  if test "$cross_compiling" = yes; then
1828    # Depending upon the size, compute the lo and hi bounds.
1829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h.  */
1831$4
1832int
1833main ()
1834{
1835static int test_array [1 - 2 * !(($2) >= 0)];
1836test_array [0] = 0;
1837return test_array [0];
1838
1839  ;
1840  return 0;
1841}
1842_ACEOF
1843if ac_fn_c_try_compile "$LINENO"; then :
1844  ac_lo=0 ac_mid=0
1845  while :; do
1846    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847/* end confdefs.h.  */
1848$4
1849int
1850main ()
1851{
1852static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1853test_array [0] = 0;
1854return test_array [0];
1855
1856  ;
1857  return 0;
1858}
1859_ACEOF
1860if ac_fn_c_try_compile "$LINENO"; then :
1861  ac_hi=$ac_mid; break
1862else
1863  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1864			if test $ac_lo -le $ac_mid; then
1865			  ac_lo= ac_hi=
1866			  break
1867			fi
1868			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1869fi
1870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871  done
1872else
1873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874/* end confdefs.h.  */
1875$4
1876int
1877main ()
1878{
1879static int test_array [1 - 2 * !(($2) < 0)];
1880test_array [0] = 0;
1881return test_array [0];
1882
1883  ;
1884  return 0;
1885}
1886_ACEOF
1887if ac_fn_c_try_compile "$LINENO"; then :
1888  ac_hi=-1 ac_mid=-1
1889  while :; do
1890    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891/* end confdefs.h.  */
1892$4
1893int
1894main ()
1895{
1896static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1897test_array [0] = 0;
1898return test_array [0];
1899
1900  ;
1901  return 0;
1902}
1903_ACEOF
1904if ac_fn_c_try_compile "$LINENO"; then :
1905  ac_lo=$ac_mid; break
1906else
1907  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1908			if test $ac_mid -le $ac_hi; then
1909			  ac_lo= ac_hi=
1910			  break
1911			fi
1912			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1913fi
1914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915  done
1916else
1917  ac_lo= ac_hi=
1918fi
1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920fi
1921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922# Binary search between lo and hi bounds.
1923while test "x$ac_lo" != "x$ac_hi"; do
1924  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926/* end confdefs.h.  */
1927$4
1928int
1929main ()
1930{
1931static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1932test_array [0] = 0;
1933return test_array [0];
1934
1935  ;
1936  return 0;
1937}
1938_ACEOF
1939if ac_fn_c_try_compile "$LINENO"; then :
1940  ac_hi=$ac_mid
1941else
1942  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1943fi
1944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945done
1946case $ac_lo in #((
1947?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1948'') ac_retval=1 ;;
1949esac
1950  else
1951    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952/* end confdefs.h.  */
1953$4
1954static long int longval () { return $2; }
1955static unsigned long int ulongval () { return $2; }
1956#include <stdio.h>
1957#include <stdlib.h>
1958int
1959main ()
1960{
1961
1962  FILE *f = fopen ("conftest.val", "w");
1963  if (! f)
1964    return 1;
1965  if (($2) < 0)
1966    {
1967      long int i = longval ();
1968      if (i != ($2))
1969	return 1;
1970      fprintf (f, "%ld", i);
1971    }
1972  else
1973    {
1974      unsigned long int i = ulongval ();
1975      if (i != ($2))
1976	return 1;
1977      fprintf (f, "%lu", i);
1978    }
1979  /* Do not output a trailing newline, as this causes \r\n confusion
1980     on some platforms.  */
1981  return ferror (f) || fclose (f) != 0;
1982
1983  ;
1984  return 0;
1985}
1986_ACEOF
1987if ac_fn_c_try_run "$LINENO"; then :
1988  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1989else
1990  ac_retval=1
1991fi
1992rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1993  conftest.$ac_objext conftest.beam conftest.$ac_ext
1994rm -f conftest.val
1995
1996  fi
1997  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998  as_fn_set_status $ac_retval
1999
2000} # ac_fn_c_compute_int
2001
2002# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2003# -------------------------------------------------------
2004# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2005# the include files in INCLUDES and setting the cache variable VAR
2006# accordingly.
2007ac_fn_c_check_header_mongrel ()
2008{
2009  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010  if eval \${$3+:} false; then :
2011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012$as_echo_n "checking for $2... " >&6; }
2013if eval \${$3+:} false; then :
2014  $as_echo_n "(cached) " >&6
2015fi
2016eval ac_res=\$$3
2017	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018$as_echo "$ac_res" >&6; }
2019else
2020  # Is the header compilable?
2021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2022$as_echo_n "checking $2 usability... " >&6; }
2023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024/* end confdefs.h.  */
2025$4
2026#include <$2>
2027_ACEOF
2028if ac_fn_c_try_compile "$LINENO"; then :
2029  ac_header_compiler=yes
2030else
2031  ac_header_compiler=no
2032fi
2033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2035$as_echo "$ac_header_compiler" >&6; }
2036
2037# Is the header present?
2038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2039$as_echo_n "checking $2 presence... " >&6; }
2040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041/* end confdefs.h.  */
2042#include <$2>
2043_ACEOF
2044if ac_fn_c_try_cpp "$LINENO"; then :
2045  ac_header_preproc=yes
2046else
2047  ac_header_preproc=no
2048fi
2049rm -f conftest.err conftest.i conftest.$ac_ext
2050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2051$as_echo "$ac_header_preproc" >&6; }
2052
2053# So?  What about this header?
2054case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2055  yes:no: )
2056    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2057$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2058    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2059$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2060    ;;
2061  no:yes:* )
2062    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2063$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2064    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2065$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2066    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2067$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2068    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2069$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2070    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2071$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2072    ;;
2073esac
2074  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2075$as_echo_n "checking for $2... " >&6; }
2076if eval \${$3+:} false; then :
2077  $as_echo_n "(cached) " >&6
2078else
2079  eval "$3=\$ac_header_compiler"
2080fi
2081eval ac_res=\$$3
2082	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083$as_echo "$ac_res" >&6; }
2084fi
2085  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086
2087} # ac_fn_c_check_header_mongrel
2088
2089# ac_fn_c_check_func LINENO FUNC VAR
2090# ----------------------------------
2091# Tests whether FUNC exists, setting the cache variable VAR accordingly
2092ac_fn_c_check_func ()
2093{
2094  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096$as_echo_n "checking for $2... " >&6; }
2097if eval \${$3+:} false; then :
2098  $as_echo_n "(cached) " >&6
2099else
2100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h.  */
2102/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2103   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2104#define $2 innocuous_$2
2105
2106/* System header to define __stub macros and hopefully few prototypes,
2107    which can conflict with char $2 (); below.
2108    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2109    <limits.h> exists even on freestanding compilers.  */
2110
2111#ifdef __STDC__
2112# include <limits.h>
2113#else
2114# include <assert.h>
2115#endif
2116
2117#undef $2
2118
2119/* Override any GCC internal prototype to avoid an error.
2120   Use char because int might match the return type of a GCC
2121   builtin and then its argument prototype would still apply.  */
2122#ifdef __cplusplus
2123extern "C"
2124#endif
2125char $2 ();
2126/* The GNU C library defines this for functions which it implements
2127    to always fail with ENOSYS.  Some functions are actually named
2128    something starting with __ and the normal name is an alias.  */
2129#if defined __stub_$2 || defined __stub___$2
2130choke me
2131#endif
2132
2133int
2134main ()
2135{
2136return $2 ();
2137  ;
2138  return 0;
2139}
2140_ACEOF
2141if ac_fn_c_try_link "$LINENO"; then :
2142  eval "$3=yes"
2143else
2144  eval "$3=no"
2145fi
2146rm -f core conftest.err conftest.$ac_objext \
2147    conftest$ac_exeext conftest.$ac_ext
2148fi
2149eval ac_res=\$$3
2150	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2151$as_echo "$ac_res" >&6; }
2152  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2153
2154} # ac_fn_c_check_func
2155
2156# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2157# -------------------------------------------
2158# Tests whether TYPE exists after having included INCLUDES, setting cache
2159# variable VAR accordingly.
2160ac_fn_c_check_type ()
2161{
2162  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164$as_echo_n "checking for $2... " >&6; }
2165if eval \${$3+:} false; then :
2166  $as_echo_n "(cached) " >&6
2167else
2168  eval "$3=no"
2169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170/* end confdefs.h.  */
2171$4
2172int
2173main ()
2174{
2175if (sizeof ($2))
2176	 return 0;
2177  ;
2178  return 0;
2179}
2180_ACEOF
2181if ac_fn_c_try_compile "$LINENO"; then :
2182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183/* end confdefs.h.  */
2184$4
2185int
2186main ()
2187{
2188if (sizeof (($2)))
2189	    return 0;
2190  ;
2191  return 0;
2192}
2193_ACEOF
2194if ac_fn_c_try_compile "$LINENO"; then :
2195
2196else
2197  eval "$3=yes"
2198fi
2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200fi
2201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202fi
2203eval ac_res=\$$3
2204	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2205$as_echo "$ac_res" >&6; }
2206  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207
2208} # ac_fn_c_check_type
2209cat >config.log <<_ACEOF
2210This file contains any messages produced by compilers while
2211running configure, to aid debugging if configure makes a mistake.
2212
2213It was created by $as_me, which was
2214generated by GNU Autoconf 2.69.  Invocation command line was
2215
2216  $ $0 $@
2217
2218_ACEOF
2219exec 5>>config.log
2220{
2221cat <<_ASUNAME
2222## --------- ##
2223## Platform. ##
2224## --------- ##
2225
2226hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2227uname -m = `(uname -m) 2>/dev/null || echo unknown`
2228uname -r = `(uname -r) 2>/dev/null || echo unknown`
2229uname -s = `(uname -s) 2>/dev/null || echo unknown`
2230uname -v = `(uname -v) 2>/dev/null || echo unknown`
2231
2232/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2233/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2234
2235/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2236/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2237/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2238/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2239/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2240/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2241/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2242
2243_ASUNAME
2244
2245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246for as_dir in $PATH
2247do
2248  IFS=$as_save_IFS
2249  test -z "$as_dir" && as_dir=.
2250    $as_echo "PATH: $as_dir"
2251  done
2252IFS=$as_save_IFS
2253
2254} >&5
2255
2256cat >&5 <<_ACEOF
2257
2258
2259## ----------- ##
2260## Core tests. ##
2261## ----------- ##
2262
2263_ACEOF
2264
2265
2266# Keep a trace of the command line.
2267# Strip out --no-create and --no-recursion so they do not pile up.
2268# Strip out --silent because we don't want to record it for future runs.
2269# Also quote any args containing shell meta-characters.
2270# Make two passes to allow for proper duplicate-argument suppression.
2271ac_configure_args=
2272ac_configure_args0=
2273ac_configure_args1=
2274ac_must_keep_next=false
2275for ac_pass in 1 2
2276do
2277  for ac_arg
2278  do
2279    case $ac_arg in
2280    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2281    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2282    | -silent | --silent | --silen | --sile | --sil)
2283      continue ;;
2284    *\'*)
2285      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2286    esac
2287    case $ac_pass in
2288    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2289    2)
2290      as_fn_append ac_configure_args1 " '$ac_arg'"
2291      if test $ac_must_keep_next = true; then
2292	ac_must_keep_next=false # Got value, back to normal.
2293      else
2294	case $ac_arg in
2295	  *=* | --config-cache | -C | -disable-* | --disable-* \
2296	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2297	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2298	  | -with-* | --with-* | -without-* | --without-* | --x)
2299	    case "$ac_configure_args0 " in
2300	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2301	    esac
2302	    ;;
2303	  -* ) ac_must_keep_next=true ;;
2304	esac
2305      fi
2306      as_fn_append ac_configure_args " '$ac_arg'"
2307      ;;
2308    esac
2309  done
2310done
2311{ ac_configure_args0=; unset ac_configure_args0;}
2312{ ac_configure_args1=; unset ac_configure_args1;}
2313
2314# When interrupted or exit'd, cleanup temporary files, and complete
2315# config.log.  We remove comments because anyway the quotes in there
2316# would cause problems or look ugly.
2317# WARNING: Use '\'' to represent an apostrophe within the trap.
2318# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2319trap 'exit_status=$?
2320  # Save into config.log some information that might help in debugging.
2321  {
2322    echo
2323
2324    $as_echo "## ---------------- ##
2325## Cache variables. ##
2326## ---------------- ##"
2327    echo
2328    # The following way of writing the cache mishandles newlines in values,
2329(
2330  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2331    eval ac_val=\$$ac_var
2332    case $ac_val in #(
2333    *${as_nl}*)
2334      case $ac_var in #(
2335      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2336$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2337      esac
2338      case $ac_var in #(
2339      _ | IFS | as_nl) ;; #(
2340      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2341      *) { eval $ac_var=; unset $ac_var;} ;;
2342      esac ;;
2343    esac
2344  done
2345  (set) 2>&1 |
2346    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2347    *${as_nl}ac_space=\ *)
2348      sed -n \
2349	"s/'\''/'\''\\\\'\'''\''/g;
2350	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2351      ;; #(
2352    *)
2353      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2354      ;;
2355    esac |
2356    sort
2357)
2358    echo
2359
2360    $as_echo "## ----------------- ##
2361## Output variables. ##
2362## ----------------- ##"
2363    echo
2364    for ac_var in $ac_subst_vars
2365    do
2366      eval ac_val=\$$ac_var
2367      case $ac_val in
2368      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2369      esac
2370      $as_echo "$ac_var='\''$ac_val'\''"
2371    done | sort
2372    echo
2373
2374    if test -n "$ac_subst_files"; then
2375      $as_echo "## ------------------- ##
2376## File substitutions. ##
2377## ------------------- ##"
2378      echo
2379      for ac_var in $ac_subst_files
2380      do
2381	eval ac_val=\$$ac_var
2382	case $ac_val in
2383	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2384	esac
2385	$as_echo "$ac_var='\''$ac_val'\''"
2386      done | sort
2387      echo
2388    fi
2389
2390    if test -s confdefs.h; then
2391      $as_echo "## ----------- ##
2392## confdefs.h. ##
2393## ----------- ##"
2394      echo
2395      cat confdefs.h
2396      echo
2397    fi
2398    test "$ac_signal" != 0 &&
2399      $as_echo "$as_me: caught signal $ac_signal"
2400    $as_echo "$as_me: exit $exit_status"
2401  } >&5
2402  rm -f core *.core core.conftest.* &&
2403    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2404    exit $exit_status
2405' 0
2406for ac_signal in 1 2 13 15; do
2407  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2408done
2409ac_signal=0
2410
2411# confdefs.h avoids OS command line length limits that DEFS can exceed.
2412rm -f -r conftest* confdefs.h
2413
2414$as_echo "/* confdefs.h */" > confdefs.h
2415
2416# Predefined preprocessor variables.
2417
2418cat >>confdefs.h <<_ACEOF
2419#define PACKAGE_NAME "$PACKAGE_NAME"
2420_ACEOF
2421
2422cat >>confdefs.h <<_ACEOF
2423#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2424_ACEOF
2425
2426cat >>confdefs.h <<_ACEOF
2427#define PACKAGE_VERSION "$PACKAGE_VERSION"
2428_ACEOF
2429
2430cat >>confdefs.h <<_ACEOF
2431#define PACKAGE_STRING "$PACKAGE_STRING"
2432_ACEOF
2433
2434cat >>confdefs.h <<_ACEOF
2435#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2436_ACEOF
2437
2438cat >>confdefs.h <<_ACEOF
2439#define PACKAGE_URL "$PACKAGE_URL"
2440_ACEOF
2441
2442
2443# Let the site file select an alternate cache file if it wants to.
2444# Prefer an explicitly selected file to automatically selected ones.
2445ac_site_file1=NONE
2446ac_site_file2=NONE
2447if test -n "$CONFIG_SITE"; then
2448  # We do not want a PATH search for config.site.
2449  case $CONFIG_SITE in #((
2450    -*)  ac_site_file1=./$CONFIG_SITE;;
2451    */*) ac_site_file1=$CONFIG_SITE;;
2452    *)   ac_site_file1=./$CONFIG_SITE;;
2453  esac
2454elif test "x$prefix" != xNONE; then
2455  ac_site_file1=$prefix/share/config.site
2456  ac_site_file2=$prefix/etc/config.site
2457else
2458  ac_site_file1=$ac_default_prefix/share/config.site
2459  ac_site_file2=$ac_default_prefix/etc/config.site
2460fi
2461for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2462do
2463  test "x$ac_site_file" = xNONE && continue
2464  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2465    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2466$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2467    sed 's/^/| /' "$ac_site_file" >&5
2468    . "$ac_site_file" \
2469      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2471as_fn_error $? "failed to load site script $ac_site_file
2472See \`config.log' for more details" "$LINENO" 5; }
2473  fi
2474done
2475
2476if test -r "$cache_file"; then
2477  # Some versions of bash will fail to source /dev/null (special files
2478  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2479  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2480    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2481$as_echo "$as_me: loading cache $cache_file" >&6;}
2482    case $cache_file in
2483      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2484      *)                      . "./$cache_file";;
2485    esac
2486  fi
2487else
2488  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2489$as_echo "$as_me: creating cache $cache_file" >&6;}
2490  >$cache_file
2491fi
2492
2493# Check that the precious variables saved in the cache have kept the same
2494# value.
2495ac_cache_corrupted=false
2496for ac_var in $ac_precious_vars; do
2497  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2498  eval ac_new_set=\$ac_env_${ac_var}_set
2499  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2500  eval ac_new_val=\$ac_env_${ac_var}_value
2501  case $ac_old_set,$ac_new_set in
2502    set,)
2503      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2504$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2505      ac_cache_corrupted=: ;;
2506    ,set)
2507      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2508$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2509      ac_cache_corrupted=: ;;
2510    ,);;
2511    *)
2512      if test "x$ac_old_val" != "x$ac_new_val"; then
2513	# differences in whitespace do not lead to failure.
2514	ac_old_val_w=`echo x $ac_old_val`
2515	ac_new_val_w=`echo x $ac_new_val`
2516	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2517	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2518$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2519	  ac_cache_corrupted=:
2520	else
2521	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2522$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2523	  eval $ac_var=\$ac_old_val
2524	fi
2525	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2526$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2527	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2528$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2529      fi;;
2530  esac
2531  # Pass precious variables to config.status.
2532  if test "$ac_new_set" = set; then
2533    case $ac_new_val in
2534    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2535    *) ac_arg=$ac_var=$ac_new_val ;;
2536    esac
2537    case " $ac_configure_args " in
2538      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2539      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2540    esac
2541  fi
2542done
2543if $ac_cache_corrupted; then
2544  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2545$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2546  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2547$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2548  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2549fi
2550## -------------------- ##
2551## Main body of script. ##
2552## -------------------- ##
2553
2554ac_ext=c
2555ac_cpp='$CPP $CPPFLAGS'
2556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2558ac_compiler_gnu=$ac_cv_c_compiler_gnu
2559
2560
2561
2562ac_aux_dir=
2563for ac_dir in build-aux "$srcdir"/build-aux; do
2564  if test -f "$ac_dir/install-sh"; then
2565    ac_aux_dir=$ac_dir
2566    ac_install_sh="$ac_aux_dir/install-sh -c"
2567    break
2568  elif test -f "$ac_dir/install.sh"; then
2569    ac_aux_dir=$ac_dir
2570    ac_install_sh="$ac_aux_dir/install.sh -c"
2571    break
2572  elif test -f "$ac_dir/shtool"; then
2573    ac_aux_dir=$ac_dir
2574    ac_install_sh="$ac_aux_dir/shtool install -c"
2575    break
2576  fi
2577done
2578if test -z "$ac_aux_dir"; then
2579  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2580fi
2581
2582# These three variables are undocumented and unsupported,
2583# and are intended to be withdrawn in a future Autoconf release.
2584# They can cause serious problems if a builder's source tree is in a directory
2585# whose full name contains unusual characters.
2586ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2587ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2588ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2589
2590
2591
2592
2593
2594
2595
2596
2597CONFIGURE_CFLAGS=
2598SPECIFIED_CFLAGS="${CFLAGS}"
2599
2600
2601
2602
2603
2604CONFIGURE_CXXFLAGS=
2605SPECIFIED_CXXFLAGS="${CXXFLAGS}"
2606
2607
2608
2609
2610
2611CONFIG=`echo ${ac_configure_args} | sed -e 's#'"'"'\([^ ]*\)'"'"'#\1#g'`
2612
2613
2614rev=2
2615
2616
2617srcroot=$srcdir
2618if test "x${srcroot}" = "x." ; then
2619  srcroot=""
2620else
2621  srcroot="${srcroot}/"
2622fi
2623
2624abs_srcroot="`cd \"${srcdir}\"; pwd`/"
2625
2626
2627objroot=""
2628
2629abs_objroot="`pwd`/"
2630
2631
2632if test "x$prefix" = "xNONE" ; then
2633  prefix="/usr/local"
2634fi
2635if test "x$exec_prefix" = "xNONE" ; then
2636  exec_prefix=$prefix
2637fi
2638PREFIX=$prefix
2639
2640BINDIR=`eval echo $bindir`
2641BINDIR=`eval echo $BINDIR`
2642
2643INCLUDEDIR=`eval echo $includedir`
2644INCLUDEDIR=`eval echo $INCLUDEDIR`
2645
2646LIBDIR=`eval echo $libdir`
2647LIBDIR=`eval echo $LIBDIR`
2648
2649DATADIR=`eval echo $datadir`
2650DATADIR=`eval echo $DATADIR`
2651
2652MANDIR=`eval echo $mandir`
2653MANDIR=`eval echo $MANDIR`
2654
2655
2656# Extract the first word of "xsltproc", so it can be a program name with args.
2657set dummy xsltproc; ac_word=$2
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659$as_echo_n "checking for $ac_word... " >&6; }
2660if ${ac_cv_path_XSLTPROC+:} false; then :
2661  $as_echo_n "(cached) " >&6
2662else
2663  case $XSLTPROC in
2664  [\\/]* | ?:[\\/]*)
2665  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
2666  ;;
2667  *)
2668  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669for as_dir in $PATH
2670do
2671  IFS=$as_save_IFS
2672  test -z "$as_dir" && as_dir=.
2673    for ac_exec_ext in '' $ac_executable_extensions; do
2674  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2675    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
2676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677    break 2
2678  fi
2679done
2680  done
2681IFS=$as_save_IFS
2682
2683  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="false"
2684  ;;
2685esac
2686fi
2687XSLTPROC=$ac_cv_path_XSLTPROC
2688if test -n "$XSLTPROC"; then
2689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
2690$as_echo "$XSLTPROC" >&6; }
2691else
2692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693$as_echo "no" >&6; }
2694fi
2695
2696
2697if test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then
2698  DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl"
2699elif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then
2700  DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets"
2701else
2702    DEFAULT_XSLROOT=""
2703fi
2704
2705# Check whether --with-xslroot was given.
2706if test "${with_xslroot+set}" = set; then :
2707  withval=$with_xslroot;
2708if test "x$with_xslroot" = "xno" ; then
2709  XSLROOT="${DEFAULT_XSLROOT}"
2710else
2711  XSLROOT="${with_xslroot}"
2712fi
2713
2714else
2715  XSLROOT="${DEFAULT_XSLROOT}"
2716
2717fi
2718
2719if test "x$XSLTPROC" = "xfalse" ; then
2720  XSLROOT=""
2721fi
2722
2723
2724CFLAGS=$CFLAGS
2725ac_ext=c
2726ac_cpp='$CPP $CPPFLAGS'
2727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730if test -n "$ac_tool_prefix"; then
2731  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2732set dummy ${ac_tool_prefix}gcc; ac_word=$2
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734$as_echo_n "checking for $ac_word... " >&6; }
2735if ${ac_cv_prog_CC+:} false; then :
2736  $as_echo_n "(cached) " >&6
2737else
2738  if test -n "$CC"; then
2739  ac_cv_prog_CC="$CC" # Let the user override the test.
2740else
2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742for as_dir in $PATH
2743do
2744  IFS=$as_save_IFS
2745  test -z "$as_dir" && as_dir=.
2746    for ac_exec_ext in '' $ac_executable_extensions; do
2747  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750    break 2
2751  fi
2752done
2753  done
2754IFS=$as_save_IFS
2755
2756fi
2757fi
2758CC=$ac_cv_prog_CC
2759if test -n "$CC"; then
2760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761$as_echo "$CC" >&6; }
2762else
2763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764$as_echo "no" >&6; }
2765fi
2766
2767
2768fi
2769if test -z "$ac_cv_prog_CC"; then
2770  ac_ct_CC=$CC
2771  # Extract the first word of "gcc", so it can be a program name with args.
2772set dummy gcc; ac_word=$2
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774$as_echo_n "checking for $ac_word... " >&6; }
2775if ${ac_cv_prog_ac_ct_CC+:} false; then :
2776  $as_echo_n "(cached) " >&6
2777else
2778  if test -n "$ac_ct_CC"; then
2779  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2780else
2781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782for as_dir in $PATH
2783do
2784  IFS=$as_save_IFS
2785  test -z "$as_dir" && as_dir=.
2786    for ac_exec_ext in '' $ac_executable_extensions; do
2787  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788    ac_cv_prog_ac_ct_CC="gcc"
2789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790    break 2
2791  fi
2792done
2793  done
2794IFS=$as_save_IFS
2795
2796fi
2797fi
2798ac_ct_CC=$ac_cv_prog_ac_ct_CC
2799if test -n "$ac_ct_CC"; then
2800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2801$as_echo "$ac_ct_CC" >&6; }
2802else
2803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804$as_echo "no" >&6; }
2805fi
2806
2807  if test "x$ac_ct_CC" = x; then
2808    CC=""
2809  else
2810    case $cross_compiling:$ac_tool_warned in
2811yes:)
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2813$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2814ac_tool_warned=yes ;;
2815esac
2816    CC=$ac_ct_CC
2817  fi
2818else
2819  CC="$ac_cv_prog_CC"
2820fi
2821
2822if test -z "$CC"; then
2823          if test -n "$ac_tool_prefix"; then
2824    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2825set dummy ${ac_tool_prefix}cc; ac_word=$2
2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827$as_echo_n "checking for $ac_word... " >&6; }
2828if ${ac_cv_prog_CC+:} false; then :
2829  $as_echo_n "(cached) " >&6
2830else
2831  if test -n "$CC"; then
2832  ac_cv_prog_CC="$CC" # Let the user override the test.
2833else
2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH
2836do
2837  IFS=$as_save_IFS
2838  test -z "$as_dir" && as_dir=.
2839    for ac_exec_ext in '' $ac_executable_extensions; do
2840  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841    ac_cv_prog_CC="${ac_tool_prefix}cc"
2842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843    break 2
2844  fi
2845done
2846  done
2847IFS=$as_save_IFS
2848
2849fi
2850fi
2851CC=$ac_cv_prog_CC
2852if test -n "$CC"; then
2853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854$as_echo "$CC" >&6; }
2855else
2856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857$as_echo "no" >&6; }
2858fi
2859
2860
2861  fi
2862fi
2863if test -z "$CC"; then
2864  # Extract the first word of "cc", so it can be a program name with args.
2865set dummy cc; ac_word=$2
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867$as_echo_n "checking for $ac_word... " >&6; }
2868if ${ac_cv_prog_CC+:} false; then :
2869  $as_echo_n "(cached) " >&6
2870else
2871  if test -n "$CC"; then
2872  ac_cv_prog_CC="$CC" # Let the user override the test.
2873else
2874  ac_prog_rejected=no
2875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876for as_dir in $PATH
2877do
2878  IFS=$as_save_IFS
2879  test -z "$as_dir" && as_dir=.
2880    for ac_exec_ext in '' $ac_executable_extensions; do
2881  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2883       ac_prog_rejected=yes
2884       continue
2885     fi
2886    ac_cv_prog_CC="cc"
2887    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888    break 2
2889  fi
2890done
2891  done
2892IFS=$as_save_IFS
2893
2894if test $ac_prog_rejected = yes; then
2895  # We found a bogon in the path, so make sure we never use it.
2896  set dummy $ac_cv_prog_CC
2897  shift
2898  if test $# != 0; then
2899    # We chose a different compiler from the bogus one.
2900    # However, it has the same basename, so the bogon will be chosen
2901    # first if we set CC to just the basename; use the full file name.
2902    shift
2903    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2904  fi
2905fi
2906fi
2907fi
2908CC=$ac_cv_prog_CC
2909if test -n "$CC"; then
2910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2911$as_echo "$CC" >&6; }
2912else
2913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914$as_echo "no" >&6; }
2915fi
2916
2917
2918fi
2919if test -z "$CC"; then
2920  if test -n "$ac_tool_prefix"; then
2921  for ac_prog in cl.exe
2922  do
2923    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2924set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926$as_echo_n "checking for $ac_word... " >&6; }
2927if ${ac_cv_prog_CC+:} false; then :
2928  $as_echo_n "(cached) " >&6
2929else
2930  if test -n "$CC"; then
2931  ac_cv_prog_CC="$CC" # Let the user override the test.
2932else
2933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934for as_dir in $PATH
2935do
2936  IFS=$as_save_IFS
2937  test -z "$as_dir" && as_dir=.
2938    for ac_exec_ext in '' $ac_executable_extensions; do
2939  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942    break 2
2943  fi
2944done
2945  done
2946IFS=$as_save_IFS
2947
2948fi
2949fi
2950CC=$ac_cv_prog_CC
2951if test -n "$CC"; then
2952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2953$as_echo "$CC" >&6; }
2954else
2955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956$as_echo "no" >&6; }
2957fi
2958
2959
2960    test -n "$CC" && break
2961  done
2962fi
2963if test -z "$CC"; then
2964  ac_ct_CC=$CC
2965  for ac_prog in cl.exe
2966do
2967  # Extract the first word of "$ac_prog", so it can be a program name with args.
2968set dummy $ac_prog; ac_word=$2
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970$as_echo_n "checking for $ac_word... " >&6; }
2971if ${ac_cv_prog_ac_ct_CC+:} false; then :
2972  $as_echo_n "(cached) " >&6
2973else
2974  if test -n "$ac_ct_CC"; then
2975  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2976else
2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978for as_dir in $PATH
2979do
2980  IFS=$as_save_IFS
2981  test -z "$as_dir" && as_dir=.
2982    for ac_exec_ext in '' $ac_executable_extensions; do
2983  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984    ac_cv_prog_ac_ct_CC="$ac_prog"
2985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986    break 2
2987  fi
2988done
2989  done
2990IFS=$as_save_IFS
2991
2992fi
2993fi
2994ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995if test -n "$ac_ct_CC"; then
2996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2997$as_echo "$ac_ct_CC" >&6; }
2998else
2999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000$as_echo "no" >&6; }
3001fi
3002
3003
3004  test -n "$ac_ct_CC" && break
3005done
3006
3007  if test "x$ac_ct_CC" = x; then
3008    CC=""
3009  else
3010    case $cross_compiling:$ac_tool_warned in
3011yes:)
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3014ac_tool_warned=yes ;;
3015esac
3016    CC=$ac_ct_CC
3017  fi
3018fi
3019
3020fi
3021
3022
3023test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025as_fn_error $? "no acceptable C compiler found in \$PATH
3026See \`config.log' for more details" "$LINENO" 5; }
3027
3028# Provide some information about the compiler.
3029$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3030set X $ac_compile
3031ac_compiler=$2
3032for ac_option in --version -v -V -qversion; do
3033  { { ac_try="$ac_compiler $ac_option >&5"
3034case "(($ac_try" in
3035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036  *) ac_try_echo=$ac_try;;
3037esac
3038eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3039$as_echo "$ac_try_echo"; } >&5
3040  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3041  ac_status=$?
3042  if test -s conftest.err; then
3043    sed '10a\
3044... rest of stderr output deleted ...
3045         10q' conftest.err >conftest.er1
3046    cat conftest.er1 >&5
3047  fi
3048  rm -f conftest.er1 conftest.err
3049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050  test $ac_status = 0; }
3051done
3052
3053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3054/* end confdefs.h.  */
3055
3056int
3057main ()
3058{
3059
3060  ;
3061  return 0;
3062}
3063_ACEOF
3064ac_clean_files_save=$ac_clean_files
3065ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3066# Try to create an executable without -o first, disregard a.out.
3067# It will help us diagnose broken compilers, and finding out an intuition
3068# of exeext.
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3070$as_echo_n "checking whether the C compiler works... " >&6; }
3071ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3072
3073# The possible output files:
3074ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3075
3076ac_rmfiles=
3077for ac_file in $ac_files
3078do
3079  case $ac_file in
3080    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3081    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3082  esac
3083done
3084rm -f $ac_rmfiles
3085
3086if { { ac_try="$ac_link_default"
3087case "(($ac_try" in
3088  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089  *) ac_try_echo=$ac_try;;
3090esac
3091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3092$as_echo "$ac_try_echo"; } >&5
3093  (eval "$ac_link_default") 2>&5
3094  ac_status=$?
3095  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3096  test $ac_status = 0; }; then :
3097  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3098# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3099# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3100# so that the user can short-circuit this test for compilers unknown to
3101# Autoconf.
3102for ac_file in $ac_files ''
3103do
3104  test -f "$ac_file" || continue
3105  case $ac_file in
3106    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3107	;;
3108    [ab].out )
3109	# We found the default executable, but exeext='' is most
3110	# certainly right.
3111	break;;
3112    *.* )
3113	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3114	then :; else
3115	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3116	fi
3117	# We set ac_cv_exeext here because the later test for it is not
3118	# safe: cross compilers may not add the suffix if given an `-o'
3119	# argument, so we may need to know it at that point already.
3120	# Even if this section looks crufty: it has the advantage of
3121	# actually working.
3122	break;;
3123    * )
3124	break;;
3125  esac
3126done
3127test "$ac_cv_exeext" = no && ac_cv_exeext=
3128
3129else
3130  ac_file=''
3131fi
3132if test -z "$ac_file"; then :
3133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134$as_echo "no" >&6; }
3135$as_echo "$as_me: failed program was:" >&5
3136sed 's/^/| /' conftest.$ac_ext >&5
3137
3138{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3140as_fn_error 77 "C compiler cannot create executables
3141See \`config.log' for more details" "$LINENO" 5; }
3142else
3143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3144$as_echo "yes" >&6; }
3145fi
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3147$as_echo_n "checking for C compiler default output file name... " >&6; }
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3149$as_echo "$ac_file" >&6; }
3150ac_exeext=$ac_cv_exeext
3151
3152rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3153ac_clean_files=$ac_clean_files_save
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3155$as_echo_n "checking for suffix of executables... " >&6; }
3156if { { ac_try="$ac_link"
3157case "(($ac_try" in
3158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159  *) ac_try_echo=$ac_try;;
3160esac
3161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162$as_echo "$ac_try_echo"; } >&5
3163  (eval "$ac_link") 2>&5
3164  ac_status=$?
3165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3166  test $ac_status = 0; }; then :
3167  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3168# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3169# work properly (i.e., refer to `conftest.exe'), while it won't with
3170# `rm'.
3171for ac_file in conftest.exe conftest conftest.*; do
3172  test -f "$ac_file" || continue
3173  case $ac_file in
3174    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3175    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3176	  break;;
3177    * ) break;;
3178  esac
3179done
3180else
3181  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3184See \`config.log' for more details" "$LINENO" 5; }
3185fi
3186rm -f conftest conftest$ac_cv_exeext
3187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3188$as_echo "$ac_cv_exeext" >&6; }
3189
3190rm -f conftest.$ac_ext
3191EXEEXT=$ac_cv_exeext
3192ac_exeext=$EXEEXT
3193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194/* end confdefs.h.  */
3195#include <stdio.h>
3196int
3197main ()
3198{
3199FILE *f = fopen ("conftest.out", "w");
3200 return ferror (f) || fclose (f) != 0;
3201
3202  ;
3203  return 0;
3204}
3205_ACEOF
3206ac_clean_files="$ac_clean_files conftest.out"
3207# Check that the compiler produces executables we can run.  If not, either
3208# the compiler is broken, or we cross compile.
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3210$as_echo_n "checking whether we are cross compiling... " >&6; }
3211if test "$cross_compiling" != yes; then
3212  { { ac_try="$ac_link"
3213case "(($ac_try" in
3214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215  *) ac_try_echo=$ac_try;;
3216esac
3217eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218$as_echo "$ac_try_echo"; } >&5
3219  (eval "$ac_link") 2>&5
3220  ac_status=$?
3221  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222  test $ac_status = 0; }
3223  if { ac_try='./conftest$ac_cv_exeext'
3224  { { case "(($ac_try" in
3225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226  *) ac_try_echo=$ac_try;;
3227esac
3228eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229$as_echo "$ac_try_echo"; } >&5
3230  (eval "$ac_try") 2>&5
3231  ac_status=$?
3232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233  test $ac_status = 0; }; }; then
3234    cross_compiling=no
3235  else
3236    if test "$cross_compiling" = maybe; then
3237	cross_compiling=yes
3238    else
3239	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3241as_fn_error $? "cannot run C compiled programs.
3242If you meant to cross compile, use \`--host'.
3243See \`config.log' for more details" "$LINENO" 5; }
3244    fi
3245  fi
3246fi
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3248$as_echo "$cross_compiling" >&6; }
3249
3250rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3251ac_clean_files=$ac_clean_files_save
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3253$as_echo_n "checking for suffix of object files... " >&6; }
3254if ${ac_cv_objext+:} false; then :
3255  $as_echo_n "(cached) " >&6
3256else
3257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258/* end confdefs.h.  */
3259
3260int
3261main ()
3262{
3263
3264  ;
3265  return 0;
3266}
3267_ACEOF
3268rm -f conftest.o conftest.obj
3269if { { ac_try="$ac_compile"
3270case "(($ac_try" in
3271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272  *) ac_try_echo=$ac_try;;
3273esac
3274eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275$as_echo "$ac_try_echo"; } >&5
3276  (eval "$ac_compile") 2>&5
3277  ac_status=$?
3278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279  test $ac_status = 0; }; then :
3280  for ac_file in conftest.o conftest.obj conftest.*; do
3281  test -f "$ac_file" || continue;
3282  case $ac_file in
3283    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3284    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3285       break;;
3286  esac
3287done
3288else
3289  $as_echo "$as_me: failed program was:" >&5
3290sed 's/^/| /' conftest.$ac_ext >&5
3291
3292{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294as_fn_error $? "cannot compute suffix of object files: cannot compile
3295See \`config.log' for more details" "$LINENO" 5; }
3296fi
3297rm -f conftest.$ac_cv_objext conftest.$ac_ext
3298fi
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3300$as_echo "$ac_cv_objext" >&6; }
3301OBJEXT=$ac_cv_objext
3302ac_objext=$OBJEXT
3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3304$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3305if ${ac_cv_c_compiler_gnu+:} false; then :
3306  $as_echo_n "(cached) " >&6
3307else
3308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309/* end confdefs.h.  */
3310
3311int
3312main ()
3313{
3314#ifndef __GNUC__
3315       choke me
3316#endif
3317
3318  ;
3319  return 0;
3320}
3321_ACEOF
3322if ac_fn_c_try_compile "$LINENO"; then :
3323  ac_compiler_gnu=yes
3324else
3325  ac_compiler_gnu=no
3326fi
3327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328ac_cv_c_compiler_gnu=$ac_compiler_gnu
3329
3330fi
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3332$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3333if test $ac_compiler_gnu = yes; then
3334  GCC=yes
3335else
3336  GCC=
3337fi
3338ac_test_CFLAGS=${CFLAGS+set}
3339ac_save_CFLAGS=$CFLAGS
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3341$as_echo_n "checking whether $CC accepts -g... " >&6; }
3342if ${ac_cv_prog_cc_g+:} false; then :
3343  $as_echo_n "(cached) " >&6
3344else
3345  ac_save_c_werror_flag=$ac_c_werror_flag
3346   ac_c_werror_flag=yes
3347   ac_cv_prog_cc_g=no
3348   CFLAGS="-g"
3349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350/* end confdefs.h.  */
3351
3352int
3353main ()
3354{
3355
3356  ;
3357  return 0;
3358}
3359_ACEOF
3360if ac_fn_c_try_compile "$LINENO"; then :
3361  ac_cv_prog_cc_g=yes
3362else
3363  CFLAGS=""
3364      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365/* end confdefs.h.  */
3366
3367int
3368main ()
3369{
3370
3371  ;
3372  return 0;
3373}
3374_ACEOF
3375if ac_fn_c_try_compile "$LINENO"; then :
3376
3377else
3378  ac_c_werror_flag=$ac_save_c_werror_flag
3379	 CFLAGS="-g"
3380	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381/* end confdefs.h.  */
3382
3383int
3384main ()
3385{
3386
3387  ;
3388  return 0;
3389}
3390_ACEOF
3391if ac_fn_c_try_compile "$LINENO"; then :
3392  ac_cv_prog_cc_g=yes
3393fi
3394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3395fi
3396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397fi
3398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399   ac_c_werror_flag=$ac_save_c_werror_flag
3400fi
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3402$as_echo "$ac_cv_prog_cc_g" >&6; }
3403if test "$ac_test_CFLAGS" = set; then
3404  CFLAGS=$ac_save_CFLAGS
3405elif test $ac_cv_prog_cc_g = yes; then
3406  if test "$GCC" = yes; then
3407    CFLAGS="-g -O2"
3408  else
3409    CFLAGS="-g"
3410  fi
3411else
3412  if test "$GCC" = yes; then
3413    CFLAGS="-O2"
3414  else
3415    CFLAGS=
3416  fi
3417fi
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3419$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3420if ${ac_cv_prog_cc_c89+:} false; then :
3421  $as_echo_n "(cached) " >&6
3422else
3423  ac_cv_prog_cc_c89=no
3424ac_save_CC=$CC
3425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426/* end confdefs.h.  */
3427#include <stdarg.h>
3428#include <stdio.h>
3429struct stat;
3430/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3431struct buf { int x; };
3432FILE * (*rcsopen) (struct buf *, struct stat *, int);
3433static char *e (p, i)
3434     char **p;
3435     int i;
3436{
3437  return p[i];
3438}
3439static char *f (char * (*g) (char **, int), char **p, ...)
3440{
3441  char *s;
3442  va_list v;
3443  va_start (v,p);
3444  s = g (p, va_arg (v,int));
3445  va_end (v);
3446  return s;
3447}
3448
3449/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3450   function prototypes and stuff, but not '\xHH' hex character constants.
3451   These don't provoke an error unfortunately, instead are silently treated
3452   as 'x'.  The following induces an error, until -std is added to get
3453   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3454   array size at least.  It's necessary to write '\x00'==0 to get something
3455   that's true only with -std.  */
3456int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3457
3458/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3459   inside strings and character constants.  */
3460#define FOO(x) 'x'
3461int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3462
3463int test (int i, double x);
3464struct s1 {int (*f) (int a);};
3465struct s2 {int (*f) (double a);};
3466int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3467int argc;
3468char **argv;
3469int
3470main ()
3471{
3472return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3473  ;
3474  return 0;
3475}
3476_ACEOF
3477for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3478	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3479do
3480  CC="$ac_save_CC $ac_arg"
3481  if ac_fn_c_try_compile "$LINENO"; then :
3482  ac_cv_prog_cc_c89=$ac_arg
3483fi
3484rm -f core conftest.err conftest.$ac_objext
3485  test "x$ac_cv_prog_cc_c89" != "xno" && break
3486done
3487rm -f conftest.$ac_ext
3488CC=$ac_save_CC
3489
3490fi
3491# AC_CACHE_VAL
3492case "x$ac_cv_prog_cc_c89" in
3493  x)
3494    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3495$as_echo "none needed" >&6; } ;;
3496  xno)
3497    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3498$as_echo "unsupported" >&6; } ;;
3499  *)
3500    CC="$CC $ac_cv_prog_cc_c89"
3501    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3502$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3503esac
3504if test "x$ac_cv_prog_cc_c89" != xno; then :
3505
3506fi
3507
3508ac_ext=c
3509ac_cpp='$CPP $CPPFLAGS'
3510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512ac_compiler_gnu=$ac_cv_c_compiler_gnu
3513
3514
3515if test "x$GCC" != "xyes" ; then
3516
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5
3518$as_echo_n "checking whether compiler is MSVC... " >&6; }
3519if ${je_cv_msvc+:} false; then :
3520  $as_echo_n "(cached) " >&6
3521else
3522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523/* end confdefs.h.  */
3524
3525int
3526main ()
3527{
3528
3529#ifndef _MSC_VER
3530  int fail-1;
3531#endif
3532
3533  ;
3534  return 0;
3535}
3536_ACEOF
3537if ac_fn_c_try_compile "$LINENO"; then :
3538  je_cv_msvc=yes
3539else
3540  je_cv_msvc=no
3541fi
3542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543fi
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5
3545$as_echo "$je_cv_msvc" >&6; }
3546fi
3547
3548je_cv_cray_prgenv_wrapper=""
3549if test "x${PE_ENV}" != "x" ; then
3550  case "${CC}" in
3551    CC|cc)
3552	je_cv_cray_prgenv_wrapper="yes"
3553	;;
3554    *)
3555       ;;
3556  esac
3557fi
3558
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is cray" >&5
3560$as_echo_n "checking whether compiler is cray... " >&6; }
3561if ${je_cv_cray+:} false; then :
3562  $as_echo_n "(cached) " >&6
3563else
3564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565/* end confdefs.h.  */
3566
3567int
3568main ()
3569{
3570
3571#ifndef _CRAYC
3572  int fail-1;
3573#endif
3574
3575  ;
3576  return 0;
3577}
3578_ACEOF
3579if ac_fn_c_try_compile "$LINENO"; then :
3580  je_cv_cray=yes
3581else
3582  je_cv_cray=no
3583fi
3584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585fi
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray" >&5
3587$as_echo "$je_cv_cray" >&6; }
3588
3589if test "x${je_cv_cray}" = "xyes" ; then
3590  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cray compiler version is 8.4" >&5
3591$as_echo_n "checking whether cray compiler version is 8.4... " >&6; }
3592if ${je_cv_cray_84+:} false; then :
3593  $as_echo_n "(cached) " >&6
3594else
3595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596/* end confdefs.h.  */
3597
3598int
3599main ()
3600{
3601
3602#if !(_RELEASE_MAJOR == 8 && _RELEASE_MINOR == 4)
3603  int fail-1;
3604#endif
3605
3606  ;
3607  return 0;
3608}
3609_ACEOF
3610if ac_fn_c_try_compile "$LINENO"; then :
3611  je_cv_cray_84=yes
3612else
3613  je_cv_cray_84=no
3614fi
3615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616fi
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray_84" >&5
3618$as_echo "$je_cv_cray_84" >&6; }
3619fi
3620
3621if test "x$GCC" = "xyes" ; then
3622
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu11" >&5
3624$as_echo_n "checking whether compiler supports -std=gnu11... " >&6; }
3625T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3626T_APPEND_V=-std=gnu11
3627  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3628  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3629else
3630  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3631fi
3632
3633
3634if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3635  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3636else
3637  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3638fi
3639
3640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641/* end confdefs.h.  */
3642
3643
3644int
3645main ()
3646{
3647
3648    return 0;
3649
3650  ;
3651  return 0;
3652}
3653_ACEOF
3654if ac_fn_c_try_compile "$LINENO"; then :
3655  je_cv_cflags_added=-std=gnu11
3656              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3657$as_echo "yes" >&6; }
3658else
3659  je_cv_cflags_added=
3660              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661$as_echo "no" >&6; }
3662              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3663
3664fi
3665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3667  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3668else
3669  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3670fi
3671
3672
3673  if test "x$je_cv_cflags_added" = "x-std=gnu11" ; then
3674    cat >>confdefs.h <<_ACEOF
3675#define JEMALLOC_HAS_RESTRICT 1
3676_ACEOF
3677
3678  else
3679
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5
3681$as_echo_n "checking whether compiler supports -std=gnu99... " >&6; }
3682T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3683T_APPEND_V=-std=gnu99
3684  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3685  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3686else
3687  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3688fi
3689
3690
3691if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3692  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3693else
3694  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3695fi
3696
3697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698/* end confdefs.h.  */
3699
3700
3701int
3702main ()
3703{
3704
3705    return 0;
3706
3707  ;
3708  return 0;
3709}
3710_ACEOF
3711if ac_fn_c_try_compile "$LINENO"; then :
3712  je_cv_cflags_added=-std=gnu99
3713              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3714$as_echo "yes" >&6; }
3715else
3716  je_cv_cflags_added=
3717              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718$as_echo "no" >&6; }
3719              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3720
3721fi
3722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3724  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3725else
3726  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3727fi
3728
3729
3730    if test "x$je_cv_cflags_added" = "x-std=gnu99" ; then
3731      cat >>confdefs.h <<_ACEOF
3732#define JEMALLOC_HAS_RESTRICT 1
3733_ACEOF
3734
3735    fi
3736  fi
3737
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
3739$as_echo_n "checking whether compiler supports -Wall... " >&6; }
3740T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3741T_APPEND_V=-Wall
3742  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3743  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3744else
3745  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3746fi
3747
3748
3749if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3750  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3751else
3752  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3753fi
3754
3755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756/* end confdefs.h.  */
3757
3758
3759int
3760main ()
3761{
3762
3763    return 0;
3764
3765  ;
3766  return 0;
3767}
3768_ACEOF
3769if ac_fn_c_try_compile "$LINENO"; then :
3770  je_cv_cflags_added=-Wall
3771              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3772$as_echo "yes" >&6; }
3773else
3774  je_cv_cflags_added=
3775              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776$as_echo "no" >&6; }
3777              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3778
3779fi
3780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3782  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3783else
3784  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3785fi
3786
3787
3788
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wextra" >&5
3790$as_echo_n "checking whether compiler supports -Wextra... " >&6; }
3791T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3792T_APPEND_V=-Wextra
3793  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3794  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3795else
3796  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3797fi
3798
3799
3800if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3801  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3802else
3803  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3804fi
3805
3806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h.  */
3808
3809
3810int
3811main ()
3812{
3813
3814    return 0;
3815
3816  ;
3817  return 0;
3818}
3819_ACEOF
3820if ac_fn_c_try_compile "$LINENO"; then :
3821  je_cv_cflags_added=-Wextra
3822              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3823$as_echo "yes" >&6; }
3824else
3825  je_cv_cflags_added=
3826              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827$as_echo "no" >&6; }
3828              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3829
3830fi
3831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3833  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3834else
3835  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3836fi
3837
3838
3839
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wshorten-64-to-32" >&5
3841$as_echo_n "checking whether compiler supports -Wshorten-64-to-32... " >&6; }
3842T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3843T_APPEND_V=-Wshorten-64-to-32
3844  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3845  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3846else
3847  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3848fi
3849
3850
3851if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3852  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3853else
3854  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3855fi
3856
3857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858/* end confdefs.h.  */
3859
3860
3861int
3862main ()
3863{
3864
3865    return 0;
3866
3867  ;
3868  return 0;
3869}
3870_ACEOF
3871if ac_fn_c_try_compile "$LINENO"; then :
3872  je_cv_cflags_added=-Wshorten-64-to-32
3873              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3874$as_echo "yes" >&6; }
3875else
3876  je_cv_cflags_added=
3877              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3878$as_echo "no" >&6; }
3879              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3880
3881fi
3882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3883if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3884  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3885else
3886  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3887fi
3888
3889
3890
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-compare" >&5
3892$as_echo_n "checking whether compiler supports -Wsign-compare... " >&6; }
3893T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3894T_APPEND_V=-Wsign-compare
3895  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3896  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3897else
3898  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3899fi
3900
3901
3902if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3903  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3904else
3905  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3906fi
3907
3908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909/* end confdefs.h.  */
3910
3911
3912int
3913main ()
3914{
3915
3916    return 0;
3917
3918  ;
3919  return 0;
3920}
3921_ACEOF
3922if ac_fn_c_try_compile "$LINENO"; then :
3923  je_cv_cflags_added=-Wsign-compare
3924              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3925$as_echo "yes" >&6; }
3926else
3927  je_cv_cflags_added=
3928              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929$as_echo "no" >&6; }
3930              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3931
3932fi
3933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3935  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3936else
3937  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3938fi
3939
3940
3941
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wundef" >&5
3943$as_echo_n "checking whether compiler supports -Wundef... " >&6; }
3944T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3945T_APPEND_V=-Wundef
3946  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3947  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3948else
3949  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3950fi
3951
3952
3953if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3954  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3955else
3956  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3957fi
3958
3959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960/* end confdefs.h.  */
3961
3962
3963int
3964main ()
3965{
3966
3967    return 0;
3968
3969  ;
3970  return 0;
3971}
3972_ACEOF
3973if ac_fn_c_try_compile "$LINENO"; then :
3974  je_cv_cflags_added=-Wundef
3975              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3976$as_echo "yes" >&6; }
3977else
3978  je_cv_cflags_added=
3979              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980$as_echo "no" >&6; }
3981              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3982
3983fi
3984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3986  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3987else
3988  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3989fi
3990
3991
3992
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-format-zero-length" >&5
3994$as_echo_n "checking whether compiler supports -Wno-format-zero-length... " >&6; }
3995T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3996T_APPEND_V=-Wno-format-zero-length
3997  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3998  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3999else
4000  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4001fi
4002
4003
4004if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4005  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4006else
4007  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4008fi
4009
4010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011/* end confdefs.h.  */
4012
4013
4014int
4015main ()
4016{
4017
4018    return 0;
4019
4020  ;
4021  return 0;
4022}
4023_ACEOF
4024if ac_fn_c_try_compile "$LINENO"; then :
4025  je_cv_cflags_added=-Wno-format-zero-length
4026              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4027$as_echo "yes" >&6; }
4028else
4029  je_cv_cflags_added=
4030              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031$as_echo "no" >&6; }
4032              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4033
4034fi
4035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4037  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4038else
4039  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4040fi
4041
4042
4043
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5
4045$as_echo_n "checking whether compiler supports -pipe... " >&6; }
4046T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4047T_APPEND_V=-pipe
4048  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4049  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4050else
4051  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4052fi
4053
4054
4055if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4056  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4057else
4058  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4059fi
4060
4061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062/* end confdefs.h.  */
4063
4064
4065int
4066main ()
4067{
4068
4069    return 0;
4070
4071  ;
4072  return 0;
4073}
4074_ACEOF
4075if ac_fn_c_try_compile "$LINENO"; then :
4076  je_cv_cflags_added=-pipe
4077              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4078$as_echo "yes" >&6; }
4079else
4080  je_cv_cflags_added=
4081              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4082$as_echo "no" >&6; }
4083              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4084
4085fi
4086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4087if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4088  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4089else
4090  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4091fi
4092
4093
4094
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
4096$as_echo_n "checking whether compiler supports -g3... " >&6; }
4097T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4098T_APPEND_V=-g3
4099  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4100  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4101else
4102  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4103fi
4104
4105
4106if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4107  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4108else
4109  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4110fi
4111
4112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113/* end confdefs.h.  */
4114
4115
4116int
4117main ()
4118{
4119
4120    return 0;
4121
4122  ;
4123  return 0;
4124}
4125_ACEOF
4126if ac_fn_c_try_compile "$LINENO"; then :
4127  je_cv_cflags_added=-g3
4128              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4129$as_echo "yes" >&6; }
4130else
4131  je_cv_cflags_added=
4132              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133$as_echo "no" >&6; }
4134              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4135
4136fi
4137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4139  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4140else
4141  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4142fi
4143
4144
4145elif test "x$je_cv_msvc" = "xyes" ; then
4146  CC="$CC -nologo"
4147
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5
4149$as_echo_n "checking whether compiler supports -Zi... " >&6; }
4150T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4151T_APPEND_V=-Zi
4152  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4153  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4154else
4155  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4156fi
4157
4158
4159if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4160  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4161else
4162  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4163fi
4164
4165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166/* end confdefs.h.  */
4167
4168
4169int
4170main ()
4171{
4172
4173    return 0;
4174
4175  ;
4176  return 0;
4177}
4178_ACEOF
4179if ac_fn_c_try_compile "$LINENO"; then :
4180  je_cv_cflags_added=-Zi
4181              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4182$as_echo "yes" >&6; }
4183else
4184  je_cv_cflags_added=
4185              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186$as_echo "no" >&6; }
4187              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4188
4189fi
4190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4192  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4193else
4194  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4195fi
4196
4197
4198
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5
4200$as_echo_n "checking whether compiler supports -MT... " >&6; }
4201T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4202T_APPEND_V=-MT
4203  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4204  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4205else
4206  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4207fi
4208
4209
4210if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4211  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4212else
4213  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4214fi
4215
4216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217/* end confdefs.h.  */
4218
4219
4220int
4221main ()
4222{
4223
4224    return 0;
4225
4226  ;
4227  return 0;
4228}
4229_ACEOF
4230if ac_fn_c_try_compile "$LINENO"; then :
4231  je_cv_cflags_added=-MT
4232              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4233$as_echo "yes" >&6; }
4234else
4235  je_cv_cflags_added=
4236              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237$as_echo "no" >&6; }
4238              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4239
4240fi
4241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4243  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4244else
4245  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4246fi
4247
4248
4249
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5
4251$as_echo_n "checking whether compiler supports -W3... " >&6; }
4252T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4253T_APPEND_V=-W3
4254  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4255  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4256else
4257  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4258fi
4259
4260
4261if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4262  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4263else
4264  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4265fi
4266
4267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268/* end confdefs.h.  */
4269
4270
4271int
4272main ()
4273{
4274
4275    return 0;
4276
4277  ;
4278  return 0;
4279}
4280_ACEOF
4281if ac_fn_c_try_compile "$LINENO"; then :
4282  je_cv_cflags_added=-W3
4283              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4284$as_echo "yes" >&6; }
4285else
4286  je_cv_cflags_added=
4287              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288$as_echo "no" >&6; }
4289              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4290
4291fi
4292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4294  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4295else
4296  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4297fi
4298
4299
4300
4301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -FS" >&5
4302$as_echo_n "checking whether compiler supports -FS... " >&6; }
4303T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4304T_APPEND_V=-FS
4305  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4306  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4307else
4308  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4309fi
4310
4311
4312if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4313  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4314else
4315  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4316fi
4317
4318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319/* end confdefs.h.  */
4320
4321
4322int
4323main ()
4324{
4325
4326    return 0;
4327
4328  ;
4329  return 0;
4330}
4331_ACEOF
4332if ac_fn_c_try_compile "$LINENO"; then :
4333  je_cv_cflags_added=-FS
4334              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4335$as_echo "yes" >&6; }
4336else
4337  je_cv_cflags_added=
4338              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339$as_echo "no" >&6; }
4340              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4341
4342fi
4343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4345  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4346else
4347  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4348fi
4349
4350
4351  T_APPEND_V=-I${srcdir}/include/msvc_compat
4352  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4353  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
4354else
4355  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
4356fi
4357
4358
4359fi
4360if test "x$je_cv_cray" = "xyes" ; then
4361    if test "x$je_cv_cray_84" = "xyes" ; then
4362
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hipa2" >&5
4364$as_echo_n "checking whether compiler supports -hipa2... " >&6; }
4365T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4366T_APPEND_V=-hipa2
4367  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4368  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4369else
4370  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4371fi
4372
4373
4374if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4375  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4376else
4377  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4378fi
4379
4380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381/* end confdefs.h.  */
4382
4383
4384int
4385main ()
4386{
4387
4388    return 0;
4389
4390  ;
4391  return 0;
4392}
4393_ACEOF
4394if ac_fn_c_try_compile "$LINENO"; then :
4395  je_cv_cflags_added=-hipa2
4396              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4397$as_echo "yes" >&6; }
4398else
4399  je_cv_cflags_added=
4400              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401$as_echo "no" >&6; }
4402              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4403
4404fi
4405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4407  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4408else
4409  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4410fi
4411
4412
4413
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnognu" >&5
4415$as_echo_n "checking whether compiler supports -hnognu... " >&6; }
4416T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4417T_APPEND_V=-hnognu
4418  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4419  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4420else
4421  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4422fi
4423
4424
4425if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4426  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4427else
4428  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4429fi
4430
4431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432/* end confdefs.h.  */
4433
4434
4435int
4436main ()
4437{
4438
4439    return 0;
4440
4441  ;
4442  return 0;
4443}
4444_ACEOF
4445if ac_fn_c_try_compile "$LINENO"; then :
4446  je_cv_cflags_added=-hnognu
4447              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4448$as_echo "yes" >&6; }
4449else
4450  je_cv_cflags_added=
4451              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4452$as_echo "no" >&6; }
4453              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4454
4455fi
4456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4457if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4458  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4459else
4460  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4461fi
4462
4463
4464  fi
4465
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=128" >&5
4467$as_echo_n "checking whether compiler supports -hnomessage=128... " >&6; }
4468T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4469T_APPEND_V=-hnomessage=128
4470  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4471  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4472else
4473  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4474fi
4475
4476
4477if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4478  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4479else
4480  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4481fi
4482
4483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484/* end confdefs.h.  */
4485
4486
4487int
4488main ()
4489{
4490
4491    return 0;
4492
4493  ;
4494  return 0;
4495}
4496_ACEOF
4497if ac_fn_c_try_compile "$LINENO"; then :
4498  je_cv_cflags_added=-hnomessage=128
4499              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4500$as_echo "yes" >&6; }
4501else
4502  je_cv_cflags_added=
4503              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504$as_echo "no" >&6; }
4505              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4506
4507fi
4508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4509if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4510  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4511else
4512  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4513fi
4514
4515
4516
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=1357" >&5
4518$as_echo_n "checking whether compiler supports -hnomessage=1357... " >&6; }
4519T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4520T_APPEND_V=-hnomessage=1357
4521  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4522  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4523else
4524  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4525fi
4526
4527
4528if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4529  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4530else
4531  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4532fi
4533
4534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535/* end confdefs.h.  */
4536
4537
4538int
4539main ()
4540{
4541
4542    return 0;
4543
4544  ;
4545  return 0;
4546}
4547_ACEOF
4548if ac_fn_c_try_compile "$LINENO"; then :
4549  je_cv_cflags_added=-hnomessage=1357
4550              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4551$as_echo "yes" >&6; }
4552else
4553  je_cv_cflags_added=
4554              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4555$as_echo "no" >&6; }
4556              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4557
4558fi
4559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4560if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4561  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4562else
4563  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4564fi
4565
4566
4567fi
4568
4569
4570
4571ac_ext=c
4572ac_cpp='$CPP $CPPFLAGS'
4573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4575ac_compiler_gnu=$ac_cv_c_compiler_gnu
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4577$as_echo_n "checking how to run the C preprocessor... " >&6; }
4578# On Suns, sometimes $CPP names a directory.
4579if test -n "$CPP" && test -d "$CPP"; then
4580  CPP=
4581fi
4582if test -z "$CPP"; then
4583  if ${ac_cv_prog_CPP+:} false; then :
4584  $as_echo_n "(cached) " >&6
4585else
4586      # Double quotes because CPP needs to be expanded
4587    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4588    do
4589      ac_preproc_ok=false
4590for ac_c_preproc_warn_flag in '' yes
4591do
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
4607if ac_fn_c_try_cpp "$LINENO"; then :
4608
4609else
4610  # Broken: fails on valid input.
4611continue
4612fi
4613rm -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
4621if ac_fn_c_try_cpp "$LINENO"; then :
4622  # Broken: success on invalid input.
4623continue
4624else
4625  # Passes both tests.
4626ac_preproc_ok=:
4627break
4628fi
4629rm -f conftest.err conftest.i conftest.$ac_ext
4630
4631done
4632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4633rm -f conftest.i conftest.err conftest.$ac_ext
4634if $ac_preproc_ok; then :
4635  break
4636fi
4637
4638    done
4639    ac_cv_prog_CPP=$CPP
4640
4641fi
4642  CPP=$ac_cv_prog_CPP
4643else
4644  ac_cv_prog_CPP=$CPP
4645fi
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4647$as_echo "$CPP" >&6; }
4648ac_preproc_ok=false
4649for ac_c_preproc_warn_flag in '' yes
4650do
4651  # Use a header file that comes with gcc, so configuring glibc
4652  # with a fresh cross-compiler works.
4653  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4654  # <limits.h> exists even on freestanding compilers.
4655  # On the NeXT, cc -E runs the code through the compiler's parser,
4656  # not just through cpp. "Syntax error" is here to catch this case.
4657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658/* end confdefs.h.  */
4659#ifdef __STDC__
4660# include <limits.h>
4661#else
4662# include <assert.h>
4663#endif
4664		     Syntax error
4665_ACEOF
4666if ac_fn_c_try_cpp "$LINENO"; then :
4667
4668else
4669  # Broken: fails on valid input.
4670continue
4671fi
4672rm -f conftest.err conftest.i conftest.$ac_ext
4673
4674  # OK, works on sane cases.  Now check whether nonexistent headers
4675  # can be detected and how.
4676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677/* end confdefs.h.  */
4678#include <ac_nonexistent.h>
4679_ACEOF
4680if ac_fn_c_try_cpp "$LINENO"; then :
4681  # Broken: success on invalid input.
4682continue
4683else
4684  # Passes both tests.
4685ac_preproc_ok=:
4686break
4687fi
4688rm -f conftest.err conftest.i conftest.$ac_ext
4689
4690done
4691# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4692rm -f conftest.i conftest.err conftest.$ac_ext
4693if $ac_preproc_ok; then :
4694
4695else
4696  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4698as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4699See \`config.log' for more details" "$LINENO" 5; }
4700fi
4701
4702ac_ext=c
4703ac_cpp='$CPP $CPPFLAGS'
4704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4706ac_compiler_gnu=$ac_cv_c_compiler_gnu
4707
4708
4709# Check whether --enable-cxx was given.
4710if test "${enable_cxx+set}" = set; then :
4711  enableval=$enable_cxx; if test "x$enable_cxx" = "xno" ; then
4712  enable_cxx="0"
4713else
4714  enable_cxx="1"
4715fi
4716
4717else
4718  enable_cxx="1"
4719
4720fi
4721
4722if test "x$enable_cxx" = "x1" ; then
4723      # ===========================================================================
4724#   http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html
4725# ===========================================================================
4726#
4727# SYNOPSIS
4728#
4729#   AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional])
4730#
4731# DESCRIPTION
4732#
4733#   Check for baseline language coverage in the compiler for the specified
4734#   version of the C++ standard.  If necessary, add switches to CXX and
4735#   CXXCPP to enable support.  VERSION may be '11' (for the C++11 standard)
4736#   or '14' (for the C++14 standard).
4737#
4738#   The second argument, if specified, indicates whether you insist on an
4739#   extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
4740#   -std=c++11).  If neither is specified, you get whatever works, with
4741#   preference for an extended mode.
4742#
4743#   The third argument, if specified 'mandatory' or if left unspecified,
4744#   indicates that baseline support for the specified C++ standard is
4745#   required and that the macro should error out if no mode with that
4746#   support is found.  If specified 'optional', then configuration proceeds
4747#   regardless, after defining HAVE_CXX${VERSION} if and only if a
4748#   supporting mode is found.
4749#
4750# LICENSE
4751#
4752#   Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
4753#   Copyright (c) 2012 Zack Weinberg <zackw@panix.com>
4754#   Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu>
4755#   Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com>
4756#   Copyright (c) 2015 Paul Norman <penorman@mac.com>
4757#   Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu>
4758#
4759#   Copying and distribution of this file, with or without modification, are
4760#   permitted in any medium without royalty provided the copyright notice
4761#   and this notice are preserved.  This file is offered as-is, without any
4762#   warranty.
4763
4764#serial 4
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785  ac_ext=cpp
4786ac_cpp='$CXXCPP $CPPFLAGS'
4787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4790if test -z "$CXX"; then
4791  if test -n "$CCC"; then
4792    CXX=$CCC
4793  else
4794    if test -n "$ac_tool_prefix"; then
4795  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4796  do
4797    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4798set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800$as_echo_n "checking for $ac_word... " >&6; }
4801if ${ac_cv_prog_CXX+:} false; then :
4802  $as_echo_n "(cached) " >&6
4803else
4804  if test -n "$CXX"; then
4805  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4806else
4807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808for as_dir in $PATH
4809do
4810  IFS=$as_save_IFS
4811  test -z "$as_dir" && as_dir=.
4812    for ac_exec_ext in '' $ac_executable_extensions; do
4813  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4815    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816    break 2
4817  fi
4818done
4819  done
4820IFS=$as_save_IFS
4821
4822fi
4823fi
4824CXX=$ac_cv_prog_CXX
4825if test -n "$CXX"; then
4826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4827$as_echo "$CXX" >&6; }
4828else
4829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830$as_echo "no" >&6; }
4831fi
4832
4833
4834    test -n "$CXX" && break
4835  done
4836fi
4837if test -z "$CXX"; then
4838  ac_ct_CXX=$CXX
4839  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4840do
4841  # Extract the first word of "$ac_prog", so it can be a program name with args.
4842set dummy $ac_prog; ac_word=$2
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844$as_echo_n "checking for $ac_word... " >&6; }
4845if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4846  $as_echo_n "(cached) " >&6
4847else
4848  if test -n "$ac_ct_CXX"; then
4849  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4850else
4851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852for as_dir in $PATH
4853do
4854  IFS=$as_save_IFS
4855  test -z "$as_dir" && as_dir=.
4856    for ac_exec_ext in '' $ac_executable_extensions; do
4857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858    ac_cv_prog_ac_ct_CXX="$ac_prog"
4859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860    break 2
4861  fi
4862done
4863  done
4864IFS=$as_save_IFS
4865
4866fi
4867fi
4868ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4869if test -n "$ac_ct_CXX"; then
4870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4871$as_echo "$ac_ct_CXX" >&6; }
4872else
4873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874$as_echo "no" >&6; }
4875fi
4876
4877
4878  test -n "$ac_ct_CXX" && break
4879done
4880
4881  if test "x$ac_ct_CXX" = x; then
4882    CXX="g++"
4883  else
4884    case $cross_compiling:$ac_tool_warned in
4885yes:)
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888ac_tool_warned=yes ;;
4889esac
4890    CXX=$ac_ct_CXX
4891  fi
4892fi
4893
4894  fi
4895fi
4896# Provide some information about the compiler.
4897$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4898set X $ac_compile
4899ac_compiler=$2
4900for ac_option in --version -v -V -qversion; do
4901  { { ac_try="$ac_compiler $ac_option >&5"
4902case "(($ac_try" in
4903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904  *) ac_try_echo=$ac_try;;
4905esac
4906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4907$as_echo "$ac_try_echo"; } >&5
4908  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4909  ac_status=$?
4910  if test -s conftest.err; then
4911    sed '10a\
4912... rest of stderr output deleted ...
4913         10q' conftest.err >conftest.er1
4914    cat conftest.er1 >&5
4915  fi
4916  rm -f conftest.er1 conftest.err
4917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4918  test $ac_status = 0; }
4919done
4920
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4922$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4923if ${ac_cv_cxx_compiler_gnu+:} false; then :
4924  $as_echo_n "(cached) " >&6
4925else
4926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927/* end confdefs.h.  */
4928
4929int
4930main ()
4931{
4932#ifndef __GNUC__
4933       choke me
4934#endif
4935
4936  ;
4937  return 0;
4938}
4939_ACEOF
4940if ac_fn_cxx_try_compile "$LINENO"; then :
4941  ac_compiler_gnu=yes
4942else
4943  ac_compiler_gnu=no
4944fi
4945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4947
4948fi
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4950$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4951if test $ac_compiler_gnu = yes; then
4952  GXX=yes
4953else
4954  GXX=
4955fi
4956ac_test_CXXFLAGS=${CXXFLAGS+set}
4957ac_save_CXXFLAGS=$CXXFLAGS
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4959$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4960if ${ac_cv_prog_cxx_g+:} false; then :
4961  $as_echo_n "(cached) " >&6
4962else
4963  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4964   ac_cxx_werror_flag=yes
4965   ac_cv_prog_cxx_g=no
4966   CXXFLAGS="-g"
4967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968/* end confdefs.h.  */
4969
4970int
4971main ()
4972{
4973
4974  ;
4975  return 0;
4976}
4977_ACEOF
4978if ac_fn_cxx_try_compile "$LINENO"; then :
4979  ac_cv_prog_cxx_g=yes
4980else
4981  CXXFLAGS=""
4982      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983/* end confdefs.h.  */
4984
4985int
4986main ()
4987{
4988
4989  ;
4990  return 0;
4991}
4992_ACEOF
4993if ac_fn_cxx_try_compile "$LINENO"; then :
4994
4995else
4996  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4997	 CXXFLAGS="-g"
4998	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999/* end confdefs.h.  */
5000
5001int
5002main ()
5003{
5004
5005  ;
5006  return 0;
5007}
5008_ACEOF
5009if ac_fn_cxx_try_compile "$LINENO"; then :
5010  ac_cv_prog_cxx_g=yes
5011fi
5012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013fi
5014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015fi
5016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5018fi
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5020$as_echo "$ac_cv_prog_cxx_g" >&6; }
5021if test "$ac_test_CXXFLAGS" = set; then
5022  CXXFLAGS=$ac_save_CXXFLAGS
5023elif test $ac_cv_prog_cxx_g = yes; then
5024  if test "$GXX" = yes; then
5025    CXXFLAGS="-g -O2"
5026  else
5027    CXXFLAGS="-g"
5028  fi
5029else
5030  if test "$GXX" = yes; then
5031    CXXFLAGS="-O2"
5032  else
5033    CXXFLAGS=
5034  fi
5035fi
5036ac_ext=cpp
5037ac_cpp='$CXXCPP $CPPFLAGS'
5038ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5041
5042
5043      ax_cxx_compile_cxx14_required=false
5044  ac_ext=cpp
5045ac_cpp='$CXXCPP $CPPFLAGS'
5046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5049  ac_success=no
5050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
5051$as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
5052if ${ax_cv_cxx_compile_cxx14+:} false; then :
5053  $as_echo_n "(cached) " >&6
5054else
5055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056/* end confdefs.h.  */
5057
5058
5059// If the compiler admits that it is not ready for C++11, why torture it?
5060// Hopefully, this will speed up the test.
5061
5062#ifndef __cplusplus
5063
5064#error "This is not a C++ compiler"
5065
5066#elif __cplusplus < 201103L
5067
5068#error "This is not a C++11 compiler"
5069
5070#else
5071
5072namespace cxx11
5073{
5074
5075  namespace test_static_assert
5076  {
5077
5078    template <typename T>
5079    struct check
5080    {
5081      static_assert(sizeof(int) <= sizeof(T), "not big enough");
5082    };
5083
5084  }
5085
5086  namespace test_final_override
5087  {
5088
5089    struct Base
5090    {
5091      virtual void f() {}
5092    };
5093
5094    struct Derived : public Base
5095    {
5096      virtual void f() override {}
5097    };
5098
5099  }
5100
5101  namespace test_double_right_angle_brackets
5102  {
5103
5104    template < typename T >
5105    struct check {};
5106
5107    typedef check<void> single_type;
5108    typedef check<check<void>> double_type;
5109    typedef check<check<check<void>>> triple_type;
5110    typedef check<check<check<check<void>>>> quadruple_type;
5111
5112  }
5113
5114  namespace test_decltype
5115  {
5116
5117    int
5118    f()
5119    {
5120      int a = 1;
5121      decltype(a) b = 2;
5122      return a + b;
5123    }
5124
5125  }
5126
5127  namespace test_type_deduction
5128  {
5129
5130    template < typename T1, typename T2 >
5131    struct is_same
5132    {
5133      static const bool value = false;
5134    };
5135
5136    template < typename T >
5137    struct is_same<T, T>
5138    {
5139      static const bool value = true;
5140    };
5141
5142    template < typename T1, typename T2 >
5143    auto
5144    add(T1 a1, T2 a2) -> decltype(a1 + a2)
5145    {
5146      return a1 + a2;
5147    }
5148
5149    int
5150    test(const int c, volatile int v)
5151    {
5152      static_assert(is_same<int, decltype(0)>::value == true, "");
5153      static_assert(is_same<int, decltype(c)>::value == false, "");
5154      static_assert(is_same<int, decltype(v)>::value == false, "");
5155      auto ac = c;
5156      auto av = v;
5157      auto sumi = ac + av + 'x';
5158      auto sumf = ac + av + 1.0;
5159      static_assert(is_same<int, decltype(ac)>::value == true, "");
5160      static_assert(is_same<int, decltype(av)>::value == true, "");
5161      static_assert(is_same<int, decltype(sumi)>::value == true, "");
5162      static_assert(is_same<int, decltype(sumf)>::value == false, "");
5163      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5164      return (sumf > 0.0) ? sumi : add(c, v);
5165    }
5166
5167  }
5168
5169  namespace test_noexcept
5170  {
5171
5172    int f() { return 0; }
5173    int g() noexcept { return 0; }
5174
5175    static_assert(noexcept(f()) == false, "");
5176    static_assert(noexcept(g()) == true, "");
5177
5178  }
5179
5180  namespace test_constexpr
5181  {
5182
5183    template < typename CharT >
5184    unsigned long constexpr
5185    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5186    {
5187      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5188    }
5189
5190    template < typename CharT >
5191    unsigned long constexpr
5192    strlen_c(const CharT *const s) noexcept
5193    {
5194      return strlen_c_r(s, 0UL);
5195    }
5196
5197    static_assert(strlen_c("") == 0UL, "");
5198    static_assert(strlen_c("1") == 1UL, "");
5199    static_assert(strlen_c("example") == 7UL, "");
5200    static_assert(strlen_c("another\0example") == 7UL, "");
5201
5202  }
5203
5204  namespace test_rvalue_references
5205  {
5206
5207    template < int N >
5208    struct answer
5209    {
5210      static constexpr int value = N;
5211    };
5212
5213    answer<1> f(int&)       { return answer<1>(); }
5214    answer<2> f(const int&) { return answer<2>(); }
5215    answer<3> f(int&&)      { return answer<3>(); }
5216
5217    void
5218    test()
5219    {
5220      int i = 0;
5221      const int c = 0;
5222      static_assert(decltype(f(i))::value == 1, "");
5223      static_assert(decltype(f(c))::value == 2, "");
5224      static_assert(decltype(f(0))::value == 3, "");
5225    }
5226
5227  }
5228
5229  namespace test_uniform_initialization
5230  {
5231
5232    struct test
5233    {
5234      static const int zero {};
5235      static const int one {1};
5236    };
5237
5238    static_assert(test::zero == 0, "");
5239    static_assert(test::one == 1, "");
5240
5241  }
5242
5243  namespace test_lambdas
5244  {
5245
5246    void
5247    test1()
5248    {
5249      auto lambda1 = [](){};
5250      auto lambda2 = lambda1;
5251      lambda1();
5252      lambda2();
5253    }
5254
5255    int
5256    test2()
5257    {
5258      auto a = [](int i, int j){ return i + j; }(1, 2);
5259      auto b = []() -> int { return '0'; }();
5260      auto c = [=](){ return a + b; }();
5261      auto d = [&](){ return c; }();
5262      auto e = [a, &b](int x) mutable {
5263        const auto identity = [](int y){ return y; };
5264        for (auto i = 0; i < a; ++i)
5265          a += b--;
5266        return x + identity(a + b);
5267      }(0);
5268      return a + b + c + d + e;
5269    }
5270
5271    int
5272    test3()
5273    {
5274      const auto nullary = [](){ return 0; };
5275      const auto unary = [](int x){ return x; };
5276      using nullary_t = decltype(nullary);
5277      using unary_t = decltype(unary);
5278      const auto higher1st = [](nullary_t f){ return f(); };
5279      const auto higher2nd = [unary](nullary_t f1){
5280        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5281      };
5282      return higher1st(nullary) + higher2nd(nullary)(unary);
5283    }
5284
5285  }
5286
5287  namespace test_variadic_templates
5288  {
5289
5290    template <int...>
5291    struct sum;
5292
5293    template <int N0, int... N1toN>
5294    struct sum<N0, N1toN...>
5295    {
5296      static constexpr auto value = N0 + sum<N1toN...>::value;
5297    };
5298
5299    template <>
5300    struct sum<>
5301    {
5302      static constexpr auto value = 0;
5303    };
5304
5305    static_assert(sum<>::value == 0, "");
5306    static_assert(sum<1>::value == 1, "");
5307    static_assert(sum<23>::value == 23, "");
5308    static_assert(sum<1, 2>::value == 3, "");
5309    static_assert(sum<5, 5, 11>::value == 21, "");
5310    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5311
5312  }
5313
5314  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5315  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5316  // because of this.
5317  namespace test_template_alias_sfinae
5318  {
5319
5320    struct foo {};
5321
5322    template<typename T>
5323    using member = typename T::member_type;
5324
5325    template<typename T>
5326    void func(...) {}
5327
5328    template<typename T>
5329    void func(member<T>*) {}
5330
5331    void test();
5332
5333    void test() { func<foo>(0); }
5334
5335  }
5336
5337}  // namespace cxx11
5338
5339#endif  // __cplusplus >= 201103L
5340
5341
5342
5343
5344// If the compiler admits that it is not ready for C++14, why torture it?
5345// Hopefully, this will speed up the test.
5346
5347#ifndef __cplusplus
5348
5349#error "This is not a C++ compiler"
5350
5351#elif __cplusplus < 201402L
5352
5353#error "This is not a C++14 compiler"
5354
5355#else
5356
5357namespace cxx14
5358{
5359
5360  namespace test_polymorphic_lambdas
5361  {
5362
5363    int
5364    test()
5365    {
5366      const auto lambda = [](auto&&... args){
5367        const auto istiny = [](auto x){
5368          return (sizeof(x) == 1UL) ? 1 : 0;
5369        };
5370        const int aretiny[] = { istiny(args)... };
5371        return aretiny[0];
5372      };
5373      return lambda(1, 1L, 1.0f, '1');
5374    }
5375
5376  }
5377
5378  namespace test_binary_literals
5379  {
5380
5381    constexpr auto ivii = 0b0000000000101010;
5382    static_assert(ivii == 42, "wrong value");
5383
5384  }
5385
5386  namespace test_generalized_constexpr
5387  {
5388
5389    template < typename CharT >
5390    constexpr unsigned long
5391    strlen_c(const CharT *const s) noexcept
5392    {
5393      auto length = 0UL;
5394      for (auto p = s; *p; ++p)
5395        ++length;
5396      return length;
5397    }
5398
5399    static_assert(strlen_c("") == 0UL, "");
5400    static_assert(strlen_c("x") == 1UL, "");
5401    static_assert(strlen_c("test") == 4UL, "");
5402    static_assert(strlen_c("another\0test") == 7UL, "");
5403
5404  }
5405
5406  namespace test_lambda_init_capture
5407  {
5408
5409    int
5410    test()
5411    {
5412      auto x = 0;
5413      const auto lambda1 = [a = x](int b){ return a + b; };
5414      const auto lambda2 = [a = lambda1(x)](){ return a; };
5415      return lambda2();
5416    }
5417
5418  }
5419
5420  namespace test_digit_seperators
5421  {
5422
5423    constexpr auto ten_million = 100'000'000;
5424    static_assert(ten_million == 100000000, "");
5425
5426  }
5427
5428  namespace test_return_type_deduction
5429  {
5430
5431    auto f(int& x) { return x; }
5432    decltype(auto) g(int& x) { return x; }
5433
5434    template < typename T1, typename T2 >
5435    struct is_same
5436    {
5437      static constexpr auto value = false;
5438    };
5439
5440    template < typename T >
5441    struct is_same<T, T>
5442    {
5443      static constexpr auto value = true;
5444    };
5445
5446    int
5447    test()
5448    {
5449      auto x = 0;
5450      static_assert(is_same<int, decltype(f(x))>::value, "");
5451      static_assert(is_same<int&, decltype(g(x))>::value, "");
5452      return x;
5453    }
5454
5455  }
5456
5457}  // namespace cxx14
5458
5459#endif  // __cplusplus >= 201402L
5460
5461
5462
5463_ACEOF
5464if ac_fn_cxx_try_compile "$LINENO"; then :
5465  ax_cv_cxx_compile_cxx14=yes
5466else
5467  ax_cv_cxx_compile_cxx14=no
5468fi
5469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470fi
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
5472$as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
5473  if test x$ax_cv_cxx_compile_cxx14 = xyes; then
5474    ac_success=yes
5475  fi
5476
5477
5478
5479    if test x$ac_success = xno; then
5480                for switch in -std=c++14 -std=c++0x +std=c++14 "-h std=c++14"; do
5481      cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
5482      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
5483$as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
5484if eval \${$cachevar+:} false; then :
5485  $as_echo_n "(cached) " >&6
5486else
5487  ac_save_CXX="$CXX"
5488         CXX="$CXX $switch"
5489         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490/* end confdefs.h.  */
5491
5492
5493// If the compiler admits that it is not ready for C++11, why torture it?
5494// Hopefully, this will speed up the test.
5495
5496#ifndef __cplusplus
5497
5498#error "This is not a C++ compiler"
5499
5500#elif __cplusplus < 201103L
5501
5502#error "This is not a C++11 compiler"
5503
5504#else
5505
5506namespace cxx11
5507{
5508
5509  namespace test_static_assert
5510  {
5511
5512    template <typename T>
5513    struct check
5514    {
5515      static_assert(sizeof(int) <= sizeof(T), "not big enough");
5516    };
5517
5518  }
5519
5520  namespace test_final_override
5521  {
5522
5523    struct Base
5524    {
5525      virtual void f() {}
5526    };
5527
5528    struct Derived : public Base
5529    {
5530      virtual void f() override {}
5531    };
5532
5533  }
5534
5535  namespace test_double_right_angle_brackets
5536  {
5537
5538    template < typename T >
5539    struct check {};
5540
5541    typedef check<void> single_type;
5542    typedef check<check<void>> double_type;
5543    typedef check<check<check<void>>> triple_type;
5544    typedef check<check<check<check<void>>>> quadruple_type;
5545
5546  }
5547
5548  namespace test_decltype
5549  {
5550
5551    int
5552    f()
5553    {
5554      int a = 1;
5555      decltype(a) b = 2;
5556      return a + b;
5557    }
5558
5559  }
5560
5561  namespace test_type_deduction
5562  {
5563
5564    template < typename T1, typename T2 >
5565    struct is_same
5566    {
5567      static const bool value = false;
5568    };
5569
5570    template < typename T >
5571    struct is_same<T, T>
5572    {
5573      static const bool value = true;
5574    };
5575
5576    template < typename T1, typename T2 >
5577    auto
5578    add(T1 a1, T2 a2) -> decltype(a1 + a2)
5579    {
5580      return a1 + a2;
5581    }
5582
5583    int
5584    test(const int c, volatile int v)
5585    {
5586      static_assert(is_same<int, decltype(0)>::value == true, "");
5587      static_assert(is_same<int, decltype(c)>::value == false, "");
5588      static_assert(is_same<int, decltype(v)>::value == false, "");
5589      auto ac = c;
5590      auto av = v;
5591      auto sumi = ac + av + 'x';
5592      auto sumf = ac + av + 1.0;
5593      static_assert(is_same<int, decltype(ac)>::value == true, "");
5594      static_assert(is_same<int, decltype(av)>::value == true, "");
5595      static_assert(is_same<int, decltype(sumi)>::value == true, "");
5596      static_assert(is_same<int, decltype(sumf)>::value == false, "");
5597      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5598      return (sumf > 0.0) ? sumi : add(c, v);
5599    }
5600
5601  }
5602
5603  namespace test_noexcept
5604  {
5605
5606    int f() { return 0; }
5607    int g() noexcept { return 0; }
5608
5609    static_assert(noexcept(f()) == false, "");
5610    static_assert(noexcept(g()) == true, "");
5611
5612  }
5613
5614  namespace test_constexpr
5615  {
5616
5617    template < typename CharT >
5618    unsigned long constexpr
5619    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5620    {
5621      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5622    }
5623
5624    template < typename CharT >
5625    unsigned long constexpr
5626    strlen_c(const CharT *const s) noexcept
5627    {
5628      return strlen_c_r(s, 0UL);
5629    }
5630
5631    static_assert(strlen_c("") == 0UL, "");
5632    static_assert(strlen_c("1") == 1UL, "");
5633    static_assert(strlen_c("example") == 7UL, "");
5634    static_assert(strlen_c("another\0example") == 7UL, "");
5635
5636  }
5637
5638  namespace test_rvalue_references
5639  {
5640
5641    template < int N >
5642    struct answer
5643    {
5644      static constexpr int value = N;
5645    };
5646
5647    answer<1> f(int&)       { return answer<1>(); }
5648    answer<2> f(const int&) { return answer<2>(); }
5649    answer<3> f(int&&)      { return answer<3>(); }
5650
5651    void
5652    test()
5653    {
5654      int i = 0;
5655      const int c = 0;
5656      static_assert(decltype(f(i))::value == 1, "");
5657      static_assert(decltype(f(c))::value == 2, "");
5658      static_assert(decltype(f(0))::value == 3, "");
5659    }
5660
5661  }
5662
5663  namespace test_uniform_initialization
5664  {
5665
5666    struct test
5667    {
5668      static const int zero {};
5669      static const int one {1};
5670    };
5671
5672    static_assert(test::zero == 0, "");
5673    static_assert(test::one == 1, "");
5674
5675  }
5676
5677  namespace test_lambdas
5678  {
5679
5680    void
5681    test1()
5682    {
5683      auto lambda1 = [](){};
5684      auto lambda2 = lambda1;
5685      lambda1();
5686      lambda2();
5687    }
5688
5689    int
5690    test2()
5691    {
5692      auto a = [](int i, int j){ return i + j; }(1, 2);
5693      auto b = []() -> int { return '0'; }();
5694      auto c = [=](){ return a + b; }();
5695      auto d = [&](){ return c; }();
5696      auto e = [a, &b](int x) mutable {
5697        const auto identity = [](int y){ return y; };
5698        for (auto i = 0; i < a; ++i)
5699          a += b--;
5700        return x + identity(a + b);
5701      }(0);
5702      return a + b + c + d + e;
5703    }
5704
5705    int
5706    test3()
5707    {
5708      const auto nullary = [](){ return 0; };
5709      const auto unary = [](int x){ return x; };
5710      using nullary_t = decltype(nullary);
5711      using unary_t = decltype(unary);
5712      const auto higher1st = [](nullary_t f){ return f(); };
5713      const auto higher2nd = [unary](nullary_t f1){
5714        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5715      };
5716      return higher1st(nullary) + higher2nd(nullary)(unary);
5717    }
5718
5719  }
5720
5721  namespace test_variadic_templates
5722  {
5723
5724    template <int...>
5725    struct sum;
5726
5727    template <int N0, int... N1toN>
5728    struct sum<N0, N1toN...>
5729    {
5730      static constexpr auto value = N0 + sum<N1toN...>::value;
5731    };
5732
5733    template <>
5734    struct sum<>
5735    {
5736      static constexpr auto value = 0;
5737    };
5738
5739    static_assert(sum<>::value == 0, "");
5740    static_assert(sum<1>::value == 1, "");
5741    static_assert(sum<23>::value == 23, "");
5742    static_assert(sum<1, 2>::value == 3, "");
5743    static_assert(sum<5, 5, 11>::value == 21, "");
5744    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5745
5746  }
5747
5748  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5749  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5750  // because of this.
5751  namespace test_template_alias_sfinae
5752  {
5753
5754    struct foo {};
5755
5756    template<typename T>
5757    using member = typename T::member_type;
5758
5759    template<typename T>
5760    void func(...) {}
5761
5762    template<typename T>
5763    void func(member<T>*) {}
5764
5765    void test();
5766
5767    void test() { func<foo>(0); }
5768
5769  }
5770
5771}  // namespace cxx11
5772
5773#endif  // __cplusplus >= 201103L
5774
5775
5776
5777
5778// If the compiler admits that it is not ready for C++14, why torture it?
5779// Hopefully, this will speed up the test.
5780
5781#ifndef __cplusplus
5782
5783#error "This is not a C++ compiler"
5784
5785#elif __cplusplus < 201402L
5786
5787#error "This is not a C++14 compiler"
5788
5789#else
5790
5791namespace cxx14
5792{
5793
5794  namespace test_polymorphic_lambdas
5795  {
5796
5797    int
5798    test()
5799    {
5800      const auto lambda = [](auto&&... args){
5801        const auto istiny = [](auto x){
5802          return (sizeof(x) == 1UL) ? 1 : 0;
5803        };
5804        const int aretiny[] = { istiny(args)... };
5805        return aretiny[0];
5806      };
5807      return lambda(1, 1L, 1.0f, '1');
5808    }
5809
5810  }
5811
5812  namespace test_binary_literals
5813  {
5814
5815    constexpr auto ivii = 0b0000000000101010;
5816    static_assert(ivii == 42, "wrong value");
5817
5818  }
5819
5820  namespace test_generalized_constexpr
5821  {
5822
5823    template < typename CharT >
5824    constexpr unsigned long
5825    strlen_c(const CharT *const s) noexcept
5826    {
5827      auto length = 0UL;
5828      for (auto p = s; *p; ++p)
5829        ++length;
5830      return length;
5831    }
5832
5833    static_assert(strlen_c("") == 0UL, "");
5834    static_assert(strlen_c("x") == 1UL, "");
5835    static_assert(strlen_c("test") == 4UL, "");
5836    static_assert(strlen_c("another\0test") == 7UL, "");
5837
5838  }
5839
5840  namespace test_lambda_init_capture
5841  {
5842
5843    int
5844    test()
5845    {
5846      auto x = 0;
5847      const auto lambda1 = [a = x](int b){ return a + b; };
5848      const auto lambda2 = [a = lambda1(x)](){ return a; };
5849      return lambda2();
5850    }
5851
5852  }
5853
5854  namespace test_digit_seperators
5855  {
5856
5857    constexpr auto ten_million = 100'000'000;
5858    static_assert(ten_million == 100000000, "");
5859
5860  }
5861
5862  namespace test_return_type_deduction
5863  {
5864
5865    auto f(int& x) { return x; }
5866    decltype(auto) g(int& x) { return x; }
5867
5868    template < typename T1, typename T2 >
5869    struct is_same
5870    {
5871      static constexpr auto value = false;
5872    };
5873
5874    template < typename T >
5875    struct is_same<T, T>
5876    {
5877      static constexpr auto value = true;
5878    };
5879
5880    int
5881    test()
5882    {
5883      auto x = 0;
5884      static_assert(is_same<int, decltype(f(x))>::value, "");
5885      static_assert(is_same<int&, decltype(g(x))>::value, "");
5886      return x;
5887    }
5888
5889  }
5890
5891}  // namespace cxx14
5892
5893#endif  // __cplusplus >= 201402L
5894
5895
5896
5897_ACEOF
5898if ac_fn_cxx_try_compile "$LINENO"; then :
5899  eval $cachevar=yes
5900else
5901  eval $cachevar=no
5902fi
5903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904         CXX="$ac_save_CXX"
5905fi
5906eval ac_res=\$$cachevar
5907	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5908$as_echo "$ac_res" >&6; }
5909      if eval test x\$$cachevar = xyes; then
5910        CXX="$CXX $switch"
5911        if test -n "$CXXCPP" ; then
5912          CXXCPP="$CXXCPP $switch"
5913        fi
5914        ac_success=yes
5915        break
5916      fi
5917    done
5918  fi
5919  ac_ext=c
5920ac_cpp='$CPP $CPPFLAGS'
5921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5923ac_compiler_gnu=$ac_cv_c_compiler_gnu
5924
5925  if test x$ax_cxx_compile_cxx14_required = xtrue; then
5926    if test x$ac_success = xno; then
5927      as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
5928    fi
5929  fi
5930  if test x$ac_success = xno; then
5931    HAVE_CXX14=0
5932    { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
5933$as_echo "$as_me: No compiler with C++14 support was found" >&6;}
5934  else
5935    HAVE_CXX14=1
5936
5937$as_echo "#define HAVE_CXX14 1" >>confdefs.h
5938
5939  fi
5940
5941
5942  if test "x${HAVE_CXX14}" = "x1" ; then
5943
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
5945$as_echo_n "checking whether compiler supports -Wall... " >&6; }
5946T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
5947T_APPEND_V=-Wall
5948  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5949  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
5950else
5951  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
5952fi
5953
5954
5955if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
5956  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
5957else
5958  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
5959fi
5960
5961ac_ext=cpp
5962ac_cpp='$CXXCPP $CPPFLAGS'
5963ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5964ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5965ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5966
5967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968/* end confdefs.h.  */
5969
5970
5971int
5972main ()
5973{
5974
5975    return 0;
5976
5977  ;
5978  return 0;
5979}
5980_ACEOF
5981if ac_fn_cxx_try_compile "$LINENO"; then :
5982  je_cv_cxxflags_added=-Wall
5983              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5984$as_echo "yes" >&6; }
5985else
5986  je_cv_cxxflags_added=
5987              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988$as_echo "no" >&6; }
5989              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
5990
5991fi
5992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5993ac_ext=c
5994ac_cpp='$CPP $CPPFLAGS'
5995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5997ac_compiler_gnu=$ac_cv_c_compiler_gnu
5998
5999if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
6000  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
6001else
6002  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
6003fi
6004
6005
6006
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wextra" >&5
6008$as_echo_n "checking whether compiler supports -Wextra... " >&6; }
6009T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
6010T_APPEND_V=-Wextra
6011  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6012  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
6013else
6014  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
6015fi
6016
6017
6018if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
6019  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
6020else
6021  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
6022fi
6023
6024ac_ext=cpp
6025ac_cpp='$CXXCPP $CPPFLAGS'
6026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6029
6030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031/* end confdefs.h.  */
6032
6033
6034int
6035main ()
6036{
6037
6038    return 0;
6039
6040  ;
6041  return 0;
6042}
6043_ACEOF
6044if ac_fn_cxx_try_compile "$LINENO"; then :
6045  je_cv_cxxflags_added=-Wextra
6046              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6047$as_echo "yes" >&6; }
6048else
6049  je_cv_cxxflags_added=
6050              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6051$as_echo "no" >&6; }
6052              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
6053
6054fi
6055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056ac_ext=c
6057ac_cpp='$CPP $CPPFLAGS'
6058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6060ac_compiler_gnu=$ac_cv_c_compiler_gnu
6061
6062if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
6063  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
6064else
6065  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
6066fi
6067
6068
6069
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
6071$as_echo_n "checking whether compiler supports -g3... " >&6; }
6072T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
6073T_APPEND_V=-g3
6074  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6075  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
6076else
6077  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
6078fi
6079
6080
6081if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
6082  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
6083else
6084  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
6085fi
6086
6087ac_ext=cpp
6088ac_cpp='$CXXCPP $CPPFLAGS'
6089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6092
6093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094/* end confdefs.h.  */
6095
6096
6097int
6098main ()
6099{
6100
6101    return 0;
6102
6103  ;
6104  return 0;
6105}
6106_ACEOF
6107if ac_fn_cxx_try_compile "$LINENO"; then :
6108  je_cv_cxxflags_added=-g3
6109              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6110$as_echo "yes" >&6; }
6111else
6112  je_cv_cxxflags_added=
6113              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114$as_echo "no" >&6; }
6115              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
6116
6117fi
6118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119ac_ext=c
6120ac_cpp='$CPP $CPPFLAGS'
6121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6123ac_compiler_gnu=$ac_cv_c_compiler_gnu
6124
6125if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
6126  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
6127else
6128  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
6129fi
6130
6131
6132
6133    SAVED_LIBS="${LIBS}"
6134    T_APPEND_V=-lstdc++
6135  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6136  LIBS="${LIBS}${T_APPEND_V}"
6137else
6138  LIBS="${LIBS} ${T_APPEND_V}"
6139fi
6140
6141
6142
6143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libstdc++ linkage is compilable" >&5
6144$as_echo_n "checking whether libstdc++ linkage is compilable... " >&6; }
6145if ${je_cv_libstdcxx+:} false; then :
6146  $as_echo_n "(cached) " >&6
6147else
6148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149/* end confdefs.h.  */
6150
6151#include <stdlib.h>
6152
6153int
6154main ()
6155{
6156
6157	int *arr = (int *)malloc(sizeof(int) * 42);
6158	if (arr == NULL)
6159		return 1;
6160
6161  ;
6162  return 0;
6163}
6164_ACEOF
6165if ac_fn_c_try_link "$LINENO"; then :
6166  je_cv_libstdcxx=yes
6167else
6168  je_cv_libstdcxx=no
6169fi
6170rm -f core conftest.err conftest.$ac_objext \
6171    conftest$ac_exeext conftest.$ac_ext
6172fi
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_libstdcxx" >&5
6174$as_echo "$je_cv_libstdcxx" >&6; }
6175
6176    if test "x${je_cv_libstdcxx}" = "xno" ; then
6177      LIBS="${SAVED_LIBS}"
6178    fi
6179  else
6180    enable_cxx="0"
6181  fi
6182fi
6183
6184
6185
6186
6187
6188
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6190$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6191if ${ac_cv_path_GREP+:} false; then :
6192  $as_echo_n "(cached) " >&6
6193else
6194  if test -z "$GREP"; then
6195  ac_path_GREP_found=false
6196  # Loop through the user's path and test for each of PROGNAME-LIST
6197  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6199do
6200  IFS=$as_save_IFS
6201  test -z "$as_dir" && as_dir=.
6202    for ac_prog in grep ggrep; do
6203    for ac_exec_ext in '' $ac_executable_extensions; do
6204      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6205      as_fn_executable_p "$ac_path_GREP" || continue
6206# Check for GNU ac_path_GREP and select it if it is found.
6207  # Check for GNU $ac_path_GREP
6208case `"$ac_path_GREP" --version 2>&1` in
6209*GNU*)
6210  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6211*)
6212  ac_count=0
6213  $as_echo_n 0123456789 >"conftest.in"
6214  while :
6215  do
6216    cat "conftest.in" "conftest.in" >"conftest.tmp"
6217    mv "conftest.tmp" "conftest.in"
6218    cp "conftest.in" "conftest.nl"
6219    $as_echo 'GREP' >> "conftest.nl"
6220    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6221    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6222    as_fn_arith $ac_count + 1 && ac_count=$as_val
6223    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6224      # Best one so far, save it but keep looking for a better one
6225      ac_cv_path_GREP="$ac_path_GREP"
6226      ac_path_GREP_max=$ac_count
6227    fi
6228    # 10*(2^10) chars as input seems more than enough
6229    test $ac_count -gt 10 && break
6230  done
6231  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6232esac
6233
6234      $ac_path_GREP_found && break 3
6235    done
6236  done
6237  done
6238IFS=$as_save_IFS
6239  if test -z "$ac_cv_path_GREP"; then
6240    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6241  fi
6242else
6243  ac_cv_path_GREP=$GREP
6244fi
6245
6246fi
6247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6248$as_echo "$ac_cv_path_GREP" >&6; }
6249 GREP="$ac_cv_path_GREP"
6250
6251
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6253$as_echo_n "checking for egrep... " >&6; }
6254if ${ac_cv_path_EGREP+:} false; then :
6255  $as_echo_n "(cached) " >&6
6256else
6257  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6258   then ac_cv_path_EGREP="$GREP -E"
6259   else
6260     if test -z "$EGREP"; then
6261  ac_path_EGREP_found=false
6262  # Loop through the user's path and test for each of PROGNAME-LIST
6263  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6265do
6266  IFS=$as_save_IFS
6267  test -z "$as_dir" && as_dir=.
6268    for ac_prog in egrep; do
6269    for ac_exec_ext in '' $ac_executable_extensions; do
6270      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6271      as_fn_executable_p "$ac_path_EGREP" || continue
6272# Check for GNU ac_path_EGREP and select it if it is found.
6273  # Check for GNU $ac_path_EGREP
6274case `"$ac_path_EGREP" --version 2>&1` in
6275*GNU*)
6276  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6277*)
6278  ac_count=0
6279  $as_echo_n 0123456789 >"conftest.in"
6280  while :
6281  do
6282    cat "conftest.in" "conftest.in" >"conftest.tmp"
6283    mv "conftest.tmp" "conftest.in"
6284    cp "conftest.in" "conftest.nl"
6285    $as_echo 'EGREP' >> "conftest.nl"
6286    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6287    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6288    as_fn_arith $ac_count + 1 && ac_count=$as_val
6289    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6290      # Best one so far, save it but keep looking for a better one
6291      ac_cv_path_EGREP="$ac_path_EGREP"
6292      ac_path_EGREP_max=$ac_count
6293    fi
6294    # 10*(2^10) chars as input seems more than enough
6295    test $ac_count -gt 10 && break
6296  done
6297  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6298esac
6299
6300      $ac_path_EGREP_found && break 3
6301    done
6302  done
6303  done
6304IFS=$as_save_IFS
6305  if test -z "$ac_cv_path_EGREP"; then
6306    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6307  fi
6308else
6309  ac_cv_path_EGREP=$EGREP
6310fi
6311
6312   fi
6313fi
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6315$as_echo "$ac_cv_path_EGREP" >&6; }
6316 EGREP="$ac_cv_path_EGREP"
6317
6318
6319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6320$as_echo_n "checking for ANSI C header files... " >&6; }
6321if ${ac_cv_header_stdc+:} false; then :
6322  $as_echo_n "(cached) " >&6
6323else
6324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325/* end confdefs.h.  */
6326#include <stdlib.h>
6327#include <stdarg.h>
6328#include <string.h>
6329#include <float.h>
6330
6331int
6332main ()
6333{
6334
6335  ;
6336  return 0;
6337}
6338_ACEOF
6339if ac_fn_c_try_compile "$LINENO"; then :
6340  ac_cv_header_stdc=yes
6341else
6342  ac_cv_header_stdc=no
6343fi
6344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6345
6346if test $ac_cv_header_stdc = yes; then
6347  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349/* end confdefs.h.  */
6350#include <string.h>
6351
6352_ACEOF
6353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6354  $EGREP "memchr" >/dev/null 2>&1; then :
6355
6356else
6357  ac_cv_header_stdc=no
6358fi
6359rm -f conftest*
6360
6361fi
6362
6363if test $ac_cv_header_stdc = yes; then
6364  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366/* end confdefs.h.  */
6367#include <stdlib.h>
6368
6369_ACEOF
6370if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6371  $EGREP "free" >/dev/null 2>&1; then :
6372
6373else
6374  ac_cv_header_stdc=no
6375fi
6376rm -f conftest*
6377
6378fi
6379
6380if test $ac_cv_header_stdc = yes; then
6381  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6382  if test "$cross_compiling" = yes; then :
6383  :
6384else
6385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386/* end confdefs.h.  */
6387#include <ctype.h>
6388#include <stdlib.h>
6389#if ((' ' & 0x0FF) == 0x020)
6390# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6391# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6392#else
6393# define ISLOWER(c) \
6394		   (('a' <= (c) && (c) <= 'i') \
6395		     || ('j' <= (c) && (c) <= 'r') \
6396		     || ('s' <= (c) && (c) <= 'z'))
6397# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6398#endif
6399
6400#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6401int
6402main ()
6403{
6404  int i;
6405  for (i = 0; i < 256; i++)
6406    if (XOR (islower (i), ISLOWER (i))
6407	|| toupper (i) != TOUPPER (i))
6408      return 2;
6409  return 0;
6410}
6411_ACEOF
6412if ac_fn_c_try_run "$LINENO"; then :
6413
6414else
6415  ac_cv_header_stdc=no
6416fi
6417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6418  conftest.$ac_objext conftest.beam conftest.$ac_ext
6419fi
6420
6421fi
6422fi
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6424$as_echo "$ac_cv_header_stdc" >&6; }
6425if test $ac_cv_header_stdc = yes; then
6426
6427$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6428
6429fi
6430
6431# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6432for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6433		  inttypes.h stdint.h unistd.h
6434do :
6435  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6436ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6437"
6438if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6439  cat >>confdefs.h <<_ACEOF
6440#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6441_ACEOF
6442
6443fi
6444
6445done
6446
6447
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6449$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6450if ${ac_cv_c_bigendian+:} false; then :
6451  $as_echo_n "(cached) " >&6
6452else
6453  ac_cv_c_bigendian=unknown
6454    # See if we're dealing with a universal compiler.
6455    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456/* end confdefs.h.  */
6457#ifndef __APPLE_CC__
6458	       not a universal capable compiler
6459	     #endif
6460	     typedef int dummy;
6461
6462_ACEOF
6463if ac_fn_c_try_compile "$LINENO"; then :
6464
6465	# Check for potential -arch flags.  It is not universal unless
6466	# there are at least two -arch flags with different values.
6467	ac_arch=
6468	ac_prev=
6469	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6470	 if test -n "$ac_prev"; then
6471	   case $ac_word in
6472	     i?86 | x86_64 | ppc | ppc64)
6473	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6474		 ac_arch=$ac_word
6475	       else
6476		 ac_cv_c_bigendian=universal
6477		 break
6478	       fi
6479	       ;;
6480	   esac
6481	   ac_prev=
6482	 elif test "x$ac_word" = "x-arch"; then
6483	   ac_prev=arch
6484	 fi
6485       done
6486fi
6487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488    if test $ac_cv_c_bigendian = unknown; then
6489      # See if sys/param.h defines the BYTE_ORDER macro.
6490      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491/* end confdefs.h.  */
6492#include <sys/types.h>
6493	     #include <sys/param.h>
6494
6495int
6496main ()
6497{
6498#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6499		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6500		     && LITTLE_ENDIAN)
6501	      bogus endian macros
6502	     #endif
6503
6504  ;
6505  return 0;
6506}
6507_ACEOF
6508if ac_fn_c_try_compile "$LINENO"; then :
6509  # It does; now see whether it defined to BIG_ENDIAN or not.
6510	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511/* end confdefs.h.  */
6512#include <sys/types.h>
6513		#include <sys/param.h>
6514
6515int
6516main ()
6517{
6518#if BYTE_ORDER != BIG_ENDIAN
6519		 not big endian
6520		#endif
6521
6522  ;
6523  return 0;
6524}
6525_ACEOF
6526if ac_fn_c_try_compile "$LINENO"; then :
6527  ac_cv_c_bigendian=yes
6528else
6529  ac_cv_c_bigendian=no
6530fi
6531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532fi
6533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534    fi
6535    if test $ac_cv_c_bigendian = unknown; then
6536      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6537      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538/* end confdefs.h.  */
6539#include <limits.h>
6540
6541int
6542main ()
6543{
6544#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6545	      bogus endian macros
6546	     #endif
6547
6548  ;
6549  return 0;
6550}
6551_ACEOF
6552if ac_fn_c_try_compile "$LINENO"; then :
6553  # It does; now see whether it defined to _BIG_ENDIAN or not.
6554	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555/* end confdefs.h.  */
6556#include <limits.h>
6557
6558int
6559main ()
6560{
6561#ifndef _BIG_ENDIAN
6562		 not big endian
6563		#endif
6564
6565  ;
6566  return 0;
6567}
6568_ACEOF
6569if ac_fn_c_try_compile "$LINENO"; then :
6570  ac_cv_c_bigendian=yes
6571else
6572  ac_cv_c_bigendian=no
6573fi
6574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575fi
6576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577    fi
6578    if test $ac_cv_c_bigendian = unknown; then
6579      # Compile a test program.
6580      if test "$cross_compiling" = yes; then :
6581  # Try to guess by grepping values from an object file.
6582	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583/* end confdefs.h.  */
6584short int ascii_mm[] =
6585		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6586		short int ascii_ii[] =
6587		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6588		int use_ascii (int i) {
6589		  return ascii_mm[i] + ascii_ii[i];
6590		}
6591		short int ebcdic_ii[] =
6592		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6593		short int ebcdic_mm[] =
6594		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6595		int use_ebcdic (int i) {
6596		  return ebcdic_mm[i] + ebcdic_ii[i];
6597		}
6598		extern int foo;
6599
6600int
6601main ()
6602{
6603return use_ascii (foo) == use_ebcdic (foo);
6604  ;
6605  return 0;
6606}
6607_ACEOF
6608if ac_fn_c_try_compile "$LINENO"; then :
6609  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6610	      ac_cv_c_bigendian=yes
6611	    fi
6612	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6613	      if test "$ac_cv_c_bigendian" = unknown; then
6614		ac_cv_c_bigendian=no
6615	      else
6616		# finding both strings is unlikely to happen, but who knows?
6617		ac_cv_c_bigendian=unknown
6618	      fi
6619	    fi
6620fi
6621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622else
6623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624/* end confdefs.h.  */
6625$ac_includes_default
6626int
6627main ()
6628{
6629
6630	     /* Are we little or big endian?  From Harbison&Steele.  */
6631	     union
6632	     {
6633	       long int l;
6634	       char c[sizeof (long int)];
6635	     } u;
6636	     u.l = 1;
6637	     return u.c[sizeof (long int) - 1] == 1;
6638
6639  ;
6640  return 0;
6641}
6642_ACEOF
6643if ac_fn_c_try_run "$LINENO"; then :
6644  ac_cv_c_bigendian=no
6645else
6646  ac_cv_c_bigendian=yes
6647fi
6648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6649  conftest.$ac_objext conftest.beam conftest.$ac_ext
6650fi
6651
6652    fi
6653fi
6654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6655$as_echo "$ac_cv_c_bigendian" >&6; }
6656 case $ac_cv_c_bigendian in #(
6657   yes)
6658     ac_cv_big_endian=1;; #(
6659   no)
6660     ac_cv_big_endian=0 ;; #(
6661   universal)
6662
6663$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6664
6665     ;; #(
6666   *)
6667     as_fn_error $? "unknown endianness
6668 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6669 esac
6670
6671if test "x${ac_cv_big_endian}" = "x1" ; then
6672  cat >>confdefs.h <<_ACEOF
6673#define JEMALLOC_BIG_ENDIAN
6674_ACEOF
6675
6676fi
6677
6678if test "x${je_cv_msvc}" = "xyes" -a "x${ac_cv_header_inttypes_h}" = "xno"; then
6679  T_APPEND_V=-I${srcdir}/include/msvc_compat/C99
6680  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6681  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
6682else
6683  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
6684fi
6685
6686
6687fi
6688
6689if test "x${je_cv_msvc}" = "xyes" ; then
6690  LG_SIZEOF_PTR=LG_SIZEOF_PTR_WIN
6691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&5
6692$as_echo "Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&6; }
6693else
6694  # The cast to long int works around a bug in the HP C Compiler
6695# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6696# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6697# This bug is HP SR number 8606223364.
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6699$as_echo_n "checking size of void *... " >&6; }
6700if ${ac_cv_sizeof_void_p+:} false; then :
6701  $as_echo_n "(cached) " >&6
6702else
6703  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
6704
6705else
6706  if test "$ac_cv_type_void_p" = yes; then
6707     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6709as_fn_error 77 "cannot compute sizeof (void *)
6710See \`config.log' for more details" "$LINENO" 5; }
6711   else
6712     ac_cv_sizeof_void_p=0
6713   fi
6714fi
6715
6716fi
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6718$as_echo "$ac_cv_sizeof_void_p" >&6; }
6719
6720
6721
6722cat >>confdefs.h <<_ACEOF
6723#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6724_ACEOF
6725
6726
6727  if test "x${ac_cv_sizeof_void_p}" = "x8" ; then
6728    LG_SIZEOF_PTR=3
6729  elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then
6730    LG_SIZEOF_PTR=2
6731  else
6732    as_fn_error $? "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5
6733  fi
6734fi
6735cat >>confdefs.h <<_ACEOF
6736#define LG_SIZEOF_PTR $LG_SIZEOF_PTR
6737_ACEOF
6738
6739
6740# The cast to long int works around a bug in the HP C Compiler
6741# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6742# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6743# This bug is HP SR number 8606223364.
6744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6745$as_echo_n "checking size of int... " >&6; }
6746if ${ac_cv_sizeof_int+:} false; then :
6747  $as_echo_n "(cached) " >&6
6748else
6749  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
6750
6751else
6752  if test "$ac_cv_type_int" = yes; then
6753     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6755as_fn_error 77 "cannot compute sizeof (int)
6756See \`config.log' for more details" "$LINENO" 5; }
6757   else
6758     ac_cv_sizeof_int=0
6759   fi
6760fi
6761
6762fi
6763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6764$as_echo "$ac_cv_sizeof_int" >&6; }
6765
6766
6767
6768cat >>confdefs.h <<_ACEOF
6769#define SIZEOF_INT $ac_cv_sizeof_int
6770_ACEOF
6771
6772
6773if test "x${ac_cv_sizeof_int}" = "x8" ; then
6774  LG_SIZEOF_INT=3
6775elif test "x${ac_cv_sizeof_int}" = "x4" ; then
6776  LG_SIZEOF_INT=2
6777else
6778  as_fn_error $? "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5
6779fi
6780cat >>confdefs.h <<_ACEOF
6781#define LG_SIZEOF_INT $LG_SIZEOF_INT
6782_ACEOF
6783
6784
6785# The cast to long int works around a bug in the HP C Compiler
6786# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6787# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6788# This bug is HP SR number 8606223364.
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6790$as_echo_n "checking size of long... " >&6; }
6791if ${ac_cv_sizeof_long+:} false; then :
6792  $as_echo_n "(cached) " >&6
6793else
6794  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6795
6796else
6797  if test "$ac_cv_type_long" = yes; then
6798     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6800as_fn_error 77 "cannot compute sizeof (long)
6801See \`config.log' for more details" "$LINENO" 5; }
6802   else
6803     ac_cv_sizeof_long=0
6804   fi
6805fi
6806
6807fi
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6809$as_echo "$ac_cv_sizeof_long" >&6; }
6810
6811
6812
6813cat >>confdefs.h <<_ACEOF
6814#define SIZEOF_LONG $ac_cv_sizeof_long
6815_ACEOF
6816
6817
6818if test "x${ac_cv_sizeof_long}" = "x8" ; then
6819  LG_SIZEOF_LONG=3
6820elif test "x${ac_cv_sizeof_long}" = "x4" ; then
6821  LG_SIZEOF_LONG=2
6822else
6823  as_fn_error $? "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5
6824fi
6825cat >>confdefs.h <<_ACEOF
6826#define LG_SIZEOF_LONG $LG_SIZEOF_LONG
6827_ACEOF
6828
6829
6830# The cast to long int works around a bug in the HP C Compiler
6831# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6832# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6833# This bug is HP SR number 8606223364.
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6835$as_echo_n "checking size of long long... " >&6; }
6836if ${ac_cv_sizeof_long_long+:} false; then :
6837  $as_echo_n "(cached) " >&6
6838else
6839  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
6840
6841else
6842  if test "$ac_cv_type_long_long" = yes; then
6843     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6845as_fn_error 77 "cannot compute sizeof (long long)
6846See \`config.log' for more details" "$LINENO" 5; }
6847   else
6848     ac_cv_sizeof_long_long=0
6849   fi
6850fi
6851
6852fi
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6854$as_echo "$ac_cv_sizeof_long_long" >&6; }
6855
6856
6857
6858cat >>confdefs.h <<_ACEOF
6859#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6860_ACEOF
6861
6862
6863if test "x${ac_cv_sizeof_long_long}" = "x8" ; then
6864  LG_SIZEOF_LONG_LONG=3
6865elif test "x${ac_cv_sizeof_long_long}" = "x4" ; then
6866  LG_SIZEOF_LONG_LONG=2
6867else
6868  as_fn_error $? "Unsupported long long size: ${ac_cv_sizeof_long_long}" "$LINENO" 5
6869fi
6870cat >>confdefs.h <<_ACEOF
6871#define LG_SIZEOF_LONG_LONG $LG_SIZEOF_LONG_LONG
6872_ACEOF
6873
6874
6875# The cast to long int works around a bug in the HP C Compiler
6876# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6877# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6878# This bug is HP SR number 8606223364.
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
6880$as_echo_n "checking size of intmax_t... " >&6; }
6881if ${ac_cv_sizeof_intmax_t+:} false; then :
6882  $as_echo_n "(cached) " >&6
6883else
6884  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t"        "$ac_includes_default"; then :
6885
6886else
6887  if test "$ac_cv_type_intmax_t" = yes; then
6888     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6890as_fn_error 77 "cannot compute sizeof (intmax_t)
6891See \`config.log' for more details" "$LINENO" 5; }
6892   else
6893     ac_cv_sizeof_intmax_t=0
6894   fi
6895fi
6896
6897fi
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
6899$as_echo "$ac_cv_sizeof_intmax_t" >&6; }
6900
6901
6902
6903cat >>confdefs.h <<_ACEOF
6904#define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
6905_ACEOF
6906
6907
6908if test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then
6909  LG_SIZEOF_INTMAX_T=4
6910elif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then
6911  LG_SIZEOF_INTMAX_T=3
6912elif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then
6913  LG_SIZEOF_INTMAX_T=2
6914else
6915  as_fn_error $? "Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5
6916fi
6917cat >>confdefs.h <<_ACEOF
6918#define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T
6919_ACEOF
6920
6921
6922# Make sure we can run config.sub.
6923$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6924  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6925
6926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6927$as_echo_n "checking build system type... " >&6; }
6928if ${ac_cv_build+:} false; then :
6929  $as_echo_n "(cached) " >&6
6930else
6931  ac_build_alias=$build_alias
6932test "x$ac_build_alias" = x &&
6933  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6934test "x$ac_build_alias" = x &&
6935  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6936ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6937  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6938
6939fi
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6941$as_echo "$ac_cv_build" >&6; }
6942case $ac_cv_build in
6943*-*-*) ;;
6944*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6945esac
6946build=$ac_cv_build
6947ac_save_IFS=$IFS; IFS='-'
6948set x $ac_cv_build
6949shift
6950build_cpu=$1
6951build_vendor=$2
6952shift; shift
6953# Remember, the first character of IFS is used to create $*,
6954# except with old shells:
6955build_os=$*
6956IFS=$ac_save_IFS
6957case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6958
6959
6960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6961$as_echo_n "checking host system type... " >&6; }
6962if ${ac_cv_host+:} false; then :
6963  $as_echo_n "(cached) " >&6
6964else
6965  if test "x$host_alias" = x; then
6966  ac_cv_host=$ac_cv_build
6967else
6968  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6969    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6970fi
6971
6972fi
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6974$as_echo "$ac_cv_host" >&6; }
6975case $ac_cv_host in
6976*-*-*) ;;
6977*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6978esac
6979host=$ac_cv_host
6980ac_save_IFS=$IFS; IFS='-'
6981set x $ac_cv_host
6982shift
6983host_cpu=$1
6984host_vendor=$2
6985shift; shift
6986# Remember, the first character of IFS is used to create $*,
6987# except with old shells:
6988host_os=$*
6989IFS=$ac_save_IFS
6990case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6991
6992
6993CPU_SPINWAIT=""
6994case "${host_cpu}" in
6995  i686|x86_64)
6996	HAVE_CPU_SPINWAIT=1
6997	if test "x${je_cv_msvc}" = "xyes" ; then
6998	    if ${je_cv_pause_msvc+:} false; then :
6999  $as_echo_n "(cached) " >&6
7000else
7001
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction MSVC is compilable" >&5
7003$as_echo_n "checking whether pause instruction MSVC is compilable... " >&6; }
7004if ${je_cv_pause_msvc+:} false; then :
7005  $as_echo_n "(cached) " >&6
7006else
7007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008/* end confdefs.h.  */
7009
7010int
7011main ()
7012{
7013_mm_pause(); return 0;
7014  ;
7015  return 0;
7016}
7017_ACEOF
7018if ac_fn_c_try_link "$LINENO"; then :
7019  je_cv_pause_msvc=yes
7020else
7021  je_cv_pause_msvc=no
7022fi
7023rm -f core conftest.err conftest.$ac_objext \
7024    conftest$ac_exeext conftest.$ac_ext
7025fi
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause_msvc" >&5
7027$as_echo "$je_cv_pause_msvc" >&6; }
7028
7029fi
7030
7031	    if test "x${je_cv_pause_msvc}" = "xyes" ; then
7032		CPU_SPINWAIT='_mm_pause()'
7033	    fi
7034	else
7035	    if ${je_cv_pause+:} false; then :
7036  $as_echo_n "(cached) " >&6
7037else
7038
7039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction is compilable" >&5
7040$as_echo_n "checking whether pause instruction is compilable... " >&6; }
7041if ${je_cv_pause+:} false; then :
7042  $as_echo_n "(cached) " >&6
7043else
7044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045/* end confdefs.h.  */
7046
7047int
7048main ()
7049{
7050__asm__ volatile("pause"); return 0;
7051  ;
7052  return 0;
7053}
7054_ACEOF
7055if ac_fn_c_try_link "$LINENO"; then :
7056  je_cv_pause=yes
7057else
7058  je_cv_pause=no
7059fi
7060rm -f core conftest.err conftest.$ac_objext \
7061    conftest$ac_exeext conftest.$ac_ext
7062fi
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause" >&5
7064$as_echo "$je_cv_pause" >&6; }
7065
7066fi
7067
7068	    if test "x${je_cv_pause}" = "xyes" ; then
7069		CPU_SPINWAIT='__asm__ volatile("pause")'
7070	    fi
7071	fi
7072	;;
7073  *)
7074	HAVE_CPU_SPINWAIT=0
7075	;;
7076esac
7077cat >>confdefs.h <<_ACEOF
7078#define HAVE_CPU_SPINWAIT $HAVE_CPU_SPINWAIT
7079_ACEOF
7080
7081cat >>confdefs.h <<_ACEOF
7082#define CPU_SPINWAIT $CPU_SPINWAIT
7083_ACEOF
7084
7085
7086
7087# Check whether --with-lg_vaddr was given.
7088if test "${with_lg_vaddr+set}" = set; then :
7089  withval=$with_lg_vaddr; LG_VADDR="$with_lg_vaddr"
7090else
7091  LG_VADDR="detect"
7092fi
7093
7094
7095case "${host_cpu}" in
7096  aarch64)
7097    if test "x$LG_VADDR" = "xdetect"; then
7098      { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
7099$as_echo_n "checking number of significant virtual address bits... " >&6; }
7100      if test "x${LG_SIZEOF_PTR}" = "x2" ; then
7101        #aarch64 ILP32
7102        LG_VADDR=32
7103      else
7104        #aarch64 LP64
7105        LG_VADDR=48
7106      fi
7107      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
7108$as_echo "$LG_VADDR" >&6; }
7109    fi
7110    ;;
7111  x86_64)
7112    if test "x$LG_VADDR" = "xdetect"; then
7113      { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
7114$as_echo_n "checking number of significant virtual address bits... " >&6; }
7115if ${je_cv_lg_vaddr+:} false; then :
7116  $as_echo_n "(cached) " >&6
7117else
7118  if test "$cross_compiling" = yes; then :
7119  je_cv_lg_vaddr=57
7120else
7121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122/* end confdefs.h.  */
7123
7124#include <stdio.h>
7125#ifdef _WIN32
7126#include <limits.h>
7127#include <intrin.h>
7128typedef unsigned __int32 uint32_t;
7129#else
7130#include <stdint.h>
7131#endif
7132
7133int
7134main ()
7135{
7136
7137	uint32_t r[4];
7138	uint32_t eax_in = 0x80000008U;
7139#ifdef _WIN32
7140	__cpuid((int *)r, (int)eax_in);
7141#else
7142	asm volatile ("cpuid"
7143	    : "=a" (r[0]), "=b" (r[1]), "=c" (r[2]), "=d" (r[3])
7144	    : "a" (eax_in), "c" (0)
7145	);
7146#endif
7147	uint32_t eax_out = r[0];
7148	uint32_t vaddr = ((eax_out & 0x0000ff00U) >> 8);
7149	FILE *f = fopen("conftest.out", "w");
7150	if (f == NULL) {
7151		return 1;
7152	}
7153	if (vaddr > (sizeof(void *) << 3)) {
7154		vaddr = sizeof(void *) << 3;
7155	}
7156	fprintf(f, "%u", vaddr);
7157	fclose(f);
7158	return 0;
7159
7160  ;
7161  return 0;
7162}
7163_ACEOF
7164if ac_fn_c_try_run "$LINENO"; then :
7165  je_cv_lg_vaddr=`cat conftest.out`
7166else
7167  je_cv_lg_vaddr=error
7168fi
7169rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7170  conftest.$ac_objext conftest.beam conftest.$ac_ext
7171fi
7172
7173fi
7174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_vaddr" >&5
7175$as_echo "$je_cv_lg_vaddr" >&6; }
7176      if test "x${je_cv_lg_vaddr}" != "x" ; then
7177        LG_VADDR="${je_cv_lg_vaddr}"
7178      fi
7179      if test "x${LG_VADDR}" != "xerror" ; then
7180        cat >>confdefs.h <<_ACEOF
7181#define LG_VADDR $LG_VADDR
7182_ACEOF
7183
7184      else
7185        as_fn_error $? "cannot determine number of significant virtual address bits" "$LINENO" 5
7186      fi
7187    fi
7188    ;;
7189  *)
7190    if test "x$LG_VADDR" = "xdetect"; then
7191      { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
7192$as_echo_n "checking number of significant virtual address bits... " >&6; }
7193      if test "x${LG_SIZEOF_PTR}" = "x3" ; then
7194        LG_VADDR=64
7195      elif test "x${LG_SIZEOF_PTR}" = "x2" ; then
7196        LG_VADDR=32
7197      elif test "x${LG_SIZEOF_PTR}" = "xLG_SIZEOF_PTR_WIN" ; then
7198        LG_VADDR="(1U << (LG_SIZEOF_PTR_WIN+3))"
7199      else
7200        as_fn_error $? "Unsupported lg(pointer size): ${LG_SIZEOF_PTR}" "$LINENO" 5
7201      fi
7202      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
7203$as_echo "$LG_VADDR" >&6; }
7204    fi
7205    ;;
7206esac
7207cat >>confdefs.h <<_ACEOF
7208#define LG_VADDR $LG_VADDR
7209_ACEOF
7210
7211
7212LD_PRELOAD_VAR="LD_PRELOAD"
7213so="so"
7214importlib="${so}"
7215o="$ac_objext"
7216a="a"
7217exe="$ac_exeext"
7218libprefix="lib"
7219link_whole_archive="0"
7220DSO_LDFLAGS='-shared -Wl,-soname,$(@F)'
7221RPATH='-Wl,-rpath,$(1)'
7222SOREV="${so}.${rev}"
7223PIC_CFLAGS='-fPIC -DPIC'
7224CTARGET='-o $@'
7225LDTARGET='-o $@'
7226TEST_LD_MODE=
7227EXTRA_LDFLAGS=
7228ARFLAGS='crus'
7229AROUT=' $@'
7230CC_MM=1
7231
7232if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
7233  TEST_LD_MODE='-dynamic'
7234fi
7235
7236if test "x${je_cv_cray}" = "xyes" ; then
7237  CC_MM=
7238fi
7239
7240
7241
7242
7243if test -n "$ac_tool_prefix"; then
7244  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7245set dummy ${ac_tool_prefix}ar; ac_word=$2
7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247$as_echo_n "checking for $ac_word... " >&6; }
7248if ${ac_cv_prog_AR+:} false; then :
7249  $as_echo_n "(cached) " >&6
7250else
7251  if test -n "$AR"; then
7252  ac_cv_prog_AR="$AR" # Let the user override the test.
7253else
7254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH
7256do
7257  IFS=$as_save_IFS
7258  test -z "$as_dir" && as_dir=.
7259    for ac_exec_ext in '' $ac_executable_extensions; do
7260  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7261    ac_cv_prog_AR="${ac_tool_prefix}ar"
7262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263    break 2
7264  fi
7265done
7266  done
7267IFS=$as_save_IFS
7268
7269fi
7270fi
7271AR=$ac_cv_prog_AR
7272if test -n "$AR"; then
7273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7274$as_echo "$AR" >&6; }
7275else
7276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277$as_echo "no" >&6; }
7278fi
7279
7280
7281fi
7282if test -z "$ac_cv_prog_AR"; then
7283  ac_ct_AR=$AR
7284  # Extract the first word of "ar", so it can be a program name with args.
7285set dummy ar; ac_word=$2
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287$as_echo_n "checking for $ac_word... " >&6; }
7288if ${ac_cv_prog_ac_ct_AR+:} false; then :
7289  $as_echo_n "(cached) " >&6
7290else
7291  if test -n "$ac_ct_AR"; then
7292  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7293else
7294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295for as_dir in $PATH
7296do
7297  IFS=$as_save_IFS
7298  test -z "$as_dir" && as_dir=.
7299    for ac_exec_ext in '' $ac_executable_extensions; do
7300  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7301    ac_cv_prog_ac_ct_AR="ar"
7302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7303    break 2
7304  fi
7305done
7306  done
7307IFS=$as_save_IFS
7308
7309fi
7310fi
7311ac_ct_AR=$ac_cv_prog_ac_ct_AR
7312if test -n "$ac_ct_AR"; then
7313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7314$as_echo "$ac_ct_AR" >&6; }
7315else
7316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317$as_echo "no" >&6; }
7318fi
7319
7320  if test "x$ac_ct_AR" = x; then
7321    AR=":"
7322  else
7323    case $cross_compiling:$ac_tool_warned in
7324yes:)
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7327ac_tool_warned=yes ;;
7328esac
7329    AR=$ac_ct_AR
7330  fi
7331else
7332  AR="$ac_cv_prog_AR"
7333fi
7334
7335
7336
7337
7338
7339if test -n "$ac_tool_prefix"; then
7340  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
7341set dummy ${ac_tool_prefix}nm; ac_word=$2
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343$as_echo_n "checking for $ac_word... " >&6; }
7344if ${ac_cv_prog_NM+:} false; then :
7345  $as_echo_n "(cached) " >&6
7346else
7347  if test -n "$NM"; then
7348  ac_cv_prog_NM="$NM" # Let the user override the test.
7349else
7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353  IFS=$as_save_IFS
7354  test -z "$as_dir" && as_dir=.
7355    for ac_exec_ext in '' $ac_executable_extensions; do
7356  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357    ac_cv_prog_NM="${ac_tool_prefix}nm"
7358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359    break 2
7360  fi
7361done
7362  done
7363IFS=$as_save_IFS
7364
7365fi
7366fi
7367NM=$ac_cv_prog_NM
7368if test -n "$NM"; then
7369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7370$as_echo "$NM" >&6; }
7371else
7372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373$as_echo "no" >&6; }
7374fi
7375
7376
7377fi
7378if test -z "$ac_cv_prog_NM"; then
7379  ac_ct_NM=$NM
7380  # Extract the first word of "nm", so it can be a program name with args.
7381set dummy nm; ac_word=$2
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383$as_echo_n "checking for $ac_word... " >&6; }
7384if ${ac_cv_prog_ac_ct_NM+:} false; then :
7385  $as_echo_n "(cached) " >&6
7386else
7387  if test -n "$ac_ct_NM"; then
7388  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
7389else
7390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391for as_dir in $PATH
7392do
7393  IFS=$as_save_IFS
7394  test -z "$as_dir" && as_dir=.
7395    for ac_exec_ext in '' $ac_executable_extensions; do
7396  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7397    ac_cv_prog_ac_ct_NM="nm"
7398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7399    break 2
7400  fi
7401done
7402  done
7403IFS=$as_save_IFS
7404
7405fi
7406fi
7407ac_ct_NM=$ac_cv_prog_ac_ct_NM
7408if test -n "$ac_ct_NM"; then
7409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
7410$as_echo "$ac_ct_NM" >&6; }
7411else
7412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413$as_echo "no" >&6; }
7414fi
7415
7416  if test "x$ac_ct_NM" = x; then
7417    NM=":"
7418  else
7419    case $cross_compiling:$ac_tool_warned in
7420yes:)
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7423ac_tool_warned=yes ;;
7424esac
7425    NM=$ac_ct_NM
7426  fi
7427else
7428  NM="$ac_cv_prog_NM"
7429fi
7430
7431
7432for ac_prog in gawk mawk nawk awk
7433do
7434  # Extract the first word of "$ac_prog", so it can be a program name with args.
7435set dummy $ac_prog; ac_word=$2
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437$as_echo_n "checking for $ac_word... " >&6; }
7438if ${ac_cv_prog_AWK+:} false; then :
7439  $as_echo_n "(cached) " >&6
7440else
7441  if test -n "$AWK"; then
7442  ac_cv_prog_AWK="$AWK" # Let the user override the test.
7443else
7444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447  IFS=$as_save_IFS
7448  test -z "$as_dir" && as_dir=.
7449    for ac_exec_ext in '' $ac_executable_extensions; do
7450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451    ac_cv_prog_AWK="$ac_prog"
7452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453    break 2
7454  fi
7455done
7456  done
7457IFS=$as_save_IFS
7458
7459fi
7460fi
7461AWK=$ac_cv_prog_AWK
7462if test -n "$AWK"; then
7463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7464$as_echo "$AWK" >&6; }
7465else
7466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467$as_echo "no" >&6; }
7468fi
7469
7470
7471  test -n "$AWK" && break
7472done
7473
7474
7475
7476
7477# Check whether --with-version was given.
7478if test "${with_version+set}" = set; then :
7479  withval=$with_version;
7480    echo "${with_version}" | grep '^[0-9]\+\.[0-9]\+\.[0-9]\+-[0-9]\+-g[0-9a-f]\+$' 2>&1 1>/dev/null
7481    if test $? -eq 0 ; then
7482      echo "$with_version" > "${objroot}VERSION"
7483    else
7484      echo "${with_version}" | grep '^VERSION$' 2>&1 1>/dev/null
7485      if test $? -ne 0 ; then
7486        as_fn_error $? "${with_version} does not match <major>.<minor>.<bugfix>-<nrev>-g<gid> or VERSION" "$LINENO" 5
7487      fi
7488    fi
7489
7490else
7491
7492        if test "x`test ! \"${srcroot}\" && cd \"${srcroot}\"; git rev-parse --is-inside-work-tree 2>/dev/null`" = "xtrue" ; then
7493                        for pattern in '[0-9].[0-9].[0-9]' '[0-9].[0-9].[0-9][0-9]' \
7494                     '[0-9].[0-9][0-9].[0-9]' '[0-9].[0-9][0-9].[0-9][0-9]' \
7495                     '[0-9][0-9].[0-9].[0-9]' '[0-9][0-9].[0-9].[0-9][0-9]' \
7496                     '[0-9][0-9].[0-9][0-9].[0-9]' \
7497                     '[0-9][0-9].[0-9][0-9].[0-9][0-9]'; do
7498        (test ! "${srcroot}" && cd "${srcroot}"; git describe --long --abbrev=40 --match="${pattern}") > "${objroot}VERSION.tmp" 2>/dev/null
7499        if test $? -eq 0 ; then
7500          mv "${objroot}VERSION.tmp" "${objroot}VERSION"
7501          break
7502        fi
7503      done
7504    fi
7505    rm -f "${objroot}VERSION.tmp"
7506
7507fi
7508
7509
7510if test ! -e "${objroot}VERSION" ; then
7511  if test ! -e "${srcroot}VERSION" ; then
7512    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Missing VERSION file, and unable to generate it; creating bogus VERSION" >&5
7513$as_echo "Missing VERSION file, and unable to generate it; creating bogus VERSION" >&6; }
7514    echo "0.0.0-0-g0000000000000000000000000000000000000000" > "${objroot}VERSION"
7515  else
7516    cp ${srcroot}VERSION ${objroot}VERSION
7517  fi
7518fi
7519jemalloc_version=`cat "${objroot}VERSION"`
7520jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'`
7521jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'`
7522jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'`
7523jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'`
7524jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'`
7525
7526
7527
7528
7529
7530
7531
7532default_retain="0"
7533maps_coalesce="1"
7534DUMP_SYMS="${NM} -a"
7535SYM_PREFIX=""
7536case "${host}" in
7537  *-*-darwin* | *-*-ios*)
7538	abi="macho"
7539	RPATH=""
7540	LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
7541	so="dylib"
7542	importlib="${so}"
7543	force_tls="0"
7544	DSO_LDFLAGS='-shared -Wl,-install_name,$(LIBDIR)/$(@F)'
7545	SOREV="${rev}.${so}"
7546	sbrk_deprecated="1"
7547	SYM_PREFIX="_"
7548	;;
7549  *-*-freebsd*)
7550	abi="elf"
7551	$as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT  " >>confdefs.h
7552
7553	force_lazy_lock="1"
7554	;;
7555  *-*-dragonfly*)
7556	abi="elf"
7557	;;
7558  *-*-openbsd*)
7559	abi="elf"
7560	force_tls="0"
7561	;;
7562  *-*-bitrig*)
7563	abi="elf"
7564	;;
7565  *-*-linux-android)
7566		T_APPEND_V=-D_GNU_SOURCE
7567  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7568  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7569else
7570  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7571fi
7572
7573
7574	abi="elf"
7575	$as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS  " >>confdefs.h
7576
7577	$as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
7578
7579	$as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY  " >>confdefs.h
7580
7581	$as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
7582
7583	$as_echo "#define JEMALLOC_C11_ATOMICS 1" >>confdefs.h
7584
7585	force_tls="0"
7586	if test "${LG_SIZEOF_PTR}" = "3"; then
7587	  default_retain="1"
7588	fi
7589	;;
7590  *-*-linux*)
7591		T_APPEND_V=-D_GNU_SOURCE
7592  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7593  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7594else
7595  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7596fi
7597
7598
7599	abi="elf"
7600	$as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS  " >>confdefs.h
7601
7602	$as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
7603
7604	$as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY  " >>confdefs.h
7605
7606	$as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
7607
7608	$as_echo "#define JEMALLOC_USE_CXX_THROW  " >>confdefs.h
7609
7610	if test "${LG_SIZEOF_PTR}" = "3"; then
7611	  default_retain="1"
7612	fi
7613	;;
7614  *-*-kfreebsd*)
7615		T_APPEND_V=-D_GNU_SOURCE
7616  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7617  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7618else
7619  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7620fi
7621
7622
7623	abi="elf"
7624	$as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
7625
7626	$as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT  " >>confdefs.h
7627
7628	$as_echo "#define JEMALLOC_THREADED_INIT  " >>confdefs.h
7629
7630	$as_echo "#define JEMALLOC_USE_CXX_THROW  " >>confdefs.h
7631
7632	;;
7633  *-*-netbsd*)
7634	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5
7635$as_echo_n "checking ABI... " >&6; }
7636        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637/* end confdefs.h.  */
7638#ifdef __ELF__
7639/* ELF */
7640#else
7641#error aout
7642#endif
7643
7644int
7645main ()
7646{
7647
7648  ;
7649  return 0;
7650}
7651_ACEOF
7652if ac_fn_c_try_compile "$LINENO"; then :
7653  abi="elf"
7654else
7655  abi="aout"
7656fi
7657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7658	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5
7659$as_echo "$abi" >&6; }
7660	;;
7661  *-*-solaris2*)
7662	abi="elf"
7663	RPATH='-Wl,-R,$(1)'
7664		T_APPEND_V=-D_POSIX_PTHREAD_SEMANTICS
7665  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7666  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7667else
7668  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7669fi
7670
7671
7672	T_APPEND_V=-lposix4 -lsocket -lnsl
7673  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7674  LIBS="${LIBS}${T_APPEND_V}"
7675else
7676  LIBS="${LIBS} ${T_APPEND_V}"
7677fi
7678
7679
7680	;;
7681  *-ibm-aix*)
7682	if test "${LG_SIZEOF_PTR}" = "3"; then
7683	  	  LD_PRELOAD_VAR="LDR_PRELOAD64"
7684	else
7685	  	  LD_PRELOAD_VAR="LDR_PRELOAD"
7686	fi
7687	abi="xcoff"
7688	;;
7689  *-*-mingw* | *-*-cygwin*)
7690	abi="pecoff"
7691	force_tls="0"
7692	maps_coalesce="0"
7693	RPATH=""
7694	so="dll"
7695	if test "x$je_cv_msvc" = "xyes" ; then
7696	  importlib="lib"
7697	  DSO_LDFLAGS="-LD"
7698	  EXTRA_LDFLAGS="-link -DEBUG"
7699	  CTARGET='-Fo$@'
7700	  LDTARGET='-Fe$@'
7701	  AR='lib'
7702	  ARFLAGS='-nologo -out:'
7703	  AROUT='$@'
7704	  CC_MM=
7705        else
7706	  importlib="${so}"
7707	  DSO_LDFLAGS="-shared"
7708	  link_whole_archive="1"
7709	fi
7710	case "${host}" in
7711	  *-*-cygwin*)
7712	    DUMP_SYMS="dumpbin /SYMBOLS"
7713	    ;;
7714	  *)
7715	    ;;
7716	esac
7717	a="lib"
7718	libprefix=""
7719	SOREV="${so}"
7720	PIC_CFLAGS=""
7721	;;
7722  *)
7723	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5
7724$as_echo "Unsupported operating system: ${host}" >&6; }
7725	abi="elf"
7726	;;
7727esac
7728
7729JEMALLOC_USABLE_SIZE_CONST=const
7730for ac_header in malloc.h
7731do :
7732  ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
7733if test "x$ac_cv_header_malloc_h" = xyes; then :
7734  cat >>confdefs.h <<_ACEOF
7735#define HAVE_MALLOC_H 1
7736_ACEOF
7737
7738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc_usable_size definition can use const argument" >&5
7739$as_echo_n "checking whether malloc_usable_size definition can use const argument... " >&6; }
7740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741/* end confdefs.h.  */
7742#include <malloc.h>
7743     #include <stddef.h>
7744    size_t malloc_usable_size(const void *ptr);
7745
7746int
7747main ()
7748{
7749
7750  ;
7751  return 0;
7752}
7753_ACEOF
7754if ac_fn_c_try_compile "$LINENO"; then :
7755
7756                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7757$as_echo "yes" >&6; }
7758
7759else
7760
7761                JEMALLOC_USABLE_SIZE_CONST=
7762                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763$as_echo "no" >&6; }
7764
7765fi
7766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767
7768fi
7769
7770done
7771
7772cat >>confdefs.h <<_ACEOF
7773#define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST
7774_ACEOF
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
7800$as_echo_n "checking for library containing log... " >&6; }
7801if ${ac_cv_search_log+:} false; then :
7802  $as_echo_n "(cached) " >&6
7803else
7804  ac_func_search_save_LIBS=$LIBS
7805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806/* end confdefs.h.  */
7807
7808/* Override any GCC internal prototype to avoid an error.
7809   Use char because int might match the return type of a GCC
7810   builtin and then its argument prototype would still apply.  */
7811#ifdef __cplusplus
7812extern "C"
7813#endif
7814char log ();
7815int
7816main ()
7817{
7818return log ();
7819  ;
7820  return 0;
7821}
7822_ACEOF
7823for ac_lib in '' m; do
7824  if test -z "$ac_lib"; then
7825    ac_res="none required"
7826  else
7827    ac_res=-l$ac_lib
7828    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7829  fi
7830  if ac_fn_c_try_link "$LINENO"; then :
7831  ac_cv_search_log=$ac_res
7832fi
7833rm -f core conftest.err conftest.$ac_objext \
7834    conftest$ac_exeext
7835  if ${ac_cv_search_log+:} false; then :
7836  break
7837fi
7838done
7839if ${ac_cv_search_log+:} false; then :
7840
7841else
7842  ac_cv_search_log=no
7843fi
7844rm conftest.$ac_ext
7845LIBS=$ac_func_search_save_LIBS
7846fi
7847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
7848$as_echo "$ac_cv_search_log" >&6; }
7849ac_res=$ac_cv_search_log
7850if test "$ac_res" != no; then :
7851  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7852
7853else
7854  as_fn_error $? "Missing math functions" "$LINENO" 5
7855fi
7856
7857if test "x$ac_cv_search_log" != "xnone required" ; then
7858  LM="$ac_cv_search_log"
7859else
7860  LM=
7861fi
7862
7863
7864
7865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5
7866$as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; }
7867if ${je_cv_attribute+:} false; then :
7868  $as_echo_n "(cached) " >&6
7869else
7870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871/* end confdefs.h.  */
7872static __attribute__((unused)) void foo(void){}
7873int
7874main ()
7875{
7876
7877  ;
7878  return 0;
7879}
7880_ACEOF
7881if ac_fn_c_try_link "$LINENO"; then :
7882  je_cv_attribute=yes
7883else
7884  je_cv_attribute=no
7885fi
7886rm -f core conftest.err conftest.$ac_objext \
7887    conftest$ac_exeext conftest.$ac_ext
7888fi
7889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5
7890$as_echo "$je_cv_attribute" >&6; }
7891
7892if test "x${je_cv_attribute}" = "xyes" ; then
7893  $as_echo "#define JEMALLOC_HAVE_ATTR  " >>confdefs.h
7894
7895  if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then
7896
7897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
7898$as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
7899T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7900T_APPEND_V=-fvisibility=hidden
7901  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7902  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7903else
7904  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7905fi
7906
7907
7908if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7909  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7910else
7911  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7912fi
7913
7914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915/* end confdefs.h.  */
7916
7917
7918int
7919main ()
7920{
7921
7922    return 0;
7923
7924  ;
7925  return 0;
7926}
7927_ACEOF
7928if ac_fn_c_try_compile "$LINENO"; then :
7929  je_cv_cflags_added=-fvisibility=hidden
7930              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7931$as_echo "yes" >&6; }
7932else
7933  je_cv_cflags_added=
7934              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935$as_echo "no" >&6; }
7936              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
7937
7938fi
7939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7941  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7942else
7943  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7944fi
7945
7946
7947
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
7949$as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
7950T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
7951T_APPEND_V=-fvisibility=hidden
7952  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7953  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
7954else
7955  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
7956fi
7957
7958
7959if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
7960  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
7961else
7962  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
7963fi
7964
7965ac_ext=cpp
7966ac_cpp='$CXXCPP $CPPFLAGS'
7967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7970
7971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972/* end confdefs.h.  */
7973
7974
7975int
7976main ()
7977{
7978
7979    return 0;
7980
7981  ;
7982  return 0;
7983}
7984_ACEOF
7985if ac_fn_cxx_try_compile "$LINENO"; then :
7986  je_cv_cxxflags_added=-fvisibility=hidden
7987              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7988$as_echo "yes" >&6; }
7989else
7990  je_cv_cxxflags_added=
7991              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992$as_echo "no" >&6; }
7993              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
7994
7995fi
7996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7997ac_ext=c
7998ac_cpp='$CPP $CPPFLAGS'
7999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001ac_compiler_gnu=$ac_cv_c_compiler_gnu
8002
8003if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
8004  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
8005else
8006  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
8007fi
8008
8009
8010  fi
8011fi
8012SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8013
8014
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
8016$as_echo_n "checking whether compiler supports -Werror... " >&6; }
8017T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8018T_APPEND_V=-Werror
8019  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8020  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8021else
8022  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8023fi
8024
8025
8026if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8027  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8028else
8029  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8030fi
8031
8032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033/* end confdefs.h.  */
8034
8035
8036int
8037main ()
8038{
8039
8040    return 0;
8041
8042  ;
8043  return 0;
8044}
8045_ACEOF
8046if ac_fn_c_try_compile "$LINENO"; then :
8047  je_cv_cflags_added=-Werror
8048              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8049$as_echo "yes" >&6; }
8050else
8051  je_cv_cflags_added=
8052              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053$as_echo "no" >&6; }
8054              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8055
8056fi
8057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8059  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8060else
8061  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8062fi
8063
8064
8065
8066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8067$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8068T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8069T_APPEND_V=-herror_on_warning
8070  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8071  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8072else
8073  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8074fi
8075
8076
8077if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8078  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8079else
8080  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8081fi
8082
8083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084/* end confdefs.h.  */
8085
8086
8087int
8088main ()
8089{
8090
8091    return 0;
8092
8093  ;
8094  return 0;
8095}
8096_ACEOF
8097if ac_fn_c_try_compile "$LINENO"; then :
8098  je_cv_cflags_added=-herror_on_warning
8099              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8100$as_echo "yes" >&6; }
8101else
8102  je_cv_cflags_added=
8103              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8104$as_echo "no" >&6; }
8105              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8106
8107fi
8108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8109if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8110  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8111else
8112  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8113fi
8114
8115
8116
8117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5
8118$as_echo_n "checking whether tls_model attribute is compilable... " >&6; }
8119if ${je_cv_tls_model+:} false; then :
8120  $as_echo_n "(cached) " >&6
8121else
8122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123/* end confdefs.h.  */
8124
8125int
8126main ()
8127{
8128static __thread int
8129               __attribute__((tls_model("initial-exec"), unused)) foo;
8130               foo = 0;
8131  ;
8132  return 0;
8133}
8134_ACEOF
8135if ac_fn_c_try_link "$LINENO"; then :
8136  je_cv_tls_model=yes
8137else
8138  je_cv_tls_model=no
8139fi
8140rm -f core conftest.err conftest.$ac_objext \
8141    conftest$ac_exeext conftest.$ac_ext
8142fi
8143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5
8144$as_echo "$je_cv_tls_model" >&6; }
8145
8146CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8147if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8148  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8149else
8150  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8151fi
8152
8153
8154
8155SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8156
8157
8158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
8159$as_echo_n "checking whether compiler supports -Werror... " >&6; }
8160T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8161T_APPEND_V=-Werror
8162  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8163  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8164else
8165  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8166fi
8167
8168
8169if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8170  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8171else
8172  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8173fi
8174
8175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176/* end confdefs.h.  */
8177
8178
8179int
8180main ()
8181{
8182
8183    return 0;
8184
8185  ;
8186  return 0;
8187}
8188_ACEOF
8189if ac_fn_c_try_compile "$LINENO"; then :
8190  je_cv_cflags_added=-Werror
8191              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8192$as_echo "yes" >&6; }
8193else
8194  je_cv_cflags_added=
8195              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8196$as_echo "no" >&6; }
8197              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8198
8199fi
8200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8201if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8202  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8203else
8204  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8205fi
8206
8207
8208
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8210$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8211T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8212T_APPEND_V=-herror_on_warning
8213  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8214  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8215else
8216  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8217fi
8218
8219
8220if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8221  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8222else
8223  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8224fi
8225
8226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227/* end confdefs.h.  */
8228
8229
8230int
8231main ()
8232{
8233
8234    return 0;
8235
8236  ;
8237  return 0;
8238}
8239_ACEOF
8240if ac_fn_c_try_compile "$LINENO"; then :
8241  je_cv_cflags_added=-herror_on_warning
8242              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8243$as_echo "yes" >&6; }
8244else
8245  je_cv_cflags_added=
8246              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247$as_echo "no" >&6; }
8248              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8249
8250fi
8251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8252if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8253  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8254else
8255  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8256fi
8257
8258
8259
8260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloc_size attribute is compilable" >&5
8261$as_echo_n "checking whether alloc_size attribute is compilable... " >&6; }
8262if ${je_cv_alloc_size+:} false; then :
8263  $as_echo_n "(cached) " >&6
8264else
8265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266/* end confdefs.h.  */
8267#include <stdlib.h>
8268int
8269main ()
8270{
8271void *foo(size_t size) __attribute__((alloc_size(1)));
8272  ;
8273  return 0;
8274}
8275_ACEOF
8276if ac_fn_c_try_link "$LINENO"; then :
8277  je_cv_alloc_size=yes
8278else
8279  je_cv_alloc_size=no
8280fi
8281rm -f core conftest.err conftest.$ac_objext \
8282    conftest$ac_exeext conftest.$ac_ext
8283fi
8284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_alloc_size" >&5
8285$as_echo "$je_cv_alloc_size" >&6; }
8286
8287CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8288if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8289  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8290else
8291  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8292fi
8293
8294
8295if test "x${je_cv_alloc_size}" = "xyes" ; then
8296  $as_echo "#define JEMALLOC_HAVE_ATTR_ALLOC_SIZE  " >>confdefs.h
8297
8298fi
8299SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8300
8301
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
8303$as_echo_n "checking whether compiler supports -Werror... " >&6; }
8304T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8305T_APPEND_V=-Werror
8306  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8307  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8308else
8309  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8310fi
8311
8312
8313if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8314  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8315else
8316  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8317fi
8318
8319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320/* end confdefs.h.  */
8321
8322
8323int
8324main ()
8325{
8326
8327    return 0;
8328
8329  ;
8330  return 0;
8331}
8332_ACEOF
8333if ac_fn_c_try_compile "$LINENO"; then :
8334  je_cv_cflags_added=-Werror
8335              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8336$as_echo "yes" >&6; }
8337else
8338  je_cv_cflags_added=
8339              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340$as_echo "no" >&6; }
8341              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8342
8343fi
8344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8345if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8346  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8347else
8348  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8349fi
8350
8351
8352
8353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8354$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8355T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8356T_APPEND_V=-herror_on_warning
8357  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8358  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8359else
8360  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8361fi
8362
8363
8364if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8365  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8366else
8367  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8368fi
8369
8370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371/* end confdefs.h.  */
8372
8373
8374int
8375main ()
8376{
8377
8378    return 0;
8379
8380  ;
8381  return 0;
8382}
8383_ACEOF
8384if ac_fn_c_try_compile "$LINENO"; then :
8385  je_cv_cflags_added=-herror_on_warning
8386              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8387$as_echo "yes" >&6; }
8388else
8389  je_cv_cflags_added=
8390              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391$as_echo "no" >&6; }
8392              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8393
8394fi
8395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8397  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8398else
8399  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8400fi
8401
8402
8403
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(gnu_printf, ...) attribute is compilable" >&5
8405$as_echo_n "checking whether format(gnu_printf, ...) attribute is compilable... " >&6; }
8406if ${je_cv_format_gnu_printf+:} false; then :
8407  $as_echo_n "(cached) " >&6
8408else
8409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410/* end confdefs.h.  */
8411#include <stdlib.h>
8412int
8413main ()
8414{
8415void *foo(const char *format, ...) __attribute__((format(gnu_printf, 1, 2)));
8416  ;
8417  return 0;
8418}
8419_ACEOF
8420if ac_fn_c_try_link "$LINENO"; then :
8421  je_cv_format_gnu_printf=yes
8422else
8423  je_cv_format_gnu_printf=no
8424fi
8425rm -f core conftest.err conftest.$ac_objext \
8426    conftest$ac_exeext conftest.$ac_ext
8427fi
8428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_gnu_printf" >&5
8429$as_echo "$je_cv_format_gnu_printf" >&6; }
8430
8431CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8432if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8433  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8434else
8435  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8436fi
8437
8438
8439if test "x${je_cv_format_gnu_printf}" = "xyes" ; then
8440  $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF  " >>confdefs.h
8441
8442fi
8443SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8444
8445
8446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
8447$as_echo_n "checking whether compiler supports -Werror... " >&6; }
8448T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8449T_APPEND_V=-Werror
8450  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8451  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8452else
8453  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8454fi
8455
8456
8457if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8458  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8459else
8460  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8461fi
8462
8463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464/* end confdefs.h.  */
8465
8466
8467int
8468main ()
8469{
8470
8471    return 0;
8472
8473  ;
8474  return 0;
8475}
8476_ACEOF
8477if ac_fn_c_try_compile "$LINENO"; then :
8478  je_cv_cflags_added=-Werror
8479              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8480$as_echo "yes" >&6; }
8481else
8482  je_cv_cflags_added=
8483              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484$as_echo "no" >&6; }
8485              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8486
8487fi
8488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8489if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8490  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8491else
8492  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8493fi
8494
8495
8496
8497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8498$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8499T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8500T_APPEND_V=-herror_on_warning
8501  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8502  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8503else
8504  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8505fi
8506
8507
8508if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8509  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8510else
8511  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8512fi
8513
8514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515/* end confdefs.h.  */
8516
8517
8518int
8519main ()
8520{
8521
8522    return 0;
8523
8524  ;
8525  return 0;
8526}
8527_ACEOF
8528if ac_fn_c_try_compile "$LINENO"; then :
8529  je_cv_cflags_added=-herror_on_warning
8530              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8531$as_echo "yes" >&6; }
8532else
8533  je_cv_cflags_added=
8534              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535$as_echo "no" >&6; }
8536              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8537
8538fi
8539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8541  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8542else
8543  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8544fi
8545
8546
8547
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5
8549$as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; }
8550if ${je_cv_format_printf+:} false; then :
8551  $as_echo_n "(cached) " >&6
8552else
8553  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554/* end confdefs.h.  */
8555#include <stdlib.h>
8556int
8557main ()
8558{
8559void *foo(const char *format, ...) __attribute__((format(printf, 1, 2)));
8560  ;
8561  return 0;
8562}
8563_ACEOF
8564if ac_fn_c_try_link "$LINENO"; then :
8565  je_cv_format_printf=yes
8566else
8567  je_cv_format_printf=no
8568fi
8569rm -f core conftest.err conftest.$ac_objext \
8570    conftest$ac_exeext conftest.$ac_ext
8571fi
8572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_printf" >&5
8573$as_echo "$je_cv_format_printf" >&6; }
8574
8575CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8576if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8577  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8578else
8579  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8580fi
8581
8582
8583if test "x${je_cv_format_printf}" = "xyes" ; then
8584  $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF  " >>confdefs.h
8585
8586fi
8587
8588
8589# Check whether --with-rpath was given.
8590if test "${with_rpath+set}" = set; then :
8591  withval=$with_rpath; if test "x$with_rpath" = "xno" ; then
8592  RPATH_EXTRA=
8593else
8594  RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`"
8595fi
8596else
8597  RPATH_EXTRA=
8598
8599fi
8600
8601
8602
8603# Check whether --enable-autogen was given.
8604if test "${enable_autogen+set}" = set; then :
8605  enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then
8606  enable_autogen="0"
8607else
8608  enable_autogen="1"
8609fi
8610
8611else
8612  enable_autogen="0"
8613
8614fi
8615
8616
8617
8618# Find a good install program.  We prefer a C program (faster),
8619# so one script is as good as another.  But avoid the broken or
8620# incompatible versions:
8621# SysV /etc/install, /usr/sbin/install
8622# SunOS /usr/etc/install
8623# IRIX /sbin/install
8624# AIX /bin/install
8625# AmigaOS /C/install, which installs bootblocks on floppy discs
8626# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8627# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8628# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8629# OS/2's system install, which has a completely different semantic
8630# ./install, which can be erroneously created by make from ./install.sh.
8631# Reject install programs that cannot install multiple files.
8632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8633$as_echo_n "checking for a BSD-compatible install... " >&6; }
8634if test -z "$INSTALL"; then
8635if ${ac_cv_path_install+:} false; then :
8636  $as_echo_n "(cached) " >&6
8637else
8638  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8639for as_dir in $PATH
8640do
8641  IFS=$as_save_IFS
8642  test -z "$as_dir" && as_dir=.
8643    # Account for people who put trailing slashes in PATH elements.
8644case $as_dir/ in #((
8645  ./ | .// | /[cC]/* | \
8646  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8647  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8648  /usr/ucb/* ) ;;
8649  *)
8650    # OSF1 and SCO ODT 3.0 have their own names for install.
8651    # Don't use installbsd from OSF since it installs stuff as root
8652    # by default.
8653    for ac_prog in ginstall scoinst install; do
8654      for ac_exec_ext in '' $ac_executable_extensions; do
8655	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8656	  if test $ac_prog = install &&
8657	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8658	    # AIX install.  It has an incompatible calling convention.
8659	    :
8660	  elif test $ac_prog = install &&
8661	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8662	    # program-specific install script used by HP pwplus--don't use.
8663	    :
8664	  else
8665	    rm -rf conftest.one conftest.two conftest.dir
8666	    echo one > conftest.one
8667	    echo two > conftest.two
8668	    mkdir conftest.dir
8669	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8670	      test -s conftest.one && test -s conftest.two &&
8671	      test -s conftest.dir/conftest.one &&
8672	      test -s conftest.dir/conftest.two
8673	    then
8674	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8675	      break 3
8676	    fi
8677	  fi
8678	fi
8679      done
8680    done
8681    ;;
8682esac
8683
8684  done
8685IFS=$as_save_IFS
8686
8687rm -rf conftest.one conftest.two conftest.dir
8688
8689fi
8690  if test "${ac_cv_path_install+set}" = set; then
8691    INSTALL=$ac_cv_path_install
8692  else
8693    # As a last resort, use the slow shell script.  Don't cache a
8694    # value for INSTALL within a source directory, because that will
8695    # break other packages using the cache if that directory is
8696    # removed, or if the value is a relative name.
8697    INSTALL=$ac_install_sh
8698  fi
8699fi
8700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8701$as_echo "$INSTALL" >&6; }
8702
8703# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8704# It thinks the first close brace ends the variable substitution.
8705test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8706
8707test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8708
8709test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8710
8711if test -n "$ac_tool_prefix"; then
8712  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8713set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8715$as_echo_n "checking for $ac_word... " >&6; }
8716if ${ac_cv_prog_RANLIB+:} false; then :
8717  $as_echo_n "(cached) " >&6
8718else
8719  if test -n "$RANLIB"; then
8720  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8721else
8722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723for as_dir in $PATH
8724do
8725  IFS=$as_save_IFS
8726  test -z "$as_dir" && as_dir=.
8727    for ac_exec_ext in '' $ac_executable_extensions; do
8728  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8729    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8731    break 2
8732  fi
8733done
8734  done
8735IFS=$as_save_IFS
8736
8737fi
8738fi
8739RANLIB=$ac_cv_prog_RANLIB
8740if test -n "$RANLIB"; then
8741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8742$as_echo "$RANLIB" >&6; }
8743else
8744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8745$as_echo "no" >&6; }
8746fi
8747
8748
8749fi
8750if test -z "$ac_cv_prog_RANLIB"; then
8751  ac_ct_RANLIB=$RANLIB
8752  # Extract the first word of "ranlib", so it can be a program name with args.
8753set dummy ranlib; ac_word=$2
8754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8755$as_echo_n "checking for $ac_word... " >&6; }
8756if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8757  $as_echo_n "(cached) " >&6
8758else
8759  if test -n "$ac_ct_RANLIB"; then
8760  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8761else
8762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8763for as_dir in $PATH
8764do
8765  IFS=$as_save_IFS
8766  test -z "$as_dir" && as_dir=.
8767    for ac_exec_ext in '' $ac_executable_extensions; do
8768  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8769    ac_cv_prog_ac_ct_RANLIB="ranlib"
8770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8771    break 2
8772  fi
8773done
8774  done
8775IFS=$as_save_IFS
8776
8777fi
8778fi
8779ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8780if test -n "$ac_ct_RANLIB"; then
8781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8782$as_echo "$ac_ct_RANLIB" >&6; }
8783else
8784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8785$as_echo "no" >&6; }
8786fi
8787
8788  if test "x$ac_ct_RANLIB" = x; then
8789    RANLIB=":"
8790  else
8791    case $cross_compiling:$ac_tool_warned in
8792yes:)
8793{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8794$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8795ac_tool_warned=yes ;;
8796esac
8797    RANLIB=$ac_ct_RANLIB
8798  fi
8799else
8800  RANLIB="$ac_cv_prog_RANLIB"
8801fi
8802
8803# Extract the first word of "ld", so it can be a program name with args.
8804set dummy ld; ac_word=$2
8805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8806$as_echo_n "checking for $ac_word... " >&6; }
8807if ${ac_cv_path_LD+:} false; then :
8808  $as_echo_n "(cached) " >&6
8809else
8810  case $LD in
8811  [\\/]* | ?:[\\/]*)
8812  ac_cv_path_LD="$LD" # Let the user override the test with a path.
8813  ;;
8814  *)
8815  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8816for as_dir in $PATH
8817do
8818  IFS=$as_save_IFS
8819  test -z "$as_dir" && as_dir=.
8820    for ac_exec_ext in '' $ac_executable_extensions; do
8821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8822    ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
8823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8824    break 2
8825  fi
8826done
8827  done
8828IFS=$as_save_IFS
8829
8830  test -z "$ac_cv_path_LD" && ac_cv_path_LD="false"
8831  ;;
8832esac
8833fi
8834LD=$ac_cv_path_LD
8835if test -n "$LD"; then
8836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8837$as_echo "$LD" >&6; }
8838else
8839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840$as_echo "no" >&6; }
8841fi
8842
8843
8844# Extract the first word of "autoconf", so it can be a program name with args.
8845set dummy autoconf; ac_word=$2
8846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8847$as_echo_n "checking for $ac_word... " >&6; }
8848if ${ac_cv_path_AUTOCONF+:} false; then :
8849  $as_echo_n "(cached) " >&6
8850else
8851  case $AUTOCONF in
8852  [\\/]* | ?:[\\/]*)
8853  ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
8854  ;;
8855  *)
8856  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857for as_dir in $PATH
8858do
8859  IFS=$as_save_IFS
8860  test -z "$as_dir" && as_dir=.
8861    for ac_exec_ext in '' $ac_executable_extensions; do
8862  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8863    ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
8864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8865    break 2
8866  fi
8867done
8868  done
8869IFS=$as_save_IFS
8870
8871  test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="false"
8872  ;;
8873esac
8874fi
8875AUTOCONF=$ac_cv_path_AUTOCONF
8876if test -n "$AUTOCONF"; then
8877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
8878$as_echo "$AUTOCONF" >&6; }
8879else
8880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881$as_echo "no" >&6; }
8882fi
8883
8884
8885
8886# Check whether --enable-shared was given.
8887if test "${enable_shared+set}" = set; then :
8888  enableval=$enable_shared; if test "x$enable_shared" = "xno" ; then
8889  enable_shared="0"
8890else
8891  enable_shared="1"
8892fi
8893
8894else
8895  enable_shared="1"
8896
8897fi
8898
8899
8900
8901# Check whether --enable-static was given.
8902if test "${enable_static+set}" = set; then :
8903  enableval=$enable_static; if test "x$enable_static" = "xno" ; then
8904  enable_static="0"
8905else
8906  enable_static="1"
8907fi
8908
8909else
8910  enable_static="1"
8911
8912fi
8913
8914
8915
8916if test "$enable_shared$enable_static" = "00" ; then
8917  as_fn_error $? "Please enable one of shared or static builds" "$LINENO" 5
8918fi
8919
8920
8921# Check whether --with-mangling was given.
8922if test "${with_mangling+set}" = set; then :
8923  withval=$with_mangling; mangling_map="$with_mangling"
8924else
8925  mangling_map=""
8926fi
8927
8928
8929
8930# Check whether --with-jemalloc_prefix was given.
8931if test "${with_jemalloc_prefix+set}" = set; then :
8932  withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix"
8933else
8934  if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then
8935  JEMALLOC_PREFIX=""
8936else
8937  JEMALLOC_PREFIX="je_"
8938fi
8939
8940fi
8941
8942if test "x$JEMALLOC_PREFIX" = "x" ; then
8943  $as_echo "#define JEMALLOC_IS_MALLOC 1" >>confdefs.h
8944
8945else
8946  JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"`
8947  cat >>confdefs.h <<_ACEOF
8948#define JEMALLOC_PREFIX "$JEMALLOC_PREFIX"
8949_ACEOF
8950
8951  cat >>confdefs.h <<_ACEOF
8952#define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX"
8953_ACEOF
8954
8955fi
8956
8957
8958
8959
8960# Check whether --with-export was given.
8961if test "${with_export+set}" = set; then :
8962  withval=$with_export; if test "x$with_export" = "xno"; then
8963  $as_echo "#define JEMALLOC_EXPORT /**/" >>confdefs.h
8964
8965fi
8966
8967fi
8968
8969
8970public_syms="aligned_alloc calloc dallocx free mallctl mallctlbymib mallctlnametomib malloc malloc_conf malloc_message malloc_stats_print malloc_usable_size mallocx smallocx_${jemalloc_version_gid} nallocx posix_memalign rallocx realloc sallocx sdallocx xallocx"
8971ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
8972if test "x$ac_cv_func_memalign" = xyes; then :
8973  $as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN  " >>confdefs.h
8974
8975	       public_syms="${public_syms} memalign"
8976fi
8977
8978ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
8979if test "x$ac_cv_func_valloc" = xyes; then :
8980  $as_echo "#define JEMALLOC_OVERRIDE_VALLOC  " >>confdefs.h
8981
8982	       public_syms="${public_syms} valloc"
8983fi
8984
8985
8986wrap_syms=
8987if test "x${JEMALLOC_PREFIX}" = "x" ; then
8988  ac_fn_c_check_func "$LINENO" "__libc_calloc" "ac_cv_func___libc_calloc"
8989if test "x$ac_cv_func___libc_calloc" = xyes; then :
8990  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_CALLOC  " >>confdefs.h
8991
8992		 wrap_syms="${wrap_syms} __libc_calloc"
8993fi
8994
8995  ac_fn_c_check_func "$LINENO" "__libc_free" "ac_cv_func___libc_free"
8996if test "x$ac_cv_func___libc_free" = xyes; then :
8997  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_FREE  " >>confdefs.h
8998
8999		 wrap_syms="${wrap_syms} __libc_free"
9000fi
9001
9002  ac_fn_c_check_func "$LINENO" "__libc_malloc" "ac_cv_func___libc_malloc"
9003if test "x$ac_cv_func___libc_malloc" = xyes; then :
9004  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MALLOC  " >>confdefs.h
9005
9006		 wrap_syms="${wrap_syms} __libc_malloc"
9007fi
9008
9009  ac_fn_c_check_func "$LINENO" "__libc_memalign" "ac_cv_func___libc_memalign"
9010if test "x$ac_cv_func___libc_memalign" = xyes; then :
9011  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MEMALIGN  " >>confdefs.h
9012
9013		 wrap_syms="${wrap_syms} __libc_memalign"
9014fi
9015
9016  ac_fn_c_check_func "$LINENO" "__libc_realloc" "ac_cv_func___libc_realloc"
9017if test "x$ac_cv_func___libc_realloc" = xyes; then :
9018  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_REALLOC  " >>confdefs.h
9019
9020		 wrap_syms="${wrap_syms} __libc_realloc"
9021fi
9022
9023  ac_fn_c_check_func "$LINENO" "__libc_valloc" "ac_cv_func___libc_valloc"
9024if test "x$ac_cv_func___libc_valloc" = xyes; then :
9025  $as_echo "#define JEMALLOC_OVERRIDE___LIBC_VALLOC  " >>confdefs.h
9026
9027		 wrap_syms="${wrap_syms} __libc_valloc"
9028fi
9029
9030  ac_fn_c_check_func "$LINENO" "__posix_memalign" "ac_cv_func___posix_memalign"
9031if test "x$ac_cv_func___posix_memalign" = xyes; then :
9032  $as_echo "#define JEMALLOC_OVERRIDE___POSIX_MEMALIGN  " >>confdefs.h
9033
9034		 wrap_syms="${wrap_syms} __posix_memalign"
9035fi
9036
9037fi
9038
9039case "${host}" in
9040  *-*-mingw* | *-*-cygwin*)
9041    wrap_syms="${wrap_syms} tls_callback"
9042    ;;
9043  *)
9044    ;;
9045esac
9046
9047
9048# Check whether --with-private_namespace was given.
9049if test "${with_private_namespace+set}" = set; then :
9050  withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="${with_private_namespace}je_"
9051else
9052  JEMALLOC_PRIVATE_NAMESPACE="je_"
9053
9054fi
9055
9056cat >>confdefs.h <<_ACEOF
9057#define JEMALLOC_PRIVATE_NAMESPACE $JEMALLOC_PRIVATE_NAMESPACE
9058_ACEOF
9059
9060private_namespace="$JEMALLOC_PRIVATE_NAMESPACE"
9061
9062
9063
9064# Check whether --with-install_suffix was given.
9065if test "${with_install_suffix+set}" = set; then :
9066  withval=$with_install_suffix; INSTALL_SUFFIX="$with_install_suffix"
9067else
9068  INSTALL_SUFFIX=
9069
9070fi
9071
9072install_suffix="$INSTALL_SUFFIX"
9073
9074
9075
9076# Check whether --with-malloc_conf was given.
9077if test "${with_malloc_conf+set}" = set; then :
9078  withval=$with_malloc_conf; JEMALLOC_CONFIG_MALLOC_CONF="$with_malloc_conf"
9079else
9080  JEMALLOC_CONFIG_MALLOC_CONF=""
9081
9082fi
9083
9084config_malloc_conf="$JEMALLOC_CONFIG_MALLOC_CONF"
9085cat >>confdefs.h <<_ACEOF
9086#define JEMALLOC_CONFIG_MALLOC_CONF "$config_malloc_conf"
9087_ACEOF
9088
9089
9090je_="je_"
9091
9092
9093cfgoutputs_in="Makefile.in"
9094cfgoutputs_in="${cfgoutputs_in} jemalloc.pc.in"
9095cfgoutputs_in="${cfgoutputs_in} doc/html.xsl.in"
9096cfgoutputs_in="${cfgoutputs_in} doc/manpages.xsl.in"
9097cfgoutputs_in="${cfgoutputs_in} doc/jemalloc.xml.in"
9098cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_macros.h.in"
9099cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_protos.h.in"
9100cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_typedefs.h.in"
9101cfgoutputs_in="${cfgoutputs_in} include/jemalloc/internal/jemalloc_preamble.h.in"
9102cfgoutputs_in="${cfgoutputs_in} test/test.sh.in"
9103cfgoutputs_in="${cfgoutputs_in} test/include/test/jemalloc_test.h.in"
9104
9105cfgoutputs_out="Makefile"
9106cfgoutputs_out="${cfgoutputs_out} jemalloc.pc"
9107cfgoutputs_out="${cfgoutputs_out} doc/html.xsl"
9108cfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl"
9109cfgoutputs_out="${cfgoutputs_out} doc/jemalloc.xml"
9110cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_macros.h"
9111cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_protos.h"
9112cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_typedefs.h"
9113cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_preamble.h"
9114cfgoutputs_out="${cfgoutputs_out} test/test.sh"
9115cfgoutputs_out="${cfgoutputs_out} test/include/test/jemalloc_test.h"
9116
9117cfgoutputs_tup="Makefile"
9118cfgoutputs_tup="${cfgoutputs_tup} jemalloc.pc:jemalloc.pc.in"
9119cfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in"
9120cfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in"
9121cfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc.xml:doc/jemalloc.xml.in"
9122cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_macros.h:include/jemalloc/jemalloc_macros.h.in"
9123cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_protos.h:include/jemalloc/jemalloc_protos.h.in"
9124cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_typedefs.h:include/jemalloc/jemalloc_typedefs.h.in"
9125cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_preamble.h"
9126cfgoutputs_tup="${cfgoutputs_tup} test/test.sh:test/test.sh.in"
9127cfgoutputs_tup="${cfgoutputs_tup} test/include/test/jemalloc_test.h:test/include/test/jemalloc_test.h.in"
9128
9129cfghdrs_in="include/jemalloc/jemalloc_defs.h.in"
9130cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/jemalloc_internal_defs.h.in"
9131cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_symbols.sh"
9132cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_namespace.sh"
9133cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_namespace.sh"
9134cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_unnamespace.sh"
9135cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_rename.sh"
9136cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_mangle.sh"
9137cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc.sh"
9138cfghdrs_in="${cfghdrs_in} test/include/test/jemalloc_test_defs.h.in"
9139
9140cfghdrs_out="include/jemalloc/jemalloc_defs.h"
9141cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc${install_suffix}.h"
9142cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols.awk"
9143cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols_jet.awk"
9144cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_symbols.txt"
9145cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_namespace.h"
9146cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_unnamespace.h"
9147cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_protos_jet.h"
9148cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_rename.h"
9149cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle.h"
9150cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle_jet.h"
9151cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/jemalloc_internal_defs.h"
9152cfghdrs_out="${cfghdrs_out} test/include/test/jemalloc_test_defs.h"
9153
9154cfghdrs_tup="include/jemalloc/jemalloc_defs.h:include/jemalloc/jemalloc_defs.h.in"
9155cfghdrs_tup="${cfghdrs_tup} include/jemalloc/internal/jemalloc_internal_defs.h:include/jemalloc/internal/jemalloc_internal_defs.h.in"
9156cfghdrs_tup="${cfghdrs_tup} test/include/test/jemalloc_test_defs.h:test/include/test/jemalloc_test_defs.h.in"
9157
9158
9159# Check whether --enable-debug was given.
9160if test "${enable_debug+set}" = set; then :
9161  enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then
9162  enable_debug="0"
9163else
9164  enable_debug="1"
9165fi
9166
9167else
9168  enable_debug="0"
9169
9170fi
9171
9172if test "x$enable_debug" = "x1" ; then
9173  $as_echo "#define JEMALLOC_DEBUG  " >>confdefs.h
9174
9175fi
9176if test "x$enable_debug" = "x1" ; then
9177  $as_echo "#define JEMALLOC_DEBUG  " >>confdefs.h
9178
9179fi
9180
9181
9182if test "x$enable_debug" = "x0" ; then
9183  if test "x$GCC" = "xyes" ; then
9184
9185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
9186$as_echo_n "checking whether compiler supports -O3... " >&6; }
9187T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9188T_APPEND_V=-O3
9189  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9190  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9191else
9192  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9193fi
9194
9195
9196if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9197  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9198else
9199  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9200fi
9201
9202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203/* end confdefs.h.  */
9204
9205
9206int
9207main ()
9208{
9209
9210    return 0;
9211
9212  ;
9213  return 0;
9214}
9215_ACEOF
9216if ac_fn_c_try_compile "$LINENO"; then :
9217  je_cv_cflags_added=-O3
9218              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9219$as_echo "yes" >&6; }
9220else
9221  je_cv_cflags_added=
9222              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223$as_echo "no" >&6; }
9224              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9225
9226fi
9227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9228if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9229  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9230else
9231  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9232fi
9233
9234
9235
9236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
9237$as_echo_n "checking whether compiler supports -O3... " >&6; }
9238T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
9239T_APPEND_V=-O3
9240  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9241  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
9242else
9243  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
9244fi
9245
9246
9247if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9248  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9249else
9250  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9251fi
9252
9253ac_ext=cpp
9254ac_cpp='$CXXCPP $CPPFLAGS'
9255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9258
9259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260/* end confdefs.h.  */
9261
9262
9263int
9264main ()
9265{
9266
9267    return 0;
9268
9269  ;
9270  return 0;
9271}
9272_ACEOF
9273if ac_fn_cxx_try_compile "$LINENO"; then :
9274  je_cv_cxxflags_added=-O3
9275              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9276$as_echo "yes" >&6; }
9277else
9278  je_cv_cxxflags_added=
9279              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280$as_echo "no" >&6; }
9281              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
9282
9283fi
9284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285ac_ext=c
9286ac_cpp='$CPP $CPPFLAGS'
9287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9289ac_compiler_gnu=$ac_cv_c_compiler_gnu
9290
9291if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9292  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9293else
9294  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9295fi
9296
9297
9298
9299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5
9300$as_echo_n "checking whether compiler supports -funroll-loops... " >&6; }
9301T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9302T_APPEND_V=-funroll-loops
9303  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9304  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9305else
9306  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9307fi
9308
9309
9310if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9311  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9312else
9313  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9314fi
9315
9316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317/* end confdefs.h.  */
9318
9319
9320int
9321main ()
9322{
9323
9324    return 0;
9325
9326  ;
9327  return 0;
9328}
9329_ACEOF
9330if ac_fn_c_try_compile "$LINENO"; then :
9331  je_cv_cflags_added=-funroll-loops
9332              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9333$as_echo "yes" >&6; }
9334else
9335  je_cv_cflags_added=
9336              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9337$as_echo "no" >&6; }
9338              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9339
9340fi
9341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9342if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9343  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9344else
9345  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9346fi
9347
9348
9349  elif test "x$je_cv_msvc" = "xyes" ; then
9350
9351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
9352$as_echo_n "checking whether compiler supports -O2... " >&6; }
9353T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9354T_APPEND_V=-O2
9355  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9356  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9357else
9358  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9359fi
9360
9361
9362if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9363  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9364else
9365  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9366fi
9367
9368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369/* end confdefs.h.  */
9370
9371
9372int
9373main ()
9374{
9375
9376    return 0;
9377
9378  ;
9379  return 0;
9380}
9381_ACEOF
9382if ac_fn_c_try_compile "$LINENO"; then :
9383  je_cv_cflags_added=-O2
9384              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9385$as_echo "yes" >&6; }
9386else
9387  je_cv_cflags_added=
9388              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9389$as_echo "no" >&6; }
9390              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9391
9392fi
9393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9394if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9395  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9396else
9397  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9398fi
9399
9400
9401
9402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
9403$as_echo_n "checking whether compiler supports -O2... " >&6; }
9404T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
9405T_APPEND_V=-O2
9406  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9407  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
9408else
9409  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
9410fi
9411
9412
9413if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9414  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9415else
9416  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9417fi
9418
9419ac_ext=cpp
9420ac_cpp='$CXXCPP $CPPFLAGS'
9421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9424
9425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426/* end confdefs.h.  */
9427
9428
9429int
9430main ()
9431{
9432
9433    return 0;
9434
9435  ;
9436  return 0;
9437}
9438_ACEOF
9439if ac_fn_cxx_try_compile "$LINENO"; then :
9440  je_cv_cxxflags_added=-O2
9441              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9442$as_echo "yes" >&6; }
9443else
9444  je_cv_cxxflags_added=
9445              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9446$as_echo "no" >&6; }
9447              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
9448
9449fi
9450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9451ac_ext=c
9452ac_cpp='$CPP $CPPFLAGS'
9453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9455ac_compiler_gnu=$ac_cv_c_compiler_gnu
9456
9457if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9458  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9459else
9460  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9461fi
9462
9463
9464  else
9465
9466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
9467$as_echo_n "checking whether compiler supports -O... " >&6; }
9468T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9469T_APPEND_V=-O
9470  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9471  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9472else
9473  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9474fi
9475
9476
9477if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9478  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9479else
9480  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9481fi
9482
9483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484/* end confdefs.h.  */
9485
9486
9487int
9488main ()
9489{
9490
9491    return 0;
9492
9493  ;
9494  return 0;
9495}
9496_ACEOF
9497if ac_fn_c_try_compile "$LINENO"; then :
9498  je_cv_cflags_added=-O
9499              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9500$as_echo "yes" >&6; }
9501else
9502  je_cv_cflags_added=
9503              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9504$as_echo "no" >&6; }
9505              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9506
9507fi
9508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9509if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9510  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9511else
9512  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9513fi
9514
9515
9516
9517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
9518$as_echo_n "checking whether compiler supports -O... " >&6; }
9519T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
9520T_APPEND_V=-O
9521  if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9522  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
9523else
9524  CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
9525fi
9526
9527
9528if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9529  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9530else
9531  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9532fi
9533
9534ac_ext=cpp
9535ac_cpp='$CXXCPP $CPPFLAGS'
9536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9539
9540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541/* end confdefs.h.  */
9542
9543
9544int
9545main ()
9546{
9547
9548    return 0;
9549
9550  ;
9551  return 0;
9552}
9553_ACEOF
9554if ac_fn_cxx_try_compile "$LINENO"; then :
9555  je_cv_cxxflags_added=-O
9556              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9557$as_echo "yes" >&6; }
9558else
9559  je_cv_cxxflags_added=
9560              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561$as_echo "no" >&6; }
9562              CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
9563
9564fi
9565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9566ac_ext=c
9567ac_cpp='$CPP $CPPFLAGS'
9568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9570ac_compiler_gnu=$ac_cv_c_compiler_gnu
9571
9572if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9573  CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9574else
9575  CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9576fi
9577
9578
9579  fi
9580fi
9581
9582# Check whether --enable-stats was given.
9583if test "${enable_stats+set}" = set; then :
9584  enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then
9585  enable_stats="0"
9586else
9587  enable_stats="1"
9588fi
9589
9590else
9591  enable_stats="1"
9592
9593fi
9594
9595if test "x$enable_stats" = "x1" ; then
9596  $as_echo "#define JEMALLOC_STATS  " >>confdefs.h
9597
9598fi
9599
9600
9601# Check whether --enable-experimental_smallocx was given.
9602if test "${enable_experimental_smallocx+set}" = set; then :
9603  enableval=$enable_experimental_smallocx; if test "x$enable_experimental_smallocx" = "xno" ; then
9604enable_experimental_smallocx="0"
9605else
9606enable_experimental_smallocx="1"
9607fi
9608
9609else
9610  enable_experimental_smallocx="0"
9611
9612fi
9613
9614if test "x$enable_experimental_smallocx" = "x1" ; then
9615  $as_echo "#define JEMALLOC_EXPERIMENTAL_SMALLOCX_API 1" >>confdefs.h
9616
9617fi
9618
9619
9620# Check whether --enable-prof was given.
9621if test "${enable_prof+set}" = set; then :
9622  enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then
9623  enable_prof="0"
9624else
9625  enable_prof="1"
9626fi
9627
9628else
9629  enable_prof="0"
9630
9631fi
9632
9633if test "x$enable_prof" = "x1" ; then
9634  backtrace_method=""
9635else
9636  backtrace_method="N/A"
9637fi
9638
9639# Check whether --enable-prof-libunwind was given.
9640if test "${enable_prof_libunwind+set}" = set; then :
9641  enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then
9642  enable_prof_libunwind="0"
9643else
9644  enable_prof_libunwind="1"
9645fi
9646
9647else
9648  enable_prof_libunwind="0"
9649
9650fi
9651
9652
9653# Check whether --with-static_libunwind was given.
9654if test "${with_static_libunwind+set}" = set; then :
9655  withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then
9656  LUNWIND="-lunwind"
9657else
9658  if test ! -f "$with_static_libunwind" ; then
9659    as_fn_error $? "Static libunwind not found: $with_static_libunwind" "$LINENO" 5
9660  fi
9661  LUNWIND="$with_static_libunwind"
9662fi
9663else
9664  LUNWIND="-lunwind"
9665
9666fi
9667
9668if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then
9669  for ac_header in libunwind.h
9670do :
9671  ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
9672if test "x$ac_cv_header_libunwind_h" = xyes; then :
9673  cat >>confdefs.h <<_ACEOF
9674#define HAVE_LIBUNWIND_H 1
9675_ACEOF
9676
9677else
9678  enable_prof_libunwind="0"
9679fi
9680
9681done
9682
9683  if test "x$LUNWIND" = "x-lunwind" ; then
9684    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unw_backtrace in -lunwind" >&5
9685$as_echo_n "checking for unw_backtrace in -lunwind... " >&6; }
9686if ${ac_cv_lib_unwind_unw_backtrace+:} false; then :
9687  $as_echo_n "(cached) " >&6
9688else
9689  ac_check_lib_save_LIBS=$LIBS
9690LIBS="-lunwind  $LIBS"
9691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692/* end confdefs.h.  */
9693
9694/* Override any GCC internal prototype to avoid an error.
9695   Use char because int might match the return type of a GCC
9696   builtin and then its argument prototype would still apply.  */
9697#ifdef __cplusplus
9698extern "C"
9699#endif
9700char unw_backtrace ();
9701int
9702main ()
9703{
9704return unw_backtrace ();
9705  ;
9706  return 0;
9707}
9708_ACEOF
9709if ac_fn_c_try_link "$LINENO"; then :
9710  ac_cv_lib_unwind_unw_backtrace=yes
9711else
9712  ac_cv_lib_unwind_unw_backtrace=no
9713fi
9714rm -f core conftest.err conftest.$ac_objext \
9715    conftest$ac_exeext conftest.$ac_ext
9716LIBS=$ac_check_lib_save_LIBS
9717fi
9718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_unw_backtrace" >&5
9719$as_echo "$ac_cv_lib_unwind_unw_backtrace" >&6; }
9720if test "x$ac_cv_lib_unwind_unw_backtrace" = xyes; then :
9721  T_APPEND_V=$LUNWIND
9722  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9723  LIBS="${LIBS}${T_APPEND_V}"
9724else
9725  LIBS="${LIBS} ${T_APPEND_V}"
9726fi
9727
9728
9729else
9730  enable_prof_libunwind="0"
9731fi
9732
9733  else
9734    T_APPEND_V=$LUNWIND
9735  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9736  LIBS="${LIBS}${T_APPEND_V}"
9737else
9738  LIBS="${LIBS} ${T_APPEND_V}"
9739fi
9740
9741
9742  fi
9743  if test "x${enable_prof_libunwind}" = "x1" ; then
9744    backtrace_method="libunwind"
9745    $as_echo "#define JEMALLOC_PROF_LIBUNWIND  " >>confdefs.h
9746
9747  fi
9748fi
9749
9750# Check whether --enable-prof-libgcc was given.
9751if test "${enable_prof_libgcc+set}" = set; then :
9752  enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then
9753  enable_prof_libgcc="0"
9754else
9755  enable_prof_libgcc="1"
9756fi
9757
9758else
9759  enable_prof_libgcc="1"
9760
9761fi
9762
9763if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \
9764     -a "x$GCC" = "xyes" ; then
9765  for ac_header in unwind.h
9766do :
9767  ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
9768if test "x$ac_cv_header_unwind_h" = xyes; then :
9769  cat >>confdefs.h <<_ACEOF
9770#define HAVE_UNWIND_H 1
9771_ACEOF
9772
9773else
9774  enable_prof_libgcc="0"
9775fi
9776
9777done
9778
9779  if test "x${enable_prof_libgcc}" = "x1" ; then
9780    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5
9781$as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; }
9782if ${ac_cv_lib_gcc__Unwind_Backtrace+:} false; then :
9783  $as_echo_n "(cached) " >&6
9784else
9785  ac_check_lib_save_LIBS=$LIBS
9786LIBS="-lgcc  $LIBS"
9787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9788/* end confdefs.h.  */
9789
9790/* Override any GCC internal prototype to avoid an error.
9791   Use char because int might match the return type of a GCC
9792   builtin and then its argument prototype would still apply.  */
9793#ifdef __cplusplus
9794extern "C"
9795#endif
9796char _Unwind_Backtrace ();
9797int
9798main ()
9799{
9800return _Unwind_Backtrace ();
9801  ;
9802  return 0;
9803}
9804_ACEOF
9805if ac_fn_c_try_link "$LINENO"; then :
9806  ac_cv_lib_gcc__Unwind_Backtrace=yes
9807else
9808  ac_cv_lib_gcc__Unwind_Backtrace=no
9809fi
9810rm -f core conftest.err conftest.$ac_objext \
9811    conftest$ac_exeext conftest.$ac_ext
9812LIBS=$ac_check_lib_save_LIBS
9813fi
9814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5
9815$as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; }
9816if test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes; then :
9817  T_APPEND_V=-lgcc
9818  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9819  LIBS="${LIBS}${T_APPEND_V}"
9820else
9821  LIBS="${LIBS} ${T_APPEND_V}"
9822fi
9823
9824
9825else
9826  enable_prof_libgcc="0"
9827fi
9828
9829  fi
9830  if test "x${enable_prof_libgcc}" = "x1" ; then
9831    backtrace_method="libgcc"
9832    $as_echo "#define JEMALLOC_PROF_LIBGCC  " >>confdefs.h
9833
9834  fi
9835else
9836  enable_prof_libgcc="0"
9837fi
9838
9839# Check whether --enable-prof-gcc was given.
9840if test "${enable_prof_gcc+set}" = set; then :
9841  enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then
9842  enable_prof_gcc="0"
9843else
9844  enable_prof_gcc="1"
9845fi
9846
9847else
9848  enable_prof_gcc="1"
9849
9850fi
9851
9852if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \
9853     -a "x$GCC" = "xyes" ; then
9854
9855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fno-omit-frame-pointer" >&5
9856$as_echo_n "checking whether compiler supports -fno-omit-frame-pointer... " >&6; }
9857T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9858T_APPEND_V=-fno-omit-frame-pointer
9859  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9860  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9861else
9862  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9863fi
9864
9865
9866if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9867  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9868else
9869  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9870fi
9871
9872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873/* end confdefs.h.  */
9874
9875
9876int
9877main ()
9878{
9879
9880    return 0;
9881
9882  ;
9883  return 0;
9884}
9885_ACEOF
9886if ac_fn_c_try_compile "$LINENO"; then :
9887  je_cv_cflags_added=-fno-omit-frame-pointer
9888              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9889$as_echo "yes" >&6; }
9890else
9891  je_cv_cflags_added=
9892              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893$as_echo "no" >&6; }
9894              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9895
9896fi
9897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9898if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9899  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9900else
9901  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9902fi
9903
9904
9905  backtrace_method="gcc intrinsics"
9906  $as_echo "#define JEMALLOC_PROF_GCC  " >>confdefs.h
9907
9908else
9909  enable_prof_gcc="0"
9910fi
9911
9912if test "x$backtrace_method" = "x" ; then
9913  backtrace_method="none (disabling profiling)"
9914  enable_prof="0"
9915fi
9916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5
9917$as_echo_n "checking configured backtracing method... " >&6; }
9918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5
9919$as_echo "$backtrace_method" >&6; }
9920if test "x$enable_prof" = "x1" ; then
9921    T_APPEND_V=$LM
9922  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9923  LIBS="${LIBS}${T_APPEND_V}"
9924else
9925  LIBS="${LIBS} ${T_APPEND_V}"
9926fi
9927
9928
9929
9930  $as_echo "#define JEMALLOC_PROF  " >>confdefs.h
9931
9932fi
9933
9934
9935if test "x${maps_coalesce}" = "x1" ; then
9936  $as_echo "#define JEMALLOC_MAPS_COALESCE  " >>confdefs.h
9937
9938fi
9939
9940if test "x$default_retain" = "x1" ; then
9941  $as_echo "#define JEMALLOC_RETAIN  " >>confdefs.h
9942
9943fi
9944
9945have_dss="1"
9946ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
9947if test "x$ac_cv_func_sbrk" = xyes; then :
9948  have_sbrk="1"
9949else
9950  have_sbrk="0"
9951fi
9952
9953if test "x$have_sbrk" = "x1" ; then
9954  if test "x$sbrk_deprecated" = "x1" ; then
9955    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling dss allocation because sbrk is deprecated" >&5
9956$as_echo "Disabling dss allocation because sbrk is deprecated" >&6; }
9957    have_dss="0"
9958  fi
9959else
9960  have_dss="0"
9961fi
9962
9963if test "x$have_dss" = "x1" ; then
9964  $as_echo "#define JEMALLOC_DSS  " >>confdefs.h
9965
9966fi
9967
9968# Check whether --enable-fill was given.
9969if test "${enable_fill+set}" = set; then :
9970  enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then
9971  enable_fill="0"
9972else
9973  enable_fill="1"
9974fi
9975
9976else
9977  enable_fill="1"
9978
9979fi
9980
9981if test "x$enable_fill" = "x1" ; then
9982  $as_echo "#define JEMALLOC_FILL  " >>confdefs.h
9983
9984fi
9985
9986
9987# Check whether --enable-utrace was given.
9988if test "${enable_utrace+set}" = set; then :
9989  enableval=$enable_utrace; if test "x$enable_utrace" = "xno" ; then
9990  enable_utrace="0"
9991else
9992  enable_utrace="1"
9993fi
9994
9995else
9996  enable_utrace="0"
9997
9998fi
9999
10000
10001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5
10002$as_echo_n "checking whether utrace(2) is compilable... " >&6; }
10003if ${je_cv_utrace+:} false; then :
10004  $as_echo_n "(cached) " >&6
10005else
10006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007/* end confdefs.h.  */
10008
10009#include <sys/types.h>
10010#include <sys/param.h>
10011#include <sys/time.h>
10012#include <sys/uio.h>
10013#include <sys/ktrace.h>
10014
10015int
10016main ()
10017{
10018
10019	utrace((void *)0, 0);
10020
10021  ;
10022  return 0;
10023}
10024_ACEOF
10025if ac_fn_c_try_link "$LINENO"; then :
10026  je_cv_utrace=yes
10027else
10028  je_cv_utrace=no
10029fi
10030rm -f core conftest.err conftest.$ac_objext \
10031    conftest$ac_exeext conftest.$ac_ext
10032fi
10033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5
10034$as_echo "$je_cv_utrace" >&6; }
10035
10036if test "x${je_cv_utrace}" = "xno" ; then
10037  enable_utrace="0"
10038fi
10039if test "x$enable_utrace" = "x1" ; then
10040  $as_echo "#define JEMALLOC_UTRACE  " >>confdefs.h
10041
10042fi
10043
10044
10045# Check whether --enable-xmalloc was given.
10046if test "${enable_xmalloc+set}" = set; then :
10047  enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then
10048  enable_xmalloc="0"
10049else
10050  enable_xmalloc="1"
10051fi
10052
10053else
10054  enable_xmalloc="0"
10055
10056fi
10057
10058if test "x$enable_xmalloc" = "x1" ; then
10059  $as_echo "#define JEMALLOC_XMALLOC  " >>confdefs.h
10060
10061fi
10062
10063
10064# Check whether --enable-cache-oblivious was given.
10065if test "${enable_cache_oblivious+set}" = set; then :
10066  enableval=$enable_cache_oblivious; if test "x$enable_cache_oblivious" = "xno" ; then
10067  enable_cache_oblivious="0"
10068else
10069  enable_cache_oblivious="1"
10070fi
10071
10072else
10073  enable_cache_oblivious="1"
10074
10075fi
10076
10077if test "x$enable_cache_oblivious" = "x1" ; then
10078  $as_echo "#define JEMALLOC_CACHE_OBLIVIOUS  " >>confdefs.h
10079
10080fi
10081
10082
10083# Check whether --enable-log was given.
10084if test "${enable_log+set}" = set; then :
10085  enableval=$enable_log; if test "x$enable_log" = "xno" ; then
10086  enable_log="0"
10087else
10088  enable_log="1"
10089fi
10090
10091else
10092  enable_log="0"
10093
10094fi
10095
10096if test "x$enable_log" = "x1" ; then
10097  $as_echo "#define JEMALLOC_LOG  " >>confdefs.h
10098
10099fi
10100
10101
10102# Check whether --enable-readlinkat was given.
10103if test "${enable_readlinkat+set}" = set; then :
10104  enableval=$enable_readlinkat; if test "x$enable_readlinkat" = "xno" ; then
10105  enable_readlinkat="0"
10106else
10107  enable_readlinkat="1"
10108fi
10109
10110else
10111  enable_readlinkat="0"
10112
10113fi
10114
10115if test "x$enable_readlinkat" = "x1" ; then
10116  $as_echo "#define JEMALLOC_READLINKAT  " >>confdefs.h
10117
10118fi
10119
10120
10121# Check whether --enable-extra-size-check was given.
10122if test "${enable_extra_size_check+set}" = set; then :
10123  enableval=$enable_extra_size_check; if test "x$enable_extra_size_check" = "xno" ; then
10124  enable_extra_size_check="0"
10125else
10126  enable_extra_size_check="1"
10127fi
10128
10129else
10130  enable_extra_size_check="0"
10131
10132fi
10133
10134if test "x$enable_extra_size_check" = "x1" ; then
10135  $as_echo "#define JEMALLOC_EXTRA_SIZE_CHECK  " >>confdefs.h
10136
10137fi
10138
10139
10140
10141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_unreachable is compilable" >&5
10142$as_echo_n "checking whether a program using __builtin_unreachable is compilable... " >&6; }
10143if ${je_cv_gcc_builtin_unreachable+:} false; then :
10144  $as_echo_n "(cached) " >&6
10145else
10146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147/* end confdefs.h.  */
10148
10149void foo (void) {
10150  __builtin_unreachable();
10151}
10152
10153int
10154main ()
10155{
10156
10157	{
10158		foo();
10159	}
10160
10161  ;
10162  return 0;
10163}
10164_ACEOF
10165if ac_fn_c_try_link "$LINENO"; then :
10166  je_cv_gcc_builtin_unreachable=yes
10167else
10168  je_cv_gcc_builtin_unreachable=no
10169fi
10170rm -f core conftest.err conftest.$ac_objext \
10171    conftest$ac_exeext conftest.$ac_ext
10172fi
10173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_unreachable" >&5
10174$as_echo "$je_cv_gcc_builtin_unreachable" >&6; }
10175
10176if test "x${je_cv_gcc_builtin_unreachable}" = "xyes" ; then
10177  $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable" >>confdefs.h
10178
10179else
10180  $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE abort" >>confdefs.h
10181
10182fi
10183
10184
10185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_ffsl is compilable" >&5
10186$as_echo_n "checking whether a program using __builtin_ffsl is compilable... " >&6; }
10187if ${je_cv_gcc_builtin_ffsl+:} false; then :
10188  $as_echo_n "(cached) " >&6
10189else
10190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191/* end confdefs.h.  */
10192
10193#include <stdio.h>
10194#include <strings.h>
10195#include <string.h>
10196
10197int
10198main ()
10199{
10200
10201	{
10202		int rv = __builtin_ffsl(0x08);
10203		printf("%d\n", rv);
10204	}
10205
10206  ;
10207  return 0;
10208}
10209_ACEOF
10210if ac_fn_c_try_link "$LINENO"; then :
10211  je_cv_gcc_builtin_ffsl=yes
10212else
10213  je_cv_gcc_builtin_ffsl=no
10214fi
10215rm -f core conftest.err conftest.$ac_objext \
10216    conftest$ac_exeext conftest.$ac_ext
10217fi
10218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_ffsl" >&5
10219$as_echo "$je_cv_gcc_builtin_ffsl" >&6; }
10220
10221if test "x${je_cv_gcc_builtin_ffsl}" = "xyes" ; then
10222  $as_echo "#define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll" >>confdefs.h
10223
10224  $as_echo "#define JEMALLOC_INTERNAL_FFSL __builtin_ffsl" >>confdefs.h
10225
10226  $as_echo "#define JEMALLOC_INTERNAL_FFS __builtin_ffs" >>confdefs.h
10227
10228else
10229
10230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5
10231$as_echo_n "checking whether a program using ffsl is compilable... " >&6; }
10232if ${je_cv_function_ffsl+:} false; then :
10233  $as_echo_n "(cached) " >&6
10234else
10235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10236/* end confdefs.h.  */
10237
10238  #include <stdio.h>
10239  #include <strings.h>
10240  #include <string.h>
10241
10242int
10243main ()
10244{
10245
10246	{
10247		int rv = ffsl(0x08);
10248		printf("%d\n", rv);
10249	}
10250
10251  ;
10252  return 0;
10253}
10254_ACEOF
10255if ac_fn_c_try_link "$LINENO"; then :
10256  je_cv_function_ffsl=yes
10257else
10258  je_cv_function_ffsl=no
10259fi
10260rm -f core conftest.err conftest.$ac_objext \
10261    conftest$ac_exeext conftest.$ac_ext
10262fi
10263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5
10264$as_echo "$je_cv_function_ffsl" >&6; }
10265
10266  if test "x${je_cv_function_ffsl}" = "xyes" ; then
10267    $as_echo "#define JEMALLOC_INTERNAL_FFSLL ffsll" >>confdefs.h
10268
10269    $as_echo "#define JEMALLOC_INTERNAL_FFSL ffsl" >>confdefs.h
10270
10271    $as_echo "#define JEMALLOC_INTERNAL_FFS ffs" >>confdefs.h
10272
10273  else
10274    as_fn_error $? "Cannot build without ffsl(3) or __builtin_ffsl()" "$LINENO" 5
10275  fi
10276fi
10277
10278
10279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_popcountl is compilable" >&5
10280$as_echo_n "checking whether a program using __builtin_popcountl is compilable... " >&6; }
10281if ${je_cv_gcc_builtin_popcountl+:} false; then :
10282  $as_echo_n "(cached) " >&6
10283else
10284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285/* end confdefs.h.  */
10286
10287#include <stdio.h>
10288#include <strings.h>
10289#include <string.h>
10290
10291int
10292main ()
10293{
10294
10295	{
10296		int rv = __builtin_popcountl(0x08);
10297		printf("%d\n", rv);
10298	}
10299
10300  ;
10301  return 0;
10302}
10303_ACEOF
10304if ac_fn_c_try_link "$LINENO"; then :
10305  je_cv_gcc_builtin_popcountl=yes
10306else
10307  je_cv_gcc_builtin_popcountl=no
10308fi
10309rm -f core conftest.err conftest.$ac_objext \
10310    conftest$ac_exeext conftest.$ac_ext
10311fi
10312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_popcountl" >&5
10313$as_echo "$je_cv_gcc_builtin_popcountl" >&6; }
10314
10315if test "x${je_cv_gcc_builtin_popcountl}" = "xyes" ; then
10316  $as_echo "#define JEMALLOC_INTERNAL_POPCOUNT __builtin_popcount" >>confdefs.h
10317
10318  $as_echo "#define JEMALLOC_INTERNAL_POPCOUNTL __builtin_popcountl" >>confdefs.h
10319
10320fi
10321
10322
10323# Check whether --with-lg_quantum was given.
10324if test "${with_lg_quantum+set}" = set; then :
10325  withval=$with_lg_quantum; LG_QUANTA="$with_lg_quantum"
10326else
10327  LG_QUANTA="3 4"
10328fi
10329
10330if test "x$with_lg_quantum" != "x" ; then
10331  cat >>confdefs.h <<_ACEOF
10332#define LG_QUANTUM $with_lg_quantum
10333_ACEOF
10334
10335fi
10336
10337
10338# Check whether --with-lg_page was given.
10339if test "${with_lg_page+set}" = set; then :
10340  withval=$with_lg_page; LG_PAGE="$with_lg_page"
10341else
10342  LG_PAGE="detect"
10343fi
10344
10345if test "x$LG_PAGE" = "xdetect"; then
10346  { $as_echo "$as_me:${as_lineno-$LINENO}: checking LG_PAGE" >&5
10347$as_echo_n "checking LG_PAGE... " >&6; }
10348if ${je_cv_lg_page+:} false; then :
10349  $as_echo_n "(cached) " >&6
10350else
10351  if test "$cross_compiling" = yes; then :
10352  je_cv_lg_page=12
10353else
10354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355/* end confdefs.h.  */
10356
10357#include <strings.h>
10358#ifdef _WIN32
10359#include <windows.h>
10360#else
10361#include <unistd.h>
10362#endif
10363#include <stdio.h>
10364
10365int
10366main ()
10367{
10368
10369    int result;
10370    FILE *f;
10371
10372#ifdef _WIN32
10373    SYSTEM_INFO si;
10374    GetSystemInfo(&si);
10375    result = si.dwPageSize;
10376#else
10377    result = sysconf(_SC_PAGESIZE);
10378#endif
10379    if (result == -1) {
10380	return 1;
10381    }
10382    result = JEMALLOC_INTERNAL_FFSL(result) - 1;
10383
10384    f = fopen("conftest.out", "w");
10385    if (f == NULL) {
10386	return 1;
10387    }
10388    fprintf(f, "%d", result);
10389    fclose(f);
10390
10391    return 0;
10392
10393  ;
10394  return 0;
10395}
10396_ACEOF
10397if ac_fn_c_try_run "$LINENO"; then :
10398  je_cv_lg_page=`cat conftest.out`
10399else
10400  je_cv_lg_page=undefined
10401fi
10402rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10403  conftest.$ac_objext conftest.beam conftest.$ac_ext
10404fi
10405
10406fi
10407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_page" >&5
10408$as_echo "$je_cv_lg_page" >&6; }
10409fi
10410if test "x${je_cv_lg_page}" != "x" ; then
10411  LG_PAGE="${je_cv_lg_page}"
10412fi
10413if test "x${LG_PAGE}" != "xundefined" ; then
10414   cat >>confdefs.h <<_ACEOF
10415#define LG_PAGE $LG_PAGE
10416_ACEOF
10417
10418else
10419   as_fn_error $? "cannot determine value for LG_PAGE" "$LINENO" 5
10420fi
10421
10422
10423# Check whether --with-lg_hugepage was given.
10424if test "${with_lg_hugepage+set}" = set; then :
10425  withval=$with_lg_hugepage; je_cv_lg_hugepage="${with_lg_hugepage}"
10426else
10427  je_cv_lg_hugepage=""
10428fi
10429
10430if test "x${je_cv_lg_hugepage}" = "x" ; then
10431          if test -e "/proc/meminfo" ; then
10432    hpsk=`cat /proc/meminfo 2>/dev/null | \
10433          grep -e '^Hugepagesize:[[:space:]]\+[0-9]\+[[:space:]]kB$' | \
10434          awk '{print $2}'`
10435    if test "x${hpsk}" != "x" ; then
10436      je_cv_lg_hugepage=10
10437      while test "${hpsk}" -gt 1 ; do
10438        hpsk="$((hpsk / 2))"
10439        je_cv_lg_hugepage="$((je_cv_lg_hugepage + 1))"
10440      done
10441    fi
10442  fi
10443
10444    if test "x${je_cv_lg_hugepage}" = "x" ; then
10445    je_cv_lg_hugepage=21
10446  fi
10447fi
10448if test "x${LG_PAGE}" != "xundefined" -a \
10449        "${je_cv_lg_hugepage}" -lt "${LG_PAGE}" ; then
10450  as_fn_error $? "Huge page size (2^${je_cv_lg_hugepage}) must be at least page size (2^${LG_PAGE})" "$LINENO" 5
10451fi
10452cat >>confdefs.h <<_ACEOF
10453#define LG_HUGEPAGE ${je_cv_lg_hugepage}
10454_ACEOF
10455
10456
10457# Check whether --enable-libdl was given.
10458if test "${enable_libdl+set}" = set; then :
10459  enableval=$enable_libdl; if test "x$enable_libdl" = "xno" ; then
10460  enable_libdl="0"
10461else
10462  enable_libdl="1"
10463fi
10464
10465else
10466  enable_libdl="1"
10467
10468fi
10469
10470
10471
10472
10473if test "x$abi" != "xpecoff" ; then
10474  $as_echo "#define JEMALLOC_HAVE_PTHREAD  " >>confdefs.h
10475
10476  for ac_header in pthread.h
10477do :
10478  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10479if test "x$ac_cv_header_pthread_h" = xyes; then :
10480  cat >>confdefs.h <<_ACEOF
10481#define HAVE_PTHREAD_H 1
10482_ACEOF
10483
10484else
10485  as_fn_error $? "pthread.h is missing" "$LINENO" 5
10486fi
10487
10488done
10489
10490      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
10491$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
10492if ${ac_cv_lib_pthread_pthread_create+:} false; then :
10493  $as_echo_n "(cached) " >&6
10494else
10495  ac_check_lib_save_LIBS=$LIBS
10496LIBS="-lpthread  $LIBS"
10497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498/* end confdefs.h.  */
10499
10500/* Override any GCC internal prototype to avoid an error.
10501   Use char because int might match the return type of a GCC
10502   builtin and then its argument prototype would still apply.  */
10503#ifdef __cplusplus
10504extern "C"
10505#endif
10506char pthread_create ();
10507int
10508main ()
10509{
10510return pthread_create ();
10511  ;
10512  return 0;
10513}
10514_ACEOF
10515if ac_fn_c_try_link "$LINENO"; then :
10516  ac_cv_lib_pthread_pthread_create=yes
10517else
10518  ac_cv_lib_pthread_pthread_create=no
10519fi
10520rm -f core conftest.err conftest.$ac_objext \
10521    conftest$ac_exeext conftest.$ac_ext
10522LIBS=$ac_check_lib_save_LIBS
10523fi
10524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
10525$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
10526if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
10527  T_APPEND_V=-pthread
10528  if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10529  LIBS="${LIBS}${T_APPEND_V}"
10530else
10531  LIBS="${LIBS} ${T_APPEND_V}"
10532fi
10533
10534
10535else
10536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10537$as_echo_n "checking for library containing pthread_create... " >&6; }
10538if ${ac_cv_search_pthread_create+:} false; then :
10539  $as_echo_n "(cached) " >&6
10540else
10541  ac_func_search_save_LIBS=$LIBS
10542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543/* end confdefs.h.  */
10544
10545/* Override any GCC internal prototype to avoid an error.
10546   Use char because int might match the return type of a GCC
10547   builtin and then its argument prototype would still apply.  */
10548#ifdef __cplusplus
10549extern "C"
10550#endif
10551char pthread_create ();
10552int
10553main ()
10554{
10555return pthread_create ();
10556  ;
10557  return 0;
10558}
10559_ACEOF
10560for ac_lib in '' ; do
10561  if test -z "$ac_lib"; then
10562    ac_res="none required"
10563  else
10564    ac_res=-l$ac_lib
10565    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10566  fi
10567  if ac_fn_c_try_link "$LINENO"; then :
10568  ac_cv_search_pthread_create=$ac_res
10569fi
10570rm -f core conftest.err conftest.$ac_objext \
10571    conftest$ac_exeext
10572  if ${ac_cv_search_pthread_create+:} false; then :
10573  break
10574fi
10575done
10576if ${ac_cv_search_pthread_create+:} false; then :
10577
10578else
10579  ac_cv_search_pthread_create=no
10580fi
10581rm conftest.$ac_ext
10582LIBS=$ac_func_search_save_LIBS
10583fi
10584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10585$as_echo "$ac_cv_search_pthread_create" >&6; }
10586ac_res=$ac_cv_search_pthread_create
10587if test "$ac_res" != no; then :
10588  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10589
10590else
10591  as_fn_error $? "libpthread is missing" "$LINENO" 5
10592fi
10593
10594fi
10595
10596  wrap_syms="${wrap_syms} pthread_create"
10597  have_pthread="1"
10598
10599  if test "x$enable_libdl" = "x1" ; then
10600    have_dlsym="1"
10601    for ac_header in dlfcn.h
10602do :
10603  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10604if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10605  cat >>confdefs.h <<_ACEOF
10606#define HAVE_DLFCN_H 1
10607_ACEOF
10608 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
10609if test "x$ac_cv_func_dlsym" = xyes; then :
10610
10611else
10612  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
10613$as_echo_n "checking for dlsym in -ldl... " >&6; }
10614if ${ac_cv_lib_dl_dlsym+:} false; then :
10615  $as_echo_n "(cached) " >&6
10616else
10617  ac_check_lib_save_LIBS=$LIBS
10618LIBS="-ldl  $LIBS"
10619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620/* end confdefs.h.  */
10621
10622/* Override any GCC internal prototype to avoid an error.
10623   Use char because int might match the return type of a GCC
10624   builtin and then its argument prototype would still apply.  */
10625#ifdef __cplusplus
10626extern "C"
10627#endif
10628char dlsym ();
10629int
10630main ()
10631{
10632return dlsym ();
10633  ;
10634  return 0;
10635}
10636_ACEOF
10637if ac_fn_c_try_link "$LINENO"; then :
10638  ac_cv_lib_dl_dlsym=yes
10639else
10640  ac_cv_lib_dl_dlsym=no
10641fi
10642rm -f core conftest.err conftest.$ac_objext \
10643    conftest$ac_exeext conftest.$ac_ext
10644LIBS=$ac_check_lib_save_LIBS
10645fi
10646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
10647$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
10648if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
10649  LIBS="$LIBS -ldl"
10650else
10651  have_dlsym="0"
10652fi
10653
10654fi
10655
10656else
10657  have_dlsym="0"
10658fi
10659
10660done
10661
10662    if test "x$have_dlsym" = "x1" ; then
10663      $as_echo "#define JEMALLOC_HAVE_DLSYM  " >>confdefs.h
10664
10665    fi
10666  else
10667    have_dlsym="0"
10668  fi
10669
10670
10671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_atfork(3) is compilable" >&5
10672$as_echo_n "checking whether pthread_atfork(3) is compilable... " >&6; }
10673if ${je_cv_pthread_atfork+:} false; then :
10674  $as_echo_n "(cached) " >&6
10675else
10676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10677/* end confdefs.h.  */
10678
10679#include <pthread.h>
10680
10681int
10682main ()
10683{
10684
10685  pthread_atfork((void *)0, (void *)0, (void *)0);
10686
10687  ;
10688  return 0;
10689}
10690_ACEOF
10691if ac_fn_c_try_link "$LINENO"; then :
10692  je_cv_pthread_atfork=yes
10693else
10694  je_cv_pthread_atfork=no
10695fi
10696rm -f core conftest.err conftest.$ac_objext \
10697    conftest$ac_exeext conftest.$ac_ext
10698fi
10699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_atfork" >&5
10700$as_echo "$je_cv_pthread_atfork" >&6; }
10701
10702  if test "x${je_cv_pthread_atfork}" = "xyes" ; then
10703    $as_echo "#define JEMALLOC_HAVE_PTHREAD_ATFORK  " >>confdefs.h
10704
10705  fi
10706
10707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np(3) is compilable" >&5
10708$as_echo_n "checking whether pthread_setname_np(3) is compilable... " >&6; }
10709if ${je_cv_pthread_setname_np+:} false; then :
10710  $as_echo_n "(cached) " >&6
10711else
10712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713/* end confdefs.h.  */
10714
10715#include <pthread.h>
10716
10717int
10718main ()
10719{
10720
10721  pthread_setname_np(pthread_self(), "setname_test");
10722
10723  ;
10724  return 0;
10725}
10726_ACEOF
10727if ac_fn_c_try_link "$LINENO"; then :
10728  je_cv_pthread_setname_np=yes
10729else
10730  je_cv_pthread_setname_np=no
10731fi
10732rm -f core conftest.err conftest.$ac_objext \
10733    conftest$ac_exeext conftest.$ac_ext
10734fi
10735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_setname_np" >&5
10736$as_echo "$je_cv_pthread_setname_np" >&6; }
10737
10738  if test "x${je_cv_pthread_setname_np}" = "xyes" ; then
10739    $as_echo "#define JEMALLOC_HAVE_PTHREAD_SETNAME_NP  " >>confdefs.h
10740
10741  fi
10742fi
10743
10744T_APPEND_V=-D_REENTRANT
10745  if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10746  CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
10747else
10748  CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
10749fi
10750
10751
10752
10753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
10754$as_echo_n "checking for library containing clock_gettime... " >&6; }
10755if ${ac_cv_search_clock_gettime+:} false; then :
10756  $as_echo_n "(cached) " >&6
10757else
10758  ac_func_search_save_LIBS=$LIBS
10759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760/* end confdefs.h.  */
10761
10762/* Override any GCC internal prototype to avoid an error.
10763   Use char because int might match the return type of a GCC
10764   builtin and then its argument prototype would still apply.  */
10765#ifdef __cplusplus
10766extern "C"
10767#endif
10768char clock_gettime ();
10769int
10770main ()
10771{
10772return clock_gettime ();
10773  ;
10774  return 0;
10775}
10776_ACEOF
10777for ac_lib in '' rt; do
10778  if test -z "$ac_lib"; then
10779    ac_res="none required"
10780  else
10781    ac_res=-l$ac_lib
10782    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10783  fi
10784  if ac_fn_c_try_link "$LINENO"; then :
10785  ac_cv_search_clock_gettime=$ac_res
10786fi
10787rm -f core conftest.err conftest.$ac_objext \
10788    conftest$ac_exeext
10789  if ${ac_cv_search_clock_gettime+:} false; then :
10790  break
10791fi
10792done
10793if ${ac_cv_search_clock_gettime+:} false; then :
10794
10795else
10796  ac_cv_search_clock_gettime=no
10797fi
10798rm conftest.$ac_ext
10799LIBS=$ac_func_search_save_LIBS
10800fi
10801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
10802$as_echo "$ac_cv_search_clock_gettime" >&6; }
10803ac_res=$ac_cv_search_clock_gettime
10804if test "$ac_res" != no; then :
10805  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10806
10807fi
10808
10809
10810if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
10811  if test "$ac_cv_search_clock_gettime" != "-lrt"; then
10812    SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10813
10814
10815    unset ac_cv_search_clock_gettime
10816
10817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -dynamic" >&5
10818$as_echo_n "checking whether compiler supports -dynamic... " >&6; }
10819T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10820T_APPEND_V=-dynamic
10821  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10822  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
10823else
10824  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
10825fi
10826
10827
10828if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10829  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10830else
10831  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10832fi
10833
10834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835/* end confdefs.h.  */
10836
10837
10838int
10839main ()
10840{
10841
10842    return 0;
10843
10844  ;
10845  return 0;
10846}
10847_ACEOF
10848if ac_fn_c_try_compile "$LINENO"; then :
10849  je_cv_cflags_added=-dynamic
10850              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10851$as_echo "yes" >&6; }
10852else
10853  je_cv_cflags_added=
10854              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10855$as_echo "no" >&6; }
10856              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
10857
10858fi
10859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10860if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10861  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10862else
10863  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10864fi
10865
10866
10867    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
10868$as_echo_n "checking for library containing clock_gettime... " >&6; }
10869if ${ac_cv_search_clock_gettime+:} false; then :
10870  $as_echo_n "(cached) " >&6
10871else
10872  ac_func_search_save_LIBS=$LIBS
10873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874/* end confdefs.h.  */
10875
10876/* Override any GCC internal prototype to avoid an error.
10877   Use char because int might match the return type of a GCC
10878   builtin and then its argument prototype would still apply.  */
10879#ifdef __cplusplus
10880extern "C"
10881#endif
10882char clock_gettime ();
10883int
10884main ()
10885{
10886return clock_gettime ();
10887  ;
10888  return 0;
10889}
10890_ACEOF
10891for ac_lib in '' rt; do
10892  if test -z "$ac_lib"; then
10893    ac_res="none required"
10894  else
10895    ac_res=-l$ac_lib
10896    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10897  fi
10898  if ac_fn_c_try_link "$LINENO"; then :
10899  ac_cv_search_clock_gettime=$ac_res
10900fi
10901rm -f core conftest.err conftest.$ac_objext \
10902    conftest$ac_exeext
10903  if ${ac_cv_search_clock_gettime+:} false; then :
10904  break
10905fi
10906done
10907if ${ac_cv_search_clock_gettime+:} false; then :
10908
10909else
10910  ac_cv_search_clock_gettime=no
10911fi
10912rm conftest.$ac_ext
10913LIBS=$ac_func_search_save_LIBS
10914fi
10915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
10916$as_echo "$ac_cv_search_clock_gettime" >&6; }
10917ac_res=$ac_cv_search_clock_gettime
10918if test "$ac_res" != no; then :
10919  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10920
10921fi
10922
10923
10924    CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
10925if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10926  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10927else
10928  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10929fi
10930
10931
10932  fi
10933fi
10934
10935
10936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable" >&5
10937$as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... " >&6; }
10938if ${je_cv_clock_monotonic_coarse+:} false; then :
10939  $as_echo_n "(cached) " >&6
10940else
10941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942/* end confdefs.h.  */
10943
10944#include <time.h>
10945
10946int
10947main ()
10948{
10949
10950	struct timespec ts;
10951
10952	clock_gettime(CLOCK_MONOTONIC_COARSE, &ts);
10953
10954  ;
10955  return 0;
10956}
10957_ACEOF
10958if ac_fn_c_try_link "$LINENO"; then :
10959  je_cv_clock_monotonic_coarse=yes
10960else
10961  je_cv_clock_monotonic_coarse=no
10962fi
10963rm -f core conftest.err conftest.$ac_objext \
10964    conftest$ac_exeext conftest.$ac_ext
10965fi
10966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic_coarse" >&5
10967$as_echo "$je_cv_clock_monotonic_coarse" >&6; }
10968
10969if test "x${je_cv_clock_monotonic_coarse}" = "xyes" ; then
10970  $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1" >>confdefs.h
10971
10972fi
10973
10974
10975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable" >&5
10976$as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... " >&6; }
10977if ${je_cv_clock_monotonic+:} false; then :
10978  $as_echo_n "(cached) " >&6
10979else
10980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10981/* end confdefs.h.  */
10982
10983#include <unistd.h>
10984#include <time.h>
10985
10986int
10987main ()
10988{
10989
10990	struct timespec ts;
10991
10992	clock_gettime(CLOCK_MONOTONIC, &ts);
10993#if !defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK < 0
10994#  error _POSIX_MONOTONIC_CLOCK missing/invalid
10995#endif
10996
10997  ;
10998  return 0;
10999}
11000_ACEOF
11001if ac_fn_c_try_link "$LINENO"; then :
11002  je_cv_clock_monotonic=yes
11003else
11004  je_cv_clock_monotonic=no
11005fi
11006rm -f core conftest.err conftest.$ac_objext \
11007    conftest$ac_exeext conftest.$ac_ext
11008fi
11009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic" >&5
11010$as_echo "$je_cv_clock_monotonic" >&6; }
11011
11012if test "x${je_cv_clock_monotonic}" = "xyes" ; then
11013  $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
11014
11015fi
11016
11017
11018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mach_absolute_time() is compilable" >&5
11019$as_echo_n "checking whether mach_absolute_time() is compilable... " >&6; }
11020if ${je_cv_mach_absolute_time+:} false; then :
11021  $as_echo_n "(cached) " >&6
11022else
11023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024/* end confdefs.h.  */
11025
11026#include <mach/mach_time.h>
11027
11028int
11029main ()
11030{
11031
11032	mach_absolute_time();
11033
11034  ;
11035  return 0;
11036}
11037_ACEOF
11038if ac_fn_c_try_link "$LINENO"; then :
11039  je_cv_mach_absolute_time=yes
11040else
11041  je_cv_mach_absolute_time=no
11042fi
11043rm -f core conftest.err conftest.$ac_objext \
11044    conftest$ac_exeext conftest.$ac_ext
11045fi
11046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mach_absolute_time" >&5
11047$as_echo "$je_cv_mach_absolute_time" >&6; }
11048
11049if test "x${je_cv_mach_absolute_time}" = "xyes" ; then
11050  $as_echo "#define JEMALLOC_HAVE_MACH_ABSOLUTE_TIME 1" >>confdefs.h
11051
11052fi
11053
11054# Check whether --enable-syscall was given.
11055if test "${enable_syscall+set}" = set; then :
11056  enableval=$enable_syscall; if test "x$enable_syscall" = "xno" ; then
11057  enable_syscall="0"
11058else
11059  enable_syscall="1"
11060fi
11061
11062else
11063  enable_syscall="1"
11064
11065fi
11066
11067if test "x$enable_syscall" = "x1" ; then
11068      SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
11069
11070
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
11072$as_echo_n "checking whether compiler supports -Werror... " >&6; }
11073T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
11074T_APPEND_V=-Werror
11075  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
11076  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
11077else
11078  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
11079fi
11080
11081
11082if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11083  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11084else
11085  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11086fi
11087
11088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11089/* end confdefs.h.  */
11090
11091
11092int
11093main ()
11094{
11095
11096    return 0;
11097
11098  ;
11099  return 0;
11100}
11101_ACEOF
11102if ac_fn_c_try_compile "$LINENO"; then :
11103  je_cv_cflags_added=-Werror
11104              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11105$as_echo "yes" >&6; }
11106else
11107  je_cv_cflags_added=
11108              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11109$as_echo "no" >&6; }
11110              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
11111
11112fi
11113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11114if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11115  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11116else
11117  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11118fi
11119
11120
11121
11122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syscall(2) is compilable" >&5
11123$as_echo_n "checking whether syscall(2) is compilable... " >&6; }
11124if ${je_cv_syscall+:} false; then :
11125  $as_echo_n "(cached) " >&6
11126else
11127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128/* end confdefs.h.  */
11129
11130#include <sys/syscall.h>
11131#include <unistd.h>
11132
11133int
11134main ()
11135{
11136
11137	syscall(SYS_write, 2, "hello", 5);
11138
11139  ;
11140  return 0;
11141}
11142_ACEOF
11143if ac_fn_c_try_link "$LINENO"; then :
11144  je_cv_syscall=yes
11145else
11146  je_cv_syscall=no
11147fi
11148rm -f core conftest.err conftest.$ac_objext \
11149    conftest$ac_exeext conftest.$ac_ext
11150fi
11151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_syscall" >&5
11152$as_echo "$je_cv_syscall" >&6; }
11153
11154  CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
11155if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11156  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11157else
11158  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11159fi
11160
11161
11162  if test "x$je_cv_syscall" = "xyes" ; then
11163    $as_echo "#define JEMALLOC_USE_SYSCALL  " >>confdefs.h
11164
11165  fi
11166fi
11167
11168ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
11169if test "x$ac_cv_func_secure_getenv" = xyes; then :
11170  have_secure_getenv="1"
11171else
11172  have_secure_getenv="0"
11173
11174fi
11175
11176if test "x$have_secure_getenv" = "x1" ; then
11177  $as_echo "#define JEMALLOC_HAVE_SECURE_GETENV  " >>confdefs.h
11178
11179fi
11180
11181ac_fn_c_check_func "$LINENO" "sched_getcpu" "ac_cv_func_sched_getcpu"
11182if test "x$ac_cv_func_sched_getcpu" = xyes; then :
11183  have_sched_getcpu="1"
11184else
11185  have_sched_getcpu="0"
11186
11187fi
11188
11189if test "x$have_sched_getcpu" = "x1" ; then
11190  $as_echo "#define JEMALLOC_HAVE_SCHED_GETCPU  " >>confdefs.h
11191
11192fi
11193
11194ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity"
11195if test "x$ac_cv_func_sched_setaffinity" = xyes; then :
11196  have_sched_setaffinity="1"
11197else
11198  have_sched_setaffinity="0"
11199
11200fi
11201
11202if test "x$have_sched_setaffinity" = "x1" ; then
11203  $as_echo "#define JEMALLOC_HAVE_SCHED_SETAFFINITY  " >>confdefs.h
11204
11205fi
11206
11207ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
11208if test "x$ac_cv_func_issetugid" = xyes; then :
11209  have_issetugid="1"
11210else
11211  have_issetugid="0"
11212
11213fi
11214
11215if test "x$have_issetugid" = "x1" ; then
11216  $as_echo "#define JEMALLOC_HAVE_ISSETUGID  " >>confdefs.h
11217
11218fi
11219
11220ac_fn_c_check_func "$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup"
11221if test "x$ac_cv_func__malloc_thread_cleanup" = xyes; then :
11222  have__malloc_thread_cleanup="1"
11223else
11224  have__malloc_thread_cleanup="0"
11225
11226fi
11227
11228if test "x$have__malloc_thread_cleanup" = "x1" ; then
11229  $as_echo "#define JEMALLOC_MALLOC_THREAD_CLEANUP  " >>confdefs.h
11230
11231  wrap_syms="${wrap_syms} _malloc_thread_cleanup"
11232  force_tls="1"
11233fi
11234
11235ac_fn_c_check_func "$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb"
11236if test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes; then :
11237  have__pthread_mutex_init_calloc_cb="1"
11238else
11239  have__pthread_mutex_init_calloc_cb="0"
11240
11241fi
11242
11243if test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then
11244  $as_echo "#define JEMALLOC_MUTEX_INIT_CB 1" >>confdefs.h
11245
11246  wrap_syms="${wrap_syms} _malloc_prefork _malloc_postfork"
11247fi
11248
11249# Check whether --enable-lazy_lock was given.
11250if test "${enable_lazy_lock+set}" = set; then :
11251  enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then
11252  enable_lazy_lock="0"
11253else
11254  enable_lazy_lock="1"
11255fi
11256
11257else
11258  enable_lazy_lock=""
11259
11260fi
11261
11262if test "x${enable_lazy_lock}" = "x" ; then
11263  if test "x${force_lazy_lock}" = "x1" ; then
11264    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5
11265$as_echo "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; }
11266    enable_lazy_lock="1"
11267  else
11268    enable_lazy_lock="0"
11269  fi
11270fi
11271if test "x${enable_lazy_lock}" = "x1" -a "x${abi}" = "xpecoff" ; then
11272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no lazy-lock because thread creation monitoring is unimplemented" >&5
11273$as_echo "Forcing no lazy-lock because thread creation monitoring is unimplemented" >&6; }
11274  enable_lazy_lock="0"
11275fi
11276if test "x$enable_lazy_lock" = "x1" ; then
11277  if test "x$have_dlsym" = "x1" ; then
11278    $as_echo "#define JEMALLOC_LAZY_LOCK  " >>confdefs.h
11279
11280  else
11281    as_fn_error $? "Missing dlsym support: lazy-lock cannot be enabled." "$LINENO" 5
11282  fi
11283fi
11284
11285
11286if test "x${force_tls}" = "x1" ; then
11287  enable_tls="1"
11288elif test "x${force_tls}" = "x0" ; then
11289  enable_tls="0"
11290else
11291  enable_tls="1"
11292fi
11293if test "x${enable_tls}" = "x1" ; then
11294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
11295$as_echo_n "checking for TLS... " >&6; }
11296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297/* end confdefs.h.  */
11298
11299    __thread int x;
11300
11301int
11302main ()
11303{
11304
11305    x = 42;
11306
11307    return 0;
11308
11309  ;
11310  return 0;
11311}
11312_ACEOF
11313if ac_fn_c_try_compile "$LINENO"; then :
11314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11315$as_echo "yes" >&6; }
11316else
11317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318$as_echo "no" >&6; }
11319              enable_tls="0"
11320fi
11321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11322else
11323  enable_tls="0"
11324fi
11325
11326if test "x${enable_tls}" = "x1" ; then
11327  cat >>confdefs.h <<_ACEOF
11328#define JEMALLOC_TLS
11329_ACEOF
11330
11331fi
11332
11333
11334
11335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 atomics is compilable" >&5
11336$as_echo_n "checking whether C11 atomics is compilable... " >&6; }
11337if ${je_cv_c11_atomics+:} false; then :
11338  $as_echo_n "(cached) " >&6
11339else
11340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11341/* end confdefs.h.  */
11342
11343#include <stdint.h>
11344#if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_ATOMICS__)
11345#include <stdatomic.h>
11346#else
11347#error Atomics not available
11348#endif
11349
11350int
11351main ()
11352{
11353
11354    uint64_t *p = (uint64_t *)0;
11355    uint64_t x = 1;
11356    volatile atomic_uint_least64_t *a = (volatile atomic_uint_least64_t *)p;
11357    uint64_t r = atomic_fetch_add(a, x) + x;
11358    return r == 0;
11359
11360  ;
11361  return 0;
11362}
11363_ACEOF
11364if ac_fn_c_try_link "$LINENO"; then :
11365  je_cv_c11_atomics=yes
11366else
11367  je_cv_c11_atomics=no
11368fi
11369rm -f core conftest.err conftest.$ac_objext \
11370    conftest$ac_exeext conftest.$ac_ext
11371fi
11372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_c11_atomics" >&5
11373$as_echo "$je_cv_c11_atomics" >&6; }
11374
11375if test "x${je_cv_c11_atomics}" = "xyes" ; then
11376  $as_echo "#define JEMALLOC_C11_ATOMICS 1" >>confdefs.h
11377
11378fi
11379
11380
11381
11382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __atomic atomics is compilable" >&5
11383$as_echo_n "checking whether GCC __atomic atomics is compilable... " >&6; }
11384if ${je_cv_gcc_atomic_atomics+:} false; then :
11385  $as_echo_n "(cached) " >&6
11386else
11387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11388/* end confdefs.h.  */
11389
11390
11391int
11392main ()
11393{
11394
11395    int x = 0;
11396    int val = 1;
11397    int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED);
11398    int after_add = x;
11399    return after_add == 1;
11400
11401  ;
11402  return 0;
11403}
11404_ACEOF
11405if ac_fn_c_try_link "$LINENO"; then :
11406  je_cv_gcc_atomic_atomics=yes
11407else
11408  je_cv_gcc_atomic_atomics=no
11409fi
11410rm -f core conftest.err conftest.$ac_objext \
11411    conftest$ac_exeext conftest.$ac_ext
11412fi
11413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_atomic_atomics" >&5
11414$as_echo "$je_cv_gcc_atomic_atomics" >&6; }
11415
11416if test "x${je_cv_gcc_atomic_atomics}" = "xyes" ; then
11417  $as_echo "#define JEMALLOC_GCC_ATOMIC_ATOMICS 1" >>confdefs.h
11418
11419
11420
11421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC 8-bit __atomic atomics is compilable" >&5
11422$as_echo_n "checking whether GCC 8-bit __atomic atomics is compilable... " >&6; }
11423if ${je_cv_gcc_u8_atomic_atomics+:} false; then :
11424  $as_echo_n "(cached) " >&6
11425else
11426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427/* end confdefs.h.  */
11428
11429
11430int
11431main ()
11432{
11433
11434      unsigned char x = 0;
11435      int val = 1;
11436      int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED);
11437      int after_add = (int)x;
11438      return after_add == 1;
11439
11440  ;
11441  return 0;
11442}
11443_ACEOF
11444if ac_fn_c_try_link "$LINENO"; then :
11445  je_cv_gcc_u8_atomic_atomics=yes
11446else
11447  je_cv_gcc_u8_atomic_atomics=no
11448fi
11449rm -f core conftest.err conftest.$ac_objext \
11450    conftest$ac_exeext conftest.$ac_ext
11451fi
11452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_u8_atomic_atomics" >&5
11453$as_echo "$je_cv_gcc_u8_atomic_atomics" >&6; }
11454
11455  if test "x${je_cv_gcc_u8_atomic_atomics}" = "xyes" ; then
11456    $as_echo "#define JEMALLOC_GCC_U8_ATOMIC_ATOMICS 1" >>confdefs.h
11457
11458  fi
11459fi
11460
11461
11462
11463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __sync atomics is compilable" >&5
11464$as_echo_n "checking whether GCC __sync atomics is compilable... " >&6; }
11465if ${je_cv_gcc_sync_atomics+:} false; then :
11466  $as_echo_n "(cached) " >&6
11467else
11468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11469/* end confdefs.h.  */
11470
11471
11472int
11473main ()
11474{
11475
11476    int x = 0;
11477    int before_add = __sync_fetch_and_add(&x, 1);
11478    int after_add = x;
11479    return (before_add == 0) && (after_add == 1);
11480
11481  ;
11482  return 0;
11483}
11484_ACEOF
11485if ac_fn_c_try_link "$LINENO"; then :
11486  je_cv_gcc_sync_atomics=yes
11487else
11488  je_cv_gcc_sync_atomics=no
11489fi
11490rm -f core conftest.err conftest.$ac_objext \
11491    conftest$ac_exeext conftest.$ac_ext
11492fi
11493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_sync_atomics" >&5
11494$as_echo "$je_cv_gcc_sync_atomics" >&6; }
11495
11496if test "x${je_cv_gcc_sync_atomics}" = "xyes" ; then
11497  $as_echo "#define JEMALLOC_GCC_SYNC_ATOMICS 1" >>confdefs.h
11498
11499
11500
11501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC 8-bit __sync atomics is compilable" >&5
11502$as_echo_n "checking whether GCC 8-bit __sync atomics is compilable... " >&6; }
11503if ${je_cv_gcc_u8_sync_atomics+:} false; then :
11504  $as_echo_n "(cached) " >&6
11505else
11506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11507/* end confdefs.h.  */
11508
11509
11510int
11511main ()
11512{
11513
11514      unsigned char x = 0;
11515      int before_add = __sync_fetch_and_add(&x, 1);
11516      int after_add = (int)x;
11517      return (before_add == 0) && (after_add == 1);
11518
11519  ;
11520  return 0;
11521}
11522_ACEOF
11523if ac_fn_c_try_link "$LINENO"; then :
11524  je_cv_gcc_u8_sync_atomics=yes
11525else
11526  je_cv_gcc_u8_sync_atomics=no
11527fi
11528rm -f core conftest.err conftest.$ac_objext \
11529    conftest$ac_exeext conftest.$ac_ext
11530fi
11531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_u8_sync_atomics" >&5
11532$as_echo "$je_cv_gcc_u8_sync_atomics" >&6; }
11533
11534  if test "x${je_cv_gcc_u8_sync_atomics}" = "xyes" ; then
11535    $as_echo "#define JEMALLOC_GCC_U8_SYNC_ATOMICS 1" >>confdefs.h
11536
11537  fi
11538fi
11539
11540
11541
11542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5
11543$as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; }
11544if ${je_cv_osatomic+:} false; then :
11545  $as_echo_n "(cached) " >&6
11546else
11547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548/* end confdefs.h.  */
11549
11550#include <libkern/OSAtomic.h>
11551#include <inttypes.h>
11552
11553int
11554main ()
11555{
11556
11557	{
11558		int32_t x32 = 0;
11559		volatile int32_t *x32p = &x32;
11560		OSAtomicAdd32(1, x32p);
11561	}
11562	{
11563		int64_t x64 = 0;
11564		volatile int64_t *x64p = &x64;
11565		OSAtomicAdd64(1, x64p);
11566	}
11567
11568  ;
11569  return 0;
11570}
11571_ACEOF
11572if ac_fn_c_try_link "$LINENO"; then :
11573  je_cv_osatomic=yes
11574else
11575  je_cv_osatomic=no
11576fi
11577rm -f core conftest.err conftest.$ac_objext \
11578    conftest$ac_exeext conftest.$ac_ext
11579fi
11580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5
11581$as_echo "$je_cv_osatomic" >&6; }
11582
11583if test "x${je_cv_osatomic}" = "xyes" ; then
11584  $as_echo "#define JEMALLOC_OSATOMIC  " >>confdefs.h
11585
11586fi
11587
11588
11589
11590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(2) is compilable" >&5
11591$as_echo_n "checking whether madvise(2) is compilable... " >&6; }
11592if ${je_cv_madvise+:} false; then :
11593  $as_echo_n "(cached) " >&6
11594else
11595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11596/* end confdefs.h.  */
11597
11598#include <sys/mman.h>
11599
11600int
11601main ()
11602{
11603
11604	madvise((void *)0, 0, 0);
11605
11606  ;
11607  return 0;
11608}
11609_ACEOF
11610if ac_fn_c_try_link "$LINENO"; then :
11611  je_cv_madvise=yes
11612else
11613  je_cv_madvise=no
11614fi
11615rm -f core conftest.err conftest.$ac_objext \
11616    conftest$ac_exeext conftest.$ac_ext
11617fi
11618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madvise" >&5
11619$as_echo "$je_cv_madvise" >&6; }
11620
11621if test "x${je_cv_madvise}" = "xyes" ; then
11622  $as_echo "#define JEMALLOC_HAVE_MADVISE  " >>confdefs.h
11623
11624
11625
11626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_FREE) is compilable" >&5
11627$as_echo_n "checking whether madvise(..., MADV_FREE) is compilable... " >&6; }
11628if ${je_cv_madv_free+:} false; then :
11629  $as_echo_n "(cached) " >&6
11630else
11631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11632/* end confdefs.h.  */
11633
11634#include <sys/mman.h>
11635
11636int
11637main ()
11638{
11639
11640	madvise((void *)0, 0, MADV_FREE);
11641
11642  ;
11643  return 0;
11644}
11645_ACEOF
11646if ac_fn_c_try_link "$LINENO"; then :
11647  je_cv_madv_free=yes
11648else
11649  je_cv_madv_free=no
11650fi
11651rm -f core conftest.err conftest.$ac_objext \
11652    conftest$ac_exeext conftest.$ac_ext
11653fi
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_free" >&5
11655$as_echo "$je_cv_madv_free" >&6; }
11656
11657  if test "x${je_cv_madv_free}" = "xyes" ; then
11658    $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
11659
11660  elif test "x${je_cv_madvise}" = "xyes" ; then
11661    case "${host_cpu}" in i686|x86_64)
11662        case "${host}" in *-*-linux*)
11663            $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE  " >>confdefs.h
11664
11665            $as_echo "#define JEMALLOC_DEFINE_MADVISE_FREE  " >>confdefs.h
11666
11667	    ;;
11668        esac
11669        ;;
11670    esac
11671  fi
11672
11673
11674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DONTNEED) is compilable" >&5
11675$as_echo_n "checking whether madvise(..., MADV_DONTNEED) is compilable... " >&6; }
11676if ${je_cv_madv_dontneed+:} false; then :
11677  $as_echo_n "(cached) " >&6
11678else
11679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11680/* end confdefs.h.  */
11681
11682#include <sys/mman.h>
11683
11684int
11685main ()
11686{
11687
11688	madvise((void *)0, 0, MADV_DONTNEED);
11689
11690  ;
11691  return 0;
11692}
11693_ACEOF
11694if ac_fn_c_try_link "$LINENO"; then :
11695  je_cv_madv_dontneed=yes
11696else
11697  je_cv_madv_dontneed=no
11698fi
11699rm -f core conftest.err conftest.$ac_objext \
11700    conftest$ac_exeext conftest.$ac_ext
11701fi
11702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontneed" >&5
11703$as_echo "$je_cv_madv_dontneed" >&6; }
11704
11705  if test "x${je_cv_madv_dontneed}" = "xyes" ; then
11706    $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED  " >>confdefs.h
11707
11708  fi
11709
11710
11711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DO[NT]DUMP) is compilable" >&5
11712$as_echo_n "checking whether madvise(..., MADV_DO[NT]DUMP) is compilable... " >&6; }
11713if ${je_cv_madv_dontdump+:} false; then :
11714  $as_echo_n "(cached) " >&6
11715else
11716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11717/* end confdefs.h.  */
11718
11719#include <sys/mman.h>
11720
11721int
11722main ()
11723{
11724
11725	madvise((void *)0, 0, MADV_DONTDUMP);
11726	madvise((void *)0, 0, MADV_DODUMP);
11727
11728  ;
11729  return 0;
11730}
11731_ACEOF
11732if ac_fn_c_try_link "$LINENO"; then :
11733  je_cv_madv_dontdump=yes
11734else
11735  je_cv_madv_dontdump=no
11736fi
11737rm -f core conftest.err conftest.$ac_objext \
11738    conftest$ac_exeext conftest.$ac_ext
11739fi
11740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontdump" >&5
11741$as_echo "$je_cv_madv_dontdump" >&6; }
11742
11743  if test "x${je_cv_madv_dontdump}" = "xyes" ; then
11744    $as_echo "#define JEMALLOC_MADVISE_DONTDUMP  " >>confdefs.h
11745
11746  fi
11747
11748
11749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable" >&5
11750$as_echo_n "checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable... " >&6; }
11751if ${je_cv_thp+:} false; then :
11752  $as_echo_n "(cached) " >&6
11753else
11754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11755/* end confdefs.h.  */
11756
11757#include <sys/mman.h>
11758
11759int
11760main ()
11761{
11762
11763	madvise((void *)0, 0, MADV_HUGEPAGE);
11764	madvise((void *)0, 0, MADV_NOHUGEPAGE);
11765
11766  ;
11767  return 0;
11768}
11769_ACEOF
11770if ac_fn_c_try_link "$LINENO"; then :
11771  je_cv_thp=yes
11772else
11773  je_cv_thp=no
11774fi
11775rm -f core conftest.err conftest.$ac_objext \
11776    conftest$ac_exeext conftest.$ac_ext
11777fi
11778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_thp" >&5
11779$as_echo "$je_cv_thp" >&6; }
11780
11781case "${host_cpu}" in
11782  arm*)
11783    ;;
11784  *)
11785  if test "x${je_cv_thp}" = "xyes" ; then
11786    $as_echo "#define JEMALLOC_HAVE_MADVISE_HUGE  " >>confdefs.h
11787
11788  fi
11789  ;;
11790esac
11791fi
11792
11793
11794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
11795$as_echo_n "checking for __builtin_clz... " >&6; }
11796if ${je_cv_builtin_clz+:} false; then :
11797  $as_echo_n "(cached) " >&6
11798else
11799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800/* end confdefs.h.  */
11801
11802int
11803main ()
11804{
11805
11806                                                {
11807                                                        unsigned x = 0;
11808                                                        int y = __builtin_clz(x);
11809                                                }
11810                                                {
11811                                                        unsigned long x = 0;
11812                                                        int y = __builtin_clzl(x);
11813                                                }
11814
11815  ;
11816  return 0;
11817}
11818_ACEOF
11819if ac_fn_c_try_link "$LINENO"; then :
11820  je_cv_builtin_clz=yes
11821else
11822  je_cv_builtin_clz=no
11823fi
11824rm -f core conftest.err conftest.$ac_objext \
11825    conftest$ac_exeext conftest.$ac_ext
11826fi
11827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_builtin_clz" >&5
11828$as_echo "$je_cv_builtin_clz" >&6; }
11829
11830if test "x${je_cv_builtin_clz}" = "xyes" ; then
11831  $as_echo "#define JEMALLOC_HAVE_BUILTIN_CLZ  " >>confdefs.h
11832
11833fi
11834
11835
11836
11837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin os_unfair_lock_*() is compilable" >&5
11838$as_echo_n "checking whether Darwin os_unfair_lock_*() is compilable... " >&6; }
11839if ${je_cv_os_unfair_lock+:} false; then :
11840  $as_echo_n "(cached) " >&6
11841else
11842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11843/* end confdefs.h.  */
11844
11845#include <os/lock.h>
11846#include <AvailabilityMacros.h>
11847
11848int
11849main ()
11850{
11851
11852	#if MAC_OS_X_VERSION_MIN_REQUIRED < 101200
11853	#error "os_unfair_lock is not supported"
11854	#else
11855	os_unfair_lock lock = OS_UNFAIR_LOCK_INIT;
11856	os_unfair_lock_lock(&lock);
11857	os_unfair_lock_unlock(&lock);
11858	#endif
11859
11860  ;
11861  return 0;
11862}
11863_ACEOF
11864if ac_fn_c_try_link "$LINENO"; then :
11865  je_cv_os_unfair_lock=yes
11866else
11867  je_cv_os_unfair_lock=no
11868fi
11869rm -f core conftest.err conftest.$ac_objext \
11870    conftest$ac_exeext conftest.$ac_ext
11871fi
11872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_os_unfair_lock" >&5
11873$as_echo "$je_cv_os_unfair_lock" >&6; }
11874
11875if test "x${je_cv_os_unfair_lock}" = "xyes" ; then
11876  $as_echo "#define JEMALLOC_OS_UNFAIR_LOCK  " >>confdefs.h
11877
11878fi
11879
11880
11881# Check whether --enable-zone-allocator was given.
11882if test "${enable_zone_allocator+set}" = set; then :
11883  enableval=$enable_zone_allocator; if test "x$enable_zone_allocator" = "xno" ; then
11884  enable_zone_allocator="0"
11885else
11886  enable_zone_allocator="1"
11887fi
11888
11889else
11890  if test "x${abi}" = "xmacho"; then
11891  enable_zone_allocator="1"
11892fi
11893
11894
11895fi
11896
11897
11898
11899if test "x${enable_zone_allocator}" = "x1" ; then
11900  if test "x${abi}" != "xmacho"; then
11901    as_fn_error $? "--enable-zone-allocator is only supported on Darwin" "$LINENO" 5
11902  fi
11903  $as_echo "#define JEMALLOC_ZONE  " >>confdefs.h
11904
11905fi
11906
11907# Check whether --enable-initial-exec-tls was given.
11908if test "${enable_initial_exec_tls+set}" = set; then :
11909  enableval=$enable_initial_exec_tls; if test "x$enable_initial_exec_tls" = "xno" ; then
11910  enable_initial_exec_tls="0"
11911else
11912  enable_initial_exec_tls="1"
11913fi
11914
11915else
11916  enable_initial_exec_tls="1"
11917
11918fi
11919
11920
11921
11922if test "x${je_cv_tls_model}" = "xyes" -a \
11923       "x${enable_initial_exec_tls}" = "x1" ; then
11924  $as_echo "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h
11925
11926else
11927  $as_echo "#define JEMALLOC_TLS_MODEL  " >>confdefs.h
11928
11929fi
11930
11931
11932if test "x${have_pthread}" = "x1" -a "x${je_cv_os_unfair_lock}" != "xyes" ; then
11933  $as_echo "#define JEMALLOC_BACKGROUND_THREAD 1" >>confdefs.h
11934
11935fi
11936
11937
11938
11939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc malloc hook is compilable" >&5
11940$as_echo_n "checking whether glibc malloc hook is compilable... " >&6; }
11941if ${je_cv_glibc_malloc_hook+:} false; then :
11942  $as_echo_n "(cached) " >&6
11943else
11944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945/* end confdefs.h.  */
11946
11947#include <stddef.h>
11948
11949extern void (* __free_hook)(void *ptr);
11950extern void *(* __malloc_hook)(size_t size);
11951extern void *(* __realloc_hook)(void *ptr, size_t size);
11952
11953int
11954main ()
11955{
11956
11957  void *ptr = 0L;
11958  if (__malloc_hook) ptr = __malloc_hook(1);
11959  if (__realloc_hook) ptr = __realloc_hook(ptr, 2);
11960  if (__free_hook && ptr) __free_hook(ptr);
11961
11962  ;
11963  return 0;
11964}
11965_ACEOF
11966if ac_fn_c_try_link "$LINENO"; then :
11967  je_cv_glibc_malloc_hook=yes
11968else
11969  je_cv_glibc_malloc_hook=no
11970fi
11971rm -f core conftest.err conftest.$ac_objext \
11972    conftest$ac_exeext conftest.$ac_ext
11973fi
11974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_malloc_hook" >&5
11975$as_echo "$je_cv_glibc_malloc_hook" >&6; }
11976
11977if test "x${je_cv_glibc_malloc_hook}" = "xyes" ; then
11978  if test "x${JEMALLOC_PREFIX}" = "x" ; then
11979    $as_echo "#define JEMALLOC_GLIBC_MALLOC_HOOK  " >>confdefs.h
11980
11981    wrap_syms="${wrap_syms} __free_hook __malloc_hook __realloc_hook"
11982  fi
11983fi
11984
11985
11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc memalign hook is compilable" >&5
11987$as_echo_n "checking whether glibc memalign hook is compilable... " >&6; }
11988if ${je_cv_glibc_memalign_hook+:} false; then :
11989  $as_echo_n "(cached) " >&6
11990else
11991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992/* end confdefs.h.  */
11993
11994#include <stddef.h>
11995
11996extern void *(* __memalign_hook)(size_t alignment, size_t size);
11997
11998int
11999main ()
12000{
12001
12002  void *ptr = 0L;
12003  if (__memalign_hook) ptr = __memalign_hook(16, 7);
12004
12005  ;
12006  return 0;
12007}
12008_ACEOF
12009if ac_fn_c_try_link "$LINENO"; then :
12010  je_cv_glibc_memalign_hook=yes
12011else
12012  je_cv_glibc_memalign_hook=no
12013fi
12014rm -f core conftest.err conftest.$ac_objext \
12015    conftest$ac_exeext conftest.$ac_ext
12016fi
12017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_memalign_hook" >&5
12018$as_echo "$je_cv_glibc_memalign_hook" >&6; }
12019
12020if test "x${je_cv_glibc_memalign_hook}" = "xyes" ; then
12021  if test "x${JEMALLOC_PREFIX}" = "x" ; then
12022    $as_echo "#define JEMALLOC_GLIBC_MEMALIGN_HOOK  " >>confdefs.h
12023
12024    wrap_syms="${wrap_syms} __memalign_hook"
12025  fi
12026fi
12027
12028
12029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads adaptive mutexes is compilable" >&5
12030$as_echo_n "checking whether pthreads adaptive mutexes is compilable... " >&6; }
12031if ${je_cv_pthread_mutex_adaptive_np+:} false; then :
12032  $as_echo_n "(cached) " >&6
12033else
12034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035/* end confdefs.h.  */
12036
12037#include <pthread.h>
12038
12039int
12040main ()
12041{
12042
12043  pthread_mutexattr_t attr;
12044  pthread_mutexattr_init(&attr);
12045  pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
12046  pthread_mutexattr_destroy(&attr);
12047
12048  ;
12049  return 0;
12050}
12051_ACEOF
12052if ac_fn_c_try_link "$LINENO"; then :
12053  je_cv_pthread_mutex_adaptive_np=yes
12054else
12055  je_cv_pthread_mutex_adaptive_np=no
12056fi
12057rm -f core conftest.err conftest.$ac_objext \
12058    conftest$ac_exeext conftest.$ac_ext
12059fi
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_mutex_adaptive_np" >&5
12061$as_echo "$je_cv_pthread_mutex_adaptive_np" >&6; }
12062
12063if test "x${je_cv_pthread_mutex_adaptive_np}" = "xyes" ; then
12064  $as_echo "#define JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP  " >>confdefs.h
12065
12066fi
12067
12068SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
12069
12070
12071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -D_GNU_SOURCE" >&5
12072$as_echo_n "checking whether compiler supports -D_GNU_SOURCE... " >&6; }
12073T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
12074T_APPEND_V=-D_GNU_SOURCE
12075  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
12076  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
12077else
12078  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
12079fi
12080
12081
12082if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12083  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12084else
12085  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12086fi
12087
12088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089/* end confdefs.h.  */
12090
12091
12092int
12093main ()
12094{
12095
12096    return 0;
12097
12098  ;
12099  return 0;
12100}
12101_ACEOF
12102if ac_fn_c_try_compile "$LINENO"; then :
12103  je_cv_cflags_added=-D_GNU_SOURCE
12104              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12105$as_echo "yes" >&6; }
12106else
12107  je_cv_cflags_added=
12108              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109$as_echo "no" >&6; }
12110              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
12111
12112fi
12113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12114if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12115  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12116else
12117  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12118fi
12119
12120
12121
12122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
12123$as_echo_n "checking whether compiler supports -Werror... " >&6; }
12124T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
12125T_APPEND_V=-Werror
12126  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
12127  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
12128else
12129  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
12130fi
12131
12132
12133if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12134  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12135else
12136  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12137fi
12138
12139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140/* end confdefs.h.  */
12141
12142
12143int
12144main ()
12145{
12146
12147    return 0;
12148
12149  ;
12150  return 0;
12151}
12152_ACEOF
12153if ac_fn_c_try_compile "$LINENO"; then :
12154  je_cv_cflags_added=-Werror
12155              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12156$as_echo "yes" >&6; }
12157else
12158  je_cv_cflags_added=
12159              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160$as_echo "no" >&6; }
12161              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
12162
12163fi
12164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12165if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12166  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12167else
12168  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12169fi
12170
12171
12172
12173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
12174$as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
12175T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
12176T_APPEND_V=-herror_on_warning
12177  if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
12178  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
12179else
12180  CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
12181fi
12182
12183
12184if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12185  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12186else
12187  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12188fi
12189
12190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191/* end confdefs.h.  */
12192
12193
12194int
12195main ()
12196{
12197
12198    return 0;
12199
12200  ;
12201  return 0;
12202}
12203_ACEOF
12204if ac_fn_c_try_compile "$LINENO"; then :
12205  je_cv_cflags_added=-herror_on_warning
12206              { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12207$as_echo "yes" >&6; }
12208else
12209  je_cv_cflags_added=
12210              { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211$as_echo "no" >&6; }
12212              CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
12213
12214fi
12215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12216if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12217  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12218else
12219  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12220fi
12221
12222
12223
12224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char with gnu source is compilable" >&5
12225$as_echo_n "checking whether strerror_r returns char with gnu source is compilable... " >&6; }
12226if ${je_cv_strerror_r_returns_char_with_gnu_source+:} false; then :
12227  $as_echo_n "(cached) " >&6
12228else
12229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12230/* end confdefs.h.  */
12231
12232#include <errno.h>
12233#include <stdio.h>
12234#include <stdlib.h>
12235#include <string.h>
12236
12237int
12238main ()
12239{
12240
12241  char *buffer = (char *) malloc(100);
12242  char *error = strerror_r(EINVAL, buffer, 100);
12243  printf("%s\n", error);
12244
12245  ;
12246  return 0;
12247}
12248_ACEOF
12249if ac_fn_c_try_link "$LINENO"; then :
12250  je_cv_strerror_r_returns_char_with_gnu_source=yes
12251else
12252  je_cv_strerror_r_returns_char_with_gnu_source=no
12253fi
12254rm -f core conftest.err conftest.$ac_objext \
12255    conftest$ac_exeext conftest.$ac_ext
12256fi
12257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_strerror_r_returns_char_with_gnu_source" >&5
12258$as_echo "$je_cv_strerror_r_returns_char_with_gnu_source" >&6; }
12259
12260CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
12261if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12262  CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12263else
12264  CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12265fi
12266
12267
12268if test "x${je_cv_strerror_r_returns_char_with_gnu_source}" = "xyes" ; then
12269  $as_echo "#define JEMALLOC_STRERROR_R_RETURNS_CHAR_WITH_GNU_SOURCE  " >>confdefs.h
12270
12271fi
12272
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12274$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12275if ${ac_cv_header_stdbool_h+:} false; then :
12276  $as_echo_n "(cached) " >&6
12277else
12278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279/* end confdefs.h.  */
12280
12281             #include <stdbool.h>
12282             #ifndef bool
12283              "error: bool is not defined"
12284             #endif
12285             #ifndef false
12286              "error: false is not defined"
12287             #endif
12288             #if false
12289              "error: false is not 0"
12290             #endif
12291             #ifndef true
12292              "error: true is not defined"
12293             #endif
12294             #if true != 1
12295              "error: true is not 1"
12296             #endif
12297             #ifndef __bool_true_false_are_defined
12298              "error: __bool_true_false_are_defined is not defined"
12299             #endif
12300
12301             struct s { _Bool s: 1; _Bool t; } s;
12302
12303             char a[true == 1 ? 1 : -1];
12304             char b[false == 0 ? 1 : -1];
12305             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12306             char d[(bool) 0.5 == true ? 1 : -1];
12307             /* See body of main program for 'e'.  */
12308             char f[(_Bool) 0.0 == false ? 1 : -1];
12309             char g[true];
12310             char h[sizeof (_Bool)];
12311             char i[sizeof s.t];
12312             enum { j = false, k = true, l = false * true, m = true * 256 };
12313             /* The following fails for
12314                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12315             _Bool n[m];
12316             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12317             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12318             /* Catch a bug in an HP-UX C compiler.  See
12319                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12320                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12321              */
12322             _Bool q = true;
12323             _Bool *pq = &q;
12324
12325int
12326main ()
12327{
12328
12329             bool e = &s;
12330             *pq |= q;
12331             *pq |= ! q;
12332             /* Refer to every declared value, to avoid compiler optimizations.  */
12333             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12334                     + !m + !n + !o + !p + !q + !pq);
12335
12336  ;
12337  return 0;
12338}
12339_ACEOF
12340if ac_fn_c_try_compile "$LINENO"; then :
12341  ac_cv_header_stdbool_h=yes
12342else
12343  ac_cv_header_stdbool_h=no
12344fi
12345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12346fi
12347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12348$as_echo "$ac_cv_header_stdbool_h" >&6; }
12349   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12350if test "x$ac_cv_type__Bool" = xyes; then :
12351
12352cat >>confdefs.h <<_ACEOF
12353#define HAVE__BOOL 1
12354_ACEOF
12355
12356
12357fi
12358
12359
12360if test $ac_cv_header_stdbool_h = yes; then
12361
12362$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
12363
12364fi
12365
12366
12367
12368ac_config_commands="$ac_config_commands include/jemalloc/internal/public_symbols.txt"
12369
12370ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols.awk"
12371
12372ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols_jet.awk"
12373
12374ac_config_commands="$ac_config_commands include/jemalloc/internal/public_namespace.h"
12375
12376ac_config_commands="$ac_config_commands include/jemalloc/internal/public_unnamespace.h"
12377
12378ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_protos_jet.h"
12379
12380ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_rename.h"
12381
12382ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle.h"
12383
12384ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle_jet.h"
12385
12386ac_config_commands="$ac_config_commands include/jemalloc/jemalloc.h"
12387
12388
12389
12390
12391ac_config_headers="$ac_config_headers $cfghdrs_tup"
12392
12393
12394
12395ac_config_files="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc-config bin/jemalloc.sh bin/jeprof"
12396
12397
12398
12399cat >confcache <<\_ACEOF
12400# This file is a shell script that caches the results of configure
12401# tests run on this system so they can be shared between configure
12402# scripts and configure runs, see configure's option --config-cache.
12403# It is not useful on other systems.  If it contains results you don't
12404# want to keep, you may remove or edit it.
12405#
12406# config.status only pays attention to the cache file if you give it
12407# the --recheck option to rerun configure.
12408#
12409# `ac_cv_env_foo' variables (set or unset) will be overridden when
12410# loading this file, other *unset* `ac_cv_foo' will be assigned the
12411# following values.
12412
12413_ACEOF
12414
12415# The following way of writing the cache mishandles newlines in values,
12416# but we know of no workaround that is simple, portable, and efficient.
12417# So, we kill variables containing newlines.
12418# Ultrix sh set writes to stderr and can't be redirected directly,
12419# and sets the high bit in the cache file unless we assign to the vars.
12420(
12421  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12422    eval ac_val=\$$ac_var
12423    case $ac_val in #(
12424    *${as_nl}*)
12425      case $ac_var in #(
12426      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12427$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12428      esac
12429      case $ac_var in #(
12430      _ | IFS | as_nl) ;; #(
12431      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12432      *) { eval $ac_var=; unset $ac_var;} ;;
12433      esac ;;
12434    esac
12435  done
12436
12437  (set) 2>&1 |
12438    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12439    *${as_nl}ac_space=\ *)
12440      # `set' does not quote correctly, so add quotes: double-quote
12441      # substitution turns \\\\ into \\, and sed turns \\ into \.
12442      sed -n \
12443	"s/'/'\\\\''/g;
12444	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12445      ;; #(
12446    *)
12447      # `set' quotes correctly as required by POSIX, so do not add quotes.
12448      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12449      ;;
12450    esac |
12451    sort
12452) |
12453  sed '
12454     /^ac_cv_env_/b end
12455     t clear
12456     :clear
12457     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12458     t end
12459     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12460     :end' >>confcache
12461if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12462  if test -w "$cache_file"; then
12463    if test "x$cache_file" != "x/dev/null"; then
12464      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12465$as_echo "$as_me: updating cache $cache_file" >&6;}
12466      if test ! -f "$cache_file" || test -h "$cache_file"; then
12467	cat confcache >"$cache_file"
12468      else
12469        case $cache_file in #(
12470        */* | ?:*)
12471	  mv -f confcache "$cache_file"$$ &&
12472	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12473        *)
12474	  mv -f confcache "$cache_file" ;;
12475	esac
12476      fi
12477    fi
12478  else
12479    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12480$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12481  fi
12482fi
12483rm -f confcache
12484
12485test "x$prefix" = xNONE && prefix=$ac_default_prefix
12486# Let make expand exec_prefix.
12487test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12488
12489DEFS=-DHAVE_CONFIG_H
12490
12491ac_libobjs=
12492ac_ltlibobjs=
12493U=
12494for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12495  # 1. Remove the extension, and $U if already installed.
12496  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12497  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12498  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12499  #    will be set to the directory where LIBOBJS objects are built.
12500  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12501  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12502done
12503LIBOBJS=$ac_libobjs
12504
12505LTLIBOBJS=$ac_ltlibobjs
12506
12507
12508
12509
12510: "${CONFIG_STATUS=./config.status}"
12511ac_write_fail=0
12512ac_clean_files_save=$ac_clean_files
12513ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12514{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12515$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12516as_write_fail=0
12517cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12518#! $SHELL
12519# Generated by $as_me.
12520# Run this file to recreate the current configuration.
12521# Compiler output produced by configure, useful for debugging
12522# configure, is in config.log if it exists.
12523
12524debug=false
12525ac_cs_recheck=false
12526ac_cs_silent=false
12527
12528SHELL=\${CONFIG_SHELL-$SHELL}
12529export SHELL
12530_ASEOF
12531cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12532## -------------------- ##
12533## M4sh Initialization. ##
12534## -------------------- ##
12535
12536# Be more Bourne compatible
12537DUALCASE=1; export DUALCASE # for MKS sh
12538if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12539  emulate sh
12540  NULLCMD=:
12541  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12542  # is contrary to our usage.  Disable this feature.
12543  alias -g '${1+"$@"}'='"$@"'
12544  setopt NO_GLOB_SUBST
12545else
12546  case `(set -o) 2>/dev/null` in #(
12547  *posix*) :
12548    set -o posix ;; #(
12549  *) :
12550     ;;
12551esac
12552fi
12553
12554
12555as_nl='
12556'
12557export as_nl
12558# Printing a long string crashes Solaris 7 /usr/bin/printf.
12559as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12560as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12561as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12562# Prefer a ksh shell builtin over an external printf program on Solaris,
12563# but without wasting forks for bash or zsh.
12564if test -z "$BASH_VERSION$ZSH_VERSION" \
12565    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12566  as_echo='print -r --'
12567  as_echo_n='print -rn --'
12568elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12569  as_echo='printf %s\n'
12570  as_echo_n='printf %s'
12571else
12572  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12573    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12574    as_echo_n='/usr/ucb/echo -n'
12575  else
12576    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12577    as_echo_n_body='eval
12578      arg=$1;
12579      case $arg in #(
12580      *"$as_nl"*)
12581	expr "X$arg" : "X\\(.*\\)$as_nl";
12582	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12583      esac;
12584      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12585    '
12586    export as_echo_n_body
12587    as_echo_n='sh -c $as_echo_n_body as_echo'
12588  fi
12589  export as_echo_body
12590  as_echo='sh -c $as_echo_body as_echo'
12591fi
12592
12593# The user is always right.
12594if test "${PATH_SEPARATOR+set}" != set; then
12595  PATH_SEPARATOR=:
12596  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12597    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12598      PATH_SEPARATOR=';'
12599  }
12600fi
12601
12602
12603# IFS
12604# We need space, tab and new line, in precisely that order.  Quoting is
12605# there to prevent editors from complaining about space-tab.
12606# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12607# splitting by setting IFS to empty value.)
12608IFS=" ""	$as_nl"
12609
12610# Find who we are.  Look in the path if we contain no directory separator.
12611as_myself=
12612case $0 in #((
12613  *[\\/]* ) as_myself=$0 ;;
12614  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12615for as_dir in $PATH
12616do
12617  IFS=$as_save_IFS
12618  test -z "$as_dir" && as_dir=.
12619    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12620  done
12621IFS=$as_save_IFS
12622
12623     ;;
12624esac
12625# We did not find ourselves, most probably we were run as `sh COMMAND'
12626# in which case we are not to be found in the path.
12627if test "x$as_myself" = x; then
12628  as_myself=$0
12629fi
12630if test ! -f "$as_myself"; then
12631  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12632  exit 1
12633fi
12634
12635# Unset variables that we do not need and which cause bugs (e.g. in
12636# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12637# suppresses any "Segmentation fault" message there.  '((' could
12638# trigger a bug in pdksh 5.2.14.
12639for as_var in BASH_ENV ENV MAIL MAILPATH
12640do eval test x\${$as_var+set} = xset \
12641  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12642done
12643PS1='$ '
12644PS2='> '
12645PS4='+ '
12646
12647# NLS nuisances.
12648LC_ALL=C
12649export LC_ALL
12650LANGUAGE=C
12651export LANGUAGE
12652
12653# CDPATH.
12654(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12655
12656
12657# as_fn_error STATUS ERROR [LINENO LOG_FD]
12658# ----------------------------------------
12659# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12660# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12661# script with STATUS, using 1 if that was 0.
12662as_fn_error ()
12663{
12664  as_status=$1; test $as_status -eq 0 && as_status=1
12665  if test "$4"; then
12666    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12667    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12668  fi
12669  $as_echo "$as_me: error: $2" >&2
12670  as_fn_exit $as_status
12671} # as_fn_error
12672
12673
12674# as_fn_set_status STATUS
12675# -----------------------
12676# Set $? to STATUS, without forking.
12677as_fn_set_status ()
12678{
12679  return $1
12680} # as_fn_set_status
12681
12682# as_fn_exit STATUS
12683# -----------------
12684# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12685as_fn_exit ()
12686{
12687  set +e
12688  as_fn_set_status $1
12689  exit $1
12690} # as_fn_exit
12691
12692# as_fn_unset VAR
12693# ---------------
12694# Portably unset VAR.
12695as_fn_unset ()
12696{
12697  { eval $1=; unset $1;}
12698}
12699as_unset=as_fn_unset
12700# as_fn_append VAR VALUE
12701# ----------------------
12702# Append the text in VALUE to the end of the definition contained in VAR. Take
12703# advantage of any shell optimizations that allow amortized linear growth over
12704# repeated appends, instead of the typical quadratic growth present in naive
12705# implementations.
12706if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12707  eval 'as_fn_append ()
12708  {
12709    eval $1+=\$2
12710  }'
12711else
12712  as_fn_append ()
12713  {
12714    eval $1=\$$1\$2
12715  }
12716fi # as_fn_append
12717
12718# as_fn_arith ARG...
12719# ------------------
12720# Perform arithmetic evaluation on the ARGs, and store the result in the
12721# global $as_val. Take advantage of shells that can avoid forks. The arguments
12722# must be portable across $(()) and expr.
12723if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12724  eval 'as_fn_arith ()
12725  {
12726    as_val=$(( $* ))
12727  }'
12728else
12729  as_fn_arith ()
12730  {
12731    as_val=`expr "$@" || test $? -eq 1`
12732  }
12733fi # as_fn_arith
12734
12735
12736if expr a : '\(a\)' >/dev/null 2>&1 &&
12737   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12738  as_expr=expr
12739else
12740  as_expr=false
12741fi
12742
12743if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12744  as_basename=basename
12745else
12746  as_basename=false
12747fi
12748
12749if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12750  as_dirname=dirname
12751else
12752  as_dirname=false
12753fi
12754
12755as_me=`$as_basename -- "$0" ||
12756$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12757	 X"$0" : 'X\(//\)$' \| \
12758	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12759$as_echo X/"$0" |
12760    sed '/^.*\/\([^/][^/]*\)\/*$/{
12761	    s//\1/
12762	    q
12763	  }
12764	  /^X\/\(\/\/\)$/{
12765	    s//\1/
12766	    q
12767	  }
12768	  /^X\/\(\/\).*/{
12769	    s//\1/
12770	    q
12771	  }
12772	  s/.*/./; q'`
12773
12774# Avoid depending upon Character Ranges.
12775as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12776as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12777as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12778as_cr_digits='0123456789'
12779as_cr_alnum=$as_cr_Letters$as_cr_digits
12780
12781ECHO_C= ECHO_N= ECHO_T=
12782case `echo -n x` in #(((((
12783-n*)
12784  case `echo 'xy\c'` in
12785  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12786  xy)  ECHO_C='\c';;
12787  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12788       ECHO_T='	';;
12789  esac;;
12790*)
12791  ECHO_N='-n';;
12792esac
12793
12794rm -f conf$$ conf$$.exe conf$$.file
12795if test -d conf$$.dir; then
12796  rm -f conf$$.dir/conf$$.file
12797else
12798  rm -f conf$$.dir
12799  mkdir conf$$.dir 2>/dev/null
12800fi
12801if (echo >conf$$.file) 2>/dev/null; then
12802  if ln -s conf$$.file conf$$ 2>/dev/null; then
12803    as_ln_s='ln -s'
12804    # ... but there are two gotchas:
12805    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12806    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12807    # In both cases, we have to default to `cp -pR'.
12808    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12809      as_ln_s='cp -pR'
12810  elif ln conf$$.file conf$$ 2>/dev/null; then
12811    as_ln_s=ln
12812  else
12813    as_ln_s='cp -pR'
12814  fi
12815else
12816  as_ln_s='cp -pR'
12817fi
12818rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12819rmdir conf$$.dir 2>/dev/null
12820
12821
12822# as_fn_mkdir_p
12823# -------------
12824# Create "$as_dir" as a directory, including parents if necessary.
12825as_fn_mkdir_p ()
12826{
12827
12828  case $as_dir in #(
12829  -*) as_dir=./$as_dir;;
12830  esac
12831  test -d "$as_dir" || eval $as_mkdir_p || {
12832    as_dirs=
12833    while :; do
12834      case $as_dir in #(
12835      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12836      *) as_qdir=$as_dir;;
12837      esac
12838      as_dirs="'$as_qdir' $as_dirs"
12839      as_dir=`$as_dirname -- "$as_dir" ||
12840$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12841	 X"$as_dir" : 'X\(//\)[^/]' \| \
12842	 X"$as_dir" : 'X\(//\)$' \| \
12843	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12844$as_echo X"$as_dir" |
12845    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12846	    s//\1/
12847	    q
12848	  }
12849	  /^X\(\/\/\)[^/].*/{
12850	    s//\1/
12851	    q
12852	  }
12853	  /^X\(\/\/\)$/{
12854	    s//\1/
12855	    q
12856	  }
12857	  /^X\(\/\).*/{
12858	    s//\1/
12859	    q
12860	  }
12861	  s/.*/./; q'`
12862      test -d "$as_dir" && break
12863    done
12864    test -z "$as_dirs" || eval "mkdir $as_dirs"
12865  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12866
12867
12868} # as_fn_mkdir_p
12869if mkdir -p . 2>/dev/null; then
12870  as_mkdir_p='mkdir -p "$as_dir"'
12871else
12872  test -d ./-p && rmdir ./-p
12873  as_mkdir_p=false
12874fi
12875
12876
12877# as_fn_executable_p FILE
12878# -----------------------
12879# Test if FILE is an executable regular file.
12880as_fn_executable_p ()
12881{
12882  test -f "$1" && test -x "$1"
12883} # as_fn_executable_p
12884as_test_x='test -x'
12885as_executable_p=as_fn_executable_p
12886
12887# Sed expression to map a string onto a valid CPP name.
12888as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12889
12890# Sed expression to map a string onto a valid variable name.
12891as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12892
12893
12894exec 6>&1
12895## ----------------------------------- ##
12896## Main body of $CONFIG_STATUS script. ##
12897## ----------------------------------- ##
12898_ASEOF
12899test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12900
12901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12902# Save the log message, to keep $0 and so on meaningful, and to
12903# report actual input values of CONFIG_FILES etc. instead of their
12904# values after options handling.
12905ac_log="
12906This file was extended by $as_me, which was
12907generated by GNU Autoconf 2.69.  Invocation command line was
12908
12909  CONFIG_FILES    = $CONFIG_FILES
12910  CONFIG_HEADERS  = $CONFIG_HEADERS
12911  CONFIG_LINKS    = $CONFIG_LINKS
12912  CONFIG_COMMANDS = $CONFIG_COMMANDS
12913  $ $0 $@
12914
12915on `(hostname || uname -n) 2>/dev/null | sed 1q`
12916"
12917
12918_ACEOF
12919
12920case $ac_config_files in *"
12921"*) set x $ac_config_files; shift; ac_config_files=$*;;
12922esac
12923
12924case $ac_config_headers in *"
12925"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12926esac
12927
12928
12929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12930# Files that config.status was made for.
12931config_files="$ac_config_files"
12932config_headers="$ac_config_headers"
12933config_commands="$ac_config_commands"
12934
12935_ACEOF
12936
12937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12938ac_cs_usage="\
12939\`$as_me' instantiates files and other configuration actions
12940from templates according to the current configuration.  Unless the files
12941and actions are specified as TAGs, all are instantiated by default.
12942
12943Usage: $0 [OPTION]... [TAG]...
12944
12945  -h, --help       print this help, then exit
12946  -V, --version    print version number and configuration settings, then exit
12947      --config     print configuration, then exit
12948  -q, --quiet, --silent
12949                   do not print progress messages
12950  -d, --debug      don't remove temporary files
12951      --recheck    update $as_me by reconfiguring in the same conditions
12952      --file=FILE[:TEMPLATE]
12953                   instantiate the configuration file FILE
12954      --header=FILE[:TEMPLATE]
12955                   instantiate the configuration header FILE
12956
12957Configuration files:
12958$config_files
12959
12960Configuration headers:
12961$config_headers
12962
12963Configuration commands:
12964$config_commands
12965
12966Report bugs to the package provider."
12967
12968_ACEOF
12969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12970ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12971ac_cs_version="\\
12972config.status
12973configured by $0, generated by GNU Autoconf 2.69,
12974  with options \\"\$ac_cs_config\\"
12975
12976Copyright (C) 2012 Free Software Foundation, Inc.
12977This config.status script is free software; the Free Software Foundation
12978gives unlimited permission to copy, distribute and modify it."
12979
12980ac_pwd='$ac_pwd'
12981srcdir='$srcdir'
12982INSTALL='$INSTALL'
12983AWK='$AWK'
12984test -n "\$AWK" || AWK=awk
12985_ACEOF
12986
12987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12988# The default lists apply if the user does not specify any file.
12989ac_need_defaults=:
12990while test $# != 0
12991do
12992  case $1 in
12993  --*=?*)
12994    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12995    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12996    ac_shift=:
12997    ;;
12998  --*=)
12999    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13000    ac_optarg=
13001    ac_shift=:
13002    ;;
13003  *)
13004    ac_option=$1
13005    ac_optarg=$2
13006    ac_shift=shift
13007    ;;
13008  esac
13009
13010  case $ac_option in
13011  # Handling of the options.
13012  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13013    ac_cs_recheck=: ;;
13014  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13015    $as_echo "$ac_cs_version"; exit ;;
13016  --config | --confi | --conf | --con | --co | --c )
13017    $as_echo "$ac_cs_config"; exit ;;
13018  --debug | --debu | --deb | --de | --d | -d )
13019    debug=: ;;
13020  --file | --fil | --fi | --f )
13021    $ac_shift
13022    case $ac_optarg in
13023    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13024    '') as_fn_error $? "missing file argument" ;;
13025    esac
13026    as_fn_append CONFIG_FILES " '$ac_optarg'"
13027    ac_need_defaults=false;;
13028  --header | --heade | --head | --hea )
13029    $ac_shift
13030    case $ac_optarg in
13031    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13032    esac
13033    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13034    ac_need_defaults=false;;
13035  --he | --h)
13036    # Conflict between --help and --header
13037    as_fn_error $? "ambiguous option: \`$1'
13038Try \`$0 --help' for more information.";;
13039  --help | --hel | -h )
13040    $as_echo "$ac_cs_usage"; exit ;;
13041  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13042  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13043    ac_cs_silent=: ;;
13044
13045  # This is an error.
13046  -*) as_fn_error $? "unrecognized option: \`$1'
13047Try \`$0 --help' for more information." ;;
13048
13049  *) as_fn_append ac_config_targets " $1"
13050     ac_need_defaults=false ;;
13051
13052  esac
13053  shift
13054done
13055
13056ac_configure_extra_args=
13057
13058if $ac_cs_silent; then
13059  exec 6>/dev/null
13060  ac_configure_extra_args="$ac_configure_extra_args --silent"
13061fi
13062
13063_ACEOF
13064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13065if \$ac_cs_recheck; then
13066  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13067  shift
13068  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13069  CONFIG_SHELL='$SHELL'
13070  export CONFIG_SHELL
13071  exec "\$@"
13072fi
13073
13074_ACEOF
13075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13076exec 5>>config.log
13077{
13078  echo
13079  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13080## Running $as_me. ##
13081_ASBOX
13082  $as_echo "$ac_log"
13083} >&5
13084
13085_ACEOF
13086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13087#
13088# INIT-COMMANDS
13089#
13090
13091  srcdir="${srcdir}"
13092  objroot="${objroot}"
13093  mangling_map="${mangling_map}"
13094  public_syms="${public_syms}"
13095  JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
13096
13097
13098  srcdir="${srcdir}"
13099  objroot="${objroot}"
13100  public_syms="${public_syms}"
13101  wrap_syms="${wrap_syms}"
13102  SYM_PREFIX="${SYM_PREFIX}"
13103  JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
13104
13105
13106  srcdir="${srcdir}"
13107  objroot="${objroot}"
13108  public_syms="${public_syms}"
13109  wrap_syms="${wrap_syms}"
13110  SYM_PREFIX="${SYM_PREFIX}"
13111
13112
13113  srcdir="${srcdir}"
13114  objroot="${objroot}"
13115
13116
13117  srcdir="${srcdir}"
13118  objroot="${objroot}"
13119
13120
13121  srcdir="${srcdir}"
13122  objroot="${objroot}"
13123
13124
13125  srcdir="${srcdir}"
13126  objroot="${objroot}"
13127
13128
13129  srcdir="${srcdir}"
13130  objroot="${objroot}"
13131
13132
13133  srcdir="${srcdir}"
13134  objroot="${objroot}"
13135
13136
13137  srcdir="${srcdir}"
13138  objroot="${objroot}"
13139  install_suffix="${install_suffix}"
13140
13141
13142_ACEOF
13143
13144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13145
13146# Handling of arguments.
13147for ac_config_target in $ac_config_targets
13148do
13149  case $ac_config_target in
13150    "include/jemalloc/internal/public_symbols.txt") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_symbols.txt" ;;
13151    "include/jemalloc/internal/private_symbols.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols.awk" ;;
13152    "include/jemalloc/internal/private_symbols_jet.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols_jet.awk" ;;
13153    "include/jemalloc/internal/public_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_namespace.h" ;;
13154    "include/jemalloc/internal/public_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_unnamespace.h" ;;
13155    "include/jemalloc/jemalloc_protos_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_protos_jet.h" ;;
13156    "include/jemalloc/jemalloc_rename.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_rename.h" ;;
13157    "include/jemalloc/jemalloc_mangle.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle.h" ;;
13158    "include/jemalloc/jemalloc_mangle_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle_jet.h" ;;
13159    "include/jemalloc/jemalloc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc.h" ;;
13160    "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;;
13161    "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;;
13162    "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;;
13163    "bin/jemalloc-config") CONFIG_FILES="$CONFIG_FILES bin/jemalloc-config" ;;
13164    "bin/jemalloc.sh") CONFIG_FILES="$CONFIG_FILES bin/jemalloc.sh" ;;
13165    "bin/jeprof") CONFIG_FILES="$CONFIG_FILES bin/jeprof" ;;
13166
13167  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13168  esac
13169done
13170
13171
13172# If the user did not use the arguments to specify the items to instantiate,
13173# then the envvar interface is used.  Set only those that are not.
13174# We use the long form for the default assignment because of an extremely
13175# bizarre bug on SunOS 4.1.3.
13176if $ac_need_defaults; then
13177  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13178  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13179  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13180fi
13181
13182# Have a temporary directory for convenience.  Make it in the build tree
13183# simply because there is no reason against having it here, and in addition,
13184# creating and moving files from /tmp can sometimes cause problems.
13185# Hook for its removal unless debugging.
13186# Note that there is a small window in which the directory will not be cleaned:
13187# after its creation but before its name has been assigned to `$tmp'.
13188$debug ||
13189{
13190  tmp= ac_tmp=
13191  trap 'exit_status=$?
13192  : "${ac_tmp:=$tmp}"
13193  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13194' 0
13195  trap 'as_fn_exit 1' 1 2 13 15
13196}
13197# Create a (secure) tmp directory for tmp files.
13198
13199{
13200  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13201  test -d "$tmp"
13202}  ||
13203{
13204  tmp=./conf$$-$RANDOM
13205  (umask 077 && mkdir "$tmp")
13206} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13207ac_tmp=$tmp
13208
13209# Set up the scripts for CONFIG_FILES section.
13210# No need to generate them if there are no CONFIG_FILES.
13211# This happens for instance with `./config.status config.h'.
13212if test -n "$CONFIG_FILES"; then
13213
13214
13215ac_cr=`echo X | tr X '\015'`
13216# On cygwin, bash can eat \r inside `` if the user requested igncr.
13217# But we know of no other shell where ac_cr would be empty at this
13218# point, so we can use a bashism as a fallback.
13219if test "x$ac_cr" = x; then
13220  eval ac_cr=\$\'\\r\'
13221fi
13222ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13223if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13224  ac_cs_awk_cr='\\r'
13225else
13226  ac_cs_awk_cr=$ac_cr
13227fi
13228
13229echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13230_ACEOF
13231
13232
13233{
13234  echo "cat >conf$$subs.awk <<_ACEOF" &&
13235  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13236  echo "_ACEOF"
13237} >conf$$subs.sh ||
13238  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13239ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13240ac_delim='%!_!# '
13241for ac_last_try in false false false false false :; do
13242  . ./conf$$subs.sh ||
13243    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13244
13245  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13246  if test $ac_delim_n = $ac_delim_num; then
13247    break
13248  elif $ac_last_try; then
13249    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13250  else
13251    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13252  fi
13253done
13254rm -f conf$$subs.sh
13255
13256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13257cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13258_ACEOF
13259sed -n '
13260h
13261s/^/S["/; s/!.*/"]=/
13262p
13263g
13264s/^[^!]*!//
13265:repl
13266t repl
13267s/'"$ac_delim"'$//
13268t delim
13269:nl
13270h
13271s/\(.\{148\}\)..*/\1/
13272t more1
13273s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13274p
13275n
13276b repl
13277:more1
13278s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13279p
13280g
13281s/.\{148\}//
13282t nl
13283:delim
13284h
13285s/\(.\{148\}\)..*/\1/
13286t more2
13287s/["\\]/\\&/g; s/^/"/; s/$/"/
13288p
13289b
13290:more2
13291s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13292p
13293g
13294s/.\{148\}//
13295t delim
13296' <conf$$subs.awk | sed '
13297/^[^""]/{
13298  N
13299  s/\n//
13300}
13301' >>$CONFIG_STATUS || ac_write_fail=1
13302rm -f conf$$subs.awk
13303cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13304_ACAWK
13305cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13306  for (key in S) S_is_set[key] = 1
13307  FS = ""
13308
13309}
13310{
13311  line = $ 0
13312  nfields = split(line, field, "@")
13313  substed = 0
13314  len = length(field[1])
13315  for (i = 2; i < nfields; i++) {
13316    key = field[i]
13317    keylen = length(key)
13318    if (S_is_set[key]) {
13319      value = S[key]
13320      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13321      len += length(value) + length(field[++i])
13322      substed = 1
13323    } else
13324      len += 1 + keylen
13325  }
13326
13327  print line
13328}
13329
13330_ACAWK
13331_ACEOF
13332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13333if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13334  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13335else
13336  cat
13337fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13338  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13339_ACEOF
13340
13341# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13342# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13343# trailing colons and then remove the whole line if VPATH becomes empty
13344# (actually we leave an empty line to preserve line numbers).
13345if test "x$srcdir" = x.; then
13346  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13347h
13348s///
13349s/^/:/
13350s/[	 ]*$/:/
13351s/:\$(srcdir):/:/g
13352s/:\${srcdir}:/:/g
13353s/:@srcdir@:/:/g
13354s/^:*//
13355s/:*$//
13356x
13357s/\(=[	 ]*\).*/\1/
13358G
13359s/\n//
13360s/^[^=]*=[	 ]*$//
13361}'
13362fi
13363
13364cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13365fi # test -n "$CONFIG_FILES"
13366
13367# Set up the scripts for CONFIG_HEADERS section.
13368# No need to generate them if there are no CONFIG_HEADERS.
13369# This happens for instance with `./config.status Makefile'.
13370if test -n "$CONFIG_HEADERS"; then
13371cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13372BEGIN {
13373_ACEOF
13374
13375# Transform confdefs.h into an awk script `defines.awk', embedded as
13376# here-document in config.status, that substitutes the proper values into
13377# config.h.in to produce config.h.
13378
13379# Create a delimiter string that does not exist in confdefs.h, to ease
13380# handling of long lines.
13381ac_delim='%!_!# '
13382for ac_last_try in false false :; do
13383  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13384  if test -z "$ac_tt"; then
13385    break
13386  elif $ac_last_try; then
13387    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13388  else
13389    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13390  fi
13391done
13392
13393# For the awk script, D is an array of macro values keyed by name,
13394# likewise P contains macro parameters if any.  Preserve backslash
13395# newline sequences.
13396
13397ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13398sed -n '
13399s/.\{148\}/&'"$ac_delim"'/g
13400t rset
13401:rset
13402s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13403t def
13404d
13405:def
13406s/\\$//
13407t bsnl
13408s/["\\]/\\&/g
13409s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13410D["\1"]=" \3"/p
13411s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13412d
13413:bsnl
13414s/["\\]/\\&/g
13415s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13416D["\1"]=" \3\\\\\\n"\\/p
13417t cont
13418s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13419t cont
13420d
13421:cont
13422n
13423s/.\{148\}/&'"$ac_delim"'/g
13424t clear
13425:clear
13426s/\\$//
13427t bsnlc
13428s/["\\]/\\&/g; s/^/"/; s/$/"/p
13429d
13430:bsnlc
13431s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13432b cont
13433' <confdefs.h | sed '
13434s/'"$ac_delim"'/"\\\
13435"/g' >>$CONFIG_STATUS || ac_write_fail=1
13436
13437cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13438  for (key in D) D_is_set[key] = 1
13439  FS = ""
13440}
13441/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13442  line = \$ 0
13443  split(line, arg, " ")
13444  if (arg[1] == "#") {
13445    defundef = arg[2]
13446    mac1 = arg[3]
13447  } else {
13448    defundef = substr(arg[1], 2)
13449    mac1 = arg[2]
13450  }
13451  split(mac1, mac2, "(") #)
13452  macro = mac2[1]
13453  prefix = substr(line, 1, index(line, defundef) - 1)
13454  if (D_is_set[macro]) {
13455    # Preserve the white space surrounding the "#".
13456    print prefix "define", macro P[macro] D[macro]
13457    next
13458  } else {
13459    # Replace #undef with comments.  This is necessary, for example,
13460    # in the case of _POSIX_SOURCE, which is predefined and required
13461    # on some systems where configure will not decide to define it.
13462    if (defundef == "undef") {
13463      print "/*", prefix defundef, macro, "*/"
13464      next
13465    }
13466  }
13467}
13468{ print }
13469_ACAWK
13470_ACEOF
13471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13472  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13473fi # test -n "$CONFIG_HEADERS"
13474
13475
13476eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13477shift
13478for ac_tag
13479do
13480  case $ac_tag in
13481  :[FHLC]) ac_mode=$ac_tag; continue;;
13482  esac
13483  case $ac_mode$ac_tag in
13484  :[FHL]*:*);;
13485  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13486  :[FH]-) ac_tag=-:-;;
13487  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13488  esac
13489  ac_save_IFS=$IFS
13490  IFS=:
13491  set x $ac_tag
13492  IFS=$ac_save_IFS
13493  shift
13494  ac_file=$1
13495  shift
13496
13497  case $ac_mode in
13498  :L) ac_source=$1;;
13499  :[FH])
13500    ac_file_inputs=
13501    for ac_f
13502    do
13503      case $ac_f in
13504      -) ac_f="$ac_tmp/stdin";;
13505      *) # Look for the file first in the build tree, then in the source tree
13506	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13507	 # because $ac_f cannot contain `:'.
13508	 test -f "$ac_f" ||
13509	   case $ac_f in
13510	   [\\/$]*) false;;
13511	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13512	   esac ||
13513	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13514      esac
13515      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13516      as_fn_append ac_file_inputs " '$ac_f'"
13517    done
13518
13519    # Let's still pretend it is `configure' which instantiates (i.e., don't
13520    # use $as_me), people would be surprised to read:
13521    #    /* config.h.  Generated by config.status.  */
13522    configure_input='Generated from '`
13523	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13524	`' by configure.'
13525    if test x"$ac_file" != x-; then
13526      configure_input="$ac_file.  $configure_input"
13527      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13528$as_echo "$as_me: creating $ac_file" >&6;}
13529    fi
13530    # Neutralize special characters interpreted by sed in replacement strings.
13531    case $configure_input in #(
13532    *\&* | *\|* | *\\* )
13533       ac_sed_conf_input=`$as_echo "$configure_input" |
13534       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13535    *) ac_sed_conf_input=$configure_input;;
13536    esac
13537
13538    case $ac_tag in
13539    *:-:* | *:-) cat >"$ac_tmp/stdin" \
13540      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13541    esac
13542    ;;
13543  esac
13544
13545  ac_dir=`$as_dirname -- "$ac_file" ||
13546$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13547	 X"$ac_file" : 'X\(//\)[^/]' \| \
13548	 X"$ac_file" : 'X\(//\)$' \| \
13549	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13550$as_echo X"$ac_file" |
13551    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13552	    s//\1/
13553	    q
13554	  }
13555	  /^X\(\/\/\)[^/].*/{
13556	    s//\1/
13557	    q
13558	  }
13559	  /^X\(\/\/\)$/{
13560	    s//\1/
13561	    q
13562	  }
13563	  /^X\(\/\).*/{
13564	    s//\1/
13565	    q
13566	  }
13567	  s/.*/./; q'`
13568  as_dir="$ac_dir"; as_fn_mkdir_p
13569  ac_builddir=.
13570
13571case "$ac_dir" in
13572.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13573*)
13574  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13575  # A ".." for each directory in $ac_dir_suffix.
13576  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13577  case $ac_top_builddir_sub in
13578  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13579  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13580  esac ;;
13581esac
13582ac_abs_top_builddir=$ac_pwd
13583ac_abs_builddir=$ac_pwd$ac_dir_suffix
13584# for backward compatibility:
13585ac_top_builddir=$ac_top_build_prefix
13586
13587case $srcdir in
13588  .)  # We are building in place.
13589    ac_srcdir=.
13590    ac_top_srcdir=$ac_top_builddir_sub
13591    ac_abs_top_srcdir=$ac_pwd ;;
13592  [\\/]* | ?:[\\/]* )  # Absolute name.
13593    ac_srcdir=$srcdir$ac_dir_suffix;
13594    ac_top_srcdir=$srcdir
13595    ac_abs_top_srcdir=$srcdir ;;
13596  *) # Relative name.
13597    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13598    ac_top_srcdir=$ac_top_build_prefix$srcdir
13599    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13600esac
13601ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13602
13603
13604  case $ac_mode in
13605  :F)
13606  #
13607  # CONFIG_FILE
13608  #
13609
13610  case $INSTALL in
13611  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13612  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13613  esac
13614_ACEOF
13615
13616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13617# If the template does not know about datarootdir, expand it.
13618# FIXME: This hack should be removed a few years after 2.60.
13619ac_datarootdir_hack=; ac_datarootdir_seen=
13620ac_sed_dataroot='
13621/datarootdir/ {
13622  p
13623  q
13624}
13625/@datadir@/p
13626/@docdir@/p
13627/@infodir@/p
13628/@localedir@/p
13629/@mandir@/p'
13630case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13631*datarootdir*) ac_datarootdir_seen=yes;;
13632*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13633  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13634$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13635_ACEOF
13636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13637  ac_datarootdir_hack='
13638  s&@datadir@&$datadir&g
13639  s&@docdir@&$docdir&g
13640  s&@infodir@&$infodir&g
13641  s&@localedir@&$localedir&g
13642  s&@mandir@&$mandir&g
13643  s&\\\${datarootdir}&$datarootdir&g' ;;
13644esac
13645_ACEOF
13646
13647# Neutralize VPATH when `$srcdir' = `.'.
13648# Shell code in configure.ac might set extrasub.
13649# FIXME: do we really want to maintain this feature?
13650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13651ac_sed_extra="$ac_vpsub
13652$extrasub
13653_ACEOF
13654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13655:t
13656/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13657s|@configure_input@|$ac_sed_conf_input|;t t
13658s&@top_builddir@&$ac_top_builddir_sub&;t t
13659s&@top_build_prefix@&$ac_top_build_prefix&;t t
13660s&@srcdir@&$ac_srcdir&;t t
13661s&@abs_srcdir@&$ac_abs_srcdir&;t t
13662s&@top_srcdir@&$ac_top_srcdir&;t t
13663s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13664s&@builddir@&$ac_builddir&;t t
13665s&@abs_builddir@&$ac_abs_builddir&;t t
13666s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13667s&@INSTALL@&$ac_INSTALL&;t t
13668$ac_datarootdir_hack
13669"
13670eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13671  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13672
13673test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13674  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13675  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
13676      "$ac_tmp/out"`; test -z "$ac_out"; } &&
13677  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13678which seems to be undefined.  Please make sure it is defined" >&5
13679$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13680which seems to be undefined.  Please make sure it is defined" >&2;}
13681
13682  rm -f "$ac_tmp/stdin"
13683  case $ac_file in
13684  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13685  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13686  esac \
13687  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13688 ;;
13689  :H)
13690  #
13691  # CONFIG_HEADER
13692  #
13693  if test x"$ac_file" != x-; then
13694    {
13695      $as_echo "/* $configure_input  */" \
13696      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13697    } >"$ac_tmp/config.h" \
13698      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13699    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13700      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13701$as_echo "$as_me: $ac_file is unchanged" >&6;}
13702    else
13703      rm -f "$ac_file"
13704      mv "$ac_tmp/config.h" "$ac_file" \
13705	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13706    fi
13707  else
13708    $as_echo "/* $configure_input  */" \
13709      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13710      || as_fn_error $? "could not create -" "$LINENO" 5
13711  fi
13712 ;;
13713
13714  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13715$as_echo "$as_me: executing $ac_file commands" >&6;}
13716 ;;
13717  esac
13718
13719
13720  case $ac_file$ac_mode in
13721    "include/jemalloc/internal/public_symbols.txt":C)
13722  f="${objroot}include/jemalloc/internal/public_symbols.txt"
13723  mkdir -p "${objroot}include/jemalloc/internal"
13724  cp /dev/null "${f}"
13725  for nm in `echo ${mangling_map} |tr ',' ' '` ; do
13726    n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'`
13727    m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'`
13728    echo "${n}:${m}" >> "${f}"
13729        public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${n}\$" |tr '\n' ' '`
13730  done
13731  for sym in ${public_syms} ; do
13732    n="${sym}"
13733    m="${JEMALLOC_PREFIX}${sym}"
13734    echo "${n}:${m}" >> "${f}"
13735  done
13736 ;;
13737    "include/jemalloc/internal/private_symbols.awk":C)
13738  f="${objroot}include/jemalloc/internal/private_symbols.awk"
13739  mkdir -p "${objroot}include/jemalloc/internal"
13740  export_syms=`for sym in ${public_syms}; do echo "${JEMALLOC_PREFIX}${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
13741  "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols.awk"
13742 ;;
13743    "include/jemalloc/internal/private_symbols_jet.awk":C)
13744  f="${objroot}include/jemalloc/internal/private_symbols_jet.awk"
13745  mkdir -p "${objroot}include/jemalloc/internal"
13746  export_syms=`for sym in ${public_syms}; do echo "jet_${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
13747  "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols_jet.awk"
13748 ;;
13749    "include/jemalloc/internal/public_namespace.h":C)
13750  mkdir -p "${objroot}include/jemalloc/internal"
13751  "${srcdir}/include/jemalloc/internal/public_namespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_namespace.h"
13752 ;;
13753    "include/jemalloc/internal/public_unnamespace.h":C)
13754  mkdir -p "${objroot}include/jemalloc/internal"
13755  "${srcdir}/include/jemalloc/internal/public_unnamespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_unnamespace.h"
13756 ;;
13757    "include/jemalloc/jemalloc_protos_jet.h":C)
13758  mkdir -p "${objroot}include/jemalloc"
13759  cat "${srcdir}/include/jemalloc/jemalloc_protos.h.in" | sed -e 's/@je_@/jet_/g' > "${objroot}include/jemalloc/jemalloc_protos_jet.h"
13760 ;;
13761    "include/jemalloc/jemalloc_rename.h":C)
13762  mkdir -p "${objroot}include/jemalloc"
13763  "${srcdir}/include/jemalloc/jemalloc_rename.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/jemalloc_rename.h"
13764 ;;
13765    "include/jemalloc/jemalloc_mangle.h":C)
13766  mkdir -p "${objroot}include/jemalloc"
13767  "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" je_ > "${objroot}include/jemalloc/jemalloc_mangle.h"
13768 ;;
13769    "include/jemalloc/jemalloc_mangle_jet.h":C)
13770  mkdir -p "${objroot}include/jemalloc"
13771  "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" jet_ > "${objroot}include/jemalloc/jemalloc_mangle_jet.h"
13772 ;;
13773    "include/jemalloc/jemalloc.h":C)
13774  mkdir -p "${objroot}include/jemalloc"
13775  "${srcdir}/include/jemalloc/jemalloc.sh" "${objroot}" > "${objroot}include/jemalloc/jemalloc${install_suffix}.h"
13776 ;;
13777
13778  esac
13779done # for ac_tag
13780
13781
13782as_fn_exit 0
13783_ACEOF
13784ac_clean_files=$ac_clean_files_save
13785
13786test $ac_write_fail = 0 ||
13787  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13788
13789
13790# configure is writing to config.log, and then calls config.status.
13791# config.status does its own redirection, appending to config.log.
13792# Unfortunately, on DOS this fails, as config.log is still kept open
13793# by configure, so config.status won't be able to write to it; its
13794# output is simply discarded.  So we exec the FD to /dev/null,
13795# effectively closing config.log, so it can be properly (re)opened and
13796# appended to by config.status.  When coming back to configure, we
13797# need to make the FD available again.
13798if test "$no_create" != yes; then
13799  ac_cs_success=:
13800  ac_config_status_args=
13801  test "$silent" = yes &&
13802    ac_config_status_args="$ac_config_status_args --quiet"
13803  exec 5>/dev/null
13804  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13805  exec 5>>config.log
13806  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13807  # would make configure fail if this is the last instruction.
13808  $ac_cs_success || as_fn_exit 1
13809fi
13810if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13811  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13812$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13813fi
13814
13815
13816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
13817$as_echo "===============================================================================" >&6; }
13818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version   : ${jemalloc_version}" >&5
13819$as_echo "jemalloc version   : ${jemalloc_version}" >&6; }
13820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: library revision   : ${rev}" >&5
13821$as_echo "library revision   : ${rev}" >&6; }
13822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13823$as_echo "" >&6; }
13824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIG             : ${CONFIG}" >&5
13825$as_echo "CONFIG             : ${CONFIG}" >&6; }
13826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC                 : ${CC}" >&5
13827$as_echo "CC                 : ${CC}" >&6; }
13828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CFLAGS   : ${CONFIGURE_CFLAGS}" >&5
13829$as_echo "CONFIGURE_CFLAGS   : ${CONFIGURE_CFLAGS}" >&6; }
13830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CFLAGS   : ${SPECIFIED_CFLAGS}" >&5
13831$as_echo "SPECIFIED_CFLAGS   : ${SPECIFIED_CFLAGS}" >&6; }
13832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CFLAGS       : ${EXTRA_CFLAGS}" >&5
13833$as_echo "EXTRA_CFLAGS       : ${EXTRA_CFLAGS}" >&6; }
13834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS           : ${CPPFLAGS}" >&5
13835$as_echo "CPPFLAGS           : ${CPPFLAGS}" >&6; }
13836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CXX                : ${CXX}" >&5
13837$as_echo "CXX                : ${CXX}" >&6; }
13838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&5
13839$as_echo "CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&6; }
13840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&5
13841$as_echo "SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&6; }
13842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CXXFLAGS     : ${EXTRA_CXXFLAGS}" >&5
13843$as_echo "EXTRA_CXXFLAGS     : ${EXTRA_CXXFLAGS}" >&6; }
13844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS            : ${LDFLAGS}" >&5
13845$as_echo "LDFLAGS            : ${LDFLAGS}" >&6; }
13846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_LDFLAGS      : ${EXTRA_LDFLAGS}" >&5
13847$as_echo "EXTRA_LDFLAGS      : ${EXTRA_LDFLAGS}" >&6; }
13848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: DSO_LDFLAGS        : ${DSO_LDFLAGS}" >&5
13849$as_echo "DSO_LDFLAGS        : ${DSO_LDFLAGS}" >&6; }
13850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS               : ${LIBS}" >&5
13851$as_echo "LIBS               : ${LIBS}" >&6; }
13852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA        : ${RPATH_EXTRA}" >&5
13853$as_echo "RPATH_EXTRA        : ${RPATH_EXTRA}" >&6; }
13854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13855$as_echo "" >&6; }
13856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC           : ${XSLTPROC}" >&5
13857$as_echo "XSLTPROC           : ${XSLTPROC}" >&6; }
13858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT            : ${XSLROOT}" >&5
13859$as_echo "XSLROOT            : ${XSLROOT}" >&6; }
13860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13861$as_echo "" >&6; }
13862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX             : ${PREFIX}" >&5
13863$as_echo "PREFIX             : ${PREFIX}" >&6; }
13864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR             : ${BINDIR}" >&5
13865$as_echo "BINDIR             : ${BINDIR}" >&6; }
13866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR            : ${DATADIR}" >&5
13867$as_echo "DATADIR            : ${DATADIR}" >&6; }
13868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR         : ${INCLUDEDIR}" >&5
13869$as_echo "INCLUDEDIR         : ${INCLUDEDIR}" >&6; }
13870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR             : ${LIBDIR}" >&5
13871$as_echo "LIBDIR             : ${LIBDIR}" >&6; }
13872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR             : ${MANDIR}" >&5
13873$as_echo "MANDIR             : ${MANDIR}" >&6; }
13874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13875$as_echo "" >&6; }
13876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot            : ${srcroot}" >&5
13877$as_echo "srcroot            : ${srcroot}" >&6; }
13878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot        : ${abs_srcroot}" >&5
13879$as_echo "abs_srcroot        : ${abs_srcroot}" >&6; }
13880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot            : ${objroot}" >&5
13881$as_echo "objroot            : ${objroot}" >&6; }
13882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot        : ${abs_objroot}" >&5
13883$as_echo "abs_objroot        : ${abs_objroot}" >&6; }
13884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13885$as_echo "" >&6; }
13886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX    : ${JEMALLOC_PREFIX}" >&5
13887$as_echo "JEMALLOC_PREFIX    : ${JEMALLOC_PREFIX}" >&6; }
13888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5
13889$as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; }
13890{ $as_echo "$as_me:${as_lineno-$LINENO}: result:                    : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5
13891$as_echo "                   : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; }
13892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix     : ${install_suffix}" >&5
13893$as_echo "install_suffix     : ${install_suffix}" >&6; }
13894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc_conf        : ${config_malloc_conf}" >&5
13895$as_echo "malloc_conf        : ${config_malloc_conf}" >&6; }
13896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: shared libs        : ${enable_shared}" >&5
13897$as_echo "shared libs        : ${enable_shared}" >&6; }
13898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: static libs        : ${enable_static}" >&5
13899$as_echo "static libs        : ${enable_static}" >&6; }
13900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen            : ${enable_autogen}" >&5
13901$as_echo "autogen            : ${enable_autogen}" >&6; }
13902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: debug              : ${enable_debug}" >&5
13903$as_echo "debug              : ${enable_debug}" >&6; }
13904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: stats              : ${enable_stats}" >&5
13905$as_echo "stats              : ${enable_stats}" >&6; }
13906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: experimetal_smallocx : ${enable_experimental_smallocx}" >&5
13907$as_echo "experimetal_smallocx : ${enable_experimental_smallocx}" >&6; }
13908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof               : ${enable_prof}" >&5
13909$as_echo "prof               : ${enable_prof}" >&6; }
13910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind     : ${enable_prof_libunwind}" >&5
13911$as_echo "prof-libunwind     : ${enable_prof_libunwind}" >&6; }
13912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc        : ${enable_prof_libgcc}" >&5
13913$as_echo "prof-libgcc        : ${enable_prof_libgcc}" >&6; }
13914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc           : ${enable_prof_gcc}" >&5
13915$as_echo "prof-gcc           : ${enable_prof_gcc}" >&6; }
13916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: fill               : ${enable_fill}" >&5
13917$as_echo "fill               : ${enable_fill}" >&6; }
13918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: utrace             : ${enable_utrace}" >&5
13919$as_echo "utrace             : ${enable_utrace}" >&6; }
13920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc            : ${enable_xmalloc}" >&5
13921$as_echo "xmalloc            : ${enable_xmalloc}" >&6; }
13922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: log                : ${enable_log}" >&5
13923$as_echo "log                : ${enable_log}" >&6; }
13924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock          : ${enable_lazy_lock}" >&5
13925$as_echo "lazy_lock          : ${enable_lazy_lock}" >&6; }
13926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cache-oblivious    : ${enable_cache_oblivious}" >&5
13927$as_echo "cache-oblivious    : ${enable_cache_oblivious}" >&6; }
13928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: cxx                : ${enable_cxx}" >&5
13929$as_echo "cxx                : ${enable_cxx}" >&6; }
13930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
13931$as_echo "===============================================================================" >&6; }
13932