configure revision 1.1 1 1.1 christos #! /bin/sh
2 1.1 christos # Guess values for system-dependent variables and create Makefiles.
3 1.1 christos # Generated by GNU Autoconf 2.69.
4 1.1 christos #
5 1.1 christos #
6 1.1 christos # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 1.1 christos #
8 1.1 christos #
9 1.1 christos # This configure script is free software; the Free Software Foundation
10 1.1 christos # gives unlimited permission to copy, distribute and modify it.
11 1.1 christos ## -------------------- ##
12 1.1 christos ## M4sh Initialization. ##
13 1.1 christos ## -------------------- ##
14 1.1 christos
15 1.1 christos # Be more Bourne compatible
16 1.1 christos DUALCASE=1; export DUALCASE # for MKS sh
17 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 1.1 christos emulate sh
19 1.1 christos NULLCMD=:
20 1.1 christos # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 1.1 christos # is contrary to our usage. Disable this feature.
22 1.1 christos alias -g '${1+"$@"}'='"$@"'
23 1.1 christos setopt NO_GLOB_SUBST
24 1.1 christos else
25 1.1 christos case `(set -o) 2>/dev/null` in #(
26 1.1 christos *posix*) :
27 1.1 christos set -o posix ;; #(
28 1.1 christos *) :
29 1.1 christos ;;
30 1.1 christos esac
31 1.1 christos fi
32 1.1 christos
33 1.1 christos
34 1.1 christos as_nl='
35 1.1 christos '
36 1.1 christos export as_nl
37 1.1 christos # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 1.1 christos as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 1.1 christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 1.1 christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 1.1 christos # Prefer a ksh shell builtin over an external printf program on Solaris,
42 1.1 christos # but without wasting forks for bash or zsh.
43 1.1 christos if test -z "$BASH_VERSION$ZSH_VERSION" \
44 1.1 christos && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 1.1 christos as_echo='print -r --'
46 1.1 christos as_echo_n='print -rn --'
47 1.1 christos elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 1.1 christos as_echo='printf %s\n'
49 1.1 christos as_echo_n='printf %s'
50 1.1 christos else
51 1.1 christos if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 1.1 christos as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 1.1 christos as_echo_n='/usr/ucb/echo -n'
54 1.1 christos else
55 1.1 christos as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 1.1 christos as_echo_n_body='eval
57 1.1 christos arg=$1;
58 1.1 christos case $arg in #(
59 1.1 christos *"$as_nl"*)
60 1.1 christos expr "X$arg" : "X\\(.*\\)$as_nl";
61 1.1 christos arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 1.1 christos esac;
63 1.1 christos expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 1.1 christos '
65 1.1 christos export as_echo_n_body
66 1.1 christos as_echo_n='sh -c $as_echo_n_body as_echo'
67 1.1 christos fi
68 1.1 christos export as_echo_body
69 1.1 christos as_echo='sh -c $as_echo_body as_echo'
70 1.1 christos fi
71 1.1 christos
72 1.1 christos # The user is always right.
73 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then
74 1.1 christos PATH_SEPARATOR=:
75 1.1 christos (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 1.1 christos (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 1.1 christos PATH_SEPARATOR=';'
78 1.1 christos }
79 1.1 christos fi
80 1.1 christos
81 1.1 christos
82 1.1 christos # IFS
83 1.1 christos # We need space, tab and new line, in precisely that order. Quoting is
84 1.1 christos # there to prevent editors from complaining about space-tab.
85 1.1 christos # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 1.1 christos # splitting by setting IFS to empty value.)
87 1.1 christos IFS=" "" $as_nl"
88 1.1 christos
89 1.1 christos # Find who we are. Look in the path if we contain no directory separator.
90 1.1 christos as_myself=
91 1.1 christos case $0 in #((
92 1.1 christos *[\\/]* ) as_myself=$0 ;;
93 1.1 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 1.1 christos for as_dir in $PATH
95 1.1 christos do
96 1.1 christos IFS=$as_save_IFS
97 1.1 christos test -z "$as_dir" && as_dir=.
98 1.1 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 1.1 christos done
100 1.1 christos IFS=$as_save_IFS
101 1.1 christos
102 1.1 christos ;;
103 1.1 christos esac
104 1.1 christos # We did not find ourselves, most probably we were run as `sh COMMAND'
105 1.1 christos # in which case we are not to be found in the path.
106 1.1 christos if test "x$as_myself" = x; then
107 1.1 christos as_myself=$0
108 1.1 christos fi
109 1.1 christos if test ! -f "$as_myself"; then
110 1.1 christos $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 1.1 christos exit 1
112 1.1 christos fi
113 1.1 christos
114 1.1 christos # Unset variables that we do not need and which cause bugs (e.g. in
115 1.1 christos # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 1.1 christos # suppresses any "Segmentation fault" message there. '((' could
117 1.1 christos # trigger a bug in pdksh 5.2.14.
118 1.1 christos for as_var in BASH_ENV ENV MAIL MAILPATH
119 1.1 christos do eval test x\${$as_var+set} = xset \
120 1.1 christos && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 1.1 christos done
122 1.1 christos PS1='$ '
123 1.1 christos PS2='> '
124 1.1 christos PS4='+ '
125 1.1 christos
126 1.1 christos # NLS nuisances.
127 1.1 christos LC_ALL=C
128 1.1 christos export LC_ALL
129 1.1 christos LANGUAGE=C
130 1.1 christos export LANGUAGE
131 1.1 christos
132 1.1 christos # CDPATH.
133 1.1 christos (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 1.1 christos
135 1.1 christos # Use a proper internal environment variable to ensure we don't fall
136 1.1 christos # into an infinite loop, continuously re-executing ourselves.
137 1.1 christos if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 1.1 christos _as_can_reexec=no; export _as_can_reexec;
139 1.1 christos # We cannot yet assume a decent shell, so we have to provide a
140 1.1 christos # neutralization value for shells without unset; and this also
141 1.1 christos # works around shells that cannot unset nonexistent variables.
142 1.1 christos # Preserve -v and -x to the replacement shell.
143 1.1 christos BASH_ENV=/dev/null
144 1.1 christos ENV=/dev/null
145 1.1 christos (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 1.1 christos case $- in # ((((
147 1.1 christos *v*x* | *x*v* ) as_opts=-vx ;;
148 1.1 christos *v* ) as_opts=-v ;;
149 1.1 christos *x* ) as_opts=-x ;;
150 1.1 christos * ) as_opts= ;;
151 1.1 christos esac
152 1.1 christos exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 1.1 christos # Admittedly, this is quite paranoid, since all the known shells bail
154 1.1 christos # out after a failed `exec'.
155 1.1 christos $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 1.1 christos as_fn_exit 255
157 1.1 christos fi
158 1.1 christos # We don't want this to propagate to other subprocesses.
159 1.1 christos { _as_can_reexec=; unset _as_can_reexec;}
160 1.1 christos if test "x$CONFIG_SHELL" = x; then
161 1.1 christos as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 1.1 christos emulate sh
163 1.1 christos NULLCMD=:
164 1.1 christos # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 1.1 christos # is contrary to our usage. Disable this feature.
166 1.1 christos alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 1.1 christos setopt NO_GLOB_SUBST
168 1.1 christos else
169 1.1 christos case \`(set -o) 2>/dev/null\` in #(
170 1.1 christos *posix*) :
171 1.1 christos set -o posix ;; #(
172 1.1 christos *) :
173 1.1 christos ;;
174 1.1 christos esac
175 1.1 christos fi
176 1.1 christos "
177 1.1 christos as_required="as_fn_return () { (exit \$1); }
178 1.1 christos as_fn_success () { as_fn_return 0; }
179 1.1 christos as_fn_failure () { as_fn_return 1; }
180 1.1 christos as_fn_ret_success () { return 0; }
181 1.1 christos as_fn_ret_failure () { return 1; }
182 1.1 christos
183 1.1 christos exitcode=0
184 1.1 christos as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 1.1 christos as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 1.1 christos as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 1.1 christos as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 1.1 christos if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189 1.1 christos
190 1.1 christos else
191 1.1 christos exitcode=1; echo positional parameters were not saved.
192 1.1 christos fi
193 1.1 christos test x\$exitcode = x0 || exit 1
194 1.1 christos test -x / || exit 1"
195 1.1 christos as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 1.1 christos as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 1.1 christos eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 1.1 christos test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 1.1 christos test \$(( 1 + 1 )) = 2 || exit 1"
200 1.1 christos if (eval "$as_required") 2>/dev/null; then :
201 1.1 christos as_have_required=yes
202 1.1 christos else
203 1.1 christos as_have_required=no
204 1.1 christos fi
205 1.1 christos if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206 1.1 christos
207 1.1 christos else
208 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 1.1 christos as_found=false
210 1.1 christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 1.1 christos do
212 1.1 christos IFS=$as_save_IFS
213 1.1 christos test -z "$as_dir" && as_dir=.
214 1.1 christos as_found=:
215 1.1 christos case $as_dir in #(
216 1.1 christos /*)
217 1.1 christos for as_base in sh bash ksh sh5; do
218 1.1 christos # Try only shells that exist, to save several forks.
219 1.1 christos as_shell=$as_dir/$as_base
220 1.1 christos if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 1.1 christos { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 1.1 christos CONFIG_SHELL=$as_shell as_have_required=yes
223 1.1 christos if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 1.1 christos break 2
225 1.1 christos fi
226 1.1 christos fi
227 1.1 christos done;;
228 1.1 christos esac
229 1.1 christos as_found=false
230 1.1 christos done
231 1.1 christos $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 1.1 christos { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 1.1 christos CONFIG_SHELL=$SHELL as_have_required=yes
234 1.1 christos fi; }
235 1.1 christos IFS=$as_save_IFS
236 1.1 christos
237 1.1 christos
238 1.1 christos if test "x$CONFIG_SHELL" != x; then :
239 1.1 christos export CONFIG_SHELL
240 1.1 christos # We cannot yet assume a decent shell, so we have to provide a
241 1.1 christos # neutralization value for shells without unset; and this also
242 1.1 christos # works around shells that cannot unset nonexistent variables.
243 1.1 christos # Preserve -v and -x to the replacement shell.
244 1.1 christos BASH_ENV=/dev/null
245 1.1 christos ENV=/dev/null
246 1.1 christos (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 1.1 christos case $- in # ((((
248 1.1 christos *v*x* | *x*v* ) as_opts=-vx ;;
249 1.1 christos *v* ) as_opts=-v ;;
250 1.1 christos *x* ) as_opts=-x ;;
251 1.1 christos * ) as_opts= ;;
252 1.1 christos esac
253 1.1 christos exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 1.1 christos # Admittedly, this is quite paranoid, since all the known shells bail
255 1.1 christos # out after a failed `exec'.
256 1.1 christos $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 1.1 christos exit 255
258 1.1 christos fi
259 1.1 christos
260 1.1 christos if test x$as_have_required = xno; then :
261 1.1 christos $as_echo "$0: This script requires a shell more modern than all"
262 1.1 christos $as_echo "$0: the shells that I found on your system."
263 1.1 christos if test x${ZSH_VERSION+set} = xset ; then
264 1.1 christos $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 1.1 christos $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 1.1 christos else
267 1.1 christos $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
268 1.1 christos $0: including any error possibly output before this
269 1.1 christos $0: message. Then install a modern shell, or manually run
270 1.1 christos $0: the script under such a shell if you do have one."
271 1.1 christos fi
272 1.1 christos exit 1
273 1.1 christos fi
274 1.1 christos fi
275 1.1 christos fi
276 1.1 christos SHELL=${CONFIG_SHELL-/bin/sh}
277 1.1 christos export SHELL
278 1.1 christos # Unset more variables known to interfere with behavior of common tools.
279 1.1 christos CLICOLOR_FORCE= GREP_OPTIONS=
280 1.1 christos unset CLICOLOR_FORCE GREP_OPTIONS
281 1.1 christos
282 1.1 christos ## --------------------- ##
283 1.1 christos ## M4sh Shell Functions. ##
284 1.1 christos ## --------------------- ##
285 1.1 christos # as_fn_unset VAR
286 1.1 christos # ---------------
287 1.1 christos # Portably unset VAR.
288 1.1 christos as_fn_unset ()
289 1.1 christos {
290 1.1 christos { eval $1=; unset $1;}
291 1.1 christos }
292 1.1 christos as_unset=as_fn_unset
293 1.1 christos
294 1.1 christos # as_fn_set_status STATUS
295 1.1 christos # -----------------------
296 1.1 christos # Set $? to STATUS, without forking.
297 1.1 christos as_fn_set_status ()
298 1.1 christos {
299 1.1 christos return $1
300 1.1 christos } # as_fn_set_status
301 1.1 christos
302 1.1 christos # as_fn_exit STATUS
303 1.1 christos # -----------------
304 1.1 christos # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 1.1 christos as_fn_exit ()
306 1.1 christos {
307 1.1 christos set +e
308 1.1 christos as_fn_set_status $1
309 1.1 christos exit $1
310 1.1 christos } # as_fn_exit
311 1.1 christos
312 1.1 christos # as_fn_mkdir_p
313 1.1 christos # -------------
314 1.1 christos # Create "$as_dir" as a directory, including parents if necessary.
315 1.1 christos as_fn_mkdir_p ()
316 1.1 christos {
317 1.1 christos
318 1.1 christos case $as_dir in #(
319 1.1 christos -*) as_dir=./$as_dir;;
320 1.1 christos esac
321 1.1 christos test -d "$as_dir" || eval $as_mkdir_p || {
322 1.1 christos as_dirs=
323 1.1 christos while :; do
324 1.1 christos case $as_dir in #(
325 1.1 christos *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 1.1 christos *) as_qdir=$as_dir;;
327 1.1 christos esac
328 1.1 christos as_dirs="'$as_qdir' $as_dirs"
329 1.1 christos as_dir=`$as_dirname -- "$as_dir" ||
330 1.1 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 1.1 christos X"$as_dir" : 'X\(//\)[^/]' \| \
332 1.1 christos X"$as_dir" : 'X\(//\)$' \| \
333 1.1 christos X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 1.1 christos $as_echo X"$as_dir" |
335 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 1.1 christos s//\1/
337 1.1 christos q
338 1.1 christos }
339 1.1 christos /^X\(\/\/\)[^/].*/{
340 1.1 christos s//\1/
341 1.1 christos q
342 1.1 christos }
343 1.1 christos /^X\(\/\/\)$/{
344 1.1 christos s//\1/
345 1.1 christos q
346 1.1 christos }
347 1.1 christos /^X\(\/\).*/{
348 1.1 christos s//\1/
349 1.1 christos q
350 1.1 christos }
351 1.1 christos s/.*/./; q'`
352 1.1 christos test -d "$as_dir" && break
353 1.1 christos done
354 1.1 christos test -z "$as_dirs" || eval "mkdir $as_dirs"
355 1.1 christos } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356 1.1 christos
357 1.1 christos
358 1.1 christos } # as_fn_mkdir_p
359 1.1 christos
360 1.1 christos # as_fn_executable_p FILE
361 1.1 christos # -----------------------
362 1.1 christos # Test if FILE is an executable regular file.
363 1.1 christos as_fn_executable_p ()
364 1.1 christos {
365 1.1 christos test -f "$1" && test -x "$1"
366 1.1 christos } # as_fn_executable_p
367 1.1 christos # as_fn_append VAR VALUE
368 1.1 christos # ----------------------
369 1.1 christos # Append the text in VALUE to the end of the definition contained in VAR. Take
370 1.1 christos # advantage of any shell optimizations that allow amortized linear growth over
371 1.1 christos # repeated appends, instead of the typical quadratic growth present in naive
372 1.1 christos # implementations.
373 1.1 christos if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 1.1 christos eval 'as_fn_append ()
375 1.1 christos {
376 1.1 christos eval $1+=\$2
377 1.1 christos }'
378 1.1 christos else
379 1.1 christos as_fn_append ()
380 1.1 christos {
381 1.1 christos eval $1=\$$1\$2
382 1.1 christos }
383 1.1 christos fi # as_fn_append
384 1.1 christos
385 1.1 christos # as_fn_arith ARG...
386 1.1 christos # ------------------
387 1.1 christos # Perform arithmetic evaluation on the ARGs, and store the result in the
388 1.1 christos # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 1.1 christos # must be portable across $(()) and expr.
390 1.1 christos if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 1.1 christos eval 'as_fn_arith ()
392 1.1 christos {
393 1.1 christos as_val=$(( $* ))
394 1.1 christos }'
395 1.1 christos else
396 1.1 christos as_fn_arith ()
397 1.1 christos {
398 1.1 christos as_val=`expr "$@" || test $? -eq 1`
399 1.1 christos }
400 1.1 christos fi # as_fn_arith
401 1.1 christos
402 1.1 christos
403 1.1 christos # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 1.1 christos # ----------------------------------------
405 1.1 christos # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 1.1 christos # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 1.1 christos # script with STATUS, using 1 if that was 0.
408 1.1 christos as_fn_error ()
409 1.1 christos {
410 1.1 christos as_status=$1; test $as_status -eq 0 && as_status=1
411 1.1 christos if test "$4"; then
412 1.1 christos as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 1.1 christos fi
415 1.1 christos $as_echo "$as_me: error: $2" >&2
416 1.1 christos as_fn_exit $as_status
417 1.1 christos } # as_fn_error
418 1.1 christos
419 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1 &&
420 1.1 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 1.1 christos as_expr=expr
422 1.1 christos else
423 1.1 christos as_expr=false
424 1.1 christos fi
425 1.1 christos
426 1.1 christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 1.1 christos as_basename=basename
428 1.1 christos else
429 1.1 christos as_basename=false
430 1.1 christos fi
431 1.1 christos
432 1.1 christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 1.1 christos as_dirname=dirname
434 1.1 christos else
435 1.1 christos as_dirname=false
436 1.1 christos fi
437 1.1 christos
438 1.1 christos as_me=`$as_basename -- "$0" ||
439 1.1 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 1.1 christos X"$0" : 'X\(//\)$' \| \
441 1.1 christos X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 1.1 christos $as_echo X/"$0" |
443 1.1 christos sed '/^.*\/\([^/][^/]*\)\/*$/{
444 1.1 christos s//\1/
445 1.1 christos q
446 1.1 christos }
447 1.1 christos /^X\/\(\/\/\)$/{
448 1.1 christos s//\1/
449 1.1 christos q
450 1.1 christos }
451 1.1 christos /^X\/\(\/\).*/{
452 1.1 christos s//\1/
453 1.1 christos q
454 1.1 christos }
455 1.1 christos s/.*/./; q'`
456 1.1 christos
457 1.1 christos # Avoid depending upon Character Ranges.
458 1.1 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 1.1 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 1.1 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 1.1 christos as_cr_digits='0123456789'
462 1.1 christos as_cr_alnum=$as_cr_Letters$as_cr_digits
463 1.1 christos
464 1.1 christos
465 1.1 christos as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 1.1 christos as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 1.1 christos eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 1.1 christos test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 1.1 christos # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 1.1 christos sed -n '
471 1.1 christos p
472 1.1 christos /[$]LINENO/=
473 1.1 christos ' <$as_myself |
474 1.1 christos sed '
475 1.1 christos s/[$]LINENO.*/&-/
476 1.1 christos t lineno
477 1.1 christos b
478 1.1 christos :lineno
479 1.1 christos N
480 1.1 christos :loop
481 1.1 christos s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 1.1 christos t loop
483 1.1 christos s/-\n.*//
484 1.1 christos ' >$as_me.lineno &&
485 1.1 christos chmod +x "$as_me.lineno" ||
486 1.1 christos { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487 1.1 christos
488 1.1 christos # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 1.1 christos # already done that, so ensure we don't try to do so again and fall
490 1.1 christos # in an infinite loop. This has already happened in practice.
491 1.1 christos _as_can_reexec=no; export _as_can_reexec
492 1.1 christos # Don't try to exec as it changes $[0], causing all sort of problems
493 1.1 christos # (the dirname of $[0] is not the place where we might find the
494 1.1 christos # original and so on. Autoconf is especially sensitive to this).
495 1.1 christos . "./$as_me.lineno"
496 1.1 christos # Exit status is that of the last command.
497 1.1 christos exit
498 1.1 christos }
499 1.1 christos
500 1.1 christos ECHO_C= ECHO_N= ECHO_T=
501 1.1 christos case `echo -n x` in #(((((
502 1.1 christos -n*)
503 1.1 christos case `echo 'xy\c'` in
504 1.1 christos *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 1.1 christos xy) ECHO_C='\c';;
506 1.1 christos *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 1.1 christos ECHO_T=' ';;
508 1.1 christos esac;;
509 1.1 christos *)
510 1.1 christos ECHO_N='-n';;
511 1.1 christos esac
512 1.1 christos
513 1.1 christos rm -f conf$$ conf$$.exe conf$$.file
514 1.1 christos if test -d conf$$.dir; then
515 1.1 christos rm -f conf$$.dir/conf$$.file
516 1.1 christos else
517 1.1 christos rm -f conf$$.dir
518 1.1 christos mkdir conf$$.dir 2>/dev/null
519 1.1 christos fi
520 1.1 christos if (echo >conf$$.file) 2>/dev/null; then
521 1.1 christos if ln -s conf$$.file conf$$ 2>/dev/null; then
522 1.1 christos as_ln_s='ln -s'
523 1.1 christos # ... but there are two gotchas:
524 1.1 christos # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 1.1 christos # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 1.1 christos # In both cases, we have to default to `cp -pR'.
527 1.1 christos ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 1.1 christos as_ln_s='cp -pR'
529 1.1 christos elif ln conf$$.file conf$$ 2>/dev/null; then
530 1.1 christos as_ln_s=ln
531 1.1 christos else
532 1.1 christos as_ln_s='cp -pR'
533 1.1 christos fi
534 1.1 christos else
535 1.1 christos as_ln_s='cp -pR'
536 1.1 christos fi
537 1.1 christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 1.1 christos rmdir conf$$.dir 2>/dev/null
539 1.1 christos
540 1.1 christos if mkdir -p . 2>/dev/null; then
541 1.1 christos as_mkdir_p='mkdir -p "$as_dir"'
542 1.1 christos else
543 1.1 christos test -d ./-p && rmdir ./-p
544 1.1 christos as_mkdir_p=false
545 1.1 christos fi
546 1.1 christos
547 1.1 christos as_test_x='test -x'
548 1.1 christos as_executable_p=as_fn_executable_p
549 1.1 christos
550 1.1 christos # Sed expression to map a string onto a valid CPP name.
551 1.1 christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552 1.1 christos
553 1.1 christos # Sed expression to map a string onto a valid variable name.
554 1.1 christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 1.1 christos
556 1.1 christos
557 1.1 christos test -n "$DJDIR" || exec 7<&0 </dev/null
558 1.1 christos exec 6>&1
559 1.1 christos
560 1.1 christos # Name of the host.
561 1.1 christos # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 1.1 christos # so uname gets run too.
563 1.1 christos ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 1.1 christos
565 1.1 christos #
566 1.1 christos # Initializations.
567 1.1 christos #
568 1.1 christos ac_default_prefix=/usr/local
569 1.1 christos ac_clean_files=
570 1.1 christos ac_config_libobj_dir=.
571 1.1 christos LIBOBJS=
572 1.1 christos cross_compiling=no
573 1.1 christos subdirs=
574 1.1 christos MFLAGS=
575 1.1 christos MAKEFLAGS=
576 1.1 christos
577 1.1 christos # Identity of this package.
578 1.1 christos PACKAGE_NAME=
579 1.1 christos PACKAGE_TARNAME=
580 1.1 christos PACKAGE_VERSION=
581 1.1 christos PACKAGE_STRING=
582 1.1 christos PACKAGE_BUGREPORT=
583 1.1 christos PACKAGE_URL=
584 1.1 christos
585 1.1 christos ac_unique_file="Makefile.in"
586 1.1 christos # Factoring default headers for most tests.
587 1.1 christos ac_includes_default="\
588 1.1 christos #include <stdio.h>
589 1.1 christos #ifdef HAVE_SYS_TYPES_H
590 1.1 christos # include <sys/types.h>
591 1.1 christos #endif
592 1.1 christos #ifdef HAVE_SYS_STAT_H
593 1.1 christos # include <sys/stat.h>
594 1.1 christos #endif
595 1.1 christos #ifdef STDC_HEADERS
596 1.1 christos # include <stdlib.h>
597 1.1 christos # include <stddef.h>
598 1.1 christos #else
599 1.1 christos # ifdef HAVE_STDLIB_H
600 1.1 christos # include <stdlib.h>
601 1.1 christos # endif
602 1.1 christos #endif
603 1.1 christos #ifdef HAVE_STRING_H
604 1.1 christos # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 1.1 christos # include <memory.h>
606 1.1 christos # endif
607 1.1 christos # include <string.h>
608 1.1 christos #endif
609 1.1 christos #ifdef HAVE_STRINGS_H
610 1.1 christos # include <strings.h>
611 1.1 christos #endif
612 1.1 christos #ifdef HAVE_INTTYPES_H
613 1.1 christos # include <inttypes.h>
614 1.1 christos #endif
615 1.1 christos #ifdef HAVE_STDINT_H
616 1.1 christos # include <stdint.h>
617 1.1 christos #endif
618 1.1 christos #ifdef HAVE_UNISTD_H
619 1.1 christos # include <unistd.h>
620 1.1 christos #endif"
621 1.1 christos
622 1.1 christos ac_subst_vars='LTLIBOBJS
623 1.1 christos LIBOBJS
624 1.1 christos cfgoutputs_out
625 1.1 christos cfgoutputs_in
626 1.1 christos cfghdrs_out
627 1.1 christos cfghdrs_in
628 1.1 christos enable_initial_exec_tls
629 1.1 christos enable_zone_allocator
630 1.1 christos enable_tls
631 1.1 christos enable_lazy_lock
632 1.1 christos jemalloc_version_gid
633 1.1 christos jemalloc_version_nrev
634 1.1 christos jemalloc_version_bugfix
635 1.1 christos jemalloc_version_minor
636 1.1 christos jemalloc_version_major
637 1.1 christos jemalloc_version
638 1.1 christos enable_log
639 1.1 christos enable_cache_oblivious
640 1.1 christos enable_xmalloc
641 1.1 christos enable_utrace
642 1.1 christos enable_fill
643 1.1 christos enable_prof
644 1.1 christos enable_stats
645 1.1 christos enable_debug
646 1.1 christos je_
647 1.1 christos install_suffix
648 1.1 christos private_namespace
649 1.1 christos JEMALLOC_CPREFIX
650 1.1 christos JEMALLOC_PREFIX
651 1.1 christos AUTOCONF
652 1.1 christos LD
653 1.1 christos RANLIB
654 1.1 christos INSTALL_DATA
655 1.1 christos INSTALL_SCRIPT
656 1.1 christos INSTALL_PROGRAM
657 1.1 christos enable_autogen
658 1.1 christos RPATH_EXTRA
659 1.1 christos LM
660 1.1 christos CC_MM
661 1.1 christos DUMP_SYMS
662 1.1 christos AROUT
663 1.1 christos ARFLAGS
664 1.1 christos MKLIB
665 1.1 christos TEST_LD_MODE
666 1.1 christos LDTARGET
667 1.1 christos CTARGET
668 1.1 christos PIC_CFLAGS
669 1.1 christos SOREV
670 1.1 christos EXTRA_LDFLAGS
671 1.1 christos DSO_LDFLAGS
672 1.1 christos link_whole_archive
673 1.1 christos libprefix
674 1.1 christos exe
675 1.1 christos a
676 1.1 christos o
677 1.1 christos importlib
678 1.1 christos so
679 1.1 christos LD_PRELOAD_VAR
680 1.1 christos RPATH
681 1.1 christos abi
682 1.1 christos AWK
683 1.1 christos NM
684 1.1 christos AR
685 1.1 christos host_os
686 1.1 christos host_vendor
687 1.1 christos host_cpu
688 1.1 christos host
689 1.1 christos build_os
690 1.1 christos build_vendor
691 1.1 christos build_cpu
692 1.1 christos build
693 1.1 christos EGREP
694 1.1 christos GREP
695 1.1 christos EXTRA_CXXFLAGS
696 1.1 christos SPECIFIED_CXXFLAGS
697 1.1 christos CONFIGURE_CXXFLAGS
698 1.1 christos enable_cxx
699 1.1 christos HAVE_CXX14
700 1.1 christos ac_ct_CXX
701 1.1 christos CXXFLAGS
702 1.1 christos CXX
703 1.1 christos CPP
704 1.1 christos EXTRA_CFLAGS
705 1.1 christos SPECIFIED_CFLAGS
706 1.1 christos CONFIGURE_CFLAGS
707 1.1 christos OBJEXT
708 1.1 christos EXEEXT
709 1.1 christos ac_ct_CC
710 1.1 christos CPPFLAGS
711 1.1 christos LDFLAGS
712 1.1 christos CFLAGS
713 1.1 christos CC
714 1.1 christos XSLROOT
715 1.1 christos XSLTPROC
716 1.1 christos MANDIR
717 1.1 christos DATADIR
718 1.1 christos LIBDIR
719 1.1 christos INCLUDEDIR
720 1.1 christos BINDIR
721 1.1 christos PREFIX
722 1.1 christos abs_objroot
723 1.1 christos objroot
724 1.1 christos abs_srcroot
725 1.1 christos srcroot
726 1.1 christos rev
727 1.1 christos CONFIG
728 1.1 christos target_alias
729 1.1 christos host_alias
730 1.1 christos build_alias
731 1.1 christos LIBS
732 1.1 christos ECHO_T
733 1.1 christos ECHO_N
734 1.1 christos ECHO_C
735 1.1 christos DEFS
736 1.1 christos mandir
737 1.1 christos localedir
738 1.1 christos libdir
739 1.1 christos psdir
740 1.1 christos pdfdir
741 1.1 christos dvidir
742 1.1 christos htmldir
743 1.1 christos infodir
744 1.1 christos docdir
745 1.1 christos oldincludedir
746 1.1 christos includedir
747 1.1 christos localstatedir
748 1.1 christos sharedstatedir
749 1.1 christos sysconfdir
750 1.1 christos datadir
751 1.1 christos datarootdir
752 1.1 christos libexecdir
753 1.1 christos sbindir
754 1.1 christos bindir
755 1.1 christos program_transform_name
756 1.1 christos prefix
757 1.1 christos exec_prefix
758 1.1 christos PACKAGE_URL
759 1.1 christos PACKAGE_BUGREPORT
760 1.1 christos PACKAGE_STRING
761 1.1 christos PACKAGE_VERSION
762 1.1 christos PACKAGE_TARNAME
763 1.1 christos PACKAGE_NAME
764 1.1 christos PATH_SEPARATOR
765 1.1 christos SHELL'
766 1.1 christos ac_subst_files=''
767 1.1 christos ac_user_opts='
768 1.1 christos enable_option_checking
769 1.1 christos with_xslroot
770 1.1 christos enable_cxx
771 1.1 christos with_lg_vaddr
772 1.1 christos with_rpath
773 1.1 christos enable_autogen
774 1.1 christos with_mangling
775 1.1 christos with_jemalloc_prefix
776 1.1 christos with_export
777 1.1 christos with_private_namespace
778 1.1 christos with_install_suffix
779 1.1 christos with_malloc_conf
780 1.1 christos enable_debug
781 1.1 christos enable_stats
782 1.1 christos enable_prof
783 1.1 christos enable_prof_libunwind
784 1.1 christos with_static_libunwind
785 1.1 christos enable_prof_libgcc
786 1.1 christos enable_prof_gcc
787 1.1 christos enable_fill
788 1.1 christos enable_utrace
789 1.1 christos enable_xmalloc
790 1.1 christos enable_cache_oblivious
791 1.1 christos enable_log
792 1.1 christos with_lg_quantum
793 1.1 christos with_lg_page
794 1.1 christos with_lg_hugepage
795 1.1 christos with_lg_page_sizes
796 1.1 christos with_version
797 1.1 christos enable_syscall
798 1.1 christos enable_lazy_lock
799 1.1 christos enable_zone_allocator
800 1.1 christos enable_initial_exec_tls
801 1.1 christos '
802 1.1 christos ac_precious_vars='build_alias
803 1.1 christos host_alias
804 1.1 christos target_alias
805 1.1 christos CC
806 1.1 christos CFLAGS
807 1.1 christos LDFLAGS
808 1.1 christos LIBS
809 1.1 christos CPPFLAGS
810 1.1 christos CPP
811 1.1 christos CXX
812 1.1 christos CXXFLAGS
813 1.1 christos CCC'
814 1.1 christos
815 1.1 christos
816 1.1 christos # Initialize some variables set by options.
817 1.1 christos ac_init_help=
818 1.1 christos ac_init_version=false
819 1.1 christos ac_unrecognized_opts=
820 1.1 christos ac_unrecognized_sep=
821 1.1 christos # The variables have the same names as the options, with
822 1.1 christos # dashes changed to underlines.
823 1.1 christos cache_file=/dev/null
824 1.1 christos exec_prefix=NONE
825 1.1 christos no_create=
826 1.1 christos no_recursion=
827 1.1 christos prefix=NONE
828 1.1 christos program_prefix=NONE
829 1.1 christos program_suffix=NONE
830 1.1 christos program_transform_name=s,x,x,
831 1.1 christos silent=
832 1.1 christos site=
833 1.1 christos srcdir=
834 1.1 christos verbose=
835 1.1 christos x_includes=NONE
836 1.1 christos x_libraries=NONE
837 1.1 christos
838 1.1 christos # Installation directory options.
839 1.1 christos # These are left unexpanded so users can "make install exec_prefix=/foo"
840 1.1 christos # and all the variables that are supposed to be based on exec_prefix
841 1.1 christos # by default will actually change.
842 1.1 christos # Use braces instead of parens because sh, perl, etc. also accept them.
843 1.1 christos # (The list follows the same order as the GNU Coding Standards.)
844 1.1 christos bindir='${exec_prefix}/bin'
845 1.1 christos sbindir='${exec_prefix}/sbin'
846 1.1 christos libexecdir='${exec_prefix}/libexec'
847 1.1 christos datarootdir='${prefix}/share'
848 1.1 christos datadir='${datarootdir}'
849 1.1 christos sysconfdir='${prefix}/etc'
850 1.1 christos sharedstatedir='${prefix}/com'
851 1.1 christos localstatedir='${prefix}/var'
852 1.1 christos includedir='${prefix}/include'
853 1.1 christos oldincludedir='/usr/include'
854 1.1 christos docdir='${datarootdir}/doc/${PACKAGE}'
855 1.1 christos infodir='${datarootdir}/info'
856 1.1 christos htmldir='${docdir}'
857 1.1 christos dvidir='${docdir}'
858 1.1 christos pdfdir='${docdir}'
859 1.1 christos psdir='${docdir}'
860 1.1 christos libdir='${exec_prefix}/lib'
861 1.1 christos localedir='${datarootdir}/locale'
862 1.1 christos mandir='${datarootdir}/man'
863 1.1 christos
864 1.1 christos ac_prev=
865 1.1 christos ac_dashdash=
866 1.1 christos for ac_option
867 1.1 christos do
868 1.1 christos # If the previous option needs an argument, assign it.
869 1.1 christos if test -n "$ac_prev"; then
870 1.1 christos eval $ac_prev=\$ac_option
871 1.1 christos ac_prev=
872 1.1 christos continue
873 1.1 christos fi
874 1.1 christos
875 1.1 christos case $ac_option in
876 1.1 christos *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 1.1 christos *=) ac_optarg= ;;
878 1.1 christos *) ac_optarg=yes ;;
879 1.1 christos esac
880 1.1 christos
881 1.1 christos # Accept the important Cygnus configure options, so we can diagnose typos.
882 1.1 christos
883 1.1 christos case $ac_dashdash$ac_option in
884 1.1 christos --)
885 1.1 christos ac_dashdash=yes ;;
886 1.1 christos
887 1.1 christos -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 1.1 christos ac_prev=bindir ;;
889 1.1 christos -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890 1.1 christos bindir=$ac_optarg ;;
891 1.1 christos
892 1.1 christos -build | --build | --buil | --bui | --bu)
893 1.1 christos ac_prev=build_alias ;;
894 1.1 christos -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 1.1 christos build_alias=$ac_optarg ;;
896 1.1 christos
897 1.1 christos -cache-file | --cache-file | --cache-fil | --cache-fi \
898 1.1 christos | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 1.1 christos ac_prev=cache_file ;;
900 1.1 christos -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 1.1 christos | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 1.1 christos cache_file=$ac_optarg ;;
903 1.1 christos
904 1.1 christos --config-cache | -C)
905 1.1 christos cache_file=config.cache ;;
906 1.1 christos
907 1.1 christos -datadir | --datadir | --datadi | --datad)
908 1.1 christos ac_prev=datadir ;;
909 1.1 christos -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 1.1 christos datadir=$ac_optarg ;;
911 1.1 christos
912 1.1 christos -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 1.1 christos | --dataroo | --dataro | --datar)
914 1.1 christos ac_prev=datarootdir ;;
915 1.1 christos -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 1.1 christos | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 1.1 christos datarootdir=$ac_optarg ;;
918 1.1 christos
919 1.1 christos -disable-* | --disable-*)
920 1.1 christos ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 1.1 christos # Reject names that are not valid shell variable names.
922 1.1 christos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 1.1 christos as_fn_error $? "invalid feature name: $ac_useropt"
924 1.1 christos ac_useropt_orig=$ac_useropt
925 1.1 christos ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 1.1 christos case $ac_user_opts in
927 1.1 christos *"
928 1.1 christos "enable_$ac_useropt"
929 1.1 christos "*) ;;
930 1.1 christos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931 1.1 christos ac_unrecognized_sep=', ';;
932 1.1 christos esac
933 1.1 christos eval enable_$ac_useropt=no ;;
934 1.1 christos
935 1.1 christos -docdir | --docdir | --docdi | --doc | --do)
936 1.1 christos ac_prev=docdir ;;
937 1.1 christos -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938 1.1 christos docdir=$ac_optarg ;;
939 1.1 christos
940 1.1 christos -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 1.1 christos ac_prev=dvidir ;;
942 1.1 christos -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943 1.1 christos dvidir=$ac_optarg ;;
944 1.1 christos
945 1.1 christos -enable-* | --enable-*)
946 1.1 christos ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947 1.1 christos # Reject names that are not valid shell variable names.
948 1.1 christos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 1.1 christos as_fn_error $? "invalid feature name: $ac_useropt"
950 1.1 christos ac_useropt_orig=$ac_useropt
951 1.1 christos ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 1.1 christos case $ac_user_opts in
953 1.1 christos *"
954 1.1 christos "enable_$ac_useropt"
955 1.1 christos "*) ;;
956 1.1 christos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957 1.1 christos ac_unrecognized_sep=', ';;
958 1.1 christos esac
959 1.1 christos eval enable_$ac_useropt=\$ac_optarg ;;
960 1.1 christos
961 1.1 christos -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 1.1 christos | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 1.1 christos | --exec | --exe | --ex)
964 1.1 christos ac_prev=exec_prefix ;;
965 1.1 christos -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 1.1 christos | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 1.1 christos | --exec=* | --exe=* | --ex=*)
968 1.1 christos exec_prefix=$ac_optarg ;;
969 1.1 christos
970 1.1 christos -gas | --gas | --ga | --g)
971 1.1 christos # Obsolete; use --with-gas.
972 1.1 christos with_gas=yes ;;
973 1.1 christos
974 1.1 christos -help | --help | --hel | --he | -h)
975 1.1 christos ac_init_help=long ;;
976 1.1 christos -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 1.1 christos ac_init_help=recursive ;;
978 1.1 christos -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 1.1 christos ac_init_help=short ;;
980 1.1 christos
981 1.1 christos -host | --host | --hos | --ho)
982 1.1 christos ac_prev=host_alias ;;
983 1.1 christos -host=* | --host=* | --hos=* | --ho=*)
984 1.1 christos host_alias=$ac_optarg ;;
985 1.1 christos
986 1.1 christos -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 1.1 christos ac_prev=htmldir ;;
988 1.1 christos -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 1.1 christos | --ht=*)
990 1.1 christos htmldir=$ac_optarg ;;
991 1.1 christos
992 1.1 christos -includedir | --includedir | --includedi | --included | --include \
993 1.1 christos | --includ | --inclu | --incl | --inc)
994 1.1 christos ac_prev=includedir ;;
995 1.1 christos -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 1.1 christos | --includ=* | --inclu=* | --incl=* | --inc=*)
997 1.1 christos includedir=$ac_optarg ;;
998 1.1 christos
999 1.1 christos -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 1.1 christos ac_prev=infodir ;;
1001 1.1 christos -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002 1.1 christos infodir=$ac_optarg ;;
1003 1.1 christos
1004 1.1 christos -libdir | --libdir | --libdi | --libd)
1005 1.1 christos ac_prev=libdir ;;
1006 1.1 christos -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007 1.1 christos libdir=$ac_optarg ;;
1008 1.1 christos
1009 1.1 christos -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 1.1 christos | --libexe | --libex | --libe)
1011 1.1 christos ac_prev=libexecdir ;;
1012 1.1 christos -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 1.1 christos | --libexe=* | --libex=* | --libe=*)
1014 1.1 christos libexecdir=$ac_optarg ;;
1015 1.1 christos
1016 1.1 christos -localedir | --localedir | --localedi | --localed | --locale)
1017 1.1 christos ac_prev=localedir ;;
1018 1.1 christos -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 1.1 christos localedir=$ac_optarg ;;
1020 1.1 christos
1021 1.1 christos -localstatedir | --localstatedir | --localstatedi | --localstated \
1022 1.1 christos | --localstate | --localstat | --localsta | --localst | --locals)
1023 1.1 christos ac_prev=localstatedir ;;
1024 1.1 christos -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025 1.1 christos | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026 1.1 christos localstatedir=$ac_optarg ;;
1027 1.1 christos
1028 1.1 christos -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 1.1 christos ac_prev=mandir ;;
1030 1.1 christos -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031 1.1 christos mandir=$ac_optarg ;;
1032 1.1 christos
1033 1.1 christos -nfp | --nfp | --nf)
1034 1.1 christos # Obsolete; use --without-fp.
1035 1.1 christos with_fp=no ;;
1036 1.1 christos
1037 1.1 christos -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038 1.1 christos | --no-cr | --no-c | -n)
1039 1.1 christos no_create=yes ;;
1040 1.1 christos
1041 1.1 christos -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 1.1 christos | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 1.1 christos no_recursion=yes ;;
1044 1.1 christos
1045 1.1 christos -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 1.1 christos | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 1.1 christos | --oldin | --oldi | --old | --ol | --o)
1048 1.1 christos ac_prev=oldincludedir ;;
1049 1.1 christos -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 1.1 christos | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 1.1 christos | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052 1.1 christos oldincludedir=$ac_optarg ;;
1053 1.1 christos
1054 1.1 christos -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 1.1 christos ac_prev=prefix ;;
1056 1.1 christos -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057 1.1 christos prefix=$ac_optarg ;;
1058 1.1 christos
1059 1.1 christos -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 1.1 christos | --program-pre | --program-pr | --program-p)
1061 1.1 christos ac_prev=program_prefix ;;
1062 1.1 christos -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 1.1 christos | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064 1.1 christos program_prefix=$ac_optarg ;;
1065 1.1 christos
1066 1.1 christos -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 1.1 christos | --program-suf | --program-su | --program-s)
1068 1.1 christos ac_prev=program_suffix ;;
1069 1.1 christos -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 1.1 christos | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071 1.1 christos program_suffix=$ac_optarg ;;
1072 1.1 christos
1073 1.1 christos -program-transform-name | --program-transform-name \
1074 1.1 christos | --program-transform-nam | --program-transform-na \
1075 1.1 christos | --program-transform-n | --program-transform- \
1076 1.1 christos | --program-transform | --program-transfor \
1077 1.1 christos | --program-transfo | --program-transf \
1078 1.1 christos | --program-trans | --program-tran \
1079 1.1 christos | --progr-tra | --program-tr | --program-t)
1080 1.1 christos ac_prev=program_transform_name ;;
1081 1.1 christos -program-transform-name=* | --program-transform-name=* \
1082 1.1 christos | --program-transform-nam=* | --program-transform-na=* \
1083 1.1 christos | --program-transform-n=* | --program-transform-=* \
1084 1.1 christos | --program-transform=* | --program-transfor=* \
1085 1.1 christos | --program-transfo=* | --program-transf=* \
1086 1.1 christos | --program-trans=* | --program-tran=* \
1087 1.1 christos | --progr-tra=* | --program-tr=* | --program-t=*)
1088 1.1 christos program_transform_name=$ac_optarg ;;
1089 1.1 christos
1090 1.1 christos -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 1.1 christos ac_prev=pdfdir ;;
1092 1.1 christos -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 1.1 christos pdfdir=$ac_optarg ;;
1094 1.1 christos
1095 1.1 christos -psdir | --psdir | --psdi | --psd | --ps)
1096 1.1 christos ac_prev=psdir ;;
1097 1.1 christos -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 1.1 christos psdir=$ac_optarg ;;
1099 1.1 christos
1100 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 1.1 christos | -silent | --silent | --silen | --sile | --sil)
1102 1.1 christos silent=yes ;;
1103 1.1 christos
1104 1.1 christos -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 1.1 christos ac_prev=sbindir ;;
1106 1.1 christos -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 1.1 christos | --sbi=* | --sb=*)
1108 1.1 christos sbindir=$ac_optarg ;;
1109 1.1 christos
1110 1.1 christos -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 1.1 christos | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 1.1 christos | --sharedst | --shareds | --shared | --share | --shar \
1113 1.1 christos | --sha | --sh)
1114 1.1 christos ac_prev=sharedstatedir ;;
1115 1.1 christos -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 1.1 christos | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 1.1 christos | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 1.1 christos | --sha=* | --sh=*)
1119 1.1 christos sharedstatedir=$ac_optarg ;;
1120 1.1 christos
1121 1.1 christos -site | --site | --sit)
1122 1.1 christos ac_prev=site ;;
1123 1.1 christos -site=* | --site=* | --sit=*)
1124 1.1 christos site=$ac_optarg ;;
1125 1.1 christos
1126 1.1 christos -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 1.1 christos ac_prev=srcdir ;;
1128 1.1 christos -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 1.1 christos srcdir=$ac_optarg ;;
1130 1.1 christos
1131 1.1 christos -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 1.1 christos | --syscon | --sysco | --sysc | --sys | --sy)
1133 1.1 christos ac_prev=sysconfdir ;;
1134 1.1 christos -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 1.1 christos | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 1.1 christos sysconfdir=$ac_optarg ;;
1137 1.1 christos
1138 1.1 christos -target | --target | --targe | --targ | --tar | --ta | --t)
1139 1.1 christos ac_prev=target_alias ;;
1140 1.1 christos -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 1.1 christos target_alias=$ac_optarg ;;
1142 1.1 christos
1143 1.1 christos -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 1.1 christos verbose=yes ;;
1145 1.1 christos
1146 1.1 christos -version | --version | --versio | --versi | --vers | -V)
1147 1.1 christos ac_init_version=: ;;
1148 1.1 christos
1149 1.1 christos -with-* | --with-*)
1150 1.1 christos ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 1.1 christos # Reject names that are not valid shell variable names.
1152 1.1 christos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 1.1 christos as_fn_error $? "invalid package name: $ac_useropt"
1154 1.1 christos ac_useropt_orig=$ac_useropt
1155 1.1 christos ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 1.1 christos case $ac_user_opts in
1157 1.1 christos *"
1158 1.1 christos "with_$ac_useropt"
1159 1.1 christos "*) ;;
1160 1.1 christos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 1.1 christos ac_unrecognized_sep=', ';;
1162 1.1 christos esac
1163 1.1 christos eval with_$ac_useropt=\$ac_optarg ;;
1164 1.1 christos
1165 1.1 christos -without-* | --without-*)
1166 1.1 christos ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 1.1 christos # Reject names that are not valid shell variable names.
1168 1.1 christos expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 1.1 christos as_fn_error $? "invalid package name: $ac_useropt"
1170 1.1 christos ac_useropt_orig=$ac_useropt
1171 1.1 christos ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 1.1 christos case $ac_user_opts in
1173 1.1 christos *"
1174 1.1 christos "with_$ac_useropt"
1175 1.1 christos "*) ;;
1176 1.1 christos *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 1.1 christos ac_unrecognized_sep=', ';;
1178 1.1 christos esac
1179 1.1 christos eval with_$ac_useropt=no ;;
1180 1.1 christos
1181 1.1 christos --x)
1182 1.1 christos # Obsolete; use --with-x.
1183 1.1 christos with_x=yes ;;
1184 1.1 christos
1185 1.1 christos -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 1.1 christos | --x-incl | --x-inc | --x-in | --x-i)
1187 1.1 christos ac_prev=x_includes ;;
1188 1.1 christos -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 1.1 christos | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190 1.1 christos x_includes=$ac_optarg ;;
1191 1.1 christos
1192 1.1 christos -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 1.1 christos | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 1.1 christos ac_prev=x_libraries ;;
1195 1.1 christos -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 1.1 christos | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197 1.1 christos x_libraries=$ac_optarg ;;
1198 1.1 christos
1199 1.1 christos -*) as_fn_error $? "unrecognized option: \`$ac_option'
1200 1.1 christos Try \`$0 --help' for more information"
1201 1.1 christos ;;
1202 1.1 christos
1203 1.1 christos *=*)
1204 1.1 christos ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 1.1 christos # Reject names that are not valid shell variable names.
1206 1.1 christos case $ac_envvar in #(
1207 1.1 christos '' | [0-9]* | *[!_$as_cr_alnum]* )
1208 1.1 christos as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1209 1.1 christos esac
1210 1.1 christos eval $ac_envvar=\$ac_optarg
1211 1.1 christos export $ac_envvar ;;
1212 1.1 christos
1213 1.1 christos *)
1214 1.1 christos # FIXME: should be removed in autoconf 3.0.
1215 1.1 christos $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216 1.1 christos expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 1.1 christos $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218 1.1 christos : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1219 1.1 christos ;;
1220 1.1 christos
1221 1.1 christos esac
1222 1.1 christos done
1223 1.1 christos
1224 1.1 christos if test -n "$ac_prev"; then
1225 1.1 christos ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226 1.1 christos as_fn_error $? "missing argument to $ac_option"
1227 1.1 christos fi
1228 1.1 christos
1229 1.1 christos if test -n "$ac_unrecognized_opts"; then
1230 1.1 christos case $enable_option_checking in
1231 1.1 christos no) ;;
1232 1.1 christos fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233 1.1 christos *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234 1.1 christos esac
1235 1.1 christos fi
1236 1.1 christos
1237 1.1 christos # Check all directory arguments for consistency.
1238 1.1 christos for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 1.1 christos datadir sysconfdir sharedstatedir localstatedir includedir \
1240 1.1 christos oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 1.1 christos libdir localedir mandir
1242 1.1 christos do
1243 1.1 christos eval ac_val=\$$ac_var
1244 1.1 christos # Remove trailing slashes.
1245 1.1 christos case $ac_val in
1246 1.1 christos */ )
1247 1.1 christos ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 1.1 christos eval $ac_var=\$ac_val;;
1249 1.1 christos esac
1250 1.1 christos # Be sure to have absolute directory names.
1251 1.1 christos case $ac_val in
1252 1.1 christos [\\/$]* | ?:[\\/]* ) continue;;
1253 1.1 christos NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254 1.1 christos esac
1255 1.1 christos as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256 1.1 christos done
1257 1.1 christos
1258 1.1 christos # There might be people who depend on the old broken behavior: `$host'
1259 1.1 christos # used to hold the argument of --host etc.
1260 1.1 christos # FIXME: To remove some day.
1261 1.1 christos build=$build_alias
1262 1.1 christos host=$host_alias
1263 1.1 christos target=$target_alias
1264 1.1 christos
1265 1.1 christos # FIXME: To remove some day.
1266 1.1 christos if test "x$host_alias" != x; then
1267 1.1 christos if test "x$build_alias" = x; then
1268 1.1 christos cross_compiling=maybe
1269 1.1 christos elif test "x$build_alias" != "x$host_alias"; then
1270 1.1 christos cross_compiling=yes
1271 1.1 christos fi
1272 1.1 christos fi
1273 1.1 christos
1274 1.1 christos ac_tool_prefix=
1275 1.1 christos test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276 1.1 christos
1277 1.1 christos test "$silent" = yes && exec 6>/dev/null
1278 1.1 christos
1279 1.1 christos
1280 1.1 christos ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281 1.1 christos ac_ls_di=`ls -di .` &&
1282 1.1 christos ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283 1.1 christos as_fn_error $? "working directory cannot be determined"
1284 1.1 christos test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 1.1 christos as_fn_error $? "pwd does not report name of working directory"
1286 1.1 christos
1287 1.1 christos
1288 1.1 christos # Find the source files, if location was not specified.
1289 1.1 christos if test -z "$srcdir"; then
1290 1.1 christos ac_srcdir_defaulted=yes
1291 1.1 christos # Try the directory containing this script, then the parent directory.
1292 1.1 christos ac_confdir=`$as_dirname -- "$as_myself" ||
1293 1.1 christos $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 1.1 christos X"$as_myself" : 'X\(//\)[^/]' \| \
1295 1.1 christos X"$as_myself" : 'X\(//\)$' \| \
1296 1.1 christos X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297 1.1 christos $as_echo X"$as_myself" |
1298 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 1.1 christos s//\1/
1300 1.1 christos q
1301 1.1 christos }
1302 1.1 christos /^X\(\/\/\)[^/].*/{
1303 1.1 christos s//\1/
1304 1.1 christos q
1305 1.1 christos }
1306 1.1 christos /^X\(\/\/\)$/{
1307 1.1 christos s//\1/
1308 1.1 christos q
1309 1.1 christos }
1310 1.1 christos /^X\(\/\).*/{
1311 1.1 christos s//\1/
1312 1.1 christos q
1313 1.1 christos }
1314 1.1 christos s/.*/./; q'`
1315 1.1 christos srcdir=$ac_confdir
1316 1.1 christos if test ! -r "$srcdir/$ac_unique_file"; then
1317 1.1 christos srcdir=..
1318 1.1 christos fi
1319 1.1 christos else
1320 1.1 christos ac_srcdir_defaulted=no
1321 1.1 christos fi
1322 1.1 christos if test ! -r "$srcdir/$ac_unique_file"; then
1323 1.1 christos test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324 1.1 christos as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325 1.1 christos fi
1326 1.1 christos ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 1.1 christos ac_abs_confdir=`(
1328 1.1 christos cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329 1.1 christos pwd)`
1330 1.1 christos # When building in place, set srcdir=.
1331 1.1 christos if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 1.1 christos srcdir=.
1333 1.1 christos fi
1334 1.1 christos # Remove unnecessary trailing slashes from srcdir.
1335 1.1 christos # Double slashes in file names in object file debugging info
1336 1.1 christos # mess up M-x gdb in Emacs.
1337 1.1 christos case $srcdir in
1338 1.1 christos */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 1.1 christos esac
1340 1.1 christos for ac_var in $ac_precious_vars; do
1341 1.1 christos eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342 1.1 christos eval ac_env_${ac_var}_value=\$${ac_var}
1343 1.1 christos eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344 1.1 christos eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345 1.1 christos done
1346 1.1 christos
1347 1.1 christos #
1348 1.1 christos # Report the --help message.
1349 1.1 christos #
1350 1.1 christos if test "$ac_init_help" = "long"; then
1351 1.1 christos # Omit some internal or obsolete options to make the list less imposing.
1352 1.1 christos # This message is too long to be a string in the A/UX 3.1 sh.
1353 1.1 christos cat <<_ACEOF
1354 1.1 christos \`configure' configures this package to adapt to many kinds of systems.
1355 1.1 christos
1356 1.1 christos Usage: $0 [OPTION]... [VAR=VALUE]...
1357 1.1 christos
1358 1.1 christos To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 1.1 christos VAR=VALUE. See below for descriptions of some of the useful variables.
1360 1.1 christos
1361 1.1 christos Defaults for the options are specified in brackets.
1362 1.1 christos
1363 1.1 christos Configuration:
1364 1.1 christos -h, --help display this help and exit
1365 1.1 christos --help=short display options specific to this package
1366 1.1 christos --help=recursive display the short help of all the included packages
1367 1.1 christos -V, --version display version information and exit
1368 1.1 christos -q, --quiet, --silent do not print \`checking ...' messages
1369 1.1 christos --cache-file=FILE cache test results in FILE [disabled]
1370 1.1 christos -C, --config-cache alias for \`--cache-file=config.cache'
1371 1.1 christos -n, --no-create do not create output files
1372 1.1 christos --srcdir=DIR find the sources in DIR [configure dir or \`..']
1373 1.1 christos
1374 1.1 christos Installation directories:
1375 1.1 christos --prefix=PREFIX install architecture-independent files in PREFIX
1376 1.1 christos [$ac_default_prefix]
1377 1.1 christos --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1378 1.1 christos [PREFIX]
1379 1.1 christos
1380 1.1 christos By default, \`make install' will install all the files in
1381 1.1 christos \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382 1.1 christos an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 1.1 christos for instance \`--prefix=\$HOME'.
1384 1.1 christos
1385 1.1 christos For better control, use the options below.
1386 1.1 christos
1387 1.1 christos Fine tuning of the installation directories:
1388 1.1 christos --bindir=DIR user executables [EPREFIX/bin]
1389 1.1 christos --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 1.1 christos --libexecdir=DIR program executables [EPREFIX/libexec]
1391 1.1 christos --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 1.1 christos --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 1.1 christos --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 1.1 christos --libdir=DIR object code libraries [EPREFIX/lib]
1395 1.1 christos --includedir=DIR C header files [PREFIX/include]
1396 1.1 christos --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 1.1 christos --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 1.1 christos --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 1.1 christos --infodir=DIR info documentation [DATAROOTDIR/info]
1400 1.1 christos --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 1.1 christos --mandir=DIR man documentation [DATAROOTDIR/man]
1402 1.1 christos --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1403 1.1 christos --htmldir=DIR html documentation [DOCDIR]
1404 1.1 christos --dvidir=DIR dvi documentation [DOCDIR]
1405 1.1 christos --pdfdir=DIR pdf documentation [DOCDIR]
1406 1.1 christos --psdir=DIR ps documentation [DOCDIR]
1407 1.1 christos _ACEOF
1408 1.1 christos
1409 1.1 christos cat <<\_ACEOF
1410 1.1 christos
1411 1.1 christos System types:
1412 1.1 christos --build=BUILD configure for building on BUILD [guessed]
1413 1.1 christos --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 1.1 christos _ACEOF
1415 1.1 christos fi
1416 1.1 christos
1417 1.1 christos if test -n "$ac_init_help"; then
1418 1.1 christos
1419 1.1 christos cat <<\_ACEOF
1420 1.1 christos
1421 1.1 christos Optional Features:
1422 1.1 christos --disable-option-checking ignore unrecognized --enable/--with options
1423 1.1 christos --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1424 1.1 christos --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1425 1.1 christos --disable-cxx Disable C++ integration
1426 1.1 christos --enable-autogen Automatically regenerate configure output
1427 1.1 christos --enable-debug Build debugging code
1428 1.1 christos --disable-stats Disable statistics calculation/reporting
1429 1.1 christos --enable-prof Enable allocation profiling
1430 1.1 christos --enable-prof-libunwind Use libunwind for backtracing
1431 1.1 christos --disable-prof-libgcc Do not use libgcc for backtracing
1432 1.1 christos --disable-prof-gcc Do not use gcc intrinsics for backtracing
1433 1.1 christos --disable-fill Disable support for junk/zero filling
1434 1.1 christos --enable-utrace Enable utrace(2)-based tracing
1435 1.1 christos --enable-xmalloc Support xmalloc option
1436 1.1 christos --disable-cache-oblivious
1437 1.1 christos Disable support for cache-oblivious allocation
1438 1.1 christos alignment
1439 1.1 christos --enable-log Support debug logging
1440 1.1 christos --disable-syscall Disable use of syscall(2)
1441 1.1 christos --enable-lazy-lock Enable lazy locking (only lock when multi-threaded)
1442 1.1 christos --disable-zone-allocator
1443 1.1 christos Disable zone allocator for Darwin
1444 1.1 christos --disable-initial-exec-tls
1445 1.1 christos Disable the initial-exec tls model
1446 1.1 christos
1447 1.1 christos Optional Packages:
1448 1.1 christos --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1449 1.1 christos --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1450 1.1 christos --with-xslroot=<path> XSL stylesheet root path
1451 1.1 christos --with-lg-vaddr=<lg-vaddr>
1452 1.1 christos Number of significant virtual address bits
1453 1.1 christos --with-rpath=<rpath> Colon-separated rpath (ELF systems only)
1454 1.1 christos --with-mangling=<map> Mangle symbols in <map>
1455 1.1 christos --with-jemalloc-prefix=<prefix>
1456 1.1 christos Prefix to prepend to all public APIs
1457 1.1 christos --without-export disable exporting jemalloc public APIs
1458 1.1 christos --with-private-namespace=<prefix>
1459 1.1 christos Prefix to prepend to all library-private APIs
1460 1.1 christos --with-install-suffix=<suffix>
1461 1.1 christos Suffix to append to all installed files
1462 1.1 christos --with-malloc-conf=<malloc_conf>
1463 1.1 christos config.malloc_conf options string
1464 1.1 christos --with-static-libunwind=<libunwind.a>
1465 1.1 christos Path to static libunwind library; use rather than
1466 1.1 christos dynamically linking
1467 1.1 christos --with-lg-quantum=<lg-quantum>
1468 1.1 christos Base 2 log of minimum allocation alignment
1469 1.1 christos --with-lg-page=<lg-page>
1470 1.1 christos Base 2 log of system page size
1471 1.1 christos --with-lg-hugepage=<lg-hugepage>
1472 1.1 christos Base 2 log of system huge page size
1473 1.1 christos --with-lg-page-sizes=<lg-page-sizes>
1474 1.1 christos Base 2 logs of system page sizes to support
1475 1.1 christos --with-version=<major>.<minor>.<bugfix>-<nrev>-g<gid>
1476 1.1 christos Version string
1477 1.1 christos
1478 1.1 christos Some influential environment variables:
1479 1.1 christos CC C compiler command
1480 1.1 christos CFLAGS C compiler flags
1481 1.1 christos LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1482 1.1 christos nonstandard directory <lib dir>
1483 1.1 christos LIBS libraries to pass to the linker, e.g. -l<library>
1484 1.1 christos CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1485 1.1 christos you have headers in a nonstandard directory <include dir>
1486 1.1 christos CPP C preprocessor
1487 1.1 christos CXX C++ compiler command
1488 1.1 christos CXXFLAGS C++ compiler flags
1489 1.1 christos
1490 1.1 christos Use these variables to override the choices made by `configure' or to help
1491 1.1 christos it to find libraries and programs with nonstandard names/locations.
1492 1.1 christos
1493 1.1 christos Report bugs to the package provider.
1494 1.1 christos _ACEOF
1495 1.1 christos ac_status=$?
1496 1.1 christos fi
1497 1.1 christos
1498 1.1 christos if test "$ac_init_help" = "recursive"; then
1499 1.1 christos # If there are subdirs, report their specific --help.
1500 1.1 christos for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501 1.1 christos test -d "$ac_dir" ||
1502 1.1 christos { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503 1.1 christos continue
1504 1.1 christos ac_builddir=.
1505 1.1 christos
1506 1.1 christos case "$ac_dir" in
1507 1.1 christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 1.1 christos *)
1509 1.1 christos ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1510 1.1 christos # A ".." for each directory in $ac_dir_suffix.
1511 1.1 christos ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512 1.1 christos case $ac_top_builddir_sub in
1513 1.1 christos "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 1.1 christos *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 1.1 christos esac ;;
1516 1.1 christos esac
1517 1.1 christos ac_abs_top_builddir=$ac_pwd
1518 1.1 christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 1.1 christos # for backward compatibility:
1520 1.1 christos ac_top_builddir=$ac_top_build_prefix
1521 1.1 christos
1522 1.1 christos case $srcdir in
1523 1.1 christos .) # We are building in place.
1524 1.1 christos ac_srcdir=.
1525 1.1 christos ac_top_srcdir=$ac_top_builddir_sub
1526 1.1 christos ac_abs_top_srcdir=$ac_pwd ;;
1527 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute name.
1528 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix;
1529 1.1 christos ac_top_srcdir=$srcdir
1530 1.1 christos ac_abs_top_srcdir=$srcdir ;;
1531 1.1 christos *) # Relative name.
1532 1.1 christos ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 1.1 christos ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 1.1 christos ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 1.1 christos esac
1536 1.1 christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537 1.1 christos
1538 1.1 christos cd "$ac_dir" || { ac_status=$?; continue; }
1539 1.1 christos # Check for guested configure.
1540 1.1 christos if test -f "$ac_srcdir/configure.gnu"; then
1541 1.1 christos echo &&
1542 1.1 christos $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 1.1 christos elif test -f "$ac_srcdir/configure"; then
1544 1.1 christos echo &&
1545 1.1 christos $SHELL "$ac_srcdir/configure" --help=recursive
1546 1.1 christos else
1547 1.1 christos $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 1.1 christos fi || ac_status=$?
1549 1.1 christos cd "$ac_pwd" || { ac_status=$?; break; }
1550 1.1 christos done
1551 1.1 christos fi
1552 1.1 christos
1553 1.1 christos test -n "$ac_init_help" && exit $ac_status
1554 1.1 christos if $ac_init_version; then
1555 1.1 christos cat <<\_ACEOF
1556 1.1 christos configure
1557 1.1 christos generated by GNU Autoconf 2.69
1558 1.1 christos
1559 1.1 christos Copyright (C) 2012 Free Software Foundation, Inc.
1560 1.1 christos This configure script is free software; the Free Software Foundation
1561 1.1 christos gives unlimited permission to copy, distribute and modify it.
1562 1.1 christos _ACEOF
1563 1.1 christos exit
1564 1.1 christos fi
1565 1.1 christos
1566 1.1 christos ## ------------------------ ##
1567 1.1 christos ## Autoconf initialization. ##
1568 1.1 christos ## ------------------------ ##
1569 1.1 christos
1570 1.1 christos # ac_fn_c_try_compile LINENO
1571 1.1 christos # --------------------------
1572 1.1 christos # Try to compile conftest.$ac_ext, and return whether this succeeded.
1573 1.1 christos ac_fn_c_try_compile ()
1574 1.1 christos {
1575 1.1 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 1.1 christos rm -f conftest.$ac_objext
1577 1.1 christos if { { ac_try="$ac_compile"
1578 1.1 christos case "(($ac_try" in
1579 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 1.1 christos *) ac_try_echo=$ac_try;;
1581 1.1 christos esac
1582 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 1.1 christos $as_echo "$ac_try_echo"; } >&5
1584 1.1 christos (eval "$ac_compile") 2>conftest.err
1585 1.1 christos ac_status=$?
1586 1.1 christos if test -s conftest.err; then
1587 1.1 christos grep -v '^ *+' conftest.err >conftest.er1
1588 1.1 christos cat conftest.er1 >&5
1589 1.1 christos mv -f conftest.er1 conftest.err
1590 1.1 christos fi
1591 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 1.1 christos test $ac_status = 0; } && {
1593 1.1 christos test -z "$ac_c_werror_flag" ||
1594 1.1 christos test ! -s conftest.err
1595 1.1 christos } && test -s conftest.$ac_objext; then :
1596 1.1 christos ac_retval=0
1597 1.1 christos else
1598 1.1 christos $as_echo "$as_me: failed program was:" >&5
1599 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
1600 1.1 christos
1601 1.1 christos ac_retval=1
1602 1.1 christos fi
1603 1.1 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 1.1 christos as_fn_set_status $ac_retval
1605 1.1 christos
1606 1.1 christos } # ac_fn_c_try_compile
1607 1.1 christos
1608 1.1 christos # ac_fn_c_try_cpp LINENO
1609 1.1 christos # ----------------------
1610 1.1 christos # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1611 1.1 christos ac_fn_c_try_cpp ()
1612 1.1 christos {
1613 1.1 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 1.1 christos if { { ac_try="$ac_cpp conftest.$ac_ext"
1615 1.1 christos case "(($ac_try" in
1616 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 1.1 christos *) ac_try_echo=$ac_try;;
1618 1.1 christos esac
1619 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 1.1 christos $as_echo "$ac_try_echo"; } >&5
1621 1.1 christos (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1622 1.1 christos ac_status=$?
1623 1.1 christos if test -s conftest.err; then
1624 1.1 christos grep -v '^ *+' conftest.err >conftest.er1
1625 1.1 christos cat conftest.er1 >&5
1626 1.1 christos mv -f conftest.er1 conftest.err
1627 1.1 christos fi
1628 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 1.1 christos test $ac_status = 0; } > conftest.i && {
1630 1.1 christos test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1631 1.1 christos test ! -s conftest.err
1632 1.1 christos }; then :
1633 1.1 christos ac_retval=0
1634 1.1 christos else
1635 1.1 christos $as_echo "$as_me: failed program was:" >&5
1636 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
1637 1.1 christos
1638 1.1 christos ac_retval=1
1639 1.1 christos fi
1640 1.1 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 1.1 christos as_fn_set_status $ac_retval
1642 1.1 christos
1643 1.1 christos } # ac_fn_c_try_cpp
1644 1.1 christos
1645 1.1 christos # ac_fn_cxx_try_compile LINENO
1646 1.1 christos # ----------------------------
1647 1.1 christos # Try to compile conftest.$ac_ext, and return whether this succeeded.
1648 1.1 christos ac_fn_cxx_try_compile ()
1649 1.1 christos {
1650 1.1 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 1.1 christos rm -f conftest.$ac_objext
1652 1.1 christos if { { ac_try="$ac_compile"
1653 1.1 christos case "(($ac_try" in
1654 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 1.1 christos *) ac_try_echo=$ac_try;;
1656 1.1 christos esac
1657 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 1.1 christos $as_echo "$ac_try_echo"; } >&5
1659 1.1 christos (eval "$ac_compile") 2>conftest.err
1660 1.1 christos ac_status=$?
1661 1.1 christos if test -s conftest.err; then
1662 1.1 christos grep -v '^ *+' conftest.err >conftest.er1
1663 1.1 christos cat conftest.er1 >&5
1664 1.1 christos mv -f conftest.er1 conftest.err
1665 1.1 christos fi
1666 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 1.1 christos test $ac_status = 0; } && {
1668 1.1 christos test -z "$ac_cxx_werror_flag" ||
1669 1.1 christos test ! -s conftest.err
1670 1.1 christos } && test -s conftest.$ac_objext; then :
1671 1.1 christos ac_retval=0
1672 1.1 christos else
1673 1.1 christos $as_echo "$as_me: failed program was:" >&5
1674 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
1675 1.1 christos
1676 1.1 christos ac_retval=1
1677 1.1 christos fi
1678 1.1 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679 1.1 christos as_fn_set_status $ac_retval
1680 1.1 christos
1681 1.1 christos } # ac_fn_cxx_try_compile
1682 1.1 christos
1683 1.1 christos # ac_fn_c_try_link LINENO
1684 1.1 christos # -----------------------
1685 1.1 christos # Try to link conftest.$ac_ext, and return whether this succeeded.
1686 1.1 christos ac_fn_c_try_link ()
1687 1.1 christos {
1688 1.1 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext
1690 1.1 christos if { { ac_try="$ac_link"
1691 1.1 christos case "(($ac_try" in
1692 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 1.1 christos *) ac_try_echo=$ac_try;;
1694 1.1 christos esac
1695 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 1.1 christos $as_echo "$ac_try_echo"; } >&5
1697 1.1 christos (eval "$ac_link") 2>conftest.err
1698 1.1 christos ac_status=$?
1699 1.1 christos if test -s conftest.err; then
1700 1.1 christos grep -v '^ *+' conftest.err >conftest.er1
1701 1.1 christos cat conftest.er1 >&5
1702 1.1 christos mv -f conftest.er1 conftest.err
1703 1.1 christos fi
1704 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 1.1 christos test $ac_status = 0; } && {
1706 1.1 christos test -z "$ac_c_werror_flag" ||
1707 1.1 christos test ! -s conftest.err
1708 1.1 christos } && test -s conftest$ac_exeext && {
1709 1.1 christos test "$cross_compiling" = yes ||
1710 1.1 christos test -x conftest$ac_exeext
1711 1.1 christos }; then :
1712 1.1 christos ac_retval=0
1713 1.1 christos else
1714 1.1 christos $as_echo "$as_me: failed program was:" >&5
1715 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
1716 1.1 christos
1717 1.1 christos ac_retval=1
1718 1.1 christos fi
1719 1.1 christos # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720 1.1 christos # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721 1.1 christos # interfere with the next link command; also delete a directory that is
1722 1.1 christos # left behind by Apple's compiler. We do this before executing the actions.
1723 1.1 christos rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 1.1 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 1.1 christos as_fn_set_status $ac_retval
1726 1.1 christos
1727 1.1 christos } # ac_fn_c_try_link
1728 1.1 christos
1729 1.1 christos # ac_fn_c_try_run LINENO
1730 1.1 christos # ----------------------
1731 1.1 christos # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1732 1.1 christos # that executables *can* be run.
1733 1.1 christos ac_fn_c_try_run ()
1734 1.1 christos {
1735 1.1 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 1.1 christos if { { ac_try="$ac_link"
1737 1.1 christos case "(($ac_try" in
1738 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 1.1 christos *) ac_try_echo=$ac_try;;
1740 1.1 christos esac
1741 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 1.1 christos $as_echo "$ac_try_echo"; } >&5
1743 1.1 christos (eval "$ac_link") 2>&5
1744 1.1 christos ac_status=$?
1745 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 1.1 christos test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1747 1.1 christos { { case "(($ac_try" in
1748 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 1.1 christos *) ac_try_echo=$ac_try;;
1750 1.1 christos esac
1751 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 1.1 christos $as_echo "$ac_try_echo"; } >&5
1753 1.1 christos (eval "$ac_try") 2>&5
1754 1.1 christos ac_status=$?
1755 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 1.1 christos test $ac_status = 0; }; }; then :
1757 1.1 christos ac_retval=0
1758 1.1 christos else
1759 1.1 christos $as_echo "$as_me: program exited with status $ac_status" >&5
1760 1.1 christos $as_echo "$as_me: failed program was:" >&5
1761 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
1762 1.1 christos
1763 1.1 christos ac_retval=$ac_status
1764 1.1 christos fi
1765 1.1 christos rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 1.1 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 1.1 christos as_fn_set_status $ac_retval
1768 1.1 christos
1769 1.1 christos } # ac_fn_c_try_run
1770 1.1 christos
1771 1.1 christos # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1772 1.1 christos # -------------------------------------------------------
1773 1.1 christos # Tests whether HEADER exists and can be compiled using the include files in
1774 1.1 christos # INCLUDES, setting the cache variable VAR accordingly.
1775 1.1 christos ac_fn_c_check_header_compile ()
1776 1.1 christos {
1777 1.1 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 1.1 christos $as_echo_n "checking for $2... " >&6; }
1780 1.1 christos if eval \${$3+:} false; then :
1781 1.1 christos $as_echo_n "(cached) " >&6
1782 1.1 christos else
1783 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 1.1 christos /* end confdefs.h. */
1785 1.1 christos $4
1786 1.1 christos #include <$2>
1787 1.1 christos _ACEOF
1788 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
1789 1.1 christos eval "$3=yes"
1790 1.1 christos else
1791 1.1 christos eval "$3=no"
1792 1.1 christos fi
1793 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 1.1 christos fi
1795 1.1 christos eval ac_res=\$$3
1796 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 1.1 christos $as_echo "$ac_res" >&6; }
1798 1.1 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 1.1 christos
1800 1.1 christos } # ac_fn_c_check_header_compile
1801 1.1 christos
1802 1.1 christos # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1803 1.1 christos # --------------------------------------------
1804 1.1 christos # Tries to find the compile-time value of EXPR in a program that includes
1805 1.1 christos # INCLUDES, setting VAR accordingly. Returns whether the value could be
1806 1.1 christos # computed
1807 1.1 christos ac_fn_c_compute_int ()
1808 1.1 christos {
1809 1.1 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 1.1 christos if test "$cross_compiling" = yes; then
1811 1.1 christos # Depending upon the size, compute the lo and hi bounds.
1812 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 1.1 christos /* end confdefs.h. */
1814 1.1 christos $4
1815 1.1 christos int
1816 1.1 christos main ()
1817 1.1 christos {
1818 1.1 christos static int test_array [1 - 2 * !(($2) >= 0)];
1819 1.1 christos test_array [0] = 0;
1820 1.1 christos return test_array [0];
1821 1.1 christos
1822 1.1 christos ;
1823 1.1 christos return 0;
1824 1.1 christos }
1825 1.1 christos _ACEOF
1826 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
1827 1.1 christos ac_lo=0 ac_mid=0
1828 1.1 christos while :; do
1829 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 1.1 christos /* end confdefs.h. */
1831 1.1 christos $4
1832 1.1 christos int
1833 1.1 christos main ()
1834 1.1 christos {
1835 1.1 christos static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1836 1.1 christos test_array [0] = 0;
1837 1.1 christos return test_array [0];
1838 1.1 christos
1839 1.1 christos ;
1840 1.1 christos return 0;
1841 1.1 christos }
1842 1.1 christos _ACEOF
1843 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
1844 1.1 christos ac_hi=$ac_mid; break
1845 1.1 christos else
1846 1.1 christos as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1847 1.1 christos if test $ac_lo -le $ac_mid; then
1848 1.1 christos ac_lo= ac_hi=
1849 1.1 christos break
1850 1.1 christos fi
1851 1.1 christos as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1852 1.1 christos fi
1853 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 1.1 christos done
1855 1.1 christos else
1856 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 1.1 christos /* end confdefs.h. */
1858 1.1 christos $4
1859 1.1 christos int
1860 1.1 christos main ()
1861 1.1 christos {
1862 1.1 christos static int test_array [1 - 2 * !(($2) < 0)];
1863 1.1 christos test_array [0] = 0;
1864 1.1 christos return test_array [0];
1865 1.1 christos
1866 1.1 christos ;
1867 1.1 christos return 0;
1868 1.1 christos }
1869 1.1 christos _ACEOF
1870 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
1871 1.1 christos ac_hi=-1 ac_mid=-1
1872 1.1 christos while :; do
1873 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 1.1 christos /* end confdefs.h. */
1875 1.1 christos $4
1876 1.1 christos int
1877 1.1 christos main ()
1878 1.1 christos {
1879 1.1 christos static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1880 1.1 christos test_array [0] = 0;
1881 1.1 christos return test_array [0];
1882 1.1 christos
1883 1.1 christos ;
1884 1.1 christos return 0;
1885 1.1 christos }
1886 1.1 christos _ACEOF
1887 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
1888 1.1 christos ac_lo=$ac_mid; break
1889 1.1 christos else
1890 1.1 christos as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1891 1.1 christos if test $ac_mid -le $ac_hi; then
1892 1.1 christos ac_lo= ac_hi=
1893 1.1 christos break
1894 1.1 christos fi
1895 1.1 christos as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1896 1.1 christos fi
1897 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898 1.1 christos done
1899 1.1 christos else
1900 1.1 christos ac_lo= ac_hi=
1901 1.1 christos fi
1902 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903 1.1 christos fi
1904 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 1.1 christos # Binary search between lo and hi bounds.
1906 1.1 christos while test "x$ac_lo" != "x$ac_hi"; do
1907 1.1 christos as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1908 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 1.1 christos /* end confdefs.h. */
1910 1.1 christos $4
1911 1.1 christos int
1912 1.1 christos main ()
1913 1.1 christos {
1914 1.1 christos static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1915 1.1 christos test_array [0] = 0;
1916 1.1 christos return test_array [0];
1917 1.1 christos
1918 1.1 christos ;
1919 1.1 christos return 0;
1920 1.1 christos }
1921 1.1 christos _ACEOF
1922 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
1923 1.1 christos ac_hi=$ac_mid
1924 1.1 christos else
1925 1.1 christos as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1926 1.1 christos fi
1927 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 1.1 christos done
1929 1.1 christos case $ac_lo in #((
1930 1.1 christos ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1931 1.1 christos '') ac_retval=1 ;;
1932 1.1 christos esac
1933 1.1 christos else
1934 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 1.1 christos /* end confdefs.h. */
1936 1.1 christos $4
1937 1.1 christos static long int longval () { return $2; }
1938 1.1 christos static unsigned long int ulongval () { return $2; }
1939 1.1 christos #include <stdio.h>
1940 1.1 christos #include <stdlib.h>
1941 1.1 christos int
1942 1.1 christos main ()
1943 1.1 christos {
1944 1.1 christos
1945 1.1 christos FILE *f = fopen ("conftest.val", "w");
1946 1.1 christos if (! f)
1947 1.1 christos return 1;
1948 1.1 christos if (($2) < 0)
1949 1.1 christos {
1950 1.1 christos long int i = longval ();
1951 1.1 christos if (i != ($2))
1952 1.1 christos return 1;
1953 1.1 christos fprintf (f, "%ld", i);
1954 1.1 christos }
1955 1.1 christos else
1956 1.1 christos {
1957 1.1 christos unsigned long int i = ulongval ();
1958 1.1 christos if (i != ($2))
1959 1.1 christos return 1;
1960 1.1 christos fprintf (f, "%lu", i);
1961 1.1 christos }
1962 1.1 christos /* Do not output a trailing newline, as this causes \r\n confusion
1963 1.1 christos on some platforms. */
1964 1.1 christos return ferror (f) || fclose (f) != 0;
1965 1.1 christos
1966 1.1 christos ;
1967 1.1 christos return 0;
1968 1.1 christos }
1969 1.1 christos _ACEOF
1970 1.1 christos if ac_fn_c_try_run "$LINENO"; then :
1971 1.1 christos echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1972 1.1 christos else
1973 1.1 christos ac_retval=1
1974 1.1 christos fi
1975 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1976 1.1 christos conftest.$ac_objext conftest.beam conftest.$ac_ext
1977 1.1 christos rm -f conftest.val
1978 1.1 christos
1979 1.1 christos fi
1980 1.1 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981 1.1 christos as_fn_set_status $ac_retval
1982 1.1 christos
1983 1.1 christos } # ac_fn_c_compute_int
1984 1.1 christos
1985 1.1 christos # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1986 1.1 christos # -------------------------------------------------------
1987 1.1 christos # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1988 1.1 christos # the include files in INCLUDES and setting the cache variable VAR
1989 1.1 christos # accordingly.
1990 1.1 christos ac_fn_c_check_header_mongrel ()
1991 1.1 christos {
1992 1.1 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 1.1 christos if eval \${$3+:} false; then :
1994 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1995 1.1 christos $as_echo_n "checking for $2... " >&6; }
1996 1.1 christos if eval \${$3+:} false; then :
1997 1.1 christos $as_echo_n "(cached) " >&6
1998 1.1 christos fi
1999 1.1 christos eval ac_res=\$$3
2000 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 1.1 christos $as_echo "$ac_res" >&6; }
2002 1.1 christos else
2003 1.1 christos # Is the header compilable?
2004 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2005 1.1 christos $as_echo_n "checking $2 usability... " >&6; }
2006 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 1.1 christos /* end confdefs.h. */
2008 1.1 christos $4
2009 1.1 christos #include <$2>
2010 1.1 christos _ACEOF
2011 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
2012 1.1 christos ac_header_compiler=yes
2013 1.1 christos else
2014 1.1 christos ac_header_compiler=no
2015 1.1 christos fi
2016 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2018 1.1 christos $as_echo "$ac_header_compiler" >&6; }
2019 1.1 christos
2020 1.1 christos # Is the header present?
2021 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2022 1.1 christos $as_echo_n "checking $2 presence... " >&6; }
2023 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 1.1 christos /* end confdefs.h. */
2025 1.1 christos #include <$2>
2026 1.1 christos _ACEOF
2027 1.1 christos if ac_fn_c_try_cpp "$LINENO"; then :
2028 1.1 christos ac_header_preproc=yes
2029 1.1 christos else
2030 1.1 christos ac_header_preproc=no
2031 1.1 christos fi
2032 1.1 christos rm -f conftest.err conftest.i conftest.$ac_ext
2033 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2034 1.1 christos $as_echo "$ac_header_preproc" >&6; }
2035 1.1 christos
2036 1.1 christos # So? What about this header?
2037 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2038 1.1 christos yes:no: )
2039 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2040 1.1 christos $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2041 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2042 1.1 christos $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2043 1.1 christos ;;
2044 1.1 christos no:yes:* )
2045 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2046 1.1 christos $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2047 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2048 1.1 christos $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2049 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2050 1.1 christos $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2051 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2052 1.1 christos $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2053 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2054 1.1 christos $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2055 1.1 christos ;;
2056 1.1 christos esac
2057 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 1.1 christos $as_echo_n "checking for $2... " >&6; }
2059 1.1 christos if eval \${$3+:} false; then :
2060 1.1 christos $as_echo_n "(cached) " >&6
2061 1.1 christos else
2062 1.1 christos eval "$3=\$ac_header_compiler"
2063 1.1 christos fi
2064 1.1 christos eval ac_res=\$$3
2065 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 1.1 christos $as_echo "$ac_res" >&6; }
2067 1.1 christos fi
2068 1.1 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069 1.1 christos
2070 1.1 christos } # ac_fn_c_check_header_mongrel
2071 1.1 christos
2072 1.1 christos # ac_fn_c_check_func LINENO FUNC VAR
2073 1.1 christos # ----------------------------------
2074 1.1 christos # Tests whether FUNC exists, setting the cache variable VAR accordingly
2075 1.1 christos ac_fn_c_check_func ()
2076 1.1 christos {
2077 1.1 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 1.1 christos $as_echo_n "checking for $2... " >&6; }
2080 1.1 christos if eval \${$3+:} false; then :
2081 1.1 christos $as_echo_n "(cached) " >&6
2082 1.1 christos else
2083 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 1.1 christos /* end confdefs.h. */
2085 1.1 christos /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2086 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */
2087 1.1 christos #define $2 innocuous_$2
2088 1.1 christos
2089 1.1 christos /* System header to define __stub macros and hopefully few prototypes,
2090 1.1 christos which can conflict with char $2 (); below.
2091 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2092 1.1 christos <limits.h> exists even on freestanding compilers. */
2093 1.1 christos
2094 1.1 christos #ifdef __STDC__
2095 1.1 christos # include <limits.h>
2096 1.1 christos #else
2097 1.1 christos # include <assert.h>
2098 1.1 christos #endif
2099 1.1 christos
2100 1.1 christos #undef $2
2101 1.1 christos
2102 1.1 christos /* Override any GCC internal prototype to avoid an error.
2103 1.1 christos Use char because int might match the return type of a GCC
2104 1.1 christos builtin and then its argument prototype would still apply. */
2105 1.1 christos #ifdef __cplusplus
2106 1.1 christos extern "C"
2107 1.1 christos #endif
2108 1.1 christos char $2 ();
2109 1.1 christos /* The GNU C library defines this for functions which it implements
2110 1.1 christos to always fail with ENOSYS. Some functions are actually named
2111 1.1 christos something starting with __ and the normal name is an alias. */
2112 1.1 christos #if defined __stub_$2 || defined __stub___$2
2113 1.1 christos choke me
2114 1.1 christos #endif
2115 1.1 christos
2116 1.1 christos int
2117 1.1 christos main ()
2118 1.1 christos {
2119 1.1 christos return $2 ();
2120 1.1 christos ;
2121 1.1 christos return 0;
2122 1.1 christos }
2123 1.1 christos _ACEOF
2124 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
2125 1.1 christos eval "$3=yes"
2126 1.1 christos else
2127 1.1 christos eval "$3=no"
2128 1.1 christos fi
2129 1.1 christos rm -f core conftest.err conftest.$ac_objext \
2130 1.1 christos conftest$ac_exeext conftest.$ac_ext
2131 1.1 christos fi
2132 1.1 christos eval ac_res=\$$3
2133 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 1.1 christos $as_echo "$ac_res" >&6; }
2135 1.1 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136 1.1 christos
2137 1.1 christos } # ac_fn_c_check_func
2138 1.1 christos
2139 1.1 christos # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2140 1.1 christos # -------------------------------------------
2141 1.1 christos # Tests whether TYPE exists after having included INCLUDES, setting cache
2142 1.1 christos # variable VAR accordingly.
2143 1.1 christos ac_fn_c_check_type ()
2144 1.1 christos {
2145 1.1 christos as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2147 1.1 christos $as_echo_n "checking for $2... " >&6; }
2148 1.1 christos if eval \${$3+:} false; then :
2149 1.1 christos $as_echo_n "(cached) " >&6
2150 1.1 christos else
2151 1.1 christos eval "$3=no"
2152 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 1.1 christos /* end confdefs.h. */
2154 1.1 christos $4
2155 1.1 christos int
2156 1.1 christos main ()
2157 1.1 christos {
2158 1.1 christos if (sizeof ($2))
2159 1.1 christos return 0;
2160 1.1 christos ;
2161 1.1 christos return 0;
2162 1.1 christos }
2163 1.1 christos _ACEOF
2164 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
2165 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 1.1 christos /* end confdefs.h. */
2167 1.1 christos $4
2168 1.1 christos int
2169 1.1 christos main ()
2170 1.1 christos {
2171 1.1 christos if (sizeof (($2)))
2172 1.1 christos return 0;
2173 1.1 christos ;
2174 1.1 christos return 0;
2175 1.1 christos }
2176 1.1 christos _ACEOF
2177 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
2178 1.1 christos
2179 1.1 christos else
2180 1.1 christos eval "$3=yes"
2181 1.1 christos fi
2182 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 1.1 christos fi
2184 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 1.1 christos fi
2186 1.1 christos eval ac_res=\$$3
2187 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 1.1 christos $as_echo "$ac_res" >&6; }
2189 1.1 christos eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2190 1.1 christos
2191 1.1 christos } # ac_fn_c_check_type
2192 1.1 christos cat >config.log <<_ACEOF
2193 1.1 christos This file contains any messages produced by compilers while
2194 1.1 christos running configure, to aid debugging if configure makes a mistake.
2195 1.1 christos
2196 1.1 christos It was created by $as_me, which was
2197 1.1 christos generated by GNU Autoconf 2.69. Invocation command line was
2198 1.1 christos
2199 1.1 christos $ $0 $@
2200 1.1 christos
2201 1.1 christos _ACEOF
2202 1.1 christos exec 5>>config.log
2203 1.1 christos {
2204 1.1 christos cat <<_ASUNAME
2205 1.1 christos ## --------- ##
2206 1.1 christos ## Platform. ##
2207 1.1 christos ## --------- ##
2208 1.1 christos
2209 1.1 christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2210 1.1 christos uname -m = `(uname -m) 2>/dev/null || echo unknown`
2211 1.1 christos uname -r = `(uname -r) 2>/dev/null || echo unknown`
2212 1.1 christos uname -s = `(uname -s) 2>/dev/null || echo unknown`
2213 1.1 christos uname -v = `(uname -v) 2>/dev/null || echo unknown`
2214 1.1 christos
2215 1.1 christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2216 1.1 christos /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2217 1.1 christos
2218 1.1 christos /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2219 1.1 christos /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2220 1.1 christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2221 1.1 christos /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2222 1.1 christos /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2223 1.1 christos /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2224 1.1 christos /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2225 1.1 christos
2226 1.1 christos _ASUNAME
2227 1.1 christos
2228 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 1.1 christos for as_dir in $PATH
2230 1.1 christos do
2231 1.1 christos IFS=$as_save_IFS
2232 1.1 christos test -z "$as_dir" && as_dir=.
2233 1.1 christos $as_echo "PATH: $as_dir"
2234 1.1 christos done
2235 1.1 christos IFS=$as_save_IFS
2236 1.1 christos
2237 1.1 christos } >&5
2238 1.1 christos
2239 1.1 christos cat >&5 <<_ACEOF
2240 1.1 christos
2241 1.1 christos
2242 1.1 christos ## ----------- ##
2243 1.1 christos ## Core tests. ##
2244 1.1 christos ## ----------- ##
2245 1.1 christos
2246 1.1 christos _ACEOF
2247 1.1 christos
2248 1.1 christos
2249 1.1 christos # Keep a trace of the command line.
2250 1.1 christos # Strip out --no-create and --no-recursion so they do not pile up.
2251 1.1 christos # Strip out --silent because we don't want to record it for future runs.
2252 1.1 christos # Also quote any args containing shell meta-characters.
2253 1.1 christos # Make two passes to allow for proper duplicate-argument suppression.
2254 1.1 christos ac_configure_args=
2255 1.1 christos ac_configure_args0=
2256 1.1 christos ac_configure_args1=
2257 1.1 christos ac_must_keep_next=false
2258 1.1 christos for ac_pass in 1 2
2259 1.1 christos do
2260 1.1 christos for ac_arg
2261 1.1 christos do
2262 1.1 christos case $ac_arg in
2263 1.1 christos -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2264 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2265 1.1 christos | -silent | --silent | --silen | --sile | --sil)
2266 1.1 christos continue ;;
2267 1.1 christos *\'*)
2268 1.1 christos ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2269 1.1 christos esac
2270 1.1 christos case $ac_pass in
2271 1.1 christos 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2272 1.1 christos 2)
2273 1.1 christos as_fn_append ac_configure_args1 " '$ac_arg'"
2274 1.1 christos if test $ac_must_keep_next = true; then
2275 1.1 christos ac_must_keep_next=false # Got value, back to normal.
2276 1.1 christos else
2277 1.1 christos case $ac_arg in
2278 1.1 christos *=* | --config-cache | -C | -disable-* | --disable-* \
2279 1.1 christos | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2280 1.1 christos | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2281 1.1 christos | -with-* | --with-* | -without-* | --without-* | --x)
2282 1.1 christos case "$ac_configure_args0 " in
2283 1.1 christos "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2284 1.1 christos esac
2285 1.1 christos ;;
2286 1.1 christos -* ) ac_must_keep_next=true ;;
2287 1.1 christos esac
2288 1.1 christos fi
2289 1.1 christos as_fn_append ac_configure_args " '$ac_arg'"
2290 1.1 christos ;;
2291 1.1 christos esac
2292 1.1 christos done
2293 1.1 christos done
2294 1.1 christos { ac_configure_args0=; unset ac_configure_args0;}
2295 1.1 christos { ac_configure_args1=; unset ac_configure_args1;}
2296 1.1 christos
2297 1.1 christos # When interrupted or exit'd, cleanup temporary files, and complete
2298 1.1 christos # config.log. We remove comments because anyway the quotes in there
2299 1.1 christos # would cause problems or look ugly.
2300 1.1 christos # WARNING: Use '\'' to represent an apostrophe within the trap.
2301 1.1 christos # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2302 1.1 christos trap 'exit_status=$?
2303 1.1 christos # Save into config.log some information that might help in debugging.
2304 1.1 christos {
2305 1.1 christos echo
2306 1.1 christos
2307 1.1 christos $as_echo "## ---------------- ##
2308 1.1 christos ## Cache variables. ##
2309 1.1 christos ## ---------------- ##"
2310 1.1 christos echo
2311 1.1 christos # The following way of writing the cache mishandles newlines in values,
2312 1.1 christos (
2313 1.1 christos for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2314 1.1 christos eval ac_val=\$$ac_var
2315 1.1 christos case $ac_val in #(
2316 1.1 christos *${as_nl}*)
2317 1.1 christos case $ac_var in #(
2318 1.1 christos *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2319 1.1 christos $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2320 1.1 christos esac
2321 1.1 christos case $ac_var in #(
2322 1.1 christos _ | IFS | as_nl) ;; #(
2323 1.1 christos BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2324 1.1 christos *) { eval $ac_var=; unset $ac_var;} ;;
2325 1.1 christos esac ;;
2326 1.1 christos esac
2327 1.1 christos done
2328 1.1 christos (set) 2>&1 |
2329 1.1 christos case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2330 1.1 christos *${as_nl}ac_space=\ *)
2331 1.1 christos sed -n \
2332 1.1 christos "s/'\''/'\''\\\\'\'''\''/g;
2333 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2334 1.1 christos ;; #(
2335 1.1 christos *)
2336 1.1 christos sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2337 1.1 christos ;;
2338 1.1 christos esac |
2339 1.1 christos sort
2340 1.1 christos )
2341 1.1 christos echo
2342 1.1 christos
2343 1.1 christos $as_echo "## ----------------- ##
2344 1.1 christos ## Output variables. ##
2345 1.1 christos ## ----------------- ##"
2346 1.1 christos echo
2347 1.1 christos for ac_var in $ac_subst_vars
2348 1.1 christos do
2349 1.1 christos eval ac_val=\$$ac_var
2350 1.1 christos case $ac_val in
2351 1.1 christos *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2352 1.1 christos esac
2353 1.1 christos $as_echo "$ac_var='\''$ac_val'\''"
2354 1.1 christos done | sort
2355 1.1 christos echo
2356 1.1 christos
2357 1.1 christos if test -n "$ac_subst_files"; then
2358 1.1 christos $as_echo "## ------------------- ##
2359 1.1 christos ## File substitutions. ##
2360 1.1 christos ## ------------------- ##"
2361 1.1 christos echo
2362 1.1 christos for ac_var in $ac_subst_files
2363 1.1 christos do
2364 1.1 christos eval ac_val=\$$ac_var
2365 1.1 christos case $ac_val in
2366 1.1 christos *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2367 1.1 christos esac
2368 1.1 christos $as_echo "$ac_var='\''$ac_val'\''"
2369 1.1 christos done | sort
2370 1.1 christos echo
2371 1.1 christos fi
2372 1.1 christos
2373 1.1 christos if test -s confdefs.h; then
2374 1.1 christos $as_echo "## ----------- ##
2375 1.1 christos ## confdefs.h. ##
2376 1.1 christos ## ----------- ##"
2377 1.1 christos echo
2378 1.1 christos cat confdefs.h
2379 1.1 christos echo
2380 1.1 christos fi
2381 1.1 christos test "$ac_signal" != 0 &&
2382 1.1 christos $as_echo "$as_me: caught signal $ac_signal"
2383 1.1 christos $as_echo "$as_me: exit $exit_status"
2384 1.1 christos } >&5
2385 1.1 christos rm -f core *.core core.conftest.* &&
2386 1.1 christos rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2387 1.1 christos exit $exit_status
2388 1.1 christos ' 0
2389 1.1 christos for ac_signal in 1 2 13 15; do
2390 1.1 christos trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2391 1.1 christos done
2392 1.1 christos ac_signal=0
2393 1.1 christos
2394 1.1 christos # confdefs.h avoids OS command line length limits that DEFS can exceed.
2395 1.1 christos rm -f -r conftest* confdefs.h
2396 1.1 christos
2397 1.1 christos $as_echo "/* confdefs.h */" > confdefs.h
2398 1.1 christos
2399 1.1 christos # Predefined preprocessor variables.
2400 1.1 christos
2401 1.1 christos cat >>confdefs.h <<_ACEOF
2402 1.1 christos #define PACKAGE_NAME "$PACKAGE_NAME"
2403 1.1 christos _ACEOF
2404 1.1 christos
2405 1.1 christos cat >>confdefs.h <<_ACEOF
2406 1.1 christos #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2407 1.1 christos _ACEOF
2408 1.1 christos
2409 1.1 christos cat >>confdefs.h <<_ACEOF
2410 1.1 christos #define PACKAGE_VERSION "$PACKAGE_VERSION"
2411 1.1 christos _ACEOF
2412 1.1 christos
2413 1.1 christos cat >>confdefs.h <<_ACEOF
2414 1.1 christos #define PACKAGE_STRING "$PACKAGE_STRING"
2415 1.1 christos _ACEOF
2416 1.1 christos
2417 1.1 christos cat >>confdefs.h <<_ACEOF
2418 1.1 christos #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2419 1.1 christos _ACEOF
2420 1.1 christos
2421 1.1 christos cat >>confdefs.h <<_ACEOF
2422 1.1 christos #define PACKAGE_URL "$PACKAGE_URL"
2423 1.1 christos _ACEOF
2424 1.1 christos
2425 1.1 christos
2426 1.1 christos # Let the site file select an alternate cache file if it wants to.
2427 1.1 christos # Prefer an explicitly selected file to automatically selected ones.
2428 1.1 christos ac_site_file1=NONE
2429 1.1 christos ac_site_file2=NONE
2430 1.1 christos if test -n "$CONFIG_SITE"; then
2431 1.1 christos # We do not want a PATH search for config.site.
2432 1.1 christos case $CONFIG_SITE in #((
2433 1.1 christos -*) ac_site_file1=./$CONFIG_SITE;;
2434 1.1 christos */*) ac_site_file1=$CONFIG_SITE;;
2435 1.1 christos *) ac_site_file1=./$CONFIG_SITE;;
2436 1.1 christos esac
2437 1.1 christos elif test "x$prefix" != xNONE; then
2438 1.1 christos ac_site_file1=$prefix/share/config.site
2439 1.1 christos ac_site_file2=$prefix/etc/config.site
2440 1.1 christos else
2441 1.1 christos ac_site_file1=$ac_default_prefix/share/config.site
2442 1.1 christos ac_site_file2=$ac_default_prefix/etc/config.site
2443 1.1 christos fi
2444 1.1 christos for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2445 1.1 christos do
2446 1.1 christos test "x$ac_site_file" = xNONE && continue
2447 1.1 christos if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2448 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2449 1.1 christos $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2450 1.1 christos sed 's/^/| /' "$ac_site_file" >&5
2451 1.1 christos . "$ac_site_file" \
2452 1.1 christos || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2453 1.1 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2454 1.1 christos as_fn_error $? "failed to load site script $ac_site_file
2455 1.1 christos See \`config.log' for more details" "$LINENO" 5; }
2456 1.1 christos fi
2457 1.1 christos done
2458 1.1 christos
2459 1.1 christos if test -r "$cache_file"; then
2460 1.1 christos # Some versions of bash will fail to source /dev/null (special files
2461 1.1 christos # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2462 1.1 christos if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2463 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2464 1.1 christos $as_echo "$as_me: loading cache $cache_file" >&6;}
2465 1.1 christos case $cache_file in
2466 1.1 christos [\\/]* | ?:[\\/]* ) . "$cache_file";;
2467 1.1 christos *) . "./$cache_file";;
2468 1.1 christos esac
2469 1.1 christos fi
2470 1.1 christos else
2471 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2472 1.1 christos $as_echo "$as_me: creating cache $cache_file" >&6;}
2473 1.1 christos >$cache_file
2474 1.1 christos fi
2475 1.1 christos
2476 1.1 christos # Check that the precious variables saved in the cache have kept the same
2477 1.1 christos # value.
2478 1.1 christos ac_cache_corrupted=false
2479 1.1 christos for ac_var in $ac_precious_vars; do
2480 1.1 christos eval ac_old_set=\$ac_cv_env_${ac_var}_set
2481 1.1 christos eval ac_new_set=\$ac_env_${ac_var}_set
2482 1.1 christos eval ac_old_val=\$ac_cv_env_${ac_var}_value
2483 1.1 christos eval ac_new_val=\$ac_env_${ac_var}_value
2484 1.1 christos case $ac_old_set,$ac_new_set in
2485 1.1 christos set,)
2486 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2487 1.1 christos $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2488 1.1 christos ac_cache_corrupted=: ;;
2489 1.1 christos ,set)
2490 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2491 1.1 christos $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2492 1.1 christos ac_cache_corrupted=: ;;
2493 1.1 christos ,);;
2494 1.1 christos *)
2495 1.1 christos if test "x$ac_old_val" != "x$ac_new_val"; then
2496 1.1 christos # differences in whitespace do not lead to failure.
2497 1.1 christos ac_old_val_w=`echo x $ac_old_val`
2498 1.1 christos ac_new_val_w=`echo x $ac_new_val`
2499 1.1 christos if test "$ac_old_val_w" != "$ac_new_val_w"; then
2500 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2501 1.1 christos $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2502 1.1 christos ac_cache_corrupted=:
2503 1.1 christos else
2504 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2505 1.1 christos $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2506 1.1 christos eval $ac_var=\$ac_old_val
2507 1.1 christos fi
2508 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2509 1.1 christos $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2510 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2511 1.1 christos $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2512 1.1 christos fi;;
2513 1.1 christos esac
2514 1.1 christos # Pass precious variables to config.status.
2515 1.1 christos if test "$ac_new_set" = set; then
2516 1.1 christos case $ac_new_val in
2517 1.1 christos *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2518 1.1 christos *) ac_arg=$ac_var=$ac_new_val ;;
2519 1.1 christos esac
2520 1.1 christos case " $ac_configure_args " in
2521 1.1 christos *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2522 1.1 christos *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2523 1.1 christos esac
2524 1.1 christos fi
2525 1.1 christos done
2526 1.1 christos if $ac_cache_corrupted; then
2527 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2528 1.1 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2529 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2530 1.1 christos $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2531 1.1 christos as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2532 1.1 christos fi
2533 1.1 christos ## -------------------- ##
2534 1.1 christos ## Main body of script. ##
2535 1.1 christos ## -------------------- ##
2536 1.1 christos
2537 1.1 christos ac_ext=c
2538 1.1 christos ac_cpp='$CPP $CPPFLAGS'
2539 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
2542 1.1 christos
2543 1.1 christos
2544 1.1 christos
2545 1.1 christos ac_aux_dir=
2546 1.1 christos for ac_dir in build-aux "$srcdir"/build-aux; do
2547 1.1 christos if test -f "$ac_dir/install-sh"; then
2548 1.1 christos ac_aux_dir=$ac_dir
2549 1.1 christos ac_install_sh="$ac_aux_dir/install-sh -c"
2550 1.1 christos break
2551 1.1 christos elif test -f "$ac_dir/install.sh"; then
2552 1.1 christos ac_aux_dir=$ac_dir
2553 1.1 christos ac_install_sh="$ac_aux_dir/install.sh -c"
2554 1.1 christos break
2555 1.1 christos elif test -f "$ac_dir/shtool"; then
2556 1.1 christos ac_aux_dir=$ac_dir
2557 1.1 christos ac_install_sh="$ac_aux_dir/shtool install -c"
2558 1.1 christos break
2559 1.1 christos fi
2560 1.1 christos done
2561 1.1 christos if test -z "$ac_aux_dir"; then
2562 1.1 christos as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2563 1.1 christos fi
2564 1.1 christos
2565 1.1 christos # These three variables are undocumented and unsupported,
2566 1.1 christos # and are intended to be withdrawn in a future Autoconf release.
2567 1.1 christos # They can cause serious problems if a builder's source tree is in a directory
2568 1.1 christos # whose full name contains unusual characters.
2569 1.1 christos ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2570 1.1 christos ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2571 1.1 christos ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2572 1.1 christos
2573 1.1 christos
2574 1.1 christos
2575 1.1 christos
2576 1.1 christos
2577 1.1 christos
2578 1.1 christos
2579 1.1 christos
2580 1.1 christos CONFIGURE_CFLAGS=
2581 1.1 christos SPECIFIED_CFLAGS="${CFLAGS}"
2582 1.1 christos
2583 1.1 christos
2584 1.1 christos
2585 1.1 christos
2586 1.1 christos
2587 1.1 christos CONFIGURE_CXXFLAGS=
2588 1.1 christos SPECIFIED_CXXFLAGS="${CXXFLAGS}"
2589 1.1 christos
2590 1.1 christos
2591 1.1 christos
2592 1.1 christos
2593 1.1 christos
2594 1.1 christos CONFIG=`echo ${ac_configure_args} | sed -e 's#'"'"'\([^ ]*\)'"'"'#\1#g'`
2595 1.1 christos
2596 1.1 christos
2597 1.1 christos rev=2
2598 1.1 christos
2599 1.1 christos
2600 1.1 christos srcroot=$srcdir
2601 1.1 christos if test "x${srcroot}" = "x." ; then
2602 1.1 christos srcroot=""
2603 1.1 christos else
2604 1.1 christos srcroot="${srcroot}/"
2605 1.1 christos fi
2606 1.1 christos
2607 1.1 christos abs_srcroot="`cd \"${srcdir}\"; pwd`/"
2608 1.1 christos
2609 1.1 christos
2610 1.1 christos objroot=""
2611 1.1 christos
2612 1.1 christos abs_objroot="`pwd`/"
2613 1.1 christos
2614 1.1 christos
2615 1.1 christos if test "x$prefix" = "xNONE" ; then
2616 1.1 christos prefix="/usr/local"
2617 1.1 christos fi
2618 1.1 christos if test "x$exec_prefix" = "xNONE" ; then
2619 1.1 christos exec_prefix=$prefix
2620 1.1 christos fi
2621 1.1 christos PREFIX=$prefix
2622 1.1 christos
2623 1.1 christos BINDIR=`eval echo $bindir`
2624 1.1 christos BINDIR=`eval echo $BINDIR`
2625 1.1 christos
2626 1.1 christos INCLUDEDIR=`eval echo $includedir`
2627 1.1 christos INCLUDEDIR=`eval echo $INCLUDEDIR`
2628 1.1 christos
2629 1.1 christos LIBDIR=`eval echo $libdir`
2630 1.1 christos LIBDIR=`eval echo $LIBDIR`
2631 1.1 christos
2632 1.1 christos DATADIR=`eval echo $datadir`
2633 1.1 christos DATADIR=`eval echo $DATADIR`
2634 1.1 christos
2635 1.1 christos MANDIR=`eval echo $mandir`
2636 1.1 christos MANDIR=`eval echo $MANDIR`
2637 1.1 christos
2638 1.1 christos
2639 1.1 christos # Extract the first word of "xsltproc", so it can be a program name with args.
2640 1.1 christos set dummy xsltproc; ac_word=$2
2641 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2642 1.1 christos $as_echo_n "checking for $ac_word... " >&6; }
2643 1.1 christos if ${ac_cv_path_XSLTPROC+:} false; then :
2644 1.1 christos $as_echo_n "(cached) " >&6
2645 1.1 christos else
2646 1.1 christos case $XSLTPROC in
2647 1.1 christos [\\/]* | ?:[\\/]*)
2648 1.1 christos ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
2649 1.1 christos ;;
2650 1.1 christos *)
2651 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 1.1 christos for as_dir in $PATH
2653 1.1 christos do
2654 1.1 christos IFS=$as_save_IFS
2655 1.1 christos test -z "$as_dir" && as_dir=.
2656 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2657 1.1 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658 1.1 christos ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
2659 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 1.1 christos break 2
2661 1.1 christos fi
2662 1.1 christos done
2663 1.1 christos done
2664 1.1 christos IFS=$as_save_IFS
2665 1.1 christos
2666 1.1 christos test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="false"
2667 1.1 christos ;;
2668 1.1 christos esac
2669 1.1 christos fi
2670 1.1 christos XSLTPROC=$ac_cv_path_XSLTPROC
2671 1.1 christos if test -n "$XSLTPROC"; then
2672 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
2673 1.1 christos $as_echo "$XSLTPROC" >&6; }
2674 1.1 christos else
2675 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 1.1 christos $as_echo "no" >&6; }
2677 1.1 christos fi
2678 1.1 christos
2679 1.1 christos
2680 1.1 christos if test -d "/usr/share/xml/docbook/stylesheet/docbook-xsl" ; then
2681 1.1 christos DEFAULT_XSLROOT="/usr/share/xml/docbook/stylesheet/docbook-xsl"
2682 1.1 christos elif test -d "/usr/share/sgml/docbook/xsl-stylesheets" ; then
2683 1.1 christos DEFAULT_XSLROOT="/usr/share/sgml/docbook/xsl-stylesheets"
2684 1.1 christos else
2685 1.1 christos DEFAULT_XSLROOT=""
2686 1.1 christos fi
2687 1.1 christos
2688 1.1 christos # Check whether --with-xslroot was given.
2689 1.1 christos if test "${with_xslroot+set}" = set; then :
2690 1.1 christos withval=$with_xslroot;
2691 1.1 christos if test "x$with_xslroot" = "xno" ; then
2692 1.1 christos XSLROOT="${DEFAULT_XSLROOT}"
2693 1.1 christos else
2694 1.1 christos XSLROOT="${with_xslroot}"
2695 1.1 christos fi
2696 1.1 christos
2697 1.1 christos else
2698 1.1 christos XSLROOT="${DEFAULT_XSLROOT}"
2699 1.1 christos
2700 1.1 christos fi
2701 1.1 christos
2702 1.1 christos
2703 1.1 christos
2704 1.1 christos CFLAGS=$CFLAGS
2705 1.1 christos ac_ext=c
2706 1.1 christos ac_cpp='$CPP $CPPFLAGS'
2707 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710 1.1 christos if test -n "$ac_tool_prefix"; then
2711 1.1 christos # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2712 1.1 christos set dummy ${ac_tool_prefix}gcc; ac_word=$2
2713 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714 1.1 christos $as_echo_n "checking for $ac_word... " >&6; }
2715 1.1 christos if ${ac_cv_prog_CC+:} false; then :
2716 1.1 christos $as_echo_n "(cached) " >&6
2717 1.1 christos else
2718 1.1 christos if test -n "$CC"; then
2719 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
2720 1.1 christos else
2721 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 1.1 christos for as_dir in $PATH
2723 1.1 christos do
2724 1.1 christos IFS=$as_save_IFS
2725 1.1 christos test -z "$as_dir" && as_dir=.
2726 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2727 1.1 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}gcc"
2729 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 1.1 christos break 2
2731 1.1 christos fi
2732 1.1 christos done
2733 1.1 christos done
2734 1.1 christos IFS=$as_save_IFS
2735 1.1 christos
2736 1.1 christos fi
2737 1.1 christos fi
2738 1.1 christos CC=$ac_cv_prog_CC
2739 1.1 christos if test -n "$CC"; then
2740 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2741 1.1 christos $as_echo "$CC" >&6; }
2742 1.1 christos else
2743 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744 1.1 christos $as_echo "no" >&6; }
2745 1.1 christos fi
2746 1.1 christos
2747 1.1 christos
2748 1.1 christos fi
2749 1.1 christos if test -z "$ac_cv_prog_CC"; then
2750 1.1 christos ac_ct_CC=$CC
2751 1.1 christos # Extract the first word of "gcc", so it can be a program name with args.
2752 1.1 christos set dummy gcc; ac_word=$2
2753 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 1.1 christos $as_echo_n "checking for $ac_word... " >&6; }
2755 1.1 christos if ${ac_cv_prog_ac_ct_CC+:} false; then :
2756 1.1 christos $as_echo_n "(cached) " >&6
2757 1.1 christos else
2758 1.1 christos if test -n "$ac_ct_CC"; then
2759 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2760 1.1 christos else
2761 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 1.1 christos for as_dir in $PATH
2763 1.1 christos do
2764 1.1 christos IFS=$as_save_IFS
2765 1.1 christos test -z "$as_dir" && as_dir=.
2766 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2767 1.1 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768 1.1 christos ac_cv_prog_ac_ct_CC="gcc"
2769 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 1.1 christos break 2
2771 1.1 christos fi
2772 1.1 christos done
2773 1.1 christos done
2774 1.1 christos IFS=$as_save_IFS
2775 1.1 christos
2776 1.1 christos fi
2777 1.1 christos fi
2778 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
2779 1.1 christos if test -n "$ac_ct_CC"; then
2780 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2781 1.1 christos $as_echo "$ac_ct_CC" >&6; }
2782 1.1 christos else
2783 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 1.1 christos $as_echo "no" >&6; }
2785 1.1 christos fi
2786 1.1 christos
2787 1.1 christos if test "x$ac_ct_CC" = x; then
2788 1.1 christos CC=""
2789 1.1 christos else
2790 1.1 christos case $cross_compiling:$ac_tool_warned in
2791 1.1 christos yes:)
2792 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2793 1.1 christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2794 1.1 christos ac_tool_warned=yes ;;
2795 1.1 christos esac
2796 1.1 christos CC=$ac_ct_CC
2797 1.1 christos fi
2798 1.1 christos else
2799 1.1 christos CC="$ac_cv_prog_CC"
2800 1.1 christos fi
2801 1.1 christos
2802 1.1 christos if test -z "$CC"; then
2803 1.1 christos if test -n "$ac_tool_prefix"; then
2804 1.1 christos # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2805 1.1 christos set dummy ${ac_tool_prefix}cc; ac_word=$2
2806 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 1.1 christos $as_echo_n "checking for $ac_word... " >&6; }
2808 1.1 christos if ${ac_cv_prog_CC+:} false; then :
2809 1.1 christos $as_echo_n "(cached) " >&6
2810 1.1 christos else
2811 1.1 christos if test -n "$CC"; then
2812 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
2813 1.1 christos else
2814 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 1.1 christos for as_dir in $PATH
2816 1.1 christos do
2817 1.1 christos IFS=$as_save_IFS
2818 1.1 christos test -z "$as_dir" && as_dir=.
2819 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2820 1.1 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}cc"
2822 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 1.1 christos break 2
2824 1.1 christos fi
2825 1.1 christos done
2826 1.1 christos done
2827 1.1 christos IFS=$as_save_IFS
2828 1.1 christos
2829 1.1 christos fi
2830 1.1 christos fi
2831 1.1 christos CC=$ac_cv_prog_CC
2832 1.1 christos if test -n "$CC"; then
2833 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2834 1.1 christos $as_echo "$CC" >&6; }
2835 1.1 christos else
2836 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 1.1 christos $as_echo "no" >&6; }
2838 1.1 christos fi
2839 1.1 christos
2840 1.1 christos
2841 1.1 christos fi
2842 1.1 christos fi
2843 1.1 christos if test -z "$CC"; then
2844 1.1 christos # Extract the first word of "cc", so it can be a program name with args.
2845 1.1 christos set dummy cc; ac_word=$2
2846 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 1.1 christos $as_echo_n "checking for $ac_word... " >&6; }
2848 1.1 christos if ${ac_cv_prog_CC+:} false; then :
2849 1.1 christos $as_echo_n "(cached) " >&6
2850 1.1 christos else
2851 1.1 christos if test -n "$CC"; then
2852 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
2853 1.1 christos else
2854 1.1 christos ac_prog_rejected=no
2855 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 1.1 christos for as_dir in $PATH
2857 1.1 christos do
2858 1.1 christos IFS=$as_save_IFS
2859 1.1 christos test -z "$as_dir" && as_dir=.
2860 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2861 1.1 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862 1.1 christos if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2863 1.1 christos ac_prog_rejected=yes
2864 1.1 christos continue
2865 1.1 christos fi
2866 1.1 christos ac_cv_prog_CC="cc"
2867 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 1.1 christos break 2
2869 1.1 christos fi
2870 1.1 christos done
2871 1.1 christos done
2872 1.1 christos IFS=$as_save_IFS
2873 1.1 christos
2874 1.1 christos if test $ac_prog_rejected = yes; then
2875 1.1 christos # We found a bogon in the path, so make sure we never use it.
2876 1.1 christos set dummy $ac_cv_prog_CC
2877 1.1 christos shift
2878 1.1 christos if test $# != 0; then
2879 1.1 christos # We chose a different compiler from the bogus one.
2880 1.1 christos # However, it has the same basename, so the bogon will be chosen
2881 1.1 christos # first if we set CC to just the basename; use the full file name.
2882 1.1 christos shift
2883 1.1 christos ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2884 1.1 christos fi
2885 1.1 christos fi
2886 1.1 christos fi
2887 1.1 christos fi
2888 1.1 christos CC=$ac_cv_prog_CC
2889 1.1 christos if test -n "$CC"; then
2890 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2891 1.1 christos $as_echo "$CC" >&6; }
2892 1.1 christos else
2893 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 1.1 christos $as_echo "no" >&6; }
2895 1.1 christos fi
2896 1.1 christos
2897 1.1 christos
2898 1.1 christos fi
2899 1.1 christos if test -z "$CC"; then
2900 1.1 christos if test -n "$ac_tool_prefix"; then
2901 1.1 christos for ac_prog in cl.exe
2902 1.1 christos do
2903 1.1 christos # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2904 1.1 christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2905 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 1.1 christos $as_echo_n "checking for $ac_word... " >&6; }
2907 1.1 christos if ${ac_cv_prog_CC+:} false; then :
2908 1.1 christos $as_echo_n "(cached) " >&6
2909 1.1 christos else
2910 1.1 christos if test -n "$CC"; then
2911 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test.
2912 1.1 christos else
2913 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 1.1 christos for as_dir in $PATH
2915 1.1 christos do
2916 1.1 christos IFS=$as_save_IFS
2917 1.1 christos test -z "$as_dir" && as_dir=.
2918 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2919 1.1 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920 1.1 christos ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2921 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 1.1 christos break 2
2923 1.1 christos fi
2924 1.1 christos done
2925 1.1 christos done
2926 1.1 christos IFS=$as_save_IFS
2927 1.1 christos
2928 1.1 christos fi
2929 1.1 christos fi
2930 1.1 christos CC=$ac_cv_prog_CC
2931 1.1 christos if test -n "$CC"; then
2932 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2933 1.1 christos $as_echo "$CC" >&6; }
2934 1.1 christos else
2935 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 1.1 christos $as_echo "no" >&6; }
2937 1.1 christos fi
2938 1.1 christos
2939 1.1 christos
2940 1.1 christos test -n "$CC" && break
2941 1.1 christos done
2942 1.1 christos fi
2943 1.1 christos if test -z "$CC"; then
2944 1.1 christos ac_ct_CC=$CC
2945 1.1 christos for ac_prog in cl.exe
2946 1.1 christos do
2947 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
2948 1.1 christos set dummy $ac_prog; ac_word=$2
2949 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950 1.1 christos $as_echo_n "checking for $ac_word... " >&6; }
2951 1.1 christos if ${ac_cv_prog_ac_ct_CC+:} false; then :
2952 1.1 christos $as_echo_n "(cached) " >&6
2953 1.1 christos else
2954 1.1 christos if test -n "$ac_ct_CC"; then
2955 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2956 1.1 christos else
2957 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 1.1 christos for as_dir in $PATH
2959 1.1 christos do
2960 1.1 christos IFS=$as_save_IFS
2961 1.1 christos test -z "$as_dir" && as_dir=.
2962 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
2963 1.1 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964 1.1 christos ac_cv_prog_ac_ct_CC="$ac_prog"
2965 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 1.1 christos break 2
2967 1.1 christos fi
2968 1.1 christos done
2969 1.1 christos done
2970 1.1 christos IFS=$as_save_IFS
2971 1.1 christos
2972 1.1 christos fi
2973 1.1 christos fi
2974 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC
2975 1.1 christos if test -n "$ac_ct_CC"; then
2976 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2977 1.1 christos $as_echo "$ac_ct_CC" >&6; }
2978 1.1 christos else
2979 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 1.1 christos $as_echo "no" >&6; }
2981 1.1 christos fi
2982 1.1 christos
2983 1.1 christos
2984 1.1 christos test -n "$ac_ct_CC" && break
2985 1.1 christos done
2986 1.1 christos
2987 1.1 christos if test "x$ac_ct_CC" = x; then
2988 1.1 christos CC=""
2989 1.1 christos else
2990 1.1 christos case $cross_compiling:$ac_tool_warned in
2991 1.1 christos yes:)
2992 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2993 1.1 christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2994 1.1 christos ac_tool_warned=yes ;;
2995 1.1 christos esac
2996 1.1 christos CC=$ac_ct_CC
2997 1.1 christos fi
2998 1.1 christos fi
2999 1.1 christos
3000 1.1 christos fi
3001 1.1 christos
3002 1.1 christos
3003 1.1 christos test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3004 1.1 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3005 1.1 christos as_fn_error $? "no acceptable C compiler found in \$PATH
3006 1.1 christos See \`config.log' for more details" "$LINENO" 5; }
3007 1.1 christos
3008 1.1 christos # Provide some information about the compiler.
3009 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3010 1.1 christos set X $ac_compile
3011 1.1 christos ac_compiler=$2
3012 1.1 christos for ac_option in --version -v -V -qversion; do
3013 1.1 christos { { ac_try="$ac_compiler $ac_option >&5"
3014 1.1 christos case "(($ac_try" in
3015 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 1.1 christos *) ac_try_echo=$ac_try;;
3017 1.1 christos esac
3018 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3019 1.1 christos $as_echo "$ac_try_echo"; } >&5
3020 1.1 christos (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3021 1.1 christos ac_status=$?
3022 1.1 christos if test -s conftest.err; then
3023 1.1 christos sed '10a\
3024 1.1 christos ... rest of stderr output deleted ...
3025 1.1 christos 10q' conftest.err >conftest.er1
3026 1.1 christos cat conftest.er1 >&5
3027 1.1 christos fi
3028 1.1 christos rm -f conftest.er1 conftest.err
3029 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3030 1.1 christos test $ac_status = 0; }
3031 1.1 christos done
3032 1.1 christos
3033 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3034 1.1 christos /* end confdefs.h. */
3035 1.1 christos
3036 1.1 christos int
3037 1.1 christos main ()
3038 1.1 christos {
3039 1.1 christos
3040 1.1 christos ;
3041 1.1 christos return 0;
3042 1.1 christos }
3043 1.1 christos _ACEOF
3044 1.1 christos ac_clean_files_save=$ac_clean_files
3045 1.1 christos ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3046 1.1 christos # Try to create an executable without -o first, disregard a.out.
3047 1.1 christos # It will help us diagnose broken compilers, and finding out an intuition
3048 1.1 christos # of exeext.
3049 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3050 1.1 christos $as_echo_n "checking whether the C compiler works... " >&6; }
3051 1.1 christos ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3052 1.1 christos
3053 1.1 christos # The possible output files:
3054 1.1 christos ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3055 1.1 christos
3056 1.1 christos ac_rmfiles=
3057 1.1 christos for ac_file in $ac_files
3058 1.1 christos do
3059 1.1 christos case $ac_file in
3060 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3061 1.1 christos * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3062 1.1 christos esac
3063 1.1 christos done
3064 1.1 christos rm -f $ac_rmfiles
3065 1.1 christos
3066 1.1 christos if { { ac_try="$ac_link_default"
3067 1.1 christos case "(($ac_try" in
3068 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 1.1 christos *) ac_try_echo=$ac_try;;
3070 1.1 christos esac
3071 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072 1.1 christos $as_echo "$ac_try_echo"; } >&5
3073 1.1 christos (eval "$ac_link_default") 2>&5
3074 1.1 christos ac_status=$?
3075 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3076 1.1 christos test $ac_status = 0; }; then :
3077 1.1 christos # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3078 1.1 christos # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3079 1.1 christos # in a Makefile. We should not override ac_cv_exeext if it was cached,
3080 1.1 christos # so that the user can short-circuit this test for compilers unknown to
3081 1.1 christos # Autoconf.
3082 1.1 christos for ac_file in $ac_files ''
3083 1.1 christos do
3084 1.1 christos test -f "$ac_file" || continue
3085 1.1 christos case $ac_file in
3086 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3087 1.1 christos ;;
3088 1.1 christos [ab].out )
3089 1.1 christos # We found the default executable, but exeext='' is most
3090 1.1 christos # certainly right.
3091 1.1 christos break;;
3092 1.1 christos *.* )
3093 1.1 christos if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3094 1.1 christos then :; else
3095 1.1 christos ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3096 1.1 christos fi
3097 1.1 christos # We set ac_cv_exeext here because the later test for it is not
3098 1.1 christos # safe: cross compilers may not add the suffix if given an `-o'
3099 1.1 christos # argument, so we may need to know it at that point already.
3100 1.1 christos # Even if this section looks crufty: it has the advantage of
3101 1.1 christos # actually working.
3102 1.1 christos break;;
3103 1.1 christos * )
3104 1.1 christos break;;
3105 1.1 christos esac
3106 1.1 christos done
3107 1.1 christos test "$ac_cv_exeext" = no && ac_cv_exeext=
3108 1.1 christos
3109 1.1 christos else
3110 1.1 christos ac_file=''
3111 1.1 christos fi
3112 1.1 christos if test -z "$ac_file"; then :
3113 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 1.1 christos $as_echo "no" >&6; }
3115 1.1 christos $as_echo "$as_me: failed program was:" >&5
3116 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3117 1.1 christos
3118 1.1 christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3119 1.1 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3120 1.1 christos as_fn_error 77 "C compiler cannot create executables
3121 1.1 christos See \`config.log' for more details" "$LINENO" 5; }
3122 1.1 christos else
3123 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3124 1.1 christos $as_echo "yes" >&6; }
3125 1.1 christos fi
3126 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3127 1.1 christos $as_echo_n "checking for C compiler default output file name... " >&6; }
3128 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3129 1.1 christos $as_echo "$ac_file" >&6; }
3130 1.1 christos ac_exeext=$ac_cv_exeext
3131 1.1 christos
3132 1.1 christos rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3133 1.1 christos ac_clean_files=$ac_clean_files_save
3134 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3135 1.1 christos $as_echo_n "checking for suffix of executables... " >&6; }
3136 1.1 christos if { { ac_try="$ac_link"
3137 1.1 christos case "(($ac_try" in
3138 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 1.1 christos *) ac_try_echo=$ac_try;;
3140 1.1 christos esac
3141 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 1.1 christos $as_echo "$ac_try_echo"; } >&5
3143 1.1 christos (eval "$ac_link") 2>&5
3144 1.1 christos ac_status=$?
3145 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146 1.1 christos test $ac_status = 0; }; then :
3147 1.1 christos # If both `conftest.exe' and `conftest' are `present' (well, observable)
3148 1.1 christos # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3149 1.1 christos # work properly (i.e., refer to `conftest.exe'), while it won't with
3150 1.1 christos # `rm'.
3151 1.1 christos for ac_file in conftest.exe conftest conftest.*; do
3152 1.1 christos test -f "$ac_file" || continue
3153 1.1 christos case $ac_file in
3154 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3155 1.1 christos *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3156 1.1 christos break;;
3157 1.1 christos * ) break;;
3158 1.1 christos esac
3159 1.1 christos done
3160 1.1 christos else
3161 1.1 christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162 1.1 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163 1.1 christos as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3164 1.1 christos See \`config.log' for more details" "$LINENO" 5; }
3165 1.1 christos fi
3166 1.1 christos rm -f conftest conftest$ac_cv_exeext
3167 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3168 1.1 christos $as_echo "$ac_cv_exeext" >&6; }
3169 1.1 christos
3170 1.1 christos rm -f conftest.$ac_ext
3171 1.1 christos EXEEXT=$ac_cv_exeext
3172 1.1 christos ac_exeext=$EXEEXT
3173 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 1.1 christos /* end confdefs.h. */
3175 1.1 christos #include <stdio.h>
3176 1.1 christos int
3177 1.1 christos main ()
3178 1.1 christos {
3179 1.1 christos FILE *f = fopen ("conftest.out", "w");
3180 1.1 christos return ferror (f) || fclose (f) != 0;
3181 1.1 christos
3182 1.1 christos ;
3183 1.1 christos return 0;
3184 1.1 christos }
3185 1.1 christos _ACEOF
3186 1.1 christos ac_clean_files="$ac_clean_files conftest.out"
3187 1.1 christos # Check that the compiler produces executables we can run. If not, either
3188 1.1 christos # the compiler is broken, or we cross compile.
3189 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3190 1.1 christos $as_echo_n "checking whether we are cross compiling... " >&6; }
3191 1.1 christos if test "$cross_compiling" != yes; then
3192 1.1 christos { { ac_try="$ac_link"
3193 1.1 christos case "(($ac_try" in
3194 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 1.1 christos *) ac_try_echo=$ac_try;;
3196 1.1 christos esac
3197 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 1.1 christos $as_echo "$ac_try_echo"; } >&5
3199 1.1 christos (eval "$ac_link") 2>&5
3200 1.1 christos ac_status=$?
3201 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 1.1 christos test $ac_status = 0; }
3203 1.1 christos if { ac_try='./conftest$ac_cv_exeext'
3204 1.1 christos { { case "(($ac_try" in
3205 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 1.1 christos *) ac_try_echo=$ac_try;;
3207 1.1 christos esac
3208 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 1.1 christos $as_echo "$ac_try_echo"; } >&5
3210 1.1 christos (eval "$ac_try") 2>&5
3211 1.1 christos ac_status=$?
3212 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 1.1 christos test $ac_status = 0; }; }; then
3214 1.1 christos cross_compiling=no
3215 1.1 christos else
3216 1.1 christos if test "$cross_compiling" = maybe; then
3217 1.1 christos cross_compiling=yes
3218 1.1 christos else
3219 1.1 christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 1.1 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 1.1 christos as_fn_error $? "cannot run C compiled programs.
3222 1.1 christos If you meant to cross compile, use \`--host'.
3223 1.1 christos See \`config.log' for more details" "$LINENO" 5; }
3224 1.1 christos fi
3225 1.1 christos fi
3226 1.1 christos fi
3227 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3228 1.1 christos $as_echo "$cross_compiling" >&6; }
3229 1.1 christos
3230 1.1 christos rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3231 1.1 christos ac_clean_files=$ac_clean_files_save
3232 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3233 1.1 christos $as_echo_n "checking for suffix of object files... " >&6; }
3234 1.1 christos if ${ac_cv_objext+:} false; then :
3235 1.1 christos $as_echo_n "(cached) " >&6
3236 1.1 christos else
3237 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 1.1 christos /* end confdefs.h. */
3239 1.1 christos
3240 1.1 christos int
3241 1.1 christos main ()
3242 1.1 christos {
3243 1.1 christos
3244 1.1 christos ;
3245 1.1 christos return 0;
3246 1.1 christos }
3247 1.1 christos _ACEOF
3248 1.1 christos rm -f conftest.o conftest.obj
3249 1.1 christos if { { ac_try="$ac_compile"
3250 1.1 christos case "(($ac_try" in
3251 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 1.1 christos *) ac_try_echo=$ac_try;;
3253 1.1 christos esac
3254 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255 1.1 christos $as_echo "$ac_try_echo"; } >&5
3256 1.1 christos (eval "$ac_compile") 2>&5
3257 1.1 christos ac_status=$?
3258 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259 1.1 christos test $ac_status = 0; }; then :
3260 1.1 christos for ac_file in conftest.o conftest.obj conftest.*; do
3261 1.1 christos test -f "$ac_file" || continue;
3262 1.1 christos case $ac_file in
3263 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3264 1.1 christos *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3265 1.1 christos break;;
3266 1.1 christos esac
3267 1.1 christos done
3268 1.1 christos else
3269 1.1 christos $as_echo "$as_me: failed program was:" >&5
3270 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5
3271 1.1 christos
3272 1.1 christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3273 1.1 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274 1.1 christos as_fn_error $? "cannot compute suffix of object files: cannot compile
3275 1.1 christos See \`config.log' for more details" "$LINENO" 5; }
3276 1.1 christos fi
3277 1.1 christos rm -f conftest.$ac_cv_objext conftest.$ac_ext
3278 1.1 christos fi
3279 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3280 1.1 christos $as_echo "$ac_cv_objext" >&6; }
3281 1.1 christos OBJEXT=$ac_cv_objext
3282 1.1 christos ac_objext=$OBJEXT
3283 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3284 1.1 christos $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3285 1.1 christos if ${ac_cv_c_compiler_gnu+:} false; then :
3286 1.1 christos $as_echo_n "(cached) " >&6
3287 1.1 christos else
3288 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289 1.1 christos /* end confdefs.h. */
3290 1.1 christos
3291 1.1 christos int
3292 1.1 christos main ()
3293 1.1 christos {
3294 1.1 christos #ifndef __GNUC__
3295 1.1 christos choke me
3296 1.1 christos #endif
3297 1.1 christos
3298 1.1 christos ;
3299 1.1 christos return 0;
3300 1.1 christos }
3301 1.1 christos _ACEOF
3302 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
3303 1.1 christos ac_compiler_gnu=yes
3304 1.1 christos else
3305 1.1 christos ac_compiler_gnu=no
3306 1.1 christos fi
3307 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 1.1 christos ac_cv_c_compiler_gnu=$ac_compiler_gnu
3309 1.1 christos
3310 1.1 christos fi
3311 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3312 1.1 christos $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3313 1.1 christos if test $ac_compiler_gnu = yes; then
3314 1.1 christos GCC=yes
3315 1.1 christos else
3316 1.1 christos GCC=
3317 1.1 christos fi
3318 1.1 christos ac_test_CFLAGS=${CFLAGS+set}
3319 1.1 christos ac_save_CFLAGS=$CFLAGS
3320 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3321 1.1 christos $as_echo_n "checking whether $CC accepts -g... " >&6; }
3322 1.1 christos if ${ac_cv_prog_cc_g+:} false; then :
3323 1.1 christos $as_echo_n "(cached) " >&6
3324 1.1 christos else
3325 1.1 christos ac_save_c_werror_flag=$ac_c_werror_flag
3326 1.1 christos ac_c_werror_flag=yes
3327 1.1 christos ac_cv_prog_cc_g=no
3328 1.1 christos CFLAGS="-g"
3329 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 1.1 christos /* end confdefs.h. */
3331 1.1 christos
3332 1.1 christos int
3333 1.1 christos main ()
3334 1.1 christos {
3335 1.1 christos
3336 1.1 christos ;
3337 1.1 christos return 0;
3338 1.1 christos }
3339 1.1 christos _ACEOF
3340 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
3341 1.1 christos ac_cv_prog_cc_g=yes
3342 1.1 christos else
3343 1.1 christos CFLAGS=""
3344 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345 1.1 christos /* end confdefs.h. */
3346 1.1 christos
3347 1.1 christos int
3348 1.1 christos main ()
3349 1.1 christos {
3350 1.1 christos
3351 1.1 christos ;
3352 1.1 christos return 0;
3353 1.1 christos }
3354 1.1 christos _ACEOF
3355 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
3356 1.1 christos
3357 1.1 christos else
3358 1.1 christos ac_c_werror_flag=$ac_save_c_werror_flag
3359 1.1 christos CFLAGS="-g"
3360 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 1.1 christos /* end confdefs.h. */
3362 1.1 christos
3363 1.1 christos int
3364 1.1 christos main ()
3365 1.1 christos {
3366 1.1 christos
3367 1.1 christos ;
3368 1.1 christos return 0;
3369 1.1 christos }
3370 1.1 christos _ACEOF
3371 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
3372 1.1 christos ac_cv_prog_cc_g=yes
3373 1.1 christos fi
3374 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375 1.1 christos fi
3376 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377 1.1 christos fi
3378 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 1.1 christos ac_c_werror_flag=$ac_save_c_werror_flag
3380 1.1 christos fi
3381 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3382 1.1 christos $as_echo "$ac_cv_prog_cc_g" >&6; }
3383 1.1 christos if test "$ac_test_CFLAGS" = set; then
3384 1.1 christos CFLAGS=$ac_save_CFLAGS
3385 1.1 christos elif test $ac_cv_prog_cc_g = yes; then
3386 1.1 christos if test "$GCC" = yes; then
3387 1.1 christos CFLAGS="-g -O2"
3388 1.1 christos else
3389 1.1 christos CFLAGS="-g"
3390 1.1 christos fi
3391 1.1 christos else
3392 1.1 christos if test "$GCC" = yes; then
3393 1.1 christos CFLAGS="-O2"
3394 1.1 christos else
3395 1.1 christos CFLAGS=
3396 1.1 christos fi
3397 1.1 christos fi
3398 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3399 1.1 christos $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3400 1.1 christos if ${ac_cv_prog_cc_c89+:} false; then :
3401 1.1 christos $as_echo_n "(cached) " >&6
3402 1.1 christos else
3403 1.1 christos ac_cv_prog_cc_c89=no
3404 1.1 christos ac_save_CC=$CC
3405 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 1.1 christos /* end confdefs.h. */
3407 1.1 christos #include <stdarg.h>
3408 1.1 christos #include <stdio.h>
3409 1.1 christos struct stat;
3410 1.1 christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3411 1.1 christos struct buf { int x; };
3412 1.1 christos FILE * (*rcsopen) (struct buf *, struct stat *, int);
3413 1.1 christos static char *e (p, i)
3414 1.1 christos char **p;
3415 1.1 christos int i;
3416 1.1 christos {
3417 1.1 christos return p[i];
3418 1.1 christos }
3419 1.1 christos static char *f (char * (*g) (char **, int), char **p, ...)
3420 1.1 christos {
3421 1.1 christos char *s;
3422 1.1 christos va_list v;
3423 1.1 christos va_start (v,p);
3424 1.1 christos s = g (p, va_arg (v,int));
3425 1.1 christos va_end (v);
3426 1.1 christos return s;
3427 1.1 christos }
3428 1.1 christos
3429 1.1 christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3430 1.1 christos function prototypes and stuff, but not '\xHH' hex character constants.
3431 1.1 christos These don't provoke an error unfortunately, instead are silently treated
3432 1.1 christos as 'x'. The following induces an error, until -std is added to get
3433 1.1 christos proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3434 1.1 christos array size at least. It's necessary to write '\x00'==0 to get something
3435 1.1 christos that's true only with -std. */
3436 1.1 christos int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3437 1.1 christos
3438 1.1 christos /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3439 1.1 christos inside strings and character constants. */
3440 1.1 christos #define FOO(x) 'x'
3441 1.1 christos int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3442 1.1 christos
3443 1.1 christos int test (int i, double x);
3444 1.1 christos struct s1 {int (*f) (int a);};
3445 1.1 christos struct s2 {int (*f) (double a);};
3446 1.1 christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3447 1.1 christos int argc;
3448 1.1 christos char **argv;
3449 1.1 christos int
3450 1.1 christos main ()
3451 1.1 christos {
3452 1.1 christos return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3453 1.1 christos ;
3454 1.1 christos return 0;
3455 1.1 christos }
3456 1.1 christos _ACEOF
3457 1.1 christos for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3458 1.1 christos -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3459 1.1 christos do
3460 1.1 christos CC="$ac_save_CC $ac_arg"
3461 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
3462 1.1 christos ac_cv_prog_cc_c89=$ac_arg
3463 1.1 christos fi
3464 1.1 christos rm -f core conftest.err conftest.$ac_objext
3465 1.1 christos test "x$ac_cv_prog_cc_c89" != "xno" && break
3466 1.1 christos done
3467 1.1 christos rm -f conftest.$ac_ext
3468 1.1 christos CC=$ac_save_CC
3469 1.1 christos
3470 1.1 christos fi
3471 1.1 christos # AC_CACHE_VAL
3472 1.1 christos case "x$ac_cv_prog_cc_c89" in
3473 1.1 christos x)
3474 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3475 1.1 christos $as_echo "none needed" >&6; } ;;
3476 1.1 christos xno)
3477 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3478 1.1 christos $as_echo "unsupported" >&6; } ;;
3479 1.1 christos *)
3480 1.1 christos CC="$CC $ac_cv_prog_cc_c89"
3481 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3482 1.1 christos $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3483 1.1 christos esac
3484 1.1 christos if test "x$ac_cv_prog_cc_c89" != xno; then :
3485 1.1 christos
3486 1.1 christos fi
3487 1.1 christos
3488 1.1 christos ac_ext=c
3489 1.1 christos ac_cpp='$CPP $CPPFLAGS'
3490 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493 1.1 christos
3494 1.1 christos
3495 1.1 christos if test "x$GCC" != "xyes" ; then
3496 1.1 christos
3497 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is MSVC" >&5
3498 1.1 christos $as_echo_n "checking whether compiler is MSVC... " >&6; }
3499 1.1 christos if ${je_cv_msvc+:} false; then :
3500 1.1 christos $as_echo_n "(cached) " >&6
3501 1.1 christos else
3502 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 1.1 christos /* end confdefs.h. */
3504 1.1 christos
3505 1.1 christos int
3506 1.1 christos main ()
3507 1.1 christos {
3508 1.1 christos
3509 1.1 christos #ifndef _MSC_VER
3510 1.1 christos int fail-1;
3511 1.1 christos #endif
3512 1.1 christos
3513 1.1 christos ;
3514 1.1 christos return 0;
3515 1.1 christos }
3516 1.1 christos _ACEOF
3517 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
3518 1.1 christos je_cv_msvc=yes
3519 1.1 christos else
3520 1.1 christos je_cv_msvc=no
3521 1.1 christos fi
3522 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 1.1 christos fi
3524 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_msvc" >&5
3525 1.1 christos $as_echo "$je_cv_msvc" >&6; }
3526 1.1 christos fi
3527 1.1 christos
3528 1.1 christos je_cv_cray_prgenv_wrapper=""
3529 1.1 christos if test "x${PE_ENV}" != "x" ; then
3530 1.1 christos case "${CC}" in
3531 1.1 christos CC|cc)
3532 1.1 christos je_cv_cray_prgenv_wrapper="yes"
3533 1.1 christos ;;
3534 1.1 christos *)
3535 1.1 christos ;;
3536 1.1 christos esac
3537 1.1 christos fi
3538 1.1 christos
3539 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is cray" >&5
3540 1.1 christos $as_echo_n "checking whether compiler is cray... " >&6; }
3541 1.1 christos if ${je_cv_cray+:} false; then :
3542 1.1 christos $as_echo_n "(cached) " >&6
3543 1.1 christos else
3544 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 1.1 christos /* end confdefs.h. */
3546 1.1 christos
3547 1.1 christos int
3548 1.1 christos main ()
3549 1.1 christos {
3550 1.1 christos
3551 1.1 christos #ifndef _CRAYC
3552 1.1 christos int fail-1;
3553 1.1 christos #endif
3554 1.1 christos
3555 1.1 christos ;
3556 1.1 christos return 0;
3557 1.1 christos }
3558 1.1 christos _ACEOF
3559 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
3560 1.1 christos je_cv_cray=yes
3561 1.1 christos else
3562 1.1 christos je_cv_cray=no
3563 1.1 christos fi
3564 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 1.1 christos fi
3566 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray" >&5
3567 1.1 christos $as_echo "$je_cv_cray" >&6; }
3568 1.1 christos
3569 1.1 christos if test "x${je_cv_cray}" = "xyes" ; then
3570 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cray compiler version is 8.4" >&5
3571 1.1 christos $as_echo_n "checking whether cray compiler version is 8.4... " >&6; }
3572 1.1 christos if ${je_cv_cray_84+:} false; then :
3573 1.1 christos $as_echo_n "(cached) " >&6
3574 1.1 christos else
3575 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 1.1 christos /* end confdefs.h. */
3577 1.1 christos
3578 1.1 christos int
3579 1.1 christos main ()
3580 1.1 christos {
3581 1.1 christos
3582 1.1 christos #if !(_RELEASE_MAJOR == 8 && _RELEASE_MINOR == 4)
3583 1.1 christos int fail-1;
3584 1.1 christos #endif
3585 1.1 christos
3586 1.1 christos ;
3587 1.1 christos return 0;
3588 1.1 christos }
3589 1.1 christos _ACEOF
3590 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
3591 1.1 christos je_cv_cray_84=yes
3592 1.1 christos else
3593 1.1 christos je_cv_cray_84=no
3594 1.1 christos fi
3595 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 1.1 christos fi
3597 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_cray_84" >&5
3598 1.1 christos $as_echo "$je_cv_cray_84" >&6; }
3599 1.1 christos fi
3600 1.1 christos
3601 1.1 christos if test "x$GCC" = "xyes" ; then
3602 1.1 christos
3603 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu11" >&5
3604 1.1 christos $as_echo_n "checking whether compiler supports -std=gnu11... " >&6; }
3605 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3606 1.1 christos T_APPEND_V=-std=gnu11
3607 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3608 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3609 1.1 christos else
3610 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3611 1.1 christos fi
3612 1.1 christos
3613 1.1 christos
3614 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3615 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3616 1.1 christos else
3617 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3618 1.1 christos fi
3619 1.1 christos
3620 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 1.1 christos /* end confdefs.h. */
3622 1.1 christos
3623 1.1 christos
3624 1.1 christos int
3625 1.1 christos main ()
3626 1.1 christos {
3627 1.1 christos
3628 1.1 christos return 0;
3629 1.1 christos
3630 1.1 christos ;
3631 1.1 christos return 0;
3632 1.1 christos }
3633 1.1 christos _ACEOF
3634 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
3635 1.1 christos je_cv_cflags_added=-std=gnu11
3636 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3637 1.1 christos $as_echo "yes" >&6; }
3638 1.1 christos else
3639 1.1 christos je_cv_cflags_added=
3640 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 1.1 christos $as_echo "no" >&6; }
3642 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3643 1.1 christos
3644 1.1 christos fi
3645 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3647 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3648 1.1 christos else
3649 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3650 1.1 christos fi
3651 1.1 christos
3652 1.1 christos
3653 1.1 christos if test "x$je_cv_cflags_added" = "x-std=gnu11" ; then
3654 1.1 christos cat >>confdefs.h <<_ACEOF
3655 1.1 christos #define JEMALLOC_HAS_RESTRICT 1
3656 1.1 christos _ACEOF
3657 1.1 christos
3658 1.1 christos else
3659 1.1 christos
3660 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -std=gnu99" >&5
3661 1.1 christos $as_echo_n "checking whether compiler supports -std=gnu99... " >&6; }
3662 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3663 1.1 christos T_APPEND_V=-std=gnu99
3664 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3665 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3666 1.1 christos else
3667 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3668 1.1 christos fi
3669 1.1 christos
3670 1.1 christos
3671 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3672 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3673 1.1 christos else
3674 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3675 1.1 christos fi
3676 1.1 christos
3677 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 1.1 christos /* end confdefs.h. */
3679 1.1 christos
3680 1.1 christos
3681 1.1 christos int
3682 1.1 christos main ()
3683 1.1 christos {
3684 1.1 christos
3685 1.1 christos return 0;
3686 1.1 christos
3687 1.1 christos ;
3688 1.1 christos return 0;
3689 1.1 christos }
3690 1.1 christos _ACEOF
3691 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
3692 1.1 christos je_cv_cflags_added=-std=gnu99
3693 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3694 1.1 christos $as_echo "yes" >&6; }
3695 1.1 christos else
3696 1.1 christos je_cv_cflags_added=
3697 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 1.1 christos $as_echo "no" >&6; }
3699 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3700 1.1 christos
3701 1.1 christos fi
3702 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3704 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3705 1.1 christos else
3706 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3707 1.1 christos fi
3708 1.1 christos
3709 1.1 christos
3710 1.1 christos if test "x$je_cv_cflags_added" = "x-std=gnu99" ; then
3711 1.1 christos cat >>confdefs.h <<_ACEOF
3712 1.1 christos #define JEMALLOC_HAS_RESTRICT 1
3713 1.1 christos _ACEOF
3714 1.1 christos
3715 1.1 christos fi
3716 1.1 christos fi
3717 1.1 christos
3718 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
3719 1.1 christos $as_echo_n "checking whether compiler supports -Wall... " >&6; }
3720 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3721 1.1 christos T_APPEND_V=-Wall
3722 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3723 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3724 1.1 christos else
3725 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3726 1.1 christos fi
3727 1.1 christos
3728 1.1 christos
3729 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3730 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3731 1.1 christos else
3732 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3733 1.1 christos fi
3734 1.1 christos
3735 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 1.1 christos /* end confdefs.h. */
3737 1.1 christos
3738 1.1 christos
3739 1.1 christos int
3740 1.1 christos main ()
3741 1.1 christos {
3742 1.1 christos
3743 1.1 christos return 0;
3744 1.1 christos
3745 1.1 christos ;
3746 1.1 christos return 0;
3747 1.1 christos }
3748 1.1 christos _ACEOF
3749 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
3750 1.1 christos je_cv_cflags_added=-Wall
3751 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3752 1.1 christos $as_echo "yes" >&6; }
3753 1.1 christos else
3754 1.1 christos je_cv_cflags_added=
3755 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3756 1.1 christos $as_echo "no" >&6; }
3757 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3758 1.1 christos
3759 1.1 christos fi
3760 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3762 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3763 1.1 christos else
3764 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3765 1.1 christos fi
3766 1.1 christos
3767 1.1 christos
3768 1.1 christos
3769 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wshorten-64-to-32" >&5
3770 1.1 christos $as_echo_n "checking whether compiler supports -Wshorten-64-to-32... " >&6; }
3771 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3772 1.1 christos T_APPEND_V=-Wshorten-64-to-32
3773 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3774 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3775 1.1 christos else
3776 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3777 1.1 christos fi
3778 1.1 christos
3779 1.1 christos
3780 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3781 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3782 1.1 christos else
3783 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3784 1.1 christos fi
3785 1.1 christos
3786 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 1.1 christos /* end confdefs.h. */
3788 1.1 christos
3789 1.1 christos
3790 1.1 christos int
3791 1.1 christos main ()
3792 1.1 christos {
3793 1.1 christos
3794 1.1 christos return 0;
3795 1.1 christos
3796 1.1 christos ;
3797 1.1 christos return 0;
3798 1.1 christos }
3799 1.1 christos _ACEOF
3800 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
3801 1.1 christos je_cv_cflags_added=-Wshorten-64-to-32
3802 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3803 1.1 christos $as_echo "yes" >&6; }
3804 1.1 christos else
3805 1.1 christos je_cv_cflags_added=
3806 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807 1.1 christos $as_echo "no" >&6; }
3808 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3809 1.1 christos
3810 1.1 christos fi
3811 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3813 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3814 1.1 christos else
3815 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3816 1.1 christos fi
3817 1.1 christos
3818 1.1 christos
3819 1.1 christos
3820 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-compare" >&5
3821 1.1 christos $as_echo_n "checking whether compiler supports -Wsign-compare... " >&6; }
3822 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3823 1.1 christos T_APPEND_V=-Wsign-compare
3824 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3825 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3826 1.1 christos else
3827 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3828 1.1 christos fi
3829 1.1 christos
3830 1.1 christos
3831 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3832 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3833 1.1 christos else
3834 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3835 1.1 christos fi
3836 1.1 christos
3837 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 1.1 christos /* end confdefs.h. */
3839 1.1 christos
3840 1.1 christos
3841 1.1 christos int
3842 1.1 christos main ()
3843 1.1 christos {
3844 1.1 christos
3845 1.1 christos return 0;
3846 1.1 christos
3847 1.1 christos ;
3848 1.1 christos return 0;
3849 1.1 christos }
3850 1.1 christos _ACEOF
3851 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
3852 1.1 christos je_cv_cflags_added=-Wsign-compare
3853 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3854 1.1 christos $as_echo "yes" >&6; }
3855 1.1 christos else
3856 1.1 christos je_cv_cflags_added=
3857 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 1.1 christos $as_echo "no" >&6; }
3859 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3860 1.1 christos
3861 1.1 christos fi
3862 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3864 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3865 1.1 christos else
3866 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3867 1.1 christos fi
3868 1.1 christos
3869 1.1 christos
3870 1.1 christos
3871 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wundef" >&5
3872 1.1 christos $as_echo_n "checking whether compiler supports -Wundef... " >&6; }
3873 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3874 1.1 christos T_APPEND_V=-Wundef
3875 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3876 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3877 1.1 christos else
3878 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3879 1.1 christos fi
3880 1.1 christos
3881 1.1 christos
3882 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3883 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3884 1.1 christos else
3885 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3886 1.1 christos fi
3887 1.1 christos
3888 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 1.1 christos /* end confdefs.h. */
3890 1.1 christos
3891 1.1 christos
3892 1.1 christos int
3893 1.1 christos main ()
3894 1.1 christos {
3895 1.1 christos
3896 1.1 christos return 0;
3897 1.1 christos
3898 1.1 christos ;
3899 1.1 christos return 0;
3900 1.1 christos }
3901 1.1 christos _ACEOF
3902 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
3903 1.1 christos je_cv_cflags_added=-Wundef
3904 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3905 1.1 christos $as_echo "yes" >&6; }
3906 1.1 christos else
3907 1.1 christos je_cv_cflags_added=
3908 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 1.1 christos $as_echo "no" >&6; }
3910 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3911 1.1 christos
3912 1.1 christos fi
3913 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3914 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3915 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3916 1.1 christos else
3917 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3918 1.1 christos fi
3919 1.1 christos
3920 1.1 christos
3921 1.1 christos
3922 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-format-zero-length" >&5
3923 1.1 christos $as_echo_n "checking whether compiler supports -Wno-format-zero-length... " >&6; }
3924 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3925 1.1 christos T_APPEND_V=-Wno-format-zero-length
3926 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3927 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3928 1.1 christos else
3929 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3930 1.1 christos fi
3931 1.1 christos
3932 1.1 christos
3933 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3934 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3935 1.1 christos else
3936 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3937 1.1 christos fi
3938 1.1 christos
3939 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 1.1 christos /* end confdefs.h. */
3941 1.1 christos
3942 1.1 christos
3943 1.1 christos int
3944 1.1 christos main ()
3945 1.1 christos {
3946 1.1 christos
3947 1.1 christos return 0;
3948 1.1 christos
3949 1.1 christos ;
3950 1.1 christos return 0;
3951 1.1 christos }
3952 1.1 christos _ACEOF
3953 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
3954 1.1 christos je_cv_cflags_added=-Wno-format-zero-length
3955 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3956 1.1 christos $as_echo "yes" >&6; }
3957 1.1 christos else
3958 1.1 christos je_cv_cflags_added=
3959 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 1.1 christos $as_echo "no" >&6; }
3961 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
3962 1.1 christos
3963 1.1 christos fi
3964 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3966 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3967 1.1 christos else
3968 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3969 1.1 christos fi
3970 1.1 christos
3971 1.1 christos
3972 1.1 christos
3973 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -pipe" >&5
3974 1.1 christos $as_echo_n "checking whether compiler supports -pipe... " >&6; }
3975 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
3976 1.1 christos T_APPEND_V=-pipe
3977 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
3978 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
3979 1.1 christos else
3980 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
3981 1.1 christos fi
3982 1.1 christos
3983 1.1 christos
3984 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
3985 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
3986 1.1 christos else
3987 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
3988 1.1 christos fi
3989 1.1 christos
3990 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 1.1 christos /* end confdefs.h. */
3992 1.1 christos
3993 1.1 christos
3994 1.1 christos int
3995 1.1 christos main ()
3996 1.1 christos {
3997 1.1 christos
3998 1.1 christos return 0;
3999 1.1 christos
4000 1.1 christos ;
4001 1.1 christos return 0;
4002 1.1 christos }
4003 1.1 christos _ACEOF
4004 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
4005 1.1 christos je_cv_cflags_added=-pipe
4006 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4007 1.1 christos $as_echo "yes" >&6; }
4008 1.1 christos else
4009 1.1 christos je_cv_cflags_added=
4010 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 1.1 christos $as_echo "no" >&6; }
4012 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4013 1.1 christos
4014 1.1 christos fi
4015 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4017 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4018 1.1 christos else
4019 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4020 1.1 christos fi
4021 1.1 christos
4022 1.1 christos
4023 1.1 christos
4024 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
4025 1.1 christos $as_echo_n "checking whether compiler supports -g3... " >&6; }
4026 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4027 1.1 christos T_APPEND_V=-g3
4028 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4029 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4030 1.1 christos else
4031 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4032 1.1 christos fi
4033 1.1 christos
4034 1.1 christos
4035 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4036 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4037 1.1 christos else
4038 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4039 1.1 christos fi
4040 1.1 christos
4041 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 1.1 christos /* end confdefs.h. */
4043 1.1 christos
4044 1.1 christos
4045 1.1 christos int
4046 1.1 christos main ()
4047 1.1 christos {
4048 1.1 christos
4049 1.1 christos return 0;
4050 1.1 christos
4051 1.1 christos ;
4052 1.1 christos return 0;
4053 1.1 christos }
4054 1.1 christos _ACEOF
4055 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
4056 1.1 christos je_cv_cflags_added=-g3
4057 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4058 1.1 christos $as_echo "yes" >&6; }
4059 1.1 christos else
4060 1.1 christos je_cv_cflags_added=
4061 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 1.1 christos $as_echo "no" >&6; }
4063 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4064 1.1 christos
4065 1.1 christos fi
4066 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4068 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4069 1.1 christos else
4070 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4071 1.1 christos fi
4072 1.1 christos
4073 1.1 christos
4074 1.1 christos elif test "x$je_cv_msvc" = "xyes" ; then
4075 1.1 christos CC="$CC -nologo"
4076 1.1 christos
4077 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Zi" >&5
4078 1.1 christos $as_echo_n "checking whether compiler supports -Zi... " >&6; }
4079 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4080 1.1 christos T_APPEND_V=-Zi
4081 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4082 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4083 1.1 christos else
4084 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4085 1.1 christos fi
4086 1.1 christos
4087 1.1 christos
4088 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4089 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4090 1.1 christos else
4091 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4092 1.1 christos fi
4093 1.1 christos
4094 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 1.1 christos /* end confdefs.h. */
4096 1.1 christos
4097 1.1 christos
4098 1.1 christos int
4099 1.1 christos main ()
4100 1.1 christos {
4101 1.1 christos
4102 1.1 christos return 0;
4103 1.1 christos
4104 1.1 christos ;
4105 1.1 christos return 0;
4106 1.1 christos }
4107 1.1 christos _ACEOF
4108 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
4109 1.1 christos je_cv_cflags_added=-Zi
4110 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4111 1.1 christos $as_echo "yes" >&6; }
4112 1.1 christos else
4113 1.1 christos je_cv_cflags_added=
4114 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115 1.1 christos $as_echo "no" >&6; }
4116 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4117 1.1 christos
4118 1.1 christos fi
4119 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4121 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4122 1.1 christos else
4123 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4124 1.1 christos fi
4125 1.1 christos
4126 1.1 christos
4127 1.1 christos
4128 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -MT" >&5
4129 1.1 christos $as_echo_n "checking whether compiler supports -MT... " >&6; }
4130 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4131 1.1 christos T_APPEND_V=-MT
4132 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4133 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4134 1.1 christos else
4135 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4136 1.1 christos fi
4137 1.1 christos
4138 1.1 christos
4139 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4140 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4141 1.1 christos else
4142 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4143 1.1 christos fi
4144 1.1 christos
4145 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 1.1 christos /* end confdefs.h. */
4147 1.1 christos
4148 1.1 christos
4149 1.1 christos int
4150 1.1 christos main ()
4151 1.1 christos {
4152 1.1 christos
4153 1.1 christos return 0;
4154 1.1 christos
4155 1.1 christos ;
4156 1.1 christos return 0;
4157 1.1 christos }
4158 1.1 christos _ACEOF
4159 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
4160 1.1 christos je_cv_cflags_added=-MT
4161 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4162 1.1 christos $as_echo "yes" >&6; }
4163 1.1 christos else
4164 1.1 christos je_cv_cflags_added=
4165 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166 1.1 christos $as_echo "no" >&6; }
4167 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4168 1.1 christos
4169 1.1 christos fi
4170 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4172 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4173 1.1 christos else
4174 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4175 1.1 christos fi
4176 1.1 christos
4177 1.1 christos
4178 1.1 christos
4179 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -W3" >&5
4180 1.1 christos $as_echo_n "checking whether compiler supports -W3... " >&6; }
4181 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4182 1.1 christos T_APPEND_V=-W3
4183 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4184 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4185 1.1 christos else
4186 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4187 1.1 christos fi
4188 1.1 christos
4189 1.1 christos
4190 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4191 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4192 1.1 christos else
4193 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4194 1.1 christos fi
4195 1.1 christos
4196 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 1.1 christos /* end confdefs.h. */
4198 1.1 christos
4199 1.1 christos
4200 1.1 christos int
4201 1.1 christos main ()
4202 1.1 christos {
4203 1.1 christos
4204 1.1 christos return 0;
4205 1.1 christos
4206 1.1 christos ;
4207 1.1 christos return 0;
4208 1.1 christos }
4209 1.1 christos _ACEOF
4210 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
4211 1.1 christos je_cv_cflags_added=-W3
4212 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4213 1.1 christos $as_echo "yes" >&6; }
4214 1.1 christos else
4215 1.1 christos je_cv_cflags_added=
4216 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217 1.1 christos $as_echo "no" >&6; }
4218 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4219 1.1 christos
4220 1.1 christos fi
4221 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4223 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4224 1.1 christos else
4225 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4226 1.1 christos fi
4227 1.1 christos
4228 1.1 christos
4229 1.1 christos
4230 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -FS" >&5
4231 1.1 christos $as_echo_n "checking whether compiler supports -FS... " >&6; }
4232 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4233 1.1 christos T_APPEND_V=-FS
4234 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4235 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4236 1.1 christos else
4237 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4238 1.1 christos fi
4239 1.1 christos
4240 1.1 christos
4241 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4242 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4243 1.1 christos else
4244 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4245 1.1 christos fi
4246 1.1 christos
4247 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 1.1 christos /* end confdefs.h. */
4249 1.1 christos
4250 1.1 christos
4251 1.1 christos int
4252 1.1 christos main ()
4253 1.1 christos {
4254 1.1 christos
4255 1.1 christos return 0;
4256 1.1 christos
4257 1.1 christos ;
4258 1.1 christos return 0;
4259 1.1 christos }
4260 1.1 christos _ACEOF
4261 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
4262 1.1 christos je_cv_cflags_added=-FS
4263 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4264 1.1 christos $as_echo "yes" >&6; }
4265 1.1 christos else
4266 1.1 christos je_cv_cflags_added=
4267 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 1.1 christos $as_echo "no" >&6; }
4269 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4270 1.1 christos
4271 1.1 christos fi
4272 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4274 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4275 1.1 christos else
4276 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4277 1.1 christos fi
4278 1.1 christos
4279 1.1 christos
4280 1.1 christos T_APPEND_V=-I${srcdir}/include/msvc_compat
4281 1.1 christos if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4282 1.1 christos CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
4283 1.1 christos else
4284 1.1 christos CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
4285 1.1 christos fi
4286 1.1 christos
4287 1.1 christos
4288 1.1 christos fi
4289 1.1 christos if test "x$je_cv_cray" = "xyes" ; then
4290 1.1 christos if test "x$je_cv_cray_84" = "xyes" ; then
4291 1.1 christos
4292 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hipa2" >&5
4293 1.1 christos $as_echo_n "checking whether compiler supports -hipa2... " >&6; }
4294 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4295 1.1 christos T_APPEND_V=-hipa2
4296 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4297 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4298 1.1 christos else
4299 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4300 1.1 christos fi
4301 1.1 christos
4302 1.1 christos
4303 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4304 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4305 1.1 christos else
4306 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4307 1.1 christos fi
4308 1.1 christos
4309 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 1.1 christos /* end confdefs.h. */
4311 1.1 christos
4312 1.1 christos
4313 1.1 christos int
4314 1.1 christos main ()
4315 1.1 christos {
4316 1.1 christos
4317 1.1 christos return 0;
4318 1.1 christos
4319 1.1 christos ;
4320 1.1 christos return 0;
4321 1.1 christos }
4322 1.1 christos _ACEOF
4323 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
4324 1.1 christos je_cv_cflags_added=-hipa2
4325 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4326 1.1 christos $as_echo "yes" >&6; }
4327 1.1 christos else
4328 1.1 christos je_cv_cflags_added=
4329 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4330 1.1 christos $as_echo "no" >&6; }
4331 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4332 1.1 christos
4333 1.1 christos fi
4334 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4336 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4337 1.1 christos else
4338 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4339 1.1 christos fi
4340 1.1 christos
4341 1.1 christos
4342 1.1 christos
4343 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnognu" >&5
4344 1.1 christos $as_echo_n "checking whether compiler supports -hnognu... " >&6; }
4345 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4346 1.1 christos T_APPEND_V=-hnognu
4347 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4348 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4349 1.1 christos else
4350 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4351 1.1 christos fi
4352 1.1 christos
4353 1.1 christos
4354 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4355 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4356 1.1 christos else
4357 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4358 1.1 christos fi
4359 1.1 christos
4360 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 1.1 christos /* end confdefs.h. */
4362 1.1 christos
4363 1.1 christos
4364 1.1 christos int
4365 1.1 christos main ()
4366 1.1 christos {
4367 1.1 christos
4368 1.1 christos return 0;
4369 1.1 christos
4370 1.1 christos ;
4371 1.1 christos return 0;
4372 1.1 christos }
4373 1.1 christos _ACEOF
4374 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
4375 1.1 christos je_cv_cflags_added=-hnognu
4376 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4377 1.1 christos $as_echo "yes" >&6; }
4378 1.1 christos else
4379 1.1 christos je_cv_cflags_added=
4380 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381 1.1 christos $as_echo "no" >&6; }
4382 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4383 1.1 christos
4384 1.1 christos fi
4385 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4387 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4388 1.1 christos else
4389 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4390 1.1 christos fi
4391 1.1 christos
4392 1.1 christos
4393 1.1 christos fi
4394 1.1 christos
4395 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=128" >&5
4396 1.1 christos $as_echo_n "checking whether compiler supports -hnomessage=128... " >&6; }
4397 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4398 1.1 christos T_APPEND_V=-hnomessage=128
4399 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4400 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4401 1.1 christos else
4402 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4403 1.1 christos fi
4404 1.1 christos
4405 1.1 christos
4406 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4407 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4408 1.1 christos else
4409 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4410 1.1 christos fi
4411 1.1 christos
4412 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 1.1 christos /* end confdefs.h. */
4414 1.1 christos
4415 1.1 christos
4416 1.1 christos int
4417 1.1 christos main ()
4418 1.1 christos {
4419 1.1 christos
4420 1.1 christos return 0;
4421 1.1 christos
4422 1.1 christos ;
4423 1.1 christos return 0;
4424 1.1 christos }
4425 1.1 christos _ACEOF
4426 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
4427 1.1 christos je_cv_cflags_added=-hnomessage=128
4428 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4429 1.1 christos $as_echo "yes" >&6; }
4430 1.1 christos else
4431 1.1 christos je_cv_cflags_added=
4432 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433 1.1 christos $as_echo "no" >&6; }
4434 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4435 1.1 christos
4436 1.1 christos fi
4437 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4439 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4440 1.1 christos else
4441 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4442 1.1 christos fi
4443 1.1 christos
4444 1.1 christos
4445 1.1 christos
4446 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -hnomessage=1357" >&5
4447 1.1 christos $as_echo_n "checking whether compiler supports -hnomessage=1357... " >&6; }
4448 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
4449 1.1 christos T_APPEND_V=-hnomessage=1357
4450 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
4451 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
4452 1.1 christos else
4453 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
4454 1.1 christos fi
4455 1.1 christos
4456 1.1 christos
4457 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4458 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4459 1.1 christos else
4460 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4461 1.1 christos fi
4462 1.1 christos
4463 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 1.1 christos /* end confdefs.h. */
4465 1.1 christos
4466 1.1 christos
4467 1.1 christos int
4468 1.1 christos main ()
4469 1.1 christos {
4470 1.1 christos
4471 1.1 christos return 0;
4472 1.1 christos
4473 1.1 christos ;
4474 1.1 christos return 0;
4475 1.1 christos }
4476 1.1 christos _ACEOF
4477 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
4478 1.1 christos je_cv_cflags_added=-hnomessage=1357
4479 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4480 1.1 christos $as_echo "yes" >&6; }
4481 1.1 christos else
4482 1.1 christos je_cv_cflags_added=
4483 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 1.1 christos $as_echo "no" >&6; }
4485 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
4486 1.1 christos
4487 1.1 christos fi
4488 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
4490 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
4491 1.1 christos else
4492 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
4493 1.1 christos fi
4494 1.1 christos
4495 1.1 christos
4496 1.1 christos fi
4497 1.1 christos
4498 1.1 christos
4499 1.1 christos
4500 1.1 christos ac_ext=c
4501 1.1 christos ac_cpp='$CPP $CPPFLAGS'
4502 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4503 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4504 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
4505 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4506 1.1 christos $as_echo_n "checking how to run the C preprocessor... " >&6; }
4507 1.1 christos # On Suns, sometimes $CPP names a directory.
4508 1.1 christos if test -n "$CPP" && test -d "$CPP"; then
4509 1.1 christos CPP=
4510 1.1 christos fi
4511 1.1 christos if test -z "$CPP"; then
4512 1.1 christos if ${ac_cv_prog_CPP+:} false; then :
4513 1.1 christos $as_echo_n "(cached) " >&6
4514 1.1 christos else
4515 1.1 christos # Double quotes because CPP needs to be expanded
4516 1.1 christos for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4517 1.1 christos do
4518 1.1 christos ac_preproc_ok=false
4519 1.1 christos for ac_c_preproc_warn_flag in '' yes
4520 1.1 christos do
4521 1.1 christos # Use a header file that comes with gcc, so configuring glibc
4522 1.1 christos # with a fresh cross-compiler works.
4523 1.1 christos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4524 1.1 christos # <limits.h> exists even on freestanding compilers.
4525 1.1 christos # On the NeXT, cc -E runs the code through the compiler's parser,
4526 1.1 christos # not just through cpp. "Syntax error" is here to catch this case.
4527 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 1.1 christos /* end confdefs.h. */
4529 1.1 christos #ifdef __STDC__
4530 1.1 christos # include <limits.h>
4531 1.1 christos #else
4532 1.1 christos # include <assert.h>
4533 1.1 christos #endif
4534 1.1 christos Syntax error
4535 1.1 christos _ACEOF
4536 1.1 christos if ac_fn_c_try_cpp "$LINENO"; then :
4537 1.1 christos
4538 1.1 christos else
4539 1.1 christos # Broken: fails on valid input.
4540 1.1 christos continue
4541 1.1 christos fi
4542 1.1 christos rm -f conftest.err conftest.i conftest.$ac_ext
4543 1.1 christos
4544 1.1 christos # OK, works on sane cases. Now check whether nonexistent headers
4545 1.1 christos # can be detected and how.
4546 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 1.1 christos /* end confdefs.h. */
4548 1.1 christos #include <ac_nonexistent.h>
4549 1.1 christos _ACEOF
4550 1.1 christos if ac_fn_c_try_cpp "$LINENO"; then :
4551 1.1 christos # Broken: success on invalid input.
4552 1.1 christos continue
4553 1.1 christos else
4554 1.1 christos # Passes both tests.
4555 1.1 christos ac_preproc_ok=:
4556 1.1 christos break
4557 1.1 christos fi
4558 1.1 christos rm -f conftest.err conftest.i conftest.$ac_ext
4559 1.1 christos
4560 1.1 christos done
4561 1.1 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4562 1.1 christos rm -f conftest.i conftest.err conftest.$ac_ext
4563 1.1 christos if $ac_preproc_ok; then :
4564 1.1 christos break
4565 1.1 christos fi
4566 1.1 christos
4567 1.1 christos done
4568 1.1 christos ac_cv_prog_CPP=$CPP
4569 1.1 christos
4570 1.1 christos fi
4571 1.1 christos CPP=$ac_cv_prog_CPP
4572 1.1 christos else
4573 1.1 christos ac_cv_prog_CPP=$CPP
4574 1.1 christos fi
4575 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4576 1.1 christos $as_echo "$CPP" >&6; }
4577 1.1 christos ac_preproc_ok=false
4578 1.1 christos for ac_c_preproc_warn_flag in '' yes
4579 1.1 christos do
4580 1.1 christos # Use a header file that comes with gcc, so configuring glibc
4581 1.1 christos # with a fresh cross-compiler works.
4582 1.1 christos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4583 1.1 christos # <limits.h> exists even on freestanding compilers.
4584 1.1 christos # On the NeXT, cc -E runs the code through the compiler's parser,
4585 1.1 christos # not just through cpp. "Syntax error" is here to catch this case.
4586 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 1.1 christos /* end confdefs.h. */
4588 1.1 christos #ifdef __STDC__
4589 1.1 christos # include <limits.h>
4590 1.1 christos #else
4591 1.1 christos # include <assert.h>
4592 1.1 christos #endif
4593 1.1 christos Syntax error
4594 1.1 christos _ACEOF
4595 1.1 christos if ac_fn_c_try_cpp "$LINENO"; then :
4596 1.1 christos
4597 1.1 christos else
4598 1.1 christos # Broken: fails on valid input.
4599 1.1 christos continue
4600 1.1 christos fi
4601 1.1 christos rm -f conftest.err conftest.i conftest.$ac_ext
4602 1.1 christos
4603 1.1 christos # OK, works on sane cases. Now check whether nonexistent headers
4604 1.1 christos # can be detected and how.
4605 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 1.1 christos /* end confdefs.h. */
4607 1.1 christos #include <ac_nonexistent.h>
4608 1.1 christos _ACEOF
4609 1.1 christos if ac_fn_c_try_cpp "$LINENO"; then :
4610 1.1 christos # Broken: success on invalid input.
4611 1.1 christos continue
4612 1.1 christos else
4613 1.1 christos # Passes both tests.
4614 1.1 christos ac_preproc_ok=:
4615 1.1 christos break
4616 1.1 christos fi
4617 1.1 christos rm -f conftest.err conftest.i conftest.$ac_ext
4618 1.1 christos
4619 1.1 christos done
4620 1.1 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4621 1.1 christos rm -f conftest.i conftest.err conftest.$ac_ext
4622 1.1 christos if $ac_preproc_ok; then :
4623 1.1 christos
4624 1.1 christos else
4625 1.1 christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4626 1.1 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4627 1.1 christos as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4628 1.1 christos See \`config.log' for more details" "$LINENO" 5; }
4629 1.1 christos fi
4630 1.1 christos
4631 1.1 christos ac_ext=c
4632 1.1 christos ac_cpp='$CPP $CPPFLAGS'
4633 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4634 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636 1.1 christos
4637 1.1 christos
4638 1.1 christos # Check whether --enable-cxx was given.
4639 1.1 christos if test "${enable_cxx+set}" = set; then :
4640 1.1 christos enableval=$enable_cxx; if test "x$enable_cxx" = "xno" ; then
4641 1.1 christos enable_cxx="0"
4642 1.1 christos else
4643 1.1 christos enable_cxx="1"
4644 1.1 christos fi
4645 1.1 christos
4646 1.1 christos else
4647 1.1 christos enable_cxx="1"
4648 1.1 christos
4649 1.1 christos fi
4650 1.1 christos
4651 1.1 christos if test "x$enable_cxx" = "x1" ; then
4652 1.1 christos # ===========================================================================
4653 1.1 christos # http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html
4654 1.1 christos # ===========================================================================
4655 1.1 christos #
4656 1.1 christos # SYNOPSIS
4657 1.1 christos #
4658 1.1 christos # AX_CXX_COMPILE_STDCXX(VERSION, [ext|noext], [mandatory|optional])
4659 1.1 christos #
4660 1.1 christos # DESCRIPTION
4661 1.1 christos #
4662 1.1 christos # Check for baseline language coverage in the compiler for the specified
4663 1.1 christos # version of the C++ standard. If necessary, add switches to CXX and
4664 1.1 christos # CXXCPP to enable support. VERSION may be '11' (for the C++11 standard)
4665 1.1 christos # or '14' (for the C++14 standard).
4666 1.1 christos #
4667 1.1 christos # The second argument, if specified, indicates whether you insist on an
4668 1.1 christos # extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.
4669 1.1 christos # -std=c++11). If neither is specified, you get whatever works, with
4670 1.1 christos # preference for an extended mode.
4671 1.1 christos #
4672 1.1 christos # The third argument, if specified 'mandatory' or if left unspecified,
4673 1.1 christos # indicates that baseline support for the specified C++ standard is
4674 1.1 christos # required and that the macro should error out if no mode with that
4675 1.1 christos # support is found. If specified 'optional', then configuration proceeds
4676 1.1 christos # regardless, after defining HAVE_CXX${VERSION} if and only if a
4677 1.1 christos # supporting mode is found.
4678 1.1 christos #
4679 1.1 christos # LICENSE
4680 1.1 christos #
4681 1.1 christos # Copyright (c) 2008 Benjamin Kosnik <bkoz (at] redhat.com>
4682 1.1 christos # Copyright (c) 2012 Zack Weinberg <zackw (at] panix.com>
4683 1.1 christos # Copyright (c) 2013 Roy Stogner <roystgnr (at] ices.utexas.edu>
4684 1.1 christos # Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov (at] google.com>
4685 1.1 christos # Copyright (c) 2015 Paul Norman <penorman (at] mac.com>
4686 1.1 christos # Copyright (c) 2015 Moritz Klammler <moritz (at] klammler.eu>
4687 1.1 christos #
4688 1.1 christos # Copying and distribution of this file, with or without modification, are
4689 1.1 christos # permitted in any medium without royalty provided the copyright notice
4690 1.1 christos # and this notice are preserved. This file is offered as-is, without any
4691 1.1 christos # warranty.
4692 1.1 christos
4693 1.1 christos #serial 4
4694 1.1 christos
4695 1.1 christos
4696 1.1 christos
4697 1.1 christos
4698 1.1 christos
4699 1.1 christos
4700 1.1 christos
4701 1.1 christos
4702 1.1 christos
4703 1.1 christos
4704 1.1 christos
4705 1.1 christos
4706 1.1 christos
4707 1.1 christos
4708 1.1 christos
4709 1.1 christos
4710 1.1 christos
4711 1.1 christos
4712 1.1 christos
4713 1.1 christos
4714 1.1 christos ac_ext=cpp
4715 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
4716 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4719 1.1 christos if test -z "$CXX"; then
4720 1.1 christos if test -n "$CCC"; then
4721 1.1 christos CXX=$CCC
4722 1.1 christos else
4723 1.1 christos if test -n "$ac_tool_prefix"; then
4724 1.1 christos for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4725 1.1 christos do
4726 1.1 christos # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4727 1.1 christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4728 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 1.1 christos $as_echo_n "checking for $ac_word... " >&6; }
4730 1.1 christos if ${ac_cv_prog_CXX+:} false; then :
4731 1.1 christos $as_echo_n "(cached) " >&6
4732 1.1 christos else
4733 1.1 christos if test -n "$CXX"; then
4734 1.1 christos ac_cv_prog_CXX="$CXX" # Let the user override the test.
4735 1.1 christos else
4736 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 1.1 christos for as_dir in $PATH
4738 1.1 christos do
4739 1.1 christos IFS=$as_save_IFS
4740 1.1 christos test -z "$as_dir" && as_dir=.
4741 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
4742 1.1 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4743 1.1 christos ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4744 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 1.1 christos break 2
4746 1.1 christos fi
4747 1.1 christos done
4748 1.1 christos done
4749 1.1 christos IFS=$as_save_IFS
4750 1.1 christos
4751 1.1 christos fi
4752 1.1 christos fi
4753 1.1 christos CXX=$ac_cv_prog_CXX
4754 1.1 christos if test -n "$CXX"; then
4755 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4756 1.1 christos $as_echo "$CXX" >&6; }
4757 1.1 christos else
4758 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 1.1 christos $as_echo "no" >&6; }
4760 1.1 christos fi
4761 1.1 christos
4762 1.1 christos
4763 1.1 christos test -n "$CXX" && break
4764 1.1 christos done
4765 1.1 christos fi
4766 1.1 christos if test -z "$CXX"; then
4767 1.1 christos ac_ct_CXX=$CXX
4768 1.1 christos for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4769 1.1 christos do
4770 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
4771 1.1 christos set dummy $ac_prog; ac_word=$2
4772 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 1.1 christos $as_echo_n "checking for $ac_word... " >&6; }
4774 1.1 christos if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4775 1.1 christos $as_echo_n "(cached) " >&6
4776 1.1 christos else
4777 1.1 christos if test -n "$ac_ct_CXX"; then
4778 1.1 christos ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4779 1.1 christos else
4780 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 1.1 christos for as_dir in $PATH
4782 1.1 christos do
4783 1.1 christos IFS=$as_save_IFS
4784 1.1 christos test -z "$as_dir" && as_dir=.
4785 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
4786 1.1 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787 1.1 christos ac_cv_prog_ac_ct_CXX="$ac_prog"
4788 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 1.1 christos break 2
4790 1.1 christos fi
4791 1.1 christos done
4792 1.1 christos done
4793 1.1 christos IFS=$as_save_IFS
4794 1.1 christos
4795 1.1 christos fi
4796 1.1 christos fi
4797 1.1 christos ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4798 1.1 christos if test -n "$ac_ct_CXX"; then
4799 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4800 1.1 christos $as_echo "$ac_ct_CXX" >&6; }
4801 1.1 christos else
4802 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 1.1 christos $as_echo "no" >&6; }
4804 1.1 christos fi
4805 1.1 christos
4806 1.1 christos
4807 1.1 christos test -n "$ac_ct_CXX" && break
4808 1.1 christos done
4809 1.1 christos
4810 1.1 christos if test "x$ac_ct_CXX" = x; then
4811 1.1 christos CXX="g++"
4812 1.1 christos else
4813 1.1 christos case $cross_compiling:$ac_tool_warned in
4814 1.1 christos yes:)
4815 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816 1.1 christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817 1.1 christos ac_tool_warned=yes ;;
4818 1.1 christos esac
4819 1.1 christos CXX=$ac_ct_CXX
4820 1.1 christos fi
4821 1.1 christos fi
4822 1.1 christos
4823 1.1 christos fi
4824 1.1 christos fi
4825 1.1 christos # Provide some information about the compiler.
4826 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4827 1.1 christos set X $ac_compile
4828 1.1 christos ac_compiler=$2
4829 1.1 christos for ac_option in --version -v -V -qversion; do
4830 1.1 christos { { ac_try="$ac_compiler $ac_option >&5"
4831 1.1 christos case "(($ac_try" in
4832 1.1 christos *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 1.1 christos *) ac_try_echo=$ac_try;;
4834 1.1 christos esac
4835 1.1 christos eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4836 1.1 christos $as_echo "$ac_try_echo"; } >&5
4837 1.1 christos (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4838 1.1 christos ac_status=$?
4839 1.1 christos if test -s conftest.err; then
4840 1.1 christos sed '10a\
4841 1.1 christos ... rest of stderr output deleted ...
4842 1.1 christos 10q' conftest.err >conftest.er1
4843 1.1 christos cat conftest.er1 >&5
4844 1.1 christos fi
4845 1.1 christos rm -f conftest.er1 conftest.err
4846 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4847 1.1 christos test $ac_status = 0; }
4848 1.1 christos done
4849 1.1 christos
4850 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4851 1.1 christos $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4852 1.1 christos if ${ac_cv_cxx_compiler_gnu+:} false; then :
4853 1.1 christos $as_echo_n "(cached) " >&6
4854 1.1 christos else
4855 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 1.1 christos /* end confdefs.h. */
4857 1.1 christos
4858 1.1 christos int
4859 1.1 christos main ()
4860 1.1 christos {
4861 1.1 christos #ifndef __GNUC__
4862 1.1 christos choke me
4863 1.1 christos #endif
4864 1.1 christos
4865 1.1 christos ;
4866 1.1 christos return 0;
4867 1.1 christos }
4868 1.1 christos _ACEOF
4869 1.1 christos if ac_fn_cxx_try_compile "$LINENO"; then :
4870 1.1 christos ac_compiler_gnu=yes
4871 1.1 christos else
4872 1.1 christos ac_compiler_gnu=no
4873 1.1 christos fi
4874 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875 1.1 christos ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4876 1.1 christos
4877 1.1 christos fi
4878 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4879 1.1 christos $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4880 1.1 christos if test $ac_compiler_gnu = yes; then
4881 1.1 christos GXX=yes
4882 1.1 christos else
4883 1.1 christos GXX=
4884 1.1 christos fi
4885 1.1 christos ac_test_CXXFLAGS=${CXXFLAGS+set}
4886 1.1 christos ac_save_CXXFLAGS=$CXXFLAGS
4887 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4888 1.1 christos $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4889 1.1 christos if ${ac_cv_prog_cxx_g+:} false; then :
4890 1.1 christos $as_echo_n "(cached) " >&6
4891 1.1 christos else
4892 1.1 christos ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4893 1.1 christos ac_cxx_werror_flag=yes
4894 1.1 christos ac_cv_prog_cxx_g=no
4895 1.1 christos CXXFLAGS="-g"
4896 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 1.1 christos /* end confdefs.h. */
4898 1.1 christos
4899 1.1 christos int
4900 1.1 christos main ()
4901 1.1 christos {
4902 1.1 christos
4903 1.1 christos ;
4904 1.1 christos return 0;
4905 1.1 christos }
4906 1.1 christos _ACEOF
4907 1.1 christos if ac_fn_cxx_try_compile "$LINENO"; then :
4908 1.1 christos ac_cv_prog_cxx_g=yes
4909 1.1 christos else
4910 1.1 christos CXXFLAGS=""
4911 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 1.1 christos /* end confdefs.h. */
4913 1.1 christos
4914 1.1 christos int
4915 1.1 christos main ()
4916 1.1 christos {
4917 1.1 christos
4918 1.1 christos ;
4919 1.1 christos return 0;
4920 1.1 christos }
4921 1.1 christos _ACEOF
4922 1.1 christos if ac_fn_cxx_try_compile "$LINENO"; then :
4923 1.1 christos
4924 1.1 christos else
4925 1.1 christos ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4926 1.1 christos CXXFLAGS="-g"
4927 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 1.1 christos /* end confdefs.h. */
4929 1.1 christos
4930 1.1 christos int
4931 1.1 christos main ()
4932 1.1 christos {
4933 1.1 christos
4934 1.1 christos ;
4935 1.1 christos return 0;
4936 1.1 christos }
4937 1.1 christos _ACEOF
4938 1.1 christos if ac_fn_cxx_try_compile "$LINENO"; then :
4939 1.1 christos ac_cv_prog_cxx_g=yes
4940 1.1 christos fi
4941 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942 1.1 christos fi
4943 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944 1.1 christos fi
4945 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 1.1 christos ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4947 1.1 christos fi
4948 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4949 1.1 christos $as_echo "$ac_cv_prog_cxx_g" >&6; }
4950 1.1 christos if test "$ac_test_CXXFLAGS" = set; then
4951 1.1 christos CXXFLAGS=$ac_save_CXXFLAGS
4952 1.1 christos elif test $ac_cv_prog_cxx_g = yes; then
4953 1.1 christos if test "$GXX" = yes; then
4954 1.1 christos CXXFLAGS="-g -O2"
4955 1.1 christos else
4956 1.1 christos CXXFLAGS="-g"
4957 1.1 christos fi
4958 1.1 christos else
4959 1.1 christos if test "$GXX" = yes; then
4960 1.1 christos CXXFLAGS="-O2"
4961 1.1 christos else
4962 1.1 christos CXXFLAGS=
4963 1.1 christos fi
4964 1.1 christos fi
4965 1.1 christos ac_ext=cpp
4966 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
4967 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4970 1.1 christos
4971 1.1 christos
4972 1.1 christos ax_cxx_compile_cxx14_required=false
4973 1.1 christos ac_ext=cpp
4974 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
4975 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4978 1.1 christos ac_success=no
4979 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
4980 1.1 christos $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
4981 1.1 christos if ${ax_cv_cxx_compile_cxx14+:} false; then :
4982 1.1 christos $as_echo_n "(cached) " >&6
4983 1.1 christos else
4984 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 1.1 christos /* end confdefs.h. */
4986 1.1 christos
4987 1.1 christos
4988 1.1 christos // If the compiler admits that it is not ready for C++11, why torture it?
4989 1.1 christos // Hopefully, this will speed up the test.
4990 1.1 christos
4991 1.1 christos #ifndef __cplusplus
4992 1.1 christos
4993 1.1 christos #error "This is not a C++ compiler"
4994 1.1 christos
4995 1.1 christos #elif __cplusplus < 201103L
4996 1.1 christos
4997 1.1 christos #error "This is not a C++11 compiler"
4998 1.1 christos
4999 1.1 christos #else
5000 1.1 christos
5001 1.1 christos namespace cxx11
5002 1.1 christos {
5003 1.1 christos
5004 1.1 christos namespace test_static_assert
5005 1.1 christos {
5006 1.1 christos
5007 1.1 christos template <typename T>
5008 1.1 christos struct check
5009 1.1 christos {
5010 1.1 christos static_assert(sizeof(int) <= sizeof(T), "not big enough");
5011 1.1 christos };
5012 1.1 christos
5013 1.1 christos }
5014 1.1 christos
5015 1.1 christos namespace test_final_override
5016 1.1 christos {
5017 1.1 christos
5018 1.1 christos struct Base
5019 1.1 christos {
5020 1.1 christos virtual void f() {}
5021 1.1 christos };
5022 1.1 christos
5023 1.1 christos struct Derived : public Base
5024 1.1 christos {
5025 1.1 christos virtual void f() override {}
5026 1.1 christos };
5027 1.1 christos
5028 1.1 christos }
5029 1.1 christos
5030 1.1 christos namespace test_double_right_angle_brackets
5031 1.1 christos {
5032 1.1 christos
5033 1.1 christos template < typename T >
5034 1.1 christos struct check {};
5035 1.1 christos
5036 1.1 christos typedef check<void> single_type;
5037 1.1 christos typedef check<check<void>> double_type;
5038 1.1 christos typedef check<check<check<void>>> triple_type;
5039 1.1 christos typedef check<check<check<check<void>>>> quadruple_type;
5040 1.1 christos
5041 1.1 christos }
5042 1.1 christos
5043 1.1 christos namespace test_decltype
5044 1.1 christos {
5045 1.1 christos
5046 1.1 christos int
5047 1.1 christos f()
5048 1.1 christos {
5049 1.1 christos int a = 1;
5050 1.1 christos decltype(a) b = 2;
5051 1.1 christos return a + b;
5052 1.1 christos }
5053 1.1 christos
5054 1.1 christos }
5055 1.1 christos
5056 1.1 christos namespace test_type_deduction
5057 1.1 christos {
5058 1.1 christos
5059 1.1 christos template < typename T1, typename T2 >
5060 1.1 christos struct is_same
5061 1.1 christos {
5062 1.1 christos static const bool value = false;
5063 1.1 christos };
5064 1.1 christos
5065 1.1 christos template < typename T >
5066 1.1 christos struct is_same<T, T>
5067 1.1 christos {
5068 1.1 christos static const bool value = true;
5069 1.1 christos };
5070 1.1 christos
5071 1.1 christos template < typename T1, typename T2 >
5072 1.1 christos auto
5073 1.1 christos add(T1 a1, T2 a2) -> decltype(a1 + a2)
5074 1.1 christos {
5075 1.1 christos return a1 + a2;
5076 1.1 christos }
5077 1.1 christos
5078 1.1 christos int
5079 1.1 christos test(const int c, volatile int v)
5080 1.1 christos {
5081 1.1 christos static_assert(is_same<int, decltype(0)>::value == true, "");
5082 1.1 christos static_assert(is_same<int, decltype(c)>::value == false, "");
5083 1.1 christos static_assert(is_same<int, decltype(v)>::value == false, "");
5084 1.1 christos auto ac = c;
5085 1.1 christos auto av = v;
5086 1.1 christos auto sumi = ac + av + 'x';
5087 1.1 christos auto sumf = ac + av + 1.0;
5088 1.1 christos static_assert(is_same<int, decltype(ac)>::value == true, "");
5089 1.1 christos static_assert(is_same<int, decltype(av)>::value == true, "");
5090 1.1 christos static_assert(is_same<int, decltype(sumi)>::value == true, "");
5091 1.1 christos static_assert(is_same<int, decltype(sumf)>::value == false, "");
5092 1.1 christos static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5093 1.1 christos return (sumf > 0.0) ? sumi : add(c, v);
5094 1.1 christos }
5095 1.1 christos
5096 1.1 christos }
5097 1.1 christos
5098 1.1 christos namespace test_noexcept
5099 1.1 christos {
5100 1.1 christos
5101 1.1 christos int f() { return 0; }
5102 1.1 christos int g() noexcept { return 0; }
5103 1.1 christos
5104 1.1 christos static_assert(noexcept(f()) == false, "");
5105 1.1 christos static_assert(noexcept(g()) == true, "");
5106 1.1 christos
5107 1.1 christos }
5108 1.1 christos
5109 1.1 christos namespace test_constexpr
5110 1.1 christos {
5111 1.1 christos
5112 1.1 christos template < typename CharT >
5113 1.1 christos unsigned long constexpr
5114 1.1 christos strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5115 1.1 christos {
5116 1.1 christos return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5117 1.1 christos }
5118 1.1 christos
5119 1.1 christos template < typename CharT >
5120 1.1 christos unsigned long constexpr
5121 1.1 christos strlen_c(const CharT *const s) noexcept
5122 1.1 christos {
5123 1.1 christos return strlen_c_r(s, 0UL);
5124 1.1 christos }
5125 1.1 christos
5126 1.1 christos static_assert(strlen_c("") == 0UL, "");
5127 1.1 christos static_assert(strlen_c("1") == 1UL, "");
5128 1.1 christos static_assert(strlen_c("example") == 7UL, "");
5129 1.1 christos static_assert(strlen_c("another\0example") == 7UL, "");
5130 1.1 christos
5131 1.1 christos }
5132 1.1 christos
5133 1.1 christos namespace test_rvalue_references
5134 1.1 christos {
5135 1.1 christos
5136 1.1 christos template < int N >
5137 1.1 christos struct answer
5138 1.1 christos {
5139 1.1 christos static constexpr int value = N;
5140 1.1 christos };
5141 1.1 christos
5142 1.1 christos answer<1> f(int&) { return answer<1>(); }
5143 1.1 christos answer<2> f(const int&) { return answer<2>(); }
5144 1.1 christos answer<3> f(int&&) { return answer<3>(); }
5145 1.1 christos
5146 1.1 christos void
5147 1.1 christos test()
5148 1.1 christos {
5149 1.1 christos int i = 0;
5150 1.1 christos const int c = 0;
5151 1.1 christos static_assert(decltype(f(i))::value == 1, "");
5152 1.1 christos static_assert(decltype(f(c))::value == 2, "");
5153 1.1 christos static_assert(decltype(f(0))::value == 3, "");
5154 1.1 christos }
5155 1.1 christos
5156 1.1 christos }
5157 1.1 christos
5158 1.1 christos namespace test_uniform_initialization
5159 1.1 christos {
5160 1.1 christos
5161 1.1 christos struct test
5162 1.1 christos {
5163 1.1 christos static const int zero {};
5164 1.1 christos static const int one {1};
5165 1.1 christos };
5166 1.1 christos
5167 1.1 christos static_assert(test::zero == 0, "");
5168 1.1 christos static_assert(test::one == 1, "");
5169 1.1 christos
5170 1.1 christos }
5171 1.1 christos
5172 1.1 christos namespace test_lambdas
5173 1.1 christos {
5174 1.1 christos
5175 1.1 christos void
5176 1.1 christos test1()
5177 1.1 christos {
5178 1.1 christos auto lambda1 = [](){};
5179 1.1 christos auto lambda2 = lambda1;
5180 1.1 christos lambda1();
5181 1.1 christos lambda2();
5182 1.1 christos }
5183 1.1 christos
5184 1.1 christos int
5185 1.1 christos test2()
5186 1.1 christos {
5187 1.1 christos auto a = [](int i, int j){ return i + j; }(1, 2);
5188 1.1 christos auto b = []() -> int { return '0'; }();
5189 1.1 christos auto c = [=](){ return a + b; }();
5190 1.1 christos auto d = [&](){ return c; }();
5191 1.1 christos auto e = [a, &b](int x) mutable {
5192 1.1 christos const auto identity = [](int y){ return y; };
5193 1.1 christos for (auto i = 0; i < a; ++i)
5194 1.1 christos a += b--;
5195 1.1 christos return x + identity(a + b);
5196 1.1 christos }(0);
5197 1.1 christos return a + b + c + d + e;
5198 1.1 christos }
5199 1.1 christos
5200 1.1 christos int
5201 1.1 christos test3()
5202 1.1 christos {
5203 1.1 christos const auto nullary = [](){ return 0; };
5204 1.1 christos const auto unary = [](int x){ return x; };
5205 1.1 christos using nullary_t = decltype(nullary);
5206 1.1 christos using unary_t = decltype(unary);
5207 1.1 christos const auto higher1st = [](nullary_t f){ return f(); };
5208 1.1 christos const auto higher2nd = [unary](nullary_t f1){
5209 1.1 christos return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5210 1.1 christos };
5211 1.1 christos return higher1st(nullary) + higher2nd(nullary)(unary);
5212 1.1 christos }
5213 1.1 christos
5214 1.1 christos }
5215 1.1 christos
5216 1.1 christos namespace test_variadic_templates
5217 1.1 christos {
5218 1.1 christos
5219 1.1 christos template <int...>
5220 1.1 christos struct sum;
5221 1.1 christos
5222 1.1 christos template <int N0, int... N1toN>
5223 1.1 christos struct sum<N0, N1toN...>
5224 1.1 christos {
5225 1.1 christos static constexpr auto value = N0 + sum<N1toN...>::value;
5226 1.1 christos };
5227 1.1 christos
5228 1.1 christos template <>
5229 1.1 christos struct sum<>
5230 1.1 christos {
5231 1.1 christos static constexpr auto value = 0;
5232 1.1 christos };
5233 1.1 christos
5234 1.1 christos static_assert(sum<>::value == 0, "");
5235 1.1 christos static_assert(sum<1>::value == 1, "");
5236 1.1 christos static_assert(sum<23>::value == 23, "");
5237 1.1 christos static_assert(sum<1, 2>::value == 3, "");
5238 1.1 christos static_assert(sum<5, 5, 11>::value == 21, "");
5239 1.1 christos static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5240 1.1 christos
5241 1.1 christos }
5242 1.1 christos
5243 1.1 christos // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5244 1.1 christos // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5245 1.1 christos // because of this.
5246 1.1 christos namespace test_template_alias_sfinae
5247 1.1 christos {
5248 1.1 christos
5249 1.1 christos struct foo {};
5250 1.1 christos
5251 1.1 christos template<typename T>
5252 1.1 christos using member = typename T::member_type;
5253 1.1 christos
5254 1.1 christos template<typename T>
5255 1.1 christos void func(...) {}
5256 1.1 christos
5257 1.1 christos template<typename T>
5258 1.1 christos void func(member<T>*) {}
5259 1.1 christos
5260 1.1 christos void test();
5261 1.1 christos
5262 1.1 christos void test() { func<foo>(0); }
5263 1.1 christos
5264 1.1 christos }
5265 1.1 christos
5266 1.1 christos } // namespace cxx11
5267 1.1 christos
5268 1.1 christos #endif // __cplusplus >= 201103L
5269 1.1 christos
5270 1.1 christos
5271 1.1 christos
5272 1.1 christos
5273 1.1 christos // If the compiler admits that it is not ready for C++14, why torture it?
5274 1.1 christos // Hopefully, this will speed up the test.
5275 1.1 christos
5276 1.1 christos #ifndef __cplusplus
5277 1.1 christos
5278 1.1 christos #error "This is not a C++ compiler"
5279 1.1 christos
5280 1.1 christos #elif __cplusplus < 201402L
5281 1.1 christos
5282 1.1 christos #error "This is not a C++14 compiler"
5283 1.1 christos
5284 1.1 christos #else
5285 1.1 christos
5286 1.1 christos namespace cxx14
5287 1.1 christos {
5288 1.1 christos
5289 1.1 christos namespace test_polymorphic_lambdas
5290 1.1 christos {
5291 1.1 christos
5292 1.1 christos int
5293 1.1 christos test()
5294 1.1 christos {
5295 1.1 christos const auto lambda = [](auto&&... args){
5296 1.1 christos const auto istiny = [](auto x){
5297 1.1 christos return (sizeof(x) == 1UL) ? 1 : 0;
5298 1.1 christos };
5299 1.1 christos const int aretiny[] = { istiny(args)... };
5300 1.1 christos return aretiny[0];
5301 1.1 christos };
5302 1.1 christos return lambda(1, 1L, 1.0f, '1');
5303 1.1 christos }
5304 1.1 christos
5305 1.1 christos }
5306 1.1 christos
5307 1.1 christos namespace test_binary_literals
5308 1.1 christos {
5309 1.1 christos
5310 1.1 christos constexpr auto ivii = 0b0000000000101010;
5311 1.1 christos static_assert(ivii == 42, "wrong value");
5312 1.1 christos
5313 1.1 christos }
5314 1.1 christos
5315 1.1 christos namespace test_generalized_constexpr
5316 1.1 christos {
5317 1.1 christos
5318 1.1 christos template < typename CharT >
5319 1.1 christos constexpr unsigned long
5320 1.1 christos strlen_c(const CharT *const s) noexcept
5321 1.1 christos {
5322 1.1 christos auto length = 0UL;
5323 1.1 christos for (auto p = s; *p; ++p)
5324 1.1 christos ++length;
5325 1.1 christos return length;
5326 1.1 christos }
5327 1.1 christos
5328 1.1 christos static_assert(strlen_c("") == 0UL, "");
5329 1.1 christos static_assert(strlen_c("x") == 1UL, "");
5330 1.1 christos static_assert(strlen_c("test") == 4UL, "");
5331 1.1 christos static_assert(strlen_c("another\0test") == 7UL, "");
5332 1.1 christos
5333 1.1 christos }
5334 1.1 christos
5335 1.1 christos namespace test_lambda_init_capture
5336 1.1 christos {
5337 1.1 christos
5338 1.1 christos int
5339 1.1 christos test()
5340 1.1 christos {
5341 1.1 christos auto x = 0;
5342 1.1 christos const auto lambda1 = [a = x](int b){ return a + b; };
5343 1.1 christos const auto lambda2 = [a = lambda1(x)](){ return a; };
5344 1.1 christos return lambda2();
5345 1.1 christos }
5346 1.1 christos
5347 1.1 christos }
5348 1.1 christos
5349 1.1 christos namespace test_digit_seperators
5350 1.1 christos {
5351 1.1 christos
5352 1.1 christos constexpr auto ten_million = 100'000'000;
5353 1.1 christos static_assert(ten_million == 100000000, "");
5354 1.1 christos
5355 1.1 christos }
5356 1.1 christos
5357 1.1 christos namespace test_return_type_deduction
5358 1.1 christos {
5359 1.1 christos
5360 1.1 christos auto f(int& x) { return x; }
5361 1.1 christos decltype(auto) g(int& x) { return x; }
5362 1.1 christos
5363 1.1 christos template < typename T1, typename T2 >
5364 1.1 christos struct is_same
5365 1.1 christos {
5366 1.1 christos static constexpr auto value = false;
5367 1.1 christos };
5368 1.1 christos
5369 1.1 christos template < typename T >
5370 1.1 christos struct is_same<T, T>
5371 1.1 christos {
5372 1.1 christos static constexpr auto value = true;
5373 1.1 christos };
5374 1.1 christos
5375 1.1 christos int
5376 1.1 christos test()
5377 1.1 christos {
5378 1.1 christos auto x = 0;
5379 1.1 christos static_assert(is_same<int, decltype(f(x))>::value, "");
5380 1.1 christos static_assert(is_same<int&, decltype(g(x))>::value, "");
5381 1.1 christos return x;
5382 1.1 christos }
5383 1.1 christos
5384 1.1 christos }
5385 1.1 christos
5386 1.1 christos } // namespace cxx14
5387 1.1 christos
5388 1.1 christos #endif // __cplusplus >= 201402L
5389 1.1 christos
5390 1.1 christos
5391 1.1 christos
5392 1.1 christos _ACEOF
5393 1.1 christos if ac_fn_cxx_try_compile "$LINENO"; then :
5394 1.1 christos ax_cv_cxx_compile_cxx14=yes
5395 1.1 christos else
5396 1.1 christos ax_cv_cxx_compile_cxx14=no
5397 1.1 christos fi
5398 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399 1.1 christos fi
5400 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
5401 1.1 christos $as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
5402 1.1 christos if test x$ax_cv_cxx_compile_cxx14 = xyes; then
5403 1.1 christos ac_success=yes
5404 1.1 christos fi
5405 1.1 christos
5406 1.1 christos
5407 1.1 christos
5408 1.1 christos if test x$ac_success = xno; then
5409 1.1 christos for switch in -std=c++14 -std=c++0x +std=c++14 "-h std=c++14"; do
5410 1.1 christos cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
5411 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
5412 1.1 christos $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
5413 1.1 christos if eval \${$cachevar+:} false; then :
5414 1.1 christos $as_echo_n "(cached) " >&6
5415 1.1 christos else
5416 1.1 christos ac_save_CXX="$CXX"
5417 1.1 christos CXX="$CXX $switch"
5418 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 1.1 christos /* end confdefs.h. */
5420 1.1 christos
5421 1.1 christos
5422 1.1 christos // If the compiler admits that it is not ready for C++11, why torture it?
5423 1.1 christos // Hopefully, this will speed up the test.
5424 1.1 christos
5425 1.1 christos #ifndef __cplusplus
5426 1.1 christos
5427 1.1 christos #error "This is not a C++ compiler"
5428 1.1 christos
5429 1.1 christos #elif __cplusplus < 201103L
5430 1.1 christos
5431 1.1 christos #error "This is not a C++11 compiler"
5432 1.1 christos
5433 1.1 christos #else
5434 1.1 christos
5435 1.1 christos namespace cxx11
5436 1.1 christos {
5437 1.1 christos
5438 1.1 christos namespace test_static_assert
5439 1.1 christos {
5440 1.1 christos
5441 1.1 christos template <typename T>
5442 1.1 christos struct check
5443 1.1 christos {
5444 1.1 christos static_assert(sizeof(int) <= sizeof(T), "not big enough");
5445 1.1 christos };
5446 1.1 christos
5447 1.1 christos }
5448 1.1 christos
5449 1.1 christos namespace test_final_override
5450 1.1 christos {
5451 1.1 christos
5452 1.1 christos struct Base
5453 1.1 christos {
5454 1.1 christos virtual void f() {}
5455 1.1 christos };
5456 1.1 christos
5457 1.1 christos struct Derived : public Base
5458 1.1 christos {
5459 1.1 christos virtual void f() override {}
5460 1.1 christos };
5461 1.1 christos
5462 1.1 christos }
5463 1.1 christos
5464 1.1 christos namespace test_double_right_angle_brackets
5465 1.1 christos {
5466 1.1 christos
5467 1.1 christos template < typename T >
5468 1.1 christos struct check {};
5469 1.1 christos
5470 1.1 christos typedef check<void> single_type;
5471 1.1 christos typedef check<check<void>> double_type;
5472 1.1 christos typedef check<check<check<void>>> triple_type;
5473 1.1 christos typedef check<check<check<check<void>>>> quadruple_type;
5474 1.1 christos
5475 1.1 christos }
5476 1.1 christos
5477 1.1 christos namespace test_decltype
5478 1.1 christos {
5479 1.1 christos
5480 1.1 christos int
5481 1.1 christos f()
5482 1.1 christos {
5483 1.1 christos int a = 1;
5484 1.1 christos decltype(a) b = 2;
5485 1.1 christos return a + b;
5486 1.1 christos }
5487 1.1 christos
5488 1.1 christos }
5489 1.1 christos
5490 1.1 christos namespace test_type_deduction
5491 1.1 christos {
5492 1.1 christos
5493 1.1 christos template < typename T1, typename T2 >
5494 1.1 christos struct is_same
5495 1.1 christos {
5496 1.1 christos static const bool value = false;
5497 1.1 christos };
5498 1.1 christos
5499 1.1 christos template < typename T >
5500 1.1 christos struct is_same<T, T>
5501 1.1 christos {
5502 1.1 christos static const bool value = true;
5503 1.1 christos };
5504 1.1 christos
5505 1.1 christos template < typename T1, typename T2 >
5506 1.1 christos auto
5507 1.1 christos add(T1 a1, T2 a2) -> decltype(a1 + a2)
5508 1.1 christos {
5509 1.1 christos return a1 + a2;
5510 1.1 christos }
5511 1.1 christos
5512 1.1 christos int
5513 1.1 christos test(const int c, volatile int v)
5514 1.1 christos {
5515 1.1 christos static_assert(is_same<int, decltype(0)>::value == true, "");
5516 1.1 christos static_assert(is_same<int, decltype(c)>::value == false, "");
5517 1.1 christos static_assert(is_same<int, decltype(v)>::value == false, "");
5518 1.1 christos auto ac = c;
5519 1.1 christos auto av = v;
5520 1.1 christos auto sumi = ac + av + 'x';
5521 1.1 christos auto sumf = ac + av + 1.0;
5522 1.1 christos static_assert(is_same<int, decltype(ac)>::value == true, "");
5523 1.1 christos static_assert(is_same<int, decltype(av)>::value == true, "");
5524 1.1 christos static_assert(is_same<int, decltype(sumi)>::value == true, "");
5525 1.1 christos static_assert(is_same<int, decltype(sumf)>::value == false, "");
5526 1.1 christos static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5527 1.1 christos return (sumf > 0.0) ? sumi : add(c, v);
5528 1.1 christos }
5529 1.1 christos
5530 1.1 christos }
5531 1.1 christos
5532 1.1 christos namespace test_noexcept
5533 1.1 christos {
5534 1.1 christos
5535 1.1 christos int f() { return 0; }
5536 1.1 christos int g() noexcept { return 0; }
5537 1.1 christos
5538 1.1 christos static_assert(noexcept(f()) == false, "");
5539 1.1 christos static_assert(noexcept(g()) == true, "");
5540 1.1 christos
5541 1.1 christos }
5542 1.1 christos
5543 1.1 christos namespace test_constexpr
5544 1.1 christos {
5545 1.1 christos
5546 1.1 christos template < typename CharT >
5547 1.1 christos unsigned long constexpr
5548 1.1 christos strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5549 1.1 christos {
5550 1.1 christos return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5551 1.1 christos }
5552 1.1 christos
5553 1.1 christos template < typename CharT >
5554 1.1 christos unsigned long constexpr
5555 1.1 christos strlen_c(const CharT *const s) noexcept
5556 1.1 christos {
5557 1.1 christos return strlen_c_r(s, 0UL);
5558 1.1 christos }
5559 1.1 christos
5560 1.1 christos static_assert(strlen_c("") == 0UL, "");
5561 1.1 christos static_assert(strlen_c("1") == 1UL, "");
5562 1.1 christos static_assert(strlen_c("example") == 7UL, "");
5563 1.1 christos static_assert(strlen_c("another\0example") == 7UL, "");
5564 1.1 christos
5565 1.1 christos }
5566 1.1 christos
5567 1.1 christos namespace test_rvalue_references
5568 1.1 christos {
5569 1.1 christos
5570 1.1 christos template < int N >
5571 1.1 christos struct answer
5572 1.1 christos {
5573 1.1 christos static constexpr int value = N;
5574 1.1 christos };
5575 1.1 christos
5576 1.1 christos answer<1> f(int&) { return answer<1>(); }
5577 1.1 christos answer<2> f(const int&) { return answer<2>(); }
5578 1.1 christos answer<3> f(int&&) { return answer<3>(); }
5579 1.1 christos
5580 1.1 christos void
5581 1.1 christos test()
5582 1.1 christos {
5583 1.1 christos int i = 0;
5584 1.1 christos const int c = 0;
5585 1.1 christos static_assert(decltype(f(i))::value == 1, "");
5586 1.1 christos static_assert(decltype(f(c))::value == 2, "");
5587 1.1 christos static_assert(decltype(f(0))::value == 3, "");
5588 1.1 christos }
5589 1.1 christos
5590 1.1 christos }
5591 1.1 christos
5592 1.1 christos namespace test_uniform_initialization
5593 1.1 christos {
5594 1.1 christos
5595 1.1 christos struct test
5596 1.1 christos {
5597 1.1 christos static const int zero {};
5598 1.1 christos static const int one {1};
5599 1.1 christos };
5600 1.1 christos
5601 1.1 christos static_assert(test::zero == 0, "");
5602 1.1 christos static_assert(test::one == 1, "");
5603 1.1 christos
5604 1.1 christos }
5605 1.1 christos
5606 1.1 christos namespace test_lambdas
5607 1.1 christos {
5608 1.1 christos
5609 1.1 christos void
5610 1.1 christos test1()
5611 1.1 christos {
5612 1.1 christos auto lambda1 = [](){};
5613 1.1 christos auto lambda2 = lambda1;
5614 1.1 christos lambda1();
5615 1.1 christos lambda2();
5616 1.1 christos }
5617 1.1 christos
5618 1.1 christos int
5619 1.1 christos test2()
5620 1.1 christos {
5621 1.1 christos auto a = [](int i, int j){ return i + j; }(1, 2);
5622 1.1 christos auto b = []() -> int { return '0'; }();
5623 1.1 christos auto c = [=](){ return a + b; }();
5624 1.1 christos auto d = [&](){ return c; }();
5625 1.1 christos auto e = [a, &b](int x) mutable {
5626 1.1 christos const auto identity = [](int y){ return y; };
5627 1.1 christos for (auto i = 0; i < a; ++i)
5628 1.1 christos a += b--;
5629 1.1 christos return x + identity(a + b);
5630 1.1 christos }(0);
5631 1.1 christos return a + b + c + d + e;
5632 1.1 christos }
5633 1.1 christos
5634 1.1 christos int
5635 1.1 christos test3()
5636 1.1 christos {
5637 1.1 christos const auto nullary = [](){ return 0; };
5638 1.1 christos const auto unary = [](int x){ return x; };
5639 1.1 christos using nullary_t = decltype(nullary);
5640 1.1 christos using unary_t = decltype(unary);
5641 1.1 christos const auto higher1st = [](nullary_t f){ return f(); };
5642 1.1 christos const auto higher2nd = [unary](nullary_t f1){
5643 1.1 christos return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5644 1.1 christos };
5645 1.1 christos return higher1st(nullary) + higher2nd(nullary)(unary);
5646 1.1 christos }
5647 1.1 christos
5648 1.1 christos }
5649 1.1 christos
5650 1.1 christos namespace test_variadic_templates
5651 1.1 christos {
5652 1.1 christos
5653 1.1 christos template <int...>
5654 1.1 christos struct sum;
5655 1.1 christos
5656 1.1 christos template <int N0, int... N1toN>
5657 1.1 christos struct sum<N0, N1toN...>
5658 1.1 christos {
5659 1.1 christos static constexpr auto value = N0 + sum<N1toN...>::value;
5660 1.1 christos };
5661 1.1 christos
5662 1.1 christos template <>
5663 1.1 christos struct sum<>
5664 1.1 christos {
5665 1.1 christos static constexpr auto value = 0;
5666 1.1 christos };
5667 1.1 christos
5668 1.1 christos static_assert(sum<>::value == 0, "");
5669 1.1 christos static_assert(sum<1>::value == 1, "");
5670 1.1 christos static_assert(sum<23>::value == 23, "");
5671 1.1 christos static_assert(sum<1, 2>::value == 3, "");
5672 1.1 christos static_assert(sum<5, 5, 11>::value == 21, "");
5673 1.1 christos static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5674 1.1 christos
5675 1.1 christos }
5676 1.1 christos
5677 1.1 christos // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5678 1.1 christos // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5679 1.1 christos // because of this.
5680 1.1 christos namespace test_template_alias_sfinae
5681 1.1 christos {
5682 1.1 christos
5683 1.1 christos struct foo {};
5684 1.1 christos
5685 1.1 christos template<typename T>
5686 1.1 christos using member = typename T::member_type;
5687 1.1 christos
5688 1.1 christos template<typename T>
5689 1.1 christos void func(...) {}
5690 1.1 christos
5691 1.1 christos template<typename T>
5692 1.1 christos void func(member<T>*) {}
5693 1.1 christos
5694 1.1 christos void test();
5695 1.1 christos
5696 1.1 christos void test() { func<foo>(0); }
5697 1.1 christos
5698 1.1 christos }
5699 1.1 christos
5700 1.1 christos } // namespace cxx11
5701 1.1 christos
5702 1.1 christos #endif // __cplusplus >= 201103L
5703 1.1 christos
5704 1.1 christos
5705 1.1 christos
5706 1.1 christos
5707 1.1 christos // If the compiler admits that it is not ready for C++14, why torture it?
5708 1.1 christos // Hopefully, this will speed up the test.
5709 1.1 christos
5710 1.1 christos #ifndef __cplusplus
5711 1.1 christos
5712 1.1 christos #error "This is not a C++ compiler"
5713 1.1 christos
5714 1.1 christos #elif __cplusplus < 201402L
5715 1.1 christos
5716 1.1 christos #error "This is not a C++14 compiler"
5717 1.1 christos
5718 1.1 christos #else
5719 1.1 christos
5720 1.1 christos namespace cxx14
5721 1.1 christos {
5722 1.1 christos
5723 1.1 christos namespace test_polymorphic_lambdas
5724 1.1 christos {
5725 1.1 christos
5726 1.1 christos int
5727 1.1 christos test()
5728 1.1 christos {
5729 1.1 christos const auto lambda = [](auto&&... args){
5730 1.1 christos const auto istiny = [](auto x){
5731 1.1 christos return (sizeof(x) == 1UL) ? 1 : 0;
5732 1.1 christos };
5733 1.1 christos const int aretiny[] = { istiny(args)... };
5734 1.1 christos return aretiny[0];
5735 1.1 christos };
5736 1.1 christos return lambda(1, 1L, 1.0f, '1');
5737 1.1 christos }
5738 1.1 christos
5739 1.1 christos }
5740 1.1 christos
5741 1.1 christos namespace test_binary_literals
5742 1.1 christos {
5743 1.1 christos
5744 1.1 christos constexpr auto ivii = 0b0000000000101010;
5745 1.1 christos static_assert(ivii == 42, "wrong value");
5746 1.1 christos
5747 1.1 christos }
5748 1.1 christos
5749 1.1 christos namespace test_generalized_constexpr
5750 1.1 christos {
5751 1.1 christos
5752 1.1 christos template < typename CharT >
5753 1.1 christos constexpr unsigned long
5754 1.1 christos strlen_c(const CharT *const s) noexcept
5755 1.1 christos {
5756 1.1 christos auto length = 0UL;
5757 1.1 christos for (auto p = s; *p; ++p)
5758 1.1 christos ++length;
5759 1.1 christos return length;
5760 1.1 christos }
5761 1.1 christos
5762 1.1 christos static_assert(strlen_c("") == 0UL, "");
5763 1.1 christos static_assert(strlen_c("x") == 1UL, "");
5764 1.1 christos static_assert(strlen_c("test") == 4UL, "");
5765 1.1 christos static_assert(strlen_c("another\0test") == 7UL, "");
5766 1.1 christos
5767 1.1 christos }
5768 1.1 christos
5769 1.1 christos namespace test_lambda_init_capture
5770 1.1 christos {
5771 1.1 christos
5772 1.1 christos int
5773 1.1 christos test()
5774 1.1 christos {
5775 1.1 christos auto x = 0;
5776 1.1 christos const auto lambda1 = [a = x](int b){ return a + b; };
5777 1.1 christos const auto lambda2 = [a = lambda1(x)](){ return a; };
5778 1.1 christos return lambda2();
5779 1.1 christos }
5780 1.1 christos
5781 1.1 christos }
5782 1.1 christos
5783 1.1 christos namespace test_digit_seperators
5784 1.1 christos {
5785 1.1 christos
5786 1.1 christos constexpr auto ten_million = 100'000'000;
5787 1.1 christos static_assert(ten_million == 100000000, "");
5788 1.1 christos
5789 1.1 christos }
5790 1.1 christos
5791 1.1 christos namespace test_return_type_deduction
5792 1.1 christos {
5793 1.1 christos
5794 1.1 christos auto f(int& x) { return x; }
5795 1.1 christos decltype(auto) g(int& x) { return x; }
5796 1.1 christos
5797 1.1 christos template < typename T1, typename T2 >
5798 1.1 christos struct is_same
5799 1.1 christos {
5800 1.1 christos static constexpr auto value = false;
5801 1.1 christos };
5802 1.1 christos
5803 1.1 christos template < typename T >
5804 1.1 christos struct is_same<T, T>
5805 1.1 christos {
5806 1.1 christos static constexpr auto value = true;
5807 1.1 christos };
5808 1.1 christos
5809 1.1 christos int
5810 1.1 christos test()
5811 1.1 christos {
5812 1.1 christos auto x = 0;
5813 1.1 christos static_assert(is_same<int, decltype(f(x))>::value, "");
5814 1.1 christos static_assert(is_same<int&, decltype(g(x))>::value, "");
5815 1.1 christos return x;
5816 1.1 christos }
5817 1.1 christos
5818 1.1 christos }
5819 1.1 christos
5820 1.1 christos } // namespace cxx14
5821 1.1 christos
5822 1.1 christos #endif // __cplusplus >= 201402L
5823 1.1 christos
5824 1.1 christos
5825 1.1 christos
5826 1.1 christos _ACEOF
5827 1.1 christos if ac_fn_cxx_try_compile "$LINENO"; then :
5828 1.1 christos eval $cachevar=yes
5829 1.1 christos else
5830 1.1 christos eval $cachevar=no
5831 1.1 christos fi
5832 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833 1.1 christos CXX="$ac_save_CXX"
5834 1.1 christos fi
5835 1.1 christos eval ac_res=\$$cachevar
5836 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5837 1.1 christos $as_echo "$ac_res" >&6; }
5838 1.1 christos if eval test x\$$cachevar = xyes; then
5839 1.1 christos CXX="$CXX $switch"
5840 1.1 christos if test -n "$CXXCPP" ; then
5841 1.1 christos CXXCPP="$CXXCPP $switch"
5842 1.1 christos fi
5843 1.1 christos ac_success=yes
5844 1.1 christos break
5845 1.1 christos fi
5846 1.1 christos done
5847 1.1 christos fi
5848 1.1 christos ac_ext=c
5849 1.1 christos ac_cpp='$CPP $CPPFLAGS'
5850 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
5853 1.1 christos
5854 1.1 christos if test x$ax_cxx_compile_cxx14_required = xtrue; then
5855 1.1 christos if test x$ac_success = xno; then
5856 1.1 christos as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
5857 1.1 christos fi
5858 1.1 christos fi
5859 1.1 christos if test x$ac_success = xno; then
5860 1.1 christos HAVE_CXX14=0
5861 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
5862 1.1 christos $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
5863 1.1 christos else
5864 1.1 christos HAVE_CXX14=1
5865 1.1 christos
5866 1.1 christos $as_echo "#define HAVE_CXX14 1" >>confdefs.h
5867 1.1 christos
5868 1.1 christos fi
5869 1.1 christos
5870 1.1 christos
5871 1.1 christos if test "x${HAVE_CXX14}" = "x1" ; then
5872 1.1 christos
5873 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wall" >&5
5874 1.1 christos $as_echo_n "checking whether compiler supports -Wall... " >&6; }
5875 1.1 christos T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
5876 1.1 christos T_APPEND_V=-Wall
5877 1.1 christos if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5878 1.1 christos CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
5879 1.1 christos else
5880 1.1 christos CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
5881 1.1 christos fi
5882 1.1 christos
5883 1.1 christos
5884 1.1 christos if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
5885 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
5886 1.1 christos else
5887 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
5888 1.1 christos fi
5889 1.1 christos
5890 1.1 christos ac_ext=cpp
5891 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
5892 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5893 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5894 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5895 1.1 christos
5896 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 1.1 christos /* end confdefs.h. */
5898 1.1 christos
5899 1.1 christos
5900 1.1 christos int
5901 1.1 christos main ()
5902 1.1 christos {
5903 1.1 christos
5904 1.1 christos return 0;
5905 1.1 christos
5906 1.1 christos ;
5907 1.1 christos return 0;
5908 1.1 christos }
5909 1.1 christos _ACEOF
5910 1.1 christos if ac_fn_cxx_try_compile "$LINENO"; then :
5911 1.1 christos je_cv_cxxflags_added=-Wall
5912 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5913 1.1 christos $as_echo "yes" >&6; }
5914 1.1 christos else
5915 1.1 christos je_cv_cxxflags_added=
5916 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 1.1 christos $as_echo "no" >&6; }
5918 1.1 christos CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
5919 1.1 christos
5920 1.1 christos fi
5921 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922 1.1 christos ac_ext=c
5923 1.1 christos ac_cpp='$CPP $CPPFLAGS'
5924 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
5927 1.1 christos
5928 1.1 christos if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
5929 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
5930 1.1 christos else
5931 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
5932 1.1 christos fi
5933 1.1 christos
5934 1.1 christos
5935 1.1 christos
5936 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -g3" >&5
5937 1.1 christos $as_echo_n "checking whether compiler supports -g3... " >&6; }
5938 1.1 christos T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
5939 1.1 christos T_APPEND_V=-g3
5940 1.1 christos if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
5941 1.1 christos CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
5942 1.1 christos else
5943 1.1 christos CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
5944 1.1 christos fi
5945 1.1 christos
5946 1.1 christos
5947 1.1 christos if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
5948 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
5949 1.1 christos else
5950 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
5951 1.1 christos fi
5952 1.1 christos
5953 1.1 christos ac_ext=cpp
5954 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
5955 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5956 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5957 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5958 1.1 christos
5959 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960 1.1 christos /* end confdefs.h. */
5961 1.1 christos
5962 1.1 christos
5963 1.1 christos int
5964 1.1 christos main ()
5965 1.1 christos {
5966 1.1 christos
5967 1.1 christos return 0;
5968 1.1 christos
5969 1.1 christos ;
5970 1.1 christos return 0;
5971 1.1 christos }
5972 1.1 christos _ACEOF
5973 1.1 christos if ac_fn_cxx_try_compile "$LINENO"; then :
5974 1.1 christos je_cv_cxxflags_added=-g3
5975 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5976 1.1 christos $as_echo "yes" >&6; }
5977 1.1 christos else
5978 1.1 christos je_cv_cxxflags_added=
5979 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 1.1 christos $as_echo "no" >&6; }
5981 1.1 christos CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
5982 1.1 christos
5983 1.1 christos fi
5984 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985 1.1 christos ac_ext=c
5986 1.1 christos ac_cpp='$CPP $CPPFLAGS'
5987 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5988 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5989 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
5990 1.1 christos
5991 1.1 christos if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
5992 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
5993 1.1 christos else
5994 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
5995 1.1 christos fi
5996 1.1 christos
5997 1.1 christos
5998 1.1 christos
5999 1.1 christos SAVED_LIBS="${LIBS}"
6000 1.1 christos T_APPEND_V=-lstdc++
6001 1.1 christos if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6002 1.1 christos LIBS="${LIBS}${T_APPEND_V}"
6003 1.1 christos else
6004 1.1 christos LIBS="${LIBS} ${T_APPEND_V}"
6005 1.1 christos fi
6006 1.1 christos
6007 1.1 christos
6008 1.1 christos
6009 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libstdc++ linkage is compilable" >&5
6010 1.1 christos $as_echo_n "checking whether libstdc++ linkage is compilable... " >&6; }
6011 1.1 christos if ${je_cv_libstdcxx+:} false; then :
6012 1.1 christos $as_echo_n "(cached) " >&6
6013 1.1 christos else
6014 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 1.1 christos /* end confdefs.h. */
6016 1.1 christos
6017 1.1 christos #include <stdlib.h>
6018 1.1 christos
6019 1.1 christos int
6020 1.1 christos main ()
6021 1.1 christos {
6022 1.1 christos
6023 1.1 christos int *arr = (int *)malloc(sizeof(int) * 42);
6024 1.1 christos if (arr == NULL)
6025 1.1 christos return 1;
6026 1.1 christos
6027 1.1 christos ;
6028 1.1 christos return 0;
6029 1.1 christos }
6030 1.1 christos _ACEOF
6031 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
6032 1.1 christos je_cv_libstdcxx=yes
6033 1.1 christos else
6034 1.1 christos je_cv_libstdcxx=no
6035 1.1 christos fi
6036 1.1 christos rm -f core conftest.err conftest.$ac_objext \
6037 1.1 christos conftest$ac_exeext conftest.$ac_ext
6038 1.1 christos fi
6039 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_libstdcxx" >&5
6040 1.1 christos $as_echo "$je_cv_libstdcxx" >&6; }
6041 1.1 christos
6042 1.1 christos if test "x${je_cv_libstdcxx}" = "xno" ; then
6043 1.1 christos LIBS="${SAVED_LIBS}"
6044 1.1 christos fi
6045 1.1 christos else
6046 1.1 christos enable_cxx="0"
6047 1.1 christos fi
6048 1.1 christos fi
6049 1.1 christos
6050 1.1 christos
6051 1.1 christos
6052 1.1 christos
6053 1.1 christos
6054 1.1 christos
6055 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6056 1.1 christos $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6057 1.1 christos if ${ac_cv_path_GREP+:} false; then :
6058 1.1 christos $as_echo_n "(cached) " >&6
6059 1.1 christos else
6060 1.1 christos if test -z "$GREP"; then
6061 1.1 christos ac_path_GREP_found=false
6062 1.1 christos # Loop through the user's path and test for each of PROGNAME-LIST
6063 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 1.1 christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6065 1.1 christos do
6066 1.1 christos IFS=$as_save_IFS
6067 1.1 christos test -z "$as_dir" && as_dir=.
6068 1.1 christos for ac_prog in grep ggrep; do
6069 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
6070 1.1 christos ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6071 1.1 christos as_fn_executable_p "$ac_path_GREP" || continue
6072 1.1 christos # Check for GNU ac_path_GREP and select it if it is found.
6073 1.1 christos # Check for GNU $ac_path_GREP
6074 1.1 christos case `"$ac_path_GREP" --version 2>&1` in
6075 1.1 christos *GNU*)
6076 1.1 christos ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6077 1.1 christos *)
6078 1.1 christos ac_count=0
6079 1.1 christos $as_echo_n 0123456789 >"conftest.in"
6080 1.1 christos while :
6081 1.1 christos do
6082 1.1 christos cat "conftest.in" "conftest.in" >"conftest.tmp"
6083 1.1 christos mv "conftest.tmp" "conftest.in"
6084 1.1 christos cp "conftest.in" "conftest.nl"
6085 1.1 christos $as_echo 'GREP' >> "conftest.nl"
6086 1.1 christos "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6087 1.1 christos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6088 1.1 christos as_fn_arith $ac_count + 1 && ac_count=$as_val
6089 1.1 christos if test $ac_count -gt ${ac_path_GREP_max-0}; then
6090 1.1 christos # Best one so far, save it but keep looking for a better one
6091 1.1 christos ac_cv_path_GREP="$ac_path_GREP"
6092 1.1 christos ac_path_GREP_max=$ac_count
6093 1.1 christos fi
6094 1.1 christos # 10*(2^10) chars as input seems more than enough
6095 1.1 christos test $ac_count -gt 10 && break
6096 1.1 christos done
6097 1.1 christos rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6098 1.1 christos esac
6099 1.1 christos
6100 1.1 christos $ac_path_GREP_found && break 3
6101 1.1 christos done
6102 1.1 christos done
6103 1.1 christos done
6104 1.1 christos IFS=$as_save_IFS
6105 1.1 christos if test -z "$ac_cv_path_GREP"; then
6106 1.1 christos as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6107 1.1 christos fi
6108 1.1 christos else
6109 1.1 christos ac_cv_path_GREP=$GREP
6110 1.1 christos fi
6111 1.1 christos
6112 1.1 christos fi
6113 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6114 1.1 christos $as_echo "$ac_cv_path_GREP" >&6; }
6115 1.1 christos GREP="$ac_cv_path_GREP"
6116 1.1 christos
6117 1.1 christos
6118 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6119 1.1 christos $as_echo_n "checking for egrep... " >&6; }
6120 1.1 christos if ${ac_cv_path_EGREP+:} false; then :
6121 1.1 christos $as_echo_n "(cached) " >&6
6122 1.1 christos else
6123 1.1 christos if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6124 1.1 christos then ac_cv_path_EGREP="$GREP -E"
6125 1.1 christos else
6126 1.1 christos if test -z "$EGREP"; then
6127 1.1 christos ac_path_EGREP_found=false
6128 1.1 christos # Loop through the user's path and test for each of PROGNAME-LIST
6129 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 1.1 christos for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6131 1.1 christos do
6132 1.1 christos IFS=$as_save_IFS
6133 1.1 christos test -z "$as_dir" && as_dir=.
6134 1.1 christos for ac_prog in egrep; do
6135 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
6136 1.1 christos ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6137 1.1 christos as_fn_executable_p "$ac_path_EGREP" || continue
6138 1.1 christos # Check for GNU ac_path_EGREP and select it if it is found.
6139 1.1 christos # Check for GNU $ac_path_EGREP
6140 1.1 christos case `"$ac_path_EGREP" --version 2>&1` in
6141 1.1 christos *GNU*)
6142 1.1 christos ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6143 1.1 christos *)
6144 1.1 christos ac_count=0
6145 1.1 christos $as_echo_n 0123456789 >"conftest.in"
6146 1.1 christos while :
6147 1.1 christos do
6148 1.1 christos cat "conftest.in" "conftest.in" >"conftest.tmp"
6149 1.1 christos mv "conftest.tmp" "conftest.in"
6150 1.1 christos cp "conftest.in" "conftest.nl"
6151 1.1 christos $as_echo 'EGREP' >> "conftest.nl"
6152 1.1 christos "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6153 1.1 christos diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6154 1.1 christos as_fn_arith $ac_count + 1 && ac_count=$as_val
6155 1.1 christos if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6156 1.1 christos # Best one so far, save it but keep looking for a better one
6157 1.1 christos ac_cv_path_EGREP="$ac_path_EGREP"
6158 1.1 christos ac_path_EGREP_max=$ac_count
6159 1.1 christos fi
6160 1.1 christos # 10*(2^10) chars as input seems more than enough
6161 1.1 christos test $ac_count -gt 10 && break
6162 1.1 christos done
6163 1.1 christos rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6164 1.1 christos esac
6165 1.1 christos
6166 1.1 christos $ac_path_EGREP_found && break 3
6167 1.1 christos done
6168 1.1 christos done
6169 1.1 christos done
6170 1.1 christos IFS=$as_save_IFS
6171 1.1 christos if test -z "$ac_cv_path_EGREP"; then
6172 1.1 christos as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6173 1.1 christos fi
6174 1.1 christos else
6175 1.1 christos ac_cv_path_EGREP=$EGREP
6176 1.1 christos fi
6177 1.1 christos
6178 1.1 christos fi
6179 1.1 christos fi
6180 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6181 1.1 christos $as_echo "$ac_cv_path_EGREP" >&6; }
6182 1.1 christos EGREP="$ac_cv_path_EGREP"
6183 1.1 christos
6184 1.1 christos
6185 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6186 1.1 christos $as_echo_n "checking for ANSI C header files... " >&6; }
6187 1.1 christos if ${ac_cv_header_stdc+:} false; then :
6188 1.1 christos $as_echo_n "(cached) " >&6
6189 1.1 christos else
6190 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 1.1 christos /* end confdefs.h. */
6192 1.1 christos #include <stdlib.h>
6193 1.1 christos #include <stdarg.h>
6194 1.1 christos #include <string.h>
6195 1.1 christos #include <float.h>
6196 1.1 christos
6197 1.1 christos int
6198 1.1 christos main ()
6199 1.1 christos {
6200 1.1 christos
6201 1.1 christos ;
6202 1.1 christos return 0;
6203 1.1 christos }
6204 1.1 christos _ACEOF
6205 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
6206 1.1 christos ac_cv_header_stdc=yes
6207 1.1 christos else
6208 1.1 christos ac_cv_header_stdc=no
6209 1.1 christos fi
6210 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211 1.1 christos
6212 1.1 christos if test $ac_cv_header_stdc = yes; then
6213 1.1 christos # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6214 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215 1.1 christos /* end confdefs.h. */
6216 1.1 christos #include <string.h>
6217 1.1 christos
6218 1.1 christos _ACEOF
6219 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6220 1.1 christos $EGREP "memchr" >/dev/null 2>&1; then :
6221 1.1 christos
6222 1.1 christos else
6223 1.1 christos ac_cv_header_stdc=no
6224 1.1 christos fi
6225 1.1 christos rm -f conftest*
6226 1.1 christos
6227 1.1 christos fi
6228 1.1 christos
6229 1.1 christos if test $ac_cv_header_stdc = yes; then
6230 1.1 christos # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6231 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 1.1 christos /* end confdefs.h. */
6233 1.1 christos #include <stdlib.h>
6234 1.1 christos
6235 1.1 christos _ACEOF
6236 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6237 1.1 christos $EGREP "free" >/dev/null 2>&1; then :
6238 1.1 christos
6239 1.1 christos else
6240 1.1 christos ac_cv_header_stdc=no
6241 1.1 christos fi
6242 1.1 christos rm -f conftest*
6243 1.1 christos
6244 1.1 christos fi
6245 1.1 christos
6246 1.1 christos if test $ac_cv_header_stdc = yes; then
6247 1.1 christos # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6248 1.1 christos if test "$cross_compiling" = yes; then :
6249 1.1 christos :
6250 1.1 christos else
6251 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 1.1 christos /* end confdefs.h. */
6253 1.1 christos #include <ctype.h>
6254 1.1 christos #include <stdlib.h>
6255 1.1 christos #if ((' ' & 0x0FF) == 0x020)
6256 1.1 christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6257 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6258 1.1 christos #else
6259 1.1 christos # define ISLOWER(c) \
6260 1.1 christos (('a' <= (c) && (c) <= 'i') \
6261 1.1 christos || ('j' <= (c) && (c) <= 'r') \
6262 1.1 christos || ('s' <= (c) && (c) <= 'z'))
6263 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6264 1.1 christos #endif
6265 1.1 christos
6266 1.1 christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6267 1.1 christos int
6268 1.1 christos main ()
6269 1.1 christos {
6270 1.1 christos int i;
6271 1.1 christos for (i = 0; i < 256; i++)
6272 1.1 christos if (XOR (islower (i), ISLOWER (i))
6273 1.1 christos || toupper (i) != TOUPPER (i))
6274 1.1 christos return 2;
6275 1.1 christos return 0;
6276 1.1 christos }
6277 1.1 christos _ACEOF
6278 1.1 christos if ac_fn_c_try_run "$LINENO"; then :
6279 1.1 christos
6280 1.1 christos else
6281 1.1 christos ac_cv_header_stdc=no
6282 1.1 christos fi
6283 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6284 1.1 christos conftest.$ac_objext conftest.beam conftest.$ac_ext
6285 1.1 christos fi
6286 1.1 christos
6287 1.1 christos fi
6288 1.1 christos fi
6289 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6290 1.1 christos $as_echo "$ac_cv_header_stdc" >&6; }
6291 1.1 christos if test $ac_cv_header_stdc = yes; then
6292 1.1 christos
6293 1.1 christos $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6294 1.1 christos
6295 1.1 christos fi
6296 1.1 christos
6297 1.1 christos # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6298 1.1 christos for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6299 1.1 christos inttypes.h stdint.h unistd.h
6300 1.1 christos do :
6301 1.1 christos as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6302 1.1 christos ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6303 1.1 christos "
6304 1.1 christos if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6305 1.1 christos cat >>confdefs.h <<_ACEOF
6306 1.1 christos #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6307 1.1 christos _ACEOF
6308 1.1 christos
6309 1.1 christos fi
6310 1.1 christos
6311 1.1 christos done
6312 1.1 christos
6313 1.1 christos
6314 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6315 1.1 christos $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6316 1.1 christos if ${ac_cv_c_bigendian+:} false; then :
6317 1.1 christos $as_echo_n "(cached) " >&6
6318 1.1 christos else
6319 1.1 christos ac_cv_c_bigendian=unknown
6320 1.1 christos # See if we're dealing with a universal compiler.
6321 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322 1.1 christos /* end confdefs.h. */
6323 1.1 christos #ifndef __APPLE_CC__
6324 1.1 christos not a universal capable compiler
6325 1.1 christos #endif
6326 1.1 christos typedef int dummy;
6327 1.1 christos
6328 1.1 christos _ACEOF
6329 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
6330 1.1 christos
6331 1.1 christos # Check for potential -arch flags. It is not universal unless
6332 1.1 christos # there are at least two -arch flags with different values.
6333 1.1 christos ac_arch=
6334 1.1 christos ac_prev=
6335 1.1 christos for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6336 1.1 christos if test -n "$ac_prev"; then
6337 1.1 christos case $ac_word in
6338 1.1 christos i?86 | x86_64 | ppc | ppc64)
6339 1.1 christos if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6340 1.1 christos ac_arch=$ac_word
6341 1.1 christos else
6342 1.1 christos ac_cv_c_bigendian=universal
6343 1.1 christos break
6344 1.1 christos fi
6345 1.1 christos ;;
6346 1.1 christos esac
6347 1.1 christos ac_prev=
6348 1.1 christos elif test "x$ac_word" = "x-arch"; then
6349 1.1 christos ac_prev=arch
6350 1.1 christos fi
6351 1.1 christos done
6352 1.1 christos fi
6353 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 1.1 christos if test $ac_cv_c_bigendian = unknown; then
6355 1.1 christos # See if sys/param.h defines the BYTE_ORDER macro.
6356 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 1.1 christos /* end confdefs.h. */
6358 1.1 christos #include <sys/types.h>
6359 1.1 christos #include <sys/param.h>
6360 1.1 christos
6361 1.1 christos int
6362 1.1 christos main ()
6363 1.1 christos {
6364 1.1 christos #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6365 1.1 christos && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6366 1.1 christos && LITTLE_ENDIAN)
6367 1.1 christos bogus endian macros
6368 1.1 christos #endif
6369 1.1 christos
6370 1.1 christos ;
6371 1.1 christos return 0;
6372 1.1 christos }
6373 1.1 christos _ACEOF
6374 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
6375 1.1 christos # It does; now see whether it defined to BIG_ENDIAN or not.
6376 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 1.1 christos /* end confdefs.h. */
6378 1.1 christos #include <sys/types.h>
6379 1.1 christos #include <sys/param.h>
6380 1.1 christos
6381 1.1 christos int
6382 1.1 christos main ()
6383 1.1 christos {
6384 1.1 christos #if BYTE_ORDER != BIG_ENDIAN
6385 1.1 christos not big endian
6386 1.1 christos #endif
6387 1.1 christos
6388 1.1 christos ;
6389 1.1 christos return 0;
6390 1.1 christos }
6391 1.1 christos _ACEOF
6392 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
6393 1.1 christos ac_cv_c_bigendian=yes
6394 1.1 christos else
6395 1.1 christos ac_cv_c_bigendian=no
6396 1.1 christos fi
6397 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398 1.1 christos fi
6399 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400 1.1 christos fi
6401 1.1 christos if test $ac_cv_c_bigendian = unknown; then
6402 1.1 christos # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6403 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404 1.1 christos /* end confdefs.h. */
6405 1.1 christos #include <limits.h>
6406 1.1 christos
6407 1.1 christos int
6408 1.1 christos main ()
6409 1.1 christos {
6410 1.1 christos #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6411 1.1 christos bogus endian macros
6412 1.1 christos #endif
6413 1.1 christos
6414 1.1 christos ;
6415 1.1 christos return 0;
6416 1.1 christos }
6417 1.1 christos _ACEOF
6418 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
6419 1.1 christos # It does; now see whether it defined to _BIG_ENDIAN or not.
6420 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 1.1 christos /* end confdefs.h. */
6422 1.1 christos #include <limits.h>
6423 1.1 christos
6424 1.1 christos int
6425 1.1 christos main ()
6426 1.1 christos {
6427 1.1 christos #ifndef _BIG_ENDIAN
6428 1.1 christos not big endian
6429 1.1 christos #endif
6430 1.1 christos
6431 1.1 christos ;
6432 1.1 christos return 0;
6433 1.1 christos }
6434 1.1 christos _ACEOF
6435 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
6436 1.1 christos ac_cv_c_bigendian=yes
6437 1.1 christos else
6438 1.1 christos ac_cv_c_bigendian=no
6439 1.1 christos fi
6440 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441 1.1 christos fi
6442 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443 1.1 christos fi
6444 1.1 christos if test $ac_cv_c_bigendian = unknown; then
6445 1.1 christos # Compile a test program.
6446 1.1 christos if test "$cross_compiling" = yes; then :
6447 1.1 christos # Try to guess by grepping values from an object file.
6448 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449 1.1 christos /* end confdefs.h. */
6450 1.1 christos short int ascii_mm[] =
6451 1.1 christos { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6452 1.1 christos short int ascii_ii[] =
6453 1.1 christos { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6454 1.1 christos int use_ascii (int i) {
6455 1.1 christos return ascii_mm[i] + ascii_ii[i];
6456 1.1 christos }
6457 1.1 christos short int ebcdic_ii[] =
6458 1.1 christos { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6459 1.1 christos short int ebcdic_mm[] =
6460 1.1 christos { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6461 1.1 christos int use_ebcdic (int i) {
6462 1.1 christos return ebcdic_mm[i] + ebcdic_ii[i];
6463 1.1 christos }
6464 1.1 christos extern int foo;
6465 1.1 christos
6466 1.1 christos int
6467 1.1 christos main ()
6468 1.1 christos {
6469 1.1 christos return use_ascii (foo) == use_ebcdic (foo);
6470 1.1 christos ;
6471 1.1 christos return 0;
6472 1.1 christos }
6473 1.1 christos _ACEOF
6474 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
6475 1.1 christos if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6476 1.1 christos ac_cv_c_bigendian=yes
6477 1.1 christos fi
6478 1.1 christos if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6479 1.1 christos if test "$ac_cv_c_bigendian" = unknown; then
6480 1.1 christos ac_cv_c_bigendian=no
6481 1.1 christos else
6482 1.1 christos # finding both strings is unlikely to happen, but who knows?
6483 1.1 christos ac_cv_c_bigendian=unknown
6484 1.1 christos fi
6485 1.1 christos fi
6486 1.1 christos fi
6487 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488 1.1 christos else
6489 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 1.1 christos /* end confdefs.h. */
6491 1.1 christos $ac_includes_default
6492 1.1 christos int
6493 1.1 christos main ()
6494 1.1 christos {
6495 1.1 christos
6496 1.1 christos /* Are we little or big endian? From Harbison&Steele. */
6497 1.1 christos union
6498 1.1 christos {
6499 1.1 christos long int l;
6500 1.1 christos char c[sizeof (long int)];
6501 1.1 christos } u;
6502 1.1 christos u.l = 1;
6503 1.1 christos return u.c[sizeof (long int) - 1] == 1;
6504 1.1 christos
6505 1.1 christos ;
6506 1.1 christos return 0;
6507 1.1 christos }
6508 1.1 christos _ACEOF
6509 1.1 christos if ac_fn_c_try_run "$LINENO"; then :
6510 1.1 christos ac_cv_c_bigendian=no
6511 1.1 christos else
6512 1.1 christos ac_cv_c_bigendian=yes
6513 1.1 christos fi
6514 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6515 1.1 christos conftest.$ac_objext conftest.beam conftest.$ac_ext
6516 1.1 christos fi
6517 1.1 christos
6518 1.1 christos fi
6519 1.1 christos fi
6520 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6521 1.1 christos $as_echo "$ac_cv_c_bigendian" >&6; }
6522 1.1 christos case $ac_cv_c_bigendian in #(
6523 1.1 christos yes)
6524 1.1 christos ac_cv_big_endian=1;; #(
6525 1.1 christos no)
6526 1.1 christos ac_cv_big_endian=0 ;; #(
6527 1.1 christos universal)
6528 1.1 christos
6529 1.1 christos $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6530 1.1 christos
6531 1.1 christos ;; #(
6532 1.1 christos *)
6533 1.1 christos as_fn_error $? "unknown endianness
6534 1.1 christos presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6535 1.1 christos esac
6536 1.1 christos
6537 1.1 christos if test "x${ac_cv_big_endian}" = "x1" ; then
6538 1.1 christos cat >>confdefs.h <<_ACEOF
6539 1.1 christos #define JEMALLOC_BIG_ENDIAN
6540 1.1 christos _ACEOF
6541 1.1 christos
6542 1.1 christos fi
6543 1.1 christos
6544 1.1 christos if test "x${je_cv_msvc}" = "xyes" -a "x${ac_cv_header_inttypes_h}" = "xno"; then
6545 1.1 christos T_APPEND_V=-I${srcdir}/include/msvc_compat/C99
6546 1.1 christos if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
6547 1.1 christos CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
6548 1.1 christos else
6549 1.1 christos CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
6550 1.1 christos fi
6551 1.1 christos
6552 1.1 christos
6553 1.1 christos fi
6554 1.1 christos
6555 1.1 christos if test "x${je_cv_msvc}" = "xyes" ; then
6556 1.1 christos LG_SIZEOF_PTR=LG_SIZEOF_PTR_WIN
6557 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&5
6558 1.1 christos $as_echo "Using a predefined value for sizeof(void *): 4 for 32-bit, 8 for 64-bit" >&6; }
6559 1.1 christos else
6560 1.1 christos # The cast to long int works around a bug in the HP C Compiler
6561 1.1 christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6562 1.1 christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6563 1.1 christos # This bug is HP SR number 8606223364.
6564 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6565 1.1 christos $as_echo_n "checking size of void *... " >&6; }
6566 1.1 christos if ${ac_cv_sizeof_void_p+:} false; then :
6567 1.1 christos $as_echo_n "(cached) " >&6
6568 1.1 christos else
6569 1.1 christos if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6570 1.1 christos
6571 1.1 christos else
6572 1.1 christos if test "$ac_cv_type_void_p" = yes; then
6573 1.1 christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6574 1.1 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6575 1.1 christos as_fn_error 77 "cannot compute sizeof (void *)
6576 1.1 christos See \`config.log' for more details" "$LINENO" 5; }
6577 1.1 christos else
6578 1.1 christos ac_cv_sizeof_void_p=0
6579 1.1 christos fi
6580 1.1 christos fi
6581 1.1 christos
6582 1.1 christos fi
6583 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6584 1.1 christos $as_echo "$ac_cv_sizeof_void_p" >&6; }
6585 1.1 christos
6586 1.1 christos
6587 1.1 christos
6588 1.1 christos cat >>confdefs.h <<_ACEOF
6589 1.1 christos #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6590 1.1 christos _ACEOF
6591 1.1 christos
6592 1.1 christos
6593 1.1 christos if test "x${ac_cv_sizeof_void_p}" = "x8" ; then
6594 1.1 christos LG_SIZEOF_PTR=3
6595 1.1 christos elif test "x${ac_cv_sizeof_void_p}" = "x4" ; then
6596 1.1 christos LG_SIZEOF_PTR=2
6597 1.1 christos else
6598 1.1 christos as_fn_error $? "Unsupported pointer size: ${ac_cv_sizeof_void_p}" "$LINENO" 5
6599 1.1 christos fi
6600 1.1 christos fi
6601 1.1 christos cat >>confdefs.h <<_ACEOF
6602 1.1 christos #define LG_SIZEOF_PTR $LG_SIZEOF_PTR
6603 1.1 christos _ACEOF
6604 1.1 christos
6605 1.1 christos
6606 1.1 christos # The cast to long int works around a bug in the HP C Compiler
6607 1.1 christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6608 1.1 christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6609 1.1 christos # This bug is HP SR number 8606223364.
6610 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6611 1.1 christos $as_echo_n "checking size of int... " >&6; }
6612 1.1 christos if ${ac_cv_sizeof_int+:} false; then :
6613 1.1 christos $as_echo_n "(cached) " >&6
6614 1.1 christos else
6615 1.1 christos if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6616 1.1 christos
6617 1.1 christos else
6618 1.1 christos if test "$ac_cv_type_int" = yes; then
6619 1.1 christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6620 1.1 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6621 1.1 christos as_fn_error 77 "cannot compute sizeof (int)
6622 1.1 christos See \`config.log' for more details" "$LINENO" 5; }
6623 1.1 christos else
6624 1.1 christos ac_cv_sizeof_int=0
6625 1.1 christos fi
6626 1.1 christos fi
6627 1.1 christos
6628 1.1 christos fi
6629 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6630 1.1 christos $as_echo "$ac_cv_sizeof_int" >&6; }
6631 1.1 christos
6632 1.1 christos
6633 1.1 christos
6634 1.1 christos cat >>confdefs.h <<_ACEOF
6635 1.1 christos #define SIZEOF_INT $ac_cv_sizeof_int
6636 1.1 christos _ACEOF
6637 1.1 christos
6638 1.1 christos
6639 1.1 christos if test "x${ac_cv_sizeof_int}" = "x8" ; then
6640 1.1 christos LG_SIZEOF_INT=3
6641 1.1 christos elif test "x${ac_cv_sizeof_int}" = "x4" ; then
6642 1.1 christos LG_SIZEOF_INT=2
6643 1.1 christos else
6644 1.1 christos as_fn_error $? "Unsupported int size: ${ac_cv_sizeof_int}" "$LINENO" 5
6645 1.1 christos fi
6646 1.1 christos cat >>confdefs.h <<_ACEOF
6647 1.1 christos #define LG_SIZEOF_INT $LG_SIZEOF_INT
6648 1.1 christos _ACEOF
6649 1.1 christos
6650 1.1 christos
6651 1.1 christos # The cast to long int works around a bug in the HP C Compiler
6652 1.1 christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6653 1.1 christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6654 1.1 christos # This bug is HP SR number 8606223364.
6655 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6656 1.1 christos $as_echo_n "checking size of long... " >&6; }
6657 1.1 christos if ${ac_cv_sizeof_long+:} false; then :
6658 1.1 christos $as_echo_n "(cached) " >&6
6659 1.1 christos else
6660 1.1 christos if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6661 1.1 christos
6662 1.1 christos else
6663 1.1 christos if test "$ac_cv_type_long" = yes; then
6664 1.1 christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6665 1.1 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6666 1.1 christos as_fn_error 77 "cannot compute sizeof (long)
6667 1.1 christos See \`config.log' for more details" "$LINENO" 5; }
6668 1.1 christos else
6669 1.1 christos ac_cv_sizeof_long=0
6670 1.1 christos fi
6671 1.1 christos fi
6672 1.1 christos
6673 1.1 christos fi
6674 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6675 1.1 christos $as_echo "$ac_cv_sizeof_long" >&6; }
6676 1.1 christos
6677 1.1 christos
6678 1.1 christos
6679 1.1 christos cat >>confdefs.h <<_ACEOF
6680 1.1 christos #define SIZEOF_LONG $ac_cv_sizeof_long
6681 1.1 christos _ACEOF
6682 1.1 christos
6683 1.1 christos
6684 1.1 christos if test "x${ac_cv_sizeof_long}" = "x8" ; then
6685 1.1 christos LG_SIZEOF_LONG=3
6686 1.1 christos elif test "x${ac_cv_sizeof_long}" = "x4" ; then
6687 1.1 christos LG_SIZEOF_LONG=2
6688 1.1 christos else
6689 1.1 christos as_fn_error $? "Unsupported long size: ${ac_cv_sizeof_long}" "$LINENO" 5
6690 1.1 christos fi
6691 1.1 christos cat >>confdefs.h <<_ACEOF
6692 1.1 christos #define LG_SIZEOF_LONG $LG_SIZEOF_LONG
6693 1.1 christos _ACEOF
6694 1.1 christos
6695 1.1 christos
6696 1.1 christos # The cast to long int works around a bug in the HP C Compiler
6697 1.1 christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6698 1.1 christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6699 1.1 christos # This bug is HP SR number 8606223364.
6700 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6701 1.1 christos $as_echo_n "checking size of long long... " >&6; }
6702 1.1 christos if ${ac_cv_sizeof_long_long+:} false; then :
6703 1.1 christos $as_echo_n "(cached) " >&6
6704 1.1 christos else
6705 1.1 christos if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6706 1.1 christos
6707 1.1 christos else
6708 1.1 christos if test "$ac_cv_type_long_long" = yes; then
6709 1.1 christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6710 1.1 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6711 1.1 christos as_fn_error 77 "cannot compute sizeof (long long)
6712 1.1 christos See \`config.log' for more details" "$LINENO" 5; }
6713 1.1 christos else
6714 1.1 christos ac_cv_sizeof_long_long=0
6715 1.1 christos fi
6716 1.1 christos fi
6717 1.1 christos
6718 1.1 christos fi
6719 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6720 1.1 christos $as_echo "$ac_cv_sizeof_long_long" >&6; }
6721 1.1 christos
6722 1.1 christos
6723 1.1 christos
6724 1.1 christos cat >>confdefs.h <<_ACEOF
6725 1.1 christos #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6726 1.1 christos _ACEOF
6727 1.1 christos
6728 1.1 christos
6729 1.1 christos if test "x${ac_cv_sizeof_long_long}" = "x8" ; then
6730 1.1 christos LG_SIZEOF_LONG_LONG=3
6731 1.1 christos elif test "x${ac_cv_sizeof_long_long}" = "x4" ; then
6732 1.1 christos LG_SIZEOF_LONG_LONG=2
6733 1.1 christos else
6734 1.1 christos as_fn_error $? "Unsupported long long size: ${ac_cv_sizeof_long_long}" "$LINENO" 5
6735 1.1 christos fi
6736 1.1 christos cat >>confdefs.h <<_ACEOF
6737 1.1 christos #define LG_SIZEOF_LONG_LONG $LG_SIZEOF_LONG_LONG
6738 1.1 christos _ACEOF
6739 1.1 christos
6740 1.1 christos
6741 1.1 christos # The cast to long int works around a bug in the HP C Compiler
6742 1.1 christos # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6743 1.1 christos # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6744 1.1 christos # This bug is HP SR number 8606223364.
6745 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of intmax_t" >&5
6746 1.1 christos $as_echo_n "checking size of intmax_t... " >&6; }
6747 1.1 christos if ${ac_cv_sizeof_intmax_t+:} false; then :
6748 1.1 christos $as_echo_n "(cached) " >&6
6749 1.1 christos else
6750 1.1 christos if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intmax_t))" "ac_cv_sizeof_intmax_t" "$ac_includes_default"; then :
6751 1.1 christos
6752 1.1 christos else
6753 1.1 christos if test "$ac_cv_type_intmax_t" = yes; then
6754 1.1 christos { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6755 1.1 christos $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6756 1.1 christos as_fn_error 77 "cannot compute sizeof (intmax_t)
6757 1.1 christos See \`config.log' for more details" "$LINENO" 5; }
6758 1.1 christos else
6759 1.1 christos ac_cv_sizeof_intmax_t=0
6760 1.1 christos fi
6761 1.1 christos fi
6762 1.1 christos
6763 1.1 christos fi
6764 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intmax_t" >&5
6765 1.1 christos $as_echo "$ac_cv_sizeof_intmax_t" >&6; }
6766 1.1 christos
6767 1.1 christos
6768 1.1 christos
6769 1.1 christos cat >>confdefs.h <<_ACEOF
6770 1.1 christos #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
6771 1.1 christos _ACEOF
6772 1.1 christos
6773 1.1 christos
6774 1.1 christos if test "x${ac_cv_sizeof_intmax_t}" = "x16" ; then
6775 1.1 christos LG_SIZEOF_INTMAX_T=4
6776 1.1 christos elif test "x${ac_cv_sizeof_intmax_t}" = "x8" ; then
6777 1.1 christos LG_SIZEOF_INTMAX_T=3
6778 1.1 christos elif test "x${ac_cv_sizeof_intmax_t}" = "x4" ; then
6779 1.1 christos LG_SIZEOF_INTMAX_T=2
6780 1.1 christos else
6781 1.1 christos as_fn_error $? "Unsupported intmax_t size: ${ac_cv_sizeof_intmax_t}" "$LINENO" 5
6782 1.1 christos fi
6783 1.1 christos cat >>confdefs.h <<_ACEOF
6784 1.1 christos #define LG_SIZEOF_INTMAX_T $LG_SIZEOF_INTMAX_T
6785 1.1 christos _ACEOF
6786 1.1 christos
6787 1.1 christos
6788 1.1 christos # Make sure we can run config.sub.
6789 1.1 christos $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6790 1.1 christos as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6791 1.1 christos
6792 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6793 1.1 christos $as_echo_n "checking build system type... " >&6; }
6794 1.1 christos if ${ac_cv_build+:} false; then :
6795 1.1 christos $as_echo_n "(cached) " >&6
6796 1.1 christos else
6797 1.1 christos ac_build_alias=$build_alias
6798 1.1 christos test "x$ac_build_alias" = x &&
6799 1.1 christos ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6800 1.1 christos test "x$ac_build_alias" = x &&
6801 1.1 christos as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6802 1.1 christos ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6803 1.1 christos as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6804 1.1 christos
6805 1.1 christos fi
6806 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6807 1.1 christos $as_echo "$ac_cv_build" >&6; }
6808 1.1 christos case $ac_cv_build in
6809 1.1 christos *-*-*) ;;
6810 1.1 christos *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6811 1.1 christos esac
6812 1.1 christos build=$ac_cv_build
6813 1.1 christos ac_save_IFS=$IFS; IFS='-'
6814 1.1 christos set x $ac_cv_build
6815 1.1 christos shift
6816 1.1 christos build_cpu=$1
6817 1.1 christos build_vendor=$2
6818 1.1 christos shift; shift
6819 1.1 christos # Remember, the first character of IFS is used to create $*,
6820 1.1 christos # except with old shells:
6821 1.1 christos build_os=$*
6822 1.1 christos IFS=$ac_save_IFS
6823 1.1 christos case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6824 1.1 christos
6825 1.1 christos
6826 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6827 1.1 christos $as_echo_n "checking host system type... " >&6; }
6828 1.1 christos if ${ac_cv_host+:} false; then :
6829 1.1 christos $as_echo_n "(cached) " >&6
6830 1.1 christos else
6831 1.1 christos if test "x$host_alias" = x; then
6832 1.1 christos ac_cv_host=$ac_cv_build
6833 1.1 christos else
6834 1.1 christos ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6835 1.1 christos as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6836 1.1 christos fi
6837 1.1 christos
6838 1.1 christos fi
6839 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6840 1.1 christos $as_echo "$ac_cv_host" >&6; }
6841 1.1 christos case $ac_cv_host in
6842 1.1 christos *-*-*) ;;
6843 1.1 christos *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6844 1.1 christos esac
6845 1.1 christos host=$ac_cv_host
6846 1.1 christos ac_save_IFS=$IFS; IFS='-'
6847 1.1 christos set x $ac_cv_host
6848 1.1 christos shift
6849 1.1 christos host_cpu=$1
6850 1.1 christos host_vendor=$2
6851 1.1 christos shift; shift
6852 1.1 christos # Remember, the first character of IFS is used to create $*,
6853 1.1 christos # except with old shells:
6854 1.1 christos host_os=$*
6855 1.1 christos IFS=$ac_save_IFS
6856 1.1 christos case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6857 1.1 christos
6858 1.1 christos
6859 1.1 christos CPU_SPINWAIT=""
6860 1.1 christos case "${host_cpu}" in
6861 1.1 christos i686|x86_64)
6862 1.1 christos HAVE_CPU_SPINWAIT=1
6863 1.1 christos if test "x${je_cv_msvc}" = "xyes" ; then
6864 1.1 christos if ${je_cv_pause_msvc+:} false; then :
6865 1.1 christos $as_echo_n "(cached) " >&6
6866 1.1 christos else
6867 1.1 christos
6868 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction MSVC is compilable" >&5
6869 1.1 christos $as_echo_n "checking whether pause instruction MSVC is compilable... " >&6; }
6870 1.1 christos if ${je_cv_pause_msvc+:} false; then :
6871 1.1 christos $as_echo_n "(cached) " >&6
6872 1.1 christos else
6873 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 1.1 christos /* end confdefs.h. */
6875 1.1 christos
6876 1.1 christos int
6877 1.1 christos main ()
6878 1.1 christos {
6879 1.1 christos _mm_pause(); return 0;
6880 1.1 christos ;
6881 1.1 christos return 0;
6882 1.1 christos }
6883 1.1 christos _ACEOF
6884 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
6885 1.1 christos je_cv_pause_msvc=yes
6886 1.1 christos else
6887 1.1 christos je_cv_pause_msvc=no
6888 1.1 christos fi
6889 1.1 christos rm -f core conftest.err conftest.$ac_objext \
6890 1.1 christos conftest$ac_exeext conftest.$ac_ext
6891 1.1 christos fi
6892 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause_msvc" >&5
6893 1.1 christos $as_echo "$je_cv_pause_msvc" >&6; }
6894 1.1 christos
6895 1.1 christos fi
6896 1.1 christos
6897 1.1 christos if test "x${je_cv_pause_msvc}" = "xyes" ; then
6898 1.1 christos CPU_SPINWAIT='_mm_pause()'
6899 1.1 christos fi
6900 1.1 christos else
6901 1.1 christos if ${je_cv_pause+:} false; then :
6902 1.1 christos $as_echo_n "(cached) " >&6
6903 1.1 christos else
6904 1.1 christos
6905 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pause instruction is compilable" >&5
6906 1.1 christos $as_echo_n "checking whether pause instruction is compilable... " >&6; }
6907 1.1 christos if ${je_cv_pause+:} false; then :
6908 1.1 christos $as_echo_n "(cached) " >&6
6909 1.1 christos else
6910 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911 1.1 christos /* end confdefs.h. */
6912 1.1 christos
6913 1.1 christos int
6914 1.1 christos main ()
6915 1.1 christos {
6916 1.1 christos __asm__ volatile("pause"); return 0;
6917 1.1 christos ;
6918 1.1 christos return 0;
6919 1.1 christos }
6920 1.1 christos _ACEOF
6921 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
6922 1.1 christos je_cv_pause=yes
6923 1.1 christos else
6924 1.1 christos je_cv_pause=no
6925 1.1 christos fi
6926 1.1 christos rm -f core conftest.err conftest.$ac_objext \
6927 1.1 christos conftest$ac_exeext conftest.$ac_ext
6928 1.1 christos fi
6929 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pause" >&5
6930 1.1 christos $as_echo "$je_cv_pause" >&6; }
6931 1.1 christos
6932 1.1 christos fi
6933 1.1 christos
6934 1.1 christos if test "x${je_cv_pause}" = "xyes" ; then
6935 1.1 christos CPU_SPINWAIT='__asm__ volatile("pause")'
6936 1.1 christos fi
6937 1.1 christos fi
6938 1.1 christos ;;
6939 1.1 christos *)
6940 1.1 christos HAVE_CPU_SPINWAIT=0
6941 1.1 christos ;;
6942 1.1 christos esac
6943 1.1 christos cat >>confdefs.h <<_ACEOF
6944 1.1 christos #define HAVE_CPU_SPINWAIT $HAVE_CPU_SPINWAIT
6945 1.1 christos _ACEOF
6946 1.1 christos
6947 1.1 christos cat >>confdefs.h <<_ACEOF
6948 1.1 christos #define CPU_SPINWAIT $CPU_SPINWAIT
6949 1.1 christos _ACEOF
6950 1.1 christos
6951 1.1 christos
6952 1.1 christos
6953 1.1 christos # Check whether --with-lg_vaddr was given.
6954 1.1 christos if test "${with_lg_vaddr+set}" = set; then :
6955 1.1 christos withval=$with_lg_vaddr; LG_VADDR="$with_lg_vaddr"
6956 1.1 christos else
6957 1.1 christos LG_VADDR="detect"
6958 1.1 christos fi
6959 1.1 christos
6960 1.1 christos
6961 1.1 christos case "${host_cpu}" in
6962 1.1 christos aarch64)
6963 1.1 christos if test "x$LG_VADDR" = "xdetect"; then
6964 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
6965 1.1 christos $as_echo_n "checking number of significant virtual address bits... " >&6; }
6966 1.1 christos if test "x${LG_SIZEOF_PTR}" = "x2" ; then
6967 1.1 christos #aarch64 ILP32
6968 1.1 christos LG_VADDR=32
6969 1.1 christos else
6970 1.1 christos #aarch64 LP64
6971 1.1 christos LG_VADDR=48
6972 1.1 christos fi
6973 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
6974 1.1 christos $as_echo "$LG_VADDR" >&6; }
6975 1.1 christos fi
6976 1.1 christos ;;
6977 1.1 christos x86_64)
6978 1.1 christos if test "x$LG_VADDR" = "xdetect"; then
6979 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
6980 1.1 christos $as_echo_n "checking number of significant virtual address bits... " >&6; }
6981 1.1 christos if ${je_cv_lg_vaddr+:} false; then :
6982 1.1 christos $as_echo_n "(cached) " >&6
6983 1.1 christos else
6984 1.1 christos if test "$cross_compiling" = yes; then :
6985 1.1 christos je_cv_lg_vaddr=57
6986 1.1 christos else
6987 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 1.1 christos /* end confdefs.h. */
6989 1.1 christos
6990 1.1 christos #include <stdio.h>
6991 1.1 christos #ifdef _WIN32
6992 1.1 christos #include <limits.h>
6993 1.1 christos #include <intrin.h>
6994 1.1 christos typedef unsigned __int32 uint32_t;
6995 1.1 christos #else
6996 1.1 christos #include <stdint.h>
6997 1.1 christos #endif
6998 1.1 christos
6999 1.1 christos int
7000 1.1 christos main ()
7001 1.1 christos {
7002 1.1 christos
7003 1.1 christos uint32_t r[4];
7004 1.1 christos uint32_t eax_in = 0x80000008U;
7005 1.1 christos #ifdef _WIN32
7006 1.1 christos __cpuid((int *)r, (int)eax_in);
7007 1.1 christos #else
7008 1.1 christos asm volatile ("cpuid"
7009 1.1 christos : "=a" (r[0]), "=b" (r[1]), "=c" (r[2]), "=d" (r[3])
7010 1.1 christos : "a" (eax_in), "c" (0)
7011 1.1 christos );
7012 1.1 christos #endif
7013 1.1 christos uint32_t eax_out = r[0];
7014 1.1 christos uint32_t vaddr = ((eax_out & 0x0000ff00U) >> 8);
7015 1.1 christos FILE *f = fopen("conftest.out", "w");
7016 1.1 christos if (f == NULL) {
7017 1.1 christos return 1;
7018 1.1 christos }
7019 1.1 christos if (vaddr > (sizeof(void *) << 3)) {
7020 1.1 christos vaddr = sizeof(void *) << 3;
7021 1.1 christos }
7022 1.1 christos fprintf(f, "%u", vaddr);
7023 1.1 christos fclose(f);
7024 1.1 christos return 0;
7025 1.1 christos
7026 1.1 christos ;
7027 1.1 christos return 0;
7028 1.1 christos }
7029 1.1 christos _ACEOF
7030 1.1 christos if ac_fn_c_try_run "$LINENO"; then :
7031 1.1 christos je_cv_lg_vaddr=`cat conftest.out`
7032 1.1 christos else
7033 1.1 christos je_cv_lg_vaddr=error
7034 1.1 christos fi
7035 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7036 1.1 christos conftest.$ac_objext conftest.beam conftest.$ac_ext
7037 1.1 christos fi
7038 1.1 christos
7039 1.1 christos fi
7040 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_vaddr" >&5
7041 1.1 christos $as_echo "$je_cv_lg_vaddr" >&6; }
7042 1.1 christos if test "x${je_cv_lg_vaddr}" != "x" ; then
7043 1.1 christos LG_VADDR="${je_cv_lg_vaddr}"
7044 1.1 christos fi
7045 1.1 christos if test "x${LG_VADDR}" != "xerror" ; then
7046 1.1 christos cat >>confdefs.h <<_ACEOF
7047 1.1 christos #define LG_VADDR $LG_VADDR
7048 1.1 christos _ACEOF
7049 1.1 christos
7050 1.1 christos else
7051 1.1 christos as_fn_error $? "cannot determine number of significant virtual address bits" "$LINENO" 5
7052 1.1 christos fi
7053 1.1 christos fi
7054 1.1 christos ;;
7055 1.1 christos *)
7056 1.1 christos if test "x$LG_VADDR" = "xdetect"; then
7057 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of significant virtual address bits" >&5
7058 1.1 christos $as_echo_n "checking number of significant virtual address bits... " >&6; }
7059 1.1 christos if test "x${LG_SIZEOF_PTR}" = "x3" ; then
7060 1.1 christos LG_VADDR=64
7061 1.1 christos elif test "x${LG_SIZEOF_PTR}" = "x2" ; then
7062 1.1 christos LG_VADDR=32
7063 1.1 christos elif test "x${LG_SIZEOF_PTR}" = "xLG_SIZEOF_PTR_WIN" ; then
7064 1.1 christos LG_VADDR="(1U << (LG_SIZEOF_PTR_WIN+3))"
7065 1.1 christos else
7066 1.1 christos as_fn_error $? "Unsupported lg(pointer size): ${LG_SIZEOF_PTR}" "$LINENO" 5
7067 1.1 christos fi
7068 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LG_VADDR" >&5
7069 1.1 christos $as_echo "$LG_VADDR" >&6; }
7070 1.1 christos fi
7071 1.1 christos ;;
7072 1.1 christos esac
7073 1.1 christos cat >>confdefs.h <<_ACEOF
7074 1.1 christos #define LG_VADDR $LG_VADDR
7075 1.1 christos _ACEOF
7076 1.1 christos
7077 1.1 christos
7078 1.1 christos LD_PRELOAD_VAR="LD_PRELOAD"
7079 1.1 christos so="so"
7080 1.1 christos importlib="${so}"
7081 1.1 christos o="$ac_objext"
7082 1.1 christos a="a"
7083 1.1 christos exe="$ac_exeext"
7084 1.1 christos libprefix="lib"
7085 1.1 christos link_whole_archive="0"
7086 1.1 christos DSO_LDFLAGS='-shared -Wl,-soname,$(@F)'
7087 1.1 christos RPATH='-Wl,-rpath,$(1)'
7088 1.1 christos SOREV="${so}.${rev}"
7089 1.1 christos PIC_CFLAGS='-fPIC -DPIC'
7090 1.1 christos CTARGET='-o $@'
7091 1.1 christos LDTARGET='-o $@'
7092 1.1 christos TEST_LD_MODE=
7093 1.1 christos EXTRA_LDFLAGS=
7094 1.1 christos ARFLAGS='crus'
7095 1.1 christos AROUT=' $@'
7096 1.1 christos CC_MM=1
7097 1.1 christos
7098 1.1 christos if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
7099 1.1 christos TEST_LD_MODE='-dynamic'
7100 1.1 christos fi
7101 1.1 christos
7102 1.1 christos if test "x${je_cv_cray}" = "xyes" ; then
7103 1.1 christos CC_MM=
7104 1.1 christos fi
7105 1.1 christos
7106 1.1 christos
7107 1.1 christos
7108 1.1 christos
7109 1.1 christos if test -n "$ac_tool_prefix"; then
7110 1.1 christos # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7111 1.1 christos set dummy ${ac_tool_prefix}ar; ac_word=$2
7112 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113 1.1 christos $as_echo_n "checking for $ac_word... " >&6; }
7114 1.1 christos if ${ac_cv_prog_AR+:} false; then :
7115 1.1 christos $as_echo_n "(cached) " >&6
7116 1.1 christos else
7117 1.1 christos if test -n "$AR"; then
7118 1.1 christos ac_cv_prog_AR="$AR" # Let the user override the test.
7119 1.1 christos else
7120 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 1.1 christos for as_dir in $PATH
7122 1.1 christos do
7123 1.1 christos IFS=$as_save_IFS
7124 1.1 christos test -z "$as_dir" && as_dir=.
7125 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
7126 1.1 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127 1.1 christos ac_cv_prog_AR="${ac_tool_prefix}ar"
7128 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 1.1 christos break 2
7130 1.1 christos fi
7131 1.1 christos done
7132 1.1 christos done
7133 1.1 christos IFS=$as_save_IFS
7134 1.1 christos
7135 1.1 christos fi
7136 1.1 christos fi
7137 1.1 christos AR=$ac_cv_prog_AR
7138 1.1 christos if test -n "$AR"; then
7139 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7140 1.1 christos $as_echo "$AR" >&6; }
7141 1.1 christos else
7142 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 1.1 christos $as_echo "no" >&6; }
7144 1.1 christos fi
7145 1.1 christos
7146 1.1 christos
7147 1.1 christos fi
7148 1.1 christos if test -z "$ac_cv_prog_AR"; then
7149 1.1 christos ac_ct_AR=$AR
7150 1.1 christos # Extract the first word of "ar", so it can be a program name with args.
7151 1.1 christos set dummy ar; ac_word=$2
7152 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 1.1 christos $as_echo_n "checking for $ac_word... " >&6; }
7154 1.1 christos if ${ac_cv_prog_ac_ct_AR+:} false; then :
7155 1.1 christos $as_echo_n "(cached) " >&6
7156 1.1 christos else
7157 1.1 christos if test -n "$ac_ct_AR"; then
7158 1.1 christos ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7159 1.1 christos else
7160 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7161 1.1 christos for as_dir in $PATH
7162 1.1 christos do
7163 1.1 christos IFS=$as_save_IFS
7164 1.1 christos test -z "$as_dir" && as_dir=.
7165 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
7166 1.1 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167 1.1 christos ac_cv_prog_ac_ct_AR="ar"
7168 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 1.1 christos break 2
7170 1.1 christos fi
7171 1.1 christos done
7172 1.1 christos done
7173 1.1 christos IFS=$as_save_IFS
7174 1.1 christos
7175 1.1 christos fi
7176 1.1 christos fi
7177 1.1 christos ac_ct_AR=$ac_cv_prog_ac_ct_AR
7178 1.1 christos if test -n "$ac_ct_AR"; then
7179 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7180 1.1 christos $as_echo "$ac_ct_AR" >&6; }
7181 1.1 christos else
7182 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 1.1 christos $as_echo "no" >&6; }
7184 1.1 christos fi
7185 1.1 christos
7186 1.1 christos if test "x$ac_ct_AR" = x; then
7187 1.1 christos AR=":"
7188 1.1 christos else
7189 1.1 christos case $cross_compiling:$ac_tool_warned in
7190 1.1 christos yes:)
7191 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7192 1.1 christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193 1.1 christos ac_tool_warned=yes ;;
7194 1.1 christos esac
7195 1.1 christos AR=$ac_ct_AR
7196 1.1 christos fi
7197 1.1 christos else
7198 1.1 christos AR="$ac_cv_prog_AR"
7199 1.1 christos fi
7200 1.1 christos
7201 1.1 christos
7202 1.1 christos
7203 1.1 christos
7204 1.1 christos
7205 1.1 christos if test -n "$ac_tool_prefix"; then
7206 1.1 christos # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
7207 1.1 christos set dummy ${ac_tool_prefix}nm; ac_word=$2
7208 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 1.1 christos $as_echo_n "checking for $ac_word... " >&6; }
7210 1.1 christos if ${ac_cv_prog_NM+:} false; then :
7211 1.1 christos $as_echo_n "(cached) " >&6
7212 1.1 christos else
7213 1.1 christos if test -n "$NM"; then
7214 1.1 christos ac_cv_prog_NM="$NM" # Let the user override the test.
7215 1.1 christos else
7216 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 1.1 christos for as_dir in $PATH
7218 1.1 christos do
7219 1.1 christos IFS=$as_save_IFS
7220 1.1 christos test -z "$as_dir" && as_dir=.
7221 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
7222 1.1 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223 1.1 christos ac_cv_prog_NM="${ac_tool_prefix}nm"
7224 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 1.1 christos break 2
7226 1.1 christos fi
7227 1.1 christos done
7228 1.1 christos done
7229 1.1 christos IFS=$as_save_IFS
7230 1.1 christos
7231 1.1 christos fi
7232 1.1 christos fi
7233 1.1 christos NM=$ac_cv_prog_NM
7234 1.1 christos if test -n "$NM"; then
7235 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7236 1.1 christos $as_echo "$NM" >&6; }
7237 1.1 christos else
7238 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 1.1 christos $as_echo "no" >&6; }
7240 1.1 christos fi
7241 1.1 christos
7242 1.1 christos
7243 1.1 christos fi
7244 1.1 christos if test -z "$ac_cv_prog_NM"; then
7245 1.1 christos ac_ct_NM=$NM
7246 1.1 christos # Extract the first word of "nm", so it can be a program name with args.
7247 1.1 christos set dummy nm; ac_word=$2
7248 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 1.1 christos $as_echo_n "checking for $ac_word... " >&6; }
7250 1.1 christos if ${ac_cv_prog_ac_ct_NM+:} false; then :
7251 1.1 christos $as_echo_n "(cached) " >&6
7252 1.1 christos else
7253 1.1 christos if test -n "$ac_ct_NM"; then
7254 1.1 christos ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
7255 1.1 christos else
7256 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 1.1 christos for as_dir in $PATH
7258 1.1 christos do
7259 1.1 christos IFS=$as_save_IFS
7260 1.1 christos test -z "$as_dir" && as_dir=.
7261 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
7262 1.1 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263 1.1 christos ac_cv_prog_ac_ct_NM="nm"
7264 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 1.1 christos break 2
7266 1.1 christos fi
7267 1.1 christos done
7268 1.1 christos done
7269 1.1 christos IFS=$as_save_IFS
7270 1.1 christos
7271 1.1 christos fi
7272 1.1 christos fi
7273 1.1 christos ac_ct_NM=$ac_cv_prog_ac_ct_NM
7274 1.1 christos if test -n "$ac_ct_NM"; then
7275 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
7276 1.1 christos $as_echo "$ac_ct_NM" >&6; }
7277 1.1 christos else
7278 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 1.1 christos $as_echo "no" >&6; }
7280 1.1 christos fi
7281 1.1 christos
7282 1.1 christos if test "x$ac_ct_NM" = x; then
7283 1.1 christos NM=":"
7284 1.1 christos else
7285 1.1 christos case $cross_compiling:$ac_tool_warned in
7286 1.1 christos yes:)
7287 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288 1.1 christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289 1.1 christos ac_tool_warned=yes ;;
7290 1.1 christos esac
7291 1.1 christos NM=$ac_ct_NM
7292 1.1 christos fi
7293 1.1 christos else
7294 1.1 christos NM="$ac_cv_prog_NM"
7295 1.1 christos fi
7296 1.1 christos
7297 1.1 christos
7298 1.1 christos for ac_prog in gawk mawk nawk awk
7299 1.1 christos do
7300 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args.
7301 1.1 christos set dummy $ac_prog; ac_word=$2
7302 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 1.1 christos $as_echo_n "checking for $ac_word... " >&6; }
7304 1.1 christos if ${ac_cv_prog_AWK+:} false; then :
7305 1.1 christos $as_echo_n "(cached) " >&6
7306 1.1 christos else
7307 1.1 christos if test -n "$AWK"; then
7308 1.1 christos ac_cv_prog_AWK="$AWK" # Let the user override the test.
7309 1.1 christos else
7310 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 1.1 christos for as_dir in $PATH
7312 1.1 christos do
7313 1.1 christos IFS=$as_save_IFS
7314 1.1 christos test -z "$as_dir" && as_dir=.
7315 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
7316 1.1 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 1.1 christos ac_cv_prog_AWK="$ac_prog"
7318 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 1.1 christos break 2
7320 1.1 christos fi
7321 1.1 christos done
7322 1.1 christos done
7323 1.1 christos IFS=$as_save_IFS
7324 1.1 christos
7325 1.1 christos fi
7326 1.1 christos fi
7327 1.1 christos AWK=$ac_cv_prog_AWK
7328 1.1 christos if test -n "$AWK"; then
7329 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7330 1.1 christos $as_echo "$AWK" >&6; }
7331 1.1 christos else
7332 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 1.1 christos $as_echo "no" >&6; }
7334 1.1 christos fi
7335 1.1 christos
7336 1.1 christos
7337 1.1 christos test -n "$AWK" && break
7338 1.1 christos done
7339 1.1 christos
7340 1.1 christos
7341 1.1 christos default_retain="0"
7342 1.1 christos maps_coalesce="1"
7343 1.1 christos DUMP_SYMS="${NM} -a"
7344 1.1 christos SYM_PREFIX=""
7345 1.1 christos case "${host}" in
7346 1.1 christos *-*-darwin* | *-*-ios*)
7347 1.1 christos abi="macho"
7348 1.1 christos RPATH=""
7349 1.1 christos LD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
7350 1.1 christos so="dylib"
7351 1.1 christos importlib="${so}"
7352 1.1 christos force_tls="0"
7353 1.1 christos DSO_LDFLAGS='-shared -Wl,-install_name,$(LIBDIR)/$(@F)'
7354 1.1 christos SOREV="${rev}.${so}"
7355 1.1 christos sbrk_deprecated="1"
7356 1.1 christos SYM_PREFIX="_"
7357 1.1 christos ;;
7358 1.1 christos *-*-freebsd*)
7359 1.1 christos abi="elf"
7360 1.1 christos $as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT " >>confdefs.h
7361 1.1 christos
7362 1.1 christos force_lazy_lock="1"
7363 1.1 christos ;;
7364 1.1 christos *-*-dragonfly*)
7365 1.1 christos abi="elf"
7366 1.1 christos ;;
7367 1.1 christos *-*-openbsd*)
7368 1.1 christos abi="elf"
7369 1.1 christos force_tls="0"
7370 1.1 christos ;;
7371 1.1 christos *-*-bitrig*)
7372 1.1 christos abi="elf"
7373 1.1 christos ;;
7374 1.1 christos *-*-linux-android)
7375 1.1 christos T_APPEND_V=-D_GNU_SOURCE
7376 1.1 christos if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7377 1.1 christos CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7378 1.1 christos else
7379 1.1 christos CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7380 1.1 christos fi
7381 1.1 christos
7382 1.1 christos
7383 1.1 christos abi="elf"
7384 1.1 christos $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS " >>confdefs.h
7385 1.1 christos
7386 1.1 christos $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
7387 1.1 christos
7388 1.1 christos $as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY " >>confdefs.h
7389 1.1 christos
7390 1.1 christos $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h
7391 1.1 christos
7392 1.1 christos $as_echo "#define JEMALLOC_C11_ATOMICS 1" >>confdefs.h
7393 1.1 christos
7394 1.1 christos force_tls="0"
7395 1.1 christos if test "${LG_SIZEOF_PTR}" = "3"; then
7396 1.1 christos default_retain="1"
7397 1.1 christos fi
7398 1.1 christos ;;
7399 1.1 christos *-*-linux*)
7400 1.1 christos T_APPEND_V=-D_GNU_SOURCE
7401 1.1 christos if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7402 1.1 christos CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7403 1.1 christos else
7404 1.1 christos CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7405 1.1 christos fi
7406 1.1 christos
7407 1.1 christos
7408 1.1 christos abi="elf"
7409 1.1 christos $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS " >>confdefs.h
7410 1.1 christos
7411 1.1 christos $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
7412 1.1 christos
7413 1.1 christos $as_echo "#define JEMALLOC_PROC_SYS_VM_OVERCOMMIT_MEMORY " >>confdefs.h
7414 1.1 christos
7415 1.1 christos $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h
7416 1.1 christos
7417 1.1 christos $as_echo "#define JEMALLOC_USE_CXX_THROW " >>confdefs.h
7418 1.1 christos
7419 1.1 christos if test "${LG_SIZEOF_PTR}" = "3"; then
7420 1.1 christos default_retain="1"
7421 1.1 christos fi
7422 1.1 christos ;;
7423 1.1 christos *-*-kfreebsd*)
7424 1.1 christos T_APPEND_V=-D_GNU_SOURCE
7425 1.1 christos if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7426 1.1 christos CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7427 1.1 christos else
7428 1.1 christos CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7429 1.1 christos fi
7430 1.1 christos
7431 1.1 christos
7432 1.1 christos abi="elf"
7433 1.1 christos $as_echo "#define JEMALLOC_HAS_ALLOCA_H 1" >>confdefs.h
7434 1.1 christos
7435 1.1 christos $as_echo "#define JEMALLOC_SYSCTL_VM_OVERCOMMIT " >>confdefs.h
7436 1.1 christos
7437 1.1 christos $as_echo "#define JEMALLOC_THREADED_INIT " >>confdefs.h
7438 1.1 christos
7439 1.1 christos $as_echo "#define JEMALLOC_USE_CXX_THROW " >>confdefs.h
7440 1.1 christos
7441 1.1 christos ;;
7442 1.1 christos *-*-netbsd*)
7443 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking ABI" >&5
7444 1.1 christos $as_echo_n "checking ABI... " >&6; }
7445 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446 1.1 christos /* end confdefs.h. */
7447 1.1 christos #ifdef __ELF__
7448 1.1 christos /* ELF */
7449 1.1 christos #else
7450 1.1 christos #error aout
7451 1.1 christos #endif
7452 1.1 christos
7453 1.1 christos int
7454 1.1 christos main ()
7455 1.1 christos {
7456 1.1 christos
7457 1.1 christos ;
7458 1.1 christos return 0;
7459 1.1 christos }
7460 1.1 christos _ACEOF
7461 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
7462 1.1 christos abi="elf"
7463 1.1 christos else
7464 1.1 christos abi="aout"
7465 1.1 christos fi
7466 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $abi" >&5
7468 1.1 christos $as_echo "$abi" >&6; }
7469 1.1 christos ;;
7470 1.1 christos *-*-solaris2*)
7471 1.1 christos abi="elf"
7472 1.1 christos RPATH='-Wl,-R,$(1)'
7473 1.1 christos T_APPEND_V=-D_POSIX_PTHREAD_SEMANTICS
7474 1.1 christos if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7475 1.1 christos CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
7476 1.1 christos else
7477 1.1 christos CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
7478 1.1 christos fi
7479 1.1 christos
7480 1.1 christos
7481 1.1 christos T_APPEND_V=-lposix4 -lsocket -lnsl
7482 1.1 christos if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7483 1.1 christos LIBS="${LIBS}${T_APPEND_V}"
7484 1.1 christos else
7485 1.1 christos LIBS="${LIBS} ${T_APPEND_V}"
7486 1.1 christos fi
7487 1.1 christos
7488 1.1 christos
7489 1.1 christos ;;
7490 1.1 christos *-ibm-aix*)
7491 1.1 christos if test "${LG_SIZEOF_PTR}" = "3"; then
7492 1.1 christos LD_PRELOAD_VAR="LDR_PRELOAD64"
7493 1.1 christos else
7494 1.1 christos LD_PRELOAD_VAR="LDR_PRELOAD"
7495 1.1 christos fi
7496 1.1 christos abi="xcoff"
7497 1.1 christos ;;
7498 1.1 christos *-*-mingw* | *-*-cygwin*)
7499 1.1 christos abi="pecoff"
7500 1.1 christos force_tls="0"
7501 1.1 christos maps_coalesce="0"
7502 1.1 christos RPATH=""
7503 1.1 christos so="dll"
7504 1.1 christos if test "x$je_cv_msvc" = "xyes" ; then
7505 1.1 christos importlib="lib"
7506 1.1 christos DSO_LDFLAGS="-LD"
7507 1.1 christos EXTRA_LDFLAGS="-link -DEBUG"
7508 1.1 christos CTARGET='-Fo$@'
7509 1.1 christos LDTARGET='-Fe$@'
7510 1.1 christos AR='lib'
7511 1.1 christos ARFLAGS='-nologo -out:'
7512 1.1 christos AROUT='$@'
7513 1.1 christos CC_MM=
7514 1.1 christos else
7515 1.1 christos importlib="${so}"
7516 1.1 christos DSO_LDFLAGS="-shared"
7517 1.1 christos link_whole_archive="1"
7518 1.1 christos fi
7519 1.1 christos case "${host}" in
7520 1.1 christos *-*-cygwin*)
7521 1.1 christos DUMP_SYMS="dumpbin /SYMBOLS"
7522 1.1 christos ;;
7523 1.1 christos *)
7524 1.1 christos ;;
7525 1.1 christos esac
7526 1.1 christos a="lib"
7527 1.1 christos libprefix=""
7528 1.1 christos SOREV="${so}"
7529 1.1 christos PIC_CFLAGS=""
7530 1.1 christos ;;
7531 1.1 christos *)
7532 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unsupported operating system: ${host}" >&5
7533 1.1 christos $as_echo "Unsupported operating system: ${host}" >&6; }
7534 1.1 christos abi="elf"
7535 1.1 christos ;;
7536 1.1 christos esac
7537 1.1 christos
7538 1.1 christos JEMALLOC_USABLE_SIZE_CONST=const
7539 1.1 christos for ac_header in malloc.h
7540 1.1 christos do :
7541 1.1 christos ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
7542 1.1 christos if test "x$ac_cv_header_malloc_h" = xyes; then :
7543 1.1 christos cat >>confdefs.h <<_ACEOF
7544 1.1 christos #define HAVE_MALLOC_H 1
7545 1.1 christos _ACEOF
7546 1.1 christos
7547 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc_usable_size definition can use const argument" >&5
7548 1.1 christos $as_echo_n "checking whether malloc_usable_size definition can use const argument... " >&6; }
7549 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 1.1 christos /* end confdefs.h. */
7551 1.1 christos #include <malloc.h>
7552 1.1 christos #include <stddef.h>
7553 1.1 christos size_t malloc_usable_size(const void *ptr);
7554 1.1 christos
7555 1.1 christos int
7556 1.1 christos main ()
7557 1.1 christos {
7558 1.1 christos
7559 1.1 christos ;
7560 1.1 christos return 0;
7561 1.1 christos }
7562 1.1 christos _ACEOF
7563 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
7564 1.1 christos
7565 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7566 1.1 christos $as_echo "yes" >&6; }
7567 1.1 christos
7568 1.1 christos else
7569 1.1 christos
7570 1.1 christos JEMALLOC_USABLE_SIZE_CONST=
7571 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 1.1 christos $as_echo "no" >&6; }
7573 1.1 christos
7574 1.1 christos fi
7575 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576 1.1 christos
7577 1.1 christos fi
7578 1.1 christos
7579 1.1 christos done
7580 1.1 christos
7581 1.1 christos cat >>confdefs.h <<_ACEOF
7582 1.1 christos #define JEMALLOC_USABLE_SIZE_CONST $JEMALLOC_USABLE_SIZE_CONST
7583 1.1 christos _ACEOF
7584 1.1 christos
7585 1.1 christos
7586 1.1 christos
7587 1.1 christos
7588 1.1 christos
7589 1.1 christos
7590 1.1 christos
7591 1.1 christos
7592 1.1 christos
7593 1.1 christos
7594 1.1 christos
7595 1.1 christos
7596 1.1 christos
7597 1.1 christos
7598 1.1 christos
7599 1.1 christos
7600 1.1 christos
7601 1.1 christos
7602 1.1 christos
7603 1.1 christos
7604 1.1 christos
7605 1.1 christos
7606 1.1 christos
7607 1.1 christos
7608 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
7609 1.1 christos $as_echo_n "checking for library containing log... " >&6; }
7610 1.1 christos if ${ac_cv_search_log+:} false; then :
7611 1.1 christos $as_echo_n "(cached) " >&6
7612 1.1 christos else
7613 1.1 christos ac_func_search_save_LIBS=$LIBS
7614 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 1.1 christos /* end confdefs.h. */
7616 1.1 christos
7617 1.1 christos /* Override any GCC internal prototype to avoid an error.
7618 1.1 christos Use char because int might match the return type of a GCC
7619 1.1 christos builtin and then its argument prototype would still apply. */
7620 1.1 christos #ifdef __cplusplus
7621 1.1 christos extern "C"
7622 1.1 christos #endif
7623 1.1 christos char log ();
7624 1.1 christos int
7625 1.1 christos main ()
7626 1.1 christos {
7627 1.1 christos return log ();
7628 1.1 christos ;
7629 1.1 christos return 0;
7630 1.1 christos }
7631 1.1 christos _ACEOF
7632 1.1 christos for ac_lib in '' m; do
7633 1.1 christos if test -z "$ac_lib"; then
7634 1.1 christos ac_res="none required"
7635 1.1 christos else
7636 1.1 christos ac_res=-l$ac_lib
7637 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7638 1.1 christos fi
7639 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
7640 1.1 christos ac_cv_search_log=$ac_res
7641 1.1 christos fi
7642 1.1 christos rm -f core conftest.err conftest.$ac_objext \
7643 1.1 christos conftest$ac_exeext
7644 1.1 christos if ${ac_cv_search_log+:} false; then :
7645 1.1 christos break
7646 1.1 christos fi
7647 1.1 christos done
7648 1.1 christos if ${ac_cv_search_log+:} false; then :
7649 1.1 christos
7650 1.1 christos else
7651 1.1 christos ac_cv_search_log=no
7652 1.1 christos fi
7653 1.1 christos rm conftest.$ac_ext
7654 1.1 christos LIBS=$ac_func_search_save_LIBS
7655 1.1 christos fi
7656 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
7657 1.1 christos $as_echo "$ac_cv_search_log" >&6; }
7658 1.1 christos ac_res=$ac_cv_search_log
7659 1.1 christos if test "$ac_res" != no; then :
7660 1.1 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7661 1.1 christos
7662 1.1 christos else
7663 1.1 christos as_fn_error $? "Missing math functions" "$LINENO" 5
7664 1.1 christos fi
7665 1.1 christos
7666 1.1 christos if test "x$ac_cv_search_log" != "xnone required" ; then
7667 1.1 christos LM="$ac_cv_search_log"
7668 1.1 christos else
7669 1.1 christos LM=
7670 1.1 christos fi
7671 1.1 christos
7672 1.1 christos
7673 1.1 christos
7674 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__ syntax is compilable" >&5
7675 1.1 christos $as_echo_n "checking whether __attribute__ syntax is compilable... " >&6; }
7676 1.1 christos if ${je_cv_attribute+:} false; then :
7677 1.1 christos $as_echo_n "(cached) " >&6
7678 1.1 christos else
7679 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 1.1 christos /* end confdefs.h. */
7681 1.1 christos static __attribute__((unused)) void foo(void){}
7682 1.1 christos int
7683 1.1 christos main ()
7684 1.1 christos {
7685 1.1 christos
7686 1.1 christos ;
7687 1.1 christos return 0;
7688 1.1 christos }
7689 1.1 christos _ACEOF
7690 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
7691 1.1 christos je_cv_attribute=yes
7692 1.1 christos else
7693 1.1 christos je_cv_attribute=no
7694 1.1 christos fi
7695 1.1 christos rm -f core conftest.err conftest.$ac_objext \
7696 1.1 christos conftest$ac_exeext conftest.$ac_ext
7697 1.1 christos fi
7698 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_attribute" >&5
7699 1.1 christos $as_echo "$je_cv_attribute" >&6; }
7700 1.1 christos
7701 1.1 christos if test "x${je_cv_attribute}" = "xyes" ; then
7702 1.1 christos $as_echo "#define JEMALLOC_HAVE_ATTR " >>confdefs.h
7703 1.1 christos
7704 1.1 christos if test "x${GCC}" = "xyes" -a "x${abi}" = "xelf"; then
7705 1.1 christos
7706 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
7707 1.1 christos $as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
7708 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7709 1.1 christos T_APPEND_V=-fvisibility=hidden
7710 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7711 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7712 1.1 christos else
7713 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7714 1.1 christos fi
7715 1.1 christos
7716 1.1 christos
7717 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7718 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7719 1.1 christos else
7720 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7721 1.1 christos fi
7722 1.1 christos
7723 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 1.1 christos /* end confdefs.h. */
7725 1.1 christos
7726 1.1 christos
7727 1.1 christos int
7728 1.1 christos main ()
7729 1.1 christos {
7730 1.1 christos
7731 1.1 christos return 0;
7732 1.1 christos
7733 1.1 christos ;
7734 1.1 christos return 0;
7735 1.1 christos }
7736 1.1 christos _ACEOF
7737 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
7738 1.1 christos je_cv_cflags_added=-fvisibility=hidden
7739 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7740 1.1 christos $as_echo "yes" >&6; }
7741 1.1 christos else
7742 1.1 christos je_cv_cflags_added=
7743 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 1.1 christos $as_echo "no" >&6; }
7745 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
7746 1.1 christos
7747 1.1 christos fi
7748 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7750 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7751 1.1 christos else
7752 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7753 1.1 christos fi
7754 1.1 christos
7755 1.1 christos
7756 1.1 christos
7757 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fvisibility=hidden" >&5
7758 1.1 christos $as_echo_n "checking whether compiler supports -fvisibility=hidden... " >&6; }
7759 1.1 christos T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
7760 1.1 christos T_APPEND_V=-fvisibility=hidden
7761 1.1 christos if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7762 1.1 christos CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
7763 1.1 christos else
7764 1.1 christos CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
7765 1.1 christos fi
7766 1.1 christos
7767 1.1 christos
7768 1.1 christos if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
7769 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
7770 1.1 christos else
7771 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
7772 1.1 christos fi
7773 1.1 christos
7774 1.1 christos ac_ext=cpp
7775 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
7776 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7777 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7778 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7779 1.1 christos
7780 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 1.1 christos /* end confdefs.h. */
7782 1.1 christos
7783 1.1 christos
7784 1.1 christos int
7785 1.1 christos main ()
7786 1.1 christos {
7787 1.1 christos
7788 1.1 christos return 0;
7789 1.1 christos
7790 1.1 christos ;
7791 1.1 christos return 0;
7792 1.1 christos }
7793 1.1 christos _ACEOF
7794 1.1 christos if ac_fn_cxx_try_compile "$LINENO"; then :
7795 1.1 christos je_cv_cxxflags_added=-fvisibility=hidden
7796 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7797 1.1 christos $as_echo "yes" >&6; }
7798 1.1 christos else
7799 1.1 christos je_cv_cxxflags_added=
7800 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 1.1 christos $as_echo "no" >&6; }
7802 1.1 christos CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
7803 1.1 christos
7804 1.1 christos fi
7805 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7806 1.1 christos ac_ext=c
7807 1.1 christos ac_cpp='$CPP $CPPFLAGS'
7808 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7809 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7810 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
7811 1.1 christos
7812 1.1 christos if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
7813 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
7814 1.1 christos else
7815 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
7816 1.1 christos fi
7817 1.1 christos
7818 1.1 christos
7819 1.1 christos fi
7820 1.1 christos fi
7821 1.1 christos SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7822 1.1 christos
7823 1.1 christos
7824 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
7825 1.1 christos $as_echo_n "checking whether compiler supports -Werror... " >&6; }
7826 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7827 1.1 christos T_APPEND_V=-Werror
7828 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7829 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7830 1.1 christos else
7831 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7832 1.1 christos fi
7833 1.1 christos
7834 1.1 christos
7835 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7836 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7837 1.1 christos else
7838 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7839 1.1 christos fi
7840 1.1 christos
7841 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 1.1 christos /* end confdefs.h. */
7843 1.1 christos
7844 1.1 christos
7845 1.1 christos int
7846 1.1 christos main ()
7847 1.1 christos {
7848 1.1 christos
7849 1.1 christos return 0;
7850 1.1 christos
7851 1.1 christos ;
7852 1.1 christos return 0;
7853 1.1 christos }
7854 1.1 christos _ACEOF
7855 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
7856 1.1 christos je_cv_cflags_added=-Werror
7857 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7858 1.1 christos $as_echo "yes" >&6; }
7859 1.1 christos else
7860 1.1 christos je_cv_cflags_added=
7861 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 1.1 christos $as_echo "no" >&6; }
7863 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
7864 1.1 christos
7865 1.1 christos fi
7866 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7868 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7869 1.1 christos else
7870 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7871 1.1 christos fi
7872 1.1 christos
7873 1.1 christos
7874 1.1 christos
7875 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
7876 1.1 christos $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
7877 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7878 1.1 christos T_APPEND_V=-herror_on_warning
7879 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7880 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7881 1.1 christos else
7882 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7883 1.1 christos fi
7884 1.1 christos
7885 1.1 christos
7886 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7887 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7888 1.1 christos else
7889 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7890 1.1 christos fi
7891 1.1 christos
7892 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 1.1 christos /* end confdefs.h. */
7894 1.1 christos
7895 1.1 christos
7896 1.1 christos int
7897 1.1 christos main ()
7898 1.1 christos {
7899 1.1 christos
7900 1.1 christos return 0;
7901 1.1 christos
7902 1.1 christos ;
7903 1.1 christos return 0;
7904 1.1 christos }
7905 1.1 christos _ACEOF
7906 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
7907 1.1 christos je_cv_cflags_added=-herror_on_warning
7908 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7909 1.1 christos $as_echo "yes" >&6; }
7910 1.1 christos else
7911 1.1 christos je_cv_cflags_added=
7912 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 1.1 christos $as_echo "no" >&6; }
7914 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
7915 1.1 christos
7916 1.1 christos fi
7917 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7919 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7920 1.1 christos else
7921 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7922 1.1 christos fi
7923 1.1 christos
7924 1.1 christos
7925 1.1 christos
7926 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tls_model attribute is compilable" >&5
7927 1.1 christos $as_echo_n "checking whether tls_model attribute is compilable... " >&6; }
7928 1.1 christos if ${je_cv_tls_model+:} false; then :
7929 1.1 christos $as_echo_n "(cached) " >&6
7930 1.1 christos else
7931 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 1.1 christos /* end confdefs.h. */
7933 1.1 christos
7934 1.1 christos int
7935 1.1 christos main ()
7936 1.1 christos {
7937 1.1 christos static __thread int
7938 1.1 christos __attribute__((tls_model("initial-exec"), unused)) foo;
7939 1.1 christos foo = 0;
7940 1.1 christos ;
7941 1.1 christos return 0;
7942 1.1 christos }
7943 1.1 christos _ACEOF
7944 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
7945 1.1 christos je_cv_tls_model=yes
7946 1.1 christos else
7947 1.1 christos je_cv_tls_model=no
7948 1.1 christos fi
7949 1.1 christos rm -f core conftest.err conftest.$ac_objext \
7950 1.1 christos conftest$ac_exeext conftest.$ac_ext
7951 1.1 christos fi
7952 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_tls_model" >&5
7953 1.1 christos $as_echo "$je_cv_tls_model" >&6; }
7954 1.1 christos
7955 1.1 christos CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
7956 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7957 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7958 1.1 christos else
7959 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7960 1.1 christos fi
7961 1.1 christos
7962 1.1 christos
7963 1.1 christos
7964 1.1 christos SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7965 1.1 christos
7966 1.1 christos
7967 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
7968 1.1 christos $as_echo_n "checking whether compiler supports -Werror... " >&6; }
7969 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
7970 1.1 christos T_APPEND_V=-Werror
7971 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
7972 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
7973 1.1 christos else
7974 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
7975 1.1 christos fi
7976 1.1 christos
7977 1.1 christos
7978 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
7979 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
7980 1.1 christos else
7981 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
7982 1.1 christos fi
7983 1.1 christos
7984 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 1.1 christos /* end confdefs.h. */
7986 1.1 christos
7987 1.1 christos
7988 1.1 christos int
7989 1.1 christos main ()
7990 1.1 christos {
7991 1.1 christos
7992 1.1 christos return 0;
7993 1.1 christos
7994 1.1 christos ;
7995 1.1 christos return 0;
7996 1.1 christos }
7997 1.1 christos _ACEOF
7998 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
7999 1.1 christos je_cv_cflags_added=-Werror
8000 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8001 1.1 christos $as_echo "yes" >&6; }
8002 1.1 christos else
8003 1.1 christos je_cv_cflags_added=
8004 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005 1.1 christos $as_echo "no" >&6; }
8006 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8007 1.1 christos
8008 1.1 christos fi
8009 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8010 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8011 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8012 1.1 christos else
8013 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8014 1.1 christos fi
8015 1.1 christos
8016 1.1 christos
8017 1.1 christos
8018 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8019 1.1 christos $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8020 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8021 1.1 christos T_APPEND_V=-herror_on_warning
8022 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8023 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8024 1.1 christos else
8025 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8026 1.1 christos fi
8027 1.1 christos
8028 1.1 christos
8029 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8030 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8031 1.1 christos else
8032 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8033 1.1 christos fi
8034 1.1 christos
8035 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 1.1 christos /* end confdefs.h. */
8037 1.1 christos
8038 1.1 christos
8039 1.1 christos int
8040 1.1 christos main ()
8041 1.1 christos {
8042 1.1 christos
8043 1.1 christos return 0;
8044 1.1 christos
8045 1.1 christos ;
8046 1.1 christos return 0;
8047 1.1 christos }
8048 1.1 christos _ACEOF
8049 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
8050 1.1 christos je_cv_cflags_added=-herror_on_warning
8051 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8052 1.1 christos $as_echo "yes" >&6; }
8053 1.1 christos else
8054 1.1 christos je_cv_cflags_added=
8055 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8056 1.1 christos $as_echo "no" >&6; }
8057 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8058 1.1 christos
8059 1.1 christos fi
8060 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8061 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8062 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8063 1.1 christos else
8064 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8065 1.1 christos fi
8066 1.1 christos
8067 1.1 christos
8068 1.1 christos
8069 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alloc_size attribute is compilable" >&5
8070 1.1 christos $as_echo_n "checking whether alloc_size attribute is compilable... " >&6; }
8071 1.1 christos if ${je_cv_alloc_size+:} false; then :
8072 1.1 christos $as_echo_n "(cached) " >&6
8073 1.1 christos else
8074 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 1.1 christos /* end confdefs.h. */
8076 1.1 christos #include <stdlib.h>
8077 1.1 christos int
8078 1.1 christos main ()
8079 1.1 christos {
8080 1.1 christos void *foo(size_t size) __attribute__((alloc_size(1)));
8081 1.1 christos ;
8082 1.1 christos return 0;
8083 1.1 christos }
8084 1.1 christos _ACEOF
8085 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
8086 1.1 christos je_cv_alloc_size=yes
8087 1.1 christos else
8088 1.1 christos je_cv_alloc_size=no
8089 1.1 christos fi
8090 1.1 christos rm -f core conftest.err conftest.$ac_objext \
8091 1.1 christos conftest$ac_exeext conftest.$ac_ext
8092 1.1 christos fi
8093 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_alloc_size" >&5
8094 1.1 christos $as_echo "$je_cv_alloc_size" >&6; }
8095 1.1 christos
8096 1.1 christos CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8097 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8098 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8099 1.1 christos else
8100 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8101 1.1 christos fi
8102 1.1 christos
8103 1.1 christos
8104 1.1 christos if test "x${je_cv_alloc_size}" = "xyes" ; then
8105 1.1 christos $as_echo "#define JEMALLOC_HAVE_ATTR_ALLOC_SIZE " >>confdefs.h
8106 1.1 christos
8107 1.1 christos fi
8108 1.1 christos SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8109 1.1 christos
8110 1.1 christos
8111 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
8112 1.1 christos $as_echo_n "checking whether compiler supports -Werror... " >&6; }
8113 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8114 1.1 christos T_APPEND_V=-Werror
8115 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8116 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8117 1.1 christos else
8118 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8119 1.1 christos fi
8120 1.1 christos
8121 1.1 christos
8122 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8123 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8124 1.1 christos else
8125 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8126 1.1 christos fi
8127 1.1 christos
8128 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129 1.1 christos /* end confdefs.h. */
8130 1.1 christos
8131 1.1 christos
8132 1.1 christos int
8133 1.1 christos main ()
8134 1.1 christos {
8135 1.1 christos
8136 1.1 christos return 0;
8137 1.1 christos
8138 1.1 christos ;
8139 1.1 christos return 0;
8140 1.1 christos }
8141 1.1 christos _ACEOF
8142 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
8143 1.1 christos je_cv_cflags_added=-Werror
8144 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8145 1.1 christos $as_echo "yes" >&6; }
8146 1.1 christos else
8147 1.1 christos je_cv_cflags_added=
8148 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 1.1 christos $as_echo "no" >&6; }
8150 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8151 1.1 christos
8152 1.1 christos fi
8153 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8155 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8156 1.1 christos else
8157 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8158 1.1 christos fi
8159 1.1 christos
8160 1.1 christos
8161 1.1 christos
8162 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8163 1.1 christos $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8164 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8165 1.1 christos T_APPEND_V=-herror_on_warning
8166 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8167 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8168 1.1 christos else
8169 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8170 1.1 christos fi
8171 1.1 christos
8172 1.1 christos
8173 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8174 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8175 1.1 christos else
8176 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8177 1.1 christos fi
8178 1.1 christos
8179 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 1.1 christos /* end confdefs.h. */
8181 1.1 christos
8182 1.1 christos
8183 1.1 christos int
8184 1.1 christos main ()
8185 1.1 christos {
8186 1.1 christos
8187 1.1 christos return 0;
8188 1.1 christos
8189 1.1 christos ;
8190 1.1 christos return 0;
8191 1.1 christos }
8192 1.1 christos _ACEOF
8193 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
8194 1.1 christos je_cv_cflags_added=-herror_on_warning
8195 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8196 1.1 christos $as_echo "yes" >&6; }
8197 1.1 christos else
8198 1.1 christos je_cv_cflags_added=
8199 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200 1.1 christos $as_echo "no" >&6; }
8201 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8202 1.1 christos
8203 1.1 christos fi
8204 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8206 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8207 1.1 christos else
8208 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8209 1.1 christos fi
8210 1.1 christos
8211 1.1 christos
8212 1.1 christos
8213 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(gnu_printf, ...) attribute is compilable" >&5
8214 1.1 christos $as_echo_n "checking whether format(gnu_printf, ...) attribute is compilable... " >&6; }
8215 1.1 christos if ${je_cv_format_gnu_printf+:} false; then :
8216 1.1 christos $as_echo_n "(cached) " >&6
8217 1.1 christos else
8218 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 1.1 christos /* end confdefs.h. */
8220 1.1 christos #include <stdlib.h>
8221 1.1 christos int
8222 1.1 christos main ()
8223 1.1 christos {
8224 1.1 christos void *foo(const char *format, ...) __attribute__((format(gnu_printf, 1, 2)));
8225 1.1 christos ;
8226 1.1 christos return 0;
8227 1.1 christos }
8228 1.1 christos _ACEOF
8229 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
8230 1.1 christos je_cv_format_gnu_printf=yes
8231 1.1 christos else
8232 1.1 christos je_cv_format_gnu_printf=no
8233 1.1 christos fi
8234 1.1 christos rm -f core conftest.err conftest.$ac_objext \
8235 1.1 christos conftest$ac_exeext conftest.$ac_ext
8236 1.1 christos fi
8237 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_gnu_printf" >&5
8238 1.1 christos $as_echo "$je_cv_format_gnu_printf" >&6; }
8239 1.1 christos
8240 1.1 christos CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8241 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8242 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8243 1.1 christos else
8244 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8245 1.1 christos fi
8246 1.1 christos
8247 1.1 christos
8248 1.1 christos if test "x${je_cv_format_gnu_printf}" = "xyes" ; then
8249 1.1 christos $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF " >>confdefs.h
8250 1.1 christos
8251 1.1 christos fi
8252 1.1 christos SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8253 1.1 christos
8254 1.1 christos
8255 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
8256 1.1 christos $as_echo_n "checking whether compiler supports -Werror... " >&6; }
8257 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8258 1.1 christos T_APPEND_V=-Werror
8259 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8260 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8261 1.1 christos else
8262 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8263 1.1 christos fi
8264 1.1 christos
8265 1.1 christos
8266 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8267 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8268 1.1 christos else
8269 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8270 1.1 christos fi
8271 1.1 christos
8272 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 1.1 christos /* end confdefs.h. */
8274 1.1 christos
8275 1.1 christos
8276 1.1 christos int
8277 1.1 christos main ()
8278 1.1 christos {
8279 1.1 christos
8280 1.1 christos return 0;
8281 1.1 christos
8282 1.1 christos ;
8283 1.1 christos return 0;
8284 1.1 christos }
8285 1.1 christos _ACEOF
8286 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
8287 1.1 christos je_cv_cflags_added=-Werror
8288 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8289 1.1 christos $as_echo "yes" >&6; }
8290 1.1 christos else
8291 1.1 christos je_cv_cflags_added=
8292 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 1.1 christos $as_echo "no" >&6; }
8294 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8295 1.1 christos
8296 1.1 christos fi
8297 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8299 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8300 1.1 christos else
8301 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8302 1.1 christos fi
8303 1.1 christos
8304 1.1 christos
8305 1.1 christos
8306 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
8307 1.1 christos $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
8308 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8309 1.1 christos T_APPEND_V=-herror_on_warning
8310 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8311 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8312 1.1 christos else
8313 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8314 1.1 christos fi
8315 1.1 christos
8316 1.1 christos
8317 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8318 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8319 1.1 christos else
8320 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8321 1.1 christos fi
8322 1.1 christos
8323 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 1.1 christos /* end confdefs.h. */
8325 1.1 christos
8326 1.1 christos
8327 1.1 christos int
8328 1.1 christos main ()
8329 1.1 christos {
8330 1.1 christos
8331 1.1 christos return 0;
8332 1.1 christos
8333 1.1 christos ;
8334 1.1 christos return 0;
8335 1.1 christos }
8336 1.1 christos _ACEOF
8337 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
8338 1.1 christos je_cv_cflags_added=-herror_on_warning
8339 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8340 1.1 christos $as_echo "yes" >&6; }
8341 1.1 christos else
8342 1.1 christos je_cv_cflags_added=
8343 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 1.1 christos $as_echo "no" >&6; }
8345 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
8346 1.1 christos
8347 1.1 christos fi
8348 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8350 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8351 1.1 christos else
8352 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8353 1.1 christos fi
8354 1.1 christos
8355 1.1 christos
8356 1.1 christos
8357 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether format(printf, ...) attribute is compilable" >&5
8358 1.1 christos $as_echo_n "checking whether format(printf, ...) attribute is compilable... " >&6; }
8359 1.1 christos if ${je_cv_format_printf+:} false; then :
8360 1.1 christos $as_echo_n "(cached) " >&6
8361 1.1 christos else
8362 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 1.1 christos /* end confdefs.h. */
8364 1.1 christos #include <stdlib.h>
8365 1.1 christos int
8366 1.1 christos main ()
8367 1.1 christos {
8368 1.1 christos void *foo(const char *format, ...) __attribute__((format(printf, 1, 2)));
8369 1.1 christos ;
8370 1.1 christos return 0;
8371 1.1 christos }
8372 1.1 christos _ACEOF
8373 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
8374 1.1 christos je_cv_format_printf=yes
8375 1.1 christos else
8376 1.1 christos je_cv_format_printf=no
8377 1.1 christos fi
8378 1.1 christos rm -f core conftest.err conftest.$ac_objext \
8379 1.1 christos conftest$ac_exeext conftest.$ac_ext
8380 1.1 christos fi
8381 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_format_printf" >&5
8382 1.1 christos $as_echo "$je_cv_format_printf" >&6; }
8383 1.1 christos
8384 1.1 christos CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
8385 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8386 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8387 1.1 christos else
8388 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8389 1.1 christos fi
8390 1.1 christos
8391 1.1 christos
8392 1.1 christos if test "x${je_cv_format_printf}" = "xyes" ; then
8393 1.1 christos $as_echo "#define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF " >>confdefs.h
8394 1.1 christos
8395 1.1 christos fi
8396 1.1 christos
8397 1.1 christos
8398 1.1 christos # Check whether --with-rpath was given.
8399 1.1 christos if test "${with_rpath+set}" = set; then :
8400 1.1 christos withval=$with_rpath; if test "x$with_rpath" = "xno" ; then
8401 1.1 christos RPATH_EXTRA=
8402 1.1 christos else
8403 1.1 christos RPATH_EXTRA="`echo $with_rpath | tr \":\" \" \"`"
8404 1.1 christos fi
8405 1.1 christos else
8406 1.1 christos RPATH_EXTRA=
8407 1.1 christos
8408 1.1 christos fi
8409 1.1 christos
8410 1.1 christos
8411 1.1 christos
8412 1.1 christos # Check whether --enable-autogen was given.
8413 1.1 christos if test "${enable_autogen+set}" = set; then :
8414 1.1 christos enableval=$enable_autogen; if test "x$enable_autogen" = "xno" ; then
8415 1.1 christos enable_autogen="0"
8416 1.1 christos else
8417 1.1 christos enable_autogen="1"
8418 1.1 christos fi
8419 1.1 christos
8420 1.1 christos else
8421 1.1 christos enable_autogen="0"
8422 1.1 christos
8423 1.1 christos fi
8424 1.1 christos
8425 1.1 christos
8426 1.1 christos
8427 1.1 christos # Find a good install program. We prefer a C program (faster),
8428 1.1 christos # so one script is as good as another. But avoid the broken or
8429 1.1 christos # incompatible versions:
8430 1.1 christos # SysV /etc/install, /usr/sbin/install
8431 1.1 christos # SunOS /usr/etc/install
8432 1.1 christos # IRIX /sbin/install
8433 1.1 christos # AIX /bin/install
8434 1.1 christos # AmigaOS /C/install, which installs bootblocks on floppy discs
8435 1.1 christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8436 1.1 christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8437 1.1 christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8438 1.1 christos # OS/2's system install, which has a completely different semantic
8439 1.1 christos # ./install, which can be erroneously created by make from ./install.sh.
8440 1.1 christos # Reject install programs that cannot install multiple files.
8441 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8442 1.1 christos $as_echo_n "checking for a BSD-compatible install... " >&6; }
8443 1.1 christos if test -z "$INSTALL"; then
8444 1.1 christos if ${ac_cv_path_install+:} false; then :
8445 1.1 christos $as_echo_n "(cached) " >&6
8446 1.1 christos else
8447 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448 1.1 christos for as_dir in $PATH
8449 1.1 christos do
8450 1.1 christos IFS=$as_save_IFS
8451 1.1 christos test -z "$as_dir" && as_dir=.
8452 1.1 christos # Account for people who put trailing slashes in PATH elements.
8453 1.1 christos case $as_dir/ in #((
8454 1.1 christos ./ | .// | /[cC]/* | \
8455 1.1 christos /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8456 1.1 christos ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8457 1.1 christos /usr/ucb/* ) ;;
8458 1.1 christos *)
8459 1.1 christos # OSF1 and SCO ODT 3.0 have their own names for install.
8460 1.1 christos # Don't use installbsd from OSF since it installs stuff as root
8461 1.1 christos # by default.
8462 1.1 christos for ac_prog in ginstall scoinst install; do
8463 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
8464 1.1 christos if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8465 1.1 christos if test $ac_prog = install &&
8466 1.1 christos grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8467 1.1 christos # AIX install. It has an incompatible calling convention.
8468 1.1 christos :
8469 1.1 christos elif test $ac_prog = install &&
8470 1.1 christos grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8471 1.1 christos # program-specific install script used by HP pwplus--don't use.
8472 1.1 christos :
8473 1.1 christos else
8474 1.1 christos rm -rf conftest.one conftest.two conftest.dir
8475 1.1 christos echo one > conftest.one
8476 1.1 christos echo two > conftest.two
8477 1.1 christos mkdir conftest.dir
8478 1.1 christos if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8479 1.1 christos test -s conftest.one && test -s conftest.two &&
8480 1.1 christos test -s conftest.dir/conftest.one &&
8481 1.1 christos test -s conftest.dir/conftest.two
8482 1.1 christos then
8483 1.1 christos ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8484 1.1 christos break 3
8485 1.1 christos fi
8486 1.1 christos fi
8487 1.1 christos fi
8488 1.1 christos done
8489 1.1 christos done
8490 1.1 christos ;;
8491 1.1 christos esac
8492 1.1 christos
8493 1.1 christos done
8494 1.1 christos IFS=$as_save_IFS
8495 1.1 christos
8496 1.1 christos rm -rf conftest.one conftest.two conftest.dir
8497 1.1 christos
8498 1.1 christos fi
8499 1.1 christos if test "${ac_cv_path_install+set}" = set; then
8500 1.1 christos INSTALL=$ac_cv_path_install
8501 1.1 christos else
8502 1.1 christos # As a last resort, use the slow shell script. Don't cache a
8503 1.1 christos # value for INSTALL within a source directory, because that will
8504 1.1 christos # break other packages using the cache if that directory is
8505 1.1 christos # removed, or if the value is a relative name.
8506 1.1 christos INSTALL=$ac_install_sh
8507 1.1 christos fi
8508 1.1 christos fi
8509 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8510 1.1 christos $as_echo "$INSTALL" >&6; }
8511 1.1 christos
8512 1.1 christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8513 1.1 christos # It thinks the first close brace ends the variable substitution.
8514 1.1 christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8515 1.1 christos
8516 1.1 christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8517 1.1 christos
8518 1.1 christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8519 1.1 christos
8520 1.1 christos if test -n "$ac_tool_prefix"; then
8521 1.1 christos # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8522 1.1 christos set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8523 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8524 1.1 christos $as_echo_n "checking for $ac_word... " >&6; }
8525 1.1 christos if ${ac_cv_prog_RANLIB+:} false; then :
8526 1.1 christos $as_echo_n "(cached) " >&6
8527 1.1 christos else
8528 1.1 christos if test -n "$RANLIB"; then
8529 1.1 christos ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8530 1.1 christos else
8531 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532 1.1 christos for as_dir in $PATH
8533 1.1 christos do
8534 1.1 christos IFS=$as_save_IFS
8535 1.1 christos test -z "$as_dir" && as_dir=.
8536 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
8537 1.1 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8538 1.1 christos ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8539 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8540 1.1 christos break 2
8541 1.1 christos fi
8542 1.1 christos done
8543 1.1 christos done
8544 1.1 christos IFS=$as_save_IFS
8545 1.1 christos
8546 1.1 christos fi
8547 1.1 christos fi
8548 1.1 christos RANLIB=$ac_cv_prog_RANLIB
8549 1.1 christos if test -n "$RANLIB"; then
8550 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8551 1.1 christos $as_echo "$RANLIB" >&6; }
8552 1.1 christos else
8553 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8554 1.1 christos $as_echo "no" >&6; }
8555 1.1 christos fi
8556 1.1 christos
8557 1.1 christos
8558 1.1 christos fi
8559 1.1 christos if test -z "$ac_cv_prog_RANLIB"; then
8560 1.1 christos ac_ct_RANLIB=$RANLIB
8561 1.1 christos # Extract the first word of "ranlib", so it can be a program name with args.
8562 1.1 christos set dummy ranlib; ac_word=$2
8563 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564 1.1 christos $as_echo_n "checking for $ac_word... " >&6; }
8565 1.1 christos if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8566 1.1 christos $as_echo_n "(cached) " >&6
8567 1.1 christos else
8568 1.1 christos if test -n "$ac_ct_RANLIB"; then
8569 1.1 christos ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8570 1.1 christos else
8571 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572 1.1 christos for as_dir in $PATH
8573 1.1 christos do
8574 1.1 christos IFS=$as_save_IFS
8575 1.1 christos test -z "$as_dir" && as_dir=.
8576 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
8577 1.1 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8578 1.1 christos ac_cv_prog_ac_ct_RANLIB="ranlib"
8579 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8580 1.1 christos break 2
8581 1.1 christos fi
8582 1.1 christos done
8583 1.1 christos done
8584 1.1 christos IFS=$as_save_IFS
8585 1.1 christos
8586 1.1 christos fi
8587 1.1 christos fi
8588 1.1 christos ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8589 1.1 christos if test -n "$ac_ct_RANLIB"; then
8590 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8591 1.1 christos $as_echo "$ac_ct_RANLIB" >&6; }
8592 1.1 christos else
8593 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594 1.1 christos $as_echo "no" >&6; }
8595 1.1 christos fi
8596 1.1 christos
8597 1.1 christos if test "x$ac_ct_RANLIB" = x; then
8598 1.1 christos RANLIB=":"
8599 1.1 christos else
8600 1.1 christos case $cross_compiling:$ac_tool_warned in
8601 1.1 christos yes:)
8602 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8603 1.1 christos $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8604 1.1 christos ac_tool_warned=yes ;;
8605 1.1 christos esac
8606 1.1 christos RANLIB=$ac_ct_RANLIB
8607 1.1 christos fi
8608 1.1 christos else
8609 1.1 christos RANLIB="$ac_cv_prog_RANLIB"
8610 1.1 christos fi
8611 1.1 christos
8612 1.1 christos # Extract the first word of "ld", so it can be a program name with args.
8613 1.1 christos set dummy ld; ac_word=$2
8614 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615 1.1 christos $as_echo_n "checking for $ac_word... " >&6; }
8616 1.1 christos if ${ac_cv_path_LD+:} false; then :
8617 1.1 christos $as_echo_n "(cached) " >&6
8618 1.1 christos else
8619 1.1 christos case $LD in
8620 1.1 christos [\\/]* | ?:[\\/]*)
8621 1.1 christos ac_cv_path_LD="$LD" # Let the user override the test with a path.
8622 1.1 christos ;;
8623 1.1 christos *)
8624 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625 1.1 christos for as_dir in $PATH
8626 1.1 christos do
8627 1.1 christos IFS=$as_save_IFS
8628 1.1 christos test -z "$as_dir" && as_dir=.
8629 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
8630 1.1 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8631 1.1 christos ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
8632 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8633 1.1 christos break 2
8634 1.1 christos fi
8635 1.1 christos done
8636 1.1 christos done
8637 1.1 christos IFS=$as_save_IFS
8638 1.1 christos
8639 1.1 christos test -z "$ac_cv_path_LD" && ac_cv_path_LD="false"
8640 1.1 christos ;;
8641 1.1 christos esac
8642 1.1 christos fi
8643 1.1 christos LD=$ac_cv_path_LD
8644 1.1 christos if test -n "$LD"; then
8645 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8646 1.1 christos $as_echo "$LD" >&6; }
8647 1.1 christos else
8648 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8649 1.1 christos $as_echo "no" >&6; }
8650 1.1 christos fi
8651 1.1 christos
8652 1.1 christos
8653 1.1 christos # Extract the first word of "autoconf", so it can be a program name with args.
8654 1.1 christos set dummy autoconf; ac_word=$2
8655 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656 1.1 christos $as_echo_n "checking for $ac_word... " >&6; }
8657 1.1 christos if ${ac_cv_path_AUTOCONF+:} false; then :
8658 1.1 christos $as_echo_n "(cached) " >&6
8659 1.1 christos else
8660 1.1 christos case $AUTOCONF in
8661 1.1 christos [\\/]* | ?:[\\/]*)
8662 1.1 christos ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
8663 1.1 christos ;;
8664 1.1 christos *)
8665 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666 1.1 christos for as_dir in $PATH
8667 1.1 christos do
8668 1.1 christos IFS=$as_save_IFS
8669 1.1 christos test -z "$as_dir" && as_dir=.
8670 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do
8671 1.1 christos if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8672 1.1 christos ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
8673 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8674 1.1 christos break 2
8675 1.1 christos fi
8676 1.1 christos done
8677 1.1 christos done
8678 1.1 christos IFS=$as_save_IFS
8679 1.1 christos
8680 1.1 christos test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="false"
8681 1.1 christos ;;
8682 1.1 christos esac
8683 1.1 christos fi
8684 1.1 christos AUTOCONF=$ac_cv_path_AUTOCONF
8685 1.1 christos if test -n "$AUTOCONF"; then
8686 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
8687 1.1 christos $as_echo "$AUTOCONF" >&6; }
8688 1.1 christos else
8689 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8690 1.1 christos $as_echo "no" >&6; }
8691 1.1 christos fi
8692 1.1 christos
8693 1.1 christos
8694 1.1 christos
8695 1.1 christos
8696 1.1 christos # Check whether --with-mangling was given.
8697 1.1 christos if test "${with_mangling+set}" = set; then :
8698 1.1 christos withval=$with_mangling; mangling_map="$with_mangling"
8699 1.1 christos else
8700 1.1 christos mangling_map=""
8701 1.1 christos fi
8702 1.1 christos
8703 1.1 christos
8704 1.1 christos
8705 1.1 christos # Check whether --with-jemalloc_prefix was given.
8706 1.1 christos if test "${with_jemalloc_prefix+set}" = set; then :
8707 1.1 christos withval=$with_jemalloc_prefix; JEMALLOC_PREFIX="$with_jemalloc_prefix"
8708 1.1 christos else
8709 1.1 christos if test "x$abi" != "xmacho" -a "x$abi" != "xpecoff"; then
8710 1.1 christos JEMALLOC_PREFIX=""
8711 1.1 christos else
8712 1.1 christos JEMALLOC_PREFIX="je_"
8713 1.1 christos fi
8714 1.1 christos
8715 1.1 christos fi
8716 1.1 christos
8717 1.1 christos if test "x$JEMALLOC_PREFIX" = "x" ; then
8718 1.1 christos $as_echo "#define JEMALLOC_IS_MALLOC 1" >>confdefs.h
8719 1.1 christos
8720 1.1 christos else
8721 1.1 christos JEMALLOC_CPREFIX=`echo ${JEMALLOC_PREFIX} | tr "a-z" "A-Z"`
8722 1.1 christos cat >>confdefs.h <<_ACEOF
8723 1.1 christos #define JEMALLOC_PREFIX "$JEMALLOC_PREFIX"
8724 1.1 christos _ACEOF
8725 1.1 christos
8726 1.1 christos cat >>confdefs.h <<_ACEOF
8727 1.1 christos #define JEMALLOC_CPREFIX "$JEMALLOC_CPREFIX"
8728 1.1 christos _ACEOF
8729 1.1 christos
8730 1.1 christos fi
8731 1.1 christos
8732 1.1 christos
8733 1.1 christos
8734 1.1 christos
8735 1.1 christos # Check whether --with-export was given.
8736 1.1 christos if test "${with_export+set}" = set; then :
8737 1.1 christos withval=$with_export; if test "x$with_export" = "xno"; then
8738 1.1 christos $as_echo "#define JEMALLOC_EXPORT /**/" >>confdefs.h
8739 1.1 christos
8740 1.1 christos fi
8741 1.1 christos
8742 1.1 christos fi
8743 1.1 christos
8744 1.1 christos
8745 1.1 christos public_syms="aligned_alloc calloc dallocx free mallctl mallctlbymib mallctlnametomib malloc malloc_conf malloc_message malloc_stats_print malloc_usable_size mallocx nallocx posix_memalign rallocx realloc sallocx sdallocx xallocx"
8746 1.1 christos ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
8747 1.1 christos if test "x$ac_cv_func_memalign" = xyes; then :
8748 1.1 christos $as_echo "#define JEMALLOC_OVERRIDE_MEMALIGN " >>confdefs.h
8749 1.1 christos
8750 1.1 christos public_syms="${public_syms} memalign"
8751 1.1 christos fi
8752 1.1 christos
8753 1.1 christos ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
8754 1.1 christos if test "x$ac_cv_func_valloc" = xyes; then :
8755 1.1 christos $as_echo "#define JEMALLOC_OVERRIDE_VALLOC " >>confdefs.h
8756 1.1 christos
8757 1.1 christos public_syms="${public_syms} valloc"
8758 1.1 christos fi
8759 1.1 christos
8760 1.1 christos
8761 1.1 christos wrap_syms=
8762 1.1 christos if test "x${JEMALLOC_PREFIX}" = "x" ; then
8763 1.1 christos ac_fn_c_check_func "$LINENO" "__libc_calloc" "ac_cv_func___libc_calloc"
8764 1.1 christos if test "x$ac_cv_func___libc_calloc" = xyes; then :
8765 1.1 christos $as_echo "#define JEMALLOC_OVERRIDE___LIBC_CALLOC " >>confdefs.h
8766 1.1 christos
8767 1.1 christos wrap_syms="${wrap_syms} __libc_calloc"
8768 1.1 christos fi
8769 1.1 christos
8770 1.1 christos ac_fn_c_check_func "$LINENO" "__libc_free" "ac_cv_func___libc_free"
8771 1.1 christos if test "x$ac_cv_func___libc_free" = xyes; then :
8772 1.1 christos $as_echo "#define JEMALLOC_OVERRIDE___LIBC_FREE " >>confdefs.h
8773 1.1 christos
8774 1.1 christos wrap_syms="${wrap_syms} __libc_free"
8775 1.1 christos fi
8776 1.1 christos
8777 1.1 christos ac_fn_c_check_func "$LINENO" "__libc_malloc" "ac_cv_func___libc_malloc"
8778 1.1 christos if test "x$ac_cv_func___libc_malloc" = xyes; then :
8779 1.1 christos $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MALLOC " >>confdefs.h
8780 1.1 christos
8781 1.1 christos wrap_syms="${wrap_syms} __libc_malloc"
8782 1.1 christos fi
8783 1.1 christos
8784 1.1 christos ac_fn_c_check_func "$LINENO" "__libc_memalign" "ac_cv_func___libc_memalign"
8785 1.1 christos if test "x$ac_cv_func___libc_memalign" = xyes; then :
8786 1.1 christos $as_echo "#define JEMALLOC_OVERRIDE___LIBC_MEMALIGN " >>confdefs.h
8787 1.1 christos
8788 1.1 christos wrap_syms="${wrap_syms} __libc_memalign"
8789 1.1 christos fi
8790 1.1 christos
8791 1.1 christos ac_fn_c_check_func "$LINENO" "__libc_realloc" "ac_cv_func___libc_realloc"
8792 1.1 christos if test "x$ac_cv_func___libc_realloc" = xyes; then :
8793 1.1 christos $as_echo "#define JEMALLOC_OVERRIDE___LIBC_REALLOC " >>confdefs.h
8794 1.1 christos
8795 1.1 christos wrap_syms="${wrap_syms} __libc_realloc"
8796 1.1 christos fi
8797 1.1 christos
8798 1.1 christos ac_fn_c_check_func "$LINENO" "__libc_valloc" "ac_cv_func___libc_valloc"
8799 1.1 christos if test "x$ac_cv_func___libc_valloc" = xyes; then :
8800 1.1 christos $as_echo "#define JEMALLOC_OVERRIDE___LIBC_VALLOC " >>confdefs.h
8801 1.1 christos
8802 1.1 christos wrap_syms="${wrap_syms} __libc_valloc"
8803 1.1 christos fi
8804 1.1 christos
8805 1.1 christos ac_fn_c_check_func "$LINENO" "__posix_memalign" "ac_cv_func___posix_memalign"
8806 1.1 christos if test "x$ac_cv_func___posix_memalign" = xyes; then :
8807 1.1 christos $as_echo "#define JEMALLOC_OVERRIDE___POSIX_MEMALIGN " >>confdefs.h
8808 1.1 christos
8809 1.1 christos wrap_syms="${wrap_syms} __posix_memalign"
8810 1.1 christos fi
8811 1.1 christos
8812 1.1 christos fi
8813 1.1 christos
8814 1.1 christos case "${host}" in
8815 1.1 christos *-*-mingw* | *-*-cygwin*)
8816 1.1 christos wrap_syms="${wrap_syms} tls_callback"
8817 1.1 christos ;;
8818 1.1 christos *)
8819 1.1 christos ;;
8820 1.1 christos esac
8821 1.1 christos
8822 1.1 christos
8823 1.1 christos # Check whether --with-private_namespace was given.
8824 1.1 christos if test "${with_private_namespace+set}" = set; then :
8825 1.1 christos withval=$with_private_namespace; JEMALLOC_PRIVATE_NAMESPACE="${with_private_namespace}je_"
8826 1.1 christos else
8827 1.1 christos JEMALLOC_PRIVATE_NAMESPACE="je_"
8828 1.1 christos
8829 1.1 christos fi
8830 1.1 christos
8831 1.1 christos cat >>confdefs.h <<_ACEOF
8832 1.1 christos #define JEMALLOC_PRIVATE_NAMESPACE $JEMALLOC_PRIVATE_NAMESPACE
8833 1.1 christos _ACEOF
8834 1.1 christos
8835 1.1 christos private_namespace="$JEMALLOC_PRIVATE_NAMESPACE"
8836 1.1 christos
8837 1.1 christos
8838 1.1 christos
8839 1.1 christos # Check whether --with-install_suffix was given.
8840 1.1 christos if test "${with_install_suffix+set}" = set; then :
8841 1.1 christos withval=$with_install_suffix; INSTALL_SUFFIX="$with_install_suffix"
8842 1.1 christos else
8843 1.1 christos INSTALL_SUFFIX=
8844 1.1 christos
8845 1.1 christos fi
8846 1.1 christos
8847 1.1 christos install_suffix="$INSTALL_SUFFIX"
8848 1.1 christos
8849 1.1 christos
8850 1.1 christos
8851 1.1 christos # Check whether --with-malloc_conf was given.
8852 1.1 christos if test "${with_malloc_conf+set}" = set; then :
8853 1.1 christos withval=$with_malloc_conf; JEMALLOC_CONFIG_MALLOC_CONF="$with_malloc_conf"
8854 1.1 christos else
8855 1.1 christos JEMALLOC_CONFIG_MALLOC_CONF=""
8856 1.1 christos
8857 1.1 christos fi
8858 1.1 christos
8859 1.1 christos config_malloc_conf="$JEMALLOC_CONFIG_MALLOC_CONF"
8860 1.1 christos cat >>confdefs.h <<_ACEOF
8861 1.1 christos #define JEMALLOC_CONFIG_MALLOC_CONF "$config_malloc_conf"
8862 1.1 christos _ACEOF
8863 1.1 christos
8864 1.1 christos
8865 1.1 christos je_="je_"
8866 1.1 christos
8867 1.1 christos
8868 1.1 christos cfgoutputs_in="Makefile.in"
8869 1.1 christos cfgoutputs_in="${cfgoutputs_in} jemalloc.pc.in"
8870 1.1 christos cfgoutputs_in="${cfgoutputs_in} doc/html.xsl.in"
8871 1.1 christos cfgoutputs_in="${cfgoutputs_in} doc/manpages.xsl.in"
8872 1.1 christos cfgoutputs_in="${cfgoutputs_in} doc/jemalloc.xml.in"
8873 1.1 christos cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_macros.h.in"
8874 1.1 christos cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_protos.h.in"
8875 1.1 christos cfgoutputs_in="${cfgoutputs_in} include/jemalloc/jemalloc_typedefs.h.in"
8876 1.1 christos cfgoutputs_in="${cfgoutputs_in} include/jemalloc/internal/jemalloc_preamble.h.in"
8877 1.1 christos cfgoutputs_in="${cfgoutputs_in} test/test.sh.in"
8878 1.1 christos cfgoutputs_in="${cfgoutputs_in} test/include/test/jemalloc_test.h.in"
8879 1.1 christos
8880 1.1 christos cfgoutputs_out="Makefile"
8881 1.1 christos cfgoutputs_out="${cfgoutputs_out} jemalloc.pc"
8882 1.1 christos cfgoutputs_out="${cfgoutputs_out} doc/html.xsl"
8883 1.1 christos cfgoutputs_out="${cfgoutputs_out} doc/manpages.xsl"
8884 1.1 christos cfgoutputs_out="${cfgoutputs_out} doc/jemalloc.xml"
8885 1.1 christos cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_macros.h"
8886 1.1 christos cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_protos.h"
8887 1.1 christos cfgoutputs_out="${cfgoutputs_out} include/jemalloc/jemalloc_typedefs.h"
8888 1.1 christos cfgoutputs_out="${cfgoutputs_out} include/jemalloc/internal/jemalloc_preamble.h"
8889 1.1 christos cfgoutputs_out="${cfgoutputs_out} test/test.sh"
8890 1.1 christos cfgoutputs_out="${cfgoutputs_out} test/include/test/jemalloc_test.h"
8891 1.1 christos
8892 1.1 christos cfgoutputs_tup="Makefile"
8893 1.1 christos cfgoutputs_tup="${cfgoutputs_tup} jemalloc.pc:jemalloc.pc.in"
8894 1.1 christos cfgoutputs_tup="${cfgoutputs_tup} doc/html.xsl:doc/html.xsl.in"
8895 1.1 christos cfgoutputs_tup="${cfgoutputs_tup} doc/manpages.xsl:doc/manpages.xsl.in"
8896 1.1 christos cfgoutputs_tup="${cfgoutputs_tup} doc/jemalloc.xml:doc/jemalloc.xml.in"
8897 1.1 christos cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_macros.h:include/jemalloc/jemalloc_macros.h.in"
8898 1.1 christos cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_protos.h:include/jemalloc/jemalloc_protos.h.in"
8899 1.1 christos cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/jemalloc_typedefs.h:include/jemalloc/jemalloc_typedefs.h.in"
8900 1.1 christos cfgoutputs_tup="${cfgoutputs_tup} include/jemalloc/internal/jemalloc_preamble.h"
8901 1.1 christos cfgoutputs_tup="${cfgoutputs_tup} test/test.sh:test/test.sh.in"
8902 1.1 christos cfgoutputs_tup="${cfgoutputs_tup} test/include/test/jemalloc_test.h:test/include/test/jemalloc_test.h.in"
8903 1.1 christos
8904 1.1 christos cfghdrs_in="include/jemalloc/jemalloc_defs.h.in"
8905 1.1 christos cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/jemalloc_internal_defs.h.in"
8906 1.1 christos cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_symbols.sh"
8907 1.1 christos cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/private_namespace.sh"
8908 1.1 christos cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_namespace.sh"
8909 1.1 christos cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/public_unnamespace.sh"
8910 1.1 christos cfghdrs_in="${cfghdrs_in} include/jemalloc/internal/size_classes.sh"
8911 1.1 christos cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_rename.sh"
8912 1.1 christos cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc_mangle.sh"
8913 1.1 christos cfghdrs_in="${cfghdrs_in} include/jemalloc/jemalloc.sh"
8914 1.1 christos cfghdrs_in="${cfghdrs_in} test/include/test/jemalloc_test_defs.h.in"
8915 1.1 christos
8916 1.1 christos cfghdrs_out="include/jemalloc/jemalloc_defs.h"
8917 1.1 christos cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc${install_suffix}.h"
8918 1.1 christos cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols.awk"
8919 1.1 christos cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/private_symbols_jet.awk"
8920 1.1 christos cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_symbols.txt"
8921 1.1 christos cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_namespace.h"
8922 1.1 christos cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/public_unnamespace.h"
8923 1.1 christos cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/size_classes.h"
8924 1.1 christos cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_protos_jet.h"
8925 1.1 christos cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_rename.h"
8926 1.1 christos cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle.h"
8927 1.1 christos cfghdrs_out="${cfghdrs_out} include/jemalloc/jemalloc_mangle_jet.h"
8928 1.1 christos cfghdrs_out="${cfghdrs_out} include/jemalloc/internal/jemalloc_internal_defs.h"
8929 1.1 christos cfghdrs_out="${cfghdrs_out} test/include/test/jemalloc_test_defs.h"
8930 1.1 christos
8931 1.1 christos cfghdrs_tup="include/jemalloc/jemalloc_defs.h:include/jemalloc/jemalloc_defs.h.in"
8932 1.1 christos cfghdrs_tup="${cfghdrs_tup} include/jemalloc/internal/jemalloc_internal_defs.h:include/jemalloc/internal/jemalloc_internal_defs.h.in"
8933 1.1 christos cfghdrs_tup="${cfghdrs_tup} test/include/test/jemalloc_test_defs.h:test/include/test/jemalloc_test_defs.h.in"
8934 1.1 christos
8935 1.1 christos # Check whether --enable-debug was given.
8936 1.1 christos if test "${enable_debug+set}" = set; then :
8937 1.1 christos enableval=$enable_debug; if test "x$enable_debug" = "xno" ; then
8938 1.1 christos enable_debug="0"
8939 1.1 christos else
8940 1.1 christos enable_debug="1"
8941 1.1 christos fi
8942 1.1 christos
8943 1.1 christos else
8944 1.1 christos enable_debug="0"
8945 1.1 christos
8946 1.1 christos fi
8947 1.1 christos
8948 1.1 christos if test "x$enable_debug" = "x1" ; then
8949 1.1 christos $as_echo "#define JEMALLOC_DEBUG " >>confdefs.h
8950 1.1 christos
8951 1.1 christos fi
8952 1.1 christos if test "x$enable_debug" = "x1" ; then
8953 1.1 christos $as_echo "#define JEMALLOC_DEBUG " >>confdefs.h
8954 1.1 christos
8955 1.1 christos fi
8956 1.1 christos
8957 1.1 christos
8958 1.1 christos if test "x$enable_debug" = "x0" ; then
8959 1.1 christos if test "x$GCC" = "xyes" ; then
8960 1.1 christos
8961 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
8962 1.1 christos $as_echo_n "checking whether compiler supports -O3... " >&6; }
8963 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
8964 1.1 christos T_APPEND_V=-O3
8965 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
8966 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
8967 1.1 christos else
8968 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
8969 1.1 christos fi
8970 1.1 christos
8971 1.1 christos
8972 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
8973 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
8974 1.1 christos else
8975 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
8976 1.1 christos fi
8977 1.1 christos
8978 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 1.1 christos /* end confdefs.h. */
8980 1.1 christos
8981 1.1 christos
8982 1.1 christos int
8983 1.1 christos main ()
8984 1.1 christos {
8985 1.1 christos
8986 1.1 christos return 0;
8987 1.1 christos
8988 1.1 christos ;
8989 1.1 christos return 0;
8990 1.1 christos }
8991 1.1 christos _ACEOF
8992 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
8993 1.1 christos je_cv_cflags_added=-O3
8994 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8995 1.1 christos $as_echo "yes" >&6; }
8996 1.1 christos else
8997 1.1 christos je_cv_cflags_added=
8998 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999 1.1 christos $as_echo "no" >&6; }
9000 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9001 1.1 christos
9002 1.1 christos fi
9003 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9004 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9005 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9006 1.1 christos else
9007 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9008 1.1 christos fi
9009 1.1 christos
9010 1.1 christos
9011 1.1 christos
9012 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O3" >&5
9013 1.1 christos $as_echo_n "checking whether compiler supports -O3... " >&6; }
9014 1.1 christos T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
9015 1.1 christos T_APPEND_V=-O3
9016 1.1 christos if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9017 1.1 christos CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
9018 1.1 christos else
9019 1.1 christos CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
9020 1.1 christos fi
9021 1.1 christos
9022 1.1 christos
9023 1.1 christos if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9024 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9025 1.1 christos else
9026 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9027 1.1 christos fi
9028 1.1 christos
9029 1.1 christos ac_ext=cpp
9030 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
9031 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9032 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9033 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9034 1.1 christos
9035 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036 1.1 christos /* end confdefs.h. */
9037 1.1 christos
9038 1.1 christos
9039 1.1 christos int
9040 1.1 christos main ()
9041 1.1 christos {
9042 1.1 christos
9043 1.1 christos return 0;
9044 1.1 christos
9045 1.1 christos ;
9046 1.1 christos return 0;
9047 1.1 christos }
9048 1.1 christos _ACEOF
9049 1.1 christos if ac_fn_cxx_try_compile "$LINENO"; then :
9050 1.1 christos je_cv_cxxflags_added=-O3
9051 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9052 1.1 christos $as_echo "yes" >&6; }
9053 1.1 christos else
9054 1.1 christos je_cv_cxxflags_added=
9055 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9056 1.1 christos $as_echo "no" >&6; }
9057 1.1 christos CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
9058 1.1 christos
9059 1.1 christos fi
9060 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9061 1.1 christos ac_ext=c
9062 1.1 christos ac_cpp='$CPP $CPPFLAGS'
9063 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9064 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9065 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
9066 1.1 christos
9067 1.1 christos if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9068 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9069 1.1 christos else
9070 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9071 1.1 christos fi
9072 1.1 christos
9073 1.1 christos
9074 1.1 christos
9075 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -funroll-loops" >&5
9076 1.1 christos $as_echo_n "checking whether compiler supports -funroll-loops... " >&6; }
9077 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9078 1.1 christos T_APPEND_V=-funroll-loops
9079 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9080 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9081 1.1 christos else
9082 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9083 1.1 christos fi
9084 1.1 christos
9085 1.1 christos
9086 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9087 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9088 1.1 christos else
9089 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9090 1.1 christos fi
9091 1.1 christos
9092 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9093 1.1 christos /* end confdefs.h. */
9094 1.1 christos
9095 1.1 christos
9096 1.1 christos int
9097 1.1 christos main ()
9098 1.1 christos {
9099 1.1 christos
9100 1.1 christos return 0;
9101 1.1 christos
9102 1.1 christos ;
9103 1.1 christos return 0;
9104 1.1 christos }
9105 1.1 christos _ACEOF
9106 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
9107 1.1 christos je_cv_cflags_added=-funroll-loops
9108 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9109 1.1 christos $as_echo "yes" >&6; }
9110 1.1 christos else
9111 1.1 christos je_cv_cflags_added=
9112 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113 1.1 christos $as_echo "no" >&6; }
9114 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9115 1.1 christos
9116 1.1 christos fi
9117 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9118 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9119 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9120 1.1 christos else
9121 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9122 1.1 christos fi
9123 1.1 christos
9124 1.1 christos
9125 1.1 christos elif test "x$je_cv_msvc" = "xyes" ; then
9126 1.1 christos
9127 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
9128 1.1 christos $as_echo_n "checking whether compiler supports -O2... " >&6; }
9129 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9130 1.1 christos T_APPEND_V=-O2
9131 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9132 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9133 1.1 christos else
9134 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9135 1.1 christos fi
9136 1.1 christos
9137 1.1 christos
9138 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9139 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9140 1.1 christos else
9141 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9142 1.1 christos fi
9143 1.1 christos
9144 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 1.1 christos /* end confdefs.h. */
9146 1.1 christos
9147 1.1 christos
9148 1.1 christos int
9149 1.1 christos main ()
9150 1.1 christos {
9151 1.1 christos
9152 1.1 christos return 0;
9153 1.1 christos
9154 1.1 christos ;
9155 1.1 christos return 0;
9156 1.1 christos }
9157 1.1 christos _ACEOF
9158 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
9159 1.1 christos je_cv_cflags_added=-O2
9160 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9161 1.1 christos $as_echo "yes" >&6; }
9162 1.1 christos else
9163 1.1 christos je_cv_cflags_added=
9164 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9165 1.1 christos $as_echo "no" >&6; }
9166 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9167 1.1 christos
9168 1.1 christos fi
9169 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9170 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9171 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9172 1.1 christos else
9173 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9174 1.1 christos fi
9175 1.1 christos
9176 1.1 christos
9177 1.1 christos
9178 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O2" >&5
9179 1.1 christos $as_echo_n "checking whether compiler supports -O2... " >&6; }
9180 1.1 christos T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
9181 1.1 christos T_APPEND_V=-O2
9182 1.1 christos if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9183 1.1 christos CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
9184 1.1 christos else
9185 1.1 christos CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
9186 1.1 christos fi
9187 1.1 christos
9188 1.1 christos
9189 1.1 christos if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9190 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9191 1.1 christos else
9192 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9193 1.1 christos fi
9194 1.1 christos
9195 1.1 christos ac_ext=cpp
9196 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
9197 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9198 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9199 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9200 1.1 christos
9201 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 1.1 christos /* end confdefs.h. */
9203 1.1 christos
9204 1.1 christos
9205 1.1 christos int
9206 1.1 christos main ()
9207 1.1 christos {
9208 1.1 christos
9209 1.1 christos return 0;
9210 1.1 christos
9211 1.1 christos ;
9212 1.1 christos return 0;
9213 1.1 christos }
9214 1.1 christos _ACEOF
9215 1.1 christos if ac_fn_cxx_try_compile "$LINENO"; then :
9216 1.1 christos je_cv_cxxflags_added=-O2
9217 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9218 1.1 christos $as_echo "yes" >&6; }
9219 1.1 christos else
9220 1.1 christos je_cv_cxxflags_added=
9221 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9222 1.1 christos $as_echo "no" >&6; }
9223 1.1 christos CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
9224 1.1 christos
9225 1.1 christos fi
9226 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9227 1.1 christos ac_ext=c
9228 1.1 christos ac_cpp='$CPP $CPPFLAGS'
9229 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9230 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9231 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
9232 1.1 christos
9233 1.1 christos if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9234 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9235 1.1 christos else
9236 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9237 1.1 christos fi
9238 1.1 christos
9239 1.1 christos
9240 1.1 christos else
9241 1.1 christos
9242 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
9243 1.1 christos $as_echo_n "checking whether compiler supports -O... " >&6; }
9244 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9245 1.1 christos T_APPEND_V=-O
9246 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9247 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9248 1.1 christos else
9249 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9250 1.1 christos fi
9251 1.1 christos
9252 1.1 christos
9253 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9254 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9255 1.1 christos else
9256 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9257 1.1 christos fi
9258 1.1 christos
9259 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 1.1 christos /* end confdefs.h. */
9261 1.1 christos
9262 1.1 christos
9263 1.1 christos int
9264 1.1 christos main ()
9265 1.1 christos {
9266 1.1 christos
9267 1.1 christos return 0;
9268 1.1 christos
9269 1.1 christos ;
9270 1.1 christos return 0;
9271 1.1 christos }
9272 1.1 christos _ACEOF
9273 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
9274 1.1 christos je_cv_cflags_added=-O
9275 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9276 1.1 christos $as_echo "yes" >&6; }
9277 1.1 christos else
9278 1.1 christos je_cv_cflags_added=
9279 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280 1.1 christos $as_echo "no" >&6; }
9281 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9282 1.1 christos
9283 1.1 christos fi
9284 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9286 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9287 1.1 christos else
9288 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9289 1.1 christos fi
9290 1.1 christos
9291 1.1 christos
9292 1.1 christos
9293 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -O" >&5
9294 1.1 christos $as_echo_n "checking whether compiler supports -O... " >&6; }
9295 1.1 christos T_CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}"
9296 1.1 christos T_APPEND_V=-O
9297 1.1 christos if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9298 1.1 christos CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS}${T_APPEND_V}"
9299 1.1 christos else
9300 1.1 christos CONFIGURE_CXXFLAGS="${CONFIGURE_CXXFLAGS} ${T_APPEND_V}"
9301 1.1 christos fi
9302 1.1 christos
9303 1.1 christos
9304 1.1 christos if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9305 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9306 1.1 christos else
9307 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9308 1.1 christos fi
9309 1.1 christos
9310 1.1 christos ac_ext=cpp
9311 1.1 christos ac_cpp='$CXXCPP $CPPFLAGS'
9312 1.1 christos ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9313 1.1 christos ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9314 1.1 christos ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9315 1.1 christos
9316 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 1.1 christos /* end confdefs.h. */
9318 1.1 christos
9319 1.1 christos
9320 1.1 christos int
9321 1.1 christos main ()
9322 1.1 christos {
9323 1.1 christos
9324 1.1 christos return 0;
9325 1.1 christos
9326 1.1 christos ;
9327 1.1 christos return 0;
9328 1.1 christos }
9329 1.1 christos _ACEOF
9330 1.1 christos if ac_fn_cxx_try_compile "$LINENO"; then :
9331 1.1 christos je_cv_cxxflags_added=-O
9332 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9333 1.1 christos $as_echo "yes" >&6; }
9334 1.1 christos else
9335 1.1 christos je_cv_cxxflags_added=
9336 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9337 1.1 christos $as_echo "no" >&6; }
9338 1.1 christos CONFIGURE_CXXFLAGS="${T_CONFIGURE_CXXFLAGS}"
9339 1.1 christos
9340 1.1 christos fi
9341 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9342 1.1 christos ac_ext=c
9343 1.1 christos ac_cpp='$CPP $CPPFLAGS'
9344 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9345 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9346 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu
9347 1.1 christos
9348 1.1 christos if test "x${CONFIGURE_CXXFLAGS}" = "x" -o "x${SPECIFIED_CXXFLAGS}" = "x" ; then
9349 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS}${SPECIFIED_CXXFLAGS}"
9350 1.1 christos else
9351 1.1 christos CXXFLAGS="${CONFIGURE_CXXFLAGS} ${SPECIFIED_CXXFLAGS}"
9352 1.1 christos fi
9353 1.1 christos
9354 1.1 christos
9355 1.1 christos fi
9356 1.1 christos fi
9357 1.1 christos
9358 1.1 christos # Check whether --enable-stats was given.
9359 1.1 christos if test "${enable_stats+set}" = set; then :
9360 1.1 christos enableval=$enable_stats; if test "x$enable_stats" = "xno" ; then
9361 1.1 christos enable_stats="0"
9362 1.1 christos else
9363 1.1 christos enable_stats="1"
9364 1.1 christos fi
9365 1.1 christos
9366 1.1 christos else
9367 1.1 christos enable_stats="1"
9368 1.1 christos
9369 1.1 christos fi
9370 1.1 christos
9371 1.1 christos if test "x$enable_stats" = "x1" ; then
9372 1.1 christos $as_echo "#define JEMALLOC_STATS " >>confdefs.h
9373 1.1 christos
9374 1.1 christos fi
9375 1.1 christos
9376 1.1 christos
9377 1.1 christos # Check whether --enable-prof was given.
9378 1.1 christos if test "${enable_prof+set}" = set; then :
9379 1.1 christos enableval=$enable_prof; if test "x$enable_prof" = "xno" ; then
9380 1.1 christos enable_prof="0"
9381 1.1 christos else
9382 1.1 christos enable_prof="1"
9383 1.1 christos fi
9384 1.1 christos
9385 1.1 christos else
9386 1.1 christos enable_prof="0"
9387 1.1 christos
9388 1.1 christos fi
9389 1.1 christos
9390 1.1 christos if test "x$enable_prof" = "x1" ; then
9391 1.1 christos backtrace_method=""
9392 1.1 christos else
9393 1.1 christos backtrace_method="N/A"
9394 1.1 christos fi
9395 1.1 christos
9396 1.1 christos # Check whether --enable-prof-libunwind was given.
9397 1.1 christos if test "${enable_prof_libunwind+set}" = set; then :
9398 1.1 christos enableval=$enable_prof_libunwind; if test "x$enable_prof_libunwind" = "xno" ; then
9399 1.1 christos enable_prof_libunwind="0"
9400 1.1 christos else
9401 1.1 christos enable_prof_libunwind="1"
9402 1.1 christos fi
9403 1.1 christos
9404 1.1 christos else
9405 1.1 christos enable_prof_libunwind="0"
9406 1.1 christos
9407 1.1 christos fi
9408 1.1 christos
9409 1.1 christos
9410 1.1 christos # Check whether --with-static_libunwind was given.
9411 1.1 christos if test "${with_static_libunwind+set}" = set; then :
9412 1.1 christos withval=$with_static_libunwind; if test "x$with_static_libunwind" = "xno" ; then
9413 1.1 christos LUNWIND="-lunwind"
9414 1.1 christos else
9415 1.1 christos if test ! -f "$with_static_libunwind" ; then
9416 1.1 christos as_fn_error $? "Static libunwind not found: $with_static_libunwind" "$LINENO" 5
9417 1.1 christos fi
9418 1.1 christos LUNWIND="$with_static_libunwind"
9419 1.1 christos fi
9420 1.1 christos else
9421 1.1 christos LUNWIND="-lunwind"
9422 1.1 christos
9423 1.1 christos fi
9424 1.1 christos
9425 1.1 christos if test "x$backtrace_method" = "x" -a "x$enable_prof_libunwind" = "x1" ; then
9426 1.1 christos for ac_header in libunwind.h
9427 1.1 christos do :
9428 1.1 christos ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
9429 1.1 christos if test "x$ac_cv_header_libunwind_h" = xyes; then :
9430 1.1 christos cat >>confdefs.h <<_ACEOF
9431 1.1 christos #define HAVE_LIBUNWIND_H 1
9432 1.1 christos _ACEOF
9433 1.1 christos
9434 1.1 christos else
9435 1.1 christos enable_prof_libunwind="0"
9436 1.1 christos fi
9437 1.1 christos
9438 1.1 christos done
9439 1.1 christos
9440 1.1 christos if test "x$LUNWIND" = "x-lunwind" ; then
9441 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unw_backtrace in -lunwind" >&5
9442 1.1 christos $as_echo_n "checking for unw_backtrace in -lunwind... " >&6; }
9443 1.1 christos if ${ac_cv_lib_unwind_unw_backtrace+:} false; then :
9444 1.1 christos $as_echo_n "(cached) " >&6
9445 1.1 christos else
9446 1.1 christos ac_check_lib_save_LIBS=$LIBS
9447 1.1 christos LIBS="-lunwind $LIBS"
9448 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 1.1 christos /* end confdefs.h. */
9450 1.1 christos
9451 1.1 christos /* Override any GCC internal prototype to avoid an error.
9452 1.1 christos Use char because int might match the return type of a GCC
9453 1.1 christos builtin and then its argument prototype would still apply. */
9454 1.1 christos #ifdef __cplusplus
9455 1.1 christos extern "C"
9456 1.1 christos #endif
9457 1.1 christos char unw_backtrace ();
9458 1.1 christos int
9459 1.1 christos main ()
9460 1.1 christos {
9461 1.1 christos return unw_backtrace ();
9462 1.1 christos ;
9463 1.1 christos return 0;
9464 1.1 christos }
9465 1.1 christos _ACEOF
9466 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
9467 1.1 christos ac_cv_lib_unwind_unw_backtrace=yes
9468 1.1 christos else
9469 1.1 christos ac_cv_lib_unwind_unw_backtrace=no
9470 1.1 christos fi
9471 1.1 christos rm -f core conftest.err conftest.$ac_objext \
9472 1.1 christos conftest$ac_exeext conftest.$ac_ext
9473 1.1 christos LIBS=$ac_check_lib_save_LIBS
9474 1.1 christos fi
9475 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_unw_backtrace" >&5
9476 1.1 christos $as_echo "$ac_cv_lib_unwind_unw_backtrace" >&6; }
9477 1.1 christos if test "x$ac_cv_lib_unwind_unw_backtrace" = xyes; then :
9478 1.1 christos T_APPEND_V=$LUNWIND
9479 1.1 christos if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9480 1.1 christos LIBS="${LIBS}${T_APPEND_V}"
9481 1.1 christos else
9482 1.1 christos LIBS="${LIBS} ${T_APPEND_V}"
9483 1.1 christos fi
9484 1.1 christos
9485 1.1 christos
9486 1.1 christos else
9487 1.1 christos enable_prof_libunwind="0"
9488 1.1 christos fi
9489 1.1 christos
9490 1.1 christos else
9491 1.1 christos T_APPEND_V=$LUNWIND
9492 1.1 christos if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9493 1.1 christos LIBS="${LIBS}${T_APPEND_V}"
9494 1.1 christos else
9495 1.1 christos LIBS="${LIBS} ${T_APPEND_V}"
9496 1.1 christos fi
9497 1.1 christos
9498 1.1 christos
9499 1.1 christos fi
9500 1.1 christos if test "x${enable_prof_libunwind}" = "x1" ; then
9501 1.1 christos backtrace_method="libunwind"
9502 1.1 christos $as_echo "#define JEMALLOC_PROF_LIBUNWIND " >>confdefs.h
9503 1.1 christos
9504 1.1 christos fi
9505 1.1 christos fi
9506 1.1 christos
9507 1.1 christos # Check whether --enable-prof-libgcc was given.
9508 1.1 christos if test "${enable_prof_libgcc+set}" = set; then :
9509 1.1 christos enableval=$enable_prof_libgcc; if test "x$enable_prof_libgcc" = "xno" ; then
9510 1.1 christos enable_prof_libgcc="0"
9511 1.1 christos else
9512 1.1 christos enable_prof_libgcc="1"
9513 1.1 christos fi
9514 1.1 christos
9515 1.1 christos else
9516 1.1 christos enable_prof_libgcc="1"
9517 1.1 christos
9518 1.1 christos fi
9519 1.1 christos
9520 1.1 christos if test "x$backtrace_method" = "x" -a "x$enable_prof_libgcc" = "x1" \
9521 1.1 christos -a "x$GCC" = "xyes" ; then
9522 1.1 christos for ac_header in unwind.h
9523 1.1 christos do :
9524 1.1 christos ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
9525 1.1 christos if test "x$ac_cv_header_unwind_h" = xyes; then :
9526 1.1 christos cat >>confdefs.h <<_ACEOF
9527 1.1 christos #define HAVE_UNWIND_H 1
9528 1.1 christos _ACEOF
9529 1.1 christos
9530 1.1 christos else
9531 1.1 christos enable_prof_libgcc="0"
9532 1.1 christos fi
9533 1.1 christos
9534 1.1 christos done
9535 1.1 christos
9536 1.1 christos if test "x${enable_prof_libgcc}" = "x1" ; then
9537 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_Backtrace in -lgcc" >&5
9538 1.1 christos $as_echo_n "checking for _Unwind_Backtrace in -lgcc... " >&6; }
9539 1.1 christos if ${ac_cv_lib_gcc__Unwind_Backtrace+:} false; then :
9540 1.1 christos $as_echo_n "(cached) " >&6
9541 1.1 christos else
9542 1.1 christos ac_check_lib_save_LIBS=$LIBS
9543 1.1 christos LIBS="-lgcc $LIBS"
9544 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545 1.1 christos /* end confdefs.h. */
9546 1.1 christos
9547 1.1 christos /* Override any GCC internal prototype to avoid an error.
9548 1.1 christos Use char because int might match the return type of a GCC
9549 1.1 christos builtin and then its argument prototype would still apply. */
9550 1.1 christos #ifdef __cplusplus
9551 1.1 christos extern "C"
9552 1.1 christos #endif
9553 1.1 christos char _Unwind_Backtrace ();
9554 1.1 christos int
9555 1.1 christos main ()
9556 1.1 christos {
9557 1.1 christos return _Unwind_Backtrace ();
9558 1.1 christos ;
9559 1.1 christos return 0;
9560 1.1 christos }
9561 1.1 christos _ACEOF
9562 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
9563 1.1 christos ac_cv_lib_gcc__Unwind_Backtrace=yes
9564 1.1 christos else
9565 1.1 christos ac_cv_lib_gcc__Unwind_Backtrace=no
9566 1.1 christos fi
9567 1.1 christos rm -f core conftest.err conftest.$ac_objext \
9568 1.1 christos conftest$ac_exeext conftest.$ac_ext
9569 1.1 christos LIBS=$ac_check_lib_save_LIBS
9570 1.1 christos fi
9571 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc__Unwind_Backtrace" >&5
9572 1.1 christos $as_echo "$ac_cv_lib_gcc__Unwind_Backtrace" >&6; }
9573 1.1 christos if test "x$ac_cv_lib_gcc__Unwind_Backtrace" = xyes; then :
9574 1.1 christos T_APPEND_V=-lgcc
9575 1.1 christos if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9576 1.1 christos LIBS="${LIBS}${T_APPEND_V}"
9577 1.1 christos else
9578 1.1 christos LIBS="${LIBS} ${T_APPEND_V}"
9579 1.1 christos fi
9580 1.1 christos
9581 1.1 christos
9582 1.1 christos else
9583 1.1 christos enable_prof_libgcc="0"
9584 1.1 christos fi
9585 1.1 christos
9586 1.1 christos fi
9587 1.1 christos if test "x${enable_prof_libgcc}" = "x1" ; then
9588 1.1 christos backtrace_method="libgcc"
9589 1.1 christos $as_echo "#define JEMALLOC_PROF_LIBGCC " >>confdefs.h
9590 1.1 christos
9591 1.1 christos fi
9592 1.1 christos else
9593 1.1 christos enable_prof_libgcc="0"
9594 1.1 christos fi
9595 1.1 christos
9596 1.1 christos # Check whether --enable-prof-gcc was given.
9597 1.1 christos if test "${enable_prof_gcc+set}" = set; then :
9598 1.1 christos enableval=$enable_prof_gcc; if test "x$enable_prof_gcc" = "xno" ; then
9599 1.1 christos enable_prof_gcc="0"
9600 1.1 christos else
9601 1.1 christos enable_prof_gcc="1"
9602 1.1 christos fi
9603 1.1 christos
9604 1.1 christos else
9605 1.1 christos enable_prof_gcc="1"
9606 1.1 christos
9607 1.1 christos fi
9608 1.1 christos
9609 1.1 christos if test "x$backtrace_method" = "x" -a "x$enable_prof_gcc" = "x1" \
9610 1.1 christos -a "x$GCC" = "xyes" ; then
9611 1.1 christos
9612 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fno-omit-frame-pointer" >&5
9613 1.1 christos $as_echo_n "checking whether compiler supports -fno-omit-frame-pointer... " >&6; }
9614 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
9615 1.1 christos T_APPEND_V=-fno-omit-frame-pointer
9616 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9617 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
9618 1.1 christos else
9619 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
9620 1.1 christos fi
9621 1.1 christos
9622 1.1 christos
9623 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9624 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9625 1.1 christos else
9626 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9627 1.1 christos fi
9628 1.1 christos
9629 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 1.1 christos /* end confdefs.h. */
9631 1.1 christos
9632 1.1 christos
9633 1.1 christos int
9634 1.1 christos main ()
9635 1.1 christos {
9636 1.1 christos
9637 1.1 christos return 0;
9638 1.1 christos
9639 1.1 christos ;
9640 1.1 christos return 0;
9641 1.1 christos }
9642 1.1 christos _ACEOF
9643 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
9644 1.1 christos je_cv_cflags_added=-fno-omit-frame-pointer
9645 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9646 1.1 christos $as_echo "yes" >&6; }
9647 1.1 christos else
9648 1.1 christos je_cv_cflags_added=
9649 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650 1.1 christos $as_echo "no" >&6; }
9651 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
9652 1.1 christos
9653 1.1 christos fi
9654 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9655 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
9656 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
9657 1.1 christos else
9658 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
9659 1.1 christos fi
9660 1.1 christos
9661 1.1 christos
9662 1.1 christos backtrace_method="gcc intrinsics"
9663 1.1 christos $as_echo "#define JEMALLOC_PROF_GCC " >>confdefs.h
9664 1.1 christos
9665 1.1 christos else
9666 1.1 christos enable_prof_gcc="0"
9667 1.1 christos fi
9668 1.1 christos
9669 1.1 christos if test "x$backtrace_method" = "x" ; then
9670 1.1 christos backtrace_method="none (disabling profiling)"
9671 1.1 christos enable_prof="0"
9672 1.1 christos fi
9673 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking configured backtracing method" >&5
9674 1.1 christos $as_echo_n "checking configured backtracing method... " >&6; }
9675 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $backtrace_method" >&5
9676 1.1 christos $as_echo "$backtrace_method" >&6; }
9677 1.1 christos if test "x$enable_prof" = "x1" ; then
9678 1.1 christos T_APPEND_V=$LM
9679 1.1 christos if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
9680 1.1 christos LIBS="${LIBS}${T_APPEND_V}"
9681 1.1 christos else
9682 1.1 christos LIBS="${LIBS} ${T_APPEND_V}"
9683 1.1 christos fi
9684 1.1 christos
9685 1.1 christos
9686 1.1 christos
9687 1.1 christos $as_echo "#define JEMALLOC_PROF " >>confdefs.h
9688 1.1 christos
9689 1.1 christos fi
9690 1.1 christos
9691 1.1 christos
9692 1.1 christos if test "x${maps_coalesce}" = "x1" ; then
9693 1.1 christos $as_echo "#define JEMALLOC_MAPS_COALESCE " >>confdefs.h
9694 1.1 christos
9695 1.1 christos fi
9696 1.1 christos
9697 1.1 christos if test "x$default_retain" = "x1" ; then
9698 1.1 christos $as_echo "#define JEMALLOC_RETAIN " >>confdefs.h
9699 1.1 christos
9700 1.1 christos fi
9701 1.1 christos
9702 1.1 christos have_dss="1"
9703 1.1 christos ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
9704 1.1 christos if test "x$ac_cv_func_sbrk" = xyes; then :
9705 1.1 christos have_sbrk="1"
9706 1.1 christos else
9707 1.1 christos have_sbrk="0"
9708 1.1 christos fi
9709 1.1 christos
9710 1.1 christos if test "x$have_sbrk" = "x1" ; then
9711 1.1 christos if test "x$sbrk_deprecated" = "x1" ; then
9712 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling dss allocation because sbrk is deprecated" >&5
9713 1.1 christos $as_echo "Disabling dss allocation because sbrk is deprecated" >&6; }
9714 1.1 christos have_dss="0"
9715 1.1 christos fi
9716 1.1 christos else
9717 1.1 christos have_dss="0"
9718 1.1 christos fi
9719 1.1 christos
9720 1.1 christos if test "x$have_dss" = "x1" ; then
9721 1.1 christos $as_echo "#define JEMALLOC_DSS " >>confdefs.h
9722 1.1 christos
9723 1.1 christos fi
9724 1.1 christos
9725 1.1 christos # Check whether --enable-fill was given.
9726 1.1 christos if test "${enable_fill+set}" = set; then :
9727 1.1 christos enableval=$enable_fill; if test "x$enable_fill" = "xno" ; then
9728 1.1 christos enable_fill="0"
9729 1.1 christos else
9730 1.1 christos enable_fill="1"
9731 1.1 christos fi
9732 1.1 christos
9733 1.1 christos else
9734 1.1 christos enable_fill="1"
9735 1.1 christos
9736 1.1 christos fi
9737 1.1 christos
9738 1.1 christos if test "x$enable_fill" = "x1" ; then
9739 1.1 christos $as_echo "#define JEMALLOC_FILL " >>confdefs.h
9740 1.1 christos
9741 1.1 christos fi
9742 1.1 christos
9743 1.1 christos
9744 1.1 christos # Check whether --enable-utrace was given.
9745 1.1 christos if test "${enable_utrace+set}" = set; then :
9746 1.1 christos enableval=$enable_utrace; if test "x$enable_utrace" = "xno" ; then
9747 1.1 christos enable_utrace="0"
9748 1.1 christos else
9749 1.1 christos enable_utrace="1"
9750 1.1 christos fi
9751 1.1 christos
9752 1.1 christos else
9753 1.1 christos enable_utrace="0"
9754 1.1 christos
9755 1.1 christos fi
9756 1.1 christos
9757 1.1 christos
9758 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utrace(2) is compilable" >&5
9759 1.1 christos $as_echo_n "checking whether utrace(2) is compilable... " >&6; }
9760 1.1 christos if ${je_cv_utrace+:} false; then :
9761 1.1 christos $as_echo_n "(cached) " >&6
9762 1.1 christos else
9763 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 1.1 christos /* end confdefs.h. */
9765 1.1 christos
9766 1.1 christos #include <sys/types.h>
9767 1.1 christos #include <sys/param.h>
9768 1.1 christos #include <sys/time.h>
9769 1.1 christos #include <sys/uio.h>
9770 1.1 christos #include <sys/ktrace.h>
9771 1.1 christos
9772 1.1 christos int
9773 1.1 christos main ()
9774 1.1 christos {
9775 1.1 christos
9776 1.1 christos utrace((void *)0, 0);
9777 1.1 christos
9778 1.1 christos ;
9779 1.1 christos return 0;
9780 1.1 christos }
9781 1.1 christos _ACEOF
9782 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
9783 1.1 christos je_cv_utrace=yes
9784 1.1 christos else
9785 1.1 christos je_cv_utrace=no
9786 1.1 christos fi
9787 1.1 christos rm -f core conftest.err conftest.$ac_objext \
9788 1.1 christos conftest$ac_exeext conftest.$ac_ext
9789 1.1 christos fi
9790 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_utrace" >&5
9791 1.1 christos $as_echo "$je_cv_utrace" >&6; }
9792 1.1 christos
9793 1.1 christos if test "x${je_cv_utrace}" = "xno" ; then
9794 1.1 christos enable_utrace="0"
9795 1.1 christos fi
9796 1.1 christos if test "x$enable_utrace" = "x1" ; then
9797 1.1 christos $as_echo "#define JEMALLOC_UTRACE " >>confdefs.h
9798 1.1 christos
9799 1.1 christos fi
9800 1.1 christos
9801 1.1 christos
9802 1.1 christos # Check whether --enable-xmalloc was given.
9803 1.1 christos if test "${enable_xmalloc+set}" = set; then :
9804 1.1 christos enableval=$enable_xmalloc; if test "x$enable_xmalloc" = "xno" ; then
9805 1.1 christos enable_xmalloc="0"
9806 1.1 christos else
9807 1.1 christos enable_xmalloc="1"
9808 1.1 christos fi
9809 1.1 christos
9810 1.1 christos else
9811 1.1 christos enable_xmalloc="0"
9812 1.1 christos
9813 1.1 christos fi
9814 1.1 christos
9815 1.1 christos if test "x$enable_xmalloc" = "x1" ; then
9816 1.1 christos $as_echo "#define JEMALLOC_XMALLOC " >>confdefs.h
9817 1.1 christos
9818 1.1 christos fi
9819 1.1 christos
9820 1.1 christos
9821 1.1 christos # Check whether --enable-cache-oblivious was given.
9822 1.1 christos if test "${enable_cache_oblivious+set}" = set; then :
9823 1.1 christos enableval=$enable_cache_oblivious; if test "x$enable_cache_oblivious" = "xno" ; then
9824 1.1 christos enable_cache_oblivious="0"
9825 1.1 christos else
9826 1.1 christos enable_cache_oblivious="1"
9827 1.1 christos fi
9828 1.1 christos
9829 1.1 christos else
9830 1.1 christos enable_cache_oblivious="1"
9831 1.1 christos
9832 1.1 christos fi
9833 1.1 christos
9834 1.1 christos if test "x$enable_cache_oblivious" = "x1" ; then
9835 1.1 christos $as_echo "#define JEMALLOC_CACHE_OBLIVIOUS " >>confdefs.h
9836 1.1 christos
9837 1.1 christos fi
9838 1.1 christos
9839 1.1 christos
9840 1.1 christos # Check whether --enable-log was given.
9841 1.1 christos if test "${enable_log+set}" = set; then :
9842 1.1 christos enableval=$enable_log; if test "x$enable_log" = "xno" ; then
9843 1.1 christos enable_log="0"
9844 1.1 christos else
9845 1.1 christos enable_log="1"
9846 1.1 christos fi
9847 1.1 christos
9848 1.1 christos else
9849 1.1 christos enable_log="0"
9850 1.1 christos
9851 1.1 christos fi
9852 1.1 christos
9853 1.1 christos if test "x$enable_log" = "x1" ; then
9854 1.1 christos $as_echo "#define JEMALLOC_LOG " >>confdefs.h
9855 1.1 christos
9856 1.1 christos fi
9857 1.1 christos
9858 1.1 christos
9859 1.1 christos
9860 1.1 christos
9861 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_unreachable is compilable" >&5
9862 1.1 christos $as_echo_n "checking whether a program using __builtin_unreachable is compilable... " >&6; }
9863 1.1 christos if ${je_cv_gcc_builtin_unreachable+:} false; then :
9864 1.1 christos $as_echo_n "(cached) " >&6
9865 1.1 christos else
9866 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867 1.1 christos /* end confdefs.h. */
9868 1.1 christos
9869 1.1 christos void foo (void) {
9870 1.1 christos __builtin_unreachable();
9871 1.1 christos }
9872 1.1 christos
9873 1.1 christos int
9874 1.1 christos main ()
9875 1.1 christos {
9876 1.1 christos
9877 1.1 christos {
9878 1.1 christos foo();
9879 1.1 christos }
9880 1.1 christos
9881 1.1 christos ;
9882 1.1 christos return 0;
9883 1.1 christos }
9884 1.1 christos _ACEOF
9885 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
9886 1.1 christos je_cv_gcc_builtin_unreachable=yes
9887 1.1 christos else
9888 1.1 christos je_cv_gcc_builtin_unreachable=no
9889 1.1 christos fi
9890 1.1 christos rm -f core conftest.err conftest.$ac_objext \
9891 1.1 christos conftest$ac_exeext conftest.$ac_ext
9892 1.1 christos fi
9893 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_unreachable" >&5
9894 1.1 christos $as_echo "$je_cv_gcc_builtin_unreachable" >&6; }
9895 1.1 christos
9896 1.1 christos if test "x${je_cv_gcc_builtin_unreachable}" = "xyes" ; then
9897 1.1 christos $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE __builtin_unreachable" >>confdefs.h
9898 1.1 christos
9899 1.1 christos else
9900 1.1 christos $as_echo "#define JEMALLOC_INTERNAL_UNREACHABLE abort" >>confdefs.h
9901 1.1 christos
9902 1.1 christos fi
9903 1.1 christos
9904 1.1 christos
9905 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using __builtin_ffsl is compilable" >&5
9906 1.1 christos $as_echo_n "checking whether a program using __builtin_ffsl is compilable... " >&6; }
9907 1.1 christos if ${je_cv_gcc_builtin_ffsl+:} false; then :
9908 1.1 christos $as_echo_n "(cached) " >&6
9909 1.1 christos else
9910 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911 1.1 christos /* end confdefs.h. */
9912 1.1 christos
9913 1.1 christos #include <stdio.h>
9914 1.1 christos #include <strings.h>
9915 1.1 christos #include <string.h>
9916 1.1 christos
9917 1.1 christos int
9918 1.1 christos main ()
9919 1.1 christos {
9920 1.1 christos
9921 1.1 christos {
9922 1.1 christos int rv = __builtin_ffsl(0x08);
9923 1.1 christos printf("%d\n", rv);
9924 1.1 christos }
9925 1.1 christos
9926 1.1 christos ;
9927 1.1 christos return 0;
9928 1.1 christos }
9929 1.1 christos _ACEOF
9930 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
9931 1.1 christos je_cv_gcc_builtin_ffsl=yes
9932 1.1 christos else
9933 1.1 christos je_cv_gcc_builtin_ffsl=no
9934 1.1 christos fi
9935 1.1 christos rm -f core conftest.err conftest.$ac_objext \
9936 1.1 christos conftest$ac_exeext conftest.$ac_ext
9937 1.1 christos fi
9938 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_builtin_ffsl" >&5
9939 1.1 christos $as_echo "$je_cv_gcc_builtin_ffsl" >&6; }
9940 1.1 christos
9941 1.1 christos if test "x${je_cv_gcc_builtin_ffsl}" = "xyes" ; then
9942 1.1 christos $as_echo "#define JEMALLOC_INTERNAL_FFSLL __builtin_ffsll" >>confdefs.h
9943 1.1 christos
9944 1.1 christos $as_echo "#define JEMALLOC_INTERNAL_FFSL __builtin_ffsl" >>confdefs.h
9945 1.1 christos
9946 1.1 christos $as_echo "#define JEMALLOC_INTERNAL_FFS __builtin_ffs" >>confdefs.h
9947 1.1 christos
9948 1.1 christos else
9949 1.1 christos
9950 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program using ffsl is compilable" >&5
9951 1.1 christos $as_echo_n "checking whether a program using ffsl is compilable... " >&6; }
9952 1.1 christos if ${je_cv_function_ffsl+:} false; then :
9953 1.1 christos $as_echo_n "(cached) " >&6
9954 1.1 christos else
9955 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9956 1.1 christos /* end confdefs.h. */
9957 1.1 christos
9958 1.1 christos #include <stdio.h>
9959 1.1 christos #include <strings.h>
9960 1.1 christos #include <string.h>
9961 1.1 christos
9962 1.1 christos int
9963 1.1 christos main ()
9964 1.1 christos {
9965 1.1 christos
9966 1.1 christos {
9967 1.1 christos int rv = ffsl(0x08);
9968 1.1 christos printf("%d\n", rv);
9969 1.1 christos }
9970 1.1 christos
9971 1.1 christos ;
9972 1.1 christos return 0;
9973 1.1 christos }
9974 1.1 christos _ACEOF
9975 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
9976 1.1 christos je_cv_function_ffsl=yes
9977 1.1 christos else
9978 1.1 christos je_cv_function_ffsl=no
9979 1.1 christos fi
9980 1.1 christos rm -f core conftest.err conftest.$ac_objext \
9981 1.1 christos conftest$ac_exeext conftest.$ac_ext
9982 1.1 christos fi
9983 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_function_ffsl" >&5
9984 1.1 christos $as_echo "$je_cv_function_ffsl" >&6; }
9985 1.1 christos
9986 1.1 christos if test "x${je_cv_function_ffsl}" = "xyes" ; then
9987 1.1 christos $as_echo "#define JEMALLOC_INTERNAL_FFSLL ffsll" >>confdefs.h
9988 1.1 christos
9989 1.1 christos $as_echo "#define JEMALLOC_INTERNAL_FFSL ffsl" >>confdefs.h
9990 1.1 christos
9991 1.1 christos $as_echo "#define JEMALLOC_INTERNAL_FFS ffs" >>confdefs.h
9992 1.1 christos
9993 1.1 christos else
9994 1.1 christos as_fn_error $? "Cannot build without ffsl(3) or __builtin_ffsl()" "$LINENO" 5
9995 1.1 christos fi
9996 1.1 christos fi
9997 1.1 christos
9998 1.1 christos
9999 1.1 christos # Check whether --with-lg_quantum was given.
10000 1.1 christos if test "${with_lg_quantum+set}" = set; then :
10001 1.1 christos withval=$with_lg_quantum; LG_QUANTA="$with_lg_quantum"
10002 1.1 christos else
10003 1.1 christos LG_QUANTA="3 4"
10004 1.1 christos fi
10005 1.1 christos
10006 1.1 christos if test "x$with_lg_quantum" != "x" ; then
10007 1.1 christos cat >>confdefs.h <<_ACEOF
10008 1.1 christos #define LG_QUANTUM $with_lg_quantum
10009 1.1 christos _ACEOF
10010 1.1 christos
10011 1.1 christos fi
10012 1.1 christos
10013 1.1 christos
10014 1.1 christos # Check whether --with-lg_page was given.
10015 1.1 christos if test "${with_lg_page+set}" = set; then :
10016 1.1 christos withval=$with_lg_page; LG_PAGE="$with_lg_page"
10017 1.1 christos else
10018 1.1 christos LG_PAGE="detect"
10019 1.1 christos fi
10020 1.1 christos
10021 1.1 christos if test "x$LG_PAGE" = "xdetect"; then
10022 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking LG_PAGE" >&5
10023 1.1 christos $as_echo_n "checking LG_PAGE... " >&6; }
10024 1.1 christos if ${je_cv_lg_page+:} false; then :
10025 1.1 christos $as_echo_n "(cached) " >&6
10026 1.1 christos else
10027 1.1 christos if test "$cross_compiling" = yes; then :
10028 1.1 christos je_cv_lg_page=12
10029 1.1 christos else
10030 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031 1.1 christos /* end confdefs.h. */
10032 1.1 christos
10033 1.1 christos #include <strings.h>
10034 1.1 christos #ifdef _WIN32
10035 1.1 christos #include <windows.h>
10036 1.1 christos #else
10037 1.1 christos #include <unistd.h>
10038 1.1 christos #endif
10039 1.1 christos #include <stdio.h>
10040 1.1 christos
10041 1.1 christos int
10042 1.1 christos main ()
10043 1.1 christos {
10044 1.1 christos
10045 1.1 christos int result;
10046 1.1 christos FILE *f;
10047 1.1 christos
10048 1.1 christos #ifdef _WIN32
10049 1.1 christos SYSTEM_INFO si;
10050 1.1 christos GetSystemInfo(&si);
10051 1.1 christos result = si.dwPageSize;
10052 1.1 christos #else
10053 1.1 christos result = sysconf(_SC_PAGESIZE);
10054 1.1 christos #endif
10055 1.1 christos if (result == -1) {
10056 1.1 christos return 1;
10057 1.1 christos }
10058 1.1 christos result = JEMALLOC_INTERNAL_FFSL(result) - 1;
10059 1.1 christos
10060 1.1 christos f = fopen("conftest.out", "w");
10061 1.1 christos if (f == NULL) {
10062 1.1 christos return 1;
10063 1.1 christos }
10064 1.1 christos fprintf(f, "%d", result);
10065 1.1 christos fclose(f);
10066 1.1 christos
10067 1.1 christos return 0;
10068 1.1 christos
10069 1.1 christos ;
10070 1.1 christos return 0;
10071 1.1 christos }
10072 1.1 christos _ACEOF
10073 1.1 christos if ac_fn_c_try_run "$LINENO"; then :
10074 1.1 christos je_cv_lg_page=`cat conftest.out`
10075 1.1 christos else
10076 1.1 christos je_cv_lg_page=undefined
10077 1.1 christos fi
10078 1.1 christos rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10079 1.1 christos conftest.$ac_objext conftest.beam conftest.$ac_ext
10080 1.1 christos fi
10081 1.1 christos
10082 1.1 christos fi
10083 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_lg_page" >&5
10084 1.1 christos $as_echo "$je_cv_lg_page" >&6; }
10085 1.1 christos fi
10086 1.1 christos if test "x${je_cv_lg_page}" != "x" ; then
10087 1.1 christos LG_PAGE="${je_cv_lg_page}"
10088 1.1 christos fi
10089 1.1 christos if test "x${LG_PAGE}" != "xundefined" ; then
10090 1.1 christos cat >>confdefs.h <<_ACEOF
10091 1.1 christos #define LG_PAGE $LG_PAGE
10092 1.1 christos _ACEOF
10093 1.1 christos
10094 1.1 christos else
10095 1.1 christos as_fn_error $? "cannot determine value for LG_PAGE" "$LINENO" 5
10096 1.1 christos fi
10097 1.1 christos
10098 1.1 christos
10099 1.1 christos # Check whether --with-lg_hugepage was given.
10100 1.1 christos if test "${with_lg_hugepage+set}" = set; then :
10101 1.1 christos withval=$with_lg_hugepage; je_cv_lg_hugepage="${with_lg_hugepage}"
10102 1.1 christos else
10103 1.1 christos je_cv_lg_hugepage=""
10104 1.1 christos fi
10105 1.1 christos
10106 1.1 christos if test "x${je_cv_lg_hugepage}" = "x" ; then
10107 1.1 christos if test -e "/proc/meminfo" ; then
10108 1.1 christos hpsk=`cat /proc/meminfo 2>/dev/null | \
10109 1.1 christos grep -e '^Hugepagesize:[[:space:]]\+[0-9]\+[[:space:]]kB$' | \
10110 1.1 christos awk '{print $2}'`
10111 1.1 christos if test "x${hpsk}" != "x" ; then
10112 1.1 christos je_cv_lg_hugepage=10
10113 1.1 christos while test "${hpsk}" -gt 1 ; do
10114 1.1 christos hpsk="$((hpsk / 2))"
10115 1.1 christos je_cv_lg_hugepage="$((je_cv_lg_hugepage + 1))"
10116 1.1 christos done
10117 1.1 christos fi
10118 1.1 christos fi
10119 1.1 christos
10120 1.1 christos if test "x${je_cv_lg_hugepage}" = "x" ; then
10121 1.1 christos je_cv_lg_hugepage=21
10122 1.1 christos fi
10123 1.1 christos fi
10124 1.1 christos if test "x${LG_PAGE}" != "xundefined" -a \
10125 1.1 christos "${je_cv_lg_hugepage}" -lt "${LG_PAGE}" ; then
10126 1.1 christos as_fn_error $? "Huge page size (2^${je_cv_lg_hugepage}) must be at least page size (2^${LG_PAGE})" "$LINENO" 5
10127 1.1 christos fi
10128 1.1 christos cat >>confdefs.h <<_ACEOF
10129 1.1 christos #define LG_HUGEPAGE ${je_cv_lg_hugepage}
10130 1.1 christos _ACEOF
10131 1.1 christos
10132 1.1 christos
10133 1.1 christos
10134 1.1 christos # Check whether --with-lg_page_sizes was given.
10135 1.1 christos if test "${with_lg_page_sizes+set}" = set; then :
10136 1.1 christos withval=$with_lg_page_sizes; LG_PAGE_SIZES="$with_lg_page_sizes"
10137 1.1 christos else
10138 1.1 christos LG_PAGE_SIZES="$LG_PAGE"
10139 1.1 christos fi
10140 1.1 christos
10141 1.1 christos
10142 1.1 christos
10143 1.1 christos
10144 1.1 christos # Check whether --with-version was given.
10145 1.1 christos if test "${with_version+set}" = set; then :
10146 1.1 christos withval=$with_version;
10147 1.1 christos echo "${with_version}" | grep '^[0-9]\+\.[0-9]\+\.[0-9]\+-[0-9]\+-g[0-9a-f]\+$' 2>&1 1>/dev/null
10148 1.1 christos if test $? -eq 0 ; then
10149 1.1 christos echo "$with_version" > "${objroot}VERSION"
10150 1.1 christos else
10151 1.1 christos echo "${with_version}" | grep '^VERSION$' 2>&1 1>/dev/null
10152 1.1 christos if test $? -ne 0 ; then
10153 1.1 christos as_fn_error $? "${with_version} does not match <major>.<minor>.<bugfix>-<nrev>-g<gid> or VERSION" "$LINENO" 5
10154 1.1 christos fi
10155 1.1 christos fi
10156 1.1 christos
10157 1.1 christos else
10158 1.1 christos
10159 1.1 christos if test "x`test ! \"${srcroot}\" && cd \"${srcroot}\"; git rev-parse --is-inside-work-tree 2>/dev/null`" = "xtrue" ; then
10160 1.1 christos for pattern in '[0-9].[0-9].[0-9]' '[0-9].[0-9].[0-9][0-9]' \
10161 1.1 christos '[0-9].[0-9][0-9].[0-9]' '[0-9].[0-9][0-9].[0-9][0-9]' \
10162 1.1 christos '[0-9][0-9].[0-9].[0-9]' '[0-9][0-9].[0-9].[0-9][0-9]' \
10163 1.1 christos '[0-9][0-9].[0-9][0-9].[0-9]' \
10164 1.1 christos '[0-9][0-9].[0-9][0-9].[0-9][0-9]'; do
10165 1.1 christos (test ! "${srcroot}" && cd "${srcroot}"; git describe --long --abbrev=40 --match="${pattern}") > "${objroot}VERSION.tmp" 2>/dev/null
10166 1.1 christos if test $? -eq 0 ; then
10167 1.1 christos mv "${objroot}VERSION.tmp" "${objroot}VERSION"
10168 1.1 christos break
10169 1.1 christos fi
10170 1.1 christos done
10171 1.1 christos fi
10172 1.1 christos rm -f "${objroot}VERSION.tmp"
10173 1.1 christos
10174 1.1 christos fi
10175 1.1 christos
10176 1.1 christos
10177 1.1 christos if test ! -e "${objroot}VERSION" ; then
10178 1.1 christos if test ! -e "${srcroot}VERSION" ; then
10179 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: Missing VERSION file, and unable to generate it; creating bogus VERSION" >&5
10180 1.1 christos $as_echo "Missing VERSION file, and unable to generate it; creating bogus VERSION" >&6; }
10181 1.1 christos echo "0.0.0-0-g0000000000000000000000000000000000000000" > "${objroot}VERSION"
10182 1.1 christos else
10183 1.1 christos cp ${srcroot}VERSION ${objroot}VERSION
10184 1.1 christos fi
10185 1.1 christos fi
10186 1.1 christos jemalloc_version=`cat "${objroot}VERSION"`
10187 1.1 christos jemalloc_version_major=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $1}'`
10188 1.1 christos jemalloc_version_minor=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $2}'`
10189 1.1 christos jemalloc_version_bugfix=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $3}'`
10190 1.1 christos jemalloc_version_nrev=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $4}'`
10191 1.1 christos jemalloc_version_gid=`echo ${jemalloc_version} | tr ".g-" " " | awk '{print $5}'`
10192 1.1 christos
10193 1.1 christos
10194 1.1 christos
10195 1.1 christos
10196 1.1 christos
10197 1.1 christos
10198 1.1 christos
10199 1.1 christos
10200 1.1 christos if test "x$abi" != "xpecoff" ; then
10201 1.1 christos $as_echo "#define JEMALLOC_HAVE_PTHREAD " >>confdefs.h
10202 1.1 christos
10203 1.1 christos for ac_header in pthread.h
10204 1.1 christos do :
10205 1.1 christos ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10206 1.1 christos if test "x$ac_cv_header_pthread_h" = xyes; then :
10207 1.1 christos cat >>confdefs.h <<_ACEOF
10208 1.1 christos #define HAVE_PTHREAD_H 1
10209 1.1 christos _ACEOF
10210 1.1 christos
10211 1.1 christos else
10212 1.1 christos as_fn_error $? "pthread.h is missing" "$LINENO" 5
10213 1.1 christos fi
10214 1.1 christos
10215 1.1 christos done
10216 1.1 christos
10217 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
10218 1.1 christos $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
10219 1.1 christos if ${ac_cv_lib_pthread_pthread_create+:} false; then :
10220 1.1 christos $as_echo_n "(cached) " >&6
10221 1.1 christos else
10222 1.1 christos ac_check_lib_save_LIBS=$LIBS
10223 1.1 christos LIBS="-lpthread $LIBS"
10224 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225 1.1 christos /* end confdefs.h. */
10226 1.1 christos
10227 1.1 christos /* Override any GCC internal prototype to avoid an error.
10228 1.1 christos Use char because int might match the return type of a GCC
10229 1.1 christos builtin and then its argument prototype would still apply. */
10230 1.1 christos #ifdef __cplusplus
10231 1.1 christos extern "C"
10232 1.1 christos #endif
10233 1.1 christos char pthread_create ();
10234 1.1 christos int
10235 1.1 christos main ()
10236 1.1 christos {
10237 1.1 christos return pthread_create ();
10238 1.1 christos ;
10239 1.1 christos return 0;
10240 1.1 christos }
10241 1.1 christos _ACEOF
10242 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
10243 1.1 christos ac_cv_lib_pthread_pthread_create=yes
10244 1.1 christos else
10245 1.1 christos ac_cv_lib_pthread_pthread_create=no
10246 1.1 christos fi
10247 1.1 christos rm -f core conftest.err conftest.$ac_objext \
10248 1.1 christos conftest$ac_exeext conftest.$ac_ext
10249 1.1 christos LIBS=$ac_check_lib_save_LIBS
10250 1.1 christos fi
10251 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
10252 1.1 christos $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
10253 1.1 christos if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
10254 1.1 christos T_APPEND_V=-lpthread
10255 1.1 christos if test "x${LIBS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10256 1.1 christos LIBS="${LIBS}${T_APPEND_V}"
10257 1.1 christos else
10258 1.1 christos LIBS="${LIBS} ${T_APPEND_V}"
10259 1.1 christos fi
10260 1.1 christos
10261 1.1 christos
10262 1.1 christos else
10263 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10264 1.1 christos $as_echo_n "checking for library containing pthread_create... " >&6; }
10265 1.1 christos if ${ac_cv_search_pthread_create+:} false; then :
10266 1.1 christos $as_echo_n "(cached) " >&6
10267 1.1 christos else
10268 1.1 christos ac_func_search_save_LIBS=$LIBS
10269 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 1.1 christos /* end confdefs.h. */
10271 1.1 christos
10272 1.1 christos /* Override any GCC internal prototype to avoid an error.
10273 1.1 christos Use char because int might match the return type of a GCC
10274 1.1 christos builtin and then its argument prototype would still apply. */
10275 1.1 christos #ifdef __cplusplus
10276 1.1 christos extern "C"
10277 1.1 christos #endif
10278 1.1 christos char pthread_create ();
10279 1.1 christos int
10280 1.1 christos main ()
10281 1.1 christos {
10282 1.1 christos return pthread_create ();
10283 1.1 christos ;
10284 1.1 christos return 0;
10285 1.1 christos }
10286 1.1 christos _ACEOF
10287 1.1 christos for ac_lib in '' ; do
10288 1.1 christos if test -z "$ac_lib"; then
10289 1.1 christos ac_res="none required"
10290 1.1 christos else
10291 1.1 christos ac_res=-l$ac_lib
10292 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10293 1.1 christos fi
10294 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
10295 1.1 christos ac_cv_search_pthread_create=$ac_res
10296 1.1 christos fi
10297 1.1 christos rm -f core conftest.err conftest.$ac_objext \
10298 1.1 christos conftest$ac_exeext
10299 1.1 christos if ${ac_cv_search_pthread_create+:} false; then :
10300 1.1 christos break
10301 1.1 christos fi
10302 1.1 christos done
10303 1.1 christos if ${ac_cv_search_pthread_create+:} false; then :
10304 1.1 christos
10305 1.1 christos else
10306 1.1 christos ac_cv_search_pthread_create=no
10307 1.1 christos fi
10308 1.1 christos rm conftest.$ac_ext
10309 1.1 christos LIBS=$ac_func_search_save_LIBS
10310 1.1 christos fi
10311 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10312 1.1 christos $as_echo "$ac_cv_search_pthread_create" >&6; }
10313 1.1 christos ac_res=$ac_cv_search_pthread_create
10314 1.1 christos if test "$ac_res" != no; then :
10315 1.1 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10316 1.1 christos
10317 1.1 christos else
10318 1.1 christos as_fn_error $? "libpthread is missing" "$LINENO" 5
10319 1.1 christos fi
10320 1.1 christos
10321 1.1 christos fi
10322 1.1 christos
10323 1.1 christos wrap_syms="${wrap_syms} pthread_create"
10324 1.1 christos have_pthread="1"
10325 1.1 christos have_dlsym="1"
10326 1.1 christos for ac_header in dlfcn.h
10327 1.1 christos do :
10328 1.1 christos ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10329 1.1 christos if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10330 1.1 christos cat >>confdefs.h <<_ACEOF
10331 1.1 christos #define HAVE_DLFCN_H 1
10332 1.1 christos _ACEOF
10333 1.1 christos ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
10334 1.1 christos if test "x$ac_cv_func_dlsym" = xyes; then :
10335 1.1 christos
10336 1.1 christos else
10337 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
10338 1.1 christos $as_echo_n "checking for dlsym in -ldl... " >&6; }
10339 1.1 christos if ${ac_cv_lib_dl_dlsym+:} false; then :
10340 1.1 christos $as_echo_n "(cached) " >&6
10341 1.1 christos else
10342 1.1 christos ac_check_lib_save_LIBS=$LIBS
10343 1.1 christos LIBS="-ldl $LIBS"
10344 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345 1.1 christos /* end confdefs.h. */
10346 1.1 christos
10347 1.1 christos /* Override any GCC internal prototype to avoid an error.
10348 1.1 christos Use char because int might match the return type of a GCC
10349 1.1 christos builtin and then its argument prototype would still apply. */
10350 1.1 christos #ifdef __cplusplus
10351 1.1 christos extern "C"
10352 1.1 christos #endif
10353 1.1 christos char dlsym ();
10354 1.1 christos int
10355 1.1 christos main ()
10356 1.1 christos {
10357 1.1 christos return dlsym ();
10358 1.1 christos ;
10359 1.1 christos return 0;
10360 1.1 christos }
10361 1.1 christos _ACEOF
10362 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
10363 1.1 christos ac_cv_lib_dl_dlsym=yes
10364 1.1 christos else
10365 1.1 christos ac_cv_lib_dl_dlsym=no
10366 1.1 christos fi
10367 1.1 christos rm -f core conftest.err conftest.$ac_objext \
10368 1.1 christos conftest$ac_exeext conftest.$ac_ext
10369 1.1 christos LIBS=$ac_check_lib_save_LIBS
10370 1.1 christos fi
10371 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
10372 1.1 christos $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
10373 1.1 christos if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
10374 1.1 christos LIBS="$LIBS -ldl"
10375 1.1 christos else
10376 1.1 christos have_dlsym="0"
10377 1.1 christos fi
10378 1.1 christos
10379 1.1 christos fi
10380 1.1 christos
10381 1.1 christos else
10382 1.1 christos have_dlsym="0"
10383 1.1 christos fi
10384 1.1 christos
10385 1.1 christos done
10386 1.1 christos
10387 1.1 christos if test "x$have_dlsym" = "x1" ; then
10388 1.1 christos $as_echo "#define JEMALLOC_HAVE_DLSYM " >>confdefs.h
10389 1.1 christos
10390 1.1 christos fi
10391 1.1 christos
10392 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_atfork(3) is compilable" >&5
10393 1.1 christos $as_echo_n "checking whether pthread_atfork(3) is compilable... " >&6; }
10394 1.1 christos if ${je_cv_pthread_atfork+:} false; then :
10395 1.1 christos $as_echo_n "(cached) " >&6
10396 1.1 christos else
10397 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398 1.1 christos /* end confdefs.h. */
10399 1.1 christos
10400 1.1 christos #include <pthread.h>
10401 1.1 christos
10402 1.1 christos int
10403 1.1 christos main ()
10404 1.1 christos {
10405 1.1 christos
10406 1.1 christos pthread_atfork((void *)0, (void *)0, (void *)0);
10407 1.1 christos
10408 1.1 christos ;
10409 1.1 christos return 0;
10410 1.1 christos }
10411 1.1 christos _ACEOF
10412 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
10413 1.1 christos je_cv_pthread_atfork=yes
10414 1.1 christos else
10415 1.1 christos je_cv_pthread_atfork=no
10416 1.1 christos fi
10417 1.1 christos rm -f core conftest.err conftest.$ac_objext \
10418 1.1 christos conftest$ac_exeext conftest.$ac_ext
10419 1.1 christos fi
10420 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_atfork" >&5
10421 1.1 christos $as_echo "$je_cv_pthread_atfork" >&6; }
10422 1.1 christos
10423 1.1 christos if test "x${je_cv_pthread_atfork}" = "xyes" ; then
10424 1.1 christos $as_echo "#define JEMALLOC_HAVE_PTHREAD_ATFORK " >>confdefs.h
10425 1.1 christos
10426 1.1 christos fi
10427 1.1 christos
10428 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_setname_np(3) is compilable" >&5
10429 1.1 christos $as_echo_n "checking whether pthread_setname_np(3) is compilable... " >&6; }
10430 1.1 christos if ${je_cv_pthread_setname_np+:} false; then :
10431 1.1 christos $as_echo_n "(cached) " >&6
10432 1.1 christos else
10433 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434 1.1 christos /* end confdefs.h. */
10435 1.1 christos
10436 1.1 christos #include <pthread.h>
10437 1.1 christos
10438 1.1 christos int
10439 1.1 christos main ()
10440 1.1 christos {
10441 1.1 christos
10442 1.1 christos pthread_setname_np(pthread_self(), "setname_test");
10443 1.1 christos
10444 1.1 christos ;
10445 1.1 christos return 0;
10446 1.1 christos }
10447 1.1 christos _ACEOF
10448 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
10449 1.1 christos je_cv_pthread_setname_np=yes
10450 1.1 christos else
10451 1.1 christos je_cv_pthread_setname_np=no
10452 1.1 christos fi
10453 1.1 christos rm -f core conftest.err conftest.$ac_objext \
10454 1.1 christos conftest$ac_exeext conftest.$ac_ext
10455 1.1 christos fi
10456 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_setname_np" >&5
10457 1.1 christos $as_echo "$je_cv_pthread_setname_np" >&6; }
10458 1.1 christos
10459 1.1 christos if test "x${je_cv_pthread_setname_np}" = "xyes" ; then
10460 1.1 christos $as_echo "#define JEMALLOC_HAVE_PTHREAD_SETNAME_NP " >>confdefs.h
10461 1.1 christos
10462 1.1 christos fi
10463 1.1 christos fi
10464 1.1 christos
10465 1.1 christos T_APPEND_V=-D_REENTRANT
10466 1.1 christos if test "x${CPPFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10467 1.1 christos CPPFLAGS="${CPPFLAGS}${T_APPEND_V}"
10468 1.1 christos else
10469 1.1 christos CPPFLAGS="${CPPFLAGS} ${T_APPEND_V}"
10470 1.1 christos fi
10471 1.1 christos
10472 1.1 christos
10473 1.1 christos
10474 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
10475 1.1 christos $as_echo_n "checking for library containing clock_gettime... " >&6; }
10476 1.1 christos if ${ac_cv_search_clock_gettime+:} false; then :
10477 1.1 christos $as_echo_n "(cached) " >&6
10478 1.1 christos else
10479 1.1 christos ac_func_search_save_LIBS=$LIBS
10480 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481 1.1 christos /* end confdefs.h. */
10482 1.1 christos
10483 1.1 christos /* Override any GCC internal prototype to avoid an error.
10484 1.1 christos Use char because int might match the return type of a GCC
10485 1.1 christos builtin and then its argument prototype would still apply. */
10486 1.1 christos #ifdef __cplusplus
10487 1.1 christos extern "C"
10488 1.1 christos #endif
10489 1.1 christos char clock_gettime ();
10490 1.1 christos int
10491 1.1 christos main ()
10492 1.1 christos {
10493 1.1 christos return clock_gettime ();
10494 1.1 christos ;
10495 1.1 christos return 0;
10496 1.1 christos }
10497 1.1 christos _ACEOF
10498 1.1 christos for ac_lib in '' rt; do
10499 1.1 christos if test -z "$ac_lib"; then
10500 1.1 christos ac_res="none required"
10501 1.1 christos else
10502 1.1 christos ac_res=-l$ac_lib
10503 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10504 1.1 christos fi
10505 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
10506 1.1 christos ac_cv_search_clock_gettime=$ac_res
10507 1.1 christos fi
10508 1.1 christos rm -f core conftest.err conftest.$ac_objext \
10509 1.1 christos conftest$ac_exeext
10510 1.1 christos if ${ac_cv_search_clock_gettime+:} false; then :
10511 1.1 christos break
10512 1.1 christos fi
10513 1.1 christos done
10514 1.1 christos if ${ac_cv_search_clock_gettime+:} false; then :
10515 1.1 christos
10516 1.1 christos else
10517 1.1 christos ac_cv_search_clock_gettime=no
10518 1.1 christos fi
10519 1.1 christos rm conftest.$ac_ext
10520 1.1 christos LIBS=$ac_func_search_save_LIBS
10521 1.1 christos fi
10522 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
10523 1.1 christos $as_echo "$ac_cv_search_clock_gettime" >&6; }
10524 1.1 christos ac_res=$ac_cv_search_clock_gettime
10525 1.1 christos if test "$ac_res" != no; then :
10526 1.1 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10527 1.1 christos
10528 1.1 christos fi
10529 1.1 christos
10530 1.1 christos
10531 1.1 christos if test "x$je_cv_cray_prgenv_wrapper" = "xyes" ; then
10532 1.1 christos if test "$ac_cv_search_clock_gettime" != "-lrt"; then
10533 1.1 christos SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10534 1.1 christos
10535 1.1 christos
10536 1.1 christos unset ac_cv_search_clock_gettime
10537 1.1 christos
10538 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -dynamic" >&5
10539 1.1 christos $as_echo_n "checking whether compiler supports -dynamic... " >&6; }
10540 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10541 1.1 christos T_APPEND_V=-dynamic
10542 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10543 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
10544 1.1 christos else
10545 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
10546 1.1 christos fi
10547 1.1 christos
10548 1.1 christos
10549 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10550 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10551 1.1 christos else
10552 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10553 1.1 christos fi
10554 1.1 christos
10555 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556 1.1 christos /* end confdefs.h. */
10557 1.1 christos
10558 1.1 christos
10559 1.1 christos int
10560 1.1 christos main ()
10561 1.1 christos {
10562 1.1 christos
10563 1.1 christos return 0;
10564 1.1 christos
10565 1.1 christos ;
10566 1.1 christos return 0;
10567 1.1 christos }
10568 1.1 christos _ACEOF
10569 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
10570 1.1 christos je_cv_cflags_added=-dynamic
10571 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10572 1.1 christos $as_echo "yes" >&6; }
10573 1.1 christos else
10574 1.1 christos je_cv_cflags_added=
10575 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576 1.1 christos $as_echo "no" >&6; }
10577 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
10578 1.1 christos
10579 1.1 christos fi
10580 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10581 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10582 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10583 1.1 christos else
10584 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10585 1.1 christos fi
10586 1.1 christos
10587 1.1 christos
10588 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
10589 1.1 christos $as_echo_n "checking for library containing clock_gettime... " >&6; }
10590 1.1 christos if ${ac_cv_search_clock_gettime+:} false; then :
10591 1.1 christos $as_echo_n "(cached) " >&6
10592 1.1 christos else
10593 1.1 christos ac_func_search_save_LIBS=$LIBS
10594 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595 1.1 christos /* end confdefs.h. */
10596 1.1 christos
10597 1.1 christos /* Override any GCC internal prototype to avoid an error.
10598 1.1 christos Use char because int might match the return type of a GCC
10599 1.1 christos builtin and then its argument prototype would still apply. */
10600 1.1 christos #ifdef __cplusplus
10601 1.1 christos extern "C"
10602 1.1 christos #endif
10603 1.1 christos char clock_gettime ();
10604 1.1 christos int
10605 1.1 christos main ()
10606 1.1 christos {
10607 1.1 christos return clock_gettime ();
10608 1.1 christos ;
10609 1.1 christos return 0;
10610 1.1 christos }
10611 1.1 christos _ACEOF
10612 1.1 christos for ac_lib in '' rt; do
10613 1.1 christos if test -z "$ac_lib"; then
10614 1.1 christos ac_res="none required"
10615 1.1 christos else
10616 1.1 christos ac_res=-l$ac_lib
10617 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10618 1.1 christos fi
10619 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
10620 1.1 christos ac_cv_search_clock_gettime=$ac_res
10621 1.1 christos fi
10622 1.1 christos rm -f core conftest.err conftest.$ac_objext \
10623 1.1 christos conftest$ac_exeext
10624 1.1 christos if ${ac_cv_search_clock_gettime+:} false; then :
10625 1.1 christos break
10626 1.1 christos fi
10627 1.1 christos done
10628 1.1 christos if ${ac_cv_search_clock_gettime+:} false; then :
10629 1.1 christos
10630 1.1 christos else
10631 1.1 christos ac_cv_search_clock_gettime=no
10632 1.1 christos fi
10633 1.1 christos rm conftest.$ac_ext
10634 1.1 christos LIBS=$ac_func_search_save_LIBS
10635 1.1 christos fi
10636 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
10637 1.1 christos $as_echo "$ac_cv_search_clock_gettime" >&6; }
10638 1.1 christos ac_res=$ac_cv_search_clock_gettime
10639 1.1 christos if test "$ac_res" != no; then :
10640 1.1 christos test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10641 1.1 christos
10642 1.1 christos fi
10643 1.1 christos
10644 1.1 christos
10645 1.1 christos CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
10646 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10647 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10648 1.1 christos else
10649 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10650 1.1 christos fi
10651 1.1 christos
10652 1.1 christos
10653 1.1 christos fi
10654 1.1 christos fi
10655 1.1 christos
10656 1.1 christos
10657 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable" >&5
10658 1.1 christos $as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC_COARSE, ...) is compilable... " >&6; }
10659 1.1 christos if ${je_cv_clock_monotonic_coarse+:} false; then :
10660 1.1 christos $as_echo_n "(cached) " >&6
10661 1.1 christos else
10662 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 1.1 christos /* end confdefs.h. */
10664 1.1 christos
10665 1.1 christos #include <time.h>
10666 1.1 christos
10667 1.1 christos int
10668 1.1 christos main ()
10669 1.1 christos {
10670 1.1 christos
10671 1.1 christos struct timespec ts;
10672 1.1 christos
10673 1.1 christos clock_gettime(CLOCK_MONOTONIC_COARSE, &ts);
10674 1.1 christos
10675 1.1 christos ;
10676 1.1 christos return 0;
10677 1.1 christos }
10678 1.1 christos _ACEOF
10679 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
10680 1.1 christos je_cv_clock_monotonic_coarse=yes
10681 1.1 christos else
10682 1.1 christos je_cv_clock_monotonic_coarse=no
10683 1.1 christos fi
10684 1.1 christos rm -f core conftest.err conftest.$ac_objext \
10685 1.1 christos conftest$ac_exeext conftest.$ac_ext
10686 1.1 christos fi
10687 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic_coarse" >&5
10688 1.1 christos $as_echo "$je_cv_clock_monotonic_coarse" >&6; }
10689 1.1 christos
10690 1.1 christos if test "x${je_cv_clock_monotonic_coarse}" = "xyes" ; then
10691 1.1 christos $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC_COARSE 1" >>confdefs.h
10692 1.1 christos
10693 1.1 christos fi
10694 1.1 christos
10695 1.1 christos
10696 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable" >&5
10697 1.1 christos $as_echo_n "checking whether clock_gettime(CLOCK_MONOTONIC, ...) is compilable... " >&6; }
10698 1.1 christos if ${je_cv_clock_monotonic+:} false; then :
10699 1.1 christos $as_echo_n "(cached) " >&6
10700 1.1 christos else
10701 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 1.1 christos /* end confdefs.h. */
10703 1.1 christos
10704 1.1 christos #include <unistd.h>
10705 1.1 christos #include <time.h>
10706 1.1 christos
10707 1.1 christos int
10708 1.1 christos main ()
10709 1.1 christos {
10710 1.1 christos
10711 1.1 christos struct timespec ts;
10712 1.1 christos
10713 1.1 christos clock_gettime(CLOCK_MONOTONIC, &ts);
10714 1.1 christos #if !defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK < 0
10715 1.1 christos # error _POSIX_MONOTONIC_CLOCK missing/invalid
10716 1.1 christos #endif
10717 1.1 christos
10718 1.1 christos ;
10719 1.1 christos return 0;
10720 1.1 christos }
10721 1.1 christos _ACEOF
10722 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
10723 1.1 christos je_cv_clock_monotonic=yes
10724 1.1 christos else
10725 1.1 christos je_cv_clock_monotonic=no
10726 1.1 christos fi
10727 1.1 christos rm -f core conftest.err conftest.$ac_objext \
10728 1.1 christos conftest$ac_exeext conftest.$ac_ext
10729 1.1 christos fi
10730 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_clock_monotonic" >&5
10731 1.1 christos $as_echo "$je_cv_clock_monotonic" >&6; }
10732 1.1 christos
10733 1.1 christos if test "x${je_cv_clock_monotonic}" = "xyes" ; then
10734 1.1 christos $as_echo "#define JEMALLOC_HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
10735 1.1 christos
10736 1.1 christos fi
10737 1.1 christos
10738 1.1 christos
10739 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mach_absolute_time() is compilable" >&5
10740 1.1 christos $as_echo_n "checking whether mach_absolute_time() is compilable... " >&6; }
10741 1.1 christos if ${je_cv_mach_absolute_time+:} false; then :
10742 1.1 christos $as_echo_n "(cached) " >&6
10743 1.1 christos else
10744 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745 1.1 christos /* end confdefs.h. */
10746 1.1 christos
10747 1.1 christos #include <mach/mach_time.h>
10748 1.1 christos
10749 1.1 christos int
10750 1.1 christos main ()
10751 1.1 christos {
10752 1.1 christos
10753 1.1 christos mach_absolute_time();
10754 1.1 christos
10755 1.1 christos ;
10756 1.1 christos return 0;
10757 1.1 christos }
10758 1.1 christos _ACEOF
10759 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
10760 1.1 christos je_cv_mach_absolute_time=yes
10761 1.1 christos else
10762 1.1 christos je_cv_mach_absolute_time=no
10763 1.1 christos fi
10764 1.1 christos rm -f core conftest.err conftest.$ac_objext \
10765 1.1 christos conftest$ac_exeext conftest.$ac_ext
10766 1.1 christos fi
10767 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_mach_absolute_time" >&5
10768 1.1 christos $as_echo "$je_cv_mach_absolute_time" >&6; }
10769 1.1 christos
10770 1.1 christos if test "x${je_cv_mach_absolute_time}" = "xyes" ; then
10771 1.1 christos $as_echo "#define JEMALLOC_HAVE_MACH_ABSOLUTE_TIME 1" >>confdefs.h
10772 1.1 christos
10773 1.1 christos fi
10774 1.1 christos
10775 1.1 christos # Check whether --enable-syscall was given.
10776 1.1 christos if test "${enable_syscall+set}" = set; then :
10777 1.1 christos enableval=$enable_syscall; if test "x$enable_syscall" = "xno" ; then
10778 1.1 christos enable_syscall="0"
10779 1.1 christos else
10780 1.1 christos enable_syscall="1"
10781 1.1 christos fi
10782 1.1 christos
10783 1.1 christos else
10784 1.1 christos enable_syscall="1"
10785 1.1 christos
10786 1.1 christos fi
10787 1.1 christos
10788 1.1 christos if test "x$enable_syscall" = "x1" ; then
10789 1.1 christos SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10790 1.1 christos
10791 1.1 christos
10792 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
10793 1.1 christos $as_echo_n "checking whether compiler supports -Werror... " >&6; }
10794 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
10795 1.1 christos T_APPEND_V=-Werror
10796 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
10797 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
10798 1.1 christos else
10799 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
10800 1.1 christos fi
10801 1.1 christos
10802 1.1 christos
10803 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10804 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10805 1.1 christos else
10806 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10807 1.1 christos fi
10808 1.1 christos
10809 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 1.1 christos /* end confdefs.h. */
10811 1.1 christos
10812 1.1 christos
10813 1.1 christos int
10814 1.1 christos main ()
10815 1.1 christos {
10816 1.1 christos
10817 1.1 christos return 0;
10818 1.1 christos
10819 1.1 christos ;
10820 1.1 christos return 0;
10821 1.1 christos }
10822 1.1 christos _ACEOF
10823 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
10824 1.1 christos je_cv_cflags_added=-Werror
10825 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10826 1.1 christos $as_echo "yes" >&6; }
10827 1.1 christos else
10828 1.1 christos je_cv_cflags_added=
10829 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10830 1.1 christos $as_echo "no" >&6; }
10831 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
10832 1.1 christos
10833 1.1 christos fi
10834 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10835 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10836 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10837 1.1 christos else
10838 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10839 1.1 christos fi
10840 1.1 christos
10841 1.1 christos
10842 1.1 christos
10843 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether syscall(2) is compilable" >&5
10844 1.1 christos $as_echo_n "checking whether syscall(2) is compilable... " >&6; }
10845 1.1 christos if ${je_cv_syscall+:} false; then :
10846 1.1 christos $as_echo_n "(cached) " >&6
10847 1.1 christos else
10848 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 1.1 christos /* end confdefs.h. */
10850 1.1 christos
10851 1.1 christos #include <sys/syscall.h>
10852 1.1 christos #include <unistd.h>
10853 1.1 christos
10854 1.1 christos int
10855 1.1 christos main ()
10856 1.1 christos {
10857 1.1 christos
10858 1.1 christos syscall(SYS_write, 2, "hello", 5);
10859 1.1 christos
10860 1.1 christos ;
10861 1.1 christos return 0;
10862 1.1 christos }
10863 1.1 christos _ACEOF
10864 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
10865 1.1 christos je_cv_syscall=yes
10866 1.1 christos else
10867 1.1 christos je_cv_syscall=no
10868 1.1 christos fi
10869 1.1 christos rm -f core conftest.err conftest.$ac_objext \
10870 1.1 christos conftest$ac_exeext conftest.$ac_ext
10871 1.1 christos fi
10872 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_syscall" >&5
10873 1.1 christos $as_echo "$je_cv_syscall" >&6; }
10874 1.1 christos
10875 1.1 christos CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
10876 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
10877 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
10878 1.1 christos else
10879 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
10880 1.1 christos fi
10881 1.1 christos
10882 1.1 christos
10883 1.1 christos if test "x$je_cv_syscall" = "xyes" ; then
10884 1.1 christos $as_echo "#define JEMALLOC_USE_SYSCALL " >>confdefs.h
10885 1.1 christos
10886 1.1 christos fi
10887 1.1 christos fi
10888 1.1 christos
10889 1.1 christos ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
10890 1.1 christos if test "x$ac_cv_func_secure_getenv" = xyes; then :
10891 1.1 christos have_secure_getenv="1"
10892 1.1 christos else
10893 1.1 christos have_secure_getenv="0"
10894 1.1 christos
10895 1.1 christos fi
10896 1.1 christos
10897 1.1 christos if test "x$have_secure_getenv" = "x1" ; then
10898 1.1 christos $as_echo "#define JEMALLOC_HAVE_SECURE_GETENV " >>confdefs.h
10899 1.1 christos
10900 1.1 christos fi
10901 1.1 christos
10902 1.1 christos ac_fn_c_check_func "$LINENO" "sched_getcpu" "ac_cv_func_sched_getcpu"
10903 1.1 christos if test "x$ac_cv_func_sched_getcpu" = xyes; then :
10904 1.1 christos have_sched_getcpu="1"
10905 1.1 christos else
10906 1.1 christos have_sched_getcpu="0"
10907 1.1 christos
10908 1.1 christos fi
10909 1.1 christos
10910 1.1 christos if test "x$have_sched_getcpu" = "x1" ; then
10911 1.1 christos $as_echo "#define JEMALLOC_HAVE_SCHED_GETCPU " >>confdefs.h
10912 1.1 christos
10913 1.1 christos fi
10914 1.1 christos
10915 1.1 christos ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity"
10916 1.1 christos if test "x$ac_cv_func_sched_setaffinity" = xyes; then :
10917 1.1 christos have_sched_setaffinity="1"
10918 1.1 christos else
10919 1.1 christos have_sched_setaffinity="0"
10920 1.1 christos
10921 1.1 christos fi
10922 1.1 christos
10923 1.1 christos if test "x$have_sched_setaffinity" = "x1" ; then
10924 1.1 christos $as_echo "#define JEMALLOC_HAVE_SCHED_SETAFFINITY " >>confdefs.h
10925 1.1 christos
10926 1.1 christos fi
10927 1.1 christos
10928 1.1 christos ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
10929 1.1 christos if test "x$ac_cv_func_issetugid" = xyes; then :
10930 1.1 christos have_issetugid="1"
10931 1.1 christos else
10932 1.1 christos have_issetugid="0"
10933 1.1 christos
10934 1.1 christos fi
10935 1.1 christos
10936 1.1 christos if test "x$have_issetugid" = "x1" ; then
10937 1.1 christos $as_echo "#define JEMALLOC_HAVE_ISSETUGID " >>confdefs.h
10938 1.1 christos
10939 1.1 christos fi
10940 1.1 christos
10941 1.1 christos ac_fn_c_check_func "$LINENO" "_malloc_thread_cleanup" "ac_cv_func__malloc_thread_cleanup"
10942 1.1 christos if test "x$ac_cv_func__malloc_thread_cleanup" = xyes; then :
10943 1.1 christos have__malloc_thread_cleanup="1"
10944 1.1 christos else
10945 1.1 christos have__malloc_thread_cleanup="0"
10946 1.1 christos
10947 1.1 christos fi
10948 1.1 christos
10949 1.1 christos if test "x$have__malloc_thread_cleanup" = "x1" ; then
10950 1.1 christos $as_echo "#define JEMALLOC_MALLOC_THREAD_CLEANUP " >>confdefs.h
10951 1.1 christos
10952 1.1 christos wrap_syms="${wrap_syms} _malloc_thread_cleanup"
10953 1.1 christos force_tls="1"
10954 1.1 christos fi
10955 1.1 christos
10956 1.1 christos ac_fn_c_check_func "$LINENO" "_pthread_mutex_init_calloc_cb" "ac_cv_func__pthread_mutex_init_calloc_cb"
10957 1.1 christos if test "x$ac_cv_func__pthread_mutex_init_calloc_cb" = xyes; then :
10958 1.1 christos have__pthread_mutex_init_calloc_cb="1"
10959 1.1 christos else
10960 1.1 christos have__pthread_mutex_init_calloc_cb="0"
10961 1.1 christos
10962 1.1 christos fi
10963 1.1 christos
10964 1.1 christos if test "x$have__pthread_mutex_init_calloc_cb" = "x1" ; then
10965 1.1 christos $as_echo "#define JEMALLOC_MUTEX_INIT_CB 1" >>confdefs.h
10966 1.1 christos
10967 1.1 christos wrap_syms="${wrap_syms} _malloc_prefork _malloc_postfork"
10968 1.1 christos fi
10969 1.1 christos
10970 1.1 christos # Check whether --enable-lazy_lock was given.
10971 1.1 christos if test "${enable_lazy_lock+set}" = set; then :
10972 1.1 christos enableval=$enable_lazy_lock; if test "x$enable_lazy_lock" = "xno" ; then
10973 1.1 christos enable_lazy_lock="0"
10974 1.1 christos else
10975 1.1 christos enable_lazy_lock="1"
10976 1.1 christos fi
10977 1.1 christos
10978 1.1 christos else
10979 1.1 christos enable_lazy_lock=""
10980 1.1 christos
10981 1.1 christos fi
10982 1.1 christos
10983 1.1 christos if test "x${enable_lazy_lock}" = "x" ; then
10984 1.1 christos if test "x${force_lazy_lock}" = "x1" ; then
10985 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&5
10986 1.1 christos $as_echo "Forcing lazy-lock to avoid allocator/threading bootstrap issues" >&6; }
10987 1.1 christos enable_lazy_lock="1"
10988 1.1 christos else
10989 1.1 christos enable_lazy_lock="0"
10990 1.1 christos fi
10991 1.1 christos fi
10992 1.1 christos if test "x${enable_lazy_lock}" = "x1" -a "x${abi}" = "xpecoff" ; then
10993 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: Forcing no lazy-lock because thread creation monitoring is unimplemented" >&5
10994 1.1 christos $as_echo "Forcing no lazy-lock because thread creation monitoring is unimplemented" >&6; }
10995 1.1 christos enable_lazy_lock="0"
10996 1.1 christos fi
10997 1.1 christos if test "x$enable_lazy_lock" = "x1" ; then
10998 1.1 christos if test "x$have_dlsym" = "x1" ; then
10999 1.1 christos $as_echo "#define JEMALLOC_LAZY_LOCK " >>confdefs.h
11000 1.1 christos
11001 1.1 christos else
11002 1.1 christos as_fn_error $? "Missing dlsym support: lazy-lock cannot be enabled." "$LINENO" 5
11003 1.1 christos fi
11004 1.1 christos fi
11005 1.1 christos
11006 1.1 christos
11007 1.1 christos if test "x${force_tls}" = "x1" ; then
11008 1.1 christos enable_tls="1"
11009 1.1 christos elif test "x${force_tls}" = "x0" ; then
11010 1.1 christos enable_tls="0"
11011 1.1 christos else
11012 1.1 christos enable_tls="1"
11013 1.1 christos fi
11014 1.1 christos if test "x${enable_tls}" = "x1" ; then
11015 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5
11016 1.1 christos $as_echo_n "checking for TLS... " >&6; }
11017 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018 1.1 christos /* end confdefs.h. */
11019 1.1 christos
11020 1.1 christos __thread int x;
11021 1.1 christos
11022 1.1 christos int
11023 1.1 christos main ()
11024 1.1 christos {
11025 1.1 christos
11026 1.1 christos x = 42;
11027 1.1 christos
11028 1.1 christos return 0;
11029 1.1 christos
11030 1.1 christos ;
11031 1.1 christos return 0;
11032 1.1 christos }
11033 1.1 christos _ACEOF
11034 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
11035 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11036 1.1 christos $as_echo "yes" >&6; }
11037 1.1 christos else
11038 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11039 1.1 christos $as_echo "no" >&6; }
11040 1.1 christos enable_tls="0"
11041 1.1 christos fi
11042 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11043 1.1 christos else
11044 1.1 christos enable_tls="0"
11045 1.1 christos fi
11046 1.1 christos
11047 1.1 christos if test "x${enable_tls}" = "x1" ; then
11048 1.1 christos cat >>confdefs.h <<_ACEOF
11049 1.1 christos #define JEMALLOC_TLS
11050 1.1 christos _ACEOF
11051 1.1 christos
11052 1.1 christos fi
11053 1.1 christos
11054 1.1 christos
11055 1.1 christos
11056 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 atomics is compilable" >&5
11057 1.1 christos $as_echo_n "checking whether C11 atomics is compilable... " >&6; }
11058 1.1 christos if ${je_cv_c11_atomics+:} false; then :
11059 1.1 christos $as_echo_n "(cached) " >&6
11060 1.1 christos else
11061 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062 1.1 christos /* end confdefs.h. */
11063 1.1 christos
11064 1.1 christos #include <stdint.h>
11065 1.1 christos #if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_ATOMICS__)
11066 1.1 christos #include <stdatomic.h>
11067 1.1 christos #else
11068 1.1 christos #error Atomics not available
11069 1.1 christos #endif
11070 1.1 christos
11071 1.1 christos int
11072 1.1 christos main ()
11073 1.1 christos {
11074 1.1 christos
11075 1.1 christos uint64_t *p = (uint64_t *)0;
11076 1.1 christos uint64_t x = 1;
11077 1.1 christos volatile atomic_uint_least64_t *a = (volatile atomic_uint_least64_t *)p;
11078 1.1 christos uint64_t r = atomic_fetch_add(a, x) + x;
11079 1.1 christos return r == 0;
11080 1.1 christos
11081 1.1 christos ;
11082 1.1 christos return 0;
11083 1.1 christos }
11084 1.1 christos _ACEOF
11085 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
11086 1.1 christos je_cv_c11_atomics=yes
11087 1.1 christos else
11088 1.1 christos je_cv_c11_atomics=no
11089 1.1 christos fi
11090 1.1 christos rm -f core conftest.err conftest.$ac_objext \
11091 1.1 christos conftest$ac_exeext conftest.$ac_ext
11092 1.1 christos fi
11093 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_c11_atomics" >&5
11094 1.1 christos $as_echo "$je_cv_c11_atomics" >&6; }
11095 1.1 christos
11096 1.1 christos if test "x${je_cv_c11_atomics}" = "xyes" ; then
11097 1.1 christos $as_echo "#define JEMALLOC_C11_ATOMICS 1" >>confdefs.h
11098 1.1 christos
11099 1.1 christos fi
11100 1.1 christos
11101 1.1 christos
11102 1.1 christos
11103 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __atomic atomics is compilable" >&5
11104 1.1 christos $as_echo_n "checking whether GCC __atomic atomics is compilable... " >&6; }
11105 1.1 christos if ${je_cv_gcc_atomic_atomics+:} false; then :
11106 1.1 christos $as_echo_n "(cached) " >&6
11107 1.1 christos else
11108 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11109 1.1 christos /* end confdefs.h. */
11110 1.1 christos
11111 1.1 christos
11112 1.1 christos int
11113 1.1 christos main ()
11114 1.1 christos {
11115 1.1 christos
11116 1.1 christos int x = 0;
11117 1.1 christos int val = 1;
11118 1.1 christos int y = __atomic_fetch_add(&x, val, __ATOMIC_RELAXED);
11119 1.1 christos int after_add = x;
11120 1.1 christos return after_add == 1;
11121 1.1 christos
11122 1.1 christos ;
11123 1.1 christos return 0;
11124 1.1 christos }
11125 1.1 christos _ACEOF
11126 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
11127 1.1 christos je_cv_gcc_atomic_atomics=yes
11128 1.1 christos else
11129 1.1 christos je_cv_gcc_atomic_atomics=no
11130 1.1 christos fi
11131 1.1 christos rm -f core conftest.err conftest.$ac_objext \
11132 1.1 christos conftest$ac_exeext conftest.$ac_ext
11133 1.1 christos fi
11134 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_atomic_atomics" >&5
11135 1.1 christos $as_echo "$je_cv_gcc_atomic_atomics" >&6; }
11136 1.1 christos
11137 1.1 christos if test "x${je_cv_gcc_atomic_atomics}" = "xyes" ; then
11138 1.1 christos $as_echo "#define JEMALLOC_GCC_ATOMIC_ATOMICS 1" >>confdefs.h
11139 1.1 christos
11140 1.1 christos fi
11141 1.1 christos
11142 1.1 christos
11143 1.1 christos
11144 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC __sync atomics is compilable" >&5
11145 1.1 christos $as_echo_n "checking whether GCC __sync atomics is compilable... " >&6; }
11146 1.1 christos if ${je_cv_gcc_sync_atomics+:} false; then :
11147 1.1 christos $as_echo_n "(cached) " >&6
11148 1.1 christos else
11149 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150 1.1 christos /* end confdefs.h. */
11151 1.1 christos
11152 1.1 christos
11153 1.1 christos int
11154 1.1 christos main ()
11155 1.1 christos {
11156 1.1 christos
11157 1.1 christos int x = 0;
11158 1.1 christos int before_add = __sync_fetch_and_add(&x, 1);
11159 1.1 christos int after_add = x;
11160 1.1 christos return (before_add == 0) && (after_add == 1);
11161 1.1 christos
11162 1.1 christos ;
11163 1.1 christos return 0;
11164 1.1 christos }
11165 1.1 christos _ACEOF
11166 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
11167 1.1 christos je_cv_gcc_sync_atomics=yes
11168 1.1 christos else
11169 1.1 christos je_cv_gcc_sync_atomics=no
11170 1.1 christos fi
11171 1.1 christos rm -f core conftest.err conftest.$ac_objext \
11172 1.1 christos conftest$ac_exeext conftest.$ac_ext
11173 1.1 christos fi
11174 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_gcc_sync_atomics" >&5
11175 1.1 christos $as_echo "$je_cv_gcc_sync_atomics" >&6; }
11176 1.1 christos
11177 1.1 christos if test "x${je_cv_gcc_sync_atomics}" = "xyes" ; then
11178 1.1 christos $as_echo "#define JEMALLOC_GCC_SYNC_ATOMICS 1" >>confdefs.h
11179 1.1 christos
11180 1.1 christos fi
11181 1.1 christos
11182 1.1 christos
11183 1.1 christos
11184 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSAtomic*() is compilable" >&5
11185 1.1 christos $as_echo_n "checking whether Darwin OSAtomic*() is compilable... " >&6; }
11186 1.1 christos if ${je_cv_osatomic+:} false; then :
11187 1.1 christos $as_echo_n "(cached) " >&6
11188 1.1 christos else
11189 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11190 1.1 christos /* end confdefs.h. */
11191 1.1 christos
11192 1.1 christos #include <libkern/OSAtomic.h>
11193 1.1 christos #include <inttypes.h>
11194 1.1 christos
11195 1.1 christos int
11196 1.1 christos main ()
11197 1.1 christos {
11198 1.1 christos
11199 1.1 christos {
11200 1.1 christos int32_t x32 = 0;
11201 1.1 christos volatile int32_t *x32p = &x32;
11202 1.1 christos OSAtomicAdd32(1, x32p);
11203 1.1 christos }
11204 1.1 christos {
11205 1.1 christos int64_t x64 = 0;
11206 1.1 christos volatile int64_t *x64p = &x64;
11207 1.1 christos OSAtomicAdd64(1, x64p);
11208 1.1 christos }
11209 1.1 christos
11210 1.1 christos ;
11211 1.1 christos return 0;
11212 1.1 christos }
11213 1.1 christos _ACEOF
11214 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
11215 1.1 christos je_cv_osatomic=yes
11216 1.1 christos else
11217 1.1 christos je_cv_osatomic=no
11218 1.1 christos fi
11219 1.1 christos rm -f core conftest.err conftest.$ac_objext \
11220 1.1 christos conftest$ac_exeext conftest.$ac_ext
11221 1.1 christos fi
11222 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osatomic" >&5
11223 1.1 christos $as_echo "$je_cv_osatomic" >&6; }
11224 1.1 christos
11225 1.1 christos if test "x${je_cv_osatomic}" = "xyes" ; then
11226 1.1 christos $as_echo "#define JEMALLOC_OSATOMIC " >>confdefs.h
11227 1.1 christos
11228 1.1 christos fi
11229 1.1 christos
11230 1.1 christos
11231 1.1 christos
11232 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(2) is compilable" >&5
11233 1.1 christos $as_echo_n "checking whether madvise(2) is compilable... " >&6; }
11234 1.1 christos if ${je_cv_madvise+:} false; then :
11235 1.1 christos $as_echo_n "(cached) " >&6
11236 1.1 christos else
11237 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238 1.1 christos /* end confdefs.h. */
11239 1.1 christos
11240 1.1 christos #include <sys/mman.h>
11241 1.1 christos
11242 1.1 christos int
11243 1.1 christos main ()
11244 1.1 christos {
11245 1.1 christos
11246 1.1 christos madvise((void *)0, 0, 0);
11247 1.1 christos
11248 1.1 christos ;
11249 1.1 christos return 0;
11250 1.1 christos }
11251 1.1 christos _ACEOF
11252 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
11253 1.1 christos je_cv_madvise=yes
11254 1.1 christos else
11255 1.1 christos je_cv_madvise=no
11256 1.1 christos fi
11257 1.1 christos rm -f core conftest.err conftest.$ac_objext \
11258 1.1 christos conftest$ac_exeext conftest.$ac_ext
11259 1.1 christos fi
11260 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madvise" >&5
11261 1.1 christos $as_echo "$je_cv_madvise" >&6; }
11262 1.1 christos
11263 1.1 christos if test "x${je_cv_madvise}" = "xyes" ; then
11264 1.1 christos $as_echo "#define JEMALLOC_HAVE_MADVISE " >>confdefs.h
11265 1.1 christos
11266 1.1 christos
11267 1.1 christos
11268 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_FREE) is compilable" >&5
11269 1.1 christos $as_echo_n "checking whether madvise(..., MADV_FREE) is compilable... " >&6; }
11270 1.1 christos if ${je_cv_madv_free+:} false; then :
11271 1.1 christos $as_echo_n "(cached) " >&6
11272 1.1 christos else
11273 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274 1.1 christos /* end confdefs.h. */
11275 1.1 christos
11276 1.1 christos #include <sys/mman.h>
11277 1.1 christos
11278 1.1 christos int
11279 1.1 christos main ()
11280 1.1 christos {
11281 1.1 christos
11282 1.1 christos madvise((void *)0, 0, MADV_FREE);
11283 1.1 christos
11284 1.1 christos ;
11285 1.1 christos return 0;
11286 1.1 christos }
11287 1.1 christos _ACEOF
11288 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
11289 1.1 christos je_cv_madv_free=yes
11290 1.1 christos else
11291 1.1 christos je_cv_madv_free=no
11292 1.1 christos fi
11293 1.1 christos rm -f core conftest.err conftest.$ac_objext \
11294 1.1 christos conftest$ac_exeext conftest.$ac_ext
11295 1.1 christos fi
11296 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_free" >&5
11297 1.1 christos $as_echo "$je_cv_madv_free" >&6; }
11298 1.1 christos
11299 1.1 christos if test "x${je_cv_madv_free}" = "xyes" ; then
11300 1.1 christos $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h
11301 1.1 christos
11302 1.1 christos elif test "x${je_cv_madvise}" = "xyes" ; then
11303 1.1 christos case "${host_cpu}" in i686|x86_64)
11304 1.1 christos case "${host}" in *-*-linux*)
11305 1.1 christos $as_echo "#define JEMALLOC_PURGE_MADVISE_FREE " >>confdefs.h
11306 1.1 christos
11307 1.1 christos $as_echo "#define JEMALLOC_DEFINE_MADVISE_FREE " >>confdefs.h
11308 1.1 christos
11309 1.1 christos ;;
11310 1.1 christos esac
11311 1.1 christos ;;
11312 1.1 christos esac
11313 1.1 christos fi
11314 1.1 christos
11315 1.1 christos
11316 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DONTNEED) is compilable" >&5
11317 1.1 christos $as_echo_n "checking whether madvise(..., MADV_DONTNEED) is compilable... " >&6; }
11318 1.1 christos if ${je_cv_madv_dontneed+:} false; then :
11319 1.1 christos $as_echo_n "(cached) " >&6
11320 1.1 christos else
11321 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 1.1 christos /* end confdefs.h. */
11323 1.1 christos
11324 1.1 christos #include <sys/mman.h>
11325 1.1 christos
11326 1.1 christos int
11327 1.1 christos main ()
11328 1.1 christos {
11329 1.1 christos
11330 1.1 christos madvise((void *)0, 0, MADV_DONTNEED);
11331 1.1 christos
11332 1.1 christos ;
11333 1.1 christos return 0;
11334 1.1 christos }
11335 1.1 christos _ACEOF
11336 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
11337 1.1 christos je_cv_madv_dontneed=yes
11338 1.1 christos else
11339 1.1 christos je_cv_madv_dontneed=no
11340 1.1 christos fi
11341 1.1 christos rm -f core conftest.err conftest.$ac_objext \
11342 1.1 christos conftest$ac_exeext conftest.$ac_ext
11343 1.1 christos fi
11344 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontneed" >&5
11345 1.1 christos $as_echo "$je_cv_madv_dontneed" >&6; }
11346 1.1 christos
11347 1.1 christos if test "x${je_cv_madv_dontneed}" = "xyes" ; then
11348 1.1 christos $as_echo "#define JEMALLOC_PURGE_MADVISE_DONTNEED " >>confdefs.h
11349 1.1 christos
11350 1.1 christos fi
11351 1.1 christos
11352 1.1 christos
11353 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_DO[NT]DUMP) is compilable" >&5
11354 1.1 christos $as_echo_n "checking whether madvise(..., MADV_DO[NT]DUMP) is compilable... " >&6; }
11355 1.1 christos if ${je_cv_madv_dontdump+:} false; then :
11356 1.1 christos $as_echo_n "(cached) " >&6
11357 1.1 christos else
11358 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359 1.1 christos /* end confdefs.h. */
11360 1.1 christos
11361 1.1 christos #include <sys/mman.h>
11362 1.1 christos
11363 1.1 christos int
11364 1.1 christos main ()
11365 1.1 christos {
11366 1.1 christos
11367 1.1 christos madvise((void *)0, 0, MADV_DONTDUMP);
11368 1.1 christos madvise((void *)0, 0, MADV_DODUMP);
11369 1.1 christos
11370 1.1 christos ;
11371 1.1 christos return 0;
11372 1.1 christos }
11373 1.1 christos _ACEOF
11374 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
11375 1.1 christos je_cv_madv_dontdump=yes
11376 1.1 christos else
11377 1.1 christos je_cv_madv_dontdump=no
11378 1.1 christos fi
11379 1.1 christos rm -f core conftest.err conftest.$ac_objext \
11380 1.1 christos conftest$ac_exeext conftest.$ac_ext
11381 1.1 christos fi
11382 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_madv_dontdump" >&5
11383 1.1 christos $as_echo "$je_cv_madv_dontdump" >&6; }
11384 1.1 christos
11385 1.1 christos if test "x${je_cv_madv_dontdump}" = "xyes" ; then
11386 1.1 christos $as_echo "#define JEMALLOC_MADVISE_DONTDUMP " >>confdefs.h
11387 1.1 christos
11388 1.1 christos fi
11389 1.1 christos
11390 1.1 christos
11391 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable" >&5
11392 1.1 christos $as_echo_n "checking whether madvise(..., MADV_[NO]HUGEPAGE) is compilable... " >&6; }
11393 1.1 christos if ${je_cv_thp+:} false; then :
11394 1.1 christos $as_echo_n "(cached) " >&6
11395 1.1 christos else
11396 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397 1.1 christos /* end confdefs.h. */
11398 1.1 christos
11399 1.1 christos #include <sys/mman.h>
11400 1.1 christos
11401 1.1 christos int
11402 1.1 christos main ()
11403 1.1 christos {
11404 1.1 christos
11405 1.1 christos madvise((void *)0, 0, MADV_HUGEPAGE);
11406 1.1 christos madvise((void *)0, 0, MADV_NOHUGEPAGE);
11407 1.1 christos
11408 1.1 christos ;
11409 1.1 christos return 0;
11410 1.1 christos }
11411 1.1 christos _ACEOF
11412 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
11413 1.1 christos je_cv_thp=yes
11414 1.1 christos else
11415 1.1 christos je_cv_thp=no
11416 1.1 christos fi
11417 1.1 christos rm -f core conftest.err conftest.$ac_objext \
11418 1.1 christos conftest$ac_exeext conftest.$ac_ext
11419 1.1 christos fi
11420 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_thp" >&5
11421 1.1 christos $as_echo "$je_cv_thp" >&6; }
11422 1.1 christos
11423 1.1 christos case "${host_cpu}" in
11424 1.1 christos arm*)
11425 1.1 christos ;;
11426 1.1 christos *)
11427 1.1 christos if test "x${je_cv_thp}" = "xyes" ; then
11428 1.1 christos $as_echo "#define JEMALLOC_HAVE_MADVISE_HUGE " >>confdefs.h
11429 1.1 christos
11430 1.1 christos fi
11431 1.1 christos ;;
11432 1.1 christos esac
11433 1.1 christos fi
11434 1.1 christos
11435 1.1 christos
11436 1.1 christos
11437 1.1 christos
11438 1.1 christos if test "x${je_cv_atomic9}" != "xyes" -a "x${je_cv_osatomic}" != "xyes" ; then
11439 1.1 christos
11440 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 32-bit __sync_{add,sub}_and_fetch()" >&5
11441 1.1 christos $as_echo_n "checking whether to force 32-bit __sync_{add,sub}_and_fetch()... " >&6; }
11442 1.1 christos if ${je_cv_sync_compare_and_swap_4+:} false; then :
11443 1.1 christos $as_echo_n "(cached) " >&6
11444 1.1 christos else
11445 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446 1.1 christos /* end confdefs.h. */
11447 1.1 christos
11448 1.1 christos #include <stdint.h>
11449 1.1 christos
11450 1.1 christos int
11451 1.1 christos main ()
11452 1.1 christos {
11453 1.1 christos
11454 1.1 christos #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
11455 1.1 christos {
11456 1.1 christos uint32_t x32 = 0;
11457 1.1 christos __sync_add_and_fetch(&x32, 42);
11458 1.1 christos __sync_sub_and_fetch(&x32, 1);
11459 1.1 christos }
11460 1.1 christos #else
11461 1.1 christos #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 is defined, no need to force
11462 1.1 christos #endif
11463 1.1 christos
11464 1.1 christos ;
11465 1.1 christos return 0;
11466 1.1 christos }
11467 1.1 christos _ACEOF
11468 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
11469 1.1 christos je_cv_sync_compare_and_swap_4=yes
11470 1.1 christos else
11471 1.1 christos je_cv_sync_compare_and_swap_4=no
11472 1.1 christos fi
11473 1.1 christos rm -f core conftest.err conftest.$ac_objext \
11474 1.1 christos conftest$ac_exeext conftest.$ac_ext
11475 1.1 christos fi
11476 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_4" >&5
11477 1.1 christos $as_echo "$je_cv_sync_compare_and_swap_4" >&6; }
11478 1.1 christos
11479 1.1 christos if test "x${je_cv_sync_compare_and_swap_4}" = "xyes" ; then
11480 1.1 christos $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_4 " >>confdefs.h
11481 1.1 christos
11482 1.1 christos fi
11483 1.1 christos
11484 1.1 christos
11485 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to force 64-bit __sync_{add,sub}_and_fetch()" >&5
11486 1.1 christos $as_echo_n "checking whether to force 64-bit __sync_{add,sub}_and_fetch()... " >&6; }
11487 1.1 christos if ${je_cv_sync_compare_and_swap_8+:} false; then :
11488 1.1 christos $as_echo_n "(cached) " >&6
11489 1.1 christos else
11490 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11491 1.1 christos /* end confdefs.h. */
11492 1.1 christos
11493 1.1 christos #include <stdint.h>
11494 1.1 christos
11495 1.1 christos int
11496 1.1 christos main ()
11497 1.1 christos {
11498 1.1 christos
11499 1.1 christos #ifndef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8
11500 1.1 christos {
11501 1.1 christos uint64_t x64 = 0;
11502 1.1 christos __sync_add_and_fetch(&x64, 42);
11503 1.1 christos __sync_sub_and_fetch(&x64, 1);
11504 1.1 christos }
11505 1.1 christos #else
11506 1.1 christos #error __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 is defined, no need to force
11507 1.1 christos #endif
11508 1.1 christos
11509 1.1 christos ;
11510 1.1 christos return 0;
11511 1.1 christos }
11512 1.1 christos _ACEOF
11513 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
11514 1.1 christos je_cv_sync_compare_and_swap_8=yes
11515 1.1 christos else
11516 1.1 christos je_cv_sync_compare_and_swap_8=no
11517 1.1 christos fi
11518 1.1 christos rm -f core conftest.err conftest.$ac_objext \
11519 1.1 christos conftest$ac_exeext conftest.$ac_ext
11520 1.1 christos fi
11521 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_sync_compare_and_swap_8" >&5
11522 1.1 christos $as_echo "$je_cv_sync_compare_and_swap_8" >&6; }
11523 1.1 christos
11524 1.1 christos if test "x${je_cv_sync_compare_and_swap_8}" = "xyes" ; then
11525 1.1 christos $as_echo "#define JE_FORCE_SYNC_COMPARE_AND_SWAP_8 " >>confdefs.h
11526 1.1 christos
11527 1.1 christos fi
11528 1.1 christos
11529 1.1 christos fi
11530 1.1 christos
11531 1.1 christos
11532 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
11533 1.1 christos $as_echo_n "checking for __builtin_clz... " >&6; }
11534 1.1 christos if ${je_cv_builtin_clz+:} false; then :
11535 1.1 christos $as_echo_n "(cached) " >&6
11536 1.1 christos else
11537 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538 1.1 christos /* end confdefs.h. */
11539 1.1 christos
11540 1.1 christos int
11541 1.1 christos main ()
11542 1.1 christos {
11543 1.1 christos
11544 1.1 christos {
11545 1.1 christos unsigned x = 0;
11546 1.1 christos int y = __builtin_clz(x);
11547 1.1 christos }
11548 1.1 christos {
11549 1.1 christos unsigned long x = 0;
11550 1.1 christos int y = __builtin_clzl(x);
11551 1.1 christos }
11552 1.1 christos
11553 1.1 christos ;
11554 1.1 christos return 0;
11555 1.1 christos }
11556 1.1 christos _ACEOF
11557 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
11558 1.1 christos je_cv_builtin_clz=yes
11559 1.1 christos else
11560 1.1 christos je_cv_builtin_clz=no
11561 1.1 christos fi
11562 1.1 christos rm -f core conftest.err conftest.$ac_objext \
11563 1.1 christos conftest$ac_exeext conftest.$ac_ext
11564 1.1 christos fi
11565 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_builtin_clz" >&5
11566 1.1 christos $as_echo "$je_cv_builtin_clz" >&6; }
11567 1.1 christos
11568 1.1 christos if test "x${je_cv_builtin_clz}" = "xyes" ; then
11569 1.1 christos $as_echo "#define JEMALLOC_HAVE_BUILTIN_CLZ " >>confdefs.h
11570 1.1 christos
11571 1.1 christos fi
11572 1.1 christos
11573 1.1 christos
11574 1.1 christos
11575 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin os_unfair_lock_*() is compilable" >&5
11576 1.1 christos $as_echo_n "checking whether Darwin os_unfair_lock_*() is compilable... " >&6; }
11577 1.1 christos if ${je_cv_os_unfair_lock+:} false; then :
11578 1.1 christos $as_echo_n "(cached) " >&6
11579 1.1 christos else
11580 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 1.1 christos /* end confdefs.h. */
11582 1.1 christos
11583 1.1 christos #include <os/lock.h>
11584 1.1 christos #include <AvailabilityMacros.h>
11585 1.1 christos
11586 1.1 christos int
11587 1.1 christos main ()
11588 1.1 christos {
11589 1.1 christos
11590 1.1 christos #if MAC_OS_X_VERSION_MIN_REQUIRED < 101200
11591 1.1 christos #error "os_unfair_lock is not supported"
11592 1.1 christos #else
11593 1.1 christos os_unfair_lock lock = OS_UNFAIR_LOCK_INIT;
11594 1.1 christos os_unfair_lock_lock(&lock);
11595 1.1 christos os_unfair_lock_unlock(&lock);
11596 1.1 christos #endif
11597 1.1 christos
11598 1.1 christos ;
11599 1.1 christos return 0;
11600 1.1 christos }
11601 1.1 christos _ACEOF
11602 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
11603 1.1 christos je_cv_os_unfair_lock=yes
11604 1.1 christos else
11605 1.1 christos je_cv_os_unfair_lock=no
11606 1.1 christos fi
11607 1.1 christos rm -f core conftest.err conftest.$ac_objext \
11608 1.1 christos conftest$ac_exeext conftest.$ac_ext
11609 1.1 christos fi
11610 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_os_unfair_lock" >&5
11611 1.1 christos $as_echo "$je_cv_os_unfair_lock" >&6; }
11612 1.1 christos
11613 1.1 christos if test "x${je_cv_os_unfair_lock}" = "xyes" ; then
11614 1.1 christos $as_echo "#define JEMALLOC_OS_UNFAIR_LOCK " >>confdefs.h
11615 1.1 christos
11616 1.1 christos fi
11617 1.1 christos
11618 1.1 christos
11619 1.1 christos
11620 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Darwin OSSpin*() is compilable" >&5
11621 1.1 christos $as_echo_n "checking whether Darwin OSSpin*() is compilable... " >&6; }
11622 1.1 christos if ${je_cv_osspin+:} false; then :
11623 1.1 christos $as_echo_n "(cached) " >&6
11624 1.1 christos else
11625 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626 1.1 christos /* end confdefs.h. */
11627 1.1 christos
11628 1.1 christos #include <libkern/OSAtomic.h>
11629 1.1 christos #include <inttypes.h>
11630 1.1 christos
11631 1.1 christos int
11632 1.1 christos main ()
11633 1.1 christos {
11634 1.1 christos
11635 1.1 christos OSSpinLock lock = 0;
11636 1.1 christos OSSpinLockLock(&lock);
11637 1.1 christos OSSpinLockUnlock(&lock);
11638 1.1 christos
11639 1.1 christos ;
11640 1.1 christos return 0;
11641 1.1 christos }
11642 1.1 christos _ACEOF
11643 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
11644 1.1 christos je_cv_osspin=yes
11645 1.1 christos else
11646 1.1 christos je_cv_osspin=no
11647 1.1 christos fi
11648 1.1 christos rm -f core conftest.err conftest.$ac_objext \
11649 1.1 christos conftest$ac_exeext conftest.$ac_ext
11650 1.1 christos fi
11651 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_osspin" >&5
11652 1.1 christos $as_echo "$je_cv_osspin" >&6; }
11653 1.1 christos
11654 1.1 christos if test "x${je_cv_osspin}" = "xyes" ; then
11655 1.1 christos $as_echo "#define JEMALLOC_OSSPIN " >>confdefs.h
11656 1.1 christos
11657 1.1 christos fi
11658 1.1 christos
11659 1.1 christos
11660 1.1 christos # Check whether --enable-zone-allocator was given.
11661 1.1 christos if test "${enable_zone_allocator+set}" = set; then :
11662 1.1 christos enableval=$enable_zone_allocator; if test "x$enable_zone_allocator" = "xno" ; then
11663 1.1 christos enable_zone_allocator="0"
11664 1.1 christos else
11665 1.1 christos enable_zone_allocator="1"
11666 1.1 christos fi
11667 1.1 christos
11668 1.1 christos else
11669 1.1 christos if test "x${abi}" = "xmacho"; then
11670 1.1 christos enable_zone_allocator="1"
11671 1.1 christos fi
11672 1.1 christos
11673 1.1 christos
11674 1.1 christos fi
11675 1.1 christos
11676 1.1 christos
11677 1.1 christos
11678 1.1 christos if test "x${enable_zone_allocator}" = "x1" ; then
11679 1.1 christos if test "x${abi}" != "xmacho"; then
11680 1.1 christos as_fn_error $? "--enable-zone-allocator is only supported on Darwin" "$LINENO" 5
11681 1.1 christos fi
11682 1.1 christos $as_echo "#define JEMALLOC_ZONE " >>confdefs.h
11683 1.1 christos
11684 1.1 christos fi
11685 1.1 christos
11686 1.1 christos # Check whether --enable-initial-exec-tls was given.
11687 1.1 christos if test "${enable_initial_exec_tls+set}" = set; then :
11688 1.1 christos enableval=$enable_initial_exec_tls; if test "x$enable_initial_exec_tls" = "xno" ; then
11689 1.1 christos enable_initial_exec_tls="0"
11690 1.1 christos else
11691 1.1 christos enable_initial_exec_tls="1"
11692 1.1 christos fi
11693 1.1 christos
11694 1.1 christos else
11695 1.1 christos enable_initial_exec_tls="1"
11696 1.1 christos
11697 1.1 christos fi
11698 1.1 christos
11699 1.1 christos
11700 1.1 christos
11701 1.1 christos if test "x${je_cv_tls_model}" = "xyes" -a \
11702 1.1 christos "x${enable_initial_exec_tls}" = "x1" ; then
11703 1.1 christos $as_echo "#define JEMALLOC_TLS_MODEL __attribute__((tls_model(\"initial-exec\")))" >>confdefs.h
11704 1.1 christos
11705 1.1 christos else
11706 1.1 christos $as_echo "#define JEMALLOC_TLS_MODEL " >>confdefs.h
11707 1.1 christos
11708 1.1 christos fi
11709 1.1 christos
11710 1.1 christos
11711 1.1 christos if test "x${have_pthread}" = "x1" -a "x${have_dlsym}" = "x1" \
11712 1.1 christos -a "x${je_cv_os_unfair_lock}" != "xyes" \
11713 1.1 christos -a "x${je_cv_osspin}" != "xyes" ; then
11714 1.1 christos $as_echo "#define JEMALLOC_BACKGROUND_THREAD 1" >>confdefs.h
11715 1.1 christos
11716 1.1 christos fi
11717 1.1 christos
11718 1.1 christos
11719 1.1 christos
11720 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc malloc hook is compilable" >&5
11721 1.1 christos $as_echo_n "checking whether glibc malloc hook is compilable... " >&6; }
11722 1.1 christos if ${je_cv_glibc_malloc_hook+:} false; then :
11723 1.1 christos $as_echo_n "(cached) " >&6
11724 1.1 christos else
11725 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11726 1.1 christos /* end confdefs.h. */
11727 1.1 christos
11728 1.1 christos #include <stddef.h>
11729 1.1 christos
11730 1.1 christos extern void (* __free_hook)(void *ptr);
11731 1.1 christos extern void *(* __malloc_hook)(size_t size);
11732 1.1 christos extern void *(* __realloc_hook)(void *ptr, size_t size);
11733 1.1 christos
11734 1.1 christos int
11735 1.1 christos main ()
11736 1.1 christos {
11737 1.1 christos
11738 1.1 christos void *ptr = 0L;
11739 1.1 christos if (__malloc_hook) ptr = __malloc_hook(1);
11740 1.1 christos if (__realloc_hook) ptr = __realloc_hook(ptr, 2);
11741 1.1 christos if (__free_hook && ptr) __free_hook(ptr);
11742 1.1 christos
11743 1.1 christos ;
11744 1.1 christos return 0;
11745 1.1 christos }
11746 1.1 christos _ACEOF
11747 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
11748 1.1 christos je_cv_glibc_malloc_hook=yes
11749 1.1 christos else
11750 1.1 christos je_cv_glibc_malloc_hook=no
11751 1.1 christos fi
11752 1.1 christos rm -f core conftest.err conftest.$ac_objext \
11753 1.1 christos conftest$ac_exeext conftest.$ac_ext
11754 1.1 christos fi
11755 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_malloc_hook" >&5
11756 1.1 christos $as_echo "$je_cv_glibc_malloc_hook" >&6; }
11757 1.1 christos
11758 1.1 christos if test "x${je_cv_glibc_malloc_hook}" = "xyes" ; then
11759 1.1 christos if test "x${JEMALLOC_PREFIX}" = "x" ; then
11760 1.1 christos $as_echo "#define JEMALLOC_GLIBC_MALLOC_HOOK " >>confdefs.h
11761 1.1 christos
11762 1.1 christos wrap_syms="${wrap_syms} __free_hook __malloc_hook __realloc_hook"
11763 1.1 christos fi
11764 1.1 christos fi
11765 1.1 christos
11766 1.1 christos
11767 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether glibc memalign hook is compilable" >&5
11768 1.1 christos $as_echo_n "checking whether glibc memalign hook is compilable... " >&6; }
11769 1.1 christos if ${je_cv_glibc_memalign_hook+:} false; then :
11770 1.1 christos $as_echo_n "(cached) " >&6
11771 1.1 christos else
11772 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11773 1.1 christos /* end confdefs.h. */
11774 1.1 christos
11775 1.1 christos #include <stddef.h>
11776 1.1 christos
11777 1.1 christos extern void *(* __memalign_hook)(size_t alignment, size_t size);
11778 1.1 christos
11779 1.1 christos int
11780 1.1 christos main ()
11781 1.1 christos {
11782 1.1 christos
11783 1.1 christos void *ptr = 0L;
11784 1.1 christos if (__memalign_hook) ptr = __memalign_hook(16, 7);
11785 1.1 christos
11786 1.1 christos ;
11787 1.1 christos return 0;
11788 1.1 christos }
11789 1.1 christos _ACEOF
11790 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
11791 1.1 christos je_cv_glibc_memalign_hook=yes
11792 1.1 christos else
11793 1.1 christos je_cv_glibc_memalign_hook=no
11794 1.1 christos fi
11795 1.1 christos rm -f core conftest.err conftest.$ac_objext \
11796 1.1 christos conftest$ac_exeext conftest.$ac_ext
11797 1.1 christos fi
11798 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_glibc_memalign_hook" >&5
11799 1.1 christos $as_echo "$je_cv_glibc_memalign_hook" >&6; }
11800 1.1 christos
11801 1.1 christos if test "x${je_cv_glibc_memalign_hook}" = "xyes" ; then
11802 1.1 christos if test "x${JEMALLOC_PREFIX}" = "x" ; then
11803 1.1 christos $as_echo "#define JEMALLOC_GLIBC_MEMALIGN_HOOK " >>confdefs.h
11804 1.1 christos
11805 1.1 christos wrap_syms="${wrap_syms} __memalign_hook"
11806 1.1 christos fi
11807 1.1 christos fi
11808 1.1 christos
11809 1.1 christos
11810 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads adaptive mutexes is compilable" >&5
11811 1.1 christos $as_echo_n "checking whether pthreads adaptive mutexes is compilable... " >&6; }
11812 1.1 christos if ${je_cv_pthread_mutex_adaptive_np+:} false; then :
11813 1.1 christos $as_echo_n "(cached) " >&6
11814 1.1 christos else
11815 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816 1.1 christos /* end confdefs.h. */
11817 1.1 christos
11818 1.1 christos #include <pthread.h>
11819 1.1 christos
11820 1.1 christos int
11821 1.1 christos main ()
11822 1.1 christos {
11823 1.1 christos
11824 1.1 christos pthread_mutexattr_t attr;
11825 1.1 christos pthread_mutexattr_init(&attr);
11826 1.1 christos pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
11827 1.1 christos pthread_mutexattr_destroy(&attr);
11828 1.1 christos
11829 1.1 christos ;
11830 1.1 christos return 0;
11831 1.1 christos }
11832 1.1 christos _ACEOF
11833 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
11834 1.1 christos je_cv_pthread_mutex_adaptive_np=yes
11835 1.1 christos else
11836 1.1 christos je_cv_pthread_mutex_adaptive_np=no
11837 1.1 christos fi
11838 1.1 christos rm -f core conftest.err conftest.$ac_objext \
11839 1.1 christos conftest$ac_exeext conftest.$ac_ext
11840 1.1 christos fi
11841 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_pthread_mutex_adaptive_np" >&5
11842 1.1 christos $as_echo "$je_cv_pthread_mutex_adaptive_np" >&6; }
11843 1.1 christos
11844 1.1 christos if test "x${je_cv_pthread_mutex_adaptive_np}" = "xyes" ; then
11845 1.1 christos $as_echo "#define JEMALLOC_HAVE_PTHREAD_MUTEX_ADAPTIVE_NP " >>confdefs.h
11846 1.1 christos
11847 1.1 christos fi
11848 1.1 christos
11849 1.1 christos SAVED_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
11850 1.1 christos
11851 1.1 christos
11852 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -D_GNU_SOURCE" >&5
11853 1.1 christos $as_echo_n "checking whether compiler supports -D_GNU_SOURCE... " >&6; }
11854 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
11855 1.1 christos T_APPEND_V=-D_GNU_SOURCE
11856 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
11857 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
11858 1.1 christos else
11859 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
11860 1.1 christos fi
11861 1.1 christos
11862 1.1 christos
11863 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11864 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11865 1.1 christos else
11866 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11867 1.1 christos fi
11868 1.1 christos
11869 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870 1.1 christos /* end confdefs.h. */
11871 1.1 christos
11872 1.1 christos
11873 1.1 christos int
11874 1.1 christos main ()
11875 1.1 christos {
11876 1.1 christos
11877 1.1 christos return 0;
11878 1.1 christos
11879 1.1 christos ;
11880 1.1 christos return 0;
11881 1.1 christos }
11882 1.1 christos _ACEOF
11883 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
11884 1.1 christos je_cv_cflags_added=-D_GNU_SOURCE
11885 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11886 1.1 christos $as_echo "yes" >&6; }
11887 1.1 christos else
11888 1.1 christos je_cv_cflags_added=
11889 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11890 1.1 christos $as_echo "no" >&6; }
11891 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
11892 1.1 christos
11893 1.1 christos fi
11894 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11895 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11896 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11897 1.1 christos else
11898 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11899 1.1 christos fi
11900 1.1 christos
11901 1.1 christos
11902 1.1 christos
11903 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Werror" >&5
11904 1.1 christos $as_echo_n "checking whether compiler supports -Werror... " >&6; }
11905 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
11906 1.1 christos T_APPEND_V=-Werror
11907 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
11908 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
11909 1.1 christos else
11910 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
11911 1.1 christos fi
11912 1.1 christos
11913 1.1 christos
11914 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11915 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11916 1.1 christos else
11917 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11918 1.1 christos fi
11919 1.1 christos
11920 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921 1.1 christos /* end confdefs.h. */
11922 1.1 christos
11923 1.1 christos
11924 1.1 christos int
11925 1.1 christos main ()
11926 1.1 christos {
11927 1.1 christos
11928 1.1 christos return 0;
11929 1.1 christos
11930 1.1 christos ;
11931 1.1 christos return 0;
11932 1.1 christos }
11933 1.1 christos _ACEOF
11934 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
11935 1.1 christos je_cv_cflags_added=-Werror
11936 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11937 1.1 christos $as_echo "yes" >&6; }
11938 1.1 christos else
11939 1.1 christos je_cv_cflags_added=
11940 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941 1.1 christos $as_echo "no" >&6; }
11942 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
11943 1.1 christos
11944 1.1 christos fi
11945 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11946 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11947 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11948 1.1 christos else
11949 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11950 1.1 christos fi
11951 1.1 christos
11952 1.1 christos
11953 1.1 christos
11954 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -herror_on_warning" >&5
11955 1.1 christos $as_echo_n "checking whether compiler supports -herror_on_warning... " >&6; }
11956 1.1 christos T_CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}"
11957 1.1 christos T_APPEND_V=-herror_on_warning
11958 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${T_APPEND_V}" = "x" ; then
11959 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS}${T_APPEND_V}"
11960 1.1 christos else
11961 1.1 christos CONFIGURE_CFLAGS="${CONFIGURE_CFLAGS} ${T_APPEND_V}"
11962 1.1 christos fi
11963 1.1 christos
11964 1.1 christos
11965 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11966 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11967 1.1 christos else
11968 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
11969 1.1 christos fi
11970 1.1 christos
11971 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972 1.1 christos /* end confdefs.h. */
11973 1.1 christos
11974 1.1 christos
11975 1.1 christos int
11976 1.1 christos main ()
11977 1.1 christos {
11978 1.1 christos
11979 1.1 christos return 0;
11980 1.1 christos
11981 1.1 christos ;
11982 1.1 christos return 0;
11983 1.1 christos }
11984 1.1 christos _ACEOF
11985 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
11986 1.1 christos je_cv_cflags_added=-herror_on_warning
11987 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11988 1.1 christos $as_echo "yes" >&6; }
11989 1.1 christos else
11990 1.1 christos je_cv_cflags_added=
11991 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992 1.1 christos $as_echo "no" >&6; }
11993 1.1 christos CONFIGURE_CFLAGS="${T_CONFIGURE_CFLAGS}"
11994 1.1 christos
11995 1.1 christos fi
11996 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11997 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
11998 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
11999 1.1 christos else
12000 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12001 1.1 christos fi
12002 1.1 christos
12003 1.1 christos
12004 1.1 christos
12005 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char with gnu source is compilable" >&5
12006 1.1 christos $as_echo_n "checking whether strerror_r returns char with gnu source is compilable... " >&6; }
12007 1.1 christos if ${je_cv_strerror_r_returns_char_with_gnu_source+:} false; then :
12008 1.1 christos $as_echo_n "(cached) " >&6
12009 1.1 christos else
12010 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 1.1 christos /* end confdefs.h. */
12012 1.1 christos
12013 1.1 christos #include <errno.h>
12014 1.1 christos #include <stdio.h>
12015 1.1 christos #include <stdlib.h>
12016 1.1 christos #include <string.h>
12017 1.1 christos
12018 1.1 christos int
12019 1.1 christos main ()
12020 1.1 christos {
12021 1.1 christos
12022 1.1 christos char *buffer = (char *) malloc(100);
12023 1.1 christos char *error = strerror_r(EINVAL, buffer, 100);
12024 1.1 christos printf("%s\n", error);
12025 1.1 christos
12026 1.1 christos ;
12027 1.1 christos return 0;
12028 1.1 christos }
12029 1.1 christos _ACEOF
12030 1.1 christos if ac_fn_c_try_link "$LINENO"; then :
12031 1.1 christos je_cv_strerror_r_returns_char_with_gnu_source=yes
12032 1.1 christos else
12033 1.1 christos je_cv_strerror_r_returns_char_with_gnu_source=no
12034 1.1 christos fi
12035 1.1 christos rm -f core conftest.err conftest.$ac_objext \
12036 1.1 christos conftest$ac_exeext conftest.$ac_ext
12037 1.1 christos fi
12038 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $je_cv_strerror_r_returns_char_with_gnu_source" >&5
12039 1.1 christos $as_echo "$je_cv_strerror_r_returns_char_with_gnu_source" >&6; }
12040 1.1 christos
12041 1.1 christos CONFIGURE_CFLAGS="${SAVED_CONFIGURE_CFLAGS}"
12042 1.1 christos if test "x${CONFIGURE_CFLAGS}" = "x" -o "x${SPECIFIED_CFLAGS}" = "x" ; then
12043 1.1 christos CFLAGS="${CONFIGURE_CFLAGS}${SPECIFIED_CFLAGS}"
12044 1.1 christos else
12045 1.1 christos CFLAGS="${CONFIGURE_CFLAGS} ${SPECIFIED_CFLAGS}"
12046 1.1 christos fi
12047 1.1 christos
12048 1.1 christos
12049 1.1 christos if test "x${je_cv_strerror_r_returns_char_with_gnu_source}" = "xyes" ; then
12050 1.1 christos $as_echo "#define JEMALLOC_STRERROR_R_RETURNS_CHAR_WITH_GNU_SOURCE " >>confdefs.h
12051 1.1 christos
12052 1.1 christos fi
12053 1.1 christos
12054 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
12055 1.1 christos $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
12056 1.1 christos if ${ac_cv_header_stdbool_h+:} false; then :
12057 1.1 christos $as_echo_n "(cached) " >&6
12058 1.1 christos else
12059 1.1 christos cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060 1.1 christos /* end confdefs.h. */
12061 1.1 christos
12062 1.1 christos #include <stdbool.h>
12063 1.1 christos #ifndef bool
12064 1.1 christos "error: bool is not defined"
12065 1.1 christos #endif
12066 1.1 christos #ifndef false
12067 1.1 christos "error: false is not defined"
12068 1.1 christos #endif
12069 1.1 christos #if false
12070 1.1 christos "error: false is not 0"
12071 1.1 christos #endif
12072 1.1 christos #ifndef true
12073 1.1 christos "error: true is not defined"
12074 1.1 christos #endif
12075 1.1 christos #if true != 1
12076 1.1 christos "error: true is not 1"
12077 1.1 christos #endif
12078 1.1 christos #ifndef __bool_true_false_are_defined
12079 1.1 christos "error: __bool_true_false_are_defined is not defined"
12080 1.1 christos #endif
12081 1.1 christos
12082 1.1 christos struct s { _Bool s: 1; _Bool t; } s;
12083 1.1 christos
12084 1.1 christos char a[true == 1 ? 1 : -1];
12085 1.1 christos char b[false == 0 ? 1 : -1];
12086 1.1 christos char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12087 1.1 christos char d[(bool) 0.5 == true ? 1 : -1];
12088 1.1 christos /* See body of main program for 'e'. */
12089 1.1 christos char f[(_Bool) 0.0 == false ? 1 : -1];
12090 1.1 christos char g[true];
12091 1.1 christos char h[sizeof (_Bool)];
12092 1.1 christos char i[sizeof s.t];
12093 1.1 christos enum { j = false, k = true, l = false * true, m = true * 256 };
12094 1.1 christos /* The following fails for
12095 1.1 christos HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
12096 1.1 christos _Bool n[m];
12097 1.1 christos char o[sizeof n == m * sizeof n[0] ? 1 : -1];
12098 1.1 christos char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
12099 1.1 christos /* Catch a bug in an HP-UX C compiler. See
12100 1.1 christos http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
12101 1.1 christos http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
12102 1.1 christos */
12103 1.1 christos _Bool q = true;
12104 1.1 christos _Bool *pq = &q;
12105 1.1 christos
12106 1.1 christos int
12107 1.1 christos main ()
12108 1.1 christos {
12109 1.1 christos
12110 1.1 christos bool e = &s;
12111 1.1 christos *pq |= q;
12112 1.1 christos *pq |= ! q;
12113 1.1 christos /* Refer to every declared value, to avoid compiler optimizations. */
12114 1.1 christos return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
12115 1.1 christos + !m + !n + !o + !p + !q + !pq);
12116 1.1 christos
12117 1.1 christos ;
12118 1.1 christos return 0;
12119 1.1 christos }
12120 1.1 christos _ACEOF
12121 1.1 christos if ac_fn_c_try_compile "$LINENO"; then :
12122 1.1 christos ac_cv_header_stdbool_h=yes
12123 1.1 christos else
12124 1.1 christos ac_cv_header_stdbool_h=no
12125 1.1 christos fi
12126 1.1 christos rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12127 1.1 christos fi
12128 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
12129 1.1 christos $as_echo "$ac_cv_header_stdbool_h" >&6; }
12130 1.1 christos ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
12131 1.1 christos if test "x$ac_cv_type__Bool" = xyes; then :
12132 1.1 christos
12133 1.1 christos cat >>confdefs.h <<_ACEOF
12134 1.1 christos #define HAVE__BOOL 1
12135 1.1 christos _ACEOF
12136 1.1 christos
12137 1.1 christos
12138 1.1 christos fi
12139 1.1 christos
12140 1.1 christos
12141 1.1 christos if test $ac_cv_header_stdbool_h = yes; then
12142 1.1 christos
12143 1.1 christos $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
12144 1.1 christos
12145 1.1 christos fi
12146 1.1 christos
12147 1.1 christos
12148 1.1 christos
12149 1.1 christos ac_config_commands="$ac_config_commands include/jemalloc/internal/public_symbols.txt"
12150 1.1 christos
12151 1.1 christos ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols.awk"
12152 1.1 christos
12153 1.1 christos ac_config_commands="$ac_config_commands include/jemalloc/internal/private_symbols_jet.awk"
12154 1.1 christos
12155 1.1 christos ac_config_commands="$ac_config_commands include/jemalloc/internal/public_namespace.h"
12156 1.1 christos
12157 1.1 christos ac_config_commands="$ac_config_commands include/jemalloc/internal/public_unnamespace.h"
12158 1.1 christos
12159 1.1 christos ac_config_commands="$ac_config_commands include/jemalloc/internal/size_classes.h"
12160 1.1 christos
12161 1.1 christos ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_protos_jet.h"
12162 1.1 christos
12163 1.1 christos ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_rename.h"
12164 1.1 christos
12165 1.1 christos ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle.h"
12166 1.1 christos
12167 1.1 christos ac_config_commands="$ac_config_commands include/jemalloc/jemalloc_mangle_jet.h"
12168 1.1 christos
12169 1.1 christos ac_config_commands="$ac_config_commands include/jemalloc/jemalloc.h"
12170 1.1 christos
12171 1.1 christos
12172 1.1 christos
12173 1.1 christos
12174 1.1 christos ac_config_headers="$ac_config_headers $cfghdrs_tup"
12175 1.1 christos
12176 1.1 christos
12177 1.1 christos
12178 1.1 christos ac_config_files="$ac_config_files $cfgoutputs_tup config.stamp bin/jemalloc-config bin/jemalloc.sh bin/jeprof"
12179 1.1 christos
12180 1.1 christos
12181 1.1 christos
12182 1.1 christos cat >confcache <<\_ACEOF
12183 1.1 christos # This file is a shell script that caches the results of configure
12184 1.1 christos # tests run on this system so they can be shared between configure
12185 1.1 christos # scripts and configure runs, see configure's option --config-cache.
12186 1.1 christos # It is not useful on other systems. If it contains results you don't
12187 1.1 christos # want to keep, you may remove or edit it.
12188 1.1 christos #
12189 1.1 christos # config.status only pays attention to the cache file if you give it
12190 1.1 christos # the --recheck option to rerun configure.
12191 1.1 christos #
12192 1.1 christos # `ac_cv_env_foo' variables (set or unset) will be overridden when
12193 1.1 christos # loading this file, other *unset* `ac_cv_foo' will be assigned the
12194 1.1 christos # following values.
12195 1.1 christos
12196 1.1 christos _ACEOF
12197 1.1 christos
12198 1.1 christos # The following way of writing the cache mishandles newlines in values,
12199 1.1 christos # but we know of no workaround that is simple, portable, and efficient.
12200 1.1 christos # So, we kill variables containing newlines.
12201 1.1 christos # Ultrix sh set writes to stderr and can't be redirected directly,
12202 1.1 christos # and sets the high bit in the cache file unless we assign to the vars.
12203 1.1 christos (
12204 1.1 christos for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12205 1.1 christos eval ac_val=\$$ac_var
12206 1.1 christos case $ac_val in #(
12207 1.1 christos *${as_nl}*)
12208 1.1 christos case $ac_var in #(
12209 1.1 christos *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12210 1.1 christos $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12211 1.1 christos esac
12212 1.1 christos case $ac_var in #(
12213 1.1 christos _ | IFS | as_nl) ;; #(
12214 1.1 christos BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12215 1.1 christos *) { eval $ac_var=; unset $ac_var;} ;;
12216 1.1 christos esac ;;
12217 1.1 christos esac
12218 1.1 christos done
12219 1.1 christos
12220 1.1 christos (set) 2>&1 |
12221 1.1 christos case $as_nl`(ac_space=' '; set) 2>&1` in #(
12222 1.1 christos *${as_nl}ac_space=\ *)
12223 1.1 christos # `set' does not quote correctly, so add quotes: double-quote
12224 1.1 christos # substitution turns \\\\ into \\, and sed turns \\ into \.
12225 1.1 christos sed -n \
12226 1.1 christos "s/'/'\\\\''/g;
12227 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12228 1.1 christos ;; #(
12229 1.1 christos *)
12230 1.1 christos # `set' quotes correctly as required by POSIX, so do not add quotes.
12231 1.1 christos sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12232 1.1 christos ;;
12233 1.1 christos esac |
12234 1.1 christos sort
12235 1.1 christos ) |
12236 1.1 christos sed '
12237 1.1 christos /^ac_cv_env_/b end
12238 1.1 christos t clear
12239 1.1 christos :clear
12240 1.1 christos s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12241 1.1 christos t end
12242 1.1 christos s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12243 1.1 christos :end' >>confcache
12244 1.1 christos if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12245 1.1 christos if test -w "$cache_file"; then
12246 1.1 christos if test "x$cache_file" != "x/dev/null"; then
12247 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12248 1.1 christos $as_echo "$as_me: updating cache $cache_file" >&6;}
12249 1.1 christos if test ! -f "$cache_file" || test -h "$cache_file"; then
12250 1.1 christos cat confcache >"$cache_file"
12251 1.1 christos else
12252 1.1 christos case $cache_file in #(
12253 1.1 christos */* | ?:*)
12254 1.1 christos mv -f confcache "$cache_file"$$ &&
12255 1.1 christos mv -f "$cache_file"$$ "$cache_file" ;; #(
12256 1.1 christos *)
12257 1.1 christos mv -f confcache "$cache_file" ;;
12258 1.1 christos esac
12259 1.1 christos fi
12260 1.1 christos fi
12261 1.1 christos else
12262 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12263 1.1 christos $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12264 1.1 christos fi
12265 1.1 christos fi
12266 1.1 christos rm -f confcache
12267 1.1 christos
12268 1.1 christos test "x$prefix" = xNONE && prefix=$ac_default_prefix
12269 1.1 christos # Let make expand exec_prefix.
12270 1.1 christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12271 1.1 christos
12272 1.1 christos DEFS=-DHAVE_CONFIG_H
12273 1.1 christos
12274 1.1 christos ac_libobjs=
12275 1.1 christos ac_ltlibobjs=
12276 1.1 christos U=
12277 1.1 christos for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12278 1.1 christos # 1. Remove the extension, and $U if already installed.
12279 1.1 christos ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12280 1.1 christos ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12281 1.1 christos # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12282 1.1 christos # will be set to the directory where LIBOBJS objects are built.
12283 1.1 christos as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12284 1.1 christos as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12285 1.1 christos done
12286 1.1 christos LIBOBJS=$ac_libobjs
12287 1.1 christos
12288 1.1 christos LTLIBOBJS=$ac_ltlibobjs
12289 1.1 christos
12290 1.1 christos
12291 1.1 christos
12292 1.1 christos
12293 1.1 christos : "${CONFIG_STATUS=./config.status}"
12294 1.1 christos ac_write_fail=0
12295 1.1 christos ac_clean_files_save=$ac_clean_files
12296 1.1 christos ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12297 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12298 1.1 christos $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12299 1.1 christos as_write_fail=0
12300 1.1 christos cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12301 1.1 christos #! $SHELL
12302 1.1 christos # Generated by $as_me.
12303 1.1 christos # Run this file to recreate the current configuration.
12304 1.1 christos # Compiler output produced by configure, useful for debugging
12305 1.1 christos # configure, is in config.log if it exists.
12306 1.1 christos
12307 1.1 christos debug=false
12308 1.1 christos ac_cs_recheck=false
12309 1.1 christos ac_cs_silent=false
12310 1.1 christos
12311 1.1 christos SHELL=\${CONFIG_SHELL-$SHELL}
12312 1.1 christos export SHELL
12313 1.1 christos _ASEOF
12314 1.1 christos cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12315 1.1 christos ## -------------------- ##
12316 1.1 christos ## M4sh Initialization. ##
12317 1.1 christos ## -------------------- ##
12318 1.1 christos
12319 1.1 christos # Be more Bourne compatible
12320 1.1 christos DUALCASE=1; export DUALCASE # for MKS sh
12321 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12322 1.1 christos emulate sh
12323 1.1 christos NULLCMD=:
12324 1.1 christos # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12325 1.1 christos # is contrary to our usage. Disable this feature.
12326 1.1 christos alias -g '${1+"$@"}'='"$@"'
12327 1.1 christos setopt NO_GLOB_SUBST
12328 1.1 christos else
12329 1.1 christos case `(set -o) 2>/dev/null` in #(
12330 1.1 christos *posix*) :
12331 1.1 christos set -o posix ;; #(
12332 1.1 christos *) :
12333 1.1 christos ;;
12334 1.1 christos esac
12335 1.1 christos fi
12336 1.1 christos
12337 1.1 christos
12338 1.1 christos as_nl='
12339 1.1 christos '
12340 1.1 christos export as_nl
12341 1.1 christos # Printing a long string crashes Solaris 7 /usr/bin/printf.
12342 1.1 christos as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12343 1.1 christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12344 1.1 christos as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12345 1.1 christos # Prefer a ksh shell builtin over an external printf program on Solaris,
12346 1.1 christos # but without wasting forks for bash or zsh.
12347 1.1 christos if test -z "$BASH_VERSION$ZSH_VERSION" \
12348 1.1 christos && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12349 1.1 christos as_echo='print -r --'
12350 1.1 christos as_echo_n='print -rn --'
12351 1.1 christos elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12352 1.1 christos as_echo='printf %s\n'
12353 1.1 christos as_echo_n='printf %s'
12354 1.1 christos else
12355 1.1 christos if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12356 1.1 christos as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12357 1.1 christos as_echo_n='/usr/ucb/echo -n'
12358 1.1 christos else
12359 1.1 christos as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12360 1.1 christos as_echo_n_body='eval
12361 1.1 christos arg=$1;
12362 1.1 christos case $arg in #(
12363 1.1 christos *"$as_nl"*)
12364 1.1 christos expr "X$arg" : "X\\(.*\\)$as_nl";
12365 1.1 christos arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12366 1.1 christos esac;
12367 1.1 christos expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12368 1.1 christos '
12369 1.1 christos export as_echo_n_body
12370 1.1 christos as_echo_n='sh -c $as_echo_n_body as_echo'
12371 1.1 christos fi
12372 1.1 christos export as_echo_body
12373 1.1 christos as_echo='sh -c $as_echo_body as_echo'
12374 1.1 christos fi
12375 1.1 christos
12376 1.1 christos # The user is always right.
12377 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then
12378 1.1 christos PATH_SEPARATOR=:
12379 1.1 christos (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12380 1.1 christos (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12381 1.1 christos PATH_SEPARATOR=';'
12382 1.1 christos }
12383 1.1 christos fi
12384 1.1 christos
12385 1.1 christos
12386 1.1 christos # IFS
12387 1.1 christos # We need space, tab and new line, in precisely that order. Quoting is
12388 1.1 christos # there to prevent editors from complaining about space-tab.
12389 1.1 christos # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12390 1.1 christos # splitting by setting IFS to empty value.)
12391 1.1 christos IFS=" "" $as_nl"
12392 1.1 christos
12393 1.1 christos # Find who we are. Look in the path if we contain no directory separator.
12394 1.1 christos as_myself=
12395 1.1 christos case $0 in #((
12396 1.1 christos *[\\/]* ) as_myself=$0 ;;
12397 1.1 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398 1.1 christos for as_dir in $PATH
12399 1.1 christos do
12400 1.1 christos IFS=$as_save_IFS
12401 1.1 christos test -z "$as_dir" && as_dir=.
12402 1.1 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12403 1.1 christos done
12404 1.1 christos IFS=$as_save_IFS
12405 1.1 christos
12406 1.1 christos ;;
12407 1.1 christos esac
12408 1.1 christos # We did not find ourselves, most probably we were run as `sh COMMAND'
12409 1.1 christos # in which case we are not to be found in the path.
12410 1.1 christos if test "x$as_myself" = x; then
12411 1.1 christos as_myself=$0
12412 1.1 christos fi
12413 1.1 christos if test ! -f "$as_myself"; then
12414 1.1 christos $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12415 1.1 christos exit 1
12416 1.1 christos fi
12417 1.1 christos
12418 1.1 christos # Unset variables that we do not need and which cause bugs (e.g. in
12419 1.1 christos # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12420 1.1 christos # suppresses any "Segmentation fault" message there. '((' could
12421 1.1 christos # trigger a bug in pdksh 5.2.14.
12422 1.1 christos for as_var in BASH_ENV ENV MAIL MAILPATH
12423 1.1 christos do eval test x\${$as_var+set} = xset \
12424 1.1 christos && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12425 1.1 christos done
12426 1.1 christos PS1='$ '
12427 1.1 christos PS2='> '
12428 1.1 christos PS4='+ '
12429 1.1 christos
12430 1.1 christos # NLS nuisances.
12431 1.1 christos LC_ALL=C
12432 1.1 christos export LC_ALL
12433 1.1 christos LANGUAGE=C
12434 1.1 christos export LANGUAGE
12435 1.1 christos
12436 1.1 christos # CDPATH.
12437 1.1 christos (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12438 1.1 christos
12439 1.1 christos
12440 1.1 christos # as_fn_error STATUS ERROR [LINENO LOG_FD]
12441 1.1 christos # ----------------------------------------
12442 1.1 christos # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12443 1.1 christos # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12444 1.1 christos # script with STATUS, using 1 if that was 0.
12445 1.1 christos as_fn_error ()
12446 1.1 christos {
12447 1.1 christos as_status=$1; test $as_status -eq 0 && as_status=1
12448 1.1 christos if test "$4"; then
12449 1.1 christos as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12450 1.1 christos $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12451 1.1 christos fi
12452 1.1 christos $as_echo "$as_me: error: $2" >&2
12453 1.1 christos as_fn_exit $as_status
12454 1.1 christos } # as_fn_error
12455 1.1 christos
12456 1.1 christos
12457 1.1 christos # as_fn_set_status STATUS
12458 1.1 christos # -----------------------
12459 1.1 christos # Set $? to STATUS, without forking.
12460 1.1 christos as_fn_set_status ()
12461 1.1 christos {
12462 1.1 christos return $1
12463 1.1 christos } # as_fn_set_status
12464 1.1 christos
12465 1.1 christos # as_fn_exit STATUS
12466 1.1 christos # -----------------
12467 1.1 christos # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12468 1.1 christos as_fn_exit ()
12469 1.1 christos {
12470 1.1 christos set +e
12471 1.1 christos as_fn_set_status $1
12472 1.1 christos exit $1
12473 1.1 christos } # as_fn_exit
12474 1.1 christos
12475 1.1 christos # as_fn_unset VAR
12476 1.1 christos # ---------------
12477 1.1 christos # Portably unset VAR.
12478 1.1 christos as_fn_unset ()
12479 1.1 christos {
12480 1.1 christos { eval $1=; unset $1;}
12481 1.1 christos }
12482 1.1 christos as_unset=as_fn_unset
12483 1.1 christos # as_fn_append VAR VALUE
12484 1.1 christos # ----------------------
12485 1.1 christos # Append the text in VALUE to the end of the definition contained in VAR. Take
12486 1.1 christos # advantage of any shell optimizations that allow amortized linear growth over
12487 1.1 christos # repeated appends, instead of the typical quadratic growth present in naive
12488 1.1 christos # implementations.
12489 1.1 christos if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12490 1.1 christos eval 'as_fn_append ()
12491 1.1 christos {
12492 1.1 christos eval $1+=\$2
12493 1.1 christos }'
12494 1.1 christos else
12495 1.1 christos as_fn_append ()
12496 1.1 christos {
12497 1.1 christos eval $1=\$$1\$2
12498 1.1 christos }
12499 1.1 christos fi # as_fn_append
12500 1.1 christos
12501 1.1 christos # as_fn_arith ARG...
12502 1.1 christos # ------------------
12503 1.1 christos # Perform arithmetic evaluation on the ARGs, and store the result in the
12504 1.1 christos # global $as_val. Take advantage of shells that can avoid forks. The arguments
12505 1.1 christos # must be portable across $(()) and expr.
12506 1.1 christos if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12507 1.1 christos eval 'as_fn_arith ()
12508 1.1 christos {
12509 1.1 christos as_val=$(( $* ))
12510 1.1 christos }'
12511 1.1 christos else
12512 1.1 christos as_fn_arith ()
12513 1.1 christos {
12514 1.1 christos as_val=`expr "$@" || test $? -eq 1`
12515 1.1 christos }
12516 1.1 christos fi # as_fn_arith
12517 1.1 christos
12518 1.1 christos
12519 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1 &&
12520 1.1 christos test "X`expr 00001 : '.*\(...\)'`" = X001; then
12521 1.1 christos as_expr=expr
12522 1.1 christos else
12523 1.1 christos as_expr=false
12524 1.1 christos fi
12525 1.1 christos
12526 1.1 christos if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12527 1.1 christos as_basename=basename
12528 1.1 christos else
12529 1.1 christos as_basename=false
12530 1.1 christos fi
12531 1.1 christos
12532 1.1 christos if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12533 1.1 christos as_dirname=dirname
12534 1.1 christos else
12535 1.1 christos as_dirname=false
12536 1.1 christos fi
12537 1.1 christos
12538 1.1 christos as_me=`$as_basename -- "$0" ||
12539 1.1 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12540 1.1 christos X"$0" : 'X\(//\)$' \| \
12541 1.1 christos X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12542 1.1 christos $as_echo X/"$0" |
12543 1.1 christos sed '/^.*\/\([^/][^/]*\)\/*$/{
12544 1.1 christos s//\1/
12545 1.1 christos q
12546 1.1 christos }
12547 1.1 christos /^X\/\(\/\/\)$/{
12548 1.1 christos s//\1/
12549 1.1 christos q
12550 1.1 christos }
12551 1.1 christos /^X\/\(\/\).*/{
12552 1.1 christos s//\1/
12553 1.1 christos q
12554 1.1 christos }
12555 1.1 christos s/.*/./; q'`
12556 1.1 christos
12557 1.1 christos # Avoid depending upon Character Ranges.
12558 1.1 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12559 1.1 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12560 1.1 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12561 1.1 christos as_cr_digits='0123456789'
12562 1.1 christos as_cr_alnum=$as_cr_Letters$as_cr_digits
12563 1.1 christos
12564 1.1 christos ECHO_C= ECHO_N= ECHO_T=
12565 1.1 christos case `echo -n x` in #(((((
12566 1.1 christos -n*)
12567 1.1 christos case `echo 'xy\c'` in
12568 1.1 christos *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12569 1.1 christos xy) ECHO_C='\c';;
12570 1.1 christos *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12571 1.1 christos ECHO_T=' ';;
12572 1.1 christos esac;;
12573 1.1 christos *)
12574 1.1 christos ECHO_N='-n';;
12575 1.1 christos esac
12576 1.1 christos
12577 1.1 christos rm -f conf$$ conf$$.exe conf$$.file
12578 1.1 christos if test -d conf$$.dir; then
12579 1.1 christos rm -f conf$$.dir/conf$$.file
12580 1.1 christos else
12581 1.1 christos rm -f conf$$.dir
12582 1.1 christos mkdir conf$$.dir 2>/dev/null
12583 1.1 christos fi
12584 1.1 christos if (echo >conf$$.file) 2>/dev/null; then
12585 1.1 christos if ln -s conf$$.file conf$$ 2>/dev/null; then
12586 1.1 christos as_ln_s='ln -s'
12587 1.1 christos # ... but there are two gotchas:
12588 1.1 christos # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12589 1.1 christos # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12590 1.1 christos # In both cases, we have to default to `cp -pR'.
12591 1.1 christos ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12592 1.1 christos as_ln_s='cp -pR'
12593 1.1 christos elif ln conf$$.file conf$$ 2>/dev/null; then
12594 1.1 christos as_ln_s=ln
12595 1.1 christos else
12596 1.1 christos as_ln_s='cp -pR'
12597 1.1 christos fi
12598 1.1 christos else
12599 1.1 christos as_ln_s='cp -pR'
12600 1.1 christos fi
12601 1.1 christos rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12602 1.1 christos rmdir conf$$.dir 2>/dev/null
12603 1.1 christos
12604 1.1 christos
12605 1.1 christos # as_fn_mkdir_p
12606 1.1 christos # -------------
12607 1.1 christos # Create "$as_dir" as a directory, including parents if necessary.
12608 1.1 christos as_fn_mkdir_p ()
12609 1.1 christos {
12610 1.1 christos
12611 1.1 christos case $as_dir in #(
12612 1.1 christos -*) as_dir=./$as_dir;;
12613 1.1 christos esac
12614 1.1 christos test -d "$as_dir" || eval $as_mkdir_p || {
12615 1.1 christos as_dirs=
12616 1.1 christos while :; do
12617 1.1 christos case $as_dir in #(
12618 1.1 christos *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12619 1.1 christos *) as_qdir=$as_dir;;
12620 1.1 christos esac
12621 1.1 christos as_dirs="'$as_qdir' $as_dirs"
12622 1.1 christos as_dir=`$as_dirname -- "$as_dir" ||
12623 1.1 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12624 1.1 christos X"$as_dir" : 'X\(//\)[^/]' \| \
12625 1.1 christos X"$as_dir" : 'X\(//\)$' \| \
12626 1.1 christos X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12627 1.1 christos $as_echo X"$as_dir" |
12628 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12629 1.1 christos s//\1/
12630 1.1 christos q
12631 1.1 christos }
12632 1.1 christos /^X\(\/\/\)[^/].*/{
12633 1.1 christos s//\1/
12634 1.1 christos q
12635 1.1 christos }
12636 1.1 christos /^X\(\/\/\)$/{
12637 1.1 christos s//\1/
12638 1.1 christos q
12639 1.1 christos }
12640 1.1 christos /^X\(\/\).*/{
12641 1.1 christos s//\1/
12642 1.1 christos q
12643 1.1 christos }
12644 1.1 christos s/.*/./; q'`
12645 1.1 christos test -d "$as_dir" && break
12646 1.1 christos done
12647 1.1 christos test -z "$as_dirs" || eval "mkdir $as_dirs"
12648 1.1 christos } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12649 1.1 christos
12650 1.1 christos
12651 1.1 christos } # as_fn_mkdir_p
12652 1.1 christos if mkdir -p . 2>/dev/null; then
12653 1.1 christos as_mkdir_p='mkdir -p "$as_dir"'
12654 1.1 christos else
12655 1.1 christos test -d ./-p && rmdir ./-p
12656 1.1 christos as_mkdir_p=false
12657 1.1 christos fi
12658 1.1 christos
12659 1.1 christos
12660 1.1 christos # as_fn_executable_p FILE
12661 1.1 christos # -----------------------
12662 1.1 christos # Test if FILE is an executable regular file.
12663 1.1 christos as_fn_executable_p ()
12664 1.1 christos {
12665 1.1 christos test -f "$1" && test -x "$1"
12666 1.1 christos } # as_fn_executable_p
12667 1.1 christos as_test_x='test -x'
12668 1.1 christos as_executable_p=as_fn_executable_p
12669 1.1 christos
12670 1.1 christos # Sed expression to map a string onto a valid CPP name.
12671 1.1 christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12672 1.1 christos
12673 1.1 christos # Sed expression to map a string onto a valid variable name.
12674 1.1 christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12675 1.1 christos
12676 1.1 christos
12677 1.1 christos exec 6>&1
12678 1.1 christos ## ----------------------------------- ##
12679 1.1 christos ## Main body of $CONFIG_STATUS script. ##
12680 1.1 christos ## ----------------------------------- ##
12681 1.1 christos _ASEOF
12682 1.1 christos test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12683 1.1 christos
12684 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12685 1.1 christos # Save the log message, to keep $0 and so on meaningful, and to
12686 1.1 christos # report actual input values of CONFIG_FILES etc. instead of their
12687 1.1 christos # values after options handling.
12688 1.1 christos ac_log="
12689 1.1 christos This file was extended by $as_me, which was
12690 1.1 christos generated by GNU Autoconf 2.69. Invocation command line was
12691 1.1 christos
12692 1.1 christos CONFIG_FILES = $CONFIG_FILES
12693 1.1 christos CONFIG_HEADERS = $CONFIG_HEADERS
12694 1.1 christos CONFIG_LINKS = $CONFIG_LINKS
12695 1.1 christos CONFIG_COMMANDS = $CONFIG_COMMANDS
12696 1.1 christos $ $0 $@
12697 1.1 christos
12698 1.1 christos on `(hostname || uname -n) 2>/dev/null | sed 1q`
12699 1.1 christos "
12700 1.1 christos
12701 1.1 christos _ACEOF
12702 1.1 christos
12703 1.1 christos case $ac_config_files in *"
12704 1.1 christos "*) set x $ac_config_files; shift; ac_config_files=$*;;
12705 1.1 christos esac
12706 1.1 christos
12707 1.1 christos case $ac_config_headers in *"
12708 1.1 christos "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12709 1.1 christos esac
12710 1.1 christos
12711 1.1 christos
12712 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12713 1.1 christos # Files that config.status was made for.
12714 1.1 christos config_files="$ac_config_files"
12715 1.1 christos config_headers="$ac_config_headers"
12716 1.1 christos config_commands="$ac_config_commands"
12717 1.1 christos
12718 1.1 christos _ACEOF
12719 1.1 christos
12720 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12721 1.1 christos ac_cs_usage="\
12722 1.1 christos \`$as_me' instantiates files and other configuration actions
12723 1.1 christos from templates according to the current configuration. Unless the files
12724 1.1 christos and actions are specified as TAGs, all are instantiated by default.
12725 1.1 christos
12726 1.1 christos Usage: $0 [OPTION]... [TAG]...
12727 1.1 christos
12728 1.1 christos -h, --help print this help, then exit
12729 1.1 christos -V, --version print version number and configuration settings, then exit
12730 1.1 christos --config print configuration, then exit
12731 1.1 christos -q, --quiet, --silent
12732 1.1 christos do not print progress messages
12733 1.1 christos -d, --debug don't remove temporary files
12734 1.1 christos --recheck update $as_me by reconfiguring in the same conditions
12735 1.1 christos --file=FILE[:TEMPLATE]
12736 1.1 christos instantiate the configuration file FILE
12737 1.1 christos --header=FILE[:TEMPLATE]
12738 1.1 christos instantiate the configuration header FILE
12739 1.1 christos
12740 1.1 christos Configuration files:
12741 1.1 christos $config_files
12742 1.1 christos
12743 1.1 christos Configuration headers:
12744 1.1 christos $config_headers
12745 1.1 christos
12746 1.1 christos Configuration commands:
12747 1.1 christos $config_commands
12748 1.1 christos
12749 1.1 christos Report bugs to the package provider."
12750 1.1 christos
12751 1.1 christos _ACEOF
12752 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12753 1.1 christos ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12754 1.1 christos ac_cs_version="\\
12755 1.1 christos config.status
12756 1.1 christos configured by $0, generated by GNU Autoconf 2.69,
12757 1.1 christos with options \\"\$ac_cs_config\\"
12758 1.1 christos
12759 1.1 christos Copyright (C) 2012 Free Software Foundation, Inc.
12760 1.1 christos This config.status script is free software; the Free Software Foundation
12761 1.1 christos gives unlimited permission to copy, distribute and modify it."
12762 1.1 christos
12763 1.1 christos ac_pwd='$ac_pwd'
12764 1.1 christos srcdir='$srcdir'
12765 1.1 christos INSTALL='$INSTALL'
12766 1.1 christos AWK='$AWK'
12767 1.1 christos test -n "\$AWK" || AWK=awk
12768 1.1 christos _ACEOF
12769 1.1 christos
12770 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12771 1.1 christos # The default lists apply if the user does not specify any file.
12772 1.1 christos ac_need_defaults=:
12773 1.1 christos while test $# != 0
12774 1.1 christos do
12775 1.1 christos case $1 in
12776 1.1 christos --*=?*)
12777 1.1 christos ac_option=`expr "X$1" : 'X\([^=]*\)='`
12778 1.1 christos ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12779 1.1 christos ac_shift=:
12780 1.1 christos ;;
12781 1.1 christos --*=)
12782 1.1 christos ac_option=`expr "X$1" : 'X\([^=]*\)='`
12783 1.1 christos ac_optarg=
12784 1.1 christos ac_shift=:
12785 1.1 christos ;;
12786 1.1 christos *)
12787 1.1 christos ac_option=$1
12788 1.1 christos ac_optarg=$2
12789 1.1 christos ac_shift=shift
12790 1.1 christos ;;
12791 1.1 christos esac
12792 1.1 christos
12793 1.1 christos case $ac_option in
12794 1.1 christos # Handling of the options.
12795 1.1 christos -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12796 1.1 christos ac_cs_recheck=: ;;
12797 1.1 christos --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12798 1.1 christos $as_echo "$ac_cs_version"; exit ;;
12799 1.1 christos --config | --confi | --conf | --con | --co | --c )
12800 1.1 christos $as_echo "$ac_cs_config"; exit ;;
12801 1.1 christos --debug | --debu | --deb | --de | --d | -d )
12802 1.1 christos debug=: ;;
12803 1.1 christos --file | --fil | --fi | --f )
12804 1.1 christos $ac_shift
12805 1.1 christos case $ac_optarg in
12806 1.1 christos *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12807 1.1 christos '') as_fn_error $? "missing file argument" ;;
12808 1.1 christos esac
12809 1.1 christos as_fn_append CONFIG_FILES " '$ac_optarg'"
12810 1.1 christos ac_need_defaults=false;;
12811 1.1 christos --header | --heade | --head | --hea )
12812 1.1 christos $ac_shift
12813 1.1 christos case $ac_optarg in
12814 1.1 christos *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12815 1.1 christos esac
12816 1.1 christos as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12817 1.1 christos ac_need_defaults=false;;
12818 1.1 christos --he | --h)
12819 1.1 christos # Conflict between --help and --header
12820 1.1 christos as_fn_error $? "ambiguous option: \`$1'
12821 1.1 christos Try \`$0 --help' for more information.";;
12822 1.1 christos --help | --hel | -h )
12823 1.1 christos $as_echo "$ac_cs_usage"; exit ;;
12824 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12825 1.1 christos | -silent | --silent | --silen | --sile | --sil | --si | --s)
12826 1.1 christos ac_cs_silent=: ;;
12827 1.1 christos
12828 1.1 christos # This is an error.
12829 1.1 christos -*) as_fn_error $? "unrecognized option: \`$1'
12830 1.1 christos Try \`$0 --help' for more information." ;;
12831 1.1 christos
12832 1.1 christos *) as_fn_append ac_config_targets " $1"
12833 1.1 christos ac_need_defaults=false ;;
12834 1.1 christos
12835 1.1 christos esac
12836 1.1 christos shift
12837 1.1 christos done
12838 1.1 christos
12839 1.1 christos ac_configure_extra_args=
12840 1.1 christos
12841 1.1 christos if $ac_cs_silent; then
12842 1.1 christos exec 6>/dev/null
12843 1.1 christos ac_configure_extra_args="$ac_configure_extra_args --silent"
12844 1.1 christos fi
12845 1.1 christos
12846 1.1 christos _ACEOF
12847 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12848 1.1 christos if \$ac_cs_recheck; then
12849 1.1 christos set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12850 1.1 christos shift
12851 1.1 christos \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12852 1.1 christos CONFIG_SHELL='$SHELL'
12853 1.1 christos export CONFIG_SHELL
12854 1.1 christos exec "\$@"
12855 1.1 christos fi
12856 1.1 christos
12857 1.1 christos _ACEOF
12858 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12859 1.1 christos exec 5>>config.log
12860 1.1 christos {
12861 1.1 christos echo
12862 1.1 christos sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12863 1.1 christos ## Running $as_me. ##
12864 1.1 christos _ASBOX
12865 1.1 christos $as_echo "$ac_log"
12866 1.1 christos } >&5
12867 1.1 christos
12868 1.1 christos _ACEOF
12869 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12870 1.1 christos #
12871 1.1 christos # INIT-COMMANDS
12872 1.1 christos #
12873 1.1 christos
12874 1.1 christos srcdir="${srcdir}"
12875 1.1 christos objroot="${objroot}"
12876 1.1 christos mangling_map="${mangling_map}"
12877 1.1 christos public_syms="${public_syms}"
12878 1.1 christos JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
12879 1.1 christos
12880 1.1 christos
12881 1.1 christos srcdir="${srcdir}"
12882 1.1 christos objroot="${objroot}"
12883 1.1 christos public_syms="${public_syms}"
12884 1.1 christos wrap_syms="${wrap_syms}"
12885 1.1 christos SYM_PREFIX="${SYM_PREFIX}"
12886 1.1 christos JEMALLOC_PREFIX="${JEMALLOC_PREFIX}"
12887 1.1 christos
12888 1.1 christos
12889 1.1 christos srcdir="${srcdir}"
12890 1.1 christos objroot="${objroot}"
12891 1.1 christos public_syms="${public_syms}"
12892 1.1 christos wrap_syms="${wrap_syms}"
12893 1.1 christos SYM_PREFIX="${SYM_PREFIX}"
12894 1.1 christos
12895 1.1 christos
12896 1.1 christos srcdir="${srcdir}"
12897 1.1 christos objroot="${objroot}"
12898 1.1 christos
12899 1.1 christos
12900 1.1 christos srcdir="${srcdir}"
12901 1.1 christos objroot="${objroot}"
12902 1.1 christos
12903 1.1 christos
12904 1.1 christos SHELL="${SHELL}"
12905 1.1 christos srcdir="${srcdir}"
12906 1.1 christos objroot="${objroot}"
12907 1.1 christos LG_QUANTA="${LG_QUANTA}"
12908 1.1 christos LG_PAGE_SIZES="${LG_PAGE_SIZES}"
12909 1.1 christos
12910 1.1 christos
12911 1.1 christos srcdir="${srcdir}"
12912 1.1 christos objroot="${objroot}"
12913 1.1 christos
12914 1.1 christos
12915 1.1 christos srcdir="${srcdir}"
12916 1.1 christos objroot="${objroot}"
12917 1.1 christos
12918 1.1 christos
12919 1.1 christos srcdir="${srcdir}"
12920 1.1 christos objroot="${objroot}"
12921 1.1 christos
12922 1.1 christos
12923 1.1 christos srcdir="${srcdir}"
12924 1.1 christos objroot="${objroot}"
12925 1.1 christos
12926 1.1 christos
12927 1.1 christos srcdir="${srcdir}"
12928 1.1 christos objroot="${objroot}"
12929 1.1 christos install_suffix="${install_suffix}"
12930 1.1 christos
12931 1.1 christos
12932 1.1 christos _ACEOF
12933 1.1 christos
12934 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12935 1.1 christos
12936 1.1 christos # Handling of arguments.
12937 1.1 christos for ac_config_target in $ac_config_targets
12938 1.1 christos do
12939 1.1 christos case $ac_config_target in
12940 1.1 christos "include/jemalloc/internal/public_symbols.txt") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_symbols.txt" ;;
12941 1.1 christos "include/jemalloc/internal/private_symbols.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols.awk" ;;
12942 1.1 christos "include/jemalloc/internal/private_symbols_jet.awk") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/private_symbols_jet.awk" ;;
12943 1.1 christos "include/jemalloc/internal/public_namespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_namespace.h" ;;
12944 1.1 christos "include/jemalloc/internal/public_unnamespace.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/public_unnamespace.h" ;;
12945 1.1 christos "include/jemalloc/internal/size_classes.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/internal/size_classes.h" ;;
12946 1.1 christos "include/jemalloc/jemalloc_protos_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_protos_jet.h" ;;
12947 1.1 christos "include/jemalloc/jemalloc_rename.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_rename.h" ;;
12948 1.1 christos "include/jemalloc/jemalloc_mangle.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle.h" ;;
12949 1.1 christos "include/jemalloc/jemalloc_mangle_jet.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc_mangle_jet.h" ;;
12950 1.1 christos "include/jemalloc/jemalloc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/jemalloc/jemalloc.h" ;;
12951 1.1 christos "$cfghdrs_tup") CONFIG_HEADERS="$CONFIG_HEADERS $cfghdrs_tup" ;;
12952 1.1 christos "$cfgoutputs_tup") CONFIG_FILES="$CONFIG_FILES $cfgoutputs_tup" ;;
12953 1.1 christos "config.stamp") CONFIG_FILES="$CONFIG_FILES config.stamp" ;;
12954 1.1 christos "bin/jemalloc-config") CONFIG_FILES="$CONFIG_FILES bin/jemalloc-config" ;;
12955 1.1 christos "bin/jemalloc.sh") CONFIG_FILES="$CONFIG_FILES bin/jemalloc.sh" ;;
12956 1.1 christos "bin/jeprof") CONFIG_FILES="$CONFIG_FILES bin/jeprof" ;;
12957 1.1 christos
12958 1.1 christos *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12959 1.1 christos esac
12960 1.1 christos done
12961 1.1 christos
12962 1.1 christos
12963 1.1 christos # If the user did not use the arguments to specify the items to instantiate,
12964 1.1 christos # then the envvar interface is used. Set only those that are not.
12965 1.1 christos # We use the long form for the default assignment because of an extremely
12966 1.1 christos # bizarre bug on SunOS 4.1.3.
12967 1.1 christos if $ac_need_defaults; then
12968 1.1 christos test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12969 1.1 christos test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12970 1.1 christos test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12971 1.1 christos fi
12972 1.1 christos
12973 1.1 christos # Have a temporary directory for convenience. Make it in the build tree
12974 1.1 christos # simply because there is no reason against having it here, and in addition,
12975 1.1 christos # creating and moving files from /tmp can sometimes cause problems.
12976 1.1 christos # Hook for its removal unless debugging.
12977 1.1 christos # Note that there is a small window in which the directory will not be cleaned:
12978 1.1 christos # after its creation but before its name has been assigned to `$tmp'.
12979 1.1 christos $debug ||
12980 1.1 christos {
12981 1.1 christos tmp= ac_tmp=
12982 1.1 christos trap 'exit_status=$?
12983 1.1 christos : "${ac_tmp:=$tmp}"
12984 1.1 christos { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12985 1.1 christos ' 0
12986 1.1 christos trap 'as_fn_exit 1' 1 2 13 15
12987 1.1 christos }
12988 1.1 christos # Create a (secure) tmp directory for tmp files.
12989 1.1 christos
12990 1.1 christos {
12991 1.1 christos tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12992 1.1 christos test -d "$tmp"
12993 1.1 christos } ||
12994 1.1 christos {
12995 1.1 christos tmp=./conf$$-$RANDOM
12996 1.1 christos (umask 077 && mkdir "$tmp")
12997 1.1 christos } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12998 1.1 christos ac_tmp=$tmp
12999 1.1 christos
13000 1.1 christos # Set up the scripts for CONFIG_FILES section.
13001 1.1 christos # No need to generate them if there are no CONFIG_FILES.
13002 1.1 christos # This happens for instance with `./config.status config.h'.
13003 1.1 christos if test -n "$CONFIG_FILES"; then
13004 1.1 christos
13005 1.1 christos
13006 1.1 christos ac_cr=`echo X | tr X '\015'`
13007 1.1 christos # On cygwin, bash can eat \r inside `` if the user requested igncr.
13008 1.1 christos # But we know of no other shell where ac_cr would be empty at this
13009 1.1 christos # point, so we can use a bashism as a fallback.
13010 1.1 christos if test "x$ac_cr" = x; then
13011 1.1 christos eval ac_cr=\$\'\\r\'
13012 1.1 christos fi
13013 1.1 christos ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13014 1.1 christos if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13015 1.1 christos ac_cs_awk_cr='\\r'
13016 1.1 christos else
13017 1.1 christos ac_cs_awk_cr=$ac_cr
13018 1.1 christos fi
13019 1.1 christos
13020 1.1 christos echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13021 1.1 christos _ACEOF
13022 1.1 christos
13023 1.1 christos
13024 1.1 christos {
13025 1.1 christos echo "cat >conf$$subs.awk <<_ACEOF" &&
13026 1.1 christos echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13027 1.1 christos echo "_ACEOF"
13028 1.1 christos } >conf$$subs.sh ||
13029 1.1 christos as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13030 1.1 christos ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13031 1.1 christos ac_delim='%!_!# '
13032 1.1 christos for ac_last_try in false false false false false :; do
13033 1.1 christos . ./conf$$subs.sh ||
13034 1.1 christos as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13035 1.1 christos
13036 1.1 christos ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13037 1.1 christos if test $ac_delim_n = $ac_delim_num; then
13038 1.1 christos break
13039 1.1 christos elif $ac_last_try; then
13040 1.1 christos as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13041 1.1 christos else
13042 1.1 christos ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13043 1.1 christos fi
13044 1.1 christos done
13045 1.1 christos rm -f conf$$subs.sh
13046 1.1 christos
13047 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13048 1.1 christos cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13049 1.1 christos _ACEOF
13050 1.1 christos sed -n '
13051 1.1 christos h
13052 1.1 christos s/^/S["/; s/!.*/"]=/
13053 1.1 christos p
13054 1.1 christos g
13055 1.1 christos s/^[^!]*!//
13056 1.1 christos :repl
13057 1.1 christos t repl
13058 1.1 christos s/'"$ac_delim"'$//
13059 1.1 christos t delim
13060 1.1 christos :nl
13061 1.1 christos h
13062 1.1 christos s/\(.\{148\}\)..*/\1/
13063 1.1 christos t more1
13064 1.1 christos s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13065 1.1 christos p
13066 1.1 christos n
13067 1.1 christos b repl
13068 1.1 christos :more1
13069 1.1 christos s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13070 1.1 christos p
13071 1.1 christos g
13072 1.1 christos s/.\{148\}//
13073 1.1 christos t nl
13074 1.1 christos :delim
13075 1.1 christos h
13076 1.1 christos s/\(.\{148\}\)..*/\1/
13077 1.1 christos t more2
13078 1.1 christos s/["\\]/\\&/g; s/^/"/; s/$/"/
13079 1.1 christos p
13080 1.1 christos b
13081 1.1 christos :more2
13082 1.1 christos s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13083 1.1 christos p
13084 1.1 christos g
13085 1.1 christos s/.\{148\}//
13086 1.1 christos t delim
13087 1.1 christos ' <conf$$subs.awk | sed '
13088 1.1 christos /^[^""]/{
13089 1.1 christos N
13090 1.1 christos s/\n//
13091 1.1 christos }
13092 1.1 christos ' >>$CONFIG_STATUS || ac_write_fail=1
13093 1.1 christos rm -f conf$$subs.awk
13094 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13095 1.1 christos _ACAWK
13096 1.1 christos cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13097 1.1 christos for (key in S) S_is_set[key] = 1
13098 1.1 christos FS = ""
13099 1.1 christos
13100 1.1 christos }
13101 1.1 christos {
13102 1.1 christos line = $ 0
13103 1.1 christos nfields = split(line, field, "@")
13104 1.1 christos substed = 0
13105 1.1 christos len = length(field[1])
13106 1.1 christos for (i = 2; i < nfields; i++) {
13107 1.1 christos key = field[i]
13108 1.1 christos keylen = length(key)
13109 1.1 christos if (S_is_set[key]) {
13110 1.1 christos value = S[key]
13111 1.1 christos line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13112 1.1 christos len += length(value) + length(field[++i])
13113 1.1 christos substed = 1
13114 1.1 christos } else
13115 1.1 christos len += 1 + keylen
13116 1.1 christos }
13117 1.1 christos
13118 1.1 christos print line
13119 1.1 christos }
13120 1.1 christos
13121 1.1 christos _ACAWK
13122 1.1 christos _ACEOF
13123 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13124 1.1 christos if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13125 1.1 christos sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13126 1.1 christos else
13127 1.1 christos cat
13128 1.1 christos fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13129 1.1 christos || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13130 1.1 christos _ACEOF
13131 1.1 christos
13132 1.1 christos # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13133 1.1 christos # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13134 1.1 christos # trailing colons and then remove the whole line if VPATH becomes empty
13135 1.1 christos # (actually we leave an empty line to preserve line numbers).
13136 1.1 christos if test "x$srcdir" = x.; then
13137 1.1 christos ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13138 1.1 christos h
13139 1.1 christos s///
13140 1.1 christos s/^/:/
13141 1.1 christos s/[ ]*$/:/
13142 1.1 christos s/:\$(srcdir):/:/g
13143 1.1 christos s/:\${srcdir}:/:/g
13144 1.1 christos s/:@srcdir@:/:/g
13145 1.1 christos s/^:*//
13146 1.1 christos s/:*$//
13147 1.1 christos x
13148 1.1 christos s/\(=[ ]*\).*/\1/
13149 1.1 christos G
13150 1.1 christos s/\n//
13151 1.1 christos s/^[^=]*=[ ]*$//
13152 1.1 christos }'
13153 1.1 christos fi
13154 1.1 christos
13155 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13156 1.1 christos fi # test -n "$CONFIG_FILES"
13157 1.1 christos
13158 1.1 christos # Set up the scripts for CONFIG_HEADERS section.
13159 1.1 christos # No need to generate them if there are no CONFIG_HEADERS.
13160 1.1 christos # This happens for instance with `./config.status Makefile'.
13161 1.1 christos if test -n "$CONFIG_HEADERS"; then
13162 1.1 christos cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13163 1.1 christos BEGIN {
13164 1.1 christos _ACEOF
13165 1.1 christos
13166 1.1 christos # Transform confdefs.h into an awk script `defines.awk', embedded as
13167 1.1 christos # here-document in config.status, that substitutes the proper values into
13168 1.1 christos # config.h.in to produce config.h.
13169 1.1 christos
13170 1.1 christos # Create a delimiter string that does not exist in confdefs.h, to ease
13171 1.1 christos # handling of long lines.
13172 1.1 christos ac_delim='%!_!# '
13173 1.1 christos for ac_last_try in false false :; do
13174 1.1 christos ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13175 1.1 christos if test -z "$ac_tt"; then
13176 1.1 christos break
13177 1.1 christos elif $ac_last_try; then
13178 1.1 christos as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13179 1.1 christos else
13180 1.1 christos ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13181 1.1 christos fi
13182 1.1 christos done
13183 1.1 christos
13184 1.1 christos # For the awk script, D is an array of macro values keyed by name,
13185 1.1 christos # likewise P contains macro parameters if any. Preserve backslash
13186 1.1 christos # newline sequences.
13187 1.1 christos
13188 1.1 christos ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13189 1.1 christos sed -n '
13190 1.1 christos s/.\{148\}/&'"$ac_delim"'/g
13191 1.1 christos t rset
13192 1.1 christos :rset
13193 1.1 christos s/^[ ]*#[ ]*define[ ][ ]*/ /
13194 1.1 christos t def
13195 1.1 christos d
13196 1.1 christos :def
13197 1.1 christos s/\\$//
13198 1.1 christos t bsnl
13199 1.1 christos s/["\\]/\\&/g
13200 1.1 christos s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13201 1.1 christos D["\1"]=" \3"/p
13202 1.1 christos s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13203 1.1 christos d
13204 1.1 christos :bsnl
13205 1.1 christos s/["\\]/\\&/g
13206 1.1 christos s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13207 1.1 christos D["\1"]=" \3\\\\\\n"\\/p
13208 1.1 christos t cont
13209 1.1 christos s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13210 1.1 christos t cont
13211 1.1 christos d
13212 1.1 christos :cont
13213 1.1 christos n
13214 1.1 christos s/.\{148\}/&'"$ac_delim"'/g
13215 1.1 christos t clear
13216 1.1 christos :clear
13217 1.1 christos s/\\$//
13218 1.1 christos t bsnlc
13219 1.1 christos s/["\\]/\\&/g; s/^/"/; s/$/"/p
13220 1.1 christos d
13221 1.1 christos :bsnlc
13222 1.1 christos s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13223 1.1 christos b cont
13224 1.1 christos ' <confdefs.h | sed '
13225 1.1 christos s/'"$ac_delim"'/"\\\
13226 1.1 christos "/g' >>$CONFIG_STATUS || ac_write_fail=1
13227 1.1 christos
13228 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13229 1.1 christos for (key in D) D_is_set[key] = 1
13230 1.1 christos FS = ""
13231 1.1 christos }
13232 1.1 christos /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13233 1.1 christos line = \$ 0
13234 1.1 christos split(line, arg, " ")
13235 1.1 christos if (arg[1] == "#") {
13236 1.1 christos defundef = arg[2]
13237 1.1 christos mac1 = arg[3]
13238 1.1 christos } else {
13239 1.1 christos defundef = substr(arg[1], 2)
13240 1.1 christos mac1 = arg[2]
13241 1.1 christos }
13242 1.1 christos split(mac1, mac2, "(") #)
13243 1.1 christos macro = mac2[1]
13244 1.1 christos prefix = substr(line, 1, index(line, defundef) - 1)
13245 1.1 christos if (D_is_set[macro]) {
13246 1.1 christos # Preserve the white space surrounding the "#".
13247 1.1 christos print prefix "define", macro P[macro] D[macro]
13248 1.1 christos next
13249 1.1 christos } else {
13250 1.1 christos # Replace #undef with comments. This is necessary, for example,
13251 1.1 christos # in the case of _POSIX_SOURCE, which is predefined and required
13252 1.1 christos # on some systems where configure will not decide to define it.
13253 1.1 christos if (defundef == "undef") {
13254 1.1 christos print "/*", prefix defundef, macro, "*/"
13255 1.1 christos next
13256 1.1 christos }
13257 1.1 christos }
13258 1.1 christos }
13259 1.1 christos { print }
13260 1.1 christos _ACAWK
13261 1.1 christos _ACEOF
13262 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13263 1.1 christos as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13264 1.1 christos fi # test -n "$CONFIG_HEADERS"
13265 1.1 christos
13266 1.1 christos
13267 1.1 christos eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13268 1.1 christos shift
13269 1.1 christos for ac_tag
13270 1.1 christos do
13271 1.1 christos case $ac_tag in
13272 1.1 christos :[FHLC]) ac_mode=$ac_tag; continue;;
13273 1.1 christos esac
13274 1.1 christos case $ac_mode$ac_tag in
13275 1.1 christos :[FHL]*:*);;
13276 1.1 christos :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13277 1.1 christos :[FH]-) ac_tag=-:-;;
13278 1.1 christos :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13279 1.1 christos esac
13280 1.1 christos ac_save_IFS=$IFS
13281 1.1 christos IFS=:
13282 1.1 christos set x $ac_tag
13283 1.1 christos IFS=$ac_save_IFS
13284 1.1 christos shift
13285 1.1 christos ac_file=$1
13286 1.1 christos shift
13287 1.1 christos
13288 1.1 christos case $ac_mode in
13289 1.1 christos :L) ac_source=$1;;
13290 1.1 christos :[FH])
13291 1.1 christos ac_file_inputs=
13292 1.1 christos for ac_f
13293 1.1 christos do
13294 1.1 christos case $ac_f in
13295 1.1 christos -) ac_f="$ac_tmp/stdin";;
13296 1.1 christos *) # Look for the file first in the build tree, then in the source tree
13297 1.1 christos # (if the path is not absolute). The absolute path cannot be DOS-style,
13298 1.1 christos # because $ac_f cannot contain `:'.
13299 1.1 christos test -f "$ac_f" ||
13300 1.1 christos case $ac_f in
13301 1.1 christos [\\/$]*) false;;
13302 1.1 christos *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13303 1.1 christos esac ||
13304 1.1 christos as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13305 1.1 christos esac
13306 1.1 christos case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13307 1.1 christos as_fn_append ac_file_inputs " '$ac_f'"
13308 1.1 christos done
13309 1.1 christos
13310 1.1 christos # Let's still pretend it is `configure' which instantiates (i.e., don't
13311 1.1 christos # use $as_me), people would be surprised to read:
13312 1.1 christos # /* config.h. Generated by config.status. */
13313 1.1 christos configure_input='Generated from '`
13314 1.1 christos $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13315 1.1 christos `' by configure.'
13316 1.1 christos if test x"$ac_file" != x-; then
13317 1.1 christos configure_input="$ac_file. $configure_input"
13318 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13319 1.1 christos $as_echo "$as_me: creating $ac_file" >&6;}
13320 1.1 christos fi
13321 1.1 christos # Neutralize special characters interpreted by sed in replacement strings.
13322 1.1 christos case $configure_input in #(
13323 1.1 christos *\&* | *\|* | *\\* )
13324 1.1 christos ac_sed_conf_input=`$as_echo "$configure_input" |
13325 1.1 christos sed 's/[\\\\&|]/\\\\&/g'`;; #(
13326 1.1 christos *) ac_sed_conf_input=$configure_input;;
13327 1.1 christos esac
13328 1.1 christos
13329 1.1 christos case $ac_tag in
13330 1.1 christos *:-:* | *:-) cat >"$ac_tmp/stdin" \
13331 1.1 christos || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13332 1.1 christos esac
13333 1.1 christos ;;
13334 1.1 christos esac
13335 1.1 christos
13336 1.1 christos ac_dir=`$as_dirname -- "$ac_file" ||
13337 1.1 christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13338 1.1 christos X"$ac_file" : 'X\(//\)[^/]' \| \
13339 1.1 christos X"$ac_file" : 'X\(//\)$' \| \
13340 1.1 christos X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13341 1.1 christos $as_echo X"$ac_file" |
13342 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13343 1.1 christos s//\1/
13344 1.1 christos q
13345 1.1 christos }
13346 1.1 christos /^X\(\/\/\)[^/].*/{
13347 1.1 christos s//\1/
13348 1.1 christos q
13349 1.1 christos }
13350 1.1 christos /^X\(\/\/\)$/{
13351 1.1 christos s//\1/
13352 1.1 christos q
13353 1.1 christos }
13354 1.1 christos /^X\(\/\).*/{
13355 1.1 christos s//\1/
13356 1.1 christos q
13357 1.1 christos }
13358 1.1 christos s/.*/./; q'`
13359 1.1 christos as_dir="$ac_dir"; as_fn_mkdir_p
13360 1.1 christos ac_builddir=.
13361 1.1 christos
13362 1.1 christos case "$ac_dir" in
13363 1.1 christos .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13364 1.1 christos *)
13365 1.1 christos ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13366 1.1 christos # A ".." for each directory in $ac_dir_suffix.
13367 1.1 christos ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13368 1.1 christos case $ac_top_builddir_sub in
13369 1.1 christos "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13370 1.1 christos *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13371 1.1 christos esac ;;
13372 1.1 christos esac
13373 1.1 christos ac_abs_top_builddir=$ac_pwd
13374 1.1 christos ac_abs_builddir=$ac_pwd$ac_dir_suffix
13375 1.1 christos # for backward compatibility:
13376 1.1 christos ac_top_builddir=$ac_top_build_prefix
13377 1.1 christos
13378 1.1 christos case $srcdir in
13379 1.1 christos .) # We are building in place.
13380 1.1 christos ac_srcdir=.
13381 1.1 christos ac_top_srcdir=$ac_top_builddir_sub
13382 1.1 christos ac_abs_top_srcdir=$ac_pwd ;;
13383 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute name.
13384 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix;
13385 1.1 christos ac_top_srcdir=$srcdir
13386 1.1 christos ac_abs_top_srcdir=$srcdir ;;
13387 1.1 christos *) # Relative name.
13388 1.1 christos ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13389 1.1 christos ac_top_srcdir=$ac_top_build_prefix$srcdir
13390 1.1 christos ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13391 1.1 christos esac
13392 1.1 christos ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13393 1.1 christos
13394 1.1 christos
13395 1.1 christos case $ac_mode in
13396 1.1 christos :F)
13397 1.1 christos #
13398 1.1 christos # CONFIG_FILE
13399 1.1 christos #
13400 1.1 christos
13401 1.1 christos case $INSTALL in
13402 1.1 christos [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13403 1.1 christos *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13404 1.1 christos esac
13405 1.1 christos _ACEOF
13406 1.1 christos
13407 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13408 1.1 christos # If the template does not know about datarootdir, expand it.
13409 1.1 christos # FIXME: This hack should be removed a few years after 2.60.
13410 1.1 christos ac_datarootdir_hack=; ac_datarootdir_seen=
13411 1.1 christos ac_sed_dataroot='
13412 1.1 christos /datarootdir/ {
13413 1.1 christos p
13414 1.1 christos q
13415 1.1 christos }
13416 1.1 christos /@datadir@/p
13417 1.1 christos /@docdir@/p
13418 1.1 christos /@infodir@/p
13419 1.1 christos /@localedir@/p
13420 1.1 christos /@mandir@/p'
13421 1.1 christos case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13422 1.1 christos *datarootdir*) ac_datarootdir_seen=yes;;
13423 1.1 christos *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13424 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13425 1.1 christos $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13426 1.1 christos _ACEOF
13427 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13428 1.1 christos ac_datarootdir_hack='
13429 1.1 christos s&@datadir@&$datadir&g
13430 1.1 christos s&@docdir@&$docdir&g
13431 1.1 christos s&@infodir@&$infodir&g
13432 1.1 christos s&@localedir@&$localedir&g
13433 1.1 christos s&@mandir@&$mandir&g
13434 1.1 christos s&\\\${datarootdir}&$datarootdir&g' ;;
13435 1.1 christos esac
13436 1.1 christos _ACEOF
13437 1.1 christos
13438 1.1 christos # Neutralize VPATH when `$srcdir' = `.'.
13439 1.1 christos # Shell code in configure.ac might set extrasub.
13440 1.1 christos # FIXME: do we really want to maintain this feature?
13441 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13442 1.1 christos ac_sed_extra="$ac_vpsub
13443 1.1 christos $extrasub
13444 1.1 christos _ACEOF
13445 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13446 1.1 christos :t
13447 1.1 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13448 1.1 christos s|@configure_input@|$ac_sed_conf_input|;t t
13449 1.1 christos s&@top_builddir@&$ac_top_builddir_sub&;t t
13450 1.1 christos s&@top_build_prefix@&$ac_top_build_prefix&;t t
13451 1.1 christos s&@srcdir@&$ac_srcdir&;t t
13452 1.1 christos s&@abs_srcdir@&$ac_abs_srcdir&;t t
13453 1.1 christos s&@top_srcdir@&$ac_top_srcdir&;t t
13454 1.1 christos s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13455 1.1 christos s&@builddir@&$ac_builddir&;t t
13456 1.1 christos s&@abs_builddir@&$ac_abs_builddir&;t t
13457 1.1 christos s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13458 1.1 christos s&@INSTALL@&$ac_INSTALL&;t t
13459 1.1 christos $ac_datarootdir_hack
13460 1.1 christos "
13461 1.1 christos eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13462 1.1 christos >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13463 1.1 christos
13464 1.1 christos test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13465 1.1 christos { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13466 1.1 christos { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13467 1.1 christos "$ac_tmp/out"`; test -z "$ac_out"; } &&
13468 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13469 1.1 christos which seems to be undefined. Please make sure it is defined" >&5
13470 1.1 christos $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13471 1.1 christos which seems to be undefined. Please make sure it is defined" >&2;}
13472 1.1 christos
13473 1.1 christos rm -f "$ac_tmp/stdin"
13474 1.1 christos case $ac_file in
13475 1.1 christos -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13476 1.1 christos *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13477 1.1 christos esac \
13478 1.1 christos || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13479 1.1 christos ;;
13480 1.1 christos :H)
13481 1.1 christos #
13482 1.1 christos # CONFIG_HEADER
13483 1.1 christos #
13484 1.1 christos if test x"$ac_file" != x-; then
13485 1.1 christos {
13486 1.1 christos $as_echo "/* $configure_input */" \
13487 1.1 christos && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13488 1.1 christos } >"$ac_tmp/config.h" \
13489 1.1 christos || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13490 1.1 christos if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13491 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13492 1.1 christos $as_echo "$as_me: $ac_file is unchanged" >&6;}
13493 1.1 christos else
13494 1.1 christos rm -f "$ac_file"
13495 1.1 christos mv "$ac_tmp/config.h" "$ac_file" \
13496 1.1 christos || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13497 1.1 christos fi
13498 1.1 christos else
13499 1.1 christos $as_echo "/* $configure_input */" \
13500 1.1 christos && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13501 1.1 christos || as_fn_error $? "could not create -" "$LINENO" 5
13502 1.1 christos fi
13503 1.1 christos ;;
13504 1.1 christos
13505 1.1 christos :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13506 1.1 christos $as_echo "$as_me: executing $ac_file commands" >&6;}
13507 1.1 christos ;;
13508 1.1 christos esac
13509 1.1 christos
13510 1.1 christos
13511 1.1 christos case $ac_file$ac_mode in
13512 1.1 christos "include/jemalloc/internal/public_symbols.txt":C)
13513 1.1 christos f="${objroot}include/jemalloc/internal/public_symbols.txt"
13514 1.1 christos mkdir -p "${objroot}include/jemalloc/internal"
13515 1.1 christos cp /dev/null "${f}"
13516 1.1 christos for nm in `echo ${mangling_map} |tr ',' ' '` ; do
13517 1.1 christos n=`echo ${nm} |tr ':' ' ' |awk '{print $1}'`
13518 1.1 christos m=`echo ${nm} |tr ':' ' ' |awk '{print $2}'`
13519 1.1 christos echo "${n}:${m}" >> "${f}"
13520 1.1 christos public_syms=`for sym in ${public_syms}; do echo "${sym}"; done |grep -v "^${n}\$" |tr '\n' ' '`
13521 1.1 christos done
13522 1.1 christos for sym in ${public_syms} ; do
13523 1.1 christos n="${sym}"
13524 1.1 christos m="${JEMALLOC_PREFIX}${sym}"
13525 1.1 christos echo "${n}:${m}" >> "${f}"
13526 1.1 christos done
13527 1.1 christos ;;
13528 1.1 christos "include/jemalloc/internal/private_symbols.awk":C)
13529 1.1 christos f="${objroot}include/jemalloc/internal/private_symbols.awk"
13530 1.1 christos mkdir -p "${objroot}include/jemalloc/internal"
13531 1.1 christos export_syms=`for sym in ${public_syms}; do echo "${JEMALLOC_PREFIX}${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
13532 1.1 christos "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols.awk"
13533 1.1 christos ;;
13534 1.1 christos "include/jemalloc/internal/private_symbols_jet.awk":C)
13535 1.1 christos f="${objroot}include/jemalloc/internal/private_symbols_jet.awk"
13536 1.1 christos mkdir -p "${objroot}include/jemalloc/internal"
13537 1.1 christos export_syms=`for sym in ${public_syms}; do echo "jet_${sym}"; done; for sym in ${wrap_syms}; do echo "${sym}"; done;`
13538 1.1 christos "${srcdir}/include/jemalloc/internal/private_symbols.sh" "${SYM_PREFIX}" ${export_syms} > "${objroot}include/jemalloc/internal/private_symbols_jet.awk"
13539 1.1 christos ;;
13540 1.1 christos "include/jemalloc/internal/public_namespace.h":C)
13541 1.1 christos mkdir -p "${objroot}include/jemalloc/internal"
13542 1.1 christos "${srcdir}/include/jemalloc/internal/public_namespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_namespace.h"
13543 1.1 christos ;;
13544 1.1 christos "include/jemalloc/internal/public_unnamespace.h":C)
13545 1.1 christos mkdir -p "${objroot}include/jemalloc/internal"
13546 1.1 christos "${srcdir}/include/jemalloc/internal/public_unnamespace.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/internal/public_unnamespace.h"
13547 1.1 christos ;;
13548 1.1 christos "include/jemalloc/internal/size_classes.h":C)
13549 1.1 christos mkdir -p "${objroot}include/jemalloc/internal"
13550 1.1 christos "${SHELL}" "${srcdir}/include/jemalloc/internal/size_classes.sh" "${LG_QUANTA}" 3 "${LG_PAGE_SIZES}" 2 > "${objroot}include/jemalloc/internal/size_classes.h"
13551 1.1 christos ;;
13552 1.1 christos "include/jemalloc/jemalloc_protos_jet.h":C)
13553 1.1 christos mkdir -p "${objroot}include/jemalloc"
13554 1.1 christos cat "${srcdir}/include/jemalloc/jemalloc_protos.h.in" | sed -e 's/@je_@/jet_/g' > "${objroot}include/jemalloc/jemalloc_protos_jet.h"
13555 1.1 christos ;;
13556 1.1 christos "include/jemalloc/jemalloc_rename.h":C)
13557 1.1 christos mkdir -p "${objroot}include/jemalloc"
13558 1.1 christos "${srcdir}/include/jemalloc/jemalloc_rename.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" > "${objroot}include/jemalloc/jemalloc_rename.h"
13559 1.1 christos ;;
13560 1.1 christos "include/jemalloc/jemalloc_mangle.h":C)
13561 1.1 christos mkdir -p "${objroot}include/jemalloc"
13562 1.1 christos "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" je_ > "${objroot}include/jemalloc/jemalloc_mangle.h"
13563 1.1 christos ;;
13564 1.1 christos "include/jemalloc/jemalloc_mangle_jet.h":C)
13565 1.1 christos mkdir -p "${objroot}include/jemalloc"
13566 1.1 christos "${srcdir}/include/jemalloc/jemalloc_mangle.sh" "${objroot}include/jemalloc/internal/public_symbols.txt" jet_ > "${objroot}include/jemalloc/jemalloc_mangle_jet.h"
13567 1.1 christos ;;
13568 1.1 christos "include/jemalloc/jemalloc.h":C)
13569 1.1 christos mkdir -p "${objroot}include/jemalloc"
13570 1.1 christos "${srcdir}/include/jemalloc/jemalloc.sh" "${objroot}" > "${objroot}include/jemalloc/jemalloc${install_suffix}.h"
13571 1.1 christos ;;
13572 1.1 christos
13573 1.1 christos esac
13574 1.1 christos done # for ac_tag
13575 1.1 christos
13576 1.1 christos
13577 1.1 christos as_fn_exit 0
13578 1.1 christos _ACEOF
13579 1.1 christos ac_clean_files=$ac_clean_files_save
13580 1.1 christos
13581 1.1 christos test $ac_write_fail = 0 ||
13582 1.1 christos as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13583 1.1 christos
13584 1.1 christos
13585 1.1 christos # configure is writing to config.log, and then calls config.status.
13586 1.1 christos # config.status does its own redirection, appending to config.log.
13587 1.1 christos # Unfortunately, on DOS this fails, as config.log is still kept open
13588 1.1 christos # by configure, so config.status won't be able to write to it; its
13589 1.1 christos # output is simply discarded. So we exec the FD to /dev/null,
13590 1.1 christos # effectively closing config.log, so it can be properly (re)opened and
13591 1.1 christos # appended to by config.status. When coming back to configure, we
13592 1.1 christos # need to make the FD available again.
13593 1.1 christos if test "$no_create" != yes; then
13594 1.1 christos ac_cs_success=:
13595 1.1 christos ac_config_status_args=
13596 1.1 christos test "$silent" = yes &&
13597 1.1 christos ac_config_status_args="$ac_config_status_args --quiet"
13598 1.1 christos exec 5>/dev/null
13599 1.1 christos $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13600 1.1 christos exec 5>>config.log
13601 1.1 christos # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13602 1.1 christos # would make configure fail if this is the last instruction.
13603 1.1 christos $ac_cs_success || as_fn_exit 1
13604 1.1 christos fi
13605 1.1 christos if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13606 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13607 1.1 christos $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13608 1.1 christos fi
13609 1.1 christos
13610 1.1 christos
13611 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
13612 1.1 christos $as_echo "===============================================================================" >&6; }
13613 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: jemalloc version : ${jemalloc_version}" >&5
13614 1.1 christos $as_echo "jemalloc version : ${jemalloc_version}" >&6; }
13615 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: library revision : ${rev}" >&5
13616 1.1 christos $as_echo "library revision : ${rev}" >&6; }
13617 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13618 1.1 christos $as_echo "" >&6; }
13619 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIG : ${CONFIG}" >&5
13620 1.1 christos $as_echo "CONFIG : ${CONFIG}" >&6; }
13621 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC : ${CC}" >&5
13622 1.1 christos $as_echo "CC : ${CC}" >&6; }
13623 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CFLAGS : ${CONFIGURE_CFLAGS}" >&5
13624 1.1 christos $as_echo "CONFIGURE_CFLAGS : ${CONFIGURE_CFLAGS}" >&6; }
13625 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CFLAGS : ${SPECIFIED_CFLAGS}" >&5
13626 1.1 christos $as_echo "SPECIFIED_CFLAGS : ${SPECIFIED_CFLAGS}" >&6; }
13627 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CFLAGS : ${EXTRA_CFLAGS}" >&5
13628 1.1 christos $as_echo "EXTRA_CFLAGS : ${EXTRA_CFLAGS}" >&6; }
13629 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: CPPFLAGS : ${CPPFLAGS}" >&5
13630 1.1 christos $as_echo "CPPFLAGS : ${CPPFLAGS}" >&6; }
13631 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: CXX : ${CXX}" >&5
13632 1.1 christos $as_echo "CXX : ${CXX}" >&6; }
13633 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&5
13634 1.1 christos $as_echo "CONFIGURE_CXXFLAGS : ${CONFIGURE_CXXFLAGS}" >&6; }
13635 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&5
13636 1.1 christos $as_echo "SPECIFIED_CXXFLAGS : ${SPECIFIED_CXXFLAGS}" >&6; }
13637 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_CXXFLAGS : ${EXTRA_CXXFLAGS}" >&5
13638 1.1 christos $as_echo "EXTRA_CXXFLAGS : ${EXTRA_CXXFLAGS}" >&6; }
13639 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDFLAGS : ${LDFLAGS}" >&5
13640 1.1 christos $as_echo "LDFLAGS : ${LDFLAGS}" >&6; }
13641 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&5
13642 1.1 christos $as_echo "EXTRA_LDFLAGS : ${EXTRA_LDFLAGS}" >&6; }
13643 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: DSO_LDFLAGS : ${DSO_LDFLAGS}" >&5
13644 1.1 christos $as_echo "DSO_LDFLAGS : ${DSO_LDFLAGS}" >&6; }
13645 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBS : ${LIBS}" >&5
13646 1.1 christos $as_echo "LIBS : ${LIBS}" >&6; }
13647 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: RPATH_EXTRA : ${RPATH_EXTRA}" >&5
13648 1.1 christos $as_echo "RPATH_EXTRA : ${RPATH_EXTRA}" >&6; }
13649 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13650 1.1 christos $as_echo "" >&6; }
13651 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLTPROC : ${XSLTPROC}" >&5
13652 1.1 christos $as_echo "XSLTPROC : ${XSLTPROC}" >&6; }
13653 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: XSLROOT : ${XSLROOT}" >&5
13654 1.1 christos $as_echo "XSLROOT : ${XSLROOT}" >&6; }
13655 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13656 1.1 christos $as_echo "" >&6; }
13657 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: PREFIX : ${PREFIX}" >&5
13658 1.1 christos $as_echo "PREFIX : ${PREFIX}" >&6; }
13659 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: BINDIR : ${BINDIR}" >&5
13660 1.1 christos $as_echo "BINDIR : ${BINDIR}" >&6; }
13661 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: DATADIR : ${DATADIR}" >&5
13662 1.1 christos $as_echo "DATADIR : ${DATADIR}" >&6; }
13663 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: INCLUDEDIR : ${INCLUDEDIR}" >&5
13664 1.1 christos $as_echo "INCLUDEDIR : ${INCLUDEDIR}" >&6; }
13665 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: LIBDIR : ${LIBDIR}" >&5
13666 1.1 christos $as_echo "LIBDIR : ${LIBDIR}" >&6; }
13667 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: MANDIR : ${MANDIR}" >&5
13668 1.1 christos $as_echo "MANDIR : ${MANDIR}" >&6; }
13669 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13670 1.1 christos $as_echo "" >&6; }
13671 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: srcroot : ${srcroot}" >&5
13672 1.1 christos $as_echo "srcroot : ${srcroot}" >&6; }
13673 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_srcroot : ${abs_srcroot}" >&5
13674 1.1 christos $as_echo "abs_srcroot : ${abs_srcroot}" >&6; }
13675 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: objroot : ${objroot}" >&5
13676 1.1 christos $as_echo "objroot : ${objroot}" >&6; }
13677 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: abs_objroot : ${abs_objroot}" >&5
13678 1.1 christos $as_echo "abs_objroot : ${abs_objroot}" >&6; }
13679 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
13680 1.1 christos $as_echo "" >&6; }
13681 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&5
13682 1.1 christos $as_echo "JEMALLOC_PREFIX : ${JEMALLOC_PREFIX}" >&6; }
13683 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: JEMALLOC_PRIVATE_NAMESPACE" >&5
13684 1.1 christos $as_echo "JEMALLOC_PRIVATE_NAMESPACE" >&6; }
13685 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: : ${JEMALLOC_PRIVATE_NAMESPACE}" >&5
13686 1.1 christos $as_echo " : ${JEMALLOC_PRIVATE_NAMESPACE}" >&6; }
13687 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: install_suffix : ${install_suffix}" >&5
13688 1.1 christos $as_echo "install_suffix : ${install_suffix}" >&6; }
13689 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: malloc_conf : ${config_malloc_conf}" >&5
13690 1.1 christos $as_echo "malloc_conf : ${config_malloc_conf}" >&6; }
13691 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: autogen : ${enable_autogen}" >&5
13692 1.1 christos $as_echo "autogen : ${enable_autogen}" >&6; }
13693 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug : ${enable_debug}" >&5
13694 1.1 christos $as_echo "debug : ${enable_debug}" >&6; }
13695 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: stats : ${enable_stats}" >&5
13696 1.1 christos $as_echo "stats : ${enable_stats}" >&6; }
13697 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof : ${enable_prof}" >&5
13698 1.1 christos $as_echo "prof : ${enable_prof}" >&6; }
13699 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libunwind : ${enable_prof_libunwind}" >&5
13700 1.1 christos $as_echo "prof-libunwind : ${enable_prof_libunwind}" >&6; }
13701 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-libgcc : ${enable_prof_libgcc}" >&5
13702 1.1 christos $as_echo "prof-libgcc : ${enable_prof_libgcc}" >&6; }
13703 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: prof-gcc : ${enable_prof_gcc}" >&5
13704 1.1 christos $as_echo "prof-gcc : ${enable_prof_gcc}" >&6; }
13705 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: fill : ${enable_fill}" >&5
13706 1.1 christos $as_echo "fill : ${enable_fill}" >&6; }
13707 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: utrace : ${enable_utrace}" >&5
13708 1.1 christos $as_echo "utrace : ${enable_utrace}" >&6; }
13709 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: xmalloc : ${enable_xmalloc}" >&5
13710 1.1 christos $as_echo "xmalloc : ${enable_xmalloc}" >&6; }
13711 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: log : ${enable_log}" >&5
13712 1.1 christos $as_echo "log : ${enable_log}" >&6; }
13713 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: lazy_lock : ${enable_lazy_lock}" >&5
13714 1.1 christos $as_echo "lazy_lock : ${enable_lazy_lock}" >&6; }
13715 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: cache-oblivious : ${enable_cache_oblivious}" >&5
13716 1.1 christos $as_echo "cache-oblivious : ${enable_cache_oblivious}" >&6; }
13717 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: cxx : ${enable_cxx}" >&5
13718 1.1 christos $as_echo "cxx : ${enable_cxx}" >&6; }
13719 1.1 christos { $as_echo "$as_me:${as_lineno-$LINENO}: result: ===============================================================================" >&5
13720 1.1 christos $as_echo "===============================================================================" >&6; }
13721