]> git.proxmox.com Git - rustc.git/blob - src/jemalloc/configure
New upstream version 1.22.1+dfsg1
[rustc.git] / src / jemalloc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="Makefile.in"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 ac_subst_vars='LTLIBOBJS
623 LIBOBJS
624 cfgoutputs_out
625 cfgoutputs_in
626 cfghdrs_out
627 cfghdrs_in
628 enable_zone_allocator
629 enable_thp
630 enable_tls
631 enable_lazy_lock
632 jemalloc_version_gid
633 jemalloc_version_nrev
634 jemalloc_version_bugfix
635 jemalloc_version_minor
636 jemalloc_version_major
637 jemalloc_version
638 enable_cache_oblivious
639 enable_xmalloc
640 enable_valgrind
641 enable_utrace
642 enable_fill
643 enable_munmap
644 enable_tcache
645 enable_prof
646 enable_stats
647 enable_debug
648 je_
649 install_suffix
650 private_namespace
651 JEMALLOC_CPREFIX
652 enable_code_coverage
653 AUTOCONF
654 LD
655 RANLIB
656 INSTALL_DATA
657 INSTALL_SCRIPT
658 INSTALL_PROGRAM
659 enable_autogen
660 RPATH_EXTRA
661 LM
662 CC_MM
663 AROUT
664 ARFLAGS
665 MKLIB
666 TEST_LD_MODE
667 LDTARGET
668 CTARGET
669 PIC_CFLAGS
670 SOREV
671 EXTRA_LDFLAGS
672 DSO_LDFLAGS
673 link_whole_archive
674 libprefix
675 exe
676 a
677 o
678 importlib
679 so
680 LD_PRELOAD_VAR
681 RPATH
682 abi
683 AR
684 host_os
685 host_vendor
686 host_cpu
687 host
688 build_os
689 build_vendor
690 build_cpu
691 build
692 EGREP
693 GREP
694 CPP
695 EXTRA_CFLAGS
696 SPECIFIED_CFLAGS
697 CONFIGURE_CFLAGS
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
704 CC
705 XSLROOT
706 XSLTPROC
707 MANDIR
708 DATADIR
709 LIBDIR
710 INCLUDEDIR
711 BINDIR
712 PREFIX
713 abs_objroot
714 objroot
715 abs_srcroot
716 srcroot
717 rev
718 CONFIG
719 target_alias
720 host_alias
721 build_alias
722 LIBS
723 ECHO_T
724 ECHO_N
725 ECHO_C
726 DEFS
727 mandir
728 localedir
729 libdir
730 psdir
731 pdfdir
732 dvidir
733 htmldir
734 infodir
735 docdir
736 oldincludedir
737 includedir
738 runstatedir
739 localstatedir
740 sharedstatedir
741 sysconfdir
742 datadir
743 datarootdir
744 libexecdir
745 sbindir
746 bindir
747 program_transform_name
748 prefix
749 exec_prefix
750 PACKAGE_URL
751 PACKAGE_BUGREPORT
752 PACKAGE_STRING
753 PACKAGE_VERSION
754 PACKAGE_TARNAME
755 PACKAGE_NAME
756 PATH_SEPARATOR
757 SHELL'
758 ac_subst_files=''
759 ac_user_opts='
760 enable_option_checking
761 with_xslroot
762 with_rpath
763 enable_autogen
764 enable_code_coverage
765 with_mangling
766 with_jemalloc_prefix
767 with_export
768 with_private_namespace
769 with_install_suffix
770 with_malloc_conf
771 enable_cc_silence
772 enable_debug
773 enable_ivsalloc
774 enable_stats
775 enable_prof
776 enable_prof_libunwind
777 with_static_libunwind
778 enable_prof_libgcc
779 enable_prof_gcc
780 enable_tcache
781 enable_munmap
782 enable_fill
783 enable_utrace
784 enable_valgrind
785 enable_xmalloc
786 enable_cache_oblivious
787 with_lg_tiny_min
788 with_lg_quantum
789 with_lg_page
790 with_lg_page_sizes
791 with_lg_size_class_group
792 with_version
793 enable_syscall
794 enable_lazy_lock
795 enable_tls
796 enable_thp
797 enable_zone_allocator
798 '
799 ac_precious_vars='build_alias
800 host_alias
801 target_alias
802 CC
803 CFLAGS
804 LDFLAGS
805 LIBS
806 CPPFLAGS
807 CPP'
808
809
810 # Initialize some variables set by options.
811 ac_init_help=
812 ac_init_version=false
813 ac_unrecognized_opts=
814 ac_unrecognized_sep=
815 # The variables have the same names as the options, with
816 # dashes changed to underlines.
817 cache_file=/dev/null
818 exec_prefix=NONE
819 no_create=
820 no_recursion=
821 prefix=NONE
822 program_prefix=NONE
823 program_suffix=NONE
824 program_transform_name=s,x,x,
825 silent=
826 site=
827 srcdir=
828 verbose=
829 x_includes=NONE
830 x_libraries=NONE
831
832 # Installation directory options.
833 # These are left unexpanded so users can "make install exec_prefix=/foo"
834 # and all the variables that are supposed to be based on exec_prefix
835 # by default will actually change.
836 # Use braces instead of parens because sh, perl, etc. also accept them.
837 # (The list follows the same order as the GNU Coding Standards.)
838 bindir='${exec_prefix}/bin'
839 sbindir='${exec_prefix}/sbin'
840 libexecdir='${exec_prefix}/libexec'
841 datarootdir='${prefix}/share'
842 datadir='${datarootdir}'
843 sysconfdir='${prefix}/etc'
844 sharedstatedir='${prefix}/com'
845 localstatedir='${prefix}/var'
846 runstatedir='${localstatedir}/run'
847 includedir='${prefix}/include'
848 oldincludedir='/usr/include'
849 docdir='${datarootdir}/doc/${PACKAGE}'
850 infodir='${datarootdir}/info'
851 htmldir='${docdir}'
852 dvidir='${docdir}'
853 pdfdir='${docdir}'
854 psdir='${docdir}'
855 libdir='${exec_prefix}/lib'
856 localedir='${datarootdir}/locale'
857 mandir='${datarootdir}/man'
858
859 ac_prev=
860 ac_dashdash=
861 for ac_option
862 do
863 # If the previous option needs an argument, assign it.
864 if test -n "$ac_prev"; then
865 eval $ac_prev=\$ac_option
866 ac_prev=
867 continue
868 fi
869
870 case $ac_option in
871 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872 *=) ac_optarg= ;;
873 *) ac_optarg=yes ;;
874 esac
875
876 # Accept the important Cygnus configure options, so we can diagnose typos.
877
878 case $ac_dashdash$ac_option in
879 --)
880 ac_dashdash=yes ;;
881
882 -bindir | --bindir | --bindi | --bind | --bin | --bi)
883 ac_prev=bindir ;;
884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885 bindir=$ac_optarg ;;
886
887 -build | --build | --buil | --bui | --bu)
888 ac_prev=build_alias ;;
889 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890 build_alias=$ac_optarg ;;
891
892 -cache-file | --cache-file | --cache-fil | --cache-fi \
893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894 ac_prev=cache_file ;;
895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897 cache_file=$ac_optarg ;;
898
899 --config-cache | -C)
900 cache_file=config.cache ;;
901
902 -datadir | --datadir | --datadi | --datad)
903 ac_prev=datadir ;;
904 -datadir=* | --datadir=* | --datadi=* | --datad=*)
905 datadir=$ac_optarg ;;
906
907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908 | --dataroo | --dataro | --datar)
909 ac_prev=datarootdir ;;
910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912 datarootdir=$ac_optarg ;;
913
914 -disable-* | --disable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error $? "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923 "enable_$ac_useropt"
924 "*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=no ;;
929
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
934
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
939
940 -enable-* | --enable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=\$ac_optarg ;;
955
956 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958 | --exec | --exe | --ex)
959 ac_prev=exec_prefix ;;
960 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962 | --exec=* | --exe=* | --ex=*)
963 exec_prefix=$ac_optarg ;;
964
965 -gas | --gas | --ga | --g)
966 # Obsolete; use --with-gas.
967 with_gas=yes ;;
968
969 -help | --help | --hel | --he | -h)
970 ac_init_help=long ;;
971 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972 ac_init_help=recursive ;;
973 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974 ac_init_help=short ;;
975
976 -host | --host | --hos | --ho)
977 ac_prev=host_alias ;;
978 -host=* | --host=* | --hos=* | --ho=*)
979 host_alias=$ac_optarg ;;
980
981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 ac_prev=htmldir ;;
983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 | --ht=*)
985 htmldir=$ac_optarg ;;
986
987 -includedir | --includedir | --includedi | --included | --include \
988 | --includ | --inclu | --incl | --inc)
989 ac_prev=includedir ;;
990 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991 | --includ=* | --inclu=* | --incl=* | --inc=*)
992 includedir=$ac_optarg ;;
993
994 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 ac_prev=infodir ;;
996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997 infodir=$ac_optarg ;;
998
999 -libdir | --libdir | --libdi | --libd)
1000 ac_prev=libdir ;;
1001 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002 libdir=$ac_optarg ;;
1003
1004 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005 | --libexe | --libex | --libe)
1006 ac_prev=libexecdir ;;
1007 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008 | --libexe=* | --libex=* | --libe=*)
1009 libexecdir=$ac_optarg ;;
1010
1011 -localedir | --localedir | --localedi | --localed | --locale)
1012 ac_prev=localedir ;;
1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014 localedir=$ac_optarg ;;
1015
1016 -localstatedir | --localstatedir | --localstatedi | --localstated \
1017 | --localstate | --localstat | --localsta | --localst | --locals)
1018 ac_prev=localstatedir ;;
1019 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1020 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1021 localstatedir=$ac_optarg ;;
1022
1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 ac_prev=mandir ;;
1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026 mandir=$ac_optarg ;;
1027
1028 -nfp | --nfp | --nf)
1029 # Obsolete; use --without-fp.
1030 with_fp=no ;;
1031
1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033 | --no-cr | --no-c | -n)
1034 no_create=yes ;;
1035
1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 no_recursion=yes ;;
1039
1040 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042 | --oldin | --oldi | --old | --ol | --o)
1043 ac_prev=oldincludedir ;;
1044 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047 oldincludedir=$ac_optarg ;;
1048
1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 ac_prev=prefix ;;
1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052 prefix=$ac_optarg ;;
1053
1054 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055 | --program-pre | --program-pr | --program-p)
1056 ac_prev=program_prefix ;;
1057 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059 program_prefix=$ac_optarg ;;
1060
1061 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062 | --program-suf | --program-su | --program-s)
1063 ac_prev=program_suffix ;;
1064 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066 program_suffix=$ac_optarg ;;
1067
1068 -program-transform-name | --program-transform-name \
1069 | --program-transform-nam | --program-transform-na \
1070 | --program-transform-n | --program-transform- \
1071 | --program-transform | --program-transfor \
1072 | --program-transfo | --program-transf \
1073 | --program-trans | --program-tran \
1074 | --progr-tra | --program-tr | --program-t)
1075 ac_prev=program_transform_name ;;
1076 -program-transform-name=* | --program-transform-name=* \
1077 | --program-transform-nam=* | --program-transform-na=* \
1078 | --program-transform-n=* | --program-transform-=* \
1079 | --program-transform=* | --program-transfor=* \
1080 | --program-transfo=* | --program-transf=* \
1081 | --program-trans=* | --program-tran=* \
1082 | --progr-tra=* | --program-tr=* | --program-t=*)
1083 program_transform_name=$ac_optarg ;;
1084
1085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 ac_prev=pdfdir ;;
1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088 pdfdir=$ac_optarg ;;
1089
1090 -psdir | --psdir | --psdi | --psd | --ps)
1091 ac_prev=psdir ;;
1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093 psdir=$ac_optarg ;;
1094
1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096 | -silent | --silent | --silen | --sile | --sil)
1097 silent=yes ;;
1098
1099 -runstatedir | --runstatedir | --runstatedi | --runstated \
1100 | --runstate | --runstat | --runsta | --runst | --runs \
1101 | --run | --ru | --r)
1102 ac_prev=runstatedir ;;
1103 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1104 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1105 | --run=* | --ru=* | --r=*)
1106 runstatedir=$ac_optarg ;;
1107
1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109 ac_prev=sbindir ;;
1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111 | --sbi=* | --sb=*)
1112 sbindir=$ac_optarg ;;
1113
1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116 | --sharedst | --shareds | --shared | --share | --shar \
1117 | --sha | --sh)
1118 ac_prev=sharedstatedir ;;
1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122 | --sha=* | --sh=*)
1123 sharedstatedir=$ac_optarg ;;
1124
1125 -site | --site | --sit)
1126 ac_prev=site ;;
1127 -site=* | --site=* | --sit=*)
1128 site=$ac_optarg ;;
1129
1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131 ac_prev=srcdir ;;
1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133 srcdir=$ac_optarg ;;
1134
1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136 | --syscon | --sysco | --sysc | --sys | --sy)
1137 ac_prev=sysconfdir ;;
1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140 sysconfdir=$ac_optarg ;;
1141
1142 -target | --target | --targe | --targ | --tar | --ta | --t)
1143 ac_prev=target_alias ;;
1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145 target_alias=$ac_optarg ;;
1146
1147 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148 verbose=yes ;;
1149
1150 -version | --version | --versio | --versi | --vers | -V)
1151 ac_init_version=: ;;
1152
1153 -with-* | --with-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid package name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1161 *"
1162 "with_$ac_useropt"
1163 "*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval with_$ac_useropt=\$ac_optarg ;;
1168
1169 -without-* | --without-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=no ;;
1184
1185 --x)
1186 # Obsolete; use --with-x.
1187 with_x=yes ;;
1188
1189 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190 | --x-incl | --x-inc | --x-in | --x-i)
1191 ac_prev=x_includes ;;
1192 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194 x_includes=$ac_optarg ;;
1195
1196 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198 ac_prev=x_libraries ;;
1199 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201 x_libraries=$ac_optarg ;;
1202
1203 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1204 Try \`$0 --help' for more information"
1205 ;;
1206
1207 *=*)
1208 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209 # Reject names that are not valid shell variable names.
1210 case $ac_envvar in #(
1211 '' | [0-9]* | *[!_$as_cr_alnum]* )
1212 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1213 esac
1214 eval $ac_envvar=\$ac_optarg
1215 export $ac_envvar ;;
1216
1217 *)
1218 # FIXME: should be removed in autoconf 3.0.
1219 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1223 ;;
1224
1225 esac
1226 done
1227
1228 if test -n "$ac_prev"; then
1229 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230 as_fn_error $? "missing argument to $ac_option"
1231 fi
1232
1233 if test -n "$ac_unrecognized_opts"; then
1234 case $enable_option_checking in
1235 no) ;;
1236 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1237 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238 esac
1239 fi
1240
1241 # Check all directory arguments for consistency.
1242 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243 datadir sysconfdir sharedstatedir localstatedir includedir \
1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245 libdir localedir mandir runstatedir
1246 do
1247 eval ac_val=\$$ac_var
1248 # Remove trailing slashes.
1249 case $ac_val in
1250 */ )
1251 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252 eval $ac_var=\$ac_val;;
1253 esac
1254 # Be sure to have absolute directory names.
1255 case $ac_val in
1256 [\\/$]* | ?:[\\/]* ) continue;;
1257 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258 esac
1259 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1260 done
1261
1262 # There might be people who depend on the old broken behavior: `$host'
1263 # used to hold the argument of --host etc.
1264 # FIXME: To remove some day.
1265 build=$build_alias
1266 host=$host_alias
1267 target=$target_alias
1268
1269 # FIXME: To remove some day.
1270 if test "x$host_alias" != x; then
1271 if test "x$build_alias" = x; then
1272 cross_compiling=maybe
1273 elif test "x$build_alias" != "x$host_alias"; then
1274 cross_compiling=yes
1275 fi
1276 fi
1277
1278 ac_tool_prefix=
1279 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280
1281 test "$silent" = yes && exec 6>/dev/null
1282
1283
1284 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285 ac_ls_di=`ls -di .` &&
1286 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287 as_fn_error $? "working directory cannot be determined"
1288 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289 as_fn_error $? "pwd does not report name of working directory"
1290
1291
1292 # Find the source files, if location was not specified.
1293 if test -z "$srcdir"; then
1294 ac_srcdir_defaulted=yes
1295 # Try the directory containing this script, then the parent directory.
1296 ac_confdir=`$as_dirname -- "$as_myself" ||
1297 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298 X"$as_myself" : 'X\(//\)[^/]' \| \
1299 X"$as_myself" : 'X\(//\)$' \| \
1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301 $as_echo X"$as_myself" |
1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)[^/].*/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\/\)$/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\).*/{
1315 s//\1/
1316 q
1317 }
1318 s/.*/./; q'`
1319 srcdir=$ac_confdir
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 srcdir=..
1322 fi
1323 else
1324 ac_srcdir_defaulted=no
1325 fi
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1329 fi
1330 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331 ac_abs_confdir=`(
1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1333 pwd)`
1334 # When building in place, set srcdir=.
1335 if test "$ac_abs_confdir" = "$ac_pwd"; then
1336 srcdir=.
1337 fi
1338 # Remove unnecessary trailing slashes from srcdir.
1339 # Double slashes in file names in object file debugging info
1340 # mess up M-x gdb in Emacs.
1341 case $srcdir in
1342 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343 esac
1344 for ac_var in $ac_precious_vars; do
1345 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_env_${ac_var}_value=\$${ac_var}
1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349 done
1350
1351 #
1352 # Report the --help message.
1353 #
1354 if test "$ac_init_help" = "long"; then
1355 # Omit some internal or obsolete options to make the list less imposing.
1356 # This message is too long to be a string in the A/UX 3.1 sh.
1357 cat <<_ACEOF
1358 \`configure' configures this package to adapt to many kinds of systems.
1359
1360 Usage: $0 [OPTION]... [VAR=VALUE]...
1361
1362 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363 VAR=VALUE. See below for descriptions of some of the useful variables.
1364
1365 Defaults for the options are specified in brackets.
1366
1367 Configuration:
1368 -h, --help display this help and exit
1369 --help=short display options specific to this package
1370 --help=recursive display the short help of all the included packages
1371 -V, --version display version information and exit
1372 -q, --quiet, --silent do not print \`checking ...' messages
1373 --cache-file=FILE cache test results in FILE [disabled]
1374 -C, --config-cache alias for \`--cache-file=config.cache'
1375 -n, --no-create do not create output files
1376 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1377
1378 Installation directories:
1379 --prefix=PREFIX install architecture-independent files in PREFIX
1380 [$ac_default_prefix]
1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1382 [PREFIX]
1383
1384 By default, \`make install' will install all the files in
1385 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1386 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387 for instance \`--prefix=\$HOME'.
1388
1389 For better control, use the options below.
1390
1391 Fine tuning of the installation directories:
1392 --bindir=DIR user executables [EPREFIX/bin]
1393 --sbindir=DIR system admin executables [EPREFIX/sbin]
1394 --libexecdir=DIR program executables [EPREFIX/libexec]
1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1398 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1412 _ACEOF
1413
1414 cat <<\_ACEOF
1415
1416 System types:
1417 --build=BUILD configure for building on BUILD [guessed]
1418 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419 _ACEOF
1420 fi
1421
1422 if test -n "$ac_init_help"; then
1423
1424 cat <<\_ACEOF
1425
1426 Optional Features:
1427 --disable-option-checking ignore unrecognized --enable/--with options
1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1430 --enable-autogen Automatically regenerate configure output
1431 --enable-code-coverage Enable code coverage
1432 --disable-cc-silence Do not silence irrelevant compiler warnings
1433 --enable-debug Build debugging code (implies --enable-ivsalloc)
1434 --enable-ivsalloc Validate pointers passed through the public API
1435 --disable-stats Disable statistics calculation/reporting
1436 --enable-prof Enable allocation profiling
1437 --enable-prof-libunwind Use libunwind for backtracing
1438 --disable-prof-libgcc Do not use libgcc for backtracing
1439 --disable-prof-gcc Do not use gcc intrinsics for backtracing
1440 --disable-tcache Disable per thread caches
1441 --disable-munmap Disable VM deallocation via munmap(2)
1442 --disable-fill Disable support for junk/zero filling, quarantine,
1443 and redzones
1444 --enable-utrace Enable utrace(2)-based tracing
1445 --disable-valgrind Disable support for Valgrind
1446 --enable-xmalloc Support xmalloc option
1447 --disable-cache-oblivious
1448 Disable support for cache-oblivious allocation
1449 alignment
1450 --disable-syscall Disable use of syscall(2)
1451 --enable-lazy-lock Enable lazy locking (only lock when multi-threaded)
1452 --disable-tls Disable thread-local storage (__thread keyword)
1453 --disable-thp Disable transparent huge page supprot
1454 --disable-zone-allocator
1455 Disable zone allocator for Darwin
1456
1457 Optional Packages:
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-xslroot=<path> XSL stylesheet root path
1461 --with-rpath=<rpath> Colon-separated rpath (ELF systems only)
1462 --with-mangling=<map> Mangle symbols in <map>
1463 --with-jemalloc-prefix=<prefix>
1464 Prefix to prepend to all public APIs
1465 --without-export disable exporting jemalloc public APIs
1466 --with-private-namespace=<prefix>
1467 Prefix to prepend to all library-private APIs
1468 --with-install-suffix=<suffix>
1469 Suffix to append to all installed files
1470 --with-malloc-conf=<malloc_conf>
1471 config.malloc_conf options string
1472 --with-static-libunwind=<libunwind.a>
1473 Path to static libunwind library; use rather than
1474 dynamically linking
1475 --with-lg-tiny-min=<lg-tiny-min>
1476 Base 2 log of minimum tiny size class to support
1477 --with-lg-quantum=<lg-quantum>
1478 Base 2 log of minimum allocation alignment
1479 --with-lg-page=<lg-page>
1480 Base 2 log of system page size
1481 --with-lg-page-sizes=<lg-page-sizes>
1482 Base 2 logs of system page sizes to support
1483 --with-lg-size-class-group=<lg-size-class-group>
1484 Base 2 log of size classes per doubling
1485 --with-version=<major>.<minor>.<bugfix>-<nrev>-g<gid>
1486 Version string
1487
1488 Some influential environment variables:
1489 CC C compiler command
1490 CFLAGS C compiler flags
1491 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492 nonstandard directory <lib dir>
1493 LIBS libraries to pass to the linker, e.g. -l<library>
1494 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1495 you have headers in a nonstandard directory <include dir>
1496 CPP C preprocessor
1497
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1500
1501 Report bugs to the package provider.
1502 _ACEOF
1503 ac_status=$?
1504 fi
1505
1506 if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509 test -d "$ac_dir" ||
1510 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1511 continue
1512 ac_builddir=.
1513
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *)
1517 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 esac ;;
1524 esac
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1529
1530 case $srcdir in
1531 .) # We are building in place.
1532 ac_srcdir=.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1539 *) # Relative name.
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 esac
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1554 else
1555 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 fi || ac_status=$?
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1558 done
1559 fi
1560
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563 cat <<\_ACEOF
1564 configure
1565 generated by GNU Autoconf 2.69
1566
1567 Copyright (C) 2012 Free Software Foundation, Inc.
1568 This configure script is free software; the Free Software Foundation
1569 gives unlimited permission to copy, distribute and modify it.
1570 _ACEOF
1571 exit
1572 fi
1573
1574 ## ------------------------ ##
1575 ## Autoconf initialization. ##
1576 ## ------------------------ ##
1577
1578 # ac_fn_c_try_compile LINENO
1579 # --------------------------
1580 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1581 ac_fn_c_try_compile ()
1582 {
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 rm -f conftest.$ac_objext
1585 if { { ac_try="$ac_compile"
1586 case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589 esac
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_compile") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1598 fi
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && {
1601 test -z "$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 } && test -s conftest.$ac_objext; then :
1604 ac_retval=0
1605 else
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=1
1610 fi
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1613
1614 } # ac_fn_c_try_compile
1615
1616 # ac_fn_c_try_cpp LINENO
1617 # ----------------------
1618 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_c_try_cpp ()
1620 {
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if { { ac_try="$ac_cpp conftest.$ac_ext"
1623 case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } > conftest.i && {
1638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 }; then :
1641 ac_retval=0
1642 else
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1645
1646 ac_retval=1
1647 fi
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1650
1651 } # ac_fn_c_try_cpp
1652
1653 # ac_fn_c_try_run LINENO
1654 # ----------------------
1655 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1656 # that executables *can* be run.
1657 ac_fn_c_try_run ()
1658 {
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if { { ac_try="$ac_link"
1661 case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_link") 2>&5
1668 ac_status=$?
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1671 { { case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_try") 2>&5
1678 ac_status=$?
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; }; }; then :
1681 ac_retval=0
1682 else
1683 $as_echo "$as_me: program exited with status $ac_status" >&5
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=$ac_status
1688 fi
1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1692
1693 } # ac_fn_c_try_run
1694
1695 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1696 # -------------------------------------------------------
1697 # Tests whether HEADER exists and can be compiled using the include files in
1698 # INCLUDES, setting the cache variable VAR accordingly.
1699 ac_fn_c_check_header_compile ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705 $as_echo_n "(cached) " >&6
1706 else
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h. */
1709 $4
1710 #include <$2>
1711 _ACEOF
1712 if ac_fn_c_try_compile "$LINENO"; then :
1713 eval "$3=yes"
1714 else
1715 eval "$3=no"
1716 fi
1717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718 fi
1719 eval ac_res=\$$3
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721 $as_echo "$ac_res" >&6; }
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723
1724 } # ac_fn_c_check_header_compile
1725
1726 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1727 # --------------------------------------------
1728 # Tries to find the compile-time value of EXPR in a program that includes
1729 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1730 # computed
1731 ac_fn_c_compute_int ()
1732 {
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if test "$cross_compiling" = yes; then
1735 # Depending upon the size, compute the lo and hi bounds.
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1738 $4
1739 int
1740 main ()
1741 {
1742 static int test_array [1 - 2 * !(($2) >= 0)];
1743 test_array [0] = 0;
1744 return test_array [0];
1745
1746 ;
1747 return 0;
1748 }
1749 _ACEOF
1750 if ac_fn_c_try_compile "$LINENO"; then :
1751 ac_lo=0 ac_mid=0
1752 while :; do
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1755 $4
1756 int
1757 main ()
1758 {
1759 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1760 test_array [0] = 0;
1761 return test_array [0];
1762
1763 ;
1764 return 0;
1765 }
1766 _ACEOF
1767 if ac_fn_c_try_compile "$LINENO"; then :
1768 ac_hi=$ac_mid; break
1769 else
1770 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1771 if test $ac_lo -le $ac_mid; then
1772 ac_lo= ac_hi=
1773 break
1774 fi
1775 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1776 fi
1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778 done
1779 else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 $4
1783 int
1784 main ()
1785 {
1786 static int test_array [1 - 2 * !(($2) < 0)];
1787 test_array [0] = 0;
1788 return test_array [0];
1789
1790 ;
1791 return 0;
1792 }
1793 _ACEOF
1794 if ac_fn_c_try_compile "$LINENO"; then :
1795 ac_hi=-1 ac_mid=-1
1796 while :; do
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1799 $4
1800 int
1801 main ()
1802 {
1803 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1804 test_array [0] = 0;
1805 return test_array [0];
1806
1807 ;
1808 return 0;
1809 }
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812 ac_lo=$ac_mid; break
1813 else
1814 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1815 if test $ac_mid -le $ac_hi; then
1816 ac_lo= ac_hi=
1817 break
1818 fi
1819 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1820 fi
1821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822 done
1823 else
1824 ac_lo= ac_hi=
1825 fi
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 # Binary search between lo and hi bounds.
1830 while test "x$ac_lo" != "x$ac_hi"; do
1831 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 $4
1835 int
1836 main ()
1837 {
1838 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1839 test_array [0] = 0;
1840 return test_array [0];
1841
1842 ;
1843 return 0;
1844 }
1845 _ACEOF
1846 if ac_fn_c_try_compile "$LINENO"; then :
1847 ac_hi=$ac_mid
1848 else
1849 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852 done
1853 case $ac_lo in #((
1854 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1855 '') ac_retval=1 ;;
1856 esac
1857 else
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1860 $4
1861 static long int longval () { return $2; }
1862 static unsigned long int ulongval () { return $2; }
1863 #include <stdio.h>
1864 #include <stdlib.h>
1865 int
1866 main ()
1867 {
1868
1869 FILE *f = fopen ("conftest.val", "w");
1870 if (! f)
1871 return 1;
1872 if (($2) < 0)
1873 {
1874 long int i = longval ();
1875 if (i != ($2))
1876 return 1;
1877 fprintf (f, "%ld", i);
1878 }
1879 else
1880 {
1881 unsigned long int i = ulongval ();
1882 if (i != ($2))
1883 return 1;
1884 fprintf (f, "%lu", i);
1885 }
1886 /* Do not output a trailing newline, as this causes \r\n confusion
1887 on some platforms. */
1888 return ferror (f) || fclose (f) != 0;
1889
1890 ;
1891 return 0;
1892 }
1893 _ACEOF
1894 if ac_fn_c_try_run "$LINENO"; then :
1895 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1896 else
1897 ac_retval=1
1898 fi
1899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1900 conftest.$ac_objext conftest.beam conftest.$ac_ext
1901 rm -f conftest.val
1902
1903 fi
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1906
1907 } # ac_fn_c_compute_int
1908
1909 # ac_fn_c_try_link LINENO
1910 # -----------------------
1911 # Try to link conftest.$ac_ext, and return whether this succeeded.
1912 ac_fn_c_try_link ()
1913 {
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 rm -f conftest.$ac_objext conftest$ac_exeext
1916 if { { ac_try="$ac_link"
1917 case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_link") 2>conftest.err
1924 ac_status=$?
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1929 fi
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && {
1932 test -z "$ac_c_werror_flag" ||
1933 test ! -s conftest.err
1934 } && test -s conftest$ac_exeext && {
1935 test "$cross_compiling" = yes ||
1936 test -x conftest$ac_exeext
1937 }; then :
1938 ac_retval=0
1939 else
1940 $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1942
1943 ac_retval=1
1944 fi
1945 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1946 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1947 # interfere with the next link command; also delete a directory that is
1948 # left behind by Apple's compiler. We do this before executing the actions.
1949 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 as_fn_set_status $ac_retval
1952
1953 } # ac_fn_c_try_link
1954
1955 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1956 # -------------------------------------------------------
1957 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1958 # the include files in INCLUDES and setting the cache variable VAR
1959 # accordingly.
1960 ac_fn_c_check_header_mongrel ()
1961 {
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 if eval \${$3+:} false; then :
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval \${$3+:} false; then :
1967 $as_echo_n "(cached) " >&6
1968 fi
1969 eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 else
1973 # Is the header compilable?
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1975 $as_echo_n "checking $2 usability... " >&6; }
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1978 $4
1979 #include <$2>
1980 _ACEOF
1981 if ac_fn_c_try_compile "$LINENO"; then :
1982 ac_header_compiler=yes
1983 else
1984 ac_header_compiler=no
1985 fi
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1988 $as_echo "$ac_header_compiler" >&6; }
1989
1990 # Is the header present?
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1992 $as_echo_n "checking $2 presence... " >&6; }
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1995 #include <$2>
1996 _ACEOF
1997 if ac_fn_c_try_cpp "$LINENO"; then :
1998 ac_header_preproc=yes
1999 else
2000 ac_header_preproc=no
2001 fi
2002 rm -f conftest.err conftest.i conftest.$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2004 $as_echo "$ac_header_preproc" >&6; }
2005
2006 # So? What about this header?
2007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2008 yes:no: )
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2010 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2012 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 ;;
2014 no:yes:* )
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2016 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2018 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2020 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2022 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2024 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2025 ;;
2026 esac
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028 $as_echo_n "checking for $2... " >&6; }
2029 if eval \${$3+:} false; then :
2030 $as_echo_n "(cached) " >&6
2031 else
2032 eval "$3=\$ac_header_compiler"
2033 fi
2034 eval ac_res=\$$3
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037 fi
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039
2040 } # ac_fn_c_check_header_mongrel
2041
2042 # ac_fn_c_check_func LINENO FUNC VAR
2043 # ----------------------------------
2044 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2045 ac_fn_c_check_func ()
2046 {
2047 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if eval \${$3+:} false; then :
2051 $as_echo_n "(cached) " >&6
2052 else
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2055 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2057 #define $2 innocuous_$2
2058
2059 /* System header to define __stub macros and hopefully few prototypes,
2060 which can conflict with char $2 (); below.
2061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2062 <limits.h> exists even on freestanding compilers. */
2063
2064 #ifdef __STDC__
2065 # include <limits.h>
2066 #else
2067 # include <assert.h>
2068 #endif
2069
2070 #undef $2
2071
2072 /* Override any GCC internal prototype to avoid an error.
2073 Use char because int might match the return type of a GCC
2074 builtin and then its argument prototype would still apply. */
2075 #ifdef __cplusplus
2076 extern "C"
2077 #endif
2078 char $2 ();
2079 /* The GNU C library defines this for functions which it implements
2080 to always fail with ENOSYS. Some functions are actually named
2081 something starting with __ and the normal name is an alias. */
2082 #if defined __stub_$2 || defined __stub___$2
2083 choke me
2084 #endif
2085
2086 int
2087 main ()
2088 {
2089 return $2 ();
2090 ;
2091 return 0;
2092 }
2093 _ACEOF
2094 if ac_fn_c_try_link "$LINENO"; then :
2095 eval "$3=yes"
2096 else
2097 eval "$3=no"
2098 fi
2099 rm -f core conftest.err conftest.$ac_objext \
2100 conftest$ac_exeext conftest.$ac_ext
2101 fi
2102 eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106
2107 } # ac_fn_c_check_func
2108
2109 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2110 # -------------------------------------------
2111 # Tests whether TYPE exists after having included INCLUDES, setting cache
2112 # variable VAR accordingly.
2113 ac_fn_c_check_type ()
2114 {
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2117 $as_echo_n "checking for $2... " >&6; }
2118 if eval \${$3+:} false; then :
2119 $as_echo_n "(cached) " >&6
2120 else
2121 eval "$3=no"
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2124 $4
2125 int
2126 main ()
2127 {
2128 if (sizeof ($2))
2129 return 0;
2130 ;
2131 return 0;
2132 }
2133 _ACEOF
2134 if ac_fn_c_try_compile "$LINENO"; then :
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2137 $4
2138 int
2139 main ()
2140 {
2141 if (sizeof (($2)))
2142 return 0;
2143 ;
2144 return 0;
2145 }
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148
2149 else
2150 eval "$3=yes"
2151 fi
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 fi
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 fi
2156 eval ac_res=\$$3
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158 $as_echo "$ac_res" >&6; }
2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160
2161 } # ac_fn_c_check_type
2162 cat >config.log <<_ACEOF
2163 This file contains any messages produced by compilers while
2164 running configure, to aid debugging if configure makes a mistake.
2165
2166 It was created by $as_me, which was
2167 generated by GNU Autoconf 2.69. Invocation command line was
2168
2169 $ $0 $@
2170
2171 _ACEOF
2172 exec 5>>config.log
2173 {
2174 cat <<_ASUNAME
2175 ## --------- ##
2176 ## Platform. ##
2177 ## --------- ##
2178
2179 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2180 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2181 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2182 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2183 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2184
2185 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2186 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2187
2188 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2189 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2190 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2191 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2192 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2193 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2194 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2195
2196 _ASUNAME
2197
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 for as_dir in $PATH
2200 do
2201 IFS=$as_save_IFS
2202 test -z "$as_dir" && as_dir=.
2203 $as_echo "PATH: $as_dir"
2204 done
2205 IFS=$as_save_IFS
2206
2207 } >&5
2208
2209 cat >&5 <<_ACEOF
2210
2211
2212 ## ----------- ##
2213 ## Core tests. ##
2214 ## ----------- ##
2215
2216 _ACEOF
2217
2218
2219 # Keep a trace of the command line.
2220 # Strip out --no-create and --no-recursion so they do not pile up.
2221 # Strip out --silent because we don't want to record it for future runs.
2222 # Also quote any args containing shell meta-characters.
2223 # Make two passes to allow for proper duplicate-argument suppression.
2224 ac_configure_args=
2225 ac_configure_args0=
2226 ac_configure_args1=
2227 ac_must_keep_next=false
2228 for ac_pass in 1 2
2229 do
2230 for ac_arg
2231 do
2232 case $ac_arg in
2233 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2235 | -silent | --silent | --silen | --sile | --sil)
2236 continue ;;
2237 *\'*)
2238 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2239 esac
2240 case $ac_pass in
2241 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2242 2)
2243 as_fn_append ac_configure_args1 " '$ac_arg'"
2244 if test $ac_must_keep_next = true; then
2245 ac_must_keep_next=false # Got value, back to normal.
2246 else
2247 case $ac_arg in
2248 *=* | --config-cache | -C | -disable-* | --disable-* \
2249 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2250 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2251 | -with-* | --with-* | -without-* | --without-* | --x)
2252 case "$ac_configure_args0 " in
2253 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2254 esac
2255 ;;
2256 -* ) ac_must_keep_next=true ;;
2257 esac
2258 fi
2259 as_fn_append ac_configure_args " '$ac_arg'"
2260 ;;
2261 esac
2262 done
2263 done
2264 { ac_configure_args0=; unset ac_configure_args0;}
2265 { ac_configure_args1=; unset ac_configure_args1;}
2266
2267 # When interrupted or exit'd, cleanup temporary files, and complete
2268 # config.log. We remove comments because anyway the quotes in there
2269 # would cause problems or look ugly.
2270 # WARNING: Use '\'' to represent an apostrophe within the trap.
2271 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2272 trap 'exit_status=$?
2273 # Save into config.log some information that might help in debugging.
2274 {
2275 echo
2276
2277 $as_echo "## ---------------- ##
2278 ## Cache variables. ##
2279 ## ---------------- ##"
2280 echo
2281 # The following way of writing the cache mishandles newlines in values,
2282 (
2283 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2284 eval ac_val=\$$ac_var
2285 case $ac_val in #(
2286 *${as_nl}*)
2287 case $ac_var in #(
2288 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2289 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2290 esac
2291 case $ac_var in #(
2292 _ | IFS | as_nl) ;; #(
2293 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2294 *) { eval $ac_var=; unset $ac_var;} ;;
2295 esac ;;
2296 esac
2297 done
2298 (set) 2>&1 |
2299 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2300 *${as_nl}ac_space=\ *)
2301 sed -n \
2302 "s/'\''/'\''\\\\'\'''\''/g;
2303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2304 ;; #(
2305 *)
2306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2307 ;;
2308 esac |
2309 sort
2310 )
2311 echo
2312
2313 $as_echo "## ----------------- ##
2314 ## Output variables. ##
2315 ## ----------------- ##"
2316 echo
2317 for ac_var in $ac_subst_vars
2318 do
2319 eval ac_val=\$$ac_var
2320 case $ac_val in
2321 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2322 esac
2323 $as_echo "$ac_var='\''$ac_val'\''"
2324 done | sort
2325 echo
2326
2327 if test -n "$ac_subst_files"; then
2328 $as_echo "## ------------------- ##
2329 ## File substitutions. ##
2330 ## ------------------- ##"
2331 echo
2332 for ac_var in $ac_subst_files
2333 do
2334 eval ac_val=\$$ac_var
2335 case $ac_val in
2336 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2337 esac
2338 $as_echo "$ac_var='\''$ac_val'\''"
2339 done | sort
2340 echo
2341 fi
2342
2343 if test -s confdefs.h; then
2344 $as_echo "## ----------- ##
2345 ## confdefs.h. ##
2346 ## ----------- ##"
2347 echo
2348 cat confdefs.h
2349 echo
2350 fi
2351 test "$ac_signal" != 0 &&
2352 $as_echo "$as_me: caught signal $ac_signal"
2353 $as_echo "$as_me: exit $exit_status"
2354 } >&5
2355 rm -f core *.core core.conftest.* &&
2356 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2357 exit $exit_status
2358 ' 0
2359 for ac_signal in 1 2 13 15; do
2360 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2361 done
2362 ac_signal=0
2363
2364 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2365 rm -f -r conftest* confdefs.h
2366
2367 $as_echo "/* confdefs.h */" > confdefs.h
2368
2369 # Predefined preprocessor variables.
2370
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_NAME "$PACKAGE_NAME"
2373 _ACEOF
2374
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2377 _ACEOF
2378
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2381 _ACEOF
2382
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_STRING "$PACKAGE_STRING"
2385 _ACEOF
2386
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2389 _ACEOF
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_URL "$PACKAGE_URL"
2393 _ACEOF
2394
2395
2396 # Let the site file select an alternate cache file if it wants to.
2397 # Prefer an explicitly selected file to automatically selected ones.
2398 ac_site_file1=NONE
2399 ac_site_file2=NONE
2400 if test -n "$CONFIG_SITE"; then
2401 # We do not want a PATH search for config.site.
2402 case $CONFIG_SITE in #((
2403 -*) ac_site_file1=./$CONFIG_SITE;;
2404 */*) ac_site_file1=$CONFIG_SITE;;
2405 *) ac_site_file1=./$CONFIG_SITE;;
2406 esac
2407 elif test "x$prefix" != xNONE; then
2408 ac_site_file1=$prefix/share/config.site
2409 ac_site_file2=$prefix/etc/config.site
2410 else
2411 ac_site_file1=$ac_default_prefix/share/config.site
2412 ac_site_file2=$ac_default_prefix/etc/config.site
2413 fi
2414 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2415 do
2416 test "x$ac_site_file" = xNONE && continue
2417 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2419 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2420 sed 's/^/| /' "$ac_site_file" >&5
2421 . "$ac_site_file" \
2422 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2424 as_fn_error $? "failed to load site script $ac_site_file
2425 See \`config.log' for more details" "$LINENO" 5; }
2426 fi
2427 done
2428
2429 if test -r "$cache_file"; then
2430 # Some versions of bash will fail to source /dev/null (special files
2431 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2432 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2434 $as_echo "$as_me: loading cache $cache_file" >&6;}
2435 case $cache_file in
2436 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2437 *) . "./$cache_file";;
2438 esac
2439 fi
2440 else
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2442 $as_echo "$as_me: creating cache $cache_file" >&6;}
2443 >$cache_file
2444 fi
2445
2446 # Check that the precious variables saved in the cache have kept the same
2447 # value.
2448 ac_cache_corrupted=false
2449 for ac_var in $ac_precious_vars; do
2450 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2451 eval ac_new_set=\$ac_env_${ac_var}_set
2452 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2453 eval ac_new_val=\$ac_env_${ac_var}_value
2454 case $ac_old_set,$ac_new_set in
2455 set,)
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2457 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2458 ac_cache_corrupted=: ;;
2459 ,set)
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2461 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2462 ac_cache_corrupted=: ;;
2463 ,);;
2464 *)
2465 if test "x$ac_old_val" != "x$ac_new_val"; then
2466 # differences in whitespace do not lead to failure.
2467 ac_old_val_w=`echo x $ac_old_val`
2468 ac_new_val_w=`echo x $ac_new_val`
2469 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2471 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2472 ac_cache_corrupted=:
2473 else
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2475 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2476 eval $ac_var=\$ac_old_val
2477 fi
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2479 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2481 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2482 fi;;
2483 esac
2484 # Pass precious variables to config.status.
2485 if test "$ac_new_set" = set; then
2486 case $ac_new_val in
2487 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2488 *) ac_arg=$ac_var=$ac_new_val ;;
2489 esac
2490 case " $ac_configure_args " in
2491 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2492 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2493 esac
2494 fi
2495 done
2496 if $ac_cache_corrupted; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2500 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2501 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2502 fi
2503 ## -------------------- ##
2504 ## Main body of script. ##
2505 ## -------------------- ##
2506
2507 ac_ext=c
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2512
2513
2514
2515 ac_aux_dir=
2516 for ac_dir in build-aux "$srcdir"/build-aux; do
2517 if test -f "$ac_dir/install-sh"; then
2518 ac_aux_dir=$ac_dir
2519 ac_install_sh="$ac_aux_dir/install-sh -c"
2520 break
2521 elif test -f "$ac_dir/install.sh"; then
2522 ac_aux_dir=$ac_dir
2523 ac_install_sh="$ac_aux_dir/install.sh -c"
2524 break
2525 elif test -f "$ac_dir/shtool"; then
2526 ac_aux_dir=$ac_dir
2527 ac_install_sh="$ac_aux_dir/shtool install -c"
2528 break
2529 fi
2530 done
2531 if test -z "$ac_aux_dir"; then
2532 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2533 fi
2534
2535 # These three variables are undocumented and unsupported,
2536 # and are intended to be withdrawn in a future Autoconf release.
2537 # They can cause serious problems if a builder's source tree is in a directory
2538 # whose full name contains unusual characters.
2539 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2540 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2541 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2542
2543
2544
2545
2546
2547
2548
2549
2550 CONFIGURE_CFLAGS=
2551 SPECIFIED_CFLAGS="${CFLAGS}"
2552
2553
2554
2555
2556
2557
2558
2559
2560 CONFIG=`echo ${ac_configure_args} | sed -e 's#'"'"'\([^ ]*\)'"'"'#\1#g'`
2561
2562
2563 rev=2
2564
2565
2566 srcroot=$srcdir
2567 if test "x${srcroot}" = "x." ; then
2568 srcroot=""
2569 else
2570 srcroot="${srcroot}/"
2571 fi
2572
2573 abs_srcroot="`cd \"${srcdir}\"; pwd`/"
2574
2575
2576 objroot=""
2577
2578 abs_objroot="`pwd`/"
2579
2580
2581 if test "x$prefix" = "xNONE" ; then
2582 prefix="/usr/local"
2583 fi
2584 if test "x$exec_prefix" = "xNONE" ; then
2585 exec_prefix=$prefix
2586 fi
2587 PREFIX=$prefix
2588
2589 BINDIR=`eval echo $bindir`
2590 BINDIR=`eval echo $BINDIR`
2591
2592 INCLUDEDIR=`eval echo $includedir`
2593 INCLUDEDIR=`eval echo $INCLUDEDIR`
2594
2595 LIBDIR=`eval echo $libdir`
2596 LIBDIR=`eval echo $LIBDIR`
2597
2598 DATADIR=`eval echo $datadir`
2599 DATADIR=`eval echo $DATADIR`
2600
2601 MANDIR=`eval echo $mandir`
2602 MANDIR=`eval echo $MANDIR`
2603
2604
2605 # Extract the first word of "xsltproc", so it can be a program name with args.
2606 set dummy xsltproc; ac_word=$2
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608 $as_echo_n "checking for $ac_word... " >&6; }
2609 if ${ac_cv_path_XSLTPROC+:} false; then :
2610 $as_echo_n "(cached) " >&6
2611 else
2612 case $XSLTPROC in
2613 [\\/]* | ?:[\\/]*)
2614 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
2615 ;;
2616 *)
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2619 do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2624 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2627 fi
2628 done
2629 done
2630 IFS=$as_save_IFS
2631
2632 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="false"
2633 ;;
2634 esac
2635 fi
2636 XSLTPROC=$ac_cv_path_XSLTPROC
2637 if test -n "$XSLTPROC"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
2639 $as_echo "$XSLTPROC" >&6; }
2640 else
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642 $as_echo "no" >&6; }
2643 fi
2644
2645
2646 if test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then
2647 DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl"
2648 elif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then
2649 DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets"
2650 else
2651 DEFAULT_XSLROOT=""
2652 fi
2653
2654 # Check whether --with-xslroot was given.
2655 if test "${with_xslroot+set}" = set; then :
2656 withval=$with_xslroot;
2657 if test "x$with_xslroot" = "xno" ; then
2658 XSLROOT="${DEFAULT_XSLROOT}"
2659 else
2660 XSLROOT="${with_xslroot}"
2661 fi
2662
2663 else
2664 XSLROOT="${DEFAULT_XSLROOT}"
2665
2666 fi
2667
2668
2669
2670 CFLAGS=$CFLAGS
2671 ac_ext=c
2672 ac_cpp='$CPP $CPPFLAGS'
2673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676 if test -n "$ac_tool_prefix"; then
2677 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2678 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if ${ac_cv_prog_CC+:} false; then :
2682 $as_echo_n "(cached) " >&6
2683 else
2684 if test -n "$CC"; then
2685 ac_cv_prog_CC="$CC" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2697 fi
2698 done
2699 done
2700 IFS=$as_save_IFS
2701
2702 fi
2703 fi
2704 CC=$ac_cv_prog_CC
2705 if test -n "$CC"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2707 $as_echo "$CC" >&6; }
2708 else
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 $as_echo "no" >&6; }
2711 fi
2712
2713
2714 fi
2715 if test -z "$ac_cv_prog_CC"; then
2716 ac_ct_CC=$CC
2717 # Extract the first word of "gcc", so it can be a program name with args.
2718 set dummy gcc; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2722 $as_echo_n "(cached) " >&6
2723 else
2724 if test -n "$ac_ct_CC"; then
2725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2729 do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734 ac_cv_prog_ac_ct_CC="gcc"
2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 break 2
2737 fi
2738 done
2739 done
2740 IFS=$as_save_IFS
2741
2742 fi
2743 fi
2744 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2745 if test -n "$ac_ct_CC"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2747 $as_echo "$ac_ct_CC" >&6; }
2748 else
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2751 fi
2752
2753 if test "x$ac_ct_CC" = x; then
2754 CC=""
2755 else
2756 case $cross_compiling:$ac_tool_warned in
2757 yes:)
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2760 ac_tool_warned=yes ;;
2761 esac
2762 CC=$ac_ct_CC
2763 fi
2764 else
2765 CC="$ac_cv_prog_CC"
2766 fi
2767
2768 if test -z "$CC"; then
2769 if test -n "$ac_tool_prefix"; then
2770 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2771 set dummy ${ac_tool_prefix}cc; ac_word=$2
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 $as_echo_n "checking for $ac_word... " >&6; }
2774 if ${ac_cv_prog_CC+:} false; then :
2775 $as_echo_n "(cached) " >&6
2776 else
2777 if test -n "$CC"; then
2778 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2782 do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_CC="${ac_tool_prefix}cc"
2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791 done
2792 done
2793 IFS=$as_save_IFS
2794
2795 fi
2796 fi
2797 CC=$ac_cv_prog_CC
2798 if test -n "$CC"; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2800 $as_echo "$CC" >&6; }
2801 else
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2804 fi
2805
2806
2807 fi
2808 fi
2809 if test -z "$CC"; then
2810 # Extract the first word of "cc", so it can be a program name with args.
2811 set dummy cc; ac_word=$2
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if ${ac_cv_prog_CC+:} false; then :
2815 $as_echo_n "(cached) " >&6
2816 else
2817 if test -n "$CC"; then
2818 ac_cv_prog_CC="$CC" # Let the user override the test.
2819 else
2820 ac_prog_rejected=no
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2829 ac_prog_rejected=yes
2830 continue
2831 fi
2832 ac_cv_prog_CC="cc"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2835 fi
2836 done
2837 done
2838 IFS=$as_save_IFS
2839
2840 if test $ac_prog_rejected = yes; then
2841 # We found a bogon in the path, so make sure we never use it.
2842 set dummy $ac_cv_prog_CC
2843 shift
2844 if test $# != 0; then
2845 # We chose a different compiler from the bogus one.
2846 # However, it has the same basename, so the bogon will be chosen
2847 # first if we set CC to just the basename; use the full file name.
2848 shift
2849 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2850 fi
2851 fi
2852 fi
2853 fi
2854 CC=$ac_cv_prog_CC
2855 if test -n "$CC"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2857 $as_echo "$CC" >&6; }
2858 else
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2861 fi
2862
2863
2864 fi
2865 if test -z "$CC"; then
2866 if test -n "$ac_tool_prefix"; then
2867 for ac_prog in cl.exe
2868 do
2869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if ${ac_cv_prog_CC+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 fi
2895 fi
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2900 else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2903 fi
2904
2905
2906 test -n "$CC" && break
2907 done
2908 fi
2909 if test -z "$CC"; then
2910 ac_ct_CC=$CC
2911 for ac_prog in cl.exe
2912 do
2913 # Extract the first word of "$ac_prog", so it can be a program name with args.
2914 set dummy $ac_prog; ac_word=$2
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2918 $as_echo_n "(cached) " >&6
2919 else
2920 if test -n "$ac_ct_CC"; then
2921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2922 else
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2925 do
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_ac_ct_CC="$ac_prog"
2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 break 2
2933 fi
2934 done
2935 done
2936 IFS=$as_save_IFS
2937
2938 fi
2939 fi
2940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2941 if test -n "$ac_ct_CC"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2943 $as_echo "$ac_ct_CC" >&6; }
2944 else
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 $as_echo "no" >&6; }
2947 fi
2948
2949
2950 test -n "$ac_ct_CC" && break
2951 done
2952
2953 if test "x$ac_ct_CC" = x; then
2954 CC=""
2955 else
2956 case $cross_compiling:$ac_tool_warned in
2957 yes:)
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2960 ac_tool_warned=yes ;;
2961 esac
2962 CC=$ac_ct_CC
2963 fi
2964 fi
2965
2966 fi
2967
2968
2969 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2971 as_fn_error $? "no acceptable C compiler found in \$PATH
2972 See \`config.log' for more details" "$LINENO" 5; }
2973
2974 # Provide some information about the compiler.
2975 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2976 set X $ac_compile
2977 ac_compiler=$2
2978 for ac_option in --version -v -V -qversion; do
2979 { { ac_try="$ac_compiler $ac_option >&5"
2980 case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983 esac
2984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2985 $as_echo "$ac_try_echo"; } >&5
2986 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2987 ac_status=$?
2988 if test -s conftest.err; then
2989 sed '10a\
2990 ... rest of stderr output deleted ...
2991 10q' conftest.err >conftest.er1
2992 cat conftest.er1 >&5
2993 fi
2994 rm -f conftest.er1 conftest.err
2995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2996 test $ac_status = 0; }
2997 done
2998
2999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000 /* end confdefs.h. */
3001
3002 int
3003 main ()
3004 {
3005
3006 ;
3007 return 0;
3008 }
3009 _ACEOF
3010 ac_clean_files_save=$ac_clean_files
3011 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3012 # Try to create an executable without -o first, disregard a.out.
3013 # It will help us diagnose broken compilers, and finding out an intuition
3014 # of exeext.
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3016 $as_echo_n "checking whether the C compiler works... " >&6; }
3017 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3018
3019 # The possible output files:
3020 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3021
3022 ac_rmfiles=
3023 for ac_file in $ac_files
3024 do
3025 case $ac_file in
3026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3027 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3028 esac
3029 done
3030 rm -f $ac_rmfiles
3031
3032 if { { ac_try="$ac_link_default"
3033 case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036 esac
3037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3038 $as_echo "$ac_try_echo"; } >&5
3039 (eval "$ac_link_default") 2>&5
3040 ac_status=$?
3041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3042 test $ac_status = 0; }; then :
3043 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3044 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3045 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3046 # so that the user can short-circuit this test for compilers unknown to
3047 # Autoconf.
3048 for ac_file in $ac_files ''
3049 do
3050 test -f "$ac_file" || continue
3051 case $ac_file in
3052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3053 ;;
3054 [ab].out )
3055 # We found the default executable, but exeext='' is most
3056 # certainly right.
3057 break;;
3058 *.* )
3059 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3060 then :; else
3061 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3062 fi
3063 # We set ac_cv_exeext here because the later test for it is not
3064 # safe: cross compilers may not add the suffix if given an `-o'
3065 # argument, so we may need to know it at that point already.
3066 # Even if this section looks crufty: it has the advantage of
3067 # actually working.
3068 break;;
3069 * )
3070 break;;
3071 esac
3072 done
3073 test "$ac_cv_exeext" = no && ac_cv_exeext=
3074
3075 else
3076 ac_file=''
3077 fi
3078 if test -z "$ac_file"; then :
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081 $as_echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3083
3084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086 as_fn_error 77 "C compiler cannot create executables
3087 See \`config.log' for more details" "$LINENO" 5; }
3088 else
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3090 $as_echo "yes" >&6; }
3091 fi
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3093 $as_echo_n "checking for C compiler default output file name... " >&6; }
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3095 $as_echo "$ac_file" >&6; }
3096 ac_exeext=$ac_cv_exeext
3097
3098 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3099 ac_clean_files=$ac_clean_files_save
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3101 $as_echo_n "checking for suffix of executables... " >&6; }
3102 if { { ac_try="$ac_link"
3103 case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106 esac
3107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3108 $as_echo "$ac_try_echo"; } >&5
3109 (eval "$ac_link") 2>&5
3110 ac_status=$?
3111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3112 test $ac_status = 0; }; then :
3113 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3114 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3115 # work properly (i.e., refer to `conftest.exe'), while it won't with
3116 # `rm'.
3117 for ac_file in conftest.exe conftest conftest.*; do
3118 test -f "$ac_file" || continue
3119 case $ac_file in
3120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3121 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122 break;;
3123 * ) break;;
3124 esac
3125 done
3126 else
3127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3130 See \`config.log' for more details" "$LINENO" 5; }
3131 fi
3132 rm -f conftest conftest$ac_cv_exeext
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3134 $as_echo "$ac_cv_exeext" >&6; }
3135
3136 rm -f conftest.$ac_ext
3137 EXEEXT=$ac_cv_exeext
3138 ac_exeext=$EXEEXT
3139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3140 /* end confdefs.h. */
3141 #include <stdio.h>
3142 int
3143 main ()
3144 {
3145 FILE *f = fopen ("conftest.out", "w");
3146 return ferror (f) || fclose (f) != 0;
3147
3148 ;
3149 return 0;
3150 }
3151 _ACEOF
3152 ac_clean_files="$ac_clean_files conftest.out"
3153 # Check that the compiler produces executables we can run. If not, either
3154 # the compiler is broken, or we cross compile.
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3156 $as_echo_n "checking whether we are cross compiling... " >&6; }
3157 if test "$cross_compiling" != yes; then
3158 { { ac_try="$ac_link"
3159 case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3162 esac
3163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164 $as_echo "$ac_try_echo"; } >&5
3165 (eval "$ac_link") 2>&5
3166 ac_status=$?
3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168 test $ac_status = 0; }
3169 if { ac_try='./conftest$ac_cv_exeext'
3170 { { case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175 $as_echo "$ac_try_echo"; } >&5
3176 (eval "$ac_try") 2>&5
3177 ac_status=$?
3178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179 test $ac_status = 0; }; }; then
3180 cross_compiling=no
3181 else
3182 if test "$cross_compiling" = maybe; then
3183 cross_compiling=yes
3184 else
3185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187 as_fn_error $? "cannot run C compiled programs.
3188 If you meant to cross compile, use \`--host'.
3189 See \`config.log' for more details" "$LINENO" 5; }
3190 fi
3191 fi
3192 fi
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3194 $as_echo "$cross_compiling" >&6; }
3195
3196 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3197 ac_clean_files=$ac_clean_files_save
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3199 $as_echo_n "checking for suffix of object files... " >&6; }
3200 if ${ac_cv_objext+:} false; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3205
3206 int
3207 main ()
3208 {
3209
3210 ;
3211 return 0;
3212 }
3213 _ACEOF
3214 rm -f conftest.o conftest.obj
3215 if { { ac_try="$ac_compile"
3216 case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3219 esac
3220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3221 $as_echo "$ac_try_echo"; } >&5
3222 (eval "$ac_compile") 2>&5
3223 ac_status=$?
3224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225 test $ac_status = 0; }; then :
3226 for ac_file in conftest.o conftest.obj conftest.*; do
3227 test -f "$ac_file" || continue;
3228 case $ac_file in
3229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3230 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3231 break;;
3232 esac
3233 done
3234 else
3235 $as_echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3237
3238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3240 as_fn_error $? "cannot compute suffix of object files: cannot compile
3241 See \`config.log' for more details" "$LINENO" 5; }
3242 fi
3243 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3244 fi
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3246 $as_echo "$ac_cv_objext" >&6; }
3247 OBJEXT=$ac_cv_objext
3248 ac_objext=$OBJEXT
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3250 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3251 if ${ac_cv_c_compiler_gnu+:} false; then :
3252 $as_echo_n "(cached) " >&6
3253 else
3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255 /* end confdefs.h. */
3256
3257 int
3258 main ()
3259 {
3260 #ifndef __GNUC__
3261 choke me
3262 #endif
3263
3264 ;
3265 return 0;
3266 }
3267 _ACEOF
3268 if ac_fn_c_try_compile "$LINENO"; then :
3269 ac_compiler_gnu=yes
3270 else
3271 ac_compiler_gnu=no
3272 fi
3273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3275
3276 fi
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3278 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3279 if test $ac_compiler_gnu = yes; then
3280 GCC=yes
3281 else
3282 GCC=
3283 fi
3284 ac_test_CFLAGS=${CFLAGS+set}
3285 ac_save_CFLAGS=$CFLAGS
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3287 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3288 if ${ac_cv_prog_cc_g+:} false; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3291 ac_save_c_werror_flag=$ac_c_werror_flag
3292 ac_c_werror_flag=yes
3293 ac_cv_prog_cc_g=no
3294 CFLAGS="-g"
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3297
3298 int
3299 main ()
3300 {
3301
3302 ;
3303 return 0;
3304 }
3305 _ACEOF
3306 if ac_fn_c_try_compile "$LINENO"; then :
3307 ac_cv_prog_cc_g=yes
3308 else
3309 CFLAGS=""
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3312
3313 int
3314 main ()
3315 {
3316
3317 ;
3318 return 0;
3319 }
3320 _ACEOF
3321 if ac_fn_c_try_compile "$LINENO"; then :
3322
3323 else
3324 ac_c_werror_flag=$ac_save_c_werror_flag
3325 CFLAGS="-g"
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3328
3329 int
3330 main ()
3331 {
3332
3333 ;
3334 return 0;
3335 }
3336 _ACEOF
3337 if ac_fn_c_try_compile "$LINENO"; then :
3338 ac_cv_prog_cc_g=yes
3339 fi
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 fi
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 fi
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 ac_c_werror_flag=$ac_save_c_werror_flag
3346 fi
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3348 $as_echo "$ac_cv_prog_cc_g" >&6; }
3349 if test "$ac_test_CFLAGS" = set; then
3350 CFLAGS=$ac_save_CFLAGS
3351 elif test $ac_cv_prog_cc_g = yes; then
3352 if test "$GCC" = yes; then
3353 CFLAGS="-g -O2"
3354 else
3355 CFLAGS="-g"
3356 fi
3357 else
3358 if test "$GCC" = yes; then
3359 CFLAGS="-O2"
3360 else
3361 CFLAGS=
3362 fi
3363 fi
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3365 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3366 if ${ac_cv_prog_cc_c89+:} false; then :
3367 $as_echo_n "(cached) " >&6
3368 else
3369 ac_cv_prog_cc_c89=no
3370 ac_save_CC=$CC
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3373 #include <stdarg.h>
3374 #include <stdio.h>
3375 struct stat;
3376 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3377 struct buf { int x; };
3378 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3379 static char *e (p, i)
3380 char **p;
3381 int i;
3382 {
3383 return p[i];
3384 }
3385 static char *f (char * (*g) (char **, int), char **p, ...)
3386 {
3387 char *s;
3388 va_list v;
3389 va_start (v,p);
3390 s = g (p, va_arg (v,int));
3391 va_end (v);
3392 return s;
3393 }
3394
3395 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3396 function prototypes and stuff, but not '\xHH' hex character constants.
3397 These don't provoke an error unfortunately, instead are silently treated
3398 as 'x'. The following induces an error, until -std is added to get
3399 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3400 array size at least. It's necessary to write '\x00'==0 to get something
3401 that's true only with -std. */
3402 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3403
3404 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3405 inside strings and character constants. */
3406 #define FOO(x) 'x'
3407 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3408
3409 int test (int i, double x);
3410 struct s1 {int (*f) (int a);};
3411 struct s2 {int (*f) (double a);};
3412 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3413 int argc;
3414 char **argv;
3415 int
3416 main ()
3417 {
3418 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3419 ;
3420 return 0;
3421 }
3422 _ACEOF
3423 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3424 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3425 do
3426 CC="$ac_save_CC $ac_arg"
3427 if ac_fn_c_try_compile "$LINENO"; then :
3428 ac_cv_prog_cc_c89=$ac_arg
3429 fi
3430 rm -f core conftest.err conftest.$ac_objext
3431 test "x$ac_cv_prog_cc_c89" != "xno" && break
3432 done
3433 rm -f conftest.$ac_ext
3434 CC=$ac_save_CC
3435
3436 fi
3437 # AC_CACHE_VAL
3438 case "x$ac_cv_prog_cc_c89" in
3439 x)
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3441 $as_echo "none needed" >&6; } ;;
3442 xno)
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3444 $as_echo "unsupported" >&6; } ;;
3445 *)
3446 CC="$CC $ac_cv_prog_cc_c89"
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3448 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3449 esac
3450 if test "x$ac_cv_prog_cc_c89" != xno; then :
3451
3452 fi
3453
3454 ac_ext=c
3455 ac_cpp='$CPP $CPPFLAGS'
3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
3460
3461 if test "x$GCC" != "xyes" ; then
3462
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5
3464 $as_echo_n "checking whether compiler is MSVC... " >&6; }
3465 if ${je_cv_msvc+:} false; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3470
3471 int
3472 main ()
3473 {
3474
3475 #ifndef _MSC_VER
3476 int fail-1;
3477 #endif
3478
3479 ;
3480 return 0;
3481 }
3482 _ACEOF
3483 if ac_fn_c_try_compile "$LINENO"; then :
3484 je_cv_msvc=yes
3485 else
3486 je_cv_msvc=no
3487 fi
3488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489 fi
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5
3491 $as_echo "$je_cv_msvc" >&6; }
3492 fi
3493
3494 je_cv_cray_prgenv_wrapper=""
3495 if test "x${PE_ENV}" != "x" ; then
3496 case "${CC}" in
3497 CC|cc)
3498 je_cv_cray_prgenv_wrapper="yes"
3499 ;;
3500 *)
3501 ;;
3502 esac
3503 fi
3504
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is cray" >&5
3506 $as_echo_n "checking whether compiler is cray... " >&6; }
3507 if ${je_cv_cray+:} false; then :
3508 $as_echo_n "(cached) " >&6
3509 else
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3512
3513 int
3514 main ()
3515 {
3516
3517 #ifndef _CRAYC
3518 int fail-1;
3519 #endif
3520
3521 ;
3522 return 0;
3523 }
3524 _ACEOF
3525 if ac_fn_c_try_compile "$LINENO"; then :
3526 je_cv_cray=yes
3527 else
3528 je_cv_cray=no
3529 fi
3530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3531 fi
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray" >&5
3533 $as_echo "$je_cv_cray" >&6; }
3534
3535 if test "x${je_cv_cray}" = "xyes" ; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cray compiler version is 8.4" >&5
3537 $as_echo_n "checking whether cray compiler version is 8.4... " >&6; }
3538 if ${je_cv_cray_84+:} false; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3543
3544 int
3545 main ()
3546 {
3547
3548 #if !(_RELEASE_MAJOR == 8 && _RELEASE_MINOR == 4)
3549 int fail-1;
3550 #endif
3551
3552 ;
3553 return 0;
3554 }
3555 _ACEOF
3556 if ac_fn_c_try_compile "$LINENO"; then :
3557 je_cv_cray_84=yes
3558 else
3559 je_cv_cray_84=no
3560 fi
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 fi
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray_84" >&5
3564 $as_echo "$je_cv_cray_84" >&6; }
3565 fi
3566
3567 if test "x$GCC" = "xyes" ; then
3568
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu11" >&5
3570 $as_echo_n "checking whether compiler supports -std=gnu11... " >&6; }
3571 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3572 T_APPEND_V=-std=gnu11
3573 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3574 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3575 else
3576 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3577 fi
3578
3579
3580 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3581 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3582 else
3583 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3584 fi
3585
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3588
3589
3590 int
3591 main ()
3592 {
3593
3594 return 0;
3595
3596 ;
3597 return 0;
3598 }
3599 _ACEOF
3600 if ac_fn_c_try_compile "$LINENO"; then :
3601 je_cv_cflags_added=-std=gnu11
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3603 $as_echo "yes" >&6; }
3604 else
3605 je_cv_cflags_added=
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 $as_echo "no" >&6; }
3608 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3609
3610 fi
3611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3613 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3614 else
3615 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3616 fi
3617
3618
3619 if test "x$je_cv_cflags_added" = "x-std=gnu11" ; then
3620 cat >>confdefs.h <<_ACEOF
3621 #define JEMALLOC_HAS_RESTRICT 1
3622 _ACEOF
3623
3624 else
3625
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5
3627 $as_echo_n "checking whether compiler supports -std=gnu99... " >&6; }
3628 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3629 T_APPEND_V=-std=gnu99
3630 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3631 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3632 else
3633 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3634 fi
3635
3636
3637 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3638 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3639 else
3640 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3641 fi
3642
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3645
3646
3647 int
3648 main ()
3649 {
3650
3651 return 0;
3652
3653 ;
3654 return 0;
3655 }
3656 _ACEOF
3657 if ac_fn_c_try_compile "$LINENO"; then :
3658 je_cv_cflags_added=-std=gnu99
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3660 $as_echo "yes" >&6; }
3661 else
3662 je_cv_cflags_added=
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3665 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3666
3667 fi
3668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3670 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3671 else
3672 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3673 fi
3674
3675
3676 if test "x$je_cv_cflags_added" = "x-std=gnu99" ; then
3677 cat >>confdefs.h <<_ACEOF
3678 #define JEMALLOC_HAS_RESTRICT 1
3679 _ACEOF
3680
3681 fi
3682 fi
3683
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
3685 $as_echo_n "checking whether compiler supports -Wall... " >&6; }
3686 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3687 T_APPEND_V=-Wall
3688 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3689 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3690 else
3691 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3692 fi
3693
3694
3695 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3696 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3697 else
3698 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3699 fi
3700
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3703
3704
3705 int
3706 main ()
3707 {
3708
3709 return 0;
3710
3711 ;
3712 return 0;
3713 }
3714 _ACEOF
3715 if ac_fn_c_try_compile "$LINENO"; then :
3716 je_cv_cflags_added=-Wall
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3718 $as_echo "yes" >&6; }
3719 else
3720 je_cv_cflags_added=
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3722 $as_echo "no" >&6; }
3723 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3724
3725 fi
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3728 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3729 else
3730 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3731 fi
3732
3733
3734
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror=declaration-after-statement" >&5
3736 $as_echo_n "checking whether compiler supports -Werror=declaration-after-statement... " >&6; }
3737 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3738 T_APPEND_V=-Werror=declaration-after-statement
3739 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3740 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3741 else
3742 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3743 fi
3744
3745
3746 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3747 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3748 else
3749 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3750 fi
3751
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3754
3755
3756 int
3757 main ()
3758 {
3759
3760 return 0;
3761
3762 ;
3763 return 0;
3764 }
3765 _ACEOF
3766 if ac_fn_c_try_compile "$LINENO"; then :
3767 je_cv_cflags_added=-Werror=declaration-after-statement
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3769 $as_echo "yes" >&6; }
3770 else
3771 je_cv_cflags_added=
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3774 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3775
3776 fi
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3779 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3780 else
3781 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3782 fi
3783
3784
3785
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wshorten-64-to-32" >&5
3787 $as_echo_n "checking whether compiler supports -Wshorten-64-to-32... " >&6; }
3788 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3789 T_APPEND_V=-Wshorten-64-to-32
3790 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3791 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3792 else
3793 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3794 fi
3795
3796
3797 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3798 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3799 else
3800 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3801 fi
3802
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3805
3806
3807 int
3808 main ()
3809 {
3810
3811 return 0;
3812
3813 ;
3814 return 0;
3815 }
3816 _ACEOF
3817 if ac_fn_c_try_compile "$LINENO"; then :
3818 je_cv_cflags_added=-Wshorten-64-to-32
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3820 $as_echo "yes" >&6; }
3821 else
3822 je_cv_cflags_added=
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824 $as_echo "no" >&6; }
3825 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3826
3827 fi
3828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3830 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3831 else
3832 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3833 fi
3834
3835
3836
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-compare" >&5
3838 $as_echo_n "checking whether compiler supports -Wsign-compare... " >&6; }
3839 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3840 T_APPEND_V=-Wsign-compare
3841 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3842 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3843 else
3844 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3845 fi
3846
3847
3848 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3849 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3850 else
3851 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3852 fi
3853
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856
3857
3858 int
3859 main ()
3860 {
3861
3862 return 0;
3863
3864 ;
3865 return 0;
3866 }
3867 _ACEOF
3868 if ac_fn_c_try_compile "$LINENO"; then :
3869 je_cv_cflags_added=-Wsign-compare
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3871 $as_echo "yes" >&6; }
3872 else
3873 je_cv_cflags_added=
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3876 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3877
3878 fi
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3881 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3882 else
3883 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3884 fi
3885
3886
3887
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5
3889 $as_echo_n "checking whether compiler supports -pipe... " >&6; }
3890 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3891 T_APPEND_V=-pipe
3892 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3893 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3894 else
3895 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3896 fi
3897
3898
3899 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3900 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3901 else
3902 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3903 fi
3904
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3907
3908
3909 int
3910 main ()
3911 {
3912
3913 return 0;
3914
3915 ;
3916 return 0;
3917 }
3918 _ACEOF
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920 je_cv_cflags_added=-pipe
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3922 $as_echo "yes" >&6; }
3923 else
3924 je_cv_cflags_added=
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3927 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3928
3929 fi
3930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3932 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3933 else
3934 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3935 fi
3936
3937
3938
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
3940 $as_echo_n "checking whether compiler supports -g3... " >&6; }
3941 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3942 T_APPEND_V=-g3
3943 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3944 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3945 else
3946 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3947 fi
3948
3949
3950 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3951 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3952 else
3953 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3954 fi
3955
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3958
3959
3960 int
3961 main ()
3962 {
3963
3964 return 0;
3965
3966 ;
3967 return 0;
3968 }
3969 _ACEOF
3970 if ac_fn_c_try_compile "$LINENO"; then :
3971 je_cv_cflags_added=-g3
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3973 $as_echo "yes" >&6; }
3974 else
3975 je_cv_cflags_added=
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3978 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3979
3980 fi
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3983 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3984 else
3985 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3986 fi
3987
3988
3989 elif test "x$je_cv_msvc" = "xyes" ; then
3990 CC="$CC -nologo"
3991
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5
3993 $as_echo_n "checking whether compiler supports -Zi... " >&6; }
3994 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3995 T_APPEND_V=-Zi
3996 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3997 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3998 else
3999 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4000 fi
4001
4002
4003 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4004 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4005 else
4006 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4007 fi
4008
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4011
4012
4013 int
4014 main ()
4015 {
4016
4017 return 0;
4018
4019 ;
4020 return 0;
4021 }
4022 _ACEOF
4023 if ac_fn_c_try_compile "$LINENO"; then :
4024 je_cv_cflags_added=-Zi
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4026 $as_echo "yes" >&6; }
4027 else
4028 je_cv_cflags_added=
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4031 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4032
4033 fi
4034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4036 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4037 else
4038 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4039 fi
4040
4041
4042
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5
4044 $as_echo_n "checking whether compiler supports -MT... " >&6; }
4045 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4046 T_APPEND_V=-MT
4047 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4048 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4049 else
4050 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4051 fi
4052
4053
4054 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4055 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4056 else
4057 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4058 fi
4059
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4062
4063
4064 int
4065 main ()
4066 {
4067
4068 return 0;
4069
4070 ;
4071 return 0;
4072 }
4073 _ACEOF
4074 if ac_fn_c_try_compile "$LINENO"; then :
4075 je_cv_cflags_added=-MT
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4077 $as_echo "yes" >&6; }
4078 else
4079 je_cv_cflags_added=
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081 $as_echo "no" >&6; }
4082 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4083
4084 fi
4085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4087 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4088 else
4089 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4090 fi
4091
4092
4093
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5
4095 $as_echo_n "checking whether compiler supports -W3... " >&6; }
4096 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4097 T_APPEND_V=-W3
4098 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4099 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4100 else
4101 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4102 fi
4103
4104
4105 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4106 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4107 else
4108 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4109 fi
4110
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113
4114
4115 int
4116 main ()
4117 {
4118
4119 return 0;
4120
4121 ;
4122 return 0;
4123 }
4124 _ACEOF
4125 if ac_fn_c_try_compile "$LINENO"; then :
4126 je_cv_cflags_added=-W3
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4128 $as_echo "yes" >&6; }
4129 else
4130 je_cv_cflags_added=
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4133 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4134
4135 fi
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4138 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4139 else
4140 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4141 fi
4142
4143
4144
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -FS" >&5
4146 $as_echo_n "checking whether compiler supports -FS... " >&6; }
4147 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4148 T_APPEND_V=-FS
4149 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4150 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4151 else
4152 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4153 fi
4154
4155
4156 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4157 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4158 else
4159 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4160 fi
4161
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4164
4165
4166 int
4167 main ()
4168 {
4169
4170 return 0;
4171
4172 ;
4173 return 0;
4174 }
4175 _ACEOF
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 je_cv_cflags_added=-FS
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4179 $as_echo "yes" >&6; }
4180 else
4181 je_cv_cflags_added=
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183 $as_echo "no" >&6; }
4184 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4185
4186 fi
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4189 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4190 else
4191 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4192 fi
4193
4194
4195 T_APPEND_V=-I${srcdir}/include/msvc_compat
4196 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4197 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
4198 else
4199 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
4200 fi
4201
4202
4203 fi
4204 if test "x$je_cv_cray" = "xyes" ; then
4205 if test "x$je_cv_cray_84" = "xyes" ; then
4206
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hipa2" >&5
4208 $as_echo_n "checking whether compiler supports -hipa2... " >&6; }
4209 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4210 T_APPEND_V=-hipa2
4211 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4212 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4213 else
4214 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4215 fi
4216
4217
4218 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4219 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4220 else
4221 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4222 fi
4223
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h. */
4226
4227
4228 int
4229 main ()
4230 {
4231
4232 return 0;
4233
4234 ;
4235 return 0;
4236 }
4237 _ACEOF
4238 if ac_fn_c_try_compile "$LINENO"; then :
4239 je_cv_cflags_added=-hipa2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4241 $as_echo "yes" >&6; }
4242 else
4243 je_cv_cflags_added=
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245 $as_echo "no" >&6; }
4246 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4247
4248 fi
4249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4250 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4251 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4252 else
4253 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4254 fi
4255
4256
4257
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnognu" >&5
4259 $as_echo_n "checking whether compiler supports -hnognu... " >&6; }
4260 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4261 T_APPEND_V=-hnognu
4262 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4263 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4264 else
4265 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4266 fi
4267
4268
4269 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4270 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4271 else
4272 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4273 fi
4274
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4277
4278
4279 int
4280 main ()
4281 {
4282
4283 return 0;
4284
4285 ;
4286 return 0;
4287 }
4288 _ACEOF
4289 if ac_fn_c_try_compile "$LINENO"; then :
4290 je_cv_cflags_added=-hnognu
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4292 $as_echo "yes" >&6; }
4293 else
4294 je_cv_cflags_added=
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4297 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4298
4299 fi
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4302 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4303 else
4304 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4305 fi
4306
4307
4308 fi
4309 if test "x$enable_cc_silence" != "xno" ; then
4310
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=128" >&5
4312 $as_echo_n "checking whether compiler supports -hnomessage=128... " >&6; }
4313 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4314 T_APPEND_V=-hnomessage=128
4315 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4316 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4317 else
4318 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4319 fi
4320
4321
4322 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4323 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4324 else
4325 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4326 fi
4327
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4330
4331
4332 int
4333 main ()
4334 {
4335
4336 return 0;
4337
4338 ;
4339 return 0;
4340 }
4341 _ACEOF
4342 if ac_fn_c_try_compile "$LINENO"; then :
4343 je_cv_cflags_added=-hnomessage=128
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4345 $as_echo "yes" >&6; }
4346 else
4347 je_cv_cflags_added=
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349 $as_echo "no" >&6; }
4350 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4351
4352 fi
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4355 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4356 else
4357 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4358 fi
4359
4360
4361
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=1357" >&5
4363 $as_echo_n "checking whether compiler supports -hnomessage=1357... " >&6; }
4364 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4365 T_APPEND_V=-hnomessage=1357
4366 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4367 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4368 else
4369 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4370 fi
4371
4372
4373 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4374 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4375 else
4376 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4377 fi
4378
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4381
4382
4383 int
4384 main ()
4385 {
4386
4387 return 0;
4388
4389 ;
4390 return 0;
4391 }
4392 _ACEOF
4393 if ac_fn_c_try_compile "$LINENO"; then :
4394 je_cv_cflags_added=-hnomessage=1357
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4396 $as_echo "yes" >&6; }
4397 else
4398 je_cv_cflags_added=
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 $as_echo "no" >&6; }
4401 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4402
4403 fi
4404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4406 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4407 else
4408 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4409 fi
4410
4411
4412 fi
4413 fi
4414
4415
4416
4417 ac_ext=c
4418 ac_cpp='$CPP $CPPFLAGS'
4419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4423 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4424 # On Suns, sometimes $CPP names a directory.
4425 if test -n "$CPP" && test -d "$CPP"; then
4426 CPP=
4427 fi
4428 if test -z "$CPP"; then
4429 if ${ac_cv_prog_CPP+:} false; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 # Double quotes because CPP needs to be expanded
4433 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4434 do
4435 ac_preproc_ok=false
4436 for ac_c_preproc_warn_flag in '' yes
4437 do
4438 # Use a header file that comes with gcc, so configuring glibc
4439 # with a fresh cross-compiler works.
4440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4441 # <limits.h> exists even on freestanding compilers.
4442 # On the NeXT, cc -E runs the code through the compiler's parser,
4443 # not just through cpp. "Syntax error" is here to catch this case.
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446 #ifdef __STDC__
4447 # include <limits.h>
4448 #else
4449 # include <assert.h>
4450 #endif
4451 Syntax error
4452 _ACEOF
4453 if ac_fn_c_try_cpp "$LINENO"; then :
4454
4455 else
4456 # Broken: fails on valid input.
4457 continue
4458 fi
4459 rm -f conftest.err conftest.i conftest.$ac_ext
4460
4461 # OK, works on sane cases. Now check whether nonexistent headers
4462 # can be detected and how.
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4465 #include <ac_nonexistent.h>
4466 _ACEOF
4467 if ac_fn_c_try_cpp "$LINENO"; then :
4468 # Broken: success on invalid input.
4469 continue
4470 else
4471 # Passes both tests.
4472 ac_preproc_ok=:
4473 break
4474 fi
4475 rm -f conftest.err conftest.i conftest.$ac_ext
4476
4477 done
4478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4479 rm -f conftest.i conftest.err conftest.$ac_ext
4480 if $ac_preproc_ok; then :
4481 break
4482 fi
4483
4484 done
4485 ac_cv_prog_CPP=$CPP
4486
4487 fi
4488 CPP=$ac_cv_prog_CPP
4489 else
4490 ac_cv_prog_CPP=$CPP
4491 fi
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4493 $as_echo "$CPP" >&6; }
4494 ac_preproc_ok=false
4495 for ac_c_preproc_warn_flag in '' yes
4496 do
4497 # Use a header file that comes with gcc, so configuring glibc
4498 # with a fresh cross-compiler works.
4499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4500 # <limits.h> exists even on freestanding compilers.
4501 # On the NeXT, cc -E runs the code through the compiler's parser,
4502 # not just through cpp. "Syntax error" is here to catch this case.
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4505 #ifdef __STDC__
4506 # include <limits.h>
4507 #else
4508 # include <assert.h>
4509 #endif
4510 Syntax error
4511 _ACEOF
4512 if ac_fn_c_try_cpp "$LINENO"; then :
4513
4514 else
4515 # Broken: fails on valid input.
4516 continue
4517 fi
4518 rm -f conftest.err conftest.i conftest.$ac_ext
4519
4520 # OK, works on sane cases. Now check whether nonexistent headers
4521 # can be detected and how.
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 #include <ac_nonexistent.h>
4525 _ACEOF
4526 if ac_fn_c_try_cpp "$LINENO"; then :
4527 # Broken: success on invalid input.
4528 continue
4529 else
4530 # Passes both tests.
4531 ac_preproc_ok=:
4532 break
4533 fi
4534 rm -f conftest.err conftest.i conftest.$ac_ext
4535
4536 done
4537 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4538 rm -f conftest.i conftest.err conftest.$ac_ext
4539 if $ac_preproc_ok; then :
4540
4541 else
4542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4544 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4545 See \`config.log' for more details" "$LINENO" 5; }
4546 fi
4547
4548 ac_ext=c
4549 ac_cpp='$CPP $CPPFLAGS'
4550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4553
4554
4555
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4557 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4558 if ${ac_cv_path_GREP+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 if test -z "$GREP"; then
4562 ac_path_GREP_found=false
4563 # Loop through the user's path and test for each of PROGNAME-LIST
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4566 do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_prog in grep ggrep; do
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4572 as_fn_executable_p "$ac_path_GREP" || continue
4573 # Check for GNU ac_path_GREP and select it if it is found.
4574 # Check for GNU $ac_path_GREP
4575 case `"$ac_path_GREP" --version 2>&1` in
4576 *GNU*)
4577 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4578 *)
4579 ac_count=0
4580 $as_echo_n 0123456789 >"conftest.in"
4581 while :
4582 do
4583 cat "conftest.in" "conftest.in" >"conftest.tmp"
4584 mv "conftest.tmp" "conftest.in"
4585 cp "conftest.in" "conftest.nl"
4586 $as_echo 'GREP' >> "conftest.nl"
4587 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4588 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4589 as_fn_arith $ac_count + 1 && ac_count=$as_val
4590 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4591 # Best one so far, save it but keep looking for a better one
4592 ac_cv_path_GREP="$ac_path_GREP"
4593 ac_path_GREP_max=$ac_count
4594 fi
4595 # 10*(2^10) chars as input seems more than enough
4596 test $ac_count -gt 10 && break
4597 done
4598 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4599 esac
4600
4601 $ac_path_GREP_found && break 3
4602 done
4603 done
4604 done
4605 IFS=$as_save_IFS
4606 if test -z "$ac_cv_path_GREP"; then
4607 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4608 fi
4609 else
4610 ac_cv_path_GREP=$GREP
4611 fi
4612
4613 fi
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4615 $as_echo "$ac_cv_path_GREP" >&6; }
4616 GREP="$ac_cv_path_GREP"
4617
4618
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4620 $as_echo_n "checking for egrep... " >&6; }
4621 if ${ac_cv_path_EGREP+:} false; then :
4622 $as_echo_n "(cached) " >&6
4623 else
4624 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4625 then ac_cv_path_EGREP="$GREP -E"
4626 else
4627 if test -z "$EGREP"; then
4628 ac_path_EGREP_found=false
4629 # Loop through the user's path and test for each of PROGNAME-LIST
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4632 do
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_prog in egrep; do
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4638 as_fn_executable_p "$ac_path_EGREP" || continue
4639 # Check for GNU ac_path_EGREP and select it if it is found.
4640 # Check for GNU $ac_path_EGREP
4641 case `"$ac_path_EGREP" --version 2>&1` in
4642 *GNU*)
4643 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4644 *)
4645 ac_count=0
4646 $as_echo_n 0123456789 >"conftest.in"
4647 while :
4648 do
4649 cat "conftest.in" "conftest.in" >"conftest.tmp"
4650 mv "conftest.tmp" "conftest.in"
4651 cp "conftest.in" "conftest.nl"
4652 $as_echo 'EGREP' >> "conftest.nl"
4653 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4655 as_fn_arith $ac_count + 1 && ac_count=$as_val
4656 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4657 # Best one so far, save it but keep looking for a better one
4658 ac_cv_path_EGREP="$ac_path_EGREP"
4659 ac_path_EGREP_max=$ac_count
4660 fi
4661 # 10*(2^10) chars as input seems more than enough
4662 test $ac_count -gt 10 && break
4663 done
4664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4665 esac
4666
4667 $ac_path_EGREP_found && break 3
4668 done
4669 done
4670 done
4671 IFS=$as_save_IFS
4672 if test -z "$ac_cv_path_EGREP"; then
4673 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4674 fi
4675 else
4676 ac_cv_path_EGREP=$EGREP
4677 fi
4678
4679 fi
4680 fi
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4682 $as_echo "$ac_cv_path_EGREP" >&6; }
4683 EGREP="$ac_cv_path_EGREP"
4684
4685
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4687 $as_echo_n "checking for ANSI C header files... " >&6; }
4688 if ${ac_cv_header_stdc+:} false; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4693 #include <stdlib.h>
4694 #include <stdarg.h>
4695 #include <string.h>
4696 #include <float.h>
4697
4698 int
4699 main ()
4700 {
4701
4702 ;
4703 return 0;
4704 }
4705 _ACEOF
4706 if ac_fn_c_try_compile "$LINENO"; then :
4707 ac_cv_header_stdc=yes
4708 else
4709 ac_cv_header_stdc=no
4710 fi
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712
4713 if test $ac_cv_header_stdc = yes; then
4714 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4717 #include <string.h>
4718
4719 _ACEOF
4720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4721 $EGREP "memchr" >/dev/null 2>&1; then :
4722
4723 else
4724 ac_cv_header_stdc=no
4725 fi
4726 rm -f conftest*
4727
4728 fi
4729
4730 if test $ac_cv_header_stdc = yes; then
4731 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4734 #include <stdlib.h>
4735
4736 _ACEOF
4737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4738 $EGREP "free" >/dev/null 2>&1; then :
4739
4740 else
4741 ac_cv_header_stdc=no
4742 fi
4743 rm -f conftest*
4744
4745 fi
4746
4747 if test $ac_cv_header_stdc = yes; then
4748 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4749 if test "$cross_compiling" = yes; then :
4750 :
4751 else
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4754 #include <ctype.h>
4755 #include <stdlib.h>
4756 #if ((' ' & 0x0FF) == 0x020)
4757 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4758 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4759 #else
4760 # define ISLOWER(c) \
4761 (('a' <= (c) && (c) <= 'i') \
4762 || ('j' <= (c) && (c) <= 'r') \
4763 || ('s' <= (c) && (c) <= 'z'))
4764 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4765 #endif
4766
4767 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4768 int
4769 main ()
4770 {
4771 int i;
4772 for (i = 0; i < 256; i++)
4773 if (XOR (islower (i), ISLOWER (i))
4774 || toupper (i) != TOUPPER (i))
4775 return 2;
4776 return 0;
4777 }
4778 _ACEOF
4779 if ac_fn_c_try_run "$LINENO"; then :
4780
4781 else
4782 ac_cv_header_stdc=no
4783 fi
4784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4785 conftest.$ac_objext conftest.beam conftest.$ac_ext
4786 fi
4787
4788 fi
4789 fi
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4791 $as_echo "$ac_cv_header_stdc" >&6; }
4792 if test $ac_cv_header_stdc = yes; then
4793
4794 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4795
4796 fi
4797
4798 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4799 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4800 inttypes.h stdint.h unistd.h
4801 do :
4802 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4803 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4804 "
4805 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4806 cat >>confdefs.h <<_ACEOF
4807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4808 _ACEOF
4809
4810 fi
4811
4812 done
4813
4814
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4816 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4817 if ${ac_cv_c_bigendian+:} false; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 ac_cv_c_bigendian=unknown
4821 # See if we're dealing with a universal compiler.
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4824 #ifndef __APPLE_CC__
4825 not a universal capable compiler
4826 #endif
4827 typedef int dummy;
4828
4829 _ACEOF
4830 if ac_fn_c_try_compile "$LINENO"; then :
4831
4832 # Check for potential -arch flags. It is not universal unless
4833 # there are at least two -arch flags with different values.
4834 ac_arch=
4835 ac_prev=
4836 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4837 if test -n "$ac_prev"; then
4838 case $ac_word in
4839 i?86 | x86_64 | ppc | ppc64)
4840 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4841 ac_arch=$ac_word
4842 else
4843 ac_cv_c_bigendian=universal
4844 break
4845 fi
4846 ;;
4847 esac
4848 ac_prev=
4849 elif test "x$ac_word" = "x-arch"; then
4850 ac_prev=arch
4851 fi
4852 done
4853 fi
4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855 if test $ac_cv_c_bigendian = unknown; then
4856 # See if sys/param.h defines the BYTE_ORDER macro.
4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4859 #include <sys/types.h>
4860 #include <sys/param.h>
4861
4862 int
4863 main ()
4864 {
4865 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4866 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4867 && LITTLE_ENDIAN)
4868 bogus endian macros
4869 #endif
4870
4871 ;
4872 return 0;
4873 }
4874 _ACEOF
4875 if ac_fn_c_try_compile "$LINENO"; then :
4876 # It does; now see whether it defined to BIG_ENDIAN or not.
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4879 #include <sys/types.h>
4880 #include <sys/param.h>
4881
4882 int
4883 main ()
4884 {
4885 #if BYTE_ORDER != BIG_ENDIAN
4886 not big endian
4887 #endif
4888
4889 ;
4890 return 0;
4891 }
4892 _ACEOF
4893 if ac_fn_c_try_compile "$LINENO"; then :
4894 ac_cv_c_bigendian=yes
4895 else
4896 ac_cv_c_bigendian=no
4897 fi
4898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899 fi
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901 fi
4902 if test $ac_cv_c_bigendian = unknown; then
4903 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905 /* end confdefs.h. */
4906 #include <limits.h>
4907
4908 int
4909 main ()
4910 {
4911 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4912 bogus endian macros
4913 #endif
4914
4915 ;
4916 return 0;
4917 }
4918 _ACEOF
4919 if ac_fn_c_try_compile "$LINENO"; then :
4920 # It does; now see whether it defined to _BIG_ENDIAN or not.
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4923 #include <limits.h>
4924
4925 int
4926 main ()
4927 {
4928 #ifndef _BIG_ENDIAN
4929 not big endian
4930 #endif
4931
4932 ;
4933 return 0;
4934 }
4935 _ACEOF
4936 if ac_fn_c_try_compile "$LINENO"; then :
4937 ac_cv_c_bigendian=yes
4938 else
4939 ac_cv_c_bigendian=no
4940 fi
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942 fi
4943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944 fi
4945 if test $ac_cv_c_bigendian = unknown; then
4946 # Compile a test program.
4947 if test "$cross_compiling" = yes; then :
4948 # Try to guess by grepping values from an object file.
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951 short int ascii_mm[] =
4952 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4953 short int ascii_ii[] =
4954 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4955 int use_ascii (int i) {
4956 return ascii_mm[i] + ascii_ii[i];
4957 }
4958 short int ebcdic_ii[] =
4959 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4960 short int ebcdic_mm[] =
4961 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4962 int use_ebcdic (int i) {
4963 return ebcdic_mm[i] + ebcdic_ii[i];
4964 }
4965 extern int foo;
4966
4967 int
4968 main ()
4969 {
4970 return use_ascii (foo) == use_ebcdic (foo);
4971 ;
4972 return 0;
4973 }
4974 _ACEOF
4975 if ac_fn_c_try_compile "$LINENO"; then :
4976 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4977 ac_cv_c_bigendian=yes
4978 fi
4979 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4980 if test "$ac_cv_c_bigendian" = unknown; then
4981 ac_cv_c_bigendian=no
4982 else
4983 # finding both strings is unlikely to happen, but who knows?
4984 ac_cv_c_bigendian=unknown
4985 fi
4986 fi
4987 fi
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 else
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4992 $ac_includes_default
4993 int
4994 main ()
4995 {
4996
4997 /* Are we little or big endian? From Harbison&Steele. */
4998 union
4999 {
5000 long int l;
5001 char c[sizeof (long int)];
5002 } u;
5003 u.l = 1;
5004 return u.c[sizeof (long int) - 1] == 1;
5005
5006 ;
5007 return 0;
5008 }
5009 _ACEOF
5010 if ac_fn_c_try_run "$LINENO"; then :
5011 ac_cv_c_bigendian=no
5012 else
5013 ac_cv_c_bigendian=yes
5014 fi
5015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5016 conftest.$ac_objext conftest.beam conftest.$ac_ext
5017 fi
5018
5019 fi
5020 fi
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5022 $as_echo "$ac_cv_c_bigendian" >&6; }
5023 case $ac_cv_c_bigendian in #(
5024 yes)
5025 ac_cv_big_endian=1;; #(
5026 no)
5027 ac_cv_big_endian=0 ;; #(
5028 universal)
5029
5030 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5031
5032 ;; #(
5033 *)
5034 as_fn_error $? "unknown endianness
5035 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5036 esac
5037
5038 if test "x${ac_cv_big_endian}" = "x1" ; then
5039 cat >>confdefs.h <<_ACEOF
5040 #define JEMALLOC_BIG_ENDIAN
5041 _ACEOF
5042
5043 fi
5044
5045 if test "x${je_cv_msvc}" = "xyes" -a "x${ac_cv_header_inttypes_h}" = "xno"; then
5046 T_APPEND_V=-I${srcdir}/include/msvc_compat/C99
5047 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5048 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
5049 else
5050 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
5051 fi
5052
5053
5054 fi
5055
5056 if test "x${je_cv_msvc}" = "xyes" ; then
5057 LG_SIZEOF_PTR=LG_SIZEOF_PTR_WIN
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&5
5059 $as_echo "Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&6; }
5060 else
5061 # The cast to long int works around a bug in the HP C Compiler
5062 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5063 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5064 # This bug is HP SR number 8606223364.
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5066 $as_echo_n "checking size of void *... " >&6; }
5067 if ${ac_cv_sizeof_void_p+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5071
5072 else
5073 if test "$ac_cv_type_void_p" = yes; then
5074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5076 as_fn_error 77 "cannot compute sizeof (void *)
5077 See \`config.log' for more details" "$LINENO" 5; }
5078 else
5079 ac_cv_sizeof_void_p=0
5080 fi
5081 fi
5082
5083 fi
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5085 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5086
5087
5088
5089 cat >>confdefs.h <<_ACEOF
5090 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5091 _ACEOF
5092
5093
5094 if test "x${ac_cv_sizeof_void_p}" = "x8" ; then
5095 LG_SIZEOF_PTR=3
5096 elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then
5097 LG_SIZEOF_PTR=2
5098 else
5099 as_fn_error $? "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5
5100 fi
5101 fi
5102 cat >>confdefs.h <<_ACEOF
5103 #define LG_SIZEOF_PTR $LG_SIZEOF_PTR
5104 _ACEOF
5105
5106
5107 # The cast to long int works around a bug in the HP C Compiler
5108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5109 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5110 # This bug is HP SR number 8606223364.
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5112 $as_echo_n "checking size of int... " >&6; }
5113 if ${ac_cv_sizeof_int+:} false; then :
5114 $as_echo_n "(cached) " >&6
5115 else
5116 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5117
5118 else
5119 if test "$ac_cv_type_int" = yes; then
5120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5122 as_fn_error 77 "cannot compute sizeof (int)
5123 See \`config.log' for more details" "$LINENO" 5; }
5124 else
5125 ac_cv_sizeof_int=0
5126 fi
5127 fi
5128
5129 fi
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5131 $as_echo "$ac_cv_sizeof_int" >&6; }
5132
5133
5134
5135 cat >>confdefs.h <<_ACEOF
5136 #define SIZEOF_INT $ac_cv_sizeof_int
5137 _ACEOF
5138
5139
5140 if test "x${ac_cv_sizeof_int}" = "x8" ; then
5141 LG_SIZEOF_INT=3
5142 elif test "x${ac_cv_sizeof_int}" = "x4" ; then
5143 LG_SIZEOF_INT=2
5144 else
5145 as_fn_error $? "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5
5146 fi
5147 cat >>confdefs.h <<_ACEOF
5148 #define LG_SIZEOF_INT $LG_SIZEOF_INT
5149 _ACEOF
5150
5151
5152 # The cast to long int works around a bug in the HP C Compiler
5153 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5154 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5155 # This bug is HP SR number 8606223364.
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5157 $as_echo_n "checking size of long... " >&6; }
5158 if ${ac_cv_sizeof_long+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5162
5163 else
5164 if test "$ac_cv_type_long" = yes; then
5165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5167 as_fn_error 77 "cannot compute sizeof (long)
5168 See \`config.log' for more details" "$LINENO" 5; }
5169 else
5170 ac_cv_sizeof_long=0
5171 fi
5172 fi
5173
5174 fi
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5176 $as_echo "$ac_cv_sizeof_long" >&6; }
5177
5178
5179
5180 cat >>confdefs.h <<_ACEOF
5181 #define SIZEOF_LONG $ac_cv_sizeof_long
5182 _ACEOF
5183
5184
5185 if test "x${ac_cv_sizeof_long}" = "x8" ; then
5186 LG_SIZEOF_LONG=3
5187 elif test "x${ac_cv_sizeof_long}" = "x4" ; then
5188 LG_SIZEOF_LONG=2
5189 else
5190 as_fn_error $? "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5
5191 fi
5192 cat >>confdefs.h <<_ACEOF
5193 #define LG_SIZEOF_LONG $LG_SIZEOF_LONG
5194 _ACEOF
5195
5196
5197 # The cast to long int works around a bug in the HP C Compiler
5198 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5199 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5200 # This bug is HP SR number 8606223364.
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5202 $as_echo_n "checking size of long long... " >&6; }
5203 if ${ac_cv_sizeof_long_long+:} false; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5207
5208 else
5209 if test "$ac_cv_type_long_long" = yes; then
5210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5212 as_fn_error 77 "cannot compute sizeof (long long)
5213 See \`config.log' for more details" "$LINENO" 5; }
5214 else
5215 ac_cv_sizeof_long_long=0
5216 fi
5217 fi
5218
5219 fi
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5221 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5222
5223
5224
5225 cat >>confdefs.h <<_ACEOF
5226 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5227 _ACEOF
5228
5229
5230 if test "x${ac_cv_sizeof_long_long}" = "x8" ; then
5231 LG_SIZEOF_LONG_LONG=3
5232 elif test "x${ac_cv_sizeof_long_long}" = "x4" ; then
5233 LG_SIZEOF_LONG_LONG=2
5234 else
5235 as_fn_error $? "Unsupported long long size: ${ac_cv_sizeof_long_long}" "$LINENO" 5
5236 fi
5237 cat >>confdefs.h <<_ACEOF
5238 #define LG_SIZEOF_LONG_LONG $LG_SIZEOF_LONG_LONG
5239 _ACEOF
5240
5241
5242 # The cast to long int works around a bug in the HP C Compiler
5243 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5244 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5245 # This bug is HP SR number 8606223364.
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
5247 $as_echo_n "checking size of intmax_t... " >&6; }
5248 if ${ac_cv_sizeof_intmax_t+:} false; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then :
5252
5253 else
5254 if test "$ac_cv_type_intmax_t" = yes; then
5255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5257 as_fn_error 77 "cannot compute sizeof (intmax_t)
5258 See \`config.log' for more details" "$LINENO" 5; }
5259 else
5260 ac_cv_sizeof_intmax_t=0
5261 fi
5262 fi
5263
5264 fi
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
5266 $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
5267
5268
5269
5270 cat >>confdefs.h <<_ACEOF
5271 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
5272 _ACEOF
5273
5274
5275 if test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then
5276 LG_SIZEOF_INTMAX_T=4
5277 elif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then
5278 LG_SIZEOF_INTMAX_T=3
5279 elif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then
5280 LG_SIZEOF_INTMAX_T=2
5281 else
5282 as_fn_error $? "Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5
5283 fi
5284 cat >>confdefs.h <<_ACEOF
5285 #define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T
5286 _ACEOF
5287
5288
5289 # Make sure we can run config.sub.
5290 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5291 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5292
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5294 $as_echo_n "checking build system type... " >&6; }
5295 if ${ac_cv_build+:} false; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 ac_build_alias=$build_alias
5299 test "x$ac_build_alias" = x &&
5300 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5301 test "x$ac_build_alias" = x &&
5302 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5303 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5304 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5305
5306 fi
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5308 $as_echo "$ac_cv_build" >&6; }
5309 case $ac_cv_build in
5310 *-*-*) ;;
5311 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5312 esac
5313 build=$ac_cv_build
5314 ac_save_IFS=$IFS; IFS='-'
5315 set x $ac_cv_build
5316 shift
5317 build_cpu=$1
5318 build_vendor=$2
5319 shift; shift
5320 # Remember, the first character of IFS is used to create $*,
5321 # except with old shells:
5322 build_os=$*
5323 IFS=$ac_save_IFS
5324 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5325
5326
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5328 $as_echo_n "checking host system type... " >&6; }
5329 if ${ac_cv_host+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 if test "x$host_alias" = x; then
5333 ac_cv_host=$ac_cv_build
5334 else
5335 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5336 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5337 fi
5338
5339 fi
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5341 $as_echo "$ac_cv_host" >&6; }
5342 case $ac_cv_host in
5343 *-*-*) ;;
5344 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5345 esac
5346 host=$ac_cv_host
5347 ac_save_IFS=$IFS; IFS='-'
5348 set x $ac_cv_host
5349 shift
5350 host_cpu=$1
5351 host_vendor=$2
5352 shift; shift
5353 # Remember, the first character of IFS is used to create $*,
5354 # except with old shells:
5355 host_os=$*
5356 IFS=$ac_save_IFS
5357 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5358
5359
5360 CPU_SPINWAIT=""
5361 case "${host_cpu}" in
5362 i686|x86_64)
5363 if test "x${je_cv_msvc}" = "xyes" ; then
5364 if ${je_cv_pause_msvc+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction MSVC is compilable" >&5
5369 $as_echo_n "checking whether pause instruction MSVC is compilable... " >&6; }
5370 if ${je_cv_pause_msvc+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5375
5376 int
5377 main ()
5378 {
5379 _mm_pause(); return 0;
5380 ;
5381 return 0;
5382 }
5383 _ACEOF
5384 if ac_fn_c_try_link "$LINENO"; then :
5385 je_cv_pause_msvc=yes
5386 else
5387 je_cv_pause_msvc=no
5388 fi
5389 rm -f core conftest.err conftest.$ac_objext \
5390 conftest$ac_exeext conftest.$ac_ext
5391 fi
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause_msvc" >&5
5393 $as_echo "$je_cv_pause_msvc" >&6; }
5394
5395 fi
5396
5397 if test "x${je_cv_pause_msvc}" = "xyes" ; then
5398 CPU_SPINWAIT='_mm_pause()'
5399 fi
5400 else
5401 if ${je_cv_pause+:} false; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction is compilable" >&5
5406 $as_echo_n "checking whether pause instruction is compilable... " >&6; }
5407 if ${je_cv_pause+:} false; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5412
5413 int
5414 main ()
5415 {
5416 __asm__ volatile("pause"); return 0;
5417 ;
5418 return 0;
5419 }
5420 _ACEOF
5421 if ac_fn_c_try_link "$LINENO"; then :
5422 je_cv_pause=yes
5423 else
5424 je_cv_pause=no
5425 fi
5426 rm -f core conftest.err conftest.$ac_objext \
5427 conftest$ac_exeext conftest.$ac_ext
5428 fi
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause" >&5
5430 $as_echo "$je_cv_pause" >&6; }
5431
5432 fi
5433
5434 if test "x${je_cv_pause}" = "xyes" ; then
5435 CPU_SPINWAIT='__asm__ volatile("pause")'
5436 fi
5437 fi
5438 ;;
5439 powerpc)
5440 cat >>confdefs.h <<_ACEOF
5441 #define HAVE_ALTIVEC
5442 _ACEOF
5443
5444 ;;
5445 *)
5446 ;;
5447 esac
5448 cat >>confdefs.h <<_ACEOF
5449 #define CPU_SPINWAIT $CPU_SPINWAIT
5450 _ACEOF
5451
5452
5453 LD_PRELOAD_VAR="LD_PRELOAD"
5454 so="so"
5455 importlib="${so}"
5456 o="$ac_objext"
5457 a="a"
5458 exe="$ac_exeext"
5459 libprefix="lib"
5460 link_whole_archive="0"
5461 DSO_LDFLAGS='-shared -Wl,-soname,$(@F)'
5462 RPATH='-Wl,-rpath,$(1)'
5463 SOREV="${so}.${rev}"
5464 PIC_CFLAGS='-fPIC -DPIC'
5465 CTARGET='-o $@'
5466 LDTARGET='-o $@'
5467 TEST_LD_MODE=
5468 EXTRA_LDFLAGS=
5469 ARFLAGS='crus'
5470 AROUT=' $@'
5471 CC_MM=1
5472
5473 if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
5474 TEST_LD_MODE='-dynamic'
5475 fi
5476
5477 if test "x${je_cv_cray}" = "xyes" ; then
5478 CC_MM=
5479 fi
5480
5481
5482
5483
5484 if test -n "$ac_tool_prefix"; then
5485 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5486 set dummy ${ac_tool_prefix}ar; ac_word=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if ${ac_cv_prog_AR+:} false; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 if test -n "$AR"; then
5493 ac_cv_prog_AR="$AR" # Let the user override the test.
5494 else
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH
5497 do
5498 IFS=$as_save_IFS
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5502 ac_cv_prog_AR="${ac_tool_prefix}ar"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 break 2
5505 fi
5506 done
5507 done
5508 IFS=$as_save_IFS
5509
5510 fi
5511 fi
5512 AR=$ac_cv_prog_AR
5513 if test -n "$AR"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5515 $as_echo "$AR" >&6; }
5516 else
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5519 fi
5520
5521
5522 fi
5523 if test -z "$ac_cv_prog_AR"; then
5524 ac_ct_AR=$AR
5525 # Extract the first word of "ar", so it can be a program name with args.
5526 set dummy ar; ac_word=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 if test -n "$ac_ct_AR"; then
5533 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5534 else
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5537 do
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5542 ac_cv_prog_ac_ct_AR="ar"
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 break 2
5545 fi
5546 done
5547 done
5548 IFS=$as_save_IFS
5549
5550 fi
5551 fi
5552 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5553 if test -n "$ac_ct_AR"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5555 $as_echo "$ac_ct_AR" >&6; }
5556 else
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5559 fi
5560
5561 if test "x$ac_ct_AR" = x; then
5562 AR=":"
5563 else
5564 case $cross_compiling:$ac_tool_warned in
5565 yes:)
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5568 ac_tool_warned=yes ;;
5569 esac
5570 AR=$ac_ct_AR
5571 fi
5572 else
5573 AR="$ac_cv_prog_AR"
5574 fi
5575
5576
5577 default_munmap="1"
5578 maps_coalesce="1"
5579 case "${host}" in
5580 *-*-darwin* | *-*-ios*)
5581 abi="macho"
5582 RPATH=""
5583 LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
5584 so="dylib"
5585 importlib="${so}"
5586 force_tls="0"
5587 DSO_LDFLAGS='-shared -Wl,-install_name,$(LIBDIR)/$(@F)'
5588 SOREV="${rev}.${so}"
5589 sbrk_deprecated="1"
5590 ;;
5591 *-*-freebsd*)
5592 abi="elf"
5593 $as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT " >>confdefs.h
5594
5595 force_lazy_lock="1"
5596 ;;
5597 *-*-dragonfly*)
5598 abi="elf"
5599 ;;
5600 *-*-openbsd*)
5601 abi="elf"
5602 force_tls="0"
5603 ;;
5604 *-*-bitrig*)
5605 abi="elf"
5606 ;;
5607 *-*-linux-android)
5608 T_APPEND_V=-D_GNU_SOURCE
5609 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5610 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
5611 else
5612 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
5613 fi
5614
5615
5616 abi="elf"
5617 $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
5618
5619 $as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY " >>confdefs.h
5620
5621 $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h
5622
5623 $as_echo "#define JEMALLOC_C11ATOMICS 1" >>confdefs.h
5624
5625 force_tls="0"
5626 default_munmap="0"
5627 ;;
5628 *-*-linux* | *-*-kfreebsd*)
5629 T_APPEND_V=-D_GNU_SOURCE
5630 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5631 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
5632 else
5633 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
5634 fi
5635
5636
5637 abi="elf"
5638 $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
5639
5640 $as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY " >>confdefs.h
5641
5642 $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h
5643
5644 $as_echo "#define JEMALLOC_USE_CXX_THROW " >>confdefs.h
5645
5646 default_munmap="0"
5647 ;;
5648 *-*-netbsd*)
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5
5650 $as_echo_n "checking ABI... " >&6; }
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653 #ifdef __ELF__
5654 /* ELF */
5655 #else
5656 #error aout
5657 #endif
5658
5659 int
5660 main ()
5661 {
5662
5663 ;
5664 return 0;
5665 }
5666 _ACEOF
5667 if ac_fn_c_try_compile "$LINENO"; then :
5668 abi="elf"
5669 else
5670 abi="aout"
5671 fi
5672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5
5674 $as_echo "$abi" >&6; }
5675 ;;
5676 *-*-solaris2*)
5677 abi="elf"
5678 RPATH='-Wl,-R,$(1)'
5679 T_APPEND_V=-D_POSIX_PTHREAD_SEMANTICS
5680 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5681 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
5682 else
5683 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
5684 fi
5685
5686
5687 T_APPEND_V=-lposix4 -lsocket -lnsl
5688 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5689 LIBS="${LIBS}${T_APPEND_V}"
5690 else
5691 LIBS="${LIBS} ${T_APPEND_V}"
5692 fi
5693
5694
5695 ;;
5696 *-ibm-aix*)
5697 if "$LG_SIZEOF_PTR" = "8"; then
5698 LD_PRELOAD_VAR="LDR_PRELOAD64"
5699 else
5700 LD_PRELOAD_VAR="LDR_PRELOAD"
5701 fi
5702 abi="xcoff"
5703 ;;
5704 *-*-mingw* | *-*-cygwin*)
5705 abi="pecoff"
5706 force_tls="0"
5707 maps_coalesce="0"
5708 RPATH=""
5709 so="dll"
5710 if test "x$je_cv_msvc" = "xyes" ; then
5711 importlib="lib"
5712 DSO_LDFLAGS="-LD"
5713 EXTRA_LDFLAGS="-link -DEBUG"
5714 CTARGET='-Fo$@'
5715 LDTARGET='-Fe$@'
5716 AR='lib'
5717 ARFLAGS='-nologo -out:'
5718 AROUT='$@'
5719 CC_MM=
5720 else
5721 importlib="${so}"
5722 DSO_LDFLAGS="-shared"
5723 link_whole_archive="1"
5724 fi
5725 a="lib"
5726 libprefix=""
5727 SOREV="${so}"
5728 PIC_CFLAGS=""
5729 ;;
5730 *)
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5
5732 $as_echo "Unsupported operating system: ${host}" >&6; }
5733 abi="elf"
5734 ;;
5735 esac
5736
5737 JEMALLOC_USABLE_SIZE_CONST=const
5738 for ac_header in malloc.h
5739 do :
5740 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5741 if test "x$ac_cv_header_malloc_h" = xyes; then :
5742 cat >>confdefs.h <<_ACEOF
5743 #define HAVE_MALLOC_H 1
5744 _ACEOF
5745
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc_usable_size definition can use const argument" >&5
5747 $as_echo_n "checking whether malloc_usable_size definition can use const argument... " >&6; }
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750 #include <malloc.h>
5751 #include <stddef.h>
5752 size_t malloc_usable_size(const void *ptr);
5753
5754 int
5755 main ()
5756 {
5757
5758 ;
5759 return 0;
5760 }
5761 _ACEOF
5762 if ac_fn_c_try_compile "$LINENO"; then :
5763
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5765 $as_echo "yes" >&6; }
5766
5767 else
5768
5769 JEMALLOC_USABLE_SIZE_CONST=
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5772
5773 fi
5774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775
5776 fi
5777
5778 done
5779
5780 cat >>confdefs.h <<_ACEOF
5781 #define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST
5782 _ACEOF
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
5807 $as_echo_n "checking for library containing log... " >&6; }
5808 if ${ac_cv_search_log+:} false; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 ac_func_search_save_LIBS=$LIBS
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814
5815 /* Override any GCC internal prototype to avoid an error.
5816 Use char because int might match the return type of a GCC
5817 builtin and then its argument prototype would still apply. */
5818 #ifdef __cplusplus
5819 extern "C"
5820 #endif
5821 char log ();
5822 int
5823 main ()
5824 {
5825 return log ();
5826 ;
5827 return 0;
5828 }
5829 _ACEOF
5830 for ac_lib in '' m; do
5831 if test -z "$ac_lib"; then
5832 ac_res="none required"
5833 else
5834 ac_res=-l$ac_lib
5835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5836 fi
5837 if ac_fn_c_try_link "$LINENO"; then :
5838 ac_cv_search_log=$ac_res
5839 fi
5840 rm -f core conftest.err conftest.$ac_objext \
5841 conftest$ac_exeext
5842 if ${ac_cv_search_log+:} false; then :
5843 break
5844 fi
5845 done
5846 if ${ac_cv_search_log+:} false; then :
5847
5848 else
5849 ac_cv_search_log=no
5850 fi
5851 rm conftest.$ac_ext
5852 LIBS=$ac_func_search_save_LIBS
5853 fi
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
5855 $as_echo "$ac_cv_search_log" >&6; }
5856 ac_res=$ac_cv_search_log
5857 if test "$ac_res" != no; then :
5858 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5859
5860 else
5861 as_fn_error $? "Missing math functions" "$LINENO" 5
5862 fi
5863
5864 if test "x$ac_cv_search_log" != "xnone required" ; then
5865 LM="$ac_cv_search_log"
5866 else
5867 LM=
5868 fi
5869
5870
5871
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5
5873 $as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; }
5874 if ${je_cv_attribute+:} false; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 static __attribute__((unused)) void foo(void){}
5880 int
5881 main ()
5882 {
5883
5884 ;
5885 return 0;
5886 }
5887 _ACEOF
5888 if ac_fn_c_try_link "$LINENO"; then :
5889 je_cv_attribute=yes
5890 else
5891 je_cv_attribute=no
5892 fi
5893 rm -f core conftest.err conftest.$ac_objext \
5894 conftest$ac_exeext conftest.$ac_ext
5895 fi
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5
5897 $as_echo "$je_cv_attribute" >&6; }
5898
5899 if test "x${je_cv_attribute}" = "xyes" ; then
5900 $as_echo "#define JEMALLOC_HAVE_ATTR " >>confdefs.h
5901
5902 if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then
5903
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
5905 $as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
5906 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
5907 T_APPEND_V=-fvisibility=hidden
5908 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5909 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
5910 else
5911 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
5912 fi
5913
5914
5915 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
5916 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
5917 else
5918 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
5919 fi
5920
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5923
5924
5925 int
5926 main ()
5927 {
5928
5929 return 0;
5930
5931 ;
5932 return 0;
5933 }
5934 _ACEOF
5935 if ac_fn_c_try_compile "$LINENO"; then :
5936 je_cv_cflags_added=-fvisibility=hidden
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5938 $as_echo "yes" >&6; }
5939 else
5940 je_cv_cflags_added=
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }
5943 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
5944
5945 fi
5946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
5948 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
5949 else
5950 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
5951 fi
5952
5953
5954 fi
5955 fi
5956 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
5957
5958
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
5960 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
5961 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
5962 T_APPEND_V=-Werror
5963 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5964 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
5965 else
5966 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
5967 fi
5968
5969
5970 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
5971 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
5972 else
5973 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
5974 fi
5975
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5978
5979
5980 int
5981 main ()
5982 {
5983
5984 return 0;
5985
5986 ;
5987 return 0;
5988 }
5989 _ACEOF
5990 if ac_fn_c_try_compile "$LINENO"; then :
5991 je_cv_cflags_added=-Werror
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5993 $as_echo "yes" >&6; }
5994 else
5995 je_cv_cflags_added=
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997 $as_echo "no" >&6; }
5998 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
5999
6000 fi
6001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6003 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6004 else
6005 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6006 fi
6007
6008
6009
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
6011 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
6012 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
6013 T_APPEND_V=-herror_on_warning
6014 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6015 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
6016 else
6017 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
6018 fi
6019
6020
6021 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6022 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6023 else
6024 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6025 fi
6026
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029
6030
6031 int
6032 main ()
6033 {
6034
6035 return 0;
6036
6037 ;
6038 return 0;
6039 }
6040 _ACEOF
6041 if ac_fn_c_try_compile "$LINENO"; then :
6042 je_cv_cflags_added=-herror_on_warning
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6044 $as_echo "yes" >&6; }
6045 else
6046 je_cv_cflags_added=
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048 $as_echo "no" >&6; }
6049 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
6050
6051 fi
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6054 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6055 else
6056 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6057 fi
6058
6059
6060
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5
6062 $as_echo_n "checking whether tls_model attribute is compilable... " >&6; }
6063 if ${je_cv_tls_model+:} false; then :
6064 $as_echo_n "(cached) " >&6
6065 else
6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h. */
6068
6069 int
6070 main ()
6071 {
6072 static __thread int
6073 __attribute__((tls_model("initial-exec"), unused)) foo;
6074 foo = 0;
6075 ;
6076 return 0;
6077 }
6078 _ACEOF
6079 if ac_fn_c_try_link "$LINENO"; then :
6080 je_cv_tls_model=yes
6081 else
6082 je_cv_tls_model=no
6083 fi
6084 rm -f core conftest.err conftest.$ac_objext \
6085 conftest$ac_exeext conftest.$ac_ext
6086 fi
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5
6088 $as_echo "$je_cv_tls_model" >&6; }
6089
6090 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
6091 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6092 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6093 else
6094 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6095 fi
6096
6097
6098 if test "x${je_cv_tls_model}" = "xyes" ; then
6099 $as_echo "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h
6100
6101 else
6102 $as_echo "#define JEMALLOC_TLS_MODEL " >>confdefs.h
6103
6104 fi
6105 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
6106
6107
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
6109 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
6110 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
6111 T_APPEND_V=-Werror
6112 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6113 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
6114 else
6115 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
6116 fi
6117
6118
6119 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6120 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6121 else
6122 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6123 fi
6124
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6127
6128
6129 int
6130 main ()
6131 {
6132
6133 return 0;
6134
6135 ;
6136 return 0;
6137 }
6138 _ACEOF
6139 if ac_fn_c_try_compile "$LINENO"; then :
6140 je_cv_cflags_added=-Werror
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6142 $as_echo "yes" >&6; }
6143 else
6144 je_cv_cflags_added=
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 $as_echo "no" >&6; }
6147 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
6148
6149 fi
6150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6151 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6152 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6153 else
6154 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6155 fi
6156
6157
6158
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
6160 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
6161 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
6162 T_APPEND_V=-herror_on_warning
6163 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6164 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
6165 else
6166 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
6167 fi
6168
6169
6170 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6171 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6172 else
6173 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6174 fi
6175
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h. */
6178
6179
6180 int
6181 main ()
6182 {
6183
6184 return 0;
6185
6186 ;
6187 return 0;
6188 }
6189 _ACEOF
6190 if ac_fn_c_try_compile "$LINENO"; then :
6191 je_cv_cflags_added=-herror_on_warning
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6193 $as_echo "yes" >&6; }
6194 else
6195 je_cv_cflags_added=
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 $as_echo "no" >&6; }
6198 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
6199
6200 fi
6201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6203 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6204 else
6205 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6206 fi
6207
6208
6209
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloc_size attribute is compilable" >&5
6211 $as_echo_n "checking whether alloc_size attribute is compilable... " >&6; }
6212 if ${je_cv_alloc_size+:} false; then :
6213 $as_echo_n "(cached) " >&6
6214 else
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216 /* end confdefs.h. */
6217 #include <stdlib.h>
6218 int
6219 main ()
6220 {
6221 void *foo(size_t size) __attribute__((alloc_size(1)));
6222 ;
6223 return 0;
6224 }
6225 _ACEOF
6226 if ac_fn_c_try_link "$LINENO"; then :
6227 je_cv_alloc_size=yes
6228 else
6229 je_cv_alloc_size=no
6230 fi
6231 rm -f core conftest.err conftest.$ac_objext \
6232 conftest$ac_exeext conftest.$ac_ext
6233 fi
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_alloc_size" >&5
6235 $as_echo "$je_cv_alloc_size" >&6; }
6236
6237 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
6238 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6239 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6240 else
6241 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6242 fi
6243
6244
6245 if test "x${je_cv_alloc_size}" = "xyes" ; then
6246 $as_echo "#define JEMALLOC_HAVE_ATTR_ALLOC_SIZE " >>confdefs.h
6247
6248 fi
6249 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
6250
6251
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
6253 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
6254 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
6255 T_APPEND_V=-Werror
6256 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6257 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
6258 else
6259 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
6260 fi
6261
6262
6263 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6264 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6265 else
6266 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6267 fi
6268
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271
6272
6273 int
6274 main ()
6275 {
6276
6277 return 0;
6278
6279 ;
6280 return 0;
6281 }
6282 _ACEOF
6283 if ac_fn_c_try_compile "$LINENO"; then :
6284 je_cv_cflags_added=-Werror
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6286 $as_echo "yes" >&6; }
6287 else
6288 je_cv_cflags_added=
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 $as_echo "no" >&6; }
6291 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
6292
6293 fi
6294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6296 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6297 else
6298 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6299 fi
6300
6301
6302
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
6304 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
6305 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
6306 T_APPEND_V=-herror_on_warning
6307 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6308 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
6309 else
6310 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
6311 fi
6312
6313
6314 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6315 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6316 else
6317 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6318 fi
6319
6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6322
6323
6324 int
6325 main ()
6326 {
6327
6328 return 0;
6329
6330 ;
6331 return 0;
6332 }
6333 _ACEOF
6334 if ac_fn_c_try_compile "$LINENO"; then :
6335 je_cv_cflags_added=-herror_on_warning
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6337 $as_echo "yes" >&6; }
6338 else
6339 je_cv_cflags_added=
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6342 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
6343
6344 fi
6345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6347 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6348 else
6349 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6350 fi
6351
6352
6353
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(gnu_printf, ...) attribute is compilable" >&5
6355 $as_echo_n "checking whether format(gnu_printf, ...) attribute is compilable... " >&6; }
6356 if ${je_cv_format_gnu_printf+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6361 #include <stdlib.h>
6362 int
6363 main ()
6364 {
6365 void *foo(const char *format, ...) __attribute__((format(gnu_printf, 1, 2)));
6366 ;
6367 return 0;
6368 }
6369 _ACEOF
6370 if ac_fn_c_try_link "$LINENO"; then :
6371 je_cv_format_gnu_printf=yes
6372 else
6373 je_cv_format_gnu_printf=no
6374 fi
6375 rm -f core conftest.err conftest.$ac_objext \
6376 conftest$ac_exeext conftest.$ac_ext
6377 fi
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_gnu_printf" >&5
6379 $as_echo "$je_cv_format_gnu_printf" >&6; }
6380
6381 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
6382 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6383 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6384 else
6385 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6386 fi
6387
6388
6389 if test "x${je_cv_format_gnu_printf}" = "xyes" ; then
6390 $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF " >>confdefs.h
6391
6392 fi
6393 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
6394
6395
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
6397 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
6398 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
6399 T_APPEND_V=-Werror
6400 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6401 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
6402 else
6403 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
6404 fi
6405
6406
6407 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6408 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6409 else
6410 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6411 fi
6412
6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6414 /* end confdefs.h. */
6415
6416
6417 int
6418 main ()
6419 {
6420
6421 return 0;
6422
6423 ;
6424 return 0;
6425 }
6426 _ACEOF
6427 if ac_fn_c_try_compile "$LINENO"; then :
6428 je_cv_cflags_added=-Werror
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6430 $as_echo "yes" >&6; }
6431 else
6432 je_cv_cflags_added=
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6435 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
6436
6437 fi
6438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6440 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6441 else
6442 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6443 fi
6444
6445
6446
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
6448 $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
6449 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
6450 T_APPEND_V=-herror_on_warning
6451 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6452 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
6453 else
6454 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
6455 fi
6456
6457
6458 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6459 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6460 else
6461 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6462 fi
6463
6464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6466
6467
6468 int
6469 main ()
6470 {
6471
6472 return 0;
6473
6474 ;
6475 return 0;
6476 }
6477 _ACEOF
6478 if ac_fn_c_try_compile "$LINENO"; then :
6479 je_cv_cflags_added=-herror_on_warning
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6481 $as_echo "yes" >&6; }
6482 else
6483 je_cv_cflags_added=
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6486 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
6487
6488 fi
6489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6490 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6491 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6492 else
6493 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6494 fi
6495
6496
6497
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5
6499 $as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; }
6500 if ${je_cv_format_printf+:} false; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6505 #include <stdlib.h>
6506 int
6507 main ()
6508 {
6509 void *foo(const char *format, ...) __attribute__((format(printf, 1, 2)));
6510 ;
6511 return 0;
6512 }
6513 _ACEOF
6514 if ac_fn_c_try_link "$LINENO"; then :
6515 je_cv_format_printf=yes
6516 else
6517 je_cv_format_printf=no
6518 fi
6519 rm -f core conftest.err conftest.$ac_objext \
6520 conftest$ac_exeext conftest.$ac_ext
6521 fi
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_printf" >&5
6523 $as_echo "$je_cv_format_printf" >&6; }
6524
6525 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
6526 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6527 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6528 else
6529 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6530 fi
6531
6532
6533 if test "x${je_cv_format_printf}" = "xyes" ; then
6534 $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF " >>confdefs.h
6535
6536 fi
6537
6538
6539 # Check whether --with-rpath was given.
6540 if test "${with_rpath+set}" = set; then :
6541 withval=$with_rpath; if test "x$with_rpath" = "xno" ; then
6542 RPATH_EXTRA=
6543 else
6544 RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`"
6545 fi
6546 else
6547 RPATH_EXTRA=
6548
6549 fi
6550
6551
6552
6553 # Check whether --enable-autogen was given.
6554 if test "${enable_autogen+set}" = set; then :
6555 enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then
6556 enable_autogen="0"
6557 else
6558 enable_autogen="1"
6559 fi
6560
6561 else
6562 enable_autogen="0"
6563
6564 fi
6565
6566
6567
6568 # Find a good install program. We prefer a C program (faster),
6569 # so one script is as good as another. But avoid the broken or
6570 # incompatible versions:
6571 # SysV /etc/install, /usr/sbin/install
6572 # SunOS /usr/etc/install
6573 # IRIX /sbin/install
6574 # AIX /bin/install
6575 # AmigaOS /C/install, which installs bootblocks on floppy discs
6576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6579 # OS/2's system install, which has a completely different semantic
6580 # ./install, which can be erroneously created by make from ./install.sh.
6581 # Reject install programs that cannot install multiple files.
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6583 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6584 if test -z "$INSTALL"; then
6585 if ${ac_cv_path_install+:} false; then :
6586 $as_echo_n "(cached) " >&6
6587 else
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 for as_dir in $PATH
6590 do
6591 IFS=$as_save_IFS
6592 test -z "$as_dir" && as_dir=.
6593 # Account for people who put trailing slashes in PATH elements.
6594 case $as_dir/ in #((
6595 ./ | .// | /[cC]/* | \
6596 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6597 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6598 /usr/ucb/* ) ;;
6599 *)
6600 # OSF1 and SCO ODT 3.0 have their own names for install.
6601 # Don't use installbsd from OSF since it installs stuff as root
6602 # by default.
6603 for ac_prog in ginstall scoinst install; do
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6606 if test $ac_prog = install &&
6607 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6608 # AIX install. It has an incompatible calling convention.
6609 :
6610 elif test $ac_prog = install &&
6611 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6612 # program-specific install script used by HP pwplus--don't use.
6613 :
6614 else
6615 rm -rf conftest.one conftest.two conftest.dir
6616 echo one > conftest.one
6617 echo two > conftest.two
6618 mkdir conftest.dir
6619 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6620 test -s conftest.one && test -s conftest.two &&
6621 test -s conftest.dir/conftest.one &&
6622 test -s conftest.dir/conftest.two
6623 then
6624 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6625 break 3
6626 fi
6627 fi
6628 fi
6629 done
6630 done
6631 ;;
6632 esac
6633
6634 done
6635 IFS=$as_save_IFS
6636
6637 rm -rf conftest.one conftest.two conftest.dir
6638
6639 fi
6640 if test "${ac_cv_path_install+set}" = set; then
6641 INSTALL=$ac_cv_path_install
6642 else
6643 # As a last resort, use the slow shell script. Don't cache a
6644 # value for INSTALL within a source directory, because that will
6645 # break other packages using the cache if that directory is
6646 # removed, or if the value is a relative name.
6647 INSTALL=$ac_install_sh
6648 fi
6649 fi
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6651 $as_echo "$INSTALL" >&6; }
6652
6653 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6654 # It thinks the first close brace ends the variable substitution.
6655 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6656
6657 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6658
6659 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6660
6661 if test -n "$ac_tool_prefix"; then
6662 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6663 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if ${ac_cv_prog_RANLIB+:} false; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 if test -n "$RANLIB"; then
6670 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681 break 2
6682 fi
6683 done
6684 done
6685 IFS=$as_save_IFS
6686
6687 fi
6688 fi
6689 RANLIB=$ac_cv_prog_RANLIB
6690 if test -n "$RANLIB"; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6692 $as_echo "$RANLIB" >&6; }
6693 else
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6696 fi
6697
6698
6699 fi
6700 if test -z "$ac_cv_prog_RANLIB"; then
6701 ac_ct_RANLIB=$RANLIB
6702 # Extract the first word of "ranlib", so it can be a program name with args.
6703 set dummy ranlib; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6707 $as_echo_n "(cached) " >&6
6708 else
6709 if test -n "$ac_ct_RANLIB"; then
6710 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6711 else
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6714 do
6715 IFS=$as_save_IFS
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
6718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719 ac_cv_prog_ac_ct_RANLIB="ranlib"
6720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 break 2
6722 fi
6723 done
6724 done
6725 IFS=$as_save_IFS
6726
6727 fi
6728 fi
6729 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6730 if test -n "$ac_ct_RANLIB"; then
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6732 $as_echo "$ac_ct_RANLIB" >&6; }
6733 else
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6736 fi
6737
6738 if test "x$ac_ct_RANLIB" = x; then
6739 RANLIB=":"
6740 else
6741 case $cross_compiling:$ac_tool_warned in
6742 yes:)
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6745 ac_tool_warned=yes ;;
6746 esac
6747 RANLIB=$ac_ct_RANLIB
6748 fi
6749 else
6750 RANLIB="$ac_cv_prog_RANLIB"
6751 fi
6752
6753 # Extract the first word of "ld", so it can be a program name with args.
6754 set dummy ld; ac_word=$2
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if ${ac_cv_path_LD+:} false; then :
6758 $as_echo_n "(cached) " >&6
6759 else
6760 case $LD in
6761 [\\/]* | ?:[\\/]*)
6762 ac_cv_path_LD="$LD" # Let the user override the test with a path.
6763 ;;
6764 *)
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6767 do
6768 IFS=$as_save_IFS
6769 test -z "$as_dir" && as_dir=.
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6772 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
6773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 break 2
6775 fi
6776 done
6777 done
6778 IFS=$as_save_IFS
6779
6780 test -z "$ac_cv_path_LD" && ac_cv_path_LD="false"
6781 ;;
6782 esac
6783 fi
6784 LD=$ac_cv_path_LD
6785 if test -n "$LD"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6787 $as_echo "$LD" >&6; }
6788 else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 $as_echo "no" >&6; }
6791 fi
6792
6793
6794 # Extract the first word of "autoconf", so it can be a program name with args.
6795 set dummy autoconf; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if ${ac_cv_path_AUTOCONF+:} false; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 case $AUTOCONF in
6802 [\\/]* | ?:[\\/]*)
6803 ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
6804 ;;
6805 *)
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809 IFS=$as_save_IFS
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813 ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
6814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 break 2
6816 fi
6817 done
6818 done
6819 IFS=$as_save_IFS
6820
6821 test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="false"
6822 ;;
6823 esac
6824 fi
6825 AUTOCONF=$ac_cv_path_AUTOCONF
6826 if test -n "$AUTOCONF"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
6828 $as_echo "$AUTOCONF" >&6; }
6829 else
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6832 fi
6833
6834
6835
6836 public_syms="malloc_conf malloc_message malloc calloc posix_memalign aligned_alloc realloc free mallocx rallocx xallocx sallocx dallocx sdallocx nallocx mallctl mallctlnametomib mallctlbymib malloc_stats_print malloc_usable_size"
6837
6838 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
6839 if test "x$ac_cv_func_memalign" = xyes; then :
6840 $as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN " >>confdefs.h
6841
6842 public_syms="${public_syms} memalign"
6843 fi
6844
6845 ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
6846 if test "x$ac_cv_func_valloc" = xyes; then :
6847 $as_echo "#define JEMALLOC_OVERRIDE_VALLOC " >>confdefs.h
6848
6849 public_syms="${public_syms} valloc"
6850 fi
6851
6852
6853 GCOV_FLAGS=
6854 # Check whether --enable-code-coverage was given.
6855 if test "${enable_code_coverage+set}" = set; then :
6856 enableval=$enable_code_coverage; if test "x$enable_code_coverage" = "xno" ; then
6857 enable_code_coverage="0"
6858 else
6859 enable_code_coverage="1"
6860 fi
6861
6862 else
6863 enable_code_coverage="0"
6864
6865 fi
6866
6867 if test "x$enable_code_coverage" = "x1" ; then
6868 deoptimize="no"
6869 echo "$CFLAGS $EXTRA_CFLAGS" | grep '\-O' >/dev/null || deoptimize="yes"
6870 if test "x${deoptimize}" = "xyes" ; then
6871
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O0" >&5
6873 $as_echo_n "checking whether compiler supports -O0... " >&6; }
6874 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
6875 T_APPEND_V=-O0
6876 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6877 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
6878 else
6879 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
6880 fi
6881
6882
6883 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6884 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6885 else
6886 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6887 fi
6888
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6891
6892
6893 int
6894 main ()
6895 {
6896
6897 return 0;
6898
6899 ;
6900 return 0;
6901 }
6902 _ACEOF
6903 if ac_fn_c_try_compile "$LINENO"; then :
6904 je_cv_cflags_added=-O0
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6906 $as_echo "yes" >&6; }
6907 else
6908 je_cv_cflags_added=
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910 $as_echo "no" >&6; }
6911 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
6912
6913 fi
6914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6915 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6916 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6917 else
6918 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6919 fi
6920
6921
6922 fi
6923
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fprofile-arcs -ftest-coverage" >&5
6925 $as_echo_n "checking whether compiler supports -fprofile-arcs -ftest-coverage... " >&6; }
6926 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
6927 T_APPEND_V=-fprofile-arcs -ftest-coverage
6928 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6929 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
6930 else
6931 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
6932 fi
6933
6934
6935 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6936 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6937 else
6938 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6939 fi
6940
6941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6942 /* end confdefs.h. */
6943
6944
6945 int
6946 main ()
6947 {
6948
6949 return 0;
6950
6951 ;
6952 return 0;
6953 }
6954 _ACEOF
6955 if ac_fn_c_try_compile "$LINENO"; then :
6956 je_cv_cflags_added=-fprofile-arcs -ftest-coverage
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6958 $as_echo "yes" >&6; }
6959 else
6960 je_cv_cflags_added=
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962 $as_echo "no" >&6; }
6963 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
6964
6965 fi
6966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6967 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
6968 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
6969 else
6970 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
6971 fi
6972
6973
6974 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -fprofile-arcs -ftest-coverage"
6975 $as_echo "#define JEMALLOC_CODE_COVERAGE " >>confdefs.h
6976
6977 fi
6978
6979
6980
6981 # Check whether --with-mangling was given.
6982 if test "${with_mangling+set}" = set; then :
6983 withval=$with_mangling; mangling_map="$with_mangling"
6984 else
6985 mangling_map=""
6986 fi
6987
6988
6989
6990 # Check whether --with-jemalloc_prefix was given.
6991 if test "${with_jemalloc_prefix+set}" = set; then :
6992 withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix"
6993 else
6994 if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then
6995 JEMALLOC_PREFIX=""
6996 else
6997 JEMALLOC_PREFIX="je_"
6998 fi
6999
7000 fi
7001
7002 if test "x$JEMALLOC_PREFIX" != "x" ; then
7003 JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"`
7004 cat >>confdefs.h <<_ACEOF
7005 #define JEMALLOC_PREFIX "$JEMALLOC_PREFIX"
7006 _ACEOF
7007
7008 cat >>confdefs.h <<_ACEOF
7009 #define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX"
7010 _ACEOF
7011
7012 fi
7013
7014
7015
7016 # Check whether --with-export was given.
7017 if test "${with_export+set}" = set; then :
7018 withval=$with_export; if test "x$with_export" = "xno"; then
7019 $as_echo "#define JEMALLOC_EXPORT /**/" >>confdefs.h
7020
7021 fi
7022
7023 fi
7024
7025
7026
7027 # Check whether --with-private_namespace was given.
7028 if test "${with_private_namespace+set}" = set; then :
7029 withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="${with_private_namespace}je_"
7030 else
7031 JEMALLOC_PRIVATE_NAMESPACE="je_"
7032
7033 fi
7034
7035 cat >>confdefs.h <<_ACEOF
7036 #define JEMALLOC_PRIVATE_NAMESPACE $JEMALLOC_PRIVATE_NAMESPACE
7037 _ACEOF
7038
7039 private_namespace="$JEMALLOC_PRIVATE_NAMESPACE"
7040
7041
7042
7043 # Check whether --with-install_suffix was given.
7044 if test "${with_install_suffix+set}" = set; then :
7045 withval=$with_install_suffix; INSTALL_SUFFIX="$with_install_suffix"
7046 else
7047 INSTALL_SUFFIX=
7048
7049 fi
7050
7051 install_suffix="$INSTALL_SUFFIX"
7052
7053
7054
7055 # Check whether --with-malloc_conf was given.
7056 if test "${with_malloc_conf+set}" = set; then :
7057 withval=$with_malloc_conf; JEMALLOC_CONFIG_MALLOC_CONF="$with_malloc_conf"
7058 else
7059 JEMALLOC_CONFIG_MALLOC_CONF=""
7060
7061 fi
7062
7063 config_malloc_conf="$JEMALLOC_CONFIG_MALLOC_CONF"
7064 cat >>confdefs.h <<_ACEOF
7065 #define JEMALLOC_CONFIG_MALLOC_CONF "$config_malloc_conf"
7066 _ACEOF
7067
7068
7069 je_="je_"
7070
7071
7072 cfgoutputs_in="Makefile.in"
7073 cfgoutputs_in="${cfgoutputs_in} jemalloc.pc.in"
7074 cfgoutputs_in="${cfgoutputs_in} doc/html.xsl.in"
7075 cfgoutputs_in="${cfgoutputs_in} doc/manpages.xsl.in"
7076 cfgoutputs_in="${cfgoutputs_in} doc/jemalloc.xml.in"
7077 cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_macros.h.in"
7078 cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_protos.h.in"
7079 cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_typedefs.h.in"
7080 cfgoutputs_in="${cfgoutputs_in} include/jemalloc/internal/jemalloc_internal.h.in"
7081 cfgoutputs_in="${cfgoutputs_in} test/test.sh.in"
7082 cfgoutputs_in="${cfgoutputs_in} test/include/test/jemalloc_test.h.in"
7083
7084 cfgoutputs_out="Makefile"
7085 cfgoutputs_out="${cfgoutputs_out} jemalloc.pc"
7086 cfgoutputs_out="${cfgoutputs_out} doc/html.xsl"
7087 cfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl"
7088 cfgoutputs_out="${cfgoutputs_out} doc/jemalloc.xml"
7089 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_macros.h"
7090 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_protos.h"
7091 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_typedefs.h"
7092 cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_internal.h"
7093 cfgoutputs_out="${cfgoutputs_out} test/test.sh"
7094 cfgoutputs_out="${cfgoutputs_out} test/include/test/jemalloc_test.h"
7095
7096 cfgoutputs_tup="Makefile"
7097 cfgoutputs_tup="${cfgoutputs_tup} jemalloc.pc:jemalloc.pc.in"
7098 cfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in"
7099 cfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in"
7100 cfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc.xml:doc/jemalloc.xml.in"
7101 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_macros.h:include/jemalloc/jemalloc_macros.h.in"
7102 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_protos.h:include/jemalloc/jemalloc_protos.h.in"
7103 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_typedefs.h:include/jemalloc/jemalloc_typedefs.h.in"
7104 cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_internal.h"
7105 cfgoutputs_tup="${cfgoutputs_tup} test/test.sh:test/test.sh.in"
7106 cfgoutputs_tup="${cfgoutputs_tup} test/include/test/jemalloc_test.h:test/include/test/jemalloc_test.h.in"
7107
7108 cfghdrs_in="include/jemalloc/jemalloc_defs.h.in"
7109 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/jemalloc_internal_defs.h.in"
7110 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_namespace.sh"
7111 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_unnamespace.sh"
7112 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_symbols.txt"
7113 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_namespace.sh"
7114 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_unnamespace.sh"
7115 cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/size_classes.sh"
7116 cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_rename.sh"
7117 cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_mangle.sh"
7118 cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc.sh"
7119 cfghdrs_in="${cfghdrs_in} test/include/test/jemalloc_test_defs.h.in"
7120
7121 cfghdrs_out="include/jemalloc/jemalloc_defs.h"
7122 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc${install_suffix}.h"
7123 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_namespace.h"
7124 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_unnamespace.h"
7125 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_symbols.txt"
7126 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_namespace.h"
7127 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_unnamespace.h"
7128 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/size_classes.h"
7129 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_protos_jet.h"
7130 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_rename.h"
7131 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle.h"
7132 cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle_jet.h"
7133 cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/jemalloc_internal_defs.h"
7134 cfghdrs_out="${cfghdrs_out} test/include/test/jemalloc_test_defs.h"
7135
7136 cfghdrs_tup="include/jemalloc/jemalloc_defs.h:include/jemalloc/jemalloc_defs.h.in"
7137 cfghdrs_tup="${cfghdrs_tup} include/jemalloc/internal/jemalloc_internal_defs.h:include/jemalloc/internal/jemalloc_internal_defs.h.in"
7138 cfghdrs_tup="${cfghdrs_tup} test/include/test/jemalloc_test_defs.h:test/include/test/jemalloc_test_defs.h.in"
7139
7140 # Check whether --enable-cc-silence was given.
7141 if test "${enable_cc_silence+set}" = set; then :
7142 enableval=$enable_cc_silence; if test "x$enable_cc_silence" = "xno" ; then
7143 enable_cc_silence="0"
7144 else
7145 enable_cc_silence="1"
7146 fi
7147
7148 else
7149 enable_cc_silence="1"
7150
7151 fi
7152
7153 if test "x$enable_cc_silence" = "x1" ; then
7154 $as_echo "#define JEMALLOC_CC_SILENCE " >>confdefs.h
7155
7156 fi
7157
7158 # Check whether --enable-debug was given.
7159 if test "${enable_debug+set}" = set; then :
7160 enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then
7161 enable_debug="0"
7162 else
7163 enable_debug="1"
7164 fi
7165
7166 else
7167 enable_debug="0"
7168
7169 fi
7170
7171 if test "x$enable_debug" = "x1" ; then
7172 $as_echo "#define JEMALLOC_DEBUG " >>confdefs.h
7173
7174 fi
7175 if test "x$enable_debug" = "x1" ; then
7176 $as_echo "#define JEMALLOC_DEBUG " >>confdefs.h
7177
7178 enable_ivsalloc="1"
7179 fi
7180
7181
7182 # Check whether --enable-ivsalloc was given.
7183 if test "${enable_ivsalloc+set}" = set; then :
7184 enableval=$enable_ivsalloc; if test "x$enable_ivsalloc" = "xno" ; then
7185 enable_ivsalloc="0"
7186 else
7187 enable_ivsalloc="1"
7188 fi
7189
7190 else
7191 enable_ivsalloc="0"
7192
7193 fi
7194
7195 if test "x$enable_ivsalloc" = "x1" ; then
7196 $as_echo "#define JEMALLOC_IVSALLOC " >>confdefs.h
7197
7198 fi
7199
7200 if test "x$enable_debug" = "x0" ; then
7201 if test "x$GCC" = "xyes" ; then
7202
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
7204 $as_echo_n "checking whether compiler supports -O3... " >&6; }
7205 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7206 T_APPEND_V=-O3
7207 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7208 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7209 else
7210 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7211 fi
7212
7213
7214 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7215 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7216 else
7217 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7218 fi
7219
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7222
7223
7224 int
7225 main ()
7226 {
7227
7228 return 0;
7229
7230 ;
7231 return 0;
7232 }
7233 _ACEOF
7234 if ac_fn_c_try_compile "$LINENO"; then :
7235 je_cv_cflags_added=-O3
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7237 $as_echo "yes" >&6; }
7238 else
7239 je_cv_cflags_added=
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241 $as_echo "no" >&6; }
7242 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
7243
7244 fi
7245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7247 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7248 else
7249 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7250 fi
7251
7252
7253
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5
7255 $as_echo_n "checking whether compiler supports -funroll-loops... " >&6; }
7256 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7257 T_APPEND_V=-funroll-loops
7258 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7259 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7260 else
7261 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7262 fi
7263
7264
7265 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7266 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7267 else
7268 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7269 fi
7270
7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272 /* end confdefs.h. */
7273
7274
7275 int
7276 main ()
7277 {
7278
7279 return 0;
7280
7281 ;
7282 return 0;
7283 }
7284 _ACEOF
7285 if ac_fn_c_try_compile "$LINENO"; then :
7286 je_cv_cflags_added=-funroll-loops
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7288 $as_echo "yes" >&6; }
7289 else
7290 je_cv_cflags_added=
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7293 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
7294
7295 fi
7296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7297 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7298 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7299 else
7300 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7301 fi
7302
7303
7304 elif test "x$je_cv_msvc" = "xyes" ; then
7305
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
7307 $as_echo_n "checking whether compiler supports -O2... " >&6; }
7308 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7309 T_APPEND_V=-O2
7310 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7311 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7312 else
7313 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7314 fi
7315
7316
7317 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7318 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7319 else
7320 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7321 fi
7322
7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h. */
7325
7326
7327 int
7328 main ()
7329 {
7330
7331 return 0;
7332
7333 ;
7334 return 0;
7335 }
7336 _ACEOF
7337 if ac_fn_c_try_compile "$LINENO"; then :
7338 je_cv_cflags_added=-O2
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7340 $as_echo "yes" >&6; }
7341 else
7342 je_cv_cflags_added=
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7345 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
7346
7347 fi
7348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7349 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7350 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7351 else
7352 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7353 fi
7354
7355
7356 else
7357
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
7359 $as_echo_n "checking whether compiler supports -O... " >&6; }
7360 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7361 T_APPEND_V=-O
7362 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7363 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7364 else
7365 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7366 fi
7367
7368
7369 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7370 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7371 else
7372 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7373 fi
7374
7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h. */
7377
7378
7379 int
7380 main ()
7381 {
7382
7383 return 0;
7384
7385 ;
7386 return 0;
7387 }
7388 _ACEOF
7389 if ac_fn_c_try_compile "$LINENO"; then :
7390 je_cv_cflags_added=-O
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7392 $as_echo "yes" >&6; }
7393 else
7394 je_cv_cflags_added=
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396 $as_echo "no" >&6; }
7397 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
7398
7399 fi
7400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7401 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7402 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7403 else
7404 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7405 fi
7406
7407
7408 fi
7409 fi
7410
7411 # Check whether --enable-stats was given.
7412 if test "${enable_stats+set}" = set; then :
7413 enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then
7414 enable_stats="0"
7415 else
7416 enable_stats="1"
7417 fi
7418
7419 else
7420 enable_stats="1"
7421
7422 fi
7423
7424 if test "x$enable_stats" = "x1" ; then
7425 $as_echo "#define JEMALLOC_STATS " >>confdefs.h
7426
7427 fi
7428
7429
7430 # Check whether --enable-prof was given.
7431 if test "${enable_prof+set}" = set; then :
7432 enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then
7433 enable_prof="0"
7434 else
7435 enable_prof="1"
7436 fi
7437
7438 else
7439 enable_prof="0"
7440
7441 fi
7442
7443 if test "x$enable_prof" = "x1" ; then
7444 backtrace_method=""
7445 else
7446 backtrace_method="N/A"
7447 fi
7448
7449 # Check whether --enable-prof-libunwind was given.
7450 if test "${enable_prof_libunwind+set}" = set; then :
7451 enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then
7452 enable_prof_libunwind="0"
7453 else
7454 enable_prof_libunwind="1"
7455 fi
7456
7457 else
7458 enable_prof_libunwind="0"
7459
7460 fi
7461
7462
7463 # Check whether --with-static_libunwind was given.
7464 if test "${with_static_libunwind+set}" = set; then :
7465 withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then
7466 LUNWIND="-lunwind"
7467 else
7468 if test ! -f "$with_static_libunwind" ; then
7469 as_fn_error $? "Static libunwind not found: $with_static_libunwind" "$LINENO" 5
7470 fi
7471 LUNWIND="$with_static_libunwind"
7472 fi
7473 else
7474 LUNWIND="-lunwind"
7475
7476 fi
7477
7478 if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then
7479 for ac_header in libunwind.h
7480 do :
7481 ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
7482 if test "x$ac_cv_header_libunwind_h" = xyes; then :
7483 cat >>confdefs.h <<_ACEOF
7484 #define HAVE_LIBUNWIND_H 1
7485 _ACEOF
7486
7487 else
7488 enable_prof_libunwind="0"
7489 fi
7490
7491 done
7492
7493 if test "x$LUNWIND" = "x-lunwind" ; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unw_backtrace in -lunwind" >&5
7495 $as_echo_n "checking for unw_backtrace in -lunwind... " >&6; }
7496 if ${ac_cv_lib_unwind_unw_backtrace+:} false; then :
7497 $as_echo_n "(cached) " >&6
7498 else
7499 ac_check_lib_save_LIBS=$LIBS
7500 LIBS="-lunwind $LIBS"
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7503
7504 /* Override any GCC internal prototype to avoid an error.
7505 Use char because int might match the return type of a GCC
7506 builtin and then its argument prototype would still apply. */
7507 #ifdef __cplusplus
7508 extern "C"
7509 #endif
7510 char unw_backtrace ();
7511 int
7512 main ()
7513 {
7514 return unw_backtrace ();
7515 ;
7516 return 0;
7517 }
7518 _ACEOF
7519 if ac_fn_c_try_link "$LINENO"; then :
7520 ac_cv_lib_unwind_unw_backtrace=yes
7521 else
7522 ac_cv_lib_unwind_unw_backtrace=no
7523 fi
7524 rm -f core conftest.err conftest.$ac_objext \
7525 conftest$ac_exeext conftest.$ac_ext
7526 LIBS=$ac_check_lib_save_LIBS
7527 fi
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_unw_backtrace" >&5
7529 $as_echo "$ac_cv_lib_unwind_unw_backtrace" >&6; }
7530 if test "x$ac_cv_lib_unwind_unw_backtrace" = xyes; then :
7531 T_APPEND_V=$LUNWIND
7532 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7533 LIBS="${LIBS}${T_APPEND_V}"
7534 else
7535 LIBS="${LIBS} ${T_APPEND_V}"
7536 fi
7537
7538
7539 else
7540 enable_prof_libunwind="0"
7541 fi
7542
7543 else
7544 T_APPEND_V=$LUNWIND
7545 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7546 LIBS="${LIBS}${T_APPEND_V}"
7547 else
7548 LIBS="${LIBS} ${T_APPEND_V}"
7549 fi
7550
7551
7552 fi
7553 if test "x${enable_prof_libunwind}" = "x1" ; then
7554 backtrace_method="libunwind"
7555 $as_echo "#define JEMALLOC_PROF_LIBUNWIND " >>confdefs.h
7556
7557 fi
7558 fi
7559
7560 # Check whether --enable-prof-libgcc was given.
7561 if test "${enable_prof_libgcc+set}" = set; then :
7562 enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then
7563 enable_prof_libgcc="0"
7564 else
7565 enable_prof_libgcc="1"
7566 fi
7567
7568 else
7569 enable_prof_libgcc="1"
7570
7571 fi
7572
7573 if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \
7574 -a "x$GCC" = "xyes" ; then
7575 for ac_header in unwind.h
7576 do :
7577 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
7578 if test "x$ac_cv_header_unwind_h" = xyes; then :
7579 cat >>confdefs.h <<_ACEOF
7580 #define HAVE_UNWIND_H 1
7581 _ACEOF
7582
7583 else
7584 enable_prof_libgcc="0"
7585 fi
7586
7587 done
7588
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5
7590 $as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; }
7591 if ${ac_cv_lib_gcc__Unwind_Backtrace+:} false; then :
7592 $as_echo_n "(cached) " >&6
7593 else
7594 ac_check_lib_save_LIBS=$LIBS
7595 LIBS="-lgcc $LIBS"
7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h. */
7598
7599 /* Override any GCC internal prototype to avoid an error.
7600 Use char because int might match the return type of a GCC
7601 builtin and then its argument prototype would still apply. */
7602 #ifdef __cplusplus
7603 extern "C"
7604 #endif
7605 char _Unwind_Backtrace ();
7606 int
7607 main ()
7608 {
7609 return _Unwind_Backtrace ();
7610 ;
7611 return 0;
7612 }
7613 _ACEOF
7614 if ac_fn_c_try_link "$LINENO"; then :
7615 ac_cv_lib_gcc__Unwind_Backtrace=yes
7616 else
7617 ac_cv_lib_gcc__Unwind_Backtrace=no
7618 fi
7619 rm -f core conftest.err conftest.$ac_objext \
7620 conftest$ac_exeext conftest.$ac_ext
7621 LIBS=$ac_check_lib_save_LIBS
7622 fi
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5
7624 $as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; }
7625 if test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes; then :
7626 T_APPEND_V=-lgcc
7627 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7628 LIBS="${LIBS}${T_APPEND_V}"
7629 else
7630 LIBS="${LIBS} ${T_APPEND_V}"
7631 fi
7632
7633
7634 else
7635 enable_prof_libgcc="0"
7636 fi
7637
7638 if test "x${enable_prof_libgcc}" = "x1" ; then
7639 backtrace_method="libgcc"
7640 $as_echo "#define JEMALLOC_PROF_LIBGCC " >>confdefs.h
7641
7642 fi
7643 else
7644 enable_prof_libgcc="0"
7645 fi
7646
7647 # Check whether --enable-prof-gcc was given.
7648 if test "${enable_prof_gcc+set}" = set; then :
7649 enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then
7650 enable_prof_gcc="0"
7651 else
7652 enable_prof_gcc="1"
7653 fi
7654
7655 else
7656 enable_prof_gcc="1"
7657
7658 fi
7659
7660 if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \
7661 -a "x$GCC" = "xyes" ; then
7662
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fno-omit-frame-pointer" >&5
7664 $as_echo_n "checking whether compiler supports -fno-omit-frame-pointer... " >&6; }
7665 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7666 T_APPEND_V=-fno-omit-frame-pointer
7667 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7668 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7669 else
7670 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7671 fi
7672
7673
7674 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7675 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7676 else
7677 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7678 fi
7679
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7682
7683
7684 int
7685 main ()
7686 {
7687
7688 return 0;
7689
7690 ;
7691 return 0;
7692 }
7693 _ACEOF
7694 if ac_fn_c_try_compile "$LINENO"; then :
7695 je_cv_cflags_added=-fno-omit-frame-pointer
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7697 $as_echo "yes" >&6; }
7698 else
7699 je_cv_cflags_added=
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 $as_echo "no" >&6; }
7702 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
7703
7704 fi
7705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7706 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7707 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7708 else
7709 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7710 fi
7711
7712
7713 backtrace_method="gcc intrinsics"
7714 $as_echo "#define JEMALLOC_PROF_GCC " >>confdefs.h
7715
7716 else
7717 enable_prof_gcc="0"
7718 fi
7719
7720 if test "x$backtrace_method" = "x" ; then
7721 backtrace_method="none (disabling profiling)"
7722 enable_prof="0"
7723 fi
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5
7725 $as_echo_n "checking configured backtracing method... " >&6; }
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5
7727 $as_echo "$backtrace_method" >&6; }
7728 if test "x$enable_prof" = "x1" ; then
7729 T_APPEND_V=$LM
7730 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7731 LIBS="${LIBS}${T_APPEND_V}"
7732 else
7733 LIBS="${LIBS} ${T_APPEND_V}"
7734 fi
7735
7736
7737
7738 $as_echo "#define JEMALLOC_PROF " >>confdefs.h
7739
7740 fi
7741
7742
7743 # Check whether --enable-tcache was given.
7744 if test "${enable_tcache+set}" = set; then :
7745 enableval=$enable_tcache; if test "x$enable_tcache" = "xno" ; then
7746 enable_tcache="0"
7747 else
7748 enable_tcache="1"
7749 fi
7750
7751 else
7752 enable_tcache="1"
7753
7754 fi
7755
7756 if test "x$enable_tcache" = "x1" ; then
7757 $as_echo "#define JEMALLOC_TCACHE " >>confdefs.h
7758
7759 fi
7760
7761
7762 if test "x${maps_coalesce}" = "x1" ; then
7763 $as_echo "#define JEMALLOC_MAPS_COALESCE " >>confdefs.h
7764
7765 fi
7766
7767 # Check whether --enable-munmap was given.
7768 if test "${enable_munmap+set}" = set; then :
7769 enableval=$enable_munmap; if test "x$enable_munmap" = "xno" ; then
7770 enable_munmap="0"
7771 else
7772 enable_munmap="1"
7773 fi
7774
7775 else
7776 enable_munmap="${default_munmap}"
7777
7778 fi
7779
7780 if test "x$enable_munmap" = "x1" ; then
7781 $as_echo "#define JEMALLOC_MUNMAP " >>confdefs.h
7782
7783 fi
7784
7785
7786 have_dss="1"
7787 ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
7788 if test "x$ac_cv_func_sbrk" = xyes; then :
7789 have_sbrk="1"
7790 else
7791 have_sbrk="0"
7792 fi
7793
7794 if test "x$have_sbrk" = "x1" ; then
7795 if test "x$sbrk_deprecated" = "x1" ; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling dss allocation because sbrk is deprecated" >&5
7797 $as_echo "Disabling dss allocation because sbrk is deprecated" >&6; }
7798 have_dss="0"
7799 fi
7800 else
7801 have_dss="0"
7802 fi
7803
7804 if test "x$have_dss" = "x1" ; then
7805 $as_echo "#define JEMALLOC_DSS " >>confdefs.h
7806
7807 fi
7808
7809 # Check whether --enable-fill was given.
7810 if test "${enable_fill+set}" = set; then :
7811 enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then
7812 enable_fill="0"
7813 else
7814 enable_fill="1"
7815 fi
7816
7817 else
7818 enable_fill="1"
7819
7820 fi
7821
7822 if test "x$enable_fill" = "x1" ; then
7823 $as_echo "#define JEMALLOC_FILL " >>confdefs.h
7824
7825 fi
7826
7827
7828 # Check whether --enable-utrace was given.
7829 if test "${enable_utrace+set}" = set; then :
7830 enableval=$enable_utrace; if test "x$enable_utrace" = "xno" ; then
7831 enable_utrace="0"
7832 else
7833 enable_utrace="1"
7834 fi
7835
7836 else
7837 enable_utrace="0"
7838
7839 fi
7840
7841
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5
7843 $as_echo_n "checking whether utrace(2) is compilable... " >&6; }
7844 if ${je_cv_utrace+:} false; then :
7845 $as_echo_n "(cached) " >&6
7846 else
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7849
7850 #include <sys/types.h>
7851 #include <sys/param.h>
7852 #include <sys/time.h>
7853 #include <sys/uio.h>
7854 #include <sys/ktrace.h>
7855
7856 int
7857 main ()
7858 {
7859
7860 utrace((void *)0, 0);
7861
7862 ;
7863 return 0;
7864 }
7865 _ACEOF
7866 if ac_fn_c_try_link "$LINENO"; then :
7867 je_cv_utrace=yes
7868 else
7869 je_cv_utrace=no
7870 fi
7871 rm -f core conftest.err conftest.$ac_objext \
7872 conftest$ac_exeext conftest.$ac_ext
7873 fi
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5
7875 $as_echo "$je_cv_utrace" >&6; }
7876
7877 if test "x${je_cv_utrace}" = "xno" ; then
7878 enable_utrace="0"
7879 fi
7880 if test "x$enable_utrace" = "x1" ; then
7881 $as_echo "#define JEMALLOC_UTRACE " >>confdefs.h
7882
7883 fi
7884
7885
7886 # Check whether --enable-valgrind was given.
7887 if test "${enable_valgrind+set}" = set; then :
7888 enableval=$enable_valgrind; if test "x$enable_valgrind" = "xno" ; then
7889 enable_valgrind="0"
7890 else
7891 enable_valgrind="1"
7892 fi
7893
7894 else
7895 enable_valgrind="1"
7896
7897 fi
7898
7899 if test "x$enable_valgrind" = "x1" ; then
7900
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether valgrind is compilable" >&5
7902 $as_echo_n "checking whether valgrind is compilable... " >&6; }
7903 if ${je_cv_valgrind+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7908
7909 #include <valgrind/valgrind.h>
7910 #include <valgrind/memcheck.h>
7911
7912 #if !defined(VALGRIND_RESIZEINPLACE_BLOCK)
7913 # error "Incompatible Valgrind version"
7914 #endif
7915
7916 int
7917 main ()
7918 {
7919
7920 ;
7921 return 0;
7922 }
7923 _ACEOF
7924 if ac_fn_c_try_link "$LINENO"; then :
7925 je_cv_valgrind=yes
7926 else
7927 je_cv_valgrind=no
7928 fi
7929 rm -f core conftest.err conftest.$ac_objext \
7930 conftest$ac_exeext conftest.$ac_ext
7931 fi
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_valgrind" >&5
7933 $as_echo "$je_cv_valgrind" >&6; }
7934
7935 if test "x${je_cv_valgrind}" = "xno" ; then
7936 enable_valgrind="0"
7937 fi
7938 if test "x$enable_valgrind" = "x1" ; then
7939 $as_echo "#define JEMALLOC_VALGRIND " >>confdefs.h
7940
7941 fi
7942 fi
7943
7944
7945 # Check whether --enable-xmalloc was given.
7946 if test "${enable_xmalloc+set}" = set; then :
7947 enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then
7948 enable_xmalloc="0"
7949 else
7950 enable_xmalloc="1"
7951 fi
7952
7953 else
7954 enable_xmalloc="0"
7955
7956 fi
7957
7958 if test "x$enable_xmalloc" = "x1" ; then
7959 $as_echo "#define JEMALLOC_XMALLOC " >>confdefs.h
7960
7961 fi
7962
7963
7964 # Check whether --enable-cache-oblivious was given.
7965 if test "${enable_cache_oblivious+set}" = set; then :
7966 enableval=$enable_cache_oblivious; if test "x$enable_cache_oblivious" = "xno" ; then
7967 enable_cache_oblivious="0"
7968 else
7969 enable_cache_oblivious="1"
7970 fi
7971
7972 else
7973 enable_cache_oblivious="1"
7974
7975 fi
7976
7977 if test "x$enable_cache_oblivious" = "x1" ; then
7978 $as_echo "#define JEMALLOC_CACHE_OBLIVIOUS " >>confdefs.h
7979
7980 fi
7981
7982
7983
7984
7985
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_unreachable is compilable" >&5
7987 $as_echo_n "checking whether a program using __builtin_unreachable is compilable... " >&6; }
7988 if ${je_cv_gcc_builtin_unreachable+:} false; then :
7989 $as_echo_n "(cached) " >&6
7990 else
7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7993
7994 void foo (void) {
7995 __builtin_unreachable();
7996 }
7997
7998 int
7999 main ()
8000 {
8001
8002 {
8003 foo();
8004 }
8005
8006 ;
8007 return 0;
8008 }
8009 _ACEOF
8010 if ac_fn_c_try_link "$LINENO"; then :
8011 je_cv_gcc_builtin_unreachable=yes
8012 else
8013 je_cv_gcc_builtin_unreachable=no
8014 fi
8015 rm -f core conftest.err conftest.$ac_objext \
8016 conftest$ac_exeext conftest.$ac_ext
8017 fi
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_unreachable" >&5
8019 $as_echo "$je_cv_gcc_builtin_unreachable" >&6; }
8020
8021 if test "x${je_cv_gcc_builtin_unreachable}" = "xyes" ; then
8022 $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable" >>confdefs.h
8023
8024 else
8025 $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE abort" >>confdefs.h
8026
8027 fi
8028
8029
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_ffsl is compilable" >&5
8031 $as_echo_n "checking whether a program using __builtin_ffsl is compilable... " >&6; }
8032 if ${je_cv_gcc_builtin_ffsl+:} false; then :
8033 $as_echo_n "(cached) " >&6
8034 else
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8037
8038 #include <stdio.h>
8039 #include <strings.h>
8040 #include <string.h>
8041
8042 int
8043 main ()
8044 {
8045
8046 {
8047 int rv = __builtin_ffsl(0x08);
8048 printf("%d\n", rv);
8049 }
8050
8051 ;
8052 return 0;
8053 }
8054 _ACEOF
8055 if ac_fn_c_try_link "$LINENO"; then :
8056 je_cv_gcc_builtin_ffsl=yes
8057 else
8058 je_cv_gcc_builtin_ffsl=no
8059 fi
8060 rm -f core conftest.err conftest.$ac_objext \
8061 conftest$ac_exeext conftest.$ac_ext
8062 fi
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_ffsl" >&5
8064 $as_echo "$je_cv_gcc_builtin_ffsl" >&6; }
8065
8066 if test "x${je_cv_gcc_builtin_ffsl}" = "xyes" ; then
8067 $as_echo "#define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll" >>confdefs.h
8068
8069 $as_echo "#define JEMALLOC_INTERNAL_FFSL __builtin_ffsl" >>confdefs.h
8070
8071 $as_echo "#define JEMALLOC_INTERNAL_FFS __builtin_ffs" >>confdefs.h
8072
8073 else
8074
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5
8076 $as_echo_n "checking whether a program using ffsl is compilable... " >&6; }
8077 if ${je_cv_function_ffsl+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081 /* end confdefs.h. */
8082
8083 #include <stdio.h>
8084 #include <strings.h>
8085 #include <string.h>
8086
8087 int
8088 main ()
8089 {
8090
8091 {
8092 int rv = ffsl(0x08);
8093 printf("%d\n", rv);
8094 }
8095
8096 ;
8097 return 0;
8098 }
8099 _ACEOF
8100 if ac_fn_c_try_link "$LINENO"; then :
8101 je_cv_function_ffsl=yes
8102 else
8103 je_cv_function_ffsl=no
8104 fi
8105 rm -f core conftest.err conftest.$ac_objext \
8106 conftest$ac_exeext conftest.$ac_ext
8107 fi
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5
8109 $as_echo "$je_cv_function_ffsl" >&6; }
8110
8111 if test "x${je_cv_function_ffsl}" = "xyes" ; then
8112 $as_echo "#define JEMALLOC_INTERNAL_FFSLL ffsll" >>confdefs.h
8113
8114 $as_echo "#define JEMALLOC_INTERNAL_FFSL ffsl" >>confdefs.h
8115
8116 $as_echo "#define JEMALLOC_INTERNAL_FFS ffs" >>confdefs.h
8117
8118 else
8119 as_fn_error $? "Cannot build without ffsl(3) or __builtin_ffsl()" "$LINENO" 5
8120 fi
8121 fi
8122
8123
8124 # Check whether --with-lg_tiny_min was given.
8125 if test "${with_lg_tiny_min+set}" = set; then :
8126 withval=$with_lg_tiny_min; LG_TINY_MIN="$with_lg_tiny_min"
8127 else
8128 LG_TINY_MIN="3"
8129 fi
8130
8131 cat >>confdefs.h <<_ACEOF
8132 #define LG_TINY_MIN $LG_TINY_MIN
8133 _ACEOF
8134
8135
8136
8137 # Check whether --with-lg_quantum was given.
8138 if test "${with_lg_quantum+set}" = set; then :
8139 withval=$with_lg_quantum; LG_QUANTA="$with_lg_quantum"
8140 else
8141 LG_QUANTA="3 4"
8142 fi
8143
8144 if test "x$with_lg_quantum" != "x" ; then
8145 cat >>confdefs.h <<_ACEOF
8146 #define LG_QUANTUM $with_lg_quantum
8147 _ACEOF
8148
8149 fi
8150
8151
8152 # Check whether --with-lg_page was given.
8153 if test "${with_lg_page+set}" = set; then :
8154 withval=$with_lg_page; LG_PAGE="$with_lg_page"
8155 else
8156 LG_PAGE="detect"
8157 fi
8158
8159 if test "x$LG_PAGE" = "xdetect"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LG_PAGE" >&5
8161 $as_echo_n "checking LG_PAGE... " >&6; }
8162 if ${je_cv_lg_page+:} false; then :
8163 $as_echo_n "(cached) " >&6
8164 else
8165 if test "$cross_compiling" = yes; then :
8166 je_cv_lg_page=12
8167 else
8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8170
8171 #include <strings.h>
8172 #ifdef _WIN32
8173 #include <windows.h>
8174 #else
8175 #include <unistd.h>
8176 #endif
8177 #include <stdio.h>
8178
8179 int
8180 main ()
8181 {
8182
8183 int result;
8184 FILE *f;
8185
8186 #ifdef _WIN32
8187 SYSTEM_INFO si;
8188 GetSystemInfo(&si);
8189 result = si.dwPageSize;
8190 #else
8191 result = sysconf(_SC_PAGESIZE);
8192 #endif
8193 if (result == -1) {
8194 return 1;
8195 }
8196 result = JEMALLOC_INTERNAL_FFSL(result) - 1;
8197
8198 f = fopen("conftest.out", "w");
8199 if (f == NULL) {
8200 return 1;
8201 }
8202 fprintf(f, "%d", result);
8203 fclose(f);
8204
8205 return 0;
8206
8207 ;
8208 return 0;
8209 }
8210 _ACEOF
8211 if ac_fn_c_try_run "$LINENO"; then :
8212 je_cv_lg_page=`cat conftest.out`
8213 else
8214 je_cv_lg_page=undefined
8215 fi
8216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8217 conftest.$ac_objext conftest.beam conftest.$ac_ext
8218 fi
8219
8220 fi
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_page" >&5
8222 $as_echo "$je_cv_lg_page" >&6; }
8223 fi
8224 if test "x${je_cv_lg_page}" != "x" ; then
8225 LG_PAGE="${je_cv_lg_page}"
8226 fi
8227 if test "x${LG_PAGE}" != "xundefined" ; then
8228 cat >>confdefs.h <<_ACEOF
8229 #define LG_PAGE $LG_PAGE
8230 _ACEOF
8231
8232 else
8233 as_fn_error $? "cannot determine value for LG_PAGE" "$LINENO" 5
8234 fi
8235
8236
8237 # Check whether --with-lg_page_sizes was given.
8238 if test "${with_lg_page_sizes+set}" = set; then :
8239 withval=$with_lg_page_sizes; LG_PAGE_SIZES="$with_lg_page_sizes"
8240 else
8241 LG_PAGE_SIZES="$LG_PAGE"
8242 fi
8243
8244
8245
8246 # Check whether --with-lg_size_class_group was given.
8247 if test "${with_lg_size_class_group+set}" = set; then :
8248 withval=$with_lg_size_class_group; LG_SIZE_CLASS_GROUP="$with_lg_size_class_group"
8249 else
8250 LG_SIZE_CLASS_GROUP="2"
8251 fi
8252
8253
8254
8255
8256 # Check whether --with-version was given.
8257 if test "${with_version+set}" = set; then :
8258 withval=$with_version;
8259 echo "${with_version}" | grep '^[0-9]\+\.[0-9]\+\.[0-9]\+-[0-9]\+-g[0-9a-f]\+$' 2>&1 1>/dev/null
8260 if test $? -ne 0 ; then
8261 as_fn_error $? "${with_version} does not match <major>.<minor>.<bugfix>-<nrev>-g<gid>" "$LINENO" 5
8262 fi
8263 echo "$with_version" > "${objroot}VERSION"
8264
8265 else
8266
8267 if test "x`test ! \"${srcroot}\" && cd \"${srcroot}\"; git rev-parse --is-inside-work-tree 2>/dev/null`" = "xtrue" ; then
8268 for pattern in '[0-9].[0-9].[0-9]' '[0-9].[0-9].[0-9][0-9]' \
8269 '[0-9].[0-9][0-9].[0-9]' '[0-9].[0-9][0-9].[0-9][0-9]' \
8270 '[0-9][0-9].[0-9].[0-9]' '[0-9][0-9].[0-9].[0-9][0-9]' \
8271 '[0-9][0-9].[0-9][0-9].[0-9]' \
8272 '[0-9][0-9].[0-9][0-9].[0-9][0-9]'; do
8273 (test ! "${srcroot}" && cd "${srcroot}"; git describe --long --abbrev=40 --match="${pattern}") > "${objroot}VERSION.tmp" 2>/dev/null
8274 if test $? -eq 0 ; then
8275 mv "${objroot}VERSION.tmp" "${objroot}VERSION"
8276 break
8277 fi
8278 done
8279 fi
8280 rm -f "${objroot}VERSION.tmp"
8281
8282 fi
8283
8284
8285 if test ! -e "${objroot}VERSION" ; then
8286 if test ! -e "${srcroot}VERSION" ; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Missing VERSION file, and unable to generate it; creating bogus VERSION" >&5
8288 $as_echo "Missing VERSION file, and unable to generate it; creating bogus VERSION" >&6; }
8289 echo "0.0.0-0-g0000000000000000000000000000000000000000" > "${objroot}VERSION"
8290 else
8291 cp ${srcroot}VERSION ${objroot}VERSION
8292 fi
8293 fi
8294 jemalloc_version=`cat "${objroot}VERSION"`
8295 jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'`
8296 jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'`
8297 jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'`
8298 jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'`
8299 jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'`
8300
8301
8302
8303
8304
8305
8306
8307
8308 if test "x$abi" != "xpecoff" ; then
8309 for ac_header in pthread.h
8310 do :
8311 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8312 if test "x$ac_cv_header_pthread_h" = xyes; then :
8313 cat >>confdefs.h <<_ACEOF
8314 #define HAVE_PTHREAD_H 1
8315 _ACEOF
8316
8317 else
8318 as_fn_error $? "pthread.h is missing" "$LINENO" 5
8319 fi
8320
8321 done
8322
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8324 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8325 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 ac_check_lib_save_LIBS=$LIBS
8329 LIBS="-lpthread $LIBS"
8330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h. */
8332
8333 /* Override any GCC internal prototype to avoid an error.
8334 Use char because int might match the return type of a GCC
8335 builtin and then its argument prototype would still apply. */
8336 #ifdef __cplusplus
8337 extern "C"
8338 #endif
8339 char pthread_create ();
8340 int
8341 main ()
8342 {
8343 return pthread_create ();
8344 ;
8345 return 0;
8346 }
8347 _ACEOF
8348 if ac_fn_c_try_link "$LINENO"; then :
8349 ac_cv_lib_pthread_pthread_create=yes
8350 else
8351 ac_cv_lib_pthread_pthread_create=no
8352 fi
8353 rm -f core conftest.err conftest.$ac_objext \
8354 conftest$ac_exeext conftest.$ac_ext
8355 LIBS=$ac_check_lib_save_LIBS
8356 fi
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8358 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8359 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8360 T_APPEND_V=-lpthread
8361 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8362 LIBS="${LIBS}${T_APPEND_V}"
8363 else
8364 LIBS="${LIBS} ${T_APPEND_V}"
8365 fi
8366
8367
8368 else
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
8370 $as_echo_n "checking for library containing pthread_create... " >&6; }
8371 if ${ac_cv_search_pthread_create+:} false; then :
8372 $as_echo_n "(cached) " >&6
8373 else
8374 ac_func_search_save_LIBS=$LIBS
8375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8376 /* end confdefs.h. */
8377
8378 /* Override any GCC internal prototype to avoid an error.
8379 Use char because int might match the return type of a GCC
8380 builtin and then its argument prototype would still apply. */
8381 #ifdef __cplusplus
8382 extern "C"
8383 #endif
8384 char pthread_create ();
8385 int
8386 main ()
8387 {
8388 return pthread_create ();
8389 ;
8390 return 0;
8391 }
8392 _ACEOF
8393 for ac_lib in '' ; do
8394 if test -z "$ac_lib"; then
8395 ac_res="none required"
8396 else
8397 ac_res=-l$ac_lib
8398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8399 fi
8400 if ac_fn_c_try_link "$LINENO"; then :
8401 ac_cv_search_pthread_create=$ac_res
8402 fi
8403 rm -f core conftest.err conftest.$ac_objext \
8404 conftest$ac_exeext
8405 if ${ac_cv_search_pthread_create+:} false; then :
8406 break
8407 fi
8408 done
8409 if ${ac_cv_search_pthread_create+:} false; then :
8410
8411 else
8412 ac_cv_search_pthread_create=no
8413 fi
8414 rm conftest.$ac_ext
8415 LIBS=$ac_func_search_save_LIBS
8416 fi
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
8418 $as_echo "$ac_cv_search_pthread_create" >&6; }
8419 ac_res=$ac_cv_search_pthread_create
8420 if test "$ac_res" != no; then :
8421 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8422
8423 else
8424 as_fn_error $? "libpthread is missing" "$LINENO" 5
8425 fi
8426
8427 fi
8428
8429
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_atfork(3) is compilable" >&5
8431 $as_echo_n "checking whether pthread_atfork(3) is compilable... " >&6; }
8432 if ${je_cv_pthread_atfork+:} false; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437
8438 #include <pthread.h>
8439
8440 int
8441 main ()
8442 {
8443
8444 pthread_atfork((void *)0, (void *)0, (void *)0);
8445
8446 ;
8447 return 0;
8448 }
8449 _ACEOF
8450 if ac_fn_c_try_link "$LINENO"; then :
8451 je_cv_pthread_atfork=yes
8452 else
8453 je_cv_pthread_atfork=no
8454 fi
8455 rm -f core conftest.err conftest.$ac_objext \
8456 conftest$ac_exeext conftest.$ac_ext
8457 fi
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_atfork" >&5
8459 $as_echo "$je_cv_pthread_atfork" >&6; }
8460
8461 if test "x${je_cv_pthread_atfork}" = "xyes" ; then
8462 $as_echo "#define JEMALLOC_HAVE_PTHREAD_ATFORK " >>confdefs.h
8463
8464 fi
8465 fi
8466
8467 T_APPEND_V=-D_REENTRANT
8468 if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8469 CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
8470 else
8471 CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
8472 fi
8473
8474
8475
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
8477 $as_echo_n "checking for library containing clock_gettime... " >&6; }
8478 if ${ac_cv_search_clock_gettime+:} false; then :
8479 $as_echo_n "(cached) " >&6
8480 else
8481 ac_func_search_save_LIBS=$LIBS
8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8484
8485 /* Override any GCC internal prototype to avoid an error.
8486 Use char because int might match the return type of a GCC
8487 builtin and then its argument prototype would still apply. */
8488 #ifdef __cplusplus
8489 extern "C"
8490 #endif
8491 char clock_gettime ();
8492 int
8493 main ()
8494 {
8495 return clock_gettime ();
8496 ;
8497 return 0;
8498 }
8499 _ACEOF
8500 for ac_lib in '' rt; do
8501 if test -z "$ac_lib"; then
8502 ac_res="none required"
8503 else
8504 ac_res=-l$ac_lib
8505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8506 fi
8507 if ac_fn_c_try_link "$LINENO"; then :
8508 ac_cv_search_clock_gettime=$ac_res
8509 fi
8510 rm -f core conftest.err conftest.$ac_objext \
8511 conftest$ac_exeext
8512 if ${ac_cv_search_clock_gettime+:} false; then :
8513 break
8514 fi
8515 done
8516 if ${ac_cv_search_clock_gettime+:} false; then :
8517
8518 else
8519 ac_cv_search_clock_gettime=no
8520 fi
8521 rm conftest.$ac_ext
8522 LIBS=$ac_func_search_save_LIBS
8523 fi
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
8525 $as_echo "$ac_cv_search_clock_gettime" >&6; }
8526 ac_res=$ac_cv_search_clock_gettime
8527 if test "$ac_res" != no; then :
8528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8529
8530 fi
8531
8532
8533 if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
8534 if test "$ac_cv_search_clock_gettime" != "-lrt"; then
8535 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8536
8537
8538 unset ac_cv_search_clock_gettime
8539
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -dynamic" >&5
8541 $as_echo_n "checking whether compiler supports -dynamic... " >&6; }
8542 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8543 T_APPEND_V=-dynamic
8544 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8545 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8546 else
8547 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8548 fi
8549
8550
8551 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8552 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8553 else
8554 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8555 fi
8556
8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8559
8560
8561 int
8562 main ()
8563 {
8564
8565 return 0;
8566
8567 ;
8568 return 0;
8569 }
8570 _ACEOF
8571 if ac_fn_c_try_compile "$LINENO"; then :
8572 je_cv_cflags_added=-dynamic
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8574 $as_echo "yes" >&6; }
8575 else
8576 je_cv_cflags_added=
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578 $as_echo "no" >&6; }
8579 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8580
8581 fi
8582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8583 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8584 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8585 else
8586 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8587 fi
8588
8589
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
8591 $as_echo_n "checking for library containing clock_gettime... " >&6; }
8592 if ${ac_cv_search_clock_gettime+:} false; then :
8593 $as_echo_n "(cached) " >&6
8594 else
8595 ac_func_search_save_LIBS=$LIBS
8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8598
8599 /* Override any GCC internal prototype to avoid an error.
8600 Use char because int might match the return type of a GCC
8601 builtin and then its argument prototype would still apply. */
8602 #ifdef __cplusplus
8603 extern "C"
8604 #endif
8605 char clock_gettime ();
8606 int
8607 main ()
8608 {
8609 return clock_gettime ();
8610 ;
8611 return 0;
8612 }
8613 _ACEOF
8614 for ac_lib in '' rt; do
8615 if test -z "$ac_lib"; then
8616 ac_res="none required"
8617 else
8618 ac_res=-l$ac_lib
8619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8620 fi
8621 if ac_fn_c_try_link "$LINENO"; then :
8622 ac_cv_search_clock_gettime=$ac_res
8623 fi
8624 rm -f core conftest.err conftest.$ac_objext \
8625 conftest$ac_exeext
8626 if ${ac_cv_search_clock_gettime+:} false; then :
8627 break
8628 fi
8629 done
8630 if ${ac_cv_search_clock_gettime+:} false; then :
8631
8632 else
8633 ac_cv_search_clock_gettime=no
8634 fi
8635 rm conftest.$ac_ext
8636 LIBS=$ac_func_search_save_LIBS
8637 fi
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
8639 $as_echo "$ac_cv_search_clock_gettime" >&6; }
8640 ac_res=$ac_cv_search_clock_gettime
8641 if test "$ac_res" != no; then :
8642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8643
8644 fi
8645
8646
8647 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8648 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8649 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8650 else
8651 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8652 fi
8653
8654
8655 fi
8656 fi
8657
8658
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable" >&5
8660 $as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... " >&6; }
8661 if ${je_cv_clock_monotonic_coarse+:} false; then :
8662 $as_echo_n "(cached) " >&6
8663 else
8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8666
8667 #include <time.h>
8668
8669 int
8670 main ()
8671 {
8672
8673 struct timespec ts;
8674
8675 clock_gettime(CLOCK_MONOTONIC_COARSE, &ts);
8676
8677 ;
8678 return 0;
8679 }
8680 _ACEOF
8681 if ac_fn_c_try_link "$LINENO"; then :
8682 je_cv_clock_monotonic_coarse=yes
8683 else
8684 je_cv_clock_monotonic_coarse=no
8685 fi
8686 rm -f core conftest.err conftest.$ac_objext \
8687 conftest$ac_exeext conftest.$ac_ext
8688 fi
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic_coarse" >&5
8690 $as_echo "$je_cv_clock_monotonic_coarse" >&6; }
8691
8692 if test "x${je_cv_clock_monotonic_coarse}" = "xyes" ; then
8693 $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1" >>confdefs.h
8694
8695 fi
8696
8697
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable" >&5
8699 $as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... " >&6; }
8700 if ${je_cv_clock_monotonic+:} false; then :
8701 $as_echo_n "(cached) " >&6
8702 else
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8705
8706 #include <unistd.h>
8707 #include <time.h>
8708
8709 int
8710 main ()
8711 {
8712
8713 struct timespec ts;
8714
8715 clock_gettime(CLOCK_MONOTONIC, &ts);
8716 #if !defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK < 0
8717 # error _POSIX_MONOTONIC_CLOCK missing/invalid
8718 #endif
8719
8720 ;
8721 return 0;
8722 }
8723 _ACEOF
8724 if ac_fn_c_try_link "$LINENO"; then :
8725 je_cv_clock_monotonic=yes
8726 else
8727 je_cv_clock_monotonic=no
8728 fi
8729 rm -f core conftest.err conftest.$ac_objext \
8730 conftest$ac_exeext conftest.$ac_ext
8731 fi
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic" >&5
8733 $as_echo "$je_cv_clock_monotonic" >&6; }
8734
8735 if test "x${je_cv_clock_monotonic}" = "xyes" ; then
8736 $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
8737
8738 fi
8739
8740
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mach_absolute_time() is compilable" >&5
8742 $as_echo_n "checking whether mach_absolute_time() is compilable... " >&6; }
8743 if ${je_cv_mach_absolute_time+:} false; then :
8744 $as_echo_n "(cached) " >&6
8745 else
8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747 /* end confdefs.h. */
8748
8749 #include <mach/mach_time.h>
8750
8751 int
8752 main ()
8753 {
8754
8755 mach_absolute_time();
8756
8757 ;
8758 return 0;
8759 }
8760 _ACEOF
8761 if ac_fn_c_try_link "$LINENO"; then :
8762 je_cv_mach_absolute_time=yes
8763 else
8764 je_cv_mach_absolute_time=no
8765 fi
8766 rm -f core conftest.err conftest.$ac_objext \
8767 conftest$ac_exeext conftest.$ac_ext
8768 fi
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mach_absolute_time" >&5
8770 $as_echo "$je_cv_mach_absolute_time" >&6; }
8771
8772 if test "x${je_cv_mach_absolute_time}" = "xyes" ; then
8773 $as_echo "#define JEMALLOC_HAVE_MACH_ABSOLUTE_TIME 1" >>confdefs.h
8774
8775 fi
8776
8777 # Check whether --enable-syscall was given.
8778 if test "${enable_syscall+set}" = set; then :
8779 enableval=$enable_syscall; if test "x$enable_syscall" = "xno" ; then
8780 enable_syscall="0"
8781 else
8782 enable_syscall="1"
8783 fi
8784
8785 else
8786 enable_syscall="1"
8787
8788 fi
8789
8790 if test "x$enable_syscall" = "x1" ; then
8791 SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8792
8793
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
8795 $as_echo_n "checking whether compiler supports -Werror... " >&6; }
8796 T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8797 T_APPEND_V=-Werror
8798 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8799 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8800 else
8801 CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8802 fi
8803
8804
8805 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8806 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8807 else
8808 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8809 fi
8810
8811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8813
8814
8815 int
8816 main ()
8817 {
8818
8819 return 0;
8820
8821 ;
8822 return 0;
8823 }
8824 _ACEOF
8825 if ac_fn_c_try_compile "$LINENO"; then :
8826 je_cv_cflags_added=-Werror
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8828 $as_echo "yes" >&6; }
8829 else
8830 je_cv_cflags_added=
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8832 $as_echo "no" >&6; }
8833 CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8834
8835 fi
8836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8837 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8838 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8839 else
8840 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8841 fi
8842
8843
8844
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syscall(2) is compilable" >&5
8846 $as_echo_n "checking whether syscall(2) is compilable... " >&6; }
8847 if ${je_cv_syscall+:} false; then :
8848 $as_echo_n "(cached) " >&6
8849 else
8850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8852
8853 #include <sys/syscall.h>
8854 #include <unistd.h>
8855
8856 int
8857 main ()
8858 {
8859
8860 syscall(SYS_write, 2, "hello", 5);
8861
8862 ;
8863 return 0;
8864 }
8865 _ACEOF
8866 if ac_fn_c_try_link "$LINENO"; then :
8867 je_cv_syscall=yes
8868 else
8869 je_cv_syscall=no
8870 fi
8871 rm -f core conftest.err conftest.$ac_objext \
8872 conftest$ac_exeext conftest.$ac_ext
8873 fi
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_syscall" >&5
8875 $as_echo "$je_cv_syscall" >&6; }
8876
8877 CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8878 if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8879 CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8880 else
8881 CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8882 fi
8883
8884
8885 if test "x$je_cv_syscall" = "xyes" ; then
8886 $as_echo "#define JEMALLOC_USE_SYSCALL " >>confdefs.h
8887
8888 fi
8889 fi
8890
8891 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
8892 if test "x$ac_cv_func_secure_getenv" = xyes; then :
8893 have_secure_getenv="1"
8894 else
8895 have_secure_getenv="0"
8896
8897 fi
8898
8899 if test "x$have_secure_getenv" = "x1" ; then
8900 $as_echo "#define JEMALLOC_HAVE_SECURE_GETENV " >>confdefs.h
8901
8902 fi
8903
8904 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
8905 if test "x$ac_cv_func_issetugid" = xyes; then :
8906 have_issetugid="1"
8907 else
8908 have_issetugid="0"
8909
8910 fi
8911
8912 if test "x$have_issetugid" = "x1" ; then
8913 $as_echo "#define JEMALLOC_HAVE_ISSETUGID " >>confdefs.h
8914
8915 fi
8916
8917 ac_fn_c_check_func "$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup"
8918 if test "x$ac_cv_func__malloc_thread_cleanup" = xyes; then :
8919 have__malloc_thread_cleanup="1"
8920 else
8921 have__malloc_thread_cleanup="0"
8922
8923 fi
8924
8925 if test "x$have__malloc_thread_cleanup" = "x1" ; then
8926 $as_echo "#define JEMALLOC_MALLOC_THREAD_CLEANUP " >>confdefs.h
8927
8928 force_tls="1"
8929 fi
8930
8931 ac_fn_c_check_func "$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb"
8932 if test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes; then :
8933 have__pthread_mutex_init_calloc_cb="1"
8934 else
8935 have__pthread_mutex_init_calloc_cb="0"
8936
8937 fi
8938
8939 if test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then
8940 $as_echo "#define JEMALLOC_MUTEX_INIT_CB 1" >>confdefs.h
8941
8942 fi
8943
8944 # Check whether --enable-lazy_lock was given.
8945 if test "${enable_lazy_lock+set}" = set; then :
8946 enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then
8947 enable_lazy_lock="0"
8948 else
8949 enable_lazy_lock="1"
8950 fi
8951
8952 else
8953 enable_lazy_lock=""
8954
8955 fi
8956
8957 if test "x${enable_lazy_lock}" = "x" ; then
8958 if test "x${force_lazy_lock}" = "x1" ; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5
8960 $as_echo "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; }
8961 enable_lazy_lock="1"
8962 else
8963 enable_lazy_lock="0"
8964 fi
8965 fi
8966 if test "x${enable_lazy_lock}" = "x1" -a "x${abi}" = "xpecoff" ; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no lazy-lock because thread creation monitoring is unimplemented" >&5
8968 $as_echo "Forcing no lazy-lock because thread creation monitoring is unimplemented" >&6; }
8969 enable_lazy_lock="0"
8970 fi
8971 if test "x$enable_lazy_lock" = "x1" ; then
8972 if test "x$abi" != "xpecoff" ; then
8973 for ac_header in dlfcn.h
8974 do :
8975 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
8976 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8977 cat >>confdefs.h <<_ACEOF
8978 #define HAVE_DLFCN_H 1
8979 _ACEOF
8980
8981 else
8982 as_fn_error $? "dlfcn.h is missing" "$LINENO" 5
8983 fi
8984
8985 done
8986
8987 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
8988 if test "x$ac_cv_func_dlsym" = xyes; then :
8989
8990 else
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
8992 $as_echo_n "checking for dlsym in -ldl... " >&6; }
8993 if ${ac_cv_lib_dl_dlsym+:} false; then :
8994 $as_echo_n "(cached) " >&6
8995 else
8996 ac_check_lib_save_LIBS=$LIBS
8997 LIBS="-ldl $LIBS"
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9000
9001 /* Override any GCC internal prototype to avoid an error.
9002 Use char because int might match the return type of a GCC
9003 builtin and then its argument prototype would still apply. */
9004 #ifdef __cplusplus
9005 extern "C"
9006 #endif
9007 char dlsym ();
9008 int
9009 main ()
9010 {
9011 return dlsym ();
9012 ;
9013 return 0;
9014 }
9015 _ACEOF
9016 if ac_fn_c_try_link "$LINENO"; then :
9017 ac_cv_lib_dl_dlsym=yes
9018 else
9019 ac_cv_lib_dl_dlsym=no
9020 fi
9021 rm -f core conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
9023 LIBS=$ac_check_lib_save_LIBS
9024 fi
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
9026 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
9027 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
9028 T_APPEND_V=-ldl
9029 if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9030 LIBS="${LIBS}${T_APPEND_V}"
9031 else
9032 LIBS="${LIBS} ${T_APPEND_V}"
9033 fi
9034
9035
9036 else
9037 as_fn_error $? "libdl is missing" "$LINENO" 5
9038 fi
9039
9040
9041 fi
9042
9043 fi
9044 $as_echo "#define JEMALLOC_LAZY_LOCK " >>confdefs.h
9045
9046 fi
9047
9048
9049 # Check whether --enable-tls was given.
9050 if test "${enable_tls+set}" = set; then :
9051 enableval=$enable_tls; if test "x$enable_tls" = "xno" ; then
9052 enable_tls="0"
9053 else
9054 enable_tls="1"
9055 fi
9056
9057 else
9058 enable_tls=""
9059
9060 fi
9061
9062 if test "x${enable_tls}" = "x" ; then
9063 if test "x${force_tls}" = "x1" ; then
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing TLS to avoid allocator/threading bootstrap issues" >&5
9065 $as_echo "Forcing TLS to avoid allocator/threading bootstrap issues" >&6; }
9066 enable_tls="1"
9067 elif test "x${force_tls}" = "x0" ; then
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no TLS to avoid allocator/threading bootstrap issues" >&5
9069 $as_echo "Forcing no TLS to avoid allocator/threading bootstrap issues" >&6; }
9070 enable_tls="0"
9071 else
9072 enable_tls="1"
9073 fi
9074 fi
9075 if test "x${enable_tls}" = "x1" ; then
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
9077 $as_echo_n "checking for TLS... " >&6; }
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9080
9081 __thread int x;
9082
9083 int
9084 main ()
9085 {
9086
9087 x = 42;
9088
9089 return 0;
9090
9091 ;
9092 return 0;
9093 }
9094 _ACEOF
9095 if ac_fn_c_try_compile "$LINENO"; then :
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9097 $as_echo "yes" >&6; }
9098 else
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9101 enable_tls="0"
9102 fi
9103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104 else
9105 enable_tls="0"
9106 fi
9107
9108 if test "x${enable_tls}" = "x1" ; then
9109 if test "x${force_tls}" = "x0" ; then
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS enabled despite being marked unusable on this platform" >&5
9111 $as_echo "$as_me: WARNING: TLS enabled despite being marked unusable on this platform" >&2;}
9112 fi
9113 cat >>confdefs.h <<_ACEOF
9114 #define JEMALLOC_TLS
9115 _ACEOF
9116
9117 elif test "x${force_tls}" = "x1" ; then
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS disabled despite being marked critical on this platform" >&5
9119 $as_echo "$as_me: WARNING: TLS disabled despite being marked critical on this platform" >&2;}
9120 fi
9121
9122
9123
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 atomics is compilable" >&5
9125 $as_echo_n "checking whether C11 atomics is compilable... " >&6; }
9126 if ${je_cv_c11atomics+:} false; then :
9127 $as_echo_n "(cached) " >&6
9128 else
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9131
9132 #include <stdint.h>
9133 #if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_ATOMICS__)
9134 #include <stdatomic.h>
9135 #else
9136 #error Atomics not available
9137 #endif
9138
9139 int
9140 main ()
9141 {
9142
9143 uint64_t *p = (uint64_t *)0;
9144 uint64_t x = 1;
9145 volatile atomic_uint_least64_t *a = (volatile atomic_uint_least64_t *)p;
9146 uint64_t r = atomic_fetch_add(a, x) + x;
9147 return (r == 0);
9148
9149 ;
9150 return 0;
9151 }
9152 _ACEOF
9153 if ac_fn_c_try_link "$LINENO"; then :
9154 je_cv_c11atomics=yes
9155 else
9156 je_cv_c11atomics=no
9157 fi
9158 rm -f core conftest.err conftest.$ac_objext \
9159 conftest$ac_exeext conftest.$ac_ext
9160 fi
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_c11atomics" >&5
9162 $as_echo "$je_cv_c11atomics" >&6; }
9163
9164 if test "x${je_cv_c11atomics}" = "xyes" ; then
9165 $as_echo "#define JEMALLOC_C11ATOMICS 1" >>confdefs.h
9166
9167 fi
9168
9169
9170
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic(9) is compilable" >&5
9172 $as_echo_n "checking whether atomic(9) is compilable... " >&6; }
9173 if ${je_cv_atomic9+:} false; then :
9174 $as_echo_n "(cached) " >&6
9175 else
9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9178
9179 #include <sys/types.h>
9180 #include <machine/atomic.h>
9181 #include <inttypes.h>
9182
9183 int
9184 main ()
9185 {
9186
9187 {
9188 uint32_t x32 = 0;
9189 volatile uint32_t *x32p = &x32;
9190 atomic_fetchadd_32(x32p, 1);
9191 }
9192 {
9193 unsigned long xlong = 0;
9194 volatile unsigned long *xlongp = &xlong;
9195 atomic_fetchadd_long(xlongp, 1);
9196 }
9197
9198 ;
9199 return 0;
9200 }
9201 _ACEOF
9202 if ac_fn_c_try_link "$LINENO"; then :
9203 je_cv_atomic9=yes
9204 else
9205 je_cv_atomic9=no
9206 fi
9207 rm -f core conftest.err conftest.$ac_objext \
9208 conftest$ac_exeext conftest.$ac_ext
9209 fi
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_atomic9" >&5
9211 $as_echo "$je_cv_atomic9" >&6; }
9212
9213 if test "x${je_cv_atomic9}" = "xyes" ; then
9214 $as_echo "#define JEMALLOC_ATOMIC9 1" >>confdefs.h
9215
9216 fi
9217
9218
9219
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5
9221 $as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; }
9222 if ${je_cv_osatomic+:} false; then :
9223 $as_echo_n "(cached) " >&6
9224 else
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9227
9228 #include <libkern/OSAtomic.h>
9229 #include <inttypes.h>
9230
9231 int
9232 main ()
9233 {
9234
9235 {
9236 int32_t x32 = 0;
9237 volatile int32_t *x32p = &x32;
9238 OSAtomicAdd32(1, x32p);
9239 }
9240 {
9241 int64_t x64 = 0;
9242 volatile int64_t *x64p = &x64;
9243 OSAtomicAdd64(1, x64p);
9244 }
9245
9246 ;
9247 return 0;
9248 }
9249 _ACEOF
9250 if ac_fn_c_try_link "$LINENO"; then :
9251 je_cv_osatomic=yes
9252 else
9253 je_cv_osatomic=no
9254 fi
9255 rm -f core conftest.err conftest.$ac_objext \
9256 conftest$ac_exeext conftest.$ac_ext
9257 fi
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5
9259 $as_echo "$je_cv_osatomic" >&6; }
9260
9261 if test "x${je_cv_osatomic}" = "xyes" ; then
9262 $as_echo "#define JEMALLOC_OSATOMIC " >>confdefs.h
9263
9264 fi
9265
9266
9267
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(2) is compilable" >&5
9269 $as_echo_n "checking whether madvise(2) is compilable... " >&6; }
9270 if ${je_cv_madvise+:} false; then :
9271 $as_echo_n "(cached) " >&6
9272 else
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9275
9276 #include <sys/mman.h>
9277
9278 int
9279 main ()
9280 {
9281
9282 madvise((void *)0, 0, 0);
9283
9284 ;
9285 return 0;
9286 }
9287 _ACEOF
9288 if ac_fn_c_try_link "$LINENO"; then :
9289 je_cv_madvise=yes
9290 else
9291 je_cv_madvise=no
9292 fi
9293 rm -f core conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
9295 fi
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madvise" >&5
9297 $as_echo "$je_cv_madvise" >&6; }
9298
9299 if test "x${je_cv_madvise}" = "xyes" ; then
9300 $as_echo "#define JEMALLOC_HAVE_MADVISE " >>confdefs.h
9301
9302
9303
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_FREE) is compilable" >&5
9305 $as_echo_n "checking whether madvise(..., MADV_FREE) is compilable... " >&6; }
9306 if ${je_cv_madv_free+:} false; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9311
9312 #include <sys/mman.h>
9313
9314 int
9315 main ()
9316 {
9317
9318 madvise((void *)0, 0, MADV_FREE);
9319
9320 ;
9321 return 0;
9322 }
9323 _ACEOF
9324 if ac_fn_c_try_link "$LINENO"; then :
9325 je_cv_madv_free=yes
9326 else
9327 je_cv_madv_free=no
9328 fi
9329 rm -f core conftest.err conftest.$ac_objext \
9330 conftest$ac_exeext conftest.$ac_ext
9331 fi
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_free" >&5
9333 $as_echo "$je_cv_madv_free" >&6; }
9334
9335 if test "x${je_cv_madv_free}" = "xyes" ; then
9336 $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h
9337
9338 fi
9339
9340
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DONTNEED) is compilable" >&5
9342 $as_echo_n "checking whether madvise(..., MADV_DONTNEED) is compilable... " >&6; }
9343 if ${je_cv_madv_dontneed+:} false; then :
9344 $as_echo_n "(cached) " >&6
9345 else
9346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347 /* end confdefs.h. */
9348
9349 #include <sys/mman.h>
9350
9351 int
9352 main ()
9353 {
9354
9355 madvise((void *)0, 0, MADV_DONTNEED);
9356
9357 ;
9358 return 0;
9359 }
9360 _ACEOF
9361 if ac_fn_c_try_link "$LINENO"; then :
9362 je_cv_madv_dontneed=yes
9363 else
9364 je_cv_madv_dontneed=no
9365 fi
9366 rm -f core conftest.err conftest.$ac_objext \
9367 conftest$ac_exeext conftest.$ac_ext
9368 fi
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontneed" >&5
9370 $as_echo "$je_cv_madv_dontneed" >&6; }
9371
9372 if test "x${je_cv_madv_dontneed}" = "xyes" ; then
9373 $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED " >>confdefs.h
9374
9375 fi
9376
9377
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable" >&5
9379 $as_echo_n "checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable... " >&6; }
9380 if ${je_cv_thp+:} false; then :
9381 $as_echo_n "(cached) " >&6
9382 else
9383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384 /* end confdefs.h. */
9385
9386 #include <sys/mman.h>
9387
9388 int
9389 main ()
9390 {
9391
9392 madvise((void *)0, 0, MADV_HUGEPAGE);
9393 madvise((void *)0, 0, MADV_NOHUGEPAGE);
9394
9395 ;
9396 return 0;
9397 }
9398 _ACEOF
9399 if ac_fn_c_try_link "$LINENO"; then :
9400 je_cv_thp=yes
9401 else
9402 je_cv_thp=no
9403 fi
9404 rm -f core conftest.err conftest.$ac_objext \
9405 conftest$ac_exeext conftest.$ac_ext
9406 fi
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_thp" >&5
9408 $as_echo "$je_cv_thp" >&6; }
9409
9410 if test "x${je_cv_thp}" = "xyes" ; then
9411 $as_echo "#define JEMALLOC_HAVE_MADVISE_HUGE " >>confdefs.h
9412
9413 fi
9414 fi
9415
9416 # Check whether --enable-thp was given.
9417 if test "${enable_thp+set}" = set; then :
9418 enableval=$enable_thp; if test "x$enable_thp" = "xno" -o "x${je_cv_thp}" != "xyes" ; then
9419 enable_thp="0"
9420 else
9421 enable_thp="1"
9422 fi
9423
9424 else
9425 if test "x${je_cv_thp}" = "xyes" ; then
9426 enable_thp="1"
9427 else
9428 enable_thp="0"
9429 fi
9430
9431 fi
9432
9433 if test "x$enable_thp" = "x1" ; then
9434 $as_echo "#define JEMALLOC_THP " >>confdefs.h
9435
9436 fi
9437
9438
9439
9440
9441
9442 if test "x${je_cv_atomic9}" != "xyes" -a "x${je_cv_osatomic}" != "xyes" ; then
9443
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 32-bit __sync_{add,sub}_and_fetch()" >&5
9445 $as_echo_n "checking whether to force 32-bit __sync_{add,sub}_and_fetch()... " >&6; }
9446 if ${je_cv_sync_compare_and_swap_4+:} false; then :
9447 $as_echo_n "(cached) " >&6
9448 else
9449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450 /* end confdefs.h. */
9451
9452 #include <stdint.h>
9453
9454 int
9455 main ()
9456 {
9457
9458 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
9459 {
9460 uint32_t x32 = 0;
9461 __sync_add_and_fetch(&x32, 42);
9462 __sync_sub_and_fetch(&x32, 1);
9463 }
9464 #else
9465 #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is defined, no need to force
9466 #endif
9467
9468 ;
9469 return 0;
9470 }
9471 _ACEOF
9472 if ac_fn_c_try_link "$LINENO"; then :
9473 je_cv_sync_compare_and_swap_4=yes
9474 else
9475 je_cv_sync_compare_and_swap_4=no
9476 fi
9477 rm -f core conftest.err conftest.$ac_objext \
9478 conftest$ac_exeext conftest.$ac_ext
9479 fi
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_4" >&5
9481 $as_echo "$je_cv_sync_compare_and_swap_4" >&6; }
9482
9483 if test "x${je_cv_sync_compare_and_swap_4}" = "xyes" ; then
9484 $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_4 " >>confdefs.h
9485
9486 fi
9487
9488
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 64-bit __sync_{add,sub}_and_fetch()" >&5
9490 $as_echo_n "checking whether to force 64-bit __sync_{add,sub}_and_fetch()... " >&6; }
9491 if ${je_cv_sync_compare_and_swap_8+:} false; then :
9492 $as_echo_n "(cached) " >&6
9493 else
9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h. */
9496
9497 #include <stdint.h>
9498
9499 int
9500 main ()
9501 {
9502
9503 #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
9504 {
9505 uint64_t x64 = 0;
9506 __sync_add_and_fetch(&x64, 42);
9507 __sync_sub_and_fetch(&x64, 1);
9508 }
9509 #else
9510 #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 is defined, no need to force
9511 #endif
9512
9513 ;
9514 return 0;
9515 }
9516 _ACEOF
9517 if ac_fn_c_try_link "$LINENO"; then :
9518 je_cv_sync_compare_and_swap_8=yes
9519 else
9520 je_cv_sync_compare_and_swap_8=no
9521 fi
9522 rm -f core conftest.err conftest.$ac_objext \
9523 conftest$ac_exeext conftest.$ac_ext
9524 fi
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_8" >&5
9526 $as_echo "$je_cv_sync_compare_and_swap_8" >&6; }
9527
9528 if test "x${je_cv_sync_compare_and_swap_8}" = "xyes" ; then
9529 $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_8 " >>confdefs.h
9530
9531 fi
9532
9533 fi
9534
9535
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
9537 $as_echo_n "checking for __builtin_clz... " >&6; }
9538 if ${je_cv_builtin_clz+:} false; then :
9539 $as_echo_n "(cached) " >&6
9540 else
9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542 /* end confdefs.h. */
9543
9544 int
9545 main ()
9546 {
9547
9548 {
9549 unsigned x = 0;
9550 int y = __builtin_clz(x);
9551 }
9552 {
9553 unsigned long x = 0;
9554 int y = __builtin_clzl(x);
9555 }
9556
9557 ;
9558 return 0;
9559 }
9560 _ACEOF
9561 if ac_fn_c_try_link "$LINENO"; then :
9562 je_cv_builtin_clz=yes
9563 else
9564 je_cv_builtin_clz=no
9565 fi
9566 rm -f core conftest.err conftest.$ac_objext \
9567 conftest$ac_exeext conftest.$ac_ext
9568 fi
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_builtin_clz" >&5
9570 $as_echo "$je_cv_builtin_clz" >&6; }
9571
9572 if test "x${je_cv_builtin_clz}" = "xyes" ; then
9573 $as_echo "#define JEMALLOC_HAVE_BUILTIN_CLZ " >>confdefs.h
9574
9575 fi
9576
9577
9578
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin os_unfair_lock_*() is compilable" >&5
9580 $as_echo_n "checking whether Darwin os_unfair_lock_*() is compilable... " >&6; }
9581 if ${je_cv_os_unfair_lock+:} false; then :
9582 $as_echo_n "(cached) " >&6
9583 else
9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h. */
9586
9587 #include <os/lock.h>
9588 #include <AvailabilityMacros.h>
9589
9590 int
9591 main ()
9592 {
9593
9594 #if MAC_OS_X_VERSION_MIN_REQUIRED < 101200
9595 #error "os_unfair_lock is not supported"
9596 #else
9597 os_unfair_lock lock = OS_UNFAIR_LOCK_INIT;
9598 os_unfair_lock_lock(&lock);
9599 os_unfair_lock_unlock(&lock);
9600 #endif
9601
9602 ;
9603 return 0;
9604 }
9605 _ACEOF
9606 if ac_fn_c_try_link "$LINENO"; then :
9607 je_cv_os_unfair_lock=yes
9608 else
9609 je_cv_os_unfair_lock=no
9610 fi
9611 rm -f core conftest.err conftest.$ac_objext \
9612 conftest$ac_exeext conftest.$ac_ext
9613 fi
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_os_unfair_lock" >&5
9615 $as_echo "$je_cv_os_unfair_lock" >&6; }
9616
9617 if test "x${je_cv_os_unfair_lock}" = "xyes" ; then
9618 $as_echo "#define JEMALLOC_OS_UNFAIR_LOCK " >>confdefs.h
9619
9620 fi
9621
9622
9623
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSSpin*() is compilable" >&5
9625 $as_echo_n "checking whether Darwin OSSpin*() is compilable... " >&6; }
9626 if ${je_cv_osspin+:} false; then :
9627 $as_echo_n "(cached) " >&6
9628 else
9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9631
9632 #include <libkern/OSAtomic.h>
9633 #include <inttypes.h>
9634
9635 int
9636 main ()
9637 {
9638
9639 OSSpinLock lock = 0;
9640 OSSpinLockLock(&lock);
9641 OSSpinLockUnlock(&lock);
9642
9643 ;
9644 return 0;
9645 }
9646 _ACEOF
9647 if ac_fn_c_try_link "$LINENO"; then :
9648 je_cv_osspin=yes
9649 else
9650 je_cv_osspin=no
9651 fi
9652 rm -f core conftest.err conftest.$ac_objext \
9653 conftest$ac_exeext conftest.$ac_ext
9654 fi
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osspin" >&5
9656 $as_echo "$je_cv_osspin" >&6; }
9657
9658 if test "x${je_cv_osspin}" = "xyes" ; then
9659 $as_echo "#define JEMALLOC_OSSPIN " >>confdefs.h
9660
9661 fi
9662
9663
9664 # Check whether --enable-zone-allocator was given.
9665 if test "${enable_zone_allocator+set}" = set; then :
9666 enableval=$enable_zone_allocator; if test "x$enable_zone_allocator" = "xno" ; then
9667 enable_zone_allocator="0"
9668 else
9669 enable_zone_allocator="1"
9670 fi
9671
9672 else
9673 if test "x${abi}" = "xmacho"; then
9674 enable_zone_allocator="1"
9675 fi
9676
9677
9678 fi
9679
9680
9681
9682 if test "x${enable_zone_allocator}" = "x1" ; then
9683 if test "x${abi}" != "xmacho"; then
9684 as_fn_error $? "--enable-zone-allocator is only supported on Darwin" "$LINENO" 5
9685 fi
9686 $as_echo "#define JEMALLOC_ZONE " >>confdefs.h
9687
9688 fi
9689
9690
9691
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc malloc hook is compilable" >&5
9693 $as_echo_n "checking whether glibc malloc hook is compilable... " >&6; }
9694 if ${je_cv_glibc_malloc_hook+:} false; then :
9695 $as_echo_n "(cached) " >&6
9696 else
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9699
9700 #include <stddef.h>
9701
9702 extern void (* __free_hook)(void *ptr);
9703 extern void *(* __malloc_hook)(size_t size);
9704 extern void *(* __realloc_hook)(void *ptr, size_t size);
9705
9706 int
9707 main ()
9708 {
9709
9710 void *ptr = 0L;
9711 if (__malloc_hook) ptr = __malloc_hook(1);
9712 if (__realloc_hook) ptr = __realloc_hook(ptr, 2);
9713 if (__free_hook && ptr) __free_hook(ptr);
9714
9715 ;
9716 return 0;
9717 }
9718 _ACEOF
9719 if ac_fn_c_try_link "$LINENO"; then :
9720 je_cv_glibc_malloc_hook=yes
9721 else
9722 je_cv_glibc_malloc_hook=no
9723 fi
9724 rm -f core conftest.err conftest.$ac_objext \
9725 conftest$ac_exeext conftest.$ac_ext
9726 fi
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_malloc_hook" >&5
9728 $as_echo "$je_cv_glibc_malloc_hook" >&6; }
9729
9730 if test "x${je_cv_glibc_malloc_hook}" = "xyes" ; then
9731 $as_echo "#define JEMALLOC_GLIBC_MALLOC_HOOK " >>confdefs.h
9732
9733 fi
9734
9735
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc memalign hook is compilable" >&5
9737 $as_echo_n "checking whether glibc memalign hook is compilable... " >&6; }
9738 if ${je_cv_glibc_memalign_hook+:} false; then :
9739 $as_echo_n "(cached) " >&6
9740 else
9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742 /* end confdefs.h. */
9743
9744 #include <stddef.h>
9745
9746 extern void *(* __memalign_hook)(size_t alignment, size_t size);
9747
9748 int
9749 main ()
9750 {
9751
9752 void *ptr = 0L;
9753 if (__memalign_hook) ptr = __memalign_hook(16, 7);
9754
9755 ;
9756 return 0;
9757 }
9758 _ACEOF
9759 if ac_fn_c_try_link "$LINENO"; then :
9760 je_cv_glibc_memalign_hook=yes
9761 else
9762 je_cv_glibc_memalign_hook=no
9763 fi
9764 rm -f core conftest.err conftest.$ac_objext \
9765 conftest$ac_exeext conftest.$ac_ext
9766 fi
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_memalign_hook" >&5
9768 $as_echo "$je_cv_glibc_memalign_hook" >&6; }
9769
9770 if test "x${je_cv_glibc_memalign_hook}" = "xyes" ; then
9771 $as_echo "#define JEMALLOC_GLIBC_MEMALIGN_HOOK " >>confdefs.h
9772
9773 fi
9774
9775
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads adaptive mutexes is compilable" >&5
9777 $as_echo_n "checking whether pthreads adaptive mutexes is compilable... " >&6; }
9778 if ${je_cv_pthread_mutex_adaptive_np+:} false; then :
9779 $as_echo_n "(cached) " >&6
9780 else
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9783
9784 #include <pthread.h>
9785
9786 int
9787 main ()
9788 {
9789
9790 pthread_mutexattr_t attr;
9791 pthread_mutexattr_init(&attr);
9792 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
9793 pthread_mutexattr_destroy(&attr);
9794
9795 ;
9796 return 0;
9797 }
9798 _ACEOF
9799 if ac_fn_c_try_link "$LINENO"; then :
9800 je_cv_pthread_mutex_adaptive_np=yes
9801 else
9802 je_cv_pthread_mutex_adaptive_np=no
9803 fi
9804 rm -f core conftest.err conftest.$ac_objext \
9805 conftest$ac_exeext conftest.$ac_ext
9806 fi
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_mutex_adaptive_np" >&5
9808 $as_echo "$je_cv_pthread_mutex_adaptive_np" >&6; }
9809
9810 if test "x${je_cv_pthread_mutex_adaptive_np}" = "xyes" ; then
9811 $as_echo "#define JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP " >>confdefs.h
9812
9813 fi
9814
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9816 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9817 if ${ac_cv_header_stdbool_h+:} false; then :
9818 $as_echo_n "(cached) " >&6
9819 else
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9822
9823 #include <stdbool.h>
9824 #ifndef bool
9825 "error: bool is not defined"
9826 #endif
9827 #ifndef false
9828 "error: false is not defined"
9829 #endif
9830 #if false
9831 "error: false is not 0"
9832 #endif
9833 #ifndef true
9834 "error: true is not defined"
9835 #endif
9836 #if true != 1
9837 "error: true is not 1"
9838 #endif
9839 #ifndef __bool_true_false_are_defined
9840 "error: __bool_true_false_are_defined is not defined"
9841 #endif
9842
9843 struct s { _Bool s: 1; _Bool t; } s;
9844
9845 char a[true == 1 ? 1 : -1];
9846 char b[false == 0 ? 1 : -1];
9847 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9848 char d[(bool) 0.5 == true ? 1 : -1];
9849 /* See body of main program for 'e'. */
9850 char f[(_Bool) 0.0 == false ? 1 : -1];
9851 char g[true];
9852 char h[sizeof (_Bool)];
9853 char i[sizeof s.t];
9854 enum { j = false, k = true, l = false * true, m = true * 256 };
9855 /* The following fails for
9856 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9857 _Bool n[m];
9858 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9859 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9860 /* Catch a bug in an HP-UX C compiler. See
9861 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9862 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9863 */
9864 _Bool q = true;
9865 _Bool *pq = &q;
9866
9867 int
9868 main ()
9869 {
9870
9871 bool e = &s;
9872 *pq |= q;
9873 *pq |= ! q;
9874 /* Refer to every declared value, to avoid compiler optimizations. */
9875 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9876 + !m + !n + !o + !p + !q + !pq);
9877
9878 ;
9879 return 0;
9880 }
9881 _ACEOF
9882 if ac_fn_c_try_compile "$LINENO"; then :
9883 ac_cv_header_stdbool_h=yes
9884 else
9885 ac_cv_header_stdbool_h=no
9886 fi
9887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9888 fi
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9890 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9891 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9892 if test "x$ac_cv_type__Bool" = xyes; then :
9893
9894 cat >>confdefs.h <<_ACEOF
9895 #define HAVE__BOOL 1
9896 _ACEOF
9897
9898
9899 fi
9900
9901
9902 if test $ac_cv_header_stdbool_h = yes; then
9903
9904 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
9905
9906 fi
9907
9908
9909
9910 ac_config_commands="$ac_config_commands include/jemalloc/internal/private_namespace.h"
9911
9912 ac_config_commands="$ac_config_commands include/jemalloc/internal/private_unnamespace.h"
9913
9914 ac_config_commands="$ac_config_commands include/jemalloc/internal/public_symbols.txt"
9915
9916 ac_config_commands="$ac_config_commands include/jemalloc/internal/public_namespace.h"
9917
9918 ac_config_commands="$ac_config_commands include/jemalloc/internal/public_unnamespace.h"
9919
9920 ac_config_commands="$ac_config_commands include/jemalloc/internal/size_classes.h"
9921
9922 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_protos_jet.h"
9923
9924 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_rename.h"
9925
9926 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle.h"
9927
9928 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle_jet.h"
9929
9930 ac_config_commands="$ac_config_commands include/jemalloc/jemalloc.h"
9931
9932
9933
9934
9935 ac_config_headers="$ac_config_headers $cfghdrs_tup"
9936
9937
9938
9939 ac_config_files="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc-config bin/jemalloc.sh bin/jeprof"
9940
9941
9942
9943 cat >confcache <<\_ACEOF
9944 # This file is a shell script that caches the results of configure
9945 # tests run on this system so they can be shared between configure
9946 # scripts and configure runs, see configure's option --config-cache.
9947 # It is not useful on other systems. If it contains results you don't
9948 # want to keep, you may remove or edit it.
9949 #
9950 # config.status only pays attention to the cache file if you give it
9951 # the --recheck option to rerun configure.
9952 #
9953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9955 # following values.
9956
9957 _ACEOF
9958
9959 # The following way of writing the cache mishandles newlines in values,
9960 # but we know of no workaround that is simple, portable, and efficient.
9961 # So, we kill variables containing newlines.
9962 # Ultrix sh set writes to stderr and can't be redirected directly,
9963 # and sets the high bit in the cache file unless we assign to the vars.
9964 (
9965 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9966 eval ac_val=\$$ac_var
9967 case $ac_val in #(
9968 *${as_nl}*)
9969 case $ac_var in #(
9970 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9971 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9972 esac
9973 case $ac_var in #(
9974 _ | IFS | as_nl) ;; #(
9975 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9976 *) { eval $ac_var=; unset $ac_var;} ;;
9977 esac ;;
9978 esac
9979 done
9980
9981 (set) 2>&1 |
9982 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9983 *${as_nl}ac_space=\ *)
9984 # `set' does not quote correctly, so add quotes: double-quote
9985 # substitution turns \\\\ into \\, and sed turns \\ into \.
9986 sed -n \
9987 "s/'/'\\\\''/g;
9988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9989 ;; #(
9990 *)
9991 # `set' quotes correctly as required by POSIX, so do not add quotes.
9992 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9993 ;;
9994 esac |
9995 sort
9996 ) |
9997 sed '
9998 /^ac_cv_env_/b end
9999 t clear
10000 :clear
10001 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10002 t end
10003 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10004 :end' >>confcache
10005 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10006 if test -w "$cache_file"; then
10007 if test "x$cache_file" != "x/dev/null"; then
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10009 $as_echo "$as_me: updating cache $cache_file" >&6;}
10010 if test ! -f "$cache_file" || test -h "$cache_file"; then
10011 cat confcache >"$cache_file"
10012 else
10013 case $cache_file in #(
10014 */* | ?:*)
10015 mv -f confcache "$cache_file"$$ &&
10016 mv -f "$cache_file"$$ "$cache_file" ;; #(
10017 *)
10018 mv -f confcache "$cache_file" ;;
10019 esac
10020 fi
10021 fi
10022 else
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10024 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10025 fi
10026 fi
10027 rm -f confcache
10028
10029 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10030 # Let make expand exec_prefix.
10031 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10032
10033 DEFS=-DHAVE_CONFIG_H
10034
10035 ac_libobjs=
10036 ac_ltlibobjs=
10037 U=
10038 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10039 # 1. Remove the extension, and $U if already installed.
10040 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10041 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10042 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10043 # will be set to the directory where LIBOBJS objects are built.
10044 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10045 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10046 done
10047 LIBOBJS=$ac_libobjs
10048
10049 LTLIBOBJS=$ac_ltlibobjs
10050
10051
10052
10053
10054 : "${CONFIG_STATUS=./config.status}"
10055 ac_write_fail=0
10056 ac_clean_files_save=$ac_clean_files
10057 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10059 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10060 as_write_fail=0
10061 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10062 #! $SHELL
10063 # Generated by $as_me.
10064 # Run this file to recreate the current configuration.
10065 # Compiler output produced by configure, useful for debugging
10066 # configure, is in config.log if it exists.
10067
10068 debug=false
10069 ac_cs_recheck=false
10070 ac_cs_silent=false
10071
10072 SHELL=\${CONFIG_SHELL-$SHELL}
10073 export SHELL
10074 _ASEOF
10075 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10076 ## -------------------- ##
10077 ## M4sh Initialization. ##
10078 ## -------------------- ##
10079
10080 # Be more Bourne compatible
10081 DUALCASE=1; export DUALCASE # for MKS sh
10082 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10083 emulate sh
10084 NULLCMD=:
10085 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10086 # is contrary to our usage. Disable this feature.
10087 alias -g '${1+"$@"}'='"$@"'
10088 setopt NO_GLOB_SUBST
10089 else
10090 case `(set -o) 2>/dev/null` in #(
10091 *posix*) :
10092 set -o posix ;; #(
10093 *) :
10094 ;;
10095 esac
10096 fi
10097
10098
10099 as_nl='
10100 '
10101 export as_nl
10102 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10103 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10104 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10105 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10106 # Prefer a ksh shell builtin over an external printf program on Solaris,
10107 # but without wasting forks for bash or zsh.
10108 if test -z "$BASH_VERSION$ZSH_VERSION" \
10109 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10110 as_echo='print -r --'
10111 as_echo_n='print -rn --'
10112 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10113 as_echo='printf %s\n'
10114 as_echo_n='printf %s'
10115 else
10116 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10117 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10118 as_echo_n='/usr/ucb/echo -n'
10119 else
10120 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10121 as_echo_n_body='eval
10122 arg=$1;
10123 case $arg in #(
10124 *"$as_nl"*)
10125 expr "X$arg" : "X\\(.*\\)$as_nl";
10126 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10127 esac;
10128 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10129 '
10130 export as_echo_n_body
10131 as_echo_n='sh -c $as_echo_n_body as_echo'
10132 fi
10133 export as_echo_body
10134 as_echo='sh -c $as_echo_body as_echo'
10135 fi
10136
10137 # The user is always right.
10138 if test "${PATH_SEPARATOR+set}" != set; then
10139 PATH_SEPARATOR=:
10140 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10141 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10142 PATH_SEPARATOR=';'
10143 }
10144 fi
10145
10146
10147 # IFS
10148 # We need space, tab and new line, in precisely that order. Quoting is
10149 # there to prevent editors from complaining about space-tab.
10150 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10151 # splitting by setting IFS to empty value.)
10152 IFS=" "" $as_nl"
10153
10154 # Find who we are. Look in the path if we contain no directory separator.
10155 as_myself=
10156 case $0 in #((
10157 *[\\/]* ) as_myself=$0 ;;
10158 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10159 for as_dir in $PATH
10160 do
10161 IFS=$as_save_IFS
10162 test -z "$as_dir" && as_dir=.
10163 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10164 done
10165 IFS=$as_save_IFS
10166
10167 ;;
10168 esac
10169 # We did not find ourselves, most probably we were run as `sh COMMAND'
10170 # in which case we are not to be found in the path.
10171 if test "x$as_myself" = x; then
10172 as_myself=$0
10173 fi
10174 if test ! -f "$as_myself"; then
10175 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10176 exit 1
10177 fi
10178
10179 # Unset variables that we do not need and which cause bugs (e.g. in
10180 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10181 # suppresses any "Segmentation fault" message there. '((' could
10182 # trigger a bug in pdksh 5.2.14.
10183 for as_var in BASH_ENV ENV MAIL MAILPATH
10184 do eval test x\${$as_var+set} = xset \
10185 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10186 done
10187 PS1='$ '
10188 PS2='> '
10189 PS4='+ '
10190
10191 # NLS nuisances.
10192 LC_ALL=C
10193 export LC_ALL
10194 LANGUAGE=C
10195 export LANGUAGE
10196
10197 # CDPATH.
10198 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10199
10200
10201 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10202 # ----------------------------------------
10203 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10204 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10205 # script with STATUS, using 1 if that was 0.
10206 as_fn_error ()
10207 {
10208 as_status=$1; test $as_status -eq 0 && as_status=1
10209 if test "$4"; then
10210 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10211 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10212 fi
10213 $as_echo "$as_me: error: $2" >&2
10214 as_fn_exit $as_status
10215 } # as_fn_error
10216
10217
10218 # as_fn_set_status STATUS
10219 # -----------------------
10220 # Set $? to STATUS, without forking.
10221 as_fn_set_status ()
10222 {
10223 return $1
10224 } # as_fn_set_status
10225
10226 # as_fn_exit STATUS
10227 # -----------------
10228 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10229 as_fn_exit ()
10230 {
10231 set +e
10232 as_fn_set_status $1
10233 exit $1
10234 } # as_fn_exit
10235
10236 # as_fn_unset VAR
10237 # ---------------
10238 # Portably unset VAR.
10239 as_fn_unset ()
10240 {
10241 { eval $1=; unset $1;}
10242 }
10243 as_unset=as_fn_unset
10244 # as_fn_append VAR VALUE
10245 # ----------------------
10246 # Append the text in VALUE to the end of the definition contained in VAR. Take
10247 # advantage of any shell optimizations that allow amortized linear growth over
10248 # repeated appends, instead of the typical quadratic growth present in naive
10249 # implementations.
10250 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10251 eval 'as_fn_append ()
10252 {
10253 eval $1+=\$2
10254 }'
10255 else
10256 as_fn_append ()
10257 {
10258 eval $1=\$$1\$2
10259 }
10260 fi # as_fn_append
10261
10262 # as_fn_arith ARG...
10263 # ------------------
10264 # Perform arithmetic evaluation on the ARGs, and store the result in the
10265 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10266 # must be portable across $(()) and expr.
10267 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10268 eval 'as_fn_arith ()
10269 {
10270 as_val=$(( $* ))
10271 }'
10272 else
10273 as_fn_arith ()
10274 {
10275 as_val=`expr "$@" || test $? -eq 1`
10276 }
10277 fi # as_fn_arith
10278
10279
10280 if expr a : '\(a\)' >/dev/null 2>&1 &&
10281 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10282 as_expr=expr
10283 else
10284 as_expr=false
10285 fi
10286
10287 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10288 as_basename=basename
10289 else
10290 as_basename=false
10291 fi
10292
10293 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10294 as_dirname=dirname
10295 else
10296 as_dirname=false
10297 fi
10298
10299 as_me=`$as_basename -- "$0" ||
10300 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10301 X"$0" : 'X\(//\)$' \| \
10302 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10303 $as_echo X/"$0" |
10304 sed '/^.*\/\([^/][^/]*\)\/*$/{
10305 s//\1/
10306 q
10307 }
10308 /^X\/\(\/\/\)$/{
10309 s//\1/
10310 q
10311 }
10312 /^X\/\(\/\).*/{
10313 s//\1/
10314 q
10315 }
10316 s/.*/./; q'`
10317
10318 # Avoid depending upon Character Ranges.
10319 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10320 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10321 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10322 as_cr_digits='0123456789'
10323 as_cr_alnum=$as_cr_Letters$as_cr_digits
10324
10325 ECHO_C= ECHO_N= ECHO_T=
10326 case `echo -n x` in #(((((
10327 -n*)
10328 case `echo 'xy\c'` in
10329 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10330 xy) ECHO_C='\c';;
10331 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10332 ECHO_T=' ';;
10333 esac;;
10334 *)
10335 ECHO_N='-n';;
10336 esac
10337
10338 rm -f conf$$ conf$$.exe conf$$.file
10339 if test -d conf$$.dir; then
10340 rm -f conf$$.dir/conf$$.file
10341 else
10342 rm -f conf$$.dir
10343 mkdir conf$$.dir 2>/dev/null
10344 fi
10345 if (echo >conf$$.file) 2>/dev/null; then
10346 if ln -s conf$$.file conf$$ 2>/dev/null; then
10347 as_ln_s='ln -s'
10348 # ... but there are two gotchas:
10349 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10350 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10351 # In both cases, we have to default to `cp -pR'.
10352 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10353 as_ln_s='cp -pR'
10354 elif ln conf$$.file conf$$ 2>/dev/null; then
10355 as_ln_s=ln
10356 else
10357 as_ln_s='cp -pR'
10358 fi
10359 else
10360 as_ln_s='cp -pR'
10361 fi
10362 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10363 rmdir conf$$.dir 2>/dev/null
10364
10365
10366 # as_fn_mkdir_p
10367 # -------------
10368 # Create "$as_dir" as a directory, including parents if necessary.
10369 as_fn_mkdir_p ()
10370 {
10371
10372 case $as_dir in #(
10373 -*) as_dir=./$as_dir;;
10374 esac
10375 test -d "$as_dir" || eval $as_mkdir_p || {
10376 as_dirs=
10377 while :; do
10378 case $as_dir in #(
10379 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10380 *) as_qdir=$as_dir;;
10381 esac
10382 as_dirs="'$as_qdir' $as_dirs"
10383 as_dir=`$as_dirname -- "$as_dir" ||
10384 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10385 X"$as_dir" : 'X\(//\)[^/]' \| \
10386 X"$as_dir" : 'X\(//\)$' \| \
10387 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10388 $as_echo X"$as_dir" |
10389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10390 s//\1/
10391 q
10392 }
10393 /^X\(\/\/\)[^/].*/{
10394 s//\1/
10395 q
10396 }
10397 /^X\(\/\/\)$/{
10398 s//\1/
10399 q
10400 }
10401 /^X\(\/\).*/{
10402 s//\1/
10403 q
10404 }
10405 s/.*/./; q'`
10406 test -d "$as_dir" && break
10407 done
10408 test -z "$as_dirs" || eval "mkdir $as_dirs"
10409 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10410
10411
10412 } # as_fn_mkdir_p
10413 if mkdir -p . 2>/dev/null; then
10414 as_mkdir_p='mkdir -p "$as_dir"'
10415 else
10416 test -d ./-p && rmdir ./-p
10417 as_mkdir_p=false
10418 fi
10419
10420
10421 # as_fn_executable_p FILE
10422 # -----------------------
10423 # Test if FILE is an executable regular file.
10424 as_fn_executable_p ()
10425 {
10426 test -f "$1" && test -x "$1"
10427 } # as_fn_executable_p
10428 as_test_x='test -x'
10429 as_executable_p=as_fn_executable_p
10430
10431 # Sed expression to map a string onto a valid CPP name.
10432 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10433
10434 # Sed expression to map a string onto a valid variable name.
10435 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10436
10437
10438 exec 6>&1
10439 ## ----------------------------------- ##
10440 ## Main body of $CONFIG_STATUS script. ##
10441 ## ----------------------------------- ##
10442 _ASEOF
10443 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10444
10445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10446 # Save the log message, to keep $0 and so on meaningful, and to
10447 # report actual input values of CONFIG_FILES etc. instead of their
10448 # values after options handling.
10449 ac_log="
10450 This file was extended by $as_me, which was
10451 generated by GNU Autoconf 2.69. Invocation command line was
10452
10453 CONFIG_FILES = $CONFIG_FILES
10454 CONFIG_HEADERS = $CONFIG_HEADERS
10455 CONFIG_LINKS = $CONFIG_LINKS
10456 CONFIG_COMMANDS = $CONFIG_COMMANDS
10457 $ $0 $@
10458
10459 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10460 "
10461
10462 _ACEOF
10463
10464 case $ac_config_files in *"
10465 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10466 esac
10467
10468 case $ac_config_headers in *"
10469 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10470 esac
10471
10472
10473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10474 # Files that config.status was made for.
10475 config_files="$ac_config_files"
10476 config_headers="$ac_config_headers"
10477 config_commands="$ac_config_commands"
10478
10479 _ACEOF
10480
10481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10482 ac_cs_usage="\
10483 \`$as_me' instantiates files and other configuration actions
10484 from templates according to the current configuration. Unless the files
10485 and actions are specified as TAGs, all are instantiated by default.
10486
10487 Usage: $0 [OPTION]... [TAG]...
10488
10489 -h, --help print this help, then exit
10490 -V, --version print version number and configuration settings, then exit
10491 --config print configuration, then exit
10492 -q, --quiet, --silent
10493 do not print progress messages
10494 -d, --debug don't remove temporary files
10495 --recheck update $as_me by reconfiguring in the same conditions
10496 --file=FILE[:TEMPLATE]
10497 instantiate the configuration file FILE
10498 --header=FILE[:TEMPLATE]
10499 instantiate the configuration header FILE
10500
10501 Configuration files:
10502 $config_files
10503
10504 Configuration headers:
10505 $config_headers
10506
10507 Configuration commands:
10508 $config_commands
10509
10510 Report bugs to the package provider."
10511
10512 _ACEOF
10513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10514 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10515 ac_cs_version="\\
10516 config.status
10517 configured by $0, generated by GNU Autoconf 2.69,
10518 with options \\"\$ac_cs_config\\"
10519
10520 Copyright (C) 2012 Free Software Foundation, Inc.
10521 This config.status script is free software; the Free Software Foundation
10522 gives unlimited permission to copy, distribute and modify it."
10523
10524 ac_pwd='$ac_pwd'
10525 srcdir='$srcdir'
10526 INSTALL='$INSTALL'
10527 test -n "\$AWK" || AWK=awk
10528 _ACEOF
10529
10530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10531 # The default lists apply if the user does not specify any file.
10532 ac_need_defaults=:
10533 while test $# != 0
10534 do
10535 case $1 in
10536 --*=?*)
10537 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10538 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10539 ac_shift=:
10540 ;;
10541 --*=)
10542 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10543 ac_optarg=
10544 ac_shift=:
10545 ;;
10546 *)
10547 ac_option=$1
10548 ac_optarg=$2
10549 ac_shift=shift
10550 ;;
10551 esac
10552
10553 case $ac_option in
10554 # Handling of the options.
10555 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10556 ac_cs_recheck=: ;;
10557 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10558 $as_echo "$ac_cs_version"; exit ;;
10559 --config | --confi | --conf | --con | --co | --c )
10560 $as_echo "$ac_cs_config"; exit ;;
10561 --debug | --debu | --deb | --de | --d | -d )
10562 debug=: ;;
10563 --file | --fil | --fi | --f )
10564 $ac_shift
10565 case $ac_optarg in
10566 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10567 '') as_fn_error $? "missing file argument" ;;
10568 esac
10569 as_fn_append CONFIG_FILES " '$ac_optarg'"
10570 ac_need_defaults=false;;
10571 --header | --heade | --head | --hea )
10572 $ac_shift
10573 case $ac_optarg in
10574 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10575 esac
10576 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10577 ac_need_defaults=false;;
10578 --he | --h)
10579 # Conflict between --help and --header
10580 as_fn_error $? "ambiguous option: \`$1'
10581 Try \`$0 --help' for more information.";;
10582 --help | --hel | -h )
10583 $as_echo "$ac_cs_usage"; exit ;;
10584 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10585 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10586 ac_cs_silent=: ;;
10587
10588 # This is an error.
10589 -*) as_fn_error $? "unrecognized option: \`$1'
10590 Try \`$0 --help' for more information." ;;
10591
10592 *) as_fn_append ac_config_targets " $1"
10593 ac_need_defaults=false ;;
10594
10595 esac
10596 shift
10597 done
10598
10599 ac_configure_extra_args=
10600
10601 if $ac_cs_silent; then
10602 exec 6>/dev/null
10603 ac_configure_extra_args="$ac_configure_extra_args --silent"
10604 fi
10605
10606 _ACEOF
10607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10608 if \$ac_cs_recheck; then
10609 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10610 shift
10611 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10612 CONFIG_SHELL='$SHELL'
10613 export CONFIG_SHELL
10614 exec "\$@"
10615 fi
10616
10617 _ACEOF
10618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10619 exec 5>>config.log
10620 {
10621 echo
10622 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10623 ## Running $as_me. ##
10624 _ASBOX
10625 $as_echo "$ac_log"
10626 } >&5
10627
10628 _ACEOF
10629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10630 #
10631 # INIT-COMMANDS
10632 #
10633
10634 srcdir="${srcdir}"
10635 objroot="${objroot}"
10636
10637
10638 srcdir="${srcdir}"
10639 objroot="${objroot}"
10640
10641
10642 srcdir="${srcdir}"
10643 objroot="${objroot}"
10644 mangling_map="${mangling_map}"
10645 public_syms="${public_syms}"
10646 JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
10647
10648
10649 srcdir="${srcdir}"
10650 objroot="${objroot}"
10651
10652
10653 srcdir="${srcdir}"
10654 objroot="${objroot}"
10655
10656
10657 SHELL="${SHELL}"
10658 srcdir="${srcdir}"
10659 objroot="${objroot}"
10660 LG_QUANTA="${LG_QUANTA}"
10661 LG_TINY_MIN=${LG_TINY_MIN}
10662 LG_PAGE_SIZES="${LG_PAGE_SIZES}"
10663 LG_SIZE_CLASS_GROUP=${LG_SIZE_CLASS_GROUP}
10664
10665
10666 srcdir="${srcdir}"
10667 objroot="${objroot}"
10668
10669
10670 srcdir="${srcdir}"
10671 objroot="${objroot}"
10672
10673
10674 srcdir="${srcdir}"
10675 objroot="${objroot}"
10676
10677
10678 srcdir="${srcdir}"
10679 objroot="${objroot}"
10680
10681
10682 srcdir="${srcdir}"
10683 objroot="${objroot}"
10684 install_suffix="${install_suffix}"
10685
10686
10687 _ACEOF
10688
10689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10690
10691 # Handling of arguments.
10692 for ac_config_target in $ac_config_targets
10693 do
10694 case $ac_config_target in
10695 "include/jemalloc/internal/private_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_namespace.h" ;;
10696 "include/jemalloc/internal/private_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_unnamespace.h" ;;
10697 "include/jemalloc/internal/public_symbols.txt") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_symbols.txt" ;;
10698 "include/jemalloc/internal/public_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_namespace.h" ;;
10699 "include/jemalloc/internal/public_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_unnamespace.h" ;;
10700 "include/jemalloc/internal/size_classes.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/size_classes.h" ;;
10701 "include/jemalloc/jemalloc_protos_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_protos_jet.h" ;;
10702 "include/jemalloc/jemalloc_rename.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_rename.h" ;;
10703 "include/jemalloc/jemalloc_mangle.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle.h" ;;
10704 "include/jemalloc/jemalloc_mangle_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle_jet.h" ;;
10705 "include/jemalloc/jemalloc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc.h" ;;
10706 "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;;
10707 "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;;
10708 "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;;
10709 "bin/jemalloc-config") CONFIG_FILES="$CONFIG_FILES bin/jemalloc-config" ;;
10710 "bin/jemalloc.sh") CONFIG_FILES="$CONFIG_FILES bin/jemalloc.sh" ;;
10711 "bin/jeprof") CONFIG_FILES="$CONFIG_FILES bin/jeprof" ;;
10712
10713 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10714 esac
10715 done
10716
10717
10718 # If the user did not use the arguments to specify the items to instantiate,
10719 # then the envvar interface is used. Set only those that are not.
10720 # We use the long form for the default assignment because of an extremely
10721 # bizarre bug on SunOS 4.1.3.
10722 if $ac_need_defaults; then
10723 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10724 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10725 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10726 fi
10727
10728 # Have a temporary directory for convenience. Make it in the build tree
10729 # simply because there is no reason against having it here, and in addition,
10730 # creating and moving files from /tmp can sometimes cause problems.
10731 # Hook for its removal unless debugging.
10732 # Note that there is a small window in which the directory will not be cleaned:
10733 # after its creation but before its name has been assigned to `$tmp'.
10734 $debug ||
10735 {
10736 tmp= ac_tmp=
10737 trap 'exit_status=$?
10738 : "${ac_tmp:=$tmp}"
10739 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10740 ' 0
10741 trap 'as_fn_exit 1' 1 2 13 15
10742 }
10743 # Create a (secure) tmp directory for tmp files.
10744
10745 {
10746 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10747 test -d "$tmp"
10748 } ||
10749 {
10750 tmp=./conf$$-$RANDOM
10751 (umask 077 && mkdir "$tmp")
10752 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10753 ac_tmp=$tmp
10754
10755 # Set up the scripts for CONFIG_FILES section.
10756 # No need to generate them if there are no CONFIG_FILES.
10757 # This happens for instance with `./config.status config.h'.
10758 if test -n "$CONFIG_FILES"; then
10759
10760
10761 ac_cr=`echo X | tr X '\015'`
10762 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10763 # But we know of no other shell where ac_cr would be empty at this
10764 # point, so we can use a bashism as a fallback.
10765 if test "x$ac_cr" = x; then
10766 eval ac_cr=\$\'\\r\'
10767 fi
10768 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10769 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10770 ac_cs_awk_cr='\\r'
10771 else
10772 ac_cs_awk_cr=$ac_cr
10773 fi
10774
10775 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10776 _ACEOF
10777
10778
10779 {
10780 echo "cat >conf$$subs.awk <<_ACEOF" &&
10781 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10782 echo "_ACEOF"
10783 } >conf$$subs.sh ||
10784 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10785 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10786 ac_delim='%!_!# '
10787 for ac_last_try in false false false false false :; do
10788 . ./conf$$subs.sh ||
10789 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10790
10791 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10792 if test $ac_delim_n = $ac_delim_num; then
10793 break
10794 elif $ac_last_try; then
10795 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10796 else
10797 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10798 fi
10799 done
10800 rm -f conf$$subs.sh
10801
10802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10803 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10804 _ACEOF
10805 sed -n '
10806 h
10807 s/^/S["/; s/!.*/"]=/
10808 p
10809 g
10810 s/^[^!]*!//
10811 :repl
10812 t repl
10813 s/'"$ac_delim"'$//
10814 t delim
10815 :nl
10816 h
10817 s/\(.\{148\}\)..*/\1/
10818 t more1
10819 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10820 p
10821 n
10822 b repl
10823 :more1
10824 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10825 p
10826 g
10827 s/.\{148\}//
10828 t nl
10829 :delim
10830 h
10831 s/\(.\{148\}\)..*/\1/
10832 t more2
10833 s/["\\]/\\&/g; s/^/"/; s/$/"/
10834 p
10835 b
10836 :more2
10837 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10838 p
10839 g
10840 s/.\{148\}//
10841 t delim
10842 ' <conf$$subs.awk | sed '
10843 /^[^""]/{
10844 N
10845 s/\n//
10846 }
10847 ' >>$CONFIG_STATUS || ac_write_fail=1
10848 rm -f conf$$subs.awk
10849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10850 _ACAWK
10851 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10852 for (key in S) S_is_set[key] = 1
10853 FS = "\a"
10854
10855 }
10856 {
10857 line = $ 0
10858 nfields = split(line, field, "@")
10859 substed = 0
10860 len = length(field[1])
10861 for (i = 2; i < nfields; i++) {
10862 key = field[i]
10863 keylen = length(key)
10864 if (S_is_set[key]) {
10865 value = S[key]
10866 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10867 len += length(value) + length(field[++i])
10868 substed = 1
10869 } else
10870 len += 1 + keylen
10871 }
10872
10873 print line
10874 }
10875
10876 _ACAWK
10877 _ACEOF
10878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10879 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10880 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10881 else
10882 cat
10883 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10884 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10885 _ACEOF
10886
10887 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10888 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10889 # trailing colons and then remove the whole line if VPATH becomes empty
10890 # (actually we leave an empty line to preserve line numbers).
10891 if test "x$srcdir" = x.; then
10892 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10893 h
10894 s///
10895 s/^/:/
10896 s/[ ]*$/:/
10897 s/:\$(srcdir):/:/g
10898 s/:\${srcdir}:/:/g
10899 s/:@srcdir@:/:/g
10900 s/^:*//
10901 s/:*$//
10902 x
10903 s/\(=[ ]*\).*/\1/
10904 G
10905 s/\n//
10906 s/^[^=]*=[ ]*$//
10907 }'
10908 fi
10909
10910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10911 fi # test -n "$CONFIG_FILES"
10912
10913 # Set up the scripts for CONFIG_HEADERS section.
10914 # No need to generate them if there are no CONFIG_HEADERS.
10915 # This happens for instance with `./config.status Makefile'.
10916 if test -n "$CONFIG_HEADERS"; then
10917 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10918 BEGIN {
10919 _ACEOF
10920
10921 # Transform confdefs.h into an awk script `defines.awk', embedded as
10922 # here-document in config.status, that substitutes the proper values into
10923 # config.h.in to produce config.h.
10924
10925 # Create a delimiter string that does not exist in confdefs.h, to ease
10926 # handling of long lines.
10927 ac_delim='%!_!# '
10928 for ac_last_try in false false :; do
10929 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10930 if test -z "$ac_tt"; then
10931 break
10932 elif $ac_last_try; then
10933 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10934 else
10935 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10936 fi
10937 done
10938
10939 # For the awk script, D is an array of macro values keyed by name,
10940 # likewise P contains macro parameters if any. Preserve backslash
10941 # newline sequences.
10942
10943 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10944 sed -n '
10945 s/.\{148\}/&'"$ac_delim"'/g
10946 t rset
10947 :rset
10948 s/^[ ]*#[ ]*define[ ][ ]*/ /
10949 t def
10950 d
10951 :def
10952 s/\\$//
10953 t bsnl
10954 s/["\\]/\\&/g
10955 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10956 D["\1"]=" \3"/p
10957 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10958 d
10959 :bsnl
10960 s/["\\]/\\&/g
10961 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10962 D["\1"]=" \3\\\\\\n"\\/p
10963 t cont
10964 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10965 t cont
10966 d
10967 :cont
10968 n
10969 s/.\{148\}/&'"$ac_delim"'/g
10970 t clear
10971 :clear
10972 s/\\$//
10973 t bsnlc
10974 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10975 d
10976 :bsnlc
10977 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10978 b cont
10979 ' <confdefs.h | sed '
10980 s/'"$ac_delim"'/"\\\
10981 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10982
10983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10984 for (key in D) D_is_set[key] = 1
10985 FS = "\a"
10986 }
10987 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10988 line = \$ 0
10989 split(line, arg, " ")
10990 if (arg[1] == "#") {
10991 defundef = arg[2]
10992 mac1 = arg[3]
10993 } else {
10994 defundef = substr(arg[1], 2)
10995 mac1 = arg[2]
10996 }
10997 split(mac1, mac2, "(") #)
10998 macro = mac2[1]
10999 prefix = substr(line, 1, index(line, defundef) - 1)
11000 if (D_is_set[macro]) {
11001 # Preserve the white space surrounding the "#".
11002 print prefix "define", macro P[macro] D[macro]
11003 next
11004 } else {
11005 # Replace #undef with comments. This is necessary, for example,
11006 # in the case of _POSIX_SOURCE, which is predefined and required
11007 # on some systems where configure will not decide to define it.
11008 if (defundef == "undef") {
11009 print "/*", prefix defundef, macro, "*/"
11010 next
11011 }
11012 }
11013 }
11014 { print }
11015 _ACAWK
11016 _ACEOF
11017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11018 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11019 fi # test -n "$CONFIG_HEADERS"
11020
11021
11022 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11023 shift
11024 for ac_tag
11025 do
11026 case $ac_tag in
11027 :[FHLC]) ac_mode=$ac_tag; continue;;
11028 esac
11029 case $ac_mode$ac_tag in
11030 :[FHL]*:*);;
11031 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11032 :[FH]-) ac_tag=-:-;;
11033 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11034 esac
11035 ac_save_IFS=$IFS
11036 IFS=:
11037 set x $ac_tag
11038 IFS=$ac_save_IFS
11039 shift
11040 ac_file=$1
11041 shift
11042
11043 case $ac_mode in
11044 :L) ac_source=$1;;
11045 :[FH])
11046 ac_file_inputs=
11047 for ac_f
11048 do
11049 case $ac_f in
11050 -) ac_f="$ac_tmp/stdin";;
11051 *) # Look for the file first in the build tree, then in the source tree
11052 # (if the path is not absolute). The absolute path cannot be DOS-style,
11053 # because $ac_f cannot contain `:'.
11054 test -f "$ac_f" ||
11055 case $ac_f in
11056 [\\/$]*) false;;
11057 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11058 esac ||
11059 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11060 esac
11061 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11062 as_fn_append ac_file_inputs " '$ac_f'"
11063 done
11064
11065 # Let's still pretend it is `configure' which instantiates (i.e., don't
11066 # use $as_me), people would be surprised to read:
11067 # /* config.h. Generated by config.status. */
11068 configure_input='Generated from '`
11069 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11070 `' by configure.'
11071 if test x"$ac_file" != x-; then
11072 configure_input="$ac_file. $configure_input"
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11074 $as_echo "$as_me: creating $ac_file" >&6;}
11075 fi
11076 # Neutralize special characters interpreted by sed in replacement strings.
11077 case $configure_input in #(
11078 *\&* | *\|* | *\\* )
11079 ac_sed_conf_input=`$as_echo "$configure_input" |
11080 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11081 *) ac_sed_conf_input=$configure_input;;
11082 esac
11083
11084 case $ac_tag in
11085 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11086 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11087 esac
11088 ;;
11089 esac
11090
11091 ac_dir=`$as_dirname -- "$ac_file" ||
11092 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11093 X"$ac_file" : 'X\(//\)[^/]' \| \
11094 X"$ac_file" : 'X\(//\)$' \| \
11095 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11096 $as_echo X"$ac_file" |
11097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11098 s//\1/
11099 q
11100 }
11101 /^X\(\/\/\)[^/].*/{
11102 s//\1/
11103 q
11104 }
11105 /^X\(\/\/\)$/{
11106 s//\1/
11107 q
11108 }
11109 /^X\(\/\).*/{
11110 s//\1/
11111 q
11112 }
11113 s/.*/./; q'`
11114 as_dir="$ac_dir"; as_fn_mkdir_p
11115 ac_builddir=.
11116
11117 case "$ac_dir" in
11118 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11119 *)
11120 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11121 # A ".." for each directory in $ac_dir_suffix.
11122 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11123 case $ac_top_builddir_sub in
11124 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11125 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11126 esac ;;
11127 esac
11128 ac_abs_top_builddir=$ac_pwd
11129 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11130 # for backward compatibility:
11131 ac_top_builddir=$ac_top_build_prefix
11132
11133 case $srcdir in
11134 .) # We are building in place.
11135 ac_srcdir=.
11136 ac_top_srcdir=$ac_top_builddir_sub
11137 ac_abs_top_srcdir=$ac_pwd ;;
11138 [\\/]* | ?:[\\/]* ) # Absolute name.
11139 ac_srcdir=$srcdir$ac_dir_suffix;
11140 ac_top_srcdir=$srcdir
11141 ac_abs_top_srcdir=$srcdir ;;
11142 *) # Relative name.
11143 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11144 ac_top_srcdir=$ac_top_build_prefix$srcdir
11145 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11146 esac
11147 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11148
11149
11150 case $ac_mode in
11151 :F)
11152 #
11153 # CONFIG_FILE
11154 #
11155
11156 case $INSTALL in
11157 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11158 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11159 esac
11160 _ACEOF
11161
11162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11163 # If the template does not know about datarootdir, expand it.
11164 # FIXME: This hack should be removed a few years after 2.60.
11165 ac_datarootdir_hack=; ac_datarootdir_seen=
11166 ac_sed_dataroot='
11167 /datarootdir/ {
11168 p
11169 q
11170 }
11171 /@datadir@/p
11172 /@docdir@/p
11173 /@infodir@/p
11174 /@localedir@/p
11175 /@mandir@/p'
11176 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11177 *datarootdir*) ac_datarootdir_seen=yes;;
11178 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11180 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11181 _ACEOF
11182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11183 ac_datarootdir_hack='
11184 s&@datadir@&$datadir&g
11185 s&@docdir@&$docdir&g
11186 s&@infodir@&$infodir&g
11187 s&@localedir@&$localedir&g
11188 s&@mandir@&$mandir&g
11189 s&\\\${datarootdir}&$datarootdir&g' ;;
11190 esac
11191 _ACEOF
11192
11193 # Neutralize VPATH when `$srcdir' = `.'.
11194 # Shell code in configure.ac might set extrasub.
11195 # FIXME: do we really want to maintain this feature?
11196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11197 ac_sed_extra="$ac_vpsub
11198 $extrasub
11199 _ACEOF
11200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11201 :t
11202 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11203 s|@configure_input@|$ac_sed_conf_input|;t t
11204 s&@top_builddir@&$ac_top_builddir_sub&;t t
11205 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11206 s&@srcdir@&$ac_srcdir&;t t
11207 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11208 s&@top_srcdir@&$ac_top_srcdir&;t t
11209 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11210 s&@builddir@&$ac_builddir&;t t
11211 s&@abs_builddir@&$ac_abs_builddir&;t t
11212 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11213 s&@INSTALL@&$ac_INSTALL&;t t
11214 $ac_datarootdir_hack
11215 "
11216 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11217 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11218
11219 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11220 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11221 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11222 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11224 which seems to be undefined. Please make sure it is defined" >&5
11225 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11226 which seems to be undefined. Please make sure it is defined" >&2;}
11227
11228 rm -f "$ac_tmp/stdin"
11229 case $ac_file in
11230 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11231 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11232 esac \
11233 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11234 ;;
11235 :H)
11236 #
11237 # CONFIG_HEADER
11238 #
11239 if test x"$ac_file" != x-; then
11240 {
11241 $as_echo "/* $configure_input */" \
11242 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11243 } >"$ac_tmp/config.h" \
11244 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11245 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11247 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11248 else
11249 rm -f "$ac_file"
11250 mv "$ac_tmp/config.h" "$ac_file" \
11251 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11252 fi
11253 else
11254 $as_echo "/* $configure_input */" \
11255 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11256 || as_fn_error $? "could not create -" "$LINENO" 5
11257 fi
11258 ;;
11259
11260 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11261 $as_echo "$as_me: executing $ac_file commands" >&6;}
11262 ;;
11263 esac
11264
11265
11266 case $ac_file$ac_mode in
11267 "include/jemalloc/internal/private_namespace.h":C)
11268 mkdir -p "${objroot}include/jemalloc/internal"
11269 "${srcdir}/include/jemalloc/internal/private_namespace.sh" "${srcdir}/include/jemalloc/internal/private_symbols.txt" > "${objroot}include/jemalloc/internal/private_namespace.h"
11270 ;;
11271 "include/jemalloc/internal/private_unnamespace.h":C)
11272 mkdir -p "${objroot}include/jemalloc/internal"
11273 "${srcdir}/include/jemalloc/internal/private_unnamespace.sh" "${srcdir}/include/jemalloc/internal/private_symbols.txt" > "${objroot}include/jemalloc/internal/private_unnamespace.h"
11274 ;;
11275 "include/jemalloc/internal/public_symbols.txt":C)
11276 f="${objroot}include/jemalloc/internal/public_symbols.txt"
11277 mkdir -p "${objroot}include/jemalloc/internal"
11278 cp /dev/null "${f}"
11279 for nm in `echo ${mangling_map} |tr ',' ' '` ; do
11280 n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'`
11281 m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'`
11282 echo "${n}:${m}" >> "${f}"
11283 public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${n}\$" |tr '\n' ' '`
11284 done
11285 for sym in ${public_syms} ; do
11286 n="${sym}"
11287 m="${JEMALLOC_PREFIX}${sym}"
11288 echo "${n}:${m}" >> "${f}"
11289 done
11290 ;;
11291 "include/jemalloc/internal/public_namespace.h":C)
11292 mkdir -p "${objroot}include/jemalloc/internal"
11293 "${srcdir}/include/jemalloc/internal/public_namespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_namespace.h"
11294 ;;
11295 "include/jemalloc/internal/public_unnamespace.h":C)
11296 mkdir -p "${objroot}include/jemalloc/internal"
11297 "${srcdir}/include/jemalloc/internal/public_unnamespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_unnamespace.h"
11298 ;;
11299 "include/jemalloc/internal/size_classes.h":C)
11300 mkdir -p "${objroot}include/jemalloc/internal"
11301 "${SHELL}" "${srcdir}/include/jemalloc/internal/size_classes.sh" "${LG_QUANTA}" ${LG_TINY_MIN} "${LG_PAGE_SIZES}" ${LG_SIZE_CLASS_GROUP} > "${objroot}include/jemalloc/internal/size_classes.h"
11302 ;;
11303 "include/jemalloc/jemalloc_protos_jet.h":C)
11304 mkdir -p "${objroot}include/jemalloc"
11305 cat "${srcdir}/include/jemalloc/jemalloc_protos.h.in" | sed -e 's/@je_@/jet_/g' > "${objroot}include/jemalloc/jemalloc_protos_jet.h"
11306 ;;
11307 "include/jemalloc/jemalloc_rename.h":C)
11308 mkdir -p "${objroot}include/jemalloc"
11309 "${srcdir}/include/jemalloc/jemalloc_rename.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/jemalloc_rename.h"
11310 ;;
11311 "include/jemalloc/jemalloc_mangle.h":C)
11312 mkdir -p "${objroot}include/jemalloc"
11313 "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" je_ > "${objroot}include/jemalloc/jemalloc_mangle.h"
11314 ;;
11315 "include/jemalloc/jemalloc_mangle_jet.h":C)
11316 mkdir -p "${objroot}include/jemalloc"
11317 "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" jet_ > "${objroot}include/jemalloc/jemalloc_mangle_jet.h"
11318 ;;
11319 "include/jemalloc/jemalloc.h":C)
11320 mkdir -p "${objroot}include/jemalloc"
11321 "${srcdir}/include/jemalloc/jemalloc.sh" "${objroot}" > "${objroot}include/jemalloc/jemalloc${install_suffix}.h"
11322 ;;
11323
11324 esac
11325 done # for ac_tag
11326
11327
11328 as_fn_exit 0
11329 _ACEOF
11330 ac_clean_files=$ac_clean_files_save
11331
11332 test $ac_write_fail = 0 ||
11333 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11334
11335
11336 # configure is writing to config.log, and then calls config.status.
11337 # config.status does its own redirection, appending to config.log.
11338 # Unfortunately, on DOS this fails, as config.log is still kept open
11339 # by configure, so config.status won't be able to write to it; its
11340 # output is simply discarded. So we exec the FD to /dev/null,
11341 # effectively closing config.log, so it can be properly (re)opened and
11342 # appended to by config.status. When coming back to configure, we
11343 # need to make the FD available again.
11344 if test "$no_create" != yes; then
11345 ac_cs_success=:
11346 ac_config_status_args=
11347 test "$silent" = yes &&
11348 ac_config_status_args="$ac_config_status_args --quiet"
11349 exec 5>/dev/null
11350 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11351 exec 5>>config.log
11352 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11353 # would make configure fail if this is the last instruction.
11354 $ac_cs_success || as_fn_exit 1
11355 fi
11356 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11358 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11359 fi
11360
11361
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
11363 $as_echo "===============================================================================" >&6; }
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version : ${jemalloc_version}" >&5
11365 $as_echo "jemalloc version : ${jemalloc_version}" >&6; }
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: library revision : ${rev}" >&5
11367 $as_echo "library revision : ${rev}" >&6; }
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
11369 $as_echo "" >&6; }
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIG : ${CONFIG}" >&5
11371 $as_echo "CONFIG : ${CONFIG}" >&6; }
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC : ${CC}" >&5
11373 $as_echo "CC : ${CC}" >&6; }
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CFLAGS : ${CONFIGURE_CFLAGS}" >&5
11375 $as_echo "CONFIGURE_CFLAGS : ${CONFIGURE_CFLAGS}" >&6; }
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CFLAGS : ${SPECIFIED_CFLAGS}" >&5
11377 $as_echo "SPECIFIED_CFLAGS : ${SPECIFIED_CFLAGS}" >&6; }
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CFLAGS : ${EXTRA_CFLAGS}" >&5
11379 $as_echo "EXTRA_CFLAGS : ${EXTRA_CFLAGS}" >&6; }
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS : ${CPPFLAGS}" >&5
11381 $as_echo "CPPFLAGS : ${CPPFLAGS}" >&6; }
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS : ${LDFLAGS}" >&5
11383 $as_echo "LDFLAGS : ${LDFLAGS}" >&6; }
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&5
11385 $as_echo "EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&6; }
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS : ${LIBS}" >&5
11387 $as_echo "LIBS : ${LIBS}" >&6; }
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA : ${RPATH_EXTRA}" >&5
11389 $as_echo "RPATH_EXTRA : ${RPATH_EXTRA}" >&6; }
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
11391 $as_echo "" >&6; }
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC : ${XSLTPROC}" >&5
11393 $as_echo "XSLTPROC : ${XSLTPROC}" >&6; }
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT : ${XSLROOT}" >&5
11395 $as_echo "XSLROOT : ${XSLROOT}" >&6; }
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
11397 $as_echo "" >&6; }
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX : ${PREFIX}" >&5
11399 $as_echo "PREFIX : ${PREFIX}" >&6; }
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR : ${BINDIR}" >&5
11401 $as_echo "BINDIR : ${BINDIR}" >&6; }
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR : ${DATADIR}" >&5
11403 $as_echo "DATADIR : ${DATADIR}" >&6; }
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR : ${INCLUDEDIR}" >&5
11405 $as_echo "INCLUDEDIR : ${INCLUDEDIR}" >&6; }
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR : ${LIBDIR}" >&5
11407 $as_echo "LIBDIR : ${LIBDIR}" >&6; }
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR : ${MANDIR}" >&5
11409 $as_echo "MANDIR : ${MANDIR}" >&6; }
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
11411 $as_echo "" >&6; }
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot : ${srcroot}" >&5
11413 $as_echo "srcroot : ${srcroot}" >&6; }
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot : ${abs_srcroot}" >&5
11415 $as_echo "abs_srcroot : ${abs_srcroot}" >&6; }
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot : ${objroot}" >&5
11417 $as_echo "objroot : ${objroot}" >&6; }
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot : ${abs_objroot}" >&5
11419 $as_echo "abs_objroot : ${abs_objroot}" >&6; }
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
11421 $as_echo "" >&6; }
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&5
11423 $as_echo "JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&6; }
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5
11425 $as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; }
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5
11427 $as_echo " : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; }
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix : ${install_suffix}" >&5
11429 $as_echo "install_suffix : ${install_suffix}" >&6; }
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc_conf : ${config_malloc_conf}" >&5
11431 $as_echo "malloc_conf : ${config_malloc_conf}" >&6; }
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen : ${enable_autogen}" >&5
11433 $as_echo "autogen : ${enable_autogen}" >&6; }
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cc-silence : ${enable_cc_silence}" >&5
11435 $as_echo "cc-silence : ${enable_cc_silence}" >&6; }
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug : ${enable_debug}" >&5
11437 $as_echo "debug : ${enable_debug}" >&6; }
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: code-coverage : ${enable_code_coverage}" >&5
11439 $as_echo "code-coverage : ${enable_code_coverage}" >&6; }
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: stats : ${enable_stats}" >&5
11441 $as_echo "stats : ${enable_stats}" >&6; }
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof : ${enable_prof}" >&5
11443 $as_echo "prof : ${enable_prof}" >&6; }
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind : ${enable_prof_libunwind}" >&5
11445 $as_echo "prof-libunwind : ${enable_prof_libunwind}" >&6; }
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc : ${enable_prof_libgcc}" >&5
11447 $as_echo "prof-libgcc : ${enable_prof_libgcc}" >&6; }
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc : ${enable_prof_gcc}" >&5
11449 $as_echo "prof-gcc : ${enable_prof_gcc}" >&6; }
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: tcache : ${enable_tcache}" >&5
11451 $as_echo "tcache : ${enable_tcache}" >&6; }
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: thp : ${enable_thp}" >&5
11453 $as_echo "thp : ${enable_thp}" >&6; }
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fill : ${enable_fill}" >&5
11455 $as_echo "fill : ${enable_fill}" >&6; }
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: utrace : ${enable_utrace}" >&5
11457 $as_echo "utrace : ${enable_utrace}" >&6; }
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: valgrind : ${enable_valgrind}" >&5
11459 $as_echo "valgrind : ${enable_valgrind}" >&6; }
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc : ${enable_xmalloc}" >&5
11461 $as_echo "xmalloc : ${enable_xmalloc}" >&6; }
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: munmap : ${enable_munmap}" >&5
11463 $as_echo "munmap : ${enable_munmap}" >&6; }
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock : ${enable_lazy_lock}" >&5
11465 $as_echo "lazy_lock : ${enable_lazy_lock}" >&6; }
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: tls : ${enable_tls}" >&5
11467 $as_echo "tls : ${enable_tls}" >&6; }
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cache-oblivious : ${enable_cache_oblivious}" >&5
11469 $as_echo "cache-oblivious : ${enable_cache_oblivious}" >&6; }
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
11471 $as_echo "===============================================================================" >&6; }