AVR: target/98762 - Handle partial clobber in movqi output.
[official-gcc.git] / libstdc++-v3 / configure
blob5645e991af7ab8b8f6373f2f5e72d0c4ecc3cc6d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='package-unused'
589 PACKAGE_TARNAME='libstdc++'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="src/shared/hashtable-aux.cc"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 get_gcc_base_ver
637 WARN_FLAGS
638 OPTIMIZE_CXXFLAGS
639 TOPLEVEL_INCLUDES
640 GLIBCXX_INCLUDES
641 glibcxx_toolexeclibdir
642 glibcxx_toolexecdir
643 gxx_include_dir
644 glibcxx_prefixdir
645 EXTRA_CFLAGS
646 tmake_file
647 CPU_OPT_BITS_RANDOM
648 CPU_OPT_EXT_RANDOM
649 ERROR_CONSTANTS_SRCDIR
650 OS_INC_SRCDIR
651 ABI_TWEAKS_SRCDIR
652 CPU_DEFINES_SRCDIR
653 ATOMIC_FLAGS
654 ATOMIC_WORD_SRCDIR
655 ATOMICITY_SRCDIR
656 INCLUDE_DIR_NOTPARALLEL_FALSE
657 INCLUDE_DIR_NOTPARALLEL_TRUE
658 BUILD_PDF_FALSE
659 BUILD_PDF_TRUE
660 PDFLATEX
661 DBLATEX
662 BUILD_MAN_FALSE
663 BUILD_MAN_TRUE
664 BUILD_HTML_FALSE
665 BUILD_HTML_TRUE
666 BUILD_XML_FALSE
667 BUILD_XML_TRUE
668 BUILD_EPUB_FALSE
669 BUILD_EPUB_TRUE
670 XSL_STYLE_DIR
671 XMLLINT
672 XSLTPROC
673 XMLCATALOG
675 DOXYGEN
676 BUILD_INFO_FALSE
677 BUILD_INFO_TRUE
678 USE_STATIC_TZDATA_FALSE
679 USE_STATIC_TZDATA_TRUE
680 EH_POOL_FLAGS
681 ENABLE_BACKTRACE_FALSE
682 ENABLE_BACKTRACE_TRUE
683 BACKTRACE_SUPPORTS_THREADS
684 BACKTRACE_USES_MALLOC
685 BACKTRACE_SUPPORTED
686 BACKTRACE_CPPFLAGS
687 ALLOC_FILE
688 VIEW_FILE
689 FORMAT_FILE
690 ENABLE_FILESYSTEM_TS_FALSE
691 ENABLE_FILESYSTEM_TS_TRUE
692 baseline_subdir_switch
693 baseline_dir
694 HWCAP_CFLAGS
695 GLIBCXX_LDBL_ALT128_COMPAT_FALSE
696 GLIBCXX_LDBL_ALT128_COMPAT_TRUE
697 GLIBCXX_LDBL_COMPAT_FALSE
698 GLIBCXX_LDBL_COMPAT_TRUE
699 LONG_DOUBLE_ALT128_COMPAT_FLAGS
700 LONG_DOUBLE_128_FLAGS
701 LONG_DOUBLE_COMPAT_FLAGS
702 ENABLE_CXX11_ABI_FALSE
703 ENABLE_CXX11_ABI_TRUE
704 glibcxx_cxx98_abi
705 ENABLE_DUAL_ABI_FALSE
706 ENABLE_DUAL_ABI_TRUE
707 ENABLE_VISIBILITY_FALSE
708 ENABLE_VISIBILITY_TRUE
709 libtool_VERSION
710 ENABLE_SYMVERS_SUN_FALSE
711 ENABLE_SYMVERS_SUN_TRUE
712 ENABLE_SYMVERS_DARWIN_FALSE
713 ENABLE_SYMVERS_DARWIN_TRUE
714 ENABLE_SYMVERS_GNU_NAMESPACE_FALSE
715 ENABLE_SYMVERS_GNU_NAMESPACE_TRUE
716 ENABLE_SYMVERS_GNU_FALSE
717 ENABLE_SYMVERS_GNU_TRUE
718 ENABLE_SYMVERS_FALSE
719 ENABLE_SYMVERS_TRUE
720 port_specific_symbol_files
721 SYMVER_FILE
722 CXXFILT
723 LTLIBICONV
724 LIBICONV
725 OPT_LDFLAGS
726 SECTION_LDFLAGS
727 GLIBCXX_LIBS
728 ENABLE_VTABLE_VERIFY_FALSE
729 ENABLE_VTABLE_VERIFY_TRUE
730 VTV_CYGMIN_FALSE
731 VTV_CYGMIN_TRUE
732 VTV_CXXLINKFLAGS
733 VTV_PCH_CXXFLAGS
734 VTV_CXXFLAGS
735 ENABLE_WERROR_FALSE
736 ENABLE_WERROR_TRUE
737 ENABLE_PYTHONDIR_FALSE
738 ENABLE_PYTHONDIR_TRUE
739 python_mod_dir
740 ENABLE_EXTERN_TEMPLATE_FALSE
741 ENABLE_EXTERN_TEMPLATE_TRUE
742 EXTRA_CXX_FLAGS
743 GLIBCXX_BUILD_DEBUG_FALSE
744 GLIBCXX_BUILD_DEBUG_TRUE
745 DEBUG_FLAGS
746 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE
747 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE
748 GLIBCXX_C_HEADERS_C_GLOBAL_FALSE
749 GLIBCXX_C_HEADERS_C_GLOBAL_TRUE
750 GLIBCXX_C_HEADERS_C_STD_FALSE
751 GLIBCXX_C_HEADERS_C_STD_TRUE
752 GLIBCXX_C_HEADERS_C_FALSE
753 GLIBCXX_C_HEADERS_C_TRUE
754 C_INCLUDE_DIR
755 ALLOCATOR_NAME
756 ALLOCATOR_H
757 ENABLE_ALLOCATOR_NEW_FALSE
758 ENABLE_ALLOCATOR_NEW_TRUE
759 CLOCALE_INTERNAL_H
760 CLOCALE_CC
761 CTIME_CC
762 CTIME_H
763 CNUMERIC_CC
764 CMONEY_CC
765 CMESSAGES_CC
766 CCTYPE_CC
767 CCOLLATE_CC
768 CCODECVT_CC
769 CMESSAGES_H
770 CLOCALE_H
771 USE_NLS
772 glibcxx_localedir
773 glibcxx_POFILES
774 glibcxx_MOFILES
775 check_msgfmt
776 BASIC_FILE_CC
777 BASIC_FILE_H
778 CSTDIO_H
779 SECTION_FLAGS
780 ENABLE_FLOAT128_FALSE
781 ENABLE_FLOAT128_TRUE
782 thread_header
783 glibcxx_PCHFLAGS
784 GLIBCXX_BUILD_PCH_FALSE
785 GLIBCXX_BUILD_PCH_TRUE
786 FREESTANDING_FLAGS
787 GLIBCXX_HOSTED_FALSE
788 GLIBCXX_HOSTED_TRUE
789 glibcxx_compiler_shared_flag
790 glibcxx_compiler_pic_flag
791 glibcxx_lt_pic_flag
792 OS_IS_DARWIN_FALSE
793 OS_IS_DARWIN_TRUE
794 ENABLE_DARWIN_AT_RPATH_FALSE
795 ENABLE_DARWIN_AT_RPATH_TRUE
796 enable_static
797 enable_shared
798 lt_host_flags
799 CXXCPP
800 OTOOL64
801 OTOOL
802 LIPO
803 NMEDIT
804 DSYMUTIL
805 OBJDUMP
807 ac_ct_DUMPBIN
808 DUMPBIN
810 FGREP
812 LIBTOOL
813 EGREP
814 GREP
816 MAINT
817 MAINTAINER_MODE_FALSE
818 MAINTAINER_MODE_TRUE
819 RANLIB
822 LN_S
823 toplevel_srcdir
824 toplevel_builddir
825 glibcxx_srcdir
826 glibcxx_builddir
827 ac_ct_CXX
828 CXXFLAGS
830 OBJEXT
831 EXEEXT
832 ac_ct_CC
833 CPPFLAGS
834 LDFLAGS
835 CFLAGS
837 AM_BACKSLASH
838 AM_DEFAULT_VERBOSITY
839 AM_DEFAULT_V
840 AM_V
841 am__untar
842 am__tar
843 AMTAR
844 am__leading_dot
845 SET_MAKE
847 mkdir_p
848 MKDIR_P
849 INSTALL_STRIP_PROGRAM
850 STRIP
851 install_sh
852 MAKEINFO
853 AUTOHEADER
854 AUTOMAKE
855 AUTOCONF
856 ACLOCAL
857 VERSION
858 PACKAGE
859 CYGPATH_W
860 am__isrc
861 INSTALL_DATA
862 INSTALL_SCRIPT
863 INSTALL_PROGRAM
864 target_os
865 target_vendor
866 target_cpu
867 target
868 host_os
869 host_vendor
870 host_cpu
871 host
872 build_os
873 build_vendor
874 build_cpu
875 build
876 multi_basedir
877 target_alias
878 host_alias
879 build_alias
880 LIBS
881 ECHO_T
882 ECHO_N
883 ECHO_C
884 DEFS
885 mandir
886 localedir
887 libdir
888 psdir
889 pdfdir
890 dvidir
891 htmldir
892 infodir
893 docdir
894 oldincludedir
895 includedir
896 localstatedir
897 sharedstatedir
898 sysconfdir
899 datadir
900 datarootdir
901 libexecdir
902 sbindir
903 bindir
904 program_transform_name
905 prefix
906 exec_prefix
907 PACKAGE_URL
908 PACKAGE_BUGREPORT
909 PACKAGE_STRING
910 PACKAGE_VERSION
911 PACKAGE_TARNAME
912 PACKAGE_NAME
913 PATH_SEPARATOR
914 SHELL'
915 ac_subst_files=''
916 ac_user_opts='
917 enable_option_checking
918 enable_multilib
919 enable_silent_rules
920 enable_largefile
921 with_target_subdir
922 with_cross_host
923 with_newlib
924 enable_maintainer_mode
925 enable_shared
926 enable_static
927 with_pic
928 enable_fast_install
929 with_gnu_ld
930 enable_libtool_lock
931 enable_darwin_at_rpath
932 enable_hosted_libstdcxx
933 enable_libstdcxx_hosted
934 enable_libstdcxx_verbose
935 enable_libstdcxx_pch
936 with_libstdcxx_lock_policy
937 enable_cstdio
938 enable_clocale
939 enable_nls
940 enable_libstdcxx_allocator
941 enable_cheaders_obsolete
942 enable_cheaders
943 enable_long_long
944 enable_wchar_t
945 enable_c99
946 enable_concept_checks
947 enable_libstdcxx_debug_flags
948 enable_libstdcxx_debug
949 enable_cxx_flags
950 enable_fully_dynamic_string
951 enable_extern_template
952 with_python_dir
953 enable_werror
954 enable_vtable_verify
955 enable_libstdcxx_time
956 enable_tls
957 enable_rpath
958 with_libiconv_prefix
959 with_libiconv_type
960 with_system_libunwind
961 enable_linux_futex
962 enable_symvers
963 enable_libstdcxx_visibility
964 enable_libstdcxx_dual_abi
965 with_default_libstdcxx_abi
966 enable_libstdcxx_threads
967 enable_libstdcxx_filesystem_ts
968 enable_libstdcxx_backtrace
969 enable_libstdcxx_static_eh_pool
970 with_libstdcxx_eh_pool_obj_count
971 with_libstdcxx_zoneinfo
972 enable_cet
973 with_gxx_include_dir
974 enable_version_specific_runtime_libs
975 with_toolexeclibdir
976 with_gcc_major_version_only
978 ac_precious_vars='build_alias
979 host_alias
980 target_alias
982 CFLAGS
983 LDFLAGS
984 LIBS
985 CPPFLAGS
987 CXXFLAGS
990 CXXCPP
991 CXXFILT'
994 # Initialize some variables set by options.
995 ac_init_help=
996 ac_init_version=false
997 ac_unrecognized_opts=
998 ac_unrecognized_sep=
999 # The variables have the same names as the options, with
1000 # dashes changed to underlines.
1001 cache_file=/dev/null
1002 exec_prefix=NONE
1003 no_create=
1004 no_recursion=
1005 prefix=NONE
1006 program_prefix=NONE
1007 program_suffix=NONE
1008 program_transform_name=s,x,x,
1009 silent=
1010 site=
1011 srcdir=
1012 verbose=
1013 x_includes=NONE
1014 x_libraries=NONE
1016 # Installation directory options.
1017 # These are left unexpanded so users can "make install exec_prefix=/foo"
1018 # and all the variables that are supposed to be based on exec_prefix
1019 # by default will actually change.
1020 # Use braces instead of parens because sh, perl, etc. also accept them.
1021 # (The list follows the same order as the GNU Coding Standards.)
1022 bindir='${exec_prefix}/bin'
1023 sbindir='${exec_prefix}/sbin'
1024 libexecdir='${exec_prefix}/libexec'
1025 datarootdir='${prefix}/share'
1026 datadir='${datarootdir}'
1027 sysconfdir='${prefix}/etc'
1028 sharedstatedir='${prefix}/com'
1029 localstatedir='${prefix}/var'
1030 includedir='${prefix}/include'
1031 oldincludedir='/usr/include'
1032 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1033 infodir='${datarootdir}/info'
1034 htmldir='${docdir}'
1035 dvidir='${docdir}'
1036 pdfdir='${docdir}'
1037 psdir='${docdir}'
1038 libdir='${exec_prefix}/lib'
1039 localedir='${datarootdir}/locale'
1040 mandir='${datarootdir}/man'
1042 ac_prev=
1043 ac_dashdash=
1044 for ac_option
1046 # If the previous option needs an argument, assign it.
1047 if test -n "$ac_prev"; then
1048 eval $ac_prev=\$ac_option
1049 ac_prev=
1050 continue
1053 case $ac_option in
1054 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1055 *=) ac_optarg= ;;
1056 *) ac_optarg=yes ;;
1057 esac
1059 # Accept the important Cygnus configure options, so we can diagnose typos.
1061 case $ac_dashdash$ac_option in
1063 ac_dashdash=yes ;;
1065 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1066 ac_prev=bindir ;;
1067 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1068 bindir=$ac_optarg ;;
1070 -build | --build | --buil | --bui | --bu)
1071 ac_prev=build_alias ;;
1072 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1073 build_alias=$ac_optarg ;;
1075 -cache-file | --cache-file | --cache-fil | --cache-fi \
1076 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1077 ac_prev=cache_file ;;
1078 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1079 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1080 cache_file=$ac_optarg ;;
1082 --config-cache | -C)
1083 cache_file=config.cache ;;
1085 -datadir | --datadir | --datadi | --datad)
1086 ac_prev=datadir ;;
1087 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1088 datadir=$ac_optarg ;;
1090 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1091 | --dataroo | --dataro | --datar)
1092 ac_prev=datarootdir ;;
1093 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1094 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1095 datarootdir=$ac_optarg ;;
1097 -disable-* | --disable-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error $? "invalid feature name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1106 "enable_$ac_useropt"
1107 "*) ;;
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1110 esac
1111 eval enable_$ac_useropt=no ;;
1113 -docdir | --docdir | --docdi | --doc | --do)
1114 ac_prev=docdir ;;
1115 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1116 docdir=$ac_optarg ;;
1118 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1119 ac_prev=dvidir ;;
1120 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1121 dvidir=$ac_optarg ;;
1123 -enable-* | --enable-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid feature name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1132 "enable_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval enable_$ac_useropt=\$ac_optarg ;;
1139 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1140 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1141 | --exec | --exe | --ex)
1142 ac_prev=exec_prefix ;;
1143 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1144 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1145 | --exec=* | --exe=* | --ex=*)
1146 exec_prefix=$ac_optarg ;;
1148 -gas | --gas | --ga | --g)
1149 # Obsolete; use --with-gas.
1150 with_gas=yes ;;
1152 -help | --help | --hel | --he | -h)
1153 ac_init_help=long ;;
1154 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1155 ac_init_help=recursive ;;
1156 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1157 ac_init_help=short ;;
1159 -host | --host | --hos | --ho)
1160 ac_prev=host_alias ;;
1161 -host=* | --host=* | --hos=* | --ho=*)
1162 host_alias=$ac_optarg ;;
1164 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1165 ac_prev=htmldir ;;
1166 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1167 | --ht=*)
1168 htmldir=$ac_optarg ;;
1170 -includedir | --includedir | --includedi | --included | --include \
1171 | --includ | --inclu | --incl | --inc)
1172 ac_prev=includedir ;;
1173 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1174 | --includ=* | --inclu=* | --incl=* | --inc=*)
1175 includedir=$ac_optarg ;;
1177 -infodir | --infodir | --infodi | --infod | --info | --inf)
1178 ac_prev=infodir ;;
1179 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1180 infodir=$ac_optarg ;;
1182 -libdir | --libdir | --libdi | --libd)
1183 ac_prev=libdir ;;
1184 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1185 libdir=$ac_optarg ;;
1187 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1188 | --libexe | --libex | --libe)
1189 ac_prev=libexecdir ;;
1190 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1191 | --libexe=* | --libex=* | --libe=*)
1192 libexecdir=$ac_optarg ;;
1194 -localedir | --localedir | --localedi | --localed | --locale)
1195 ac_prev=localedir ;;
1196 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1197 localedir=$ac_optarg ;;
1199 -localstatedir | --localstatedir | --localstatedi | --localstated \
1200 | --localstate | --localstat | --localsta | --localst | --locals)
1201 ac_prev=localstatedir ;;
1202 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1203 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1204 localstatedir=$ac_optarg ;;
1206 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1207 ac_prev=mandir ;;
1208 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1209 mandir=$ac_optarg ;;
1211 -nfp | --nfp | --nf)
1212 # Obsolete; use --without-fp.
1213 with_fp=no ;;
1215 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1216 | --no-cr | --no-c | -n)
1217 no_create=yes ;;
1219 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1220 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1221 no_recursion=yes ;;
1223 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1224 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1225 | --oldin | --oldi | --old | --ol | --o)
1226 ac_prev=oldincludedir ;;
1227 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1228 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1229 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1230 oldincludedir=$ac_optarg ;;
1232 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1233 ac_prev=prefix ;;
1234 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1235 prefix=$ac_optarg ;;
1237 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1238 | --program-pre | --program-pr | --program-p)
1239 ac_prev=program_prefix ;;
1240 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1241 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1242 program_prefix=$ac_optarg ;;
1244 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1245 | --program-suf | --program-su | --program-s)
1246 ac_prev=program_suffix ;;
1247 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1248 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1249 program_suffix=$ac_optarg ;;
1251 -program-transform-name | --program-transform-name \
1252 | --program-transform-nam | --program-transform-na \
1253 | --program-transform-n | --program-transform- \
1254 | --program-transform | --program-transfor \
1255 | --program-transfo | --program-transf \
1256 | --program-trans | --program-tran \
1257 | --progr-tra | --program-tr | --program-t)
1258 ac_prev=program_transform_name ;;
1259 -program-transform-name=* | --program-transform-name=* \
1260 | --program-transform-nam=* | --program-transform-na=* \
1261 | --program-transform-n=* | --program-transform-=* \
1262 | --program-transform=* | --program-transfor=* \
1263 | --program-transfo=* | --program-transf=* \
1264 | --program-trans=* | --program-tran=* \
1265 | --progr-tra=* | --program-tr=* | --program-t=*)
1266 program_transform_name=$ac_optarg ;;
1268 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1269 ac_prev=pdfdir ;;
1270 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1271 pdfdir=$ac_optarg ;;
1273 -psdir | --psdir | --psdi | --psd | --ps)
1274 ac_prev=psdir ;;
1275 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1276 psdir=$ac_optarg ;;
1278 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1279 | -silent | --silent | --silen | --sile | --sil)
1280 silent=yes ;;
1282 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1283 ac_prev=sbindir ;;
1284 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1285 | --sbi=* | --sb=*)
1286 sbindir=$ac_optarg ;;
1288 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1289 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1290 | --sharedst | --shareds | --shared | --share | --shar \
1291 | --sha | --sh)
1292 ac_prev=sharedstatedir ;;
1293 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1294 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1295 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1296 | --sha=* | --sh=*)
1297 sharedstatedir=$ac_optarg ;;
1299 -site | --site | --sit)
1300 ac_prev=site ;;
1301 -site=* | --site=* | --sit=*)
1302 site=$ac_optarg ;;
1304 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1305 ac_prev=srcdir ;;
1306 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1307 srcdir=$ac_optarg ;;
1309 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1310 | --syscon | --sysco | --sysc | --sys | --sy)
1311 ac_prev=sysconfdir ;;
1312 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1313 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1314 sysconfdir=$ac_optarg ;;
1316 -target | --target | --targe | --targ | --tar | --ta | --t)
1317 ac_prev=target_alias ;;
1318 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1319 target_alias=$ac_optarg ;;
1321 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1322 verbose=yes ;;
1324 -version | --version | --versio | --versi | --vers | -V)
1325 ac_init_version=: ;;
1327 -with-* | --with-*)
1328 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1331 as_fn_error $? "invalid package name: $ac_useropt"
1332 ac_useropt_orig=$ac_useropt
1333 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 case $ac_user_opts in
1336 "with_$ac_useropt"
1337 "*) ;;
1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1339 ac_unrecognized_sep=', ';;
1340 esac
1341 eval with_$ac_useropt=\$ac_optarg ;;
1343 -without-* | --without-*)
1344 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1345 # Reject names that are not valid shell variable names.
1346 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347 as_fn_error $? "invalid package name: $ac_useropt"
1348 ac_useropt_orig=$ac_useropt
1349 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350 case $ac_user_opts in
1352 "with_$ac_useropt"
1353 "*) ;;
1354 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1355 ac_unrecognized_sep=', ';;
1356 esac
1357 eval with_$ac_useropt=no ;;
1359 --x)
1360 # Obsolete; use --with-x.
1361 with_x=yes ;;
1363 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1364 | --x-incl | --x-inc | --x-in | --x-i)
1365 ac_prev=x_includes ;;
1366 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1367 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1368 x_includes=$ac_optarg ;;
1370 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1371 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1372 ac_prev=x_libraries ;;
1373 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1374 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1375 x_libraries=$ac_optarg ;;
1377 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1378 Try \`$0 --help' for more information"
1381 *=*)
1382 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1383 # Reject names that are not valid shell variable names.
1384 case $ac_envvar in #(
1385 '' | [0-9]* | *[!_$as_cr_alnum]* )
1386 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1387 esac
1388 eval $ac_envvar=\$ac_optarg
1389 export $ac_envvar ;;
1392 # FIXME: should be removed in autoconf 3.0.
1393 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1394 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1395 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1396 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1399 esac
1400 done
1402 if test -n "$ac_prev"; then
1403 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1404 as_fn_error $? "missing argument to $ac_option"
1407 if test -n "$ac_unrecognized_opts"; then
1408 case $enable_option_checking in
1409 no) ;;
1410 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1411 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1412 esac
1415 # Check all directory arguments for consistency.
1416 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1417 datadir sysconfdir sharedstatedir localstatedir includedir \
1418 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1419 libdir localedir mandir
1421 eval ac_val=\$$ac_var
1422 # Remove trailing slashes.
1423 case $ac_val in
1424 */ )
1425 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1426 eval $ac_var=\$ac_val;;
1427 esac
1428 # Be sure to have absolute directory names.
1429 case $ac_val in
1430 [\\/$]* | ?:[\\/]* ) continue;;
1431 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1432 esac
1433 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1434 done
1436 # There might be people who depend on the old broken behavior: `$host'
1437 # used to hold the argument of --host etc.
1438 # FIXME: To remove some day.
1439 build=$build_alias
1440 host=$host_alias
1441 target=$target_alias
1443 # FIXME: To remove some day.
1444 if test "x$host_alias" != x; then
1445 if test "x$build_alias" = x; then
1446 cross_compiling=maybe
1447 elif test "x$build_alias" != "x$host_alias"; then
1448 cross_compiling=yes
1452 ac_tool_prefix=
1453 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1455 test "$silent" = yes && exec 6>/dev/null
1458 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1459 ac_ls_di=`ls -di .` &&
1460 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1461 as_fn_error $? "working directory cannot be determined"
1462 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1463 as_fn_error $? "pwd does not report name of working directory"
1466 # Find the source files, if location was not specified.
1467 if test -z "$srcdir"; then
1468 ac_srcdir_defaulted=yes
1469 # Try the directory containing this script, then the parent directory.
1470 ac_confdir=`$as_dirname -- "$as_myself" ||
1471 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1472 X"$as_myself" : 'X\(//\)[^/]' \| \
1473 X"$as_myself" : 'X\(//\)$' \| \
1474 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1475 $as_echo X"$as_myself" |
1476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1477 s//\1/
1480 /^X\(\/\/\)[^/].*/{
1481 s//\1/
1484 /^X\(\/\/\)$/{
1485 s//\1/
1488 /^X\(\/\).*/{
1489 s//\1/
1492 s/.*/./; q'`
1493 srcdir=$ac_confdir
1494 if test ! -r "$srcdir/$ac_unique_file"; then
1495 srcdir=..
1497 else
1498 ac_srcdir_defaulted=no
1500 if test ! -r "$srcdir/$ac_unique_file"; then
1501 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1502 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1504 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1505 ac_abs_confdir=`(
1506 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1507 pwd)`
1508 # When building in place, set srcdir=.
1509 if test "$ac_abs_confdir" = "$ac_pwd"; then
1510 srcdir=.
1512 # Remove unnecessary trailing slashes from srcdir.
1513 # Double slashes in file names in object file debugging info
1514 # mess up M-x gdb in Emacs.
1515 case $srcdir in
1516 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1517 esac
1518 for ac_var in $ac_precious_vars; do
1519 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1520 eval ac_env_${ac_var}_value=\$${ac_var}
1521 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1522 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1523 done
1526 # Report the --help message.
1528 if test "$ac_init_help" = "long"; then
1529 # Omit some internal or obsolete options to make the list less imposing.
1530 # This message is too long to be a string in the A/UX 3.1 sh.
1531 cat <<_ACEOF
1532 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1534 Usage: $0 [OPTION]... [VAR=VALUE]...
1536 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1537 VAR=VALUE. See below for descriptions of some of the useful variables.
1539 Defaults for the options are specified in brackets.
1541 Configuration:
1542 -h, --help display this help and exit
1543 --help=short display options specific to this package
1544 --help=recursive display the short help of all the included packages
1545 -V, --version display version information and exit
1546 -q, --quiet, --silent do not print \`checking ...' messages
1547 --cache-file=FILE cache test results in FILE [disabled]
1548 -C, --config-cache alias for \`--cache-file=config.cache'
1549 -n, --no-create do not create output files
1550 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1552 Installation directories:
1553 --prefix=PREFIX install architecture-independent files in PREFIX
1554 [$ac_default_prefix]
1555 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1556 [PREFIX]
1558 By default, \`make install' will install all the files in
1559 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1560 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1561 for instance \`--prefix=\$HOME'.
1563 For better control, use the options below.
1565 Fine tuning of the installation directories:
1566 --bindir=DIR user executables [EPREFIX/bin]
1567 --sbindir=DIR system admin executables [EPREFIX/sbin]
1568 --libexecdir=DIR program executables [EPREFIX/libexec]
1569 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1570 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1571 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1572 --libdir=DIR object code libraries [EPREFIX/lib]
1573 --includedir=DIR C header files [PREFIX/include]
1574 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1575 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1576 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1577 --infodir=DIR info documentation [DATAROOTDIR/info]
1578 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1579 --mandir=DIR man documentation [DATAROOTDIR/man]
1580 --docdir=DIR documentation root [DATAROOTDIR/doc/libstdc++]
1581 --htmldir=DIR html documentation [DOCDIR]
1582 --dvidir=DIR dvi documentation [DOCDIR]
1583 --pdfdir=DIR pdf documentation [DOCDIR]
1584 --psdir=DIR ps documentation [DOCDIR]
1585 _ACEOF
1587 cat <<\_ACEOF
1589 Program names:
1590 --program-prefix=PREFIX prepend PREFIX to installed program names
1591 --program-suffix=SUFFIX append SUFFIX to installed program names
1592 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1594 System types:
1595 --build=BUILD configure for building on BUILD [guessed]
1596 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1597 --target=TARGET configure for building compilers for TARGET [HOST]
1598 _ACEOF
1601 if test -n "$ac_init_help"; then
1602 case $ac_init_help in
1603 short | recursive ) echo "Configuration of package-unused version-unused:";;
1604 esac
1605 cat <<\_ACEOF
1607 Optional Features:
1608 --disable-option-checking ignore unrecognized --enable/--with options
1609 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1610 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1611 --enable-multilib build many library versions (default)
1612 --enable-silent-rules less verbose build output (undo: "make V=1")
1613 --disable-silent-rules verbose build output (undo: "make V=0")
1614 --disable-largefile omit support for large files
1615 --enable-maintainer-mode
1616 enable make rules and dependencies not useful (and
1617 sometimes confusing) to the casual installer
1618 --enable-shared[=PKGS] build shared libraries [default=yes]
1619 --enable-static[=PKGS] build static libraries [default=yes]
1620 --enable-fast-install[=PKGS]
1621 optimize for fast installation [default=yes]
1622 --disable-libtool-lock avoid locking (might break parallel builds)
1623 --enable-darwin-at-rpath
1624 install libraries with @rpath/library-name, requires
1625 rpaths to be added to executables
1626 --disable-hosted-libstdcxx
1627 only build freestanding C++ runtime support
1628 --disable-libstdcxx-hosted
1629 alias for --disable-hosted-libstdcxx
1630 --disable-libstdcxx-verbose
1631 disable termination messages to standard error
1632 --enable-libstdcxx-pch build pre-compiled libstdc++ headers
1633 [default=$is_hosted]
1634 --enable-cstdio[=PACKAGE]
1635 use target-specific I/O package [default=stdio]
1636 --enable-clocale[=MODEL]
1637 use MODEL for target locale package [default=auto]
1638 --enable-nls use Native Language Support (default)
1639 --enable-libstdcxx-allocator[=KIND]
1640 use KIND for target std::allocator base
1641 [default=auto]
1642 --enable-cheaders-obsolete
1643 allow use of obsolete "C" headers for g++
1644 [default=no]
1645 --enable-cheaders[=KIND]
1646 construct "C" headers for g++ [default=$c_model]
1647 --enable-long-long enable template specializations for 'long long'
1648 [default=yes]
1649 --enable-wchar_t enable template specializations for 'wchar_t'
1650 [default=yes]
1651 --enable-c99 turns on ISO/IEC 9899:1999 support [default=yes]
1652 --enable-concept-checks use Boost-derived template checks [default=no]
1653 --enable-libstdcxx-debug-flags=FLAGS
1654 pass compiler FLAGS when building debug library
1655 [default="-g3 -O0 -D_GLIBCXX_ASSERTIONS"]
1656 --enable-libstdcxx-debug
1657 build extra debug library [default=no]
1658 --enable-cxx-flags=FLAGS
1659 pass compiler FLAGS when building library [default=]
1660 --enable-fully-dynamic-string
1661 do not put empty strings in per-process static
1662 memory [default=no]
1663 --enable-extern-template
1664 enable extern template [default=yes]
1665 --enable-werror turns on -Werror [default=no]
1666 --enable-vtable-verify enable vtable verify [default=no]
1667 --enable-libstdcxx-time[=KIND]
1668 use KIND for check type [default=auto]
1669 --enable-tls Use thread-local storage [default=yes]
1670 --disable-rpath do not hardcode runtime library paths
1671 --enable-linux-futex use the Linux futex system call [default=default]
1672 --enable-symvers[=STYLE]
1673 enables symbol versioning of the shared library
1674 [default=yes]
1675 --enable-libstdcxx-visibility
1676 enables visibility safe usage [default=yes]
1677 --enable-libstdcxx-dual-abi
1678 support two versions of std::string [default=yes]
1679 --enable-libstdcxx-threads
1680 enable C++11 threads support [default=auto]
1681 --enable-libstdcxx-filesystem-ts
1682 turns on ISO/IEC TS 18822 support [default=auto]
1683 --enable-libstdcxx-backtrace
1684 turns on libbacktrace support [default=auto]
1685 --enable-libstdcxx-static-eh-pool
1686 use a fixed-size static buffer for allocating
1687 exceptions if malloc fails
1688 --enable-cet enable Intel CET in target libraries [default=auto]
1689 --enable-version-specific-runtime-libs
1690 Specify that runtime libraries should be installed
1691 in a compiler-specific directory
1693 Optional Packages:
1694 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1695 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1696 --with-target-subdir=SUBDIR
1697 configuring in a subdirectory
1698 --with-cross-host=HOST configuring with a cross compiler
1699 --with-newlib assume newlib as a system C library
1700 --with-pic try to use only PIC/non-PIC objects [default=use
1701 both]
1702 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1703 --with-libstdcxx-lock-policy={atomic,mutex,auto}
1704 synchronization policy for shared_ptr reference
1705 counting [default=auto]
1706 --with-python-dir the location to install Python modules. This path is
1707 relative starting from the prefix.
1708 --with-gnu-ld assume the C compiler uses GNU ld default=no
1709 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1710 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1711 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1712 --with-system-libunwind use installed libunwind
1713 --with-default-libstdcxx-abi
1714 set the std::string ABI to use by default
1715 --with-libstdcxx-eh-pool-obj-count
1716 the number of exceptions that can be allocated from
1717 the pool if malloc fails
1718 --with-libstdcxx-zoneinfo
1719 the location to use for tzdata
1720 --with-gxx-include-dir=DIR
1721 installation directory for include files
1722 --with-toolexeclibdir=DIR
1723 install libraries built with a cross compiler within
1725 --with-gcc-major-version-only
1726 use only GCC major number in filesystem paths
1728 Some influential environment variables:
1729 CC C compiler command
1730 CFLAGS C compiler flags
1731 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1732 nonstandard directory <lib dir>
1733 LIBS libraries to pass to the linker, e.g. -l<library>
1734 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1735 you have headers in a nonstandard directory <include dir>
1736 CXX C++ compiler command
1737 CXXFLAGS C++ compiler flags
1738 CPP C preprocessor
1739 CXXCPP C++ preprocessor
1740 CXXFILT Location of GNU c++filt. Defaults to the first GNU version of
1741 `c++filt', `gc++filt' on PATH.
1743 Use these variables to override the choices made by `configure' or to help
1744 it to find libraries and programs with nonstandard names/locations.
1746 Report bugs to the package provider.
1747 _ACEOF
1748 ac_status=$?
1751 if test "$ac_init_help" = "recursive"; then
1752 # If there are subdirs, report their specific --help.
1753 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1754 test -d "$ac_dir" ||
1755 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1756 continue
1757 ac_builddir=.
1759 case "$ac_dir" in
1760 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1762 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1763 # A ".." for each directory in $ac_dir_suffix.
1764 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1765 case $ac_top_builddir_sub in
1766 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1767 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1768 esac ;;
1769 esac
1770 ac_abs_top_builddir=$ac_pwd
1771 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1772 # for backward compatibility:
1773 ac_top_builddir=$ac_top_build_prefix
1775 case $srcdir in
1776 .) # We are building in place.
1777 ac_srcdir=.
1778 ac_top_srcdir=$ac_top_builddir_sub
1779 ac_abs_top_srcdir=$ac_pwd ;;
1780 [\\/]* | ?:[\\/]* ) # Absolute name.
1781 ac_srcdir=$srcdir$ac_dir_suffix;
1782 ac_top_srcdir=$srcdir
1783 ac_abs_top_srcdir=$srcdir ;;
1784 *) # Relative name.
1785 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1786 ac_top_srcdir=$ac_top_build_prefix$srcdir
1787 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1788 esac
1789 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1791 cd "$ac_dir" || { ac_status=$?; continue; }
1792 # Check for guested configure.
1793 if test -f "$ac_srcdir/configure.gnu"; then
1794 echo &&
1795 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1796 elif test -f "$ac_srcdir/configure"; then
1797 echo &&
1798 $SHELL "$ac_srcdir/configure" --help=recursive
1799 else
1800 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1801 fi || ac_status=$?
1802 cd "$ac_pwd" || { ac_status=$?; break; }
1803 done
1806 test -n "$ac_init_help" && exit $ac_status
1807 if $ac_init_version; then
1808 cat <<\_ACEOF
1809 package-unused configure version-unused
1810 generated by GNU Autoconf 2.69
1812 Copyright (C) 2012 Free Software Foundation, Inc.
1813 This configure script is free software; the Free Software Foundation
1814 gives unlimited permission to copy, distribute and modify it.
1815 _ACEOF
1816 exit
1819 ## ------------------------ ##
1820 ## Autoconf initialization. ##
1821 ## ------------------------ ##
1823 # ac_fn_c_try_compile LINENO
1824 # --------------------------
1825 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1826 ac_fn_c_try_compile ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 rm -f conftest.$ac_objext
1830 if { { ac_try="$ac_compile"
1831 case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834 esac
1835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_compile") 2>conftest.err
1838 ac_status=$?
1839 if test -s conftest.err; then
1840 grep -v '^ *+' conftest.err >conftest.er1
1841 cat conftest.er1 >&5
1842 mv -f conftest.er1 conftest.err
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } && {
1846 test -z "$ac_c_werror_flag" ||
1847 test ! -s conftest.err
1848 } && test -s conftest.$ac_objext; then :
1849 ac_retval=0
1850 else
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.$ac_ext >&5
1854 ac_retval=1
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status $ac_retval
1859 } # ac_fn_c_try_compile
1861 # ac_fn_cxx_try_compile LINENO
1862 # ----------------------------
1863 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1864 ac_fn_cxx_try_compile ()
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 rm -f conftest.$ac_objext
1868 if { { ac_try="$ac_compile"
1869 case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_compile") 2>conftest.err
1876 ac_status=$?
1877 if test -s conftest.err; then
1878 grep -v '^ *+' conftest.err >conftest.er1
1879 cat conftest.er1 >&5
1880 mv -f conftest.er1 conftest.err
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && {
1884 test -z "$ac_cxx_werror_flag" ||
1885 test ! -s conftest.err
1886 } && test -s conftest.$ac_objext; then :
1887 ac_retval=0
1888 else
1889 $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1892 ac_retval=1
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1897 } # ac_fn_cxx_try_compile
1899 # ac_fn_c_try_cpp LINENO
1900 # ----------------------
1901 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1902 ac_fn_c_try_cpp ()
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 if { { ac_try="$ac_cpp conftest.$ac_ext"
1906 case "(($ac_try" in
1907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908 *) ac_try_echo=$ac_try;;
1909 esac
1910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911 $as_echo "$ac_try_echo"; } >&5
1912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1913 ac_status=$?
1914 if test -s conftest.err; then
1915 grep -v '^ *+' conftest.err >conftest.er1
1916 cat conftest.er1 >&5
1917 mv -f conftest.er1 conftest.err
1919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920 test $ac_status = 0; } > conftest.i && {
1921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1922 test ! -s conftest.err
1923 }; then :
1924 ac_retval=0
1925 else
1926 $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1929 ac_retval=1
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 as_fn_set_status $ac_retval
1934 } # ac_fn_c_try_cpp
1936 # ac_fn_c_try_link LINENO
1937 # -----------------------
1938 # Try to link conftest.$ac_ext, and return whether this succeeded.
1939 ac_fn_c_try_link ()
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 rm -f conftest.$ac_objext conftest$ac_exeext
1943 if { { ac_try="$ac_link"
1944 case "(($ac_try" in
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1947 esac
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_link") 2>conftest.err
1951 ac_status=$?
1952 if test -s conftest.err; then
1953 grep -v '^ *+' conftest.err >conftest.er1
1954 cat conftest.er1 >&5
1955 mv -f conftest.er1 conftest.err
1957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958 test $ac_status = 0; } && {
1959 test -z "$ac_c_werror_flag" ||
1960 test ! -s conftest.err
1961 } && test -s conftest$ac_exeext && {
1962 test "$cross_compiling" = yes ||
1963 test -x conftest$ac_exeext
1964 }; then :
1965 ac_retval=0
1966 else
1967 $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1970 ac_retval=1
1972 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1973 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1974 # interfere with the next link command; also delete a directory that is
1975 # left behind by Apple's compiler. We do this before executing the actions.
1976 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 as_fn_set_status $ac_retval
1980 } # ac_fn_c_try_link
1982 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1983 # -------------------------------------------------------
1984 # Tests whether HEADER exists and can be compiled using the include files in
1985 # INCLUDES, setting the cache variable VAR accordingly.
1986 ac_fn_c_check_header_compile ()
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if eval \${$3+:} false; then :
1992 $as_echo_n "(cached) " >&6
1993 else
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
1997 #include <$2>
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000 eval "$3=yes"
2001 else
2002 eval "$3=no"
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 eval ac_res=\$$3
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008 $as_echo "$ac_res" >&6; }
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011 } # ac_fn_c_check_header_compile
2013 # ac_fn_c_try_run LINENO
2014 # ----------------------
2015 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2016 # that executables *can* be run.
2017 ac_fn_c_try_run ()
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 if { { ac_try="$ac_link"
2021 case "(($ac_try" in
2022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2023 *) ac_try_echo=$ac_try;;
2024 esac
2025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2026 $as_echo "$ac_try_echo"; } >&5
2027 (eval "$ac_link") 2>&5
2028 ac_status=$?
2029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2030 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2031 { { case "(($ac_try" in
2032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2033 *) ac_try_echo=$ac_try;;
2034 esac
2035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2036 $as_echo "$ac_try_echo"; } >&5
2037 (eval "$ac_try") 2>&5
2038 ac_status=$?
2039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2040 test $ac_status = 0; }; }; then :
2041 ac_retval=0
2042 else
2043 $as_echo "$as_me: program exited with status $ac_status" >&5
2044 $as_echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2047 ac_retval=$ac_status
2049 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 as_fn_set_status $ac_retval
2053 } # ac_fn_c_try_run
2055 # ac_fn_c_check_func LINENO FUNC VAR
2056 # ----------------------------------
2057 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2058 ac_fn_c_check_func ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if eval \${$3+:} false; then :
2064 $as_echo_n "(cached) " >&6
2065 else
2066 if test x$gcc_no_link = xyes; then
2067 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2073 #define $2 innocuous_$2
2075 /* System header to define __stub macros and hopefully few prototypes,
2076 which can conflict with char $2 (); below.
2077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2078 <limits.h> exists even on freestanding compilers. */
2080 #ifdef __STDC__
2081 # include <limits.h>
2082 #else
2083 # include <assert.h>
2084 #endif
2086 #undef $2
2088 /* Override any GCC internal prototype to avoid an error.
2089 Use char because int might match the return type of a GCC
2090 builtin and then its argument prototype would still apply. */
2091 #ifdef __cplusplus
2092 extern "C"
2093 #endif
2094 char $2 ();
2095 /* The GNU C library defines this for functions which it implements
2096 to always fail with ENOSYS. Some functions are actually named
2097 something starting with __ and the normal name is an alias. */
2098 #if defined __stub_$2 || defined __stub___$2
2099 choke me
2100 #endif
2103 main ()
2105 return $2 ();
2107 return 0;
2109 _ACEOF
2110 if ac_fn_c_try_link "$LINENO"; then :
2111 eval "$3=yes"
2112 else
2113 eval "$3=no"
2115 rm -f core conftest.err conftest.$ac_objext \
2116 conftest$ac_exeext conftest.$ac_ext
2118 eval ac_res=\$$3
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120 $as_echo "$ac_res" >&6; }
2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123 } # ac_fn_c_check_func
2125 # ac_fn_cxx_try_cpp LINENO
2126 # ------------------------
2127 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2128 ac_fn_cxx_try_cpp ()
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 if { { ac_try="$ac_cpp conftest.$ac_ext"
2132 case "(($ac_try" in
2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134 *) ac_try_echo=$ac_try;;
2135 esac
2136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2137 $as_echo "$ac_try_echo"; } >&5
2138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2139 ac_status=$?
2140 if test -s conftest.err; then
2141 grep -v '^ *+' conftest.err >conftest.er1
2142 cat conftest.er1 >&5
2143 mv -f conftest.er1 conftest.err
2145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2146 test $ac_status = 0; } > conftest.i && {
2147 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2148 test ! -s conftest.err
2149 }; then :
2150 ac_retval=0
2151 else
2152 $as_echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2155 ac_retval=1
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158 as_fn_set_status $ac_retval
2160 } # ac_fn_cxx_try_cpp
2162 # ac_fn_cxx_try_link LINENO
2163 # -------------------------
2164 # Try to link conftest.$ac_ext, and return whether this succeeded.
2165 ac_fn_cxx_try_link ()
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 rm -f conftest.$ac_objext conftest$ac_exeext
2169 if { { ac_try="$ac_link"
2170 case "(($ac_try" in
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2173 esac
2174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175 $as_echo "$ac_try_echo"; } >&5
2176 (eval "$ac_link") 2>conftest.err
2177 ac_status=$?
2178 if test -s conftest.err; then
2179 grep -v '^ *+' conftest.err >conftest.er1
2180 cat conftest.er1 >&5
2181 mv -f conftest.er1 conftest.err
2183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184 test $ac_status = 0; } && {
2185 test -z "$ac_cxx_werror_flag" ||
2186 test ! -s conftest.err
2187 } && test -s conftest$ac_exeext && {
2188 test "$cross_compiling" = yes ||
2189 test -x conftest$ac_exeext
2190 }; then :
2191 ac_retval=0
2192 else
2193 $as_echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2196 ac_retval=1
2198 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2199 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2200 # interfere with the next link command; also delete a directory that is
2201 # left behind by Apple's compiler. We do this before executing the actions.
2202 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2203 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204 as_fn_set_status $ac_retval
2206 } # ac_fn_cxx_try_link
2208 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2209 # -------------------------------------------------------
2210 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2211 # the include files in INCLUDES and setting the cache variable VAR
2212 # accordingly.
2213 ac_fn_c_check_header_mongrel ()
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 if eval \${$3+:} false; then :
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if eval \${$3+:} false; then :
2220 $as_echo_n "(cached) " >&6
2222 eval ac_res=\$$3
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2224 $as_echo "$ac_res" >&6; }
2225 else
2226 # Is the header compilable?
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2228 $as_echo_n "checking $2 usability... " >&6; }
2229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h. */
2232 #include <$2>
2233 _ACEOF
2234 if ac_fn_c_try_compile "$LINENO"; then :
2235 ac_header_compiler=yes
2236 else
2237 ac_header_compiler=no
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2241 $as_echo "$ac_header_compiler" >&6; }
2243 # Is the header present?
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2245 $as_echo_n "checking $2 presence... " >&6; }
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2248 #include <$2>
2249 _ACEOF
2250 if ac_fn_c_try_cpp "$LINENO"; then :
2251 ac_header_preproc=yes
2252 else
2253 ac_header_preproc=no
2255 rm -f conftest.err conftest.i conftest.$ac_ext
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2257 $as_echo "$ac_header_preproc" >&6; }
2259 # So? What about this header?
2260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2261 yes:no: )
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2263 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2265 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2267 no:yes:* )
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2269 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2271 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2273 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2275 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2277 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2279 esac
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2281 $as_echo_n "checking for $2... " >&6; }
2282 if eval \${$3+:} false; then :
2283 $as_echo_n "(cached) " >&6
2284 else
2285 eval "$3=\$ac_header_compiler"
2287 eval ac_res=\$$3
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289 $as_echo "$ac_res" >&6; }
2291 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2293 } # ac_fn_c_check_header_mongrel
2295 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2296 # ---------------------------------------------------------
2297 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2298 # the include files in INCLUDES and setting the cache variable VAR
2299 # accordingly.
2300 ac_fn_cxx_check_header_mongrel ()
2302 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2303 if eval \${$3+:} false; then :
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2305 $as_echo_n "checking for $2... " >&6; }
2306 if eval \${$3+:} false; then :
2307 $as_echo_n "(cached) " >&6
2309 eval ac_res=\$$3
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2312 else
2313 # Is the header compilable?
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2315 $as_echo_n "checking $2 usability... " >&6; }
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2319 #include <$2>
2320 _ACEOF
2321 if ac_fn_cxx_try_compile "$LINENO"; then :
2322 ac_header_compiler=yes
2323 else
2324 ac_header_compiler=no
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2328 $as_echo "$ac_header_compiler" >&6; }
2330 # Is the header present?
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2332 $as_echo_n "checking $2 presence... " >&6; }
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2335 #include <$2>
2336 _ACEOF
2337 if ac_fn_cxx_try_cpp "$LINENO"; then :
2338 ac_header_preproc=yes
2339 else
2340 ac_header_preproc=no
2342 rm -f conftest.err conftest.i conftest.$ac_ext
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2344 $as_echo "$ac_header_preproc" >&6; }
2346 # So? What about this header?
2347 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2348 yes:no: )
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2350 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2352 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2354 no:yes:* )
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2356 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2358 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2360 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2362 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2364 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2366 esac
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2368 $as_echo_n "checking for $2... " >&6; }
2369 if eval \${$3+:} false; then :
2370 $as_echo_n "(cached) " >&6
2371 else
2372 eval "$3=\$ac_header_compiler"
2374 eval ac_res=\$$3
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2376 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2380 } # ac_fn_cxx_check_header_mongrel
2382 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2383 # --------------------------------------------
2384 # Tries to find the compile-time value of EXPR in a program that includes
2385 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2386 # computed
2387 ac_fn_c_compute_int ()
2389 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2390 if test "$cross_compiling" = yes; then
2391 # Depending upon the size, compute the lo and hi bounds.
2392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2393 /* end confdefs.h. */
2396 main ()
2398 static int test_array [1 - 2 * !(($2) >= 0)];
2399 test_array [0] = 0;
2400 return test_array [0];
2403 return 0;
2405 _ACEOF
2406 if ac_fn_c_try_compile "$LINENO"; then :
2407 ac_lo=0 ac_mid=0
2408 while :; do
2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2410 /* end confdefs.h. */
2413 main ()
2415 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2416 test_array [0] = 0;
2417 return test_array [0];
2420 return 0;
2422 _ACEOF
2423 if ac_fn_c_try_compile "$LINENO"; then :
2424 ac_hi=$ac_mid; break
2425 else
2426 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2427 if test $ac_lo -le $ac_mid; then
2428 ac_lo= ac_hi=
2429 break
2431 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 done
2435 else
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2440 main ()
2442 static int test_array [1 - 2 * !(($2) < 0)];
2443 test_array [0] = 0;
2444 return test_array [0];
2447 return 0;
2449 _ACEOF
2450 if ac_fn_c_try_compile "$LINENO"; then :
2451 ac_hi=-1 ac_mid=-1
2452 while :; do
2453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2454 /* end confdefs.h. */
2457 main ()
2459 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2460 test_array [0] = 0;
2461 return test_array [0];
2464 return 0;
2466 _ACEOF
2467 if ac_fn_c_try_compile "$LINENO"; then :
2468 ac_lo=$ac_mid; break
2469 else
2470 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2471 if test $ac_mid -le $ac_hi; then
2472 ac_lo= ac_hi=
2473 break
2475 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2478 done
2479 else
2480 ac_lo= ac_hi=
2482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485 # Binary search between lo and hi bounds.
2486 while test "x$ac_lo" != "x$ac_hi"; do
2487 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2489 /* end confdefs.h. */
2492 main ()
2494 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2495 test_array [0] = 0;
2496 return test_array [0];
2499 return 0;
2501 _ACEOF
2502 if ac_fn_c_try_compile "$LINENO"; then :
2503 ac_hi=$ac_mid
2504 else
2505 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2508 done
2509 case $ac_lo in #((
2510 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2511 '') ac_retval=1 ;;
2512 esac
2513 else
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h. */
2517 static long int longval () { return $2; }
2518 static unsigned long int ulongval () { return $2; }
2519 #include <stdio.h>
2520 #include <stdlib.h>
2522 main ()
2525 FILE *f = fopen ("conftest.val", "w");
2526 if (! f)
2527 return 1;
2528 if (($2) < 0)
2530 long int i = longval ();
2531 if (i != ($2))
2532 return 1;
2533 fprintf (f, "%ld", i);
2535 else
2537 unsigned long int i = ulongval ();
2538 if (i != ($2))
2539 return 1;
2540 fprintf (f, "%lu", i);
2542 /* Do not output a trailing newline, as this causes \r\n confusion
2543 on some platforms. */
2544 return ferror (f) || fclose (f) != 0;
2547 return 0;
2549 _ACEOF
2550 if ac_fn_c_try_run "$LINENO"; then :
2551 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2552 else
2553 ac_retval=1
2555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2556 conftest.$ac_objext conftest.beam conftest.$ac_ext
2557 rm -f conftest.val
2560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2561 as_fn_set_status $ac_retval
2563 } # ac_fn_c_compute_int
2565 # ac_fn_cxx_check_func LINENO FUNC VAR
2566 # ------------------------------------
2567 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2568 ac_fn_cxx_check_func ()
2570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2572 $as_echo_n "checking for $2... " >&6; }
2573 if eval \${$3+:} false; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 if test x$gcc_no_link = xyes; then
2577 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h. */
2581 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2583 #define $2 innocuous_$2
2585 /* System header to define __stub macros and hopefully few prototypes,
2586 which can conflict with char $2 (); below.
2587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2588 <limits.h> exists even on freestanding compilers. */
2590 #ifdef __STDC__
2591 # include <limits.h>
2592 #else
2593 # include <assert.h>
2594 #endif
2596 #undef $2
2598 /* Override any GCC internal prototype to avoid an error.
2599 Use char because int might match the return type of a GCC
2600 builtin and then its argument prototype would still apply. */
2601 #ifdef __cplusplus
2602 extern "C"
2603 #endif
2604 char $2 ();
2605 /* The GNU C library defines this for functions which it implements
2606 to always fail with ENOSYS. Some functions are actually named
2607 something starting with __ and the normal name is an alias. */
2608 #if defined __stub_$2 || defined __stub___$2
2609 choke me
2610 #endif
2613 main ()
2615 return $2 ();
2617 return 0;
2619 _ACEOF
2620 if ac_fn_cxx_try_link "$LINENO"; then :
2621 eval "$3=yes"
2622 else
2623 eval "$3=no"
2625 rm -f core conftest.err conftest.$ac_objext \
2626 conftest$ac_exeext conftest.$ac_ext
2628 eval ac_res=\$$3
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630 $as_echo "$ac_res" >&6; }
2631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2633 } # ac_fn_cxx_check_func
2635 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2636 # ---------------------------------------------
2637 # Tests whether TYPE exists after having included INCLUDES, setting cache
2638 # variable VAR accordingly.
2639 ac_fn_cxx_check_type ()
2641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2643 $as_echo_n "checking for $2... " >&6; }
2644 if eval \${$3+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 eval "$3=no"
2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649 /* end confdefs.h. */
2652 main ()
2654 if (sizeof ($2))
2655 return 0;
2657 return 0;
2659 _ACEOF
2660 if ac_fn_cxx_try_compile "$LINENO"; then :
2661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662 /* end confdefs.h. */
2665 main ()
2667 if (sizeof (($2)))
2668 return 0;
2670 return 0;
2672 _ACEOF
2673 if ac_fn_cxx_try_compile "$LINENO"; then :
2675 else
2676 eval "$3=yes"
2678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 eval ac_res=\$$3
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2684 $as_echo "$ac_res" >&6; }
2685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2687 } # ac_fn_cxx_check_type
2689 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2690 # ---------------------------------------------
2691 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2692 # accordingly.
2693 ac_fn_c_check_decl ()
2695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2696 as_decl_name=`echo $2|sed 's/ *(.*//'`
2697 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2699 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2700 if eval \${$3+:} false; then :
2701 $as_echo_n "(cached) " >&6
2702 else
2703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704 /* end confdefs.h. */
2707 main ()
2709 #ifndef $as_decl_name
2710 #ifdef __cplusplus
2711 (void) $as_decl_use;
2712 #else
2713 (void) $as_decl_name;
2714 #endif
2715 #endif
2718 return 0;
2720 _ACEOF
2721 if ac_fn_c_try_compile "$LINENO"; then :
2722 eval "$3=yes"
2723 else
2724 eval "$3=no"
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728 eval ac_res=\$$3
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2730 $as_echo "$ac_res" >&6; }
2731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2733 } # ac_fn_c_check_decl
2734 cat >config.log <<_ACEOF
2735 This file contains any messages produced by compilers while
2736 running configure, to aid debugging if configure makes a mistake.
2738 It was created by package-unused $as_me version-unused, which was
2739 generated by GNU Autoconf 2.69. Invocation command line was
2741 $ $0 $@
2743 _ACEOF
2744 exec 5>>config.log
2746 cat <<_ASUNAME
2747 ## --------- ##
2748 ## Platform. ##
2749 ## --------- ##
2751 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2752 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2753 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2754 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2755 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2757 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2758 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2760 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2761 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2762 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2763 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2764 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2765 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2766 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2768 _ASUNAME
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 $as_echo "PATH: $as_dir"
2776 done
2777 IFS=$as_save_IFS
2779 } >&5
2781 cat >&5 <<_ACEOF
2784 ## ----------- ##
2785 ## Core tests. ##
2786 ## ----------- ##
2788 _ACEOF
2791 # Keep a trace of the command line.
2792 # Strip out --no-create and --no-recursion so they do not pile up.
2793 # Strip out --silent because we don't want to record it for future runs.
2794 # Also quote any args containing shell meta-characters.
2795 # Make two passes to allow for proper duplicate-argument suppression.
2796 ac_configure_args=
2797 ac_configure_args0=
2798 ac_configure_args1=
2799 ac_must_keep_next=false
2800 for ac_pass in 1 2
2802 for ac_arg
2804 case $ac_arg in
2805 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2806 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2807 | -silent | --silent | --silen | --sile | --sil)
2808 continue ;;
2809 *\'*)
2810 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2811 esac
2812 case $ac_pass in
2813 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2815 as_fn_append ac_configure_args1 " '$ac_arg'"
2816 if test $ac_must_keep_next = true; then
2817 ac_must_keep_next=false # Got value, back to normal.
2818 else
2819 case $ac_arg in
2820 *=* | --config-cache | -C | -disable-* | --disable-* \
2821 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2822 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2823 | -with-* | --with-* | -without-* | --without-* | --x)
2824 case "$ac_configure_args0 " in
2825 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2826 esac
2828 -* ) ac_must_keep_next=true ;;
2829 esac
2831 as_fn_append ac_configure_args " '$ac_arg'"
2833 esac
2834 done
2835 done
2836 { ac_configure_args0=; unset ac_configure_args0;}
2837 { ac_configure_args1=; unset ac_configure_args1;}
2839 # When interrupted or exit'd, cleanup temporary files, and complete
2840 # config.log. We remove comments because anyway the quotes in there
2841 # would cause problems or look ugly.
2842 # WARNING: Use '\'' to represent an apostrophe within the trap.
2843 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2844 trap 'exit_status=$?
2845 # Save into config.log some information that might help in debugging.
2847 echo
2849 $as_echo "## ---------------- ##
2850 ## Cache variables. ##
2851 ## ---------------- ##"
2852 echo
2853 # The following way of writing the cache mishandles newlines in values,
2855 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2856 eval ac_val=\$$ac_var
2857 case $ac_val in #(
2858 *${as_nl}*)
2859 case $ac_var in #(
2860 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2861 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2862 esac
2863 case $ac_var in #(
2864 _ | IFS | as_nl) ;; #(
2865 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2866 *) { eval $ac_var=; unset $ac_var;} ;;
2867 esac ;;
2868 esac
2869 done
2870 (set) 2>&1 |
2871 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2872 *${as_nl}ac_space=\ *)
2873 sed -n \
2874 "s/'\''/'\''\\\\'\'''\''/g;
2875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2876 ;; #(
2878 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2880 esac |
2881 sort
2883 echo
2885 $as_echo "## ----------------- ##
2886 ## Output variables. ##
2887 ## ----------------- ##"
2888 echo
2889 for ac_var in $ac_subst_vars
2891 eval ac_val=\$$ac_var
2892 case $ac_val in
2893 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2894 esac
2895 $as_echo "$ac_var='\''$ac_val'\''"
2896 done | sort
2897 echo
2899 if test -n "$ac_subst_files"; then
2900 $as_echo "## ------------------- ##
2901 ## File substitutions. ##
2902 ## ------------------- ##"
2903 echo
2904 for ac_var in $ac_subst_files
2906 eval ac_val=\$$ac_var
2907 case $ac_val in
2908 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2909 esac
2910 $as_echo "$ac_var='\''$ac_val'\''"
2911 done | sort
2912 echo
2915 if test -s confdefs.h; then
2916 $as_echo "## ----------- ##
2917 ## confdefs.h. ##
2918 ## ----------- ##"
2919 echo
2920 cat confdefs.h
2921 echo
2923 test "$ac_signal" != 0 &&
2924 $as_echo "$as_me: caught signal $ac_signal"
2925 $as_echo "$as_me: exit $exit_status"
2926 } >&5
2927 rm -f core *.core core.conftest.* &&
2928 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2929 exit $exit_status
2931 for ac_signal in 1 2 13 15; do
2932 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2933 done
2934 ac_signal=0
2936 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2937 rm -f -r conftest* confdefs.h
2939 $as_echo "/* confdefs.h */" > confdefs.h
2941 # Predefined preprocessor variables.
2943 cat >>confdefs.h <<_ACEOF
2944 #define PACKAGE_NAME "$PACKAGE_NAME"
2945 _ACEOF
2947 cat >>confdefs.h <<_ACEOF
2948 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2949 _ACEOF
2951 cat >>confdefs.h <<_ACEOF
2952 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2953 _ACEOF
2955 cat >>confdefs.h <<_ACEOF
2956 #define PACKAGE_STRING "$PACKAGE_STRING"
2957 _ACEOF
2959 cat >>confdefs.h <<_ACEOF
2960 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2961 _ACEOF
2963 cat >>confdefs.h <<_ACEOF
2964 #define PACKAGE_URL "$PACKAGE_URL"
2965 _ACEOF
2968 # Let the site file select an alternate cache file if it wants to.
2969 # Prefer an explicitly selected file to automatically selected ones.
2970 ac_site_file1=NONE
2971 ac_site_file2=NONE
2972 if test -n "$CONFIG_SITE"; then
2973 # We do not want a PATH search for config.site.
2974 case $CONFIG_SITE in #((
2975 -*) ac_site_file1=./$CONFIG_SITE;;
2976 */*) ac_site_file1=$CONFIG_SITE;;
2977 *) ac_site_file1=./$CONFIG_SITE;;
2978 esac
2979 elif test "x$prefix" != xNONE; then
2980 ac_site_file1=$prefix/share/config.site
2981 ac_site_file2=$prefix/etc/config.site
2982 else
2983 ac_site_file1=$ac_default_prefix/share/config.site
2984 ac_site_file2=$ac_default_prefix/etc/config.site
2986 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2988 test "x$ac_site_file" = xNONE && continue
2989 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2991 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2992 sed 's/^/| /' "$ac_site_file" >&5
2993 . "$ac_site_file" \
2994 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2996 as_fn_error $? "failed to load site script $ac_site_file
2997 See \`config.log' for more details" "$LINENO" 5; }
2999 done
3001 if test -r "$cache_file"; then
3002 # Some versions of bash will fail to source /dev/null (special files
3003 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3004 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3006 $as_echo "$as_me: loading cache $cache_file" >&6;}
3007 case $cache_file in
3008 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3009 *) . "./$cache_file";;
3010 esac
3012 else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3014 $as_echo "$as_me: creating cache $cache_file" >&6;}
3015 >$cache_file
3018 # Check that the precious variables saved in the cache have kept the same
3019 # value.
3020 ac_cache_corrupted=false
3021 for ac_var in $ac_precious_vars; do
3022 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3023 eval ac_new_set=\$ac_env_${ac_var}_set
3024 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3025 eval ac_new_val=\$ac_env_${ac_var}_value
3026 case $ac_old_set,$ac_new_set in
3027 set,)
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3029 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3030 ac_cache_corrupted=: ;;
3031 ,set)
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3033 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3034 ac_cache_corrupted=: ;;
3035 ,);;
3037 if test "x$ac_old_val" != "x$ac_new_val"; then
3038 # differences in whitespace do not lead to failure.
3039 ac_old_val_w=`echo x $ac_old_val`
3040 ac_new_val_w=`echo x $ac_new_val`
3041 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3043 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3044 ac_cache_corrupted=:
3045 else
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3047 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3048 eval $ac_var=\$ac_old_val
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3051 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3053 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3054 fi;;
3055 esac
3056 # Pass precious variables to config.status.
3057 if test "$ac_new_set" = set; then
3058 case $ac_new_val in
3059 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3060 *) ac_arg=$ac_var=$ac_new_val ;;
3061 esac
3062 case " $ac_configure_args " in
3063 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3064 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3065 esac
3067 done
3068 if $ac_cache_corrupted; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3072 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3073 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3075 ## -------------------- ##
3076 ## Main body of script. ##
3077 ## -------------------- ##
3079 ac_ext=c
3080 ac_cpp='$CPP $CPPFLAGS'
3081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090 ac_config_headers="$ac_config_headers config.h"
3093 # This works around the fact that libtool configuration may change LD
3094 # for this particular configuration, but some shells, instead of
3095 # keeping the changes in LD private, export them just because LD is
3096 # exported. Only used at the end of this file.
3097 ### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
3099 # Find the rest of the source tree framework.
3100 # Default to --enable-multilib
3101 # Check whether --enable-multilib was given.
3102 if test "${enable_multilib+set}" = set; then :
3103 enableval=$enable_multilib; case "$enableval" in
3104 yes) multilib=yes ;;
3105 no) multilib=no ;;
3106 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3107 esac
3108 else
3109 multilib=yes
3113 # We may get other options which we leave undocumented:
3114 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3115 # See config-ml.in if you want the gory details.
3117 if test "$srcdir" = "."; then
3118 if test "$with_target_subdir" != "."; then
3119 multi_basedir="$srcdir/$with_multisrctop../.."
3120 else
3121 multi_basedir="$srcdir/$with_multisrctop.."
3123 else
3124 multi_basedir="$srcdir/.."
3128 # Even if the default multilib is not a cross compilation,
3129 # it may be that some of the other multilibs are.
3130 if test $cross_compiling = no && test $multilib = yes \
3131 && test "x${with_multisubdir}" != x ; then
3132 cross_compiling=maybe
3135 ac_config_commands="$ac_config_commands default-1"
3138 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
3140 # You will slowly go insane if you do not grok the following fact: when
3141 # building v3 as part of the compiler, the top-level /target/ becomes the
3142 # library's /host/. configure then causes --target to default to --host,
3143 # exactly like any other package using autoconf. Therefore, 'target' and
3144 # 'host' will always be the same. This makes sense both for native and
3145 # cross compilers, just think about it for a little while. :-)
3147 # Also, if v3 is being configured as part of a cross compiler, the top-level
3148 # configure script will pass the "real" host as $with_cross_host.
3150 # Do not delete or change the following two lines. For why, see
3151 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
3152 ac_aux_dir=
3153 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3154 if test -f "$ac_dir/install-sh"; then
3155 ac_aux_dir=$ac_dir
3156 ac_install_sh="$ac_aux_dir/install-sh -c"
3157 break
3158 elif test -f "$ac_dir/install.sh"; then
3159 ac_aux_dir=$ac_dir
3160 ac_install_sh="$ac_aux_dir/install.sh -c"
3161 break
3162 elif test -f "$ac_dir/shtool"; then
3163 ac_aux_dir=$ac_dir
3164 ac_install_sh="$ac_aux_dir/shtool install -c"
3165 break
3167 done
3168 if test -z "$ac_aux_dir"; then
3169 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3172 # These three variables are undocumented and unsupported,
3173 # and are intended to be withdrawn in a future Autoconf release.
3174 # They can cause serious problems if a builder's source tree is in a directory
3175 # whose full name contains unusual characters.
3176 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3177 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3178 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3181 # Make sure we can run config.sub.
3182 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3183 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3186 $as_echo_n "checking build system type... " >&6; }
3187 if ${ac_cv_build+:} false; then :
3188 $as_echo_n "(cached) " >&6
3189 else
3190 ac_build_alias=$build_alias
3191 test "x$ac_build_alias" = x &&
3192 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3193 test "x$ac_build_alias" = x &&
3194 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3195 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3196 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3200 $as_echo "$ac_cv_build" >&6; }
3201 case $ac_cv_build in
3202 *-*-*) ;;
3203 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3204 esac
3205 build=$ac_cv_build
3206 ac_save_IFS=$IFS; IFS='-'
3207 set x $ac_cv_build
3208 shift
3209 build_cpu=$1
3210 build_vendor=$2
3211 shift; shift
3212 # Remember, the first character of IFS is used to create $*,
3213 # except with old shells:
3214 build_os=$*
3215 IFS=$ac_save_IFS
3216 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3220 $as_echo_n "checking host system type... " >&6; }
3221 if ${ac_cv_host+:} false; then :
3222 $as_echo_n "(cached) " >&6
3223 else
3224 if test "x$host_alias" = x; then
3225 ac_cv_host=$ac_cv_build
3226 else
3227 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3228 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3233 $as_echo "$ac_cv_host" >&6; }
3234 case $ac_cv_host in
3235 *-*-*) ;;
3236 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3237 esac
3238 host=$ac_cv_host
3239 ac_save_IFS=$IFS; IFS='-'
3240 set x $ac_cv_host
3241 shift
3242 host_cpu=$1
3243 host_vendor=$2
3244 shift; shift
3245 # Remember, the first character of IFS is used to create $*,
3246 # except with old shells:
3247 host_os=$*
3248 IFS=$ac_save_IFS
3249 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3253 $as_echo_n "checking target system type... " >&6; }
3254 if ${ac_cv_target+:} false; then :
3255 $as_echo_n "(cached) " >&6
3256 else
3257 if test "x$target_alias" = x; then
3258 ac_cv_target=$ac_cv_host
3259 else
3260 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3261 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3266 $as_echo "$ac_cv_target" >&6; }
3267 case $ac_cv_target in
3268 *-*-*) ;;
3269 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3270 esac
3271 target=$ac_cv_target
3272 ac_save_IFS=$IFS; IFS='-'
3273 set x $ac_cv_target
3274 shift
3275 target_cpu=$1
3276 target_vendor=$2
3277 shift; shift
3278 # Remember, the first character of IFS is used to create $*,
3279 # except with old shells:
3280 target_os=$*
3281 IFS=$ac_save_IFS
3282 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3285 # The aliases save the names the user supplied, while $host etc.
3286 # will get canonicalized.
3287 test -n "$target_alias" &&
3288 test "$program_prefix$program_suffix$program_transform_name" = \
3289 NONENONEs,x,x, &&
3290 program_prefix=${target_alias}-
3292 target_alias=${target_alias-$host_alias}
3294 # Handy for debugging:
3295 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3297 if test "$build" != "$host"; then
3298 # We are being configured with some form of cross compiler.
3299 GLIBCXX_IS_NATIVE=false
3300 case "$host","$target" in
3301 # Darwin crosses can use the host system's libraries and headers,
3302 # because of the fat library support. Of course, it must be the
3303 # same version of Darwin on both sides. Allow the user to
3304 # just say --target=foo-darwin without a version number to mean
3305 # "the version on this system".
3306 *-*-darwin*,*-*-darwin*)
3307 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
3308 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
3309 if test $hostos = $targetos || test $targetos = darwin ; then
3310 GLIBCXX_IS_NATIVE=true
3317 esac
3318 else
3319 GLIBCXX_IS_NATIVE=true
3322 # In the case that we're building without headers, we won't have <stdio.h>
3323 # available. In these cases, we have to instruct autotools to never include
3324 # <stdio.h> as a part of default headers.
3326 if test "x$with_headers" = "xno"; then
3327 ac_includes_default=`echo "$ac_includes_default" | sed '/^#include <stdio.h>$/d'`
3331 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
3332 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
3333 # 1.x: minimum required version
3334 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
3335 # of other PACKAGE_* variables will, however, and there's nothing
3336 # we can do about that; they come from AC_INIT).
3337 # foreign: we don't follow the normal rules for GNU packages (no COPYING
3338 # file in the top srcdir, etc, etc), so stop complaining.
3339 # no-dependencies: turns off auto dependency generation (just for now)
3340 # no-dist: we don't want 'dist' and related rules.
3341 # -Wall: turns on all automake warnings...
3342 # -Wno-portability: ...except this one, since GNU make is now required.
3343 am__api_version='1.15'
3345 # Find a good install program. We prefer a C program (faster),
3346 # so one script is as good as another. But avoid the broken or
3347 # incompatible versions:
3348 # SysV /etc/install, /usr/sbin/install
3349 # SunOS /usr/etc/install
3350 # IRIX /sbin/install
3351 # AIX /bin/install
3352 # AmigaOS /C/install, which installs bootblocks on floppy discs
3353 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3354 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3355 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3356 # OS/2's system install, which has a completely different semantic
3357 # ./install, which can be erroneously created by make from ./install.sh.
3358 # Reject install programs that cannot install multiple files.
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3360 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3361 if test -z "$INSTALL"; then
3362 if ${ac_cv_path_install+:} false; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 # Account for people who put trailing slashes in PATH elements.
3371 case $as_dir/ in #((
3372 ./ | .// | /[cC]/* | \
3373 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3374 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3375 /usr/ucb/* ) ;;
3377 # OSF1 and SCO ODT 3.0 have their own names for install.
3378 # Don't use installbsd from OSF since it installs stuff as root
3379 # by default.
3380 for ac_prog in ginstall scoinst install; do
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3383 if test $ac_prog = install &&
3384 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3385 # AIX install. It has an incompatible calling convention.
3387 elif test $ac_prog = install &&
3388 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3389 # program-specific install script used by HP pwplus--don't use.
3391 else
3392 rm -rf conftest.one conftest.two conftest.dir
3393 echo one > conftest.one
3394 echo two > conftest.two
3395 mkdir conftest.dir
3396 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3397 test -s conftest.one && test -s conftest.two &&
3398 test -s conftest.dir/conftest.one &&
3399 test -s conftest.dir/conftest.two
3400 then
3401 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3402 break 3
3406 done
3407 done
3409 esac
3411 done
3412 IFS=$as_save_IFS
3414 rm -rf conftest.one conftest.two conftest.dir
3417 if test "${ac_cv_path_install+set}" = set; then
3418 INSTALL=$ac_cv_path_install
3419 else
3420 # As a last resort, use the slow shell script. Don't cache a
3421 # value for INSTALL within a source directory, because that will
3422 # break other packages using the cache if that directory is
3423 # removed, or if the value is a relative name.
3424 INSTALL=$ac_install_sh
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3428 $as_echo "$INSTALL" >&6; }
3430 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3431 # It thinks the first close brace ends the variable substitution.
3432 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3434 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3436 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3439 $as_echo_n "checking whether build environment is sane... " >&6; }
3440 # Reject unsafe characters in $srcdir or the absolute working directory
3441 # name. Accept space and tab only in the latter.
3442 am_lf='
3444 case `pwd` in
3445 *[\\\"\#\$\&\'\`$am_lf]*)
3446 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3447 esac
3448 case $srcdir in
3449 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3450 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3451 esac
3453 # Do 'set' in a subshell so we don't clobber the current shell's
3454 # arguments. Must try -L first in case configure is actually a
3455 # symlink; some systems play weird games with the mod time of symlinks
3456 # (eg FreeBSD returns the mod time of the symlink's containing
3457 # directory).
3458 if (
3459 am_has_slept=no
3460 for am_try in 1 2; do
3461 echo "timestamp, slept: $am_has_slept" > conftest.file
3462 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3463 if test "$*" = "X"; then
3464 # -L didn't work.
3465 set X `ls -t "$srcdir/configure" conftest.file`
3467 if test "$*" != "X $srcdir/configure conftest.file" \
3468 && test "$*" != "X conftest.file $srcdir/configure"; then
3470 # If neither matched, then we have a broken ls. This can happen
3471 # if, for instance, CONFIG_SHELL is bash and it inherits a
3472 # broken ls alias from the environment. This has actually
3473 # happened. Such a system could not be considered "sane".
3474 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3475 alias in your environment" "$LINENO" 5
3477 if test "$2" = conftest.file || test $am_try -eq 2; then
3478 break
3480 # Just in case.
3481 sleep 1
3482 am_has_slept=yes
3483 done
3484 test "$2" = conftest.file
3486 then
3487 # Ok.
3489 else
3490 as_fn_error $? "newly created file is older than distributed files!
3491 Check your system clock" "$LINENO" 5
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3494 $as_echo "yes" >&6; }
3495 # If we didn't sleep, we still need to ensure time stamps of config.status and
3496 # generated files are strictly newer.
3497 am_sleep_pid=
3498 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3499 ( sleep 1 ) &
3500 am_sleep_pid=$!
3503 rm -f conftest.file
3505 test "$program_prefix" != NONE &&
3506 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3507 # Use a double $ so make ignores it.
3508 test "$program_suffix" != NONE &&
3509 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3510 # Double any \ or $.
3511 # By default was `s,x,x', remove it if useless.
3512 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3513 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3515 # Expand $ac_aux_dir to an absolute path.
3516 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3518 if test x"${MISSING+set}" != xset; then
3519 case $am_aux_dir in
3520 *\ * | *\ *)
3521 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3523 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3524 esac
3526 # Use eval to expand $SHELL
3527 if eval "$MISSING --is-lightweight"; then
3528 am_missing_run="$MISSING "
3529 else
3530 am_missing_run=
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3532 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3535 if test x"${install_sh+set}" != xset; then
3536 case $am_aux_dir in
3537 *\ * | *\ *)
3538 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3540 install_sh="\${SHELL} $am_aux_dir/install-sh"
3541 esac
3544 # Installed binaries are usually stripped using 'strip' when the user
3545 # run "make install-strip". However 'strip' might not be the right
3546 # tool to use in cross-compilation environments, therefore Automake
3547 # will honor the 'STRIP' environment variable to overrule this program.
3548 if test "$cross_compiling" != no; then
3549 if test -n "$ac_tool_prefix"; then
3550 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3551 set dummy ${ac_tool_prefix}strip; ac_word=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; }
3554 if ${ac_cv_prog_STRIP+:} false; then :
3555 $as_echo_n "(cached) " >&6
3556 else
3557 if test -n "$STRIP"; then
3558 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3559 else
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 break 2
3571 done
3572 done
3573 IFS=$as_save_IFS
3577 STRIP=$ac_cv_prog_STRIP
3578 if test -n "$STRIP"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3580 $as_echo "$STRIP" >&6; }
3581 else
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3588 if test -z "$ac_cv_prog_STRIP"; then
3589 ac_ct_STRIP=$STRIP
3590 # Extract the first word of "strip", so it can be a program name with args.
3591 set dummy strip; ac_word=$2
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 $as_echo_n "checking for $ac_word... " >&6; }
3594 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3595 $as_echo_n "(cached) " >&6
3596 else
3597 if test -n "$ac_ct_STRIP"; then
3598 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3599 else
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3603 IFS=$as_save_IFS
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607 ac_cv_prog_ac_ct_STRIP="strip"
3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 break 2
3611 done
3612 done
3613 IFS=$as_save_IFS
3617 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3618 if test -n "$ac_ct_STRIP"; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3620 $as_echo "$ac_ct_STRIP" >&6; }
3621 else
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3626 if test "x$ac_ct_STRIP" = x; then
3627 STRIP=":"
3628 else
3629 case $cross_compiling:$ac_tool_warned in
3630 yes:)
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3633 ac_tool_warned=yes ;;
3634 esac
3635 STRIP=$ac_ct_STRIP
3637 else
3638 STRIP="$ac_cv_prog_STRIP"
3642 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3645 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3646 if test -z "$MKDIR_P"; then
3647 if ${ac_cv_path_mkdir+:} false; then :
3648 $as_echo_n "(cached) " >&6
3649 else
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3653 IFS=$as_save_IFS
3654 test -z "$as_dir" && as_dir=.
3655 for ac_prog in mkdir gmkdir; do
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3658 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3659 'mkdir (GNU coreutils) '* | \
3660 'mkdir (coreutils) '* | \
3661 'mkdir (fileutils) '4.1*)
3662 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3663 break 3;;
3664 esac
3665 done
3666 done
3667 done
3668 IFS=$as_save_IFS
3672 test -d ./--version && rmdir ./--version
3673 if test "${ac_cv_path_mkdir+set}" = set; then
3674 MKDIR_P="$ac_cv_path_mkdir -p"
3675 else
3676 # As a last resort, use the slow shell script. Don't cache a
3677 # value for MKDIR_P within a source directory, because that will
3678 # break other packages using the cache if that directory is
3679 # removed, or if the value is a relative name.
3680 MKDIR_P="$ac_install_sh -d"
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3684 $as_echo "$MKDIR_P" >&6; }
3686 for ac_prog in gawk mawk nawk awk
3688 # Extract the first word of "$ac_prog", so it can be a program name with args.
3689 set dummy $ac_prog; ac_word=$2
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 $as_echo_n "checking for $ac_word... " >&6; }
3692 if ${ac_cv_prog_AWK+:} false; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 if test -n "$AWK"; then
3696 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3705 ac_cv_prog_AWK="$ac_prog"
3706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 break 2
3709 done
3710 done
3711 IFS=$as_save_IFS
3715 AWK=$ac_cv_prog_AWK
3716 if test -n "$AWK"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3718 $as_echo "$AWK" >&6; }
3719 else
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3725 test -n "$AWK" && break
3726 done
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3729 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3730 set x ${MAKE-make}
3731 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3732 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 cat >conftest.make <<\_ACEOF
3736 SHELL = /bin/sh
3737 all:
3738 @echo '@@@%%%=$(MAKE)=@@@%%%'
3739 _ACEOF
3740 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3741 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3742 *@@@%%%=?*=@@@%%%*)
3743 eval ac_cv_prog_make_${ac_make}_set=yes;;
3745 eval ac_cv_prog_make_${ac_make}_set=no;;
3746 esac
3747 rm -f conftest.make
3749 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3751 $as_echo "yes" >&6; }
3752 SET_MAKE=
3753 else
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755 $as_echo "no" >&6; }
3756 SET_MAKE="MAKE=${MAKE-make}"
3759 rm -rf .tst 2>/dev/null
3760 mkdir .tst 2>/dev/null
3761 if test -d .tst; then
3762 am__leading_dot=.
3763 else
3764 am__leading_dot=_
3766 rmdir .tst 2>/dev/null
3768 # Check whether --enable-silent-rules was given.
3769 if test "${enable_silent_rules+set}" = set; then :
3770 enableval=$enable_silent_rules;
3773 case $enable_silent_rules in # (((
3774 yes) AM_DEFAULT_VERBOSITY=0;;
3775 no) AM_DEFAULT_VERBOSITY=1;;
3776 *) AM_DEFAULT_VERBOSITY=1;;
3777 esac
3778 am_make=${MAKE-make}
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3780 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3781 if ${am_cv_make_support_nested_variables+:} false; then :
3782 $as_echo_n "(cached) " >&6
3783 else
3784 if $as_echo 'TRUE=$(BAR$(V))
3785 BAR0=false
3786 BAR1=true
3788 am__doit:
3789 @$(TRUE)
3790 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3791 am_cv_make_support_nested_variables=yes
3792 else
3793 am_cv_make_support_nested_variables=no
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3797 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3798 if test $am_cv_make_support_nested_variables = yes; then
3799 AM_V='$(V)'
3800 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3801 else
3802 AM_V=$AM_DEFAULT_VERBOSITY
3803 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3805 AM_BACKSLASH='\'
3807 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3808 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3809 # is not polluted with repeated "-I."
3810 am__isrc=' -I$(srcdir)'
3811 # test to see if srcdir already configured
3812 if test -f $srcdir/config.status; then
3813 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3817 # test whether we have cygpath
3818 if test -z "$CYGPATH_W"; then
3819 if (cygpath --version) >/dev/null 2>/dev/null; then
3820 CYGPATH_W='cygpath -w'
3821 else
3822 CYGPATH_W=echo
3827 # Define the identity of the package.
3828 PACKAGE='libstdc++'
3829 VERSION='version-unused'
3832 # Some tools Automake needs.
3834 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3837 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3840 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3843 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3846 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3848 # For better backward compatibility. To be removed once Automake 1.9.x
3849 # dies out for good. For more background, see:
3850 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3851 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3852 mkdir_p='$(MKDIR_P)'
3854 # We need awk for the "check" target (and possibly the TAP driver). The
3855 # system "awk" is bad on some platforms.
3856 # Always define AMTAR for backward compatibility. Yes, it's still used
3857 # in the wild :-( We should find a proper way to deprecate it ...
3858 AMTAR='$${TAR-tar}'
3861 # We'll loop over all known methods to create a tar archive until one works.
3862 _am_tools='gnutar pax cpio none'
3864 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3871 # POSIX will say in a future version that running "rm -f" with no argument
3872 # is OK; and we want to be able to make that assumption in our Makefile
3873 # recipes. So use an aggressive probe to check that the usage we want is
3874 # actually supported "in the wild" to an acceptable degree.
3875 # See automake bug#10828.
3876 # To make any issue more visible, cause the running configure to be aborted
3877 # by default if the 'rm' program in use doesn't match our expectations; the
3878 # user can still override this though.
3879 if rm -f && rm -fr && rm -rf; then : OK; else
3880 cat >&2 <<'END'
3881 Oops!
3883 Your 'rm' program seems unable to run without file operands specified
3884 on the command line, even when the '-f' option is present. This is contrary
3885 to the behaviour of most rm programs out there, and not conforming with
3886 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3888 Please tell bug-automake@gnu.org about your system, including the value
3889 of your $PATH and any error possibly output before this message. This
3890 can help us improve future automake versions.
3893 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3894 echo 'Configuration will proceed anyway, since you have set the' >&2
3895 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3896 echo >&2
3897 else
3898 cat >&2 <<'END'
3899 Aborting the configuration process, to ensure you take notice of the issue.
3901 You can download and install GNU coreutils to get an 'rm' implementation
3902 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3904 If you want to complete the configuration process using your problematic
3905 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3906 to "yes", and re-run configure.
3909 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3916 # -fno-builtin must be present here so that a non-conflicting form of
3917 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
3919 save_CXXFLAGS="$CXXFLAGS"
3920 CXXFLAGS="$CXXFLAGS -fno-builtin"
3921 ac_ext=c
3922 ac_cpp='$CPP $CPPFLAGS'
3923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3926 if test -n "$ac_tool_prefix"; then
3927 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3928 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930 $as_echo_n "checking for $ac_word... " >&6; }
3931 if ${ac_cv_prog_CC+:} false; then :
3932 $as_echo_n "(cached) " >&6
3933 else
3934 if test -n "$CC"; then
3935 ac_cv_prog_CC="$CC" # Let the user override the test.
3936 else
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3944 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 break 2
3948 done
3949 done
3950 IFS=$as_save_IFS
3954 CC=$ac_cv_prog_CC
3955 if test -n "$CC"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3957 $as_echo "$CC" >&6; }
3958 else
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3965 if test -z "$ac_cv_prog_CC"; then
3966 ac_ct_CC=$CC
3967 # Extract the first word of "gcc", so it can be a program name with args.
3968 set dummy gcc; ac_word=$2
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970 $as_echo_n "checking for $ac_word... " >&6; }
3971 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3972 $as_echo_n "(cached) " >&6
3973 else
3974 if test -n "$ac_ct_CC"; then
3975 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3976 else
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 for as_dir in $PATH
3980 IFS=$as_save_IFS
3981 test -z "$as_dir" && as_dir=.
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3984 ac_cv_prog_ac_ct_CC="gcc"
3985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3986 break 2
3988 done
3989 done
3990 IFS=$as_save_IFS
3994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3995 if test -n "$ac_ct_CC"; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3997 $as_echo "$ac_ct_CC" >&6; }
3998 else
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4003 if test "x$ac_ct_CC" = x; then
4004 CC=""
4005 else
4006 case $cross_compiling:$ac_tool_warned in
4007 yes:)
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4010 ac_tool_warned=yes ;;
4011 esac
4012 CC=$ac_ct_CC
4014 else
4015 CC="$ac_cv_prog_CC"
4018 if test -z "$CC"; then
4019 if test -n "$ac_tool_prefix"; then
4020 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4021 set dummy ${ac_tool_prefix}cc; ac_word=$2
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023 $as_echo_n "checking for $ac_word... " >&6; }
4024 if ${ac_cv_prog_CC+:} false; then :
4025 $as_echo_n "(cached) " >&6
4026 else
4027 if test -n "$CC"; then
4028 ac_cv_prog_CC="$CC" # Let the user override the test.
4029 else
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH
4033 IFS=$as_save_IFS
4034 test -z "$as_dir" && as_dir=.
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037 ac_cv_prog_CC="${ac_tool_prefix}cc"
4038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039 break 2
4041 done
4042 done
4043 IFS=$as_save_IFS
4047 CC=$ac_cv_prog_CC
4048 if test -n "$CC"; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4050 $as_echo "$CC" >&6; }
4051 else
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4059 if test -z "$CC"; then
4060 # Extract the first word of "cc", so it can be a program name with args.
4061 set dummy cc; ac_word=$2
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063 $as_echo_n "checking for $ac_word... " >&6; }
4064 if ${ac_cv_prog_CC+:} false; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 if test -n "$CC"; then
4068 ac_cv_prog_CC="$CC" # Let the user override the test.
4069 else
4070 ac_prog_rejected=no
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4078 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4079 ac_prog_rejected=yes
4080 continue
4082 ac_cv_prog_CC="cc"
4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 break 2
4086 done
4087 done
4088 IFS=$as_save_IFS
4090 if test $ac_prog_rejected = yes; then
4091 # We found a bogon in the path, so make sure we never use it.
4092 set dummy $ac_cv_prog_CC
4093 shift
4094 if test $# != 0; then
4095 # We chose a different compiler from the bogus one.
4096 # However, it has the same basename, so the bogon will be chosen
4097 # first if we set CC to just the basename; use the full file name.
4098 shift
4099 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4104 CC=$ac_cv_prog_CC
4105 if test -n "$CC"; then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4107 $as_echo "$CC" >&6; }
4108 else
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110 $as_echo "no" >&6; }
4115 if test -z "$CC"; then
4116 if test -n "$ac_tool_prefix"; then
4117 for ac_prog in cl.exe
4119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 $as_echo_n "checking for $ac_word... " >&6; }
4123 if ${ac_cv_prog_CC+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125 else
4126 if test -n "$CC"; then
4127 ac_cv_prog_CC="$CC" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4136 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 break 2
4140 done
4141 done
4142 IFS=$as_save_IFS
4146 CC=$ac_cv_prog_CC
4147 if test -n "$CC"; then
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4149 $as_echo "$CC" >&6; }
4150 else
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4156 test -n "$CC" && break
4157 done
4159 if test -z "$CC"; then
4160 ac_ct_CC=$CC
4161 for ac_prog in cl.exe
4163 # Extract the first word of "$ac_prog", so it can be a program name with args.
4164 set dummy $ac_prog; ac_word=$2
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166 $as_echo_n "checking for $ac_word... " >&6; }
4167 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 if test -n "$ac_ct_CC"; then
4171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4172 else
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4176 IFS=$as_save_IFS
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180 ac_cv_prog_ac_ct_CC="$ac_prog"
4181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 break 2
4184 done
4185 done
4186 IFS=$as_save_IFS
4190 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4191 if test -n "$ac_ct_CC"; then
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4193 $as_echo "$ac_ct_CC" >&6; }
4194 else
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196 $as_echo "no" >&6; }
4200 test -n "$ac_ct_CC" && break
4201 done
4203 if test "x$ac_ct_CC" = x; then
4204 CC=""
4205 else
4206 case $cross_compiling:$ac_tool_warned in
4207 yes:)
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4210 ac_tool_warned=yes ;;
4211 esac
4212 CC=$ac_ct_CC
4219 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4221 as_fn_error $? "no acceptable C compiler found in \$PATH
4222 See \`config.log' for more details" "$LINENO" 5; }
4224 # Provide some information about the compiler.
4225 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4226 set X $ac_compile
4227 ac_compiler=$2
4228 for ac_option in --version -v -V -qversion; do
4229 { { ac_try="$ac_compiler $ac_option >&5"
4230 case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4233 esac
4234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4235 $as_echo "$ac_try_echo"; } >&5
4236 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4237 ac_status=$?
4238 if test -s conftest.err; then
4239 sed '10a\
4240 ... rest of stderr output deleted ...
4241 10q' conftest.err >conftest.er1
4242 cat conftest.er1 >&5
4244 rm -f conftest.er1 conftest.err
4245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4246 test $ac_status = 0; }
4247 done
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4251 #include <stdio.h>
4253 main ()
4255 printf ("hello world\n");
4257 return 0;
4259 _ACEOF
4260 # FIXME: Cleanup?
4261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4262 (eval $ac_link) 2>&5
4263 ac_status=$?
4264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265 test $ac_status = 0; }; then :
4266 gcc_no_link=no
4267 else
4268 gcc_no_link=yes
4270 if test x$gcc_no_link = xyes; then
4271 # Setting cross_compile will disable run tests; it will
4272 # also disable AC_CHECK_FILE but that's generally
4273 # correct if we can't link.
4274 cross_compiling=yes
4275 EXEEXT=
4276 else
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4281 main ()
4285 return 0;
4287 _ACEOF
4288 ac_clean_files_save=$ac_clean_files
4289 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4290 # Try to create an executable without -o first, disregard a.out.
4291 # It will help us diagnose broken compilers, and finding out an intuition
4292 # of exeext.
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4294 $as_echo_n "checking whether the C compiler works... " >&6; }
4295 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4297 # The possible output files:
4298 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4300 ac_rmfiles=
4301 for ac_file in $ac_files
4303 case $ac_file in
4304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4305 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4306 esac
4307 done
4308 rm -f $ac_rmfiles
4310 if { { ac_try="$ac_link_default"
4311 case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4314 esac
4315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4316 $as_echo "$ac_try_echo"; } >&5
4317 (eval "$ac_link_default") 2>&5
4318 ac_status=$?
4319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320 test $ac_status = 0; }; then :
4321 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4322 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4323 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4324 # so that the user can short-circuit this test for compilers unknown to
4325 # Autoconf.
4326 for ac_file in $ac_files ''
4328 test -f "$ac_file" || continue
4329 case $ac_file in
4330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4332 [ab].out )
4333 # We found the default executable, but exeext='' is most
4334 # certainly right.
4335 break;;
4336 *.* )
4337 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4338 then :; else
4339 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4341 # We set ac_cv_exeext here because the later test for it is not
4342 # safe: cross compilers may not add the suffix if given an `-o'
4343 # argument, so we may need to know it at that point already.
4344 # Even if this section looks crufty: it has the advantage of
4345 # actually working.
4346 break;;
4348 break;;
4349 esac
4350 done
4351 test "$ac_cv_exeext" = no && ac_cv_exeext=
4353 else
4354 ac_file=''
4356 if test -z "$ac_file"; then :
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4359 $as_echo "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364 as_fn_error 77 "C compiler cannot create executables
4365 See \`config.log' for more details" "$LINENO" 5; }
4366 else
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4368 $as_echo "yes" >&6; }
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4371 $as_echo_n "checking for C compiler default output file name... " >&6; }
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4373 $as_echo "$ac_file" >&6; }
4374 ac_exeext=$ac_cv_exeext
4376 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4377 ac_clean_files=$ac_clean_files_save
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4379 $as_echo_n "checking for suffix of executables... " >&6; }
4380 if { { ac_try="$ac_link"
4381 case "(($ac_try" in
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4384 esac
4385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4386 $as_echo "$ac_try_echo"; } >&5
4387 (eval "$ac_link") 2>&5
4388 ac_status=$?
4389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390 test $ac_status = 0; }; then :
4391 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4392 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4393 # work properly (i.e., refer to `conftest.exe'), while it won't with
4394 # `rm'.
4395 for ac_file in conftest.exe conftest conftest.*; do
4396 test -f "$ac_file" || continue
4397 case $ac_file in
4398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4399 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4400 break;;
4401 * ) break;;
4402 esac
4403 done
4404 else
4405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4407 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4408 See \`config.log' for more details" "$LINENO" 5; }
4410 rm -f conftest conftest$ac_cv_exeext
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4412 $as_echo "$ac_cv_exeext" >&6; }
4414 rm -f conftest.$ac_ext
4415 EXEEXT=$ac_cv_exeext
4416 ac_exeext=$EXEEXT
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4419 #include <stdio.h>
4421 main ()
4423 FILE *f = fopen ("conftest.out", "w");
4424 return ferror (f) || fclose (f) != 0;
4427 return 0;
4429 _ACEOF
4430 ac_clean_files="$ac_clean_files conftest.out"
4431 # Check that the compiler produces executables we can run. If not, either
4432 # the compiler is broken, or we cross compile.
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4434 $as_echo_n "checking whether we are cross compiling... " >&6; }
4435 if test "$cross_compiling" != yes; then
4436 { { ac_try="$ac_link"
4437 case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4440 esac
4441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442 $as_echo "$ac_try_echo"; } >&5
4443 (eval "$ac_link") 2>&5
4444 ac_status=$?
4445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446 test $ac_status = 0; }
4447 if { ac_try='./conftest$ac_cv_exeext'
4448 { { case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451 esac
4452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4453 $as_echo "$ac_try_echo"; } >&5
4454 (eval "$ac_try") 2>&5
4455 ac_status=$?
4456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 test $ac_status = 0; }; }; then
4458 cross_compiling=no
4459 else
4460 if test "$cross_compiling" = maybe; then
4461 cross_compiling=yes
4462 else
4463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4465 as_fn_error $? "cannot run C compiled programs.
4466 If you meant to cross compile, use \`--host'.
4467 See \`config.log' for more details" "$LINENO" 5; }
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4472 $as_echo "$cross_compiling" >&6; }
4474 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4475 ac_clean_files=$ac_clean_files_save
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4478 $as_echo_n "checking for suffix of object files... " >&6; }
4479 if ${ac_cv_objext+:} false; then :
4480 $as_echo_n "(cached) " >&6
4481 else
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h. */
4486 main ()
4490 return 0;
4492 _ACEOF
4493 rm -f conftest.o conftest.obj
4494 if { { ac_try="$ac_compile"
4495 case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498 esac
4499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_compile") 2>&5
4502 ac_status=$?
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }; then :
4505 for ac_file in conftest.o conftest.obj conftest.*; do
4506 test -f "$ac_file" || continue;
4507 case $ac_file in
4508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4509 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4510 break;;
4511 esac
4512 done
4513 else
4514 $as_echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4519 as_fn_error $? "cannot compute suffix of object files: cannot compile
4520 See \`config.log' for more details" "$LINENO" 5; }
4522 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4525 $as_echo "$ac_cv_objext" >&6; }
4526 OBJEXT=$ac_cv_objext
4527 ac_objext=$OBJEXT
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4529 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4530 if ${ac_cv_c_compiler_gnu+:} false; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4537 main ()
4539 #ifndef __GNUC__
4540 choke me
4541 #endif
4544 return 0;
4546 _ACEOF
4547 if ac_fn_c_try_compile "$LINENO"; then :
4548 ac_compiler_gnu=yes
4549 else
4550 ac_compiler_gnu=no
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4557 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4558 if test $ac_compiler_gnu = yes; then
4559 GCC=yes
4560 else
4561 GCC=
4563 ac_test_CFLAGS=${CFLAGS+set}
4564 ac_save_CFLAGS=$CFLAGS
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4566 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4567 if ${ac_cv_prog_cc_g+:} false; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 ac_save_c_werror_flag=$ac_c_werror_flag
4571 ac_c_werror_flag=yes
4572 ac_cv_prog_cc_g=no
4573 CFLAGS="-g"
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4578 main ()
4582 return 0;
4584 _ACEOF
4585 if ac_fn_c_try_compile "$LINENO"; then :
4586 ac_cv_prog_cc_g=yes
4587 else
4588 CFLAGS=""
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4593 main ()
4597 return 0;
4599 _ACEOF
4600 if ac_fn_c_try_compile "$LINENO"; then :
4602 else
4603 ac_c_werror_flag=$ac_save_c_werror_flag
4604 CFLAGS="-g"
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4609 main ()
4613 return 0;
4615 _ACEOF
4616 if ac_fn_c_try_compile "$LINENO"; then :
4617 ac_cv_prog_cc_g=yes
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 ac_c_werror_flag=$ac_save_c_werror_flag
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4627 $as_echo "$ac_cv_prog_cc_g" >&6; }
4628 if test "$ac_test_CFLAGS" = set; then
4629 CFLAGS=$ac_save_CFLAGS
4630 elif test $ac_cv_prog_cc_g = yes; then
4631 if test "$GCC" = yes; then
4632 CFLAGS="-g -O2"
4633 else
4634 CFLAGS="-g"
4636 else
4637 if test "$GCC" = yes; then
4638 CFLAGS="-O2"
4639 else
4640 CFLAGS=
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4644 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4645 if ${ac_cv_prog_cc_c89+:} false; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 ac_cv_prog_cc_c89=no
4649 ac_save_CC=$CC
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4652 #include <stdarg.h>
4653 #include <stdio.h>
4654 struct stat;
4655 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4656 struct buf { int x; };
4657 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4658 static char *e (p, i)
4659 char **p;
4660 int i;
4662 return p[i];
4664 static char *f (char * (*g) (char **, int), char **p, ...)
4666 char *s;
4667 va_list v;
4668 va_start (v,p);
4669 s = g (p, va_arg (v,int));
4670 va_end (v);
4671 return s;
4674 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4675 function prototypes and stuff, but not '\xHH' hex character constants.
4676 These don't provoke an error unfortunately, instead are silently treated
4677 as 'x'. The following induces an error, until -std is added to get
4678 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4679 array size at least. It's necessary to write '\x00'==0 to get something
4680 that's true only with -std. */
4681 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4683 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4684 inside strings and character constants. */
4685 #define FOO(x) 'x'
4686 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4688 int test (int i, double x);
4689 struct s1 {int (*f) (int a);};
4690 struct s2 {int (*f) (double a);};
4691 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4692 int argc;
4693 char **argv;
4695 main ()
4697 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4699 return 0;
4701 _ACEOF
4702 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4703 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4705 CC="$ac_save_CC $ac_arg"
4706 if ac_fn_c_try_compile "$LINENO"; then :
4707 ac_cv_prog_cc_c89=$ac_arg
4709 rm -f core conftest.err conftest.$ac_objext
4710 test "x$ac_cv_prog_cc_c89" != "xno" && break
4711 done
4712 rm -f conftest.$ac_ext
4713 CC=$ac_save_CC
4716 # AC_CACHE_VAL
4717 case "x$ac_cv_prog_cc_c89" in
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4720 $as_echo "none needed" >&6; } ;;
4721 xno)
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4723 $as_echo "unsupported" >&6; } ;;
4725 CC="$CC $ac_cv_prog_cc_c89"
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4727 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4728 esac
4729 if test "x$ac_cv_prog_cc_c89" != xno; then :
4733 ac_ext=c
4734 ac_cpp='$CPP $CPPFLAGS'
4735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4739 ac_ext=c
4740 ac_cpp='$CPP $CPPFLAGS'
4741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4745 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4746 if ${am_cv_prog_cc_c_o+:} false; then :
4747 $as_echo_n "(cached) " >&6
4748 else
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4753 main ()
4757 return 0;
4759 _ACEOF
4760 # Make sure it works both with $CC and with simple cc.
4761 # Following AC_PROG_CC_C_O, we do the test twice because some
4762 # compilers refuse to overwrite an existing .o file with -o,
4763 # though they will create one.
4764 am_cv_prog_cc_c_o=yes
4765 for am_i in 1 2; do
4766 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4767 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4768 ac_status=$?
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } \
4771 && test -f conftest2.$ac_objext; then
4772 : OK
4773 else
4774 am_cv_prog_cc_c_o=no
4775 break
4777 done
4778 rm -f core conftest*
4779 unset am_i
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4782 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4783 if test "$am_cv_prog_cc_c_o" != yes; then
4784 # Losing compiler, so override with the script.
4785 # FIXME: It is wrong to rewrite CC.
4786 # But if we don't then we get into trouble of one sort or another.
4787 # A longer-term fix would be to have automake use am__CC in this case,
4788 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4789 CC="$am_aux_dir/compile $CC"
4791 ac_ext=c
4792 ac_cpp='$CPP $CPPFLAGS'
4793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4798 ac_ext=cpp
4799 ac_cpp='$CXXCPP $CPPFLAGS'
4800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4803 if test -z "$CXX"; then
4804 if test -n "$CCC"; then
4805 CXX=$CCC
4806 else
4807 if test -n "$ac_tool_prefix"; then
4808 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4810 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4811 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if ${ac_cv_prog_CXX+:} false; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 if test -n "$CXX"; then
4818 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4827 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4831 done
4832 done
4833 IFS=$as_save_IFS
4837 CXX=$ac_cv_prog_CXX
4838 if test -n "$CXX"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4840 $as_echo "$CXX" >&6; }
4841 else
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4847 test -n "$CXX" && break
4848 done
4850 if test -z "$CXX"; then
4851 ac_ct_CXX=$CXX
4852 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4854 # Extract the first word of "$ac_prog", so it can be a program name with args.
4855 set dummy $ac_prog; ac_word=$2
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 $as_echo_n "checking for $ac_word... " >&6; }
4858 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 if test -n "$ac_ct_CXX"; then
4862 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4871 ac_cv_prog_ac_ct_CXX="$ac_prog"
4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4875 done
4876 done
4877 IFS=$as_save_IFS
4881 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4882 if test -n "$ac_ct_CXX"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4884 $as_echo "$ac_ct_CXX" >&6; }
4885 else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4891 test -n "$ac_ct_CXX" && break
4892 done
4894 if test "x$ac_ct_CXX" = x; then
4895 CXX="g++"
4896 else
4897 case $cross_compiling:$ac_tool_warned in
4898 yes:)
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4901 ac_tool_warned=yes ;;
4902 esac
4903 CXX=$ac_ct_CXX
4909 # Provide some information about the compiler.
4910 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4911 set X $ac_compile
4912 ac_compiler=$2
4913 for ac_option in --version -v -V -qversion; do
4914 { { ac_try="$ac_compiler $ac_option >&5"
4915 case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918 esac
4919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4920 $as_echo "$ac_try_echo"; } >&5
4921 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4922 ac_status=$?
4923 if test -s conftest.err; then
4924 sed '10a\
4925 ... rest of stderr output deleted ...
4926 10q' conftest.err >conftest.er1
4927 cat conftest.er1 >&5
4929 rm -f conftest.er1 conftest.err
4930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4931 test $ac_status = 0; }
4932 done
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4935 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4936 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4937 $as_echo_n "(cached) " >&6
4938 else
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940 /* end confdefs.h. */
4943 main ()
4945 #ifndef __GNUC__
4946 choke me
4947 #endif
4950 return 0;
4952 _ACEOF
4953 if ac_fn_cxx_try_compile "$LINENO"; then :
4954 ac_compiler_gnu=yes
4955 else
4956 ac_compiler_gnu=no
4958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4963 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4964 if test $ac_compiler_gnu = yes; then
4965 GXX=yes
4966 else
4967 GXX=
4969 ac_test_CXXFLAGS=${CXXFLAGS+set}
4970 ac_save_CXXFLAGS=$CXXFLAGS
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4972 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4973 if ${ac_cv_prog_cxx_g+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4977 ac_cxx_werror_flag=yes
4978 ac_cv_prog_cxx_g=no
4979 CXXFLAGS="-g"
4980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4981 /* end confdefs.h. */
4984 main ()
4988 return 0;
4990 _ACEOF
4991 if ac_fn_cxx_try_compile "$LINENO"; then :
4992 ac_cv_prog_cxx_g=yes
4993 else
4994 CXXFLAGS=""
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4999 main ()
5003 return 0;
5005 _ACEOF
5006 if ac_fn_cxx_try_compile "$LINENO"; then :
5008 else
5009 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5010 CXXFLAGS="-g"
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5015 main ()
5019 return 0;
5021 _ACEOF
5022 if ac_fn_cxx_try_compile "$LINENO"; then :
5023 ac_cv_prog_cxx_g=yes
5025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5033 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5034 if test "$ac_test_CXXFLAGS" = set; then
5035 CXXFLAGS=$ac_save_CXXFLAGS
5036 elif test $ac_cv_prog_cxx_g = yes; then
5037 if test "$GXX" = yes; then
5038 CXXFLAGS="-g -O2"
5039 else
5040 CXXFLAGS="-g"
5042 else
5043 if test "$GXX" = yes; then
5044 CXXFLAGS="-O2"
5045 else
5046 CXXFLAGS=
5049 ac_ext=c
5050 ac_cpp='$CPP $CPPFLAGS'
5051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5055 CXXFLAGS="$save_CXXFLAGS"
5058 # Check whether --enable-largefile was given.
5059 if test "${enable_largefile+set}" = set; then :
5060 enableval=$enable_largefile;
5063 if test "$enable_largefile" != no; then
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5066 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5067 if ${ac_cv_sys_largefile_CC+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 ac_cv_sys_largefile_CC=no
5071 if test "$GCC" != yes; then
5072 ac_save_CC=$CC
5073 while :; do
5074 # IRIX 6.2 and later do not support large files by default,
5075 # so use the C compiler's -n32 option if that helps.
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5078 #include <sys/types.h>
5079 /* Check that off_t can represent 2**63 - 1 correctly.
5080 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5081 since some C++ compilers masquerading as C compilers
5082 incorrectly reject 9223372036854775807. */
5083 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5084 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5085 && LARGE_OFF_T % 2147483647 == 1)
5086 ? 1 : -1];
5088 main ()
5092 return 0;
5094 _ACEOF
5095 if ac_fn_c_try_compile "$LINENO"; then :
5096 break
5098 rm -f core conftest.err conftest.$ac_objext
5099 CC="$CC -n32"
5100 if ac_fn_c_try_compile "$LINENO"; then :
5101 ac_cv_sys_largefile_CC=' -n32'; break
5103 rm -f core conftest.err conftest.$ac_objext
5104 break
5105 done
5106 CC=$ac_save_CC
5107 rm -f conftest.$ac_ext
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5111 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5112 if test "$ac_cv_sys_largefile_CC" != no; then
5113 CC=$CC$ac_cv_sys_largefile_CC
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5117 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5118 if ${ac_cv_sys_file_offset_bits+:} false; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 while :; do
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5124 #include <sys/types.h>
5125 /* Check that off_t can represent 2**63 - 1 correctly.
5126 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5127 since some C++ compilers masquerading as C compilers
5128 incorrectly reject 9223372036854775807. */
5129 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5130 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5131 && LARGE_OFF_T % 2147483647 == 1)
5132 ? 1 : -1];
5134 main ()
5138 return 0;
5140 _ACEOF
5141 if ac_fn_c_try_compile "$LINENO"; then :
5142 ac_cv_sys_file_offset_bits=no; break
5144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147 #define _FILE_OFFSET_BITS 64
5148 #include <sys/types.h>
5149 /* Check that off_t can represent 2**63 - 1 correctly.
5150 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5151 since some C++ compilers masquerading as C compilers
5152 incorrectly reject 9223372036854775807. */
5153 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5154 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5155 && LARGE_OFF_T % 2147483647 == 1)
5156 ? 1 : -1];
5158 main ()
5162 return 0;
5164 _ACEOF
5165 if ac_fn_c_try_compile "$LINENO"; then :
5166 ac_cv_sys_file_offset_bits=64; break
5168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5169 ac_cv_sys_file_offset_bits=unknown
5170 break
5171 done
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5174 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5175 case $ac_cv_sys_file_offset_bits in #(
5176 no | unknown) ;;
5178 cat >>confdefs.h <<_ACEOF
5179 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5180 _ACEOF
5182 esac
5183 rm -rf conftest*
5184 if test $ac_cv_sys_file_offset_bits = unknown; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5186 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5187 if ${ac_cv_sys_large_files+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 while :; do
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5193 #include <sys/types.h>
5194 /* Check that off_t can represent 2**63 - 1 correctly.
5195 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5196 since some C++ compilers masquerading as C compilers
5197 incorrectly reject 9223372036854775807. */
5198 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5199 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5200 && LARGE_OFF_T % 2147483647 == 1)
5201 ? 1 : -1];
5203 main ()
5207 return 0;
5209 _ACEOF
5210 if ac_fn_c_try_compile "$LINENO"; then :
5211 ac_cv_sys_large_files=no; break
5213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5216 #define _LARGE_FILES 1
5217 #include <sys/types.h>
5218 /* Check that off_t can represent 2**63 - 1 correctly.
5219 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5220 since some C++ compilers masquerading as C compilers
5221 incorrectly reject 9223372036854775807. */
5222 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5223 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5224 && LARGE_OFF_T % 2147483647 == 1)
5225 ? 1 : -1];
5227 main ()
5231 return 0;
5233 _ACEOF
5234 if ac_fn_c_try_compile "$LINENO"; then :
5235 ac_cv_sys_large_files=1; break
5237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238 ac_cv_sys_large_files=unknown
5239 break
5240 done
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5243 $as_echo "$ac_cv_sys_large_files" >&6; }
5244 case $ac_cv_sys_large_files in #(
5245 no | unknown) ;;
5247 cat >>confdefs.h <<_ACEOF
5248 #define _LARGE_FILES $ac_cv_sys_large_files
5249 _ACEOF
5251 esac
5252 rm -rf conftest*
5259 # Runs configure.host, and assorted other critical bits. Sets
5260 # up critical shell variables.
5261 ac_ext=c
5262 ac_cpp='$CPP $CPPFLAGS'
5263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5267 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5268 # On Suns, sometimes $CPP names a directory.
5269 if test -n "$CPP" && test -d "$CPP"; then
5270 CPP=
5272 if test -z "$CPP"; then
5273 if ${ac_cv_prog_CPP+:} false; then :
5274 $as_echo_n "(cached) " >&6
5275 else
5276 # Double quotes because CPP needs to be expanded
5277 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5279 ac_preproc_ok=false
5280 for ac_c_preproc_warn_flag in '' yes
5282 # Use a header file that comes with gcc, so configuring glibc
5283 # with a fresh cross-compiler works.
5284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5285 # <limits.h> exists even on freestanding compilers.
5286 # On the NeXT, cc -E runs the code through the compiler's parser,
5287 # not just through cpp. "Syntax error" is here to catch this case.
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5290 #ifdef __STDC__
5291 # include <limits.h>
5292 #else
5293 # include <assert.h>
5294 #endif
5295 Syntax error
5296 _ACEOF
5297 if ac_fn_c_try_cpp "$LINENO"; then :
5299 else
5300 # Broken: fails on valid input.
5301 continue
5303 rm -f conftest.err conftest.i conftest.$ac_ext
5305 # OK, works on sane cases. Now check whether nonexistent headers
5306 # can be detected and how.
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309 #include <ac_nonexistent.h>
5310 _ACEOF
5311 if ac_fn_c_try_cpp "$LINENO"; then :
5312 # Broken: success on invalid input.
5313 continue
5314 else
5315 # Passes both tests.
5316 ac_preproc_ok=:
5317 break
5319 rm -f conftest.err conftest.i conftest.$ac_ext
5321 done
5322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5323 rm -f conftest.i conftest.err conftest.$ac_ext
5324 if $ac_preproc_ok; then :
5325 break
5328 done
5329 ac_cv_prog_CPP=$CPP
5332 CPP=$ac_cv_prog_CPP
5333 else
5334 ac_cv_prog_CPP=$CPP
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5337 $as_echo "$CPP" >&6; }
5338 ac_preproc_ok=false
5339 for ac_c_preproc_warn_flag in '' yes
5341 # Use a header file that comes with gcc, so configuring glibc
5342 # with a fresh cross-compiler works.
5343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5344 # <limits.h> exists even on freestanding compilers.
5345 # On the NeXT, cc -E runs the code through the compiler's parser,
5346 # not just through cpp. "Syntax error" is here to catch this case.
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5349 #ifdef __STDC__
5350 # include <limits.h>
5351 #else
5352 # include <assert.h>
5353 #endif
5354 Syntax error
5355 _ACEOF
5356 if ac_fn_c_try_cpp "$LINENO"; then :
5358 else
5359 # Broken: fails on valid input.
5360 continue
5362 rm -f conftest.err conftest.i conftest.$ac_ext
5364 # OK, works on sane cases. Now check whether nonexistent headers
5365 # can be detected and how.
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368 #include <ac_nonexistent.h>
5369 _ACEOF
5370 if ac_fn_c_try_cpp "$LINENO"; then :
5371 # Broken: success on invalid input.
5372 continue
5373 else
5374 # Passes both tests.
5375 ac_preproc_ok=:
5376 break
5378 rm -f conftest.err conftest.i conftest.$ac_ext
5380 done
5381 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5382 rm -f conftest.i conftest.err conftest.$ac_ext
5383 if $ac_preproc_ok; then :
5385 else
5386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5388 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5389 See \`config.log' for more details" "$LINENO" 5; }
5392 ac_ext=c
5393 ac_cpp='$CPP $CPPFLAGS'
5394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5400 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5401 if ${ac_cv_path_GREP+:} false; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404 if test -z "$GREP"; then
5405 ac_path_GREP_found=false
5406 # Loop through the user's path and test for each of PROGNAME-LIST
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_prog in grep ggrep; do
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5415 as_fn_executable_p "$ac_path_GREP" || continue
5416 # Check for GNU ac_path_GREP and select it if it is found.
5417 # Check for GNU $ac_path_GREP
5418 case `"$ac_path_GREP" --version 2>&1` in
5419 *GNU*)
5420 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5422 ac_count=0
5423 $as_echo_n 0123456789 >"conftest.in"
5424 while :
5426 cat "conftest.in" "conftest.in" >"conftest.tmp"
5427 mv "conftest.tmp" "conftest.in"
5428 cp "conftest.in" "conftest.nl"
5429 $as_echo 'GREP' >> "conftest.nl"
5430 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5432 as_fn_arith $ac_count + 1 && ac_count=$as_val
5433 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5434 # Best one so far, save it but keep looking for a better one
5435 ac_cv_path_GREP="$ac_path_GREP"
5436 ac_path_GREP_max=$ac_count
5438 # 10*(2^10) chars as input seems more than enough
5439 test $ac_count -gt 10 && break
5440 done
5441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5442 esac
5444 $ac_path_GREP_found && break 3
5445 done
5446 done
5447 done
5448 IFS=$as_save_IFS
5449 if test -z "$ac_cv_path_GREP"; then
5450 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5452 else
5453 ac_cv_path_GREP=$GREP
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5458 $as_echo "$ac_cv_path_GREP" >&6; }
5459 GREP="$ac_cv_path_GREP"
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5463 $as_echo_n "checking for egrep... " >&6; }
5464 if ${ac_cv_path_EGREP+:} false; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5468 then ac_cv_path_EGREP="$GREP -E"
5469 else
5470 if test -z "$EGREP"; then
5471 ac_path_EGREP_found=false
5472 # Loop through the user's path and test for each of PROGNAME-LIST
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5476 IFS=$as_save_IFS
5477 test -z "$as_dir" && as_dir=.
5478 for ac_prog in egrep; do
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5481 as_fn_executable_p "$ac_path_EGREP" || continue
5482 # Check for GNU ac_path_EGREP and select it if it is found.
5483 # Check for GNU $ac_path_EGREP
5484 case `"$ac_path_EGREP" --version 2>&1` in
5485 *GNU*)
5486 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5488 ac_count=0
5489 $as_echo_n 0123456789 >"conftest.in"
5490 while :
5492 cat "conftest.in" "conftest.in" >"conftest.tmp"
5493 mv "conftest.tmp" "conftest.in"
5494 cp "conftest.in" "conftest.nl"
5495 $as_echo 'EGREP' >> "conftest.nl"
5496 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5498 as_fn_arith $ac_count + 1 && ac_count=$as_val
5499 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5500 # Best one so far, save it but keep looking for a better one
5501 ac_cv_path_EGREP="$ac_path_EGREP"
5502 ac_path_EGREP_max=$ac_count
5504 # 10*(2^10) chars as input seems more than enough
5505 test $ac_count -gt 10 && break
5506 done
5507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5508 esac
5510 $ac_path_EGREP_found && break 3
5511 done
5512 done
5513 done
5514 IFS=$as_save_IFS
5515 if test -z "$ac_cv_path_EGREP"; then
5516 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5518 else
5519 ac_cv_path_EGREP=$EGREP
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5525 $as_echo "$ac_cv_path_EGREP" >&6; }
5526 EGREP="$ac_cv_path_EGREP"
5530 # Keep these sync'd with the list in Makefile.am. The first provides an
5531 # expandable list at autoconf time; the second provides an expandable list
5532 # (i.e., shell variable) at configure time.
5534 SUBDIRS='include libsupc++ src src/c++98 src/c++11 src/c++17 src/c++20 src/c++23 src/c++26 src/filesystem src/libbacktrace src/experimental doc po testsuite python'
5536 # These need to be absolute paths, yet at the same time need to
5537 # canonicalize only relative paths, because then amd will not unmount
5538 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
5539 glibcxx_builddir=`${PWDCMD-pwd}`
5540 case $srcdir in
5541 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
5542 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
5543 esac
5544 toplevel_builddir=${glibcxx_builddir}/..
5545 toplevel_srcdir=${glibcxx_srcdir}/..
5551 # We use these options to decide which functions to include. They are
5552 # set from the top level.
5554 # Check whether --with-target-subdir was given.
5555 if test "${with_target_subdir+set}" = set; then :
5556 withval=$with_target_subdir;
5561 # Check whether --with-cross-host was given.
5562 if test "${with_cross_host+set}" = set; then :
5563 withval=$with_cross_host;
5568 # Check whether --with-newlib was given.
5569 if test "${with_newlib+set}" = set; then :
5570 withval=$with_newlib;
5574 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
5575 # available). Uncomment the next line to force a particular method.
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5577 $as_echo_n "checking whether ln -s works... " >&6; }
5578 LN_S=$as_ln_s
5579 if test "$LN_S" = "ln -s"; then
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5581 $as_echo "yes" >&6; }
5582 else
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5584 $as_echo "no, using $LN_S" >&6; }
5587 #LN_S='cp -p'
5589 if test -n "$ac_tool_prefix"; then
5590 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5591 set dummy ${ac_tool_prefix}as; ac_word=$2
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593 $as_echo_n "checking for $ac_word... " >&6; }
5594 if ${ac_cv_prog_AS+:} false; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 if test -n "$AS"; then
5598 ac_cv_prog_AS="$AS" # Let the user override the test.
5599 else
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607 ac_cv_prog_AS="${ac_tool_prefix}as"
5608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 break 2
5611 done
5612 done
5613 IFS=$as_save_IFS
5617 AS=$ac_cv_prog_AS
5618 if test -n "$AS"; then
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5620 $as_echo "$AS" >&6; }
5621 else
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 $as_echo "no" >&6; }
5628 if test -z "$ac_cv_prog_AS"; then
5629 ac_ct_AS=$AS
5630 # Extract the first word of "as", so it can be a program name with args.
5631 set dummy as; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 $as_echo_n "checking for $ac_word... " >&6; }
5634 if ${ac_cv_prog_ac_ct_AS+:} false; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 if test -n "$ac_ct_AS"; then
5638 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5639 else
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647 ac_cv_prog_ac_ct_AS="as"
5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 break 2
5651 done
5652 done
5653 IFS=$as_save_IFS
5657 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5658 if test -n "$ac_ct_AS"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5660 $as_echo "$ac_ct_AS" >&6; }
5661 else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5666 if test "x$ac_ct_AS" = x; then
5667 AS=""
5668 else
5669 case $cross_compiling:$ac_tool_warned in
5670 yes:)
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5673 ac_tool_warned=yes ;;
5674 esac
5675 AS=$ac_ct_AS
5677 else
5678 AS="$ac_cv_prog_AS"
5681 if test -n "$ac_tool_prefix"; then
5682 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5683 set dummy ${ac_tool_prefix}ar; ac_word=$2
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5685 $as_echo_n "checking for $ac_word... " >&6; }
5686 if ${ac_cv_prog_AR+:} false; then :
5687 $as_echo_n "(cached) " >&6
5688 else
5689 if test -n "$AR"; then
5690 ac_cv_prog_AR="$AR" # Let the user override the test.
5691 else
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH
5695 IFS=$as_save_IFS
5696 test -z "$as_dir" && as_dir=.
5697 for ac_exec_ext in '' $ac_executable_extensions; do
5698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699 ac_cv_prog_AR="${ac_tool_prefix}ar"
5700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5701 break 2
5703 done
5704 done
5705 IFS=$as_save_IFS
5709 AR=$ac_cv_prog_AR
5710 if test -n "$AR"; then
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5712 $as_echo "$AR" >&6; }
5713 else
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715 $as_echo "no" >&6; }
5720 if test -z "$ac_cv_prog_AR"; then
5721 ac_ct_AR=$AR
5722 # Extract the first word of "ar", so it can be a program name with args.
5723 set dummy ar; ac_word=$2
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725 $as_echo_n "checking for $ac_word... " >&6; }
5726 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 if test -n "$ac_ct_AR"; then
5730 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5731 else
5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 for as_dir in $PATH
5735 IFS=$as_save_IFS
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5739 ac_cv_prog_ac_ct_AR="ar"
5740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 break 2
5743 done
5744 done
5745 IFS=$as_save_IFS
5749 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5750 if test -n "$ac_ct_AR"; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5752 $as_echo "$ac_ct_AR" >&6; }
5753 else
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755 $as_echo "no" >&6; }
5758 if test "x$ac_ct_AR" = x; then
5759 AR=""
5760 else
5761 case $cross_compiling:$ac_tool_warned in
5762 yes:)
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5765 ac_tool_warned=yes ;;
5766 esac
5767 AR=$ac_ct_AR
5769 else
5770 AR="$ac_cv_prog_AR"
5773 if test -n "$ac_tool_prefix"; then
5774 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5775 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777 $as_echo_n "checking for $ac_word... " >&6; }
5778 if ${ac_cv_prog_RANLIB+:} false; then :
5779 $as_echo_n "(cached) " >&6
5780 else
5781 if test -n "$RANLIB"; then
5782 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5783 else
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5787 IFS=$as_save_IFS
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 break 2
5795 done
5796 done
5797 IFS=$as_save_IFS
5801 RANLIB=$ac_cv_prog_RANLIB
5802 if test -n "$RANLIB"; then
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5804 $as_echo "$RANLIB" >&6; }
5805 else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 $as_echo "no" >&6; }
5812 if test -z "$ac_cv_prog_RANLIB"; then
5813 ac_ct_RANLIB=$RANLIB
5814 # Extract the first word of "ranlib", so it can be a program name with args.
5815 set dummy ranlib; ac_word=$2
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817 $as_echo_n "checking for $ac_word... " >&6; }
5818 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5819 $as_echo_n "(cached) " >&6
5820 else
5821 if test -n "$ac_ct_RANLIB"; then
5822 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5831 ac_cv_prog_ac_ct_RANLIB="ranlib"
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5835 done
5836 done
5837 IFS=$as_save_IFS
5841 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5842 if test -n "$ac_ct_RANLIB"; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5844 $as_echo "$ac_ct_RANLIB" >&6; }
5845 else
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847 $as_echo "no" >&6; }
5850 if test "x$ac_ct_RANLIB" = x; then
5851 RANLIB="ranlib-not-found-in-path-error"
5852 else
5853 case $cross_compiling:$ac_tool_warned in
5854 yes:)
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5857 ac_tool_warned=yes ;;
5858 esac
5859 RANLIB=$ac_ct_RANLIB
5861 else
5862 RANLIB="$ac_cv_prog_RANLIB"
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5868 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5869 # Check whether --enable-maintainer-mode was given.
5870 if test "${enable_maintainer_mode+set}" = set; then :
5871 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5872 else
5873 USE_MAINTAINER_MODE=no
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5877 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5878 if test $USE_MAINTAINER_MODE = yes; then
5879 MAINTAINER_MODE_TRUE=
5880 MAINTAINER_MODE_FALSE='#'
5881 else
5882 MAINTAINER_MODE_TRUE='#'
5883 MAINTAINER_MODE_FALSE=
5886 MAINT=$MAINTAINER_MODE_TRUE
5890 # Set up safe default values for all subsequent AM_CONDITIONAL tests
5891 # which are themselves conditionally expanded.
5892 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
5893 ## other macros from doing the same. This should be automated.) -pme
5895 # Check for C library flavor since GNU/Linux platforms use different
5896 # configuration directories depending on the C library in use.
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5900 #include <stdio.h>
5901 #if __UCLIBC__
5902 _using_uclibc
5903 #endif
5905 _ACEOF
5906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5907 $EGREP "_using_uclibc" >/dev/null 2>&1; then :
5908 uclibc=yes
5909 else
5910 uclibc=no
5912 rm -f conftest*
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5918 #include <stdio.h>
5919 #if __BIONIC__
5920 _using_bionic
5921 #endif
5923 _ACEOF
5924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5925 $EGREP "_using_bionic" >/dev/null 2>&1; then :
5926 bionic=yes
5927 else
5928 bionic=no
5930 rm -f conftest*
5933 # Find platform-specific directories containing configuration info.
5934 # Also possibly modify flags used elsewhere, as needed by the platform.
5936 . $glibcxx_srcdir/configure.host
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: CPU config directory is $cpu_include_dir" >&5
5938 $as_echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: OS config directory is $os_include_dir" >&5
5940 $as_echo "$as_me: OS config directory is $os_include_dir" >&6;}
5944 # Libtool setup.
5945 if test "x${with_newlib}" != "xyes" &&
5946 test "x${with_avrlibc}" != "xyes" &&
5947 test "x$with_headers" != "xno"; then
5948 enable_dlopen=yes
5953 case `pwd` in
5954 *\ * | *\ *)
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5956 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5957 esac
5961 macro_version='2.2.7a'
5962 macro_revision='1.3134'
5976 ltmain="$ac_aux_dir/ltmain.sh"
5978 # Backslashify metacharacters that are still active within
5979 # double-quoted strings.
5980 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5982 # Same as above, but do not quote variable references.
5983 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5985 # Sed substitution to delay expansion of an escaped shell variable in a
5986 # double_quote_subst'ed string.
5987 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5989 # Sed substitution to delay expansion of an escaped single quote.
5990 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5992 # Sed substitution to avoid accidental globbing in evaled expressions
5993 no_glob_subst='s/\*/\\\*/g'
5995 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5996 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5997 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6000 $as_echo_n "checking how to print strings... " >&6; }
6001 # Test print first, because it will be a builtin if present.
6002 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6003 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6004 ECHO='print -r --'
6005 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6006 ECHO='printf %s\n'
6007 else
6008 # Use this function as a fallback that always works.
6009 func_fallback_echo ()
6011 eval 'cat <<_LTECHO_EOF
6013 _LTECHO_EOF'
6015 ECHO='func_fallback_echo'
6018 # func_echo_all arg...
6019 # Invoke $ECHO with all args, space-separated.
6020 func_echo_all ()
6022 $ECHO ""
6025 case "$ECHO" in
6026 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6027 $as_echo "printf" >&6; } ;;
6028 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6029 $as_echo "print -r" >&6; } ;;
6030 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6031 $as_echo "cat" >&6; } ;;
6032 esac
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6048 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6049 if ${ac_cv_path_SED+:} false; then :
6050 $as_echo_n "(cached) " >&6
6051 else
6052 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6053 for ac_i in 1 2 3 4 5 6 7; do
6054 ac_script="$ac_script$as_nl$ac_script"
6055 done
6056 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6057 { ac_script=; unset ac_script;}
6058 if test -z "$SED"; then
6059 ac_path_SED_found=false
6060 # Loop through the user's path and test for each of PROGNAME-LIST
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_prog in sed gsed; do
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6069 as_fn_executable_p "$ac_path_SED" || continue
6070 # Check for GNU ac_path_SED and select it if it is found.
6071 # Check for GNU $ac_path_SED
6072 case `"$ac_path_SED" --version 2>&1` in
6073 *GNU*)
6074 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6076 ac_count=0
6077 $as_echo_n 0123456789 >"conftest.in"
6078 while :
6080 cat "conftest.in" "conftest.in" >"conftest.tmp"
6081 mv "conftest.tmp" "conftest.in"
6082 cp "conftest.in" "conftest.nl"
6083 $as_echo '' >> "conftest.nl"
6084 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6086 as_fn_arith $ac_count + 1 && ac_count=$as_val
6087 if test $ac_count -gt ${ac_path_SED_max-0}; then
6088 # Best one so far, save it but keep looking for a better one
6089 ac_cv_path_SED="$ac_path_SED"
6090 ac_path_SED_max=$ac_count
6092 # 10*(2^10) chars as input seems more than enough
6093 test $ac_count -gt 10 && break
6094 done
6095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6096 esac
6098 $ac_path_SED_found && break 3
6099 done
6100 done
6101 done
6102 IFS=$as_save_IFS
6103 if test -z "$ac_cv_path_SED"; then
6104 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6106 else
6107 ac_cv_path_SED=$SED
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6112 $as_echo "$ac_cv_path_SED" >&6; }
6113 SED="$ac_cv_path_SED"
6114 rm -f conftest.sed
6116 test -z "$SED" && SED=sed
6117 Xsed="$SED -e 1s/^X//"
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6130 $as_echo_n "checking for fgrep... " >&6; }
6131 if ${ac_cv_path_FGREP+:} false; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6135 then ac_cv_path_FGREP="$GREP -F"
6136 else
6137 if test -z "$FGREP"; then
6138 ac_path_FGREP_found=false
6139 # Loop through the user's path and test for each of PROGNAME-LIST
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_prog in fgrep; do
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6148 as_fn_executable_p "$ac_path_FGREP" || continue
6149 # Check for GNU ac_path_FGREP and select it if it is found.
6150 # Check for GNU $ac_path_FGREP
6151 case `"$ac_path_FGREP" --version 2>&1` in
6152 *GNU*)
6153 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6155 ac_count=0
6156 $as_echo_n 0123456789 >"conftest.in"
6157 while :
6159 cat "conftest.in" "conftest.in" >"conftest.tmp"
6160 mv "conftest.tmp" "conftest.in"
6161 cp "conftest.in" "conftest.nl"
6162 $as_echo 'FGREP' >> "conftest.nl"
6163 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6165 as_fn_arith $ac_count + 1 && ac_count=$as_val
6166 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6167 # Best one so far, save it but keep looking for a better one
6168 ac_cv_path_FGREP="$ac_path_FGREP"
6169 ac_path_FGREP_max=$ac_count
6171 # 10*(2^10) chars as input seems more than enough
6172 test $ac_count -gt 10 && break
6173 done
6174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6175 esac
6177 $ac_path_FGREP_found && break 3
6178 done
6179 done
6180 done
6181 IFS=$as_save_IFS
6182 if test -z "$ac_cv_path_FGREP"; then
6183 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6185 else
6186 ac_cv_path_FGREP=$FGREP
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6192 $as_echo "$ac_cv_path_FGREP" >&6; }
6193 FGREP="$ac_cv_path_FGREP"
6196 test -z "$GREP" && GREP=grep
6216 # Check whether --with-gnu-ld was given.
6217 if test "${with_gnu_ld+set}" = set; then :
6218 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6219 else
6220 with_gnu_ld=no
6223 ac_prog=ld
6224 if test "$GCC" = yes; then
6225 # Check if gcc -print-prog-name=ld gives a path.
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6227 $as_echo_n "checking for ld used by $CC... " >&6; }
6228 case $host in
6229 *-*-mingw*)
6230 # gcc leaves a trailing carriage return which upsets mingw
6231 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6233 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6234 esac
6235 case $ac_prog in
6236 # Accept absolute paths.
6237 [\\/]* | ?:[\\/]*)
6238 re_direlt='/[^/][^/]*/\.\./'
6239 # Canonicalize the pathname of ld
6240 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6241 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6242 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6243 done
6244 test -z "$LD" && LD="$ac_prog"
6247 # If it fails, then pretend we aren't using GCC.
6248 ac_prog=ld
6251 # If it is relative, then search for the first ld in PATH.
6252 with_gnu_ld=unknown
6254 esac
6255 elif test "$with_gnu_ld" = yes; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6257 $as_echo_n "checking for GNU ld... " >&6; }
6258 else
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6260 $as_echo_n "checking for non-GNU ld... " >&6; }
6262 if ${lt_cv_path_LD+:} false; then :
6263 $as_echo_n "(cached) " >&6
6264 else
6265 if test -z "$LD"; then
6266 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6267 for ac_dir in $PATH; do
6268 IFS="$lt_save_ifs"
6269 test -z "$ac_dir" && ac_dir=.
6270 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6271 lt_cv_path_LD="$ac_dir/$ac_prog"
6272 # Check to see if the program is GNU ld. I'd rather use --version,
6273 # but apparently some variants of GNU ld only accept -v.
6274 # Break only if it was the GNU/non-GNU ld that we prefer.
6275 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6276 *GNU* | *'with BFD'*)
6277 test "$with_gnu_ld" != no && break
6280 test "$with_gnu_ld" != yes && break
6282 esac
6284 done
6285 IFS="$lt_save_ifs"
6286 else
6287 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6291 LD="$lt_cv_path_LD"
6292 if test -n "$LD"; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6294 $as_echo "$LD" >&6; }
6295 else
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6299 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6301 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6302 if ${lt_cv_prog_gnu_ld+:} false; then :
6303 $as_echo_n "(cached) " >&6
6304 else
6305 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6306 case `$LD -v 2>&1 </dev/null` in
6307 *GNU* | *'with BFD'*)
6308 lt_cv_prog_gnu_ld=yes
6311 lt_cv_prog_gnu_ld=no
6313 esac
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6316 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6317 with_gnu_ld=$lt_cv_prog_gnu_ld
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6328 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6329 if ${lt_cv_path_NM+:} false; then :
6330 $as_echo_n "(cached) " >&6
6331 else
6332 if test -n "$NM"; then
6333 # Let the user override the nm to test.
6334 lt_nm_to_check="$NM"
6335 else
6336 lt_nm_to_check="${ac_tool_prefix}nm"
6337 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6338 lt_nm_to_check="$lt_nm_to_check nm"
6341 for lt_tmp_nm in "$lt_nm_to_check"; do
6342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6343 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6344 IFS="$lt_save_ifs"
6345 test -z "$ac_dir" && ac_dir=.
6346 # Strip out any user-provided options from the nm to test twice,
6347 # the first time to test to see if nm (rather than its options) has
6348 # an explicit path, the second time to yield a file which can be
6349 # nm'ed itself.
6350 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6351 case "$tmp_nm_path" in
6352 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6353 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6354 esac
6355 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6356 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6357 # Check to see if the nm accepts a BSD-compat flag.
6358 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6359 # nm: unknown option "B" ignored
6360 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6361 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6362 break
6365 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6366 *$tmp_nm*)
6367 lt_cv_path_NM="$tmp_nm -p"
6368 break
6371 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6372 continue # so that we can try to find one that supports BSD flags
6374 esac
6376 esac
6378 done
6379 IFS="$lt_save_ifs"
6380 done
6381 : ${lt_cv_path_NM=no}
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6384 $as_echo "$lt_cv_path_NM" >&6; }
6385 if test "$lt_cv_path_NM" != "no"; then
6386 NM="$lt_cv_path_NM"
6387 else
6388 # Didn't find any BSD compatible name lister, look for dumpbin.
6389 if test -n "$DUMPBIN"; then :
6390 # Let the user override the test.
6391 else
6392 if test -n "$ac_tool_prefix"; then
6393 for ac_prog in dumpbin "link -dump"
6395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398 $as_echo_n "checking for $ac_word... " >&6; }
6399 if ${ac_cv_prog_DUMPBIN+:} false; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402 if test -n "$DUMPBIN"; then
6403 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6404 else
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6412 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 break 2
6416 done
6417 done
6418 IFS=$as_save_IFS
6422 DUMPBIN=$ac_cv_prog_DUMPBIN
6423 if test -n "$DUMPBIN"; then
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6425 $as_echo "$DUMPBIN" >&6; }
6426 else
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428 $as_echo "no" >&6; }
6432 test -n "$DUMPBIN" && break
6433 done
6435 if test -z "$DUMPBIN"; then
6436 ac_ct_DUMPBIN=$DUMPBIN
6437 for ac_prog in dumpbin "link -dump"
6439 # Extract the first word of "$ac_prog", so it can be a program name with args.
6440 set dummy $ac_prog; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if test -n "$ac_ct_DUMPBIN"; then
6447 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6460 done
6461 done
6462 IFS=$as_save_IFS
6466 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6467 if test -n "$ac_ct_DUMPBIN"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6469 $as_echo "$ac_ct_DUMPBIN" >&6; }
6470 else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6476 test -n "$ac_ct_DUMPBIN" && break
6477 done
6479 if test "x$ac_ct_DUMPBIN" = x; then
6480 DUMPBIN=":"
6481 else
6482 case $cross_compiling:$ac_tool_warned in
6483 yes:)
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6486 ac_tool_warned=yes ;;
6487 esac
6488 DUMPBIN=$ac_ct_DUMPBIN
6492 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6493 *COFF*)
6494 DUMPBIN="$DUMPBIN -symbols"
6497 DUMPBIN=:
6499 esac
6502 if test "$DUMPBIN" != ":"; then
6503 NM="$DUMPBIN"
6506 test -z "$NM" && NM=nm
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6514 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6515 if ${lt_cv_nm_interface+:} false; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 lt_cv_nm_interface="BSD nm"
6519 echo "int some_variable = 0;" > conftest.$ac_ext
6520 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6521 (eval "$ac_compile" 2>conftest.err)
6522 cat conftest.err >&5
6523 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6524 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6525 cat conftest.err >&5
6526 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6527 cat conftest.out >&5
6528 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6529 lt_cv_nm_interface="MS dumpbin"
6531 rm -f conftest*
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6534 $as_echo "$lt_cv_nm_interface" >&6; }
6536 # find the maximum length of command line arguments
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6538 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6539 if ${lt_cv_sys_max_cmd_len+:} false; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6543 teststring="ABCD"
6545 case $build_os in
6546 msdosdjgpp*)
6547 # On DJGPP, this test can blow up pretty badly due to problems in libc
6548 # (any single argument exceeding 2000 bytes causes a buffer overrun
6549 # during glob expansion). Even if it were fixed, the result of this
6550 # check would be larger than it should be.
6551 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6554 gnu*)
6555 # Under GNU Hurd, this test is not required because there is
6556 # no limit to the length of command line arguments.
6557 # Libtool will interpret -1 as no limit whatsoever
6558 lt_cv_sys_max_cmd_len=-1;
6561 cygwin* | mingw* | cegcc*)
6562 # On Win9x/ME, this test blows up -- it succeeds, but takes
6563 # about 5 minutes as the teststring grows exponentially.
6564 # Worse, since 9x/ME are not pre-emptively multitasking,
6565 # you end up with a "frozen" computer, even though with patience
6566 # the test eventually succeeds (with a max line length of 256k).
6567 # Instead, let's just punt: use the minimum linelength reported by
6568 # all of the supported platforms: 8192 (on NT/2K/XP).
6569 lt_cv_sys_max_cmd_len=8192;
6572 mint*)
6573 # On MiNT this can take a long time and run out of memory.
6574 lt_cv_sys_max_cmd_len=8192;
6577 amigaos*)
6578 # On AmigaOS with pdksh, this test takes hours, literally.
6579 # So we just punt and use a minimum line length of 8192.
6580 lt_cv_sys_max_cmd_len=8192;
6583 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6584 # This has been around since 386BSD, at least. Likely further.
6585 if test -x /sbin/sysctl; then
6586 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6587 elif test -x /usr/sbin/sysctl; then
6588 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6589 else
6590 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6592 # And add a safety zone
6593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6597 interix*)
6598 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6599 lt_cv_sys_max_cmd_len=196608
6602 osf*)
6603 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6604 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6605 # nice to cause kernel panics so lets avoid the loop below.
6606 # First set a reasonable default.
6607 lt_cv_sys_max_cmd_len=16384
6609 if test -x /sbin/sysconfig; then
6610 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6611 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6612 esac
6615 sco3.2v5*)
6616 lt_cv_sys_max_cmd_len=102400
6618 sysv5* | sco5v6* | sysv4.2uw2*)
6619 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6620 if test -n "$kargmax"; then
6621 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6622 else
6623 lt_cv_sys_max_cmd_len=32768
6627 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6628 if test -n "$lt_cv_sys_max_cmd_len"; then
6629 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6631 else
6632 # Make teststring a little bigger before we do anything with it.
6633 # a 1K string should be a reasonable start.
6634 for i in 1 2 3 4 5 6 7 8 ; do
6635 teststring=$teststring$teststring
6636 done
6637 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6638 # If test is not a shell built-in, we'll probably end up computing a
6639 # maximum length that is only half of the actual maximum length, but
6640 # we can't tell.
6641 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6642 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6643 test $i != 17 # 1/2 MB should be enough
6645 i=`expr $i + 1`
6646 teststring=$teststring$teststring
6647 done
6648 # Only check the string length outside the loop.
6649 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6650 teststring=
6651 # Add a significant safety factor because C++ compilers can tack on
6652 # massive amounts of additional arguments before passing them to the
6653 # linker. It appears as though 1/2 is a usable value.
6654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6657 esac
6661 if test -n $lt_cv_sys_max_cmd_len ; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6663 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6664 else
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6666 $as_echo "none" >&6; }
6668 max_cmd_len=$lt_cv_sys_max_cmd_len
6675 : ${CP="cp -f"}
6676 : ${MV="mv -f"}
6677 : ${RM="rm -f"}
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6680 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6681 # Try some XSI features
6682 xsi_shell=no
6683 ( _lt_dummy="a/b/c"
6684 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6685 = c,a/b,, \
6686 && eval 'test $(( 1 + 1 )) -eq 2 \
6687 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6688 && xsi_shell=yes
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6690 $as_echo "$xsi_shell" >&6; }
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6694 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6695 lt_shell_append=no
6696 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6697 >/dev/null 2>&1 \
6698 && lt_shell_append=yes
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6700 $as_echo "$lt_shell_append" >&6; }
6703 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6704 lt_unset=unset
6705 else
6706 lt_unset=false
6713 # test EBCDIC or ASCII
6714 case `echo X|tr X '\101'` in
6715 A) # ASCII based system
6716 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6717 lt_SP2NL='tr \040 \012'
6718 lt_NL2SP='tr \015\012 \040\040'
6720 *) # EBCDIC based system
6721 lt_SP2NL='tr \100 \n'
6722 lt_NL2SP='tr \r\n \100\100'
6724 esac
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6735 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6736 if ${lt_cv_ld_reload_flag+:} false; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 lt_cv_ld_reload_flag='-r'
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6742 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6743 reload_flag=$lt_cv_ld_reload_flag
6744 case $reload_flag in
6745 "" | " "*) ;;
6746 *) reload_flag=" $reload_flag" ;;
6747 esac
6748 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6749 case $host_os in
6750 darwin*)
6751 if test "$GCC" = yes; then
6752 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6753 else
6754 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6757 esac
6767 if test -n "$ac_tool_prefix"; then
6768 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6769 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6771 $as_echo_n "checking for $ac_word... " >&6; }
6772 if ${ac_cv_prog_OBJDUMP+:} false; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 if test -n "$OBJDUMP"; then
6776 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6777 else
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6785 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 break 2
6789 done
6790 done
6791 IFS=$as_save_IFS
6795 OBJDUMP=$ac_cv_prog_OBJDUMP
6796 if test -n "$OBJDUMP"; then
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6798 $as_echo "$OBJDUMP" >&6; }
6799 else
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6806 if test -z "$ac_cv_prog_OBJDUMP"; then
6807 ac_ct_OBJDUMP=$OBJDUMP
6808 # Extract the first word of "objdump", so it can be a program name with args.
6809 set dummy objdump; ac_word=$2
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6811 $as_echo_n "checking for $ac_word... " >&6; }
6812 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 if test -n "$ac_ct_OBJDUMP"; then
6816 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6817 else
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6819 for as_dir in $PATH
6821 IFS=$as_save_IFS
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6825 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 break 2
6829 done
6830 done
6831 IFS=$as_save_IFS
6835 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6836 if test -n "$ac_ct_OBJDUMP"; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6838 $as_echo "$ac_ct_OBJDUMP" >&6; }
6839 else
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6844 if test "x$ac_ct_OBJDUMP" = x; then
6845 OBJDUMP="false"
6846 else
6847 case $cross_compiling:$ac_tool_warned in
6848 yes:)
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851 ac_tool_warned=yes ;;
6852 esac
6853 OBJDUMP=$ac_ct_OBJDUMP
6855 else
6856 OBJDUMP="$ac_cv_prog_OBJDUMP"
6859 test -z "$OBJDUMP" && OBJDUMP=objdump
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6870 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6871 if ${lt_cv_deplibs_check_method+:} false; then :
6872 $as_echo_n "(cached) " >&6
6873 else
6874 lt_cv_file_magic_cmd='$MAGIC_CMD'
6875 lt_cv_file_magic_test_file=
6876 lt_cv_deplibs_check_method='unknown'
6877 # Need to set the preceding variable on all platforms that support
6878 # interlibrary dependencies.
6879 # 'none' -- dependencies not supported.
6880 # `unknown' -- same as none, but documents that we really don't know.
6881 # 'pass_all' -- all dependencies passed with no checks.
6882 # 'test_compile' -- check by making test program.
6883 # 'file_magic [[regex]]' -- check by looking for files in library path
6884 # which responds to the $file_magic_cmd with a given extended regex.
6885 # If you have `file' or equivalent on your system and you're not sure
6886 # whether `pass_all' will *always* work, you probably want this one.
6888 case $host_os in
6889 aix[4-9]*)
6890 lt_cv_deplibs_check_method=pass_all
6893 beos*)
6894 lt_cv_deplibs_check_method=pass_all
6897 bsdi[45]*)
6898 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6899 lt_cv_file_magic_cmd='/usr/bin/file -L'
6900 lt_cv_file_magic_test_file=/shlib/libc.so
6903 cygwin*)
6904 # func_win32_libid is a shell function defined in ltmain.sh
6905 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6906 lt_cv_file_magic_cmd='func_win32_libid'
6909 mingw* | pw32*)
6910 # Base MSYS/MinGW do not provide the 'file' command needed by
6911 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6912 # unless we find 'file', for example because we are cross-compiling.
6913 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6914 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6915 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6916 lt_cv_file_magic_cmd='func_win32_libid'
6917 else
6918 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6919 lt_cv_file_magic_cmd='$OBJDUMP -f'
6923 cegcc*)
6924 # use the weaker test based on 'objdump'. See mingw*.
6925 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6926 lt_cv_file_magic_cmd='$OBJDUMP -f'
6929 darwin* | rhapsody*)
6930 lt_cv_deplibs_check_method=pass_all
6933 freebsd* | dragonfly*)
6934 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6935 case $host_cpu in
6936 i*86 )
6937 # Not sure whether the presence of OpenBSD here was a mistake.
6938 # Let's accept both of them until this is cleared up.
6939 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6940 lt_cv_file_magic_cmd=/usr/bin/file
6941 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6943 esac
6944 else
6945 lt_cv_deplibs_check_method=pass_all
6949 gnu*)
6950 lt_cv_deplibs_check_method=pass_all
6953 haiku*)
6954 lt_cv_deplibs_check_method=pass_all
6957 hpux10.20* | hpux11*)
6958 lt_cv_file_magic_cmd=/usr/bin/file
6959 case $host_cpu in
6960 ia64*)
6961 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6962 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6964 hppa*64*)
6965 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6966 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6969 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6970 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6972 esac
6975 interix[3-9]*)
6976 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6980 irix5* | irix6* | nonstopux*)
6981 case $LD in
6982 *-32|*"-32 ") libmagic=32-bit;;
6983 *-n32|*"-n32 ") libmagic=N32;;
6984 *-64|*"-64 ") libmagic=64-bit;;
6985 *) libmagic=never-match;;
6986 esac
6987 lt_cv_deplibs_check_method=pass_all
6990 # This must be Linux ELF.
6991 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6992 lt_cv_deplibs_check_method=pass_all
6995 netbsd*)
6996 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6997 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6998 else
6999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7003 newos6*)
7004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7005 lt_cv_file_magic_cmd=/usr/bin/file
7006 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7009 *nto* | *qnx*)
7010 lt_cv_deplibs_check_method=pass_all
7013 openbsd*)
7014 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7015 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7016 else
7017 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7021 osf3* | osf4* | osf5*)
7022 lt_cv_deplibs_check_method=pass_all
7025 rdos*)
7026 lt_cv_deplibs_check_method=pass_all
7029 solaris*)
7030 lt_cv_deplibs_check_method=pass_all
7033 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7034 lt_cv_deplibs_check_method=pass_all
7037 sysv4 | sysv4.3*)
7038 case $host_vendor in
7039 motorola)
7040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
7041 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7043 ncr)
7044 lt_cv_deplibs_check_method=pass_all
7046 sequent)
7047 lt_cv_file_magic_cmd='/bin/file'
7048 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7050 sni)
7051 lt_cv_file_magic_cmd='/bin/file'
7052 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7053 lt_cv_file_magic_test_file=/lib/libc.so
7055 siemens)
7056 lt_cv_deplibs_check_method=pass_all
7059 lt_cv_deplibs_check_method=pass_all
7061 esac
7064 tpf*)
7065 lt_cv_deplibs_check_method=pass_all
7067 vxworks*)
7068 # Assume VxWorks cross toolchains are built on Linux, possibly
7069 # as canadian for Windows hosts.
7070 lt_cv_deplibs_check_method=pass_all
7072 esac
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7076 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7077 file_magic_cmd=$lt_cv_file_magic_cmd
7078 deplibs_check_method=$lt_cv_deplibs_check_method
7079 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7092 plugin_option=
7093 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7094 for plugin in $plugin_names; do
7095 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7096 if test x$plugin_so = x$plugin; then
7097 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7099 if test x$plugin_so != x$plugin; then
7100 plugin_option="--plugin $plugin_so"
7101 break
7103 done
7105 if test -n "$ac_tool_prefix"; then
7106 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7107 set dummy ${ac_tool_prefix}ar; ac_word=$2
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7109 $as_echo_n "checking for $ac_word... " >&6; }
7110 if ${ac_cv_prog_AR+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 if test -n "$AR"; then
7114 ac_cv_prog_AR="$AR" # Let the user override the test.
7115 else
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123 ac_cv_prog_AR="${ac_tool_prefix}ar"
7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7127 done
7128 done
7129 IFS=$as_save_IFS
7133 AR=$ac_cv_prog_AR
7134 if test -n "$AR"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7136 $as_echo "$AR" >&6; }
7137 else
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139 $as_echo "no" >&6; }
7144 if test -z "$ac_cv_prog_AR"; then
7145 ac_ct_AR=$AR
7146 # Extract the first word of "ar", so it can be a program name with args.
7147 set dummy ar; ac_word=$2
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149 $as_echo_n "checking for $ac_word... " >&6; }
7150 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7151 $as_echo_n "(cached) " >&6
7152 else
7153 if test -n "$ac_ct_AR"; then
7154 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7155 else
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7159 IFS=$as_save_IFS
7160 test -z "$as_dir" && as_dir=.
7161 for ac_exec_ext in '' $ac_executable_extensions; do
7162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7163 ac_cv_prog_ac_ct_AR="ar"
7164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 break 2
7167 done
7168 done
7169 IFS=$as_save_IFS
7173 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7174 if test -n "$ac_ct_AR"; then
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7176 $as_echo "$ac_ct_AR" >&6; }
7177 else
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7182 if test "x$ac_ct_AR" = x; then
7183 AR="false"
7184 else
7185 case $cross_compiling:$ac_tool_warned in
7186 yes:)
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7189 ac_tool_warned=yes ;;
7190 esac
7191 AR=$ac_ct_AR
7193 else
7194 AR="$ac_cv_prog_AR"
7197 test -z "$AR" && AR=ar
7198 if test -n "$plugin_option"; then
7199 if $AR --help 2>&1 | grep -q "\--plugin"; then
7200 touch conftest.c
7201 $AR $plugin_option rc conftest.a conftest.c
7202 if test "$?" != 0; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7204 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7205 else
7206 AR="$AR $plugin_option"
7208 rm -f conftest.*
7211 test -z "$AR_FLAGS" && AR_FLAGS=cru
7223 if test -n "$ac_tool_prefix"; then
7224 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7225 set dummy ${ac_tool_prefix}strip; ac_word=$2
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7227 $as_echo_n "checking for $ac_word... " >&6; }
7228 if ${ac_cv_prog_STRIP+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 if test -n "$STRIP"; then
7232 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7233 else
7234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235 for as_dir in $PATH
7237 IFS=$as_save_IFS
7238 test -z "$as_dir" && as_dir=.
7239 for ac_exec_ext in '' $ac_executable_extensions; do
7240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 break 2
7245 done
7246 done
7247 IFS=$as_save_IFS
7251 STRIP=$ac_cv_prog_STRIP
7252 if test -n "$STRIP"; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7254 $as_echo "$STRIP" >&6; }
7255 else
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257 $as_echo "no" >&6; }
7262 if test -z "$ac_cv_prog_STRIP"; then
7263 ac_ct_STRIP=$STRIP
7264 # Extract the first word of "strip", so it can be a program name with args.
7265 set dummy strip; ac_word=$2
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7267 $as_echo_n "checking for $ac_word... " >&6; }
7268 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7271 if test -n "$ac_ct_STRIP"; then
7272 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7273 else
7274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 for as_dir in $PATH
7277 IFS=$as_save_IFS
7278 test -z "$as_dir" && as_dir=.
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7281 ac_cv_prog_ac_ct_STRIP="strip"
7282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 break 2
7285 done
7286 done
7287 IFS=$as_save_IFS
7291 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7292 if test -n "$ac_ct_STRIP"; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7294 $as_echo "$ac_ct_STRIP" >&6; }
7295 else
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7300 if test "x$ac_ct_STRIP" = x; then
7301 STRIP=":"
7302 else
7303 case $cross_compiling:$ac_tool_warned in
7304 yes:)
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7307 ac_tool_warned=yes ;;
7308 esac
7309 STRIP=$ac_ct_STRIP
7311 else
7312 STRIP="$ac_cv_prog_STRIP"
7315 test -z "$STRIP" && STRIP=:
7322 if test -n "$ac_tool_prefix"; then
7323 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7324 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7326 $as_echo_n "checking for $ac_word... " >&6; }
7327 if ${ac_cv_prog_RANLIB+:} false; then :
7328 $as_echo_n "(cached) " >&6
7329 else
7330 if test -n "$RANLIB"; then
7331 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7332 else
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7336 IFS=$as_save_IFS
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7340 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 break 2
7344 done
7345 done
7346 IFS=$as_save_IFS
7350 RANLIB=$ac_cv_prog_RANLIB
7351 if test -n "$RANLIB"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7353 $as_echo "$RANLIB" >&6; }
7354 else
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 $as_echo "no" >&6; }
7361 if test -z "$ac_cv_prog_RANLIB"; then
7362 ac_ct_RANLIB=$RANLIB
7363 # Extract the first word of "ranlib", so it can be a program name with args.
7364 set dummy ranlib; ac_word=$2
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7366 $as_echo_n "checking for $ac_word... " >&6; }
7367 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7368 $as_echo_n "(cached) " >&6
7369 else
7370 if test -n "$ac_ct_RANLIB"; then
7371 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7372 else
7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7374 for as_dir in $PATH
7376 IFS=$as_save_IFS
7377 test -z "$as_dir" && as_dir=.
7378 for ac_exec_ext in '' $ac_executable_extensions; do
7379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7380 ac_cv_prog_ac_ct_RANLIB="ranlib"
7381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 break 2
7384 done
7385 done
7386 IFS=$as_save_IFS
7390 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7391 if test -n "$ac_ct_RANLIB"; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7393 $as_echo "$ac_ct_RANLIB" >&6; }
7394 else
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396 $as_echo "no" >&6; }
7399 if test "x$ac_ct_RANLIB" = x; then
7400 RANLIB=":"
7401 else
7402 case $cross_compiling:$ac_tool_warned in
7403 yes:)
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7406 ac_tool_warned=yes ;;
7407 esac
7408 RANLIB=$ac_ct_RANLIB
7410 else
7411 RANLIB="$ac_cv_prog_RANLIB"
7414 test -z "$RANLIB" && RANLIB=:
7415 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7416 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7417 RANLIB="$RANLIB $plugin_option"
7426 # Determine commands to create old-style static archives.
7427 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7428 old_postinstall_cmds='chmod 644 $oldlib'
7429 old_postuninstall_cmds=
7431 if test -n "$RANLIB"; then
7432 case $host_os in
7433 openbsd*)
7434 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7437 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7439 esac
7440 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7443 case $host_os in
7444 darwin*)
7445 lock_old_archive_extraction=yes ;;
7447 lock_old_archive_extraction=no ;;
7448 esac
7488 # If no C compiler was specified, use CC.
7489 LTCC=${LTCC-"$CC"}
7491 # If no C compiler flags were specified, use CFLAGS.
7492 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7494 # Allow CC to be a program name with arguments.
7495 compiler=$CC
7498 # Check for command to grab the raw symbol name followed by C symbol from nm.
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7500 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7501 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7502 $as_echo_n "(cached) " >&6
7503 else
7505 # These are sane defaults that work on at least a few old systems.
7506 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7508 # Character class describing NM global symbol codes.
7509 symcode='[BCDEGRST]'
7511 # Regexp to match symbols that can be accessed directly from C.
7512 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7514 # Define system-specific variables.
7515 case $host_os in
7516 aix*)
7517 symcode='[BCDT]'
7519 cygwin* | mingw* | pw32* | cegcc*)
7520 symcode='[ABCDGISTW]'
7522 hpux*)
7523 if test "$host_cpu" = ia64; then
7524 symcode='[ABCDEGRST]'
7527 irix* | nonstopux*)
7528 symcode='[BCDEGRST]'
7530 osf*)
7531 symcode='[BCDEGQRST]'
7533 solaris*)
7534 symcode='[BCDRT]'
7536 sco3.2v5*)
7537 symcode='[DT]'
7539 sysv4.2uw2*)
7540 symcode='[DT]'
7542 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7543 symcode='[ABDT]'
7545 sysv4)
7546 symcode='[DFNSTU]'
7548 esac
7550 # If we're using GNU nm, then use its standard symbol codes.
7551 case `$NM -V 2>&1` in
7552 *GNU* | *'with BFD'*)
7553 symcode='[ABCDGIRSTW]' ;;
7554 esac
7556 # Transform an extracted symbol line into a proper C declaration.
7557 # Some systems (esp. on ia64) link data and code symbols differently,
7558 # so use this general approach.
7559 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7561 # Transform an extracted symbol line into symbol name and symbol address
7562 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7563 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7565 # Handle CRLF in mingw tool chain
7566 opt_cr=
7567 case $build_os in
7568 mingw*)
7569 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7571 esac
7573 # Try without a prefix underscore, then with it.
7574 for ac_symprfx in "" "_"; do
7576 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7577 symxfrm="\\1 $ac_symprfx\\2 \\2"
7579 # Write the raw and C identifiers.
7580 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7581 # Fake it for dumpbin and say T for any non-static function
7582 # and D for any global variable.
7583 # Also find C++ and __fastcall symbols from MSVC++,
7584 # which start with @ or ?.
7585 lt_cv_sys_global_symbol_pipe="$AWK '"\
7586 " {last_section=section; section=\$ 3};"\
7587 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7588 " \$ 0!~/External *\|/{next};"\
7589 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7590 " {if(hide[section]) next};"\
7591 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7592 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7593 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7594 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7595 " ' prfx=^$ac_symprfx"
7596 else
7597 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7600 # Check to see that the pipe works correctly.
7601 pipe_works=no
7603 rm -f conftest*
7604 cat > conftest.$ac_ext <<_LT_EOF
7605 #ifdef __cplusplus
7606 extern "C" {
7607 #endif
7608 char nm_test_var;
7609 void nm_test_func(void);
7610 void nm_test_func(void){}
7611 #ifdef __cplusplus
7613 #endif
7614 int main(){nm_test_var='a';nm_test_func();return(0);}
7615 _LT_EOF
7617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7618 (eval $ac_compile) 2>&5
7619 ac_status=$?
7620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7621 test $ac_status = 0; }; then
7622 # Now try to grab the symbols.
7623 nlist=conftest.nm
7624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7625 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7626 ac_status=$?
7627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7628 test $ac_status = 0; } && test -s "$nlist"; then
7629 # Try sorting and uniquifying the output.
7630 if sort "$nlist" | uniq > "$nlist"T; then
7631 mv -f "$nlist"T "$nlist"
7632 else
7633 rm -f "$nlist"T
7636 # Make sure that we snagged all the symbols we need.
7637 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7638 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7639 cat <<_LT_EOF > conftest.$ac_ext
7640 #ifdef __cplusplus
7641 extern "C" {
7642 #endif
7644 _LT_EOF
7645 # Now generate the symbol file.
7646 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7648 cat <<_LT_EOF >> conftest.$ac_ext
7650 /* The mapping between symbol names and symbols. */
7651 const struct {
7652 const char *name;
7653 void *address;
7655 lt__PROGRAM__LTX_preloaded_symbols[] =
7657 { "@PROGRAM@", (void *) 0 },
7658 _LT_EOF
7659 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7660 cat <<\_LT_EOF >> conftest.$ac_ext
7661 {0, (void *) 0}
7664 /* This works around a problem in FreeBSD linker */
7665 #ifdef FREEBSD_WORKAROUND
7666 static const void *lt_preloaded_setup() {
7667 return lt__PROGRAM__LTX_preloaded_symbols;
7669 #endif
7671 #ifdef __cplusplus
7673 #endif
7674 _LT_EOF
7675 # Now try linking the two files.
7676 mv conftest.$ac_objext conftstm.$ac_objext
7677 lt_save_LIBS="$LIBS"
7678 lt_save_CFLAGS="$CFLAGS"
7679 LIBS="conftstm.$ac_objext"
7680 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7682 (eval $ac_link) 2>&5
7683 ac_status=$?
7684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7685 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7686 pipe_works=yes
7688 LIBS="$lt_save_LIBS"
7689 CFLAGS="$lt_save_CFLAGS"
7690 else
7691 echo "cannot find nm_test_func in $nlist" >&5
7693 else
7694 echo "cannot find nm_test_var in $nlist" >&5
7696 else
7697 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7699 else
7700 echo "$progname: failed program was:" >&5
7701 cat conftest.$ac_ext >&5
7703 rm -rf conftest* conftst*
7705 # Do not use the global_symbol_pipe unless it works.
7706 if test "$pipe_works" = yes; then
7707 break
7708 else
7709 lt_cv_sys_global_symbol_pipe=
7711 done
7715 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7716 lt_cv_sys_global_symbol_to_cdecl=
7718 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7720 $as_echo "failed" >&6; }
7721 else
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7723 $as_echo "ok" >&6; }
7747 # Check whether --enable-libtool-lock was given.
7748 if test "${enable_libtool_lock+set}" = set; then :
7749 enableval=$enable_libtool_lock;
7752 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7754 # Some flags need to be propagated to the compiler or linker for good
7755 # libtool support.
7756 case $host in
7757 ia64-*-hpux*)
7758 # Find out which ABI we are using.
7759 echo 'int i;' > conftest.$ac_ext
7760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7761 (eval $ac_compile) 2>&5
7762 ac_status=$?
7763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7764 test $ac_status = 0; }; then
7765 case `/usr/bin/file conftest.$ac_objext` in
7766 *ELF-32*)
7767 HPUX_IA64_MODE="32"
7769 *ELF-64*)
7770 HPUX_IA64_MODE="64"
7772 esac
7774 rm -rf conftest*
7776 *-*-irix6*)
7777 # Find out which ABI we are using.
7778 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7780 (eval $ac_compile) 2>&5
7781 ac_status=$?
7782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7783 test $ac_status = 0; }; then
7784 if test "$lt_cv_prog_gnu_ld" = yes; then
7785 case `/usr/bin/file conftest.$ac_objext` in
7786 *32-bit*)
7787 LD="${LD-ld} -melf32bsmip"
7789 *N32*)
7790 LD="${LD-ld} -melf32bmipn32"
7792 *64-bit*)
7793 LD="${LD-ld} -melf64bmip"
7795 esac
7796 else
7797 case `/usr/bin/file conftest.$ac_objext` in
7798 *32-bit*)
7799 LD="${LD-ld} -32"
7801 *N32*)
7802 LD="${LD-ld} -n32"
7804 *64-bit*)
7805 LD="${LD-ld} -64"
7807 esac
7810 rm -rf conftest*
7813 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7814 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7815 # Find out which ABI we are using.
7816 echo 'int i;' > conftest.$ac_ext
7817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7818 (eval $ac_compile) 2>&5
7819 ac_status=$?
7820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7821 test $ac_status = 0; }; then
7822 case `/usr/bin/file conftest.o` in
7823 *32-bit*)
7824 case $host in
7825 x86_64-*kfreebsd*-gnu)
7826 LD="${LD-ld} -m elf_i386_fbsd"
7828 x86_64-*linux*)
7829 case `/usr/bin/file conftest.o` in
7830 *x86-64*)
7831 LD="${LD-ld} -m elf32_x86_64"
7834 LD="${LD-ld} -m elf_i386"
7836 esac
7838 powerpc64le-*linux*)
7839 LD="${LD-ld} -m elf32lppclinux"
7841 powerpc64-*linux*)
7842 LD="${LD-ld} -m elf32ppclinux"
7844 s390x-*linux*)
7845 LD="${LD-ld} -m elf_s390"
7847 sparc64-*linux*)
7848 LD="${LD-ld} -m elf32_sparc"
7850 esac
7852 *64-bit*)
7853 case $host in
7854 x86_64-*kfreebsd*-gnu)
7855 LD="${LD-ld} -m elf_x86_64_fbsd"
7857 x86_64-*linux*)
7858 LD="${LD-ld} -m elf_x86_64"
7860 powerpcle-*linux*)
7861 LD="${LD-ld} -m elf64lppc"
7863 powerpc-*linux*)
7864 LD="${LD-ld} -m elf64ppc"
7866 s390*-*linux*|s390*-*tpf*)
7867 LD="${LD-ld} -m elf64_s390"
7869 sparc*-*linux*)
7870 LD="${LD-ld} -m elf64_sparc"
7872 esac
7874 esac
7876 rm -rf conftest*
7879 *-*-sco3.2v5*)
7880 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7881 SAVE_CFLAGS="$CFLAGS"
7882 CFLAGS="$CFLAGS -belf"
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7884 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7885 if ${lt_cv_cc_needs_belf+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887 else
7888 ac_ext=c
7889 ac_cpp='$CPP $CPPFLAGS'
7890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7894 if test x$gcc_no_link = xyes; then
7895 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898 /* end confdefs.h. */
7901 main ()
7905 return 0;
7907 _ACEOF
7908 if ac_fn_c_try_link "$LINENO"; then :
7909 lt_cv_cc_needs_belf=yes
7910 else
7911 lt_cv_cc_needs_belf=no
7913 rm -f core conftest.err conftest.$ac_objext \
7914 conftest$ac_exeext conftest.$ac_ext
7915 ac_ext=c
7916 ac_cpp='$CPP $CPPFLAGS'
7917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7923 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7924 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7925 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7926 CFLAGS="$SAVE_CFLAGS"
7929 sparc*-*solaris*)
7930 # Find out which ABI we are using.
7931 echo 'int i;' > conftest.$ac_ext
7932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7933 (eval $ac_compile) 2>&5
7934 ac_status=$?
7935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7936 test $ac_status = 0; }; then
7937 case `/usr/bin/file conftest.o` in
7938 *64-bit*)
7939 case $lt_cv_prog_gnu_ld in
7940 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7942 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7943 LD="${LD-ld} -64"
7946 esac
7948 esac
7950 rm -rf conftest*
7952 esac
7954 need_locks="$enable_libtool_lock"
7957 case $host_os in
7958 rhapsody* | darwin*)
7959 if test -n "$ac_tool_prefix"; then
7960 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7961 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7965 $as_echo_n "(cached) " >&6
7966 else
7967 if test -n "$DSYMUTIL"; then
7968 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7969 else
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7971 for as_dir in $PATH
7973 IFS=$as_save_IFS
7974 test -z "$as_dir" && as_dir=.
7975 for ac_exec_ext in '' $ac_executable_extensions; do
7976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7977 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 break 2
7981 done
7982 done
7983 IFS=$as_save_IFS
7987 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7988 if test -n "$DSYMUTIL"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7990 $as_echo "$DSYMUTIL" >&6; }
7991 else
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7998 if test -z "$ac_cv_prog_DSYMUTIL"; then
7999 ac_ct_DSYMUTIL=$DSYMUTIL
8000 # Extract the first word of "dsymutil", so it can be a program name with args.
8001 set dummy dsymutil; ac_word=$2
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8003 $as_echo_n "checking for $ac_word... " >&6; }
8004 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8005 $as_echo_n "(cached) " >&6
8006 else
8007 if test -n "$ac_ct_DSYMUTIL"; then
8008 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8009 else
8010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011 for as_dir in $PATH
8013 IFS=$as_save_IFS
8014 test -z "$as_dir" && as_dir=.
8015 for ac_exec_ext in '' $ac_executable_extensions; do
8016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8017 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8019 break 2
8021 done
8022 done
8023 IFS=$as_save_IFS
8027 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8028 if test -n "$ac_ct_DSYMUTIL"; then
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8030 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8031 else
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8033 $as_echo "no" >&6; }
8036 if test "x$ac_ct_DSYMUTIL" = x; then
8037 DSYMUTIL=":"
8038 else
8039 case $cross_compiling:$ac_tool_warned in
8040 yes:)
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8043 ac_tool_warned=yes ;;
8044 esac
8045 DSYMUTIL=$ac_ct_DSYMUTIL
8047 else
8048 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8051 if test -n "$ac_tool_prefix"; then
8052 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8053 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055 $as_echo_n "checking for $ac_word... " >&6; }
8056 if ${ac_cv_prog_NMEDIT+:} false; then :
8057 $as_echo_n "(cached) " >&6
8058 else
8059 if test -n "$NMEDIT"; then
8060 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8061 else
8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 for as_dir in $PATH
8065 IFS=$as_save_IFS
8066 test -z "$as_dir" && as_dir=.
8067 for ac_exec_ext in '' $ac_executable_extensions; do
8068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8069 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8071 break 2
8073 done
8074 done
8075 IFS=$as_save_IFS
8079 NMEDIT=$ac_cv_prog_NMEDIT
8080 if test -n "$NMEDIT"; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8082 $as_echo "$NMEDIT" >&6; }
8083 else
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085 $as_echo "no" >&6; }
8090 if test -z "$ac_cv_prog_NMEDIT"; then
8091 ac_ct_NMEDIT=$NMEDIT
8092 # Extract the first word of "nmedit", so it can be a program name with args.
8093 set dummy nmedit; ac_word=$2
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8095 $as_echo_n "checking for $ac_word... " >&6; }
8096 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8097 $as_echo_n "(cached) " >&6
8098 else
8099 if test -n "$ac_ct_NMEDIT"; then
8100 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8101 else
8102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8103 for as_dir in $PATH
8105 IFS=$as_save_IFS
8106 test -z "$as_dir" && as_dir=.
8107 for ac_exec_ext in '' $ac_executable_extensions; do
8108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8109 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8111 break 2
8113 done
8114 done
8115 IFS=$as_save_IFS
8119 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8120 if test -n "$ac_ct_NMEDIT"; then
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8122 $as_echo "$ac_ct_NMEDIT" >&6; }
8123 else
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125 $as_echo "no" >&6; }
8128 if test "x$ac_ct_NMEDIT" = x; then
8129 NMEDIT=":"
8130 else
8131 case $cross_compiling:$ac_tool_warned in
8132 yes:)
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8135 ac_tool_warned=yes ;;
8136 esac
8137 NMEDIT=$ac_ct_NMEDIT
8139 else
8140 NMEDIT="$ac_cv_prog_NMEDIT"
8143 if test -n "$ac_tool_prefix"; then
8144 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8145 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8147 $as_echo_n "checking for $ac_word... " >&6; }
8148 if ${ac_cv_prog_LIPO+:} false; then :
8149 $as_echo_n "(cached) " >&6
8150 else
8151 if test -n "$LIPO"; then
8152 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8153 else
8154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155 for as_dir in $PATH
8157 IFS=$as_save_IFS
8158 test -z "$as_dir" && as_dir=.
8159 for ac_exec_ext in '' $ac_executable_extensions; do
8160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8161 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8163 break 2
8165 done
8166 done
8167 IFS=$as_save_IFS
8171 LIPO=$ac_cv_prog_LIPO
8172 if test -n "$LIPO"; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8174 $as_echo "$LIPO" >&6; }
8175 else
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177 $as_echo "no" >&6; }
8182 if test -z "$ac_cv_prog_LIPO"; then
8183 ac_ct_LIPO=$LIPO
8184 # Extract the first word of "lipo", so it can be a program name with args.
8185 set dummy lipo; ac_word=$2
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8187 $as_echo_n "checking for $ac_word... " >&6; }
8188 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8189 $as_echo_n "(cached) " >&6
8190 else
8191 if test -n "$ac_ct_LIPO"; then
8192 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8193 else
8194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8195 for as_dir in $PATH
8197 IFS=$as_save_IFS
8198 test -z "$as_dir" && as_dir=.
8199 for ac_exec_ext in '' $ac_executable_extensions; do
8200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8201 ac_cv_prog_ac_ct_LIPO="lipo"
8202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8203 break 2
8205 done
8206 done
8207 IFS=$as_save_IFS
8211 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8212 if test -n "$ac_ct_LIPO"; then
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8214 $as_echo "$ac_ct_LIPO" >&6; }
8215 else
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217 $as_echo "no" >&6; }
8220 if test "x$ac_ct_LIPO" = x; then
8221 LIPO=":"
8222 else
8223 case $cross_compiling:$ac_tool_warned in
8224 yes:)
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8227 ac_tool_warned=yes ;;
8228 esac
8229 LIPO=$ac_ct_LIPO
8231 else
8232 LIPO="$ac_cv_prog_LIPO"
8235 if test -n "$ac_tool_prefix"; then
8236 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8237 set dummy ${ac_tool_prefix}otool; ac_word=$2
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8239 $as_echo_n "checking for $ac_word... " >&6; }
8240 if ${ac_cv_prog_OTOOL+:} false; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 if test -n "$OTOOL"; then
8244 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8245 else
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247 for as_dir in $PATH
8249 IFS=$as_save_IFS
8250 test -z "$as_dir" && as_dir=.
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8253 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8255 break 2
8257 done
8258 done
8259 IFS=$as_save_IFS
8263 OTOOL=$ac_cv_prog_OTOOL
8264 if test -n "$OTOOL"; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8266 $as_echo "$OTOOL" >&6; }
8267 else
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8269 $as_echo "no" >&6; }
8274 if test -z "$ac_cv_prog_OTOOL"; then
8275 ac_ct_OTOOL=$OTOOL
8276 # Extract the first word of "otool", so it can be a program name with args.
8277 set dummy otool; ac_word=$2
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8279 $as_echo_n "checking for $ac_word... " >&6; }
8280 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 if test -n "$ac_ct_OTOOL"; then
8284 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8285 else
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287 for as_dir in $PATH
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8293 ac_cv_prog_ac_ct_OTOOL="otool"
8294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 break 2
8297 done
8298 done
8299 IFS=$as_save_IFS
8303 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8304 if test -n "$ac_ct_OTOOL"; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8306 $as_echo "$ac_ct_OTOOL" >&6; }
8307 else
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309 $as_echo "no" >&6; }
8312 if test "x$ac_ct_OTOOL" = x; then
8313 OTOOL=":"
8314 else
8315 case $cross_compiling:$ac_tool_warned in
8316 yes:)
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8319 ac_tool_warned=yes ;;
8320 esac
8321 OTOOL=$ac_ct_OTOOL
8323 else
8324 OTOOL="$ac_cv_prog_OTOOL"
8327 if test -n "$ac_tool_prefix"; then
8328 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8329 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 $as_echo_n "checking for $ac_word... " >&6; }
8332 if ${ac_cv_prog_OTOOL64+:} false; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335 if test -n "$OTOOL64"; then
8336 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8337 else
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 for as_dir in $PATH
8341 IFS=$as_save_IFS
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8345 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 break 2
8349 done
8350 done
8351 IFS=$as_save_IFS
8355 OTOOL64=$ac_cv_prog_OTOOL64
8356 if test -n "$OTOOL64"; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8358 $as_echo "$OTOOL64" >&6; }
8359 else
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361 $as_echo "no" >&6; }
8366 if test -z "$ac_cv_prog_OTOOL64"; then
8367 ac_ct_OTOOL64=$OTOOL64
8368 # Extract the first word of "otool64", so it can be a program name with args.
8369 set dummy otool64; ac_word=$2
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8371 $as_echo_n "checking for $ac_word... " >&6; }
8372 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8373 $as_echo_n "(cached) " >&6
8374 else
8375 if test -n "$ac_ct_OTOOL64"; then
8376 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8377 else
8378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379 for as_dir in $PATH
8381 IFS=$as_save_IFS
8382 test -z "$as_dir" && as_dir=.
8383 for ac_exec_ext in '' $ac_executable_extensions; do
8384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8385 ac_cv_prog_ac_ct_OTOOL64="otool64"
8386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8387 break 2
8389 done
8390 done
8391 IFS=$as_save_IFS
8395 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8396 if test -n "$ac_ct_OTOOL64"; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8398 $as_echo "$ac_ct_OTOOL64" >&6; }
8399 else
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8401 $as_echo "no" >&6; }
8404 if test "x$ac_ct_OTOOL64" = x; then
8405 OTOOL64=":"
8406 else
8407 case $cross_compiling:$ac_tool_warned in
8408 yes:)
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8411 ac_tool_warned=yes ;;
8412 esac
8413 OTOOL64=$ac_ct_OTOOL64
8415 else
8416 OTOOL64="$ac_cv_prog_OTOOL64"
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8446 $as_echo_n "checking for -single_module linker flag... " >&6; }
8447 if ${lt_cv_apple_cc_single_mod+:} false; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 lt_cv_apple_cc_single_mod=no
8451 if test -z "${LT_MULTI_MODULE}"; then
8452 # By default we will add the -single_module flag. You can override
8453 # by either setting the environment variable LT_MULTI_MODULE
8454 # non-empty at configure time, or by adding -multi_module to the
8455 # link flags.
8456 rm -rf libconftest.dylib*
8457 echo "int foo(void){return 1;}" > conftest.c
8458 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8459 -dynamiclib -Wl,-single_module conftest.c" >&5
8460 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8461 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8462 _lt_result=$?
8463 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8464 lt_cv_apple_cc_single_mod=yes
8465 else
8466 cat conftest.err >&5
8468 rm -rf libconftest.dylib*
8469 rm -f conftest.*
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8473 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8475 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8476 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8477 $as_echo_n "(cached) " >&6
8478 else
8479 lt_cv_ld_exported_symbols_list=no
8480 save_LDFLAGS=$LDFLAGS
8481 echo "_main" > conftest.sym
8482 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8483 if test x$gcc_no_link = xyes; then
8484 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8490 main ()
8494 return 0;
8496 _ACEOF
8497 if ac_fn_c_try_link "$LINENO"; then :
8498 lt_cv_ld_exported_symbols_list=yes
8499 else
8500 lt_cv_ld_exported_symbols_list=no
8502 rm -f core conftest.err conftest.$ac_objext \
8503 conftest$ac_exeext conftest.$ac_ext
8504 LDFLAGS="$save_LDFLAGS"
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8508 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8510 $as_echo_n "checking for -force_load linker flag... " >&6; }
8511 if ${lt_cv_ld_force_load+:} false; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 lt_cv_ld_force_load=no
8515 cat > conftest.c << _LT_EOF
8516 int forced_loaded() { return 2;}
8517 _LT_EOF
8518 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8519 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8520 echo "$AR cru libconftest.a conftest.o" >&5
8521 $AR cru libconftest.a conftest.o 2>&5
8522 cat > conftest.c << _LT_EOF
8523 int main() { return 0;}
8524 _LT_EOF
8525 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8526 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8527 _lt_result=$?
8528 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8529 lt_cv_ld_force_load=yes
8530 else
8531 cat conftest.err >&5
8533 rm -f conftest.err libconftest.a conftest conftest.c
8534 rm -rf conftest.dSYM
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8538 $as_echo "$lt_cv_ld_force_load" >&6; }
8539 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8540 # build without first building modern cctools / linker.
8541 case $host_cpu-$host_os in
8542 *-rhapsody* | *-darwin1.[012])
8543 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8544 *-darwin1.*)
8545 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8546 *-darwin*)
8547 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8548 # deployment target is forced to an earlier version.
8549 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8550 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
8552 10.[012][,.]*)
8553 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8557 esac
8559 esac
8560 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8561 _lt_dar_single_mod='$single_module'
8563 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8564 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8565 else
8566 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8568 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8569 _lt_dsymutil='~$DSYMUTIL $lib || :'
8570 else
8571 _lt_dsymutil=
8574 esac
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8577 $as_echo_n "checking for ANSI C header files... " >&6; }
8578 if ${ac_cv_header_stdc+:} false; then :
8579 $as_echo_n "(cached) " >&6
8580 else
8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h. */
8583 #include <stdlib.h>
8584 #include <stdarg.h>
8585 #include <string.h>
8586 #include <float.h>
8589 main ()
8593 return 0;
8595 _ACEOF
8596 if ac_fn_c_try_compile "$LINENO"; then :
8597 ac_cv_header_stdc=yes
8598 else
8599 ac_cv_header_stdc=no
8601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 if test $ac_cv_header_stdc = yes; then
8604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606 /* end confdefs.h. */
8607 #include <string.h>
8609 _ACEOF
8610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8611 $EGREP "memchr" >/dev/null 2>&1; then :
8613 else
8614 ac_cv_header_stdc=no
8616 rm -f conftest*
8620 if test $ac_cv_header_stdc = yes; then
8621 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624 #include <stdlib.h>
8626 _ACEOF
8627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8628 $EGREP "free" >/dev/null 2>&1; then :
8630 else
8631 ac_cv_header_stdc=no
8633 rm -f conftest*
8637 if test $ac_cv_header_stdc = yes; then
8638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8639 if test "$cross_compiling" = yes; then :
8641 else
8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8644 #include <ctype.h>
8645 #include <stdlib.h>
8646 #if ((' ' & 0x0FF) == 0x020)
8647 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8648 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8649 #else
8650 # define ISLOWER(c) \
8651 (('a' <= (c) && (c) <= 'i') \
8652 || ('j' <= (c) && (c) <= 'r') \
8653 || ('s' <= (c) && (c) <= 'z'))
8654 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8655 #endif
8657 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8659 main ()
8661 int i;
8662 for (i = 0; i < 256; i++)
8663 if (XOR (islower (i), ISLOWER (i))
8664 || toupper (i) != TOUPPER (i))
8665 return 2;
8666 return 0;
8668 _ACEOF
8669 if ac_fn_c_try_run "$LINENO"; then :
8671 else
8672 ac_cv_header_stdc=no
8674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8675 conftest.$ac_objext conftest.beam conftest.$ac_ext
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8681 $as_echo "$ac_cv_header_stdc" >&6; }
8682 if test $ac_cv_header_stdc = yes; then
8684 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8688 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8689 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8690 inttypes.h stdint.h unistd.h
8691 do :
8692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8693 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8695 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8696 cat >>confdefs.h <<_ACEOF
8697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8698 _ACEOF
8702 done
8705 for ac_header in dlfcn.h
8706 do :
8707 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8709 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8710 cat >>confdefs.h <<_ACEOF
8711 #define HAVE_DLFCN_H 1
8712 _ACEOF
8716 done
8723 # Set options
8728 enable_win32_dll=no
8731 # Check whether --enable-shared was given.
8732 if test "${enable_shared+set}" = set; then :
8733 enableval=$enable_shared; p=${PACKAGE-default}
8734 case $enableval in
8735 yes) enable_shared=yes ;;
8736 no) enable_shared=no ;;
8738 enable_shared=no
8739 # Look at the argument we got. We use all the common list separators.
8740 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8741 for pkg in $enableval; do
8742 IFS="$lt_save_ifs"
8743 if test "X$pkg" = "X$p"; then
8744 enable_shared=yes
8746 done
8747 IFS="$lt_save_ifs"
8749 esac
8750 else
8751 enable_shared=yes
8762 # Check whether --enable-static was given.
8763 if test "${enable_static+set}" = set; then :
8764 enableval=$enable_static; p=${PACKAGE-default}
8765 case $enableval in
8766 yes) enable_static=yes ;;
8767 no) enable_static=no ;;
8769 enable_static=no
8770 # Look at the argument we got. We use all the common list separators.
8771 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8772 for pkg in $enableval; do
8773 IFS="$lt_save_ifs"
8774 if test "X$pkg" = "X$p"; then
8775 enable_static=yes
8777 done
8778 IFS="$lt_save_ifs"
8780 esac
8781 else
8782 enable_static=yes
8794 # Check whether --with-pic was given.
8795 if test "${with_pic+set}" = set; then :
8796 withval=$with_pic; pic_mode="$withval"
8797 else
8798 pic_mode=default
8802 test -z "$pic_mode" && pic_mode=default
8810 # Check whether --enable-fast-install was given.
8811 if test "${enable_fast_install+set}" = set; then :
8812 enableval=$enable_fast_install; p=${PACKAGE-default}
8813 case $enableval in
8814 yes) enable_fast_install=yes ;;
8815 no) enable_fast_install=no ;;
8817 enable_fast_install=no
8818 # Look at the argument we got. We use all the common list separators.
8819 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8820 for pkg in $enableval; do
8821 IFS="$lt_save_ifs"
8822 if test "X$pkg" = "X$p"; then
8823 enable_fast_install=yes
8825 done
8826 IFS="$lt_save_ifs"
8828 esac
8829 else
8830 enable_fast_install=yes
8843 # This can be used to rebuild libtool when needed
8844 LIBTOOL_DEPS="$ltmain"
8846 # Always use our own libtool.
8847 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8874 test -z "$LN_S" && LN_S="ln -s"
8889 if test -n "${ZSH_VERSION+set}" ; then
8890 setopt NO_GLOB_SUBST
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8894 $as_echo_n "checking for objdir... " >&6; }
8895 if ${lt_cv_objdir+:} false; then :
8896 $as_echo_n "(cached) " >&6
8897 else
8898 rm -f .libs 2>/dev/null
8899 mkdir .libs 2>/dev/null
8900 if test -d .libs; then
8901 lt_cv_objdir=.libs
8902 else
8903 # MS-DOS does not allow filenames that begin with a dot.
8904 lt_cv_objdir=_libs
8906 rmdir .libs 2>/dev/null
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8909 $as_echo "$lt_cv_objdir" >&6; }
8910 objdir=$lt_cv_objdir
8916 cat >>confdefs.h <<_ACEOF
8917 #define LT_OBJDIR "$lt_cv_objdir/"
8918 _ACEOF
8923 case $host_os in
8924 aix3*)
8925 # AIX sometimes has problems with the GCC collect2 program. For some
8926 # reason, if we set the COLLECT_NAMES environment variable, the problems
8927 # vanish in a puff of smoke.
8928 if test "X${COLLECT_NAMES+set}" != Xset; then
8929 COLLECT_NAMES=
8930 export COLLECT_NAMES
8933 esac
8935 # Global variables:
8936 ofile=libtool
8937 can_build_shared=yes
8939 # All known linkers require a `.a' archive for static linking (except MSVC,
8940 # which needs '.lib').
8941 libext=a
8943 with_gnu_ld="$lt_cv_prog_gnu_ld"
8945 old_CC="$CC"
8946 old_CFLAGS="$CFLAGS"
8948 # Set sane defaults for various variables
8949 test -z "$CC" && CC=cc
8950 test -z "$LTCC" && LTCC=$CC
8951 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8952 test -z "$LD" && LD=ld
8953 test -z "$ac_objext" && ac_objext=o
8955 for cc_temp in $compiler""; do
8956 case $cc_temp in
8957 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8958 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8959 \-*) ;;
8960 *) break;;
8961 esac
8962 done
8963 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8966 # Only perform the check for file, if the check method requires it
8967 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8968 case $deplibs_check_method in
8969 file_magic*)
8970 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8972 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8973 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8974 $as_echo_n "(cached) " >&6
8975 else
8976 case $MAGIC_CMD in
8977 [\\/*] | ?:[\\/]*)
8978 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8981 lt_save_MAGIC_CMD="$MAGIC_CMD"
8982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8983 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8984 for ac_dir in $ac_dummy; do
8985 IFS="$lt_save_ifs"
8986 test -z "$ac_dir" && ac_dir=.
8987 if test -f $ac_dir/${ac_tool_prefix}file; then
8988 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8989 if test -n "$file_magic_test_file"; then
8990 case $deplibs_check_method in
8991 "file_magic "*)
8992 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8994 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8995 $EGREP "$file_magic_regex" > /dev/null; then
8997 else
8998 cat <<_LT_EOF 1>&2
9000 *** Warning: the command libtool uses to detect shared libraries,
9001 *** $file_magic_cmd, produces output that libtool cannot recognize.
9002 *** The result is that libtool may fail to recognize shared libraries
9003 *** as such. This will affect the creation of libtool libraries that
9004 *** depend on shared libraries, but programs linked with such libtool
9005 *** libraries will work regardless of this problem. Nevertheless, you
9006 *** may want to report the problem to your system manager and/or to
9007 *** bug-libtool@gnu.org
9009 _LT_EOF
9010 fi ;;
9011 esac
9013 break
9015 done
9016 IFS="$lt_save_ifs"
9017 MAGIC_CMD="$lt_save_MAGIC_CMD"
9019 esac
9022 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9023 if test -n "$MAGIC_CMD"; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9025 $as_echo "$MAGIC_CMD" >&6; }
9026 else
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028 $as_echo "no" >&6; }
9035 if test -z "$lt_cv_path_MAGIC_CMD"; then
9036 if test -n "$ac_tool_prefix"; then
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9038 $as_echo_n "checking for file... " >&6; }
9039 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9040 $as_echo_n "(cached) " >&6
9041 else
9042 case $MAGIC_CMD in
9043 [\\/*] | ?:[\\/]*)
9044 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9047 lt_save_MAGIC_CMD="$MAGIC_CMD"
9048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9049 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9050 for ac_dir in $ac_dummy; do
9051 IFS="$lt_save_ifs"
9052 test -z "$ac_dir" && ac_dir=.
9053 if test -f $ac_dir/file; then
9054 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9055 if test -n "$file_magic_test_file"; then
9056 case $deplibs_check_method in
9057 "file_magic "*)
9058 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9060 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9061 $EGREP "$file_magic_regex" > /dev/null; then
9063 else
9064 cat <<_LT_EOF 1>&2
9066 *** Warning: the command libtool uses to detect shared libraries,
9067 *** $file_magic_cmd, produces output that libtool cannot recognize.
9068 *** The result is that libtool may fail to recognize shared libraries
9069 *** as such. This will affect the creation of libtool libraries that
9070 *** depend on shared libraries, but programs linked with such libtool
9071 *** libraries will work regardless of this problem. Nevertheless, you
9072 *** may want to report the problem to your system manager and/or to
9073 *** bug-libtool@gnu.org
9075 _LT_EOF
9076 fi ;;
9077 esac
9079 break
9081 done
9082 IFS="$lt_save_ifs"
9083 MAGIC_CMD="$lt_save_MAGIC_CMD"
9085 esac
9088 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9089 if test -n "$MAGIC_CMD"; then
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9091 $as_echo "$MAGIC_CMD" >&6; }
9092 else
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094 $as_echo "no" >&6; }
9098 else
9099 MAGIC_CMD=:
9105 esac
9107 # Use C for the default configuration in the libtool script
9109 lt_save_CC="$CC"
9110 ac_ext=c
9111 ac_cpp='$CPP $CPPFLAGS'
9112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9117 # Source file extension for C test sources.
9118 ac_ext=c
9120 # Object file extension for compiled C test sources.
9121 objext=o
9122 objext=$objext
9124 # Code to be used in simple compile tests
9125 lt_simple_compile_test_code="int some_variable = 0;"
9127 # Code to be used in simple link tests
9128 lt_simple_link_test_code='int main(){return(0);}'
9136 # If no C compiler was specified, use CC.
9137 LTCC=${LTCC-"$CC"}
9139 # If no C compiler flags were specified, use CFLAGS.
9140 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9142 # Allow CC to be a program name with arguments.
9143 compiler=$CC
9145 # Save the default compiler, since it gets overwritten when the other
9146 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9147 compiler_DEFAULT=$CC
9149 # save warnings/boilerplate of simple test code
9150 ac_outfile=conftest.$ac_objext
9151 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9152 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9153 _lt_compiler_boilerplate=`cat conftest.err`
9154 $RM conftest*
9156 ac_outfile=conftest.$ac_objext
9157 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9158 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9159 _lt_linker_boilerplate=`cat conftest.err`
9160 $RM -r conftest*
9163 ## CAVEAT EMPTOR:
9164 ## There is no encapsulation within the following macros, do not change
9165 ## the running order or otherwise move them around unless you know exactly
9166 ## what you are doing...
9167 if test -n "$compiler"; then
9169 lt_prog_compiler_no_builtin_flag=
9171 if test "$GCC" = yes; then
9172 case $cc_basename in
9173 nvcc*)
9174 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9176 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9177 esac
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9180 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9181 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 lt_cv_prog_compiler_rtti_exceptions=no
9185 ac_outfile=conftest.$ac_objext
9186 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9187 lt_compiler_flag="-fno-rtti -fno-exceptions"
9188 # Insert the option either (1) after the last *FLAGS variable, or
9189 # (2) before a word containing "conftest.", or (3) at the end.
9190 # Note that $ac_compile itself does not contain backslashes and begins
9191 # with a dollar sign (not a hyphen), so the echo should work correctly.
9192 # The option is referenced via a variable to avoid confusing sed.
9193 lt_compile=`echo "$ac_compile" | $SED \
9194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9196 -e 's:$: $lt_compiler_flag:'`
9197 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9198 (eval "$lt_compile" 2>conftest.err)
9199 ac_status=$?
9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 if (exit $ac_status) && test -s "$ac_outfile"; then
9203 # The compiler can only warn and ignore the option if not recognized
9204 # So say no if there are warnings other than the usual output.
9205 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9207 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9208 lt_cv_prog_compiler_rtti_exceptions=yes
9211 $RM conftest*
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9215 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9217 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9218 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9219 else
9230 lt_prog_compiler_wl=
9231 lt_prog_compiler_pic=
9232 lt_prog_compiler_static=
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9235 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9237 if test "$GCC" = yes; then
9238 lt_prog_compiler_wl='-Wl,'
9239 lt_prog_compiler_static='-static'
9241 case $host_os in
9242 aix*)
9243 # All AIX code is PIC.
9244 if test "$host_cpu" = ia64; then
9245 # AIX 5 now supports IA64 processor
9246 lt_prog_compiler_static='-Bstatic'
9248 lt_prog_compiler_pic='-fPIC'
9251 amigaos*)
9252 case $host_cpu in
9253 powerpc)
9254 # see comment about AmigaOS4 .so support
9255 lt_prog_compiler_pic='-fPIC'
9257 m68k)
9258 # FIXME: we need at least 68020 code to build shared libraries, but
9259 # adding the `-m68020' flag to GCC prevents building anything better,
9260 # like `-m68040'.
9261 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9263 esac
9266 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9267 # PIC is the default for these OSes.
9270 mingw* | cygwin* | pw32* | os2* | cegcc*)
9271 # This hack is so that the source file can tell whether it is being
9272 # built for inclusion in a dll (and should export symbols for example).
9273 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9274 # (--disable-auto-import) libraries
9275 lt_prog_compiler_pic='-DDLL_EXPORT'
9278 darwin* | rhapsody*)
9279 # PIC is the default on this platform
9280 # Common symbols not allowed in MH_DYLIB files
9281 lt_prog_compiler_pic='-fno-common'
9284 haiku*)
9285 # PIC is the default for Haiku.
9286 # The "-static" flag exists, but is broken.
9287 lt_prog_compiler_static=
9290 hpux*)
9291 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9292 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9293 # sets the default TLS model and affects inlining.
9294 case $host_cpu in
9295 hppa*64*)
9296 # +Z the default
9299 lt_prog_compiler_pic='-fPIC'
9301 esac
9304 interix[3-9]*)
9305 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9306 # Instead, we relocate shared libraries at runtime.
9309 msdosdjgpp*)
9310 # Just because we use GCC doesn't mean we suddenly get shared libraries
9311 # on systems that don't support them.
9312 lt_prog_compiler_can_build_shared=no
9313 enable_shared=no
9316 *nto* | *qnx*)
9317 # QNX uses GNU C++, but need to define -shared option too, otherwise
9318 # it will coredump.
9319 lt_prog_compiler_pic='-fPIC -shared'
9322 sysv4*MP*)
9323 if test -d /usr/nec; then
9324 lt_prog_compiler_pic=-Kconform_pic
9329 lt_prog_compiler_pic='-fPIC'
9331 esac
9333 case $cc_basename in
9334 nvcc*) # Cuda Compiler Driver 2.2
9335 lt_prog_compiler_wl='-Xlinker '
9336 lt_prog_compiler_pic='-Xcompiler -fPIC'
9338 esac
9339 else
9340 # PORTME Check for flag to pass linker flags through the system compiler.
9341 case $host_os in
9342 aix*)
9343 lt_prog_compiler_wl='-Wl,'
9344 if test "$host_cpu" = ia64; then
9345 # AIX 5 now supports IA64 processor
9346 lt_prog_compiler_static='-Bstatic'
9347 else
9348 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9352 mingw* | cygwin* | pw32* | os2* | cegcc*)
9353 # This hack is so that the source file can tell whether it is being
9354 # built for inclusion in a dll (and should export symbols for example).
9355 lt_prog_compiler_pic='-DDLL_EXPORT'
9358 hpux9* | hpux10* | hpux11*)
9359 lt_prog_compiler_wl='-Wl,'
9360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9361 # not for PA HP-UX.
9362 case $host_cpu in
9363 hppa*64*|ia64*)
9364 # +Z the default
9367 lt_prog_compiler_pic='+Z'
9369 esac
9370 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9371 lt_prog_compiler_static='${wl}-a ${wl}archive'
9374 irix5* | irix6* | nonstopux*)
9375 lt_prog_compiler_wl='-Wl,'
9376 # PIC (with -KPIC) is the default.
9377 lt_prog_compiler_static='-non_shared'
9380 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9381 case $cc_basename in
9382 # old Intel for x86_64 which still supported -KPIC.
9383 ecc*)
9384 lt_prog_compiler_wl='-Wl,'
9385 lt_prog_compiler_pic='-KPIC'
9386 lt_prog_compiler_static='-static'
9388 # icc used to be incompatible with GCC.
9389 # ICC 10 doesn't accept -KPIC any more.
9390 icc* | ifort*)
9391 lt_prog_compiler_wl='-Wl,'
9392 lt_prog_compiler_pic='-fPIC'
9393 lt_prog_compiler_static='-static'
9395 # Lahey Fortran 8.1.
9396 lf95*)
9397 lt_prog_compiler_wl='-Wl,'
9398 lt_prog_compiler_pic='--shared'
9399 lt_prog_compiler_static='--static'
9401 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9402 # Portland Group compilers (*not* the Pentium gcc compiler,
9403 # which looks to be a dead project)
9404 lt_prog_compiler_wl='-Wl,'
9405 lt_prog_compiler_pic='-fpic'
9406 lt_prog_compiler_static='-Bstatic'
9408 ccc*)
9409 lt_prog_compiler_wl='-Wl,'
9410 # All Alpha code is PIC.
9411 lt_prog_compiler_static='-non_shared'
9413 xl* | bgxl* | bgf* | mpixl*)
9414 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9415 lt_prog_compiler_wl='-Wl,'
9416 lt_prog_compiler_pic='-qpic'
9417 lt_prog_compiler_static='-qstaticlink'
9420 case `$CC -V 2>&1 | sed 5q` in
9421 *Sun\ F* | *Sun*Fortran*)
9422 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9423 lt_prog_compiler_pic='-KPIC'
9424 lt_prog_compiler_static='-Bstatic'
9425 lt_prog_compiler_wl=''
9427 *Sun\ C*)
9428 # Sun C 5.9
9429 lt_prog_compiler_pic='-KPIC'
9430 lt_prog_compiler_static='-Bstatic'
9431 lt_prog_compiler_wl='-Wl,'
9433 esac
9435 esac
9438 newsos6)
9439 lt_prog_compiler_pic='-KPIC'
9440 lt_prog_compiler_static='-Bstatic'
9443 *nto* | *qnx*)
9444 # QNX uses GNU C++, but need to define -shared option too, otherwise
9445 # it will coredump.
9446 lt_prog_compiler_pic='-fPIC -shared'
9449 osf3* | osf4* | osf5*)
9450 lt_prog_compiler_wl='-Wl,'
9451 # All OSF/1 code is PIC.
9452 lt_prog_compiler_static='-non_shared'
9455 rdos*)
9456 lt_prog_compiler_static='-non_shared'
9459 solaris*)
9460 lt_prog_compiler_pic='-KPIC'
9461 lt_prog_compiler_static='-Bstatic'
9462 case $cc_basename in
9463 f77* | f90* | f95*)
9464 lt_prog_compiler_wl='-Qoption ld ';;
9466 lt_prog_compiler_wl='-Wl,';;
9467 esac
9470 sunos4*)
9471 lt_prog_compiler_wl='-Qoption ld '
9472 lt_prog_compiler_pic='-PIC'
9473 lt_prog_compiler_static='-Bstatic'
9476 sysv4 | sysv4.2uw2* | sysv4.3*)
9477 lt_prog_compiler_wl='-Wl,'
9478 lt_prog_compiler_pic='-KPIC'
9479 lt_prog_compiler_static='-Bstatic'
9482 sysv4*MP*)
9483 if test -d /usr/nec ;then
9484 lt_prog_compiler_pic='-Kconform_pic'
9485 lt_prog_compiler_static='-Bstatic'
9489 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9490 lt_prog_compiler_wl='-Wl,'
9491 lt_prog_compiler_pic='-KPIC'
9492 lt_prog_compiler_static='-Bstatic'
9495 unicos*)
9496 lt_prog_compiler_wl='-Wl,'
9497 lt_prog_compiler_can_build_shared=no
9500 uts4*)
9501 lt_prog_compiler_pic='-pic'
9502 lt_prog_compiler_static='-Bstatic'
9506 lt_prog_compiler_can_build_shared=no
9508 esac
9511 case $host_os in
9512 # For platforms which do not support PIC, -DPIC is meaningless:
9513 *djgpp*)
9514 lt_prog_compiler_pic=
9517 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9519 esac
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9521 $as_echo "$lt_prog_compiler_pic" >&6; }
9529 # Check to make sure the PIC flag actually works.
9531 if test -n "$lt_prog_compiler_pic"; then
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9533 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9534 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9535 $as_echo_n "(cached) " >&6
9536 else
9537 lt_cv_prog_compiler_pic_works=no
9538 ac_outfile=conftest.$ac_objext
9539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9540 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9541 # Insert the option either (1) after the last *FLAGS variable, or
9542 # (2) before a word containing "conftest.", or (3) at the end.
9543 # Note that $ac_compile itself does not contain backslashes and begins
9544 # with a dollar sign (not a hyphen), so the echo should work correctly.
9545 # The option is referenced via a variable to avoid confusing sed.
9546 lt_compile=`echo "$ac_compile" | $SED \
9547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9549 -e 's:$: $lt_compiler_flag:'`
9550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9551 (eval "$lt_compile" 2>conftest.err)
9552 ac_status=$?
9553 cat conftest.err >&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 if (exit $ac_status) && test -s "$ac_outfile"; then
9556 # The compiler can only warn and ignore the option if not recognized
9557 # So say no if there are warnings other than the usual output.
9558 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9560 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9561 lt_cv_prog_compiler_pic_works=yes
9564 $RM conftest*
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9568 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9570 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9571 case $lt_prog_compiler_pic in
9572 "" | " "*) ;;
9573 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9574 esac
9575 else
9576 lt_prog_compiler_pic=
9577 lt_prog_compiler_can_build_shared=no
9588 # Check to make sure the static flag actually works.
9590 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9592 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9593 if ${lt_cv_prog_compiler_static_works+:} false; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596 lt_cv_prog_compiler_static_works=no
9597 save_LDFLAGS="$LDFLAGS"
9598 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9599 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9600 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9601 # The linker can only warn and ignore the option if not recognized
9602 # So say no if there are warnings
9603 if test -s conftest.err; then
9604 # Append any errors to the config.log.
9605 cat conftest.err 1>&5
9606 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9608 if diff conftest.exp conftest.er2 >/dev/null; then
9609 lt_cv_prog_compiler_static_works=yes
9611 else
9612 lt_cv_prog_compiler_static_works=yes
9615 $RM -r conftest*
9616 LDFLAGS="$save_LDFLAGS"
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9620 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9622 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9624 else
9625 lt_prog_compiler_static=
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9635 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9636 if ${lt_cv_prog_compiler_c_o+:} false; then :
9637 $as_echo_n "(cached) " >&6
9638 else
9639 lt_cv_prog_compiler_c_o=no
9640 $RM -r conftest 2>/dev/null
9641 mkdir conftest
9642 cd conftest
9643 mkdir out
9644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9646 lt_compiler_flag="-o out/conftest2.$ac_objext"
9647 # Insert the option either (1) after the last *FLAGS variable, or
9648 # (2) before a word containing "conftest.", or (3) at the end.
9649 # Note that $ac_compile itself does not contain backslashes and begins
9650 # with a dollar sign (not a hyphen), so the echo should work correctly.
9651 lt_compile=`echo "$ac_compile" | $SED \
9652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9654 -e 's:$: $lt_compiler_flag:'`
9655 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9656 (eval "$lt_compile" 2>out/conftest.err)
9657 ac_status=$?
9658 cat out/conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9661 then
9662 # The compiler can only warn and ignore the option if not recognized
9663 # So say no if there are warnings
9664 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9665 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9666 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9667 lt_cv_prog_compiler_c_o=yes
9670 chmod u+w . 2>&5
9671 $RM conftest*
9672 # SGI C++ compiler will create directory out/ii_files/ for
9673 # template instantiation
9674 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9675 $RM out/* && rmdir out
9676 cd ..
9677 $RM -r conftest
9678 $RM conftest*
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9682 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9690 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9691 if ${lt_cv_prog_compiler_c_o+:} false; then :
9692 $as_echo_n "(cached) " >&6
9693 else
9694 lt_cv_prog_compiler_c_o=no
9695 $RM -r conftest 2>/dev/null
9696 mkdir conftest
9697 cd conftest
9698 mkdir out
9699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9701 lt_compiler_flag="-o out/conftest2.$ac_objext"
9702 # Insert the option either (1) after the last *FLAGS variable, or
9703 # (2) before a word containing "conftest.", or (3) at the end.
9704 # Note that $ac_compile itself does not contain backslashes and begins
9705 # with a dollar sign (not a hyphen), so the echo should work correctly.
9706 lt_compile=`echo "$ac_compile" | $SED \
9707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9709 -e 's:$: $lt_compiler_flag:'`
9710 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9711 (eval "$lt_compile" 2>out/conftest.err)
9712 ac_status=$?
9713 cat out/conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9716 then
9717 # The compiler can only warn and ignore the option if not recognized
9718 # So say no if there are warnings
9719 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9720 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9721 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9722 lt_cv_prog_compiler_c_o=yes
9725 chmod u+w . 2>&5
9726 $RM conftest*
9727 # SGI C++ compiler will create directory out/ii_files/ for
9728 # template instantiation
9729 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9730 $RM out/* && rmdir out
9731 cd ..
9732 $RM -r conftest
9733 $RM conftest*
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9737 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9742 hard_links="nottested"
9743 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9744 # do not overwrite the value of need_locks provided by the user
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9746 $as_echo_n "checking if we can lock with hard links... " >&6; }
9747 hard_links=yes
9748 $RM conftest*
9749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9750 touch conftest.a
9751 ln conftest.a conftest.b 2>&5 || hard_links=no
9752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9754 $as_echo "$hard_links" >&6; }
9755 if test "$hard_links" = no; then
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9757 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9758 need_locks=warn
9760 else
9761 need_locks=no
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9770 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9772 runpath_var=
9773 allow_undefined_flag=
9774 always_export_symbols=no
9775 archive_cmds=
9776 archive_expsym_cmds=
9777 compiler_needs_object=no
9778 enable_shared_with_static_runtimes=no
9779 export_dynamic_flag_spec=
9780 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9781 hardcode_automatic=no
9782 hardcode_direct=no
9783 hardcode_direct_absolute=no
9784 hardcode_libdir_flag_spec=
9785 hardcode_libdir_flag_spec_ld=
9786 hardcode_libdir_separator=
9787 hardcode_minus_L=no
9788 hardcode_shlibpath_var=unsupported
9789 inherit_rpath=no
9790 link_all_deplibs=unknown
9791 module_cmds=
9792 module_expsym_cmds=
9793 old_archive_from_new_cmds=
9794 old_archive_from_expsyms_cmds=
9795 thread_safe_flag_spec=
9796 whole_archive_flag_spec=
9797 # include_expsyms should be a list of space-separated symbols to be *always*
9798 # included in the symbol list
9799 include_expsyms=
9800 # exclude_expsyms can be an extended regexp of symbols to exclude
9801 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9802 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9803 # as well as any symbol that contains `d'.
9804 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9805 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9806 # platforms (ab)use it in PIC code, but their linkers get confused if
9807 # the symbol is explicitly referenced. Since portable code cannot
9808 # rely on this symbol name, it's probably fine to never include it in
9809 # preloaded symbol tables.
9810 # Exclude shared library initialization/finalization symbols.
9811 extract_expsyms_cmds=
9813 case $host_os in
9814 cygwin* | mingw* | pw32* | cegcc*)
9815 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9816 # When not using gcc, we currently assume that we are using
9817 # Microsoft Visual C++.
9818 if test "$GCC" != yes; then
9819 with_gnu_ld=no
9822 interix*)
9823 # we just hope/assume this is gcc and not c89 (= MSVC++)
9824 with_gnu_ld=yes
9826 openbsd*)
9827 with_gnu_ld=no
9829 esac
9831 ld_shlibs=yes
9833 # On some targets, GNU ld is compatible enough with the native linker
9834 # that we're better off using the native interface for both.
9835 lt_use_gnu_ld_interface=no
9836 if test "$with_gnu_ld" = yes; then
9837 case $host_os in
9838 aix*)
9839 # The AIX port of GNU ld has always aspired to compatibility
9840 # with the native linker. However, as the warning in the GNU ld
9841 # block says, versions before 2.19.5* couldn't really create working
9842 # shared libraries, regardless of the interface used.
9843 case `$LD -v 2>&1` in
9844 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9845 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9846 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9848 lt_use_gnu_ld_interface=yes
9850 esac
9853 lt_use_gnu_ld_interface=yes
9855 esac
9858 if test "$lt_use_gnu_ld_interface" = yes; then
9859 # If archive_cmds runs LD, not CC, wlarc should be empty
9860 wlarc='${wl}'
9862 # Set some defaults for GNU ld with shared library support. These
9863 # are reset later if shared libraries are not supported. Putting them
9864 # here allows them to be overridden if necessary.
9865 runpath_var=LD_RUN_PATH
9866 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9867 export_dynamic_flag_spec='${wl}--export-dynamic'
9868 # ancient GNU ld didn't support --whole-archive et. al.
9869 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9870 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9871 else
9872 whole_archive_flag_spec=
9874 supports_anon_versioning=no
9875 case `$LD -v 2>&1` in
9876 *GNU\ gold*) supports_anon_versioning=yes ;;
9877 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9878 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9879 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9880 *\ 2.11.*) ;; # other 2.11 versions
9881 *) supports_anon_versioning=yes ;;
9882 esac
9884 # See if GNU ld supports shared libraries.
9885 case $host_os in
9886 aix[3-9]*)
9887 # On AIX/PPC, the GNU linker is very broken
9888 if test "$host_cpu" != ia64; then
9889 ld_shlibs=no
9890 cat <<_LT_EOF 1>&2
9892 *** Warning: the GNU linker, at least up to release 2.19, is reported
9893 *** to be unable to reliably create shared libraries on AIX.
9894 *** Therefore, libtool is disabling shared libraries support. If you
9895 *** really care for shared libraries, you may want to install binutils
9896 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9897 *** You will then need to restart the configuration process.
9899 _LT_EOF
9903 amigaos*)
9904 case $host_cpu in
9905 powerpc)
9906 # see comment about AmigaOS4 .so support
9907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9908 archive_expsym_cmds=''
9910 m68k)
9911 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9912 hardcode_libdir_flag_spec='-L$libdir'
9913 hardcode_minus_L=yes
9915 esac
9918 beos*)
9919 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9920 allow_undefined_flag=unsupported
9921 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9922 # support --undefined. This deserves some investigation. FIXME
9923 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9924 else
9925 ld_shlibs=no
9929 cygwin* | mingw* | pw32* | cegcc*)
9930 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9931 # as there is no search path for DLLs.
9932 hardcode_libdir_flag_spec='-L$libdir'
9933 export_dynamic_flag_spec='${wl}--export-all-symbols'
9934 allow_undefined_flag=unsupported
9935 always_export_symbols=no
9936 enable_shared_with_static_runtimes=yes
9937 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9939 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9941 # If the export-symbols file already is a .def file (1st line
9942 # is EXPORTS), use it as is; otherwise, prepend...
9943 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9944 cp $export_symbols $output_objdir/$soname.def;
9945 else
9946 echo EXPORTS > $output_objdir/$soname.def;
9947 cat $export_symbols >> $output_objdir/$soname.def;
9949 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9950 else
9951 ld_shlibs=no
9955 haiku*)
9956 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9957 link_all_deplibs=yes
9960 interix[3-9]*)
9961 hardcode_direct=no
9962 hardcode_shlibpath_var=no
9963 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9964 export_dynamic_flag_spec='${wl}-E'
9965 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9966 # Instead, shared libraries are loaded at an image base (0x10000000 by
9967 # default) and relocated if they conflict, which is a slow very memory
9968 # consuming and fragmenting process. To avoid this, we pick a random,
9969 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9970 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9971 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9972 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9975 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9976 tmp_diet=no
9977 if test "$host_os" = linux-dietlibc; then
9978 case $cc_basename in
9979 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9980 esac
9982 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9983 && test "$tmp_diet" = no
9984 then
9985 tmp_addflag=' $pic_flag'
9986 tmp_sharedflag='-shared'
9987 case $cc_basename,$host_cpu in
9988 pgcc*) # Portland Group C compiler
9989 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9990 tmp_addflag=' $pic_flag'
9992 pgf77* | pgf90* | pgf95* | pgfortran*)
9993 # Portland Group f77 and f90 compilers
9994 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9995 tmp_addflag=' $pic_flag -Mnomain' ;;
9996 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9997 tmp_addflag=' -i_dynamic' ;;
9998 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9999 tmp_addflag=' -i_dynamic -nofor_main' ;;
10000 ifc* | ifort*) # Intel Fortran compiler
10001 tmp_addflag=' -nofor_main' ;;
10002 lf95*) # Lahey Fortran 8.1
10003 whole_archive_flag_spec=
10004 tmp_sharedflag='--shared' ;;
10005 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10006 tmp_sharedflag='-qmkshrobj'
10007 tmp_addflag= ;;
10008 nvcc*) # Cuda Compiler Driver 2.2
10009 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10010 compiler_needs_object=yes
10012 esac
10013 case `$CC -V 2>&1 | sed 5q` in
10014 *Sun\ C*) # Sun C 5.9
10015 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10016 compiler_needs_object=yes
10017 tmp_sharedflag='-G' ;;
10018 *Sun\ F*) # Sun Fortran 8.3
10019 tmp_sharedflag='-G' ;;
10020 esac
10021 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10023 if test "x$supports_anon_versioning" = xyes; then
10024 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10025 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10026 echo "local: *; };" >> $output_objdir/$libname.ver~
10027 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10030 case $cc_basename in
10031 xlf* | bgf* | bgxlf* | mpixlf*)
10032 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10033 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10034 hardcode_libdir_flag_spec=
10035 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10036 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10037 if test "x$supports_anon_versioning" = xyes; then
10038 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10039 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10040 echo "local: *; };" >> $output_objdir/$libname.ver~
10041 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10044 esac
10045 else
10046 ld_shlibs=no
10050 netbsd*)
10051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10052 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10053 wlarc=
10054 else
10055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10056 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10060 solaris*)
10061 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10062 ld_shlibs=no
10063 cat <<_LT_EOF 1>&2
10065 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10066 *** create shared libraries on Solaris systems. Therefore, libtool
10067 *** is disabling shared libraries support. We urge you to upgrade GNU
10068 *** binutils to release 2.9.1 or newer. Another option is to modify
10069 *** your PATH or compiler configuration so that the native linker is
10070 *** used, and then restart.
10072 _LT_EOF
10073 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10075 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10076 else
10077 ld_shlibs=no
10081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10082 case `$LD -v 2>&1` in
10083 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10084 ld_shlibs=no
10085 cat <<_LT_EOF 1>&2
10087 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10088 *** reliably create shared libraries on SCO systems. Therefore, libtool
10089 *** is disabling shared libraries support. We urge you to upgrade GNU
10090 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10091 *** your PATH or compiler configuration so that the native linker is
10092 *** used, and then restart.
10094 _LT_EOF
10097 # For security reasons, it is highly recommended that you always
10098 # use absolute paths for naming shared libraries, and exclude the
10099 # DT_RUNPATH tag from executables and libraries. But doing so
10100 # requires that you compile everything twice, which is a pain.
10101 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10104 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10105 else
10106 ld_shlibs=no
10109 esac
10112 sunos4*)
10113 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10114 wlarc=
10115 hardcode_direct=yes
10116 hardcode_shlibpath_var=no
10120 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10122 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10123 else
10124 ld_shlibs=no
10127 esac
10129 if test "$ld_shlibs" = no; then
10130 runpath_var=
10131 hardcode_libdir_flag_spec=
10132 export_dynamic_flag_spec=
10133 whole_archive_flag_spec=
10135 else
10136 # PORTME fill in a description of your system's linker (not GNU ld)
10137 case $host_os in
10138 aix3*)
10139 allow_undefined_flag=unsupported
10140 always_export_symbols=yes
10141 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10142 # Note: this linker hardcodes the directories in LIBPATH if there
10143 # are no directories specified by -L.
10144 hardcode_minus_L=yes
10145 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10146 # Neither direct hardcoding nor static linking is supported with a
10147 # broken collect2.
10148 hardcode_direct=unsupported
10152 aix[4-9]*)
10153 if test "$host_cpu" = ia64; then
10154 # On IA64, the linker does run time linking by default, so we don't
10155 # have to do anything special.
10156 aix_use_runtimelinking=no
10157 exp_sym_flag='-Bexport'
10158 no_entry_flag=""
10159 else
10160 # If we're using GNU nm, then we don't want the "-C" option.
10161 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10162 # Also, AIX nm treats weak defined symbols like other global
10163 # defined symbols, whereas GNU nm marks them as "W".
10164 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10165 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10166 else
10167 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10169 aix_use_runtimelinking=no
10171 # Test if we are trying to use run time linking or normal
10172 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10173 # need to do runtime linking.
10174 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10175 for ld_flag in $LDFLAGS; do
10176 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10177 aix_use_runtimelinking=yes
10178 break
10180 done
10182 esac
10184 exp_sym_flag='-bexport'
10185 no_entry_flag='-bnoentry'
10188 # When large executables or shared objects are built, AIX ld can
10189 # have problems creating the table of contents. If linking a library
10190 # or program results in "error TOC overflow" add -mminimal-toc to
10191 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10192 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10194 archive_cmds=''
10195 hardcode_direct=yes
10196 hardcode_direct_absolute=yes
10197 hardcode_libdir_separator=':'
10198 link_all_deplibs=yes
10199 file_list_spec='${wl}-f,'
10201 if test "$GCC" = yes; then
10202 case $host_os in aix4.[012]|aix4.[012].*)
10203 # We only want to do this on AIX 4.2 and lower, the check
10204 # below for broken collect2 doesn't work under 4.3+
10205 collect2name=`${CC} -print-prog-name=collect2`
10206 if test -f "$collect2name" &&
10207 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10208 then
10209 # We have reworked collect2
10211 else
10212 # We have old collect2
10213 hardcode_direct=unsupported
10214 # It fails to find uninstalled libraries when the uninstalled
10215 # path is not listed in the libpath. Setting hardcode_minus_L
10216 # to unsupported forces relinking
10217 hardcode_minus_L=yes
10218 hardcode_libdir_flag_spec='-L$libdir'
10219 hardcode_libdir_separator=
10222 esac
10223 shared_flag='-shared'
10224 if test "$aix_use_runtimelinking" = yes; then
10225 shared_flag="$shared_flag "'${wl}-G'
10227 else
10228 # not using gcc
10229 if test "$host_cpu" = ia64; then
10230 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10231 # chokes on -Wl,-G. The following line is correct:
10232 shared_flag='-G'
10233 else
10234 if test "$aix_use_runtimelinking" = yes; then
10235 shared_flag='${wl}-G'
10236 else
10237 shared_flag='${wl}-bM:SRE'
10242 export_dynamic_flag_spec='${wl}-bexpall'
10243 # It seems that -bexpall does not export symbols beginning with
10244 # underscore (_), so it is better to generate a list of symbols to export.
10245 always_export_symbols=yes
10246 if test "$aix_use_runtimelinking" = yes; then
10247 # Warning - without using the other runtime loading flags (-brtl),
10248 # -berok will link without error, but may produce a broken library.
10249 allow_undefined_flag='-berok'
10250 # Determine the default libpath from the value encoded in an
10251 # empty executable.
10252 if test x$gcc_no_link = xyes; then
10253 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10256 /* end confdefs.h. */
10259 main ()
10263 return 0;
10265 _ACEOF
10266 if ac_fn_c_try_link "$LINENO"; then :
10268 lt_aix_libpath_sed='
10269 /Import File Strings/,/^$/ {
10270 /^0/ {
10271 s/^0 *\(.*\)$/\1/
10275 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10276 # Check for a 64-bit object if we didn't find anything.
10277 if test -z "$aix_libpath"; then
10278 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10281 rm -f core conftest.err conftest.$ac_objext \
10282 conftest$ac_exeext conftest.$ac_ext
10283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10285 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10286 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10287 else
10288 if test "$host_cpu" = ia64; then
10289 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10290 allow_undefined_flag="-z nodefs"
10291 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10292 else
10293 # Determine the default libpath from the value encoded in an
10294 # empty executable.
10295 if test x$gcc_no_link = xyes; then
10296 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10299 /* end confdefs.h. */
10302 main ()
10306 return 0;
10308 _ACEOF
10309 if ac_fn_c_try_link "$LINENO"; then :
10311 lt_aix_libpath_sed='
10312 /Import File Strings/,/^$/ {
10313 /^0/ {
10314 s/^0 *\(.*\)$/\1/
10318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10319 # Check for a 64-bit object if we didn't find anything.
10320 if test -z "$aix_libpath"; then
10321 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10324 rm -f core conftest.err conftest.$ac_objext \
10325 conftest$ac_exeext conftest.$ac_ext
10326 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10328 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10329 # Warning - without using the other run time loading flags,
10330 # -berok will link without error, but may produce a broken library.
10331 no_undefined_flag=' ${wl}-bernotok'
10332 allow_undefined_flag=' ${wl}-berok'
10333 if test "$with_gnu_ld" = yes; then
10334 # We only use this code for GNU lds that support --whole-archive.
10335 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10336 else
10337 # Exported symbols can be pulled into shared objects from archives
10338 whole_archive_flag_spec='$convenience'
10340 archive_cmds_need_lc=yes
10341 # This is similar to how AIX traditionally builds its shared libraries.
10342 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10347 amigaos*)
10348 case $host_cpu in
10349 powerpc)
10350 # see comment about AmigaOS4 .so support
10351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10352 archive_expsym_cmds=''
10354 m68k)
10355 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10356 hardcode_libdir_flag_spec='-L$libdir'
10357 hardcode_minus_L=yes
10359 esac
10362 bsdi[45]*)
10363 export_dynamic_flag_spec=-rdynamic
10366 cygwin* | mingw* | pw32* | cegcc*)
10367 # When not using gcc, we currently assume that we are using
10368 # Microsoft Visual C++.
10369 # hardcode_libdir_flag_spec is actually meaningless, as there is
10370 # no search path for DLLs.
10371 hardcode_libdir_flag_spec=' '
10372 allow_undefined_flag=unsupported
10373 # Tell ltmain to make .lib files, not .a files.
10374 libext=lib
10375 # Tell ltmain to make .dll files, not .so files.
10376 shrext_cmds=".dll"
10377 # FIXME: Setting linknames here is a bad hack.
10378 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10379 # The linker will automatically build a .lib file if we build a DLL.
10380 old_archive_from_new_cmds='true'
10381 # FIXME: Should let the user specify the lib program.
10382 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10383 fix_srcfile_path='`cygpath -w "$srcfile"`'
10384 enable_shared_with_static_runtimes=yes
10387 darwin* | rhapsody*)
10391 # Publish an arg to allow the user to select that Darwin host (and target)
10392 # libraries should be given install-names like @rpath/libfoo.dylib. This
10393 # requires that the user of the library then adds an 'rpath' to the DSO that
10394 # needs access.
10395 # NOTE: there are defaults below, for systems that support rpaths. The person
10396 # configuring can override the defaults for any system version that supports
10397 # them - they are, however, forced off for system versions without support.
10398 # Check whether --enable-darwin-at-rpath was given.
10399 if test "${enable_darwin_at_rpath+set}" = set; then :
10400 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
10401 # This is not supported before macOS 10.5 / Darwin9.
10402 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10403 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
10405 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
10406 enable_darwin_at_rpath=no
10408 esac
10410 else
10411 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10412 # As above, before 10.5 / Darwin9 this does not work.
10413 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10414 enable_darwin_at_rpath=no
10417 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
10418 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
10419 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
10420 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
10422 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
10423 enable_darwin_at_rpath=yes
10425 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
10426 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
10428 esac
10433 archive_cmds_need_lc=no
10434 hardcode_direct=no
10435 hardcode_automatic=yes
10436 hardcode_shlibpath_var=unsupported
10437 if test "$lt_cv_ld_force_load" = "yes"; then
10438 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10439 else
10440 whole_archive_flag_spec=''
10442 link_all_deplibs=yes
10443 allow_undefined_flag="$_lt_dar_allow_undefined"
10444 case $cc_basename in
10445 ifort*) _lt_dar_can_shared=yes ;;
10446 *) _lt_dar_can_shared=$GCC ;;
10447 esac
10448 if test "$_lt_dar_can_shared" = "yes"; then
10449 output_verbose_link_cmd=func_echo_all
10450 _lt_install_name='\$rpath/\$soname'
10451 if test "x$enable_darwin_at_rpath" = "xyes"; then
10452 _lt_install_name='@rpath/\$soname'
10454 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
10455 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10456 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
10457 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10459 else
10460 ld_shlibs=no
10465 dgux*)
10466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10467 hardcode_libdir_flag_spec='-L$libdir'
10468 hardcode_shlibpath_var=no
10471 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10472 # support. Future versions do this automatically, but an explicit c++rt0.o
10473 # does not break anything, and helps significantly (at the cost of a little
10474 # extra space).
10475 freebsd2.2*)
10476 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10477 hardcode_libdir_flag_spec='-R$libdir'
10478 hardcode_direct=yes
10479 hardcode_shlibpath_var=no
10482 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10483 freebsd2.*)
10484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10485 hardcode_direct=yes
10486 hardcode_minus_L=yes
10487 hardcode_shlibpath_var=no
10490 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10491 freebsd* | dragonfly*)
10492 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10493 hardcode_libdir_flag_spec='-R$libdir'
10494 hardcode_direct=yes
10495 hardcode_shlibpath_var=no
10498 hpux9*)
10499 if test "$GCC" = yes; then
10500 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10501 else
10502 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10504 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10505 hardcode_libdir_separator=:
10506 hardcode_direct=yes
10508 # hardcode_minus_L: Not really in the search PATH,
10509 # but as the default location of the library.
10510 hardcode_minus_L=yes
10511 export_dynamic_flag_spec='${wl}-E'
10514 hpux10*)
10515 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10516 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10517 else
10518 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10520 if test "$with_gnu_ld" = no; then
10521 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10522 hardcode_libdir_flag_spec_ld='+b $libdir'
10523 hardcode_libdir_separator=:
10524 hardcode_direct=yes
10525 hardcode_direct_absolute=yes
10526 export_dynamic_flag_spec='${wl}-E'
10527 # hardcode_minus_L: Not really in the search PATH,
10528 # but as the default location of the library.
10529 hardcode_minus_L=yes
10533 hpux11*)
10534 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10535 case $host_cpu in
10536 hppa*64*)
10537 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10539 ia64*)
10540 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10543 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10545 esac
10546 else
10547 case $host_cpu in
10548 hppa*64*)
10549 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10551 ia64*)
10552 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10556 # Older versions of the 11.00 compiler do not understand -b yet
10557 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10559 $as_echo_n "checking if $CC understands -b... " >&6; }
10560 if ${lt_cv_prog_compiler__b+:} false; then :
10561 $as_echo_n "(cached) " >&6
10562 else
10563 lt_cv_prog_compiler__b=no
10564 save_LDFLAGS="$LDFLAGS"
10565 LDFLAGS="$LDFLAGS -b"
10566 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10567 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10568 # The linker can only warn and ignore the option if not recognized
10569 # So say no if there are warnings
10570 if test -s conftest.err; then
10571 # Append any errors to the config.log.
10572 cat conftest.err 1>&5
10573 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10574 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10575 if diff conftest.exp conftest.er2 >/dev/null; then
10576 lt_cv_prog_compiler__b=yes
10578 else
10579 lt_cv_prog_compiler__b=yes
10582 $RM -r conftest*
10583 LDFLAGS="$save_LDFLAGS"
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10587 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10589 if test x"$lt_cv_prog_compiler__b" = xyes; then
10590 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10591 else
10592 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10596 esac
10598 if test "$with_gnu_ld" = no; then
10599 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10600 hardcode_libdir_separator=:
10602 case $host_cpu in
10603 hppa*64*|ia64*)
10604 hardcode_direct=no
10605 hardcode_shlibpath_var=no
10608 hardcode_direct=yes
10609 hardcode_direct_absolute=yes
10610 export_dynamic_flag_spec='${wl}-E'
10612 # hardcode_minus_L: Not really in the search PATH,
10613 # but as the default location of the library.
10614 hardcode_minus_L=yes
10616 esac
10620 irix5* | irix6* | nonstopux*)
10621 if test "$GCC" = yes; then
10622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10623 # Try to use the -exported_symbol ld option, if it does not
10624 # work, assume that -exports_file does not work either and
10625 # implicitly export all symbols.
10626 save_LDFLAGS="$LDFLAGS"
10627 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10628 if test x$gcc_no_link = xyes; then
10629 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10632 /* end confdefs.h. */
10633 int foo(void) {}
10634 _ACEOF
10635 if ac_fn_c_try_link "$LINENO"; then :
10636 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10639 rm -f core conftest.err conftest.$ac_objext \
10640 conftest$ac_exeext conftest.$ac_ext
10641 LDFLAGS="$save_LDFLAGS"
10642 else
10643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10644 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10646 archive_cmds_need_lc='no'
10647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10648 hardcode_libdir_separator=:
10649 inherit_rpath=yes
10650 link_all_deplibs=yes
10653 netbsd*)
10654 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10655 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10656 else
10657 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10659 hardcode_libdir_flag_spec='-R$libdir'
10660 hardcode_direct=yes
10661 hardcode_shlibpath_var=no
10664 newsos6)
10665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10666 hardcode_direct=yes
10667 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10668 hardcode_libdir_separator=:
10669 hardcode_shlibpath_var=no
10672 *nto* | *qnx*)
10675 openbsd*)
10676 if test -f /usr/libexec/ld.so; then
10677 hardcode_direct=yes
10678 hardcode_shlibpath_var=no
10679 hardcode_direct_absolute=yes
10680 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10681 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10682 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10683 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10684 export_dynamic_flag_spec='${wl}-E'
10685 else
10686 case $host_os in
10687 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10688 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10689 hardcode_libdir_flag_spec='-R$libdir'
10692 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10693 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10695 esac
10697 else
10698 ld_shlibs=no
10702 os2*)
10703 hardcode_libdir_flag_spec='-L$libdir'
10704 hardcode_minus_L=yes
10705 allow_undefined_flag=unsupported
10706 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10707 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10710 osf3*)
10711 if test "$GCC" = yes; then
10712 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10713 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10714 else
10715 allow_undefined_flag=' -expect_unresolved \*'
10716 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10718 archive_cmds_need_lc='no'
10719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10720 hardcode_libdir_separator=:
10723 osf4* | osf5*) # as osf3* with the addition of -msym flag
10724 if test "$GCC" = yes; then
10725 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10726 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10727 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10728 else
10729 allow_undefined_flag=' -expect_unresolved \*'
10730 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10731 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10732 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10734 # Both c and cxx compiler support -rpath directly
10735 hardcode_libdir_flag_spec='-rpath $libdir'
10737 archive_cmds_need_lc='no'
10738 hardcode_libdir_separator=:
10741 solaris*)
10742 no_undefined_flag=' -z defs'
10743 if test "$GCC" = yes; then
10744 wlarc='${wl}'
10745 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10746 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10747 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10748 else
10749 case `$CC -V 2>&1` in
10750 *"Compilers 5.0"*)
10751 wlarc=''
10752 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10753 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10754 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10757 wlarc='${wl}'
10758 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10759 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10760 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10762 esac
10764 hardcode_libdir_flag_spec='-R$libdir'
10765 hardcode_shlibpath_var=no
10766 case $host_os in
10767 solaris2.[0-5] | solaris2.[0-5].*) ;;
10769 # The compiler driver will combine and reorder linker options,
10770 # but understands `-z linker_flag'. GCC discards it without `$wl',
10771 # but is careful enough not to reorder.
10772 # Supported since Solaris 2.6 (maybe 2.5.1?)
10773 if test "$GCC" = yes; then
10774 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10775 else
10776 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10779 esac
10780 link_all_deplibs=yes
10783 sunos4*)
10784 if test "x$host_vendor" = xsequent; then
10785 # Use $CC to link under sequent, because it throws in some extra .o
10786 # files that make .init and .fini sections work.
10787 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10788 else
10789 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10791 hardcode_libdir_flag_spec='-L$libdir'
10792 hardcode_direct=yes
10793 hardcode_minus_L=yes
10794 hardcode_shlibpath_var=no
10797 sysv4)
10798 case $host_vendor in
10799 sni)
10800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10801 hardcode_direct=yes # is this really true???
10803 siemens)
10804 ## LD is ld it makes a PLAMLIB
10805 ## CC just makes a GrossModule.
10806 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10807 reload_cmds='$CC -r -o $output$reload_objs'
10808 hardcode_direct=no
10810 motorola)
10811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10812 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10814 esac
10815 runpath_var='LD_RUN_PATH'
10816 hardcode_shlibpath_var=no
10819 sysv4.3*)
10820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10821 hardcode_shlibpath_var=no
10822 export_dynamic_flag_spec='-Bexport'
10825 sysv4*MP*)
10826 if test -d /usr/nec; then
10827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10828 hardcode_shlibpath_var=no
10829 runpath_var=LD_RUN_PATH
10830 hardcode_runpath_var=yes
10831 ld_shlibs=yes
10835 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10836 no_undefined_flag='${wl}-z,text'
10837 archive_cmds_need_lc=no
10838 hardcode_shlibpath_var=no
10839 runpath_var='LD_RUN_PATH'
10841 if test "$GCC" = yes; then
10842 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10843 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10844 else
10845 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10846 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10850 sysv5* | sco3.2v5* | sco5v6*)
10851 # Note: We can NOT use -z defs as we might desire, because we do not
10852 # link with -lc, and that would cause any symbols used from libc to
10853 # always be unresolved, which means just about no library would
10854 # ever link correctly. If we're not using GNU ld we use -z text
10855 # though, which does catch some bad symbols but isn't as heavy-handed
10856 # as -z defs.
10857 no_undefined_flag='${wl}-z,text'
10858 allow_undefined_flag='${wl}-z,nodefs'
10859 archive_cmds_need_lc=no
10860 hardcode_shlibpath_var=no
10861 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10862 hardcode_libdir_separator=':'
10863 link_all_deplibs=yes
10864 export_dynamic_flag_spec='${wl}-Bexport'
10865 runpath_var='LD_RUN_PATH'
10867 if test "$GCC" = yes; then
10868 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10869 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10870 else
10871 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10872 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10876 uts4*)
10877 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10878 hardcode_libdir_flag_spec='-L$libdir'
10879 hardcode_shlibpath_var=no
10883 ld_shlibs=no
10885 esac
10887 if test x$host_vendor = xsni; then
10888 case $host in
10889 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10890 export_dynamic_flag_spec='${wl}-Blargedynsym'
10892 esac
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10897 $as_echo "$ld_shlibs" >&6; }
10898 test "$ld_shlibs" = no && can_build_shared=no
10900 with_gnu_ld=$with_gnu_ld
10917 # Do we need to explicitly link libc?
10919 case "x$archive_cmds_need_lc" in
10920 x|xyes)
10921 # Assume -lc should be added
10922 archive_cmds_need_lc=yes
10924 if test "$enable_shared" = yes && test "$GCC" = yes; then
10925 case $archive_cmds in
10926 *'~'*)
10927 # FIXME: we may have to deal with multi-command sequences.
10929 '$CC '*)
10930 # Test whether the compiler implicitly links with -lc since on some
10931 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10932 # to ld, don't add -lc before -lgcc.
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10934 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10935 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10938 $RM conftest*
10939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10942 (eval $ac_compile) 2>&5
10943 ac_status=$?
10944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10945 test $ac_status = 0; } 2>conftest.err; then
10946 soname=conftest
10947 lib=conftest
10948 libobjs=conftest.$ac_objext
10949 deplibs=
10950 wl=$lt_prog_compiler_wl
10951 pic_flag=$lt_prog_compiler_pic
10952 compiler_flags=-v
10953 linker_flags=-v
10954 verstring=
10955 output_objdir=.
10956 libname=conftest
10957 lt_save_allow_undefined_flag=$allow_undefined_flag
10958 allow_undefined_flag=
10959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10960 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10961 ac_status=$?
10962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10963 test $ac_status = 0; }
10964 then
10965 lt_cv_archive_cmds_need_lc=no
10966 else
10967 lt_cv_archive_cmds_need_lc=yes
10969 allow_undefined_flag=$lt_save_allow_undefined_flag
10970 else
10971 cat conftest.err 1>&5
10973 $RM conftest*
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10977 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10978 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10980 esac
10983 esac
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11142 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11144 if test "$GCC" = yes; then
11145 case $host_os in
11146 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11147 *) lt_awk_arg="/^libraries:/" ;;
11148 esac
11149 case $host_os in
11150 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11151 *) lt_sed_strip_eq="s,=/,/,g" ;;
11152 esac
11153 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11154 case $lt_search_path_spec in
11155 *\;*)
11156 # if the path contains ";" then we assume it to be the separator
11157 # otherwise default to the standard path separator (i.e. ":") - it is
11158 # assumed that no part of a normal pathname contains ";" but that should
11159 # okay in the real world where ";" in dirpaths is itself problematic.
11160 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11163 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11165 esac
11166 # Ok, now we have the path, separated by spaces, we can step through it
11167 # and add multilib dir if necessary.
11168 lt_tmp_lt_search_path_spec=
11169 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11170 for lt_sys_path in $lt_search_path_spec; do
11171 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11172 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11173 else
11174 test -d "$lt_sys_path" && \
11175 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11177 done
11178 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11179 BEGIN {RS=" "; FS="/|\n";} {
11180 lt_foo="";
11181 lt_count=0;
11182 for (lt_i = NF; lt_i > 0; lt_i--) {
11183 if ($lt_i != "" && $lt_i != ".") {
11184 if ($lt_i == "..") {
11185 lt_count++;
11186 } else {
11187 if (lt_count == 0) {
11188 lt_foo="/" $lt_i lt_foo;
11189 } else {
11190 lt_count--;
11195 if (lt_foo != "") { lt_freq[lt_foo]++; }
11196 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11198 # AWK program above erroneously prepends '/' to C:/dos/paths
11199 # for these hosts.
11200 case $host_os in
11201 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11202 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11203 esac
11204 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11205 else
11206 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11208 library_names_spec=
11209 libname_spec='lib$name'
11210 soname_spec=
11211 shrext_cmds=".so"
11212 postinstall_cmds=
11213 postuninstall_cmds=
11214 finish_cmds=
11215 finish_eval=
11216 shlibpath_var=
11217 shlibpath_overrides_runpath=unknown
11218 version_type=none
11219 dynamic_linker="$host_os ld.so"
11220 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11221 need_lib_prefix=unknown
11222 hardcode_into_libs=no
11224 # when you set need_version to no, make sure it does not cause -set_version
11225 # flags to be left without arguments
11226 need_version=unknown
11228 case $host_os in
11229 aix3*)
11230 version_type=linux
11231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11232 shlibpath_var=LIBPATH
11234 # AIX 3 has no versioning support, so we append a major version to the name.
11235 soname_spec='${libname}${release}${shared_ext}$major'
11238 aix[4-9]*)
11239 version_type=linux
11240 need_lib_prefix=no
11241 need_version=no
11242 hardcode_into_libs=yes
11243 if test "$host_cpu" = ia64; then
11244 # AIX 5 supports IA64
11245 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11246 shlibpath_var=LD_LIBRARY_PATH
11247 else
11248 # With GCC up to 2.95.x, collect2 would create an import file
11249 # for dependence libraries. The import file would start with
11250 # the line `#! .'. This would cause the generated library to
11251 # depend on `.', always an invalid library. This was fixed in
11252 # development snapshots of GCC prior to 3.0.
11253 case $host_os in
11254 aix4 | aix4.[01] | aix4.[01].*)
11255 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11256 echo ' yes '
11257 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11259 else
11260 can_build_shared=no
11263 esac
11264 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11265 # soname into executable. Probably we can add versioning support to
11266 # collect2, so additional links can be useful in future.
11267 if test "$aix_use_runtimelinking" = yes; then
11268 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11269 # instead of lib<name>.a to let people know that these are not
11270 # typical AIX shared libraries.
11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11272 else
11273 # We preserve .a as extension for shared libraries through AIX4.2
11274 # and later when we are not doing run time linking.
11275 library_names_spec='${libname}${release}.a $libname.a'
11276 soname_spec='${libname}${release}${shared_ext}$major'
11278 shlibpath_var=LIBPATH
11282 amigaos*)
11283 case $host_cpu in
11284 powerpc)
11285 # Since July 2007 AmigaOS4 officially supports .so libraries.
11286 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11289 m68k)
11290 library_names_spec='$libname.ixlibrary $libname.a'
11291 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11292 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11294 esac
11297 beos*)
11298 library_names_spec='${libname}${shared_ext}'
11299 dynamic_linker="$host_os ld.so"
11300 shlibpath_var=LIBRARY_PATH
11303 bsdi[45]*)
11304 version_type=linux
11305 need_version=no
11306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11307 soname_spec='${libname}${release}${shared_ext}$major'
11308 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11309 shlibpath_var=LD_LIBRARY_PATH
11310 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11311 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11312 # the default ld.so.conf also contains /usr/contrib/lib and
11313 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11314 # libtool to hard-code these into programs
11317 cygwin* | mingw* | pw32* | cegcc*)
11318 version_type=windows
11319 shrext_cmds=".dll"
11320 need_version=no
11321 need_lib_prefix=no
11323 case $GCC,$host_os in
11324 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11325 library_names_spec='$libname.dll.a'
11326 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11327 postinstall_cmds='base_file=`basename \${file}`~
11328 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11329 dldir=$destdir/`dirname \$dlpath`~
11330 test -d \$dldir || mkdir -p \$dldir~
11331 $install_prog $dir/$dlname \$dldir/$dlname~
11332 chmod a+x \$dldir/$dlname~
11333 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11334 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11336 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11337 dlpath=$dir/\$dldll~
11338 $RM \$dlpath'
11339 shlibpath_overrides_runpath=yes
11341 case $host_os in
11342 cygwin*)
11343 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11344 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11346 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11348 mingw* | cegcc*)
11349 # MinGW DLLs use traditional 'lib' prefix
11350 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11352 pw32*)
11353 # pw32 DLLs use 'pw' prefix rather than 'lib'
11354 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11356 esac
11360 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11362 esac
11363 dynamic_linker='Win32 ld.exe'
11364 # FIXME: first we should search . and the directory the executable is in
11365 shlibpath_var=PATH
11368 darwin* | rhapsody*)
11369 dynamic_linker="$host_os dyld"
11370 version_type=darwin
11371 need_lib_prefix=no
11372 need_version=no
11373 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11374 soname_spec='${libname}${release}${major}$shared_ext'
11375 shlibpath_overrides_runpath=yes
11376 shlibpath_var=DYLD_LIBRARY_PATH
11377 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11379 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11380 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11383 dgux*)
11384 version_type=linux
11385 need_lib_prefix=no
11386 need_version=no
11387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11388 soname_spec='${libname}${release}${shared_ext}$major'
11389 shlibpath_var=LD_LIBRARY_PATH
11392 freebsd* | dragonfly*)
11393 # DragonFly does not have aout. When/if they implement a new
11394 # versioning mechanism, adjust this.
11395 if test -x /usr/bin/objformat; then
11396 objformat=`/usr/bin/objformat`
11397 else
11398 case $host_os in
11399 freebsd[23].*) objformat=aout ;;
11400 *) objformat=elf ;;
11401 esac
11403 version_type=freebsd-$objformat
11404 case $version_type in
11405 freebsd-elf*)
11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11407 need_version=no
11408 need_lib_prefix=no
11410 freebsd-*)
11411 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11412 need_version=yes
11414 esac
11415 shlibpath_var=LD_LIBRARY_PATH
11416 case $host_os in
11417 freebsd2.*)
11418 shlibpath_overrides_runpath=yes
11420 freebsd3.[01]* | freebsdelf3.[01]*)
11421 shlibpath_overrides_runpath=yes
11422 hardcode_into_libs=yes
11424 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11425 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11426 shlibpath_overrides_runpath=no
11427 hardcode_into_libs=yes
11429 *) # from 4.6 on, and DragonFly
11430 shlibpath_overrides_runpath=yes
11431 hardcode_into_libs=yes
11433 esac
11436 haiku*)
11437 version_type=linux
11438 need_lib_prefix=no
11439 need_version=no
11440 dynamic_linker="$host_os runtime_loader"
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11442 soname_spec='${libname}${release}${shared_ext}$major'
11443 shlibpath_var=LIBRARY_PATH
11444 shlibpath_overrides_runpath=yes
11445 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11446 hardcode_into_libs=yes
11449 hpux9* | hpux10* | hpux11*)
11450 # Give a soname corresponding to the major version so that dld.sl refuses to
11451 # link against other versions.
11452 version_type=sunos
11453 need_lib_prefix=no
11454 need_version=no
11455 case $host_cpu in
11456 ia64*)
11457 shrext_cmds='.so'
11458 hardcode_into_libs=yes
11459 dynamic_linker="$host_os dld.so"
11460 shlibpath_var=LD_LIBRARY_PATH
11461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11463 soname_spec='${libname}${release}${shared_ext}$major'
11464 if test "X$HPUX_IA64_MODE" = X32; then
11465 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11466 else
11467 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11471 hppa*64*)
11472 shrext_cmds='.sl'
11473 hardcode_into_libs=yes
11474 dynamic_linker="$host_os dld.sl"
11475 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11478 soname_spec='${libname}${release}${shared_ext}$major'
11479 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11483 shrext_cmds='.sl'
11484 dynamic_linker="$host_os dld.sl"
11485 shlibpath_var=SHLIB_PATH
11486 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488 soname_spec='${libname}${release}${shared_ext}$major'
11490 esac
11491 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11492 postinstall_cmds='chmod 555 $lib'
11493 # or fails outright, so override atomically:
11494 install_override_mode=555
11497 interix[3-9]*)
11498 version_type=linux
11499 need_lib_prefix=no
11500 need_version=no
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11502 soname_spec='${libname}${release}${shared_ext}$major'
11503 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11504 shlibpath_var=LD_LIBRARY_PATH
11505 shlibpath_overrides_runpath=no
11506 hardcode_into_libs=yes
11509 irix5* | irix6* | nonstopux*)
11510 case $host_os in
11511 nonstopux*) version_type=nonstopux ;;
11513 if test "$lt_cv_prog_gnu_ld" = yes; then
11514 version_type=linux
11515 else
11516 version_type=irix
11517 fi ;;
11518 esac
11519 need_lib_prefix=no
11520 need_version=no
11521 soname_spec='${libname}${release}${shared_ext}$major'
11522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11523 case $host_os in
11524 irix5* | nonstopux*)
11525 libsuff= shlibsuff=
11528 case $LD in # libtool.m4 will add one of these switches to LD
11529 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11530 libsuff= shlibsuff= libmagic=32-bit;;
11531 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11532 libsuff=32 shlibsuff=N32 libmagic=N32;;
11533 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11534 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11535 *) libsuff= shlibsuff= libmagic=never-match;;
11536 esac
11538 esac
11539 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11540 shlibpath_overrides_runpath=no
11541 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11542 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11543 hardcode_into_libs=yes
11546 # No shared lib support for Linux oldld, aout, or coff.
11547 linux*oldld* | linux*aout* | linux*coff*)
11548 dynamic_linker=no
11551 # This must be Linux ELF.
11553 # uclinux* changes (here and below) have been submitted to the libtool
11554 # project, but have not yet been accepted: they are GCC-local changes
11555 # for the time being. (See
11556 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11557 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11558 version_type=linux
11559 need_lib_prefix=no
11560 need_version=no
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562 soname_spec='${libname}${release}${shared_ext}$major'
11563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11564 shlibpath_var=LD_LIBRARY_PATH
11565 shlibpath_overrides_runpath=no
11567 # Some binutils ld are patched to set DT_RUNPATH
11568 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11569 $as_echo_n "(cached) " >&6
11570 else
11571 lt_cv_shlibpath_overrides_runpath=no
11572 save_LDFLAGS=$LDFLAGS
11573 save_libdir=$libdir
11574 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11575 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11576 if test x$gcc_no_link = xyes; then
11577 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h. */
11583 main ()
11587 return 0;
11589 _ACEOF
11590 if ac_fn_c_try_link "$LINENO"; then :
11591 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11592 lt_cv_shlibpath_overrides_runpath=yes
11595 rm -f core conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
11597 LDFLAGS=$save_LDFLAGS
11598 libdir=$save_libdir
11602 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11604 # This implies no fast_install, which is unacceptable.
11605 # Some rework will be needed to allow for fast_install
11606 # before this can be enabled.
11607 hardcode_into_libs=yes
11609 # Append ld.so.conf contents to the search path
11610 if test -f /etc/ld.so.conf; then
11611 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11612 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11615 # We used to test for /lib/ld.so.1 and disable shared libraries on
11616 # powerpc, because MkLinux only supported shared libraries with the
11617 # GNU dynamic linker. Since this was broken with cross compilers,
11618 # most powerpc-linux boxes support dynamic linking these days and
11619 # people can always --disable-shared, the test was removed, and we
11620 # assume the GNU/Linux dynamic linker is in use.
11621 dynamic_linker='GNU/Linux ld.so'
11624 netbsd*)
11625 version_type=sunos
11626 need_lib_prefix=no
11627 need_version=no
11628 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11631 dynamic_linker='NetBSD (a.out) ld.so'
11632 else
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11634 soname_spec='${libname}${release}${shared_ext}$major'
11635 dynamic_linker='NetBSD ld.elf_so'
11637 shlibpath_var=LD_LIBRARY_PATH
11638 shlibpath_overrides_runpath=yes
11639 hardcode_into_libs=yes
11642 newsos6)
11643 version_type=linux
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645 shlibpath_var=LD_LIBRARY_PATH
11646 shlibpath_overrides_runpath=yes
11649 *nto* | *qnx*)
11650 version_type=qnx
11651 need_lib_prefix=no
11652 need_version=no
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11654 soname_spec='${libname}${release}${shared_ext}$major'
11655 shlibpath_var=LD_LIBRARY_PATH
11656 shlibpath_overrides_runpath=no
11657 hardcode_into_libs=yes
11658 dynamic_linker='ldqnx.so'
11661 openbsd*)
11662 version_type=sunos
11663 sys_lib_dlsearch_path_spec="/usr/lib"
11664 need_lib_prefix=no
11665 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11666 case $host_os in
11667 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11668 *) need_version=no ;;
11669 esac
11670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11672 shlibpath_var=LD_LIBRARY_PATH
11673 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11674 case $host_os in
11675 openbsd2.[89] | openbsd2.[89].*)
11676 shlibpath_overrides_runpath=no
11679 shlibpath_overrides_runpath=yes
11681 esac
11682 else
11683 shlibpath_overrides_runpath=yes
11687 os2*)
11688 libname_spec='$name'
11689 shrext_cmds=".dll"
11690 need_lib_prefix=no
11691 library_names_spec='$libname${shared_ext} $libname.a'
11692 dynamic_linker='OS/2 ld.exe'
11693 shlibpath_var=LIBPATH
11696 osf3* | osf4* | osf5*)
11697 version_type=osf
11698 need_lib_prefix=no
11699 need_version=no
11700 soname_spec='${libname}${release}${shared_ext}$major'
11701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11702 shlibpath_var=LD_LIBRARY_PATH
11703 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11704 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11707 rdos*)
11708 dynamic_linker=no
11711 solaris*)
11712 version_type=linux
11713 need_lib_prefix=no
11714 need_version=no
11715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11716 soname_spec='${libname}${release}${shared_ext}$major'
11717 shlibpath_var=LD_LIBRARY_PATH
11718 shlibpath_overrides_runpath=yes
11719 hardcode_into_libs=yes
11720 # ldd complains unless libraries are executable
11721 postinstall_cmds='chmod +x $lib'
11724 sunos4*)
11725 version_type=sunos
11726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11727 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11728 shlibpath_var=LD_LIBRARY_PATH
11729 shlibpath_overrides_runpath=yes
11730 if test "$with_gnu_ld" = yes; then
11731 need_lib_prefix=no
11733 need_version=yes
11736 sysv4 | sysv4.3*)
11737 version_type=linux
11738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11739 soname_spec='${libname}${release}${shared_ext}$major'
11740 shlibpath_var=LD_LIBRARY_PATH
11741 case $host_vendor in
11742 sni)
11743 shlibpath_overrides_runpath=no
11744 need_lib_prefix=no
11745 runpath_var=LD_RUN_PATH
11747 siemens)
11748 need_lib_prefix=no
11750 motorola)
11751 need_lib_prefix=no
11752 need_version=no
11753 shlibpath_overrides_runpath=no
11754 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11756 esac
11759 sysv4*MP*)
11760 if test -d /usr/nec ;then
11761 version_type=linux
11762 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11763 soname_spec='$libname${shared_ext}.$major'
11764 shlibpath_var=LD_LIBRARY_PATH
11768 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11769 version_type=freebsd-elf
11770 need_lib_prefix=no
11771 need_version=no
11772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11773 soname_spec='${libname}${release}${shared_ext}$major'
11774 shlibpath_var=LD_LIBRARY_PATH
11775 shlibpath_overrides_runpath=yes
11776 hardcode_into_libs=yes
11777 if test "$with_gnu_ld" = yes; then
11778 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11779 else
11780 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11781 case $host_os in
11782 sco3.2v5*)
11783 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11785 esac
11787 sys_lib_dlsearch_path_spec='/usr/lib'
11790 tpf*)
11791 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11792 version_type=linux
11793 need_lib_prefix=no
11794 need_version=no
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796 shlibpath_var=LD_LIBRARY_PATH
11797 shlibpath_overrides_runpath=no
11798 hardcode_into_libs=yes
11801 uts4*)
11802 version_type=linux
11803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804 soname_spec='${libname}${release}${shared_ext}$major'
11805 shlibpath_var=LD_LIBRARY_PATH
11808 # Shared libraries for VwWorks, >= 7 only at this stage
11809 # and (fpic) still incompatible with "large" code models
11810 # in a few configurations. Only for RTP mode in any case,
11811 # and upon explicit request at configure time.
11812 vxworks7*)
11813 dynamic_linker=no
11814 case ${with_multisubdir}-${enable_shared} in
11815 *large*)
11817 *mrtp*-yes)
11818 version_type=linux
11819 need_lib_prefix=no
11820 need_version=no
11821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11822 soname_spec='${libname}${release}${shared_ext}$major'
11823 dynamic_linker="$host_os module_loader"
11825 esac
11828 dynamic_linker=no
11830 esac
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11832 $as_echo "$dynamic_linker" >&6; }
11833 test "$dynamic_linker" = no && can_build_shared=no
11835 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11836 if test "$GCC" = yes; then
11837 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11840 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11841 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11843 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11844 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11939 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11940 hardcode_action=
11941 if test -n "$hardcode_libdir_flag_spec" ||
11942 test -n "$runpath_var" ||
11943 test "X$hardcode_automatic" = "Xyes" ; then
11945 # We can hardcode non-existent directories.
11946 if test "$hardcode_direct" != no &&
11947 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11948 # have to relink, otherwise we might link with an installed library
11949 # when we should be linking with a yet-to-be-installed one
11950 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11951 test "$hardcode_minus_L" != no; then
11952 # Linking always hardcodes the temporary library directory.
11953 hardcode_action=relink
11954 else
11955 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11956 hardcode_action=immediate
11958 else
11959 # We cannot hardcode anything, or else we can only hardcode existing
11960 # directories.
11961 hardcode_action=unsupported
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11964 $as_echo "$hardcode_action" >&6; }
11966 if test "$hardcode_action" = relink ||
11967 test "$inherit_rpath" = yes; then
11968 # Fast installation is not supported
11969 enable_fast_install=no
11970 elif test "$shlibpath_overrides_runpath" = yes ||
11971 test "$enable_shared" = no; then
11972 # Fast installation is not necessary
11973 enable_fast_install=needless
11981 if test "x$enable_dlopen" != xyes; then
11982 enable_dlopen=unknown
11983 enable_dlopen_self=unknown
11984 enable_dlopen_self_static=unknown
11985 else
11986 lt_cv_dlopen=no
11987 lt_cv_dlopen_libs=
11989 case $host_os in
11990 beos*)
11991 lt_cv_dlopen="load_add_on"
11992 lt_cv_dlopen_libs=
11993 lt_cv_dlopen_self=yes
11996 mingw* | pw32* | cegcc*)
11997 lt_cv_dlopen="LoadLibrary"
11998 lt_cv_dlopen_libs=
12001 cygwin*)
12002 lt_cv_dlopen="dlopen"
12003 lt_cv_dlopen_libs=
12006 darwin*)
12007 # if libdl is installed we need to link against it
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12009 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12010 if ${ac_cv_lib_dl_dlopen+:} false; then :
12011 $as_echo_n "(cached) " >&6
12012 else
12013 ac_check_lib_save_LIBS=$LIBS
12014 LIBS="-ldl $LIBS"
12015 if test x$gcc_no_link = xyes; then
12016 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12021 /* Override any GCC internal prototype to avoid an error.
12022 Use char because int might match the return type of a GCC
12023 builtin and then its argument prototype would still apply. */
12024 #ifdef __cplusplus
12025 extern "C"
12026 #endif
12027 char dlopen ();
12029 main ()
12031 return dlopen ();
12033 return 0;
12035 _ACEOF
12036 if ac_fn_c_try_link "$LINENO"; then :
12037 ac_cv_lib_dl_dlopen=yes
12038 else
12039 ac_cv_lib_dl_dlopen=no
12041 rm -f core conftest.err conftest.$ac_objext \
12042 conftest$ac_exeext conftest.$ac_ext
12043 LIBS=$ac_check_lib_save_LIBS
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12046 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12047 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12048 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12049 else
12051 lt_cv_dlopen="dyld"
12052 lt_cv_dlopen_libs=
12053 lt_cv_dlopen_self=yes
12060 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12061 if test "x$ac_cv_func_shl_load" = xyes; then :
12062 lt_cv_dlopen="shl_load"
12063 else
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12065 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12066 if ${ac_cv_lib_dld_shl_load+:} false; then :
12067 $as_echo_n "(cached) " >&6
12068 else
12069 ac_check_lib_save_LIBS=$LIBS
12070 LIBS="-ldld $LIBS"
12071 if test x$gcc_no_link = xyes; then
12072 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h. */
12077 /* Override any GCC internal prototype to avoid an error.
12078 Use char because int might match the return type of a GCC
12079 builtin and then its argument prototype would still apply. */
12080 #ifdef __cplusplus
12081 extern "C"
12082 #endif
12083 char shl_load ();
12085 main ()
12087 return shl_load ();
12089 return 0;
12091 _ACEOF
12092 if ac_fn_c_try_link "$LINENO"; then :
12093 ac_cv_lib_dld_shl_load=yes
12094 else
12095 ac_cv_lib_dld_shl_load=no
12097 rm -f core conftest.err conftest.$ac_objext \
12098 conftest$ac_exeext conftest.$ac_ext
12099 LIBS=$ac_check_lib_save_LIBS
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12102 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12103 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12104 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12105 else
12106 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12107 if test "x$ac_cv_func_dlopen" = xyes; then :
12108 lt_cv_dlopen="dlopen"
12109 else
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12111 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12112 if ${ac_cv_lib_dl_dlopen+:} false; then :
12113 $as_echo_n "(cached) " >&6
12114 else
12115 ac_check_lib_save_LIBS=$LIBS
12116 LIBS="-ldl $LIBS"
12117 if test x$gcc_no_link = xyes; then
12118 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12121 /* end confdefs.h. */
12123 /* Override any GCC internal prototype to avoid an error.
12124 Use char because int might match the return type of a GCC
12125 builtin and then its argument prototype would still apply. */
12126 #ifdef __cplusplus
12127 extern "C"
12128 #endif
12129 char dlopen ();
12131 main ()
12133 return dlopen ();
12135 return 0;
12137 _ACEOF
12138 if ac_fn_c_try_link "$LINENO"; then :
12139 ac_cv_lib_dl_dlopen=yes
12140 else
12141 ac_cv_lib_dl_dlopen=no
12143 rm -f core conftest.err conftest.$ac_objext \
12144 conftest$ac_exeext conftest.$ac_ext
12145 LIBS=$ac_check_lib_save_LIBS
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12148 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12149 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12151 else
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12153 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12154 if ${ac_cv_lib_svld_dlopen+:} false; then :
12155 $as_echo_n "(cached) " >&6
12156 else
12157 ac_check_lib_save_LIBS=$LIBS
12158 LIBS="-lsvld $LIBS"
12159 if test x$gcc_no_link = xyes; then
12160 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h. */
12165 /* Override any GCC internal prototype to avoid an error.
12166 Use char because int might match the return type of a GCC
12167 builtin and then its argument prototype would still apply. */
12168 #ifdef __cplusplus
12169 extern "C"
12170 #endif
12171 char dlopen ();
12173 main ()
12175 return dlopen ();
12177 return 0;
12179 _ACEOF
12180 if ac_fn_c_try_link "$LINENO"; then :
12181 ac_cv_lib_svld_dlopen=yes
12182 else
12183 ac_cv_lib_svld_dlopen=no
12185 rm -f core conftest.err conftest.$ac_objext \
12186 conftest$ac_exeext conftest.$ac_ext
12187 LIBS=$ac_check_lib_save_LIBS
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12190 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12191 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12192 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12193 else
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12195 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12196 if ${ac_cv_lib_dld_dld_link+:} false; then :
12197 $as_echo_n "(cached) " >&6
12198 else
12199 ac_check_lib_save_LIBS=$LIBS
12200 LIBS="-ldld $LIBS"
12201 if test x$gcc_no_link = xyes; then
12202 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205 /* end confdefs.h. */
12207 /* Override any GCC internal prototype to avoid an error.
12208 Use char because int might match the return type of a GCC
12209 builtin and then its argument prototype would still apply. */
12210 #ifdef __cplusplus
12211 extern "C"
12212 #endif
12213 char dld_link ();
12215 main ()
12217 return dld_link ();
12219 return 0;
12221 _ACEOF
12222 if ac_fn_c_try_link "$LINENO"; then :
12223 ac_cv_lib_dld_dld_link=yes
12224 else
12225 ac_cv_lib_dld_dld_link=no
12227 rm -f core conftest.err conftest.$ac_objext \
12228 conftest$ac_exeext conftest.$ac_ext
12229 LIBS=$ac_check_lib_save_LIBS
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12232 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12233 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12234 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12253 esac
12255 if test "x$lt_cv_dlopen" != xno; then
12256 enable_dlopen=yes
12257 else
12258 enable_dlopen=no
12261 case $lt_cv_dlopen in
12262 dlopen)
12263 save_CPPFLAGS="$CPPFLAGS"
12264 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12266 save_LDFLAGS="$LDFLAGS"
12267 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12269 save_LIBS="$LIBS"
12270 LIBS="$lt_cv_dlopen_libs $LIBS"
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12273 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12274 if ${lt_cv_dlopen_self+:} false; then :
12275 $as_echo_n "(cached) " >&6
12276 else
12277 if test "$cross_compiling" = yes; then :
12278 lt_cv_dlopen_self=cross
12279 else
12280 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12281 lt_status=$lt_dlunknown
12282 cat > conftest.$ac_ext <<_LT_EOF
12283 #line 12283 "configure"
12284 #include "confdefs.h"
12286 #if HAVE_DLFCN_H
12287 #include <dlfcn.h>
12288 #endif
12290 #include <stdio.h>
12292 #ifdef RTLD_GLOBAL
12293 # define LT_DLGLOBAL RTLD_GLOBAL
12294 #else
12295 # ifdef DL_GLOBAL
12296 # define LT_DLGLOBAL DL_GLOBAL
12297 # else
12298 # define LT_DLGLOBAL 0
12299 # endif
12300 #endif
12302 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12303 find out it does not work in some platform. */
12304 #ifndef LT_DLLAZY_OR_NOW
12305 # ifdef RTLD_LAZY
12306 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12307 # else
12308 # ifdef DL_LAZY
12309 # define LT_DLLAZY_OR_NOW DL_LAZY
12310 # else
12311 # ifdef RTLD_NOW
12312 # define LT_DLLAZY_OR_NOW RTLD_NOW
12313 # else
12314 # ifdef DL_NOW
12315 # define LT_DLLAZY_OR_NOW DL_NOW
12316 # else
12317 # define LT_DLLAZY_OR_NOW 0
12318 # endif
12319 # endif
12320 # endif
12321 # endif
12322 #endif
12324 /* When -fvisbility=hidden is used, assume the code has been annotated
12325 correspondingly for the symbols needed. */
12326 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12327 void fnord () __attribute__((visibility("default")));
12328 #endif
12330 void fnord () { int i=42; }
12331 int main ()
12333 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12334 int status = $lt_dlunknown;
12336 if (self)
12338 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12339 else
12341 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12342 else puts (dlerror ());
12344 /* dlclose (self); */
12346 else
12347 puts (dlerror ());
12349 return status;
12351 _LT_EOF
12352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12353 (eval $ac_link) 2>&5
12354 ac_status=$?
12355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12356 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12357 (./conftest; exit; ) >&5 2>/dev/null
12358 lt_status=$?
12359 case x$lt_status in
12360 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12361 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12362 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12363 esac
12364 else :
12365 # compilation failed
12366 lt_cv_dlopen_self=no
12369 rm -fr conftest*
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12374 $as_echo "$lt_cv_dlopen_self" >&6; }
12376 if test "x$lt_cv_dlopen_self" = xyes; then
12377 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12379 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12380 if ${lt_cv_dlopen_self_static+:} false; then :
12381 $as_echo_n "(cached) " >&6
12382 else
12383 if test "$cross_compiling" = yes; then :
12384 lt_cv_dlopen_self_static=cross
12385 else
12386 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12387 lt_status=$lt_dlunknown
12388 cat > conftest.$ac_ext <<_LT_EOF
12389 #line 12389 "configure"
12390 #include "confdefs.h"
12392 #if HAVE_DLFCN_H
12393 #include <dlfcn.h>
12394 #endif
12396 #include <stdio.h>
12398 #ifdef RTLD_GLOBAL
12399 # define LT_DLGLOBAL RTLD_GLOBAL
12400 #else
12401 # ifdef DL_GLOBAL
12402 # define LT_DLGLOBAL DL_GLOBAL
12403 # else
12404 # define LT_DLGLOBAL 0
12405 # endif
12406 #endif
12408 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12409 find out it does not work in some platform. */
12410 #ifndef LT_DLLAZY_OR_NOW
12411 # ifdef RTLD_LAZY
12412 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12413 # else
12414 # ifdef DL_LAZY
12415 # define LT_DLLAZY_OR_NOW DL_LAZY
12416 # else
12417 # ifdef RTLD_NOW
12418 # define LT_DLLAZY_OR_NOW RTLD_NOW
12419 # else
12420 # ifdef DL_NOW
12421 # define LT_DLLAZY_OR_NOW DL_NOW
12422 # else
12423 # define LT_DLLAZY_OR_NOW 0
12424 # endif
12425 # endif
12426 # endif
12427 # endif
12428 #endif
12430 /* When -fvisbility=hidden is used, assume the code has been annotated
12431 correspondingly for the symbols needed. */
12432 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12433 void fnord () __attribute__((visibility("default")));
12434 #endif
12436 void fnord () { int i=42; }
12437 int main ()
12439 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12440 int status = $lt_dlunknown;
12442 if (self)
12444 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12445 else
12447 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12448 else puts (dlerror ());
12450 /* dlclose (self); */
12452 else
12453 puts (dlerror ());
12455 return status;
12457 _LT_EOF
12458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12459 (eval $ac_link) 2>&5
12460 ac_status=$?
12461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12462 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12463 (./conftest; exit; ) >&5 2>/dev/null
12464 lt_status=$?
12465 case x$lt_status in
12466 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12467 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12468 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12469 esac
12470 else :
12471 # compilation failed
12472 lt_cv_dlopen_self_static=no
12475 rm -fr conftest*
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12480 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12483 CPPFLAGS="$save_CPPFLAGS"
12484 LDFLAGS="$save_LDFLAGS"
12485 LIBS="$save_LIBS"
12487 esac
12489 case $lt_cv_dlopen_self in
12490 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12491 *) enable_dlopen_self=unknown ;;
12492 esac
12494 case $lt_cv_dlopen_self_static in
12495 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12496 *) enable_dlopen_self_static=unknown ;;
12497 esac
12516 striplib=
12517 old_striplib=
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12519 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12520 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12521 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12522 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12524 $as_echo "yes" >&6; }
12525 else
12526 # FIXME - insert some real tests, host_os isn't really good enough
12527 case $host_os in
12528 darwin*)
12529 if test -n "$STRIP" ; then
12530 striplib="$STRIP -x"
12531 old_striplib="$STRIP -S"
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12533 $as_echo "yes" >&6; }
12534 else
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536 $as_echo "no" >&6; }
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541 $as_echo "no" >&6; }
12543 esac
12557 # Report which library types will actually be built
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12559 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12561 $as_echo "$can_build_shared" >&6; }
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12564 $as_echo_n "checking whether to build shared libraries... " >&6; }
12565 test "$can_build_shared" = "no" && enable_shared=no
12567 # On AIX, shared libraries and static libraries use the same namespace, and
12568 # are all built from PIC.
12569 case $host_os in
12570 aix3*)
12571 test "$enable_shared" = yes && enable_static=no
12572 if test -n "$RANLIB"; then
12573 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12574 postinstall_cmds='$RANLIB $lib'
12578 aix[4-9]*)
12579 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12580 test "$enable_shared" = yes && enable_static=no
12583 esac
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12585 $as_echo "$enable_shared" >&6; }
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12588 $as_echo_n "checking whether to build static libraries... " >&6; }
12589 # Make sure either enable_shared or enable_static is yes.
12590 test "$enable_shared" = yes || enable_static=yes
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12592 $as_echo "$enable_static" >&6; }
12598 ac_ext=c
12599 ac_cpp='$CPP $CPPFLAGS'
12600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12604 CC="$lt_save_CC"
12606 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12607 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12608 (test "X$CXX" != "Xg++"))) ; then
12609 ac_ext=cpp
12610 ac_cpp='$CXXCPP $CPPFLAGS'
12611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12615 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12616 if test -z "$CXXCPP"; then
12617 if ${ac_cv_prog_CXXCPP+:} false; then :
12618 $as_echo_n "(cached) " >&6
12619 else
12620 # Double quotes because CXXCPP needs to be expanded
12621 for CXXCPP in "$CXX -E" "/lib/cpp"
12623 ac_preproc_ok=false
12624 for ac_cxx_preproc_warn_flag in '' yes
12626 # Use a header file that comes with gcc, so configuring glibc
12627 # with a fresh cross-compiler works.
12628 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12629 # <limits.h> exists even on freestanding compilers.
12630 # On the NeXT, cc -E runs the code through the compiler's parser,
12631 # not just through cpp. "Syntax error" is here to catch this case.
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12634 #ifdef __STDC__
12635 # include <limits.h>
12636 #else
12637 # include <assert.h>
12638 #endif
12639 Syntax error
12640 _ACEOF
12641 if ac_fn_cxx_try_cpp "$LINENO"; then :
12643 else
12644 # Broken: fails on valid input.
12645 continue
12647 rm -f conftest.err conftest.i conftest.$ac_ext
12649 # OK, works on sane cases. Now check whether nonexistent headers
12650 # can be detected and how.
12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12653 #include <ac_nonexistent.h>
12654 _ACEOF
12655 if ac_fn_cxx_try_cpp "$LINENO"; then :
12656 # Broken: success on invalid input.
12657 continue
12658 else
12659 # Passes both tests.
12660 ac_preproc_ok=:
12661 break
12663 rm -f conftest.err conftest.i conftest.$ac_ext
12665 done
12666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12667 rm -f conftest.i conftest.err conftest.$ac_ext
12668 if $ac_preproc_ok; then :
12669 break
12672 done
12673 ac_cv_prog_CXXCPP=$CXXCPP
12676 CXXCPP=$ac_cv_prog_CXXCPP
12677 else
12678 ac_cv_prog_CXXCPP=$CXXCPP
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12681 $as_echo "$CXXCPP" >&6; }
12682 ac_preproc_ok=false
12683 for ac_cxx_preproc_warn_flag in '' yes
12685 # Use a header file that comes with gcc, so configuring glibc
12686 # with a fresh cross-compiler works.
12687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12688 # <limits.h> exists even on freestanding compilers.
12689 # On the NeXT, cc -E runs the code through the compiler's parser,
12690 # not just through cpp. "Syntax error" is here to catch this case.
12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12693 #ifdef __STDC__
12694 # include <limits.h>
12695 #else
12696 # include <assert.h>
12697 #endif
12698 Syntax error
12699 _ACEOF
12700 if ac_fn_cxx_try_cpp "$LINENO"; then :
12702 else
12703 # Broken: fails on valid input.
12704 continue
12706 rm -f conftest.err conftest.i conftest.$ac_ext
12708 # OK, works on sane cases. Now check whether nonexistent headers
12709 # can be detected and how.
12710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12711 /* end confdefs.h. */
12712 #include <ac_nonexistent.h>
12713 _ACEOF
12714 if ac_fn_cxx_try_cpp "$LINENO"; then :
12715 # Broken: success on invalid input.
12716 continue
12717 else
12718 # Passes both tests.
12719 ac_preproc_ok=:
12720 break
12722 rm -f conftest.err conftest.i conftest.$ac_ext
12724 done
12725 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12726 rm -f conftest.i conftest.err conftest.$ac_ext
12727 if $ac_preproc_ok; then :
12729 else
12730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12732 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12733 See \`config.log' for more details" "$LINENO" 5; }
12736 ac_ext=c
12737 ac_cpp='$CPP $CPPFLAGS'
12738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12742 else
12743 _lt_caught_CXX_error=yes
12746 ac_ext=cpp
12747 ac_cpp='$CXXCPP $CPPFLAGS'
12748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12752 archive_cmds_need_lc_CXX=no
12753 allow_undefined_flag_CXX=
12754 always_export_symbols_CXX=no
12755 archive_expsym_cmds_CXX=
12756 compiler_needs_object_CXX=no
12757 export_dynamic_flag_spec_CXX=
12758 hardcode_direct_CXX=no
12759 hardcode_direct_absolute_CXX=no
12760 hardcode_libdir_flag_spec_CXX=
12761 hardcode_libdir_flag_spec_ld_CXX=
12762 hardcode_libdir_separator_CXX=
12763 hardcode_minus_L_CXX=no
12764 hardcode_shlibpath_var_CXX=unsupported
12765 hardcode_automatic_CXX=no
12766 inherit_rpath_CXX=no
12767 module_cmds_CXX=
12768 module_expsym_cmds_CXX=
12769 link_all_deplibs_CXX=unknown
12770 old_archive_cmds_CXX=$old_archive_cmds
12771 reload_flag_CXX=$reload_flag
12772 reload_cmds_CXX=$reload_cmds
12773 no_undefined_flag_CXX=
12774 whole_archive_flag_spec_CXX=
12775 enable_shared_with_static_runtimes_CXX=no
12777 # Source file extension for C++ test sources.
12778 ac_ext=cpp
12780 # Object file extension for compiled C++ test sources.
12781 objext=o
12782 objext_CXX=$objext
12784 # No sense in running all these tests if we already determined that
12785 # the CXX compiler isn't working. Some variables (like enable_shared)
12786 # are currently assumed to apply to all compilers on this platform,
12787 # and will be corrupted by setting them based on a non-working compiler.
12788 if test "$_lt_caught_CXX_error" != yes; then
12789 # Code to be used in simple compile tests
12790 lt_simple_compile_test_code="int some_variable = 0;"
12792 # Code to be used in simple link tests
12793 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12795 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12802 # If no C compiler was specified, use CC.
12803 LTCC=${LTCC-"$CC"}
12805 # If no C compiler flags were specified, use CFLAGS.
12806 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12808 # Allow CC to be a program name with arguments.
12809 compiler=$CC
12812 # save warnings/boilerplate of simple test code
12813 ac_outfile=conftest.$ac_objext
12814 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12815 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12816 _lt_compiler_boilerplate=`cat conftest.err`
12817 $RM conftest*
12819 ac_outfile=conftest.$ac_objext
12820 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12821 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12822 _lt_linker_boilerplate=`cat conftest.err`
12823 $RM -r conftest*
12826 # Allow CC to be a program name with arguments.
12827 lt_save_CC=$CC
12828 lt_save_LD=$LD
12829 lt_save_GCC=$GCC
12830 GCC=$GXX
12831 lt_save_with_gnu_ld=$with_gnu_ld
12832 lt_save_path_LD=$lt_cv_path_LD
12833 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12834 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12835 else
12836 $as_unset lt_cv_prog_gnu_ld
12838 if test -n "${lt_cv_path_LDCXX+set}"; then
12839 lt_cv_path_LD=$lt_cv_path_LDCXX
12840 else
12841 $as_unset lt_cv_path_LD
12843 test -z "${LDCXX+set}" || LD=$LDCXX
12844 CC=${CXX-"c++"}
12845 compiler=$CC
12846 compiler_CXX=$CC
12847 for cc_temp in $compiler""; do
12848 case $cc_temp in
12849 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12850 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12851 \-*) ;;
12852 *) break;;
12853 esac
12854 done
12855 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12858 if test -n "$compiler"; then
12859 # We don't want -fno-exception when compiling C++ code, so set the
12860 # no_builtin_flag separately
12861 if test "$GXX" = yes; then
12862 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12863 else
12864 lt_prog_compiler_no_builtin_flag_CXX=
12867 if test "$GXX" = yes; then
12868 # Set up default GNU C++ configuration
12872 # Check whether --with-gnu-ld was given.
12873 if test "${with_gnu_ld+set}" = set; then :
12874 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12875 else
12876 with_gnu_ld=no
12879 ac_prog=ld
12880 if test "$GCC" = yes; then
12881 # Check if gcc -print-prog-name=ld gives a path.
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12883 $as_echo_n "checking for ld used by $CC... " >&6; }
12884 case $host in
12885 *-*-mingw*)
12886 # gcc leaves a trailing carriage return which upsets mingw
12887 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12889 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12890 esac
12891 case $ac_prog in
12892 # Accept absolute paths.
12893 [\\/]* | ?:[\\/]*)
12894 re_direlt='/[^/][^/]*/\.\./'
12895 # Canonicalize the pathname of ld
12896 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12897 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12898 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12899 done
12900 test -z "$LD" && LD="$ac_prog"
12903 # If it fails, then pretend we aren't using GCC.
12904 ac_prog=ld
12907 # If it is relative, then search for the first ld in PATH.
12908 with_gnu_ld=unknown
12910 esac
12911 elif test "$with_gnu_ld" = yes; then
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12913 $as_echo_n "checking for GNU ld... " >&6; }
12914 else
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12916 $as_echo_n "checking for non-GNU ld... " >&6; }
12918 if ${lt_cv_path_LD+:} false; then :
12919 $as_echo_n "(cached) " >&6
12920 else
12921 if test -z "$LD"; then
12922 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12923 for ac_dir in $PATH; do
12924 IFS="$lt_save_ifs"
12925 test -z "$ac_dir" && ac_dir=.
12926 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12927 lt_cv_path_LD="$ac_dir/$ac_prog"
12928 # Check to see if the program is GNU ld. I'd rather use --version,
12929 # but apparently some variants of GNU ld only accept -v.
12930 # Break only if it was the GNU/non-GNU ld that we prefer.
12931 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12932 *GNU* | *'with BFD'*)
12933 test "$with_gnu_ld" != no && break
12936 test "$with_gnu_ld" != yes && break
12938 esac
12940 done
12941 IFS="$lt_save_ifs"
12942 else
12943 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12947 LD="$lt_cv_path_LD"
12948 if test -n "$LD"; then
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12950 $as_echo "$LD" >&6; }
12951 else
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12953 $as_echo "no" >&6; }
12955 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12957 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12958 if ${lt_cv_prog_gnu_ld+:} false; then :
12959 $as_echo_n "(cached) " >&6
12960 else
12961 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12962 case `$LD -v 2>&1 </dev/null` in
12963 *GNU* | *'with BFD'*)
12964 lt_cv_prog_gnu_ld=yes
12967 lt_cv_prog_gnu_ld=no
12969 esac
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12972 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12973 with_gnu_ld=$lt_cv_prog_gnu_ld
12981 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12982 # archiving commands below assume that GNU ld is being used.
12983 if test "$with_gnu_ld" = yes; then
12984 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12985 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12987 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12988 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12990 # If archive_cmds runs LD, not CC, wlarc should be empty
12991 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12992 # investigate it a little bit more. (MM)
12993 wlarc='${wl}'
12995 # ancient GNU ld didn't support --whole-archive et. al.
12996 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12997 $GREP 'no-whole-archive' > /dev/null; then
12998 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12999 else
13000 whole_archive_flag_spec_CXX=
13002 else
13003 with_gnu_ld=no
13004 wlarc=
13006 # A generic and very simple default shared library creation
13007 # command for GNU C++ for the case where it uses the native
13008 # linker, instead of GNU ld. If possible, this setting should
13009 # overridden to take advantage of the native linker features on
13010 # the platform it is being used on.
13011 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13014 # Commands to make compiler produce verbose output that lists
13015 # what "hidden" libraries, object files and flags are used when
13016 # linking a shared library.
13017 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13019 else
13020 GXX=no
13021 with_gnu_ld=no
13022 wlarc=
13025 # PORTME: fill in a description of your system's C++ link characteristics
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13027 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13028 ld_shlibs_CXX=yes
13029 case $host_os in
13030 aix3*)
13031 # FIXME: insert proper C++ library support
13032 ld_shlibs_CXX=no
13034 aix[4-9]*)
13035 if test "$host_cpu" = ia64; then
13036 # On IA64, the linker does run time linking by default, so we don't
13037 # have to do anything special.
13038 aix_use_runtimelinking=no
13039 exp_sym_flag='-Bexport'
13040 no_entry_flag=""
13041 else
13042 aix_use_runtimelinking=no
13044 # Test if we are trying to use run time linking or normal
13045 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13046 # need to do runtime linking.
13047 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13048 for ld_flag in $LDFLAGS; do
13049 case $ld_flag in
13050 *-brtl*)
13051 aix_use_runtimelinking=yes
13052 break
13054 esac
13055 done
13057 esac
13059 exp_sym_flag='-bexport'
13060 no_entry_flag='-bnoentry'
13063 # When large executables or shared objects are built, AIX ld can
13064 # have problems creating the table of contents. If linking a library
13065 # or program results in "error TOC overflow" add -mminimal-toc to
13066 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13067 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13069 archive_cmds_CXX=''
13070 hardcode_direct_CXX=yes
13071 hardcode_direct_absolute_CXX=yes
13072 hardcode_libdir_separator_CXX=':'
13073 link_all_deplibs_CXX=yes
13074 file_list_spec_CXX='${wl}-f,'
13076 if test "$GXX" = yes; then
13077 case $host_os in aix4.[012]|aix4.[012].*)
13078 # We only want to do this on AIX 4.2 and lower, the check
13079 # below for broken collect2 doesn't work under 4.3+
13080 collect2name=`${CC} -print-prog-name=collect2`
13081 if test -f "$collect2name" &&
13082 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13083 then
13084 # We have reworked collect2
13086 else
13087 # We have old collect2
13088 hardcode_direct_CXX=unsupported
13089 # It fails to find uninstalled libraries when the uninstalled
13090 # path is not listed in the libpath. Setting hardcode_minus_L
13091 # to unsupported forces relinking
13092 hardcode_minus_L_CXX=yes
13093 hardcode_libdir_flag_spec_CXX='-L$libdir'
13094 hardcode_libdir_separator_CXX=
13096 esac
13097 shared_flag='-shared'
13098 if test "$aix_use_runtimelinking" = yes; then
13099 shared_flag="$shared_flag "'${wl}-G'
13101 else
13102 # not using gcc
13103 if test "$host_cpu" = ia64; then
13104 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13105 # chokes on -Wl,-G. The following line is correct:
13106 shared_flag='-G'
13107 else
13108 if test "$aix_use_runtimelinking" = yes; then
13109 shared_flag='${wl}-G'
13110 else
13111 shared_flag='${wl}-bM:SRE'
13116 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13117 # It seems that -bexpall does not export symbols beginning with
13118 # underscore (_), so it is better to generate a list of symbols to
13119 # export.
13120 always_export_symbols_CXX=yes
13121 if test "$aix_use_runtimelinking" = yes; then
13122 # Warning - without using the other runtime loading flags (-brtl),
13123 # -berok will link without error, but may produce a broken library.
13124 allow_undefined_flag_CXX='-berok'
13125 # Determine the default libpath from the value encoded in an empty
13126 # executable.
13127 if test x$gcc_no_link = xyes; then
13128 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13134 main ()
13138 return 0;
13140 _ACEOF
13141 if ac_fn_cxx_try_link "$LINENO"; then :
13143 lt_aix_libpath_sed='
13144 /Import File Strings/,/^$/ {
13145 /^0/ {
13146 s/^0 *\(.*\)$/\1/
13150 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13151 # Check for a 64-bit object if we didn't find anything.
13152 if test -z "$aix_libpath"; then
13153 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13156 rm -f core conftest.err conftest.$ac_objext \
13157 conftest$ac_exeext conftest.$ac_ext
13158 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13160 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13162 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13163 else
13164 if test "$host_cpu" = ia64; then
13165 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13166 allow_undefined_flag_CXX="-z nodefs"
13167 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13168 else
13169 # Determine the default libpath from the value encoded in an
13170 # empty executable.
13171 if test x$gcc_no_link = xyes; then
13172 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h. */
13178 main ()
13182 return 0;
13184 _ACEOF
13185 if ac_fn_cxx_try_link "$LINENO"; then :
13187 lt_aix_libpath_sed='
13188 /Import File Strings/,/^$/ {
13189 /^0/ {
13190 s/^0 *\(.*\)$/\1/
13194 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13195 # Check for a 64-bit object if we didn't find anything.
13196 if test -z "$aix_libpath"; then
13197 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13200 rm -f core conftest.err conftest.$ac_objext \
13201 conftest$ac_exeext conftest.$ac_ext
13202 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13204 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13205 # Warning - without using the other run time loading flags,
13206 # -berok will link without error, but may produce a broken library.
13207 no_undefined_flag_CXX=' ${wl}-bernotok'
13208 allow_undefined_flag_CXX=' ${wl}-berok'
13209 if test "$with_gnu_ld" = yes; then
13210 # We only use this code for GNU lds that support --whole-archive.
13211 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13212 else
13213 # Exported symbols can be pulled into shared objects from archives
13214 whole_archive_flag_spec_CXX='$convenience'
13216 archive_cmds_need_lc_CXX=yes
13217 # This is similar to how AIX traditionally builds its shared
13218 # libraries.
13219 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13224 beos*)
13225 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13226 allow_undefined_flag_CXX=unsupported
13227 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13228 # support --undefined. This deserves some investigation. FIXME
13229 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13230 else
13231 ld_shlibs_CXX=no
13235 chorus*)
13236 case $cc_basename in
13238 # FIXME: insert proper C++ library support
13239 ld_shlibs_CXX=no
13241 esac
13244 cygwin* | mingw* | pw32* | cegcc*)
13245 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13246 # as there is no search path for DLLs.
13247 hardcode_libdir_flag_spec_CXX='-L$libdir'
13248 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13249 allow_undefined_flag_CXX=unsupported
13250 always_export_symbols_CXX=no
13251 enable_shared_with_static_runtimes_CXX=yes
13253 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13254 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13255 # If the export-symbols file already is a .def file (1st line
13256 # is EXPORTS), use it as is; otherwise, prepend...
13257 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13258 cp $export_symbols $output_objdir/$soname.def;
13259 else
13260 echo EXPORTS > $output_objdir/$soname.def;
13261 cat $export_symbols >> $output_objdir/$soname.def;
13263 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13264 else
13265 ld_shlibs_CXX=no
13268 darwin* | rhapsody*)
13272 # Publish an arg to allow the user to select that Darwin host (and target)
13273 # libraries should be given install-names like @rpath/libfoo.dylib. This
13274 # requires that the user of the library then adds an 'rpath' to the DSO that
13275 # needs access.
13276 # NOTE: there are defaults below, for systems that support rpaths. The person
13277 # configuring can override the defaults for any system version that supports
13278 # them - they are, however, forced off for system versions without support.
13279 # Check whether --enable-darwin-at-rpath was given.
13280 if test "${enable_darwin_at_rpath+set}" = set; then :
13281 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
13282 # This is not supported before macOS 10.5 / Darwin9.
13283 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13284 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
13286 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
13287 enable_darwin_at_rpath=no
13289 esac
13291 else
13292 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13293 # As above, before 10.5 / Darwin9 this does not work.
13294 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13295 enable_darwin_at_rpath=no
13298 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
13299 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
13300 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
13301 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
13303 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
13304 enable_darwin_at_rpath=yes
13306 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
13307 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
13309 esac
13314 archive_cmds_need_lc_CXX=no
13315 hardcode_direct_CXX=no
13316 hardcode_automatic_CXX=yes
13317 hardcode_shlibpath_var_CXX=unsupported
13318 if test "$lt_cv_ld_force_load" = "yes"; then
13319 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13320 else
13321 whole_archive_flag_spec_CXX=''
13323 link_all_deplibs_CXX=yes
13324 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13325 case $cc_basename in
13326 ifort*) _lt_dar_can_shared=yes ;;
13327 *) _lt_dar_can_shared=$GCC ;;
13328 esac
13329 if test "$_lt_dar_can_shared" = "yes"; then
13330 output_verbose_link_cmd=func_echo_all
13331 _lt_install_name='\$rpath/\$soname'
13332 if test "x$enable_darwin_at_rpath" = "xyes"; then
13333 _lt_install_name='@rpath/\$soname'
13335 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
13336 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13337 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
13338 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13339 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13340 _lt_install_name='\$rpath/\$soname'
13341 if test "x$enable_darwin_at_rpath" = "xyes"; then
13342 _lt_install_name='@rpath/\$soname'
13344 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring${_lt_dsymutil}"
13345 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13348 else
13349 ld_shlibs_CXX=no
13354 dgux*)
13355 case $cc_basename in
13356 ec++*)
13357 # FIXME: insert proper C++ library support
13358 ld_shlibs_CXX=no
13360 ghcx*)
13361 # Green Hills C++ Compiler
13362 # FIXME: insert proper C++ library support
13363 ld_shlibs_CXX=no
13366 # FIXME: insert proper C++ library support
13367 ld_shlibs_CXX=no
13369 esac
13372 freebsd2.*)
13373 # C++ shared libraries reported to be fairly broken before
13374 # switch to ELF
13375 ld_shlibs_CXX=no
13378 freebsd-elf*)
13379 archive_cmds_need_lc_CXX=no
13382 freebsd* | dragonfly*)
13383 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13384 # conventions
13385 ld_shlibs_CXX=yes
13388 gnu*)
13391 haiku*)
13392 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13393 link_all_deplibs_CXX=yes
13396 hpux9*)
13397 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13398 hardcode_libdir_separator_CXX=:
13399 export_dynamic_flag_spec_CXX='${wl}-E'
13400 hardcode_direct_CXX=yes
13401 hardcode_minus_L_CXX=yes # Not in the search PATH,
13402 # but as the default
13403 # location of the library.
13405 case $cc_basename in
13406 CC*)
13407 # FIXME: insert proper C++ library support
13408 ld_shlibs_CXX=no
13410 aCC*)
13411 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13412 # Commands to make compiler produce verbose output that lists
13413 # what "hidden" libraries, object files and flags are used when
13414 # linking a shared library.
13416 # There doesn't appear to be a way to prevent this compiler from
13417 # explicitly linking system object files so we need to strip them
13418 # from the output so that they don't get included in the library
13419 # dependencies.
13420 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13423 if test "$GXX" = yes; then
13424 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13425 else
13426 # FIXME: insert proper C++ library support
13427 ld_shlibs_CXX=no
13430 esac
13433 hpux10*|hpux11*)
13434 if test $with_gnu_ld = no; then
13435 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13436 hardcode_libdir_separator_CXX=:
13438 case $host_cpu in
13439 hppa*64*|ia64*)
13442 export_dynamic_flag_spec_CXX='${wl}-E'
13444 esac
13446 case $host_cpu in
13447 hppa*64*|ia64*)
13448 hardcode_direct_CXX=no
13449 hardcode_shlibpath_var_CXX=no
13452 hardcode_direct_CXX=yes
13453 hardcode_direct_absolute_CXX=yes
13454 hardcode_minus_L_CXX=yes # Not in the search PATH,
13455 # but as the default
13456 # location of the library.
13458 esac
13460 case $cc_basename in
13461 CC*)
13462 # FIXME: insert proper C++ library support
13463 ld_shlibs_CXX=no
13465 aCC*)
13466 case $host_cpu in
13467 hppa*64*)
13468 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13470 ia64*)
13471 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13474 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13476 esac
13477 # Commands to make compiler produce verbose output that lists
13478 # what "hidden" libraries, object files and flags are used when
13479 # linking a shared library.
13481 # There doesn't appear to be a way to prevent this compiler from
13482 # explicitly linking system object files so we need to strip them
13483 # from the output so that they don't get included in the library
13484 # dependencies.
13485 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13488 if test "$GXX" = yes; then
13489 if test $with_gnu_ld = no; then
13490 case $host_cpu in
13491 hppa*64*)
13492 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13494 ia64*)
13495 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13498 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13500 esac
13502 else
13503 # FIXME: insert proper C++ library support
13504 ld_shlibs_CXX=no
13507 esac
13510 interix[3-9]*)
13511 hardcode_direct_CXX=no
13512 hardcode_shlibpath_var_CXX=no
13513 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13514 export_dynamic_flag_spec_CXX='${wl}-E'
13515 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13516 # Instead, shared libraries are loaded at an image base (0x10000000 by
13517 # default) and relocated if they conflict, which is a slow very memory
13518 # consuming and fragmenting process. To avoid this, we pick a random,
13519 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13520 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13521 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13522 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13524 irix5* | irix6*)
13525 case $cc_basename in
13526 CC*)
13527 # SGI C++
13528 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13530 # Archives containing C++ object files must be created using
13531 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13532 # necessary to make sure instantiated templates are included
13533 # in the archive.
13534 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13537 if test "$GXX" = yes; then
13538 if test "$with_gnu_ld" = no; then
13539 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13540 else
13541 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13544 link_all_deplibs_CXX=yes
13546 esac
13547 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13548 hardcode_libdir_separator_CXX=:
13549 inherit_rpath_CXX=yes
13552 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13553 case $cc_basename in
13554 KCC*)
13555 # Kuck and Associates, Inc. (KAI) C++ Compiler
13557 # KCC will only create a shared library if the output file
13558 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13559 # to its proper name (with version) after linking.
13560 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13561 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13562 # Commands to make compiler produce verbose output that lists
13563 # what "hidden" libraries, object files and flags are used when
13564 # linking a shared library.
13566 # There doesn't appear to be a way to prevent this compiler from
13567 # explicitly linking system object files so we need to strip them
13568 # from the output so that they don't get included in the library
13569 # dependencies.
13570 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13572 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13573 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13575 # Archives containing C++ object files must be created using
13576 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13577 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13579 icpc* | ecpc* )
13580 # Intel C++
13581 with_gnu_ld=yes
13582 # version 8.0 and above of icpc choke on multiply defined symbols
13583 # if we add $predep_objects and $postdep_objects, however 7.1 and
13584 # earlier do not add the objects themselves.
13585 case `$CC -V 2>&1` in
13586 *"Version 7."*)
13587 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13588 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13590 *) # Version 8.0 or newer
13591 tmp_idyn=
13592 case $host_cpu in
13593 ia64*) tmp_idyn=' -i_dynamic';;
13594 esac
13595 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13596 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13598 esac
13599 archive_cmds_need_lc_CXX=no
13600 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13601 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13602 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13604 pgCC* | pgcpp*)
13605 # Portland Group C++ compiler
13606 case `$CC -V` in
13607 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13608 prelink_cmds_CXX='tpldir=Template.dir~
13609 rm -rf $tpldir~
13610 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13611 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13612 old_archive_cmds_CXX='tpldir=Template.dir~
13613 rm -rf $tpldir~
13614 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13615 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13616 $RANLIB $oldlib'
13617 archive_cmds_CXX='tpldir=Template.dir~
13618 rm -rf $tpldir~
13619 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13620 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13621 archive_expsym_cmds_CXX='tpldir=Template.dir~
13622 rm -rf $tpldir~
13623 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13624 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13626 *) # Version 6 and above use weak symbols
13627 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13628 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13630 esac
13632 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13633 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13634 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13636 cxx*)
13637 # Compaq C++
13638 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13639 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13641 runpath_var=LD_RUN_PATH
13642 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13643 hardcode_libdir_separator_CXX=:
13645 # Commands to make compiler produce verbose output that lists
13646 # what "hidden" libraries, object files and flags are used when
13647 # linking a shared library.
13649 # There doesn't appear to be a way to prevent this compiler from
13650 # explicitly linking system object files so we need to strip them
13651 # from the output so that they don't get included in the library
13652 # dependencies.
13653 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13655 xl* | mpixl* | bgxl*)
13656 # IBM XL 8.0 on PPC, with GNU ld
13657 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13658 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13659 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13660 if test "x$supports_anon_versioning" = xyes; then
13661 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13662 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13663 echo "local: *; };" >> $output_objdir/$libname.ver~
13664 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13668 case `$CC -V 2>&1 | sed 5q` in
13669 *Sun\ C*)
13670 # Sun C++ 5.9
13671 no_undefined_flag_CXX=' -zdefs'
13672 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13673 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13674 hardcode_libdir_flag_spec_CXX='-R$libdir'
13675 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13676 compiler_needs_object_CXX=yes
13678 # Not sure whether something based on
13679 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13680 # would be better.
13681 output_verbose_link_cmd='func_echo_all'
13683 # Archives containing C++ object files must be created using
13684 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13685 # necessary to make sure instantiated templates are included
13686 # in the archive.
13687 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13689 esac
13691 esac
13694 lynxos*)
13695 # FIXME: insert proper C++ library support
13696 ld_shlibs_CXX=no
13699 m88k*)
13700 # FIXME: insert proper C++ library support
13701 ld_shlibs_CXX=no
13704 mvs*)
13705 case $cc_basename in
13706 cxx*)
13707 # FIXME: insert proper C++ library support
13708 ld_shlibs_CXX=no
13711 # FIXME: insert proper C++ library support
13712 ld_shlibs_CXX=no
13714 esac
13717 netbsd*)
13718 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13719 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13720 wlarc=
13721 hardcode_libdir_flag_spec_CXX='-R$libdir'
13722 hardcode_direct_CXX=yes
13723 hardcode_shlibpath_var_CXX=no
13725 # Workaround some broken pre-1.5 toolchains
13726 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13729 *nto* | *qnx*)
13730 ld_shlibs_CXX=yes
13733 openbsd2*)
13734 # C++ shared libraries are fairly broken
13735 ld_shlibs_CXX=no
13738 openbsd*)
13739 if test -f /usr/libexec/ld.so; then
13740 hardcode_direct_CXX=yes
13741 hardcode_shlibpath_var_CXX=no
13742 hardcode_direct_absolute_CXX=yes
13743 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13744 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13745 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13746 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13747 export_dynamic_flag_spec_CXX='${wl}-E'
13748 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13750 output_verbose_link_cmd=func_echo_all
13751 else
13752 ld_shlibs_CXX=no
13756 osf3* | osf4* | osf5*)
13757 case $cc_basename in
13758 KCC*)
13759 # Kuck and Associates, Inc. (KAI) C++ Compiler
13761 # KCC will only create a shared library if the output file
13762 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13763 # to its proper name (with version) after linking.
13764 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13766 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13767 hardcode_libdir_separator_CXX=:
13769 # Archives containing C++ object files must be created using
13770 # the KAI C++ compiler.
13771 case $host in
13772 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13773 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13774 esac
13776 RCC*)
13777 # Rational C++ 2.4.1
13778 # FIXME: insert proper C++ library support
13779 ld_shlibs_CXX=no
13781 cxx*)
13782 case $host in
13783 osf3*)
13784 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13785 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13786 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13789 allow_undefined_flag_CXX=' -expect_unresolved \*'
13790 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13791 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13792 echo "-hidden">> $lib.exp~
13793 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13794 $RM $lib.exp'
13795 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13797 esac
13799 hardcode_libdir_separator_CXX=:
13801 # Commands to make compiler produce verbose output that lists
13802 # what "hidden" libraries, object files and flags are used when
13803 # linking a shared library.
13805 # There doesn't appear to be a way to prevent this compiler from
13806 # explicitly linking system object files so we need to strip them
13807 # from the output so that they don't get included in the library
13808 # dependencies.
13809 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13812 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13813 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13814 case $host in
13815 osf3*)
13816 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13819 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13821 esac
13823 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13824 hardcode_libdir_separator_CXX=:
13826 # Commands to make compiler produce verbose output that lists
13827 # what "hidden" libraries, object files and flags are used when
13828 # linking a shared library.
13829 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13831 else
13832 # FIXME: insert proper C++ library support
13833 ld_shlibs_CXX=no
13836 esac
13839 psos*)
13840 # FIXME: insert proper C++ library support
13841 ld_shlibs_CXX=no
13844 sunos4*)
13845 case $cc_basename in
13846 CC*)
13847 # Sun C++ 4.x
13848 # FIXME: insert proper C++ library support
13849 ld_shlibs_CXX=no
13851 lcc*)
13852 # Lucid
13853 # FIXME: insert proper C++ library support
13854 ld_shlibs_CXX=no
13857 # FIXME: insert proper C++ library support
13858 ld_shlibs_CXX=no
13860 esac
13863 solaris*)
13864 case $cc_basename in
13865 CC*)
13866 # Sun C++ 4.2, 5.x and Centerline C++
13867 archive_cmds_need_lc_CXX=yes
13868 no_undefined_flag_CXX=' -zdefs'
13869 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13870 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13871 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13873 hardcode_libdir_flag_spec_CXX='-R$libdir'
13874 hardcode_shlibpath_var_CXX=no
13875 case $host_os in
13876 solaris2.[0-5] | solaris2.[0-5].*) ;;
13878 # The compiler driver will combine and reorder linker options,
13879 # but understands `-z linker_flag'.
13880 # Supported since Solaris 2.6 (maybe 2.5.1?)
13881 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13883 esac
13884 link_all_deplibs_CXX=yes
13886 output_verbose_link_cmd='func_echo_all'
13888 # Archives containing C++ object files must be created using
13889 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13890 # necessary to make sure instantiated templates are included
13891 # in the archive.
13892 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13894 gcx*)
13895 # Green Hills C++ Compiler
13896 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13898 # The C++ compiler must be used to create the archive.
13899 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13902 # GNU C++ compiler with Solaris linker
13903 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13904 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13905 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13906 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13907 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13908 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13910 # Commands to make compiler produce verbose output that lists
13911 # what "hidden" libraries, object files and flags are used when
13912 # linking a shared library.
13913 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13914 else
13915 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13916 # platform.
13917 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13918 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13919 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13921 # Commands to make compiler produce verbose output that lists
13922 # what "hidden" libraries, object files and flags are used when
13923 # linking a shared library.
13924 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13927 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13928 case $host_os in
13929 solaris2.[0-5] | solaris2.[0-5].*) ;;
13931 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13933 esac
13936 esac
13939 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13940 no_undefined_flag_CXX='${wl}-z,text'
13941 archive_cmds_need_lc_CXX=no
13942 hardcode_shlibpath_var_CXX=no
13943 runpath_var='LD_RUN_PATH'
13945 case $cc_basename in
13946 CC*)
13947 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13948 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13951 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13952 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13954 esac
13957 sysv5* | sco3.2v5* | sco5v6*)
13958 # Note: We can NOT use -z defs as we might desire, because we do not
13959 # link with -lc, and that would cause any symbols used from libc to
13960 # always be unresolved, which means just about no library would
13961 # ever link correctly. If we're not using GNU ld we use -z text
13962 # though, which does catch some bad symbols but isn't as heavy-handed
13963 # as -z defs.
13964 no_undefined_flag_CXX='${wl}-z,text'
13965 allow_undefined_flag_CXX='${wl}-z,nodefs'
13966 archive_cmds_need_lc_CXX=no
13967 hardcode_shlibpath_var_CXX=no
13968 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13969 hardcode_libdir_separator_CXX=':'
13970 link_all_deplibs_CXX=yes
13971 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13972 runpath_var='LD_RUN_PATH'
13974 case $cc_basename in
13975 CC*)
13976 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13977 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13978 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13979 '"$old_archive_cmds_CXX"
13980 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13981 '"$reload_cmds_CXX"
13984 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13985 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13987 esac
13990 tandem*)
13991 case $cc_basename in
13992 NCC*)
13993 # NonStop-UX NCC 3.20
13994 # FIXME: insert proper C++ library support
13995 ld_shlibs_CXX=no
13998 # FIXME: insert proper C++ library support
13999 ld_shlibs_CXX=no
14001 esac
14004 vxworks*)
14005 # For VxWorks ports, we assume the use of a GNU linker with
14006 # standard elf conventions.
14007 ld_shlibs_CXX=yes
14011 # FIXME: insert proper C++ library support
14012 ld_shlibs_CXX=no
14014 esac
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14017 $as_echo "$ld_shlibs_CXX" >&6; }
14018 test "$ld_shlibs_CXX" = no && can_build_shared=no
14020 GCC_CXX="$GXX"
14021 LD_CXX="$LD"
14023 ## CAVEAT EMPTOR:
14024 ## There is no encapsulation within the following macros, do not change
14025 ## the running order or otherwise move them around unless you know exactly
14026 ## what you are doing...
14027 # Dependencies to place before and after the object being linked:
14028 predep_objects_CXX=
14029 postdep_objects_CXX=
14030 predeps_CXX=
14031 postdeps_CXX=
14032 compiler_lib_search_path_CXX=
14034 cat > conftest.$ac_ext <<_LT_EOF
14035 class Foo
14037 public:
14038 Foo (void) { a = 0; }
14039 private:
14040 int a;
14042 _LT_EOF
14044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14045 (eval $ac_compile) 2>&5
14046 ac_status=$?
14047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14048 test $ac_status = 0; }; then
14049 # Parse the compiler output and extract the necessary
14050 # objects, libraries and library flags.
14052 # Sentinel used to keep track of whether or not we are before
14053 # the conftest object file.
14054 pre_test_object_deps_done=no
14056 for p in `eval "$output_verbose_link_cmd"`; do
14057 case $p in
14059 -L* | -R* | -l*)
14060 # Some compilers place space between "-{L,R}" and the path.
14061 # Remove the space.
14062 if test $p = "-L" ||
14063 test $p = "-R"; then
14064 prev=$p
14065 continue
14066 else
14067 prev=
14070 if test "$pre_test_object_deps_done" = no; then
14071 case $p in
14072 -L* | -R*)
14073 # Internal compiler library paths should come after those
14074 # provided the user. The postdeps already come after the
14075 # user supplied libs so there is no need to process them.
14076 if test -z "$compiler_lib_search_path_CXX"; then
14077 compiler_lib_search_path_CXX="${prev}${p}"
14078 else
14079 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14082 # The "-l" case would never come before the object being
14083 # linked, so don't bother handling this case.
14084 esac
14085 else
14086 if test -z "$postdeps_CXX"; then
14087 postdeps_CXX="${prev}${p}"
14088 else
14089 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14094 *.$objext)
14095 # This assumes that the test object file only shows up
14096 # once in the compiler output.
14097 if test "$p" = "conftest.$objext"; then
14098 pre_test_object_deps_done=yes
14099 continue
14102 if test "$pre_test_object_deps_done" = no; then
14103 if test -z "$predep_objects_CXX"; then
14104 predep_objects_CXX="$p"
14105 else
14106 predep_objects_CXX="$predep_objects_CXX $p"
14108 else
14109 if test -z "$postdep_objects_CXX"; then
14110 postdep_objects_CXX="$p"
14111 else
14112 postdep_objects_CXX="$postdep_objects_CXX $p"
14117 *) ;; # Ignore the rest.
14119 esac
14120 done
14122 # Clean up.
14123 rm -f a.out a.exe
14124 else
14125 echo "libtool.m4: error: problem compiling CXX test program"
14128 $RM -f confest.$objext
14130 # PORTME: override above test on systems where it is broken
14131 case $host_os in
14132 interix[3-9]*)
14133 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14134 # hack all around it, let's just trust "g++" to DTRT.
14135 predep_objects_CXX=
14136 postdep_objects_CXX=
14137 postdeps_CXX=
14140 linux*)
14141 case `$CC -V 2>&1 | sed 5q` in
14142 *Sun\ C*)
14143 # Sun C++ 5.9
14145 # The more standards-conforming stlport4 library is
14146 # incompatible with the Cstd library. Avoid specifying
14147 # it if it's in CXXFLAGS. Ignore libCrun as
14148 # -library=stlport4 depends on it.
14149 case " $CXX $CXXFLAGS " in
14150 *" -library=stlport4 "*)
14151 solaris_use_stlport4=yes
14153 esac
14155 if test "$solaris_use_stlport4" != yes; then
14156 postdeps_CXX='-library=Cstd -library=Crun'
14159 esac
14162 solaris*)
14163 case $cc_basename in
14164 CC*)
14165 # The more standards-conforming stlport4 library is
14166 # incompatible with the Cstd library. Avoid specifying
14167 # it if it's in CXXFLAGS. Ignore libCrun as
14168 # -library=stlport4 depends on it.
14169 case " $CXX $CXXFLAGS " in
14170 *" -library=stlport4 "*)
14171 solaris_use_stlport4=yes
14173 esac
14175 # Adding this requires a known-good setup of shared libraries for
14176 # Sun compiler versions before 5.6, else PIC objects from an old
14177 # archive will be linked into the output, leading to subtle bugs.
14178 if test "$solaris_use_stlport4" != yes; then
14179 postdeps_CXX='-library=Cstd -library=Crun'
14182 esac
14184 esac
14187 case " $postdeps_CXX " in
14188 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14189 esac
14190 compiler_lib_search_dirs_CXX=
14191 if test -n "${compiler_lib_search_path_CXX}"; then
14192 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14225 lt_prog_compiler_wl_CXX=
14226 lt_prog_compiler_pic_CXX=
14227 lt_prog_compiler_static_CXX=
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14230 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14232 # C++ specific cases for pic, static, wl, etc.
14233 if test "$GXX" = yes; then
14234 lt_prog_compiler_wl_CXX='-Wl,'
14235 lt_prog_compiler_static_CXX='-static'
14237 case $host_os in
14238 aix*)
14239 # All AIX code is PIC.
14240 if test "$host_cpu" = ia64; then
14241 # AIX 5 now supports IA64 processor
14242 lt_prog_compiler_static_CXX='-Bstatic'
14244 lt_prog_compiler_pic_CXX='-fPIC'
14247 amigaos*)
14248 case $host_cpu in
14249 powerpc)
14250 # see comment about AmigaOS4 .so support
14251 lt_prog_compiler_pic_CXX='-fPIC'
14253 m68k)
14254 # FIXME: we need at least 68020 code to build shared libraries, but
14255 # adding the `-m68020' flag to GCC prevents building anything better,
14256 # like `-m68040'.
14257 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14259 esac
14262 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14263 # PIC is the default for these OSes.
14265 mingw* | cygwin* | os2* | pw32* | cegcc*)
14266 # This hack is so that the source file can tell whether it is being
14267 # built for inclusion in a dll (and should export symbols for example).
14268 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14269 # (--disable-auto-import) libraries
14270 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14272 darwin* | rhapsody*)
14273 # PIC is the default on this platform
14274 # Common symbols not allowed in MH_DYLIB files
14275 lt_prog_compiler_pic_CXX='-fno-common'
14277 *djgpp*)
14278 # DJGPP does not support shared libraries at all
14279 lt_prog_compiler_pic_CXX=
14281 haiku*)
14282 # PIC is the default for Haiku.
14283 # The "-static" flag exists, but is broken.
14284 lt_prog_compiler_static_CXX=
14286 interix[3-9]*)
14287 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14288 # Instead, we relocate shared libraries at runtime.
14290 sysv4*MP*)
14291 if test -d /usr/nec; then
14292 lt_prog_compiler_pic_CXX=-Kconform_pic
14295 hpux*)
14296 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14297 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14298 # sets the default TLS model and affects inlining.
14299 case $host_cpu in
14300 hppa*64*)
14303 lt_prog_compiler_pic_CXX='-fPIC'
14305 esac
14307 *qnx* | *nto*)
14308 # QNX uses GNU C++, but need to define -shared option too, otherwise
14309 # it will coredump.
14310 lt_prog_compiler_pic_CXX='-fPIC -shared'
14313 lt_prog_compiler_pic_CXX='-fPIC'
14315 esac
14316 else
14317 case $host_os in
14318 aix[4-9]*)
14319 # All AIX code is PIC.
14320 if test "$host_cpu" = ia64; then
14321 # AIX 5 now supports IA64 processor
14322 lt_prog_compiler_static_CXX='-Bstatic'
14323 else
14324 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14327 chorus*)
14328 case $cc_basename in
14329 cxch68*)
14330 # Green Hills C++ Compiler
14331 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14333 esac
14335 dgux*)
14336 case $cc_basename in
14337 ec++*)
14338 lt_prog_compiler_pic_CXX='-KPIC'
14340 ghcx*)
14341 # Green Hills C++ Compiler
14342 lt_prog_compiler_pic_CXX='-pic'
14346 esac
14348 freebsd* | dragonfly*)
14349 # FreeBSD uses GNU C++
14351 hpux9* | hpux10* | hpux11*)
14352 case $cc_basename in
14353 CC*)
14354 lt_prog_compiler_wl_CXX='-Wl,'
14355 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14356 if test "$host_cpu" != ia64; then
14357 lt_prog_compiler_pic_CXX='+Z'
14360 aCC*)
14361 lt_prog_compiler_wl_CXX='-Wl,'
14362 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14363 case $host_cpu in
14364 hppa*64*|ia64*)
14365 # +Z the default
14368 lt_prog_compiler_pic_CXX='+Z'
14370 esac
14374 esac
14376 interix*)
14377 # This is c89, which is MS Visual C++ (no shared libs)
14378 # Anyone wants to do a port?
14380 irix5* | irix6* | nonstopux*)
14381 case $cc_basename in
14382 CC*)
14383 lt_prog_compiler_wl_CXX='-Wl,'
14384 lt_prog_compiler_static_CXX='-non_shared'
14385 # CC pic flag -KPIC is the default.
14389 esac
14391 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14392 case $cc_basename in
14393 KCC*)
14394 # KAI C++ Compiler
14395 lt_prog_compiler_wl_CXX='--backend -Wl,'
14396 lt_prog_compiler_pic_CXX='-fPIC'
14398 ecpc* )
14399 # old Intel C++ for x86_64 which still supported -KPIC.
14400 lt_prog_compiler_wl_CXX='-Wl,'
14401 lt_prog_compiler_pic_CXX='-KPIC'
14402 lt_prog_compiler_static_CXX='-static'
14404 icpc* )
14405 # Intel C++, used to be incompatible with GCC.
14406 # ICC 10 doesn't accept -KPIC any more.
14407 lt_prog_compiler_wl_CXX='-Wl,'
14408 lt_prog_compiler_pic_CXX='-fPIC'
14409 lt_prog_compiler_static_CXX='-static'
14411 pgCC* | pgcpp*)
14412 # Portland Group C++ compiler
14413 lt_prog_compiler_wl_CXX='-Wl,'
14414 lt_prog_compiler_pic_CXX='-fpic'
14415 lt_prog_compiler_static_CXX='-Bstatic'
14417 cxx*)
14418 # Compaq C++
14419 # Make sure the PIC flag is empty. It appears that all Alpha
14420 # Linux and Compaq Tru64 Unix objects are PIC.
14421 lt_prog_compiler_pic_CXX=
14422 lt_prog_compiler_static_CXX='-non_shared'
14424 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14425 # IBM XL 8.0, 9.0 on PPC and BlueGene
14426 lt_prog_compiler_wl_CXX='-Wl,'
14427 lt_prog_compiler_pic_CXX='-qpic'
14428 lt_prog_compiler_static_CXX='-qstaticlink'
14431 case `$CC -V 2>&1 | sed 5q` in
14432 *Sun\ C*)
14433 # Sun C++ 5.9
14434 lt_prog_compiler_pic_CXX='-KPIC'
14435 lt_prog_compiler_static_CXX='-Bstatic'
14436 lt_prog_compiler_wl_CXX='-Qoption ld '
14438 esac
14440 esac
14442 lynxos*)
14444 m88k*)
14446 mvs*)
14447 case $cc_basename in
14448 cxx*)
14449 lt_prog_compiler_pic_CXX='-W c,exportall'
14453 esac
14455 netbsd*)
14457 *qnx* | *nto*)
14458 # QNX uses GNU C++, but need to define -shared option too, otherwise
14459 # it will coredump.
14460 lt_prog_compiler_pic_CXX='-fPIC -shared'
14462 osf3* | osf4* | osf5*)
14463 case $cc_basename in
14464 KCC*)
14465 lt_prog_compiler_wl_CXX='--backend -Wl,'
14467 RCC*)
14468 # Rational C++ 2.4.1
14469 lt_prog_compiler_pic_CXX='-pic'
14471 cxx*)
14472 # Digital/Compaq C++
14473 lt_prog_compiler_wl_CXX='-Wl,'
14474 # Make sure the PIC flag is empty. It appears that all Alpha
14475 # Linux and Compaq Tru64 Unix objects are PIC.
14476 lt_prog_compiler_pic_CXX=
14477 lt_prog_compiler_static_CXX='-non_shared'
14481 esac
14483 psos*)
14485 solaris*)
14486 case $cc_basename in
14487 CC*)
14488 # Sun C++ 4.2, 5.x and Centerline C++
14489 lt_prog_compiler_pic_CXX='-KPIC'
14490 lt_prog_compiler_static_CXX='-Bstatic'
14491 lt_prog_compiler_wl_CXX='-Qoption ld '
14493 gcx*)
14494 # Green Hills C++ Compiler
14495 lt_prog_compiler_pic_CXX='-PIC'
14499 esac
14501 sunos4*)
14502 case $cc_basename in
14503 CC*)
14504 # Sun C++ 4.x
14505 lt_prog_compiler_pic_CXX='-pic'
14506 lt_prog_compiler_static_CXX='-Bstatic'
14508 lcc*)
14509 # Lucid
14510 lt_prog_compiler_pic_CXX='-pic'
14514 esac
14516 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14517 case $cc_basename in
14518 CC*)
14519 lt_prog_compiler_wl_CXX='-Wl,'
14520 lt_prog_compiler_pic_CXX='-KPIC'
14521 lt_prog_compiler_static_CXX='-Bstatic'
14523 esac
14525 tandem*)
14526 case $cc_basename in
14527 NCC*)
14528 # NonStop-UX NCC 3.20
14529 lt_prog_compiler_pic_CXX='-KPIC'
14533 esac
14535 vxworks*)
14538 lt_prog_compiler_can_build_shared_CXX=no
14540 esac
14543 case $host_os in
14544 # For platforms which do not support PIC, -DPIC is meaningless:
14545 *djgpp*)
14546 lt_prog_compiler_pic_CXX=
14549 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14551 esac
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14553 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14558 # Check to make sure the PIC flag actually works.
14560 if test -n "$lt_prog_compiler_pic_CXX"; then
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14562 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14563 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14564 $as_echo_n "(cached) " >&6
14565 else
14566 lt_cv_prog_compiler_pic_works_CXX=no
14567 ac_outfile=conftest.$ac_objext
14568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14569 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14570 # Insert the option either (1) after the last *FLAGS variable, or
14571 # (2) before a word containing "conftest.", or (3) at the end.
14572 # Note that $ac_compile itself does not contain backslashes and begins
14573 # with a dollar sign (not a hyphen), so the echo should work correctly.
14574 # The option is referenced via a variable to avoid confusing sed.
14575 lt_compile=`echo "$ac_compile" | $SED \
14576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14578 -e 's:$: $lt_compiler_flag:'`
14579 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14580 (eval "$lt_compile" 2>conftest.err)
14581 ac_status=$?
14582 cat conftest.err >&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 if (exit $ac_status) && test -s "$ac_outfile"; then
14585 # The compiler can only warn and ignore the option if not recognized
14586 # So say no if there are warnings other than the usual output.
14587 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14588 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14589 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14590 lt_cv_prog_compiler_pic_works_CXX=yes
14593 $RM conftest*
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14597 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14599 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14600 case $lt_prog_compiler_pic_CXX in
14601 "" | " "*) ;;
14602 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14603 esac
14604 else
14605 lt_prog_compiler_pic_CXX=
14606 lt_prog_compiler_can_build_shared_CXX=no
14614 # Check to make sure the static flag actually works.
14616 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14618 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14619 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14620 $as_echo_n "(cached) " >&6
14621 else
14622 lt_cv_prog_compiler_static_works_CXX=no
14623 save_LDFLAGS="$LDFLAGS"
14624 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14625 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14626 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14627 # The linker can only warn and ignore the option if not recognized
14628 # So say no if there are warnings
14629 if test -s conftest.err; then
14630 # Append any errors to the config.log.
14631 cat conftest.err 1>&5
14632 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14634 if diff conftest.exp conftest.er2 >/dev/null; then
14635 lt_cv_prog_compiler_static_works_CXX=yes
14637 else
14638 lt_cv_prog_compiler_static_works_CXX=yes
14641 $RM -r conftest*
14642 LDFLAGS="$save_LDFLAGS"
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14646 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14648 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14650 else
14651 lt_prog_compiler_static_CXX=
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14658 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14659 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14660 $as_echo_n "(cached) " >&6
14661 else
14662 lt_cv_prog_compiler_c_o_CXX=no
14663 $RM -r conftest 2>/dev/null
14664 mkdir conftest
14665 cd conftest
14666 mkdir out
14667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14669 lt_compiler_flag="-o out/conftest2.$ac_objext"
14670 # Insert the option either (1) after the last *FLAGS variable, or
14671 # (2) before a word containing "conftest.", or (3) at the end.
14672 # Note that $ac_compile itself does not contain backslashes and begins
14673 # with a dollar sign (not a hyphen), so the echo should work correctly.
14674 lt_compile=`echo "$ac_compile" | $SED \
14675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14677 -e 's:$: $lt_compiler_flag:'`
14678 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14679 (eval "$lt_compile" 2>out/conftest.err)
14680 ac_status=$?
14681 cat out/conftest.err >&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14684 then
14685 # The compiler can only warn and ignore the option if not recognized
14686 # So say no if there are warnings
14687 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14688 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14689 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14690 lt_cv_prog_compiler_c_o_CXX=yes
14693 chmod u+w . 2>&5
14694 $RM conftest*
14695 # SGI C++ compiler will create directory out/ii_files/ for
14696 # template instantiation
14697 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14698 $RM out/* && rmdir out
14699 cd ..
14700 $RM -r conftest
14701 $RM conftest*
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14705 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14710 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14711 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14712 $as_echo_n "(cached) " >&6
14713 else
14714 lt_cv_prog_compiler_c_o_CXX=no
14715 $RM -r conftest 2>/dev/null
14716 mkdir conftest
14717 cd conftest
14718 mkdir out
14719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14721 lt_compiler_flag="-o out/conftest2.$ac_objext"
14722 # Insert the option either (1) after the last *FLAGS variable, or
14723 # (2) before a word containing "conftest.", or (3) at the end.
14724 # Note that $ac_compile itself does not contain backslashes and begins
14725 # with a dollar sign (not a hyphen), so the echo should work correctly.
14726 lt_compile=`echo "$ac_compile" | $SED \
14727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14729 -e 's:$: $lt_compiler_flag:'`
14730 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14731 (eval "$lt_compile" 2>out/conftest.err)
14732 ac_status=$?
14733 cat out/conftest.err >&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14736 then
14737 # The compiler can only warn and ignore the option if not recognized
14738 # So say no if there are warnings
14739 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14740 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14741 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14742 lt_cv_prog_compiler_c_o_CXX=yes
14745 chmod u+w . 2>&5
14746 $RM conftest*
14747 # SGI C++ compiler will create directory out/ii_files/ for
14748 # template instantiation
14749 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14750 $RM out/* && rmdir out
14751 cd ..
14752 $RM -r conftest
14753 $RM conftest*
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14757 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14762 hard_links="nottested"
14763 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14764 # do not overwrite the value of need_locks provided by the user
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14766 $as_echo_n "checking if we can lock with hard links... " >&6; }
14767 hard_links=yes
14768 $RM conftest*
14769 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14770 touch conftest.a
14771 ln conftest.a conftest.b 2>&5 || hard_links=no
14772 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14774 $as_echo "$hard_links" >&6; }
14775 if test "$hard_links" = no; then
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14777 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14778 need_locks=warn
14780 else
14781 need_locks=no
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14787 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14789 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14790 case $host_os in
14791 aix[4-9]*)
14792 # If we're using GNU nm, then we don't want the "-C" option.
14793 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14794 # Also, AIX nm treats weak defined symbols like other global defined
14795 # symbols, whereas GNU nm marks them as "W".
14796 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14797 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14798 else
14799 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14802 pw32*)
14803 export_symbols_cmds_CXX="$ltdll_cmds"
14805 cygwin* | mingw* | cegcc*)
14806 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14809 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14811 esac
14812 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14815 $as_echo "$ld_shlibs_CXX" >&6; }
14816 test "$ld_shlibs_CXX" = no && can_build_shared=no
14818 with_gnu_ld_CXX=$with_gnu_ld
14826 # Do we need to explicitly link libc?
14828 case "x$archive_cmds_need_lc_CXX" in
14829 x|xyes)
14830 # Assume -lc should be added
14831 archive_cmds_need_lc_CXX=yes
14833 if test "$enable_shared" = yes && test "$GCC" = yes; then
14834 case $archive_cmds_CXX in
14835 *'~'*)
14836 # FIXME: we may have to deal with multi-command sequences.
14838 '$CC '*)
14839 # Test whether the compiler implicitly links with -lc since on some
14840 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14841 # to ld, don't add -lc before -lgcc.
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14843 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14844 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14845 $as_echo_n "(cached) " >&6
14846 else
14847 $RM conftest*
14848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14851 (eval $ac_compile) 2>&5
14852 ac_status=$?
14853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14854 test $ac_status = 0; } 2>conftest.err; then
14855 soname=conftest
14856 lib=conftest
14857 libobjs=conftest.$ac_objext
14858 deplibs=
14859 wl=$lt_prog_compiler_wl_CXX
14860 pic_flag=$lt_prog_compiler_pic_CXX
14861 compiler_flags=-v
14862 linker_flags=-v
14863 verstring=
14864 output_objdir=.
14865 libname=conftest
14866 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14867 allow_undefined_flag_CXX=
14868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14869 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14870 ac_status=$?
14871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14872 test $ac_status = 0; }
14873 then
14874 lt_cv_archive_cmds_need_lc_CXX=no
14875 else
14876 lt_cv_archive_cmds_need_lc_CXX=yes
14878 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14879 else
14880 cat conftest.err 1>&5
14882 $RM conftest*
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14886 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14887 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14889 esac
14892 esac
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14958 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14960 library_names_spec=
14961 libname_spec='lib$name'
14962 soname_spec=
14963 shrext_cmds=".so"
14964 postinstall_cmds=
14965 postuninstall_cmds=
14966 finish_cmds=
14967 finish_eval=
14968 shlibpath_var=
14969 shlibpath_overrides_runpath=unknown
14970 version_type=none
14971 dynamic_linker="$host_os ld.so"
14972 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14973 need_lib_prefix=unknown
14974 hardcode_into_libs=no
14976 # when you set need_version to no, make sure it does not cause -set_version
14977 # flags to be left without arguments
14978 need_version=unknown
14980 case $host_os in
14981 aix3*)
14982 version_type=linux
14983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14984 shlibpath_var=LIBPATH
14986 # AIX 3 has no versioning support, so we append a major version to the name.
14987 soname_spec='${libname}${release}${shared_ext}$major'
14990 aix[4-9]*)
14991 version_type=linux
14992 need_lib_prefix=no
14993 need_version=no
14994 hardcode_into_libs=yes
14995 if test "$host_cpu" = ia64; then
14996 # AIX 5 supports IA64
14997 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14998 shlibpath_var=LD_LIBRARY_PATH
14999 else
15000 # With GCC up to 2.95.x, collect2 would create an import file
15001 # for dependence libraries. The import file would start with
15002 # the line `#! .'. This would cause the generated library to
15003 # depend on `.', always an invalid library. This was fixed in
15004 # development snapshots of GCC prior to 3.0.
15005 case $host_os in
15006 aix4 | aix4.[01] | aix4.[01].*)
15007 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15008 echo ' yes '
15009 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15011 else
15012 can_build_shared=no
15015 esac
15016 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15017 # soname into executable. Probably we can add versioning support to
15018 # collect2, so additional links can be useful in future.
15019 if test "$aix_use_runtimelinking" = yes; then
15020 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15021 # instead of lib<name>.a to let people know that these are not
15022 # typical AIX shared libraries.
15023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15024 else
15025 # We preserve .a as extension for shared libraries through AIX4.2
15026 # and later when we are not doing run time linking.
15027 library_names_spec='${libname}${release}.a $libname.a'
15028 soname_spec='${libname}${release}${shared_ext}$major'
15030 shlibpath_var=LIBPATH
15034 amigaos*)
15035 case $host_cpu in
15036 powerpc)
15037 # Since July 2007 AmigaOS4 officially supports .so libraries.
15038 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15041 m68k)
15042 library_names_spec='$libname.ixlibrary $libname.a'
15043 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15044 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15046 esac
15049 beos*)
15050 library_names_spec='${libname}${shared_ext}'
15051 dynamic_linker="$host_os ld.so"
15052 shlibpath_var=LIBRARY_PATH
15055 bsdi[45]*)
15056 version_type=linux
15057 need_version=no
15058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15059 soname_spec='${libname}${release}${shared_ext}$major'
15060 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15061 shlibpath_var=LD_LIBRARY_PATH
15062 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15063 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15064 # the default ld.so.conf also contains /usr/contrib/lib and
15065 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15066 # libtool to hard-code these into programs
15069 cygwin* | mingw* | pw32* | cegcc*)
15070 version_type=windows
15071 shrext_cmds=".dll"
15072 need_version=no
15073 need_lib_prefix=no
15075 case $GCC,$host_os in
15076 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15077 library_names_spec='$libname.dll.a'
15078 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15079 postinstall_cmds='base_file=`basename \${file}`~
15080 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15081 dldir=$destdir/`dirname \$dlpath`~
15082 test -d \$dldir || mkdir -p \$dldir~
15083 $install_prog $dir/$dlname \$dldir/$dlname~
15084 chmod a+x \$dldir/$dlname~
15085 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15086 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15088 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15089 dlpath=$dir/\$dldll~
15090 $RM \$dlpath'
15091 shlibpath_overrides_runpath=yes
15093 case $host_os in
15094 cygwin*)
15095 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15096 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15099 mingw* | cegcc*)
15100 # MinGW DLLs use traditional 'lib' prefix
15101 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15103 pw32*)
15104 # pw32 DLLs use 'pw' prefix rather than 'lib'
15105 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15107 esac
15111 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15113 esac
15114 dynamic_linker='Win32 ld.exe'
15115 # FIXME: first we should search . and the directory the executable is in
15116 shlibpath_var=PATH
15119 darwin* | rhapsody*)
15120 dynamic_linker="$host_os dyld"
15121 version_type=darwin
15122 need_lib_prefix=no
15123 need_version=no
15124 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15125 soname_spec='${libname}${release}${major}$shared_ext'
15126 shlibpath_overrides_runpath=yes
15127 shlibpath_var=DYLD_LIBRARY_PATH
15128 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15130 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15133 dgux*)
15134 version_type=linux
15135 need_lib_prefix=no
15136 need_version=no
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15139 shlibpath_var=LD_LIBRARY_PATH
15142 freebsd* | dragonfly*)
15143 # DragonFly does not have aout. When/if they implement a new
15144 # versioning mechanism, adjust this.
15145 if test -x /usr/bin/objformat; then
15146 objformat=`/usr/bin/objformat`
15147 else
15148 case $host_os in
15149 freebsd[23].*) objformat=aout ;;
15150 *) objformat=elf ;;
15151 esac
15153 version_type=freebsd-$objformat
15154 case $version_type in
15155 freebsd-elf*)
15156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15157 need_version=no
15158 need_lib_prefix=no
15160 freebsd-*)
15161 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15162 need_version=yes
15164 esac
15165 shlibpath_var=LD_LIBRARY_PATH
15166 case $host_os in
15167 freebsd2.*)
15168 shlibpath_overrides_runpath=yes
15170 freebsd3.[01]* | freebsdelf3.[01]*)
15171 shlibpath_overrides_runpath=yes
15172 hardcode_into_libs=yes
15174 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15175 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15176 shlibpath_overrides_runpath=no
15177 hardcode_into_libs=yes
15179 *) # from 4.6 on, and DragonFly
15180 shlibpath_overrides_runpath=yes
15181 hardcode_into_libs=yes
15183 esac
15186 haiku*)
15187 version_type=linux
15188 need_lib_prefix=no
15189 need_version=no
15190 dynamic_linker="$host_os runtime_loader"
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15192 soname_spec='${libname}${release}${shared_ext}$major'
15193 shlibpath_var=LIBRARY_PATH
15194 shlibpath_overrides_runpath=yes
15195 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15196 hardcode_into_libs=yes
15199 hpux9* | hpux10* | hpux11*)
15200 # Give a soname corresponding to the major version so that dld.sl refuses to
15201 # link against other versions.
15202 version_type=sunos
15203 need_lib_prefix=no
15204 need_version=no
15205 case $host_cpu in
15206 ia64*)
15207 shrext_cmds='.so'
15208 hardcode_into_libs=yes
15209 dynamic_linker="$host_os dld.so"
15210 shlibpath_var=LD_LIBRARY_PATH
15211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213 soname_spec='${libname}${release}${shared_ext}$major'
15214 if test "X$HPUX_IA64_MODE" = X32; then
15215 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15216 else
15217 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15221 hppa*64*)
15222 shrext_cmds='.sl'
15223 hardcode_into_libs=yes
15224 dynamic_linker="$host_os dld.sl"
15225 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15228 soname_spec='${libname}${release}${shared_ext}$major'
15229 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15233 shrext_cmds='.sl'
15234 dynamic_linker="$host_os dld.sl"
15235 shlibpath_var=SHLIB_PATH
15236 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238 soname_spec='${libname}${release}${shared_ext}$major'
15240 esac
15241 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15242 postinstall_cmds='chmod 555 $lib'
15243 # or fails outright, so override atomically:
15244 install_override_mode=555
15247 interix[3-9]*)
15248 version_type=linux
15249 need_lib_prefix=no
15250 need_version=no
15251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15252 soname_spec='${libname}${release}${shared_ext}$major'
15253 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15254 shlibpath_var=LD_LIBRARY_PATH
15255 shlibpath_overrides_runpath=no
15256 hardcode_into_libs=yes
15259 irix5* | irix6* | nonstopux*)
15260 case $host_os in
15261 nonstopux*) version_type=nonstopux ;;
15263 if test "$lt_cv_prog_gnu_ld" = yes; then
15264 version_type=linux
15265 else
15266 version_type=irix
15267 fi ;;
15268 esac
15269 need_lib_prefix=no
15270 need_version=no
15271 soname_spec='${libname}${release}${shared_ext}$major'
15272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15273 case $host_os in
15274 irix5* | nonstopux*)
15275 libsuff= shlibsuff=
15278 case $LD in # libtool.m4 will add one of these switches to LD
15279 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15280 libsuff= shlibsuff= libmagic=32-bit;;
15281 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15282 libsuff=32 shlibsuff=N32 libmagic=N32;;
15283 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15284 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15285 *) libsuff= shlibsuff= libmagic=never-match;;
15286 esac
15288 esac
15289 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15290 shlibpath_overrides_runpath=no
15291 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15292 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15293 hardcode_into_libs=yes
15296 # No shared lib support for Linux oldld, aout, or coff.
15297 linux*oldld* | linux*aout* | linux*coff*)
15298 dynamic_linker=no
15301 # This must be Linux ELF.
15303 # uclinux* changes (here and below) have been submitted to the libtool
15304 # project, but have not yet been accepted: they are GCC-local changes
15305 # for the time being. (See
15306 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15307 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15308 version_type=linux
15309 need_lib_prefix=no
15310 need_version=no
15311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15312 soname_spec='${libname}${release}${shared_ext}$major'
15313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15314 shlibpath_var=LD_LIBRARY_PATH
15315 shlibpath_overrides_runpath=no
15317 # Some binutils ld are patched to set DT_RUNPATH
15318 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15319 $as_echo_n "(cached) " >&6
15320 else
15321 lt_cv_shlibpath_overrides_runpath=no
15322 save_LDFLAGS=$LDFLAGS
15323 save_libdir=$libdir
15324 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15325 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15326 if test x$gcc_no_link = xyes; then
15327 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15330 /* end confdefs.h. */
15333 main ()
15337 return 0;
15339 _ACEOF
15340 if ac_fn_cxx_try_link "$LINENO"; then :
15341 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15342 lt_cv_shlibpath_overrides_runpath=yes
15345 rm -f core conftest.err conftest.$ac_objext \
15346 conftest$ac_exeext conftest.$ac_ext
15347 LDFLAGS=$save_LDFLAGS
15348 libdir=$save_libdir
15352 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15354 # This implies no fast_install, which is unacceptable.
15355 # Some rework will be needed to allow for fast_install
15356 # before this can be enabled.
15357 hardcode_into_libs=yes
15359 # Append ld.so.conf contents to the search path
15360 if test -f /etc/ld.so.conf; then
15361 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15362 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15365 # We used to test for /lib/ld.so.1 and disable shared libraries on
15366 # powerpc, because MkLinux only supported shared libraries with the
15367 # GNU dynamic linker. Since this was broken with cross compilers,
15368 # most powerpc-linux boxes support dynamic linking these days and
15369 # people can always --disable-shared, the test was removed, and we
15370 # assume the GNU/Linux dynamic linker is in use.
15371 dynamic_linker='GNU/Linux ld.so'
15374 netbsd*)
15375 version_type=sunos
15376 need_lib_prefix=no
15377 need_version=no
15378 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15381 dynamic_linker='NetBSD (a.out) ld.so'
15382 else
15383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15384 soname_spec='${libname}${release}${shared_ext}$major'
15385 dynamic_linker='NetBSD ld.elf_so'
15387 shlibpath_var=LD_LIBRARY_PATH
15388 shlibpath_overrides_runpath=yes
15389 hardcode_into_libs=yes
15392 newsos6)
15393 version_type=linux
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395 shlibpath_var=LD_LIBRARY_PATH
15396 shlibpath_overrides_runpath=yes
15399 *nto* | *qnx*)
15400 version_type=qnx
15401 need_lib_prefix=no
15402 need_version=no
15403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15404 soname_spec='${libname}${release}${shared_ext}$major'
15405 shlibpath_var=LD_LIBRARY_PATH
15406 shlibpath_overrides_runpath=no
15407 hardcode_into_libs=yes
15408 dynamic_linker='ldqnx.so'
15411 openbsd*)
15412 version_type=sunos
15413 sys_lib_dlsearch_path_spec="/usr/lib"
15414 need_lib_prefix=no
15415 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15416 case $host_os in
15417 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15418 *) need_version=no ;;
15419 esac
15420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15422 shlibpath_var=LD_LIBRARY_PATH
15423 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15424 case $host_os in
15425 openbsd2.[89] | openbsd2.[89].*)
15426 shlibpath_overrides_runpath=no
15429 shlibpath_overrides_runpath=yes
15431 esac
15432 else
15433 shlibpath_overrides_runpath=yes
15437 os2*)
15438 libname_spec='$name'
15439 shrext_cmds=".dll"
15440 need_lib_prefix=no
15441 library_names_spec='$libname${shared_ext} $libname.a'
15442 dynamic_linker='OS/2 ld.exe'
15443 shlibpath_var=LIBPATH
15446 osf3* | osf4* | osf5*)
15447 version_type=osf
15448 need_lib_prefix=no
15449 need_version=no
15450 soname_spec='${libname}${release}${shared_ext}$major'
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15452 shlibpath_var=LD_LIBRARY_PATH
15453 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15454 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15457 rdos*)
15458 dynamic_linker=no
15461 solaris*)
15462 version_type=linux
15463 need_lib_prefix=no
15464 need_version=no
15465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15466 soname_spec='${libname}${release}${shared_ext}$major'
15467 shlibpath_var=LD_LIBRARY_PATH
15468 shlibpath_overrides_runpath=yes
15469 hardcode_into_libs=yes
15470 # ldd complains unless libraries are executable
15471 postinstall_cmds='chmod +x $lib'
15474 sunos4*)
15475 version_type=sunos
15476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15477 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15478 shlibpath_var=LD_LIBRARY_PATH
15479 shlibpath_overrides_runpath=yes
15480 if test "$with_gnu_ld" = yes; then
15481 need_lib_prefix=no
15483 need_version=yes
15486 sysv4 | sysv4.3*)
15487 version_type=linux
15488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15489 soname_spec='${libname}${release}${shared_ext}$major'
15490 shlibpath_var=LD_LIBRARY_PATH
15491 case $host_vendor in
15492 sni)
15493 shlibpath_overrides_runpath=no
15494 need_lib_prefix=no
15495 runpath_var=LD_RUN_PATH
15497 siemens)
15498 need_lib_prefix=no
15500 motorola)
15501 need_lib_prefix=no
15502 need_version=no
15503 shlibpath_overrides_runpath=no
15504 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15506 esac
15509 sysv4*MP*)
15510 if test -d /usr/nec ;then
15511 version_type=linux
15512 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15513 soname_spec='$libname${shared_ext}.$major'
15514 shlibpath_var=LD_LIBRARY_PATH
15518 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15519 version_type=freebsd-elf
15520 need_lib_prefix=no
15521 need_version=no
15522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15523 soname_spec='${libname}${release}${shared_ext}$major'
15524 shlibpath_var=LD_LIBRARY_PATH
15525 shlibpath_overrides_runpath=yes
15526 hardcode_into_libs=yes
15527 if test "$with_gnu_ld" = yes; then
15528 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15529 else
15530 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15531 case $host_os in
15532 sco3.2v5*)
15533 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15535 esac
15537 sys_lib_dlsearch_path_spec='/usr/lib'
15540 tpf*)
15541 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15542 version_type=linux
15543 need_lib_prefix=no
15544 need_version=no
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15546 shlibpath_var=LD_LIBRARY_PATH
15547 shlibpath_overrides_runpath=no
15548 hardcode_into_libs=yes
15551 uts4*)
15552 version_type=linux
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15554 soname_spec='${libname}${release}${shared_ext}$major'
15555 shlibpath_var=LD_LIBRARY_PATH
15558 # Shared libraries for VwWorks, >= 7 only at this stage
15559 # and (fpic) still incompatible with "large" code models
15560 # in a few configurations. Only for RTP mode in any case,
15561 # and upon explicit request at configure time.
15562 vxworks7*)
15563 dynamic_linker=no
15564 case ${with_multisubdir}-${enable_shared} in
15565 *large*)
15567 *mrtp*-yes)
15568 version_type=linux
15569 need_lib_prefix=no
15570 need_version=no
15571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15572 soname_spec='${libname}${release}${shared_ext}$major'
15573 dynamic_linker="$host_os module_loader"
15575 esac
15578 dynamic_linker=no
15580 esac
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15582 $as_echo "$dynamic_linker" >&6; }
15583 test "$dynamic_linker" = no && can_build_shared=no
15585 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15586 if test "$GCC" = yes; then
15587 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15590 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15591 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15593 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15594 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15635 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15636 hardcode_action_CXX=
15637 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15638 test -n "$runpath_var_CXX" ||
15639 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15641 # We can hardcode non-existent directories.
15642 if test "$hardcode_direct_CXX" != no &&
15643 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15644 # have to relink, otherwise we might link with an installed library
15645 # when we should be linking with a yet-to-be-installed one
15646 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15647 test "$hardcode_minus_L_CXX" != no; then
15648 # Linking always hardcodes the temporary library directory.
15649 hardcode_action_CXX=relink
15650 else
15651 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15652 hardcode_action_CXX=immediate
15654 else
15655 # We cannot hardcode anything, or else we can only hardcode existing
15656 # directories.
15657 hardcode_action_CXX=unsupported
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15660 $as_echo "$hardcode_action_CXX" >&6; }
15662 if test "$hardcode_action_CXX" = relink ||
15663 test "$inherit_rpath_CXX" = yes; then
15664 # Fast installation is not supported
15665 enable_fast_install=no
15666 elif test "$shlibpath_overrides_runpath" = yes ||
15667 test "$enable_shared" = no; then
15668 # Fast installation is not necessary
15669 enable_fast_install=needless
15678 fi # test -n "$compiler"
15680 CC=$lt_save_CC
15681 LDCXX=$LD
15682 LD=$lt_save_LD
15683 GCC=$lt_save_GCC
15684 with_gnu_ld=$lt_save_with_gnu_ld
15685 lt_cv_path_LDCXX=$lt_cv_path_LD
15686 lt_cv_path_LD=$lt_save_path_LD
15687 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15688 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15689 fi # test "$_lt_caught_CXX_error" != yes
15691 ac_ext=c
15692 ac_cpp='$CPP $CPPFLAGS'
15693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15709 ac_config_commands="$ac_config_commands libtool"
15714 # Only expand once:
15720 case $host in
15721 *-cygwin* | *-mingw*)
15722 # 'host' will be top-level target in the case of a target lib,
15723 # we must compare to with_cross_host to decide if this is a native
15724 # or cross-compiler and select where to install dlls appropriately.
15725 if test -n "$with_cross_host" &&
15726 test x"$with_cross_host" != x"no"; then
15727 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
15728 else
15729 lt_host_flags='-no-undefined -bindir "$(bindir)"';
15733 lt_host_flags=
15735 esac
15741 if test x$enable_darwin_at_rpath = xyes; then
15742 ENABLE_DARWIN_AT_RPATH_TRUE=
15743 ENABLE_DARWIN_AT_RPATH_FALSE='#'
15744 else
15745 ENABLE_DARWIN_AT_RPATH_TRUE='#'
15746 ENABLE_DARWIN_AT_RPATH_FALSE=
15749 os_is_darwin=no
15750 case ${host_os} in
15751 darwin*) os_is_darwin=yes ;;
15752 *) ;;
15753 esac
15754 if test x${os_is_darwin} = xyes; then
15755 OS_IS_DARWIN_TRUE=
15756 OS_IS_DARWIN_FALSE='#'
15757 else
15758 OS_IS_DARWIN_TRUE='#'
15759 OS_IS_DARWIN_FALSE=
15763 if test "$enable_vtable_verify" = yes; then
15764 predep_objects_CXX="${predep_objects_CXX} ${glibcxx_builddir}/../libgcc/vtv_start.o"
15765 postdep_objects_CXX="${postdep_objects_CXX} ${glibcxx_builddir}/../libgcc/vtv_end.o"
15769 # libtool variables for C++ shared and position-independent compiles.
15771 # Use glibcxx_lt_pic_flag to designate the automake variable
15772 # used to encapsulate the default libtool approach to creating objects
15773 # with position-independent code. Default: -prefer-pic.
15775 # Use glibcxx_compiler_shared_flag to designate a compile-time flags for
15776 # creating shared objects. Default: -D_GLIBCXX_SHARED.
15778 # Use glibcxx_compiler_pic_flag to designate a compile-time flags for
15779 # creating position-independent objects. This varies with the target
15780 # hardware and operating system, but is often: -DPIC -fPIC.
15781 if test "$enable_shared" = yes; then
15782 glibcxx_lt_pic_flag="-prefer-pic"
15783 glibcxx_compiler_pic_flag="$lt_prog_compiler_pic_CXX"
15784 glibcxx_compiler_shared_flag="-D_GLIBCXX_SHARED"
15786 else
15787 glibcxx_lt_pic_flag=
15788 glibcxx_compiler_pic_flag=
15789 glibcxx_compiler_shared_flag=
15795 # Override the libtool's pic_flag and pic_mode.
15796 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
15797 # NB: this impacts --with-pic and --without-pic.
15798 lt_prog_compiler_pic_CXX="$glibcxx_compiler_pic_flag $glibcxx_compiler_shared_flag"
15799 pic_mode='default'
15801 # Eliminate -lstdc++ addition to postdeps for cross compiles.
15802 postdeps_CXX=`echo " $postdeps_CXX " | sed 's, -lstdc++ ,,g'`
15804 # Possibly disable most of the library.
15805 ## TODO: Consider skipping unncessary tests altogether in this case, rather
15806 ## than just ignoring the results. Faster /and/ more correct, win win.
15808 # Check whether --enable-hosted-libstdcxx was given.
15809 if test "${enable_hosted_libstdcxx+set}" = set; then :
15810 enableval=$enable_hosted_libstdcxx; enable_hosted_libstdcxx_was_given=yes
15811 else
15812 case "$host" in
15813 arm*-*-symbianelf*)
15814 enable_hosted_libstdcxx=no
15817 case "${with_newlib}-${with_headers}" in
15818 no-no) enable_hosted_libstdcxx=no ;;
15819 *) enable_hosted_libstdcxx=yes ;;
15820 esac
15822 esac
15826 # Because most configure args are --enable-libstdcxx-foo add an alias
15827 # of that form for --enable-hosted-libstdcxx.
15828 # Check whether --enable-libstdcxx-hosted was given.
15829 if test "${enable_libstdcxx_hosted+set}" = set; then :
15830 enableval=$enable_libstdcxx_hosted; if test "$enable_hosted_libstdcxx_was_given" = yes; then
15831 if test "$enable_hosted_libstdcxx" != "$enableval"; then
15832 as_fn_error $? "--enable-libstdcxx-hosted=$enableval conflicts with --enable-hosted-libstdcxx=$enable_hosted_libstdcxx" "$LINENO" 5
15834 else
15835 enable_hosted_libstdcxx=${enableval}
15841 freestanding_flags=
15842 if test "$enable_hosted_libstdcxx" = no; then
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: Only freestanding libraries will be built" >&5
15844 $as_echo "$as_me: Only freestanding libraries will be built" >&6;}
15845 is_hosted=no
15846 hosted_define=0
15847 enable_abi_check=no
15848 enable_libstdcxx_pch=no
15849 if test "x$with_headers" = xno; then
15850 freestanding_flags="-ffreestanding"
15852 else
15853 is_hosted=yes
15854 hosted_define=__STDC_HOSTED__
15858 cat >>confdefs.h <<_ACEOF
15859 #define _GLIBCXX_HOSTED $hosted_define
15860 _ACEOF
15862 FREESTANDING_FLAGS="$freestanding_flags"
15866 # Enable descriptive messages to standard output on termination.
15868 # Check whether --enable-libstdcxx-verbose was given.
15869 if test "${enable_libstdcxx_verbose+set}" = set; then :
15870 enableval=$enable_libstdcxx_verbose;
15871 else
15872 enable_libstdcxx_verbose=yes
15875 if test x"$enable_libstdcxx_verbose" = xyes; then
15876 verbose_define=1
15877 else
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: verbose termination messages are disabled" >&5
15879 $as_echo "$as_me: verbose termination messages are disabled" >&6;}
15880 verbose_define=0
15883 cat >>confdefs.h <<_ACEOF
15884 #define _GLIBCXX_VERBOSE $verbose_define
15885 _ACEOF
15889 # Enable compiler support that doesn't require linking.
15891 # Check whether --enable-libstdcxx-pch was given.
15892 if test "${enable_libstdcxx_pch+set}" = set; then :
15893 enableval=$enable_libstdcxx_pch;
15894 case "$enableval" in
15895 yes|no) ;;
15896 *) as_fn_error $? "Argument to enable/disable libstdcxx-pch must be yes or no" "$LINENO" 5 ;;
15897 esac
15899 else
15900 enable_libstdcxx_pch=$is_hosted
15904 if test $enable_libstdcxx_pch = yes; then
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler with PCH support" >&5
15906 $as_echo_n "checking for compiler with PCH support... " >&6; }
15907 if ${glibcxx_cv_prog_CXX_pch+:} false; then :
15908 $as_echo_n "(cached) " >&6
15909 else
15910 ac_save_CXXFLAGS="$CXXFLAGS"
15911 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
15913 ac_ext=cpp
15914 ac_cpp='$CXXCPP $CPPFLAGS'
15915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15919 echo '#include <math.h>' > conftest.h
15920 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
15921 -o conftest.h.gch 1>&5 2>&1 &&
15922 echo '#error "pch failed"' > conftest.h &&
15923 echo '#include "conftest.h"' > conftest.cc &&
15924 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
15925 then
15926 glibcxx_cv_prog_CXX_pch=yes
15927 else
15928 glibcxx_cv_prog_CXX_pch=no
15930 rm -f conftest*
15931 CXXFLAGS=$ac_save_CXXFLAGS
15932 ac_ext=c
15933 ac_cpp='$CPP $CPPFLAGS'
15934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_prog_CXX_pch" >&5
15941 $as_echo "$glibcxx_cv_prog_CXX_pch" >&6; }
15942 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enabled PCH" >&5
15946 $as_echo_n "checking for enabled PCH... " >&6; }
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_pch" >&5
15948 $as_echo "$enable_libstdcxx_pch" >&6; }
15951 if test $enable_libstdcxx_pch = yes; then
15952 glibcxx_PCHFLAGS="-include bits/stdc++.h"
15953 else
15954 glibcxx_PCHFLAGS=""
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
15960 $as_echo_n "checking for thread model used by GCC... " >&6; }
15961 target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
15963 $as_echo "$target_thread_file" >&6; }
15965 case $target_thread_file in
15966 aix) thread_header=config/rs6000/gthr-aix.h ;;
15967 dce) thread_header=config/pa/gthr-dce.h ;;
15968 gcn) thread_header=config/gcn/gthr-gcn.h ;;
15969 lynx) thread_header=config/gthr-lynx.h ;;
15970 mipssde) thread_header=config/mips/gthr-mipssde.h ;;
15971 posix) thread_header=gthr-posix.h ;;
15972 rtems) thread_header=config/gthr-rtems.h ;;
15973 single) thread_header=gthr-single.h ;;
15974 tpf) thread_header=config/s390/gthr-tpf.h ;;
15975 vxworks) thread_header=config/gthr-vxworks.h ;;
15976 win32) thread_header=config/i386/gthr-win32.h ;;
15977 mcf) thread_header=config/i386/gthr-mcf.h ;;
15978 esac
15984 ac_ext=cpp
15985 ac_cpp='$CXXCPP $CPPFLAGS'
15986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15990 old_CXXFLAGS="$CXXFLAGS"
15992 # Do link tests if possible, instead asm tests, limited to some platforms
15993 # see discussion in PR target/40134, PR libstdc++/40133 and the thread
15994 # starting at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html
15995 atomic_builtins_link_tests=no
15996 if test x$gcc_no_link != xyes; then
15997 # Can do link tests. Limit to some tested platforms
15998 case "$host" in
15999 *-*-linux* | *-*-uclinux* | *-*-kfreebsd*-gnu | *-*-gnu*)
16000 atomic_builtins_link_tests=yes
16002 esac
16005 if test x$atomic_builtins_link_tests = xyes; then
16007 # Do link tests.
16009 CXXFLAGS="$CXXFLAGS -fno-exceptions"
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for bool" >&5
16012 $as_echo_n "checking for atomic builtins for bool... " >&6; }
16013 if ${glibcxx_cv_atomic_bool+:} false; then :
16014 $as_echo_n "(cached) " >&6
16015 else
16017 if test x$gcc_no_link = xyes; then
16018 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h. */
16024 main ()
16026 typedef bool atomic_type;
16027 atomic_type c1;
16028 atomic_type c2;
16029 atomic_type c3(0);
16030 // N.B. __atomic_fetch_add is not supported for bool.
16031 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16032 __ATOMIC_RELAXED);
16033 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16034 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16037 return 0;
16039 _ACEOF
16040 if ac_fn_cxx_try_link "$LINENO"; then :
16041 glibcxx_cv_atomic_bool=yes
16042 else
16043 glibcxx_cv_atomic_bool=no
16045 rm -f core conftest.err conftest.$ac_objext \
16046 conftest$ac_exeext conftest.$ac_ext
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_bool" >&5
16050 $as_echo "$glibcxx_cv_atomic_bool" >&6; }
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
16053 $as_echo_n "checking for atomic builtins for short... " >&6; }
16054 if ${glibcxx_cv_atomic_short+:} false; then :
16055 $as_echo_n "(cached) " >&6
16056 else
16058 if test x$gcc_no_link = xyes; then
16059 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h. */
16065 main ()
16067 typedef short atomic_type;
16068 atomic_type c1;
16069 atomic_type c2;
16070 atomic_type c3(0);
16071 __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
16072 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16073 __ATOMIC_RELAXED);
16074 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16075 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16078 return 0;
16080 _ACEOF
16081 if ac_fn_cxx_try_link "$LINENO"; then :
16082 glibcxx_cv_atomic_short=yes
16083 else
16084 glibcxx_cv_atomic_short=no
16086 rm -f core conftest.err conftest.$ac_objext \
16087 conftest$ac_exeext conftest.$ac_ext
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_short" >&5
16091 $as_echo "$glibcxx_cv_atomic_short" >&6; }
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
16094 $as_echo_n "checking for atomic builtins for int... " >&6; }
16095 if ${glibcxx_cv_atomic_int+:} false; then :
16096 $as_echo_n "(cached) " >&6
16097 else
16099 if test x$gcc_no_link = xyes; then
16100 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16103 /* end confdefs.h. */
16106 main ()
16108 typedef int atomic_type;
16109 atomic_type c1;
16110 atomic_type c2;
16111 atomic_type c3(0);
16112 __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
16113 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16114 __ATOMIC_RELAXED);
16115 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16116 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16119 return 0;
16121 _ACEOF
16122 if ac_fn_cxx_try_link "$LINENO"; then :
16123 glibcxx_cv_atomic_int=yes
16124 else
16125 glibcxx_cv_atomic_int=no
16127 rm -f core conftest.err conftest.$ac_objext \
16128 conftest$ac_exeext conftest.$ac_ext
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_int" >&5
16132 $as_echo "$glibcxx_cv_atomic_int" >&6; }
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long long" >&5
16135 $as_echo_n "checking for atomic builtins for long long... " >&6; }
16136 if ${glibcxx_cv_atomic_long_long+:} false; then :
16137 $as_echo_n "(cached) " >&6
16138 else
16140 if test x$gcc_no_link = xyes; then
16141 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16144 /* end confdefs.h. */
16147 main ()
16149 typedef long long atomic_type;
16150 atomic_type c1;
16151 atomic_type c2;
16152 atomic_type c3(0);
16153 __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
16154 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16155 __ATOMIC_RELAXED);
16156 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16157 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16160 return 0;
16162 _ACEOF
16163 if ac_fn_cxx_try_link "$LINENO"; then :
16164 glibcxx_cv_atomic_long_long=yes
16165 else
16166 glibcxx_cv_atomic_long_long=no
16168 rm -f core conftest.err conftest.$ac_objext \
16169 conftest$ac_exeext conftest.$ac_ext
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_long_long" >&5
16173 $as_echo "$glibcxx_cv_atomic_long_long" >&6; }
16175 else
16177 # Do asm tests.
16179 # Compile unoptimized.
16180 CXXFLAGS='-O0 -S'
16182 # Fake what AC_TRY_COMPILE does.
16184 cat > conftest.$ac_ext << EOF
16185 #line 16185 "configure"
16186 int main()
16188 typedef bool atomic_type;
16189 atomic_type c1;
16190 atomic_type c2;
16191 atomic_type c3(0);
16192 // N.B. __atomic_fetch_add is not supported for bool.
16193 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16194 __ATOMIC_RELAXED);
16195 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16196 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16198 return 0;
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for bool" >&5
16203 $as_echo_n "checking for atomic builtins for bool... " >&6; }
16204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16205 (eval $ac_compile) 2>&5
16206 ac_status=$?
16207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16208 test $ac_status = 0; }; then
16209 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
16210 glibcxx_cv_atomic_bool=no
16211 else
16212 glibcxx_cv_atomic_bool=yes
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_bool" >&5
16216 $as_echo "$glibcxx_cv_atomic_bool" >&6; }
16217 rm -f conftest*
16219 cat > conftest.$ac_ext << EOF
16220 #line 16220 "configure"
16221 int main()
16223 typedef short atomic_type;
16224 atomic_type c1;
16225 atomic_type c2;
16226 atomic_type c3(0);
16227 __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
16228 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16229 __ATOMIC_RELAXED);
16230 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16231 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16233 return 0;
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
16238 $as_echo_n "checking for atomic builtins for short... " >&6; }
16239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16240 (eval $ac_compile) 2>&5
16241 ac_status=$?
16242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16243 test $ac_status = 0; }; then
16244 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
16245 glibcxx_cv_atomic_short=no
16246 else
16247 glibcxx_cv_atomic_short=yes
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_short" >&5
16251 $as_echo "$glibcxx_cv_atomic_short" >&6; }
16252 rm -f conftest*
16254 cat > conftest.$ac_ext << EOF
16255 #line 16255 "configure"
16256 int main()
16258 // NB: _Atomic_word not necessarily int.
16259 typedef int atomic_type;
16260 atomic_type c1;
16261 atomic_type c2;
16262 atomic_type c3(0);
16263 __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
16264 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16265 __ATOMIC_RELAXED);
16266 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16267 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16269 return 0;
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
16274 $as_echo_n "checking for atomic builtins for int... " >&6; }
16275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16276 (eval $ac_compile) 2>&5
16277 ac_status=$?
16278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16279 test $ac_status = 0; }; then
16280 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
16281 glibcxx_cv_atomic_int=no
16282 else
16283 glibcxx_cv_atomic_int=yes
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_int" >&5
16287 $as_echo "$glibcxx_cv_atomic_int" >&6; }
16288 rm -f conftest*
16290 cat > conftest.$ac_ext << EOF
16291 #line 16291 "configure"
16292 int main()
16294 typedef long long atomic_type;
16295 atomic_type c1;
16296 atomic_type c2;
16297 atomic_type c3(0);
16298 __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
16299 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16300 __ATOMIC_RELAXED);
16301 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16302 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16304 return 0;
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long long" >&5
16309 $as_echo_n "checking for atomic builtins for long long... " >&6; }
16310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16311 (eval $ac_compile) 2>&5
16312 ac_status=$?
16313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16314 test $ac_status = 0; }; then
16315 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
16316 glibcxx_cv_atomic_long_long=no
16317 else
16318 glibcxx_cv_atomic_long_long=yes
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_long_long" >&5
16322 $as_echo "$glibcxx_cv_atomic_long_long" >&6; }
16323 rm -f conftest*
16327 CXXFLAGS="$old_CXXFLAGS"
16328 ac_ext=c
16329 ac_cpp='$CPP $CPPFLAGS'
16330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16335 # Set atomicity_dir to builtins if all but the long long test above passes,
16336 # or if the builtins were already chosen (e.g. by configure.host).
16337 if { test "$glibcxx_cv_atomic_bool" = yes \
16338 && test "$glibcxx_cv_atomic_short" = yes \
16339 && test "$glibcxx_cv_atomic_int" = yes; } \
16340 || test "$atomicity_dir" = "cpu/generic/atomicity_builtins"; then
16342 $as_echo "#define _GLIBCXX_ATOMIC_BUILTINS 1" >>confdefs.h
16344 atomicity_dir=cpu/generic/atomicity_builtins
16347 # If still generic, set to mutex.
16348 if test $atomicity_dir = "cpu/generic" ; then
16349 atomicity_dir=cpu/generic/atomicity_mutex
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No native atomic operations are provided for this platform." >&5
16351 $as_echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
16352 if test "x$target_thread_file" = xsingle; then
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: They cannot be faked when thread support is disabled." >&5
16354 $as_echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Thread-safety of certain classes is not guaranteed." >&5
16356 $as_echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
16357 else
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: They will be faked using a mutex." >&5
16359 $as_echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Performance of certain classes will degrade as a result." >&5
16361 $as_echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
16369 # Check whether --with-libstdcxx-lock-policy was given.
16370 if test "${with_libstdcxx_lock_policy+set}" = set; then :
16371 withval=$with_libstdcxx_lock_policy; libstdcxx_atomic_lock_policy=$withval
16372 else
16373 libstdcxx_atomic_lock_policy=auto
16377 case "$libstdcxx_atomic_lock_policy" in
16378 atomic|mutex|auto) ;;
16379 *) as_fn_error $? "Invalid argument for --with-libstdcxx-lock-policy" "$LINENO" 5 ;;
16380 esac
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lock policy for shared_ptr reference counts" >&5
16382 $as_echo_n "checking for lock policy for shared_ptr reference counts... " >&6; }
16384 if test x"$libstdcxx_atomic_lock_policy" = x"auto"; then
16386 ac_ext=cpp
16387 ac_cpp='$CXXCPP $CPPFLAGS'
16388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16392 ac_save_CXXFLAGS="$CXXFLAGS"
16394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16395 /* end confdefs.h. */
16397 #if defined __riscv
16398 # error "Defaulting to mutex-based locks for ABI compatibility"
16399 #endif
16400 #if ! defined __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
16401 # error "No 2-byte compare-and-swap"
16402 #elif ! defined __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
16403 # error "No 4-byte compare-and-swap"
16404 #endif
16407 main ()
16411 return 0;
16413 _ACEOF
16414 if ac_fn_cxx_try_compile "$LINENO"; then :
16415 libstdcxx_atomic_lock_policy=atomic
16416 else
16417 libstdcxx_atomic_lock_policy=mutex
16419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16420 ac_ext=c
16421 ac_cpp='$CPP $CPPFLAGS'
16422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16426 CXXFLAGS="$ac_save_CXXFLAGS"
16429 if test x"$libstdcxx_atomic_lock_policy" = x"atomic"; then
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: atomic" >&5
16431 $as_echo "atomic" >&6; }
16433 $as_echo "#define HAVE_ATOMIC_LOCK_POLICY 1" >>confdefs.h
16435 else
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mutex" >&5
16437 $as_echo "mutex" >&6; }
16443 # Fake what AC_TRY_COMPILE does, without linking as this is
16444 # unnecessary for this test.
16446 cat > conftest.$ac_ext << EOF
16447 #line 16447 "configure"
16448 int main()
16450 _Decimal32 d1;
16451 _Decimal64 d2;
16452 _Decimal128 d3;
16453 return 0;
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO/IEC TR 24733 " >&5
16458 $as_echo_n "checking for ISO/IEC TR 24733 ... " >&6; }
16459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16460 (eval $ac_compile) 2>&5
16461 ac_status=$?
16462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16463 test $ac_status = 0; }; then
16465 $as_echo "#define _GLIBCXX_USE_DECIMAL_FLOAT 1" >>confdefs.h
16467 enable_dfp=yes
16468 else
16469 enable_dfp=no
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dfp" >&5
16472 $as_echo "$enable_dfp" >&6; }
16473 rm -f conftest*
16478 ac_ext=cpp
16479 ac_cpp='$CXXCPP $CPPFLAGS'
16480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16485 # Fake what AC_TRY_COMPILE does, without linking as this is
16486 # unnecessary for this test.
16488 cat > conftest.$ac_ext << EOF
16489 #line 16489 "configure"
16490 template<typename T1, typename T2>
16491 struct same
16492 { typedef T2 type; };
16494 template<typename T>
16495 struct same<T, T>;
16497 int main()
16499 typename same<double, __float128>::type f1;
16500 typename same<long double, __float128>::type f2;
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __float128" >&5
16505 $as_echo_n "checking for __float128... " >&6; }
16506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16507 (eval $ac_compile) 2>&5
16508 ac_status=$?
16509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16510 test $ac_status = 0; }; then
16511 enable_float128=yes
16512 else
16513 enable_float128=no
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float128" >&5
16516 $as_echo "$enable_float128" >&6; }
16518 rm -f conftest*
16520 ac_ext=c
16521 ac_cpp='$CPP $CPPFLAGS'
16522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16527 if test "$enable_float128" = yes; then
16528 port_specific_symbol_files="$port_specific_symbol_files \$(top_srcdir)/config/abi/pre/float128.ver"
16531 # Checks for compiler support that doesn't require linking.
16533 # All these tests are for C++; save the language and the compiler flags.
16534 # The CXXFLAGS thing is suspicious, but based on similar bits previously
16535 # found in GLIBCXX_CONFIGURE.
16537 ac_ext=cpp
16538 ac_cpp='$CXXCPP $CPPFLAGS'
16539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16543 ac_test_CXXFLAGS="${CXXFLAGS+set}"
16544 ac_save_CXXFLAGS="$CXXFLAGS"
16546 # Check for -ffunction-sections -fdata-sections
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
16548 $as_echo_n "checking for g++ that supports -ffunction-sections -fdata-sections... " >&6; }
16549 CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections'
16550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551 /* end confdefs.h. */
16552 int foo; void bar() { };
16554 main ()
16558 return 0;
16560 _ACEOF
16561 if ac_fn_cxx_try_compile "$LINENO"; then :
16562 ac_fdsections=yes
16563 else
16564 ac_fdsections=no
16566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16567 if test "$ac_test_CXXFLAGS" = set; then
16568 CXXFLAGS="$ac_save_CXXFLAGS"
16569 else
16570 # this is the suspicious part
16571 CXXFLAGS=''
16573 if test x"$ac_fdsections" = x"yes"; then
16574 SECTION_FLAGS='-ffunction-sections -fdata-sections'
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
16577 $as_echo "$ac_fdsections" >&6; }
16579 ac_ext=c
16580 ac_cpp='$CPP $CPPFLAGS'
16581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16588 # Enable all the variable C++ runtime options that don't require linking.
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for underlying I/O to use" >&5
16591 $as_echo_n "checking for underlying I/O to use... " >&6; }
16592 # Check whether --enable-cstdio was given.
16593 if test "${enable_cstdio+set}" = set; then :
16594 enableval=$enable_cstdio;
16595 case "$enableval" in
16596 stdio|stdio_posix|stdio_pure) ;;
16597 *) as_fn_error $? "Unknown argument to enable/disable cstdio" "$LINENO" 5 ;;
16598 esac
16600 else
16601 enable_cstdio=stdio
16606 # The only available I/O model is based on stdio, via basic_file_stdio.
16607 # The default "stdio" is actually "stdio + POSIX" because it uses fdopen(3)
16608 # to get a file descriptor and then uses read(3) and write(3) with it.
16609 # The "stdio_pure" model doesn't use fdopen and only uses FILE* for I/O.
16610 case ${enable_cstdio} in
16611 stdio*)
16612 CSTDIO_H=config/io/c_io_stdio.h
16613 BASIC_FILE_H=config/io/basic_file_stdio.h
16614 BASIC_FILE_CC=config/io/basic_file_stdio.cc
16616 if test "x$enable_cstdio" = "xstdio_pure" ; then
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdio (without POSIX read/write)" >&5
16618 $as_echo "stdio (without POSIX read/write)" >&6; }
16620 $as_echo "#define _GLIBCXX_USE_STDIO_PURE 1" >>confdefs.h
16622 else
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdio (with POSIX read/write)" >&5
16624 $as_echo "stdio (with POSIX read/write)" >&6; }
16627 esac
16634 # Check whether --enable-clocale was given.
16635 if test "${enable_clocale+set}" = set; then :
16636 enableval=$enable_clocale;
16637 case "$enableval" in
16638 generic|gnu|ieee_1003.1-2001|newlib|yes|no|auto) ;;
16639 *) as_fn_error $? "Unknown argument to enable/disable clocale" "$LINENO" 5 ;;
16640 esac
16642 else
16643 enable_clocale=auto
16648 # Deal with gettext issues. Default to not using it (=no) until we detect
16649 # support for it later. Let the user turn it off via --e/d, but let that
16650 # default to on for easier handling.
16651 USE_NLS=no
16652 # Check whether --enable-nls was given.
16653 if test "${enable_nls+set}" = set; then :
16654 enableval=$enable_nls;
16655 else
16656 enable_nls=yes
16660 # Either a known package, or "auto"
16661 if test $enable_clocale = no || test $enable_clocale = yes; then
16662 enable_clocale=auto
16664 enable_clocale_flag=$enable_clocale
16666 # Probe for locale model to use if none specified.
16667 # Default to "generic".
16668 if test $enable_clocale_flag = auto; then
16669 case ${target_os} in
16670 linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
16671 enable_clocale_flag=gnu
16673 darwin*)
16674 enable_clocale_flag=darwin
16676 vxworks*)
16677 enable_clocale_flag=vxworks
16679 dragonfly* | freebsd*)
16680 enable_clocale_flag=dragonfly
16682 openbsd*)
16683 enable_clocale_flag=newlib
16686 if test x"$with_newlib" = x"yes"; then
16687 enable_clocale_flag=newlib
16688 else
16689 enable_clocale_flag=generic
16692 esac
16695 # Sanity check model, and test for special functionality.
16696 if test $enable_clocale_flag = gnu; then
16697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16698 /* end confdefs.h. */
16700 #include <features.h>
16701 #if (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined(__UCLIBC__)
16702 _GLIBCXX_ok
16703 #endif
16705 _ACEOF
16706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16707 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then :
16708 enable_clocale_flag=gnu
16709 else
16710 enable_clocale_flag=generic
16712 rm -f conftest*
16715 # Set it to scream when it hurts.
16716 ac_save_CFLAGS="$CFLAGS"
16717 CFLAGS="-Wimplicit-function-declaration -Werror"
16719 # Use strxfrm_l if available.
16720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721 /* end confdefs.h. */
16722 #define _GNU_SOURCE 1
16723 #include <string.h>
16724 #include <locale.h>
16726 main ()
16728 char s[128]; __locale_t loc; strxfrm_l(s, "C", 5, loc);
16730 return 0;
16732 _ACEOF
16733 if ac_fn_c_try_compile "$LINENO"; then :
16735 $as_echo "#define HAVE_STRXFRM_L 1" >>confdefs.h
16738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16740 # Use strerror_l if available.
16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h. */
16743 #define _GNU_SOURCE 1
16744 #include <string.h>
16745 #include <locale.h>
16747 main ()
16749 __locale_t loc; strerror_l(5, loc);
16751 return 0;
16753 _ACEOF
16754 if ac_fn_c_try_compile "$LINENO"; then :
16756 $as_echo "#define HAVE_STRERROR_L 1" >>confdefs.h
16759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16761 CFLAGS="$ac_save_CFLAGS"
16764 # Perhaps use strerror_r if available, and strerror_l isn't.
16765 ac_save_CFLAGS="$CFLAGS"
16766 CFLAGS="-Wimplicit-function-declaration -Werror"
16767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768 /* end confdefs.h. */
16769 #define _GNU_SOURCE 1
16770 #include <string.h>
16771 #include <locale.h>
16773 main ()
16775 char s[128]; strerror_r(5, s, 128);
16777 return 0;
16779 _ACEOF
16780 if ac_fn_c_try_compile "$LINENO"; then :
16782 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16786 CFLAGS="$ac_save_CFLAGS"
16788 # Set configure bits for specified locale package
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C locale to use" >&5
16790 $as_echo_n "checking for C locale to use... " >&6; }
16791 case ${enable_clocale_flag} in
16792 generic)
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: generic" >&5
16794 $as_echo "generic" >&6; }
16796 CLOCALE_H=config/locale/generic/c_locale.h
16797 CLOCALE_CC=config/locale/generic/c_locale.cc
16798 CCODECVT_CC=config/locale/generic/codecvt_members.cc
16799 CCOLLATE_CC=config/locale/generic/collate_members.cc
16800 CCTYPE_CC=config/locale/generic/ctype_members.cc
16801 CMESSAGES_H=config/locale/generic/messages_members.h
16802 CMESSAGES_CC=config/locale/generic/messages_members.cc
16803 CMONEY_CC=config/locale/generic/monetary_members.cc
16804 CNUMERIC_CC=config/locale/generic/numeric_members.cc
16805 CTIME_H=config/locale/generic/time_members.h
16806 CTIME_CC=config/locale/generic/time_members.cc
16807 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
16809 darwin)
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: darwin" >&5
16811 $as_echo "darwin" >&6; }
16813 CLOCALE_H=config/locale/generic/c_locale.h
16814 CLOCALE_CC=config/locale/generic/c_locale.cc
16815 CCODECVT_CC=config/locale/generic/codecvt_members.cc
16816 CCOLLATE_CC=config/locale/generic/collate_members.cc
16817 CCTYPE_CC=config/locale/darwin/ctype_members.cc
16818 CMESSAGES_H=config/locale/generic/messages_members.h
16819 CMESSAGES_CC=config/locale/generic/messages_members.cc
16820 CMONEY_CC=config/locale/generic/monetary_members.cc
16821 CNUMERIC_CC=config/locale/generic/numeric_members.cc
16822 CTIME_H=config/locale/generic/time_members.h
16823 CTIME_CC=config/locale/generic/time_members.cc
16824 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
16826 vxworks)
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: vxworks" >&5
16828 $as_echo "vxworks" >&6; }
16830 CLOCALE_H=config/locale/generic/c_locale.h
16831 CLOCALE_CC=config/locale/generic/c_locale.cc
16832 CCODECVT_CC=config/locale/generic/codecvt_members.cc
16833 CCOLLATE_CC=config/locale/generic/collate_members.cc
16834 CCTYPE_CC=config/locale/vxworks/ctype_members.cc
16835 CMESSAGES_H=config/locale/generic/messages_members.h
16836 CMESSAGES_CC=config/locale/generic/messages_members.cc
16837 CMONEY_CC=config/locale/generic/monetary_members.cc
16838 CNUMERIC_CC=config/locale/generic/numeric_members.cc
16839 CTIME_H=config/locale/generic/time_members.h
16840 CTIME_CC=config/locale/generic/time_members.cc
16841 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
16843 dragonfly)
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dragonfly or freebsd" >&5
16845 $as_echo "dragonfly or freebsd" >&6; }
16847 CLOCALE_H=config/locale/dragonfly/c_locale.h
16848 CLOCALE_CC=config/locale/dragonfly/c_locale.cc
16849 CCODECVT_CC=config/locale/dragonfly/codecvt_members.cc
16850 CCOLLATE_CC=config/locale/dragonfly/collate_members.cc
16851 CCTYPE_CC=config/locale/dragonfly/ctype_members.cc
16852 CMESSAGES_H=config/locale/generic/messages_members.h
16853 CMESSAGES_CC=config/locale/generic/messages_members.cc
16854 CMONEY_CC=config/locale/dragonfly/monetary_members.cc
16855 CNUMERIC_CC=config/locale/dragonfly/numeric_members.cc
16856 CTIME_H=config/locale/dragonfly/time_members.h
16857 CTIME_CC=config/locale/dragonfly/time_members.cc
16858 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
16861 gnu)
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gnu" >&5
16863 $as_echo "gnu" >&6; }
16865 # Declare intention to use gettext, and add support for specific
16866 # languages.
16867 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
16868 ALL_LINGUAS="de fr"
16870 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
16871 # Extract the first word of "msgfmt", so it can be a program name with args.
16872 set dummy msgfmt; ac_word=$2
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16874 $as_echo_n "checking for $ac_word... " >&6; }
16875 if ${ac_cv_prog_check_msgfmt+:} false; then :
16876 $as_echo_n "(cached) " >&6
16877 else
16878 if test -n "$check_msgfmt"; then
16879 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
16880 else
16881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16882 for as_dir in $PATH
16884 IFS=$as_save_IFS
16885 test -z "$as_dir" && as_dir=.
16886 for ac_exec_ext in '' $ac_executable_extensions; do
16887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16888 ac_cv_prog_check_msgfmt="yes"
16889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16890 break 2
16892 done
16893 done
16894 IFS=$as_save_IFS
16896 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
16899 check_msgfmt=$ac_cv_prog_check_msgfmt
16900 if test -n "$check_msgfmt"; then
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $check_msgfmt" >&5
16902 $as_echo "$check_msgfmt" >&6; }
16903 else
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16905 $as_echo "no" >&6; }
16909 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
16910 USE_NLS=yes
16912 # Export the build objects.
16913 for ling in $ALL_LINGUAS; do \
16914 glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
16915 glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
16916 done
16920 CLOCALE_H=config/locale/gnu/c_locale.h
16921 CLOCALE_CC=config/locale/gnu/c_locale.cc
16922 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
16923 CCOLLATE_CC=config/locale/gnu/collate_members.cc
16924 CCTYPE_CC=config/locale/gnu/ctype_members.cc
16925 CMESSAGES_H=config/locale/gnu/messages_members.h
16926 CMESSAGES_CC=config/locale/gnu/messages_members.cc
16927 CMONEY_CC=config/locale/gnu/monetary_members.cc
16928 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
16929 CTIME_H=config/locale/gnu/time_members.h
16930 CTIME_CC=config/locale/gnu/time_members.cc
16931 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
16933 ieee_1003.1-2001)
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IEEE 1003.1" >&5
16935 $as_echo "IEEE 1003.1" >&6; }
16937 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
16938 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
16939 CCODECVT_CC=config/locale/generic/codecvt_members.cc
16940 CCOLLATE_CC=config/locale/generic/collate_members.cc
16941 CCTYPE_CC=config/locale/generic/ctype_members.cc
16942 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
16943 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
16944 CMONEY_CC=config/locale/generic/monetary_members.cc
16945 CNUMERIC_CC=config/locale/generic/numeric_members.cc
16946 CTIME_H=config/locale/generic/time_members.h
16947 CTIME_CC=config/locale/generic/time_members.cc
16948 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
16950 newlib)
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newlib" >&5
16952 $as_echo "newlib" >&6; }
16954 CLOCALE_H=config/locale/generic/c_locale.h
16955 CLOCALE_CC=config/locale/generic/c_locale.cc
16956 CCODECVT_CC=config/locale/generic/codecvt_members.cc
16957 CCOLLATE_CC=config/locale/generic/collate_members.cc
16958 CCTYPE_CC=config/locale/newlib/ctype_members.cc
16959 CMESSAGES_H=config/locale/generic/messages_members.h
16960 CMESSAGES_CC=config/locale/generic/messages_members.cc
16961 CMONEY_CC=config/locale/generic/monetary_members.cc
16962 CNUMERIC_CC=config/locale/generic/numeric_members.cc
16963 CTIME_H=config/locale/generic/time_members.h
16964 CTIME_CC=config/locale/generic/time_members.cc
16965 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
16967 esac
16969 # This is where the testsuite looks for locale catalogs, using the
16970 # -DLOCALEDIR define during testsuite compilation.
16971 glibcxx_localedir=${glibcxx_builddir}/po/share/locale
16974 # A standalone libintl (e.g., GNU libintl) may be in use.
16975 if test $USE_NLS = yes; then
16976 for ac_header in libintl.h
16977 do :
16978 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
16979 if test "x$ac_cv_header_libintl_h" = xyes; then :
16980 cat >>confdefs.h <<_ACEOF
16981 #define HAVE_LIBINTL_H 1
16982 _ACEOF
16984 else
16985 USE_NLS=no
16988 done
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
16991 $as_echo_n "checking for library containing gettext... " >&6; }
16992 if ${ac_cv_search_gettext+:} false; then :
16993 $as_echo_n "(cached) " >&6
16994 else
16995 ac_func_search_save_LIBS=$LIBS
16996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16997 /* end confdefs.h. */
16999 /* Override any GCC internal prototype to avoid an error.
17000 Use char because int might match the return type of a GCC
17001 builtin and then its argument prototype would still apply. */
17002 #ifdef __cplusplus
17003 extern "C"
17004 #endif
17005 char gettext ();
17007 main ()
17009 return gettext ();
17011 return 0;
17013 _ACEOF
17014 for ac_lib in '' intl; do
17015 if test -z "$ac_lib"; then
17016 ac_res="none required"
17017 else
17018 ac_res=-l$ac_lib
17019 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17021 if test x$gcc_no_link = xyes; then
17022 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17024 if ac_fn_c_try_link "$LINENO"; then :
17025 ac_cv_search_gettext=$ac_res
17027 rm -f core conftest.err conftest.$ac_objext \
17028 conftest$ac_exeext
17029 if ${ac_cv_search_gettext+:} false; then :
17030 break
17032 done
17033 if ${ac_cv_search_gettext+:} false; then :
17035 else
17036 ac_cv_search_gettext=no
17038 rm conftest.$ac_ext
17039 LIBS=$ac_func_search_save_LIBS
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
17042 $as_echo "$ac_cv_search_gettext" >&6; }
17043 ac_res=$ac_cv_search_gettext
17044 if test "$ac_res" != no; then :
17045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17047 else
17048 USE_NLS=no
17052 if test $USE_NLS = yes; then
17054 $as_echo "#define _GLIBCXX_USE_NLS 1" >>confdefs.h
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::allocator base class" >&5
17074 $as_echo_n "checking for std::allocator base class... " >&6; }
17075 # Check whether --enable-libstdcxx-allocator was given.
17076 if test "${enable_libstdcxx_allocator+set}" = set; then :
17077 enableval=$enable_libstdcxx_allocator;
17078 case "$enableval" in
17079 new|malloc|yes|no|auto) ;;
17080 *) as_fn_error $? "Unknown argument to enable/disable libstdcxx-allocator" "$LINENO" 5 ;;
17081 esac
17083 else
17084 enable_libstdcxx_allocator=auto
17089 # If they didn't use this option switch, or if they specified --enable
17090 # with no specific model, we'll have to look for one. If they
17091 # specified --disable (???), do likewise.
17092 if test $enable_libstdcxx_allocator = no ||
17093 test $enable_libstdcxx_allocator = yes;
17094 then
17095 enable_libstdcxx_allocator=auto
17098 # Either a known package, or "auto". Auto implies the default choice
17099 # for a particular platform.
17100 enable_libstdcxx_allocator_flag=$enable_libstdcxx_allocator
17102 # Probe for host-specific support if no specific model is specified.
17103 # Default to "new".
17104 if test $enable_libstdcxx_allocator_flag = auto; then
17105 case ${target_os} in
17106 linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
17107 enable_libstdcxx_allocator_flag=new
17110 enable_libstdcxx_allocator_flag=new
17112 esac
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_allocator_flag" >&5
17115 $as_echo "$enable_libstdcxx_allocator_flag" >&6; }
17118 # Set configure bits for specified locale package
17119 case ${enable_libstdcxx_allocator_flag} in
17120 malloc)
17121 ALLOCATOR_H=config/allocator/malloc_allocator_base.h
17122 ALLOCATOR_NAME=__gnu_cxx::malloc_allocator
17124 new)
17125 ALLOCATOR_H=config/allocator/new_allocator_base.h
17126 ALLOCATOR_NAME=__gnu_cxx::new_allocator
17128 esac
17135 # Check whether --enable-cheaders-obsolete was given.
17136 if test "${enable_cheaders_obsolete+set}" = set; then :
17137 enableval=$enable_cheaders_obsolete;
17138 case "$enableval" in
17139 yes|no) ;;
17140 *) as_fn_error $? "Argument to enable/disable cheaders-obsolete must be yes or no" "$LINENO" 5 ;;
17141 esac
17143 else
17144 enable_cheaders_obsolete=no
17148 # Check whether --enable-cheaders was given.
17149 if test "${enable_cheaders+set}" = set; then :
17150 enableval=$enable_cheaders;
17151 case "$enableval" in
17152 c|c_global|c_std) ;;
17153 *) as_fn_error $? "Unknown argument to enable/disable cheaders" "$LINENO" 5 ;;
17154 esac
17156 else
17157 enable_cheaders=$c_model
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: \"C\" header strategy set to $enable_cheaders" >&5
17162 $as_echo "$as_me: \"C\" header strategy set to $enable_cheaders" >&6;}
17163 if test $enable_cheaders = c_std ; then
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the --enable-cheaders=c_std configuration is obsolete, c_global should be used instead" >&5
17165 $as_echo "$as_me: WARNING: the --enable-cheaders=c_std configuration is obsolete, c_global should be used instead" >&2;}
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: if you are unable to use c_global please report a bug or inform libstdc++@gcc.gnu.org" >&5
17167 $as_echo "$as_me: WARNING: if you are unable to use c_global please report a bug or inform libstdc++@gcc.gnu.org" >&2;}
17168 if test $enable_cheaders_obsolete != yes ; then
17169 as_fn_error $? "use --enable-cheaders-obsolete to use c_std \"C\" headers" "$LINENO" 5
17173 C_INCLUDE_DIR='${glibcxx_srcdir}/include/'$enable_cheaders
17175 # Allow overrides to configure.host here.
17176 if test $enable_cheaders = c_global; then
17177 c_compatibility=yes
17186 # Check whether --enable-long-long was given.
17187 if test "${enable_long_long+set}" = set; then :
17188 enableval=$enable_long_long;
17189 case "$enableval" in
17190 yes|no) ;;
17191 *) as_fn_error $? "Argument to enable/disable long-long must be yes or no" "$LINENO" 5 ;;
17192 esac
17194 else
17195 enable_long_long=yes
17199 if test $enable_long_long = yes; then
17201 $as_echo "#define _GLIBCXX_USE_LONG_LONG 1" >>confdefs.h
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enabled long long specializations" >&5
17205 $as_echo_n "checking for enabled long long specializations... " >&6; }
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_long_long" >&5
17207 $as_echo "$enable_long_long" >&6; }
17210 # Check whether --enable-wchar_t was given.
17211 if test "${enable_wchar_t+set}" = set; then :
17212 enableval=$enable_wchar_t;
17213 case "$enableval" in
17214 yes|no) ;;
17215 *) as_fn_error $? "Argument to enable/disable wchar_t must be yes or no" "$LINENO" 5 ;;
17216 esac
17218 else
17219 enable_wchar_t=yes
17224 # Test wchar.h for mbstate_t, which is needed for char_traits and fpos.
17225 for ac_header in wchar.h
17226 do :
17227 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
17228 if test "x$ac_cv_header_wchar_h" = xyes; then :
17229 cat >>confdefs.h <<_ACEOF
17230 #define HAVE_WCHAR_H 1
17231 _ACEOF
17232 ac_has_wchar_h=yes
17233 else
17234 ac_has_wchar_h=no
17237 done
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
17240 $as_echo_n "checking for mbstate_t... " >&6; }
17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242 /* end confdefs.h. */
17243 #include <wchar.h>
17245 main ()
17247 mbstate_t teststate;
17249 return 0;
17251 _ACEOF
17252 if ac_fn_c_try_compile "$LINENO"; then :
17253 have_mbstate_t=yes
17254 else
17255 have_mbstate_t=no
17257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
17259 $as_echo "$have_mbstate_t" >&6; }
17260 if test x"$have_mbstate_t" = xyes; then
17262 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
17266 # Test it always, for use in GLIBCXX_ENABLE_C99, together with
17267 # ac_has_wchar_h.
17268 for ac_header in wctype.h
17269 do :
17270 ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
17271 if test "x$ac_cv_header_wctype_h" = xyes; then :
17272 cat >>confdefs.h <<_ACEOF
17273 #define HAVE_WCTYPE_H 1
17274 _ACEOF
17275 ac_has_wctype_h=yes
17276 else
17277 ac_has_wctype_h=no
17280 done
17283 if test x"$enable_wchar_t" = x"yes"; then
17286 ac_ext=cpp
17287 ac_cpp='$CXXCPP $CPPFLAGS'
17288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17293 if test x"$ac_has_wchar_h" = xyes &&
17294 test x"$ac_has_wctype_h" = xyes; then
17295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296 /* end confdefs.h. */
17297 #include <wchar.h>
17298 #include <stddef.h>
17299 wint_t i;
17300 long l = WEOF;
17301 long j = WCHAR_MIN;
17302 long k = WCHAR_MAX;
17303 namespace test
17305 using ::btowc;
17306 using ::fgetwc;
17307 using ::fgetws;
17308 using ::fputwc;
17309 using ::fputws;
17310 using ::fwide;
17311 using ::fwprintf;
17312 using ::fwscanf;
17313 using ::getwc;
17314 using ::getwchar;
17315 using ::mbrlen;
17316 using ::mbrtowc;
17317 using ::mbsinit;
17318 using ::mbsrtowcs;
17319 using ::putwc;
17320 using ::putwchar;
17321 using ::swprintf;
17322 using ::swscanf;
17323 using ::ungetwc;
17324 using ::vfwprintf;
17325 using ::vswprintf;
17326 using ::vwprintf;
17327 using ::wcrtomb;
17328 using ::wcscat;
17329 using ::wcschr;
17330 using ::wcscmp;
17331 using ::wcscoll;
17332 using ::wcscpy;
17333 using ::wcscspn;
17334 using ::wcsftime;
17335 using ::wcslen;
17336 using ::wcsncat;
17337 using ::wcsncmp;
17338 using ::wcsncpy;
17339 using ::wcspbrk;
17340 using ::wcsrchr;
17341 using ::wcsrtombs;
17342 using ::wcsspn;
17343 using ::wcsstr;
17344 using ::wcstod;
17345 using ::wcstok;
17346 using ::wcstol;
17347 using ::wcstoul;
17348 using ::wcsxfrm;
17349 using ::wctob;
17350 using ::wmemchr;
17351 using ::wmemcmp;
17352 using ::wmemcpy;
17353 using ::wmemmove;
17354 using ::wmemset;
17355 using ::wprintf;
17356 using ::wscanf;
17360 main ()
17364 return 0;
17366 _ACEOF
17367 if ac_fn_cxx_try_compile "$LINENO"; then :
17369 else
17370 enable_wchar_t=no
17372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17373 else
17374 enable_wchar_t=no
17377 ac_ext=c
17378 ac_cpp='$CPP $CPPFLAGS'
17379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17385 if test x"$enable_wchar_t" = x"yes"; then
17387 $as_echo "#define _GLIBCXX_USE_WCHAR_T 1" >>confdefs.h
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enabled wchar_t specializations" >&5
17392 $as_echo_n "checking for enabled wchar_t specializations... " >&6; }
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_wchar_t" >&5
17394 $as_echo "$enable_wchar_t" >&6; }
17398 # Check whether --enable-c99 was given.
17399 if test "${enable_c99+set}" = set; then :
17400 enableval=$enable_c99;
17401 case "$enableval" in
17402 yes|no) ;;
17403 *) as_fn_error $? "Argument to enable/disable c99 must be yes or no" "$LINENO" 5 ;;
17404 esac
17406 else
17407 enable_c99=yes
17412 if test x"$enable_c99" = x"yes"; then
17414 ac_ext=cpp
17415 ac_cpp='$CXXCPP $CPPFLAGS'
17416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17421 # Use -std=c++98 (instead of -std=gnu++98) because leaving __STRICT_ANSI__
17422 # undefined may cause fake C99 facilities, like pre-standard snprintf,
17423 # to be spuriously enabled.
17424 ac_save_CXXFLAGS="$CXXFLAGS"
17425 CXXFLAGS="$CXXFLAGS -std=c++98"
17426 ac_save_LIBS="$LIBS"
17427 ac_save_gcc_no_link="$gcc_no_link"
17429 if test x$gcc_no_link != xyes; then
17430 # Use -fno-exceptions to that the C driver can link these tests without
17431 # hitting undefined references to personality routines.
17432 CXXFLAGS="$CXXFLAGS -fno-exceptions"
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
17434 $as_echo_n "checking for sin in -lm... " >&6; }
17435 if ${ac_cv_lib_m_sin+:} false; then :
17436 $as_echo_n "(cached) " >&6
17437 else
17438 ac_check_lib_save_LIBS=$LIBS
17439 LIBS="-lm $LIBS"
17440 if test x$gcc_no_link = xyes; then
17441 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17444 /* end confdefs.h. */
17446 /* Override any GCC internal prototype to avoid an error.
17447 Use char because int might match the return type of a GCC
17448 builtin and then its argument prototype would still apply. */
17449 #ifdef __cplusplus
17450 extern "C"
17451 #endif
17452 char sin ();
17454 main ()
17456 return sin ();
17458 return 0;
17460 _ACEOF
17461 if ac_fn_cxx_try_link "$LINENO"; then :
17462 ac_cv_lib_m_sin=yes
17463 else
17464 ac_cv_lib_m_sin=no
17466 rm -f core conftest.err conftest.$ac_objext \
17467 conftest$ac_exeext conftest.$ac_ext
17468 LIBS=$ac_check_lib_save_LIBS
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
17471 $as_echo "$ac_cv_lib_m_sin" >&6; }
17472 if test "x$ac_cv_lib_m_sin" = xyes; then :
17473 LIBS="$LIBS -lm"
17474 else
17476 # Use the default compile-only tests in GCC_TRY_COMPILE_OR_LINK
17477 gcc_no_link=yes
17483 # Check for the existence of <math.h> functions used if C99 is enabled.
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <math.h> for C++98" >&5
17485 $as_echo_n "checking for ISO C99 support in <math.h> for C++98... " >&6; }
17486 if ${glibcxx_cv_c99_math_cxx98+:} false; then :
17487 $as_echo_n "(cached) " >&6
17488 else
17490 if test x$gcc_no_link = xyes; then
17491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492 /* end confdefs.h. */
17493 #include <math.h>
17494 volatile double d1, d2;
17495 volatile int i;
17497 main ()
17499 i = fpclassify(d1);
17500 i = isfinite(d1);
17501 i = isinf(d1);
17502 i = isnan(d1);
17503 i = isnormal(d1);
17504 i = signbit(d1);
17505 i = isgreater(d1, d2);
17506 i = isgreaterequal(d1, d2);
17507 i = isless(d1, d2);
17508 i = islessequal(d1, d2);
17509 i = islessgreater(d1, d2);
17510 i = islessgreater(d1, d2);
17511 i = isunordered(d1, d2);
17514 return 0;
17516 _ACEOF
17517 if ac_fn_cxx_try_compile "$LINENO"; then :
17518 glibcxx_cv_c99_math_cxx98=yes
17519 else
17520 glibcxx_cv_c99_math_cxx98=no
17522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523 else
17524 if test x$gcc_no_link = xyes; then
17525 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17528 /* end confdefs.h. */
17529 #include <math.h>
17530 volatile double d1, d2;
17531 volatile int i;
17533 main ()
17535 i = fpclassify(d1);
17536 i = isfinite(d1);
17537 i = isinf(d1);
17538 i = isnan(d1);
17539 i = isnormal(d1);
17540 i = signbit(d1);
17541 i = isgreater(d1, d2);
17542 i = isgreaterequal(d1, d2);
17543 i = isless(d1, d2);
17544 i = islessequal(d1, d2);
17545 i = islessgreater(d1, d2);
17546 i = islessgreater(d1, d2);
17547 i = isunordered(d1, d2);
17550 return 0;
17552 _ACEOF
17553 if ac_fn_cxx_try_link "$LINENO"; then :
17554 glibcxx_cv_c99_math_cxx98=yes
17555 else
17556 glibcxx_cv_c99_math_cxx98=no
17558 rm -f core conftest.err conftest.$ac_objext \
17559 conftest$ac_exeext conftest.$ac_ext
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_math_cxx98" >&5
17564 $as_echo "$glibcxx_cv_c99_math_cxx98" >&6; }
17565 if test x"$glibcxx_cv_c99_math_cxx98" = x"yes"; then
17567 $as_echo "#define _GLIBCXX98_USE_C99_MATH 1" >>confdefs.h
17571 # Check for the existence of <complex.h> complex math functions.
17572 # This is necessary even though libstdc++ uses the builtin versions
17573 # of these functions, because if the builtin cannot be used, a reference
17574 # to the library function is emitted.
17575 for ac_header in tgmath.h
17576 do :
17577 ac_fn_cxx_check_header_mongrel "$LINENO" "tgmath.h" "ac_cv_header_tgmath_h" "$ac_includes_default"
17578 if test "x$ac_cv_header_tgmath_h" = xyes; then :
17579 cat >>confdefs.h <<_ACEOF
17580 #define HAVE_TGMATH_H 1
17581 _ACEOF
17582 ac_has_tgmath_h=yes
17583 else
17584 ac_has_tgmath_h=no
17587 done
17589 for ac_header in complex.h
17590 do :
17591 ac_fn_cxx_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
17592 if test "x$ac_cv_header_complex_h" = xyes; then :
17593 cat >>confdefs.h <<_ACEOF
17594 #define HAVE_COMPLEX_H 1
17595 _ACEOF
17596 ac_has_complex_h=yes
17597 else
17598 ac_has_complex_h=no
17601 done
17603 if test x"$ac_has_complex_h" = x"yes"; then
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <complex.h> for C++98" >&5
17605 $as_echo_n "checking for ISO C99 support in <complex.h> for C++98... " >&6; }
17606 if ${glibcxx_cv_c99_complex_cxx98+:} false; then :
17607 $as_echo_n "(cached) " >&6
17608 else
17610 if test x$gcc_no_link = xyes; then
17611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17612 /* end confdefs.h. */
17613 #include <complex.h>
17614 typedef __complex__ float float_type;
17615 typedef __complex__ double double_type;
17616 typedef __complex__ long double ld_type;
17617 volatile float_type tmpf;
17618 volatile double_type tmpd;
17619 volatile ld_type tmpld;
17620 volatile float f;
17621 volatile double d;
17622 volatile long double ld;
17624 main ()
17626 f = cabsf(tmpf);
17627 f = cargf(tmpf);
17628 tmpf = ccosf(tmpf);
17629 tmpf = ccoshf(tmpf);
17630 tmpf = cexpf(tmpf);
17631 tmpf = clogf(tmpf);
17632 tmpf = csinf(tmpf);
17633 tmpf = csinhf(tmpf);
17634 tmpf = csqrtf(tmpf);
17635 tmpf = ctanf(tmpf);
17636 tmpf = ctanhf(tmpf);
17637 tmpf = cpowf(tmpf, tmpf);
17638 tmpf = cprojf(tmpf);
17639 d = cabs(tmpd);
17640 d = carg(tmpd);
17641 tmpd = ccos(tmpd);
17642 tmpd = ccosh(tmpd);
17643 tmpd = cexp(tmpd);
17644 tmpd = clog(tmpd);
17645 tmpd = csin(tmpd);
17646 tmpd = csinh(tmpd);
17647 tmpd = csqrt(tmpd);
17648 tmpd = ctan(tmpd);
17649 tmpd = ctanh(tmpd);
17650 tmpd = cpow(tmpd, tmpd);
17651 tmpd = cproj(tmpd);
17652 ld = cabsl(tmpld);
17653 ld = cargl(tmpld);
17654 tmpld = ccosl(tmpld);
17655 tmpld = ccoshl(tmpld);
17656 tmpld = cexpl(tmpld);
17657 tmpld = clogl(tmpld);
17658 tmpld = csinl(tmpld);
17659 tmpld = csinhl(tmpld);
17660 tmpld = csqrtl(tmpld);
17661 tmpld = ctanl(tmpld);
17662 tmpld = ctanhl(tmpld);
17663 tmpld = cpowl(tmpld, tmpld);
17664 tmpld = cprojl(tmpld);
17667 return 0;
17669 _ACEOF
17670 if ac_fn_cxx_try_compile "$LINENO"; then :
17671 glibcxx_cv_c99_complex_cxx98=yes
17672 else
17673 glibcxx_cv_c99_complex_cxx98=no
17675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17676 else
17677 if test x$gcc_no_link = xyes; then
17678 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17681 /* end confdefs.h. */
17682 #include <complex.h>
17683 typedef __complex__ float float_type;
17684 typedef __complex__ double double_type;
17685 typedef __complex__ long double ld_type;
17686 volatile float_type tmpf;
17687 volatile double_type tmpd;
17688 volatile ld_type tmpld;
17689 volatile float f;
17690 volatile double d;
17691 volatile long double ld;
17693 main ()
17695 f = cabsf(tmpf);
17696 f = cargf(tmpf);
17697 tmpf = ccosf(tmpf);
17698 tmpf = ccoshf(tmpf);
17699 tmpf = cexpf(tmpf);
17700 tmpf = clogf(tmpf);
17701 tmpf = csinf(tmpf);
17702 tmpf = csinhf(tmpf);
17703 tmpf = csqrtf(tmpf);
17704 tmpf = ctanf(tmpf);
17705 tmpf = ctanhf(tmpf);
17706 tmpf = cpowf(tmpf, tmpf);
17707 tmpf = cprojf(tmpf);
17708 d = cabs(tmpd);
17709 d = carg(tmpd);
17710 tmpd = ccos(tmpd);
17711 tmpd = ccosh(tmpd);
17712 tmpd = cexp(tmpd);
17713 tmpd = clog(tmpd);
17714 tmpd = csin(tmpd);
17715 tmpd = csinh(tmpd);
17716 tmpd = csqrt(tmpd);
17717 tmpd = ctan(tmpd);
17718 tmpd = ctanh(tmpd);
17719 tmpd = cpow(tmpd, tmpd);
17720 tmpd = cproj(tmpd);
17721 ld = cabsl(tmpld);
17722 ld = cargl(tmpld);
17723 tmpld = ccosl(tmpld);
17724 tmpld = ccoshl(tmpld);
17725 tmpld = cexpl(tmpld);
17726 tmpld = clogl(tmpld);
17727 tmpld = csinl(tmpld);
17728 tmpld = csinhl(tmpld);
17729 tmpld = csqrtl(tmpld);
17730 tmpld = ctanl(tmpld);
17731 tmpld = ctanhl(tmpld);
17732 tmpld = cpowl(tmpld, tmpld);
17733 tmpld = cprojl(tmpld);
17736 return 0;
17738 _ACEOF
17739 if ac_fn_cxx_try_link "$LINENO"; then :
17740 glibcxx_cv_c99_complex_cxx98=yes
17741 else
17742 glibcxx_cv_c99_complex_cxx98=no
17744 rm -f core conftest.err conftest.$ac_objext \
17745 conftest$ac_exeext conftest.$ac_ext
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_complex_cxx98" >&5
17750 $as_echo "$glibcxx_cv_c99_complex_cxx98" >&6; }
17752 if test x"$glibcxx_cv_c99_complex_cxx98" = x"yes"; then
17754 $as_echo "#define _GLIBCXX98_USE_C99_COMPLEX 1" >>confdefs.h
17758 # Check for the existence in <stdio.h> of vscanf, et. al.
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <stdio.h> for C++98" >&5
17760 $as_echo_n "checking for ISO C99 support in <stdio.h> for C++98... " >&6; }
17761 if ${glibcxx_cv_c99_stdio_cxx98+:} false; then :
17762 $as_echo_n "(cached) " >&6
17763 else
17765 if test x$gcc_no_link = xyes; then
17766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17767 /* end confdefs.h. */
17768 #include <stdio.h>
17769 #include <stdarg.h>
17770 void foo(char* fmt, ...)
17772 va_list args; va_start(args, fmt);
17773 vfscanf(stderr, "%i", args);
17774 vscanf("%i", args);
17775 vsnprintf(fmt, 0, "%i", args);
17776 vsscanf(fmt, "%i", args);
17777 snprintf(fmt, 0, "%i", 1);
17780 main ()
17784 return 0;
17786 _ACEOF
17787 if ac_fn_cxx_try_compile "$LINENO"; then :
17788 glibcxx_cv_c99_stdio_cxx98=yes
17789 else
17790 glibcxx_cv_c99_stdio_cxx98=no
17792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793 else
17794 if test x$gcc_no_link = xyes; then
17795 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17798 /* end confdefs.h. */
17799 #include <stdio.h>
17800 #include <stdarg.h>
17801 void foo(char* fmt, ...)
17803 va_list args; va_start(args, fmt);
17804 vfscanf(stderr, "%i", args);
17805 vscanf("%i", args);
17806 vsnprintf(fmt, 0, "%i", args);
17807 vsscanf(fmt, "%i", args);
17808 snprintf(fmt, 0, "%i", 1);
17811 main ()
17815 return 0;
17817 _ACEOF
17818 if ac_fn_cxx_try_link "$LINENO"; then :
17819 glibcxx_cv_c99_stdio_cxx98=yes
17820 else
17821 glibcxx_cv_c99_stdio_cxx98=no
17823 rm -f core conftest.err conftest.$ac_objext \
17824 conftest$ac_exeext conftest.$ac_ext
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdio_cxx98" >&5
17829 $as_echo "$glibcxx_cv_c99_stdio_cxx98" >&6; }
17830 if test x"$glibcxx_cv_c99_stdio_cxx98" = x"yes"; then
17832 $as_echo "#define _GLIBCXX98_USE_C99_STDIO 1" >>confdefs.h
17836 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <stdlib.h> for C++98" >&5
17838 $as_echo_n "checking for ISO C99 support in <stdlib.h> for C++98... " >&6; }
17839 if ${glibcxx_cv_c99_stdlib_cxx98+:} false; then :
17840 $as_echo_n "(cached) " >&6
17841 else
17843 if test x$gcc_no_link = xyes; then
17844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17845 /* end confdefs.h. */
17846 #include <stdlib.h>
17847 volatile float f;
17848 volatile long double ld;
17849 volatile unsigned long long ll;
17850 lldiv_t mydivt;
17852 main ()
17854 char* tmp;
17855 f = strtof("gnu", &tmp);
17856 ld = strtold("gnu", &tmp);
17857 ll = strtoll("gnu", &tmp, 10);
17858 ll = strtoull("gnu", &tmp, 10);
17859 ll = llabs(10);
17860 mydivt = lldiv(10,1);
17861 ll = mydivt.quot;
17862 ll = mydivt.rem;
17863 ll = atoll("10");
17864 _Exit(0);
17867 return 0;
17869 _ACEOF
17870 if ac_fn_cxx_try_compile "$LINENO"; then :
17871 glibcxx_cv_c99_stdlib_cxx98=yes
17872 else
17873 glibcxx_cv_c99_stdlib_cxx98=no
17875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17876 else
17877 if test x$gcc_no_link = xyes; then
17878 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17881 /* end confdefs.h. */
17882 #include <stdlib.h>
17883 volatile float f;
17884 volatile long double ld;
17885 volatile unsigned long long ll;
17886 lldiv_t mydivt;
17888 main ()
17890 char* tmp;
17891 f = strtof("gnu", &tmp);
17892 ld = strtold("gnu", &tmp);
17893 ll = strtoll("gnu", &tmp, 10);
17894 ll = strtoull("gnu", &tmp, 10);
17895 ll = llabs(10);
17896 mydivt = lldiv(10,1);
17897 ll = mydivt.quot;
17898 ll = mydivt.rem;
17899 ll = atoll("10");
17900 _Exit(0);
17903 return 0;
17905 _ACEOF
17906 if ac_fn_cxx_try_link "$LINENO"; then :
17907 glibcxx_cv_c99_stdlib_cxx98=yes
17908 else
17909 glibcxx_cv_c99_stdlib_cxx98=no
17911 rm -f core conftest.err conftest.$ac_objext \
17912 conftest$ac_exeext conftest.$ac_ext
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdlib_cxx98" >&5
17917 $as_echo "$glibcxx_cv_c99_stdlib_cxx98" >&6; }
17918 if test x"$glibcxx_cv_c99_stdlib_cxx98" = x"yes"; then
17920 $as_echo "#define _GLIBCXX98_USE_C99_STDLIB 1" >>confdefs.h
17924 # Check for the existence in <wchar.h> of wcstold, etc.
17925 if test x"$ac_has_wchar_h" = xyes &&
17926 test x"$ac_has_wctype_h" = xyes; then
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <wchar.h> for C++98" >&5
17928 $as_echo_n "checking for ISO C99 support in <wchar.h> for C++98... " >&6; }
17929 if ${glibcxx_cv_c99_wchar_cxx98+:} false; then :
17930 $as_echo_n "(cached) " >&6
17931 else
17933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17934 /* end confdefs.h. */
17935 #include <wchar.h>
17936 namespace test
17938 using ::wcstold;
17939 using ::wcstoll;
17940 using ::wcstoull;
17944 main ()
17948 return 0;
17950 _ACEOF
17951 if ac_fn_cxx_try_compile "$LINENO"; then :
17952 glibcxx_cv_c99_wchar_cxx98=yes
17953 else
17954 glibcxx_cv_c99_wchar_cxx98=no
17956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_wchar_cxx98" >&5
17960 $as_echo "$glibcxx_cv_c99_wchar_cxx98" >&6; }
17962 # Checks for wide character functions that may not be present.
17963 # Injection of these is wrapped with guard macros.
17964 # NB: only put functions here, instead of immediately above, if
17965 # absolutely necessary.
17966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17967 /* end confdefs.h. */
17968 #include <wchar.h>
17969 namespace test { using ::vfwscanf; }
17971 main ()
17975 return 0;
17977 _ACEOF
17978 if ac_fn_cxx_try_compile "$LINENO"; then :
17980 $as_echo "#define HAVE_VFWSCANF 1" >>confdefs.h
17983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17986 /* end confdefs.h. */
17987 #include <wchar.h>
17988 namespace test { using ::vswscanf; }
17990 main ()
17994 return 0;
17996 _ACEOF
17997 if ac_fn_cxx_try_compile "$LINENO"; then :
17999 $as_echo "#define HAVE_VSWSCANF 1" >>confdefs.h
18002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005 /* end confdefs.h. */
18006 #include <wchar.h>
18007 namespace test { using ::vwscanf; }
18009 main ()
18013 return 0;
18015 _ACEOF
18016 if ac_fn_cxx_try_compile "$LINENO"; then :
18018 $as_echo "#define HAVE_VWSCANF 1" >>confdefs.h
18021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18024 /* end confdefs.h. */
18025 #include <wchar.h>
18026 namespace test { using ::wcstof; }
18028 main ()
18032 return 0;
18034 _ACEOF
18035 if ac_fn_cxx_try_compile "$LINENO"; then :
18037 $as_echo "#define HAVE_WCSTOF 1" >>confdefs.h
18040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18043 /* end confdefs.h. */
18044 #include <wctype.h>
18046 main ()
18048 wint_t t; int i = iswblank(t);
18050 return 0;
18052 _ACEOF
18053 if ac_fn_cxx_try_compile "$LINENO"; then :
18055 $as_echo "#define HAVE_ISWBLANK 1" >>confdefs.h
18058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18060 if test x"$glibcxx_cv_c99_wchar_cxx98" = x"yes"; then
18062 $as_echo "#define _GLIBCXX98_USE_C99_WCHAR 1" >>confdefs.h
18067 # Option parsed, now set things appropriately.
18068 if test x"$glibcxx_cv_c99_math_cxx98" = x"no" ||
18069 test x"$glibcxx_cv_c99_complex_cxx98" = x"no" ||
18070 test x"$glibcxx_cv_c99_stdio_cxx98" = x"no" ||
18071 test x"$glibcxx_cv_c99_stdlib_cxx98" = x"no" ||
18072 test x"$glibcxx_cv_c99_wchar_cxx98" = x"no"; then
18073 enable_c99=no;
18074 else
18076 $as_echo "#define _GLIBCXX_USE_C99 1" >>confdefs.h
18080 gcc_no_link="$ac_save_gcc_no_link"
18081 LIBS="$ac_save_LIBS"
18082 CXXFLAGS="$ac_save_CXXFLAGS"
18083 ac_ext=c
18084 ac_cpp='$CPP $CPPFLAGS'
18085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18091 ac_ext=cpp
18092 ac_cpp='$CXXCPP $CPPFLAGS'
18093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18098 # Use -std=c++11 and test again for C99 library feature in C++11 mode.
18099 # For the reasons given above we use -std=c++11 not -std=gnu++11.
18100 ac_save_CXXFLAGS="$CXXFLAGS"
18101 CXXFLAGS="$CXXFLAGS -std=c++11"
18102 ac_save_LIBS="$LIBS"
18103 ac_save_gcc_no_link="$gcc_no_link"
18105 if test x$gcc_no_link != xyes; then
18106 # Use -fno-exceptions to that the C driver can link these tests without
18107 # hitting undefined references to personality routines.
18108 CXXFLAGS="$CXXFLAGS -fno-exceptions"
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
18110 $as_echo_n "checking for sin in -lm... " >&6; }
18111 if ${ac_cv_lib_m_sin+:} false; then :
18112 $as_echo_n "(cached) " >&6
18113 else
18114 ac_check_lib_save_LIBS=$LIBS
18115 LIBS="-lm $LIBS"
18116 if test x$gcc_no_link = xyes; then
18117 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18120 /* end confdefs.h. */
18122 /* Override any GCC internal prototype to avoid an error.
18123 Use char because int might match the return type of a GCC
18124 builtin and then its argument prototype would still apply. */
18125 #ifdef __cplusplus
18126 extern "C"
18127 #endif
18128 char sin ();
18130 main ()
18132 return sin ();
18134 return 0;
18136 _ACEOF
18137 if ac_fn_cxx_try_link "$LINENO"; then :
18138 ac_cv_lib_m_sin=yes
18139 else
18140 ac_cv_lib_m_sin=no
18142 rm -f core conftest.err conftest.$ac_objext \
18143 conftest$ac_exeext conftest.$ac_ext
18144 LIBS=$ac_check_lib_save_LIBS
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
18147 $as_echo "$ac_cv_lib_m_sin" >&6; }
18148 if test "x$ac_cv_lib_m_sin" = xyes; then :
18149 LIBS="$LIBS -lm"
18150 else
18152 # Use the default compile-only tests in GCC_TRY_COMPILE_OR_LINK
18153 gcc_no_link=yes
18159 # Check for the existence of <stdint.h> types.
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <stdint.h> for C++11" >&5
18161 $as_echo_n "checking for ISO C99 support in <stdint.h> for C++11... " >&6; }
18162 if ${glibcxx_cv_c99_stdint+:} false; then :
18163 $as_echo_n "(cached) " >&6
18164 else
18166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18167 /* end confdefs.h. */
18168 #define __STDC_LIMIT_MACROS
18169 #define __STDC_CONSTANT_MACROS
18170 #include <stdint.h>
18172 main ()
18174 typedef int8_t my_int8_t;
18175 my_int8_t i8 = INT8_MIN;
18176 i8 = INT8_MAX;
18177 typedef int16_t my_int16_t;
18178 my_int16_t i16 = INT16_MIN;
18179 i16 = INT16_MAX;
18180 typedef int32_t my_int32_t;
18181 my_int32_t i32 = INT32_MIN;
18182 i32 = INT32_MAX;
18183 typedef int64_t my_int64_t;
18184 my_int64_t i64 = INT64_MIN;
18185 i64 = INT64_MAX;
18186 typedef int_fast8_t my_int_fast8_t;
18187 my_int_fast8_t if8 = INT_FAST8_MIN;
18188 if8 = INT_FAST8_MAX;
18189 typedef int_fast16_t my_int_fast16_t;
18190 my_int_fast16_t if16 = INT_FAST16_MIN;
18191 if16 = INT_FAST16_MAX;
18192 typedef int_fast32_t my_int_fast32_t;
18193 my_int_fast32_t if32 = INT_FAST32_MIN;
18194 if32 = INT_FAST32_MAX;
18195 typedef int_fast64_t my_int_fast64_t;
18196 my_int_fast64_t if64 = INT_FAST64_MIN;
18197 if64 = INT_FAST64_MAX;
18198 typedef int_least8_t my_int_least8_t;
18199 my_int_least8_t il8 = INT_LEAST8_MIN;
18200 il8 = INT_LEAST8_MAX;
18201 typedef int_least16_t my_int_least16_t;
18202 my_int_least16_t il16 = INT_LEAST16_MIN;
18203 il16 = INT_LEAST16_MAX;
18204 typedef int_least32_t my_int_least32_t;
18205 my_int_least32_t il32 = INT_LEAST32_MIN;
18206 il32 = INT_LEAST32_MAX;
18207 typedef int_least64_t my_int_least64_t;
18208 my_int_least64_t il64 = INT_LEAST64_MIN;
18209 il64 = INT_LEAST64_MAX;
18210 typedef intmax_t my_intmax_t;
18211 my_intmax_t im = INTMAX_MAX;
18212 im = INTMAX_MIN;
18213 typedef intptr_t my_intptr_t;
18214 my_intptr_t ip = INTPTR_MAX;
18215 ip = INTPTR_MIN;
18216 typedef uint8_t my_uint8_t;
18217 my_uint8_t ui8 = UINT8_MAX;
18218 ui8 = UINT8_MAX;
18219 typedef uint16_t my_uint16_t;
18220 my_uint16_t ui16 = UINT16_MAX;
18221 ui16 = UINT16_MAX;
18222 typedef uint32_t my_uint32_t;
18223 my_uint32_t ui32 = UINT32_MAX;
18224 ui32 = UINT32_MAX;
18225 typedef uint64_t my_uint64_t;
18226 my_uint64_t ui64 = UINT64_MAX;
18227 ui64 = UINT64_MAX;
18228 typedef uint_fast8_t my_uint_fast8_t;
18229 my_uint_fast8_t uif8 = UINT_FAST8_MAX;
18230 uif8 = UINT_FAST8_MAX;
18231 typedef uint_fast16_t my_uint_fast16_t;
18232 my_uint_fast16_t uif16 = UINT_FAST16_MAX;
18233 uif16 = UINT_FAST16_MAX;
18234 typedef uint_fast32_t my_uint_fast32_t;
18235 my_uint_fast32_t uif32 = UINT_FAST32_MAX;
18236 uif32 = UINT_FAST32_MAX;
18237 typedef uint_fast64_t my_uint_fast64_t;
18238 my_uint_fast64_t uif64 = UINT_FAST64_MAX;
18239 uif64 = UINT_FAST64_MAX;
18240 typedef uint_least8_t my_uint_least8_t;
18241 my_uint_least8_t uil8 = UINT_LEAST8_MAX;
18242 uil8 = UINT_LEAST8_MAX;
18243 typedef uint_least16_t my_uint_least16_t;
18244 my_uint_least16_t uil16 = UINT_LEAST16_MAX;
18245 uil16 = UINT_LEAST16_MAX;
18246 typedef uint_least32_t my_uint_least32_t;
18247 my_uint_least32_t uil32 = UINT_LEAST32_MAX;
18248 uil32 = UINT_LEAST32_MAX;
18249 typedef uint_least64_t my_uint_least64_t;
18250 my_uint_least64_t uil64 = UINT_LEAST64_MAX;
18251 uil64 = UINT_LEAST64_MAX;
18252 typedef uintmax_t my_uintmax_t;
18253 my_uintmax_t uim = UINTMAX_MAX;
18254 uim = UINTMAX_MAX;
18255 typedef uintptr_t my_uintptr_t;
18256 my_uintptr_t uip = UINTPTR_MAX;
18257 uip = UINTPTR_MAX;
18260 return 0;
18262 _ACEOF
18263 if ac_fn_cxx_try_compile "$LINENO"; then :
18264 glibcxx_cv_c99_stdint=yes
18265 else
18266 glibcxx_cv_c99_stdint=no
18268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdint" >&5
18272 $as_echo "$glibcxx_cv_c99_stdint" >&6; }
18273 if test x"$glibcxx_cv_c99_stdint" = x"yes"; then
18275 $as_echo "#define _GLIBCXX_USE_C99_STDINT 1" >>confdefs.h
18279 # Check for the existence of <inttypes.h> functions (NB: doesn't make
18280 # sense if the glibcxx_cv_c99_stdint check fails, per C99, 7.8/1).
18281 ac_c99_inttypes=no;
18282 if test x"$glibcxx_cv_c99_stdint" = x"yes"; then
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support for C++11 in <inttypes.h>" >&5
18284 $as_echo_n "checking for ISO C99 support for C++11 in <inttypes.h>... " >&6; }
18285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18286 /* end confdefs.h. */
18287 #include <inttypes.h>
18289 main ()
18291 intmax_t i, numer, denom, base;
18292 const char* s;
18293 char** endptr;
18294 intmax_t ret = imaxabs(i);
18295 imaxdiv_t dret = imaxdiv(numer, denom);
18296 ret = strtoimax(s, endptr, base);
18297 uintmax_t uret = strtoumax(s, endptr, base);
18300 return 0;
18302 _ACEOF
18303 if ac_fn_cxx_try_compile "$LINENO"; then :
18304 ac_c99_inttypes=yes
18305 else
18306 ac_c99_inttypes=no
18308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_inttypes" >&5
18310 $as_echo "$ac_c99_inttypes" >&6; }
18312 if test x"$ac_c99_inttypes" = x"yes"; then
18314 $as_echo "#define _GLIBCXX_USE_C99_INTTYPES 1" >>confdefs.h
18318 # Check for the existence of wchar_t <inttypes.h> functions (NB: doesn't
18319 # make sense if the glibcxx_cv_c99_stdint check fails, per C99, 7.8/1).
18320 ac_c99_inttypes_wchar_t=no;
18321 if test x"$glibcxx_cv_c99_stdint" = x"yes"; then
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t ISO C99 support for C++11 in <inttypes.h>" >&5
18323 $as_echo_n "checking for wchar_t ISO C99 support for C++11 in <inttypes.h>... " >&6; }
18324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18325 /* end confdefs.h. */
18326 #include <inttypes.h>
18328 main ()
18330 intmax_t base;
18331 const wchar_t* s;
18332 wchar_t** endptr;
18333 intmax_t ret = wcstoimax(s, endptr, base);
18334 uintmax_t uret = wcstoumax(s, endptr, base);
18337 return 0;
18339 _ACEOF
18340 if ac_fn_cxx_try_compile "$LINENO"; then :
18341 ac_c99_inttypes_wchar_t=yes
18342 else
18343 ac_c99_inttypes_wchar_t=no
18345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_inttypes_wchar_t" >&5
18347 $as_echo "$ac_c99_inttypes_wchar_t" >&6; }
18349 if test x"$ac_c99_inttypes_wchar_t" = x"yes"; then
18351 $as_echo "#define _GLIBCXX_USE_C99_INTTYPES_WCHAR_T 1" >>confdefs.h
18355 # Check for the existence of <math.h> generic macros used if C99 is enabled.
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 generic macro support in <math.h> for C++11" >&5
18357 $as_echo_n "checking for ISO C99 generic macro support in <math.h> for C++11... " >&6; }
18358 if ${glibcxx_cv_c99_math_cxx11+:} false; then :
18359 $as_echo_n "(cached) " >&6
18360 else
18362 if test x$gcc_no_link = xyes; then
18363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18364 /* end confdefs.h. */
18365 #include <math.h>
18366 volatile double d1, d2;
18367 volatile int i;
18369 main ()
18371 i = fpclassify(d1);
18372 i = isfinite(d1);
18373 i = isinf(d1);
18374 i = isnan(d1);
18375 i = isnormal(d1);
18376 i = signbit(d1);
18377 i = isgreater(d1, d2);
18378 i = isgreaterequal(d1, d2);
18379 i = isless(d1, d2);
18380 i = islessequal(d1, d2);
18381 i = islessgreater(d1, d2);
18382 i = islessgreater(d1, d2);
18383 i = isunordered(d1, d2);
18386 return 0;
18388 _ACEOF
18389 if ac_fn_cxx_try_compile "$LINENO"; then :
18390 glibcxx_cv_c99_math_cxx11=yes
18391 else
18392 glibcxx_cv_c99_math_cxx11=no
18394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18395 else
18396 if test x$gcc_no_link = xyes; then
18397 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18400 /* end confdefs.h. */
18401 #include <math.h>
18402 volatile double d1, d2;
18403 volatile int i;
18405 main ()
18407 i = fpclassify(d1);
18408 i = isfinite(d1);
18409 i = isinf(d1);
18410 i = isnan(d1);
18411 i = isnormal(d1);
18412 i = signbit(d1);
18413 i = isgreater(d1, d2);
18414 i = isgreaterequal(d1, d2);
18415 i = isless(d1, d2);
18416 i = islessequal(d1, d2);
18417 i = islessgreater(d1, d2);
18418 i = islessgreater(d1, d2);
18419 i = isunordered(d1, d2);
18422 return 0;
18424 _ACEOF
18425 if ac_fn_cxx_try_link "$LINENO"; then :
18426 glibcxx_cv_c99_math_cxx11=yes
18427 else
18428 glibcxx_cv_c99_math_cxx11=no
18430 rm -f core conftest.err conftest.$ac_objext \
18431 conftest$ac_exeext conftest.$ac_ext
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_math_cxx11" >&5
18436 $as_echo "$glibcxx_cv_c99_math_cxx11" >&6; }
18437 if test x"$glibcxx_cv_c99_math_cxx11" = x"yes"; then
18439 $as_echo "#define _GLIBCXX11_USE_C99_MATH 1" >>confdefs.h
18443 # Check for the existence of <math.h> typedefs.
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 float types for C++11 in <math.h>" >&5
18445 $as_echo_n "checking for ISO C99 float types for C++11 in <math.h>... " >&6; }
18446 if ${glibcxx_cv_c99_flt_eval_types+:} false; then :
18447 $as_echo_n "(cached) " >&6
18448 else
18450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18451 /* end confdefs.h. */
18452 #include <math.h>
18454 main ()
18456 // Types
18457 typedef double_t my_double_t;
18458 typedef float_t my_float_t;
18461 return 0;
18463 _ACEOF
18464 if ac_fn_cxx_try_compile "$LINENO"; then :
18465 glibcxx_cv_c99_flt_eval_types=yes
18466 else
18467 glibcxx_cv_c99_flt_eval_types=no
18469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_flt_eval_types" >&5
18473 $as_echo "$glibcxx_cv_c99_flt_eval_types" >&6; }
18474 if test x"$glibcxx_cv_c99_flt_eval_types" = x"yes"; then
18476 $as_echo "#define HAVE_C99_FLT_EVAL_TYPES 1" >>confdefs.h
18480 # Check for the existence of <math.h> functions.
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 function support for C++11 in <math.h>" >&5
18482 $as_echo_n "checking for ISO C99 function support for C++11 in <math.h>... " >&6; }
18483 if ${glibcxx_cv_c99_math_funcs+:} false; then :
18484 $as_echo_n "(cached) " >&6
18485 else
18487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18488 /* end confdefs.h. */
18489 #include <math.h>
18491 main ()
18494 // Hyperbolic
18495 acosh(0.0);
18496 acoshf(0.0f);
18497 acoshl(0.0l);
18498 asinh(0.0);
18499 asinhf(0.0f);
18500 asinhl(0.0l);
18501 atanh(0.0);
18502 atanhf(0.0f);
18503 atanhl(0.0l);
18504 // Exponential and logarithmic
18505 exp2(0.0);
18506 exp2f(0.0f);
18507 exp2l(0.0l);
18508 expm1(0.0);
18509 expm1f(0.0f);
18510 expm1l(0.0l);
18511 ilogb(0.0);
18512 ilogbf(0.0f);
18513 ilogbl(0.0l);
18514 log1p(0.0);
18515 log1pf(0.0f);
18516 log1pl(0.0l);
18517 log2(0.0);
18518 log2f(0.0f);
18519 log2l(0.0l);
18520 logb(0.0);
18521 logbf(0.0f);
18522 logbl(0.0l);
18523 scalbln(0.0, 0l);
18524 scalblnf(0.0f, 0l);
18525 scalblnl(0.0l, 0l);
18526 scalbn(0.0, 0);
18527 scalbnf(0.0f, 0);
18528 scalbnl(0.0l, 0);
18529 // Power and absolute-value
18530 cbrt(0.0);
18531 cbrtf(0.0f);
18532 cbrtl(0.0l);
18533 hypot(0.0, 0.0);
18534 hypotf(0.0f, 0.0f);
18535 hypotl(0.0l, 0.0l);
18536 // Error and gamma
18537 erf(0.0);
18538 erff(0.0f);
18539 erfl(0.0l);
18540 erfc(0.0);
18541 erfcf(0.0f);
18542 erfcl(0.0l);
18543 lgamma(0.0);
18544 lgammaf(0.0f);
18545 lgammal(0.0l);
18546 tgamma(0.0);
18547 tgammaf(0.0f);
18548 tgammal(0.0l);
18549 // Nearest integer
18550 nearbyint(0.0);
18551 nearbyintf(0.0f);
18552 nearbyintl(0.0l);
18553 rint(0.0);
18554 rintf(0.0f);
18555 rintl(0.0l);
18556 round(0.0);
18557 roundf(0.0f);
18558 roundl(0.0l);
18559 lrint(0.0);
18560 lrintf(0.0f);
18561 lrintl(0.0l);
18562 lround(0.0);
18563 lroundf(0.0f);
18564 lroundl(0.0l);
18565 #ifndef __APPLE__ /* see below */
18566 llrint(0.0);
18567 llrintf(0.0f);
18568 llrintl(0.0l);
18569 llround(0.0);
18570 llroundf(0.0f);
18571 llroundl(0.0l);
18572 #endif
18573 trunc(0.0);
18574 truncf(0.0f);
18575 truncl(0.0l);
18576 // Remainder
18577 remainder(0.0, 0.0);
18578 remainderf(0.0f, 0.0f);
18579 remainderl(0.0l, 0.0l);
18580 remquo(0.0, 0.0, 0);
18581 remquof(0.0f, 0.0f, 0);
18582 remquol(0.0l, 0.0l, 0);
18583 // Manipulation
18584 copysign(0.0, 0.0);
18585 copysignf(0.0f, 0.0f);
18586 copysignl(0.0l, 0.0l);
18587 nan("");
18588 nanf("");
18589 nanl("");
18590 nextafter(0.0, 0.0);
18591 nextafterf(0.0f, 0.0f);
18592 nextafterl(0.0l, 0.0l);
18593 nexttoward(0.0, 0.0);
18594 nexttowardf(0.0f, 0.0f);
18595 nexttowardl(0.0l, 0.0l);
18596 // Max, min, positive difference
18597 fdim(0.0, 0.0);
18598 fdimf(0.0f, 0.0f);
18599 fdiml(0.0l, 0.0l);
18600 fmax(0.0, 0.0);
18601 fmaxf(0.0f, 0.0f);
18602 fmaxl(0.0l, 0.0l);
18603 fmin(0.0, 0.0);
18604 fminf(0.0f, 0.0f);
18605 fminl(0.0l, 0.0l);
18606 // FP Multiply-add
18607 fma(0.0, 0.0, 0.0);
18608 fmaf(0.0f, 0.0f, 0.0f);
18609 fmal(0.0l, 0.0l, 0.0l);
18612 return 0;
18614 _ACEOF
18615 if ac_fn_cxx_try_compile "$LINENO"; then :
18616 glibcxx_cv_c99_math_funcs=yes
18617 else
18618 glibcxx_cv_c99_math_funcs=no
18620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_math_funcs" >&5
18624 $as_echo "$glibcxx_cv_c99_math_funcs" >&6; }
18625 if test x"$glibcxx_cv_c99_math_funcs" = x"yes"; then
18627 $as_echo "#define _GLIBCXX_USE_C99_MATH_FUNCS 1" >>confdefs.h
18630 case "${target_os}" in
18631 darwin*)
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 rounding functions in <math.h>" >&5
18633 $as_echo_n "checking for ISO C99 rounding functions in <math.h>... " >&6; }
18634 if ${glibcxx_cv_c99_math_llround+:} false; then :
18635 $as_echo_n "(cached) " >&6
18636 else
18638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18639 /* end confdefs.h. */
18640 #include <math.h>
18642 main ()
18644 llrint(0.0);
18645 llrintf(0.0f);
18646 llrintl(0.0l);
18647 llround(0.0);
18648 llroundf(0.0f);
18649 llroundl(0.0l);
18652 return 0;
18654 _ACEOF
18655 if ac_fn_cxx_try_compile "$LINENO"; then :
18656 glibcxx_cv_c99_math_llround=yes
18657 else
18658 glibcxx_cv_c99_math_llround=no
18660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_math_llround" >&5
18664 $as_echo "$glibcxx_cv_c99_math_llround" >&6; }
18666 esac
18667 if test x"$glibcxx_cv_c99_math_llround" = x"no"; then
18669 $as_echo "#define _GLIBCXX_NO_C99_ROUNDING_FUNCS 1" >>confdefs.h
18674 # Check for the existence of <complex.h> complex math functions.
18675 # This is necessary even though libstdc++ uses the builtin versions
18676 # of these functions, because if the builtin cannot be used, a reference
18677 # to the library function is emitted.
18678 for ac_header in tgmath.h
18679 do :
18680 ac_fn_cxx_check_header_mongrel "$LINENO" "tgmath.h" "ac_cv_header_tgmath_h" "$ac_includes_default"
18681 if test "x$ac_cv_header_tgmath_h" = xyes; then :
18682 cat >>confdefs.h <<_ACEOF
18683 #define HAVE_TGMATH_H 1
18684 _ACEOF
18685 ac_has_tgmath_h=yes
18686 else
18687 ac_has_tgmath_h=no
18690 done
18692 for ac_header in complex.h
18693 do :
18694 ac_fn_cxx_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
18695 if test "x$ac_cv_header_complex_h" = xyes; then :
18696 cat >>confdefs.h <<_ACEOF
18697 #define HAVE_COMPLEX_H 1
18698 _ACEOF
18699 ac_has_complex_h=yes
18700 else
18701 ac_has_complex_h=no
18704 done
18706 if test x"$ac_has_complex_h" = x"yes"; then
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <complex.h> for C++11" >&5
18708 $as_echo_n "checking for ISO C99 support in <complex.h> for C++11... " >&6; }
18709 if ${glibcxx_cv_c99_complex_cxx11+:} false; then :
18710 $as_echo_n "(cached) " >&6
18711 else
18713 if test x$gcc_no_link = xyes; then
18714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18715 /* end confdefs.h. */
18716 #include <complex.h>
18717 typedef __complex__ float float_type;
18718 typedef __complex__ double double_type;
18719 typedef __complex__ long double ld_type;
18720 volatile float_type tmpf;
18721 volatile double_type tmpd;
18722 volatile ld_type tmpld;
18723 volatile float f;
18724 volatile double d;
18725 volatile long double ld;
18727 main ()
18729 f = cabsf(tmpf);
18730 f = cargf(tmpf);
18731 tmpf = ccosf(tmpf);
18732 tmpf = ccoshf(tmpf);
18733 tmpf = cexpf(tmpf);
18734 tmpf = clogf(tmpf);
18735 tmpf = csinf(tmpf);
18736 tmpf = csinhf(tmpf);
18737 tmpf = csqrtf(tmpf);
18738 tmpf = ctanf(tmpf);
18739 tmpf = ctanhf(tmpf);
18740 tmpf = cpowf(tmpf, tmpf);
18741 tmpf = cprojf(tmpf);
18742 d = cabs(tmpd);
18743 d = carg(tmpd);
18744 tmpd = ccos(tmpd);
18745 tmpd = ccosh(tmpd);
18746 tmpd = cexp(tmpd);
18747 tmpd = clog(tmpd);
18748 tmpd = csin(tmpd);
18749 tmpd = csinh(tmpd);
18750 tmpd = csqrt(tmpd);
18751 tmpd = ctan(tmpd);
18752 tmpd = ctanh(tmpd);
18753 tmpd = cpow(tmpd, tmpd);
18754 tmpd = cproj(tmpd);
18755 ld = cabsl(tmpld);
18756 ld = cargl(tmpld);
18757 tmpld = ccosl(tmpld);
18758 tmpld = ccoshl(tmpld);
18759 tmpld = cexpl(tmpld);
18760 tmpld = clogl(tmpld);
18761 tmpld = csinl(tmpld);
18762 tmpld = csinhl(tmpld);
18763 tmpld = csqrtl(tmpld);
18764 tmpld = ctanl(tmpld);
18765 tmpld = ctanhl(tmpld);
18766 tmpld = cpowl(tmpld, tmpld);
18767 tmpld = cprojl(tmpld);
18770 return 0;
18772 _ACEOF
18773 if ac_fn_cxx_try_compile "$LINENO"; then :
18774 glibcxx_cv_c99_complex_cxx11=yes
18775 else
18776 glibcxx_cv_c99_complex_cxx11=no
18778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18779 else
18780 if test x$gcc_no_link = xyes; then
18781 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h. */
18785 #include <complex.h>
18786 typedef __complex__ float float_type;
18787 typedef __complex__ double double_type;
18788 typedef __complex__ long double ld_type;
18789 volatile float_type tmpf;
18790 volatile double_type tmpd;
18791 volatile ld_type tmpld;
18792 volatile float f;
18793 volatile double d;
18794 volatile long double ld;
18796 main ()
18798 f = cabsf(tmpf);
18799 f = cargf(tmpf);
18800 tmpf = ccosf(tmpf);
18801 tmpf = ccoshf(tmpf);
18802 tmpf = cexpf(tmpf);
18803 tmpf = clogf(tmpf);
18804 tmpf = csinf(tmpf);
18805 tmpf = csinhf(tmpf);
18806 tmpf = csqrtf(tmpf);
18807 tmpf = ctanf(tmpf);
18808 tmpf = ctanhf(tmpf);
18809 tmpf = cpowf(tmpf, tmpf);
18810 tmpf = cprojf(tmpf);
18811 d = cabs(tmpd);
18812 d = carg(tmpd);
18813 tmpd = ccos(tmpd);
18814 tmpd = ccosh(tmpd);
18815 tmpd = cexp(tmpd);
18816 tmpd = clog(tmpd);
18817 tmpd = csin(tmpd);
18818 tmpd = csinh(tmpd);
18819 tmpd = csqrt(tmpd);
18820 tmpd = ctan(tmpd);
18821 tmpd = ctanh(tmpd);
18822 tmpd = cpow(tmpd, tmpd);
18823 tmpd = cproj(tmpd);
18824 ld = cabsl(tmpld);
18825 ld = cargl(tmpld);
18826 tmpld = ccosl(tmpld);
18827 tmpld = ccoshl(tmpld);
18828 tmpld = cexpl(tmpld);
18829 tmpld = clogl(tmpld);
18830 tmpld = csinl(tmpld);
18831 tmpld = csinhl(tmpld);
18832 tmpld = csqrtl(tmpld);
18833 tmpld = ctanl(tmpld);
18834 tmpld = ctanhl(tmpld);
18835 tmpld = cpowl(tmpld, tmpld);
18836 tmpld = cprojl(tmpld);
18839 return 0;
18841 _ACEOF
18842 if ac_fn_cxx_try_link "$LINENO"; then :
18843 glibcxx_cv_c99_complex_cxx11=yes
18844 else
18845 glibcxx_cv_c99_complex_cxx11=no
18847 rm -f core conftest.err conftest.$ac_objext \
18848 conftest$ac_exeext conftest.$ac_ext
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_complex_cxx11" >&5
18853 $as_echo "$glibcxx_cv_c99_complex_cxx11" >&6; }
18855 if test x"$glibcxx_cv_c99_complex_cxx11" = x"yes"; then
18857 $as_echo "#define _GLIBCXX11_USE_C99_COMPLEX 1" >>confdefs.h
18861 # Check for the existence of <complex.h> complex inverse trigonometric
18862 # math functions used by <complex> for C++11 and later.
18863 ac_c99_complex_arc=no;
18864 if test x"$ac_has_complex_h" = x"yes"; then
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support for inverse trig functions in <complex.h>" >&5
18866 $as_echo_n "checking for ISO C99 support for inverse trig functions in <complex.h>... " >&6; }
18867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18868 /* end confdefs.h. */
18869 #include <complex.h>
18871 main ()
18873 typedef __complex__ float float_type; float_type tmpf;
18874 cacosf(tmpf);
18875 casinf(tmpf);
18876 catanf(tmpf);
18877 cacoshf(tmpf);
18878 casinhf(tmpf);
18879 catanhf(tmpf);
18880 typedef __complex__ double double_type; double_type tmpd;
18881 cacos(tmpd);
18882 casin(tmpd);
18883 catan(tmpd);
18884 cacosh(tmpd);
18885 casinh(tmpd);
18886 catanh(tmpd);
18887 typedef __complex__ long double ld_type; ld_type tmpld;
18888 cacosl(tmpld);
18889 casinl(tmpld);
18890 catanl(tmpld);
18891 cacoshl(tmpld);
18892 casinhl(tmpld);
18893 catanhl(tmpld);
18896 return 0;
18898 _ACEOF
18899 if ac_fn_cxx_try_compile "$LINENO"; then :
18900 ac_c99_complex_arc=yes
18901 else
18902 ac_c99_complex_arc=no
18904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_complex_arc" >&5
18907 $as_echo "$ac_c99_complex_arc" >&6; }
18908 if test x"$ac_c99_complex_arc" = x"yes"; then
18910 $as_echo "#define _GLIBCXX_USE_C99_COMPLEX_ARC 1" >>confdefs.h
18914 # Check for the existence in <stdio.h> of vscanf, et. al.
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <stdio.h> for C++11" >&5
18916 $as_echo_n "checking for ISO C99 support in <stdio.h> for C++11... " >&6; }
18917 if ${glibcxx_cv_c99_stdio_cxx11+:} false; then :
18918 $as_echo_n "(cached) " >&6
18919 else
18921 if test x$gcc_no_link = xyes; then
18922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18923 /* end confdefs.h. */
18924 #include <stdio.h>
18925 #include <stdarg.h>
18926 void foo(char* fmt, ...)
18928 va_list args; va_start(args, fmt);
18929 vfscanf(stderr, "%i", args);
18930 vscanf("%i", args);
18931 vsnprintf(fmt, 0, "%i", args);
18932 vsscanf(fmt, "%i", args);
18933 snprintf(fmt, 0, "%i", 1);
18936 main ()
18940 return 0;
18942 _ACEOF
18943 if ac_fn_cxx_try_compile "$LINENO"; then :
18944 glibcxx_cv_c99_stdio_cxx11=yes
18945 else
18946 glibcxx_cv_c99_stdio_cxx11=no
18948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18949 else
18950 if test x$gcc_no_link = xyes; then
18951 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18954 /* end confdefs.h. */
18955 #include <stdio.h>
18956 #include <stdarg.h>
18957 void foo(char* fmt, ...)
18959 va_list args; va_start(args, fmt);
18960 vfscanf(stderr, "%i", args);
18961 vscanf("%i", args);
18962 vsnprintf(fmt, 0, "%i", args);
18963 vsscanf(fmt, "%i", args);
18964 snprintf(fmt, 0, "%i", 1);
18967 main ()
18971 return 0;
18973 _ACEOF
18974 if ac_fn_cxx_try_link "$LINENO"; then :
18975 glibcxx_cv_c99_stdio_cxx11=yes
18976 else
18977 glibcxx_cv_c99_stdio_cxx11=no
18979 rm -f core conftest.err conftest.$ac_objext \
18980 conftest$ac_exeext conftest.$ac_ext
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdio_cxx11" >&5
18985 $as_echo "$glibcxx_cv_c99_stdio_cxx11" >&6; }
18986 if test x"$glibcxx_cv_c99_stdio_cxx11" = x"yes"; then
18988 $as_echo "#define _GLIBCXX11_USE_C99_STDIO 1" >>confdefs.h
18992 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <stdlib.h> for C++11" >&5
18994 $as_echo_n "checking for ISO C99 support in <stdlib.h> for C++11... " >&6; }
18995 if ${glibcxx_cv_c99_stdlib_cxx11+:} false; then :
18996 $as_echo_n "(cached) " >&6
18997 else
18999 if test x$gcc_no_link = xyes; then
19000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19001 /* end confdefs.h. */
19002 #include <stdlib.h>
19003 volatile float f;
19004 volatile long double ld;
19005 volatile unsigned long long ll;
19006 lldiv_t mydivt;
19008 main ()
19010 char* tmp;
19011 f = strtof("gnu", &tmp);
19012 ld = strtold("gnu", &tmp);
19013 ll = strtoll("gnu", &tmp, 10);
19014 ll = strtoull("gnu", &tmp, 10);
19015 ll = llabs(10);
19016 mydivt = lldiv(10,1);
19017 ll = mydivt.quot;
19018 ll = mydivt.rem;
19019 ll = atoll("10");
19020 _Exit(0);
19023 return 0;
19025 _ACEOF
19026 if ac_fn_cxx_try_compile "$LINENO"; then :
19027 glibcxx_cv_c99_stdlib_cxx11=yes
19028 else
19029 glibcxx_cv_c99_stdlib_cxx11=no
19031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19032 else
19033 if test x$gcc_no_link = xyes; then
19034 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19037 /* end confdefs.h. */
19038 #include <stdlib.h>
19039 volatile float f;
19040 volatile long double ld;
19041 volatile unsigned long long ll;
19042 lldiv_t mydivt;
19044 main ()
19046 char* tmp;
19047 f = strtof("gnu", &tmp);
19048 ld = strtold("gnu", &tmp);
19049 ll = strtoll("gnu", &tmp, 10);
19050 ll = strtoull("gnu", &tmp, 10);
19051 ll = llabs(10);
19052 mydivt = lldiv(10,1);
19053 ll = mydivt.quot;
19054 ll = mydivt.rem;
19055 ll = atoll("10");
19056 _Exit(0);
19059 return 0;
19061 _ACEOF
19062 if ac_fn_cxx_try_link "$LINENO"; then :
19063 glibcxx_cv_c99_stdlib_cxx11=yes
19064 else
19065 glibcxx_cv_c99_stdlib_cxx11=no
19067 rm -f core conftest.err conftest.$ac_objext \
19068 conftest$ac_exeext conftest.$ac_ext
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdlib_cxx11" >&5
19073 $as_echo "$glibcxx_cv_c99_stdlib_cxx11" >&6; }
19074 if test x"$glibcxx_cv_c99_stdlib_cxx11" = x"yes"; then
19076 $as_echo "#define _GLIBCXX11_USE_C99_STDLIB 1" >>confdefs.h
19080 # Check for the existence in <wchar.h> of wcstold, etc.
19081 if test x"$ac_has_wchar_h" = xyes &&
19082 test x"$ac_has_wctype_h" = xyes; then
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <wchar.h> for C++11" >&5
19084 $as_echo_n "checking for ISO C99 support in <wchar.h> for C++11... " >&6; }
19085 if ${glibcxx_cv_c99_wchar_cxx11+:} false; then :
19086 $as_echo_n "(cached) " >&6
19087 else
19089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19090 /* end confdefs.h. */
19091 #include <wchar.h>
19092 namespace test
19094 using ::wcstold;
19095 using ::wcstoll;
19096 using ::wcstoull;
19100 main ()
19104 return 0;
19106 _ACEOF
19107 if ac_fn_cxx_try_compile "$LINENO"; then :
19108 glibcxx_cv_c99_wchar_cxx11=yes
19109 else
19110 glibcxx_cv_c99_wchar_cxx11=no
19112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_wchar_cxx11" >&5
19116 $as_echo "$glibcxx_cv_c99_wchar_cxx11" >&6; }
19118 # Checks for wide character functions that may not be present.
19119 # Injection of these is wrapped with guard macros.
19120 # NB: only put functions here, instead of immediately above, if
19121 # absolutely necessary.
19122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19123 /* end confdefs.h. */
19124 #include <wchar.h>
19125 namespace test { using ::vfwscanf; }
19127 main ()
19131 return 0;
19133 _ACEOF
19134 if ac_fn_cxx_try_compile "$LINENO"; then :
19136 $as_echo "#define HAVE_VFWSCANF 1" >>confdefs.h
19139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19142 /* end confdefs.h. */
19143 #include <wchar.h>
19144 namespace test { using ::vswscanf; }
19146 main ()
19150 return 0;
19152 _ACEOF
19153 if ac_fn_cxx_try_compile "$LINENO"; then :
19155 $as_echo "#define HAVE_VSWSCANF 1" >>confdefs.h
19158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19161 /* end confdefs.h. */
19162 #include <wchar.h>
19163 namespace test { using ::vwscanf; }
19165 main ()
19169 return 0;
19171 _ACEOF
19172 if ac_fn_cxx_try_compile "$LINENO"; then :
19174 $as_echo "#define HAVE_VWSCANF 1" >>confdefs.h
19177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19180 /* end confdefs.h. */
19181 #include <wchar.h>
19182 namespace test { using ::wcstof; }
19184 main ()
19188 return 0;
19190 _ACEOF
19191 if ac_fn_cxx_try_compile "$LINENO"; then :
19193 $as_echo "#define HAVE_WCSTOF 1" >>confdefs.h
19196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19199 /* end confdefs.h. */
19200 #include <wctype.h>
19202 main ()
19204 wint_t t; int i = iswblank(t);
19206 return 0;
19208 _ACEOF
19209 if ac_fn_cxx_try_compile "$LINENO"; then :
19211 $as_echo "#define HAVE_ISWBLANK 1" >>confdefs.h
19214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19216 if test x"$glibcxx_cv_c99_wchar_cxx11" = x"yes"; then
19218 $as_echo "#define _GLIBCXX11_USE_C99_WCHAR 1" >>confdefs.h
19223 # Check for the existence of <ctype.h> functions.
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support for C++11 in <ctype.h>" >&5
19225 $as_echo_n "checking for ISO C99 support for C++11 in <ctype.h>... " >&6; }
19226 if ${glibcxx_cv_c99_ctype+:} false; then :
19227 $as_echo_n "(cached) " >&6
19228 else
19230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19231 /* end confdefs.h. */
19232 #include <ctype.h>
19234 main ()
19236 int ch;
19237 int ret;
19238 ret = isblank(ch);
19241 return 0;
19243 _ACEOF
19244 if ac_fn_cxx_try_compile "$LINENO"; then :
19245 glibcxx_cv_c99_ctype=yes
19246 else
19247 glibcxx_cv_c99_ctype=no
19249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_ctype" >&5
19253 $as_echo "$glibcxx_cv_c99_ctype" >&6; }
19254 if test x"$glibcxx_cv_c99_ctype" = x"yes"; then
19256 $as_echo "#define _GLIBCXX_USE_C99_CTYPE 1" >>confdefs.h
19260 # Check for the existence of <fenv.h> functions.
19261 for ac_header in fenv.h
19262 do :
19263 ac_fn_cxx_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
19264 if test "x$ac_cv_header_fenv_h" = xyes; then :
19265 cat >>confdefs.h <<_ACEOF
19266 #define HAVE_FENV_H 1
19267 _ACEOF
19268 ac_has_fenv_h=yes
19269 else
19270 ac_has_fenv_h=no
19273 done
19275 ac_c99_fenv=no;
19276 if test x"$ac_has_fenv_h" = x"yes"; then
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support for C++11 in <fenv.h>" >&5
19278 $as_echo_n "checking for ISO C99 support for C++11 in <fenv.h>... " >&6; }
19279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19280 /* end confdefs.h. */
19281 #include <fenv.h>
19283 main ()
19285 int except, mode;
19286 fexcept_t* pflag;
19287 fenv_t* penv;
19288 int ret;
19289 ret = feclearexcept(except);
19290 ret = fegetexceptflag(pflag, except);
19291 ret = feraiseexcept(except);
19292 ret = fesetexceptflag(pflag, except);
19293 ret = fetestexcept(except);
19294 ret = fegetround();
19295 ret = fesetround(mode);
19296 ret = fegetenv(penv);
19297 ret = feholdexcept(penv);
19298 ret = fesetenv(penv);
19299 ret = feupdateenv(penv);
19302 return 0;
19304 _ACEOF
19305 if ac_fn_cxx_try_compile "$LINENO"; then :
19306 ac_c99_fenv=yes
19307 else
19308 ac_c99_fenv=no
19310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_fenv" >&5
19312 $as_echo "$ac_c99_fenv" >&6; }
19314 if test x"$ac_c99_fenv" = x"yes"; then
19316 $as_echo "#define _GLIBCXX_USE_C99_FENV 1" >>confdefs.h
19320 gcc_no_link="$ac_save_gcc_no_link"
19321 LIBS="$ac_save_LIBS"
19322 CXXFLAGS="$ac_save_CXXFLAGS"
19323 ac_ext=c
19324 ac_cpp='$CPP $CPPFLAGS'
19325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fully enabled ISO C99 support" >&5
19332 $as_echo_n "checking for fully enabled ISO C99 support... " >&6; }
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_c99" >&5
19334 $as_echo "$enable_c99" >&6; }
19337 # Check whether --enable-concept-checks was given.
19338 if test "${enable_concept_checks+set}" = set; then :
19339 enableval=$enable_concept_checks;
19340 case "$enableval" in
19341 yes|no) ;;
19342 *) as_fn_error $? "Argument to enable/disable concept-checks must be yes or no" "$LINENO" 5 ;;
19343 esac
19345 else
19346 enable_concept_checks=no
19350 if test $enable_concept_checks = yes; then
19352 $as_echo "#define _GLIBCXX_CONCEPT_CHECKS 1" >>confdefs.h
19357 # Check whether --enable-libstdcxx-debug-flags was given.
19358 if test "${enable_libstdcxx_debug_flags+set}" = set; then :
19359 enableval=$enable_libstdcxx_debug_flags; case "x$enable_libstdcxx_debug_flags" in
19360 xno | x) enable_libstdcxx_debug_flags= ;;
19361 x-*) ;;
19362 *) as_fn_error $? "--enable-libstdcxx-debug-flags needs compiler flags as arguments" "$LINENO" 5 ;;
19363 esac
19364 else
19365 enable_libstdcxx_debug_flags="-g3 -O0 -D_GLIBCXX_ASSERTIONS"
19370 # Option parsed, now set things appropriately
19371 DEBUG_FLAGS="$enable_libstdcxx_debug_flags"
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: Debug build flags set to $DEBUG_FLAGS" >&5
19375 $as_echo "$as_me: Debug build flags set to $DEBUG_FLAGS" >&6;}
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional debug build" >&5
19379 $as_echo_n "checking for additional debug build... " >&6; }
19380 skip_debug_build=
19381 # Check whether --enable-libstdcxx-debug was given.
19382 if test "${enable_libstdcxx_debug+set}" = set; then :
19383 enableval=$enable_libstdcxx_debug;
19384 case "$enableval" in
19385 yes|no) ;;
19386 *) as_fn_error $? "Argument to enable/disable libstdcxx-debug must be yes or no" "$LINENO" 5 ;;
19387 esac
19389 else
19390 enable_libstdcxx_debug=no
19394 if test x$enable_libstdcxx_debug = xyes; then
19395 if test -f $toplevel_builddir/../stage_final \
19396 && test -f $toplevel_builddir/../stage_current; then
19397 stage_final=`cat $toplevel_builddir/../stage_final`
19398 stage_current=`cat $toplevel_builddir/../stage_current`
19399 if test x$stage_current != x$stage_final ; then
19400 skip_debug_build=" (skipped for bootstrap stage $stage_current)"
19401 enable_libstdcxx_debug=no
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_debug$skip_debug_build" >&5
19406 $as_echo "$enable_libstdcxx_debug$skip_debug_build" >&6; }
19411 enable_parallel=no;
19413 # See if configured libgomp/omp.h exists. (libgomp may be in
19414 # noconfigdirs but not explicitly disabled.)
19415 if echo " ${TARGET_CONFIGDIRS} " | grep " libgomp " > /dev/null 2>&1 ; then
19416 enable_parallel=yes;
19417 else
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: target-libgomp not built" >&5
19419 $as_echo "$as_me: target-libgomp not built" >&6;}
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parallel mode support" >&5
19423 $as_echo_n "checking for parallel mode support... " >&6; }
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_parallel" >&5
19425 $as_echo "$enable_parallel" >&6; }
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra compiler flags for building" >&5
19428 $as_echo_n "checking for extra compiler flags for building... " >&6; }
19429 # Check whether --enable-cxx-flags was given.
19430 if test "${enable_cxx_flags+set}" = set; then :
19431 enableval=$enable_cxx_flags; case "x$enable_cxx_flags" in
19432 xno | x) enable_cxx_flags= ;;
19433 x-*) ;;
19434 *) as_fn_error $? "--enable-cxx-flags needs compiler flags as arguments" "$LINENO" 5 ;;
19435 esac
19436 else
19437 enable_cxx_flags=
19442 # Run through flags (either default or command-line) and set anything
19443 # extra (e.g., #defines) that must accompany particular g++ options.
19444 if test -n "$enable_cxx_flags"; then
19445 for f in $enable_cxx_flags; do
19446 case "$f" in
19447 -fhonor-std) ;;
19448 -*) ;;
19449 *) # and we're trying to pass /what/ exactly?
19450 as_fn_error $? "compiler flags start with a -" "$LINENO" 5 ;;
19451 esac
19452 done
19455 EXTRA_CXX_FLAGS="$enable_cxx_flags"
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_CXX_FLAGS" >&5
19457 $as_echo "$EXTRA_CXX_FLAGS" >&6; }
19461 # Check whether --enable-fully-dynamic-string was given.
19462 if test "${enable_fully_dynamic_string+set}" = set; then :
19463 enableval=$enable_fully_dynamic_string;
19464 case "$enableval" in
19465 yes|no) ;;
19466 *) as_fn_error $? "Unknown argument to enable/disable fully-dynamic-string" "$LINENO" 5 ;;
19467 esac
19469 else
19470 enable_fully_dynamic_string=no
19474 if test $enable_fully_dynamic_string = yes; then
19475 enable_fully_dynamic_string_def=1
19476 else
19477 enable_fully_dynamic_string_def=0
19480 cat >>confdefs.h <<_ACEOF
19481 #define _GLIBCXX_FULLY_DYNAMIC_STRING ${enable_fully_dynamic_string_def}
19482 _ACEOF
19487 # Check whether --enable-extern-template was given.
19488 if test "${enable_extern_template+set}" = set; then :
19489 enableval=$enable_extern_template;
19490 case "$enableval" in
19491 yes|no) ;;
19492 *) as_fn_error $? "Argument to enable/disable extern-template must be yes or no" "$LINENO" 5 ;;
19493 esac
19495 else
19496 enable_extern_template=yes
19501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extern template support" >&5
19502 $as_echo_n "checking for extern template support... " >&6; }
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_extern_template" >&5
19504 $as_echo "$enable_extern_template" >&6; }
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for custom python install directory" >&5
19511 $as_echo_n "checking for custom python install directory... " >&6; }
19513 # Check whether --with-python-dir was given.
19514 if test "${with_python_dir+set}" = set; then :
19515 withval=$with_python_dir; with_python_dir=$withval
19516 else
19517 with_python_dir="no"
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_python_dir}" >&5
19521 $as_echo "${with_python_dir}" >&6; }
19523 # Needed for installing Python modules during make install.
19524 python_mod_dir="${with_python_dir}"
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror" >&5
19530 $as_echo_n "checking for -Werror... " >&6; }
19531 # Check whether --enable-werror was given.
19532 if test "${enable_werror+set}" = set; then :
19533 enableval=$enable_werror;
19534 case "$enableval" in
19535 yes|no) ;;
19536 *) as_fn_error $? "Argument to enable/disable werror must be yes or no" "$LINENO" 5 ;;
19537 esac
19539 else
19540 enable_werror=no
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_werror" >&5
19545 $as_echo "$enable_werror" >&6; }
19550 # Check whether --enable-vtable-verify was given.
19551 if test "${enable_vtable_verify+set}" = set; then :
19552 enableval=$enable_vtable_verify;
19553 case "$enableval" in
19554 yes|no) ;;
19555 *) as_fn_error $? "Argument to enable/disable vtable-verify must be yes or no" "$LINENO" 5 ;;
19556 esac
19558 else
19559 enable_vtable_verify=no
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtable verify support" >&5
19565 $as_echo_n "checking for vtable verify support... " >&6; }
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
19567 $as_echo "$enable_vtable_verify" >&6; }
19569 vtv_cygmin=no
19570 if test $enable_vtable_verify = yes; then
19571 case ${target_os} in
19572 cygwin*|mingw32*)
19573 VTV_CXXFLAGS="-fvtable-verify=std -Wl,-lvtv,-u_vtable_map_vars_start,-u_vtable_map_vars_end"
19574 VTV_CXXLINKFLAGS="-L${toplevel_builddir}/libvtv/.libs -Wl,--rpath -Wl,${toplevel_builddir}/libvtv/.libs"
19575 vtv_cygmin=yes
19577 darwin*)
19578 VTV_CXXFLAGS="-fvtable-verify=std -Wl,-u,_vtable_map_vars_start -Wl,-u,_vtable_map_vars_end"
19579 VTV_CXXLINKFLAGS="-L${toplevel_builddir}/libvtv/.libs -Wl,-rpath,${toplevel_builddir}/libvtv/.libs"
19581 solaris2*)
19582 VTV_CXXFLAGS="-fvtable-verify=std -Wl,-u_vtable_map_vars_start,-u_vtable_map_vars_end"
19583 VTV_CXXLINKFLAGS="-L${toplevel_builddir}/libvtv/.libs -Wl,-R -Wl,${toplevel_builddir}/libvtv/.libs"
19586 VTV_CXXFLAGS="-fvtable-verify=std -Wl,-u_vtable_map_vars_start,-u_vtable_map_vars_end"
19587 VTV_CXXLINKFLAGS="-L${toplevel_builddir}/libvtv/.libs -Wl,--rpath -Wl,${toplevel_builddir}/libvtv/.libs"
19589 esac
19590 VTV_PCH_CXXFLAGS="-fvtable-verify=std"
19591 else
19592 VTV_CXXFLAGS=
19593 VTV_PCH_CXXFLAGS=
19594 VTV_CXXLINKFLAGS=
19600 if test x$vtv_cygmin = xyes; then
19601 VTV_CYGMIN_TRUE=
19602 VTV_CYGMIN_FALSE='#'
19603 else
19604 VTV_CYGMIN_TRUE='#'
19605 VTV_CYGMIN_FALSE=
19611 # Checks for operating systems support that doesn't require linking.
19615 ac_ext=cpp
19616 ac_cpp='$CXXCPP $CPPFLAGS'
19617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19621 # Use C++11 because a conforming <stdio.h> won't define gets for C++14,
19622 # and we don't need a declaration for C++14 anyway.
19623 ac_save_CXXFLAGS="$CXXFLAGS"
19624 CXXFLAGS="$CXXFLAGS -std=gnu++11"
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gets declaration" >&5
19627 $as_echo_n "checking for gets declaration... " >&6; }
19628 if ${glibcxx_cv_gets+:} false; then :
19629 $as_echo_n "(cached) " >&6
19630 else
19632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19633 /* end confdefs.h. */
19634 #include <stdio.h>
19635 namespace test
19637 using ::gets;
19640 _ACEOF
19641 if ac_fn_cxx_try_compile "$LINENO"; then :
19642 glibcxx_cv_gets=yes
19643 else
19644 glibcxx_cv_gets=no
19647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_gets" >&5
19650 $as_echo "$glibcxx_cv_gets" >&6; }
19652 if test $glibcxx_cv_gets = yes; then
19654 $as_echo "#define HAVE_GETS 1" >>confdefs.h
19658 CXXFLAGS="$ac_save_CXXFLAGS"
19659 ac_ext=c
19660 ac_cpp='$CPP $CPPFLAGS'
19661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19669 ac_ext=cpp
19670 ac_cpp='$CXXCPP $CPPFLAGS'
19671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19675 ac_save_CXXFLAGS="$CXXFLAGS"
19676 CXXFLAGS="$CXXFLAGS -std=c++11"
19678 case "$host" in
19679 *-*-solaris2.*)
19680 # Solaris 12 Build 86, Solaris 11.3 SRU 3.6, and Solaris 10 Patch
19681 # 11996[67]-02 introduced the C++11 <math.h> floating point overloads.
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++11 <math.h> floating point overloads" >&5
19683 $as_echo_n "checking for C++11 <math.h> floating point overloads... " >&6; }
19684 if ${glibcxx_cv_math11_fp_overload+:} false; then :
19685 $as_echo_n "(cached) " >&6
19686 else
19688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19689 /* end confdefs.h. */
19690 #include <math.h>
19691 #undef isfinite
19692 namespace std {
19693 inline bool isfinite(float __x)
19694 { return __builtin_isfinite(__x); }
19697 _ACEOF
19698 if ac_fn_cxx_try_compile "$LINENO"; then :
19699 glibcxx_cv_math11_fp_overload=no
19700 else
19701 glibcxx_cv_math11_fp_overload=yes
19704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_math11_fp_overload" >&5
19707 $as_echo "$glibcxx_cv_math11_fp_overload" >&6; }
19709 # autoheader cannot handle indented templates.
19712 if test $glibcxx_cv_math11_fp_overload = yes; then
19713 $as_echo "#define __CORRECT_ISO_CPP11_MATH_H_PROTO_FP 1" >>confdefs.h
19717 # Solaris 12 Build 90, Solaris 11.3 SRU 5.6, and Solaris 10 Patch
19718 # 11996[67]-02 introduced the C++11 <math.h> integral type overloads.
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++11 <math.h> integral type overloads" >&5
19720 $as_echo_n "checking for C++11 <math.h> integral type overloads... " >&6; }
19721 if ${glibcxx_cv_math11_int_overload+:} false; then :
19722 $as_echo_n "(cached) " >&6
19723 else
19725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19726 /* end confdefs.h. */
19727 #include <math.h>
19728 namespace std {
19729 template<typename _Tp>
19730 struct __is_integer;
19731 template<>
19732 struct __is_integer<int>
19734 enum { __value = 1 };
19737 namespace __gnu_cxx {
19738 template<bool, typename>
19739 struct __enable_if;
19740 template<typename _Tp>
19741 struct __enable_if<true, _Tp>
19742 { typedef _Tp __type; };
19744 namespace std {
19745 template<typename _Tp>
19746 constexpr typename __gnu_cxx::__enable_if
19747 <__is_integer<_Tp>::__value, double>::__type
19748 log2(_Tp __x)
19749 { return __builtin_log2(__x); }
19752 main (void)
19754 int i = 1000;
19755 return std::log2(i);
19758 _ACEOF
19759 if ac_fn_cxx_try_compile "$LINENO"; then :
19760 glibcxx_cv_math11_int_overload=no
19761 else
19762 glibcxx_cv_math11_int_overload=yes
19765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_math11_int_overload" >&5
19768 $as_echo "$glibcxx_cv_math11_int_overload" >&6; }
19770 # autoheader cannot handle indented templates.
19773 if test $glibcxx_cv_math11_int_overload = yes; then
19774 $as_echo "#define __CORRECT_ISO_CPP11_MATH_H_PROTO_INT 1" >>confdefs.h
19779 # If <math.h> defines the obsolete isinf(double) and isnan(double)
19780 # functions (instead of or as well as the C99 generic macros) then we
19781 # can't define std::isinf(double) and std::isnan(double) in <cmath>
19782 # and must use the ones from <math.h> instead.
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete isinf function in <math.h>" >&5
19784 $as_echo_n "checking for obsolete isinf function in <math.h>... " >&6; }
19785 if ${glibcxx_cv_obsolete_isinf+:} false; then :
19786 $as_echo_n "(cached) " >&6
19787 else
19789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19790 /* end confdefs.h. */
19791 #define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
19792 #include <math.h>
19793 #undef isinf
19794 namespace std {
19795 using ::isinf;
19796 bool isinf(float);
19797 bool isinf(long double);
19799 using std::isinf;
19800 bool b = isinf(0.0);
19802 _ACEOF
19803 if ac_fn_cxx_try_compile "$LINENO"; then :
19804 glibcxx_cv_obsolete_isinf=yes
19805 else
19806 glibcxx_cv_obsolete_isinf=no
19809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_obsolete_isinf" >&5
19812 $as_echo "$glibcxx_cv_obsolete_isinf" >&6; }
19813 if test $glibcxx_cv_obsolete_isinf = yes; then
19815 $as_echo "#define HAVE_OBSOLETE_ISINF 1" >>confdefs.h
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete isnan function in <math.h>" >&5
19820 $as_echo_n "checking for obsolete isnan function in <math.h>... " >&6; }
19821 if ${glibcxx_cv_obsolete_isnan+:} false; then :
19822 $as_echo_n "(cached) " >&6
19823 else
19825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19826 /* end confdefs.h. */
19827 #define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
19828 #include <math.h>
19829 #undef isnan
19830 namespace std {
19831 using ::isnan;
19832 bool isnan(float);
19833 bool isnan(long double);
19835 using std::isnan;
19836 bool b = isnan(0.0);
19838 _ACEOF
19839 if ac_fn_cxx_try_compile "$LINENO"; then :
19840 glibcxx_cv_obsolete_isnan=yes
19841 else
19842 glibcxx_cv_obsolete_isnan=no
19845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_obsolete_isnan" >&5
19848 $as_echo "$glibcxx_cv_obsolete_isnan" >&6; }
19849 if test $glibcxx_cv_obsolete_isnan = yes; then
19851 $as_echo "#define HAVE_OBSOLETE_ISNAN 1" >>confdefs.h
19855 esac
19857 CXXFLAGS="$ac_save_CXXFLAGS"
19858 ac_ext=c
19859 ac_cpp='$CPP $CPPFLAGS'
19860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19867 # Test uchar.h.
19868 for ac_header in uchar.h
19869 do :
19870 ac_fn_c_check_header_mongrel "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
19871 if test "x$ac_cv_header_uchar_h" = xyes; then :
19872 cat >>confdefs.h <<_ACEOF
19873 #define HAVE_UCHAR_H 1
19874 _ACEOF
19875 ac_has_uchar_h=yes
19876 else
19877 ac_has_uchar_h=no
19880 done
19884 ac_ext=cpp
19885 ac_cpp='$CXXCPP $CPPFLAGS'
19886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19890 ac_save_CXXFLAGS="$CXXFLAGS"
19891 CXXFLAGS="$CXXFLAGS -std=c++11"
19893 if test x"$ac_has_uchar_h" = x"yes"; then
19894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C11 support for <uchar.h>" >&5
19895 $as_echo_n "checking for ISO C11 support for <uchar.h>... " >&6; }
19896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19897 /* end confdefs.h. */
19898 #include <uchar.h>
19899 #ifdef __STDC_UTF_16__
19900 long i = __STDC_UTF_16__;
19901 #endif
19902 #ifdef __STDC_UTF_32__
19903 long j = __STDC_UTF_32__;
19904 #endif
19905 namespace test
19907 using ::c16rtomb;
19908 using ::c32rtomb;
19909 using ::mbrtoc16;
19910 using ::mbrtoc32;
19914 main ()
19918 return 0;
19920 _ACEOF
19921 if ac_fn_cxx_try_compile "$LINENO"; then :
19922 ac_c11_uchar_cxx11=yes
19923 else
19924 ac_c11_uchar_cxx11=no
19926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c11_uchar_cxx11" >&5
19928 $as_echo "$ac_c11_uchar_cxx11" >&6; }
19929 else
19930 ac_c11_uchar_cxx11=no
19932 if test x"$ac_c11_uchar_cxx11" = x"yes"; then
19934 $as_echo "#define _GLIBCXX_USE_C11_UCHAR_CXX11 1" >>confdefs.h
19938 CXXFLAGS="$CXXFLAGS -fchar8_t"
19939 if test x"$ac_has_uchar_h" = x"yes"; then
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c8rtomb and mbrtoc8 in <uchar.h> with -fchar8_t" >&5
19941 $as_echo_n "checking for c8rtomb and mbrtoc8 in <uchar.h> with -fchar8_t... " >&6; }
19942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19943 /* end confdefs.h. */
19944 #include <uchar.h>
19945 namespace test
19947 using ::c8rtomb;
19948 using ::mbrtoc8;
19952 main ()
19956 return 0;
19958 _ACEOF
19959 if ac_fn_cxx_try_compile "$LINENO"; then :
19960 ac_uchar_c8rtomb_mbrtoc8_fchar8_t=yes
19961 else
19962 ac_uchar_c8rtomb_mbrtoc8_fchar8_t=no
19964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_uchar_c8rtomb_mbrtoc8_fchar8_t" >&5
19966 $as_echo "$ac_uchar_c8rtomb_mbrtoc8_fchar8_t" >&6; }
19967 else
19968 ac_uchar_c8rtomb_mbrtoc8_fchar8_t=no
19970 if test x"$ac_uchar_c8rtomb_mbrtoc8_fchar8_t" = x"yes"; then
19972 $as_echo "#define _GLIBCXX_USE_UCHAR_C8RTOMB_MBRTOC8_FCHAR8_T 1" >>confdefs.h
19976 CXXFLAGS="$CXXFLAGS -std=c++20"
19977 if test x"$ac_has_uchar_h" = x"yes"; then
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c8rtomb and mbrtoc8 in <uchar.h> with -std=c++20" >&5
19979 $as_echo_n "checking for c8rtomb and mbrtoc8 in <uchar.h> with -std=c++20... " >&6; }
19980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19981 /* end confdefs.h. */
19982 #include <uchar.h>
19983 namespace test
19985 using ::c8rtomb;
19986 using ::mbrtoc8;
19990 main ()
19994 return 0;
19996 _ACEOF
19997 if ac_fn_cxx_try_compile "$LINENO"; then :
19998 ac_uchar_c8rtomb_mbrtoc8_cxx20=yes
19999 else
20000 ac_uchar_c8rtomb_mbrtoc8_cxx20=no
20002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_uchar_c8rtomb_mbrtoc8_cxx20" >&5
20004 $as_echo "$ac_uchar_c8rtomb_mbrtoc8_cxx20" >&6; }
20005 else
20006 ac_uchar_c8rtomb_mbrtoc8_cxx20=no
20008 if test x"$ac_uchar_c8rtomb_mbrtoc8_cxx20" = x"yes"; then
20010 $as_echo "#define _GLIBCXX_USE_UCHAR_C8RTOMB_MBRTOC8_CXX20 1" >>confdefs.h
20014 CXXFLAGS="$ac_save_CXXFLAGS"
20015 ac_ext=c
20016 ac_cpp='$CPP $CPPFLAGS'
20017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20023 # For LFS support.
20026 ac_ext=cpp
20027 ac_cpp='$CXXCPP $CPPFLAGS'
20028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20032 ac_save_CXXFLAGS="$CXXFLAGS"
20033 CXXFLAGS="$CXXFLAGS -fno-exceptions"
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LFS support" >&5
20035 $as_echo_n "checking for LFS support... " >&6; }
20036 if ${glibcxx_cv_LFS+:} false; then :
20037 $as_echo_n "(cached) " >&6
20038 else
20040 if test x$gcc_no_link = xyes; then
20041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20042 /* end confdefs.h. */
20043 #include <unistd.h>
20044 #include <stdio.h>
20045 #include <sys/stat.h>
20048 main ()
20050 FILE* fp;
20051 fopen64("t", "w");
20052 fseeko64(fp, 0, SEEK_CUR);
20053 ftello64(fp);
20054 lseek64(1, 0, SEEK_CUR);
20055 struct stat64 buf;
20056 fstat64(1, &buf);
20058 return 0;
20060 _ACEOF
20061 if ac_fn_cxx_try_compile "$LINENO"; then :
20062 glibcxx_cv_LFS=yes
20063 else
20064 glibcxx_cv_LFS=no
20066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20067 else
20068 if test x$gcc_no_link = xyes; then
20069 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20072 /* end confdefs.h. */
20073 #include <unistd.h>
20074 #include <stdio.h>
20075 #include <sys/stat.h>
20078 main ()
20080 FILE* fp;
20081 fopen64("t", "w");
20082 fseeko64(fp, 0, SEEK_CUR);
20083 ftello64(fp);
20084 lseek64(1, 0, SEEK_CUR);
20085 struct stat64 buf;
20086 fstat64(1, &buf);
20088 return 0;
20090 _ACEOF
20091 if ac_fn_cxx_try_link "$LINENO"; then :
20092 glibcxx_cv_LFS=yes
20093 else
20094 glibcxx_cv_LFS=no
20096 rm -f core conftest.err conftest.$ac_objext \
20097 conftest$ac_exeext conftest.$ac_ext
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_LFS" >&5
20102 $as_echo "$glibcxx_cv_LFS" >&6; }
20103 if test $glibcxx_cv_LFS = yes; then
20105 $as_echo "#define _GLIBCXX_USE_LFS 1" >>confdefs.h
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko and ftello" >&5
20110 $as_echo_n "checking for fseeko and ftello... " >&6; }
20111 if ${glibcxx_cv_posix_lfs+:} false; then :
20112 $as_echo_n "(cached) " >&6
20113 else
20115 if test x$gcc_no_link = xyes; then
20116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20117 /* end confdefs.h. */
20118 #include <stdio.h>
20121 main ()
20123 FILE* fp;
20124 fseeko(fp, 0, SEEK_CUR);
20125 ftello(fp);
20128 return 0;
20130 _ACEOF
20131 if ac_fn_cxx_try_compile "$LINENO"; then :
20132 glibcxx_cv_posix_lfs=yes
20133 else
20134 glibcxx_cv_posix_lfs=no
20136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20137 else
20138 if test x$gcc_no_link = xyes; then
20139 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20142 /* end confdefs.h. */
20143 #include <stdio.h>
20146 main ()
20148 FILE* fp;
20149 fseeko(fp, 0, SEEK_CUR);
20150 ftello(fp);
20153 return 0;
20155 _ACEOF
20156 if ac_fn_cxx_try_link "$LINENO"; then :
20157 glibcxx_cv_posix_lfs=yes
20158 else
20159 glibcxx_cv_posix_lfs=no
20161 rm -f core conftest.err conftest.$ac_objext \
20162 conftest$ac_exeext conftest.$ac_ext
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_posix_lfs" >&5
20167 $as_echo "$glibcxx_cv_posix_lfs" >&6; }
20168 if test $glibcxx_cv_posix_lfs = yes; then
20170 $as_echo "#define _GLIBCXX_USE_FSEEKO_FTELLO 1" >>confdefs.h
20174 CXXFLAGS="$ac_save_CXXFLAGS"
20175 ac_ext=c
20176 ac_cpp='$CPP $CPPFLAGS'
20177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20183 # For showmanyc_helper().
20184 for ac_header in sys/ioctl.h sys/filio.h
20185 do :
20186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20187 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20188 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20189 cat >>confdefs.h <<_ACEOF
20190 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20191 _ACEOF
20195 done
20200 ac_ext=cpp
20201 ac_cpp='$CXXCPP $CPPFLAGS'
20202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20206 ac_save_CXXFLAGS="$CXXFLAGS"
20207 CXXFLAGS="$CXXFLAGS -fno-exceptions"
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll" >&5
20210 $as_echo_n "checking for poll... " >&6; }
20211 if ${glibcxx_cv_POLL+:} false; then :
20212 $as_echo_n "(cached) " >&6
20213 else
20215 if test x$gcc_no_link = xyes; then
20216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20217 /* end confdefs.h. */
20218 #include <poll.h>
20220 main ()
20222 struct pollfd pfd[1];
20223 pfd[0].events = POLLIN;
20224 poll(pfd, 1, 0);
20226 return 0;
20228 _ACEOF
20229 if ac_fn_cxx_try_compile "$LINENO"; then :
20230 glibcxx_cv_POLL=yes
20231 else
20232 glibcxx_cv_POLL=no
20234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20235 else
20236 if test x$gcc_no_link = xyes; then
20237 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20240 /* end confdefs.h. */
20241 #include <poll.h>
20243 main ()
20245 struct pollfd pfd[1];
20246 pfd[0].events = POLLIN;
20247 poll(pfd, 1, 0);
20249 return 0;
20251 _ACEOF
20252 if ac_fn_cxx_try_link "$LINENO"; then :
20253 glibcxx_cv_POLL=yes
20254 else
20255 glibcxx_cv_POLL=no
20257 rm -f core conftest.err conftest.$ac_objext \
20258 conftest$ac_exeext conftest.$ac_ext
20262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_POLL" >&5
20263 $as_echo "$glibcxx_cv_POLL" >&6; }
20264 if test $glibcxx_cv_POLL = yes; then
20266 $as_echo "#define HAVE_POLL 1" >>confdefs.h
20270 CXXFLAGS="$ac_save_CXXFLAGS"
20271 ac_ext=c
20272 ac_cpp='$CPP $CPPFLAGS'
20273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20281 ac_ext=cpp
20282 ac_cpp='$CXXCPP $CPPFLAGS'
20283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20287 ac_save_CXXFLAGS="$CXXFLAGS"
20288 CXXFLAGS="$CXXFLAGS -fno-exceptions"
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for S_ISREG or S_IFREG" >&5
20291 $as_echo_n "checking for S_ISREG or S_IFREG... " >&6; }
20292 if ${glibcxx_cv_S_ISREG+:} false; then :
20293 $as_echo_n "(cached) " >&6
20294 else
20296 if test x$gcc_no_link = xyes; then
20297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20298 /* end confdefs.h. */
20299 #include <sys/stat.h>
20301 main ()
20303 struct stat buffer;
20304 fstat(0, &buffer);
20305 S_ISREG(buffer.st_mode);
20307 return 0;
20309 _ACEOF
20310 if ac_fn_cxx_try_compile "$LINENO"; then :
20311 glibcxx_cv_S_ISREG=yes
20312 else
20313 glibcxx_cv_S_ISREG=no
20315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20316 else
20317 if test x$gcc_no_link = xyes; then
20318 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20321 /* end confdefs.h. */
20322 #include <sys/stat.h>
20324 main ()
20326 struct stat buffer;
20327 fstat(0, &buffer);
20328 S_ISREG(buffer.st_mode);
20330 return 0;
20332 _ACEOF
20333 if ac_fn_cxx_try_link "$LINENO"; then :
20334 glibcxx_cv_S_ISREG=yes
20335 else
20336 glibcxx_cv_S_ISREG=no
20338 rm -f core conftest.err conftest.$ac_objext \
20339 conftest$ac_exeext conftest.$ac_ext
20344 if ${glibcxx_cv_S_IFREG+:} false; then :
20345 $as_echo_n "(cached) " >&6
20346 else
20348 if test x$gcc_no_link = xyes; then
20349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20350 /* end confdefs.h. */
20351 #include <sys/stat.h>
20353 main ()
20355 struct stat buffer;
20356 fstat(0, &buffer);
20357 S_IFREG & buffer.st_mode;
20359 return 0;
20361 _ACEOF
20362 if ac_fn_cxx_try_compile "$LINENO"; then :
20363 glibcxx_cv_S_IFREG=yes
20364 else
20365 glibcxx_cv_S_IFREG=no
20367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20368 else
20369 if test x$gcc_no_link = xyes; then
20370 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20373 /* end confdefs.h. */
20374 #include <sys/stat.h>
20376 main ()
20378 struct stat buffer;
20379 fstat(0, &buffer);
20380 S_IFREG & buffer.st_mode;
20382 return 0;
20384 _ACEOF
20385 if ac_fn_cxx_try_link "$LINENO"; then :
20386 glibcxx_cv_S_IFREG=yes
20387 else
20388 glibcxx_cv_S_IFREG=no
20390 rm -f core conftest.err conftest.$ac_objext \
20391 conftest$ac_exeext conftest.$ac_ext
20396 res=no
20397 if test $glibcxx_cv_S_ISREG = yes; then
20399 $as_echo "#define HAVE_S_ISREG 1" >>confdefs.h
20401 res=S_ISREG
20402 elif test $glibcxx_cv_S_IFREG = yes; then
20404 $as_echo "#define HAVE_S_IFREG 1" >>confdefs.h
20406 res=S_IFREG
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
20409 $as_echo "$res" >&6; }
20411 CXXFLAGS="$ac_save_CXXFLAGS"
20412 ac_ext=c
20413 ac_cpp='$CPP $CPPFLAGS'
20414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20420 # For xsputn_2().
20421 for ac_header in sys/uio.h
20422 do :
20423 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
20424 if test "x$ac_cv_header_sys_uio_h" = xyes; then :
20425 cat >>confdefs.h <<_ACEOF
20426 #define HAVE_SYS_UIO_H 1
20427 _ACEOF
20431 done
20436 ac_ext=cpp
20437 ac_cpp='$CXXCPP $CPPFLAGS'
20438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20442 ac_save_CXXFLAGS="$CXXFLAGS"
20443 CXXFLAGS="$CXXFLAGS -fno-exceptions"
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for writev" >&5
20446 $as_echo_n "checking for writev... " >&6; }
20447 if ${glibcxx_cv_WRITEV+:} false; then :
20448 $as_echo_n "(cached) " >&6
20449 else
20451 if test x$gcc_no_link = xyes; then
20452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20453 /* end confdefs.h. */
20454 #include <sys/uio.h>
20456 main ()
20458 struct iovec iov[2];
20459 writev(0, iov, 0);
20461 return 0;
20463 _ACEOF
20464 if ac_fn_cxx_try_compile "$LINENO"; then :
20465 glibcxx_cv_WRITEV=yes
20466 else
20467 glibcxx_cv_WRITEV=no
20469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20470 else
20471 if test x$gcc_no_link = xyes; then
20472 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20475 /* end confdefs.h. */
20476 #include <sys/uio.h>
20478 main ()
20480 struct iovec iov[2];
20481 writev(0, iov, 0);
20483 return 0;
20485 _ACEOF
20486 if ac_fn_cxx_try_link "$LINENO"; then :
20487 glibcxx_cv_WRITEV=yes
20488 else
20489 glibcxx_cv_WRITEV=no
20491 rm -f core conftest.err conftest.$ac_objext \
20492 conftest$ac_exeext conftest.$ac_ext
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_WRITEV" >&5
20497 $as_echo "$glibcxx_cv_WRITEV" >&6; }
20498 if test $glibcxx_cv_WRITEV = yes; then
20500 $as_echo "#define HAVE_WRITEV 1" >>confdefs.h
20504 CXXFLAGS="$ac_save_CXXFLAGS"
20505 ac_ext=c
20506 ac_cpp='$CPP $CPPFLAGS'
20507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20513 # Check for fenv.h and complex.h before GLIBCXX_CHECK_C99_TR1
20514 # so that the check is done with the C compiler (not C++).
20515 # Checking with C++ can break a canadian cross build if either
20516 # file does not exist in C but does in C++.
20517 for ac_header in fenv.h complex.h
20518 do :
20519 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20520 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20521 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20522 cat >>confdefs.h <<_ACEOF
20523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20524 _ACEOF
20528 done
20531 # For C99 support to TR1.
20535 ac_ext=cpp
20536 ac_cpp='$CXXCPP $CPPFLAGS'
20537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20542 # Use -std=c++98 because -std=gnu++98 leaves __STRICT_ANSI__
20543 # undefined and fake C99 facilities may be spuriously enabled.
20544 ac_save_CXXFLAGS="$CXXFLAGS"
20545 CXXFLAGS="$CXXFLAGS -std=c++98"
20547 # Check for the existence of <complex.h> complex math functions used
20548 # by tr1/complex.
20549 for ac_header in complex.h
20550 do :
20551 ac_fn_cxx_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
20552 if test "x$ac_cv_header_complex_h" = xyes; then :
20553 cat >>confdefs.h <<_ACEOF
20554 #define HAVE_COMPLEX_H 1
20555 _ACEOF
20556 ac_has_complex_h=yes
20557 else
20558 ac_has_complex_h=no
20561 done
20563 ac_c99_complex_tr1=no;
20564 if test x"$ac_has_complex_h" = x"yes"; then
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <complex.h>" >&5
20566 $as_echo_n "checking for ISO C99 support to TR1 in <complex.h>... " >&6; }
20567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20568 /* end confdefs.h. */
20569 #include <complex.h>
20571 main ()
20573 typedef __complex__ float float_type; float_type tmpf;
20574 cacosf(tmpf);
20575 casinf(tmpf);
20576 catanf(tmpf);
20577 cacoshf(tmpf);
20578 casinhf(tmpf);
20579 catanhf(tmpf);
20580 typedef __complex__ double double_type; double_type tmpd;
20581 cacos(tmpd);
20582 casin(tmpd);
20583 catan(tmpd);
20584 cacosh(tmpd);
20585 casinh(tmpd);
20586 catanh(tmpd);
20587 typedef __complex__ long double ld_type; ld_type tmpld;
20588 cacosl(tmpld);
20589 casinl(tmpld);
20590 catanl(tmpld);
20591 cacoshl(tmpld);
20592 casinhl(tmpld);
20593 catanhl(tmpld);
20596 return 0;
20598 _ACEOF
20599 if ac_fn_cxx_try_compile "$LINENO"; then :
20600 ac_c99_complex_tr1=yes
20601 else
20602 ac_c99_complex_tr1=no
20604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_complex_tr1" >&5
20607 $as_echo "$ac_c99_complex_tr1" >&6; }
20608 if test x"$ac_c99_complex_tr1" = x"yes"; then
20610 $as_echo "#define _GLIBCXX_USE_C99_COMPLEX_TR1 1" >>confdefs.h
20614 # Check for the existence of <ctype.h> functions.
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <ctype.h>" >&5
20616 $as_echo_n "checking for ISO C99 support to TR1 in <ctype.h>... " >&6; }
20617 if ${glibcxx_cv_c99_ctype_tr1+:} false; then :
20618 $as_echo_n "(cached) " >&6
20619 else
20621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20622 /* end confdefs.h. */
20623 #include <ctype.h>
20625 main ()
20627 int ch;
20628 int ret;
20629 ret = isblank(ch);
20632 return 0;
20634 _ACEOF
20635 if ac_fn_cxx_try_compile "$LINENO"; then :
20636 glibcxx_cv_c99_ctype_tr1=yes
20637 else
20638 glibcxx_cv_c99_ctype_tr1=no
20640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_ctype_tr1" >&5
20644 $as_echo "$glibcxx_cv_c99_ctype_tr1" >&6; }
20645 if test x"$glibcxx_cv_c99_ctype_tr1" = x"yes"; then
20647 $as_echo "#define _GLIBCXX_USE_C99_CTYPE_TR1 1" >>confdefs.h
20651 # Check for the existence of <fenv.h> functions.
20652 for ac_header in fenv.h
20653 do :
20654 ac_fn_cxx_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
20655 if test "x$ac_cv_header_fenv_h" = xyes; then :
20656 cat >>confdefs.h <<_ACEOF
20657 #define HAVE_FENV_H 1
20658 _ACEOF
20659 ac_has_fenv_h=yes
20660 else
20661 ac_has_fenv_h=no
20664 done
20666 ac_c99_fenv_tr1=no;
20667 if test x"$ac_has_fenv_h" = x"yes"; then
20668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <fenv.h>" >&5
20669 $as_echo_n "checking for ISO C99 support to TR1 in <fenv.h>... " >&6; }
20670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20671 /* end confdefs.h. */
20672 #include <fenv.h>
20674 main ()
20676 int except, mode;
20677 fexcept_t* pflag;
20678 fenv_t* penv;
20679 int ret;
20680 ret = feclearexcept(except);
20681 ret = fegetexceptflag(pflag, except);
20682 ret = feraiseexcept(except);
20683 ret = fesetexceptflag(pflag, except);
20684 ret = fetestexcept(except);
20685 ret = fegetround();
20686 ret = fesetround(mode);
20687 ret = fegetenv(penv);
20688 ret = feholdexcept(penv);
20689 ret = fesetenv(penv);
20690 ret = feupdateenv(penv);
20693 return 0;
20695 _ACEOF
20696 if ac_fn_cxx_try_compile "$LINENO"; then :
20697 ac_c99_fenv_tr1=yes
20698 else
20699 ac_c99_fenv_tr1=no
20701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_fenv_tr1" >&5
20703 $as_echo "$ac_c99_fenv_tr1" >&6; }
20705 if test x"$ac_c99_fenv_tr1" = x"yes"; then
20707 $as_echo "#define _GLIBCXX_USE_C99_FENV_TR1 1" >>confdefs.h
20711 # Check for the existence of <stdint.h> types.
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <stdint.h>" >&5
20713 $as_echo_n "checking for ISO C99 support to TR1 in <stdint.h>... " >&6; }
20714 if ${glibcxx_cv_c99_stdint_tr1+:} false; then :
20715 $as_echo_n "(cached) " >&6
20716 else
20718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20719 /* end confdefs.h. */
20720 #define __STDC_LIMIT_MACROS
20721 #define __STDC_CONSTANT_MACROS
20722 #include <stdint.h>
20724 main ()
20726 typedef int8_t my_int8_t;
20727 my_int8_t i8 = INT8_MIN;
20728 i8 = INT8_MAX;
20729 typedef int16_t my_int16_t;
20730 my_int16_t i16 = INT16_MIN;
20731 i16 = INT16_MAX;
20732 typedef int32_t my_int32_t;
20733 my_int32_t i32 = INT32_MIN;
20734 i32 = INT32_MAX;
20735 typedef int64_t my_int64_t;
20736 my_int64_t i64 = INT64_MIN;
20737 i64 = INT64_MAX;
20738 typedef int_fast8_t my_int_fast8_t;
20739 my_int_fast8_t if8 = INT_FAST8_MIN;
20740 if8 = INT_FAST8_MAX;
20741 typedef int_fast16_t my_int_fast16_t;
20742 my_int_fast16_t if16 = INT_FAST16_MIN;
20743 if16 = INT_FAST16_MAX;
20744 typedef int_fast32_t my_int_fast32_t;
20745 my_int_fast32_t if32 = INT_FAST32_MIN;
20746 if32 = INT_FAST32_MAX;
20747 typedef int_fast64_t my_int_fast64_t;
20748 my_int_fast64_t if64 = INT_FAST64_MIN;
20749 if64 = INT_FAST64_MAX;
20750 typedef int_least8_t my_int_least8_t;
20751 my_int_least8_t il8 = INT_LEAST8_MIN;
20752 il8 = INT_LEAST8_MAX;
20753 typedef int_least16_t my_int_least16_t;
20754 my_int_least16_t il16 = INT_LEAST16_MIN;
20755 il16 = INT_LEAST16_MAX;
20756 typedef int_least32_t my_int_least32_t;
20757 my_int_least32_t il32 = INT_LEAST32_MIN;
20758 il32 = INT_LEAST32_MAX;
20759 typedef int_least64_t my_int_least64_t;
20760 my_int_least64_t il64 = INT_LEAST64_MIN;
20761 il64 = INT_LEAST64_MAX;
20762 typedef intmax_t my_intmax_t;
20763 my_intmax_t im = INTMAX_MAX;
20764 im = INTMAX_MIN;
20765 typedef intptr_t my_intptr_t;
20766 my_intptr_t ip = INTPTR_MAX;
20767 ip = INTPTR_MIN;
20768 typedef uint8_t my_uint8_t;
20769 my_uint8_t ui8 = UINT8_MAX;
20770 ui8 = UINT8_MAX;
20771 typedef uint16_t my_uint16_t;
20772 my_uint16_t ui16 = UINT16_MAX;
20773 ui16 = UINT16_MAX;
20774 typedef uint32_t my_uint32_t;
20775 my_uint32_t ui32 = UINT32_MAX;
20776 ui32 = UINT32_MAX;
20777 typedef uint64_t my_uint64_t;
20778 my_uint64_t ui64 = UINT64_MAX;
20779 ui64 = UINT64_MAX;
20780 typedef uint_fast8_t my_uint_fast8_t;
20781 my_uint_fast8_t uif8 = UINT_FAST8_MAX;
20782 uif8 = UINT_FAST8_MAX;
20783 typedef uint_fast16_t my_uint_fast16_t;
20784 my_uint_fast16_t uif16 = UINT_FAST16_MAX;
20785 uif16 = UINT_FAST16_MAX;
20786 typedef uint_fast32_t my_uint_fast32_t;
20787 my_uint_fast32_t uif32 = UINT_FAST32_MAX;
20788 uif32 = UINT_FAST32_MAX;
20789 typedef uint_fast64_t my_uint_fast64_t;
20790 my_uint_fast64_t uif64 = UINT_FAST64_MAX;
20791 uif64 = UINT_FAST64_MAX;
20792 typedef uint_least8_t my_uint_least8_t;
20793 my_uint_least8_t uil8 = UINT_LEAST8_MAX;
20794 uil8 = UINT_LEAST8_MAX;
20795 typedef uint_least16_t my_uint_least16_t;
20796 my_uint_least16_t uil16 = UINT_LEAST16_MAX;
20797 uil16 = UINT_LEAST16_MAX;
20798 typedef uint_least32_t my_uint_least32_t;
20799 my_uint_least32_t uil32 = UINT_LEAST32_MAX;
20800 uil32 = UINT_LEAST32_MAX;
20801 typedef uint_least64_t my_uint_least64_t;
20802 my_uint_least64_t uil64 = UINT_LEAST64_MAX;
20803 uil64 = UINT_LEAST64_MAX;
20804 typedef uintmax_t my_uintmax_t;
20805 my_uintmax_t uim = UINTMAX_MAX;
20806 uim = UINTMAX_MAX;
20807 typedef uintptr_t my_uintptr_t;
20808 my_uintptr_t uip = UINTPTR_MAX;
20809 uip = UINTPTR_MAX;
20812 return 0;
20814 _ACEOF
20815 if ac_fn_cxx_try_compile "$LINENO"; then :
20816 glibcxx_cv_c99_stdint_tr1=yes
20817 else
20818 glibcxx_cv_c99_stdint_tr1=no
20820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdint_tr1" >&5
20824 $as_echo "$glibcxx_cv_c99_stdint_tr1" >&6; }
20825 if test x"$glibcxx_cv_c99_stdint_tr1" = x"yes"; then
20827 $as_echo "#define _GLIBCXX_USE_C99_STDINT_TR1 1" >>confdefs.h
20831 # Check for the existence of <math.h> functions.
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <math.h>" >&5
20833 $as_echo_n "checking for ISO C99 support to TR1 in <math.h>... " >&6; }
20834 if ${glibcxx_cv_c99_math_tr1+:} false; then :
20835 $as_echo_n "(cached) " >&6
20836 else
20838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20839 /* end confdefs.h. */
20840 #include <math.h>
20842 main ()
20844 typedef double_t my_double_t;
20845 typedef float_t my_float_t;
20846 acosh(0.0);
20847 acoshf(0.0f);
20848 acoshl(0.0l);
20849 asinh(0.0);
20850 asinhf(0.0f);
20851 asinhl(0.0l);
20852 atanh(0.0);
20853 atanhf(0.0f);
20854 atanhl(0.0l);
20855 cbrt(0.0);
20856 cbrtf(0.0f);
20857 cbrtl(0.0l);
20858 copysign(0.0, 0.0);
20859 copysignf(0.0f, 0.0f);
20860 copysignl(0.0l, 0.0l);
20861 erf(0.0);
20862 erff(0.0f);
20863 erfl(0.0l);
20864 erfc(0.0);
20865 erfcf(0.0f);
20866 erfcl(0.0l);
20867 exp2(0.0);
20868 exp2f(0.0f);
20869 exp2l(0.0l);
20870 expm1(0.0);
20871 expm1f(0.0f);
20872 expm1l(0.0l);
20873 fdim(0.0, 0.0);
20874 fdimf(0.0f, 0.0f);
20875 fdiml(0.0l, 0.0l);
20876 fma(0.0, 0.0, 0.0);
20877 fmaf(0.0f, 0.0f, 0.0f);
20878 fmal(0.0l, 0.0l, 0.0l);
20879 fmax(0.0, 0.0);
20880 fmaxf(0.0f, 0.0f);
20881 fmaxl(0.0l, 0.0l);
20882 fmin(0.0, 0.0);
20883 fminf(0.0f, 0.0f);
20884 fminl(0.0l, 0.0l);
20885 hypot(0.0, 0.0);
20886 hypotf(0.0f, 0.0f);
20887 hypotl(0.0l, 0.0l);
20888 ilogb(0.0);
20889 ilogbf(0.0f);
20890 ilogbl(0.0l);
20891 lgamma(0.0);
20892 lgammaf(0.0f);
20893 lgammal(0.0l);
20894 #ifndef __APPLE__ /* see below */
20895 llrint(0.0);
20896 llrintf(0.0f);
20897 llrintl(0.0l);
20898 llround(0.0);
20899 llroundf(0.0f);
20900 llroundl(0.0l);
20901 #endif
20902 log1p(0.0);
20903 log1pf(0.0f);
20904 log1pl(0.0l);
20905 log2(0.0);
20906 log2f(0.0f);
20907 log2l(0.0l);
20908 logb(0.0);
20909 logbf(0.0f);
20910 logbl(0.0l);
20911 lrint(0.0);
20912 lrintf(0.0f);
20913 lrintl(0.0l);
20914 lround(0.0);
20915 lroundf(0.0f);
20916 lroundl(0.0l);
20917 nan("");
20918 nanf("");
20919 nanl("");
20920 nearbyint(0.0);
20921 nearbyintf(0.0f);
20922 nearbyintl(0.0l);
20923 nextafter(0.0, 0.0);
20924 nextafterf(0.0f, 0.0f);
20925 nextafterl(0.0l, 0.0l);
20926 nexttoward(0.0, 0.0);
20927 nexttowardf(0.0f, 0.0f);
20928 nexttowardl(0.0l, 0.0l);
20929 remainder(0.0, 0.0);
20930 remainderf(0.0f, 0.0f);
20931 remainderl(0.0l, 0.0l);
20932 remquo(0.0, 0.0, 0);
20933 remquof(0.0f, 0.0f, 0);
20934 remquol(0.0l, 0.0l, 0);
20935 rint(0.0);
20936 rintf(0.0f);
20937 rintl(0.0l);
20938 round(0.0);
20939 roundf(0.0f);
20940 roundl(0.0l);
20941 scalbln(0.0, 0l);
20942 scalblnf(0.0f, 0l);
20943 scalblnl(0.0l, 0l);
20944 scalbn(0.0, 0);
20945 scalbnf(0.0f, 0);
20946 scalbnl(0.0l, 0);
20947 tgamma(0.0);
20948 tgammaf(0.0f);
20949 tgammal(0.0l);
20950 trunc(0.0);
20951 truncf(0.0f);
20952 truncl(0.0l);
20955 return 0;
20957 _ACEOF
20958 if ac_fn_cxx_try_compile "$LINENO"; then :
20959 glibcxx_cv_c99_math_tr1=yes
20960 else
20961 glibcxx_cv_c99_math_tr1=no
20963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_math_tr1" >&5
20967 $as_echo "$glibcxx_cv_c99_math_tr1" >&6; }
20968 if test x"$glibcxx_cv_c99_math_tr1" = x"yes"; then
20970 $as_echo "#define _GLIBCXX_USE_C99_MATH_TR1 1" >>confdefs.h
20974 # Check for the existence of <inttypes.h> functions (NB: doesn't make
20975 # sense if the glibcxx_cv_c99_stdint_tr1 check fails, per C99, 7.8/1).
20976 ac_c99_inttypes_tr1=no;
20977 if test x"$glibcxx_cv_c99_stdint_tr1" = x"yes"; then
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <inttypes.h>" >&5
20979 $as_echo_n "checking for ISO C99 support to TR1 in <inttypes.h>... " >&6; }
20980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20981 /* end confdefs.h. */
20982 #include <inttypes.h>
20984 main ()
20986 intmax_t i, numer, denom, base;
20987 const char* s;
20988 char** endptr;
20989 intmax_t ret = imaxabs(i);
20990 imaxdiv_t dret = imaxdiv(numer, denom);
20991 ret = strtoimax(s, endptr, base);
20992 uintmax_t uret = strtoumax(s, endptr, base);
20995 return 0;
20997 _ACEOF
20998 if ac_fn_cxx_try_compile "$LINENO"; then :
20999 ac_c99_inttypes_tr1=yes
21000 else
21001 ac_c99_inttypes_tr1=no
21003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_inttypes_tr1" >&5
21005 $as_echo "$ac_c99_inttypes_tr1" >&6; }
21007 if test x"$ac_c99_inttypes_tr1" = x"yes"; then
21009 $as_echo "#define _GLIBCXX_USE_C99_INTTYPES_TR1 1" >>confdefs.h
21013 # Check for the existence of wchar_t <inttypes.h> functions (NB: doesn't
21014 # make sense if the glibcxx_cv_c99_stdint_tr1 check fails, per C99, 7.8/1).
21015 ac_c99_inttypes_wchar_t_tr1=no;
21016 if test x"$glibcxx_cv_c99_stdint_tr1" = x"yes"; then
21017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t ISO C99 support to TR1 in <inttypes.h>" >&5
21018 $as_echo_n "checking for wchar_t ISO C99 support to TR1 in <inttypes.h>... " >&6; }
21019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21020 /* end confdefs.h. */
21021 #include <inttypes.h>
21023 main ()
21025 intmax_t base;
21026 const wchar_t* s;
21027 wchar_t** endptr;
21028 intmax_t ret = wcstoimax(s, endptr, base);
21029 uintmax_t uret = wcstoumax(s, endptr, base);
21032 return 0;
21034 _ACEOF
21035 if ac_fn_cxx_try_compile "$LINENO"; then :
21036 ac_c99_inttypes_wchar_t_tr1=yes
21037 else
21038 ac_c99_inttypes_wchar_t_tr1=no
21040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_inttypes_wchar_t_tr1" >&5
21042 $as_echo "$ac_c99_inttypes_wchar_t_tr1" >&6; }
21044 if test x"$ac_c99_inttypes_wchar_t_tr1" = x"yes"; then
21046 $as_echo "#define _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1 1" >>confdefs.h
21050 # Check for the existence of the <stdbool.h> header.
21051 for ac_header in stdbool.h
21052 do :
21053 ac_fn_cxx_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
21054 if test "x$ac_cv_header_stdbool_h" = xyes; then :
21055 cat >>confdefs.h <<_ACEOF
21056 #define HAVE_STDBOOL_H 1
21057 _ACEOF
21061 done
21064 # Check for the existence of the <stdalign.h> header.
21065 for ac_header in stdalign.h
21066 do :
21067 ac_fn_cxx_check_header_mongrel "$LINENO" "stdalign.h" "ac_cv_header_stdalign_h" "$ac_includes_default"
21068 if test "x$ac_cv_header_stdalign_h" = xyes; then :
21069 cat >>confdefs.h <<_ACEOF
21070 #define HAVE_STDALIGN_H 1
21071 _ACEOF
21075 done
21078 CXXFLAGS="$ac_save_CXXFLAGS"
21079 ac_ext=c
21080 ac_cpp='$CPP $CPPFLAGS'
21081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21087 # For the EOF, SEEK_CUR, and SEEK_END integer constants.
21090 if test "$is_hosted" = yes; then
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the value of EOF" >&5
21092 $as_echo_n "checking for the value of EOF... " >&6; }
21093 if ${glibcxx_cv_stdio_eof+:} false; then :
21094 $as_echo_n "(cached) " >&6
21095 else
21097 if ac_fn_c_compute_int "$LINENO" "EOF" "glibcxx_cv_stdio_eof" "#include <stdio.h>"; then :
21099 else
21100 as_fn_error $? "computing EOF failed" "$LINENO" 5
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_stdio_eof" >&5
21106 $as_echo "$glibcxx_cv_stdio_eof" >&6; }
21108 cat >>confdefs.h <<_ACEOF
21109 #define _GLIBCXX_STDIO_EOF $glibcxx_cv_stdio_eof
21110 _ACEOF
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the value of SEEK_CUR" >&5
21114 $as_echo_n "checking for the value of SEEK_CUR... " >&6; }
21115 if ${glibcxx_cv_stdio_seek_cur+:} false; then :
21116 $as_echo_n "(cached) " >&6
21117 else
21119 if ac_fn_c_compute_int "$LINENO" "SEEK_CUR" "glibcxx_cv_stdio_seek_cur" "#include <stdio.h>"; then :
21121 else
21122 as_fn_error $? "computing SEEK_CUR failed" "$LINENO" 5
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_stdio_seek_cur" >&5
21128 $as_echo "$glibcxx_cv_stdio_seek_cur" >&6; }
21130 cat >>confdefs.h <<_ACEOF
21131 #define _GLIBCXX_STDIO_SEEK_CUR $glibcxx_cv_stdio_seek_cur
21132 _ACEOF
21135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the value of SEEK_END" >&5
21136 $as_echo_n "checking for the value of SEEK_END... " >&6; }
21137 if ${glibcxx_cv_stdio_seek_end+:} false; then :
21138 $as_echo_n "(cached) " >&6
21139 else
21141 if ac_fn_c_compute_int "$LINENO" "SEEK_END" "glibcxx_cv_stdio_seek_end" "#include <stdio.h>"; then :
21143 else
21144 as_fn_error $? "computing SEEK_END failed" "$LINENO" 5
21149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_stdio_seek_end" >&5
21150 $as_echo "$glibcxx_cv_stdio_seek_end" >&6; }
21152 cat >>confdefs.h <<_ACEOF
21153 #define _GLIBCXX_STDIO_SEEK_END $glibcxx_cv_stdio_seek_end
21154 _ACEOF
21159 # For gettimeofday support.
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday" >&5
21163 $as_echo_n "checking for gettimeofday... " >&6; }
21166 ac_ext=cpp
21167 ac_cpp='$CXXCPP $CPPFLAGS'
21168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21172 ac_save_CXXFLAGS="$CXXFLAGS"
21173 CXXFLAGS="$CXXFLAGS -fno-exceptions"
21175 ac_has_gettimeofday=no;
21176 for ac_header in sys/time.h
21177 do :
21178 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
21179 if test "x$ac_cv_header_sys_time_h" = xyes; then :
21180 cat >>confdefs.h <<_ACEOF
21181 #define HAVE_SYS_TIME_H 1
21182 _ACEOF
21183 ac_has_sys_time_h=yes
21184 else
21185 ac_has_sys_time_h=no
21188 done
21190 if test x"$ac_has_sys_time_h" = x"yes"; then
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday" >&5
21192 $as_echo_n "checking for gettimeofday... " >&6; }
21193 if test x$gcc_no_link = xyes; then
21194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21195 /* end confdefs.h. */
21196 #include <sys/time.h>
21198 main ()
21200 timeval tv; gettimeofday(&tv, 0);
21202 return 0;
21204 _ACEOF
21205 if ac_fn_cxx_try_compile "$LINENO"; then :
21206 ac_has_gettimeofday=yes
21207 else
21208 ac_has_gettimeofday=no
21210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21211 else
21212 if test x$gcc_no_link = xyes; then
21213 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21216 /* end confdefs.h. */
21217 #include <sys/time.h>
21219 main ()
21221 timeval tv; gettimeofday(&tv, 0);
21223 return 0;
21225 _ACEOF
21226 if ac_fn_cxx_try_link "$LINENO"; then :
21227 ac_has_gettimeofday=yes
21228 else
21229 ac_has_gettimeofday=no
21231 rm -f core conftest.err conftest.$ac_objext \
21232 conftest$ac_exeext conftest.$ac_ext
21235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_gettimeofday" >&5
21236 $as_echo "$ac_has_gettimeofday" >&6; }
21239 if test x"$ac_has_gettimeofday" = x"yes"; then
21241 $as_echo "#define _GLIBCXX_USE_GETTIMEOFDAY 1" >>confdefs.h
21245 CXXFLAGS="$ac_save_CXXFLAGS"
21246 ac_ext=c
21247 ac_cpp='$CPP $CPPFLAGS'
21248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21254 # For clock_gettime, nanosleep and sched_yield support.
21257 # Check whether --enable-libstdcxx-time was given.
21258 if test "${enable_libstdcxx_time+set}" = set; then :
21259 enableval=$enable_libstdcxx_time;
21260 case "$enableval" in
21261 yes|no|rt) ;;
21262 *) as_fn_error $? "Unknown argument to enable/disable libstdcxx-time" "$LINENO" 5 ;;
21263 esac
21265 else
21266 enable_libstdcxx_time=auto
21272 ac_ext=cpp
21273 ac_cpp='$CXXCPP $CPPFLAGS'
21274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21278 ac_save_CXXFLAGS="$CXXFLAGS"
21279 CXXFLAGS="$CXXFLAGS -fno-exceptions"
21280 ac_save_LIBS="$LIBS"
21282 ac_has_clock_monotonic=no
21283 ac_has_clock_realtime=no
21284 ac_has_nanosleep=no
21285 ac_has_sched_yield=no
21287 if test x"$enable_libstdcxx_time" = x"auto"; then
21289 case "${target_os}" in
21290 cygwin*)
21291 ac_has_nanosleep=yes
21293 mingw*)
21294 ac_has_win32_sleep=yes
21295 ac_has_sched_yield=yes
21297 darwin*)
21298 ac_has_nanosleep=yes
21299 ac_has_sched_yield=yes
21301 # VxWorks has nanosleep as soon as the kernel is configured with
21302 # INCLUDE_POSIX_TIMERS, which is normally/most-often the case.
21303 vxworks*)
21304 ac_has_nanosleep=yes
21306 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
21307 # Don't use link test for freestanding library, in case gcc_no_link=yes
21308 if test x"$is_hosted" = xyes; then
21309 # Versions of glibc before 2.17 needed -lrt for clock_gettime.
21310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21311 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21312 if ${ac_cv_search_clock_gettime+:} false; then :
21313 $as_echo_n "(cached) " >&6
21314 else
21315 ac_func_search_save_LIBS=$LIBS
21316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21317 /* end confdefs.h. */
21319 /* Override any GCC internal prototype to avoid an error.
21320 Use char because int might match the return type of a GCC
21321 builtin and then its argument prototype would still apply. */
21322 #ifdef __cplusplus
21323 extern "C"
21324 #endif
21325 char clock_gettime ();
21327 main ()
21329 return clock_gettime ();
21331 return 0;
21333 _ACEOF
21334 for ac_lib in '' rt; do
21335 if test -z "$ac_lib"; then
21336 ac_res="none required"
21337 else
21338 ac_res=-l$ac_lib
21339 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21341 if test x$gcc_no_link = xyes; then
21342 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21344 if ac_fn_cxx_try_link "$LINENO"; then :
21345 ac_cv_search_clock_gettime=$ac_res
21347 rm -f core conftest.err conftest.$ac_objext \
21348 conftest$ac_exeext
21349 if ${ac_cv_search_clock_gettime+:} false; then :
21350 break
21352 done
21353 if ${ac_cv_search_clock_gettime+:} false; then :
21355 else
21356 ac_cv_search_clock_gettime=no
21358 rm conftest.$ac_ext
21359 LIBS=$ac_func_search_save_LIBS
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21362 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21363 ac_res=$ac_cv_search_clock_gettime
21364 if test "$ac_res" != no; then :
21365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21369 if test x"$ac_cv_search_clock_gettime" = x"none required"; then
21370 ac_has_clock_monotonic=yes
21371 ac_has_clock_realtime=yes
21374 ac_has_nanosleep=yes
21375 ac_has_sched_yield=yes
21377 freebsd*|netbsd*|dragonfly*|rtems*)
21378 ac_has_clock_monotonic=yes
21379 ac_has_clock_realtime=yes
21380 ac_has_nanosleep=yes
21381 ac_has_sched_yield=yes
21383 openbsd*)
21384 ac_has_clock_monotonic=yes
21385 ac_has_clock_realtime=yes
21386 ac_has_nanosleep=yes
21388 solaris*)
21389 ac_has_clock_monotonic=yes
21390 ac_has_clock_realtime=yes
21391 ac_has_nanosleep=yes
21392 ac_has_sched_yield=yes
21394 uclinux*)
21395 ac_has_nanosleep=yes
21396 ac_has_sched_yield=yes
21397 esac
21399 elif test x"$enable_libstdcxx_time" != x"no"; then
21401 if test x"$enable_libstdcxx_time" = x"rt"; then
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21403 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21404 if ${ac_cv_search_clock_gettime+:} false; then :
21405 $as_echo_n "(cached) " >&6
21406 else
21407 ac_func_search_save_LIBS=$LIBS
21408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21409 /* end confdefs.h. */
21411 /* Override any GCC internal prototype to avoid an error.
21412 Use char because int might match the return type of a GCC
21413 builtin and then its argument prototype would still apply. */
21414 #ifdef __cplusplus
21415 extern "C"
21416 #endif
21417 char clock_gettime ();
21419 main ()
21421 return clock_gettime ();
21423 return 0;
21425 _ACEOF
21426 for ac_lib in '' rt; do
21427 if test -z "$ac_lib"; then
21428 ac_res="none required"
21429 else
21430 ac_res=-l$ac_lib
21431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21433 if test x$gcc_no_link = xyes; then
21434 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21436 if ac_fn_cxx_try_link "$LINENO"; then :
21437 ac_cv_search_clock_gettime=$ac_res
21439 rm -f core conftest.err conftest.$ac_objext \
21440 conftest$ac_exeext
21441 if ${ac_cv_search_clock_gettime+:} false; then :
21442 break
21444 done
21445 if ${ac_cv_search_clock_gettime+:} false; then :
21447 else
21448 ac_cv_search_clock_gettime=no
21450 rm conftest.$ac_ext
21451 LIBS=$ac_func_search_save_LIBS
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21454 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21455 ac_res=$ac_cv_search_clock_gettime
21456 if test "$ac_res" != no; then :
21457 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21462 $as_echo_n "checking for library containing nanosleep... " >&6; }
21463 if ${ac_cv_search_nanosleep+:} false; then :
21464 $as_echo_n "(cached) " >&6
21465 else
21466 ac_func_search_save_LIBS=$LIBS
21467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21468 /* end confdefs.h. */
21470 /* Override any GCC internal prototype to avoid an error.
21471 Use char because int might match the return type of a GCC
21472 builtin and then its argument prototype would still apply. */
21473 #ifdef __cplusplus
21474 extern "C"
21475 #endif
21476 char nanosleep ();
21478 main ()
21480 return nanosleep ();
21482 return 0;
21484 _ACEOF
21485 for ac_lib in '' rt; do
21486 if test -z "$ac_lib"; then
21487 ac_res="none required"
21488 else
21489 ac_res=-l$ac_lib
21490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21492 if test x$gcc_no_link = xyes; then
21493 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21495 if ac_fn_cxx_try_link "$LINENO"; then :
21496 ac_cv_search_nanosleep=$ac_res
21498 rm -f core conftest.err conftest.$ac_objext \
21499 conftest$ac_exeext
21500 if ${ac_cv_search_nanosleep+:} false; then :
21501 break
21503 done
21504 if ${ac_cv_search_nanosleep+:} false; then :
21506 else
21507 ac_cv_search_nanosleep=no
21509 rm conftest.$ac_ext
21510 LIBS=$ac_func_search_save_LIBS
21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21513 $as_echo "$ac_cv_search_nanosleep" >&6; }
21514 ac_res=$ac_cv_search_nanosleep
21515 if test "$ac_res" != no; then :
21516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21520 else
21521 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
21522 if test "x$ac_cv_func_clock_gettime" = xyes; then :
21526 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
21527 if test "x$ac_cv_func_nanosleep" = xyes; then :
21533 case "$ac_cv_search_clock_gettime" in
21534 -l*) GLIBCXX_LIBS=$ac_cv_search_clock_gettime
21536 esac
21537 case "$ac_cv_search_nanosleep" in
21538 -l*) GLIBCXX_LIBS="$GLIBCXX_LIBS $ac_cv_search_nanosleep"
21540 esac
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
21543 $as_echo_n "checking for library containing sched_yield... " >&6; }
21544 if ${ac_cv_search_sched_yield+:} false; then :
21545 $as_echo_n "(cached) " >&6
21546 else
21547 ac_func_search_save_LIBS=$LIBS
21548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21549 /* end confdefs.h. */
21551 /* Override any GCC internal prototype to avoid an error.
21552 Use char because int might match the return type of a GCC
21553 builtin and then its argument prototype would still apply. */
21554 #ifdef __cplusplus
21555 extern "C"
21556 #endif
21557 char sched_yield ();
21559 main ()
21561 return sched_yield ();
21563 return 0;
21565 _ACEOF
21566 for ac_lib in '' rt; do
21567 if test -z "$ac_lib"; then
21568 ac_res="none required"
21569 else
21570 ac_res=-l$ac_lib
21571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21573 if test x$gcc_no_link = xyes; then
21574 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21576 if ac_fn_cxx_try_link "$LINENO"; then :
21577 ac_cv_search_sched_yield=$ac_res
21579 rm -f core conftest.err conftest.$ac_objext \
21580 conftest$ac_exeext
21581 if ${ac_cv_search_sched_yield+:} false; then :
21582 break
21584 done
21585 if ${ac_cv_search_sched_yield+:} false; then :
21587 else
21588 ac_cv_search_sched_yield=no
21590 rm conftest.$ac_ext
21591 LIBS=$ac_func_search_save_LIBS
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
21594 $as_echo "$ac_cv_search_sched_yield" >&6; }
21595 ac_res=$ac_cv_search_sched_yield
21596 if test "$ac_res" != no; then :
21597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21602 case "$ac_cv_search_sched_yield" in
21603 -lrt*)
21604 if test x"$enable_libstdcxx_time" = x"rt"; then
21605 GLIBCXX_LIBS="$GLIBCXX_LIBS $ac_cv_search_sched_yield"
21606 ac_has_sched_yield=yes
21610 ac_has_sched_yield=yes
21612 esac
21614 for ac_header in unistd.h
21615 do :
21616 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
21617 if test "x$ac_cv_header_unistd_h" = xyes; then :
21618 cat >>confdefs.h <<_ACEOF
21619 #define HAVE_UNISTD_H 1
21620 _ACEOF
21621 ac_has_unistd_h=yes
21622 else
21623 ac_has_unistd_h=no
21626 done
21629 if test x"$ac_has_unistd_h" = x"yes"; then
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock" >&5
21631 $as_echo_n "checking for monotonic clock... " >&6; }
21632 if test x$gcc_no_link = xyes; then
21633 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21636 /* end confdefs.h. */
21637 #include <unistd.h>
21638 #include <time.h>
21641 main ()
21643 #if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK)
21644 timespec tp;
21645 #endif
21646 clock_gettime(CLOCK_MONOTONIC, &tp);
21649 return 0;
21651 _ACEOF
21652 if ac_fn_cxx_try_link "$LINENO"; then :
21653 ac_has_clock_monotonic=yes
21654 else
21655 ac_has_clock_monotonic=no
21657 rm -f core conftest.err conftest.$ac_objext \
21658 conftest$ac_exeext conftest.$ac_ext
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_monotonic" >&5
21661 $as_echo "$ac_has_clock_monotonic" >&6; }
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for realtime clock" >&5
21664 $as_echo_n "checking for realtime clock... " >&6; }
21665 if test x$gcc_no_link = xyes; then
21666 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21669 /* end confdefs.h. */
21670 #include <unistd.h>
21671 #include <time.h>
21674 main ()
21676 #if _POSIX_TIMERS > 0
21677 timespec tp;
21678 #endif
21679 clock_gettime(CLOCK_REALTIME, &tp);
21682 return 0;
21684 _ACEOF
21685 if ac_fn_cxx_try_link "$LINENO"; then :
21686 ac_has_clock_realtime=yes
21687 else
21688 ac_has_clock_realtime=no
21690 rm -f core conftest.err conftest.$ac_objext \
21691 conftest$ac_exeext conftest.$ac_ext
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_realtime" >&5
21694 $as_echo "$ac_has_clock_realtime" >&6; }
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep" >&5
21697 $as_echo_n "checking for nanosleep... " >&6; }
21698 if test x$gcc_no_link = xyes; then
21699 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21702 /* end confdefs.h. */
21703 #include <unistd.h>
21704 #include <time.h>
21707 main ()
21709 #if _POSIX_TIMERS > 0
21710 timespec tp;
21711 #endif
21712 nanosleep(&tp, 0);
21715 return 0;
21717 _ACEOF
21718 if ac_fn_cxx_try_link "$LINENO"; then :
21719 ac_has_nanosleep=yes
21720 else
21721 ac_has_nanosleep=no
21723 rm -f core conftest.err conftest.$ac_objext \
21724 conftest$ac_exeext conftest.$ac_ext
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_nanosleep" >&5
21727 $as_echo "$ac_has_nanosleep" >&6; }
21731 if test x"$ac_has_clock_monotonic" != x"yes"; then
21732 case ${target_os} in
21733 linux* | uclinux*)
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
21735 $as_echo_n "checking for clock_gettime syscall... " >&6; }
21736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21737 /* end confdefs.h. */
21738 #include <unistd.h>
21739 #include <time.h>
21740 #include <sys/syscall.h>
21743 main ()
21745 #if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK)
21746 timespec tp;
21747 #endif
21748 syscall(SYS_clock_gettime, CLOCK_MONOTONIC, &tp);
21749 syscall(SYS_clock_gettime, CLOCK_REALTIME, &tp);
21752 return 0;
21754 _ACEOF
21755 if ac_fn_cxx_try_compile "$LINENO"; then :
21756 ac_has_clock_gettime_syscall=yes
21757 else
21758 ac_has_clock_gettime_syscall=no
21760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_gettime_syscall" >&5
21762 $as_echo "$ac_has_clock_gettime_syscall" >&6; }
21763 if test x"$ac_has_clock_gettime_syscall" = x"yes"; then
21765 $as_echo "#define _GLIBCXX_USE_CLOCK_GETTIME_SYSCALL 1" >>confdefs.h
21767 ac_has_clock_monotonic=yes
21768 ac_has_clock_realtime=yes
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec that matches syscall" >&5
21770 $as_echo_n "checking for struct timespec that matches syscall... " >&6; }
21771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21772 /* end confdefs.h. */
21773 #include <time.h>
21774 #include <sys/syscall.h>
21777 main ()
21779 #ifdef SYS_clock_gettime64
21780 #if SYS_clock_gettime64 != SYS_clock_gettime
21781 // We need to use SYS_clock_gettime and libc appears to
21782 // also know about the SYS_clock_gettime64 syscall.
21783 // Check that userspace doesn't use time64 version of timespec.
21784 static_assert(sizeof(timespec::tv_sec) == sizeof(long),
21785 "struct timespec must be compatible with SYS_clock_gettime");
21786 #endif
21787 #endif
21790 return 0;
21792 _ACEOF
21793 if ac_fn_cxx_try_compile "$LINENO"; then :
21794 ac_timespec_matches_syscall=yes
21795 else
21796 ac_timespec_matches_syscall=no
21798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_timespec_matches_syscall" >&5
21800 $as_echo "$ac_timespec_matches_syscall" >&6; }
21801 if test x"$ac_timespec_matches_syscall" = no; then
21802 as_fn_error $? "struct timespec is not compatible with SYS_clock_gettime, please report a bug to http://gcc.gnu.org/bugzilla" "$LINENO" 5
21804 fi;;
21805 esac
21808 if test x"$ac_has_clock_monotonic" = x"yes"; then
21810 $as_echo "#define _GLIBCXX_USE_CLOCK_MONOTONIC 1" >>confdefs.h
21814 if test x"$ac_has_clock_realtime" = x"yes"; then
21816 $as_echo "#define _GLIBCXX_USE_CLOCK_REALTIME 1" >>confdefs.h
21820 if test x"$ac_has_sched_yield" = x"yes"; then
21822 $as_echo "#define _GLIBCXX_USE_SCHED_YIELD 1" >>confdefs.h
21826 if test x"$ac_has_nanosleep" = x"yes"; then
21828 $as_echo "#define _GLIBCXX_USE_NANOSLEEP 1" >>confdefs.h
21830 elif test x"$ac_has_win32_sleep" = x"yes"; then
21832 $as_echo "#define _GLIBCXX_USE_WIN32_SLEEP 1" >>confdefs.h
21834 else
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sleep" >&5
21836 $as_echo_n "checking for sleep... " >&6; }
21837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21838 /* end confdefs.h. */
21839 #include <unistd.h>
21841 main ()
21843 sleep(1)
21845 return 0;
21847 _ACEOF
21848 if ac_fn_cxx_try_compile "$LINENO"; then :
21849 ac_has_sleep=yes
21850 else
21851 ac_has_sleep=no
21853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21854 if test x"$ac_has_sleep" = x"yes"; then
21856 $as_echo "#define HAVE_SLEEP 1" >>confdefs.h
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_sleep" >&5
21860 $as_echo "$ac_has_sleep" >&6; }
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usleep" >&5
21862 $as_echo_n "checking for usleep... " >&6; }
21863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21864 /* end confdefs.h. */
21865 #include <unistd.h>
21867 main ()
21869 sleep(1);
21870 usleep(100);
21872 return 0;
21874 _ACEOF
21875 if ac_fn_cxx_try_compile "$LINENO"; then :
21876 ac_has_usleep=yes
21877 else
21878 ac_has_usleep=no
21880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21881 if test x"$ac_has_usleep" = x"yes"; then
21883 $as_echo "#define HAVE_USLEEP 1" >>confdefs.h
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_usleep" >&5
21887 $as_echo "$ac_has_usleep" >&6; }
21890 if test x"$ac_has_nanosleep$ac_has_win32_sleep$ac_has_sleep" = x"nonono"; then
21892 $as_echo "#define _GLIBCXX_NO_SLEEP 1" >>confdefs.h
21898 CXXFLAGS="$ac_save_CXXFLAGS"
21899 LIBS="$ac_save_LIBS"
21900 ac_ext=c
21901 ac_cpp='$CPP $CPPFLAGS'
21902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21908 # Check for tmpnam which is obsolescent in POSIX.1-2008
21910 ac_ext=cpp
21911 ac_cpp='$CXXCPP $CPPFLAGS'
21912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21916 ac_save_CXXFLAGS="$CXXFLAGS"
21917 CXXFLAGS="$CXXFLAGS -fno-exceptions"
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tmpnam" >&5
21919 $as_echo_n "checking for tmpnam... " >&6; }
21920 if ${glibcxx_cv_TMPNAM+:} false; then :
21921 $as_echo_n "(cached) " >&6
21922 else
21923 if test x$gcc_no_link = xyes; then
21924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21925 /* end confdefs.h. */
21926 #include <stdio.h>
21928 main ()
21930 char *tmp = tmpnam(NULL);
21932 return 0;
21934 _ACEOF
21935 if ac_fn_cxx_try_compile "$LINENO"; then :
21936 glibcxx_cv_TMPNAM=yes
21937 else
21938 glibcxx_cv_TMPNAM=no
21940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21941 else
21942 if test x$gcc_no_link = xyes; then
21943 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21946 /* end confdefs.h. */
21947 #include <stdio.h>
21949 main ()
21951 char *tmp = tmpnam(NULL);
21953 return 0;
21955 _ACEOF
21956 if ac_fn_cxx_try_link "$LINENO"; then :
21957 glibcxx_cv_TMPNAM=yes
21958 else
21959 glibcxx_cv_TMPNAM=no
21961 rm -f core conftest.err conftest.$ac_objext \
21962 conftest$ac_exeext conftest.$ac_ext
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_TMPNAM" >&5
21967 $as_echo "$glibcxx_cv_TMPNAM" >&6; }
21968 if test $glibcxx_cv_TMPNAM = yes; then
21970 $as_echo "#define _GLIBCXX_USE_TMPNAM 1" >>confdefs.h
21973 CXXFLAGS="$ac_save_CXXFLAGS"
21974 ac_ext=c
21975 ac_cpp='$CPP $CPPFLAGS'
21976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21982 # For pthread_cond_clockwait
21986 ac_ext=cpp
21987 ac_cpp='$CXXCPP $CPPFLAGS'
21988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21992 ac_save_CXXFLAGS="$CXXFLAGS"
21993 CXXFLAGS="$CXXFLAGS -fno-exceptions"
21994 ac_save_LIBS="$LIBS"
21995 LIBS="$LIBS -lpthread"
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_clockwait" >&5
21998 $as_echo_n "checking for pthread_cond_clockwait... " >&6; }
21999 if ${glibcxx_cv_PTHREAD_COND_CLOCKWAIT+:} false; then :
22000 $as_echo_n "(cached) " >&6
22001 else
22003 if test x$gcc_no_link = xyes; then
22004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22005 /* end confdefs.h. */
22006 #include <pthread.h>
22008 main ()
22010 pthread_mutex_t mutex; pthread_cond_t cond; struct timespec ts; int n = pthread_cond_clockwait(&cond, &mutex, 0, &ts);
22012 return 0;
22014 _ACEOF
22015 if ac_fn_cxx_try_compile "$LINENO"; then :
22016 glibcxx_cv_PTHREAD_COND_CLOCKWAIT=yes
22017 else
22018 glibcxx_cv_PTHREAD_COND_CLOCKWAIT=no
22020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22021 else
22022 if test x$gcc_no_link = xyes; then
22023 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22026 /* end confdefs.h. */
22027 #include <pthread.h>
22029 main ()
22031 pthread_mutex_t mutex; pthread_cond_t cond; struct timespec ts; int n = pthread_cond_clockwait(&cond, &mutex, 0, &ts);
22033 return 0;
22035 _ACEOF
22036 if ac_fn_cxx_try_link "$LINENO"; then :
22037 glibcxx_cv_PTHREAD_COND_CLOCKWAIT=yes
22038 else
22039 glibcxx_cv_PTHREAD_COND_CLOCKWAIT=no
22041 rm -f core conftest.err conftest.$ac_objext \
22042 conftest$ac_exeext conftest.$ac_ext
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_PTHREAD_COND_CLOCKWAIT" >&5
22047 $as_echo "$glibcxx_cv_PTHREAD_COND_CLOCKWAIT" >&6; }
22048 if test $glibcxx_cv_PTHREAD_COND_CLOCKWAIT = yes; then
22050 $as_echo "#define _GLIBCXX_USE_PTHREAD_COND_CLOCKWAIT 1" >>confdefs.h
22054 CXXFLAGS="$ac_save_CXXFLAGS"
22055 LIBS="$ac_save_LIBS"
22056 ac_ext=c
22057 ac_cpp='$CPP $CPPFLAGS'
22058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22064 # For pthread_mutex_clocklock
22068 ac_ext=cpp
22069 ac_cpp='$CXXCPP $CPPFLAGS'
22070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22074 ac_save_CXXFLAGS="$CXXFLAGS"
22075 CXXFLAGS="$CXXFLAGS -fno-exceptions"
22076 ac_save_LIBS="$LIBS"
22077 LIBS="$LIBS -lpthread"
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_clocklock" >&5
22080 $as_echo_n "checking for pthread_mutex_clocklock... " >&6; }
22081 if ${glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK+:} false; then :
22082 $as_echo_n "(cached) " >&6
22083 else
22085 if test x$gcc_no_link = xyes; then
22086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22087 /* end confdefs.h. */
22088 #include <pthread.h>
22090 main ()
22092 pthread_mutex_t mutex; struct timespec ts; int n = pthread_mutex_clocklock(&mutex, CLOCK_REALTIME, &ts);
22094 return 0;
22096 _ACEOF
22097 if ac_fn_cxx_try_compile "$LINENO"; then :
22098 glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK=yes
22099 else
22100 glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK=no
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103 else
22104 if test x$gcc_no_link = xyes; then
22105 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22108 /* end confdefs.h. */
22109 #include <pthread.h>
22111 main ()
22113 pthread_mutex_t mutex; struct timespec ts; int n = pthread_mutex_clocklock(&mutex, CLOCK_REALTIME, &ts);
22115 return 0;
22117 _ACEOF
22118 if ac_fn_cxx_try_link "$LINENO"; then :
22119 glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK=yes
22120 else
22121 glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK=no
22123 rm -f core conftest.err conftest.$ac_objext \
22124 conftest$ac_exeext conftest.$ac_ext
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK" >&5
22129 $as_echo "$glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK" >&6; }
22130 if test $glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK = yes; then
22132 $as_echo "#define _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK (_GLIBCXX_TSAN==0)" >>confdefs.h
22136 CXXFLAGS="$ac_save_CXXFLAGS"
22137 LIBS="$ac_save_LIBS"
22138 ac_ext=c
22139 ac_cpp='$CPP $CPPFLAGS'
22140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22146 # For pthread_rwlock_clockrdlock and pthread_rwlock_clockwrlock
22150 ac_ext=cpp
22151 ac_cpp='$CXXCPP $CPPFLAGS'
22152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22156 ac_save_CXXFLAGS="$CXXFLAGS"
22157 CXXFLAGS="$CXXFLAGS -fno-exceptions"
22158 ac_save_LIBS="$LIBS"
22159 LIBS="$LIBS -lpthread"
22161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_clockrdlock, pthread_wlock_clockwrlock" >&5
22162 $as_echo_n "checking for pthread_rwlock_clockrdlock, pthread_wlock_clockwrlock... " >&6; }
22163 if ${glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK+:} false; then :
22164 $as_echo_n "(cached) " >&6
22165 else
22167 if test x$gcc_no_link = xyes; then
22168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22169 /* end confdefs.h. */
22170 #include <pthread.h>
22172 main ()
22174 pthread_rwlock_t rwl; struct timespec ts;
22175 int n = pthread_rwlock_clockrdlock(&rwl, CLOCK_REALTIME, &ts);
22176 int m = pthread_rwlock_clockwrlock(&rwl, CLOCK_REALTIME, &ts);
22178 return 0;
22180 _ACEOF
22181 if ac_fn_cxx_try_compile "$LINENO"; then :
22182 glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK=yes
22183 else
22184 glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK=no
22186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22187 else
22188 if test x$gcc_no_link = xyes; then
22189 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22192 /* end confdefs.h. */
22193 #include <pthread.h>
22195 main ()
22197 pthread_rwlock_t rwl; struct timespec ts;
22198 int n = pthread_rwlock_clockrdlock(&rwl, CLOCK_REALTIME, &ts);
22199 int m = pthread_rwlock_clockwrlock(&rwl, CLOCK_REALTIME, &ts);
22201 return 0;
22203 _ACEOF
22204 if ac_fn_cxx_try_link "$LINENO"; then :
22205 glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK=yes
22206 else
22207 glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK=no
22209 rm -f core conftest.err conftest.$ac_objext \
22210 conftest$ac_exeext conftest.$ac_ext
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK" >&5
22215 $as_echo "$glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK" >&6; }
22216 if test $glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK = yes; then
22218 $as_echo "#define _GLIBCXX_USE_PTHREAD_RWLOCK_CLOCKLOCK 1" >>confdefs.h
22222 CXXFLAGS="$ac_save_CXXFLAGS"
22223 LIBS="$ac_save_LIBS"
22224 ac_ext=c
22225 ac_cpp='$CPP $CPPFLAGS'
22226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22233 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
22234 if test "x$ac_cv_header_locale_h" = xyes; then :
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
22237 $as_echo_n "checking for LC_MESSAGES... " >&6; }
22238 if ${ac_cv_val_LC_MESSAGES+:} false; then :
22239 $as_echo_n "(cached) " >&6
22240 else
22241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22242 /* end confdefs.h. */
22243 #include <locale.h>
22245 main ()
22247 return LC_MESSAGES
22249 return 0;
22251 _ACEOF
22252 if ac_fn_c_try_compile "$LINENO"; then :
22253 ac_cv_val_LC_MESSAGES=yes
22254 else
22255 ac_cv_val_LC_MESSAGES=no
22257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_val_LC_MESSAGES" >&5
22260 $as_echo "$ac_cv_val_LC_MESSAGES" >&6; }
22261 if test $ac_cv_val_LC_MESSAGES = yes; then
22263 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
22272 # For hardware_concurrency
22273 for ac_header in sys/sysinfo.h
22274 do :
22275 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"
22276 if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then :
22277 cat >>confdefs.h <<_ACEOF
22278 #define HAVE_SYS_SYSINFO_H 1
22279 _ACEOF
22283 done
22288 ac_ext=cpp
22289 ac_cpp='$CXXCPP $CPPFLAGS'
22290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22294 ac_save_CXXFLAGS="$CXXFLAGS"
22295 CXXFLAGS="$CXXFLAGS -fno-exceptions"
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for get_nprocs" >&5
22298 $as_echo_n "checking for get_nprocs... " >&6; }
22299 if ${glibcxx_cv_GET_NPROCS+:} false; then :
22300 $as_echo_n "(cached) " >&6
22301 else
22303 if test x$gcc_no_link = xyes; then
22304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22305 /* end confdefs.h. */
22306 #include <sys/sysinfo.h>
22308 main ()
22310 int n = get_nprocs();
22312 return 0;
22314 _ACEOF
22315 if ac_fn_cxx_try_compile "$LINENO"; then :
22316 glibcxx_cv_GET_NPROCS=yes
22317 else
22318 glibcxx_cv_GET_NPROCS=no
22320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22321 else
22322 if test x$gcc_no_link = xyes; then
22323 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22326 /* end confdefs.h. */
22327 #include <sys/sysinfo.h>
22329 main ()
22331 int n = get_nprocs();
22333 return 0;
22335 _ACEOF
22336 if ac_fn_cxx_try_link "$LINENO"; then :
22337 glibcxx_cv_GET_NPROCS=yes
22338 else
22339 glibcxx_cv_GET_NPROCS=no
22341 rm -f core conftest.err conftest.$ac_objext \
22342 conftest$ac_exeext conftest.$ac_ext
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_GET_NPROCS" >&5
22347 $as_echo "$glibcxx_cv_GET_NPROCS" >&6; }
22348 if test $glibcxx_cv_GET_NPROCS = yes; then
22350 $as_echo "#define _GLIBCXX_USE_GET_NPROCS 1" >>confdefs.h
22354 CXXFLAGS="$ac_save_CXXFLAGS"
22355 ac_ext=c
22356 ac_cpp='$CPP $CPPFLAGS'
22357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22362 for ac_header in unistd.h
22363 do :
22364 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
22365 if test "x$ac_cv_header_unistd_h" = xyes; then :
22366 cat >>confdefs.h <<_ACEOF
22367 #define HAVE_UNISTD_H 1
22368 _ACEOF
22372 done
22377 ac_ext=cpp
22378 ac_cpp='$CXXCPP $CPPFLAGS'
22379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22383 ac_save_CXXFLAGS="$CXXFLAGS"
22384 CXXFLAGS="$CXXFLAGS -fno-exceptions"
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SC_NPROCESSORS_ONLN" >&5
22387 $as_echo_n "checking for _SC_NPROCESSORS_ONLN... " >&6; }
22388 if ${glibcxx_cv_SC_NPROCESSORS_ONLN+:} false; then :
22389 $as_echo_n "(cached) " >&6
22390 else
22392 if test x$gcc_no_link = xyes; then
22393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22394 /* end confdefs.h. */
22395 #include <unistd.h>
22397 main ()
22399 int n = sysconf(_SC_NPROCESSORS_ONLN);
22401 return 0;
22403 _ACEOF
22404 if ac_fn_cxx_try_compile "$LINENO"; then :
22405 glibcxx_cv_SC_NPROCESSORS_ONLN=yes
22406 else
22407 glibcxx_cv_SC_NPROCESSORS_ONLN=no
22409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22410 else
22411 if test x$gcc_no_link = xyes; then
22412 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22415 /* end confdefs.h. */
22416 #include <unistd.h>
22418 main ()
22420 int n = sysconf(_SC_NPROCESSORS_ONLN);
22422 return 0;
22424 _ACEOF
22425 if ac_fn_cxx_try_link "$LINENO"; then :
22426 glibcxx_cv_SC_NPROCESSORS_ONLN=yes
22427 else
22428 glibcxx_cv_SC_NPROCESSORS_ONLN=no
22430 rm -f core conftest.err conftest.$ac_objext \
22431 conftest$ac_exeext conftest.$ac_ext
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_SC_NPROCESSORS_ONLN" >&5
22436 $as_echo "$glibcxx_cv_SC_NPROCESSORS_ONLN" >&6; }
22437 if test $glibcxx_cv_SC_NPROCESSORS_ONLN = yes; then
22439 $as_echo "#define _GLIBCXX_USE_SC_NPROCESSORS_ONLN 1" >>confdefs.h
22443 CXXFLAGS="$ac_save_CXXFLAGS"
22444 ac_ext=c
22445 ac_cpp='$CPP $CPPFLAGS'
22446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22454 ac_ext=cpp
22455 ac_cpp='$CXXCPP $CPPFLAGS'
22456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22460 ac_save_CXXFLAGS="$CXXFLAGS"
22461 CXXFLAGS="$CXXFLAGS -fno-exceptions"
22463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SC_NPROC_ONLN" >&5
22464 $as_echo_n "checking for _SC_NPROC_ONLN... " >&6; }
22465 if ${glibcxx_cv_SC_NPROC_ONLN+:} false; then :
22466 $as_echo_n "(cached) " >&6
22467 else
22469 if test x$gcc_no_link = xyes; then
22470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22471 /* end confdefs.h. */
22472 #include <unistd.h>
22474 main ()
22476 int n = sysconf(_SC_NPROC_ONLN);
22478 return 0;
22480 _ACEOF
22481 if ac_fn_cxx_try_compile "$LINENO"; then :
22482 glibcxx_cv_SC_NPROC_ONLN=yes
22483 else
22484 glibcxx_cv_SC_NPROC_ONLN=no
22486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22487 else
22488 if test x$gcc_no_link = xyes; then
22489 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22492 /* end confdefs.h. */
22493 #include <unistd.h>
22495 main ()
22497 int n = sysconf(_SC_NPROC_ONLN);
22499 return 0;
22501 _ACEOF
22502 if ac_fn_cxx_try_link "$LINENO"; then :
22503 glibcxx_cv_SC_NPROC_ONLN=yes
22504 else
22505 glibcxx_cv_SC_NPROC_ONLN=no
22507 rm -f core conftest.err conftest.$ac_objext \
22508 conftest$ac_exeext conftest.$ac_ext
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_SC_NPROC_ONLN" >&5
22513 $as_echo "$glibcxx_cv_SC_NPROC_ONLN" >&6; }
22514 if test $glibcxx_cv_SC_NPROC_ONLN = yes; then
22516 $as_echo "#define _GLIBCXX_USE_SC_NPROC_ONLN 1" >>confdefs.h
22520 CXXFLAGS="$ac_save_CXXFLAGS"
22521 ac_ext=c
22522 ac_cpp='$CPP $CPPFLAGS'
22523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22531 ac_ext=cpp
22532 ac_cpp='$CXXCPP $CPPFLAGS'
22533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22537 ac_save_CXXFLAGS="$CXXFLAGS"
22538 CXXFLAGS="$CXXFLAGS -fno-exceptions"
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_num_processors_np" >&5
22541 $as_echo_n "checking for pthreads_num_processors_np... " >&6; }
22542 if ${glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP+:} false; then :
22543 $as_echo_n "(cached) " >&6
22544 else
22546 if test x$gcc_no_link = xyes; then
22547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22548 /* end confdefs.h. */
22549 #include <pthread.h>
22551 main ()
22553 int n = pthread_num_processors_np();
22555 return 0;
22557 _ACEOF
22558 if ac_fn_cxx_try_compile "$LINENO"; then :
22559 glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP=yes
22560 else
22561 glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP=no
22563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22564 else
22565 if test x$gcc_no_link = xyes; then
22566 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22569 /* end confdefs.h. */
22570 #include <pthread.h>
22572 main ()
22574 int n = pthread_num_processors_np();
22576 return 0;
22578 _ACEOF
22579 if ac_fn_cxx_try_link "$LINENO"; then :
22580 glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP=yes
22581 else
22582 glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP=no
22584 rm -f core conftest.err conftest.$ac_objext \
22585 conftest$ac_exeext conftest.$ac_ext
22589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP" >&5
22590 $as_echo "$glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP" >&6; }
22591 if test $glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP = yes; then
22593 $as_echo "#define _GLIBCXX_USE_PTHREADS_NUM_PROCESSORS_NP 1" >>confdefs.h
22597 CXXFLAGS="$ac_save_CXXFLAGS"
22598 ac_ext=c
22599 ac_cpp='$CPP $CPPFLAGS'
22600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22608 ac_ext=cpp
22609 ac_cpp='$CXXCPP $CPPFLAGS'
22610 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22611 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22612 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22614 ac_save_CXXFLAGS="$CXXFLAGS"
22615 CXXFLAGS="$CXXFLAGS -fno-exceptions"
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hw.ncpu sysctl" >&5
22618 $as_echo_n "checking for hw.ncpu sysctl... " >&6; }
22619 if ${glibcxx_cv_SYSCTL_HW_NCPU+:} false; then :
22620 $as_echo_n "(cached) " >&6
22621 else
22623 if test x$gcc_no_link = xyes; then
22624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22625 /* end confdefs.h. */
22627 #include <stddef.h>
22628 #include <sys/sysctl.h>
22631 main ()
22634 int count;
22635 size_t size = sizeof(count);
22636 int mib[] = { CTL_HW, HW_NCPU };
22637 sysctl(mib, 2, &count, &size, NULL, 0);
22640 return 0;
22642 _ACEOF
22643 if ac_fn_cxx_try_compile "$LINENO"; then :
22644 glibcxx_cv_SYSCTL_HW_NCPU=yes
22645 else
22646 glibcxx_cv_SYSCTL_HW_NCPU=no
22648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22649 else
22650 if test x$gcc_no_link = xyes; then
22651 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22654 /* end confdefs.h. */
22656 #include <stddef.h>
22657 #include <sys/sysctl.h>
22660 main ()
22663 int count;
22664 size_t size = sizeof(count);
22665 int mib[] = { CTL_HW, HW_NCPU };
22666 sysctl(mib, 2, &count, &size, NULL, 0);
22669 return 0;
22671 _ACEOF
22672 if ac_fn_cxx_try_link "$LINENO"; then :
22673 glibcxx_cv_SYSCTL_HW_NCPU=yes
22674 else
22675 glibcxx_cv_SYSCTL_HW_NCPU=no
22677 rm -f core conftest.err conftest.$ac_objext \
22678 conftest$ac_exeext conftest.$ac_ext
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_SYSCTL_HW_NCPU" >&5
22683 $as_echo "$glibcxx_cv_SYSCTL_HW_NCPU" >&6; }
22684 if test $glibcxx_cv_SYSCTL_HW_NCPU = yes; then
22686 $as_echo "#define _GLIBCXX_USE_SYSCTL_HW_NCPU 1" >>confdefs.h
22690 CXXFLAGS="$ac_save_CXXFLAGS"
22691 ac_ext=c
22692 ac_cpp='$CPP $CPPFLAGS'
22693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22699 # Note that this test has to be run with the C language.
22700 # Otherwise, sdt.h will try to include some headers from
22701 # libstdc++ itself.
22703 ac_ext=c
22704 ac_cpp='$CPP $CPPFLAGS'
22705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable sys/sdt.h" >&5
22710 $as_echo_n "checking for suitable sys/sdt.h... " >&6; }
22711 if ${glibcxx_cv_sys_sdt_h+:} false; then :
22712 $as_echo_n "(cached) " >&6
22713 else
22715 # Because we have to run the test in C, we use grep rather
22716 # than the compiler to check for the bug. The bug is that
22717 # were strings without trailing whitespace, causing g++
22718 # to look for operator"". The pattern searches for the fixed
22719 # output.
22720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22721 /* end confdefs.h. */
22723 #include <sys/sdt.h>
22724 int f() { STAP_PROBE(hi, bob); }
22726 _ACEOF
22727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22728 $EGREP " \",\" " >/dev/null 2>&1; then :
22729 glibcxx_cv_sys_sdt_h=yes
22730 else
22731 glibcxx_cv_sys_sdt_h=no
22733 rm -f conftest*
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sys_sdt_h" >&5
22738 $as_echo "$glibcxx_cv_sys_sdt_h" >&6; }
22739 ac_ext=c
22740 ac_cpp='$CPP $CPPFLAGS'
22741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22745 if test $glibcxx_cv_sys_sdt_h = yes; then
22747 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
22752 # Check for available headers.
22753 for ac_header in endian.h execinfo.h float.h fp.h ieeefp.h inttypes.h \
22754 locale.h machine/endian.h machine/param.h nan.h stdint.h stdlib.h string.h \
22755 strings.h sys/ipc.h sys/isa_defs.h sys/machine.h sys/param.h \
22756 sys/resource.h sys/sem.h sys/stat.h sys/time.h sys/types.h unistd.h \
22757 wchar.h wctype.h linux/types.h
22758 do :
22759 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22760 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22761 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22762 cat >>confdefs.h <<_ACEOF
22763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22764 _ACEOF
22768 done
22771 for ac_header in linux/random.h
22772 do :
22773 ac_fn_c_check_header_compile "$LINENO" "linux/random.h" "ac_cv_header_linux_random_h" "#ifdef HAVE_LINUX_TYPES_H
22774 # include <linux/types.h>
22775 #endif
22778 if test "x$ac_cv_header_linux_random_h" = xyes; then :
22779 cat >>confdefs.h <<_ACEOF
22780 #define HAVE_LINUX_RANDOM_H 1
22781 _ACEOF
22785 done
22788 for ac_header in xlocale.h
22789 do :
22790 ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
22791 if test "x$ac_cv_header_xlocale_h" = xyes; then :
22792 cat >>confdefs.h <<_ACEOF
22793 #define HAVE_XLOCALE_H 1
22794 _ACEOF
22798 done
22801 # Only do link tests if native. Else, hardcode.
22802 if $GLIBCXX_IS_NATIVE; then
22804 # We can do more elaborate tests that assume a working linker.
22805 CANADIAN=no
22809 # Check whether --with-gnu-ld was given.
22810 if test "${with_gnu_ld+set}" = set; then :
22811 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22812 else
22813 with_gnu_ld=no
22816 ac_prog=ld
22817 if test "$GCC" = yes; then
22818 # Check if gcc -print-prog-name=ld gives a path.
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
22820 $as_echo_n "checking for ld used by $CC... " >&6; }
22821 case $host in
22822 *-*-mingw*)
22823 # gcc leaves a trailing carriage return which upsets mingw
22824 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22826 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22827 esac
22828 case $ac_prog in
22829 # Accept absolute paths.
22830 [\\/]* | ?:[\\/]*)
22831 re_direlt='/[^/][^/]*/\.\./'
22832 # Canonicalize the pathname of ld
22833 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
22834 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
22835 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
22836 done
22837 test -z "$LD" && LD="$ac_prog"
22840 # If it fails, then pretend we aren't using GCC.
22841 ac_prog=ld
22844 # If it is relative, then search for the first ld in PATH.
22845 with_gnu_ld=unknown
22847 esac
22848 elif test "$with_gnu_ld" = yes; then
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
22850 $as_echo_n "checking for GNU ld... " >&6; }
22851 else
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
22853 $as_echo_n "checking for non-GNU ld... " >&6; }
22855 if ${lt_cv_path_LD+:} false; then :
22856 $as_echo_n "(cached) " >&6
22857 else
22858 if test -z "$LD"; then
22859 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22860 for ac_dir in $PATH; do
22861 IFS="$lt_save_ifs"
22862 test -z "$ac_dir" && ac_dir=.
22863 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22864 lt_cv_path_LD="$ac_dir/$ac_prog"
22865 # Check to see if the program is GNU ld. I'd rather use --version,
22866 # but apparently some variants of GNU ld only accept -v.
22867 # Break only if it was the GNU/non-GNU ld that we prefer.
22868 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22869 *GNU* | *'with BFD'*)
22870 test "$with_gnu_ld" != no && break
22873 test "$with_gnu_ld" != yes && break
22875 esac
22877 done
22878 IFS="$lt_save_ifs"
22879 else
22880 lt_cv_path_LD="$LD" # Let the user override the test with a path.
22884 LD="$lt_cv_path_LD"
22885 if test -n "$LD"; then
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
22887 $as_echo "$LD" >&6; }
22888 else
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22890 $as_echo "no" >&6; }
22892 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
22894 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22895 if ${lt_cv_prog_gnu_ld+:} false; then :
22896 $as_echo_n "(cached) " >&6
22897 else
22898 # I'd rather use --version here, but apparently some GNU lds only accept -v.
22899 case `$LD -v 2>&1 </dev/null` in
22900 *GNU* | *'with BFD'*)
22901 lt_cv_prog_gnu_ld=yes
22904 lt_cv_prog_gnu_ld=no
22906 esac
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
22909 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
22910 with_gnu_ld=$lt_cv_prog_gnu_ld
22918 # If we're not using GNU ld, then there's no point in even trying these
22919 # tests. Check for that first. We should have already tested for gld
22920 # by now (in libtool), but require it now just to be safe...
22921 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
22922 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
22926 # The name set by libtool depends on the version of libtool. Shame on us
22927 # for depending on an impl detail, but c'est la vie. Older versions used
22928 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
22929 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
22930 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
22931 # set (hence we're using an older libtool), then set it.
22932 if test x${with_gnu_ld+set} != xset; then
22933 if test x${ac_cv_prog_gnu_ld+set} != xset; then
22934 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
22935 with_gnu_ld=no
22936 else
22937 with_gnu_ld=$ac_cv_prog_gnu_ld
22941 # Start by getting the version number. I think the libtool test already
22942 # does some of this, but throws away the result.
22943 glibcxx_ld_is_gold=no
22944 glibcxx_ld_is_mold=no
22945 if test x"$with_gnu_ld" = x"yes"; then
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
22947 $as_echo_n "checking for ld version... " >&6; }
22949 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
22950 glibcxx_ld_is_gold=yes
22951 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
22952 glibcxx_ld_is_mold=yes
22954 ldver=`$LD --version 2>/dev/null |
22955 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
22957 glibcxx_gnu_ld_version=`echo $ldver | \
22958 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
22960 $as_echo "$glibcxx_gnu_ld_version" >&6; }
22963 # Set --gc-sections.
22964 glibcxx_have_gc_sections=no
22965 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
22966 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
22967 glibcxx_have_gc_sections=yes
22969 else
22970 glibcxx_gcsections_min_ld=21602
22971 if test x"$with_gnu_ld" = x"yes" &&
22972 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
22973 glibcxx_have_gc_sections=yes
22976 if test "$glibcxx_have_gc_sections" = "yes"; then
22977 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
22978 # NB: This flag only works reliably after 2.16.1. Configure tests
22979 # for this are difficult, so hard wire a value that should work.
22981 ac_test_CFLAGS="${CFLAGS+set}"
22982 ac_save_CFLAGS="$CFLAGS"
22983 CFLAGS='-Wl,--gc-sections'
22985 # Check for -Wl,--gc-sections
22986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
22987 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
22988 if test x$gcc_no_link = xyes; then
22989 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22992 /* end confdefs.h. */
22993 int one(void) { return 1; }
22994 int two(void) { return 2; }
22997 main ()
22999 two();
23001 return 0;
23003 _ACEOF
23004 if ac_fn_c_try_link "$LINENO"; then :
23005 ac_gcsections=yes
23006 else
23007 ac_gcsections=no
23009 rm -f core conftest.err conftest.$ac_objext \
23010 conftest$ac_exeext conftest.$ac_ext
23011 if test "$ac_gcsections" = "yes"; then
23012 rm -f conftest.c
23013 touch conftest.c
23014 if $CC -c conftest.c; then
23015 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
23016 grep "Warning: gc-sections option ignored" > /dev/null; then
23017 ac_gcsections=no
23020 rm -f conftest.c conftest.o conftest
23022 if test "$ac_gcsections" = "yes"; then
23023 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
23026 $as_echo "$ac_gcsections" >&6; }
23028 if test "$ac_test_CFLAGS" = set; then
23029 CFLAGS="$ac_save_CFLAGS"
23030 else
23031 # this is the suspicious part
23032 CFLAGS=''
23036 # Set -z,relro.
23037 # Note this is only for shared objects.
23038 ac_ld_relro=no
23039 if test x"$with_gnu_ld" = x"yes"; then
23040 # cygwin and mingw uses PE, which has no ELF relro support,
23041 # multi target ld may confuse configure machinery
23042 case "$host" in
23043 *-*-cygwin*)
23045 *-*-mingw*)
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
23049 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
23050 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
23051 if test -n "$cxx_z_relo"; then
23052 OPT_LDFLAGS="-Wl,-z,relro"
23053 ac_ld_relro=yes
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
23056 $as_echo "$ac_ld_relro" >&6; }
23057 esac
23060 # Set linker optimization flags.
23061 if test x"$with_gnu_ld" = x"yes"; then
23062 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
23069 ac_test_CXXFLAGS="${CXXFLAGS+set}"
23070 ac_save_CXXFLAGS="$CXXFLAGS"
23071 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
23074 $as_echo_n "checking for sin in -lm... " >&6; }
23075 if ${ac_cv_lib_m_sin+:} false; then :
23076 $as_echo_n "(cached) " >&6
23077 else
23078 ac_check_lib_save_LIBS=$LIBS
23079 LIBS="-lm $LIBS"
23080 if test x$gcc_no_link = xyes; then
23081 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23084 /* end confdefs.h. */
23086 /* Override any GCC internal prototype to avoid an error.
23087 Use char because int might match the return type of a GCC
23088 builtin and then its argument prototype would still apply. */
23089 #ifdef __cplusplus
23090 extern "C"
23091 #endif
23092 char sin ();
23094 main ()
23096 return sin ();
23098 return 0;
23100 _ACEOF
23101 if ac_fn_c_try_link "$LINENO"; then :
23102 ac_cv_lib_m_sin=yes
23103 else
23104 ac_cv_lib_m_sin=no
23106 rm -f core conftest.err conftest.$ac_objext \
23107 conftest$ac_exeext conftest.$ac_ext
23108 LIBS=$ac_check_lib_save_LIBS
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
23111 $as_echo "$ac_cv_lib_m_sin" >&6; }
23112 if test "x$ac_cv_lib_m_sin" = xyes; then :
23113 libm="-lm"
23116 ac_save_LIBS="$LIBS"
23117 LIBS="$LIBS $libm"
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
23122 $as_echo_n "checking for isinf declaration... " >&6; }
23123 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
23124 if ${glibcxx_cv_func_isinf_use+:} false; then :
23125 $as_echo_n "(cached) " >&6
23126 else
23129 ac_ext=cpp
23130 ac_cpp='$CXXCPP $CPPFLAGS'
23131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23136 /* end confdefs.h. */
23137 #include <math.h>
23138 #ifdef HAVE_IEEEFP_H
23139 #include <ieeefp.h>
23140 #endif
23143 main ()
23145 isinf(0);
23147 return 0;
23149 _ACEOF
23150 if ac_fn_cxx_try_compile "$LINENO"; then :
23151 glibcxx_cv_func_isinf_use=yes
23152 else
23153 glibcxx_cv_func_isinf_use=no
23155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23156 ac_ext=c
23157 ac_cpp='$CPP $CPPFLAGS'
23158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
23167 $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
23169 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
23170 for ac_func in isinf
23171 do :
23172 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
23173 if test "x$ac_cv_func_isinf" = xyes; then :
23174 cat >>confdefs.h <<_ACEOF
23175 #define HAVE_ISINF 1
23176 _ACEOF
23179 done
23185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
23186 $as_echo_n "checking for isnan declaration... " >&6; }
23187 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
23188 if ${glibcxx_cv_func_isnan_use+:} false; then :
23189 $as_echo_n "(cached) " >&6
23190 else
23193 ac_ext=cpp
23194 ac_cpp='$CXXCPP $CPPFLAGS'
23195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23200 /* end confdefs.h. */
23201 #include <math.h>
23202 #ifdef HAVE_IEEEFP_H
23203 #include <ieeefp.h>
23204 #endif
23207 main ()
23209 isnan(0);
23211 return 0;
23213 _ACEOF
23214 if ac_fn_cxx_try_compile "$LINENO"; then :
23215 glibcxx_cv_func_isnan_use=yes
23216 else
23217 glibcxx_cv_func_isnan_use=no
23219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23220 ac_ext=c
23221 ac_cpp='$CPP $CPPFLAGS'
23222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
23231 $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
23233 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
23234 for ac_func in isnan
23235 do :
23236 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
23237 if test "x$ac_cv_func_isnan" = xyes; then :
23238 cat >>confdefs.h <<_ACEOF
23239 #define HAVE_ISNAN 1
23240 _ACEOF
23243 done
23249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
23250 $as_echo_n "checking for finite declaration... " >&6; }
23251 if test x${glibcxx_cv_func_finite_use+set} != xset; then
23252 if ${glibcxx_cv_func_finite_use+:} false; then :
23253 $as_echo_n "(cached) " >&6
23254 else
23257 ac_ext=cpp
23258 ac_cpp='$CXXCPP $CPPFLAGS'
23259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23264 /* end confdefs.h. */
23265 #include <math.h>
23266 #ifdef HAVE_IEEEFP_H
23267 #include <ieeefp.h>
23268 #endif
23271 main ()
23273 finite(0);
23275 return 0;
23277 _ACEOF
23278 if ac_fn_cxx_try_compile "$LINENO"; then :
23279 glibcxx_cv_func_finite_use=yes
23280 else
23281 glibcxx_cv_func_finite_use=no
23283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23284 ac_ext=c
23285 ac_cpp='$CPP $CPPFLAGS'
23286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
23295 $as_echo "$glibcxx_cv_func_finite_use" >&6; }
23297 if test x$glibcxx_cv_func_finite_use = x"yes"; then
23298 for ac_func in finite
23299 do :
23300 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
23301 if test "x$ac_cv_func_finite" = xyes; then :
23302 cat >>confdefs.h <<_ACEOF
23303 #define HAVE_FINITE 1
23304 _ACEOF
23307 done
23313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
23314 $as_echo_n "checking for sincos declaration... " >&6; }
23315 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
23316 if ${glibcxx_cv_func_sincos_use+:} false; then :
23317 $as_echo_n "(cached) " >&6
23318 else
23321 ac_ext=cpp
23322 ac_cpp='$CXXCPP $CPPFLAGS'
23323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23328 /* end confdefs.h. */
23329 #include <math.h>
23331 main ()
23333 sincos(0, 0, 0);
23335 return 0;
23337 _ACEOF
23338 if ac_fn_cxx_try_compile "$LINENO"; then :
23339 glibcxx_cv_func_sincos_use=yes
23340 else
23341 glibcxx_cv_func_sincos_use=no
23343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23344 ac_ext=c
23345 ac_cpp='$CPP $CPPFLAGS'
23346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
23355 $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
23357 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
23358 for ac_func in sincos
23359 do :
23360 ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
23361 if test "x$ac_cv_func_sincos" = xyes; then :
23362 cat >>confdefs.h <<_ACEOF
23363 #define HAVE_SINCOS 1
23364 _ACEOF
23367 done
23373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
23374 $as_echo_n "checking for fpclass declaration... " >&6; }
23375 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
23376 if ${glibcxx_cv_func_fpclass_use+:} false; then :
23377 $as_echo_n "(cached) " >&6
23378 else
23381 ac_ext=cpp
23382 ac_cpp='$CXXCPP $CPPFLAGS'
23383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23388 /* end confdefs.h. */
23389 #include <math.h>
23390 #ifdef HAVE_IEEEFP_H
23391 #include <ieeefp.h>
23392 #endif
23395 main ()
23397 fpclass(0);
23399 return 0;
23401 _ACEOF
23402 if ac_fn_cxx_try_compile "$LINENO"; then :
23403 glibcxx_cv_func_fpclass_use=yes
23404 else
23405 glibcxx_cv_func_fpclass_use=no
23407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23408 ac_ext=c
23409 ac_cpp='$CPP $CPPFLAGS'
23410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
23419 $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
23421 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
23422 for ac_func in fpclass
23423 do :
23424 ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
23425 if test "x$ac_cv_func_fpclass" = xyes; then :
23426 cat >>confdefs.h <<_ACEOF
23427 #define HAVE_FPCLASS 1
23428 _ACEOF
23431 done
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
23438 $as_echo_n "checking for qfpclass declaration... " >&6; }
23439 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
23440 if ${glibcxx_cv_func_qfpclass_use+:} false; then :
23441 $as_echo_n "(cached) " >&6
23442 else
23445 ac_ext=cpp
23446 ac_cpp='$CXXCPP $CPPFLAGS'
23447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23452 /* end confdefs.h. */
23453 #include <math.h>
23454 #ifdef HAVE_IEEEFP_H
23455 #include <ieeefp.h>
23456 #endif
23459 main ()
23461 qfpclass(0);
23463 return 0;
23465 _ACEOF
23466 if ac_fn_cxx_try_compile "$LINENO"; then :
23467 glibcxx_cv_func_qfpclass_use=yes
23468 else
23469 glibcxx_cv_func_qfpclass_use=no
23471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23472 ac_ext=c
23473 ac_cpp='$CPP $CPPFLAGS'
23474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
23483 $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
23485 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
23486 for ac_func in qfpclass
23487 do :
23488 ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
23489 if test "x$ac_cv_func_qfpclass" = xyes; then :
23490 cat >>confdefs.h <<_ACEOF
23491 #define HAVE_QFPCLASS 1
23492 _ACEOF
23495 done
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
23502 $as_echo_n "checking for hypot declaration... " >&6; }
23503 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
23504 if ${glibcxx_cv_func_hypot_use+:} false; then :
23505 $as_echo_n "(cached) " >&6
23506 else
23509 ac_ext=cpp
23510 ac_cpp='$CXXCPP $CPPFLAGS'
23511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23516 /* end confdefs.h. */
23517 #include <math.h>
23519 main ()
23521 hypot(0, 0);
23523 return 0;
23525 _ACEOF
23526 if ac_fn_cxx_try_compile "$LINENO"; then :
23527 glibcxx_cv_func_hypot_use=yes
23528 else
23529 glibcxx_cv_func_hypot_use=no
23531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23532 ac_ext=c
23533 ac_cpp='$CPP $CPPFLAGS'
23534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
23543 $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
23545 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
23546 for ac_func in hypot
23547 do :
23548 ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
23549 if test "x$ac_cv_func_hypot" = xyes; then :
23550 cat >>confdefs.h <<_ACEOF
23551 #define HAVE_HYPOT 1
23552 _ACEOF
23555 done
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
23562 $as_echo_n "checking for float trig functions... " >&6; }
23563 if ${glibcxx_cv_func_float_trig_use+:} false; then :
23564 $as_echo_n "(cached) " >&6
23565 else
23568 ac_ext=cpp
23569 ac_cpp='$CXXCPP $CPPFLAGS'
23570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23575 /* end confdefs.h. */
23576 #include <math.h>
23578 main ()
23580 acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
23582 return 0;
23584 _ACEOF
23585 if ac_fn_cxx_try_compile "$LINENO"; then :
23586 glibcxx_cv_func_float_trig_use=yes
23587 else
23588 glibcxx_cv_func_float_trig_use=no
23590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23591 ac_ext=c
23592 ac_cpp='$CPP $CPPFLAGS'
23593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
23600 $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
23601 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
23602 for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
23603 do :
23604 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23605 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23606 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23607 cat >>confdefs.h <<_ACEOF
23608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23609 _ACEOF
23612 done
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
23619 $as_echo_n "checking for float round functions... " >&6; }
23620 if ${glibcxx_cv_func_float_round_use+:} false; then :
23621 $as_echo_n "(cached) " >&6
23622 else
23625 ac_ext=cpp
23626 ac_cpp='$CXXCPP $CPPFLAGS'
23627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23632 /* end confdefs.h. */
23633 #include <math.h>
23635 main ()
23637 ceilf (0); floorf (0);
23639 return 0;
23641 _ACEOF
23642 if ac_fn_cxx_try_compile "$LINENO"; then :
23643 glibcxx_cv_func_float_round_use=yes
23644 else
23645 glibcxx_cv_func_float_round_use=no
23647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23648 ac_ext=c
23649 ac_cpp='$CPP $CPPFLAGS'
23650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
23657 $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
23658 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
23659 for ac_func in ceilf floorf
23660 do :
23661 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23662 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23663 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23664 cat >>confdefs.h <<_ACEOF
23665 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23666 _ACEOF
23669 done
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
23677 $as_echo_n "checking for expf declaration... " >&6; }
23678 if test x${glibcxx_cv_func_expf_use+set} != xset; then
23679 if ${glibcxx_cv_func_expf_use+:} false; then :
23680 $as_echo_n "(cached) " >&6
23681 else
23684 ac_ext=cpp
23685 ac_cpp='$CXXCPP $CPPFLAGS'
23686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23691 /* end confdefs.h. */
23692 #include <math.h>
23693 #ifdef HAVE_IEEEFP_H
23694 #include <ieeefp.h>
23695 #endif
23698 main ()
23700 expf(0);
23702 return 0;
23704 _ACEOF
23705 if ac_fn_cxx_try_compile "$LINENO"; then :
23706 glibcxx_cv_func_expf_use=yes
23707 else
23708 glibcxx_cv_func_expf_use=no
23710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23711 ac_ext=c
23712 ac_cpp='$CPP $CPPFLAGS'
23713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
23722 $as_echo "$glibcxx_cv_func_expf_use" >&6; }
23724 if test x$glibcxx_cv_func_expf_use = x"yes"; then
23725 for ac_func in expf
23726 do :
23727 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
23728 if test "x$ac_cv_func_expf" = xyes; then :
23729 cat >>confdefs.h <<_ACEOF
23730 #define HAVE_EXPF 1
23731 _ACEOF
23734 done
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
23741 $as_echo_n "checking for isnanf declaration... " >&6; }
23742 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
23743 if ${glibcxx_cv_func_isnanf_use+:} false; then :
23744 $as_echo_n "(cached) " >&6
23745 else
23748 ac_ext=cpp
23749 ac_cpp='$CXXCPP $CPPFLAGS'
23750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23755 /* end confdefs.h. */
23756 #include <math.h>
23757 #ifdef HAVE_IEEEFP_H
23758 #include <ieeefp.h>
23759 #endif
23762 main ()
23764 isnanf(0);
23766 return 0;
23768 _ACEOF
23769 if ac_fn_cxx_try_compile "$LINENO"; then :
23770 glibcxx_cv_func_isnanf_use=yes
23771 else
23772 glibcxx_cv_func_isnanf_use=no
23774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23775 ac_ext=c
23776 ac_cpp='$CPP $CPPFLAGS'
23777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
23786 $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
23788 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
23789 for ac_func in isnanf
23790 do :
23791 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
23792 if test "x$ac_cv_func_isnanf" = xyes; then :
23793 cat >>confdefs.h <<_ACEOF
23794 #define HAVE_ISNANF 1
23795 _ACEOF
23798 done
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
23805 $as_echo_n "checking for isinff declaration... " >&6; }
23806 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
23807 if ${glibcxx_cv_func_isinff_use+:} false; then :
23808 $as_echo_n "(cached) " >&6
23809 else
23812 ac_ext=cpp
23813 ac_cpp='$CXXCPP $CPPFLAGS'
23814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23819 /* end confdefs.h. */
23820 #include <math.h>
23821 #ifdef HAVE_IEEEFP_H
23822 #include <ieeefp.h>
23823 #endif
23826 main ()
23828 isinff(0);
23830 return 0;
23832 _ACEOF
23833 if ac_fn_cxx_try_compile "$LINENO"; then :
23834 glibcxx_cv_func_isinff_use=yes
23835 else
23836 glibcxx_cv_func_isinff_use=no
23838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23839 ac_ext=c
23840 ac_cpp='$CPP $CPPFLAGS'
23841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
23850 $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
23852 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
23853 for ac_func in isinff
23854 do :
23855 ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
23856 if test "x$ac_cv_func_isinff" = xyes; then :
23857 cat >>confdefs.h <<_ACEOF
23858 #define HAVE_ISINFF 1
23859 _ACEOF
23862 done
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
23869 $as_echo_n "checking for atan2f declaration... " >&6; }
23870 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
23871 if ${glibcxx_cv_func_atan2f_use+:} false; then :
23872 $as_echo_n "(cached) " >&6
23873 else
23876 ac_ext=cpp
23877 ac_cpp='$CXXCPP $CPPFLAGS'
23878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23883 /* end confdefs.h. */
23884 #include <math.h>
23886 main ()
23888 atan2f(0, 0);
23890 return 0;
23892 _ACEOF
23893 if ac_fn_cxx_try_compile "$LINENO"; then :
23894 glibcxx_cv_func_atan2f_use=yes
23895 else
23896 glibcxx_cv_func_atan2f_use=no
23898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23899 ac_ext=c
23900 ac_cpp='$CPP $CPPFLAGS'
23901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
23910 $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
23912 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
23913 for ac_func in atan2f
23914 do :
23915 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
23916 if test "x$ac_cv_func_atan2f" = xyes; then :
23917 cat >>confdefs.h <<_ACEOF
23918 #define HAVE_ATAN2F 1
23919 _ACEOF
23922 done
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
23929 $as_echo_n "checking for fabsf declaration... " >&6; }
23930 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
23931 if ${glibcxx_cv_func_fabsf_use+:} false; then :
23932 $as_echo_n "(cached) " >&6
23933 else
23936 ac_ext=cpp
23937 ac_cpp='$CXXCPP $CPPFLAGS'
23938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23943 /* end confdefs.h. */
23944 #include <math.h>
23945 #ifdef HAVE_IEEEFP_H
23946 #include <ieeefp.h>
23947 #endif
23950 main ()
23952 fabsf(0);
23954 return 0;
23956 _ACEOF
23957 if ac_fn_cxx_try_compile "$LINENO"; then :
23958 glibcxx_cv_func_fabsf_use=yes
23959 else
23960 glibcxx_cv_func_fabsf_use=no
23962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23963 ac_ext=c
23964 ac_cpp='$CPP $CPPFLAGS'
23965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
23974 $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
23976 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
23977 for ac_func in fabsf
23978 do :
23979 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
23980 if test "x$ac_cv_func_fabsf" = xyes; then :
23981 cat >>confdefs.h <<_ACEOF
23982 #define HAVE_FABSF 1
23983 _ACEOF
23986 done
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
23993 $as_echo_n "checking for fmodf declaration... " >&6; }
23994 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
23995 if ${glibcxx_cv_func_fmodf_use+:} false; then :
23996 $as_echo_n "(cached) " >&6
23997 else
24000 ac_ext=cpp
24001 ac_cpp='$CXXCPP $CPPFLAGS'
24002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24007 /* end confdefs.h. */
24008 #include <math.h>
24010 main ()
24012 fmodf(0, 0);
24014 return 0;
24016 _ACEOF
24017 if ac_fn_cxx_try_compile "$LINENO"; then :
24018 glibcxx_cv_func_fmodf_use=yes
24019 else
24020 glibcxx_cv_func_fmodf_use=no
24022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24023 ac_ext=c
24024 ac_cpp='$CPP $CPPFLAGS'
24025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
24034 $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
24036 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
24037 for ac_func in fmodf
24038 do :
24039 ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
24040 if test "x$ac_cv_func_fmodf" = xyes; then :
24041 cat >>confdefs.h <<_ACEOF
24042 #define HAVE_FMODF 1
24043 _ACEOF
24046 done
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
24053 $as_echo_n "checking for frexpf declaration... " >&6; }
24054 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
24055 if ${glibcxx_cv_func_frexpf_use+:} false; then :
24056 $as_echo_n "(cached) " >&6
24057 else
24060 ac_ext=cpp
24061 ac_cpp='$CXXCPP $CPPFLAGS'
24062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24067 /* end confdefs.h. */
24068 #include <math.h>
24070 main ()
24072 frexpf(0, 0);
24074 return 0;
24076 _ACEOF
24077 if ac_fn_cxx_try_compile "$LINENO"; then :
24078 glibcxx_cv_func_frexpf_use=yes
24079 else
24080 glibcxx_cv_func_frexpf_use=no
24082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24083 ac_ext=c
24084 ac_cpp='$CPP $CPPFLAGS'
24085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
24094 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
24096 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
24097 for ac_func in frexpf
24098 do :
24099 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
24100 if test "x$ac_cv_func_frexpf" = xyes; then :
24101 cat >>confdefs.h <<_ACEOF
24102 #define HAVE_FREXPF 1
24103 _ACEOF
24106 done
24112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
24113 $as_echo_n "checking for hypotf declaration... " >&6; }
24114 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
24115 if ${glibcxx_cv_func_hypotf_use+:} false; then :
24116 $as_echo_n "(cached) " >&6
24117 else
24120 ac_ext=cpp
24121 ac_cpp='$CXXCPP $CPPFLAGS'
24122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24127 /* end confdefs.h. */
24128 #include <math.h>
24130 main ()
24132 hypotf(0, 0);
24134 return 0;
24136 _ACEOF
24137 if ac_fn_cxx_try_compile "$LINENO"; then :
24138 glibcxx_cv_func_hypotf_use=yes
24139 else
24140 glibcxx_cv_func_hypotf_use=no
24142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24143 ac_ext=c
24144 ac_cpp='$CPP $CPPFLAGS'
24145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
24154 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
24156 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
24157 for ac_func in hypotf
24158 do :
24159 ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
24160 if test "x$ac_cv_func_hypotf" = xyes; then :
24161 cat >>confdefs.h <<_ACEOF
24162 #define HAVE_HYPOTF 1
24163 _ACEOF
24166 done
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
24173 $as_echo_n "checking for ldexpf declaration... " >&6; }
24174 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
24175 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
24176 $as_echo_n "(cached) " >&6
24177 else
24180 ac_ext=cpp
24181 ac_cpp='$CXXCPP $CPPFLAGS'
24182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24187 /* end confdefs.h. */
24188 #include <math.h>
24190 main ()
24192 ldexpf(0, 0);
24194 return 0;
24196 _ACEOF
24197 if ac_fn_cxx_try_compile "$LINENO"; then :
24198 glibcxx_cv_func_ldexpf_use=yes
24199 else
24200 glibcxx_cv_func_ldexpf_use=no
24202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24203 ac_ext=c
24204 ac_cpp='$CPP $CPPFLAGS'
24205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
24214 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
24216 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
24217 for ac_func in ldexpf
24218 do :
24219 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
24220 if test "x$ac_cv_func_ldexpf" = xyes; then :
24221 cat >>confdefs.h <<_ACEOF
24222 #define HAVE_LDEXPF 1
24223 _ACEOF
24226 done
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
24233 $as_echo_n "checking for logf declaration... " >&6; }
24234 if test x${glibcxx_cv_func_logf_use+set} != xset; then
24235 if ${glibcxx_cv_func_logf_use+:} false; then :
24236 $as_echo_n "(cached) " >&6
24237 else
24240 ac_ext=cpp
24241 ac_cpp='$CXXCPP $CPPFLAGS'
24242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24247 /* end confdefs.h. */
24248 #include <math.h>
24249 #ifdef HAVE_IEEEFP_H
24250 #include <ieeefp.h>
24251 #endif
24254 main ()
24256 logf(0);
24258 return 0;
24260 _ACEOF
24261 if ac_fn_cxx_try_compile "$LINENO"; then :
24262 glibcxx_cv_func_logf_use=yes
24263 else
24264 glibcxx_cv_func_logf_use=no
24266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24267 ac_ext=c
24268 ac_cpp='$CPP $CPPFLAGS'
24269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
24278 $as_echo "$glibcxx_cv_func_logf_use" >&6; }
24280 if test x$glibcxx_cv_func_logf_use = x"yes"; then
24281 for ac_func in logf
24282 do :
24283 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
24284 if test "x$ac_cv_func_logf" = xyes; then :
24285 cat >>confdefs.h <<_ACEOF
24286 #define HAVE_LOGF 1
24287 _ACEOF
24290 done
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
24297 $as_echo_n "checking for log10f declaration... " >&6; }
24298 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
24299 if ${glibcxx_cv_func_log10f_use+:} false; then :
24300 $as_echo_n "(cached) " >&6
24301 else
24304 ac_ext=cpp
24305 ac_cpp='$CXXCPP $CPPFLAGS'
24306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24311 /* end confdefs.h. */
24312 #include <math.h>
24313 #ifdef HAVE_IEEEFP_H
24314 #include <ieeefp.h>
24315 #endif
24318 main ()
24320 log10f(0);
24322 return 0;
24324 _ACEOF
24325 if ac_fn_cxx_try_compile "$LINENO"; then :
24326 glibcxx_cv_func_log10f_use=yes
24327 else
24328 glibcxx_cv_func_log10f_use=no
24330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24331 ac_ext=c
24332 ac_cpp='$CPP $CPPFLAGS'
24333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
24342 $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
24344 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
24345 for ac_func in log10f
24346 do :
24347 ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
24348 if test "x$ac_cv_func_log10f" = xyes; then :
24349 cat >>confdefs.h <<_ACEOF
24350 #define HAVE_LOG10F 1
24351 _ACEOF
24354 done
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
24361 $as_echo_n "checking for modff declaration... " >&6; }
24362 if test x${glibcxx_cv_func_modff_use+set} != xset; then
24363 if ${glibcxx_cv_func_modff_use+:} false; then :
24364 $as_echo_n "(cached) " >&6
24365 else
24368 ac_ext=cpp
24369 ac_cpp='$CXXCPP $CPPFLAGS'
24370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24375 /* end confdefs.h. */
24376 #include <math.h>
24378 main ()
24380 modff(0, 0);
24382 return 0;
24384 _ACEOF
24385 if ac_fn_cxx_try_compile "$LINENO"; then :
24386 glibcxx_cv_func_modff_use=yes
24387 else
24388 glibcxx_cv_func_modff_use=no
24390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24391 ac_ext=c
24392 ac_cpp='$CPP $CPPFLAGS'
24393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
24402 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
24404 if test x$glibcxx_cv_func_modff_use = x"yes"; then
24405 for ac_func in modff
24406 do :
24407 ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
24408 if test "x$ac_cv_func_modff" = xyes; then :
24409 cat >>confdefs.h <<_ACEOF
24410 #define HAVE_MODFF 1
24411 _ACEOF
24414 done
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
24421 $as_echo_n "checking for modf declaration... " >&6; }
24422 if test x${glibcxx_cv_func_modf_use+set} != xset; then
24423 if ${glibcxx_cv_func_modf_use+:} false; then :
24424 $as_echo_n "(cached) " >&6
24425 else
24428 ac_ext=cpp
24429 ac_cpp='$CXXCPP $CPPFLAGS'
24430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24435 /* end confdefs.h. */
24436 #include <math.h>
24438 main ()
24440 modf(0, 0);
24442 return 0;
24444 _ACEOF
24445 if ac_fn_cxx_try_compile "$LINENO"; then :
24446 glibcxx_cv_func_modf_use=yes
24447 else
24448 glibcxx_cv_func_modf_use=no
24450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24451 ac_ext=c
24452 ac_cpp='$CPP $CPPFLAGS'
24453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
24462 $as_echo "$glibcxx_cv_func_modf_use" >&6; }
24464 if test x$glibcxx_cv_func_modf_use = x"yes"; then
24465 for ac_func in modf
24466 do :
24467 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
24468 if test "x$ac_cv_func_modf" = xyes; then :
24469 cat >>confdefs.h <<_ACEOF
24470 #define HAVE_MODF 1
24471 _ACEOF
24474 done
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
24481 $as_echo_n "checking for powf declaration... " >&6; }
24482 if test x${glibcxx_cv_func_powf_use+set} != xset; then
24483 if ${glibcxx_cv_func_powf_use+:} false; then :
24484 $as_echo_n "(cached) " >&6
24485 else
24488 ac_ext=cpp
24489 ac_cpp='$CXXCPP $CPPFLAGS'
24490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24495 /* end confdefs.h. */
24496 #include <math.h>
24498 main ()
24500 powf(0, 0);
24502 return 0;
24504 _ACEOF
24505 if ac_fn_cxx_try_compile "$LINENO"; then :
24506 glibcxx_cv_func_powf_use=yes
24507 else
24508 glibcxx_cv_func_powf_use=no
24510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24511 ac_ext=c
24512 ac_cpp='$CPP $CPPFLAGS'
24513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
24522 $as_echo "$glibcxx_cv_func_powf_use" >&6; }
24524 if test x$glibcxx_cv_func_powf_use = x"yes"; then
24525 for ac_func in powf
24526 do :
24527 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
24528 if test "x$ac_cv_func_powf" = xyes; then :
24529 cat >>confdefs.h <<_ACEOF
24530 #define HAVE_POWF 1
24531 _ACEOF
24534 done
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
24541 $as_echo_n "checking for sqrtf declaration... " >&6; }
24542 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
24543 if ${glibcxx_cv_func_sqrtf_use+:} false; then :
24544 $as_echo_n "(cached) " >&6
24545 else
24548 ac_ext=cpp
24549 ac_cpp='$CXXCPP $CPPFLAGS'
24550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24555 /* end confdefs.h. */
24556 #include <math.h>
24557 #ifdef HAVE_IEEEFP_H
24558 #include <ieeefp.h>
24559 #endif
24562 main ()
24564 sqrtf(0);
24566 return 0;
24568 _ACEOF
24569 if ac_fn_cxx_try_compile "$LINENO"; then :
24570 glibcxx_cv_func_sqrtf_use=yes
24571 else
24572 glibcxx_cv_func_sqrtf_use=no
24574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24575 ac_ext=c
24576 ac_cpp='$CPP $CPPFLAGS'
24577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
24586 $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
24588 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
24589 for ac_func in sqrtf
24590 do :
24591 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
24592 if test "x$ac_cv_func_sqrtf" = xyes; then :
24593 cat >>confdefs.h <<_ACEOF
24594 #define HAVE_SQRTF 1
24595 _ACEOF
24598 done
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
24605 $as_echo_n "checking for sincosf declaration... " >&6; }
24606 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
24607 if ${glibcxx_cv_func_sincosf_use+:} false; then :
24608 $as_echo_n "(cached) " >&6
24609 else
24612 ac_ext=cpp
24613 ac_cpp='$CXXCPP $CPPFLAGS'
24614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24619 /* end confdefs.h. */
24620 #include <math.h>
24622 main ()
24624 sincosf(0, 0, 0);
24626 return 0;
24628 _ACEOF
24629 if ac_fn_cxx_try_compile "$LINENO"; then :
24630 glibcxx_cv_func_sincosf_use=yes
24631 else
24632 glibcxx_cv_func_sincosf_use=no
24634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24635 ac_ext=c
24636 ac_cpp='$CPP $CPPFLAGS'
24637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
24646 $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
24648 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
24649 for ac_func in sincosf
24650 do :
24651 ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
24652 if test "x$ac_cv_func_sincosf" = xyes; then :
24653 cat >>confdefs.h <<_ACEOF
24654 #define HAVE_SINCOSF 1
24655 _ACEOF
24658 done
24664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
24665 $as_echo_n "checking for finitef declaration... " >&6; }
24666 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
24667 if ${glibcxx_cv_func_finitef_use+:} false; then :
24668 $as_echo_n "(cached) " >&6
24669 else
24672 ac_ext=cpp
24673 ac_cpp='$CXXCPP $CPPFLAGS'
24674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24679 /* end confdefs.h. */
24680 #include <math.h>
24681 #ifdef HAVE_IEEEFP_H
24682 #include <ieeefp.h>
24683 #endif
24686 main ()
24688 finitef(0);
24690 return 0;
24692 _ACEOF
24693 if ac_fn_cxx_try_compile "$LINENO"; then :
24694 glibcxx_cv_func_finitef_use=yes
24695 else
24696 glibcxx_cv_func_finitef_use=no
24698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24699 ac_ext=c
24700 ac_cpp='$CPP $CPPFLAGS'
24701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
24710 $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
24712 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
24713 for ac_func in finitef
24714 do :
24715 ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
24716 if test "x$ac_cv_func_finitef" = xyes; then :
24717 cat >>confdefs.h <<_ACEOF
24718 #define HAVE_FINITEF 1
24719 _ACEOF
24722 done
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
24729 $as_echo_n "checking for long double trig functions... " >&6; }
24730 if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
24731 $as_echo_n "(cached) " >&6
24732 else
24735 ac_ext=cpp
24736 ac_cpp='$CXXCPP $CPPFLAGS'
24737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24742 /* end confdefs.h. */
24743 #include <math.h>
24745 main ()
24747 acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
24749 return 0;
24751 _ACEOF
24752 if ac_fn_cxx_try_compile "$LINENO"; then :
24753 glibcxx_cv_func_long_double_trig_use=yes
24754 else
24755 glibcxx_cv_func_long_double_trig_use=no
24757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24758 ac_ext=c
24759 ac_cpp='$CPP $CPPFLAGS'
24760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
24767 $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
24768 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
24769 for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
24770 do :
24771 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24772 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24773 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24774 cat >>confdefs.h <<_ACEOF
24775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24776 _ACEOF
24779 done
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
24786 $as_echo_n "checking for long double round functions... " >&6; }
24787 if ${glibcxx_cv_func_long_double_round_use+:} false; then :
24788 $as_echo_n "(cached) " >&6
24789 else
24792 ac_ext=cpp
24793 ac_cpp='$CXXCPP $CPPFLAGS'
24794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24799 /* end confdefs.h. */
24800 #include <math.h>
24802 main ()
24804 ceill (0); floorl (0);
24806 return 0;
24808 _ACEOF
24809 if ac_fn_cxx_try_compile "$LINENO"; then :
24810 glibcxx_cv_func_long_double_round_use=yes
24811 else
24812 glibcxx_cv_func_long_double_round_use=no
24814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24815 ac_ext=c
24816 ac_cpp='$CPP $CPPFLAGS'
24817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
24824 $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
24825 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
24826 for ac_func in ceill floorl
24827 do :
24828 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24829 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24830 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24831 cat >>confdefs.h <<_ACEOF
24832 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24833 _ACEOF
24836 done
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
24844 $as_echo_n "checking for isnanl declaration... " >&6; }
24845 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
24846 if ${glibcxx_cv_func_isnanl_use+:} false; then :
24847 $as_echo_n "(cached) " >&6
24848 else
24851 ac_ext=cpp
24852 ac_cpp='$CXXCPP $CPPFLAGS'
24853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24858 /* end confdefs.h. */
24859 #include <math.h>
24860 #ifdef HAVE_IEEEFP_H
24861 #include <ieeefp.h>
24862 #endif
24865 main ()
24867 isnanl(0);
24869 return 0;
24871 _ACEOF
24872 if ac_fn_cxx_try_compile "$LINENO"; then :
24873 glibcxx_cv_func_isnanl_use=yes
24874 else
24875 glibcxx_cv_func_isnanl_use=no
24877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24878 ac_ext=c
24879 ac_cpp='$CPP $CPPFLAGS'
24880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
24889 $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
24891 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
24892 for ac_func in isnanl
24893 do :
24894 ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
24895 if test "x$ac_cv_func_isnanl" = xyes; then :
24896 cat >>confdefs.h <<_ACEOF
24897 #define HAVE_ISNANL 1
24898 _ACEOF
24901 done
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
24908 $as_echo_n "checking for isinfl declaration... " >&6; }
24909 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
24910 if ${glibcxx_cv_func_isinfl_use+:} false; then :
24911 $as_echo_n "(cached) " >&6
24912 else
24915 ac_ext=cpp
24916 ac_cpp='$CXXCPP $CPPFLAGS'
24917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24922 /* end confdefs.h. */
24923 #include <math.h>
24924 #ifdef HAVE_IEEEFP_H
24925 #include <ieeefp.h>
24926 #endif
24929 main ()
24931 isinfl(0);
24933 return 0;
24935 _ACEOF
24936 if ac_fn_cxx_try_compile "$LINENO"; then :
24937 glibcxx_cv_func_isinfl_use=yes
24938 else
24939 glibcxx_cv_func_isinfl_use=no
24941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24942 ac_ext=c
24943 ac_cpp='$CPP $CPPFLAGS'
24944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
24953 $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
24955 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
24956 for ac_func in isinfl
24957 do :
24958 ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
24959 if test "x$ac_cv_func_isinfl" = xyes; then :
24960 cat >>confdefs.h <<_ACEOF
24961 #define HAVE_ISINFL 1
24962 _ACEOF
24965 done
24971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
24972 $as_echo_n "checking for atan2l declaration... " >&6; }
24973 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
24974 if ${glibcxx_cv_func_atan2l_use+:} false; then :
24975 $as_echo_n "(cached) " >&6
24976 else
24979 ac_ext=cpp
24980 ac_cpp='$CXXCPP $CPPFLAGS'
24981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24986 /* end confdefs.h. */
24987 #include <math.h>
24989 main ()
24991 atan2l(0, 0);
24993 return 0;
24995 _ACEOF
24996 if ac_fn_cxx_try_compile "$LINENO"; then :
24997 glibcxx_cv_func_atan2l_use=yes
24998 else
24999 glibcxx_cv_func_atan2l_use=no
25001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25002 ac_ext=c
25003 ac_cpp='$CPP $CPPFLAGS'
25004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
25013 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
25015 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
25016 for ac_func in atan2l
25017 do :
25018 ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
25019 if test "x$ac_cv_func_atan2l" = xyes; then :
25020 cat >>confdefs.h <<_ACEOF
25021 #define HAVE_ATAN2L 1
25022 _ACEOF
25025 done
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
25032 $as_echo_n "checking for expl declaration... " >&6; }
25033 if test x${glibcxx_cv_func_expl_use+set} != xset; then
25034 if ${glibcxx_cv_func_expl_use+:} false; then :
25035 $as_echo_n "(cached) " >&6
25036 else
25039 ac_ext=cpp
25040 ac_cpp='$CXXCPP $CPPFLAGS'
25041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25046 /* end confdefs.h. */
25047 #include <math.h>
25048 #ifdef HAVE_IEEEFP_H
25049 #include <ieeefp.h>
25050 #endif
25053 main ()
25055 expl(0);
25057 return 0;
25059 _ACEOF
25060 if ac_fn_cxx_try_compile "$LINENO"; then :
25061 glibcxx_cv_func_expl_use=yes
25062 else
25063 glibcxx_cv_func_expl_use=no
25065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25066 ac_ext=c
25067 ac_cpp='$CPP $CPPFLAGS'
25068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
25077 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
25079 if test x$glibcxx_cv_func_expl_use = x"yes"; then
25080 for ac_func in expl
25081 do :
25082 ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
25083 if test "x$ac_cv_func_expl" = xyes; then :
25084 cat >>confdefs.h <<_ACEOF
25085 #define HAVE_EXPL 1
25086 _ACEOF
25089 done
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
25096 $as_echo_n "checking for fabsl declaration... " >&6; }
25097 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
25098 if ${glibcxx_cv_func_fabsl_use+:} false; then :
25099 $as_echo_n "(cached) " >&6
25100 else
25103 ac_ext=cpp
25104 ac_cpp='$CXXCPP $CPPFLAGS'
25105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25110 /* end confdefs.h. */
25111 #include <math.h>
25112 #ifdef HAVE_IEEEFP_H
25113 #include <ieeefp.h>
25114 #endif
25117 main ()
25119 fabsl(0);
25121 return 0;
25123 _ACEOF
25124 if ac_fn_cxx_try_compile "$LINENO"; then :
25125 glibcxx_cv_func_fabsl_use=yes
25126 else
25127 glibcxx_cv_func_fabsl_use=no
25129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25130 ac_ext=c
25131 ac_cpp='$CPP $CPPFLAGS'
25132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
25141 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
25143 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
25144 for ac_func in fabsl
25145 do :
25146 ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
25147 if test "x$ac_cv_func_fabsl" = xyes; then :
25148 cat >>confdefs.h <<_ACEOF
25149 #define HAVE_FABSL 1
25150 _ACEOF
25153 done
25159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
25160 $as_echo_n "checking for fmodl declaration... " >&6; }
25161 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
25162 if ${glibcxx_cv_func_fmodl_use+:} false; then :
25163 $as_echo_n "(cached) " >&6
25164 else
25167 ac_ext=cpp
25168 ac_cpp='$CXXCPP $CPPFLAGS'
25169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25174 /* end confdefs.h. */
25175 #include <math.h>
25177 main ()
25179 fmodl(0, 0);
25181 return 0;
25183 _ACEOF
25184 if ac_fn_cxx_try_compile "$LINENO"; then :
25185 glibcxx_cv_func_fmodl_use=yes
25186 else
25187 glibcxx_cv_func_fmodl_use=no
25189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25190 ac_ext=c
25191 ac_cpp='$CPP $CPPFLAGS'
25192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
25201 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
25203 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
25204 for ac_func in fmodl
25205 do :
25206 ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
25207 if test "x$ac_cv_func_fmodl" = xyes; then :
25208 cat >>confdefs.h <<_ACEOF
25209 #define HAVE_FMODL 1
25210 _ACEOF
25213 done
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
25220 $as_echo_n "checking for frexpl declaration... " >&6; }
25221 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
25222 if ${glibcxx_cv_func_frexpl_use+:} false; then :
25223 $as_echo_n "(cached) " >&6
25224 else
25227 ac_ext=cpp
25228 ac_cpp='$CXXCPP $CPPFLAGS'
25229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25234 /* end confdefs.h. */
25235 #include <math.h>
25237 main ()
25239 frexpl(0, 0);
25241 return 0;
25243 _ACEOF
25244 if ac_fn_cxx_try_compile "$LINENO"; then :
25245 glibcxx_cv_func_frexpl_use=yes
25246 else
25247 glibcxx_cv_func_frexpl_use=no
25249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25250 ac_ext=c
25251 ac_cpp='$CPP $CPPFLAGS'
25252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
25261 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
25263 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
25264 for ac_func in frexpl
25265 do :
25266 ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
25267 if test "x$ac_cv_func_frexpl" = xyes; then :
25268 cat >>confdefs.h <<_ACEOF
25269 #define HAVE_FREXPL 1
25270 _ACEOF
25273 done
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
25280 $as_echo_n "checking for hypotl declaration... " >&6; }
25281 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
25282 if ${glibcxx_cv_func_hypotl_use+:} false; then :
25283 $as_echo_n "(cached) " >&6
25284 else
25287 ac_ext=cpp
25288 ac_cpp='$CXXCPP $CPPFLAGS'
25289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25294 /* end confdefs.h. */
25295 #include <math.h>
25297 main ()
25299 hypotl(0, 0);
25301 return 0;
25303 _ACEOF
25304 if ac_fn_cxx_try_compile "$LINENO"; then :
25305 glibcxx_cv_func_hypotl_use=yes
25306 else
25307 glibcxx_cv_func_hypotl_use=no
25309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25310 ac_ext=c
25311 ac_cpp='$CPP $CPPFLAGS'
25312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
25321 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
25323 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
25324 for ac_func in hypotl
25325 do :
25326 ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
25327 if test "x$ac_cv_func_hypotl" = xyes; then :
25328 cat >>confdefs.h <<_ACEOF
25329 #define HAVE_HYPOTL 1
25330 _ACEOF
25333 done
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
25340 $as_echo_n "checking for ldexpl declaration... " >&6; }
25341 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
25342 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
25343 $as_echo_n "(cached) " >&6
25344 else
25347 ac_ext=cpp
25348 ac_cpp='$CXXCPP $CPPFLAGS'
25349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25354 /* end confdefs.h. */
25355 #include <math.h>
25357 main ()
25359 ldexpl(0, 0);
25361 return 0;
25363 _ACEOF
25364 if ac_fn_cxx_try_compile "$LINENO"; then :
25365 glibcxx_cv_func_ldexpl_use=yes
25366 else
25367 glibcxx_cv_func_ldexpl_use=no
25369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25370 ac_ext=c
25371 ac_cpp='$CPP $CPPFLAGS'
25372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
25381 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
25383 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
25384 for ac_func in ldexpl
25385 do :
25386 ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
25387 if test "x$ac_cv_func_ldexpl" = xyes; then :
25388 cat >>confdefs.h <<_ACEOF
25389 #define HAVE_LDEXPL 1
25390 _ACEOF
25393 done
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
25400 $as_echo_n "checking for logl declaration... " >&6; }
25401 if test x${glibcxx_cv_func_logl_use+set} != xset; then
25402 if ${glibcxx_cv_func_logl_use+:} false; then :
25403 $as_echo_n "(cached) " >&6
25404 else
25407 ac_ext=cpp
25408 ac_cpp='$CXXCPP $CPPFLAGS'
25409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25414 /* end confdefs.h. */
25415 #include <math.h>
25416 #ifdef HAVE_IEEEFP_H
25417 #include <ieeefp.h>
25418 #endif
25421 main ()
25423 logl(0);
25425 return 0;
25427 _ACEOF
25428 if ac_fn_cxx_try_compile "$LINENO"; then :
25429 glibcxx_cv_func_logl_use=yes
25430 else
25431 glibcxx_cv_func_logl_use=no
25433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25434 ac_ext=c
25435 ac_cpp='$CPP $CPPFLAGS'
25436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
25445 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
25447 if test x$glibcxx_cv_func_logl_use = x"yes"; then
25448 for ac_func in logl
25449 do :
25450 ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
25451 if test "x$ac_cv_func_logl" = xyes; then :
25452 cat >>confdefs.h <<_ACEOF
25453 #define HAVE_LOGL 1
25454 _ACEOF
25457 done
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
25464 $as_echo_n "checking for log10l declaration... " >&6; }
25465 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
25466 if ${glibcxx_cv_func_log10l_use+:} false; then :
25467 $as_echo_n "(cached) " >&6
25468 else
25471 ac_ext=cpp
25472 ac_cpp='$CXXCPP $CPPFLAGS'
25473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25478 /* end confdefs.h. */
25479 #include <math.h>
25480 #ifdef HAVE_IEEEFP_H
25481 #include <ieeefp.h>
25482 #endif
25485 main ()
25487 log10l(0);
25489 return 0;
25491 _ACEOF
25492 if ac_fn_cxx_try_compile "$LINENO"; then :
25493 glibcxx_cv_func_log10l_use=yes
25494 else
25495 glibcxx_cv_func_log10l_use=no
25497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25498 ac_ext=c
25499 ac_cpp='$CPP $CPPFLAGS'
25500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
25509 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
25511 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
25512 for ac_func in log10l
25513 do :
25514 ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
25515 if test "x$ac_cv_func_log10l" = xyes; then :
25516 cat >>confdefs.h <<_ACEOF
25517 #define HAVE_LOG10L 1
25518 _ACEOF
25521 done
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
25528 $as_echo_n "checking for modfl declaration... " >&6; }
25529 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
25530 if ${glibcxx_cv_func_modfl_use+:} false; then :
25531 $as_echo_n "(cached) " >&6
25532 else
25535 ac_ext=cpp
25536 ac_cpp='$CXXCPP $CPPFLAGS'
25537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25542 /* end confdefs.h. */
25543 #include <math.h>
25545 main ()
25547 modfl(0, 0);
25549 return 0;
25551 _ACEOF
25552 if ac_fn_cxx_try_compile "$LINENO"; then :
25553 glibcxx_cv_func_modfl_use=yes
25554 else
25555 glibcxx_cv_func_modfl_use=no
25557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25558 ac_ext=c
25559 ac_cpp='$CPP $CPPFLAGS'
25560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
25569 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
25571 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
25572 for ac_func in modfl
25573 do :
25574 ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
25575 if test "x$ac_cv_func_modfl" = xyes; then :
25576 cat >>confdefs.h <<_ACEOF
25577 #define HAVE_MODFL 1
25578 _ACEOF
25581 done
25587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
25588 $as_echo_n "checking for powl declaration... " >&6; }
25589 if test x${glibcxx_cv_func_powl_use+set} != xset; then
25590 if ${glibcxx_cv_func_powl_use+:} false; then :
25591 $as_echo_n "(cached) " >&6
25592 else
25595 ac_ext=cpp
25596 ac_cpp='$CXXCPP $CPPFLAGS'
25597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25602 /* end confdefs.h. */
25603 #include <math.h>
25605 main ()
25607 powl(0, 0);
25609 return 0;
25611 _ACEOF
25612 if ac_fn_cxx_try_compile "$LINENO"; then :
25613 glibcxx_cv_func_powl_use=yes
25614 else
25615 glibcxx_cv_func_powl_use=no
25617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25618 ac_ext=c
25619 ac_cpp='$CPP $CPPFLAGS'
25620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
25629 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
25631 if test x$glibcxx_cv_func_powl_use = x"yes"; then
25632 for ac_func in powl
25633 do :
25634 ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
25635 if test "x$ac_cv_func_powl" = xyes; then :
25636 cat >>confdefs.h <<_ACEOF
25637 #define HAVE_POWL 1
25638 _ACEOF
25641 done
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
25648 $as_echo_n "checking for sqrtl declaration... " >&6; }
25649 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
25650 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
25651 $as_echo_n "(cached) " >&6
25652 else
25655 ac_ext=cpp
25656 ac_cpp='$CXXCPP $CPPFLAGS'
25657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25662 /* end confdefs.h. */
25663 #include <math.h>
25664 #ifdef HAVE_IEEEFP_H
25665 #include <ieeefp.h>
25666 #endif
25669 main ()
25671 sqrtl(0);
25673 return 0;
25675 _ACEOF
25676 if ac_fn_cxx_try_compile "$LINENO"; then :
25677 glibcxx_cv_func_sqrtl_use=yes
25678 else
25679 glibcxx_cv_func_sqrtl_use=no
25681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25682 ac_ext=c
25683 ac_cpp='$CPP $CPPFLAGS'
25684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
25693 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
25695 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
25696 for ac_func in sqrtl
25697 do :
25698 ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
25699 if test "x$ac_cv_func_sqrtl" = xyes; then :
25700 cat >>confdefs.h <<_ACEOF
25701 #define HAVE_SQRTL 1
25702 _ACEOF
25705 done
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
25712 $as_echo_n "checking for sincosl declaration... " >&6; }
25713 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
25714 if ${glibcxx_cv_func_sincosl_use+:} false; then :
25715 $as_echo_n "(cached) " >&6
25716 else
25719 ac_ext=cpp
25720 ac_cpp='$CXXCPP $CPPFLAGS'
25721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25726 /* end confdefs.h. */
25727 #include <math.h>
25729 main ()
25731 sincosl(0, 0, 0);
25733 return 0;
25735 _ACEOF
25736 if ac_fn_cxx_try_compile "$LINENO"; then :
25737 glibcxx_cv_func_sincosl_use=yes
25738 else
25739 glibcxx_cv_func_sincosl_use=no
25741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25742 ac_ext=c
25743 ac_cpp='$CPP $CPPFLAGS'
25744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
25753 $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
25755 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
25756 for ac_func in sincosl
25757 do :
25758 ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
25759 if test "x$ac_cv_func_sincosl" = xyes; then :
25760 cat >>confdefs.h <<_ACEOF
25761 #define HAVE_SINCOSL 1
25762 _ACEOF
25765 done
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
25772 $as_echo_n "checking for finitel declaration... " >&6; }
25773 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
25774 if ${glibcxx_cv_func_finitel_use+:} false; then :
25775 $as_echo_n "(cached) " >&6
25776 else
25779 ac_ext=cpp
25780 ac_cpp='$CXXCPP $CPPFLAGS'
25781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25786 /* end confdefs.h. */
25787 #include <math.h>
25788 #ifdef HAVE_IEEEFP_H
25789 #include <ieeefp.h>
25790 #endif
25793 main ()
25795 finitel(0);
25797 return 0;
25799 _ACEOF
25800 if ac_fn_cxx_try_compile "$LINENO"; then :
25801 glibcxx_cv_func_finitel_use=yes
25802 else
25803 glibcxx_cv_func_finitel_use=no
25805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25806 ac_ext=c
25807 ac_cpp='$CPP $CPPFLAGS'
25808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
25817 $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
25819 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
25820 for ac_func in finitel
25821 do :
25822 ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
25823 if test "x$ac_cv_func_finitel" = xyes; then :
25824 cat >>confdefs.h <<_ACEOF
25825 #define HAVE_FINITEL 1
25826 _ACEOF
25829 done
25834 LIBS="$ac_save_LIBS"
25835 CXXFLAGS="$ac_save_CXXFLAGS"
25838 ac_test_CXXFLAGS="${CXXFLAGS+set}"
25839 ac_save_CXXFLAGS="$CXXFLAGS"
25840 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
25844 $as_echo_n "checking for at_quick_exit declaration... " >&6; }
25845 if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
25846 if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
25847 $as_echo_n "(cached) " >&6
25848 else
25851 ac_ext=cpp
25852 ac_cpp='$CXXCPP $CPPFLAGS'
25853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25858 /* end confdefs.h. */
25859 #include <stdlib.h>
25861 main ()
25863 at_quick_exit(0);
25865 return 0;
25867 _ACEOF
25868 if ac_fn_cxx_try_compile "$LINENO"; then :
25869 glibcxx_cv_func_at_quick_exit_use=yes
25870 else
25871 glibcxx_cv_func_at_quick_exit_use=no
25873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25874 ac_ext=c
25875 ac_cpp='$CPP $CPPFLAGS'
25876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
25885 $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
25886 if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
25887 for ac_func in at_quick_exit
25888 do :
25889 ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
25890 if test "x$ac_cv_func_at_quick_exit" = xyes; then :
25891 cat >>confdefs.h <<_ACEOF
25892 #define HAVE_AT_QUICK_EXIT 1
25893 _ACEOF
25896 done
25901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
25902 $as_echo_n "checking for quick_exit declaration... " >&6; }
25903 if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
25904 if ${glibcxx_cv_func_quick_exit_use+:} false; then :
25905 $as_echo_n "(cached) " >&6
25906 else
25909 ac_ext=cpp
25910 ac_cpp='$CXXCPP $CPPFLAGS'
25911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25916 /* end confdefs.h. */
25917 #include <stdlib.h>
25919 main ()
25921 quick_exit(0);
25923 return 0;
25925 _ACEOF
25926 if ac_fn_cxx_try_compile "$LINENO"; then :
25927 glibcxx_cv_func_quick_exit_use=yes
25928 else
25929 glibcxx_cv_func_quick_exit_use=no
25931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25932 ac_ext=c
25933 ac_cpp='$CPP $CPPFLAGS'
25934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
25943 $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
25944 if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
25945 for ac_func in quick_exit
25946 do :
25947 ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
25948 if test "x$ac_cv_func_quick_exit" = xyes; then :
25949 cat >>confdefs.h <<_ACEOF
25950 #define HAVE_QUICK_EXIT 1
25951 _ACEOF
25954 done
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
25960 $as_echo_n "checking for strtold declaration... " >&6; }
25961 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
25962 if ${glibcxx_cv_func_strtold_use+:} false; then :
25963 $as_echo_n "(cached) " >&6
25964 else
25967 ac_ext=cpp
25968 ac_cpp='$CXXCPP $CPPFLAGS'
25969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25974 /* end confdefs.h. */
25975 #include <stdlib.h>
25977 main ()
25979 strtold(0, 0);
25981 return 0;
25983 _ACEOF
25984 if ac_fn_cxx_try_compile "$LINENO"; then :
25985 glibcxx_cv_func_strtold_use=yes
25986 else
25987 glibcxx_cv_func_strtold_use=no
25989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25990 ac_ext=c
25991 ac_cpp='$CPP $CPPFLAGS'
25992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
26001 $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
26002 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
26003 for ac_func in strtold
26004 do :
26005 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
26006 if test "x$ac_cv_func_strtold" = xyes; then :
26007 cat >>confdefs.h <<_ACEOF
26008 #define HAVE_STRTOLD 1
26009 _ACEOF
26012 done
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
26018 $as_echo_n "checking for strtof declaration... " >&6; }
26019 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
26020 if ${glibcxx_cv_func_strtof_use+:} false; then :
26021 $as_echo_n "(cached) " >&6
26022 else
26025 ac_ext=cpp
26026 ac_cpp='$CXXCPP $CPPFLAGS'
26027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26032 /* end confdefs.h. */
26033 #include <stdlib.h>
26035 main ()
26037 strtof(0, 0);
26039 return 0;
26041 _ACEOF
26042 if ac_fn_cxx_try_compile "$LINENO"; then :
26043 glibcxx_cv_func_strtof_use=yes
26044 else
26045 glibcxx_cv_func_strtof_use=no
26047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26048 ac_ext=c
26049 ac_cpp='$CPP $CPPFLAGS'
26050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
26059 $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
26060 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
26061 for ac_func in strtof
26062 do :
26063 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
26064 if test "x$ac_cv_func_strtof" = xyes; then :
26065 cat >>confdefs.h <<_ACEOF
26066 #define HAVE_STRTOF 1
26067 _ACEOF
26070 done
26075 CXXFLAGS="$ac_save_CXXFLAGS"
26078 # For /dev/random and /dev/urandom for std::random_device.
26081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/random\" and \"/dev/urandom\" for std::random_device" >&5
26082 $as_echo_n "checking for \"/dev/random\" and \"/dev/urandom\" for std::random_device... " >&6; }
26083 if ${glibcxx_cv_dev_random+:} false; then :
26084 $as_echo_n "(cached) " >&6
26085 else
26087 if test -r /dev/random && test -r /dev/urandom; then
26088 ## For MSys environment the test above is detected as false-positive
26089 ## on mingw-targets. So disable it explicitly for them.
26090 case ${target_os} in
26091 *mingw*) glibcxx_cv_dev_random=no ;;
26092 *) glibcxx_cv_dev_random=yes ;;
26093 esac
26094 else
26095 glibcxx_cv_dev_random=no;
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_dev_random" >&5
26100 $as_echo "$glibcxx_cv_dev_random" >&6; }
26102 if test x"$glibcxx_cv_dev_random" = x"yes"; then
26104 $as_echo "#define _GLIBCXX_USE_DEV_RANDOM 1" >>confdefs.h
26107 $as_echo "#define _GLIBCXX_USE_RANDOM_TR1 1" >>confdefs.h
26113 # For TLS support.
26116 # Check whether --enable-tls was given.
26117 if test "${enable_tls+set}" = set; then :
26118 enableval=$enable_tls;
26119 case "$enableval" in
26120 yes|no) ;;
26121 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
26122 esac
26124 else
26125 enable_tls=yes
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
26130 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
26131 if ${gcc_cv_have_tls+:} false; then :
26132 $as_echo_n "(cached) " >&6
26133 else
26135 if test "$cross_compiling" = yes; then :
26136 if test x$gcc_no_link = xyes; then
26137 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26140 /* end confdefs.h. */
26141 __thread int a; int b; int main() { return a = b; }
26142 _ACEOF
26143 if ac_fn_c_try_link "$LINENO"; then :
26144 chktls_save_LDFLAGS="$LDFLAGS"
26145 case $host in
26146 *-*-linux* | -*-uclinuxfdpic*)
26147 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
26149 esac
26150 chktls_save_CFLAGS="$CFLAGS"
26151 CFLAGS="-fPIC $CFLAGS"
26152 if test x$gcc_no_link = xyes; then
26153 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26156 /* end confdefs.h. */
26157 int f() { return 0; }
26158 _ACEOF
26159 if ac_fn_c_try_link "$LINENO"; then :
26160 if test x$gcc_no_link = xyes; then
26161 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26164 /* end confdefs.h. */
26165 __thread int a; int b; int f() { return a = b; }
26166 _ACEOF
26167 if ac_fn_c_try_link "$LINENO"; then :
26168 gcc_cv_have_tls=yes
26169 else
26170 gcc_cv_have_tls=no
26172 rm -f core conftest.err conftest.$ac_objext \
26173 conftest$ac_exeext conftest.$ac_ext
26174 else
26175 gcc_cv_have_tls=yes
26177 rm -f core conftest.err conftest.$ac_objext \
26178 conftest$ac_exeext conftest.$ac_ext
26179 CFLAGS="$chktls_save_CFLAGS"
26180 LDFLAGS="$chktls_save_LDFLAGS"
26181 else
26182 gcc_cv_have_tls=no
26184 rm -f core conftest.err conftest.$ac_objext \
26185 conftest$ac_exeext conftest.$ac_ext
26188 else
26189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26190 /* end confdefs.h. */
26191 __thread int a; int b; int main() { return a = b; }
26192 _ACEOF
26193 if ac_fn_c_try_run "$LINENO"; then :
26194 chktls_save_LDFLAGS="$LDFLAGS"
26195 LDFLAGS="-static $LDFLAGS"
26196 if test x$gcc_no_link = xyes; then
26197 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26200 /* end confdefs.h. */
26201 int main() { return 0; }
26202 _ACEOF
26203 if ac_fn_c_try_link "$LINENO"; then :
26204 if test "$cross_compiling" = yes; then :
26205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26207 as_fn_error $? "cannot run test program while cross compiling
26208 See \`config.log' for more details" "$LINENO" 5; }
26209 else
26210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26211 /* end confdefs.h. */
26212 __thread int a; int b; int main() { return a = b; }
26213 _ACEOF
26214 if ac_fn_c_try_run "$LINENO"; then :
26215 gcc_cv_have_tls=yes
26216 else
26217 gcc_cv_have_tls=no
26219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26220 conftest.$ac_objext conftest.beam conftest.$ac_ext
26223 else
26224 gcc_cv_have_tls=yes
26226 rm -f core conftest.err conftest.$ac_objext \
26227 conftest$ac_exeext conftest.$ac_ext
26228 LDFLAGS="$chktls_save_LDFLAGS"
26229 if test $gcc_cv_have_tls = yes; then
26230 chktls_save_CFLAGS="$CFLAGS"
26231 thread_CFLAGS=failed
26232 for flag in '' '-pthread' '-lpthread'; do
26233 CFLAGS="$flag $chktls_save_CFLAGS"
26234 if test x$gcc_no_link = xyes; then
26235 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26238 /* end confdefs.h. */
26239 #include <pthread.h>
26240 void *g(void *d) { return NULL; }
26242 main ()
26244 pthread_t t; pthread_create(&t,NULL,g,NULL);
26246 return 0;
26248 _ACEOF
26249 if ac_fn_c_try_link "$LINENO"; then :
26250 thread_CFLAGS="$flag"
26252 rm -f core conftest.err conftest.$ac_objext \
26253 conftest$ac_exeext conftest.$ac_ext
26254 if test "X$thread_CFLAGS" != Xfailed; then
26255 break
26257 done
26258 CFLAGS="$chktls_save_CFLAGS"
26259 if test "X$thread_CFLAGS" != Xfailed; then
26260 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
26261 if test "$cross_compiling" = yes; then :
26262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26264 as_fn_error $? "cannot run test program while cross compiling
26265 See \`config.log' for more details" "$LINENO" 5; }
26266 else
26267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26268 /* end confdefs.h. */
26269 #include <pthread.h>
26270 __thread int a;
26271 static int *volatile a_in_other_thread;
26272 static void *
26273 thread_func (void *arg)
26275 a_in_other_thread = &a;
26276 return (void *)0;
26279 main ()
26281 pthread_t thread;
26282 void *thread_retval;
26283 int *volatile a_in_main_thread;
26284 a_in_main_thread = &a;
26285 if (pthread_create (&thread, (pthread_attr_t *)0,
26286 thread_func, (void *)0))
26287 return 0;
26288 if (pthread_join (thread, &thread_retval))
26289 return 0;
26290 return (a_in_other_thread == a_in_main_thread);
26292 return 0;
26294 _ACEOF
26295 if ac_fn_c_try_run "$LINENO"; then :
26296 gcc_cv_have_tls=yes
26297 else
26298 gcc_cv_have_tls=no
26300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26301 conftest.$ac_objext conftest.beam conftest.$ac_ext
26304 CFLAGS="$chktls_save_CFLAGS"
26307 else
26308 gcc_cv_have_tls=no
26310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26311 conftest.$ac_objext conftest.beam conftest.$ac_ext
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
26316 $as_echo "$gcc_cv_have_tls" >&6; }
26317 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
26319 $as_echo "#define HAVE_TLS 1" >>confdefs.h
26323 for ac_func in __cxa_thread_atexit_impl __cxa_thread_atexit
26324 do :
26325 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26326 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26327 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26328 cat >>confdefs.h <<_ACEOF
26329 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26330 _ACEOF
26333 done
26335 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
26336 do :
26337 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26338 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26339 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26340 cat >>confdefs.h <<_ACEOF
26341 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26342 _ACEOF
26345 done
26347 for ac_func in _wfopen
26348 do :
26349 ac_fn_c_check_func "$LINENO" "_wfopen" "ac_cv_func__wfopen"
26350 if test "x$ac_cv_func__wfopen" = xyes; then :
26351 cat >>confdefs.h <<_ACEOF
26352 #define HAVE__WFOPEN 1
26353 _ACEOF
26356 done
26358 for ac_func in secure_getenv
26359 do :
26360 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
26361 if test "x$ac_cv_func_secure_getenv" = xyes; then :
26362 cat >>confdefs.h <<_ACEOF
26363 #define HAVE_SECURE_GETENV 1
26364 _ACEOF
26367 done
26370 # C11 functions for C++17 library
26371 for ac_func in timespec_get
26372 do :
26373 ac_fn_c_check_func "$LINENO" "timespec_get" "ac_cv_func_timespec_get"
26374 if test "x$ac_cv_func_timespec_get" = xyes; then :
26375 cat >>confdefs.h <<_ACEOF
26376 #define HAVE_TIMESPEC_GET 1
26377 _ACEOF
26380 done
26383 # For Networking TS.
26384 for ac_func in sockatmark
26385 do :
26386 ac_fn_c_check_func "$LINENO" "sockatmark" "ac_cv_func_sockatmark"
26387 if test "x$ac_cv_func_sockatmark" = xyes; then :
26388 cat >>confdefs.h <<_ACEOF
26389 #define HAVE_SOCKATMARK 1
26390 _ACEOF
26393 done
26396 # Non-standard functions used by C++17 std::from_chars
26397 for ac_func in uselocale
26398 do :
26399 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
26400 if test "x$ac_cv_func_uselocale" = xyes; then :
26401 cat >>confdefs.h <<_ACEOF
26402 #define HAVE_USELOCALE 1
26403 _ACEOF
26406 done
26409 # For iconv support.
26411 if test "X$prefix" = "XNONE"; then
26412 acl_final_prefix="$ac_default_prefix"
26413 else
26414 acl_final_prefix="$prefix"
26416 if test "X$exec_prefix" = "XNONE"; then
26417 acl_final_exec_prefix='${prefix}'
26418 else
26419 acl_final_exec_prefix="$exec_prefix"
26421 acl_save_prefix="$prefix"
26422 prefix="$acl_final_prefix"
26423 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
26424 prefix="$acl_save_prefix"
26427 # Check whether --with-gnu-ld was given.
26428 if test "${with_gnu_ld+set}" = set; then :
26429 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
26430 else
26431 with_gnu_ld=no
26434 # Prepare PATH_SEPARATOR.
26435 # The user is always right.
26436 if test "${PATH_SEPARATOR+set}" != set; then
26437 echo "#! /bin/sh" >conf$$.sh
26438 echo "exit 0" >>conf$$.sh
26439 chmod +x conf$$.sh
26440 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26441 PATH_SEPARATOR=';'
26442 else
26443 PATH_SEPARATOR=:
26445 rm -f conf$$.sh
26447 ac_prog=ld
26448 if test "$GCC" = yes; then
26449 # Check if gcc -print-prog-name=ld gives a path.
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
26451 $as_echo_n "checking for ld used by GCC... " >&6; }
26452 case $host in
26453 *-*-mingw*)
26454 # gcc leaves a trailing carriage return which upsets mingw
26455 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
26457 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
26458 esac
26459 case $ac_prog in
26460 # Accept absolute paths.
26461 [\\/]* | [A-Za-z]:[\\/]*)
26462 re_direlt='/[^/][^/]*/\.\./'
26463 # Canonicalize the path of ld
26464 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
26465 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
26466 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
26467 done
26468 test -z "$LD" && LD="$ac_prog"
26471 # If it fails, then pretend we aren't using GCC.
26472 ac_prog=ld
26475 # If it is relative, then search for the first ld in PATH.
26476 with_gnu_ld=unknown
26478 esac
26479 elif test "$with_gnu_ld" = yes; then
26480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
26481 $as_echo_n "checking for GNU ld... " >&6; }
26482 else
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
26484 $as_echo_n "checking for non-GNU ld... " >&6; }
26486 if ${acl_cv_path_LD+:} false; then :
26487 $as_echo_n "(cached) " >&6
26488 else
26489 if test -z "$LD"; then
26490 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
26491 for ac_dir in $PATH; do
26492 test -z "$ac_dir" && ac_dir=.
26493 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
26494 acl_cv_path_LD="$ac_dir/$ac_prog"
26495 # Check to see if the program is GNU ld. I'd rather use --version,
26496 # but apparently some GNU ld's only accept -v.
26497 # Break only if it was the GNU/non-GNU ld that we prefer.
26498 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
26499 test "$with_gnu_ld" != no && break
26500 else
26501 test "$with_gnu_ld" != yes && break
26504 done
26505 IFS="$ac_save_ifs"
26506 else
26507 acl_cv_path_LD="$LD" # Let the user override the test with a path.
26511 LD="$acl_cv_path_LD"
26512 if test -n "$LD"; then
26513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
26514 $as_echo "$LD" >&6; }
26515 else
26516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26517 $as_echo "no" >&6; }
26519 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
26520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
26521 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
26522 if ${acl_cv_prog_gnu_ld+:} false; then :
26523 $as_echo_n "(cached) " >&6
26524 else
26525 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
26526 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
26527 acl_cv_prog_gnu_ld=yes
26528 else
26529 acl_cv_prog_gnu_ld=no
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
26533 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
26534 with_gnu_ld=$acl_cv_prog_gnu_ld
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
26539 $as_echo_n "checking for shared library run path origin... " >&6; }
26540 if ${acl_cv_rpath+:} false; then :
26541 $as_echo_n "(cached) " >&6
26542 else
26544 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
26545 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
26546 . ./conftest.sh
26547 rm -f ./conftest.sh
26548 acl_cv_rpath=done
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
26552 $as_echo "$acl_cv_rpath" >&6; }
26553 wl="$acl_cv_wl"
26554 libext="$acl_cv_libext"
26555 shlibext="$acl_cv_shlibext"
26556 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
26557 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
26558 hardcode_direct="$acl_cv_hardcode_direct"
26559 hardcode_minus_L="$acl_cv_hardcode_minus_L"
26560 # Check whether --enable-rpath was given.
26561 if test "${enable_rpath+set}" = set; then :
26562 enableval=$enable_rpath; :
26563 else
26564 enable_rpath=yes
26574 use_additional=yes
26576 acl_save_prefix="$prefix"
26577 prefix="$acl_final_prefix"
26578 acl_save_exec_prefix="$exec_prefix"
26579 exec_prefix="$acl_final_exec_prefix"
26581 eval additional_includedir=\"$includedir\"
26582 eval additional_libdir=\"$libdir\"
26584 exec_prefix="$acl_save_exec_prefix"
26585 prefix="$acl_save_prefix"
26588 # Check whether --with-libiconv-prefix was given.
26589 if test "${with_libiconv_prefix+set}" = set; then :
26590 withval=$with_libiconv_prefix;
26591 if test "X$withval" = "Xno"; then
26592 use_additional=no
26593 else
26594 if test "X$withval" = "X"; then
26596 acl_save_prefix="$prefix"
26597 prefix="$acl_final_prefix"
26598 acl_save_exec_prefix="$exec_prefix"
26599 exec_prefix="$acl_final_exec_prefix"
26601 eval additional_includedir=\"$includedir\"
26602 eval additional_libdir=\"$libdir\"
26604 exec_prefix="$acl_save_exec_prefix"
26605 prefix="$acl_save_prefix"
26607 else
26608 additional_includedir="$withval/include"
26609 additional_libdir="$withval/lib"
26616 # Check whether --with-libiconv-type was given.
26617 if test "${with_libiconv_type+set}" = set; then :
26618 withval=$with_libiconv_type; with_libiconv_type=$withval
26619 else
26620 with_libiconv_type=auto
26623 lib_type=`eval echo \$with_libiconv_type`
26625 LIBICONV=
26626 LTLIBICONV=
26627 INCICONV=
26628 rpathdirs=
26629 ltrpathdirs=
26630 names_already_handled=
26631 names_next_round='iconv '
26632 while test -n "$names_next_round"; do
26633 names_this_round="$names_next_round"
26634 names_next_round=
26635 for name in $names_this_round; do
26636 already_handled=
26637 for n in $names_already_handled; do
26638 if test "$n" = "$name"; then
26639 already_handled=yes
26640 break
26642 done
26643 if test -z "$already_handled"; then
26644 names_already_handled="$names_already_handled $name"
26645 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26646 eval value=\"\$HAVE_LIB$uppername\"
26647 if test -n "$value"; then
26648 if test "$value" = yes; then
26649 eval value=\"\$LIB$uppername\"
26650 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
26651 eval value=\"\$LTLIB$uppername\"
26652 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
26653 else
26656 else
26657 found_dir=
26658 found_la=
26659 found_so=
26660 found_a=
26661 if test $use_additional = yes; then
26662 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
26663 found_dir="$additional_libdir"
26664 found_so="$additional_libdir/lib$name.$shlibext"
26665 if test -f "$additional_libdir/lib$name.la"; then
26666 found_la="$additional_libdir/lib$name.la"
26668 elif test x$lib_type != xshared; then
26669 if test -f "$additional_libdir/lib$name.$libext"; then
26670 found_dir="$additional_libdir"
26671 found_a="$additional_libdir/lib$name.$libext"
26672 if test -f "$additional_libdir/lib$name.la"; then
26673 found_la="$additional_libdir/lib$name.la"
26678 if test "X$found_dir" = "X"; then
26679 for x in $LDFLAGS $LTLIBICONV; do
26681 acl_save_prefix="$prefix"
26682 prefix="$acl_final_prefix"
26683 acl_save_exec_prefix="$exec_prefix"
26684 exec_prefix="$acl_final_exec_prefix"
26685 eval x=\"$x\"
26686 exec_prefix="$acl_save_exec_prefix"
26687 prefix="$acl_save_prefix"
26689 case "$x" in
26690 -L*)
26691 dir=`echo "X$x" | sed -e 's/^X-L//'`
26692 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
26693 found_dir="$dir"
26694 found_so="$dir/lib$name.$shlibext"
26695 if test -f "$dir/lib$name.la"; then
26696 found_la="$dir/lib$name.la"
26698 elif test x$lib_type != xshared; then
26699 if test -f "$dir/lib$name.$libext"; then
26700 found_dir="$dir"
26701 found_a="$dir/lib$name.$libext"
26702 if test -f "$dir/lib$name.la"; then
26703 found_la="$dir/lib$name.la"
26708 esac
26709 if test "X$found_dir" != "X"; then
26710 break
26712 done
26714 if test "X$found_dir" != "X"; then
26715 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
26716 if test "X$found_so" != "X"; then
26717 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
26718 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26719 else
26720 haveit=
26721 for x in $ltrpathdirs; do
26722 if test "X$x" = "X$found_dir"; then
26723 haveit=yes
26724 break
26726 done
26727 if test -z "$haveit"; then
26728 ltrpathdirs="$ltrpathdirs $found_dir"
26730 if test "$hardcode_direct" = yes; then
26731 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26732 else
26733 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
26734 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26735 haveit=
26736 for x in $rpathdirs; do
26737 if test "X$x" = "X$found_dir"; then
26738 haveit=yes
26739 break
26741 done
26742 if test -z "$haveit"; then
26743 rpathdirs="$rpathdirs $found_dir"
26745 else
26746 haveit=
26747 for x in $LDFLAGS $LIBICONV; do
26749 acl_save_prefix="$prefix"
26750 prefix="$acl_final_prefix"
26751 acl_save_exec_prefix="$exec_prefix"
26752 exec_prefix="$acl_final_exec_prefix"
26753 eval x=\"$x\"
26754 exec_prefix="$acl_save_exec_prefix"
26755 prefix="$acl_save_prefix"
26757 if test "X$x" = "X-L$found_dir"; then
26758 haveit=yes
26759 break
26761 done
26762 if test -z "$haveit"; then
26763 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
26765 if test "$hardcode_minus_L" != no; then
26766 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26767 else
26768 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
26773 else
26774 if test "X$found_a" != "X"; then
26775 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
26776 else
26777 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
26780 additional_includedir=
26781 case "$found_dir" in
26782 */lib | */lib/)
26783 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
26784 additional_includedir="$basedir/include"
26786 esac
26787 if test "X$additional_includedir" != "X"; then
26788 if test "X$additional_includedir" != "X/usr/include"; then
26789 haveit=
26790 if test "X$additional_includedir" = "X/usr/local/include"; then
26791 if test -n "$GCC"; then
26792 case $host_os in
26793 linux*) haveit=yes;;
26794 esac
26797 if test -z "$haveit"; then
26798 for x in $CPPFLAGS $INCICONV; do
26800 acl_save_prefix="$prefix"
26801 prefix="$acl_final_prefix"
26802 acl_save_exec_prefix="$exec_prefix"
26803 exec_prefix="$acl_final_exec_prefix"
26804 eval x=\"$x\"
26805 exec_prefix="$acl_save_exec_prefix"
26806 prefix="$acl_save_prefix"
26808 if test "X$x" = "X-I$additional_includedir"; then
26809 haveit=yes
26810 break
26812 done
26813 if test -z "$haveit"; then
26814 if test -d "$additional_includedir"; then
26815 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
26821 if test -n "$found_la"; then
26822 save_libdir="$libdir"
26823 case "$found_la" in
26824 */* | *\\*) . "$found_la" ;;
26825 *) . "./$found_la" ;;
26826 esac
26827 libdir="$save_libdir"
26828 for dep in $dependency_libs; do
26829 case "$dep" in
26830 -L*)
26831 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26832 if test "X$additional_libdir" != "X/usr/lib"; then
26833 haveit=
26834 if test "X$additional_libdir" = "X/usr/local/lib"; then
26835 if test -n "$GCC"; then
26836 case $host_os in
26837 linux*) haveit=yes;;
26838 esac
26841 if test -z "$haveit"; then
26842 haveit=
26843 for x in $LDFLAGS $LIBICONV; do
26845 acl_save_prefix="$prefix"
26846 prefix="$acl_final_prefix"
26847 acl_save_exec_prefix="$exec_prefix"
26848 exec_prefix="$acl_final_exec_prefix"
26849 eval x=\"$x\"
26850 exec_prefix="$acl_save_exec_prefix"
26851 prefix="$acl_save_prefix"
26853 if test "X$x" = "X-L$additional_libdir"; then
26854 haveit=yes
26855 break
26857 done
26858 if test -z "$haveit"; then
26859 if test -d "$additional_libdir"; then
26860 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
26863 haveit=
26864 for x in $LDFLAGS $LTLIBICONV; do
26866 acl_save_prefix="$prefix"
26867 prefix="$acl_final_prefix"
26868 acl_save_exec_prefix="$exec_prefix"
26869 exec_prefix="$acl_final_exec_prefix"
26870 eval x=\"$x\"
26871 exec_prefix="$acl_save_exec_prefix"
26872 prefix="$acl_save_prefix"
26874 if test "X$x" = "X-L$additional_libdir"; then
26875 haveit=yes
26876 break
26878 done
26879 if test -z "$haveit"; then
26880 if test -d "$additional_libdir"; then
26881 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
26887 -R*)
26888 dir=`echo "X$dep" | sed -e 's/^X-R//'`
26889 if test "$enable_rpath" != no; then
26890 haveit=
26891 for x in $rpathdirs; do
26892 if test "X$x" = "X$dir"; then
26893 haveit=yes
26894 break
26896 done
26897 if test -z "$haveit"; then
26898 rpathdirs="$rpathdirs $dir"
26900 haveit=
26901 for x in $ltrpathdirs; do
26902 if test "X$x" = "X$dir"; then
26903 haveit=yes
26904 break
26906 done
26907 if test -z "$haveit"; then
26908 ltrpathdirs="$ltrpathdirs $dir"
26912 -l*)
26913 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26915 *.la)
26916 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26919 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
26920 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
26922 esac
26923 done
26925 else
26926 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
26927 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
26928 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
26929 else
26930 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
26931 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
26936 done
26937 done
26938 if test "X$rpathdirs" != "X"; then
26939 if test -n "$hardcode_libdir_separator"; then
26940 alldirs=
26941 for found_dir in $rpathdirs; do
26942 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26943 done
26944 acl_save_libdir="$libdir"
26945 libdir="$alldirs"
26946 eval flag=\"$hardcode_libdir_flag_spec\"
26947 libdir="$acl_save_libdir"
26948 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26949 else
26950 for found_dir in $rpathdirs; do
26951 acl_save_libdir="$libdir"
26952 libdir="$found_dir"
26953 eval flag=\"$hardcode_libdir_flag_spec\"
26954 libdir="$acl_save_libdir"
26955 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26956 done
26959 if test "X$ltrpathdirs" != "X"; then
26960 for found_dir in $ltrpathdirs; do
26961 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
26962 done
26971 am_save_CPPFLAGS="$CPPFLAGS"
26973 for element in $INCICONV; do
26974 haveit=
26975 for x in $CPPFLAGS; do
26977 acl_save_prefix="$prefix"
26978 prefix="$acl_final_prefix"
26979 acl_save_exec_prefix="$exec_prefix"
26980 exec_prefix="$acl_final_exec_prefix"
26981 eval x=\"$x\"
26982 exec_prefix="$acl_save_exec_prefix"
26983 prefix="$acl_save_prefix"
26985 if test "X$x" = "X$element"; then
26986 haveit=yes
26987 break
26989 done
26990 if test -z "$haveit"; then
26991 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26993 done
26996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
26997 $as_echo_n "checking for iconv... " >&6; }
26998 if ${am_cv_func_iconv+:} false; then :
26999 $as_echo_n "(cached) " >&6
27000 else
27002 am_cv_func_iconv="no, consider installing GNU libiconv"
27003 am_cv_lib_iconv=no
27004 if test x$gcc_no_link = xyes; then
27005 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27008 /* end confdefs.h. */
27010 #include <stdlib.h>
27011 #include <iconv.h>
27014 main ()
27016 iconv_t cd = iconv_open("","");
27017 iconv(cd,NULL,NULL,NULL,NULL);
27018 iconv_close(cd);
27020 return 0;
27022 _ACEOF
27023 if ac_fn_c_try_link "$LINENO"; then :
27024 am_cv_func_iconv=yes
27026 rm -f core conftest.err conftest.$ac_objext \
27027 conftest$ac_exeext conftest.$ac_ext
27028 if test "$am_cv_func_iconv" != yes; then
27029 am_save_LIBS="$LIBS"
27030 LIBS="$LIBS $LIBICONV"
27031 if test x$gcc_no_link = xyes; then
27032 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27035 /* end confdefs.h. */
27037 #include <stdlib.h>
27038 #include <iconv.h>
27041 main ()
27043 iconv_t cd = iconv_open("","");
27044 iconv(cd,NULL,NULL,NULL,NULL);
27045 iconv_close(cd);
27047 return 0;
27049 _ACEOF
27050 if ac_fn_c_try_link "$LINENO"; then :
27051 am_cv_lib_iconv=yes
27052 am_cv_func_iconv=yes
27054 rm -f core conftest.err conftest.$ac_objext \
27055 conftest$ac_exeext conftest.$ac_ext
27056 LIBS="$am_save_LIBS"
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
27061 $as_echo "$am_cv_func_iconv" >&6; }
27062 if test "$am_cv_func_iconv" = yes; then
27063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
27064 $as_echo_n "checking for working iconv... " >&6; }
27065 if ${am_cv_func_iconv_works+:} false; then :
27066 $as_echo_n "(cached) " >&6
27067 else
27069 am_save_LIBS="$LIBS"
27070 if test $am_cv_lib_iconv = yes; then
27071 LIBS="$LIBS $LIBICONV"
27073 am_cv_func_iconv_works=no
27074 for ac_iconv_const in '' 'const'; do
27075 if test "$cross_compiling" = yes; then :
27076 case "$host_os" in
27077 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
27078 *) am_cv_func_iconv_works="guessing yes" ;;
27079 esac
27080 else
27081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27082 /* end confdefs.h. */
27084 #include <iconv.h>
27085 #include <string.h>
27087 #ifndef ICONV_CONST
27088 # define ICONV_CONST $ac_iconv_const
27089 #endif
27092 main ()
27094 int result = 0;
27095 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
27096 successful returns. This is even documented in
27097 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
27099 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
27100 if (cd_utf8_to_88591 != (iconv_t)(-1))
27102 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
27103 char buf[10];
27104 ICONV_CONST char *inptr = input;
27105 size_t inbytesleft = strlen (input);
27106 char *outptr = buf;
27107 size_t outbytesleft = sizeof (buf);
27108 size_t res = iconv (cd_utf8_to_88591,
27109 &inptr, &inbytesleft,
27110 &outptr, &outbytesleft);
27111 if (res == 0)
27112 result |= 1;
27113 iconv_close (cd_utf8_to_88591);
27116 /* Test against Solaris 10 bug: Failures are not distinguishable from
27117 successful returns. */
27119 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
27120 if (cd_ascii_to_88591 != (iconv_t)(-1))
27122 static ICONV_CONST char input[] = "\263";
27123 char buf[10];
27124 ICONV_CONST char *inptr = input;
27125 size_t inbytesleft = strlen (input);
27126 char *outptr = buf;
27127 size_t outbytesleft = sizeof (buf);
27128 size_t res = iconv (cd_ascii_to_88591,
27129 &inptr, &inbytesleft,
27130 &outptr, &outbytesleft);
27131 if (res == 0)
27132 result |= 2;
27133 iconv_close (cd_ascii_to_88591);
27136 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
27138 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
27139 if (cd_88591_to_utf8 != (iconv_t)(-1))
27141 static ICONV_CONST char input[] = "\304";
27142 static char buf[2] = { (char)0xDE, (char)0xAD };
27143 ICONV_CONST char *inptr = input;
27144 size_t inbytesleft = 1;
27145 char *outptr = buf;
27146 size_t outbytesleft = 1;
27147 size_t res = iconv (cd_88591_to_utf8,
27148 &inptr, &inbytesleft,
27149 &outptr, &outbytesleft);
27150 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
27151 result |= 4;
27152 iconv_close (cd_88591_to_utf8);
27155 #if 0 /* This bug could be worked around by the caller. */
27156 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
27158 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
27159 if (cd_88591_to_utf8 != (iconv_t)(-1))
27161 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
27162 char buf[50];
27163 ICONV_CONST char *inptr = input;
27164 size_t inbytesleft = strlen (input);
27165 char *outptr = buf;
27166 size_t outbytesleft = sizeof (buf);
27167 size_t res = iconv (cd_88591_to_utf8,
27168 &inptr, &inbytesleft,
27169 &outptr, &outbytesleft);
27170 if ((int)res > 0)
27171 result |= 8;
27172 iconv_close (cd_88591_to_utf8);
27175 #endif
27176 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
27177 provided. */
27179 /* Try standardized names. */
27180 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
27181 /* Try IRIX, OSF/1 names. */
27182 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
27183 /* Try AIX names. */
27184 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
27185 /* Try HP-UX names. */
27186 iconv_t cd4 = iconv_open ("utf8", "eucJP");
27187 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
27188 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
27189 result |= 16;
27190 if (cd1 != (iconv_t)(-1))
27191 iconv_close (cd1);
27192 if (cd2 != (iconv_t)(-1))
27193 iconv_close (cd2);
27194 if (cd3 != (iconv_t)(-1))
27195 iconv_close (cd3);
27196 if (cd4 != (iconv_t)(-1))
27197 iconv_close (cd4);
27199 return result;
27202 return 0;
27204 _ACEOF
27205 if ac_fn_c_try_run "$LINENO"; then :
27206 am_cv_func_iconv_works=yes
27208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27209 conftest.$ac_objext conftest.beam conftest.$ac_ext
27212 test "$am_cv_func_iconv_works" = no || break
27213 done
27214 LIBS="$am_save_LIBS"
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
27218 $as_echo "$am_cv_func_iconv_works" >&6; }
27219 case "$am_cv_func_iconv_works" in
27220 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
27221 *) am_func_iconv=yes ;;
27222 esac
27223 else
27224 am_func_iconv=no am_cv_lib_iconv=no
27226 if test "$am_func_iconv" = yes; then
27228 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
27231 if test "$am_cv_lib_iconv" = yes; then
27232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
27233 $as_echo_n "checking how to link with libiconv... " >&6; }
27234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
27235 $as_echo "$LIBICONV" >&6; }
27236 else
27237 CPPFLAGS="$am_save_CPPFLAGS"
27238 LIBICONV=
27239 LTLIBICONV=
27244 if test "$am_cv_func_iconv" = yes; then
27245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
27246 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
27247 if ${gl_cv_iconv_nonconst+:} false; then :
27248 $as_echo_n "(cached) " >&6
27249 else
27250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27251 /* end confdefs.h. */
27253 #include <stdlib.h>
27254 #include <iconv.h>
27255 extern
27256 #ifdef __cplusplus
27258 #endif
27259 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
27262 main ()
27266 return 0;
27268 _ACEOF
27269 if ac_fn_c_try_compile "$LINENO"; then :
27270 gl_cv_iconv_nonconst=yes
27271 else
27272 gl_cv_iconv_nonconst=no
27274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
27278 $as_echo "$gl_cv_iconv_nonconst" >&6; }
27279 else
27280 gl_cv_iconv_nonconst=yes
27282 if test $gl_cv_iconv_nonconst = yes; then
27283 iconv_arg1=""
27284 else
27285 iconv_arg1="const"
27288 cat >>confdefs.h <<_ACEOF
27289 #define ICONV_CONST $iconv_arg1
27290 _ACEOF
27294 if test "$am_func_iconv" = yes; then
27295 if test -n "$LIBICONV"; then
27296 am_cv_func_iconv_summary='yes, in libiconv'
27297 else
27298 am_cv_func_iconv_summary='yes, in libc'
27300 else
27301 if test "$am_cv_func_iconv" = yes; then
27302 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
27303 else
27304 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
27309 else
27311 # This lets us hard-code the functionality we know we'll have in the cross
27312 # target environment. "Let" is a sugar-coated word placed on an especially
27313 # dull and tedious hack, actually.
27315 # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
27316 # that involve linking, can't be used:
27317 # "cannot open sim-crt0.o"
27318 # "cannot open crt0.o"
27319 # etc. All this is because there currently exists no unified, consistent
27320 # way for top level CC information to be passed down to target directories:
27321 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
27322 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
27323 # crosses can be removed.
27325 # If Canadian cross, then don't pick up tools from the build directory.
27326 # Used only in GLIBCXX_EXPORT_INCLUDES.
27327 if test -n "$with_cross_host" &&
27328 test x"$build_alias" != x"$with_cross_host" &&
27329 test x"$build" != x"$target";
27330 then
27331 CANADIAN=yes
27332 else
27333 CANADIAN=no
27336 # Construct crosses by hand, eliminating bits that need ld...
27337 # GLIBCXX_CHECK_MATH_SUPPORT
27339 # First, test for "known" system libraries. We may be using newlib even
27340 # on a hosted environment.
27341 if test "x${with_newlib}" = "xyes"; then
27342 os_include_dir="os/newlib"
27343 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
27346 # GLIBCXX_CHECK_STDLIB_SUPPORT
27347 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
27350 $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
27352 $as_echo "#define HAVE_ASINF 1" >>confdefs.h
27354 $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
27356 $as_echo "#define HAVE_ATANF 1" >>confdefs.h
27358 $as_echo "#define HAVE_CEILF 1" >>confdefs.h
27360 $as_echo "#define HAVE_COSF 1" >>confdefs.h
27362 $as_echo "#define HAVE_COSHF 1" >>confdefs.h
27364 $as_echo "#define HAVE_EXPF 1" >>confdefs.h
27366 $as_echo "#define HAVE_FABSF 1" >>confdefs.h
27368 $as_echo "#define HAVE_FLOORF 1" >>confdefs.h
27370 $as_echo "#define HAVE_FMODF 1" >>confdefs.h
27372 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
27374 $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
27376 $as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
27378 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
27380 $as_echo "#define HAVE_LOGF 1" >>confdefs.h
27382 $as_echo "#define HAVE_MODFF 1" >>confdefs.h
27384 $as_echo "#define HAVE_POWF 1" >>confdefs.h
27386 $as_echo "#define HAVE_SINF 1" >>confdefs.h
27388 $as_echo "#define HAVE_SINHF 1" >>confdefs.h
27390 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
27392 $as_echo "#define HAVE_TANF 1" >>confdefs.h
27394 $as_echo "#define HAVE_TANHF 1" >>confdefs.h
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl declaration" >&5
27401 $as_echo_n "checking for acosl declaration... " >&6; }
27402 if ${glibcxx_cv_func_acosl_use+:} false; then :
27403 $as_echo_n "(cached) " >&6
27404 else
27407 ac_ext=c
27408 ac_cpp='$CPP $CPPFLAGS'
27409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27414 /* end confdefs.h. */
27416 #include <math.h>
27417 #ifdef HAVE_IEEEFP_H
27418 # include <ieeefp.h>
27419 #endif
27420 #undef acosl
27423 main ()
27426 void (*f)(void) = (void (*)(void))acosl;
27429 return 0;
27431 _ACEOF
27432 if ac_fn_c_try_compile "$LINENO"; then :
27433 glibcxx_cv_func_acosl_use=yes
27435 else
27436 glibcxx_cv_func_acosl_use=no
27438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_acosl_use" >&5
27441 $as_echo "$glibcxx_cv_func_acosl_use" >&6; }
27442 if test "x$glibcxx_cv_func_acosl_use" = xyes; then
27443 cat >>confdefs.h <<_ACEOF
27444 #define HAVE_ACOSL 1
27445 _ACEOF
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl declaration" >&5
27452 $as_echo_n "checking for asinl declaration... " >&6; }
27453 if ${glibcxx_cv_func_asinl_use+:} false; then :
27454 $as_echo_n "(cached) " >&6
27455 else
27458 ac_ext=c
27459 ac_cpp='$CPP $CPPFLAGS'
27460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27465 /* end confdefs.h. */
27467 #include <math.h>
27468 #ifdef HAVE_IEEEFP_H
27469 # include <ieeefp.h>
27470 #endif
27471 #undef asinl
27474 main ()
27477 void (*f)(void) = (void (*)(void))asinl;
27480 return 0;
27482 _ACEOF
27483 if ac_fn_c_try_compile "$LINENO"; then :
27484 glibcxx_cv_func_asinl_use=yes
27486 else
27487 glibcxx_cv_func_asinl_use=no
27489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_asinl_use" >&5
27492 $as_echo "$glibcxx_cv_func_asinl_use" >&6; }
27493 if test "x$glibcxx_cv_func_asinl_use" = xyes; then
27494 cat >>confdefs.h <<_ACEOF
27495 #define HAVE_ASINL 1
27496 _ACEOF
27502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
27503 $as_echo_n "checking for atan2l declaration... " >&6; }
27504 if ${glibcxx_cv_func_atan2l_use+:} false; then :
27505 $as_echo_n "(cached) " >&6
27506 else
27509 ac_ext=c
27510 ac_cpp='$CPP $CPPFLAGS'
27511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27516 /* end confdefs.h. */
27518 #include <math.h>
27519 #ifdef HAVE_IEEEFP_H
27520 # include <ieeefp.h>
27521 #endif
27522 #undef atan2l
27525 main ()
27528 void (*f)(void) = (void (*)(void))atan2l;
27531 return 0;
27533 _ACEOF
27534 if ac_fn_c_try_compile "$LINENO"; then :
27535 glibcxx_cv_func_atan2l_use=yes
27537 else
27538 glibcxx_cv_func_atan2l_use=no
27540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
27543 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
27544 if test "x$glibcxx_cv_func_atan2l_use" = xyes; then
27545 cat >>confdefs.h <<_ACEOF
27546 #define HAVE_ATAN2L 1
27547 _ACEOF
27553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl declaration" >&5
27554 $as_echo_n "checking for atanl declaration... " >&6; }
27555 if ${glibcxx_cv_func_atanl_use+:} false; then :
27556 $as_echo_n "(cached) " >&6
27557 else
27560 ac_ext=c
27561 ac_cpp='$CPP $CPPFLAGS'
27562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27567 /* end confdefs.h. */
27569 #include <math.h>
27570 #ifdef HAVE_IEEEFP_H
27571 # include <ieeefp.h>
27572 #endif
27573 #undef atanl
27576 main ()
27579 void (*f)(void) = (void (*)(void))atanl;
27582 return 0;
27584 _ACEOF
27585 if ac_fn_c_try_compile "$LINENO"; then :
27586 glibcxx_cv_func_atanl_use=yes
27588 else
27589 glibcxx_cv_func_atanl_use=no
27591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atanl_use" >&5
27594 $as_echo "$glibcxx_cv_func_atanl_use" >&6; }
27595 if test "x$glibcxx_cv_func_atanl_use" = xyes; then
27596 cat >>confdefs.h <<_ACEOF
27597 #define HAVE_ATANL 1
27598 _ACEOF
27604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill declaration" >&5
27605 $as_echo_n "checking for ceill declaration... " >&6; }
27606 if ${glibcxx_cv_func_ceill_use+:} false; then :
27607 $as_echo_n "(cached) " >&6
27608 else
27611 ac_ext=c
27612 ac_cpp='$CPP $CPPFLAGS'
27613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27618 /* end confdefs.h. */
27620 #include <math.h>
27621 #ifdef HAVE_IEEEFP_H
27622 # include <ieeefp.h>
27623 #endif
27624 #undef ceill
27627 main ()
27630 void (*f)(void) = (void (*)(void))ceill;
27633 return 0;
27635 _ACEOF
27636 if ac_fn_c_try_compile "$LINENO"; then :
27637 glibcxx_cv_func_ceill_use=yes
27639 else
27640 glibcxx_cv_func_ceill_use=no
27642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ceill_use" >&5
27645 $as_echo "$glibcxx_cv_func_ceill_use" >&6; }
27646 if test "x$glibcxx_cv_func_ceill_use" = xyes; then
27647 cat >>confdefs.h <<_ACEOF
27648 #define HAVE_CEILL 1
27649 _ACEOF
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl declaration" >&5
27656 $as_echo_n "checking for coshl declaration... " >&6; }
27657 if ${glibcxx_cv_func_coshl_use+:} false; then :
27658 $as_echo_n "(cached) " >&6
27659 else
27662 ac_ext=c
27663 ac_cpp='$CPP $CPPFLAGS'
27664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27669 /* end confdefs.h. */
27671 #include <math.h>
27672 #ifdef HAVE_IEEEFP_H
27673 # include <ieeefp.h>
27674 #endif
27675 #undef coshl
27678 main ()
27681 void (*f)(void) = (void (*)(void))coshl;
27684 return 0;
27686 _ACEOF
27687 if ac_fn_c_try_compile "$LINENO"; then :
27688 glibcxx_cv_func_coshl_use=yes
27690 else
27691 glibcxx_cv_func_coshl_use=no
27693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_coshl_use" >&5
27696 $as_echo "$glibcxx_cv_func_coshl_use" >&6; }
27697 if test "x$glibcxx_cv_func_coshl_use" = xyes; then
27698 cat >>confdefs.h <<_ACEOF
27699 #define HAVE_COSHL 1
27700 _ACEOF
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl declaration" >&5
27707 $as_echo_n "checking for cosl declaration... " >&6; }
27708 if ${glibcxx_cv_func_cosl_use+:} false; then :
27709 $as_echo_n "(cached) " >&6
27710 else
27713 ac_ext=c
27714 ac_cpp='$CPP $CPPFLAGS'
27715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27720 /* end confdefs.h. */
27722 #include <math.h>
27723 #ifdef HAVE_IEEEFP_H
27724 # include <ieeefp.h>
27725 #endif
27726 #undef cosl
27729 main ()
27732 void (*f)(void) = (void (*)(void))cosl;
27735 return 0;
27737 _ACEOF
27738 if ac_fn_c_try_compile "$LINENO"; then :
27739 glibcxx_cv_func_cosl_use=yes
27741 else
27742 glibcxx_cv_func_cosl_use=no
27744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_cosl_use" >&5
27747 $as_echo "$glibcxx_cv_func_cosl_use" >&6; }
27748 if test "x$glibcxx_cv_func_cosl_use" = xyes; then
27749 cat >>confdefs.h <<_ACEOF
27750 #define HAVE_COSL 1
27751 _ACEOF
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
27758 $as_echo_n "checking for expl declaration... " >&6; }
27759 if ${glibcxx_cv_func_expl_use+:} false; then :
27760 $as_echo_n "(cached) " >&6
27761 else
27764 ac_ext=c
27765 ac_cpp='$CPP $CPPFLAGS'
27766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27771 /* end confdefs.h. */
27773 #include <math.h>
27774 #ifdef HAVE_IEEEFP_H
27775 # include <ieeefp.h>
27776 #endif
27777 #undef expl
27780 main ()
27783 void (*f)(void) = (void (*)(void))expl;
27786 return 0;
27788 _ACEOF
27789 if ac_fn_c_try_compile "$LINENO"; then :
27790 glibcxx_cv_func_expl_use=yes
27792 else
27793 glibcxx_cv_func_expl_use=no
27795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
27798 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
27799 if test "x$glibcxx_cv_func_expl_use" = xyes; then
27800 cat >>confdefs.h <<_ACEOF
27801 #define HAVE_EXPL 1
27802 _ACEOF
27808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
27809 $as_echo_n "checking for fabsl declaration... " >&6; }
27810 if ${glibcxx_cv_func_fabsl_use+:} false; then :
27811 $as_echo_n "(cached) " >&6
27812 else
27815 ac_ext=c
27816 ac_cpp='$CPP $CPPFLAGS'
27817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27822 /* end confdefs.h. */
27824 #include <math.h>
27825 #ifdef HAVE_IEEEFP_H
27826 # include <ieeefp.h>
27827 #endif
27828 #undef fabsl
27831 main ()
27834 void (*f)(void) = (void (*)(void))fabsl;
27837 return 0;
27839 _ACEOF
27840 if ac_fn_c_try_compile "$LINENO"; then :
27841 glibcxx_cv_func_fabsl_use=yes
27843 else
27844 glibcxx_cv_func_fabsl_use=no
27846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
27849 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
27850 if test "x$glibcxx_cv_func_fabsl_use" = xyes; then
27851 cat >>confdefs.h <<_ACEOF
27852 #define HAVE_FABSL 1
27853 _ACEOF
27859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl declaration" >&5
27860 $as_echo_n "checking for floorl declaration... " >&6; }
27861 if ${glibcxx_cv_func_floorl_use+:} false; then :
27862 $as_echo_n "(cached) " >&6
27863 else
27866 ac_ext=c
27867 ac_cpp='$CPP $CPPFLAGS'
27868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27873 /* end confdefs.h. */
27875 #include <math.h>
27876 #ifdef HAVE_IEEEFP_H
27877 # include <ieeefp.h>
27878 #endif
27879 #undef floorl
27882 main ()
27885 void (*f)(void) = (void (*)(void))floorl;
27888 return 0;
27890 _ACEOF
27891 if ac_fn_c_try_compile "$LINENO"; then :
27892 glibcxx_cv_func_floorl_use=yes
27894 else
27895 glibcxx_cv_func_floorl_use=no
27897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_floorl_use" >&5
27900 $as_echo "$glibcxx_cv_func_floorl_use" >&6; }
27901 if test "x$glibcxx_cv_func_floorl_use" = xyes; then
27902 cat >>confdefs.h <<_ACEOF
27903 #define HAVE_FLOORL 1
27904 _ACEOF
27910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
27911 $as_echo_n "checking for fmodl declaration... " >&6; }
27912 if ${glibcxx_cv_func_fmodl_use+:} false; then :
27913 $as_echo_n "(cached) " >&6
27914 else
27917 ac_ext=c
27918 ac_cpp='$CPP $CPPFLAGS'
27919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27924 /* end confdefs.h. */
27926 #include <math.h>
27927 #ifdef HAVE_IEEEFP_H
27928 # include <ieeefp.h>
27929 #endif
27930 #undef fmodl
27933 main ()
27936 void (*f)(void) = (void (*)(void))fmodl;
27939 return 0;
27941 _ACEOF
27942 if ac_fn_c_try_compile "$LINENO"; then :
27943 glibcxx_cv_func_fmodl_use=yes
27945 else
27946 glibcxx_cv_func_fmodl_use=no
27948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
27951 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
27952 if test "x$glibcxx_cv_func_fmodl_use" = xyes; then
27953 cat >>confdefs.h <<_ACEOF
27954 #define HAVE_FMODL 1
27955 _ACEOF
27961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
27962 $as_echo_n "checking for frexpl declaration... " >&6; }
27963 if ${glibcxx_cv_func_frexpl_use+:} false; then :
27964 $as_echo_n "(cached) " >&6
27965 else
27968 ac_ext=c
27969 ac_cpp='$CPP $CPPFLAGS'
27970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27975 /* end confdefs.h. */
27977 #include <math.h>
27978 #ifdef HAVE_IEEEFP_H
27979 # include <ieeefp.h>
27980 #endif
27981 #undef frexpl
27984 main ()
27987 void (*f)(void) = (void (*)(void))frexpl;
27990 return 0;
27992 _ACEOF
27993 if ac_fn_c_try_compile "$LINENO"; then :
27994 glibcxx_cv_func_frexpl_use=yes
27996 else
27997 glibcxx_cv_func_frexpl_use=no
27999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
28002 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
28003 if test "x$glibcxx_cv_func_frexpl_use" = xyes; then
28004 cat >>confdefs.h <<_ACEOF
28005 #define HAVE_FREXPL 1
28006 _ACEOF
28012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
28013 $as_echo_n "checking for hypotl declaration... " >&6; }
28014 if ${glibcxx_cv_func_hypotl_use+:} false; then :
28015 $as_echo_n "(cached) " >&6
28016 else
28019 ac_ext=c
28020 ac_cpp='$CPP $CPPFLAGS'
28021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28026 /* end confdefs.h. */
28028 #include <math.h>
28029 #ifdef HAVE_IEEEFP_H
28030 # include <ieeefp.h>
28031 #endif
28032 #undef hypotl
28035 main ()
28038 void (*f)(void) = (void (*)(void))hypotl;
28041 return 0;
28043 _ACEOF
28044 if ac_fn_c_try_compile "$LINENO"; then :
28045 glibcxx_cv_func_hypotl_use=yes
28047 else
28048 glibcxx_cv_func_hypotl_use=no
28050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
28053 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
28054 if test "x$glibcxx_cv_func_hypotl_use" = xyes; then
28055 cat >>confdefs.h <<_ACEOF
28056 #define HAVE_HYPOTL 1
28057 _ACEOF
28063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
28064 $as_echo_n "checking for ldexpl declaration... " >&6; }
28065 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
28066 $as_echo_n "(cached) " >&6
28067 else
28070 ac_ext=c
28071 ac_cpp='$CPP $CPPFLAGS'
28072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28077 /* end confdefs.h. */
28079 #include <math.h>
28080 #ifdef HAVE_IEEEFP_H
28081 # include <ieeefp.h>
28082 #endif
28083 #undef ldexpl
28086 main ()
28089 void (*f)(void) = (void (*)(void))ldexpl;
28092 return 0;
28094 _ACEOF
28095 if ac_fn_c_try_compile "$LINENO"; then :
28096 glibcxx_cv_func_ldexpl_use=yes
28098 else
28099 glibcxx_cv_func_ldexpl_use=no
28101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
28104 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
28105 if test "x$glibcxx_cv_func_ldexpl_use" = xyes; then
28106 cat >>confdefs.h <<_ACEOF
28107 #define HAVE_LDEXPL 1
28108 _ACEOF
28114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
28115 $as_echo_n "checking for log10l declaration... " >&6; }
28116 if ${glibcxx_cv_func_log10l_use+:} false; then :
28117 $as_echo_n "(cached) " >&6
28118 else
28121 ac_ext=c
28122 ac_cpp='$CPP $CPPFLAGS'
28123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28128 /* end confdefs.h. */
28130 #include <math.h>
28131 #ifdef HAVE_IEEEFP_H
28132 # include <ieeefp.h>
28133 #endif
28134 #undef log10l
28137 main ()
28140 void (*f)(void) = (void (*)(void))log10l;
28143 return 0;
28145 _ACEOF
28146 if ac_fn_c_try_compile "$LINENO"; then :
28147 glibcxx_cv_func_log10l_use=yes
28149 else
28150 glibcxx_cv_func_log10l_use=no
28152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
28155 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
28156 if test "x$glibcxx_cv_func_log10l_use" = xyes; then
28157 cat >>confdefs.h <<_ACEOF
28158 #define HAVE_LOG10L 1
28159 _ACEOF
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
28166 $as_echo_n "checking for logl declaration... " >&6; }
28167 if ${glibcxx_cv_func_logl_use+:} false; then :
28168 $as_echo_n "(cached) " >&6
28169 else
28172 ac_ext=c
28173 ac_cpp='$CPP $CPPFLAGS'
28174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28179 /* end confdefs.h. */
28181 #include <math.h>
28182 #ifdef HAVE_IEEEFP_H
28183 # include <ieeefp.h>
28184 #endif
28185 #undef logl
28188 main ()
28191 void (*f)(void) = (void (*)(void))logl;
28194 return 0;
28196 _ACEOF
28197 if ac_fn_c_try_compile "$LINENO"; then :
28198 glibcxx_cv_func_logl_use=yes
28200 else
28201 glibcxx_cv_func_logl_use=no
28203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
28206 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
28207 if test "x$glibcxx_cv_func_logl_use" = xyes; then
28208 cat >>confdefs.h <<_ACEOF
28209 #define HAVE_LOGL 1
28210 _ACEOF
28216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
28217 $as_echo_n "checking for modfl declaration... " >&6; }
28218 if ${glibcxx_cv_func_modfl_use+:} false; then :
28219 $as_echo_n "(cached) " >&6
28220 else
28223 ac_ext=c
28224 ac_cpp='$CPP $CPPFLAGS'
28225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28230 /* end confdefs.h. */
28232 #include <math.h>
28233 #ifdef HAVE_IEEEFP_H
28234 # include <ieeefp.h>
28235 #endif
28236 #undef modfl
28239 main ()
28242 void (*f)(void) = (void (*)(void))modfl;
28245 return 0;
28247 _ACEOF
28248 if ac_fn_c_try_compile "$LINENO"; then :
28249 glibcxx_cv_func_modfl_use=yes
28251 else
28252 glibcxx_cv_func_modfl_use=no
28254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
28257 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
28258 if test "x$glibcxx_cv_func_modfl_use" = xyes; then
28259 cat >>confdefs.h <<_ACEOF
28260 #define HAVE_MODFL 1
28261 _ACEOF
28267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
28268 $as_echo_n "checking for powl declaration... " >&6; }
28269 if ${glibcxx_cv_func_powl_use+:} false; then :
28270 $as_echo_n "(cached) " >&6
28271 else
28274 ac_ext=c
28275 ac_cpp='$CPP $CPPFLAGS'
28276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28281 /* end confdefs.h. */
28283 #include <math.h>
28284 #ifdef HAVE_IEEEFP_H
28285 # include <ieeefp.h>
28286 #endif
28287 #undef powl
28290 main ()
28293 void (*f)(void) = (void (*)(void))powl;
28296 return 0;
28298 _ACEOF
28299 if ac_fn_c_try_compile "$LINENO"; then :
28300 glibcxx_cv_func_powl_use=yes
28302 else
28303 glibcxx_cv_func_powl_use=no
28305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
28308 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
28309 if test "x$glibcxx_cv_func_powl_use" = xyes; then
28310 cat >>confdefs.h <<_ACEOF
28311 #define HAVE_POWL 1
28312 _ACEOF
28318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl declaration" >&5
28319 $as_echo_n "checking for sinhl declaration... " >&6; }
28320 if ${glibcxx_cv_func_sinhl_use+:} false; then :
28321 $as_echo_n "(cached) " >&6
28322 else
28325 ac_ext=c
28326 ac_cpp='$CPP $CPPFLAGS'
28327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28332 /* end confdefs.h. */
28334 #include <math.h>
28335 #ifdef HAVE_IEEEFP_H
28336 # include <ieeefp.h>
28337 #endif
28338 #undef sinhl
28341 main ()
28344 void (*f)(void) = (void (*)(void))sinhl;
28347 return 0;
28349 _ACEOF
28350 if ac_fn_c_try_compile "$LINENO"; then :
28351 glibcxx_cv_func_sinhl_use=yes
28353 else
28354 glibcxx_cv_func_sinhl_use=no
28356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sinhl_use" >&5
28359 $as_echo "$glibcxx_cv_func_sinhl_use" >&6; }
28360 if test "x$glibcxx_cv_func_sinhl_use" = xyes; then
28361 cat >>confdefs.h <<_ACEOF
28362 #define HAVE_SINHL 1
28363 _ACEOF
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl declaration" >&5
28370 $as_echo_n "checking for sinl declaration... " >&6; }
28371 if ${glibcxx_cv_func_sinl_use+:} false; then :
28372 $as_echo_n "(cached) " >&6
28373 else
28376 ac_ext=c
28377 ac_cpp='$CPP $CPPFLAGS'
28378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28383 /* end confdefs.h. */
28385 #include <math.h>
28386 #ifdef HAVE_IEEEFP_H
28387 # include <ieeefp.h>
28388 #endif
28389 #undef sinl
28392 main ()
28395 void (*f)(void) = (void (*)(void))sinl;
28398 return 0;
28400 _ACEOF
28401 if ac_fn_c_try_compile "$LINENO"; then :
28402 glibcxx_cv_func_sinl_use=yes
28404 else
28405 glibcxx_cv_func_sinl_use=no
28407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sinl_use" >&5
28410 $as_echo "$glibcxx_cv_func_sinl_use" >&6; }
28411 if test "x$glibcxx_cv_func_sinl_use" = xyes; then
28412 cat >>confdefs.h <<_ACEOF
28413 #define HAVE_SINL 1
28414 _ACEOF
28420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
28421 $as_echo_n "checking for sqrtl declaration... " >&6; }
28422 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
28423 $as_echo_n "(cached) " >&6
28424 else
28427 ac_ext=c
28428 ac_cpp='$CPP $CPPFLAGS'
28429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28434 /* end confdefs.h. */
28436 #include <math.h>
28437 #ifdef HAVE_IEEEFP_H
28438 # include <ieeefp.h>
28439 #endif
28440 #undef sqrtl
28443 main ()
28446 void (*f)(void) = (void (*)(void))sqrtl;
28449 return 0;
28451 _ACEOF
28452 if ac_fn_c_try_compile "$LINENO"; then :
28453 glibcxx_cv_func_sqrtl_use=yes
28455 else
28456 glibcxx_cv_func_sqrtl_use=no
28458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
28461 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
28462 if test "x$glibcxx_cv_func_sqrtl_use" = xyes; then
28463 cat >>confdefs.h <<_ACEOF
28464 #define HAVE_SQRTL 1
28465 _ACEOF
28471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl declaration" >&5
28472 $as_echo_n "checking for tanhl declaration... " >&6; }
28473 if ${glibcxx_cv_func_tanhl_use+:} false; then :
28474 $as_echo_n "(cached) " >&6
28475 else
28478 ac_ext=c
28479 ac_cpp='$CPP $CPPFLAGS'
28480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28485 /* end confdefs.h. */
28487 #include <math.h>
28488 #ifdef HAVE_IEEEFP_H
28489 # include <ieeefp.h>
28490 #endif
28491 #undef tanhl
28494 main ()
28497 void (*f)(void) = (void (*)(void))tanhl;
28500 return 0;
28502 _ACEOF
28503 if ac_fn_c_try_compile "$LINENO"; then :
28504 glibcxx_cv_func_tanhl_use=yes
28506 else
28507 glibcxx_cv_func_tanhl_use=no
28509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_tanhl_use" >&5
28512 $as_echo "$glibcxx_cv_func_tanhl_use" >&6; }
28513 if test "x$glibcxx_cv_func_tanhl_use" = xyes; then
28514 cat >>confdefs.h <<_ACEOF
28515 #define HAVE_TANHL 1
28516 _ACEOF
28522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl declaration" >&5
28523 $as_echo_n "checking for tanl declaration... " >&6; }
28524 if ${glibcxx_cv_func_tanl_use+:} false; then :
28525 $as_echo_n "(cached) " >&6
28526 else
28529 ac_ext=c
28530 ac_cpp='$CPP $CPPFLAGS'
28531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28536 /* end confdefs.h. */
28538 #include <math.h>
28539 #ifdef HAVE_IEEEFP_H
28540 # include <ieeefp.h>
28541 #endif
28542 #undef tanl
28545 main ()
28548 void (*f)(void) = (void (*)(void))tanl;
28551 return 0;
28553 _ACEOF
28554 if ac_fn_c_try_compile "$LINENO"; then :
28555 glibcxx_cv_func_tanl_use=yes
28557 else
28558 glibcxx_cv_func_tanl_use=no
28560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_tanl_use" >&5
28563 $as_echo "$glibcxx_cv_func_tanl_use" >&6; }
28564 if test "x$glibcxx_cv_func_tanl_use" = xyes; then
28565 cat >>confdefs.h <<_ACEOF
28566 #define HAVE_TANL 1
28567 _ACEOF
28574 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
28576 $as_echo "#define HAVE_MEMALIGN 1" >>confdefs.h
28579 case "${target}" in
28580 *-rtems*)
28581 case "${target}" in
28582 bfin* | lm32* | mips* | moxie* | or1k* | v850*)
28585 $as_echo "#define HAVE_TLS 1" >>confdefs.h
28588 esac
28589 $as_echo "#define HAVE_ALIGNED_ALLOC 1" >>confdefs.h
28591 $as_echo "#define HAVE_AT_QUICK_EXIT 1" >>confdefs.h
28593 $as_echo "#define HAVE_LINK 1" >>confdefs.h
28595 $as_echo "#define HAVE_QUICK_EXIT 1" >>confdefs.h
28597 $as_echo "#define HAVE_READLINK 1" >>confdefs.h
28599 $as_echo "#define HAVE_SETENV 1" >>confdefs.h
28601 $as_echo "#define HAVE_SLEEP 1" >>confdefs.h
28603 $as_echo "#define HAVE_SOCKATMARK 1" >>confdefs.h
28605 $as_echo "#define HAVE_STRERROR_L 1" >>confdefs.h
28607 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
28609 $as_echo "#define HAVE_TRUNCATE 1" >>confdefs.h
28611 $as_echo "#define HAVE_USLEEP 1" >>confdefs.h
28614 # These functions are defined in librtemscpu. We don't use
28615 # -qrtems during configure, so we don't link that in, and fail
28616 # to find them.
28617 glibcxx_cv_chdir=yes
28618 glibcxx_cv_chmod=yes
28619 glibcxx_cv_mkdir=yes
28621 esac
28622 elif test "x$with_headers" != "xno"; then
28624 # Base decisions on target environment.
28625 case "${host}" in
28626 arm*-*-symbianelf*)
28627 # This is a freestanding configuration; there is nothing to do here.
28630 avr*-*-*)
28631 $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
28633 $as_echo "#define HAVE_ASINF 1" >>confdefs.h
28635 $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
28637 $as_echo "#define HAVE_ATANF 1" >>confdefs.h
28639 $as_echo "#define HAVE_CEILF 1" >>confdefs.h
28641 $as_echo "#define HAVE_COSF 1" >>confdefs.h
28643 $as_echo "#define HAVE_COSHF 1" >>confdefs.h
28645 $as_echo "#define HAVE_EXPF 1" >>confdefs.h
28647 $as_echo "#define HAVE_FABSF 1" >>confdefs.h
28649 $as_echo "#define HAVE_FLOORF 1" >>confdefs.h
28651 $as_echo "#define HAVE_FMODF 1" >>confdefs.h
28653 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
28655 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
28657 $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
28659 $as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
28661 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
28663 $as_echo "#define HAVE_LOGF 1" >>confdefs.h
28665 $as_echo "#define HAVE_MODFF 1" >>confdefs.h
28667 $as_echo "#define HAVE_POWF 1" >>confdefs.h
28669 $as_echo "#define HAVE_SINF 1" >>confdefs.h
28671 $as_echo "#define HAVE_SINHF 1" >>confdefs.h
28673 $as_echo "#define HAVE_TANF 1" >>confdefs.h
28675 $as_echo "#define HAVE_TANHF 1" >>confdefs.h
28679 mips*-sde-elf*)
28680 # These definitions are for the SDE C library rather than newlib.
28681 SECTION_FLAGS='-ffunction-sections -fdata-sections'
28684 # All these tests are for C++; save the language and the compiler flags.
28685 # The CXXFLAGS thing is suspicious, but based on similar bits previously
28686 # found in GLIBCXX_CONFIGURE.
28688 ac_ext=cpp
28689 ac_cpp='$CXXCPP $CPPFLAGS'
28690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28694 ac_test_CXXFLAGS="${CXXFLAGS+set}"
28695 ac_save_CXXFLAGS="$CXXFLAGS"
28697 # Check for -ffunction-sections -fdata-sections
28698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
28699 $as_echo_n "checking for g++ that supports -ffunction-sections -fdata-sections... " >&6; }
28700 CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections'
28701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28702 /* end confdefs.h. */
28703 int foo; void bar() { };
28705 main ()
28709 return 0;
28711 _ACEOF
28712 if ac_fn_cxx_try_compile "$LINENO"; then :
28713 ac_fdsections=yes
28714 else
28715 ac_fdsections=no
28717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28718 if test "$ac_test_CXXFLAGS" = set; then
28719 CXXFLAGS="$ac_save_CXXFLAGS"
28720 else
28721 # this is the suspicious part
28722 CXXFLAGS=''
28724 if test x"$ac_fdsections" = x"yes"; then
28725 SECTION_FLAGS='-ffunction-sections -fdata-sections'
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
28728 $as_echo "$ac_fdsections" >&6; }
28730 ac_ext=c
28731 ac_cpp='$CPP $CPPFLAGS'
28732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28739 # If we're not using GNU ld, then there's no point in even trying these
28740 # tests. Check for that first. We should have already tested for gld
28741 # by now (in libtool), but require it now just to be safe...
28742 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
28743 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
28747 # The name set by libtool depends on the version of libtool. Shame on us
28748 # for depending on an impl detail, but c'est la vie. Older versions used
28749 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
28750 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
28751 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
28752 # set (hence we're using an older libtool), then set it.
28753 if test x${with_gnu_ld+set} != xset; then
28754 if test x${ac_cv_prog_gnu_ld+set} != xset; then
28755 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
28756 with_gnu_ld=no
28757 else
28758 with_gnu_ld=$ac_cv_prog_gnu_ld
28762 # Start by getting the version number. I think the libtool test already
28763 # does some of this, but throws away the result.
28764 glibcxx_ld_is_gold=no
28765 glibcxx_ld_is_mold=no
28766 if test x"$with_gnu_ld" = x"yes"; then
28767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
28768 $as_echo_n "checking for ld version... " >&6; }
28770 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
28771 glibcxx_ld_is_gold=yes
28772 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
28773 glibcxx_ld_is_mold=yes
28775 ldver=`$LD --version 2>/dev/null |
28776 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
28778 glibcxx_gnu_ld_version=`echo $ldver | \
28779 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
28780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
28781 $as_echo "$glibcxx_gnu_ld_version" >&6; }
28784 # Set --gc-sections.
28785 glibcxx_have_gc_sections=no
28786 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
28787 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
28788 glibcxx_have_gc_sections=yes
28790 else
28791 glibcxx_gcsections_min_ld=21602
28792 if test x"$with_gnu_ld" = x"yes" &&
28793 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
28794 glibcxx_have_gc_sections=yes
28797 if test "$glibcxx_have_gc_sections" = "yes"; then
28798 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
28799 # NB: This flag only works reliably after 2.16.1. Configure tests
28800 # for this are difficult, so hard wire a value that should work.
28802 ac_test_CFLAGS="${CFLAGS+set}"
28803 ac_save_CFLAGS="$CFLAGS"
28804 CFLAGS='-Wl,--gc-sections'
28806 # Check for -Wl,--gc-sections
28807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
28808 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
28809 if test x$gcc_no_link = xyes; then
28810 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28813 /* end confdefs.h. */
28814 int one(void) { return 1; }
28815 int two(void) { return 2; }
28818 main ()
28820 two();
28822 return 0;
28824 _ACEOF
28825 if ac_fn_c_try_link "$LINENO"; then :
28826 ac_gcsections=yes
28827 else
28828 ac_gcsections=no
28830 rm -f core conftest.err conftest.$ac_objext \
28831 conftest$ac_exeext conftest.$ac_ext
28832 if test "$ac_gcsections" = "yes"; then
28833 rm -f conftest.c
28834 touch conftest.c
28835 if $CC -c conftest.c; then
28836 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
28837 grep "Warning: gc-sections option ignored" > /dev/null; then
28838 ac_gcsections=no
28841 rm -f conftest.c conftest.o conftest
28843 if test "$ac_gcsections" = "yes"; then
28844 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
28846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
28847 $as_echo "$ac_gcsections" >&6; }
28849 if test "$ac_test_CFLAGS" = set; then
28850 CFLAGS="$ac_save_CFLAGS"
28851 else
28852 # this is the suspicious part
28853 CFLAGS=''
28857 # Set -z,relro.
28858 # Note this is only for shared objects.
28859 ac_ld_relro=no
28860 if test x"$with_gnu_ld" = x"yes"; then
28861 # cygwin and mingw uses PE, which has no ELF relro support,
28862 # multi target ld may confuse configure machinery
28863 case "$host" in
28864 *-*-cygwin*)
28866 *-*-mingw*)
28869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
28870 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
28871 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
28872 if test -n "$cxx_z_relo"; then
28873 OPT_LDFLAGS="-Wl,-z,relro"
28874 ac_ld_relro=yes
28876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
28877 $as_echo "$ac_ld_relro" >&6; }
28878 esac
28881 # Set linker optimization flags.
28882 if test x"$with_gnu_ld" = x"yes"; then
28883 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
28890 ac_test_CXXFLAGS="${CXXFLAGS+set}"
28891 ac_save_CXXFLAGS="$CXXFLAGS"
28892 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
28894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
28895 $as_echo_n "checking for sin in -lm... " >&6; }
28896 if ${ac_cv_lib_m_sin+:} false; then :
28897 $as_echo_n "(cached) " >&6
28898 else
28899 ac_check_lib_save_LIBS=$LIBS
28900 LIBS="-lm $LIBS"
28901 if test x$gcc_no_link = xyes; then
28902 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28905 /* end confdefs.h. */
28907 /* Override any GCC internal prototype to avoid an error.
28908 Use char because int might match the return type of a GCC
28909 builtin and then its argument prototype would still apply. */
28910 #ifdef __cplusplus
28911 extern "C"
28912 #endif
28913 char sin ();
28915 main ()
28917 return sin ();
28919 return 0;
28921 _ACEOF
28922 if ac_fn_c_try_link "$LINENO"; then :
28923 ac_cv_lib_m_sin=yes
28924 else
28925 ac_cv_lib_m_sin=no
28927 rm -f core conftest.err conftest.$ac_objext \
28928 conftest$ac_exeext conftest.$ac_ext
28929 LIBS=$ac_check_lib_save_LIBS
28931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
28932 $as_echo "$ac_cv_lib_m_sin" >&6; }
28933 if test "x$ac_cv_lib_m_sin" = xyes; then :
28934 libm="-lm"
28937 ac_save_LIBS="$LIBS"
28938 LIBS="$LIBS $libm"
28942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
28943 $as_echo_n "checking for isinf declaration... " >&6; }
28944 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
28945 if ${glibcxx_cv_func_isinf_use+:} false; then :
28946 $as_echo_n "(cached) " >&6
28947 else
28950 ac_ext=cpp
28951 ac_cpp='$CXXCPP $CPPFLAGS'
28952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28957 /* end confdefs.h. */
28958 #include <math.h>
28959 #ifdef HAVE_IEEEFP_H
28960 #include <ieeefp.h>
28961 #endif
28964 main ()
28966 isinf(0);
28968 return 0;
28970 _ACEOF
28971 if ac_fn_cxx_try_compile "$LINENO"; then :
28972 glibcxx_cv_func_isinf_use=yes
28973 else
28974 glibcxx_cv_func_isinf_use=no
28976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28977 ac_ext=c
28978 ac_cpp='$CPP $CPPFLAGS'
28979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
28988 $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
28990 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
28991 for ac_func in isinf
28992 do :
28993 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
28994 if test "x$ac_cv_func_isinf" = xyes; then :
28995 cat >>confdefs.h <<_ACEOF
28996 #define HAVE_ISINF 1
28997 _ACEOF
29000 done
29006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
29007 $as_echo_n "checking for isnan declaration... " >&6; }
29008 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
29009 if ${glibcxx_cv_func_isnan_use+:} false; then :
29010 $as_echo_n "(cached) " >&6
29011 else
29014 ac_ext=cpp
29015 ac_cpp='$CXXCPP $CPPFLAGS'
29016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29021 /* end confdefs.h. */
29022 #include <math.h>
29023 #ifdef HAVE_IEEEFP_H
29024 #include <ieeefp.h>
29025 #endif
29028 main ()
29030 isnan(0);
29032 return 0;
29034 _ACEOF
29035 if ac_fn_cxx_try_compile "$LINENO"; then :
29036 glibcxx_cv_func_isnan_use=yes
29037 else
29038 glibcxx_cv_func_isnan_use=no
29040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29041 ac_ext=c
29042 ac_cpp='$CPP $CPPFLAGS'
29043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
29052 $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
29054 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
29055 for ac_func in isnan
29056 do :
29057 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
29058 if test "x$ac_cv_func_isnan" = xyes; then :
29059 cat >>confdefs.h <<_ACEOF
29060 #define HAVE_ISNAN 1
29061 _ACEOF
29064 done
29070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
29071 $as_echo_n "checking for finite declaration... " >&6; }
29072 if test x${glibcxx_cv_func_finite_use+set} != xset; then
29073 if ${glibcxx_cv_func_finite_use+:} false; then :
29074 $as_echo_n "(cached) " >&6
29075 else
29078 ac_ext=cpp
29079 ac_cpp='$CXXCPP $CPPFLAGS'
29080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29085 /* end confdefs.h. */
29086 #include <math.h>
29087 #ifdef HAVE_IEEEFP_H
29088 #include <ieeefp.h>
29089 #endif
29092 main ()
29094 finite(0);
29096 return 0;
29098 _ACEOF
29099 if ac_fn_cxx_try_compile "$LINENO"; then :
29100 glibcxx_cv_func_finite_use=yes
29101 else
29102 glibcxx_cv_func_finite_use=no
29104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29105 ac_ext=c
29106 ac_cpp='$CPP $CPPFLAGS'
29107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
29116 $as_echo "$glibcxx_cv_func_finite_use" >&6; }
29118 if test x$glibcxx_cv_func_finite_use = x"yes"; then
29119 for ac_func in finite
29120 do :
29121 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
29122 if test "x$ac_cv_func_finite" = xyes; then :
29123 cat >>confdefs.h <<_ACEOF
29124 #define HAVE_FINITE 1
29125 _ACEOF
29128 done
29134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
29135 $as_echo_n "checking for sincos declaration... " >&6; }
29136 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
29137 if ${glibcxx_cv_func_sincos_use+:} false; then :
29138 $as_echo_n "(cached) " >&6
29139 else
29142 ac_ext=cpp
29143 ac_cpp='$CXXCPP $CPPFLAGS'
29144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29149 /* end confdefs.h. */
29150 #include <math.h>
29152 main ()
29154 sincos(0, 0, 0);
29156 return 0;
29158 _ACEOF
29159 if ac_fn_cxx_try_compile "$LINENO"; then :
29160 glibcxx_cv_func_sincos_use=yes
29161 else
29162 glibcxx_cv_func_sincos_use=no
29164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29165 ac_ext=c
29166 ac_cpp='$CPP $CPPFLAGS'
29167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
29176 $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
29178 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
29179 for ac_func in sincos
29180 do :
29181 ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
29182 if test "x$ac_cv_func_sincos" = xyes; then :
29183 cat >>confdefs.h <<_ACEOF
29184 #define HAVE_SINCOS 1
29185 _ACEOF
29188 done
29194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
29195 $as_echo_n "checking for fpclass declaration... " >&6; }
29196 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
29197 if ${glibcxx_cv_func_fpclass_use+:} false; then :
29198 $as_echo_n "(cached) " >&6
29199 else
29202 ac_ext=cpp
29203 ac_cpp='$CXXCPP $CPPFLAGS'
29204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29209 /* end confdefs.h. */
29210 #include <math.h>
29211 #ifdef HAVE_IEEEFP_H
29212 #include <ieeefp.h>
29213 #endif
29216 main ()
29218 fpclass(0);
29220 return 0;
29222 _ACEOF
29223 if ac_fn_cxx_try_compile "$LINENO"; then :
29224 glibcxx_cv_func_fpclass_use=yes
29225 else
29226 glibcxx_cv_func_fpclass_use=no
29228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29229 ac_ext=c
29230 ac_cpp='$CPP $CPPFLAGS'
29231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
29240 $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
29242 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
29243 for ac_func in fpclass
29244 do :
29245 ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
29246 if test "x$ac_cv_func_fpclass" = xyes; then :
29247 cat >>confdefs.h <<_ACEOF
29248 #define HAVE_FPCLASS 1
29249 _ACEOF
29252 done
29258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
29259 $as_echo_n "checking for qfpclass declaration... " >&6; }
29260 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
29261 if ${glibcxx_cv_func_qfpclass_use+:} false; then :
29262 $as_echo_n "(cached) " >&6
29263 else
29266 ac_ext=cpp
29267 ac_cpp='$CXXCPP $CPPFLAGS'
29268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29273 /* end confdefs.h. */
29274 #include <math.h>
29275 #ifdef HAVE_IEEEFP_H
29276 #include <ieeefp.h>
29277 #endif
29280 main ()
29282 qfpclass(0);
29284 return 0;
29286 _ACEOF
29287 if ac_fn_cxx_try_compile "$LINENO"; then :
29288 glibcxx_cv_func_qfpclass_use=yes
29289 else
29290 glibcxx_cv_func_qfpclass_use=no
29292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29293 ac_ext=c
29294 ac_cpp='$CPP $CPPFLAGS'
29295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
29304 $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
29306 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
29307 for ac_func in qfpclass
29308 do :
29309 ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
29310 if test "x$ac_cv_func_qfpclass" = xyes; then :
29311 cat >>confdefs.h <<_ACEOF
29312 #define HAVE_QFPCLASS 1
29313 _ACEOF
29316 done
29322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
29323 $as_echo_n "checking for hypot declaration... " >&6; }
29324 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
29325 if ${glibcxx_cv_func_hypot_use+:} false; then :
29326 $as_echo_n "(cached) " >&6
29327 else
29330 ac_ext=cpp
29331 ac_cpp='$CXXCPP $CPPFLAGS'
29332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29337 /* end confdefs.h. */
29338 #include <math.h>
29340 main ()
29342 hypot(0, 0);
29344 return 0;
29346 _ACEOF
29347 if ac_fn_cxx_try_compile "$LINENO"; then :
29348 glibcxx_cv_func_hypot_use=yes
29349 else
29350 glibcxx_cv_func_hypot_use=no
29352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29353 ac_ext=c
29354 ac_cpp='$CPP $CPPFLAGS'
29355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
29364 $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
29366 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
29367 for ac_func in hypot
29368 do :
29369 ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
29370 if test "x$ac_cv_func_hypot" = xyes; then :
29371 cat >>confdefs.h <<_ACEOF
29372 #define HAVE_HYPOT 1
29373 _ACEOF
29376 done
29382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
29383 $as_echo_n "checking for float trig functions... " >&6; }
29384 if ${glibcxx_cv_func_float_trig_use+:} false; then :
29385 $as_echo_n "(cached) " >&6
29386 else
29389 ac_ext=cpp
29390 ac_cpp='$CXXCPP $CPPFLAGS'
29391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29396 /* end confdefs.h. */
29397 #include <math.h>
29399 main ()
29401 acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
29403 return 0;
29405 _ACEOF
29406 if ac_fn_cxx_try_compile "$LINENO"; then :
29407 glibcxx_cv_func_float_trig_use=yes
29408 else
29409 glibcxx_cv_func_float_trig_use=no
29411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29412 ac_ext=c
29413 ac_cpp='$CPP $CPPFLAGS'
29414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
29421 $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
29422 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
29423 for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
29424 do :
29425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29426 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29427 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29428 cat >>confdefs.h <<_ACEOF
29429 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29430 _ACEOF
29433 done
29439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
29440 $as_echo_n "checking for float round functions... " >&6; }
29441 if ${glibcxx_cv_func_float_round_use+:} false; then :
29442 $as_echo_n "(cached) " >&6
29443 else
29446 ac_ext=cpp
29447 ac_cpp='$CXXCPP $CPPFLAGS'
29448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29453 /* end confdefs.h. */
29454 #include <math.h>
29456 main ()
29458 ceilf (0); floorf (0);
29460 return 0;
29462 _ACEOF
29463 if ac_fn_cxx_try_compile "$LINENO"; then :
29464 glibcxx_cv_func_float_round_use=yes
29465 else
29466 glibcxx_cv_func_float_round_use=no
29468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29469 ac_ext=c
29470 ac_cpp='$CPP $CPPFLAGS'
29471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
29478 $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
29479 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
29480 for ac_func in ceilf floorf
29481 do :
29482 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29483 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29484 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29485 cat >>confdefs.h <<_ACEOF
29486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29487 _ACEOF
29490 done
29497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
29498 $as_echo_n "checking for expf declaration... " >&6; }
29499 if test x${glibcxx_cv_func_expf_use+set} != xset; then
29500 if ${glibcxx_cv_func_expf_use+:} false; then :
29501 $as_echo_n "(cached) " >&6
29502 else
29505 ac_ext=cpp
29506 ac_cpp='$CXXCPP $CPPFLAGS'
29507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29512 /* end confdefs.h. */
29513 #include <math.h>
29514 #ifdef HAVE_IEEEFP_H
29515 #include <ieeefp.h>
29516 #endif
29519 main ()
29521 expf(0);
29523 return 0;
29525 _ACEOF
29526 if ac_fn_cxx_try_compile "$LINENO"; then :
29527 glibcxx_cv_func_expf_use=yes
29528 else
29529 glibcxx_cv_func_expf_use=no
29531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29532 ac_ext=c
29533 ac_cpp='$CPP $CPPFLAGS'
29534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
29543 $as_echo "$glibcxx_cv_func_expf_use" >&6; }
29545 if test x$glibcxx_cv_func_expf_use = x"yes"; then
29546 for ac_func in expf
29547 do :
29548 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
29549 if test "x$ac_cv_func_expf" = xyes; then :
29550 cat >>confdefs.h <<_ACEOF
29551 #define HAVE_EXPF 1
29552 _ACEOF
29555 done
29561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
29562 $as_echo_n "checking for isnanf declaration... " >&6; }
29563 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
29564 if ${glibcxx_cv_func_isnanf_use+:} false; then :
29565 $as_echo_n "(cached) " >&6
29566 else
29569 ac_ext=cpp
29570 ac_cpp='$CXXCPP $CPPFLAGS'
29571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29576 /* end confdefs.h. */
29577 #include <math.h>
29578 #ifdef HAVE_IEEEFP_H
29579 #include <ieeefp.h>
29580 #endif
29583 main ()
29585 isnanf(0);
29587 return 0;
29589 _ACEOF
29590 if ac_fn_cxx_try_compile "$LINENO"; then :
29591 glibcxx_cv_func_isnanf_use=yes
29592 else
29593 glibcxx_cv_func_isnanf_use=no
29595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29596 ac_ext=c
29597 ac_cpp='$CPP $CPPFLAGS'
29598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
29607 $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
29609 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
29610 for ac_func in isnanf
29611 do :
29612 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
29613 if test "x$ac_cv_func_isnanf" = xyes; then :
29614 cat >>confdefs.h <<_ACEOF
29615 #define HAVE_ISNANF 1
29616 _ACEOF
29619 done
29625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
29626 $as_echo_n "checking for isinff declaration... " >&6; }
29627 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
29628 if ${glibcxx_cv_func_isinff_use+:} false; then :
29629 $as_echo_n "(cached) " >&6
29630 else
29633 ac_ext=cpp
29634 ac_cpp='$CXXCPP $CPPFLAGS'
29635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29640 /* end confdefs.h. */
29641 #include <math.h>
29642 #ifdef HAVE_IEEEFP_H
29643 #include <ieeefp.h>
29644 #endif
29647 main ()
29649 isinff(0);
29651 return 0;
29653 _ACEOF
29654 if ac_fn_cxx_try_compile "$LINENO"; then :
29655 glibcxx_cv_func_isinff_use=yes
29656 else
29657 glibcxx_cv_func_isinff_use=no
29659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29660 ac_ext=c
29661 ac_cpp='$CPP $CPPFLAGS'
29662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
29671 $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
29673 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
29674 for ac_func in isinff
29675 do :
29676 ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
29677 if test "x$ac_cv_func_isinff" = xyes; then :
29678 cat >>confdefs.h <<_ACEOF
29679 #define HAVE_ISINFF 1
29680 _ACEOF
29683 done
29689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
29690 $as_echo_n "checking for atan2f declaration... " >&6; }
29691 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
29692 if ${glibcxx_cv_func_atan2f_use+:} false; then :
29693 $as_echo_n "(cached) " >&6
29694 else
29697 ac_ext=cpp
29698 ac_cpp='$CXXCPP $CPPFLAGS'
29699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29704 /* end confdefs.h. */
29705 #include <math.h>
29707 main ()
29709 atan2f(0, 0);
29711 return 0;
29713 _ACEOF
29714 if ac_fn_cxx_try_compile "$LINENO"; then :
29715 glibcxx_cv_func_atan2f_use=yes
29716 else
29717 glibcxx_cv_func_atan2f_use=no
29719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29720 ac_ext=c
29721 ac_cpp='$CPP $CPPFLAGS'
29722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
29731 $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
29733 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
29734 for ac_func in atan2f
29735 do :
29736 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
29737 if test "x$ac_cv_func_atan2f" = xyes; then :
29738 cat >>confdefs.h <<_ACEOF
29739 #define HAVE_ATAN2F 1
29740 _ACEOF
29743 done
29749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
29750 $as_echo_n "checking for fabsf declaration... " >&6; }
29751 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
29752 if ${glibcxx_cv_func_fabsf_use+:} false; then :
29753 $as_echo_n "(cached) " >&6
29754 else
29757 ac_ext=cpp
29758 ac_cpp='$CXXCPP $CPPFLAGS'
29759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29764 /* end confdefs.h. */
29765 #include <math.h>
29766 #ifdef HAVE_IEEEFP_H
29767 #include <ieeefp.h>
29768 #endif
29771 main ()
29773 fabsf(0);
29775 return 0;
29777 _ACEOF
29778 if ac_fn_cxx_try_compile "$LINENO"; then :
29779 glibcxx_cv_func_fabsf_use=yes
29780 else
29781 glibcxx_cv_func_fabsf_use=no
29783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29784 ac_ext=c
29785 ac_cpp='$CPP $CPPFLAGS'
29786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
29795 $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
29797 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
29798 for ac_func in fabsf
29799 do :
29800 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
29801 if test "x$ac_cv_func_fabsf" = xyes; then :
29802 cat >>confdefs.h <<_ACEOF
29803 #define HAVE_FABSF 1
29804 _ACEOF
29807 done
29813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
29814 $as_echo_n "checking for fmodf declaration... " >&6; }
29815 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
29816 if ${glibcxx_cv_func_fmodf_use+:} false; then :
29817 $as_echo_n "(cached) " >&6
29818 else
29821 ac_ext=cpp
29822 ac_cpp='$CXXCPP $CPPFLAGS'
29823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29828 /* end confdefs.h. */
29829 #include <math.h>
29831 main ()
29833 fmodf(0, 0);
29835 return 0;
29837 _ACEOF
29838 if ac_fn_cxx_try_compile "$LINENO"; then :
29839 glibcxx_cv_func_fmodf_use=yes
29840 else
29841 glibcxx_cv_func_fmodf_use=no
29843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29844 ac_ext=c
29845 ac_cpp='$CPP $CPPFLAGS'
29846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
29855 $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
29857 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
29858 for ac_func in fmodf
29859 do :
29860 ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
29861 if test "x$ac_cv_func_fmodf" = xyes; then :
29862 cat >>confdefs.h <<_ACEOF
29863 #define HAVE_FMODF 1
29864 _ACEOF
29867 done
29873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
29874 $as_echo_n "checking for frexpf declaration... " >&6; }
29875 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
29876 if ${glibcxx_cv_func_frexpf_use+:} false; then :
29877 $as_echo_n "(cached) " >&6
29878 else
29881 ac_ext=cpp
29882 ac_cpp='$CXXCPP $CPPFLAGS'
29883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29888 /* end confdefs.h. */
29889 #include <math.h>
29891 main ()
29893 frexpf(0, 0);
29895 return 0;
29897 _ACEOF
29898 if ac_fn_cxx_try_compile "$LINENO"; then :
29899 glibcxx_cv_func_frexpf_use=yes
29900 else
29901 glibcxx_cv_func_frexpf_use=no
29903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29904 ac_ext=c
29905 ac_cpp='$CPP $CPPFLAGS'
29906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
29915 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
29917 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
29918 for ac_func in frexpf
29919 do :
29920 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
29921 if test "x$ac_cv_func_frexpf" = xyes; then :
29922 cat >>confdefs.h <<_ACEOF
29923 #define HAVE_FREXPF 1
29924 _ACEOF
29927 done
29933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
29934 $as_echo_n "checking for hypotf declaration... " >&6; }
29935 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
29936 if ${glibcxx_cv_func_hypotf_use+:} false; then :
29937 $as_echo_n "(cached) " >&6
29938 else
29941 ac_ext=cpp
29942 ac_cpp='$CXXCPP $CPPFLAGS'
29943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29948 /* end confdefs.h. */
29949 #include <math.h>
29951 main ()
29953 hypotf(0, 0);
29955 return 0;
29957 _ACEOF
29958 if ac_fn_cxx_try_compile "$LINENO"; then :
29959 glibcxx_cv_func_hypotf_use=yes
29960 else
29961 glibcxx_cv_func_hypotf_use=no
29963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29964 ac_ext=c
29965 ac_cpp='$CPP $CPPFLAGS'
29966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
29975 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
29977 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
29978 for ac_func in hypotf
29979 do :
29980 ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
29981 if test "x$ac_cv_func_hypotf" = xyes; then :
29982 cat >>confdefs.h <<_ACEOF
29983 #define HAVE_HYPOTF 1
29984 _ACEOF
29987 done
29993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
29994 $as_echo_n "checking for ldexpf declaration... " >&6; }
29995 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
29996 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
29997 $as_echo_n "(cached) " >&6
29998 else
30001 ac_ext=cpp
30002 ac_cpp='$CXXCPP $CPPFLAGS'
30003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30008 /* end confdefs.h. */
30009 #include <math.h>
30011 main ()
30013 ldexpf(0, 0);
30015 return 0;
30017 _ACEOF
30018 if ac_fn_cxx_try_compile "$LINENO"; then :
30019 glibcxx_cv_func_ldexpf_use=yes
30020 else
30021 glibcxx_cv_func_ldexpf_use=no
30023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30024 ac_ext=c
30025 ac_cpp='$CPP $CPPFLAGS'
30026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
30035 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
30037 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
30038 for ac_func in ldexpf
30039 do :
30040 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
30041 if test "x$ac_cv_func_ldexpf" = xyes; then :
30042 cat >>confdefs.h <<_ACEOF
30043 #define HAVE_LDEXPF 1
30044 _ACEOF
30047 done
30053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
30054 $as_echo_n "checking for logf declaration... " >&6; }
30055 if test x${glibcxx_cv_func_logf_use+set} != xset; then
30056 if ${glibcxx_cv_func_logf_use+:} false; then :
30057 $as_echo_n "(cached) " >&6
30058 else
30061 ac_ext=cpp
30062 ac_cpp='$CXXCPP $CPPFLAGS'
30063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30068 /* end confdefs.h. */
30069 #include <math.h>
30070 #ifdef HAVE_IEEEFP_H
30071 #include <ieeefp.h>
30072 #endif
30075 main ()
30077 logf(0);
30079 return 0;
30081 _ACEOF
30082 if ac_fn_cxx_try_compile "$LINENO"; then :
30083 glibcxx_cv_func_logf_use=yes
30084 else
30085 glibcxx_cv_func_logf_use=no
30087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30088 ac_ext=c
30089 ac_cpp='$CPP $CPPFLAGS'
30090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
30099 $as_echo "$glibcxx_cv_func_logf_use" >&6; }
30101 if test x$glibcxx_cv_func_logf_use = x"yes"; then
30102 for ac_func in logf
30103 do :
30104 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
30105 if test "x$ac_cv_func_logf" = xyes; then :
30106 cat >>confdefs.h <<_ACEOF
30107 #define HAVE_LOGF 1
30108 _ACEOF
30111 done
30117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
30118 $as_echo_n "checking for log10f declaration... " >&6; }
30119 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
30120 if ${glibcxx_cv_func_log10f_use+:} false; then :
30121 $as_echo_n "(cached) " >&6
30122 else
30125 ac_ext=cpp
30126 ac_cpp='$CXXCPP $CPPFLAGS'
30127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30132 /* end confdefs.h. */
30133 #include <math.h>
30134 #ifdef HAVE_IEEEFP_H
30135 #include <ieeefp.h>
30136 #endif
30139 main ()
30141 log10f(0);
30143 return 0;
30145 _ACEOF
30146 if ac_fn_cxx_try_compile "$LINENO"; then :
30147 glibcxx_cv_func_log10f_use=yes
30148 else
30149 glibcxx_cv_func_log10f_use=no
30151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30152 ac_ext=c
30153 ac_cpp='$CPP $CPPFLAGS'
30154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
30163 $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
30165 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
30166 for ac_func in log10f
30167 do :
30168 ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
30169 if test "x$ac_cv_func_log10f" = xyes; then :
30170 cat >>confdefs.h <<_ACEOF
30171 #define HAVE_LOG10F 1
30172 _ACEOF
30175 done
30181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
30182 $as_echo_n "checking for modff declaration... " >&6; }
30183 if test x${glibcxx_cv_func_modff_use+set} != xset; then
30184 if ${glibcxx_cv_func_modff_use+:} false; then :
30185 $as_echo_n "(cached) " >&6
30186 else
30189 ac_ext=cpp
30190 ac_cpp='$CXXCPP $CPPFLAGS'
30191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30196 /* end confdefs.h. */
30197 #include <math.h>
30199 main ()
30201 modff(0, 0);
30203 return 0;
30205 _ACEOF
30206 if ac_fn_cxx_try_compile "$LINENO"; then :
30207 glibcxx_cv_func_modff_use=yes
30208 else
30209 glibcxx_cv_func_modff_use=no
30211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30212 ac_ext=c
30213 ac_cpp='$CPP $CPPFLAGS'
30214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
30223 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
30225 if test x$glibcxx_cv_func_modff_use = x"yes"; then
30226 for ac_func in modff
30227 do :
30228 ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
30229 if test "x$ac_cv_func_modff" = xyes; then :
30230 cat >>confdefs.h <<_ACEOF
30231 #define HAVE_MODFF 1
30232 _ACEOF
30235 done
30241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
30242 $as_echo_n "checking for modf declaration... " >&6; }
30243 if test x${glibcxx_cv_func_modf_use+set} != xset; then
30244 if ${glibcxx_cv_func_modf_use+:} false; then :
30245 $as_echo_n "(cached) " >&6
30246 else
30249 ac_ext=cpp
30250 ac_cpp='$CXXCPP $CPPFLAGS'
30251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30256 /* end confdefs.h. */
30257 #include <math.h>
30259 main ()
30261 modf(0, 0);
30263 return 0;
30265 _ACEOF
30266 if ac_fn_cxx_try_compile "$LINENO"; then :
30267 glibcxx_cv_func_modf_use=yes
30268 else
30269 glibcxx_cv_func_modf_use=no
30271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30272 ac_ext=c
30273 ac_cpp='$CPP $CPPFLAGS'
30274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
30283 $as_echo "$glibcxx_cv_func_modf_use" >&6; }
30285 if test x$glibcxx_cv_func_modf_use = x"yes"; then
30286 for ac_func in modf
30287 do :
30288 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
30289 if test "x$ac_cv_func_modf" = xyes; then :
30290 cat >>confdefs.h <<_ACEOF
30291 #define HAVE_MODF 1
30292 _ACEOF
30295 done
30301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
30302 $as_echo_n "checking for powf declaration... " >&6; }
30303 if test x${glibcxx_cv_func_powf_use+set} != xset; then
30304 if ${glibcxx_cv_func_powf_use+:} false; then :
30305 $as_echo_n "(cached) " >&6
30306 else
30309 ac_ext=cpp
30310 ac_cpp='$CXXCPP $CPPFLAGS'
30311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30316 /* end confdefs.h. */
30317 #include <math.h>
30319 main ()
30321 powf(0, 0);
30323 return 0;
30325 _ACEOF
30326 if ac_fn_cxx_try_compile "$LINENO"; then :
30327 glibcxx_cv_func_powf_use=yes
30328 else
30329 glibcxx_cv_func_powf_use=no
30331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30332 ac_ext=c
30333 ac_cpp='$CPP $CPPFLAGS'
30334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
30343 $as_echo "$glibcxx_cv_func_powf_use" >&6; }
30345 if test x$glibcxx_cv_func_powf_use = x"yes"; then
30346 for ac_func in powf
30347 do :
30348 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
30349 if test "x$ac_cv_func_powf" = xyes; then :
30350 cat >>confdefs.h <<_ACEOF
30351 #define HAVE_POWF 1
30352 _ACEOF
30355 done
30361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
30362 $as_echo_n "checking for sqrtf declaration... " >&6; }
30363 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
30364 if ${glibcxx_cv_func_sqrtf_use+:} false; then :
30365 $as_echo_n "(cached) " >&6
30366 else
30369 ac_ext=cpp
30370 ac_cpp='$CXXCPP $CPPFLAGS'
30371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30376 /* end confdefs.h. */
30377 #include <math.h>
30378 #ifdef HAVE_IEEEFP_H
30379 #include <ieeefp.h>
30380 #endif
30383 main ()
30385 sqrtf(0);
30387 return 0;
30389 _ACEOF
30390 if ac_fn_cxx_try_compile "$LINENO"; then :
30391 glibcxx_cv_func_sqrtf_use=yes
30392 else
30393 glibcxx_cv_func_sqrtf_use=no
30395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30396 ac_ext=c
30397 ac_cpp='$CPP $CPPFLAGS'
30398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
30407 $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
30409 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
30410 for ac_func in sqrtf
30411 do :
30412 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
30413 if test "x$ac_cv_func_sqrtf" = xyes; then :
30414 cat >>confdefs.h <<_ACEOF
30415 #define HAVE_SQRTF 1
30416 _ACEOF
30419 done
30425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
30426 $as_echo_n "checking for sincosf declaration... " >&6; }
30427 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
30428 if ${glibcxx_cv_func_sincosf_use+:} false; then :
30429 $as_echo_n "(cached) " >&6
30430 else
30433 ac_ext=cpp
30434 ac_cpp='$CXXCPP $CPPFLAGS'
30435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30440 /* end confdefs.h. */
30441 #include <math.h>
30443 main ()
30445 sincosf(0, 0, 0);
30447 return 0;
30449 _ACEOF
30450 if ac_fn_cxx_try_compile "$LINENO"; then :
30451 glibcxx_cv_func_sincosf_use=yes
30452 else
30453 glibcxx_cv_func_sincosf_use=no
30455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30456 ac_ext=c
30457 ac_cpp='$CPP $CPPFLAGS'
30458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
30467 $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
30469 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
30470 for ac_func in sincosf
30471 do :
30472 ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
30473 if test "x$ac_cv_func_sincosf" = xyes; then :
30474 cat >>confdefs.h <<_ACEOF
30475 #define HAVE_SINCOSF 1
30476 _ACEOF
30479 done
30485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
30486 $as_echo_n "checking for finitef declaration... " >&6; }
30487 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
30488 if ${glibcxx_cv_func_finitef_use+:} false; then :
30489 $as_echo_n "(cached) " >&6
30490 else
30493 ac_ext=cpp
30494 ac_cpp='$CXXCPP $CPPFLAGS'
30495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30500 /* end confdefs.h. */
30501 #include <math.h>
30502 #ifdef HAVE_IEEEFP_H
30503 #include <ieeefp.h>
30504 #endif
30507 main ()
30509 finitef(0);
30511 return 0;
30513 _ACEOF
30514 if ac_fn_cxx_try_compile "$LINENO"; then :
30515 glibcxx_cv_func_finitef_use=yes
30516 else
30517 glibcxx_cv_func_finitef_use=no
30519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30520 ac_ext=c
30521 ac_cpp='$CPP $CPPFLAGS'
30522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
30531 $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
30533 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
30534 for ac_func in finitef
30535 do :
30536 ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
30537 if test "x$ac_cv_func_finitef" = xyes; then :
30538 cat >>confdefs.h <<_ACEOF
30539 #define HAVE_FINITEF 1
30540 _ACEOF
30543 done
30549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
30550 $as_echo_n "checking for long double trig functions... " >&6; }
30551 if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
30552 $as_echo_n "(cached) " >&6
30553 else
30556 ac_ext=cpp
30557 ac_cpp='$CXXCPP $CPPFLAGS'
30558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30563 /* end confdefs.h. */
30564 #include <math.h>
30566 main ()
30568 acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
30570 return 0;
30572 _ACEOF
30573 if ac_fn_cxx_try_compile "$LINENO"; then :
30574 glibcxx_cv_func_long_double_trig_use=yes
30575 else
30576 glibcxx_cv_func_long_double_trig_use=no
30578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30579 ac_ext=c
30580 ac_cpp='$CPP $CPPFLAGS'
30581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
30588 $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
30589 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
30590 for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
30591 do :
30592 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30593 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30594 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30595 cat >>confdefs.h <<_ACEOF
30596 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30597 _ACEOF
30600 done
30606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
30607 $as_echo_n "checking for long double round functions... " >&6; }
30608 if ${glibcxx_cv_func_long_double_round_use+:} false; then :
30609 $as_echo_n "(cached) " >&6
30610 else
30613 ac_ext=cpp
30614 ac_cpp='$CXXCPP $CPPFLAGS'
30615 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30616 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30617 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30620 /* end confdefs.h. */
30621 #include <math.h>
30623 main ()
30625 ceill (0); floorl (0);
30627 return 0;
30629 _ACEOF
30630 if ac_fn_cxx_try_compile "$LINENO"; then :
30631 glibcxx_cv_func_long_double_round_use=yes
30632 else
30633 glibcxx_cv_func_long_double_round_use=no
30635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30636 ac_ext=c
30637 ac_cpp='$CPP $CPPFLAGS'
30638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
30645 $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
30646 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
30647 for ac_func in ceill floorl
30648 do :
30649 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30650 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30651 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30652 cat >>confdefs.h <<_ACEOF
30653 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30654 _ACEOF
30657 done
30664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
30665 $as_echo_n "checking for isnanl declaration... " >&6; }
30666 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
30667 if ${glibcxx_cv_func_isnanl_use+:} false; then :
30668 $as_echo_n "(cached) " >&6
30669 else
30672 ac_ext=cpp
30673 ac_cpp='$CXXCPP $CPPFLAGS'
30674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30679 /* end confdefs.h. */
30680 #include <math.h>
30681 #ifdef HAVE_IEEEFP_H
30682 #include <ieeefp.h>
30683 #endif
30686 main ()
30688 isnanl(0);
30690 return 0;
30692 _ACEOF
30693 if ac_fn_cxx_try_compile "$LINENO"; then :
30694 glibcxx_cv_func_isnanl_use=yes
30695 else
30696 glibcxx_cv_func_isnanl_use=no
30698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30699 ac_ext=c
30700 ac_cpp='$CPP $CPPFLAGS'
30701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
30710 $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
30712 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
30713 for ac_func in isnanl
30714 do :
30715 ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
30716 if test "x$ac_cv_func_isnanl" = xyes; then :
30717 cat >>confdefs.h <<_ACEOF
30718 #define HAVE_ISNANL 1
30719 _ACEOF
30722 done
30728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
30729 $as_echo_n "checking for isinfl declaration... " >&6; }
30730 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
30731 if ${glibcxx_cv_func_isinfl_use+:} false; then :
30732 $as_echo_n "(cached) " >&6
30733 else
30736 ac_ext=cpp
30737 ac_cpp='$CXXCPP $CPPFLAGS'
30738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30743 /* end confdefs.h. */
30744 #include <math.h>
30745 #ifdef HAVE_IEEEFP_H
30746 #include <ieeefp.h>
30747 #endif
30750 main ()
30752 isinfl(0);
30754 return 0;
30756 _ACEOF
30757 if ac_fn_cxx_try_compile "$LINENO"; then :
30758 glibcxx_cv_func_isinfl_use=yes
30759 else
30760 glibcxx_cv_func_isinfl_use=no
30762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30763 ac_ext=c
30764 ac_cpp='$CPP $CPPFLAGS'
30765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
30774 $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
30776 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
30777 for ac_func in isinfl
30778 do :
30779 ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
30780 if test "x$ac_cv_func_isinfl" = xyes; then :
30781 cat >>confdefs.h <<_ACEOF
30782 #define HAVE_ISINFL 1
30783 _ACEOF
30786 done
30792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
30793 $as_echo_n "checking for atan2l declaration... " >&6; }
30794 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
30795 if ${glibcxx_cv_func_atan2l_use+:} false; then :
30796 $as_echo_n "(cached) " >&6
30797 else
30800 ac_ext=cpp
30801 ac_cpp='$CXXCPP $CPPFLAGS'
30802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30807 /* end confdefs.h. */
30808 #include <math.h>
30810 main ()
30812 atan2l(0, 0);
30814 return 0;
30816 _ACEOF
30817 if ac_fn_cxx_try_compile "$LINENO"; then :
30818 glibcxx_cv_func_atan2l_use=yes
30819 else
30820 glibcxx_cv_func_atan2l_use=no
30822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30823 ac_ext=c
30824 ac_cpp='$CPP $CPPFLAGS'
30825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
30834 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
30836 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
30837 for ac_func in atan2l
30838 do :
30839 ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
30840 if test "x$ac_cv_func_atan2l" = xyes; then :
30841 cat >>confdefs.h <<_ACEOF
30842 #define HAVE_ATAN2L 1
30843 _ACEOF
30846 done
30852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
30853 $as_echo_n "checking for expl declaration... " >&6; }
30854 if test x${glibcxx_cv_func_expl_use+set} != xset; then
30855 if ${glibcxx_cv_func_expl_use+:} false; then :
30856 $as_echo_n "(cached) " >&6
30857 else
30860 ac_ext=cpp
30861 ac_cpp='$CXXCPP $CPPFLAGS'
30862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30867 /* end confdefs.h. */
30868 #include <math.h>
30869 #ifdef HAVE_IEEEFP_H
30870 #include <ieeefp.h>
30871 #endif
30874 main ()
30876 expl(0);
30878 return 0;
30880 _ACEOF
30881 if ac_fn_cxx_try_compile "$LINENO"; then :
30882 glibcxx_cv_func_expl_use=yes
30883 else
30884 glibcxx_cv_func_expl_use=no
30886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30887 ac_ext=c
30888 ac_cpp='$CPP $CPPFLAGS'
30889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
30898 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
30900 if test x$glibcxx_cv_func_expl_use = x"yes"; then
30901 for ac_func in expl
30902 do :
30903 ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
30904 if test "x$ac_cv_func_expl" = xyes; then :
30905 cat >>confdefs.h <<_ACEOF
30906 #define HAVE_EXPL 1
30907 _ACEOF
30910 done
30916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
30917 $as_echo_n "checking for fabsl declaration... " >&6; }
30918 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
30919 if ${glibcxx_cv_func_fabsl_use+:} false; then :
30920 $as_echo_n "(cached) " >&6
30921 else
30924 ac_ext=cpp
30925 ac_cpp='$CXXCPP $CPPFLAGS'
30926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30931 /* end confdefs.h. */
30932 #include <math.h>
30933 #ifdef HAVE_IEEEFP_H
30934 #include <ieeefp.h>
30935 #endif
30938 main ()
30940 fabsl(0);
30942 return 0;
30944 _ACEOF
30945 if ac_fn_cxx_try_compile "$LINENO"; then :
30946 glibcxx_cv_func_fabsl_use=yes
30947 else
30948 glibcxx_cv_func_fabsl_use=no
30950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30951 ac_ext=c
30952 ac_cpp='$CPP $CPPFLAGS'
30953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
30962 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
30964 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
30965 for ac_func in fabsl
30966 do :
30967 ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
30968 if test "x$ac_cv_func_fabsl" = xyes; then :
30969 cat >>confdefs.h <<_ACEOF
30970 #define HAVE_FABSL 1
30971 _ACEOF
30974 done
30980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
30981 $as_echo_n "checking for fmodl declaration... " >&6; }
30982 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
30983 if ${glibcxx_cv_func_fmodl_use+:} false; then :
30984 $as_echo_n "(cached) " >&6
30985 else
30988 ac_ext=cpp
30989 ac_cpp='$CXXCPP $CPPFLAGS'
30990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30995 /* end confdefs.h. */
30996 #include <math.h>
30998 main ()
31000 fmodl(0, 0);
31002 return 0;
31004 _ACEOF
31005 if ac_fn_cxx_try_compile "$LINENO"; then :
31006 glibcxx_cv_func_fmodl_use=yes
31007 else
31008 glibcxx_cv_func_fmodl_use=no
31010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31011 ac_ext=c
31012 ac_cpp='$CPP $CPPFLAGS'
31013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
31022 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
31024 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
31025 for ac_func in fmodl
31026 do :
31027 ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
31028 if test "x$ac_cv_func_fmodl" = xyes; then :
31029 cat >>confdefs.h <<_ACEOF
31030 #define HAVE_FMODL 1
31031 _ACEOF
31034 done
31040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
31041 $as_echo_n "checking for frexpl declaration... " >&6; }
31042 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
31043 if ${glibcxx_cv_func_frexpl_use+:} false; then :
31044 $as_echo_n "(cached) " >&6
31045 else
31048 ac_ext=cpp
31049 ac_cpp='$CXXCPP $CPPFLAGS'
31050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31055 /* end confdefs.h. */
31056 #include <math.h>
31058 main ()
31060 frexpl(0, 0);
31062 return 0;
31064 _ACEOF
31065 if ac_fn_cxx_try_compile "$LINENO"; then :
31066 glibcxx_cv_func_frexpl_use=yes
31067 else
31068 glibcxx_cv_func_frexpl_use=no
31070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31071 ac_ext=c
31072 ac_cpp='$CPP $CPPFLAGS'
31073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
31082 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
31084 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
31085 for ac_func in frexpl
31086 do :
31087 ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
31088 if test "x$ac_cv_func_frexpl" = xyes; then :
31089 cat >>confdefs.h <<_ACEOF
31090 #define HAVE_FREXPL 1
31091 _ACEOF
31094 done
31100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
31101 $as_echo_n "checking for hypotl declaration... " >&6; }
31102 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
31103 if ${glibcxx_cv_func_hypotl_use+:} false; then :
31104 $as_echo_n "(cached) " >&6
31105 else
31108 ac_ext=cpp
31109 ac_cpp='$CXXCPP $CPPFLAGS'
31110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31115 /* end confdefs.h. */
31116 #include <math.h>
31118 main ()
31120 hypotl(0, 0);
31122 return 0;
31124 _ACEOF
31125 if ac_fn_cxx_try_compile "$LINENO"; then :
31126 glibcxx_cv_func_hypotl_use=yes
31127 else
31128 glibcxx_cv_func_hypotl_use=no
31130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31131 ac_ext=c
31132 ac_cpp='$CPP $CPPFLAGS'
31133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
31142 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
31144 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
31145 for ac_func in hypotl
31146 do :
31147 ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
31148 if test "x$ac_cv_func_hypotl" = xyes; then :
31149 cat >>confdefs.h <<_ACEOF
31150 #define HAVE_HYPOTL 1
31151 _ACEOF
31154 done
31160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
31161 $as_echo_n "checking for ldexpl declaration... " >&6; }
31162 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
31163 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
31164 $as_echo_n "(cached) " >&6
31165 else
31168 ac_ext=cpp
31169 ac_cpp='$CXXCPP $CPPFLAGS'
31170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31175 /* end confdefs.h. */
31176 #include <math.h>
31178 main ()
31180 ldexpl(0, 0);
31182 return 0;
31184 _ACEOF
31185 if ac_fn_cxx_try_compile "$LINENO"; then :
31186 glibcxx_cv_func_ldexpl_use=yes
31187 else
31188 glibcxx_cv_func_ldexpl_use=no
31190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31191 ac_ext=c
31192 ac_cpp='$CPP $CPPFLAGS'
31193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
31202 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
31204 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
31205 for ac_func in ldexpl
31206 do :
31207 ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
31208 if test "x$ac_cv_func_ldexpl" = xyes; then :
31209 cat >>confdefs.h <<_ACEOF
31210 #define HAVE_LDEXPL 1
31211 _ACEOF
31214 done
31220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
31221 $as_echo_n "checking for logl declaration... " >&6; }
31222 if test x${glibcxx_cv_func_logl_use+set} != xset; then
31223 if ${glibcxx_cv_func_logl_use+:} false; then :
31224 $as_echo_n "(cached) " >&6
31225 else
31228 ac_ext=cpp
31229 ac_cpp='$CXXCPP $CPPFLAGS'
31230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31235 /* end confdefs.h. */
31236 #include <math.h>
31237 #ifdef HAVE_IEEEFP_H
31238 #include <ieeefp.h>
31239 #endif
31242 main ()
31244 logl(0);
31246 return 0;
31248 _ACEOF
31249 if ac_fn_cxx_try_compile "$LINENO"; then :
31250 glibcxx_cv_func_logl_use=yes
31251 else
31252 glibcxx_cv_func_logl_use=no
31254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31255 ac_ext=c
31256 ac_cpp='$CPP $CPPFLAGS'
31257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
31266 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
31268 if test x$glibcxx_cv_func_logl_use = x"yes"; then
31269 for ac_func in logl
31270 do :
31271 ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
31272 if test "x$ac_cv_func_logl" = xyes; then :
31273 cat >>confdefs.h <<_ACEOF
31274 #define HAVE_LOGL 1
31275 _ACEOF
31278 done
31284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
31285 $as_echo_n "checking for log10l declaration... " >&6; }
31286 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
31287 if ${glibcxx_cv_func_log10l_use+:} false; then :
31288 $as_echo_n "(cached) " >&6
31289 else
31292 ac_ext=cpp
31293 ac_cpp='$CXXCPP $CPPFLAGS'
31294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31299 /* end confdefs.h. */
31300 #include <math.h>
31301 #ifdef HAVE_IEEEFP_H
31302 #include <ieeefp.h>
31303 #endif
31306 main ()
31308 log10l(0);
31310 return 0;
31312 _ACEOF
31313 if ac_fn_cxx_try_compile "$LINENO"; then :
31314 glibcxx_cv_func_log10l_use=yes
31315 else
31316 glibcxx_cv_func_log10l_use=no
31318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31319 ac_ext=c
31320 ac_cpp='$CPP $CPPFLAGS'
31321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
31330 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
31332 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
31333 for ac_func in log10l
31334 do :
31335 ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
31336 if test "x$ac_cv_func_log10l" = xyes; then :
31337 cat >>confdefs.h <<_ACEOF
31338 #define HAVE_LOG10L 1
31339 _ACEOF
31342 done
31348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
31349 $as_echo_n "checking for modfl declaration... " >&6; }
31350 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
31351 if ${glibcxx_cv_func_modfl_use+:} false; then :
31352 $as_echo_n "(cached) " >&6
31353 else
31356 ac_ext=cpp
31357 ac_cpp='$CXXCPP $CPPFLAGS'
31358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31363 /* end confdefs.h. */
31364 #include <math.h>
31366 main ()
31368 modfl(0, 0);
31370 return 0;
31372 _ACEOF
31373 if ac_fn_cxx_try_compile "$LINENO"; then :
31374 glibcxx_cv_func_modfl_use=yes
31375 else
31376 glibcxx_cv_func_modfl_use=no
31378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31379 ac_ext=c
31380 ac_cpp='$CPP $CPPFLAGS'
31381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
31390 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
31392 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
31393 for ac_func in modfl
31394 do :
31395 ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
31396 if test "x$ac_cv_func_modfl" = xyes; then :
31397 cat >>confdefs.h <<_ACEOF
31398 #define HAVE_MODFL 1
31399 _ACEOF
31402 done
31408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
31409 $as_echo_n "checking for powl declaration... " >&6; }
31410 if test x${glibcxx_cv_func_powl_use+set} != xset; then
31411 if ${glibcxx_cv_func_powl_use+:} false; then :
31412 $as_echo_n "(cached) " >&6
31413 else
31416 ac_ext=cpp
31417 ac_cpp='$CXXCPP $CPPFLAGS'
31418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31423 /* end confdefs.h. */
31424 #include <math.h>
31426 main ()
31428 powl(0, 0);
31430 return 0;
31432 _ACEOF
31433 if ac_fn_cxx_try_compile "$LINENO"; then :
31434 glibcxx_cv_func_powl_use=yes
31435 else
31436 glibcxx_cv_func_powl_use=no
31438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31439 ac_ext=c
31440 ac_cpp='$CPP $CPPFLAGS'
31441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
31450 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
31452 if test x$glibcxx_cv_func_powl_use = x"yes"; then
31453 for ac_func in powl
31454 do :
31455 ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
31456 if test "x$ac_cv_func_powl" = xyes; then :
31457 cat >>confdefs.h <<_ACEOF
31458 #define HAVE_POWL 1
31459 _ACEOF
31462 done
31468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
31469 $as_echo_n "checking for sqrtl declaration... " >&6; }
31470 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
31471 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
31472 $as_echo_n "(cached) " >&6
31473 else
31476 ac_ext=cpp
31477 ac_cpp='$CXXCPP $CPPFLAGS'
31478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31483 /* end confdefs.h. */
31484 #include <math.h>
31485 #ifdef HAVE_IEEEFP_H
31486 #include <ieeefp.h>
31487 #endif
31490 main ()
31492 sqrtl(0);
31494 return 0;
31496 _ACEOF
31497 if ac_fn_cxx_try_compile "$LINENO"; then :
31498 glibcxx_cv_func_sqrtl_use=yes
31499 else
31500 glibcxx_cv_func_sqrtl_use=no
31502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31503 ac_ext=c
31504 ac_cpp='$CPP $CPPFLAGS'
31505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
31514 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
31516 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
31517 for ac_func in sqrtl
31518 do :
31519 ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
31520 if test "x$ac_cv_func_sqrtl" = xyes; then :
31521 cat >>confdefs.h <<_ACEOF
31522 #define HAVE_SQRTL 1
31523 _ACEOF
31526 done
31532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
31533 $as_echo_n "checking for sincosl declaration... " >&6; }
31534 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
31535 if ${glibcxx_cv_func_sincosl_use+:} false; then :
31536 $as_echo_n "(cached) " >&6
31537 else
31540 ac_ext=cpp
31541 ac_cpp='$CXXCPP $CPPFLAGS'
31542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31547 /* end confdefs.h. */
31548 #include <math.h>
31550 main ()
31552 sincosl(0, 0, 0);
31554 return 0;
31556 _ACEOF
31557 if ac_fn_cxx_try_compile "$LINENO"; then :
31558 glibcxx_cv_func_sincosl_use=yes
31559 else
31560 glibcxx_cv_func_sincosl_use=no
31562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31563 ac_ext=c
31564 ac_cpp='$CPP $CPPFLAGS'
31565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
31574 $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
31576 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
31577 for ac_func in sincosl
31578 do :
31579 ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
31580 if test "x$ac_cv_func_sincosl" = xyes; then :
31581 cat >>confdefs.h <<_ACEOF
31582 #define HAVE_SINCOSL 1
31583 _ACEOF
31586 done
31592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
31593 $as_echo_n "checking for finitel declaration... " >&6; }
31594 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
31595 if ${glibcxx_cv_func_finitel_use+:} false; then :
31596 $as_echo_n "(cached) " >&6
31597 else
31600 ac_ext=cpp
31601 ac_cpp='$CXXCPP $CPPFLAGS'
31602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31607 /* end confdefs.h. */
31608 #include <math.h>
31609 #ifdef HAVE_IEEEFP_H
31610 #include <ieeefp.h>
31611 #endif
31614 main ()
31616 finitel(0);
31618 return 0;
31620 _ACEOF
31621 if ac_fn_cxx_try_compile "$LINENO"; then :
31622 glibcxx_cv_func_finitel_use=yes
31623 else
31624 glibcxx_cv_func_finitel_use=no
31626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31627 ac_ext=c
31628 ac_cpp='$CPP $CPPFLAGS'
31629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
31638 $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
31640 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
31641 for ac_func in finitel
31642 do :
31643 ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
31644 if test "x$ac_cv_func_finitel" = xyes; then :
31645 cat >>confdefs.h <<_ACEOF
31646 #define HAVE_FINITEL 1
31647 _ACEOF
31650 done
31655 LIBS="$ac_save_LIBS"
31656 CXXFLAGS="$ac_save_CXXFLAGS"
31659 ac_test_CXXFLAGS="${CXXFLAGS+set}"
31660 ac_save_CXXFLAGS="$CXXFLAGS"
31661 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
31664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
31665 $as_echo_n "checking for at_quick_exit declaration... " >&6; }
31666 if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
31667 if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
31668 $as_echo_n "(cached) " >&6
31669 else
31672 ac_ext=cpp
31673 ac_cpp='$CXXCPP $CPPFLAGS'
31674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31679 /* end confdefs.h. */
31680 #include <stdlib.h>
31682 main ()
31684 at_quick_exit(0);
31686 return 0;
31688 _ACEOF
31689 if ac_fn_cxx_try_compile "$LINENO"; then :
31690 glibcxx_cv_func_at_quick_exit_use=yes
31691 else
31692 glibcxx_cv_func_at_quick_exit_use=no
31694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31695 ac_ext=c
31696 ac_cpp='$CPP $CPPFLAGS'
31697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
31706 $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
31707 if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
31708 for ac_func in at_quick_exit
31709 do :
31710 ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
31711 if test "x$ac_cv_func_at_quick_exit" = xyes; then :
31712 cat >>confdefs.h <<_ACEOF
31713 #define HAVE_AT_QUICK_EXIT 1
31714 _ACEOF
31717 done
31722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
31723 $as_echo_n "checking for quick_exit declaration... " >&6; }
31724 if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
31725 if ${glibcxx_cv_func_quick_exit_use+:} false; then :
31726 $as_echo_n "(cached) " >&6
31727 else
31730 ac_ext=cpp
31731 ac_cpp='$CXXCPP $CPPFLAGS'
31732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31737 /* end confdefs.h. */
31738 #include <stdlib.h>
31740 main ()
31742 quick_exit(0);
31744 return 0;
31746 _ACEOF
31747 if ac_fn_cxx_try_compile "$LINENO"; then :
31748 glibcxx_cv_func_quick_exit_use=yes
31749 else
31750 glibcxx_cv_func_quick_exit_use=no
31752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31753 ac_ext=c
31754 ac_cpp='$CPP $CPPFLAGS'
31755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
31764 $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
31765 if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
31766 for ac_func in quick_exit
31767 do :
31768 ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
31769 if test "x$ac_cv_func_quick_exit" = xyes; then :
31770 cat >>confdefs.h <<_ACEOF
31771 #define HAVE_QUICK_EXIT 1
31772 _ACEOF
31775 done
31780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
31781 $as_echo_n "checking for strtold declaration... " >&6; }
31782 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
31783 if ${glibcxx_cv_func_strtold_use+:} false; then :
31784 $as_echo_n "(cached) " >&6
31785 else
31788 ac_ext=cpp
31789 ac_cpp='$CXXCPP $CPPFLAGS'
31790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31795 /* end confdefs.h. */
31796 #include <stdlib.h>
31798 main ()
31800 strtold(0, 0);
31802 return 0;
31804 _ACEOF
31805 if ac_fn_cxx_try_compile "$LINENO"; then :
31806 glibcxx_cv_func_strtold_use=yes
31807 else
31808 glibcxx_cv_func_strtold_use=no
31810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31811 ac_ext=c
31812 ac_cpp='$CPP $CPPFLAGS'
31813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
31822 $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
31823 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
31824 for ac_func in strtold
31825 do :
31826 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
31827 if test "x$ac_cv_func_strtold" = xyes; then :
31828 cat >>confdefs.h <<_ACEOF
31829 #define HAVE_STRTOLD 1
31830 _ACEOF
31833 done
31838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
31839 $as_echo_n "checking for strtof declaration... " >&6; }
31840 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
31841 if ${glibcxx_cv_func_strtof_use+:} false; then :
31842 $as_echo_n "(cached) " >&6
31843 else
31846 ac_ext=cpp
31847 ac_cpp='$CXXCPP $CPPFLAGS'
31848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31853 /* end confdefs.h. */
31854 #include <stdlib.h>
31856 main ()
31858 strtof(0, 0);
31860 return 0;
31862 _ACEOF
31863 if ac_fn_cxx_try_compile "$LINENO"; then :
31864 glibcxx_cv_func_strtof_use=yes
31865 else
31866 glibcxx_cv_func_strtof_use=no
31868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31869 ac_ext=c
31870 ac_cpp='$CPP $CPPFLAGS'
31871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
31880 $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
31881 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
31882 for ac_func in strtof
31883 do :
31884 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
31885 if test "x$ac_cv_func_strtof" = xyes; then :
31886 cat >>confdefs.h <<_ACEOF
31887 #define HAVE_STRTOF 1
31888 _ACEOF
31891 done
31896 CXXFLAGS="$ac_save_CXXFLAGS"
31899 $as_echo "#define HAVE_FINITE 1" >>confdefs.h
31901 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
31903 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
31905 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
31908 $as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
31910 $as_echo "#define HAVE_MODF 1" >>confdefs.h
31912 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
31916 *-aix*)
31918 # If we're not using GNU ld, then there's no point in even trying these
31919 # tests. Check for that first. We should have already tested for gld
31920 # by now (in libtool), but require it now just to be safe...
31921 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
31922 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
31926 # The name set by libtool depends on the version of libtool. Shame on us
31927 # for depending on an impl detail, but c'est la vie. Older versions used
31928 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
31929 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
31930 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
31931 # set (hence we're using an older libtool), then set it.
31932 if test x${with_gnu_ld+set} != xset; then
31933 if test x${ac_cv_prog_gnu_ld+set} != xset; then
31934 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
31935 with_gnu_ld=no
31936 else
31937 with_gnu_ld=$ac_cv_prog_gnu_ld
31941 # Start by getting the version number. I think the libtool test already
31942 # does some of this, but throws away the result.
31943 glibcxx_ld_is_gold=no
31944 glibcxx_ld_is_mold=no
31945 if test x"$with_gnu_ld" = x"yes"; then
31946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
31947 $as_echo_n "checking for ld version... " >&6; }
31949 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
31950 glibcxx_ld_is_gold=yes
31951 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
31952 glibcxx_ld_is_mold=yes
31954 ldver=`$LD --version 2>/dev/null |
31955 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
31957 glibcxx_gnu_ld_version=`echo $ldver | \
31958 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
31959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
31960 $as_echo "$glibcxx_gnu_ld_version" >&6; }
31963 # Set --gc-sections.
31964 glibcxx_have_gc_sections=no
31965 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
31966 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
31967 glibcxx_have_gc_sections=yes
31969 else
31970 glibcxx_gcsections_min_ld=21602
31971 if test x"$with_gnu_ld" = x"yes" &&
31972 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
31973 glibcxx_have_gc_sections=yes
31976 if test "$glibcxx_have_gc_sections" = "yes"; then
31977 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
31978 # NB: This flag only works reliably after 2.16.1. Configure tests
31979 # for this are difficult, so hard wire a value that should work.
31981 ac_test_CFLAGS="${CFLAGS+set}"
31982 ac_save_CFLAGS="$CFLAGS"
31983 CFLAGS='-Wl,--gc-sections'
31985 # Check for -Wl,--gc-sections
31986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
31987 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
31988 if test x$gcc_no_link = xyes; then
31989 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
31991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31992 /* end confdefs.h. */
31993 int one(void) { return 1; }
31994 int two(void) { return 2; }
31997 main ()
31999 two();
32001 return 0;
32003 _ACEOF
32004 if ac_fn_c_try_link "$LINENO"; then :
32005 ac_gcsections=yes
32006 else
32007 ac_gcsections=no
32009 rm -f core conftest.err conftest.$ac_objext \
32010 conftest$ac_exeext conftest.$ac_ext
32011 if test "$ac_gcsections" = "yes"; then
32012 rm -f conftest.c
32013 touch conftest.c
32014 if $CC -c conftest.c; then
32015 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
32016 grep "Warning: gc-sections option ignored" > /dev/null; then
32017 ac_gcsections=no
32020 rm -f conftest.c conftest.o conftest
32022 if test "$ac_gcsections" = "yes"; then
32023 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
32025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
32026 $as_echo "$ac_gcsections" >&6; }
32028 if test "$ac_test_CFLAGS" = set; then
32029 CFLAGS="$ac_save_CFLAGS"
32030 else
32031 # this is the suspicious part
32032 CFLAGS=''
32036 # Set -z,relro.
32037 # Note this is only for shared objects.
32038 ac_ld_relro=no
32039 if test x"$with_gnu_ld" = x"yes"; then
32040 # cygwin and mingw uses PE, which has no ELF relro support,
32041 # multi target ld may confuse configure machinery
32042 case "$host" in
32043 *-*-cygwin*)
32045 *-*-mingw*)
32048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
32049 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
32050 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
32051 if test -n "$cxx_z_relo"; then
32052 OPT_LDFLAGS="-Wl,-z,relro"
32053 ac_ld_relro=yes
32055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
32056 $as_echo "$ac_ld_relro" >&6; }
32057 esac
32060 # Set linker optimization flags.
32061 if test x"$with_gnu_ld" = x"yes"; then
32062 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
32069 ac_test_CXXFLAGS="${CXXFLAGS+set}"
32070 ac_save_CXXFLAGS="$CXXFLAGS"
32071 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
32073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
32074 $as_echo_n "checking for sin in -lm... " >&6; }
32075 if ${ac_cv_lib_m_sin+:} false; then :
32076 $as_echo_n "(cached) " >&6
32077 else
32078 ac_check_lib_save_LIBS=$LIBS
32079 LIBS="-lm $LIBS"
32080 if test x$gcc_no_link = xyes; then
32081 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
32083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32084 /* end confdefs.h. */
32086 /* Override any GCC internal prototype to avoid an error.
32087 Use char because int might match the return type of a GCC
32088 builtin and then its argument prototype would still apply. */
32089 #ifdef __cplusplus
32090 extern "C"
32091 #endif
32092 char sin ();
32094 main ()
32096 return sin ();
32098 return 0;
32100 _ACEOF
32101 if ac_fn_c_try_link "$LINENO"; then :
32102 ac_cv_lib_m_sin=yes
32103 else
32104 ac_cv_lib_m_sin=no
32106 rm -f core conftest.err conftest.$ac_objext \
32107 conftest$ac_exeext conftest.$ac_ext
32108 LIBS=$ac_check_lib_save_LIBS
32110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
32111 $as_echo "$ac_cv_lib_m_sin" >&6; }
32112 if test "x$ac_cv_lib_m_sin" = xyes; then :
32113 libm="-lm"
32116 ac_save_LIBS="$LIBS"
32117 LIBS="$LIBS $libm"
32121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
32122 $as_echo_n "checking for isinf declaration... " >&6; }
32123 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
32124 if ${glibcxx_cv_func_isinf_use+:} false; then :
32125 $as_echo_n "(cached) " >&6
32126 else
32129 ac_ext=cpp
32130 ac_cpp='$CXXCPP $CPPFLAGS'
32131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32136 /* end confdefs.h. */
32137 #include <math.h>
32138 #ifdef HAVE_IEEEFP_H
32139 #include <ieeefp.h>
32140 #endif
32143 main ()
32145 isinf(0);
32147 return 0;
32149 _ACEOF
32150 if ac_fn_cxx_try_compile "$LINENO"; then :
32151 glibcxx_cv_func_isinf_use=yes
32152 else
32153 glibcxx_cv_func_isinf_use=no
32155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32156 ac_ext=c
32157 ac_cpp='$CPP $CPPFLAGS'
32158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
32167 $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
32169 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
32170 for ac_func in isinf
32171 do :
32172 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
32173 if test "x$ac_cv_func_isinf" = xyes; then :
32174 cat >>confdefs.h <<_ACEOF
32175 #define HAVE_ISINF 1
32176 _ACEOF
32179 done
32185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
32186 $as_echo_n "checking for isnan declaration... " >&6; }
32187 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
32188 if ${glibcxx_cv_func_isnan_use+:} false; then :
32189 $as_echo_n "(cached) " >&6
32190 else
32193 ac_ext=cpp
32194 ac_cpp='$CXXCPP $CPPFLAGS'
32195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32200 /* end confdefs.h. */
32201 #include <math.h>
32202 #ifdef HAVE_IEEEFP_H
32203 #include <ieeefp.h>
32204 #endif
32207 main ()
32209 isnan(0);
32211 return 0;
32213 _ACEOF
32214 if ac_fn_cxx_try_compile "$LINENO"; then :
32215 glibcxx_cv_func_isnan_use=yes
32216 else
32217 glibcxx_cv_func_isnan_use=no
32219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32220 ac_ext=c
32221 ac_cpp='$CPP $CPPFLAGS'
32222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
32231 $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
32233 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
32234 for ac_func in isnan
32235 do :
32236 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
32237 if test "x$ac_cv_func_isnan" = xyes; then :
32238 cat >>confdefs.h <<_ACEOF
32239 #define HAVE_ISNAN 1
32240 _ACEOF
32243 done
32249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
32250 $as_echo_n "checking for finite declaration... " >&6; }
32251 if test x${glibcxx_cv_func_finite_use+set} != xset; then
32252 if ${glibcxx_cv_func_finite_use+:} false; then :
32253 $as_echo_n "(cached) " >&6
32254 else
32257 ac_ext=cpp
32258 ac_cpp='$CXXCPP $CPPFLAGS'
32259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32264 /* end confdefs.h. */
32265 #include <math.h>
32266 #ifdef HAVE_IEEEFP_H
32267 #include <ieeefp.h>
32268 #endif
32271 main ()
32273 finite(0);
32275 return 0;
32277 _ACEOF
32278 if ac_fn_cxx_try_compile "$LINENO"; then :
32279 glibcxx_cv_func_finite_use=yes
32280 else
32281 glibcxx_cv_func_finite_use=no
32283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32284 ac_ext=c
32285 ac_cpp='$CPP $CPPFLAGS'
32286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
32295 $as_echo "$glibcxx_cv_func_finite_use" >&6; }
32297 if test x$glibcxx_cv_func_finite_use = x"yes"; then
32298 for ac_func in finite
32299 do :
32300 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
32301 if test "x$ac_cv_func_finite" = xyes; then :
32302 cat >>confdefs.h <<_ACEOF
32303 #define HAVE_FINITE 1
32304 _ACEOF
32307 done
32313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
32314 $as_echo_n "checking for sincos declaration... " >&6; }
32315 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
32316 if ${glibcxx_cv_func_sincos_use+:} false; then :
32317 $as_echo_n "(cached) " >&6
32318 else
32321 ac_ext=cpp
32322 ac_cpp='$CXXCPP $CPPFLAGS'
32323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32328 /* end confdefs.h. */
32329 #include <math.h>
32331 main ()
32333 sincos(0, 0, 0);
32335 return 0;
32337 _ACEOF
32338 if ac_fn_cxx_try_compile "$LINENO"; then :
32339 glibcxx_cv_func_sincos_use=yes
32340 else
32341 glibcxx_cv_func_sincos_use=no
32343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32344 ac_ext=c
32345 ac_cpp='$CPP $CPPFLAGS'
32346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
32355 $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
32357 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
32358 for ac_func in sincos
32359 do :
32360 ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
32361 if test "x$ac_cv_func_sincos" = xyes; then :
32362 cat >>confdefs.h <<_ACEOF
32363 #define HAVE_SINCOS 1
32364 _ACEOF
32367 done
32373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
32374 $as_echo_n "checking for fpclass declaration... " >&6; }
32375 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
32376 if ${glibcxx_cv_func_fpclass_use+:} false; then :
32377 $as_echo_n "(cached) " >&6
32378 else
32381 ac_ext=cpp
32382 ac_cpp='$CXXCPP $CPPFLAGS'
32383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32388 /* end confdefs.h. */
32389 #include <math.h>
32390 #ifdef HAVE_IEEEFP_H
32391 #include <ieeefp.h>
32392 #endif
32395 main ()
32397 fpclass(0);
32399 return 0;
32401 _ACEOF
32402 if ac_fn_cxx_try_compile "$LINENO"; then :
32403 glibcxx_cv_func_fpclass_use=yes
32404 else
32405 glibcxx_cv_func_fpclass_use=no
32407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32408 ac_ext=c
32409 ac_cpp='$CPP $CPPFLAGS'
32410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
32419 $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
32421 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
32422 for ac_func in fpclass
32423 do :
32424 ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
32425 if test "x$ac_cv_func_fpclass" = xyes; then :
32426 cat >>confdefs.h <<_ACEOF
32427 #define HAVE_FPCLASS 1
32428 _ACEOF
32431 done
32437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
32438 $as_echo_n "checking for qfpclass declaration... " >&6; }
32439 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
32440 if ${glibcxx_cv_func_qfpclass_use+:} false; then :
32441 $as_echo_n "(cached) " >&6
32442 else
32445 ac_ext=cpp
32446 ac_cpp='$CXXCPP $CPPFLAGS'
32447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32452 /* end confdefs.h. */
32453 #include <math.h>
32454 #ifdef HAVE_IEEEFP_H
32455 #include <ieeefp.h>
32456 #endif
32459 main ()
32461 qfpclass(0);
32463 return 0;
32465 _ACEOF
32466 if ac_fn_cxx_try_compile "$LINENO"; then :
32467 glibcxx_cv_func_qfpclass_use=yes
32468 else
32469 glibcxx_cv_func_qfpclass_use=no
32471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32472 ac_ext=c
32473 ac_cpp='$CPP $CPPFLAGS'
32474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
32483 $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
32485 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
32486 for ac_func in qfpclass
32487 do :
32488 ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
32489 if test "x$ac_cv_func_qfpclass" = xyes; then :
32490 cat >>confdefs.h <<_ACEOF
32491 #define HAVE_QFPCLASS 1
32492 _ACEOF
32495 done
32501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
32502 $as_echo_n "checking for hypot declaration... " >&6; }
32503 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
32504 if ${glibcxx_cv_func_hypot_use+:} false; then :
32505 $as_echo_n "(cached) " >&6
32506 else
32509 ac_ext=cpp
32510 ac_cpp='$CXXCPP $CPPFLAGS'
32511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32516 /* end confdefs.h. */
32517 #include <math.h>
32519 main ()
32521 hypot(0, 0);
32523 return 0;
32525 _ACEOF
32526 if ac_fn_cxx_try_compile "$LINENO"; then :
32527 glibcxx_cv_func_hypot_use=yes
32528 else
32529 glibcxx_cv_func_hypot_use=no
32531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32532 ac_ext=c
32533 ac_cpp='$CPP $CPPFLAGS'
32534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
32543 $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
32545 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
32546 for ac_func in hypot
32547 do :
32548 ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
32549 if test "x$ac_cv_func_hypot" = xyes; then :
32550 cat >>confdefs.h <<_ACEOF
32551 #define HAVE_HYPOT 1
32552 _ACEOF
32555 done
32561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
32562 $as_echo_n "checking for float trig functions... " >&6; }
32563 if ${glibcxx_cv_func_float_trig_use+:} false; then :
32564 $as_echo_n "(cached) " >&6
32565 else
32568 ac_ext=cpp
32569 ac_cpp='$CXXCPP $CPPFLAGS'
32570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32575 /* end confdefs.h. */
32576 #include <math.h>
32578 main ()
32580 acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
32582 return 0;
32584 _ACEOF
32585 if ac_fn_cxx_try_compile "$LINENO"; then :
32586 glibcxx_cv_func_float_trig_use=yes
32587 else
32588 glibcxx_cv_func_float_trig_use=no
32590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32591 ac_ext=c
32592 ac_cpp='$CPP $CPPFLAGS'
32593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
32600 $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
32601 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
32602 for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
32603 do :
32604 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32605 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
32606 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
32607 cat >>confdefs.h <<_ACEOF
32608 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32609 _ACEOF
32612 done
32618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
32619 $as_echo_n "checking for float round functions... " >&6; }
32620 if ${glibcxx_cv_func_float_round_use+:} false; then :
32621 $as_echo_n "(cached) " >&6
32622 else
32625 ac_ext=cpp
32626 ac_cpp='$CXXCPP $CPPFLAGS'
32627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32632 /* end confdefs.h. */
32633 #include <math.h>
32635 main ()
32637 ceilf (0); floorf (0);
32639 return 0;
32641 _ACEOF
32642 if ac_fn_cxx_try_compile "$LINENO"; then :
32643 glibcxx_cv_func_float_round_use=yes
32644 else
32645 glibcxx_cv_func_float_round_use=no
32647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32648 ac_ext=c
32649 ac_cpp='$CPP $CPPFLAGS'
32650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
32657 $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
32658 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
32659 for ac_func in ceilf floorf
32660 do :
32661 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32662 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
32663 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
32664 cat >>confdefs.h <<_ACEOF
32665 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32666 _ACEOF
32669 done
32676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
32677 $as_echo_n "checking for expf declaration... " >&6; }
32678 if test x${glibcxx_cv_func_expf_use+set} != xset; then
32679 if ${glibcxx_cv_func_expf_use+:} false; then :
32680 $as_echo_n "(cached) " >&6
32681 else
32684 ac_ext=cpp
32685 ac_cpp='$CXXCPP $CPPFLAGS'
32686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32691 /* end confdefs.h. */
32692 #include <math.h>
32693 #ifdef HAVE_IEEEFP_H
32694 #include <ieeefp.h>
32695 #endif
32698 main ()
32700 expf(0);
32702 return 0;
32704 _ACEOF
32705 if ac_fn_cxx_try_compile "$LINENO"; then :
32706 glibcxx_cv_func_expf_use=yes
32707 else
32708 glibcxx_cv_func_expf_use=no
32710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32711 ac_ext=c
32712 ac_cpp='$CPP $CPPFLAGS'
32713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
32722 $as_echo "$glibcxx_cv_func_expf_use" >&6; }
32724 if test x$glibcxx_cv_func_expf_use = x"yes"; then
32725 for ac_func in expf
32726 do :
32727 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
32728 if test "x$ac_cv_func_expf" = xyes; then :
32729 cat >>confdefs.h <<_ACEOF
32730 #define HAVE_EXPF 1
32731 _ACEOF
32734 done
32740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
32741 $as_echo_n "checking for isnanf declaration... " >&6; }
32742 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
32743 if ${glibcxx_cv_func_isnanf_use+:} false; then :
32744 $as_echo_n "(cached) " >&6
32745 else
32748 ac_ext=cpp
32749 ac_cpp='$CXXCPP $CPPFLAGS'
32750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32755 /* end confdefs.h. */
32756 #include <math.h>
32757 #ifdef HAVE_IEEEFP_H
32758 #include <ieeefp.h>
32759 #endif
32762 main ()
32764 isnanf(0);
32766 return 0;
32768 _ACEOF
32769 if ac_fn_cxx_try_compile "$LINENO"; then :
32770 glibcxx_cv_func_isnanf_use=yes
32771 else
32772 glibcxx_cv_func_isnanf_use=no
32774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32775 ac_ext=c
32776 ac_cpp='$CPP $CPPFLAGS'
32777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
32786 $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
32788 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
32789 for ac_func in isnanf
32790 do :
32791 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
32792 if test "x$ac_cv_func_isnanf" = xyes; then :
32793 cat >>confdefs.h <<_ACEOF
32794 #define HAVE_ISNANF 1
32795 _ACEOF
32798 done
32804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
32805 $as_echo_n "checking for isinff declaration... " >&6; }
32806 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
32807 if ${glibcxx_cv_func_isinff_use+:} false; then :
32808 $as_echo_n "(cached) " >&6
32809 else
32812 ac_ext=cpp
32813 ac_cpp='$CXXCPP $CPPFLAGS'
32814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32819 /* end confdefs.h. */
32820 #include <math.h>
32821 #ifdef HAVE_IEEEFP_H
32822 #include <ieeefp.h>
32823 #endif
32826 main ()
32828 isinff(0);
32830 return 0;
32832 _ACEOF
32833 if ac_fn_cxx_try_compile "$LINENO"; then :
32834 glibcxx_cv_func_isinff_use=yes
32835 else
32836 glibcxx_cv_func_isinff_use=no
32838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32839 ac_ext=c
32840 ac_cpp='$CPP $CPPFLAGS'
32841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
32850 $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
32852 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
32853 for ac_func in isinff
32854 do :
32855 ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
32856 if test "x$ac_cv_func_isinff" = xyes; then :
32857 cat >>confdefs.h <<_ACEOF
32858 #define HAVE_ISINFF 1
32859 _ACEOF
32862 done
32868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
32869 $as_echo_n "checking for atan2f declaration... " >&6; }
32870 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
32871 if ${glibcxx_cv_func_atan2f_use+:} false; then :
32872 $as_echo_n "(cached) " >&6
32873 else
32876 ac_ext=cpp
32877 ac_cpp='$CXXCPP $CPPFLAGS'
32878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32883 /* end confdefs.h. */
32884 #include <math.h>
32886 main ()
32888 atan2f(0, 0);
32890 return 0;
32892 _ACEOF
32893 if ac_fn_cxx_try_compile "$LINENO"; then :
32894 glibcxx_cv_func_atan2f_use=yes
32895 else
32896 glibcxx_cv_func_atan2f_use=no
32898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32899 ac_ext=c
32900 ac_cpp='$CPP $CPPFLAGS'
32901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
32910 $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
32912 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
32913 for ac_func in atan2f
32914 do :
32915 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
32916 if test "x$ac_cv_func_atan2f" = xyes; then :
32917 cat >>confdefs.h <<_ACEOF
32918 #define HAVE_ATAN2F 1
32919 _ACEOF
32922 done
32928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
32929 $as_echo_n "checking for fabsf declaration... " >&6; }
32930 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
32931 if ${glibcxx_cv_func_fabsf_use+:} false; then :
32932 $as_echo_n "(cached) " >&6
32933 else
32936 ac_ext=cpp
32937 ac_cpp='$CXXCPP $CPPFLAGS'
32938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32943 /* end confdefs.h. */
32944 #include <math.h>
32945 #ifdef HAVE_IEEEFP_H
32946 #include <ieeefp.h>
32947 #endif
32950 main ()
32952 fabsf(0);
32954 return 0;
32956 _ACEOF
32957 if ac_fn_cxx_try_compile "$LINENO"; then :
32958 glibcxx_cv_func_fabsf_use=yes
32959 else
32960 glibcxx_cv_func_fabsf_use=no
32962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32963 ac_ext=c
32964 ac_cpp='$CPP $CPPFLAGS'
32965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
32974 $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
32976 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
32977 for ac_func in fabsf
32978 do :
32979 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
32980 if test "x$ac_cv_func_fabsf" = xyes; then :
32981 cat >>confdefs.h <<_ACEOF
32982 #define HAVE_FABSF 1
32983 _ACEOF
32986 done
32992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
32993 $as_echo_n "checking for fmodf declaration... " >&6; }
32994 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
32995 if ${glibcxx_cv_func_fmodf_use+:} false; then :
32996 $as_echo_n "(cached) " >&6
32997 else
33000 ac_ext=cpp
33001 ac_cpp='$CXXCPP $CPPFLAGS'
33002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33007 /* end confdefs.h. */
33008 #include <math.h>
33010 main ()
33012 fmodf(0, 0);
33014 return 0;
33016 _ACEOF
33017 if ac_fn_cxx_try_compile "$LINENO"; then :
33018 glibcxx_cv_func_fmodf_use=yes
33019 else
33020 glibcxx_cv_func_fmodf_use=no
33022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33023 ac_ext=c
33024 ac_cpp='$CPP $CPPFLAGS'
33025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
33034 $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
33036 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
33037 for ac_func in fmodf
33038 do :
33039 ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
33040 if test "x$ac_cv_func_fmodf" = xyes; then :
33041 cat >>confdefs.h <<_ACEOF
33042 #define HAVE_FMODF 1
33043 _ACEOF
33046 done
33052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
33053 $as_echo_n "checking for frexpf declaration... " >&6; }
33054 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
33055 if ${glibcxx_cv_func_frexpf_use+:} false; then :
33056 $as_echo_n "(cached) " >&6
33057 else
33060 ac_ext=cpp
33061 ac_cpp='$CXXCPP $CPPFLAGS'
33062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33067 /* end confdefs.h. */
33068 #include <math.h>
33070 main ()
33072 frexpf(0, 0);
33074 return 0;
33076 _ACEOF
33077 if ac_fn_cxx_try_compile "$LINENO"; then :
33078 glibcxx_cv_func_frexpf_use=yes
33079 else
33080 glibcxx_cv_func_frexpf_use=no
33082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33083 ac_ext=c
33084 ac_cpp='$CPP $CPPFLAGS'
33085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
33094 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
33096 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
33097 for ac_func in frexpf
33098 do :
33099 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
33100 if test "x$ac_cv_func_frexpf" = xyes; then :
33101 cat >>confdefs.h <<_ACEOF
33102 #define HAVE_FREXPF 1
33103 _ACEOF
33106 done
33112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
33113 $as_echo_n "checking for hypotf declaration... " >&6; }
33114 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
33115 if ${glibcxx_cv_func_hypotf_use+:} false; then :
33116 $as_echo_n "(cached) " >&6
33117 else
33120 ac_ext=cpp
33121 ac_cpp='$CXXCPP $CPPFLAGS'
33122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33127 /* end confdefs.h. */
33128 #include <math.h>
33130 main ()
33132 hypotf(0, 0);
33134 return 0;
33136 _ACEOF
33137 if ac_fn_cxx_try_compile "$LINENO"; then :
33138 glibcxx_cv_func_hypotf_use=yes
33139 else
33140 glibcxx_cv_func_hypotf_use=no
33142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33143 ac_ext=c
33144 ac_cpp='$CPP $CPPFLAGS'
33145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
33154 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
33156 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
33157 for ac_func in hypotf
33158 do :
33159 ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
33160 if test "x$ac_cv_func_hypotf" = xyes; then :
33161 cat >>confdefs.h <<_ACEOF
33162 #define HAVE_HYPOTF 1
33163 _ACEOF
33166 done
33172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
33173 $as_echo_n "checking for ldexpf declaration... " >&6; }
33174 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
33175 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
33176 $as_echo_n "(cached) " >&6
33177 else
33180 ac_ext=cpp
33181 ac_cpp='$CXXCPP $CPPFLAGS'
33182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33187 /* end confdefs.h. */
33188 #include <math.h>
33190 main ()
33192 ldexpf(0, 0);
33194 return 0;
33196 _ACEOF
33197 if ac_fn_cxx_try_compile "$LINENO"; then :
33198 glibcxx_cv_func_ldexpf_use=yes
33199 else
33200 glibcxx_cv_func_ldexpf_use=no
33202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33203 ac_ext=c
33204 ac_cpp='$CPP $CPPFLAGS'
33205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
33214 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
33216 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
33217 for ac_func in ldexpf
33218 do :
33219 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
33220 if test "x$ac_cv_func_ldexpf" = xyes; then :
33221 cat >>confdefs.h <<_ACEOF
33222 #define HAVE_LDEXPF 1
33223 _ACEOF
33226 done
33232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
33233 $as_echo_n "checking for logf declaration... " >&6; }
33234 if test x${glibcxx_cv_func_logf_use+set} != xset; then
33235 if ${glibcxx_cv_func_logf_use+:} false; then :
33236 $as_echo_n "(cached) " >&6
33237 else
33240 ac_ext=cpp
33241 ac_cpp='$CXXCPP $CPPFLAGS'
33242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33247 /* end confdefs.h. */
33248 #include <math.h>
33249 #ifdef HAVE_IEEEFP_H
33250 #include <ieeefp.h>
33251 #endif
33254 main ()
33256 logf(0);
33258 return 0;
33260 _ACEOF
33261 if ac_fn_cxx_try_compile "$LINENO"; then :
33262 glibcxx_cv_func_logf_use=yes
33263 else
33264 glibcxx_cv_func_logf_use=no
33266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33267 ac_ext=c
33268 ac_cpp='$CPP $CPPFLAGS'
33269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
33278 $as_echo "$glibcxx_cv_func_logf_use" >&6; }
33280 if test x$glibcxx_cv_func_logf_use = x"yes"; then
33281 for ac_func in logf
33282 do :
33283 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
33284 if test "x$ac_cv_func_logf" = xyes; then :
33285 cat >>confdefs.h <<_ACEOF
33286 #define HAVE_LOGF 1
33287 _ACEOF
33290 done
33296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
33297 $as_echo_n "checking for log10f declaration... " >&6; }
33298 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
33299 if ${glibcxx_cv_func_log10f_use+:} false; then :
33300 $as_echo_n "(cached) " >&6
33301 else
33304 ac_ext=cpp
33305 ac_cpp='$CXXCPP $CPPFLAGS'
33306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33311 /* end confdefs.h. */
33312 #include <math.h>
33313 #ifdef HAVE_IEEEFP_H
33314 #include <ieeefp.h>
33315 #endif
33318 main ()
33320 log10f(0);
33322 return 0;
33324 _ACEOF
33325 if ac_fn_cxx_try_compile "$LINENO"; then :
33326 glibcxx_cv_func_log10f_use=yes
33327 else
33328 glibcxx_cv_func_log10f_use=no
33330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33331 ac_ext=c
33332 ac_cpp='$CPP $CPPFLAGS'
33333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
33342 $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
33344 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
33345 for ac_func in log10f
33346 do :
33347 ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
33348 if test "x$ac_cv_func_log10f" = xyes; then :
33349 cat >>confdefs.h <<_ACEOF
33350 #define HAVE_LOG10F 1
33351 _ACEOF
33354 done
33360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
33361 $as_echo_n "checking for modff declaration... " >&6; }
33362 if test x${glibcxx_cv_func_modff_use+set} != xset; then
33363 if ${glibcxx_cv_func_modff_use+:} false; then :
33364 $as_echo_n "(cached) " >&6
33365 else
33368 ac_ext=cpp
33369 ac_cpp='$CXXCPP $CPPFLAGS'
33370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33375 /* end confdefs.h. */
33376 #include <math.h>
33378 main ()
33380 modff(0, 0);
33382 return 0;
33384 _ACEOF
33385 if ac_fn_cxx_try_compile "$LINENO"; then :
33386 glibcxx_cv_func_modff_use=yes
33387 else
33388 glibcxx_cv_func_modff_use=no
33390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33391 ac_ext=c
33392 ac_cpp='$CPP $CPPFLAGS'
33393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
33402 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
33404 if test x$glibcxx_cv_func_modff_use = x"yes"; then
33405 for ac_func in modff
33406 do :
33407 ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
33408 if test "x$ac_cv_func_modff" = xyes; then :
33409 cat >>confdefs.h <<_ACEOF
33410 #define HAVE_MODFF 1
33411 _ACEOF
33414 done
33420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
33421 $as_echo_n "checking for modf declaration... " >&6; }
33422 if test x${glibcxx_cv_func_modf_use+set} != xset; then
33423 if ${glibcxx_cv_func_modf_use+:} false; then :
33424 $as_echo_n "(cached) " >&6
33425 else
33428 ac_ext=cpp
33429 ac_cpp='$CXXCPP $CPPFLAGS'
33430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33435 /* end confdefs.h. */
33436 #include <math.h>
33438 main ()
33440 modf(0, 0);
33442 return 0;
33444 _ACEOF
33445 if ac_fn_cxx_try_compile "$LINENO"; then :
33446 glibcxx_cv_func_modf_use=yes
33447 else
33448 glibcxx_cv_func_modf_use=no
33450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33451 ac_ext=c
33452 ac_cpp='$CPP $CPPFLAGS'
33453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
33462 $as_echo "$glibcxx_cv_func_modf_use" >&6; }
33464 if test x$glibcxx_cv_func_modf_use = x"yes"; then
33465 for ac_func in modf
33466 do :
33467 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
33468 if test "x$ac_cv_func_modf" = xyes; then :
33469 cat >>confdefs.h <<_ACEOF
33470 #define HAVE_MODF 1
33471 _ACEOF
33474 done
33480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
33481 $as_echo_n "checking for powf declaration... " >&6; }
33482 if test x${glibcxx_cv_func_powf_use+set} != xset; then
33483 if ${glibcxx_cv_func_powf_use+:} false; then :
33484 $as_echo_n "(cached) " >&6
33485 else
33488 ac_ext=cpp
33489 ac_cpp='$CXXCPP $CPPFLAGS'
33490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33495 /* end confdefs.h. */
33496 #include <math.h>
33498 main ()
33500 powf(0, 0);
33502 return 0;
33504 _ACEOF
33505 if ac_fn_cxx_try_compile "$LINENO"; then :
33506 glibcxx_cv_func_powf_use=yes
33507 else
33508 glibcxx_cv_func_powf_use=no
33510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33511 ac_ext=c
33512 ac_cpp='$CPP $CPPFLAGS'
33513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
33522 $as_echo "$glibcxx_cv_func_powf_use" >&6; }
33524 if test x$glibcxx_cv_func_powf_use = x"yes"; then
33525 for ac_func in powf
33526 do :
33527 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
33528 if test "x$ac_cv_func_powf" = xyes; then :
33529 cat >>confdefs.h <<_ACEOF
33530 #define HAVE_POWF 1
33531 _ACEOF
33534 done
33540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
33541 $as_echo_n "checking for sqrtf declaration... " >&6; }
33542 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
33543 if ${glibcxx_cv_func_sqrtf_use+:} false; then :
33544 $as_echo_n "(cached) " >&6
33545 else
33548 ac_ext=cpp
33549 ac_cpp='$CXXCPP $CPPFLAGS'
33550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33555 /* end confdefs.h. */
33556 #include <math.h>
33557 #ifdef HAVE_IEEEFP_H
33558 #include <ieeefp.h>
33559 #endif
33562 main ()
33564 sqrtf(0);
33566 return 0;
33568 _ACEOF
33569 if ac_fn_cxx_try_compile "$LINENO"; then :
33570 glibcxx_cv_func_sqrtf_use=yes
33571 else
33572 glibcxx_cv_func_sqrtf_use=no
33574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33575 ac_ext=c
33576 ac_cpp='$CPP $CPPFLAGS'
33577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
33586 $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
33588 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
33589 for ac_func in sqrtf
33590 do :
33591 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
33592 if test "x$ac_cv_func_sqrtf" = xyes; then :
33593 cat >>confdefs.h <<_ACEOF
33594 #define HAVE_SQRTF 1
33595 _ACEOF
33598 done
33604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
33605 $as_echo_n "checking for sincosf declaration... " >&6; }
33606 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
33607 if ${glibcxx_cv_func_sincosf_use+:} false; then :
33608 $as_echo_n "(cached) " >&6
33609 else
33612 ac_ext=cpp
33613 ac_cpp='$CXXCPP $CPPFLAGS'
33614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33619 /* end confdefs.h. */
33620 #include <math.h>
33622 main ()
33624 sincosf(0, 0, 0);
33626 return 0;
33628 _ACEOF
33629 if ac_fn_cxx_try_compile "$LINENO"; then :
33630 glibcxx_cv_func_sincosf_use=yes
33631 else
33632 glibcxx_cv_func_sincosf_use=no
33634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33635 ac_ext=c
33636 ac_cpp='$CPP $CPPFLAGS'
33637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
33646 $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
33648 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
33649 for ac_func in sincosf
33650 do :
33651 ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
33652 if test "x$ac_cv_func_sincosf" = xyes; then :
33653 cat >>confdefs.h <<_ACEOF
33654 #define HAVE_SINCOSF 1
33655 _ACEOF
33658 done
33664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
33665 $as_echo_n "checking for finitef declaration... " >&6; }
33666 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
33667 if ${glibcxx_cv_func_finitef_use+:} false; then :
33668 $as_echo_n "(cached) " >&6
33669 else
33672 ac_ext=cpp
33673 ac_cpp='$CXXCPP $CPPFLAGS'
33674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33679 /* end confdefs.h. */
33680 #include <math.h>
33681 #ifdef HAVE_IEEEFP_H
33682 #include <ieeefp.h>
33683 #endif
33686 main ()
33688 finitef(0);
33690 return 0;
33692 _ACEOF
33693 if ac_fn_cxx_try_compile "$LINENO"; then :
33694 glibcxx_cv_func_finitef_use=yes
33695 else
33696 glibcxx_cv_func_finitef_use=no
33698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33699 ac_ext=c
33700 ac_cpp='$CPP $CPPFLAGS'
33701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
33710 $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
33712 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
33713 for ac_func in finitef
33714 do :
33715 ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
33716 if test "x$ac_cv_func_finitef" = xyes; then :
33717 cat >>confdefs.h <<_ACEOF
33718 #define HAVE_FINITEF 1
33719 _ACEOF
33722 done
33728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
33729 $as_echo_n "checking for long double trig functions... " >&6; }
33730 if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
33731 $as_echo_n "(cached) " >&6
33732 else
33735 ac_ext=cpp
33736 ac_cpp='$CXXCPP $CPPFLAGS'
33737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33742 /* end confdefs.h. */
33743 #include <math.h>
33745 main ()
33747 acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
33749 return 0;
33751 _ACEOF
33752 if ac_fn_cxx_try_compile "$LINENO"; then :
33753 glibcxx_cv_func_long_double_trig_use=yes
33754 else
33755 glibcxx_cv_func_long_double_trig_use=no
33757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33758 ac_ext=c
33759 ac_cpp='$CPP $CPPFLAGS'
33760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
33767 $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
33768 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
33769 for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
33770 do :
33771 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33772 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
33773 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
33774 cat >>confdefs.h <<_ACEOF
33775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33776 _ACEOF
33779 done
33785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
33786 $as_echo_n "checking for long double round functions... " >&6; }
33787 if ${glibcxx_cv_func_long_double_round_use+:} false; then :
33788 $as_echo_n "(cached) " >&6
33789 else
33792 ac_ext=cpp
33793 ac_cpp='$CXXCPP $CPPFLAGS'
33794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33799 /* end confdefs.h. */
33800 #include <math.h>
33802 main ()
33804 ceill (0); floorl (0);
33806 return 0;
33808 _ACEOF
33809 if ac_fn_cxx_try_compile "$LINENO"; then :
33810 glibcxx_cv_func_long_double_round_use=yes
33811 else
33812 glibcxx_cv_func_long_double_round_use=no
33814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33815 ac_ext=c
33816 ac_cpp='$CPP $CPPFLAGS'
33817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
33824 $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
33825 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
33826 for ac_func in ceill floorl
33827 do :
33828 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33829 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
33830 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
33831 cat >>confdefs.h <<_ACEOF
33832 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33833 _ACEOF
33836 done
33843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
33844 $as_echo_n "checking for isnanl declaration... " >&6; }
33845 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
33846 if ${glibcxx_cv_func_isnanl_use+:} false; then :
33847 $as_echo_n "(cached) " >&6
33848 else
33851 ac_ext=cpp
33852 ac_cpp='$CXXCPP $CPPFLAGS'
33853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33858 /* end confdefs.h. */
33859 #include <math.h>
33860 #ifdef HAVE_IEEEFP_H
33861 #include <ieeefp.h>
33862 #endif
33865 main ()
33867 isnanl(0);
33869 return 0;
33871 _ACEOF
33872 if ac_fn_cxx_try_compile "$LINENO"; then :
33873 glibcxx_cv_func_isnanl_use=yes
33874 else
33875 glibcxx_cv_func_isnanl_use=no
33877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33878 ac_ext=c
33879 ac_cpp='$CPP $CPPFLAGS'
33880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
33889 $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
33891 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
33892 for ac_func in isnanl
33893 do :
33894 ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
33895 if test "x$ac_cv_func_isnanl" = xyes; then :
33896 cat >>confdefs.h <<_ACEOF
33897 #define HAVE_ISNANL 1
33898 _ACEOF
33901 done
33907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
33908 $as_echo_n "checking for isinfl declaration... " >&6; }
33909 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
33910 if ${glibcxx_cv_func_isinfl_use+:} false; then :
33911 $as_echo_n "(cached) " >&6
33912 else
33915 ac_ext=cpp
33916 ac_cpp='$CXXCPP $CPPFLAGS'
33917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33922 /* end confdefs.h. */
33923 #include <math.h>
33924 #ifdef HAVE_IEEEFP_H
33925 #include <ieeefp.h>
33926 #endif
33929 main ()
33931 isinfl(0);
33933 return 0;
33935 _ACEOF
33936 if ac_fn_cxx_try_compile "$LINENO"; then :
33937 glibcxx_cv_func_isinfl_use=yes
33938 else
33939 glibcxx_cv_func_isinfl_use=no
33941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33942 ac_ext=c
33943 ac_cpp='$CPP $CPPFLAGS'
33944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
33953 $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
33955 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
33956 for ac_func in isinfl
33957 do :
33958 ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
33959 if test "x$ac_cv_func_isinfl" = xyes; then :
33960 cat >>confdefs.h <<_ACEOF
33961 #define HAVE_ISINFL 1
33962 _ACEOF
33965 done
33971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
33972 $as_echo_n "checking for atan2l declaration... " >&6; }
33973 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
33974 if ${glibcxx_cv_func_atan2l_use+:} false; then :
33975 $as_echo_n "(cached) " >&6
33976 else
33979 ac_ext=cpp
33980 ac_cpp='$CXXCPP $CPPFLAGS'
33981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33986 /* end confdefs.h. */
33987 #include <math.h>
33989 main ()
33991 atan2l(0, 0);
33993 return 0;
33995 _ACEOF
33996 if ac_fn_cxx_try_compile "$LINENO"; then :
33997 glibcxx_cv_func_atan2l_use=yes
33998 else
33999 glibcxx_cv_func_atan2l_use=no
34001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34002 ac_ext=c
34003 ac_cpp='$CPP $CPPFLAGS'
34004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
34013 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
34015 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
34016 for ac_func in atan2l
34017 do :
34018 ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
34019 if test "x$ac_cv_func_atan2l" = xyes; then :
34020 cat >>confdefs.h <<_ACEOF
34021 #define HAVE_ATAN2L 1
34022 _ACEOF
34025 done
34031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
34032 $as_echo_n "checking for expl declaration... " >&6; }
34033 if test x${glibcxx_cv_func_expl_use+set} != xset; then
34034 if ${glibcxx_cv_func_expl_use+:} false; then :
34035 $as_echo_n "(cached) " >&6
34036 else
34039 ac_ext=cpp
34040 ac_cpp='$CXXCPP $CPPFLAGS'
34041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34046 /* end confdefs.h. */
34047 #include <math.h>
34048 #ifdef HAVE_IEEEFP_H
34049 #include <ieeefp.h>
34050 #endif
34053 main ()
34055 expl(0);
34057 return 0;
34059 _ACEOF
34060 if ac_fn_cxx_try_compile "$LINENO"; then :
34061 glibcxx_cv_func_expl_use=yes
34062 else
34063 glibcxx_cv_func_expl_use=no
34065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34066 ac_ext=c
34067 ac_cpp='$CPP $CPPFLAGS'
34068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
34077 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
34079 if test x$glibcxx_cv_func_expl_use = x"yes"; then
34080 for ac_func in expl
34081 do :
34082 ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
34083 if test "x$ac_cv_func_expl" = xyes; then :
34084 cat >>confdefs.h <<_ACEOF
34085 #define HAVE_EXPL 1
34086 _ACEOF
34089 done
34095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
34096 $as_echo_n "checking for fabsl declaration... " >&6; }
34097 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
34098 if ${glibcxx_cv_func_fabsl_use+:} false; then :
34099 $as_echo_n "(cached) " >&6
34100 else
34103 ac_ext=cpp
34104 ac_cpp='$CXXCPP $CPPFLAGS'
34105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34110 /* end confdefs.h. */
34111 #include <math.h>
34112 #ifdef HAVE_IEEEFP_H
34113 #include <ieeefp.h>
34114 #endif
34117 main ()
34119 fabsl(0);
34121 return 0;
34123 _ACEOF
34124 if ac_fn_cxx_try_compile "$LINENO"; then :
34125 glibcxx_cv_func_fabsl_use=yes
34126 else
34127 glibcxx_cv_func_fabsl_use=no
34129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34130 ac_ext=c
34131 ac_cpp='$CPP $CPPFLAGS'
34132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
34141 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
34143 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
34144 for ac_func in fabsl
34145 do :
34146 ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
34147 if test "x$ac_cv_func_fabsl" = xyes; then :
34148 cat >>confdefs.h <<_ACEOF
34149 #define HAVE_FABSL 1
34150 _ACEOF
34153 done
34159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
34160 $as_echo_n "checking for fmodl declaration... " >&6; }
34161 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
34162 if ${glibcxx_cv_func_fmodl_use+:} false; then :
34163 $as_echo_n "(cached) " >&6
34164 else
34167 ac_ext=cpp
34168 ac_cpp='$CXXCPP $CPPFLAGS'
34169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34174 /* end confdefs.h. */
34175 #include <math.h>
34177 main ()
34179 fmodl(0, 0);
34181 return 0;
34183 _ACEOF
34184 if ac_fn_cxx_try_compile "$LINENO"; then :
34185 glibcxx_cv_func_fmodl_use=yes
34186 else
34187 glibcxx_cv_func_fmodl_use=no
34189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34190 ac_ext=c
34191 ac_cpp='$CPP $CPPFLAGS'
34192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
34201 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
34203 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
34204 for ac_func in fmodl
34205 do :
34206 ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
34207 if test "x$ac_cv_func_fmodl" = xyes; then :
34208 cat >>confdefs.h <<_ACEOF
34209 #define HAVE_FMODL 1
34210 _ACEOF
34213 done
34219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
34220 $as_echo_n "checking for frexpl declaration... " >&6; }
34221 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
34222 if ${glibcxx_cv_func_frexpl_use+:} false; then :
34223 $as_echo_n "(cached) " >&6
34224 else
34227 ac_ext=cpp
34228 ac_cpp='$CXXCPP $CPPFLAGS'
34229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34234 /* end confdefs.h. */
34235 #include <math.h>
34237 main ()
34239 frexpl(0, 0);
34241 return 0;
34243 _ACEOF
34244 if ac_fn_cxx_try_compile "$LINENO"; then :
34245 glibcxx_cv_func_frexpl_use=yes
34246 else
34247 glibcxx_cv_func_frexpl_use=no
34249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34250 ac_ext=c
34251 ac_cpp='$CPP $CPPFLAGS'
34252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
34261 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
34263 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
34264 for ac_func in frexpl
34265 do :
34266 ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
34267 if test "x$ac_cv_func_frexpl" = xyes; then :
34268 cat >>confdefs.h <<_ACEOF
34269 #define HAVE_FREXPL 1
34270 _ACEOF
34273 done
34279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
34280 $as_echo_n "checking for hypotl declaration... " >&6; }
34281 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
34282 if ${glibcxx_cv_func_hypotl_use+:} false; then :
34283 $as_echo_n "(cached) " >&6
34284 else
34287 ac_ext=cpp
34288 ac_cpp='$CXXCPP $CPPFLAGS'
34289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34294 /* end confdefs.h. */
34295 #include <math.h>
34297 main ()
34299 hypotl(0, 0);
34301 return 0;
34303 _ACEOF
34304 if ac_fn_cxx_try_compile "$LINENO"; then :
34305 glibcxx_cv_func_hypotl_use=yes
34306 else
34307 glibcxx_cv_func_hypotl_use=no
34309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34310 ac_ext=c
34311 ac_cpp='$CPP $CPPFLAGS'
34312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
34321 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
34323 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
34324 for ac_func in hypotl
34325 do :
34326 ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
34327 if test "x$ac_cv_func_hypotl" = xyes; then :
34328 cat >>confdefs.h <<_ACEOF
34329 #define HAVE_HYPOTL 1
34330 _ACEOF
34333 done
34339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
34340 $as_echo_n "checking for ldexpl declaration... " >&6; }
34341 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
34342 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
34343 $as_echo_n "(cached) " >&6
34344 else
34347 ac_ext=cpp
34348 ac_cpp='$CXXCPP $CPPFLAGS'
34349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34354 /* end confdefs.h. */
34355 #include <math.h>
34357 main ()
34359 ldexpl(0, 0);
34361 return 0;
34363 _ACEOF
34364 if ac_fn_cxx_try_compile "$LINENO"; then :
34365 glibcxx_cv_func_ldexpl_use=yes
34366 else
34367 glibcxx_cv_func_ldexpl_use=no
34369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34370 ac_ext=c
34371 ac_cpp='$CPP $CPPFLAGS'
34372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
34381 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
34383 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
34384 for ac_func in ldexpl
34385 do :
34386 ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
34387 if test "x$ac_cv_func_ldexpl" = xyes; then :
34388 cat >>confdefs.h <<_ACEOF
34389 #define HAVE_LDEXPL 1
34390 _ACEOF
34393 done
34399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
34400 $as_echo_n "checking for logl declaration... " >&6; }
34401 if test x${glibcxx_cv_func_logl_use+set} != xset; then
34402 if ${glibcxx_cv_func_logl_use+:} false; then :
34403 $as_echo_n "(cached) " >&6
34404 else
34407 ac_ext=cpp
34408 ac_cpp='$CXXCPP $CPPFLAGS'
34409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34414 /* end confdefs.h. */
34415 #include <math.h>
34416 #ifdef HAVE_IEEEFP_H
34417 #include <ieeefp.h>
34418 #endif
34421 main ()
34423 logl(0);
34425 return 0;
34427 _ACEOF
34428 if ac_fn_cxx_try_compile "$LINENO"; then :
34429 glibcxx_cv_func_logl_use=yes
34430 else
34431 glibcxx_cv_func_logl_use=no
34433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34434 ac_ext=c
34435 ac_cpp='$CPP $CPPFLAGS'
34436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
34445 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
34447 if test x$glibcxx_cv_func_logl_use = x"yes"; then
34448 for ac_func in logl
34449 do :
34450 ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
34451 if test "x$ac_cv_func_logl" = xyes; then :
34452 cat >>confdefs.h <<_ACEOF
34453 #define HAVE_LOGL 1
34454 _ACEOF
34457 done
34463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
34464 $as_echo_n "checking for log10l declaration... " >&6; }
34465 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
34466 if ${glibcxx_cv_func_log10l_use+:} false; then :
34467 $as_echo_n "(cached) " >&6
34468 else
34471 ac_ext=cpp
34472 ac_cpp='$CXXCPP $CPPFLAGS'
34473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34478 /* end confdefs.h. */
34479 #include <math.h>
34480 #ifdef HAVE_IEEEFP_H
34481 #include <ieeefp.h>
34482 #endif
34485 main ()
34487 log10l(0);
34489 return 0;
34491 _ACEOF
34492 if ac_fn_cxx_try_compile "$LINENO"; then :
34493 glibcxx_cv_func_log10l_use=yes
34494 else
34495 glibcxx_cv_func_log10l_use=no
34497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34498 ac_ext=c
34499 ac_cpp='$CPP $CPPFLAGS'
34500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
34509 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
34511 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
34512 for ac_func in log10l
34513 do :
34514 ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
34515 if test "x$ac_cv_func_log10l" = xyes; then :
34516 cat >>confdefs.h <<_ACEOF
34517 #define HAVE_LOG10L 1
34518 _ACEOF
34521 done
34527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
34528 $as_echo_n "checking for modfl declaration... " >&6; }
34529 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
34530 if ${glibcxx_cv_func_modfl_use+:} false; then :
34531 $as_echo_n "(cached) " >&6
34532 else
34535 ac_ext=cpp
34536 ac_cpp='$CXXCPP $CPPFLAGS'
34537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34542 /* end confdefs.h. */
34543 #include <math.h>
34545 main ()
34547 modfl(0, 0);
34549 return 0;
34551 _ACEOF
34552 if ac_fn_cxx_try_compile "$LINENO"; then :
34553 glibcxx_cv_func_modfl_use=yes
34554 else
34555 glibcxx_cv_func_modfl_use=no
34557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34558 ac_ext=c
34559 ac_cpp='$CPP $CPPFLAGS'
34560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
34569 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
34571 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
34572 for ac_func in modfl
34573 do :
34574 ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
34575 if test "x$ac_cv_func_modfl" = xyes; then :
34576 cat >>confdefs.h <<_ACEOF
34577 #define HAVE_MODFL 1
34578 _ACEOF
34581 done
34587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
34588 $as_echo_n "checking for powl declaration... " >&6; }
34589 if test x${glibcxx_cv_func_powl_use+set} != xset; then
34590 if ${glibcxx_cv_func_powl_use+:} false; then :
34591 $as_echo_n "(cached) " >&6
34592 else
34595 ac_ext=cpp
34596 ac_cpp='$CXXCPP $CPPFLAGS'
34597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34602 /* end confdefs.h. */
34603 #include <math.h>
34605 main ()
34607 powl(0, 0);
34609 return 0;
34611 _ACEOF
34612 if ac_fn_cxx_try_compile "$LINENO"; then :
34613 glibcxx_cv_func_powl_use=yes
34614 else
34615 glibcxx_cv_func_powl_use=no
34617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34618 ac_ext=c
34619 ac_cpp='$CPP $CPPFLAGS'
34620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
34629 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
34631 if test x$glibcxx_cv_func_powl_use = x"yes"; then
34632 for ac_func in powl
34633 do :
34634 ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
34635 if test "x$ac_cv_func_powl" = xyes; then :
34636 cat >>confdefs.h <<_ACEOF
34637 #define HAVE_POWL 1
34638 _ACEOF
34641 done
34647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
34648 $as_echo_n "checking for sqrtl declaration... " >&6; }
34649 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
34650 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
34651 $as_echo_n "(cached) " >&6
34652 else
34655 ac_ext=cpp
34656 ac_cpp='$CXXCPP $CPPFLAGS'
34657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34662 /* end confdefs.h. */
34663 #include <math.h>
34664 #ifdef HAVE_IEEEFP_H
34665 #include <ieeefp.h>
34666 #endif
34669 main ()
34671 sqrtl(0);
34673 return 0;
34675 _ACEOF
34676 if ac_fn_cxx_try_compile "$LINENO"; then :
34677 glibcxx_cv_func_sqrtl_use=yes
34678 else
34679 glibcxx_cv_func_sqrtl_use=no
34681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34682 ac_ext=c
34683 ac_cpp='$CPP $CPPFLAGS'
34684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
34693 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
34695 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
34696 for ac_func in sqrtl
34697 do :
34698 ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
34699 if test "x$ac_cv_func_sqrtl" = xyes; then :
34700 cat >>confdefs.h <<_ACEOF
34701 #define HAVE_SQRTL 1
34702 _ACEOF
34705 done
34711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
34712 $as_echo_n "checking for sincosl declaration... " >&6; }
34713 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
34714 if ${glibcxx_cv_func_sincosl_use+:} false; then :
34715 $as_echo_n "(cached) " >&6
34716 else
34719 ac_ext=cpp
34720 ac_cpp='$CXXCPP $CPPFLAGS'
34721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34726 /* end confdefs.h. */
34727 #include <math.h>
34729 main ()
34731 sincosl(0, 0, 0);
34733 return 0;
34735 _ACEOF
34736 if ac_fn_cxx_try_compile "$LINENO"; then :
34737 glibcxx_cv_func_sincosl_use=yes
34738 else
34739 glibcxx_cv_func_sincosl_use=no
34741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34742 ac_ext=c
34743 ac_cpp='$CPP $CPPFLAGS'
34744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
34753 $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
34755 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
34756 for ac_func in sincosl
34757 do :
34758 ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
34759 if test "x$ac_cv_func_sincosl" = xyes; then :
34760 cat >>confdefs.h <<_ACEOF
34761 #define HAVE_SINCOSL 1
34762 _ACEOF
34765 done
34771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
34772 $as_echo_n "checking for finitel declaration... " >&6; }
34773 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
34774 if ${glibcxx_cv_func_finitel_use+:} false; then :
34775 $as_echo_n "(cached) " >&6
34776 else
34779 ac_ext=cpp
34780 ac_cpp='$CXXCPP $CPPFLAGS'
34781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34786 /* end confdefs.h. */
34787 #include <math.h>
34788 #ifdef HAVE_IEEEFP_H
34789 #include <ieeefp.h>
34790 #endif
34793 main ()
34795 finitel(0);
34797 return 0;
34799 _ACEOF
34800 if ac_fn_cxx_try_compile "$LINENO"; then :
34801 glibcxx_cv_func_finitel_use=yes
34802 else
34803 glibcxx_cv_func_finitel_use=no
34805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34806 ac_ext=c
34807 ac_cpp='$CPP $CPPFLAGS'
34808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
34817 $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
34819 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
34820 for ac_func in finitel
34821 do :
34822 ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
34823 if test "x$ac_cv_func_finitel" = xyes; then :
34824 cat >>confdefs.h <<_ACEOF
34825 #define HAVE_FINITEL 1
34826 _ACEOF
34829 done
34834 LIBS="$ac_save_LIBS"
34835 CXXFLAGS="$ac_save_CXXFLAGS"
34838 ac_test_CXXFLAGS="${CXXFLAGS+set}"
34839 ac_save_CXXFLAGS="$CXXFLAGS"
34840 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
34843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
34844 $as_echo_n "checking for at_quick_exit declaration... " >&6; }
34845 if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
34846 if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
34847 $as_echo_n "(cached) " >&6
34848 else
34851 ac_ext=cpp
34852 ac_cpp='$CXXCPP $CPPFLAGS'
34853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34858 /* end confdefs.h. */
34859 #include <stdlib.h>
34861 main ()
34863 at_quick_exit(0);
34865 return 0;
34867 _ACEOF
34868 if ac_fn_cxx_try_compile "$LINENO"; then :
34869 glibcxx_cv_func_at_quick_exit_use=yes
34870 else
34871 glibcxx_cv_func_at_quick_exit_use=no
34873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34874 ac_ext=c
34875 ac_cpp='$CPP $CPPFLAGS'
34876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
34885 $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
34886 if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
34887 for ac_func in at_quick_exit
34888 do :
34889 ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
34890 if test "x$ac_cv_func_at_quick_exit" = xyes; then :
34891 cat >>confdefs.h <<_ACEOF
34892 #define HAVE_AT_QUICK_EXIT 1
34893 _ACEOF
34896 done
34901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
34902 $as_echo_n "checking for quick_exit declaration... " >&6; }
34903 if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
34904 if ${glibcxx_cv_func_quick_exit_use+:} false; then :
34905 $as_echo_n "(cached) " >&6
34906 else
34909 ac_ext=cpp
34910 ac_cpp='$CXXCPP $CPPFLAGS'
34911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34916 /* end confdefs.h. */
34917 #include <stdlib.h>
34919 main ()
34921 quick_exit(0);
34923 return 0;
34925 _ACEOF
34926 if ac_fn_cxx_try_compile "$LINENO"; then :
34927 glibcxx_cv_func_quick_exit_use=yes
34928 else
34929 glibcxx_cv_func_quick_exit_use=no
34931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34932 ac_ext=c
34933 ac_cpp='$CPP $CPPFLAGS'
34934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
34943 $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
34944 if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
34945 for ac_func in quick_exit
34946 do :
34947 ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
34948 if test "x$ac_cv_func_quick_exit" = xyes; then :
34949 cat >>confdefs.h <<_ACEOF
34950 #define HAVE_QUICK_EXIT 1
34951 _ACEOF
34954 done
34959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
34960 $as_echo_n "checking for strtold declaration... " >&6; }
34961 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
34962 if ${glibcxx_cv_func_strtold_use+:} false; then :
34963 $as_echo_n "(cached) " >&6
34964 else
34967 ac_ext=cpp
34968 ac_cpp='$CXXCPP $CPPFLAGS'
34969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34974 /* end confdefs.h. */
34975 #include <stdlib.h>
34977 main ()
34979 strtold(0, 0);
34981 return 0;
34983 _ACEOF
34984 if ac_fn_cxx_try_compile "$LINENO"; then :
34985 glibcxx_cv_func_strtold_use=yes
34986 else
34987 glibcxx_cv_func_strtold_use=no
34989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34990 ac_ext=c
34991 ac_cpp='$CPP $CPPFLAGS'
34992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
35001 $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
35002 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
35003 for ac_func in strtold
35004 do :
35005 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
35006 if test "x$ac_cv_func_strtold" = xyes; then :
35007 cat >>confdefs.h <<_ACEOF
35008 #define HAVE_STRTOLD 1
35009 _ACEOF
35012 done
35017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
35018 $as_echo_n "checking for strtof declaration... " >&6; }
35019 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
35020 if ${glibcxx_cv_func_strtof_use+:} false; then :
35021 $as_echo_n "(cached) " >&6
35022 else
35025 ac_ext=cpp
35026 ac_cpp='$CXXCPP $CPPFLAGS'
35027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35032 /* end confdefs.h. */
35033 #include <stdlib.h>
35035 main ()
35037 strtof(0, 0);
35039 return 0;
35041 _ACEOF
35042 if ac_fn_cxx_try_compile "$LINENO"; then :
35043 glibcxx_cv_func_strtof_use=yes
35044 else
35045 glibcxx_cv_func_strtof_use=no
35047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35048 ac_ext=c
35049 ac_cpp='$CPP $CPPFLAGS'
35050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
35059 $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
35060 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
35061 for ac_func in strtof
35062 do :
35063 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
35064 if test "x$ac_cv_func_strtof" = xyes; then :
35065 cat >>confdefs.h <<_ACEOF
35066 #define HAVE_STRTOF 1
35067 _ACEOF
35070 done
35075 CXXFLAGS="$ac_save_CXXFLAGS"
35077 $as_echo "#define _GLIBCXX_USE_DEV_RANDOM 1" >>confdefs.h
35079 $as_echo "#define _GLIBCXX_USE_RANDOM_TR1 1" >>confdefs.h
35081 # We don't yet support AIX's TLS ABI.
35082 #GCC_CHECK_TLS
35085 $as_echo "#define HAVE_USELOCALE 1" >>confdefs.h
35089 *-darwin*)
35090 # Darwin versions vary, but the linker should work in a cross environment,
35091 # so we just check for all the features here.
35092 # Check for available headers.
35094 # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
35096 ac_test_CXXFLAGS="${CXXFLAGS+set}"
35097 ac_save_CXXFLAGS="$CXXFLAGS"
35098 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
35100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
35101 $as_echo_n "checking for sin in -lm... " >&6; }
35102 if ${ac_cv_lib_m_sin+:} false; then :
35103 $as_echo_n "(cached) " >&6
35104 else
35105 ac_check_lib_save_LIBS=$LIBS
35106 LIBS="-lm $LIBS"
35107 if test x$gcc_no_link = xyes; then
35108 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
35110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35111 /* end confdefs.h. */
35113 /* Override any GCC internal prototype to avoid an error.
35114 Use char because int might match the return type of a GCC
35115 builtin and then its argument prototype would still apply. */
35116 #ifdef __cplusplus
35117 extern "C"
35118 #endif
35119 char sin ();
35121 main ()
35123 return sin ();
35125 return 0;
35127 _ACEOF
35128 if ac_fn_c_try_link "$LINENO"; then :
35129 ac_cv_lib_m_sin=yes
35130 else
35131 ac_cv_lib_m_sin=no
35133 rm -f core conftest.err conftest.$ac_objext \
35134 conftest$ac_exeext conftest.$ac_ext
35135 LIBS=$ac_check_lib_save_LIBS
35137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
35138 $as_echo "$ac_cv_lib_m_sin" >&6; }
35139 if test "x$ac_cv_lib_m_sin" = xyes; then :
35140 libm="-lm"
35143 ac_save_LIBS="$LIBS"
35144 LIBS="$LIBS $libm"
35148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
35149 $as_echo_n "checking for isinf declaration... " >&6; }
35150 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
35151 if ${glibcxx_cv_func_isinf_use+:} false; then :
35152 $as_echo_n "(cached) " >&6
35153 else
35156 ac_ext=cpp
35157 ac_cpp='$CXXCPP $CPPFLAGS'
35158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35163 /* end confdefs.h. */
35164 #include <math.h>
35165 #ifdef HAVE_IEEEFP_H
35166 #include <ieeefp.h>
35167 #endif
35170 main ()
35172 isinf(0);
35174 return 0;
35176 _ACEOF
35177 if ac_fn_cxx_try_compile "$LINENO"; then :
35178 glibcxx_cv_func_isinf_use=yes
35179 else
35180 glibcxx_cv_func_isinf_use=no
35182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35183 ac_ext=c
35184 ac_cpp='$CPP $CPPFLAGS'
35185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
35194 $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
35196 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
35197 for ac_func in isinf
35198 do :
35199 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
35200 if test "x$ac_cv_func_isinf" = xyes; then :
35201 cat >>confdefs.h <<_ACEOF
35202 #define HAVE_ISINF 1
35203 _ACEOF
35206 done
35212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
35213 $as_echo_n "checking for isnan declaration... " >&6; }
35214 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
35215 if ${glibcxx_cv_func_isnan_use+:} false; then :
35216 $as_echo_n "(cached) " >&6
35217 else
35220 ac_ext=cpp
35221 ac_cpp='$CXXCPP $CPPFLAGS'
35222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35227 /* end confdefs.h. */
35228 #include <math.h>
35229 #ifdef HAVE_IEEEFP_H
35230 #include <ieeefp.h>
35231 #endif
35234 main ()
35236 isnan(0);
35238 return 0;
35240 _ACEOF
35241 if ac_fn_cxx_try_compile "$LINENO"; then :
35242 glibcxx_cv_func_isnan_use=yes
35243 else
35244 glibcxx_cv_func_isnan_use=no
35246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35247 ac_ext=c
35248 ac_cpp='$CPP $CPPFLAGS'
35249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
35258 $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
35260 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
35261 for ac_func in isnan
35262 do :
35263 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
35264 if test "x$ac_cv_func_isnan" = xyes; then :
35265 cat >>confdefs.h <<_ACEOF
35266 #define HAVE_ISNAN 1
35267 _ACEOF
35270 done
35276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
35277 $as_echo_n "checking for finite declaration... " >&6; }
35278 if test x${glibcxx_cv_func_finite_use+set} != xset; then
35279 if ${glibcxx_cv_func_finite_use+:} false; then :
35280 $as_echo_n "(cached) " >&6
35281 else
35284 ac_ext=cpp
35285 ac_cpp='$CXXCPP $CPPFLAGS'
35286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35291 /* end confdefs.h. */
35292 #include <math.h>
35293 #ifdef HAVE_IEEEFP_H
35294 #include <ieeefp.h>
35295 #endif
35298 main ()
35300 finite(0);
35302 return 0;
35304 _ACEOF
35305 if ac_fn_cxx_try_compile "$LINENO"; then :
35306 glibcxx_cv_func_finite_use=yes
35307 else
35308 glibcxx_cv_func_finite_use=no
35310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35311 ac_ext=c
35312 ac_cpp='$CPP $CPPFLAGS'
35313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
35322 $as_echo "$glibcxx_cv_func_finite_use" >&6; }
35324 if test x$glibcxx_cv_func_finite_use = x"yes"; then
35325 for ac_func in finite
35326 do :
35327 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
35328 if test "x$ac_cv_func_finite" = xyes; then :
35329 cat >>confdefs.h <<_ACEOF
35330 #define HAVE_FINITE 1
35331 _ACEOF
35334 done
35340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
35341 $as_echo_n "checking for sincos declaration... " >&6; }
35342 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
35343 if ${glibcxx_cv_func_sincos_use+:} false; then :
35344 $as_echo_n "(cached) " >&6
35345 else
35348 ac_ext=cpp
35349 ac_cpp='$CXXCPP $CPPFLAGS'
35350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35355 /* end confdefs.h. */
35356 #include <math.h>
35358 main ()
35360 sincos(0, 0, 0);
35362 return 0;
35364 _ACEOF
35365 if ac_fn_cxx_try_compile "$LINENO"; then :
35366 glibcxx_cv_func_sincos_use=yes
35367 else
35368 glibcxx_cv_func_sincos_use=no
35370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35371 ac_ext=c
35372 ac_cpp='$CPP $CPPFLAGS'
35373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
35382 $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
35384 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
35385 for ac_func in sincos
35386 do :
35387 ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
35388 if test "x$ac_cv_func_sincos" = xyes; then :
35389 cat >>confdefs.h <<_ACEOF
35390 #define HAVE_SINCOS 1
35391 _ACEOF
35394 done
35400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
35401 $as_echo_n "checking for fpclass declaration... " >&6; }
35402 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
35403 if ${glibcxx_cv_func_fpclass_use+:} false; then :
35404 $as_echo_n "(cached) " >&6
35405 else
35408 ac_ext=cpp
35409 ac_cpp='$CXXCPP $CPPFLAGS'
35410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35415 /* end confdefs.h. */
35416 #include <math.h>
35417 #ifdef HAVE_IEEEFP_H
35418 #include <ieeefp.h>
35419 #endif
35422 main ()
35424 fpclass(0);
35426 return 0;
35428 _ACEOF
35429 if ac_fn_cxx_try_compile "$LINENO"; then :
35430 glibcxx_cv_func_fpclass_use=yes
35431 else
35432 glibcxx_cv_func_fpclass_use=no
35434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35435 ac_ext=c
35436 ac_cpp='$CPP $CPPFLAGS'
35437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
35446 $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
35448 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
35449 for ac_func in fpclass
35450 do :
35451 ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
35452 if test "x$ac_cv_func_fpclass" = xyes; then :
35453 cat >>confdefs.h <<_ACEOF
35454 #define HAVE_FPCLASS 1
35455 _ACEOF
35458 done
35464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
35465 $as_echo_n "checking for qfpclass declaration... " >&6; }
35466 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
35467 if ${glibcxx_cv_func_qfpclass_use+:} false; then :
35468 $as_echo_n "(cached) " >&6
35469 else
35472 ac_ext=cpp
35473 ac_cpp='$CXXCPP $CPPFLAGS'
35474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35479 /* end confdefs.h. */
35480 #include <math.h>
35481 #ifdef HAVE_IEEEFP_H
35482 #include <ieeefp.h>
35483 #endif
35486 main ()
35488 qfpclass(0);
35490 return 0;
35492 _ACEOF
35493 if ac_fn_cxx_try_compile "$LINENO"; then :
35494 glibcxx_cv_func_qfpclass_use=yes
35495 else
35496 glibcxx_cv_func_qfpclass_use=no
35498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35499 ac_ext=c
35500 ac_cpp='$CPP $CPPFLAGS'
35501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
35510 $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
35512 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
35513 for ac_func in qfpclass
35514 do :
35515 ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
35516 if test "x$ac_cv_func_qfpclass" = xyes; then :
35517 cat >>confdefs.h <<_ACEOF
35518 #define HAVE_QFPCLASS 1
35519 _ACEOF
35522 done
35528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
35529 $as_echo_n "checking for hypot declaration... " >&6; }
35530 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
35531 if ${glibcxx_cv_func_hypot_use+:} false; then :
35532 $as_echo_n "(cached) " >&6
35533 else
35536 ac_ext=cpp
35537 ac_cpp='$CXXCPP $CPPFLAGS'
35538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35543 /* end confdefs.h. */
35544 #include <math.h>
35546 main ()
35548 hypot(0, 0);
35550 return 0;
35552 _ACEOF
35553 if ac_fn_cxx_try_compile "$LINENO"; then :
35554 glibcxx_cv_func_hypot_use=yes
35555 else
35556 glibcxx_cv_func_hypot_use=no
35558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35559 ac_ext=c
35560 ac_cpp='$CPP $CPPFLAGS'
35561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
35570 $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
35572 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
35573 for ac_func in hypot
35574 do :
35575 ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
35576 if test "x$ac_cv_func_hypot" = xyes; then :
35577 cat >>confdefs.h <<_ACEOF
35578 #define HAVE_HYPOT 1
35579 _ACEOF
35582 done
35588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
35589 $as_echo_n "checking for float trig functions... " >&6; }
35590 if ${glibcxx_cv_func_float_trig_use+:} false; then :
35591 $as_echo_n "(cached) " >&6
35592 else
35595 ac_ext=cpp
35596 ac_cpp='$CXXCPP $CPPFLAGS'
35597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35602 /* end confdefs.h. */
35603 #include <math.h>
35605 main ()
35607 acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
35609 return 0;
35611 _ACEOF
35612 if ac_fn_cxx_try_compile "$LINENO"; then :
35613 glibcxx_cv_func_float_trig_use=yes
35614 else
35615 glibcxx_cv_func_float_trig_use=no
35617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35618 ac_ext=c
35619 ac_cpp='$CPP $CPPFLAGS'
35620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
35627 $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
35628 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
35629 for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
35630 do :
35631 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35632 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
35633 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
35634 cat >>confdefs.h <<_ACEOF
35635 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35636 _ACEOF
35639 done
35645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
35646 $as_echo_n "checking for float round functions... " >&6; }
35647 if ${glibcxx_cv_func_float_round_use+:} false; then :
35648 $as_echo_n "(cached) " >&6
35649 else
35652 ac_ext=cpp
35653 ac_cpp='$CXXCPP $CPPFLAGS'
35654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35659 /* end confdefs.h. */
35660 #include <math.h>
35662 main ()
35664 ceilf (0); floorf (0);
35666 return 0;
35668 _ACEOF
35669 if ac_fn_cxx_try_compile "$LINENO"; then :
35670 glibcxx_cv_func_float_round_use=yes
35671 else
35672 glibcxx_cv_func_float_round_use=no
35674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35675 ac_ext=c
35676 ac_cpp='$CPP $CPPFLAGS'
35677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
35684 $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
35685 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
35686 for ac_func in ceilf floorf
35687 do :
35688 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35689 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
35690 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
35691 cat >>confdefs.h <<_ACEOF
35692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35693 _ACEOF
35696 done
35703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
35704 $as_echo_n "checking for expf declaration... " >&6; }
35705 if test x${glibcxx_cv_func_expf_use+set} != xset; then
35706 if ${glibcxx_cv_func_expf_use+:} false; then :
35707 $as_echo_n "(cached) " >&6
35708 else
35711 ac_ext=cpp
35712 ac_cpp='$CXXCPP $CPPFLAGS'
35713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35718 /* end confdefs.h. */
35719 #include <math.h>
35720 #ifdef HAVE_IEEEFP_H
35721 #include <ieeefp.h>
35722 #endif
35725 main ()
35727 expf(0);
35729 return 0;
35731 _ACEOF
35732 if ac_fn_cxx_try_compile "$LINENO"; then :
35733 glibcxx_cv_func_expf_use=yes
35734 else
35735 glibcxx_cv_func_expf_use=no
35737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35738 ac_ext=c
35739 ac_cpp='$CPP $CPPFLAGS'
35740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
35749 $as_echo "$glibcxx_cv_func_expf_use" >&6; }
35751 if test x$glibcxx_cv_func_expf_use = x"yes"; then
35752 for ac_func in expf
35753 do :
35754 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
35755 if test "x$ac_cv_func_expf" = xyes; then :
35756 cat >>confdefs.h <<_ACEOF
35757 #define HAVE_EXPF 1
35758 _ACEOF
35761 done
35767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
35768 $as_echo_n "checking for isnanf declaration... " >&6; }
35769 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
35770 if ${glibcxx_cv_func_isnanf_use+:} false; then :
35771 $as_echo_n "(cached) " >&6
35772 else
35775 ac_ext=cpp
35776 ac_cpp='$CXXCPP $CPPFLAGS'
35777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35782 /* end confdefs.h. */
35783 #include <math.h>
35784 #ifdef HAVE_IEEEFP_H
35785 #include <ieeefp.h>
35786 #endif
35789 main ()
35791 isnanf(0);
35793 return 0;
35795 _ACEOF
35796 if ac_fn_cxx_try_compile "$LINENO"; then :
35797 glibcxx_cv_func_isnanf_use=yes
35798 else
35799 glibcxx_cv_func_isnanf_use=no
35801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35802 ac_ext=c
35803 ac_cpp='$CPP $CPPFLAGS'
35804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
35813 $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
35815 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
35816 for ac_func in isnanf
35817 do :
35818 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
35819 if test "x$ac_cv_func_isnanf" = xyes; then :
35820 cat >>confdefs.h <<_ACEOF
35821 #define HAVE_ISNANF 1
35822 _ACEOF
35825 done
35831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
35832 $as_echo_n "checking for isinff declaration... " >&6; }
35833 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
35834 if ${glibcxx_cv_func_isinff_use+:} false; then :
35835 $as_echo_n "(cached) " >&6
35836 else
35839 ac_ext=cpp
35840 ac_cpp='$CXXCPP $CPPFLAGS'
35841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35846 /* end confdefs.h. */
35847 #include <math.h>
35848 #ifdef HAVE_IEEEFP_H
35849 #include <ieeefp.h>
35850 #endif
35853 main ()
35855 isinff(0);
35857 return 0;
35859 _ACEOF
35860 if ac_fn_cxx_try_compile "$LINENO"; then :
35861 glibcxx_cv_func_isinff_use=yes
35862 else
35863 glibcxx_cv_func_isinff_use=no
35865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35866 ac_ext=c
35867 ac_cpp='$CPP $CPPFLAGS'
35868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
35877 $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
35879 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
35880 for ac_func in isinff
35881 do :
35882 ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
35883 if test "x$ac_cv_func_isinff" = xyes; then :
35884 cat >>confdefs.h <<_ACEOF
35885 #define HAVE_ISINFF 1
35886 _ACEOF
35889 done
35895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
35896 $as_echo_n "checking for atan2f declaration... " >&6; }
35897 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
35898 if ${glibcxx_cv_func_atan2f_use+:} false; then :
35899 $as_echo_n "(cached) " >&6
35900 else
35903 ac_ext=cpp
35904 ac_cpp='$CXXCPP $CPPFLAGS'
35905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35910 /* end confdefs.h. */
35911 #include <math.h>
35913 main ()
35915 atan2f(0, 0);
35917 return 0;
35919 _ACEOF
35920 if ac_fn_cxx_try_compile "$LINENO"; then :
35921 glibcxx_cv_func_atan2f_use=yes
35922 else
35923 glibcxx_cv_func_atan2f_use=no
35925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35926 ac_ext=c
35927 ac_cpp='$CPP $CPPFLAGS'
35928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
35937 $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
35939 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
35940 for ac_func in atan2f
35941 do :
35942 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
35943 if test "x$ac_cv_func_atan2f" = xyes; then :
35944 cat >>confdefs.h <<_ACEOF
35945 #define HAVE_ATAN2F 1
35946 _ACEOF
35949 done
35955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
35956 $as_echo_n "checking for fabsf declaration... " >&6; }
35957 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
35958 if ${glibcxx_cv_func_fabsf_use+:} false; then :
35959 $as_echo_n "(cached) " >&6
35960 else
35963 ac_ext=cpp
35964 ac_cpp='$CXXCPP $CPPFLAGS'
35965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35970 /* end confdefs.h. */
35971 #include <math.h>
35972 #ifdef HAVE_IEEEFP_H
35973 #include <ieeefp.h>
35974 #endif
35977 main ()
35979 fabsf(0);
35981 return 0;
35983 _ACEOF
35984 if ac_fn_cxx_try_compile "$LINENO"; then :
35985 glibcxx_cv_func_fabsf_use=yes
35986 else
35987 glibcxx_cv_func_fabsf_use=no
35989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35990 ac_ext=c
35991 ac_cpp='$CPP $CPPFLAGS'
35992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
36001 $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
36003 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
36004 for ac_func in fabsf
36005 do :
36006 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
36007 if test "x$ac_cv_func_fabsf" = xyes; then :
36008 cat >>confdefs.h <<_ACEOF
36009 #define HAVE_FABSF 1
36010 _ACEOF
36013 done
36019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
36020 $as_echo_n "checking for fmodf declaration... " >&6; }
36021 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
36022 if ${glibcxx_cv_func_fmodf_use+:} false; then :
36023 $as_echo_n "(cached) " >&6
36024 else
36027 ac_ext=cpp
36028 ac_cpp='$CXXCPP $CPPFLAGS'
36029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36034 /* end confdefs.h. */
36035 #include <math.h>
36037 main ()
36039 fmodf(0, 0);
36041 return 0;
36043 _ACEOF
36044 if ac_fn_cxx_try_compile "$LINENO"; then :
36045 glibcxx_cv_func_fmodf_use=yes
36046 else
36047 glibcxx_cv_func_fmodf_use=no
36049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36050 ac_ext=c
36051 ac_cpp='$CPP $CPPFLAGS'
36052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
36061 $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
36063 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
36064 for ac_func in fmodf
36065 do :
36066 ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
36067 if test "x$ac_cv_func_fmodf" = xyes; then :
36068 cat >>confdefs.h <<_ACEOF
36069 #define HAVE_FMODF 1
36070 _ACEOF
36073 done
36079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
36080 $as_echo_n "checking for frexpf declaration... " >&6; }
36081 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
36082 if ${glibcxx_cv_func_frexpf_use+:} false; then :
36083 $as_echo_n "(cached) " >&6
36084 else
36087 ac_ext=cpp
36088 ac_cpp='$CXXCPP $CPPFLAGS'
36089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36094 /* end confdefs.h. */
36095 #include <math.h>
36097 main ()
36099 frexpf(0, 0);
36101 return 0;
36103 _ACEOF
36104 if ac_fn_cxx_try_compile "$LINENO"; then :
36105 glibcxx_cv_func_frexpf_use=yes
36106 else
36107 glibcxx_cv_func_frexpf_use=no
36109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36110 ac_ext=c
36111 ac_cpp='$CPP $CPPFLAGS'
36112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
36121 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
36123 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
36124 for ac_func in frexpf
36125 do :
36126 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
36127 if test "x$ac_cv_func_frexpf" = xyes; then :
36128 cat >>confdefs.h <<_ACEOF
36129 #define HAVE_FREXPF 1
36130 _ACEOF
36133 done
36139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
36140 $as_echo_n "checking for hypotf declaration... " >&6; }
36141 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
36142 if ${glibcxx_cv_func_hypotf_use+:} false; then :
36143 $as_echo_n "(cached) " >&6
36144 else
36147 ac_ext=cpp
36148 ac_cpp='$CXXCPP $CPPFLAGS'
36149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36154 /* end confdefs.h. */
36155 #include <math.h>
36157 main ()
36159 hypotf(0, 0);
36161 return 0;
36163 _ACEOF
36164 if ac_fn_cxx_try_compile "$LINENO"; then :
36165 glibcxx_cv_func_hypotf_use=yes
36166 else
36167 glibcxx_cv_func_hypotf_use=no
36169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36170 ac_ext=c
36171 ac_cpp='$CPP $CPPFLAGS'
36172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
36181 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
36183 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
36184 for ac_func in hypotf
36185 do :
36186 ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
36187 if test "x$ac_cv_func_hypotf" = xyes; then :
36188 cat >>confdefs.h <<_ACEOF
36189 #define HAVE_HYPOTF 1
36190 _ACEOF
36193 done
36199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
36200 $as_echo_n "checking for ldexpf declaration... " >&6; }
36201 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
36202 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
36203 $as_echo_n "(cached) " >&6
36204 else
36207 ac_ext=cpp
36208 ac_cpp='$CXXCPP $CPPFLAGS'
36209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36214 /* end confdefs.h. */
36215 #include <math.h>
36217 main ()
36219 ldexpf(0, 0);
36221 return 0;
36223 _ACEOF
36224 if ac_fn_cxx_try_compile "$LINENO"; then :
36225 glibcxx_cv_func_ldexpf_use=yes
36226 else
36227 glibcxx_cv_func_ldexpf_use=no
36229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36230 ac_ext=c
36231 ac_cpp='$CPP $CPPFLAGS'
36232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
36241 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
36243 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
36244 for ac_func in ldexpf
36245 do :
36246 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
36247 if test "x$ac_cv_func_ldexpf" = xyes; then :
36248 cat >>confdefs.h <<_ACEOF
36249 #define HAVE_LDEXPF 1
36250 _ACEOF
36253 done
36259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
36260 $as_echo_n "checking for logf declaration... " >&6; }
36261 if test x${glibcxx_cv_func_logf_use+set} != xset; then
36262 if ${glibcxx_cv_func_logf_use+:} false; then :
36263 $as_echo_n "(cached) " >&6
36264 else
36267 ac_ext=cpp
36268 ac_cpp='$CXXCPP $CPPFLAGS'
36269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36274 /* end confdefs.h. */
36275 #include <math.h>
36276 #ifdef HAVE_IEEEFP_H
36277 #include <ieeefp.h>
36278 #endif
36281 main ()
36283 logf(0);
36285 return 0;
36287 _ACEOF
36288 if ac_fn_cxx_try_compile "$LINENO"; then :
36289 glibcxx_cv_func_logf_use=yes
36290 else
36291 glibcxx_cv_func_logf_use=no
36293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36294 ac_ext=c
36295 ac_cpp='$CPP $CPPFLAGS'
36296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
36305 $as_echo "$glibcxx_cv_func_logf_use" >&6; }
36307 if test x$glibcxx_cv_func_logf_use = x"yes"; then
36308 for ac_func in logf
36309 do :
36310 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
36311 if test "x$ac_cv_func_logf" = xyes; then :
36312 cat >>confdefs.h <<_ACEOF
36313 #define HAVE_LOGF 1
36314 _ACEOF
36317 done
36323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
36324 $as_echo_n "checking for log10f declaration... " >&6; }
36325 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
36326 if ${glibcxx_cv_func_log10f_use+:} false; then :
36327 $as_echo_n "(cached) " >&6
36328 else
36331 ac_ext=cpp
36332 ac_cpp='$CXXCPP $CPPFLAGS'
36333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36338 /* end confdefs.h. */
36339 #include <math.h>
36340 #ifdef HAVE_IEEEFP_H
36341 #include <ieeefp.h>
36342 #endif
36345 main ()
36347 log10f(0);
36349 return 0;
36351 _ACEOF
36352 if ac_fn_cxx_try_compile "$LINENO"; then :
36353 glibcxx_cv_func_log10f_use=yes
36354 else
36355 glibcxx_cv_func_log10f_use=no
36357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36358 ac_ext=c
36359 ac_cpp='$CPP $CPPFLAGS'
36360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
36369 $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
36371 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
36372 for ac_func in log10f
36373 do :
36374 ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
36375 if test "x$ac_cv_func_log10f" = xyes; then :
36376 cat >>confdefs.h <<_ACEOF
36377 #define HAVE_LOG10F 1
36378 _ACEOF
36381 done
36387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
36388 $as_echo_n "checking for modff declaration... " >&6; }
36389 if test x${glibcxx_cv_func_modff_use+set} != xset; then
36390 if ${glibcxx_cv_func_modff_use+:} false; then :
36391 $as_echo_n "(cached) " >&6
36392 else
36395 ac_ext=cpp
36396 ac_cpp='$CXXCPP $CPPFLAGS'
36397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36402 /* end confdefs.h. */
36403 #include <math.h>
36405 main ()
36407 modff(0, 0);
36409 return 0;
36411 _ACEOF
36412 if ac_fn_cxx_try_compile "$LINENO"; then :
36413 glibcxx_cv_func_modff_use=yes
36414 else
36415 glibcxx_cv_func_modff_use=no
36417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36418 ac_ext=c
36419 ac_cpp='$CPP $CPPFLAGS'
36420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
36429 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
36431 if test x$glibcxx_cv_func_modff_use = x"yes"; then
36432 for ac_func in modff
36433 do :
36434 ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
36435 if test "x$ac_cv_func_modff" = xyes; then :
36436 cat >>confdefs.h <<_ACEOF
36437 #define HAVE_MODFF 1
36438 _ACEOF
36441 done
36447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
36448 $as_echo_n "checking for modf declaration... " >&6; }
36449 if test x${glibcxx_cv_func_modf_use+set} != xset; then
36450 if ${glibcxx_cv_func_modf_use+:} false; then :
36451 $as_echo_n "(cached) " >&6
36452 else
36455 ac_ext=cpp
36456 ac_cpp='$CXXCPP $CPPFLAGS'
36457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36462 /* end confdefs.h. */
36463 #include <math.h>
36465 main ()
36467 modf(0, 0);
36469 return 0;
36471 _ACEOF
36472 if ac_fn_cxx_try_compile "$LINENO"; then :
36473 glibcxx_cv_func_modf_use=yes
36474 else
36475 glibcxx_cv_func_modf_use=no
36477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36478 ac_ext=c
36479 ac_cpp='$CPP $CPPFLAGS'
36480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
36489 $as_echo "$glibcxx_cv_func_modf_use" >&6; }
36491 if test x$glibcxx_cv_func_modf_use = x"yes"; then
36492 for ac_func in modf
36493 do :
36494 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
36495 if test "x$ac_cv_func_modf" = xyes; then :
36496 cat >>confdefs.h <<_ACEOF
36497 #define HAVE_MODF 1
36498 _ACEOF
36501 done
36507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
36508 $as_echo_n "checking for powf declaration... " >&6; }
36509 if test x${glibcxx_cv_func_powf_use+set} != xset; then
36510 if ${glibcxx_cv_func_powf_use+:} false; then :
36511 $as_echo_n "(cached) " >&6
36512 else
36515 ac_ext=cpp
36516 ac_cpp='$CXXCPP $CPPFLAGS'
36517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36522 /* end confdefs.h. */
36523 #include <math.h>
36525 main ()
36527 powf(0, 0);
36529 return 0;
36531 _ACEOF
36532 if ac_fn_cxx_try_compile "$LINENO"; then :
36533 glibcxx_cv_func_powf_use=yes
36534 else
36535 glibcxx_cv_func_powf_use=no
36537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36538 ac_ext=c
36539 ac_cpp='$CPP $CPPFLAGS'
36540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
36549 $as_echo "$glibcxx_cv_func_powf_use" >&6; }
36551 if test x$glibcxx_cv_func_powf_use = x"yes"; then
36552 for ac_func in powf
36553 do :
36554 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
36555 if test "x$ac_cv_func_powf" = xyes; then :
36556 cat >>confdefs.h <<_ACEOF
36557 #define HAVE_POWF 1
36558 _ACEOF
36561 done
36567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
36568 $as_echo_n "checking for sqrtf declaration... " >&6; }
36569 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
36570 if ${glibcxx_cv_func_sqrtf_use+:} false; then :
36571 $as_echo_n "(cached) " >&6
36572 else
36575 ac_ext=cpp
36576 ac_cpp='$CXXCPP $CPPFLAGS'
36577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36582 /* end confdefs.h. */
36583 #include <math.h>
36584 #ifdef HAVE_IEEEFP_H
36585 #include <ieeefp.h>
36586 #endif
36589 main ()
36591 sqrtf(0);
36593 return 0;
36595 _ACEOF
36596 if ac_fn_cxx_try_compile "$LINENO"; then :
36597 glibcxx_cv_func_sqrtf_use=yes
36598 else
36599 glibcxx_cv_func_sqrtf_use=no
36601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36602 ac_ext=c
36603 ac_cpp='$CPP $CPPFLAGS'
36604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
36613 $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
36615 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
36616 for ac_func in sqrtf
36617 do :
36618 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
36619 if test "x$ac_cv_func_sqrtf" = xyes; then :
36620 cat >>confdefs.h <<_ACEOF
36621 #define HAVE_SQRTF 1
36622 _ACEOF
36625 done
36631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
36632 $as_echo_n "checking for sincosf declaration... " >&6; }
36633 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
36634 if ${glibcxx_cv_func_sincosf_use+:} false; then :
36635 $as_echo_n "(cached) " >&6
36636 else
36639 ac_ext=cpp
36640 ac_cpp='$CXXCPP $CPPFLAGS'
36641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36646 /* end confdefs.h. */
36647 #include <math.h>
36649 main ()
36651 sincosf(0, 0, 0);
36653 return 0;
36655 _ACEOF
36656 if ac_fn_cxx_try_compile "$LINENO"; then :
36657 glibcxx_cv_func_sincosf_use=yes
36658 else
36659 glibcxx_cv_func_sincosf_use=no
36661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36662 ac_ext=c
36663 ac_cpp='$CPP $CPPFLAGS'
36664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
36673 $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
36675 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
36676 for ac_func in sincosf
36677 do :
36678 ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
36679 if test "x$ac_cv_func_sincosf" = xyes; then :
36680 cat >>confdefs.h <<_ACEOF
36681 #define HAVE_SINCOSF 1
36682 _ACEOF
36685 done
36691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
36692 $as_echo_n "checking for finitef declaration... " >&6; }
36693 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
36694 if ${glibcxx_cv_func_finitef_use+:} false; then :
36695 $as_echo_n "(cached) " >&6
36696 else
36699 ac_ext=cpp
36700 ac_cpp='$CXXCPP $CPPFLAGS'
36701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36706 /* end confdefs.h. */
36707 #include <math.h>
36708 #ifdef HAVE_IEEEFP_H
36709 #include <ieeefp.h>
36710 #endif
36713 main ()
36715 finitef(0);
36717 return 0;
36719 _ACEOF
36720 if ac_fn_cxx_try_compile "$LINENO"; then :
36721 glibcxx_cv_func_finitef_use=yes
36722 else
36723 glibcxx_cv_func_finitef_use=no
36725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36726 ac_ext=c
36727 ac_cpp='$CPP $CPPFLAGS'
36728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
36737 $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
36739 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
36740 for ac_func in finitef
36741 do :
36742 ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
36743 if test "x$ac_cv_func_finitef" = xyes; then :
36744 cat >>confdefs.h <<_ACEOF
36745 #define HAVE_FINITEF 1
36746 _ACEOF
36749 done
36755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
36756 $as_echo_n "checking for long double trig functions... " >&6; }
36757 if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
36758 $as_echo_n "(cached) " >&6
36759 else
36762 ac_ext=cpp
36763 ac_cpp='$CXXCPP $CPPFLAGS'
36764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36769 /* end confdefs.h. */
36770 #include <math.h>
36772 main ()
36774 acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
36776 return 0;
36778 _ACEOF
36779 if ac_fn_cxx_try_compile "$LINENO"; then :
36780 glibcxx_cv_func_long_double_trig_use=yes
36781 else
36782 glibcxx_cv_func_long_double_trig_use=no
36784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36785 ac_ext=c
36786 ac_cpp='$CPP $CPPFLAGS'
36787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
36794 $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
36795 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
36796 for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
36797 do :
36798 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
36799 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
36800 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
36801 cat >>confdefs.h <<_ACEOF
36802 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36803 _ACEOF
36806 done
36812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
36813 $as_echo_n "checking for long double round functions... " >&6; }
36814 if ${glibcxx_cv_func_long_double_round_use+:} false; then :
36815 $as_echo_n "(cached) " >&6
36816 else
36819 ac_ext=cpp
36820 ac_cpp='$CXXCPP $CPPFLAGS'
36821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36826 /* end confdefs.h. */
36827 #include <math.h>
36829 main ()
36831 ceill (0); floorl (0);
36833 return 0;
36835 _ACEOF
36836 if ac_fn_cxx_try_compile "$LINENO"; then :
36837 glibcxx_cv_func_long_double_round_use=yes
36838 else
36839 glibcxx_cv_func_long_double_round_use=no
36841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36842 ac_ext=c
36843 ac_cpp='$CPP $CPPFLAGS'
36844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
36851 $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
36852 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
36853 for ac_func in ceill floorl
36854 do :
36855 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
36856 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
36857 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
36858 cat >>confdefs.h <<_ACEOF
36859 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36860 _ACEOF
36863 done
36870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
36871 $as_echo_n "checking for isnanl declaration... " >&6; }
36872 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
36873 if ${glibcxx_cv_func_isnanl_use+:} false; then :
36874 $as_echo_n "(cached) " >&6
36875 else
36878 ac_ext=cpp
36879 ac_cpp='$CXXCPP $CPPFLAGS'
36880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36885 /* end confdefs.h. */
36886 #include <math.h>
36887 #ifdef HAVE_IEEEFP_H
36888 #include <ieeefp.h>
36889 #endif
36892 main ()
36894 isnanl(0);
36896 return 0;
36898 _ACEOF
36899 if ac_fn_cxx_try_compile "$LINENO"; then :
36900 glibcxx_cv_func_isnanl_use=yes
36901 else
36902 glibcxx_cv_func_isnanl_use=no
36904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36905 ac_ext=c
36906 ac_cpp='$CPP $CPPFLAGS'
36907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
36916 $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
36918 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
36919 for ac_func in isnanl
36920 do :
36921 ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
36922 if test "x$ac_cv_func_isnanl" = xyes; then :
36923 cat >>confdefs.h <<_ACEOF
36924 #define HAVE_ISNANL 1
36925 _ACEOF
36928 done
36934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
36935 $as_echo_n "checking for isinfl declaration... " >&6; }
36936 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
36937 if ${glibcxx_cv_func_isinfl_use+:} false; then :
36938 $as_echo_n "(cached) " >&6
36939 else
36942 ac_ext=cpp
36943 ac_cpp='$CXXCPP $CPPFLAGS'
36944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36949 /* end confdefs.h. */
36950 #include <math.h>
36951 #ifdef HAVE_IEEEFP_H
36952 #include <ieeefp.h>
36953 #endif
36956 main ()
36958 isinfl(0);
36960 return 0;
36962 _ACEOF
36963 if ac_fn_cxx_try_compile "$LINENO"; then :
36964 glibcxx_cv_func_isinfl_use=yes
36965 else
36966 glibcxx_cv_func_isinfl_use=no
36968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36969 ac_ext=c
36970 ac_cpp='$CPP $CPPFLAGS'
36971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
36980 $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
36982 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
36983 for ac_func in isinfl
36984 do :
36985 ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
36986 if test "x$ac_cv_func_isinfl" = xyes; then :
36987 cat >>confdefs.h <<_ACEOF
36988 #define HAVE_ISINFL 1
36989 _ACEOF
36992 done
36998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
36999 $as_echo_n "checking for atan2l declaration... " >&6; }
37000 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
37001 if ${glibcxx_cv_func_atan2l_use+:} false; then :
37002 $as_echo_n "(cached) " >&6
37003 else
37006 ac_ext=cpp
37007 ac_cpp='$CXXCPP $CPPFLAGS'
37008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37013 /* end confdefs.h. */
37014 #include <math.h>
37016 main ()
37018 atan2l(0, 0);
37020 return 0;
37022 _ACEOF
37023 if ac_fn_cxx_try_compile "$LINENO"; then :
37024 glibcxx_cv_func_atan2l_use=yes
37025 else
37026 glibcxx_cv_func_atan2l_use=no
37028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37029 ac_ext=c
37030 ac_cpp='$CPP $CPPFLAGS'
37031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
37040 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
37042 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
37043 for ac_func in atan2l
37044 do :
37045 ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
37046 if test "x$ac_cv_func_atan2l" = xyes; then :
37047 cat >>confdefs.h <<_ACEOF
37048 #define HAVE_ATAN2L 1
37049 _ACEOF
37052 done
37058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
37059 $as_echo_n "checking for expl declaration... " >&6; }
37060 if test x${glibcxx_cv_func_expl_use+set} != xset; then
37061 if ${glibcxx_cv_func_expl_use+:} false; then :
37062 $as_echo_n "(cached) " >&6
37063 else
37066 ac_ext=cpp
37067 ac_cpp='$CXXCPP $CPPFLAGS'
37068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37073 /* end confdefs.h. */
37074 #include <math.h>
37075 #ifdef HAVE_IEEEFP_H
37076 #include <ieeefp.h>
37077 #endif
37080 main ()
37082 expl(0);
37084 return 0;
37086 _ACEOF
37087 if ac_fn_cxx_try_compile "$LINENO"; then :
37088 glibcxx_cv_func_expl_use=yes
37089 else
37090 glibcxx_cv_func_expl_use=no
37092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37093 ac_ext=c
37094 ac_cpp='$CPP $CPPFLAGS'
37095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
37104 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
37106 if test x$glibcxx_cv_func_expl_use = x"yes"; then
37107 for ac_func in expl
37108 do :
37109 ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
37110 if test "x$ac_cv_func_expl" = xyes; then :
37111 cat >>confdefs.h <<_ACEOF
37112 #define HAVE_EXPL 1
37113 _ACEOF
37116 done
37122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
37123 $as_echo_n "checking for fabsl declaration... " >&6; }
37124 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
37125 if ${glibcxx_cv_func_fabsl_use+:} false; then :
37126 $as_echo_n "(cached) " >&6
37127 else
37130 ac_ext=cpp
37131 ac_cpp='$CXXCPP $CPPFLAGS'
37132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37137 /* end confdefs.h. */
37138 #include <math.h>
37139 #ifdef HAVE_IEEEFP_H
37140 #include <ieeefp.h>
37141 #endif
37144 main ()
37146 fabsl(0);
37148 return 0;
37150 _ACEOF
37151 if ac_fn_cxx_try_compile "$LINENO"; then :
37152 glibcxx_cv_func_fabsl_use=yes
37153 else
37154 glibcxx_cv_func_fabsl_use=no
37156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37157 ac_ext=c
37158 ac_cpp='$CPP $CPPFLAGS'
37159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
37168 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
37170 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
37171 for ac_func in fabsl
37172 do :
37173 ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
37174 if test "x$ac_cv_func_fabsl" = xyes; then :
37175 cat >>confdefs.h <<_ACEOF
37176 #define HAVE_FABSL 1
37177 _ACEOF
37180 done
37186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
37187 $as_echo_n "checking for fmodl declaration... " >&6; }
37188 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
37189 if ${glibcxx_cv_func_fmodl_use+:} false; then :
37190 $as_echo_n "(cached) " >&6
37191 else
37194 ac_ext=cpp
37195 ac_cpp='$CXXCPP $CPPFLAGS'
37196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37201 /* end confdefs.h. */
37202 #include <math.h>
37204 main ()
37206 fmodl(0, 0);
37208 return 0;
37210 _ACEOF
37211 if ac_fn_cxx_try_compile "$LINENO"; then :
37212 glibcxx_cv_func_fmodl_use=yes
37213 else
37214 glibcxx_cv_func_fmodl_use=no
37216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37217 ac_ext=c
37218 ac_cpp='$CPP $CPPFLAGS'
37219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
37228 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
37230 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
37231 for ac_func in fmodl
37232 do :
37233 ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
37234 if test "x$ac_cv_func_fmodl" = xyes; then :
37235 cat >>confdefs.h <<_ACEOF
37236 #define HAVE_FMODL 1
37237 _ACEOF
37240 done
37246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
37247 $as_echo_n "checking for frexpl declaration... " >&6; }
37248 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
37249 if ${glibcxx_cv_func_frexpl_use+:} false; then :
37250 $as_echo_n "(cached) " >&6
37251 else
37254 ac_ext=cpp
37255 ac_cpp='$CXXCPP $CPPFLAGS'
37256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37261 /* end confdefs.h. */
37262 #include <math.h>
37264 main ()
37266 frexpl(0, 0);
37268 return 0;
37270 _ACEOF
37271 if ac_fn_cxx_try_compile "$LINENO"; then :
37272 glibcxx_cv_func_frexpl_use=yes
37273 else
37274 glibcxx_cv_func_frexpl_use=no
37276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37277 ac_ext=c
37278 ac_cpp='$CPP $CPPFLAGS'
37279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
37288 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
37290 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
37291 for ac_func in frexpl
37292 do :
37293 ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
37294 if test "x$ac_cv_func_frexpl" = xyes; then :
37295 cat >>confdefs.h <<_ACEOF
37296 #define HAVE_FREXPL 1
37297 _ACEOF
37300 done
37306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
37307 $as_echo_n "checking for hypotl declaration... " >&6; }
37308 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
37309 if ${glibcxx_cv_func_hypotl_use+:} false; then :
37310 $as_echo_n "(cached) " >&6
37311 else
37314 ac_ext=cpp
37315 ac_cpp='$CXXCPP $CPPFLAGS'
37316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37321 /* end confdefs.h. */
37322 #include <math.h>
37324 main ()
37326 hypotl(0, 0);
37328 return 0;
37330 _ACEOF
37331 if ac_fn_cxx_try_compile "$LINENO"; then :
37332 glibcxx_cv_func_hypotl_use=yes
37333 else
37334 glibcxx_cv_func_hypotl_use=no
37336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37337 ac_ext=c
37338 ac_cpp='$CPP $CPPFLAGS'
37339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
37348 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
37350 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
37351 for ac_func in hypotl
37352 do :
37353 ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
37354 if test "x$ac_cv_func_hypotl" = xyes; then :
37355 cat >>confdefs.h <<_ACEOF
37356 #define HAVE_HYPOTL 1
37357 _ACEOF
37360 done
37366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
37367 $as_echo_n "checking for ldexpl declaration... " >&6; }
37368 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
37369 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
37370 $as_echo_n "(cached) " >&6
37371 else
37374 ac_ext=cpp
37375 ac_cpp='$CXXCPP $CPPFLAGS'
37376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37381 /* end confdefs.h. */
37382 #include <math.h>
37384 main ()
37386 ldexpl(0, 0);
37388 return 0;
37390 _ACEOF
37391 if ac_fn_cxx_try_compile "$LINENO"; then :
37392 glibcxx_cv_func_ldexpl_use=yes
37393 else
37394 glibcxx_cv_func_ldexpl_use=no
37396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37397 ac_ext=c
37398 ac_cpp='$CPP $CPPFLAGS'
37399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
37408 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
37410 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
37411 for ac_func in ldexpl
37412 do :
37413 ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
37414 if test "x$ac_cv_func_ldexpl" = xyes; then :
37415 cat >>confdefs.h <<_ACEOF
37416 #define HAVE_LDEXPL 1
37417 _ACEOF
37420 done
37426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
37427 $as_echo_n "checking for logl declaration... " >&6; }
37428 if test x${glibcxx_cv_func_logl_use+set} != xset; then
37429 if ${glibcxx_cv_func_logl_use+:} false; then :
37430 $as_echo_n "(cached) " >&6
37431 else
37434 ac_ext=cpp
37435 ac_cpp='$CXXCPP $CPPFLAGS'
37436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37441 /* end confdefs.h. */
37442 #include <math.h>
37443 #ifdef HAVE_IEEEFP_H
37444 #include <ieeefp.h>
37445 #endif
37448 main ()
37450 logl(0);
37452 return 0;
37454 _ACEOF
37455 if ac_fn_cxx_try_compile "$LINENO"; then :
37456 glibcxx_cv_func_logl_use=yes
37457 else
37458 glibcxx_cv_func_logl_use=no
37460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37461 ac_ext=c
37462 ac_cpp='$CPP $CPPFLAGS'
37463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
37472 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
37474 if test x$glibcxx_cv_func_logl_use = x"yes"; then
37475 for ac_func in logl
37476 do :
37477 ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
37478 if test "x$ac_cv_func_logl" = xyes; then :
37479 cat >>confdefs.h <<_ACEOF
37480 #define HAVE_LOGL 1
37481 _ACEOF
37484 done
37490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
37491 $as_echo_n "checking for log10l declaration... " >&6; }
37492 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
37493 if ${glibcxx_cv_func_log10l_use+:} false; then :
37494 $as_echo_n "(cached) " >&6
37495 else
37498 ac_ext=cpp
37499 ac_cpp='$CXXCPP $CPPFLAGS'
37500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37505 /* end confdefs.h. */
37506 #include <math.h>
37507 #ifdef HAVE_IEEEFP_H
37508 #include <ieeefp.h>
37509 #endif
37512 main ()
37514 log10l(0);
37516 return 0;
37518 _ACEOF
37519 if ac_fn_cxx_try_compile "$LINENO"; then :
37520 glibcxx_cv_func_log10l_use=yes
37521 else
37522 glibcxx_cv_func_log10l_use=no
37524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37525 ac_ext=c
37526 ac_cpp='$CPP $CPPFLAGS'
37527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
37536 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
37538 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
37539 for ac_func in log10l
37540 do :
37541 ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
37542 if test "x$ac_cv_func_log10l" = xyes; then :
37543 cat >>confdefs.h <<_ACEOF
37544 #define HAVE_LOG10L 1
37545 _ACEOF
37548 done
37554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
37555 $as_echo_n "checking for modfl declaration... " >&6; }
37556 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
37557 if ${glibcxx_cv_func_modfl_use+:} false; then :
37558 $as_echo_n "(cached) " >&6
37559 else
37562 ac_ext=cpp
37563 ac_cpp='$CXXCPP $CPPFLAGS'
37564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37569 /* end confdefs.h. */
37570 #include <math.h>
37572 main ()
37574 modfl(0, 0);
37576 return 0;
37578 _ACEOF
37579 if ac_fn_cxx_try_compile "$LINENO"; then :
37580 glibcxx_cv_func_modfl_use=yes
37581 else
37582 glibcxx_cv_func_modfl_use=no
37584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37585 ac_ext=c
37586 ac_cpp='$CPP $CPPFLAGS'
37587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
37596 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
37598 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
37599 for ac_func in modfl
37600 do :
37601 ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
37602 if test "x$ac_cv_func_modfl" = xyes; then :
37603 cat >>confdefs.h <<_ACEOF
37604 #define HAVE_MODFL 1
37605 _ACEOF
37608 done
37614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
37615 $as_echo_n "checking for powl declaration... " >&6; }
37616 if test x${glibcxx_cv_func_powl_use+set} != xset; then
37617 if ${glibcxx_cv_func_powl_use+:} false; then :
37618 $as_echo_n "(cached) " >&6
37619 else
37622 ac_ext=cpp
37623 ac_cpp='$CXXCPP $CPPFLAGS'
37624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37629 /* end confdefs.h. */
37630 #include <math.h>
37632 main ()
37634 powl(0, 0);
37636 return 0;
37638 _ACEOF
37639 if ac_fn_cxx_try_compile "$LINENO"; then :
37640 glibcxx_cv_func_powl_use=yes
37641 else
37642 glibcxx_cv_func_powl_use=no
37644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37645 ac_ext=c
37646 ac_cpp='$CPP $CPPFLAGS'
37647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
37656 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
37658 if test x$glibcxx_cv_func_powl_use = x"yes"; then
37659 for ac_func in powl
37660 do :
37661 ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
37662 if test "x$ac_cv_func_powl" = xyes; then :
37663 cat >>confdefs.h <<_ACEOF
37664 #define HAVE_POWL 1
37665 _ACEOF
37668 done
37674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
37675 $as_echo_n "checking for sqrtl declaration... " >&6; }
37676 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
37677 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
37678 $as_echo_n "(cached) " >&6
37679 else
37682 ac_ext=cpp
37683 ac_cpp='$CXXCPP $CPPFLAGS'
37684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37689 /* end confdefs.h. */
37690 #include <math.h>
37691 #ifdef HAVE_IEEEFP_H
37692 #include <ieeefp.h>
37693 #endif
37696 main ()
37698 sqrtl(0);
37700 return 0;
37702 _ACEOF
37703 if ac_fn_cxx_try_compile "$LINENO"; then :
37704 glibcxx_cv_func_sqrtl_use=yes
37705 else
37706 glibcxx_cv_func_sqrtl_use=no
37708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37709 ac_ext=c
37710 ac_cpp='$CPP $CPPFLAGS'
37711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
37720 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
37722 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
37723 for ac_func in sqrtl
37724 do :
37725 ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
37726 if test "x$ac_cv_func_sqrtl" = xyes; then :
37727 cat >>confdefs.h <<_ACEOF
37728 #define HAVE_SQRTL 1
37729 _ACEOF
37732 done
37738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
37739 $as_echo_n "checking for sincosl declaration... " >&6; }
37740 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
37741 if ${glibcxx_cv_func_sincosl_use+:} false; then :
37742 $as_echo_n "(cached) " >&6
37743 else
37746 ac_ext=cpp
37747 ac_cpp='$CXXCPP $CPPFLAGS'
37748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37753 /* end confdefs.h. */
37754 #include <math.h>
37756 main ()
37758 sincosl(0, 0, 0);
37760 return 0;
37762 _ACEOF
37763 if ac_fn_cxx_try_compile "$LINENO"; then :
37764 glibcxx_cv_func_sincosl_use=yes
37765 else
37766 glibcxx_cv_func_sincosl_use=no
37768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37769 ac_ext=c
37770 ac_cpp='$CPP $CPPFLAGS'
37771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
37780 $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
37782 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
37783 for ac_func in sincosl
37784 do :
37785 ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
37786 if test "x$ac_cv_func_sincosl" = xyes; then :
37787 cat >>confdefs.h <<_ACEOF
37788 #define HAVE_SINCOSL 1
37789 _ACEOF
37792 done
37798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
37799 $as_echo_n "checking for finitel declaration... " >&6; }
37800 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
37801 if ${glibcxx_cv_func_finitel_use+:} false; then :
37802 $as_echo_n "(cached) " >&6
37803 else
37806 ac_ext=cpp
37807 ac_cpp='$CXXCPP $CPPFLAGS'
37808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37813 /* end confdefs.h. */
37814 #include <math.h>
37815 #ifdef HAVE_IEEEFP_H
37816 #include <ieeefp.h>
37817 #endif
37820 main ()
37822 finitel(0);
37824 return 0;
37826 _ACEOF
37827 if ac_fn_cxx_try_compile "$LINENO"; then :
37828 glibcxx_cv_func_finitel_use=yes
37829 else
37830 glibcxx_cv_func_finitel_use=no
37832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37833 ac_ext=c
37834 ac_cpp='$CPP $CPPFLAGS'
37835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
37844 $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
37846 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
37847 for ac_func in finitel
37848 do :
37849 ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
37850 if test "x$ac_cv_func_finitel" = xyes; then :
37851 cat >>confdefs.h <<_ACEOF
37852 #define HAVE_FINITEL 1
37853 _ACEOF
37856 done
37861 LIBS="$ac_save_LIBS"
37862 CXXFLAGS="$ac_save_CXXFLAGS"
37865 ac_test_CXXFLAGS="${CXXFLAGS+set}"
37866 ac_save_CXXFLAGS="$CXXFLAGS"
37867 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
37870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
37871 $as_echo_n "checking for at_quick_exit declaration... " >&6; }
37872 if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
37873 if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
37874 $as_echo_n "(cached) " >&6
37875 else
37878 ac_ext=cpp
37879 ac_cpp='$CXXCPP $CPPFLAGS'
37880 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37881 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37882 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37885 /* end confdefs.h. */
37886 #include <stdlib.h>
37888 main ()
37890 at_quick_exit(0);
37892 return 0;
37894 _ACEOF
37895 if ac_fn_cxx_try_compile "$LINENO"; then :
37896 glibcxx_cv_func_at_quick_exit_use=yes
37897 else
37898 glibcxx_cv_func_at_quick_exit_use=no
37900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37901 ac_ext=c
37902 ac_cpp='$CPP $CPPFLAGS'
37903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
37912 $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
37913 if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
37914 for ac_func in at_quick_exit
37915 do :
37916 ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
37917 if test "x$ac_cv_func_at_quick_exit" = xyes; then :
37918 cat >>confdefs.h <<_ACEOF
37919 #define HAVE_AT_QUICK_EXIT 1
37920 _ACEOF
37923 done
37928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
37929 $as_echo_n "checking for quick_exit declaration... " >&6; }
37930 if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
37931 if ${glibcxx_cv_func_quick_exit_use+:} false; then :
37932 $as_echo_n "(cached) " >&6
37933 else
37936 ac_ext=cpp
37937 ac_cpp='$CXXCPP $CPPFLAGS'
37938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37943 /* end confdefs.h. */
37944 #include <stdlib.h>
37946 main ()
37948 quick_exit(0);
37950 return 0;
37952 _ACEOF
37953 if ac_fn_cxx_try_compile "$LINENO"; then :
37954 glibcxx_cv_func_quick_exit_use=yes
37955 else
37956 glibcxx_cv_func_quick_exit_use=no
37958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37959 ac_ext=c
37960 ac_cpp='$CPP $CPPFLAGS'
37961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
37970 $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
37971 if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
37972 for ac_func in quick_exit
37973 do :
37974 ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
37975 if test "x$ac_cv_func_quick_exit" = xyes; then :
37976 cat >>confdefs.h <<_ACEOF
37977 #define HAVE_QUICK_EXIT 1
37978 _ACEOF
37981 done
37986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
37987 $as_echo_n "checking for strtold declaration... " >&6; }
37988 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
37989 if ${glibcxx_cv_func_strtold_use+:} false; then :
37990 $as_echo_n "(cached) " >&6
37991 else
37994 ac_ext=cpp
37995 ac_cpp='$CXXCPP $CPPFLAGS'
37996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38001 /* end confdefs.h. */
38002 #include <stdlib.h>
38004 main ()
38006 strtold(0, 0);
38008 return 0;
38010 _ACEOF
38011 if ac_fn_cxx_try_compile "$LINENO"; then :
38012 glibcxx_cv_func_strtold_use=yes
38013 else
38014 glibcxx_cv_func_strtold_use=no
38016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38017 ac_ext=c
38018 ac_cpp='$CPP $CPPFLAGS'
38019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
38028 $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
38029 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
38030 for ac_func in strtold
38031 do :
38032 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
38033 if test "x$ac_cv_func_strtold" = xyes; then :
38034 cat >>confdefs.h <<_ACEOF
38035 #define HAVE_STRTOLD 1
38036 _ACEOF
38039 done
38044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
38045 $as_echo_n "checking for strtof declaration... " >&6; }
38046 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
38047 if ${glibcxx_cv_func_strtof_use+:} false; then :
38048 $as_echo_n "(cached) " >&6
38049 else
38052 ac_ext=cpp
38053 ac_cpp='$CXXCPP $CPPFLAGS'
38054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38059 /* end confdefs.h. */
38060 #include <stdlib.h>
38062 main ()
38064 strtof(0, 0);
38066 return 0;
38068 _ACEOF
38069 if ac_fn_cxx_try_compile "$LINENO"; then :
38070 glibcxx_cv_func_strtof_use=yes
38071 else
38072 glibcxx_cv_func_strtof_use=no
38074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38075 ac_ext=c
38076 ac_cpp='$CPP $CPPFLAGS'
38077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
38086 $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
38087 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
38088 for ac_func in strtof
38089 do :
38090 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
38091 if test "x$ac_cv_func_strtof" = xyes; then :
38092 cat >>confdefs.h <<_ACEOF
38093 #define HAVE_STRTOF 1
38094 _ACEOF
38097 done
38102 CXXFLAGS="$ac_save_CXXFLAGS"
38105 for ac_func in uselocale
38106 do :
38107 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
38108 if test "x$ac_cv_func_uselocale" = xyes; then :
38109 cat >>confdefs.h <<_ACEOF
38110 #define HAVE_USELOCALE 1
38111 _ACEOF
38114 done
38118 *djgpp)
38119 # GLIBCXX_CHECK_MATH_SUPPORT
38120 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
38122 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
38124 $as_echo "#define HAVE_FINITE 1" >>confdefs.h
38126 $as_echo "#define HAVE_SINCOS 1" >>confdefs.h
38128 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
38132 *-freebsd*)
38133 SECTION_FLAGS='-ffunction-sections -fdata-sections'
38136 # If we're not using GNU ld, then there's no point in even trying these
38137 # tests. Check for that first. We should have already tested for gld
38138 # by now (in libtool), but require it now just to be safe...
38139 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
38140 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
38144 # The name set by libtool depends on the version of libtool. Shame on us
38145 # for depending on an impl detail, but c'est la vie. Older versions used
38146 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
38147 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
38148 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
38149 # set (hence we're using an older libtool), then set it.
38150 if test x${with_gnu_ld+set} != xset; then
38151 if test x${ac_cv_prog_gnu_ld+set} != xset; then
38152 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
38153 with_gnu_ld=no
38154 else
38155 with_gnu_ld=$ac_cv_prog_gnu_ld
38159 # Start by getting the version number. I think the libtool test already
38160 # does some of this, but throws away the result.
38161 glibcxx_ld_is_gold=no
38162 glibcxx_ld_is_mold=no
38163 if test x"$with_gnu_ld" = x"yes"; then
38164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
38165 $as_echo_n "checking for ld version... " >&6; }
38167 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
38168 glibcxx_ld_is_gold=yes
38169 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
38170 glibcxx_ld_is_mold=yes
38172 ldver=`$LD --version 2>/dev/null |
38173 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
38175 glibcxx_gnu_ld_version=`echo $ldver | \
38176 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
38177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
38178 $as_echo "$glibcxx_gnu_ld_version" >&6; }
38181 # Set --gc-sections.
38182 glibcxx_have_gc_sections=no
38183 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
38184 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
38185 glibcxx_have_gc_sections=yes
38187 else
38188 glibcxx_gcsections_min_ld=21602
38189 if test x"$with_gnu_ld" = x"yes" &&
38190 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
38191 glibcxx_have_gc_sections=yes
38194 if test "$glibcxx_have_gc_sections" = "yes"; then
38195 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
38196 # NB: This flag only works reliably after 2.16.1. Configure tests
38197 # for this are difficult, so hard wire a value that should work.
38199 ac_test_CFLAGS="${CFLAGS+set}"
38200 ac_save_CFLAGS="$CFLAGS"
38201 CFLAGS='-Wl,--gc-sections'
38203 # Check for -Wl,--gc-sections
38204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
38205 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
38206 if test x$gcc_no_link = xyes; then
38207 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38210 /* end confdefs.h. */
38211 int one(void) { return 1; }
38212 int two(void) { return 2; }
38215 main ()
38217 two();
38219 return 0;
38221 _ACEOF
38222 if ac_fn_c_try_link "$LINENO"; then :
38223 ac_gcsections=yes
38224 else
38225 ac_gcsections=no
38227 rm -f core conftest.err conftest.$ac_objext \
38228 conftest$ac_exeext conftest.$ac_ext
38229 if test "$ac_gcsections" = "yes"; then
38230 rm -f conftest.c
38231 touch conftest.c
38232 if $CC -c conftest.c; then
38233 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
38234 grep "Warning: gc-sections option ignored" > /dev/null; then
38235 ac_gcsections=no
38238 rm -f conftest.c conftest.o conftest
38240 if test "$ac_gcsections" = "yes"; then
38241 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
38243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
38244 $as_echo "$ac_gcsections" >&6; }
38246 if test "$ac_test_CFLAGS" = set; then
38247 CFLAGS="$ac_save_CFLAGS"
38248 else
38249 # this is the suspicious part
38250 CFLAGS=''
38254 # Set -z,relro.
38255 # Note this is only for shared objects.
38256 ac_ld_relro=no
38257 if test x"$with_gnu_ld" = x"yes"; then
38258 # cygwin and mingw uses PE, which has no ELF relro support,
38259 # multi target ld may confuse configure machinery
38260 case "$host" in
38261 *-*-cygwin*)
38263 *-*-mingw*)
38266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
38267 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
38268 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
38269 if test -n "$cxx_z_relo"; then
38270 OPT_LDFLAGS="-Wl,-z,relro"
38271 ac_ld_relro=yes
38273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
38274 $as_echo "$ac_ld_relro" >&6; }
38275 esac
38278 # Set linker optimization flags.
38279 if test x"$with_gnu_ld" = x"yes"; then
38280 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
38286 $as_echo "#define HAVE_SETENV 1" >>confdefs.h
38288 $as_echo "#define HAVE_FINITEF 1" >>confdefs.h
38290 $as_echo "#define HAVE_FINITE 1" >>confdefs.h
38292 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
38294 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
38296 $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
38298 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
38300 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
38302 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
38305 $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
38307 $as_echo "#define HAVE_ASINF 1" >>confdefs.h
38309 $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
38311 $as_echo "#define HAVE_ATANF 1" >>confdefs.h
38313 $as_echo "#define HAVE_CEILF 1" >>confdefs.h
38315 $as_echo "#define HAVE_COSF 1" >>confdefs.h
38317 $as_echo "#define HAVE_COSHF 1" >>confdefs.h
38319 $as_echo "#define HAVE_EXPF 1" >>confdefs.h
38321 $as_echo "#define HAVE_FABSF 1" >>confdefs.h
38323 $as_echo "#define HAVE_FLOORF 1" >>confdefs.h
38325 $as_echo "#define HAVE_FMODF 1" >>confdefs.h
38327 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
38329 $as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
38331 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
38333 $as_echo "#define HAVE_LOGF 1" >>confdefs.h
38335 $as_echo "#define HAVE_MODFF 1" >>confdefs.h
38337 $as_echo "#define HAVE_POWF 1" >>confdefs.h
38339 $as_echo "#define HAVE_SINF 1" >>confdefs.h
38341 $as_echo "#define HAVE_SINHF 1" >>confdefs.h
38343 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
38345 $as_echo "#define HAVE_TANF 1" >>confdefs.h
38347 $as_echo "#define HAVE_TANHF 1" >>confdefs.h
38349 if test x"long_double_math_on_this_cpu" = x"yes"; then
38350 $as_echo "#define HAVE_FINITEL 1" >>confdefs.h
38352 $as_echo "#define HAVE_ISINFL 1" >>confdefs.h
38354 $as_echo "#define HAVE_ISNANL 1" >>confdefs.h
38357 for ac_func in __cxa_thread_atexit
38358 do :
38359 ac_fn_c_check_func "$LINENO" "__cxa_thread_atexit" "ac_cv_func___cxa_thread_atexit"
38360 if test "x$ac_cv_func___cxa_thread_atexit" = xyes; then :
38361 cat >>confdefs.h <<_ACEOF
38362 #define HAVE___CXA_THREAD_ATEXIT 1
38363 _ACEOF
38366 done
38368 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
38369 do :
38370 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38371 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
38372 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
38373 cat >>confdefs.h <<_ACEOF
38374 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38375 _ACEOF
38378 done
38380 for ac_func in timespec_get
38381 do :
38382 ac_fn_c_check_func "$LINENO" "timespec_get" "ac_cv_func_timespec_get"
38383 if test "x$ac_cv_func_timespec_get" = xyes; then :
38384 cat >>confdefs.h <<_ACEOF
38385 #define HAVE_TIMESPEC_GET 1
38386 _ACEOF
38389 done
38391 for ac_func in sockatmark
38392 do :
38393 ac_fn_c_check_func "$LINENO" "sockatmark" "ac_cv_func_sockatmark"
38394 if test "x$ac_cv_func_sockatmark" = xyes; then :
38395 cat >>confdefs.h <<_ACEOF
38396 #define HAVE_SOCKATMARK 1
38397 _ACEOF
38400 done
38402 for ac_func in uselocale
38403 do :
38404 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
38405 if test "x$ac_cv_func_uselocale" = xyes; then :
38406 cat >>confdefs.h <<_ACEOF
38407 #define HAVE_USELOCALE 1
38408 _ACEOF
38411 done
38415 *-fuchsia*)
38416 SECTION_FLAGS='-ffunction-sections -fdata-sections'
38420 *-hpux*)
38421 SECTION_FLAGS='-ffunction-sections -fdata-sections'
38424 # If we're not using GNU ld, then there's no point in even trying these
38425 # tests. Check for that first. We should have already tested for gld
38426 # by now (in libtool), but require it now just to be safe...
38427 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
38428 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
38432 # The name set by libtool depends on the version of libtool. Shame on us
38433 # for depending on an impl detail, but c'est la vie. Older versions used
38434 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
38435 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
38436 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
38437 # set (hence we're using an older libtool), then set it.
38438 if test x${with_gnu_ld+set} != xset; then
38439 if test x${ac_cv_prog_gnu_ld+set} != xset; then
38440 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
38441 with_gnu_ld=no
38442 else
38443 with_gnu_ld=$ac_cv_prog_gnu_ld
38447 # Start by getting the version number. I think the libtool test already
38448 # does some of this, but throws away the result.
38449 glibcxx_ld_is_gold=no
38450 glibcxx_ld_is_mold=no
38451 if test x"$with_gnu_ld" = x"yes"; then
38452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
38453 $as_echo_n "checking for ld version... " >&6; }
38455 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
38456 glibcxx_ld_is_gold=yes
38457 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
38458 glibcxx_ld_is_mold=yes
38460 ldver=`$LD --version 2>/dev/null |
38461 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
38463 glibcxx_gnu_ld_version=`echo $ldver | \
38464 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
38465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
38466 $as_echo "$glibcxx_gnu_ld_version" >&6; }
38469 # Set --gc-sections.
38470 glibcxx_have_gc_sections=no
38471 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
38472 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
38473 glibcxx_have_gc_sections=yes
38475 else
38476 glibcxx_gcsections_min_ld=21602
38477 if test x"$with_gnu_ld" = x"yes" &&
38478 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
38479 glibcxx_have_gc_sections=yes
38482 if test "$glibcxx_have_gc_sections" = "yes"; then
38483 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
38484 # NB: This flag only works reliably after 2.16.1. Configure tests
38485 # for this are difficult, so hard wire a value that should work.
38487 ac_test_CFLAGS="${CFLAGS+set}"
38488 ac_save_CFLAGS="$CFLAGS"
38489 CFLAGS='-Wl,--gc-sections'
38491 # Check for -Wl,--gc-sections
38492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
38493 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
38494 if test x$gcc_no_link = xyes; then
38495 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38498 /* end confdefs.h. */
38499 int one(void) { return 1; }
38500 int two(void) { return 2; }
38503 main ()
38505 two();
38507 return 0;
38509 _ACEOF
38510 if ac_fn_c_try_link "$LINENO"; then :
38511 ac_gcsections=yes
38512 else
38513 ac_gcsections=no
38515 rm -f core conftest.err conftest.$ac_objext \
38516 conftest$ac_exeext conftest.$ac_ext
38517 if test "$ac_gcsections" = "yes"; then
38518 rm -f conftest.c
38519 touch conftest.c
38520 if $CC -c conftest.c; then
38521 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
38522 grep "Warning: gc-sections option ignored" > /dev/null; then
38523 ac_gcsections=no
38526 rm -f conftest.c conftest.o conftest
38528 if test "$ac_gcsections" = "yes"; then
38529 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
38531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
38532 $as_echo "$ac_gcsections" >&6; }
38534 if test "$ac_test_CFLAGS" = set; then
38535 CFLAGS="$ac_save_CFLAGS"
38536 else
38537 # this is the suspicious part
38538 CFLAGS=''
38542 # Set -z,relro.
38543 # Note this is only for shared objects.
38544 ac_ld_relro=no
38545 if test x"$with_gnu_ld" = x"yes"; then
38546 # cygwin and mingw uses PE, which has no ELF relro support,
38547 # multi target ld may confuse configure machinery
38548 case "$host" in
38549 *-*-cygwin*)
38551 *-*-mingw*)
38554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
38555 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
38556 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
38557 if test -n "$cxx_z_relo"; then
38558 OPT_LDFLAGS="-Wl,-z,relro"
38559 ac_ld_relro=yes
38561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
38562 $as_echo "$ac_ld_relro" >&6; }
38563 esac
38566 # Set linker optimization flags.
38567 if test x"$with_gnu_ld" = x"yes"; then
38568 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
38575 # GLIBCXX_CHECK_MATH_SUPPORT
38576 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
38578 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
38580 $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
38582 $as_echo "#define HAVE_ASINF 1" >>confdefs.h
38584 $as_echo "#define HAVE_ATANF 1" >>confdefs.h
38586 $as_echo "#define HAVE_COSF 1" >>confdefs.h
38588 $as_echo "#define HAVE_COSHF 1" >>confdefs.h
38590 $as_echo "#define HAVE_SINF 1" >>confdefs.h
38592 $as_echo "#define HAVE_SINHF 1" >>confdefs.h
38594 $as_echo "#define HAVE_TANF 1" >>confdefs.h
38596 $as_echo "#define HAVE_TANHF 1" >>confdefs.h
38598 $as_echo "#define HAVE_EXPF 1" >>confdefs.h
38600 $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
38602 $as_echo "#define HAVE_FABSF 1" >>confdefs.h
38604 $as_echo "#define HAVE_FMODF 1" >>confdefs.h
38606 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
38608 $as_echo "#define HAVE_LOGF 1" >>confdefs.h
38610 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
38612 $as_echo "#define HAVE_MODF 1" >>confdefs.h
38614 $as_echo "#define HAVE_POWF 1" >>confdefs.h
38616 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
38619 # GLIBCXX_CHECK_STDLIB_SUPPORT
38620 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
38625 # Check whether --enable-tls was given.
38626 if test "${enable_tls+set}" = set; then :
38627 enableval=$enable_tls;
38628 case "$enableval" in
38629 yes|no) ;;
38630 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
38631 esac
38633 else
38634 enable_tls=yes
38638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
38639 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
38640 if ${gcc_cv_have_tls+:} false; then :
38641 $as_echo_n "(cached) " >&6
38642 else
38644 if test "$cross_compiling" = yes; then :
38645 if test x$gcc_no_link = xyes; then
38646 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38649 /* end confdefs.h. */
38650 __thread int a; int b; int main() { return a = b; }
38651 _ACEOF
38652 if ac_fn_c_try_link "$LINENO"; then :
38653 chktls_save_LDFLAGS="$LDFLAGS"
38654 case $host in
38655 *-*-linux* | -*-uclinuxfdpic*)
38656 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
38658 esac
38659 chktls_save_CFLAGS="$CFLAGS"
38660 CFLAGS="-fPIC $CFLAGS"
38661 if test x$gcc_no_link = xyes; then
38662 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38665 /* end confdefs.h. */
38666 int f() { return 0; }
38667 _ACEOF
38668 if ac_fn_c_try_link "$LINENO"; then :
38669 if test x$gcc_no_link = xyes; then
38670 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38673 /* end confdefs.h. */
38674 __thread int a; int b; int f() { return a = b; }
38675 _ACEOF
38676 if ac_fn_c_try_link "$LINENO"; then :
38677 gcc_cv_have_tls=yes
38678 else
38679 gcc_cv_have_tls=no
38681 rm -f core conftest.err conftest.$ac_objext \
38682 conftest$ac_exeext conftest.$ac_ext
38683 else
38684 gcc_cv_have_tls=yes
38686 rm -f core conftest.err conftest.$ac_objext \
38687 conftest$ac_exeext conftest.$ac_ext
38688 CFLAGS="$chktls_save_CFLAGS"
38689 LDFLAGS="$chktls_save_LDFLAGS"
38690 else
38691 gcc_cv_have_tls=no
38693 rm -f core conftest.err conftest.$ac_objext \
38694 conftest$ac_exeext conftest.$ac_ext
38697 else
38698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38699 /* end confdefs.h. */
38700 __thread int a; int b; int main() { return a = b; }
38701 _ACEOF
38702 if ac_fn_c_try_run "$LINENO"; then :
38703 chktls_save_LDFLAGS="$LDFLAGS"
38704 LDFLAGS="-static $LDFLAGS"
38705 if test x$gcc_no_link = xyes; then
38706 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38709 /* end confdefs.h. */
38710 int main() { return 0; }
38711 _ACEOF
38712 if ac_fn_c_try_link "$LINENO"; then :
38713 if test "$cross_compiling" = yes; then :
38714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38716 as_fn_error $? "cannot run test program while cross compiling
38717 See \`config.log' for more details" "$LINENO" 5; }
38718 else
38719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38720 /* end confdefs.h. */
38721 __thread int a; int b; int main() { return a = b; }
38722 _ACEOF
38723 if ac_fn_c_try_run "$LINENO"; then :
38724 gcc_cv_have_tls=yes
38725 else
38726 gcc_cv_have_tls=no
38728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38729 conftest.$ac_objext conftest.beam conftest.$ac_ext
38732 else
38733 gcc_cv_have_tls=yes
38735 rm -f core conftest.err conftest.$ac_objext \
38736 conftest$ac_exeext conftest.$ac_ext
38737 LDFLAGS="$chktls_save_LDFLAGS"
38738 if test $gcc_cv_have_tls = yes; then
38739 chktls_save_CFLAGS="$CFLAGS"
38740 thread_CFLAGS=failed
38741 for flag in '' '-pthread' '-lpthread'; do
38742 CFLAGS="$flag $chktls_save_CFLAGS"
38743 if test x$gcc_no_link = xyes; then
38744 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38747 /* end confdefs.h. */
38748 #include <pthread.h>
38749 void *g(void *d) { return NULL; }
38751 main ()
38753 pthread_t t; pthread_create(&t,NULL,g,NULL);
38755 return 0;
38757 _ACEOF
38758 if ac_fn_c_try_link "$LINENO"; then :
38759 thread_CFLAGS="$flag"
38761 rm -f core conftest.err conftest.$ac_objext \
38762 conftest$ac_exeext conftest.$ac_ext
38763 if test "X$thread_CFLAGS" != Xfailed; then
38764 break
38766 done
38767 CFLAGS="$chktls_save_CFLAGS"
38768 if test "X$thread_CFLAGS" != Xfailed; then
38769 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
38770 if test "$cross_compiling" = yes; then :
38771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38773 as_fn_error $? "cannot run test program while cross compiling
38774 See \`config.log' for more details" "$LINENO" 5; }
38775 else
38776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38777 /* end confdefs.h. */
38778 #include <pthread.h>
38779 __thread int a;
38780 static int *volatile a_in_other_thread;
38781 static void *
38782 thread_func (void *arg)
38784 a_in_other_thread = &a;
38785 return (void *)0;
38788 main ()
38790 pthread_t thread;
38791 void *thread_retval;
38792 int *volatile a_in_main_thread;
38793 a_in_main_thread = &a;
38794 if (pthread_create (&thread, (pthread_attr_t *)0,
38795 thread_func, (void *)0))
38796 return 0;
38797 if (pthread_join (thread, &thread_retval))
38798 return 0;
38799 return (a_in_other_thread == a_in_main_thread);
38801 return 0;
38803 _ACEOF
38804 if ac_fn_c_try_run "$LINENO"; then :
38805 gcc_cv_have_tls=yes
38806 else
38807 gcc_cv_have_tls=no
38809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38810 conftest.$ac_objext conftest.beam conftest.$ac_ext
38813 CFLAGS="$chktls_save_CFLAGS"
38816 else
38817 gcc_cv_have_tls=no
38819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38820 conftest.$ac_objext conftest.beam conftest.$ac_ext
38824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
38825 $as_echo "$gcc_cv_have_tls" >&6; }
38826 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
38828 $as_echo "#define HAVE_TLS 1" >>confdefs.h
38832 *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-cygwin* | *-solaris*)
38834 # All these tests are for C++; save the language and the compiler flags.
38835 # The CXXFLAGS thing is suspicious, but based on similar bits previously
38836 # found in GLIBCXX_CONFIGURE.
38838 ac_ext=cpp
38839 ac_cpp='$CXXCPP $CPPFLAGS'
38840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38844 ac_test_CXXFLAGS="${CXXFLAGS+set}"
38845 ac_save_CXXFLAGS="$CXXFLAGS"
38847 # Check for -ffunction-sections -fdata-sections
38848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
38849 $as_echo_n "checking for g++ that supports -ffunction-sections -fdata-sections... " >&6; }
38850 CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections'
38851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38852 /* end confdefs.h. */
38853 int foo; void bar() { };
38855 main ()
38859 return 0;
38861 _ACEOF
38862 if ac_fn_cxx_try_compile "$LINENO"; then :
38863 ac_fdsections=yes
38864 else
38865 ac_fdsections=no
38867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38868 if test "$ac_test_CXXFLAGS" = set; then
38869 CXXFLAGS="$ac_save_CXXFLAGS"
38870 else
38871 # this is the suspicious part
38872 CXXFLAGS=''
38874 if test x"$ac_fdsections" = x"yes"; then
38875 SECTION_FLAGS='-ffunction-sections -fdata-sections'
38877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
38878 $as_echo "$ac_fdsections" >&6; }
38880 ac_ext=c
38881 ac_cpp='$CPP $CPPFLAGS'
38882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38889 # If we're not using GNU ld, then there's no point in even trying these
38890 # tests. Check for that first. We should have already tested for gld
38891 # by now (in libtool), but require it now just to be safe...
38892 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
38893 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
38897 # The name set by libtool depends on the version of libtool. Shame on us
38898 # for depending on an impl detail, but c'est la vie. Older versions used
38899 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
38900 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
38901 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
38902 # set (hence we're using an older libtool), then set it.
38903 if test x${with_gnu_ld+set} != xset; then
38904 if test x${ac_cv_prog_gnu_ld+set} != xset; then
38905 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
38906 with_gnu_ld=no
38907 else
38908 with_gnu_ld=$ac_cv_prog_gnu_ld
38912 # Start by getting the version number. I think the libtool test already
38913 # does some of this, but throws away the result.
38914 glibcxx_ld_is_gold=no
38915 glibcxx_ld_is_mold=no
38916 if test x"$with_gnu_ld" = x"yes"; then
38917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
38918 $as_echo_n "checking for ld version... " >&6; }
38920 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
38921 glibcxx_ld_is_gold=yes
38922 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
38923 glibcxx_ld_is_mold=yes
38925 ldver=`$LD --version 2>/dev/null |
38926 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
38928 glibcxx_gnu_ld_version=`echo $ldver | \
38929 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
38930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
38931 $as_echo "$glibcxx_gnu_ld_version" >&6; }
38934 # Set --gc-sections.
38935 glibcxx_have_gc_sections=no
38936 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
38937 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
38938 glibcxx_have_gc_sections=yes
38940 else
38941 glibcxx_gcsections_min_ld=21602
38942 if test x"$with_gnu_ld" = x"yes" &&
38943 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
38944 glibcxx_have_gc_sections=yes
38947 if test "$glibcxx_have_gc_sections" = "yes"; then
38948 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
38949 # NB: This flag only works reliably after 2.16.1. Configure tests
38950 # for this are difficult, so hard wire a value that should work.
38952 ac_test_CFLAGS="${CFLAGS+set}"
38953 ac_save_CFLAGS="$CFLAGS"
38954 CFLAGS='-Wl,--gc-sections'
38956 # Check for -Wl,--gc-sections
38957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
38958 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
38959 if test x$gcc_no_link = xyes; then
38960 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38963 /* end confdefs.h. */
38964 int one(void) { return 1; }
38965 int two(void) { return 2; }
38968 main ()
38970 two();
38972 return 0;
38974 _ACEOF
38975 if ac_fn_c_try_link "$LINENO"; then :
38976 ac_gcsections=yes
38977 else
38978 ac_gcsections=no
38980 rm -f core conftest.err conftest.$ac_objext \
38981 conftest$ac_exeext conftest.$ac_ext
38982 if test "$ac_gcsections" = "yes"; then
38983 rm -f conftest.c
38984 touch conftest.c
38985 if $CC -c conftest.c; then
38986 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
38987 grep "Warning: gc-sections option ignored" > /dev/null; then
38988 ac_gcsections=no
38991 rm -f conftest.c conftest.o conftest
38993 if test "$ac_gcsections" = "yes"; then
38994 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
38996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
38997 $as_echo "$ac_gcsections" >&6; }
38999 if test "$ac_test_CFLAGS" = set; then
39000 CFLAGS="$ac_save_CFLAGS"
39001 else
39002 # this is the suspicious part
39003 CFLAGS=''
39007 # Set -z,relro.
39008 # Note this is only for shared objects.
39009 ac_ld_relro=no
39010 if test x"$with_gnu_ld" = x"yes"; then
39011 # cygwin and mingw uses PE, which has no ELF relro support,
39012 # multi target ld may confuse configure machinery
39013 case "$host" in
39014 *-*-cygwin*)
39016 *-*-mingw*)
39019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
39020 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
39021 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
39022 if test -n "$cxx_z_relo"; then
39023 OPT_LDFLAGS="-Wl,-z,relro"
39024 ac_ld_relro=yes
39026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
39027 $as_echo "$ac_ld_relro" >&6; }
39028 esac
39031 # Set linker optimization flags.
39032 if test x"$with_gnu_ld" = x"yes"; then
39033 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
39040 ac_test_CXXFLAGS="${CXXFLAGS+set}"
39041 ac_save_CXXFLAGS="$CXXFLAGS"
39042 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
39044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
39045 $as_echo_n "checking for sin in -lm... " >&6; }
39046 if ${ac_cv_lib_m_sin+:} false; then :
39047 $as_echo_n "(cached) " >&6
39048 else
39049 ac_check_lib_save_LIBS=$LIBS
39050 LIBS="-lm $LIBS"
39051 if test x$gcc_no_link = xyes; then
39052 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
39054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39055 /* end confdefs.h. */
39057 /* Override any GCC internal prototype to avoid an error.
39058 Use char because int might match the return type of a GCC
39059 builtin and then its argument prototype would still apply. */
39060 #ifdef __cplusplus
39061 extern "C"
39062 #endif
39063 char sin ();
39065 main ()
39067 return sin ();
39069 return 0;
39071 _ACEOF
39072 if ac_fn_c_try_link "$LINENO"; then :
39073 ac_cv_lib_m_sin=yes
39074 else
39075 ac_cv_lib_m_sin=no
39077 rm -f core conftest.err conftest.$ac_objext \
39078 conftest$ac_exeext conftest.$ac_ext
39079 LIBS=$ac_check_lib_save_LIBS
39081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
39082 $as_echo "$ac_cv_lib_m_sin" >&6; }
39083 if test "x$ac_cv_lib_m_sin" = xyes; then :
39084 libm="-lm"
39087 ac_save_LIBS="$LIBS"
39088 LIBS="$LIBS $libm"
39092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
39093 $as_echo_n "checking for isinf declaration... " >&6; }
39094 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
39095 if ${glibcxx_cv_func_isinf_use+:} false; then :
39096 $as_echo_n "(cached) " >&6
39097 else
39100 ac_ext=cpp
39101 ac_cpp='$CXXCPP $CPPFLAGS'
39102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39107 /* end confdefs.h. */
39108 #include <math.h>
39109 #ifdef HAVE_IEEEFP_H
39110 #include <ieeefp.h>
39111 #endif
39114 main ()
39116 isinf(0);
39118 return 0;
39120 _ACEOF
39121 if ac_fn_cxx_try_compile "$LINENO"; then :
39122 glibcxx_cv_func_isinf_use=yes
39123 else
39124 glibcxx_cv_func_isinf_use=no
39126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39127 ac_ext=c
39128 ac_cpp='$CPP $CPPFLAGS'
39129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
39138 $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
39140 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
39141 for ac_func in isinf
39142 do :
39143 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
39144 if test "x$ac_cv_func_isinf" = xyes; then :
39145 cat >>confdefs.h <<_ACEOF
39146 #define HAVE_ISINF 1
39147 _ACEOF
39150 done
39156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
39157 $as_echo_n "checking for isnan declaration... " >&6; }
39158 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
39159 if ${glibcxx_cv_func_isnan_use+:} false; then :
39160 $as_echo_n "(cached) " >&6
39161 else
39164 ac_ext=cpp
39165 ac_cpp='$CXXCPP $CPPFLAGS'
39166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39171 /* end confdefs.h. */
39172 #include <math.h>
39173 #ifdef HAVE_IEEEFP_H
39174 #include <ieeefp.h>
39175 #endif
39178 main ()
39180 isnan(0);
39182 return 0;
39184 _ACEOF
39185 if ac_fn_cxx_try_compile "$LINENO"; then :
39186 glibcxx_cv_func_isnan_use=yes
39187 else
39188 glibcxx_cv_func_isnan_use=no
39190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39191 ac_ext=c
39192 ac_cpp='$CPP $CPPFLAGS'
39193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
39202 $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
39204 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
39205 for ac_func in isnan
39206 do :
39207 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
39208 if test "x$ac_cv_func_isnan" = xyes; then :
39209 cat >>confdefs.h <<_ACEOF
39210 #define HAVE_ISNAN 1
39211 _ACEOF
39214 done
39220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
39221 $as_echo_n "checking for finite declaration... " >&6; }
39222 if test x${glibcxx_cv_func_finite_use+set} != xset; then
39223 if ${glibcxx_cv_func_finite_use+:} false; then :
39224 $as_echo_n "(cached) " >&6
39225 else
39228 ac_ext=cpp
39229 ac_cpp='$CXXCPP $CPPFLAGS'
39230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39235 /* end confdefs.h. */
39236 #include <math.h>
39237 #ifdef HAVE_IEEEFP_H
39238 #include <ieeefp.h>
39239 #endif
39242 main ()
39244 finite(0);
39246 return 0;
39248 _ACEOF
39249 if ac_fn_cxx_try_compile "$LINENO"; then :
39250 glibcxx_cv_func_finite_use=yes
39251 else
39252 glibcxx_cv_func_finite_use=no
39254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39255 ac_ext=c
39256 ac_cpp='$CPP $CPPFLAGS'
39257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
39266 $as_echo "$glibcxx_cv_func_finite_use" >&6; }
39268 if test x$glibcxx_cv_func_finite_use = x"yes"; then
39269 for ac_func in finite
39270 do :
39271 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
39272 if test "x$ac_cv_func_finite" = xyes; then :
39273 cat >>confdefs.h <<_ACEOF
39274 #define HAVE_FINITE 1
39275 _ACEOF
39278 done
39284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
39285 $as_echo_n "checking for sincos declaration... " >&6; }
39286 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
39287 if ${glibcxx_cv_func_sincos_use+:} false; then :
39288 $as_echo_n "(cached) " >&6
39289 else
39292 ac_ext=cpp
39293 ac_cpp='$CXXCPP $CPPFLAGS'
39294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39299 /* end confdefs.h. */
39300 #include <math.h>
39302 main ()
39304 sincos(0, 0, 0);
39306 return 0;
39308 _ACEOF
39309 if ac_fn_cxx_try_compile "$LINENO"; then :
39310 glibcxx_cv_func_sincos_use=yes
39311 else
39312 glibcxx_cv_func_sincos_use=no
39314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39315 ac_ext=c
39316 ac_cpp='$CPP $CPPFLAGS'
39317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
39326 $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
39328 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
39329 for ac_func in sincos
39330 do :
39331 ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
39332 if test "x$ac_cv_func_sincos" = xyes; then :
39333 cat >>confdefs.h <<_ACEOF
39334 #define HAVE_SINCOS 1
39335 _ACEOF
39338 done
39344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
39345 $as_echo_n "checking for fpclass declaration... " >&6; }
39346 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
39347 if ${glibcxx_cv_func_fpclass_use+:} false; then :
39348 $as_echo_n "(cached) " >&6
39349 else
39352 ac_ext=cpp
39353 ac_cpp='$CXXCPP $CPPFLAGS'
39354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39359 /* end confdefs.h. */
39360 #include <math.h>
39361 #ifdef HAVE_IEEEFP_H
39362 #include <ieeefp.h>
39363 #endif
39366 main ()
39368 fpclass(0);
39370 return 0;
39372 _ACEOF
39373 if ac_fn_cxx_try_compile "$LINENO"; then :
39374 glibcxx_cv_func_fpclass_use=yes
39375 else
39376 glibcxx_cv_func_fpclass_use=no
39378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39379 ac_ext=c
39380 ac_cpp='$CPP $CPPFLAGS'
39381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
39390 $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
39392 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
39393 for ac_func in fpclass
39394 do :
39395 ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
39396 if test "x$ac_cv_func_fpclass" = xyes; then :
39397 cat >>confdefs.h <<_ACEOF
39398 #define HAVE_FPCLASS 1
39399 _ACEOF
39402 done
39408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
39409 $as_echo_n "checking for qfpclass declaration... " >&6; }
39410 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
39411 if ${glibcxx_cv_func_qfpclass_use+:} false; then :
39412 $as_echo_n "(cached) " >&6
39413 else
39416 ac_ext=cpp
39417 ac_cpp='$CXXCPP $CPPFLAGS'
39418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39423 /* end confdefs.h. */
39424 #include <math.h>
39425 #ifdef HAVE_IEEEFP_H
39426 #include <ieeefp.h>
39427 #endif
39430 main ()
39432 qfpclass(0);
39434 return 0;
39436 _ACEOF
39437 if ac_fn_cxx_try_compile "$LINENO"; then :
39438 glibcxx_cv_func_qfpclass_use=yes
39439 else
39440 glibcxx_cv_func_qfpclass_use=no
39442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39443 ac_ext=c
39444 ac_cpp='$CPP $CPPFLAGS'
39445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
39454 $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
39456 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
39457 for ac_func in qfpclass
39458 do :
39459 ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
39460 if test "x$ac_cv_func_qfpclass" = xyes; then :
39461 cat >>confdefs.h <<_ACEOF
39462 #define HAVE_QFPCLASS 1
39463 _ACEOF
39466 done
39472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
39473 $as_echo_n "checking for hypot declaration... " >&6; }
39474 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
39475 if ${glibcxx_cv_func_hypot_use+:} false; then :
39476 $as_echo_n "(cached) " >&6
39477 else
39480 ac_ext=cpp
39481 ac_cpp='$CXXCPP $CPPFLAGS'
39482 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39483 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39484 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39487 /* end confdefs.h. */
39488 #include <math.h>
39490 main ()
39492 hypot(0, 0);
39494 return 0;
39496 _ACEOF
39497 if ac_fn_cxx_try_compile "$LINENO"; then :
39498 glibcxx_cv_func_hypot_use=yes
39499 else
39500 glibcxx_cv_func_hypot_use=no
39502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39503 ac_ext=c
39504 ac_cpp='$CPP $CPPFLAGS'
39505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
39514 $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
39516 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
39517 for ac_func in hypot
39518 do :
39519 ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
39520 if test "x$ac_cv_func_hypot" = xyes; then :
39521 cat >>confdefs.h <<_ACEOF
39522 #define HAVE_HYPOT 1
39523 _ACEOF
39526 done
39532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
39533 $as_echo_n "checking for float trig functions... " >&6; }
39534 if ${glibcxx_cv_func_float_trig_use+:} false; then :
39535 $as_echo_n "(cached) " >&6
39536 else
39539 ac_ext=cpp
39540 ac_cpp='$CXXCPP $CPPFLAGS'
39541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39546 /* end confdefs.h. */
39547 #include <math.h>
39549 main ()
39551 acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
39553 return 0;
39555 _ACEOF
39556 if ac_fn_cxx_try_compile "$LINENO"; then :
39557 glibcxx_cv_func_float_trig_use=yes
39558 else
39559 glibcxx_cv_func_float_trig_use=no
39561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39562 ac_ext=c
39563 ac_cpp='$CPP $CPPFLAGS'
39564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
39571 $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
39572 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
39573 for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
39574 do :
39575 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39576 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39577 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39578 cat >>confdefs.h <<_ACEOF
39579 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39580 _ACEOF
39583 done
39589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
39590 $as_echo_n "checking for float round functions... " >&6; }
39591 if ${glibcxx_cv_func_float_round_use+:} false; then :
39592 $as_echo_n "(cached) " >&6
39593 else
39596 ac_ext=cpp
39597 ac_cpp='$CXXCPP $CPPFLAGS'
39598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39603 /* end confdefs.h. */
39604 #include <math.h>
39606 main ()
39608 ceilf (0); floorf (0);
39610 return 0;
39612 _ACEOF
39613 if ac_fn_cxx_try_compile "$LINENO"; then :
39614 glibcxx_cv_func_float_round_use=yes
39615 else
39616 glibcxx_cv_func_float_round_use=no
39618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39619 ac_ext=c
39620 ac_cpp='$CPP $CPPFLAGS'
39621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
39628 $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
39629 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
39630 for ac_func in ceilf floorf
39631 do :
39632 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39633 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39634 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39635 cat >>confdefs.h <<_ACEOF
39636 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39637 _ACEOF
39640 done
39647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
39648 $as_echo_n "checking for expf declaration... " >&6; }
39649 if test x${glibcxx_cv_func_expf_use+set} != xset; then
39650 if ${glibcxx_cv_func_expf_use+:} false; then :
39651 $as_echo_n "(cached) " >&6
39652 else
39655 ac_ext=cpp
39656 ac_cpp='$CXXCPP $CPPFLAGS'
39657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39662 /* end confdefs.h. */
39663 #include <math.h>
39664 #ifdef HAVE_IEEEFP_H
39665 #include <ieeefp.h>
39666 #endif
39669 main ()
39671 expf(0);
39673 return 0;
39675 _ACEOF
39676 if ac_fn_cxx_try_compile "$LINENO"; then :
39677 glibcxx_cv_func_expf_use=yes
39678 else
39679 glibcxx_cv_func_expf_use=no
39681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39682 ac_ext=c
39683 ac_cpp='$CPP $CPPFLAGS'
39684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
39693 $as_echo "$glibcxx_cv_func_expf_use" >&6; }
39695 if test x$glibcxx_cv_func_expf_use = x"yes"; then
39696 for ac_func in expf
39697 do :
39698 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
39699 if test "x$ac_cv_func_expf" = xyes; then :
39700 cat >>confdefs.h <<_ACEOF
39701 #define HAVE_EXPF 1
39702 _ACEOF
39705 done
39711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
39712 $as_echo_n "checking for isnanf declaration... " >&6; }
39713 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
39714 if ${glibcxx_cv_func_isnanf_use+:} false; then :
39715 $as_echo_n "(cached) " >&6
39716 else
39719 ac_ext=cpp
39720 ac_cpp='$CXXCPP $CPPFLAGS'
39721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39726 /* end confdefs.h. */
39727 #include <math.h>
39728 #ifdef HAVE_IEEEFP_H
39729 #include <ieeefp.h>
39730 #endif
39733 main ()
39735 isnanf(0);
39737 return 0;
39739 _ACEOF
39740 if ac_fn_cxx_try_compile "$LINENO"; then :
39741 glibcxx_cv_func_isnanf_use=yes
39742 else
39743 glibcxx_cv_func_isnanf_use=no
39745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39746 ac_ext=c
39747 ac_cpp='$CPP $CPPFLAGS'
39748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
39757 $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
39759 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
39760 for ac_func in isnanf
39761 do :
39762 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
39763 if test "x$ac_cv_func_isnanf" = xyes; then :
39764 cat >>confdefs.h <<_ACEOF
39765 #define HAVE_ISNANF 1
39766 _ACEOF
39769 done
39775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
39776 $as_echo_n "checking for isinff declaration... " >&6; }
39777 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
39778 if ${glibcxx_cv_func_isinff_use+:} false; then :
39779 $as_echo_n "(cached) " >&6
39780 else
39783 ac_ext=cpp
39784 ac_cpp='$CXXCPP $CPPFLAGS'
39785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39790 /* end confdefs.h. */
39791 #include <math.h>
39792 #ifdef HAVE_IEEEFP_H
39793 #include <ieeefp.h>
39794 #endif
39797 main ()
39799 isinff(0);
39801 return 0;
39803 _ACEOF
39804 if ac_fn_cxx_try_compile "$LINENO"; then :
39805 glibcxx_cv_func_isinff_use=yes
39806 else
39807 glibcxx_cv_func_isinff_use=no
39809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39810 ac_ext=c
39811 ac_cpp='$CPP $CPPFLAGS'
39812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
39821 $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
39823 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
39824 for ac_func in isinff
39825 do :
39826 ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
39827 if test "x$ac_cv_func_isinff" = xyes; then :
39828 cat >>confdefs.h <<_ACEOF
39829 #define HAVE_ISINFF 1
39830 _ACEOF
39833 done
39839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
39840 $as_echo_n "checking for atan2f declaration... " >&6; }
39841 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
39842 if ${glibcxx_cv_func_atan2f_use+:} false; then :
39843 $as_echo_n "(cached) " >&6
39844 else
39847 ac_ext=cpp
39848 ac_cpp='$CXXCPP $CPPFLAGS'
39849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39854 /* end confdefs.h. */
39855 #include <math.h>
39857 main ()
39859 atan2f(0, 0);
39861 return 0;
39863 _ACEOF
39864 if ac_fn_cxx_try_compile "$LINENO"; then :
39865 glibcxx_cv_func_atan2f_use=yes
39866 else
39867 glibcxx_cv_func_atan2f_use=no
39869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39870 ac_ext=c
39871 ac_cpp='$CPP $CPPFLAGS'
39872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
39881 $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
39883 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
39884 for ac_func in atan2f
39885 do :
39886 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
39887 if test "x$ac_cv_func_atan2f" = xyes; then :
39888 cat >>confdefs.h <<_ACEOF
39889 #define HAVE_ATAN2F 1
39890 _ACEOF
39893 done
39899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
39900 $as_echo_n "checking for fabsf declaration... " >&6; }
39901 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
39902 if ${glibcxx_cv_func_fabsf_use+:} false; then :
39903 $as_echo_n "(cached) " >&6
39904 else
39907 ac_ext=cpp
39908 ac_cpp='$CXXCPP $CPPFLAGS'
39909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39914 /* end confdefs.h. */
39915 #include <math.h>
39916 #ifdef HAVE_IEEEFP_H
39917 #include <ieeefp.h>
39918 #endif
39921 main ()
39923 fabsf(0);
39925 return 0;
39927 _ACEOF
39928 if ac_fn_cxx_try_compile "$LINENO"; then :
39929 glibcxx_cv_func_fabsf_use=yes
39930 else
39931 glibcxx_cv_func_fabsf_use=no
39933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39934 ac_ext=c
39935 ac_cpp='$CPP $CPPFLAGS'
39936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
39945 $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
39947 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
39948 for ac_func in fabsf
39949 do :
39950 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
39951 if test "x$ac_cv_func_fabsf" = xyes; then :
39952 cat >>confdefs.h <<_ACEOF
39953 #define HAVE_FABSF 1
39954 _ACEOF
39957 done
39963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
39964 $as_echo_n "checking for fmodf declaration... " >&6; }
39965 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
39966 if ${glibcxx_cv_func_fmodf_use+:} false; then :
39967 $as_echo_n "(cached) " >&6
39968 else
39971 ac_ext=cpp
39972 ac_cpp='$CXXCPP $CPPFLAGS'
39973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39978 /* end confdefs.h. */
39979 #include <math.h>
39981 main ()
39983 fmodf(0, 0);
39985 return 0;
39987 _ACEOF
39988 if ac_fn_cxx_try_compile "$LINENO"; then :
39989 glibcxx_cv_func_fmodf_use=yes
39990 else
39991 glibcxx_cv_func_fmodf_use=no
39993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39994 ac_ext=c
39995 ac_cpp='$CPP $CPPFLAGS'
39996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
40005 $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
40007 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
40008 for ac_func in fmodf
40009 do :
40010 ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
40011 if test "x$ac_cv_func_fmodf" = xyes; then :
40012 cat >>confdefs.h <<_ACEOF
40013 #define HAVE_FMODF 1
40014 _ACEOF
40017 done
40023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
40024 $as_echo_n "checking for frexpf declaration... " >&6; }
40025 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
40026 if ${glibcxx_cv_func_frexpf_use+:} false; then :
40027 $as_echo_n "(cached) " >&6
40028 else
40031 ac_ext=cpp
40032 ac_cpp='$CXXCPP $CPPFLAGS'
40033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40038 /* end confdefs.h. */
40039 #include <math.h>
40041 main ()
40043 frexpf(0, 0);
40045 return 0;
40047 _ACEOF
40048 if ac_fn_cxx_try_compile "$LINENO"; then :
40049 glibcxx_cv_func_frexpf_use=yes
40050 else
40051 glibcxx_cv_func_frexpf_use=no
40053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40054 ac_ext=c
40055 ac_cpp='$CPP $CPPFLAGS'
40056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
40065 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
40067 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
40068 for ac_func in frexpf
40069 do :
40070 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
40071 if test "x$ac_cv_func_frexpf" = xyes; then :
40072 cat >>confdefs.h <<_ACEOF
40073 #define HAVE_FREXPF 1
40074 _ACEOF
40077 done
40083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
40084 $as_echo_n "checking for hypotf declaration... " >&6; }
40085 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
40086 if ${glibcxx_cv_func_hypotf_use+:} false; then :
40087 $as_echo_n "(cached) " >&6
40088 else
40091 ac_ext=cpp
40092 ac_cpp='$CXXCPP $CPPFLAGS'
40093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40098 /* end confdefs.h. */
40099 #include <math.h>
40101 main ()
40103 hypotf(0, 0);
40105 return 0;
40107 _ACEOF
40108 if ac_fn_cxx_try_compile "$LINENO"; then :
40109 glibcxx_cv_func_hypotf_use=yes
40110 else
40111 glibcxx_cv_func_hypotf_use=no
40113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40114 ac_ext=c
40115 ac_cpp='$CPP $CPPFLAGS'
40116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
40125 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
40127 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
40128 for ac_func in hypotf
40129 do :
40130 ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
40131 if test "x$ac_cv_func_hypotf" = xyes; then :
40132 cat >>confdefs.h <<_ACEOF
40133 #define HAVE_HYPOTF 1
40134 _ACEOF
40137 done
40143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
40144 $as_echo_n "checking for ldexpf declaration... " >&6; }
40145 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
40146 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
40147 $as_echo_n "(cached) " >&6
40148 else
40151 ac_ext=cpp
40152 ac_cpp='$CXXCPP $CPPFLAGS'
40153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40158 /* end confdefs.h. */
40159 #include <math.h>
40161 main ()
40163 ldexpf(0, 0);
40165 return 0;
40167 _ACEOF
40168 if ac_fn_cxx_try_compile "$LINENO"; then :
40169 glibcxx_cv_func_ldexpf_use=yes
40170 else
40171 glibcxx_cv_func_ldexpf_use=no
40173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40174 ac_ext=c
40175 ac_cpp='$CPP $CPPFLAGS'
40176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
40185 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
40187 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
40188 for ac_func in ldexpf
40189 do :
40190 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
40191 if test "x$ac_cv_func_ldexpf" = xyes; then :
40192 cat >>confdefs.h <<_ACEOF
40193 #define HAVE_LDEXPF 1
40194 _ACEOF
40197 done
40203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
40204 $as_echo_n "checking for logf declaration... " >&6; }
40205 if test x${glibcxx_cv_func_logf_use+set} != xset; then
40206 if ${glibcxx_cv_func_logf_use+:} false; then :
40207 $as_echo_n "(cached) " >&6
40208 else
40211 ac_ext=cpp
40212 ac_cpp='$CXXCPP $CPPFLAGS'
40213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40218 /* end confdefs.h. */
40219 #include <math.h>
40220 #ifdef HAVE_IEEEFP_H
40221 #include <ieeefp.h>
40222 #endif
40225 main ()
40227 logf(0);
40229 return 0;
40231 _ACEOF
40232 if ac_fn_cxx_try_compile "$LINENO"; then :
40233 glibcxx_cv_func_logf_use=yes
40234 else
40235 glibcxx_cv_func_logf_use=no
40237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40238 ac_ext=c
40239 ac_cpp='$CPP $CPPFLAGS'
40240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
40249 $as_echo "$glibcxx_cv_func_logf_use" >&6; }
40251 if test x$glibcxx_cv_func_logf_use = x"yes"; then
40252 for ac_func in logf
40253 do :
40254 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
40255 if test "x$ac_cv_func_logf" = xyes; then :
40256 cat >>confdefs.h <<_ACEOF
40257 #define HAVE_LOGF 1
40258 _ACEOF
40261 done
40267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
40268 $as_echo_n "checking for log10f declaration... " >&6; }
40269 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
40270 if ${glibcxx_cv_func_log10f_use+:} false; then :
40271 $as_echo_n "(cached) " >&6
40272 else
40275 ac_ext=cpp
40276 ac_cpp='$CXXCPP $CPPFLAGS'
40277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40282 /* end confdefs.h. */
40283 #include <math.h>
40284 #ifdef HAVE_IEEEFP_H
40285 #include <ieeefp.h>
40286 #endif
40289 main ()
40291 log10f(0);
40293 return 0;
40295 _ACEOF
40296 if ac_fn_cxx_try_compile "$LINENO"; then :
40297 glibcxx_cv_func_log10f_use=yes
40298 else
40299 glibcxx_cv_func_log10f_use=no
40301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40302 ac_ext=c
40303 ac_cpp='$CPP $CPPFLAGS'
40304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
40313 $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
40315 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
40316 for ac_func in log10f
40317 do :
40318 ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
40319 if test "x$ac_cv_func_log10f" = xyes; then :
40320 cat >>confdefs.h <<_ACEOF
40321 #define HAVE_LOG10F 1
40322 _ACEOF
40325 done
40331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
40332 $as_echo_n "checking for modff declaration... " >&6; }
40333 if test x${glibcxx_cv_func_modff_use+set} != xset; then
40334 if ${glibcxx_cv_func_modff_use+:} false; then :
40335 $as_echo_n "(cached) " >&6
40336 else
40339 ac_ext=cpp
40340 ac_cpp='$CXXCPP $CPPFLAGS'
40341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40346 /* end confdefs.h. */
40347 #include <math.h>
40349 main ()
40351 modff(0, 0);
40353 return 0;
40355 _ACEOF
40356 if ac_fn_cxx_try_compile "$LINENO"; then :
40357 glibcxx_cv_func_modff_use=yes
40358 else
40359 glibcxx_cv_func_modff_use=no
40361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40362 ac_ext=c
40363 ac_cpp='$CPP $CPPFLAGS'
40364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
40373 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
40375 if test x$glibcxx_cv_func_modff_use = x"yes"; then
40376 for ac_func in modff
40377 do :
40378 ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
40379 if test "x$ac_cv_func_modff" = xyes; then :
40380 cat >>confdefs.h <<_ACEOF
40381 #define HAVE_MODFF 1
40382 _ACEOF
40385 done
40391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
40392 $as_echo_n "checking for modf declaration... " >&6; }
40393 if test x${glibcxx_cv_func_modf_use+set} != xset; then
40394 if ${glibcxx_cv_func_modf_use+:} false; then :
40395 $as_echo_n "(cached) " >&6
40396 else
40399 ac_ext=cpp
40400 ac_cpp='$CXXCPP $CPPFLAGS'
40401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40406 /* end confdefs.h. */
40407 #include <math.h>
40409 main ()
40411 modf(0, 0);
40413 return 0;
40415 _ACEOF
40416 if ac_fn_cxx_try_compile "$LINENO"; then :
40417 glibcxx_cv_func_modf_use=yes
40418 else
40419 glibcxx_cv_func_modf_use=no
40421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40422 ac_ext=c
40423 ac_cpp='$CPP $CPPFLAGS'
40424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
40433 $as_echo "$glibcxx_cv_func_modf_use" >&6; }
40435 if test x$glibcxx_cv_func_modf_use = x"yes"; then
40436 for ac_func in modf
40437 do :
40438 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
40439 if test "x$ac_cv_func_modf" = xyes; then :
40440 cat >>confdefs.h <<_ACEOF
40441 #define HAVE_MODF 1
40442 _ACEOF
40445 done
40451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
40452 $as_echo_n "checking for powf declaration... " >&6; }
40453 if test x${glibcxx_cv_func_powf_use+set} != xset; then
40454 if ${glibcxx_cv_func_powf_use+:} false; then :
40455 $as_echo_n "(cached) " >&6
40456 else
40459 ac_ext=cpp
40460 ac_cpp='$CXXCPP $CPPFLAGS'
40461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40466 /* end confdefs.h. */
40467 #include <math.h>
40469 main ()
40471 powf(0, 0);
40473 return 0;
40475 _ACEOF
40476 if ac_fn_cxx_try_compile "$LINENO"; then :
40477 glibcxx_cv_func_powf_use=yes
40478 else
40479 glibcxx_cv_func_powf_use=no
40481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40482 ac_ext=c
40483 ac_cpp='$CPP $CPPFLAGS'
40484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
40493 $as_echo "$glibcxx_cv_func_powf_use" >&6; }
40495 if test x$glibcxx_cv_func_powf_use = x"yes"; then
40496 for ac_func in powf
40497 do :
40498 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
40499 if test "x$ac_cv_func_powf" = xyes; then :
40500 cat >>confdefs.h <<_ACEOF
40501 #define HAVE_POWF 1
40502 _ACEOF
40505 done
40511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
40512 $as_echo_n "checking for sqrtf declaration... " >&6; }
40513 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
40514 if ${glibcxx_cv_func_sqrtf_use+:} false; then :
40515 $as_echo_n "(cached) " >&6
40516 else
40519 ac_ext=cpp
40520 ac_cpp='$CXXCPP $CPPFLAGS'
40521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40526 /* end confdefs.h. */
40527 #include <math.h>
40528 #ifdef HAVE_IEEEFP_H
40529 #include <ieeefp.h>
40530 #endif
40533 main ()
40535 sqrtf(0);
40537 return 0;
40539 _ACEOF
40540 if ac_fn_cxx_try_compile "$LINENO"; then :
40541 glibcxx_cv_func_sqrtf_use=yes
40542 else
40543 glibcxx_cv_func_sqrtf_use=no
40545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40546 ac_ext=c
40547 ac_cpp='$CPP $CPPFLAGS'
40548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
40557 $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
40559 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
40560 for ac_func in sqrtf
40561 do :
40562 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
40563 if test "x$ac_cv_func_sqrtf" = xyes; then :
40564 cat >>confdefs.h <<_ACEOF
40565 #define HAVE_SQRTF 1
40566 _ACEOF
40569 done
40575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
40576 $as_echo_n "checking for sincosf declaration... " >&6; }
40577 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
40578 if ${glibcxx_cv_func_sincosf_use+:} false; then :
40579 $as_echo_n "(cached) " >&6
40580 else
40583 ac_ext=cpp
40584 ac_cpp='$CXXCPP $CPPFLAGS'
40585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40590 /* end confdefs.h. */
40591 #include <math.h>
40593 main ()
40595 sincosf(0, 0, 0);
40597 return 0;
40599 _ACEOF
40600 if ac_fn_cxx_try_compile "$LINENO"; then :
40601 glibcxx_cv_func_sincosf_use=yes
40602 else
40603 glibcxx_cv_func_sincosf_use=no
40605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40606 ac_ext=c
40607 ac_cpp='$CPP $CPPFLAGS'
40608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
40617 $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
40619 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
40620 for ac_func in sincosf
40621 do :
40622 ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
40623 if test "x$ac_cv_func_sincosf" = xyes; then :
40624 cat >>confdefs.h <<_ACEOF
40625 #define HAVE_SINCOSF 1
40626 _ACEOF
40629 done
40635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
40636 $as_echo_n "checking for finitef declaration... " >&6; }
40637 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
40638 if ${glibcxx_cv_func_finitef_use+:} false; then :
40639 $as_echo_n "(cached) " >&6
40640 else
40643 ac_ext=cpp
40644 ac_cpp='$CXXCPP $CPPFLAGS'
40645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40650 /* end confdefs.h. */
40651 #include <math.h>
40652 #ifdef HAVE_IEEEFP_H
40653 #include <ieeefp.h>
40654 #endif
40657 main ()
40659 finitef(0);
40661 return 0;
40663 _ACEOF
40664 if ac_fn_cxx_try_compile "$LINENO"; then :
40665 glibcxx_cv_func_finitef_use=yes
40666 else
40667 glibcxx_cv_func_finitef_use=no
40669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40670 ac_ext=c
40671 ac_cpp='$CPP $CPPFLAGS'
40672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
40681 $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
40683 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
40684 for ac_func in finitef
40685 do :
40686 ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
40687 if test "x$ac_cv_func_finitef" = xyes; then :
40688 cat >>confdefs.h <<_ACEOF
40689 #define HAVE_FINITEF 1
40690 _ACEOF
40693 done
40699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
40700 $as_echo_n "checking for long double trig functions... " >&6; }
40701 if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
40702 $as_echo_n "(cached) " >&6
40703 else
40706 ac_ext=cpp
40707 ac_cpp='$CXXCPP $CPPFLAGS'
40708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40713 /* end confdefs.h. */
40714 #include <math.h>
40716 main ()
40718 acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
40720 return 0;
40722 _ACEOF
40723 if ac_fn_cxx_try_compile "$LINENO"; then :
40724 glibcxx_cv_func_long_double_trig_use=yes
40725 else
40726 glibcxx_cv_func_long_double_trig_use=no
40728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40729 ac_ext=c
40730 ac_cpp='$CPP $CPPFLAGS'
40731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
40738 $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
40739 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
40740 for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
40741 do :
40742 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40743 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
40744 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
40745 cat >>confdefs.h <<_ACEOF
40746 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40747 _ACEOF
40750 done
40756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
40757 $as_echo_n "checking for long double round functions... " >&6; }
40758 if ${glibcxx_cv_func_long_double_round_use+:} false; then :
40759 $as_echo_n "(cached) " >&6
40760 else
40763 ac_ext=cpp
40764 ac_cpp='$CXXCPP $CPPFLAGS'
40765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40770 /* end confdefs.h. */
40771 #include <math.h>
40773 main ()
40775 ceill (0); floorl (0);
40777 return 0;
40779 _ACEOF
40780 if ac_fn_cxx_try_compile "$LINENO"; then :
40781 glibcxx_cv_func_long_double_round_use=yes
40782 else
40783 glibcxx_cv_func_long_double_round_use=no
40785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40786 ac_ext=c
40787 ac_cpp='$CPP $CPPFLAGS'
40788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
40795 $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
40796 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
40797 for ac_func in ceill floorl
40798 do :
40799 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40800 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
40801 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
40802 cat >>confdefs.h <<_ACEOF
40803 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40804 _ACEOF
40807 done
40814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
40815 $as_echo_n "checking for isnanl declaration... " >&6; }
40816 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
40817 if ${glibcxx_cv_func_isnanl_use+:} false; then :
40818 $as_echo_n "(cached) " >&6
40819 else
40822 ac_ext=cpp
40823 ac_cpp='$CXXCPP $CPPFLAGS'
40824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40829 /* end confdefs.h. */
40830 #include <math.h>
40831 #ifdef HAVE_IEEEFP_H
40832 #include <ieeefp.h>
40833 #endif
40836 main ()
40838 isnanl(0);
40840 return 0;
40842 _ACEOF
40843 if ac_fn_cxx_try_compile "$LINENO"; then :
40844 glibcxx_cv_func_isnanl_use=yes
40845 else
40846 glibcxx_cv_func_isnanl_use=no
40848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40849 ac_ext=c
40850 ac_cpp='$CPP $CPPFLAGS'
40851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
40860 $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
40862 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
40863 for ac_func in isnanl
40864 do :
40865 ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
40866 if test "x$ac_cv_func_isnanl" = xyes; then :
40867 cat >>confdefs.h <<_ACEOF
40868 #define HAVE_ISNANL 1
40869 _ACEOF
40872 done
40878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
40879 $as_echo_n "checking for isinfl declaration... " >&6; }
40880 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
40881 if ${glibcxx_cv_func_isinfl_use+:} false; then :
40882 $as_echo_n "(cached) " >&6
40883 else
40886 ac_ext=cpp
40887 ac_cpp='$CXXCPP $CPPFLAGS'
40888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40893 /* end confdefs.h. */
40894 #include <math.h>
40895 #ifdef HAVE_IEEEFP_H
40896 #include <ieeefp.h>
40897 #endif
40900 main ()
40902 isinfl(0);
40904 return 0;
40906 _ACEOF
40907 if ac_fn_cxx_try_compile "$LINENO"; then :
40908 glibcxx_cv_func_isinfl_use=yes
40909 else
40910 glibcxx_cv_func_isinfl_use=no
40912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40913 ac_ext=c
40914 ac_cpp='$CPP $CPPFLAGS'
40915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
40924 $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
40926 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
40927 for ac_func in isinfl
40928 do :
40929 ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
40930 if test "x$ac_cv_func_isinfl" = xyes; then :
40931 cat >>confdefs.h <<_ACEOF
40932 #define HAVE_ISINFL 1
40933 _ACEOF
40936 done
40942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
40943 $as_echo_n "checking for atan2l declaration... " >&6; }
40944 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
40945 if ${glibcxx_cv_func_atan2l_use+:} false; then :
40946 $as_echo_n "(cached) " >&6
40947 else
40950 ac_ext=cpp
40951 ac_cpp='$CXXCPP $CPPFLAGS'
40952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40957 /* end confdefs.h. */
40958 #include <math.h>
40960 main ()
40962 atan2l(0, 0);
40964 return 0;
40966 _ACEOF
40967 if ac_fn_cxx_try_compile "$LINENO"; then :
40968 glibcxx_cv_func_atan2l_use=yes
40969 else
40970 glibcxx_cv_func_atan2l_use=no
40972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40973 ac_ext=c
40974 ac_cpp='$CPP $CPPFLAGS'
40975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
40984 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
40986 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
40987 for ac_func in atan2l
40988 do :
40989 ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
40990 if test "x$ac_cv_func_atan2l" = xyes; then :
40991 cat >>confdefs.h <<_ACEOF
40992 #define HAVE_ATAN2L 1
40993 _ACEOF
40996 done
41002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
41003 $as_echo_n "checking for expl declaration... " >&6; }
41004 if test x${glibcxx_cv_func_expl_use+set} != xset; then
41005 if ${glibcxx_cv_func_expl_use+:} false; then :
41006 $as_echo_n "(cached) " >&6
41007 else
41010 ac_ext=cpp
41011 ac_cpp='$CXXCPP $CPPFLAGS'
41012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41017 /* end confdefs.h. */
41018 #include <math.h>
41019 #ifdef HAVE_IEEEFP_H
41020 #include <ieeefp.h>
41021 #endif
41024 main ()
41026 expl(0);
41028 return 0;
41030 _ACEOF
41031 if ac_fn_cxx_try_compile "$LINENO"; then :
41032 glibcxx_cv_func_expl_use=yes
41033 else
41034 glibcxx_cv_func_expl_use=no
41036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41037 ac_ext=c
41038 ac_cpp='$CPP $CPPFLAGS'
41039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
41048 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
41050 if test x$glibcxx_cv_func_expl_use = x"yes"; then
41051 for ac_func in expl
41052 do :
41053 ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
41054 if test "x$ac_cv_func_expl" = xyes; then :
41055 cat >>confdefs.h <<_ACEOF
41056 #define HAVE_EXPL 1
41057 _ACEOF
41060 done
41066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
41067 $as_echo_n "checking for fabsl declaration... " >&6; }
41068 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
41069 if ${glibcxx_cv_func_fabsl_use+:} false; then :
41070 $as_echo_n "(cached) " >&6
41071 else
41074 ac_ext=cpp
41075 ac_cpp='$CXXCPP $CPPFLAGS'
41076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41081 /* end confdefs.h. */
41082 #include <math.h>
41083 #ifdef HAVE_IEEEFP_H
41084 #include <ieeefp.h>
41085 #endif
41088 main ()
41090 fabsl(0);
41092 return 0;
41094 _ACEOF
41095 if ac_fn_cxx_try_compile "$LINENO"; then :
41096 glibcxx_cv_func_fabsl_use=yes
41097 else
41098 glibcxx_cv_func_fabsl_use=no
41100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41101 ac_ext=c
41102 ac_cpp='$CPP $CPPFLAGS'
41103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
41112 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
41114 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
41115 for ac_func in fabsl
41116 do :
41117 ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
41118 if test "x$ac_cv_func_fabsl" = xyes; then :
41119 cat >>confdefs.h <<_ACEOF
41120 #define HAVE_FABSL 1
41121 _ACEOF
41124 done
41130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
41131 $as_echo_n "checking for fmodl declaration... " >&6; }
41132 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
41133 if ${glibcxx_cv_func_fmodl_use+:} false; then :
41134 $as_echo_n "(cached) " >&6
41135 else
41138 ac_ext=cpp
41139 ac_cpp='$CXXCPP $CPPFLAGS'
41140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41145 /* end confdefs.h. */
41146 #include <math.h>
41148 main ()
41150 fmodl(0, 0);
41152 return 0;
41154 _ACEOF
41155 if ac_fn_cxx_try_compile "$LINENO"; then :
41156 glibcxx_cv_func_fmodl_use=yes
41157 else
41158 glibcxx_cv_func_fmodl_use=no
41160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41161 ac_ext=c
41162 ac_cpp='$CPP $CPPFLAGS'
41163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
41172 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
41174 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
41175 for ac_func in fmodl
41176 do :
41177 ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
41178 if test "x$ac_cv_func_fmodl" = xyes; then :
41179 cat >>confdefs.h <<_ACEOF
41180 #define HAVE_FMODL 1
41181 _ACEOF
41184 done
41190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
41191 $as_echo_n "checking for frexpl declaration... " >&6; }
41192 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
41193 if ${glibcxx_cv_func_frexpl_use+:} false; then :
41194 $as_echo_n "(cached) " >&6
41195 else
41198 ac_ext=cpp
41199 ac_cpp='$CXXCPP $CPPFLAGS'
41200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41205 /* end confdefs.h. */
41206 #include <math.h>
41208 main ()
41210 frexpl(0, 0);
41212 return 0;
41214 _ACEOF
41215 if ac_fn_cxx_try_compile "$LINENO"; then :
41216 glibcxx_cv_func_frexpl_use=yes
41217 else
41218 glibcxx_cv_func_frexpl_use=no
41220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41221 ac_ext=c
41222 ac_cpp='$CPP $CPPFLAGS'
41223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
41232 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
41234 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
41235 for ac_func in frexpl
41236 do :
41237 ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
41238 if test "x$ac_cv_func_frexpl" = xyes; then :
41239 cat >>confdefs.h <<_ACEOF
41240 #define HAVE_FREXPL 1
41241 _ACEOF
41244 done
41250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
41251 $as_echo_n "checking for hypotl declaration... " >&6; }
41252 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
41253 if ${glibcxx_cv_func_hypotl_use+:} false; then :
41254 $as_echo_n "(cached) " >&6
41255 else
41258 ac_ext=cpp
41259 ac_cpp='$CXXCPP $CPPFLAGS'
41260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41265 /* end confdefs.h. */
41266 #include <math.h>
41268 main ()
41270 hypotl(0, 0);
41272 return 0;
41274 _ACEOF
41275 if ac_fn_cxx_try_compile "$LINENO"; then :
41276 glibcxx_cv_func_hypotl_use=yes
41277 else
41278 glibcxx_cv_func_hypotl_use=no
41280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41281 ac_ext=c
41282 ac_cpp='$CPP $CPPFLAGS'
41283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
41292 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
41294 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
41295 for ac_func in hypotl
41296 do :
41297 ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
41298 if test "x$ac_cv_func_hypotl" = xyes; then :
41299 cat >>confdefs.h <<_ACEOF
41300 #define HAVE_HYPOTL 1
41301 _ACEOF
41304 done
41310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
41311 $as_echo_n "checking for ldexpl declaration... " >&6; }
41312 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
41313 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
41314 $as_echo_n "(cached) " >&6
41315 else
41318 ac_ext=cpp
41319 ac_cpp='$CXXCPP $CPPFLAGS'
41320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41325 /* end confdefs.h. */
41326 #include <math.h>
41328 main ()
41330 ldexpl(0, 0);
41332 return 0;
41334 _ACEOF
41335 if ac_fn_cxx_try_compile "$LINENO"; then :
41336 glibcxx_cv_func_ldexpl_use=yes
41337 else
41338 glibcxx_cv_func_ldexpl_use=no
41340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41341 ac_ext=c
41342 ac_cpp='$CPP $CPPFLAGS'
41343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
41352 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
41354 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
41355 for ac_func in ldexpl
41356 do :
41357 ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
41358 if test "x$ac_cv_func_ldexpl" = xyes; then :
41359 cat >>confdefs.h <<_ACEOF
41360 #define HAVE_LDEXPL 1
41361 _ACEOF
41364 done
41370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
41371 $as_echo_n "checking for logl declaration... " >&6; }
41372 if test x${glibcxx_cv_func_logl_use+set} != xset; then
41373 if ${glibcxx_cv_func_logl_use+:} false; then :
41374 $as_echo_n "(cached) " >&6
41375 else
41378 ac_ext=cpp
41379 ac_cpp='$CXXCPP $CPPFLAGS'
41380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41385 /* end confdefs.h. */
41386 #include <math.h>
41387 #ifdef HAVE_IEEEFP_H
41388 #include <ieeefp.h>
41389 #endif
41392 main ()
41394 logl(0);
41396 return 0;
41398 _ACEOF
41399 if ac_fn_cxx_try_compile "$LINENO"; then :
41400 glibcxx_cv_func_logl_use=yes
41401 else
41402 glibcxx_cv_func_logl_use=no
41404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41405 ac_ext=c
41406 ac_cpp='$CPP $CPPFLAGS'
41407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
41416 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
41418 if test x$glibcxx_cv_func_logl_use = x"yes"; then
41419 for ac_func in logl
41420 do :
41421 ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
41422 if test "x$ac_cv_func_logl" = xyes; then :
41423 cat >>confdefs.h <<_ACEOF
41424 #define HAVE_LOGL 1
41425 _ACEOF
41428 done
41434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
41435 $as_echo_n "checking for log10l declaration... " >&6; }
41436 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
41437 if ${glibcxx_cv_func_log10l_use+:} false; then :
41438 $as_echo_n "(cached) " >&6
41439 else
41442 ac_ext=cpp
41443 ac_cpp='$CXXCPP $CPPFLAGS'
41444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41449 /* end confdefs.h. */
41450 #include <math.h>
41451 #ifdef HAVE_IEEEFP_H
41452 #include <ieeefp.h>
41453 #endif
41456 main ()
41458 log10l(0);
41460 return 0;
41462 _ACEOF
41463 if ac_fn_cxx_try_compile "$LINENO"; then :
41464 glibcxx_cv_func_log10l_use=yes
41465 else
41466 glibcxx_cv_func_log10l_use=no
41468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41469 ac_ext=c
41470 ac_cpp='$CPP $CPPFLAGS'
41471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
41480 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
41482 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
41483 for ac_func in log10l
41484 do :
41485 ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
41486 if test "x$ac_cv_func_log10l" = xyes; then :
41487 cat >>confdefs.h <<_ACEOF
41488 #define HAVE_LOG10L 1
41489 _ACEOF
41492 done
41498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
41499 $as_echo_n "checking for modfl declaration... " >&6; }
41500 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
41501 if ${glibcxx_cv_func_modfl_use+:} false; then :
41502 $as_echo_n "(cached) " >&6
41503 else
41506 ac_ext=cpp
41507 ac_cpp='$CXXCPP $CPPFLAGS'
41508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41513 /* end confdefs.h. */
41514 #include <math.h>
41516 main ()
41518 modfl(0, 0);
41520 return 0;
41522 _ACEOF
41523 if ac_fn_cxx_try_compile "$LINENO"; then :
41524 glibcxx_cv_func_modfl_use=yes
41525 else
41526 glibcxx_cv_func_modfl_use=no
41528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41529 ac_ext=c
41530 ac_cpp='$CPP $CPPFLAGS'
41531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
41540 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
41542 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
41543 for ac_func in modfl
41544 do :
41545 ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
41546 if test "x$ac_cv_func_modfl" = xyes; then :
41547 cat >>confdefs.h <<_ACEOF
41548 #define HAVE_MODFL 1
41549 _ACEOF
41552 done
41558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
41559 $as_echo_n "checking for powl declaration... " >&6; }
41560 if test x${glibcxx_cv_func_powl_use+set} != xset; then
41561 if ${glibcxx_cv_func_powl_use+:} false; then :
41562 $as_echo_n "(cached) " >&6
41563 else
41566 ac_ext=cpp
41567 ac_cpp='$CXXCPP $CPPFLAGS'
41568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41573 /* end confdefs.h. */
41574 #include <math.h>
41576 main ()
41578 powl(0, 0);
41580 return 0;
41582 _ACEOF
41583 if ac_fn_cxx_try_compile "$LINENO"; then :
41584 glibcxx_cv_func_powl_use=yes
41585 else
41586 glibcxx_cv_func_powl_use=no
41588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41589 ac_ext=c
41590 ac_cpp='$CPP $CPPFLAGS'
41591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
41600 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
41602 if test x$glibcxx_cv_func_powl_use = x"yes"; then
41603 for ac_func in powl
41604 do :
41605 ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
41606 if test "x$ac_cv_func_powl" = xyes; then :
41607 cat >>confdefs.h <<_ACEOF
41608 #define HAVE_POWL 1
41609 _ACEOF
41612 done
41618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
41619 $as_echo_n "checking for sqrtl declaration... " >&6; }
41620 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
41621 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
41622 $as_echo_n "(cached) " >&6
41623 else
41626 ac_ext=cpp
41627 ac_cpp='$CXXCPP $CPPFLAGS'
41628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41633 /* end confdefs.h. */
41634 #include <math.h>
41635 #ifdef HAVE_IEEEFP_H
41636 #include <ieeefp.h>
41637 #endif
41640 main ()
41642 sqrtl(0);
41644 return 0;
41646 _ACEOF
41647 if ac_fn_cxx_try_compile "$LINENO"; then :
41648 glibcxx_cv_func_sqrtl_use=yes
41649 else
41650 glibcxx_cv_func_sqrtl_use=no
41652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41653 ac_ext=c
41654 ac_cpp='$CPP $CPPFLAGS'
41655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
41664 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
41666 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
41667 for ac_func in sqrtl
41668 do :
41669 ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
41670 if test "x$ac_cv_func_sqrtl" = xyes; then :
41671 cat >>confdefs.h <<_ACEOF
41672 #define HAVE_SQRTL 1
41673 _ACEOF
41676 done
41682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
41683 $as_echo_n "checking for sincosl declaration... " >&6; }
41684 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
41685 if ${glibcxx_cv_func_sincosl_use+:} false; then :
41686 $as_echo_n "(cached) " >&6
41687 else
41690 ac_ext=cpp
41691 ac_cpp='$CXXCPP $CPPFLAGS'
41692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41697 /* end confdefs.h. */
41698 #include <math.h>
41700 main ()
41702 sincosl(0, 0, 0);
41704 return 0;
41706 _ACEOF
41707 if ac_fn_cxx_try_compile "$LINENO"; then :
41708 glibcxx_cv_func_sincosl_use=yes
41709 else
41710 glibcxx_cv_func_sincosl_use=no
41712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41713 ac_ext=c
41714 ac_cpp='$CPP $CPPFLAGS'
41715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
41724 $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
41726 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
41727 for ac_func in sincosl
41728 do :
41729 ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
41730 if test "x$ac_cv_func_sincosl" = xyes; then :
41731 cat >>confdefs.h <<_ACEOF
41732 #define HAVE_SINCOSL 1
41733 _ACEOF
41736 done
41742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
41743 $as_echo_n "checking for finitel declaration... " >&6; }
41744 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
41745 if ${glibcxx_cv_func_finitel_use+:} false; then :
41746 $as_echo_n "(cached) " >&6
41747 else
41750 ac_ext=cpp
41751 ac_cpp='$CXXCPP $CPPFLAGS'
41752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41757 /* end confdefs.h. */
41758 #include <math.h>
41759 #ifdef HAVE_IEEEFP_H
41760 #include <ieeefp.h>
41761 #endif
41764 main ()
41766 finitel(0);
41768 return 0;
41770 _ACEOF
41771 if ac_fn_cxx_try_compile "$LINENO"; then :
41772 glibcxx_cv_func_finitel_use=yes
41773 else
41774 glibcxx_cv_func_finitel_use=no
41776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41777 ac_ext=c
41778 ac_cpp='$CPP $CPPFLAGS'
41779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
41788 $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
41790 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
41791 for ac_func in finitel
41792 do :
41793 ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
41794 if test "x$ac_cv_func_finitel" = xyes; then :
41795 cat >>confdefs.h <<_ACEOF
41796 #define HAVE_FINITEL 1
41797 _ACEOF
41800 done
41805 LIBS="$ac_save_LIBS"
41806 CXXFLAGS="$ac_save_CXXFLAGS"
41809 ac_test_CXXFLAGS="${CXXFLAGS+set}"
41810 ac_save_CXXFLAGS="$CXXFLAGS"
41811 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
41814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
41815 $as_echo_n "checking for at_quick_exit declaration... " >&6; }
41816 if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
41817 if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
41818 $as_echo_n "(cached) " >&6
41819 else
41822 ac_ext=cpp
41823 ac_cpp='$CXXCPP $CPPFLAGS'
41824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41829 /* end confdefs.h. */
41830 #include <stdlib.h>
41832 main ()
41834 at_quick_exit(0);
41836 return 0;
41838 _ACEOF
41839 if ac_fn_cxx_try_compile "$LINENO"; then :
41840 glibcxx_cv_func_at_quick_exit_use=yes
41841 else
41842 glibcxx_cv_func_at_quick_exit_use=no
41844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41845 ac_ext=c
41846 ac_cpp='$CPP $CPPFLAGS'
41847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
41856 $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
41857 if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
41858 for ac_func in at_quick_exit
41859 do :
41860 ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
41861 if test "x$ac_cv_func_at_quick_exit" = xyes; then :
41862 cat >>confdefs.h <<_ACEOF
41863 #define HAVE_AT_QUICK_EXIT 1
41864 _ACEOF
41867 done
41872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
41873 $as_echo_n "checking for quick_exit declaration... " >&6; }
41874 if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
41875 if ${glibcxx_cv_func_quick_exit_use+:} false; then :
41876 $as_echo_n "(cached) " >&6
41877 else
41880 ac_ext=cpp
41881 ac_cpp='$CXXCPP $CPPFLAGS'
41882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41887 /* end confdefs.h. */
41888 #include <stdlib.h>
41890 main ()
41892 quick_exit(0);
41894 return 0;
41896 _ACEOF
41897 if ac_fn_cxx_try_compile "$LINENO"; then :
41898 glibcxx_cv_func_quick_exit_use=yes
41899 else
41900 glibcxx_cv_func_quick_exit_use=no
41902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41903 ac_ext=c
41904 ac_cpp='$CPP $CPPFLAGS'
41905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
41914 $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
41915 if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
41916 for ac_func in quick_exit
41917 do :
41918 ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
41919 if test "x$ac_cv_func_quick_exit" = xyes; then :
41920 cat >>confdefs.h <<_ACEOF
41921 #define HAVE_QUICK_EXIT 1
41922 _ACEOF
41925 done
41930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
41931 $as_echo_n "checking for strtold declaration... " >&6; }
41932 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
41933 if ${glibcxx_cv_func_strtold_use+:} false; then :
41934 $as_echo_n "(cached) " >&6
41935 else
41938 ac_ext=cpp
41939 ac_cpp='$CXXCPP $CPPFLAGS'
41940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41945 /* end confdefs.h. */
41946 #include <stdlib.h>
41948 main ()
41950 strtold(0, 0);
41952 return 0;
41954 _ACEOF
41955 if ac_fn_cxx_try_compile "$LINENO"; then :
41956 glibcxx_cv_func_strtold_use=yes
41957 else
41958 glibcxx_cv_func_strtold_use=no
41960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41961 ac_ext=c
41962 ac_cpp='$CPP $CPPFLAGS'
41963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
41972 $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
41973 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
41974 for ac_func in strtold
41975 do :
41976 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
41977 if test "x$ac_cv_func_strtold" = xyes; then :
41978 cat >>confdefs.h <<_ACEOF
41979 #define HAVE_STRTOLD 1
41980 _ACEOF
41983 done
41988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
41989 $as_echo_n "checking for strtof declaration... " >&6; }
41990 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
41991 if ${glibcxx_cv_func_strtof_use+:} false; then :
41992 $as_echo_n "(cached) " >&6
41993 else
41996 ac_ext=cpp
41997 ac_cpp='$CXXCPP $CPPFLAGS'
41998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42003 /* end confdefs.h. */
42004 #include <stdlib.h>
42006 main ()
42008 strtof(0, 0);
42010 return 0;
42012 _ACEOF
42013 if ac_fn_cxx_try_compile "$LINENO"; then :
42014 glibcxx_cv_func_strtof_use=yes
42015 else
42016 glibcxx_cv_func_strtof_use=no
42018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42019 ac_ext=c
42020 ac_cpp='$CPP $CPPFLAGS'
42021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
42030 $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
42031 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
42032 for ac_func in strtof
42033 do :
42034 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
42035 if test "x$ac_cv_func_strtof" = xyes; then :
42036 cat >>confdefs.h <<_ACEOF
42037 #define HAVE_STRTOF 1
42038 _ACEOF
42041 done
42046 CXXFLAGS="$ac_save_CXXFLAGS"
42048 $as_echo "#define _GLIBCXX_USE_DEV_RANDOM 1" >>confdefs.h
42050 $as_echo "#define _GLIBCXX_USE_RANDOM_TR1 1" >>confdefs.h
42054 # Check whether --enable-tls was given.
42055 if test "${enable_tls+set}" = set; then :
42056 enableval=$enable_tls;
42057 case "$enableval" in
42058 yes|no) ;;
42059 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
42060 esac
42062 else
42063 enable_tls=yes
42067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
42068 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
42069 if ${gcc_cv_have_tls+:} false; then :
42070 $as_echo_n "(cached) " >&6
42071 else
42073 if test "$cross_compiling" = yes; then :
42074 if test x$gcc_no_link = xyes; then
42075 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
42077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42078 /* end confdefs.h. */
42079 __thread int a; int b; int main() { return a = b; }
42080 _ACEOF
42081 if ac_fn_c_try_link "$LINENO"; then :
42082 chktls_save_LDFLAGS="$LDFLAGS"
42083 case $host in
42084 *-*-linux* | -*-uclinuxfdpic*)
42085 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
42087 esac
42088 chktls_save_CFLAGS="$CFLAGS"
42089 CFLAGS="-fPIC $CFLAGS"
42090 if test x$gcc_no_link = xyes; then
42091 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
42093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42094 /* end confdefs.h. */
42095 int f() { return 0; }
42096 _ACEOF
42097 if ac_fn_c_try_link "$LINENO"; then :
42098 if test x$gcc_no_link = xyes; then
42099 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
42101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42102 /* end confdefs.h. */
42103 __thread int a; int b; int f() { return a = b; }
42104 _ACEOF
42105 if ac_fn_c_try_link "$LINENO"; then :
42106 gcc_cv_have_tls=yes
42107 else
42108 gcc_cv_have_tls=no
42110 rm -f core conftest.err conftest.$ac_objext \
42111 conftest$ac_exeext conftest.$ac_ext
42112 else
42113 gcc_cv_have_tls=yes
42115 rm -f core conftest.err conftest.$ac_objext \
42116 conftest$ac_exeext conftest.$ac_ext
42117 CFLAGS="$chktls_save_CFLAGS"
42118 LDFLAGS="$chktls_save_LDFLAGS"
42119 else
42120 gcc_cv_have_tls=no
42122 rm -f core conftest.err conftest.$ac_objext \
42123 conftest$ac_exeext conftest.$ac_ext
42126 else
42127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42128 /* end confdefs.h. */
42129 __thread int a; int b; int main() { return a = b; }
42130 _ACEOF
42131 if ac_fn_c_try_run "$LINENO"; then :
42132 chktls_save_LDFLAGS="$LDFLAGS"
42133 LDFLAGS="-static $LDFLAGS"
42134 if test x$gcc_no_link = xyes; then
42135 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
42137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42138 /* end confdefs.h. */
42139 int main() { return 0; }
42140 _ACEOF
42141 if ac_fn_c_try_link "$LINENO"; then :
42142 if test "$cross_compiling" = yes; then :
42143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
42145 as_fn_error $? "cannot run test program while cross compiling
42146 See \`config.log' for more details" "$LINENO" 5; }
42147 else
42148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42149 /* end confdefs.h. */
42150 __thread int a; int b; int main() { return a = b; }
42151 _ACEOF
42152 if ac_fn_c_try_run "$LINENO"; then :
42153 gcc_cv_have_tls=yes
42154 else
42155 gcc_cv_have_tls=no
42157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42158 conftest.$ac_objext conftest.beam conftest.$ac_ext
42161 else
42162 gcc_cv_have_tls=yes
42164 rm -f core conftest.err conftest.$ac_objext \
42165 conftest$ac_exeext conftest.$ac_ext
42166 LDFLAGS="$chktls_save_LDFLAGS"
42167 if test $gcc_cv_have_tls = yes; then
42168 chktls_save_CFLAGS="$CFLAGS"
42169 thread_CFLAGS=failed
42170 for flag in '' '-pthread' '-lpthread'; do
42171 CFLAGS="$flag $chktls_save_CFLAGS"
42172 if test x$gcc_no_link = xyes; then
42173 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
42175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42176 /* end confdefs.h. */
42177 #include <pthread.h>
42178 void *g(void *d) { return NULL; }
42180 main ()
42182 pthread_t t; pthread_create(&t,NULL,g,NULL);
42184 return 0;
42186 _ACEOF
42187 if ac_fn_c_try_link "$LINENO"; then :
42188 thread_CFLAGS="$flag"
42190 rm -f core conftest.err conftest.$ac_objext \
42191 conftest$ac_exeext conftest.$ac_ext
42192 if test "X$thread_CFLAGS" != Xfailed; then
42193 break
42195 done
42196 CFLAGS="$chktls_save_CFLAGS"
42197 if test "X$thread_CFLAGS" != Xfailed; then
42198 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
42199 if test "$cross_compiling" = yes; then :
42200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
42202 as_fn_error $? "cannot run test program while cross compiling
42203 See \`config.log' for more details" "$LINENO" 5; }
42204 else
42205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42206 /* end confdefs.h. */
42207 #include <pthread.h>
42208 __thread int a;
42209 static int *volatile a_in_other_thread;
42210 static void *
42211 thread_func (void *arg)
42213 a_in_other_thread = &a;
42214 return (void *)0;
42217 main ()
42219 pthread_t thread;
42220 void *thread_retval;
42221 int *volatile a_in_main_thread;
42222 a_in_main_thread = &a;
42223 if (pthread_create (&thread, (pthread_attr_t *)0,
42224 thread_func, (void *)0))
42225 return 0;
42226 if (pthread_join (thread, &thread_retval))
42227 return 0;
42228 return (a_in_other_thread == a_in_main_thread);
42230 return 0;
42232 _ACEOF
42233 if ac_fn_c_try_run "$LINENO"; then :
42234 gcc_cv_have_tls=yes
42235 else
42236 gcc_cv_have_tls=no
42238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42239 conftest.$ac_objext conftest.beam conftest.$ac_ext
42242 CFLAGS="$chktls_save_CFLAGS"
42245 else
42246 gcc_cv_have_tls=no
42248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42249 conftest.$ac_objext conftest.beam conftest.$ac_ext
42253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
42254 $as_echo "$gcc_cv_have_tls" >&6; }
42255 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
42257 $as_echo "#define HAVE_TLS 1" >>confdefs.h
42260 for ac_func in __cxa_thread_atexit_impl
42261 do :
42262 ac_fn_c_check_func "$LINENO" "__cxa_thread_atexit_impl" "ac_cv_func___cxa_thread_atexit_impl"
42263 if test "x$ac_cv_func___cxa_thread_atexit_impl" = xyes; then :
42264 cat >>confdefs.h <<_ACEOF
42265 #define HAVE___CXA_THREAD_ATEXIT_IMPL 1
42266 _ACEOF
42269 done
42271 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
42272 do :
42273 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42274 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
42275 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
42276 cat >>confdefs.h <<_ACEOF
42277 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42278 _ACEOF
42281 done
42283 for ac_func in timespec_get
42284 do :
42285 ac_fn_c_check_func "$LINENO" "timespec_get" "ac_cv_func_timespec_get"
42286 if test "x$ac_cv_func_timespec_get" = xyes; then :
42287 cat >>confdefs.h <<_ACEOF
42288 #define HAVE_TIMESPEC_GET 1
42289 _ACEOF
42292 done
42294 for ac_func in sockatmark
42295 do :
42296 ac_fn_c_check_func "$LINENO" "sockatmark" "ac_cv_func_sockatmark"
42297 if test "x$ac_cv_func_sockatmark" = xyes; then :
42298 cat >>confdefs.h <<_ACEOF
42299 #define HAVE_SOCKATMARK 1
42300 _ACEOF
42303 done
42305 for ac_func in uselocale
42306 do :
42307 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
42308 if test "x$ac_cv_func_uselocale" = xyes; then :
42309 cat >>confdefs.h <<_ACEOF
42310 #define HAVE_USELOCALE 1
42311 _ACEOF
42314 done
42316 for ac_func in secure_getenv
42317 do :
42318 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
42319 if test "x$ac_cv_func_secure_getenv" = xyes; then :
42320 cat >>confdefs.h <<_ACEOF
42321 #define HAVE_SECURE_GETENV 1
42322 _ACEOF
42325 done
42329 *-mingw32*)
42331 # If we're not using GNU ld, then there's no point in even trying these
42332 # tests. Check for that first. We should have already tested for gld
42333 # by now (in libtool), but require it now just to be safe...
42334 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
42335 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
42339 # The name set by libtool depends on the version of libtool. Shame on us
42340 # for depending on an impl detail, but c'est la vie. Older versions used
42341 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
42342 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
42343 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
42344 # set (hence we're using an older libtool), then set it.
42345 if test x${with_gnu_ld+set} != xset; then
42346 if test x${ac_cv_prog_gnu_ld+set} != xset; then
42347 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
42348 with_gnu_ld=no
42349 else
42350 with_gnu_ld=$ac_cv_prog_gnu_ld
42354 # Start by getting the version number. I think the libtool test already
42355 # does some of this, but throws away the result.
42356 glibcxx_ld_is_gold=no
42357 glibcxx_ld_is_mold=no
42358 if test x"$with_gnu_ld" = x"yes"; then
42359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
42360 $as_echo_n "checking for ld version... " >&6; }
42362 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
42363 glibcxx_ld_is_gold=yes
42364 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
42365 glibcxx_ld_is_mold=yes
42367 ldver=`$LD --version 2>/dev/null |
42368 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
42370 glibcxx_gnu_ld_version=`echo $ldver | \
42371 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
42372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
42373 $as_echo "$glibcxx_gnu_ld_version" >&6; }
42376 # Set --gc-sections.
42377 glibcxx_have_gc_sections=no
42378 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
42379 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
42380 glibcxx_have_gc_sections=yes
42382 else
42383 glibcxx_gcsections_min_ld=21602
42384 if test x"$with_gnu_ld" = x"yes" &&
42385 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
42386 glibcxx_have_gc_sections=yes
42389 if test "$glibcxx_have_gc_sections" = "yes"; then
42390 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
42391 # NB: This flag only works reliably after 2.16.1. Configure tests
42392 # for this are difficult, so hard wire a value that should work.
42394 ac_test_CFLAGS="${CFLAGS+set}"
42395 ac_save_CFLAGS="$CFLAGS"
42396 CFLAGS='-Wl,--gc-sections'
42398 # Check for -Wl,--gc-sections
42399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
42400 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
42401 if test x$gcc_no_link = xyes; then
42402 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
42404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42405 /* end confdefs.h. */
42406 int one(void) { return 1; }
42407 int two(void) { return 2; }
42410 main ()
42412 two();
42414 return 0;
42416 _ACEOF
42417 if ac_fn_c_try_link "$LINENO"; then :
42418 ac_gcsections=yes
42419 else
42420 ac_gcsections=no
42422 rm -f core conftest.err conftest.$ac_objext \
42423 conftest$ac_exeext conftest.$ac_ext
42424 if test "$ac_gcsections" = "yes"; then
42425 rm -f conftest.c
42426 touch conftest.c
42427 if $CC -c conftest.c; then
42428 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
42429 grep "Warning: gc-sections option ignored" > /dev/null; then
42430 ac_gcsections=no
42433 rm -f conftest.c conftest.o conftest
42435 if test "$ac_gcsections" = "yes"; then
42436 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
42438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
42439 $as_echo "$ac_gcsections" >&6; }
42441 if test "$ac_test_CFLAGS" = set; then
42442 CFLAGS="$ac_save_CFLAGS"
42443 else
42444 # this is the suspicious part
42445 CFLAGS=''
42449 # Set -z,relro.
42450 # Note this is only for shared objects.
42451 ac_ld_relro=no
42452 if test x"$with_gnu_ld" = x"yes"; then
42453 # cygwin and mingw uses PE, which has no ELF relro support,
42454 # multi target ld may confuse configure machinery
42455 case "$host" in
42456 *-*-cygwin*)
42458 *-*-mingw*)
42461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
42462 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
42463 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
42464 if test -n "$cxx_z_relo"; then
42465 OPT_LDFLAGS="-Wl,-z,relro"
42466 ac_ld_relro=yes
42468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
42469 $as_echo "$ac_ld_relro" >&6; }
42470 esac
42473 # Set linker optimization flags.
42474 if test x"$with_gnu_ld" = x"yes"; then
42475 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
42482 ac_test_CXXFLAGS="${CXXFLAGS+set}"
42483 ac_save_CXXFLAGS="$CXXFLAGS"
42484 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
42486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
42487 $as_echo_n "checking for sin in -lm... " >&6; }
42488 if ${ac_cv_lib_m_sin+:} false; then :
42489 $as_echo_n "(cached) " >&6
42490 else
42491 ac_check_lib_save_LIBS=$LIBS
42492 LIBS="-lm $LIBS"
42493 if test x$gcc_no_link = xyes; then
42494 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
42496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42497 /* end confdefs.h. */
42499 /* Override any GCC internal prototype to avoid an error.
42500 Use char because int might match the return type of a GCC
42501 builtin and then its argument prototype would still apply. */
42502 #ifdef __cplusplus
42503 extern "C"
42504 #endif
42505 char sin ();
42507 main ()
42509 return sin ();
42511 return 0;
42513 _ACEOF
42514 if ac_fn_c_try_link "$LINENO"; then :
42515 ac_cv_lib_m_sin=yes
42516 else
42517 ac_cv_lib_m_sin=no
42519 rm -f core conftest.err conftest.$ac_objext \
42520 conftest$ac_exeext conftest.$ac_ext
42521 LIBS=$ac_check_lib_save_LIBS
42523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
42524 $as_echo "$ac_cv_lib_m_sin" >&6; }
42525 if test "x$ac_cv_lib_m_sin" = xyes; then :
42526 libm="-lm"
42529 ac_save_LIBS="$LIBS"
42530 LIBS="$LIBS $libm"
42534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
42535 $as_echo_n "checking for isinf declaration... " >&6; }
42536 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
42537 if ${glibcxx_cv_func_isinf_use+:} false; then :
42538 $as_echo_n "(cached) " >&6
42539 else
42542 ac_ext=cpp
42543 ac_cpp='$CXXCPP $CPPFLAGS'
42544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42549 /* end confdefs.h. */
42550 #include <math.h>
42551 #ifdef HAVE_IEEEFP_H
42552 #include <ieeefp.h>
42553 #endif
42556 main ()
42558 isinf(0);
42560 return 0;
42562 _ACEOF
42563 if ac_fn_cxx_try_compile "$LINENO"; then :
42564 glibcxx_cv_func_isinf_use=yes
42565 else
42566 glibcxx_cv_func_isinf_use=no
42568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42569 ac_ext=c
42570 ac_cpp='$CPP $CPPFLAGS'
42571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
42580 $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
42582 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
42583 for ac_func in isinf
42584 do :
42585 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
42586 if test "x$ac_cv_func_isinf" = xyes; then :
42587 cat >>confdefs.h <<_ACEOF
42588 #define HAVE_ISINF 1
42589 _ACEOF
42592 done
42598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
42599 $as_echo_n "checking for isnan declaration... " >&6; }
42600 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
42601 if ${glibcxx_cv_func_isnan_use+:} false; then :
42602 $as_echo_n "(cached) " >&6
42603 else
42606 ac_ext=cpp
42607 ac_cpp='$CXXCPP $CPPFLAGS'
42608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42613 /* end confdefs.h. */
42614 #include <math.h>
42615 #ifdef HAVE_IEEEFP_H
42616 #include <ieeefp.h>
42617 #endif
42620 main ()
42622 isnan(0);
42624 return 0;
42626 _ACEOF
42627 if ac_fn_cxx_try_compile "$LINENO"; then :
42628 glibcxx_cv_func_isnan_use=yes
42629 else
42630 glibcxx_cv_func_isnan_use=no
42632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42633 ac_ext=c
42634 ac_cpp='$CPP $CPPFLAGS'
42635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
42644 $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
42646 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
42647 for ac_func in isnan
42648 do :
42649 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
42650 if test "x$ac_cv_func_isnan" = xyes; then :
42651 cat >>confdefs.h <<_ACEOF
42652 #define HAVE_ISNAN 1
42653 _ACEOF
42656 done
42662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
42663 $as_echo_n "checking for finite declaration... " >&6; }
42664 if test x${glibcxx_cv_func_finite_use+set} != xset; then
42665 if ${glibcxx_cv_func_finite_use+:} false; then :
42666 $as_echo_n "(cached) " >&6
42667 else
42670 ac_ext=cpp
42671 ac_cpp='$CXXCPP $CPPFLAGS'
42672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42677 /* end confdefs.h. */
42678 #include <math.h>
42679 #ifdef HAVE_IEEEFP_H
42680 #include <ieeefp.h>
42681 #endif
42684 main ()
42686 finite(0);
42688 return 0;
42690 _ACEOF
42691 if ac_fn_cxx_try_compile "$LINENO"; then :
42692 glibcxx_cv_func_finite_use=yes
42693 else
42694 glibcxx_cv_func_finite_use=no
42696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42697 ac_ext=c
42698 ac_cpp='$CPP $CPPFLAGS'
42699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
42708 $as_echo "$glibcxx_cv_func_finite_use" >&6; }
42710 if test x$glibcxx_cv_func_finite_use = x"yes"; then
42711 for ac_func in finite
42712 do :
42713 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
42714 if test "x$ac_cv_func_finite" = xyes; then :
42715 cat >>confdefs.h <<_ACEOF
42716 #define HAVE_FINITE 1
42717 _ACEOF
42720 done
42726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
42727 $as_echo_n "checking for sincos declaration... " >&6; }
42728 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
42729 if ${glibcxx_cv_func_sincos_use+:} false; then :
42730 $as_echo_n "(cached) " >&6
42731 else
42734 ac_ext=cpp
42735 ac_cpp='$CXXCPP $CPPFLAGS'
42736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42741 /* end confdefs.h. */
42742 #include <math.h>
42744 main ()
42746 sincos(0, 0, 0);
42748 return 0;
42750 _ACEOF
42751 if ac_fn_cxx_try_compile "$LINENO"; then :
42752 glibcxx_cv_func_sincos_use=yes
42753 else
42754 glibcxx_cv_func_sincos_use=no
42756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42757 ac_ext=c
42758 ac_cpp='$CPP $CPPFLAGS'
42759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
42768 $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
42770 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
42771 for ac_func in sincos
42772 do :
42773 ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
42774 if test "x$ac_cv_func_sincos" = xyes; then :
42775 cat >>confdefs.h <<_ACEOF
42776 #define HAVE_SINCOS 1
42777 _ACEOF
42780 done
42786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
42787 $as_echo_n "checking for fpclass declaration... " >&6; }
42788 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
42789 if ${glibcxx_cv_func_fpclass_use+:} false; then :
42790 $as_echo_n "(cached) " >&6
42791 else
42794 ac_ext=cpp
42795 ac_cpp='$CXXCPP $CPPFLAGS'
42796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42801 /* end confdefs.h. */
42802 #include <math.h>
42803 #ifdef HAVE_IEEEFP_H
42804 #include <ieeefp.h>
42805 #endif
42808 main ()
42810 fpclass(0);
42812 return 0;
42814 _ACEOF
42815 if ac_fn_cxx_try_compile "$LINENO"; then :
42816 glibcxx_cv_func_fpclass_use=yes
42817 else
42818 glibcxx_cv_func_fpclass_use=no
42820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42821 ac_ext=c
42822 ac_cpp='$CPP $CPPFLAGS'
42823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
42832 $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
42834 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
42835 for ac_func in fpclass
42836 do :
42837 ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
42838 if test "x$ac_cv_func_fpclass" = xyes; then :
42839 cat >>confdefs.h <<_ACEOF
42840 #define HAVE_FPCLASS 1
42841 _ACEOF
42844 done
42850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
42851 $as_echo_n "checking for qfpclass declaration... " >&6; }
42852 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
42853 if ${glibcxx_cv_func_qfpclass_use+:} false; then :
42854 $as_echo_n "(cached) " >&6
42855 else
42858 ac_ext=cpp
42859 ac_cpp='$CXXCPP $CPPFLAGS'
42860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42865 /* end confdefs.h. */
42866 #include <math.h>
42867 #ifdef HAVE_IEEEFP_H
42868 #include <ieeefp.h>
42869 #endif
42872 main ()
42874 qfpclass(0);
42876 return 0;
42878 _ACEOF
42879 if ac_fn_cxx_try_compile "$LINENO"; then :
42880 glibcxx_cv_func_qfpclass_use=yes
42881 else
42882 glibcxx_cv_func_qfpclass_use=no
42884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42885 ac_ext=c
42886 ac_cpp='$CPP $CPPFLAGS'
42887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
42896 $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
42898 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
42899 for ac_func in qfpclass
42900 do :
42901 ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
42902 if test "x$ac_cv_func_qfpclass" = xyes; then :
42903 cat >>confdefs.h <<_ACEOF
42904 #define HAVE_QFPCLASS 1
42905 _ACEOF
42908 done
42914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
42915 $as_echo_n "checking for hypot declaration... " >&6; }
42916 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
42917 if ${glibcxx_cv_func_hypot_use+:} false; then :
42918 $as_echo_n "(cached) " >&6
42919 else
42922 ac_ext=cpp
42923 ac_cpp='$CXXCPP $CPPFLAGS'
42924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42929 /* end confdefs.h. */
42930 #include <math.h>
42932 main ()
42934 hypot(0, 0);
42936 return 0;
42938 _ACEOF
42939 if ac_fn_cxx_try_compile "$LINENO"; then :
42940 glibcxx_cv_func_hypot_use=yes
42941 else
42942 glibcxx_cv_func_hypot_use=no
42944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42945 ac_ext=c
42946 ac_cpp='$CPP $CPPFLAGS'
42947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
42956 $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
42958 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
42959 for ac_func in hypot
42960 do :
42961 ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
42962 if test "x$ac_cv_func_hypot" = xyes; then :
42963 cat >>confdefs.h <<_ACEOF
42964 #define HAVE_HYPOT 1
42965 _ACEOF
42968 done
42974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
42975 $as_echo_n "checking for float trig functions... " >&6; }
42976 if ${glibcxx_cv_func_float_trig_use+:} false; then :
42977 $as_echo_n "(cached) " >&6
42978 else
42981 ac_ext=cpp
42982 ac_cpp='$CXXCPP $CPPFLAGS'
42983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42988 /* end confdefs.h. */
42989 #include <math.h>
42991 main ()
42993 acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
42995 return 0;
42997 _ACEOF
42998 if ac_fn_cxx_try_compile "$LINENO"; then :
42999 glibcxx_cv_func_float_trig_use=yes
43000 else
43001 glibcxx_cv_func_float_trig_use=no
43003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43004 ac_ext=c
43005 ac_cpp='$CPP $CPPFLAGS'
43006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
43013 $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
43014 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
43015 for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
43016 do :
43017 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43018 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
43019 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
43020 cat >>confdefs.h <<_ACEOF
43021 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43022 _ACEOF
43025 done
43031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
43032 $as_echo_n "checking for float round functions... " >&6; }
43033 if ${glibcxx_cv_func_float_round_use+:} false; then :
43034 $as_echo_n "(cached) " >&6
43035 else
43038 ac_ext=cpp
43039 ac_cpp='$CXXCPP $CPPFLAGS'
43040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43045 /* end confdefs.h. */
43046 #include <math.h>
43048 main ()
43050 ceilf (0); floorf (0);
43052 return 0;
43054 _ACEOF
43055 if ac_fn_cxx_try_compile "$LINENO"; then :
43056 glibcxx_cv_func_float_round_use=yes
43057 else
43058 glibcxx_cv_func_float_round_use=no
43060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43061 ac_ext=c
43062 ac_cpp='$CPP $CPPFLAGS'
43063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
43070 $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
43071 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
43072 for ac_func in ceilf floorf
43073 do :
43074 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43075 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
43076 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
43077 cat >>confdefs.h <<_ACEOF
43078 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43079 _ACEOF
43082 done
43089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
43090 $as_echo_n "checking for expf declaration... " >&6; }
43091 if test x${glibcxx_cv_func_expf_use+set} != xset; then
43092 if ${glibcxx_cv_func_expf_use+:} false; then :
43093 $as_echo_n "(cached) " >&6
43094 else
43097 ac_ext=cpp
43098 ac_cpp='$CXXCPP $CPPFLAGS'
43099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43104 /* end confdefs.h. */
43105 #include <math.h>
43106 #ifdef HAVE_IEEEFP_H
43107 #include <ieeefp.h>
43108 #endif
43111 main ()
43113 expf(0);
43115 return 0;
43117 _ACEOF
43118 if ac_fn_cxx_try_compile "$LINENO"; then :
43119 glibcxx_cv_func_expf_use=yes
43120 else
43121 glibcxx_cv_func_expf_use=no
43123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43124 ac_ext=c
43125 ac_cpp='$CPP $CPPFLAGS'
43126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
43135 $as_echo "$glibcxx_cv_func_expf_use" >&6; }
43137 if test x$glibcxx_cv_func_expf_use = x"yes"; then
43138 for ac_func in expf
43139 do :
43140 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
43141 if test "x$ac_cv_func_expf" = xyes; then :
43142 cat >>confdefs.h <<_ACEOF
43143 #define HAVE_EXPF 1
43144 _ACEOF
43147 done
43153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
43154 $as_echo_n "checking for isnanf declaration... " >&6; }
43155 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
43156 if ${glibcxx_cv_func_isnanf_use+:} false; then :
43157 $as_echo_n "(cached) " >&6
43158 else
43161 ac_ext=cpp
43162 ac_cpp='$CXXCPP $CPPFLAGS'
43163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43168 /* end confdefs.h. */
43169 #include <math.h>
43170 #ifdef HAVE_IEEEFP_H
43171 #include <ieeefp.h>
43172 #endif
43175 main ()
43177 isnanf(0);
43179 return 0;
43181 _ACEOF
43182 if ac_fn_cxx_try_compile "$LINENO"; then :
43183 glibcxx_cv_func_isnanf_use=yes
43184 else
43185 glibcxx_cv_func_isnanf_use=no
43187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43188 ac_ext=c
43189 ac_cpp='$CPP $CPPFLAGS'
43190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
43199 $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
43201 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
43202 for ac_func in isnanf
43203 do :
43204 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
43205 if test "x$ac_cv_func_isnanf" = xyes; then :
43206 cat >>confdefs.h <<_ACEOF
43207 #define HAVE_ISNANF 1
43208 _ACEOF
43211 done
43217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
43218 $as_echo_n "checking for isinff declaration... " >&6; }
43219 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
43220 if ${glibcxx_cv_func_isinff_use+:} false; then :
43221 $as_echo_n "(cached) " >&6
43222 else
43225 ac_ext=cpp
43226 ac_cpp='$CXXCPP $CPPFLAGS'
43227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43232 /* end confdefs.h. */
43233 #include <math.h>
43234 #ifdef HAVE_IEEEFP_H
43235 #include <ieeefp.h>
43236 #endif
43239 main ()
43241 isinff(0);
43243 return 0;
43245 _ACEOF
43246 if ac_fn_cxx_try_compile "$LINENO"; then :
43247 glibcxx_cv_func_isinff_use=yes
43248 else
43249 glibcxx_cv_func_isinff_use=no
43251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43252 ac_ext=c
43253 ac_cpp='$CPP $CPPFLAGS'
43254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
43263 $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
43265 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
43266 for ac_func in isinff
43267 do :
43268 ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
43269 if test "x$ac_cv_func_isinff" = xyes; then :
43270 cat >>confdefs.h <<_ACEOF
43271 #define HAVE_ISINFF 1
43272 _ACEOF
43275 done
43281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
43282 $as_echo_n "checking for atan2f declaration... " >&6; }
43283 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
43284 if ${glibcxx_cv_func_atan2f_use+:} false; then :
43285 $as_echo_n "(cached) " >&6
43286 else
43289 ac_ext=cpp
43290 ac_cpp='$CXXCPP $CPPFLAGS'
43291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43296 /* end confdefs.h. */
43297 #include <math.h>
43299 main ()
43301 atan2f(0, 0);
43303 return 0;
43305 _ACEOF
43306 if ac_fn_cxx_try_compile "$LINENO"; then :
43307 glibcxx_cv_func_atan2f_use=yes
43308 else
43309 glibcxx_cv_func_atan2f_use=no
43311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43312 ac_ext=c
43313 ac_cpp='$CPP $CPPFLAGS'
43314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
43323 $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
43325 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
43326 for ac_func in atan2f
43327 do :
43328 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
43329 if test "x$ac_cv_func_atan2f" = xyes; then :
43330 cat >>confdefs.h <<_ACEOF
43331 #define HAVE_ATAN2F 1
43332 _ACEOF
43335 done
43341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
43342 $as_echo_n "checking for fabsf declaration... " >&6; }
43343 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
43344 if ${glibcxx_cv_func_fabsf_use+:} false; then :
43345 $as_echo_n "(cached) " >&6
43346 else
43349 ac_ext=cpp
43350 ac_cpp='$CXXCPP $CPPFLAGS'
43351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43356 /* end confdefs.h. */
43357 #include <math.h>
43358 #ifdef HAVE_IEEEFP_H
43359 #include <ieeefp.h>
43360 #endif
43363 main ()
43365 fabsf(0);
43367 return 0;
43369 _ACEOF
43370 if ac_fn_cxx_try_compile "$LINENO"; then :
43371 glibcxx_cv_func_fabsf_use=yes
43372 else
43373 glibcxx_cv_func_fabsf_use=no
43375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43376 ac_ext=c
43377 ac_cpp='$CPP $CPPFLAGS'
43378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
43387 $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
43389 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
43390 for ac_func in fabsf
43391 do :
43392 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
43393 if test "x$ac_cv_func_fabsf" = xyes; then :
43394 cat >>confdefs.h <<_ACEOF
43395 #define HAVE_FABSF 1
43396 _ACEOF
43399 done
43405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
43406 $as_echo_n "checking for fmodf declaration... " >&6; }
43407 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
43408 if ${glibcxx_cv_func_fmodf_use+:} false; then :
43409 $as_echo_n "(cached) " >&6
43410 else
43413 ac_ext=cpp
43414 ac_cpp='$CXXCPP $CPPFLAGS'
43415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43420 /* end confdefs.h. */
43421 #include <math.h>
43423 main ()
43425 fmodf(0, 0);
43427 return 0;
43429 _ACEOF
43430 if ac_fn_cxx_try_compile "$LINENO"; then :
43431 glibcxx_cv_func_fmodf_use=yes
43432 else
43433 glibcxx_cv_func_fmodf_use=no
43435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43436 ac_ext=c
43437 ac_cpp='$CPP $CPPFLAGS'
43438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
43447 $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
43449 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
43450 for ac_func in fmodf
43451 do :
43452 ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
43453 if test "x$ac_cv_func_fmodf" = xyes; then :
43454 cat >>confdefs.h <<_ACEOF
43455 #define HAVE_FMODF 1
43456 _ACEOF
43459 done
43465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
43466 $as_echo_n "checking for frexpf declaration... " >&6; }
43467 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
43468 if ${glibcxx_cv_func_frexpf_use+:} false; then :
43469 $as_echo_n "(cached) " >&6
43470 else
43473 ac_ext=cpp
43474 ac_cpp='$CXXCPP $CPPFLAGS'
43475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43480 /* end confdefs.h. */
43481 #include <math.h>
43483 main ()
43485 frexpf(0, 0);
43487 return 0;
43489 _ACEOF
43490 if ac_fn_cxx_try_compile "$LINENO"; then :
43491 glibcxx_cv_func_frexpf_use=yes
43492 else
43493 glibcxx_cv_func_frexpf_use=no
43495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43496 ac_ext=c
43497 ac_cpp='$CPP $CPPFLAGS'
43498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
43507 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
43509 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
43510 for ac_func in frexpf
43511 do :
43512 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
43513 if test "x$ac_cv_func_frexpf" = xyes; then :
43514 cat >>confdefs.h <<_ACEOF
43515 #define HAVE_FREXPF 1
43516 _ACEOF
43519 done
43525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
43526 $as_echo_n "checking for hypotf declaration... " >&6; }
43527 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
43528 if ${glibcxx_cv_func_hypotf_use+:} false; then :
43529 $as_echo_n "(cached) " >&6
43530 else
43533 ac_ext=cpp
43534 ac_cpp='$CXXCPP $CPPFLAGS'
43535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43540 /* end confdefs.h. */
43541 #include <math.h>
43543 main ()
43545 hypotf(0, 0);
43547 return 0;
43549 _ACEOF
43550 if ac_fn_cxx_try_compile "$LINENO"; then :
43551 glibcxx_cv_func_hypotf_use=yes
43552 else
43553 glibcxx_cv_func_hypotf_use=no
43555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43556 ac_ext=c
43557 ac_cpp='$CPP $CPPFLAGS'
43558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
43567 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
43569 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
43570 for ac_func in hypotf
43571 do :
43572 ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
43573 if test "x$ac_cv_func_hypotf" = xyes; then :
43574 cat >>confdefs.h <<_ACEOF
43575 #define HAVE_HYPOTF 1
43576 _ACEOF
43579 done
43585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
43586 $as_echo_n "checking for ldexpf declaration... " >&6; }
43587 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
43588 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
43589 $as_echo_n "(cached) " >&6
43590 else
43593 ac_ext=cpp
43594 ac_cpp='$CXXCPP $CPPFLAGS'
43595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43600 /* end confdefs.h. */
43601 #include <math.h>
43603 main ()
43605 ldexpf(0, 0);
43607 return 0;
43609 _ACEOF
43610 if ac_fn_cxx_try_compile "$LINENO"; then :
43611 glibcxx_cv_func_ldexpf_use=yes
43612 else
43613 glibcxx_cv_func_ldexpf_use=no
43615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43616 ac_ext=c
43617 ac_cpp='$CPP $CPPFLAGS'
43618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
43627 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
43629 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
43630 for ac_func in ldexpf
43631 do :
43632 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
43633 if test "x$ac_cv_func_ldexpf" = xyes; then :
43634 cat >>confdefs.h <<_ACEOF
43635 #define HAVE_LDEXPF 1
43636 _ACEOF
43639 done
43645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
43646 $as_echo_n "checking for logf declaration... " >&6; }
43647 if test x${glibcxx_cv_func_logf_use+set} != xset; then
43648 if ${glibcxx_cv_func_logf_use+:} false; then :
43649 $as_echo_n "(cached) " >&6
43650 else
43653 ac_ext=cpp
43654 ac_cpp='$CXXCPP $CPPFLAGS'
43655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43660 /* end confdefs.h. */
43661 #include <math.h>
43662 #ifdef HAVE_IEEEFP_H
43663 #include <ieeefp.h>
43664 #endif
43667 main ()
43669 logf(0);
43671 return 0;
43673 _ACEOF
43674 if ac_fn_cxx_try_compile "$LINENO"; then :
43675 glibcxx_cv_func_logf_use=yes
43676 else
43677 glibcxx_cv_func_logf_use=no
43679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43680 ac_ext=c
43681 ac_cpp='$CPP $CPPFLAGS'
43682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
43691 $as_echo "$glibcxx_cv_func_logf_use" >&6; }
43693 if test x$glibcxx_cv_func_logf_use = x"yes"; then
43694 for ac_func in logf
43695 do :
43696 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
43697 if test "x$ac_cv_func_logf" = xyes; then :
43698 cat >>confdefs.h <<_ACEOF
43699 #define HAVE_LOGF 1
43700 _ACEOF
43703 done
43709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
43710 $as_echo_n "checking for log10f declaration... " >&6; }
43711 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
43712 if ${glibcxx_cv_func_log10f_use+:} false; then :
43713 $as_echo_n "(cached) " >&6
43714 else
43717 ac_ext=cpp
43718 ac_cpp='$CXXCPP $CPPFLAGS'
43719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43724 /* end confdefs.h. */
43725 #include <math.h>
43726 #ifdef HAVE_IEEEFP_H
43727 #include <ieeefp.h>
43728 #endif
43731 main ()
43733 log10f(0);
43735 return 0;
43737 _ACEOF
43738 if ac_fn_cxx_try_compile "$LINENO"; then :
43739 glibcxx_cv_func_log10f_use=yes
43740 else
43741 glibcxx_cv_func_log10f_use=no
43743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43744 ac_ext=c
43745 ac_cpp='$CPP $CPPFLAGS'
43746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
43755 $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
43757 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
43758 for ac_func in log10f
43759 do :
43760 ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
43761 if test "x$ac_cv_func_log10f" = xyes; then :
43762 cat >>confdefs.h <<_ACEOF
43763 #define HAVE_LOG10F 1
43764 _ACEOF
43767 done
43773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
43774 $as_echo_n "checking for modff declaration... " >&6; }
43775 if test x${glibcxx_cv_func_modff_use+set} != xset; then
43776 if ${glibcxx_cv_func_modff_use+:} false; then :
43777 $as_echo_n "(cached) " >&6
43778 else
43781 ac_ext=cpp
43782 ac_cpp='$CXXCPP $CPPFLAGS'
43783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43788 /* end confdefs.h. */
43789 #include <math.h>
43791 main ()
43793 modff(0, 0);
43795 return 0;
43797 _ACEOF
43798 if ac_fn_cxx_try_compile "$LINENO"; then :
43799 glibcxx_cv_func_modff_use=yes
43800 else
43801 glibcxx_cv_func_modff_use=no
43803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43804 ac_ext=c
43805 ac_cpp='$CPP $CPPFLAGS'
43806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
43815 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
43817 if test x$glibcxx_cv_func_modff_use = x"yes"; then
43818 for ac_func in modff
43819 do :
43820 ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
43821 if test "x$ac_cv_func_modff" = xyes; then :
43822 cat >>confdefs.h <<_ACEOF
43823 #define HAVE_MODFF 1
43824 _ACEOF
43827 done
43833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
43834 $as_echo_n "checking for modf declaration... " >&6; }
43835 if test x${glibcxx_cv_func_modf_use+set} != xset; then
43836 if ${glibcxx_cv_func_modf_use+:} false; then :
43837 $as_echo_n "(cached) " >&6
43838 else
43841 ac_ext=cpp
43842 ac_cpp='$CXXCPP $CPPFLAGS'
43843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43848 /* end confdefs.h. */
43849 #include <math.h>
43851 main ()
43853 modf(0, 0);
43855 return 0;
43857 _ACEOF
43858 if ac_fn_cxx_try_compile "$LINENO"; then :
43859 glibcxx_cv_func_modf_use=yes
43860 else
43861 glibcxx_cv_func_modf_use=no
43863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43864 ac_ext=c
43865 ac_cpp='$CPP $CPPFLAGS'
43866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
43875 $as_echo "$glibcxx_cv_func_modf_use" >&6; }
43877 if test x$glibcxx_cv_func_modf_use = x"yes"; then
43878 for ac_func in modf
43879 do :
43880 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
43881 if test "x$ac_cv_func_modf" = xyes; then :
43882 cat >>confdefs.h <<_ACEOF
43883 #define HAVE_MODF 1
43884 _ACEOF
43887 done
43893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
43894 $as_echo_n "checking for powf declaration... " >&6; }
43895 if test x${glibcxx_cv_func_powf_use+set} != xset; then
43896 if ${glibcxx_cv_func_powf_use+:} false; then :
43897 $as_echo_n "(cached) " >&6
43898 else
43901 ac_ext=cpp
43902 ac_cpp='$CXXCPP $CPPFLAGS'
43903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43908 /* end confdefs.h. */
43909 #include <math.h>
43911 main ()
43913 powf(0, 0);
43915 return 0;
43917 _ACEOF
43918 if ac_fn_cxx_try_compile "$LINENO"; then :
43919 glibcxx_cv_func_powf_use=yes
43920 else
43921 glibcxx_cv_func_powf_use=no
43923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43924 ac_ext=c
43925 ac_cpp='$CPP $CPPFLAGS'
43926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
43935 $as_echo "$glibcxx_cv_func_powf_use" >&6; }
43937 if test x$glibcxx_cv_func_powf_use = x"yes"; then
43938 for ac_func in powf
43939 do :
43940 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
43941 if test "x$ac_cv_func_powf" = xyes; then :
43942 cat >>confdefs.h <<_ACEOF
43943 #define HAVE_POWF 1
43944 _ACEOF
43947 done
43953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
43954 $as_echo_n "checking for sqrtf declaration... " >&6; }
43955 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
43956 if ${glibcxx_cv_func_sqrtf_use+:} false; then :
43957 $as_echo_n "(cached) " >&6
43958 else
43961 ac_ext=cpp
43962 ac_cpp='$CXXCPP $CPPFLAGS'
43963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43968 /* end confdefs.h. */
43969 #include <math.h>
43970 #ifdef HAVE_IEEEFP_H
43971 #include <ieeefp.h>
43972 #endif
43975 main ()
43977 sqrtf(0);
43979 return 0;
43981 _ACEOF
43982 if ac_fn_cxx_try_compile "$LINENO"; then :
43983 glibcxx_cv_func_sqrtf_use=yes
43984 else
43985 glibcxx_cv_func_sqrtf_use=no
43987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43988 ac_ext=c
43989 ac_cpp='$CPP $CPPFLAGS'
43990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
43999 $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
44001 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
44002 for ac_func in sqrtf
44003 do :
44004 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
44005 if test "x$ac_cv_func_sqrtf" = xyes; then :
44006 cat >>confdefs.h <<_ACEOF
44007 #define HAVE_SQRTF 1
44008 _ACEOF
44011 done
44017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
44018 $as_echo_n "checking for sincosf declaration... " >&6; }
44019 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
44020 if ${glibcxx_cv_func_sincosf_use+:} false; then :
44021 $as_echo_n "(cached) " >&6
44022 else
44025 ac_ext=cpp
44026 ac_cpp='$CXXCPP $CPPFLAGS'
44027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44032 /* end confdefs.h. */
44033 #include <math.h>
44035 main ()
44037 sincosf(0, 0, 0);
44039 return 0;
44041 _ACEOF
44042 if ac_fn_cxx_try_compile "$LINENO"; then :
44043 glibcxx_cv_func_sincosf_use=yes
44044 else
44045 glibcxx_cv_func_sincosf_use=no
44047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44048 ac_ext=c
44049 ac_cpp='$CPP $CPPFLAGS'
44050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
44059 $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
44061 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
44062 for ac_func in sincosf
44063 do :
44064 ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
44065 if test "x$ac_cv_func_sincosf" = xyes; then :
44066 cat >>confdefs.h <<_ACEOF
44067 #define HAVE_SINCOSF 1
44068 _ACEOF
44071 done
44077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
44078 $as_echo_n "checking for finitef declaration... " >&6; }
44079 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
44080 if ${glibcxx_cv_func_finitef_use+:} false; then :
44081 $as_echo_n "(cached) " >&6
44082 else
44085 ac_ext=cpp
44086 ac_cpp='$CXXCPP $CPPFLAGS'
44087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44092 /* end confdefs.h. */
44093 #include <math.h>
44094 #ifdef HAVE_IEEEFP_H
44095 #include <ieeefp.h>
44096 #endif
44099 main ()
44101 finitef(0);
44103 return 0;
44105 _ACEOF
44106 if ac_fn_cxx_try_compile "$LINENO"; then :
44107 glibcxx_cv_func_finitef_use=yes
44108 else
44109 glibcxx_cv_func_finitef_use=no
44111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44112 ac_ext=c
44113 ac_cpp='$CPP $CPPFLAGS'
44114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
44123 $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
44125 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
44126 for ac_func in finitef
44127 do :
44128 ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
44129 if test "x$ac_cv_func_finitef" = xyes; then :
44130 cat >>confdefs.h <<_ACEOF
44131 #define HAVE_FINITEF 1
44132 _ACEOF
44135 done
44141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
44142 $as_echo_n "checking for long double trig functions... " >&6; }
44143 if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
44144 $as_echo_n "(cached) " >&6
44145 else
44148 ac_ext=cpp
44149 ac_cpp='$CXXCPP $CPPFLAGS'
44150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44155 /* end confdefs.h. */
44156 #include <math.h>
44158 main ()
44160 acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
44162 return 0;
44164 _ACEOF
44165 if ac_fn_cxx_try_compile "$LINENO"; then :
44166 glibcxx_cv_func_long_double_trig_use=yes
44167 else
44168 glibcxx_cv_func_long_double_trig_use=no
44170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44171 ac_ext=c
44172 ac_cpp='$CPP $CPPFLAGS'
44173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
44180 $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
44181 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
44182 for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
44183 do :
44184 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44185 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
44186 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
44187 cat >>confdefs.h <<_ACEOF
44188 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44189 _ACEOF
44192 done
44198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
44199 $as_echo_n "checking for long double round functions... " >&6; }
44200 if ${glibcxx_cv_func_long_double_round_use+:} false; then :
44201 $as_echo_n "(cached) " >&6
44202 else
44205 ac_ext=cpp
44206 ac_cpp='$CXXCPP $CPPFLAGS'
44207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44212 /* end confdefs.h. */
44213 #include <math.h>
44215 main ()
44217 ceill (0); floorl (0);
44219 return 0;
44221 _ACEOF
44222 if ac_fn_cxx_try_compile "$LINENO"; then :
44223 glibcxx_cv_func_long_double_round_use=yes
44224 else
44225 glibcxx_cv_func_long_double_round_use=no
44227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44228 ac_ext=c
44229 ac_cpp='$CPP $CPPFLAGS'
44230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
44237 $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
44238 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
44239 for ac_func in ceill floorl
44240 do :
44241 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44242 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
44243 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
44244 cat >>confdefs.h <<_ACEOF
44245 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44246 _ACEOF
44249 done
44256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
44257 $as_echo_n "checking for isnanl declaration... " >&6; }
44258 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
44259 if ${glibcxx_cv_func_isnanl_use+:} false; then :
44260 $as_echo_n "(cached) " >&6
44261 else
44264 ac_ext=cpp
44265 ac_cpp='$CXXCPP $CPPFLAGS'
44266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44271 /* end confdefs.h. */
44272 #include <math.h>
44273 #ifdef HAVE_IEEEFP_H
44274 #include <ieeefp.h>
44275 #endif
44278 main ()
44280 isnanl(0);
44282 return 0;
44284 _ACEOF
44285 if ac_fn_cxx_try_compile "$LINENO"; then :
44286 glibcxx_cv_func_isnanl_use=yes
44287 else
44288 glibcxx_cv_func_isnanl_use=no
44290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44291 ac_ext=c
44292 ac_cpp='$CPP $CPPFLAGS'
44293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
44302 $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
44304 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
44305 for ac_func in isnanl
44306 do :
44307 ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
44308 if test "x$ac_cv_func_isnanl" = xyes; then :
44309 cat >>confdefs.h <<_ACEOF
44310 #define HAVE_ISNANL 1
44311 _ACEOF
44314 done
44320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
44321 $as_echo_n "checking for isinfl declaration... " >&6; }
44322 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
44323 if ${glibcxx_cv_func_isinfl_use+:} false; then :
44324 $as_echo_n "(cached) " >&6
44325 else
44328 ac_ext=cpp
44329 ac_cpp='$CXXCPP $CPPFLAGS'
44330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44335 /* end confdefs.h. */
44336 #include <math.h>
44337 #ifdef HAVE_IEEEFP_H
44338 #include <ieeefp.h>
44339 #endif
44342 main ()
44344 isinfl(0);
44346 return 0;
44348 _ACEOF
44349 if ac_fn_cxx_try_compile "$LINENO"; then :
44350 glibcxx_cv_func_isinfl_use=yes
44351 else
44352 glibcxx_cv_func_isinfl_use=no
44354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44355 ac_ext=c
44356 ac_cpp='$CPP $CPPFLAGS'
44357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
44366 $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
44368 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
44369 for ac_func in isinfl
44370 do :
44371 ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
44372 if test "x$ac_cv_func_isinfl" = xyes; then :
44373 cat >>confdefs.h <<_ACEOF
44374 #define HAVE_ISINFL 1
44375 _ACEOF
44378 done
44384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
44385 $as_echo_n "checking for atan2l declaration... " >&6; }
44386 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
44387 if ${glibcxx_cv_func_atan2l_use+:} false; then :
44388 $as_echo_n "(cached) " >&6
44389 else
44392 ac_ext=cpp
44393 ac_cpp='$CXXCPP $CPPFLAGS'
44394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44399 /* end confdefs.h. */
44400 #include <math.h>
44402 main ()
44404 atan2l(0, 0);
44406 return 0;
44408 _ACEOF
44409 if ac_fn_cxx_try_compile "$LINENO"; then :
44410 glibcxx_cv_func_atan2l_use=yes
44411 else
44412 glibcxx_cv_func_atan2l_use=no
44414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44415 ac_ext=c
44416 ac_cpp='$CPP $CPPFLAGS'
44417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
44426 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
44428 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
44429 for ac_func in atan2l
44430 do :
44431 ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
44432 if test "x$ac_cv_func_atan2l" = xyes; then :
44433 cat >>confdefs.h <<_ACEOF
44434 #define HAVE_ATAN2L 1
44435 _ACEOF
44438 done
44444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
44445 $as_echo_n "checking for expl declaration... " >&6; }
44446 if test x${glibcxx_cv_func_expl_use+set} != xset; then
44447 if ${glibcxx_cv_func_expl_use+:} false; then :
44448 $as_echo_n "(cached) " >&6
44449 else
44452 ac_ext=cpp
44453 ac_cpp='$CXXCPP $CPPFLAGS'
44454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44459 /* end confdefs.h. */
44460 #include <math.h>
44461 #ifdef HAVE_IEEEFP_H
44462 #include <ieeefp.h>
44463 #endif
44466 main ()
44468 expl(0);
44470 return 0;
44472 _ACEOF
44473 if ac_fn_cxx_try_compile "$LINENO"; then :
44474 glibcxx_cv_func_expl_use=yes
44475 else
44476 glibcxx_cv_func_expl_use=no
44478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44479 ac_ext=c
44480 ac_cpp='$CPP $CPPFLAGS'
44481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
44490 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
44492 if test x$glibcxx_cv_func_expl_use = x"yes"; then
44493 for ac_func in expl
44494 do :
44495 ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
44496 if test "x$ac_cv_func_expl" = xyes; then :
44497 cat >>confdefs.h <<_ACEOF
44498 #define HAVE_EXPL 1
44499 _ACEOF
44502 done
44508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
44509 $as_echo_n "checking for fabsl declaration... " >&6; }
44510 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
44511 if ${glibcxx_cv_func_fabsl_use+:} false; then :
44512 $as_echo_n "(cached) " >&6
44513 else
44516 ac_ext=cpp
44517 ac_cpp='$CXXCPP $CPPFLAGS'
44518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44523 /* end confdefs.h. */
44524 #include <math.h>
44525 #ifdef HAVE_IEEEFP_H
44526 #include <ieeefp.h>
44527 #endif
44530 main ()
44532 fabsl(0);
44534 return 0;
44536 _ACEOF
44537 if ac_fn_cxx_try_compile "$LINENO"; then :
44538 glibcxx_cv_func_fabsl_use=yes
44539 else
44540 glibcxx_cv_func_fabsl_use=no
44542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44543 ac_ext=c
44544 ac_cpp='$CPP $CPPFLAGS'
44545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
44554 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
44556 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
44557 for ac_func in fabsl
44558 do :
44559 ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
44560 if test "x$ac_cv_func_fabsl" = xyes; then :
44561 cat >>confdefs.h <<_ACEOF
44562 #define HAVE_FABSL 1
44563 _ACEOF
44566 done
44572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
44573 $as_echo_n "checking for fmodl declaration... " >&6; }
44574 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
44575 if ${glibcxx_cv_func_fmodl_use+:} false; then :
44576 $as_echo_n "(cached) " >&6
44577 else
44580 ac_ext=cpp
44581 ac_cpp='$CXXCPP $CPPFLAGS'
44582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44587 /* end confdefs.h. */
44588 #include <math.h>
44590 main ()
44592 fmodl(0, 0);
44594 return 0;
44596 _ACEOF
44597 if ac_fn_cxx_try_compile "$LINENO"; then :
44598 glibcxx_cv_func_fmodl_use=yes
44599 else
44600 glibcxx_cv_func_fmodl_use=no
44602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44603 ac_ext=c
44604 ac_cpp='$CPP $CPPFLAGS'
44605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
44614 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
44616 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
44617 for ac_func in fmodl
44618 do :
44619 ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
44620 if test "x$ac_cv_func_fmodl" = xyes; then :
44621 cat >>confdefs.h <<_ACEOF
44622 #define HAVE_FMODL 1
44623 _ACEOF
44626 done
44632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
44633 $as_echo_n "checking for frexpl declaration... " >&6; }
44634 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
44635 if ${glibcxx_cv_func_frexpl_use+:} false; then :
44636 $as_echo_n "(cached) " >&6
44637 else
44640 ac_ext=cpp
44641 ac_cpp='$CXXCPP $CPPFLAGS'
44642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44647 /* end confdefs.h. */
44648 #include <math.h>
44650 main ()
44652 frexpl(0, 0);
44654 return 0;
44656 _ACEOF
44657 if ac_fn_cxx_try_compile "$LINENO"; then :
44658 glibcxx_cv_func_frexpl_use=yes
44659 else
44660 glibcxx_cv_func_frexpl_use=no
44662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44663 ac_ext=c
44664 ac_cpp='$CPP $CPPFLAGS'
44665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
44674 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
44676 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
44677 for ac_func in frexpl
44678 do :
44679 ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
44680 if test "x$ac_cv_func_frexpl" = xyes; then :
44681 cat >>confdefs.h <<_ACEOF
44682 #define HAVE_FREXPL 1
44683 _ACEOF
44686 done
44692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
44693 $as_echo_n "checking for hypotl declaration... " >&6; }
44694 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
44695 if ${glibcxx_cv_func_hypotl_use+:} false; then :
44696 $as_echo_n "(cached) " >&6
44697 else
44700 ac_ext=cpp
44701 ac_cpp='$CXXCPP $CPPFLAGS'
44702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44707 /* end confdefs.h. */
44708 #include <math.h>
44710 main ()
44712 hypotl(0, 0);
44714 return 0;
44716 _ACEOF
44717 if ac_fn_cxx_try_compile "$LINENO"; then :
44718 glibcxx_cv_func_hypotl_use=yes
44719 else
44720 glibcxx_cv_func_hypotl_use=no
44722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44723 ac_ext=c
44724 ac_cpp='$CPP $CPPFLAGS'
44725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
44734 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
44736 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
44737 for ac_func in hypotl
44738 do :
44739 ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
44740 if test "x$ac_cv_func_hypotl" = xyes; then :
44741 cat >>confdefs.h <<_ACEOF
44742 #define HAVE_HYPOTL 1
44743 _ACEOF
44746 done
44752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
44753 $as_echo_n "checking for ldexpl declaration... " >&6; }
44754 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
44755 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
44756 $as_echo_n "(cached) " >&6
44757 else
44760 ac_ext=cpp
44761 ac_cpp='$CXXCPP $CPPFLAGS'
44762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44767 /* end confdefs.h. */
44768 #include <math.h>
44770 main ()
44772 ldexpl(0, 0);
44774 return 0;
44776 _ACEOF
44777 if ac_fn_cxx_try_compile "$LINENO"; then :
44778 glibcxx_cv_func_ldexpl_use=yes
44779 else
44780 glibcxx_cv_func_ldexpl_use=no
44782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44783 ac_ext=c
44784 ac_cpp='$CPP $CPPFLAGS'
44785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
44794 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
44796 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
44797 for ac_func in ldexpl
44798 do :
44799 ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
44800 if test "x$ac_cv_func_ldexpl" = xyes; then :
44801 cat >>confdefs.h <<_ACEOF
44802 #define HAVE_LDEXPL 1
44803 _ACEOF
44806 done
44812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
44813 $as_echo_n "checking for logl declaration... " >&6; }
44814 if test x${glibcxx_cv_func_logl_use+set} != xset; then
44815 if ${glibcxx_cv_func_logl_use+:} false; then :
44816 $as_echo_n "(cached) " >&6
44817 else
44820 ac_ext=cpp
44821 ac_cpp='$CXXCPP $CPPFLAGS'
44822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44827 /* end confdefs.h. */
44828 #include <math.h>
44829 #ifdef HAVE_IEEEFP_H
44830 #include <ieeefp.h>
44831 #endif
44834 main ()
44836 logl(0);
44838 return 0;
44840 _ACEOF
44841 if ac_fn_cxx_try_compile "$LINENO"; then :
44842 glibcxx_cv_func_logl_use=yes
44843 else
44844 glibcxx_cv_func_logl_use=no
44846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44847 ac_ext=c
44848 ac_cpp='$CPP $CPPFLAGS'
44849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
44858 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
44860 if test x$glibcxx_cv_func_logl_use = x"yes"; then
44861 for ac_func in logl
44862 do :
44863 ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
44864 if test "x$ac_cv_func_logl" = xyes; then :
44865 cat >>confdefs.h <<_ACEOF
44866 #define HAVE_LOGL 1
44867 _ACEOF
44870 done
44876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
44877 $as_echo_n "checking for log10l declaration... " >&6; }
44878 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
44879 if ${glibcxx_cv_func_log10l_use+:} false; then :
44880 $as_echo_n "(cached) " >&6
44881 else
44884 ac_ext=cpp
44885 ac_cpp='$CXXCPP $CPPFLAGS'
44886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44891 /* end confdefs.h. */
44892 #include <math.h>
44893 #ifdef HAVE_IEEEFP_H
44894 #include <ieeefp.h>
44895 #endif
44898 main ()
44900 log10l(0);
44902 return 0;
44904 _ACEOF
44905 if ac_fn_cxx_try_compile "$LINENO"; then :
44906 glibcxx_cv_func_log10l_use=yes
44907 else
44908 glibcxx_cv_func_log10l_use=no
44910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44911 ac_ext=c
44912 ac_cpp='$CPP $CPPFLAGS'
44913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
44922 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
44924 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
44925 for ac_func in log10l
44926 do :
44927 ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
44928 if test "x$ac_cv_func_log10l" = xyes; then :
44929 cat >>confdefs.h <<_ACEOF
44930 #define HAVE_LOG10L 1
44931 _ACEOF
44934 done
44940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
44941 $as_echo_n "checking for modfl declaration... " >&6; }
44942 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
44943 if ${glibcxx_cv_func_modfl_use+:} false; then :
44944 $as_echo_n "(cached) " >&6
44945 else
44948 ac_ext=cpp
44949 ac_cpp='$CXXCPP $CPPFLAGS'
44950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44955 /* end confdefs.h. */
44956 #include <math.h>
44958 main ()
44960 modfl(0, 0);
44962 return 0;
44964 _ACEOF
44965 if ac_fn_cxx_try_compile "$LINENO"; then :
44966 glibcxx_cv_func_modfl_use=yes
44967 else
44968 glibcxx_cv_func_modfl_use=no
44970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44971 ac_ext=c
44972 ac_cpp='$CPP $CPPFLAGS'
44973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
44982 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
44984 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
44985 for ac_func in modfl
44986 do :
44987 ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
44988 if test "x$ac_cv_func_modfl" = xyes; then :
44989 cat >>confdefs.h <<_ACEOF
44990 #define HAVE_MODFL 1
44991 _ACEOF
44994 done
45000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
45001 $as_echo_n "checking for powl declaration... " >&6; }
45002 if test x${glibcxx_cv_func_powl_use+set} != xset; then
45003 if ${glibcxx_cv_func_powl_use+:} false; then :
45004 $as_echo_n "(cached) " >&6
45005 else
45008 ac_ext=cpp
45009 ac_cpp='$CXXCPP $CPPFLAGS'
45010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45015 /* end confdefs.h. */
45016 #include <math.h>
45018 main ()
45020 powl(0, 0);
45022 return 0;
45024 _ACEOF
45025 if ac_fn_cxx_try_compile "$LINENO"; then :
45026 glibcxx_cv_func_powl_use=yes
45027 else
45028 glibcxx_cv_func_powl_use=no
45030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45031 ac_ext=c
45032 ac_cpp='$CPP $CPPFLAGS'
45033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
45042 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
45044 if test x$glibcxx_cv_func_powl_use = x"yes"; then
45045 for ac_func in powl
45046 do :
45047 ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
45048 if test "x$ac_cv_func_powl" = xyes; then :
45049 cat >>confdefs.h <<_ACEOF
45050 #define HAVE_POWL 1
45051 _ACEOF
45054 done
45060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
45061 $as_echo_n "checking for sqrtl declaration... " >&6; }
45062 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
45063 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
45064 $as_echo_n "(cached) " >&6
45065 else
45068 ac_ext=cpp
45069 ac_cpp='$CXXCPP $CPPFLAGS'
45070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45075 /* end confdefs.h. */
45076 #include <math.h>
45077 #ifdef HAVE_IEEEFP_H
45078 #include <ieeefp.h>
45079 #endif
45082 main ()
45084 sqrtl(0);
45086 return 0;
45088 _ACEOF
45089 if ac_fn_cxx_try_compile "$LINENO"; then :
45090 glibcxx_cv_func_sqrtl_use=yes
45091 else
45092 glibcxx_cv_func_sqrtl_use=no
45094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45095 ac_ext=c
45096 ac_cpp='$CPP $CPPFLAGS'
45097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
45106 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
45108 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
45109 for ac_func in sqrtl
45110 do :
45111 ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
45112 if test "x$ac_cv_func_sqrtl" = xyes; then :
45113 cat >>confdefs.h <<_ACEOF
45114 #define HAVE_SQRTL 1
45115 _ACEOF
45118 done
45124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
45125 $as_echo_n "checking for sincosl declaration... " >&6; }
45126 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
45127 if ${glibcxx_cv_func_sincosl_use+:} false; then :
45128 $as_echo_n "(cached) " >&6
45129 else
45132 ac_ext=cpp
45133 ac_cpp='$CXXCPP $CPPFLAGS'
45134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45139 /* end confdefs.h. */
45140 #include <math.h>
45142 main ()
45144 sincosl(0, 0, 0);
45146 return 0;
45148 _ACEOF
45149 if ac_fn_cxx_try_compile "$LINENO"; then :
45150 glibcxx_cv_func_sincosl_use=yes
45151 else
45152 glibcxx_cv_func_sincosl_use=no
45154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45155 ac_ext=c
45156 ac_cpp='$CPP $CPPFLAGS'
45157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
45166 $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
45168 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
45169 for ac_func in sincosl
45170 do :
45171 ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
45172 if test "x$ac_cv_func_sincosl" = xyes; then :
45173 cat >>confdefs.h <<_ACEOF
45174 #define HAVE_SINCOSL 1
45175 _ACEOF
45178 done
45184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
45185 $as_echo_n "checking for finitel declaration... " >&6; }
45186 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
45187 if ${glibcxx_cv_func_finitel_use+:} false; then :
45188 $as_echo_n "(cached) " >&6
45189 else
45192 ac_ext=cpp
45193 ac_cpp='$CXXCPP $CPPFLAGS'
45194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45199 /* end confdefs.h. */
45200 #include <math.h>
45201 #ifdef HAVE_IEEEFP_H
45202 #include <ieeefp.h>
45203 #endif
45206 main ()
45208 finitel(0);
45210 return 0;
45212 _ACEOF
45213 if ac_fn_cxx_try_compile "$LINENO"; then :
45214 glibcxx_cv_func_finitel_use=yes
45215 else
45216 glibcxx_cv_func_finitel_use=no
45218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45219 ac_ext=c
45220 ac_cpp='$CPP $CPPFLAGS'
45221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
45230 $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
45232 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
45233 for ac_func in finitel
45234 do :
45235 ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
45236 if test "x$ac_cv_func_finitel" = xyes; then :
45237 cat >>confdefs.h <<_ACEOF
45238 #define HAVE_FINITEL 1
45239 _ACEOF
45242 done
45247 LIBS="$ac_save_LIBS"
45248 CXXFLAGS="$ac_save_CXXFLAGS"
45251 ac_test_CXXFLAGS="${CXXFLAGS+set}"
45252 ac_save_CXXFLAGS="$CXXFLAGS"
45253 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
45256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
45257 $as_echo_n "checking for at_quick_exit declaration... " >&6; }
45258 if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
45259 if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
45260 $as_echo_n "(cached) " >&6
45261 else
45264 ac_ext=cpp
45265 ac_cpp='$CXXCPP $CPPFLAGS'
45266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45271 /* end confdefs.h. */
45272 #include <stdlib.h>
45274 main ()
45276 at_quick_exit(0);
45278 return 0;
45280 _ACEOF
45281 if ac_fn_cxx_try_compile "$LINENO"; then :
45282 glibcxx_cv_func_at_quick_exit_use=yes
45283 else
45284 glibcxx_cv_func_at_quick_exit_use=no
45286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45287 ac_ext=c
45288 ac_cpp='$CPP $CPPFLAGS'
45289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
45298 $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
45299 if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
45300 for ac_func in at_quick_exit
45301 do :
45302 ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
45303 if test "x$ac_cv_func_at_quick_exit" = xyes; then :
45304 cat >>confdefs.h <<_ACEOF
45305 #define HAVE_AT_QUICK_EXIT 1
45306 _ACEOF
45309 done
45314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
45315 $as_echo_n "checking for quick_exit declaration... " >&6; }
45316 if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
45317 if ${glibcxx_cv_func_quick_exit_use+:} false; then :
45318 $as_echo_n "(cached) " >&6
45319 else
45322 ac_ext=cpp
45323 ac_cpp='$CXXCPP $CPPFLAGS'
45324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45329 /* end confdefs.h. */
45330 #include <stdlib.h>
45332 main ()
45334 quick_exit(0);
45336 return 0;
45338 _ACEOF
45339 if ac_fn_cxx_try_compile "$LINENO"; then :
45340 glibcxx_cv_func_quick_exit_use=yes
45341 else
45342 glibcxx_cv_func_quick_exit_use=no
45344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45345 ac_ext=c
45346 ac_cpp='$CPP $CPPFLAGS'
45347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
45356 $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
45357 if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
45358 for ac_func in quick_exit
45359 do :
45360 ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
45361 if test "x$ac_cv_func_quick_exit" = xyes; then :
45362 cat >>confdefs.h <<_ACEOF
45363 #define HAVE_QUICK_EXIT 1
45364 _ACEOF
45367 done
45372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
45373 $as_echo_n "checking for strtold declaration... " >&6; }
45374 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
45375 if ${glibcxx_cv_func_strtold_use+:} false; then :
45376 $as_echo_n "(cached) " >&6
45377 else
45380 ac_ext=cpp
45381 ac_cpp='$CXXCPP $CPPFLAGS'
45382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45387 /* end confdefs.h. */
45388 #include <stdlib.h>
45390 main ()
45392 strtold(0, 0);
45394 return 0;
45396 _ACEOF
45397 if ac_fn_cxx_try_compile "$LINENO"; then :
45398 glibcxx_cv_func_strtold_use=yes
45399 else
45400 glibcxx_cv_func_strtold_use=no
45402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45403 ac_ext=c
45404 ac_cpp='$CPP $CPPFLAGS'
45405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
45414 $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
45415 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
45416 for ac_func in strtold
45417 do :
45418 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
45419 if test "x$ac_cv_func_strtold" = xyes; then :
45420 cat >>confdefs.h <<_ACEOF
45421 #define HAVE_STRTOLD 1
45422 _ACEOF
45425 done
45430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
45431 $as_echo_n "checking for strtof declaration... " >&6; }
45432 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
45433 if ${glibcxx_cv_func_strtof_use+:} false; then :
45434 $as_echo_n "(cached) " >&6
45435 else
45438 ac_ext=cpp
45439 ac_cpp='$CXXCPP $CPPFLAGS'
45440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45445 /* end confdefs.h. */
45446 #include <stdlib.h>
45448 main ()
45450 strtof(0, 0);
45452 return 0;
45454 _ACEOF
45455 if ac_fn_cxx_try_compile "$LINENO"; then :
45456 glibcxx_cv_func_strtof_use=yes
45457 else
45458 glibcxx_cv_func_strtof_use=no
45460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45461 ac_ext=c
45462 ac_cpp='$CPP $CPPFLAGS'
45463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
45472 $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
45473 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
45474 for ac_func in strtof
45475 do :
45476 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
45477 if test "x$ac_cv_func_strtof" = xyes; then :
45478 cat >>confdefs.h <<_ACEOF
45479 #define HAVE_STRTOF 1
45480 _ACEOF
45483 done
45488 CXXFLAGS="$ac_save_CXXFLAGS"
45490 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
45491 do :
45492 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45493 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
45494 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
45495 cat >>confdefs.h <<_ACEOF
45496 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45497 _ACEOF
45500 done
45502 for ac_func in _wfopen
45503 do :
45504 ac_fn_c_check_func "$LINENO" "_wfopen" "ac_cv_func__wfopen"
45505 if test "x$ac_cv_func__wfopen" = xyes; then :
45506 cat >>confdefs.h <<_ACEOF
45507 #define HAVE__WFOPEN 1
45508 _ACEOF
45511 done
45515 # Check whether --enable-tls was given.
45516 if test "${enable_tls+set}" = set; then :
45517 enableval=$enable_tls;
45518 case "$enableval" in
45519 yes|no) ;;
45520 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
45521 esac
45523 else
45524 enable_tls=yes
45528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
45529 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
45530 if ${gcc_cv_have_tls+:} false; then :
45531 $as_echo_n "(cached) " >&6
45532 else
45534 if test "$cross_compiling" = yes; then :
45535 if test x$gcc_no_link = xyes; then
45536 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
45538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45539 /* end confdefs.h. */
45540 __thread int a; int b; int main() { return a = b; }
45541 _ACEOF
45542 if ac_fn_c_try_link "$LINENO"; then :
45543 chktls_save_LDFLAGS="$LDFLAGS"
45544 case $host in
45545 *-*-linux* | -*-uclinuxfdpic*)
45546 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
45548 esac
45549 chktls_save_CFLAGS="$CFLAGS"
45550 CFLAGS="-fPIC $CFLAGS"
45551 if test x$gcc_no_link = xyes; then
45552 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
45554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45555 /* end confdefs.h. */
45556 int f() { return 0; }
45557 _ACEOF
45558 if ac_fn_c_try_link "$LINENO"; then :
45559 if test x$gcc_no_link = xyes; then
45560 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
45562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45563 /* end confdefs.h. */
45564 __thread int a; int b; int f() { return a = b; }
45565 _ACEOF
45566 if ac_fn_c_try_link "$LINENO"; then :
45567 gcc_cv_have_tls=yes
45568 else
45569 gcc_cv_have_tls=no
45571 rm -f core conftest.err conftest.$ac_objext \
45572 conftest$ac_exeext conftest.$ac_ext
45573 else
45574 gcc_cv_have_tls=yes
45576 rm -f core conftest.err conftest.$ac_objext \
45577 conftest$ac_exeext conftest.$ac_ext
45578 CFLAGS="$chktls_save_CFLAGS"
45579 LDFLAGS="$chktls_save_LDFLAGS"
45580 else
45581 gcc_cv_have_tls=no
45583 rm -f core conftest.err conftest.$ac_objext \
45584 conftest$ac_exeext conftest.$ac_ext
45587 else
45588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45589 /* end confdefs.h. */
45590 __thread int a; int b; int main() { return a = b; }
45591 _ACEOF
45592 if ac_fn_c_try_run "$LINENO"; then :
45593 chktls_save_LDFLAGS="$LDFLAGS"
45594 LDFLAGS="-static $LDFLAGS"
45595 if test x$gcc_no_link = xyes; then
45596 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
45598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45599 /* end confdefs.h. */
45600 int main() { return 0; }
45601 _ACEOF
45602 if ac_fn_c_try_link "$LINENO"; then :
45603 if test "$cross_compiling" = yes; then :
45604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
45605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
45606 as_fn_error $? "cannot run test program while cross compiling
45607 See \`config.log' for more details" "$LINENO" 5; }
45608 else
45609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45610 /* end confdefs.h. */
45611 __thread int a; int b; int main() { return a = b; }
45612 _ACEOF
45613 if ac_fn_c_try_run "$LINENO"; then :
45614 gcc_cv_have_tls=yes
45615 else
45616 gcc_cv_have_tls=no
45618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45619 conftest.$ac_objext conftest.beam conftest.$ac_ext
45622 else
45623 gcc_cv_have_tls=yes
45625 rm -f core conftest.err conftest.$ac_objext \
45626 conftest$ac_exeext conftest.$ac_ext
45627 LDFLAGS="$chktls_save_LDFLAGS"
45628 if test $gcc_cv_have_tls = yes; then
45629 chktls_save_CFLAGS="$CFLAGS"
45630 thread_CFLAGS=failed
45631 for flag in '' '-pthread' '-lpthread'; do
45632 CFLAGS="$flag $chktls_save_CFLAGS"
45633 if test x$gcc_no_link = xyes; then
45634 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
45636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45637 /* end confdefs.h. */
45638 #include <pthread.h>
45639 void *g(void *d) { return NULL; }
45641 main ()
45643 pthread_t t; pthread_create(&t,NULL,g,NULL);
45645 return 0;
45647 _ACEOF
45648 if ac_fn_c_try_link "$LINENO"; then :
45649 thread_CFLAGS="$flag"
45651 rm -f core conftest.err conftest.$ac_objext \
45652 conftest$ac_exeext conftest.$ac_ext
45653 if test "X$thread_CFLAGS" != Xfailed; then
45654 break
45656 done
45657 CFLAGS="$chktls_save_CFLAGS"
45658 if test "X$thread_CFLAGS" != Xfailed; then
45659 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
45660 if test "$cross_compiling" = yes; then :
45661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
45662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
45663 as_fn_error $? "cannot run test program while cross compiling
45664 See \`config.log' for more details" "$LINENO" 5; }
45665 else
45666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45667 /* end confdefs.h. */
45668 #include <pthread.h>
45669 __thread int a;
45670 static int *volatile a_in_other_thread;
45671 static void *
45672 thread_func (void *arg)
45674 a_in_other_thread = &a;
45675 return (void *)0;
45678 main ()
45680 pthread_t thread;
45681 void *thread_retval;
45682 int *volatile a_in_main_thread;
45683 a_in_main_thread = &a;
45684 if (pthread_create (&thread, (pthread_attr_t *)0,
45685 thread_func, (void *)0))
45686 return 0;
45687 if (pthread_join (thread, &thread_retval))
45688 return 0;
45689 return (a_in_other_thread == a_in_main_thread);
45691 return 0;
45693 _ACEOF
45694 if ac_fn_c_try_run "$LINENO"; then :
45695 gcc_cv_have_tls=yes
45696 else
45697 gcc_cv_have_tls=no
45699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45700 conftest.$ac_objext conftest.beam conftest.$ac_ext
45703 CFLAGS="$chktls_save_CFLAGS"
45706 else
45707 gcc_cv_have_tls=no
45709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45710 conftest.$ac_objext conftest.beam conftest.$ac_ext
45714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
45715 $as_echo "$gcc_cv_have_tls" >&6; }
45716 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
45718 $as_echo "#define HAVE_TLS 1" >>confdefs.h
45722 *-netbsd* | *-openbsd*)
45723 SECTION_FLAGS='-ffunction-sections -fdata-sections'
45726 # If we're not using GNU ld, then there's no point in even trying these
45727 # tests. Check for that first. We should have already tested for gld
45728 # by now (in libtool), but require it now just to be safe...
45729 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
45730 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
45734 # The name set by libtool depends on the version of libtool. Shame on us
45735 # for depending on an impl detail, but c'est la vie. Older versions used
45736 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
45737 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
45738 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
45739 # set (hence we're using an older libtool), then set it.
45740 if test x${with_gnu_ld+set} != xset; then
45741 if test x${ac_cv_prog_gnu_ld+set} != xset; then
45742 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
45743 with_gnu_ld=no
45744 else
45745 with_gnu_ld=$ac_cv_prog_gnu_ld
45749 # Start by getting the version number. I think the libtool test already
45750 # does some of this, but throws away the result.
45751 glibcxx_ld_is_gold=no
45752 glibcxx_ld_is_mold=no
45753 if test x"$with_gnu_ld" = x"yes"; then
45754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
45755 $as_echo_n "checking for ld version... " >&6; }
45757 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
45758 glibcxx_ld_is_gold=yes
45759 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
45760 glibcxx_ld_is_mold=yes
45762 ldver=`$LD --version 2>/dev/null |
45763 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
45765 glibcxx_gnu_ld_version=`echo $ldver | \
45766 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
45767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
45768 $as_echo "$glibcxx_gnu_ld_version" >&6; }
45771 # Set --gc-sections.
45772 glibcxx_have_gc_sections=no
45773 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
45774 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
45775 glibcxx_have_gc_sections=yes
45777 else
45778 glibcxx_gcsections_min_ld=21602
45779 if test x"$with_gnu_ld" = x"yes" &&
45780 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
45781 glibcxx_have_gc_sections=yes
45784 if test "$glibcxx_have_gc_sections" = "yes"; then
45785 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
45786 # NB: This flag only works reliably after 2.16.1. Configure tests
45787 # for this are difficult, so hard wire a value that should work.
45789 ac_test_CFLAGS="${CFLAGS+set}"
45790 ac_save_CFLAGS="$CFLAGS"
45791 CFLAGS='-Wl,--gc-sections'
45793 # Check for -Wl,--gc-sections
45794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
45795 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
45796 if test x$gcc_no_link = xyes; then
45797 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
45799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45800 /* end confdefs.h. */
45801 int one(void) { return 1; }
45802 int two(void) { return 2; }
45805 main ()
45807 two();
45809 return 0;
45811 _ACEOF
45812 if ac_fn_c_try_link "$LINENO"; then :
45813 ac_gcsections=yes
45814 else
45815 ac_gcsections=no
45817 rm -f core conftest.err conftest.$ac_objext \
45818 conftest$ac_exeext conftest.$ac_ext
45819 if test "$ac_gcsections" = "yes"; then
45820 rm -f conftest.c
45821 touch conftest.c
45822 if $CC -c conftest.c; then
45823 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
45824 grep "Warning: gc-sections option ignored" > /dev/null; then
45825 ac_gcsections=no
45828 rm -f conftest.c conftest.o conftest
45830 if test "$ac_gcsections" = "yes"; then
45831 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
45833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
45834 $as_echo "$ac_gcsections" >&6; }
45836 if test "$ac_test_CFLAGS" = set; then
45837 CFLAGS="$ac_save_CFLAGS"
45838 else
45839 # this is the suspicious part
45840 CFLAGS=''
45844 # Set -z,relro.
45845 # Note this is only for shared objects.
45846 ac_ld_relro=no
45847 if test x"$with_gnu_ld" = x"yes"; then
45848 # cygwin and mingw uses PE, which has no ELF relro support,
45849 # multi target ld may confuse configure machinery
45850 case "$host" in
45851 *-*-cygwin*)
45853 *-*-mingw*)
45856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
45857 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
45858 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
45859 if test -n "$cxx_z_relo"; then
45860 OPT_LDFLAGS="-Wl,-z,relro"
45861 ac_ld_relro=yes
45863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
45864 $as_echo "$ac_ld_relro" >&6; }
45865 esac
45868 # Set linker optimization flags.
45869 if test x"$with_gnu_ld" = x"yes"; then
45870 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
45876 $as_echo "#define HAVE_FINITEF 1" >>confdefs.h
45878 $as_echo "#define HAVE_FINITE 1" >>confdefs.h
45880 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
45882 $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
45884 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
45886 $as_echo "#define HAVE_ISINFF 1" >>confdefs.h
45888 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
45890 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
45892 if test x"long_double_math_on_this_cpu" = x"yes"; then
45893 $as_echo "#define HAVE_FINITEL 1" >>confdefs.h
45895 $as_echo "#define HAVE_ISINFL 1" >>confdefs.h
45897 $as_echo "#define HAVE_ISNANL 1" >>confdefs.h
45900 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
45901 do :
45902 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45903 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
45904 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
45905 cat >>confdefs.h <<_ACEOF
45906 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45907 _ACEOF
45910 done
45912 for ac_func in timespec_get
45913 do :
45914 ac_fn_c_check_func "$LINENO" "timespec_get" "ac_cv_func_timespec_get"
45915 if test "x$ac_cv_func_timespec_get" = xyes; then :
45916 cat >>confdefs.h <<_ACEOF
45917 #define HAVE_TIMESPEC_GET 1
45918 _ACEOF
45921 done
45923 for ac_func in sockatmark
45924 do :
45925 ac_fn_c_check_func "$LINENO" "sockatmark" "ac_cv_func_sockatmark"
45926 if test "x$ac_cv_func_sockatmark" = xyes; then :
45927 cat >>confdefs.h <<_ACEOF
45928 #define HAVE_SOCKATMARK 1
45929 _ACEOF
45932 done
45935 *-qnx6.1* | *-qnx6.2*)
45936 SECTION_FLAGS='-ffunction-sections -fdata-sections'
45939 # If we're not using GNU ld, then there's no point in even trying these
45940 # tests. Check for that first. We should have already tested for gld
45941 # by now (in libtool), but require it now just to be safe...
45942 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
45943 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
45947 # The name set by libtool depends on the version of libtool. Shame on us
45948 # for depending on an impl detail, but c'est la vie. Older versions used
45949 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
45950 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
45951 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
45952 # set (hence we're using an older libtool), then set it.
45953 if test x${with_gnu_ld+set} != xset; then
45954 if test x${ac_cv_prog_gnu_ld+set} != xset; then
45955 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
45956 with_gnu_ld=no
45957 else
45958 with_gnu_ld=$ac_cv_prog_gnu_ld
45962 # Start by getting the version number. I think the libtool test already
45963 # does some of this, but throws away the result.
45964 glibcxx_ld_is_gold=no
45965 glibcxx_ld_is_mold=no
45966 if test x"$with_gnu_ld" = x"yes"; then
45967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
45968 $as_echo_n "checking for ld version... " >&6; }
45970 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
45971 glibcxx_ld_is_gold=yes
45972 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
45973 glibcxx_ld_is_mold=yes
45975 ldver=`$LD --version 2>/dev/null |
45976 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
45978 glibcxx_gnu_ld_version=`echo $ldver | \
45979 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
45980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
45981 $as_echo "$glibcxx_gnu_ld_version" >&6; }
45984 # Set --gc-sections.
45985 glibcxx_have_gc_sections=no
45986 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
45987 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
45988 glibcxx_have_gc_sections=yes
45990 else
45991 glibcxx_gcsections_min_ld=21602
45992 if test x"$with_gnu_ld" = x"yes" &&
45993 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
45994 glibcxx_have_gc_sections=yes
45997 if test "$glibcxx_have_gc_sections" = "yes"; then
45998 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
45999 # NB: This flag only works reliably after 2.16.1. Configure tests
46000 # for this are difficult, so hard wire a value that should work.
46002 ac_test_CFLAGS="${CFLAGS+set}"
46003 ac_save_CFLAGS="$CFLAGS"
46004 CFLAGS='-Wl,--gc-sections'
46006 # Check for -Wl,--gc-sections
46007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
46008 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
46009 if test x$gcc_no_link = xyes; then
46010 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
46012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46013 /* end confdefs.h. */
46014 int one(void) { return 1; }
46015 int two(void) { return 2; }
46018 main ()
46020 two();
46022 return 0;
46024 _ACEOF
46025 if ac_fn_c_try_link "$LINENO"; then :
46026 ac_gcsections=yes
46027 else
46028 ac_gcsections=no
46030 rm -f core conftest.err conftest.$ac_objext \
46031 conftest$ac_exeext conftest.$ac_ext
46032 if test "$ac_gcsections" = "yes"; then
46033 rm -f conftest.c
46034 touch conftest.c
46035 if $CC -c conftest.c; then
46036 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
46037 grep "Warning: gc-sections option ignored" > /dev/null; then
46038 ac_gcsections=no
46041 rm -f conftest.c conftest.o conftest
46043 if test "$ac_gcsections" = "yes"; then
46044 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
46046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
46047 $as_echo "$ac_gcsections" >&6; }
46049 if test "$ac_test_CFLAGS" = set; then
46050 CFLAGS="$ac_save_CFLAGS"
46051 else
46052 # this is the suspicious part
46053 CFLAGS=''
46057 # Set -z,relro.
46058 # Note this is only for shared objects.
46059 ac_ld_relro=no
46060 if test x"$with_gnu_ld" = x"yes"; then
46061 # cygwin and mingw uses PE, which has no ELF relro support,
46062 # multi target ld may confuse configure machinery
46063 case "$host" in
46064 *-*-cygwin*)
46066 *-*-mingw*)
46069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
46070 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
46071 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
46072 if test -n "$cxx_z_relo"; then
46073 OPT_LDFLAGS="-Wl,-z,relro"
46074 ac_ld_relro=yes
46076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
46077 $as_echo "$ac_ld_relro" >&6; }
46078 esac
46081 # Set linker optimization flags.
46082 if test x"$with_gnu_ld" = x"yes"; then
46083 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
46089 $as_echo "#define HAVE_COSF 1" >>confdefs.h
46091 $as_echo "#define HAVE_COSL 1" >>confdefs.h
46093 $as_echo "#define HAVE_COSHF 1" >>confdefs.h
46095 $as_echo "#define HAVE_COSHL 1" >>confdefs.h
46097 $as_echo "#define HAVE_LOGF 1" >>confdefs.h
46099 $as_echo "#define HAVE_LOGL 1" >>confdefs.h
46101 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
46103 $as_echo "#define HAVE_LOG10L 1" >>confdefs.h
46105 $as_echo "#define HAVE_SINF 1" >>confdefs.h
46107 $as_echo "#define HAVE_SINL 1" >>confdefs.h
46109 $as_echo "#define HAVE_SINHF 1" >>confdefs.h
46111 $as_echo "#define HAVE_SINHL 1" >>confdefs.h
46114 *-tpf)
46115 SECTION_FLAGS='-ffunction-sections -fdata-sections'
46116 SECTION_LDFLAGS='-Wl,--gc-sections $SECTION_LDFLAGS'
46118 $as_echo "#define HAVE_FINITE 1" >>confdefs.h
46120 $as_echo "#define HAVE_FINITEF 1" >>confdefs.h
46122 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
46124 $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
46126 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
46128 $as_echo "#define HAVE_ISINFF 1" >>confdefs.h
46130 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
46132 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
46134 $as_echo "#define HAVE_SINCOS 1" >>confdefs.h
46136 $as_echo "#define HAVE_SINCOSF 1" >>confdefs.h
46138 if test x"long_double_math_on_this_cpu" = x"yes"; then
46139 $as_echo "#define HAVE_FINITEL 1" >>confdefs.h
46141 $as_echo "#define HAVE_HYPOTL 1" >>confdefs.h
46143 $as_echo "#define HAVE_ISINFL 1" >>confdefs.h
46145 $as_echo "#define HAVE_ISNANL 1" >>confdefs.h
46149 *-*vms*)
46150 # Check for available headers.
46151 # Don't call GLIBCXX_CHECK_LINKER_FEATURES, VMS doesn't have a GNU ld
46153 ac_test_CXXFLAGS="${CXXFLAGS+set}"
46154 ac_save_CXXFLAGS="$CXXFLAGS"
46155 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
46157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
46158 $as_echo_n "checking for sin in -lm... " >&6; }
46159 if ${ac_cv_lib_m_sin+:} false; then :
46160 $as_echo_n "(cached) " >&6
46161 else
46162 ac_check_lib_save_LIBS=$LIBS
46163 LIBS="-lm $LIBS"
46164 if test x$gcc_no_link = xyes; then
46165 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
46167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46168 /* end confdefs.h. */
46170 /* Override any GCC internal prototype to avoid an error.
46171 Use char because int might match the return type of a GCC
46172 builtin and then its argument prototype would still apply. */
46173 #ifdef __cplusplus
46174 extern "C"
46175 #endif
46176 char sin ();
46178 main ()
46180 return sin ();
46182 return 0;
46184 _ACEOF
46185 if ac_fn_c_try_link "$LINENO"; then :
46186 ac_cv_lib_m_sin=yes
46187 else
46188 ac_cv_lib_m_sin=no
46190 rm -f core conftest.err conftest.$ac_objext \
46191 conftest$ac_exeext conftest.$ac_ext
46192 LIBS=$ac_check_lib_save_LIBS
46194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
46195 $as_echo "$ac_cv_lib_m_sin" >&6; }
46196 if test "x$ac_cv_lib_m_sin" = xyes; then :
46197 libm="-lm"
46200 ac_save_LIBS="$LIBS"
46201 LIBS="$LIBS $libm"
46205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
46206 $as_echo_n "checking for isinf declaration... " >&6; }
46207 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
46208 if ${glibcxx_cv_func_isinf_use+:} false; then :
46209 $as_echo_n "(cached) " >&6
46210 else
46213 ac_ext=cpp
46214 ac_cpp='$CXXCPP $CPPFLAGS'
46215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46220 /* end confdefs.h. */
46221 #include <math.h>
46222 #ifdef HAVE_IEEEFP_H
46223 #include <ieeefp.h>
46224 #endif
46227 main ()
46229 isinf(0);
46231 return 0;
46233 _ACEOF
46234 if ac_fn_cxx_try_compile "$LINENO"; then :
46235 glibcxx_cv_func_isinf_use=yes
46236 else
46237 glibcxx_cv_func_isinf_use=no
46239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46240 ac_ext=c
46241 ac_cpp='$CPP $CPPFLAGS'
46242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
46251 $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
46253 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
46254 for ac_func in isinf
46255 do :
46256 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
46257 if test "x$ac_cv_func_isinf" = xyes; then :
46258 cat >>confdefs.h <<_ACEOF
46259 #define HAVE_ISINF 1
46260 _ACEOF
46263 done
46269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
46270 $as_echo_n "checking for isnan declaration... " >&6; }
46271 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
46272 if ${glibcxx_cv_func_isnan_use+:} false; then :
46273 $as_echo_n "(cached) " >&6
46274 else
46277 ac_ext=cpp
46278 ac_cpp='$CXXCPP $CPPFLAGS'
46279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46284 /* end confdefs.h. */
46285 #include <math.h>
46286 #ifdef HAVE_IEEEFP_H
46287 #include <ieeefp.h>
46288 #endif
46291 main ()
46293 isnan(0);
46295 return 0;
46297 _ACEOF
46298 if ac_fn_cxx_try_compile "$LINENO"; then :
46299 glibcxx_cv_func_isnan_use=yes
46300 else
46301 glibcxx_cv_func_isnan_use=no
46303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46304 ac_ext=c
46305 ac_cpp='$CPP $CPPFLAGS'
46306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
46315 $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
46317 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
46318 for ac_func in isnan
46319 do :
46320 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
46321 if test "x$ac_cv_func_isnan" = xyes; then :
46322 cat >>confdefs.h <<_ACEOF
46323 #define HAVE_ISNAN 1
46324 _ACEOF
46327 done
46333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
46334 $as_echo_n "checking for finite declaration... " >&6; }
46335 if test x${glibcxx_cv_func_finite_use+set} != xset; then
46336 if ${glibcxx_cv_func_finite_use+:} false; then :
46337 $as_echo_n "(cached) " >&6
46338 else
46341 ac_ext=cpp
46342 ac_cpp='$CXXCPP $CPPFLAGS'
46343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46348 /* end confdefs.h. */
46349 #include <math.h>
46350 #ifdef HAVE_IEEEFP_H
46351 #include <ieeefp.h>
46352 #endif
46355 main ()
46357 finite(0);
46359 return 0;
46361 _ACEOF
46362 if ac_fn_cxx_try_compile "$LINENO"; then :
46363 glibcxx_cv_func_finite_use=yes
46364 else
46365 glibcxx_cv_func_finite_use=no
46367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46368 ac_ext=c
46369 ac_cpp='$CPP $CPPFLAGS'
46370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
46379 $as_echo "$glibcxx_cv_func_finite_use" >&6; }
46381 if test x$glibcxx_cv_func_finite_use = x"yes"; then
46382 for ac_func in finite
46383 do :
46384 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
46385 if test "x$ac_cv_func_finite" = xyes; then :
46386 cat >>confdefs.h <<_ACEOF
46387 #define HAVE_FINITE 1
46388 _ACEOF
46391 done
46397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
46398 $as_echo_n "checking for sincos declaration... " >&6; }
46399 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
46400 if ${glibcxx_cv_func_sincos_use+:} false; then :
46401 $as_echo_n "(cached) " >&6
46402 else
46405 ac_ext=cpp
46406 ac_cpp='$CXXCPP $CPPFLAGS'
46407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46412 /* end confdefs.h. */
46413 #include <math.h>
46415 main ()
46417 sincos(0, 0, 0);
46419 return 0;
46421 _ACEOF
46422 if ac_fn_cxx_try_compile "$LINENO"; then :
46423 glibcxx_cv_func_sincos_use=yes
46424 else
46425 glibcxx_cv_func_sincos_use=no
46427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46428 ac_ext=c
46429 ac_cpp='$CPP $CPPFLAGS'
46430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
46439 $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
46441 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
46442 for ac_func in sincos
46443 do :
46444 ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
46445 if test "x$ac_cv_func_sincos" = xyes; then :
46446 cat >>confdefs.h <<_ACEOF
46447 #define HAVE_SINCOS 1
46448 _ACEOF
46451 done
46457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
46458 $as_echo_n "checking for fpclass declaration... " >&6; }
46459 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
46460 if ${glibcxx_cv_func_fpclass_use+:} false; then :
46461 $as_echo_n "(cached) " >&6
46462 else
46465 ac_ext=cpp
46466 ac_cpp='$CXXCPP $CPPFLAGS'
46467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46472 /* end confdefs.h. */
46473 #include <math.h>
46474 #ifdef HAVE_IEEEFP_H
46475 #include <ieeefp.h>
46476 #endif
46479 main ()
46481 fpclass(0);
46483 return 0;
46485 _ACEOF
46486 if ac_fn_cxx_try_compile "$LINENO"; then :
46487 glibcxx_cv_func_fpclass_use=yes
46488 else
46489 glibcxx_cv_func_fpclass_use=no
46491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46492 ac_ext=c
46493 ac_cpp='$CPP $CPPFLAGS'
46494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
46503 $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
46505 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
46506 for ac_func in fpclass
46507 do :
46508 ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
46509 if test "x$ac_cv_func_fpclass" = xyes; then :
46510 cat >>confdefs.h <<_ACEOF
46511 #define HAVE_FPCLASS 1
46512 _ACEOF
46515 done
46521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
46522 $as_echo_n "checking for qfpclass declaration... " >&6; }
46523 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
46524 if ${glibcxx_cv_func_qfpclass_use+:} false; then :
46525 $as_echo_n "(cached) " >&6
46526 else
46529 ac_ext=cpp
46530 ac_cpp='$CXXCPP $CPPFLAGS'
46531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46536 /* end confdefs.h. */
46537 #include <math.h>
46538 #ifdef HAVE_IEEEFP_H
46539 #include <ieeefp.h>
46540 #endif
46543 main ()
46545 qfpclass(0);
46547 return 0;
46549 _ACEOF
46550 if ac_fn_cxx_try_compile "$LINENO"; then :
46551 glibcxx_cv_func_qfpclass_use=yes
46552 else
46553 glibcxx_cv_func_qfpclass_use=no
46555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46556 ac_ext=c
46557 ac_cpp='$CPP $CPPFLAGS'
46558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
46567 $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
46569 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
46570 for ac_func in qfpclass
46571 do :
46572 ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
46573 if test "x$ac_cv_func_qfpclass" = xyes; then :
46574 cat >>confdefs.h <<_ACEOF
46575 #define HAVE_QFPCLASS 1
46576 _ACEOF
46579 done
46585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
46586 $as_echo_n "checking for hypot declaration... " >&6; }
46587 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
46588 if ${glibcxx_cv_func_hypot_use+:} false; then :
46589 $as_echo_n "(cached) " >&6
46590 else
46593 ac_ext=cpp
46594 ac_cpp='$CXXCPP $CPPFLAGS'
46595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46600 /* end confdefs.h. */
46601 #include <math.h>
46603 main ()
46605 hypot(0, 0);
46607 return 0;
46609 _ACEOF
46610 if ac_fn_cxx_try_compile "$LINENO"; then :
46611 glibcxx_cv_func_hypot_use=yes
46612 else
46613 glibcxx_cv_func_hypot_use=no
46615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46616 ac_ext=c
46617 ac_cpp='$CPP $CPPFLAGS'
46618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
46627 $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
46629 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
46630 for ac_func in hypot
46631 do :
46632 ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
46633 if test "x$ac_cv_func_hypot" = xyes; then :
46634 cat >>confdefs.h <<_ACEOF
46635 #define HAVE_HYPOT 1
46636 _ACEOF
46639 done
46645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
46646 $as_echo_n "checking for float trig functions... " >&6; }
46647 if ${glibcxx_cv_func_float_trig_use+:} false; then :
46648 $as_echo_n "(cached) " >&6
46649 else
46652 ac_ext=cpp
46653 ac_cpp='$CXXCPP $CPPFLAGS'
46654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46659 /* end confdefs.h. */
46660 #include <math.h>
46662 main ()
46664 acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
46666 return 0;
46668 _ACEOF
46669 if ac_fn_cxx_try_compile "$LINENO"; then :
46670 glibcxx_cv_func_float_trig_use=yes
46671 else
46672 glibcxx_cv_func_float_trig_use=no
46674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46675 ac_ext=c
46676 ac_cpp='$CPP $CPPFLAGS'
46677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
46684 $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
46685 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
46686 for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
46687 do :
46688 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46689 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
46690 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
46691 cat >>confdefs.h <<_ACEOF
46692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
46693 _ACEOF
46696 done
46702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
46703 $as_echo_n "checking for float round functions... " >&6; }
46704 if ${glibcxx_cv_func_float_round_use+:} false; then :
46705 $as_echo_n "(cached) " >&6
46706 else
46709 ac_ext=cpp
46710 ac_cpp='$CXXCPP $CPPFLAGS'
46711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46716 /* end confdefs.h. */
46717 #include <math.h>
46719 main ()
46721 ceilf (0); floorf (0);
46723 return 0;
46725 _ACEOF
46726 if ac_fn_cxx_try_compile "$LINENO"; then :
46727 glibcxx_cv_func_float_round_use=yes
46728 else
46729 glibcxx_cv_func_float_round_use=no
46731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46732 ac_ext=c
46733 ac_cpp='$CPP $CPPFLAGS'
46734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
46741 $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
46742 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
46743 for ac_func in ceilf floorf
46744 do :
46745 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46746 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
46747 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
46748 cat >>confdefs.h <<_ACEOF
46749 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
46750 _ACEOF
46753 done
46760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
46761 $as_echo_n "checking for expf declaration... " >&6; }
46762 if test x${glibcxx_cv_func_expf_use+set} != xset; then
46763 if ${glibcxx_cv_func_expf_use+:} false; then :
46764 $as_echo_n "(cached) " >&6
46765 else
46768 ac_ext=cpp
46769 ac_cpp='$CXXCPP $CPPFLAGS'
46770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46775 /* end confdefs.h. */
46776 #include <math.h>
46777 #ifdef HAVE_IEEEFP_H
46778 #include <ieeefp.h>
46779 #endif
46782 main ()
46784 expf(0);
46786 return 0;
46788 _ACEOF
46789 if ac_fn_cxx_try_compile "$LINENO"; then :
46790 glibcxx_cv_func_expf_use=yes
46791 else
46792 glibcxx_cv_func_expf_use=no
46794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46795 ac_ext=c
46796 ac_cpp='$CPP $CPPFLAGS'
46797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
46806 $as_echo "$glibcxx_cv_func_expf_use" >&6; }
46808 if test x$glibcxx_cv_func_expf_use = x"yes"; then
46809 for ac_func in expf
46810 do :
46811 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
46812 if test "x$ac_cv_func_expf" = xyes; then :
46813 cat >>confdefs.h <<_ACEOF
46814 #define HAVE_EXPF 1
46815 _ACEOF
46818 done
46824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
46825 $as_echo_n "checking for isnanf declaration... " >&6; }
46826 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
46827 if ${glibcxx_cv_func_isnanf_use+:} false; then :
46828 $as_echo_n "(cached) " >&6
46829 else
46832 ac_ext=cpp
46833 ac_cpp='$CXXCPP $CPPFLAGS'
46834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46839 /* end confdefs.h. */
46840 #include <math.h>
46841 #ifdef HAVE_IEEEFP_H
46842 #include <ieeefp.h>
46843 #endif
46846 main ()
46848 isnanf(0);
46850 return 0;
46852 _ACEOF
46853 if ac_fn_cxx_try_compile "$LINENO"; then :
46854 glibcxx_cv_func_isnanf_use=yes
46855 else
46856 glibcxx_cv_func_isnanf_use=no
46858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46859 ac_ext=c
46860 ac_cpp='$CPP $CPPFLAGS'
46861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
46870 $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
46872 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
46873 for ac_func in isnanf
46874 do :
46875 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
46876 if test "x$ac_cv_func_isnanf" = xyes; then :
46877 cat >>confdefs.h <<_ACEOF
46878 #define HAVE_ISNANF 1
46879 _ACEOF
46882 done
46888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
46889 $as_echo_n "checking for isinff declaration... " >&6; }
46890 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
46891 if ${glibcxx_cv_func_isinff_use+:} false; then :
46892 $as_echo_n "(cached) " >&6
46893 else
46896 ac_ext=cpp
46897 ac_cpp='$CXXCPP $CPPFLAGS'
46898 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46899 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46900 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46903 /* end confdefs.h. */
46904 #include <math.h>
46905 #ifdef HAVE_IEEEFP_H
46906 #include <ieeefp.h>
46907 #endif
46910 main ()
46912 isinff(0);
46914 return 0;
46916 _ACEOF
46917 if ac_fn_cxx_try_compile "$LINENO"; then :
46918 glibcxx_cv_func_isinff_use=yes
46919 else
46920 glibcxx_cv_func_isinff_use=no
46922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46923 ac_ext=c
46924 ac_cpp='$CPP $CPPFLAGS'
46925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
46934 $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
46936 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
46937 for ac_func in isinff
46938 do :
46939 ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
46940 if test "x$ac_cv_func_isinff" = xyes; then :
46941 cat >>confdefs.h <<_ACEOF
46942 #define HAVE_ISINFF 1
46943 _ACEOF
46946 done
46952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
46953 $as_echo_n "checking for atan2f declaration... " >&6; }
46954 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
46955 if ${glibcxx_cv_func_atan2f_use+:} false; then :
46956 $as_echo_n "(cached) " >&6
46957 else
46960 ac_ext=cpp
46961 ac_cpp='$CXXCPP $CPPFLAGS'
46962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46967 /* end confdefs.h. */
46968 #include <math.h>
46970 main ()
46972 atan2f(0, 0);
46974 return 0;
46976 _ACEOF
46977 if ac_fn_cxx_try_compile "$LINENO"; then :
46978 glibcxx_cv_func_atan2f_use=yes
46979 else
46980 glibcxx_cv_func_atan2f_use=no
46982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46983 ac_ext=c
46984 ac_cpp='$CPP $CPPFLAGS'
46985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
46994 $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
46996 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
46997 for ac_func in atan2f
46998 do :
46999 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
47000 if test "x$ac_cv_func_atan2f" = xyes; then :
47001 cat >>confdefs.h <<_ACEOF
47002 #define HAVE_ATAN2F 1
47003 _ACEOF
47006 done
47012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
47013 $as_echo_n "checking for fabsf declaration... " >&6; }
47014 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
47015 if ${glibcxx_cv_func_fabsf_use+:} false; then :
47016 $as_echo_n "(cached) " >&6
47017 else
47020 ac_ext=cpp
47021 ac_cpp='$CXXCPP $CPPFLAGS'
47022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47027 /* end confdefs.h. */
47028 #include <math.h>
47029 #ifdef HAVE_IEEEFP_H
47030 #include <ieeefp.h>
47031 #endif
47034 main ()
47036 fabsf(0);
47038 return 0;
47040 _ACEOF
47041 if ac_fn_cxx_try_compile "$LINENO"; then :
47042 glibcxx_cv_func_fabsf_use=yes
47043 else
47044 glibcxx_cv_func_fabsf_use=no
47046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47047 ac_ext=c
47048 ac_cpp='$CPP $CPPFLAGS'
47049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
47058 $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
47060 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
47061 for ac_func in fabsf
47062 do :
47063 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
47064 if test "x$ac_cv_func_fabsf" = xyes; then :
47065 cat >>confdefs.h <<_ACEOF
47066 #define HAVE_FABSF 1
47067 _ACEOF
47070 done
47076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
47077 $as_echo_n "checking for fmodf declaration... " >&6; }
47078 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
47079 if ${glibcxx_cv_func_fmodf_use+:} false; then :
47080 $as_echo_n "(cached) " >&6
47081 else
47084 ac_ext=cpp
47085 ac_cpp='$CXXCPP $CPPFLAGS'
47086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47091 /* end confdefs.h. */
47092 #include <math.h>
47094 main ()
47096 fmodf(0, 0);
47098 return 0;
47100 _ACEOF
47101 if ac_fn_cxx_try_compile "$LINENO"; then :
47102 glibcxx_cv_func_fmodf_use=yes
47103 else
47104 glibcxx_cv_func_fmodf_use=no
47106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47107 ac_ext=c
47108 ac_cpp='$CPP $CPPFLAGS'
47109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
47118 $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
47120 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
47121 for ac_func in fmodf
47122 do :
47123 ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
47124 if test "x$ac_cv_func_fmodf" = xyes; then :
47125 cat >>confdefs.h <<_ACEOF
47126 #define HAVE_FMODF 1
47127 _ACEOF
47130 done
47136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
47137 $as_echo_n "checking for frexpf declaration... " >&6; }
47138 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
47139 if ${glibcxx_cv_func_frexpf_use+:} false; then :
47140 $as_echo_n "(cached) " >&6
47141 else
47144 ac_ext=cpp
47145 ac_cpp='$CXXCPP $CPPFLAGS'
47146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47151 /* end confdefs.h. */
47152 #include <math.h>
47154 main ()
47156 frexpf(0, 0);
47158 return 0;
47160 _ACEOF
47161 if ac_fn_cxx_try_compile "$LINENO"; then :
47162 glibcxx_cv_func_frexpf_use=yes
47163 else
47164 glibcxx_cv_func_frexpf_use=no
47166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47167 ac_ext=c
47168 ac_cpp='$CPP $CPPFLAGS'
47169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
47178 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
47180 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
47181 for ac_func in frexpf
47182 do :
47183 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
47184 if test "x$ac_cv_func_frexpf" = xyes; then :
47185 cat >>confdefs.h <<_ACEOF
47186 #define HAVE_FREXPF 1
47187 _ACEOF
47190 done
47196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
47197 $as_echo_n "checking for hypotf declaration... " >&6; }
47198 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
47199 if ${glibcxx_cv_func_hypotf_use+:} false; then :
47200 $as_echo_n "(cached) " >&6
47201 else
47204 ac_ext=cpp
47205 ac_cpp='$CXXCPP $CPPFLAGS'
47206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47211 /* end confdefs.h. */
47212 #include <math.h>
47214 main ()
47216 hypotf(0, 0);
47218 return 0;
47220 _ACEOF
47221 if ac_fn_cxx_try_compile "$LINENO"; then :
47222 glibcxx_cv_func_hypotf_use=yes
47223 else
47224 glibcxx_cv_func_hypotf_use=no
47226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47227 ac_ext=c
47228 ac_cpp='$CPP $CPPFLAGS'
47229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
47238 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
47240 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
47241 for ac_func in hypotf
47242 do :
47243 ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
47244 if test "x$ac_cv_func_hypotf" = xyes; then :
47245 cat >>confdefs.h <<_ACEOF
47246 #define HAVE_HYPOTF 1
47247 _ACEOF
47250 done
47256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
47257 $as_echo_n "checking for ldexpf declaration... " >&6; }
47258 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
47259 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
47260 $as_echo_n "(cached) " >&6
47261 else
47264 ac_ext=cpp
47265 ac_cpp='$CXXCPP $CPPFLAGS'
47266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47271 /* end confdefs.h. */
47272 #include <math.h>
47274 main ()
47276 ldexpf(0, 0);
47278 return 0;
47280 _ACEOF
47281 if ac_fn_cxx_try_compile "$LINENO"; then :
47282 glibcxx_cv_func_ldexpf_use=yes
47283 else
47284 glibcxx_cv_func_ldexpf_use=no
47286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47287 ac_ext=c
47288 ac_cpp='$CPP $CPPFLAGS'
47289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
47298 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
47300 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
47301 for ac_func in ldexpf
47302 do :
47303 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
47304 if test "x$ac_cv_func_ldexpf" = xyes; then :
47305 cat >>confdefs.h <<_ACEOF
47306 #define HAVE_LDEXPF 1
47307 _ACEOF
47310 done
47316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
47317 $as_echo_n "checking for logf declaration... " >&6; }
47318 if test x${glibcxx_cv_func_logf_use+set} != xset; then
47319 if ${glibcxx_cv_func_logf_use+:} false; then :
47320 $as_echo_n "(cached) " >&6
47321 else
47324 ac_ext=cpp
47325 ac_cpp='$CXXCPP $CPPFLAGS'
47326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47331 /* end confdefs.h. */
47332 #include <math.h>
47333 #ifdef HAVE_IEEEFP_H
47334 #include <ieeefp.h>
47335 #endif
47338 main ()
47340 logf(0);
47342 return 0;
47344 _ACEOF
47345 if ac_fn_cxx_try_compile "$LINENO"; then :
47346 glibcxx_cv_func_logf_use=yes
47347 else
47348 glibcxx_cv_func_logf_use=no
47350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47351 ac_ext=c
47352 ac_cpp='$CPP $CPPFLAGS'
47353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
47362 $as_echo "$glibcxx_cv_func_logf_use" >&6; }
47364 if test x$glibcxx_cv_func_logf_use = x"yes"; then
47365 for ac_func in logf
47366 do :
47367 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
47368 if test "x$ac_cv_func_logf" = xyes; then :
47369 cat >>confdefs.h <<_ACEOF
47370 #define HAVE_LOGF 1
47371 _ACEOF
47374 done
47380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
47381 $as_echo_n "checking for log10f declaration... " >&6; }
47382 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
47383 if ${glibcxx_cv_func_log10f_use+:} false; then :
47384 $as_echo_n "(cached) " >&6
47385 else
47388 ac_ext=cpp
47389 ac_cpp='$CXXCPP $CPPFLAGS'
47390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47395 /* end confdefs.h. */
47396 #include <math.h>
47397 #ifdef HAVE_IEEEFP_H
47398 #include <ieeefp.h>
47399 #endif
47402 main ()
47404 log10f(0);
47406 return 0;
47408 _ACEOF
47409 if ac_fn_cxx_try_compile "$LINENO"; then :
47410 glibcxx_cv_func_log10f_use=yes
47411 else
47412 glibcxx_cv_func_log10f_use=no
47414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47415 ac_ext=c
47416 ac_cpp='$CPP $CPPFLAGS'
47417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
47426 $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
47428 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
47429 for ac_func in log10f
47430 do :
47431 ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
47432 if test "x$ac_cv_func_log10f" = xyes; then :
47433 cat >>confdefs.h <<_ACEOF
47434 #define HAVE_LOG10F 1
47435 _ACEOF
47438 done
47444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
47445 $as_echo_n "checking for modff declaration... " >&6; }
47446 if test x${glibcxx_cv_func_modff_use+set} != xset; then
47447 if ${glibcxx_cv_func_modff_use+:} false; then :
47448 $as_echo_n "(cached) " >&6
47449 else
47452 ac_ext=cpp
47453 ac_cpp='$CXXCPP $CPPFLAGS'
47454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47459 /* end confdefs.h. */
47460 #include <math.h>
47462 main ()
47464 modff(0, 0);
47466 return 0;
47468 _ACEOF
47469 if ac_fn_cxx_try_compile "$LINENO"; then :
47470 glibcxx_cv_func_modff_use=yes
47471 else
47472 glibcxx_cv_func_modff_use=no
47474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47475 ac_ext=c
47476 ac_cpp='$CPP $CPPFLAGS'
47477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
47486 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
47488 if test x$glibcxx_cv_func_modff_use = x"yes"; then
47489 for ac_func in modff
47490 do :
47491 ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
47492 if test "x$ac_cv_func_modff" = xyes; then :
47493 cat >>confdefs.h <<_ACEOF
47494 #define HAVE_MODFF 1
47495 _ACEOF
47498 done
47504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
47505 $as_echo_n "checking for modf declaration... " >&6; }
47506 if test x${glibcxx_cv_func_modf_use+set} != xset; then
47507 if ${glibcxx_cv_func_modf_use+:} false; then :
47508 $as_echo_n "(cached) " >&6
47509 else
47512 ac_ext=cpp
47513 ac_cpp='$CXXCPP $CPPFLAGS'
47514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47519 /* end confdefs.h. */
47520 #include <math.h>
47522 main ()
47524 modf(0, 0);
47526 return 0;
47528 _ACEOF
47529 if ac_fn_cxx_try_compile "$LINENO"; then :
47530 glibcxx_cv_func_modf_use=yes
47531 else
47532 glibcxx_cv_func_modf_use=no
47534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47535 ac_ext=c
47536 ac_cpp='$CPP $CPPFLAGS'
47537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
47546 $as_echo "$glibcxx_cv_func_modf_use" >&6; }
47548 if test x$glibcxx_cv_func_modf_use = x"yes"; then
47549 for ac_func in modf
47550 do :
47551 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
47552 if test "x$ac_cv_func_modf" = xyes; then :
47553 cat >>confdefs.h <<_ACEOF
47554 #define HAVE_MODF 1
47555 _ACEOF
47558 done
47564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
47565 $as_echo_n "checking for powf declaration... " >&6; }
47566 if test x${glibcxx_cv_func_powf_use+set} != xset; then
47567 if ${glibcxx_cv_func_powf_use+:} false; then :
47568 $as_echo_n "(cached) " >&6
47569 else
47572 ac_ext=cpp
47573 ac_cpp='$CXXCPP $CPPFLAGS'
47574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47579 /* end confdefs.h. */
47580 #include <math.h>
47582 main ()
47584 powf(0, 0);
47586 return 0;
47588 _ACEOF
47589 if ac_fn_cxx_try_compile "$LINENO"; then :
47590 glibcxx_cv_func_powf_use=yes
47591 else
47592 glibcxx_cv_func_powf_use=no
47594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47595 ac_ext=c
47596 ac_cpp='$CPP $CPPFLAGS'
47597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
47606 $as_echo "$glibcxx_cv_func_powf_use" >&6; }
47608 if test x$glibcxx_cv_func_powf_use = x"yes"; then
47609 for ac_func in powf
47610 do :
47611 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
47612 if test "x$ac_cv_func_powf" = xyes; then :
47613 cat >>confdefs.h <<_ACEOF
47614 #define HAVE_POWF 1
47615 _ACEOF
47618 done
47624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
47625 $as_echo_n "checking for sqrtf declaration... " >&6; }
47626 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
47627 if ${glibcxx_cv_func_sqrtf_use+:} false; then :
47628 $as_echo_n "(cached) " >&6
47629 else
47632 ac_ext=cpp
47633 ac_cpp='$CXXCPP $CPPFLAGS'
47634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47639 /* end confdefs.h. */
47640 #include <math.h>
47641 #ifdef HAVE_IEEEFP_H
47642 #include <ieeefp.h>
47643 #endif
47646 main ()
47648 sqrtf(0);
47650 return 0;
47652 _ACEOF
47653 if ac_fn_cxx_try_compile "$LINENO"; then :
47654 glibcxx_cv_func_sqrtf_use=yes
47655 else
47656 glibcxx_cv_func_sqrtf_use=no
47658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47659 ac_ext=c
47660 ac_cpp='$CPP $CPPFLAGS'
47661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
47670 $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
47672 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
47673 for ac_func in sqrtf
47674 do :
47675 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
47676 if test "x$ac_cv_func_sqrtf" = xyes; then :
47677 cat >>confdefs.h <<_ACEOF
47678 #define HAVE_SQRTF 1
47679 _ACEOF
47682 done
47688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
47689 $as_echo_n "checking for sincosf declaration... " >&6; }
47690 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
47691 if ${glibcxx_cv_func_sincosf_use+:} false; then :
47692 $as_echo_n "(cached) " >&6
47693 else
47696 ac_ext=cpp
47697 ac_cpp='$CXXCPP $CPPFLAGS'
47698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47703 /* end confdefs.h. */
47704 #include <math.h>
47706 main ()
47708 sincosf(0, 0, 0);
47710 return 0;
47712 _ACEOF
47713 if ac_fn_cxx_try_compile "$LINENO"; then :
47714 glibcxx_cv_func_sincosf_use=yes
47715 else
47716 glibcxx_cv_func_sincosf_use=no
47718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47719 ac_ext=c
47720 ac_cpp='$CPP $CPPFLAGS'
47721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
47730 $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
47732 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
47733 for ac_func in sincosf
47734 do :
47735 ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
47736 if test "x$ac_cv_func_sincosf" = xyes; then :
47737 cat >>confdefs.h <<_ACEOF
47738 #define HAVE_SINCOSF 1
47739 _ACEOF
47742 done
47748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
47749 $as_echo_n "checking for finitef declaration... " >&6; }
47750 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
47751 if ${glibcxx_cv_func_finitef_use+:} false; then :
47752 $as_echo_n "(cached) " >&6
47753 else
47756 ac_ext=cpp
47757 ac_cpp='$CXXCPP $CPPFLAGS'
47758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47763 /* end confdefs.h. */
47764 #include <math.h>
47765 #ifdef HAVE_IEEEFP_H
47766 #include <ieeefp.h>
47767 #endif
47770 main ()
47772 finitef(0);
47774 return 0;
47776 _ACEOF
47777 if ac_fn_cxx_try_compile "$LINENO"; then :
47778 glibcxx_cv_func_finitef_use=yes
47779 else
47780 glibcxx_cv_func_finitef_use=no
47782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47783 ac_ext=c
47784 ac_cpp='$CPP $CPPFLAGS'
47785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
47794 $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
47796 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
47797 for ac_func in finitef
47798 do :
47799 ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
47800 if test "x$ac_cv_func_finitef" = xyes; then :
47801 cat >>confdefs.h <<_ACEOF
47802 #define HAVE_FINITEF 1
47803 _ACEOF
47806 done
47812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
47813 $as_echo_n "checking for long double trig functions... " >&6; }
47814 if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
47815 $as_echo_n "(cached) " >&6
47816 else
47819 ac_ext=cpp
47820 ac_cpp='$CXXCPP $CPPFLAGS'
47821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47826 /* end confdefs.h. */
47827 #include <math.h>
47829 main ()
47831 acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
47833 return 0;
47835 _ACEOF
47836 if ac_fn_cxx_try_compile "$LINENO"; then :
47837 glibcxx_cv_func_long_double_trig_use=yes
47838 else
47839 glibcxx_cv_func_long_double_trig_use=no
47841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47842 ac_ext=c
47843 ac_cpp='$CPP $CPPFLAGS'
47844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
47851 $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
47852 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
47853 for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
47854 do :
47855 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47856 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
47857 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
47858 cat >>confdefs.h <<_ACEOF
47859 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47860 _ACEOF
47863 done
47869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
47870 $as_echo_n "checking for long double round functions... " >&6; }
47871 if ${glibcxx_cv_func_long_double_round_use+:} false; then :
47872 $as_echo_n "(cached) " >&6
47873 else
47876 ac_ext=cpp
47877 ac_cpp='$CXXCPP $CPPFLAGS'
47878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47883 /* end confdefs.h. */
47884 #include <math.h>
47886 main ()
47888 ceill (0); floorl (0);
47890 return 0;
47892 _ACEOF
47893 if ac_fn_cxx_try_compile "$LINENO"; then :
47894 glibcxx_cv_func_long_double_round_use=yes
47895 else
47896 glibcxx_cv_func_long_double_round_use=no
47898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47899 ac_ext=c
47900 ac_cpp='$CPP $CPPFLAGS'
47901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
47908 $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
47909 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
47910 for ac_func in ceill floorl
47911 do :
47912 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47913 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
47914 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
47915 cat >>confdefs.h <<_ACEOF
47916 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47917 _ACEOF
47920 done
47927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
47928 $as_echo_n "checking for isnanl declaration... " >&6; }
47929 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
47930 if ${glibcxx_cv_func_isnanl_use+:} false; then :
47931 $as_echo_n "(cached) " >&6
47932 else
47935 ac_ext=cpp
47936 ac_cpp='$CXXCPP $CPPFLAGS'
47937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47942 /* end confdefs.h. */
47943 #include <math.h>
47944 #ifdef HAVE_IEEEFP_H
47945 #include <ieeefp.h>
47946 #endif
47949 main ()
47951 isnanl(0);
47953 return 0;
47955 _ACEOF
47956 if ac_fn_cxx_try_compile "$LINENO"; then :
47957 glibcxx_cv_func_isnanl_use=yes
47958 else
47959 glibcxx_cv_func_isnanl_use=no
47961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47962 ac_ext=c
47963 ac_cpp='$CPP $CPPFLAGS'
47964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
47973 $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
47975 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
47976 for ac_func in isnanl
47977 do :
47978 ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
47979 if test "x$ac_cv_func_isnanl" = xyes; then :
47980 cat >>confdefs.h <<_ACEOF
47981 #define HAVE_ISNANL 1
47982 _ACEOF
47985 done
47991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
47992 $as_echo_n "checking for isinfl declaration... " >&6; }
47993 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
47994 if ${glibcxx_cv_func_isinfl_use+:} false; then :
47995 $as_echo_n "(cached) " >&6
47996 else
47999 ac_ext=cpp
48000 ac_cpp='$CXXCPP $CPPFLAGS'
48001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48006 /* end confdefs.h. */
48007 #include <math.h>
48008 #ifdef HAVE_IEEEFP_H
48009 #include <ieeefp.h>
48010 #endif
48013 main ()
48015 isinfl(0);
48017 return 0;
48019 _ACEOF
48020 if ac_fn_cxx_try_compile "$LINENO"; then :
48021 glibcxx_cv_func_isinfl_use=yes
48022 else
48023 glibcxx_cv_func_isinfl_use=no
48025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48026 ac_ext=c
48027 ac_cpp='$CPP $CPPFLAGS'
48028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
48037 $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
48039 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
48040 for ac_func in isinfl
48041 do :
48042 ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
48043 if test "x$ac_cv_func_isinfl" = xyes; then :
48044 cat >>confdefs.h <<_ACEOF
48045 #define HAVE_ISINFL 1
48046 _ACEOF
48049 done
48055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
48056 $as_echo_n "checking for atan2l declaration... " >&6; }
48057 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
48058 if ${glibcxx_cv_func_atan2l_use+:} false; then :
48059 $as_echo_n "(cached) " >&6
48060 else
48063 ac_ext=cpp
48064 ac_cpp='$CXXCPP $CPPFLAGS'
48065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48070 /* end confdefs.h. */
48071 #include <math.h>
48073 main ()
48075 atan2l(0, 0);
48077 return 0;
48079 _ACEOF
48080 if ac_fn_cxx_try_compile "$LINENO"; then :
48081 glibcxx_cv_func_atan2l_use=yes
48082 else
48083 glibcxx_cv_func_atan2l_use=no
48085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48086 ac_ext=c
48087 ac_cpp='$CPP $CPPFLAGS'
48088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
48097 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
48099 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
48100 for ac_func in atan2l
48101 do :
48102 ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
48103 if test "x$ac_cv_func_atan2l" = xyes; then :
48104 cat >>confdefs.h <<_ACEOF
48105 #define HAVE_ATAN2L 1
48106 _ACEOF
48109 done
48115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
48116 $as_echo_n "checking for expl declaration... " >&6; }
48117 if test x${glibcxx_cv_func_expl_use+set} != xset; then
48118 if ${glibcxx_cv_func_expl_use+:} false; then :
48119 $as_echo_n "(cached) " >&6
48120 else
48123 ac_ext=cpp
48124 ac_cpp='$CXXCPP $CPPFLAGS'
48125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48130 /* end confdefs.h. */
48131 #include <math.h>
48132 #ifdef HAVE_IEEEFP_H
48133 #include <ieeefp.h>
48134 #endif
48137 main ()
48139 expl(0);
48141 return 0;
48143 _ACEOF
48144 if ac_fn_cxx_try_compile "$LINENO"; then :
48145 glibcxx_cv_func_expl_use=yes
48146 else
48147 glibcxx_cv_func_expl_use=no
48149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48150 ac_ext=c
48151 ac_cpp='$CPP $CPPFLAGS'
48152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
48161 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
48163 if test x$glibcxx_cv_func_expl_use = x"yes"; then
48164 for ac_func in expl
48165 do :
48166 ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
48167 if test "x$ac_cv_func_expl" = xyes; then :
48168 cat >>confdefs.h <<_ACEOF
48169 #define HAVE_EXPL 1
48170 _ACEOF
48173 done
48179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
48180 $as_echo_n "checking for fabsl declaration... " >&6; }
48181 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
48182 if ${glibcxx_cv_func_fabsl_use+:} false; then :
48183 $as_echo_n "(cached) " >&6
48184 else
48187 ac_ext=cpp
48188 ac_cpp='$CXXCPP $CPPFLAGS'
48189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48194 /* end confdefs.h. */
48195 #include <math.h>
48196 #ifdef HAVE_IEEEFP_H
48197 #include <ieeefp.h>
48198 #endif
48201 main ()
48203 fabsl(0);
48205 return 0;
48207 _ACEOF
48208 if ac_fn_cxx_try_compile "$LINENO"; then :
48209 glibcxx_cv_func_fabsl_use=yes
48210 else
48211 glibcxx_cv_func_fabsl_use=no
48213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48214 ac_ext=c
48215 ac_cpp='$CPP $CPPFLAGS'
48216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
48225 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
48227 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
48228 for ac_func in fabsl
48229 do :
48230 ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
48231 if test "x$ac_cv_func_fabsl" = xyes; then :
48232 cat >>confdefs.h <<_ACEOF
48233 #define HAVE_FABSL 1
48234 _ACEOF
48237 done
48243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
48244 $as_echo_n "checking for fmodl declaration... " >&6; }
48245 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
48246 if ${glibcxx_cv_func_fmodl_use+:} false; then :
48247 $as_echo_n "(cached) " >&6
48248 else
48251 ac_ext=cpp
48252 ac_cpp='$CXXCPP $CPPFLAGS'
48253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48258 /* end confdefs.h. */
48259 #include <math.h>
48261 main ()
48263 fmodl(0, 0);
48265 return 0;
48267 _ACEOF
48268 if ac_fn_cxx_try_compile "$LINENO"; then :
48269 glibcxx_cv_func_fmodl_use=yes
48270 else
48271 glibcxx_cv_func_fmodl_use=no
48273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48274 ac_ext=c
48275 ac_cpp='$CPP $CPPFLAGS'
48276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
48285 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
48287 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
48288 for ac_func in fmodl
48289 do :
48290 ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
48291 if test "x$ac_cv_func_fmodl" = xyes; then :
48292 cat >>confdefs.h <<_ACEOF
48293 #define HAVE_FMODL 1
48294 _ACEOF
48297 done
48303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
48304 $as_echo_n "checking for frexpl declaration... " >&6; }
48305 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
48306 if ${glibcxx_cv_func_frexpl_use+:} false; then :
48307 $as_echo_n "(cached) " >&6
48308 else
48311 ac_ext=cpp
48312 ac_cpp='$CXXCPP $CPPFLAGS'
48313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48318 /* end confdefs.h. */
48319 #include <math.h>
48321 main ()
48323 frexpl(0, 0);
48325 return 0;
48327 _ACEOF
48328 if ac_fn_cxx_try_compile "$LINENO"; then :
48329 glibcxx_cv_func_frexpl_use=yes
48330 else
48331 glibcxx_cv_func_frexpl_use=no
48333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48334 ac_ext=c
48335 ac_cpp='$CPP $CPPFLAGS'
48336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
48345 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
48347 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
48348 for ac_func in frexpl
48349 do :
48350 ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
48351 if test "x$ac_cv_func_frexpl" = xyes; then :
48352 cat >>confdefs.h <<_ACEOF
48353 #define HAVE_FREXPL 1
48354 _ACEOF
48357 done
48363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
48364 $as_echo_n "checking for hypotl declaration... " >&6; }
48365 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
48366 if ${glibcxx_cv_func_hypotl_use+:} false; then :
48367 $as_echo_n "(cached) " >&6
48368 else
48371 ac_ext=cpp
48372 ac_cpp='$CXXCPP $CPPFLAGS'
48373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48378 /* end confdefs.h. */
48379 #include <math.h>
48381 main ()
48383 hypotl(0, 0);
48385 return 0;
48387 _ACEOF
48388 if ac_fn_cxx_try_compile "$LINENO"; then :
48389 glibcxx_cv_func_hypotl_use=yes
48390 else
48391 glibcxx_cv_func_hypotl_use=no
48393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48394 ac_ext=c
48395 ac_cpp='$CPP $CPPFLAGS'
48396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
48405 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
48407 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
48408 for ac_func in hypotl
48409 do :
48410 ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
48411 if test "x$ac_cv_func_hypotl" = xyes; then :
48412 cat >>confdefs.h <<_ACEOF
48413 #define HAVE_HYPOTL 1
48414 _ACEOF
48417 done
48423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
48424 $as_echo_n "checking for ldexpl declaration... " >&6; }
48425 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
48426 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
48427 $as_echo_n "(cached) " >&6
48428 else
48431 ac_ext=cpp
48432 ac_cpp='$CXXCPP $CPPFLAGS'
48433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48438 /* end confdefs.h. */
48439 #include <math.h>
48441 main ()
48443 ldexpl(0, 0);
48445 return 0;
48447 _ACEOF
48448 if ac_fn_cxx_try_compile "$LINENO"; then :
48449 glibcxx_cv_func_ldexpl_use=yes
48450 else
48451 glibcxx_cv_func_ldexpl_use=no
48453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48454 ac_ext=c
48455 ac_cpp='$CPP $CPPFLAGS'
48456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
48465 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
48467 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
48468 for ac_func in ldexpl
48469 do :
48470 ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
48471 if test "x$ac_cv_func_ldexpl" = xyes; then :
48472 cat >>confdefs.h <<_ACEOF
48473 #define HAVE_LDEXPL 1
48474 _ACEOF
48477 done
48483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
48484 $as_echo_n "checking for logl declaration... " >&6; }
48485 if test x${glibcxx_cv_func_logl_use+set} != xset; then
48486 if ${glibcxx_cv_func_logl_use+:} false; then :
48487 $as_echo_n "(cached) " >&6
48488 else
48491 ac_ext=cpp
48492 ac_cpp='$CXXCPP $CPPFLAGS'
48493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48498 /* end confdefs.h. */
48499 #include <math.h>
48500 #ifdef HAVE_IEEEFP_H
48501 #include <ieeefp.h>
48502 #endif
48505 main ()
48507 logl(0);
48509 return 0;
48511 _ACEOF
48512 if ac_fn_cxx_try_compile "$LINENO"; then :
48513 glibcxx_cv_func_logl_use=yes
48514 else
48515 glibcxx_cv_func_logl_use=no
48517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48518 ac_ext=c
48519 ac_cpp='$CPP $CPPFLAGS'
48520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
48529 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
48531 if test x$glibcxx_cv_func_logl_use = x"yes"; then
48532 for ac_func in logl
48533 do :
48534 ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
48535 if test "x$ac_cv_func_logl" = xyes; then :
48536 cat >>confdefs.h <<_ACEOF
48537 #define HAVE_LOGL 1
48538 _ACEOF
48541 done
48547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
48548 $as_echo_n "checking for log10l declaration... " >&6; }
48549 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
48550 if ${glibcxx_cv_func_log10l_use+:} false; then :
48551 $as_echo_n "(cached) " >&6
48552 else
48555 ac_ext=cpp
48556 ac_cpp='$CXXCPP $CPPFLAGS'
48557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48562 /* end confdefs.h. */
48563 #include <math.h>
48564 #ifdef HAVE_IEEEFP_H
48565 #include <ieeefp.h>
48566 #endif
48569 main ()
48571 log10l(0);
48573 return 0;
48575 _ACEOF
48576 if ac_fn_cxx_try_compile "$LINENO"; then :
48577 glibcxx_cv_func_log10l_use=yes
48578 else
48579 glibcxx_cv_func_log10l_use=no
48581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48582 ac_ext=c
48583 ac_cpp='$CPP $CPPFLAGS'
48584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
48593 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
48595 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
48596 for ac_func in log10l
48597 do :
48598 ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
48599 if test "x$ac_cv_func_log10l" = xyes; then :
48600 cat >>confdefs.h <<_ACEOF
48601 #define HAVE_LOG10L 1
48602 _ACEOF
48605 done
48611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
48612 $as_echo_n "checking for modfl declaration... " >&6; }
48613 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
48614 if ${glibcxx_cv_func_modfl_use+:} false; then :
48615 $as_echo_n "(cached) " >&6
48616 else
48619 ac_ext=cpp
48620 ac_cpp='$CXXCPP $CPPFLAGS'
48621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48626 /* end confdefs.h. */
48627 #include <math.h>
48629 main ()
48631 modfl(0, 0);
48633 return 0;
48635 _ACEOF
48636 if ac_fn_cxx_try_compile "$LINENO"; then :
48637 glibcxx_cv_func_modfl_use=yes
48638 else
48639 glibcxx_cv_func_modfl_use=no
48641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48642 ac_ext=c
48643 ac_cpp='$CPP $CPPFLAGS'
48644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
48653 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
48655 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
48656 for ac_func in modfl
48657 do :
48658 ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
48659 if test "x$ac_cv_func_modfl" = xyes; then :
48660 cat >>confdefs.h <<_ACEOF
48661 #define HAVE_MODFL 1
48662 _ACEOF
48665 done
48671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
48672 $as_echo_n "checking for powl declaration... " >&6; }
48673 if test x${glibcxx_cv_func_powl_use+set} != xset; then
48674 if ${glibcxx_cv_func_powl_use+:} false; then :
48675 $as_echo_n "(cached) " >&6
48676 else
48679 ac_ext=cpp
48680 ac_cpp='$CXXCPP $CPPFLAGS'
48681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48686 /* end confdefs.h. */
48687 #include <math.h>
48689 main ()
48691 powl(0, 0);
48693 return 0;
48695 _ACEOF
48696 if ac_fn_cxx_try_compile "$LINENO"; then :
48697 glibcxx_cv_func_powl_use=yes
48698 else
48699 glibcxx_cv_func_powl_use=no
48701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48702 ac_ext=c
48703 ac_cpp='$CPP $CPPFLAGS'
48704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
48713 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
48715 if test x$glibcxx_cv_func_powl_use = x"yes"; then
48716 for ac_func in powl
48717 do :
48718 ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
48719 if test "x$ac_cv_func_powl" = xyes; then :
48720 cat >>confdefs.h <<_ACEOF
48721 #define HAVE_POWL 1
48722 _ACEOF
48725 done
48731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
48732 $as_echo_n "checking for sqrtl declaration... " >&6; }
48733 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
48734 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
48735 $as_echo_n "(cached) " >&6
48736 else
48739 ac_ext=cpp
48740 ac_cpp='$CXXCPP $CPPFLAGS'
48741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48746 /* end confdefs.h. */
48747 #include <math.h>
48748 #ifdef HAVE_IEEEFP_H
48749 #include <ieeefp.h>
48750 #endif
48753 main ()
48755 sqrtl(0);
48757 return 0;
48759 _ACEOF
48760 if ac_fn_cxx_try_compile "$LINENO"; then :
48761 glibcxx_cv_func_sqrtl_use=yes
48762 else
48763 glibcxx_cv_func_sqrtl_use=no
48765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48766 ac_ext=c
48767 ac_cpp='$CPP $CPPFLAGS'
48768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
48777 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
48779 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
48780 for ac_func in sqrtl
48781 do :
48782 ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
48783 if test "x$ac_cv_func_sqrtl" = xyes; then :
48784 cat >>confdefs.h <<_ACEOF
48785 #define HAVE_SQRTL 1
48786 _ACEOF
48789 done
48795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
48796 $as_echo_n "checking for sincosl declaration... " >&6; }
48797 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
48798 if ${glibcxx_cv_func_sincosl_use+:} false; then :
48799 $as_echo_n "(cached) " >&6
48800 else
48803 ac_ext=cpp
48804 ac_cpp='$CXXCPP $CPPFLAGS'
48805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48810 /* end confdefs.h. */
48811 #include <math.h>
48813 main ()
48815 sincosl(0, 0, 0);
48817 return 0;
48819 _ACEOF
48820 if ac_fn_cxx_try_compile "$LINENO"; then :
48821 glibcxx_cv_func_sincosl_use=yes
48822 else
48823 glibcxx_cv_func_sincosl_use=no
48825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48826 ac_ext=c
48827 ac_cpp='$CPP $CPPFLAGS'
48828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
48837 $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
48839 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
48840 for ac_func in sincosl
48841 do :
48842 ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
48843 if test "x$ac_cv_func_sincosl" = xyes; then :
48844 cat >>confdefs.h <<_ACEOF
48845 #define HAVE_SINCOSL 1
48846 _ACEOF
48849 done
48855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
48856 $as_echo_n "checking for finitel declaration... " >&6; }
48857 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
48858 if ${glibcxx_cv_func_finitel_use+:} false; then :
48859 $as_echo_n "(cached) " >&6
48860 else
48863 ac_ext=cpp
48864 ac_cpp='$CXXCPP $CPPFLAGS'
48865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48870 /* end confdefs.h. */
48871 #include <math.h>
48872 #ifdef HAVE_IEEEFP_H
48873 #include <ieeefp.h>
48874 #endif
48877 main ()
48879 finitel(0);
48881 return 0;
48883 _ACEOF
48884 if ac_fn_cxx_try_compile "$LINENO"; then :
48885 glibcxx_cv_func_finitel_use=yes
48886 else
48887 glibcxx_cv_func_finitel_use=no
48889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48890 ac_ext=c
48891 ac_cpp='$CPP $CPPFLAGS'
48892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
48901 $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
48903 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
48904 for ac_func in finitel
48905 do :
48906 ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
48907 if test "x$ac_cv_func_finitel" = xyes; then :
48908 cat >>confdefs.h <<_ACEOF
48909 #define HAVE_FINITEL 1
48910 _ACEOF
48913 done
48918 LIBS="$ac_save_LIBS"
48919 CXXFLAGS="$ac_save_CXXFLAGS"
48922 ac_test_CXXFLAGS="${CXXFLAGS+set}"
48923 ac_save_CXXFLAGS="$CXXFLAGS"
48924 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
48927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
48928 $as_echo_n "checking for at_quick_exit declaration... " >&6; }
48929 if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
48930 if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
48931 $as_echo_n "(cached) " >&6
48932 else
48935 ac_ext=cpp
48936 ac_cpp='$CXXCPP $CPPFLAGS'
48937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48942 /* end confdefs.h. */
48943 #include <stdlib.h>
48945 main ()
48947 at_quick_exit(0);
48949 return 0;
48951 _ACEOF
48952 if ac_fn_cxx_try_compile "$LINENO"; then :
48953 glibcxx_cv_func_at_quick_exit_use=yes
48954 else
48955 glibcxx_cv_func_at_quick_exit_use=no
48957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48958 ac_ext=c
48959 ac_cpp='$CPP $CPPFLAGS'
48960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
48969 $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
48970 if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
48971 for ac_func in at_quick_exit
48972 do :
48973 ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
48974 if test "x$ac_cv_func_at_quick_exit" = xyes; then :
48975 cat >>confdefs.h <<_ACEOF
48976 #define HAVE_AT_QUICK_EXIT 1
48977 _ACEOF
48980 done
48985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
48986 $as_echo_n "checking for quick_exit declaration... " >&6; }
48987 if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
48988 if ${glibcxx_cv_func_quick_exit_use+:} false; then :
48989 $as_echo_n "(cached) " >&6
48990 else
48993 ac_ext=cpp
48994 ac_cpp='$CXXCPP $CPPFLAGS'
48995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49000 /* end confdefs.h. */
49001 #include <stdlib.h>
49003 main ()
49005 quick_exit(0);
49007 return 0;
49009 _ACEOF
49010 if ac_fn_cxx_try_compile "$LINENO"; then :
49011 glibcxx_cv_func_quick_exit_use=yes
49012 else
49013 glibcxx_cv_func_quick_exit_use=no
49015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49016 ac_ext=c
49017 ac_cpp='$CPP $CPPFLAGS'
49018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
49027 $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
49028 if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
49029 for ac_func in quick_exit
49030 do :
49031 ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
49032 if test "x$ac_cv_func_quick_exit" = xyes; then :
49033 cat >>confdefs.h <<_ACEOF
49034 #define HAVE_QUICK_EXIT 1
49035 _ACEOF
49038 done
49043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
49044 $as_echo_n "checking for strtold declaration... " >&6; }
49045 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
49046 if ${glibcxx_cv_func_strtold_use+:} false; then :
49047 $as_echo_n "(cached) " >&6
49048 else
49051 ac_ext=cpp
49052 ac_cpp='$CXXCPP $CPPFLAGS'
49053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49058 /* end confdefs.h. */
49059 #include <stdlib.h>
49061 main ()
49063 strtold(0, 0);
49065 return 0;
49067 _ACEOF
49068 if ac_fn_cxx_try_compile "$LINENO"; then :
49069 glibcxx_cv_func_strtold_use=yes
49070 else
49071 glibcxx_cv_func_strtold_use=no
49073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49074 ac_ext=c
49075 ac_cpp='$CPP $CPPFLAGS'
49076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
49085 $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
49086 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
49087 for ac_func in strtold
49088 do :
49089 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
49090 if test "x$ac_cv_func_strtold" = xyes; then :
49091 cat >>confdefs.h <<_ACEOF
49092 #define HAVE_STRTOLD 1
49093 _ACEOF
49096 done
49101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
49102 $as_echo_n "checking for strtof declaration... " >&6; }
49103 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
49104 if ${glibcxx_cv_func_strtof_use+:} false; then :
49105 $as_echo_n "(cached) " >&6
49106 else
49109 ac_ext=cpp
49110 ac_cpp='$CXXCPP $CPPFLAGS'
49111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49116 /* end confdefs.h. */
49117 #include <stdlib.h>
49119 main ()
49121 strtof(0, 0);
49123 return 0;
49125 _ACEOF
49126 if ac_fn_cxx_try_compile "$LINENO"; then :
49127 glibcxx_cv_func_strtof_use=yes
49128 else
49129 glibcxx_cv_func_strtof_use=no
49131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49132 ac_ext=c
49133 ac_cpp='$CPP $CPPFLAGS'
49134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
49143 $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
49144 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
49145 for ac_func in strtof
49146 do :
49147 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
49148 if test "x$ac_cv_func_strtof" = xyes; then :
49149 cat >>confdefs.h <<_ACEOF
49150 #define HAVE_STRTOF 1
49151 _ACEOF
49154 done
49159 CXXFLAGS="$ac_save_CXXFLAGS"
49162 *-vxworks*)
49163 $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
49165 $as_echo "#define HAVE_ASINF 1" >>confdefs.h
49167 $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
49169 $as_echo "#define HAVE_ATANF 1" >>confdefs.h
49171 $as_echo "#define HAVE_CEILF 1" >>confdefs.h
49173 $as_echo "#define HAVE_COSF 1" >>confdefs.h
49175 $as_echo "#define HAVE_COSHF 1" >>confdefs.h
49177 $as_echo "#define HAVE_EXPF 1" >>confdefs.h
49179 $as_echo "#define HAVE_FABSF 1" >>confdefs.h
49181 $as_echo "#define HAVE_FLOORF 1" >>confdefs.h
49183 $as_echo "#define HAVE_FMODF 1" >>confdefs.h
49185 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
49187 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
49189 $as_echo "#define HAVE_LOGF 1" >>confdefs.h
49191 $as_echo "#define HAVE_POWF 1" >>confdefs.h
49193 $as_echo "#define HAVE_SINF 1" >>confdefs.h
49195 $as_echo "#define HAVE_SINHF 1" >>confdefs.h
49197 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
49199 $as_echo "#define HAVE_TANF 1" >>confdefs.h
49201 $as_echo "#define HAVE_TANHF 1" >>confdefs.h
49207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl declaration" >&5
49208 $as_echo_n "checking for acosl declaration... " >&6; }
49209 if ${glibcxx_cv_func_acosl_use+:} false; then :
49210 $as_echo_n "(cached) " >&6
49211 else
49214 ac_ext=c
49215 ac_cpp='$CPP $CPPFLAGS'
49216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49221 /* end confdefs.h. */
49223 #include <math.h>
49224 #ifdef HAVE_IEEEFP_H
49225 # include <ieeefp.h>
49226 #endif
49227 #undef acosl
49230 main ()
49233 void (*f)(void) = (void (*)(void))acosl;
49236 return 0;
49238 _ACEOF
49239 if ac_fn_c_try_compile "$LINENO"; then :
49240 glibcxx_cv_func_acosl_use=yes
49242 else
49243 glibcxx_cv_func_acosl_use=no
49245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_acosl_use" >&5
49248 $as_echo "$glibcxx_cv_func_acosl_use" >&6; }
49249 if test "x$glibcxx_cv_func_acosl_use" = xyes; then
49250 cat >>confdefs.h <<_ACEOF
49251 #define HAVE_ACOSL 1
49252 _ACEOF
49258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl declaration" >&5
49259 $as_echo_n "checking for asinl declaration... " >&6; }
49260 if ${glibcxx_cv_func_asinl_use+:} false; then :
49261 $as_echo_n "(cached) " >&6
49262 else
49265 ac_ext=c
49266 ac_cpp='$CPP $CPPFLAGS'
49267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49272 /* end confdefs.h. */
49274 #include <math.h>
49275 #ifdef HAVE_IEEEFP_H
49276 # include <ieeefp.h>
49277 #endif
49278 #undef asinl
49281 main ()
49284 void (*f)(void) = (void (*)(void))asinl;
49287 return 0;
49289 _ACEOF
49290 if ac_fn_c_try_compile "$LINENO"; then :
49291 glibcxx_cv_func_asinl_use=yes
49293 else
49294 glibcxx_cv_func_asinl_use=no
49296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_asinl_use" >&5
49299 $as_echo "$glibcxx_cv_func_asinl_use" >&6; }
49300 if test "x$glibcxx_cv_func_asinl_use" = xyes; then
49301 cat >>confdefs.h <<_ACEOF
49302 #define HAVE_ASINL 1
49303 _ACEOF
49309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
49310 $as_echo_n "checking for atan2l declaration... " >&6; }
49311 if ${glibcxx_cv_func_atan2l_use+:} false; then :
49312 $as_echo_n "(cached) " >&6
49313 else
49316 ac_ext=c
49317 ac_cpp='$CPP $CPPFLAGS'
49318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49323 /* end confdefs.h. */
49325 #include <math.h>
49326 #ifdef HAVE_IEEEFP_H
49327 # include <ieeefp.h>
49328 #endif
49329 #undef atan2l
49332 main ()
49335 void (*f)(void) = (void (*)(void))atan2l;
49338 return 0;
49340 _ACEOF
49341 if ac_fn_c_try_compile "$LINENO"; then :
49342 glibcxx_cv_func_atan2l_use=yes
49344 else
49345 glibcxx_cv_func_atan2l_use=no
49347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
49350 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
49351 if test "x$glibcxx_cv_func_atan2l_use" = xyes; then
49352 cat >>confdefs.h <<_ACEOF
49353 #define HAVE_ATAN2L 1
49354 _ACEOF
49360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl declaration" >&5
49361 $as_echo_n "checking for atanl declaration... " >&6; }
49362 if ${glibcxx_cv_func_atanl_use+:} false; then :
49363 $as_echo_n "(cached) " >&6
49364 else
49367 ac_ext=c
49368 ac_cpp='$CPP $CPPFLAGS'
49369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49374 /* end confdefs.h. */
49376 #include <math.h>
49377 #ifdef HAVE_IEEEFP_H
49378 # include <ieeefp.h>
49379 #endif
49380 #undef atanl
49383 main ()
49386 void (*f)(void) = (void (*)(void))atanl;
49389 return 0;
49391 _ACEOF
49392 if ac_fn_c_try_compile "$LINENO"; then :
49393 glibcxx_cv_func_atanl_use=yes
49395 else
49396 glibcxx_cv_func_atanl_use=no
49398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atanl_use" >&5
49401 $as_echo "$glibcxx_cv_func_atanl_use" >&6; }
49402 if test "x$glibcxx_cv_func_atanl_use" = xyes; then
49403 cat >>confdefs.h <<_ACEOF
49404 #define HAVE_ATANL 1
49405 _ACEOF
49411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill declaration" >&5
49412 $as_echo_n "checking for ceill declaration... " >&6; }
49413 if ${glibcxx_cv_func_ceill_use+:} false; then :
49414 $as_echo_n "(cached) " >&6
49415 else
49418 ac_ext=c
49419 ac_cpp='$CPP $CPPFLAGS'
49420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49425 /* end confdefs.h. */
49427 #include <math.h>
49428 #ifdef HAVE_IEEEFP_H
49429 # include <ieeefp.h>
49430 #endif
49431 #undef ceill
49434 main ()
49437 void (*f)(void) = (void (*)(void))ceill;
49440 return 0;
49442 _ACEOF
49443 if ac_fn_c_try_compile "$LINENO"; then :
49444 glibcxx_cv_func_ceill_use=yes
49446 else
49447 glibcxx_cv_func_ceill_use=no
49449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ceill_use" >&5
49452 $as_echo "$glibcxx_cv_func_ceill_use" >&6; }
49453 if test "x$glibcxx_cv_func_ceill_use" = xyes; then
49454 cat >>confdefs.h <<_ACEOF
49455 #define HAVE_CEILL 1
49456 _ACEOF
49462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl declaration" >&5
49463 $as_echo_n "checking for cosl declaration... " >&6; }
49464 if ${glibcxx_cv_func_cosl_use+:} false; then :
49465 $as_echo_n "(cached) " >&6
49466 else
49469 ac_ext=c
49470 ac_cpp='$CPP $CPPFLAGS'
49471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49476 /* end confdefs.h. */
49478 #include <math.h>
49479 #ifdef HAVE_IEEEFP_H
49480 # include <ieeefp.h>
49481 #endif
49482 #undef cosl
49485 main ()
49488 void (*f)(void) = (void (*)(void))cosl;
49491 return 0;
49493 _ACEOF
49494 if ac_fn_c_try_compile "$LINENO"; then :
49495 glibcxx_cv_func_cosl_use=yes
49497 else
49498 glibcxx_cv_func_cosl_use=no
49500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_cosl_use" >&5
49503 $as_echo "$glibcxx_cv_func_cosl_use" >&6; }
49504 if test "x$glibcxx_cv_func_cosl_use" = xyes; then
49505 cat >>confdefs.h <<_ACEOF
49506 #define HAVE_COSL 1
49507 _ACEOF
49513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl declaration" >&5
49514 $as_echo_n "checking for coshl declaration... " >&6; }
49515 if ${glibcxx_cv_func_coshl_use+:} false; then :
49516 $as_echo_n "(cached) " >&6
49517 else
49520 ac_ext=c
49521 ac_cpp='$CPP $CPPFLAGS'
49522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49527 /* end confdefs.h. */
49529 #include <math.h>
49530 #ifdef HAVE_IEEEFP_H
49531 # include <ieeefp.h>
49532 #endif
49533 #undef coshl
49536 main ()
49539 void (*f)(void) = (void (*)(void))coshl;
49542 return 0;
49544 _ACEOF
49545 if ac_fn_c_try_compile "$LINENO"; then :
49546 glibcxx_cv_func_coshl_use=yes
49548 else
49549 glibcxx_cv_func_coshl_use=no
49551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_coshl_use" >&5
49554 $as_echo "$glibcxx_cv_func_coshl_use" >&6; }
49555 if test "x$glibcxx_cv_func_coshl_use" = xyes; then
49556 cat >>confdefs.h <<_ACEOF
49557 #define HAVE_COSHL 1
49558 _ACEOF
49564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
49565 $as_echo_n "checking for expl declaration... " >&6; }
49566 if ${glibcxx_cv_func_expl_use+:} false; then :
49567 $as_echo_n "(cached) " >&6
49568 else
49571 ac_ext=c
49572 ac_cpp='$CPP $CPPFLAGS'
49573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49578 /* end confdefs.h. */
49580 #include <math.h>
49581 #ifdef HAVE_IEEEFP_H
49582 # include <ieeefp.h>
49583 #endif
49584 #undef expl
49587 main ()
49590 void (*f)(void) = (void (*)(void))expl;
49593 return 0;
49595 _ACEOF
49596 if ac_fn_c_try_compile "$LINENO"; then :
49597 glibcxx_cv_func_expl_use=yes
49599 else
49600 glibcxx_cv_func_expl_use=no
49602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
49605 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
49606 if test "x$glibcxx_cv_func_expl_use" = xyes; then
49607 cat >>confdefs.h <<_ACEOF
49608 #define HAVE_EXPL 1
49609 _ACEOF
49615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
49616 $as_echo_n "checking for fabsl declaration... " >&6; }
49617 if ${glibcxx_cv_func_fabsl_use+:} false; then :
49618 $as_echo_n "(cached) " >&6
49619 else
49622 ac_ext=c
49623 ac_cpp='$CPP $CPPFLAGS'
49624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49629 /* end confdefs.h. */
49631 #include <math.h>
49632 #ifdef HAVE_IEEEFP_H
49633 # include <ieeefp.h>
49634 #endif
49635 #undef fabsl
49638 main ()
49641 void (*f)(void) = (void (*)(void))fabsl;
49644 return 0;
49646 _ACEOF
49647 if ac_fn_c_try_compile "$LINENO"; then :
49648 glibcxx_cv_func_fabsl_use=yes
49650 else
49651 glibcxx_cv_func_fabsl_use=no
49653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
49656 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
49657 if test "x$glibcxx_cv_func_fabsl_use" = xyes; then
49658 cat >>confdefs.h <<_ACEOF
49659 #define HAVE_FABSL 1
49660 _ACEOF
49666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl declaration" >&5
49667 $as_echo_n "checking for floorl declaration... " >&6; }
49668 if ${glibcxx_cv_func_floorl_use+:} false; then :
49669 $as_echo_n "(cached) " >&6
49670 else
49673 ac_ext=c
49674 ac_cpp='$CPP $CPPFLAGS'
49675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49680 /* end confdefs.h. */
49682 #include <math.h>
49683 #ifdef HAVE_IEEEFP_H
49684 # include <ieeefp.h>
49685 #endif
49686 #undef floorl
49689 main ()
49692 void (*f)(void) = (void (*)(void))floorl;
49695 return 0;
49697 _ACEOF
49698 if ac_fn_c_try_compile "$LINENO"; then :
49699 glibcxx_cv_func_floorl_use=yes
49701 else
49702 glibcxx_cv_func_floorl_use=no
49704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_floorl_use" >&5
49707 $as_echo "$glibcxx_cv_func_floorl_use" >&6; }
49708 if test "x$glibcxx_cv_func_floorl_use" = xyes; then
49709 cat >>confdefs.h <<_ACEOF
49710 #define HAVE_FLOORL 1
49711 _ACEOF
49717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
49718 $as_echo_n "checking for fmodl declaration... " >&6; }
49719 if ${glibcxx_cv_func_fmodl_use+:} false; then :
49720 $as_echo_n "(cached) " >&6
49721 else
49724 ac_ext=c
49725 ac_cpp='$CPP $CPPFLAGS'
49726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49731 /* end confdefs.h. */
49733 #include <math.h>
49734 #ifdef HAVE_IEEEFP_H
49735 # include <ieeefp.h>
49736 #endif
49737 #undef fmodl
49740 main ()
49743 void (*f)(void) = (void (*)(void))fmodl;
49746 return 0;
49748 _ACEOF
49749 if ac_fn_c_try_compile "$LINENO"; then :
49750 glibcxx_cv_func_fmodl_use=yes
49752 else
49753 glibcxx_cv_func_fmodl_use=no
49755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
49758 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
49759 if test "x$glibcxx_cv_func_fmodl_use" = xyes; then
49760 cat >>confdefs.h <<_ACEOF
49761 #define HAVE_FMODL 1
49762 _ACEOF
49768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
49769 $as_echo_n "checking for frexpl declaration... " >&6; }
49770 if ${glibcxx_cv_func_frexpl_use+:} false; then :
49771 $as_echo_n "(cached) " >&6
49772 else
49775 ac_ext=c
49776 ac_cpp='$CPP $CPPFLAGS'
49777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49782 /* end confdefs.h. */
49784 #include <math.h>
49785 #ifdef HAVE_IEEEFP_H
49786 # include <ieeefp.h>
49787 #endif
49788 #undef frexpl
49791 main ()
49794 void (*f)(void) = (void (*)(void))frexpl;
49797 return 0;
49799 _ACEOF
49800 if ac_fn_c_try_compile "$LINENO"; then :
49801 glibcxx_cv_func_frexpl_use=yes
49803 else
49804 glibcxx_cv_func_frexpl_use=no
49806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
49809 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
49810 if test "x$glibcxx_cv_func_frexpl_use" = xyes; then
49811 cat >>confdefs.h <<_ACEOF
49812 #define HAVE_FREXPL 1
49813 _ACEOF
49819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
49820 $as_echo_n "checking for ldexpl declaration... " >&6; }
49821 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
49822 $as_echo_n "(cached) " >&6
49823 else
49826 ac_ext=c
49827 ac_cpp='$CPP $CPPFLAGS'
49828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49833 /* end confdefs.h. */
49835 #include <math.h>
49836 #ifdef HAVE_IEEEFP_H
49837 # include <ieeefp.h>
49838 #endif
49839 #undef ldexpl
49842 main ()
49845 void (*f)(void) = (void (*)(void))ldexpl;
49848 return 0;
49850 _ACEOF
49851 if ac_fn_c_try_compile "$LINENO"; then :
49852 glibcxx_cv_func_ldexpl_use=yes
49854 else
49855 glibcxx_cv_func_ldexpl_use=no
49857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
49860 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
49861 if test "x$glibcxx_cv_func_ldexpl_use" = xyes; then
49862 cat >>confdefs.h <<_ACEOF
49863 #define HAVE_LDEXPL 1
49864 _ACEOF
49870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
49871 $as_echo_n "checking for log10l declaration... " >&6; }
49872 if ${glibcxx_cv_func_log10l_use+:} false; then :
49873 $as_echo_n "(cached) " >&6
49874 else
49877 ac_ext=c
49878 ac_cpp='$CPP $CPPFLAGS'
49879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49884 /* end confdefs.h. */
49886 #include <math.h>
49887 #ifdef HAVE_IEEEFP_H
49888 # include <ieeefp.h>
49889 #endif
49890 #undef log10l
49893 main ()
49896 void (*f)(void) = (void (*)(void))log10l;
49899 return 0;
49901 _ACEOF
49902 if ac_fn_c_try_compile "$LINENO"; then :
49903 glibcxx_cv_func_log10l_use=yes
49905 else
49906 glibcxx_cv_func_log10l_use=no
49908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
49911 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
49912 if test "x$glibcxx_cv_func_log10l_use" = xyes; then
49913 cat >>confdefs.h <<_ACEOF
49914 #define HAVE_LOG10L 1
49915 _ACEOF
49921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
49922 $as_echo_n "checking for logl declaration... " >&6; }
49923 if ${glibcxx_cv_func_logl_use+:} false; then :
49924 $as_echo_n "(cached) " >&6
49925 else
49928 ac_ext=c
49929 ac_cpp='$CPP $CPPFLAGS'
49930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49935 /* end confdefs.h. */
49937 #include <math.h>
49938 #ifdef HAVE_IEEEFP_H
49939 # include <ieeefp.h>
49940 #endif
49941 #undef logl
49944 main ()
49947 void (*f)(void) = (void (*)(void))logl;
49950 return 0;
49952 _ACEOF
49953 if ac_fn_c_try_compile "$LINENO"; then :
49954 glibcxx_cv_func_logl_use=yes
49956 else
49957 glibcxx_cv_func_logl_use=no
49959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
49962 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
49963 if test "x$glibcxx_cv_func_logl_use" = xyes; then
49964 cat >>confdefs.h <<_ACEOF
49965 #define HAVE_LOGL 1
49966 _ACEOF
49972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
49973 $as_echo_n "checking for modfl declaration... " >&6; }
49974 if ${glibcxx_cv_func_modfl_use+:} false; then :
49975 $as_echo_n "(cached) " >&6
49976 else
49979 ac_ext=c
49980 ac_cpp='$CPP $CPPFLAGS'
49981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49986 /* end confdefs.h. */
49988 #include <math.h>
49989 #ifdef HAVE_IEEEFP_H
49990 # include <ieeefp.h>
49991 #endif
49992 #undef modfl
49995 main ()
49998 void (*f)(void) = (void (*)(void))modfl;
50001 return 0;
50003 _ACEOF
50004 if ac_fn_c_try_compile "$LINENO"; then :
50005 glibcxx_cv_func_modfl_use=yes
50007 else
50008 glibcxx_cv_func_modfl_use=no
50010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
50013 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
50014 if test "x$glibcxx_cv_func_modfl_use" = xyes; then
50015 cat >>confdefs.h <<_ACEOF
50016 #define HAVE_MODFL 1
50017 _ACEOF
50023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
50024 $as_echo_n "checking for powl declaration... " >&6; }
50025 if ${glibcxx_cv_func_powl_use+:} false; then :
50026 $as_echo_n "(cached) " >&6
50027 else
50030 ac_ext=c
50031 ac_cpp='$CPP $CPPFLAGS'
50032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50037 /* end confdefs.h. */
50039 #include <math.h>
50040 #ifdef HAVE_IEEEFP_H
50041 # include <ieeefp.h>
50042 #endif
50043 #undef powl
50046 main ()
50049 void (*f)(void) = (void (*)(void))powl;
50052 return 0;
50054 _ACEOF
50055 if ac_fn_c_try_compile "$LINENO"; then :
50056 glibcxx_cv_func_powl_use=yes
50058 else
50059 glibcxx_cv_func_powl_use=no
50061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
50064 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
50065 if test "x$glibcxx_cv_func_powl_use" = xyes; then
50066 cat >>confdefs.h <<_ACEOF
50067 #define HAVE_POWL 1
50068 _ACEOF
50074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl declaration" >&5
50075 $as_echo_n "checking for sinl declaration... " >&6; }
50076 if ${glibcxx_cv_func_sinl_use+:} false; then :
50077 $as_echo_n "(cached) " >&6
50078 else
50081 ac_ext=c
50082 ac_cpp='$CPP $CPPFLAGS'
50083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50088 /* end confdefs.h. */
50090 #include <math.h>
50091 #ifdef HAVE_IEEEFP_H
50092 # include <ieeefp.h>
50093 #endif
50094 #undef sinl
50097 main ()
50100 void (*f)(void) = (void (*)(void))sinl;
50103 return 0;
50105 _ACEOF
50106 if ac_fn_c_try_compile "$LINENO"; then :
50107 glibcxx_cv_func_sinl_use=yes
50109 else
50110 glibcxx_cv_func_sinl_use=no
50112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sinl_use" >&5
50115 $as_echo "$glibcxx_cv_func_sinl_use" >&6; }
50116 if test "x$glibcxx_cv_func_sinl_use" = xyes; then
50117 cat >>confdefs.h <<_ACEOF
50118 #define HAVE_SINL 1
50119 _ACEOF
50125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl declaration" >&5
50126 $as_echo_n "checking for sinhl declaration... " >&6; }
50127 if ${glibcxx_cv_func_sinhl_use+:} false; then :
50128 $as_echo_n "(cached) " >&6
50129 else
50132 ac_ext=c
50133 ac_cpp='$CPP $CPPFLAGS'
50134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50139 /* end confdefs.h. */
50141 #include <math.h>
50142 #ifdef HAVE_IEEEFP_H
50143 # include <ieeefp.h>
50144 #endif
50145 #undef sinhl
50148 main ()
50151 void (*f)(void) = (void (*)(void))sinhl;
50154 return 0;
50156 _ACEOF
50157 if ac_fn_c_try_compile "$LINENO"; then :
50158 glibcxx_cv_func_sinhl_use=yes
50160 else
50161 glibcxx_cv_func_sinhl_use=no
50163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sinhl_use" >&5
50166 $as_echo "$glibcxx_cv_func_sinhl_use" >&6; }
50167 if test "x$glibcxx_cv_func_sinhl_use" = xyes; then
50168 cat >>confdefs.h <<_ACEOF
50169 #define HAVE_SINHL 1
50170 _ACEOF
50176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
50177 $as_echo_n "checking for sqrtl declaration... " >&6; }
50178 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
50179 $as_echo_n "(cached) " >&6
50180 else
50183 ac_ext=c
50184 ac_cpp='$CPP $CPPFLAGS'
50185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50190 /* end confdefs.h. */
50192 #include <math.h>
50193 #ifdef HAVE_IEEEFP_H
50194 # include <ieeefp.h>
50195 #endif
50196 #undef sqrtl
50199 main ()
50202 void (*f)(void) = (void (*)(void))sqrtl;
50205 return 0;
50207 _ACEOF
50208 if ac_fn_c_try_compile "$LINENO"; then :
50209 glibcxx_cv_func_sqrtl_use=yes
50211 else
50212 glibcxx_cv_func_sqrtl_use=no
50214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
50217 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
50218 if test "x$glibcxx_cv_func_sqrtl_use" = xyes; then
50219 cat >>confdefs.h <<_ACEOF
50220 #define HAVE_SQRTL 1
50221 _ACEOF
50227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl declaration" >&5
50228 $as_echo_n "checking for tanl declaration... " >&6; }
50229 if ${glibcxx_cv_func_tanl_use+:} false; then :
50230 $as_echo_n "(cached) " >&6
50231 else
50234 ac_ext=c
50235 ac_cpp='$CPP $CPPFLAGS'
50236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50241 /* end confdefs.h. */
50243 #include <math.h>
50244 #ifdef HAVE_IEEEFP_H
50245 # include <ieeefp.h>
50246 #endif
50247 #undef tanl
50250 main ()
50253 void (*f)(void) = (void (*)(void))tanl;
50256 return 0;
50258 _ACEOF
50259 if ac_fn_c_try_compile "$LINENO"; then :
50260 glibcxx_cv_func_tanl_use=yes
50262 else
50263 glibcxx_cv_func_tanl_use=no
50265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_tanl_use" >&5
50268 $as_echo "$glibcxx_cv_func_tanl_use" >&6; }
50269 if test "x$glibcxx_cv_func_tanl_use" = xyes; then
50270 cat >>confdefs.h <<_ACEOF
50271 #define HAVE_TANL 1
50272 _ACEOF
50278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl declaration" >&5
50279 $as_echo_n "checking for tanhl declaration... " >&6; }
50280 if ${glibcxx_cv_func_tanhl_use+:} false; then :
50281 $as_echo_n "(cached) " >&6
50282 else
50285 ac_ext=c
50286 ac_cpp='$CPP $CPPFLAGS'
50287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50292 /* end confdefs.h. */
50294 #include <math.h>
50295 #ifdef HAVE_IEEEFP_H
50296 # include <ieeefp.h>
50297 #endif
50298 #undef tanhl
50301 main ()
50304 void (*f)(void) = (void (*)(void))tanhl;
50307 return 0;
50309 _ACEOF
50310 if ac_fn_c_try_compile "$LINENO"; then :
50311 glibcxx_cv_func_tanhl_use=yes
50313 else
50314 glibcxx_cv_func_tanhl_use=no
50316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_tanhl_use" >&5
50319 $as_echo "$glibcxx_cv_func_tanhl_use" >&6; }
50320 if test "x$glibcxx_cv_func_tanhl_use" = xyes; then
50321 cat >>confdefs.h <<_ACEOF
50322 #define HAVE_TANHL 1
50323 _ACEOF
50329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
50330 $as_echo_n "checking for hypotl declaration... " >&6; }
50331 if ${glibcxx_cv_func_hypotl_use+:} false; then :
50332 $as_echo_n "(cached) " >&6
50333 else
50336 ac_ext=c
50337 ac_cpp='$CPP $CPPFLAGS'
50338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50343 /* end confdefs.h. */
50345 #include <math.h>
50346 #ifdef HAVE_IEEEFP_H
50347 # include <ieeefp.h>
50348 #endif
50349 #undef hypotl
50352 main ()
50355 void (*f)(void) = (void (*)(void))hypotl;
50358 return 0;
50360 _ACEOF
50361 if ac_fn_c_try_compile "$LINENO"; then :
50362 glibcxx_cv_func_hypotl_use=yes
50364 else
50365 glibcxx_cv_func_hypotl_use=no
50367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
50370 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
50371 if test "x$glibcxx_cv_func_hypotl_use" = xyes; then
50372 cat >>confdefs.h <<_ACEOF
50373 #define HAVE_HYPOTL 1
50374 _ACEOF
50380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
50381 $as_echo_n "checking for ldexpf declaration... " >&6; }
50382 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
50383 $as_echo_n "(cached) " >&6
50384 else
50387 ac_ext=c
50388 ac_cpp='$CPP $CPPFLAGS'
50389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50394 /* end confdefs.h. */
50396 #include <math.h>
50397 #ifdef HAVE_IEEEFP_H
50398 # include <ieeefp.h>
50399 #endif
50400 #undef ldexpf
50403 main ()
50406 void (*f)(void) = (void (*)(void))ldexpf;
50409 return 0;
50411 _ACEOF
50412 if ac_fn_c_try_compile "$LINENO"; then :
50413 glibcxx_cv_func_ldexpf_use=yes
50415 else
50416 glibcxx_cv_func_ldexpf_use=no
50418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
50421 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
50422 if test "x$glibcxx_cv_func_ldexpf_use" = xyes; then
50423 cat >>confdefs.h <<_ACEOF
50424 #define HAVE_LDEXPF 1
50425 _ACEOF
50431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
50432 $as_echo_n "checking for modff declaration... " >&6; }
50433 if ${glibcxx_cv_func_modff_use+:} false; then :
50434 $as_echo_n "(cached) " >&6
50435 else
50438 ac_ext=c
50439 ac_cpp='$CPP $CPPFLAGS'
50440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50445 /* end confdefs.h. */
50447 #include <math.h>
50448 #ifdef HAVE_IEEEFP_H
50449 # include <ieeefp.h>
50450 #endif
50451 #undef modff
50454 main ()
50457 void (*f)(void) = (void (*)(void))modff;
50460 return 0;
50462 _ACEOF
50463 if ac_fn_c_try_compile "$LINENO"; then :
50464 glibcxx_cv_func_modff_use=yes
50466 else
50467 glibcxx_cv_func_modff_use=no
50469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
50472 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
50473 if test "x$glibcxx_cv_func_modff_use" = xyes; then
50474 cat >>confdefs.h <<_ACEOF
50475 #define HAVE_MODFF 1
50476 _ACEOF
50482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
50483 $as_echo_n "checking for hypotf declaration... " >&6; }
50484 if ${glibcxx_cv_func_hypotf_use+:} false; then :
50485 $as_echo_n "(cached) " >&6
50486 else
50489 ac_ext=c
50490 ac_cpp='$CPP $CPPFLAGS'
50491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50496 /* end confdefs.h. */
50498 #include <math.h>
50499 #ifdef HAVE_IEEEFP_H
50500 # include <ieeefp.h>
50501 #endif
50502 #undef hypotf
50505 main ()
50508 void (*f)(void) = (void (*)(void))hypotf;
50511 return 0;
50513 _ACEOF
50514 if ac_fn_c_try_compile "$LINENO"; then :
50515 glibcxx_cv_func_hypotf_use=yes
50517 else
50518 glibcxx_cv_func_hypotf_use=no
50520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
50523 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
50524 if test "x$glibcxx_cv_func_hypotf_use" = xyes; then
50525 cat >>confdefs.h <<_ACEOF
50526 #define HAVE_HYPOTF 1
50527 _ACEOF
50533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
50534 $as_echo_n "checking for frexpf declaration... " >&6; }
50535 if ${glibcxx_cv_func_frexpf_use+:} false; then :
50536 $as_echo_n "(cached) " >&6
50537 else
50540 ac_ext=c
50541 ac_cpp='$CPP $CPPFLAGS'
50542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50547 /* end confdefs.h. */
50549 #include <math.h>
50550 #ifdef HAVE_IEEEFP_H
50551 # include <ieeefp.h>
50552 #endif
50553 #undef frexpf
50556 main ()
50559 void (*f)(void) = (void (*)(void))frexpf;
50562 return 0;
50564 _ACEOF
50565 if ac_fn_c_try_compile "$LINENO"; then :
50566 glibcxx_cv_func_frexpf_use=yes
50568 else
50569 glibcxx_cv_func_frexpf_use=no
50571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
50574 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
50575 if test "x$glibcxx_cv_func_frexpf_use" = xyes; then
50576 cat >>confdefs.h <<_ACEOF
50577 #define HAVE_FREXPF 1
50578 _ACEOF
50586 as_fn_error $? "No support for this host/target combination." "$LINENO" 5
50588 esac
50592 # At some point, we should differentiate between architectures
50593 # like x86, which have long double versions, and alpha/powerpc/etc.,
50594 # which don't. For the time being, punt.
50595 if test x"long_double_math_on_this_cpu" = x"yes"; then
50596 $as_echo "#define HAVE_ACOSL 1" >>confdefs.h
50598 $as_echo "#define HAVE_ASINL 1" >>confdefs.h
50600 $as_echo "#define HAVE_ATAN2L 1" >>confdefs.h
50602 $as_echo "#define HAVE_ATANL 1" >>confdefs.h
50604 $as_echo "#define HAVE_CEILL 1" >>confdefs.h
50606 $as_echo "#define HAVE_COSL 1" >>confdefs.h
50608 $as_echo "#define HAVE_COSHL 1" >>confdefs.h
50610 $as_echo "#define HAVE_EXPL 1" >>confdefs.h
50612 $as_echo "#define HAVE_FABSL 1" >>confdefs.h
50614 $as_echo "#define HAVE_FLOORL 1" >>confdefs.h
50616 $as_echo "#define HAVE_FMODL 1" >>confdefs.h
50618 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
50620 $as_echo "#define HAVE_LDEXPL 1" >>confdefs.h
50622 $as_echo "#define HAVE_LOG10L 1" >>confdefs.h
50624 $as_echo "#define HAVE_LOGL 1" >>confdefs.h
50626 $as_echo "#define HAVE_MODFL 1" >>confdefs.h
50628 $as_echo "#define HAVE_POWL 1" >>confdefs.h
50630 $as_echo "#define HAVE_SINCOSL 1" >>confdefs.h
50632 $as_echo "#define HAVE_SINL 1" >>confdefs.h
50634 $as_echo "#define HAVE_SINHL 1" >>confdefs.h
50636 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
50638 $as_echo "#define HAVE_TANL 1" >>confdefs.h
50640 $as_echo "#define HAVE_TANHL 1" >>confdefs.h
50645 # Check for _Unwind_GetIPInfo.
50648 # Check whether --with-system-libunwind was given.
50649 if test "${with_system_libunwind+set}" = set; then :
50650 withval=$with_system_libunwind;
50653 # If system-libunwind was not specifically set, pick a default setting.
50654 if test x$with_system_libunwind = x; then
50655 case ${target} in
50656 ia64-*-hpux*) with_system_libunwind=yes ;;
50657 *) with_system_libunwind=no ;;
50658 esac
50660 # Based on system-libunwind and target, do we have ipinfo?
50661 if test x$with_system_libunwind = xyes; then
50662 case ${target} in
50663 ia64-*-*) have_unwind_getipinfo=no ;;
50664 *) have_unwind_getipinfo=yes ;;
50665 esac
50666 else
50667 # Darwin before version 9 does not have _Unwind_GetIPInfo.
50669 case ${target} in
50670 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
50671 *) have_unwind_getipinfo=yes ;;
50672 esac
50676 if test x$have_unwind_getipinfo = xyes; then
50678 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
50683 # Check whether --enable-linux-futex was given.
50684 if test "${enable_linux_futex+set}" = set; then :
50685 enableval=$enable_linux_futex;
50686 case "$enableval" in
50687 yes|no|default) ;;
50688 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
50689 esac
50691 else
50692 enable_linux_futex=default
50696 case "$target" in
50697 *-linux* | *-uclinux*)
50698 case "$enable_linux_futex" in
50699 default)
50700 # If headers don't have gettid/futex syscalls definition, then
50701 # default to no, otherwise there will be compile time failures.
50702 # Otherwise, default to yes. If we don't detect we are
50703 # compiled/linked against NPTL and not cross-compiling, check
50704 # if programs are run by default against NPTL and if not, issue
50705 # a warning.
50706 enable_linux_futex=no
50707 if test x$gcc_no_link = xyes; then
50708 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
50710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50711 /* end confdefs.h. */
50712 #include <sys/syscall.h>
50713 #include <unistd.h>
50714 int lk;
50716 main ()
50718 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
50720 return 0;
50722 _ACEOF
50723 if ac_fn_c_try_link "$LINENO"; then :
50724 save_LIBS="$LIBS"
50725 LIBS="-lpthread $LIBS"
50726 if test x$gcc_no_link = xyes; then
50727 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
50729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50730 /* end confdefs.h. */
50731 #ifndef _GNU_SOURCE
50732 #define _GNU_SOURCE 1
50733 #endif
50734 #include <pthread.h>
50735 pthread_t th; void *status;
50737 main ()
50739 pthread_tryjoin_np (th, &status);
50741 return 0;
50743 _ACEOF
50744 if ac_fn_c_try_link "$LINENO"; then :
50745 enable_linux_futex=yes
50746 else
50747 if test x$cross_compiling = xno; then
50748 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
50749 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
50750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
50751 If so, please configure with --disable-linux-futex" >&5
50752 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
50753 If so, please configure with --disable-linux-futex" >&2;}
50756 enable_linux_futex=yes
50758 rm -f core conftest.err conftest.$ac_objext \
50759 conftest$ac_exeext conftest.$ac_ext
50760 LIBS="$save_LIBS"
50762 rm -f core conftest.err conftest.$ac_objext \
50763 conftest$ac_exeext conftest.$ac_ext
50765 yes)
50766 if test x$gcc_no_link = xyes; then
50767 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
50769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50770 /* end confdefs.h. */
50771 #include <sys/syscall.h>
50772 #include <unistd.h>
50773 int lk;
50775 main ()
50777 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
50779 return 0;
50781 _ACEOF
50782 if ac_fn_c_try_link "$LINENO"; then :
50784 else
50785 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
50787 rm -f core conftest.err conftest.$ac_objext \
50788 conftest$ac_exeext conftest.$ac_ext
50790 esac
50793 enable_linux_futex=no
50795 esac
50796 if test x$enable_linux_futex = xyes; then
50798 $as_echo "#define HAVE_LINUX_FUTEX 1" >>confdefs.h
50804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU c++filt" >&5
50805 $as_echo_n "checking for GNU c++filt... " >&6; }
50806 if ${ac_cv_path_CXXFILT+:} false; then :
50807 $as_echo_n "(cached) " >&6
50808 else
50809 if test -z "$CXXFILT"; then
50810 ac_path_CXXFILT_found=false
50811 # Loop through the user's path and test for each of PROGNAME-LIST
50812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50813 for as_dir in $PATH
50815 IFS=$as_save_IFS
50816 test -z "$as_dir" && as_dir=.
50817 for ac_prog in c++filt gc++filt; do
50818 for ac_exec_ext in '' $ac_executable_extensions; do
50819 ac_path_CXXFILT="$as_dir/$ac_prog$ac_exec_ext"
50820 as_fn_executable_p "$ac_path_CXXFILT" || continue
50821 # Check for GNU $ac_path_CXXFILT
50822 case `"$ac_path_CXXFILT" --version 2>&1` in
50823 *GNU*)
50824 ac_cv_path_CXXFILT=$ac_path_CXXFILT && ac_path_CXXFILT_found=:;;
50825 esac
50827 $ac_path_CXXFILT_found && break 3
50828 done
50829 done
50830 done
50831 IFS=$as_save_IFS
50832 if test -z "$ac_cv_path_CXXFILT"; then
50835 else
50836 ac_cv_path_CXXFILT=$CXXFILT
50840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_CXXFILT" >&5
50841 $as_echo "$ac_cv_path_CXXFILT" >&6; }
50842 CXXFILT=$ac_cv_path_CXXFILT
50846 # Check whether --enable-symvers was given.
50847 if test "${enable_symvers+set}" = set; then :
50848 enableval=$enable_symvers;
50849 case "$enableval" in
50850 yes|no|gnu|gnu-versioned-namespace|darwin|darwin-export|sun) ;;
50851 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
50852 esac
50854 else
50855 enable_symvers=yes
50860 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
50861 # don't know enough about $LD to do tricks...
50863 # Sun style symbol versions needs GNU c++filt for make_sunver.pl to work
50864 # with extern "C++" in version scripts.
50867 # Turn a 'yes' into a suitable default.
50868 if test x$enable_symvers = xyes ; then
50869 if test $enable_shared = no || test "x$LD" = x || test x$gcc_no_link = xyes; then
50870 enable_symvers=no
50871 else
50872 if test $with_gnu_ld = yes ; then
50873 case ${target_os} in
50874 hpux*)
50875 enable_symvers=no ;;
50877 enable_symvers=gnu ;;
50878 esac
50879 else
50880 case ${target_os} in
50881 darwin*)
50882 enable_symvers=darwin ;;
50883 # Sun symbol versioning exists since Solaris 2.5.
50884 solaris2.[5-9]* | solaris2.1[0-9]*)
50885 # make_sunver.pl needs GNU c++filt to support extern "C++" in
50886 # version scripts, so disable symbol versioning if none can be
50887 # found.
50888 if test -z "$ac_cv_path_CXXFILT"; then
50889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
50890 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
50891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === no GNU c++filt could be found." >&5
50892 $as_echo "$as_me: WARNING: === no GNU c++filt could be found." >&2;}
50893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
50894 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
50895 enable_symvers=no
50896 else
50897 enable_symvers=sun
50901 enable_symvers=no ;;
50902 esac
50907 # Check to see if 'darwin' or 'darwin-export' can win.
50908 if test x$enable_symvers = xdarwin-export ; then
50909 enable_symvers=darwin
50912 # Check if 'sun' was requested on non-Solaris 2 platforms.
50913 if test x$enable_symvers = xsun ; then
50914 case ${target_os} in
50915 solaris2*)
50916 # All fine.
50919 # Unlikely to work.
50920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
50921 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
50922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
50923 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
50924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
50925 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
50926 enable_symvers=no
50928 esac
50931 # Check to see if 'gnu' can win.
50932 if test $enable_symvers = gnu ||
50933 test $enable_symvers = gnu-versioned-namespace ||
50934 test $enable_symvers = sun; then
50935 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
50936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
50937 $as_echo_n "checking for shared libgcc... " >&6; }
50938 ac_save_CFLAGS="$CFLAGS"
50939 CFLAGS=' -lgcc_s'
50940 if test x$gcc_no_link = xyes; then
50941 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
50943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50944 /* end confdefs.h. */
50947 main ()
50949 return 0;
50951 return 0;
50953 _ACEOF
50954 if ac_fn_c_try_link "$LINENO"; then :
50955 glibcxx_shared_libgcc=yes
50956 else
50957 glibcxx_shared_libgcc=no
50959 rm -f core conftest.err conftest.$ac_objext \
50960 conftest$ac_exeext conftest.$ac_ext
50961 CFLAGS="$ac_save_CFLAGS"
50962 if test $glibcxx_shared_libgcc = no; then
50963 cat > conftest.c <<EOF
50964 int main (void) { return 0; }
50966 glibcxx_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
50967 -shared -shared-libgcc -o conftest.so \
50968 conftest.c -v 2>&1 >/dev/null \
50969 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
50970 rm -f conftest.c conftest.so
50971 if test x${glibcxx_libgcc_s_suffix+set} = xset; then
50972 CFLAGS=" -lgcc_s$glibcxx_libgcc_s_suffix"
50973 if test x$gcc_no_link = xyes; then
50974 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
50976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50977 /* end confdefs.h. */
50980 main ()
50982 return 0;
50984 return 0;
50986 _ACEOF
50987 if ac_fn_c_try_link "$LINENO"; then :
50988 glibcxx_shared_libgcc=yes
50990 rm -f core conftest.err conftest.$ac_objext \
50991 conftest$ac_exeext conftest.$ac_ext
50992 CFLAGS="$ac_save_CFLAGS"
50995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_shared_libgcc" >&5
50996 $as_echo "$glibcxx_shared_libgcc" >&6; }
50998 # For GNU ld, we need at least this version. The format is described in
50999 # GLIBCXX_CHECK_LINKER_FEATURES above.
51000 glibcxx_min_gnu_ld_version=21400
51002 # If no shared libgcc, can't win.
51003 if test $glibcxx_shared_libgcc != yes; then
51004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested GNU symbol versioning, but" >&5
51005 $as_echo "$as_me: WARNING: === You have requested GNU symbol versioning, but" >&2;}
51006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not building a shared libgcc_s." >&5
51007 $as_echo "$as_me: WARNING: === you are not building a shared libgcc_s." >&2;}
51008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
51009 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
51010 enable_symvers=no
51011 elif test $with_gnu_ld != yes && test $enable_symvers = sun; then
51012 : All interesting versions of Sun ld support sun style symbol versioning.
51013 elif test $with_gnu_ld != yes ; then
51014 # just fail for now
51015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested GNU symbol versioning, but" >&5
51016 $as_echo "$as_me: WARNING: === You have requested GNU symbol versioning, but" >&2;}
51017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not using the GNU linker." >&5
51018 $as_echo "$as_me: WARNING: === you are not using the GNU linker." >&2;}
51019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
51020 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
51021 enable_symvers=no
51022 elif test $glibcxx_ld_is_gold = yes ; then
51023 : All versions of gold support symbol versioning.
51024 elif test $glibcxx_ld_is_mold = yes ; then
51025 : All versions of mold support symbol versioning.
51026 elif test $glibcxx_gnu_ld_version -lt $glibcxx_min_gnu_ld_version ; then
51027 # The right tools, the right setup, but too old. Fallbacks?
51028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5
51029 $as_echo "$as_me: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&2;}
51030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
51031 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
51032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
51033 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
51034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&5
51035 $as_echo "$as_me: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&2;}
51036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
51037 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
51038 enable_symvers=no
51042 # For libtool versioning info, format is CURRENT:REVISION:AGE
51043 libtool_VERSION=6:33:0
51045 # Everything parsed; figure out what files and settings to use.
51046 case $enable_symvers in
51048 SYMVER_FILE=config/abi/pre/none.ver
51050 gnu)
51051 SYMVER_FILE=config/abi/pre/gnu.ver
51053 $as_echo "#define _GLIBCXX_SYMVER_GNU 1" >>confdefs.h
51056 gnu-versioned-namespace)
51057 libtool_VERSION=8:0:0
51058 SYMVER_FILE=config/abi/pre/gnu-versioned-namespace.ver
51060 $as_echo "#define _GLIBCXX_SYMVER_GNU_NAMESPACE 1" >>confdefs.h
51063 darwin)
51064 SYMVER_FILE=config/abi/pre/gnu.ver
51066 $as_echo "#define _GLIBCXX_SYMVER_DARWIN 1" >>confdefs.h
51069 sun)
51070 SYMVER_FILE=config/abi/pre/gnu.ver
51072 $as_echo "#define _GLIBCXX_SYMVER_SUN 1" >>confdefs.h
51075 esac
51077 if test x$enable_symvers != xno ; then
51079 $as_echo "#define _GLIBCXX_SYMVER 1" >>confdefs.h
51083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
51084 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
51085 if ${glibcxx_cv_have_as_symver_directive+:} false; then :
51086 $as_echo_n "(cached) " >&6
51087 else
51089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51090 /* end confdefs.h. */
51091 void foo (void); __asm (".symver foo, bar@SYMVER");
51093 main ()
51097 return 0;
51099 _ACEOF
51100 if ac_fn_c_try_compile "$LINENO"; then :
51101 glibcxx_cv_have_as_symver_directive=yes
51102 else
51103 glibcxx_cv_have_as_symver_directive=no
51105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_have_as_symver_directive" >&5
51108 $as_echo "$glibcxx_cv_have_as_symver_directive" >&6; }
51109 if test $glibcxx_cv_have_as_symver_directive = yes; then
51111 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
51122 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
51123 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
51125 if test $enable_symvers != no ; then
51126 case ${target_os} in
51127 # The Solaris 2 runtime linker doesn't support the GNU extension of
51128 # binding the same symbol to different versions
51129 solaris2*)
51131 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
51134 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
51137 esac
51140 # Now, set up compatibility support, if any.
51141 # In addition, need this to deal with std::size_t mangling in
51142 # src/compatibility.cc. In a perfect world, could use
51143 # typeid(std::size_t).name()[0] to do direct substitution.
51144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t as unsigned int" >&5
51145 $as_echo_n "checking for size_t as unsigned int... " >&6; }
51146 ac_save_CFLAGS="$CFLAGS"
51147 CFLAGS="-Werror"
51148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51149 /* end confdefs.h. */
51152 main ()
51154 __SIZE_TYPE__* stp; unsigned int* uip; stp = uip;
51156 return 0;
51158 _ACEOF
51159 if ac_fn_c_try_compile "$LINENO"; then :
51160 glibcxx_size_t_is_i=yes
51161 else
51162 glibcxx_size_t_is_i=no
51164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51165 CFLAGS=$ac_save_CFLAGS
51166 if test "$glibcxx_size_t_is_i" = yes; then
51168 $as_echo "#define _GLIBCXX_SIZE_T_IS_UINT 1" >>confdefs.h
51171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_size_t_is_i" >&5
51172 $as_echo "$glibcxx_size_t_is_i" >&6; }
51174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrdiff_t as int" >&5
51175 $as_echo_n "checking for ptrdiff_t as int... " >&6; }
51176 ac_save_CFLAGS="$CFLAGS"
51177 CFLAGS="-Werror"
51178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51179 /* end confdefs.h. */
51182 main ()
51184 __PTRDIFF_TYPE__* ptp; int* ip; ptp = ip;
51186 return 0;
51188 _ACEOF
51189 if ac_fn_c_try_compile "$LINENO"; then :
51190 glibcxx_ptrdiff_t_is_i=yes
51191 else
51192 glibcxx_ptrdiff_t_is_i=no
51194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51195 CFLAGS=$ac_save_CFLAGS
51196 if test "$glibcxx_ptrdiff_t_is_i" = yes; then
51198 $as_echo "#define _GLIBCXX_PTRDIFF_T_IS_INT 1" >>confdefs.h
51201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_ptrdiff_t_is_i" >&5
51202 $as_echo "$glibcxx_ptrdiff_t_is_i" >&6; }
51207 # Check whether --enable-libstdcxx-visibility was given.
51208 if test "${enable_libstdcxx_visibility+set}" = set; then :
51209 enableval=$enable_libstdcxx_visibility;
51210 case "$enableval" in
51211 yes|no) ;;
51212 *) as_fn_error $? "Argument to enable/disable libstdcxx-visibility must be yes or no" "$LINENO" 5 ;;
51213 esac
51215 else
51216 enable_libstdcxx_visibility=yes
51221 if test x$enable_libstdcxx_visibility = xyes ; then
51222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
51223 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
51224 if ${glibcxx_cv_have_attribute_visibility+:} false; then :
51225 $as_echo_n "(cached) " >&6
51226 else
51228 save_CFLAGS="$CFLAGS"
51229 CFLAGS="$CFLAGS -Werror"
51230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51231 /* end confdefs.h. */
51232 void __attribute__((visibility("hidden"))) foo(void) { }
51234 main ()
51238 return 0;
51240 _ACEOF
51241 if ac_fn_c_try_compile "$LINENO"; then :
51242 glibcxx_cv_have_attribute_visibility=yes
51243 else
51244 glibcxx_cv_have_attribute_visibility=no
51246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51247 CFLAGS="$save_CFLAGS"
51249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_have_attribute_visibility" >&5
51250 $as_echo "$glibcxx_cv_have_attribute_visibility" >&6; }
51251 if test $glibcxx_cv_have_attribute_visibility = no; then
51252 enable_libstdcxx_visibility=no
51257 { $as_echo "$as_me:${as_lineno-$LINENO}: visibility supported: $enable_libstdcxx_visibility" >&5
51258 $as_echo "$as_me: visibility supported: $enable_libstdcxx_visibility" >&6;}
51262 # Check whether --enable-libstdcxx-dual-abi was given.
51263 if test "${enable_libstdcxx_dual_abi+set}" = set; then :
51264 enableval=$enable_libstdcxx_dual_abi;
51265 case "$enableval" in
51266 yes|no) ;;
51267 *) as_fn_error $? "Argument to enable/disable libstdcxx-dual-abi must be yes or no" "$LINENO" 5 ;;
51268 esac
51270 else
51271 enable_libstdcxx_dual_abi=yes
51275 if test x$enable_symvers = xgnu-versioned-namespace; then
51276 # gnu-versioned-namespace is incompatible with the dual ABI.
51277 enable_libstdcxx_dual_abi="no"
51279 if test x"$enable_libstdcxx_dual_abi" != xyes; then
51280 { $as_echo "$as_me:${as_lineno-$LINENO}: dual ABI is disabled" >&5
51281 $as_echo "$as_me: dual ABI is disabled" >&6;}
51282 default_libstdcxx_abi="gcc4-compatible"
51287 if test x$enable_libstdcxx_dual_abi = xyes; then
51288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default std::string ABI to use" >&5
51289 $as_echo_n "checking for default std::string ABI to use... " >&6; }
51291 # Check whether --with-default-libstdcxx-abi was given.
51292 if test "${with_default_libstdcxx_abi+set}" = set; then :
51293 withval=$with_default_libstdcxx_abi; case "$withval" in
51294 gcc4-compatible) default_libstdcxx_abi="gcc4-compatible" ;;
51295 new|cxx11) default_libstdcxx_abi="new" ;;
51296 c++*|gnu++*) as_fn_error $? "Supported arguments for --with-default-libstdcxx-abi have changed, use \"new\" or \"gcc4-compatible\"" "$LINENO" 5 ;;
51297 *) as_fn_error $? "Invalid argument for --with-default-libstdcxx-abi" "$LINENO" 5 ;;
51298 esac
51300 else
51301 default_libstdcxx_abi="new"
51304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${default_libstdcxx_abi}" >&5
51305 $as_echo "${default_libstdcxx_abi}" >&6; }
51307 if test $default_libstdcxx_abi = "new"; then
51308 glibcxx_cxx11_abi=1
51309 glibcxx_cxx98_abi=0
51310 else
51311 glibcxx_cxx11_abi=0
51312 glibcxx_cxx98_abi=1
51318 ac_ldbl_compat=no
51319 ac_ldbl_alt128_compat=no
51320 ac_ldbl_ieee128_default=no
51321 LONG_DOUBLE_COMPAT_FLAGS="-mlong-double-64"
51322 LONG_DOUBLE_128_FLAGS=
51323 LONG_DOUBLE_ALT128_COMPAT_FLAGS=
51324 case "$target" in
51325 powerpc*-*-linux* | \
51326 sparc*-*-linux* | \
51327 s390*-*-linux* | \
51328 alpha*-*-linux*)
51329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51330 /* end confdefs.h. */
51333 main ()
51336 #if !defined __LONG_DOUBLE_128__ || (defined(__sparc__) && defined(__arch64__))
51337 #error no need for long double compatibility
51338 #endif
51341 return 0;
51343 _ACEOF
51344 if ac_fn_c_try_compile "$LINENO"; then :
51345 ac_ldbl_compat=yes
51346 else
51347 ac_ldbl_compat=no
51349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51350 if test "$ac_ldbl_compat" = yes; then
51352 $as_echo "#define _GLIBCXX_LONG_DOUBLE_COMPAT 1" >>confdefs.h
51354 port_specific_symbol_files="\$(top_srcdir)/config/os/gnu-linux/ldbl-extra.ver"
51355 case "$target" in
51356 powerpc*-*-linux*)
51357 LONG_DOUBLE_COMPAT_FLAGS="$LONG_DOUBLE_COMPAT_FLAGS -mno-gnu-attribute"
51358 # Check for IEEE128 support in libm:
51359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __frexpieee128 in -lm" >&5
51360 $as_echo_n "checking for __frexpieee128 in -lm... " >&6; }
51361 if ${ac_cv_lib_m___frexpieee128+:} false; then :
51362 $as_echo_n "(cached) " >&6
51363 else
51364 ac_check_lib_save_LIBS=$LIBS
51365 LIBS="-lm $LIBS"
51366 if test x$gcc_no_link = xyes; then
51367 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
51369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51370 /* end confdefs.h. */
51372 /* Override any GCC internal prototype to avoid an error.
51373 Use char because int might match the return type of a GCC
51374 builtin and then its argument prototype would still apply. */
51375 #ifdef __cplusplus
51376 extern "C"
51377 #endif
51378 char __frexpieee128 ();
51380 main ()
51382 return __frexpieee128 ();
51384 return 0;
51386 _ACEOF
51387 if ac_fn_c_try_link "$LINENO"; then :
51388 ac_cv_lib_m___frexpieee128=yes
51389 else
51390 ac_cv_lib_m___frexpieee128=no
51392 rm -f core conftest.err conftest.$ac_objext \
51393 conftest$ac_exeext conftest.$ac_ext
51394 LIBS=$ac_check_lib_save_LIBS
51396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___frexpieee128" >&5
51397 $as_echo "$ac_cv_lib_m___frexpieee128" >&6; }
51398 if test "x$ac_cv_lib_m___frexpieee128" = xyes; then :
51399 ac_ldbl_ieee128_in_libc=yes
51400 else
51401 ac_ldbl_ieee128_in_libc=no
51404 if test $ac_ldbl_ieee128_in_libc = yes; then
51405 # Determine which long double format is the compiler's default:
51406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51407 /* end confdefs.h. */
51410 main ()
51413 #ifndef __LONG_DOUBLE_IEEE128__
51414 #error compiler defaults to ibm128
51415 #endif
51418 return 0;
51420 _ACEOF
51421 if ac_fn_c_try_compile "$LINENO"; then :
51422 ac_ldbl_ieee128_default=yes
51423 else
51424 ac_ldbl_ieee128_default=no
51426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51427 # Library objects should use default long double format.
51428 if test "$ac_ldbl_ieee128_default" = yes; then
51429 LONG_DOUBLE_128_FLAGS="-mno-gnu-attribute"
51430 # Except for the ones that explicitly use these flags:
51431 LONG_DOUBLE_ALT128_COMPAT_FLAGS="-mabi=ibmlongdouble -mno-gnu-attribute -Wno-psabi"
51432 else
51433 LONG_DOUBLE_128_FLAGS="-mno-gnu-attribute"
51434 LONG_DOUBLE_ALT128_COMPAT_FLAGS="-mabi=ieeelongdouble -mno-gnu-attribute -Wno-psabi"
51437 $as_echo "#define _GLIBCXX_LONG_DOUBLE_ALT128_COMPAT 1" >>confdefs.h
51439 port_specific_symbol_files="$port_specific_symbol_files \$(top_srcdir)/config/os/gnu-linux/ldbl-ieee128-extra.ver"
51440 ac_ldbl_alt128_compat=yes
51441 else
51442 ac_ldbl_alt128_compat=no
51445 esac
51447 esac
51454 # Check if assembler supports disabling hardware capability support.
51456 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS=''
51459 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
51460 # with a different meaning.
51461 case ${target_os} in
51462 solaris2*)
51463 ac_save_CFLAGS="$CFLAGS"
51464 CFLAGS="$CFLAGS -Wa,-nH"
51466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
51467 $as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
51468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51469 /* end confdefs.h. */
51472 main ()
51474 return 0;
51476 return 0;
51478 _ACEOF
51479 if ac_fn_c_try_compile "$LINENO"; then :
51480 ac_hwcap_flags=yes
51481 else
51482 ac_hwcap_flags=no
51484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51485 if test "$ac_hwcap_flags" = "yes"; then
51486 HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS"
51488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
51489 $as_echo "$ac_hwcap_flags" >&6; }
51491 CFLAGS="$ac_save_CFLAGS"
51493 esac
51498 # Check if assembler supports rdrand opcode.
51500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdrand support in assembler" >&5
51501 $as_echo_n "checking for rdrand support in assembler... " >&6; }
51502 if ${ac_cv_x86_rdrand+:} false; then :
51503 $as_echo_n "(cached) " >&6
51504 else
51506 ac_cv_x86_rdrand=no
51507 case "$target" in
51508 i?86-*-* | \
51509 x86_64-*-*)
51510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51511 /* end confdefs.h. */
51514 main ()
51516 asm("rdrand %eax");
51518 return 0;
51520 _ACEOF
51521 if ac_fn_c_try_compile "$LINENO"; then :
51522 ac_cv_x86_rdrand=yes
51523 else
51524 ac_cv_x86_rdrand=no
51526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51527 esac
51530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x86_rdrand" >&5
51531 $as_echo "$ac_cv_x86_rdrand" >&6; }
51532 if test $ac_cv_x86_rdrand = yes; then
51534 $as_echo "#define _GLIBCXX_X86_RDRAND 1" >>confdefs.h
51538 # Check if assembler supports rdseed opcode.
51540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdseed support in assembler" >&5
51541 $as_echo_n "checking for rdseed support in assembler... " >&6; }
51542 if ${ac_cv_x86_rdseed+:} false; then :
51543 $as_echo_n "(cached) " >&6
51544 else
51546 ac_cv_x86_rdseed=no
51547 case "$target" in
51548 i?86-*-* | \
51549 x86_64-*-*)
51550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51551 /* end confdefs.h. */
51554 main ()
51556 asm("rdseed %eax");
51558 return 0;
51560 _ACEOF
51561 if ac_fn_c_try_compile "$LINENO"; then :
51562 ac_cv_x86_rdseed=yes
51563 else
51564 ac_cv_x86_rdseed=no
51566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51567 esac
51570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x86_rdseed" >&5
51571 $as_echo "$ac_cv_x86_rdseed" >&6; }
51572 if test $ac_cv_x86_rdseed = yes; then
51574 $as_echo "#define _GLIBCXX_X86_RDSEED 1" >>confdefs.h
51579 # Check for other random number APIs
51583 ac_ext=cpp
51584 ac_cpp='$CXXCPP $CPPFLAGS'
51585 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51586 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51587 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getentropy" >&5
51590 $as_echo_n "checking for getentropy... " >&6; }
51591 if ${glibcxx_cv_getentropy+:} false; then :
51592 $as_echo_n "(cached) " >&6
51593 else
51595 if test x$gcc_no_link = xyes; then
51596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51597 /* end confdefs.h. */
51598 #include <unistd.h>
51600 main ()
51602 unsigned i;
51603 ::getentropy(&i, sizeof(i));
51605 return 0;
51607 _ACEOF
51608 if ac_fn_cxx_try_compile "$LINENO"; then :
51609 glibcxx_cv_getentropy=yes
51610 else
51611 glibcxx_cv_getentropy=no
51613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51614 else
51615 if test x$gcc_no_link = xyes; then
51616 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
51618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51619 /* end confdefs.h. */
51620 #include <unistd.h>
51622 main ()
51624 unsigned i;
51625 ::getentropy(&i, sizeof(i));
51627 return 0;
51629 _ACEOF
51630 if ac_fn_cxx_try_link "$LINENO"; then :
51631 glibcxx_cv_getentropy=yes
51632 else
51633 glibcxx_cv_getentropy=no
51635 rm -f core conftest.err conftest.$ac_objext \
51636 conftest$ac_exeext conftest.$ac_ext
51640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_getentropy" >&5
51641 $as_echo "$glibcxx_cv_getentropy" >&6; }
51643 if test $glibcxx_cv_getentropy = yes; then
51645 $as_echo "#define HAVE_GETENTROPY 1" >>confdefs.h
51648 ac_ext=c
51649 ac_cpp='$CPP $CPPFLAGS'
51650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51658 ac_ext=cpp
51659 ac_cpp='$CXXCPP $CPPFLAGS'
51660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random" >&5
51665 $as_echo_n "checking for arc4random... " >&6; }
51666 if ${glibcxx_cv_arc4random+:} false; then :
51667 $as_echo_n "(cached) " >&6
51668 else
51670 if test x$gcc_no_link = xyes; then
51671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51672 /* end confdefs.h. */
51673 #include <stdlib.h>
51675 main ()
51677 unsigned i = ::arc4random();
51679 return 0;
51681 _ACEOF
51682 if ac_fn_cxx_try_compile "$LINENO"; then :
51683 glibcxx_cv_arc4random=yes
51684 else
51685 glibcxx_cv_arc4random=no
51687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51688 else
51689 if test x$gcc_no_link = xyes; then
51690 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
51692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51693 /* end confdefs.h. */
51694 #include <stdlib.h>
51696 main ()
51698 unsigned i = ::arc4random();
51700 return 0;
51702 _ACEOF
51703 if ac_fn_cxx_try_link "$LINENO"; then :
51704 glibcxx_cv_arc4random=yes
51705 else
51706 glibcxx_cv_arc4random=no
51708 rm -f core conftest.err conftest.$ac_objext \
51709 conftest$ac_exeext conftest.$ac_ext
51713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_arc4random" >&5
51714 $as_echo "$glibcxx_cv_arc4random" >&6; }
51716 if test $glibcxx_cv_arc4random = yes; then
51718 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
51721 ac_ext=c
51722 ac_cpp='$CPP $CPPFLAGS'
51723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51729 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
51731 # Do checks for resource limit functions.
51734 ac_ext=cpp
51735 ac_cpp='$CXXCPP $CPPFLAGS'
51736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51740 setrlimit_have_headers=yes
51741 for ac_header in unistd.h sys/time.h sys/resource.h
51742 do :
51743 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
51744 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
51745 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
51746 cat >>confdefs.h <<_ACEOF
51747 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
51748 _ACEOF
51750 else
51751 setrlimit_have_headers=no
51754 done
51756 # If don't have the headers, then we can't run the tests now, and we
51757 # won't be seeing any of these during testsuite compilation.
51758 if test $setrlimit_have_headers = yes; then
51759 # Can't do these in a loop, else the resulting syntax is wrong.
51761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_DATA" >&5
51762 $as_echo_n "checking for RLIMIT_DATA... " >&6; }
51763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51764 /* end confdefs.h. */
51765 #include <unistd.h>
51766 #include <sys/time.h>
51767 #include <sys/resource.h>
51770 main ()
51772 int f = RLIMIT_DATA ;
51774 return 0;
51776 _ACEOF
51777 if ac_fn_cxx_try_compile "$LINENO"; then :
51778 glibcxx_mresult=1
51779 else
51780 glibcxx_mresult=0
51782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51784 cat >>confdefs.h <<_ACEOF
51785 #define HAVE_LIMIT_DATA $glibcxx_mresult
51786 _ACEOF
51788 if test $glibcxx_mresult = 1 ; then res=yes ; else res=no ; fi
51789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
51790 $as_echo "$res" >&6; }
51793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_RSS" >&5
51794 $as_echo_n "checking for RLIMIT_RSS... " >&6; }
51795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51796 /* end confdefs.h. */
51797 #include <unistd.h>
51798 #include <sys/time.h>
51799 #include <sys/resource.h>
51802 main ()
51804 int f = RLIMIT_RSS ;
51806 return 0;
51808 _ACEOF
51809 if ac_fn_cxx_try_compile "$LINENO"; then :
51810 glibcxx_mresult=1
51811 else
51812 glibcxx_mresult=0
51814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51816 cat >>confdefs.h <<_ACEOF
51817 #define HAVE_LIMIT_RSS $glibcxx_mresult
51818 _ACEOF
51820 if test $glibcxx_mresult = 1 ; then res=yes ; else res=no ; fi
51821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
51822 $as_echo "$res" >&6; }
51825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_VMEM" >&5
51826 $as_echo_n "checking for RLIMIT_VMEM... " >&6; }
51827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51828 /* end confdefs.h. */
51829 #include <unistd.h>
51830 #include <sys/time.h>
51831 #include <sys/resource.h>
51834 main ()
51836 int f = RLIMIT_VMEM ;
51838 return 0;
51840 _ACEOF
51841 if ac_fn_cxx_try_compile "$LINENO"; then :
51842 glibcxx_mresult=1
51843 else
51844 glibcxx_mresult=0
51846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51848 cat >>confdefs.h <<_ACEOF
51849 #define HAVE_LIMIT_VMEM $glibcxx_mresult
51850 _ACEOF
51852 if test $glibcxx_mresult = 1 ; then res=yes ; else res=no ; fi
51853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
51854 $as_echo "$res" >&6; }
51857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_AS" >&5
51858 $as_echo_n "checking for RLIMIT_AS... " >&6; }
51859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51860 /* end confdefs.h. */
51861 #include <unistd.h>
51862 #include <sys/time.h>
51863 #include <sys/resource.h>
51866 main ()
51868 int f = RLIMIT_AS ;
51870 return 0;
51872 _ACEOF
51873 if ac_fn_cxx_try_compile "$LINENO"; then :
51874 glibcxx_mresult=1
51875 else
51876 glibcxx_mresult=0
51878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51880 cat >>confdefs.h <<_ACEOF
51881 #define HAVE_LIMIT_AS $glibcxx_mresult
51882 _ACEOF
51884 if test $glibcxx_mresult = 1 ; then res=yes ; else res=no ; fi
51885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
51886 $as_echo "$res" >&6; }
51889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_FSIZE" >&5
51890 $as_echo_n "checking for RLIMIT_FSIZE... " >&6; }
51891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51892 /* end confdefs.h. */
51893 #include <unistd.h>
51894 #include <sys/time.h>
51895 #include <sys/resource.h>
51898 main ()
51900 int f = RLIMIT_FSIZE ;
51902 return 0;
51904 _ACEOF
51905 if ac_fn_cxx_try_compile "$LINENO"; then :
51906 glibcxx_mresult=1
51907 else
51908 glibcxx_mresult=0
51910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51912 cat >>confdefs.h <<_ACEOF
51913 #define HAVE_LIMIT_FSIZE $glibcxx_mresult
51914 _ACEOF
51916 if test $glibcxx_mresult = 1 ; then res=yes ; else res=no ; fi
51917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
51918 $as_echo "$res" >&6; }
51921 # Check for rlimit, setrlimit.
51922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for testsuite resource limits support" >&5
51923 $as_echo_n "checking for testsuite resource limits support... " >&6; }
51924 if ${glibcxx_cv_setrlimit+:} false; then :
51925 $as_echo_n "(cached) " >&6
51926 else
51928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51929 /* end confdefs.h. */
51930 #include <unistd.h>
51931 #include <sys/time.h>
51932 #include <sys/resource.h>
51935 main ()
51937 struct rlimit r;
51938 setrlimit(0, &r);
51940 return 0;
51942 _ACEOF
51943 if ac_fn_cxx_try_compile "$LINENO"; then :
51944 glibcxx_cv_setrlimit=yes
51945 else
51946 glibcxx_cv_setrlimit=no
51948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_setrlimit" >&5
51952 $as_echo "$glibcxx_cv_setrlimit" >&6; }
51954 if test $glibcxx_cv_setrlimit = yes; then
51956 $as_echo "#define _GLIBCXX_RES_LIMITS 1" >>confdefs.h
51960 ac_ext=c
51961 ac_cpp='$CPP $CPPFLAGS'
51962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51968 if $GLIBCXX_IS_NATIVE ; then
51969 # Look for setenv, so that extended locale tests can be performed.
51971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setenv declaration" >&5
51972 $as_echo_n "checking for setenv declaration... " >&6; }
51973 if test x${glibcxx_cv_func_setenv_use+set} != xset; then
51974 if ${glibcxx_cv_func_setenv_use+:} false; then :
51975 $as_echo_n "(cached) " >&6
51976 else
51979 ac_ext=cpp
51980 ac_cpp='$CXXCPP $CPPFLAGS'
51981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51986 /* end confdefs.h. */
51987 #include <stdlib.h>
51989 main ()
51991 setenv(0, 0, 0);
51993 return 0;
51995 _ACEOF
51996 if ac_fn_cxx_try_compile "$LINENO"; then :
51997 glibcxx_cv_func_setenv_use=yes
51998 else
51999 glibcxx_cv_func_setenv_use=no
52001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52002 ac_ext=c
52003 ac_cpp='$CPP $CPPFLAGS'
52004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_setenv_use" >&5
52013 $as_echo "$glibcxx_cv_func_setenv_use" >&6; }
52014 if test x$glibcxx_cv_func_setenv_use = x"yes"; then
52015 for ac_func in setenv
52016 do :
52017 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
52018 if test "x$ac_cv_func_setenv" = xyes; then :
52019 cat >>confdefs.h <<_ACEOF
52020 #define HAVE_SETENV 1
52021 _ACEOF
52024 done
52030 if $GLIBCXX_IS_NATIVE && test $is_hosted = yes &&
52031 test $enable_symvers != no; then
52032 case "$host" in
52033 *-*-cygwin*)
52034 enable_abi_check=no ;;
52036 enable_abi_check=yes ;;
52037 esac
52038 else
52039 # Only build this as native, since automake does not understand
52040 # CXX_FOR_BUILD.
52041 enable_abi_check=no
52044 # Export file names for ABI checking.
52045 baseline_dir="$glibcxx_srcdir/config/abi/post/${abi_baseline_pair}"
52047 baseline_subdir_switch="$abi_baseline_subdir_switch"
52051 # For gthread support. Depends on GLIBCXX_ENABLE_SYMVERS.
52053 # Check whether --enable-libstdcxx-threads was given.
52054 if test "${enable_libstdcxx_threads+set}" = set; then :
52055 enableval=$enable_libstdcxx_threads;
52056 case "$enableval" in
52057 yes|no) ;;
52058 *) as_fn_error $? "Argument to enable/disable libstdcxx-threads must be yes or no" "$LINENO" 5 ;;
52059 esac
52061 else
52062 enable_libstdcxx_threads=auto
52067 if test x$enable_libstdcxx_threads = xauto ||
52068 test x$enable_libstdcxx_threads = xyes; then
52071 ac_ext=cpp
52072 ac_cpp='$CXXCPP $CPPFLAGS'
52073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52078 ac_save_CXXFLAGS="$CXXFLAGS"
52079 CXXFLAGS="$CXXFLAGS -fno-exceptions \
52080 -I${toplevel_srcdir}/libgcc -I${toplevel_builddir}/libgcc"
52082 target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
52083 case $target_thread_file in
52084 posix)
52085 CXXFLAGS="$CXXFLAGS -DSUPPORTS_WEAK -DGTHREAD_USE_WEAK -D_PTHREADS"
52087 win32)
52088 CXXFLAGS="$CXXFLAGS -D_WIN32_THREADS"
52089 # The support of condition variables is disabled by default in
52090 # the Win32 gthreads library, so enable it on explicit request.
52091 if test x$enable_libstdcxx_threads = xyes; then
52092 CXXFLAGS="$CXXFLAGS -D_WIN32_WINNT=0x0600"
52095 esac
52097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it can be safely assumed that mutex_timedlock is available" >&5
52098 $as_echo_n "checking whether it can be safely assumed that mutex_timedlock is available... " >&6; }
52100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52101 /* end confdefs.h. */
52102 #include <unistd.h>
52104 main ()
52107 // In case of POSIX threads check _POSIX_TIMEOUTS.
52108 #if (defined(_PTHREADS) \
52109 && (!defined(_POSIX_TIMEOUTS) || _POSIX_TIMEOUTS <= 0))
52110 #error
52111 // In case of Win32 threads there is no support.
52112 #elif defined(_WIN32_THREADS)
52113 #error
52114 #endif
52117 return 0;
52119 _ACEOF
52120 if ac_fn_cxx_try_compile "$LINENO"; then :
52121 ac_gthread_use_mutex_timedlock=1
52122 else
52123 ac_gthread_use_mutex_timedlock=0
52125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52128 cat >>confdefs.h <<_ACEOF
52129 #define _GTHREAD_USE_MUTEX_TIMEDLOCK $ac_gthread_use_mutex_timedlock
52130 _ACEOF
52133 if test $ac_gthread_use_mutex_timedlock = 1 ; then res_mutex_timedlock=yes ;
52134 else res_mutex_timedlock=no ; fi
52135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res_mutex_timedlock" >&5
52136 $as_echo "$res_mutex_timedlock" >&6; }
52138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gthreads library" >&5
52139 $as_echo_n "checking for gthreads library... " >&6; }
52141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52142 /* end confdefs.h. */
52143 #include "gthr.h"
52145 main ()
52148 #ifndef __GTHREADS_CXX0X
52149 #error
52150 #endif
52153 return 0;
52155 _ACEOF
52156 if ac_fn_cxx_try_compile "$LINENO"; then :
52157 ac_has_gthreads=yes
52158 else
52159 ac_has_gthreads=no
52161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52162 else
52163 ac_has_gthreads=no
52166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_gthreads" >&5
52167 $as_echo "$ac_has_gthreads" >&6; }
52169 if test x"$ac_has_gthreads" = x"yes"; then
52171 $as_echo "#define _GLIBCXX_HAS_GTHREADS 1" >>confdefs.h
52174 # Also check for pthread_rwlock_t for std::shared_timed_mutex in C++14
52175 # but only do so if we're using pthread in the gthread library.
52176 # On VxWorks for example, pthread_rwlock_t is defined in sys/types.h
52177 # but the pthread library is not there by default and the gthread library
52178 # does not use it.
52179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52180 /* end confdefs.h. */
52181 #include "gthr.h"
52183 main ()
52186 #if (!defined(_PTHREADS))
52187 #error
52188 #endif
52191 return 0;
52193 _ACEOF
52194 if ac_fn_cxx_try_compile "$LINENO"; then :
52195 ac_gthread_use_pthreads=yes
52196 else
52197 ac_gthread_use_pthreads=no
52199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52200 if test x"$ac_gthread_use_pthreads" = x"yes"; then
52201 ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include \"gthr.h\"
52203 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
52205 $as_echo "#define _GLIBCXX_USE_PTHREAD_RWLOCK_T 1" >>confdefs.h
52211 # See above for the rationale.
52212 if test $target_thread_file = win32; then
52213 CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0600"
52217 ac_fn_cxx_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
52218 if test "x$ac_cv_header_semaphore_h" = xyes; then :
52220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX Semaphores and sem_timedwait" >&5
52221 $as_echo_n "checking for POSIX Semaphores and sem_timedwait... " >&6; }
52222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52223 /* end confdefs.h. */
52225 #include <unistd.h>
52226 #include <semaphore.h>
52227 #include <limits.h>
52230 main ()
52233 #if !defined _POSIX_TIMEOUTS || _POSIX_TIMEOUTS <= 0
52234 # error "POSIX Timeouts option not supported"
52235 #elif !defined _POSIX_SEMAPHORES || _POSIX_SEMAPHORES <= 0
52236 # error "POSIX Semaphores option not supported"
52237 #else
52238 #if defined SEM_VALUE_MAX
52239 constexpr int sem_value_max = SEM_VALUE_MAX;
52240 #elif defined _POSIX_SEM_VALUE_MAX
52241 constexpr int sem_value_max = _POSIX_SEM_VALUE_MAX;
52242 #else
52243 # error "SEM_VALUE_MAX not available"
52244 #endif
52245 sem_t sem;
52246 sem_init(&sem, 0, sem_value_max);
52247 struct timespec ts = { 0 };
52248 sem_timedwait(&sem, &ts);
52249 #endif
52252 return 0;
52254 _ACEOF
52255 if ac_fn_cxx_try_compile "$LINENO"; then :
52256 ac_have_posix_semaphore=yes
52257 else
52258 ac_have_posix_semaphore=no
52260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52261 else
52262 ac_have_posix_semaphore=no
52267 if test $ac_have_posix_semaphore = yes ; then
52269 $as_echo "#define HAVE_POSIX_SEMAPHORE 1" >>confdefs.h
52272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have_posix_semaphore" >&5
52273 $as_echo "$ac_have_posix_semaphore" >&6; }
52275 CXXFLAGS="$ac_save_CXXFLAGS"
52276 ac_ext=c
52277 ac_cpp='$CPP $CPPFLAGS'
52278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52284 # For Filesystem TS.
52285 for ac_header in fcntl.h dirent.h sys/statvfs.h utime.h
52286 do :
52287 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
52288 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
52289 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
52290 cat >>confdefs.h <<_ACEOF
52291 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
52292 _ACEOF
52296 done
52299 # Check whether --enable-libstdcxx-filesystem-ts was given.
52300 if test "${enable_libstdcxx_filesystem_ts+set}" = set; then :
52301 enableval=$enable_libstdcxx_filesystem_ts;
52302 case "$enableval" in
52303 yes|no|auto) ;;
52304 *) as_fn_error $? "Unknown argument to enable/disable libstdcxx-filesystem-ts" "$LINENO" 5 ;;
52305 esac
52307 else
52308 enable_libstdcxx_filesystem_ts=auto
52313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Filesystem TS support" >&5
52314 $as_echo_n "checking whether to build Filesystem TS support... " >&6; }
52315 if test x"$ac_cv_header_dirent_h" != x"yes"; then
52316 enable_libstdcxx_filesystem_ts=no
52318 if test x"$enable_libstdcxx_filesystem_ts" = x"auto"; then
52319 case "${target_os}" in
52320 freebsd*|netbsd*|openbsd*|dragonfly*|darwin*)
52321 enable_libstdcxx_filesystem_ts=yes
52323 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu | uclinux*)
52324 enable_libstdcxx_filesystem_ts=yes
52326 rtems*)
52327 enable_libstdcxx_filesystem_ts=yes
52329 solaris*)
52330 enable_libstdcxx_filesystem_ts=yes
52332 mingw*)
52333 enable_libstdcxx_filesystem_ts=yes
52336 enable_libstdcxx_filesystem_ts=no
52338 esac
52340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_filesystem_ts" >&5
52341 $as_echo "$enable_libstdcxx_filesystem_ts" >&6; }
52345 ac_ext=cpp
52346 ac_cpp='$CXXCPP $CPPFLAGS'
52347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52351 ac_save_CXXFLAGS="$CXXFLAGS"
52352 CXXFLAGS="$CXXFLAGS -fno-exceptions"
52353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_type" >&5
52354 $as_echo_n "checking for struct dirent.d_type... " >&6; }
52355 if ${glibcxx_cv_dirent_d_type+:} false; then :
52356 $as_echo_n "(cached) " >&6
52357 else
52358 if test x$gcc_no_link = xyes; then
52359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52360 /* end confdefs.h. */
52361 #include <dirent.h>
52363 main ()
52366 struct dirent d;
52367 if (sizeof d.d_type) return 0;
52370 return 0;
52372 _ACEOF
52373 if ac_fn_cxx_try_compile "$LINENO"; then :
52374 glibcxx_cv_dirent_d_type=yes
52375 else
52376 glibcxx_cv_dirent_d_type=no
52378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52379 else
52380 if test x$gcc_no_link = xyes; then
52381 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52384 /* end confdefs.h. */
52385 #include <dirent.h>
52387 main ()
52390 struct dirent d;
52391 if (sizeof d.d_type) return 0;
52394 return 0;
52396 _ACEOF
52397 if ac_fn_cxx_try_link "$LINENO"; then :
52398 glibcxx_cv_dirent_d_type=yes
52399 else
52400 glibcxx_cv_dirent_d_type=no
52402 rm -f core conftest.err conftest.$ac_objext \
52403 conftest$ac_exeext conftest.$ac_ext
52407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_dirent_d_type" >&5
52408 $as_echo "$glibcxx_cv_dirent_d_type" >&6; }
52409 if test $glibcxx_cv_dirent_d_type = yes; then
52411 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
52414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chmod" >&5
52415 $as_echo_n "checking for chmod... " >&6; }
52416 if ${glibcxx_cv_chmod+:} false; then :
52417 $as_echo_n "(cached) " >&6
52418 else
52419 if test x$gcc_no_link = xyes; then
52420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52421 /* end confdefs.h. */
52423 #include <sys/stat.h>
52426 main ()
52429 int i = chmod("", S_IRUSR);
52432 return 0;
52434 _ACEOF
52435 if ac_fn_cxx_try_compile "$LINENO"; then :
52436 glibcxx_cv_chmod=yes
52437 else
52438 glibcxx_cv_chmod=no
52440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52441 else
52442 if test x$gcc_no_link = xyes; then
52443 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52446 /* end confdefs.h. */
52448 #include <sys/stat.h>
52451 main ()
52454 int i = chmod("", S_IRUSR);
52457 return 0;
52459 _ACEOF
52460 if ac_fn_cxx_try_link "$LINENO"; then :
52461 glibcxx_cv_chmod=yes
52462 else
52463 glibcxx_cv_chmod=no
52465 rm -f core conftest.err conftest.$ac_objext \
52466 conftest$ac_exeext conftest.$ac_ext
52470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_chmod" >&5
52471 $as_echo "$glibcxx_cv_chmod" >&6; }
52472 if test $glibcxx_cv_chmod = yes; then
52474 $as_echo "#define _GLIBCXX_USE_CHMOD 1" >>confdefs.h
52477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkdir" >&5
52478 $as_echo_n "checking for mkdir... " >&6; }
52479 if ${glibcxx_cv_mkdir+:} false; then :
52480 $as_echo_n "(cached) " >&6
52481 else
52482 if test x$gcc_no_link = xyes; then
52483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52484 /* end confdefs.h. */
52486 #include <sys/stat.h>
52489 main ()
52492 int i = mkdir("", S_IRUSR);
52495 return 0;
52497 _ACEOF
52498 if ac_fn_cxx_try_compile "$LINENO"; then :
52499 glibcxx_cv_mkdir=yes
52500 else
52501 glibcxx_cv_mkdir=no
52503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52504 else
52505 if test x$gcc_no_link = xyes; then
52506 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52509 /* end confdefs.h. */
52511 #include <sys/stat.h>
52514 main ()
52517 int i = mkdir("", S_IRUSR);
52520 return 0;
52522 _ACEOF
52523 if ac_fn_cxx_try_link "$LINENO"; then :
52524 glibcxx_cv_mkdir=yes
52525 else
52526 glibcxx_cv_mkdir=no
52528 rm -f core conftest.err conftest.$ac_objext \
52529 conftest$ac_exeext conftest.$ac_ext
52533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_mkdir" >&5
52534 $as_echo "$glibcxx_cv_mkdir" >&6; }
52535 if test $glibcxx_cv_mkdir = yes; then
52537 $as_echo "#define _GLIBCXX_USE_MKDIR 1" >>confdefs.h
52540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chdir" >&5
52541 $as_echo_n "checking for chdir... " >&6; }
52542 if ${glibcxx_cv_chdir+:} false; then :
52543 $as_echo_n "(cached) " >&6
52544 else
52545 if test x$gcc_no_link = xyes; then
52546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52547 /* end confdefs.h. */
52549 #include <unistd.h>
52552 main ()
52555 int i = chdir("");
52558 return 0;
52560 _ACEOF
52561 if ac_fn_cxx_try_compile "$LINENO"; then :
52562 glibcxx_cv_chdir=yes
52563 else
52564 glibcxx_cv_chdir=no
52566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52567 else
52568 if test x$gcc_no_link = xyes; then
52569 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52572 /* end confdefs.h. */
52574 #include <unistd.h>
52577 main ()
52580 int i = chdir("");
52583 return 0;
52585 _ACEOF
52586 if ac_fn_cxx_try_link "$LINENO"; then :
52587 glibcxx_cv_chdir=yes
52588 else
52589 glibcxx_cv_chdir=no
52591 rm -f core conftest.err conftest.$ac_objext \
52592 conftest$ac_exeext conftest.$ac_ext
52596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_chdir" >&5
52597 $as_echo "$glibcxx_cv_chdir" >&6; }
52598 if test $glibcxx_cv_chdir = yes; then
52600 $as_echo "#define _GLIBCXX_USE_CHDIR 1" >>confdefs.h
52603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd" >&5
52604 $as_echo_n "checking for getcwd... " >&6; }
52605 if ${glibcxx_cv_getcwd+:} false; then :
52606 $as_echo_n "(cached) " >&6
52607 else
52608 if test x$gcc_no_link = xyes; then
52609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52610 /* end confdefs.h. */
52612 #include <unistd.h>
52615 main ()
52618 char* s = getcwd((char*)0, 1);
52621 return 0;
52623 _ACEOF
52624 if ac_fn_cxx_try_compile "$LINENO"; then :
52625 glibcxx_cv_getcwd=yes
52626 else
52627 glibcxx_cv_getcwd=no
52629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52630 else
52631 if test x$gcc_no_link = xyes; then
52632 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52635 /* end confdefs.h. */
52637 #include <unistd.h>
52640 main ()
52643 char* s = getcwd((char*)0, 1);
52646 return 0;
52648 _ACEOF
52649 if ac_fn_cxx_try_link "$LINENO"; then :
52650 glibcxx_cv_getcwd=yes
52651 else
52652 glibcxx_cv_getcwd=no
52654 rm -f core conftest.err conftest.$ac_objext \
52655 conftest$ac_exeext conftest.$ac_ext
52659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_getcwd" >&5
52660 $as_echo "$glibcxx_cv_getcwd" >&6; }
52661 if test $glibcxx_cv_getcwd = yes; then
52663 $as_echo "#define _GLIBCXX_USE_GETCWD 1" >>confdefs.h
52666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for realpath" >&5
52667 $as_echo_n "checking for realpath... " >&6; }
52668 if ${glibcxx_cv_realpath+:} false; then :
52669 $as_echo_n "(cached) " >&6
52670 else
52671 if test x$gcc_no_link = xyes; then
52672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52673 /* end confdefs.h. */
52675 #include <limits.h>
52676 #include <stdlib.h>
52677 #include <unistd.h>
52680 main ()
52683 #if _XOPEN_VERSION < 500
52684 #error
52685 #elif _XOPEN_VERSION >= 700 || defined(PATH_MAX)
52686 char *tmp = realpath((const char*)NULL, (char*)NULL);
52687 #else
52688 #error
52689 #endif
52692 return 0;
52694 _ACEOF
52695 if ac_fn_cxx_try_compile "$LINENO"; then :
52696 glibcxx_cv_realpath=yes
52697 else
52698 glibcxx_cv_realpath=no
52700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52701 else
52702 if test x$gcc_no_link = xyes; then
52703 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52706 /* end confdefs.h. */
52708 #include <limits.h>
52709 #include <stdlib.h>
52710 #include <unistd.h>
52713 main ()
52716 #if _XOPEN_VERSION < 500
52717 #error
52718 #elif _XOPEN_VERSION >= 700 || defined(PATH_MAX)
52719 char *tmp = realpath((const char*)NULL, (char*)NULL);
52720 #else
52721 #error
52722 #endif
52725 return 0;
52727 _ACEOF
52728 if ac_fn_cxx_try_link "$LINENO"; then :
52729 glibcxx_cv_realpath=yes
52730 else
52731 glibcxx_cv_realpath=no
52733 rm -f core conftest.err conftest.$ac_objext \
52734 conftest$ac_exeext conftest.$ac_ext
52738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_realpath" >&5
52739 $as_echo "$glibcxx_cv_realpath" >&6; }
52740 if test $glibcxx_cv_realpath = yes; then
52742 $as_echo "#define _GLIBCXX_USE_REALPATH 1" >>confdefs.h
52745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimensat" >&5
52746 $as_echo_n "checking for utimensat... " >&6; }
52747 if ${glibcxx_cv_utimensat+:} false; then :
52748 $as_echo_n "(cached) " >&6
52749 else
52750 if test x$gcc_no_link = xyes; then
52751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52752 /* end confdefs.h. */
52754 #include <fcntl.h>
52755 #include <sys/stat.h>
52758 main ()
52761 struct timespec ts[2] = { { 0, UTIME_OMIT }, { 1, 1 } };
52762 int i = utimensat(AT_FDCWD, "path", ts, 0);
52765 return 0;
52767 _ACEOF
52768 if ac_fn_cxx_try_compile "$LINENO"; then :
52769 glibcxx_cv_utimensat=yes
52770 else
52771 glibcxx_cv_utimensat=no
52773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52774 else
52775 if test x$gcc_no_link = xyes; then
52776 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52779 /* end confdefs.h. */
52781 #include <fcntl.h>
52782 #include <sys/stat.h>
52785 main ()
52788 struct timespec ts[2] = { { 0, UTIME_OMIT }, { 1, 1 } };
52789 int i = utimensat(AT_FDCWD, "path", ts, 0);
52792 return 0;
52794 _ACEOF
52795 if ac_fn_cxx_try_link "$LINENO"; then :
52796 glibcxx_cv_utimensat=yes
52797 else
52798 glibcxx_cv_utimensat=no
52800 rm -f core conftest.err conftest.$ac_objext \
52801 conftest$ac_exeext conftest.$ac_ext
52805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_utimensat" >&5
52806 $as_echo "$glibcxx_cv_utimensat" >&6; }
52807 if test $glibcxx_cv_utimensat = yes; then
52809 $as_echo "#define _GLIBCXX_USE_UTIMENSAT 1" >>confdefs.h
52812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime" >&5
52813 $as_echo_n "checking for utime... " >&6; }
52814 if ${glibcxx_cv_utime+:} false; then :
52815 $as_echo_n "(cached) " >&6
52816 else
52817 if test x$gcc_no_link = xyes; then
52818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52819 /* end confdefs.h. */
52821 #include <utime.h>
52824 main ()
52827 struct utimbuf t = { 1, 1 };
52828 int i = utime("path", &t);
52831 return 0;
52833 _ACEOF
52834 if ac_fn_cxx_try_compile "$LINENO"; then :
52835 glibcxx_cv_utime=yes
52836 else
52837 glibcxx_cv_utime=no
52839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52840 else
52841 if test x$gcc_no_link = xyes; then
52842 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52845 /* end confdefs.h. */
52847 #include <utime.h>
52850 main ()
52853 struct utimbuf t = { 1, 1 };
52854 int i = utime("path", &t);
52857 return 0;
52859 _ACEOF
52860 if ac_fn_cxx_try_link "$LINENO"; then :
52861 glibcxx_cv_utime=yes
52862 else
52863 glibcxx_cv_utime=no
52865 rm -f core conftest.err conftest.$ac_objext \
52866 conftest$ac_exeext conftest.$ac_ext
52870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_utime" >&5
52871 $as_echo "$glibcxx_cv_utime" >&6; }
52872 if test $glibcxx_cv_utime = yes; then
52874 $as_echo "#define _GLIBCXX_USE_UTIME 1" >>confdefs.h
52877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
52878 $as_echo_n "checking for lstat... " >&6; }
52879 if ${glibcxx_cv_lstat+:} false; then :
52880 $as_echo_n "(cached) " >&6
52881 else
52882 if test x$gcc_no_link = xyes; then
52883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52884 /* end confdefs.h. */
52885 #include <sys/stat.h>
52887 main ()
52890 struct stat st;
52891 int i = lstat("path", &st);
52894 return 0;
52896 _ACEOF
52897 if ac_fn_cxx_try_compile "$LINENO"; then :
52898 glibcxx_cv_lstat=yes
52899 else
52900 glibcxx_cv_lstat=no
52902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52903 else
52904 if test x$gcc_no_link = xyes; then
52905 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52908 /* end confdefs.h. */
52909 #include <sys/stat.h>
52911 main ()
52914 struct stat st;
52915 int i = lstat("path", &st);
52918 return 0;
52920 _ACEOF
52921 if ac_fn_cxx_try_link "$LINENO"; then :
52922 glibcxx_cv_lstat=yes
52923 else
52924 glibcxx_cv_lstat=no
52926 rm -f core conftest.err conftest.$ac_objext \
52927 conftest$ac_exeext conftest.$ac_ext
52931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_lstat" >&5
52932 $as_echo "$glibcxx_cv_lstat" >&6; }
52933 if test $glibcxx_cv_lstat = yes; then
52935 $as_echo "#define _GLIBCXX_USE_LSTAT 1" >>confdefs.h
52938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec" >&5
52939 $as_echo_n "checking for struct stat.st_mtim.tv_nsec... " >&6; }
52940 if ${glibcxx_cv_st_mtim+:} false; then :
52941 $as_echo_n "(cached) " >&6
52942 else
52943 if test x$gcc_no_link = xyes; then
52944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52945 /* end confdefs.h. */
52946 #include <sys/stat.h>
52948 main ()
52951 struct stat st;
52952 return st.st_mtim.tv_nsec;
52955 return 0;
52957 _ACEOF
52958 if ac_fn_cxx_try_compile "$LINENO"; then :
52959 glibcxx_cv_st_mtim=yes
52960 else
52961 glibcxx_cv_st_mtim=no
52963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52964 else
52965 if test x$gcc_no_link = xyes; then
52966 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52969 /* end confdefs.h. */
52970 #include <sys/stat.h>
52972 main ()
52975 struct stat st;
52976 return st.st_mtim.tv_nsec;
52979 return 0;
52981 _ACEOF
52982 if ac_fn_cxx_try_link "$LINENO"; then :
52983 glibcxx_cv_st_mtim=yes
52984 else
52985 glibcxx_cv_st_mtim=no
52987 rm -f core conftest.err conftest.$ac_objext \
52988 conftest$ac_exeext conftest.$ac_ext
52992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_st_mtim" >&5
52993 $as_echo "$glibcxx_cv_st_mtim" >&6; }
52994 if test $glibcxx_cv_st_mtim = yes; then
52996 $as_echo "#define _GLIBCXX_USE_ST_MTIM 1" >>confdefs.h
52999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchmod" >&5
53000 $as_echo_n "checking for fchmod... " >&6; }
53001 if ${glibcxx_cv_fchmod+:} false; then :
53002 $as_echo_n "(cached) " >&6
53003 else
53004 if test x$gcc_no_link = xyes; then
53005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53006 /* end confdefs.h. */
53007 #include <sys/stat.h>
53009 main ()
53011 fchmod(1, S_IWUSR);
53013 return 0;
53015 _ACEOF
53016 if ac_fn_cxx_try_compile "$LINENO"; then :
53017 glibcxx_cv_fchmod=yes
53018 else
53019 glibcxx_cv_fchmod=no
53021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53022 else
53023 if test x$gcc_no_link = xyes; then
53024 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53027 /* end confdefs.h. */
53028 #include <sys/stat.h>
53030 main ()
53032 fchmod(1, S_IWUSR);
53034 return 0;
53036 _ACEOF
53037 if ac_fn_cxx_try_link "$LINENO"; then :
53038 glibcxx_cv_fchmod=yes
53039 else
53040 glibcxx_cv_fchmod=no
53042 rm -f core conftest.err conftest.$ac_objext \
53043 conftest$ac_exeext conftest.$ac_ext
53047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_fchmod" >&5
53048 $as_echo "$glibcxx_cv_fchmod" >&6; }
53049 if test $glibcxx_cv_fchmod = yes; then
53051 $as_echo "#define _GLIBCXX_USE_FCHMOD 1" >>confdefs.h
53054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchmodat" >&5
53055 $as_echo_n "checking for fchmodat... " >&6; }
53056 if ${glibcxx_cv_fchmodat+:} false; then :
53057 $as_echo_n "(cached) " >&6
53058 else
53059 if test x$gcc_no_link = xyes; then
53060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53061 /* end confdefs.h. */
53063 #include <fcntl.h>
53064 #include <sys/stat.h>
53067 main ()
53069 fchmodat(AT_FDCWD, "", 0, AT_SYMLINK_NOFOLLOW);
53071 return 0;
53073 _ACEOF
53074 if ac_fn_cxx_try_compile "$LINENO"; then :
53075 glibcxx_cv_fchmodat=yes
53076 else
53077 glibcxx_cv_fchmodat=no
53079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53080 else
53081 if test x$gcc_no_link = xyes; then
53082 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53085 /* end confdefs.h. */
53087 #include <fcntl.h>
53088 #include <sys/stat.h>
53091 main ()
53093 fchmodat(AT_FDCWD, "", 0, AT_SYMLINK_NOFOLLOW);
53095 return 0;
53097 _ACEOF
53098 if ac_fn_cxx_try_link "$LINENO"; then :
53099 glibcxx_cv_fchmodat=yes
53100 else
53101 glibcxx_cv_fchmodat=no
53103 rm -f core conftest.err conftest.$ac_objext \
53104 conftest$ac_exeext conftest.$ac_ext
53108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_fchmodat" >&5
53109 $as_echo "$glibcxx_cv_fchmodat" >&6; }
53110 if test $glibcxx_cv_fchmodat = yes; then
53112 $as_echo "#define _GLIBCXX_USE_FCHMODAT 1" >>confdefs.h
53115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
53116 $as_echo_n "checking for link... " >&6; }
53117 if ${glibcxx_cv_link+:} false; then :
53118 $as_echo_n "(cached) " >&6
53119 else
53120 if test x$gcc_no_link = xyes; then
53121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53122 /* end confdefs.h. */
53123 #include <unistd.h>
53125 main ()
53127 link("", "");
53129 return 0;
53131 _ACEOF
53132 if ac_fn_cxx_try_compile "$LINENO"; then :
53133 glibcxx_cv_link=yes
53134 else
53135 glibcxx_cv_link=no
53137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53138 else
53139 if test x$gcc_no_link = xyes; then
53140 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53143 /* end confdefs.h. */
53144 #include <unistd.h>
53146 main ()
53148 link("", "");
53150 return 0;
53152 _ACEOF
53153 if ac_fn_cxx_try_link "$LINENO"; then :
53154 glibcxx_cv_link=yes
53155 else
53156 glibcxx_cv_link=no
53158 rm -f core conftest.err conftest.$ac_objext \
53159 conftest$ac_exeext conftest.$ac_ext
53163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_link" >&5
53164 $as_echo "$glibcxx_cv_link" >&6; }
53165 if test $glibcxx_cv_link = yes; then
53167 $as_echo "#define HAVE_LINK 1" >>confdefs.h
53170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lseek" >&5
53171 $as_echo_n "checking for lseek... " >&6; }
53172 if ${glibcxx_cv_lseek+:} false; then :
53173 $as_echo_n "(cached) " >&6
53174 else
53175 if test x$gcc_no_link = xyes; then
53176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53177 /* end confdefs.h. */
53178 #include <unistd.h>
53180 main ()
53182 lseek(1, 0, SEEK_SET);
53184 return 0;
53186 _ACEOF
53187 if ac_fn_cxx_try_compile "$LINENO"; then :
53188 glibcxx_cv_lseek=yes
53189 else
53190 glibcxx_cv_lseek=no
53192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53193 else
53194 if test x$gcc_no_link = xyes; then
53195 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53198 /* end confdefs.h. */
53199 #include <unistd.h>
53201 main ()
53203 lseek(1, 0, SEEK_SET);
53205 return 0;
53207 _ACEOF
53208 if ac_fn_cxx_try_link "$LINENO"; then :
53209 glibcxx_cv_lseek=yes
53210 else
53211 glibcxx_cv_lseek=no
53213 rm -f core conftest.err conftest.$ac_objext \
53214 conftest$ac_exeext conftest.$ac_ext
53218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_lseek" >&5
53219 $as_echo "$glibcxx_cv_lseek" >&6; }
53220 if test $glibcxx_cv_lseek = yes; then
53222 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
53225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readlink" >&5
53226 $as_echo_n "checking for readlink... " >&6; }
53227 if ${glibcxx_cv_readlink+:} false; then :
53228 $as_echo_n "(cached) " >&6
53229 else
53230 if test x$gcc_no_link = xyes; then
53231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53232 /* end confdefs.h. */
53233 #include <unistd.h>
53235 main ()
53237 char buf[32]; readlink("", buf, sizeof(buf));
53239 return 0;
53241 _ACEOF
53242 if ac_fn_cxx_try_compile "$LINENO"; then :
53243 glibcxx_cv_readlink=yes
53244 else
53245 glibcxx_cv_readlink=no
53247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53248 else
53249 if test x$gcc_no_link = xyes; then
53250 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53253 /* end confdefs.h. */
53254 #include <unistd.h>
53256 main ()
53258 char buf[32]; readlink("", buf, sizeof(buf));
53260 return 0;
53262 _ACEOF
53263 if ac_fn_cxx_try_link "$LINENO"; then :
53264 glibcxx_cv_readlink=yes
53265 else
53266 glibcxx_cv_readlink=no
53268 rm -f core conftest.err conftest.$ac_objext \
53269 conftest$ac_exeext conftest.$ac_ext
53273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_readlink" >&5
53274 $as_echo "$glibcxx_cv_readlink" >&6; }
53275 if test $glibcxx_cv_readlink = yes; then
53277 $as_echo "#define HAVE_READLINK 1" >>confdefs.h
53280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
53281 $as_echo_n "checking for symlink... " >&6; }
53282 if ${glibcxx_cv_symlink+:} false; then :
53283 $as_echo_n "(cached) " >&6
53284 else
53285 if test x$gcc_no_link = xyes; then
53286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53287 /* end confdefs.h. */
53288 #include <unistd.h>
53290 main ()
53292 symlink("", "");
53294 return 0;
53296 _ACEOF
53297 if ac_fn_cxx_try_compile "$LINENO"; then :
53298 glibcxx_cv_symlink=yes
53299 else
53300 glibcxx_cv_symlink=no
53302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53303 else
53304 if test x$gcc_no_link = xyes; then
53305 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53308 /* end confdefs.h. */
53309 #include <unistd.h>
53311 main ()
53313 symlink("", "");
53315 return 0;
53317 _ACEOF
53318 if ac_fn_cxx_try_link "$LINENO"; then :
53319 glibcxx_cv_symlink=yes
53320 else
53321 glibcxx_cv_symlink=no
53323 rm -f core conftest.err conftest.$ac_objext \
53324 conftest$ac_exeext conftest.$ac_ext
53328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_symlink" >&5
53329 $as_echo "$glibcxx_cv_symlink" >&6; }
53330 if test $glibcxx_cv_symlink = yes; then
53332 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
53335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncate" >&5
53336 $as_echo_n "checking for truncate... " >&6; }
53337 if ${glibcxx_cv_truncate+:} false; then :
53338 $as_echo_n "(cached) " >&6
53339 else
53340 if test x$gcc_no_link = xyes; then
53341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53342 /* end confdefs.h. */
53343 #include <unistd.h>
53345 main ()
53347 truncate("", 99);
53349 return 0;
53351 _ACEOF
53352 if ac_fn_cxx_try_compile "$LINENO"; then :
53353 glibcxx_cv_truncate=yes
53354 else
53355 glibcxx_cv_truncate=no
53357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53358 else
53359 if test x$gcc_no_link = xyes; then
53360 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53363 /* end confdefs.h. */
53364 #include <unistd.h>
53366 main ()
53368 truncate("", 99);
53370 return 0;
53372 _ACEOF
53373 if ac_fn_cxx_try_link "$LINENO"; then :
53374 glibcxx_cv_truncate=yes
53375 else
53376 glibcxx_cv_truncate=no
53378 rm -f core conftest.err conftest.$ac_objext \
53379 conftest$ac_exeext conftest.$ac_ext
53383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_truncate" >&5
53384 $as_echo "$glibcxx_cv_truncate" >&6; }
53385 if test $glibcxx_cv_truncate = yes; then
53387 $as_echo "#define HAVE_TRUNCATE 1" >>confdefs.h
53390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range that can copy files" >&5
53391 $as_echo_n "checking for copy_file_range that can copy files... " >&6; }
53392 if ${glibcxx_cv_copy_file_range+:} false; then :
53393 $as_echo_n "(cached) " >&6
53394 else
53395 case "${target_os}" in
53396 linux*)
53397 if test x$gcc_no_link = xyes; then
53398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53399 /* end confdefs.h. */
53400 #include <unistd.h>
53402 main ()
53404 copy_file_range(1, (loff_t*)nullptr, 2, (loff_t*)nullptr, 1, 0);
53406 return 0;
53408 _ACEOF
53409 if ac_fn_cxx_try_compile "$LINENO"; then :
53410 glibcxx_cv_copy_file_range=yes
53411 else
53412 glibcxx_cv_copy_file_range=no
53414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53415 else
53416 if test x$gcc_no_link = xyes; then
53417 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53420 /* end confdefs.h. */
53421 #include <unistd.h>
53423 main ()
53425 copy_file_range(1, (loff_t*)nullptr, 2, (loff_t*)nullptr, 1, 0);
53427 return 0;
53429 _ACEOF
53430 if ac_fn_cxx_try_link "$LINENO"; then :
53431 glibcxx_cv_copy_file_range=yes
53432 else
53433 glibcxx_cv_copy_file_range=no
53435 rm -f core conftest.err conftest.$ac_objext \
53436 conftest$ac_exeext conftest.$ac_ext
53440 glibcxx_cv_copy_file_range=no
53442 esac
53445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_copy_file_range" >&5
53446 $as_echo "$glibcxx_cv_copy_file_range" >&6; }
53447 if test $glibcxx_cv_copy_file_range = yes; then
53449 $as_echo "#define _GLIBCXX_USE_COPY_FILE_RANGE 1" >>confdefs.h
53452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile that can copy files" >&5
53453 $as_echo_n "checking for sendfile that can copy files... " >&6; }
53454 if ${glibcxx_cv_sendfile+:} false; then :
53455 $as_echo_n "(cached) " >&6
53456 else
53457 case "${target_os}" in
53458 gnu* | linux* | solaris* | uclinux*)
53459 if test x$gcc_no_link = xyes; then
53460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53461 /* end confdefs.h. */
53462 #include <sys/sendfile.h>
53464 main ()
53466 sendfile(1, 2, (off_t*)0, sizeof 1);
53468 return 0;
53470 _ACEOF
53471 if ac_fn_cxx_try_compile "$LINENO"; then :
53472 glibcxx_cv_sendfile=yes
53473 else
53474 glibcxx_cv_sendfile=no
53476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53477 else
53478 if test x$gcc_no_link = xyes; then
53479 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53482 /* end confdefs.h. */
53483 #include <sys/sendfile.h>
53485 main ()
53487 sendfile(1, 2, (off_t*)0, sizeof 1);
53489 return 0;
53491 _ACEOF
53492 if ac_fn_cxx_try_link "$LINENO"; then :
53493 glibcxx_cv_sendfile=yes
53494 else
53495 glibcxx_cv_sendfile=no
53497 rm -f core conftest.err conftest.$ac_objext \
53498 conftest$ac_exeext conftest.$ac_ext
53502 glibcxx_cv_sendfile=no
53504 esac
53507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sendfile" >&5
53508 $as_echo "$glibcxx_cv_sendfile" >&6; }
53509 if test $glibcxx_cv_sendfile = yes && test $glibcxx_cv_lseek = yes; then
53511 $as_echo "#define _GLIBCXX_USE_SENDFILE 1" >>confdefs.h
53514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdopendir" >&5
53515 $as_echo_n "checking for fdopendir... " >&6; }
53516 if ${glibcxx_cv_fdopendir+:} false; then :
53517 $as_echo_n "(cached) " >&6
53518 else
53519 if test x$gcc_no_link = xyes; then
53520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53521 /* end confdefs.h. */
53522 #include <dirent.h>
53524 main ()
53526 ::DIR* dir = ::fdopendir(1);
53528 return 0;
53530 _ACEOF
53531 if ac_fn_cxx_try_compile "$LINENO"; then :
53532 glibcxx_cv_fdopendir=yes
53533 else
53534 glibcxx_cv_fdopendir=no
53536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53537 else
53538 if test x$gcc_no_link = xyes; then
53539 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53542 /* end confdefs.h. */
53543 #include <dirent.h>
53545 main ()
53547 ::DIR* dir = ::fdopendir(1);
53549 return 0;
53551 _ACEOF
53552 if ac_fn_cxx_try_link "$LINENO"; then :
53553 glibcxx_cv_fdopendir=yes
53554 else
53555 glibcxx_cv_fdopendir=no
53557 rm -f core conftest.err conftest.$ac_objext \
53558 conftest$ac_exeext conftest.$ac_ext
53562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_fdopendir" >&5
53563 $as_echo "$glibcxx_cv_fdopendir" >&6; }
53564 if test $glibcxx_cv_fdopendir = yes; then
53566 $as_echo "#define HAVE_FDOPENDIR 1" >>confdefs.h
53569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirfd" >&5
53570 $as_echo_n "checking for dirfd... " >&6; }
53571 if ${glibcxx_cv_dirfd+:} false; then :
53572 $as_echo_n "(cached) " >&6
53573 else
53574 if test x$gcc_no_link = xyes; then
53575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53576 /* end confdefs.h. */
53577 #include <dirent.h>
53579 main ()
53581 int fd = ::dirfd((::DIR*)0);
53583 return 0;
53585 _ACEOF
53586 if ac_fn_cxx_try_compile "$LINENO"; then :
53587 glibcxx_cv_dirfd=yes
53588 else
53589 glibcxx_cv_dirfd=no
53591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53592 else
53593 if test x$gcc_no_link = xyes; then
53594 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53597 /* end confdefs.h. */
53598 #include <dirent.h>
53600 main ()
53602 int fd = ::dirfd((::DIR*)0);
53604 return 0;
53606 _ACEOF
53607 if ac_fn_cxx_try_link "$LINENO"; then :
53608 glibcxx_cv_dirfd=yes
53609 else
53610 glibcxx_cv_dirfd=no
53612 rm -f core conftest.err conftest.$ac_objext \
53613 conftest$ac_exeext conftest.$ac_ext
53617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_dirfd" >&5
53618 $as_echo "$glibcxx_cv_dirfd" >&6; }
53619 if test $glibcxx_cv_dirfd = yes; then
53621 $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
53624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openat" >&5
53625 $as_echo_n "checking for openat... " >&6; }
53626 if ${glibcxx_cv_openat+:} false; then :
53627 $as_echo_n "(cached) " >&6
53628 else
53629 if test x$gcc_no_link = xyes; then
53630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53631 /* end confdefs.h. */
53632 #include <fcntl.h>
53634 main ()
53636 int fd = ::openat(AT_FDCWD, "", 0);
53638 return 0;
53640 _ACEOF
53641 if ac_fn_cxx_try_compile "$LINENO"; then :
53642 glibcxx_cv_openat=yes
53643 else
53644 glibcxx_cv_openat=no
53646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53647 else
53648 if test x$gcc_no_link = xyes; then
53649 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53652 /* end confdefs.h. */
53653 #include <fcntl.h>
53655 main ()
53657 int fd = ::openat(AT_FDCWD, "", 0);
53659 return 0;
53661 _ACEOF
53662 if ac_fn_cxx_try_link "$LINENO"; then :
53663 glibcxx_cv_openat=yes
53664 else
53665 glibcxx_cv_openat=no
53667 rm -f core conftest.err conftest.$ac_objext \
53668 conftest$ac_exeext conftest.$ac_ext
53672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_openat" >&5
53673 $as_echo "$glibcxx_cv_openat" >&6; }
53674 if test $glibcxx_cv_openat = yes; then
53676 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
53679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unlinkat" >&5
53680 $as_echo_n "checking for unlinkat... " >&6; }
53681 if ${glibcxx_cv_unlinkat+:} false; then :
53682 $as_echo_n "(cached) " >&6
53683 else
53684 if test x$gcc_no_link = xyes; then
53685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53686 /* end confdefs.h. */
53687 #include <fcntl.h>
53688 #include <unistd.h>
53690 main ()
53692 ::unlinkat(AT_FDCWD, "", AT_REMOVEDIR);
53694 return 0;
53696 _ACEOF
53697 if ac_fn_cxx_try_compile "$LINENO"; then :
53698 glibcxx_cv_unlinkat=yes
53699 else
53700 glibcxx_cv_unlinkat=no
53702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53703 else
53704 if test x$gcc_no_link = xyes; then
53705 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53708 /* end confdefs.h. */
53709 #include <fcntl.h>
53710 #include <unistd.h>
53712 main ()
53714 ::unlinkat(AT_FDCWD, "", AT_REMOVEDIR);
53716 return 0;
53718 _ACEOF
53719 if ac_fn_cxx_try_link "$LINENO"; then :
53720 glibcxx_cv_unlinkat=yes
53721 else
53722 glibcxx_cv_unlinkat=no
53724 rm -f core conftest.err conftest.$ac_objext \
53725 conftest$ac_exeext conftest.$ac_ext
53729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_unlinkat" >&5
53730 $as_echo "$glibcxx_cv_unlinkat" >&6; }
53731 if test $glibcxx_cv_unlinkat = yes; then
53733 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
53736 CXXFLAGS="$ac_save_CXXFLAGS"
53737 ac_ext=c
53738 ac_cpp='$CPP $CPPFLAGS'
53739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
53740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
53741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
53746 # Check whether --enable-libstdcxx-backtrace was given.
53747 if test "${enable_libstdcxx_backtrace+set}" = set; then :
53748 enableval=$enable_libstdcxx_backtrace;
53749 case "$enableval" in
53750 yes|no|auto) ;;
53751 *) as_fn_error $? "Unknown argument to enable/disable libstdcxx-backtrace" "$LINENO" 5 ;;
53752 esac
53754 else
53755 enable_libstdcxx_backtrace=auto
53760 # Most of this is adapted from libsanitizer/configure.ac
53762 BACKTRACE_CPPFLAGS="-D_GNU_SOURCE"
53764 # libbacktrace only needs atomics for int, which we've already tested
53765 if test "$glibcxx_cv_atomic_int" = "yes"; then
53766 BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_ATOMIC_FUNCTIONS=1"
53769 # Test for __sync support.
53770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
53771 $as_echo_n "checking __sync extensions... " >&6; }
53772 if ${glibcxx_cv_sys_sync+:} false; then :
53773 $as_echo_n "(cached) " >&6
53774 else
53775 if test x$gcc_no_link = xyes; then
53776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53777 /* end confdefs.h. */
53778 int i;
53780 main ()
53782 __sync_bool_compare_and_swap (&i, i, i);
53783 __sync_lock_test_and_set (&i, 1);
53784 __sync_lock_release (&i);
53786 return 0;
53788 _ACEOF
53789 if ac_fn_c_try_compile "$LINENO"; then :
53790 glibcxx_cv_sys_sync=yes
53791 else
53792 glibcxx_cv_sys_sync=no
53794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53795 else
53796 if test x$gcc_no_link = xyes; then
53797 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53800 /* end confdefs.h. */
53801 int i;
53803 main ()
53805 __sync_bool_compare_and_swap (&i, i, i);
53806 __sync_lock_test_and_set (&i, 1);
53807 __sync_lock_release (&i);
53809 return 0;
53811 _ACEOF
53812 if ac_fn_c_try_link "$LINENO"; then :
53813 glibcxx_cv_sys_sync=yes
53814 else
53815 glibcxx_cv_sys_sync=no
53817 rm -f core conftest.err conftest.$ac_objext \
53818 conftest$ac_exeext conftest.$ac_ext
53822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sys_sync" >&5
53823 $as_echo "$glibcxx_cv_sys_sync" >&6; }
53824 if test "$glibcxx_cv_sys_sync" = "yes"; then
53825 BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_SYNC_FUNCTIONS=1"
53828 # Check for dl_iterate_phdr.
53829 for ac_header in link.h
53830 do :
53831 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
53832 if test "x$ac_cv_header_link_h" = xyes; then :
53833 cat >>confdefs.h <<_ACEOF
53834 #define HAVE_LINK_H 1
53835 _ACEOF
53839 done
53841 if test "$ac_cv_header_link_h" = "no"; then
53842 have_dl_iterate_phdr=no
53843 else
53844 # When built as a GCC target library, we can't do a link test.
53845 ac_save_CPPFLAGS="$CPPFLAGS"
53846 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
53847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53848 /* end confdefs.h. */
53849 #include <link.h>
53851 _ACEOF
53852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53853 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
53854 have_dl_iterate_phdr=yes
53855 else
53856 have_dl_iterate_phdr=no
53858 rm -f conftest*
53860 CPPFLAGS="$ac_save_CPPFLAGS"
53862 if test "$have_dl_iterate_phdr" = "yes"; then
53863 BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_DL_ITERATE_PHDR=1"
53865 for ac_header in windows.h
53866 do :
53867 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
53868 if test "x$ac_cv_header_windows_h" = xyes; then :
53869 cat >>confdefs.h <<_ACEOF
53870 #define HAVE_WINDOWS_H 1
53871 _ACEOF
53875 done
53877 for ac_header in tlhelp32.h
53878 do :
53879 ac_fn_c_check_header_compile "$LINENO" "tlhelp32.h" "ac_cv_header_tlhelp32_h" "#ifdef HAVE_WINDOWS_H
53880 # include <windows.h>
53881 #endif
53884 if test "x$ac_cv_header_tlhelp32_h" = xyes; then :
53885 cat >>confdefs.h <<_ACEOF
53886 #define HAVE_TLHELP32_H 1
53887 _ACEOF
53891 done
53894 # Check for the fcntl function.
53895 if test -n "${with_target_subdir}"; then
53896 case "${host}" in
53897 *-*-mingw*) have_fcntl=no ;;
53898 *) have_fcntl=yes ;;
53899 esac
53900 else
53901 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
53902 if test "x$ac_cv_func_fcntl" = xyes; then :
53903 have_fcntl=yes
53904 else
53905 have_fcntl=no
53909 if test "$have_fcntl" = "yes"; then
53910 BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_FCNTL=1"
53913 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
53914 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
53915 ac_have_decl=1
53916 else
53917 ac_have_decl=0
53920 cat >>confdefs.h <<_ACEOF
53921 #define HAVE_DECL_STRNLEN $ac_have_decl
53922 _ACEOF
53925 # Check for getexecname function.
53926 if test -n "${with_target_subdir}"; then
53927 case "${host}" in
53928 *-*-solaris2*) have_getexecname=yes ;;
53929 *) have_getexecname=no ;;
53930 esac
53931 else
53932 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
53933 if test "x$ac_cv_func_getexecname" = xyes; then :
53934 have_getexecname=yes
53935 else
53936 have_getexecname=no
53940 if test "$have_getexecname" = "yes"; then
53941 BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_GETEXECNAME=1"
53944 # The library needs to be able to read the executable itself. Compile
53945 # a file to determine the executable format. The awk script
53946 # filetype.awk prints out the file type.
53947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
53948 $as_echo_n "checking output filetype... " >&6; }
53949 if ${glibcxx_cv_sys_filetype+:} false; then :
53950 $as_echo_n "(cached) " >&6
53951 else
53952 filetype=
53953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53954 /* end confdefs.h. */
53955 int i;
53957 main ()
53959 int j;
53961 return 0;
53963 _ACEOF
53964 if ac_fn_c_try_compile "$LINENO"; then :
53965 filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
53966 else
53967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
53968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53969 as_fn_error $? "compiler failed
53970 See \`config.log' for more details" "$LINENO" 5; }
53972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53973 glibcxx_cv_sys_filetype=$filetype
53975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sys_filetype" >&5
53976 $as_echo "$glibcxx_cv_sys_filetype" >&6; }
53978 # Match the file type to decide what files to compile.
53979 FORMAT_FILE=
53980 case "$glibcxx_cv_sys_filetype" in
53981 elf*) FORMAT_FILE="elf.lo" ;;
53982 pecoff*) FORMAT_FILE="pecoff.lo" ;;
53983 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
53984 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
53985 FORMAT_FILE="unknown.lo"
53986 enable_libstdcxx_backtrace=no
53988 esac
53991 # ELF defines.
53992 elfsize=
53993 case "$glibcxx_cv_sys_filetype" in
53994 elf32) elfsize=32 ;;
53995 elf64) elfsize=64 ;;
53996 esac
53997 BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DBACKTRACE_ELF_SIZE=$elfsize"
53999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build libbacktrace support" >&5
54000 $as_echo_n "checking whether to build libbacktrace support... " >&6; }
54001 if test "$enable_libstdcxx_backtrace" = "auto"; then
54002 case "$host" in
54003 avr-*-*) enable_libstdcxx_backtrace=no ;;
54004 *) enable_libstdcxx_backtrace="$is_hosted" ;;
54005 esac
54007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_backtrace" >&5
54008 $as_echo "$enable_libstdcxx_backtrace" >&6; }
54009 if test "$enable_libstdcxx_backtrace" = "yes"; then
54010 BACKTRACE_SUPPORTED=1
54012 for ac_header in sys/mman.h
54013 do :
54014 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
54015 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
54016 cat >>confdefs.h <<_ACEOF
54017 #define HAVE_SYS_MMAN_H 1
54018 _ACEOF
54022 done
54024 case "${host}" in
54025 *-*-msdosdjgpp) # DJGPP has sys/man.h, but no mmap
54026 have_mmap=no ;;
54027 *-*-*)
54028 have_mmap="$ac_cv_header_sys_mman_h" ;;
54029 esac
54031 if test "$have_mmap" = "no"; then
54032 VIEW_FILE=read.lo
54033 ALLOC_FILE=alloc.lo
54034 else
54035 VIEW_FILE=mmapio.lo
54036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54037 /* end confdefs.h. */
54039 #include <sys/mman.h>
54040 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
54041 #error no MAP_ANONYMOUS
54042 #endif
54044 _ACEOF
54045 if ac_fn_c_try_cpp "$LINENO"; then :
54046 ALLOC_FILE=mmap.lo
54047 else
54048 ALLOC_FILE=alloc.lo
54050 rm -f conftest.err conftest.i conftest.$ac_ext
54055 BACKTRACE_USES_MALLOC=0
54056 if test "$ALLOC_FILE" = "alloc.lo"; then
54057 BACKTRACE_USES_MALLOC=1
54060 if test "$ac_has_gthreads" = "yes"; then
54061 BACKTRACE_SUPPORTS_THREADS=1
54062 else
54063 BACKTRACE_SUPPORTS_THREADS=0
54070 $as_echo "#define HAVE_STACKTRACE 1" >>confdefs.h
54072 else
54073 BACKTRACE_SUPPORTED=0
54074 BACKTRACE_USES_MALLOC=0
54075 BACKTRACE_SUPPORTS_THREADS=0
54080 # For Networking TS.
54081 for ac_header in fcntl.h sys/ioctl.h sys/socket.h sys/uio.h poll.h netdb.h arpa/inet.h netinet/in.h netinet/tcp.h
54082 do :
54083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
54084 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
54085 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
54086 cat >>confdefs.h <<_ACEOF
54087 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
54088 _ACEOF
54092 done
54094 ac_fn_c_check_decl "$LINENO" "F_GETFL" "ac_cv_have_decl_F_GETFL" "#include <fcntl.h>
54096 if test "x$ac_cv_have_decl_F_GETFL" = xyes; then :
54100 ac_fn_c_check_decl "$LINENO" "F_SETFL" "ac_cv_have_decl_F_SETFL" "#include <fcntl.h>
54102 if test "x$ac_cv_have_decl_F_SETFL" = xyes; then :
54106 if test "$ac_cv_have_decl_F_GETFL$ac_cv_have_decl_F_SETFL" = yesyes ; then
54107 ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
54109 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
54115 # For Transactional Memory TS
54117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
54118 $as_echo_n "checking how size_t is mangled... " >&6; }
54119 if ${glibcxx_cv_size_t_mangling+:} false; then :
54120 $as_echo_n "(cached) " >&6
54121 else
54123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54124 /* end confdefs.h. */
54127 main ()
54129 extern __SIZE_TYPE__ x; extern unsigned long x;
54131 return 0;
54133 _ACEOF
54134 if ac_fn_c_try_compile "$LINENO"; then :
54135 glibcxx_cv_size_t_mangling=m
54136 else
54138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54139 /* end confdefs.h. */
54142 main ()
54144 extern __SIZE_TYPE__ x; extern unsigned int x;
54146 return 0;
54148 _ACEOF
54149 if ac_fn_c_try_compile "$LINENO"; then :
54150 glibcxx_cv_size_t_mangling=j
54151 else
54153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54154 /* end confdefs.h. */
54157 main ()
54159 extern __SIZE_TYPE__ x; extern unsigned long long x;
54161 return 0;
54163 _ACEOF
54164 if ac_fn_c_try_compile "$LINENO"; then :
54165 glibcxx_cv_size_t_mangling=y
54166 else
54168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54169 /* end confdefs.h. */
54172 main ()
54174 extern __SIZE_TYPE__ x; extern unsigned short x;
54176 return 0;
54178 _ACEOF
54179 if ac_fn_c_try_compile "$LINENO"; then :
54180 glibcxx_cv_size_t_mangling=t
54181 else
54183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54184 /* end confdefs.h. */
54187 main ()
54189 extern __SIZE_TYPE__ x; extern __int20 unsigned x;
54191 return 0;
54193 _ACEOF
54194 if ac_fn_c_try_compile "$LINENO"; then :
54195 glibcxx_cv_size_t_mangling=u6uint20
54196 else
54197 glibcxx_cv_size_t_mangling=x
54199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_size_t_mangling" >&5
54215 $as_echo "$glibcxx_cv_size_t_mangling" >&6; }
54216 if test $glibcxx_cv_size_t_mangling = x; then
54217 as_fn_error $? "Unknown underlying type for size_t" "$LINENO" 5
54220 cat >>confdefs.h <<_ACEOF
54221 #define _GLIBCXX_MANGLE_SIZE_T $glibcxx_cv_size_t_mangling
54222 _ACEOF
54226 # Check which release added std::exception_ptr for the target
54228 if test $enable_symvers != no; then
54229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for first version to support std::exception_ptr" >&5
54230 $as_echo_n "checking for first version to support std::exception_ptr... " >&6; }
54231 case ${target} in
54232 aarch64-*-* | alpha-*-* | hppa*-*-* | i?86-*-* | x86_64-*-* | \
54233 m68k-*-* | powerpc*-*-* | s390*-*-* | *-*-solaris* )
54234 ac_exception_ptr_since_gcc46=yes
54237 # If the value of this macro changes then we will need to hardcode
54238 # yes/no here for additional targets based on the original value.
54239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54240 /* end confdefs.h. */
54243 main ()
54246 #if __GCC_ATOMIC_INT_LOCK_FREE <= 1
54247 # error atomic int not always lock free
54248 #endif
54251 return 0;
54253 _ACEOF
54254 if ac_fn_c_try_compile "$LINENO"; then :
54255 ac_exception_ptr_since_gcc46=yes
54256 else
54257 ac_exception_ptr_since_gcc46=no
54259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54261 esac
54262 if test x"$ac_exception_ptr_since_gcc46" = x"yes" ; then
54264 $as_echo "#define HAVE_EXCEPTION_PTR_SINCE_GCC46 1" >>confdefs.h
54266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.6.0" >&5
54267 $as_echo "4.6.0" >&6; }
54268 else
54269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 7.1.0" >&5
54270 $as_echo "7.1.0" >&6; }
54275 # For libsupc++/eh_alloc.cc defaults.
54277 eh_pool_static=
54278 eh_pool_nobjs=
54279 # Check whether --enable-libstdcxx-static-eh-pool was given.
54280 if test "${enable_libstdcxx_static_eh_pool+set}" = set; then :
54281 enableval=$enable_libstdcxx_static_eh_pool; if test "${enableval}" = yes; then
54282 eh_pool_static="-D_GLIBCXX_EH_POOL_STATIC"
54283 { $as_echo "$as_me:${as_lineno-$LINENO}: EH pool using static buffer" >&5
54284 $as_echo "$as_me: EH pool using static buffer" >&6;}
54290 # Check whether --with-libstdcxx-eh-pool-obj-count was given.
54291 if test "${with_libstdcxx_eh_pool_obj_count+set}" = set; then :
54292 withval=$with_libstdcxx_eh_pool_obj_count; if test "${withval}" -ge 0 2>/dev/null; then
54293 eh_pool_obj_count="-D_GLIBCXX_EH_POOL_NOBJS=${withval}"
54294 { $as_echo "$as_me:${as_lineno-$LINENO}: EH pool object count: ${withval}" >&5
54295 $as_echo "$as_me: EH pool object count: ${withval}" >&6;}
54296 else
54297 as_fn_error $? "EH pool obj count must be a non-negative integer: $withval" "$LINENO" 5
54302 EH_POOL_FLAGS="$eh_pool_static $eh_pool_obj_count"
54306 # For src/c++20/tzdb.cc defaults.
54309 # Check whether --with-libstdcxx-zoneinfo was given.
54310 if test "${with_libstdcxx_zoneinfo+set}" = set; then :
54311 withval=$with_libstdcxx_zoneinfo;
54312 else
54313 with_libstdcxx_zoneinfo=yes
54317 if test "x${with_libstdcxx_zoneinfo}" = xyes; then
54318 # Pick a default when no specific path is set.
54319 case "$target_os" in
54320 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
54321 # Not all distros ship tzdata.zi in this dir.
54322 zoneinfo_dir="/usr/share/zoneinfo"
54324 aix*)
54325 # Binary tzfile files are in /usr/share/lib/zoneinfo
54326 # but tzdata.zi is not present there.
54327 zoneinfo_dir=none
54329 darwin2*)
54330 # Binary tzfile files are in /usr/share/lib/zoneinfo.default
54331 # but tzdata.zi is not present there.
54332 zoneinfo_dir=none
54335 # Binary tzfile files are commonly found in /usr/share/zoneinfo
54336 # but tzdata.zi is not present there.
54337 zoneinfo_dir=none
54339 esac
54341 if ac_fn_c_compute_int "$LINENO" "__INTPTR_WIDTH__ >= 32" "glibcxx_cv_at_least_32bit" ""; then :
54345 if test "$glibcxx_cv_at_least_32bit" -ne 0; then
54346 # Also embed a copy of the tzdata.zi file as a static string.
54347 embed_zoneinfo=yes
54348 else
54349 # The embedded data is too large for 16-bit targets.
54350 embed_zoneinfo=no
54352 elif test "x${with_libstdcxx_zoneinfo}" = xno; then
54353 # Disable tzdb support completely.
54354 zoneinfo_dir=none
54355 embed_zoneinfo=no
54356 else
54357 case "${with_libstdcxx_zoneinfo}" in
54358 static)
54359 # Do not attempt to read from disk, always use embedded data.
54360 zoneinfo_dir=none
54361 embed_zoneinfo=yes
54363 static,* | *,static)
54364 # Try to read from disk, use embedded data as fallback.
54365 zoneinfo_dir="${with_libstdcxx_zoneinfo#static,}"
54366 zoneinfo_dir="${with_libstdcxx_zoneinfo%,static}"
54367 embed_zoneinfo=yes
54370 zoneinfo_dir="${with_libstdcxx_zoneinfo}"
54371 embed_zoneinfo=no
54373 esac
54375 { $as_echo "$as_me:${as_lineno-$LINENO}: zoneinfo data directory: ${zoneinfo_dir}" >&5
54376 $as_echo "$as_me: zoneinfo data directory: ${zoneinfo_dir}" >&6;}
54377 if test "x${zoneinfo_dir}" != xnone; then
54379 cat >>confdefs.h <<_ACEOF
54380 #define _GLIBCXX_ZONEINFO_DIR "${zoneinfo_dir}"
54381 _ACEOF
54383 if $GLIBCXX_IS_NATIVE && ! test -f "$zoneinfo_dir/tzdata.zi"; then
54384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$zoneinfo_dir does not contain tzdata.zi file\"" >&5
54385 $as_echo "$as_me: WARNING: \"$zoneinfo_dir does not contain tzdata.zi file\"" >&2;}
54389 if test "x${embed_zoneinfo}" = xyes; then
54390 { $as_echo "$as_me:${as_lineno-$LINENO}: static tzdata.zi file will be compiled into the library" >&5
54391 $as_echo "$as_me: static tzdata.zi file will be compiled into the library" >&6;}
54393 cat >>confdefs.h <<_ACEOF
54394 #define _GLIBCXX_STATIC_TZDATA 1
54395 _ACEOF
54400 # For src/c++11/shared_ptr.cc alignment.
54403 ac_ext=cpp
54404 ac_cpp='$CXXCPP $CPPFLAGS'
54405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static objects can be aligned to the cacheline size" >&5
54411 $as_echo_n "checking whether static objects can be aligned to the cacheline size... " >&6; }
54412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54413 /* end confdefs.h. */
54416 main ()
54418 struct alignas(__GCC_DESTRUCTIVE_SIZE) Aligned { };
54419 alignas(Aligned) static char buf[sizeof(Aligned) * 16];
54422 return 0;
54424 _ACEOF
54425 if ac_fn_cxx_try_compile "$LINENO"; then :
54426 ac_alignas_cacheline=yes
54427 else
54428 ac_alignas_cacheline=no
54430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54431 if test "$ac_alignas_cacheline" = yes; then
54433 cat >>confdefs.h <<_ACEOF
54434 #define _GLIBCXX_CAN_ALIGNAS_DESTRUCTIVE_SIZE 1
54435 _ACEOF
54438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_alignas_cacheline" >&5
54439 $as_echo "$ac_alignas_cacheline" >&6; }
54441 ac_ext=c
54442 ac_cpp='$CPP $CPPFLAGS'
54443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
54449 # For using init_priority in ios_init.cc
54452 ac_ext=cpp
54453 ac_cpp='$CXXCPP $CPPFLAGS'
54454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether init_priority attribute is supported" >&5
54460 $as_echo_n "checking whether init_priority attribute is supported... " >&6; }
54461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54462 /* end confdefs.h. */
54465 main ()
54468 #if ! __has_attribute(init_priority)
54469 #error init_priority not supported
54470 #endif
54473 return 0;
54475 _ACEOF
54476 if ac_fn_cxx_try_compile "$LINENO"; then :
54477 ac_init_priority=yes
54478 else
54479 ac_init_priority=no
54481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54482 if test "$ac_init_priority" = yes; then
54484 cat >>confdefs.h <<_ACEOF
54485 #define _GLIBCXX_USE_INIT_PRIORITY_ATTRIBUTE 1
54486 _ACEOF
54489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_init_priority" >&5
54490 $as_echo "$ac_init_priority" >&6; }
54492 ac_ext=c
54493 ac_cpp='$CPP $CPPFLAGS'
54494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
54500 # For __basic_file::native_handle()
54503 ac_ext=cpp
54504 ac_cpp='$CXXCPP $CPPFLAGS'
54505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _get_osfhandle is defined in <io.h>" >&5
54511 $as_echo_n "checking whether _get_osfhandle is defined in <io.h>... " >&6; }
54512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54513 /* end confdefs.h. */
54515 #if defined(_WIN32) && !defined(__CYGWIN__)
54516 # include <stdint.h>
54517 # include <stdio.h>
54518 # include <io.h>
54519 #endif
54522 main ()
54525 FILE* file = 0;
54526 int fd = fileno(file);
54527 intptr_t crt_handle = _get_osfhandle(fd);
54528 void* win32_handle = reinterpret_cast<void*>(crt_handle);
54531 return 0;
54533 _ACEOF
54534 if ac_fn_cxx_try_compile "$LINENO"; then :
54535 ac_get_osfhandle=yes
54536 else
54537 ac_get_osfhandle=no
54539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54540 if test "$ac_get_osfhandle" = yes; then
54542 cat >>confdefs.h <<_ACEOF
54543 #define _GLIBCXX_USE__GET_OSFHANDLE 1
54544 _ACEOF
54547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_get_osfhandle" >&5
54548 $as_echo "$ac_get_osfhandle" >&6; }
54550 ac_ext=c
54551 ac_cpp='$CPP $CPPFLAGS'
54552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
54558 # For std::text_encoding
54561 ac_ext=cpp
54562 ac_cpp='$CXXCPP $CPPFLAGS'
54563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo_l is defined in <langinfo.h>" >&5
54569 $as_echo_n "checking whether nl_langinfo_l is defined in <langinfo.h>... " >&6; }
54570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54571 /* end confdefs.h. */
54573 #include <locale.h>
54574 #if __has_include(<xlocale.h>)
54575 # include <xlocale.h>
54576 #endif
54577 #include <langinfo.h>
54580 main ()
54583 locale_t loc = newlocale(LC_ALL_MASK, "", (locale_t)0);
54584 const char* enc = nl_langinfo_l(CODESET, loc);
54585 freelocale(loc);
54588 return 0;
54590 _ACEOF
54591 if ac_fn_cxx_try_compile "$LINENO"; then :
54592 ac_nl_langinfo_l=yes
54593 else
54594 ac_nl_langinfo_l=no
54596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_nl_langinfo_l" >&5
54598 $as_echo "$ac_nl_langinfo_l" >&6; }
54599 if test "$ac_nl_langinfo_l" = yes; then
54601 cat >>confdefs.h <<_ACEOF
54602 #define _GLIBCXX_USE_NL_LANGINFO_L 1
54603 _ACEOF
54607 ac_ext=c
54608 ac_cpp='$CPP $CPPFLAGS'
54609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
54615 # Define documentation rules conditionally.
54617 # See if makeinfo has been installed and is modern enough
54618 # that we can use it.
54620 # Extract the first word of "makeinfo", so it can be a program name with args.
54621 set dummy makeinfo; ac_word=$2
54622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54623 $as_echo_n "checking for $ac_word... " >&6; }
54624 if ${ac_cv_prog_MAKEINFO+:} false; then :
54625 $as_echo_n "(cached) " >&6
54626 else
54627 if test -n "$MAKEINFO"; then
54628 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
54629 else
54630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54631 for as_dir in $PATH
54633 IFS=$as_save_IFS
54634 test -z "$as_dir" && as_dir=.
54635 for ac_exec_ext in '' $ac_executable_extensions; do
54636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
54637 ac_cv_prog_MAKEINFO="makeinfo"
54638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54639 break 2
54641 done
54642 done
54643 IFS=$as_save_IFS
54647 MAKEINFO=$ac_cv_prog_MAKEINFO
54648 if test -n "$MAKEINFO"; then
54649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
54650 $as_echo "$MAKEINFO" >&6; }
54651 else
54652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54653 $as_echo "no" >&6; }
54657 if test -n "$MAKEINFO"; then
54658 # Found it, now check the version.
54659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
54660 $as_echo_n "checking for modern makeinfo... " >&6; }
54661 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
54662 $as_echo_n "(cached) " >&6
54663 else
54664 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
54665 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
54667 case $ac_prog_version in
54668 '') gcc_cv_prog_makeinfo_modern=no;;
54669 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
54670 *) gcc_cv_prog_makeinfo_modern=no;;
54671 esac
54674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
54675 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
54676 else
54677 gcc_cv_prog_makeinfo_modern=no
54679 if test $gcc_cv_prog_makeinfo_modern = no; then
54680 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
54683 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
54684 BUILD_INFO_TRUE=
54685 BUILD_INFO_FALSE='#'
54686 else
54687 BUILD_INFO_TRUE='#'
54688 BUILD_INFO_FALSE=
54692 # Check for doxygen
54693 # Extract the first word of "doxygen", so it can be a program name with args.
54694 set dummy doxygen; ac_word=$2
54695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54696 $as_echo_n "checking for $ac_word... " >&6; }
54697 if ${ac_cv_prog_DOXYGEN+:} false; then :
54698 $as_echo_n "(cached) " >&6
54699 else
54700 if test -n "$DOXYGEN"; then
54701 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
54702 else
54703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54704 for as_dir in $PATH
54706 IFS=$as_save_IFS
54707 test -z "$as_dir" && as_dir=.
54708 for ac_exec_ext in '' $ac_executable_extensions; do
54709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
54710 ac_cv_prog_DOXYGEN="yes"
54711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54712 break 2
54714 done
54715 done
54716 IFS=$as_save_IFS
54718 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="no"
54721 DOXYGEN=$ac_cv_prog_DOXYGEN
54722 if test -n "$DOXYGEN"; then
54723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
54724 $as_echo "$DOXYGEN" >&6; }
54725 else
54726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54727 $as_echo "no" >&6; }
54731 # Extract the first word of "dot", so it can be a program name with args.
54732 set dummy dot; ac_word=$2
54733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54734 $as_echo_n "checking for $ac_word... " >&6; }
54735 if ${ac_cv_prog_DOT+:} false; then :
54736 $as_echo_n "(cached) " >&6
54737 else
54738 if test -n "$DOT"; then
54739 ac_cv_prog_DOT="$DOT" # Let the user override the test.
54740 else
54741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54742 for as_dir in $PATH
54744 IFS=$as_save_IFS
54745 test -z "$as_dir" && as_dir=.
54746 for ac_exec_ext in '' $ac_executable_extensions; do
54747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
54748 ac_cv_prog_DOT="yes"
54749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54750 break 2
54752 done
54753 done
54754 IFS=$as_save_IFS
54756 test -z "$ac_cv_prog_DOT" && ac_cv_prog_DOT="no"
54759 DOT=$ac_cv_prog_DOT
54760 if test -n "$DOT"; then
54761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
54762 $as_echo "$DOT" >&6; }
54763 else
54764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54765 $as_echo "no" >&6; }
54770 # Check for docbook
54771 # Extract the first word of "xmlcatalog", so it can be a program name with args.
54772 set dummy xmlcatalog; ac_word=$2
54773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54774 $as_echo_n "checking for $ac_word... " >&6; }
54775 if ${ac_cv_prog_XMLCATALOG+:} false; then :
54776 $as_echo_n "(cached) " >&6
54777 else
54778 if test -n "$XMLCATALOG"; then
54779 ac_cv_prog_XMLCATALOG="$XMLCATALOG" # Let the user override the test.
54780 else
54781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54782 for as_dir in $PATH
54784 IFS=$as_save_IFS
54785 test -z "$as_dir" && as_dir=.
54786 for ac_exec_ext in '' $ac_executable_extensions; do
54787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
54788 ac_cv_prog_XMLCATALOG="yes"
54789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54790 break 2
54792 done
54793 done
54794 IFS=$as_save_IFS
54796 test -z "$ac_cv_prog_XMLCATALOG" && ac_cv_prog_XMLCATALOG="no"
54799 XMLCATALOG=$ac_cv_prog_XMLCATALOG
54800 if test -n "$XMLCATALOG"; then
54801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5
54802 $as_echo "$XMLCATALOG" >&6; }
54803 else
54804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54805 $as_echo "no" >&6; }
54809 # Extract the first word of "xsltproc", so it can be a program name with args.
54810 set dummy xsltproc; ac_word=$2
54811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54812 $as_echo_n "checking for $ac_word... " >&6; }
54813 if ${ac_cv_prog_XSLTPROC+:} false; then :
54814 $as_echo_n "(cached) " >&6
54815 else
54816 if test -n "$XSLTPROC"; then
54817 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
54818 else
54819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54820 for as_dir in $PATH
54822 IFS=$as_save_IFS
54823 test -z "$as_dir" && as_dir=.
54824 for ac_exec_ext in '' $ac_executable_extensions; do
54825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
54826 ac_cv_prog_XSLTPROC="yes"
54827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54828 break 2
54830 done
54831 done
54832 IFS=$as_save_IFS
54834 test -z "$ac_cv_prog_XSLTPROC" && ac_cv_prog_XSLTPROC="no"
54837 XSLTPROC=$ac_cv_prog_XSLTPROC
54838 if test -n "$XSLTPROC"; then
54839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
54840 $as_echo "$XSLTPROC" >&6; }
54841 else
54842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54843 $as_echo "no" >&6; }
54847 # Extract the first word of "xmllint", so it can be a program name with args.
54848 set dummy xmllint; ac_word=$2
54849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54850 $as_echo_n "checking for $ac_word... " >&6; }
54851 if ${ac_cv_prog_XMLLINT+:} false; then :
54852 $as_echo_n "(cached) " >&6
54853 else
54854 if test -n "$XMLLINT"; then
54855 ac_cv_prog_XMLLINT="$XMLLINT" # Let the user override the test.
54856 else
54857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54858 for as_dir in $PATH
54860 IFS=$as_save_IFS
54861 test -z "$as_dir" && as_dir=.
54862 for ac_exec_ext in '' $ac_executable_extensions; do
54863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
54864 ac_cv_prog_XMLLINT="yes"
54865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54866 break 2
54868 done
54869 done
54870 IFS=$as_save_IFS
54872 test -z "$ac_cv_prog_XMLLINT" && ac_cv_prog_XMLLINT="no"
54875 XMLLINT=$ac_cv_prog_XMLLINT
54876 if test -n "$XMLLINT"; then
54877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
54878 $as_echo "$XMLLINT" >&6; }
54879 else
54880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54881 $as_echo "no" >&6; }
54887 glibcxx_docbook_url=http://cdn.docbook.org/release/xsl/current/
54889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local stylesheet directory" >&5
54890 $as_echo_n "checking for local stylesheet directory... " >&6; }
54891 glibcxx_local_stylesheets=no
54892 if test x${XMLCATALOG} = xyes && xsl_style_dir=`xmlcatalog "" $glibcxx_docbook_url 2>/dev/null`
54893 then
54894 XSL_STYLE_DIR=`echo $xsl_style_dir | sed -n 's;^file://;;p'`
54895 glibcxx_local_stylesheets=yes
54896 else
54897 for dir in \
54898 /usr/share/sgml/docbook/xsl-ns-stylesheets \
54899 /usr/share/xml/docbook/stylesheet/docbook-xsl-ns \
54900 /usr/share/xml/docbook/stylesheet/nwalsh5/current \
54901 /usr/share/xml/docbook/stylesheet/nwalsh/current
54903 if test -d $dir; then
54904 glibcxx_local_stylesheets=yes
54905 XSL_STYLE_DIR=$dir
54906 break
54908 done
54910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_local_stylesheets" >&5
54911 $as_echo "$glibcxx_local_stylesheets" >&6; }
54913 if test x"$glibcxx_local_stylesheets" = x"yes"; then
54915 { $as_echo "$as_me:${as_lineno-$LINENO}: $XSL_STYLE_DIR" >&5
54916 $as_echo "$as_me: $XSL_STYLE_DIR" >&6;}
54918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docbook stylesheets for documentation creation" >&5
54919 $as_echo_n "checking for docbook stylesheets for documentation creation... " >&6; }
54920 glibcxx_stylesheets=no
54921 if test x${XMLCATALOG} = xno || xmlcatalog "" $glibcxx_docbook_url/xhtml/docbook.xsl >/dev/null 2>&1; then
54922 if test x${XSLTPROC} = xyes && echo '<title/>' | xsltproc --noout --nonet --xinclude $glibcxx_docbook_url/xhtml/docbook.xsl - 2>/dev/null; then
54923 glibcxx_stylesheets=yes
54926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_stylesheets" >&5
54927 $as_echo "$glibcxx_stylesheets" >&6; }
54929 else
54930 glibcxx_stylesheets=no
54933 # Check for epub3 dependencies.
54934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epub3 stylesheets for documentation creation" >&5
54935 $as_echo_n "checking for epub3 stylesheets for documentation creation... " >&6; }
54936 glibcxx_epub_stylesheets=no
54937 if test x"$glibcxx_local_stylesheets" = x"yes"; then
54938 if test -f "$XSL_STYLE_DIR/epub3/chunk.xsl"; then
54939 glibcxx_epub_stylesheets=yes
54942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_epub_stylesheets" >&5
54943 $as_echo "$glibcxx_epub_stylesheets" >&6; }
54944 if test x"$glibcxx_epub_stylesheets" = x"yes"; then
54945 BUILD_EPUB_TRUE=
54946 BUILD_EPUB_FALSE='#'
54947 else
54948 BUILD_EPUB_TRUE='#'
54949 BUILD_EPUB_FALSE=
54955 # Check for xml/html dependencies.
54956 if test $ac_cv_prog_DOXYGEN = "yes" &&
54957 test $ac_cv_prog_DOT = "yes" &&
54958 test $ac_cv_prog_XSLTPROC = "yes" &&
54959 test $ac_cv_prog_XMLLINT = "yes" &&
54960 test $glibcxx_stylesheets = "yes"; then
54961 BUILD_XML_TRUE=
54962 BUILD_XML_FALSE='#'
54963 else
54964 BUILD_XML_TRUE='#'
54965 BUILD_XML_FALSE=
54969 if test $ac_cv_prog_DOXYGEN = "yes" &&
54970 test $ac_cv_prog_DOT = "yes" &&
54971 test $ac_cv_prog_XSLTPROC = "yes" &&
54972 test $ac_cv_prog_XMLLINT = "yes" &&
54973 test $glibcxx_stylesheets = "yes"; then
54974 BUILD_HTML_TRUE=
54975 BUILD_HTML_FALSE='#'
54976 else
54977 BUILD_HTML_TRUE='#'
54978 BUILD_HTML_FALSE=
54982 # Check for man dependencies.
54983 if test $ac_cv_prog_DOXYGEN = "yes" &&
54984 test $ac_cv_prog_DOT = "yes"; then
54985 BUILD_MAN_TRUE=
54986 BUILD_MAN_FALSE='#'
54987 else
54988 BUILD_MAN_TRUE='#'
54989 BUILD_MAN_FALSE=
54993 # Check for pdf dependencies.
54994 # Extract the first word of "dblatex", so it can be a program name with args.
54995 set dummy dblatex; ac_word=$2
54996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54997 $as_echo_n "checking for $ac_word... " >&6; }
54998 if ${ac_cv_prog_DBLATEX+:} false; then :
54999 $as_echo_n "(cached) " >&6
55000 else
55001 if test -n "$DBLATEX"; then
55002 ac_cv_prog_DBLATEX="$DBLATEX" # Let the user override the test.
55003 else
55004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55005 for as_dir in $PATH
55007 IFS=$as_save_IFS
55008 test -z "$as_dir" && as_dir=.
55009 for ac_exec_ext in '' $ac_executable_extensions; do
55010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55011 ac_cv_prog_DBLATEX="yes"
55012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55013 break 2
55015 done
55016 done
55017 IFS=$as_save_IFS
55019 test -z "$ac_cv_prog_DBLATEX" && ac_cv_prog_DBLATEX="no"
55022 DBLATEX=$ac_cv_prog_DBLATEX
55023 if test -n "$DBLATEX"; then
55024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
55025 $as_echo "$DBLATEX" >&6; }
55026 else
55027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55028 $as_echo "no" >&6; }
55032 # Extract the first word of "pdflatex", so it can be a program name with args.
55033 set dummy pdflatex; ac_word=$2
55034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
55035 $as_echo_n "checking for $ac_word... " >&6; }
55036 if ${ac_cv_prog_PDFLATEX+:} false; then :
55037 $as_echo_n "(cached) " >&6
55038 else
55039 if test -n "$PDFLATEX"; then
55040 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
55041 else
55042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55043 for as_dir in $PATH
55045 IFS=$as_save_IFS
55046 test -z "$as_dir" && as_dir=.
55047 for ac_exec_ext in '' $ac_executable_extensions; do
55048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55049 ac_cv_prog_PDFLATEX="yes"
55050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55051 break 2
55053 done
55054 done
55055 IFS=$as_save_IFS
55057 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX="no"
55060 PDFLATEX=$ac_cv_prog_PDFLATEX
55061 if test -n "$PDFLATEX"; then
55062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
55063 $as_echo "$PDFLATEX" >&6; }
55064 else
55065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55066 $as_echo "no" >&6; }
55070 if test $ac_cv_prog_DOXYGEN = "yes" &&
55071 test $ac_cv_prog_DOT = "yes" &&
55072 test $ac_cv_prog_XSLTPROC = "yes" &&
55073 test $ac_cv_prog_XMLLINT = "yes" &&
55074 test $ac_cv_prog_DBLATEX = "yes" &&
55075 test $ac_cv_prog_PDFLATEX = "yes"; then
55076 BUILD_PDF_TRUE=
55077 BUILD_PDF_FALSE='#'
55078 else
55079 BUILD_PDF_TRUE='#'
55080 BUILD_PDF_FALSE=
55084 case "$build" in
55085 *-*-darwin* ) glibcxx_include_dir_notparallel=yes ;;
55086 * ) glibcxx_include_dir_notparallel=no ;;
55087 esac
55088 if test $glibcxx_include_dir_notparallel = "yes"; then
55089 INCLUDE_DIR_NOTPARALLEL_TRUE=
55090 INCLUDE_DIR_NOTPARALLEL_FALSE='#'
55091 else
55092 INCLUDE_DIR_NOTPARALLEL_TRUE='#'
55093 INCLUDE_DIR_NOTPARALLEL_FALSE=
55097 # Propagate the target-specific source directories through the build chain.
55098 ATOMICITY_SRCDIR=config/${atomicity_dir}
55099 ATOMIC_WORD_SRCDIR=config/${atomic_word_dir}
55100 ATOMIC_FLAGS=${atomic_flags}
55101 CPU_DEFINES_SRCDIR=config/${cpu_defines_dir}
55102 OS_INC_SRCDIR=config/${os_include_dir}
55103 ERROR_CONSTANTS_SRCDIR=config/${error_constants_dir}
55104 ABI_TWEAKS_SRCDIR=config/${abi_tweaks_dir}
55105 CPU_OPT_EXT_RANDOM=config/${cpu_opt_ext_random}
55106 CPU_OPT_BITS_RANDOM=config/${cpu_opt_bits_random}
55117 # Conditionalize the makefile for this target machine.
55118 tmake_file_=
55119 for f in ${tmake_file}
55121 if test -f ${srcdir}/config/$f
55122 then
55123 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
55125 done
55126 tmake_file="${tmake_file_}"
55129 # Add CET specific flags if Intel CET is enabled.
55130 # Check whether --enable-cet was given.
55131 if test "${enable_cet+set}" = set; then :
55132 enableval=$enable_cet;
55133 case "$enableval" in
55134 yes|no|auto) ;;
55135 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
55136 esac
55138 else
55139 enable_cet=auto
55143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
55144 $as_echo_n "checking for CET support... " >&6; }
55146 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
55147 case "$host" in
55148 i[34567]86-*-linux* | x86_64-*-linux*)
55149 case "$enable_cet" in
55150 auto)
55151 # Check if target supports multi-byte NOPs
55152 # and if compiler and assembler support CET insn.
55153 cet_save_CFLAGS="$CFLAGS"
55154 CFLAGS="$CFLAGS -fcf-protection"
55155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55156 /* end confdefs.h. */
55159 main ()
55162 #if !defined(__SSE2__)
55163 #error target does not support multi-byte NOPs
55164 #else
55165 asm ("setssbsy");
55166 #endif
55169 return 0;
55171 _ACEOF
55172 if ac_fn_c_try_compile "$LINENO"; then :
55173 enable_cet=yes
55174 else
55175 enable_cet=no
55177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55178 CFLAGS="$cet_save_CFLAGS"
55180 yes)
55181 # Check if assembler supports CET.
55182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55183 /* end confdefs.h. */
55186 main ()
55188 asm ("setssbsy");
55190 return 0;
55192 _ACEOF
55193 if ac_fn_c_try_compile "$LINENO"; then :
55195 else
55196 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
55198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55200 esac
55203 enable_cet=no
55205 esac
55206 if test x$enable_cet = xyes; then
55207 CET_FLAGS="-fcf-protection -mshstk"
55208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55209 $as_echo "yes" >&6; }
55210 else
55211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55212 $as_echo "no" >&6; }
55215 EXTRA_CXX_FLAGS="$EXTRA_CXX_FLAGS $CET_FLAGS"
55216 EXTRA_CFLAGS="$EXTRA_CFLAGS $CET_FLAGS"
55220 # Determine cross-compile flags and AM_CONDITIONALs.
55221 #AC_SUBST(GLIBCXX_IS_NATIVE)
55222 #AM_CONDITIONAL(CANADIAN, test $CANADIAN = yes)
55223 if test $is_hosted = yes; then
55224 GLIBCXX_HOSTED_TRUE=
55225 GLIBCXX_HOSTED_FALSE='#'
55226 else
55227 GLIBCXX_HOSTED_TRUE='#'
55228 GLIBCXX_HOSTED_FALSE=
55232 if test $enable_libstdcxx_pch = yes; then
55233 GLIBCXX_BUILD_PCH_TRUE=
55234 GLIBCXX_BUILD_PCH_FALSE='#'
55235 else
55236 GLIBCXX_BUILD_PCH_TRUE='#'
55237 GLIBCXX_BUILD_PCH_FALSE=
55241 if test $enable_float128 = yes; then
55242 ENABLE_FLOAT128_TRUE=
55243 ENABLE_FLOAT128_FALSE='#'
55244 else
55245 ENABLE_FLOAT128_TRUE='#'
55246 ENABLE_FLOAT128_FALSE=
55250 if test $enable_libstdcxx_allocator_flag = new; then
55251 ENABLE_ALLOCATOR_NEW_TRUE=
55252 ENABLE_ALLOCATOR_NEW_FALSE='#'
55253 else
55254 ENABLE_ALLOCATOR_NEW_TRUE='#'
55255 ENABLE_ALLOCATOR_NEW_FALSE=
55259 if test $enable_cheaders = c; then
55260 GLIBCXX_C_HEADERS_C_TRUE=
55261 GLIBCXX_C_HEADERS_C_FALSE='#'
55262 else
55263 GLIBCXX_C_HEADERS_C_TRUE='#'
55264 GLIBCXX_C_HEADERS_C_FALSE=
55268 if test $enable_cheaders = c_std; then
55269 GLIBCXX_C_HEADERS_C_STD_TRUE=
55270 GLIBCXX_C_HEADERS_C_STD_FALSE='#'
55271 else
55272 GLIBCXX_C_HEADERS_C_STD_TRUE='#'
55273 GLIBCXX_C_HEADERS_C_STD_FALSE=
55277 if test $enable_cheaders = c_global; then
55278 GLIBCXX_C_HEADERS_C_GLOBAL_TRUE=
55279 GLIBCXX_C_HEADERS_C_GLOBAL_FALSE='#'
55280 else
55281 GLIBCXX_C_HEADERS_C_GLOBAL_TRUE='#'
55282 GLIBCXX_C_HEADERS_C_GLOBAL_FALSE=
55286 if test $c_compatibility = yes; then
55287 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
55288 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
55289 else
55290 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
55291 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
55295 if test $enable_libstdcxx_debug = yes; then
55296 GLIBCXX_BUILD_DEBUG_TRUE=
55297 GLIBCXX_BUILD_DEBUG_FALSE='#'
55298 else
55299 GLIBCXX_BUILD_DEBUG_TRUE='#'
55300 GLIBCXX_BUILD_DEBUG_FALSE=
55304 if test $enable_extern_template = yes; then
55305 ENABLE_EXTERN_TEMPLATE_TRUE=
55306 ENABLE_EXTERN_TEMPLATE_FALSE='#'
55307 else
55308 ENABLE_EXTERN_TEMPLATE_TRUE='#'
55309 ENABLE_EXTERN_TEMPLATE_FALSE=
55313 if test $python_mod_dir != no; then
55314 ENABLE_PYTHONDIR_TRUE=
55315 ENABLE_PYTHONDIR_FALSE='#'
55316 else
55317 ENABLE_PYTHONDIR_TRUE='#'
55318 ENABLE_PYTHONDIR_FALSE=
55322 if test $enable_werror = yes; then
55323 ENABLE_WERROR_TRUE=
55324 ENABLE_WERROR_FALSE='#'
55325 else
55326 ENABLE_WERROR_TRUE='#'
55327 ENABLE_WERROR_FALSE=
55331 if test $enable_vtable_verify = yes; then
55332 ENABLE_VTABLE_VERIFY_TRUE=
55333 ENABLE_VTABLE_VERIFY_FALSE='#'
55334 else
55335 ENABLE_VTABLE_VERIFY_TRUE='#'
55336 ENABLE_VTABLE_VERIFY_FALSE=
55340 if test $enable_symvers != no; then
55341 ENABLE_SYMVERS_TRUE=
55342 ENABLE_SYMVERS_FALSE='#'
55343 else
55344 ENABLE_SYMVERS_TRUE='#'
55345 ENABLE_SYMVERS_FALSE=
55349 if test $enable_symvers = gnu; then
55350 ENABLE_SYMVERS_GNU_TRUE=
55351 ENABLE_SYMVERS_GNU_FALSE='#'
55352 else
55353 ENABLE_SYMVERS_GNU_TRUE='#'
55354 ENABLE_SYMVERS_GNU_FALSE=
55358 if test $enable_symvers = gnu-versioned-namespace; then
55359 ENABLE_SYMVERS_GNU_NAMESPACE_TRUE=
55360 ENABLE_SYMVERS_GNU_NAMESPACE_FALSE='#'
55361 else
55362 ENABLE_SYMVERS_GNU_NAMESPACE_TRUE='#'
55363 ENABLE_SYMVERS_GNU_NAMESPACE_FALSE=
55367 if test $enable_symvers = darwin; then
55368 ENABLE_SYMVERS_DARWIN_TRUE=
55369 ENABLE_SYMVERS_DARWIN_FALSE='#'
55370 else
55371 ENABLE_SYMVERS_DARWIN_TRUE='#'
55372 ENABLE_SYMVERS_DARWIN_FALSE=
55376 if test $enable_symvers = sun; then
55377 ENABLE_SYMVERS_SUN_TRUE=
55378 ENABLE_SYMVERS_SUN_FALSE='#'
55379 else
55380 ENABLE_SYMVERS_SUN_TRUE='#'
55381 ENABLE_SYMVERS_SUN_FALSE=
55385 if test $enable_libstdcxx_visibility = yes; then
55386 ENABLE_VISIBILITY_TRUE=
55387 ENABLE_VISIBILITY_FALSE='#'
55388 else
55389 ENABLE_VISIBILITY_TRUE='#'
55390 ENABLE_VISIBILITY_FALSE=
55394 if test $enable_libstdcxx_dual_abi = yes; then
55395 ENABLE_DUAL_ABI_TRUE=
55396 ENABLE_DUAL_ABI_FALSE='#'
55397 else
55398 ENABLE_DUAL_ABI_TRUE='#'
55399 ENABLE_DUAL_ABI_FALSE=
55403 if test $glibcxx_cxx11_abi = 1; then
55404 ENABLE_CXX11_ABI_TRUE=
55405 ENABLE_CXX11_ABI_FALSE='#'
55406 else
55407 ENABLE_CXX11_ABI_TRUE='#'
55408 ENABLE_CXX11_ABI_FALSE=
55412 if test $ac_ldbl_compat = yes; then
55413 GLIBCXX_LDBL_COMPAT_TRUE=
55414 GLIBCXX_LDBL_COMPAT_FALSE='#'
55415 else
55416 GLIBCXX_LDBL_COMPAT_TRUE='#'
55417 GLIBCXX_LDBL_COMPAT_FALSE=
55421 if test $ac_ldbl_alt128_compat = yes; then
55422 GLIBCXX_LDBL_ALT128_COMPAT_TRUE=
55423 GLIBCXX_LDBL_ALT128_COMPAT_FALSE='#'
55424 else
55425 GLIBCXX_LDBL_ALT128_COMPAT_TRUE='#'
55426 GLIBCXX_LDBL_ALT128_COMPAT_FALSE=
55430 if test $enable_libstdcxx_filesystem_ts = yes; then
55431 ENABLE_FILESYSTEM_TS_TRUE=
55432 ENABLE_FILESYSTEM_TS_FALSE='#'
55433 else
55434 ENABLE_FILESYSTEM_TS_TRUE='#'
55435 ENABLE_FILESYSTEM_TS_FALSE=
55439 if test "$enable_libstdcxx_backtrace" = yes; then
55440 ENABLE_BACKTRACE_TRUE=
55441 ENABLE_BACKTRACE_FALSE='#'
55442 else
55443 ENABLE_BACKTRACE_TRUE='#'
55444 ENABLE_BACKTRACE_FALSE=
55448 if test "${embed_zoneinfo}" = yes; then
55449 USE_STATIC_TZDATA_TRUE=
55450 USE_STATIC_TZDATA_FALSE='#'
55451 else
55452 USE_STATIC_TZDATA_TRUE='#'
55453 USE_STATIC_TZDATA_FALSE=
55459 cat >confcache <<\_ACEOF
55460 # This file is a shell script that caches the results of configure
55461 # tests run on this system so they can be shared between configure
55462 # scripts and configure runs, see configure's option --config-cache.
55463 # It is not useful on other systems. If it contains results you don't
55464 # want to keep, you may remove or edit it.
55466 # config.status only pays attention to the cache file if you give it
55467 # the --recheck option to rerun configure.
55469 # `ac_cv_env_foo' variables (set or unset) will be overridden when
55470 # loading this file, other *unset* `ac_cv_foo' will be assigned the
55471 # following values.
55473 _ACEOF
55475 # The following way of writing the cache mishandles newlines in values,
55476 # but we know of no workaround that is simple, portable, and efficient.
55477 # So, we kill variables containing newlines.
55478 # Ultrix sh set writes to stderr and can't be redirected directly,
55479 # and sets the high bit in the cache file unless we assign to the vars.
55481 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
55482 eval ac_val=\$$ac_var
55483 case $ac_val in #(
55484 *${as_nl}*)
55485 case $ac_var in #(
55486 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
55487 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
55488 esac
55489 case $ac_var in #(
55490 _ | IFS | as_nl) ;; #(
55491 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
55492 *) { eval $ac_var=; unset $ac_var;} ;;
55493 esac ;;
55494 esac
55495 done
55497 (set) 2>&1 |
55498 case $as_nl`(ac_space=' '; set) 2>&1` in #(
55499 *${as_nl}ac_space=\ *)
55500 # `set' does not quote correctly, so add quotes: double-quote
55501 # substitution turns \\\\ into \\, and sed turns \\ into \.
55502 sed -n \
55503 "s/'/'\\\\''/g;
55504 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
55505 ;; #(
55507 # `set' quotes correctly as required by POSIX, so do not add quotes.
55508 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
55510 esac |
55511 sort
55513 sed '
55514 /^ac_cv_env_/b end
55515 t clear
55516 :clear
55517 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
55518 t end
55519 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
55520 :end' >>confcache
55521 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
55522 if test -w "$cache_file"; then
55523 if test "x$cache_file" != "x/dev/null"; then
55524 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
55525 $as_echo "$as_me: updating cache $cache_file" >&6;}
55526 if test ! -f "$cache_file" || test -h "$cache_file"; then
55527 cat confcache >"$cache_file"
55528 else
55529 case $cache_file in #(
55530 */* | ?:*)
55531 mv -f confcache "$cache_file"$$ &&
55532 mv -f "$cache_file"$$ "$cache_file" ;; #(
55534 mv -f confcache "$cache_file" ;;
55535 esac
55538 else
55539 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
55540 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
55543 rm -f confcache
55545 if test ${multilib} = yes; then
55546 multilib_arg="--enable-multilib"
55547 else
55548 multilib_arg=
55551 # Export all the install information.
55553 glibcxx_toolexecdir=no
55554 glibcxx_toolexeclibdir=no
55555 glibcxx_prefixdir=$prefix
55557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gxx-include-dir" >&5
55558 $as_echo_n "checking for gxx-include-dir... " >&6; }
55560 # Check whether --with-gxx-include-dir was given.
55561 if test "${with_gxx_include_dir+set}" = set; then :
55562 withval=$with_gxx_include_dir; case "$withval" in
55563 yes) as_fn_error $? "Missing directory for --with-gxx-include-dir" "$LINENO" 5 ;;
55564 no) gxx_include_dir=no ;;
55565 *) gxx_include_dir=$withval ;;
55566 esac
55567 else
55568 gxx_include_dir=no
55571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gxx_include_dir" >&5
55572 $as_echo "$gxx_include_dir" >&6; }
55574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
55575 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
55576 # Check whether --enable-version-specific-runtime-libs was given.
55577 if test "${enable_version_specific_runtime_libs+set}" = set; then :
55578 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
55579 yes) version_specific_libs=yes ;;
55580 no) version_specific_libs=no ;;
55581 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
55582 esac
55583 else
55584 version_specific_libs=no
55587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
55588 $as_echo "$version_specific_libs" >&6; }
55591 # Check whether --with-toolexeclibdir was given.
55592 if test "${with_toolexeclibdir+set}" = set; then :
55593 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
55597 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
55599 esac
55600 else
55601 with_toolexeclibdir=no
55606 # Default case for install directory for include files.
55607 if test $version_specific_libs = no && test $gxx_include_dir = no; then
55608 gxx_include_dir='include/c++/${gcc_version}'
55609 if test -n "$with_cross_host" &&
55610 test x"$with_cross_host" != x"no"; then
55611 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
55612 else
55613 gxx_include_dir='${prefix}/'"$gxx_include_dir"
55617 # Version-specific runtime libs processing.
55618 if test $version_specific_libs = yes; then
55619 # Need the gcc compiler version to know where to install libraries
55620 # and header files if --enable-version-specific-runtime-libs option
55621 # is selected. FIXME: these variables are misnamed, there are
55622 # no executables installed in _toolexecdir or _toolexeclibdir.
55623 if test x"$gxx_include_dir" = x"no"; then
55624 gxx_include_dir='${libdir}/gcc/${host_alias}/${gcc_version}/include/c++'
55626 glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
55627 glibcxx_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
55630 # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
55631 # Install a library built with a cross compiler in tooldir, not libdir.
55632 if test x"$glibcxx_toolexecdir" = x"no"; then
55633 if test -n "$with_cross_host" &&
55634 test x"$with_cross_host" != x"no"; then
55635 glibcxx_toolexecdir='${exec_prefix}/${host_alias}'
55636 case ${with_toolexeclibdir} in
55638 glibcxx_toolexeclibdir='${toolexecdir}/lib'
55641 glibcxx_toolexeclibdir=${with_toolexeclibdir}
55643 esac
55644 else
55645 glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
55646 glibcxx_toolexeclibdir='${libdir}'
55648 multi_os_directory=`$CXX -print-multi-os-directory`
55649 case $multi_os_directory in
55650 .) ;; # Avoid trailing /.
55651 *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
55652 esac
55655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install location" >&5
55656 $as_echo_n "checking for install location... " >&6; }
55657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gxx_include_dir" >&5
55658 $as_echo "$gxx_include_dir" >&6; }
55666 # Export all the include and flag information to Makefiles.
55668 # Used for every C++ compile we perform.
55669 GLIBCXX_INCLUDES="\
55670 -I$glibcxx_builddir/include/$host_alias \
55671 -I$glibcxx_builddir/include \
55672 -I$glibcxx_srcdir/libsupc++"
55674 # For Canadian crosses, pick this up too.
55675 if test $CANADIAN = yes; then
55676 GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES -I\${includedir}"
55679 # Stuff in the actual top level. Currently only used by libsupc++ to
55680 # get unwind* headers from the libgcc dir.
55681 #TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/libgcc -I$(toplevel_srcdir)/include'
55682 TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/libgcc'
55684 # Now, export this to all the little Makefiles....
55691 # Optimization flags that are probably a good idea for thrill-seekers. Just
55692 # uncomment the lines below and make, everything else is ready to go...
55693 # Alternatively OPTIMIZE_CXXFLAGS can be set in configure.host.
55694 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
55697 WARN_FLAGS="-Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2"
55701 # Determine what GCC version number to use in filesystem paths.
55703 get_gcc_base_ver="cat"
55705 # Check whether --with-gcc-major-version-only was given.
55706 if test "${with_gcc_major_version_only+set}" = set; then :
55707 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
55708 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
55716 ac_config_files="$ac_config_files Makefile"
55718 ac_config_files="$ac_config_files scripts/testsuite_flags"
55720 ac_config_files="$ac_config_files scripts/extract_symvers"
55722 ac_config_files="$ac_config_files doc/xsl/customization.xsl"
55724 ac_config_files="$ac_config_files src/libbacktrace/backtrace-supported.h"
55727 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
55728 # that multilib installs will end up installed in the correct place.
55729 # The testsuite needs it for multilib-aware ABI baseline files.
55730 # To work around this not being passed down from config-ml.in ->
55731 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
55732 # append it here. Only modify Makefiles that have just been created.
55734 # Also, get rid of this simulated-VPATH thing that automake does.
55735 ac_config_files="$ac_config_files include/Makefile libsupc++/Makefile src/Makefile src/c++98/Makefile src/c++11/Makefile src/c++17/Makefile src/c++20/Makefile src/c++23/Makefile src/c++26/Makefile src/filesystem/Makefile src/libbacktrace/Makefile src/experimental/Makefile doc/Makefile po/Makefile testsuite/Makefile python/Makefile"
55738 ac_config_commands="$ac_config_commands generate-headers"
55741 cat >confcache <<\_ACEOF
55742 # This file is a shell script that caches the results of configure
55743 # tests run on this system so they can be shared between configure
55744 # scripts and configure runs, see configure's option --config-cache.
55745 # It is not useful on other systems. If it contains results you don't
55746 # want to keep, you may remove or edit it.
55748 # config.status only pays attention to the cache file if you give it
55749 # the --recheck option to rerun configure.
55751 # `ac_cv_env_foo' variables (set or unset) will be overridden when
55752 # loading this file, other *unset* `ac_cv_foo' will be assigned the
55753 # following values.
55755 _ACEOF
55757 # The following way of writing the cache mishandles newlines in values,
55758 # but we know of no workaround that is simple, portable, and efficient.
55759 # So, we kill variables containing newlines.
55760 # Ultrix sh set writes to stderr and can't be redirected directly,
55761 # and sets the high bit in the cache file unless we assign to the vars.
55763 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
55764 eval ac_val=\$$ac_var
55765 case $ac_val in #(
55766 *${as_nl}*)
55767 case $ac_var in #(
55768 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
55769 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
55770 esac
55771 case $ac_var in #(
55772 _ | IFS | as_nl) ;; #(
55773 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
55774 *) { eval $ac_var=; unset $ac_var;} ;;
55775 esac ;;
55776 esac
55777 done
55779 (set) 2>&1 |
55780 case $as_nl`(ac_space=' '; set) 2>&1` in #(
55781 *${as_nl}ac_space=\ *)
55782 # `set' does not quote correctly, so add quotes: double-quote
55783 # substitution turns \\\\ into \\, and sed turns \\ into \.
55784 sed -n \
55785 "s/'/'\\\\''/g;
55786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
55787 ;; #(
55789 # `set' quotes correctly as required by POSIX, so do not add quotes.
55790 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
55792 esac |
55793 sort
55795 sed '
55796 /^ac_cv_env_/b end
55797 t clear
55798 :clear
55799 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
55800 t end
55801 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
55802 :end' >>confcache
55803 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
55804 if test -w "$cache_file"; then
55805 if test "x$cache_file" != "x/dev/null"; then
55806 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
55807 $as_echo "$as_me: updating cache $cache_file" >&6;}
55808 if test ! -f "$cache_file" || test -h "$cache_file"; then
55809 cat confcache >"$cache_file"
55810 else
55811 case $cache_file in #(
55812 */* | ?:*)
55813 mv -f confcache "$cache_file"$$ &&
55814 mv -f "$cache_file"$$ "$cache_file" ;; #(
55816 mv -f confcache "$cache_file" ;;
55817 esac
55820 else
55821 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
55822 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
55825 rm -f confcache
55827 test "x$prefix" = xNONE && prefix=$ac_default_prefix
55828 # Let make expand exec_prefix.
55829 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
55831 DEFS=-DHAVE_CONFIG_H
55833 ac_libobjs=
55834 ac_ltlibobjs=
55836 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
55837 # 1. Remove the extension, and $U if already installed.
55838 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
55839 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
55840 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
55841 # will be set to the directory where LIBOBJS objects are built.
55842 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
55843 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
55844 done
55845 LIBOBJS=$ac_libobjs
55847 LTLIBOBJS=$ac_ltlibobjs
55850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
55851 $as_echo_n "checking that generated files are newer than configure... " >&6; }
55852 if test -n "$am_sleep_pid"; then
55853 # Hide warnings about reused PIDs.
55854 wait $am_sleep_pid 2>/dev/null
55856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
55857 $as_echo "done" >&6; }
55858 if test -n "$EXEEXT"; then
55859 am__EXEEXT_TRUE=
55860 am__EXEEXT_FALSE='#'
55861 else
55862 am__EXEEXT_TRUE='#'
55863 am__EXEEXT_FALSE=
55866 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
55867 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
55868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55870 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
55871 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
55872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55874 if test -z "${OS_IS_DARWIN_TRUE}" && test -z "${OS_IS_DARWIN_FALSE}"; then
55875 as_fn_error $? "conditional \"OS_IS_DARWIN\" was never defined.
55876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55878 if test -z "${GLIBCXX_HOSTED_TRUE}" && test -z "${GLIBCXX_HOSTED_FALSE}"; then
55879 as_fn_error $? "conditional \"GLIBCXX_HOSTED\" was never defined.
55880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55882 if test -z "${GLIBCXX_BUILD_PCH_TRUE}" && test -z "${GLIBCXX_BUILD_PCH_FALSE}"; then
55883 as_fn_error $? "conditional \"GLIBCXX_BUILD_PCH\" was never defined.
55884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55886 if test -z "${ENABLE_FLOAT128_TRUE}" && test -z "${ENABLE_FLOAT128_FALSE}"; then
55887 as_fn_error $? "conditional \"ENABLE_FLOAT128\" was never defined.
55888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55890 if test -z "${ENABLE_ALLOCATOR_NEW_TRUE}" && test -z "${ENABLE_ALLOCATOR_NEW_FALSE}"; then
55891 as_fn_error $? "conditional \"ENABLE_ALLOCATOR_NEW\" was never defined.
55892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55894 if test -z "${GLIBCXX_C_HEADERS_C_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_FALSE}"; then
55895 as_fn_error $? "conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
55896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55898 if test -z "${GLIBCXX_C_HEADERS_C_STD_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_STD_FALSE}"; then
55899 as_fn_error $? "conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
55900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55902 if test -z "${GLIBCXX_C_HEADERS_C_GLOBAL_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_GLOBAL_FALSE}"; then
55903 as_fn_error $? "conditional \"GLIBCXX_C_HEADERS_C_GLOBAL\" was never defined.
55904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55906 if test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE}" && test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE}"; then
55907 as_fn_error $? "conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
55908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55910 if test -z "${GLIBCXX_BUILD_DEBUG_TRUE}" && test -z "${GLIBCXX_BUILD_DEBUG_FALSE}"; then
55911 as_fn_error $? "conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
55912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55914 if test -z "${ENABLE_EXTERN_TEMPLATE_TRUE}" && test -z "${ENABLE_EXTERN_TEMPLATE_FALSE}"; then
55915 as_fn_error $? "conditional \"ENABLE_EXTERN_TEMPLATE\" was never defined.
55916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55918 if test -z "${ENABLE_PYTHONDIR_TRUE}" && test -z "${ENABLE_PYTHONDIR_FALSE}"; then
55919 as_fn_error $? "conditional \"ENABLE_PYTHONDIR\" was never defined.
55920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55922 if test -z "${ENABLE_WERROR_TRUE}" && test -z "${ENABLE_WERROR_FALSE}"; then
55923 as_fn_error $? "conditional \"ENABLE_WERROR\" was never defined.
55924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55926 if test -z "${VTV_CYGMIN_TRUE}" && test -z "${VTV_CYGMIN_FALSE}"; then
55927 as_fn_error $? "conditional \"VTV_CYGMIN\" was never defined.
55928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55930 if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
55931 as_fn_error $? "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
55932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55934 if test -z "${ENABLE_SYMVERS_TRUE}" && test -z "${ENABLE_SYMVERS_FALSE}"; then
55935 as_fn_error $? "conditional \"ENABLE_SYMVERS\" was never defined.
55936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55938 if test -z "${ENABLE_SYMVERS_GNU_TRUE}" && test -z "${ENABLE_SYMVERS_GNU_FALSE}"; then
55939 as_fn_error $? "conditional \"ENABLE_SYMVERS_GNU\" was never defined.
55940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55942 if test -z "${ENABLE_SYMVERS_GNU_NAMESPACE_TRUE}" && test -z "${ENABLE_SYMVERS_GNU_NAMESPACE_FALSE}"; then
55943 as_fn_error $? "conditional \"ENABLE_SYMVERS_GNU_NAMESPACE\" was never defined.
55944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55946 if test -z "${ENABLE_SYMVERS_DARWIN_TRUE}" && test -z "${ENABLE_SYMVERS_DARWIN_FALSE}"; then
55947 as_fn_error $? "conditional \"ENABLE_SYMVERS_DARWIN\" was never defined.
55948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55950 if test -z "${ENABLE_SYMVERS_SUN_TRUE}" && test -z "${ENABLE_SYMVERS_SUN_FALSE}"; then
55951 as_fn_error $? "conditional \"ENABLE_SYMVERS_SUN\" was never defined.
55952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55954 if test -z "${ENABLE_VISIBILITY_TRUE}" && test -z "${ENABLE_VISIBILITY_FALSE}"; then
55955 as_fn_error $? "conditional \"ENABLE_VISIBILITY\" was never defined.
55956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55958 if test -z "${ENABLE_DUAL_ABI_TRUE}" && test -z "${ENABLE_DUAL_ABI_FALSE}"; then
55959 as_fn_error $? "conditional \"ENABLE_DUAL_ABI\" was never defined.
55960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55962 if test -z "${ENABLE_CXX11_ABI_TRUE}" && test -z "${ENABLE_CXX11_ABI_FALSE}"; then
55963 as_fn_error $? "conditional \"ENABLE_CXX11_ABI\" was never defined.
55964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55966 if test -z "${GLIBCXX_LDBL_COMPAT_TRUE}" && test -z "${GLIBCXX_LDBL_COMPAT_FALSE}"; then
55967 as_fn_error $? "conditional \"GLIBCXX_LDBL_COMPAT\" was never defined.
55968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55970 if test -z "${GLIBCXX_LDBL_ALT128_COMPAT_TRUE}" && test -z "${GLIBCXX_LDBL_ALT128_COMPAT_FALSE}"; then
55971 as_fn_error $? "conditional \"GLIBCXX_LDBL_ALT128_COMPAT\" was never defined.
55972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55974 if test -z "${ENABLE_FILESYSTEM_TS_TRUE}" && test -z "${ENABLE_FILESYSTEM_TS_FALSE}"; then
55975 as_fn_error $? "conditional \"ENABLE_FILESYSTEM_TS\" was never defined.
55976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55978 if test -z "${ENABLE_BACKTRACE_TRUE}" && test -z "${ENABLE_BACKTRACE_FALSE}"; then
55979 as_fn_error $? "conditional \"ENABLE_BACKTRACE\" was never defined.
55980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55982 if test -z "${USE_STATIC_TZDATA_TRUE}" && test -z "${USE_STATIC_TZDATA_FALSE}"; then
55983 as_fn_error $? "conditional \"USE_STATIC_TZDATA\" was never defined.
55984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55986 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
55987 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
55988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55990 if test -z "${BUILD_EPUB_TRUE}" && test -z "${BUILD_EPUB_FALSE}"; then
55991 as_fn_error $? "conditional \"BUILD_EPUB\" was never defined.
55992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55994 if test -z "${BUILD_XML_TRUE}" && test -z "${BUILD_XML_FALSE}"; then
55995 as_fn_error $? "conditional \"BUILD_XML\" was never defined.
55996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55998 if test -z "${BUILD_HTML_TRUE}" && test -z "${BUILD_HTML_FALSE}"; then
55999 as_fn_error $? "conditional \"BUILD_HTML\" was never defined.
56000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
56002 if test -z "${BUILD_MAN_TRUE}" && test -z "${BUILD_MAN_FALSE}"; then
56003 as_fn_error $? "conditional \"BUILD_MAN\" was never defined.
56004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
56006 if test -z "${BUILD_PDF_TRUE}" && test -z "${BUILD_PDF_FALSE}"; then
56007 as_fn_error $? "conditional \"BUILD_PDF\" was never defined.
56008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
56010 if test -z "${INCLUDE_DIR_NOTPARALLEL_TRUE}" && test -z "${INCLUDE_DIR_NOTPARALLEL_FALSE}"; then
56011 as_fn_error $? "conditional \"INCLUDE_DIR_NOTPARALLEL\" was never defined.
56012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
56015 : "${CONFIG_STATUS=./config.status}"
56016 ac_write_fail=0
56017 ac_clean_files_save=$ac_clean_files
56018 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
56019 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
56020 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
56021 as_write_fail=0
56022 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
56023 #! $SHELL
56024 # Generated by $as_me.
56025 # Run this file to recreate the current configuration.
56026 # Compiler output produced by configure, useful for debugging
56027 # configure, is in config.log if it exists.
56029 debug=false
56030 ac_cs_recheck=false
56031 ac_cs_silent=false
56033 SHELL=\${CONFIG_SHELL-$SHELL}
56034 export SHELL
56035 _ASEOF
56036 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
56037 ## -------------------- ##
56038 ## M4sh Initialization. ##
56039 ## -------------------- ##
56041 # Be more Bourne compatible
56042 DUALCASE=1; export DUALCASE # for MKS sh
56043 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
56044 emulate sh
56045 NULLCMD=:
56046 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
56047 # is contrary to our usage. Disable this feature.
56048 alias -g '${1+"$@"}'='"$@"'
56049 setopt NO_GLOB_SUBST
56050 else
56051 case `(set -o) 2>/dev/null` in #(
56052 *posix*) :
56053 set -o posix ;; #(
56054 *) :
56056 esac
56060 as_nl='
56062 export as_nl
56063 # Printing a long string crashes Solaris 7 /usr/bin/printf.
56064 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
56065 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
56066 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
56067 # Prefer a ksh shell builtin over an external printf program on Solaris,
56068 # but without wasting forks for bash or zsh.
56069 if test -z "$BASH_VERSION$ZSH_VERSION" \
56070 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
56071 as_echo='print -r --'
56072 as_echo_n='print -rn --'
56073 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56074 as_echo='printf %s\n'
56075 as_echo_n='printf %s'
56076 else
56077 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56078 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56079 as_echo_n='/usr/ucb/echo -n'
56080 else
56081 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56082 as_echo_n_body='eval
56083 arg=$1;
56084 case $arg in #(
56085 *"$as_nl"*)
56086 expr "X$arg" : "X\\(.*\\)$as_nl";
56087 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
56088 esac;
56089 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
56091 export as_echo_n_body
56092 as_echo_n='sh -c $as_echo_n_body as_echo'
56094 export as_echo_body
56095 as_echo='sh -c $as_echo_body as_echo'
56098 # The user is always right.
56099 if test "${PATH_SEPARATOR+set}" != set; then
56100 PATH_SEPARATOR=:
56101 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
56102 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
56103 PATH_SEPARATOR=';'
56108 # IFS
56109 # We need space, tab and new line, in precisely that order. Quoting is
56110 # there to prevent editors from complaining about space-tab.
56111 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
56112 # splitting by setting IFS to empty value.)
56113 IFS=" "" $as_nl"
56115 # Find who we are. Look in the path if we contain no directory separator.
56116 as_myself=
56117 case $0 in #((
56118 *[\\/]* ) as_myself=$0 ;;
56119 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56120 for as_dir in $PATH
56122 IFS=$as_save_IFS
56123 test -z "$as_dir" && as_dir=.
56124 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
56125 done
56126 IFS=$as_save_IFS
56129 esac
56130 # We did not find ourselves, most probably we were run as `sh COMMAND'
56131 # in which case we are not to be found in the path.
56132 if test "x$as_myself" = x; then
56133 as_myself=$0
56135 if test ! -f "$as_myself"; then
56136 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
56137 exit 1
56140 # Unset variables that we do not need and which cause bugs (e.g. in
56141 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
56142 # suppresses any "Segmentation fault" message there. '((' could
56143 # trigger a bug in pdksh 5.2.14.
56144 for as_var in BASH_ENV ENV MAIL MAILPATH
56145 do eval test x\${$as_var+set} = xset \
56146 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
56147 done
56148 PS1='$ '
56149 PS2='> '
56150 PS4='+ '
56152 # NLS nuisances.
56153 LC_ALL=C
56154 export LC_ALL
56155 LANGUAGE=C
56156 export LANGUAGE
56158 # CDPATH.
56159 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
56162 # as_fn_error STATUS ERROR [LINENO LOG_FD]
56163 # ----------------------------------------
56164 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
56165 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
56166 # script with STATUS, using 1 if that was 0.
56167 as_fn_error ()
56169 as_status=$1; test $as_status -eq 0 && as_status=1
56170 if test "$4"; then
56171 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
56172 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
56174 $as_echo "$as_me: error: $2" >&2
56175 as_fn_exit $as_status
56176 } # as_fn_error
56179 # as_fn_set_status STATUS
56180 # -----------------------
56181 # Set $? to STATUS, without forking.
56182 as_fn_set_status ()
56184 return $1
56185 } # as_fn_set_status
56187 # as_fn_exit STATUS
56188 # -----------------
56189 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
56190 as_fn_exit ()
56192 set +e
56193 as_fn_set_status $1
56194 exit $1
56195 } # as_fn_exit
56197 # as_fn_unset VAR
56198 # ---------------
56199 # Portably unset VAR.
56200 as_fn_unset ()
56202 { eval $1=; unset $1;}
56204 as_unset=as_fn_unset
56205 # as_fn_append VAR VALUE
56206 # ----------------------
56207 # Append the text in VALUE to the end of the definition contained in VAR. Take
56208 # advantage of any shell optimizations that allow amortized linear growth over
56209 # repeated appends, instead of the typical quadratic growth present in naive
56210 # implementations.
56211 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
56212 eval 'as_fn_append ()
56214 eval $1+=\$2
56216 else
56217 as_fn_append ()
56219 eval $1=\$$1\$2
56221 fi # as_fn_append
56223 # as_fn_arith ARG...
56224 # ------------------
56225 # Perform arithmetic evaluation on the ARGs, and store the result in the
56226 # global $as_val. Take advantage of shells that can avoid forks. The arguments
56227 # must be portable across $(()) and expr.
56228 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
56229 eval 'as_fn_arith ()
56231 as_val=$(( $* ))
56233 else
56234 as_fn_arith ()
56236 as_val=`expr "$@" || test $? -eq 1`
56238 fi # as_fn_arith
56241 if expr a : '\(a\)' >/dev/null 2>&1 &&
56242 test "X`expr 00001 : '.*\(...\)'`" = X001; then
56243 as_expr=expr
56244 else
56245 as_expr=false
56248 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
56249 as_basename=basename
56250 else
56251 as_basename=false
56254 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
56255 as_dirname=dirname
56256 else
56257 as_dirname=false
56260 as_me=`$as_basename -- "$0" ||
56261 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
56262 X"$0" : 'X\(//\)$' \| \
56263 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
56264 $as_echo X/"$0" |
56265 sed '/^.*\/\([^/][^/]*\)\/*$/{
56266 s//\1/
56269 /^X\/\(\/\/\)$/{
56270 s//\1/
56273 /^X\/\(\/\).*/{
56274 s//\1/
56277 s/.*/./; q'`
56279 # Avoid depending upon Character Ranges.
56280 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
56281 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
56282 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
56283 as_cr_digits='0123456789'
56284 as_cr_alnum=$as_cr_Letters$as_cr_digits
56286 ECHO_C= ECHO_N= ECHO_T=
56287 case `echo -n x` in #(((((
56288 -n*)
56289 case `echo 'xy\c'` in
56290 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
56291 xy) ECHO_C='\c';;
56292 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
56293 ECHO_T=' ';;
56294 esac;;
56296 ECHO_N='-n';;
56297 esac
56299 rm -f conf$$ conf$$.exe conf$$.file
56300 if test -d conf$$.dir; then
56301 rm -f conf$$.dir/conf$$.file
56302 else
56303 rm -f conf$$.dir
56304 mkdir conf$$.dir 2>/dev/null
56306 if (echo >conf$$.file) 2>/dev/null; then
56307 if ln -s conf$$.file conf$$ 2>/dev/null; then
56308 as_ln_s='ln -s'
56309 # ... but there are two gotchas:
56310 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
56311 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
56312 # In both cases, we have to default to `cp -pR'.
56313 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
56314 as_ln_s='cp -pR'
56315 elif ln conf$$.file conf$$ 2>/dev/null; then
56316 as_ln_s=ln
56317 else
56318 as_ln_s='cp -pR'
56320 else
56321 as_ln_s='cp -pR'
56323 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
56324 rmdir conf$$.dir 2>/dev/null
56327 # as_fn_mkdir_p
56328 # -------------
56329 # Create "$as_dir" as a directory, including parents if necessary.
56330 as_fn_mkdir_p ()
56333 case $as_dir in #(
56334 -*) as_dir=./$as_dir;;
56335 esac
56336 test -d "$as_dir" || eval $as_mkdir_p || {
56337 as_dirs=
56338 while :; do
56339 case $as_dir in #(
56340 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
56341 *) as_qdir=$as_dir;;
56342 esac
56343 as_dirs="'$as_qdir' $as_dirs"
56344 as_dir=`$as_dirname -- "$as_dir" ||
56345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56346 X"$as_dir" : 'X\(//\)[^/]' \| \
56347 X"$as_dir" : 'X\(//\)$' \| \
56348 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
56349 $as_echo X"$as_dir" |
56350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
56351 s//\1/
56354 /^X\(\/\/\)[^/].*/{
56355 s//\1/
56358 /^X\(\/\/\)$/{
56359 s//\1/
56362 /^X\(\/\).*/{
56363 s//\1/
56366 s/.*/./; q'`
56367 test -d "$as_dir" && break
56368 done
56369 test -z "$as_dirs" || eval "mkdir $as_dirs"
56370 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
56373 } # as_fn_mkdir_p
56374 if mkdir -p . 2>/dev/null; then
56375 as_mkdir_p='mkdir -p "$as_dir"'
56376 else
56377 test -d ./-p && rmdir ./-p
56378 as_mkdir_p=false
56382 # as_fn_executable_p FILE
56383 # -----------------------
56384 # Test if FILE is an executable regular file.
56385 as_fn_executable_p ()
56387 test -f "$1" && test -x "$1"
56388 } # as_fn_executable_p
56389 as_test_x='test -x'
56390 as_executable_p=as_fn_executable_p
56392 # Sed expression to map a string onto a valid CPP name.
56393 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
56395 # Sed expression to map a string onto a valid variable name.
56396 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
56399 exec 6>&1
56400 ## ----------------------------------- ##
56401 ## Main body of $CONFIG_STATUS script. ##
56402 ## ----------------------------------- ##
56403 _ASEOF
56404 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
56406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56407 # Save the log message, to keep $0 and so on meaningful, and to
56408 # report actual input values of CONFIG_FILES etc. instead of their
56409 # values after options handling.
56410 ac_log="
56411 This file was extended by package-unused $as_me version-unused, which was
56412 generated by GNU Autoconf 2.69. Invocation command line was
56414 CONFIG_FILES = $CONFIG_FILES
56415 CONFIG_HEADERS = $CONFIG_HEADERS
56416 CONFIG_LINKS = $CONFIG_LINKS
56417 CONFIG_COMMANDS = $CONFIG_COMMANDS
56418 $ $0 $@
56420 on `(hostname || uname -n) 2>/dev/null | sed 1q`
56423 _ACEOF
56425 case $ac_config_files in *"
56426 "*) set x $ac_config_files; shift; ac_config_files=$*;;
56427 esac
56429 case $ac_config_headers in *"
56430 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
56431 esac
56434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56435 # Files that config.status was made for.
56436 config_files="$ac_config_files"
56437 config_headers="$ac_config_headers"
56438 config_commands="$ac_config_commands"
56440 _ACEOF
56442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56443 ac_cs_usage="\
56444 \`$as_me' instantiates files and other configuration actions
56445 from templates according to the current configuration. Unless the files
56446 and actions are specified as TAGs, all are instantiated by default.
56448 Usage: $0 [OPTION]... [TAG]...
56450 -h, --help print this help, then exit
56451 -V, --version print version number and configuration settings, then exit
56452 --config print configuration, then exit
56453 -q, --quiet, --silent
56454 do not print progress messages
56455 -d, --debug don't remove temporary files
56456 --recheck update $as_me by reconfiguring in the same conditions
56457 --file=FILE[:TEMPLATE]
56458 instantiate the configuration file FILE
56459 --header=FILE[:TEMPLATE]
56460 instantiate the configuration header FILE
56462 Configuration files:
56463 $config_files
56465 Configuration headers:
56466 $config_headers
56468 Configuration commands:
56469 $config_commands
56471 Report bugs to the package provider."
56473 _ACEOF
56474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56475 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
56476 ac_cs_version="\\
56477 package-unused config.status version-unused
56478 configured by $0, generated by GNU Autoconf 2.69,
56479 with options \\"\$ac_cs_config\\"
56481 Copyright (C) 2012 Free Software Foundation, Inc.
56482 This config.status script is free software; the Free Software Foundation
56483 gives unlimited permission to copy, distribute and modify it."
56485 ac_pwd='$ac_pwd'
56486 srcdir='$srcdir'
56487 INSTALL='$INSTALL'
56488 MKDIR_P='$MKDIR_P'
56489 AWK='$AWK'
56490 test -n "\$AWK" || AWK=awk
56491 _ACEOF
56493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56494 # The default lists apply if the user does not specify any file.
56495 ac_need_defaults=:
56496 while test $# != 0
56498 case $1 in
56499 --*=?*)
56500 ac_option=`expr "X$1" : 'X\([^=]*\)='`
56501 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
56502 ac_shift=:
56504 --*=)
56505 ac_option=`expr "X$1" : 'X\([^=]*\)='`
56506 ac_optarg=
56507 ac_shift=:
56510 ac_option=$1
56511 ac_optarg=$2
56512 ac_shift=shift
56514 esac
56516 case $ac_option in
56517 # Handling of the options.
56518 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
56519 ac_cs_recheck=: ;;
56520 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
56521 $as_echo "$ac_cs_version"; exit ;;
56522 --config | --confi | --conf | --con | --co | --c )
56523 $as_echo "$ac_cs_config"; exit ;;
56524 --debug | --debu | --deb | --de | --d | -d )
56525 debug=: ;;
56526 --file | --fil | --fi | --f )
56527 $ac_shift
56528 case $ac_optarg in
56529 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
56530 '') as_fn_error $? "missing file argument" ;;
56531 esac
56532 as_fn_append CONFIG_FILES " '$ac_optarg'"
56533 ac_need_defaults=false;;
56534 --header | --heade | --head | --hea )
56535 $ac_shift
56536 case $ac_optarg in
56537 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
56538 esac
56539 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
56540 ac_need_defaults=false;;
56541 --he | --h)
56542 # Conflict between --help and --header
56543 as_fn_error $? "ambiguous option: \`$1'
56544 Try \`$0 --help' for more information.";;
56545 --help | --hel | -h )
56546 $as_echo "$ac_cs_usage"; exit ;;
56547 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
56548 | -silent | --silent | --silen | --sile | --sil | --si | --s)
56549 ac_cs_silent=: ;;
56551 # This is an error.
56552 -*) as_fn_error $? "unrecognized option: \`$1'
56553 Try \`$0 --help' for more information." ;;
56555 *) as_fn_append ac_config_targets " $1"
56556 ac_need_defaults=false ;;
56558 esac
56559 shift
56560 done
56562 ac_configure_extra_args=
56564 if $ac_cs_silent; then
56565 exec 6>/dev/null
56566 ac_configure_extra_args="$ac_configure_extra_args --silent"
56569 _ACEOF
56570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56571 if \$ac_cs_recheck; then
56572 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
56573 shift
56574 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
56575 CONFIG_SHELL='$SHELL'
56576 export CONFIG_SHELL
56577 exec "\$@"
56580 _ACEOF
56581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56582 exec 5>>config.log
56584 echo
56585 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
56586 ## Running $as_me. ##
56587 _ASBOX
56588 $as_echo "$ac_log"
56589 } >&5
56591 _ACEOF
56592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56594 # INIT-COMMANDS
56597 srcdir="$srcdir"
56598 host="$host"
56599 target="$target"
56600 with_multisubdir="$with_multisubdir"
56601 with_multisrctop="$with_multisrctop"
56602 with_target_subdir="$with_target_subdir"
56603 ac_configure_args="${multilib_arg} ${ac_configure_args}"
56604 multi_basedir="$multi_basedir"
56605 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
56606 CC="$CC"
56607 CXX="$CXX"
56608 GFORTRAN="$GFORTRAN"
56609 GDC="$GDC"
56612 # The HP-UX ksh and POSIX shell print the target directory to stdout
56613 # if CDPATH is set.
56614 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
56616 sed_quote_subst='$sed_quote_subst'
56617 double_quote_subst='$double_quote_subst'
56618 delay_variable_subst='$delay_variable_subst'
56619 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
56620 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
56621 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
56622 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
56623 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
56624 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
56625 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
56626 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
56627 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
56628 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
56629 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
56630 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
56631 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
56632 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
56633 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
56634 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
56635 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
56636 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
56637 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
56638 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
56639 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
56640 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
56641 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
56642 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
56643 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
56644 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
56645 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
56646 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
56647 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
56648 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
56649 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
56650 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
56651 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
56652 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
56653 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
56654 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
56655 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
56656 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
56657 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
56658 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
56659 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
56660 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
56661 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
56662 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
56663 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
56664 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
56665 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
56666 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
56667 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
56668 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
56669 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
56670 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
56671 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
56672 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
56673 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
56674 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
56675 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
56676 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
56677 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
56678 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
56679 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
56680 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
56681 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
56682 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
56683 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
56684 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
56685 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
56686 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
56687 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
56688 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
56689 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
56690 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
56691 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
56692 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
56693 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
56694 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
56695 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
56696 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
56697 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
56698 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
56699 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
56700 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
56701 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
56702 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
56703 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
56704 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
56705 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
56706 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
56707 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
56708 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
56709 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
56710 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
56711 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
56712 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
56713 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
56714 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
56715 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
56716 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
56717 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
56718 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
56719 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
56720 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
56721 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
56722 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
56723 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
56724 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
56725 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
56726 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
56727 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
56728 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
56729 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
56730 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
56731 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
56732 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
56733 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
56734 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
56735 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
56736 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
56737 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
56738 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
56739 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
56740 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
56741 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
56742 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
56743 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
56744 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
56745 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
56746 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
56747 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56748 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56749 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
56750 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
56751 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
56752 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
56753 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
56754 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
56755 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
56756 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
56757 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
56758 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
56759 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
56760 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
56761 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56762 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56763 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56764 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56765 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56766 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56767 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
56768 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
56769 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
56770 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
56771 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
56772 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
56773 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
56774 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
56775 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
56776 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
56777 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
56778 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
56779 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
56780 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
56781 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
56782 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56783 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
56784 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
56785 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56786 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
56787 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
56788 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
56789 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
56790 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
56791 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
56792 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
56793 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
56795 LTCC='$LTCC'
56796 LTCFLAGS='$LTCFLAGS'
56797 compiler='$compiler_DEFAULT'
56799 # A function that is used when there is no print builtin or printf.
56800 func_fallback_echo ()
56802 eval 'cat <<_LTECHO_EOF
56804 _LTECHO_EOF'
56807 # Quote evaled strings.
56808 for var in SHELL \
56809 ECHO \
56810 SED \
56811 GREP \
56812 EGREP \
56813 FGREP \
56814 LD \
56815 NM \
56816 LN_S \
56817 lt_SP2NL \
56818 lt_NL2SP \
56819 reload_flag \
56820 OBJDUMP \
56821 deplibs_check_method \
56822 file_magic_cmd \
56823 AR \
56824 AR_FLAGS \
56825 STRIP \
56826 RANLIB \
56827 CC \
56828 CFLAGS \
56829 compiler \
56830 lt_cv_sys_global_symbol_pipe \
56831 lt_cv_sys_global_symbol_to_cdecl \
56832 lt_cv_sys_global_symbol_to_c_name_address \
56833 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
56834 lt_prog_compiler_no_builtin_flag \
56835 lt_prog_compiler_wl \
56836 lt_prog_compiler_pic \
56837 lt_prog_compiler_static \
56838 lt_cv_prog_compiler_c_o \
56839 need_locks \
56840 DSYMUTIL \
56841 NMEDIT \
56842 LIPO \
56843 OTOOL \
56844 OTOOL64 \
56845 shrext_cmds \
56846 export_dynamic_flag_spec \
56847 whole_archive_flag_spec \
56848 compiler_needs_object \
56849 with_gnu_ld \
56850 allow_undefined_flag \
56851 no_undefined_flag \
56852 hardcode_libdir_flag_spec \
56853 hardcode_libdir_flag_spec_ld \
56854 hardcode_libdir_separator \
56855 fix_srcfile_path \
56856 exclude_expsyms \
56857 include_expsyms \
56858 file_list_spec \
56859 variables_saved_for_relink \
56860 libname_spec \
56861 library_names_spec \
56862 soname_spec \
56863 install_override_mode \
56864 finish_eval \
56865 old_striplib \
56866 striplib \
56867 compiler_lib_search_dirs \
56868 predep_objects \
56869 postdep_objects \
56870 predeps \
56871 postdeps \
56872 compiler_lib_search_path \
56873 LD_CXX \
56874 reload_flag_CXX \
56875 compiler_CXX \
56876 lt_prog_compiler_no_builtin_flag_CXX \
56877 lt_prog_compiler_wl_CXX \
56878 lt_prog_compiler_pic_CXX \
56879 lt_prog_compiler_static_CXX \
56880 lt_cv_prog_compiler_c_o_CXX \
56881 export_dynamic_flag_spec_CXX \
56882 whole_archive_flag_spec_CXX \
56883 compiler_needs_object_CXX \
56884 with_gnu_ld_CXX \
56885 allow_undefined_flag_CXX \
56886 no_undefined_flag_CXX \
56887 hardcode_libdir_flag_spec_CXX \
56888 hardcode_libdir_flag_spec_ld_CXX \
56889 hardcode_libdir_separator_CXX \
56890 fix_srcfile_path_CXX \
56891 exclude_expsyms_CXX \
56892 include_expsyms_CXX \
56893 file_list_spec_CXX \
56894 compiler_lib_search_dirs_CXX \
56895 predep_objects_CXX \
56896 postdep_objects_CXX \
56897 predeps_CXX \
56898 postdeps_CXX \
56899 compiler_lib_search_path_CXX; do
56900 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
56901 *[\\\\\\\`\\"\\\$]*)
56902 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
56905 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
56907 esac
56908 done
56910 # Double-quote double-evaled strings.
56911 for var in reload_cmds \
56912 old_postinstall_cmds \
56913 old_postuninstall_cmds \
56914 old_archive_cmds \
56915 extract_expsyms_cmds \
56916 old_archive_from_new_cmds \
56917 old_archive_from_expsyms_cmds \
56918 archive_cmds \
56919 archive_expsym_cmds \
56920 module_cmds \
56921 module_expsym_cmds \
56922 export_symbols_cmds \
56923 prelink_cmds \
56924 postinstall_cmds \
56925 postuninstall_cmds \
56926 finish_cmds \
56927 sys_lib_search_path_spec \
56928 sys_lib_dlsearch_path_spec \
56929 reload_cmds_CXX \
56930 old_archive_cmds_CXX \
56931 old_archive_from_new_cmds_CXX \
56932 old_archive_from_expsyms_cmds_CXX \
56933 archive_cmds_CXX \
56934 archive_expsym_cmds_CXX \
56935 module_cmds_CXX \
56936 module_expsym_cmds_CXX \
56937 export_symbols_cmds_CXX \
56938 prelink_cmds_CXX; do
56939 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
56940 *[\\\\\\\`\\"\\\$]*)
56941 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
56944 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
56946 esac
56947 done
56949 ac_aux_dir='$ac_aux_dir'
56950 xsi_shell='$xsi_shell'
56951 lt_shell_append='$lt_shell_append'
56953 # See if we are running on zsh, and set the options which allow our
56954 # commands through without removal of \ escapes INIT.
56955 if test -n "\${ZSH_VERSION+set}" ; then
56956 setopt NO_GLOB_SUBST
56960 PACKAGE='$PACKAGE'
56961 VERSION='$VERSION'
56962 TIMESTAMP='$TIMESTAMP'
56963 RM='$RM'
56964 ofile='$ofile'
56971 _ACEOF
56973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56975 # Handling of arguments.
56976 for ac_config_target in $ac_config_targets
56978 case $ac_config_target in
56979 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
56980 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
56981 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
56982 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
56983 "scripts/testsuite_flags") CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
56984 "scripts/extract_symvers") CONFIG_FILES="$CONFIG_FILES scripts/extract_symvers" ;;
56985 "doc/xsl/customization.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/customization.xsl" ;;
56986 "src/libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES src/libbacktrace/backtrace-supported.h" ;;
56987 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
56988 "libsupc++/Makefile") CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
56989 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
56990 "src/c++98/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++98/Makefile" ;;
56991 "src/c++11/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++11/Makefile" ;;
56992 "src/c++17/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++17/Makefile" ;;
56993 "src/c++20/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++20/Makefile" ;;
56994 "src/c++23/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++23/Makefile" ;;
56995 "src/c++26/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++26/Makefile" ;;
56996 "src/filesystem/Makefile") CONFIG_FILES="$CONFIG_FILES src/filesystem/Makefile" ;;
56997 "src/libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES src/libbacktrace/Makefile" ;;
56998 "src/experimental/Makefile") CONFIG_FILES="$CONFIG_FILES src/experimental/Makefile" ;;
56999 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
57000 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
57001 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
57002 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
57003 "generate-headers") CONFIG_COMMANDS="$CONFIG_COMMANDS generate-headers" ;;
57005 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
57006 esac
57007 done
57010 # If the user did not use the arguments to specify the items to instantiate,
57011 # then the envvar interface is used. Set only those that are not.
57012 # We use the long form for the default assignment because of an extremely
57013 # bizarre bug on SunOS 4.1.3.
57014 if $ac_need_defaults; then
57015 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
57016 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
57017 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
57020 # Have a temporary directory for convenience. Make it in the build tree
57021 # simply because there is no reason against having it here, and in addition,
57022 # creating and moving files from /tmp can sometimes cause problems.
57023 # Hook for its removal unless debugging.
57024 # Note that there is a small window in which the directory will not be cleaned:
57025 # after its creation but before its name has been assigned to `$tmp'.
57026 $debug ||
57028 tmp= ac_tmp=
57029 trap 'exit_status=$?
57030 : "${ac_tmp:=$tmp}"
57031 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
57033 trap 'as_fn_exit 1' 1 2 13 15
57035 # Create a (secure) tmp directory for tmp files.
57038 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
57039 test -d "$tmp"
57040 } ||
57042 tmp=./conf$$-$RANDOM
57043 (umask 077 && mkdir "$tmp")
57044 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
57045 ac_tmp=$tmp
57047 # Set up the scripts for CONFIG_FILES section.
57048 # No need to generate them if there are no CONFIG_FILES.
57049 # This happens for instance with `./config.status config.h'.
57050 if test -n "$CONFIG_FILES"; then
57053 ac_cr=`echo X | tr X '\015'`
57054 # On cygwin, bash can eat \r inside `` if the user requested igncr.
57055 # But we know of no other shell where ac_cr would be empty at this
57056 # point, so we can use a bashism as a fallback.
57057 if test "x$ac_cr" = x; then
57058 eval ac_cr=\$\'\\r\'
57060 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
57061 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
57062 ac_cs_awk_cr='\\r'
57063 else
57064 ac_cs_awk_cr=$ac_cr
57067 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
57068 _ACEOF
57072 echo "cat >conf$$subs.awk <<_ACEOF" &&
57073 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
57074 echo "_ACEOF"
57075 } >conf$$subs.sh ||
57076 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
57077 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
57078 ac_delim='%!_!# '
57079 for ac_last_try in false false false false false :; do
57080 . ./conf$$subs.sh ||
57081 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
57083 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
57084 if test $ac_delim_n = $ac_delim_num; then
57085 break
57086 elif $ac_last_try; then
57087 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
57088 else
57089 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
57091 done
57092 rm -f conf$$subs.sh
57094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57095 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
57096 _ACEOF
57097 sed -n '
57099 s/^/S["/; s/!.*/"]=/
57102 s/^[^!]*!//
57103 :repl
57104 t repl
57105 s/'"$ac_delim"'$//
57106 t delim
57109 s/\(.\{148\}\)..*/\1/
57110 t more1
57111 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
57114 b repl
57115 :more1
57116 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
57119 s/.\{148\}//
57120 t nl
57121 :delim
57123 s/\(.\{148\}\)..*/\1/
57124 t more2
57125 s/["\\]/\\&/g; s/^/"/; s/$/"/
57128 :more2
57129 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
57132 s/.\{148\}//
57133 t delim
57134 ' <conf$$subs.awk | sed '
57135 /^[^""]/{
57137 s/\n//
57139 ' >>$CONFIG_STATUS || ac_write_fail=1
57140 rm -f conf$$subs.awk
57141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57142 _ACAWK
57143 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
57144 for (key in S) S_is_set[key] = 1
57145 FS = "\a"
57149 line = $ 0
57150 nfields = split(line, field, "@")
57151 substed = 0
57152 len = length(field[1])
57153 for (i = 2; i < nfields; i++) {
57154 key = field[i]
57155 keylen = length(key)
57156 if (S_is_set[key]) {
57157 value = S[key]
57158 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
57159 len += length(value) + length(field[++i])
57160 substed = 1
57161 } else
57162 len += 1 + keylen
57165 print line
57168 _ACAWK
57169 _ACEOF
57170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57171 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
57172 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
57173 else
57175 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
57176 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
57177 _ACEOF
57179 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
57180 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
57181 # trailing colons and then remove the whole line if VPATH becomes empty
57182 # (actually we leave an empty line to preserve line numbers).
57183 if test "x$srcdir" = x.; then
57184 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
57186 s///
57187 s/^/:/
57188 s/[ ]*$/:/
57189 s/:\$(srcdir):/:/g
57190 s/:\${srcdir}:/:/g
57191 s/:@srcdir@:/:/g
57192 s/^:*//
57193 s/:*$//
57195 s/\(=[ ]*\).*/\1/
57197 s/\n//
57198 s/^[^=]*=[ ]*$//
57202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57203 fi # test -n "$CONFIG_FILES"
57205 # Set up the scripts for CONFIG_HEADERS section.
57206 # No need to generate them if there are no CONFIG_HEADERS.
57207 # This happens for instance with `./config.status Makefile'.
57208 if test -n "$CONFIG_HEADERS"; then
57209 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
57210 BEGIN {
57211 _ACEOF
57213 # Transform confdefs.h into an awk script `defines.awk', embedded as
57214 # here-document in config.status, that substitutes the proper values into
57215 # config.h.in to produce config.h.
57217 # Create a delimiter string that does not exist in confdefs.h, to ease
57218 # handling of long lines.
57219 ac_delim='%!_!# '
57220 for ac_last_try in false false :; do
57221 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
57222 if test -z "$ac_tt"; then
57223 break
57224 elif $ac_last_try; then
57225 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
57226 else
57227 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
57229 done
57231 # For the awk script, D is an array of macro values keyed by name,
57232 # likewise P contains macro parameters if any. Preserve backslash
57233 # newline sequences.
57235 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
57236 sed -n '
57237 s/.\{148\}/&'"$ac_delim"'/g
57238 t rset
57239 :rset
57240 s/^[ ]*#[ ]*define[ ][ ]*/ /
57241 t def
57243 :def
57244 s/\\$//
57245 t bsnl
57246 s/["\\]/\\&/g
57247 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
57248 D["\1"]=" \3"/p
57249 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
57251 :bsnl
57252 s/["\\]/\\&/g
57253 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
57254 D["\1"]=" \3\\\\\\n"\\/p
57255 t cont
57256 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
57257 t cont
57259 :cont
57261 s/.\{148\}/&'"$ac_delim"'/g
57262 t clear
57263 :clear
57264 s/\\$//
57265 t bsnlc
57266 s/["\\]/\\&/g; s/^/"/; s/$/"/p
57268 :bsnlc
57269 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
57270 b cont
57271 ' <confdefs.h | sed '
57272 s/'"$ac_delim"'/"\\\
57273 "/g' >>$CONFIG_STATUS || ac_write_fail=1
57275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57276 for (key in D) D_is_set[key] = 1
57277 FS = "\a"
57279 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
57280 line = \$ 0
57281 split(line, arg, " ")
57282 if (arg[1] == "#") {
57283 defundef = arg[2]
57284 mac1 = arg[3]
57285 } else {
57286 defundef = substr(arg[1], 2)
57287 mac1 = arg[2]
57289 split(mac1, mac2, "(") #)
57290 macro = mac2[1]
57291 prefix = substr(line, 1, index(line, defundef) - 1)
57292 if (D_is_set[macro]) {
57293 # Preserve the white space surrounding the "#".
57294 print prefix "define", macro P[macro] D[macro]
57295 next
57296 } else {
57297 # Replace #undef with comments. This is necessary, for example,
57298 # in the case of _POSIX_SOURCE, which is predefined and required
57299 # on some systems where configure will not decide to define it.
57300 if (defundef == "undef") {
57301 print "/*", prefix defundef, macro, "*/"
57302 next
57306 { print }
57307 _ACAWK
57308 _ACEOF
57309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57310 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
57311 fi # test -n "$CONFIG_HEADERS"
57314 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
57315 shift
57316 for ac_tag
57318 case $ac_tag in
57319 :[FHLC]) ac_mode=$ac_tag; continue;;
57320 esac
57321 case $ac_mode$ac_tag in
57322 :[FHL]*:*);;
57323 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
57324 :[FH]-) ac_tag=-:-;;
57325 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
57326 esac
57327 ac_save_IFS=$IFS
57328 IFS=:
57329 set x $ac_tag
57330 IFS=$ac_save_IFS
57331 shift
57332 ac_file=$1
57333 shift
57335 case $ac_mode in
57336 :L) ac_source=$1;;
57337 :[FH])
57338 ac_file_inputs=
57339 for ac_f
57341 case $ac_f in
57342 -) ac_f="$ac_tmp/stdin";;
57343 *) # Look for the file first in the build tree, then in the source tree
57344 # (if the path is not absolute). The absolute path cannot be DOS-style,
57345 # because $ac_f cannot contain `:'.
57346 test -f "$ac_f" ||
57347 case $ac_f in
57348 [\\/$]*) false;;
57349 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
57350 esac ||
57351 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
57352 esac
57353 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
57354 as_fn_append ac_file_inputs " '$ac_f'"
57355 done
57357 # Let's still pretend it is `configure' which instantiates (i.e., don't
57358 # use $as_me), people would be surprised to read:
57359 # /* config.h. Generated by config.status. */
57360 configure_input='Generated from '`
57361 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
57362 `' by configure.'
57363 if test x"$ac_file" != x-; then
57364 configure_input="$ac_file. $configure_input"
57365 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
57366 $as_echo "$as_me: creating $ac_file" >&6;}
57368 # Neutralize special characters interpreted by sed in replacement strings.
57369 case $configure_input in #(
57370 *\&* | *\|* | *\\* )
57371 ac_sed_conf_input=`$as_echo "$configure_input" |
57372 sed 's/[\\\\&|]/\\\\&/g'`;; #(
57373 *) ac_sed_conf_input=$configure_input;;
57374 esac
57376 case $ac_tag in
57377 *:-:* | *:-) cat >"$ac_tmp/stdin" \
57378 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
57379 esac
57381 esac
57383 ac_dir=`$as_dirname -- "$ac_file" ||
57384 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57385 X"$ac_file" : 'X\(//\)[^/]' \| \
57386 X"$ac_file" : 'X\(//\)$' \| \
57387 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
57388 $as_echo X"$ac_file" |
57389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57390 s//\1/
57393 /^X\(\/\/\)[^/].*/{
57394 s//\1/
57397 /^X\(\/\/\)$/{
57398 s//\1/
57401 /^X\(\/\).*/{
57402 s//\1/
57405 s/.*/./; q'`
57406 as_dir="$ac_dir"; as_fn_mkdir_p
57407 ac_builddir=.
57409 case "$ac_dir" in
57410 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
57412 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
57413 # A ".." for each directory in $ac_dir_suffix.
57414 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
57415 case $ac_top_builddir_sub in
57416 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
57417 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
57418 esac ;;
57419 esac
57420 ac_abs_top_builddir=$ac_pwd
57421 ac_abs_builddir=$ac_pwd$ac_dir_suffix
57422 # for backward compatibility:
57423 ac_top_builddir=$ac_top_build_prefix
57425 case $srcdir in
57426 .) # We are building in place.
57427 ac_srcdir=.
57428 ac_top_srcdir=$ac_top_builddir_sub
57429 ac_abs_top_srcdir=$ac_pwd ;;
57430 [\\/]* | ?:[\\/]* ) # Absolute name.
57431 ac_srcdir=$srcdir$ac_dir_suffix;
57432 ac_top_srcdir=$srcdir
57433 ac_abs_top_srcdir=$srcdir ;;
57434 *) # Relative name.
57435 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
57436 ac_top_srcdir=$ac_top_build_prefix$srcdir
57437 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
57438 esac
57439 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
57442 case $ac_mode in
57445 # CONFIG_FILE
57448 case $INSTALL in
57449 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
57450 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
57451 esac
57452 ac_MKDIR_P=$MKDIR_P
57453 case $MKDIR_P in
57454 [\\/$]* | ?:[\\/]* ) ;;
57455 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
57456 esac
57457 _ACEOF
57459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57460 # If the template does not know about datarootdir, expand it.
57461 # FIXME: This hack should be removed a few years after 2.60.
57462 ac_datarootdir_hack=; ac_datarootdir_seen=
57463 ac_sed_dataroot='
57464 /datarootdir/ {
57468 /@datadir@/p
57469 /@docdir@/p
57470 /@infodir@/p
57471 /@localedir@/p
57472 /@mandir@/p'
57473 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
57474 *datarootdir*) ac_datarootdir_seen=yes;;
57475 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
57476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
57477 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
57478 _ACEOF
57479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57480 ac_datarootdir_hack='
57481 s&@datadir@&$datadir&g
57482 s&@docdir@&$docdir&g
57483 s&@infodir@&$infodir&g
57484 s&@localedir@&$localedir&g
57485 s&@mandir@&$mandir&g
57486 s&\\\${datarootdir}&$datarootdir&g' ;;
57487 esac
57488 _ACEOF
57490 # Neutralize VPATH when `$srcdir' = `.'.
57491 # Shell code in configure.ac might set extrasub.
57492 # FIXME: do we really want to maintain this feature?
57493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57494 ac_sed_extra="$ac_vpsub
57495 $extrasub
57496 _ACEOF
57497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57499 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
57500 s|@configure_input@|$ac_sed_conf_input|;t t
57501 s&@top_builddir@&$ac_top_builddir_sub&;t t
57502 s&@top_build_prefix@&$ac_top_build_prefix&;t t
57503 s&@srcdir@&$ac_srcdir&;t t
57504 s&@abs_srcdir@&$ac_abs_srcdir&;t t
57505 s&@top_srcdir@&$ac_top_srcdir&;t t
57506 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
57507 s&@builddir@&$ac_builddir&;t t
57508 s&@abs_builddir@&$ac_abs_builddir&;t t
57509 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
57510 s&@INSTALL@&$ac_INSTALL&;t t
57511 s&@MKDIR_P@&$ac_MKDIR_P&;t t
57512 $ac_datarootdir_hack
57514 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
57515 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
57517 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
57518 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
57519 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
57520 "$ac_tmp/out"`; test -z "$ac_out"; } &&
57521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
57522 which seems to be undefined. Please make sure it is defined" >&5
57523 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
57524 which seems to be undefined. Please make sure it is defined" >&2;}
57526 rm -f "$ac_tmp/stdin"
57527 case $ac_file in
57528 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
57529 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
57530 esac \
57531 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
57535 # CONFIG_HEADER
57537 if test x"$ac_file" != x-; then
57539 $as_echo "/* $configure_input */" \
57540 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
57541 } >"$ac_tmp/config.h" \
57542 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
57543 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
57544 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
57545 $as_echo "$as_me: $ac_file is unchanged" >&6;}
57546 else
57547 rm -f "$ac_file"
57548 mv "$ac_tmp/config.h" "$ac_file" \
57549 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
57551 else
57552 $as_echo "/* $configure_input */" \
57553 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
57554 || as_fn_error $? "could not create -" "$LINENO" 5
57556 # Compute "$ac_file"'s index in $config_headers.
57557 _am_arg="$ac_file"
57558 _am_stamp_count=1
57559 for _am_header in $config_headers :; do
57560 case $_am_header in
57561 $_am_arg | $_am_arg:* )
57562 break ;;
57564 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
57565 esac
57566 done
57567 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
57568 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57569 X"$_am_arg" : 'X\(//\)[^/]' \| \
57570 X"$_am_arg" : 'X\(//\)$' \| \
57571 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
57572 $as_echo X"$_am_arg" |
57573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57574 s//\1/
57577 /^X\(\/\/\)[^/].*/{
57578 s//\1/
57581 /^X\(\/\/\)$/{
57582 s//\1/
57585 /^X\(\/\).*/{
57586 s//\1/
57589 s/.*/./; q'`/stamp-h$_am_stamp_count
57592 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
57593 $as_echo "$as_me: executing $ac_file commands" >&6;}
57595 esac
57598 case $ac_file$ac_mode in
57599 "default-1":C)
57600 # Only add multilib support code if we just rebuilt the top-level
57601 # Makefile.
57602 case " $CONFIG_FILES " in
57603 *" Makefile "*)
57604 ac_file=Makefile . ${multi_basedir}/config-ml.in
57606 esac ;;
57607 "libtool":C)
57609 # See if we are running on zsh, and set the options which allow our
57610 # commands through without removal of \ escapes.
57611 if test -n "${ZSH_VERSION+set}" ; then
57612 setopt NO_GLOB_SUBST
57615 cfgfile="${ofile}T"
57616 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
57617 $RM "$cfgfile"
57619 cat <<_LT_EOF >> "$cfgfile"
57620 #! $SHELL
57622 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
57623 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
57624 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
57625 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
57627 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
57628 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
57629 # Written by Gordon Matzigkeit, 1996
57631 # This file is part of GNU Libtool.
57633 # GNU Libtool is free software; you can redistribute it and/or
57634 # modify it under the terms of the GNU General Public License as
57635 # published by the Free Software Foundation; either version 2 of
57636 # the License, or (at your option) any later version.
57638 # As a special exception to the GNU General Public License,
57639 # if you distribute this file as part of a program or library that
57640 # is built using GNU Libtool, you may include this file under the
57641 # same distribution terms that you use for the rest of that program.
57643 # GNU Libtool is distributed in the hope that it will be useful,
57644 # but WITHOUT ANY WARRANTY; without even the implied warranty of
57645 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
57646 # GNU General Public License for more details.
57648 # You should have received a copy of the GNU General Public License
57649 # along with GNU Libtool; see the file COPYING. If not, a copy
57650 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
57651 # obtained by writing to the Free Software Foundation, Inc.,
57652 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
57655 # The names of the tagged configurations supported by this script.
57656 available_tags="CXX "
57658 # ### BEGIN LIBTOOL CONFIG
57660 # Which release of libtool.m4 was used?
57661 macro_version=$macro_version
57662 macro_revision=$macro_revision
57664 # Whether or not to build shared libraries.
57665 build_libtool_libs=$enable_shared
57667 # Whether or not to build static libraries.
57668 build_old_libs=$enable_static
57670 # What type of objects to build.
57671 pic_mode=$pic_mode
57673 # Whether or not to optimize for fast installation.
57674 fast_install=$enable_fast_install
57676 # Shell to use when invoking shell scripts.
57677 SHELL=$lt_SHELL
57679 # An echo program that protects backslashes.
57680 ECHO=$lt_ECHO
57682 # The host system.
57683 host_alias=$host_alias
57684 host=$host
57685 host_os=$host_os
57687 # The build system.
57688 build_alias=$build_alias
57689 build=$build
57690 build_os=$build_os
57692 # A sed program that does not truncate output.
57693 SED=$lt_SED
57695 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
57696 Xsed="\$SED -e 1s/^X//"
57698 # A grep program that handles long lines.
57699 GREP=$lt_GREP
57701 # An ERE matcher.
57702 EGREP=$lt_EGREP
57704 # A literal string matcher.
57705 FGREP=$lt_FGREP
57707 # A BSD- or MS-compatible name lister.
57708 NM=$lt_NM
57710 # Whether we need soft or hard links.
57711 LN_S=$lt_LN_S
57713 # What is the maximum length of a command?
57714 max_cmd_len=$max_cmd_len
57716 # Object file suffix (normally "o").
57717 objext=$ac_objext
57719 # Executable file suffix (normally "").
57720 exeext=$exeext
57722 # whether the shell understands "unset".
57723 lt_unset=$lt_unset
57725 # turn spaces into newlines.
57726 SP2NL=$lt_lt_SP2NL
57728 # turn newlines into spaces.
57729 NL2SP=$lt_lt_NL2SP
57731 # An object symbol dumper.
57732 OBJDUMP=$lt_OBJDUMP
57734 # Method to check whether dependent libraries are shared objects.
57735 deplibs_check_method=$lt_deplibs_check_method
57737 # Command to use when deplibs_check_method == "file_magic".
57738 file_magic_cmd=$lt_file_magic_cmd
57740 # The archiver.
57741 AR=$lt_AR
57742 AR_FLAGS=$lt_AR_FLAGS
57744 # A symbol stripping program.
57745 STRIP=$lt_STRIP
57747 # Commands used to install an old-style archive.
57748 RANLIB=$lt_RANLIB
57749 old_postinstall_cmds=$lt_old_postinstall_cmds
57750 old_postuninstall_cmds=$lt_old_postuninstall_cmds
57752 # Whether to use a lock for old archive extraction.
57753 lock_old_archive_extraction=$lock_old_archive_extraction
57755 # A C compiler.
57756 LTCC=$lt_CC
57758 # LTCC compiler flags.
57759 LTCFLAGS=$lt_CFLAGS
57761 # Take the output of nm and produce a listing of raw symbols and C names.
57762 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
57764 # Transform the output of nm in a proper C declaration.
57765 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
57767 # Transform the output of nm in a C name address pair.
57768 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
57770 # Transform the output of nm in a C name address pair when lib prefix is needed.
57771 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
57773 # The name of the directory that contains temporary libtool files.
57774 objdir=$objdir
57776 # Used to examine libraries when file_magic_cmd begins with "file".
57777 MAGIC_CMD=$MAGIC_CMD
57779 # Must we lock files when doing compilation?
57780 need_locks=$lt_need_locks
57782 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
57783 DSYMUTIL=$lt_DSYMUTIL
57785 # Tool to change global to local symbols on Mac OS X.
57786 NMEDIT=$lt_NMEDIT
57788 # Tool to manipulate fat objects and archives on Mac OS X.
57789 LIPO=$lt_LIPO
57791 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
57792 OTOOL=$lt_OTOOL
57794 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
57795 OTOOL64=$lt_OTOOL64
57797 # Old archive suffix (normally "a").
57798 libext=$libext
57800 # Shared library suffix (normally ".so").
57801 shrext_cmds=$lt_shrext_cmds
57803 # The commands to extract the exported symbol list from a shared archive.
57804 extract_expsyms_cmds=$lt_extract_expsyms_cmds
57806 # Variables whose values should be saved in libtool wrapper scripts and
57807 # restored at link time.
57808 variables_saved_for_relink=$lt_variables_saved_for_relink
57810 # Do we need the "lib" prefix for modules?
57811 need_lib_prefix=$need_lib_prefix
57813 # Do we need a version for libraries?
57814 need_version=$need_version
57816 # Library versioning type.
57817 version_type=$version_type
57819 # Shared library runtime path variable.
57820 runpath_var=$runpath_var
57822 # Shared library path variable.
57823 shlibpath_var=$shlibpath_var
57825 # Is shlibpath searched before the hard-coded library search path?
57826 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
57828 # Format of library name prefix.
57829 libname_spec=$lt_libname_spec
57831 # List of archive names. First name is the real one, the rest are links.
57832 # The last name is the one that the linker finds with -lNAME
57833 library_names_spec=$lt_library_names_spec
57835 # The coded name of the library, if different from the real name.
57836 soname_spec=$lt_soname_spec
57838 # Permission mode override for installation of shared libraries.
57839 install_override_mode=$lt_install_override_mode
57841 # Command to use after installation of a shared archive.
57842 postinstall_cmds=$lt_postinstall_cmds
57844 # Command to use after uninstallation of a shared archive.
57845 postuninstall_cmds=$lt_postuninstall_cmds
57847 # Commands used to finish a libtool library installation in a directory.
57848 finish_cmds=$lt_finish_cmds
57850 # As "finish_cmds", except a single script fragment to be evaled but
57851 # not shown.
57852 finish_eval=$lt_finish_eval
57854 # Whether we should hardcode library paths into libraries.
57855 hardcode_into_libs=$hardcode_into_libs
57857 # Compile-time system search path for libraries.
57858 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
57860 # Run-time system search path for libraries.
57861 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
57863 # Whether dlopen is supported.
57864 dlopen_support=$enable_dlopen
57866 # Whether dlopen of programs is supported.
57867 dlopen_self=$enable_dlopen_self
57869 # Whether dlopen of statically linked programs is supported.
57870 dlopen_self_static=$enable_dlopen_self_static
57872 # Commands to strip libraries.
57873 old_striplib=$lt_old_striplib
57874 striplib=$lt_striplib
57877 # The linker used to build libraries.
57878 LD=$lt_LD
57880 # How to create reloadable object files.
57881 reload_flag=$lt_reload_flag
57882 reload_cmds=$lt_reload_cmds
57884 # Commands used to build an old-style archive.
57885 old_archive_cmds=$lt_old_archive_cmds
57887 # A language specific compiler.
57888 CC=$lt_compiler
57890 # Is the compiler the GNU compiler?
57891 with_gcc=$GCC
57893 # Compiler flag to turn off builtin functions.
57894 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
57896 # How to pass a linker flag through the compiler.
57897 wl=$lt_lt_prog_compiler_wl
57899 # Additional compiler flags for building library objects.
57900 pic_flag=$lt_lt_prog_compiler_pic
57902 # Compiler flag to prevent dynamic linking.
57903 link_static_flag=$lt_lt_prog_compiler_static
57905 # Does compiler simultaneously support -c and -o options?
57906 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
57908 # Whether or not to add -lc for building shared libraries.
57909 build_libtool_need_lc=$archive_cmds_need_lc
57911 # Whether or not to disallow shared libs when runtime libs are static.
57912 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
57914 # Compiler flag to allow reflexive dlopens.
57915 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
57917 # Compiler flag to generate shared objects directly from archives.
57918 whole_archive_flag_spec=$lt_whole_archive_flag_spec
57920 # Whether the compiler copes with passing no objects directly.
57921 compiler_needs_object=$lt_compiler_needs_object
57923 # Create an old-style archive from a shared archive.
57924 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
57926 # Create a temporary old-style archive to link instead of a shared archive.
57927 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
57929 # Commands used to build a shared archive.
57930 archive_cmds=$lt_archive_cmds
57931 archive_expsym_cmds=$lt_archive_expsym_cmds
57933 # Commands used to build a loadable module if different from building
57934 # a shared archive.
57935 module_cmds=$lt_module_cmds
57936 module_expsym_cmds=$lt_module_expsym_cmds
57938 # Whether we are building with GNU ld or not.
57939 with_gnu_ld=$lt_with_gnu_ld
57941 # Flag that allows shared libraries with undefined symbols to be built.
57942 allow_undefined_flag=$lt_allow_undefined_flag
57944 # Flag that enforces no undefined symbols.
57945 no_undefined_flag=$lt_no_undefined_flag
57947 # Flag to hardcode \$libdir into a binary during linking.
57948 # This must work even if \$libdir does not exist
57949 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
57951 # If ld is used when linking, flag to hardcode \$libdir into a binary
57952 # during linking. This must work even if \$libdir does not exist.
57953 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
57955 # Whether we need a single "-rpath" flag with a separated argument.
57956 hardcode_libdir_separator=$lt_hardcode_libdir_separator
57958 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
57959 # DIR into the resulting binary.
57960 hardcode_direct=$hardcode_direct
57962 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
57963 # DIR into the resulting binary and the resulting library dependency is
57964 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
57965 # library is relocated.
57966 hardcode_direct_absolute=$hardcode_direct_absolute
57968 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
57969 # into the resulting binary.
57970 hardcode_minus_L=$hardcode_minus_L
57972 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
57973 # into the resulting binary.
57974 hardcode_shlibpath_var=$hardcode_shlibpath_var
57976 # Set to "yes" if building a shared library automatically hardcodes DIR
57977 # into the library and all subsequent libraries and executables linked
57978 # against it.
57979 hardcode_automatic=$hardcode_automatic
57981 # Set to yes if linker adds runtime paths of dependent libraries
57982 # to runtime path list.
57983 inherit_rpath=$inherit_rpath
57985 # Whether libtool must link a program against all its dependency libraries.
57986 link_all_deplibs=$link_all_deplibs
57988 # Fix the shell variable \$srcfile for the compiler.
57989 fix_srcfile_path=$lt_fix_srcfile_path
57991 # Set to "yes" if exported symbols are required.
57992 always_export_symbols=$always_export_symbols
57994 # The commands to list exported symbols.
57995 export_symbols_cmds=$lt_export_symbols_cmds
57997 # Symbols that should not be listed in the preloaded symbols.
57998 exclude_expsyms=$lt_exclude_expsyms
58000 # Symbols that must always be exported.
58001 include_expsyms=$lt_include_expsyms
58003 # Commands necessary for linking programs (against libraries) with templates.
58004 prelink_cmds=$lt_prelink_cmds
58006 # Specify filename containing input files.
58007 file_list_spec=$lt_file_list_spec
58009 # How to hardcode a shared library path into an executable.
58010 hardcode_action=$hardcode_action
58012 # The directories searched by this compiler when creating a shared library.
58013 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
58015 # Dependencies to place before and after the objects being linked to
58016 # create a shared library.
58017 predep_objects=$lt_predep_objects
58018 postdep_objects=$lt_postdep_objects
58019 predeps=$lt_predeps
58020 postdeps=$lt_postdeps
58022 # The library search path used internally by the compiler when linking
58023 # a shared library.
58024 compiler_lib_search_path=$lt_compiler_lib_search_path
58026 # ### END LIBTOOL CONFIG
58028 _LT_EOF
58030 case $host_os in
58031 aix3*)
58032 cat <<\_LT_EOF >> "$cfgfile"
58033 # AIX sometimes has problems with the GCC collect2 program. For some
58034 # reason, if we set the COLLECT_NAMES environment variable, the problems
58035 # vanish in a puff of smoke.
58036 if test "X${COLLECT_NAMES+set}" != Xset; then
58037 COLLECT_NAMES=
58038 export COLLECT_NAMES
58040 _LT_EOF
58042 esac
58045 ltmain="$ac_aux_dir/ltmain.sh"
58048 # We use sed instead of cat because bash on DJGPP gets confused if
58049 # if finds mixed CR/LF and LF-only lines. Since sed operates in
58050 # text mode, it properly converts lines to CR/LF. This bash problem
58051 # is reportedly fixed, but why not run on old versions too?
58052 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
58053 || (rm -f "$cfgfile"; exit 1)
58055 case $xsi_shell in
58056 yes)
58057 cat << \_LT_EOF >> "$cfgfile"
58059 # func_dirname file append nondir_replacement
58060 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
58061 # otherwise set result to NONDIR_REPLACEMENT.
58062 func_dirname ()
58064 case ${1} in
58065 */*) func_dirname_result="${1%/*}${2}" ;;
58066 * ) func_dirname_result="${3}" ;;
58067 esac
58070 # func_basename file
58071 func_basename ()
58073 func_basename_result="${1##*/}"
58076 # func_dirname_and_basename file append nondir_replacement
58077 # perform func_basename and func_dirname in a single function
58078 # call:
58079 # dirname: Compute the dirname of FILE. If nonempty,
58080 # add APPEND to the result, otherwise set result
58081 # to NONDIR_REPLACEMENT.
58082 # value returned in "$func_dirname_result"
58083 # basename: Compute filename of FILE.
58084 # value retuned in "$func_basename_result"
58085 # Implementation must be kept synchronized with func_dirname
58086 # and func_basename. For efficiency, we do not delegate to
58087 # those functions but instead duplicate the functionality here.
58088 func_dirname_and_basename ()
58090 case ${1} in
58091 */*) func_dirname_result="${1%/*}${2}" ;;
58092 * ) func_dirname_result="${3}" ;;
58093 esac
58094 func_basename_result="${1##*/}"
58097 # func_stripname prefix suffix name
58098 # strip PREFIX and SUFFIX off of NAME.
58099 # PREFIX and SUFFIX must not contain globbing or regex special
58100 # characters, hashes, percent signs, but SUFFIX may contain a leading
58101 # dot (in which case that matches only a dot).
58102 func_stripname ()
58104 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
58105 # positional parameters, so assign one to ordinary parameter first.
58106 func_stripname_result=${3}
58107 func_stripname_result=${func_stripname_result#"${1}"}
58108 func_stripname_result=${func_stripname_result%"${2}"}
58111 # func_opt_split
58112 func_opt_split ()
58114 func_opt_split_opt=${1%%=*}
58115 func_opt_split_arg=${1#*=}
58118 # func_lo2o object
58119 func_lo2o ()
58121 case ${1} in
58122 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
58123 *) func_lo2o_result=${1} ;;
58124 esac
58127 # func_xform libobj-or-source
58128 func_xform ()
58130 func_xform_result=${1%.*}.lo
58133 # func_arith arithmetic-term...
58134 func_arith ()
58136 func_arith_result=$(( $* ))
58139 # func_len string
58140 # STRING may not start with a hyphen.
58141 func_len ()
58143 func_len_result=${#1}
58146 _LT_EOF
58148 *) # Bourne compatible functions.
58149 cat << \_LT_EOF >> "$cfgfile"
58151 # func_dirname file append nondir_replacement
58152 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
58153 # otherwise set result to NONDIR_REPLACEMENT.
58154 func_dirname ()
58156 # Extract subdirectory from the argument.
58157 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
58158 if test "X$func_dirname_result" = "X${1}"; then
58159 func_dirname_result="${3}"
58160 else
58161 func_dirname_result="$func_dirname_result${2}"
58165 # func_basename file
58166 func_basename ()
58168 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
58172 # func_stripname prefix suffix name
58173 # strip PREFIX and SUFFIX off of NAME.
58174 # PREFIX and SUFFIX must not contain globbing or regex special
58175 # characters, hashes, percent signs, but SUFFIX may contain a leading
58176 # dot (in which case that matches only a dot).
58177 # func_strip_suffix prefix name
58178 func_stripname ()
58180 case ${2} in
58181 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
58182 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
58183 esac
58186 # sed scripts:
58187 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
58188 my_sed_long_arg='1s/^-[^=]*=//'
58190 # func_opt_split
58191 func_opt_split ()
58193 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
58194 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
58197 # func_lo2o object
58198 func_lo2o ()
58200 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
58203 # func_xform libobj-or-source
58204 func_xform ()
58206 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
58209 # func_arith arithmetic-term...
58210 func_arith ()
58212 func_arith_result=`expr "$@"`
58215 # func_len string
58216 # STRING may not start with a hyphen.
58217 func_len ()
58219 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
58222 _LT_EOF
58223 esac
58225 case $lt_shell_append in
58226 yes)
58227 cat << \_LT_EOF >> "$cfgfile"
58229 # func_append var value
58230 # Append VALUE to the end of shell variable VAR.
58231 func_append ()
58233 eval "$1+=\$2"
58235 _LT_EOF
58238 cat << \_LT_EOF >> "$cfgfile"
58240 # func_append var value
58241 # Append VALUE to the end of shell variable VAR.
58242 func_append ()
58244 eval "$1=\$$1\$2"
58247 _LT_EOF
58249 esac
58252 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
58253 || (rm -f "$cfgfile"; exit 1)
58255 mv -f "$cfgfile" "$ofile" ||
58256 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
58257 chmod +x "$ofile"
58260 cat <<_LT_EOF >> "$ofile"
58262 # ### BEGIN LIBTOOL TAG CONFIG: CXX
58264 # The linker used to build libraries.
58265 LD=$lt_LD_CXX
58267 # How to create reloadable object files.
58268 reload_flag=$lt_reload_flag_CXX
58269 reload_cmds=$lt_reload_cmds_CXX
58271 # Commands used to build an old-style archive.
58272 old_archive_cmds=$lt_old_archive_cmds_CXX
58274 # A language specific compiler.
58275 CC=$lt_compiler_CXX
58277 # Is the compiler the GNU compiler?
58278 with_gcc=$GCC_CXX
58280 # Compiler flag to turn off builtin functions.
58281 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
58283 # How to pass a linker flag through the compiler.
58284 wl=$lt_lt_prog_compiler_wl_CXX
58286 # Additional compiler flags for building library objects.
58287 pic_flag=$lt_lt_prog_compiler_pic_CXX
58289 # Compiler flag to prevent dynamic linking.
58290 link_static_flag=$lt_lt_prog_compiler_static_CXX
58292 # Does compiler simultaneously support -c and -o options?
58293 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
58295 # Whether or not to add -lc for building shared libraries.
58296 build_libtool_need_lc=$archive_cmds_need_lc_CXX
58298 # Whether or not to disallow shared libs when runtime libs are static.
58299 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
58301 # Compiler flag to allow reflexive dlopens.
58302 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
58304 # Compiler flag to generate shared objects directly from archives.
58305 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
58307 # Whether the compiler copes with passing no objects directly.
58308 compiler_needs_object=$lt_compiler_needs_object_CXX
58310 # Create an old-style archive from a shared archive.
58311 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
58313 # Create a temporary old-style archive to link instead of a shared archive.
58314 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
58316 # Commands used to build a shared archive.
58317 archive_cmds=$lt_archive_cmds_CXX
58318 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
58320 # Commands used to build a loadable module if different from building
58321 # a shared archive.
58322 module_cmds=$lt_module_cmds_CXX
58323 module_expsym_cmds=$lt_module_expsym_cmds_CXX
58325 # Whether we are building with GNU ld or not.
58326 with_gnu_ld=$lt_with_gnu_ld_CXX
58328 # Flag that allows shared libraries with undefined symbols to be built.
58329 allow_undefined_flag=$lt_allow_undefined_flag_CXX
58331 # Flag that enforces no undefined symbols.
58332 no_undefined_flag=$lt_no_undefined_flag_CXX
58334 # Flag to hardcode \$libdir into a binary during linking.
58335 # This must work even if \$libdir does not exist
58336 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
58338 # If ld is used when linking, flag to hardcode \$libdir into a binary
58339 # during linking. This must work even if \$libdir does not exist.
58340 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
58342 # Whether we need a single "-rpath" flag with a separated argument.
58343 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
58345 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
58346 # DIR into the resulting binary.
58347 hardcode_direct=$hardcode_direct_CXX
58349 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
58350 # DIR into the resulting binary and the resulting library dependency is
58351 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
58352 # library is relocated.
58353 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
58355 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
58356 # into the resulting binary.
58357 hardcode_minus_L=$hardcode_minus_L_CXX
58359 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
58360 # into the resulting binary.
58361 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
58363 # Set to "yes" if building a shared library automatically hardcodes DIR
58364 # into the library and all subsequent libraries and executables linked
58365 # against it.
58366 hardcode_automatic=$hardcode_automatic_CXX
58368 # Set to yes if linker adds runtime paths of dependent libraries
58369 # to runtime path list.
58370 inherit_rpath=$inherit_rpath_CXX
58372 # Whether libtool must link a program against all its dependency libraries.
58373 link_all_deplibs=$link_all_deplibs_CXX
58375 # Fix the shell variable \$srcfile for the compiler.
58376 fix_srcfile_path=$lt_fix_srcfile_path_CXX
58378 # Set to "yes" if exported symbols are required.
58379 always_export_symbols=$always_export_symbols_CXX
58381 # The commands to list exported symbols.
58382 export_symbols_cmds=$lt_export_symbols_cmds_CXX
58384 # Symbols that should not be listed in the preloaded symbols.
58385 exclude_expsyms=$lt_exclude_expsyms_CXX
58387 # Symbols that must always be exported.
58388 include_expsyms=$lt_include_expsyms_CXX
58390 # Commands necessary for linking programs (against libraries) with templates.
58391 prelink_cmds=$lt_prelink_cmds_CXX
58393 # Specify filename containing input files.
58394 file_list_spec=$lt_file_list_spec_CXX
58396 # How to hardcode a shared library path into an executable.
58397 hardcode_action=$hardcode_action_CXX
58399 # The directories searched by this compiler when creating a shared library.
58400 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
58402 # Dependencies to place before and after the objects being linked to
58403 # create a shared library.
58404 predep_objects=$lt_predep_objects_CXX
58405 postdep_objects=$lt_postdep_objects_CXX
58406 predeps=$lt_predeps_CXX
58407 postdeps=$lt_postdeps_CXX
58409 # The library search path used internally by the compiler when linking
58410 # a shared library.
58411 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
58413 # ### END LIBTOOL TAG CONFIG: CXX
58414 _LT_EOF
58417 "scripts/testsuite_flags":F) chmod +x scripts/testsuite_flags ;;
58418 "scripts/extract_symvers":F) chmod +x scripts/extract_symvers ;;
58419 "include/Makefile":F) cat > vpsed$$ << \_EOF
58420 s!`test -f '$<' || echo '$(srcdir)/'`!!
58421 _EOF
58422 sed -f vpsed$$ $ac_file > tmp$$
58423 mv tmp$$ $ac_file
58424 rm vpsed$$
58425 echo 'MULTISUBDIR =' >> $ac_file
58426 ml_norecursion=yes
58427 . ${multi_basedir}/config-ml.in
58428 { ml_norecursion=; unset ml_norecursion;}
58430 "libsupc++/Makefile":F) cat > vpsed$$ << \_EOF
58431 s!`test -f '$<' || echo '$(srcdir)/'`!!
58432 _EOF
58433 sed -f vpsed$$ $ac_file > tmp$$
58434 mv tmp$$ $ac_file
58435 rm vpsed$$
58436 echo 'MULTISUBDIR =' >> $ac_file
58437 ml_norecursion=yes
58438 . ${multi_basedir}/config-ml.in
58439 { ml_norecursion=; unset ml_norecursion;}
58441 "src/Makefile":F) cat > vpsed$$ << \_EOF
58442 s!`test -f '$<' || echo '$(srcdir)/'`!!
58443 _EOF
58444 sed -f vpsed$$ $ac_file > tmp$$
58445 mv tmp$$ $ac_file
58446 rm vpsed$$
58447 echo 'MULTISUBDIR =' >> $ac_file
58448 ml_norecursion=yes
58449 . ${multi_basedir}/config-ml.in
58450 { ml_norecursion=; unset ml_norecursion;}
58452 "src/c++98/Makefile":F) cat > vpsed$$ << \_EOF
58453 s!`test -f '$<' || echo '$(srcdir)/'`!!
58454 _EOF
58455 sed -f vpsed$$ $ac_file > tmp$$
58456 mv tmp$$ $ac_file
58457 rm vpsed$$
58458 echo 'MULTISUBDIR =' >> $ac_file
58459 ml_norecursion=yes
58460 . ${multi_basedir}/config-ml.in
58461 { ml_norecursion=; unset ml_norecursion;}
58463 "src/c++11/Makefile":F) cat > vpsed$$ << \_EOF
58464 s!`test -f '$<' || echo '$(srcdir)/'`!!
58465 _EOF
58466 sed -f vpsed$$ $ac_file > tmp$$
58467 mv tmp$$ $ac_file
58468 rm vpsed$$
58469 echo 'MULTISUBDIR =' >> $ac_file
58470 ml_norecursion=yes
58471 . ${multi_basedir}/config-ml.in
58472 { ml_norecursion=; unset ml_norecursion;}
58474 "src/c++17/Makefile":F) cat > vpsed$$ << \_EOF
58475 s!`test -f '$<' || echo '$(srcdir)/'`!!
58476 _EOF
58477 sed -f vpsed$$ $ac_file > tmp$$
58478 mv tmp$$ $ac_file
58479 rm vpsed$$
58480 echo 'MULTISUBDIR =' >> $ac_file
58481 ml_norecursion=yes
58482 . ${multi_basedir}/config-ml.in
58483 { ml_norecursion=; unset ml_norecursion;}
58485 "src/c++20/Makefile":F) cat > vpsed$$ << \_EOF
58486 s!`test -f '$<' || echo '$(srcdir)/'`!!
58487 _EOF
58488 sed -f vpsed$$ $ac_file > tmp$$
58489 mv tmp$$ $ac_file
58490 rm vpsed$$
58491 echo 'MULTISUBDIR =' >> $ac_file
58492 ml_norecursion=yes
58493 . ${multi_basedir}/config-ml.in
58494 { ml_norecursion=; unset ml_norecursion;}
58496 "src/c++23/Makefile":F) cat > vpsed$$ << \_EOF
58497 s!`test -f '$<' || echo '$(srcdir)/'`!!
58498 _EOF
58499 sed -f vpsed$$ $ac_file > tmp$$
58500 mv tmp$$ $ac_file
58501 rm vpsed$$
58502 echo 'MULTISUBDIR =' >> $ac_file
58503 ml_norecursion=yes
58504 . ${multi_basedir}/config-ml.in
58505 { ml_norecursion=; unset ml_norecursion;}
58507 "src/c++26/Makefile":F) cat > vpsed$$ << \_EOF
58508 s!`test -f '$<' || echo '$(srcdir)/'`!!
58509 _EOF
58510 sed -f vpsed$$ $ac_file > tmp$$
58511 mv tmp$$ $ac_file
58512 rm vpsed$$
58513 echo 'MULTISUBDIR =' >> $ac_file
58514 ml_norecursion=yes
58515 . ${multi_basedir}/config-ml.in
58516 { ml_norecursion=; unset ml_norecursion;}
58518 "src/filesystem/Makefile":F) cat > vpsed$$ << \_EOF
58519 s!`test -f '$<' || echo '$(srcdir)/'`!!
58520 _EOF
58521 sed -f vpsed$$ $ac_file > tmp$$
58522 mv tmp$$ $ac_file
58523 rm vpsed$$
58524 echo 'MULTISUBDIR =' >> $ac_file
58525 ml_norecursion=yes
58526 . ${multi_basedir}/config-ml.in
58527 { ml_norecursion=; unset ml_norecursion;}
58529 "src/libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
58530 s!`test -f '$<' || echo '$(srcdir)/'`!!
58531 _EOF
58532 sed -f vpsed$$ $ac_file > tmp$$
58533 mv tmp$$ $ac_file
58534 rm vpsed$$
58535 echo 'MULTISUBDIR =' >> $ac_file
58536 ml_norecursion=yes
58537 . ${multi_basedir}/config-ml.in
58538 { ml_norecursion=; unset ml_norecursion;}
58540 "src/experimental/Makefile":F) cat > vpsed$$ << \_EOF
58541 s!`test -f '$<' || echo '$(srcdir)/'`!!
58542 _EOF
58543 sed -f vpsed$$ $ac_file > tmp$$
58544 mv tmp$$ $ac_file
58545 rm vpsed$$
58546 echo 'MULTISUBDIR =' >> $ac_file
58547 ml_norecursion=yes
58548 . ${multi_basedir}/config-ml.in
58549 { ml_norecursion=; unset ml_norecursion;}
58551 "doc/Makefile":F) cat > vpsed$$ << \_EOF
58552 s!`test -f '$<' || echo '$(srcdir)/'`!!
58553 _EOF
58554 sed -f vpsed$$ $ac_file > tmp$$
58555 mv tmp$$ $ac_file
58556 rm vpsed$$
58557 echo 'MULTISUBDIR =' >> $ac_file
58558 ml_norecursion=yes
58559 . ${multi_basedir}/config-ml.in
58560 { ml_norecursion=; unset ml_norecursion;}
58562 "po/Makefile":F) cat > vpsed$$ << \_EOF
58563 s!`test -f '$<' || echo '$(srcdir)/'`!!
58564 _EOF
58565 sed -f vpsed$$ $ac_file > tmp$$
58566 mv tmp$$ $ac_file
58567 rm vpsed$$
58568 echo 'MULTISUBDIR =' >> $ac_file
58569 ml_norecursion=yes
58570 . ${multi_basedir}/config-ml.in
58571 { ml_norecursion=; unset ml_norecursion;}
58573 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
58574 s!`test -f '$<' || echo '$(srcdir)/'`!!
58575 _EOF
58576 sed -f vpsed$$ $ac_file > tmp$$
58577 mv tmp$$ $ac_file
58578 rm vpsed$$
58579 echo 'MULTISUBDIR =' >> $ac_file
58580 ml_norecursion=yes
58581 . ${multi_basedir}/config-ml.in
58582 { ml_norecursion=; unset ml_norecursion;}
58584 "python/Makefile":F) cat > vpsed$$ << \_EOF
58585 s!`test -f '$<' || echo '$(srcdir)/'`!!
58586 _EOF
58587 sed -f vpsed$$ $ac_file > tmp$$
58588 mv tmp$$ $ac_file
58589 rm vpsed$$
58590 echo 'MULTISUBDIR =' >> $ac_file
58591 ml_norecursion=yes
58592 . ${multi_basedir}/config-ml.in
58593 { ml_norecursion=; unset ml_norecursion;}
58595 "generate-headers":C) (cd include && ${MAKE-make} pch_build= ) ;;
58597 esac
58598 done # for ac_tag
58601 as_fn_exit 0
58602 _ACEOF
58603 ac_clean_files=$ac_clean_files_save
58605 test $ac_write_fail = 0 ||
58606 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
58609 # configure is writing to config.log, and then calls config.status.
58610 # config.status does its own redirection, appending to config.log.
58611 # Unfortunately, on DOS this fails, as config.log is still kept open
58612 # by configure, so config.status won't be able to write to it; its
58613 # output is simply discarded. So we exec the FD to /dev/null,
58614 # effectively closing config.log, so it can be properly (re)opened and
58615 # appended to by config.status. When coming back to configure, we
58616 # need to make the FD available again.
58617 if test "$no_create" != yes; then
58618 ac_cs_success=:
58619 ac_config_status_args=
58620 test "$silent" = yes &&
58621 ac_config_status_args="$ac_config_status_args --quiet"
58622 exec 5>/dev/null
58623 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
58624 exec 5>>config.log
58625 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
58626 # would make configure fail if this is the last instruction.
58627 $ac_cs_success || as_fn_exit 1
58629 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
58630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
58631 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}