strub: drop nonaliased parm from build_ref_type_for [PR113394]
[official-gcc.git] / libstdc++-v3 / configure
blob65ce679f1bdd01e51a1b71b1b79f54dc2626dd64
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 ENABLE_DARWIN_AT_RPATH_FALSE
793 ENABLE_DARWIN_AT_RPATH_TRUE
794 enable_static
795 enable_shared
796 lt_host_flags
797 CXXCPP
798 OTOOL64
799 OTOOL
800 LIPO
801 NMEDIT
802 DSYMUTIL
803 OBJDUMP
805 ac_ct_DUMPBIN
806 DUMPBIN
808 FGREP
810 LIBTOOL
811 EGREP
812 GREP
814 MAINT
815 MAINTAINER_MODE_FALSE
816 MAINTAINER_MODE_TRUE
817 RANLIB
820 LN_S
821 toplevel_srcdir
822 toplevel_builddir
823 glibcxx_srcdir
824 glibcxx_builddir
825 ac_ct_CXX
826 CXXFLAGS
828 OBJEXT
829 EXEEXT
830 ac_ct_CC
831 CPPFLAGS
832 LDFLAGS
833 CFLAGS
835 AM_BACKSLASH
836 AM_DEFAULT_VERBOSITY
837 AM_DEFAULT_V
838 AM_V
839 am__untar
840 am__tar
841 AMTAR
842 am__leading_dot
843 SET_MAKE
845 mkdir_p
846 MKDIR_P
847 INSTALL_STRIP_PROGRAM
848 STRIP
849 install_sh
850 MAKEINFO
851 AUTOHEADER
852 AUTOMAKE
853 AUTOCONF
854 ACLOCAL
855 VERSION
856 PACKAGE
857 CYGPATH_W
858 am__isrc
859 INSTALL_DATA
860 INSTALL_SCRIPT
861 INSTALL_PROGRAM
862 target_os
863 target_vendor
864 target_cpu
865 target
866 host_os
867 host_vendor
868 host_cpu
869 host
870 build_os
871 build_vendor
872 build_cpu
873 build
874 multi_basedir
875 target_alias
876 host_alias
877 build_alias
878 LIBS
879 ECHO_T
880 ECHO_N
881 ECHO_C
882 DEFS
883 mandir
884 localedir
885 libdir
886 psdir
887 pdfdir
888 dvidir
889 htmldir
890 infodir
891 docdir
892 oldincludedir
893 includedir
894 localstatedir
895 sharedstatedir
896 sysconfdir
897 datadir
898 datarootdir
899 libexecdir
900 sbindir
901 bindir
902 program_transform_name
903 prefix
904 exec_prefix
905 PACKAGE_URL
906 PACKAGE_BUGREPORT
907 PACKAGE_STRING
908 PACKAGE_VERSION
909 PACKAGE_TARNAME
910 PACKAGE_NAME
911 PATH_SEPARATOR
912 SHELL'
913 ac_subst_files=''
914 ac_user_opts='
915 enable_option_checking
916 enable_multilib
917 enable_silent_rules
918 enable_largefile
919 with_target_subdir
920 with_cross_host
921 with_newlib
922 enable_maintainer_mode
923 enable_shared
924 enable_static
925 with_pic
926 enable_fast_install
927 with_gnu_ld
928 enable_libtool_lock
929 enable_darwin_at_rpath
930 enable_hosted_libstdcxx
931 enable_libstdcxx_hosted
932 enable_libstdcxx_verbose
933 enable_libstdcxx_pch
934 with_libstdcxx_lock_policy
935 enable_cstdio
936 enable_clocale
937 enable_nls
938 enable_libstdcxx_allocator
939 enable_cheaders_obsolete
940 enable_cheaders
941 enable_long_long
942 enable_wchar_t
943 enable_c99
944 enable_concept_checks
945 enable_libstdcxx_debug_flags
946 enable_libstdcxx_debug
947 enable_cxx_flags
948 enable_fully_dynamic_string
949 enable_extern_template
950 with_python_dir
951 enable_werror
952 enable_vtable_verify
953 enable_libstdcxx_time
954 enable_tls
955 enable_rpath
956 with_libiconv_prefix
957 with_libiconv_type
958 with_system_libunwind
959 enable_linux_futex
960 enable_symvers
961 enable_libstdcxx_visibility
962 enable_libstdcxx_dual_abi
963 with_default_libstdcxx_abi
964 enable_libstdcxx_threads
965 enable_libstdcxx_filesystem_ts
966 enable_libstdcxx_backtrace
967 enable_libstdcxx_static_eh_pool
968 with_libstdcxx_eh_pool_obj_count
969 with_libstdcxx_zoneinfo
970 enable_cet
971 with_gxx_include_dir
972 enable_version_specific_runtime_libs
973 with_toolexeclibdir
974 with_gcc_major_version_only
976 ac_precious_vars='build_alias
977 host_alias
978 target_alias
980 CFLAGS
981 LDFLAGS
982 LIBS
983 CPPFLAGS
985 CXXFLAGS
988 CXXCPP
989 CXXFILT'
992 # Initialize some variables set by options.
993 ac_init_help=
994 ac_init_version=false
995 ac_unrecognized_opts=
996 ac_unrecognized_sep=
997 # The variables have the same names as the options, with
998 # dashes changed to underlines.
999 cache_file=/dev/null
1000 exec_prefix=NONE
1001 no_create=
1002 no_recursion=
1003 prefix=NONE
1004 program_prefix=NONE
1005 program_suffix=NONE
1006 program_transform_name=s,x,x,
1007 silent=
1008 site=
1009 srcdir=
1010 verbose=
1011 x_includes=NONE
1012 x_libraries=NONE
1014 # Installation directory options.
1015 # These are left unexpanded so users can "make install exec_prefix=/foo"
1016 # and all the variables that are supposed to be based on exec_prefix
1017 # by default will actually change.
1018 # Use braces instead of parens because sh, perl, etc. also accept them.
1019 # (The list follows the same order as the GNU Coding Standards.)
1020 bindir='${exec_prefix}/bin'
1021 sbindir='${exec_prefix}/sbin'
1022 libexecdir='${exec_prefix}/libexec'
1023 datarootdir='${prefix}/share'
1024 datadir='${datarootdir}'
1025 sysconfdir='${prefix}/etc'
1026 sharedstatedir='${prefix}/com'
1027 localstatedir='${prefix}/var'
1028 includedir='${prefix}/include'
1029 oldincludedir='/usr/include'
1030 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1031 infodir='${datarootdir}/info'
1032 htmldir='${docdir}'
1033 dvidir='${docdir}'
1034 pdfdir='${docdir}'
1035 psdir='${docdir}'
1036 libdir='${exec_prefix}/lib'
1037 localedir='${datarootdir}/locale'
1038 mandir='${datarootdir}/man'
1040 ac_prev=
1041 ac_dashdash=
1042 for ac_option
1044 # If the previous option needs an argument, assign it.
1045 if test -n "$ac_prev"; then
1046 eval $ac_prev=\$ac_option
1047 ac_prev=
1048 continue
1051 case $ac_option in
1052 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1053 *=) ac_optarg= ;;
1054 *) ac_optarg=yes ;;
1055 esac
1057 # Accept the important Cygnus configure options, so we can diagnose typos.
1059 case $ac_dashdash$ac_option in
1061 ac_dashdash=yes ;;
1063 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1064 ac_prev=bindir ;;
1065 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1066 bindir=$ac_optarg ;;
1068 -build | --build | --buil | --bui | --bu)
1069 ac_prev=build_alias ;;
1070 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1071 build_alias=$ac_optarg ;;
1073 -cache-file | --cache-file | --cache-fil | --cache-fi \
1074 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1075 ac_prev=cache_file ;;
1076 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1077 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1078 cache_file=$ac_optarg ;;
1080 --config-cache | -C)
1081 cache_file=config.cache ;;
1083 -datadir | --datadir | --datadi | --datad)
1084 ac_prev=datadir ;;
1085 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1086 datadir=$ac_optarg ;;
1088 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1089 | --dataroo | --dataro | --datar)
1090 ac_prev=datarootdir ;;
1091 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1092 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1093 datarootdir=$ac_optarg ;;
1095 -disable-* | --disable-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error $? "invalid feature name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "enable_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval enable_$ac_useropt=no ;;
1111 -docdir | --docdir | --docdi | --doc | --do)
1112 ac_prev=docdir ;;
1113 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1114 docdir=$ac_optarg ;;
1116 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1117 ac_prev=dvidir ;;
1118 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1119 dvidir=$ac_optarg ;;
1121 -enable-* | --enable-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid feature name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1130 "enable_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval enable_$ac_useropt=\$ac_optarg ;;
1137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1139 | --exec | --exe | --ex)
1140 ac_prev=exec_prefix ;;
1141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1143 | --exec=* | --exe=* | --ex=*)
1144 exec_prefix=$ac_optarg ;;
1146 -gas | --gas | --ga | --g)
1147 # Obsolete; use --with-gas.
1148 with_gas=yes ;;
1150 -help | --help | --hel | --he | -h)
1151 ac_init_help=long ;;
1152 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1153 ac_init_help=recursive ;;
1154 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1155 ac_init_help=short ;;
1157 -host | --host | --hos | --ho)
1158 ac_prev=host_alias ;;
1159 -host=* | --host=* | --hos=* | --ho=*)
1160 host_alias=$ac_optarg ;;
1162 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1163 ac_prev=htmldir ;;
1164 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1165 | --ht=*)
1166 htmldir=$ac_optarg ;;
1168 -includedir | --includedir | --includedi | --included | --include \
1169 | --includ | --inclu | --incl | --inc)
1170 ac_prev=includedir ;;
1171 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1172 | --includ=* | --inclu=* | --incl=* | --inc=*)
1173 includedir=$ac_optarg ;;
1175 -infodir | --infodir | --infodi | --infod | --info | --inf)
1176 ac_prev=infodir ;;
1177 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1178 infodir=$ac_optarg ;;
1180 -libdir | --libdir | --libdi | --libd)
1181 ac_prev=libdir ;;
1182 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1183 libdir=$ac_optarg ;;
1185 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1186 | --libexe | --libex | --libe)
1187 ac_prev=libexecdir ;;
1188 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1189 | --libexe=* | --libex=* | --libe=*)
1190 libexecdir=$ac_optarg ;;
1192 -localedir | --localedir | --localedi | --localed | --locale)
1193 ac_prev=localedir ;;
1194 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1195 localedir=$ac_optarg ;;
1197 -localstatedir | --localstatedir | --localstatedi | --localstated \
1198 | --localstate | --localstat | --localsta | --localst | --locals)
1199 ac_prev=localstatedir ;;
1200 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1201 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1202 localstatedir=$ac_optarg ;;
1204 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1205 ac_prev=mandir ;;
1206 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1207 mandir=$ac_optarg ;;
1209 -nfp | --nfp | --nf)
1210 # Obsolete; use --without-fp.
1211 with_fp=no ;;
1213 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1214 | --no-cr | --no-c | -n)
1215 no_create=yes ;;
1217 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1218 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1219 no_recursion=yes ;;
1221 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1222 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1223 | --oldin | --oldi | --old | --ol | --o)
1224 ac_prev=oldincludedir ;;
1225 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1226 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1227 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1228 oldincludedir=$ac_optarg ;;
1230 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1231 ac_prev=prefix ;;
1232 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1233 prefix=$ac_optarg ;;
1235 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1236 | --program-pre | --program-pr | --program-p)
1237 ac_prev=program_prefix ;;
1238 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1239 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1240 program_prefix=$ac_optarg ;;
1242 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1243 | --program-suf | --program-su | --program-s)
1244 ac_prev=program_suffix ;;
1245 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1246 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1247 program_suffix=$ac_optarg ;;
1249 -program-transform-name | --program-transform-name \
1250 | --program-transform-nam | --program-transform-na \
1251 | --program-transform-n | --program-transform- \
1252 | --program-transform | --program-transfor \
1253 | --program-transfo | --program-transf \
1254 | --program-trans | --program-tran \
1255 | --progr-tra | --program-tr | --program-t)
1256 ac_prev=program_transform_name ;;
1257 -program-transform-name=* | --program-transform-name=* \
1258 | --program-transform-nam=* | --program-transform-na=* \
1259 | --program-transform-n=* | --program-transform-=* \
1260 | --program-transform=* | --program-transfor=* \
1261 | --program-transfo=* | --program-transf=* \
1262 | --program-trans=* | --program-tran=* \
1263 | --progr-tra=* | --program-tr=* | --program-t=*)
1264 program_transform_name=$ac_optarg ;;
1266 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1267 ac_prev=pdfdir ;;
1268 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1269 pdfdir=$ac_optarg ;;
1271 -psdir | --psdir | --psdi | --psd | --ps)
1272 ac_prev=psdir ;;
1273 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1274 psdir=$ac_optarg ;;
1276 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1277 | -silent | --silent | --silen | --sile | --sil)
1278 silent=yes ;;
1280 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1281 ac_prev=sbindir ;;
1282 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1283 | --sbi=* | --sb=*)
1284 sbindir=$ac_optarg ;;
1286 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1287 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1288 | --sharedst | --shareds | --shared | --share | --shar \
1289 | --sha | --sh)
1290 ac_prev=sharedstatedir ;;
1291 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1292 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1293 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1294 | --sha=* | --sh=*)
1295 sharedstatedir=$ac_optarg ;;
1297 -site | --site | --sit)
1298 ac_prev=site ;;
1299 -site=* | --site=* | --sit=*)
1300 site=$ac_optarg ;;
1302 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1303 ac_prev=srcdir ;;
1304 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1305 srcdir=$ac_optarg ;;
1307 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1308 | --syscon | --sysco | --sysc | --sys | --sy)
1309 ac_prev=sysconfdir ;;
1310 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1311 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1312 sysconfdir=$ac_optarg ;;
1314 -target | --target | --targe | --targ | --tar | --ta | --t)
1315 ac_prev=target_alias ;;
1316 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1317 target_alias=$ac_optarg ;;
1319 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1320 verbose=yes ;;
1322 -version | --version | --versio | --versi | --vers | -V)
1323 ac_init_version=: ;;
1325 -with-* | --with-*)
1326 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329 as_fn_error $? "invalid package name: $ac_useropt"
1330 ac_useropt_orig=$ac_useropt
1331 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1334 "with_$ac_useropt"
1335 "*) ;;
1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1337 ac_unrecognized_sep=', ';;
1338 esac
1339 eval with_$ac_useropt=\$ac_optarg ;;
1341 -without-* | --without-*)
1342 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1343 # Reject names that are not valid shell variable names.
1344 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1345 as_fn_error $? "invalid package name: $ac_useropt"
1346 ac_useropt_orig=$ac_useropt
1347 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1348 case $ac_user_opts in
1350 "with_$ac_useropt"
1351 "*) ;;
1352 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1353 ac_unrecognized_sep=', ';;
1354 esac
1355 eval with_$ac_useropt=no ;;
1357 --x)
1358 # Obsolete; use --with-x.
1359 with_x=yes ;;
1361 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1362 | --x-incl | --x-inc | --x-in | --x-i)
1363 ac_prev=x_includes ;;
1364 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1365 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1366 x_includes=$ac_optarg ;;
1368 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1369 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1370 ac_prev=x_libraries ;;
1371 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1372 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1373 x_libraries=$ac_optarg ;;
1375 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1376 Try \`$0 --help' for more information"
1379 *=*)
1380 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1381 # Reject names that are not valid shell variable names.
1382 case $ac_envvar in #(
1383 '' | [0-9]* | *[!_$as_cr_alnum]* )
1384 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1385 esac
1386 eval $ac_envvar=\$ac_optarg
1387 export $ac_envvar ;;
1390 # FIXME: should be removed in autoconf 3.0.
1391 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1392 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1393 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1394 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1397 esac
1398 done
1400 if test -n "$ac_prev"; then
1401 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1402 as_fn_error $? "missing argument to $ac_option"
1405 if test -n "$ac_unrecognized_opts"; then
1406 case $enable_option_checking in
1407 no) ;;
1408 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1409 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1410 esac
1413 # Check all directory arguments for consistency.
1414 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1415 datadir sysconfdir sharedstatedir localstatedir includedir \
1416 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1417 libdir localedir mandir
1419 eval ac_val=\$$ac_var
1420 # Remove trailing slashes.
1421 case $ac_val in
1422 */ )
1423 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1424 eval $ac_var=\$ac_val;;
1425 esac
1426 # Be sure to have absolute directory names.
1427 case $ac_val in
1428 [\\/$]* | ?:[\\/]* ) continue;;
1429 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1430 esac
1431 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1432 done
1434 # There might be people who depend on the old broken behavior: `$host'
1435 # used to hold the argument of --host etc.
1436 # FIXME: To remove some day.
1437 build=$build_alias
1438 host=$host_alias
1439 target=$target_alias
1441 # FIXME: To remove some day.
1442 if test "x$host_alias" != x; then
1443 if test "x$build_alias" = x; then
1444 cross_compiling=maybe
1445 elif test "x$build_alias" != "x$host_alias"; then
1446 cross_compiling=yes
1450 ac_tool_prefix=
1451 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1453 test "$silent" = yes && exec 6>/dev/null
1456 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1457 ac_ls_di=`ls -di .` &&
1458 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1459 as_fn_error $? "working directory cannot be determined"
1460 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1461 as_fn_error $? "pwd does not report name of working directory"
1464 # Find the source files, if location was not specified.
1465 if test -z "$srcdir"; then
1466 ac_srcdir_defaulted=yes
1467 # Try the directory containing this script, then the parent directory.
1468 ac_confdir=`$as_dirname -- "$as_myself" ||
1469 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1470 X"$as_myself" : 'X\(//\)[^/]' \| \
1471 X"$as_myself" : 'X\(//\)$' \| \
1472 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1473 $as_echo X"$as_myself" |
1474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1475 s//\1/
1478 /^X\(\/\/\)[^/].*/{
1479 s//\1/
1482 /^X\(\/\/\)$/{
1483 s//\1/
1486 /^X\(\/\).*/{
1487 s//\1/
1490 s/.*/./; q'`
1491 srcdir=$ac_confdir
1492 if test ! -r "$srcdir/$ac_unique_file"; then
1493 srcdir=..
1495 else
1496 ac_srcdir_defaulted=no
1498 if test ! -r "$srcdir/$ac_unique_file"; then
1499 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1500 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1502 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1503 ac_abs_confdir=`(
1504 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1505 pwd)`
1506 # When building in place, set srcdir=.
1507 if test "$ac_abs_confdir" = "$ac_pwd"; then
1508 srcdir=.
1510 # Remove unnecessary trailing slashes from srcdir.
1511 # Double slashes in file names in object file debugging info
1512 # mess up M-x gdb in Emacs.
1513 case $srcdir in
1514 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1515 esac
1516 for ac_var in $ac_precious_vars; do
1517 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1518 eval ac_env_${ac_var}_value=\$${ac_var}
1519 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1520 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1521 done
1524 # Report the --help message.
1526 if test "$ac_init_help" = "long"; then
1527 # Omit some internal or obsolete options to make the list less imposing.
1528 # This message is too long to be a string in the A/UX 3.1 sh.
1529 cat <<_ACEOF
1530 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1532 Usage: $0 [OPTION]... [VAR=VALUE]...
1534 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1535 VAR=VALUE. See below for descriptions of some of the useful variables.
1537 Defaults for the options are specified in brackets.
1539 Configuration:
1540 -h, --help display this help and exit
1541 --help=short display options specific to this package
1542 --help=recursive display the short help of all the included packages
1543 -V, --version display version information and exit
1544 -q, --quiet, --silent do not print \`checking ...' messages
1545 --cache-file=FILE cache test results in FILE [disabled]
1546 -C, --config-cache alias for \`--cache-file=config.cache'
1547 -n, --no-create do not create output files
1548 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1550 Installation directories:
1551 --prefix=PREFIX install architecture-independent files in PREFIX
1552 [$ac_default_prefix]
1553 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1554 [PREFIX]
1556 By default, \`make install' will install all the files in
1557 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1558 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1559 for instance \`--prefix=\$HOME'.
1561 For better control, use the options below.
1563 Fine tuning of the installation directories:
1564 --bindir=DIR user executables [EPREFIX/bin]
1565 --sbindir=DIR system admin executables [EPREFIX/sbin]
1566 --libexecdir=DIR program executables [EPREFIX/libexec]
1567 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1568 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1569 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1570 --libdir=DIR object code libraries [EPREFIX/lib]
1571 --includedir=DIR C header files [PREFIX/include]
1572 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1573 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1574 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1575 --infodir=DIR info documentation [DATAROOTDIR/info]
1576 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1577 --mandir=DIR man documentation [DATAROOTDIR/man]
1578 --docdir=DIR documentation root [DATAROOTDIR/doc/libstdc++]
1579 --htmldir=DIR html documentation [DOCDIR]
1580 --dvidir=DIR dvi documentation [DOCDIR]
1581 --pdfdir=DIR pdf documentation [DOCDIR]
1582 --psdir=DIR ps documentation [DOCDIR]
1583 _ACEOF
1585 cat <<\_ACEOF
1587 Program names:
1588 --program-prefix=PREFIX prepend PREFIX to installed program names
1589 --program-suffix=SUFFIX append SUFFIX to installed program names
1590 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1592 System types:
1593 --build=BUILD configure for building on BUILD [guessed]
1594 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1595 --target=TARGET configure for building compilers for TARGET [HOST]
1596 _ACEOF
1599 if test -n "$ac_init_help"; then
1600 case $ac_init_help in
1601 short | recursive ) echo "Configuration of package-unused version-unused:";;
1602 esac
1603 cat <<\_ACEOF
1605 Optional Features:
1606 --disable-option-checking ignore unrecognized --enable/--with options
1607 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1608 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1609 --enable-multilib build many library versions (default)
1610 --enable-silent-rules less verbose build output (undo: "make V=1")
1611 --disable-silent-rules verbose build output (undo: "make V=0")
1612 --disable-largefile omit support for large files
1613 --enable-maintainer-mode
1614 enable make rules and dependencies not useful (and
1615 sometimes confusing) to the casual installer
1616 --enable-shared[=PKGS] build shared libraries [default=yes]
1617 --enable-static[=PKGS] build static libraries [default=yes]
1618 --enable-fast-install[=PKGS]
1619 optimize for fast installation [default=yes]
1620 --disable-libtool-lock avoid locking (might break parallel builds)
1621 --enable-darwin-at-rpath
1622 install libraries with @rpath/library-name, requires
1623 rpaths to be added to executables
1624 --disable-hosted-libstdcxx
1625 only build freestanding C++ runtime support
1626 --disable-libstdcxx-hosted
1627 alias for --disable-hosted-libstdcxx
1628 --disable-libstdcxx-verbose
1629 disable termination messages to standard error
1630 --enable-libstdcxx-pch build pre-compiled libstdc++ headers
1631 [default=$is_hosted]
1632 --enable-cstdio[=PACKAGE]
1633 use target-specific I/O package [default=stdio]
1634 --enable-clocale[=MODEL]
1635 use MODEL for target locale package [default=auto]
1636 --enable-nls use Native Language Support (default)
1637 --enable-libstdcxx-allocator[=KIND]
1638 use KIND for target std::allocator base
1639 [default=auto]
1640 --enable-cheaders-obsolete
1641 allow use of obsolete "C" headers for g++
1642 [default=no]
1643 --enable-cheaders[=KIND]
1644 construct "C" headers for g++ [default=$c_model]
1645 --enable-long-long enable template specializations for 'long long'
1646 [default=yes]
1647 --enable-wchar_t enable template specializations for 'wchar_t'
1648 [default=yes]
1649 --enable-c99 turns on ISO/IEC 9899:1999 support [default=yes]
1650 --enable-concept-checks use Boost-derived template checks [default=no]
1651 --enable-libstdcxx-debug-flags=FLAGS
1652 pass compiler FLAGS when building debug library
1653 [default="-g3 -O0 -D_GLIBCXX_ASSERTIONS"]
1654 --enable-libstdcxx-debug
1655 build extra debug library [default=no]
1656 --enable-cxx-flags=FLAGS
1657 pass compiler FLAGS when building library [default=]
1658 --enable-fully-dynamic-string
1659 do not put empty strings in per-process static
1660 memory [default=no]
1661 --enable-extern-template
1662 enable extern template [default=yes]
1663 --enable-werror turns on -Werror [default=no]
1664 --enable-vtable-verify enable vtable verify [default=no]
1665 --enable-libstdcxx-time[=KIND]
1666 use KIND for check type [default=auto]
1667 --enable-tls Use thread-local storage [default=yes]
1668 --disable-rpath do not hardcode runtime library paths
1669 --enable-linux-futex use the Linux futex system call [default=default]
1670 --enable-symvers[=STYLE]
1671 enables symbol versioning of the shared library
1672 [default=yes]
1673 --enable-libstdcxx-visibility
1674 enables visibility safe usage [default=yes]
1675 --enable-libstdcxx-dual-abi
1676 support two versions of std::string [default=yes]
1677 --enable-libstdcxx-threads
1678 enable C++11 threads support [default=auto]
1679 --enable-libstdcxx-filesystem-ts
1680 turns on ISO/IEC TS 18822 support [default=auto]
1681 --enable-libstdcxx-backtrace
1682 turns on libbacktrace support [default=auto]
1683 --enable-libstdcxx-static-eh-pool
1684 use a fixed-size static buffer for allocating
1685 exceptions if malloc fails
1686 --enable-cet enable Intel CET in target libraries [default=auto]
1687 --enable-version-specific-runtime-libs
1688 Specify that runtime libraries should be installed
1689 in a compiler-specific directory
1691 Optional Packages:
1692 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1693 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1694 --with-target-subdir=SUBDIR
1695 configuring in a subdirectory
1696 --with-cross-host=HOST configuring with a cross compiler
1697 --with-newlib assume newlib as a system C library
1698 --with-pic try to use only PIC/non-PIC objects [default=use
1699 both]
1700 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1701 --with-libstdcxx-lock-policy={atomic,mutex,auto}
1702 synchronization policy for shared_ptr reference
1703 counting [default=auto]
1704 --with-python-dir the location to install Python modules. This path is
1705 relative starting from the prefix.
1706 --with-gnu-ld assume the C compiler uses GNU ld default=no
1707 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1708 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1709 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1710 --with-system-libunwind use installed libunwind
1711 --with-default-libstdcxx-abi
1712 set the std::string ABI to use by default
1713 --with-libstdcxx-eh-pool-obj-count
1714 the number of exceptions that can be allocated from
1715 the pool if malloc fails
1716 --with-libstdcxx-zoneinfo
1717 the location to use for tzdata
1718 --with-gxx-include-dir=DIR
1719 installation directory for include files
1720 --with-toolexeclibdir=DIR
1721 install libraries built with a cross compiler within
1723 --with-gcc-major-version-only
1724 use only GCC major number in filesystem paths
1726 Some influential environment variables:
1727 CC C compiler command
1728 CFLAGS C compiler flags
1729 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1730 nonstandard directory <lib dir>
1731 LIBS libraries to pass to the linker, e.g. -l<library>
1732 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1733 you have headers in a nonstandard directory <include dir>
1734 CXX C++ compiler command
1735 CXXFLAGS C++ compiler flags
1736 CPP C preprocessor
1737 CXXCPP C++ preprocessor
1738 CXXFILT Location of GNU c++filt. Defaults to the first GNU version of
1739 `c++filt', `gc++filt' on PATH.
1741 Use these variables to override the choices made by `configure' or to help
1742 it to find libraries and programs with nonstandard names/locations.
1744 Report bugs to the package provider.
1745 _ACEOF
1746 ac_status=$?
1749 if test "$ac_init_help" = "recursive"; then
1750 # If there are subdirs, report their specific --help.
1751 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1752 test -d "$ac_dir" ||
1753 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1754 continue
1755 ac_builddir=.
1757 case "$ac_dir" in
1758 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1760 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1761 # A ".." for each directory in $ac_dir_suffix.
1762 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1763 case $ac_top_builddir_sub in
1764 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1765 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1766 esac ;;
1767 esac
1768 ac_abs_top_builddir=$ac_pwd
1769 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1770 # for backward compatibility:
1771 ac_top_builddir=$ac_top_build_prefix
1773 case $srcdir in
1774 .) # We are building in place.
1775 ac_srcdir=.
1776 ac_top_srcdir=$ac_top_builddir_sub
1777 ac_abs_top_srcdir=$ac_pwd ;;
1778 [\\/]* | ?:[\\/]* ) # Absolute name.
1779 ac_srcdir=$srcdir$ac_dir_suffix;
1780 ac_top_srcdir=$srcdir
1781 ac_abs_top_srcdir=$srcdir ;;
1782 *) # Relative name.
1783 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1784 ac_top_srcdir=$ac_top_build_prefix$srcdir
1785 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1786 esac
1787 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1789 cd "$ac_dir" || { ac_status=$?; continue; }
1790 # Check for guested configure.
1791 if test -f "$ac_srcdir/configure.gnu"; then
1792 echo &&
1793 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1794 elif test -f "$ac_srcdir/configure"; then
1795 echo &&
1796 $SHELL "$ac_srcdir/configure" --help=recursive
1797 else
1798 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1799 fi || ac_status=$?
1800 cd "$ac_pwd" || { ac_status=$?; break; }
1801 done
1804 test -n "$ac_init_help" && exit $ac_status
1805 if $ac_init_version; then
1806 cat <<\_ACEOF
1807 package-unused configure version-unused
1808 generated by GNU Autoconf 2.69
1810 Copyright (C) 2012 Free Software Foundation, Inc.
1811 This configure script is free software; the Free Software Foundation
1812 gives unlimited permission to copy, distribute and modify it.
1813 _ACEOF
1814 exit
1817 ## ------------------------ ##
1818 ## Autoconf initialization. ##
1819 ## ------------------------ ##
1821 # ac_fn_c_try_compile LINENO
1822 # --------------------------
1823 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_c_try_compile ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 rm -f conftest.$ac_objext
1828 if { { ac_try="$ac_compile"
1829 case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_compile") 2>conftest.err
1836 ac_status=$?
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && {
1844 test -z "$ac_c_werror_flag" ||
1845 test ! -s conftest.err
1846 } && test -s conftest.$ac_objext; then :
1847 ac_retval=0
1848 else
1849 $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1852 ac_retval=1
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 as_fn_set_status $ac_retval
1857 } # ac_fn_c_try_compile
1859 # ac_fn_cxx_try_compile LINENO
1860 # ----------------------------
1861 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_cxx_try_compile ()
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 rm -f conftest.$ac_objext
1866 if { { ac_try="$ac_compile"
1867 case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_compile") 2>conftest.err
1874 ac_status=$?
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && {
1882 test -z "$ac_cxx_werror_flag" ||
1883 test ! -s conftest.err
1884 } && test -s conftest.$ac_objext; then :
1885 ac_retval=0
1886 else
1887 $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1890 ac_retval=1
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 as_fn_set_status $ac_retval
1895 } # ac_fn_cxx_try_compile
1897 # ac_fn_c_try_cpp LINENO
1898 # ----------------------
1899 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1900 ac_fn_c_try_cpp ()
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 if { { ac_try="$ac_cpp conftest.$ac_ext"
1904 case "(($ac_try" in
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1911 ac_status=$?
1912 if test -s conftest.err; then
1913 grep -v '^ *+' conftest.err >conftest.er1
1914 cat conftest.er1 >&5
1915 mv -f conftest.er1 conftest.err
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } > conftest.i && {
1919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1920 test ! -s conftest.err
1921 }; then :
1922 ac_retval=0
1923 else
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1927 ac_retval=1
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 as_fn_set_status $ac_retval
1932 } # ac_fn_c_try_cpp
1934 # ac_fn_c_try_link LINENO
1935 # -----------------------
1936 # Try to link conftest.$ac_ext, and return whether this succeeded.
1937 ac_fn_c_try_link ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 rm -f conftest.$ac_objext conftest$ac_exeext
1941 if { { ac_try="$ac_link"
1942 case "(($ac_try" in
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1945 esac
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_link") 2>conftest.err
1949 ac_status=$?
1950 if test -s conftest.err; then
1951 grep -v '^ *+' conftest.err >conftest.er1
1952 cat conftest.er1 >&5
1953 mv -f conftest.er1 conftest.err
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } && {
1957 test -z "$ac_c_werror_flag" ||
1958 test ! -s conftest.err
1959 } && test -s conftest$ac_exeext && {
1960 test "$cross_compiling" = yes ||
1961 test -x conftest$ac_exeext
1962 }; then :
1963 ac_retval=0
1964 else
1965 $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1968 ac_retval=1
1970 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1971 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1972 # interfere with the next link command; also delete a directory that is
1973 # left behind by Apple's compiler. We do this before executing the actions.
1974 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976 as_fn_set_status $ac_retval
1978 } # ac_fn_c_try_link
1980 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1981 # -------------------------------------------------------
1982 # Tests whether HEADER exists and can be compiled using the include files in
1983 # INCLUDES, setting the cache variable VAR accordingly.
1984 ac_fn_c_check_header_compile ()
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if eval \${$3+:} false; then :
1990 $as_echo_n "(cached) " >&6
1991 else
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1995 #include <$2>
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 eval "$3=yes"
1999 else
2000 eval "$3=no"
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 eval ac_res=\$$3
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 } # ac_fn_c_check_header_compile
2011 # ac_fn_c_try_run LINENO
2012 # ----------------------
2013 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2014 # that executables *can* be run.
2015 ac_fn_c_try_run ()
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 if { { ac_try="$ac_link"
2019 case "(($ac_try" in
2020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021 *) ac_try_echo=$ac_try;;
2022 esac
2023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024 $as_echo "$ac_try_echo"; } >&5
2025 (eval "$ac_link") 2>&5
2026 ac_status=$?
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2029 { { case "(($ac_try" in
2030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031 *) ac_try_echo=$ac_try;;
2032 esac
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035 (eval "$ac_try") 2>&5
2036 ac_status=$?
2037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038 test $ac_status = 0; }; }; then :
2039 ac_retval=0
2040 else
2041 $as_echo "$as_me: program exited with status $ac_status" >&5
2042 $as_echo "$as_me: failed program was:" >&5
2043 sed 's/^/| /' conftest.$ac_ext >&5
2045 ac_retval=$ac_status
2047 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049 as_fn_set_status $ac_retval
2051 } # ac_fn_c_try_run
2053 # ac_fn_c_check_func LINENO FUNC VAR
2054 # ----------------------------------
2055 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2056 ac_fn_c_check_func ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if eval \${$3+:} false; then :
2062 $as_echo_n "(cached) " >&6
2063 else
2064 if test x$gcc_no_link = xyes; then
2065 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2069 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2071 #define $2 innocuous_$2
2073 /* System header to define __stub macros and hopefully few prototypes,
2074 which can conflict with char $2 (); below.
2075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2076 <limits.h> exists even on freestanding compilers. */
2078 #ifdef __STDC__
2079 # include <limits.h>
2080 #else
2081 # include <assert.h>
2082 #endif
2084 #undef $2
2086 /* Override any GCC internal prototype to avoid an error.
2087 Use char because int might match the return type of a GCC
2088 builtin and then its argument prototype would still apply. */
2089 #ifdef __cplusplus
2090 extern "C"
2091 #endif
2092 char $2 ();
2093 /* The GNU C library defines this for functions which it implements
2094 to always fail with ENOSYS. Some functions are actually named
2095 something starting with __ and the normal name is an alias. */
2096 #if defined __stub_$2 || defined __stub___$2
2097 choke me
2098 #endif
2101 main ()
2103 return $2 ();
2105 return 0;
2107 _ACEOF
2108 if ac_fn_c_try_link "$LINENO"; then :
2109 eval "$3=yes"
2110 else
2111 eval "$3=no"
2113 rm -f core conftest.err conftest.$ac_objext \
2114 conftest$ac_exeext conftest.$ac_ext
2116 eval ac_res=\$$3
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 } # ac_fn_c_check_func
2123 # ac_fn_cxx_try_cpp LINENO
2124 # ------------------------
2125 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2126 ac_fn_cxx_try_cpp ()
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 if { { ac_try="$ac_cpp conftest.$ac_ext"
2130 case "(($ac_try" in
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2133 esac
2134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2135 $as_echo "$ac_try_echo"; } >&5
2136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2137 ac_status=$?
2138 if test -s conftest.err; then
2139 grep -v '^ *+' conftest.err >conftest.er1
2140 cat conftest.er1 >&5
2141 mv -f conftest.er1 conftest.err
2143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2144 test $ac_status = 0; } > conftest.i && {
2145 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2146 test ! -s conftest.err
2147 }; then :
2148 ac_retval=0
2149 else
2150 $as_echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2153 ac_retval=1
2155 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156 as_fn_set_status $ac_retval
2158 } # ac_fn_cxx_try_cpp
2160 # ac_fn_cxx_try_link LINENO
2161 # -------------------------
2162 # Try to link conftest.$ac_ext, and return whether this succeeded.
2163 ac_fn_cxx_try_link ()
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 rm -f conftest.$ac_objext conftest$ac_exeext
2167 if { { ac_try="$ac_link"
2168 case "(($ac_try" in
2169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170 *) ac_try_echo=$ac_try;;
2171 esac
2172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2173 $as_echo "$ac_try_echo"; } >&5
2174 (eval "$ac_link") 2>conftest.err
2175 ac_status=$?
2176 if test -s conftest.err; then
2177 grep -v '^ *+' conftest.err >conftest.er1
2178 cat conftest.er1 >&5
2179 mv -f conftest.er1 conftest.err
2181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182 test $ac_status = 0; } && {
2183 test -z "$ac_cxx_werror_flag" ||
2184 test ! -s conftest.err
2185 } && test -s conftest$ac_exeext && {
2186 test "$cross_compiling" = yes ||
2187 test -x conftest$ac_exeext
2188 }; then :
2189 ac_retval=0
2190 else
2191 $as_echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2194 ac_retval=1
2196 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2197 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2198 # interfere with the next link command; also delete a directory that is
2199 # left behind by Apple's compiler. We do this before executing the actions.
2200 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202 as_fn_set_status $ac_retval
2204 } # ac_fn_cxx_try_link
2206 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2207 # -------------------------------------------------------
2208 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2209 # the include files in INCLUDES and setting the cache variable VAR
2210 # accordingly.
2211 ac_fn_c_check_header_mongrel ()
2213 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214 if eval \${$3+:} false; then :
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2216 $as_echo_n "checking for $2... " >&6; }
2217 if eval \${$3+:} false; then :
2218 $as_echo_n "(cached) " >&6
2220 eval ac_res=\$$3
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2222 $as_echo "$ac_res" >&6; }
2223 else
2224 # Is the header compilable?
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2226 $as_echo_n "checking $2 usability... " >&6; }
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h. */
2230 #include <$2>
2231 _ACEOF
2232 if ac_fn_c_try_compile "$LINENO"; then :
2233 ac_header_compiler=yes
2234 else
2235 ac_header_compiler=no
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2239 $as_echo "$ac_header_compiler" >&6; }
2241 # Is the header present?
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2243 $as_echo_n "checking $2 presence... " >&6; }
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2246 #include <$2>
2247 _ACEOF
2248 if ac_fn_c_try_cpp "$LINENO"; then :
2249 ac_header_preproc=yes
2250 else
2251 ac_header_preproc=no
2253 rm -f conftest.err conftest.i conftest.$ac_ext
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2255 $as_echo "$ac_header_preproc" >&6; }
2257 # So? What about this header?
2258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2259 yes:no: )
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2261 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2263 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2265 no:yes:* )
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2267 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2269 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2271 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2273 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2275 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2277 esac
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2279 $as_echo_n "checking for $2... " >&6; }
2280 if eval \${$3+:} false; then :
2281 $as_echo_n "(cached) " >&6
2282 else
2283 eval "$3=\$ac_header_compiler"
2285 eval ac_res=\$$3
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287 $as_echo "$ac_res" >&6; }
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291 } # ac_fn_c_check_header_mongrel
2293 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2294 # ---------------------------------------------------------
2295 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2296 # the include files in INCLUDES and setting the cache variable VAR
2297 # accordingly.
2298 ac_fn_cxx_check_header_mongrel ()
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 if eval \${$3+:} false; then :
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2303 $as_echo_n "checking for $2... " >&6; }
2304 if eval \${$3+:} false; then :
2305 $as_echo_n "(cached) " >&6
2307 eval ac_res=\$$3
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2309 $as_echo "$ac_res" >&6; }
2310 else
2311 # Is the header compilable?
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2313 $as_echo_n "checking $2 usability... " >&6; }
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2317 #include <$2>
2318 _ACEOF
2319 if ac_fn_cxx_try_compile "$LINENO"; then :
2320 ac_header_compiler=yes
2321 else
2322 ac_header_compiler=no
2324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2326 $as_echo "$ac_header_compiler" >&6; }
2328 # Is the header present?
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2330 $as_echo_n "checking $2 presence... " >&6; }
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h. */
2333 #include <$2>
2334 _ACEOF
2335 if ac_fn_cxx_try_cpp "$LINENO"; then :
2336 ac_header_preproc=yes
2337 else
2338 ac_header_preproc=no
2340 rm -f conftest.err conftest.i conftest.$ac_ext
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2342 $as_echo "$ac_header_preproc" >&6; }
2344 # So? What about this header?
2345 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2346 yes:no: )
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2348 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2350 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2352 no:yes:* )
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2354 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2356 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2358 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2360 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2362 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2364 esac
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2366 $as_echo_n "checking for $2... " >&6; }
2367 if eval \${$3+:} false; then :
2368 $as_echo_n "(cached) " >&6
2369 else
2370 eval "$3=\$ac_header_compiler"
2372 eval ac_res=\$$3
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2374 $as_echo "$ac_res" >&6; }
2376 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2378 } # ac_fn_cxx_check_header_mongrel
2380 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2381 # --------------------------------------------
2382 # Tries to find the compile-time value of EXPR in a program that includes
2383 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2384 # computed
2385 ac_fn_c_compute_int ()
2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388 if test "$cross_compiling" = yes; then
2389 # Depending upon the size, compute the lo and hi bounds.
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2394 main ()
2396 static int test_array [1 - 2 * !(($2) >= 0)];
2397 test_array [0] = 0;
2398 return test_array [0];
2401 return 0;
2403 _ACEOF
2404 if ac_fn_c_try_compile "$LINENO"; then :
2405 ac_lo=0 ac_mid=0
2406 while :; do
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2411 main ()
2413 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2414 test_array [0] = 0;
2415 return test_array [0];
2418 return 0;
2420 _ACEOF
2421 if ac_fn_c_try_compile "$LINENO"; then :
2422 ac_hi=$ac_mid; break
2423 else
2424 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2425 if test $ac_lo -le $ac_mid; then
2426 ac_lo= ac_hi=
2427 break
2429 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 done
2433 else
2434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2435 /* end confdefs.h. */
2438 main ()
2440 static int test_array [1 - 2 * !(($2) < 0)];
2441 test_array [0] = 0;
2442 return test_array [0];
2445 return 0;
2447 _ACEOF
2448 if ac_fn_c_try_compile "$LINENO"; then :
2449 ac_hi=-1 ac_mid=-1
2450 while :; do
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2455 main ()
2457 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2458 test_array [0] = 0;
2459 return test_array [0];
2462 return 0;
2464 _ACEOF
2465 if ac_fn_c_try_compile "$LINENO"; then :
2466 ac_lo=$ac_mid; break
2467 else
2468 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2469 if test $ac_mid -le $ac_hi; then
2470 ac_lo= ac_hi=
2471 break
2473 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2476 done
2477 else
2478 ac_lo= ac_hi=
2480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2483 # Binary search between lo and hi bounds.
2484 while test "x$ac_lo" != "x$ac_hi"; do
2485 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h. */
2490 main ()
2492 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2493 test_array [0] = 0;
2494 return test_array [0];
2497 return 0;
2499 _ACEOF
2500 if ac_fn_c_try_compile "$LINENO"; then :
2501 ac_hi=$ac_mid
2502 else
2503 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2506 done
2507 case $ac_lo in #((
2508 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2509 '') ac_retval=1 ;;
2510 esac
2511 else
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2515 static long int longval () { return $2; }
2516 static unsigned long int ulongval () { return $2; }
2517 #include <stdio.h>
2518 #include <stdlib.h>
2520 main ()
2523 FILE *f = fopen ("conftest.val", "w");
2524 if (! f)
2525 return 1;
2526 if (($2) < 0)
2528 long int i = longval ();
2529 if (i != ($2))
2530 return 1;
2531 fprintf (f, "%ld", i);
2533 else
2535 unsigned long int i = ulongval ();
2536 if (i != ($2))
2537 return 1;
2538 fprintf (f, "%lu", i);
2540 /* Do not output a trailing newline, as this causes \r\n confusion
2541 on some platforms. */
2542 return ferror (f) || fclose (f) != 0;
2545 return 0;
2547 _ACEOF
2548 if ac_fn_c_try_run "$LINENO"; then :
2549 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2550 else
2551 ac_retval=1
2553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2554 conftest.$ac_objext conftest.beam conftest.$ac_ext
2555 rm -f conftest.val
2558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2559 as_fn_set_status $ac_retval
2561 } # ac_fn_c_compute_int
2563 # ac_fn_cxx_check_func LINENO FUNC VAR
2564 # ------------------------------------
2565 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2566 ac_fn_cxx_check_func ()
2568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2570 $as_echo_n "checking for $2... " >&6; }
2571 if eval \${$3+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 if test x$gcc_no_link = xyes; then
2575 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2578 /* end confdefs.h. */
2579 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2581 #define $2 innocuous_$2
2583 /* System header to define __stub macros and hopefully few prototypes,
2584 which can conflict with char $2 (); below.
2585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2586 <limits.h> exists even on freestanding compilers. */
2588 #ifdef __STDC__
2589 # include <limits.h>
2590 #else
2591 # include <assert.h>
2592 #endif
2594 #undef $2
2596 /* Override any GCC internal prototype to avoid an error.
2597 Use char because int might match the return type of a GCC
2598 builtin and then its argument prototype would still apply. */
2599 #ifdef __cplusplus
2600 extern "C"
2601 #endif
2602 char $2 ();
2603 /* The GNU C library defines this for functions which it implements
2604 to always fail with ENOSYS. Some functions are actually named
2605 something starting with __ and the normal name is an alias. */
2606 #if defined __stub_$2 || defined __stub___$2
2607 choke me
2608 #endif
2611 main ()
2613 return $2 ();
2615 return 0;
2617 _ACEOF
2618 if ac_fn_cxx_try_link "$LINENO"; then :
2619 eval "$3=yes"
2620 else
2621 eval "$3=no"
2623 rm -f core conftest.err conftest.$ac_objext \
2624 conftest$ac_exeext conftest.$ac_ext
2626 eval ac_res=\$$3
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2628 $as_echo "$ac_res" >&6; }
2629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2631 } # ac_fn_cxx_check_func
2633 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2634 # ---------------------------------------------
2635 # Tests whether TYPE exists after having included INCLUDES, setting cache
2636 # variable VAR accordingly.
2637 ac_fn_cxx_check_type ()
2639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2641 $as_echo_n "checking for $2... " >&6; }
2642 if eval \${$3+:} false; then :
2643 $as_echo_n "(cached) " >&6
2644 else
2645 eval "$3=no"
2646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2647 /* end confdefs.h. */
2650 main ()
2652 if (sizeof ($2))
2653 return 0;
2655 return 0;
2657 _ACEOF
2658 if ac_fn_cxx_try_compile "$LINENO"; then :
2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2660 /* end confdefs.h. */
2663 main ()
2665 if (sizeof (($2)))
2666 return 0;
2668 return 0;
2670 _ACEOF
2671 if ac_fn_cxx_try_compile "$LINENO"; then :
2673 else
2674 eval "$3=yes"
2676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2680 eval ac_res=\$$3
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2682 $as_echo "$ac_res" >&6; }
2683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2685 } # ac_fn_cxx_check_type
2687 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2688 # ---------------------------------------------
2689 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2690 # accordingly.
2691 ac_fn_c_check_decl ()
2693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2694 as_decl_name=`echo $2|sed 's/ *(.*//'`
2695 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2697 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2698 if eval \${$3+:} false; then :
2699 $as_echo_n "(cached) " >&6
2700 else
2701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2702 /* end confdefs.h. */
2705 main ()
2707 #ifndef $as_decl_name
2708 #ifdef __cplusplus
2709 (void) $as_decl_use;
2710 #else
2711 (void) $as_decl_name;
2712 #endif
2713 #endif
2716 return 0;
2718 _ACEOF
2719 if ac_fn_c_try_compile "$LINENO"; then :
2720 eval "$3=yes"
2721 else
2722 eval "$3=no"
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2726 eval ac_res=\$$3
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2728 $as_echo "$ac_res" >&6; }
2729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2731 } # ac_fn_c_check_decl
2732 cat >config.log <<_ACEOF
2733 This file contains any messages produced by compilers while
2734 running configure, to aid debugging if configure makes a mistake.
2736 It was created by package-unused $as_me version-unused, which was
2737 generated by GNU Autoconf 2.69. Invocation command line was
2739 $ $0 $@
2741 _ACEOF
2742 exec 5>>config.log
2744 cat <<_ASUNAME
2745 ## --------- ##
2746 ## Platform. ##
2747 ## --------- ##
2749 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2750 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2751 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2752 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2753 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2755 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2756 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2758 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2759 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2760 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2761 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2762 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2763 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2764 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2766 _ASUNAME
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 $as_echo "PATH: $as_dir"
2774 done
2775 IFS=$as_save_IFS
2777 } >&5
2779 cat >&5 <<_ACEOF
2782 ## ----------- ##
2783 ## Core tests. ##
2784 ## ----------- ##
2786 _ACEOF
2789 # Keep a trace of the command line.
2790 # Strip out --no-create and --no-recursion so they do not pile up.
2791 # Strip out --silent because we don't want to record it for future runs.
2792 # Also quote any args containing shell meta-characters.
2793 # Make two passes to allow for proper duplicate-argument suppression.
2794 ac_configure_args=
2795 ac_configure_args0=
2796 ac_configure_args1=
2797 ac_must_keep_next=false
2798 for ac_pass in 1 2
2800 for ac_arg
2802 case $ac_arg in
2803 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2805 | -silent | --silent | --silen | --sile | --sil)
2806 continue ;;
2807 *\'*)
2808 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2809 esac
2810 case $ac_pass in
2811 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2813 as_fn_append ac_configure_args1 " '$ac_arg'"
2814 if test $ac_must_keep_next = true; then
2815 ac_must_keep_next=false # Got value, back to normal.
2816 else
2817 case $ac_arg in
2818 *=* | --config-cache | -C | -disable-* | --disable-* \
2819 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2820 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2821 | -with-* | --with-* | -without-* | --without-* | --x)
2822 case "$ac_configure_args0 " in
2823 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2824 esac
2826 -* ) ac_must_keep_next=true ;;
2827 esac
2829 as_fn_append ac_configure_args " '$ac_arg'"
2831 esac
2832 done
2833 done
2834 { ac_configure_args0=; unset ac_configure_args0;}
2835 { ac_configure_args1=; unset ac_configure_args1;}
2837 # When interrupted or exit'd, cleanup temporary files, and complete
2838 # config.log. We remove comments because anyway the quotes in there
2839 # would cause problems or look ugly.
2840 # WARNING: Use '\'' to represent an apostrophe within the trap.
2841 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2842 trap 'exit_status=$?
2843 # Save into config.log some information that might help in debugging.
2845 echo
2847 $as_echo "## ---------------- ##
2848 ## Cache variables. ##
2849 ## ---------------- ##"
2850 echo
2851 # The following way of writing the cache mishandles newlines in values,
2853 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2854 eval ac_val=\$$ac_var
2855 case $ac_val in #(
2856 *${as_nl}*)
2857 case $ac_var in #(
2858 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2859 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2860 esac
2861 case $ac_var in #(
2862 _ | IFS | as_nl) ;; #(
2863 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2864 *) { eval $ac_var=; unset $ac_var;} ;;
2865 esac ;;
2866 esac
2867 done
2868 (set) 2>&1 |
2869 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2870 *${as_nl}ac_space=\ *)
2871 sed -n \
2872 "s/'\''/'\''\\\\'\'''\''/g;
2873 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2874 ;; #(
2876 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2878 esac |
2879 sort
2881 echo
2883 $as_echo "## ----------------- ##
2884 ## Output variables. ##
2885 ## ----------------- ##"
2886 echo
2887 for ac_var in $ac_subst_vars
2889 eval ac_val=\$$ac_var
2890 case $ac_val in
2891 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2892 esac
2893 $as_echo "$ac_var='\''$ac_val'\''"
2894 done | sort
2895 echo
2897 if test -n "$ac_subst_files"; then
2898 $as_echo "## ------------------- ##
2899 ## File substitutions. ##
2900 ## ------------------- ##"
2901 echo
2902 for ac_var in $ac_subst_files
2904 eval ac_val=\$$ac_var
2905 case $ac_val in
2906 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2907 esac
2908 $as_echo "$ac_var='\''$ac_val'\''"
2909 done | sort
2910 echo
2913 if test -s confdefs.h; then
2914 $as_echo "## ----------- ##
2915 ## confdefs.h. ##
2916 ## ----------- ##"
2917 echo
2918 cat confdefs.h
2919 echo
2921 test "$ac_signal" != 0 &&
2922 $as_echo "$as_me: caught signal $ac_signal"
2923 $as_echo "$as_me: exit $exit_status"
2924 } >&5
2925 rm -f core *.core core.conftest.* &&
2926 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2927 exit $exit_status
2929 for ac_signal in 1 2 13 15; do
2930 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2931 done
2932 ac_signal=0
2934 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2935 rm -f -r conftest* confdefs.h
2937 $as_echo "/* confdefs.h */" > confdefs.h
2939 # Predefined preprocessor variables.
2941 cat >>confdefs.h <<_ACEOF
2942 #define PACKAGE_NAME "$PACKAGE_NAME"
2943 _ACEOF
2945 cat >>confdefs.h <<_ACEOF
2946 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2947 _ACEOF
2949 cat >>confdefs.h <<_ACEOF
2950 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2951 _ACEOF
2953 cat >>confdefs.h <<_ACEOF
2954 #define PACKAGE_STRING "$PACKAGE_STRING"
2955 _ACEOF
2957 cat >>confdefs.h <<_ACEOF
2958 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2959 _ACEOF
2961 cat >>confdefs.h <<_ACEOF
2962 #define PACKAGE_URL "$PACKAGE_URL"
2963 _ACEOF
2966 # Let the site file select an alternate cache file if it wants to.
2967 # Prefer an explicitly selected file to automatically selected ones.
2968 ac_site_file1=NONE
2969 ac_site_file2=NONE
2970 if test -n "$CONFIG_SITE"; then
2971 # We do not want a PATH search for config.site.
2972 case $CONFIG_SITE in #((
2973 -*) ac_site_file1=./$CONFIG_SITE;;
2974 */*) ac_site_file1=$CONFIG_SITE;;
2975 *) ac_site_file1=./$CONFIG_SITE;;
2976 esac
2977 elif test "x$prefix" != xNONE; then
2978 ac_site_file1=$prefix/share/config.site
2979 ac_site_file2=$prefix/etc/config.site
2980 else
2981 ac_site_file1=$ac_default_prefix/share/config.site
2982 ac_site_file2=$ac_default_prefix/etc/config.site
2984 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2986 test "x$ac_site_file" = xNONE && continue
2987 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2989 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2990 sed 's/^/| /' "$ac_site_file" >&5
2991 . "$ac_site_file" \
2992 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994 as_fn_error $? "failed to load site script $ac_site_file
2995 See \`config.log' for more details" "$LINENO" 5; }
2997 done
2999 if test -r "$cache_file"; then
3000 # Some versions of bash will fail to source /dev/null (special files
3001 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3002 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3004 $as_echo "$as_me: loading cache $cache_file" >&6;}
3005 case $cache_file in
3006 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3007 *) . "./$cache_file";;
3008 esac
3010 else
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3012 $as_echo "$as_me: creating cache $cache_file" >&6;}
3013 >$cache_file
3016 # Check that the precious variables saved in the cache have kept the same
3017 # value.
3018 ac_cache_corrupted=false
3019 for ac_var in $ac_precious_vars; do
3020 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3021 eval ac_new_set=\$ac_env_${ac_var}_set
3022 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3023 eval ac_new_val=\$ac_env_${ac_var}_value
3024 case $ac_old_set,$ac_new_set in
3025 set,)
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3027 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3028 ac_cache_corrupted=: ;;
3029 ,set)
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3031 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3032 ac_cache_corrupted=: ;;
3033 ,);;
3035 if test "x$ac_old_val" != "x$ac_new_val"; then
3036 # differences in whitespace do not lead to failure.
3037 ac_old_val_w=`echo x $ac_old_val`
3038 ac_new_val_w=`echo x $ac_new_val`
3039 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3041 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3042 ac_cache_corrupted=:
3043 else
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3045 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3046 eval $ac_var=\$ac_old_val
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3049 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3051 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3052 fi;;
3053 esac
3054 # Pass precious variables to config.status.
3055 if test "$ac_new_set" = set; then
3056 case $ac_new_val in
3057 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3058 *) ac_arg=$ac_var=$ac_new_val ;;
3059 esac
3060 case " $ac_configure_args " in
3061 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3062 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3063 esac
3065 done
3066 if $ac_cache_corrupted; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3070 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3071 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3073 ## -------------------- ##
3074 ## Main body of script. ##
3075 ## -------------------- ##
3077 ac_ext=c
3078 ac_cpp='$CPP $CPPFLAGS'
3079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088 ac_config_headers="$ac_config_headers config.h"
3091 # This works around the fact that libtool configuration may change LD
3092 # for this particular configuration, but some shells, instead of
3093 # keeping the changes in LD private, export them just because LD is
3094 # exported. Only used at the end of this file.
3095 ### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
3097 # Find the rest of the source tree framework.
3098 # Default to --enable-multilib
3099 # Check whether --enable-multilib was given.
3100 if test "${enable_multilib+set}" = set; then :
3101 enableval=$enable_multilib; case "$enableval" in
3102 yes) multilib=yes ;;
3103 no) multilib=no ;;
3104 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3105 esac
3106 else
3107 multilib=yes
3111 # We may get other options which we leave undocumented:
3112 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3113 # See config-ml.in if you want the gory details.
3115 if test "$srcdir" = "."; then
3116 if test "$with_target_subdir" != "."; then
3117 multi_basedir="$srcdir/$with_multisrctop../.."
3118 else
3119 multi_basedir="$srcdir/$with_multisrctop.."
3121 else
3122 multi_basedir="$srcdir/.."
3126 # Even if the default multilib is not a cross compilation,
3127 # it may be that some of the other multilibs are.
3128 if test $cross_compiling = no && test $multilib = yes \
3129 && test "x${with_multisubdir}" != x ; then
3130 cross_compiling=maybe
3133 ac_config_commands="$ac_config_commands default-1"
3136 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
3138 # You will slowly go insane if you do not grok the following fact: when
3139 # building v3 as part of the compiler, the top-level /target/ becomes the
3140 # library's /host/. configure then causes --target to default to --host,
3141 # exactly like any other package using autoconf. Therefore, 'target' and
3142 # 'host' will always be the same. This makes sense both for native and
3143 # cross compilers, just think about it for a little while. :-)
3145 # Also, if v3 is being configured as part of a cross compiler, the top-level
3146 # configure script will pass the "real" host as $with_cross_host.
3148 # Do not delete or change the following two lines. For why, see
3149 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
3150 ac_aux_dir=
3151 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3152 if test -f "$ac_dir/install-sh"; then
3153 ac_aux_dir=$ac_dir
3154 ac_install_sh="$ac_aux_dir/install-sh -c"
3155 break
3156 elif test -f "$ac_dir/install.sh"; then
3157 ac_aux_dir=$ac_dir
3158 ac_install_sh="$ac_aux_dir/install.sh -c"
3159 break
3160 elif test -f "$ac_dir/shtool"; then
3161 ac_aux_dir=$ac_dir
3162 ac_install_sh="$ac_aux_dir/shtool install -c"
3163 break
3165 done
3166 if test -z "$ac_aux_dir"; then
3167 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3170 # These three variables are undocumented and unsupported,
3171 # and are intended to be withdrawn in a future Autoconf release.
3172 # They can cause serious problems if a builder's source tree is in a directory
3173 # whose full name contains unusual characters.
3174 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3175 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3176 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3179 # Make sure we can run config.sub.
3180 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3181 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3184 $as_echo_n "checking build system type... " >&6; }
3185 if ${ac_cv_build+:} false; then :
3186 $as_echo_n "(cached) " >&6
3187 else
3188 ac_build_alias=$build_alias
3189 test "x$ac_build_alias" = x &&
3190 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3191 test "x$ac_build_alias" = x &&
3192 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3193 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3194 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3198 $as_echo "$ac_cv_build" >&6; }
3199 case $ac_cv_build in
3200 *-*-*) ;;
3201 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3202 esac
3203 build=$ac_cv_build
3204 ac_save_IFS=$IFS; IFS='-'
3205 set x $ac_cv_build
3206 shift
3207 build_cpu=$1
3208 build_vendor=$2
3209 shift; shift
3210 # Remember, the first character of IFS is used to create $*,
3211 # except with old shells:
3212 build_os=$*
3213 IFS=$ac_save_IFS
3214 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3218 $as_echo_n "checking host system type... " >&6; }
3219 if ${ac_cv_host+:} false; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 if test "x$host_alias" = x; then
3223 ac_cv_host=$ac_cv_build
3224 else
3225 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3226 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3231 $as_echo "$ac_cv_host" >&6; }
3232 case $ac_cv_host in
3233 *-*-*) ;;
3234 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3235 esac
3236 host=$ac_cv_host
3237 ac_save_IFS=$IFS; IFS='-'
3238 set x $ac_cv_host
3239 shift
3240 host_cpu=$1
3241 host_vendor=$2
3242 shift; shift
3243 # Remember, the first character of IFS is used to create $*,
3244 # except with old shells:
3245 host_os=$*
3246 IFS=$ac_save_IFS
3247 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3251 $as_echo_n "checking target system type... " >&6; }
3252 if ${ac_cv_target+:} false; then :
3253 $as_echo_n "(cached) " >&6
3254 else
3255 if test "x$target_alias" = x; then
3256 ac_cv_target=$ac_cv_host
3257 else
3258 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3259 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3264 $as_echo "$ac_cv_target" >&6; }
3265 case $ac_cv_target in
3266 *-*-*) ;;
3267 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3268 esac
3269 target=$ac_cv_target
3270 ac_save_IFS=$IFS; IFS='-'
3271 set x $ac_cv_target
3272 shift
3273 target_cpu=$1
3274 target_vendor=$2
3275 shift; shift
3276 # Remember, the first character of IFS is used to create $*,
3277 # except with old shells:
3278 target_os=$*
3279 IFS=$ac_save_IFS
3280 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3283 # The aliases save the names the user supplied, while $host etc.
3284 # will get canonicalized.
3285 test -n "$target_alias" &&
3286 test "$program_prefix$program_suffix$program_transform_name" = \
3287 NONENONEs,x,x, &&
3288 program_prefix=${target_alias}-
3290 target_alias=${target_alias-$host_alias}
3292 # Handy for debugging:
3293 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3295 if test "$build" != "$host"; then
3296 # We are being configured with some form of cross compiler.
3297 GLIBCXX_IS_NATIVE=false
3298 case "$host","$target" in
3299 # Darwin crosses can use the host system's libraries and headers,
3300 # because of the fat library support. Of course, it must be the
3301 # same version of Darwin on both sides. Allow the user to
3302 # just say --target=foo-darwin without a version number to mean
3303 # "the version on this system".
3304 *-*-darwin*,*-*-darwin*)
3305 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
3306 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
3307 if test $hostos = $targetos || test $targetos = darwin ; then
3308 GLIBCXX_IS_NATIVE=true
3315 esac
3316 else
3317 GLIBCXX_IS_NATIVE=true
3320 # In the case that we're building without headers, we won't have <stdio.h>
3321 # available. In these cases, we have to instruct autotools to never include
3322 # <stdio.h> as a part of default headers.
3324 if test "x$with_headers" = "xno"; then
3325 ac_includes_default=`echo "$ac_includes_default" | sed '/^#include <stdio.h>$/d'`
3329 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
3330 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
3331 # 1.x: minimum required version
3332 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
3333 # of other PACKAGE_* variables will, however, and there's nothing
3334 # we can do about that; they come from AC_INIT).
3335 # foreign: we don't follow the normal rules for GNU packages (no COPYING
3336 # file in the top srcdir, etc, etc), so stop complaining.
3337 # no-dependencies: turns off auto dependency generation (just for now)
3338 # no-dist: we don't want 'dist' and related rules.
3339 # -Wall: turns on all automake warnings...
3340 # -Wno-portability: ...except this one, since GNU make is now required.
3341 am__api_version='1.15'
3343 # Find a good install program. We prefer a C program (faster),
3344 # so one script is as good as another. But avoid the broken or
3345 # incompatible versions:
3346 # SysV /etc/install, /usr/sbin/install
3347 # SunOS /usr/etc/install
3348 # IRIX /sbin/install
3349 # AIX /bin/install
3350 # AmigaOS /C/install, which installs bootblocks on floppy discs
3351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3354 # OS/2's system install, which has a completely different semantic
3355 # ./install, which can be erroneously created by make from ./install.sh.
3356 # Reject install programs that cannot install multiple files.
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3358 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3359 if test -z "$INSTALL"; then
3360 if ${ac_cv_path_install+:} false; then :
3361 $as_echo_n "(cached) " >&6
3362 else
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 # Account for people who put trailing slashes in PATH elements.
3369 case $as_dir/ in #((
3370 ./ | .// | /[cC]/* | \
3371 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3372 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3373 /usr/ucb/* ) ;;
3375 # OSF1 and SCO ODT 3.0 have their own names for install.
3376 # Don't use installbsd from OSF since it installs stuff as root
3377 # by default.
3378 for ac_prog in ginstall scoinst install; do
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3381 if test $ac_prog = install &&
3382 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3383 # AIX install. It has an incompatible calling convention.
3385 elif test $ac_prog = install &&
3386 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3387 # program-specific install script used by HP pwplus--don't use.
3389 else
3390 rm -rf conftest.one conftest.two conftest.dir
3391 echo one > conftest.one
3392 echo two > conftest.two
3393 mkdir conftest.dir
3394 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3395 test -s conftest.one && test -s conftest.two &&
3396 test -s conftest.dir/conftest.one &&
3397 test -s conftest.dir/conftest.two
3398 then
3399 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3400 break 3
3404 done
3405 done
3407 esac
3409 done
3410 IFS=$as_save_IFS
3412 rm -rf conftest.one conftest.two conftest.dir
3415 if test "${ac_cv_path_install+set}" = set; then
3416 INSTALL=$ac_cv_path_install
3417 else
3418 # As a last resort, use the slow shell script. Don't cache a
3419 # value for INSTALL within a source directory, because that will
3420 # break other packages using the cache if that directory is
3421 # removed, or if the value is a relative name.
3422 INSTALL=$ac_install_sh
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3426 $as_echo "$INSTALL" >&6; }
3428 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3429 # It thinks the first close brace ends the variable substitution.
3430 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3432 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3434 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3437 $as_echo_n "checking whether build environment is sane... " >&6; }
3438 # Reject unsafe characters in $srcdir or the absolute working directory
3439 # name. Accept space and tab only in the latter.
3440 am_lf='
3442 case `pwd` in
3443 *[\\\"\#\$\&\'\`$am_lf]*)
3444 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3445 esac
3446 case $srcdir in
3447 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3448 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3449 esac
3451 # Do 'set' in a subshell so we don't clobber the current shell's
3452 # arguments. Must try -L first in case configure is actually a
3453 # symlink; some systems play weird games with the mod time of symlinks
3454 # (eg FreeBSD returns the mod time of the symlink's containing
3455 # directory).
3456 if (
3457 am_has_slept=no
3458 for am_try in 1 2; do
3459 echo "timestamp, slept: $am_has_slept" > conftest.file
3460 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3461 if test "$*" = "X"; then
3462 # -L didn't work.
3463 set X `ls -t "$srcdir/configure" conftest.file`
3465 if test "$*" != "X $srcdir/configure conftest.file" \
3466 && test "$*" != "X conftest.file $srcdir/configure"; then
3468 # If neither matched, then we have a broken ls. This can happen
3469 # if, for instance, CONFIG_SHELL is bash and it inherits a
3470 # broken ls alias from the environment. This has actually
3471 # happened. Such a system could not be considered "sane".
3472 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3473 alias in your environment" "$LINENO" 5
3475 if test "$2" = conftest.file || test $am_try -eq 2; then
3476 break
3478 # Just in case.
3479 sleep 1
3480 am_has_slept=yes
3481 done
3482 test "$2" = conftest.file
3484 then
3485 # Ok.
3487 else
3488 as_fn_error $? "newly created file is older than distributed files!
3489 Check your system clock" "$LINENO" 5
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3492 $as_echo "yes" >&6; }
3493 # If we didn't sleep, we still need to ensure time stamps of config.status and
3494 # generated files are strictly newer.
3495 am_sleep_pid=
3496 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3497 ( sleep 1 ) &
3498 am_sleep_pid=$!
3501 rm -f conftest.file
3503 test "$program_prefix" != NONE &&
3504 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3505 # Use a double $ so make ignores it.
3506 test "$program_suffix" != NONE &&
3507 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3508 # Double any \ or $.
3509 # By default was `s,x,x', remove it if useless.
3510 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3511 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3513 # Expand $ac_aux_dir to an absolute path.
3514 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3516 if test x"${MISSING+set}" != xset; then
3517 case $am_aux_dir in
3518 *\ * | *\ *)
3519 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3521 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3522 esac
3524 # Use eval to expand $SHELL
3525 if eval "$MISSING --is-lightweight"; then
3526 am_missing_run="$MISSING "
3527 else
3528 am_missing_run=
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3530 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3533 if test x"${install_sh+set}" != xset; then
3534 case $am_aux_dir in
3535 *\ * | *\ *)
3536 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3538 install_sh="\${SHELL} $am_aux_dir/install-sh"
3539 esac
3542 # Installed binaries are usually stripped using 'strip' when the user
3543 # run "make install-strip". However 'strip' might not be the right
3544 # tool to use in cross-compilation environments, therefore Automake
3545 # will honor the 'STRIP' environment variable to overrule this program.
3546 if test "$cross_compiling" != no; then
3547 if test -n "$ac_tool_prefix"; then
3548 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3549 set dummy ${ac_tool_prefix}strip; ac_word=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if ${ac_cv_prog_STRIP+:} false; then :
3553 $as_echo_n "(cached) " >&6
3554 else
3555 if test -n "$STRIP"; then
3556 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3557 else
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3561 IFS=$as_save_IFS
3562 test -z "$as_dir" && as_dir=.
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 break 2
3569 done
3570 done
3571 IFS=$as_save_IFS
3575 STRIP=$ac_cv_prog_STRIP
3576 if test -n "$STRIP"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3578 $as_echo "$STRIP" >&6; }
3579 else
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3586 if test -z "$ac_cv_prog_STRIP"; then
3587 ac_ct_STRIP=$STRIP
3588 # Extract the first word of "strip", so it can be a program name with args.
3589 set dummy strip; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 if test -n "$ac_ct_STRIP"; then
3596 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605 ac_cv_prog_ac_ct_STRIP="strip"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 break 2
3609 done
3610 done
3611 IFS=$as_save_IFS
3615 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3616 if test -n "$ac_ct_STRIP"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3618 $as_echo "$ac_ct_STRIP" >&6; }
3619 else
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3624 if test "x$ac_ct_STRIP" = x; then
3625 STRIP=":"
3626 else
3627 case $cross_compiling:$ac_tool_warned in
3628 yes:)
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3631 ac_tool_warned=yes ;;
3632 esac
3633 STRIP=$ac_ct_STRIP
3635 else
3636 STRIP="$ac_cv_prog_STRIP"
3640 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3643 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3644 if test -z "$MKDIR_P"; then
3645 if ${ac_cv_path_mkdir+:} false; then :
3646 $as_echo_n "(cached) " >&6
3647 else
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3651 IFS=$as_save_IFS
3652 test -z "$as_dir" && as_dir=.
3653 for ac_prog in mkdir gmkdir; do
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3656 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3657 'mkdir (GNU coreutils) '* | \
3658 'mkdir (coreutils) '* | \
3659 'mkdir (fileutils) '4.1*)
3660 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3661 break 3;;
3662 esac
3663 done
3664 done
3665 done
3666 IFS=$as_save_IFS
3670 test -d ./--version && rmdir ./--version
3671 if test "${ac_cv_path_mkdir+set}" = set; then
3672 MKDIR_P="$ac_cv_path_mkdir -p"
3673 else
3674 # As a last resort, use the slow shell script. Don't cache a
3675 # value for MKDIR_P within a source directory, because that will
3676 # break other packages using the cache if that directory is
3677 # removed, or if the value is a relative name.
3678 MKDIR_P="$ac_install_sh -d"
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3682 $as_echo "$MKDIR_P" >&6; }
3684 for ac_prog in gawk mawk nawk awk
3686 # Extract the first word of "$ac_prog", so it can be a program name with args.
3687 set dummy $ac_prog; ac_word=$2
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3689 $as_echo_n "checking for $ac_word... " >&6; }
3690 if ${ac_cv_prog_AWK+:} false; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 if test -n "$AWK"; then
3694 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3695 else
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3703 ac_cv_prog_AWK="$ac_prog"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 break 2
3707 done
3708 done
3709 IFS=$as_save_IFS
3713 AWK=$ac_cv_prog_AWK
3714 if test -n "$AWK"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3716 $as_echo "$AWK" >&6; }
3717 else
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3723 test -n "$AWK" && break
3724 done
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3727 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3728 set x ${MAKE-make}
3729 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3730 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3731 $as_echo_n "(cached) " >&6
3732 else
3733 cat >conftest.make <<\_ACEOF
3734 SHELL = /bin/sh
3735 all:
3736 @echo '@@@%%%=$(MAKE)=@@@%%%'
3737 _ACEOF
3738 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3739 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3740 *@@@%%%=?*=@@@%%%*)
3741 eval ac_cv_prog_make_${ac_make}_set=yes;;
3743 eval ac_cv_prog_make_${ac_make}_set=no;;
3744 esac
3745 rm -f conftest.make
3747 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3749 $as_echo "yes" >&6; }
3750 SET_MAKE=
3751 else
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753 $as_echo "no" >&6; }
3754 SET_MAKE="MAKE=${MAKE-make}"
3757 rm -rf .tst 2>/dev/null
3758 mkdir .tst 2>/dev/null
3759 if test -d .tst; then
3760 am__leading_dot=.
3761 else
3762 am__leading_dot=_
3764 rmdir .tst 2>/dev/null
3766 # Check whether --enable-silent-rules was given.
3767 if test "${enable_silent_rules+set}" = set; then :
3768 enableval=$enable_silent_rules;
3771 case $enable_silent_rules in # (((
3772 yes) AM_DEFAULT_VERBOSITY=0;;
3773 no) AM_DEFAULT_VERBOSITY=1;;
3774 *) AM_DEFAULT_VERBOSITY=1;;
3775 esac
3776 am_make=${MAKE-make}
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3778 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3779 if ${am_cv_make_support_nested_variables+:} false; then :
3780 $as_echo_n "(cached) " >&6
3781 else
3782 if $as_echo 'TRUE=$(BAR$(V))
3783 BAR0=false
3784 BAR1=true
3786 am__doit:
3787 @$(TRUE)
3788 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3789 am_cv_make_support_nested_variables=yes
3790 else
3791 am_cv_make_support_nested_variables=no
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3795 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3796 if test $am_cv_make_support_nested_variables = yes; then
3797 AM_V='$(V)'
3798 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3799 else
3800 AM_V=$AM_DEFAULT_VERBOSITY
3801 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3803 AM_BACKSLASH='\'
3805 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3806 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3807 # is not polluted with repeated "-I."
3808 am__isrc=' -I$(srcdir)'
3809 # test to see if srcdir already configured
3810 if test -f $srcdir/config.status; then
3811 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3815 # test whether we have cygpath
3816 if test -z "$CYGPATH_W"; then
3817 if (cygpath --version) >/dev/null 2>/dev/null; then
3818 CYGPATH_W='cygpath -w'
3819 else
3820 CYGPATH_W=echo
3825 # Define the identity of the package.
3826 PACKAGE='libstdc++'
3827 VERSION='version-unused'
3830 # Some tools Automake needs.
3832 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3835 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3838 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3841 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3844 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3846 # For better backward compatibility. To be removed once Automake 1.9.x
3847 # dies out for good. For more background, see:
3848 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3849 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3850 mkdir_p='$(MKDIR_P)'
3852 # We need awk for the "check" target (and possibly the TAP driver). The
3853 # system "awk" is bad on some platforms.
3854 # Always define AMTAR for backward compatibility. Yes, it's still used
3855 # in the wild :-( We should find a proper way to deprecate it ...
3856 AMTAR='$${TAR-tar}'
3859 # We'll loop over all known methods to create a tar archive until one works.
3860 _am_tools='gnutar pax cpio none'
3862 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3869 # POSIX will say in a future version that running "rm -f" with no argument
3870 # is OK; and we want to be able to make that assumption in our Makefile
3871 # recipes. So use an aggressive probe to check that the usage we want is
3872 # actually supported "in the wild" to an acceptable degree.
3873 # See automake bug#10828.
3874 # To make any issue more visible, cause the running configure to be aborted
3875 # by default if the 'rm' program in use doesn't match our expectations; the
3876 # user can still override this though.
3877 if rm -f && rm -fr && rm -rf; then : OK; else
3878 cat >&2 <<'END'
3879 Oops!
3881 Your 'rm' program seems unable to run without file operands specified
3882 on the command line, even when the '-f' option is present. This is contrary
3883 to the behaviour of most rm programs out there, and not conforming with
3884 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3886 Please tell bug-automake@gnu.org about your system, including the value
3887 of your $PATH and any error possibly output before this message. This
3888 can help us improve future automake versions.
3891 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3892 echo 'Configuration will proceed anyway, since you have set the' >&2
3893 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3894 echo >&2
3895 else
3896 cat >&2 <<'END'
3897 Aborting the configuration process, to ensure you take notice of the issue.
3899 You can download and install GNU coreutils to get an 'rm' implementation
3900 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3902 If you want to complete the configuration process using your problematic
3903 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3904 to "yes", and re-run configure.
3907 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3914 # -fno-builtin must be present here so that a non-conflicting form of
3915 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
3917 save_CXXFLAGS="$CXXFLAGS"
3918 CXXFLAGS="$CXXFLAGS -fno-builtin"
3919 ac_ext=c
3920 ac_cpp='$CPP $CPPFLAGS'
3921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3924 if test -n "$ac_tool_prefix"; then
3925 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3926 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928 $as_echo_n "checking for $ac_word... " >&6; }
3929 if ${ac_cv_prog_CC+:} false; then :
3930 $as_echo_n "(cached) " >&6
3931 else
3932 if test -n "$CC"; then
3933 ac_cv_prog_CC="$CC" # Let the user override the test.
3934 else
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 break 2
3946 done
3947 done
3948 IFS=$as_save_IFS
3952 CC=$ac_cv_prog_CC
3953 if test -n "$CC"; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3955 $as_echo "$CC" >&6; }
3956 else
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958 $as_echo "no" >&6; }
3963 if test -z "$ac_cv_prog_CC"; then
3964 ac_ct_CC=$CC
3965 # Extract the first word of "gcc", so it can be a program name with args.
3966 set dummy gcc; ac_word=$2
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3968 $as_echo_n "checking for $ac_word... " >&6; }
3969 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3970 $as_echo_n "(cached) " >&6
3971 else
3972 if test -n "$ac_ct_CC"; then
3973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3974 else
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH
3978 IFS=$as_save_IFS
3979 test -z "$as_dir" && as_dir=.
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3982 ac_cv_prog_ac_ct_CC="gcc"
3983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 break 2
3986 done
3987 done
3988 IFS=$as_save_IFS
3992 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3993 if test -n "$ac_ct_CC"; then
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3995 $as_echo "$ac_ct_CC" >&6; }
3996 else
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998 $as_echo "no" >&6; }
4001 if test "x$ac_ct_CC" = x; then
4002 CC=""
4003 else
4004 case $cross_compiling:$ac_tool_warned in
4005 yes:)
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4008 ac_tool_warned=yes ;;
4009 esac
4010 CC=$ac_ct_CC
4012 else
4013 CC="$ac_cv_prog_CC"
4016 if test -z "$CC"; then
4017 if test -n "$ac_tool_prefix"; then
4018 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4019 set dummy ${ac_tool_prefix}cc; ac_word=$2
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021 $as_echo_n "checking for $ac_word... " >&6; }
4022 if ${ac_cv_prog_CC+:} false; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 if test -n "$CC"; then
4026 ac_cv_prog_CC="$CC" # Let the user override the test.
4027 else
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035 ac_cv_prog_CC="${ac_tool_prefix}cc"
4036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 break 2
4039 done
4040 done
4041 IFS=$as_save_IFS
4045 CC=$ac_cv_prog_CC
4046 if test -n "$CC"; then
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4048 $as_echo "$CC" >&6; }
4049 else
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 $as_echo "no" >&6; }
4057 if test -z "$CC"; then
4058 # Extract the first word of "cc", so it can be a program name with args.
4059 set dummy cc; ac_word=$2
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4061 $as_echo_n "checking for $ac_word... " >&6; }
4062 if ${ac_cv_prog_CC+:} false; then :
4063 $as_echo_n "(cached) " >&6
4064 else
4065 if test -n "$CC"; then
4066 ac_cv_prog_CC="$CC" # Let the user override the test.
4067 else
4068 ac_prog_rejected=no
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH
4072 IFS=$as_save_IFS
4073 test -z "$as_dir" && as_dir=.
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4076 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4077 ac_prog_rejected=yes
4078 continue
4080 ac_cv_prog_CC="cc"
4081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 break 2
4084 done
4085 done
4086 IFS=$as_save_IFS
4088 if test $ac_prog_rejected = yes; then
4089 # We found a bogon in the path, so make sure we never use it.
4090 set dummy $ac_cv_prog_CC
4091 shift
4092 if test $# != 0; then
4093 # We chose a different compiler from the bogus one.
4094 # However, it has the same basename, so the bogon will be chosen
4095 # first if we set CC to just the basename; use the full file name.
4096 shift
4097 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4102 CC=$ac_cv_prog_CC
4103 if test -n "$CC"; then
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4105 $as_echo "$CC" >&6; }
4106 else
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108 $as_echo "no" >&6; }
4113 if test -z "$CC"; then
4114 if test -n "$ac_tool_prefix"; then
4115 for ac_prog in cl.exe
4117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if ${ac_cv_prog_CC+:} false; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 if test -n "$CC"; then
4125 ac_cv_prog_CC="$CC" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 break 2
4138 done
4139 done
4140 IFS=$as_save_IFS
4144 CC=$ac_cv_prog_CC
4145 if test -n "$CC"; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4147 $as_echo "$CC" >&6; }
4148 else
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 $as_echo "no" >&6; }
4154 test -n "$CC" && break
4155 done
4157 if test -z "$CC"; then
4158 ac_ct_CC=$CC
4159 for ac_prog in cl.exe
4161 # Extract the first word of "$ac_prog", so it can be a program name with args.
4162 set dummy $ac_prog; ac_word=$2
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164 $as_echo_n "checking for $ac_word... " >&6; }
4165 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 if test -n "$ac_ct_CC"; then
4169 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4170 else
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178 ac_cv_prog_ac_ct_CC="$ac_prog"
4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4182 done
4183 done
4184 IFS=$as_save_IFS
4188 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4189 if test -n "$ac_ct_CC"; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4191 $as_echo "$ac_ct_CC" >&6; }
4192 else
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4198 test -n "$ac_ct_CC" && break
4199 done
4201 if test "x$ac_ct_CC" = x; then
4202 CC=""
4203 else
4204 case $cross_compiling:$ac_tool_warned in
4205 yes:)
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4208 ac_tool_warned=yes ;;
4209 esac
4210 CC=$ac_ct_CC
4217 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4219 as_fn_error $? "no acceptable C compiler found in \$PATH
4220 See \`config.log' for more details" "$LINENO" 5; }
4222 # Provide some information about the compiler.
4223 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4224 set X $ac_compile
4225 ac_compiler=$2
4226 for ac_option in --version -v -V -qversion; do
4227 { { ac_try="$ac_compiler $ac_option >&5"
4228 case "(($ac_try" in
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4231 esac
4232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4233 $as_echo "$ac_try_echo"; } >&5
4234 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4235 ac_status=$?
4236 if test -s conftest.err; then
4237 sed '10a\
4238 ... rest of stderr output deleted ...
4239 10q' conftest.err >conftest.er1
4240 cat conftest.er1 >&5
4242 rm -f conftest.er1 conftest.err
4243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4244 test $ac_status = 0; }
4245 done
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249 #include <stdio.h>
4251 main ()
4253 printf ("hello world\n");
4255 return 0;
4257 _ACEOF
4258 # FIXME: Cleanup?
4259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4260 (eval $ac_link) 2>&5
4261 ac_status=$?
4262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4263 test $ac_status = 0; }; then :
4264 gcc_no_link=no
4265 else
4266 gcc_no_link=yes
4268 if test x$gcc_no_link = xyes; then
4269 # Setting cross_compile will disable run tests; it will
4270 # also disable AC_CHECK_FILE but that's generally
4271 # correct if we can't link.
4272 cross_compiling=yes
4273 EXEEXT=
4274 else
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4279 main ()
4283 return 0;
4285 _ACEOF
4286 ac_clean_files_save=$ac_clean_files
4287 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4288 # Try to create an executable without -o first, disregard a.out.
4289 # It will help us diagnose broken compilers, and finding out an intuition
4290 # of exeext.
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4292 $as_echo_n "checking whether the C compiler works... " >&6; }
4293 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4295 # The possible output files:
4296 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4298 ac_rmfiles=
4299 for ac_file in $ac_files
4301 case $ac_file in
4302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4303 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4304 esac
4305 done
4306 rm -f $ac_rmfiles
4308 if { { ac_try="$ac_link_default"
4309 case "(($ac_try" in
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4312 esac
4313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4314 $as_echo "$ac_try_echo"; } >&5
4315 (eval "$ac_link_default") 2>&5
4316 ac_status=$?
4317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4318 test $ac_status = 0; }; then :
4319 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4320 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4321 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4322 # so that the user can short-circuit this test for compilers unknown to
4323 # Autoconf.
4324 for ac_file in $ac_files ''
4326 test -f "$ac_file" || continue
4327 case $ac_file in
4328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4330 [ab].out )
4331 # We found the default executable, but exeext='' is most
4332 # certainly right.
4333 break;;
4334 *.* )
4335 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4336 then :; else
4337 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4339 # We set ac_cv_exeext here because the later test for it is not
4340 # safe: cross compilers may not add the suffix if given an `-o'
4341 # argument, so we may need to know it at that point already.
4342 # Even if this section looks crufty: it has the advantage of
4343 # actually working.
4344 break;;
4346 break;;
4347 esac
4348 done
4349 test "$ac_cv_exeext" = no && ac_cv_exeext=
4351 else
4352 ac_file=''
4354 if test -z "$ac_file"; then :
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4356 $as_echo "no" >&6; }
4357 $as_echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4362 as_fn_error 77 "C compiler cannot create executables
4363 See \`config.log' for more details" "$LINENO" 5; }
4364 else
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4366 $as_echo "yes" >&6; }
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4369 $as_echo_n "checking for C compiler default output file name... " >&6; }
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4371 $as_echo "$ac_file" >&6; }
4372 ac_exeext=$ac_cv_exeext
4374 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4375 ac_clean_files=$ac_clean_files_save
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4377 $as_echo_n "checking for suffix of executables... " >&6; }
4378 if { { ac_try="$ac_link"
4379 case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382 esac
4383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4384 $as_echo "$ac_try_echo"; } >&5
4385 (eval "$ac_link") 2>&5
4386 ac_status=$?
4387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4388 test $ac_status = 0; }; then :
4389 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4390 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4391 # work properly (i.e., refer to `conftest.exe'), while it won't with
4392 # `rm'.
4393 for ac_file in conftest.exe conftest conftest.*; do
4394 test -f "$ac_file" || continue
4395 case $ac_file in
4396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4397 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4398 break;;
4399 * ) break;;
4400 esac
4401 done
4402 else
4403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4405 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4406 See \`config.log' for more details" "$LINENO" 5; }
4408 rm -f conftest conftest$ac_cv_exeext
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4410 $as_echo "$ac_cv_exeext" >&6; }
4412 rm -f conftest.$ac_ext
4413 EXEEXT=$ac_cv_exeext
4414 ac_exeext=$EXEEXT
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417 #include <stdio.h>
4419 main ()
4421 FILE *f = fopen ("conftest.out", "w");
4422 return ferror (f) || fclose (f) != 0;
4425 return 0;
4427 _ACEOF
4428 ac_clean_files="$ac_clean_files conftest.out"
4429 # Check that the compiler produces executables we can run. If not, either
4430 # the compiler is broken, or we cross compile.
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4432 $as_echo_n "checking whether we are cross compiling... " >&6; }
4433 if test "$cross_compiling" != yes; then
4434 { { ac_try="$ac_link"
4435 case "(($ac_try" in
4436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437 *) ac_try_echo=$ac_try;;
4438 esac
4439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4440 $as_echo "$ac_try_echo"; } >&5
4441 (eval "$ac_link") 2>&5
4442 ac_status=$?
4443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4444 test $ac_status = 0; }
4445 if { ac_try='./conftest$ac_cv_exeext'
4446 { { case "(($ac_try" in
4447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4448 *) ac_try_echo=$ac_try;;
4449 esac
4450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4451 $as_echo "$ac_try_echo"; } >&5
4452 (eval "$ac_try") 2>&5
4453 ac_status=$?
4454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4455 test $ac_status = 0; }; }; then
4456 cross_compiling=no
4457 else
4458 if test "$cross_compiling" = maybe; then
4459 cross_compiling=yes
4460 else
4461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4463 as_fn_error $? "cannot run C compiled programs.
4464 If you meant to cross compile, use \`--host'.
4465 See \`config.log' for more details" "$LINENO" 5; }
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4470 $as_echo "$cross_compiling" >&6; }
4472 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4473 ac_clean_files=$ac_clean_files_save
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4476 $as_echo_n "checking for suffix of object files... " >&6; }
4477 if ${ac_cv_objext+:} false; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4484 main ()
4488 return 0;
4490 _ACEOF
4491 rm -f conftest.o conftest.obj
4492 if { { ac_try="$ac_compile"
4493 case "(($ac_try" in
4494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495 *) ac_try_echo=$ac_try;;
4496 esac
4497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4498 $as_echo "$ac_try_echo"; } >&5
4499 (eval "$ac_compile") 2>&5
4500 ac_status=$?
4501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4502 test $ac_status = 0; }; then :
4503 for ac_file in conftest.o conftest.obj conftest.*; do
4504 test -f "$ac_file" || continue;
4505 case $ac_file in
4506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4507 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4508 break;;
4509 esac
4510 done
4511 else
4512 $as_echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4517 as_fn_error $? "cannot compute suffix of object files: cannot compile
4518 See \`config.log' for more details" "$LINENO" 5; }
4520 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4523 $as_echo "$ac_cv_objext" >&6; }
4524 OBJEXT=$ac_cv_objext
4525 ac_objext=$OBJEXT
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4527 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4528 if ${ac_cv_c_compiler_gnu+:} false; then :
4529 $as_echo_n "(cached) " >&6
4530 else
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4535 main ()
4537 #ifndef __GNUC__
4538 choke me
4539 #endif
4542 return 0;
4544 _ACEOF
4545 if ac_fn_c_try_compile "$LINENO"; then :
4546 ac_compiler_gnu=yes
4547 else
4548 ac_compiler_gnu=no
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4551 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4555 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4556 if test $ac_compiler_gnu = yes; then
4557 GCC=yes
4558 else
4559 GCC=
4561 ac_test_CFLAGS=${CFLAGS+set}
4562 ac_save_CFLAGS=$CFLAGS
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4564 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4565 if ${ac_cv_prog_cc_g+:} false; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 ac_save_c_werror_flag=$ac_c_werror_flag
4569 ac_c_werror_flag=yes
4570 ac_cv_prog_cc_g=no
4571 CFLAGS="-g"
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4576 main ()
4580 return 0;
4582 _ACEOF
4583 if ac_fn_c_try_compile "$LINENO"; then :
4584 ac_cv_prog_cc_g=yes
4585 else
4586 CFLAGS=""
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4591 main ()
4595 return 0;
4597 _ACEOF
4598 if ac_fn_c_try_compile "$LINENO"; then :
4600 else
4601 ac_c_werror_flag=$ac_save_c_werror_flag
4602 CFLAGS="-g"
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4607 main ()
4611 return 0;
4613 _ACEOF
4614 if ac_fn_c_try_compile "$LINENO"; then :
4615 ac_cv_prog_cc_g=yes
4617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 ac_c_werror_flag=$ac_save_c_werror_flag
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4625 $as_echo "$ac_cv_prog_cc_g" >&6; }
4626 if test "$ac_test_CFLAGS" = set; then
4627 CFLAGS=$ac_save_CFLAGS
4628 elif test $ac_cv_prog_cc_g = yes; then
4629 if test "$GCC" = yes; then
4630 CFLAGS="-g -O2"
4631 else
4632 CFLAGS="-g"
4634 else
4635 if test "$GCC" = yes; then
4636 CFLAGS="-O2"
4637 else
4638 CFLAGS=
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4642 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4643 if ${ac_cv_prog_cc_c89+:} false; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 ac_cv_prog_cc_c89=no
4647 ac_save_CC=$CC
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4650 #include <stdarg.h>
4651 #include <stdio.h>
4652 struct stat;
4653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4654 struct buf { int x; };
4655 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4656 static char *e (p, i)
4657 char **p;
4658 int i;
4660 return p[i];
4662 static char *f (char * (*g) (char **, int), char **p, ...)
4664 char *s;
4665 va_list v;
4666 va_start (v,p);
4667 s = g (p, va_arg (v,int));
4668 va_end (v);
4669 return s;
4672 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4673 function prototypes and stuff, but not '\xHH' hex character constants.
4674 These don't provoke an error unfortunately, instead are silently treated
4675 as 'x'. The following induces an error, until -std is added to get
4676 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4677 array size at least. It's necessary to write '\x00'==0 to get something
4678 that's true only with -std. */
4679 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4681 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4682 inside strings and character constants. */
4683 #define FOO(x) 'x'
4684 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4686 int test (int i, double x);
4687 struct s1 {int (*f) (int a);};
4688 struct s2 {int (*f) (double a);};
4689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4690 int argc;
4691 char **argv;
4693 main ()
4695 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4697 return 0;
4699 _ACEOF
4700 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4701 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4703 CC="$ac_save_CC $ac_arg"
4704 if ac_fn_c_try_compile "$LINENO"; then :
4705 ac_cv_prog_cc_c89=$ac_arg
4707 rm -f core conftest.err conftest.$ac_objext
4708 test "x$ac_cv_prog_cc_c89" != "xno" && break
4709 done
4710 rm -f conftest.$ac_ext
4711 CC=$ac_save_CC
4714 # AC_CACHE_VAL
4715 case "x$ac_cv_prog_cc_c89" in
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4718 $as_echo "none needed" >&6; } ;;
4719 xno)
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4721 $as_echo "unsupported" >&6; } ;;
4723 CC="$CC $ac_cv_prog_cc_c89"
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4725 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4726 esac
4727 if test "x$ac_cv_prog_cc_c89" != xno; then :
4731 ac_ext=c
4732 ac_cpp='$CPP $CPPFLAGS'
4733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737 ac_ext=c
4738 ac_cpp='$CPP $CPPFLAGS'
4739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4743 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4744 if ${am_cv_prog_cc_c_o+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4751 main ()
4755 return 0;
4757 _ACEOF
4758 # Make sure it works both with $CC and with simple cc.
4759 # Following AC_PROG_CC_C_O, we do the test twice because some
4760 # compilers refuse to overwrite an existing .o file with -o,
4761 # though they will create one.
4762 am_cv_prog_cc_c_o=yes
4763 for am_i in 1 2; do
4764 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4765 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } \
4769 && test -f conftest2.$ac_objext; then
4770 : OK
4771 else
4772 am_cv_prog_cc_c_o=no
4773 break
4775 done
4776 rm -f core conftest*
4777 unset am_i
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4780 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4781 if test "$am_cv_prog_cc_c_o" != yes; then
4782 # Losing compiler, so override with the script.
4783 # FIXME: It is wrong to rewrite CC.
4784 # But if we don't then we get into trouble of one sort or another.
4785 # A longer-term fix would be to have automake use am__CC in this case,
4786 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4787 CC="$am_aux_dir/compile $CC"
4789 ac_ext=c
4790 ac_cpp='$CPP $CPPFLAGS'
4791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4796 ac_ext=cpp
4797 ac_cpp='$CXXCPP $CPPFLAGS'
4798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4801 if test -z "$CXX"; then
4802 if test -n "$CCC"; then
4803 CXX=$CCC
4804 else
4805 if test -n "$ac_tool_prefix"; then
4806 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811 $as_echo_n "checking for $ac_word... " >&6; }
4812 if ${ac_cv_prog_CXX+:} false; then :
4813 $as_echo_n "(cached) " >&6
4814 else
4815 if test -n "$CXX"; then
4816 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4817 else
4818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4829 done
4830 done
4831 IFS=$as_save_IFS
4835 CXX=$ac_cv_prog_CXX
4836 if test -n "$CXX"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4838 $as_echo "$CXX" >&6; }
4839 else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4845 test -n "$CXX" && break
4846 done
4848 if test -z "$CXX"; then
4849 ac_ct_CXX=$CXX
4850 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4852 # Extract the first word of "$ac_prog", so it can be a program name with args.
4853 set dummy $ac_prog; ac_word=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 if test -n "$ac_ct_CXX"; then
4860 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4869 ac_cv_prog_ac_ct_CXX="$ac_prog"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4873 done
4874 done
4875 IFS=$as_save_IFS
4879 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4880 if test -n "$ac_ct_CXX"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4882 $as_echo "$ac_ct_CXX" >&6; }
4883 else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4889 test -n "$ac_ct_CXX" && break
4890 done
4892 if test "x$ac_ct_CXX" = x; then
4893 CXX="g++"
4894 else
4895 case $cross_compiling:$ac_tool_warned in
4896 yes:)
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4899 ac_tool_warned=yes ;;
4900 esac
4901 CXX=$ac_ct_CXX
4907 # Provide some information about the compiler.
4908 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4909 set X $ac_compile
4910 ac_compiler=$2
4911 for ac_option in --version -v -V -qversion; do
4912 { { ac_try="$ac_compiler $ac_option >&5"
4913 case "(($ac_try" in
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4916 esac
4917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4918 $as_echo "$ac_try_echo"; } >&5
4919 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4920 ac_status=$?
4921 if test -s conftest.err; then
4922 sed '10a\
4923 ... rest of stderr output deleted ...
4924 10q' conftest.err >conftest.er1
4925 cat conftest.er1 >&5
4927 rm -f conftest.er1 conftest.err
4928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4929 test $ac_status = 0; }
4930 done
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4933 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4934 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4941 main ()
4943 #ifndef __GNUC__
4944 choke me
4945 #endif
4948 return 0;
4950 _ACEOF
4951 if ac_fn_cxx_try_compile "$LINENO"; then :
4952 ac_compiler_gnu=yes
4953 else
4954 ac_compiler_gnu=no
4956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4961 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4962 if test $ac_compiler_gnu = yes; then
4963 GXX=yes
4964 else
4965 GXX=
4967 ac_test_CXXFLAGS=${CXXFLAGS+set}
4968 ac_save_CXXFLAGS=$CXXFLAGS
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4970 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4971 if ${ac_cv_prog_cxx_g+:} false; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4975 ac_cxx_werror_flag=yes
4976 ac_cv_prog_cxx_g=no
4977 CXXFLAGS="-g"
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4982 main ()
4986 return 0;
4988 _ACEOF
4989 if ac_fn_cxx_try_compile "$LINENO"; then :
4990 ac_cv_prog_cxx_g=yes
4991 else
4992 CXXFLAGS=""
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4997 main ()
5001 return 0;
5003 _ACEOF
5004 if ac_fn_cxx_try_compile "$LINENO"; then :
5006 else
5007 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5008 CXXFLAGS="-g"
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5013 main ()
5017 return 0;
5019 _ACEOF
5020 if ac_fn_cxx_try_compile "$LINENO"; then :
5021 ac_cv_prog_cxx_g=yes
5023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5028 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5031 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5032 if test "$ac_test_CXXFLAGS" = set; then
5033 CXXFLAGS=$ac_save_CXXFLAGS
5034 elif test $ac_cv_prog_cxx_g = yes; then
5035 if test "$GXX" = yes; then
5036 CXXFLAGS="-g -O2"
5037 else
5038 CXXFLAGS="-g"
5040 else
5041 if test "$GXX" = yes; then
5042 CXXFLAGS="-O2"
5043 else
5044 CXXFLAGS=
5047 ac_ext=c
5048 ac_cpp='$CPP $CPPFLAGS'
5049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5053 CXXFLAGS="$save_CXXFLAGS"
5056 # Check whether --enable-largefile was given.
5057 if test "${enable_largefile+set}" = set; then :
5058 enableval=$enable_largefile;
5061 if test "$enable_largefile" != no; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5064 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5065 if ${ac_cv_sys_largefile_CC+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 ac_cv_sys_largefile_CC=no
5069 if test "$GCC" != yes; then
5070 ac_save_CC=$CC
5071 while :; do
5072 # IRIX 6.2 and later do not support large files by default,
5073 # so use the C compiler's -n32 option if that helps.
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5076 #include <sys/types.h>
5077 /* Check that off_t can represent 2**63 - 1 correctly.
5078 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5079 since some C++ compilers masquerading as C compilers
5080 incorrectly reject 9223372036854775807. */
5081 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5082 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5083 && LARGE_OFF_T % 2147483647 == 1)
5084 ? 1 : -1];
5086 main ()
5090 return 0;
5092 _ACEOF
5093 if ac_fn_c_try_compile "$LINENO"; then :
5094 break
5096 rm -f core conftest.err conftest.$ac_objext
5097 CC="$CC -n32"
5098 if ac_fn_c_try_compile "$LINENO"; then :
5099 ac_cv_sys_largefile_CC=' -n32'; break
5101 rm -f core conftest.err conftest.$ac_objext
5102 break
5103 done
5104 CC=$ac_save_CC
5105 rm -f conftest.$ac_ext
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5109 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5110 if test "$ac_cv_sys_largefile_CC" != no; then
5111 CC=$CC$ac_cv_sys_largefile_CC
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5115 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5116 if ${ac_cv_sys_file_offset_bits+:} false; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 while :; do
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 #include <sys/types.h>
5123 /* Check that off_t can represent 2**63 - 1 correctly.
5124 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5125 since some C++ compilers masquerading as C compilers
5126 incorrectly reject 9223372036854775807. */
5127 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5128 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5129 && LARGE_OFF_T % 2147483647 == 1)
5130 ? 1 : -1];
5132 main ()
5136 return 0;
5138 _ACEOF
5139 if ac_fn_c_try_compile "$LINENO"; then :
5140 ac_cv_sys_file_offset_bits=no; break
5142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h. */
5145 #define _FILE_OFFSET_BITS 64
5146 #include <sys/types.h>
5147 /* Check that off_t can represent 2**63 - 1 correctly.
5148 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5149 since some C++ compilers masquerading as C compilers
5150 incorrectly reject 9223372036854775807. */
5151 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5153 && LARGE_OFF_T % 2147483647 == 1)
5154 ? 1 : -1];
5156 main ()
5160 return 0;
5162 _ACEOF
5163 if ac_fn_c_try_compile "$LINENO"; then :
5164 ac_cv_sys_file_offset_bits=64; break
5166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167 ac_cv_sys_file_offset_bits=unknown
5168 break
5169 done
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5172 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5173 case $ac_cv_sys_file_offset_bits in #(
5174 no | unknown) ;;
5176 cat >>confdefs.h <<_ACEOF
5177 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5178 _ACEOF
5180 esac
5181 rm -rf conftest*
5182 if test $ac_cv_sys_file_offset_bits = unknown; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5184 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5185 if ${ac_cv_sys_large_files+:} false; then :
5186 $as_echo_n "(cached) " >&6
5187 else
5188 while :; do
5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h. */
5191 #include <sys/types.h>
5192 /* Check that off_t can represent 2**63 - 1 correctly.
5193 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5194 since some C++ compilers masquerading as C compilers
5195 incorrectly reject 9223372036854775807. */
5196 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5197 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5198 && LARGE_OFF_T % 2147483647 == 1)
5199 ? 1 : -1];
5201 main ()
5205 return 0;
5207 _ACEOF
5208 if ac_fn_c_try_compile "$LINENO"; then :
5209 ac_cv_sys_large_files=no; break
5211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5214 #define _LARGE_FILES 1
5215 #include <sys/types.h>
5216 /* Check that off_t can represent 2**63 - 1 correctly.
5217 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5218 since some C++ compilers masquerading as C compilers
5219 incorrectly reject 9223372036854775807. */
5220 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5222 && LARGE_OFF_T % 2147483647 == 1)
5223 ? 1 : -1];
5225 main ()
5229 return 0;
5231 _ACEOF
5232 if ac_fn_c_try_compile "$LINENO"; then :
5233 ac_cv_sys_large_files=1; break
5235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236 ac_cv_sys_large_files=unknown
5237 break
5238 done
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5241 $as_echo "$ac_cv_sys_large_files" >&6; }
5242 case $ac_cv_sys_large_files in #(
5243 no | unknown) ;;
5245 cat >>confdefs.h <<_ACEOF
5246 #define _LARGE_FILES $ac_cv_sys_large_files
5247 _ACEOF
5249 esac
5250 rm -rf conftest*
5257 # Runs configure.host, and assorted other critical bits. Sets
5258 # up critical shell variables.
5259 ac_ext=c
5260 ac_cpp='$CPP $CPPFLAGS'
5261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5265 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5266 # On Suns, sometimes $CPP names a directory.
5267 if test -n "$CPP" && test -d "$CPP"; then
5268 CPP=
5270 if test -z "$CPP"; then
5271 if ${ac_cv_prog_CPP+:} false; then :
5272 $as_echo_n "(cached) " >&6
5273 else
5274 # Double quotes because CPP needs to be expanded
5275 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5277 ac_preproc_ok=false
5278 for ac_c_preproc_warn_flag in '' yes
5280 # Use a header file that comes with gcc, so configuring glibc
5281 # with a fresh cross-compiler works.
5282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5283 # <limits.h> exists even on freestanding compilers.
5284 # On the NeXT, cc -E runs the code through the compiler's parser,
5285 # not just through cpp. "Syntax error" is here to catch this case.
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288 #ifdef __STDC__
5289 # include <limits.h>
5290 #else
5291 # include <assert.h>
5292 #endif
5293 Syntax error
5294 _ACEOF
5295 if ac_fn_c_try_cpp "$LINENO"; then :
5297 else
5298 # Broken: fails on valid input.
5299 continue
5301 rm -f conftest.err conftest.i conftest.$ac_ext
5303 # OK, works on sane cases. Now check whether nonexistent headers
5304 # can be detected and how.
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306 /* end confdefs.h. */
5307 #include <ac_nonexistent.h>
5308 _ACEOF
5309 if ac_fn_c_try_cpp "$LINENO"; then :
5310 # Broken: success on invalid input.
5311 continue
5312 else
5313 # Passes both tests.
5314 ac_preproc_ok=:
5315 break
5317 rm -f conftest.err conftest.i conftest.$ac_ext
5319 done
5320 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5321 rm -f conftest.i conftest.err conftest.$ac_ext
5322 if $ac_preproc_ok; then :
5323 break
5326 done
5327 ac_cv_prog_CPP=$CPP
5330 CPP=$ac_cv_prog_CPP
5331 else
5332 ac_cv_prog_CPP=$CPP
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5335 $as_echo "$CPP" >&6; }
5336 ac_preproc_ok=false
5337 for ac_c_preproc_warn_flag in '' yes
5339 # Use a header file that comes with gcc, so configuring glibc
5340 # with a fresh cross-compiler works.
5341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5342 # <limits.h> exists even on freestanding compilers.
5343 # On the NeXT, cc -E runs the code through the compiler's parser,
5344 # not just through cpp. "Syntax error" is here to catch this case.
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5347 #ifdef __STDC__
5348 # include <limits.h>
5349 #else
5350 # include <assert.h>
5351 #endif
5352 Syntax error
5353 _ACEOF
5354 if ac_fn_c_try_cpp "$LINENO"; then :
5356 else
5357 # Broken: fails on valid input.
5358 continue
5360 rm -f conftest.err conftest.i conftest.$ac_ext
5362 # OK, works on sane cases. Now check whether nonexistent headers
5363 # can be detected and how.
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5366 #include <ac_nonexistent.h>
5367 _ACEOF
5368 if ac_fn_c_try_cpp "$LINENO"; then :
5369 # Broken: success on invalid input.
5370 continue
5371 else
5372 # Passes both tests.
5373 ac_preproc_ok=:
5374 break
5376 rm -f conftest.err conftest.i conftest.$ac_ext
5378 done
5379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5380 rm -f conftest.i conftest.err conftest.$ac_ext
5381 if $ac_preproc_ok; then :
5383 else
5384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5386 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5387 See \`config.log' for more details" "$LINENO" 5; }
5390 ac_ext=c
5391 ac_cpp='$CPP $CPPFLAGS'
5392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5398 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5399 if ${ac_cv_path_GREP+:} false; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 if test -z "$GREP"; then
5403 ac_path_GREP_found=false
5404 # Loop through the user's path and test for each of PROGNAME-LIST
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_prog in grep ggrep; do
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5413 as_fn_executable_p "$ac_path_GREP" || continue
5414 # Check for GNU ac_path_GREP and select it if it is found.
5415 # Check for GNU $ac_path_GREP
5416 case `"$ac_path_GREP" --version 2>&1` in
5417 *GNU*)
5418 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5420 ac_count=0
5421 $as_echo_n 0123456789 >"conftest.in"
5422 while :
5424 cat "conftest.in" "conftest.in" >"conftest.tmp"
5425 mv "conftest.tmp" "conftest.in"
5426 cp "conftest.in" "conftest.nl"
5427 $as_echo 'GREP' >> "conftest.nl"
5428 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5430 as_fn_arith $ac_count + 1 && ac_count=$as_val
5431 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5432 # Best one so far, save it but keep looking for a better one
5433 ac_cv_path_GREP="$ac_path_GREP"
5434 ac_path_GREP_max=$ac_count
5436 # 10*(2^10) chars as input seems more than enough
5437 test $ac_count -gt 10 && break
5438 done
5439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5440 esac
5442 $ac_path_GREP_found && break 3
5443 done
5444 done
5445 done
5446 IFS=$as_save_IFS
5447 if test -z "$ac_cv_path_GREP"; then
5448 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5450 else
5451 ac_cv_path_GREP=$GREP
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5456 $as_echo "$ac_cv_path_GREP" >&6; }
5457 GREP="$ac_cv_path_GREP"
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5461 $as_echo_n "checking for egrep... " >&6; }
5462 if ${ac_cv_path_EGREP+:} false; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5466 then ac_cv_path_EGREP="$GREP -E"
5467 else
5468 if test -z "$EGREP"; then
5469 ac_path_EGREP_found=false
5470 # Loop through the user's path and test for each of PROGNAME-LIST
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5476 for ac_prog in egrep; do
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5479 as_fn_executable_p "$ac_path_EGREP" || continue
5480 # Check for GNU ac_path_EGREP and select it if it is found.
5481 # Check for GNU $ac_path_EGREP
5482 case `"$ac_path_EGREP" --version 2>&1` in
5483 *GNU*)
5484 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5486 ac_count=0
5487 $as_echo_n 0123456789 >"conftest.in"
5488 while :
5490 cat "conftest.in" "conftest.in" >"conftest.tmp"
5491 mv "conftest.tmp" "conftest.in"
5492 cp "conftest.in" "conftest.nl"
5493 $as_echo 'EGREP' >> "conftest.nl"
5494 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5495 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5496 as_fn_arith $ac_count + 1 && ac_count=$as_val
5497 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5498 # Best one so far, save it but keep looking for a better one
5499 ac_cv_path_EGREP="$ac_path_EGREP"
5500 ac_path_EGREP_max=$ac_count
5502 # 10*(2^10) chars as input seems more than enough
5503 test $ac_count -gt 10 && break
5504 done
5505 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5506 esac
5508 $ac_path_EGREP_found && break 3
5509 done
5510 done
5511 done
5512 IFS=$as_save_IFS
5513 if test -z "$ac_cv_path_EGREP"; then
5514 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5516 else
5517 ac_cv_path_EGREP=$EGREP
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5523 $as_echo "$ac_cv_path_EGREP" >&6; }
5524 EGREP="$ac_cv_path_EGREP"
5528 # Keep these sync'd with the list in Makefile.am. The first provides an
5529 # expandable list at autoconf time; the second provides an expandable list
5530 # (i.e., shell variable) at configure time.
5532 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'
5534 # These need to be absolute paths, yet at the same time need to
5535 # canonicalize only relative paths, because then amd will not unmount
5536 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
5537 glibcxx_builddir=`${PWDCMD-pwd}`
5538 case $srcdir in
5539 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
5540 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
5541 esac
5542 toplevel_builddir=${glibcxx_builddir}/..
5543 toplevel_srcdir=${glibcxx_srcdir}/..
5549 # We use these options to decide which functions to include. They are
5550 # set from the top level.
5552 # Check whether --with-target-subdir was given.
5553 if test "${with_target_subdir+set}" = set; then :
5554 withval=$with_target_subdir;
5559 # Check whether --with-cross-host was given.
5560 if test "${with_cross_host+set}" = set; then :
5561 withval=$with_cross_host;
5566 # Check whether --with-newlib was given.
5567 if test "${with_newlib+set}" = set; then :
5568 withval=$with_newlib;
5572 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
5573 # available). Uncomment the next line to force a particular method.
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5575 $as_echo_n "checking whether ln -s works... " >&6; }
5576 LN_S=$as_ln_s
5577 if test "$LN_S" = "ln -s"; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5579 $as_echo "yes" >&6; }
5580 else
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5582 $as_echo "no, using $LN_S" >&6; }
5585 #LN_S='cp -p'
5587 if test -n "$ac_tool_prefix"; then
5588 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5589 set dummy ${ac_tool_prefix}as; ac_word=$2
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if ${ac_cv_prog_AS+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 if test -n "$AS"; then
5596 ac_cv_prog_AS="$AS" # Let the user override the test.
5597 else
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $PATH
5601 IFS=$as_save_IFS
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5605 ac_cv_prog_AS="${ac_tool_prefix}as"
5606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 break 2
5609 done
5610 done
5611 IFS=$as_save_IFS
5615 AS=$ac_cv_prog_AS
5616 if test -n "$AS"; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5618 $as_echo "$AS" >&6; }
5619 else
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5626 if test -z "$ac_cv_prog_AS"; then
5627 ac_ct_AS=$AS
5628 # Extract the first word of "as", so it can be a program name with args.
5629 set dummy as; ac_word=$2
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631 $as_echo_n "checking for $ac_word... " >&6; }
5632 if ${ac_cv_prog_ac_ct_AS+:} false; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 if test -n "$ac_ct_AS"; then
5636 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5637 else
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645 ac_cv_prog_ac_ct_AS="as"
5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 break 2
5649 done
5650 done
5651 IFS=$as_save_IFS
5655 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5656 if test -n "$ac_ct_AS"; then
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5658 $as_echo "$ac_ct_AS" >&6; }
5659 else
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5664 if test "x$ac_ct_AS" = x; then
5665 AS=""
5666 else
5667 case $cross_compiling:$ac_tool_warned in
5668 yes:)
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5671 ac_tool_warned=yes ;;
5672 esac
5673 AS=$ac_ct_AS
5675 else
5676 AS="$ac_cv_prog_AS"
5679 if test -n "$ac_tool_prefix"; then
5680 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5681 set dummy ${ac_tool_prefix}ar; ac_word=$2
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5683 $as_echo_n "checking for $ac_word... " >&6; }
5684 if ${ac_cv_prog_AR+:} false; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 if test -n "$AR"; then
5688 ac_cv_prog_AR="$AR" # Let the user override the test.
5689 else
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5693 IFS=$as_save_IFS
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5697 ac_cv_prog_AR="${ac_tool_prefix}ar"
5698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 break 2
5701 done
5702 done
5703 IFS=$as_save_IFS
5707 AR=$ac_cv_prog_AR
5708 if test -n "$AR"; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5710 $as_echo "$AR" >&6; }
5711 else
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713 $as_echo "no" >&6; }
5718 if test -z "$ac_cv_prog_AR"; then
5719 ac_ct_AR=$AR
5720 # Extract the first word of "ar", so it can be a program name with args.
5721 set dummy ar; ac_word=$2
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 $as_echo_n "checking for $ac_word... " >&6; }
5724 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5725 $as_echo_n "(cached) " >&6
5726 else
5727 if test -n "$ac_ct_AR"; then
5728 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5729 else
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 for as_dir in $PATH
5733 IFS=$as_save_IFS
5734 test -z "$as_dir" && as_dir=.
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5737 ac_cv_prog_ac_ct_AR="ar"
5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739 break 2
5741 done
5742 done
5743 IFS=$as_save_IFS
5747 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5748 if test -n "$ac_ct_AR"; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5750 $as_echo "$ac_ct_AR" >&6; }
5751 else
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5756 if test "x$ac_ct_AR" = x; then
5757 AR=""
5758 else
5759 case $cross_compiling:$ac_tool_warned in
5760 yes:)
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5763 ac_tool_warned=yes ;;
5764 esac
5765 AR=$ac_ct_AR
5767 else
5768 AR="$ac_cv_prog_AR"
5771 if test -n "$ac_tool_prefix"; then
5772 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5773 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5775 $as_echo_n "checking for $ac_word... " >&6; }
5776 if ${ac_cv_prog_RANLIB+:} false; then :
5777 $as_echo_n "(cached) " >&6
5778 else
5779 if test -n "$RANLIB"; then
5780 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5781 else
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 for as_dir in $PATH
5785 IFS=$as_save_IFS
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5789 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 break 2
5793 done
5794 done
5795 IFS=$as_save_IFS
5799 RANLIB=$ac_cv_prog_RANLIB
5800 if test -n "$RANLIB"; then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5802 $as_echo "$RANLIB" >&6; }
5803 else
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805 $as_echo "no" >&6; }
5810 if test -z "$ac_cv_prog_RANLIB"; then
5811 ac_ct_RANLIB=$RANLIB
5812 # Extract the first word of "ranlib", so it can be a program name with args.
5813 set dummy ranlib; ac_word=$2
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5815 $as_echo_n "checking for $ac_word... " >&6; }
5816 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5817 $as_echo_n "(cached) " >&6
5818 else
5819 if test -n "$ac_ct_RANLIB"; then
5820 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5821 else
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5825 IFS=$as_save_IFS
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829 ac_cv_prog_ac_ct_RANLIB="ranlib"
5830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 break 2
5833 done
5834 done
5835 IFS=$as_save_IFS
5839 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5840 if test -n "$ac_ct_RANLIB"; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5842 $as_echo "$ac_ct_RANLIB" >&6; }
5843 else
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5848 if test "x$ac_ct_RANLIB" = x; then
5849 RANLIB="ranlib-not-found-in-path-error"
5850 else
5851 case $cross_compiling:$ac_tool_warned in
5852 yes:)
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5855 ac_tool_warned=yes ;;
5856 esac
5857 RANLIB=$ac_ct_RANLIB
5859 else
5860 RANLIB="$ac_cv_prog_RANLIB"
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5866 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5867 # Check whether --enable-maintainer-mode was given.
5868 if test "${enable_maintainer_mode+set}" = set; then :
5869 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5870 else
5871 USE_MAINTAINER_MODE=no
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5875 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5876 if test $USE_MAINTAINER_MODE = yes; then
5877 MAINTAINER_MODE_TRUE=
5878 MAINTAINER_MODE_FALSE='#'
5879 else
5880 MAINTAINER_MODE_TRUE='#'
5881 MAINTAINER_MODE_FALSE=
5884 MAINT=$MAINTAINER_MODE_TRUE
5888 # Set up safe default values for all subsequent AM_CONDITIONAL tests
5889 # which are themselves conditionally expanded.
5890 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
5891 ## other macros from doing the same. This should be automated.) -pme
5893 # Check for C library flavor since GNU/Linux platforms use different
5894 # configuration directories depending on the C library in use.
5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896 /* end confdefs.h. */
5898 #include <stdio.h>
5899 #if __UCLIBC__
5900 _using_uclibc
5901 #endif
5903 _ACEOF
5904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5905 $EGREP "_using_uclibc" >/dev/null 2>&1; then :
5906 uclibc=yes
5907 else
5908 uclibc=no
5910 rm -f conftest*
5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914 /* end confdefs.h. */
5916 #include <stdio.h>
5917 #if __BIONIC__
5918 _using_bionic
5919 #endif
5921 _ACEOF
5922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5923 $EGREP "_using_bionic" >/dev/null 2>&1; then :
5924 bionic=yes
5925 else
5926 bionic=no
5928 rm -f conftest*
5931 # Find platform-specific directories containing configuration info.
5932 # Also possibly modify flags used elsewhere, as needed by the platform.
5934 . $glibcxx_srcdir/configure.host
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: CPU config directory is $cpu_include_dir" >&5
5936 $as_echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: OS config directory is $os_include_dir" >&5
5938 $as_echo "$as_me: OS config directory is $os_include_dir" >&6;}
5942 # Libtool setup.
5943 if test "x${with_newlib}" != "xyes" &&
5944 test "x${with_avrlibc}" != "xyes" &&
5945 test "x$with_headers" != "xno"; then
5946 enable_dlopen=yes
5951 case `pwd` in
5952 *\ * | *\ *)
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5954 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5955 esac
5959 macro_version='2.2.7a'
5960 macro_revision='1.3134'
5974 ltmain="$ac_aux_dir/ltmain.sh"
5976 # Backslashify metacharacters that are still active within
5977 # double-quoted strings.
5978 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5980 # Same as above, but do not quote variable references.
5981 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5983 # Sed substitution to delay expansion of an escaped shell variable in a
5984 # double_quote_subst'ed string.
5985 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5987 # Sed substitution to delay expansion of an escaped single quote.
5988 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5990 # Sed substitution to avoid accidental globbing in evaled expressions
5991 no_glob_subst='s/\*/\\\*/g'
5993 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5994 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5995 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5998 $as_echo_n "checking how to print strings... " >&6; }
5999 # Test print first, because it will be a builtin if present.
6000 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6001 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6002 ECHO='print -r --'
6003 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6004 ECHO='printf %s\n'
6005 else
6006 # Use this function as a fallback that always works.
6007 func_fallback_echo ()
6009 eval 'cat <<_LTECHO_EOF
6011 _LTECHO_EOF'
6013 ECHO='func_fallback_echo'
6016 # func_echo_all arg...
6017 # Invoke $ECHO with all args, space-separated.
6018 func_echo_all ()
6020 $ECHO ""
6023 case "$ECHO" in
6024 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6025 $as_echo "printf" >&6; } ;;
6026 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6027 $as_echo "print -r" >&6; } ;;
6028 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6029 $as_echo "cat" >&6; } ;;
6030 esac
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6046 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6047 if ${ac_cv_path_SED+:} false; then :
6048 $as_echo_n "(cached) " >&6
6049 else
6050 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6051 for ac_i in 1 2 3 4 5 6 7; do
6052 ac_script="$ac_script$as_nl$ac_script"
6053 done
6054 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6055 { ac_script=; unset ac_script;}
6056 if test -z "$SED"; then
6057 ac_path_SED_found=false
6058 # Loop through the user's path and test for each of PROGNAME-LIST
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_prog in sed gsed; do
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6067 as_fn_executable_p "$ac_path_SED" || continue
6068 # Check for GNU ac_path_SED and select it if it is found.
6069 # Check for GNU $ac_path_SED
6070 case `"$ac_path_SED" --version 2>&1` in
6071 *GNU*)
6072 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6074 ac_count=0
6075 $as_echo_n 0123456789 >"conftest.in"
6076 while :
6078 cat "conftest.in" "conftest.in" >"conftest.tmp"
6079 mv "conftest.tmp" "conftest.in"
6080 cp "conftest.in" "conftest.nl"
6081 $as_echo '' >> "conftest.nl"
6082 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6084 as_fn_arith $ac_count + 1 && ac_count=$as_val
6085 if test $ac_count -gt ${ac_path_SED_max-0}; then
6086 # Best one so far, save it but keep looking for a better one
6087 ac_cv_path_SED="$ac_path_SED"
6088 ac_path_SED_max=$ac_count
6090 # 10*(2^10) chars as input seems more than enough
6091 test $ac_count -gt 10 && break
6092 done
6093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6094 esac
6096 $ac_path_SED_found && break 3
6097 done
6098 done
6099 done
6100 IFS=$as_save_IFS
6101 if test -z "$ac_cv_path_SED"; then
6102 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6104 else
6105 ac_cv_path_SED=$SED
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6110 $as_echo "$ac_cv_path_SED" >&6; }
6111 SED="$ac_cv_path_SED"
6112 rm -f conftest.sed
6114 test -z "$SED" && SED=sed
6115 Xsed="$SED -e 1s/^X//"
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6128 $as_echo_n "checking for fgrep... " >&6; }
6129 if ${ac_cv_path_FGREP+:} false; then :
6130 $as_echo_n "(cached) " >&6
6131 else
6132 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6133 then ac_cv_path_FGREP="$GREP -F"
6134 else
6135 if test -z "$FGREP"; then
6136 ac_path_FGREP_found=false
6137 # Loop through the user's path and test for each of PROGNAME-LIST
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_prog in fgrep; do
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6146 as_fn_executable_p "$ac_path_FGREP" || continue
6147 # Check for GNU ac_path_FGREP and select it if it is found.
6148 # Check for GNU $ac_path_FGREP
6149 case `"$ac_path_FGREP" --version 2>&1` in
6150 *GNU*)
6151 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6153 ac_count=0
6154 $as_echo_n 0123456789 >"conftest.in"
6155 while :
6157 cat "conftest.in" "conftest.in" >"conftest.tmp"
6158 mv "conftest.tmp" "conftest.in"
6159 cp "conftest.in" "conftest.nl"
6160 $as_echo 'FGREP' >> "conftest.nl"
6161 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6163 as_fn_arith $ac_count + 1 && ac_count=$as_val
6164 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6165 # Best one so far, save it but keep looking for a better one
6166 ac_cv_path_FGREP="$ac_path_FGREP"
6167 ac_path_FGREP_max=$ac_count
6169 # 10*(2^10) chars as input seems more than enough
6170 test $ac_count -gt 10 && break
6171 done
6172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6173 esac
6175 $ac_path_FGREP_found && break 3
6176 done
6177 done
6178 done
6179 IFS=$as_save_IFS
6180 if test -z "$ac_cv_path_FGREP"; then
6181 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6183 else
6184 ac_cv_path_FGREP=$FGREP
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6190 $as_echo "$ac_cv_path_FGREP" >&6; }
6191 FGREP="$ac_cv_path_FGREP"
6194 test -z "$GREP" && GREP=grep
6214 # Check whether --with-gnu-ld was given.
6215 if test "${with_gnu_ld+set}" = set; then :
6216 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6217 else
6218 with_gnu_ld=no
6221 ac_prog=ld
6222 if test "$GCC" = yes; then
6223 # Check if gcc -print-prog-name=ld gives a path.
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6225 $as_echo_n "checking for ld used by $CC... " >&6; }
6226 case $host in
6227 *-*-mingw*)
6228 # gcc leaves a trailing carriage return which upsets mingw
6229 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6231 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6232 esac
6233 case $ac_prog in
6234 # Accept absolute paths.
6235 [\\/]* | ?:[\\/]*)
6236 re_direlt='/[^/][^/]*/\.\./'
6237 # Canonicalize the pathname of ld
6238 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6239 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6240 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6241 done
6242 test -z "$LD" && LD="$ac_prog"
6245 # If it fails, then pretend we aren't using GCC.
6246 ac_prog=ld
6249 # If it is relative, then search for the first ld in PATH.
6250 with_gnu_ld=unknown
6252 esac
6253 elif test "$with_gnu_ld" = yes; then
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6255 $as_echo_n "checking for GNU ld... " >&6; }
6256 else
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6258 $as_echo_n "checking for non-GNU ld... " >&6; }
6260 if ${lt_cv_path_LD+:} false; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6263 if test -z "$LD"; then
6264 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6265 for ac_dir in $PATH; do
6266 IFS="$lt_save_ifs"
6267 test -z "$ac_dir" && ac_dir=.
6268 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6269 lt_cv_path_LD="$ac_dir/$ac_prog"
6270 # Check to see if the program is GNU ld. I'd rather use --version,
6271 # but apparently some variants of GNU ld only accept -v.
6272 # Break only if it was the GNU/non-GNU ld that we prefer.
6273 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6274 *GNU* | *'with BFD'*)
6275 test "$with_gnu_ld" != no && break
6278 test "$with_gnu_ld" != yes && break
6280 esac
6282 done
6283 IFS="$lt_save_ifs"
6284 else
6285 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6289 LD="$lt_cv_path_LD"
6290 if test -n "$LD"; then
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6292 $as_echo "$LD" >&6; }
6293 else
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295 $as_echo "no" >&6; }
6297 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6299 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6300 if ${lt_cv_prog_gnu_ld+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6304 case `$LD -v 2>&1 </dev/null` in
6305 *GNU* | *'with BFD'*)
6306 lt_cv_prog_gnu_ld=yes
6309 lt_cv_prog_gnu_ld=no
6311 esac
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6314 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6315 with_gnu_ld=$lt_cv_prog_gnu_ld
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6326 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6327 if ${lt_cv_path_NM+:} false; then :
6328 $as_echo_n "(cached) " >&6
6329 else
6330 if test -n "$NM"; then
6331 # Let the user override the nm to test.
6332 lt_nm_to_check="$NM"
6333 else
6334 lt_nm_to_check="${ac_tool_prefix}nm"
6335 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6336 lt_nm_to_check="$lt_nm_to_check nm"
6339 for lt_tmp_nm in "$lt_nm_to_check"; do
6340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6341 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6342 IFS="$lt_save_ifs"
6343 test -z "$ac_dir" && ac_dir=.
6344 # Strip out any user-provided options from the nm to test twice,
6345 # the first time to test to see if nm (rather than its options) has
6346 # an explicit path, the second time to yield a file which can be
6347 # nm'ed itself.
6348 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6349 case "$tmp_nm_path" in
6350 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6351 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6352 esac
6353 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6354 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6355 # Check to see if the nm accepts a BSD-compat flag.
6356 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6357 # nm: unknown option "B" ignored
6358 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6359 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6360 break
6363 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6364 *$tmp_nm*)
6365 lt_cv_path_NM="$tmp_nm -p"
6366 break
6369 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6370 continue # so that we can try to find one that supports BSD flags
6372 esac
6374 esac
6376 done
6377 IFS="$lt_save_ifs"
6378 done
6379 : ${lt_cv_path_NM=no}
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6382 $as_echo "$lt_cv_path_NM" >&6; }
6383 if test "$lt_cv_path_NM" != "no"; then
6384 NM="$lt_cv_path_NM"
6385 else
6386 # Didn't find any BSD compatible name lister, look for dumpbin.
6387 if test -n "$DUMPBIN"; then :
6388 # Let the user override the test.
6389 else
6390 if test -n "$ac_tool_prefix"; then
6391 for ac_prog in dumpbin "link -dump"
6393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_prog_DUMPBIN+:} false; then :
6398 $as_echo_n "(cached) " >&6
6399 else
6400 if test -n "$DUMPBIN"; then
6401 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6402 else
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH
6406 IFS=$as_save_IFS
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6410 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 break 2
6414 done
6415 done
6416 IFS=$as_save_IFS
6420 DUMPBIN=$ac_cv_prog_DUMPBIN
6421 if test -n "$DUMPBIN"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6423 $as_echo "$DUMPBIN" >&6; }
6424 else
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6430 test -n "$DUMPBIN" && break
6431 done
6433 if test -z "$DUMPBIN"; then
6434 ac_ct_DUMPBIN=$DUMPBIN
6435 for ac_prog in dumpbin "link -dump"
6437 # Extract the first word of "$ac_prog", so it can be a program name with args.
6438 set dummy $ac_prog; ac_word=$2
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 if test -n "$ac_ct_DUMPBIN"; then
6445 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6446 else
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in $PATH
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6454 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 break 2
6458 done
6459 done
6460 IFS=$as_save_IFS
6464 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6465 if test -n "$ac_ct_DUMPBIN"; then
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6467 $as_echo "$ac_ct_DUMPBIN" >&6; }
6468 else
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 $as_echo "no" >&6; }
6474 test -n "$ac_ct_DUMPBIN" && break
6475 done
6477 if test "x$ac_ct_DUMPBIN" = x; then
6478 DUMPBIN=":"
6479 else
6480 case $cross_compiling:$ac_tool_warned in
6481 yes:)
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6484 ac_tool_warned=yes ;;
6485 esac
6486 DUMPBIN=$ac_ct_DUMPBIN
6490 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6491 *COFF*)
6492 DUMPBIN="$DUMPBIN -symbols"
6495 DUMPBIN=:
6497 esac
6500 if test "$DUMPBIN" != ":"; then
6501 NM="$DUMPBIN"
6504 test -z "$NM" && NM=nm
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6512 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6513 if ${lt_cv_nm_interface+:} false; then :
6514 $as_echo_n "(cached) " >&6
6515 else
6516 lt_cv_nm_interface="BSD nm"
6517 echo "int some_variable = 0;" > conftest.$ac_ext
6518 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6519 (eval "$ac_compile" 2>conftest.err)
6520 cat conftest.err >&5
6521 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6522 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6523 cat conftest.err >&5
6524 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6525 cat conftest.out >&5
6526 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6527 lt_cv_nm_interface="MS dumpbin"
6529 rm -f conftest*
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6532 $as_echo "$lt_cv_nm_interface" >&6; }
6534 # find the maximum length of command line arguments
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6536 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6537 if ${lt_cv_sys_max_cmd_len+:} false; then :
6538 $as_echo_n "(cached) " >&6
6539 else
6541 teststring="ABCD"
6543 case $build_os in
6544 msdosdjgpp*)
6545 # On DJGPP, this test can blow up pretty badly due to problems in libc
6546 # (any single argument exceeding 2000 bytes causes a buffer overrun
6547 # during glob expansion). Even if it were fixed, the result of this
6548 # check would be larger than it should be.
6549 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6552 gnu*)
6553 # Under GNU Hurd, this test is not required because there is
6554 # no limit to the length of command line arguments.
6555 # Libtool will interpret -1 as no limit whatsoever
6556 lt_cv_sys_max_cmd_len=-1;
6559 cygwin* | mingw* | cegcc*)
6560 # On Win9x/ME, this test blows up -- it succeeds, but takes
6561 # about 5 minutes as the teststring grows exponentially.
6562 # Worse, since 9x/ME are not pre-emptively multitasking,
6563 # you end up with a "frozen" computer, even though with patience
6564 # the test eventually succeeds (with a max line length of 256k).
6565 # Instead, let's just punt: use the minimum linelength reported by
6566 # all of the supported platforms: 8192 (on NT/2K/XP).
6567 lt_cv_sys_max_cmd_len=8192;
6570 mint*)
6571 # On MiNT this can take a long time and run out of memory.
6572 lt_cv_sys_max_cmd_len=8192;
6575 amigaos*)
6576 # On AmigaOS with pdksh, this test takes hours, literally.
6577 # So we just punt and use a minimum line length of 8192.
6578 lt_cv_sys_max_cmd_len=8192;
6581 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6582 # This has been around since 386BSD, at least. Likely further.
6583 if test -x /sbin/sysctl; then
6584 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6585 elif test -x /usr/sbin/sysctl; then
6586 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6587 else
6588 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6590 # And add a safety zone
6591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6595 interix*)
6596 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6597 lt_cv_sys_max_cmd_len=196608
6600 osf*)
6601 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6602 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6603 # nice to cause kernel panics so lets avoid the loop below.
6604 # First set a reasonable default.
6605 lt_cv_sys_max_cmd_len=16384
6607 if test -x /sbin/sysconfig; then
6608 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6609 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6610 esac
6613 sco3.2v5*)
6614 lt_cv_sys_max_cmd_len=102400
6616 sysv5* | sco5v6* | sysv4.2uw2*)
6617 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6618 if test -n "$kargmax"; then
6619 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6620 else
6621 lt_cv_sys_max_cmd_len=32768
6625 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6626 if test -n "$lt_cv_sys_max_cmd_len"; then
6627 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6628 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6629 else
6630 # Make teststring a little bigger before we do anything with it.
6631 # a 1K string should be a reasonable start.
6632 for i in 1 2 3 4 5 6 7 8 ; do
6633 teststring=$teststring$teststring
6634 done
6635 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6636 # If test is not a shell built-in, we'll probably end up computing a
6637 # maximum length that is only half of the actual maximum length, but
6638 # we can't tell.
6639 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6640 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6641 test $i != 17 # 1/2 MB should be enough
6643 i=`expr $i + 1`
6644 teststring=$teststring$teststring
6645 done
6646 # Only check the string length outside the loop.
6647 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6648 teststring=
6649 # Add a significant safety factor because C++ compilers can tack on
6650 # massive amounts of additional arguments before passing them to the
6651 # linker. It appears as though 1/2 is a usable value.
6652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6655 esac
6659 if test -n $lt_cv_sys_max_cmd_len ; then
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6661 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6662 else
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6664 $as_echo "none" >&6; }
6666 max_cmd_len=$lt_cv_sys_max_cmd_len
6673 : ${CP="cp -f"}
6674 : ${MV="mv -f"}
6675 : ${RM="rm -f"}
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6678 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6679 # Try some XSI features
6680 xsi_shell=no
6681 ( _lt_dummy="a/b/c"
6682 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6683 = c,a/b,, \
6684 && eval 'test $(( 1 + 1 )) -eq 2 \
6685 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6686 && xsi_shell=yes
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6688 $as_echo "$xsi_shell" >&6; }
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6692 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6693 lt_shell_append=no
6694 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6695 >/dev/null 2>&1 \
6696 && lt_shell_append=yes
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6698 $as_echo "$lt_shell_append" >&6; }
6701 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6702 lt_unset=unset
6703 else
6704 lt_unset=false
6711 # test EBCDIC or ASCII
6712 case `echo X|tr X '\101'` in
6713 A) # ASCII based system
6714 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6715 lt_SP2NL='tr \040 \012'
6716 lt_NL2SP='tr \015\012 \040\040'
6718 *) # EBCDIC based system
6719 lt_SP2NL='tr \100 \n'
6720 lt_NL2SP='tr \r\n \100\100'
6722 esac
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6733 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6734 if ${lt_cv_ld_reload_flag+:} false; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 lt_cv_ld_reload_flag='-r'
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6740 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6741 reload_flag=$lt_cv_ld_reload_flag
6742 case $reload_flag in
6743 "" | " "*) ;;
6744 *) reload_flag=" $reload_flag" ;;
6745 esac
6746 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6747 case $host_os in
6748 darwin*)
6749 if test "$GCC" = yes; then
6750 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6751 else
6752 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6755 esac
6765 if test -n "$ac_tool_prefix"; then
6766 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6767 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769 $as_echo_n "checking for $ac_word... " >&6; }
6770 if ${ac_cv_prog_OBJDUMP+:} false; then :
6771 $as_echo_n "(cached) " >&6
6772 else
6773 if test -n "$OBJDUMP"; then
6774 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6775 else
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6783 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6787 done
6788 done
6789 IFS=$as_save_IFS
6793 OBJDUMP=$ac_cv_prog_OBJDUMP
6794 if test -n "$OBJDUMP"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6796 $as_echo "$OBJDUMP" >&6; }
6797 else
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 $as_echo "no" >&6; }
6804 if test -z "$ac_cv_prog_OBJDUMP"; then
6805 ac_ct_OBJDUMP=$OBJDUMP
6806 # Extract the first word of "objdump", so it can be a program name with args.
6807 set dummy objdump; ac_word=$2
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 $as_echo_n "checking for $ac_word... " >&6; }
6810 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6811 $as_echo_n "(cached) " >&6
6812 else
6813 if test -n "$ac_ct_OBJDUMP"; then
6814 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6823 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 break 2
6827 done
6828 done
6829 IFS=$as_save_IFS
6833 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6834 if test -n "$ac_ct_OBJDUMP"; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6836 $as_echo "$ac_ct_OBJDUMP" >&6; }
6837 else
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 $as_echo "no" >&6; }
6842 if test "x$ac_ct_OBJDUMP" = x; then
6843 OBJDUMP="false"
6844 else
6845 case $cross_compiling:$ac_tool_warned in
6846 yes:)
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6849 ac_tool_warned=yes ;;
6850 esac
6851 OBJDUMP=$ac_ct_OBJDUMP
6853 else
6854 OBJDUMP="$ac_cv_prog_OBJDUMP"
6857 test -z "$OBJDUMP" && OBJDUMP=objdump
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6868 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6869 if ${lt_cv_deplibs_check_method+:} false; then :
6870 $as_echo_n "(cached) " >&6
6871 else
6872 lt_cv_file_magic_cmd='$MAGIC_CMD'
6873 lt_cv_file_magic_test_file=
6874 lt_cv_deplibs_check_method='unknown'
6875 # Need to set the preceding variable on all platforms that support
6876 # interlibrary dependencies.
6877 # 'none' -- dependencies not supported.
6878 # `unknown' -- same as none, but documents that we really don't know.
6879 # 'pass_all' -- all dependencies passed with no checks.
6880 # 'test_compile' -- check by making test program.
6881 # 'file_magic [[regex]]' -- check by looking for files in library path
6882 # which responds to the $file_magic_cmd with a given extended regex.
6883 # If you have `file' or equivalent on your system and you're not sure
6884 # whether `pass_all' will *always* work, you probably want this one.
6886 case $host_os in
6887 aix[4-9]*)
6888 lt_cv_deplibs_check_method=pass_all
6891 beos*)
6892 lt_cv_deplibs_check_method=pass_all
6895 bsdi[45]*)
6896 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6897 lt_cv_file_magic_cmd='/usr/bin/file -L'
6898 lt_cv_file_magic_test_file=/shlib/libc.so
6901 cygwin*)
6902 # func_win32_libid is a shell function defined in ltmain.sh
6903 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6904 lt_cv_file_magic_cmd='func_win32_libid'
6907 mingw* | pw32*)
6908 # Base MSYS/MinGW do not provide the 'file' command needed by
6909 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6910 # unless we find 'file', for example because we are cross-compiling.
6911 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6912 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6913 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6914 lt_cv_file_magic_cmd='func_win32_libid'
6915 else
6916 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6917 lt_cv_file_magic_cmd='$OBJDUMP -f'
6921 cegcc*)
6922 # use the weaker test based on 'objdump'. See mingw*.
6923 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6924 lt_cv_file_magic_cmd='$OBJDUMP -f'
6927 darwin* | rhapsody*)
6928 lt_cv_deplibs_check_method=pass_all
6931 freebsd* | dragonfly*)
6932 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6933 case $host_cpu in
6934 i*86 )
6935 # Not sure whether the presence of OpenBSD here was a mistake.
6936 # Let's accept both of them until this is cleared up.
6937 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6938 lt_cv_file_magic_cmd=/usr/bin/file
6939 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6941 esac
6942 else
6943 lt_cv_deplibs_check_method=pass_all
6947 gnu*)
6948 lt_cv_deplibs_check_method=pass_all
6951 haiku*)
6952 lt_cv_deplibs_check_method=pass_all
6955 hpux10.20* | hpux11*)
6956 lt_cv_file_magic_cmd=/usr/bin/file
6957 case $host_cpu in
6958 ia64*)
6959 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6960 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6962 hppa*64*)
6963 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]'
6964 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6967 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6968 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6970 esac
6973 interix[3-9]*)
6974 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6978 irix5* | irix6* | nonstopux*)
6979 case $LD in
6980 *-32|*"-32 ") libmagic=32-bit;;
6981 *-n32|*"-n32 ") libmagic=N32;;
6982 *-64|*"-64 ") libmagic=64-bit;;
6983 *) libmagic=never-match;;
6984 esac
6985 lt_cv_deplibs_check_method=pass_all
6988 # This must be Linux ELF.
6989 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6990 lt_cv_deplibs_check_method=pass_all
6993 netbsd*)
6994 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6995 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6996 else
6997 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7001 newos6*)
7002 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7003 lt_cv_file_magic_cmd=/usr/bin/file
7004 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7007 *nto* | *qnx*)
7008 lt_cv_deplibs_check_method=pass_all
7011 openbsd*)
7012 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7013 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7014 else
7015 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7019 osf3* | osf4* | osf5*)
7020 lt_cv_deplibs_check_method=pass_all
7023 rdos*)
7024 lt_cv_deplibs_check_method=pass_all
7027 solaris*)
7028 lt_cv_deplibs_check_method=pass_all
7031 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7032 lt_cv_deplibs_check_method=pass_all
7035 sysv4 | sysv4.3*)
7036 case $host_vendor in
7037 motorola)
7038 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]'
7039 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7041 ncr)
7042 lt_cv_deplibs_check_method=pass_all
7044 sequent)
7045 lt_cv_file_magic_cmd='/bin/file'
7046 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7048 sni)
7049 lt_cv_file_magic_cmd='/bin/file'
7050 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7051 lt_cv_file_magic_test_file=/lib/libc.so
7053 siemens)
7054 lt_cv_deplibs_check_method=pass_all
7057 lt_cv_deplibs_check_method=pass_all
7059 esac
7062 tpf*)
7063 lt_cv_deplibs_check_method=pass_all
7065 vxworks*)
7066 # Assume VxWorks cross toolchains are built on Linux, possibly
7067 # as canadian for Windows hosts.
7068 lt_cv_deplibs_check_method=pass_all
7070 esac
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7074 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7075 file_magic_cmd=$lt_cv_file_magic_cmd
7076 deplibs_check_method=$lt_cv_deplibs_check_method
7077 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7090 plugin_option=
7091 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7092 for plugin in $plugin_names; do
7093 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7094 if test x$plugin_so = x$plugin; then
7095 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7097 if test x$plugin_so != x$plugin; then
7098 plugin_option="--plugin $plugin_so"
7099 break
7101 done
7103 if test -n "$ac_tool_prefix"; then
7104 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7105 set dummy ${ac_tool_prefix}ar; ac_word=$2
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107 $as_echo_n "checking for $ac_word... " >&6; }
7108 if ${ac_cv_prog_AR+:} false; then :
7109 $as_echo_n "(cached) " >&6
7110 else
7111 if test -n "$AR"; then
7112 ac_cv_prog_AR="$AR" # Let the user override the test.
7113 else
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7121 ac_cv_prog_AR="${ac_tool_prefix}ar"
7122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 break 2
7125 done
7126 done
7127 IFS=$as_save_IFS
7131 AR=$ac_cv_prog_AR
7132 if test -n "$AR"; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7134 $as_echo "$AR" >&6; }
7135 else
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7142 if test -z "$ac_cv_prog_AR"; then
7143 ac_ct_AR=$AR
7144 # Extract the first word of "ar", so it can be a program name with args.
7145 set dummy ar; ac_word=$2
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147 $as_echo_n "checking for $ac_word... " >&6; }
7148 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7149 $as_echo_n "(cached) " >&6
7150 else
7151 if test -n "$ac_ct_AR"; then
7152 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7153 else
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 for as_dir in $PATH
7157 IFS=$as_save_IFS
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161 ac_cv_prog_ac_ct_AR="ar"
7162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7163 break 2
7165 done
7166 done
7167 IFS=$as_save_IFS
7171 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7172 if test -n "$ac_ct_AR"; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7174 $as_echo "$ac_ct_AR" >&6; }
7175 else
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 $as_echo "no" >&6; }
7180 if test "x$ac_ct_AR" = x; then
7181 AR="false"
7182 else
7183 case $cross_compiling:$ac_tool_warned in
7184 yes:)
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7187 ac_tool_warned=yes ;;
7188 esac
7189 AR=$ac_ct_AR
7191 else
7192 AR="$ac_cv_prog_AR"
7195 test -z "$AR" && AR=ar
7196 if test -n "$plugin_option"; then
7197 if $AR --help 2>&1 | grep -q "\--plugin"; then
7198 touch conftest.c
7199 $AR $plugin_option rc conftest.a conftest.c
7200 if test "$?" != 0; then
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7202 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7203 else
7204 AR="$AR $plugin_option"
7206 rm -f conftest.*
7209 test -z "$AR_FLAGS" && AR_FLAGS=cru
7221 if test -n "$ac_tool_prefix"; then
7222 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}strip; ac_word=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if ${ac_cv_prog_STRIP+:} false; then :
7227 $as_echo_n "(cached) " >&6
7228 else
7229 if test -n "$STRIP"; then
7230 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7243 done
7244 done
7245 IFS=$as_save_IFS
7249 STRIP=$ac_cv_prog_STRIP
7250 if test -n "$STRIP"; then
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7252 $as_echo "$STRIP" >&6; }
7253 else
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7260 if test -z "$ac_cv_prog_STRIP"; then
7261 ac_ct_STRIP=$STRIP
7262 # Extract the first word of "strip", so it can be a program name with args.
7263 set dummy strip; ac_word=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7267 $as_echo_n "(cached) " >&6
7268 else
7269 if test -n "$ac_ct_STRIP"; then
7270 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7271 else
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7279 ac_cv_prog_ac_ct_STRIP="strip"
7280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 break 2
7283 done
7284 done
7285 IFS=$as_save_IFS
7289 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7290 if test -n "$ac_ct_STRIP"; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7292 $as_echo "$ac_ct_STRIP" >&6; }
7293 else
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7298 if test "x$ac_ct_STRIP" = x; then
7299 STRIP=":"
7300 else
7301 case $cross_compiling:$ac_tool_warned in
7302 yes:)
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7305 ac_tool_warned=yes ;;
7306 esac
7307 STRIP=$ac_ct_STRIP
7309 else
7310 STRIP="$ac_cv_prog_STRIP"
7313 test -z "$STRIP" && STRIP=:
7320 if test -n "$ac_tool_prefix"; then
7321 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7322 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if ${ac_cv_prog_RANLIB+:} false; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 if test -n "$RANLIB"; then
7329 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7342 done
7343 done
7344 IFS=$as_save_IFS
7348 RANLIB=$ac_cv_prog_RANLIB
7349 if test -n "$RANLIB"; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7351 $as_echo "$RANLIB" >&6; }
7352 else
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354 $as_echo "no" >&6; }
7359 if test -z "$ac_cv_prog_RANLIB"; then
7360 ac_ct_RANLIB=$RANLIB
7361 # Extract the first word of "ranlib", so it can be a program name with args.
7362 set dummy ranlib; ac_word=$2
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7366 $as_echo_n "(cached) " >&6
7367 else
7368 if test -n "$ac_ct_RANLIB"; then
7369 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7374 IFS=$as_save_IFS
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7378 ac_cv_prog_ac_ct_RANLIB="ranlib"
7379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 break 2
7382 done
7383 done
7384 IFS=$as_save_IFS
7388 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7389 if test -n "$ac_ct_RANLIB"; then
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7391 $as_echo "$ac_ct_RANLIB" >&6; }
7392 else
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7397 if test "x$ac_ct_RANLIB" = x; then
7398 RANLIB=":"
7399 else
7400 case $cross_compiling:$ac_tool_warned in
7401 yes:)
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7404 ac_tool_warned=yes ;;
7405 esac
7406 RANLIB=$ac_ct_RANLIB
7408 else
7409 RANLIB="$ac_cv_prog_RANLIB"
7412 test -z "$RANLIB" && RANLIB=:
7413 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7414 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7415 RANLIB="$RANLIB $plugin_option"
7424 # Determine commands to create old-style static archives.
7425 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7426 old_postinstall_cmds='chmod 644 $oldlib'
7427 old_postuninstall_cmds=
7429 if test -n "$RANLIB"; then
7430 case $host_os in
7431 openbsd*)
7432 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7435 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7437 esac
7438 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7441 case $host_os in
7442 darwin*)
7443 lock_old_archive_extraction=yes ;;
7445 lock_old_archive_extraction=no ;;
7446 esac
7486 # If no C compiler was specified, use CC.
7487 LTCC=${LTCC-"$CC"}
7489 # If no C compiler flags were specified, use CFLAGS.
7490 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7492 # Allow CC to be a program name with arguments.
7493 compiler=$CC
7496 # Check for command to grab the raw symbol name followed by C symbol from nm.
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7498 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7499 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7503 # These are sane defaults that work on at least a few old systems.
7504 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7506 # Character class describing NM global symbol codes.
7507 symcode='[BCDEGRST]'
7509 # Regexp to match symbols that can be accessed directly from C.
7510 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7512 # Define system-specific variables.
7513 case $host_os in
7514 aix*)
7515 symcode='[BCDT]'
7517 cygwin* | mingw* | pw32* | cegcc*)
7518 symcode='[ABCDGISTW]'
7520 hpux*)
7521 if test "$host_cpu" = ia64; then
7522 symcode='[ABCDEGRST]'
7525 irix* | nonstopux*)
7526 symcode='[BCDEGRST]'
7528 osf*)
7529 symcode='[BCDEGQRST]'
7531 solaris*)
7532 symcode='[BCDRT]'
7534 sco3.2v5*)
7535 symcode='[DT]'
7537 sysv4.2uw2*)
7538 symcode='[DT]'
7540 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7541 symcode='[ABDT]'
7543 sysv4)
7544 symcode='[DFNSTU]'
7546 esac
7548 # If we're using GNU nm, then use its standard symbol codes.
7549 case `$NM -V 2>&1` in
7550 *GNU* | *'with BFD'*)
7551 symcode='[ABCDGIRSTW]' ;;
7552 esac
7554 # Transform an extracted symbol line into a proper C declaration.
7555 # Some systems (esp. on ia64) link data and code symbols differently,
7556 # so use this general approach.
7557 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7559 # Transform an extracted symbol line into symbol name and symbol address
7560 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7561 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'"
7563 # Handle CRLF in mingw tool chain
7564 opt_cr=
7565 case $build_os in
7566 mingw*)
7567 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7569 esac
7571 # Try without a prefix underscore, then with it.
7572 for ac_symprfx in "" "_"; do
7574 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7575 symxfrm="\\1 $ac_symprfx\\2 \\2"
7577 # Write the raw and C identifiers.
7578 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7579 # Fake it for dumpbin and say T for any non-static function
7580 # and D for any global variable.
7581 # Also find C++ and __fastcall symbols from MSVC++,
7582 # which start with @ or ?.
7583 lt_cv_sys_global_symbol_pipe="$AWK '"\
7584 " {last_section=section; section=\$ 3};"\
7585 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7586 " \$ 0!~/External *\|/{next};"\
7587 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7588 " {if(hide[section]) next};"\
7589 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7590 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7591 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7592 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7593 " ' prfx=^$ac_symprfx"
7594 else
7595 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7598 # Check to see that the pipe works correctly.
7599 pipe_works=no
7601 rm -f conftest*
7602 cat > conftest.$ac_ext <<_LT_EOF
7603 #ifdef __cplusplus
7604 extern "C" {
7605 #endif
7606 char nm_test_var;
7607 void nm_test_func(void);
7608 void nm_test_func(void){}
7609 #ifdef __cplusplus
7611 #endif
7612 int main(){nm_test_var='a';nm_test_func();return(0);}
7613 _LT_EOF
7615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7616 (eval $ac_compile) 2>&5
7617 ac_status=$?
7618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7619 test $ac_status = 0; }; then
7620 # Now try to grab the symbols.
7621 nlist=conftest.nm
7622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7623 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7624 ac_status=$?
7625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7626 test $ac_status = 0; } && test -s "$nlist"; then
7627 # Try sorting and uniquifying the output.
7628 if sort "$nlist" | uniq > "$nlist"T; then
7629 mv -f "$nlist"T "$nlist"
7630 else
7631 rm -f "$nlist"T
7634 # Make sure that we snagged all the symbols we need.
7635 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7636 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7637 cat <<_LT_EOF > conftest.$ac_ext
7638 #ifdef __cplusplus
7639 extern "C" {
7640 #endif
7642 _LT_EOF
7643 # Now generate the symbol file.
7644 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7646 cat <<_LT_EOF >> conftest.$ac_ext
7648 /* The mapping between symbol names and symbols. */
7649 const struct {
7650 const char *name;
7651 void *address;
7653 lt__PROGRAM__LTX_preloaded_symbols[] =
7655 { "@PROGRAM@", (void *) 0 },
7656 _LT_EOF
7657 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7658 cat <<\_LT_EOF >> conftest.$ac_ext
7659 {0, (void *) 0}
7662 /* This works around a problem in FreeBSD linker */
7663 #ifdef FREEBSD_WORKAROUND
7664 static const void *lt_preloaded_setup() {
7665 return lt__PROGRAM__LTX_preloaded_symbols;
7667 #endif
7669 #ifdef __cplusplus
7671 #endif
7672 _LT_EOF
7673 # Now try linking the two files.
7674 mv conftest.$ac_objext conftstm.$ac_objext
7675 lt_save_LIBS="$LIBS"
7676 lt_save_CFLAGS="$CFLAGS"
7677 LIBS="conftstm.$ac_objext"
7678 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7680 (eval $ac_link) 2>&5
7681 ac_status=$?
7682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7683 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7684 pipe_works=yes
7686 LIBS="$lt_save_LIBS"
7687 CFLAGS="$lt_save_CFLAGS"
7688 else
7689 echo "cannot find nm_test_func in $nlist" >&5
7691 else
7692 echo "cannot find nm_test_var in $nlist" >&5
7694 else
7695 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7697 else
7698 echo "$progname: failed program was:" >&5
7699 cat conftest.$ac_ext >&5
7701 rm -rf conftest* conftst*
7703 # Do not use the global_symbol_pipe unless it works.
7704 if test "$pipe_works" = yes; then
7705 break
7706 else
7707 lt_cv_sys_global_symbol_pipe=
7709 done
7713 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7714 lt_cv_sys_global_symbol_to_cdecl=
7716 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7718 $as_echo "failed" >&6; }
7719 else
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7721 $as_echo "ok" >&6; }
7745 # Check whether --enable-libtool-lock was given.
7746 if test "${enable_libtool_lock+set}" = set; then :
7747 enableval=$enable_libtool_lock;
7750 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7752 # Some flags need to be propagated to the compiler or linker for good
7753 # libtool support.
7754 case $host in
7755 ia64-*-hpux*)
7756 # Find out which ABI we are using.
7757 echo 'int i;' > conftest.$ac_ext
7758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7759 (eval $ac_compile) 2>&5
7760 ac_status=$?
7761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7762 test $ac_status = 0; }; then
7763 case `/usr/bin/file conftest.$ac_objext` in
7764 *ELF-32*)
7765 HPUX_IA64_MODE="32"
7767 *ELF-64*)
7768 HPUX_IA64_MODE="64"
7770 esac
7772 rm -rf conftest*
7774 *-*-irix6*)
7775 # Find out which ABI we are using.
7776 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7778 (eval $ac_compile) 2>&5
7779 ac_status=$?
7780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7781 test $ac_status = 0; }; then
7782 if test "$lt_cv_prog_gnu_ld" = yes; then
7783 case `/usr/bin/file conftest.$ac_objext` in
7784 *32-bit*)
7785 LD="${LD-ld} -melf32bsmip"
7787 *N32*)
7788 LD="${LD-ld} -melf32bmipn32"
7790 *64-bit*)
7791 LD="${LD-ld} -melf64bmip"
7793 esac
7794 else
7795 case `/usr/bin/file conftest.$ac_objext` in
7796 *32-bit*)
7797 LD="${LD-ld} -32"
7799 *N32*)
7800 LD="${LD-ld} -n32"
7802 *64-bit*)
7803 LD="${LD-ld} -64"
7805 esac
7808 rm -rf conftest*
7811 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7812 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7813 # Find out which ABI we are using.
7814 echo 'int i;' > conftest.$ac_ext
7815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7816 (eval $ac_compile) 2>&5
7817 ac_status=$?
7818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7819 test $ac_status = 0; }; then
7820 case `/usr/bin/file conftest.o` in
7821 *32-bit*)
7822 case $host in
7823 x86_64-*kfreebsd*-gnu)
7824 LD="${LD-ld} -m elf_i386_fbsd"
7826 x86_64-*linux*)
7827 case `/usr/bin/file conftest.o` in
7828 *x86-64*)
7829 LD="${LD-ld} -m elf32_x86_64"
7832 LD="${LD-ld} -m elf_i386"
7834 esac
7836 powerpc64le-*linux*)
7837 LD="${LD-ld} -m elf32lppclinux"
7839 powerpc64-*linux*)
7840 LD="${LD-ld} -m elf32ppclinux"
7842 s390x-*linux*)
7843 LD="${LD-ld} -m elf_s390"
7845 sparc64-*linux*)
7846 LD="${LD-ld} -m elf32_sparc"
7848 esac
7850 *64-bit*)
7851 case $host in
7852 x86_64-*kfreebsd*-gnu)
7853 LD="${LD-ld} -m elf_x86_64_fbsd"
7855 x86_64-*linux*)
7856 LD="${LD-ld} -m elf_x86_64"
7858 powerpcle-*linux*)
7859 LD="${LD-ld} -m elf64lppc"
7861 powerpc-*linux*)
7862 LD="${LD-ld} -m elf64ppc"
7864 s390*-*linux*|s390*-*tpf*)
7865 LD="${LD-ld} -m elf64_s390"
7867 sparc*-*linux*)
7868 LD="${LD-ld} -m elf64_sparc"
7870 esac
7872 esac
7874 rm -rf conftest*
7877 *-*-sco3.2v5*)
7878 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7879 SAVE_CFLAGS="$CFLAGS"
7880 CFLAGS="$CFLAGS -belf"
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7882 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7883 if ${lt_cv_cc_needs_belf+:} false; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 ac_ext=c
7887 ac_cpp='$CPP $CPPFLAGS'
7888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7892 if test x$gcc_no_link = xyes; then
7893 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7899 main ()
7903 return 0;
7905 _ACEOF
7906 if ac_fn_c_try_link "$LINENO"; then :
7907 lt_cv_cc_needs_belf=yes
7908 else
7909 lt_cv_cc_needs_belf=no
7911 rm -f core conftest.err conftest.$ac_objext \
7912 conftest$ac_exeext conftest.$ac_ext
7913 ac_ext=c
7914 ac_cpp='$CPP $CPPFLAGS'
7915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7921 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7922 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7923 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7924 CFLAGS="$SAVE_CFLAGS"
7927 sparc*-*solaris*)
7928 # Find out which ABI we are using.
7929 echo 'int i;' > conftest.$ac_ext
7930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7931 (eval $ac_compile) 2>&5
7932 ac_status=$?
7933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7934 test $ac_status = 0; }; then
7935 case `/usr/bin/file conftest.o` in
7936 *64-bit*)
7937 case $lt_cv_prog_gnu_ld in
7938 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7940 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7941 LD="${LD-ld} -64"
7944 esac
7946 esac
7948 rm -rf conftest*
7950 esac
7952 need_locks="$enable_libtool_lock"
7955 case $host_os in
7956 rhapsody* | darwin*)
7957 if test -n "$ac_tool_prefix"; then
7958 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7959 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7963 $as_echo_n "(cached) " >&6
7964 else
7965 if test -n "$DSYMUTIL"; then
7966 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7967 else
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7975 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 break 2
7979 done
7980 done
7981 IFS=$as_save_IFS
7985 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7986 if test -n "$DSYMUTIL"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7988 $as_echo "$DSYMUTIL" >&6; }
7989 else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7996 if test -z "$ac_cv_prog_DSYMUTIL"; then
7997 ac_ct_DSYMUTIL=$DSYMUTIL
7998 # Extract the first word of "dsymutil", so it can be a program name with args.
7999 set dummy dsymutil; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8003 $as_echo_n "(cached) " >&6
8004 else
8005 if test -n "$ac_ct_DSYMUTIL"; then
8006 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8007 else
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 for as_dir in $PATH
8011 IFS=$as_save_IFS
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8015 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017 break 2
8019 done
8020 done
8021 IFS=$as_save_IFS
8025 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8026 if test -n "$ac_ct_DSYMUTIL"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8028 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8029 else
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8034 if test "x$ac_ct_DSYMUTIL" = x; then
8035 DSYMUTIL=":"
8036 else
8037 case $cross_compiling:$ac_tool_warned in
8038 yes:)
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8041 ac_tool_warned=yes ;;
8042 esac
8043 DSYMUTIL=$ac_ct_DSYMUTIL
8045 else
8046 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8049 if test -n "$ac_tool_prefix"; then
8050 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8051 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8053 $as_echo_n "checking for $ac_word... " >&6; }
8054 if ${ac_cv_prog_NMEDIT+:} false; then :
8055 $as_echo_n "(cached) " >&6
8056 else
8057 if test -n "$NMEDIT"; then
8058 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8059 else
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 for as_dir in $PATH
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8067 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 break 2
8071 done
8072 done
8073 IFS=$as_save_IFS
8077 NMEDIT=$ac_cv_prog_NMEDIT
8078 if test -n "$NMEDIT"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8080 $as_echo "$NMEDIT" >&6; }
8081 else
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083 $as_echo "no" >&6; }
8088 if test -z "$ac_cv_prog_NMEDIT"; then
8089 ac_ct_NMEDIT=$NMEDIT
8090 # Extract the first word of "nmedit", so it can be a program name with args.
8091 set dummy nmedit; ac_word=$2
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093 $as_echo_n "checking for $ac_word... " >&6; }
8094 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8095 $as_echo_n "(cached) " >&6
8096 else
8097 if test -n "$ac_ct_NMEDIT"; then
8098 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8099 else
8100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 for as_dir in $PATH
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8107 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 break 2
8111 done
8112 done
8113 IFS=$as_save_IFS
8117 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8118 if test -n "$ac_ct_NMEDIT"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8120 $as_echo "$ac_ct_NMEDIT" >&6; }
8121 else
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 $as_echo "no" >&6; }
8126 if test "x$ac_ct_NMEDIT" = x; then
8127 NMEDIT=":"
8128 else
8129 case $cross_compiling:$ac_tool_warned in
8130 yes:)
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8132 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8133 ac_tool_warned=yes ;;
8134 esac
8135 NMEDIT=$ac_ct_NMEDIT
8137 else
8138 NMEDIT="$ac_cv_prog_NMEDIT"
8141 if test -n "$ac_tool_prefix"; then
8142 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8143 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8145 $as_echo_n "checking for $ac_word... " >&6; }
8146 if ${ac_cv_prog_LIPO+:} false; then :
8147 $as_echo_n "(cached) " >&6
8148 else
8149 if test -n "$LIPO"; then
8150 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8151 else
8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 for as_dir in $PATH
8155 IFS=$as_save_IFS
8156 test -z "$as_dir" && as_dir=.
8157 for ac_exec_ext in '' $ac_executable_extensions; do
8158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8159 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8161 break 2
8163 done
8164 done
8165 IFS=$as_save_IFS
8169 LIPO=$ac_cv_prog_LIPO
8170 if test -n "$LIPO"; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8172 $as_echo "$LIPO" >&6; }
8173 else
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175 $as_echo "no" >&6; }
8180 if test -z "$ac_cv_prog_LIPO"; then
8181 ac_ct_LIPO=$LIPO
8182 # Extract the first word of "lipo", so it can be a program name with args.
8183 set dummy lipo; ac_word=$2
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8185 $as_echo_n "checking for $ac_word... " >&6; }
8186 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8187 $as_echo_n "(cached) " >&6
8188 else
8189 if test -n "$ac_ct_LIPO"; then
8190 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8191 else
8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 for as_dir in $PATH
8195 IFS=$as_save_IFS
8196 test -z "$as_dir" && as_dir=.
8197 for ac_exec_ext in '' $ac_executable_extensions; do
8198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8199 ac_cv_prog_ac_ct_LIPO="lipo"
8200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8201 break 2
8203 done
8204 done
8205 IFS=$as_save_IFS
8209 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8210 if test -n "$ac_ct_LIPO"; then
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8212 $as_echo "$ac_ct_LIPO" >&6; }
8213 else
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 $as_echo "no" >&6; }
8218 if test "x$ac_ct_LIPO" = x; then
8219 LIPO=":"
8220 else
8221 case $cross_compiling:$ac_tool_warned in
8222 yes:)
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8225 ac_tool_warned=yes ;;
8226 esac
8227 LIPO=$ac_ct_LIPO
8229 else
8230 LIPO="$ac_cv_prog_LIPO"
8233 if test -n "$ac_tool_prefix"; then
8234 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8235 set dummy ${ac_tool_prefix}otool; ac_word=$2
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8237 $as_echo_n "checking for $ac_word... " >&6; }
8238 if ${ac_cv_prog_OTOOL+:} false; then :
8239 $as_echo_n "(cached) " >&6
8240 else
8241 if test -n "$OTOOL"; then
8242 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8243 else
8244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245 for as_dir in $PATH
8247 IFS=$as_save_IFS
8248 test -z "$as_dir" && as_dir=.
8249 for ac_exec_ext in '' $ac_executable_extensions; do
8250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8251 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8253 break 2
8255 done
8256 done
8257 IFS=$as_save_IFS
8261 OTOOL=$ac_cv_prog_OTOOL
8262 if test -n "$OTOOL"; then
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8264 $as_echo "$OTOOL" >&6; }
8265 else
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267 $as_echo "no" >&6; }
8272 if test -z "$ac_cv_prog_OTOOL"; then
8273 ac_ct_OTOOL=$OTOOL
8274 # Extract the first word of "otool", so it can be a program name with args.
8275 set dummy otool; ac_word=$2
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277 $as_echo_n "checking for $ac_word... " >&6; }
8278 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8279 $as_echo_n "(cached) " >&6
8280 else
8281 if test -n "$ac_ct_OTOOL"; then
8282 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8283 else
8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 for as_dir in $PATH
8287 IFS=$as_save_IFS
8288 test -z "$as_dir" && as_dir=.
8289 for ac_exec_ext in '' $ac_executable_extensions; do
8290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8291 ac_cv_prog_ac_ct_OTOOL="otool"
8292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8293 break 2
8295 done
8296 done
8297 IFS=$as_save_IFS
8301 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8302 if test -n "$ac_ct_OTOOL"; then
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8304 $as_echo "$ac_ct_OTOOL" >&6; }
8305 else
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307 $as_echo "no" >&6; }
8310 if test "x$ac_ct_OTOOL" = x; then
8311 OTOOL=":"
8312 else
8313 case $cross_compiling:$ac_tool_warned in
8314 yes:)
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8317 ac_tool_warned=yes ;;
8318 esac
8319 OTOOL=$ac_ct_OTOOL
8321 else
8322 OTOOL="$ac_cv_prog_OTOOL"
8325 if test -n "$ac_tool_prefix"; then
8326 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8327 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8329 $as_echo_n "checking for $ac_word... " >&6; }
8330 if ${ac_cv_prog_OTOOL64+:} false; then :
8331 $as_echo_n "(cached) " >&6
8332 else
8333 if test -n "$OTOOL64"; then
8334 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8335 else
8336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8337 for as_dir in $PATH
8339 IFS=$as_save_IFS
8340 test -z "$as_dir" && as_dir=.
8341 for ac_exec_ext in '' $ac_executable_extensions; do
8342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8343 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8345 break 2
8347 done
8348 done
8349 IFS=$as_save_IFS
8353 OTOOL64=$ac_cv_prog_OTOOL64
8354 if test -n "$OTOOL64"; then
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8356 $as_echo "$OTOOL64" >&6; }
8357 else
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 $as_echo "no" >&6; }
8364 if test -z "$ac_cv_prog_OTOOL64"; then
8365 ac_ct_OTOOL64=$OTOOL64
8366 # Extract the first word of "otool64", so it can be a program name with args.
8367 set dummy otool64; ac_word=$2
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369 $as_echo_n "checking for $ac_word... " >&6; }
8370 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8371 $as_echo_n "(cached) " >&6
8372 else
8373 if test -n "$ac_ct_OTOOL64"; then
8374 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8375 else
8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377 for as_dir in $PATH
8379 IFS=$as_save_IFS
8380 test -z "$as_dir" && as_dir=.
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8383 ac_cv_prog_ac_ct_OTOOL64="otool64"
8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385 break 2
8387 done
8388 done
8389 IFS=$as_save_IFS
8393 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8394 if test -n "$ac_ct_OTOOL64"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8396 $as_echo "$ac_ct_OTOOL64" >&6; }
8397 else
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8402 if test "x$ac_ct_OTOOL64" = x; then
8403 OTOOL64=":"
8404 else
8405 case $cross_compiling:$ac_tool_warned in
8406 yes:)
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8409 ac_tool_warned=yes ;;
8410 esac
8411 OTOOL64=$ac_ct_OTOOL64
8413 else
8414 OTOOL64="$ac_cv_prog_OTOOL64"
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8444 $as_echo_n "checking for -single_module linker flag... " >&6; }
8445 if ${lt_cv_apple_cc_single_mod+:} false; then :
8446 $as_echo_n "(cached) " >&6
8447 else
8448 lt_cv_apple_cc_single_mod=no
8449 if test -z "${LT_MULTI_MODULE}"; then
8450 # By default we will add the -single_module flag. You can override
8451 # by either setting the environment variable LT_MULTI_MODULE
8452 # non-empty at configure time, or by adding -multi_module to the
8453 # link flags.
8454 rm -rf libconftest.dylib*
8455 echo "int foo(void){return 1;}" > conftest.c
8456 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8457 -dynamiclib -Wl,-single_module conftest.c" >&5
8458 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8459 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8460 _lt_result=$?
8461 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8462 lt_cv_apple_cc_single_mod=yes
8463 else
8464 cat conftest.err >&5
8466 rm -rf libconftest.dylib*
8467 rm -f conftest.*
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8471 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8473 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8474 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8475 $as_echo_n "(cached) " >&6
8476 else
8477 lt_cv_ld_exported_symbols_list=no
8478 save_LDFLAGS=$LDFLAGS
8479 echo "_main" > conftest.sym
8480 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8481 if test x$gcc_no_link = xyes; then
8482 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h. */
8488 main ()
8492 return 0;
8494 _ACEOF
8495 if ac_fn_c_try_link "$LINENO"; then :
8496 lt_cv_ld_exported_symbols_list=yes
8497 else
8498 lt_cv_ld_exported_symbols_list=no
8500 rm -f core conftest.err conftest.$ac_objext \
8501 conftest$ac_exeext conftest.$ac_ext
8502 LDFLAGS="$save_LDFLAGS"
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8506 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8508 $as_echo_n "checking for -force_load linker flag... " >&6; }
8509 if ${lt_cv_ld_force_load+:} false; then :
8510 $as_echo_n "(cached) " >&6
8511 else
8512 lt_cv_ld_force_load=no
8513 cat > conftest.c << _LT_EOF
8514 int forced_loaded() { return 2;}
8515 _LT_EOF
8516 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8517 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8518 echo "$AR cru libconftest.a conftest.o" >&5
8519 $AR cru libconftest.a conftest.o 2>&5
8520 cat > conftest.c << _LT_EOF
8521 int main() { return 0;}
8522 _LT_EOF
8523 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8524 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8525 _lt_result=$?
8526 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8527 lt_cv_ld_force_load=yes
8528 else
8529 cat conftest.err >&5
8531 rm -f conftest.err libconftest.a conftest conftest.c
8532 rm -rf conftest.dSYM
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8536 $as_echo "$lt_cv_ld_force_load" >&6; }
8537 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8538 # build without first building modern cctools / linker.
8539 case $host_cpu-$host_os in
8540 *-rhapsody* | *-darwin1.[012])
8541 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8542 *-darwin1.*)
8543 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8544 *-darwin*)
8545 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8546 # deployment target is forced to an earlier version.
8547 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8548 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
8550 10.[012][,.]*)
8551 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8555 esac
8557 esac
8558 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8559 _lt_dar_single_mod='$single_module'
8561 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8562 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8563 else
8564 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8566 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8567 _lt_dsymutil='~$DSYMUTIL $lib || :'
8568 else
8569 _lt_dsymutil=
8572 esac
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8575 $as_echo_n "checking for ANSI C header files... " >&6; }
8576 if ${ac_cv_header_stdc+:} false; then :
8577 $as_echo_n "(cached) " >&6
8578 else
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8581 #include <stdlib.h>
8582 #include <stdarg.h>
8583 #include <string.h>
8584 #include <float.h>
8587 main ()
8591 return 0;
8593 _ACEOF
8594 if ac_fn_c_try_compile "$LINENO"; then :
8595 ac_cv_header_stdc=yes
8596 else
8597 ac_cv_header_stdc=no
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601 if test $ac_cv_header_stdc = yes; then
8602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604 /* end confdefs.h. */
8605 #include <string.h>
8607 _ACEOF
8608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8609 $EGREP "memchr" >/dev/null 2>&1; then :
8611 else
8612 ac_cv_header_stdc=no
8614 rm -f conftest*
8618 if test $ac_cv_header_stdc = yes; then
8619 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8621 /* end confdefs.h. */
8622 #include <stdlib.h>
8624 _ACEOF
8625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8626 $EGREP "free" >/dev/null 2>&1; then :
8628 else
8629 ac_cv_header_stdc=no
8631 rm -f conftest*
8635 if test $ac_cv_header_stdc = yes; then
8636 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8637 if test "$cross_compiling" = yes; then :
8639 else
8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8642 #include <ctype.h>
8643 #include <stdlib.h>
8644 #if ((' ' & 0x0FF) == 0x020)
8645 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8646 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8647 #else
8648 # define ISLOWER(c) \
8649 (('a' <= (c) && (c) <= 'i') \
8650 || ('j' <= (c) && (c) <= 'r') \
8651 || ('s' <= (c) && (c) <= 'z'))
8652 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8653 #endif
8655 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8657 main ()
8659 int i;
8660 for (i = 0; i < 256; i++)
8661 if (XOR (islower (i), ISLOWER (i))
8662 || toupper (i) != TOUPPER (i))
8663 return 2;
8664 return 0;
8666 _ACEOF
8667 if ac_fn_c_try_run "$LINENO"; then :
8669 else
8670 ac_cv_header_stdc=no
8672 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8673 conftest.$ac_objext conftest.beam conftest.$ac_ext
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8679 $as_echo "$ac_cv_header_stdc" >&6; }
8680 if test $ac_cv_header_stdc = yes; then
8682 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8686 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8687 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8688 inttypes.h stdint.h unistd.h
8689 do :
8690 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8691 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8693 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8694 cat >>confdefs.h <<_ACEOF
8695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8696 _ACEOF
8700 done
8703 for ac_header in dlfcn.h
8704 do :
8705 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8707 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8708 cat >>confdefs.h <<_ACEOF
8709 #define HAVE_DLFCN_H 1
8710 _ACEOF
8714 done
8721 # Set options
8726 enable_win32_dll=no
8729 # Check whether --enable-shared was given.
8730 if test "${enable_shared+set}" = set; then :
8731 enableval=$enable_shared; p=${PACKAGE-default}
8732 case $enableval in
8733 yes) enable_shared=yes ;;
8734 no) enable_shared=no ;;
8736 enable_shared=no
8737 # Look at the argument we got. We use all the common list separators.
8738 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8739 for pkg in $enableval; do
8740 IFS="$lt_save_ifs"
8741 if test "X$pkg" = "X$p"; then
8742 enable_shared=yes
8744 done
8745 IFS="$lt_save_ifs"
8747 esac
8748 else
8749 enable_shared=yes
8760 # Check whether --enable-static was given.
8761 if test "${enable_static+set}" = set; then :
8762 enableval=$enable_static; p=${PACKAGE-default}
8763 case $enableval in
8764 yes) enable_static=yes ;;
8765 no) enable_static=no ;;
8767 enable_static=no
8768 # Look at the argument we got. We use all the common list separators.
8769 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8770 for pkg in $enableval; do
8771 IFS="$lt_save_ifs"
8772 if test "X$pkg" = "X$p"; then
8773 enable_static=yes
8775 done
8776 IFS="$lt_save_ifs"
8778 esac
8779 else
8780 enable_static=yes
8792 # Check whether --with-pic was given.
8793 if test "${with_pic+set}" = set; then :
8794 withval=$with_pic; pic_mode="$withval"
8795 else
8796 pic_mode=default
8800 test -z "$pic_mode" && pic_mode=default
8808 # Check whether --enable-fast-install was given.
8809 if test "${enable_fast_install+set}" = set; then :
8810 enableval=$enable_fast_install; p=${PACKAGE-default}
8811 case $enableval in
8812 yes) enable_fast_install=yes ;;
8813 no) enable_fast_install=no ;;
8815 enable_fast_install=no
8816 # Look at the argument we got. We use all the common list separators.
8817 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8818 for pkg in $enableval; do
8819 IFS="$lt_save_ifs"
8820 if test "X$pkg" = "X$p"; then
8821 enable_fast_install=yes
8823 done
8824 IFS="$lt_save_ifs"
8826 esac
8827 else
8828 enable_fast_install=yes
8841 # This can be used to rebuild libtool when needed
8842 LIBTOOL_DEPS="$ltmain"
8844 # Always use our own libtool.
8845 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8872 test -z "$LN_S" && LN_S="ln -s"
8887 if test -n "${ZSH_VERSION+set}" ; then
8888 setopt NO_GLOB_SUBST
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8892 $as_echo_n "checking for objdir... " >&6; }
8893 if ${lt_cv_objdir+:} false; then :
8894 $as_echo_n "(cached) " >&6
8895 else
8896 rm -f .libs 2>/dev/null
8897 mkdir .libs 2>/dev/null
8898 if test -d .libs; then
8899 lt_cv_objdir=.libs
8900 else
8901 # MS-DOS does not allow filenames that begin with a dot.
8902 lt_cv_objdir=_libs
8904 rmdir .libs 2>/dev/null
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8907 $as_echo "$lt_cv_objdir" >&6; }
8908 objdir=$lt_cv_objdir
8914 cat >>confdefs.h <<_ACEOF
8915 #define LT_OBJDIR "$lt_cv_objdir/"
8916 _ACEOF
8921 case $host_os in
8922 aix3*)
8923 # AIX sometimes has problems with the GCC collect2 program. For some
8924 # reason, if we set the COLLECT_NAMES environment variable, the problems
8925 # vanish in a puff of smoke.
8926 if test "X${COLLECT_NAMES+set}" != Xset; then
8927 COLLECT_NAMES=
8928 export COLLECT_NAMES
8931 esac
8933 # Global variables:
8934 ofile=libtool
8935 can_build_shared=yes
8937 # All known linkers require a `.a' archive for static linking (except MSVC,
8938 # which needs '.lib').
8939 libext=a
8941 with_gnu_ld="$lt_cv_prog_gnu_ld"
8943 old_CC="$CC"
8944 old_CFLAGS="$CFLAGS"
8946 # Set sane defaults for various variables
8947 test -z "$CC" && CC=cc
8948 test -z "$LTCC" && LTCC=$CC
8949 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8950 test -z "$LD" && LD=ld
8951 test -z "$ac_objext" && ac_objext=o
8953 for cc_temp in $compiler""; do
8954 case $cc_temp in
8955 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8956 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8957 \-*) ;;
8958 *) break;;
8959 esac
8960 done
8961 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8964 # Only perform the check for file, if the check method requires it
8965 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8966 case $deplibs_check_method in
8967 file_magic*)
8968 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8970 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8971 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8972 $as_echo_n "(cached) " >&6
8973 else
8974 case $MAGIC_CMD in
8975 [\\/*] | ?:[\\/]*)
8976 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8979 lt_save_MAGIC_CMD="$MAGIC_CMD"
8980 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8981 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8982 for ac_dir in $ac_dummy; do
8983 IFS="$lt_save_ifs"
8984 test -z "$ac_dir" && ac_dir=.
8985 if test -f $ac_dir/${ac_tool_prefix}file; then
8986 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8987 if test -n "$file_magic_test_file"; then
8988 case $deplibs_check_method in
8989 "file_magic "*)
8990 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8991 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8992 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8993 $EGREP "$file_magic_regex" > /dev/null; then
8995 else
8996 cat <<_LT_EOF 1>&2
8998 *** Warning: the command libtool uses to detect shared libraries,
8999 *** $file_magic_cmd, produces output that libtool cannot recognize.
9000 *** The result is that libtool may fail to recognize shared libraries
9001 *** as such. This will affect the creation of libtool libraries that
9002 *** depend on shared libraries, but programs linked with such libtool
9003 *** libraries will work regardless of this problem. Nevertheless, you
9004 *** may want to report the problem to your system manager and/or to
9005 *** bug-libtool@gnu.org
9007 _LT_EOF
9008 fi ;;
9009 esac
9011 break
9013 done
9014 IFS="$lt_save_ifs"
9015 MAGIC_CMD="$lt_save_MAGIC_CMD"
9017 esac
9020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9021 if test -n "$MAGIC_CMD"; then
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9023 $as_echo "$MAGIC_CMD" >&6; }
9024 else
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026 $as_echo "no" >&6; }
9033 if test -z "$lt_cv_path_MAGIC_CMD"; then
9034 if test -n "$ac_tool_prefix"; then
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9036 $as_echo_n "checking for file... " >&6; }
9037 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9038 $as_echo_n "(cached) " >&6
9039 else
9040 case $MAGIC_CMD in
9041 [\\/*] | ?:[\\/]*)
9042 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9045 lt_save_MAGIC_CMD="$MAGIC_CMD"
9046 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9047 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9048 for ac_dir in $ac_dummy; do
9049 IFS="$lt_save_ifs"
9050 test -z "$ac_dir" && ac_dir=.
9051 if test -f $ac_dir/file; then
9052 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9053 if test -n "$file_magic_test_file"; then
9054 case $deplibs_check_method in
9055 "file_magic "*)
9056 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9057 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9058 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9059 $EGREP "$file_magic_regex" > /dev/null; then
9061 else
9062 cat <<_LT_EOF 1>&2
9064 *** Warning: the command libtool uses to detect shared libraries,
9065 *** $file_magic_cmd, produces output that libtool cannot recognize.
9066 *** The result is that libtool may fail to recognize shared libraries
9067 *** as such. This will affect the creation of libtool libraries that
9068 *** depend on shared libraries, but programs linked with such libtool
9069 *** libraries will work regardless of this problem. Nevertheless, you
9070 *** may want to report the problem to your system manager and/or to
9071 *** bug-libtool@gnu.org
9073 _LT_EOF
9074 fi ;;
9075 esac
9077 break
9079 done
9080 IFS="$lt_save_ifs"
9081 MAGIC_CMD="$lt_save_MAGIC_CMD"
9083 esac
9086 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9087 if test -n "$MAGIC_CMD"; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9089 $as_echo "$MAGIC_CMD" >&6; }
9090 else
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092 $as_echo "no" >&6; }
9096 else
9097 MAGIC_CMD=:
9103 esac
9105 # Use C for the default configuration in the libtool script
9107 lt_save_CC="$CC"
9108 ac_ext=c
9109 ac_cpp='$CPP $CPPFLAGS'
9110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9115 # Source file extension for C test sources.
9116 ac_ext=c
9118 # Object file extension for compiled C test sources.
9119 objext=o
9120 objext=$objext
9122 # Code to be used in simple compile tests
9123 lt_simple_compile_test_code="int some_variable = 0;"
9125 # Code to be used in simple link tests
9126 lt_simple_link_test_code='int main(){return(0);}'
9134 # If no C compiler was specified, use CC.
9135 LTCC=${LTCC-"$CC"}
9137 # If no C compiler flags were specified, use CFLAGS.
9138 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9140 # Allow CC to be a program name with arguments.
9141 compiler=$CC
9143 # Save the default compiler, since it gets overwritten when the other
9144 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9145 compiler_DEFAULT=$CC
9147 # save warnings/boilerplate of simple test code
9148 ac_outfile=conftest.$ac_objext
9149 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9150 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9151 _lt_compiler_boilerplate=`cat conftest.err`
9152 $RM conftest*
9154 ac_outfile=conftest.$ac_objext
9155 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9156 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9157 _lt_linker_boilerplate=`cat conftest.err`
9158 $RM -r conftest*
9161 ## CAVEAT EMPTOR:
9162 ## There is no encapsulation within the following macros, do not change
9163 ## the running order or otherwise move them around unless you know exactly
9164 ## what you are doing...
9165 if test -n "$compiler"; then
9167 lt_prog_compiler_no_builtin_flag=
9169 if test "$GCC" = yes; then
9170 case $cc_basename in
9171 nvcc*)
9172 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9174 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9175 esac
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9178 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9179 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9180 $as_echo_n "(cached) " >&6
9181 else
9182 lt_cv_prog_compiler_rtti_exceptions=no
9183 ac_outfile=conftest.$ac_objext
9184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9185 lt_compiler_flag="-fno-rtti -fno-exceptions"
9186 # Insert the option either (1) after the last *FLAGS variable, or
9187 # (2) before a word containing "conftest.", or (3) at the end.
9188 # Note that $ac_compile itself does not contain backslashes and begins
9189 # with a dollar sign (not a hyphen), so the echo should work correctly.
9190 # The option is referenced via a variable to avoid confusing sed.
9191 lt_compile=`echo "$ac_compile" | $SED \
9192 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9194 -e 's:$: $lt_compiler_flag:'`
9195 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9196 (eval "$lt_compile" 2>conftest.err)
9197 ac_status=$?
9198 cat conftest.err >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 if (exit $ac_status) && test -s "$ac_outfile"; then
9201 # The compiler can only warn and ignore the option if not recognized
9202 # So say no if there are warnings other than the usual output.
9203 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9204 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9205 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9206 lt_cv_prog_compiler_rtti_exceptions=yes
9209 $RM conftest*
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9213 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9215 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9216 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9217 else
9228 lt_prog_compiler_wl=
9229 lt_prog_compiler_pic=
9230 lt_prog_compiler_static=
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9233 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9235 if test "$GCC" = yes; then
9236 lt_prog_compiler_wl='-Wl,'
9237 lt_prog_compiler_static='-static'
9239 case $host_os in
9240 aix*)
9241 # All AIX code is PIC.
9242 if test "$host_cpu" = ia64; then
9243 # AIX 5 now supports IA64 processor
9244 lt_prog_compiler_static='-Bstatic'
9246 lt_prog_compiler_pic='-fPIC'
9249 amigaos*)
9250 case $host_cpu in
9251 powerpc)
9252 # see comment about AmigaOS4 .so support
9253 lt_prog_compiler_pic='-fPIC'
9255 m68k)
9256 # FIXME: we need at least 68020 code to build shared libraries, but
9257 # adding the `-m68020' flag to GCC prevents building anything better,
9258 # like `-m68040'.
9259 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9261 esac
9264 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9265 # PIC is the default for these OSes.
9268 mingw* | cygwin* | pw32* | os2* | cegcc*)
9269 # This hack is so that the source file can tell whether it is being
9270 # built for inclusion in a dll (and should export symbols for example).
9271 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9272 # (--disable-auto-import) libraries
9273 lt_prog_compiler_pic='-DDLL_EXPORT'
9276 darwin* | rhapsody*)
9277 # PIC is the default on this platform
9278 # Common symbols not allowed in MH_DYLIB files
9279 lt_prog_compiler_pic='-fno-common'
9282 haiku*)
9283 # PIC is the default for Haiku.
9284 # The "-static" flag exists, but is broken.
9285 lt_prog_compiler_static=
9288 hpux*)
9289 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9290 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9291 # sets the default TLS model and affects inlining.
9292 case $host_cpu in
9293 hppa*64*)
9294 # +Z the default
9297 lt_prog_compiler_pic='-fPIC'
9299 esac
9302 interix[3-9]*)
9303 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9304 # Instead, we relocate shared libraries at runtime.
9307 msdosdjgpp*)
9308 # Just because we use GCC doesn't mean we suddenly get shared libraries
9309 # on systems that don't support them.
9310 lt_prog_compiler_can_build_shared=no
9311 enable_shared=no
9314 *nto* | *qnx*)
9315 # QNX uses GNU C++, but need to define -shared option too, otherwise
9316 # it will coredump.
9317 lt_prog_compiler_pic='-fPIC -shared'
9320 sysv4*MP*)
9321 if test -d /usr/nec; then
9322 lt_prog_compiler_pic=-Kconform_pic
9327 lt_prog_compiler_pic='-fPIC'
9329 esac
9331 case $cc_basename in
9332 nvcc*) # Cuda Compiler Driver 2.2
9333 lt_prog_compiler_wl='-Xlinker '
9334 lt_prog_compiler_pic='-Xcompiler -fPIC'
9336 esac
9337 else
9338 # PORTME Check for flag to pass linker flags through the system compiler.
9339 case $host_os in
9340 aix*)
9341 lt_prog_compiler_wl='-Wl,'
9342 if test "$host_cpu" = ia64; then
9343 # AIX 5 now supports IA64 processor
9344 lt_prog_compiler_static='-Bstatic'
9345 else
9346 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9350 mingw* | cygwin* | pw32* | os2* | cegcc*)
9351 # This hack is so that the source file can tell whether it is being
9352 # built for inclusion in a dll (and should export symbols for example).
9353 lt_prog_compiler_pic='-DDLL_EXPORT'
9356 hpux9* | hpux10* | hpux11*)
9357 lt_prog_compiler_wl='-Wl,'
9358 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9359 # not for PA HP-UX.
9360 case $host_cpu in
9361 hppa*64*|ia64*)
9362 # +Z the default
9365 lt_prog_compiler_pic='+Z'
9367 esac
9368 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9369 lt_prog_compiler_static='${wl}-a ${wl}archive'
9372 irix5* | irix6* | nonstopux*)
9373 lt_prog_compiler_wl='-Wl,'
9374 # PIC (with -KPIC) is the default.
9375 lt_prog_compiler_static='-non_shared'
9378 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9379 case $cc_basename in
9380 # old Intel for x86_64 which still supported -KPIC.
9381 ecc*)
9382 lt_prog_compiler_wl='-Wl,'
9383 lt_prog_compiler_pic='-KPIC'
9384 lt_prog_compiler_static='-static'
9386 # icc used to be incompatible with GCC.
9387 # ICC 10 doesn't accept -KPIC any more.
9388 icc* | ifort*)
9389 lt_prog_compiler_wl='-Wl,'
9390 lt_prog_compiler_pic='-fPIC'
9391 lt_prog_compiler_static='-static'
9393 # Lahey Fortran 8.1.
9394 lf95*)
9395 lt_prog_compiler_wl='-Wl,'
9396 lt_prog_compiler_pic='--shared'
9397 lt_prog_compiler_static='--static'
9399 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9400 # Portland Group compilers (*not* the Pentium gcc compiler,
9401 # which looks to be a dead project)
9402 lt_prog_compiler_wl='-Wl,'
9403 lt_prog_compiler_pic='-fpic'
9404 lt_prog_compiler_static='-Bstatic'
9406 ccc*)
9407 lt_prog_compiler_wl='-Wl,'
9408 # All Alpha code is PIC.
9409 lt_prog_compiler_static='-non_shared'
9411 xl* | bgxl* | bgf* | mpixl*)
9412 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9413 lt_prog_compiler_wl='-Wl,'
9414 lt_prog_compiler_pic='-qpic'
9415 lt_prog_compiler_static='-qstaticlink'
9418 case `$CC -V 2>&1 | sed 5q` in
9419 *Sun\ F* | *Sun*Fortran*)
9420 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9421 lt_prog_compiler_pic='-KPIC'
9422 lt_prog_compiler_static='-Bstatic'
9423 lt_prog_compiler_wl=''
9425 *Sun\ C*)
9426 # Sun C 5.9
9427 lt_prog_compiler_pic='-KPIC'
9428 lt_prog_compiler_static='-Bstatic'
9429 lt_prog_compiler_wl='-Wl,'
9431 esac
9433 esac
9436 newsos6)
9437 lt_prog_compiler_pic='-KPIC'
9438 lt_prog_compiler_static='-Bstatic'
9441 *nto* | *qnx*)
9442 # QNX uses GNU C++, but need to define -shared option too, otherwise
9443 # it will coredump.
9444 lt_prog_compiler_pic='-fPIC -shared'
9447 osf3* | osf4* | osf5*)
9448 lt_prog_compiler_wl='-Wl,'
9449 # All OSF/1 code is PIC.
9450 lt_prog_compiler_static='-non_shared'
9453 rdos*)
9454 lt_prog_compiler_static='-non_shared'
9457 solaris*)
9458 lt_prog_compiler_pic='-KPIC'
9459 lt_prog_compiler_static='-Bstatic'
9460 case $cc_basename in
9461 f77* | f90* | f95*)
9462 lt_prog_compiler_wl='-Qoption ld ';;
9464 lt_prog_compiler_wl='-Wl,';;
9465 esac
9468 sunos4*)
9469 lt_prog_compiler_wl='-Qoption ld '
9470 lt_prog_compiler_pic='-PIC'
9471 lt_prog_compiler_static='-Bstatic'
9474 sysv4 | sysv4.2uw2* | sysv4.3*)
9475 lt_prog_compiler_wl='-Wl,'
9476 lt_prog_compiler_pic='-KPIC'
9477 lt_prog_compiler_static='-Bstatic'
9480 sysv4*MP*)
9481 if test -d /usr/nec ;then
9482 lt_prog_compiler_pic='-Kconform_pic'
9483 lt_prog_compiler_static='-Bstatic'
9487 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9488 lt_prog_compiler_wl='-Wl,'
9489 lt_prog_compiler_pic='-KPIC'
9490 lt_prog_compiler_static='-Bstatic'
9493 unicos*)
9494 lt_prog_compiler_wl='-Wl,'
9495 lt_prog_compiler_can_build_shared=no
9498 uts4*)
9499 lt_prog_compiler_pic='-pic'
9500 lt_prog_compiler_static='-Bstatic'
9504 lt_prog_compiler_can_build_shared=no
9506 esac
9509 case $host_os in
9510 # For platforms which do not support PIC, -DPIC is meaningless:
9511 *djgpp*)
9512 lt_prog_compiler_pic=
9515 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9517 esac
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9519 $as_echo "$lt_prog_compiler_pic" >&6; }
9527 # Check to make sure the PIC flag actually works.
9529 if test -n "$lt_prog_compiler_pic"; then
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9531 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9532 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9533 $as_echo_n "(cached) " >&6
9534 else
9535 lt_cv_prog_compiler_pic_works=no
9536 ac_outfile=conftest.$ac_objext
9537 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9538 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9539 # Insert the option either (1) after the last *FLAGS variable, or
9540 # (2) before a word containing "conftest.", or (3) at the end.
9541 # Note that $ac_compile itself does not contain backslashes and begins
9542 # with a dollar sign (not a hyphen), so the echo should work correctly.
9543 # The option is referenced via a variable to avoid confusing sed.
9544 lt_compile=`echo "$ac_compile" | $SED \
9545 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9546 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9547 -e 's:$: $lt_compiler_flag:'`
9548 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9549 (eval "$lt_compile" 2>conftest.err)
9550 ac_status=$?
9551 cat conftest.err >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 if (exit $ac_status) && test -s "$ac_outfile"; then
9554 # The compiler can only warn and ignore the option if not recognized
9555 # So say no if there are warnings other than the usual output.
9556 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9558 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9559 lt_cv_prog_compiler_pic_works=yes
9562 $RM conftest*
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9566 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9568 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9569 case $lt_prog_compiler_pic in
9570 "" | " "*) ;;
9571 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9572 esac
9573 else
9574 lt_prog_compiler_pic=
9575 lt_prog_compiler_can_build_shared=no
9586 # Check to make sure the static flag actually works.
9588 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9590 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9591 if ${lt_cv_prog_compiler_static_works+:} false; then :
9592 $as_echo_n "(cached) " >&6
9593 else
9594 lt_cv_prog_compiler_static_works=no
9595 save_LDFLAGS="$LDFLAGS"
9596 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9597 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9598 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9599 # The linker can only warn and ignore the option if not recognized
9600 # So say no if there are warnings
9601 if test -s conftest.err; then
9602 # Append any errors to the config.log.
9603 cat conftest.err 1>&5
9604 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9605 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9606 if diff conftest.exp conftest.er2 >/dev/null; then
9607 lt_cv_prog_compiler_static_works=yes
9609 else
9610 lt_cv_prog_compiler_static_works=yes
9613 $RM -r conftest*
9614 LDFLAGS="$save_LDFLAGS"
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9618 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9620 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9622 else
9623 lt_prog_compiler_static=
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9633 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9634 if ${lt_cv_prog_compiler_c_o+:} false; then :
9635 $as_echo_n "(cached) " >&6
9636 else
9637 lt_cv_prog_compiler_c_o=no
9638 $RM -r conftest 2>/dev/null
9639 mkdir conftest
9640 cd conftest
9641 mkdir out
9642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9644 lt_compiler_flag="-o out/conftest2.$ac_objext"
9645 # Insert the option either (1) after the last *FLAGS variable, or
9646 # (2) before a word containing "conftest.", or (3) at the end.
9647 # Note that $ac_compile itself does not contain backslashes and begins
9648 # with a dollar sign (not a hyphen), so the echo should work correctly.
9649 lt_compile=`echo "$ac_compile" | $SED \
9650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9652 -e 's:$: $lt_compiler_flag:'`
9653 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9654 (eval "$lt_compile" 2>out/conftest.err)
9655 ac_status=$?
9656 cat out/conftest.err >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9659 then
9660 # The compiler can only warn and ignore the option if not recognized
9661 # So say no if there are warnings
9662 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9663 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9664 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9665 lt_cv_prog_compiler_c_o=yes
9668 chmod u+w . 2>&5
9669 $RM conftest*
9670 # SGI C++ compiler will create directory out/ii_files/ for
9671 # template instantiation
9672 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9673 $RM out/* && rmdir out
9674 cd ..
9675 $RM -r conftest
9676 $RM conftest*
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9680 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9688 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9689 if ${lt_cv_prog_compiler_c_o+:} false; then :
9690 $as_echo_n "(cached) " >&6
9691 else
9692 lt_cv_prog_compiler_c_o=no
9693 $RM -r conftest 2>/dev/null
9694 mkdir conftest
9695 cd conftest
9696 mkdir out
9697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9699 lt_compiler_flag="-o out/conftest2.$ac_objext"
9700 # Insert the option either (1) after the last *FLAGS variable, or
9701 # (2) before a word containing "conftest.", or (3) at the end.
9702 # Note that $ac_compile itself does not contain backslashes and begins
9703 # with a dollar sign (not a hyphen), so the echo should work correctly.
9704 lt_compile=`echo "$ac_compile" | $SED \
9705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9707 -e 's:$: $lt_compiler_flag:'`
9708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9709 (eval "$lt_compile" 2>out/conftest.err)
9710 ac_status=$?
9711 cat out/conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9714 then
9715 # The compiler can only warn and ignore the option if not recognized
9716 # So say no if there are warnings
9717 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9718 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9719 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9720 lt_cv_prog_compiler_c_o=yes
9723 chmod u+w . 2>&5
9724 $RM conftest*
9725 # SGI C++ compiler will create directory out/ii_files/ for
9726 # template instantiation
9727 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9728 $RM out/* && rmdir out
9729 cd ..
9730 $RM -r conftest
9731 $RM conftest*
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9735 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9740 hard_links="nottested"
9741 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9742 # do not overwrite the value of need_locks provided by the user
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9744 $as_echo_n "checking if we can lock with hard links... " >&6; }
9745 hard_links=yes
9746 $RM conftest*
9747 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9748 touch conftest.a
9749 ln conftest.a conftest.b 2>&5 || hard_links=no
9750 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9752 $as_echo "$hard_links" >&6; }
9753 if test "$hard_links" = no; then
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9755 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9756 need_locks=warn
9758 else
9759 need_locks=no
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9768 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9770 runpath_var=
9771 allow_undefined_flag=
9772 always_export_symbols=no
9773 archive_cmds=
9774 archive_expsym_cmds=
9775 compiler_needs_object=no
9776 enable_shared_with_static_runtimes=no
9777 export_dynamic_flag_spec=
9778 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9779 hardcode_automatic=no
9780 hardcode_direct=no
9781 hardcode_direct_absolute=no
9782 hardcode_libdir_flag_spec=
9783 hardcode_libdir_flag_spec_ld=
9784 hardcode_libdir_separator=
9785 hardcode_minus_L=no
9786 hardcode_shlibpath_var=unsupported
9787 inherit_rpath=no
9788 link_all_deplibs=unknown
9789 module_cmds=
9790 module_expsym_cmds=
9791 old_archive_from_new_cmds=
9792 old_archive_from_expsyms_cmds=
9793 thread_safe_flag_spec=
9794 whole_archive_flag_spec=
9795 # include_expsyms should be a list of space-separated symbols to be *always*
9796 # included in the symbol list
9797 include_expsyms=
9798 # exclude_expsyms can be an extended regexp of symbols to exclude
9799 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9800 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9801 # as well as any symbol that contains `d'.
9802 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9803 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9804 # platforms (ab)use it in PIC code, but their linkers get confused if
9805 # the symbol is explicitly referenced. Since portable code cannot
9806 # rely on this symbol name, it's probably fine to never include it in
9807 # preloaded symbol tables.
9808 # Exclude shared library initialization/finalization symbols.
9809 extract_expsyms_cmds=
9811 case $host_os in
9812 cygwin* | mingw* | pw32* | cegcc*)
9813 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9814 # When not using gcc, we currently assume that we are using
9815 # Microsoft Visual C++.
9816 if test "$GCC" != yes; then
9817 with_gnu_ld=no
9820 interix*)
9821 # we just hope/assume this is gcc and not c89 (= MSVC++)
9822 with_gnu_ld=yes
9824 openbsd*)
9825 with_gnu_ld=no
9827 esac
9829 ld_shlibs=yes
9831 # On some targets, GNU ld is compatible enough with the native linker
9832 # that we're better off using the native interface for both.
9833 lt_use_gnu_ld_interface=no
9834 if test "$with_gnu_ld" = yes; then
9835 case $host_os in
9836 aix*)
9837 # The AIX port of GNU ld has always aspired to compatibility
9838 # with the native linker. However, as the warning in the GNU ld
9839 # block says, versions before 2.19.5* couldn't really create working
9840 # shared libraries, regardless of the interface used.
9841 case `$LD -v 2>&1` in
9842 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9843 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9844 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9846 lt_use_gnu_ld_interface=yes
9848 esac
9851 lt_use_gnu_ld_interface=yes
9853 esac
9856 if test "$lt_use_gnu_ld_interface" = yes; then
9857 # If archive_cmds runs LD, not CC, wlarc should be empty
9858 wlarc='${wl}'
9860 # Set some defaults for GNU ld with shared library support. These
9861 # are reset later if shared libraries are not supported. Putting them
9862 # here allows them to be overridden if necessary.
9863 runpath_var=LD_RUN_PATH
9864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9865 export_dynamic_flag_spec='${wl}--export-dynamic'
9866 # ancient GNU ld didn't support --whole-archive et. al.
9867 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9868 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9869 else
9870 whole_archive_flag_spec=
9872 supports_anon_versioning=no
9873 case `$LD -v 2>&1` in
9874 *GNU\ gold*) supports_anon_versioning=yes ;;
9875 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9876 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9877 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9878 *\ 2.11.*) ;; # other 2.11 versions
9879 *) supports_anon_versioning=yes ;;
9880 esac
9882 # See if GNU ld supports shared libraries.
9883 case $host_os in
9884 aix[3-9]*)
9885 # On AIX/PPC, the GNU linker is very broken
9886 if test "$host_cpu" != ia64; then
9887 ld_shlibs=no
9888 cat <<_LT_EOF 1>&2
9890 *** Warning: the GNU linker, at least up to release 2.19, is reported
9891 *** to be unable to reliably create shared libraries on AIX.
9892 *** Therefore, libtool is disabling shared libraries support. If you
9893 *** really care for shared libraries, you may want to install binutils
9894 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9895 *** You will then need to restart the configuration process.
9897 _LT_EOF
9901 amigaos*)
9902 case $host_cpu in
9903 powerpc)
9904 # see comment about AmigaOS4 .so support
9905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9906 archive_expsym_cmds=''
9908 m68k)
9909 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)'
9910 hardcode_libdir_flag_spec='-L$libdir'
9911 hardcode_minus_L=yes
9913 esac
9916 beos*)
9917 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9918 allow_undefined_flag=unsupported
9919 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9920 # support --undefined. This deserves some investigation. FIXME
9921 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9922 else
9923 ld_shlibs=no
9927 cygwin* | mingw* | pw32* | cegcc*)
9928 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9929 # as there is no search path for DLLs.
9930 hardcode_libdir_flag_spec='-L$libdir'
9931 export_dynamic_flag_spec='${wl}--export-all-symbols'
9932 allow_undefined_flag=unsupported
9933 always_export_symbols=no
9934 enable_shared_with_static_runtimes=yes
9935 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9937 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9939 # If the export-symbols file already is a .def file (1st line
9940 # is EXPORTS), use it as is; otherwise, prepend...
9941 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9942 cp $export_symbols $output_objdir/$soname.def;
9943 else
9944 echo EXPORTS > $output_objdir/$soname.def;
9945 cat $export_symbols >> $output_objdir/$soname.def;
9947 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9948 else
9949 ld_shlibs=no
9953 haiku*)
9954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9955 link_all_deplibs=yes
9958 interix[3-9]*)
9959 hardcode_direct=no
9960 hardcode_shlibpath_var=no
9961 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9962 export_dynamic_flag_spec='${wl}-E'
9963 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9964 # Instead, shared libraries are loaded at an image base (0x10000000 by
9965 # default) and relocated if they conflict, which is a slow very memory
9966 # consuming and fragmenting process. To avoid this, we pick a random,
9967 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9968 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9969 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9970 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'
9973 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9974 tmp_diet=no
9975 if test "$host_os" = linux-dietlibc; then
9976 case $cc_basename in
9977 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9978 esac
9980 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9981 && test "$tmp_diet" = no
9982 then
9983 tmp_addflag=' $pic_flag'
9984 tmp_sharedflag='-shared'
9985 case $cc_basename,$host_cpu in
9986 pgcc*) # Portland Group C compiler
9987 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'
9988 tmp_addflag=' $pic_flag'
9990 pgf77* | pgf90* | pgf95* | pgfortran*)
9991 # Portland Group f77 and f90 compilers
9992 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'
9993 tmp_addflag=' $pic_flag -Mnomain' ;;
9994 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9995 tmp_addflag=' -i_dynamic' ;;
9996 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9997 tmp_addflag=' -i_dynamic -nofor_main' ;;
9998 ifc* | ifort*) # Intel Fortran compiler
9999 tmp_addflag=' -nofor_main' ;;
10000 lf95*) # Lahey Fortran 8.1
10001 whole_archive_flag_spec=
10002 tmp_sharedflag='--shared' ;;
10003 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10004 tmp_sharedflag='-qmkshrobj'
10005 tmp_addflag= ;;
10006 nvcc*) # Cuda Compiler Driver 2.2
10007 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'
10008 compiler_needs_object=yes
10010 esac
10011 case `$CC -V 2>&1 | sed 5q` in
10012 *Sun\ C*) # Sun C 5.9
10013 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'
10014 compiler_needs_object=yes
10015 tmp_sharedflag='-G' ;;
10016 *Sun\ F*) # Sun Fortran 8.3
10017 tmp_sharedflag='-G' ;;
10018 esac
10019 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10021 if test "x$supports_anon_versioning" = xyes; then
10022 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10023 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10024 echo "local: *; };" >> $output_objdir/$libname.ver~
10025 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10028 case $cc_basename in
10029 xlf* | bgf* | bgxlf* | mpixlf*)
10030 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10031 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10032 hardcode_libdir_flag_spec=
10033 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10034 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10035 if test "x$supports_anon_versioning" = xyes; then
10036 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10037 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10038 echo "local: *; };" >> $output_objdir/$libname.ver~
10039 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10042 esac
10043 else
10044 ld_shlibs=no
10048 netbsd*)
10049 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10050 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10051 wlarc=
10052 else
10053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10054 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10058 solaris*)
10059 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10060 ld_shlibs=no
10061 cat <<_LT_EOF 1>&2
10063 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10064 *** create shared libraries on Solaris systems. Therefore, libtool
10065 *** is disabling shared libraries support. We urge you to upgrade GNU
10066 *** binutils to release 2.9.1 or newer. Another option is to modify
10067 *** your PATH or compiler configuration so that the native linker is
10068 *** used, and then restart.
10070 _LT_EOF
10071 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10073 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10074 else
10075 ld_shlibs=no
10079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10080 case `$LD -v 2>&1` in
10081 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10082 ld_shlibs=no
10083 cat <<_LT_EOF 1>&2
10085 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10086 *** reliably create shared libraries on SCO systems. Therefore, libtool
10087 *** is disabling shared libraries support. We urge you to upgrade GNU
10088 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10089 *** your PATH or compiler configuration so that the native linker is
10090 *** used, and then restart.
10092 _LT_EOF
10095 # For security reasons, it is highly recommended that you always
10096 # use absolute paths for naming shared libraries, and exclude the
10097 # DT_RUNPATH tag from executables and libraries. But doing so
10098 # requires that you compile everything twice, which is a pain.
10099 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10100 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10102 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10103 else
10104 ld_shlibs=no
10107 esac
10110 sunos4*)
10111 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10112 wlarc=
10113 hardcode_direct=yes
10114 hardcode_shlibpath_var=no
10118 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10120 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10121 else
10122 ld_shlibs=no
10125 esac
10127 if test "$ld_shlibs" = no; then
10128 runpath_var=
10129 hardcode_libdir_flag_spec=
10130 export_dynamic_flag_spec=
10131 whole_archive_flag_spec=
10133 else
10134 # PORTME fill in a description of your system's linker (not GNU ld)
10135 case $host_os in
10136 aix3*)
10137 allow_undefined_flag=unsupported
10138 always_export_symbols=yes
10139 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'
10140 # Note: this linker hardcodes the directories in LIBPATH if there
10141 # are no directories specified by -L.
10142 hardcode_minus_L=yes
10143 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10144 # Neither direct hardcoding nor static linking is supported with a
10145 # broken collect2.
10146 hardcode_direct=unsupported
10150 aix[4-9]*)
10151 if test "$host_cpu" = ia64; then
10152 # On IA64, the linker does run time linking by default, so we don't
10153 # have to do anything special.
10154 aix_use_runtimelinking=no
10155 exp_sym_flag='-Bexport'
10156 no_entry_flag=""
10157 else
10158 # If we're using GNU nm, then we don't want the "-C" option.
10159 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10160 # Also, AIX nm treats weak defined symbols like other global
10161 # defined symbols, whereas GNU nm marks them as "W".
10162 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10163 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'
10164 else
10165 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'
10167 aix_use_runtimelinking=no
10169 # Test if we are trying to use run time linking or normal
10170 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10171 # need to do runtime linking.
10172 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10173 for ld_flag in $LDFLAGS; do
10174 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10175 aix_use_runtimelinking=yes
10176 break
10178 done
10180 esac
10182 exp_sym_flag='-bexport'
10183 no_entry_flag='-bnoentry'
10186 # When large executables or shared objects are built, AIX ld can
10187 # have problems creating the table of contents. If linking a library
10188 # or program results in "error TOC overflow" add -mminimal-toc to
10189 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10190 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10192 archive_cmds=''
10193 hardcode_direct=yes
10194 hardcode_direct_absolute=yes
10195 hardcode_libdir_separator=':'
10196 link_all_deplibs=yes
10197 file_list_spec='${wl}-f,'
10199 if test "$GCC" = yes; then
10200 case $host_os in aix4.[012]|aix4.[012].*)
10201 # We only want to do this on AIX 4.2 and lower, the check
10202 # below for broken collect2 doesn't work under 4.3+
10203 collect2name=`${CC} -print-prog-name=collect2`
10204 if test -f "$collect2name" &&
10205 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10206 then
10207 # We have reworked collect2
10209 else
10210 # We have old collect2
10211 hardcode_direct=unsupported
10212 # It fails to find uninstalled libraries when the uninstalled
10213 # path is not listed in the libpath. Setting hardcode_minus_L
10214 # to unsupported forces relinking
10215 hardcode_minus_L=yes
10216 hardcode_libdir_flag_spec='-L$libdir'
10217 hardcode_libdir_separator=
10220 esac
10221 shared_flag='-shared'
10222 if test "$aix_use_runtimelinking" = yes; then
10223 shared_flag="$shared_flag "'${wl}-G'
10225 else
10226 # not using gcc
10227 if test "$host_cpu" = ia64; then
10228 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10229 # chokes on -Wl,-G. The following line is correct:
10230 shared_flag='-G'
10231 else
10232 if test "$aix_use_runtimelinking" = yes; then
10233 shared_flag='${wl}-G'
10234 else
10235 shared_flag='${wl}-bM:SRE'
10240 export_dynamic_flag_spec='${wl}-bexpall'
10241 # It seems that -bexpall does not export symbols beginning with
10242 # underscore (_), so it is better to generate a list of symbols to export.
10243 always_export_symbols=yes
10244 if test "$aix_use_runtimelinking" = yes; then
10245 # Warning - without using the other runtime loading flags (-brtl),
10246 # -berok will link without error, but may produce a broken library.
10247 allow_undefined_flag='-berok'
10248 # Determine the default libpath from the value encoded in an
10249 # empty executable.
10250 if test x$gcc_no_link = xyes; then
10251 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h. */
10257 main ()
10261 return 0;
10263 _ACEOF
10264 if ac_fn_c_try_link "$LINENO"; then :
10266 lt_aix_libpath_sed='
10267 /Import File Strings/,/^$/ {
10268 /^0/ {
10269 s/^0 *\(.*\)$/\1/
10273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10274 # Check for a 64-bit object if we didn't find anything.
10275 if test -z "$aix_libpath"; then
10276 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10279 rm -f core conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext conftest.$ac_ext
10281 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10283 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10284 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"
10285 else
10286 if test "$host_cpu" = ia64; then
10287 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10288 allow_undefined_flag="-z nodefs"
10289 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"
10290 else
10291 # Determine the default libpath from the value encoded in an
10292 # empty executable.
10293 if test x$gcc_no_link = xyes; then
10294 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h. */
10300 main ()
10304 return 0;
10306 _ACEOF
10307 if ac_fn_c_try_link "$LINENO"; then :
10309 lt_aix_libpath_sed='
10310 /Import File Strings/,/^$/ {
10311 /^0/ {
10312 s/^0 *\(.*\)$/\1/
10316 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10317 # Check for a 64-bit object if we didn't find anything.
10318 if test -z "$aix_libpath"; then
10319 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10322 rm -f core conftest.err conftest.$ac_objext \
10323 conftest$ac_exeext conftest.$ac_ext
10324 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10326 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10327 # Warning - without using the other run time loading flags,
10328 # -berok will link without error, but may produce a broken library.
10329 no_undefined_flag=' ${wl}-bernotok'
10330 allow_undefined_flag=' ${wl}-berok'
10331 if test "$with_gnu_ld" = yes; then
10332 # We only use this code for GNU lds that support --whole-archive.
10333 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10334 else
10335 # Exported symbols can be pulled into shared objects from archives
10336 whole_archive_flag_spec='$convenience'
10338 archive_cmds_need_lc=yes
10339 # This is similar to how AIX traditionally builds its shared libraries.
10340 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'
10345 amigaos*)
10346 case $host_cpu in
10347 powerpc)
10348 # see comment about AmigaOS4 .so support
10349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10350 archive_expsym_cmds=''
10352 m68k)
10353 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)'
10354 hardcode_libdir_flag_spec='-L$libdir'
10355 hardcode_minus_L=yes
10357 esac
10360 bsdi[45]*)
10361 export_dynamic_flag_spec=-rdynamic
10364 cygwin* | mingw* | pw32* | cegcc*)
10365 # When not using gcc, we currently assume that we are using
10366 # Microsoft Visual C++.
10367 # hardcode_libdir_flag_spec is actually meaningless, as there is
10368 # no search path for DLLs.
10369 hardcode_libdir_flag_spec=' '
10370 allow_undefined_flag=unsupported
10371 # Tell ltmain to make .lib files, not .a files.
10372 libext=lib
10373 # Tell ltmain to make .dll files, not .so files.
10374 shrext_cmds=".dll"
10375 # FIXME: Setting linknames here is a bad hack.
10376 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10377 # The linker will automatically build a .lib file if we build a DLL.
10378 old_archive_from_new_cmds='true'
10379 # FIXME: Should let the user specify the lib program.
10380 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10381 fix_srcfile_path='`cygpath -w "$srcfile"`'
10382 enable_shared_with_static_runtimes=yes
10385 darwin* | rhapsody*)
10389 # Publish an arg to allow the user to select that Darwin host (and target)
10390 # libraries should be given install-names like @rpath/libfoo.dylib. This
10391 # requires that the user of the library then adds an 'rpath' to the DSO that
10392 # needs access.
10393 # NOTE: there are defaults below, for systems that support rpaths. The person
10394 # configuring can override the defaults for any system version that supports
10395 # them - they are, however, forced off for system versions without support.
10396 # Check whether --enable-darwin-at-rpath was given.
10397 if test "${enable_darwin_at_rpath+set}" = set; then :
10398 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
10399 # This is not supported before macOS 10.5 / Darwin9.
10400 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10401 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
10403 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
10404 enable_darwin_at_rpath=no
10406 esac
10408 else
10409 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10410 # As above, before 10.5 / Darwin9 this does not work.
10411 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10412 enable_darwin_at_rpath=no
10415 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
10416 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
10417 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
10418 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
10420 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
10421 enable_darwin_at_rpath=yes
10423 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
10424 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
10426 esac
10431 archive_cmds_need_lc=no
10432 hardcode_direct=no
10433 hardcode_automatic=yes
10434 hardcode_shlibpath_var=unsupported
10435 if test "$lt_cv_ld_force_load" = "yes"; then
10436 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\"`'
10437 else
10438 whole_archive_flag_spec=''
10440 link_all_deplibs=yes
10441 allow_undefined_flag="$_lt_dar_allow_undefined"
10442 case $cc_basename in
10443 ifort*) _lt_dar_can_shared=yes ;;
10444 *) _lt_dar_can_shared=$GCC ;;
10445 esac
10446 if test "$_lt_dar_can_shared" = "yes"; then
10447 output_verbose_link_cmd=func_echo_all
10448 _lt_install_name='\$rpath/\$soname'
10449 if test "x$enable_darwin_at_rpath" = "xyes"; then
10450 _lt_install_name='@rpath/\$soname'
10452 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
10453 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10454 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}"
10455 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}"
10457 else
10458 ld_shlibs=no
10463 dgux*)
10464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10465 hardcode_libdir_flag_spec='-L$libdir'
10466 hardcode_shlibpath_var=no
10469 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10470 # support. Future versions do this automatically, but an explicit c++rt0.o
10471 # does not break anything, and helps significantly (at the cost of a little
10472 # extra space).
10473 freebsd2.2*)
10474 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10475 hardcode_libdir_flag_spec='-R$libdir'
10476 hardcode_direct=yes
10477 hardcode_shlibpath_var=no
10480 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10481 freebsd2.*)
10482 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10483 hardcode_direct=yes
10484 hardcode_minus_L=yes
10485 hardcode_shlibpath_var=no
10488 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10489 freebsd* | dragonfly*)
10490 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10491 hardcode_libdir_flag_spec='-R$libdir'
10492 hardcode_direct=yes
10493 hardcode_shlibpath_var=no
10496 hpux9*)
10497 if test "$GCC" = yes; then
10498 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'
10499 else
10500 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'
10502 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10503 hardcode_libdir_separator=:
10504 hardcode_direct=yes
10506 # hardcode_minus_L: Not really in the search PATH,
10507 # but as the default location of the library.
10508 hardcode_minus_L=yes
10509 export_dynamic_flag_spec='${wl}-E'
10512 hpux10*)
10513 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10514 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10515 else
10516 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10518 if test "$with_gnu_ld" = no; then
10519 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10520 hardcode_libdir_flag_spec_ld='+b $libdir'
10521 hardcode_libdir_separator=:
10522 hardcode_direct=yes
10523 hardcode_direct_absolute=yes
10524 export_dynamic_flag_spec='${wl}-E'
10525 # hardcode_minus_L: Not really in the search PATH,
10526 # but as the default location of the library.
10527 hardcode_minus_L=yes
10531 hpux11*)
10532 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10533 case $host_cpu in
10534 hppa*64*)
10535 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10537 ia64*)
10538 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10541 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10543 esac
10544 else
10545 case $host_cpu in
10546 hppa*64*)
10547 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10549 ia64*)
10550 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10554 # Older versions of the 11.00 compiler do not understand -b yet
10555 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10557 $as_echo_n "checking if $CC understands -b... " >&6; }
10558 if ${lt_cv_prog_compiler__b+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560 else
10561 lt_cv_prog_compiler__b=no
10562 save_LDFLAGS="$LDFLAGS"
10563 LDFLAGS="$LDFLAGS -b"
10564 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10565 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10566 # The linker can only warn and ignore the option if not recognized
10567 # So say no if there are warnings
10568 if test -s conftest.err; then
10569 # Append any errors to the config.log.
10570 cat conftest.err 1>&5
10571 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10573 if diff conftest.exp conftest.er2 >/dev/null; then
10574 lt_cv_prog_compiler__b=yes
10576 else
10577 lt_cv_prog_compiler__b=yes
10580 $RM -r conftest*
10581 LDFLAGS="$save_LDFLAGS"
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10585 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10587 if test x"$lt_cv_prog_compiler__b" = xyes; then
10588 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10589 else
10590 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10594 esac
10596 if test "$with_gnu_ld" = no; then
10597 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10598 hardcode_libdir_separator=:
10600 case $host_cpu in
10601 hppa*64*|ia64*)
10602 hardcode_direct=no
10603 hardcode_shlibpath_var=no
10606 hardcode_direct=yes
10607 hardcode_direct_absolute=yes
10608 export_dynamic_flag_spec='${wl}-E'
10610 # hardcode_minus_L: Not really in the search PATH,
10611 # but as the default location of the library.
10612 hardcode_minus_L=yes
10614 esac
10618 irix5* | irix6* | nonstopux*)
10619 if test "$GCC" = yes; then
10620 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'
10621 # Try to use the -exported_symbol ld option, if it does not
10622 # work, assume that -exports_file does not work either and
10623 # implicitly export all symbols.
10624 save_LDFLAGS="$LDFLAGS"
10625 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10626 if test x$gcc_no_link = xyes; then
10627 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631 int foo(void) {}
10632 _ACEOF
10633 if ac_fn_c_try_link "$LINENO"; then :
10634 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'
10637 rm -f core conftest.err conftest.$ac_objext \
10638 conftest$ac_exeext conftest.$ac_ext
10639 LDFLAGS="$save_LDFLAGS"
10640 else
10641 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'
10642 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'
10644 archive_cmds_need_lc='no'
10645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10646 hardcode_libdir_separator=:
10647 inherit_rpath=yes
10648 link_all_deplibs=yes
10651 netbsd*)
10652 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10654 else
10655 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10657 hardcode_libdir_flag_spec='-R$libdir'
10658 hardcode_direct=yes
10659 hardcode_shlibpath_var=no
10662 newsos6)
10663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10664 hardcode_direct=yes
10665 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10666 hardcode_libdir_separator=:
10667 hardcode_shlibpath_var=no
10670 *nto* | *qnx*)
10673 openbsd*)
10674 if test -f /usr/libexec/ld.so; then
10675 hardcode_direct=yes
10676 hardcode_shlibpath_var=no
10677 hardcode_direct_absolute=yes
10678 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10679 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10680 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10681 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10682 export_dynamic_flag_spec='${wl}-E'
10683 else
10684 case $host_os in
10685 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10686 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10687 hardcode_libdir_flag_spec='-R$libdir'
10690 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10691 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10693 esac
10695 else
10696 ld_shlibs=no
10700 os2*)
10701 hardcode_libdir_flag_spec='-L$libdir'
10702 hardcode_minus_L=yes
10703 allow_undefined_flag=unsupported
10704 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'
10705 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10708 osf3*)
10709 if test "$GCC" = yes; then
10710 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10711 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'
10712 else
10713 allow_undefined_flag=' -expect_unresolved \*'
10714 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'
10716 archive_cmds_need_lc='no'
10717 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10718 hardcode_libdir_separator=:
10721 osf4* | osf5*) # as osf3* with the addition of -msym flag
10722 if test "$GCC" = yes; then
10723 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10724 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'
10725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10726 else
10727 allow_undefined_flag=' -expect_unresolved \*'
10728 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'
10729 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~
10730 $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'
10732 # Both c and cxx compiler support -rpath directly
10733 hardcode_libdir_flag_spec='-rpath $libdir'
10735 archive_cmds_need_lc='no'
10736 hardcode_libdir_separator=:
10739 solaris*)
10740 no_undefined_flag=' -z defs'
10741 if test "$GCC" = yes; then
10742 wlarc='${wl}'
10743 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10744 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10745 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10746 else
10747 case `$CC -V 2>&1` in
10748 *"Compilers 5.0"*)
10749 wlarc=''
10750 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10751 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10752 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10755 wlarc='${wl}'
10756 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10757 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10758 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10760 esac
10762 hardcode_libdir_flag_spec='-R$libdir'
10763 hardcode_shlibpath_var=no
10764 case $host_os in
10765 solaris2.[0-5] | solaris2.[0-5].*) ;;
10767 # The compiler driver will combine and reorder linker options,
10768 # but understands `-z linker_flag'. GCC discards it without `$wl',
10769 # but is careful enough not to reorder.
10770 # Supported since Solaris 2.6 (maybe 2.5.1?)
10771 if test "$GCC" = yes; then
10772 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10773 else
10774 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10777 esac
10778 link_all_deplibs=yes
10781 sunos4*)
10782 if test "x$host_vendor" = xsequent; then
10783 # Use $CC to link under sequent, because it throws in some extra .o
10784 # files that make .init and .fini sections work.
10785 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10786 else
10787 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10789 hardcode_libdir_flag_spec='-L$libdir'
10790 hardcode_direct=yes
10791 hardcode_minus_L=yes
10792 hardcode_shlibpath_var=no
10795 sysv4)
10796 case $host_vendor in
10797 sni)
10798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10799 hardcode_direct=yes # is this really true???
10801 siemens)
10802 ## LD is ld it makes a PLAMLIB
10803 ## CC just makes a GrossModule.
10804 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10805 reload_cmds='$CC -r -o $output$reload_objs'
10806 hardcode_direct=no
10808 motorola)
10809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10810 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10812 esac
10813 runpath_var='LD_RUN_PATH'
10814 hardcode_shlibpath_var=no
10817 sysv4.3*)
10818 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10819 hardcode_shlibpath_var=no
10820 export_dynamic_flag_spec='-Bexport'
10823 sysv4*MP*)
10824 if test -d /usr/nec; then
10825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10826 hardcode_shlibpath_var=no
10827 runpath_var=LD_RUN_PATH
10828 hardcode_runpath_var=yes
10829 ld_shlibs=yes
10833 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10834 no_undefined_flag='${wl}-z,text'
10835 archive_cmds_need_lc=no
10836 hardcode_shlibpath_var=no
10837 runpath_var='LD_RUN_PATH'
10839 if test "$GCC" = yes; then
10840 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10841 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10842 else
10843 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10844 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10848 sysv5* | sco3.2v5* | sco5v6*)
10849 # Note: We can NOT use -z defs as we might desire, because we do not
10850 # link with -lc, and that would cause any symbols used from libc to
10851 # always be unresolved, which means just about no library would
10852 # ever link correctly. If we're not using GNU ld we use -z text
10853 # though, which does catch some bad symbols but isn't as heavy-handed
10854 # as -z defs.
10855 no_undefined_flag='${wl}-z,text'
10856 allow_undefined_flag='${wl}-z,nodefs'
10857 archive_cmds_need_lc=no
10858 hardcode_shlibpath_var=no
10859 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10860 hardcode_libdir_separator=':'
10861 link_all_deplibs=yes
10862 export_dynamic_flag_spec='${wl}-Bexport'
10863 runpath_var='LD_RUN_PATH'
10865 if test "$GCC" = yes; then
10866 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10867 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10868 else
10869 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10870 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10874 uts4*)
10875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10876 hardcode_libdir_flag_spec='-L$libdir'
10877 hardcode_shlibpath_var=no
10881 ld_shlibs=no
10883 esac
10885 if test x$host_vendor = xsni; then
10886 case $host in
10887 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10888 export_dynamic_flag_spec='${wl}-Blargedynsym'
10890 esac
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10895 $as_echo "$ld_shlibs" >&6; }
10896 test "$ld_shlibs" = no && can_build_shared=no
10898 with_gnu_ld=$with_gnu_ld
10915 # Do we need to explicitly link libc?
10917 case "x$archive_cmds_need_lc" in
10918 x|xyes)
10919 # Assume -lc should be added
10920 archive_cmds_need_lc=yes
10922 if test "$enable_shared" = yes && test "$GCC" = yes; then
10923 case $archive_cmds in
10924 *'~'*)
10925 # FIXME: we may have to deal with multi-command sequences.
10927 '$CC '*)
10928 # Test whether the compiler implicitly links with -lc since on some
10929 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10930 # to ld, don't add -lc before -lgcc.
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10932 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10933 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10934 $as_echo_n "(cached) " >&6
10935 else
10936 $RM conftest*
10937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10940 (eval $ac_compile) 2>&5
10941 ac_status=$?
10942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10943 test $ac_status = 0; } 2>conftest.err; then
10944 soname=conftest
10945 lib=conftest
10946 libobjs=conftest.$ac_objext
10947 deplibs=
10948 wl=$lt_prog_compiler_wl
10949 pic_flag=$lt_prog_compiler_pic
10950 compiler_flags=-v
10951 linker_flags=-v
10952 verstring=
10953 output_objdir=.
10954 libname=conftest
10955 lt_save_allow_undefined_flag=$allow_undefined_flag
10956 allow_undefined_flag=
10957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10958 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10959 ac_status=$?
10960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10961 test $ac_status = 0; }
10962 then
10963 lt_cv_archive_cmds_need_lc=no
10964 else
10965 lt_cv_archive_cmds_need_lc=yes
10967 allow_undefined_flag=$lt_save_allow_undefined_flag
10968 else
10969 cat conftest.err 1>&5
10971 $RM conftest*
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10975 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10976 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10978 esac
10981 esac
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11140 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11142 if test "$GCC" = yes; then
11143 case $host_os in
11144 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11145 *) lt_awk_arg="/^libraries:/" ;;
11146 esac
11147 case $host_os in
11148 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11149 *) lt_sed_strip_eq="s,=/,/,g" ;;
11150 esac
11151 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11152 case $lt_search_path_spec in
11153 *\;*)
11154 # if the path contains ";" then we assume it to be the separator
11155 # otherwise default to the standard path separator (i.e. ":") - it is
11156 # assumed that no part of a normal pathname contains ";" but that should
11157 # okay in the real world where ";" in dirpaths is itself problematic.
11158 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11161 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11163 esac
11164 # Ok, now we have the path, separated by spaces, we can step through it
11165 # and add multilib dir if necessary.
11166 lt_tmp_lt_search_path_spec=
11167 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11168 for lt_sys_path in $lt_search_path_spec; do
11169 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11170 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11171 else
11172 test -d "$lt_sys_path" && \
11173 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11175 done
11176 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11177 BEGIN {RS=" "; FS="/|\n";} {
11178 lt_foo="";
11179 lt_count=0;
11180 for (lt_i = NF; lt_i > 0; lt_i--) {
11181 if ($lt_i != "" && $lt_i != ".") {
11182 if ($lt_i == "..") {
11183 lt_count++;
11184 } else {
11185 if (lt_count == 0) {
11186 lt_foo="/" $lt_i lt_foo;
11187 } else {
11188 lt_count--;
11193 if (lt_foo != "") { lt_freq[lt_foo]++; }
11194 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11196 # AWK program above erroneously prepends '/' to C:/dos/paths
11197 # for these hosts.
11198 case $host_os in
11199 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11200 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11201 esac
11202 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11203 else
11204 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11206 library_names_spec=
11207 libname_spec='lib$name'
11208 soname_spec=
11209 shrext_cmds=".so"
11210 postinstall_cmds=
11211 postuninstall_cmds=
11212 finish_cmds=
11213 finish_eval=
11214 shlibpath_var=
11215 shlibpath_overrides_runpath=unknown
11216 version_type=none
11217 dynamic_linker="$host_os ld.so"
11218 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11219 need_lib_prefix=unknown
11220 hardcode_into_libs=no
11222 # when you set need_version to no, make sure it does not cause -set_version
11223 # flags to be left without arguments
11224 need_version=unknown
11226 case $host_os in
11227 aix3*)
11228 version_type=linux
11229 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11230 shlibpath_var=LIBPATH
11232 # AIX 3 has no versioning support, so we append a major version to the name.
11233 soname_spec='${libname}${release}${shared_ext}$major'
11236 aix[4-9]*)
11237 version_type=linux
11238 need_lib_prefix=no
11239 need_version=no
11240 hardcode_into_libs=yes
11241 if test "$host_cpu" = ia64; then
11242 # AIX 5 supports IA64
11243 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11244 shlibpath_var=LD_LIBRARY_PATH
11245 else
11246 # With GCC up to 2.95.x, collect2 would create an import file
11247 # for dependence libraries. The import file would start with
11248 # the line `#! .'. This would cause the generated library to
11249 # depend on `.', always an invalid library. This was fixed in
11250 # development snapshots of GCC prior to 3.0.
11251 case $host_os in
11252 aix4 | aix4.[01] | aix4.[01].*)
11253 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11254 echo ' yes '
11255 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11257 else
11258 can_build_shared=no
11261 esac
11262 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11263 # soname into executable. Probably we can add versioning support to
11264 # collect2, so additional links can be useful in future.
11265 if test "$aix_use_runtimelinking" = yes; then
11266 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11267 # instead of lib<name>.a to let people know that these are not
11268 # typical AIX shared libraries.
11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11270 else
11271 # We preserve .a as extension for shared libraries through AIX4.2
11272 # and later when we are not doing run time linking.
11273 library_names_spec='${libname}${release}.a $libname.a'
11274 soname_spec='${libname}${release}${shared_ext}$major'
11276 shlibpath_var=LIBPATH
11280 amigaos*)
11281 case $host_cpu in
11282 powerpc)
11283 # Since July 2007 AmigaOS4 officially supports .so libraries.
11284 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11287 m68k)
11288 library_names_spec='$libname.ixlibrary $libname.a'
11289 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11290 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'
11292 esac
11295 beos*)
11296 library_names_spec='${libname}${shared_ext}'
11297 dynamic_linker="$host_os ld.so"
11298 shlibpath_var=LIBRARY_PATH
11301 bsdi[45]*)
11302 version_type=linux
11303 need_version=no
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11305 soname_spec='${libname}${release}${shared_ext}$major'
11306 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11307 shlibpath_var=LD_LIBRARY_PATH
11308 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11309 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11310 # the default ld.so.conf also contains /usr/contrib/lib and
11311 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11312 # libtool to hard-code these into programs
11315 cygwin* | mingw* | pw32* | cegcc*)
11316 version_type=windows
11317 shrext_cmds=".dll"
11318 need_version=no
11319 need_lib_prefix=no
11321 case $GCC,$host_os in
11322 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11323 library_names_spec='$libname.dll.a'
11324 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11325 postinstall_cmds='base_file=`basename \${file}`~
11326 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11327 dldir=$destdir/`dirname \$dlpath`~
11328 test -d \$dldir || mkdir -p \$dldir~
11329 $install_prog $dir/$dlname \$dldir/$dlname~
11330 chmod a+x \$dldir/$dlname~
11331 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11332 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11334 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11335 dlpath=$dir/\$dldll~
11336 $RM \$dlpath'
11337 shlibpath_overrides_runpath=yes
11339 case $host_os in
11340 cygwin*)
11341 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11342 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11344 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11346 mingw* | cegcc*)
11347 # MinGW DLLs use traditional 'lib' prefix
11348 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11350 pw32*)
11351 # pw32 DLLs use 'pw' prefix rather than 'lib'
11352 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11354 esac
11358 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11360 esac
11361 dynamic_linker='Win32 ld.exe'
11362 # FIXME: first we should search . and the directory the executable is in
11363 shlibpath_var=PATH
11366 darwin* | rhapsody*)
11367 dynamic_linker="$host_os dyld"
11368 version_type=darwin
11369 need_lib_prefix=no
11370 need_version=no
11371 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11372 soname_spec='${libname}${release}${major}$shared_ext'
11373 shlibpath_overrides_runpath=yes
11374 shlibpath_var=DYLD_LIBRARY_PATH
11375 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11377 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11378 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11381 dgux*)
11382 version_type=linux
11383 need_lib_prefix=no
11384 need_version=no
11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11386 soname_spec='${libname}${release}${shared_ext}$major'
11387 shlibpath_var=LD_LIBRARY_PATH
11390 freebsd* | dragonfly*)
11391 # DragonFly does not have aout. When/if they implement a new
11392 # versioning mechanism, adjust this.
11393 if test -x /usr/bin/objformat; then
11394 objformat=`/usr/bin/objformat`
11395 else
11396 case $host_os in
11397 freebsd[23].*) objformat=aout ;;
11398 *) objformat=elf ;;
11399 esac
11401 version_type=freebsd-$objformat
11402 case $version_type in
11403 freebsd-elf*)
11404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11405 need_version=no
11406 need_lib_prefix=no
11408 freebsd-*)
11409 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11410 need_version=yes
11412 esac
11413 shlibpath_var=LD_LIBRARY_PATH
11414 case $host_os in
11415 freebsd2.*)
11416 shlibpath_overrides_runpath=yes
11418 freebsd3.[01]* | freebsdelf3.[01]*)
11419 shlibpath_overrides_runpath=yes
11420 hardcode_into_libs=yes
11422 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11423 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11424 shlibpath_overrides_runpath=no
11425 hardcode_into_libs=yes
11427 *) # from 4.6 on, and DragonFly
11428 shlibpath_overrides_runpath=yes
11429 hardcode_into_libs=yes
11431 esac
11434 haiku*)
11435 version_type=linux
11436 need_lib_prefix=no
11437 need_version=no
11438 dynamic_linker="$host_os runtime_loader"
11439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11440 soname_spec='${libname}${release}${shared_ext}$major'
11441 shlibpath_var=LIBRARY_PATH
11442 shlibpath_overrides_runpath=yes
11443 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11444 hardcode_into_libs=yes
11447 hpux9* | hpux10* | hpux11*)
11448 # Give a soname corresponding to the major version so that dld.sl refuses to
11449 # link against other versions.
11450 version_type=sunos
11451 need_lib_prefix=no
11452 need_version=no
11453 case $host_cpu in
11454 ia64*)
11455 shrext_cmds='.so'
11456 hardcode_into_libs=yes
11457 dynamic_linker="$host_os dld.so"
11458 shlibpath_var=LD_LIBRARY_PATH
11459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461 soname_spec='${libname}${release}${shared_ext}$major'
11462 if test "X$HPUX_IA64_MODE" = X32; then
11463 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11464 else
11465 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11467 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11469 hppa*64*)
11470 shrext_cmds='.sl'
11471 hardcode_into_libs=yes
11472 dynamic_linker="$host_os dld.sl"
11473 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11476 soname_spec='${libname}${release}${shared_ext}$major'
11477 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11478 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11481 shrext_cmds='.sl'
11482 dynamic_linker="$host_os dld.sl"
11483 shlibpath_var=SHLIB_PATH
11484 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11486 soname_spec='${libname}${release}${shared_ext}$major'
11488 esac
11489 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11490 postinstall_cmds='chmod 555 $lib'
11491 # or fails outright, so override atomically:
11492 install_override_mode=555
11495 interix[3-9]*)
11496 version_type=linux
11497 need_lib_prefix=no
11498 need_version=no
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11500 soname_spec='${libname}${release}${shared_ext}$major'
11501 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11502 shlibpath_var=LD_LIBRARY_PATH
11503 shlibpath_overrides_runpath=no
11504 hardcode_into_libs=yes
11507 irix5* | irix6* | nonstopux*)
11508 case $host_os in
11509 nonstopux*) version_type=nonstopux ;;
11511 if test "$lt_cv_prog_gnu_ld" = yes; then
11512 version_type=linux
11513 else
11514 version_type=irix
11515 fi ;;
11516 esac
11517 need_lib_prefix=no
11518 need_version=no
11519 soname_spec='${libname}${release}${shared_ext}$major'
11520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11521 case $host_os in
11522 irix5* | nonstopux*)
11523 libsuff= shlibsuff=
11526 case $LD in # libtool.m4 will add one of these switches to LD
11527 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11528 libsuff= shlibsuff= libmagic=32-bit;;
11529 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11530 libsuff=32 shlibsuff=N32 libmagic=N32;;
11531 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11532 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11533 *) libsuff= shlibsuff= libmagic=never-match;;
11534 esac
11536 esac
11537 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11538 shlibpath_overrides_runpath=no
11539 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11540 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11541 hardcode_into_libs=yes
11544 # No shared lib support for Linux oldld, aout, or coff.
11545 linux*oldld* | linux*aout* | linux*coff*)
11546 dynamic_linker=no
11549 # This must be Linux ELF.
11551 # uclinux* changes (here and below) have been submitted to the libtool
11552 # project, but have not yet been accepted: they are GCC-local changes
11553 # for the time being. (See
11554 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11555 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11556 version_type=linux
11557 need_lib_prefix=no
11558 need_version=no
11559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11560 soname_spec='${libname}${release}${shared_ext}$major'
11561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11562 shlibpath_var=LD_LIBRARY_PATH
11563 shlibpath_overrides_runpath=no
11565 # Some binutils ld are patched to set DT_RUNPATH
11566 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11567 $as_echo_n "(cached) " >&6
11568 else
11569 lt_cv_shlibpath_overrides_runpath=no
11570 save_LDFLAGS=$LDFLAGS
11571 save_libdir=$libdir
11572 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11573 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11574 if test x$gcc_no_link = xyes; then
11575 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h. */
11581 main ()
11585 return 0;
11587 _ACEOF
11588 if ac_fn_c_try_link "$LINENO"; then :
11589 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11590 lt_cv_shlibpath_overrides_runpath=yes
11593 rm -f core conftest.err conftest.$ac_objext \
11594 conftest$ac_exeext conftest.$ac_ext
11595 LDFLAGS=$save_LDFLAGS
11596 libdir=$save_libdir
11600 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11602 # This implies no fast_install, which is unacceptable.
11603 # Some rework will be needed to allow for fast_install
11604 # before this can be enabled.
11605 hardcode_into_libs=yes
11607 # Append ld.so.conf contents to the search path
11608 if test -f /etc/ld.so.conf; then
11609 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' ' '`
11610 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11613 # We used to test for /lib/ld.so.1 and disable shared libraries on
11614 # powerpc, because MkLinux only supported shared libraries with the
11615 # GNU dynamic linker. Since this was broken with cross compilers,
11616 # most powerpc-linux boxes support dynamic linking these days and
11617 # people can always --disable-shared, the test was removed, and we
11618 # assume the GNU/Linux dynamic linker is in use.
11619 dynamic_linker='GNU/Linux ld.so'
11622 netbsd*)
11623 version_type=sunos
11624 need_lib_prefix=no
11625 need_version=no
11626 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11628 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11629 dynamic_linker='NetBSD (a.out) ld.so'
11630 else
11631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11632 soname_spec='${libname}${release}${shared_ext}$major'
11633 dynamic_linker='NetBSD ld.elf_so'
11635 shlibpath_var=LD_LIBRARY_PATH
11636 shlibpath_overrides_runpath=yes
11637 hardcode_into_libs=yes
11640 newsos6)
11641 version_type=linux
11642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11643 shlibpath_var=LD_LIBRARY_PATH
11644 shlibpath_overrides_runpath=yes
11647 *nto* | *qnx*)
11648 version_type=qnx
11649 need_lib_prefix=no
11650 need_version=no
11651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11652 soname_spec='${libname}${release}${shared_ext}$major'
11653 shlibpath_var=LD_LIBRARY_PATH
11654 shlibpath_overrides_runpath=no
11655 hardcode_into_libs=yes
11656 dynamic_linker='ldqnx.so'
11659 openbsd*)
11660 version_type=sunos
11661 sys_lib_dlsearch_path_spec="/usr/lib"
11662 need_lib_prefix=no
11663 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11664 case $host_os in
11665 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11666 *) need_version=no ;;
11667 esac
11668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11670 shlibpath_var=LD_LIBRARY_PATH
11671 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11672 case $host_os in
11673 openbsd2.[89] | openbsd2.[89].*)
11674 shlibpath_overrides_runpath=no
11677 shlibpath_overrides_runpath=yes
11679 esac
11680 else
11681 shlibpath_overrides_runpath=yes
11685 os2*)
11686 libname_spec='$name'
11687 shrext_cmds=".dll"
11688 need_lib_prefix=no
11689 library_names_spec='$libname${shared_ext} $libname.a'
11690 dynamic_linker='OS/2 ld.exe'
11691 shlibpath_var=LIBPATH
11694 osf3* | osf4* | osf5*)
11695 version_type=osf
11696 need_lib_prefix=no
11697 need_version=no
11698 soname_spec='${libname}${release}${shared_ext}$major'
11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700 shlibpath_var=LD_LIBRARY_PATH
11701 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11702 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11705 rdos*)
11706 dynamic_linker=no
11709 solaris*)
11710 version_type=linux
11711 need_lib_prefix=no
11712 need_version=no
11713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11714 soname_spec='${libname}${release}${shared_ext}$major'
11715 shlibpath_var=LD_LIBRARY_PATH
11716 shlibpath_overrides_runpath=yes
11717 hardcode_into_libs=yes
11718 # ldd complains unless libraries are executable
11719 postinstall_cmds='chmod +x $lib'
11722 sunos4*)
11723 version_type=sunos
11724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11725 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11726 shlibpath_var=LD_LIBRARY_PATH
11727 shlibpath_overrides_runpath=yes
11728 if test "$with_gnu_ld" = yes; then
11729 need_lib_prefix=no
11731 need_version=yes
11734 sysv4 | sysv4.3*)
11735 version_type=linux
11736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11737 soname_spec='${libname}${release}${shared_ext}$major'
11738 shlibpath_var=LD_LIBRARY_PATH
11739 case $host_vendor in
11740 sni)
11741 shlibpath_overrides_runpath=no
11742 need_lib_prefix=no
11743 runpath_var=LD_RUN_PATH
11745 siemens)
11746 need_lib_prefix=no
11748 motorola)
11749 need_lib_prefix=no
11750 need_version=no
11751 shlibpath_overrides_runpath=no
11752 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11754 esac
11757 sysv4*MP*)
11758 if test -d /usr/nec ;then
11759 version_type=linux
11760 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11761 soname_spec='$libname${shared_ext}.$major'
11762 shlibpath_var=LD_LIBRARY_PATH
11766 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11767 version_type=freebsd-elf
11768 need_lib_prefix=no
11769 need_version=no
11770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11771 soname_spec='${libname}${release}${shared_ext}$major'
11772 shlibpath_var=LD_LIBRARY_PATH
11773 shlibpath_overrides_runpath=yes
11774 hardcode_into_libs=yes
11775 if test "$with_gnu_ld" = yes; then
11776 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11777 else
11778 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11779 case $host_os in
11780 sco3.2v5*)
11781 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11783 esac
11785 sys_lib_dlsearch_path_spec='/usr/lib'
11788 tpf*)
11789 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11790 version_type=linux
11791 need_lib_prefix=no
11792 need_version=no
11793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11794 shlibpath_var=LD_LIBRARY_PATH
11795 shlibpath_overrides_runpath=no
11796 hardcode_into_libs=yes
11799 uts4*)
11800 version_type=linux
11801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11802 soname_spec='${libname}${release}${shared_ext}$major'
11803 shlibpath_var=LD_LIBRARY_PATH
11806 # Shared libraries for VwWorks, >= 7 only at this stage
11807 # and (fpic) still incompatible with "large" code models
11808 # in a few configurations. Only for RTP mode in any case,
11809 # and upon explicit request at configure time.
11810 vxworks7*)
11811 dynamic_linker=no
11812 case ${with_multisubdir}-${enable_shared} in
11813 *large*)
11815 *mrtp*-yes)
11816 version_type=linux
11817 need_lib_prefix=no
11818 need_version=no
11819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11820 soname_spec='${libname}${release}${shared_ext}$major'
11821 dynamic_linker="$host_os module_loader"
11823 esac
11826 dynamic_linker=no
11828 esac
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11830 $as_echo "$dynamic_linker" >&6; }
11831 test "$dynamic_linker" = no && can_build_shared=no
11833 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11834 if test "$GCC" = yes; then
11835 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11838 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11839 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11841 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11842 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11937 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11938 hardcode_action=
11939 if test -n "$hardcode_libdir_flag_spec" ||
11940 test -n "$runpath_var" ||
11941 test "X$hardcode_automatic" = "Xyes" ; then
11943 # We can hardcode non-existent directories.
11944 if test "$hardcode_direct" != no &&
11945 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11946 # have to relink, otherwise we might link with an installed library
11947 # when we should be linking with a yet-to-be-installed one
11948 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11949 test "$hardcode_minus_L" != no; then
11950 # Linking always hardcodes the temporary library directory.
11951 hardcode_action=relink
11952 else
11953 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11954 hardcode_action=immediate
11956 else
11957 # We cannot hardcode anything, or else we can only hardcode existing
11958 # directories.
11959 hardcode_action=unsupported
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11962 $as_echo "$hardcode_action" >&6; }
11964 if test "$hardcode_action" = relink ||
11965 test "$inherit_rpath" = yes; then
11966 # Fast installation is not supported
11967 enable_fast_install=no
11968 elif test "$shlibpath_overrides_runpath" = yes ||
11969 test "$enable_shared" = no; then
11970 # Fast installation is not necessary
11971 enable_fast_install=needless
11979 if test "x$enable_dlopen" != xyes; then
11980 enable_dlopen=unknown
11981 enable_dlopen_self=unknown
11982 enable_dlopen_self_static=unknown
11983 else
11984 lt_cv_dlopen=no
11985 lt_cv_dlopen_libs=
11987 case $host_os in
11988 beos*)
11989 lt_cv_dlopen="load_add_on"
11990 lt_cv_dlopen_libs=
11991 lt_cv_dlopen_self=yes
11994 mingw* | pw32* | cegcc*)
11995 lt_cv_dlopen="LoadLibrary"
11996 lt_cv_dlopen_libs=
11999 cygwin*)
12000 lt_cv_dlopen="dlopen"
12001 lt_cv_dlopen_libs=
12004 darwin*)
12005 # if libdl is installed we need to link against it
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12007 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12008 if ${ac_cv_lib_dl_dlopen+:} false; then :
12009 $as_echo_n "(cached) " >&6
12010 else
12011 ac_check_lib_save_LIBS=$LIBS
12012 LIBS="-ldl $LIBS"
12013 if test x$gcc_no_link = xyes; then
12014 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12019 /* Override any GCC internal prototype to avoid an error.
12020 Use char because int might match the return type of a GCC
12021 builtin and then its argument prototype would still apply. */
12022 #ifdef __cplusplus
12023 extern "C"
12024 #endif
12025 char dlopen ();
12027 main ()
12029 return dlopen ();
12031 return 0;
12033 _ACEOF
12034 if ac_fn_c_try_link "$LINENO"; then :
12035 ac_cv_lib_dl_dlopen=yes
12036 else
12037 ac_cv_lib_dl_dlopen=no
12039 rm -f core conftest.err conftest.$ac_objext \
12040 conftest$ac_exeext conftest.$ac_ext
12041 LIBS=$ac_check_lib_save_LIBS
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12044 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12045 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12046 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12047 else
12049 lt_cv_dlopen="dyld"
12050 lt_cv_dlopen_libs=
12051 lt_cv_dlopen_self=yes
12058 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12059 if test "x$ac_cv_func_shl_load" = xyes; then :
12060 lt_cv_dlopen="shl_load"
12061 else
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12063 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12064 if ${ac_cv_lib_dld_shl_load+:} false; then :
12065 $as_echo_n "(cached) " >&6
12066 else
12067 ac_check_lib_save_LIBS=$LIBS
12068 LIBS="-ldld $LIBS"
12069 if test x$gcc_no_link = xyes; then
12070 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12075 /* Override any GCC internal prototype to avoid an error.
12076 Use char because int might match the return type of a GCC
12077 builtin and then its argument prototype would still apply. */
12078 #ifdef __cplusplus
12079 extern "C"
12080 #endif
12081 char shl_load ();
12083 main ()
12085 return shl_load ();
12087 return 0;
12089 _ACEOF
12090 if ac_fn_c_try_link "$LINENO"; then :
12091 ac_cv_lib_dld_shl_load=yes
12092 else
12093 ac_cv_lib_dld_shl_load=no
12095 rm -f core conftest.err conftest.$ac_objext \
12096 conftest$ac_exeext conftest.$ac_ext
12097 LIBS=$ac_check_lib_save_LIBS
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12100 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12101 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12102 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12103 else
12104 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12105 if test "x$ac_cv_func_dlopen" = xyes; then :
12106 lt_cv_dlopen="dlopen"
12107 else
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12109 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12110 if ${ac_cv_lib_dl_dlopen+:} false; then :
12111 $as_echo_n "(cached) " >&6
12112 else
12113 ac_check_lib_save_LIBS=$LIBS
12114 LIBS="-ldl $LIBS"
12115 if test x$gcc_no_link = xyes; then
12116 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h. */
12121 /* Override any GCC internal prototype to avoid an error.
12122 Use char because int might match the return type of a GCC
12123 builtin and then its argument prototype would still apply. */
12124 #ifdef __cplusplus
12125 extern "C"
12126 #endif
12127 char dlopen ();
12129 main ()
12131 return dlopen ();
12133 return 0;
12135 _ACEOF
12136 if ac_fn_c_try_link "$LINENO"; then :
12137 ac_cv_lib_dl_dlopen=yes
12138 else
12139 ac_cv_lib_dl_dlopen=no
12141 rm -f core conftest.err conftest.$ac_objext \
12142 conftest$ac_exeext conftest.$ac_ext
12143 LIBS=$ac_check_lib_save_LIBS
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12146 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12147 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12148 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12149 else
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12151 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12152 if ${ac_cv_lib_svld_dlopen+:} false; then :
12153 $as_echo_n "(cached) " >&6
12154 else
12155 ac_check_lib_save_LIBS=$LIBS
12156 LIBS="-lsvld $LIBS"
12157 if test x$gcc_no_link = xyes; then
12158 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h. */
12163 /* Override any GCC internal prototype to avoid an error.
12164 Use char because int might match the return type of a GCC
12165 builtin and then its argument prototype would still apply. */
12166 #ifdef __cplusplus
12167 extern "C"
12168 #endif
12169 char dlopen ();
12171 main ()
12173 return dlopen ();
12175 return 0;
12177 _ACEOF
12178 if ac_fn_c_try_link "$LINENO"; then :
12179 ac_cv_lib_svld_dlopen=yes
12180 else
12181 ac_cv_lib_svld_dlopen=no
12183 rm -f core conftest.err conftest.$ac_objext \
12184 conftest$ac_exeext conftest.$ac_ext
12185 LIBS=$ac_check_lib_save_LIBS
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12188 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12189 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12190 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12191 else
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12193 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12194 if ${ac_cv_lib_dld_dld_link+:} false; then :
12195 $as_echo_n "(cached) " >&6
12196 else
12197 ac_check_lib_save_LIBS=$LIBS
12198 LIBS="-ldld $LIBS"
12199 if test x$gcc_no_link = xyes; then
12200 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203 /* end confdefs.h. */
12205 /* Override any GCC internal prototype to avoid an error.
12206 Use char because int might match the return type of a GCC
12207 builtin and then its argument prototype would still apply. */
12208 #ifdef __cplusplus
12209 extern "C"
12210 #endif
12211 char dld_link ();
12213 main ()
12215 return dld_link ();
12217 return 0;
12219 _ACEOF
12220 if ac_fn_c_try_link "$LINENO"; then :
12221 ac_cv_lib_dld_dld_link=yes
12222 else
12223 ac_cv_lib_dld_dld_link=no
12225 rm -f core conftest.err conftest.$ac_objext \
12226 conftest$ac_exeext conftest.$ac_ext
12227 LIBS=$ac_check_lib_save_LIBS
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12230 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12231 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12232 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12251 esac
12253 if test "x$lt_cv_dlopen" != xno; then
12254 enable_dlopen=yes
12255 else
12256 enable_dlopen=no
12259 case $lt_cv_dlopen in
12260 dlopen)
12261 save_CPPFLAGS="$CPPFLAGS"
12262 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12264 save_LDFLAGS="$LDFLAGS"
12265 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12267 save_LIBS="$LIBS"
12268 LIBS="$lt_cv_dlopen_libs $LIBS"
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12271 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12272 if ${lt_cv_dlopen_self+:} false; then :
12273 $as_echo_n "(cached) " >&6
12274 else
12275 if test "$cross_compiling" = yes; then :
12276 lt_cv_dlopen_self=cross
12277 else
12278 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12279 lt_status=$lt_dlunknown
12280 cat > conftest.$ac_ext <<_LT_EOF
12281 #line 12281 "configure"
12282 #include "confdefs.h"
12284 #if HAVE_DLFCN_H
12285 #include <dlfcn.h>
12286 #endif
12288 #include <stdio.h>
12290 #ifdef RTLD_GLOBAL
12291 # define LT_DLGLOBAL RTLD_GLOBAL
12292 #else
12293 # ifdef DL_GLOBAL
12294 # define LT_DLGLOBAL DL_GLOBAL
12295 # else
12296 # define LT_DLGLOBAL 0
12297 # endif
12298 #endif
12300 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12301 find out it does not work in some platform. */
12302 #ifndef LT_DLLAZY_OR_NOW
12303 # ifdef RTLD_LAZY
12304 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12305 # else
12306 # ifdef DL_LAZY
12307 # define LT_DLLAZY_OR_NOW DL_LAZY
12308 # else
12309 # ifdef RTLD_NOW
12310 # define LT_DLLAZY_OR_NOW RTLD_NOW
12311 # else
12312 # ifdef DL_NOW
12313 # define LT_DLLAZY_OR_NOW DL_NOW
12314 # else
12315 # define LT_DLLAZY_OR_NOW 0
12316 # endif
12317 # endif
12318 # endif
12319 # endif
12320 #endif
12322 /* When -fvisbility=hidden is used, assume the code has been annotated
12323 correspondingly for the symbols needed. */
12324 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12325 void fnord () __attribute__((visibility("default")));
12326 #endif
12328 void fnord () { int i=42; }
12329 int main ()
12331 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12332 int status = $lt_dlunknown;
12334 if (self)
12336 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12337 else
12339 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12340 else puts (dlerror ());
12342 /* dlclose (self); */
12344 else
12345 puts (dlerror ());
12347 return status;
12349 _LT_EOF
12350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12351 (eval $ac_link) 2>&5
12352 ac_status=$?
12353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12354 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12355 (./conftest; exit; ) >&5 2>/dev/null
12356 lt_status=$?
12357 case x$lt_status in
12358 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12359 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12360 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12361 esac
12362 else :
12363 # compilation failed
12364 lt_cv_dlopen_self=no
12367 rm -fr conftest*
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12372 $as_echo "$lt_cv_dlopen_self" >&6; }
12374 if test "x$lt_cv_dlopen_self" = xyes; then
12375 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12377 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12378 if ${lt_cv_dlopen_self_static+:} false; then :
12379 $as_echo_n "(cached) " >&6
12380 else
12381 if test "$cross_compiling" = yes; then :
12382 lt_cv_dlopen_self_static=cross
12383 else
12384 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12385 lt_status=$lt_dlunknown
12386 cat > conftest.$ac_ext <<_LT_EOF
12387 #line 12387 "configure"
12388 #include "confdefs.h"
12390 #if HAVE_DLFCN_H
12391 #include <dlfcn.h>
12392 #endif
12394 #include <stdio.h>
12396 #ifdef RTLD_GLOBAL
12397 # define LT_DLGLOBAL RTLD_GLOBAL
12398 #else
12399 # ifdef DL_GLOBAL
12400 # define LT_DLGLOBAL DL_GLOBAL
12401 # else
12402 # define LT_DLGLOBAL 0
12403 # endif
12404 #endif
12406 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12407 find out it does not work in some platform. */
12408 #ifndef LT_DLLAZY_OR_NOW
12409 # ifdef RTLD_LAZY
12410 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12411 # else
12412 # ifdef DL_LAZY
12413 # define LT_DLLAZY_OR_NOW DL_LAZY
12414 # else
12415 # ifdef RTLD_NOW
12416 # define LT_DLLAZY_OR_NOW RTLD_NOW
12417 # else
12418 # ifdef DL_NOW
12419 # define LT_DLLAZY_OR_NOW DL_NOW
12420 # else
12421 # define LT_DLLAZY_OR_NOW 0
12422 # endif
12423 # endif
12424 # endif
12425 # endif
12426 #endif
12428 /* When -fvisbility=hidden is used, assume the code has been annotated
12429 correspondingly for the symbols needed. */
12430 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12431 void fnord () __attribute__((visibility("default")));
12432 #endif
12434 void fnord () { int i=42; }
12435 int main ()
12437 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12438 int status = $lt_dlunknown;
12440 if (self)
12442 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12443 else
12445 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12446 else puts (dlerror ());
12448 /* dlclose (self); */
12450 else
12451 puts (dlerror ());
12453 return status;
12455 _LT_EOF
12456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12457 (eval $ac_link) 2>&5
12458 ac_status=$?
12459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12460 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12461 (./conftest; exit; ) >&5 2>/dev/null
12462 lt_status=$?
12463 case x$lt_status in
12464 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12465 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12466 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12467 esac
12468 else :
12469 # compilation failed
12470 lt_cv_dlopen_self_static=no
12473 rm -fr conftest*
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12478 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12481 CPPFLAGS="$save_CPPFLAGS"
12482 LDFLAGS="$save_LDFLAGS"
12483 LIBS="$save_LIBS"
12485 esac
12487 case $lt_cv_dlopen_self in
12488 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12489 *) enable_dlopen_self=unknown ;;
12490 esac
12492 case $lt_cv_dlopen_self_static in
12493 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12494 *) enable_dlopen_self_static=unknown ;;
12495 esac
12514 striplib=
12515 old_striplib=
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12517 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12518 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12519 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12520 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12522 $as_echo "yes" >&6; }
12523 else
12524 # FIXME - insert some real tests, host_os isn't really good enough
12525 case $host_os in
12526 darwin*)
12527 if test -n "$STRIP" ; then
12528 striplib="$STRIP -x"
12529 old_striplib="$STRIP -S"
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12531 $as_echo "yes" >&6; }
12532 else
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534 $as_echo "no" >&6; }
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539 $as_echo "no" >&6; }
12541 esac
12555 # Report which library types will actually be built
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12557 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12559 $as_echo "$can_build_shared" >&6; }
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12562 $as_echo_n "checking whether to build shared libraries... " >&6; }
12563 test "$can_build_shared" = "no" && enable_shared=no
12565 # On AIX, shared libraries and static libraries use the same namespace, and
12566 # are all built from PIC.
12567 case $host_os in
12568 aix3*)
12569 test "$enable_shared" = yes && enable_static=no
12570 if test -n "$RANLIB"; then
12571 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12572 postinstall_cmds='$RANLIB $lib'
12576 aix[4-9]*)
12577 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12578 test "$enable_shared" = yes && enable_static=no
12581 esac
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12583 $as_echo "$enable_shared" >&6; }
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12586 $as_echo_n "checking whether to build static libraries... " >&6; }
12587 # Make sure either enable_shared or enable_static is yes.
12588 test "$enable_shared" = yes || enable_static=yes
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12590 $as_echo "$enable_static" >&6; }
12596 ac_ext=c
12597 ac_cpp='$CPP $CPPFLAGS'
12598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12602 CC="$lt_save_CC"
12604 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12605 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12606 (test "X$CXX" != "Xg++"))) ; then
12607 ac_ext=cpp
12608 ac_cpp='$CXXCPP $CPPFLAGS'
12609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12613 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12614 if test -z "$CXXCPP"; then
12615 if ${ac_cv_prog_CXXCPP+:} false; then :
12616 $as_echo_n "(cached) " >&6
12617 else
12618 # Double quotes because CXXCPP needs to be expanded
12619 for CXXCPP in "$CXX -E" "/lib/cpp"
12621 ac_preproc_ok=false
12622 for ac_cxx_preproc_warn_flag in '' yes
12624 # Use a header file that comes with gcc, so configuring glibc
12625 # with a fresh cross-compiler works.
12626 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12627 # <limits.h> exists even on freestanding compilers.
12628 # On the NeXT, cc -E runs the code through the compiler's parser,
12629 # not just through cpp. "Syntax error" is here to catch this case.
12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12631 /* end confdefs.h. */
12632 #ifdef __STDC__
12633 # include <limits.h>
12634 #else
12635 # include <assert.h>
12636 #endif
12637 Syntax error
12638 _ACEOF
12639 if ac_fn_cxx_try_cpp "$LINENO"; then :
12641 else
12642 # Broken: fails on valid input.
12643 continue
12645 rm -f conftest.err conftest.i conftest.$ac_ext
12647 # OK, works on sane cases. Now check whether nonexistent headers
12648 # can be detected and how.
12649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12650 /* end confdefs.h. */
12651 #include <ac_nonexistent.h>
12652 _ACEOF
12653 if ac_fn_cxx_try_cpp "$LINENO"; then :
12654 # Broken: success on invalid input.
12655 continue
12656 else
12657 # Passes both tests.
12658 ac_preproc_ok=:
12659 break
12661 rm -f conftest.err conftest.i conftest.$ac_ext
12663 done
12664 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12665 rm -f conftest.i conftest.err conftest.$ac_ext
12666 if $ac_preproc_ok; then :
12667 break
12670 done
12671 ac_cv_prog_CXXCPP=$CXXCPP
12674 CXXCPP=$ac_cv_prog_CXXCPP
12675 else
12676 ac_cv_prog_CXXCPP=$CXXCPP
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12679 $as_echo "$CXXCPP" >&6; }
12680 ac_preproc_ok=false
12681 for ac_cxx_preproc_warn_flag in '' yes
12683 # Use a header file that comes with gcc, so configuring glibc
12684 # with a fresh cross-compiler works.
12685 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12686 # <limits.h> exists even on freestanding compilers.
12687 # On the NeXT, cc -E runs the code through the compiler's parser,
12688 # not just through cpp. "Syntax error" is here to catch this case.
12689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12690 /* end confdefs.h. */
12691 #ifdef __STDC__
12692 # include <limits.h>
12693 #else
12694 # include <assert.h>
12695 #endif
12696 Syntax error
12697 _ACEOF
12698 if ac_fn_cxx_try_cpp "$LINENO"; then :
12700 else
12701 # Broken: fails on valid input.
12702 continue
12704 rm -f conftest.err conftest.i conftest.$ac_ext
12706 # OK, works on sane cases. Now check whether nonexistent headers
12707 # can be detected and how.
12708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12709 /* end confdefs.h. */
12710 #include <ac_nonexistent.h>
12711 _ACEOF
12712 if ac_fn_cxx_try_cpp "$LINENO"; then :
12713 # Broken: success on invalid input.
12714 continue
12715 else
12716 # Passes both tests.
12717 ac_preproc_ok=:
12718 break
12720 rm -f conftest.err conftest.i conftest.$ac_ext
12722 done
12723 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12724 rm -f conftest.i conftest.err conftest.$ac_ext
12725 if $ac_preproc_ok; then :
12727 else
12728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12730 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12731 See \`config.log' for more details" "$LINENO" 5; }
12734 ac_ext=c
12735 ac_cpp='$CPP $CPPFLAGS'
12736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12740 else
12741 _lt_caught_CXX_error=yes
12744 ac_ext=cpp
12745 ac_cpp='$CXXCPP $CPPFLAGS'
12746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12750 archive_cmds_need_lc_CXX=no
12751 allow_undefined_flag_CXX=
12752 always_export_symbols_CXX=no
12753 archive_expsym_cmds_CXX=
12754 compiler_needs_object_CXX=no
12755 export_dynamic_flag_spec_CXX=
12756 hardcode_direct_CXX=no
12757 hardcode_direct_absolute_CXX=no
12758 hardcode_libdir_flag_spec_CXX=
12759 hardcode_libdir_flag_spec_ld_CXX=
12760 hardcode_libdir_separator_CXX=
12761 hardcode_minus_L_CXX=no
12762 hardcode_shlibpath_var_CXX=unsupported
12763 hardcode_automatic_CXX=no
12764 inherit_rpath_CXX=no
12765 module_cmds_CXX=
12766 module_expsym_cmds_CXX=
12767 link_all_deplibs_CXX=unknown
12768 old_archive_cmds_CXX=$old_archive_cmds
12769 reload_flag_CXX=$reload_flag
12770 reload_cmds_CXX=$reload_cmds
12771 no_undefined_flag_CXX=
12772 whole_archive_flag_spec_CXX=
12773 enable_shared_with_static_runtimes_CXX=no
12775 # Source file extension for C++ test sources.
12776 ac_ext=cpp
12778 # Object file extension for compiled C++ test sources.
12779 objext=o
12780 objext_CXX=$objext
12782 # No sense in running all these tests if we already determined that
12783 # the CXX compiler isn't working. Some variables (like enable_shared)
12784 # are currently assumed to apply to all compilers on this platform,
12785 # and will be corrupted by setting them based on a non-working compiler.
12786 if test "$_lt_caught_CXX_error" != yes; then
12787 # Code to be used in simple compile tests
12788 lt_simple_compile_test_code="int some_variable = 0;"
12790 # Code to be used in simple link tests
12791 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12793 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12800 # If no C compiler was specified, use CC.
12801 LTCC=${LTCC-"$CC"}
12803 # If no C compiler flags were specified, use CFLAGS.
12804 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12806 # Allow CC to be a program name with arguments.
12807 compiler=$CC
12810 # save warnings/boilerplate of simple test code
12811 ac_outfile=conftest.$ac_objext
12812 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12813 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12814 _lt_compiler_boilerplate=`cat conftest.err`
12815 $RM conftest*
12817 ac_outfile=conftest.$ac_objext
12818 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12819 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12820 _lt_linker_boilerplate=`cat conftest.err`
12821 $RM -r conftest*
12824 # Allow CC to be a program name with arguments.
12825 lt_save_CC=$CC
12826 lt_save_LD=$LD
12827 lt_save_GCC=$GCC
12828 GCC=$GXX
12829 lt_save_with_gnu_ld=$with_gnu_ld
12830 lt_save_path_LD=$lt_cv_path_LD
12831 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12832 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12833 else
12834 $as_unset lt_cv_prog_gnu_ld
12836 if test -n "${lt_cv_path_LDCXX+set}"; then
12837 lt_cv_path_LD=$lt_cv_path_LDCXX
12838 else
12839 $as_unset lt_cv_path_LD
12841 test -z "${LDCXX+set}" || LD=$LDCXX
12842 CC=${CXX-"c++"}
12843 compiler=$CC
12844 compiler_CXX=$CC
12845 for cc_temp in $compiler""; do
12846 case $cc_temp in
12847 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12848 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12849 \-*) ;;
12850 *) break;;
12851 esac
12852 done
12853 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12856 if test -n "$compiler"; then
12857 # We don't want -fno-exception when compiling C++ code, so set the
12858 # no_builtin_flag separately
12859 if test "$GXX" = yes; then
12860 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12861 else
12862 lt_prog_compiler_no_builtin_flag_CXX=
12865 if test "$GXX" = yes; then
12866 # Set up default GNU C++ configuration
12870 # Check whether --with-gnu-ld was given.
12871 if test "${with_gnu_ld+set}" = set; then :
12872 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12873 else
12874 with_gnu_ld=no
12877 ac_prog=ld
12878 if test "$GCC" = yes; then
12879 # Check if gcc -print-prog-name=ld gives a path.
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12881 $as_echo_n "checking for ld used by $CC... " >&6; }
12882 case $host in
12883 *-*-mingw*)
12884 # gcc leaves a trailing carriage return which upsets mingw
12885 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12887 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12888 esac
12889 case $ac_prog in
12890 # Accept absolute paths.
12891 [\\/]* | ?:[\\/]*)
12892 re_direlt='/[^/][^/]*/\.\./'
12893 # Canonicalize the pathname of ld
12894 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12895 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12896 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12897 done
12898 test -z "$LD" && LD="$ac_prog"
12901 # If it fails, then pretend we aren't using GCC.
12902 ac_prog=ld
12905 # If it is relative, then search for the first ld in PATH.
12906 with_gnu_ld=unknown
12908 esac
12909 elif test "$with_gnu_ld" = yes; then
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12911 $as_echo_n "checking for GNU ld... " >&6; }
12912 else
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12914 $as_echo_n "checking for non-GNU ld... " >&6; }
12916 if ${lt_cv_path_LD+:} false; then :
12917 $as_echo_n "(cached) " >&6
12918 else
12919 if test -z "$LD"; then
12920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12921 for ac_dir in $PATH; do
12922 IFS="$lt_save_ifs"
12923 test -z "$ac_dir" && ac_dir=.
12924 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12925 lt_cv_path_LD="$ac_dir/$ac_prog"
12926 # Check to see if the program is GNU ld. I'd rather use --version,
12927 # but apparently some variants of GNU ld only accept -v.
12928 # Break only if it was the GNU/non-GNU ld that we prefer.
12929 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12930 *GNU* | *'with BFD'*)
12931 test "$with_gnu_ld" != no && break
12934 test "$with_gnu_ld" != yes && break
12936 esac
12938 done
12939 IFS="$lt_save_ifs"
12940 else
12941 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12945 LD="$lt_cv_path_LD"
12946 if test -n "$LD"; then
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12948 $as_echo "$LD" >&6; }
12949 else
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12951 $as_echo "no" >&6; }
12953 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12955 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12956 if ${lt_cv_prog_gnu_ld+:} false; then :
12957 $as_echo_n "(cached) " >&6
12958 else
12959 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12960 case `$LD -v 2>&1 </dev/null` in
12961 *GNU* | *'with BFD'*)
12962 lt_cv_prog_gnu_ld=yes
12965 lt_cv_prog_gnu_ld=no
12967 esac
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12970 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12971 with_gnu_ld=$lt_cv_prog_gnu_ld
12979 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12980 # archiving commands below assume that GNU ld is being used.
12981 if test "$with_gnu_ld" = yes; then
12982 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12983 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'
12985 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12986 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12988 # If archive_cmds runs LD, not CC, wlarc should be empty
12989 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12990 # investigate it a little bit more. (MM)
12991 wlarc='${wl}'
12993 # ancient GNU ld didn't support --whole-archive et. al.
12994 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12995 $GREP 'no-whole-archive' > /dev/null; then
12996 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12997 else
12998 whole_archive_flag_spec_CXX=
13000 else
13001 with_gnu_ld=no
13002 wlarc=
13004 # A generic and very simple default shared library creation
13005 # command for GNU C++ for the case where it uses the native
13006 # linker, instead of GNU ld. If possible, this setting should
13007 # overridden to take advantage of the native linker features on
13008 # the platform it is being used on.
13009 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13012 # Commands to make compiler produce verbose output that lists
13013 # what "hidden" libraries, object files and flags are used when
13014 # linking a shared library.
13015 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13017 else
13018 GXX=no
13019 with_gnu_ld=no
13020 wlarc=
13023 # PORTME: fill in a description of your system's C++ link characteristics
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13025 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13026 ld_shlibs_CXX=yes
13027 case $host_os in
13028 aix3*)
13029 # FIXME: insert proper C++ library support
13030 ld_shlibs_CXX=no
13032 aix[4-9]*)
13033 if test "$host_cpu" = ia64; then
13034 # On IA64, the linker does run time linking by default, so we don't
13035 # have to do anything special.
13036 aix_use_runtimelinking=no
13037 exp_sym_flag='-Bexport'
13038 no_entry_flag=""
13039 else
13040 aix_use_runtimelinking=no
13042 # Test if we are trying to use run time linking or normal
13043 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13044 # need to do runtime linking.
13045 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13046 for ld_flag in $LDFLAGS; do
13047 case $ld_flag in
13048 *-brtl*)
13049 aix_use_runtimelinking=yes
13050 break
13052 esac
13053 done
13055 esac
13057 exp_sym_flag='-bexport'
13058 no_entry_flag='-bnoentry'
13061 # When large executables or shared objects are built, AIX ld can
13062 # have problems creating the table of contents. If linking a library
13063 # or program results in "error TOC overflow" add -mminimal-toc to
13064 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13065 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13067 archive_cmds_CXX=''
13068 hardcode_direct_CXX=yes
13069 hardcode_direct_absolute_CXX=yes
13070 hardcode_libdir_separator_CXX=':'
13071 link_all_deplibs_CXX=yes
13072 file_list_spec_CXX='${wl}-f,'
13074 if test "$GXX" = yes; then
13075 case $host_os in aix4.[012]|aix4.[012].*)
13076 # We only want to do this on AIX 4.2 and lower, the check
13077 # below for broken collect2 doesn't work under 4.3+
13078 collect2name=`${CC} -print-prog-name=collect2`
13079 if test -f "$collect2name" &&
13080 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13081 then
13082 # We have reworked collect2
13084 else
13085 # We have old collect2
13086 hardcode_direct_CXX=unsupported
13087 # It fails to find uninstalled libraries when the uninstalled
13088 # path is not listed in the libpath. Setting hardcode_minus_L
13089 # to unsupported forces relinking
13090 hardcode_minus_L_CXX=yes
13091 hardcode_libdir_flag_spec_CXX='-L$libdir'
13092 hardcode_libdir_separator_CXX=
13094 esac
13095 shared_flag='-shared'
13096 if test "$aix_use_runtimelinking" = yes; then
13097 shared_flag="$shared_flag "'${wl}-G'
13099 else
13100 # not using gcc
13101 if test "$host_cpu" = ia64; then
13102 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13103 # chokes on -Wl,-G. The following line is correct:
13104 shared_flag='-G'
13105 else
13106 if test "$aix_use_runtimelinking" = yes; then
13107 shared_flag='${wl}-G'
13108 else
13109 shared_flag='${wl}-bM:SRE'
13114 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13115 # It seems that -bexpall does not export symbols beginning with
13116 # underscore (_), so it is better to generate a list of symbols to
13117 # export.
13118 always_export_symbols_CXX=yes
13119 if test "$aix_use_runtimelinking" = yes; then
13120 # Warning - without using the other runtime loading flags (-brtl),
13121 # -berok will link without error, but may produce a broken library.
13122 allow_undefined_flag_CXX='-berok'
13123 # Determine the default libpath from the value encoded in an empty
13124 # executable.
13125 if test x$gcc_no_link = xyes; then
13126 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h. */
13132 main ()
13136 return 0;
13138 _ACEOF
13139 if ac_fn_cxx_try_link "$LINENO"; then :
13141 lt_aix_libpath_sed='
13142 /Import File Strings/,/^$/ {
13143 /^0/ {
13144 s/^0 *\(.*\)$/\1/
13148 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13149 # Check for a 64-bit object if we didn't find anything.
13150 if test -z "$aix_libpath"; then
13151 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13154 rm -f core conftest.err conftest.$ac_objext \
13155 conftest$ac_exeext conftest.$ac_ext
13156 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13158 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13160 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"
13161 else
13162 if test "$host_cpu" = ia64; then
13163 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13164 allow_undefined_flag_CXX="-z nodefs"
13165 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"
13166 else
13167 # Determine the default libpath from the value encoded in an
13168 # empty executable.
13169 if test x$gcc_no_link = xyes; then
13170 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h. */
13176 main ()
13180 return 0;
13182 _ACEOF
13183 if ac_fn_cxx_try_link "$LINENO"; then :
13185 lt_aix_libpath_sed='
13186 /Import File Strings/,/^$/ {
13187 /^0/ {
13188 s/^0 *\(.*\)$/\1/
13192 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13193 # Check for a 64-bit object if we didn't find anything.
13194 if test -z "$aix_libpath"; then
13195 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13198 rm -f core conftest.err conftest.$ac_objext \
13199 conftest$ac_exeext conftest.$ac_ext
13200 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13202 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13203 # Warning - without using the other run time loading flags,
13204 # -berok will link without error, but may produce a broken library.
13205 no_undefined_flag_CXX=' ${wl}-bernotok'
13206 allow_undefined_flag_CXX=' ${wl}-berok'
13207 if test "$with_gnu_ld" = yes; then
13208 # We only use this code for GNU lds that support --whole-archive.
13209 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13210 else
13211 # Exported symbols can be pulled into shared objects from archives
13212 whole_archive_flag_spec_CXX='$convenience'
13214 archive_cmds_need_lc_CXX=yes
13215 # This is similar to how AIX traditionally builds its shared
13216 # libraries.
13217 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'
13222 beos*)
13223 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13224 allow_undefined_flag_CXX=unsupported
13225 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13226 # support --undefined. This deserves some investigation. FIXME
13227 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13228 else
13229 ld_shlibs_CXX=no
13233 chorus*)
13234 case $cc_basename in
13236 # FIXME: insert proper C++ library support
13237 ld_shlibs_CXX=no
13239 esac
13242 cygwin* | mingw* | pw32* | cegcc*)
13243 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13244 # as there is no search path for DLLs.
13245 hardcode_libdir_flag_spec_CXX='-L$libdir'
13246 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13247 allow_undefined_flag_CXX=unsupported
13248 always_export_symbols_CXX=no
13249 enable_shared_with_static_runtimes_CXX=yes
13251 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13252 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'
13253 # If the export-symbols file already is a .def file (1st line
13254 # is EXPORTS), use it as is; otherwise, prepend...
13255 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13256 cp $export_symbols $output_objdir/$soname.def;
13257 else
13258 echo EXPORTS > $output_objdir/$soname.def;
13259 cat $export_symbols >> $output_objdir/$soname.def;
13261 $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'
13262 else
13263 ld_shlibs_CXX=no
13266 darwin* | rhapsody*)
13270 # Publish an arg to allow the user to select that Darwin host (and target)
13271 # libraries should be given install-names like @rpath/libfoo.dylib. This
13272 # requires that the user of the library then adds an 'rpath' to the DSO that
13273 # needs access.
13274 # NOTE: there are defaults below, for systems that support rpaths. The person
13275 # configuring can override the defaults for any system version that supports
13276 # them - they are, however, forced off for system versions without support.
13277 # Check whether --enable-darwin-at-rpath was given.
13278 if test "${enable_darwin_at_rpath+set}" = set; then :
13279 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
13280 # This is not supported before macOS 10.5 / Darwin9.
13281 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13282 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
13284 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
13285 enable_darwin_at_rpath=no
13287 esac
13289 else
13290 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13291 # As above, before 10.5 / Darwin9 this does not work.
13292 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13293 enable_darwin_at_rpath=no
13296 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
13297 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
13298 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
13299 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
13301 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
13302 enable_darwin_at_rpath=yes
13304 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
13305 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
13307 esac
13312 archive_cmds_need_lc_CXX=no
13313 hardcode_direct_CXX=no
13314 hardcode_automatic_CXX=yes
13315 hardcode_shlibpath_var_CXX=unsupported
13316 if test "$lt_cv_ld_force_load" = "yes"; then
13317 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\"`'
13318 else
13319 whole_archive_flag_spec_CXX=''
13321 link_all_deplibs_CXX=yes
13322 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13323 case $cc_basename in
13324 ifort*) _lt_dar_can_shared=yes ;;
13325 *) _lt_dar_can_shared=$GCC ;;
13326 esac
13327 if test "$_lt_dar_can_shared" = "yes"; then
13328 output_verbose_link_cmd=func_echo_all
13329 _lt_install_name='\$rpath/\$soname'
13330 if test "x$enable_darwin_at_rpath" = "xyes"; then
13331 _lt_install_name='@rpath/\$soname'
13333 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
13334 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13335 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}"
13336 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}"
13337 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13338 _lt_install_name='\$rpath/\$soname'
13339 if test "x$enable_darwin_at_rpath" = "xyes"; then
13340 _lt_install_name='@rpath/\$soname'
13342 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}"
13343 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}"
13346 else
13347 ld_shlibs_CXX=no
13352 dgux*)
13353 case $cc_basename in
13354 ec++*)
13355 # FIXME: insert proper C++ library support
13356 ld_shlibs_CXX=no
13358 ghcx*)
13359 # Green Hills C++ Compiler
13360 # FIXME: insert proper C++ library support
13361 ld_shlibs_CXX=no
13364 # FIXME: insert proper C++ library support
13365 ld_shlibs_CXX=no
13367 esac
13370 freebsd2.*)
13371 # C++ shared libraries reported to be fairly broken before
13372 # switch to ELF
13373 ld_shlibs_CXX=no
13376 freebsd-elf*)
13377 archive_cmds_need_lc_CXX=no
13380 freebsd* | dragonfly*)
13381 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13382 # conventions
13383 ld_shlibs_CXX=yes
13386 gnu*)
13389 haiku*)
13390 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13391 link_all_deplibs_CXX=yes
13394 hpux9*)
13395 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13396 hardcode_libdir_separator_CXX=:
13397 export_dynamic_flag_spec_CXX='${wl}-E'
13398 hardcode_direct_CXX=yes
13399 hardcode_minus_L_CXX=yes # Not in the search PATH,
13400 # but as the default
13401 # location of the library.
13403 case $cc_basename in
13404 CC*)
13405 # FIXME: insert proper C++ library support
13406 ld_shlibs_CXX=no
13408 aCC*)
13409 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'
13410 # Commands to make compiler produce verbose output that lists
13411 # what "hidden" libraries, object files and flags are used when
13412 # linking a shared library.
13414 # There doesn't appear to be a way to prevent this compiler from
13415 # explicitly linking system object files so we need to strip them
13416 # from the output so that they don't get included in the library
13417 # dependencies.
13418 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"'
13421 if test "$GXX" = yes; then
13422 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'
13423 else
13424 # FIXME: insert proper C++ library support
13425 ld_shlibs_CXX=no
13428 esac
13431 hpux10*|hpux11*)
13432 if test $with_gnu_ld = no; then
13433 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13434 hardcode_libdir_separator_CXX=:
13436 case $host_cpu in
13437 hppa*64*|ia64*)
13440 export_dynamic_flag_spec_CXX='${wl}-E'
13442 esac
13444 case $host_cpu in
13445 hppa*64*|ia64*)
13446 hardcode_direct_CXX=no
13447 hardcode_shlibpath_var_CXX=no
13450 hardcode_direct_CXX=yes
13451 hardcode_direct_absolute_CXX=yes
13452 hardcode_minus_L_CXX=yes # Not in the search PATH,
13453 # but as the default
13454 # location of the library.
13456 esac
13458 case $cc_basename in
13459 CC*)
13460 # FIXME: insert proper C++ library support
13461 ld_shlibs_CXX=no
13463 aCC*)
13464 case $host_cpu in
13465 hppa*64*)
13466 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13468 ia64*)
13469 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13472 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13474 esac
13475 # Commands to make compiler produce verbose output that lists
13476 # what "hidden" libraries, object files and flags are used when
13477 # linking a shared library.
13479 # There doesn't appear to be a way to prevent this compiler from
13480 # explicitly linking system object files so we need to strip them
13481 # from the output so that they don't get included in the library
13482 # dependencies.
13483 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"'
13486 if test "$GXX" = yes; then
13487 if test $with_gnu_ld = no; then
13488 case $host_cpu in
13489 hppa*64*)
13490 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13492 ia64*)
13493 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13496 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'
13498 esac
13500 else
13501 # FIXME: insert proper C++ library support
13502 ld_shlibs_CXX=no
13505 esac
13508 interix[3-9]*)
13509 hardcode_direct_CXX=no
13510 hardcode_shlibpath_var_CXX=no
13511 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13512 export_dynamic_flag_spec_CXX='${wl}-E'
13513 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13514 # Instead, shared libraries are loaded at an image base (0x10000000 by
13515 # default) and relocated if they conflict, which is a slow very memory
13516 # consuming and fragmenting process. To avoid this, we pick a random,
13517 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13518 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13519 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'
13520 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'
13522 irix5* | irix6*)
13523 case $cc_basename in
13524 CC*)
13525 # SGI C++
13526 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'
13528 # Archives containing C++ object files must be created using
13529 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13530 # necessary to make sure instantiated templates are included
13531 # in the archive.
13532 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13535 if test "$GXX" = yes; then
13536 if test "$with_gnu_ld" = no; then
13537 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'
13538 else
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"` -o $lib'
13542 link_all_deplibs_CXX=yes
13544 esac
13545 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13546 hardcode_libdir_separator_CXX=:
13547 inherit_rpath_CXX=yes
13550 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13551 case $cc_basename in
13552 KCC*)
13553 # Kuck and Associates, Inc. (KAI) C++ Compiler
13555 # KCC will only create a shared library if the output file
13556 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13557 # to its proper name (with version) after linking.
13558 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'
13559 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'
13560 # Commands to make compiler produce verbose output that lists
13561 # what "hidden" libraries, object files and flags are used when
13562 # linking a shared library.
13564 # There doesn't appear to be a way to prevent this compiler from
13565 # explicitly linking system object files so we need to strip them
13566 # from the output so that they don't get included in the library
13567 # dependencies.
13568 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"'
13570 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13571 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13573 # Archives containing C++ object files must be created using
13574 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13575 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13577 icpc* | ecpc* )
13578 # Intel C++
13579 with_gnu_ld=yes
13580 # version 8.0 and above of icpc choke on multiply defined symbols
13581 # if we add $predep_objects and $postdep_objects, however 7.1 and
13582 # earlier do not add the objects themselves.
13583 case `$CC -V 2>&1` in
13584 *"Version 7."*)
13585 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13586 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'
13588 *) # Version 8.0 or newer
13589 tmp_idyn=
13590 case $host_cpu in
13591 ia64*) tmp_idyn=' -i_dynamic';;
13592 esac
13593 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13594 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'
13596 esac
13597 archive_cmds_need_lc_CXX=no
13598 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13599 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13600 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13602 pgCC* | pgcpp*)
13603 # Portland Group C++ compiler
13604 case `$CC -V` in
13605 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13606 prelink_cmds_CXX='tpldir=Template.dir~
13607 rm -rf $tpldir~
13608 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13609 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13610 old_archive_cmds_CXX='tpldir=Template.dir~
13611 rm -rf $tpldir~
13612 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13613 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13614 $RANLIB $oldlib'
13615 archive_cmds_CXX='tpldir=Template.dir~
13616 rm -rf $tpldir~
13617 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13618 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13619 archive_expsym_cmds_CXX='tpldir=Template.dir~
13620 rm -rf $tpldir~
13621 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13622 $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'
13624 *) # Version 6 and above use weak symbols
13625 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13626 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'
13628 esac
13630 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13631 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13632 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'
13634 cxx*)
13635 # Compaq C++
13636 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13637 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'
13639 runpath_var=LD_RUN_PATH
13640 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13641 hardcode_libdir_separator_CXX=:
13643 # Commands to make compiler produce verbose output that lists
13644 # what "hidden" libraries, object files and flags are used when
13645 # linking a shared library.
13647 # There doesn't appear to be a way to prevent this compiler from
13648 # explicitly linking system object files so we need to strip them
13649 # from the output so that they don't get included in the library
13650 # dependencies.
13651 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'
13653 xl* | mpixl* | bgxl*)
13654 # IBM XL 8.0 on PPC, with GNU ld
13655 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13656 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13657 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13658 if test "x$supports_anon_versioning" = xyes; then
13659 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13660 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13661 echo "local: *; };" >> $output_objdir/$libname.ver~
13662 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13666 case `$CC -V 2>&1 | sed 5q` in
13667 *Sun\ C*)
13668 # Sun C++ 5.9
13669 no_undefined_flag_CXX=' -zdefs'
13670 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13671 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'
13672 hardcode_libdir_flag_spec_CXX='-R$libdir'
13673 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'
13674 compiler_needs_object_CXX=yes
13676 # Not sure whether something based on
13677 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13678 # would be better.
13679 output_verbose_link_cmd='func_echo_all'
13681 # Archives containing C++ object files must be created using
13682 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13683 # necessary to make sure instantiated templates are included
13684 # in the archive.
13685 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13687 esac
13689 esac
13692 lynxos*)
13693 # FIXME: insert proper C++ library support
13694 ld_shlibs_CXX=no
13697 m88k*)
13698 # FIXME: insert proper C++ library support
13699 ld_shlibs_CXX=no
13702 mvs*)
13703 case $cc_basename in
13704 cxx*)
13705 # FIXME: insert proper C++ library support
13706 ld_shlibs_CXX=no
13709 # FIXME: insert proper C++ library support
13710 ld_shlibs_CXX=no
13712 esac
13715 netbsd*)
13716 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13717 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13718 wlarc=
13719 hardcode_libdir_flag_spec_CXX='-R$libdir'
13720 hardcode_direct_CXX=yes
13721 hardcode_shlibpath_var_CXX=no
13723 # Workaround some broken pre-1.5 toolchains
13724 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13727 *nto* | *qnx*)
13728 ld_shlibs_CXX=yes
13731 openbsd2*)
13732 # C++ shared libraries are fairly broken
13733 ld_shlibs_CXX=no
13736 openbsd*)
13737 if test -f /usr/libexec/ld.so; then
13738 hardcode_direct_CXX=yes
13739 hardcode_shlibpath_var_CXX=no
13740 hardcode_direct_absolute_CXX=yes
13741 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13742 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13743 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13744 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13745 export_dynamic_flag_spec_CXX='${wl}-E'
13746 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13748 output_verbose_link_cmd=func_echo_all
13749 else
13750 ld_shlibs_CXX=no
13754 osf3* | osf4* | osf5*)
13755 case $cc_basename in
13756 KCC*)
13757 # Kuck and Associates, Inc. (KAI) C++ Compiler
13759 # KCC will only create a shared library if the output file
13760 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13761 # to its proper name (with version) after linking.
13762 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'
13764 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13765 hardcode_libdir_separator_CXX=:
13767 # Archives containing C++ object files must be created using
13768 # the KAI C++ compiler.
13769 case $host in
13770 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13771 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13772 esac
13774 RCC*)
13775 # Rational C++ 2.4.1
13776 # FIXME: insert proper C++ library support
13777 ld_shlibs_CXX=no
13779 cxx*)
13780 case $host in
13781 osf3*)
13782 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13783 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'
13784 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13787 allow_undefined_flag_CXX=' -expect_unresolved \*'
13788 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'
13789 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13790 echo "-hidden">> $lib.exp~
13791 $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~
13792 $RM $lib.exp'
13793 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13795 esac
13797 hardcode_libdir_separator_CXX=:
13799 # Commands to make compiler produce verbose output that lists
13800 # what "hidden" libraries, object files and flags are used when
13801 # linking a shared library.
13803 # There doesn't appear to be a way to prevent this compiler from
13804 # explicitly linking system object files so we need to strip them
13805 # from the output so that they don't get included in the library
13806 # dependencies.
13807 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"'
13810 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13811 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13812 case $host in
13813 osf3*)
13814 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'
13817 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'
13819 esac
13821 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13822 hardcode_libdir_separator_CXX=:
13824 # Commands to make compiler produce verbose output that lists
13825 # what "hidden" libraries, object files and flags are used when
13826 # linking a shared library.
13827 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13829 else
13830 # FIXME: insert proper C++ library support
13831 ld_shlibs_CXX=no
13834 esac
13837 psos*)
13838 # FIXME: insert proper C++ library support
13839 ld_shlibs_CXX=no
13842 sunos4*)
13843 case $cc_basename in
13844 CC*)
13845 # Sun C++ 4.x
13846 # FIXME: insert proper C++ library support
13847 ld_shlibs_CXX=no
13849 lcc*)
13850 # Lucid
13851 # FIXME: insert proper C++ library support
13852 ld_shlibs_CXX=no
13855 # FIXME: insert proper C++ library support
13856 ld_shlibs_CXX=no
13858 esac
13861 solaris*)
13862 case $cc_basename in
13863 CC*)
13864 # Sun C++ 4.2, 5.x and Centerline C++
13865 archive_cmds_need_lc_CXX=yes
13866 no_undefined_flag_CXX=' -zdefs'
13867 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13868 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13869 $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'
13871 hardcode_libdir_flag_spec_CXX='-R$libdir'
13872 hardcode_shlibpath_var_CXX=no
13873 case $host_os in
13874 solaris2.[0-5] | solaris2.[0-5].*) ;;
13876 # The compiler driver will combine and reorder linker options,
13877 # but understands `-z linker_flag'.
13878 # Supported since Solaris 2.6 (maybe 2.5.1?)
13879 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13881 esac
13882 link_all_deplibs_CXX=yes
13884 output_verbose_link_cmd='func_echo_all'
13886 # Archives containing C++ object files must be created using
13887 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13888 # necessary to make sure instantiated templates are included
13889 # in the archive.
13890 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13892 gcx*)
13893 # Green Hills C++ Compiler
13894 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13896 # The C++ compiler must be used to create the archive.
13897 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13900 # GNU C++ compiler with Solaris linker
13901 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13902 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13903 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13904 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13905 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13906 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13908 # Commands to make compiler produce verbose output that lists
13909 # what "hidden" libraries, object files and flags are used when
13910 # linking a shared library.
13911 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13912 else
13913 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13914 # platform.
13915 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13916 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13917 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13919 # Commands to make compiler produce verbose output that lists
13920 # what "hidden" libraries, object files and flags are used when
13921 # linking a shared library.
13922 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13925 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13926 case $host_os in
13927 solaris2.[0-5] | solaris2.[0-5].*) ;;
13929 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13931 esac
13934 esac
13937 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13938 no_undefined_flag_CXX='${wl}-z,text'
13939 archive_cmds_need_lc_CXX=no
13940 hardcode_shlibpath_var_CXX=no
13941 runpath_var='LD_RUN_PATH'
13943 case $cc_basename in
13944 CC*)
13945 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13946 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13949 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13950 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13952 esac
13955 sysv5* | sco3.2v5* | sco5v6*)
13956 # Note: We can NOT use -z defs as we might desire, because we do not
13957 # link with -lc, and that would cause any symbols used from libc to
13958 # always be unresolved, which means just about no library would
13959 # ever link correctly. If we're not using GNU ld we use -z text
13960 # though, which does catch some bad symbols but isn't as heavy-handed
13961 # as -z defs.
13962 no_undefined_flag_CXX='${wl}-z,text'
13963 allow_undefined_flag_CXX='${wl}-z,nodefs'
13964 archive_cmds_need_lc_CXX=no
13965 hardcode_shlibpath_var_CXX=no
13966 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13967 hardcode_libdir_separator_CXX=':'
13968 link_all_deplibs_CXX=yes
13969 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13970 runpath_var='LD_RUN_PATH'
13972 case $cc_basename in
13973 CC*)
13974 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13975 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13976 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13977 '"$old_archive_cmds_CXX"
13978 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13979 '"$reload_cmds_CXX"
13982 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13983 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13985 esac
13988 tandem*)
13989 case $cc_basename in
13990 NCC*)
13991 # NonStop-UX NCC 3.20
13992 # FIXME: insert proper C++ library support
13993 ld_shlibs_CXX=no
13996 # FIXME: insert proper C++ library support
13997 ld_shlibs_CXX=no
13999 esac
14002 vxworks*)
14003 # For VxWorks ports, we assume the use of a GNU linker with
14004 # standard elf conventions.
14005 ld_shlibs_CXX=yes
14009 # FIXME: insert proper C++ library support
14010 ld_shlibs_CXX=no
14012 esac
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14015 $as_echo "$ld_shlibs_CXX" >&6; }
14016 test "$ld_shlibs_CXX" = no && can_build_shared=no
14018 GCC_CXX="$GXX"
14019 LD_CXX="$LD"
14021 ## CAVEAT EMPTOR:
14022 ## There is no encapsulation within the following macros, do not change
14023 ## the running order or otherwise move them around unless you know exactly
14024 ## what you are doing...
14025 # Dependencies to place before and after the object being linked:
14026 predep_objects_CXX=
14027 postdep_objects_CXX=
14028 predeps_CXX=
14029 postdeps_CXX=
14030 compiler_lib_search_path_CXX=
14032 cat > conftest.$ac_ext <<_LT_EOF
14033 class Foo
14035 public:
14036 Foo (void) { a = 0; }
14037 private:
14038 int a;
14040 _LT_EOF
14042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14043 (eval $ac_compile) 2>&5
14044 ac_status=$?
14045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14046 test $ac_status = 0; }; then
14047 # Parse the compiler output and extract the necessary
14048 # objects, libraries and library flags.
14050 # Sentinel used to keep track of whether or not we are before
14051 # the conftest object file.
14052 pre_test_object_deps_done=no
14054 for p in `eval "$output_verbose_link_cmd"`; do
14055 case $p in
14057 -L* | -R* | -l*)
14058 # Some compilers place space between "-{L,R}" and the path.
14059 # Remove the space.
14060 if test $p = "-L" ||
14061 test $p = "-R"; then
14062 prev=$p
14063 continue
14064 else
14065 prev=
14068 if test "$pre_test_object_deps_done" = no; then
14069 case $p in
14070 -L* | -R*)
14071 # Internal compiler library paths should come after those
14072 # provided the user. The postdeps already come after the
14073 # user supplied libs so there is no need to process them.
14074 if test -z "$compiler_lib_search_path_CXX"; then
14075 compiler_lib_search_path_CXX="${prev}${p}"
14076 else
14077 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14080 # The "-l" case would never come before the object being
14081 # linked, so don't bother handling this case.
14082 esac
14083 else
14084 if test -z "$postdeps_CXX"; then
14085 postdeps_CXX="${prev}${p}"
14086 else
14087 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14092 *.$objext)
14093 # This assumes that the test object file only shows up
14094 # once in the compiler output.
14095 if test "$p" = "conftest.$objext"; then
14096 pre_test_object_deps_done=yes
14097 continue
14100 if test "$pre_test_object_deps_done" = no; then
14101 if test -z "$predep_objects_CXX"; then
14102 predep_objects_CXX="$p"
14103 else
14104 predep_objects_CXX="$predep_objects_CXX $p"
14106 else
14107 if test -z "$postdep_objects_CXX"; then
14108 postdep_objects_CXX="$p"
14109 else
14110 postdep_objects_CXX="$postdep_objects_CXX $p"
14115 *) ;; # Ignore the rest.
14117 esac
14118 done
14120 # Clean up.
14121 rm -f a.out a.exe
14122 else
14123 echo "libtool.m4: error: problem compiling CXX test program"
14126 $RM -f confest.$objext
14128 # PORTME: override above test on systems where it is broken
14129 case $host_os in
14130 interix[3-9]*)
14131 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14132 # hack all around it, let's just trust "g++" to DTRT.
14133 predep_objects_CXX=
14134 postdep_objects_CXX=
14135 postdeps_CXX=
14138 linux*)
14139 case `$CC -V 2>&1 | sed 5q` in
14140 *Sun\ C*)
14141 # Sun C++ 5.9
14143 # The more standards-conforming stlport4 library is
14144 # incompatible with the Cstd library. Avoid specifying
14145 # it if it's in CXXFLAGS. Ignore libCrun as
14146 # -library=stlport4 depends on it.
14147 case " $CXX $CXXFLAGS " in
14148 *" -library=stlport4 "*)
14149 solaris_use_stlport4=yes
14151 esac
14153 if test "$solaris_use_stlport4" != yes; then
14154 postdeps_CXX='-library=Cstd -library=Crun'
14157 esac
14160 solaris*)
14161 case $cc_basename in
14162 CC*)
14163 # The more standards-conforming stlport4 library is
14164 # incompatible with the Cstd library. Avoid specifying
14165 # it if it's in CXXFLAGS. Ignore libCrun as
14166 # -library=stlport4 depends on it.
14167 case " $CXX $CXXFLAGS " in
14168 *" -library=stlport4 "*)
14169 solaris_use_stlport4=yes
14171 esac
14173 # Adding this requires a known-good setup of shared libraries for
14174 # Sun compiler versions before 5.6, else PIC objects from an old
14175 # archive will be linked into the output, leading to subtle bugs.
14176 if test "$solaris_use_stlport4" != yes; then
14177 postdeps_CXX='-library=Cstd -library=Crun'
14180 esac
14182 esac
14185 case " $postdeps_CXX " in
14186 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14187 esac
14188 compiler_lib_search_dirs_CXX=
14189 if test -n "${compiler_lib_search_path_CXX}"; then
14190 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14223 lt_prog_compiler_wl_CXX=
14224 lt_prog_compiler_pic_CXX=
14225 lt_prog_compiler_static_CXX=
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14228 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14230 # C++ specific cases for pic, static, wl, etc.
14231 if test "$GXX" = yes; then
14232 lt_prog_compiler_wl_CXX='-Wl,'
14233 lt_prog_compiler_static_CXX='-static'
14235 case $host_os in
14236 aix*)
14237 # All AIX code is PIC.
14238 if test "$host_cpu" = ia64; then
14239 # AIX 5 now supports IA64 processor
14240 lt_prog_compiler_static_CXX='-Bstatic'
14242 lt_prog_compiler_pic_CXX='-fPIC'
14245 amigaos*)
14246 case $host_cpu in
14247 powerpc)
14248 # see comment about AmigaOS4 .so support
14249 lt_prog_compiler_pic_CXX='-fPIC'
14251 m68k)
14252 # FIXME: we need at least 68020 code to build shared libraries, but
14253 # adding the `-m68020' flag to GCC prevents building anything better,
14254 # like `-m68040'.
14255 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14257 esac
14260 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14261 # PIC is the default for these OSes.
14263 mingw* | cygwin* | os2* | pw32* | cegcc*)
14264 # This hack is so that the source file can tell whether it is being
14265 # built for inclusion in a dll (and should export symbols for example).
14266 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14267 # (--disable-auto-import) libraries
14268 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14270 darwin* | rhapsody*)
14271 # PIC is the default on this platform
14272 # Common symbols not allowed in MH_DYLIB files
14273 lt_prog_compiler_pic_CXX='-fno-common'
14275 *djgpp*)
14276 # DJGPP does not support shared libraries at all
14277 lt_prog_compiler_pic_CXX=
14279 haiku*)
14280 # PIC is the default for Haiku.
14281 # The "-static" flag exists, but is broken.
14282 lt_prog_compiler_static_CXX=
14284 interix[3-9]*)
14285 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14286 # Instead, we relocate shared libraries at runtime.
14288 sysv4*MP*)
14289 if test -d /usr/nec; then
14290 lt_prog_compiler_pic_CXX=-Kconform_pic
14293 hpux*)
14294 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14295 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14296 # sets the default TLS model and affects inlining.
14297 case $host_cpu in
14298 hppa*64*)
14301 lt_prog_compiler_pic_CXX='-fPIC'
14303 esac
14305 *qnx* | *nto*)
14306 # QNX uses GNU C++, but need to define -shared option too, otherwise
14307 # it will coredump.
14308 lt_prog_compiler_pic_CXX='-fPIC -shared'
14311 lt_prog_compiler_pic_CXX='-fPIC'
14313 esac
14314 else
14315 case $host_os in
14316 aix[4-9]*)
14317 # All AIX code is PIC.
14318 if test "$host_cpu" = ia64; then
14319 # AIX 5 now supports IA64 processor
14320 lt_prog_compiler_static_CXX='-Bstatic'
14321 else
14322 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14325 chorus*)
14326 case $cc_basename in
14327 cxch68*)
14328 # Green Hills C++ Compiler
14329 # _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"
14331 esac
14333 dgux*)
14334 case $cc_basename in
14335 ec++*)
14336 lt_prog_compiler_pic_CXX='-KPIC'
14338 ghcx*)
14339 # Green Hills C++ Compiler
14340 lt_prog_compiler_pic_CXX='-pic'
14344 esac
14346 freebsd* | dragonfly*)
14347 # FreeBSD uses GNU C++
14349 hpux9* | hpux10* | hpux11*)
14350 case $cc_basename in
14351 CC*)
14352 lt_prog_compiler_wl_CXX='-Wl,'
14353 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14354 if test "$host_cpu" != ia64; then
14355 lt_prog_compiler_pic_CXX='+Z'
14358 aCC*)
14359 lt_prog_compiler_wl_CXX='-Wl,'
14360 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14361 case $host_cpu in
14362 hppa*64*|ia64*)
14363 # +Z the default
14366 lt_prog_compiler_pic_CXX='+Z'
14368 esac
14372 esac
14374 interix*)
14375 # This is c89, which is MS Visual C++ (no shared libs)
14376 # Anyone wants to do a port?
14378 irix5* | irix6* | nonstopux*)
14379 case $cc_basename in
14380 CC*)
14381 lt_prog_compiler_wl_CXX='-Wl,'
14382 lt_prog_compiler_static_CXX='-non_shared'
14383 # CC pic flag -KPIC is the default.
14387 esac
14389 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14390 case $cc_basename in
14391 KCC*)
14392 # KAI C++ Compiler
14393 lt_prog_compiler_wl_CXX='--backend -Wl,'
14394 lt_prog_compiler_pic_CXX='-fPIC'
14396 ecpc* )
14397 # old Intel C++ for x86_64 which still supported -KPIC.
14398 lt_prog_compiler_wl_CXX='-Wl,'
14399 lt_prog_compiler_pic_CXX='-KPIC'
14400 lt_prog_compiler_static_CXX='-static'
14402 icpc* )
14403 # Intel C++, used to be incompatible with GCC.
14404 # ICC 10 doesn't accept -KPIC any more.
14405 lt_prog_compiler_wl_CXX='-Wl,'
14406 lt_prog_compiler_pic_CXX='-fPIC'
14407 lt_prog_compiler_static_CXX='-static'
14409 pgCC* | pgcpp*)
14410 # Portland Group C++ compiler
14411 lt_prog_compiler_wl_CXX='-Wl,'
14412 lt_prog_compiler_pic_CXX='-fpic'
14413 lt_prog_compiler_static_CXX='-Bstatic'
14415 cxx*)
14416 # Compaq C++
14417 # Make sure the PIC flag is empty. It appears that all Alpha
14418 # Linux and Compaq Tru64 Unix objects are PIC.
14419 lt_prog_compiler_pic_CXX=
14420 lt_prog_compiler_static_CXX='-non_shared'
14422 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14423 # IBM XL 8.0, 9.0 on PPC and BlueGene
14424 lt_prog_compiler_wl_CXX='-Wl,'
14425 lt_prog_compiler_pic_CXX='-qpic'
14426 lt_prog_compiler_static_CXX='-qstaticlink'
14429 case `$CC -V 2>&1 | sed 5q` in
14430 *Sun\ C*)
14431 # Sun C++ 5.9
14432 lt_prog_compiler_pic_CXX='-KPIC'
14433 lt_prog_compiler_static_CXX='-Bstatic'
14434 lt_prog_compiler_wl_CXX='-Qoption ld '
14436 esac
14438 esac
14440 lynxos*)
14442 m88k*)
14444 mvs*)
14445 case $cc_basename in
14446 cxx*)
14447 lt_prog_compiler_pic_CXX='-W c,exportall'
14451 esac
14453 netbsd*)
14455 *qnx* | *nto*)
14456 # QNX uses GNU C++, but need to define -shared option too, otherwise
14457 # it will coredump.
14458 lt_prog_compiler_pic_CXX='-fPIC -shared'
14460 osf3* | osf4* | osf5*)
14461 case $cc_basename in
14462 KCC*)
14463 lt_prog_compiler_wl_CXX='--backend -Wl,'
14465 RCC*)
14466 # Rational C++ 2.4.1
14467 lt_prog_compiler_pic_CXX='-pic'
14469 cxx*)
14470 # Digital/Compaq C++
14471 lt_prog_compiler_wl_CXX='-Wl,'
14472 # Make sure the PIC flag is empty. It appears that all Alpha
14473 # Linux and Compaq Tru64 Unix objects are PIC.
14474 lt_prog_compiler_pic_CXX=
14475 lt_prog_compiler_static_CXX='-non_shared'
14479 esac
14481 psos*)
14483 solaris*)
14484 case $cc_basename in
14485 CC*)
14486 # Sun C++ 4.2, 5.x and Centerline C++
14487 lt_prog_compiler_pic_CXX='-KPIC'
14488 lt_prog_compiler_static_CXX='-Bstatic'
14489 lt_prog_compiler_wl_CXX='-Qoption ld '
14491 gcx*)
14492 # Green Hills C++ Compiler
14493 lt_prog_compiler_pic_CXX='-PIC'
14497 esac
14499 sunos4*)
14500 case $cc_basename in
14501 CC*)
14502 # Sun C++ 4.x
14503 lt_prog_compiler_pic_CXX='-pic'
14504 lt_prog_compiler_static_CXX='-Bstatic'
14506 lcc*)
14507 # Lucid
14508 lt_prog_compiler_pic_CXX='-pic'
14512 esac
14514 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14515 case $cc_basename in
14516 CC*)
14517 lt_prog_compiler_wl_CXX='-Wl,'
14518 lt_prog_compiler_pic_CXX='-KPIC'
14519 lt_prog_compiler_static_CXX='-Bstatic'
14521 esac
14523 tandem*)
14524 case $cc_basename in
14525 NCC*)
14526 # NonStop-UX NCC 3.20
14527 lt_prog_compiler_pic_CXX='-KPIC'
14531 esac
14533 vxworks*)
14536 lt_prog_compiler_can_build_shared_CXX=no
14538 esac
14541 case $host_os in
14542 # For platforms which do not support PIC, -DPIC is meaningless:
14543 *djgpp*)
14544 lt_prog_compiler_pic_CXX=
14547 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14549 esac
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14551 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14556 # Check to make sure the PIC flag actually works.
14558 if test -n "$lt_prog_compiler_pic_CXX"; then
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14560 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14561 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14562 $as_echo_n "(cached) " >&6
14563 else
14564 lt_cv_prog_compiler_pic_works_CXX=no
14565 ac_outfile=conftest.$ac_objext
14566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14567 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14568 # Insert the option either (1) after the last *FLAGS variable, or
14569 # (2) before a word containing "conftest.", or (3) at the end.
14570 # Note that $ac_compile itself does not contain backslashes and begins
14571 # with a dollar sign (not a hyphen), so the echo should work correctly.
14572 # The option is referenced via a variable to avoid confusing sed.
14573 lt_compile=`echo "$ac_compile" | $SED \
14574 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14575 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14576 -e 's:$: $lt_compiler_flag:'`
14577 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14578 (eval "$lt_compile" 2>conftest.err)
14579 ac_status=$?
14580 cat conftest.err >&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 if (exit $ac_status) && test -s "$ac_outfile"; then
14583 # The compiler can only warn and ignore the option if not recognized
14584 # So say no if there are warnings other than the usual output.
14585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14586 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14587 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14588 lt_cv_prog_compiler_pic_works_CXX=yes
14591 $RM conftest*
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14595 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14597 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14598 case $lt_prog_compiler_pic_CXX in
14599 "" | " "*) ;;
14600 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14601 esac
14602 else
14603 lt_prog_compiler_pic_CXX=
14604 lt_prog_compiler_can_build_shared_CXX=no
14612 # Check to make sure the static flag actually works.
14614 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14616 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14617 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14618 $as_echo_n "(cached) " >&6
14619 else
14620 lt_cv_prog_compiler_static_works_CXX=no
14621 save_LDFLAGS="$LDFLAGS"
14622 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14623 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14624 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14625 # The linker can only warn and ignore the option if not recognized
14626 # So say no if there are warnings
14627 if test -s conftest.err; then
14628 # Append any errors to the config.log.
14629 cat conftest.err 1>&5
14630 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14631 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14632 if diff conftest.exp conftest.er2 >/dev/null; then
14633 lt_cv_prog_compiler_static_works_CXX=yes
14635 else
14636 lt_cv_prog_compiler_static_works_CXX=yes
14639 $RM -r conftest*
14640 LDFLAGS="$save_LDFLAGS"
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14644 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14646 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14648 else
14649 lt_prog_compiler_static_CXX=
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14656 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14657 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14658 $as_echo_n "(cached) " >&6
14659 else
14660 lt_cv_prog_compiler_c_o_CXX=no
14661 $RM -r conftest 2>/dev/null
14662 mkdir conftest
14663 cd conftest
14664 mkdir out
14665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14667 lt_compiler_flag="-o out/conftest2.$ac_objext"
14668 # Insert the option either (1) after the last *FLAGS variable, or
14669 # (2) before a word containing "conftest.", or (3) at the end.
14670 # Note that $ac_compile itself does not contain backslashes and begins
14671 # with a dollar sign (not a hyphen), so the echo should work correctly.
14672 lt_compile=`echo "$ac_compile" | $SED \
14673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14675 -e 's:$: $lt_compiler_flag:'`
14676 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14677 (eval "$lt_compile" 2>out/conftest.err)
14678 ac_status=$?
14679 cat out/conftest.err >&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14682 then
14683 # The compiler can only warn and ignore the option if not recognized
14684 # So say no if there are warnings
14685 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14686 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14687 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14688 lt_cv_prog_compiler_c_o_CXX=yes
14691 chmod u+w . 2>&5
14692 $RM conftest*
14693 # SGI C++ compiler will create directory out/ii_files/ for
14694 # template instantiation
14695 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14696 $RM out/* && rmdir out
14697 cd ..
14698 $RM -r conftest
14699 $RM conftest*
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14703 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14708 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14709 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14710 $as_echo_n "(cached) " >&6
14711 else
14712 lt_cv_prog_compiler_c_o_CXX=no
14713 $RM -r conftest 2>/dev/null
14714 mkdir conftest
14715 cd conftest
14716 mkdir out
14717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14719 lt_compiler_flag="-o out/conftest2.$ac_objext"
14720 # Insert the option either (1) after the last *FLAGS variable, or
14721 # (2) before a word containing "conftest.", or (3) at the end.
14722 # Note that $ac_compile itself does not contain backslashes and begins
14723 # with a dollar sign (not a hyphen), so the echo should work correctly.
14724 lt_compile=`echo "$ac_compile" | $SED \
14725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14727 -e 's:$: $lt_compiler_flag:'`
14728 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14729 (eval "$lt_compile" 2>out/conftest.err)
14730 ac_status=$?
14731 cat out/conftest.err >&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14734 then
14735 # The compiler can only warn and ignore the option if not recognized
14736 # So say no if there are warnings
14737 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14738 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14739 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14740 lt_cv_prog_compiler_c_o_CXX=yes
14743 chmod u+w . 2>&5
14744 $RM conftest*
14745 # SGI C++ compiler will create directory out/ii_files/ for
14746 # template instantiation
14747 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14748 $RM out/* && rmdir out
14749 cd ..
14750 $RM -r conftest
14751 $RM conftest*
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14755 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14760 hard_links="nottested"
14761 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14762 # do not overwrite the value of need_locks provided by the user
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14764 $as_echo_n "checking if we can lock with hard links... " >&6; }
14765 hard_links=yes
14766 $RM conftest*
14767 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14768 touch conftest.a
14769 ln conftest.a conftest.b 2>&5 || hard_links=no
14770 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14772 $as_echo "$hard_links" >&6; }
14773 if test "$hard_links" = no; then
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14775 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14776 need_locks=warn
14778 else
14779 need_locks=no
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14785 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14787 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14788 case $host_os in
14789 aix[4-9]*)
14790 # If we're using GNU nm, then we don't want the "-C" option.
14791 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14792 # Also, AIX nm treats weak defined symbols like other global defined
14793 # symbols, whereas GNU nm marks them as "W".
14794 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14795 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'
14796 else
14797 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'
14800 pw32*)
14801 export_symbols_cmds_CXX="$ltdll_cmds"
14803 cygwin* | mingw* | cegcc*)
14804 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'
14807 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14809 esac
14810 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14813 $as_echo "$ld_shlibs_CXX" >&6; }
14814 test "$ld_shlibs_CXX" = no && can_build_shared=no
14816 with_gnu_ld_CXX=$with_gnu_ld
14824 # Do we need to explicitly link libc?
14826 case "x$archive_cmds_need_lc_CXX" in
14827 x|xyes)
14828 # Assume -lc should be added
14829 archive_cmds_need_lc_CXX=yes
14831 if test "$enable_shared" = yes && test "$GCC" = yes; then
14832 case $archive_cmds_CXX in
14833 *'~'*)
14834 # FIXME: we may have to deal with multi-command sequences.
14836 '$CC '*)
14837 # Test whether the compiler implicitly links with -lc since on some
14838 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14839 # to ld, don't add -lc before -lgcc.
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14841 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14842 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14843 $as_echo_n "(cached) " >&6
14844 else
14845 $RM conftest*
14846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14849 (eval $ac_compile) 2>&5
14850 ac_status=$?
14851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14852 test $ac_status = 0; } 2>conftest.err; then
14853 soname=conftest
14854 lib=conftest
14855 libobjs=conftest.$ac_objext
14856 deplibs=
14857 wl=$lt_prog_compiler_wl_CXX
14858 pic_flag=$lt_prog_compiler_pic_CXX
14859 compiler_flags=-v
14860 linker_flags=-v
14861 verstring=
14862 output_objdir=.
14863 libname=conftest
14864 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14865 allow_undefined_flag_CXX=
14866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14867 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14868 ac_status=$?
14869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14870 test $ac_status = 0; }
14871 then
14872 lt_cv_archive_cmds_need_lc_CXX=no
14873 else
14874 lt_cv_archive_cmds_need_lc_CXX=yes
14876 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14877 else
14878 cat conftest.err 1>&5
14880 $RM conftest*
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14884 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14885 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14887 esac
14890 esac
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14956 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14958 library_names_spec=
14959 libname_spec='lib$name'
14960 soname_spec=
14961 shrext_cmds=".so"
14962 postinstall_cmds=
14963 postuninstall_cmds=
14964 finish_cmds=
14965 finish_eval=
14966 shlibpath_var=
14967 shlibpath_overrides_runpath=unknown
14968 version_type=none
14969 dynamic_linker="$host_os ld.so"
14970 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14971 need_lib_prefix=unknown
14972 hardcode_into_libs=no
14974 # when you set need_version to no, make sure it does not cause -set_version
14975 # flags to be left without arguments
14976 need_version=unknown
14978 case $host_os in
14979 aix3*)
14980 version_type=linux
14981 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14982 shlibpath_var=LIBPATH
14984 # AIX 3 has no versioning support, so we append a major version to the name.
14985 soname_spec='${libname}${release}${shared_ext}$major'
14988 aix[4-9]*)
14989 version_type=linux
14990 need_lib_prefix=no
14991 need_version=no
14992 hardcode_into_libs=yes
14993 if test "$host_cpu" = ia64; then
14994 # AIX 5 supports IA64
14995 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14996 shlibpath_var=LD_LIBRARY_PATH
14997 else
14998 # With GCC up to 2.95.x, collect2 would create an import file
14999 # for dependence libraries. The import file would start with
15000 # the line `#! .'. This would cause the generated library to
15001 # depend on `.', always an invalid library. This was fixed in
15002 # development snapshots of GCC prior to 3.0.
15003 case $host_os in
15004 aix4 | aix4.[01] | aix4.[01].*)
15005 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15006 echo ' yes '
15007 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15009 else
15010 can_build_shared=no
15013 esac
15014 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15015 # soname into executable. Probably we can add versioning support to
15016 # collect2, so additional links can be useful in future.
15017 if test "$aix_use_runtimelinking" = yes; then
15018 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15019 # instead of lib<name>.a to let people know that these are not
15020 # typical AIX shared libraries.
15021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15022 else
15023 # We preserve .a as extension for shared libraries through AIX4.2
15024 # and later when we are not doing run time linking.
15025 library_names_spec='${libname}${release}.a $libname.a'
15026 soname_spec='${libname}${release}${shared_ext}$major'
15028 shlibpath_var=LIBPATH
15032 amigaos*)
15033 case $host_cpu in
15034 powerpc)
15035 # Since July 2007 AmigaOS4 officially supports .so libraries.
15036 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15039 m68k)
15040 library_names_spec='$libname.ixlibrary $libname.a'
15041 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15042 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'
15044 esac
15047 beos*)
15048 library_names_spec='${libname}${shared_ext}'
15049 dynamic_linker="$host_os ld.so"
15050 shlibpath_var=LIBRARY_PATH
15053 bsdi[45]*)
15054 version_type=linux
15055 need_version=no
15056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15057 soname_spec='${libname}${release}${shared_ext}$major'
15058 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15059 shlibpath_var=LD_LIBRARY_PATH
15060 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15061 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15062 # the default ld.so.conf also contains /usr/contrib/lib and
15063 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15064 # libtool to hard-code these into programs
15067 cygwin* | mingw* | pw32* | cegcc*)
15068 version_type=windows
15069 shrext_cmds=".dll"
15070 need_version=no
15071 need_lib_prefix=no
15073 case $GCC,$host_os in
15074 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15075 library_names_spec='$libname.dll.a'
15076 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15077 postinstall_cmds='base_file=`basename \${file}`~
15078 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15079 dldir=$destdir/`dirname \$dlpath`~
15080 test -d \$dldir || mkdir -p \$dldir~
15081 $install_prog $dir/$dlname \$dldir/$dlname~
15082 chmod a+x \$dldir/$dlname~
15083 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15084 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15086 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15087 dlpath=$dir/\$dldll~
15088 $RM \$dlpath'
15089 shlibpath_overrides_runpath=yes
15091 case $host_os in
15092 cygwin*)
15093 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15094 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15097 mingw* | cegcc*)
15098 # MinGW DLLs use traditional 'lib' prefix
15099 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15101 pw32*)
15102 # pw32 DLLs use 'pw' prefix rather than 'lib'
15103 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15105 esac
15109 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15111 esac
15112 dynamic_linker='Win32 ld.exe'
15113 # FIXME: first we should search . and the directory the executable is in
15114 shlibpath_var=PATH
15117 darwin* | rhapsody*)
15118 dynamic_linker="$host_os dyld"
15119 version_type=darwin
15120 need_lib_prefix=no
15121 need_version=no
15122 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15123 soname_spec='${libname}${release}${major}$shared_ext'
15124 shlibpath_overrides_runpath=yes
15125 shlibpath_var=DYLD_LIBRARY_PATH
15126 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15128 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15131 dgux*)
15132 version_type=linux
15133 need_lib_prefix=no
15134 need_version=no
15135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15136 soname_spec='${libname}${release}${shared_ext}$major'
15137 shlibpath_var=LD_LIBRARY_PATH
15140 freebsd* | dragonfly*)
15141 # DragonFly does not have aout. When/if they implement a new
15142 # versioning mechanism, adjust this.
15143 if test -x /usr/bin/objformat; then
15144 objformat=`/usr/bin/objformat`
15145 else
15146 case $host_os in
15147 freebsd[23].*) objformat=aout ;;
15148 *) objformat=elf ;;
15149 esac
15151 version_type=freebsd-$objformat
15152 case $version_type in
15153 freebsd-elf*)
15154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15155 need_version=no
15156 need_lib_prefix=no
15158 freebsd-*)
15159 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15160 need_version=yes
15162 esac
15163 shlibpath_var=LD_LIBRARY_PATH
15164 case $host_os in
15165 freebsd2.*)
15166 shlibpath_overrides_runpath=yes
15168 freebsd3.[01]* | freebsdelf3.[01]*)
15169 shlibpath_overrides_runpath=yes
15170 hardcode_into_libs=yes
15172 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15173 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15174 shlibpath_overrides_runpath=no
15175 hardcode_into_libs=yes
15177 *) # from 4.6 on, and DragonFly
15178 shlibpath_overrides_runpath=yes
15179 hardcode_into_libs=yes
15181 esac
15184 haiku*)
15185 version_type=linux
15186 need_lib_prefix=no
15187 need_version=no
15188 dynamic_linker="$host_os runtime_loader"
15189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15190 soname_spec='${libname}${release}${shared_ext}$major'
15191 shlibpath_var=LIBRARY_PATH
15192 shlibpath_overrides_runpath=yes
15193 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15194 hardcode_into_libs=yes
15197 hpux9* | hpux10* | hpux11*)
15198 # Give a soname corresponding to the major version so that dld.sl refuses to
15199 # link against other versions.
15200 version_type=sunos
15201 need_lib_prefix=no
15202 need_version=no
15203 case $host_cpu in
15204 ia64*)
15205 shrext_cmds='.so'
15206 hardcode_into_libs=yes
15207 dynamic_linker="$host_os dld.so"
15208 shlibpath_var=LD_LIBRARY_PATH
15209 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15211 soname_spec='${libname}${release}${shared_ext}$major'
15212 if test "X$HPUX_IA64_MODE" = X32; then
15213 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15214 else
15215 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15217 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15219 hppa*64*)
15220 shrext_cmds='.sl'
15221 hardcode_into_libs=yes
15222 dynamic_linker="$host_os dld.sl"
15223 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15224 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15226 soname_spec='${libname}${release}${shared_ext}$major'
15227 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15231 shrext_cmds='.sl'
15232 dynamic_linker="$host_os dld.sl"
15233 shlibpath_var=SHLIB_PATH
15234 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15236 soname_spec='${libname}${release}${shared_ext}$major'
15238 esac
15239 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15240 postinstall_cmds='chmod 555 $lib'
15241 # or fails outright, so override atomically:
15242 install_override_mode=555
15245 interix[3-9]*)
15246 version_type=linux
15247 need_lib_prefix=no
15248 need_version=no
15249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15250 soname_spec='${libname}${release}${shared_ext}$major'
15251 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15252 shlibpath_var=LD_LIBRARY_PATH
15253 shlibpath_overrides_runpath=no
15254 hardcode_into_libs=yes
15257 irix5* | irix6* | nonstopux*)
15258 case $host_os in
15259 nonstopux*) version_type=nonstopux ;;
15261 if test "$lt_cv_prog_gnu_ld" = yes; then
15262 version_type=linux
15263 else
15264 version_type=irix
15265 fi ;;
15266 esac
15267 need_lib_prefix=no
15268 need_version=no
15269 soname_spec='${libname}${release}${shared_ext}$major'
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15271 case $host_os in
15272 irix5* | nonstopux*)
15273 libsuff= shlibsuff=
15276 case $LD in # libtool.m4 will add one of these switches to LD
15277 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15278 libsuff= shlibsuff= libmagic=32-bit;;
15279 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15280 libsuff=32 shlibsuff=N32 libmagic=N32;;
15281 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15282 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15283 *) libsuff= shlibsuff= libmagic=never-match;;
15284 esac
15286 esac
15287 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15288 shlibpath_overrides_runpath=no
15289 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15290 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15291 hardcode_into_libs=yes
15294 # No shared lib support for Linux oldld, aout, or coff.
15295 linux*oldld* | linux*aout* | linux*coff*)
15296 dynamic_linker=no
15299 # This must be Linux ELF.
15301 # uclinux* changes (here and below) have been submitted to the libtool
15302 # project, but have not yet been accepted: they are GCC-local changes
15303 # for the time being. (See
15304 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15305 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15306 version_type=linux
15307 need_lib_prefix=no
15308 need_version=no
15309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15310 soname_spec='${libname}${release}${shared_ext}$major'
15311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15312 shlibpath_var=LD_LIBRARY_PATH
15313 shlibpath_overrides_runpath=no
15315 # Some binutils ld are patched to set DT_RUNPATH
15316 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15317 $as_echo_n "(cached) " >&6
15318 else
15319 lt_cv_shlibpath_overrides_runpath=no
15320 save_LDFLAGS=$LDFLAGS
15321 save_libdir=$libdir
15322 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15323 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15324 if test x$gcc_no_link = xyes; then
15325 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328 /* end confdefs.h. */
15331 main ()
15335 return 0;
15337 _ACEOF
15338 if ac_fn_cxx_try_link "$LINENO"; then :
15339 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15340 lt_cv_shlibpath_overrides_runpath=yes
15343 rm -f core conftest.err conftest.$ac_objext \
15344 conftest$ac_exeext conftest.$ac_ext
15345 LDFLAGS=$save_LDFLAGS
15346 libdir=$save_libdir
15350 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15352 # This implies no fast_install, which is unacceptable.
15353 # Some rework will be needed to allow for fast_install
15354 # before this can be enabled.
15355 hardcode_into_libs=yes
15357 # Append ld.so.conf contents to the search path
15358 if test -f /etc/ld.so.conf; then
15359 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' ' '`
15360 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15363 # We used to test for /lib/ld.so.1 and disable shared libraries on
15364 # powerpc, because MkLinux only supported shared libraries with the
15365 # GNU dynamic linker. Since this was broken with cross compilers,
15366 # most powerpc-linux boxes support dynamic linking these days and
15367 # people can always --disable-shared, the test was removed, and we
15368 # assume the GNU/Linux dynamic linker is in use.
15369 dynamic_linker='GNU/Linux ld.so'
15372 netbsd*)
15373 version_type=sunos
15374 need_lib_prefix=no
15375 need_version=no
15376 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15379 dynamic_linker='NetBSD (a.out) ld.so'
15380 else
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15382 soname_spec='${libname}${release}${shared_ext}$major'
15383 dynamic_linker='NetBSD ld.elf_so'
15385 shlibpath_var=LD_LIBRARY_PATH
15386 shlibpath_overrides_runpath=yes
15387 hardcode_into_libs=yes
15390 newsos6)
15391 version_type=linux
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393 shlibpath_var=LD_LIBRARY_PATH
15394 shlibpath_overrides_runpath=yes
15397 *nto* | *qnx*)
15398 version_type=qnx
15399 need_lib_prefix=no
15400 need_version=no
15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15402 soname_spec='${libname}${release}${shared_ext}$major'
15403 shlibpath_var=LD_LIBRARY_PATH
15404 shlibpath_overrides_runpath=no
15405 hardcode_into_libs=yes
15406 dynamic_linker='ldqnx.so'
15409 openbsd*)
15410 version_type=sunos
15411 sys_lib_dlsearch_path_spec="/usr/lib"
15412 need_lib_prefix=no
15413 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15414 case $host_os in
15415 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15416 *) need_version=no ;;
15417 esac
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15420 shlibpath_var=LD_LIBRARY_PATH
15421 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15422 case $host_os in
15423 openbsd2.[89] | openbsd2.[89].*)
15424 shlibpath_overrides_runpath=no
15427 shlibpath_overrides_runpath=yes
15429 esac
15430 else
15431 shlibpath_overrides_runpath=yes
15435 os2*)
15436 libname_spec='$name'
15437 shrext_cmds=".dll"
15438 need_lib_prefix=no
15439 library_names_spec='$libname${shared_ext} $libname.a'
15440 dynamic_linker='OS/2 ld.exe'
15441 shlibpath_var=LIBPATH
15444 osf3* | osf4* | osf5*)
15445 version_type=osf
15446 need_lib_prefix=no
15447 need_version=no
15448 soname_spec='${libname}${release}${shared_ext}$major'
15449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450 shlibpath_var=LD_LIBRARY_PATH
15451 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15452 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15455 rdos*)
15456 dynamic_linker=no
15459 solaris*)
15460 version_type=linux
15461 need_lib_prefix=no
15462 need_version=no
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464 soname_spec='${libname}${release}${shared_ext}$major'
15465 shlibpath_var=LD_LIBRARY_PATH
15466 shlibpath_overrides_runpath=yes
15467 hardcode_into_libs=yes
15468 # ldd complains unless libraries are executable
15469 postinstall_cmds='chmod +x $lib'
15472 sunos4*)
15473 version_type=sunos
15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15475 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15476 shlibpath_var=LD_LIBRARY_PATH
15477 shlibpath_overrides_runpath=yes
15478 if test "$with_gnu_ld" = yes; then
15479 need_lib_prefix=no
15481 need_version=yes
15484 sysv4 | sysv4.3*)
15485 version_type=linux
15486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15487 soname_spec='${libname}${release}${shared_ext}$major'
15488 shlibpath_var=LD_LIBRARY_PATH
15489 case $host_vendor in
15490 sni)
15491 shlibpath_overrides_runpath=no
15492 need_lib_prefix=no
15493 runpath_var=LD_RUN_PATH
15495 siemens)
15496 need_lib_prefix=no
15498 motorola)
15499 need_lib_prefix=no
15500 need_version=no
15501 shlibpath_overrides_runpath=no
15502 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15504 esac
15507 sysv4*MP*)
15508 if test -d /usr/nec ;then
15509 version_type=linux
15510 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15511 soname_spec='$libname${shared_ext}.$major'
15512 shlibpath_var=LD_LIBRARY_PATH
15516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15517 version_type=freebsd-elf
15518 need_lib_prefix=no
15519 need_version=no
15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15521 soname_spec='${libname}${release}${shared_ext}$major'
15522 shlibpath_var=LD_LIBRARY_PATH
15523 shlibpath_overrides_runpath=yes
15524 hardcode_into_libs=yes
15525 if test "$with_gnu_ld" = yes; then
15526 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15527 else
15528 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15529 case $host_os in
15530 sco3.2v5*)
15531 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15533 esac
15535 sys_lib_dlsearch_path_spec='/usr/lib'
15538 tpf*)
15539 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15540 version_type=linux
15541 need_lib_prefix=no
15542 need_version=no
15543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15544 shlibpath_var=LD_LIBRARY_PATH
15545 shlibpath_overrides_runpath=no
15546 hardcode_into_libs=yes
15549 uts4*)
15550 version_type=linux
15551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15552 soname_spec='${libname}${release}${shared_ext}$major'
15553 shlibpath_var=LD_LIBRARY_PATH
15556 # Shared libraries for VwWorks, >= 7 only at this stage
15557 # and (fpic) still incompatible with "large" code models
15558 # in a few configurations. Only for RTP mode in any case,
15559 # and upon explicit request at configure time.
15560 vxworks7*)
15561 dynamic_linker=no
15562 case ${with_multisubdir}-${enable_shared} in
15563 *large*)
15565 *mrtp*-yes)
15566 version_type=linux
15567 need_lib_prefix=no
15568 need_version=no
15569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15570 soname_spec='${libname}${release}${shared_ext}$major'
15571 dynamic_linker="$host_os module_loader"
15573 esac
15576 dynamic_linker=no
15578 esac
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15580 $as_echo "$dynamic_linker" >&6; }
15581 test "$dynamic_linker" = no && can_build_shared=no
15583 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15584 if test "$GCC" = yes; then
15585 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15588 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15589 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15591 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15592 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15633 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15634 hardcode_action_CXX=
15635 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15636 test -n "$runpath_var_CXX" ||
15637 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15639 # We can hardcode non-existent directories.
15640 if test "$hardcode_direct_CXX" != no &&
15641 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15642 # have to relink, otherwise we might link with an installed library
15643 # when we should be linking with a yet-to-be-installed one
15644 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15645 test "$hardcode_minus_L_CXX" != no; then
15646 # Linking always hardcodes the temporary library directory.
15647 hardcode_action_CXX=relink
15648 else
15649 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15650 hardcode_action_CXX=immediate
15652 else
15653 # We cannot hardcode anything, or else we can only hardcode existing
15654 # directories.
15655 hardcode_action_CXX=unsupported
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15658 $as_echo "$hardcode_action_CXX" >&6; }
15660 if test "$hardcode_action_CXX" = relink ||
15661 test "$inherit_rpath_CXX" = yes; then
15662 # Fast installation is not supported
15663 enable_fast_install=no
15664 elif test "$shlibpath_overrides_runpath" = yes ||
15665 test "$enable_shared" = no; then
15666 # Fast installation is not necessary
15667 enable_fast_install=needless
15676 fi # test -n "$compiler"
15678 CC=$lt_save_CC
15679 LDCXX=$LD
15680 LD=$lt_save_LD
15681 GCC=$lt_save_GCC
15682 with_gnu_ld=$lt_save_with_gnu_ld
15683 lt_cv_path_LDCXX=$lt_cv_path_LD
15684 lt_cv_path_LD=$lt_save_path_LD
15685 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15686 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15687 fi # test "$_lt_caught_CXX_error" != yes
15689 ac_ext=c
15690 ac_cpp='$CPP $CPPFLAGS'
15691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15707 ac_config_commands="$ac_config_commands libtool"
15712 # Only expand once:
15718 case $host in
15719 *-cygwin* | *-mingw*)
15720 # 'host' will be top-level target in the case of a target lib,
15721 # we must compare to with_cross_host to decide if this is a native
15722 # or cross-compiler and select where to install dlls appropriately.
15723 if test -n "$with_cross_host" &&
15724 test x"$with_cross_host" != x"no"; then
15725 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
15726 else
15727 lt_host_flags='-no-undefined -bindir "$(bindir)"';
15731 lt_host_flags=
15733 esac
15739 if test x$enable_darwin_at_rpath = xyes; then
15740 ENABLE_DARWIN_AT_RPATH_TRUE=
15741 ENABLE_DARWIN_AT_RPATH_FALSE='#'
15742 else
15743 ENABLE_DARWIN_AT_RPATH_TRUE='#'
15744 ENABLE_DARWIN_AT_RPATH_FALSE=
15748 if test "$enable_vtable_verify" = yes; then
15749 predep_objects_CXX="${predep_objects_CXX} ${glibcxx_builddir}/../libgcc/vtv_start.o"
15750 postdep_objects_CXX="${postdep_objects_CXX} ${glibcxx_builddir}/../libgcc/vtv_end.o"
15754 # libtool variables for C++ shared and position-independent compiles.
15756 # Use glibcxx_lt_pic_flag to designate the automake variable
15757 # used to encapsulate the default libtool approach to creating objects
15758 # with position-independent code. Default: -prefer-pic.
15760 # Use glibcxx_compiler_shared_flag to designate a compile-time flags for
15761 # creating shared objects. Default: -D_GLIBCXX_SHARED.
15763 # Use glibcxx_compiler_pic_flag to designate a compile-time flags for
15764 # creating position-independent objects. This varies with the target
15765 # hardware and operating system, but is often: -DPIC -fPIC.
15766 if test "$enable_shared" = yes; then
15767 glibcxx_lt_pic_flag="-prefer-pic"
15768 glibcxx_compiler_pic_flag="$lt_prog_compiler_pic_CXX"
15769 glibcxx_compiler_shared_flag="-D_GLIBCXX_SHARED"
15771 else
15772 glibcxx_lt_pic_flag=
15773 glibcxx_compiler_pic_flag=
15774 glibcxx_compiler_shared_flag=
15780 # Override the libtool's pic_flag and pic_mode.
15781 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
15782 # NB: this impacts --with-pic and --without-pic.
15783 lt_prog_compiler_pic_CXX="$glibcxx_compiler_pic_flag $glibcxx_compiler_shared_flag"
15784 pic_mode='default'
15786 # Eliminate -lstdc++ addition to postdeps for cross compiles.
15787 postdeps_CXX=`echo " $postdeps_CXX " | sed 's, -lstdc++ ,,g'`
15789 # Possibly disable most of the library.
15790 ## TODO: Consider skipping unncessary tests altogether in this case, rather
15791 ## than just ignoring the results. Faster /and/ more correct, win win.
15793 # Check whether --enable-hosted-libstdcxx was given.
15794 if test "${enable_hosted_libstdcxx+set}" = set; then :
15795 enableval=$enable_hosted_libstdcxx; enable_hosted_libstdcxx_was_given=yes
15796 else
15797 case "$host" in
15798 arm*-*-symbianelf*)
15799 enable_hosted_libstdcxx=no
15802 case "${with_newlib}-${with_headers}" in
15803 no-no) enable_hosted_libstdcxx=no ;;
15804 *) enable_hosted_libstdcxx=yes ;;
15805 esac
15807 esac
15811 # Because most configure args are --enable-libstdcxx-foo add an alias
15812 # of that form for --enable-hosted-libstdcxx.
15813 # Check whether --enable-libstdcxx-hosted was given.
15814 if test "${enable_libstdcxx_hosted+set}" = set; then :
15815 enableval=$enable_libstdcxx_hosted; if test "$enable_hosted_libstdcxx_was_given" = yes; then
15816 if test "$enable_hosted_libstdcxx" != "$enableval"; then
15817 as_fn_error $? "--enable-libstdcxx-hosted=$enableval conflicts with --enable-hosted-libstdcxx=$enable_hosted_libstdcxx" "$LINENO" 5
15819 else
15820 enable_hosted_libstdcxx=${enableval}
15826 freestanding_flags=
15827 if test "$enable_hosted_libstdcxx" = no; then
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: Only freestanding libraries will be built" >&5
15829 $as_echo "$as_me: Only freestanding libraries will be built" >&6;}
15830 is_hosted=no
15831 hosted_define=0
15832 enable_abi_check=no
15833 enable_libstdcxx_pch=no
15834 if test "x$with_headers" = xno; then
15835 freestanding_flags="-ffreestanding"
15837 else
15838 is_hosted=yes
15839 hosted_define=__STDC_HOSTED__
15843 cat >>confdefs.h <<_ACEOF
15844 #define _GLIBCXX_HOSTED $hosted_define
15845 _ACEOF
15847 FREESTANDING_FLAGS="$freestanding_flags"
15851 # Enable descriptive messages to standard output on termination.
15853 # Check whether --enable-libstdcxx-verbose was given.
15854 if test "${enable_libstdcxx_verbose+set}" = set; then :
15855 enableval=$enable_libstdcxx_verbose;
15856 else
15857 enable_libstdcxx_verbose=yes
15860 if test x"$enable_libstdcxx_verbose" = xyes; then
15861 verbose_define=1
15862 else
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: verbose termination messages are disabled" >&5
15864 $as_echo "$as_me: verbose termination messages are disabled" >&6;}
15865 verbose_define=0
15868 cat >>confdefs.h <<_ACEOF
15869 #define _GLIBCXX_VERBOSE $verbose_define
15870 _ACEOF
15874 # Enable compiler support that doesn't require linking.
15876 # Check whether --enable-libstdcxx-pch was given.
15877 if test "${enable_libstdcxx_pch+set}" = set; then :
15878 enableval=$enable_libstdcxx_pch;
15879 case "$enableval" in
15880 yes|no) ;;
15881 *) as_fn_error $? "Argument to enable/disable libstdcxx-pch must be yes or no" "$LINENO" 5 ;;
15882 esac
15884 else
15885 enable_libstdcxx_pch=$is_hosted
15889 if test $enable_libstdcxx_pch = yes; then
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler with PCH support" >&5
15891 $as_echo_n "checking for compiler with PCH support... " >&6; }
15892 if ${glibcxx_cv_prog_CXX_pch+:} false; then :
15893 $as_echo_n "(cached) " >&6
15894 else
15895 ac_save_CXXFLAGS="$CXXFLAGS"
15896 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
15898 ac_ext=cpp
15899 ac_cpp='$CXXCPP $CPPFLAGS'
15900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15904 echo '#include <math.h>' > conftest.h
15905 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
15906 -o conftest.h.gch 1>&5 2>&1 &&
15907 echo '#error "pch failed"' > conftest.h &&
15908 echo '#include "conftest.h"' > conftest.cc &&
15909 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
15910 then
15911 glibcxx_cv_prog_CXX_pch=yes
15912 else
15913 glibcxx_cv_prog_CXX_pch=no
15915 rm -f conftest*
15916 CXXFLAGS=$ac_save_CXXFLAGS
15917 ac_ext=c
15918 ac_cpp='$CPP $CPPFLAGS'
15919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_prog_CXX_pch" >&5
15926 $as_echo "$glibcxx_cv_prog_CXX_pch" >&6; }
15927 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enabled PCH" >&5
15931 $as_echo_n "checking for enabled PCH... " >&6; }
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_pch" >&5
15933 $as_echo "$enable_libstdcxx_pch" >&6; }
15936 if test $enable_libstdcxx_pch = yes; then
15937 glibcxx_PCHFLAGS="-include bits/stdc++.h"
15938 else
15939 glibcxx_PCHFLAGS=""
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
15945 $as_echo_n "checking for thread model used by GCC... " >&6; }
15946 target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
15948 $as_echo "$target_thread_file" >&6; }
15950 case $target_thread_file in
15951 aix) thread_header=config/rs6000/gthr-aix.h ;;
15952 dce) thread_header=config/pa/gthr-dce.h ;;
15953 gcn) thread_header=config/gcn/gthr-gcn.h ;;
15954 lynx) thread_header=config/gthr-lynx.h ;;
15955 mipssde) thread_header=config/mips/gthr-mipssde.h ;;
15956 posix) thread_header=gthr-posix.h ;;
15957 rtems) thread_header=config/gthr-rtems.h ;;
15958 single) thread_header=gthr-single.h ;;
15959 tpf) thread_header=config/s390/gthr-tpf.h ;;
15960 vxworks) thread_header=config/gthr-vxworks.h ;;
15961 win32) thread_header=config/i386/gthr-win32.h ;;
15962 mcf) thread_header=config/i386/gthr-mcf.h ;;
15963 esac
15969 ac_ext=cpp
15970 ac_cpp='$CXXCPP $CPPFLAGS'
15971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15975 old_CXXFLAGS="$CXXFLAGS"
15977 # Do link tests if possible, instead asm tests, limited to some platforms
15978 # see discussion in PR target/40134, PR libstdc++/40133 and the thread
15979 # starting at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html
15980 atomic_builtins_link_tests=no
15981 if test x$gcc_no_link != xyes; then
15982 # Can do link tests. Limit to some tested platforms
15983 case "$host" in
15984 *-*-linux* | *-*-uclinux* | *-*-kfreebsd*-gnu | *-*-gnu*)
15985 atomic_builtins_link_tests=yes
15987 esac
15990 if test x$atomic_builtins_link_tests = xyes; then
15992 # Do link tests.
15994 CXXFLAGS="$CXXFLAGS -fno-exceptions"
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for bool" >&5
15997 $as_echo_n "checking for atomic builtins for bool... " >&6; }
15998 if ${glibcxx_cv_atomic_bool+:} false; then :
15999 $as_echo_n "(cached) " >&6
16000 else
16002 if test x$gcc_no_link = xyes; then
16003 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006 /* end confdefs.h. */
16009 main ()
16011 typedef bool atomic_type;
16012 atomic_type c1;
16013 atomic_type c2;
16014 atomic_type c3(0);
16015 // N.B. __atomic_fetch_add is not supported for bool.
16016 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16017 __ATOMIC_RELAXED);
16018 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16019 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16022 return 0;
16024 _ACEOF
16025 if ac_fn_cxx_try_link "$LINENO"; then :
16026 glibcxx_cv_atomic_bool=yes
16027 else
16028 glibcxx_cv_atomic_bool=no
16030 rm -f core conftest.err conftest.$ac_objext \
16031 conftest$ac_exeext conftest.$ac_ext
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_bool" >&5
16035 $as_echo "$glibcxx_cv_atomic_bool" >&6; }
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
16038 $as_echo_n "checking for atomic builtins for short... " >&6; }
16039 if ${glibcxx_cv_atomic_short+:} false; then :
16040 $as_echo_n "(cached) " >&6
16041 else
16043 if test x$gcc_no_link = xyes; then
16044 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16047 /* end confdefs.h. */
16050 main ()
16052 typedef short atomic_type;
16053 atomic_type c1;
16054 atomic_type c2;
16055 atomic_type c3(0);
16056 __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
16057 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16058 __ATOMIC_RELAXED);
16059 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16060 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16063 return 0;
16065 _ACEOF
16066 if ac_fn_cxx_try_link "$LINENO"; then :
16067 glibcxx_cv_atomic_short=yes
16068 else
16069 glibcxx_cv_atomic_short=no
16071 rm -f core conftest.err conftest.$ac_objext \
16072 conftest$ac_exeext conftest.$ac_ext
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_short" >&5
16076 $as_echo "$glibcxx_cv_atomic_short" >&6; }
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
16079 $as_echo_n "checking for atomic builtins for int... " >&6; }
16080 if ${glibcxx_cv_atomic_int+:} false; then :
16081 $as_echo_n "(cached) " >&6
16082 else
16084 if test x$gcc_no_link = xyes; then
16085 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h. */
16091 main ()
16093 typedef int atomic_type;
16094 atomic_type c1;
16095 atomic_type c2;
16096 atomic_type c3(0);
16097 __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
16098 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16099 __ATOMIC_RELAXED);
16100 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16101 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16104 return 0;
16106 _ACEOF
16107 if ac_fn_cxx_try_link "$LINENO"; then :
16108 glibcxx_cv_atomic_int=yes
16109 else
16110 glibcxx_cv_atomic_int=no
16112 rm -f core conftest.err conftest.$ac_objext \
16113 conftest$ac_exeext conftest.$ac_ext
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_int" >&5
16117 $as_echo "$glibcxx_cv_atomic_int" >&6; }
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long long" >&5
16120 $as_echo_n "checking for atomic builtins for long long... " >&6; }
16121 if ${glibcxx_cv_atomic_long_long+:} false; then :
16122 $as_echo_n "(cached) " >&6
16123 else
16125 if test x$gcc_no_link = xyes; then
16126 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16129 /* end confdefs.h. */
16132 main ()
16134 typedef long long atomic_type;
16135 atomic_type c1;
16136 atomic_type c2;
16137 atomic_type c3(0);
16138 __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
16139 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16140 __ATOMIC_RELAXED);
16141 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16142 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16145 return 0;
16147 _ACEOF
16148 if ac_fn_cxx_try_link "$LINENO"; then :
16149 glibcxx_cv_atomic_long_long=yes
16150 else
16151 glibcxx_cv_atomic_long_long=no
16153 rm -f core conftest.err conftest.$ac_objext \
16154 conftest$ac_exeext conftest.$ac_ext
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_long_long" >&5
16158 $as_echo "$glibcxx_cv_atomic_long_long" >&6; }
16160 else
16162 # Do asm tests.
16164 # Compile unoptimized.
16165 CXXFLAGS='-O0 -S'
16167 # Fake what AC_TRY_COMPILE does.
16169 cat > conftest.$ac_ext << EOF
16170 #line 16170 "configure"
16171 int main()
16173 typedef bool atomic_type;
16174 atomic_type c1;
16175 atomic_type c2;
16176 atomic_type c3(0);
16177 // N.B. __atomic_fetch_add is not supported for bool.
16178 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16179 __ATOMIC_RELAXED);
16180 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16181 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16183 return 0;
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for bool" >&5
16188 $as_echo_n "checking for atomic builtins for bool... " >&6; }
16189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16190 (eval $ac_compile) 2>&5
16191 ac_status=$?
16192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16193 test $ac_status = 0; }; then
16194 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
16195 glibcxx_cv_atomic_bool=no
16196 else
16197 glibcxx_cv_atomic_bool=yes
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_bool" >&5
16201 $as_echo "$glibcxx_cv_atomic_bool" >&6; }
16202 rm -f conftest*
16204 cat > conftest.$ac_ext << EOF
16205 #line 16205 "configure"
16206 int main()
16208 typedef short atomic_type;
16209 atomic_type c1;
16210 atomic_type c2;
16211 atomic_type c3(0);
16212 __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
16213 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16214 __ATOMIC_RELAXED);
16215 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16216 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16218 return 0;
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
16223 $as_echo_n "checking for atomic builtins for short... " >&6; }
16224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16225 (eval $ac_compile) 2>&5
16226 ac_status=$?
16227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16228 test $ac_status = 0; }; then
16229 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
16230 glibcxx_cv_atomic_short=no
16231 else
16232 glibcxx_cv_atomic_short=yes
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_short" >&5
16236 $as_echo "$glibcxx_cv_atomic_short" >&6; }
16237 rm -f conftest*
16239 cat > conftest.$ac_ext << EOF
16240 #line 16240 "configure"
16241 int main()
16243 // NB: _Atomic_word not necessarily int.
16244 typedef int atomic_type;
16245 atomic_type c1;
16246 atomic_type c2;
16247 atomic_type c3(0);
16248 __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
16249 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16250 __ATOMIC_RELAXED);
16251 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16252 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16254 return 0;
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
16259 $as_echo_n "checking for atomic builtins for int... " >&6; }
16260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16261 (eval $ac_compile) 2>&5
16262 ac_status=$?
16263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16264 test $ac_status = 0; }; then
16265 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
16266 glibcxx_cv_atomic_int=no
16267 else
16268 glibcxx_cv_atomic_int=yes
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_int" >&5
16272 $as_echo "$glibcxx_cv_atomic_int" >&6; }
16273 rm -f conftest*
16275 cat > conftest.$ac_ext << EOF
16276 #line 16276 "configure"
16277 int main()
16279 typedef long long atomic_type;
16280 atomic_type c1;
16281 atomic_type c2;
16282 atomic_type c3(0);
16283 __atomic_fetch_add(&c1, c2, __ATOMIC_RELAXED);
16284 __atomic_compare_exchange_n(&c1, &c2, c3, true, __ATOMIC_ACQ_REL,
16285 __ATOMIC_RELAXED);
16286 __atomic_test_and_set(&c1, __ATOMIC_RELAXED);
16287 __atomic_load_n(&c1, __ATOMIC_RELAXED);
16289 return 0;
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long long" >&5
16294 $as_echo_n "checking for atomic builtins for long long... " >&6; }
16295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16296 (eval $ac_compile) 2>&5
16297 ac_status=$?
16298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16299 test $ac_status = 0; }; then
16300 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
16301 glibcxx_cv_atomic_long_long=no
16302 else
16303 glibcxx_cv_atomic_long_long=yes
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_atomic_long_long" >&5
16307 $as_echo "$glibcxx_cv_atomic_long_long" >&6; }
16308 rm -f conftest*
16312 CXXFLAGS="$old_CXXFLAGS"
16313 ac_ext=c
16314 ac_cpp='$CPP $CPPFLAGS'
16315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16320 # Set atomicity_dir to builtins if all but the long long test above passes,
16321 # or if the builtins were already chosen (e.g. by configure.host).
16322 if { test "$glibcxx_cv_atomic_bool" = yes \
16323 && test "$glibcxx_cv_atomic_short" = yes \
16324 && test "$glibcxx_cv_atomic_int" = yes; } \
16325 || test "$atomicity_dir" = "cpu/generic/atomicity_builtins"; then
16327 $as_echo "#define _GLIBCXX_ATOMIC_BUILTINS 1" >>confdefs.h
16329 atomicity_dir=cpu/generic/atomicity_builtins
16332 # If still generic, set to mutex.
16333 if test $atomicity_dir = "cpu/generic" ; then
16334 atomicity_dir=cpu/generic/atomicity_mutex
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No native atomic operations are provided for this platform." >&5
16336 $as_echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
16337 if test "x$target_thread_file" = xsingle; then
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: They cannot be faked when thread support is disabled." >&5
16339 $as_echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Thread-safety of certain classes is not guaranteed." >&5
16341 $as_echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
16342 else
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: They will be faked using a mutex." >&5
16344 $as_echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Performance of certain classes will degrade as a result." >&5
16346 $as_echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
16354 # Check whether --with-libstdcxx-lock-policy was given.
16355 if test "${with_libstdcxx_lock_policy+set}" = set; then :
16356 withval=$with_libstdcxx_lock_policy; libstdcxx_atomic_lock_policy=$withval
16357 else
16358 libstdcxx_atomic_lock_policy=auto
16362 case "$libstdcxx_atomic_lock_policy" in
16363 atomic|mutex|auto) ;;
16364 *) as_fn_error $? "Invalid argument for --with-libstdcxx-lock-policy" "$LINENO" 5 ;;
16365 esac
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lock policy for shared_ptr reference counts" >&5
16367 $as_echo_n "checking for lock policy for shared_ptr reference counts... " >&6; }
16369 if test x"$libstdcxx_atomic_lock_policy" = x"auto"; then
16371 ac_ext=cpp
16372 ac_cpp='$CXXCPP $CPPFLAGS'
16373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16377 ac_save_CXXFLAGS="$CXXFLAGS"
16379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380 /* end confdefs.h. */
16382 #if defined __riscv
16383 # error "Defaulting to mutex-based locks for ABI compatibility"
16384 #endif
16385 #if ! defined __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
16386 # error "No 2-byte compare-and-swap"
16387 #elif ! defined __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4
16388 # error "No 4-byte compare-and-swap"
16389 #endif
16392 main ()
16396 return 0;
16398 _ACEOF
16399 if ac_fn_cxx_try_compile "$LINENO"; then :
16400 libstdcxx_atomic_lock_policy=atomic
16401 else
16402 libstdcxx_atomic_lock_policy=mutex
16404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16405 ac_ext=c
16406 ac_cpp='$CPP $CPPFLAGS'
16407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16411 CXXFLAGS="$ac_save_CXXFLAGS"
16414 if test x"$libstdcxx_atomic_lock_policy" = x"atomic"; then
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: atomic" >&5
16416 $as_echo "atomic" >&6; }
16418 $as_echo "#define HAVE_ATOMIC_LOCK_POLICY 1" >>confdefs.h
16420 else
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mutex" >&5
16422 $as_echo "mutex" >&6; }
16428 # Fake what AC_TRY_COMPILE does, without linking as this is
16429 # unnecessary for this test.
16431 cat > conftest.$ac_ext << EOF
16432 #line 16432 "configure"
16433 int main()
16435 _Decimal32 d1;
16436 _Decimal64 d2;
16437 _Decimal128 d3;
16438 return 0;
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO/IEC TR 24733 " >&5
16443 $as_echo_n "checking for ISO/IEC TR 24733 ... " >&6; }
16444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16445 (eval $ac_compile) 2>&5
16446 ac_status=$?
16447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16448 test $ac_status = 0; }; then
16450 $as_echo "#define _GLIBCXX_USE_DECIMAL_FLOAT 1" >>confdefs.h
16452 enable_dfp=yes
16453 else
16454 enable_dfp=no
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dfp" >&5
16457 $as_echo "$enable_dfp" >&6; }
16458 rm -f conftest*
16463 ac_ext=cpp
16464 ac_cpp='$CXXCPP $CPPFLAGS'
16465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16470 # Fake what AC_TRY_COMPILE does, without linking as this is
16471 # unnecessary for this test.
16473 cat > conftest.$ac_ext << EOF
16474 #line 16474 "configure"
16475 template<typename T1, typename T2>
16476 struct same
16477 { typedef T2 type; };
16479 template<typename T>
16480 struct same<T, T>;
16482 int main()
16484 typename same<double, __float128>::type f1;
16485 typename same<long double, __float128>::type f2;
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __float128" >&5
16490 $as_echo_n "checking for __float128... " >&6; }
16491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16492 (eval $ac_compile) 2>&5
16493 ac_status=$?
16494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16495 test $ac_status = 0; }; then
16496 enable_float128=yes
16497 else
16498 enable_float128=no
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_float128" >&5
16501 $as_echo "$enable_float128" >&6; }
16503 rm -f conftest*
16505 ac_ext=c
16506 ac_cpp='$CPP $CPPFLAGS'
16507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16512 if test "$enable_float128" = yes; then
16513 port_specific_symbol_files="$port_specific_symbol_files \$(top_srcdir)/config/abi/pre/float128.ver"
16516 # Checks for compiler support that doesn't require linking.
16518 # All these tests are for C++; save the language and the compiler flags.
16519 # The CXXFLAGS thing is suspicious, but based on similar bits previously
16520 # found in GLIBCXX_CONFIGURE.
16522 ac_ext=cpp
16523 ac_cpp='$CXXCPP $CPPFLAGS'
16524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16528 ac_test_CXXFLAGS="${CXXFLAGS+set}"
16529 ac_save_CXXFLAGS="$CXXFLAGS"
16531 # Check for -ffunction-sections -fdata-sections
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
16533 $as_echo_n "checking for g++ that supports -ffunction-sections -fdata-sections... " >&6; }
16534 CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections'
16535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16536 /* end confdefs.h. */
16537 int foo; void bar() { };
16539 main ()
16543 return 0;
16545 _ACEOF
16546 if ac_fn_cxx_try_compile "$LINENO"; then :
16547 ac_fdsections=yes
16548 else
16549 ac_fdsections=no
16551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16552 if test "$ac_test_CXXFLAGS" = set; then
16553 CXXFLAGS="$ac_save_CXXFLAGS"
16554 else
16555 # this is the suspicious part
16556 CXXFLAGS=''
16558 if test x"$ac_fdsections" = x"yes"; then
16559 SECTION_FLAGS='-ffunction-sections -fdata-sections'
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
16562 $as_echo "$ac_fdsections" >&6; }
16564 ac_ext=c
16565 ac_cpp='$CPP $CPPFLAGS'
16566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16573 # Enable all the variable C++ runtime options that don't require linking.
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for underlying I/O to use" >&5
16576 $as_echo_n "checking for underlying I/O to use... " >&6; }
16577 # Check whether --enable-cstdio was given.
16578 if test "${enable_cstdio+set}" = set; then :
16579 enableval=$enable_cstdio;
16580 case "$enableval" in
16581 stdio|stdio_posix|stdio_pure) ;;
16582 *) as_fn_error $? "Unknown argument to enable/disable cstdio" "$LINENO" 5 ;;
16583 esac
16585 else
16586 enable_cstdio=stdio
16591 # The only available I/O model is based on stdio, via basic_file_stdio.
16592 # The default "stdio" is actually "stdio + POSIX" because it uses fdopen(3)
16593 # to get a file descriptor and then uses read(3) and write(3) with it.
16594 # The "stdio_pure" model doesn't use fdopen and only uses FILE* for I/O.
16595 case ${enable_cstdio} in
16596 stdio*)
16597 CSTDIO_H=config/io/c_io_stdio.h
16598 BASIC_FILE_H=config/io/basic_file_stdio.h
16599 BASIC_FILE_CC=config/io/basic_file_stdio.cc
16601 if test "x$enable_cstdio" = "xstdio_pure" ; then
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdio (without POSIX read/write)" >&5
16603 $as_echo "stdio (without POSIX read/write)" >&6; }
16605 $as_echo "#define _GLIBCXX_USE_STDIO_PURE 1" >>confdefs.h
16607 else
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: stdio (with POSIX read/write)" >&5
16609 $as_echo "stdio (with POSIX read/write)" >&6; }
16612 esac
16619 # Check whether --enable-clocale was given.
16620 if test "${enable_clocale+set}" = set; then :
16621 enableval=$enable_clocale;
16622 case "$enableval" in
16623 generic|gnu|ieee_1003.1-2001|newlib|yes|no|auto) ;;
16624 *) as_fn_error $? "Unknown argument to enable/disable clocale" "$LINENO" 5 ;;
16625 esac
16627 else
16628 enable_clocale=auto
16633 # Deal with gettext issues. Default to not using it (=no) until we detect
16634 # support for it later. Let the user turn it off via --e/d, but let that
16635 # default to on for easier handling.
16636 USE_NLS=no
16637 # Check whether --enable-nls was given.
16638 if test "${enable_nls+set}" = set; then :
16639 enableval=$enable_nls;
16640 else
16641 enable_nls=yes
16645 # Either a known package, or "auto"
16646 if test $enable_clocale = no || test $enable_clocale = yes; then
16647 enable_clocale=auto
16649 enable_clocale_flag=$enable_clocale
16651 # Probe for locale model to use if none specified.
16652 # Default to "generic".
16653 if test $enable_clocale_flag = auto; then
16654 case ${target_os} in
16655 linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
16656 enable_clocale_flag=gnu
16658 darwin*)
16659 enable_clocale_flag=darwin
16661 vxworks*)
16662 enable_clocale_flag=vxworks
16664 dragonfly* | freebsd*)
16665 enable_clocale_flag=dragonfly
16667 openbsd*)
16668 enable_clocale_flag=newlib
16671 if test x"$with_newlib" = x"yes"; then
16672 enable_clocale_flag=newlib
16673 else
16674 enable_clocale_flag=generic
16677 esac
16680 # Sanity check model, and test for special functionality.
16681 if test $enable_clocale_flag = gnu; then
16682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16683 /* end confdefs.h. */
16685 #include <features.h>
16686 #if (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined(__UCLIBC__)
16687 _GLIBCXX_ok
16688 #endif
16690 _ACEOF
16691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16692 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then :
16693 enable_clocale_flag=gnu
16694 else
16695 enable_clocale_flag=generic
16697 rm -f conftest*
16700 # Set it to scream when it hurts.
16701 ac_save_CFLAGS="$CFLAGS"
16702 CFLAGS="-Wimplicit-function-declaration -Werror"
16704 # Use strxfrm_l if available.
16705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16706 /* end confdefs.h. */
16707 #define _GNU_SOURCE 1
16708 #include <string.h>
16709 #include <locale.h>
16711 main ()
16713 char s[128]; __locale_t loc; strxfrm_l(s, "C", 5, loc);
16715 return 0;
16717 _ACEOF
16718 if ac_fn_c_try_compile "$LINENO"; then :
16720 $as_echo "#define HAVE_STRXFRM_L 1" >>confdefs.h
16723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16725 # Use strerror_l if available.
16726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16727 /* end confdefs.h. */
16728 #define _GNU_SOURCE 1
16729 #include <string.h>
16730 #include <locale.h>
16732 main ()
16734 __locale_t loc; strerror_l(5, loc);
16736 return 0;
16738 _ACEOF
16739 if ac_fn_c_try_compile "$LINENO"; then :
16741 $as_echo "#define HAVE_STRERROR_L 1" >>confdefs.h
16744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16746 CFLAGS="$ac_save_CFLAGS"
16749 # Perhaps use strerror_r if available, and strerror_l isn't.
16750 ac_save_CFLAGS="$CFLAGS"
16751 CFLAGS="-Wimplicit-function-declaration -Werror"
16752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16753 /* end confdefs.h. */
16754 #define _GNU_SOURCE 1
16755 #include <string.h>
16756 #include <locale.h>
16758 main ()
16760 char s[128]; strerror_r(5, s, 128);
16762 return 0;
16764 _ACEOF
16765 if ac_fn_c_try_compile "$LINENO"; then :
16767 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16771 CFLAGS="$ac_save_CFLAGS"
16773 # Set configure bits for specified locale package
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C locale to use" >&5
16775 $as_echo_n "checking for C locale to use... " >&6; }
16776 case ${enable_clocale_flag} in
16777 generic)
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: generic" >&5
16779 $as_echo "generic" >&6; }
16781 CLOCALE_H=config/locale/generic/c_locale.h
16782 CLOCALE_CC=config/locale/generic/c_locale.cc
16783 CCODECVT_CC=config/locale/generic/codecvt_members.cc
16784 CCOLLATE_CC=config/locale/generic/collate_members.cc
16785 CCTYPE_CC=config/locale/generic/ctype_members.cc
16786 CMESSAGES_H=config/locale/generic/messages_members.h
16787 CMESSAGES_CC=config/locale/generic/messages_members.cc
16788 CMONEY_CC=config/locale/generic/monetary_members.cc
16789 CNUMERIC_CC=config/locale/generic/numeric_members.cc
16790 CTIME_H=config/locale/generic/time_members.h
16791 CTIME_CC=config/locale/generic/time_members.cc
16792 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
16794 darwin)
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: darwin" >&5
16796 $as_echo "darwin" >&6; }
16798 CLOCALE_H=config/locale/generic/c_locale.h
16799 CLOCALE_CC=config/locale/generic/c_locale.cc
16800 CCODECVT_CC=config/locale/generic/codecvt_members.cc
16801 CCOLLATE_CC=config/locale/generic/collate_members.cc
16802 CCTYPE_CC=config/locale/darwin/ctype_members.cc
16803 CMESSAGES_H=config/locale/generic/messages_members.h
16804 CMESSAGES_CC=config/locale/generic/messages_members.cc
16805 CMONEY_CC=config/locale/generic/monetary_members.cc
16806 CNUMERIC_CC=config/locale/generic/numeric_members.cc
16807 CTIME_H=config/locale/generic/time_members.h
16808 CTIME_CC=config/locale/generic/time_members.cc
16809 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
16811 vxworks)
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: vxworks" >&5
16813 $as_echo "vxworks" >&6; }
16815 CLOCALE_H=config/locale/generic/c_locale.h
16816 CLOCALE_CC=config/locale/generic/c_locale.cc
16817 CCODECVT_CC=config/locale/generic/codecvt_members.cc
16818 CCOLLATE_CC=config/locale/generic/collate_members.cc
16819 CCTYPE_CC=config/locale/vxworks/ctype_members.cc
16820 CMESSAGES_H=config/locale/generic/messages_members.h
16821 CMESSAGES_CC=config/locale/generic/messages_members.cc
16822 CMONEY_CC=config/locale/generic/monetary_members.cc
16823 CNUMERIC_CC=config/locale/generic/numeric_members.cc
16824 CTIME_H=config/locale/generic/time_members.h
16825 CTIME_CC=config/locale/generic/time_members.cc
16826 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
16828 dragonfly)
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dragonfly or freebsd" >&5
16830 $as_echo "dragonfly or freebsd" >&6; }
16832 CLOCALE_H=config/locale/dragonfly/c_locale.h
16833 CLOCALE_CC=config/locale/dragonfly/c_locale.cc
16834 CCODECVT_CC=config/locale/dragonfly/codecvt_members.cc
16835 CCOLLATE_CC=config/locale/dragonfly/collate_members.cc
16836 CCTYPE_CC=config/locale/dragonfly/ctype_members.cc
16837 CMESSAGES_H=config/locale/generic/messages_members.h
16838 CMESSAGES_CC=config/locale/generic/messages_members.cc
16839 CMONEY_CC=config/locale/dragonfly/monetary_members.cc
16840 CNUMERIC_CC=config/locale/dragonfly/numeric_members.cc
16841 CTIME_H=config/locale/dragonfly/time_members.h
16842 CTIME_CC=config/locale/dragonfly/time_members.cc
16843 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
16846 gnu)
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gnu" >&5
16848 $as_echo "gnu" >&6; }
16850 # Declare intention to use gettext, and add support for specific
16851 # languages.
16852 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
16853 ALL_LINGUAS="de fr"
16855 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
16856 # Extract the first word of "msgfmt", so it can be a program name with args.
16857 set dummy msgfmt; ac_word=$2
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16859 $as_echo_n "checking for $ac_word... " >&6; }
16860 if ${ac_cv_prog_check_msgfmt+:} false; then :
16861 $as_echo_n "(cached) " >&6
16862 else
16863 if test -n "$check_msgfmt"; then
16864 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
16865 else
16866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16867 for as_dir in $PATH
16869 IFS=$as_save_IFS
16870 test -z "$as_dir" && as_dir=.
16871 for ac_exec_ext in '' $ac_executable_extensions; do
16872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16873 ac_cv_prog_check_msgfmt="yes"
16874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16875 break 2
16877 done
16878 done
16879 IFS=$as_save_IFS
16881 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
16884 check_msgfmt=$ac_cv_prog_check_msgfmt
16885 if test -n "$check_msgfmt"; then
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $check_msgfmt" >&5
16887 $as_echo "$check_msgfmt" >&6; }
16888 else
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16890 $as_echo "no" >&6; }
16894 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
16895 USE_NLS=yes
16897 # Export the build objects.
16898 for ling in $ALL_LINGUAS; do \
16899 glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
16900 glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
16901 done
16905 CLOCALE_H=config/locale/gnu/c_locale.h
16906 CLOCALE_CC=config/locale/gnu/c_locale.cc
16907 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
16908 CCOLLATE_CC=config/locale/gnu/collate_members.cc
16909 CCTYPE_CC=config/locale/gnu/ctype_members.cc
16910 CMESSAGES_H=config/locale/gnu/messages_members.h
16911 CMESSAGES_CC=config/locale/gnu/messages_members.cc
16912 CMONEY_CC=config/locale/gnu/monetary_members.cc
16913 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
16914 CTIME_H=config/locale/gnu/time_members.h
16915 CTIME_CC=config/locale/gnu/time_members.cc
16916 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
16918 ieee_1003.1-2001)
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: IEEE 1003.1" >&5
16920 $as_echo "IEEE 1003.1" >&6; }
16922 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
16923 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
16924 CCODECVT_CC=config/locale/generic/codecvt_members.cc
16925 CCOLLATE_CC=config/locale/generic/collate_members.cc
16926 CCTYPE_CC=config/locale/generic/ctype_members.cc
16927 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
16928 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
16929 CMONEY_CC=config/locale/generic/monetary_members.cc
16930 CNUMERIC_CC=config/locale/generic/numeric_members.cc
16931 CTIME_H=config/locale/generic/time_members.h
16932 CTIME_CC=config/locale/generic/time_members.cc
16933 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
16935 newlib)
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newlib" >&5
16937 $as_echo "newlib" >&6; }
16939 CLOCALE_H=config/locale/generic/c_locale.h
16940 CLOCALE_CC=config/locale/generic/c_locale.cc
16941 CCODECVT_CC=config/locale/generic/codecvt_members.cc
16942 CCOLLATE_CC=config/locale/generic/collate_members.cc
16943 CCTYPE_CC=config/locale/newlib/ctype_members.cc
16944 CMESSAGES_H=config/locale/generic/messages_members.h
16945 CMESSAGES_CC=config/locale/generic/messages_members.cc
16946 CMONEY_CC=config/locale/generic/monetary_members.cc
16947 CNUMERIC_CC=config/locale/generic/numeric_members.cc
16948 CTIME_H=config/locale/generic/time_members.h
16949 CTIME_CC=config/locale/generic/time_members.cc
16950 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
16952 esac
16954 # This is where the testsuite looks for locale catalogs, using the
16955 # -DLOCALEDIR define during testsuite compilation.
16956 glibcxx_localedir=${glibcxx_builddir}/po/share/locale
16959 # A standalone libintl (e.g., GNU libintl) may be in use.
16960 if test $USE_NLS = yes; then
16961 for ac_header in libintl.h
16962 do :
16963 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
16964 if test "x$ac_cv_header_libintl_h" = xyes; then :
16965 cat >>confdefs.h <<_ACEOF
16966 #define HAVE_LIBINTL_H 1
16967 _ACEOF
16969 else
16970 USE_NLS=no
16973 done
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
16976 $as_echo_n "checking for library containing gettext... " >&6; }
16977 if ${ac_cv_search_gettext+:} false; then :
16978 $as_echo_n "(cached) " >&6
16979 else
16980 ac_func_search_save_LIBS=$LIBS
16981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16982 /* end confdefs.h. */
16984 /* Override any GCC internal prototype to avoid an error.
16985 Use char because int might match the return type of a GCC
16986 builtin and then its argument prototype would still apply. */
16987 #ifdef __cplusplus
16988 extern "C"
16989 #endif
16990 char gettext ();
16992 main ()
16994 return gettext ();
16996 return 0;
16998 _ACEOF
16999 for ac_lib in '' intl; do
17000 if test -z "$ac_lib"; then
17001 ac_res="none required"
17002 else
17003 ac_res=-l$ac_lib
17004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17006 if test x$gcc_no_link = xyes; then
17007 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17009 if ac_fn_c_try_link "$LINENO"; then :
17010 ac_cv_search_gettext=$ac_res
17012 rm -f core conftest.err conftest.$ac_objext \
17013 conftest$ac_exeext
17014 if ${ac_cv_search_gettext+:} false; then :
17015 break
17017 done
17018 if ${ac_cv_search_gettext+:} false; then :
17020 else
17021 ac_cv_search_gettext=no
17023 rm conftest.$ac_ext
17024 LIBS=$ac_func_search_save_LIBS
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
17027 $as_echo "$ac_cv_search_gettext" >&6; }
17028 ac_res=$ac_cv_search_gettext
17029 if test "$ac_res" != no; then :
17030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17032 else
17033 USE_NLS=no
17037 if test $USE_NLS = yes; then
17039 $as_echo "#define _GLIBCXX_USE_NLS 1" >>confdefs.h
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::allocator base class" >&5
17059 $as_echo_n "checking for std::allocator base class... " >&6; }
17060 # Check whether --enable-libstdcxx-allocator was given.
17061 if test "${enable_libstdcxx_allocator+set}" = set; then :
17062 enableval=$enable_libstdcxx_allocator;
17063 case "$enableval" in
17064 new|malloc|yes|no|auto) ;;
17065 *) as_fn_error $? "Unknown argument to enable/disable libstdcxx-allocator" "$LINENO" 5 ;;
17066 esac
17068 else
17069 enable_libstdcxx_allocator=auto
17074 # If they didn't use this option switch, or if they specified --enable
17075 # with no specific model, we'll have to look for one. If they
17076 # specified --disable (???), do likewise.
17077 if test $enable_libstdcxx_allocator = no ||
17078 test $enable_libstdcxx_allocator = yes;
17079 then
17080 enable_libstdcxx_allocator=auto
17083 # Either a known package, or "auto". Auto implies the default choice
17084 # for a particular platform.
17085 enable_libstdcxx_allocator_flag=$enable_libstdcxx_allocator
17087 # Probe for host-specific support if no specific model is specified.
17088 # Default to "new".
17089 if test $enable_libstdcxx_allocator_flag = auto; then
17090 case ${target_os} in
17091 linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
17092 enable_libstdcxx_allocator_flag=new
17095 enable_libstdcxx_allocator_flag=new
17097 esac
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_allocator_flag" >&5
17100 $as_echo "$enable_libstdcxx_allocator_flag" >&6; }
17103 # Set configure bits for specified locale package
17104 case ${enable_libstdcxx_allocator_flag} in
17105 malloc)
17106 ALLOCATOR_H=config/allocator/malloc_allocator_base.h
17107 ALLOCATOR_NAME=__gnu_cxx::malloc_allocator
17109 new)
17110 ALLOCATOR_H=config/allocator/new_allocator_base.h
17111 ALLOCATOR_NAME=__gnu_cxx::new_allocator
17113 esac
17120 # Check whether --enable-cheaders-obsolete was given.
17121 if test "${enable_cheaders_obsolete+set}" = set; then :
17122 enableval=$enable_cheaders_obsolete;
17123 case "$enableval" in
17124 yes|no) ;;
17125 *) as_fn_error $? "Argument to enable/disable cheaders-obsolete must be yes or no" "$LINENO" 5 ;;
17126 esac
17128 else
17129 enable_cheaders_obsolete=no
17133 # Check whether --enable-cheaders was given.
17134 if test "${enable_cheaders+set}" = set; then :
17135 enableval=$enable_cheaders;
17136 case "$enableval" in
17137 c|c_global|c_std) ;;
17138 *) as_fn_error $? "Unknown argument to enable/disable cheaders" "$LINENO" 5 ;;
17139 esac
17141 else
17142 enable_cheaders=$c_model
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: \"C\" header strategy set to $enable_cheaders" >&5
17147 $as_echo "$as_me: \"C\" header strategy set to $enable_cheaders" >&6;}
17148 if test $enable_cheaders = c_std ; then
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the --enable-cheaders=c_std configuration is obsolete, c_global should be used instead" >&5
17150 $as_echo "$as_me: WARNING: the --enable-cheaders=c_std configuration is obsolete, c_global should be used instead" >&2;}
17151 { $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
17152 $as_echo "$as_me: WARNING: if you are unable to use c_global please report a bug or inform libstdc++@gcc.gnu.org" >&2;}
17153 if test $enable_cheaders_obsolete != yes ; then
17154 as_fn_error $? "use --enable-cheaders-obsolete to use c_std \"C\" headers" "$LINENO" 5
17158 C_INCLUDE_DIR='${glibcxx_srcdir}/include/'$enable_cheaders
17160 # Allow overrides to configure.host here.
17161 if test $enable_cheaders = c_global; then
17162 c_compatibility=yes
17171 # Check whether --enable-long-long was given.
17172 if test "${enable_long_long+set}" = set; then :
17173 enableval=$enable_long_long;
17174 case "$enableval" in
17175 yes|no) ;;
17176 *) as_fn_error $? "Argument to enable/disable long-long must be yes or no" "$LINENO" 5 ;;
17177 esac
17179 else
17180 enable_long_long=yes
17184 if test $enable_long_long = yes; then
17186 $as_echo "#define _GLIBCXX_USE_LONG_LONG 1" >>confdefs.h
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enabled long long specializations" >&5
17190 $as_echo_n "checking for enabled long long specializations... " >&6; }
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_long_long" >&5
17192 $as_echo "$enable_long_long" >&6; }
17195 # Check whether --enable-wchar_t was given.
17196 if test "${enable_wchar_t+set}" = set; then :
17197 enableval=$enable_wchar_t;
17198 case "$enableval" in
17199 yes|no) ;;
17200 *) as_fn_error $? "Argument to enable/disable wchar_t must be yes or no" "$LINENO" 5 ;;
17201 esac
17203 else
17204 enable_wchar_t=yes
17209 # Test wchar.h for mbstate_t, which is needed for char_traits and fpos.
17210 for ac_header in wchar.h
17211 do :
17212 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
17213 if test "x$ac_cv_header_wchar_h" = xyes; then :
17214 cat >>confdefs.h <<_ACEOF
17215 #define HAVE_WCHAR_H 1
17216 _ACEOF
17217 ac_has_wchar_h=yes
17218 else
17219 ac_has_wchar_h=no
17222 done
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
17225 $as_echo_n "checking for mbstate_t... " >&6; }
17226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17227 /* end confdefs.h. */
17228 #include <wchar.h>
17230 main ()
17232 mbstate_t teststate;
17234 return 0;
17236 _ACEOF
17237 if ac_fn_c_try_compile "$LINENO"; then :
17238 have_mbstate_t=yes
17239 else
17240 have_mbstate_t=no
17242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mbstate_t" >&5
17244 $as_echo "$have_mbstate_t" >&6; }
17245 if test x"$have_mbstate_t" = xyes; then
17247 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
17251 # Test it always, for use in GLIBCXX_ENABLE_C99, together with
17252 # ac_has_wchar_h.
17253 for ac_header in wctype.h
17254 do :
17255 ac_fn_c_check_header_mongrel "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
17256 if test "x$ac_cv_header_wctype_h" = xyes; then :
17257 cat >>confdefs.h <<_ACEOF
17258 #define HAVE_WCTYPE_H 1
17259 _ACEOF
17260 ac_has_wctype_h=yes
17261 else
17262 ac_has_wctype_h=no
17265 done
17268 if test x"$enable_wchar_t" = x"yes"; then
17271 ac_ext=cpp
17272 ac_cpp='$CXXCPP $CPPFLAGS'
17273 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17274 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17278 if test x"$ac_has_wchar_h" = xyes &&
17279 test x"$ac_has_wctype_h" = xyes; then
17280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17281 /* end confdefs.h. */
17282 #include <wchar.h>
17283 #include <stddef.h>
17284 wint_t i;
17285 long l = WEOF;
17286 long j = WCHAR_MIN;
17287 long k = WCHAR_MAX;
17288 namespace test
17290 using ::btowc;
17291 using ::fgetwc;
17292 using ::fgetws;
17293 using ::fputwc;
17294 using ::fputws;
17295 using ::fwide;
17296 using ::fwprintf;
17297 using ::fwscanf;
17298 using ::getwc;
17299 using ::getwchar;
17300 using ::mbrlen;
17301 using ::mbrtowc;
17302 using ::mbsinit;
17303 using ::mbsrtowcs;
17304 using ::putwc;
17305 using ::putwchar;
17306 using ::swprintf;
17307 using ::swscanf;
17308 using ::ungetwc;
17309 using ::vfwprintf;
17310 using ::vswprintf;
17311 using ::vwprintf;
17312 using ::wcrtomb;
17313 using ::wcscat;
17314 using ::wcschr;
17315 using ::wcscmp;
17316 using ::wcscoll;
17317 using ::wcscpy;
17318 using ::wcscspn;
17319 using ::wcsftime;
17320 using ::wcslen;
17321 using ::wcsncat;
17322 using ::wcsncmp;
17323 using ::wcsncpy;
17324 using ::wcspbrk;
17325 using ::wcsrchr;
17326 using ::wcsrtombs;
17327 using ::wcsspn;
17328 using ::wcsstr;
17329 using ::wcstod;
17330 using ::wcstok;
17331 using ::wcstol;
17332 using ::wcstoul;
17333 using ::wcsxfrm;
17334 using ::wctob;
17335 using ::wmemchr;
17336 using ::wmemcmp;
17337 using ::wmemcpy;
17338 using ::wmemmove;
17339 using ::wmemset;
17340 using ::wprintf;
17341 using ::wscanf;
17345 main ()
17349 return 0;
17351 _ACEOF
17352 if ac_fn_cxx_try_compile "$LINENO"; then :
17354 else
17355 enable_wchar_t=no
17357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17358 else
17359 enable_wchar_t=no
17362 ac_ext=c
17363 ac_cpp='$CPP $CPPFLAGS'
17364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17370 if test x"$enable_wchar_t" = x"yes"; then
17372 $as_echo "#define _GLIBCXX_USE_WCHAR_T 1" >>confdefs.h
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for enabled wchar_t specializations" >&5
17377 $as_echo_n "checking for enabled wchar_t specializations... " >&6; }
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_wchar_t" >&5
17379 $as_echo "$enable_wchar_t" >&6; }
17383 # Check whether --enable-c99 was given.
17384 if test "${enable_c99+set}" = set; then :
17385 enableval=$enable_c99;
17386 case "$enableval" in
17387 yes|no) ;;
17388 *) as_fn_error $? "Argument to enable/disable c99 must be yes or no" "$LINENO" 5 ;;
17389 esac
17391 else
17392 enable_c99=yes
17397 if test x"$enable_c99" = x"yes"; then
17399 ac_ext=cpp
17400 ac_cpp='$CXXCPP $CPPFLAGS'
17401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17406 # Use -std=c++98 (instead of -std=gnu++98) because leaving __STRICT_ANSI__
17407 # undefined may cause fake C99 facilities, like pre-standard snprintf,
17408 # to be spuriously enabled.
17409 ac_save_CXXFLAGS="$CXXFLAGS"
17410 CXXFLAGS="$CXXFLAGS -std=c++98"
17411 ac_save_LIBS="$LIBS"
17412 ac_save_gcc_no_link="$gcc_no_link"
17414 if test x$gcc_no_link != xyes; then
17415 # Use -fno-exceptions to that the C driver can link these tests without
17416 # hitting undefined references to personality routines.
17417 CXXFLAGS="$CXXFLAGS -fno-exceptions"
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
17419 $as_echo_n "checking for sin in -lm... " >&6; }
17420 if ${ac_cv_lib_m_sin+:} false; then :
17421 $as_echo_n "(cached) " >&6
17422 else
17423 ac_check_lib_save_LIBS=$LIBS
17424 LIBS="-lm $LIBS"
17425 if test x$gcc_no_link = xyes; then
17426 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17429 /* end confdefs.h. */
17431 /* Override any GCC internal prototype to avoid an error.
17432 Use char because int might match the return type of a GCC
17433 builtin and then its argument prototype would still apply. */
17434 #ifdef __cplusplus
17435 extern "C"
17436 #endif
17437 char sin ();
17439 main ()
17441 return sin ();
17443 return 0;
17445 _ACEOF
17446 if ac_fn_cxx_try_link "$LINENO"; then :
17447 ac_cv_lib_m_sin=yes
17448 else
17449 ac_cv_lib_m_sin=no
17451 rm -f core conftest.err conftest.$ac_objext \
17452 conftest$ac_exeext conftest.$ac_ext
17453 LIBS=$ac_check_lib_save_LIBS
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
17456 $as_echo "$ac_cv_lib_m_sin" >&6; }
17457 if test "x$ac_cv_lib_m_sin" = xyes; then :
17458 LIBS="$LIBS -lm"
17459 else
17461 # Use the default compile-only tests in GCC_TRY_COMPILE_OR_LINK
17462 gcc_no_link=yes
17468 # Check for the existence of <math.h> functions used if C99 is enabled.
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <math.h> for C++98" >&5
17470 $as_echo_n "checking for ISO C99 support in <math.h> for C++98... " >&6; }
17471 if ${glibcxx_cv_c99_math_cxx98+:} false; then :
17472 $as_echo_n "(cached) " >&6
17473 else
17475 if test x$gcc_no_link = xyes; then
17476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17477 /* end confdefs.h. */
17478 #include <math.h>
17479 volatile double d1, d2;
17480 volatile int i;
17482 main ()
17484 i = fpclassify(d1);
17485 i = isfinite(d1);
17486 i = isinf(d1);
17487 i = isnan(d1);
17488 i = isnormal(d1);
17489 i = signbit(d1);
17490 i = isgreater(d1, d2);
17491 i = isgreaterequal(d1, d2);
17492 i = isless(d1, d2);
17493 i = islessequal(d1, d2);
17494 i = islessgreater(d1, d2);
17495 i = islessgreater(d1, d2);
17496 i = isunordered(d1, d2);
17499 return 0;
17501 _ACEOF
17502 if ac_fn_cxx_try_compile "$LINENO"; then :
17503 glibcxx_cv_c99_math_cxx98=yes
17504 else
17505 glibcxx_cv_c99_math_cxx98=no
17507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17508 else
17509 if test x$gcc_no_link = xyes; then
17510 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17513 /* end confdefs.h. */
17514 #include <math.h>
17515 volatile double d1, d2;
17516 volatile int i;
17518 main ()
17520 i = fpclassify(d1);
17521 i = isfinite(d1);
17522 i = isinf(d1);
17523 i = isnan(d1);
17524 i = isnormal(d1);
17525 i = signbit(d1);
17526 i = isgreater(d1, d2);
17527 i = isgreaterequal(d1, d2);
17528 i = isless(d1, d2);
17529 i = islessequal(d1, d2);
17530 i = islessgreater(d1, d2);
17531 i = islessgreater(d1, d2);
17532 i = isunordered(d1, d2);
17535 return 0;
17537 _ACEOF
17538 if ac_fn_cxx_try_link "$LINENO"; then :
17539 glibcxx_cv_c99_math_cxx98=yes
17540 else
17541 glibcxx_cv_c99_math_cxx98=no
17543 rm -f core conftest.err conftest.$ac_objext \
17544 conftest$ac_exeext conftest.$ac_ext
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_math_cxx98" >&5
17549 $as_echo "$glibcxx_cv_c99_math_cxx98" >&6; }
17550 if test x"$glibcxx_cv_c99_math_cxx98" = x"yes"; then
17552 $as_echo "#define _GLIBCXX98_USE_C99_MATH 1" >>confdefs.h
17556 # Check for the existence of <complex.h> complex math functions.
17557 # This is necessary even though libstdc++ uses the builtin versions
17558 # of these functions, because if the builtin cannot be used, a reference
17559 # to the library function is emitted.
17560 for ac_header in tgmath.h
17561 do :
17562 ac_fn_cxx_check_header_mongrel "$LINENO" "tgmath.h" "ac_cv_header_tgmath_h" "$ac_includes_default"
17563 if test "x$ac_cv_header_tgmath_h" = xyes; then :
17564 cat >>confdefs.h <<_ACEOF
17565 #define HAVE_TGMATH_H 1
17566 _ACEOF
17567 ac_has_tgmath_h=yes
17568 else
17569 ac_has_tgmath_h=no
17572 done
17574 for ac_header in complex.h
17575 do :
17576 ac_fn_cxx_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
17577 if test "x$ac_cv_header_complex_h" = xyes; then :
17578 cat >>confdefs.h <<_ACEOF
17579 #define HAVE_COMPLEX_H 1
17580 _ACEOF
17581 ac_has_complex_h=yes
17582 else
17583 ac_has_complex_h=no
17586 done
17588 if test x"$ac_has_complex_h" = x"yes"; then
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <complex.h> for C++98" >&5
17590 $as_echo_n "checking for ISO C99 support in <complex.h> for C++98... " >&6; }
17591 if ${glibcxx_cv_c99_complex_cxx98+:} false; then :
17592 $as_echo_n "(cached) " >&6
17593 else
17595 if test x$gcc_no_link = xyes; then
17596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17597 /* end confdefs.h. */
17598 #include <complex.h>
17599 typedef __complex__ float float_type;
17600 typedef __complex__ double double_type;
17601 typedef __complex__ long double ld_type;
17602 volatile float_type tmpf;
17603 volatile double_type tmpd;
17604 volatile ld_type tmpld;
17605 volatile float f;
17606 volatile double d;
17607 volatile long double ld;
17609 main ()
17611 f = cabsf(tmpf);
17612 f = cargf(tmpf);
17613 tmpf = ccosf(tmpf);
17614 tmpf = ccoshf(tmpf);
17615 tmpf = cexpf(tmpf);
17616 tmpf = clogf(tmpf);
17617 tmpf = csinf(tmpf);
17618 tmpf = csinhf(tmpf);
17619 tmpf = csqrtf(tmpf);
17620 tmpf = ctanf(tmpf);
17621 tmpf = ctanhf(tmpf);
17622 tmpf = cpowf(tmpf, tmpf);
17623 tmpf = cprojf(tmpf);
17624 d = cabs(tmpd);
17625 d = carg(tmpd);
17626 tmpd = ccos(tmpd);
17627 tmpd = ccosh(tmpd);
17628 tmpd = cexp(tmpd);
17629 tmpd = clog(tmpd);
17630 tmpd = csin(tmpd);
17631 tmpd = csinh(tmpd);
17632 tmpd = csqrt(tmpd);
17633 tmpd = ctan(tmpd);
17634 tmpd = ctanh(tmpd);
17635 tmpd = cpow(tmpd, tmpd);
17636 tmpd = cproj(tmpd);
17637 ld = cabsl(tmpld);
17638 ld = cargl(tmpld);
17639 tmpld = ccosl(tmpld);
17640 tmpld = ccoshl(tmpld);
17641 tmpld = cexpl(tmpld);
17642 tmpld = clogl(tmpld);
17643 tmpld = csinl(tmpld);
17644 tmpld = csinhl(tmpld);
17645 tmpld = csqrtl(tmpld);
17646 tmpld = ctanl(tmpld);
17647 tmpld = ctanhl(tmpld);
17648 tmpld = cpowl(tmpld, tmpld);
17649 tmpld = cprojl(tmpld);
17652 return 0;
17654 _ACEOF
17655 if ac_fn_cxx_try_compile "$LINENO"; then :
17656 glibcxx_cv_c99_complex_cxx98=yes
17657 else
17658 glibcxx_cv_c99_complex_cxx98=no
17660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17661 else
17662 if test x$gcc_no_link = xyes; then
17663 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17666 /* end confdefs.h. */
17667 #include <complex.h>
17668 typedef __complex__ float float_type;
17669 typedef __complex__ double double_type;
17670 typedef __complex__ long double ld_type;
17671 volatile float_type tmpf;
17672 volatile double_type tmpd;
17673 volatile ld_type tmpld;
17674 volatile float f;
17675 volatile double d;
17676 volatile long double ld;
17678 main ()
17680 f = cabsf(tmpf);
17681 f = cargf(tmpf);
17682 tmpf = ccosf(tmpf);
17683 tmpf = ccoshf(tmpf);
17684 tmpf = cexpf(tmpf);
17685 tmpf = clogf(tmpf);
17686 tmpf = csinf(tmpf);
17687 tmpf = csinhf(tmpf);
17688 tmpf = csqrtf(tmpf);
17689 tmpf = ctanf(tmpf);
17690 tmpf = ctanhf(tmpf);
17691 tmpf = cpowf(tmpf, tmpf);
17692 tmpf = cprojf(tmpf);
17693 d = cabs(tmpd);
17694 d = carg(tmpd);
17695 tmpd = ccos(tmpd);
17696 tmpd = ccosh(tmpd);
17697 tmpd = cexp(tmpd);
17698 tmpd = clog(tmpd);
17699 tmpd = csin(tmpd);
17700 tmpd = csinh(tmpd);
17701 tmpd = csqrt(tmpd);
17702 tmpd = ctan(tmpd);
17703 tmpd = ctanh(tmpd);
17704 tmpd = cpow(tmpd, tmpd);
17705 tmpd = cproj(tmpd);
17706 ld = cabsl(tmpld);
17707 ld = cargl(tmpld);
17708 tmpld = ccosl(tmpld);
17709 tmpld = ccoshl(tmpld);
17710 tmpld = cexpl(tmpld);
17711 tmpld = clogl(tmpld);
17712 tmpld = csinl(tmpld);
17713 tmpld = csinhl(tmpld);
17714 tmpld = csqrtl(tmpld);
17715 tmpld = ctanl(tmpld);
17716 tmpld = ctanhl(tmpld);
17717 tmpld = cpowl(tmpld, tmpld);
17718 tmpld = cprojl(tmpld);
17721 return 0;
17723 _ACEOF
17724 if ac_fn_cxx_try_link "$LINENO"; then :
17725 glibcxx_cv_c99_complex_cxx98=yes
17726 else
17727 glibcxx_cv_c99_complex_cxx98=no
17729 rm -f core conftest.err conftest.$ac_objext \
17730 conftest$ac_exeext conftest.$ac_ext
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_complex_cxx98" >&5
17735 $as_echo "$glibcxx_cv_c99_complex_cxx98" >&6; }
17737 if test x"$glibcxx_cv_c99_complex_cxx98" = x"yes"; then
17739 $as_echo "#define _GLIBCXX98_USE_C99_COMPLEX 1" >>confdefs.h
17743 # Check for the existence in <stdio.h> of vscanf, et. al.
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <stdio.h> for C++98" >&5
17745 $as_echo_n "checking for ISO C99 support in <stdio.h> for C++98... " >&6; }
17746 if ${glibcxx_cv_c99_stdio_cxx98+:} false; then :
17747 $as_echo_n "(cached) " >&6
17748 else
17750 if test x$gcc_no_link = xyes; then
17751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17752 /* end confdefs.h. */
17753 #include <stdio.h>
17754 #include <stdarg.h>
17755 void foo(char* fmt, ...)
17757 va_list args; va_start(args, fmt);
17758 vfscanf(stderr, "%i", args);
17759 vscanf("%i", args);
17760 vsnprintf(fmt, 0, "%i", args);
17761 vsscanf(fmt, "%i", args);
17762 snprintf(fmt, 0, "%i", 1);
17765 main ()
17769 return 0;
17771 _ACEOF
17772 if ac_fn_cxx_try_compile "$LINENO"; then :
17773 glibcxx_cv_c99_stdio_cxx98=yes
17774 else
17775 glibcxx_cv_c99_stdio_cxx98=no
17777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17778 else
17779 if test x$gcc_no_link = xyes; then
17780 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17783 /* end confdefs.h. */
17784 #include <stdio.h>
17785 #include <stdarg.h>
17786 void foo(char* fmt, ...)
17788 va_list args; va_start(args, fmt);
17789 vfscanf(stderr, "%i", args);
17790 vscanf("%i", args);
17791 vsnprintf(fmt, 0, "%i", args);
17792 vsscanf(fmt, "%i", args);
17793 snprintf(fmt, 0, "%i", 1);
17796 main ()
17800 return 0;
17802 _ACEOF
17803 if ac_fn_cxx_try_link "$LINENO"; then :
17804 glibcxx_cv_c99_stdio_cxx98=yes
17805 else
17806 glibcxx_cv_c99_stdio_cxx98=no
17808 rm -f core conftest.err conftest.$ac_objext \
17809 conftest$ac_exeext conftest.$ac_ext
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdio_cxx98" >&5
17814 $as_echo "$glibcxx_cv_c99_stdio_cxx98" >&6; }
17815 if test x"$glibcxx_cv_c99_stdio_cxx98" = x"yes"; then
17817 $as_echo "#define _GLIBCXX98_USE_C99_STDIO 1" >>confdefs.h
17821 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <stdlib.h> for C++98" >&5
17823 $as_echo_n "checking for ISO C99 support in <stdlib.h> for C++98... " >&6; }
17824 if ${glibcxx_cv_c99_stdlib_cxx98+:} false; then :
17825 $as_echo_n "(cached) " >&6
17826 else
17828 if test x$gcc_no_link = xyes; then
17829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17830 /* end confdefs.h. */
17831 #include <stdlib.h>
17832 volatile float f;
17833 volatile long double ld;
17834 volatile unsigned long long ll;
17835 lldiv_t mydivt;
17837 main ()
17839 char* tmp;
17840 f = strtof("gnu", &tmp);
17841 ld = strtold("gnu", &tmp);
17842 ll = strtoll("gnu", &tmp, 10);
17843 ll = strtoull("gnu", &tmp, 10);
17844 ll = llabs(10);
17845 mydivt = lldiv(10,1);
17846 ll = mydivt.quot;
17847 ll = mydivt.rem;
17848 ll = atoll("10");
17849 _Exit(0);
17852 return 0;
17854 _ACEOF
17855 if ac_fn_cxx_try_compile "$LINENO"; then :
17856 glibcxx_cv_c99_stdlib_cxx98=yes
17857 else
17858 glibcxx_cv_c99_stdlib_cxx98=no
17860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17861 else
17862 if test x$gcc_no_link = xyes; then
17863 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17866 /* end confdefs.h. */
17867 #include <stdlib.h>
17868 volatile float f;
17869 volatile long double ld;
17870 volatile unsigned long long ll;
17871 lldiv_t mydivt;
17873 main ()
17875 char* tmp;
17876 f = strtof("gnu", &tmp);
17877 ld = strtold("gnu", &tmp);
17878 ll = strtoll("gnu", &tmp, 10);
17879 ll = strtoull("gnu", &tmp, 10);
17880 ll = llabs(10);
17881 mydivt = lldiv(10,1);
17882 ll = mydivt.quot;
17883 ll = mydivt.rem;
17884 ll = atoll("10");
17885 _Exit(0);
17888 return 0;
17890 _ACEOF
17891 if ac_fn_cxx_try_link "$LINENO"; then :
17892 glibcxx_cv_c99_stdlib_cxx98=yes
17893 else
17894 glibcxx_cv_c99_stdlib_cxx98=no
17896 rm -f core conftest.err conftest.$ac_objext \
17897 conftest$ac_exeext conftest.$ac_ext
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdlib_cxx98" >&5
17902 $as_echo "$glibcxx_cv_c99_stdlib_cxx98" >&6; }
17903 if test x"$glibcxx_cv_c99_stdlib_cxx98" = x"yes"; then
17905 $as_echo "#define _GLIBCXX98_USE_C99_STDLIB 1" >>confdefs.h
17909 # Check for the existence in <wchar.h> of wcstold, etc.
17910 if test x"$ac_has_wchar_h" = xyes &&
17911 test x"$ac_has_wctype_h" = xyes; then
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <wchar.h> for C++98" >&5
17913 $as_echo_n "checking for ISO C99 support in <wchar.h> for C++98... " >&6; }
17914 if ${glibcxx_cv_c99_wchar_cxx98+:} false; then :
17915 $as_echo_n "(cached) " >&6
17916 else
17918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919 /* end confdefs.h. */
17920 #include <wchar.h>
17921 namespace test
17923 using ::wcstold;
17924 using ::wcstoll;
17925 using ::wcstoull;
17929 main ()
17933 return 0;
17935 _ACEOF
17936 if ac_fn_cxx_try_compile "$LINENO"; then :
17937 glibcxx_cv_c99_wchar_cxx98=yes
17938 else
17939 glibcxx_cv_c99_wchar_cxx98=no
17941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_wchar_cxx98" >&5
17945 $as_echo "$glibcxx_cv_c99_wchar_cxx98" >&6; }
17947 # Checks for wide character functions that may not be present.
17948 # Injection of these is wrapped with guard macros.
17949 # NB: only put functions here, instead of immediately above, if
17950 # absolutely necessary.
17951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17952 /* end confdefs.h. */
17953 #include <wchar.h>
17954 namespace test { using ::vfwscanf; }
17956 main ()
17960 return 0;
17962 _ACEOF
17963 if ac_fn_cxx_try_compile "$LINENO"; then :
17965 $as_echo "#define HAVE_VFWSCANF 1" >>confdefs.h
17968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17971 /* end confdefs.h. */
17972 #include <wchar.h>
17973 namespace test { using ::vswscanf; }
17975 main ()
17979 return 0;
17981 _ACEOF
17982 if ac_fn_cxx_try_compile "$LINENO"; then :
17984 $as_echo "#define HAVE_VSWSCANF 1" >>confdefs.h
17987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17990 /* end confdefs.h. */
17991 #include <wchar.h>
17992 namespace test { using ::vwscanf; }
17994 main ()
17998 return 0;
18000 _ACEOF
18001 if ac_fn_cxx_try_compile "$LINENO"; then :
18003 $as_echo "#define HAVE_VWSCANF 1" >>confdefs.h
18006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18009 /* end confdefs.h. */
18010 #include <wchar.h>
18011 namespace test { using ::wcstof; }
18013 main ()
18017 return 0;
18019 _ACEOF
18020 if ac_fn_cxx_try_compile "$LINENO"; then :
18022 $as_echo "#define HAVE_WCSTOF 1" >>confdefs.h
18025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18028 /* end confdefs.h. */
18029 #include <wctype.h>
18031 main ()
18033 wint_t t; int i = iswblank(t);
18035 return 0;
18037 _ACEOF
18038 if ac_fn_cxx_try_compile "$LINENO"; then :
18040 $as_echo "#define HAVE_ISWBLANK 1" >>confdefs.h
18043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18045 if test x"$glibcxx_cv_c99_wchar_cxx98" = x"yes"; then
18047 $as_echo "#define _GLIBCXX98_USE_C99_WCHAR 1" >>confdefs.h
18052 # Option parsed, now set things appropriately.
18053 if test x"$glibcxx_cv_c99_math_cxx98" = x"no" ||
18054 test x"$glibcxx_cv_c99_complex_cxx98" = x"no" ||
18055 test x"$glibcxx_cv_c99_stdio_cxx98" = x"no" ||
18056 test x"$glibcxx_cv_c99_stdlib_cxx98" = x"no" ||
18057 test x"$glibcxx_cv_c99_wchar_cxx98" = x"no"; then
18058 enable_c99=no;
18059 else
18061 $as_echo "#define _GLIBCXX_USE_C99 1" >>confdefs.h
18065 gcc_no_link="$ac_save_gcc_no_link"
18066 LIBS="$ac_save_LIBS"
18067 CXXFLAGS="$ac_save_CXXFLAGS"
18068 ac_ext=c
18069 ac_cpp='$CPP $CPPFLAGS'
18070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18076 ac_ext=cpp
18077 ac_cpp='$CXXCPP $CPPFLAGS'
18078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18083 # Use -std=c++11 and test again for C99 library feature in C++11 mode.
18084 # For the reasons given above we use -std=c++11 not -std=gnu++11.
18085 ac_save_CXXFLAGS="$CXXFLAGS"
18086 CXXFLAGS="$CXXFLAGS -std=c++11"
18087 ac_save_LIBS="$LIBS"
18088 ac_save_gcc_no_link="$gcc_no_link"
18090 if test x$gcc_no_link != xyes; then
18091 # Use -fno-exceptions to that the C driver can link these tests without
18092 # hitting undefined references to personality routines.
18093 CXXFLAGS="$CXXFLAGS -fno-exceptions"
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
18095 $as_echo_n "checking for sin in -lm... " >&6; }
18096 if ${ac_cv_lib_m_sin+:} false; then :
18097 $as_echo_n "(cached) " >&6
18098 else
18099 ac_check_lib_save_LIBS=$LIBS
18100 LIBS="-lm $LIBS"
18101 if test x$gcc_no_link = xyes; then
18102 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18105 /* end confdefs.h. */
18107 /* Override any GCC internal prototype to avoid an error.
18108 Use char because int might match the return type of a GCC
18109 builtin and then its argument prototype would still apply. */
18110 #ifdef __cplusplus
18111 extern "C"
18112 #endif
18113 char sin ();
18115 main ()
18117 return sin ();
18119 return 0;
18121 _ACEOF
18122 if ac_fn_cxx_try_link "$LINENO"; then :
18123 ac_cv_lib_m_sin=yes
18124 else
18125 ac_cv_lib_m_sin=no
18127 rm -f core conftest.err conftest.$ac_objext \
18128 conftest$ac_exeext conftest.$ac_ext
18129 LIBS=$ac_check_lib_save_LIBS
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
18132 $as_echo "$ac_cv_lib_m_sin" >&6; }
18133 if test "x$ac_cv_lib_m_sin" = xyes; then :
18134 LIBS="$LIBS -lm"
18135 else
18137 # Use the default compile-only tests in GCC_TRY_COMPILE_OR_LINK
18138 gcc_no_link=yes
18144 # Check for the existence of <stdint.h> types.
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <stdint.h> for C++11" >&5
18146 $as_echo_n "checking for ISO C99 support in <stdint.h> for C++11... " >&6; }
18147 if ${glibcxx_cv_c99_stdint+:} false; then :
18148 $as_echo_n "(cached) " >&6
18149 else
18151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18152 /* end confdefs.h. */
18153 #define __STDC_LIMIT_MACROS
18154 #define __STDC_CONSTANT_MACROS
18155 #include <stdint.h>
18157 main ()
18159 typedef int8_t my_int8_t;
18160 my_int8_t i8 = INT8_MIN;
18161 i8 = INT8_MAX;
18162 typedef int16_t my_int16_t;
18163 my_int16_t i16 = INT16_MIN;
18164 i16 = INT16_MAX;
18165 typedef int32_t my_int32_t;
18166 my_int32_t i32 = INT32_MIN;
18167 i32 = INT32_MAX;
18168 typedef int64_t my_int64_t;
18169 my_int64_t i64 = INT64_MIN;
18170 i64 = INT64_MAX;
18171 typedef int_fast8_t my_int_fast8_t;
18172 my_int_fast8_t if8 = INT_FAST8_MIN;
18173 if8 = INT_FAST8_MAX;
18174 typedef int_fast16_t my_int_fast16_t;
18175 my_int_fast16_t if16 = INT_FAST16_MIN;
18176 if16 = INT_FAST16_MAX;
18177 typedef int_fast32_t my_int_fast32_t;
18178 my_int_fast32_t if32 = INT_FAST32_MIN;
18179 if32 = INT_FAST32_MAX;
18180 typedef int_fast64_t my_int_fast64_t;
18181 my_int_fast64_t if64 = INT_FAST64_MIN;
18182 if64 = INT_FAST64_MAX;
18183 typedef int_least8_t my_int_least8_t;
18184 my_int_least8_t il8 = INT_LEAST8_MIN;
18185 il8 = INT_LEAST8_MAX;
18186 typedef int_least16_t my_int_least16_t;
18187 my_int_least16_t il16 = INT_LEAST16_MIN;
18188 il16 = INT_LEAST16_MAX;
18189 typedef int_least32_t my_int_least32_t;
18190 my_int_least32_t il32 = INT_LEAST32_MIN;
18191 il32 = INT_LEAST32_MAX;
18192 typedef int_least64_t my_int_least64_t;
18193 my_int_least64_t il64 = INT_LEAST64_MIN;
18194 il64 = INT_LEAST64_MAX;
18195 typedef intmax_t my_intmax_t;
18196 my_intmax_t im = INTMAX_MAX;
18197 im = INTMAX_MIN;
18198 typedef intptr_t my_intptr_t;
18199 my_intptr_t ip = INTPTR_MAX;
18200 ip = INTPTR_MIN;
18201 typedef uint8_t my_uint8_t;
18202 my_uint8_t ui8 = UINT8_MAX;
18203 ui8 = UINT8_MAX;
18204 typedef uint16_t my_uint16_t;
18205 my_uint16_t ui16 = UINT16_MAX;
18206 ui16 = UINT16_MAX;
18207 typedef uint32_t my_uint32_t;
18208 my_uint32_t ui32 = UINT32_MAX;
18209 ui32 = UINT32_MAX;
18210 typedef uint64_t my_uint64_t;
18211 my_uint64_t ui64 = UINT64_MAX;
18212 ui64 = UINT64_MAX;
18213 typedef uint_fast8_t my_uint_fast8_t;
18214 my_uint_fast8_t uif8 = UINT_FAST8_MAX;
18215 uif8 = UINT_FAST8_MAX;
18216 typedef uint_fast16_t my_uint_fast16_t;
18217 my_uint_fast16_t uif16 = UINT_FAST16_MAX;
18218 uif16 = UINT_FAST16_MAX;
18219 typedef uint_fast32_t my_uint_fast32_t;
18220 my_uint_fast32_t uif32 = UINT_FAST32_MAX;
18221 uif32 = UINT_FAST32_MAX;
18222 typedef uint_fast64_t my_uint_fast64_t;
18223 my_uint_fast64_t uif64 = UINT_FAST64_MAX;
18224 uif64 = UINT_FAST64_MAX;
18225 typedef uint_least8_t my_uint_least8_t;
18226 my_uint_least8_t uil8 = UINT_LEAST8_MAX;
18227 uil8 = UINT_LEAST8_MAX;
18228 typedef uint_least16_t my_uint_least16_t;
18229 my_uint_least16_t uil16 = UINT_LEAST16_MAX;
18230 uil16 = UINT_LEAST16_MAX;
18231 typedef uint_least32_t my_uint_least32_t;
18232 my_uint_least32_t uil32 = UINT_LEAST32_MAX;
18233 uil32 = UINT_LEAST32_MAX;
18234 typedef uint_least64_t my_uint_least64_t;
18235 my_uint_least64_t uil64 = UINT_LEAST64_MAX;
18236 uil64 = UINT_LEAST64_MAX;
18237 typedef uintmax_t my_uintmax_t;
18238 my_uintmax_t uim = UINTMAX_MAX;
18239 uim = UINTMAX_MAX;
18240 typedef uintptr_t my_uintptr_t;
18241 my_uintptr_t uip = UINTPTR_MAX;
18242 uip = UINTPTR_MAX;
18245 return 0;
18247 _ACEOF
18248 if ac_fn_cxx_try_compile "$LINENO"; then :
18249 glibcxx_cv_c99_stdint=yes
18250 else
18251 glibcxx_cv_c99_stdint=no
18253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdint" >&5
18257 $as_echo "$glibcxx_cv_c99_stdint" >&6; }
18258 if test x"$glibcxx_cv_c99_stdint" = x"yes"; then
18260 $as_echo "#define _GLIBCXX_USE_C99_STDINT 1" >>confdefs.h
18264 # Check for the existence of <inttypes.h> functions (NB: doesn't make
18265 # sense if the glibcxx_cv_c99_stdint check fails, per C99, 7.8/1).
18266 ac_c99_inttypes=no;
18267 if test x"$glibcxx_cv_c99_stdint" = x"yes"; then
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support for C++11 in <inttypes.h>" >&5
18269 $as_echo_n "checking for ISO C99 support for C++11 in <inttypes.h>... " >&6; }
18270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18271 /* end confdefs.h. */
18272 #include <inttypes.h>
18274 main ()
18276 intmax_t i, numer, denom, base;
18277 const char* s;
18278 char** endptr;
18279 intmax_t ret = imaxabs(i);
18280 imaxdiv_t dret = imaxdiv(numer, denom);
18281 ret = strtoimax(s, endptr, base);
18282 uintmax_t uret = strtoumax(s, endptr, base);
18285 return 0;
18287 _ACEOF
18288 if ac_fn_cxx_try_compile "$LINENO"; then :
18289 ac_c99_inttypes=yes
18290 else
18291 ac_c99_inttypes=no
18293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_inttypes" >&5
18295 $as_echo "$ac_c99_inttypes" >&6; }
18297 if test x"$ac_c99_inttypes" = x"yes"; then
18299 $as_echo "#define _GLIBCXX_USE_C99_INTTYPES 1" >>confdefs.h
18303 # Check for the existence of wchar_t <inttypes.h> functions (NB: doesn't
18304 # make sense if the glibcxx_cv_c99_stdint check fails, per C99, 7.8/1).
18305 ac_c99_inttypes_wchar_t=no;
18306 if test x"$glibcxx_cv_c99_stdint" = x"yes"; then
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t ISO C99 support for C++11 in <inttypes.h>" >&5
18308 $as_echo_n "checking for wchar_t ISO C99 support for C++11 in <inttypes.h>... " >&6; }
18309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18310 /* end confdefs.h. */
18311 #include <inttypes.h>
18313 main ()
18315 intmax_t base;
18316 const wchar_t* s;
18317 wchar_t** endptr;
18318 intmax_t ret = wcstoimax(s, endptr, base);
18319 uintmax_t uret = wcstoumax(s, endptr, base);
18322 return 0;
18324 _ACEOF
18325 if ac_fn_cxx_try_compile "$LINENO"; then :
18326 ac_c99_inttypes_wchar_t=yes
18327 else
18328 ac_c99_inttypes_wchar_t=no
18330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_inttypes_wchar_t" >&5
18332 $as_echo "$ac_c99_inttypes_wchar_t" >&6; }
18334 if test x"$ac_c99_inttypes_wchar_t" = x"yes"; then
18336 $as_echo "#define _GLIBCXX_USE_C99_INTTYPES_WCHAR_T 1" >>confdefs.h
18340 # Check for the existence of <math.h> generic macros used if C99 is enabled.
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 generic macro support in <math.h> for C++11" >&5
18342 $as_echo_n "checking for ISO C99 generic macro support in <math.h> for C++11... " >&6; }
18343 if ${glibcxx_cv_c99_math_cxx11+:} false; then :
18344 $as_echo_n "(cached) " >&6
18345 else
18347 if test x$gcc_no_link = xyes; then
18348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18349 /* end confdefs.h. */
18350 #include <math.h>
18351 volatile double d1, d2;
18352 volatile int i;
18354 main ()
18356 i = fpclassify(d1);
18357 i = isfinite(d1);
18358 i = isinf(d1);
18359 i = isnan(d1);
18360 i = isnormal(d1);
18361 i = signbit(d1);
18362 i = isgreater(d1, d2);
18363 i = isgreaterequal(d1, d2);
18364 i = isless(d1, d2);
18365 i = islessequal(d1, d2);
18366 i = islessgreater(d1, d2);
18367 i = islessgreater(d1, d2);
18368 i = isunordered(d1, d2);
18371 return 0;
18373 _ACEOF
18374 if ac_fn_cxx_try_compile "$LINENO"; then :
18375 glibcxx_cv_c99_math_cxx11=yes
18376 else
18377 glibcxx_cv_c99_math_cxx11=no
18379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18380 else
18381 if test x$gcc_no_link = xyes; then
18382 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18385 /* end confdefs.h. */
18386 #include <math.h>
18387 volatile double d1, d2;
18388 volatile int i;
18390 main ()
18392 i = fpclassify(d1);
18393 i = isfinite(d1);
18394 i = isinf(d1);
18395 i = isnan(d1);
18396 i = isnormal(d1);
18397 i = signbit(d1);
18398 i = isgreater(d1, d2);
18399 i = isgreaterequal(d1, d2);
18400 i = isless(d1, d2);
18401 i = islessequal(d1, d2);
18402 i = islessgreater(d1, d2);
18403 i = islessgreater(d1, d2);
18404 i = isunordered(d1, d2);
18407 return 0;
18409 _ACEOF
18410 if ac_fn_cxx_try_link "$LINENO"; then :
18411 glibcxx_cv_c99_math_cxx11=yes
18412 else
18413 glibcxx_cv_c99_math_cxx11=no
18415 rm -f core conftest.err conftest.$ac_objext \
18416 conftest$ac_exeext conftest.$ac_ext
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_math_cxx11" >&5
18421 $as_echo "$glibcxx_cv_c99_math_cxx11" >&6; }
18422 if test x"$glibcxx_cv_c99_math_cxx11" = x"yes"; then
18424 $as_echo "#define _GLIBCXX11_USE_C99_MATH 1" >>confdefs.h
18428 # Check for the existence of <math.h> typedefs.
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 float types for C++11 in <math.h>" >&5
18430 $as_echo_n "checking for ISO C99 float types for C++11 in <math.h>... " >&6; }
18431 if ${glibcxx_cv_c99_flt_eval_types+:} false; then :
18432 $as_echo_n "(cached) " >&6
18433 else
18435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18436 /* end confdefs.h. */
18437 #include <math.h>
18439 main ()
18441 // Types
18442 typedef double_t my_double_t;
18443 typedef float_t my_float_t;
18446 return 0;
18448 _ACEOF
18449 if ac_fn_cxx_try_compile "$LINENO"; then :
18450 glibcxx_cv_c99_flt_eval_types=yes
18451 else
18452 glibcxx_cv_c99_flt_eval_types=no
18454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_flt_eval_types" >&5
18458 $as_echo "$glibcxx_cv_c99_flt_eval_types" >&6; }
18459 if test x"$glibcxx_cv_c99_flt_eval_types" = x"yes"; then
18461 $as_echo "#define HAVE_C99_FLT_EVAL_TYPES 1" >>confdefs.h
18465 # Check for the existence of <math.h> functions.
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 function support for C++11 in <math.h>" >&5
18467 $as_echo_n "checking for ISO C99 function support for C++11 in <math.h>... " >&6; }
18468 if ${glibcxx_cv_c99_math_funcs+:} false; then :
18469 $as_echo_n "(cached) " >&6
18470 else
18472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18473 /* end confdefs.h. */
18474 #include <math.h>
18476 main ()
18479 // Hyperbolic
18480 acosh(0.0);
18481 acoshf(0.0f);
18482 acoshl(0.0l);
18483 asinh(0.0);
18484 asinhf(0.0f);
18485 asinhl(0.0l);
18486 atanh(0.0);
18487 atanhf(0.0f);
18488 atanhl(0.0l);
18489 // Exponential and logarithmic
18490 exp2(0.0);
18491 exp2f(0.0f);
18492 exp2l(0.0l);
18493 expm1(0.0);
18494 expm1f(0.0f);
18495 expm1l(0.0l);
18496 ilogb(0.0);
18497 ilogbf(0.0f);
18498 ilogbl(0.0l);
18499 log1p(0.0);
18500 log1pf(0.0f);
18501 log1pl(0.0l);
18502 log2(0.0);
18503 log2f(0.0f);
18504 log2l(0.0l);
18505 logb(0.0);
18506 logbf(0.0f);
18507 logbl(0.0l);
18508 scalbln(0.0, 0l);
18509 scalblnf(0.0f, 0l);
18510 scalblnl(0.0l, 0l);
18511 scalbn(0.0, 0);
18512 scalbnf(0.0f, 0);
18513 scalbnl(0.0l, 0);
18514 // Power and absolute-value
18515 cbrt(0.0);
18516 cbrtf(0.0f);
18517 cbrtl(0.0l);
18518 hypot(0.0, 0.0);
18519 hypotf(0.0f, 0.0f);
18520 hypotl(0.0l, 0.0l);
18521 // Error and gamma
18522 erf(0.0);
18523 erff(0.0f);
18524 erfl(0.0l);
18525 erfc(0.0);
18526 erfcf(0.0f);
18527 erfcl(0.0l);
18528 lgamma(0.0);
18529 lgammaf(0.0f);
18530 lgammal(0.0l);
18531 tgamma(0.0);
18532 tgammaf(0.0f);
18533 tgammal(0.0l);
18534 // Nearest integer
18535 nearbyint(0.0);
18536 nearbyintf(0.0f);
18537 nearbyintl(0.0l);
18538 rint(0.0);
18539 rintf(0.0f);
18540 rintl(0.0l);
18541 round(0.0);
18542 roundf(0.0f);
18543 roundl(0.0l);
18544 lrint(0.0);
18545 lrintf(0.0f);
18546 lrintl(0.0l);
18547 lround(0.0);
18548 lroundf(0.0f);
18549 lroundl(0.0l);
18550 #ifndef __APPLE__ /* see below */
18551 llrint(0.0);
18552 llrintf(0.0f);
18553 llrintl(0.0l);
18554 llround(0.0);
18555 llroundf(0.0f);
18556 llroundl(0.0l);
18557 #endif
18558 trunc(0.0);
18559 truncf(0.0f);
18560 truncl(0.0l);
18561 // Remainder
18562 remainder(0.0, 0.0);
18563 remainderf(0.0f, 0.0f);
18564 remainderl(0.0l, 0.0l);
18565 remquo(0.0, 0.0, 0);
18566 remquof(0.0f, 0.0f, 0);
18567 remquol(0.0l, 0.0l, 0);
18568 // Manipulation
18569 copysign(0.0, 0.0);
18570 copysignf(0.0f, 0.0f);
18571 copysignl(0.0l, 0.0l);
18572 nan("");
18573 nanf("");
18574 nanl("");
18575 nextafter(0.0, 0.0);
18576 nextafterf(0.0f, 0.0f);
18577 nextafterl(0.0l, 0.0l);
18578 nexttoward(0.0, 0.0);
18579 nexttowardf(0.0f, 0.0f);
18580 nexttowardl(0.0l, 0.0l);
18581 // Max, min, positive difference
18582 fdim(0.0, 0.0);
18583 fdimf(0.0f, 0.0f);
18584 fdiml(0.0l, 0.0l);
18585 fmax(0.0, 0.0);
18586 fmaxf(0.0f, 0.0f);
18587 fmaxl(0.0l, 0.0l);
18588 fmin(0.0, 0.0);
18589 fminf(0.0f, 0.0f);
18590 fminl(0.0l, 0.0l);
18591 // FP Multiply-add
18592 fma(0.0, 0.0, 0.0);
18593 fmaf(0.0f, 0.0f, 0.0f);
18594 fmal(0.0l, 0.0l, 0.0l);
18597 return 0;
18599 _ACEOF
18600 if ac_fn_cxx_try_compile "$LINENO"; then :
18601 glibcxx_cv_c99_math_funcs=yes
18602 else
18603 glibcxx_cv_c99_math_funcs=no
18605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_math_funcs" >&5
18609 $as_echo "$glibcxx_cv_c99_math_funcs" >&6; }
18610 if test x"$glibcxx_cv_c99_math_funcs" = x"yes"; then
18612 $as_echo "#define _GLIBCXX_USE_C99_MATH_FUNCS 1" >>confdefs.h
18615 case "${target_os}" in
18616 darwin*)
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 rounding functions in <math.h>" >&5
18618 $as_echo_n "checking for ISO C99 rounding functions in <math.h>... " >&6; }
18619 if ${glibcxx_cv_c99_math_llround+:} false; then :
18620 $as_echo_n "(cached) " >&6
18621 else
18623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18624 /* end confdefs.h. */
18625 #include <math.h>
18627 main ()
18629 llrint(0.0);
18630 llrintf(0.0f);
18631 llrintl(0.0l);
18632 llround(0.0);
18633 llroundf(0.0f);
18634 llroundl(0.0l);
18637 return 0;
18639 _ACEOF
18640 if ac_fn_cxx_try_compile "$LINENO"; then :
18641 glibcxx_cv_c99_math_llround=yes
18642 else
18643 glibcxx_cv_c99_math_llround=no
18645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_math_llround" >&5
18649 $as_echo "$glibcxx_cv_c99_math_llround" >&6; }
18651 esac
18652 if test x"$glibcxx_cv_c99_math_llround" = x"no"; then
18654 $as_echo "#define _GLIBCXX_NO_C99_ROUNDING_FUNCS 1" >>confdefs.h
18659 # Check for the existence of <complex.h> complex math functions.
18660 # This is necessary even though libstdc++ uses the builtin versions
18661 # of these functions, because if the builtin cannot be used, a reference
18662 # to the library function is emitted.
18663 for ac_header in tgmath.h
18664 do :
18665 ac_fn_cxx_check_header_mongrel "$LINENO" "tgmath.h" "ac_cv_header_tgmath_h" "$ac_includes_default"
18666 if test "x$ac_cv_header_tgmath_h" = xyes; then :
18667 cat >>confdefs.h <<_ACEOF
18668 #define HAVE_TGMATH_H 1
18669 _ACEOF
18670 ac_has_tgmath_h=yes
18671 else
18672 ac_has_tgmath_h=no
18675 done
18677 for ac_header in complex.h
18678 do :
18679 ac_fn_cxx_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
18680 if test "x$ac_cv_header_complex_h" = xyes; then :
18681 cat >>confdefs.h <<_ACEOF
18682 #define HAVE_COMPLEX_H 1
18683 _ACEOF
18684 ac_has_complex_h=yes
18685 else
18686 ac_has_complex_h=no
18689 done
18691 if test x"$ac_has_complex_h" = x"yes"; then
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <complex.h> for C++11" >&5
18693 $as_echo_n "checking for ISO C99 support in <complex.h> for C++11... " >&6; }
18694 if ${glibcxx_cv_c99_complex_cxx11+:} false; then :
18695 $as_echo_n "(cached) " >&6
18696 else
18698 if test x$gcc_no_link = xyes; then
18699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18700 /* end confdefs.h. */
18701 #include <complex.h>
18702 typedef __complex__ float float_type;
18703 typedef __complex__ double double_type;
18704 typedef __complex__ long double ld_type;
18705 volatile float_type tmpf;
18706 volatile double_type tmpd;
18707 volatile ld_type tmpld;
18708 volatile float f;
18709 volatile double d;
18710 volatile long double ld;
18712 main ()
18714 f = cabsf(tmpf);
18715 f = cargf(tmpf);
18716 tmpf = ccosf(tmpf);
18717 tmpf = ccoshf(tmpf);
18718 tmpf = cexpf(tmpf);
18719 tmpf = clogf(tmpf);
18720 tmpf = csinf(tmpf);
18721 tmpf = csinhf(tmpf);
18722 tmpf = csqrtf(tmpf);
18723 tmpf = ctanf(tmpf);
18724 tmpf = ctanhf(tmpf);
18725 tmpf = cpowf(tmpf, tmpf);
18726 tmpf = cprojf(tmpf);
18727 d = cabs(tmpd);
18728 d = carg(tmpd);
18729 tmpd = ccos(tmpd);
18730 tmpd = ccosh(tmpd);
18731 tmpd = cexp(tmpd);
18732 tmpd = clog(tmpd);
18733 tmpd = csin(tmpd);
18734 tmpd = csinh(tmpd);
18735 tmpd = csqrt(tmpd);
18736 tmpd = ctan(tmpd);
18737 tmpd = ctanh(tmpd);
18738 tmpd = cpow(tmpd, tmpd);
18739 tmpd = cproj(tmpd);
18740 ld = cabsl(tmpld);
18741 ld = cargl(tmpld);
18742 tmpld = ccosl(tmpld);
18743 tmpld = ccoshl(tmpld);
18744 tmpld = cexpl(tmpld);
18745 tmpld = clogl(tmpld);
18746 tmpld = csinl(tmpld);
18747 tmpld = csinhl(tmpld);
18748 tmpld = csqrtl(tmpld);
18749 tmpld = ctanl(tmpld);
18750 tmpld = ctanhl(tmpld);
18751 tmpld = cpowl(tmpld, tmpld);
18752 tmpld = cprojl(tmpld);
18755 return 0;
18757 _ACEOF
18758 if ac_fn_cxx_try_compile "$LINENO"; then :
18759 glibcxx_cv_c99_complex_cxx11=yes
18760 else
18761 glibcxx_cv_c99_complex_cxx11=no
18763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18764 else
18765 if test x$gcc_no_link = xyes; then
18766 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18769 /* end confdefs.h. */
18770 #include <complex.h>
18771 typedef __complex__ float float_type;
18772 typedef __complex__ double double_type;
18773 typedef __complex__ long double ld_type;
18774 volatile float_type tmpf;
18775 volatile double_type tmpd;
18776 volatile ld_type tmpld;
18777 volatile float f;
18778 volatile double d;
18779 volatile long double ld;
18781 main ()
18783 f = cabsf(tmpf);
18784 f = cargf(tmpf);
18785 tmpf = ccosf(tmpf);
18786 tmpf = ccoshf(tmpf);
18787 tmpf = cexpf(tmpf);
18788 tmpf = clogf(tmpf);
18789 tmpf = csinf(tmpf);
18790 tmpf = csinhf(tmpf);
18791 tmpf = csqrtf(tmpf);
18792 tmpf = ctanf(tmpf);
18793 tmpf = ctanhf(tmpf);
18794 tmpf = cpowf(tmpf, tmpf);
18795 tmpf = cprojf(tmpf);
18796 d = cabs(tmpd);
18797 d = carg(tmpd);
18798 tmpd = ccos(tmpd);
18799 tmpd = ccosh(tmpd);
18800 tmpd = cexp(tmpd);
18801 tmpd = clog(tmpd);
18802 tmpd = csin(tmpd);
18803 tmpd = csinh(tmpd);
18804 tmpd = csqrt(tmpd);
18805 tmpd = ctan(tmpd);
18806 tmpd = ctanh(tmpd);
18807 tmpd = cpow(tmpd, tmpd);
18808 tmpd = cproj(tmpd);
18809 ld = cabsl(tmpld);
18810 ld = cargl(tmpld);
18811 tmpld = ccosl(tmpld);
18812 tmpld = ccoshl(tmpld);
18813 tmpld = cexpl(tmpld);
18814 tmpld = clogl(tmpld);
18815 tmpld = csinl(tmpld);
18816 tmpld = csinhl(tmpld);
18817 tmpld = csqrtl(tmpld);
18818 tmpld = ctanl(tmpld);
18819 tmpld = ctanhl(tmpld);
18820 tmpld = cpowl(tmpld, tmpld);
18821 tmpld = cprojl(tmpld);
18824 return 0;
18826 _ACEOF
18827 if ac_fn_cxx_try_link "$LINENO"; then :
18828 glibcxx_cv_c99_complex_cxx11=yes
18829 else
18830 glibcxx_cv_c99_complex_cxx11=no
18832 rm -f core conftest.err conftest.$ac_objext \
18833 conftest$ac_exeext conftest.$ac_ext
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_complex_cxx11" >&5
18838 $as_echo "$glibcxx_cv_c99_complex_cxx11" >&6; }
18840 if test x"$glibcxx_cv_c99_complex_cxx11" = x"yes"; then
18842 $as_echo "#define _GLIBCXX11_USE_C99_COMPLEX 1" >>confdefs.h
18846 # Check for the existence of <complex.h> complex inverse trigonometric
18847 # math functions used by <complex> for C++11 and later.
18848 ac_c99_complex_arc=no;
18849 if test x"$ac_has_complex_h" = x"yes"; then
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support for inverse trig functions in <complex.h>" >&5
18851 $as_echo_n "checking for ISO C99 support for inverse trig functions in <complex.h>... " >&6; }
18852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18853 /* end confdefs.h. */
18854 #include <complex.h>
18856 main ()
18858 typedef __complex__ float float_type; float_type tmpf;
18859 cacosf(tmpf);
18860 casinf(tmpf);
18861 catanf(tmpf);
18862 cacoshf(tmpf);
18863 casinhf(tmpf);
18864 catanhf(tmpf);
18865 typedef __complex__ double double_type; double_type tmpd;
18866 cacos(tmpd);
18867 casin(tmpd);
18868 catan(tmpd);
18869 cacosh(tmpd);
18870 casinh(tmpd);
18871 catanh(tmpd);
18872 typedef __complex__ long double ld_type; ld_type tmpld;
18873 cacosl(tmpld);
18874 casinl(tmpld);
18875 catanl(tmpld);
18876 cacoshl(tmpld);
18877 casinhl(tmpld);
18878 catanhl(tmpld);
18881 return 0;
18883 _ACEOF
18884 if ac_fn_cxx_try_compile "$LINENO"; then :
18885 ac_c99_complex_arc=yes
18886 else
18887 ac_c99_complex_arc=no
18889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_complex_arc" >&5
18892 $as_echo "$ac_c99_complex_arc" >&6; }
18893 if test x"$ac_c99_complex_arc" = x"yes"; then
18895 $as_echo "#define _GLIBCXX_USE_C99_COMPLEX_ARC 1" >>confdefs.h
18899 # Check for the existence in <stdio.h> of vscanf, et. al.
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <stdio.h> for C++11" >&5
18901 $as_echo_n "checking for ISO C99 support in <stdio.h> for C++11... " >&6; }
18902 if ${glibcxx_cv_c99_stdio_cxx11+:} false; then :
18903 $as_echo_n "(cached) " >&6
18904 else
18906 if test x$gcc_no_link = xyes; then
18907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18908 /* end confdefs.h. */
18909 #include <stdio.h>
18910 #include <stdarg.h>
18911 void foo(char* fmt, ...)
18913 va_list args; va_start(args, fmt);
18914 vfscanf(stderr, "%i", args);
18915 vscanf("%i", args);
18916 vsnprintf(fmt, 0, "%i", args);
18917 vsscanf(fmt, "%i", args);
18918 snprintf(fmt, 0, "%i", 1);
18921 main ()
18925 return 0;
18927 _ACEOF
18928 if ac_fn_cxx_try_compile "$LINENO"; then :
18929 glibcxx_cv_c99_stdio_cxx11=yes
18930 else
18931 glibcxx_cv_c99_stdio_cxx11=no
18933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18934 else
18935 if test x$gcc_no_link = xyes; then
18936 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18939 /* end confdefs.h. */
18940 #include <stdio.h>
18941 #include <stdarg.h>
18942 void foo(char* fmt, ...)
18944 va_list args; va_start(args, fmt);
18945 vfscanf(stderr, "%i", args);
18946 vscanf("%i", args);
18947 vsnprintf(fmt, 0, "%i", args);
18948 vsscanf(fmt, "%i", args);
18949 snprintf(fmt, 0, "%i", 1);
18952 main ()
18956 return 0;
18958 _ACEOF
18959 if ac_fn_cxx_try_link "$LINENO"; then :
18960 glibcxx_cv_c99_stdio_cxx11=yes
18961 else
18962 glibcxx_cv_c99_stdio_cxx11=no
18964 rm -f core conftest.err conftest.$ac_objext \
18965 conftest$ac_exeext conftest.$ac_ext
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdio_cxx11" >&5
18970 $as_echo "$glibcxx_cv_c99_stdio_cxx11" >&6; }
18971 if test x"$glibcxx_cv_c99_stdio_cxx11" = x"yes"; then
18973 $as_echo "#define _GLIBCXX11_USE_C99_STDIO 1" >>confdefs.h
18977 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <stdlib.h> for C++11" >&5
18979 $as_echo_n "checking for ISO C99 support in <stdlib.h> for C++11... " >&6; }
18980 if ${glibcxx_cv_c99_stdlib_cxx11+:} false; then :
18981 $as_echo_n "(cached) " >&6
18982 else
18984 if test x$gcc_no_link = xyes; then
18985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18986 /* end confdefs.h. */
18987 #include <stdlib.h>
18988 volatile float f;
18989 volatile long double ld;
18990 volatile unsigned long long ll;
18991 lldiv_t mydivt;
18993 main ()
18995 char* tmp;
18996 f = strtof("gnu", &tmp);
18997 ld = strtold("gnu", &tmp);
18998 ll = strtoll("gnu", &tmp, 10);
18999 ll = strtoull("gnu", &tmp, 10);
19000 ll = llabs(10);
19001 mydivt = lldiv(10,1);
19002 ll = mydivt.quot;
19003 ll = mydivt.rem;
19004 ll = atoll("10");
19005 _Exit(0);
19008 return 0;
19010 _ACEOF
19011 if ac_fn_cxx_try_compile "$LINENO"; then :
19012 glibcxx_cv_c99_stdlib_cxx11=yes
19013 else
19014 glibcxx_cv_c99_stdlib_cxx11=no
19016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19017 else
19018 if test x$gcc_no_link = xyes; then
19019 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19022 /* end confdefs.h. */
19023 #include <stdlib.h>
19024 volatile float f;
19025 volatile long double ld;
19026 volatile unsigned long long ll;
19027 lldiv_t mydivt;
19029 main ()
19031 char* tmp;
19032 f = strtof("gnu", &tmp);
19033 ld = strtold("gnu", &tmp);
19034 ll = strtoll("gnu", &tmp, 10);
19035 ll = strtoull("gnu", &tmp, 10);
19036 ll = llabs(10);
19037 mydivt = lldiv(10,1);
19038 ll = mydivt.quot;
19039 ll = mydivt.rem;
19040 ll = atoll("10");
19041 _Exit(0);
19044 return 0;
19046 _ACEOF
19047 if ac_fn_cxx_try_link "$LINENO"; then :
19048 glibcxx_cv_c99_stdlib_cxx11=yes
19049 else
19050 glibcxx_cv_c99_stdlib_cxx11=no
19052 rm -f core conftest.err conftest.$ac_objext \
19053 conftest$ac_exeext conftest.$ac_ext
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdlib_cxx11" >&5
19058 $as_echo "$glibcxx_cv_c99_stdlib_cxx11" >&6; }
19059 if test x"$glibcxx_cv_c99_stdlib_cxx11" = x"yes"; then
19061 $as_echo "#define _GLIBCXX11_USE_C99_STDLIB 1" >>confdefs.h
19065 # Check for the existence in <wchar.h> of wcstold, etc.
19066 if test x"$ac_has_wchar_h" = xyes &&
19067 test x"$ac_has_wctype_h" = xyes; then
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support in <wchar.h> for C++11" >&5
19069 $as_echo_n "checking for ISO C99 support in <wchar.h> for C++11... " >&6; }
19070 if ${glibcxx_cv_c99_wchar_cxx11+:} false; then :
19071 $as_echo_n "(cached) " >&6
19072 else
19074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19075 /* end confdefs.h. */
19076 #include <wchar.h>
19077 namespace test
19079 using ::wcstold;
19080 using ::wcstoll;
19081 using ::wcstoull;
19085 main ()
19089 return 0;
19091 _ACEOF
19092 if ac_fn_cxx_try_compile "$LINENO"; then :
19093 glibcxx_cv_c99_wchar_cxx11=yes
19094 else
19095 glibcxx_cv_c99_wchar_cxx11=no
19097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_wchar_cxx11" >&5
19101 $as_echo "$glibcxx_cv_c99_wchar_cxx11" >&6; }
19103 # Checks for wide character functions that may not be present.
19104 # Injection of these is wrapped with guard macros.
19105 # NB: only put functions here, instead of immediately above, if
19106 # absolutely necessary.
19107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19108 /* end confdefs.h. */
19109 #include <wchar.h>
19110 namespace test { using ::vfwscanf; }
19112 main ()
19116 return 0;
19118 _ACEOF
19119 if ac_fn_cxx_try_compile "$LINENO"; then :
19121 $as_echo "#define HAVE_VFWSCANF 1" >>confdefs.h
19124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19127 /* end confdefs.h. */
19128 #include <wchar.h>
19129 namespace test { using ::vswscanf; }
19131 main ()
19135 return 0;
19137 _ACEOF
19138 if ac_fn_cxx_try_compile "$LINENO"; then :
19140 $as_echo "#define HAVE_VSWSCANF 1" >>confdefs.h
19143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19146 /* end confdefs.h. */
19147 #include <wchar.h>
19148 namespace test { using ::vwscanf; }
19150 main ()
19154 return 0;
19156 _ACEOF
19157 if ac_fn_cxx_try_compile "$LINENO"; then :
19159 $as_echo "#define HAVE_VWSCANF 1" >>confdefs.h
19162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19165 /* end confdefs.h. */
19166 #include <wchar.h>
19167 namespace test { using ::wcstof; }
19169 main ()
19173 return 0;
19175 _ACEOF
19176 if ac_fn_cxx_try_compile "$LINENO"; then :
19178 $as_echo "#define HAVE_WCSTOF 1" >>confdefs.h
19181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19184 /* end confdefs.h. */
19185 #include <wctype.h>
19187 main ()
19189 wint_t t; int i = iswblank(t);
19191 return 0;
19193 _ACEOF
19194 if ac_fn_cxx_try_compile "$LINENO"; then :
19196 $as_echo "#define HAVE_ISWBLANK 1" >>confdefs.h
19199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19201 if test x"$glibcxx_cv_c99_wchar_cxx11" = x"yes"; then
19203 $as_echo "#define _GLIBCXX11_USE_C99_WCHAR 1" >>confdefs.h
19208 # Check for the existence of <ctype.h> functions.
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support for C++11 in <ctype.h>" >&5
19210 $as_echo_n "checking for ISO C99 support for C++11 in <ctype.h>... " >&6; }
19211 if ${glibcxx_cv_c99_ctype+:} false; then :
19212 $as_echo_n "(cached) " >&6
19213 else
19215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19216 /* end confdefs.h. */
19217 #include <ctype.h>
19219 main ()
19221 int ch;
19222 int ret;
19223 ret = isblank(ch);
19226 return 0;
19228 _ACEOF
19229 if ac_fn_cxx_try_compile "$LINENO"; then :
19230 glibcxx_cv_c99_ctype=yes
19231 else
19232 glibcxx_cv_c99_ctype=no
19234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_ctype" >&5
19238 $as_echo "$glibcxx_cv_c99_ctype" >&6; }
19239 if test x"$glibcxx_cv_c99_ctype" = x"yes"; then
19241 $as_echo "#define _GLIBCXX_USE_C99_CTYPE 1" >>confdefs.h
19245 # Check for the existence of <fenv.h> functions.
19246 for ac_header in fenv.h
19247 do :
19248 ac_fn_cxx_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
19249 if test "x$ac_cv_header_fenv_h" = xyes; then :
19250 cat >>confdefs.h <<_ACEOF
19251 #define HAVE_FENV_H 1
19252 _ACEOF
19253 ac_has_fenv_h=yes
19254 else
19255 ac_has_fenv_h=no
19258 done
19260 ac_c99_fenv=no;
19261 if test x"$ac_has_fenv_h" = x"yes"; then
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support for C++11 in <fenv.h>" >&5
19263 $as_echo_n "checking for ISO C99 support for C++11 in <fenv.h>... " >&6; }
19264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19265 /* end confdefs.h. */
19266 #include <fenv.h>
19268 main ()
19270 int except, mode;
19271 fexcept_t* pflag;
19272 fenv_t* penv;
19273 int ret;
19274 ret = feclearexcept(except);
19275 ret = fegetexceptflag(pflag, except);
19276 ret = feraiseexcept(except);
19277 ret = fesetexceptflag(pflag, except);
19278 ret = fetestexcept(except);
19279 ret = fegetround();
19280 ret = fesetround(mode);
19281 ret = fegetenv(penv);
19282 ret = feholdexcept(penv);
19283 ret = fesetenv(penv);
19284 ret = feupdateenv(penv);
19287 return 0;
19289 _ACEOF
19290 if ac_fn_cxx_try_compile "$LINENO"; then :
19291 ac_c99_fenv=yes
19292 else
19293 ac_c99_fenv=no
19295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_fenv" >&5
19297 $as_echo "$ac_c99_fenv" >&6; }
19299 if test x"$ac_c99_fenv" = x"yes"; then
19301 $as_echo "#define _GLIBCXX_USE_C99_FENV 1" >>confdefs.h
19305 gcc_no_link="$ac_save_gcc_no_link"
19306 LIBS="$ac_save_LIBS"
19307 CXXFLAGS="$ac_save_CXXFLAGS"
19308 ac_ext=c
19309 ac_cpp='$CPP $CPPFLAGS'
19310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fully enabled ISO C99 support" >&5
19317 $as_echo_n "checking for fully enabled ISO C99 support... " >&6; }
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_c99" >&5
19319 $as_echo "$enable_c99" >&6; }
19322 # Check whether --enable-concept-checks was given.
19323 if test "${enable_concept_checks+set}" = set; then :
19324 enableval=$enable_concept_checks;
19325 case "$enableval" in
19326 yes|no) ;;
19327 *) as_fn_error $? "Argument to enable/disable concept-checks must be yes or no" "$LINENO" 5 ;;
19328 esac
19330 else
19331 enable_concept_checks=no
19335 if test $enable_concept_checks = yes; then
19337 $as_echo "#define _GLIBCXX_CONCEPT_CHECKS 1" >>confdefs.h
19342 # Check whether --enable-libstdcxx-debug-flags was given.
19343 if test "${enable_libstdcxx_debug_flags+set}" = set; then :
19344 enableval=$enable_libstdcxx_debug_flags; case "x$enable_libstdcxx_debug_flags" in
19345 xno | x) enable_libstdcxx_debug_flags= ;;
19346 x-*) ;;
19347 *) as_fn_error $? "--enable-libstdcxx-debug-flags needs compiler flags as arguments" "$LINENO" 5 ;;
19348 esac
19349 else
19350 enable_libstdcxx_debug_flags="-g3 -O0 -D_GLIBCXX_ASSERTIONS"
19355 # Option parsed, now set things appropriately
19356 DEBUG_FLAGS="$enable_libstdcxx_debug_flags"
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: Debug build flags set to $DEBUG_FLAGS" >&5
19360 $as_echo "$as_me: Debug build flags set to $DEBUG_FLAGS" >&6;}
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional debug build" >&5
19364 $as_echo_n "checking for additional debug build... " >&6; }
19365 skip_debug_build=
19366 # Check whether --enable-libstdcxx-debug was given.
19367 if test "${enable_libstdcxx_debug+set}" = set; then :
19368 enableval=$enable_libstdcxx_debug;
19369 case "$enableval" in
19370 yes|no) ;;
19371 *) as_fn_error $? "Argument to enable/disable libstdcxx-debug must be yes or no" "$LINENO" 5 ;;
19372 esac
19374 else
19375 enable_libstdcxx_debug=no
19379 if test x$enable_libstdcxx_debug = xyes; then
19380 if test -f $toplevel_builddir/../stage_final \
19381 && test -f $toplevel_builddir/../stage_current; then
19382 stage_final=`cat $toplevel_builddir/../stage_final`
19383 stage_current=`cat $toplevel_builddir/../stage_current`
19384 if test x$stage_current != x$stage_final ; then
19385 skip_debug_build=" (skipped for bootstrap stage $stage_current)"
19386 enable_libstdcxx_debug=no
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_debug$skip_debug_build" >&5
19391 $as_echo "$enable_libstdcxx_debug$skip_debug_build" >&6; }
19396 enable_parallel=no;
19398 # See if configured libgomp/omp.h exists. (libgomp may be in
19399 # noconfigdirs but not explicitly disabled.)
19400 if echo " ${TARGET_CONFIGDIRS} " | grep " libgomp " > /dev/null 2>&1 ; then
19401 enable_parallel=yes;
19402 else
19403 { $as_echo "$as_me:${as_lineno-$LINENO}: target-libgomp not built" >&5
19404 $as_echo "$as_me: target-libgomp not built" >&6;}
19407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parallel mode support" >&5
19408 $as_echo_n "checking for parallel mode support... " >&6; }
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_parallel" >&5
19410 $as_echo "$enable_parallel" >&6; }
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra compiler flags for building" >&5
19413 $as_echo_n "checking for extra compiler flags for building... " >&6; }
19414 # Check whether --enable-cxx-flags was given.
19415 if test "${enable_cxx_flags+set}" = set; then :
19416 enableval=$enable_cxx_flags; case "x$enable_cxx_flags" in
19417 xno | x) enable_cxx_flags= ;;
19418 x-*) ;;
19419 *) as_fn_error $? "--enable-cxx-flags needs compiler flags as arguments" "$LINENO" 5 ;;
19420 esac
19421 else
19422 enable_cxx_flags=
19427 # Run through flags (either default or command-line) and set anything
19428 # extra (e.g., #defines) that must accompany particular g++ options.
19429 if test -n "$enable_cxx_flags"; then
19430 for f in $enable_cxx_flags; do
19431 case "$f" in
19432 -fhonor-std) ;;
19433 -*) ;;
19434 *) # and we're trying to pass /what/ exactly?
19435 as_fn_error $? "compiler flags start with a -" "$LINENO" 5 ;;
19436 esac
19437 done
19440 EXTRA_CXX_FLAGS="$enable_cxx_flags"
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_CXX_FLAGS" >&5
19442 $as_echo "$EXTRA_CXX_FLAGS" >&6; }
19446 # Check whether --enable-fully-dynamic-string was given.
19447 if test "${enable_fully_dynamic_string+set}" = set; then :
19448 enableval=$enable_fully_dynamic_string;
19449 case "$enableval" in
19450 yes|no) ;;
19451 *) as_fn_error $? "Unknown argument to enable/disable fully-dynamic-string" "$LINENO" 5 ;;
19452 esac
19454 else
19455 enable_fully_dynamic_string=no
19459 if test $enable_fully_dynamic_string = yes; then
19460 enable_fully_dynamic_string_def=1
19461 else
19462 enable_fully_dynamic_string_def=0
19465 cat >>confdefs.h <<_ACEOF
19466 #define _GLIBCXX_FULLY_DYNAMIC_STRING ${enable_fully_dynamic_string_def}
19467 _ACEOF
19472 # Check whether --enable-extern-template was given.
19473 if test "${enable_extern_template+set}" = set; then :
19474 enableval=$enable_extern_template;
19475 case "$enableval" in
19476 yes|no) ;;
19477 *) as_fn_error $? "Argument to enable/disable extern-template must be yes or no" "$LINENO" 5 ;;
19478 esac
19480 else
19481 enable_extern_template=yes
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extern template support" >&5
19487 $as_echo_n "checking for extern template support... " >&6; }
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_extern_template" >&5
19489 $as_echo "$enable_extern_template" >&6; }
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for custom python install directory" >&5
19496 $as_echo_n "checking for custom python install directory... " >&6; }
19498 # Check whether --with-python-dir was given.
19499 if test "${with_python_dir+set}" = set; then :
19500 withval=$with_python_dir; with_python_dir=$withval
19501 else
19502 with_python_dir="no"
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_python_dir}" >&5
19506 $as_echo "${with_python_dir}" >&6; }
19508 # Needed for installing Python modules during make install.
19509 python_mod_dir="${with_python_dir}"
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Werror" >&5
19515 $as_echo_n "checking for -Werror... " >&6; }
19516 # Check whether --enable-werror was given.
19517 if test "${enable_werror+set}" = set; then :
19518 enableval=$enable_werror;
19519 case "$enableval" in
19520 yes|no) ;;
19521 *) as_fn_error $? "Argument to enable/disable werror must be yes or no" "$LINENO" 5 ;;
19522 esac
19524 else
19525 enable_werror=no
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_werror" >&5
19530 $as_echo "$enable_werror" >&6; }
19535 # Check whether --enable-vtable-verify was given.
19536 if test "${enable_vtable_verify+set}" = set; then :
19537 enableval=$enable_vtable_verify;
19538 case "$enableval" in
19539 yes|no) ;;
19540 *) as_fn_error $? "Argument to enable/disable vtable-verify must be yes or no" "$LINENO" 5 ;;
19541 esac
19543 else
19544 enable_vtable_verify=no
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vtable verify support" >&5
19550 $as_echo_n "checking for vtable verify support... " >&6; }
19551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
19552 $as_echo "$enable_vtable_verify" >&6; }
19554 vtv_cygmin=no
19555 if test $enable_vtable_verify = yes; then
19556 case ${target_os} in
19557 cygwin*|mingw32*)
19558 VTV_CXXFLAGS="-fvtable-verify=std -Wl,-lvtv,-u_vtable_map_vars_start,-u_vtable_map_vars_end"
19559 VTV_CXXLINKFLAGS="-L${toplevel_builddir}/libvtv/.libs -Wl,--rpath -Wl,${toplevel_builddir}/libvtv/.libs"
19560 vtv_cygmin=yes
19562 darwin*)
19563 VTV_CXXFLAGS="-fvtable-verify=std -Wl,-u,_vtable_map_vars_start -Wl,-u,_vtable_map_vars_end"
19564 VTV_CXXLINKFLAGS="-L${toplevel_builddir}/libvtv/.libs -Wl,-rpath,${toplevel_builddir}/libvtv/.libs"
19566 solaris2*)
19567 VTV_CXXFLAGS="-fvtable-verify=std -Wl,-u_vtable_map_vars_start,-u_vtable_map_vars_end"
19568 VTV_CXXLINKFLAGS="-L${toplevel_builddir}/libvtv/.libs -Wl,-R -Wl,${toplevel_builddir}/libvtv/.libs"
19571 VTV_CXXFLAGS="-fvtable-verify=std -Wl,-u_vtable_map_vars_start,-u_vtable_map_vars_end"
19572 VTV_CXXLINKFLAGS="-L${toplevel_builddir}/libvtv/.libs -Wl,--rpath -Wl,${toplevel_builddir}/libvtv/.libs"
19574 esac
19575 VTV_PCH_CXXFLAGS="-fvtable-verify=std"
19576 else
19577 VTV_CXXFLAGS=
19578 VTV_PCH_CXXFLAGS=
19579 VTV_CXXLINKFLAGS=
19585 if test x$vtv_cygmin = xyes; then
19586 VTV_CYGMIN_TRUE=
19587 VTV_CYGMIN_FALSE='#'
19588 else
19589 VTV_CYGMIN_TRUE='#'
19590 VTV_CYGMIN_FALSE=
19596 # Checks for operating systems support that doesn't require linking.
19600 ac_ext=cpp
19601 ac_cpp='$CXXCPP $CPPFLAGS'
19602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19606 # Use C++11 because a conforming <stdio.h> won't define gets for C++14,
19607 # and we don't need a declaration for C++14 anyway.
19608 ac_save_CXXFLAGS="$CXXFLAGS"
19609 CXXFLAGS="$CXXFLAGS -std=gnu++11"
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gets declaration" >&5
19612 $as_echo_n "checking for gets declaration... " >&6; }
19613 if ${glibcxx_cv_gets+:} false; then :
19614 $as_echo_n "(cached) " >&6
19615 else
19617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19618 /* end confdefs.h. */
19619 #include <stdio.h>
19620 namespace test
19622 using ::gets;
19625 _ACEOF
19626 if ac_fn_cxx_try_compile "$LINENO"; then :
19627 glibcxx_cv_gets=yes
19628 else
19629 glibcxx_cv_gets=no
19632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_gets" >&5
19635 $as_echo "$glibcxx_cv_gets" >&6; }
19637 if test $glibcxx_cv_gets = yes; then
19639 $as_echo "#define HAVE_GETS 1" >>confdefs.h
19643 CXXFLAGS="$ac_save_CXXFLAGS"
19644 ac_ext=c
19645 ac_cpp='$CPP $CPPFLAGS'
19646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19654 ac_ext=cpp
19655 ac_cpp='$CXXCPP $CPPFLAGS'
19656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19660 ac_save_CXXFLAGS="$CXXFLAGS"
19661 CXXFLAGS="$CXXFLAGS -std=c++11"
19663 case "$host" in
19664 *-*-solaris2.*)
19665 # Solaris 12 Build 86, Solaris 11.3 SRU 3.6, and Solaris 10 Patch
19666 # 11996[67]-02 introduced the C++11 <math.h> floating point overloads.
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++11 <math.h> floating point overloads" >&5
19668 $as_echo_n "checking for C++11 <math.h> floating point overloads... " >&6; }
19669 if ${glibcxx_cv_math11_fp_overload+:} false; then :
19670 $as_echo_n "(cached) " >&6
19671 else
19673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19674 /* end confdefs.h. */
19675 #include <math.h>
19676 #undef isfinite
19677 namespace std {
19678 inline bool isfinite(float __x)
19679 { return __builtin_isfinite(__x); }
19682 _ACEOF
19683 if ac_fn_cxx_try_compile "$LINENO"; then :
19684 glibcxx_cv_math11_fp_overload=no
19685 else
19686 glibcxx_cv_math11_fp_overload=yes
19689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_math11_fp_overload" >&5
19692 $as_echo "$glibcxx_cv_math11_fp_overload" >&6; }
19694 # autoheader cannot handle indented templates.
19697 if test $glibcxx_cv_math11_fp_overload = yes; then
19698 $as_echo "#define __CORRECT_ISO_CPP11_MATH_H_PROTO_FP 1" >>confdefs.h
19702 # Solaris 12 Build 90, Solaris 11.3 SRU 5.6, and Solaris 10 Patch
19703 # 11996[67]-02 introduced the C++11 <math.h> integral type overloads.
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++11 <math.h> integral type overloads" >&5
19705 $as_echo_n "checking for C++11 <math.h> integral type overloads... " >&6; }
19706 if ${glibcxx_cv_math11_int_overload+:} false; then :
19707 $as_echo_n "(cached) " >&6
19708 else
19710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19711 /* end confdefs.h. */
19712 #include <math.h>
19713 namespace std {
19714 template<typename _Tp>
19715 struct __is_integer;
19716 template<>
19717 struct __is_integer<int>
19719 enum { __value = 1 };
19722 namespace __gnu_cxx {
19723 template<bool, typename>
19724 struct __enable_if;
19725 template<typename _Tp>
19726 struct __enable_if<true, _Tp>
19727 { typedef _Tp __type; };
19729 namespace std {
19730 template<typename _Tp>
19731 constexpr typename __gnu_cxx::__enable_if
19732 <__is_integer<_Tp>::__value, double>::__type
19733 log2(_Tp __x)
19734 { return __builtin_log2(__x); }
19737 main (void)
19739 int i = 1000;
19740 return std::log2(i);
19743 _ACEOF
19744 if ac_fn_cxx_try_compile "$LINENO"; then :
19745 glibcxx_cv_math11_int_overload=no
19746 else
19747 glibcxx_cv_math11_int_overload=yes
19750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_math11_int_overload" >&5
19753 $as_echo "$glibcxx_cv_math11_int_overload" >&6; }
19755 # autoheader cannot handle indented templates.
19758 if test $glibcxx_cv_math11_int_overload = yes; then
19759 $as_echo "#define __CORRECT_ISO_CPP11_MATH_H_PROTO_INT 1" >>confdefs.h
19764 # If <math.h> defines the obsolete isinf(double) and isnan(double)
19765 # functions (instead of or as well as the C99 generic macros) then we
19766 # can't define std::isinf(double) and std::isnan(double) in <cmath>
19767 # and must use the ones from <math.h> instead.
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete isinf function in <math.h>" >&5
19769 $as_echo_n "checking for obsolete isinf function in <math.h>... " >&6; }
19770 if ${glibcxx_cv_obsolete_isinf+:} false; then :
19771 $as_echo_n "(cached) " >&6
19772 else
19774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19775 /* end confdefs.h. */
19776 #define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
19777 #include <math.h>
19778 #undef isinf
19779 namespace std {
19780 using ::isinf;
19781 bool isinf(float);
19782 bool isinf(long double);
19784 using std::isinf;
19785 bool b = isinf(0.0);
19787 _ACEOF
19788 if ac_fn_cxx_try_compile "$LINENO"; then :
19789 glibcxx_cv_obsolete_isinf=yes
19790 else
19791 glibcxx_cv_obsolete_isinf=no
19794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_obsolete_isinf" >&5
19797 $as_echo "$glibcxx_cv_obsolete_isinf" >&6; }
19798 if test $glibcxx_cv_obsolete_isinf = yes; then
19800 $as_echo "#define HAVE_OBSOLETE_ISINF 1" >>confdefs.h
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obsolete isnan function in <math.h>" >&5
19805 $as_echo_n "checking for obsolete isnan function in <math.h>... " >&6; }
19806 if ${glibcxx_cv_obsolete_isnan+:} false; then :
19807 $as_echo_n "(cached) " >&6
19808 else
19810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19811 /* end confdefs.h. */
19812 #define _GLIBCXX_INCLUDE_NEXT_C_HEADERS
19813 #include <math.h>
19814 #undef isnan
19815 namespace std {
19816 using ::isnan;
19817 bool isnan(float);
19818 bool isnan(long double);
19820 using std::isnan;
19821 bool b = isnan(0.0);
19823 _ACEOF
19824 if ac_fn_cxx_try_compile "$LINENO"; then :
19825 glibcxx_cv_obsolete_isnan=yes
19826 else
19827 glibcxx_cv_obsolete_isnan=no
19830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_obsolete_isnan" >&5
19833 $as_echo "$glibcxx_cv_obsolete_isnan" >&6; }
19834 if test $glibcxx_cv_obsolete_isnan = yes; then
19836 $as_echo "#define HAVE_OBSOLETE_ISNAN 1" >>confdefs.h
19840 esac
19842 CXXFLAGS="$ac_save_CXXFLAGS"
19843 ac_ext=c
19844 ac_cpp='$CPP $CPPFLAGS'
19845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19852 # Test uchar.h.
19853 for ac_header in uchar.h
19854 do :
19855 ac_fn_c_check_header_mongrel "$LINENO" "uchar.h" "ac_cv_header_uchar_h" "$ac_includes_default"
19856 if test "x$ac_cv_header_uchar_h" = xyes; then :
19857 cat >>confdefs.h <<_ACEOF
19858 #define HAVE_UCHAR_H 1
19859 _ACEOF
19860 ac_has_uchar_h=yes
19861 else
19862 ac_has_uchar_h=no
19865 done
19869 ac_ext=cpp
19870 ac_cpp='$CXXCPP $CPPFLAGS'
19871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19875 ac_save_CXXFLAGS="$CXXFLAGS"
19876 CXXFLAGS="$CXXFLAGS -std=c++11"
19878 if test x"$ac_has_uchar_h" = x"yes"; then
19879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C11 support for <uchar.h>" >&5
19880 $as_echo_n "checking for ISO C11 support for <uchar.h>... " >&6; }
19881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19882 /* end confdefs.h. */
19883 #include <uchar.h>
19884 #ifdef __STDC_UTF_16__
19885 long i = __STDC_UTF_16__;
19886 #endif
19887 #ifdef __STDC_UTF_32__
19888 long j = __STDC_UTF_32__;
19889 #endif
19890 namespace test
19892 using ::c16rtomb;
19893 using ::c32rtomb;
19894 using ::mbrtoc16;
19895 using ::mbrtoc32;
19899 main ()
19903 return 0;
19905 _ACEOF
19906 if ac_fn_cxx_try_compile "$LINENO"; then :
19907 ac_c11_uchar_cxx11=yes
19908 else
19909 ac_c11_uchar_cxx11=no
19911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c11_uchar_cxx11" >&5
19913 $as_echo "$ac_c11_uchar_cxx11" >&6; }
19914 else
19915 ac_c11_uchar_cxx11=no
19917 if test x"$ac_c11_uchar_cxx11" = x"yes"; then
19919 $as_echo "#define _GLIBCXX_USE_C11_UCHAR_CXX11 1" >>confdefs.h
19923 CXXFLAGS="$CXXFLAGS -fchar8_t"
19924 if test x"$ac_has_uchar_h" = x"yes"; then
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c8rtomb and mbrtoc8 in <uchar.h> with -fchar8_t" >&5
19926 $as_echo_n "checking for c8rtomb and mbrtoc8 in <uchar.h> with -fchar8_t... " >&6; }
19927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19928 /* end confdefs.h. */
19929 #include <uchar.h>
19930 namespace test
19932 using ::c8rtomb;
19933 using ::mbrtoc8;
19937 main ()
19941 return 0;
19943 _ACEOF
19944 if ac_fn_cxx_try_compile "$LINENO"; then :
19945 ac_uchar_c8rtomb_mbrtoc8_fchar8_t=yes
19946 else
19947 ac_uchar_c8rtomb_mbrtoc8_fchar8_t=no
19949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_uchar_c8rtomb_mbrtoc8_fchar8_t" >&5
19951 $as_echo "$ac_uchar_c8rtomb_mbrtoc8_fchar8_t" >&6; }
19952 else
19953 ac_uchar_c8rtomb_mbrtoc8_fchar8_t=no
19955 if test x"$ac_uchar_c8rtomb_mbrtoc8_fchar8_t" = x"yes"; then
19957 $as_echo "#define _GLIBCXX_USE_UCHAR_C8RTOMB_MBRTOC8_FCHAR8_T 1" >>confdefs.h
19961 CXXFLAGS="$CXXFLAGS -std=c++20"
19962 if test x"$ac_has_uchar_h" = x"yes"; then
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c8rtomb and mbrtoc8 in <uchar.h> with -std=c++20" >&5
19964 $as_echo_n "checking for c8rtomb and mbrtoc8 in <uchar.h> with -std=c++20... " >&6; }
19965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19966 /* end confdefs.h. */
19967 #include <uchar.h>
19968 namespace test
19970 using ::c8rtomb;
19971 using ::mbrtoc8;
19975 main ()
19979 return 0;
19981 _ACEOF
19982 if ac_fn_cxx_try_compile "$LINENO"; then :
19983 ac_uchar_c8rtomb_mbrtoc8_cxx20=yes
19984 else
19985 ac_uchar_c8rtomb_mbrtoc8_cxx20=no
19987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_uchar_c8rtomb_mbrtoc8_cxx20" >&5
19989 $as_echo "$ac_uchar_c8rtomb_mbrtoc8_cxx20" >&6; }
19990 else
19991 ac_uchar_c8rtomb_mbrtoc8_cxx20=no
19993 if test x"$ac_uchar_c8rtomb_mbrtoc8_cxx20" = x"yes"; then
19995 $as_echo "#define _GLIBCXX_USE_UCHAR_C8RTOMB_MBRTOC8_CXX20 1" >>confdefs.h
19999 CXXFLAGS="$ac_save_CXXFLAGS"
20000 ac_ext=c
20001 ac_cpp='$CPP $CPPFLAGS'
20002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20008 # For LFS support.
20011 ac_ext=cpp
20012 ac_cpp='$CXXCPP $CPPFLAGS'
20013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20017 ac_save_CXXFLAGS="$CXXFLAGS"
20018 CXXFLAGS="$CXXFLAGS -fno-exceptions"
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LFS support" >&5
20020 $as_echo_n "checking for LFS support... " >&6; }
20021 if ${glibcxx_cv_LFS+:} false; then :
20022 $as_echo_n "(cached) " >&6
20023 else
20025 if test x$gcc_no_link = xyes; then
20026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20027 /* end confdefs.h. */
20028 #include <unistd.h>
20029 #include <stdio.h>
20030 #include <sys/stat.h>
20033 main ()
20035 FILE* fp;
20036 fopen64("t", "w");
20037 fseeko64(fp, 0, SEEK_CUR);
20038 ftello64(fp);
20039 lseek64(1, 0, SEEK_CUR);
20040 struct stat64 buf;
20041 fstat64(1, &buf);
20043 return 0;
20045 _ACEOF
20046 if ac_fn_cxx_try_compile "$LINENO"; then :
20047 glibcxx_cv_LFS=yes
20048 else
20049 glibcxx_cv_LFS=no
20051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20052 else
20053 if test x$gcc_no_link = xyes; then
20054 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20057 /* end confdefs.h. */
20058 #include <unistd.h>
20059 #include <stdio.h>
20060 #include <sys/stat.h>
20063 main ()
20065 FILE* fp;
20066 fopen64("t", "w");
20067 fseeko64(fp, 0, SEEK_CUR);
20068 ftello64(fp);
20069 lseek64(1, 0, SEEK_CUR);
20070 struct stat64 buf;
20071 fstat64(1, &buf);
20073 return 0;
20075 _ACEOF
20076 if ac_fn_cxx_try_link "$LINENO"; then :
20077 glibcxx_cv_LFS=yes
20078 else
20079 glibcxx_cv_LFS=no
20081 rm -f core conftest.err conftest.$ac_objext \
20082 conftest$ac_exeext conftest.$ac_ext
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_LFS" >&5
20087 $as_echo "$glibcxx_cv_LFS" >&6; }
20088 if test $glibcxx_cv_LFS = yes; then
20090 $as_echo "#define _GLIBCXX_USE_LFS 1" >>confdefs.h
20094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fseeko and ftello" >&5
20095 $as_echo_n "checking for fseeko and ftello... " >&6; }
20096 if ${glibcxx_cv_posix_lfs+:} false; then :
20097 $as_echo_n "(cached) " >&6
20098 else
20100 if test x$gcc_no_link = xyes; then
20101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20102 /* end confdefs.h. */
20103 #include <stdio.h>
20106 main ()
20108 FILE* fp;
20109 fseeko(fp, 0, SEEK_CUR);
20110 ftello(fp);
20113 return 0;
20115 _ACEOF
20116 if ac_fn_cxx_try_compile "$LINENO"; then :
20117 glibcxx_cv_posix_lfs=yes
20118 else
20119 glibcxx_cv_posix_lfs=no
20121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20122 else
20123 if test x$gcc_no_link = xyes; then
20124 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20127 /* end confdefs.h. */
20128 #include <stdio.h>
20131 main ()
20133 FILE* fp;
20134 fseeko(fp, 0, SEEK_CUR);
20135 ftello(fp);
20138 return 0;
20140 _ACEOF
20141 if ac_fn_cxx_try_link "$LINENO"; then :
20142 glibcxx_cv_posix_lfs=yes
20143 else
20144 glibcxx_cv_posix_lfs=no
20146 rm -f core conftest.err conftest.$ac_objext \
20147 conftest$ac_exeext conftest.$ac_ext
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_posix_lfs" >&5
20152 $as_echo "$glibcxx_cv_posix_lfs" >&6; }
20153 if test $glibcxx_cv_posix_lfs = yes; then
20155 $as_echo "#define _GLIBCXX_USE_FSEEKO_FTELLO 1" >>confdefs.h
20159 CXXFLAGS="$ac_save_CXXFLAGS"
20160 ac_ext=c
20161 ac_cpp='$CPP $CPPFLAGS'
20162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20168 # For showmanyc_helper().
20169 for ac_header in sys/ioctl.h sys/filio.h
20170 do :
20171 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20172 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20173 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20174 cat >>confdefs.h <<_ACEOF
20175 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20176 _ACEOF
20180 done
20185 ac_ext=cpp
20186 ac_cpp='$CXXCPP $CPPFLAGS'
20187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20191 ac_save_CXXFLAGS="$CXXFLAGS"
20192 CXXFLAGS="$CXXFLAGS -fno-exceptions"
20194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll" >&5
20195 $as_echo_n "checking for poll... " >&6; }
20196 if ${glibcxx_cv_POLL+:} false; then :
20197 $as_echo_n "(cached) " >&6
20198 else
20200 if test x$gcc_no_link = xyes; then
20201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20202 /* end confdefs.h. */
20203 #include <poll.h>
20205 main ()
20207 struct pollfd pfd[1];
20208 pfd[0].events = POLLIN;
20209 poll(pfd, 1, 0);
20211 return 0;
20213 _ACEOF
20214 if ac_fn_cxx_try_compile "$LINENO"; then :
20215 glibcxx_cv_POLL=yes
20216 else
20217 glibcxx_cv_POLL=no
20219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20220 else
20221 if test x$gcc_no_link = xyes; then
20222 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20225 /* end confdefs.h. */
20226 #include <poll.h>
20228 main ()
20230 struct pollfd pfd[1];
20231 pfd[0].events = POLLIN;
20232 poll(pfd, 1, 0);
20234 return 0;
20236 _ACEOF
20237 if ac_fn_cxx_try_link "$LINENO"; then :
20238 glibcxx_cv_POLL=yes
20239 else
20240 glibcxx_cv_POLL=no
20242 rm -f core conftest.err conftest.$ac_objext \
20243 conftest$ac_exeext conftest.$ac_ext
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_POLL" >&5
20248 $as_echo "$glibcxx_cv_POLL" >&6; }
20249 if test $glibcxx_cv_POLL = yes; then
20251 $as_echo "#define HAVE_POLL 1" >>confdefs.h
20255 CXXFLAGS="$ac_save_CXXFLAGS"
20256 ac_ext=c
20257 ac_cpp='$CPP $CPPFLAGS'
20258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20266 ac_ext=cpp
20267 ac_cpp='$CXXCPP $CPPFLAGS'
20268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20272 ac_save_CXXFLAGS="$CXXFLAGS"
20273 CXXFLAGS="$CXXFLAGS -fno-exceptions"
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for S_ISREG or S_IFREG" >&5
20276 $as_echo_n "checking for S_ISREG or S_IFREG... " >&6; }
20277 if ${glibcxx_cv_S_ISREG+:} false; then :
20278 $as_echo_n "(cached) " >&6
20279 else
20281 if test x$gcc_no_link = xyes; then
20282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20283 /* end confdefs.h. */
20284 #include <sys/stat.h>
20286 main ()
20288 struct stat buffer;
20289 fstat(0, &buffer);
20290 S_ISREG(buffer.st_mode);
20292 return 0;
20294 _ACEOF
20295 if ac_fn_cxx_try_compile "$LINENO"; then :
20296 glibcxx_cv_S_ISREG=yes
20297 else
20298 glibcxx_cv_S_ISREG=no
20300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20301 else
20302 if test x$gcc_no_link = xyes; then
20303 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20306 /* end confdefs.h. */
20307 #include <sys/stat.h>
20309 main ()
20311 struct stat buffer;
20312 fstat(0, &buffer);
20313 S_ISREG(buffer.st_mode);
20315 return 0;
20317 _ACEOF
20318 if ac_fn_cxx_try_link "$LINENO"; then :
20319 glibcxx_cv_S_ISREG=yes
20320 else
20321 glibcxx_cv_S_ISREG=no
20323 rm -f core conftest.err conftest.$ac_objext \
20324 conftest$ac_exeext conftest.$ac_ext
20329 if ${glibcxx_cv_S_IFREG+:} false; then :
20330 $as_echo_n "(cached) " >&6
20331 else
20333 if test x$gcc_no_link = xyes; then
20334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20335 /* end confdefs.h. */
20336 #include <sys/stat.h>
20338 main ()
20340 struct stat buffer;
20341 fstat(0, &buffer);
20342 S_IFREG & buffer.st_mode;
20344 return 0;
20346 _ACEOF
20347 if ac_fn_cxx_try_compile "$LINENO"; then :
20348 glibcxx_cv_S_IFREG=yes
20349 else
20350 glibcxx_cv_S_IFREG=no
20352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20353 else
20354 if test x$gcc_no_link = xyes; then
20355 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20358 /* end confdefs.h. */
20359 #include <sys/stat.h>
20361 main ()
20363 struct stat buffer;
20364 fstat(0, &buffer);
20365 S_IFREG & buffer.st_mode;
20367 return 0;
20369 _ACEOF
20370 if ac_fn_cxx_try_link "$LINENO"; then :
20371 glibcxx_cv_S_IFREG=yes
20372 else
20373 glibcxx_cv_S_IFREG=no
20375 rm -f core conftest.err conftest.$ac_objext \
20376 conftest$ac_exeext conftest.$ac_ext
20381 res=no
20382 if test $glibcxx_cv_S_ISREG = yes; then
20384 $as_echo "#define HAVE_S_ISREG 1" >>confdefs.h
20386 res=S_ISREG
20387 elif test $glibcxx_cv_S_IFREG = yes; then
20389 $as_echo "#define HAVE_S_IFREG 1" >>confdefs.h
20391 res=S_IFREG
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
20394 $as_echo "$res" >&6; }
20396 CXXFLAGS="$ac_save_CXXFLAGS"
20397 ac_ext=c
20398 ac_cpp='$CPP $CPPFLAGS'
20399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20405 # For xsputn_2().
20406 for ac_header in sys/uio.h
20407 do :
20408 ac_fn_c_check_header_mongrel "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
20409 if test "x$ac_cv_header_sys_uio_h" = xyes; then :
20410 cat >>confdefs.h <<_ACEOF
20411 #define HAVE_SYS_UIO_H 1
20412 _ACEOF
20416 done
20421 ac_ext=cpp
20422 ac_cpp='$CXXCPP $CPPFLAGS'
20423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20427 ac_save_CXXFLAGS="$CXXFLAGS"
20428 CXXFLAGS="$CXXFLAGS -fno-exceptions"
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for writev" >&5
20431 $as_echo_n "checking for writev... " >&6; }
20432 if ${glibcxx_cv_WRITEV+:} false; then :
20433 $as_echo_n "(cached) " >&6
20434 else
20436 if test x$gcc_no_link = xyes; then
20437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20438 /* end confdefs.h. */
20439 #include <sys/uio.h>
20441 main ()
20443 struct iovec iov[2];
20444 writev(0, iov, 0);
20446 return 0;
20448 _ACEOF
20449 if ac_fn_cxx_try_compile "$LINENO"; then :
20450 glibcxx_cv_WRITEV=yes
20451 else
20452 glibcxx_cv_WRITEV=no
20454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20455 else
20456 if test x$gcc_no_link = xyes; then
20457 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20460 /* end confdefs.h. */
20461 #include <sys/uio.h>
20463 main ()
20465 struct iovec iov[2];
20466 writev(0, iov, 0);
20468 return 0;
20470 _ACEOF
20471 if ac_fn_cxx_try_link "$LINENO"; then :
20472 glibcxx_cv_WRITEV=yes
20473 else
20474 glibcxx_cv_WRITEV=no
20476 rm -f core conftest.err conftest.$ac_objext \
20477 conftest$ac_exeext conftest.$ac_ext
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_WRITEV" >&5
20482 $as_echo "$glibcxx_cv_WRITEV" >&6; }
20483 if test $glibcxx_cv_WRITEV = yes; then
20485 $as_echo "#define HAVE_WRITEV 1" >>confdefs.h
20489 CXXFLAGS="$ac_save_CXXFLAGS"
20490 ac_ext=c
20491 ac_cpp='$CPP $CPPFLAGS'
20492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20498 # Check for fenv.h and complex.h before GLIBCXX_CHECK_C99_TR1
20499 # so that the check is done with the C compiler (not C++).
20500 # Checking with C++ can break a canadian cross build if either
20501 # file does not exist in C but does in C++.
20502 for ac_header in fenv.h complex.h
20503 do :
20504 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20505 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20506 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20507 cat >>confdefs.h <<_ACEOF
20508 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20509 _ACEOF
20513 done
20516 # For C99 support to TR1.
20520 ac_ext=cpp
20521 ac_cpp='$CXXCPP $CPPFLAGS'
20522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20527 # Use -std=c++98 because -std=gnu++98 leaves __STRICT_ANSI__
20528 # undefined and fake C99 facilities may be spuriously enabled.
20529 ac_save_CXXFLAGS="$CXXFLAGS"
20530 CXXFLAGS="$CXXFLAGS -std=c++98"
20532 # Check for the existence of <complex.h> complex math functions used
20533 # by tr1/complex.
20534 for ac_header in complex.h
20535 do :
20536 ac_fn_cxx_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
20537 if test "x$ac_cv_header_complex_h" = xyes; then :
20538 cat >>confdefs.h <<_ACEOF
20539 #define HAVE_COMPLEX_H 1
20540 _ACEOF
20541 ac_has_complex_h=yes
20542 else
20543 ac_has_complex_h=no
20546 done
20548 ac_c99_complex_tr1=no;
20549 if test x"$ac_has_complex_h" = x"yes"; then
20550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <complex.h>" >&5
20551 $as_echo_n "checking for ISO C99 support to TR1 in <complex.h>... " >&6; }
20552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20553 /* end confdefs.h. */
20554 #include <complex.h>
20556 main ()
20558 typedef __complex__ float float_type; float_type tmpf;
20559 cacosf(tmpf);
20560 casinf(tmpf);
20561 catanf(tmpf);
20562 cacoshf(tmpf);
20563 casinhf(tmpf);
20564 catanhf(tmpf);
20565 typedef __complex__ double double_type; double_type tmpd;
20566 cacos(tmpd);
20567 casin(tmpd);
20568 catan(tmpd);
20569 cacosh(tmpd);
20570 casinh(tmpd);
20571 catanh(tmpd);
20572 typedef __complex__ long double ld_type; ld_type tmpld;
20573 cacosl(tmpld);
20574 casinl(tmpld);
20575 catanl(tmpld);
20576 cacoshl(tmpld);
20577 casinhl(tmpld);
20578 catanhl(tmpld);
20581 return 0;
20583 _ACEOF
20584 if ac_fn_cxx_try_compile "$LINENO"; then :
20585 ac_c99_complex_tr1=yes
20586 else
20587 ac_c99_complex_tr1=no
20589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_complex_tr1" >&5
20592 $as_echo "$ac_c99_complex_tr1" >&6; }
20593 if test x"$ac_c99_complex_tr1" = x"yes"; then
20595 $as_echo "#define _GLIBCXX_USE_C99_COMPLEX_TR1 1" >>confdefs.h
20599 # Check for the existence of <ctype.h> functions.
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <ctype.h>" >&5
20601 $as_echo_n "checking for ISO C99 support to TR1 in <ctype.h>... " >&6; }
20602 if ${glibcxx_cv_c99_ctype_tr1+:} false; then :
20603 $as_echo_n "(cached) " >&6
20604 else
20606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20607 /* end confdefs.h. */
20608 #include <ctype.h>
20610 main ()
20612 int ch;
20613 int ret;
20614 ret = isblank(ch);
20617 return 0;
20619 _ACEOF
20620 if ac_fn_cxx_try_compile "$LINENO"; then :
20621 glibcxx_cv_c99_ctype_tr1=yes
20622 else
20623 glibcxx_cv_c99_ctype_tr1=no
20625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_ctype_tr1" >&5
20629 $as_echo "$glibcxx_cv_c99_ctype_tr1" >&6; }
20630 if test x"$glibcxx_cv_c99_ctype_tr1" = x"yes"; then
20632 $as_echo "#define _GLIBCXX_USE_C99_CTYPE_TR1 1" >>confdefs.h
20636 # Check for the existence of <fenv.h> functions.
20637 for ac_header in fenv.h
20638 do :
20639 ac_fn_cxx_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
20640 if test "x$ac_cv_header_fenv_h" = xyes; then :
20641 cat >>confdefs.h <<_ACEOF
20642 #define HAVE_FENV_H 1
20643 _ACEOF
20644 ac_has_fenv_h=yes
20645 else
20646 ac_has_fenv_h=no
20649 done
20651 ac_c99_fenv_tr1=no;
20652 if test x"$ac_has_fenv_h" = x"yes"; then
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <fenv.h>" >&5
20654 $as_echo_n "checking for ISO C99 support to TR1 in <fenv.h>... " >&6; }
20655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20656 /* end confdefs.h. */
20657 #include <fenv.h>
20659 main ()
20661 int except, mode;
20662 fexcept_t* pflag;
20663 fenv_t* penv;
20664 int ret;
20665 ret = feclearexcept(except);
20666 ret = fegetexceptflag(pflag, except);
20667 ret = feraiseexcept(except);
20668 ret = fesetexceptflag(pflag, except);
20669 ret = fetestexcept(except);
20670 ret = fegetround();
20671 ret = fesetround(mode);
20672 ret = fegetenv(penv);
20673 ret = feholdexcept(penv);
20674 ret = fesetenv(penv);
20675 ret = feupdateenv(penv);
20678 return 0;
20680 _ACEOF
20681 if ac_fn_cxx_try_compile "$LINENO"; then :
20682 ac_c99_fenv_tr1=yes
20683 else
20684 ac_c99_fenv_tr1=no
20686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_fenv_tr1" >&5
20688 $as_echo "$ac_c99_fenv_tr1" >&6; }
20690 if test x"$ac_c99_fenv_tr1" = x"yes"; then
20692 $as_echo "#define _GLIBCXX_USE_C99_FENV_TR1 1" >>confdefs.h
20696 # Check for the existence of <stdint.h> types.
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <stdint.h>" >&5
20698 $as_echo_n "checking for ISO C99 support to TR1 in <stdint.h>... " >&6; }
20699 if ${glibcxx_cv_c99_stdint_tr1+:} false; then :
20700 $as_echo_n "(cached) " >&6
20701 else
20703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20704 /* end confdefs.h. */
20705 #define __STDC_LIMIT_MACROS
20706 #define __STDC_CONSTANT_MACROS
20707 #include <stdint.h>
20709 main ()
20711 typedef int8_t my_int8_t;
20712 my_int8_t i8 = INT8_MIN;
20713 i8 = INT8_MAX;
20714 typedef int16_t my_int16_t;
20715 my_int16_t i16 = INT16_MIN;
20716 i16 = INT16_MAX;
20717 typedef int32_t my_int32_t;
20718 my_int32_t i32 = INT32_MIN;
20719 i32 = INT32_MAX;
20720 typedef int64_t my_int64_t;
20721 my_int64_t i64 = INT64_MIN;
20722 i64 = INT64_MAX;
20723 typedef int_fast8_t my_int_fast8_t;
20724 my_int_fast8_t if8 = INT_FAST8_MIN;
20725 if8 = INT_FAST8_MAX;
20726 typedef int_fast16_t my_int_fast16_t;
20727 my_int_fast16_t if16 = INT_FAST16_MIN;
20728 if16 = INT_FAST16_MAX;
20729 typedef int_fast32_t my_int_fast32_t;
20730 my_int_fast32_t if32 = INT_FAST32_MIN;
20731 if32 = INT_FAST32_MAX;
20732 typedef int_fast64_t my_int_fast64_t;
20733 my_int_fast64_t if64 = INT_FAST64_MIN;
20734 if64 = INT_FAST64_MAX;
20735 typedef int_least8_t my_int_least8_t;
20736 my_int_least8_t il8 = INT_LEAST8_MIN;
20737 il8 = INT_LEAST8_MAX;
20738 typedef int_least16_t my_int_least16_t;
20739 my_int_least16_t il16 = INT_LEAST16_MIN;
20740 il16 = INT_LEAST16_MAX;
20741 typedef int_least32_t my_int_least32_t;
20742 my_int_least32_t il32 = INT_LEAST32_MIN;
20743 il32 = INT_LEAST32_MAX;
20744 typedef int_least64_t my_int_least64_t;
20745 my_int_least64_t il64 = INT_LEAST64_MIN;
20746 il64 = INT_LEAST64_MAX;
20747 typedef intmax_t my_intmax_t;
20748 my_intmax_t im = INTMAX_MAX;
20749 im = INTMAX_MIN;
20750 typedef intptr_t my_intptr_t;
20751 my_intptr_t ip = INTPTR_MAX;
20752 ip = INTPTR_MIN;
20753 typedef uint8_t my_uint8_t;
20754 my_uint8_t ui8 = UINT8_MAX;
20755 ui8 = UINT8_MAX;
20756 typedef uint16_t my_uint16_t;
20757 my_uint16_t ui16 = UINT16_MAX;
20758 ui16 = UINT16_MAX;
20759 typedef uint32_t my_uint32_t;
20760 my_uint32_t ui32 = UINT32_MAX;
20761 ui32 = UINT32_MAX;
20762 typedef uint64_t my_uint64_t;
20763 my_uint64_t ui64 = UINT64_MAX;
20764 ui64 = UINT64_MAX;
20765 typedef uint_fast8_t my_uint_fast8_t;
20766 my_uint_fast8_t uif8 = UINT_FAST8_MAX;
20767 uif8 = UINT_FAST8_MAX;
20768 typedef uint_fast16_t my_uint_fast16_t;
20769 my_uint_fast16_t uif16 = UINT_FAST16_MAX;
20770 uif16 = UINT_FAST16_MAX;
20771 typedef uint_fast32_t my_uint_fast32_t;
20772 my_uint_fast32_t uif32 = UINT_FAST32_MAX;
20773 uif32 = UINT_FAST32_MAX;
20774 typedef uint_fast64_t my_uint_fast64_t;
20775 my_uint_fast64_t uif64 = UINT_FAST64_MAX;
20776 uif64 = UINT_FAST64_MAX;
20777 typedef uint_least8_t my_uint_least8_t;
20778 my_uint_least8_t uil8 = UINT_LEAST8_MAX;
20779 uil8 = UINT_LEAST8_MAX;
20780 typedef uint_least16_t my_uint_least16_t;
20781 my_uint_least16_t uil16 = UINT_LEAST16_MAX;
20782 uil16 = UINT_LEAST16_MAX;
20783 typedef uint_least32_t my_uint_least32_t;
20784 my_uint_least32_t uil32 = UINT_LEAST32_MAX;
20785 uil32 = UINT_LEAST32_MAX;
20786 typedef uint_least64_t my_uint_least64_t;
20787 my_uint_least64_t uil64 = UINT_LEAST64_MAX;
20788 uil64 = UINT_LEAST64_MAX;
20789 typedef uintmax_t my_uintmax_t;
20790 my_uintmax_t uim = UINTMAX_MAX;
20791 uim = UINTMAX_MAX;
20792 typedef uintptr_t my_uintptr_t;
20793 my_uintptr_t uip = UINTPTR_MAX;
20794 uip = UINTPTR_MAX;
20797 return 0;
20799 _ACEOF
20800 if ac_fn_cxx_try_compile "$LINENO"; then :
20801 glibcxx_cv_c99_stdint_tr1=yes
20802 else
20803 glibcxx_cv_c99_stdint_tr1=no
20805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_stdint_tr1" >&5
20809 $as_echo "$glibcxx_cv_c99_stdint_tr1" >&6; }
20810 if test x"$glibcxx_cv_c99_stdint_tr1" = x"yes"; then
20812 $as_echo "#define _GLIBCXX_USE_C99_STDINT_TR1 1" >>confdefs.h
20816 # Check for the existence of <math.h> functions.
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <math.h>" >&5
20818 $as_echo_n "checking for ISO C99 support to TR1 in <math.h>... " >&6; }
20819 if ${glibcxx_cv_c99_math_tr1+:} false; then :
20820 $as_echo_n "(cached) " >&6
20821 else
20823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20824 /* end confdefs.h. */
20825 #include <math.h>
20827 main ()
20829 typedef double_t my_double_t;
20830 typedef float_t my_float_t;
20831 acosh(0.0);
20832 acoshf(0.0f);
20833 acoshl(0.0l);
20834 asinh(0.0);
20835 asinhf(0.0f);
20836 asinhl(0.0l);
20837 atanh(0.0);
20838 atanhf(0.0f);
20839 atanhl(0.0l);
20840 cbrt(0.0);
20841 cbrtf(0.0f);
20842 cbrtl(0.0l);
20843 copysign(0.0, 0.0);
20844 copysignf(0.0f, 0.0f);
20845 copysignl(0.0l, 0.0l);
20846 erf(0.0);
20847 erff(0.0f);
20848 erfl(0.0l);
20849 erfc(0.0);
20850 erfcf(0.0f);
20851 erfcl(0.0l);
20852 exp2(0.0);
20853 exp2f(0.0f);
20854 exp2l(0.0l);
20855 expm1(0.0);
20856 expm1f(0.0f);
20857 expm1l(0.0l);
20858 fdim(0.0, 0.0);
20859 fdimf(0.0f, 0.0f);
20860 fdiml(0.0l, 0.0l);
20861 fma(0.0, 0.0, 0.0);
20862 fmaf(0.0f, 0.0f, 0.0f);
20863 fmal(0.0l, 0.0l, 0.0l);
20864 fmax(0.0, 0.0);
20865 fmaxf(0.0f, 0.0f);
20866 fmaxl(0.0l, 0.0l);
20867 fmin(0.0, 0.0);
20868 fminf(0.0f, 0.0f);
20869 fminl(0.0l, 0.0l);
20870 hypot(0.0, 0.0);
20871 hypotf(0.0f, 0.0f);
20872 hypotl(0.0l, 0.0l);
20873 ilogb(0.0);
20874 ilogbf(0.0f);
20875 ilogbl(0.0l);
20876 lgamma(0.0);
20877 lgammaf(0.0f);
20878 lgammal(0.0l);
20879 #ifndef __APPLE__ /* see below */
20880 llrint(0.0);
20881 llrintf(0.0f);
20882 llrintl(0.0l);
20883 llround(0.0);
20884 llroundf(0.0f);
20885 llroundl(0.0l);
20886 #endif
20887 log1p(0.0);
20888 log1pf(0.0f);
20889 log1pl(0.0l);
20890 log2(0.0);
20891 log2f(0.0f);
20892 log2l(0.0l);
20893 logb(0.0);
20894 logbf(0.0f);
20895 logbl(0.0l);
20896 lrint(0.0);
20897 lrintf(0.0f);
20898 lrintl(0.0l);
20899 lround(0.0);
20900 lroundf(0.0f);
20901 lroundl(0.0l);
20902 nan("");
20903 nanf("");
20904 nanl("");
20905 nearbyint(0.0);
20906 nearbyintf(0.0f);
20907 nearbyintl(0.0l);
20908 nextafter(0.0, 0.0);
20909 nextafterf(0.0f, 0.0f);
20910 nextafterl(0.0l, 0.0l);
20911 nexttoward(0.0, 0.0);
20912 nexttowardf(0.0f, 0.0f);
20913 nexttowardl(0.0l, 0.0l);
20914 remainder(0.0, 0.0);
20915 remainderf(0.0f, 0.0f);
20916 remainderl(0.0l, 0.0l);
20917 remquo(0.0, 0.0, 0);
20918 remquof(0.0f, 0.0f, 0);
20919 remquol(0.0l, 0.0l, 0);
20920 rint(0.0);
20921 rintf(0.0f);
20922 rintl(0.0l);
20923 round(0.0);
20924 roundf(0.0f);
20925 roundl(0.0l);
20926 scalbln(0.0, 0l);
20927 scalblnf(0.0f, 0l);
20928 scalblnl(0.0l, 0l);
20929 scalbn(0.0, 0);
20930 scalbnf(0.0f, 0);
20931 scalbnl(0.0l, 0);
20932 tgamma(0.0);
20933 tgammaf(0.0f);
20934 tgammal(0.0l);
20935 trunc(0.0);
20936 truncf(0.0f);
20937 truncl(0.0l);
20940 return 0;
20942 _ACEOF
20943 if ac_fn_cxx_try_compile "$LINENO"; then :
20944 glibcxx_cv_c99_math_tr1=yes
20945 else
20946 glibcxx_cv_c99_math_tr1=no
20948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_c99_math_tr1" >&5
20952 $as_echo "$glibcxx_cv_c99_math_tr1" >&6; }
20953 if test x"$glibcxx_cv_c99_math_tr1" = x"yes"; then
20955 $as_echo "#define _GLIBCXX_USE_C99_MATH_TR1 1" >>confdefs.h
20959 # Check for the existence of <inttypes.h> functions (NB: doesn't make
20960 # sense if the glibcxx_cv_c99_stdint_tr1 check fails, per C99, 7.8/1).
20961 ac_c99_inttypes_tr1=no;
20962 if test x"$glibcxx_cv_c99_stdint_tr1" = x"yes"; then
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 support to TR1 in <inttypes.h>" >&5
20964 $as_echo_n "checking for ISO C99 support to TR1 in <inttypes.h>... " >&6; }
20965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20966 /* end confdefs.h. */
20967 #include <inttypes.h>
20969 main ()
20971 intmax_t i, numer, denom, base;
20972 const char* s;
20973 char** endptr;
20974 intmax_t ret = imaxabs(i);
20975 imaxdiv_t dret = imaxdiv(numer, denom);
20976 ret = strtoimax(s, endptr, base);
20977 uintmax_t uret = strtoumax(s, endptr, base);
20980 return 0;
20982 _ACEOF
20983 if ac_fn_cxx_try_compile "$LINENO"; then :
20984 ac_c99_inttypes_tr1=yes
20985 else
20986 ac_c99_inttypes_tr1=no
20988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_inttypes_tr1" >&5
20990 $as_echo "$ac_c99_inttypes_tr1" >&6; }
20992 if test x"$ac_c99_inttypes_tr1" = x"yes"; then
20994 $as_echo "#define _GLIBCXX_USE_C99_INTTYPES_TR1 1" >>confdefs.h
20998 # Check for the existence of wchar_t <inttypes.h> functions (NB: doesn't
20999 # make sense if the glibcxx_cv_c99_stdint_tr1 check fails, per C99, 7.8/1).
21000 ac_c99_inttypes_wchar_t_tr1=no;
21001 if test x"$glibcxx_cv_c99_stdint_tr1" = x"yes"; then
21002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t ISO C99 support to TR1 in <inttypes.h>" >&5
21003 $as_echo_n "checking for wchar_t ISO C99 support to TR1 in <inttypes.h>... " >&6; }
21004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21005 /* end confdefs.h. */
21006 #include <inttypes.h>
21008 main ()
21010 intmax_t base;
21011 const wchar_t* s;
21012 wchar_t** endptr;
21013 intmax_t ret = wcstoimax(s, endptr, base);
21014 uintmax_t uret = wcstoumax(s, endptr, base);
21017 return 0;
21019 _ACEOF
21020 if ac_fn_cxx_try_compile "$LINENO"; then :
21021 ac_c99_inttypes_wchar_t_tr1=yes
21022 else
21023 ac_c99_inttypes_wchar_t_tr1=no
21025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_c99_inttypes_wchar_t_tr1" >&5
21027 $as_echo "$ac_c99_inttypes_wchar_t_tr1" >&6; }
21029 if test x"$ac_c99_inttypes_wchar_t_tr1" = x"yes"; then
21031 $as_echo "#define _GLIBCXX_USE_C99_INTTYPES_WCHAR_T_TR1 1" >>confdefs.h
21035 # Check for the existence of the <stdbool.h> header.
21036 for ac_header in stdbool.h
21037 do :
21038 ac_fn_cxx_check_header_mongrel "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
21039 if test "x$ac_cv_header_stdbool_h" = xyes; then :
21040 cat >>confdefs.h <<_ACEOF
21041 #define HAVE_STDBOOL_H 1
21042 _ACEOF
21046 done
21049 # Check for the existence of the <stdalign.h> header.
21050 for ac_header in stdalign.h
21051 do :
21052 ac_fn_cxx_check_header_mongrel "$LINENO" "stdalign.h" "ac_cv_header_stdalign_h" "$ac_includes_default"
21053 if test "x$ac_cv_header_stdalign_h" = xyes; then :
21054 cat >>confdefs.h <<_ACEOF
21055 #define HAVE_STDALIGN_H 1
21056 _ACEOF
21060 done
21063 CXXFLAGS="$ac_save_CXXFLAGS"
21064 ac_ext=c
21065 ac_cpp='$CPP $CPPFLAGS'
21066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21072 # For the EOF, SEEK_CUR, and SEEK_END integer constants.
21075 if test "$is_hosted" = yes; then
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the value of EOF" >&5
21077 $as_echo_n "checking for the value of EOF... " >&6; }
21078 if ${glibcxx_cv_stdio_eof+:} false; then :
21079 $as_echo_n "(cached) " >&6
21080 else
21082 if ac_fn_c_compute_int "$LINENO" "EOF" "glibcxx_cv_stdio_eof" "#include <stdio.h>"; then :
21084 else
21085 as_fn_error $? "computing EOF failed" "$LINENO" 5
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_stdio_eof" >&5
21091 $as_echo "$glibcxx_cv_stdio_eof" >&6; }
21093 cat >>confdefs.h <<_ACEOF
21094 #define _GLIBCXX_STDIO_EOF $glibcxx_cv_stdio_eof
21095 _ACEOF
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the value of SEEK_CUR" >&5
21099 $as_echo_n "checking for the value of SEEK_CUR... " >&6; }
21100 if ${glibcxx_cv_stdio_seek_cur+:} false; then :
21101 $as_echo_n "(cached) " >&6
21102 else
21104 if ac_fn_c_compute_int "$LINENO" "SEEK_CUR" "glibcxx_cv_stdio_seek_cur" "#include <stdio.h>"; then :
21106 else
21107 as_fn_error $? "computing SEEK_CUR failed" "$LINENO" 5
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_stdio_seek_cur" >&5
21113 $as_echo "$glibcxx_cv_stdio_seek_cur" >&6; }
21115 cat >>confdefs.h <<_ACEOF
21116 #define _GLIBCXX_STDIO_SEEK_CUR $glibcxx_cv_stdio_seek_cur
21117 _ACEOF
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the value of SEEK_END" >&5
21121 $as_echo_n "checking for the value of SEEK_END... " >&6; }
21122 if ${glibcxx_cv_stdio_seek_end+:} false; then :
21123 $as_echo_n "(cached) " >&6
21124 else
21126 if ac_fn_c_compute_int "$LINENO" "SEEK_END" "glibcxx_cv_stdio_seek_end" "#include <stdio.h>"; then :
21128 else
21129 as_fn_error $? "computing SEEK_END failed" "$LINENO" 5
21134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_stdio_seek_end" >&5
21135 $as_echo "$glibcxx_cv_stdio_seek_end" >&6; }
21137 cat >>confdefs.h <<_ACEOF
21138 #define _GLIBCXX_STDIO_SEEK_END $glibcxx_cv_stdio_seek_end
21139 _ACEOF
21144 # For gettimeofday support.
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday" >&5
21148 $as_echo_n "checking for gettimeofday... " >&6; }
21151 ac_ext=cpp
21152 ac_cpp='$CXXCPP $CPPFLAGS'
21153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21157 ac_save_CXXFLAGS="$CXXFLAGS"
21158 CXXFLAGS="$CXXFLAGS -fno-exceptions"
21160 ac_has_gettimeofday=no;
21161 for ac_header in sys/time.h
21162 do :
21163 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
21164 if test "x$ac_cv_header_sys_time_h" = xyes; then :
21165 cat >>confdefs.h <<_ACEOF
21166 #define HAVE_SYS_TIME_H 1
21167 _ACEOF
21168 ac_has_sys_time_h=yes
21169 else
21170 ac_has_sys_time_h=no
21173 done
21175 if test x"$ac_has_sys_time_h" = x"yes"; then
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday" >&5
21177 $as_echo_n "checking for gettimeofday... " >&6; }
21178 if test x$gcc_no_link = xyes; then
21179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21180 /* end confdefs.h. */
21181 #include <sys/time.h>
21183 main ()
21185 timeval tv; gettimeofday(&tv, 0);
21187 return 0;
21189 _ACEOF
21190 if ac_fn_cxx_try_compile "$LINENO"; then :
21191 ac_has_gettimeofday=yes
21192 else
21193 ac_has_gettimeofday=no
21195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21196 else
21197 if test x$gcc_no_link = xyes; then
21198 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21201 /* end confdefs.h. */
21202 #include <sys/time.h>
21204 main ()
21206 timeval tv; gettimeofday(&tv, 0);
21208 return 0;
21210 _ACEOF
21211 if ac_fn_cxx_try_link "$LINENO"; then :
21212 ac_has_gettimeofday=yes
21213 else
21214 ac_has_gettimeofday=no
21216 rm -f core conftest.err conftest.$ac_objext \
21217 conftest$ac_exeext conftest.$ac_ext
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_gettimeofday" >&5
21221 $as_echo "$ac_has_gettimeofday" >&6; }
21224 if test x"$ac_has_gettimeofday" = x"yes"; then
21226 $as_echo "#define _GLIBCXX_USE_GETTIMEOFDAY 1" >>confdefs.h
21230 CXXFLAGS="$ac_save_CXXFLAGS"
21231 ac_ext=c
21232 ac_cpp='$CPP $CPPFLAGS'
21233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21239 # For clock_gettime, nanosleep and sched_yield support.
21242 # Check whether --enable-libstdcxx-time was given.
21243 if test "${enable_libstdcxx_time+set}" = set; then :
21244 enableval=$enable_libstdcxx_time;
21245 case "$enableval" in
21246 yes|no|rt) ;;
21247 *) as_fn_error $? "Unknown argument to enable/disable libstdcxx-time" "$LINENO" 5 ;;
21248 esac
21250 else
21251 enable_libstdcxx_time=auto
21257 ac_ext=cpp
21258 ac_cpp='$CXXCPP $CPPFLAGS'
21259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21263 ac_save_CXXFLAGS="$CXXFLAGS"
21264 CXXFLAGS="$CXXFLAGS -fno-exceptions"
21265 ac_save_LIBS="$LIBS"
21267 ac_has_clock_monotonic=no
21268 ac_has_clock_realtime=no
21269 ac_has_nanosleep=no
21270 ac_has_sched_yield=no
21272 if test x"$enable_libstdcxx_time" = x"auto"; then
21274 case "${target_os}" in
21275 cygwin*)
21276 ac_has_nanosleep=yes
21278 mingw*)
21279 ac_has_win32_sleep=yes
21280 ac_has_sched_yield=yes
21282 darwin*)
21283 ac_has_nanosleep=yes
21284 ac_has_sched_yield=yes
21286 # VxWorks has nanosleep as soon as the kernel is configured with
21287 # INCLUDE_POSIX_TIMERS, which is normally/most-often the case.
21288 vxworks*)
21289 ac_has_nanosleep=yes
21291 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
21292 # Don't use link test for freestanding library, in case gcc_no_link=yes
21293 if test x"$is_hosted" = xyes; then
21294 # Versions of glibc before 2.17 needed -lrt for clock_gettime.
21295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21296 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21297 if ${ac_cv_search_clock_gettime+:} false; then :
21298 $as_echo_n "(cached) " >&6
21299 else
21300 ac_func_search_save_LIBS=$LIBS
21301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21302 /* end confdefs.h. */
21304 /* Override any GCC internal prototype to avoid an error.
21305 Use char because int might match the return type of a GCC
21306 builtin and then its argument prototype would still apply. */
21307 #ifdef __cplusplus
21308 extern "C"
21309 #endif
21310 char clock_gettime ();
21312 main ()
21314 return clock_gettime ();
21316 return 0;
21318 _ACEOF
21319 for ac_lib in '' rt; do
21320 if test -z "$ac_lib"; then
21321 ac_res="none required"
21322 else
21323 ac_res=-l$ac_lib
21324 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21326 if test x$gcc_no_link = xyes; then
21327 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21329 if ac_fn_cxx_try_link "$LINENO"; then :
21330 ac_cv_search_clock_gettime=$ac_res
21332 rm -f core conftest.err conftest.$ac_objext \
21333 conftest$ac_exeext
21334 if ${ac_cv_search_clock_gettime+:} false; then :
21335 break
21337 done
21338 if ${ac_cv_search_clock_gettime+:} false; then :
21340 else
21341 ac_cv_search_clock_gettime=no
21343 rm conftest.$ac_ext
21344 LIBS=$ac_func_search_save_LIBS
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21347 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21348 ac_res=$ac_cv_search_clock_gettime
21349 if test "$ac_res" != no; then :
21350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21354 if test x"$ac_cv_search_clock_gettime" = x"none required"; then
21355 ac_has_clock_monotonic=yes
21356 ac_has_clock_realtime=yes
21359 ac_has_nanosleep=yes
21360 ac_has_sched_yield=yes
21362 freebsd*|netbsd*|dragonfly*|rtems*)
21363 ac_has_clock_monotonic=yes
21364 ac_has_clock_realtime=yes
21365 ac_has_nanosleep=yes
21366 ac_has_sched_yield=yes
21368 openbsd*)
21369 ac_has_clock_monotonic=yes
21370 ac_has_clock_realtime=yes
21371 ac_has_nanosleep=yes
21373 solaris*)
21374 ac_has_clock_monotonic=yes
21375 ac_has_clock_realtime=yes
21376 ac_has_nanosleep=yes
21377 ac_has_sched_yield=yes
21379 uclinux*)
21380 ac_has_nanosleep=yes
21381 ac_has_sched_yield=yes
21382 esac
21384 elif test x"$enable_libstdcxx_time" != x"no"; then
21386 if test x"$enable_libstdcxx_time" = x"rt"; then
21387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21388 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21389 if ${ac_cv_search_clock_gettime+:} false; then :
21390 $as_echo_n "(cached) " >&6
21391 else
21392 ac_func_search_save_LIBS=$LIBS
21393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21394 /* end confdefs.h. */
21396 /* Override any GCC internal prototype to avoid an error.
21397 Use char because int might match the return type of a GCC
21398 builtin and then its argument prototype would still apply. */
21399 #ifdef __cplusplus
21400 extern "C"
21401 #endif
21402 char clock_gettime ();
21404 main ()
21406 return clock_gettime ();
21408 return 0;
21410 _ACEOF
21411 for ac_lib in '' rt; do
21412 if test -z "$ac_lib"; then
21413 ac_res="none required"
21414 else
21415 ac_res=-l$ac_lib
21416 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21418 if test x$gcc_no_link = xyes; then
21419 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21421 if ac_fn_cxx_try_link "$LINENO"; then :
21422 ac_cv_search_clock_gettime=$ac_res
21424 rm -f core conftest.err conftest.$ac_objext \
21425 conftest$ac_exeext
21426 if ${ac_cv_search_clock_gettime+:} false; then :
21427 break
21429 done
21430 if ${ac_cv_search_clock_gettime+:} false; then :
21432 else
21433 ac_cv_search_clock_gettime=no
21435 rm conftest.$ac_ext
21436 LIBS=$ac_func_search_save_LIBS
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21439 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21440 ac_res=$ac_cv_search_clock_gettime
21441 if test "$ac_res" != no; then :
21442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21447 $as_echo_n "checking for library containing nanosleep... " >&6; }
21448 if ${ac_cv_search_nanosleep+:} false; then :
21449 $as_echo_n "(cached) " >&6
21450 else
21451 ac_func_search_save_LIBS=$LIBS
21452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21453 /* end confdefs.h. */
21455 /* Override any GCC internal prototype to avoid an error.
21456 Use char because int might match the return type of a GCC
21457 builtin and then its argument prototype would still apply. */
21458 #ifdef __cplusplus
21459 extern "C"
21460 #endif
21461 char nanosleep ();
21463 main ()
21465 return nanosleep ();
21467 return 0;
21469 _ACEOF
21470 for ac_lib in '' rt; do
21471 if test -z "$ac_lib"; then
21472 ac_res="none required"
21473 else
21474 ac_res=-l$ac_lib
21475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21477 if test x$gcc_no_link = xyes; then
21478 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21480 if ac_fn_cxx_try_link "$LINENO"; then :
21481 ac_cv_search_nanosleep=$ac_res
21483 rm -f core conftest.err conftest.$ac_objext \
21484 conftest$ac_exeext
21485 if ${ac_cv_search_nanosleep+:} false; then :
21486 break
21488 done
21489 if ${ac_cv_search_nanosleep+:} false; then :
21491 else
21492 ac_cv_search_nanosleep=no
21494 rm conftest.$ac_ext
21495 LIBS=$ac_func_search_save_LIBS
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21498 $as_echo "$ac_cv_search_nanosleep" >&6; }
21499 ac_res=$ac_cv_search_nanosleep
21500 if test "$ac_res" != no; then :
21501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21505 else
21506 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
21507 if test "x$ac_cv_func_clock_gettime" = xyes; then :
21511 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
21512 if test "x$ac_cv_func_nanosleep" = xyes; then :
21518 case "$ac_cv_search_clock_gettime" in
21519 -l*) GLIBCXX_LIBS=$ac_cv_search_clock_gettime
21521 esac
21522 case "$ac_cv_search_nanosleep" in
21523 -l*) GLIBCXX_LIBS="$GLIBCXX_LIBS $ac_cv_search_nanosleep"
21525 esac
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
21528 $as_echo_n "checking for library containing sched_yield... " >&6; }
21529 if ${ac_cv_search_sched_yield+:} false; then :
21530 $as_echo_n "(cached) " >&6
21531 else
21532 ac_func_search_save_LIBS=$LIBS
21533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21534 /* end confdefs.h. */
21536 /* Override any GCC internal prototype to avoid an error.
21537 Use char because int might match the return type of a GCC
21538 builtin and then its argument prototype would still apply. */
21539 #ifdef __cplusplus
21540 extern "C"
21541 #endif
21542 char sched_yield ();
21544 main ()
21546 return sched_yield ();
21548 return 0;
21550 _ACEOF
21551 for ac_lib in '' rt; do
21552 if test -z "$ac_lib"; then
21553 ac_res="none required"
21554 else
21555 ac_res=-l$ac_lib
21556 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21558 if test x$gcc_no_link = xyes; then
21559 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21561 if ac_fn_cxx_try_link "$LINENO"; then :
21562 ac_cv_search_sched_yield=$ac_res
21564 rm -f core conftest.err conftest.$ac_objext \
21565 conftest$ac_exeext
21566 if ${ac_cv_search_sched_yield+:} false; then :
21567 break
21569 done
21570 if ${ac_cv_search_sched_yield+:} false; then :
21572 else
21573 ac_cv_search_sched_yield=no
21575 rm conftest.$ac_ext
21576 LIBS=$ac_func_search_save_LIBS
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
21579 $as_echo "$ac_cv_search_sched_yield" >&6; }
21580 ac_res=$ac_cv_search_sched_yield
21581 if test "$ac_res" != no; then :
21582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21587 case "$ac_cv_search_sched_yield" in
21588 -lrt*)
21589 if test x"$enable_libstdcxx_time" = x"rt"; then
21590 GLIBCXX_LIBS="$GLIBCXX_LIBS $ac_cv_search_sched_yield"
21591 ac_has_sched_yield=yes
21595 ac_has_sched_yield=yes
21597 esac
21599 for ac_header in unistd.h
21600 do :
21601 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
21602 if test "x$ac_cv_header_unistd_h" = xyes; then :
21603 cat >>confdefs.h <<_ACEOF
21604 #define HAVE_UNISTD_H 1
21605 _ACEOF
21606 ac_has_unistd_h=yes
21607 else
21608 ac_has_unistd_h=no
21611 done
21614 if test x"$ac_has_unistd_h" = x"yes"; then
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock" >&5
21616 $as_echo_n "checking for monotonic clock... " >&6; }
21617 if test x$gcc_no_link = xyes; then
21618 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21621 /* end confdefs.h. */
21622 #include <unistd.h>
21623 #include <time.h>
21626 main ()
21628 #if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK)
21629 timespec tp;
21630 #endif
21631 clock_gettime(CLOCK_MONOTONIC, &tp);
21634 return 0;
21636 _ACEOF
21637 if ac_fn_cxx_try_link "$LINENO"; then :
21638 ac_has_clock_monotonic=yes
21639 else
21640 ac_has_clock_monotonic=no
21642 rm -f core conftest.err conftest.$ac_objext \
21643 conftest$ac_exeext conftest.$ac_ext
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_monotonic" >&5
21646 $as_echo "$ac_has_clock_monotonic" >&6; }
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for realtime clock" >&5
21649 $as_echo_n "checking for realtime clock... " >&6; }
21650 if test x$gcc_no_link = xyes; then
21651 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21654 /* end confdefs.h. */
21655 #include <unistd.h>
21656 #include <time.h>
21659 main ()
21661 #if _POSIX_TIMERS > 0
21662 timespec tp;
21663 #endif
21664 clock_gettime(CLOCK_REALTIME, &tp);
21667 return 0;
21669 _ACEOF
21670 if ac_fn_cxx_try_link "$LINENO"; then :
21671 ac_has_clock_realtime=yes
21672 else
21673 ac_has_clock_realtime=no
21675 rm -f core conftest.err conftest.$ac_objext \
21676 conftest$ac_exeext conftest.$ac_ext
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_realtime" >&5
21679 $as_echo "$ac_has_clock_realtime" >&6; }
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep" >&5
21682 $as_echo_n "checking for nanosleep... " >&6; }
21683 if test x$gcc_no_link = xyes; then
21684 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21687 /* end confdefs.h. */
21688 #include <unistd.h>
21689 #include <time.h>
21692 main ()
21694 #if _POSIX_TIMERS > 0
21695 timespec tp;
21696 #endif
21697 nanosleep(&tp, 0);
21700 return 0;
21702 _ACEOF
21703 if ac_fn_cxx_try_link "$LINENO"; then :
21704 ac_has_nanosleep=yes
21705 else
21706 ac_has_nanosleep=no
21708 rm -f core conftest.err conftest.$ac_objext \
21709 conftest$ac_exeext conftest.$ac_ext
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_nanosleep" >&5
21712 $as_echo "$ac_has_nanosleep" >&6; }
21716 if test x"$ac_has_clock_monotonic" != x"yes"; then
21717 case ${target_os} in
21718 linux* | uclinux*)
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
21720 $as_echo_n "checking for clock_gettime syscall... " >&6; }
21721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21722 /* end confdefs.h. */
21723 #include <unistd.h>
21724 #include <time.h>
21725 #include <sys/syscall.h>
21728 main ()
21730 #if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK)
21731 timespec tp;
21732 #endif
21733 syscall(SYS_clock_gettime, CLOCK_MONOTONIC, &tp);
21734 syscall(SYS_clock_gettime, CLOCK_REALTIME, &tp);
21737 return 0;
21739 _ACEOF
21740 if ac_fn_cxx_try_compile "$LINENO"; then :
21741 ac_has_clock_gettime_syscall=yes
21742 else
21743 ac_has_clock_gettime_syscall=no
21745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_gettime_syscall" >&5
21747 $as_echo "$ac_has_clock_gettime_syscall" >&6; }
21748 if test x"$ac_has_clock_gettime_syscall" = x"yes"; then
21750 $as_echo "#define _GLIBCXX_USE_CLOCK_GETTIME_SYSCALL 1" >>confdefs.h
21752 ac_has_clock_monotonic=yes
21753 ac_has_clock_realtime=yes
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec that matches syscall" >&5
21755 $as_echo_n "checking for struct timespec that matches syscall... " >&6; }
21756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21757 /* end confdefs.h. */
21758 #include <time.h>
21759 #include <sys/syscall.h>
21762 main ()
21764 #ifdef SYS_clock_gettime64
21765 #if SYS_clock_gettime64 != SYS_clock_gettime
21766 // We need to use SYS_clock_gettime and libc appears to
21767 // also know about the SYS_clock_gettime64 syscall.
21768 // Check that userspace doesn't use time64 version of timespec.
21769 static_assert(sizeof(timespec::tv_sec) == sizeof(long),
21770 "struct timespec must be compatible with SYS_clock_gettime");
21771 #endif
21772 #endif
21775 return 0;
21777 _ACEOF
21778 if ac_fn_cxx_try_compile "$LINENO"; then :
21779 ac_timespec_matches_syscall=yes
21780 else
21781 ac_timespec_matches_syscall=no
21783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_timespec_matches_syscall" >&5
21785 $as_echo "$ac_timespec_matches_syscall" >&6; }
21786 if test x"$ac_timespec_matches_syscall" = no; then
21787 as_fn_error $? "struct timespec is not compatible with SYS_clock_gettime, please report a bug to http://gcc.gnu.org/bugzilla" "$LINENO" 5
21789 fi;;
21790 esac
21793 if test x"$ac_has_clock_monotonic" = x"yes"; then
21795 $as_echo "#define _GLIBCXX_USE_CLOCK_MONOTONIC 1" >>confdefs.h
21799 if test x"$ac_has_clock_realtime" = x"yes"; then
21801 $as_echo "#define _GLIBCXX_USE_CLOCK_REALTIME 1" >>confdefs.h
21805 if test x"$ac_has_sched_yield" = x"yes"; then
21807 $as_echo "#define _GLIBCXX_USE_SCHED_YIELD 1" >>confdefs.h
21811 if test x"$ac_has_nanosleep" = x"yes"; then
21813 $as_echo "#define _GLIBCXX_USE_NANOSLEEP 1" >>confdefs.h
21815 elif test x"$ac_has_win32_sleep" = x"yes"; then
21817 $as_echo "#define _GLIBCXX_USE_WIN32_SLEEP 1" >>confdefs.h
21819 else
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sleep" >&5
21821 $as_echo_n "checking for sleep... " >&6; }
21822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21823 /* end confdefs.h. */
21824 #include <unistd.h>
21826 main ()
21828 sleep(1)
21830 return 0;
21832 _ACEOF
21833 if ac_fn_cxx_try_compile "$LINENO"; then :
21834 ac_has_sleep=yes
21835 else
21836 ac_has_sleep=no
21838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21839 if test x"$ac_has_sleep" = x"yes"; then
21841 $as_echo "#define HAVE_SLEEP 1" >>confdefs.h
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_sleep" >&5
21845 $as_echo "$ac_has_sleep" >&6; }
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usleep" >&5
21847 $as_echo_n "checking for usleep... " >&6; }
21848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21849 /* end confdefs.h. */
21850 #include <unistd.h>
21852 main ()
21854 sleep(1);
21855 usleep(100);
21857 return 0;
21859 _ACEOF
21860 if ac_fn_cxx_try_compile "$LINENO"; then :
21861 ac_has_usleep=yes
21862 else
21863 ac_has_usleep=no
21865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21866 if test x"$ac_has_usleep" = x"yes"; then
21868 $as_echo "#define HAVE_USLEEP 1" >>confdefs.h
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_usleep" >&5
21872 $as_echo "$ac_has_usleep" >&6; }
21875 if test x"$ac_has_nanosleep$ac_has_win32_sleep$ac_has_sleep" = x"nonono"; then
21877 $as_echo "#define _GLIBCXX_NO_SLEEP 1" >>confdefs.h
21883 CXXFLAGS="$ac_save_CXXFLAGS"
21884 LIBS="$ac_save_LIBS"
21885 ac_ext=c
21886 ac_cpp='$CPP $CPPFLAGS'
21887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21893 # Check for tmpnam which is obsolescent in POSIX.1-2008
21895 ac_ext=cpp
21896 ac_cpp='$CXXCPP $CPPFLAGS'
21897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21901 ac_save_CXXFLAGS="$CXXFLAGS"
21902 CXXFLAGS="$CXXFLAGS -fno-exceptions"
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tmpnam" >&5
21904 $as_echo_n "checking for tmpnam... " >&6; }
21905 if ${glibcxx_cv_TMPNAM+:} false; then :
21906 $as_echo_n "(cached) " >&6
21907 else
21908 if test x$gcc_no_link = xyes; then
21909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21910 /* end confdefs.h. */
21911 #include <stdio.h>
21913 main ()
21915 char *tmp = tmpnam(NULL);
21917 return 0;
21919 _ACEOF
21920 if ac_fn_cxx_try_compile "$LINENO"; then :
21921 glibcxx_cv_TMPNAM=yes
21922 else
21923 glibcxx_cv_TMPNAM=no
21925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21926 else
21927 if test x$gcc_no_link = xyes; then
21928 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21931 /* end confdefs.h. */
21932 #include <stdio.h>
21934 main ()
21936 char *tmp = tmpnam(NULL);
21938 return 0;
21940 _ACEOF
21941 if ac_fn_cxx_try_link "$LINENO"; then :
21942 glibcxx_cv_TMPNAM=yes
21943 else
21944 glibcxx_cv_TMPNAM=no
21946 rm -f core conftest.err conftest.$ac_objext \
21947 conftest$ac_exeext conftest.$ac_ext
21951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_TMPNAM" >&5
21952 $as_echo "$glibcxx_cv_TMPNAM" >&6; }
21953 if test $glibcxx_cv_TMPNAM = yes; then
21955 $as_echo "#define _GLIBCXX_USE_TMPNAM 1" >>confdefs.h
21958 CXXFLAGS="$ac_save_CXXFLAGS"
21959 ac_ext=c
21960 ac_cpp='$CPP $CPPFLAGS'
21961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21967 # For pthread_cond_clockwait
21971 ac_ext=cpp
21972 ac_cpp='$CXXCPP $CPPFLAGS'
21973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21977 ac_save_CXXFLAGS="$CXXFLAGS"
21978 CXXFLAGS="$CXXFLAGS -fno-exceptions"
21979 ac_save_LIBS="$LIBS"
21980 LIBS="$LIBS -lpthread"
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_clockwait" >&5
21983 $as_echo_n "checking for pthread_cond_clockwait... " >&6; }
21984 if ${glibcxx_cv_PTHREAD_COND_CLOCKWAIT+:} false; then :
21985 $as_echo_n "(cached) " >&6
21986 else
21988 if test x$gcc_no_link = xyes; then
21989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21990 /* end confdefs.h. */
21991 #include <pthread.h>
21993 main ()
21995 pthread_mutex_t mutex; pthread_cond_t cond; struct timespec ts; int n = pthread_cond_clockwait(&cond, &mutex, 0, &ts);
21997 return 0;
21999 _ACEOF
22000 if ac_fn_cxx_try_compile "$LINENO"; then :
22001 glibcxx_cv_PTHREAD_COND_CLOCKWAIT=yes
22002 else
22003 glibcxx_cv_PTHREAD_COND_CLOCKWAIT=no
22005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22006 else
22007 if test x$gcc_no_link = xyes; then
22008 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22011 /* end confdefs.h. */
22012 #include <pthread.h>
22014 main ()
22016 pthread_mutex_t mutex; pthread_cond_t cond; struct timespec ts; int n = pthread_cond_clockwait(&cond, &mutex, 0, &ts);
22018 return 0;
22020 _ACEOF
22021 if ac_fn_cxx_try_link "$LINENO"; then :
22022 glibcxx_cv_PTHREAD_COND_CLOCKWAIT=yes
22023 else
22024 glibcxx_cv_PTHREAD_COND_CLOCKWAIT=no
22026 rm -f core conftest.err conftest.$ac_objext \
22027 conftest$ac_exeext conftest.$ac_ext
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_PTHREAD_COND_CLOCKWAIT" >&5
22032 $as_echo "$glibcxx_cv_PTHREAD_COND_CLOCKWAIT" >&6; }
22033 if test $glibcxx_cv_PTHREAD_COND_CLOCKWAIT = yes; then
22035 $as_echo "#define _GLIBCXX_USE_PTHREAD_COND_CLOCKWAIT 1" >>confdefs.h
22039 CXXFLAGS="$ac_save_CXXFLAGS"
22040 LIBS="$ac_save_LIBS"
22041 ac_ext=c
22042 ac_cpp='$CPP $CPPFLAGS'
22043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22049 # For pthread_mutex_clocklock
22053 ac_ext=cpp
22054 ac_cpp='$CXXCPP $CPPFLAGS'
22055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22059 ac_save_CXXFLAGS="$CXXFLAGS"
22060 CXXFLAGS="$CXXFLAGS -fno-exceptions"
22061 ac_save_LIBS="$LIBS"
22062 LIBS="$LIBS -lpthread"
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_clocklock" >&5
22065 $as_echo_n "checking for pthread_mutex_clocklock... " >&6; }
22066 if ${glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK+:} false; then :
22067 $as_echo_n "(cached) " >&6
22068 else
22070 if test x$gcc_no_link = xyes; then
22071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22072 /* end confdefs.h. */
22073 #include <pthread.h>
22075 main ()
22077 pthread_mutex_t mutex; struct timespec ts; int n = pthread_mutex_clocklock(&mutex, CLOCK_REALTIME, &ts);
22079 return 0;
22081 _ACEOF
22082 if ac_fn_cxx_try_compile "$LINENO"; then :
22083 glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK=yes
22084 else
22085 glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK=no
22087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22088 else
22089 if test x$gcc_no_link = xyes; then
22090 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22093 /* end confdefs.h. */
22094 #include <pthread.h>
22096 main ()
22098 pthread_mutex_t mutex; struct timespec ts; int n = pthread_mutex_clocklock(&mutex, CLOCK_REALTIME, &ts);
22100 return 0;
22102 _ACEOF
22103 if ac_fn_cxx_try_link "$LINENO"; then :
22104 glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK=yes
22105 else
22106 glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK=no
22108 rm -f core conftest.err conftest.$ac_objext \
22109 conftest$ac_exeext conftest.$ac_ext
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK" >&5
22114 $as_echo "$glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK" >&6; }
22115 if test $glibcxx_cv_PTHREAD_MUTEX_CLOCKLOCK = yes; then
22117 $as_echo "#define _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK (_GLIBCXX_TSAN==0)" >>confdefs.h
22121 CXXFLAGS="$ac_save_CXXFLAGS"
22122 LIBS="$ac_save_LIBS"
22123 ac_ext=c
22124 ac_cpp='$CPP $CPPFLAGS'
22125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22131 # For pthread_rwlock_clockrdlock and pthread_rwlock_clockwrlock
22135 ac_ext=cpp
22136 ac_cpp='$CXXCPP $CPPFLAGS'
22137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22141 ac_save_CXXFLAGS="$CXXFLAGS"
22142 CXXFLAGS="$CXXFLAGS -fno-exceptions"
22143 ac_save_LIBS="$LIBS"
22144 LIBS="$LIBS -lpthread"
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_clockrdlock, pthread_wlock_clockwrlock" >&5
22147 $as_echo_n "checking for pthread_rwlock_clockrdlock, pthread_wlock_clockwrlock... " >&6; }
22148 if ${glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK+:} false; then :
22149 $as_echo_n "(cached) " >&6
22150 else
22152 if test x$gcc_no_link = xyes; then
22153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22154 /* end confdefs.h. */
22155 #include <pthread.h>
22157 main ()
22159 pthread_rwlock_t rwl; struct timespec ts;
22160 int n = pthread_rwlock_clockrdlock(&rwl, CLOCK_REALTIME, &ts);
22161 int m = pthread_rwlock_clockwrlock(&rwl, CLOCK_REALTIME, &ts);
22163 return 0;
22165 _ACEOF
22166 if ac_fn_cxx_try_compile "$LINENO"; then :
22167 glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK=yes
22168 else
22169 glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK=no
22171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22172 else
22173 if test x$gcc_no_link = xyes; then
22174 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22177 /* end confdefs.h. */
22178 #include <pthread.h>
22180 main ()
22182 pthread_rwlock_t rwl; struct timespec ts;
22183 int n = pthread_rwlock_clockrdlock(&rwl, CLOCK_REALTIME, &ts);
22184 int m = pthread_rwlock_clockwrlock(&rwl, CLOCK_REALTIME, &ts);
22186 return 0;
22188 _ACEOF
22189 if ac_fn_cxx_try_link "$LINENO"; then :
22190 glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK=yes
22191 else
22192 glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK=no
22194 rm -f core conftest.err conftest.$ac_objext \
22195 conftest$ac_exeext conftest.$ac_ext
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK" >&5
22200 $as_echo "$glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK" >&6; }
22201 if test $glibcxx_cv_PTHREAD_RWLOCK_CLOCKLOCK = yes; then
22203 $as_echo "#define _GLIBCXX_USE_PTHREAD_RWLOCK_CLOCKLOCK 1" >>confdefs.h
22207 CXXFLAGS="$ac_save_CXXFLAGS"
22208 LIBS="$ac_save_LIBS"
22209 ac_ext=c
22210 ac_cpp='$CPP $CPPFLAGS'
22211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22218 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
22219 if test "x$ac_cv_header_locale_h" = xyes; then :
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
22222 $as_echo_n "checking for LC_MESSAGES... " >&6; }
22223 if ${ac_cv_val_LC_MESSAGES+:} false; then :
22224 $as_echo_n "(cached) " >&6
22225 else
22226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22227 /* end confdefs.h. */
22228 #include <locale.h>
22230 main ()
22232 return LC_MESSAGES
22234 return 0;
22236 _ACEOF
22237 if ac_fn_c_try_compile "$LINENO"; then :
22238 ac_cv_val_LC_MESSAGES=yes
22239 else
22240 ac_cv_val_LC_MESSAGES=no
22242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_val_LC_MESSAGES" >&5
22245 $as_echo "$ac_cv_val_LC_MESSAGES" >&6; }
22246 if test $ac_cv_val_LC_MESSAGES = yes; then
22248 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
22257 # For hardware_concurrency
22258 for ac_header in sys/sysinfo.h
22259 do :
22260 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"
22261 if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then :
22262 cat >>confdefs.h <<_ACEOF
22263 #define HAVE_SYS_SYSINFO_H 1
22264 _ACEOF
22268 done
22273 ac_ext=cpp
22274 ac_cpp='$CXXCPP $CPPFLAGS'
22275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22279 ac_save_CXXFLAGS="$CXXFLAGS"
22280 CXXFLAGS="$CXXFLAGS -fno-exceptions"
22282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for get_nprocs" >&5
22283 $as_echo_n "checking for get_nprocs... " >&6; }
22284 if ${glibcxx_cv_GET_NPROCS+:} false; then :
22285 $as_echo_n "(cached) " >&6
22286 else
22288 if test x$gcc_no_link = xyes; then
22289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22290 /* end confdefs.h. */
22291 #include <sys/sysinfo.h>
22293 main ()
22295 int n = get_nprocs();
22297 return 0;
22299 _ACEOF
22300 if ac_fn_cxx_try_compile "$LINENO"; then :
22301 glibcxx_cv_GET_NPROCS=yes
22302 else
22303 glibcxx_cv_GET_NPROCS=no
22305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22306 else
22307 if test x$gcc_no_link = xyes; then
22308 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22311 /* end confdefs.h. */
22312 #include <sys/sysinfo.h>
22314 main ()
22316 int n = get_nprocs();
22318 return 0;
22320 _ACEOF
22321 if ac_fn_cxx_try_link "$LINENO"; then :
22322 glibcxx_cv_GET_NPROCS=yes
22323 else
22324 glibcxx_cv_GET_NPROCS=no
22326 rm -f core conftest.err conftest.$ac_objext \
22327 conftest$ac_exeext conftest.$ac_ext
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_GET_NPROCS" >&5
22332 $as_echo "$glibcxx_cv_GET_NPROCS" >&6; }
22333 if test $glibcxx_cv_GET_NPROCS = yes; then
22335 $as_echo "#define _GLIBCXX_USE_GET_NPROCS 1" >>confdefs.h
22339 CXXFLAGS="$ac_save_CXXFLAGS"
22340 ac_ext=c
22341 ac_cpp='$CPP $CPPFLAGS'
22342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22347 for ac_header in unistd.h
22348 do :
22349 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
22350 if test "x$ac_cv_header_unistd_h" = xyes; then :
22351 cat >>confdefs.h <<_ACEOF
22352 #define HAVE_UNISTD_H 1
22353 _ACEOF
22357 done
22362 ac_ext=cpp
22363 ac_cpp='$CXXCPP $CPPFLAGS'
22364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22368 ac_save_CXXFLAGS="$CXXFLAGS"
22369 CXXFLAGS="$CXXFLAGS -fno-exceptions"
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SC_NPROCESSORS_ONLN" >&5
22372 $as_echo_n "checking for _SC_NPROCESSORS_ONLN... " >&6; }
22373 if ${glibcxx_cv_SC_NPROCESSORS_ONLN+:} false; then :
22374 $as_echo_n "(cached) " >&6
22375 else
22377 if test x$gcc_no_link = xyes; then
22378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22379 /* end confdefs.h. */
22380 #include <unistd.h>
22382 main ()
22384 int n = sysconf(_SC_NPROCESSORS_ONLN);
22386 return 0;
22388 _ACEOF
22389 if ac_fn_cxx_try_compile "$LINENO"; then :
22390 glibcxx_cv_SC_NPROCESSORS_ONLN=yes
22391 else
22392 glibcxx_cv_SC_NPROCESSORS_ONLN=no
22394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22395 else
22396 if test x$gcc_no_link = xyes; then
22397 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22400 /* end confdefs.h. */
22401 #include <unistd.h>
22403 main ()
22405 int n = sysconf(_SC_NPROCESSORS_ONLN);
22407 return 0;
22409 _ACEOF
22410 if ac_fn_cxx_try_link "$LINENO"; then :
22411 glibcxx_cv_SC_NPROCESSORS_ONLN=yes
22412 else
22413 glibcxx_cv_SC_NPROCESSORS_ONLN=no
22415 rm -f core conftest.err conftest.$ac_objext \
22416 conftest$ac_exeext conftest.$ac_ext
22420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_SC_NPROCESSORS_ONLN" >&5
22421 $as_echo "$glibcxx_cv_SC_NPROCESSORS_ONLN" >&6; }
22422 if test $glibcxx_cv_SC_NPROCESSORS_ONLN = yes; then
22424 $as_echo "#define _GLIBCXX_USE_SC_NPROCESSORS_ONLN 1" >>confdefs.h
22428 CXXFLAGS="$ac_save_CXXFLAGS"
22429 ac_ext=c
22430 ac_cpp='$CPP $CPPFLAGS'
22431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22439 ac_ext=cpp
22440 ac_cpp='$CXXCPP $CPPFLAGS'
22441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22445 ac_save_CXXFLAGS="$CXXFLAGS"
22446 CXXFLAGS="$CXXFLAGS -fno-exceptions"
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _SC_NPROC_ONLN" >&5
22449 $as_echo_n "checking for _SC_NPROC_ONLN... " >&6; }
22450 if ${glibcxx_cv_SC_NPROC_ONLN+:} false; then :
22451 $as_echo_n "(cached) " >&6
22452 else
22454 if test x$gcc_no_link = xyes; then
22455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22456 /* end confdefs.h. */
22457 #include <unistd.h>
22459 main ()
22461 int n = sysconf(_SC_NPROC_ONLN);
22463 return 0;
22465 _ACEOF
22466 if ac_fn_cxx_try_compile "$LINENO"; then :
22467 glibcxx_cv_SC_NPROC_ONLN=yes
22468 else
22469 glibcxx_cv_SC_NPROC_ONLN=no
22471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22472 else
22473 if test x$gcc_no_link = xyes; then
22474 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22477 /* end confdefs.h. */
22478 #include <unistd.h>
22480 main ()
22482 int n = sysconf(_SC_NPROC_ONLN);
22484 return 0;
22486 _ACEOF
22487 if ac_fn_cxx_try_link "$LINENO"; then :
22488 glibcxx_cv_SC_NPROC_ONLN=yes
22489 else
22490 glibcxx_cv_SC_NPROC_ONLN=no
22492 rm -f core conftest.err conftest.$ac_objext \
22493 conftest$ac_exeext conftest.$ac_ext
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_SC_NPROC_ONLN" >&5
22498 $as_echo "$glibcxx_cv_SC_NPROC_ONLN" >&6; }
22499 if test $glibcxx_cv_SC_NPROC_ONLN = yes; then
22501 $as_echo "#define _GLIBCXX_USE_SC_NPROC_ONLN 1" >>confdefs.h
22505 CXXFLAGS="$ac_save_CXXFLAGS"
22506 ac_ext=c
22507 ac_cpp='$CPP $CPPFLAGS'
22508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22516 ac_ext=cpp
22517 ac_cpp='$CXXCPP $CPPFLAGS'
22518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22522 ac_save_CXXFLAGS="$CXXFLAGS"
22523 CXXFLAGS="$CXXFLAGS -fno-exceptions"
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthreads_num_processors_np" >&5
22526 $as_echo_n "checking for pthreads_num_processors_np... " >&6; }
22527 if ${glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP+:} false; then :
22528 $as_echo_n "(cached) " >&6
22529 else
22531 if test x$gcc_no_link = xyes; then
22532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22533 /* end confdefs.h. */
22534 #include <pthread.h>
22536 main ()
22538 int n = pthread_num_processors_np();
22540 return 0;
22542 _ACEOF
22543 if ac_fn_cxx_try_compile "$LINENO"; then :
22544 glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP=yes
22545 else
22546 glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP=no
22548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22549 else
22550 if test x$gcc_no_link = xyes; then
22551 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22554 /* end confdefs.h. */
22555 #include <pthread.h>
22557 main ()
22559 int n = pthread_num_processors_np();
22561 return 0;
22563 _ACEOF
22564 if ac_fn_cxx_try_link "$LINENO"; then :
22565 glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP=yes
22566 else
22567 glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP=no
22569 rm -f core conftest.err conftest.$ac_objext \
22570 conftest$ac_exeext conftest.$ac_ext
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP" >&5
22575 $as_echo "$glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP" >&6; }
22576 if test $glibcxx_cv_PTHREADS_NUM_PROCESSORS_NP = yes; then
22578 $as_echo "#define _GLIBCXX_USE_PTHREADS_NUM_PROCESSORS_NP 1" >>confdefs.h
22582 CXXFLAGS="$ac_save_CXXFLAGS"
22583 ac_ext=c
22584 ac_cpp='$CPP $CPPFLAGS'
22585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22593 ac_ext=cpp
22594 ac_cpp='$CXXCPP $CPPFLAGS'
22595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22599 ac_save_CXXFLAGS="$CXXFLAGS"
22600 CXXFLAGS="$CXXFLAGS -fno-exceptions"
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hw.ncpu sysctl" >&5
22603 $as_echo_n "checking for hw.ncpu sysctl... " >&6; }
22604 if ${glibcxx_cv_SYSCTL_HW_NCPU+:} false; then :
22605 $as_echo_n "(cached) " >&6
22606 else
22608 if test x$gcc_no_link = xyes; then
22609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22610 /* end confdefs.h. */
22612 #include <stddef.h>
22613 #include <sys/sysctl.h>
22616 main ()
22619 int count;
22620 size_t size = sizeof(count);
22621 int mib[] = { CTL_HW, HW_NCPU };
22622 sysctl(mib, 2, &count, &size, NULL, 0);
22625 return 0;
22627 _ACEOF
22628 if ac_fn_cxx_try_compile "$LINENO"; then :
22629 glibcxx_cv_SYSCTL_HW_NCPU=yes
22630 else
22631 glibcxx_cv_SYSCTL_HW_NCPU=no
22633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22634 else
22635 if test x$gcc_no_link = xyes; then
22636 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22639 /* end confdefs.h. */
22641 #include <stddef.h>
22642 #include <sys/sysctl.h>
22645 main ()
22648 int count;
22649 size_t size = sizeof(count);
22650 int mib[] = { CTL_HW, HW_NCPU };
22651 sysctl(mib, 2, &count, &size, NULL, 0);
22654 return 0;
22656 _ACEOF
22657 if ac_fn_cxx_try_link "$LINENO"; then :
22658 glibcxx_cv_SYSCTL_HW_NCPU=yes
22659 else
22660 glibcxx_cv_SYSCTL_HW_NCPU=no
22662 rm -f core conftest.err conftest.$ac_objext \
22663 conftest$ac_exeext conftest.$ac_ext
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_SYSCTL_HW_NCPU" >&5
22668 $as_echo "$glibcxx_cv_SYSCTL_HW_NCPU" >&6; }
22669 if test $glibcxx_cv_SYSCTL_HW_NCPU = yes; then
22671 $as_echo "#define _GLIBCXX_USE_SYSCTL_HW_NCPU 1" >>confdefs.h
22675 CXXFLAGS="$ac_save_CXXFLAGS"
22676 ac_ext=c
22677 ac_cpp='$CPP $CPPFLAGS'
22678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22684 # Note that this test has to be run with the C language.
22685 # Otherwise, sdt.h will try to include some headers from
22686 # libstdc++ itself.
22688 ac_ext=c
22689 ac_cpp='$CPP $CPPFLAGS'
22690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable sys/sdt.h" >&5
22695 $as_echo_n "checking for suitable sys/sdt.h... " >&6; }
22696 if ${glibcxx_cv_sys_sdt_h+:} false; then :
22697 $as_echo_n "(cached) " >&6
22698 else
22700 # Because we have to run the test in C, we use grep rather
22701 # than the compiler to check for the bug. The bug is that
22702 # were strings without trailing whitespace, causing g++
22703 # to look for operator"". The pattern searches for the fixed
22704 # output.
22705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22706 /* end confdefs.h. */
22708 #include <sys/sdt.h>
22709 int f() { STAP_PROBE(hi, bob); }
22711 _ACEOF
22712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22713 $EGREP " \",\" " >/dev/null 2>&1; then :
22714 glibcxx_cv_sys_sdt_h=yes
22715 else
22716 glibcxx_cv_sys_sdt_h=no
22718 rm -f conftest*
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sys_sdt_h" >&5
22723 $as_echo "$glibcxx_cv_sys_sdt_h" >&6; }
22724 ac_ext=c
22725 ac_cpp='$CPP $CPPFLAGS'
22726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22730 if test $glibcxx_cv_sys_sdt_h = yes; then
22732 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
22737 # Check for available headers.
22738 for ac_header in endian.h execinfo.h float.h fp.h ieeefp.h inttypes.h \
22739 locale.h machine/endian.h machine/param.h nan.h stdint.h stdlib.h string.h \
22740 strings.h sys/ipc.h sys/isa_defs.h sys/machine.h sys/param.h \
22741 sys/resource.h sys/sem.h sys/stat.h sys/time.h sys/types.h unistd.h \
22742 wchar.h wctype.h linux/types.h
22743 do :
22744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22745 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22746 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22747 cat >>confdefs.h <<_ACEOF
22748 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22749 _ACEOF
22753 done
22756 for ac_header in linux/random.h
22757 do :
22758 ac_fn_c_check_header_compile "$LINENO" "linux/random.h" "ac_cv_header_linux_random_h" "#ifdef HAVE_LINUX_TYPES_H
22759 # include <linux/types.h>
22760 #endif
22763 if test "x$ac_cv_header_linux_random_h" = xyes; then :
22764 cat >>confdefs.h <<_ACEOF
22765 #define HAVE_LINUX_RANDOM_H 1
22766 _ACEOF
22770 done
22773 for ac_header in xlocale.h
22774 do :
22775 ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
22776 if test "x$ac_cv_header_xlocale_h" = xyes; then :
22777 cat >>confdefs.h <<_ACEOF
22778 #define HAVE_XLOCALE_H 1
22779 _ACEOF
22783 done
22786 # Only do link tests if native. Else, hardcode.
22787 if $GLIBCXX_IS_NATIVE; then
22789 # We can do more elaborate tests that assume a working linker.
22790 CANADIAN=no
22794 # Check whether --with-gnu-ld was given.
22795 if test "${with_gnu_ld+set}" = set; then :
22796 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22797 else
22798 with_gnu_ld=no
22801 ac_prog=ld
22802 if test "$GCC" = yes; then
22803 # Check if gcc -print-prog-name=ld gives a path.
22804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
22805 $as_echo_n "checking for ld used by $CC... " >&6; }
22806 case $host in
22807 *-*-mingw*)
22808 # gcc leaves a trailing carriage return which upsets mingw
22809 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22811 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22812 esac
22813 case $ac_prog in
22814 # Accept absolute paths.
22815 [\\/]* | ?:[\\/]*)
22816 re_direlt='/[^/][^/]*/\.\./'
22817 # Canonicalize the pathname of ld
22818 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
22819 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
22820 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
22821 done
22822 test -z "$LD" && LD="$ac_prog"
22825 # If it fails, then pretend we aren't using GCC.
22826 ac_prog=ld
22829 # If it is relative, then search for the first ld in PATH.
22830 with_gnu_ld=unknown
22832 esac
22833 elif test "$with_gnu_ld" = yes; then
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
22835 $as_echo_n "checking for GNU ld... " >&6; }
22836 else
22837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
22838 $as_echo_n "checking for non-GNU ld... " >&6; }
22840 if ${lt_cv_path_LD+:} false; then :
22841 $as_echo_n "(cached) " >&6
22842 else
22843 if test -z "$LD"; then
22844 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22845 for ac_dir in $PATH; do
22846 IFS="$lt_save_ifs"
22847 test -z "$ac_dir" && ac_dir=.
22848 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22849 lt_cv_path_LD="$ac_dir/$ac_prog"
22850 # Check to see if the program is GNU ld. I'd rather use --version,
22851 # but apparently some variants of GNU ld only accept -v.
22852 # Break only if it was the GNU/non-GNU ld that we prefer.
22853 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22854 *GNU* | *'with BFD'*)
22855 test "$with_gnu_ld" != no && break
22858 test "$with_gnu_ld" != yes && break
22860 esac
22862 done
22863 IFS="$lt_save_ifs"
22864 else
22865 lt_cv_path_LD="$LD" # Let the user override the test with a path.
22869 LD="$lt_cv_path_LD"
22870 if test -n "$LD"; then
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
22872 $as_echo "$LD" >&6; }
22873 else
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22875 $as_echo "no" >&6; }
22877 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
22879 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22880 if ${lt_cv_prog_gnu_ld+:} false; then :
22881 $as_echo_n "(cached) " >&6
22882 else
22883 # I'd rather use --version here, but apparently some GNU lds only accept -v.
22884 case `$LD -v 2>&1 </dev/null` in
22885 *GNU* | *'with BFD'*)
22886 lt_cv_prog_gnu_ld=yes
22889 lt_cv_prog_gnu_ld=no
22891 esac
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
22894 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
22895 with_gnu_ld=$lt_cv_prog_gnu_ld
22903 # If we're not using GNU ld, then there's no point in even trying these
22904 # tests. Check for that first. We should have already tested for gld
22905 # by now (in libtool), but require it now just to be safe...
22906 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
22907 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
22911 # The name set by libtool depends on the version of libtool. Shame on us
22912 # for depending on an impl detail, but c'est la vie. Older versions used
22913 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
22914 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
22915 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
22916 # set (hence we're using an older libtool), then set it.
22917 if test x${with_gnu_ld+set} != xset; then
22918 if test x${ac_cv_prog_gnu_ld+set} != xset; then
22919 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
22920 with_gnu_ld=no
22921 else
22922 with_gnu_ld=$ac_cv_prog_gnu_ld
22926 # Start by getting the version number. I think the libtool test already
22927 # does some of this, but throws away the result.
22928 glibcxx_ld_is_gold=no
22929 glibcxx_ld_is_mold=no
22930 if test x"$with_gnu_ld" = x"yes"; then
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
22932 $as_echo_n "checking for ld version... " >&6; }
22934 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
22935 glibcxx_ld_is_gold=yes
22936 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
22937 glibcxx_ld_is_mold=yes
22939 ldver=`$LD --version 2>/dev/null |
22940 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
22942 glibcxx_gnu_ld_version=`echo $ldver | \
22943 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
22945 $as_echo "$glibcxx_gnu_ld_version" >&6; }
22948 # Set --gc-sections.
22949 glibcxx_have_gc_sections=no
22950 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
22951 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
22952 glibcxx_have_gc_sections=yes
22954 else
22955 glibcxx_gcsections_min_ld=21602
22956 if test x"$with_gnu_ld" = x"yes" &&
22957 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
22958 glibcxx_have_gc_sections=yes
22961 if test "$glibcxx_have_gc_sections" = "yes"; then
22962 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
22963 # NB: This flag only works reliably after 2.16.1. Configure tests
22964 # for this are difficult, so hard wire a value that should work.
22966 ac_test_CFLAGS="${CFLAGS+set}"
22967 ac_save_CFLAGS="$CFLAGS"
22968 CFLAGS='-Wl,--gc-sections'
22970 # Check for -Wl,--gc-sections
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
22972 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
22973 if test x$gcc_no_link = xyes; then
22974 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22977 /* end confdefs.h. */
22978 int one(void) { return 1; }
22979 int two(void) { return 2; }
22982 main ()
22984 two();
22986 return 0;
22988 _ACEOF
22989 if ac_fn_c_try_link "$LINENO"; then :
22990 ac_gcsections=yes
22991 else
22992 ac_gcsections=no
22994 rm -f core conftest.err conftest.$ac_objext \
22995 conftest$ac_exeext conftest.$ac_ext
22996 if test "$ac_gcsections" = "yes"; then
22997 rm -f conftest.c
22998 touch conftest.c
22999 if $CC -c conftest.c; then
23000 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
23001 grep "Warning: gc-sections option ignored" > /dev/null; then
23002 ac_gcsections=no
23005 rm -f conftest.c conftest.o conftest
23007 if test "$ac_gcsections" = "yes"; then
23008 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
23011 $as_echo "$ac_gcsections" >&6; }
23013 if test "$ac_test_CFLAGS" = set; then
23014 CFLAGS="$ac_save_CFLAGS"
23015 else
23016 # this is the suspicious part
23017 CFLAGS=''
23021 # Set -z,relro.
23022 # Note this is only for shared objects.
23023 ac_ld_relro=no
23024 if test x"$with_gnu_ld" = x"yes"; then
23025 # cygwin and mingw uses PE, which has no ELF relro support,
23026 # multi target ld may confuse configure machinery
23027 case "$host" in
23028 *-*-cygwin*)
23030 *-*-mingw*)
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
23034 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
23035 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
23036 if test -n "$cxx_z_relo"; then
23037 OPT_LDFLAGS="-Wl,-z,relro"
23038 ac_ld_relro=yes
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
23041 $as_echo "$ac_ld_relro" >&6; }
23042 esac
23045 # Set linker optimization flags.
23046 if test x"$with_gnu_ld" = x"yes"; then
23047 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
23054 ac_test_CXXFLAGS="${CXXFLAGS+set}"
23055 ac_save_CXXFLAGS="$CXXFLAGS"
23056 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
23059 $as_echo_n "checking for sin in -lm... " >&6; }
23060 if ${ac_cv_lib_m_sin+:} false; then :
23061 $as_echo_n "(cached) " >&6
23062 else
23063 ac_check_lib_save_LIBS=$LIBS
23064 LIBS="-lm $LIBS"
23065 if test x$gcc_no_link = xyes; then
23066 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23069 /* end confdefs.h. */
23071 /* Override any GCC internal prototype to avoid an error.
23072 Use char because int might match the return type of a GCC
23073 builtin and then its argument prototype would still apply. */
23074 #ifdef __cplusplus
23075 extern "C"
23076 #endif
23077 char sin ();
23079 main ()
23081 return sin ();
23083 return 0;
23085 _ACEOF
23086 if ac_fn_c_try_link "$LINENO"; then :
23087 ac_cv_lib_m_sin=yes
23088 else
23089 ac_cv_lib_m_sin=no
23091 rm -f core conftest.err conftest.$ac_objext \
23092 conftest$ac_exeext conftest.$ac_ext
23093 LIBS=$ac_check_lib_save_LIBS
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
23096 $as_echo "$ac_cv_lib_m_sin" >&6; }
23097 if test "x$ac_cv_lib_m_sin" = xyes; then :
23098 libm="-lm"
23101 ac_save_LIBS="$LIBS"
23102 LIBS="$LIBS $libm"
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
23107 $as_echo_n "checking for isinf declaration... " >&6; }
23108 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
23109 if ${glibcxx_cv_func_isinf_use+:} false; then :
23110 $as_echo_n "(cached) " >&6
23111 else
23114 ac_ext=cpp
23115 ac_cpp='$CXXCPP $CPPFLAGS'
23116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23121 /* end confdefs.h. */
23122 #include <math.h>
23123 #ifdef HAVE_IEEEFP_H
23124 #include <ieeefp.h>
23125 #endif
23128 main ()
23130 isinf(0);
23132 return 0;
23134 _ACEOF
23135 if ac_fn_cxx_try_compile "$LINENO"; then :
23136 glibcxx_cv_func_isinf_use=yes
23137 else
23138 glibcxx_cv_func_isinf_use=no
23140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23141 ac_ext=c
23142 ac_cpp='$CPP $CPPFLAGS'
23143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
23152 $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
23154 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
23155 for ac_func in isinf
23156 do :
23157 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
23158 if test "x$ac_cv_func_isinf" = xyes; then :
23159 cat >>confdefs.h <<_ACEOF
23160 #define HAVE_ISINF 1
23161 _ACEOF
23164 done
23170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
23171 $as_echo_n "checking for isnan declaration... " >&6; }
23172 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
23173 if ${glibcxx_cv_func_isnan_use+:} false; then :
23174 $as_echo_n "(cached) " >&6
23175 else
23178 ac_ext=cpp
23179 ac_cpp='$CXXCPP $CPPFLAGS'
23180 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23181 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23182 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23185 /* end confdefs.h. */
23186 #include <math.h>
23187 #ifdef HAVE_IEEEFP_H
23188 #include <ieeefp.h>
23189 #endif
23192 main ()
23194 isnan(0);
23196 return 0;
23198 _ACEOF
23199 if ac_fn_cxx_try_compile "$LINENO"; then :
23200 glibcxx_cv_func_isnan_use=yes
23201 else
23202 glibcxx_cv_func_isnan_use=no
23204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23205 ac_ext=c
23206 ac_cpp='$CPP $CPPFLAGS'
23207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
23216 $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
23218 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
23219 for ac_func in isnan
23220 do :
23221 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
23222 if test "x$ac_cv_func_isnan" = xyes; then :
23223 cat >>confdefs.h <<_ACEOF
23224 #define HAVE_ISNAN 1
23225 _ACEOF
23228 done
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
23235 $as_echo_n "checking for finite declaration... " >&6; }
23236 if test x${glibcxx_cv_func_finite_use+set} != xset; then
23237 if ${glibcxx_cv_func_finite_use+:} false; then :
23238 $as_echo_n "(cached) " >&6
23239 else
23242 ac_ext=cpp
23243 ac_cpp='$CXXCPP $CPPFLAGS'
23244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23249 /* end confdefs.h. */
23250 #include <math.h>
23251 #ifdef HAVE_IEEEFP_H
23252 #include <ieeefp.h>
23253 #endif
23256 main ()
23258 finite(0);
23260 return 0;
23262 _ACEOF
23263 if ac_fn_cxx_try_compile "$LINENO"; then :
23264 glibcxx_cv_func_finite_use=yes
23265 else
23266 glibcxx_cv_func_finite_use=no
23268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23269 ac_ext=c
23270 ac_cpp='$CPP $CPPFLAGS'
23271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
23280 $as_echo "$glibcxx_cv_func_finite_use" >&6; }
23282 if test x$glibcxx_cv_func_finite_use = x"yes"; then
23283 for ac_func in finite
23284 do :
23285 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
23286 if test "x$ac_cv_func_finite" = xyes; then :
23287 cat >>confdefs.h <<_ACEOF
23288 #define HAVE_FINITE 1
23289 _ACEOF
23292 done
23298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
23299 $as_echo_n "checking for sincos declaration... " >&6; }
23300 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
23301 if ${glibcxx_cv_func_sincos_use+:} false; then :
23302 $as_echo_n "(cached) " >&6
23303 else
23306 ac_ext=cpp
23307 ac_cpp='$CXXCPP $CPPFLAGS'
23308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23313 /* end confdefs.h. */
23314 #include <math.h>
23316 main ()
23318 sincos(0, 0, 0);
23320 return 0;
23322 _ACEOF
23323 if ac_fn_cxx_try_compile "$LINENO"; then :
23324 glibcxx_cv_func_sincos_use=yes
23325 else
23326 glibcxx_cv_func_sincos_use=no
23328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23329 ac_ext=c
23330 ac_cpp='$CPP $CPPFLAGS'
23331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
23340 $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
23342 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
23343 for ac_func in sincos
23344 do :
23345 ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
23346 if test "x$ac_cv_func_sincos" = xyes; then :
23347 cat >>confdefs.h <<_ACEOF
23348 #define HAVE_SINCOS 1
23349 _ACEOF
23352 done
23358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
23359 $as_echo_n "checking for fpclass declaration... " >&6; }
23360 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
23361 if ${glibcxx_cv_func_fpclass_use+:} false; then :
23362 $as_echo_n "(cached) " >&6
23363 else
23366 ac_ext=cpp
23367 ac_cpp='$CXXCPP $CPPFLAGS'
23368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23373 /* end confdefs.h. */
23374 #include <math.h>
23375 #ifdef HAVE_IEEEFP_H
23376 #include <ieeefp.h>
23377 #endif
23380 main ()
23382 fpclass(0);
23384 return 0;
23386 _ACEOF
23387 if ac_fn_cxx_try_compile "$LINENO"; then :
23388 glibcxx_cv_func_fpclass_use=yes
23389 else
23390 glibcxx_cv_func_fpclass_use=no
23392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23393 ac_ext=c
23394 ac_cpp='$CPP $CPPFLAGS'
23395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
23404 $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
23406 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
23407 for ac_func in fpclass
23408 do :
23409 ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
23410 if test "x$ac_cv_func_fpclass" = xyes; then :
23411 cat >>confdefs.h <<_ACEOF
23412 #define HAVE_FPCLASS 1
23413 _ACEOF
23416 done
23422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
23423 $as_echo_n "checking for qfpclass declaration... " >&6; }
23424 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
23425 if ${glibcxx_cv_func_qfpclass_use+:} false; then :
23426 $as_echo_n "(cached) " >&6
23427 else
23430 ac_ext=cpp
23431 ac_cpp='$CXXCPP $CPPFLAGS'
23432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23437 /* end confdefs.h. */
23438 #include <math.h>
23439 #ifdef HAVE_IEEEFP_H
23440 #include <ieeefp.h>
23441 #endif
23444 main ()
23446 qfpclass(0);
23448 return 0;
23450 _ACEOF
23451 if ac_fn_cxx_try_compile "$LINENO"; then :
23452 glibcxx_cv_func_qfpclass_use=yes
23453 else
23454 glibcxx_cv_func_qfpclass_use=no
23456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23457 ac_ext=c
23458 ac_cpp='$CPP $CPPFLAGS'
23459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
23468 $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
23470 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
23471 for ac_func in qfpclass
23472 do :
23473 ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
23474 if test "x$ac_cv_func_qfpclass" = xyes; then :
23475 cat >>confdefs.h <<_ACEOF
23476 #define HAVE_QFPCLASS 1
23477 _ACEOF
23480 done
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
23487 $as_echo_n "checking for hypot declaration... " >&6; }
23488 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
23489 if ${glibcxx_cv_func_hypot_use+:} false; then :
23490 $as_echo_n "(cached) " >&6
23491 else
23494 ac_ext=cpp
23495 ac_cpp='$CXXCPP $CPPFLAGS'
23496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23501 /* end confdefs.h. */
23502 #include <math.h>
23504 main ()
23506 hypot(0, 0);
23508 return 0;
23510 _ACEOF
23511 if ac_fn_cxx_try_compile "$LINENO"; then :
23512 glibcxx_cv_func_hypot_use=yes
23513 else
23514 glibcxx_cv_func_hypot_use=no
23516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23517 ac_ext=c
23518 ac_cpp='$CPP $CPPFLAGS'
23519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
23528 $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
23530 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
23531 for ac_func in hypot
23532 do :
23533 ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
23534 if test "x$ac_cv_func_hypot" = xyes; then :
23535 cat >>confdefs.h <<_ACEOF
23536 #define HAVE_HYPOT 1
23537 _ACEOF
23540 done
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
23547 $as_echo_n "checking for float trig functions... " >&6; }
23548 if ${glibcxx_cv_func_float_trig_use+:} false; then :
23549 $as_echo_n "(cached) " >&6
23550 else
23553 ac_ext=cpp
23554 ac_cpp='$CXXCPP $CPPFLAGS'
23555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23560 /* end confdefs.h. */
23561 #include <math.h>
23563 main ()
23565 acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
23567 return 0;
23569 _ACEOF
23570 if ac_fn_cxx_try_compile "$LINENO"; then :
23571 glibcxx_cv_func_float_trig_use=yes
23572 else
23573 glibcxx_cv_func_float_trig_use=no
23575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23576 ac_ext=c
23577 ac_cpp='$CPP $CPPFLAGS'
23578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
23585 $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
23586 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
23587 for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
23588 do :
23589 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23590 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23591 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23592 cat >>confdefs.h <<_ACEOF
23593 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23594 _ACEOF
23597 done
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
23604 $as_echo_n "checking for float round functions... " >&6; }
23605 if ${glibcxx_cv_func_float_round_use+:} false; then :
23606 $as_echo_n "(cached) " >&6
23607 else
23610 ac_ext=cpp
23611 ac_cpp='$CXXCPP $CPPFLAGS'
23612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23617 /* end confdefs.h. */
23618 #include <math.h>
23620 main ()
23622 ceilf (0); floorf (0);
23624 return 0;
23626 _ACEOF
23627 if ac_fn_cxx_try_compile "$LINENO"; then :
23628 glibcxx_cv_func_float_round_use=yes
23629 else
23630 glibcxx_cv_func_float_round_use=no
23632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23633 ac_ext=c
23634 ac_cpp='$CPP $CPPFLAGS'
23635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
23642 $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
23643 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
23644 for ac_func in ceilf floorf
23645 do :
23646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23647 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23648 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23649 cat >>confdefs.h <<_ACEOF
23650 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23651 _ACEOF
23654 done
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
23662 $as_echo_n "checking for expf declaration... " >&6; }
23663 if test x${glibcxx_cv_func_expf_use+set} != xset; then
23664 if ${glibcxx_cv_func_expf_use+:} false; then :
23665 $as_echo_n "(cached) " >&6
23666 else
23669 ac_ext=cpp
23670 ac_cpp='$CXXCPP $CPPFLAGS'
23671 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23672 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23673 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23676 /* end confdefs.h. */
23677 #include <math.h>
23678 #ifdef HAVE_IEEEFP_H
23679 #include <ieeefp.h>
23680 #endif
23683 main ()
23685 expf(0);
23687 return 0;
23689 _ACEOF
23690 if ac_fn_cxx_try_compile "$LINENO"; then :
23691 glibcxx_cv_func_expf_use=yes
23692 else
23693 glibcxx_cv_func_expf_use=no
23695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23696 ac_ext=c
23697 ac_cpp='$CPP $CPPFLAGS'
23698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
23707 $as_echo "$glibcxx_cv_func_expf_use" >&6; }
23709 if test x$glibcxx_cv_func_expf_use = x"yes"; then
23710 for ac_func in expf
23711 do :
23712 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
23713 if test "x$ac_cv_func_expf" = xyes; then :
23714 cat >>confdefs.h <<_ACEOF
23715 #define HAVE_EXPF 1
23716 _ACEOF
23719 done
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
23726 $as_echo_n "checking for isnanf declaration... " >&6; }
23727 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
23728 if ${glibcxx_cv_func_isnanf_use+:} false; then :
23729 $as_echo_n "(cached) " >&6
23730 else
23733 ac_ext=cpp
23734 ac_cpp='$CXXCPP $CPPFLAGS'
23735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23740 /* end confdefs.h. */
23741 #include <math.h>
23742 #ifdef HAVE_IEEEFP_H
23743 #include <ieeefp.h>
23744 #endif
23747 main ()
23749 isnanf(0);
23751 return 0;
23753 _ACEOF
23754 if ac_fn_cxx_try_compile "$LINENO"; then :
23755 glibcxx_cv_func_isnanf_use=yes
23756 else
23757 glibcxx_cv_func_isnanf_use=no
23759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23760 ac_ext=c
23761 ac_cpp='$CPP $CPPFLAGS'
23762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
23771 $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
23773 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
23774 for ac_func in isnanf
23775 do :
23776 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
23777 if test "x$ac_cv_func_isnanf" = xyes; then :
23778 cat >>confdefs.h <<_ACEOF
23779 #define HAVE_ISNANF 1
23780 _ACEOF
23783 done
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
23790 $as_echo_n "checking for isinff declaration... " >&6; }
23791 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
23792 if ${glibcxx_cv_func_isinff_use+:} false; then :
23793 $as_echo_n "(cached) " >&6
23794 else
23797 ac_ext=cpp
23798 ac_cpp='$CXXCPP $CPPFLAGS'
23799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23804 /* end confdefs.h. */
23805 #include <math.h>
23806 #ifdef HAVE_IEEEFP_H
23807 #include <ieeefp.h>
23808 #endif
23811 main ()
23813 isinff(0);
23815 return 0;
23817 _ACEOF
23818 if ac_fn_cxx_try_compile "$LINENO"; then :
23819 glibcxx_cv_func_isinff_use=yes
23820 else
23821 glibcxx_cv_func_isinff_use=no
23823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23824 ac_ext=c
23825 ac_cpp='$CPP $CPPFLAGS'
23826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
23835 $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
23837 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
23838 for ac_func in isinff
23839 do :
23840 ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
23841 if test "x$ac_cv_func_isinff" = xyes; then :
23842 cat >>confdefs.h <<_ACEOF
23843 #define HAVE_ISINFF 1
23844 _ACEOF
23847 done
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
23854 $as_echo_n "checking for atan2f declaration... " >&6; }
23855 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
23856 if ${glibcxx_cv_func_atan2f_use+:} false; then :
23857 $as_echo_n "(cached) " >&6
23858 else
23861 ac_ext=cpp
23862 ac_cpp='$CXXCPP $CPPFLAGS'
23863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23868 /* end confdefs.h. */
23869 #include <math.h>
23871 main ()
23873 atan2f(0, 0);
23875 return 0;
23877 _ACEOF
23878 if ac_fn_cxx_try_compile "$LINENO"; then :
23879 glibcxx_cv_func_atan2f_use=yes
23880 else
23881 glibcxx_cv_func_atan2f_use=no
23883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23884 ac_ext=c
23885 ac_cpp='$CPP $CPPFLAGS'
23886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
23895 $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
23897 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
23898 for ac_func in atan2f
23899 do :
23900 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
23901 if test "x$ac_cv_func_atan2f" = xyes; then :
23902 cat >>confdefs.h <<_ACEOF
23903 #define HAVE_ATAN2F 1
23904 _ACEOF
23907 done
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
23914 $as_echo_n "checking for fabsf declaration... " >&6; }
23915 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
23916 if ${glibcxx_cv_func_fabsf_use+:} false; then :
23917 $as_echo_n "(cached) " >&6
23918 else
23921 ac_ext=cpp
23922 ac_cpp='$CXXCPP $CPPFLAGS'
23923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23928 /* end confdefs.h. */
23929 #include <math.h>
23930 #ifdef HAVE_IEEEFP_H
23931 #include <ieeefp.h>
23932 #endif
23935 main ()
23937 fabsf(0);
23939 return 0;
23941 _ACEOF
23942 if ac_fn_cxx_try_compile "$LINENO"; then :
23943 glibcxx_cv_func_fabsf_use=yes
23944 else
23945 glibcxx_cv_func_fabsf_use=no
23947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23948 ac_ext=c
23949 ac_cpp='$CPP $CPPFLAGS'
23950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
23959 $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
23961 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
23962 for ac_func in fabsf
23963 do :
23964 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
23965 if test "x$ac_cv_func_fabsf" = xyes; then :
23966 cat >>confdefs.h <<_ACEOF
23967 #define HAVE_FABSF 1
23968 _ACEOF
23971 done
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
23978 $as_echo_n "checking for fmodf declaration... " >&6; }
23979 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
23980 if ${glibcxx_cv_func_fmodf_use+:} false; then :
23981 $as_echo_n "(cached) " >&6
23982 else
23985 ac_ext=cpp
23986 ac_cpp='$CXXCPP $CPPFLAGS'
23987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23992 /* end confdefs.h. */
23993 #include <math.h>
23995 main ()
23997 fmodf(0, 0);
23999 return 0;
24001 _ACEOF
24002 if ac_fn_cxx_try_compile "$LINENO"; then :
24003 glibcxx_cv_func_fmodf_use=yes
24004 else
24005 glibcxx_cv_func_fmodf_use=no
24007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24008 ac_ext=c
24009 ac_cpp='$CPP $CPPFLAGS'
24010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
24019 $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
24021 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
24022 for ac_func in fmodf
24023 do :
24024 ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
24025 if test "x$ac_cv_func_fmodf" = xyes; then :
24026 cat >>confdefs.h <<_ACEOF
24027 #define HAVE_FMODF 1
24028 _ACEOF
24031 done
24037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
24038 $as_echo_n "checking for frexpf declaration... " >&6; }
24039 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
24040 if ${glibcxx_cv_func_frexpf_use+:} false; then :
24041 $as_echo_n "(cached) " >&6
24042 else
24045 ac_ext=cpp
24046 ac_cpp='$CXXCPP $CPPFLAGS'
24047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24052 /* end confdefs.h. */
24053 #include <math.h>
24055 main ()
24057 frexpf(0, 0);
24059 return 0;
24061 _ACEOF
24062 if ac_fn_cxx_try_compile "$LINENO"; then :
24063 glibcxx_cv_func_frexpf_use=yes
24064 else
24065 glibcxx_cv_func_frexpf_use=no
24067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24068 ac_ext=c
24069 ac_cpp='$CPP $CPPFLAGS'
24070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
24079 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
24081 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
24082 for ac_func in frexpf
24083 do :
24084 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
24085 if test "x$ac_cv_func_frexpf" = xyes; then :
24086 cat >>confdefs.h <<_ACEOF
24087 #define HAVE_FREXPF 1
24088 _ACEOF
24091 done
24097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
24098 $as_echo_n "checking for hypotf declaration... " >&6; }
24099 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
24100 if ${glibcxx_cv_func_hypotf_use+:} false; then :
24101 $as_echo_n "(cached) " >&6
24102 else
24105 ac_ext=cpp
24106 ac_cpp='$CXXCPP $CPPFLAGS'
24107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24112 /* end confdefs.h. */
24113 #include <math.h>
24115 main ()
24117 hypotf(0, 0);
24119 return 0;
24121 _ACEOF
24122 if ac_fn_cxx_try_compile "$LINENO"; then :
24123 glibcxx_cv_func_hypotf_use=yes
24124 else
24125 glibcxx_cv_func_hypotf_use=no
24127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24128 ac_ext=c
24129 ac_cpp='$CPP $CPPFLAGS'
24130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
24139 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
24141 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
24142 for ac_func in hypotf
24143 do :
24144 ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
24145 if test "x$ac_cv_func_hypotf" = xyes; then :
24146 cat >>confdefs.h <<_ACEOF
24147 #define HAVE_HYPOTF 1
24148 _ACEOF
24151 done
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
24158 $as_echo_n "checking for ldexpf declaration... " >&6; }
24159 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
24160 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
24161 $as_echo_n "(cached) " >&6
24162 else
24165 ac_ext=cpp
24166 ac_cpp='$CXXCPP $CPPFLAGS'
24167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24172 /* end confdefs.h. */
24173 #include <math.h>
24175 main ()
24177 ldexpf(0, 0);
24179 return 0;
24181 _ACEOF
24182 if ac_fn_cxx_try_compile "$LINENO"; then :
24183 glibcxx_cv_func_ldexpf_use=yes
24184 else
24185 glibcxx_cv_func_ldexpf_use=no
24187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24188 ac_ext=c
24189 ac_cpp='$CPP $CPPFLAGS'
24190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
24199 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
24201 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
24202 for ac_func in ldexpf
24203 do :
24204 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
24205 if test "x$ac_cv_func_ldexpf" = xyes; then :
24206 cat >>confdefs.h <<_ACEOF
24207 #define HAVE_LDEXPF 1
24208 _ACEOF
24211 done
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
24218 $as_echo_n "checking for logf declaration... " >&6; }
24219 if test x${glibcxx_cv_func_logf_use+set} != xset; then
24220 if ${glibcxx_cv_func_logf_use+:} false; then :
24221 $as_echo_n "(cached) " >&6
24222 else
24225 ac_ext=cpp
24226 ac_cpp='$CXXCPP $CPPFLAGS'
24227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24232 /* end confdefs.h. */
24233 #include <math.h>
24234 #ifdef HAVE_IEEEFP_H
24235 #include <ieeefp.h>
24236 #endif
24239 main ()
24241 logf(0);
24243 return 0;
24245 _ACEOF
24246 if ac_fn_cxx_try_compile "$LINENO"; then :
24247 glibcxx_cv_func_logf_use=yes
24248 else
24249 glibcxx_cv_func_logf_use=no
24251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24252 ac_ext=c
24253 ac_cpp='$CPP $CPPFLAGS'
24254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
24263 $as_echo "$glibcxx_cv_func_logf_use" >&6; }
24265 if test x$glibcxx_cv_func_logf_use = x"yes"; then
24266 for ac_func in logf
24267 do :
24268 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
24269 if test "x$ac_cv_func_logf" = xyes; then :
24270 cat >>confdefs.h <<_ACEOF
24271 #define HAVE_LOGF 1
24272 _ACEOF
24275 done
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
24282 $as_echo_n "checking for log10f declaration... " >&6; }
24283 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
24284 if ${glibcxx_cv_func_log10f_use+:} false; then :
24285 $as_echo_n "(cached) " >&6
24286 else
24289 ac_ext=cpp
24290 ac_cpp='$CXXCPP $CPPFLAGS'
24291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24296 /* end confdefs.h. */
24297 #include <math.h>
24298 #ifdef HAVE_IEEEFP_H
24299 #include <ieeefp.h>
24300 #endif
24303 main ()
24305 log10f(0);
24307 return 0;
24309 _ACEOF
24310 if ac_fn_cxx_try_compile "$LINENO"; then :
24311 glibcxx_cv_func_log10f_use=yes
24312 else
24313 glibcxx_cv_func_log10f_use=no
24315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24316 ac_ext=c
24317 ac_cpp='$CPP $CPPFLAGS'
24318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
24327 $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
24329 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
24330 for ac_func in log10f
24331 do :
24332 ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
24333 if test "x$ac_cv_func_log10f" = xyes; then :
24334 cat >>confdefs.h <<_ACEOF
24335 #define HAVE_LOG10F 1
24336 _ACEOF
24339 done
24345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
24346 $as_echo_n "checking for modff declaration... " >&6; }
24347 if test x${glibcxx_cv_func_modff_use+set} != xset; then
24348 if ${glibcxx_cv_func_modff_use+:} false; then :
24349 $as_echo_n "(cached) " >&6
24350 else
24353 ac_ext=cpp
24354 ac_cpp='$CXXCPP $CPPFLAGS'
24355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24360 /* end confdefs.h. */
24361 #include <math.h>
24363 main ()
24365 modff(0, 0);
24367 return 0;
24369 _ACEOF
24370 if ac_fn_cxx_try_compile "$LINENO"; then :
24371 glibcxx_cv_func_modff_use=yes
24372 else
24373 glibcxx_cv_func_modff_use=no
24375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24376 ac_ext=c
24377 ac_cpp='$CPP $CPPFLAGS'
24378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
24387 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
24389 if test x$glibcxx_cv_func_modff_use = x"yes"; then
24390 for ac_func in modff
24391 do :
24392 ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
24393 if test "x$ac_cv_func_modff" = xyes; then :
24394 cat >>confdefs.h <<_ACEOF
24395 #define HAVE_MODFF 1
24396 _ACEOF
24399 done
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
24406 $as_echo_n "checking for modf declaration... " >&6; }
24407 if test x${glibcxx_cv_func_modf_use+set} != xset; then
24408 if ${glibcxx_cv_func_modf_use+:} false; then :
24409 $as_echo_n "(cached) " >&6
24410 else
24413 ac_ext=cpp
24414 ac_cpp='$CXXCPP $CPPFLAGS'
24415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24420 /* end confdefs.h. */
24421 #include <math.h>
24423 main ()
24425 modf(0, 0);
24427 return 0;
24429 _ACEOF
24430 if ac_fn_cxx_try_compile "$LINENO"; then :
24431 glibcxx_cv_func_modf_use=yes
24432 else
24433 glibcxx_cv_func_modf_use=no
24435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24436 ac_ext=c
24437 ac_cpp='$CPP $CPPFLAGS'
24438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
24447 $as_echo "$glibcxx_cv_func_modf_use" >&6; }
24449 if test x$glibcxx_cv_func_modf_use = x"yes"; then
24450 for ac_func in modf
24451 do :
24452 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
24453 if test "x$ac_cv_func_modf" = xyes; then :
24454 cat >>confdefs.h <<_ACEOF
24455 #define HAVE_MODF 1
24456 _ACEOF
24459 done
24465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
24466 $as_echo_n "checking for powf declaration... " >&6; }
24467 if test x${glibcxx_cv_func_powf_use+set} != xset; then
24468 if ${glibcxx_cv_func_powf_use+:} false; then :
24469 $as_echo_n "(cached) " >&6
24470 else
24473 ac_ext=cpp
24474 ac_cpp='$CXXCPP $CPPFLAGS'
24475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24480 /* end confdefs.h. */
24481 #include <math.h>
24483 main ()
24485 powf(0, 0);
24487 return 0;
24489 _ACEOF
24490 if ac_fn_cxx_try_compile "$LINENO"; then :
24491 glibcxx_cv_func_powf_use=yes
24492 else
24493 glibcxx_cv_func_powf_use=no
24495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24496 ac_ext=c
24497 ac_cpp='$CPP $CPPFLAGS'
24498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
24507 $as_echo "$glibcxx_cv_func_powf_use" >&6; }
24509 if test x$glibcxx_cv_func_powf_use = x"yes"; then
24510 for ac_func in powf
24511 do :
24512 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
24513 if test "x$ac_cv_func_powf" = xyes; then :
24514 cat >>confdefs.h <<_ACEOF
24515 #define HAVE_POWF 1
24516 _ACEOF
24519 done
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
24526 $as_echo_n "checking for sqrtf declaration... " >&6; }
24527 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
24528 if ${glibcxx_cv_func_sqrtf_use+:} false; then :
24529 $as_echo_n "(cached) " >&6
24530 else
24533 ac_ext=cpp
24534 ac_cpp='$CXXCPP $CPPFLAGS'
24535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24540 /* end confdefs.h. */
24541 #include <math.h>
24542 #ifdef HAVE_IEEEFP_H
24543 #include <ieeefp.h>
24544 #endif
24547 main ()
24549 sqrtf(0);
24551 return 0;
24553 _ACEOF
24554 if ac_fn_cxx_try_compile "$LINENO"; then :
24555 glibcxx_cv_func_sqrtf_use=yes
24556 else
24557 glibcxx_cv_func_sqrtf_use=no
24559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24560 ac_ext=c
24561 ac_cpp='$CPP $CPPFLAGS'
24562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
24571 $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
24573 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
24574 for ac_func in sqrtf
24575 do :
24576 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
24577 if test "x$ac_cv_func_sqrtf" = xyes; then :
24578 cat >>confdefs.h <<_ACEOF
24579 #define HAVE_SQRTF 1
24580 _ACEOF
24583 done
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
24590 $as_echo_n "checking for sincosf declaration... " >&6; }
24591 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
24592 if ${glibcxx_cv_func_sincosf_use+:} false; then :
24593 $as_echo_n "(cached) " >&6
24594 else
24597 ac_ext=cpp
24598 ac_cpp='$CXXCPP $CPPFLAGS'
24599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24604 /* end confdefs.h. */
24605 #include <math.h>
24607 main ()
24609 sincosf(0, 0, 0);
24611 return 0;
24613 _ACEOF
24614 if ac_fn_cxx_try_compile "$LINENO"; then :
24615 glibcxx_cv_func_sincosf_use=yes
24616 else
24617 glibcxx_cv_func_sincosf_use=no
24619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24620 ac_ext=c
24621 ac_cpp='$CPP $CPPFLAGS'
24622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
24631 $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
24633 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
24634 for ac_func in sincosf
24635 do :
24636 ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
24637 if test "x$ac_cv_func_sincosf" = xyes; then :
24638 cat >>confdefs.h <<_ACEOF
24639 #define HAVE_SINCOSF 1
24640 _ACEOF
24643 done
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
24650 $as_echo_n "checking for finitef declaration... " >&6; }
24651 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
24652 if ${glibcxx_cv_func_finitef_use+:} false; then :
24653 $as_echo_n "(cached) " >&6
24654 else
24657 ac_ext=cpp
24658 ac_cpp='$CXXCPP $CPPFLAGS'
24659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24664 /* end confdefs.h. */
24665 #include <math.h>
24666 #ifdef HAVE_IEEEFP_H
24667 #include <ieeefp.h>
24668 #endif
24671 main ()
24673 finitef(0);
24675 return 0;
24677 _ACEOF
24678 if ac_fn_cxx_try_compile "$LINENO"; then :
24679 glibcxx_cv_func_finitef_use=yes
24680 else
24681 glibcxx_cv_func_finitef_use=no
24683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24684 ac_ext=c
24685 ac_cpp='$CPP $CPPFLAGS'
24686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
24695 $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
24697 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
24698 for ac_func in finitef
24699 do :
24700 ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
24701 if test "x$ac_cv_func_finitef" = xyes; then :
24702 cat >>confdefs.h <<_ACEOF
24703 #define HAVE_FINITEF 1
24704 _ACEOF
24707 done
24713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
24714 $as_echo_n "checking for long double trig functions... " >&6; }
24715 if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
24716 $as_echo_n "(cached) " >&6
24717 else
24720 ac_ext=cpp
24721 ac_cpp='$CXXCPP $CPPFLAGS'
24722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24727 /* end confdefs.h. */
24728 #include <math.h>
24730 main ()
24732 acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
24734 return 0;
24736 _ACEOF
24737 if ac_fn_cxx_try_compile "$LINENO"; then :
24738 glibcxx_cv_func_long_double_trig_use=yes
24739 else
24740 glibcxx_cv_func_long_double_trig_use=no
24742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24743 ac_ext=c
24744 ac_cpp='$CPP $CPPFLAGS'
24745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
24752 $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
24753 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
24754 for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
24755 do :
24756 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24757 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24758 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24759 cat >>confdefs.h <<_ACEOF
24760 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24761 _ACEOF
24764 done
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
24771 $as_echo_n "checking for long double round functions... " >&6; }
24772 if ${glibcxx_cv_func_long_double_round_use+:} false; then :
24773 $as_echo_n "(cached) " >&6
24774 else
24777 ac_ext=cpp
24778 ac_cpp='$CXXCPP $CPPFLAGS'
24779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24784 /* end confdefs.h. */
24785 #include <math.h>
24787 main ()
24789 ceill (0); floorl (0);
24791 return 0;
24793 _ACEOF
24794 if ac_fn_cxx_try_compile "$LINENO"; then :
24795 glibcxx_cv_func_long_double_round_use=yes
24796 else
24797 glibcxx_cv_func_long_double_round_use=no
24799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24800 ac_ext=c
24801 ac_cpp='$CPP $CPPFLAGS'
24802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
24809 $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
24810 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
24811 for ac_func in ceill floorl
24812 do :
24813 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24814 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24815 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24816 cat >>confdefs.h <<_ACEOF
24817 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24818 _ACEOF
24821 done
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
24829 $as_echo_n "checking for isnanl declaration... " >&6; }
24830 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
24831 if ${glibcxx_cv_func_isnanl_use+:} false; then :
24832 $as_echo_n "(cached) " >&6
24833 else
24836 ac_ext=cpp
24837 ac_cpp='$CXXCPP $CPPFLAGS'
24838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24843 /* end confdefs.h. */
24844 #include <math.h>
24845 #ifdef HAVE_IEEEFP_H
24846 #include <ieeefp.h>
24847 #endif
24850 main ()
24852 isnanl(0);
24854 return 0;
24856 _ACEOF
24857 if ac_fn_cxx_try_compile "$LINENO"; then :
24858 glibcxx_cv_func_isnanl_use=yes
24859 else
24860 glibcxx_cv_func_isnanl_use=no
24862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24863 ac_ext=c
24864 ac_cpp='$CPP $CPPFLAGS'
24865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
24874 $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
24876 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
24877 for ac_func in isnanl
24878 do :
24879 ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
24880 if test "x$ac_cv_func_isnanl" = xyes; then :
24881 cat >>confdefs.h <<_ACEOF
24882 #define HAVE_ISNANL 1
24883 _ACEOF
24886 done
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
24893 $as_echo_n "checking for isinfl declaration... " >&6; }
24894 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
24895 if ${glibcxx_cv_func_isinfl_use+:} false; then :
24896 $as_echo_n "(cached) " >&6
24897 else
24900 ac_ext=cpp
24901 ac_cpp='$CXXCPP $CPPFLAGS'
24902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24907 /* end confdefs.h. */
24908 #include <math.h>
24909 #ifdef HAVE_IEEEFP_H
24910 #include <ieeefp.h>
24911 #endif
24914 main ()
24916 isinfl(0);
24918 return 0;
24920 _ACEOF
24921 if ac_fn_cxx_try_compile "$LINENO"; then :
24922 glibcxx_cv_func_isinfl_use=yes
24923 else
24924 glibcxx_cv_func_isinfl_use=no
24926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24927 ac_ext=c
24928 ac_cpp='$CPP $CPPFLAGS'
24929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
24938 $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
24940 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
24941 for ac_func in isinfl
24942 do :
24943 ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
24944 if test "x$ac_cv_func_isinfl" = xyes; then :
24945 cat >>confdefs.h <<_ACEOF
24946 #define HAVE_ISINFL 1
24947 _ACEOF
24950 done
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
24957 $as_echo_n "checking for atan2l declaration... " >&6; }
24958 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
24959 if ${glibcxx_cv_func_atan2l_use+:} false; then :
24960 $as_echo_n "(cached) " >&6
24961 else
24964 ac_ext=cpp
24965 ac_cpp='$CXXCPP $CPPFLAGS'
24966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24971 /* end confdefs.h. */
24972 #include <math.h>
24974 main ()
24976 atan2l(0, 0);
24978 return 0;
24980 _ACEOF
24981 if ac_fn_cxx_try_compile "$LINENO"; then :
24982 glibcxx_cv_func_atan2l_use=yes
24983 else
24984 glibcxx_cv_func_atan2l_use=no
24986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24987 ac_ext=c
24988 ac_cpp='$CPP $CPPFLAGS'
24989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
24998 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
25000 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
25001 for ac_func in atan2l
25002 do :
25003 ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
25004 if test "x$ac_cv_func_atan2l" = xyes; then :
25005 cat >>confdefs.h <<_ACEOF
25006 #define HAVE_ATAN2L 1
25007 _ACEOF
25010 done
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
25017 $as_echo_n "checking for expl declaration... " >&6; }
25018 if test x${glibcxx_cv_func_expl_use+set} != xset; then
25019 if ${glibcxx_cv_func_expl_use+:} false; then :
25020 $as_echo_n "(cached) " >&6
25021 else
25024 ac_ext=cpp
25025 ac_cpp='$CXXCPP $CPPFLAGS'
25026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25031 /* end confdefs.h. */
25032 #include <math.h>
25033 #ifdef HAVE_IEEEFP_H
25034 #include <ieeefp.h>
25035 #endif
25038 main ()
25040 expl(0);
25042 return 0;
25044 _ACEOF
25045 if ac_fn_cxx_try_compile "$LINENO"; then :
25046 glibcxx_cv_func_expl_use=yes
25047 else
25048 glibcxx_cv_func_expl_use=no
25050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25051 ac_ext=c
25052 ac_cpp='$CPP $CPPFLAGS'
25053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
25062 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
25064 if test x$glibcxx_cv_func_expl_use = x"yes"; then
25065 for ac_func in expl
25066 do :
25067 ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
25068 if test "x$ac_cv_func_expl" = xyes; then :
25069 cat >>confdefs.h <<_ACEOF
25070 #define HAVE_EXPL 1
25071 _ACEOF
25074 done
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
25081 $as_echo_n "checking for fabsl declaration... " >&6; }
25082 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
25083 if ${glibcxx_cv_func_fabsl_use+:} false; then :
25084 $as_echo_n "(cached) " >&6
25085 else
25088 ac_ext=cpp
25089 ac_cpp='$CXXCPP $CPPFLAGS'
25090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25095 /* end confdefs.h. */
25096 #include <math.h>
25097 #ifdef HAVE_IEEEFP_H
25098 #include <ieeefp.h>
25099 #endif
25102 main ()
25104 fabsl(0);
25106 return 0;
25108 _ACEOF
25109 if ac_fn_cxx_try_compile "$LINENO"; then :
25110 glibcxx_cv_func_fabsl_use=yes
25111 else
25112 glibcxx_cv_func_fabsl_use=no
25114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25115 ac_ext=c
25116 ac_cpp='$CPP $CPPFLAGS'
25117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
25126 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
25128 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
25129 for ac_func in fabsl
25130 do :
25131 ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
25132 if test "x$ac_cv_func_fabsl" = xyes; then :
25133 cat >>confdefs.h <<_ACEOF
25134 #define HAVE_FABSL 1
25135 _ACEOF
25138 done
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
25145 $as_echo_n "checking for fmodl declaration... " >&6; }
25146 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
25147 if ${glibcxx_cv_func_fmodl_use+:} false; then :
25148 $as_echo_n "(cached) " >&6
25149 else
25152 ac_ext=cpp
25153 ac_cpp='$CXXCPP $CPPFLAGS'
25154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25159 /* end confdefs.h. */
25160 #include <math.h>
25162 main ()
25164 fmodl(0, 0);
25166 return 0;
25168 _ACEOF
25169 if ac_fn_cxx_try_compile "$LINENO"; then :
25170 glibcxx_cv_func_fmodl_use=yes
25171 else
25172 glibcxx_cv_func_fmodl_use=no
25174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25175 ac_ext=c
25176 ac_cpp='$CPP $CPPFLAGS'
25177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
25186 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
25188 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
25189 for ac_func in fmodl
25190 do :
25191 ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
25192 if test "x$ac_cv_func_fmodl" = xyes; then :
25193 cat >>confdefs.h <<_ACEOF
25194 #define HAVE_FMODL 1
25195 _ACEOF
25198 done
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
25205 $as_echo_n "checking for frexpl declaration... " >&6; }
25206 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
25207 if ${glibcxx_cv_func_frexpl_use+:} false; then :
25208 $as_echo_n "(cached) " >&6
25209 else
25212 ac_ext=cpp
25213 ac_cpp='$CXXCPP $CPPFLAGS'
25214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25219 /* end confdefs.h. */
25220 #include <math.h>
25222 main ()
25224 frexpl(0, 0);
25226 return 0;
25228 _ACEOF
25229 if ac_fn_cxx_try_compile "$LINENO"; then :
25230 glibcxx_cv_func_frexpl_use=yes
25231 else
25232 glibcxx_cv_func_frexpl_use=no
25234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25235 ac_ext=c
25236 ac_cpp='$CPP $CPPFLAGS'
25237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
25246 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
25248 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
25249 for ac_func in frexpl
25250 do :
25251 ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
25252 if test "x$ac_cv_func_frexpl" = xyes; then :
25253 cat >>confdefs.h <<_ACEOF
25254 #define HAVE_FREXPL 1
25255 _ACEOF
25258 done
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
25265 $as_echo_n "checking for hypotl declaration... " >&6; }
25266 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
25267 if ${glibcxx_cv_func_hypotl_use+:} false; then :
25268 $as_echo_n "(cached) " >&6
25269 else
25272 ac_ext=cpp
25273 ac_cpp='$CXXCPP $CPPFLAGS'
25274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25279 /* end confdefs.h. */
25280 #include <math.h>
25282 main ()
25284 hypotl(0, 0);
25286 return 0;
25288 _ACEOF
25289 if ac_fn_cxx_try_compile "$LINENO"; then :
25290 glibcxx_cv_func_hypotl_use=yes
25291 else
25292 glibcxx_cv_func_hypotl_use=no
25294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25295 ac_ext=c
25296 ac_cpp='$CPP $CPPFLAGS'
25297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
25306 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
25308 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
25309 for ac_func in hypotl
25310 do :
25311 ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
25312 if test "x$ac_cv_func_hypotl" = xyes; then :
25313 cat >>confdefs.h <<_ACEOF
25314 #define HAVE_HYPOTL 1
25315 _ACEOF
25318 done
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
25325 $as_echo_n "checking for ldexpl declaration... " >&6; }
25326 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
25327 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
25328 $as_echo_n "(cached) " >&6
25329 else
25332 ac_ext=cpp
25333 ac_cpp='$CXXCPP $CPPFLAGS'
25334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25339 /* end confdefs.h. */
25340 #include <math.h>
25342 main ()
25344 ldexpl(0, 0);
25346 return 0;
25348 _ACEOF
25349 if ac_fn_cxx_try_compile "$LINENO"; then :
25350 glibcxx_cv_func_ldexpl_use=yes
25351 else
25352 glibcxx_cv_func_ldexpl_use=no
25354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25355 ac_ext=c
25356 ac_cpp='$CPP $CPPFLAGS'
25357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
25366 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
25368 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
25369 for ac_func in ldexpl
25370 do :
25371 ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
25372 if test "x$ac_cv_func_ldexpl" = xyes; then :
25373 cat >>confdefs.h <<_ACEOF
25374 #define HAVE_LDEXPL 1
25375 _ACEOF
25378 done
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
25385 $as_echo_n "checking for logl declaration... " >&6; }
25386 if test x${glibcxx_cv_func_logl_use+set} != xset; then
25387 if ${glibcxx_cv_func_logl_use+:} false; then :
25388 $as_echo_n "(cached) " >&6
25389 else
25392 ac_ext=cpp
25393 ac_cpp='$CXXCPP $CPPFLAGS'
25394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25399 /* end confdefs.h. */
25400 #include <math.h>
25401 #ifdef HAVE_IEEEFP_H
25402 #include <ieeefp.h>
25403 #endif
25406 main ()
25408 logl(0);
25410 return 0;
25412 _ACEOF
25413 if ac_fn_cxx_try_compile "$LINENO"; then :
25414 glibcxx_cv_func_logl_use=yes
25415 else
25416 glibcxx_cv_func_logl_use=no
25418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25419 ac_ext=c
25420 ac_cpp='$CPP $CPPFLAGS'
25421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
25430 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
25432 if test x$glibcxx_cv_func_logl_use = x"yes"; then
25433 for ac_func in logl
25434 do :
25435 ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
25436 if test "x$ac_cv_func_logl" = xyes; then :
25437 cat >>confdefs.h <<_ACEOF
25438 #define HAVE_LOGL 1
25439 _ACEOF
25442 done
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
25449 $as_echo_n "checking for log10l declaration... " >&6; }
25450 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
25451 if ${glibcxx_cv_func_log10l_use+:} false; then :
25452 $as_echo_n "(cached) " >&6
25453 else
25456 ac_ext=cpp
25457 ac_cpp='$CXXCPP $CPPFLAGS'
25458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25463 /* end confdefs.h. */
25464 #include <math.h>
25465 #ifdef HAVE_IEEEFP_H
25466 #include <ieeefp.h>
25467 #endif
25470 main ()
25472 log10l(0);
25474 return 0;
25476 _ACEOF
25477 if ac_fn_cxx_try_compile "$LINENO"; then :
25478 glibcxx_cv_func_log10l_use=yes
25479 else
25480 glibcxx_cv_func_log10l_use=no
25482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25483 ac_ext=c
25484 ac_cpp='$CPP $CPPFLAGS'
25485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
25494 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
25496 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
25497 for ac_func in log10l
25498 do :
25499 ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
25500 if test "x$ac_cv_func_log10l" = xyes; then :
25501 cat >>confdefs.h <<_ACEOF
25502 #define HAVE_LOG10L 1
25503 _ACEOF
25506 done
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
25513 $as_echo_n "checking for modfl declaration... " >&6; }
25514 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
25515 if ${glibcxx_cv_func_modfl_use+:} false; then :
25516 $as_echo_n "(cached) " >&6
25517 else
25520 ac_ext=cpp
25521 ac_cpp='$CXXCPP $CPPFLAGS'
25522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25527 /* end confdefs.h. */
25528 #include <math.h>
25530 main ()
25532 modfl(0, 0);
25534 return 0;
25536 _ACEOF
25537 if ac_fn_cxx_try_compile "$LINENO"; then :
25538 glibcxx_cv_func_modfl_use=yes
25539 else
25540 glibcxx_cv_func_modfl_use=no
25542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25543 ac_ext=c
25544 ac_cpp='$CPP $CPPFLAGS'
25545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
25554 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
25556 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
25557 for ac_func in modfl
25558 do :
25559 ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
25560 if test "x$ac_cv_func_modfl" = xyes; then :
25561 cat >>confdefs.h <<_ACEOF
25562 #define HAVE_MODFL 1
25563 _ACEOF
25566 done
25572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
25573 $as_echo_n "checking for powl declaration... " >&6; }
25574 if test x${glibcxx_cv_func_powl_use+set} != xset; then
25575 if ${glibcxx_cv_func_powl_use+:} false; then :
25576 $as_echo_n "(cached) " >&6
25577 else
25580 ac_ext=cpp
25581 ac_cpp='$CXXCPP $CPPFLAGS'
25582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25587 /* end confdefs.h. */
25588 #include <math.h>
25590 main ()
25592 powl(0, 0);
25594 return 0;
25596 _ACEOF
25597 if ac_fn_cxx_try_compile "$LINENO"; then :
25598 glibcxx_cv_func_powl_use=yes
25599 else
25600 glibcxx_cv_func_powl_use=no
25602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25603 ac_ext=c
25604 ac_cpp='$CPP $CPPFLAGS'
25605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
25614 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
25616 if test x$glibcxx_cv_func_powl_use = x"yes"; then
25617 for ac_func in powl
25618 do :
25619 ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
25620 if test "x$ac_cv_func_powl" = xyes; then :
25621 cat >>confdefs.h <<_ACEOF
25622 #define HAVE_POWL 1
25623 _ACEOF
25626 done
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
25633 $as_echo_n "checking for sqrtl declaration... " >&6; }
25634 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
25635 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
25636 $as_echo_n "(cached) " >&6
25637 else
25640 ac_ext=cpp
25641 ac_cpp='$CXXCPP $CPPFLAGS'
25642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25647 /* end confdefs.h. */
25648 #include <math.h>
25649 #ifdef HAVE_IEEEFP_H
25650 #include <ieeefp.h>
25651 #endif
25654 main ()
25656 sqrtl(0);
25658 return 0;
25660 _ACEOF
25661 if ac_fn_cxx_try_compile "$LINENO"; then :
25662 glibcxx_cv_func_sqrtl_use=yes
25663 else
25664 glibcxx_cv_func_sqrtl_use=no
25666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25667 ac_ext=c
25668 ac_cpp='$CPP $CPPFLAGS'
25669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
25678 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
25680 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
25681 for ac_func in sqrtl
25682 do :
25683 ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
25684 if test "x$ac_cv_func_sqrtl" = xyes; then :
25685 cat >>confdefs.h <<_ACEOF
25686 #define HAVE_SQRTL 1
25687 _ACEOF
25690 done
25696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
25697 $as_echo_n "checking for sincosl declaration... " >&6; }
25698 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
25699 if ${glibcxx_cv_func_sincosl_use+:} false; then :
25700 $as_echo_n "(cached) " >&6
25701 else
25704 ac_ext=cpp
25705 ac_cpp='$CXXCPP $CPPFLAGS'
25706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25711 /* end confdefs.h. */
25712 #include <math.h>
25714 main ()
25716 sincosl(0, 0, 0);
25718 return 0;
25720 _ACEOF
25721 if ac_fn_cxx_try_compile "$LINENO"; then :
25722 glibcxx_cv_func_sincosl_use=yes
25723 else
25724 glibcxx_cv_func_sincosl_use=no
25726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25727 ac_ext=c
25728 ac_cpp='$CPP $CPPFLAGS'
25729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
25738 $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
25740 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
25741 for ac_func in sincosl
25742 do :
25743 ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
25744 if test "x$ac_cv_func_sincosl" = xyes; then :
25745 cat >>confdefs.h <<_ACEOF
25746 #define HAVE_SINCOSL 1
25747 _ACEOF
25750 done
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
25757 $as_echo_n "checking for finitel declaration... " >&6; }
25758 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
25759 if ${glibcxx_cv_func_finitel_use+:} false; then :
25760 $as_echo_n "(cached) " >&6
25761 else
25764 ac_ext=cpp
25765 ac_cpp='$CXXCPP $CPPFLAGS'
25766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25771 /* end confdefs.h. */
25772 #include <math.h>
25773 #ifdef HAVE_IEEEFP_H
25774 #include <ieeefp.h>
25775 #endif
25778 main ()
25780 finitel(0);
25782 return 0;
25784 _ACEOF
25785 if ac_fn_cxx_try_compile "$LINENO"; then :
25786 glibcxx_cv_func_finitel_use=yes
25787 else
25788 glibcxx_cv_func_finitel_use=no
25790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25791 ac_ext=c
25792 ac_cpp='$CPP $CPPFLAGS'
25793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
25802 $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
25804 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
25805 for ac_func in finitel
25806 do :
25807 ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
25808 if test "x$ac_cv_func_finitel" = xyes; then :
25809 cat >>confdefs.h <<_ACEOF
25810 #define HAVE_FINITEL 1
25811 _ACEOF
25814 done
25819 LIBS="$ac_save_LIBS"
25820 CXXFLAGS="$ac_save_CXXFLAGS"
25823 ac_test_CXXFLAGS="${CXXFLAGS+set}"
25824 ac_save_CXXFLAGS="$CXXFLAGS"
25825 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
25828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
25829 $as_echo_n "checking for at_quick_exit declaration... " >&6; }
25830 if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
25831 if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
25832 $as_echo_n "(cached) " >&6
25833 else
25836 ac_ext=cpp
25837 ac_cpp='$CXXCPP $CPPFLAGS'
25838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25843 /* end confdefs.h. */
25844 #include <stdlib.h>
25846 main ()
25848 at_quick_exit(0);
25850 return 0;
25852 _ACEOF
25853 if ac_fn_cxx_try_compile "$LINENO"; then :
25854 glibcxx_cv_func_at_quick_exit_use=yes
25855 else
25856 glibcxx_cv_func_at_quick_exit_use=no
25858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25859 ac_ext=c
25860 ac_cpp='$CPP $CPPFLAGS'
25861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
25870 $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
25871 if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
25872 for ac_func in at_quick_exit
25873 do :
25874 ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
25875 if test "x$ac_cv_func_at_quick_exit" = xyes; then :
25876 cat >>confdefs.h <<_ACEOF
25877 #define HAVE_AT_QUICK_EXIT 1
25878 _ACEOF
25881 done
25886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
25887 $as_echo_n "checking for quick_exit declaration... " >&6; }
25888 if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
25889 if ${glibcxx_cv_func_quick_exit_use+:} false; then :
25890 $as_echo_n "(cached) " >&6
25891 else
25894 ac_ext=cpp
25895 ac_cpp='$CXXCPP $CPPFLAGS'
25896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25901 /* end confdefs.h. */
25902 #include <stdlib.h>
25904 main ()
25906 quick_exit(0);
25908 return 0;
25910 _ACEOF
25911 if ac_fn_cxx_try_compile "$LINENO"; then :
25912 glibcxx_cv_func_quick_exit_use=yes
25913 else
25914 glibcxx_cv_func_quick_exit_use=no
25916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25917 ac_ext=c
25918 ac_cpp='$CPP $CPPFLAGS'
25919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
25928 $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
25929 if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
25930 for ac_func in quick_exit
25931 do :
25932 ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
25933 if test "x$ac_cv_func_quick_exit" = xyes; then :
25934 cat >>confdefs.h <<_ACEOF
25935 #define HAVE_QUICK_EXIT 1
25936 _ACEOF
25939 done
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
25945 $as_echo_n "checking for strtold declaration... " >&6; }
25946 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
25947 if ${glibcxx_cv_func_strtold_use+:} false; then :
25948 $as_echo_n "(cached) " >&6
25949 else
25952 ac_ext=cpp
25953 ac_cpp='$CXXCPP $CPPFLAGS'
25954 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25955 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25956 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25959 /* end confdefs.h. */
25960 #include <stdlib.h>
25962 main ()
25964 strtold(0, 0);
25966 return 0;
25968 _ACEOF
25969 if ac_fn_cxx_try_compile "$LINENO"; then :
25970 glibcxx_cv_func_strtold_use=yes
25971 else
25972 glibcxx_cv_func_strtold_use=no
25974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25975 ac_ext=c
25976 ac_cpp='$CPP $CPPFLAGS'
25977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
25986 $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
25987 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
25988 for ac_func in strtold
25989 do :
25990 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
25991 if test "x$ac_cv_func_strtold" = xyes; then :
25992 cat >>confdefs.h <<_ACEOF
25993 #define HAVE_STRTOLD 1
25994 _ACEOF
25997 done
26002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
26003 $as_echo_n "checking for strtof declaration... " >&6; }
26004 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
26005 if ${glibcxx_cv_func_strtof_use+:} false; then :
26006 $as_echo_n "(cached) " >&6
26007 else
26010 ac_ext=cpp
26011 ac_cpp='$CXXCPP $CPPFLAGS'
26012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26017 /* end confdefs.h. */
26018 #include <stdlib.h>
26020 main ()
26022 strtof(0, 0);
26024 return 0;
26026 _ACEOF
26027 if ac_fn_cxx_try_compile "$LINENO"; then :
26028 glibcxx_cv_func_strtof_use=yes
26029 else
26030 glibcxx_cv_func_strtof_use=no
26032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26033 ac_ext=c
26034 ac_cpp='$CPP $CPPFLAGS'
26035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
26044 $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
26045 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
26046 for ac_func in strtof
26047 do :
26048 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
26049 if test "x$ac_cv_func_strtof" = xyes; then :
26050 cat >>confdefs.h <<_ACEOF
26051 #define HAVE_STRTOF 1
26052 _ACEOF
26055 done
26060 CXXFLAGS="$ac_save_CXXFLAGS"
26063 # For /dev/random and /dev/urandom for std::random_device.
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/random\" and \"/dev/urandom\" for std::random_device" >&5
26067 $as_echo_n "checking for \"/dev/random\" and \"/dev/urandom\" for std::random_device... " >&6; }
26068 if ${glibcxx_cv_dev_random+:} false; then :
26069 $as_echo_n "(cached) " >&6
26070 else
26072 if test -r /dev/random && test -r /dev/urandom; then
26073 ## For MSys environment the test above is detected as false-positive
26074 ## on mingw-targets. So disable it explicitly for them.
26075 case ${target_os} in
26076 *mingw*) glibcxx_cv_dev_random=no ;;
26077 *) glibcxx_cv_dev_random=yes ;;
26078 esac
26079 else
26080 glibcxx_cv_dev_random=no;
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_dev_random" >&5
26085 $as_echo "$glibcxx_cv_dev_random" >&6; }
26087 if test x"$glibcxx_cv_dev_random" = x"yes"; then
26089 $as_echo "#define _GLIBCXX_USE_DEV_RANDOM 1" >>confdefs.h
26092 $as_echo "#define _GLIBCXX_USE_RANDOM_TR1 1" >>confdefs.h
26098 # For TLS support.
26101 # Check whether --enable-tls was given.
26102 if test "${enable_tls+set}" = set; then :
26103 enableval=$enable_tls;
26104 case "$enableval" in
26105 yes|no) ;;
26106 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
26107 esac
26109 else
26110 enable_tls=yes
26114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
26115 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
26116 if ${gcc_cv_have_tls+:} false; then :
26117 $as_echo_n "(cached) " >&6
26118 else
26120 if test "$cross_compiling" = yes; then :
26121 if test x$gcc_no_link = xyes; then
26122 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26125 /* end confdefs.h. */
26126 __thread int a; int b; int main() { return a = b; }
26127 _ACEOF
26128 if ac_fn_c_try_link "$LINENO"; then :
26129 chktls_save_LDFLAGS="$LDFLAGS"
26130 case $host in
26131 *-*-linux* | -*-uclinuxfdpic*)
26132 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
26134 esac
26135 chktls_save_CFLAGS="$CFLAGS"
26136 CFLAGS="-fPIC $CFLAGS"
26137 if test x$gcc_no_link = xyes; then
26138 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26141 /* end confdefs.h. */
26142 int f() { return 0; }
26143 _ACEOF
26144 if ac_fn_c_try_link "$LINENO"; then :
26145 if test x$gcc_no_link = xyes; then
26146 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26149 /* end confdefs.h. */
26150 __thread int a; int b; int f() { return a = b; }
26151 _ACEOF
26152 if ac_fn_c_try_link "$LINENO"; then :
26153 gcc_cv_have_tls=yes
26154 else
26155 gcc_cv_have_tls=no
26157 rm -f core conftest.err conftest.$ac_objext \
26158 conftest$ac_exeext conftest.$ac_ext
26159 else
26160 gcc_cv_have_tls=yes
26162 rm -f core conftest.err conftest.$ac_objext \
26163 conftest$ac_exeext conftest.$ac_ext
26164 CFLAGS="$chktls_save_CFLAGS"
26165 LDFLAGS="$chktls_save_LDFLAGS"
26166 else
26167 gcc_cv_have_tls=no
26169 rm -f core conftest.err conftest.$ac_objext \
26170 conftest$ac_exeext conftest.$ac_ext
26173 else
26174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26175 /* end confdefs.h. */
26176 __thread int a; int b; int main() { return a = b; }
26177 _ACEOF
26178 if ac_fn_c_try_run "$LINENO"; then :
26179 chktls_save_LDFLAGS="$LDFLAGS"
26180 LDFLAGS="-static $LDFLAGS"
26181 if test x$gcc_no_link = xyes; then
26182 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26185 /* end confdefs.h. */
26186 int main() { return 0; }
26187 _ACEOF
26188 if ac_fn_c_try_link "$LINENO"; then :
26189 if test "$cross_compiling" = yes; then :
26190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26192 as_fn_error $? "cannot run test program while cross compiling
26193 See \`config.log' for more details" "$LINENO" 5; }
26194 else
26195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26196 /* end confdefs.h. */
26197 __thread int a; int b; int main() { return a = b; }
26198 _ACEOF
26199 if ac_fn_c_try_run "$LINENO"; then :
26200 gcc_cv_have_tls=yes
26201 else
26202 gcc_cv_have_tls=no
26204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26205 conftest.$ac_objext conftest.beam conftest.$ac_ext
26208 else
26209 gcc_cv_have_tls=yes
26211 rm -f core conftest.err conftest.$ac_objext \
26212 conftest$ac_exeext conftest.$ac_ext
26213 LDFLAGS="$chktls_save_LDFLAGS"
26214 if test $gcc_cv_have_tls = yes; then
26215 chktls_save_CFLAGS="$CFLAGS"
26216 thread_CFLAGS=failed
26217 for flag in '' '-pthread' '-lpthread'; do
26218 CFLAGS="$flag $chktls_save_CFLAGS"
26219 if test x$gcc_no_link = xyes; then
26220 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26223 /* end confdefs.h. */
26224 #include <pthread.h>
26225 void *g(void *d) { return NULL; }
26227 main ()
26229 pthread_t t; pthread_create(&t,NULL,g,NULL);
26231 return 0;
26233 _ACEOF
26234 if ac_fn_c_try_link "$LINENO"; then :
26235 thread_CFLAGS="$flag"
26237 rm -f core conftest.err conftest.$ac_objext \
26238 conftest$ac_exeext conftest.$ac_ext
26239 if test "X$thread_CFLAGS" != Xfailed; then
26240 break
26242 done
26243 CFLAGS="$chktls_save_CFLAGS"
26244 if test "X$thread_CFLAGS" != Xfailed; then
26245 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
26246 if test "$cross_compiling" = yes; then :
26247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26249 as_fn_error $? "cannot run test program while cross compiling
26250 See \`config.log' for more details" "$LINENO" 5; }
26251 else
26252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26253 /* end confdefs.h. */
26254 #include <pthread.h>
26255 __thread int a;
26256 static int *volatile a_in_other_thread;
26257 static void *
26258 thread_func (void *arg)
26260 a_in_other_thread = &a;
26261 return (void *)0;
26264 main ()
26266 pthread_t thread;
26267 void *thread_retval;
26268 int *volatile a_in_main_thread;
26269 a_in_main_thread = &a;
26270 if (pthread_create (&thread, (pthread_attr_t *)0,
26271 thread_func, (void *)0))
26272 return 0;
26273 if (pthread_join (thread, &thread_retval))
26274 return 0;
26275 return (a_in_other_thread == a_in_main_thread);
26277 return 0;
26279 _ACEOF
26280 if ac_fn_c_try_run "$LINENO"; then :
26281 gcc_cv_have_tls=yes
26282 else
26283 gcc_cv_have_tls=no
26285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26286 conftest.$ac_objext conftest.beam conftest.$ac_ext
26289 CFLAGS="$chktls_save_CFLAGS"
26292 else
26293 gcc_cv_have_tls=no
26295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26296 conftest.$ac_objext conftest.beam conftest.$ac_ext
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
26301 $as_echo "$gcc_cv_have_tls" >&6; }
26302 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
26304 $as_echo "#define HAVE_TLS 1" >>confdefs.h
26308 for ac_func in __cxa_thread_atexit_impl __cxa_thread_atexit
26309 do :
26310 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26311 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26312 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26313 cat >>confdefs.h <<_ACEOF
26314 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26315 _ACEOF
26318 done
26320 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
26321 do :
26322 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26323 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26324 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26325 cat >>confdefs.h <<_ACEOF
26326 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26327 _ACEOF
26330 done
26332 for ac_func in _wfopen
26333 do :
26334 ac_fn_c_check_func "$LINENO" "_wfopen" "ac_cv_func__wfopen"
26335 if test "x$ac_cv_func__wfopen" = xyes; then :
26336 cat >>confdefs.h <<_ACEOF
26337 #define HAVE__WFOPEN 1
26338 _ACEOF
26341 done
26343 for ac_func in secure_getenv
26344 do :
26345 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
26346 if test "x$ac_cv_func_secure_getenv" = xyes; then :
26347 cat >>confdefs.h <<_ACEOF
26348 #define HAVE_SECURE_GETENV 1
26349 _ACEOF
26352 done
26355 # C11 functions for C++17 library
26356 for ac_func in timespec_get
26357 do :
26358 ac_fn_c_check_func "$LINENO" "timespec_get" "ac_cv_func_timespec_get"
26359 if test "x$ac_cv_func_timespec_get" = xyes; then :
26360 cat >>confdefs.h <<_ACEOF
26361 #define HAVE_TIMESPEC_GET 1
26362 _ACEOF
26365 done
26368 # For Networking TS.
26369 for ac_func in sockatmark
26370 do :
26371 ac_fn_c_check_func "$LINENO" "sockatmark" "ac_cv_func_sockatmark"
26372 if test "x$ac_cv_func_sockatmark" = xyes; then :
26373 cat >>confdefs.h <<_ACEOF
26374 #define HAVE_SOCKATMARK 1
26375 _ACEOF
26378 done
26381 # Non-standard functions used by C++17 std::from_chars
26382 for ac_func in uselocale
26383 do :
26384 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
26385 if test "x$ac_cv_func_uselocale" = xyes; then :
26386 cat >>confdefs.h <<_ACEOF
26387 #define HAVE_USELOCALE 1
26388 _ACEOF
26391 done
26394 # For iconv support.
26396 if test "X$prefix" = "XNONE"; then
26397 acl_final_prefix="$ac_default_prefix"
26398 else
26399 acl_final_prefix="$prefix"
26401 if test "X$exec_prefix" = "XNONE"; then
26402 acl_final_exec_prefix='${prefix}'
26403 else
26404 acl_final_exec_prefix="$exec_prefix"
26406 acl_save_prefix="$prefix"
26407 prefix="$acl_final_prefix"
26408 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
26409 prefix="$acl_save_prefix"
26412 # Check whether --with-gnu-ld was given.
26413 if test "${with_gnu_ld+set}" = set; then :
26414 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
26415 else
26416 with_gnu_ld=no
26419 # Prepare PATH_SEPARATOR.
26420 # The user is always right.
26421 if test "${PATH_SEPARATOR+set}" != set; then
26422 echo "#! /bin/sh" >conf$$.sh
26423 echo "exit 0" >>conf$$.sh
26424 chmod +x conf$$.sh
26425 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26426 PATH_SEPARATOR=';'
26427 else
26428 PATH_SEPARATOR=:
26430 rm -f conf$$.sh
26432 ac_prog=ld
26433 if test "$GCC" = yes; then
26434 # Check if gcc -print-prog-name=ld gives a path.
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
26436 $as_echo_n "checking for ld used by GCC... " >&6; }
26437 case $host in
26438 *-*-mingw*)
26439 # gcc leaves a trailing carriage return which upsets mingw
26440 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
26442 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
26443 esac
26444 case $ac_prog in
26445 # Accept absolute paths.
26446 [\\/]* | [A-Za-z]:[\\/]*)
26447 re_direlt='/[^/][^/]*/\.\./'
26448 # Canonicalize the path of ld
26449 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
26450 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
26451 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
26452 done
26453 test -z "$LD" && LD="$ac_prog"
26456 # If it fails, then pretend we aren't using GCC.
26457 ac_prog=ld
26460 # If it is relative, then search for the first ld in PATH.
26461 with_gnu_ld=unknown
26463 esac
26464 elif test "$with_gnu_ld" = yes; then
26465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
26466 $as_echo_n "checking for GNU ld... " >&6; }
26467 else
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
26469 $as_echo_n "checking for non-GNU ld... " >&6; }
26471 if ${acl_cv_path_LD+:} false; then :
26472 $as_echo_n "(cached) " >&6
26473 else
26474 if test -z "$LD"; then
26475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
26476 for ac_dir in $PATH; do
26477 test -z "$ac_dir" && ac_dir=.
26478 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
26479 acl_cv_path_LD="$ac_dir/$ac_prog"
26480 # Check to see if the program is GNU ld. I'd rather use --version,
26481 # but apparently some GNU ld's only accept -v.
26482 # Break only if it was the GNU/non-GNU ld that we prefer.
26483 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
26484 test "$with_gnu_ld" != no && break
26485 else
26486 test "$with_gnu_ld" != yes && break
26489 done
26490 IFS="$ac_save_ifs"
26491 else
26492 acl_cv_path_LD="$LD" # Let the user override the test with a path.
26496 LD="$acl_cv_path_LD"
26497 if test -n "$LD"; then
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
26499 $as_echo "$LD" >&6; }
26500 else
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26502 $as_echo "no" >&6; }
26504 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
26506 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
26507 if ${acl_cv_prog_gnu_ld+:} false; then :
26508 $as_echo_n "(cached) " >&6
26509 else
26510 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
26511 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
26512 acl_cv_prog_gnu_ld=yes
26513 else
26514 acl_cv_prog_gnu_ld=no
26517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
26518 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
26519 with_gnu_ld=$acl_cv_prog_gnu_ld
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
26524 $as_echo_n "checking for shared library run path origin... " >&6; }
26525 if ${acl_cv_rpath+:} false; then :
26526 $as_echo_n "(cached) " >&6
26527 else
26529 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
26530 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
26531 . ./conftest.sh
26532 rm -f ./conftest.sh
26533 acl_cv_rpath=done
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
26537 $as_echo "$acl_cv_rpath" >&6; }
26538 wl="$acl_cv_wl"
26539 libext="$acl_cv_libext"
26540 shlibext="$acl_cv_shlibext"
26541 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
26542 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
26543 hardcode_direct="$acl_cv_hardcode_direct"
26544 hardcode_minus_L="$acl_cv_hardcode_minus_L"
26545 # Check whether --enable-rpath was given.
26546 if test "${enable_rpath+set}" = set; then :
26547 enableval=$enable_rpath; :
26548 else
26549 enable_rpath=yes
26559 use_additional=yes
26561 acl_save_prefix="$prefix"
26562 prefix="$acl_final_prefix"
26563 acl_save_exec_prefix="$exec_prefix"
26564 exec_prefix="$acl_final_exec_prefix"
26566 eval additional_includedir=\"$includedir\"
26567 eval additional_libdir=\"$libdir\"
26569 exec_prefix="$acl_save_exec_prefix"
26570 prefix="$acl_save_prefix"
26573 # Check whether --with-libiconv-prefix was given.
26574 if test "${with_libiconv_prefix+set}" = set; then :
26575 withval=$with_libiconv_prefix;
26576 if test "X$withval" = "Xno"; then
26577 use_additional=no
26578 else
26579 if test "X$withval" = "X"; then
26581 acl_save_prefix="$prefix"
26582 prefix="$acl_final_prefix"
26583 acl_save_exec_prefix="$exec_prefix"
26584 exec_prefix="$acl_final_exec_prefix"
26586 eval additional_includedir=\"$includedir\"
26587 eval additional_libdir=\"$libdir\"
26589 exec_prefix="$acl_save_exec_prefix"
26590 prefix="$acl_save_prefix"
26592 else
26593 additional_includedir="$withval/include"
26594 additional_libdir="$withval/lib"
26601 # Check whether --with-libiconv-type was given.
26602 if test "${with_libiconv_type+set}" = set; then :
26603 withval=$with_libiconv_type; with_libiconv_type=$withval
26604 else
26605 with_libiconv_type=auto
26608 lib_type=`eval echo \$with_libiconv_type`
26610 LIBICONV=
26611 LTLIBICONV=
26612 INCICONV=
26613 rpathdirs=
26614 ltrpathdirs=
26615 names_already_handled=
26616 names_next_round='iconv '
26617 while test -n "$names_next_round"; do
26618 names_this_round="$names_next_round"
26619 names_next_round=
26620 for name in $names_this_round; do
26621 already_handled=
26622 for n in $names_already_handled; do
26623 if test "$n" = "$name"; then
26624 already_handled=yes
26625 break
26627 done
26628 if test -z "$already_handled"; then
26629 names_already_handled="$names_already_handled $name"
26630 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26631 eval value=\"\$HAVE_LIB$uppername\"
26632 if test -n "$value"; then
26633 if test "$value" = yes; then
26634 eval value=\"\$LIB$uppername\"
26635 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
26636 eval value=\"\$LTLIB$uppername\"
26637 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
26638 else
26641 else
26642 found_dir=
26643 found_la=
26644 found_so=
26645 found_a=
26646 if test $use_additional = yes; then
26647 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
26648 found_dir="$additional_libdir"
26649 found_so="$additional_libdir/lib$name.$shlibext"
26650 if test -f "$additional_libdir/lib$name.la"; then
26651 found_la="$additional_libdir/lib$name.la"
26653 elif test x$lib_type != xshared; then
26654 if test -f "$additional_libdir/lib$name.$libext"; then
26655 found_dir="$additional_libdir"
26656 found_a="$additional_libdir/lib$name.$libext"
26657 if test -f "$additional_libdir/lib$name.la"; then
26658 found_la="$additional_libdir/lib$name.la"
26663 if test "X$found_dir" = "X"; then
26664 for x in $LDFLAGS $LTLIBICONV; do
26666 acl_save_prefix="$prefix"
26667 prefix="$acl_final_prefix"
26668 acl_save_exec_prefix="$exec_prefix"
26669 exec_prefix="$acl_final_exec_prefix"
26670 eval x=\"$x\"
26671 exec_prefix="$acl_save_exec_prefix"
26672 prefix="$acl_save_prefix"
26674 case "$x" in
26675 -L*)
26676 dir=`echo "X$x" | sed -e 's/^X-L//'`
26677 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
26678 found_dir="$dir"
26679 found_so="$dir/lib$name.$shlibext"
26680 if test -f "$dir/lib$name.la"; then
26681 found_la="$dir/lib$name.la"
26683 elif test x$lib_type != xshared; then
26684 if test -f "$dir/lib$name.$libext"; then
26685 found_dir="$dir"
26686 found_a="$dir/lib$name.$libext"
26687 if test -f "$dir/lib$name.la"; then
26688 found_la="$dir/lib$name.la"
26693 esac
26694 if test "X$found_dir" != "X"; then
26695 break
26697 done
26699 if test "X$found_dir" != "X"; then
26700 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
26701 if test "X$found_so" != "X"; then
26702 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
26703 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26704 else
26705 haveit=
26706 for x in $ltrpathdirs; do
26707 if test "X$x" = "X$found_dir"; then
26708 haveit=yes
26709 break
26711 done
26712 if test -z "$haveit"; then
26713 ltrpathdirs="$ltrpathdirs $found_dir"
26715 if test "$hardcode_direct" = yes; then
26716 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26717 else
26718 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
26719 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26720 haveit=
26721 for x in $rpathdirs; do
26722 if test "X$x" = "X$found_dir"; then
26723 haveit=yes
26724 break
26726 done
26727 if test -z "$haveit"; then
26728 rpathdirs="$rpathdirs $found_dir"
26730 else
26731 haveit=
26732 for x in $LDFLAGS $LIBICONV; do
26734 acl_save_prefix="$prefix"
26735 prefix="$acl_final_prefix"
26736 acl_save_exec_prefix="$exec_prefix"
26737 exec_prefix="$acl_final_exec_prefix"
26738 eval x=\"$x\"
26739 exec_prefix="$acl_save_exec_prefix"
26740 prefix="$acl_save_prefix"
26742 if test "X$x" = "X-L$found_dir"; then
26743 haveit=yes
26744 break
26746 done
26747 if test -z "$haveit"; then
26748 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
26750 if test "$hardcode_minus_L" != no; then
26751 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26752 else
26753 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
26758 else
26759 if test "X$found_a" != "X"; then
26760 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
26761 else
26762 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
26765 additional_includedir=
26766 case "$found_dir" in
26767 */lib | */lib/)
26768 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
26769 additional_includedir="$basedir/include"
26771 esac
26772 if test "X$additional_includedir" != "X"; then
26773 if test "X$additional_includedir" != "X/usr/include"; then
26774 haveit=
26775 if test "X$additional_includedir" = "X/usr/local/include"; then
26776 if test -n "$GCC"; then
26777 case $host_os in
26778 linux*) haveit=yes;;
26779 esac
26782 if test -z "$haveit"; then
26783 for x in $CPPFLAGS $INCICONV; do
26785 acl_save_prefix="$prefix"
26786 prefix="$acl_final_prefix"
26787 acl_save_exec_prefix="$exec_prefix"
26788 exec_prefix="$acl_final_exec_prefix"
26789 eval x=\"$x\"
26790 exec_prefix="$acl_save_exec_prefix"
26791 prefix="$acl_save_prefix"
26793 if test "X$x" = "X-I$additional_includedir"; then
26794 haveit=yes
26795 break
26797 done
26798 if test -z "$haveit"; then
26799 if test -d "$additional_includedir"; then
26800 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
26806 if test -n "$found_la"; then
26807 save_libdir="$libdir"
26808 case "$found_la" in
26809 */* | *\\*) . "$found_la" ;;
26810 *) . "./$found_la" ;;
26811 esac
26812 libdir="$save_libdir"
26813 for dep in $dependency_libs; do
26814 case "$dep" in
26815 -L*)
26816 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26817 if test "X$additional_libdir" != "X/usr/lib"; then
26818 haveit=
26819 if test "X$additional_libdir" = "X/usr/local/lib"; then
26820 if test -n "$GCC"; then
26821 case $host_os in
26822 linux*) haveit=yes;;
26823 esac
26826 if test -z "$haveit"; then
26827 haveit=
26828 for x in $LDFLAGS $LIBICONV; do
26830 acl_save_prefix="$prefix"
26831 prefix="$acl_final_prefix"
26832 acl_save_exec_prefix="$exec_prefix"
26833 exec_prefix="$acl_final_exec_prefix"
26834 eval x=\"$x\"
26835 exec_prefix="$acl_save_exec_prefix"
26836 prefix="$acl_save_prefix"
26838 if test "X$x" = "X-L$additional_libdir"; then
26839 haveit=yes
26840 break
26842 done
26843 if test -z "$haveit"; then
26844 if test -d "$additional_libdir"; then
26845 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
26848 haveit=
26849 for x in $LDFLAGS $LTLIBICONV; do
26851 acl_save_prefix="$prefix"
26852 prefix="$acl_final_prefix"
26853 acl_save_exec_prefix="$exec_prefix"
26854 exec_prefix="$acl_final_exec_prefix"
26855 eval x=\"$x\"
26856 exec_prefix="$acl_save_exec_prefix"
26857 prefix="$acl_save_prefix"
26859 if test "X$x" = "X-L$additional_libdir"; then
26860 haveit=yes
26861 break
26863 done
26864 if test -z "$haveit"; then
26865 if test -d "$additional_libdir"; then
26866 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
26872 -R*)
26873 dir=`echo "X$dep" | sed -e 's/^X-R//'`
26874 if test "$enable_rpath" != no; then
26875 haveit=
26876 for x in $rpathdirs; do
26877 if test "X$x" = "X$dir"; then
26878 haveit=yes
26879 break
26881 done
26882 if test -z "$haveit"; then
26883 rpathdirs="$rpathdirs $dir"
26885 haveit=
26886 for x in $ltrpathdirs; do
26887 if test "X$x" = "X$dir"; then
26888 haveit=yes
26889 break
26891 done
26892 if test -z "$haveit"; then
26893 ltrpathdirs="$ltrpathdirs $dir"
26897 -l*)
26898 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26900 *.la)
26901 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26904 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
26905 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
26907 esac
26908 done
26910 else
26911 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
26912 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
26913 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
26914 else
26915 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
26916 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
26921 done
26922 done
26923 if test "X$rpathdirs" != "X"; then
26924 if test -n "$hardcode_libdir_separator"; then
26925 alldirs=
26926 for found_dir in $rpathdirs; do
26927 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
26928 done
26929 acl_save_libdir="$libdir"
26930 libdir="$alldirs"
26931 eval flag=\"$hardcode_libdir_flag_spec\"
26932 libdir="$acl_save_libdir"
26933 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26934 else
26935 for found_dir in $rpathdirs; do
26936 acl_save_libdir="$libdir"
26937 libdir="$found_dir"
26938 eval flag=\"$hardcode_libdir_flag_spec\"
26939 libdir="$acl_save_libdir"
26940 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26941 done
26944 if test "X$ltrpathdirs" != "X"; then
26945 for found_dir in $ltrpathdirs; do
26946 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
26947 done
26956 am_save_CPPFLAGS="$CPPFLAGS"
26958 for element in $INCICONV; do
26959 haveit=
26960 for x in $CPPFLAGS; do
26962 acl_save_prefix="$prefix"
26963 prefix="$acl_final_prefix"
26964 acl_save_exec_prefix="$exec_prefix"
26965 exec_prefix="$acl_final_exec_prefix"
26966 eval x=\"$x\"
26967 exec_prefix="$acl_save_exec_prefix"
26968 prefix="$acl_save_prefix"
26970 if test "X$x" = "X$element"; then
26971 haveit=yes
26972 break
26974 done
26975 if test -z "$haveit"; then
26976 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26978 done
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
26982 $as_echo_n "checking for iconv... " >&6; }
26983 if ${am_cv_func_iconv+:} false; then :
26984 $as_echo_n "(cached) " >&6
26985 else
26987 am_cv_func_iconv="no, consider installing GNU libiconv"
26988 am_cv_lib_iconv=no
26989 if test x$gcc_no_link = xyes; then
26990 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26993 /* end confdefs.h. */
26995 #include <stdlib.h>
26996 #include <iconv.h>
26999 main ()
27001 iconv_t cd = iconv_open("","");
27002 iconv(cd,NULL,NULL,NULL,NULL);
27003 iconv_close(cd);
27005 return 0;
27007 _ACEOF
27008 if ac_fn_c_try_link "$LINENO"; then :
27009 am_cv_func_iconv=yes
27011 rm -f core conftest.err conftest.$ac_objext \
27012 conftest$ac_exeext conftest.$ac_ext
27013 if test "$am_cv_func_iconv" != yes; then
27014 am_save_LIBS="$LIBS"
27015 LIBS="$LIBS $LIBICONV"
27016 if test x$gcc_no_link = xyes; then
27017 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
27019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27020 /* end confdefs.h. */
27022 #include <stdlib.h>
27023 #include <iconv.h>
27026 main ()
27028 iconv_t cd = iconv_open("","");
27029 iconv(cd,NULL,NULL,NULL,NULL);
27030 iconv_close(cd);
27032 return 0;
27034 _ACEOF
27035 if ac_fn_c_try_link "$LINENO"; then :
27036 am_cv_lib_iconv=yes
27037 am_cv_func_iconv=yes
27039 rm -f core conftest.err conftest.$ac_objext \
27040 conftest$ac_exeext conftest.$ac_ext
27041 LIBS="$am_save_LIBS"
27045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
27046 $as_echo "$am_cv_func_iconv" >&6; }
27047 if test "$am_cv_func_iconv" = yes; then
27048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
27049 $as_echo_n "checking for working iconv... " >&6; }
27050 if ${am_cv_func_iconv_works+:} false; then :
27051 $as_echo_n "(cached) " >&6
27052 else
27054 am_save_LIBS="$LIBS"
27055 if test $am_cv_lib_iconv = yes; then
27056 LIBS="$LIBS $LIBICONV"
27058 am_cv_func_iconv_works=no
27059 for ac_iconv_const in '' 'const'; do
27060 if test "$cross_compiling" = yes; then :
27061 case "$host_os" in
27062 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
27063 *) am_cv_func_iconv_works="guessing yes" ;;
27064 esac
27065 else
27066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27067 /* end confdefs.h. */
27069 #include <iconv.h>
27070 #include <string.h>
27072 #ifndef ICONV_CONST
27073 # define ICONV_CONST $ac_iconv_const
27074 #endif
27077 main ()
27079 int result = 0;
27080 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
27081 successful returns. This is even documented in
27082 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
27084 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
27085 if (cd_utf8_to_88591 != (iconv_t)(-1))
27087 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
27088 char buf[10];
27089 ICONV_CONST char *inptr = input;
27090 size_t inbytesleft = strlen (input);
27091 char *outptr = buf;
27092 size_t outbytesleft = sizeof (buf);
27093 size_t res = iconv (cd_utf8_to_88591,
27094 &inptr, &inbytesleft,
27095 &outptr, &outbytesleft);
27096 if (res == 0)
27097 result |= 1;
27098 iconv_close (cd_utf8_to_88591);
27101 /* Test against Solaris 10 bug: Failures are not distinguishable from
27102 successful returns. */
27104 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
27105 if (cd_ascii_to_88591 != (iconv_t)(-1))
27107 static ICONV_CONST char input[] = "\263";
27108 char buf[10];
27109 ICONV_CONST char *inptr = input;
27110 size_t inbytesleft = strlen (input);
27111 char *outptr = buf;
27112 size_t outbytesleft = sizeof (buf);
27113 size_t res = iconv (cd_ascii_to_88591,
27114 &inptr, &inbytesleft,
27115 &outptr, &outbytesleft);
27116 if (res == 0)
27117 result |= 2;
27118 iconv_close (cd_ascii_to_88591);
27121 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
27123 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
27124 if (cd_88591_to_utf8 != (iconv_t)(-1))
27126 static ICONV_CONST char input[] = "\304";
27127 static char buf[2] = { (char)0xDE, (char)0xAD };
27128 ICONV_CONST char *inptr = input;
27129 size_t inbytesleft = 1;
27130 char *outptr = buf;
27131 size_t outbytesleft = 1;
27132 size_t res = iconv (cd_88591_to_utf8,
27133 &inptr, &inbytesleft,
27134 &outptr, &outbytesleft);
27135 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
27136 result |= 4;
27137 iconv_close (cd_88591_to_utf8);
27140 #if 0 /* This bug could be worked around by the caller. */
27141 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
27143 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
27144 if (cd_88591_to_utf8 != (iconv_t)(-1))
27146 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
27147 char buf[50];
27148 ICONV_CONST char *inptr = input;
27149 size_t inbytesleft = strlen (input);
27150 char *outptr = buf;
27151 size_t outbytesleft = sizeof (buf);
27152 size_t res = iconv (cd_88591_to_utf8,
27153 &inptr, &inbytesleft,
27154 &outptr, &outbytesleft);
27155 if ((int)res > 0)
27156 result |= 8;
27157 iconv_close (cd_88591_to_utf8);
27160 #endif
27161 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
27162 provided. */
27164 /* Try standardized names. */
27165 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
27166 /* Try IRIX, OSF/1 names. */
27167 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
27168 /* Try AIX names. */
27169 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
27170 /* Try HP-UX names. */
27171 iconv_t cd4 = iconv_open ("utf8", "eucJP");
27172 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
27173 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
27174 result |= 16;
27175 if (cd1 != (iconv_t)(-1))
27176 iconv_close (cd1);
27177 if (cd2 != (iconv_t)(-1))
27178 iconv_close (cd2);
27179 if (cd3 != (iconv_t)(-1))
27180 iconv_close (cd3);
27181 if (cd4 != (iconv_t)(-1))
27182 iconv_close (cd4);
27184 return result;
27187 return 0;
27189 _ACEOF
27190 if ac_fn_c_try_run "$LINENO"; then :
27191 am_cv_func_iconv_works=yes
27193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27194 conftest.$ac_objext conftest.beam conftest.$ac_ext
27197 test "$am_cv_func_iconv_works" = no || break
27198 done
27199 LIBS="$am_save_LIBS"
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
27203 $as_echo "$am_cv_func_iconv_works" >&6; }
27204 case "$am_cv_func_iconv_works" in
27205 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
27206 *) am_func_iconv=yes ;;
27207 esac
27208 else
27209 am_func_iconv=no am_cv_lib_iconv=no
27211 if test "$am_func_iconv" = yes; then
27213 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
27216 if test "$am_cv_lib_iconv" = yes; then
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
27218 $as_echo_n "checking how to link with libiconv... " >&6; }
27219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
27220 $as_echo "$LIBICONV" >&6; }
27221 else
27222 CPPFLAGS="$am_save_CPPFLAGS"
27223 LIBICONV=
27224 LTLIBICONV=
27229 if test "$am_cv_func_iconv" = yes; then
27230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iconv is compatible with its POSIX signature" >&5
27231 $as_echo_n "checking whether iconv is compatible with its POSIX signature... " >&6; }
27232 if ${gl_cv_iconv_nonconst+:} false; then :
27233 $as_echo_n "(cached) " >&6
27234 else
27235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27236 /* end confdefs.h. */
27238 #include <stdlib.h>
27239 #include <iconv.h>
27240 extern
27241 #ifdef __cplusplus
27243 #endif
27244 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
27247 main ()
27251 return 0;
27253 _ACEOF
27254 if ac_fn_c_try_compile "$LINENO"; then :
27255 gl_cv_iconv_nonconst=yes
27256 else
27257 gl_cv_iconv_nonconst=no
27259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_iconv_nonconst" >&5
27263 $as_echo "$gl_cv_iconv_nonconst" >&6; }
27264 else
27265 gl_cv_iconv_nonconst=yes
27267 if test $gl_cv_iconv_nonconst = yes; then
27268 iconv_arg1=""
27269 else
27270 iconv_arg1="const"
27273 cat >>confdefs.h <<_ACEOF
27274 #define ICONV_CONST $iconv_arg1
27275 _ACEOF
27279 if test "$am_func_iconv" = yes; then
27280 if test -n "$LIBICONV"; then
27281 am_cv_func_iconv_summary='yes, in libiconv'
27282 else
27283 am_cv_func_iconv_summary='yes, in libc'
27285 else
27286 if test "$am_cv_func_iconv" = yes; then
27287 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
27288 else
27289 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
27294 else
27296 # This lets us hard-code the functionality we know we'll have in the cross
27297 # target environment. "Let" is a sugar-coated word placed on an especially
27298 # dull and tedious hack, actually.
27300 # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
27301 # that involve linking, can't be used:
27302 # "cannot open sim-crt0.o"
27303 # "cannot open crt0.o"
27304 # etc. All this is because there currently exists no unified, consistent
27305 # way for top level CC information to be passed down to target directories:
27306 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
27307 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
27308 # crosses can be removed.
27310 # If Canadian cross, then don't pick up tools from the build directory.
27311 # Used only in GLIBCXX_EXPORT_INCLUDES.
27312 if test -n "$with_cross_host" &&
27313 test x"$build_alias" != x"$with_cross_host" &&
27314 test x"$build" != x"$target";
27315 then
27316 CANADIAN=yes
27317 else
27318 CANADIAN=no
27321 # Construct crosses by hand, eliminating bits that need ld...
27322 # GLIBCXX_CHECK_MATH_SUPPORT
27324 # First, test for "known" system libraries. We may be using newlib even
27325 # on a hosted environment.
27326 if test "x${with_newlib}" = "xyes"; then
27327 os_include_dir="os/newlib"
27328 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
27331 # GLIBCXX_CHECK_STDLIB_SUPPORT
27332 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
27335 $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
27337 $as_echo "#define HAVE_ASINF 1" >>confdefs.h
27339 $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
27341 $as_echo "#define HAVE_ATANF 1" >>confdefs.h
27343 $as_echo "#define HAVE_CEILF 1" >>confdefs.h
27345 $as_echo "#define HAVE_COSF 1" >>confdefs.h
27347 $as_echo "#define HAVE_COSHF 1" >>confdefs.h
27349 $as_echo "#define HAVE_EXPF 1" >>confdefs.h
27351 $as_echo "#define HAVE_FABSF 1" >>confdefs.h
27353 $as_echo "#define HAVE_FLOORF 1" >>confdefs.h
27355 $as_echo "#define HAVE_FMODF 1" >>confdefs.h
27357 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
27359 $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
27361 $as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
27363 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
27365 $as_echo "#define HAVE_LOGF 1" >>confdefs.h
27367 $as_echo "#define HAVE_MODFF 1" >>confdefs.h
27369 $as_echo "#define HAVE_POWF 1" >>confdefs.h
27371 $as_echo "#define HAVE_SINF 1" >>confdefs.h
27373 $as_echo "#define HAVE_SINHF 1" >>confdefs.h
27375 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
27377 $as_echo "#define HAVE_TANF 1" >>confdefs.h
27379 $as_echo "#define HAVE_TANHF 1" >>confdefs.h
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl declaration" >&5
27386 $as_echo_n "checking for acosl declaration... " >&6; }
27387 if ${glibcxx_cv_func_acosl_use+:} false; then :
27388 $as_echo_n "(cached) " >&6
27389 else
27392 ac_ext=c
27393 ac_cpp='$CPP $CPPFLAGS'
27394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27399 /* end confdefs.h. */
27401 #include <math.h>
27402 #ifdef HAVE_IEEEFP_H
27403 # include <ieeefp.h>
27404 #endif
27405 #undef acosl
27408 main ()
27411 void (*f)(void) = (void (*)(void))acosl;
27414 return 0;
27416 _ACEOF
27417 if ac_fn_c_try_compile "$LINENO"; then :
27418 glibcxx_cv_func_acosl_use=yes
27420 else
27421 glibcxx_cv_func_acosl_use=no
27423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_acosl_use" >&5
27426 $as_echo "$glibcxx_cv_func_acosl_use" >&6; }
27427 if test "x$glibcxx_cv_func_acosl_use" = xyes; then
27428 cat >>confdefs.h <<_ACEOF
27429 #define HAVE_ACOSL 1
27430 _ACEOF
27436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl declaration" >&5
27437 $as_echo_n "checking for asinl declaration... " >&6; }
27438 if ${glibcxx_cv_func_asinl_use+:} false; then :
27439 $as_echo_n "(cached) " >&6
27440 else
27443 ac_ext=c
27444 ac_cpp='$CPP $CPPFLAGS'
27445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27450 /* end confdefs.h. */
27452 #include <math.h>
27453 #ifdef HAVE_IEEEFP_H
27454 # include <ieeefp.h>
27455 #endif
27456 #undef asinl
27459 main ()
27462 void (*f)(void) = (void (*)(void))asinl;
27465 return 0;
27467 _ACEOF
27468 if ac_fn_c_try_compile "$LINENO"; then :
27469 glibcxx_cv_func_asinl_use=yes
27471 else
27472 glibcxx_cv_func_asinl_use=no
27474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_asinl_use" >&5
27477 $as_echo "$glibcxx_cv_func_asinl_use" >&6; }
27478 if test "x$glibcxx_cv_func_asinl_use" = xyes; then
27479 cat >>confdefs.h <<_ACEOF
27480 #define HAVE_ASINL 1
27481 _ACEOF
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
27488 $as_echo_n "checking for atan2l declaration... " >&6; }
27489 if ${glibcxx_cv_func_atan2l_use+:} false; then :
27490 $as_echo_n "(cached) " >&6
27491 else
27494 ac_ext=c
27495 ac_cpp='$CPP $CPPFLAGS'
27496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27501 /* end confdefs.h. */
27503 #include <math.h>
27504 #ifdef HAVE_IEEEFP_H
27505 # include <ieeefp.h>
27506 #endif
27507 #undef atan2l
27510 main ()
27513 void (*f)(void) = (void (*)(void))atan2l;
27516 return 0;
27518 _ACEOF
27519 if ac_fn_c_try_compile "$LINENO"; then :
27520 glibcxx_cv_func_atan2l_use=yes
27522 else
27523 glibcxx_cv_func_atan2l_use=no
27525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
27528 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
27529 if test "x$glibcxx_cv_func_atan2l_use" = xyes; then
27530 cat >>confdefs.h <<_ACEOF
27531 #define HAVE_ATAN2L 1
27532 _ACEOF
27538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl declaration" >&5
27539 $as_echo_n "checking for atanl declaration... " >&6; }
27540 if ${glibcxx_cv_func_atanl_use+:} false; then :
27541 $as_echo_n "(cached) " >&6
27542 else
27545 ac_ext=c
27546 ac_cpp='$CPP $CPPFLAGS'
27547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27552 /* end confdefs.h. */
27554 #include <math.h>
27555 #ifdef HAVE_IEEEFP_H
27556 # include <ieeefp.h>
27557 #endif
27558 #undef atanl
27561 main ()
27564 void (*f)(void) = (void (*)(void))atanl;
27567 return 0;
27569 _ACEOF
27570 if ac_fn_c_try_compile "$LINENO"; then :
27571 glibcxx_cv_func_atanl_use=yes
27573 else
27574 glibcxx_cv_func_atanl_use=no
27576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atanl_use" >&5
27579 $as_echo "$glibcxx_cv_func_atanl_use" >&6; }
27580 if test "x$glibcxx_cv_func_atanl_use" = xyes; then
27581 cat >>confdefs.h <<_ACEOF
27582 #define HAVE_ATANL 1
27583 _ACEOF
27589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill declaration" >&5
27590 $as_echo_n "checking for ceill declaration... " >&6; }
27591 if ${glibcxx_cv_func_ceill_use+:} false; then :
27592 $as_echo_n "(cached) " >&6
27593 else
27596 ac_ext=c
27597 ac_cpp='$CPP $CPPFLAGS'
27598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27603 /* end confdefs.h. */
27605 #include <math.h>
27606 #ifdef HAVE_IEEEFP_H
27607 # include <ieeefp.h>
27608 #endif
27609 #undef ceill
27612 main ()
27615 void (*f)(void) = (void (*)(void))ceill;
27618 return 0;
27620 _ACEOF
27621 if ac_fn_c_try_compile "$LINENO"; then :
27622 glibcxx_cv_func_ceill_use=yes
27624 else
27625 glibcxx_cv_func_ceill_use=no
27627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ceill_use" >&5
27630 $as_echo "$glibcxx_cv_func_ceill_use" >&6; }
27631 if test "x$glibcxx_cv_func_ceill_use" = xyes; then
27632 cat >>confdefs.h <<_ACEOF
27633 #define HAVE_CEILL 1
27634 _ACEOF
27640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl declaration" >&5
27641 $as_echo_n "checking for coshl declaration... " >&6; }
27642 if ${glibcxx_cv_func_coshl_use+:} false; then :
27643 $as_echo_n "(cached) " >&6
27644 else
27647 ac_ext=c
27648 ac_cpp='$CPP $CPPFLAGS'
27649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27654 /* end confdefs.h. */
27656 #include <math.h>
27657 #ifdef HAVE_IEEEFP_H
27658 # include <ieeefp.h>
27659 #endif
27660 #undef coshl
27663 main ()
27666 void (*f)(void) = (void (*)(void))coshl;
27669 return 0;
27671 _ACEOF
27672 if ac_fn_c_try_compile "$LINENO"; then :
27673 glibcxx_cv_func_coshl_use=yes
27675 else
27676 glibcxx_cv_func_coshl_use=no
27678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_coshl_use" >&5
27681 $as_echo "$glibcxx_cv_func_coshl_use" >&6; }
27682 if test "x$glibcxx_cv_func_coshl_use" = xyes; then
27683 cat >>confdefs.h <<_ACEOF
27684 #define HAVE_COSHL 1
27685 _ACEOF
27691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl declaration" >&5
27692 $as_echo_n "checking for cosl declaration... " >&6; }
27693 if ${glibcxx_cv_func_cosl_use+:} false; then :
27694 $as_echo_n "(cached) " >&6
27695 else
27698 ac_ext=c
27699 ac_cpp='$CPP $CPPFLAGS'
27700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27705 /* end confdefs.h. */
27707 #include <math.h>
27708 #ifdef HAVE_IEEEFP_H
27709 # include <ieeefp.h>
27710 #endif
27711 #undef cosl
27714 main ()
27717 void (*f)(void) = (void (*)(void))cosl;
27720 return 0;
27722 _ACEOF
27723 if ac_fn_c_try_compile "$LINENO"; then :
27724 glibcxx_cv_func_cosl_use=yes
27726 else
27727 glibcxx_cv_func_cosl_use=no
27729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_cosl_use" >&5
27732 $as_echo "$glibcxx_cv_func_cosl_use" >&6; }
27733 if test "x$glibcxx_cv_func_cosl_use" = xyes; then
27734 cat >>confdefs.h <<_ACEOF
27735 #define HAVE_COSL 1
27736 _ACEOF
27742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
27743 $as_echo_n "checking for expl declaration... " >&6; }
27744 if ${glibcxx_cv_func_expl_use+:} false; then :
27745 $as_echo_n "(cached) " >&6
27746 else
27749 ac_ext=c
27750 ac_cpp='$CPP $CPPFLAGS'
27751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27756 /* end confdefs.h. */
27758 #include <math.h>
27759 #ifdef HAVE_IEEEFP_H
27760 # include <ieeefp.h>
27761 #endif
27762 #undef expl
27765 main ()
27768 void (*f)(void) = (void (*)(void))expl;
27771 return 0;
27773 _ACEOF
27774 if ac_fn_c_try_compile "$LINENO"; then :
27775 glibcxx_cv_func_expl_use=yes
27777 else
27778 glibcxx_cv_func_expl_use=no
27780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
27783 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
27784 if test "x$glibcxx_cv_func_expl_use" = xyes; then
27785 cat >>confdefs.h <<_ACEOF
27786 #define HAVE_EXPL 1
27787 _ACEOF
27793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
27794 $as_echo_n "checking for fabsl declaration... " >&6; }
27795 if ${glibcxx_cv_func_fabsl_use+:} false; then :
27796 $as_echo_n "(cached) " >&6
27797 else
27800 ac_ext=c
27801 ac_cpp='$CPP $CPPFLAGS'
27802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27807 /* end confdefs.h. */
27809 #include <math.h>
27810 #ifdef HAVE_IEEEFP_H
27811 # include <ieeefp.h>
27812 #endif
27813 #undef fabsl
27816 main ()
27819 void (*f)(void) = (void (*)(void))fabsl;
27822 return 0;
27824 _ACEOF
27825 if ac_fn_c_try_compile "$LINENO"; then :
27826 glibcxx_cv_func_fabsl_use=yes
27828 else
27829 glibcxx_cv_func_fabsl_use=no
27831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
27834 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
27835 if test "x$glibcxx_cv_func_fabsl_use" = xyes; then
27836 cat >>confdefs.h <<_ACEOF
27837 #define HAVE_FABSL 1
27838 _ACEOF
27844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl declaration" >&5
27845 $as_echo_n "checking for floorl declaration... " >&6; }
27846 if ${glibcxx_cv_func_floorl_use+:} false; then :
27847 $as_echo_n "(cached) " >&6
27848 else
27851 ac_ext=c
27852 ac_cpp='$CPP $CPPFLAGS'
27853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27858 /* end confdefs.h. */
27860 #include <math.h>
27861 #ifdef HAVE_IEEEFP_H
27862 # include <ieeefp.h>
27863 #endif
27864 #undef floorl
27867 main ()
27870 void (*f)(void) = (void (*)(void))floorl;
27873 return 0;
27875 _ACEOF
27876 if ac_fn_c_try_compile "$LINENO"; then :
27877 glibcxx_cv_func_floorl_use=yes
27879 else
27880 glibcxx_cv_func_floorl_use=no
27882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_floorl_use" >&5
27885 $as_echo "$glibcxx_cv_func_floorl_use" >&6; }
27886 if test "x$glibcxx_cv_func_floorl_use" = xyes; then
27887 cat >>confdefs.h <<_ACEOF
27888 #define HAVE_FLOORL 1
27889 _ACEOF
27895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
27896 $as_echo_n "checking for fmodl declaration... " >&6; }
27897 if ${glibcxx_cv_func_fmodl_use+:} false; then :
27898 $as_echo_n "(cached) " >&6
27899 else
27902 ac_ext=c
27903 ac_cpp='$CPP $CPPFLAGS'
27904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27909 /* end confdefs.h. */
27911 #include <math.h>
27912 #ifdef HAVE_IEEEFP_H
27913 # include <ieeefp.h>
27914 #endif
27915 #undef fmodl
27918 main ()
27921 void (*f)(void) = (void (*)(void))fmodl;
27924 return 0;
27926 _ACEOF
27927 if ac_fn_c_try_compile "$LINENO"; then :
27928 glibcxx_cv_func_fmodl_use=yes
27930 else
27931 glibcxx_cv_func_fmodl_use=no
27933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
27936 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
27937 if test "x$glibcxx_cv_func_fmodl_use" = xyes; then
27938 cat >>confdefs.h <<_ACEOF
27939 #define HAVE_FMODL 1
27940 _ACEOF
27946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
27947 $as_echo_n "checking for frexpl declaration... " >&6; }
27948 if ${glibcxx_cv_func_frexpl_use+:} false; then :
27949 $as_echo_n "(cached) " >&6
27950 else
27953 ac_ext=c
27954 ac_cpp='$CPP $CPPFLAGS'
27955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27960 /* end confdefs.h. */
27962 #include <math.h>
27963 #ifdef HAVE_IEEEFP_H
27964 # include <ieeefp.h>
27965 #endif
27966 #undef frexpl
27969 main ()
27972 void (*f)(void) = (void (*)(void))frexpl;
27975 return 0;
27977 _ACEOF
27978 if ac_fn_c_try_compile "$LINENO"; then :
27979 glibcxx_cv_func_frexpl_use=yes
27981 else
27982 glibcxx_cv_func_frexpl_use=no
27984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
27987 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
27988 if test "x$glibcxx_cv_func_frexpl_use" = xyes; then
27989 cat >>confdefs.h <<_ACEOF
27990 #define HAVE_FREXPL 1
27991 _ACEOF
27997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
27998 $as_echo_n "checking for hypotl declaration... " >&6; }
27999 if ${glibcxx_cv_func_hypotl_use+:} false; then :
28000 $as_echo_n "(cached) " >&6
28001 else
28004 ac_ext=c
28005 ac_cpp='$CPP $CPPFLAGS'
28006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28011 /* end confdefs.h. */
28013 #include <math.h>
28014 #ifdef HAVE_IEEEFP_H
28015 # include <ieeefp.h>
28016 #endif
28017 #undef hypotl
28020 main ()
28023 void (*f)(void) = (void (*)(void))hypotl;
28026 return 0;
28028 _ACEOF
28029 if ac_fn_c_try_compile "$LINENO"; then :
28030 glibcxx_cv_func_hypotl_use=yes
28032 else
28033 glibcxx_cv_func_hypotl_use=no
28035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
28038 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
28039 if test "x$glibcxx_cv_func_hypotl_use" = xyes; then
28040 cat >>confdefs.h <<_ACEOF
28041 #define HAVE_HYPOTL 1
28042 _ACEOF
28048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
28049 $as_echo_n "checking for ldexpl declaration... " >&6; }
28050 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
28051 $as_echo_n "(cached) " >&6
28052 else
28055 ac_ext=c
28056 ac_cpp='$CPP $CPPFLAGS'
28057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28062 /* end confdefs.h. */
28064 #include <math.h>
28065 #ifdef HAVE_IEEEFP_H
28066 # include <ieeefp.h>
28067 #endif
28068 #undef ldexpl
28071 main ()
28074 void (*f)(void) = (void (*)(void))ldexpl;
28077 return 0;
28079 _ACEOF
28080 if ac_fn_c_try_compile "$LINENO"; then :
28081 glibcxx_cv_func_ldexpl_use=yes
28083 else
28084 glibcxx_cv_func_ldexpl_use=no
28086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
28089 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
28090 if test "x$glibcxx_cv_func_ldexpl_use" = xyes; then
28091 cat >>confdefs.h <<_ACEOF
28092 #define HAVE_LDEXPL 1
28093 _ACEOF
28099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
28100 $as_echo_n "checking for log10l declaration... " >&6; }
28101 if ${glibcxx_cv_func_log10l_use+:} false; then :
28102 $as_echo_n "(cached) " >&6
28103 else
28106 ac_ext=c
28107 ac_cpp='$CPP $CPPFLAGS'
28108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28113 /* end confdefs.h. */
28115 #include <math.h>
28116 #ifdef HAVE_IEEEFP_H
28117 # include <ieeefp.h>
28118 #endif
28119 #undef log10l
28122 main ()
28125 void (*f)(void) = (void (*)(void))log10l;
28128 return 0;
28130 _ACEOF
28131 if ac_fn_c_try_compile "$LINENO"; then :
28132 glibcxx_cv_func_log10l_use=yes
28134 else
28135 glibcxx_cv_func_log10l_use=no
28137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
28140 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
28141 if test "x$glibcxx_cv_func_log10l_use" = xyes; then
28142 cat >>confdefs.h <<_ACEOF
28143 #define HAVE_LOG10L 1
28144 _ACEOF
28150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
28151 $as_echo_n "checking for logl declaration... " >&6; }
28152 if ${glibcxx_cv_func_logl_use+:} false; then :
28153 $as_echo_n "(cached) " >&6
28154 else
28157 ac_ext=c
28158 ac_cpp='$CPP $CPPFLAGS'
28159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28164 /* end confdefs.h. */
28166 #include <math.h>
28167 #ifdef HAVE_IEEEFP_H
28168 # include <ieeefp.h>
28169 #endif
28170 #undef logl
28173 main ()
28176 void (*f)(void) = (void (*)(void))logl;
28179 return 0;
28181 _ACEOF
28182 if ac_fn_c_try_compile "$LINENO"; then :
28183 glibcxx_cv_func_logl_use=yes
28185 else
28186 glibcxx_cv_func_logl_use=no
28188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
28191 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
28192 if test "x$glibcxx_cv_func_logl_use" = xyes; then
28193 cat >>confdefs.h <<_ACEOF
28194 #define HAVE_LOGL 1
28195 _ACEOF
28201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
28202 $as_echo_n "checking for modfl declaration... " >&6; }
28203 if ${glibcxx_cv_func_modfl_use+:} false; then :
28204 $as_echo_n "(cached) " >&6
28205 else
28208 ac_ext=c
28209 ac_cpp='$CPP $CPPFLAGS'
28210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28215 /* end confdefs.h. */
28217 #include <math.h>
28218 #ifdef HAVE_IEEEFP_H
28219 # include <ieeefp.h>
28220 #endif
28221 #undef modfl
28224 main ()
28227 void (*f)(void) = (void (*)(void))modfl;
28230 return 0;
28232 _ACEOF
28233 if ac_fn_c_try_compile "$LINENO"; then :
28234 glibcxx_cv_func_modfl_use=yes
28236 else
28237 glibcxx_cv_func_modfl_use=no
28239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
28242 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
28243 if test "x$glibcxx_cv_func_modfl_use" = xyes; then
28244 cat >>confdefs.h <<_ACEOF
28245 #define HAVE_MODFL 1
28246 _ACEOF
28252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
28253 $as_echo_n "checking for powl declaration... " >&6; }
28254 if ${glibcxx_cv_func_powl_use+:} false; then :
28255 $as_echo_n "(cached) " >&6
28256 else
28259 ac_ext=c
28260 ac_cpp='$CPP $CPPFLAGS'
28261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28266 /* end confdefs.h. */
28268 #include <math.h>
28269 #ifdef HAVE_IEEEFP_H
28270 # include <ieeefp.h>
28271 #endif
28272 #undef powl
28275 main ()
28278 void (*f)(void) = (void (*)(void))powl;
28281 return 0;
28283 _ACEOF
28284 if ac_fn_c_try_compile "$LINENO"; then :
28285 glibcxx_cv_func_powl_use=yes
28287 else
28288 glibcxx_cv_func_powl_use=no
28290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
28293 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
28294 if test "x$glibcxx_cv_func_powl_use" = xyes; then
28295 cat >>confdefs.h <<_ACEOF
28296 #define HAVE_POWL 1
28297 _ACEOF
28303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl declaration" >&5
28304 $as_echo_n "checking for sinhl declaration... " >&6; }
28305 if ${glibcxx_cv_func_sinhl_use+:} false; then :
28306 $as_echo_n "(cached) " >&6
28307 else
28310 ac_ext=c
28311 ac_cpp='$CPP $CPPFLAGS'
28312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28317 /* end confdefs.h. */
28319 #include <math.h>
28320 #ifdef HAVE_IEEEFP_H
28321 # include <ieeefp.h>
28322 #endif
28323 #undef sinhl
28326 main ()
28329 void (*f)(void) = (void (*)(void))sinhl;
28332 return 0;
28334 _ACEOF
28335 if ac_fn_c_try_compile "$LINENO"; then :
28336 glibcxx_cv_func_sinhl_use=yes
28338 else
28339 glibcxx_cv_func_sinhl_use=no
28341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sinhl_use" >&5
28344 $as_echo "$glibcxx_cv_func_sinhl_use" >&6; }
28345 if test "x$glibcxx_cv_func_sinhl_use" = xyes; then
28346 cat >>confdefs.h <<_ACEOF
28347 #define HAVE_SINHL 1
28348 _ACEOF
28354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl declaration" >&5
28355 $as_echo_n "checking for sinl declaration... " >&6; }
28356 if ${glibcxx_cv_func_sinl_use+:} false; then :
28357 $as_echo_n "(cached) " >&6
28358 else
28361 ac_ext=c
28362 ac_cpp='$CPP $CPPFLAGS'
28363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28368 /* end confdefs.h. */
28370 #include <math.h>
28371 #ifdef HAVE_IEEEFP_H
28372 # include <ieeefp.h>
28373 #endif
28374 #undef sinl
28377 main ()
28380 void (*f)(void) = (void (*)(void))sinl;
28383 return 0;
28385 _ACEOF
28386 if ac_fn_c_try_compile "$LINENO"; then :
28387 glibcxx_cv_func_sinl_use=yes
28389 else
28390 glibcxx_cv_func_sinl_use=no
28392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sinl_use" >&5
28395 $as_echo "$glibcxx_cv_func_sinl_use" >&6; }
28396 if test "x$glibcxx_cv_func_sinl_use" = xyes; then
28397 cat >>confdefs.h <<_ACEOF
28398 #define HAVE_SINL 1
28399 _ACEOF
28405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
28406 $as_echo_n "checking for sqrtl declaration... " >&6; }
28407 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
28408 $as_echo_n "(cached) " >&6
28409 else
28412 ac_ext=c
28413 ac_cpp='$CPP $CPPFLAGS'
28414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28419 /* end confdefs.h. */
28421 #include <math.h>
28422 #ifdef HAVE_IEEEFP_H
28423 # include <ieeefp.h>
28424 #endif
28425 #undef sqrtl
28428 main ()
28431 void (*f)(void) = (void (*)(void))sqrtl;
28434 return 0;
28436 _ACEOF
28437 if ac_fn_c_try_compile "$LINENO"; then :
28438 glibcxx_cv_func_sqrtl_use=yes
28440 else
28441 glibcxx_cv_func_sqrtl_use=no
28443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
28446 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
28447 if test "x$glibcxx_cv_func_sqrtl_use" = xyes; then
28448 cat >>confdefs.h <<_ACEOF
28449 #define HAVE_SQRTL 1
28450 _ACEOF
28456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl declaration" >&5
28457 $as_echo_n "checking for tanhl declaration... " >&6; }
28458 if ${glibcxx_cv_func_tanhl_use+:} false; then :
28459 $as_echo_n "(cached) " >&6
28460 else
28463 ac_ext=c
28464 ac_cpp='$CPP $CPPFLAGS'
28465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28470 /* end confdefs.h. */
28472 #include <math.h>
28473 #ifdef HAVE_IEEEFP_H
28474 # include <ieeefp.h>
28475 #endif
28476 #undef tanhl
28479 main ()
28482 void (*f)(void) = (void (*)(void))tanhl;
28485 return 0;
28487 _ACEOF
28488 if ac_fn_c_try_compile "$LINENO"; then :
28489 glibcxx_cv_func_tanhl_use=yes
28491 else
28492 glibcxx_cv_func_tanhl_use=no
28494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_tanhl_use" >&5
28497 $as_echo "$glibcxx_cv_func_tanhl_use" >&6; }
28498 if test "x$glibcxx_cv_func_tanhl_use" = xyes; then
28499 cat >>confdefs.h <<_ACEOF
28500 #define HAVE_TANHL 1
28501 _ACEOF
28507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl declaration" >&5
28508 $as_echo_n "checking for tanl declaration... " >&6; }
28509 if ${glibcxx_cv_func_tanl_use+:} false; then :
28510 $as_echo_n "(cached) " >&6
28511 else
28514 ac_ext=c
28515 ac_cpp='$CPP $CPPFLAGS'
28516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28521 /* end confdefs.h. */
28523 #include <math.h>
28524 #ifdef HAVE_IEEEFP_H
28525 # include <ieeefp.h>
28526 #endif
28527 #undef tanl
28530 main ()
28533 void (*f)(void) = (void (*)(void))tanl;
28536 return 0;
28538 _ACEOF
28539 if ac_fn_c_try_compile "$LINENO"; then :
28540 glibcxx_cv_func_tanl_use=yes
28542 else
28543 glibcxx_cv_func_tanl_use=no
28545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_tanl_use" >&5
28548 $as_echo "$glibcxx_cv_func_tanl_use" >&6; }
28549 if test "x$glibcxx_cv_func_tanl_use" = xyes; then
28550 cat >>confdefs.h <<_ACEOF
28551 #define HAVE_TANL 1
28552 _ACEOF
28559 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
28561 $as_echo "#define HAVE_MEMALIGN 1" >>confdefs.h
28564 case "${target}" in
28565 *-rtems*)
28566 case "${target}" in
28567 bfin* | lm32* | mips* | moxie* | or1k* | v850*)
28570 $as_echo "#define HAVE_TLS 1" >>confdefs.h
28573 esac
28574 $as_echo "#define HAVE_ALIGNED_ALLOC 1" >>confdefs.h
28576 $as_echo "#define HAVE_AT_QUICK_EXIT 1" >>confdefs.h
28578 $as_echo "#define HAVE_LINK 1" >>confdefs.h
28580 $as_echo "#define HAVE_QUICK_EXIT 1" >>confdefs.h
28582 $as_echo "#define HAVE_READLINK 1" >>confdefs.h
28584 $as_echo "#define HAVE_SETENV 1" >>confdefs.h
28586 $as_echo "#define HAVE_SLEEP 1" >>confdefs.h
28588 $as_echo "#define HAVE_SOCKATMARK 1" >>confdefs.h
28590 $as_echo "#define HAVE_STRERROR_L 1" >>confdefs.h
28592 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
28594 $as_echo "#define HAVE_TRUNCATE 1" >>confdefs.h
28596 $as_echo "#define HAVE_USLEEP 1" >>confdefs.h
28599 esac
28600 elif test "x$with_headers" != "xno"; then
28602 # Base decisions on target environment.
28603 case "${host}" in
28604 arm*-*-symbianelf*)
28605 # This is a freestanding configuration; there is nothing to do here.
28608 avr*-*-*)
28609 $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
28611 $as_echo "#define HAVE_ASINF 1" >>confdefs.h
28613 $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
28615 $as_echo "#define HAVE_ATANF 1" >>confdefs.h
28617 $as_echo "#define HAVE_CEILF 1" >>confdefs.h
28619 $as_echo "#define HAVE_COSF 1" >>confdefs.h
28621 $as_echo "#define HAVE_COSHF 1" >>confdefs.h
28623 $as_echo "#define HAVE_EXPF 1" >>confdefs.h
28625 $as_echo "#define HAVE_FABSF 1" >>confdefs.h
28627 $as_echo "#define HAVE_FLOORF 1" >>confdefs.h
28629 $as_echo "#define HAVE_FMODF 1" >>confdefs.h
28631 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
28633 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
28635 $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
28637 $as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
28639 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
28641 $as_echo "#define HAVE_LOGF 1" >>confdefs.h
28643 $as_echo "#define HAVE_MODFF 1" >>confdefs.h
28645 $as_echo "#define HAVE_POWF 1" >>confdefs.h
28647 $as_echo "#define HAVE_SINF 1" >>confdefs.h
28649 $as_echo "#define HAVE_SINHF 1" >>confdefs.h
28651 $as_echo "#define HAVE_TANF 1" >>confdefs.h
28653 $as_echo "#define HAVE_TANHF 1" >>confdefs.h
28657 mips*-sde-elf*)
28658 # These definitions are for the SDE C library rather than newlib.
28659 SECTION_FLAGS='-ffunction-sections -fdata-sections'
28662 # All these tests are for C++; save the language and the compiler flags.
28663 # The CXXFLAGS thing is suspicious, but based on similar bits previously
28664 # found in GLIBCXX_CONFIGURE.
28666 ac_ext=cpp
28667 ac_cpp='$CXXCPP $CPPFLAGS'
28668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28672 ac_test_CXXFLAGS="${CXXFLAGS+set}"
28673 ac_save_CXXFLAGS="$CXXFLAGS"
28675 # Check for -ffunction-sections -fdata-sections
28676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
28677 $as_echo_n "checking for g++ that supports -ffunction-sections -fdata-sections... " >&6; }
28678 CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections'
28679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28680 /* end confdefs.h. */
28681 int foo; void bar() { };
28683 main ()
28687 return 0;
28689 _ACEOF
28690 if ac_fn_cxx_try_compile "$LINENO"; then :
28691 ac_fdsections=yes
28692 else
28693 ac_fdsections=no
28695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28696 if test "$ac_test_CXXFLAGS" = set; then
28697 CXXFLAGS="$ac_save_CXXFLAGS"
28698 else
28699 # this is the suspicious part
28700 CXXFLAGS=''
28702 if test x"$ac_fdsections" = x"yes"; then
28703 SECTION_FLAGS='-ffunction-sections -fdata-sections'
28705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
28706 $as_echo "$ac_fdsections" >&6; }
28708 ac_ext=c
28709 ac_cpp='$CPP $CPPFLAGS'
28710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28717 # If we're not using GNU ld, then there's no point in even trying these
28718 # tests. Check for that first. We should have already tested for gld
28719 # by now (in libtool), but require it now just to be safe...
28720 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
28721 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
28725 # The name set by libtool depends on the version of libtool. Shame on us
28726 # for depending on an impl detail, but c'est la vie. Older versions used
28727 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
28728 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
28729 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
28730 # set (hence we're using an older libtool), then set it.
28731 if test x${with_gnu_ld+set} != xset; then
28732 if test x${ac_cv_prog_gnu_ld+set} != xset; then
28733 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
28734 with_gnu_ld=no
28735 else
28736 with_gnu_ld=$ac_cv_prog_gnu_ld
28740 # Start by getting the version number. I think the libtool test already
28741 # does some of this, but throws away the result.
28742 glibcxx_ld_is_gold=no
28743 glibcxx_ld_is_mold=no
28744 if test x"$with_gnu_ld" = x"yes"; then
28745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
28746 $as_echo_n "checking for ld version... " >&6; }
28748 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
28749 glibcxx_ld_is_gold=yes
28750 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
28751 glibcxx_ld_is_mold=yes
28753 ldver=`$LD --version 2>/dev/null |
28754 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
28756 glibcxx_gnu_ld_version=`echo $ldver | \
28757 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
28758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
28759 $as_echo "$glibcxx_gnu_ld_version" >&6; }
28762 # Set --gc-sections.
28763 glibcxx_have_gc_sections=no
28764 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
28765 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
28766 glibcxx_have_gc_sections=yes
28768 else
28769 glibcxx_gcsections_min_ld=21602
28770 if test x"$with_gnu_ld" = x"yes" &&
28771 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
28772 glibcxx_have_gc_sections=yes
28775 if test "$glibcxx_have_gc_sections" = "yes"; then
28776 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
28777 # NB: This flag only works reliably after 2.16.1. Configure tests
28778 # for this are difficult, so hard wire a value that should work.
28780 ac_test_CFLAGS="${CFLAGS+set}"
28781 ac_save_CFLAGS="$CFLAGS"
28782 CFLAGS='-Wl,--gc-sections'
28784 # Check for -Wl,--gc-sections
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
28786 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
28787 if test x$gcc_no_link = xyes; then
28788 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28791 /* end confdefs.h. */
28792 int one(void) { return 1; }
28793 int two(void) { return 2; }
28796 main ()
28798 two();
28800 return 0;
28802 _ACEOF
28803 if ac_fn_c_try_link "$LINENO"; then :
28804 ac_gcsections=yes
28805 else
28806 ac_gcsections=no
28808 rm -f core conftest.err conftest.$ac_objext \
28809 conftest$ac_exeext conftest.$ac_ext
28810 if test "$ac_gcsections" = "yes"; then
28811 rm -f conftest.c
28812 touch conftest.c
28813 if $CC -c conftest.c; then
28814 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
28815 grep "Warning: gc-sections option ignored" > /dev/null; then
28816 ac_gcsections=no
28819 rm -f conftest.c conftest.o conftest
28821 if test "$ac_gcsections" = "yes"; then
28822 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
28825 $as_echo "$ac_gcsections" >&6; }
28827 if test "$ac_test_CFLAGS" = set; then
28828 CFLAGS="$ac_save_CFLAGS"
28829 else
28830 # this is the suspicious part
28831 CFLAGS=''
28835 # Set -z,relro.
28836 # Note this is only for shared objects.
28837 ac_ld_relro=no
28838 if test x"$with_gnu_ld" = x"yes"; then
28839 # cygwin and mingw uses PE, which has no ELF relro support,
28840 # multi target ld may confuse configure machinery
28841 case "$host" in
28842 *-*-cygwin*)
28844 *-*-mingw*)
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
28848 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
28849 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
28850 if test -n "$cxx_z_relo"; then
28851 OPT_LDFLAGS="-Wl,-z,relro"
28852 ac_ld_relro=yes
28854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
28855 $as_echo "$ac_ld_relro" >&6; }
28856 esac
28859 # Set linker optimization flags.
28860 if test x"$with_gnu_ld" = x"yes"; then
28861 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
28868 ac_test_CXXFLAGS="${CXXFLAGS+set}"
28869 ac_save_CXXFLAGS="$CXXFLAGS"
28870 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
28872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
28873 $as_echo_n "checking for sin in -lm... " >&6; }
28874 if ${ac_cv_lib_m_sin+:} false; then :
28875 $as_echo_n "(cached) " >&6
28876 else
28877 ac_check_lib_save_LIBS=$LIBS
28878 LIBS="-lm $LIBS"
28879 if test x$gcc_no_link = xyes; then
28880 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
28882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28883 /* end confdefs.h. */
28885 /* Override any GCC internal prototype to avoid an error.
28886 Use char because int might match the return type of a GCC
28887 builtin and then its argument prototype would still apply. */
28888 #ifdef __cplusplus
28889 extern "C"
28890 #endif
28891 char sin ();
28893 main ()
28895 return sin ();
28897 return 0;
28899 _ACEOF
28900 if ac_fn_c_try_link "$LINENO"; then :
28901 ac_cv_lib_m_sin=yes
28902 else
28903 ac_cv_lib_m_sin=no
28905 rm -f core conftest.err conftest.$ac_objext \
28906 conftest$ac_exeext conftest.$ac_ext
28907 LIBS=$ac_check_lib_save_LIBS
28909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
28910 $as_echo "$ac_cv_lib_m_sin" >&6; }
28911 if test "x$ac_cv_lib_m_sin" = xyes; then :
28912 libm="-lm"
28915 ac_save_LIBS="$LIBS"
28916 LIBS="$LIBS $libm"
28920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
28921 $as_echo_n "checking for isinf declaration... " >&6; }
28922 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
28923 if ${glibcxx_cv_func_isinf_use+:} false; then :
28924 $as_echo_n "(cached) " >&6
28925 else
28928 ac_ext=cpp
28929 ac_cpp='$CXXCPP $CPPFLAGS'
28930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28935 /* end confdefs.h. */
28936 #include <math.h>
28937 #ifdef HAVE_IEEEFP_H
28938 #include <ieeefp.h>
28939 #endif
28942 main ()
28944 isinf(0);
28946 return 0;
28948 _ACEOF
28949 if ac_fn_cxx_try_compile "$LINENO"; then :
28950 glibcxx_cv_func_isinf_use=yes
28951 else
28952 glibcxx_cv_func_isinf_use=no
28954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28955 ac_ext=c
28956 ac_cpp='$CPP $CPPFLAGS'
28957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
28966 $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
28968 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
28969 for ac_func in isinf
28970 do :
28971 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
28972 if test "x$ac_cv_func_isinf" = xyes; then :
28973 cat >>confdefs.h <<_ACEOF
28974 #define HAVE_ISINF 1
28975 _ACEOF
28978 done
28984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
28985 $as_echo_n "checking for isnan declaration... " >&6; }
28986 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
28987 if ${glibcxx_cv_func_isnan_use+:} false; then :
28988 $as_echo_n "(cached) " >&6
28989 else
28992 ac_ext=cpp
28993 ac_cpp='$CXXCPP $CPPFLAGS'
28994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28999 /* end confdefs.h. */
29000 #include <math.h>
29001 #ifdef HAVE_IEEEFP_H
29002 #include <ieeefp.h>
29003 #endif
29006 main ()
29008 isnan(0);
29010 return 0;
29012 _ACEOF
29013 if ac_fn_cxx_try_compile "$LINENO"; then :
29014 glibcxx_cv_func_isnan_use=yes
29015 else
29016 glibcxx_cv_func_isnan_use=no
29018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29019 ac_ext=c
29020 ac_cpp='$CPP $CPPFLAGS'
29021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
29030 $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
29032 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
29033 for ac_func in isnan
29034 do :
29035 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
29036 if test "x$ac_cv_func_isnan" = xyes; then :
29037 cat >>confdefs.h <<_ACEOF
29038 #define HAVE_ISNAN 1
29039 _ACEOF
29042 done
29048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
29049 $as_echo_n "checking for finite declaration... " >&6; }
29050 if test x${glibcxx_cv_func_finite_use+set} != xset; then
29051 if ${glibcxx_cv_func_finite_use+:} false; then :
29052 $as_echo_n "(cached) " >&6
29053 else
29056 ac_ext=cpp
29057 ac_cpp='$CXXCPP $CPPFLAGS'
29058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29063 /* end confdefs.h. */
29064 #include <math.h>
29065 #ifdef HAVE_IEEEFP_H
29066 #include <ieeefp.h>
29067 #endif
29070 main ()
29072 finite(0);
29074 return 0;
29076 _ACEOF
29077 if ac_fn_cxx_try_compile "$LINENO"; then :
29078 glibcxx_cv_func_finite_use=yes
29079 else
29080 glibcxx_cv_func_finite_use=no
29082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29083 ac_ext=c
29084 ac_cpp='$CPP $CPPFLAGS'
29085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
29094 $as_echo "$glibcxx_cv_func_finite_use" >&6; }
29096 if test x$glibcxx_cv_func_finite_use = x"yes"; then
29097 for ac_func in finite
29098 do :
29099 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
29100 if test "x$ac_cv_func_finite" = xyes; then :
29101 cat >>confdefs.h <<_ACEOF
29102 #define HAVE_FINITE 1
29103 _ACEOF
29106 done
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
29113 $as_echo_n "checking for sincos declaration... " >&6; }
29114 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
29115 if ${glibcxx_cv_func_sincos_use+:} false; then :
29116 $as_echo_n "(cached) " >&6
29117 else
29120 ac_ext=cpp
29121 ac_cpp='$CXXCPP $CPPFLAGS'
29122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29127 /* end confdefs.h. */
29128 #include <math.h>
29130 main ()
29132 sincos(0, 0, 0);
29134 return 0;
29136 _ACEOF
29137 if ac_fn_cxx_try_compile "$LINENO"; then :
29138 glibcxx_cv_func_sincos_use=yes
29139 else
29140 glibcxx_cv_func_sincos_use=no
29142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29143 ac_ext=c
29144 ac_cpp='$CPP $CPPFLAGS'
29145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
29154 $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
29156 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
29157 for ac_func in sincos
29158 do :
29159 ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
29160 if test "x$ac_cv_func_sincos" = xyes; then :
29161 cat >>confdefs.h <<_ACEOF
29162 #define HAVE_SINCOS 1
29163 _ACEOF
29166 done
29172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
29173 $as_echo_n "checking for fpclass declaration... " >&6; }
29174 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
29175 if ${glibcxx_cv_func_fpclass_use+:} false; then :
29176 $as_echo_n "(cached) " >&6
29177 else
29180 ac_ext=cpp
29181 ac_cpp='$CXXCPP $CPPFLAGS'
29182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29187 /* end confdefs.h. */
29188 #include <math.h>
29189 #ifdef HAVE_IEEEFP_H
29190 #include <ieeefp.h>
29191 #endif
29194 main ()
29196 fpclass(0);
29198 return 0;
29200 _ACEOF
29201 if ac_fn_cxx_try_compile "$LINENO"; then :
29202 glibcxx_cv_func_fpclass_use=yes
29203 else
29204 glibcxx_cv_func_fpclass_use=no
29206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29207 ac_ext=c
29208 ac_cpp='$CPP $CPPFLAGS'
29209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
29218 $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
29220 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
29221 for ac_func in fpclass
29222 do :
29223 ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
29224 if test "x$ac_cv_func_fpclass" = xyes; then :
29225 cat >>confdefs.h <<_ACEOF
29226 #define HAVE_FPCLASS 1
29227 _ACEOF
29230 done
29236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
29237 $as_echo_n "checking for qfpclass declaration... " >&6; }
29238 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
29239 if ${glibcxx_cv_func_qfpclass_use+:} false; then :
29240 $as_echo_n "(cached) " >&6
29241 else
29244 ac_ext=cpp
29245 ac_cpp='$CXXCPP $CPPFLAGS'
29246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29251 /* end confdefs.h. */
29252 #include <math.h>
29253 #ifdef HAVE_IEEEFP_H
29254 #include <ieeefp.h>
29255 #endif
29258 main ()
29260 qfpclass(0);
29262 return 0;
29264 _ACEOF
29265 if ac_fn_cxx_try_compile "$LINENO"; then :
29266 glibcxx_cv_func_qfpclass_use=yes
29267 else
29268 glibcxx_cv_func_qfpclass_use=no
29270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29271 ac_ext=c
29272 ac_cpp='$CPP $CPPFLAGS'
29273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
29282 $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
29284 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
29285 for ac_func in qfpclass
29286 do :
29287 ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
29288 if test "x$ac_cv_func_qfpclass" = xyes; then :
29289 cat >>confdefs.h <<_ACEOF
29290 #define HAVE_QFPCLASS 1
29291 _ACEOF
29294 done
29300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
29301 $as_echo_n "checking for hypot declaration... " >&6; }
29302 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
29303 if ${glibcxx_cv_func_hypot_use+:} false; then :
29304 $as_echo_n "(cached) " >&6
29305 else
29308 ac_ext=cpp
29309 ac_cpp='$CXXCPP $CPPFLAGS'
29310 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29311 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29312 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29315 /* end confdefs.h. */
29316 #include <math.h>
29318 main ()
29320 hypot(0, 0);
29322 return 0;
29324 _ACEOF
29325 if ac_fn_cxx_try_compile "$LINENO"; then :
29326 glibcxx_cv_func_hypot_use=yes
29327 else
29328 glibcxx_cv_func_hypot_use=no
29330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29331 ac_ext=c
29332 ac_cpp='$CPP $CPPFLAGS'
29333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
29342 $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
29344 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
29345 for ac_func in hypot
29346 do :
29347 ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
29348 if test "x$ac_cv_func_hypot" = xyes; then :
29349 cat >>confdefs.h <<_ACEOF
29350 #define HAVE_HYPOT 1
29351 _ACEOF
29354 done
29360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
29361 $as_echo_n "checking for float trig functions... " >&6; }
29362 if ${glibcxx_cv_func_float_trig_use+:} false; then :
29363 $as_echo_n "(cached) " >&6
29364 else
29367 ac_ext=cpp
29368 ac_cpp='$CXXCPP $CPPFLAGS'
29369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29374 /* end confdefs.h. */
29375 #include <math.h>
29377 main ()
29379 acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
29381 return 0;
29383 _ACEOF
29384 if ac_fn_cxx_try_compile "$LINENO"; then :
29385 glibcxx_cv_func_float_trig_use=yes
29386 else
29387 glibcxx_cv_func_float_trig_use=no
29389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29390 ac_ext=c
29391 ac_cpp='$CPP $CPPFLAGS'
29392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
29399 $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
29400 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
29401 for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
29402 do :
29403 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29404 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29405 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29406 cat >>confdefs.h <<_ACEOF
29407 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29408 _ACEOF
29411 done
29417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
29418 $as_echo_n "checking for float round functions... " >&6; }
29419 if ${glibcxx_cv_func_float_round_use+:} false; then :
29420 $as_echo_n "(cached) " >&6
29421 else
29424 ac_ext=cpp
29425 ac_cpp='$CXXCPP $CPPFLAGS'
29426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29431 /* end confdefs.h. */
29432 #include <math.h>
29434 main ()
29436 ceilf (0); floorf (0);
29438 return 0;
29440 _ACEOF
29441 if ac_fn_cxx_try_compile "$LINENO"; then :
29442 glibcxx_cv_func_float_round_use=yes
29443 else
29444 glibcxx_cv_func_float_round_use=no
29446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29447 ac_ext=c
29448 ac_cpp='$CPP $CPPFLAGS'
29449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
29456 $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
29457 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
29458 for ac_func in ceilf floorf
29459 do :
29460 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29461 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29462 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29463 cat >>confdefs.h <<_ACEOF
29464 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29465 _ACEOF
29468 done
29475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
29476 $as_echo_n "checking for expf declaration... " >&6; }
29477 if test x${glibcxx_cv_func_expf_use+set} != xset; then
29478 if ${glibcxx_cv_func_expf_use+:} false; then :
29479 $as_echo_n "(cached) " >&6
29480 else
29483 ac_ext=cpp
29484 ac_cpp='$CXXCPP $CPPFLAGS'
29485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29490 /* end confdefs.h. */
29491 #include <math.h>
29492 #ifdef HAVE_IEEEFP_H
29493 #include <ieeefp.h>
29494 #endif
29497 main ()
29499 expf(0);
29501 return 0;
29503 _ACEOF
29504 if ac_fn_cxx_try_compile "$LINENO"; then :
29505 glibcxx_cv_func_expf_use=yes
29506 else
29507 glibcxx_cv_func_expf_use=no
29509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29510 ac_ext=c
29511 ac_cpp='$CPP $CPPFLAGS'
29512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
29521 $as_echo "$glibcxx_cv_func_expf_use" >&6; }
29523 if test x$glibcxx_cv_func_expf_use = x"yes"; then
29524 for ac_func in expf
29525 do :
29526 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
29527 if test "x$ac_cv_func_expf" = xyes; then :
29528 cat >>confdefs.h <<_ACEOF
29529 #define HAVE_EXPF 1
29530 _ACEOF
29533 done
29539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
29540 $as_echo_n "checking for isnanf declaration... " >&6; }
29541 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
29542 if ${glibcxx_cv_func_isnanf_use+:} false; then :
29543 $as_echo_n "(cached) " >&6
29544 else
29547 ac_ext=cpp
29548 ac_cpp='$CXXCPP $CPPFLAGS'
29549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29554 /* end confdefs.h. */
29555 #include <math.h>
29556 #ifdef HAVE_IEEEFP_H
29557 #include <ieeefp.h>
29558 #endif
29561 main ()
29563 isnanf(0);
29565 return 0;
29567 _ACEOF
29568 if ac_fn_cxx_try_compile "$LINENO"; then :
29569 glibcxx_cv_func_isnanf_use=yes
29570 else
29571 glibcxx_cv_func_isnanf_use=no
29573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29574 ac_ext=c
29575 ac_cpp='$CPP $CPPFLAGS'
29576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
29585 $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
29587 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
29588 for ac_func in isnanf
29589 do :
29590 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
29591 if test "x$ac_cv_func_isnanf" = xyes; then :
29592 cat >>confdefs.h <<_ACEOF
29593 #define HAVE_ISNANF 1
29594 _ACEOF
29597 done
29603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
29604 $as_echo_n "checking for isinff declaration... " >&6; }
29605 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
29606 if ${glibcxx_cv_func_isinff_use+:} false; then :
29607 $as_echo_n "(cached) " >&6
29608 else
29611 ac_ext=cpp
29612 ac_cpp='$CXXCPP $CPPFLAGS'
29613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29618 /* end confdefs.h. */
29619 #include <math.h>
29620 #ifdef HAVE_IEEEFP_H
29621 #include <ieeefp.h>
29622 #endif
29625 main ()
29627 isinff(0);
29629 return 0;
29631 _ACEOF
29632 if ac_fn_cxx_try_compile "$LINENO"; then :
29633 glibcxx_cv_func_isinff_use=yes
29634 else
29635 glibcxx_cv_func_isinff_use=no
29637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29638 ac_ext=c
29639 ac_cpp='$CPP $CPPFLAGS'
29640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
29649 $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
29651 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
29652 for ac_func in isinff
29653 do :
29654 ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
29655 if test "x$ac_cv_func_isinff" = xyes; then :
29656 cat >>confdefs.h <<_ACEOF
29657 #define HAVE_ISINFF 1
29658 _ACEOF
29661 done
29667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
29668 $as_echo_n "checking for atan2f declaration... " >&6; }
29669 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
29670 if ${glibcxx_cv_func_atan2f_use+:} false; then :
29671 $as_echo_n "(cached) " >&6
29672 else
29675 ac_ext=cpp
29676 ac_cpp='$CXXCPP $CPPFLAGS'
29677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29682 /* end confdefs.h. */
29683 #include <math.h>
29685 main ()
29687 atan2f(0, 0);
29689 return 0;
29691 _ACEOF
29692 if ac_fn_cxx_try_compile "$LINENO"; then :
29693 glibcxx_cv_func_atan2f_use=yes
29694 else
29695 glibcxx_cv_func_atan2f_use=no
29697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29698 ac_ext=c
29699 ac_cpp='$CPP $CPPFLAGS'
29700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
29709 $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
29711 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
29712 for ac_func in atan2f
29713 do :
29714 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
29715 if test "x$ac_cv_func_atan2f" = xyes; then :
29716 cat >>confdefs.h <<_ACEOF
29717 #define HAVE_ATAN2F 1
29718 _ACEOF
29721 done
29727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
29728 $as_echo_n "checking for fabsf declaration... " >&6; }
29729 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
29730 if ${glibcxx_cv_func_fabsf_use+:} false; then :
29731 $as_echo_n "(cached) " >&6
29732 else
29735 ac_ext=cpp
29736 ac_cpp='$CXXCPP $CPPFLAGS'
29737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29742 /* end confdefs.h. */
29743 #include <math.h>
29744 #ifdef HAVE_IEEEFP_H
29745 #include <ieeefp.h>
29746 #endif
29749 main ()
29751 fabsf(0);
29753 return 0;
29755 _ACEOF
29756 if ac_fn_cxx_try_compile "$LINENO"; then :
29757 glibcxx_cv_func_fabsf_use=yes
29758 else
29759 glibcxx_cv_func_fabsf_use=no
29761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29762 ac_ext=c
29763 ac_cpp='$CPP $CPPFLAGS'
29764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
29773 $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
29775 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
29776 for ac_func in fabsf
29777 do :
29778 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
29779 if test "x$ac_cv_func_fabsf" = xyes; then :
29780 cat >>confdefs.h <<_ACEOF
29781 #define HAVE_FABSF 1
29782 _ACEOF
29785 done
29791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
29792 $as_echo_n "checking for fmodf declaration... " >&6; }
29793 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
29794 if ${glibcxx_cv_func_fmodf_use+:} false; then :
29795 $as_echo_n "(cached) " >&6
29796 else
29799 ac_ext=cpp
29800 ac_cpp='$CXXCPP $CPPFLAGS'
29801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29806 /* end confdefs.h. */
29807 #include <math.h>
29809 main ()
29811 fmodf(0, 0);
29813 return 0;
29815 _ACEOF
29816 if ac_fn_cxx_try_compile "$LINENO"; then :
29817 glibcxx_cv_func_fmodf_use=yes
29818 else
29819 glibcxx_cv_func_fmodf_use=no
29821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29822 ac_ext=c
29823 ac_cpp='$CPP $CPPFLAGS'
29824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
29833 $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
29835 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
29836 for ac_func in fmodf
29837 do :
29838 ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
29839 if test "x$ac_cv_func_fmodf" = xyes; then :
29840 cat >>confdefs.h <<_ACEOF
29841 #define HAVE_FMODF 1
29842 _ACEOF
29845 done
29851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
29852 $as_echo_n "checking for frexpf declaration... " >&6; }
29853 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
29854 if ${glibcxx_cv_func_frexpf_use+:} false; then :
29855 $as_echo_n "(cached) " >&6
29856 else
29859 ac_ext=cpp
29860 ac_cpp='$CXXCPP $CPPFLAGS'
29861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29866 /* end confdefs.h. */
29867 #include <math.h>
29869 main ()
29871 frexpf(0, 0);
29873 return 0;
29875 _ACEOF
29876 if ac_fn_cxx_try_compile "$LINENO"; then :
29877 glibcxx_cv_func_frexpf_use=yes
29878 else
29879 glibcxx_cv_func_frexpf_use=no
29881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29882 ac_ext=c
29883 ac_cpp='$CPP $CPPFLAGS'
29884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
29893 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
29895 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
29896 for ac_func in frexpf
29897 do :
29898 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
29899 if test "x$ac_cv_func_frexpf" = xyes; then :
29900 cat >>confdefs.h <<_ACEOF
29901 #define HAVE_FREXPF 1
29902 _ACEOF
29905 done
29911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
29912 $as_echo_n "checking for hypotf declaration... " >&6; }
29913 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
29914 if ${glibcxx_cv_func_hypotf_use+:} false; then :
29915 $as_echo_n "(cached) " >&6
29916 else
29919 ac_ext=cpp
29920 ac_cpp='$CXXCPP $CPPFLAGS'
29921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29926 /* end confdefs.h. */
29927 #include <math.h>
29929 main ()
29931 hypotf(0, 0);
29933 return 0;
29935 _ACEOF
29936 if ac_fn_cxx_try_compile "$LINENO"; then :
29937 glibcxx_cv_func_hypotf_use=yes
29938 else
29939 glibcxx_cv_func_hypotf_use=no
29941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29942 ac_ext=c
29943 ac_cpp='$CPP $CPPFLAGS'
29944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
29953 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
29955 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
29956 for ac_func in hypotf
29957 do :
29958 ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
29959 if test "x$ac_cv_func_hypotf" = xyes; then :
29960 cat >>confdefs.h <<_ACEOF
29961 #define HAVE_HYPOTF 1
29962 _ACEOF
29965 done
29971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
29972 $as_echo_n "checking for ldexpf declaration... " >&6; }
29973 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
29974 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
29975 $as_echo_n "(cached) " >&6
29976 else
29979 ac_ext=cpp
29980 ac_cpp='$CXXCPP $CPPFLAGS'
29981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29986 /* end confdefs.h. */
29987 #include <math.h>
29989 main ()
29991 ldexpf(0, 0);
29993 return 0;
29995 _ACEOF
29996 if ac_fn_cxx_try_compile "$LINENO"; then :
29997 glibcxx_cv_func_ldexpf_use=yes
29998 else
29999 glibcxx_cv_func_ldexpf_use=no
30001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30002 ac_ext=c
30003 ac_cpp='$CPP $CPPFLAGS'
30004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
30013 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
30015 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
30016 for ac_func in ldexpf
30017 do :
30018 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
30019 if test "x$ac_cv_func_ldexpf" = xyes; then :
30020 cat >>confdefs.h <<_ACEOF
30021 #define HAVE_LDEXPF 1
30022 _ACEOF
30025 done
30031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
30032 $as_echo_n "checking for logf declaration... " >&6; }
30033 if test x${glibcxx_cv_func_logf_use+set} != xset; then
30034 if ${glibcxx_cv_func_logf_use+:} false; then :
30035 $as_echo_n "(cached) " >&6
30036 else
30039 ac_ext=cpp
30040 ac_cpp='$CXXCPP $CPPFLAGS'
30041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30046 /* end confdefs.h. */
30047 #include <math.h>
30048 #ifdef HAVE_IEEEFP_H
30049 #include <ieeefp.h>
30050 #endif
30053 main ()
30055 logf(0);
30057 return 0;
30059 _ACEOF
30060 if ac_fn_cxx_try_compile "$LINENO"; then :
30061 glibcxx_cv_func_logf_use=yes
30062 else
30063 glibcxx_cv_func_logf_use=no
30065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30066 ac_ext=c
30067 ac_cpp='$CPP $CPPFLAGS'
30068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
30077 $as_echo "$glibcxx_cv_func_logf_use" >&6; }
30079 if test x$glibcxx_cv_func_logf_use = x"yes"; then
30080 for ac_func in logf
30081 do :
30082 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
30083 if test "x$ac_cv_func_logf" = xyes; then :
30084 cat >>confdefs.h <<_ACEOF
30085 #define HAVE_LOGF 1
30086 _ACEOF
30089 done
30095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
30096 $as_echo_n "checking for log10f declaration... " >&6; }
30097 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
30098 if ${glibcxx_cv_func_log10f_use+:} false; then :
30099 $as_echo_n "(cached) " >&6
30100 else
30103 ac_ext=cpp
30104 ac_cpp='$CXXCPP $CPPFLAGS'
30105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30110 /* end confdefs.h. */
30111 #include <math.h>
30112 #ifdef HAVE_IEEEFP_H
30113 #include <ieeefp.h>
30114 #endif
30117 main ()
30119 log10f(0);
30121 return 0;
30123 _ACEOF
30124 if ac_fn_cxx_try_compile "$LINENO"; then :
30125 glibcxx_cv_func_log10f_use=yes
30126 else
30127 glibcxx_cv_func_log10f_use=no
30129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30130 ac_ext=c
30131 ac_cpp='$CPP $CPPFLAGS'
30132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
30141 $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
30143 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
30144 for ac_func in log10f
30145 do :
30146 ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
30147 if test "x$ac_cv_func_log10f" = xyes; then :
30148 cat >>confdefs.h <<_ACEOF
30149 #define HAVE_LOG10F 1
30150 _ACEOF
30153 done
30159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
30160 $as_echo_n "checking for modff declaration... " >&6; }
30161 if test x${glibcxx_cv_func_modff_use+set} != xset; then
30162 if ${glibcxx_cv_func_modff_use+:} false; then :
30163 $as_echo_n "(cached) " >&6
30164 else
30167 ac_ext=cpp
30168 ac_cpp='$CXXCPP $CPPFLAGS'
30169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30174 /* end confdefs.h. */
30175 #include <math.h>
30177 main ()
30179 modff(0, 0);
30181 return 0;
30183 _ACEOF
30184 if ac_fn_cxx_try_compile "$LINENO"; then :
30185 glibcxx_cv_func_modff_use=yes
30186 else
30187 glibcxx_cv_func_modff_use=no
30189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30190 ac_ext=c
30191 ac_cpp='$CPP $CPPFLAGS'
30192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
30201 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
30203 if test x$glibcxx_cv_func_modff_use = x"yes"; then
30204 for ac_func in modff
30205 do :
30206 ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
30207 if test "x$ac_cv_func_modff" = xyes; then :
30208 cat >>confdefs.h <<_ACEOF
30209 #define HAVE_MODFF 1
30210 _ACEOF
30213 done
30219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
30220 $as_echo_n "checking for modf declaration... " >&6; }
30221 if test x${glibcxx_cv_func_modf_use+set} != xset; then
30222 if ${glibcxx_cv_func_modf_use+:} false; then :
30223 $as_echo_n "(cached) " >&6
30224 else
30227 ac_ext=cpp
30228 ac_cpp='$CXXCPP $CPPFLAGS'
30229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30234 /* end confdefs.h. */
30235 #include <math.h>
30237 main ()
30239 modf(0, 0);
30241 return 0;
30243 _ACEOF
30244 if ac_fn_cxx_try_compile "$LINENO"; then :
30245 glibcxx_cv_func_modf_use=yes
30246 else
30247 glibcxx_cv_func_modf_use=no
30249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30250 ac_ext=c
30251 ac_cpp='$CPP $CPPFLAGS'
30252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
30261 $as_echo "$glibcxx_cv_func_modf_use" >&6; }
30263 if test x$glibcxx_cv_func_modf_use = x"yes"; then
30264 for ac_func in modf
30265 do :
30266 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
30267 if test "x$ac_cv_func_modf" = xyes; then :
30268 cat >>confdefs.h <<_ACEOF
30269 #define HAVE_MODF 1
30270 _ACEOF
30273 done
30279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
30280 $as_echo_n "checking for powf declaration... " >&6; }
30281 if test x${glibcxx_cv_func_powf_use+set} != xset; then
30282 if ${glibcxx_cv_func_powf_use+:} false; then :
30283 $as_echo_n "(cached) " >&6
30284 else
30287 ac_ext=cpp
30288 ac_cpp='$CXXCPP $CPPFLAGS'
30289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30294 /* end confdefs.h. */
30295 #include <math.h>
30297 main ()
30299 powf(0, 0);
30301 return 0;
30303 _ACEOF
30304 if ac_fn_cxx_try_compile "$LINENO"; then :
30305 glibcxx_cv_func_powf_use=yes
30306 else
30307 glibcxx_cv_func_powf_use=no
30309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30310 ac_ext=c
30311 ac_cpp='$CPP $CPPFLAGS'
30312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
30321 $as_echo "$glibcxx_cv_func_powf_use" >&6; }
30323 if test x$glibcxx_cv_func_powf_use = x"yes"; then
30324 for ac_func in powf
30325 do :
30326 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
30327 if test "x$ac_cv_func_powf" = xyes; then :
30328 cat >>confdefs.h <<_ACEOF
30329 #define HAVE_POWF 1
30330 _ACEOF
30333 done
30339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
30340 $as_echo_n "checking for sqrtf declaration... " >&6; }
30341 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
30342 if ${glibcxx_cv_func_sqrtf_use+:} false; then :
30343 $as_echo_n "(cached) " >&6
30344 else
30347 ac_ext=cpp
30348 ac_cpp='$CXXCPP $CPPFLAGS'
30349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30354 /* end confdefs.h. */
30355 #include <math.h>
30356 #ifdef HAVE_IEEEFP_H
30357 #include <ieeefp.h>
30358 #endif
30361 main ()
30363 sqrtf(0);
30365 return 0;
30367 _ACEOF
30368 if ac_fn_cxx_try_compile "$LINENO"; then :
30369 glibcxx_cv_func_sqrtf_use=yes
30370 else
30371 glibcxx_cv_func_sqrtf_use=no
30373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30374 ac_ext=c
30375 ac_cpp='$CPP $CPPFLAGS'
30376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
30385 $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
30387 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
30388 for ac_func in sqrtf
30389 do :
30390 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
30391 if test "x$ac_cv_func_sqrtf" = xyes; then :
30392 cat >>confdefs.h <<_ACEOF
30393 #define HAVE_SQRTF 1
30394 _ACEOF
30397 done
30403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
30404 $as_echo_n "checking for sincosf declaration... " >&6; }
30405 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
30406 if ${glibcxx_cv_func_sincosf_use+:} false; then :
30407 $as_echo_n "(cached) " >&6
30408 else
30411 ac_ext=cpp
30412 ac_cpp='$CXXCPP $CPPFLAGS'
30413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30418 /* end confdefs.h. */
30419 #include <math.h>
30421 main ()
30423 sincosf(0, 0, 0);
30425 return 0;
30427 _ACEOF
30428 if ac_fn_cxx_try_compile "$LINENO"; then :
30429 glibcxx_cv_func_sincosf_use=yes
30430 else
30431 glibcxx_cv_func_sincosf_use=no
30433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30434 ac_ext=c
30435 ac_cpp='$CPP $CPPFLAGS'
30436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
30445 $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
30447 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
30448 for ac_func in sincosf
30449 do :
30450 ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
30451 if test "x$ac_cv_func_sincosf" = xyes; then :
30452 cat >>confdefs.h <<_ACEOF
30453 #define HAVE_SINCOSF 1
30454 _ACEOF
30457 done
30463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
30464 $as_echo_n "checking for finitef declaration... " >&6; }
30465 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
30466 if ${glibcxx_cv_func_finitef_use+:} false; then :
30467 $as_echo_n "(cached) " >&6
30468 else
30471 ac_ext=cpp
30472 ac_cpp='$CXXCPP $CPPFLAGS'
30473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30478 /* end confdefs.h. */
30479 #include <math.h>
30480 #ifdef HAVE_IEEEFP_H
30481 #include <ieeefp.h>
30482 #endif
30485 main ()
30487 finitef(0);
30489 return 0;
30491 _ACEOF
30492 if ac_fn_cxx_try_compile "$LINENO"; then :
30493 glibcxx_cv_func_finitef_use=yes
30494 else
30495 glibcxx_cv_func_finitef_use=no
30497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30498 ac_ext=c
30499 ac_cpp='$CPP $CPPFLAGS'
30500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
30509 $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
30511 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
30512 for ac_func in finitef
30513 do :
30514 ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
30515 if test "x$ac_cv_func_finitef" = xyes; then :
30516 cat >>confdefs.h <<_ACEOF
30517 #define HAVE_FINITEF 1
30518 _ACEOF
30521 done
30527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
30528 $as_echo_n "checking for long double trig functions... " >&6; }
30529 if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
30530 $as_echo_n "(cached) " >&6
30531 else
30534 ac_ext=cpp
30535 ac_cpp='$CXXCPP $CPPFLAGS'
30536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30541 /* end confdefs.h. */
30542 #include <math.h>
30544 main ()
30546 acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
30548 return 0;
30550 _ACEOF
30551 if ac_fn_cxx_try_compile "$LINENO"; then :
30552 glibcxx_cv_func_long_double_trig_use=yes
30553 else
30554 glibcxx_cv_func_long_double_trig_use=no
30556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30557 ac_ext=c
30558 ac_cpp='$CPP $CPPFLAGS'
30559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
30566 $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
30567 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
30568 for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
30569 do :
30570 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30571 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30572 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30573 cat >>confdefs.h <<_ACEOF
30574 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30575 _ACEOF
30578 done
30584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
30585 $as_echo_n "checking for long double round functions... " >&6; }
30586 if ${glibcxx_cv_func_long_double_round_use+:} false; then :
30587 $as_echo_n "(cached) " >&6
30588 else
30591 ac_ext=cpp
30592 ac_cpp='$CXXCPP $CPPFLAGS'
30593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30598 /* end confdefs.h. */
30599 #include <math.h>
30601 main ()
30603 ceill (0); floorl (0);
30605 return 0;
30607 _ACEOF
30608 if ac_fn_cxx_try_compile "$LINENO"; then :
30609 glibcxx_cv_func_long_double_round_use=yes
30610 else
30611 glibcxx_cv_func_long_double_round_use=no
30613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30614 ac_ext=c
30615 ac_cpp='$CPP $CPPFLAGS'
30616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
30623 $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
30624 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
30625 for ac_func in ceill floorl
30626 do :
30627 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30628 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30629 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30630 cat >>confdefs.h <<_ACEOF
30631 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30632 _ACEOF
30635 done
30642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
30643 $as_echo_n "checking for isnanl declaration... " >&6; }
30644 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
30645 if ${glibcxx_cv_func_isnanl_use+:} false; then :
30646 $as_echo_n "(cached) " >&6
30647 else
30650 ac_ext=cpp
30651 ac_cpp='$CXXCPP $CPPFLAGS'
30652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30657 /* end confdefs.h. */
30658 #include <math.h>
30659 #ifdef HAVE_IEEEFP_H
30660 #include <ieeefp.h>
30661 #endif
30664 main ()
30666 isnanl(0);
30668 return 0;
30670 _ACEOF
30671 if ac_fn_cxx_try_compile "$LINENO"; then :
30672 glibcxx_cv_func_isnanl_use=yes
30673 else
30674 glibcxx_cv_func_isnanl_use=no
30676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30677 ac_ext=c
30678 ac_cpp='$CPP $CPPFLAGS'
30679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
30688 $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
30690 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
30691 for ac_func in isnanl
30692 do :
30693 ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
30694 if test "x$ac_cv_func_isnanl" = xyes; then :
30695 cat >>confdefs.h <<_ACEOF
30696 #define HAVE_ISNANL 1
30697 _ACEOF
30700 done
30706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
30707 $as_echo_n "checking for isinfl declaration... " >&6; }
30708 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
30709 if ${glibcxx_cv_func_isinfl_use+:} false; then :
30710 $as_echo_n "(cached) " >&6
30711 else
30714 ac_ext=cpp
30715 ac_cpp='$CXXCPP $CPPFLAGS'
30716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30721 /* end confdefs.h. */
30722 #include <math.h>
30723 #ifdef HAVE_IEEEFP_H
30724 #include <ieeefp.h>
30725 #endif
30728 main ()
30730 isinfl(0);
30732 return 0;
30734 _ACEOF
30735 if ac_fn_cxx_try_compile "$LINENO"; then :
30736 glibcxx_cv_func_isinfl_use=yes
30737 else
30738 glibcxx_cv_func_isinfl_use=no
30740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30741 ac_ext=c
30742 ac_cpp='$CPP $CPPFLAGS'
30743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
30752 $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
30754 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
30755 for ac_func in isinfl
30756 do :
30757 ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
30758 if test "x$ac_cv_func_isinfl" = xyes; then :
30759 cat >>confdefs.h <<_ACEOF
30760 #define HAVE_ISINFL 1
30761 _ACEOF
30764 done
30770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
30771 $as_echo_n "checking for atan2l declaration... " >&6; }
30772 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
30773 if ${glibcxx_cv_func_atan2l_use+:} false; then :
30774 $as_echo_n "(cached) " >&6
30775 else
30778 ac_ext=cpp
30779 ac_cpp='$CXXCPP $CPPFLAGS'
30780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30785 /* end confdefs.h. */
30786 #include <math.h>
30788 main ()
30790 atan2l(0, 0);
30792 return 0;
30794 _ACEOF
30795 if ac_fn_cxx_try_compile "$LINENO"; then :
30796 glibcxx_cv_func_atan2l_use=yes
30797 else
30798 glibcxx_cv_func_atan2l_use=no
30800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30801 ac_ext=c
30802 ac_cpp='$CPP $CPPFLAGS'
30803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
30812 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
30814 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
30815 for ac_func in atan2l
30816 do :
30817 ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
30818 if test "x$ac_cv_func_atan2l" = xyes; then :
30819 cat >>confdefs.h <<_ACEOF
30820 #define HAVE_ATAN2L 1
30821 _ACEOF
30824 done
30830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
30831 $as_echo_n "checking for expl declaration... " >&6; }
30832 if test x${glibcxx_cv_func_expl_use+set} != xset; then
30833 if ${glibcxx_cv_func_expl_use+:} false; then :
30834 $as_echo_n "(cached) " >&6
30835 else
30838 ac_ext=cpp
30839 ac_cpp='$CXXCPP $CPPFLAGS'
30840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30845 /* end confdefs.h. */
30846 #include <math.h>
30847 #ifdef HAVE_IEEEFP_H
30848 #include <ieeefp.h>
30849 #endif
30852 main ()
30854 expl(0);
30856 return 0;
30858 _ACEOF
30859 if ac_fn_cxx_try_compile "$LINENO"; then :
30860 glibcxx_cv_func_expl_use=yes
30861 else
30862 glibcxx_cv_func_expl_use=no
30864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30865 ac_ext=c
30866 ac_cpp='$CPP $CPPFLAGS'
30867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
30876 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
30878 if test x$glibcxx_cv_func_expl_use = x"yes"; then
30879 for ac_func in expl
30880 do :
30881 ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
30882 if test "x$ac_cv_func_expl" = xyes; then :
30883 cat >>confdefs.h <<_ACEOF
30884 #define HAVE_EXPL 1
30885 _ACEOF
30888 done
30894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
30895 $as_echo_n "checking for fabsl declaration... " >&6; }
30896 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
30897 if ${glibcxx_cv_func_fabsl_use+:} false; then :
30898 $as_echo_n "(cached) " >&6
30899 else
30902 ac_ext=cpp
30903 ac_cpp='$CXXCPP $CPPFLAGS'
30904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30909 /* end confdefs.h. */
30910 #include <math.h>
30911 #ifdef HAVE_IEEEFP_H
30912 #include <ieeefp.h>
30913 #endif
30916 main ()
30918 fabsl(0);
30920 return 0;
30922 _ACEOF
30923 if ac_fn_cxx_try_compile "$LINENO"; then :
30924 glibcxx_cv_func_fabsl_use=yes
30925 else
30926 glibcxx_cv_func_fabsl_use=no
30928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30929 ac_ext=c
30930 ac_cpp='$CPP $CPPFLAGS'
30931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
30940 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
30942 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
30943 for ac_func in fabsl
30944 do :
30945 ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
30946 if test "x$ac_cv_func_fabsl" = xyes; then :
30947 cat >>confdefs.h <<_ACEOF
30948 #define HAVE_FABSL 1
30949 _ACEOF
30952 done
30958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
30959 $as_echo_n "checking for fmodl declaration... " >&6; }
30960 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
30961 if ${glibcxx_cv_func_fmodl_use+:} false; then :
30962 $as_echo_n "(cached) " >&6
30963 else
30966 ac_ext=cpp
30967 ac_cpp='$CXXCPP $CPPFLAGS'
30968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30973 /* end confdefs.h. */
30974 #include <math.h>
30976 main ()
30978 fmodl(0, 0);
30980 return 0;
30982 _ACEOF
30983 if ac_fn_cxx_try_compile "$LINENO"; then :
30984 glibcxx_cv_func_fmodl_use=yes
30985 else
30986 glibcxx_cv_func_fmodl_use=no
30988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30989 ac_ext=c
30990 ac_cpp='$CPP $CPPFLAGS'
30991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
31000 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
31002 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
31003 for ac_func in fmodl
31004 do :
31005 ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
31006 if test "x$ac_cv_func_fmodl" = xyes; then :
31007 cat >>confdefs.h <<_ACEOF
31008 #define HAVE_FMODL 1
31009 _ACEOF
31012 done
31018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
31019 $as_echo_n "checking for frexpl declaration... " >&6; }
31020 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
31021 if ${glibcxx_cv_func_frexpl_use+:} false; then :
31022 $as_echo_n "(cached) " >&6
31023 else
31026 ac_ext=cpp
31027 ac_cpp='$CXXCPP $CPPFLAGS'
31028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31033 /* end confdefs.h. */
31034 #include <math.h>
31036 main ()
31038 frexpl(0, 0);
31040 return 0;
31042 _ACEOF
31043 if ac_fn_cxx_try_compile "$LINENO"; then :
31044 glibcxx_cv_func_frexpl_use=yes
31045 else
31046 glibcxx_cv_func_frexpl_use=no
31048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31049 ac_ext=c
31050 ac_cpp='$CPP $CPPFLAGS'
31051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
31060 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
31062 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
31063 for ac_func in frexpl
31064 do :
31065 ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
31066 if test "x$ac_cv_func_frexpl" = xyes; then :
31067 cat >>confdefs.h <<_ACEOF
31068 #define HAVE_FREXPL 1
31069 _ACEOF
31072 done
31078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
31079 $as_echo_n "checking for hypotl declaration... " >&6; }
31080 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
31081 if ${glibcxx_cv_func_hypotl_use+:} false; then :
31082 $as_echo_n "(cached) " >&6
31083 else
31086 ac_ext=cpp
31087 ac_cpp='$CXXCPP $CPPFLAGS'
31088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31093 /* end confdefs.h. */
31094 #include <math.h>
31096 main ()
31098 hypotl(0, 0);
31100 return 0;
31102 _ACEOF
31103 if ac_fn_cxx_try_compile "$LINENO"; then :
31104 glibcxx_cv_func_hypotl_use=yes
31105 else
31106 glibcxx_cv_func_hypotl_use=no
31108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31109 ac_ext=c
31110 ac_cpp='$CPP $CPPFLAGS'
31111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
31120 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
31122 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
31123 for ac_func in hypotl
31124 do :
31125 ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
31126 if test "x$ac_cv_func_hypotl" = xyes; then :
31127 cat >>confdefs.h <<_ACEOF
31128 #define HAVE_HYPOTL 1
31129 _ACEOF
31132 done
31138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
31139 $as_echo_n "checking for ldexpl declaration... " >&6; }
31140 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
31141 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
31142 $as_echo_n "(cached) " >&6
31143 else
31146 ac_ext=cpp
31147 ac_cpp='$CXXCPP $CPPFLAGS'
31148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31153 /* end confdefs.h. */
31154 #include <math.h>
31156 main ()
31158 ldexpl(0, 0);
31160 return 0;
31162 _ACEOF
31163 if ac_fn_cxx_try_compile "$LINENO"; then :
31164 glibcxx_cv_func_ldexpl_use=yes
31165 else
31166 glibcxx_cv_func_ldexpl_use=no
31168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31169 ac_ext=c
31170 ac_cpp='$CPP $CPPFLAGS'
31171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
31180 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
31182 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
31183 for ac_func in ldexpl
31184 do :
31185 ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
31186 if test "x$ac_cv_func_ldexpl" = xyes; then :
31187 cat >>confdefs.h <<_ACEOF
31188 #define HAVE_LDEXPL 1
31189 _ACEOF
31192 done
31198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
31199 $as_echo_n "checking for logl declaration... " >&6; }
31200 if test x${glibcxx_cv_func_logl_use+set} != xset; then
31201 if ${glibcxx_cv_func_logl_use+:} false; then :
31202 $as_echo_n "(cached) " >&6
31203 else
31206 ac_ext=cpp
31207 ac_cpp='$CXXCPP $CPPFLAGS'
31208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31213 /* end confdefs.h. */
31214 #include <math.h>
31215 #ifdef HAVE_IEEEFP_H
31216 #include <ieeefp.h>
31217 #endif
31220 main ()
31222 logl(0);
31224 return 0;
31226 _ACEOF
31227 if ac_fn_cxx_try_compile "$LINENO"; then :
31228 glibcxx_cv_func_logl_use=yes
31229 else
31230 glibcxx_cv_func_logl_use=no
31232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31233 ac_ext=c
31234 ac_cpp='$CPP $CPPFLAGS'
31235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
31244 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
31246 if test x$glibcxx_cv_func_logl_use = x"yes"; then
31247 for ac_func in logl
31248 do :
31249 ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
31250 if test "x$ac_cv_func_logl" = xyes; then :
31251 cat >>confdefs.h <<_ACEOF
31252 #define HAVE_LOGL 1
31253 _ACEOF
31256 done
31262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
31263 $as_echo_n "checking for log10l declaration... " >&6; }
31264 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
31265 if ${glibcxx_cv_func_log10l_use+:} false; then :
31266 $as_echo_n "(cached) " >&6
31267 else
31270 ac_ext=cpp
31271 ac_cpp='$CXXCPP $CPPFLAGS'
31272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31277 /* end confdefs.h. */
31278 #include <math.h>
31279 #ifdef HAVE_IEEEFP_H
31280 #include <ieeefp.h>
31281 #endif
31284 main ()
31286 log10l(0);
31288 return 0;
31290 _ACEOF
31291 if ac_fn_cxx_try_compile "$LINENO"; then :
31292 glibcxx_cv_func_log10l_use=yes
31293 else
31294 glibcxx_cv_func_log10l_use=no
31296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31297 ac_ext=c
31298 ac_cpp='$CPP $CPPFLAGS'
31299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
31308 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
31310 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
31311 for ac_func in log10l
31312 do :
31313 ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
31314 if test "x$ac_cv_func_log10l" = xyes; then :
31315 cat >>confdefs.h <<_ACEOF
31316 #define HAVE_LOG10L 1
31317 _ACEOF
31320 done
31326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
31327 $as_echo_n "checking for modfl declaration... " >&6; }
31328 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
31329 if ${glibcxx_cv_func_modfl_use+:} false; then :
31330 $as_echo_n "(cached) " >&6
31331 else
31334 ac_ext=cpp
31335 ac_cpp='$CXXCPP $CPPFLAGS'
31336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31341 /* end confdefs.h. */
31342 #include <math.h>
31344 main ()
31346 modfl(0, 0);
31348 return 0;
31350 _ACEOF
31351 if ac_fn_cxx_try_compile "$LINENO"; then :
31352 glibcxx_cv_func_modfl_use=yes
31353 else
31354 glibcxx_cv_func_modfl_use=no
31356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31357 ac_ext=c
31358 ac_cpp='$CPP $CPPFLAGS'
31359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
31368 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
31370 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
31371 for ac_func in modfl
31372 do :
31373 ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
31374 if test "x$ac_cv_func_modfl" = xyes; then :
31375 cat >>confdefs.h <<_ACEOF
31376 #define HAVE_MODFL 1
31377 _ACEOF
31380 done
31386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
31387 $as_echo_n "checking for powl declaration... " >&6; }
31388 if test x${glibcxx_cv_func_powl_use+set} != xset; then
31389 if ${glibcxx_cv_func_powl_use+:} false; then :
31390 $as_echo_n "(cached) " >&6
31391 else
31394 ac_ext=cpp
31395 ac_cpp='$CXXCPP $CPPFLAGS'
31396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31401 /* end confdefs.h. */
31402 #include <math.h>
31404 main ()
31406 powl(0, 0);
31408 return 0;
31410 _ACEOF
31411 if ac_fn_cxx_try_compile "$LINENO"; then :
31412 glibcxx_cv_func_powl_use=yes
31413 else
31414 glibcxx_cv_func_powl_use=no
31416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31417 ac_ext=c
31418 ac_cpp='$CPP $CPPFLAGS'
31419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
31428 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
31430 if test x$glibcxx_cv_func_powl_use = x"yes"; then
31431 for ac_func in powl
31432 do :
31433 ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
31434 if test "x$ac_cv_func_powl" = xyes; then :
31435 cat >>confdefs.h <<_ACEOF
31436 #define HAVE_POWL 1
31437 _ACEOF
31440 done
31446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
31447 $as_echo_n "checking for sqrtl declaration... " >&6; }
31448 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
31449 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
31450 $as_echo_n "(cached) " >&6
31451 else
31454 ac_ext=cpp
31455 ac_cpp='$CXXCPP $CPPFLAGS'
31456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31461 /* end confdefs.h. */
31462 #include <math.h>
31463 #ifdef HAVE_IEEEFP_H
31464 #include <ieeefp.h>
31465 #endif
31468 main ()
31470 sqrtl(0);
31472 return 0;
31474 _ACEOF
31475 if ac_fn_cxx_try_compile "$LINENO"; then :
31476 glibcxx_cv_func_sqrtl_use=yes
31477 else
31478 glibcxx_cv_func_sqrtl_use=no
31480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31481 ac_ext=c
31482 ac_cpp='$CPP $CPPFLAGS'
31483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
31492 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
31494 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
31495 for ac_func in sqrtl
31496 do :
31497 ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
31498 if test "x$ac_cv_func_sqrtl" = xyes; then :
31499 cat >>confdefs.h <<_ACEOF
31500 #define HAVE_SQRTL 1
31501 _ACEOF
31504 done
31510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
31511 $as_echo_n "checking for sincosl declaration... " >&6; }
31512 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
31513 if ${glibcxx_cv_func_sincosl_use+:} false; then :
31514 $as_echo_n "(cached) " >&6
31515 else
31518 ac_ext=cpp
31519 ac_cpp='$CXXCPP $CPPFLAGS'
31520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31525 /* end confdefs.h. */
31526 #include <math.h>
31528 main ()
31530 sincosl(0, 0, 0);
31532 return 0;
31534 _ACEOF
31535 if ac_fn_cxx_try_compile "$LINENO"; then :
31536 glibcxx_cv_func_sincosl_use=yes
31537 else
31538 glibcxx_cv_func_sincosl_use=no
31540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31541 ac_ext=c
31542 ac_cpp='$CPP $CPPFLAGS'
31543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
31552 $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
31554 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
31555 for ac_func in sincosl
31556 do :
31557 ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
31558 if test "x$ac_cv_func_sincosl" = xyes; then :
31559 cat >>confdefs.h <<_ACEOF
31560 #define HAVE_SINCOSL 1
31561 _ACEOF
31564 done
31570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
31571 $as_echo_n "checking for finitel declaration... " >&6; }
31572 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
31573 if ${glibcxx_cv_func_finitel_use+:} false; then :
31574 $as_echo_n "(cached) " >&6
31575 else
31578 ac_ext=cpp
31579 ac_cpp='$CXXCPP $CPPFLAGS'
31580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31585 /* end confdefs.h. */
31586 #include <math.h>
31587 #ifdef HAVE_IEEEFP_H
31588 #include <ieeefp.h>
31589 #endif
31592 main ()
31594 finitel(0);
31596 return 0;
31598 _ACEOF
31599 if ac_fn_cxx_try_compile "$LINENO"; then :
31600 glibcxx_cv_func_finitel_use=yes
31601 else
31602 glibcxx_cv_func_finitel_use=no
31604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31605 ac_ext=c
31606 ac_cpp='$CPP $CPPFLAGS'
31607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
31616 $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
31618 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
31619 for ac_func in finitel
31620 do :
31621 ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
31622 if test "x$ac_cv_func_finitel" = xyes; then :
31623 cat >>confdefs.h <<_ACEOF
31624 #define HAVE_FINITEL 1
31625 _ACEOF
31628 done
31633 LIBS="$ac_save_LIBS"
31634 CXXFLAGS="$ac_save_CXXFLAGS"
31637 ac_test_CXXFLAGS="${CXXFLAGS+set}"
31638 ac_save_CXXFLAGS="$CXXFLAGS"
31639 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
31642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
31643 $as_echo_n "checking for at_quick_exit declaration... " >&6; }
31644 if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
31645 if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
31646 $as_echo_n "(cached) " >&6
31647 else
31650 ac_ext=cpp
31651 ac_cpp='$CXXCPP $CPPFLAGS'
31652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31657 /* end confdefs.h. */
31658 #include <stdlib.h>
31660 main ()
31662 at_quick_exit(0);
31664 return 0;
31666 _ACEOF
31667 if ac_fn_cxx_try_compile "$LINENO"; then :
31668 glibcxx_cv_func_at_quick_exit_use=yes
31669 else
31670 glibcxx_cv_func_at_quick_exit_use=no
31672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31673 ac_ext=c
31674 ac_cpp='$CPP $CPPFLAGS'
31675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
31684 $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
31685 if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
31686 for ac_func in at_quick_exit
31687 do :
31688 ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
31689 if test "x$ac_cv_func_at_quick_exit" = xyes; then :
31690 cat >>confdefs.h <<_ACEOF
31691 #define HAVE_AT_QUICK_EXIT 1
31692 _ACEOF
31695 done
31700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
31701 $as_echo_n "checking for quick_exit declaration... " >&6; }
31702 if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
31703 if ${glibcxx_cv_func_quick_exit_use+:} false; then :
31704 $as_echo_n "(cached) " >&6
31705 else
31708 ac_ext=cpp
31709 ac_cpp='$CXXCPP $CPPFLAGS'
31710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31715 /* end confdefs.h. */
31716 #include <stdlib.h>
31718 main ()
31720 quick_exit(0);
31722 return 0;
31724 _ACEOF
31725 if ac_fn_cxx_try_compile "$LINENO"; then :
31726 glibcxx_cv_func_quick_exit_use=yes
31727 else
31728 glibcxx_cv_func_quick_exit_use=no
31730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31731 ac_ext=c
31732 ac_cpp='$CPP $CPPFLAGS'
31733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
31742 $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
31743 if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
31744 for ac_func in quick_exit
31745 do :
31746 ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
31747 if test "x$ac_cv_func_quick_exit" = xyes; then :
31748 cat >>confdefs.h <<_ACEOF
31749 #define HAVE_QUICK_EXIT 1
31750 _ACEOF
31753 done
31758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
31759 $as_echo_n "checking for strtold declaration... " >&6; }
31760 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
31761 if ${glibcxx_cv_func_strtold_use+:} false; then :
31762 $as_echo_n "(cached) " >&6
31763 else
31766 ac_ext=cpp
31767 ac_cpp='$CXXCPP $CPPFLAGS'
31768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31773 /* end confdefs.h. */
31774 #include <stdlib.h>
31776 main ()
31778 strtold(0, 0);
31780 return 0;
31782 _ACEOF
31783 if ac_fn_cxx_try_compile "$LINENO"; then :
31784 glibcxx_cv_func_strtold_use=yes
31785 else
31786 glibcxx_cv_func_strtold_use=no
31788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31789 ac_ext=c
31790 ac_cpp='$CPP $CPPFLAGS'
31791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
31800 $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
31801 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
31802 for ac_func in strtold
31803 do :
31804 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
31805 if test "x$ac_cv_func_strtold" = xyes; then :
31806 cat >>confdefs.h <<_ACEOF
31807 #define HAVE_STRTOLD 1
31808 _ACEOF
31811 done
31816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
31817 $as_echo_n "checking for strtof declaration... " >&6; }
31818 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
31819 if ${glibcxx_cv_func_strtof_use+:} false; then :
31820 $as_echo_n "(cached) " >&6
31821 else
31824 ac_ext=cpp
31825 ac_cpp='$CXXCPP $CPPFLAGS'
31826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31831 /* end confdefs.h. */
31832 #include <stdlib.h>
31834 main ()
31836 strtof(0, 0);
31838 return 0;
31840 _ACEOF
31841 if ac_fn_cxx_try_compile "$LINENO"; then :
31842 glibcxx_cv_func_strtof_use=yes
31843 else
31844 glibcxx_cv_func_strtof_use=no
31846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31847 ac_ext=c
31848 ac_cpp='$CPP $CPPFLAGS'
31849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
31858 $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
31859 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
31860 for ac_func in strtof
31861 do :
31862 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
31863 if test "x$ac_cv_func_strtof" = xyes; then :
31864 cat >>confdefs.h <<_ACEOF
31865 #define HAVE_STRTOF 1
31866 _ACEOF
31869 done
31874 CXXFLAGS="$ac_save_CXXFLAGS"
31877 $as_echo "#define HAVE_FINITE 1" >>confdefs.h
31879 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
31881 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
31883 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
31886 $as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
31888 $as_echo "#define HAVE_MODF 1" >>confdefs.h
31890 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
31894 *-aix*)
31896 # If we're not using GNU ld, then there's no point in even trying these
31897 # tests. Check for that first. We should have already tested for gld
31898 # by now (in libtool), but require it now just to be safe...
31899 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
31900 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
31904 # The name set by libtool depends on the version of libtool. Shame on us
31905 # for depending on an impl detail, but c'est la vie. Older versions used
31906 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
31907 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
31908 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
31909 # set (hence we're using an older libtool), then set it.
31910 if test x${with_gnu_ld+set} != xset; then
31911 if test x${ac_cv_prog_gnu_ld+set} != xset; then
31912 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
31913 with_gnu_ld=no
31914 else
31915 with_gnu_ld=$ac_cv_prog_gnu_ld
31919 # Start by getting the version number. I think the libtool test already
31920 # does some of this, but throws away the result.
31921 glibcxx_ld_is_gold=no
31922 glibcxx_ld_is_mold=no
31923 if test x"$with_gnu_ld" = x"yes"; then
31924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
31925 $as_echo_n "checking for ld version... " >&6; }
31927 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
31928 glibcxx_ld_is_gold=yes
31929 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
31930 glibcxx_ld_is_mold=yes
31932 ldver=`$LD --version 2>/dev/null |
31933 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
31935 glibcxx_gnu_ld_version=`echo $ldver | \
31936 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
31937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
31938 $as_echo "$glibcxx_gnu_ld_version" >&6; }
31941 # Set --gc-sections.
31942 glibcxx_have_gc_sections=no
31943 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
31944 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
31945 glibcxx_have_gc_sections=yes
31947 else
31948 glibcxx_gcsections_min_ld=21602
31949 if test x"$with_gnu_ld" = x"yes" &&
31950 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
31951 glibcxx_have_gc_sections=yes
31954 if test "$glibcxx_have_gc_sections" = "yes"; then
31955 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
31956 # NB: This flag only works reliably after 2.16.1. Configure tests
31957 # for this are difficult, so hard wire a value that should work.
31959 ac_test_CFLAGS="${CFLAGS+set}"
31960 ac_save_CFLAGS="$CFLAGS"
31961 CFLAGS='-Wl,--gc-sections'
31963 # Check for -Wl,--gc-sections
31964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
31965 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
31966 if test x$gcc_no_link = xyes; then
31967 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
31969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31970 /* end confdefs.h. */
31971 int one(void) { return 1; }
31972 int two(void) { return 2; }
31975 main ()
31977 two();
31979 return 0;
31981 _ACEOF
31982 if ac_fn_c_try_link "$LINENO"; then :
31983 ac_gcsections=yes
31984 else
31985 ac_gcsections=no
31987 rm -f core conftest.err conftest.$ac_objext \
31988 conftest$ac_exeext conftest.$ac_ext
31989 if test "$ac_gcsections" = "yes"; then
31990 rm -f conftest.c
31991 touch conftest.c
31992 if $CC -c conftest.c; then
31993 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
31994 grep "Warning: gc-sections option ignored" > /dev/null; then
31995 ac_gcsections=no
31998 rm -f conftest.c conftest.o conftest
32000 if test "$ac_gcsections" = "yes"; then
32001 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
32003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
32004 $as_echo "$ac_gcsections" >&6; }
32006 if test "$ac_test_CFLAGS" = set; then
32007 CFLAGS="$ac_save_CFLAGS"
32008 else
32009 # this is the suspicious part
32010 CFLAGS=''
32014 # Set -z,relro.
32015 # Note this is only for shared objects.
32016 ac_ld_relro=no
32017 if test x"$with_gnu_ld" = x"yes"; then
32018 # cygwin and mingw uses PE, which has no ELF relro support,
32019 # multi target ld may confuse configure machinery
32020 case "$host" in
32021 *-*-cygwin*)
32023 *-*-mingw*)
32026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
32027 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
32028 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
32029 if test -n "$cxx_z_relo"; then
32030 OPT_LDFLAGS="-Wl,-z,relro"
32031 ac_ld_relro=yes
32033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
32034 $as_echo "$ac_ld_relro" >&6; }
32035 esac
32038 # Set linker optimization flags.
32039 if test x"$with_gnu_ld" = x"yes"; then
32040 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
32047 ac_test_CXXFLAGS="${CXXFLAGS+set}"
32048 ac_save_CXXFLAGS="$CXXFLAGS"
32049 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
32051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
32052 $as_echo_n "checking for sin in -lm... " >&6; }
32053 if ${ac_cv_lib_m_sin+:} false; then :
32054 $as_echo_n "(cached) " >&6
32055 else
32056 ac_check_lib_save_LIBS=$LIBS
32057 LIBS="-lm $LIBS"
32058 if test x$gcc_no_link = xyes; then
32059 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
32061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32062 /* end confdefs.h. */
32064 /* Override any GCC internal prototype to avoid an error.
32065 Use char because int might match the return type of a GCC
32066 builtin and then its argument prototype would still apply. */
32067 #ifdef __cplusplus
32068 extern "C"
32069 #endif
32070 char sin ();
32072 main ()
32074 return sin ();
32076 return 0;
32078 _ACEOF
32079 if ac_fn_c_try_link "$LINENO"; then :
32080 ac_cv_lib_m_sin=yes
32081 else
32082 ac_cv_lib_m_sin=no
32084 rm -f core conftest.err conftest.$ac_objext \
32085 conftest$ac_exeext conftest.$ac_ext
32086 LIBS=$ac_check_lib_save_LIBS
32088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
32089 $as_echo "$ac_cv_lib_m_sin" >&6; }
32090 if test "x$ac_cv_lib_m_sin" = xyes; then :
32091 libm="-lm"
32094 ac_save_LIBS="$LIBS"
32095 LIBS="$LIBS $libm"
32099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
32100 $as_echo_n "checking for isinf declaration... " >&6; }
32101 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
32102 if ${glibcxx_cv_func_isinf_use+:} false; then :
32103 $as_echo_n "(cached) " >&6
32104 else
32107 ac_ext=cpp
32108 ac_cpp='$CXXCPP $CPPFLAGS'
32109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32114 /* end confdefs.h. */
32115 #include <math.h>
32116 #ifdef HAVE_IEEEFP_H
32117 #include <ieeefp.h>
32118 #endif
32121 main ()
32123 isinf(0);
32125 return 0;
32127 _ACEOF
32128 if ac_fn_cxx_try_compile "$LINENO"; then :
32129 glibcxx_cv_func_isinf_use=yes
32130 else
32131 glibcxx_cv_func_isinf_use=no
32133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32134 ac_ext=c
32135 ac_cpp='$CPP $CPPFLAGS'
32136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
32145 $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
32147 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
32148 for ac_func in isinf
32149 do :
32150 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
32151 if test "x$ac_cv_func_isinf" = xyes; then :
32152 cat >>confdefs.h <<_ACEOF
32153 #define HAVE_ISINF 1
32154 _ACEOF
32157 done
32163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
32164 $as_echo_n "checking for isnan declaration... " >&6; }
32165 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
32166 if ${glibcxx_cv_func_isnan_use+:} false; then :
32167 $as_echo_n "(cached) " >&6
32168 else
32171 ac_ext=cpp
32172 ac_cpp='$CXXCPP $CPPFLAGS'
32173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32178 /* end confdefs.h. */
32179 #include <math.h>
32180 #ifdef HAVE_IEEEFP_H
32181 #include <ieeefp.h>
32182 #endif
32185 main ()
32187 isnan(0);
32189 return 0;
32191 _ACEOF
32192 if ac_fn_cxx_try_compile "$LINENO"; then :
32193 glibcxx_cv_func_isnan_use=yes
32194 else
32195 glibcxx_cv_func_isnan_use=no
32197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32198 ac_ext=c
32199 ac_cpp='$CPP $CPPFLAGS'
32200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
32209 $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
32211 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
32212 for ac_func in isnan
32213 do :
32214 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
32215 if test "x$ac_cv_func_isnan" = xyes; then :
32216 cat >>confdefs.h <<_ACEOF
32217 #define HAVE_ISNAN 1
32218 _ACEOF
32221 done
32227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
32228 $as_echo_n "checking for finite declaration... " >&6; }
32229 if test x${glibcxx_cv_func_finite_use+set} != xset; then
32230 if ${glibcxx_cv_func_finite_use+:} false; then :
32231 $as_echo_n "(cached) " >&6
32232 else
32235 ac_ext=cpp
32236 ac_cpp='$CXXCPP $CPPFLAGS'
32237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32242 /* end confdefs.h. */
32243 #include <math.h>
32244 #ifdef HAVE_IEEEFP_H
32245 #include <ieeefp.h>
32246 #endif
32249 main ()
32251 finite(0);
32253 return 0;
32255 _ACEOF
32256 if ac_fn_cxx_try_compile "$LINENO"; then :
32257 glibcxx_cv_func_finite_use=yes
32258 else
32259 glibcxx_cv_func_finite_use=no
32261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32262 ac_ext=c
32263 ac_cpp='$CPP $CPPFLAGS'
32264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
32273 $as_echo "$glibcxx_cv_func_finite_use" >&6; }
32275 if test x$glibcxx_cv_func_finite_use = x"yes"; then
32276 for ac_func in finite
32277 do :
32278 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
32279 if test "x$ac_cv_func_finite" = xyes; then :
32280 cat >>confdefs.h <<_ACEOF
32281 #define HAVE_FINITE 1
32282 _ACEOF
32285 done
32291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
32292 $as_echo_n "checking for sincos declaration... " >&6; }
32293 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
32294 if ${glibcxx_cv_func_sincos_use+:} false; then :
32295 $as_echo_n "(cached) " >&6
32296 else
32299 ac_ext=cpp
32300 ac_cpp='$CXXCPP $CPPFLAGS'
32301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32306 /* end confdefs.h. */
32307 #include <math.h>
32309 main ()
32311 sincos(0, 0, 0);
32313 return 0;
32315 _ACEOF
32316 if ac_fn_cxx_try_compile "$LINENO"; then :
32317 glibcxx_cv_func_sincos_use=yes
32318 else
32319 glibcxx_cv_func_sincos_use=no
32321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32322 ac_ext=c
32323 ac_cpp='$CPP $CPPFLAGS'
32324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
32333 $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
32335 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
32336 for ac_func in sincos
32337 do :
32338 ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
32339 if test "x$ac_cv_func_sincos" = xyes; then :
32340 cat >>confdefs.h <<_ACEOF
32341 #define HAVE_SINCOS 1
32342 _ACEOF
32345 done
32351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
32352 $as_echo_n "checking for fpclass declaration... " >&6; }
32353 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
32354 if ${glibcxx_cv_func_fpclass_use+:} false; then :
32355 $as_echo_n "(cached) " >&6
32356 else
32359 ac_ext=cpp
32360 ac_cpp='$CXXCPP $CPPFLAGS'
32361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32366 /* end confdefs.h. */
32367 #include <math.h>
32368 #ifdef HAVE_IEEEFP_H
32369 #include <ieeefp.h>
32370 #endif
32373 main ()
32375 fpclass(0);
32377 return 0;
32379 _ACEOF
32380 if ac_fn_cxx_try_compile "$LINENO"; then :
32381 glibcxx_cv_func_fpclass_use=yes
32382 else
32383 glibcxx_cv_func_fpclass_use=no
32385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32386 ac_ext=c
32387 ac_cpp='$CPP $CPPFLAGS'
32388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
32397 $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
32399 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
32400 for ac_func in fpclass
32401 do :
32402 ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
32403 if test "x$ac_cv_func_fpclass" = xyes; then :
32404 cat >>confdefs.h <<_ACEOF
32405 #define HAVE_FPCLASS 1
32406 _ACEOF
32409 done
32415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
32416 $as_echo_n "checking for qfpclass declaration... " >&6; }
32417 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
32418 if ${glibcxx_cv_func_qfpclass_use+:} false; then :
32419 $as_echo_n "(cached) " >&6
32420 else
32423 ac_ext=cpp
32424 ac_cpp='$CXXCPP $CPPFLAGS'
32425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32430 /* end confdefs.h. */
32431 #include <math.h>
32432 #ifdef HAVE_IEEEFP_H
32433 #include <ieeefp.h>
32434 #endif
32437 main ()
32439 qfpclass(0);
32441 return 0;
32443 _ACEOF
32444 if ac_fn_cxx_try_compile "$LINENO"; then :
32445 glibcxx_cv_func_qfpclass_use=yes
32446 else
32447 glibcxx_cv_func_qfpclass_use=no
32449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32450 ac_ext=c
32451 ac_cpp='$CPP $CPPFLAGS'
32452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
32461 $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
32463 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
32464 for ac_func in qfpclass
32465 do :
32466 ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
32467 if test "x$ac_cv_func_qfpclass" = xyes; then :
32468 cat >>confdefs.h <<_ACEOF
32469 #define HAVE_QFPCLASS 1
32470 _ACEOF
32473 done
32479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
32480 $as_echo_n "checking for hypot declaration... " >&6; }
32481 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
32482 if ${glibcxx_cv_func_hypot_use+:} false; then :
32483 $as_echo_n "(cached) " >&6
32484 else
32487 ac_ext=cpp
32488 ac_cpp='$CXXCPP $CPPFLAGS'
32489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32494 /* end confdefs.h. */
32495 #include <math.h>
32497 main ()
32499 hypot(0, 0);
32501 return 0;
32503 _ACEOF
32504 if ac_fn_cxx_try_compile "$LINENO"; then :
32505 glibcxx_cv_func_hypot_use=yes
32506 else
32507 glibcxx_cv_func_hypot_use=no
32509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32510 ac_ext=c
32511 ac_cpp='$CPP $CPPFLAGS'
32512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
32521 $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
32523 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
32524 for ac_func in hypot
32525 do :
32526 ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
32527 if test "x$ac_cv_func_hypot" = xyes; then :
32528 cat >>confdefs.h <<_ACEOF
32529 #define HAVE_HYPOT 1
32530 _ACEOF
32533 done
32539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
32540 $as_echo_n "checking for float trig functions... " >&6; }
32541 if ${glibcxx_cv_func_float_trig_use+:} false; then :
32542 $as_echo_n "(cached) " >&6
32543 else
32546 ac_ext=cpp
32547 ac_cpp='$CXXCPP $CPPFLAGS'
32548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32553 /* end confdefs.h. */
32554 #include <math.h>
32556 main ()
32558 acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
32560 return 0;
32562 _ACEOF
32563 if ac_fn_cxx_try_compile "$LINENO"; then :
32564 glibcxx_cv_func_float_trig_use=yes
32565 else
32566 glibcxx_cv_func_float_trig_use=no
32568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32569 ac_ext=c
32570 ac_cpp='$CPP $CPPFLAGS'
32571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
32578 $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
32579 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
32580 for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
32581 do :
32582 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32583 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
32584 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
32585 cat >>confdefs.h <<_ACEOF
32586 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32587 _ACEOF
32590 done
32596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
32597 $as_echo_n "checking for float round functions... " >&6; }
32598 if ${glibcxx_cv_func_float_round_use+:} false; then :
32599 $as_echo_n "(cached) " >&6
32600 else
32603 ac_ext=cpp
32604 ac_cpp='$CXXCPP $CPPFLAGS'
32605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32610 /* end confdefs.h. */
32611 #include <math.h>
32613 main ()
32615 ceilf (0); floorf (0);
32617 return 0;
32619 _ACEOF
32620 if ac_fn_cxx_try_compile "$LINENO"; then :
32621 glibcxx_cv_func_float_round_use=yes
32622 else
32623 glibcxx_cv_func_float_round_use=no
32625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32626 ac_ext=c
32627 ac_cpp='$CPP $CPPFLAGS'
32628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
32635 $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
32636 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
32637 for ac_func in ceilf floorf
32638 do :
32639 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32640 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
32641 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
32642 cat >>confdefs.h <<_ACEOF
32643 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32644 _ACEOF
32647 done
32654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
32655 $as_echo_n "checking for expf declaration... " >&6; }
32656 if test x${glibcxx_cv_func_expf_use+set} != xset; then
32657 if ${glibcxx_cv_func_expf_use+:} false; then :
32658 $as_echo_n "(cached) " >&6
32659 else
32662 ac_ext=cpp
32663 ac_cpp='$CXXCPP $CPPFLAGS'
32664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32669 /* end confdefs.h. */
32670 #include <math.h>
32671 #ifdef HAVE_IEEEFP_H
32672 #include <ieeefp.h>
32673 #endif
32676 main ()
32678 expf(0);
32680 return 0;
32682 _ACEOF
32683 if ac_fn_cxx_try_compile "$LINENO"; then :
32684 glibcxx_cv_func_expf_use=yes
32685 else
32686 glibcxx_cv_func_expf_use=no
32688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32689 ac_ext=c
32690 ac_cpp='$CPP $CPPFLAGS'
32691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
32700 $as_echo "$glibcxx_cv_func_expf_use" >&6; }
32702 if test x$glibcxx_cv_func_expf_use = x"yes"; then
32703 for ac_func in expf
32704 do :
32705 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
32706 if test "x$ac_cv_func_expf" = xyes; then :
32707 cat >>confdefs.h <<_ACEOF
32708 #define HAVE_EXPF 1
32709 _ACEOF
32712 done
32718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
32719 $as_echo_n "checking for isnanf declaration... " >&6; }
32720 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
32721 if ${glibcxx_cv_func_isnanf_use+:} false; then :
32722 $as_echo_n "(cached) " >&6
32723 else
32726 ac_ext=cpp
32727 ac_cpp='$CXXCPP $CPPFLAGS'
32728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32733 /* end confdefs.h. */
32734 #include <math.h>
32735 #ifdef HAVE_IEEEFP_H
32736 #include <ieeefp.h>
32737 #endif
32740 main ()
32742 isnanf(0);
32744 return 0;
32746 _ACEOF
32747 if ac_fn_cxx_try_compile "$LINENO"; then :
32748 glibcxx_cv_func_isnanf_use=yes
32749 else
32750 glibcxx_cv_func_isnanf_use=no
32752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32753 ac_ext=c
32754 ac_cpp='$CPP $CPPFLAGS'
32755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
32764 $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
32766 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
32767 for ac_func in isnanf
32768 do :
32769 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
32770 if test "x$ac_cv_func_isnanf" = xyes; then :
32771 cat >>confdefs.h <<_ACEOF
32772 #define HAVE_ISNANF 1
32773 _ACEOF
32776 done
32782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
32783 $as_echo_n "checking for isinff declaration... " >&6; }
32784 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
32785 if ${glibcxx_cv_func_isinff_use+:} false; then :
32786 $as_echo_n "(cached) " >&6
32787 else
32790 ac_ext=cpp
32791 ac_cpp='$CXXCPP $CPPFLAGS'
32792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32797 /* end confdefs.h. */
32798 #include <math.h>
32799 #ifdef HAVE_IEEEFP_H
32800 #include <ieeefp.h>
32801 #endif
32804 main ()
32806 isinff(0);
32808 return 0;
32810 _ACEOF
32811 if ac_fn_cxx_try_compile "$LINENO"; then :
32812 glibcxx_cv_func_isinff_use=yes
32813 else
32814 glibcxx_cv_func_isinff_use=no
32816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32817 ac_ext=c
32818 ac_cpp='$CPP $CPPFLAGS'
32819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
32828 $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
32830 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
32831 for ac_func in isinff
32832 do :
32833 ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
32834 if test "x$ac_cv_func_isinff" = xyes; then :
32835 cat >>confdefs.h <<_ACEOF
32836 #define HAVE_ISINFF 1
32837 _ACEOF
32840 done
32846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
32847 $as_echo_n "checking for atan2f declaration... " >&6; }
32848 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
32849 if ${glibcxx_cv_func_atan2f_use+:} false; then :
32850 $as_echo_n "(cached) " >&6
32851 else
32854 ac_ext=cpp
32855 ac_cpp='$CXXCPP $CPPFLAGS'
32856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32861 /* end confdefs.h. */
32862 #include <math.h>
32864 main ()
32866 atan2f(0, 0);
32868 return 0;
32870 _ACEOF
32871 if ac_fn_cxx_try_compile "$LINENO"; then :
32872 glibcxx_cv_func_atan2f_use=yes
32873 else
32874 glibcxx_cv_func_atan2f_use=no
32876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32877 ac_ext=c
32878 ac_cpp='$CPP $CPPFLAGS'
32879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
32888 $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
32890 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
32891 for ac_func in atan2f
32892 do :
32893 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
32894 if test "x$ac_cv_func_atan2f" = xyes; then :
32895 cat >>confdefs.h <<_ACEOF
32896 #define HAVE_ATAN2F 1
32897 _ACEOF
32900 done
32906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
32907 $as_echo_n "checking for fabsf declaration... " >&6; }
32908 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
32909 if ${glibcxx_cv_func_fabsf_use+:} false; then :
32910 $as_echo_n "(cached) " >&6
32911 else
32914 ac_ext=cpp
32915 ac_cpp='$CXXCPP $CPPFLAGS'
32916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32921 /* end confdefs.h. */
32922 #include <math.h>
32923 #ifdef HAVE_IEEEFP_H
32924 #include <ieeefp.h>
32925 #endif
32928 main ()
32930 fabsf(0);
32932 return 0;
32934 _ACEOF
32935 if ac_fn_cxx_try_compile "$LINENO"; then :
32936 glibcxx_cv_func_fabsf_use=yes
32937 else
32938 glibcxx_cv_func_fabsf_use=no
32940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32941 ac_ext=c
32942 ac_cpp='$CPP $CPPFLAGS'
32943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
32952 $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
32954 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
32955 for ac_func in fabsf
32956 do :
32957 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
32958 if test "x$ac_cv_func_fabsf" = xyes; then :
32959 cat >>confdefs.h <<_ACEOF
32960 #define HAVE_FABSF 1
32961 _ACEOF
32964 done
32970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
32971 $as_echo_n "checking for fmodf declaration... " >&6; }
32972 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
32973 if ${glibcxx_cv_func_fmodf_use+:} false; then :
32974 $as_echo_n "(cached) " >&6
32975 else
32978 ac_ext=cpp
32979 ac_cpp='$CXXCPP $CPPFLAGS'
32980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32985 /* end confdefs.h. */
32986 #include <math.h>
32988 main ()
32990 fmodf(0, 0);
32992 return 0;
32994 _ACEOF
32995 if ac_fn_cxx_try_compile "$LINENO"; then :
32996 glibcxx_cv_func_fmodf_use=yes
32997 else
32998 glibcxx_cv_func_fmodf_use=no
33000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33001 ac_ext=c
33002 ac_cpp='$CPP $CPPFLAGS'
33003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
33012 $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
33014 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
33015 for ac_func in fmodf
33016 do :
33017 ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
33018 if test "x$ac_cv_func_fmodf" = xyes; then :
33019 cat >>confdefs.h <<_ACEOF
33020 #define HAVE_FMODF 1
33021 _ACEOF
33024 done
33030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
33031 $as_echo_n "checking for frexpf declaration... " >&6; }
33032 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
33033 if ${glibcxx_cv_func_frexpf_use+:} false; then :
33034 $as_echo_n "(cached) " >&6
33035 else
33038 ac_ext=cpp
33039 ac_cpp='$CXXCPP $CPPFLAGS'
33040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33045 /* end confdefs.h. */
33046 #include <math.h>
33048 main ()
33050 frexpf(0, 0);
33052 return 0;
33054 _ACEOF
33055 if ac_fn_cxx_try_compile "$LINENO"; then :
33056 glibcxx_cv_func_frexpf_use=yes
33057 else
33058 glibcxx_cv_func_frexpf_use=no
33060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33061 ac_ext=c
33062 ac_cpp='$CPP $CPPFLAGS'
33063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
33072 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
33074 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
33075 for ac_func in frexpf
33076 do :
33077 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
33078 if test "x$ac_cv_func_frexpf" = xyes; then :
33079 cat >>confdefs.h <<_ACEOF
33080 #define HAVE_FREXPF 1
33081 _ACEOF
33084 done
33090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
33091 $as_echo_n "checking for hypotf declaration... " >&6; }
33092 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
33093 if ${glibcxx_cv_func_hypotf_use+:} false; then :
33094 $as_echo_n "(cached) " >&6
33095 else
33098 ac_ext=cpp
33099 ac_cpp='$CXXCPP $CPPFLAGS'
33100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33105 /* end confdefs.h. */
33106 #include <math.h>
33108 main ()
33110 hypotf(0, 0);
33112 return 0;
33114 _ACEOF
33115 if ac_fn_cxx_try_compile "$LINENO"; then :
33116 glibcxx_cv_func_hypotf_use=yes
33117 else
33118 glibcxx_cv_func_hypotf_use=no
33120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33121 ac_ext=c
33122 ac_cpp='$CPP $CPPFLAGS'
33123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
33132 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
33134 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
33135 for ac_func in hypotf
33136 do :
33137 ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
33138 if test "x$ac_cv_func_hypotf" = xyes; then :
33139 cat >>confdefs.h <<_ACEOF
33140 #define HAVE_HYPOTF 1
33141 _ACEOF
33144 done
33150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
33151 $as_echo_n "checking for ldexpf declaration... " >&6; }
33152 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
33153 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
33154 $as_echo_n "(cached) " >&6
33155 else
33158 ac_ext=cpp
33159 ac_cpp='$CXXCPP $CPPFLAGS'
33160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33165 /* end confdefs.h. */
33166 #include <math.h>
33168 main ()
33170 ldexpf(0, 0);
33172 return 0;
33174 _ACEOF
33175 if ac_fn_cxx_try_compile "$LINENO"; then :
33176 glibcxx_cv_func_ldexpf_use=yes
33177 else
33178 glibcxx_cv_func_ldexpf_use=no
33180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33181 ac_ext=c
33182 ac_cpp='$CPP $CPPFLAGS'
33183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
33192 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
33194 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
33195 for ac_func in ldexpf
33196 do :
33197 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
33198 if test "x$ac_cv_func_ldexpf" = xyes; then :
33199 cat >>confdefs.h <<_ACEOF
33200 #define HAVE_LDEXPF 1
33201 _ACEOF
33204 done
33210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
33211 $as_echo_n "checking for logf declaration... " >&6; }
33212 if test x${glibcxx_cv_func_logf_use+set} != xset; then
33213 if ${glibcxx_cv_func_logf_use+:} false; then :
33214 $as_echo_n "(cached) " >&6
33215 else
33218 ac_ext=cpp
33219 ac_cpp='$CXXCPP $CPPFLAGS'
33220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33225 /* end confdefs.h. */
33226 #include <math.h>
33227 #ifdef HAVE_IEEEFP_H
33228 #include <ieeefp.h>
33229 #endif
33232 main ()
33234 logf(0);
33236 return 0;
33238 _ACEOF
33239 if ac_fn_cxx_try_compile "$LINENO"; then :
33240 glibcxx_cv_func_logf_use=yes
33241 else
33242 glibcxx_cv_func_logf_use=no
33244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33245 ac_ext=c
33246 ac_cpp='$CPP $CPPFLAGS'
33247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
33256 $as_echo "$glibcxx_cv_func_logf_use" >&6; }
33258 if test x$glibcxx_cv_func_logf_use = x"yes"; then
33259 for ac_func in logf
33260 do :
33261 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
33262 if test "x$ac_cv_func_logf" = xyes; then :
33263 cat >>confdefs.h <<_ACEOF
33264 #define HAVE_LOGF 1
33265 _ACEOF
33268 done
33274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
33275 $as_echo_n "checking for log10f declaration... " >&6; }
33276 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
33277 if ${glibcxx_cv_func_log10f_use+:} false; then :
33278 $as_echo_n "(cached) " >&6
33279 else
33282 ac_ext=cpp
33283 ac_cpp='$CXXCPP $CPPFLAGS'
33284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33289 /* end confdefs.h. */
33290 #include <math.h>
33291 #ifdef HAVE_IEEEFP_H
33292 #include <ieeefp.h>
33293 #endif
33296 main ()
33298 log10f(0);
33300 return 0;
33302 _ACEOF
33303 if ac_fn_cxx_try_compile "$LINENO"; then :
33304 glibcxx_cv_func_log10f_use=yes
33305 else
33306 glibcxx_cv_func_log10f_use=no
33308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33309 ac_ext=c
33310 ac_cpp='$CPP $CPPFLAGS'
33311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
33320 $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
33322 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
33323 for ac_func in log10f
33324 do :
33325 ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
33326 if test "x$ac_cv_func_log10f" = xyes; then :
33327 cat >>confdefs.h <<_ACEOF
33328 #define HAVE_LOG10F 1
33329 _ACEOF
33332 done
33338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
33339 $as_echo_n "checking for modff declaration... " >&6; }
33340 if test x${glibcxx_cv_func_modff_use+set} != xset; then
33341 if ${glibcxx_cv_func_modff_use+:} false; then :
33342 $as_echo_n "(cached) " >&6
33343 else
33346 ac_ext=cpp
33347 ac_cpp='$CXXCPP $CPPFLAGS'
33348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33353 /* end confdefs.h. */
33354 #include <math.h>
33356 main ()
33358 modff(0, 0);
33360 return 0;
33362 _ACEOF
33363 if ac_fn_cxx_try_compile "$LINENO"; then :
33364 glibcxx_cv_func_modff_use=yes
33365 else
33366 glibcxx_cv_func_modff_use=no
33368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33369 ac_ext=c
33370 ac_cpp='$CPP $CPPFLAGS'
33371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
33380 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
33382 if test x$glibcxx_cv_func_modff_use = x"yes"; then
33383 for ac_func in modff
33384 do :
33385 ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
33386 if test "x$ac_cv_func_modff" = xyes; then :
33387 cat >>confdefs.h <<_ACEOF
33388 #define HAVE_MODFF 1
33389 _ACEOF
33392 done
33398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
33399 $as_echo_n "checking for modf declaration... " >&6; }
33400 if test x${glibcxx_cv_func_modf_use+set} != xset; then
33401 if ${glibcxx_cv_func_modf_use+:} false; then :
33402 $as_echo_n "(cached) " >&6
33403 else
33406 ac_ext=cpp
33407 ac_cpp='$CXXCPP $CPPFLAGS'
33408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33413 /* end confdefs.h. */
33414 #include <math.h>
33416 main ()
33418 modf(0, 0);
33420 return 0;
33422 _ACEOF
33423 if ac_fn_cxx_try_compile "$LINENO"; then :
33424 glibcxx_cv_func_modf_use=yes
33425 else
33426 glibcxx_cv_func_modf_use=no
33428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33429 ac_ext=c
33430 ac_cpp='$CPP $CPPFLAGS'
33431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
33440 $as_echo "$glibcxx_cv_func_modf_use" >&6; }
33442 if test x$glibcxx_cv_func_modf_use = x"yes"; then
33443 for ac_func in modf
33444 do :
33445 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
33446 if test "x$ac_cv_func_modf" = xyes; then :
33447 cat >>confdefs.h <<_ACEOF
33448 #define HAVE_MODF 1
33449 _ACEOF
33452 done
33458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
33459 $as_echo_n "checking for powf declaration... " >&6; }
33460 if test x${glibcxx_cv_func_powf_use+set} != xset; then
33461 if ${glibcxx_cv_func_powf_use+:} false; then :
33462 $as_echo_n "(cached) " >&6
33463 else
33466 ac_ext=cpp
33467 ac_cpp='$CXXCPP $CPPFLAGS'
33468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33473 /* end confdefs.h. */
33474 #include <math.h>
33476 main ()
33478 powf(0, 0);
33480 return 0;
33482 _ACEOF
33483 if ac_fn_cxx_try_compile "$LINENO"; then :
33484 glibcxx_cv_func_powf_use=yes
33485 else
33486 glibcxx_cv_func_powf_use=no
33488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33489 ac_ext=c
33490 ac_cpp='$CPP $CPPFLAGS'
33491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
33500 $as_echo "$glibcxx_cv_func_powf_use" >&6; }
33502 if test x$glibcxx_cv_func_powf_use = x"yes"; then
33503 for ac_func in powf
33504 do :
33505 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
33506 if test "x$ac_cv_func_powf" = xyes; then :
33507 cat >>confdefs.h <<_ACEOF
33508 #define HAVE_POWF 1
33509 _ACEOF
33512 done
33518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
33519 $as_echo_n "checking for sqrtf declaration... " >&6; }
33520 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
33521 if ${glibcxx_cv_func_sqrtf_use+:} false; then :
33522 $as_echo_n "(cached) " >&6
33523 else
33526 ac_ext=cpp
33527 ac_cpp='$CXXCPP $CPPFLAGS'
33528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33533 /* end confdefs.h. */
33534 #include <math.h>
33535 #ifdef HAVE_IEEEFP_H
33536 #include <ieeefp.h>
33537 #endif
33540 main ()
33542 sqrtf(0);
33544 return 0;
33546 _ACEOF
33547 if ac_fn_cxx_try_compile "$LINENO"; then :
33548 glibcxx_cv_func_sqrtf_use=yes
33549 else
33550 glibcxx_cv_func_sqrtf_use=no
33552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33553 ac_ext=c
33554 ac_cpp='$CPP $CPPFLAGS'
33555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
33564 $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
33566 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
33567 for ac_func in sqrtf
33568 do :
33569 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
33570 if test "x$ac_cv_func_sqrtf" = xyes; then :
33571 cat >>confdefs.h <<_ACEOF
33572 #define HAVE_SQRTF 1
33573 _ACEOF
33576 done
33582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
33583 $as_echo_n "checking for sincosf declaration... " >&6; }
33584 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
33585 if ${glibcxx_cv_func_sincosf_use+:} false; then :
33586 $as_echo_n "(cached) " >&6
33587 else
33590 ac_ext=cpp
33591 ac_cpp='$CXXCPP $CPPFLAGS'
33592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33597 /* end confdefs.h. */
33598 #include <math.h>
33600 main ()
33602 sincosf(0, 0, 0);
33604 return 0;
33606 _ACEOF
33607 if ac_fn_cxx_try_compile "$LINENO"; then :
33608 glibcxx_cv_func_sincosf_use=yes
33609 else
33610 glibcxx_cv_func_sincosf_use=no
33612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33613 ac_ext=c
33614 ac_cpp='$CPP $CPPFLAGS'
33615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
33624 $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
33626 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
33627 for ac_func in sincosf
33628 do :
33629 ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
33630 if test "x$ac_cv_func_sincosf" = xyes; then :
33631 cat >>confdefs.h <<_ACEOF
33632 #define HAVE_SINCOSF 1
33633 _ACEOF
33636 done
33642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
33643 $as_echo_n "checking for finitef declaration... " >&6; }
33644 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
33645 if ${glibcxx_cv_func_finitef_use+:} false; then :
33646 $as_echo_n "(cached) " >&6
33647 else
33650 ac_ext=cpp
33651 ac_cpp='$CXXCPP $CPPFLAGS'
33652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33657 /* end confdefs.h. */
33658 #include <math.h>
33659 #ifdef HAVE_IEEEFP_H
33660 #include <ieeefp.h>
33661 #endif
33664 main ()
33666 finitef(0);
33668 return 0;
33670 _ACEOF
33671 if ac_fn_cxx_try_compile "$LINENO"; then :
33672 glibcxx_cv_func_finitef_use=yes
33673 else
33674 glibcxx_cv_func_finitef_use=no
33676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33677 ac_ext=c
33678 ac_cpp='$CPP $CPPFLAGS'
33679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
33688 $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
33690 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
33691 for ac_func in finitef
33692 do :
33693 ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
33694 if test "x$ac_cv_func_finitef" = xyes; then :
33695 cat >>confdefs.h <<_ACEOF
33696 #define HAVE_FINITEF 1
33697 _ACEOF
33700 done
33706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
33707 $as_echo_n "checking for long double trig functions... " >&6; }
33708 if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
33709 $as_echo_n "(cached) " >&6
33710 else
33713 ac_ext=cpp
33714 ac_cpp='$CXXCPP $CPPFLAGS'
33715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33720 /* end confdefs.h. */
33721 #include <math.h>
33723 main ()
33725 acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
33727 return 0;
33729 _ACEOF
33730 if ac_fn_cxx_try_compile "$LINENO"; then :
33731 glibcxx_cv_func_long_double_trig_use=yes
33732 else
33733 glibcxx_cv_func_long_double_trig_use=no
33735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33736 ac_ext=c
33737 ac_cpp='$CPP $CPPFLAGS'
33738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
33745 $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
33746 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
33747 for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
33748 do :
33749 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33750 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
33751 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
33752 cat >>confdefs.h <<_ACEOF
33753 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33754 _ACEOF
33757 done
33763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
33764 $as_echo_n "checking for long double round functions... " >&6; }
33765 if ${glibcxx_cv_func_long_double_round_use+:} false; then :
33766 $as_echo_n "(cached) " >&6
33767 else
33770 ac_ext=cpp
33771 ac_cpp='$CXXCPP $CPPFLAGS'
33772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33777 /* end confdefs.h. */
33778 #include <math.h>
33780 main ()
33782 ceill (0); floorl (0);
33784 return 0;
33786 _ACEOF
33787 if ac_fn_cxx_try_compile "$LINENO"; then :
33788 glibcxx_cv_func_long_double_round_use=yes
33789 else
33790 glibcxx_cv_func_long_double_round_use=no
33792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33793 ac_ext=c
33794 ac_cpp='$CPP $CPPFLAGS'
33795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
33802 $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
33803 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
33804 for ac_func in ceill floorl
33805 do :
33806 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33807 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
33808 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
33809 cat >>confdefs.h <<_ACEOF
33810 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33811 _ACEOF
33814 done
33821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
33822 $as_echo_n "checking for isnanl declaration... " >&6; }
33823 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
33824 if ${glibcxx_cv_func_isnanl_use+:} false; then :
33825 $as_echo_n "(cached) " >&6
33826 else
33829 ac_ext=cpp
33830 ac_cpp='$CXXCPP $CPPFLAGS'
33831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33836 /* end confdefs.h. */
33837 #include <math.h>
33838 #ifdef HAVE_IEEEFP_H
33839 #include <ieeefp.h>
33840 #endif
33843 main ()
33845 isnanl(0);
33847 return 0;
33849 _ACEOF
33850 if ac_fn_cxx_try_compile "$LINENO"; then :
33851 glibcxx_cv_func_isnanl_use=yes
33852 else
33853 glibcxx_cv_func_isnanl_use=no
33855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33856 ac_ext=c
33857 ac_cpp='$CPP $CPPFLAGS'
33858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
33867 $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
33869 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
33870 for ac_func in isnanl
33871 do :
33872 ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
33873 if test "x$ac_cv_func_isnanl" = xyes; then :
33874 cat >>confdefs.h <<_ACEOF
33875 #define HAVE_ISNANL 1
33876 _ACEOF
33879 done
33885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
33886 $as_echo_n "checking for isinfl declaration... " >&6; }
33887 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
33888 if ${glibcxx_cv_func_isinfl_use+:} false; then :
33889 $as_echo_n "(cached) " >&6
33890 else
33893 ac_ext=cpp
33894 ac_cpp='$CXXCPP $CPPFLAGS'
33895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33900 /* end confdefs.h. */
33901 #include <math.h>
33902 #ifdef HAVE_IEEEFP_H
33903 #include <ieeefp.h>
33904 #endif
33907 main ()
33909 isinfl(0);
33911 return 0;
33913 _ACEOF
33914 if ac_fn_cxx_try_compile "$LINENO"; then :
33915 glibcxx_cv_func_isinfl_use=yes
33916 else
33917 glibcxx_cv_func_isinfl_use=no
33919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33920 ac_ext=c
33921 ac_cpp='$CPP $CPPFLAGS'
33922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
33931 $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
33933 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
33934 for ac_func in isinfl
33935 do :
33936 ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
33937 if test "x$ac_cv_func_isinfl" = xyes; then :
33938 cat >>confdefs.h <<_ACEOF
33939 #define HAVE_ISINFL 1
33940 _ACEOF
33943 done
33949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
33950 $as_echo_n "checking for atan2l declaration... " >&6; }
33951 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
33952 if ${glibcxx_cv_func_atan2l_use+:} false; then :
33953 $as_echo_n "(cached) " >&6
33954 else
33957 ac_ext=cpp
33958 ac_cpp='$CXXCPP $CPPFLAGS'
33959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33964 /* end confdefs.h. */
33965 #include <math.h>
33967 main ()
33969 atan2l(0, 0);
33971 return 0;
33973 _ACEOF
33974 if ac_fn_cxx_try_compile "$LINENO"; then :
33975 glibcxx_cv_func_atan2l_use=yes
33976 else
33977 glibcxx_cv_func_atan2l_use=no
33979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33980 ac_ext=c
33981 ac_cpp='$CPP $CPPFLAGS'
33982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
33991 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
33993 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
33994 for ac_func in atan2l
33995 do :
33996 ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
33997 if test "x$ac_cv_func_atan2l" = xyes; then :
33998 cat >>confdefs.h <<_ACEOF
33999 #define HAVE_ATAN2L 1
34000 _ACEOF
34003 done
34009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
34010 $as_echo_n "checking for expl declaration... " >&6; }
34011 if test x${glibcxx_cv_func_expl_use+set} != xset; then
34012 if ${glibcxx_cv_func_expl_use+:} false; then :
34013 $as_echo_n "(cached) " >&6
34014 else
34017 ac_ext=cpp
34018 ac_cpp='$CXXCPP $CPPFLAGS'
34019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34024 /* end confdefs.h. */
34025 #include <math.h>
34026 #ifdef HAVE_IEEEFP_H
34027 #include <ieeefp.h>
34028 #endif
34031 main ()
34033 expl(0);
34035 return 0;
34037 _ACEOF
34038 if ac_fn_cxx_try_compile "$LINENO"; then :
34039 glibcxx_cv_func_expl_use=yes
34040 else
34041 glibcxx_cv_func_expl_use=no
34043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34044 ac_ext=c
34045 ac_cpp='$CPP $CPPFLAGS'
34046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
34055 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
34057 if test x$glibcxx_cv_func_expl_use = x"yes"; then
34058 for ac_func in expl
34059 do :
34060 ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
34061 if test "x$ac_cv_func_expl" = xyes; then :
34062 cat >>confdefs.h <<_ACEOF
34063 #define HAVE_EXPL 1
34064 _ACEOF
34067 done
34073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
34074 $as_echo_n "checking for fabsl declaration... " >&6; }
34075 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
34076 if ${glibcxx_cv_func_fabsl_use+:} false; then :
34077 $as_echo_n "(cached) " >&6
34078 else
34081 ac_ext=cpp
34082 ac_cpp='$CXXCPP $CPPFLAGS'
34083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34088 /* end confdefs.h. */
34089 #include <math.h>
34090 #ifdef HAVE_IEEEFP_H
34091 #include <ieeefp.h>
34092 #endif
34095 main ()
34097 fabsl(0);
34099 return 0;
34101 _ACEOF
34102 if ac_fn_cxx_try_compile "$LINENO"; then :
34103 glibcxx_cv_func_fabsl_use=yes
34104 else
34105 glibcxx_cv_func_fabsl_use=no
34107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34108 ac_ext=c
34109 ac_cpp='$CPP $CPPFLAGS'
34110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
34119 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
34121 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
34122 for ac_func in fabsl
34123 do :
34124 ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
34125 if test "x$ac_cv_func_fabsl" = xyes; then :
34126 cat >>confdefs.h <<_ACEOF
34127 #define HAVE_FABSL 1
34128 _ACEOF
34131 done
34137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
34138 $as_echo_n "checking for fmodl declaration... " >&6; }
34139 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
34140 if ${glibcxx_cv_func_fmodl_use+:} false; then :
34141 $as_echo_n "(cached) " >&6
34142 else
34145 ac_ext=cpp
34146 ac_cpp='$CXXCPP $CPPFLAGS'
34147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34152 /* end confdefs.h. */
34153 #include <math.h>
34155 main ()
34157 fmodl(0, 0);
34159 return 0;
34161 _ACEOF
34162 if ac_fn_cxx_try_compile "$LINENO"; then :
34163 glibcxx_cv_func_fmodl_use=yes
34164 else
34165 glibcxx_cv_func_fmodl_use=no
34167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34168 ac_ext=c
34169 ac_cpp='$CPP $CPPFLAGS'
34170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
34179 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
34181 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
34182 for ac_func in fmodl
34183 do :
34184 ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
34185 if test "x$ac_cv_func_fmodl" = xyes; then :
34186 cat >>confdefs.h <<_ACEOF
34187 #define HAVE_FMODL 1
34188 _ACEOF
34191 done
34197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
34198 $as_echo_n "checking for frexpl declaration... " >&6; }
34199 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
34200 if ${glibcxx_cv_func_frexpl_use+:} false; then :
34201 $as_echo_n "(cached) " >&6
34202 else
34205 ac_ext=cpp
34206 ac_cpp='$CXXCPP $CPPFLAGS'
34207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34212 /* end confdefs.h. */
34213 #include <math.h>
34215 main ()
34217 frexpl(0, 0);
34219 return 0;
34221 _ACEOF
34222 if ac_fn_cxx_try_compile "$LINENO"; then :
34223 glibcxx_cv_func_frexpl_use=yes
34224 else
34225 glibcxx_cv_func_frexpl_use=no
34227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34228 ac_ext=c
34229 ac_cpp='$CPP $CPPFLAGS'
34230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
34239 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
34241 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
34242 for ac_func in frexpl
34243 do :
34244 ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
34245 if test "x$ac_cv_func_frexpl" = xyes; then :
34246 cat >>confdefs.h <<_ACEOF
34247 #define HAVE_FREXPL 1
34248 _ACEOF
34251 done
34257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
34258 $as_echo_n "checking for hypotl declaration... " >&6; }
34259 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
34260 if ${glibcxx_cv_func_hypotl_use+:} false; then :
34261 $as_echo_n "(cached) " >&6
34262 else
34265 ac_ext=cpp
34266 ac_cpp='$CXXCPP $CPPFLAGS'
34267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34272 /* end confdefs.h. */
34273 #include <math.h>
34275 main ()
34277 hypotl(0, 0);
34279 return 0;
34281 _ACEOF
34282 if ac_fn_cxx_try_compile "$LINENO"; then :
34283 glibcxx_cv_func_hypotl_use=yes
34284 else
34285 glibcxx_cv_func_hypotl_use=no
34287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34288 ac_ext=c
34289 ac_cpp='$CPP $CPPFLAGS'
34290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
34299 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
34301 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
34302 for ac_func in hypotl
34303 do :
34304 ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
34305 if test "x$ac_cv_func_hypotl" = xyes; then :
34306 cat >>confdefs.h <<_ACEOF
34307 #define HAVE_HYPOTL 1
34308 _ACEOF
34311 done
34317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
34318 $as_echo_n "checking for ldexpl declaration... " >&6; }
34319 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
34320 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
34321 $as_echo_n "(cached) " >&6
34322 else
34325 ac_ext=cpp
34326 ac_cpp='$CXXCPP $CPPFLAGS'
34327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34332 /* end confdefs.h. */
34333 #include <math.h>
34335 main ()
34337 ldexpl(0, 0);
34339 return 0;
34341 _ACEOF
34342 if ac_fn_cxx_try_compile "$LINENO"; then :
34343 glibcxx_cv_func_ldexpl_use=yes
34344 else
34345 glibcxx_cv_func_ldexpl_use=no
34347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34348 ac_ext=c
34349 ac_cpp='$CPP $CPPFLAGS'
34350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
34359 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
34361 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
34362 for ac_func in ldexpl
34363 do :
34364 ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
34365 if test "x$ac_cv_func_ldexpl" = xyes; then :
34366 cat >>confdefs.h <<_ACEOF
34367 #define HAVE_LDEXPL 1
34368 _ACEOF
34371 done
34377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
34378 $as_echo_n "checking for logl declaration... " >&6; }
34379 if test x${glibcxx_cv_func_logl_use+set} != xset; then
34380 if ${glibcxx_cv_func_logl_use+:} false; then :
34381 $as_echo_n "(cached) " >&6
34382 else
34385 ac_ext=cpp
34386 ac_cpp='$CXXCPP $CPPFLAGS'
34387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34392 /* end confdefs.h. */
34393 #include <math.h>
34394 #ifdef HAVE_IEEEFP_H
34395 #include <ieeefp.h>
34396 #endif
34399 main ()
34401 logl(0);
34403 return 0;
34405 _ACEOF
34406 if ac_fn_cxx_try_compile "$LINENO"; then :
34407 glibcxx_cv_func_logl_use=yes
34408 else
34409 glibcxx_cv_func_logl_use=no
34411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34412 ac_ext=c
34413 ac_cpp='$CPP $CPPFLAGS'
34414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
34423 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
34425 if test x$glibcxx_cv_func_logl_use = x"yes"; then
34426 for ac_func in logl
34427 do :
34428 ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
34429 if test "x$ac_cv_func_logl" = xyes; then :
34430 cat >>confdefs.h <<_ACEOF
34431 #define HAVE_LOGL 1
34432 _ACEOF
34435 done
34441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
34442 $as_echo_n "checking for log10l declaration... " >&6; }
34443 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
34444 if ${glibcxx_cv_func_log10l_use+:} false; then :
34445 $as_echo_n "(cached) " >&6
34446 else
34449 ac_ext=cpp
34450 ac_cpp='$CXXCPP $CPPFLAGS'
34451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34456 /* end confdefs.h. */
34457 #include <math.h>
34458 #ifdef HAVE_IEEEFP_H
34459 #include <ieeefp.h>
34460 #endif
34463 main ()
34465 log10l(0);
34467 return 0;
34469 _ACEOF
34470 if ac_fn_cxx_try_compile "$LINENO"; then :
34471 glibcxx_cv_func_log10l_use=yes
34472 else
34473 glibcxx_cv_func_log10l_use=no
34475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34476 ac_ext=c
34477 ac_cpp='$CPP $CPPFLAGS'
34478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
34487 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
34489 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
34490 for ac_func in log10l
34491 do :
34492 ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
34493 if test "x$ac_cv_func_log10l" = xyes; then :
34494 cat >>confdefs.h <<_ACEOF
34495 #define HAVE_LOG10L 1
34496 _ACEOF
34499 done
34505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
34506 $as_echo_n "checking for modfl declaration... " >&6; }
34507 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
34508 if ${glibcxx_cv_func_modfl_use+:} false; then :
34509 $as_echo_n "(cached) " >&6
34510 else
34513 ac_ext=cpp
34514 ac_cpp='$CXXCPP $CPPFLAGS'
34515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34520 /* end confdefs.h. */
34521 #include <math.h>
34523 main ()
34525 modfl(0, 0);
34527 return 0;
34529 _ACEOF
34530 if ac_fn_cxx_try_compile "$LINENO"; then :
34531 glibcxx_cv_func_modfl_use=yes
34532 else
34533 glibcxx_cv_func_modfl_use=no
34535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34536 ac_ext=c
34537 ac_cpp='$CPP $CPPFLAGS'
34538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
34547 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
34549 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
34550 for ac_func in modfl
34551 do :
34552 ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
34553 if test "x$ac_cv_func_modfl" = xyes; then :
34554 cat >>confdefs.h <<_ACEOF
34555 #define HAVE_MODFL 1
34556 _ACEOF
34559 done
34565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
34566 $as_echo_n "checking for powl declaration... " >&6; }
34567 if test x${glibcxx_cv_func_powl_use+set} != xset; then
34568 if ${glibcxx_cv_func_powl_use+:} false; then :
34569 $as_echo_n "(cached) " >&6
34570 else
34573 ac_ext=cpp
34574 ac_cpp='$CXXCPP $CPPFLAGS'
34575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34580 /* end confdefs.h. */
34581 #include <math.h>
34583 main ()
34585 powl(0, 0);
34587 return 0;
34589 _ACEOF
34590 if ac_fn_cxx_try_compile "$LINENO"; then :
34591 glibcxx_cv_func_powl_use=yes
34592 else
34593 glibcxx_cv_func_powl_use=no
34595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34596 ac_ext=c
34597 ac_cpp='$CPP $CPPFLAGS'
34598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
34607 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
34609 if test x$glibcxx_cv_func_powl_use = x"yes"; then
34610 for ac_func in powl
34611 do :
34612 ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
34613 if test "x$ac_cv_func_powl" = xyes; then :
34614 cat >>confdefs.h <<_ACEOF
34615 #define HAVE_POWL 1
34616 _ACEOF
34619 done
34625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
34626 $as_echo_n "checking for sqrtl declaration... " >&6; }
34627 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
34628 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
34629 $as_echo_n "(cached) " >&6
34630 else
34633 ac_ext=cpp
34634 ac_cpp='$CXXCPP $CPPFLAGS'
34635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34640 /* end confdefs.h. */
34641 #include <math.h>
34642 #ifdef HAVE_IEEEFP_H
34643 #include <ieeefp.h>
34644 #endif
34647 main ()
34649 sqrtl(0);
34651 return 0;
34653 _ACEOF
34654 if ac_fn_cxx_try_compile "$LINENO"; then :
34655 glibcxx_cv_func_sqrtl_use=yes
34656 else
34657 glibcxx_cv_func_sqrtl_use=no
34659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34660 ac_ext=c
34661 ac_cpp='$CPP $CPPFLAGS'
34662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
34671 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
34673 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
34674 for ac_func in sqrtl
34675 do :
34676 ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
34677 if test "x$ac_cv_func_sqrtl" = xyes; then :
34678 cat >>confdefs.h <<_ACEOF
34679 #define HAVE_SQRTL 1
34680 _ACEOF
34683 done
34689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
34690 $as_echo_n "checking for sincosl declaration... " >&6; }
34691 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
34692 if ${glibcxx_cv_func_sincosl_use+:} false; then :
34693 $as_echo_n "(cached) " >&6
34694 else
34697 ac_ext=cpp
34698 ac_cpp='$CXXCPP $CPPFLAGS'
34699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34704 /* end confdefs.h. */
34705 #include <math.h>
34707 main ()
34709 sincosl(0, 0, 0);
34711 return 0;
34713 _ACEOF
34714 if ac_fn_cxx_try_compile "$LINENO"; then :
34715 glibcxx_cv_func_sincosl_use=yes
34716 else
34717 glibcxx_cv_func_sincosl_use=no
34719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34720 ac_ext=c
34721 ac_cpp='$CPP $CPPFLAGS'
34722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
34731 $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
34733 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
34734 for ac_func in sincosl
34735 do :
34736 ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
34737 if test "x$ac_cv_func_sincosl" = xyes; then :
34738 cat >>confdefs.h <<_ACEOF
34739 #define HAVE_SINCOSL 1
34740 _ACEOF
34743 done
34749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
34750 $as_echo_n "checking for finitel declaration... " >&6; }
34751 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
34752 if ${glibcxx_cv_func_finitel_use+:} false; then :
34753 $as_echo_n "(cached) " >&6
34754 else
34757 ac_ext=cpp
34758 ac_cpp='$CXXCPP $CPPFLAGS'
34759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34764 /* end confdefs.h. */
34765 #include <math.h>
34766 #ifdef HAVE_IEEEFP_H
34767 #include <ieeefp.h>
34768 #endif
34771 main ()
34773 finitel(0);
34775 return 0;
34777 _ACEOF
34778 if ac_fn_cxx_try_compile "$LINENO"; then :
34779 glibcxx_cv_func_finitel_use=yes
34780 else
34781 glibcxx_cv_func_finitel_use=no
34783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34784 ac_ext=c
34785 ac_cpp='$CPP $CPPFLAGS'
34786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
34795 $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
34797 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
34798 for ac_func in finitel
34799 do :
34800 ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
34801 if test "x$ac_cv_func_finitel" = xyes; then :
34802 cat >>confdefs.h <<_ACEOF
34803 #define HAVE_FINITEL 1
34804 _ACEOF
34807 done
34812 LIBS="$ac_save_LIBS"
34813 CXXFLAGS="$ac_save_CXXFLAGS"
34816 ac_test_CXXFLAGS="${CXXFLAGS+set}"
34817 ac_save_CXXFLAGS="$CXXFLAGS"
34818 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
34821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
34822 $as_echo_n "checking for at_quick_exit declaration... " >&6; }
34823 if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
34824 if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
34825 $as_echo_n "(cached) " >&6
34826 else
34829 ac_ext=cpp
34830 ac_cpp='$CXXCPP $CPPFLAGS'
34831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34836 /* end confdefs.h. */
34837 #include <stdlib.h>
34839 main ()
34841 at_quick_exit(0);
34843 return 0;
34845 _ACEOF
34846 if ac_fn_cxx_try_compile "$LINENO"; then :
34847 glibcxx_cv_func_at_quick_exit_use=yes
34848 else
34849 glibcxx_cv_func_at_quick_exit_use=no
34851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34852 ac_ext=c
34853 ac_cpp='$CPP $CPPFLAGS'
34854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
34863 $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
34864 if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
34865 for ac_func in at_quick_exit
34866 do :
34867 ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
34868 if test "x$ac_cv_func_at_quick_exit" = xyes; then :
34869 cat >>confdefs.h <<_ACEOF
34870 #define HAVE_AT_QUICK_EXIT 1
34871 _ACEOF
34874 done
34879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
34880 $as_echo_n "checking for quick_exit declaration... " >&6; }
34881 if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
34882 if ${glibcxx_cv_func_quick_exit_use+:} false; then :
34883 $as_echo_n "(cached) " >&6
34884 else
34887 ac_ext=cpp
34888 ac_cpp='$CXXCPP $CPPFLAGS'
34889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34894 /* end confdefs.h. */
34895 #include <stdlib.h>
34897 main ()
34899 quick_exit(0);
34901 return 0;
34903 _ACEOF
34904 if ac_fn_cxx_try_compile "$LINENO"; then :
34905 glibcxx_cv_func_quick_exit_use=yes
34906 else
34907 glibcxx_cv_func_quick_exit_use=no
34909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34910 ac_ext=c
34911 ac_cpp='$CPP $CPPFLAGS'
34912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
34921 $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
34922 if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
34923 for ac_func in quick_exit
34924 do :
34925 ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
34926 if test "x$ac_cv_func_quick_exit" = xyes; then :
34927 cat >>confdefs.h <<_ACEOF
34928 #define HAVE_QUICK_EXIT 1
34929 _ACEOF
34932 done
34937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
34938 $as_echo_n "checking for strtold declaration... " >&6; }
34939 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
34940 if ${glibcxx_cv_func_strtold_use+:} false; then :
34941 $as_echo_n "(cached) " >&6
34942 else
34945 ac_ext=cpp
34946 ac_cpp='$CXXCPP $CPPFLAGS'
34947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34952 /* end confdefs.h. */
34953 #include <stdlib.h>
34955 main ()
34957 strtold(0, 0);
34959 return 0;
34961 _ACEOF
34962 if ac_fn_cxx_try_compile "$LINENO"; then :
34963 glibcxx_cv_func_strtold_use=yes
34964 else
34965 glibcxx_cv_func_strtold_use=no
34967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34968 ac_ext=c
34969 ac_cpp='$CPP $CPPFLAGS'
34970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
34979 $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
34980 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
34981 for ac_func in strtold
34982 do :
34983 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
34984 if test "x$ac_cv_func_strtold" = xyes; then :
34985 cat >>confdefs.h <<_ACEOF
34986 #define HAVE_STRTOLD 1
34987 _ACEOF
34990 done
34995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
34996 $as_echo_n "checking for strtof declaration... " >&6; }
34997 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
34998 if ${glibcxx_cv_func_strtof_use+:} false; then :
34999 $as_echo_n "(cached) " >&6
35000 else
35003 ac_ext=cpp
35004 ac_cpp='$CXXCPP $CPPFLAGS'
35005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35010 /* end confdefs.h. */
35011 #include <stdlib.h>
35013 main ()
35015 strtof(0, 0);
35017 return 0;
35019 _ACEOF
35020 if ac_fn_cxx_try_compile "$LINENO"; then :
35021 glibcxx_cv_func_strtof_use=yes
35022 else
35023 glibcxx_cv_func_strtof_use=no
35025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35026 ac_ext=c
35027 ac_cpp='$CPP $CPPFLAGS'
35028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
35037 $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
35038 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
35039 for ac_func in strtof
35040 do :
35041 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
35042 if test "x$ac_cv_func_strtof" = xyes; then :
35043 cat >>confdefs.h <<_ACEOF
35044 #define HAVE_STRTOF 1
35045 _ACEOF
35048 done
35053 CXXFLAGS="$ac_save_CXXFLAGS"
35055 $as_echo "#define _GLIBCXX_USE_DEV_RANDOM 1" >>confdefs.h
35057 $as_echo "#define _GLIBCXX_USE_RANDOM_TR1 1" >>confdefs.h
35059 # We don't yet support AIX's TLS ABI.
35060 #GCC_CHECK_TLS
35063 $as_echo "#define HAVE_USELOCALE 1" >>confdefs.h
35067 *-darwin*)
35068 # Darwin versions vary, but the linker should work in a cross environment,
35069 # so we just check for all the features here.
35070 # Check for available headers.
35072 # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
35074 ac_test_CXXFLAGS="${CXXFLAGS+set}"
35075 ac_save_CXXFLAGS="$CXXFLAGS"
35076 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
35078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
35079 $as_echo_n "checking for sin in -lm... " >&6; }
35080 if ${ac_cv_lib_m_sin+:} false; then :
35081 $as_echo_n "(cached) " >&6
35082 else
35083 ac_check_lib_save_LIBS=$LIBS
35084 LIBS="-lm $LIBS"
35085 if test x$gcc_no_link = xyes; then
35086 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
35088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35089 /* end confdefs.h. */
35091 /* Override any GCC internal prototype to avoid an error.
35092 Use char because int might match the return type of a GCC
35093 builtin and then its argument prototype would still apply. */
35094 #ifdef __cplusplus
35095 extern "C"
35096 #endif
35097 char sin ();
35099 main ()
35101 return sin ();
35103 return 0;
35105 _ACEOF
35106 if ac_fn_c_try_link "$LINENO"; then :
35107 ac_cv_lib_m_sin=yes
35108 else
35109 ac_cv_lib_m_sin=no
35111 rm -f core conftest.err conftest.$ac_objext \
35112 conftest$ac_exeext conftest.$ac_ext
35113 LIBS=$ac_check_lib_save_LIBS
35115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
35116 $as_echo "$ac_cv_lib_m_sin" >&6; }
35117 if test "x$ac_cv_lib_m_sin" = xyes; then :
35118 libm="-lm"
35121 ac_save_LIBS="$LIBS"
35122 LIBS="$LIBS $libm"
35126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
35127 $as_echo_n "checking for isinf declaration... " >&6; }
35128 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
35129 if ${glibcxx_cv_func_isinf_use+:} false; then :
35130 $as_echo_n "(cached) " >&6
35131 else
35134 ac_ext=cpp
35135 ac_cpp='$CXXCPP $CPPFLAGS'
35136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35141 /* end confdefs.h. */
35142 #include <math.h>
35143 #ifdef HAVE_IEEEFP_H
35144 #include <ieeefp.h>
35145 #endif
35148 main ()
35150 isinf(0);
35152 return 0;
35154 _ACEOF
35155 if ac_fn_cxx_try_compile "$LINENO"; then :
35156 glibcxx_cv_func_isinf_use=yes
35157 else
35158 glibcxx_cv_func_isinf_use=no
35160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35161 ac_ext=c
35162 ac_cpp='$CPP $CPPFLAGS'
35163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
35172 $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
35174 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
35175 for ac_func in isinf
35176 do :
35177 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
35178 if test "x$ac_cv_func_isinf" = xyes; then :
35179 cat >>confdefs.h <<_ACEOF
35180 #define HAVE_ISINF 1
35181 _ACEOF
35184 done
35190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
35191 $as_echo_n "checking for isnan declaration... " >&6; }
35192 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
35193 if ${glibcxx_cv_func_isnan_use+:} false; then :
35194 $as_echo_n "(cached) " >&6
35195 else
35198 ac_ext=cpp
35199 ac_cpp='$CXXCPP $CPPFLAGS'
35200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35205 /* end confdefs.h. */
35206 #include <math.h>
35207 #ifdef HAVE_IEEEFP_H
35208 #include <ieeefp.h>
35209 #endif
35212 main ()
35214 isnan(0);
35216 return 0;
35218 _ACEOF
35219 if ac_fn_cxx_try_compile "$LINENO"; then :
35220 glibcxx_cv_func_isnan_use=yes
35221 else
35222 glibcxx_cv_func_isnan_use=no
35224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35225 ac_ext=c
35226 ac_cpp='$CPP $CPPFLAGS'
35227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
35236 $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
35238 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
35239 for ac_func in isnan
35240 do :
35241 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
35242 if test "x$ac_cv_func_isnan" = xyes; then :
35243 cat >>confdefs.h <<_ACEOF
35244 #define HAVE_ISNAN 1
35245 _ACEOF
35248 done
35254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
35255 $as_echo_n "checking for finite declaration... " >&6; }
35256 if test x${glibcxx_cv_func_finite_use+set} != xset; then
35257 if ${glibcxx_cv_func_finite_use+:} false; then :
35258 $as_echo_n "(cached) " >&6
35259 else
35262 ac_ext=cpp
35263 ac_cpp='$CXXCPP $CPPFLAGS'
35264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35269 /* end confdefs.h. */
35270 #include <math.h>
35271 #ifdef HAVE_IEEEFP_H
35272 #include <ieeefp.h>
35273 #endif
35276 main ()
35278 finite(0);
35280 return 0;
35282 _ACEOF
35283 if ac_fn_cxx_try_compile "$LINENO"; then :
35284 glibcxx_cv_func_finite_use=yes
35285 else
35286 glibcxx_cv_func_finite_use=no
35288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35289 ac_ext=c
35290 ac_cpp='$CPP $CPPFLAGS'
35291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
35300 $as_echo "$glibcxx_cv_func_finite_use" >&6; }
35302 if test x$glibcxx_cv_func_finite_use = x"yes"; then
35303 for ac_func in finite
35304 do :
35305 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
35306 if test "x$ac_cv_func_finite" = xyes; then :
35307 cat >>confdefs.h <<_ACEOF
35308 #define HAVE_FINITE 1
35309 _ACEOF
35312 done
35318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
35319 $as_echo_n "checking for sincos declaration... " >&6; }
35320 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
35321 if ${glibcxx_cv_func_sincos_use+:} false; then :
35322 $as_echo_n "(cached) " >&6
35323 else
35326 ac_ext=cpp
35327 ac_cpp='$CXXCPP $CPPFLAGS'
35328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35333 /* end confdefs.h. */
35334 #include <math.h>
35336 main ()
35338 sincos(0, 0, 0);
35340 return 0;
35342 _ACEOF
35343 if ac_fn_cxx_try_compile "$LINENO"; then :
35344 glibcxx_cv_func_sincos_use=yes
35345 else
35346 glibcxx_cv_func_sincos_use=no
35348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35349 ac_ext=c
35350 ac_cpp='$CPP $CPPFLAGS'
35351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
35360 $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
35362 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
35363 for ac_func in sincos
35364 do :
35365 ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
35366 if test "x$ac_cv_func_sincos" = xyes; then :
35367 cat >>confdefs.h <<_ACEOF
35368 #define HAVE_SINCOS 1
35369 _ACEOF
35372 done
35378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
35379 $as_echo_n "checking for fpclass declaration... " >&6; }
35380 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
35381 if ${glibcxx_cv_func_fpclass_use+:} false; then :
35382 $as_echo_n "(cached) " >&6
35383 else
35386 ac_ext=cpp
35387 ac_cpp='$CXXCPP $CPPFLAGS'
35388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35393 /* end confdefs.h. */
35394 #include <math.h>
35395 #ifdef HAVE_IEEEFP_H
35396 #include <ieeefp.h>
35397 #endif
35400 main ()
35402 fpclass(0);
35404 return 0;
35406 _ACEOF
35407 if ac_fn_cxx_try_compile "$LINENO"; then :
35408 glibcxx_cv_func_fpclass_use=yes
35409 else
35410 glibcxx_cv_func_fpclass_use=no
35412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35413 ac_ext=c
35414 ac_cpp='$CPP $CPPFLAGS'
35415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
35424 $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
35426 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
35427 for ac_func in fpclass
35428 do :
35429 ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
35430 if test "x$ac_cv_func_fpclass" = xyes; then :
35431 cat >>confdefs.h <<_ACEOF
35432 #define HAVE_FPCLASS 1
35433 _ACEOF
35436 done
35442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
35443 $as_echo_n "checking for qfpclass declaration... " >&6; }
35444 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
35445 if ${glibcxx_cv_func_qfpclass_use+:} false; then :
35446 $as_echo_n "(cached) " >&6
35447 else
35450 ac_ext=cpp
35451 ac_cpp='$CXXCPP $CPPFLAGS'
35452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35457 /* end confdefs.h. */
35458 #include <math.h>
35459 #ifdef HAVE_IEEEFP_H
35460 #include <ieeefp.h>
35461 #endif
35464 main ()
35466 qfpclass(0);
35468 return 0;
35470 _ACEOF
35471 if ac_fn_cxx_try_compile "$LINENO"; then :
35472 glibcxx_cv_func_qfpclass_use=yes
35473 else
35474 glibcxx_cv_func_qfpclass_use=no
35476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35477 ac_ext=c
35478 ac_cpp='$CPP $CPPFLAGS'
35479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
35488 $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
35490 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
35491 for ac_func in qfpclass
35492 do :
35493 ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
35494 if test "x$ac_cv_func_qfpclass" = xyes; then :
35495 cat >>confdefs.h <<_ACEOF
35496 #define HAVE_QFPCLASS 1
35497 _ACEOF
35500 done
35506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
35507 $as_echo_n "checking for hypot declaration... " >&6; }
35508 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
35509 if ${glibcxx_cv_func_hypot_use+:} false; then :
35510 $as_echo_n "(cached) " >&6
35511 else
35514 ac_ext=cpp
35515 ac_cpp='$CXXCPP $CPPFLAGS'
35516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35521 /* end confdefs.h. */
35522 #include <math.h>
35524 main ()
35526 hypot(0, 0);
35528 return 0;
35530 _ACEOF
35531 if ac_fn_cxx_try_compile "$LINENO"; then :
35532 glibcxx_cv_func_hypot_use=yes
35533 else
35534 glibcxx_cv_func_hypot_use=no
35536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35537 ac_ext=c
35538 ac_cpp='$CPP $CPPFLAGS'
35539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
35548 $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
35550 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
35551 for ac_func in hypot
35552 do :
35553 ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
35554 if test "x$ac_cv_func_hypot" = xyes; then :
35555 cat >>confdefs.h <<_ACEOF
35556 #define HAVE_HYPOT 1
35557 _ACEOF
35560 done
35566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
35567 $as_echo_n "checking for float trig functions... " >&6; }
35568 if ${glibcxx_cv_func_float_trig_use+:} false; then :
35569 $as_echo_n "(cached) " >&6
35570 else
35573 ac_ext=cpp
35574 ac_cpp='$CXXCPP $CPPFLAGS'
35575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35580 /* end confdefs.h. */
35581 #include <math.h>
35583 main ()
35585 acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
35587 return 0;
35589 _ACEOF
35590 if ac_fn_cxx_try_compile "$LINENO"; then :
35591 glibcxx_cv_func_float_trig_use=yes
35592 else
35593 glibcxx_cv_func_float_trig_use=no
35595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35596 ac_ext=c
35597 ac_cpp='$CPP $CPPFLAGS'
35598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
35605 $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
35606 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
35607 for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
35608 do :
35609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35610 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
35611 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
35612 cat >>confdefs.h <<_ACEOF
35613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35614 _ACEOF
35617 done
35623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
35624 $as_echo_n "checking for float round functions... " >&6; }
35625 if ${glibcxx_cv_func_float_round_use+:} false; then :
35626 $as_echo_n "(cached) " >&6
35627 else
35630 ac_ext=cpp
35631 ac_cpp='$CXXCPP $CPPFLAGS'
35632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35637 /* end confdefs.h. */
35638 #include <math.h>
35640 main ()
35642 ceilf (0); floorf (0);
35644 return 0;
35646 _ACEOF
35647 if ac_fn_cxx_try_compile "$LINENO"; then :
35648 glibcxx_cv_func_float_round_use=yes
35649 else
35650 glibcxx_cv_func_float_round_use=no
35652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35653 ac_ext=c
35654 ac_cpp='$CPP $CPPFLAGS'
35655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
35662 $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
35663 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
35664 for ac_func in ceilf floorf
35665 do :
35666 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35667 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
35668 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
35669 cat >>confdefs.h <<_ACEOF
35670 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35671 _ACEOF
35674 done
35681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
35682 $as_echo_n "checking for expf declaration... " >&6; }
35683 if test x${glibcxx_cv_func_expf_use+set} != xset; then
35684 if ${glibcxx_cv_func_expf_use+:} false; then :
35685 $as_echo_n "(cached) " >&6
35686 else
35689 ac_ext=cpp
35690 ac_cpp='$CXXCPP $CPPFLAGS'
35691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35696 /* end confdefs.h. */
35697 #include <math.h>
35698 #ifdef HAVE_IEEEFP_H
35699 #include <ieeefp.h>
35700 #endif
35703 main ()
35705 expf(0);
35707 return 0;
35709 _ACEOF
35710 if ac_fn_cxx_try_compile "$LINENO"; then :
35711 glibcxx_cv_func_expf_use=yes
35712 else
35713 glibcxx_cv_func_expf_use=no
35715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35716 ac_ext=c
35717 ac_cpp='$CPP $CPPFLAGS'
35718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
35727 $as_echo "$glibcxx_cv_func_expf_use" >&6; }
35729 if test x$glibcxx_cv_func_expf_use = x"yes"; then
35730 for ac_func in expf
35731 do :
35732 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
35733 if test "x$ac_cv_func_expf" = xyes; then :
35734 cat >>confdefs.h <<_ACEOF
35735 #define HAVE_EXPF 1
35736 _ACEOF
35739 done
35745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
35746 $as_echo_n "checking for isnanf declaration... " >&6; }
35747 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
35748 if ${glibcxx_cv_func_isnanf_use+:} false; then :
35749 $as_echo_n "(cached) " >&6
35750 else
35753 ac_ext=cpp
35754 ac_cpp='$CXXCPP $CPPFLAGS'
35755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35760 /* end confdefs.h. */
35761 #include <math.h>
35762 #ifdef HAVE_IEEEFP_H
35763 #include <ieeefp.h>
35764 #endif
35767 main ()
35769 isnanf(0);
35771 return 0;
35773 _ACEOF
35774 if ac_fn_cxx_try_compile "$LINENO"; then :
35775 glibcxx_cv_func_isnanf_use=yes
35776 else
35777 glibcxx_cv_func_isnanf_use=no
35779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35780 ac_ext=c
35781 ac_cpp='$CPP $CPPFLAGS'
35782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
35791 $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
35793 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
35794 for ac_func in isnanf
35795 do :
35796 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
35797 if test "x$ac_cv_func_isnanf" = xyes; then :
35798 cat >>confdefs.h <<_ACEOF
35799 #define HAVE_ISNANF 1
35800 _ACEOF
35803 done
35809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
35810 $as_echo_n "checking for isinff declaration... " >&6; }
35811 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
35812 if ${glibcxx_cv_func_isinff_use+:} false; then :
35813 $as_echo_n "(cached) " >&6
35814 else
35817 ac_ext=cpp
35818 ac_cpp='$CXXCPP $CPPFLAGS'
35819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35824 /* end confdefs.h. */
35825 #include <math.h>
35826 #ifdef HAVE_IEEEFP_H
35827 #include <ieeefp.h>
35828 #endif
35831 main ()
35833 isinff(0);
35835 return 0;
35837 _ACEOF
35838 if ac_fn_cxx_try_compile "$LINENO"; then :
35839 glibcxx_cv_func_isinff_use=yes
35840 else
35841 glibcxx_cv_func_isinff_use=no
35843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35844 ac_ext=c
35845 ac_cpp='$CPP $CPPFLAGS'
35846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
35855 $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
35857 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
35858 for ac_func in isinff
35859 do :
35860 ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
35861 if test "x$ac_cv_func_isinff" = xyes; then :
35862 cat >>confdefs.h <<_ACEOF
35863 #define HAVE_ISINFF 1
35864 _ACEOF
35867 done
35873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
35874 $as_echo_n "checking for atan2f declaration... " >&6; }
35875 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
35876 if ${glibcxx_cv_func_atan2f_use+:} false; then :
35877 $as_echo_n "(cached) " >&6
35878 else
35881 ac_ext=cpp
35882 ac_cpp='$CXXCPP $CPPFLAGS'
35883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35888 /* end confdefs.h. */
35889 #include <math.h>
35891 main ()
35893 atan2f(0, 0);
35895 return 0;
35897 _ACEOF
35898 if ac_fn_cxx_try_compile "$LINENO"; then :
35899 glibcxx_cv_func_atan2f_use=yes
35900 else
35901 glibcxx_cv_func_atan2f_use=no
35903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35904 ac_ext=c
35905 ac_cpp='$CPP $CPPFLAGS'
35906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
35915 $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
35917 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
35918 for ac_func in atan2f
35919 do :
35920 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
35921 if test "x$ac_cv_func_atan2f" = xyes; then :
35922 cat >>confdefs.h <<_ACEOF
35923 #define HAVE_ATAN2F 1
35924 _ACEOF
35927 done
35933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
35934 $as_echo_n "checking for fabsf declaration... " >&6; }
35935 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
35936 if ${glibcxx_cv_func_fabsf_use+:} false; then :
35937 $as_echo_n "(cached) " >&6
35938 else
35941 ac_ext=cpp
35942 ac_cpp='$CXXCPP $CPPFLAGS'
35943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35948 /* end confdefs.h. */
35949 #include <math.h>
35950 #ifdef HAVE_IEEEFP_H
35951 #include <ieeefp.h>
35952 #endif
35955 main ()
35957 fabsf(0);
35959 return 0;
35961 _ACEOF
35962 if ac_fn_cxx_try_compile "$LINENO"; then :
35963 glibcxx_cv_func_fabsf_use=yes
35964 else
35965 glibcxx_cv_func_fabsf_use=no
35967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35968 ac_ext=c
35969 ac_cpp='$CPP $CPPFLAGS'
35970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
35979 $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
35981 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
35982 for ac_func in fabsf
35983 do :
35984 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
35985 if test "x$ac_cv_func_fabsf" = xyes; then :
35986 cat >>confdefs.h <<_ACEOF
35987 #define HAVE_FABSF 1
35988 _ACEOF
35991 done
35997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
35998 $as_echo_n "checking for fmodf declaration... " >&6; }
35999 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
36000 if ${glibcxx_cv_func_fmodf_use+:} false; then :
36001 $as_echo_n "(cached) " >&6
36002 else
36005 ac_ext=cpp
36006 ac_cpp='$CXXCPP $CPPFLAGS'
36007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36012 /* end confdefs.h. */
36013 #include <math.h>
36015 main ()
36017 fmodf(0, 0);
36019 return 0;
36021 _ACEOF
36022 if ac_fn_cxx_try_compile "$LINENO"; then :
36023 glibcxx_cv_func_fmodf_use=yes
36024 else
36025 glibcxx_cv_func_fmodf_use=no
36027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36028 ac_ext=c
36029 ac_cpp='$CPP $CPPFLAGS'
36030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
36039 $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
36041 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
36042 for ac_func in fmodf
36043 do :
36044 ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
36045 if test "x$ac_cv_func_fmodf" = xyes; then :
36046 cat >>confdefs.h <<_ACEOF
36047 #define HAVE_FMODF 1
36048 _ACEOF
36051 done
36057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
36058 $as_echo_n "checking for frexpf declaration... " >&6; }
36059 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
36060 if ${glibcxx_cv_func_frexpf_use+:} false; then :
36061 $as_echo_n "(cached) " >&6
36062 else
36065 ac_ext=cpp
36066 ac_cpp='$CXXCPP $CPPFLAGS'
36067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36072 /* end confdefs.h. */
36073 #include <math.h>
36075 main ()
36077 frexpf(0, 0);
36079 return 0;
36081 _ACEOF
36082 if ac_fn_cxx_try_compile "$LINENO"; then :
36083 glibcxx_cv_func_frexpf_use=yes
36084 else
36085 glibcxx_cv_func_frexpf_use=no
36087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36088 ac_ext=c
36089 ac_cpp='$CPP $CPPFLAGS'
36090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
36099 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
36101 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
36102 for ac_func in frexpf
36103 do :
36104 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
36105 if test "x$ac_cv_func_frexpf" = xyes; then :
36106 cat >>confdefs.h <<_ACEOF
36107 #define HAVE_FREXPF 1
36108 _ACEOF
36111 done
36117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
36118 $as_echo_n "checking for hypotf declaration... " >&6; }
36119 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
36120 if ${glibcxx_cv_func_hypotf_use+:} false; then :
36121 $as_echo_n "(cached) " >&6
36122 else
36125 ac_ext=cpp
36126 ac_cpp='$CXXCPP $CPPFLAGS'
36127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36132 /* end confdefs.h. */
36133 #include <math.h>
36135 main ()
36137 hypotf(0, 0);
36139 return 0;
36141 _ACEOF
36142 if ac_fn_cxx_try_compile "$LINENO"; then :
36143 glibcxx_cv_func_hypotf_use=yes
36144 else
36145 glibcxx_cv_func_hypotf_use=no
36147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36148 ac_ext=c
36149 ac_cpp='$CPP $CPPFLAGS'
36150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
36159 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
36161 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
36162 for ac_func in hypotf
36163 do :
36164 ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
36165 if test "x$ac_cv_func_hypotf" = xyes; then :
36166 cat >>confdefs.h <<_ACEOF
36167 #define HAVE_HYPOTF 1
36168 _ACEOF
36171 done
36177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
36178 $as_echo_n "checking for ldexpf declaration... " >&6; }
36179 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
36180 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
36181 $as_echo_n "(cached) " >&6
36182 else
36185 ac_ext=cpp
36186 ac_cpp='$CXXCPP $CPPFLAGS'
36187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36192 /* end confdefs.h. */
36193 #include <math.h>
36195 main ()
36197 ldexpf(0, 0);
36199 return 0;
36201 _ACEOF
36202 if ac_fn_cxx_try_compile "$LINENO"; then :
36203 glibcxx_cv_func_ldexpf_use=yes
36204 else
36205 glibcxx_cv_func_ldexpf_use=no
36207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36208 ac_ext=c
36209 ac_cpp='$CPP $CPPFLAGS'
36210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
36219 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
36221 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
36222 for ac_func in ldexpf
36223 do :
36224 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
36225 if test "x$ac_cv_func_ldexpf" = xyes; then :
36226 cat >>confdefs.h <<_ACEOF
36227 #define HAVE_LDEXPF 1
36228 _ACEOF
36231 done
36237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
36238 $as_echo_n "checking for logf declaration... " >&6; }
36239 if test x${glibcxx_cv_func_logf_use+set} != xset; then
36240 if ${glibcxx_cv_func_logf_use+:} false; then :
36241 $as_echo_n "(cached) " >&6
36242 else
36245 ac_ext=cpp
36246 ac_cpp='$CXXCPP $CPPFLAGS'
36247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36252 /* end confdefs.h. */
36253 #include <math.h>
36254 #ifdef HAVE_IEEEFP_H
36255 #include <ieeefp.h>
36256 #endif
36259 main ()
36261 logf(0);
36263 return 0;
36265 _ACEOF
36266 if ac_fn_cxx_try_compile "$LINENO"; then :
36267 glibcxx_cv_func_logf_use=yes
36268 else
36269 glibcxx_cv_func_logf_use=no
36271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36272 ac_ext=c
36273 ac_cpp='$CPP $CPPFLAGS'
36274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
36283 $as_echo "$glibcxx_cv_func_logf_use" >&6; }
36285 if test x$glibcxx_cv_func_logf_use = x"yes"; then
36286 for ac_func in logf
36287 do :
36288 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
36289 if test "x$ac_cv_func_logf" = xyes; then :
36290 cat >>confdefs.h <<_ACEOF
36291 #define HAVE_LOGF 1
36292 _ACEOF
36295 done
36301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
36302 $as_echo_n "checking for log10f declaration... " >&6; }
36303 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
36304 if ${glibcxx_cv_func_log10f_use+:} false; then :
36305 $as_echo_n "(cached) " >&6
36306 else
36309 ac_ext=cpp
36310 ac_cpp='$CXXCPP $CPPFLAGS'
36311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36316 /* end confdefs.h. */
36317 #include <math.h>
36318 #ifdef HAVE_IEEEFP_H
36319 #include <ieeefp.h>
36320 #endif
36323 main ()
36325 log10f(0);
36327 return 0;
36329 _ACEOF
36330 if ac_fn_cxx_try_compile "$LINENO"; then :
36331 glibcxx_cv_func_log10f_use=yes
36332 else
36333 glibcxx_cv_func_log10f_use=no
36335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36336 ac_ext=c
36337 ac_cpp='$CPP $CPPFLAGS'
36338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
36347 $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
36349 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
36350 for ac_func in log10f
36351 do :
36352 ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
36353 if test "x$ac_cv_func_log10f" = xyes; then :
36354 cat >>confdefs.h <<_ACEOF
36355 #define HAVE_LOG10F 1
36356 _ACEOF
36359 done
36365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
36366 $as_echo_n "checking for modff declaration... " >&6; }
36367 if test x${glibcxx_cv_func_modff_use+set} != xset; then
36368 if ${glibcxx_cv_func_modff_use+:} false; then :
36369 $as_echo_n "(cached) " >&6
36370 else
36373 ac_ext=cpp
36374 ac_cpp='$CXXCPP $CPPFLAGS'
36375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36380 /* end confdefs.h. */
36381 #include <math.h>
36383 main ()
36385 modff(0, 0);
36387 return 0;
36389 _ACEOF
36390 if ac_fn_cxx_try_compile "$LINENO"; then :
36391 glibcxx_cv_func_modff_use=yes
36392 else
36393 glibcxx_cv_func_modff_use=no
36395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36396 ac_ext=c
36397 ac_cpp='$CPP $CPPFLAGS'
36398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
36407 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
36409 if test x$glibcxx_cv_func_modff_use = x"yes"; then
36410 for ac_func in modff
36411 do :
36412 ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
36413 if test "x$ac_cv_func_modff" = xyes; then :
36414 cat >>confdefs.h <<_ACEOF
36415 #define HAVE_MODFF 1
36416 _ACEOF
36419 done
36425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
36426 $as_echo_n "checking for modf declaration... " >&6; }
36427 if test x${glibcxx_cv_func_modf_use+set} != xset; then
36428 if ${glibcxx_cv_func_modf_use+:} false; then :
36429 $as_echo_n "(cached) " >&6
36430 else
36433 ac_ext=cpp
36434 ac_cpp='$CXXCPP $CPPFLAGS'
36435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36440 /* end confdefs.h. */
36441 #include <math.h>
36443 main ()
36445 modf(0, 0);
36447 return 0;
36449 _ACEOF
36450 if ac_fn_cxx_try_compile "$LINENO"; then :
36451 glibcxx_cv_func_modf_use=yes
36452 else
36453 glibcxx_cv_func_modf_use=no
36455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36456 ac_ext=c
36457 ac_cpp='$CPP $CPPFLAGS'
36458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
36467 $as_echo "$glibcxx_cv_func_modf_use" >&6; }
36469 if test x$glibcxx_cv_func_modf_use = x"yes"; then
36470 for ac_func in modf
36471 do :
36472 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
36473 if test "x$ac_cv_func_modf" = xyes; then :
36474 cat >>confdefs.h <<_ACEOF
36475 #define HAVE_MODF 1
36476 _ACEOF
36479 done
36485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
36486 $as_echo_n "checking for powf declaration... " >&6; }
36487 if test x${glibcxx_cv_func_powf_use+set} != xset; then
36488 if ${glibcxx_cv_func_powf_use+:} false; then :
36489 $as_echo_n "(cached) " >&6
36490 else
36493 ac_ext=cpp
36494 ac_cpp='$CXXCPP $CPPFLAGS'
36495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36500 /* end confdefs.h. */
36501 #include <math.h>
36503 main ()
36505 powf(0, 0);
36507 return 0;
36509 _ACEOF
36510 if ac_fn_cxx_try_compile "$LINENO"; then :
36511 glibcxx_cv_func_powf_use=yes
36512 else
36513 glibcxx_cv_func_powf_use=no
36515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36516 ac_ext=c
36517 ac_cpp='$CPP $CPPFLAGS'
36518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
36527 $as_echo "$glibcxx_cv_func_powf_use" >&6; }
36529 if test x$glibcxx_cv_func_powf_use = x"yes"; then
36530 for ac_func in powf
36531 do :
36532 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
36533 if test "x$ac_cv_func_powf" = xyes; then :
36534 cat >>confdefs.h <<_ACEOF
36535 #define HAVE_POWF 1
36536 _ACEOF
36539 done
36545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
36546 $as_echo_n "checking for sqrtf declaration... " >&6; }
36547 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
36548 if ${glibcxx_cv_func_sqrtf_use+:} false; then :
36549 $as_echo_n "(cached) " >&6
36550 else
36553 ac_ext=cpp
36554 ac_cpp='$CXXCPP $CPPFLAGS'
36555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36560 /* end confdefs.h. */
36561 #include <math.h>
36562 #ifdef HAVE_IEEEFP_H
36563 #include <ieeefp.h>
36564 #endif
36567 main ()
36569 sqrtf(0);
36571 return 0;
36573 _ACEOF
36574 if ac_fn_cxx_try_compile "$LINENO"; then :
36575 glibcxx_cv_func_sqrtf_use=yes
36576 else
36577 glibcxx_cv_func_sqrtf_use=no
36579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36580 ac_ext=c
36581 ac_cpp='$CPP $CPPFLAGS'
36582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
36591 $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
36593 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
36594 for ac_func in sqrtf
36595 do :
36596 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
36597 if test "x$ac_cv_func_sqrtf" = xyes; then :
36598 cat >>confdefs.h <<_ACEOF
36599 #define HAVE_SQRTF 1
36600 _ACEOF
36603 done
36609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
36610 $as_echo_n "checking for sincosf declaration... " >&6; }
36611 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
36612 if ${glibcxx_cv_func_sincosf_use+:} false; then :
36613 $as_echo_n "(cached) " >&6
36614 else
36617 ac_ext=cpp
36618 ac_cpp='$CXXCPP $CPPFLAGS'
36619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36624 /* end confdefs.h. */
36625 #include <math.h>
36627 main ()
36629 sincosf(0, 0, 0);
36631 return 0;
36633 _ACEOF
36634 if ac_fn_cxx_try_compile "$LINENO"; then :
36635 glibcxx_cv_func_sincosf_use=yes
36636 else
36637 glibcxx_cv_func_sincosf_use=no
36639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36640 ac_ext=c
36641 ac_cpp='$CPP $CPPFLAGS'
36642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
36651 $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
36653 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
36654 for ac_func in sincosf
36655 do :
36656 ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
36657 if test "x$ac_cv_func_sincosf" = xyes; then :
36658 cat >>confdefs.h <<_ACEOF
36659 #define HAVE_SINCOSF 1
36660 _ACEOF
36663 done
36669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
36670 $as_echo_n "checking for finitef declaration... " >&6; }
36671 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
36672 if ${glibcxx_cv_func_finitef_use+:} false; then :
36673 $as_echo_n "(cached) " >&6
36674 else
36677 ac_ext=cpp
36678 ac_cpp='$CXXCPP $CPPFLAGS'
36679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36684 /* end confdefs.h. */
36685 #include <math.h>
36686 #ifdef HAVE_IEEEFP_H
36687 #include <ieeefp.h>
36688 #endif
36691 main ()
36693 finitef(0);
36695 return 0;
36697 _ACEOF
36698 if ac_fn_cxx_try_compile "$LINENO"; then :
36699 glibcxx_cv_func_finitef_use=yes
36700 else
36701 glibcxx_cv_func_finitef_use=no
36703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36704 ac_ext=c
36705 ac_cpp='$CPP $CPPFLAGS'
36706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
36715 $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
36717 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
36718 for ac_func in finitef
36719 do :
36720 ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
36721 if test "x$ac_cv_func_finitef" = xyes; then :
36722 cat >>confdefs.h <<_ACEOF
36723 #define HAVE_FINITEF 1
36724 _ACEOF
36727 done
36733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
36734 $as_echo_n "checking for long double trig functions... " >&6; }
36735 if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
36736 $as_echo_n "(cached) " >&6
36737 else
36740 ac_ext=cpp
36741 ac_cpp='$CXXCPP $CPPFLAGS'
36742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36747 /* end confdefs.h. */
36748 #include <math.h>
36750 main ()
36752 acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
36754 return 0;
36756 _ACEOF
36757 if ac_fn_cxx_try_compile "$LINENO"; then :
36758 glibcxx_cv_func_long_double_trig_use=yes
36759 else
36760 glibcxx_cv_func_long_double_trig_use=no
36762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36763 ac_ext=c
36764 ac_cpp='$CPP $CPPFLAGS'
36765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
36772 $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
36773 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
36774 for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
36775 do :
36776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
36777 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
36778 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
36779 cat >>confdefs.h <<_ACEOF
36780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36781 _ACEOF
36784 done
36790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
36791 $as_echo_n "checking for long double round functions... " >&6; }
36792 if ${glibcxx_cv_func_long_double_round_use+:} false; then :
36793 $as_echo_n "(cached) " >&6
36794 else
36797 ac_ext=cpp
36798 ac_cpp='$CXXCPP $CPPFLAGS'
36799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36804 /* end confdefs.h. */
36805 #include <math.h>
36807 main ()
36809 ceill (0); floorl (0);
36811 return 0;
36813 _ACEOF
36814 if ac_fn_cxx_try_compile "$LINENO"; then :
36815 glibcxx_cv_func_long_double_round_use=yes
36816 else
36817 glibcxx_cv_func_long_double_round_use=no
36819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36820 ac_ext=c
36821 ac_cpp='$CPP $CPPFLAGS'
36822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
36829 $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
36830 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
36831 for ac_func in ceill floorl
36832 do :
36833 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
36834 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
36835 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
36836 cat >>confdefs.h <<_ACEOF
36837 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36838 _ACEOF
36841 done
36848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
36849 $as_echo_n "checking for isnanl declaration... " >&6; }
36850 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
36851 if ${glibcxx_cv_func_isnanl_use+:} false; then :
36852 $as_echo_n "(cached) " >&6
36853 else
36856 ac_ext=cpp
36857 ac_cpp='$CXXCPP $CPPFLAGS'
36858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36863 /* end confdefs.h. */
36864 #include <math.h>
36865 #ifdef HAVE_IEEEFP_H
36866 #include <ieeefp.h>
36867 #endif
36870 main ()
36872 isnanl(0);
36874 return 0;
36876 _ACEOF
36877 if ac_fn_cxx_try_compile "$LINENO"; then :
36878 glibcxx_cv_func_isnanl_use=yes
36879 else
36880 glibcxx_cv_func_isnanl_use=no
36882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36883 ac_ext=c
36884 ac_cpp='$CPP $CPPFLAGS'
36885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
36894 $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
36896 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
36897 for ac_func in isnanl
36898 do :
36899 ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
36900 if test "x$ac_cv_func_isnanl" = xyes; then :
36901 cat >>confdefs.h <<_ACEOF
36902 #define HAVE_ISNANL 1
36903 _ACEOF
36906 done
36912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
36913 $as_echo_n "checking for isinfl declaration... " >&6; }
36914 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
36915 if ${glibcxx_cv_func_isinfl_use+:} false; then :
36916 $as_echo_n "(cached) " >&6
36917 else
36920 ac_ext=cpp
36921 ac_cpp='$CXXCPP $CPPFLAGS'
36922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36927 /* end confdefs.h. */
36928 #include <math.h>
36929 #ifdef HAVE_IEEEFP_H
36930 #include <ieeefp.h>
36931 #endif
36934 main ()
36936 isinfl(0);
36938 return 0;
36940 _ACEOF
36941 if ac_fn_cxx_try_compile "$LINENO"; then :
36942 glibcxx_cv_func_isinfl_use=yes
36943 else
36944 glibcxx_cv_func_isinfl_use=no
36946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36947 ac_ext=c
36948 ac_cpp='$CPP $CPPFLAGS'
36949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
36958 $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
36960 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
36961 for ac_func in isinfl
36962 do :
36963 ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
36964 if test "x$ac_cv_func_isinfl" = xyes; then :
36965 cat >>confdefs.h <<_ACEOF
36966 #define HAVE_ISINFL 1
36967 _ACEOF
36970 done
36976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
36977 $as_echo_n "checking for atan2l declaration... " >&6; }
36978 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
36979 if ${glibcxx_cv_func_atan2l_use+:} false; then :
36980 $as_echo_n "(cached) " >&6
36981 else
36984 ac_ext=cpp
36985 ac_cpp='$CXXCPP $CPPFLAGS'
36986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36991 /* end confdefs.h. */
36992 #include <math.h>
36994 main ()
36996 atan2l(0, 0);
36998 return 0;
37000 _ACEOF
37001 if ac_fn_cxx_try_compile "$LINENO"; then :
37002 glibcxx_cv_func_atan2l_use=yes
37003 else
37004 glibcxx_cv_func_atan2l_use=no
37006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37007 ac_ext=c
37008 ac_cpp='$CPP $CPPFLAGS'
37009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
37018 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
37020 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
37021 for ac_func in atan2l
37022 do :
37023 ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
37024 if test "x$ac_cv_func_atan2l" = xyes; then :
37025 cat >>confdefs.h <<_ACEOF
37026 #define HAVE_ATAN2L 1
37027 _ACEOF
37030 done
37036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
37037 $as_echo_n "checking for expl declaration... " >&6; }
37038 if test x${glibcxx_cv_func_expl_use+set} != xset; then
37039 if ${glibcxx_cv_func_expl_use+:} false; then :
37040 $as_echo_n "(cached) " >&6
37041 else
37044 ac_ext=cpp
37045 ac_cpp='$CXXCPP $CPPFLAGS'
37046 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37047 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37048 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37051 /* end confdefs.h. */
37052 #include <math.h>
37053 #ifdef HAVE_IEEEFP_H
37054 #include <ieeefp.h>
37055 #endif
37058 main ()
37060 expl(0);
37062 return 0;
37064 _ACEOF
37065 if ac_fn_cxx_try_compile "$LINENO"; then :
37066 glibcxx_cv_func_expl_use=yes
37067 else
37068 glibcxx_cv_func_expl_use=no
37070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37071 ac_ext=c
37072 ac_cpp='$CPP $CPPFLAGS'
37073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
37082 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
37084 if test x$glibcxx_cv_func_expl_use = x"yes"; then
37085 for ac_func in expl
37086 do :
37087 ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
37088 if test "x$ac_cv_func_expl" = xyes; then :
37089 cat >>confdefs.h <<_ACEOF
37090 #define HAVE_EXPL 1
37091 _ACEOF
37094 done
37100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
37101 $as_echo_n "checking for fabsl declaration... " >&6; }
37102 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
37103 if ${glibcxx_cv_func_fabsl_use+:} false; then :
37104 $as_echo_n "(cached) " >&6
37105 else
37108 ac_ext=cpp
37109 ac_cpp='$CXXCPP $CPPFLAGS'
37110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37115 /* end confdefs.h. */
37116 #include <math.h>
37117 #ifdef HAVE_IEEEFP_H
37118 #include <ieeefp.h>
37119 #endif
37122 main ()
37124 fabsl(0);
37126 return 0;
37128 _ACEOF
37129 if ac_fn_cxx_try_compile "$LINENO"; then :
37130 glibcxx_cv_func_fabsl_use=yes
37131 else
37132 glibcxx_cv_func_fabsl_use=no
37134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37135 ac_ext=c
37136 ac_cpp='$CPP $CPPFLAGS'
37137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
37146 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
37148 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
37149 for ac_func in fabsl
37150 do :
37151 ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
37152 if test "x$ac_cv_func_fabsl" = xyes; then :
37153 cat >>confdefs.h <<_ACEOF
37154 #define HAVE_FABSL 1
37155 _ACEOF
37158 done
37164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
37165 $as_echo_n "checking for fmodl declaration... " >&6; }
37166 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
37167 if ${glibcxx_cv_func_fmodl_use+:} false; then :
37168 $as_echo_n "(cached) " >&6
37169 else
37172 ac_ext=cpp
37173 ac_cpp='$CXXCPP $CPPFLAGS'
37174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37179 /* end confdefs.h. */
37180 #include <math.h>
37182 main ()
37184 fmodl(0, 0);
37186 return 0;
37188 _ACEOF
37189 if ac_fn_cxx_try_compile "$LINENO"; then :
37190 glibcxx_cv_func_fmodl_use=yes
37191 else
37192 glibcxx_cv_func_fmodl_use=no
37194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37195 ac_ext=c
37196 ac_cpp='$CPP $CPPFLAGS'
37197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
37206 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
37208 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
37209 for ac_func in fmodl
37210 do :
37211 ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
37212 if test "x$ac_cv_func_fmodl" = xyes; then :
37213 cat >>confdefs.h <<_ACEOF
37214 #define HAVE_FMODL 1
37215 _ACEOF
37218 done
37224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
37225 $as_echo_n "checking for frexpl declaration... " >&6; }
37226 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
37227 if ${glibcxx_cv_func_frexpl_use+:} false; then :
37228 $as_echo_n "(cached) " >&6
37229 else
37232 ac_ext=cpp
37233 ac_cpp='$CXXCPP $CPPFLAGS'
37234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37239 /* end confdefs.h. */
37240 #include <math.h>
37242 main ()
37244 frexpl(0, 0);
37246 return 0;
37248 _ACEOF
37249 if ac_fn_cxx_try_compile "$LINENO"; then :
37250 glibcxx_cv_func_frexpl_use=yes
37251 else
37252 glibcxx_cv_func_frexpl_use=no
37254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37255 ac_ext=c
37256 ac_cpp='$CPP $CPPFLAGS'
37257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
37266 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
37268 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
37269 for ac_func in frexpl
37270 do :
37271 ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
37272 if test "x$ac_cv_func_frexpl" = xyes; then :
37273 cat >>confdefs.h <<_ACEOF
37274 #define HAVE_FREXPL 1
37275 _ACEOF
37278 done
37284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
37285 $as_echo_n "checking for hypotl declaration... " >&6; }
37286 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
37287 if ${glibcxx_cv_func_hypotl_use+:} false; then :
37288 $as_echo_n "(cached) " >&6
37289 else
37292 ac_ext=cpp
37293 ac_cpp='$CXXCPP $CPPFLAGS'
37294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37299 /* end confdefs.h. */
37300 #include <math.h>
37302 main ()
37304 hypotl(0, 0);
37306 return 0;
37308 _ACEOF
37309 if ac_fn_cxx_try_compile "$LINENO"; then :
37310 glibcxx_cv_func_hypotl_use=yes
37311 else
37312 glibcxx_cv_func_hypotl_use=no
37314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37315 ac_ext=c
37316 ac_cpp='$CPP $CPPFLAGS'
37317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
37326 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
37328 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
37329 for ac_func in hypotl
37330 do :
37331 ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
37332 if test "x$ac_cv_func_hypotl" = xyes; then :
37333 cat >>confdefs.h <<_ACEOF
37334 #define HAVE_HYPOTL 1
37335 _ACEOF
37338 done
37344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
37345 $as_echo_n "checking for ldexpl declaration... " >&6; }
37346 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
37347 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
37348 $as_echo_n "(cached) " >&6
37349 else
37352 ac_ext=cpp
37353 ac_cpp='$CXXCPP $CPPFLAGS'
37354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37359 /* end confdefs.h. */
37360 #include <math.h>
37362 main ()
37364 ldexpl(0, 0);
37366 return 0;
37368 _ACEOF
37369 if ac_fn_cxx_try_compile "$LINENO"; then :
37370 glibcxx_cv_func_ldexpl_use=yes
37371 else
37372 glibcxx_cv_func_ldexpl_use=no
37374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37375 ac_ext=c
37376 ac_cpp='$CPP $CPPFLAGS'
37377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
37386 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
37388 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
37389 for ac_func in ldexpl
37390 do :
37391 ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
37392 if test "x$ac_cv_func_ldexpl" = xyes; then :
37393 cat >>confdefs.h <<_ACEOF
37394 #define HAVE_LDEXPL 1
37395 _ACEOF
37398 done
37404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
37405 $as_echo_n "checking for logl declaration... " >&6; }
37406 if test x${glibcxx_cv_func_logl_use+set} != xset; then
37407 if ${glibcxx_cv_func_logl_use+:} false; then :
37408 $as_echo_n "(cached) " >&6
37409 else
37412 ac_ext=cpp
37413 ac_cpp='$CXXCPP $CPPFLAGS'
37414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37419 /* end confdefs.h. */
37420 #include <math.h>
37421 #ifdef HAVE_IEEEFP_H
37422 #include <ieeefp.h>
37423 #endif
37426 main ()
37428 logl(0);
37430 return 0;
37432 _ACEOF
37433 if ac_fn_cxx_try_compile "$LINENO"; then :
37434 glibcxx_cv_func_logl_use=yes
37435 else
37436 glibcxx_cv_func_logl_use=no
37438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37439 ac_ext=c
37440 ac_cpp='$CPP $CPPFLAGS'
37441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
37450 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
37452 if test x$glibcxx_cv_func_logl_use = x"yes"; then
37453 for ac_func in logl
37454 do :
37455 ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
37456 if test "x$ac_cv_func_logl" = xyes; then :
37457 cat >>confdefs.h <<_ACEOF
37458 #define HAVE_LOGL 1
37459 _ACEOF
37462 done
37468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
37469 $as_echo_n "checking for log10l declaration... " >&6; }
37470 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
37471 if ${glibcxx_cv_func_log10l_use+:} false; then :
37472 $as_echo_n "(cached) " >&6
37473 else
37476 ac_ext=cpp
37477 ac_cpp='$CXXCPP $CPPFLAGS'
37478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37483 /* end confdefs.h. */
37484 #include <math.h>
37485 #ifdef HAVE_IEEEFP_H
37486 #include <ieeefp.h>
37487 #endif
37490 main ()
37492 log10l(0);
37494 return 0;
37496 _ACEOF
37497 if ac_fn_cxx_try_compile "$LINENO"; then :
37498 glibcxx_cv_func_log10l_use=yes
37499 else
37500 glibcxx_cv_func_log10l_use=no
37502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37503 ac_ext=c
37504 ac_cpp='$CPP $CPPFLAGS'
37505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
37514 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
37516 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
37517 for ac_func in log10l
37518 do :
37519 ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
37520 if test "x$ac_cv_func_log10l" = xyes; then :
37521 cat >>confdefs.h <<_ACEOF
37522 #define HAVE_LOG10L 1
37523 _ACEOF
37526 done
37532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
37533 $as_echo_n "checking for modfl declaration... " >&6; }
37534 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
37535 if ${glibcxx_cv_func_modfl_use+:} false; then :
37536 $as_echo_n "(cached) " >&6
37537 else
37540 ac_ext=cpp
37541 ac_cpp='$CXXCPP $CPPFLAGS'
37542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37547 /* end confdefs.h. */
37548 #include <math.h>
37550 main ()
37552 modfl(0, 0);
37554 return 0;
37556 _ACEOF
37557 if ac_fn_cxx_try_compile "$LINENO"; then :
37558 glibcxx_cv_func_modfl_use=yes
37559 else
37560 glibcxx_cv_func_modfl_use=no
37562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37563 ac_ext=c
37564 ac_cpp='$CPP $CPPFLAGS'
37565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
37574 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
37576 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
37577 for ac_func in modfl
37578 do :
37579 ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
37580 if test "x$ac_cv_func_modfl" = xyes; then :
37581 cat >>confdefs.h <<_ACEOF
37582 #define HAVE_MODFL 1
37583 _ACEOF
37586 done
37592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
37593 $as_echo_n "checking for powl declaration... " >&6; }
37594 if test x${glibcxx_cv_func_powl_use+set} != xset; then
37595 if ${glibcxx_cv_func_powl_use+:} false; then :
37596 $as_echo_n "(cached) " >&6
37597 else
37600 ac_ext=cpp
37601 ac_cpp='$CXXCPP $CPPFLAGS'
37602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37607 /* end confdefs.h. */
37608 #include <math.h>
37610 main ()
37612 powl(0, 0);
37614 return 0;
37616 _ACEOF
37617 if ac_fn_cxx_try_compile "$LINENO"; then :
37618 glibcxx_cv_func_powl_use=yes
37619 else
37620 glibcxx_cv_func_powl_use=no
37622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37623 ac_ext=c
37624 ac_cpp='$CPP $CPPFLAGS'
37625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
37634 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
37636 if test x$glibcxx_cv_func_powl_use = x"yes"; then
37637 for ac_func in powl
37638 do :
37639 ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
37640 if test "x$ac_cv_func_powl" = xyes; then :
37641 cat >>confdefs.h <<_ACEOF
37642 #define HAVE_POWL 1
37643 _ACEOF
37646 done
37652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
37653 $as_echo_n "checking for sqrtl declaration... " >&6; }
37654 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
37655 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
37656 $as_echo_n "(cached) " >&6
37657 else
37660 ac_ext=cpp
37661 ac_cpp='$CXXCPP $CPPFLAGS'
37662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37667 /* end confdefs.h. */
37668 #include <math.h>
37669 #ifdef HAVE_IEEEFP_H
37670 #include <ieeefp.h>
37671 #endif
37674 main ()
37676 sqrtl(0);
37678 return 0;
37680 _ACEOF
37681 if ac_fn_cxx_try_compile "$LINENO"; then :
37682 glibcxx_cv_func_sqrtl_use=yes
37683 else
37684 glibcxx_cv_func_sqrtl_use=no
37686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37687 ac_ext=c
37688 ac_cpp='$CPP $CPPFLAGS'
37689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
37698 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
37700 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
37701 for ac_func in sqrtl
37702 do :
37703 ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
37704 if test "x$ac_cv_func_sqrtl" = xyes; then :
37705 cat >>confdefs.h <<_ACEOF
37706 #define HAVE_SQRTL 1
37707 _ACEOF
37710 done
37716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
37717 $as_echo_n "checking for sincosl declaration... " >&6; }
37718 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
37719 if ${glibcxx_cv_func_sincosl_use+:} false; then :
37720 $as_echo_n "(cached) " >&6
37721 else
37724 ac_ext=cpp
37725 ac_cpp='$CXXCPP $CPPFLAGS'
37726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37731 /* end confdefs.h. */
37732 #include <math.h>
37734 main ()
37736 sincosl(0, 0, 0);
37738 return 0;
37740 _ACEOF
37741 if ac_fn_cxx_try_compile "$LINENO"; then :
37742 glibcxx_cv_func_sincosl_use=yes
37743 else
37744 glibcxx_cv_func_sincosl_use=no
37746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37747 ac_ext=c
37748 ac_cpp='$CPP $CPPFLAGS'
37749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
37758 $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
37760 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
37761 for ac_func in sincosl
37762 do :
37763 ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
37764 if test "x$ac_cv_func_sincosl" = xyes; then :
37765 cat >>confdefs.h <<_ACEOF
37766 #define HAVE_SINCOSL 1
37767 _ACEOF
37770 done
37776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
37777 $as_echo_n "checking for finitel declaration... " >&6; }
37778 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
37779 if ${glibcxx_cv_func_finitel_use+:} false; then :
37780 $as_echo_n "(cached) " >&6
37781 else
37784 ac_ext=cpp
37785 ac_cpp='$CXXCPP $CPPFLAGS'
37786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37791 /* end confdefs.h. */
37792 #include <math.h>
37793 #ifdef HAVE_IEEEFP_H
37794 #include <ieeefp.h>
37795 #endif
37798 main ()
37800 finitel(0);
37802 return 0;
37804 _ACEOF
37805 if ac_fn_cxx_try_compile "$LINENO"; then :
37806 glibcxx_cv_func_finitel_use=yes
37807 else
37808 glibcxx_cv_func_finitel_use=no
37810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37811 ac_ext=c
37812 ac_cpp='$CPP $CPPFLAGS'
37813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
37822 $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
37824 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
37825 for ac_func in finitel
37826 do :
37827 ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
37828 if test "x$ac_cv_func_finitel" = xyes; then :
37829 cat >>confdefs.h <<_ACEOF
37830 #define HAVE_FINITEL 1
37831 _ACEOF
37834 done
37839 LIBS="$ac_save_LIBS"
37840 CXXFLAGS="$ac_save_CXXFLAGS"
37843 ac_test_CXXFLAGS="${CXXFLAGS+set}"
37844 ac_save_CXXFLAGS="$CXXFLAGS"
37845 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
37848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
37849 $as_echo_n "checking for at_quick_exit declaration... " >&6; }
37850 if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
37851 if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
37852 $as_echo_n "(cached) " >&6
37853 else
37856 ac_ext=cpp
37857 ac_cpp='$CXXCPP $CPPFLAGS'
37858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37863 /* end confdefs.h. */
37864 #include <stdlib.h>
37866 main ()
37868 at_quick_exit(0);
37870 return 0;
37872 _ACEOF
37873 if ac_fn_cxx_try_compile "$LINENO"; then :
37874 glibcxx_cv_func_at_quick_exit_use=yes
37875 else
37876 glibcxx_cv_func_at_quick_exit_use=no
37878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37879 ac_ext=c
37880 ac_cpp='$CPP $CPPFLAGS'
37881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
37890 $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
37891 if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
37892 for ac_func in at_quick_exit
37893 do :
37894 ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
37895 if test "x$ac_cv_func_at_quick_exit" = xyes; then :
37896 cat >>confdefs.h <<_ACEOF
37897 #define HAVE_AT_QUICK_EXIT 1
37898 _ACEOF
37901 done
37906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
37907 $as_echo_n "checking for quick_exit declaration... " >&6; }
37908 if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
37909 if ${glibcxx_cv_func_quick_exit_use+:} false; then :
37910 $as_echo_n "(cached) " >&6
37911 else
37914 ac_ext=cpp
37915 ac_cpp='$CXXCPP $CPPFLAGS'
37916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37921 /* end confdefs.h. */
37922 #include <stdlib.h>
37924 main ()
37926 quick_exit(0);
37928 return 0;
37930 _ACEOF
37931 if ac_fn_cxx_try_compile "$LINENO"; then :
37932 glibcxx_cv_func_quick_exit_use=yes
37933 else
37934 glibcxx_cv_func_quick_exit_use=no
37936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37937 ac_ext=c
37938 ac_cpp='$CPP $CPPFLAGS'
37939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
37948 $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
37949 if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
37950 for ac_func in quick_exit
37951 do :
37952 ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
37953 if test "x$ac_cv_func_quick_exit" = xyes; then :
37954 cat >>confdefs.h <<_ACEOF
37955 #define HAVE_QUICK_EXIT 1
37956 _ACEOF
37959 done
37964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
37965 $as_echo_n "checking for strtold declaration... " >&6; }
37966 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
37967 if ${glibcxx_cv_func_strtold_use+:} false; then :
37968 $as_echo_n "(cached) " >&6
37969 else
37972 ac_ext=cpp
37973 ac_cpp='$CXXCPP $CPPFLAGS'
37974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37979 /* end confdefs.h. */
37980 #include <stdlib.h>
37982 main ()
37984 strtold(0, 0);
37986 return 0;
37988 _ACEOF
37989 if ac_fn_cxx_try_compile "$LINENO"; then :
37990 glibcxx_cv_func_strtold_use=yes
37991 else
37992 glibcxx_cv_func_strtold_use=no
37994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37995 ac_ext=c
37996 ac_cpp='$CPP $CPPFLAGS'
37997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
38006 $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
38007 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
38008 for ac_func in strtold
38009 do :
38010 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
38011 if test "x$ac_cv_func_strtold" = xyes; then :
38012 cat >>confdefs.h <<_ACEOF
38013 #define HAVE_STRTOLD 1
38014 _ACEOF
38017 done
38022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
38023 $as_echo_n "checking for strtof declaration... " >&6; }
38024 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
38025 if ${glibcxx_cv_func_strtof_use+:} false; then :
38026 $as_echo_n "(cached) " >&6
38027 else
38030 ac_ext=cpp
38031 ac_cpp='$CXXCPP $CPPFLAGS'
38032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38037 /* end confdefs.h. */
38038 #include <stdlib.h>
38040 main ()
38042 strtof(0, 0);
38044 return 0;
38046 _ACEOF
38047 if ac_fn_cxx_try_compile "$LINENO"; then :
38048 glibcxx_cv_func_strtof_use=yes
38049 else
38050 glibcxx_cv_func_strtof_use=no
38052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38053 ac_ext=c
38054 ac_cpp='$CPP $CPPFLAGS'
38055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
38064 $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
38065 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
38066 for ac_func in strtof
38067 do :
38068 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
38069 if test "x$ac_cv_func_strtof" = xyes; then :
38070 cat >>confdefs.h <<_ACEOF
38071 #define HAVE_STRTOF 1
38072 _ACEOF
38075 done
38080 CXXFLAGS="$ac_save_CXXFLAGS"
38083 for ac_func in uselocale
38084 do :
38085 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
38086 if test "x$ac_cv_func_uselocale" = xyes; then :
38087 cat >>confdefs.h <<_ACEOF
38088 #define HAVE_USELOCALE 1
38089 _ACEOF
38092 done
38096 *djgpp)
38097 # GLIBCXX_CHECK_MATH_SUPPORT
38098 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
38100 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
38102 $as_echo "#define HAVE_FINITE 1" >>confdefs.h
38104 $as_echo "#define HAVE_SINCOS 1" >>confdefs.h
38106 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
38110 *-freebsd*)
38111 SECTION_FLAGS='-ffunction-sections -fdata-sections'
38114 # If we're not using GNU ld, then there's no point in even trying these
38115 # tests. Check for that first. We should have already tested for gld
38116 # by now (in libtool), but require it now just to be safe...
38117 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
38118 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
38122 # The name set by libtool depends on the version of libtool. Shame on us
38123 # for depending on an impl detail, but c'est la vie. Older versions used
38124 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
38125 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
38126 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
38127 # set (hence we're using an older libtool), then set it.
38128 if test x${with_gnu_ld+set} != xset; then
38129 if test x${ac_cv_prog_gnu_ld+set} != xset; then
38130 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
38131 with_gnu_ld=no
38132 else
38133 with_gnu_ld=$ac_cv_prog_gnu_ld
38137 # Start by getting the version number. I think the libtool test already
38138 # does some of this, but throws away the result.
38139 glibcxx_ld_is_gold=no
38140 glibcxx_ld_is_mold=no
38141 if test x"$with_gnu_ld" = x"yes"; then
38142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
38143 $as_echo_n "checking for ld version... " >&6; }
38145 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
38146 glibcxx_ld_is_gold=yes
38147 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
38148 glibcxx_ld_is_mold=yes
38150 ldver=`$LD --version 2>/dev/null |
38151 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
38153 glibcxx_gnu_ld_version=`echo $ldver | \
38154 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
38155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
38156 $as_echo "$glibcxx_gnu_ld_version" >&6; }
38159 # Set --gc-sections.
38160 glibcxx_have_gc_sections=no
38161 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
38162 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
38163 glibcxx_have_gc_sections=yes
38165 else
38166 glibcxx_gcsections_min_ld=21602
38167 if test x"$with_gnu_ld" = x"yes" &&
38168 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
38169 glibcxx_have_gc_sections=yes
38172 if test "$glibcxx_have_gc_sections" = "yes"; then
38173 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
38174 # NB: This flag only works reliably after 2.16.1. Configure tests
38175 # for this are difficult, so hard wire a value that should work.
38177 ac_test_CFLAGS="${CFLAGS+set}"
38178 ac_save_CFLAGS="$CFLAGS"
38179 CFLAGS='-Wl,--gc-sections'
38181 # Check for -Wl,--gc-sections
38182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
38183 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
38184 if test x$gcc_no_link = xyes; then
38185 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38188 /* end confdefs.h. */
38189 int one(void) { return 1; }
38190 int two(void) { return 2; }
38193 main ()
38195 two();
38197 return 0;
38199 _ACEOF
38200 if ac_fn_c_try_link "$LINENO"; then :
38201 ac_gcsections=yes
38202 else
38203 ac_gcsections=no
38205 rm -f core conftest.err conftest.$ac_objext \
38206 conftest$ac_exeext conftest.$ac_ext
38207 if test "$ac_gcsections" = "yes"; then
38208 rm -f conftest.c
38209 touch conftest.c
38210 if $CC -c conftest.c; then
38211 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
38212 grep "Warning: gc-sections option ignored" > /dev/null; then
38213 ac_gcsections=no
38216 rm -f conftest.c conftest.o conftest
38218 if test "$ac_gcsections" = "yes"; then
38219 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
38221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
38222 $as_echo "$ac_gcsections" >&6; }
38224 if test "$ac_test_CFLAGS" = set; then
38225 CFLAGS="$ac_save_CFLAGS"
38226 else
38227 # this is the suspicious part
38228 CFLAGS=''
38232 # Set -z,relro.
38233 # Note this is only for shared objects.
38234 ac_ld_relro=no
38235 if test x"$with_gnu_ld" = x"yes"; then
38236 # cygwin and mingw uses PE, which has no ELF relro support,
38237 # multi target ld may confuse configure machinery
38238 case "$host" in
38239 *-*-cygwin*)
38241 *-*-mingw*)
38244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
38245 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
38246 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
38247 if test -n "$cxx_z_relo"; then
38248 OPT_LDFLAGS="-Wl,-z,relro"
38249 ac_ld_relro=yes
38251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
38252 $as_echo "$ac_ld_relro" >&6; }
38253 esac
38256 # Set linker optimization flags.
38257 if test x"$with_gnu_ld" = x"yes"; then
38258 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
38264 $as_echo "#define HAVE_SETENV 1" >>confdefs.h
38266 $as_echo "#define HAVE_FINITEF 1" >>confdefs.h
38268 $as_echo "#define HAVE_FINITE 1" >>confdefs.h
38270 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
38272 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
38274 $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
38276 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
38278 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
38280 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
38283 $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
38285 $as_echo "#define HAVE_ASINF 1" >>confdefs.h
38287 $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
38289 $as_echo "#define HAVE_ATANF 1" >>confdefs.h
38291 $as_echo "#define HAVE_CEILF 1" >>confdefs.h
38293 $as_echo "#define HAVE_COSF 1" >>confdefs.h
38295 $as_echo "#define HAVE_COSHF 1" >>confdefs.h
38297 $as_echo "#define HAVE_EXPF 1" >>confdefs.h
38299 $as_echo "#define HAVE_FABSF 1" >>confdefs.h
38301 $as_echo "#define HAVE_FLOORF 1" >>confdefs.h
38303 $as_echo "#define HAVE_FMODF 1" >>confdefs.h
38305 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
38307 $as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
38309 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
38311 $as_echo "#define HAVE_LOGF 1" >>confdefs.h
38313 $as_echo "#define HAVE_MODFF 1" >>confdefs.h
38315 $as_echo "#define HAVE_POWF 1" >>confdefs.h
38317 $as_echo "#define HAVE_SINF 1" >>confdefs.h
38319 $as_echo "#define HAVE_SINHF 1" >>confdefs.h
38321 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
38323 $as_echo "#define HAVE_TANF 1" >>confdefs.h
38325 $as_echo "#define HAVE_TANHF 1" >>confdefs.h
38327 if test x"long_double_math_on_this_cpu" = x"yes"; then
38328 $as_echo "#define HAVE_FINITEL 1" >>confdefs.h
38330 $as_echo "#define HAVE_ISINFL 1" >>confdefs.h
38332 $as_echo "#define HAVE_ISNANL 1" >>confdefs.h
38335 for ac_func in __cxa_thread_atexit
38336 do :
38337 ac_fn_c_check_func "$LINENO" "__cxa_thread_atexit" "ac_cv_func___cxa_thread_atexit"
38338 if test "x$ac_cv_func___cxa_thread_atexit" = xyes; then :
38339 cat >>confdefs.h <<_ACEOF
38340 #define HAVE___CXA_THREAD_ATEXIT 1
38341 _ACEOF
38344 done
38346 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
38347 do :
38348 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38349 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
38350 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
38351 cat >>confdefs.h <<_ACEOF
38352 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38353 _ACEOF
38356 done
38358 for ac_func in timespec_get
38359 do :
38360 ac_fn_c_check_func "$LINENO" "timespec_get" "ac_cv_func_timespec_get"
38361 if test "x$ac_cv_func_timespec_get" = xyes; then :
38362 cat >>confdefs.h <<_ACEOF
38363 #define HAVE_TIMESPEC_GET 1
38364 _ACEOF
38367 done
38369 for ac_func in sockatmark
38370 do :
38371 ac_fn_c_check_func "$LINENO" "sockatmark" "ac_cv_func_sockatmark"
38372 if test "x$ac_cv_func_sockatmark" = xyes; then :
38373 cat >>confdefs.h <<_ACEOF
38374 #define HAVE_SOCKATMARK 1
38375 _ACEOF
38378 done
38380 for ac_func in uselocale
38381 do :
38382 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
38383 if test "x$ac_cv_func_uselocale" = xyes; then :
38384 cat >>confdefs.h <<_ACEOF
38385 #define HAVE_USELOCALE 1
38386 _ACEOF
38389 done
38393 *-fuchsia*)
38394 SECTION_FLAGS='-ffunction-sections -fdata-sections'
38398 *-hpux*)
38399 SECTION_FLAGS='-ffunction-sections -fdata-sections'
38402 # If we're not using GNU ld, then there's no point in even trying these
38403 # tests. Check for that first. We should have already tested for gld
38404 # by now (in libtool), but require it now just to be safe...
38405 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
38406 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
38410 # The name set by libtool depends on the version of libtool. Shame on us
38411 # for depending on an impl detail, but c'est la vie. Older versions used
38412 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
38413 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
38414 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
38415 # set (hence we're using an older libtool), then set it.
38416 if test x${with_gnu_ld+set} != xset; then
38417 if test x${ac_cv_prog_gnu_ld+set} != xset; then
38418 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
38419 with_gnu_ld=no
38420 else
38421 with_gnu_ld=$ac_cv_prog_gnu_ld
38425 # Start by getting the version number. I think the libtool test already
38426 # does some of this, but throws away the result.
38427 glibcxx_ld_is_gold=no
38428 glibcxx_ld_is_mold=no
38429 if test x"$with_gnu_ld" = x"yes"; then
38430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
38431 $as_echo_n "checking for ld version... " >&6; }
38433 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
38434 glibcxx_ld_is_gold=yes
38435 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
38436 glibcxx_ld_is_mold=yes
38438 ldver=`$LD --version 2>/dev/null |
38439 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
38441 glibcxx_gnu_ld_version=`echo $ldver | \
38442 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
38443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
38444 $as_echo "$glibcxx_gnu_ld_version" >&6; }
38447 # Set --gc-sections.
38448 glibcxx_have_gc_sections=no
38449 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
38450 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
38451 glibcxx_have_gc_sections=yes
38453 else
38454 glibcxx_gcsections_min_ld=21602
38455 if test x"$with_gnu_ld" = x"yes" &&
38456 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
38457 glibcxx_have_gc_sections=yes
38460 if test "$glibcxx_have_gc_sections" = "yes"; then
38461 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
38462 # NB: This flag only works reliably after 2.16.1. Configure tests
38463 # for this are difficult, so hard wire a value that should work.
38465 ac_test_CFLAGS="${CFLAGS+set}"
38466 ac_save_CFLAGS="$CFLAGS"
38467 CFLAGS='-Wl,--gc-sections'
38469 # Check for -Wl,--gc-sections
38470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
38471 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
38472 if test x$gcc_no_link = xyes; then
38473 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38476 /* end confdefs.h. */
38477 int one(void) { return 1; }
38478 int two(void) { return 2; }
38481 main ()
38483 two();
38485 return 0;
38487 _ACEOF
38488 if ac_fn_c_try_link "$LINENO"; then :
38489 ac_gcsections=yes
38490 else
38491 ac_gcsections=no
38493 rm -f core conftest.err conftest.$ac_objext \
38494 conftest$ac_exeext conftest.$ac_ext
38495 if test "$ac_gcsections" = "yes"; then
38496 rm -f conftest.c
38497 touch conftest.c
38498 if $CC -c conftest.c; then
38499 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
38500 grep "Warning: gc-sections option ignored" > /dev/null; then
38501 ac_gcsections=no
38504 rm -f conftest.c conftest.o conftest
38506 if test "$ac_gcsections" = "yes"; then
38507 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
38509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
38510 $as_echo "$ac_gcsections" >&6; }
38512 if test "$ac_test_CFLAGS" = set; then
38513 CFLAGS="$ac_save_CFLAGS"
38514 else
38515 # this is the suspicious part
38516 CFLAGS=''
38520 # Set -z,relro.
38521 # Note this is only for shared objects.
38522 ac_ld_relro=no
38523 if test x"$with_gnu_ld" = x"yes"; then
38524 # cygwin and mingw uses PE, which has no ELF relro support,
38525 # multi target ld may confuse configure machinery
38526 case "$host" in
38527 *-*-cygwin*)
38529 *-*-mingw*)
38532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
38533 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
38534 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
38535 if test -n "$cxx_z_relo"; then
38536 OPT_LDFLAGS="-Wl,-z,relro"
38537 ac_ld_relro=yes
38539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
38540 $as_echo "$ac_ld_relro" >&6; }
38541 esac
38544 # Set linker optimization flags.
38545 if test x"$with_gnu_ld" = x"yes"; then
38546 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
38553 # GLIBCXX_CHECK_MATH_SUPPORT
38554 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
38556 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
38558 $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
38560 $as_echo "#define HAVE_ASINF 1" >>confdefs.h
38562 $as_echo "#define HAVE_ATANF 1" >>confdefs.h
38564 $as_echo "#define HAVE_COSF 1" >>confdefs.h
38566 $as_echo "#define HAVE_COSHF 1" >>confdefs.h
38568 $as_echo "#define HAVE_SINF 1" >>confdefs.h
38570 $as_echo "#define HAVE_SINHF 1" >>confdefs.h
38572 $as_echo "#define HAVE_TANF 1" >>confdefs.h
38574 $as_echo "#define HAVE_TANHF 1" >>confdefs.h
38576 $as_echo "#define HAVE_EXPF 1" >>confdefs.h
38578 $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
38580 $as_echo "#define HAVE_FABSF 1" >>confdefs.h
38582 $as_echo "#define HAVE_FMODF 1" >>confdefs.h
38584 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
38586 $as_echo "#define HAVE_LOGF 1" >>confdefs.h
38588 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
38590 $as_echo "#define HAVE_MODF 1" >>confdefs.h
38592 $as_echo "#define HAVE_POWF 1" >>confdefs.h
38594 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
38597 # GLIBCXX_CHECK_STDLIB_SUPPORT
38598 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
38603 # Check whether --enable-tls was given.
38604 if test "${enable_tls+set}" = set; then :
38605 enableval=$enable_tls;
38606 case "$enableval" in
38607 yes|no) ;;
38608 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
38609 esac
38611 else
38612 enable_tls=yes
38616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
38617 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
38618 if ${gcc_cv_have_tls+:} false; then :
38619 $as_echo_n "(cached) " >&6
38620 else
38622 if test "$cross_compiling" = yes; then :
38623 if test x$gcc_no_link = xyes; then
38624 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38627 /* end confdefs.h. */
38628 __thread int a; int b; int main() { return a = b; }
38629 _ACEOF
38630 if ac_fn_c_try_link "$LINENO"; then :
38631 chktls_save_LDFLAGS="$LDFLAGS"
38632 case $host in
38633 *-*-linux* | -*-uclinuxfdpic*)
38634 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
38636 esac
38637 chktls_save_CFLAGS="$CFLAGS"
38638 CFLAGS="-fPIC $CFLAGS"
38639 if test x$gcc_no_link = xyes; then
38640 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38643 /* end confdefs.h. */
38644 int f() { return 0; }
38645 _ACEOF
38646 if ac_fn_c_try_link "$LINENO"; then :
38647 if test x$gcc_no_link = xyes; then
38648 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38651 /* end confdefs.h. */
38652 __thread int a; int b; int f() { return a = b; }
38653 _ACEOF
38654 if ac_fn_c_try_link "$LINENO"; then :
38655 gcc_cv_have_tls=yes
38656 else
38657 gcc_cv_have_tls=no
38659 rm -f core conftest.err conftest.$ac_objext \
38660 conftest$ac_exeext conftest.$ac_ext
38661 else
38662 gcc_cv_have_tls=yes
38664 rm -f core conftest.err conftest.$ac_objext \
38665 conftest$ac_exeext conftest.$ac_ext
38666 CFLAGS="$chktls_save_CFLAGS"
38667 LDFLAGS="$chktls_save_LDFLAGS"
38668 else
38669 gcc_cv_have_tls=no
38671 rm -f core conftest.err conftest.$ac_objext \
38672 conftest$ac_exeext conftest.$ac_ext
38675 else
38676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38677 /* end confdefs.h. */
38678 __thread int a; int b; int main() { return a = b; }
38679 _ACEOF
38680 if ac_fn_c_try_run "$LINENO"; then :
38681 chktls_save_LDFLAGS="$LDFLAGS"
38682 LDFLAGS="-static $LDFLAGS"
38683 if test x$gcc_no_link = xyes; then
38684 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38687 /* end confdefs.h. */
38688 int main() { return 0; }
38689 _ACEOF
38690 if ac_fn_c_try_link "$LINENO"; then :
38691 if test "$cross_compiling" = yes; then :
38692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38694 as_fn_error $? "cannot run test program while cross compiling
38695 See \`config.log' for more details" "$LINENO" 5; }
38696 else
38697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38698 /* end confdefs.h. */
38699 __thread int a; int b; int main() { return a = b; }
38700 _ACEOF
38701 if ac_fn_c_try_run "$LINENO"; then :
38702 gcc_cv_have_tls=yes
38703 else
38704 gcc_cv_have_tls=no
38706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38707 conftest.$ac_objext conftest.beam conftest.$ac_ext
38710 else
38711 gcc_cv_have_tls=yes
38713 rm -f core conftest.err conftest.$ac_objext \
38714 conftest$ac_exeext conftest.$ac_ext
38715 LDFLAGS="$chktls_save_LDFLAGS"
38716 if test $gcc_cv_have_tls = yes; then
38717 chktls_save_CFLAGS="$CFLAGS"
38718 thread_CFLAGS=failed
38719 for flag in '' '-pthread' '-lpthread'; do
38720 CFLAGS="$flag $chktls_save_CFLAGS"
38721 if test x$gcc_no_link = xyes; then
38722 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38725 /* end confdefs.h. */
38726 #include <pthread.h>
38727 void *g(void *d) { return NULL; }
38729 main ()
38731 pthread_t t; pthread_create(&t,NULL,g,NULL);
38733 return 0;
38735 _ACEOF
38736 if ac_fn_c_try_link "$LINENO"; then :
38737 thread_CFLAGS="$flag"
38739 rm -f core conftest.err conftest.$ac_objext \
38740 conftest$ac_exeext conftest.$ac_ext
38741 if test "X$thread_CFLAGS" != Xfailed; then
38742 break
38744 done
38745 CFLAGS="$chktls_save_CFLAGS"
38746 if test "X$thread_CFLAGS" != Xfailed; then
38747 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
38748 if test "$cross_compiling" = yes; then :
38749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38751 as_fn_error $? "cannot run test program while cross compiling
38752 See \`config.log' for more details" "$LINENO" 5; }
38753 else
38754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38755 /* end confdefs.h. */
38756 #include <pthread.h>
38757 __thread int a;
38758 static int *volatile a_in_other_thread;
38759 static void *
38760 thread_func (void *arg)
38762 a_in_other_thread = &a;
38763 return (void *)0;
38766 main ()
38768 pthread_t thread;
38769 void *thread_retval;
38770 int *volatile a_in_main_thread;
38771 a_in_main_thread = &a;
38772 if (pthread_create (&thread, (pthread_attr_t *)0,
38773 thread_func, (void *)0))
38774 return 0;
38775 if (pthread_join (thread, &thread_retval))
38776 return 0;
38777 return (a_in_other_thread == a_in_main_thread);
38779 return 0;
38781 _ACEOF
38782 if ac_fn_c_try_run "$LINENO"; then :
38783 gcc_cv_have_tls=yes
38784 else
38785 gcc_cv_have_tls=no
38787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38788 conftest.$ac_objext conftest.beam conftest.$ac_ext
38791 CFLAGS="$chktls_save_CFLAGS"
38794 else
38795 gcc_cv_have_tls=no
38797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38798 conftest.$ac_objext conftest.beam conftest.$ac_ext
38802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
38803 $as_echo "$gcc_cv_have_tls" >&6; }
38804 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
38806 $as_echo "#define HAVE_TLS 1" >>confdefs.h
38810 *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-cygwin* | *-solaris*)
38812 # All these tests are for C++; save the language and the compiler flags.
38813 # The CXXFLAGS thing is suspicious, but based on similar bits previously
38814 # found in GLIBCXX_CONFIGURE.
38816 ac_ext=cpp
38817 ac_cpp='$CXXCPP $CPPFLAGS'
38818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38822 ac_test_CXXFLAGS="${CXXFLAGS+set}"
38823 ac_save_CXXFLAGS="$CXXFLAGS"
38825 # Check for -ffunction-sections -fdata-sections
38826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
38827 $as_echo_n "checking for g++ that supports -ffunction-sections -fdata-sections... " >&6; }
38828 CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections'
38829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38830 /* end confdefs.h. */
38831 int foo; void bar() { };
38833 main ()
38837 return 0;
38839 _ACEOF
38840 if ac_fn_cxx_try_compile "$LINENO"; then :
38841 ac_fdsections=yes
38842 else
38843 ac_fdsections=no
38845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38846 if test "$ac_test_CXXFLAGS" = set; then
38847 CXXFLAGS="$ac_save_CXXFLAGS"
38848 else
38849 # this is the suspicious part
38850 CXXFLAGS=''
38852 if test x"$ac_fdsections" = x"yes"; then
38853 SECTION_FLAGS='-ffunction-sections -fdata-sections'
38855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
38856 $as_echo "$ac_fdsections" >&6; }
38858 ac_ext=c
38859 ac_cpp='$CPP $CPPFLAGS'
38860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38867 # If we're not using GNU ld, then there's no point in even trying these
38868 # tests. Check for that first. We should have already tested for gld
38869 # by now (in libtool), but require it now just to be safe...
38870 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
38871 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
38875 # The name set by libtool depends on the version of libtool. Shame on us
38876 # for depending on an impl detail, but c'est la vie. Older versions used
38877 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
38878 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
38879 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
38880 # set (hence we're using an older libtool), then set it.
38881 if test x${with_gnu_ld+set} != xset; then
38882 if test x${ac_cv_prog_gnu_ld+set} != xset; then
38883 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
38884 with_gnu_ld=no
38885 else
38886 with_gnu_ld=$ac_cv_prog_gnu_ld
38890 # Start by getting the version number. I think the libtool test already
38891 # does some of this, but throws away the result.
38892 glibcxx_ld_is_gold=no
38893 glibcxx_ld_is_mold=no
38894 if test x"$with_gnu_ld" = x"yes"; then
38895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
38896 $as_echo_n "checking for ld version... " >&6; }
38898 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
38899 glibcxx_ld_is_gold=yes
38900 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
38901 glibcxx_ld_is_mold=yes
38903 ldver=`$LD --version 2>/dev/null |
38904 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
38906 glibcxx_gnu_ld_version=`echo $ldver | \
38907 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
38908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
38909 $as_echo "$glibcxx_gnu_ld_version" >&6; }
38912 # Set --gc-sections.
38913 glibcxx_have_gc_sections=no
38914 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
38915 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
38916 glibcxx_have_gc_sections=yes
38918 else
38919 glibcxx_gcsections_min_ld=21602
38920 if test x"$with_gnu_ld" = x"yes" &&
38921 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
38922 glibcxx_have_gc_sections=yes
38925 if test "$glibcxx_have_gc_sections" = "yes"; then
38926 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
38927 # NB: This flag only works reliably after 2.16.1. Configure tests
38928 # for this are difficult, so hard wire a value that should work.
38930 ac_test_CFLAGS="${CFLAGS+set}"
38931 ac_save_CFLAGS="$CFLAGS"
38932 CFLAGS='-Wl,--gc-sections'
38934 # Check for -Wl,--gc-sections
38935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
38936 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
38937 if test x$gcc_no_link = xyes; then
38938 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
38940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38941 /* end confdefs.h. */
38942 int one(void) { return 1; }
38943 int two(void) { return 2; }
38946 main ()
38948 two();
38950 return 0;
38952 _ACEOF
38953 if ac_fn_c_try_link "$LINENO"; then :
38954 ac_gcsections=yes
38955 else
38956 ac_gcsections=no
38958 rm -f core conftest.err conftest.$ac_objext \
38959 conftest$ac_exeext conftest.$ac_ext
38960 if test "$ac_gcsections" = "yes"; then
38961 rm -f conftest.c
38962 touch conftest.c
38963 if $CC -c conftest.c; then
38964 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
38965 grep "Warning: gc-sections option ignored" > /dev/null; then
38966 ac_gcsections=no
38969 rm -f conftest.c conftest.o conftest
38971 if test "$ac_gcsections" = "yes"; then
38972 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
38974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
38975 $as_echo "$ac_gcsections" >&6; }
38977 if test "$ac_test_CFLAGS" = set; then
38978 CFLAGS="$ac_save_CFLAGS"
38979 else
38980 # this is the suspicious part
38981 CFLAGS=''
38985 # Set -z,relro.
38986 # Note this is only for shared objects.
38987 ac_ld_relro=no
38988 if test x"$with_gnu_ld" = x"yes"; then
38989 # cygwin and mingw uses PE, which has no ELF relro support,
38990 # multi target ld may confuse configure machinery
38991 case "$host" in
38992 *-*-cygwin*)
38994 *-*-mingw*)
38997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
38998 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
38999 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
39000 if test -n "$cxx_z_relo"; then
39001 OPT_LDFLAGS="-Wl,-z,relro"
39002 ac_ld_relro=yes
39004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
39005 $as_echo "$ac_ld_relro" >&6; }
39006 esac
39009 # Set linker optimization flags.
39010 if test x"$with_gnu_ld" = x"yes"; then
39011 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
39018 ac_test_CXXFLAGS="${CXXFLAGS+set}"
39019 ac_save_CXXFLAGS="$CXXFLAGS"
39020 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
39022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
39023 $as_echo_n "checking for sin in -lm... " >&6; }
39024 if ${ac_cv_lib_m_sin+:} false; then :
39025 $as_echo_n "(cached) " >&6
39026 else
39027 ac_check_lib_save_LIBS=$LIBS
39028 LIBS="-lm $LIBS"
39029 if test x$gcc_no_link = xyes; then
39030 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
39032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39033 /* end confdefs.h. */
39035 /* Override any GCC internal prototype to avoid an error.
39036 Use char because int might match the return type of a GCC
39037 builtin and then its argument prototype would still apply. */
39038 #ifdef __cplusplus
39039 extern "C"
39040 #endif
39041 char sin ();
39043 main ()
39045 return sin ();
39047 return 0;
39049 _ACEOF
39050 if ac_fn_c_try_link "$LINENO"; then :
39051 ac_cv_lib_m_sin=yes
39052 else
39053 ac_cv_lib_m_sin=no
39055 rm -f core conftest.err conftest.$ac_objext \
39056 conftest$ac_exeext conftest.$ac_ext
39057 LIBS=$ac_check_lib_save_LIBS
39059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
39060 $as_echo "$ac_cv_lib_m_sin" >&6; }
39061 if test "x$ac_cv_lib_m_sin" = xyes; then :
39062 libm="-lm"
39065 ac_save_LIBS="$LIBS"
39066 LIBS="$LIBS $libm"
39070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
39071 $as_echo_n "checking for isinf declaration... " >&6; }
39072 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
39073 if ${glibcxx_cv_func_isinf_use+:} false; then :
39074 $as_echo_n "(cached) " >&6
39075 else
39078 ac_ext=cpp
39079 ac_cpp='$CXXCPP $CPPFLAGS'
39080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39085 /* end confdefs.h. */
39086 #include <math.h>
39087 #ifdef HAVE_IEEEFP_H
39088 #include <ieeefp.h>
39089 #endif
39092 main ()
39094 isinf(0);
39096 return 0;
39098 _ACEOF
39099 if ac_fn_cxx_try_compile "$LINENO"; then :
39100 glibcxx_cv_func_isinf_use=yes
39101 else
39102 glibcxx_cv_func_isinf_use=no
39104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39105 ac_ext=c
39106 ac_cpp='$CPP $CPPFLAGS'
39107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
39116 $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
39118 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
39119 for ac_func in isinf
39120 do :
39121 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
39122 if test "x$ac_cv_func_isinf" = xyes; then :
39123 cat >>confdefs.h <<_ACEOF
39124 #define HAVE_ISINF 1
39125 _ACEOF
39128 done
39134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
39135 $as_echo_n "checking for isnan declaration... " >&6; }
39136 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
39137 if ${glibcxx_cv_func_isnan_use+:} false; then :
39138 $as_echo_n "(cached) " >&6
39139 else
39142 ac_ext=cpp
39143 ac_cpp='$CXXCPP $CPPFLAGS'
39144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39149 /* end confdefs.h. */
39150 #include <math.h>
39151 #ifdef HAVE_IEEEFP_H
39152 #include <ieeefp.h>
39153 #endif
39156 main ()
39158 isnan(0);
39160 return 0;
39162 _ACEOF
39163 if ac_fn_cxx_try_compile "$LINENO"; then :
39164 glibcxx_cv_func_isnan_use=yes
39165 else
39166 glibcxx_cv_func_isnan_use=no
39168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39169 ac_ext=c
39170 ac_cpp='$CPP $CPPFLAGS'
39171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
39180 $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
39182 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
39183 for ac_func in isnan
39184 do :
39185 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
39186 if test "x$ac_cv_func_isnan" = xyes; then :
39187 cat >>confdefs.h <<_ACEOF
39188 #define HAVE_ISNAN 1
39189 _ACEOF
39192 done
39198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
39199 $as_echo_n "checking for finite declaration... " >&6; }
39200 if test x${glibcxx_cv_func_finite_use+set} != xset; then
39201 if ${glibcxx_cv_func_finite_use+:} false; then :
39202 $as_echo_n "(cached) " >&6
39203 else
39206 ac_ext=cpp
39207 ac_cpp='$CXXCPP $CPPFLAGS'
39208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39213 /* end confdefs.h. */
39214 #include <math.h>
39215 #ifdef HAVE_IEEEFP_H
39216 #include <ieeefp.h>
39217 #endif
39220 main ()
39222 finite(0);
39224 return 0;
39226 _ACEOF
39227 if ac_fn_cxx_try_compile "$LINENO"; then :
39228 glibcxx_cv_func_finite_use=yes
39229 else
39230 glibcxx_cv_func_finite_use=no
39232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39233 ac_ext=c
39234 ac_cpp='$CPP $CPPFLAGS'
39235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
39244 $as_echo "$glibcxx_cv_func_finite_use" >&6; }
39246 if test x$glibcxx_cv_func_finite_use = x"yes"; then
39247 for ac_func in finite
39248 do :
39249 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
39250 if test "x$ac_cv_func_finite" = xyes; then :
39251 cat >>confdefs.h <<_ACEOF
39252 #define HAVE_FINITE 1
39253 _ACEOF
39256 done
39262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
39263 $as_echo_n "checking for sincos declaration... " >&6; }
39264 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
39265 if ${glibcxx_cv_func_sincos_use+:} false; then :
39266 $as_echo_n "(cached) " >&6
39267 else
39270 ac_ext=cpp
39271 ac_cpp='$CXXCPP $CPPFLAGS'
39272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39277 /* end confdefs.h. */
39278 #include <math.h>
39280 main ()
39282 sincos(0, 0, 0);
39284 return 0;
39286 _ACEOF
39287 if ac_fn_cxx_try_compile "$LINENO"; then :
39288 glibcxx_cv_func_sincos_use=yes
39289 else
39290 glibcxx_cv_func_sincos_use=no
39292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39293 ac_ext=c
39294 ac_cpp='$CPP $CPPFLAGS'
39295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
39304 $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
39306 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
39307 for ac_func in sincos
39308 do :
39309 ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
39310 if test "x$ac_cv_func_sincos" = xyes; then :
39311 cat >>confdefs.h <<_ACEOF
39312 #define HAVE_SINCOS 1
39313 _ACEOF
39316 done
39322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
39323 $as_echo_n "checking for fpclass declaration... " >&6; }
39324 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
39325 if ${glibcxx_cv_func_fpclass_use+:} false; then :
39326 $as_echo_n "(cached) " >&6
39327 else
39330 ac_ext=cpp
39331 ac_cpp='$CXXCPP $CPPFLAGS'
39332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39337 /* end confdefs.h. */
39338 #include <math.h>
39339 #ifdef HAVE_IEEEFP_H
39340 #include <ieeefp.h>
39341 #endif
39344 main ()
39346 fpclass(0);
39348 return 0;
39350 _ACEOF
39351 if ac_fn_cxx_try_compile "$LINENO"; then :
39352 glibcxx_cv_func_fpclass_use=yes
39353 else
39354 glibcxx_cv_func_fpclass_use=no
39356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39357 ac_ext=c
39358 ac_cpp='$CPP $CPPFLAGS'
39359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
39368 $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
39370 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
39371 for ac_func in fpclass
39372 do :
39373 ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
39374 if test "x$ac_cv_func_fpclass" = xyes; then :
39375 cat >>confdefs.h <<_ACEOF
39376 #define HAVE_FPCLASS 1
39377 _ACEOF
39380 done
39386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
39387 $as_echo_n "checking for qfpclass declaration... " >&6; }
39388 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
39389 if ${glibcxx_cv_func_qfpclass_use+:} false; then :
39390 $as_echo_n "(cached) " >&6
39391 else
39394 ac_ext=cpp
39395 ac_cpp='$CXXCPP $CPPFLAGS'
39396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39401 /* end confdefs.h. */
39402 #include <math.h>
39403 #ifdef HAVE_IEEEFP_H
39404 #include <ieeefp.h>
39405 #endif
39408 main ()
39410 qfpclass(0);
39412 return 0;
39414 _ACEOF
39415 if ac_fn_cxx_try_compile "$LINENO"; then :
39416 glibcxx_cv_func_qfpclass_use=yes
39417 else
39418 glibcxx_cv_func_qfpclass_use=no
39420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39421 ac_ext=c
39422 ac_cpp='$CPP $CPPFLAGS'
39423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
39432 $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
39434 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
39435 for ac_func in qfpclass
39436 do :
39437 ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
39438 if test "x$ac_cv_func_qfpclass" = xyes; then :
39439 cat >>confdefs.h <<_ACEOF
39440 #define HAVE_QFPCLASS 1
39441 _ACEOF
39444 done
39450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
39451 $as_echo_n "checking for hypot declaration... " >&6; }
39452 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
39453 if ${glibcxx_cv_func_hypot_use+:} false; then :
39454 $as_echo_n "(cached) " >&6
39455 else
39458 ac_ext=cpp
39459 ac_cpp='$CXXCPP $CPPFLAGS'
39460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39465 /* end confdefs.h. */
39466 #include <math.h>
39468 main ()
39470 hypot(0, 0);
39472 return 0;
39474 _ACEOF
39475 if ac_fn_cxx_try_compile "$LINENO"; then :
39476 glibcxx_cv_func_hypot_use=yes
39477 else
39478 glibcxx_cv_func_hypot_use=no
39480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39481 ac_ext=c
39482 ac_cpp='$CPP $CPPFLAGS'
39483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
39492 $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
39494 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
39495 for ac_func in hypot
39496 do :
39497 ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
39498 if test "x$ac_cv_func_hypot" = xyes; then :
39499 cat >>confdefs.h <<_ACEOF
39500 #define HAVE_HYPOT 1
39501 _ACEOF
39504 done
39510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
39511 $as_echo_n "checking for float trig functions... " >&6; }
39512 if ${glibcxx_cv_func_float_trig_use+:} false; then :
39513 $as_echo_n "(cached) " >&6
39514 else
39517 ac_ext=cpp
39518 ac_cpp='$CXXCPP $CPPFLAGS'
39519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39524 /* end confdefs.h. */
39525 #include <math.h>
39527 main ()
39529 acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
39531 return 0;
39533 _ACEOF
39534 if ac_fn_cxx_try_compile "$LINENO"; then :
39535 glibcxx_cv_func_float_trig_use=yes
39536 else
39537 glibcxx_cv_func_float_trig_use=no
39539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39540 ac_ext=c
39541 ac_cpp='$CPP $CPPFLAGS'
39542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
39549 $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
39550 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
39551 for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
39552 do :
39553 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39554 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39555 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39556 cat >>confdefs.h <<_ACEOF
39557 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39558 _ACEOF
39561 done
39567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
39568 $as_echo_n "checking for float round functions... " >&6; }
39569 if ${glibcxx_cv_func_float_round_use+:} false; then :
39570 $as_echo_n "(cached) " >&6
39571 else
39574 ac_ext=cpp
39575 ac_cpp='$CXXCPP $CPPFLAGS'
39576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39581 /* end confdefs.h. */
39582 #include <math.h>
39584 main ()
39586 ceilf (0); floorf (0);
39588 return 0;
39590 _ACEOF
39591 if ac_fn_cxx_try_compile "$LINENO"; then :
39592 glibcxx_cv_func_float_round_use=yes
39593 else
39594 glibcxx_cv_func_float_round_use=no
39596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39597 ac_ext=c
39598 ac_cpp='$CPP $CPPFLAGS'
39599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
39606 $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
39607 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
39608 for ac_func in ceilf floorf
39609 do :
39610 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39611 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39612 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39613 cat >>confdefs.h <<_ACEOF
39614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39615 _ACEOF
39618 done
39625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
39626 $as_echo_n "checking for expf declaration... " >&6; }
39627 if test x${glibcxx_cv_func_expf_use+set} != xset; then
39628 if ${glibcxx_cv_func_expf_use+:} false; then :
39629 $as_echo_n "(cached) " >&6
39630 else
39633 ac_ext=cpp
39634 ac_cpp='$CXXCPP $CPPFLAGS'
39635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39640 /* end confdefs.h. */
39641 #include <math.h>
39642 #ifdef HAVE_IEEEFP_H
39643 #include <ieeefp.h>
39644 #endif
39647 main ()
39649 expf(0);
39651 return 0;
39653 _ACEOF
39654 if ac_fn_cxx_try_compile "$LINENO"; then :
39655 glibcxx_cv_func_expf_use=yes
39656 else
39657 glibcxx_cv_func_expf_use=no
39659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39660 ac_ext=c
39661 ac_cpp='$CPP $CPPFLAGS'
39662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
39671 $as_echo "$glibcxx_cv_func_expf_use" >&6; }
39673 if test x$glibcxx_cv_func_expf_use = x"yes"; then
39674 for ac_func in expf
39675 do :
39676 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
39677 if test "x$ac_cv_func_expf" = xyes; then :
39678 cat >>confdefs.h <<_ACEOF
39679 #define HAVE_EXPF 1
39680 _ACEOF
39683 done
39689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
39690 $as_echo_n "checking for isnanf declaration... " >&6; }
39691 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
39692 if ${glibcxx_cv_func_isnanf_use+:} false; then :
39693 $as_echo_n "(cached) " >&6
39694 else
39697 ac_ext=cpp
39698 ac_cpp='$CXXCPP $CPPFLAGS'
39699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39704 /* end confdefs.h. */
39705 #include <math.h>
39706 #ifdef HAVE_IEEEFP_H
39707 #include <ieeefp.h>
39708 #endif
39711 main ()
39713 isnanf(0);
39715 return 0;
39717 _ACEOF
39718 if ac_fn_cxx_try_compile "$LINENO"; then :
39719 glibcxx_cv_func_isnanf_use=yes
39720 else
39721 glibcxx_cv_func_isnanf_use=no
39723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39724 ac_ext=c
39725 ac_cpp='$CPP $CPPFLAGS'
39726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
39735 $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
39737 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
39738 for ac_func in isnanf
39739 do :
39740 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
39741 if test "x$ac_cv_func_isnanf" = xyes; then :
39742 cat >>confdefs.h <<_ACEOF
39743 #define HAVE_ISNANF 1
39744 _ACEOF
39747 done
39753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
39754 $as_echo_n "checking for isinff declaration... " >&6; }
39755 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
39756 if ${glibcxx_cv_func_isinff_use+:} false; then :
39757 $as_echo_n "(cached) " >&6
39758 else
39761 ac_ext=cpp
39762 ac_cpp='$CXXCPP $CPPFLAGS'
39763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39768 /* end confdefs.h. */
39769 #include <math.h>
39770 #ifdef HAVE_IEEEFP_H
39771 #include <ieeefp.h>
39772 #endif
39775 main ()
39777 isinff(0);
39779 return 0;
39781 _ACEOF
39782 if ac_fn_cxx_try_compile "$LINENO"; then :
39783 glibcxx_cv_func_isinff_use=yes
39784 else
39785 glibcxx_cv_func_isinff_use=no
39787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39788 ac_ext=c
39789 ac_cpp='$CPP $CPPFLAGS'
39790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
39799 $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
39801 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
39802 for ac_func in isinff
39803 do :
39804 ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
39805 if test "x$ac_cv_func_isinff" = xyes; then :
39806 cat >>confdefs.h <<_ACEOF
39807 #define HAVE_ISINFF 1
39808 _ACEOF
39811 done
39817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
39818 $as_echo_n "checking for atan2f declaration... " >&6; }
39819 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
39820 if ${glibcxx_cv_func_atan2f_use+:} false; then :
39821 $as_echo_n "(cached) " >&6
39822 else
39825 ac_ext=cpp
39826 ac_cpp='$CXXCPP $CPPFLAGS'
39827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39832 /* end confdefs.h. */
39833 #include <math.h>
39835 main ()
39837 atan2f(0, 0);
39839 return 0;
39841 _ACEOF
39842 if ac_fn_cxx_try_compile "$LINENO"; then :
39843 glibcxx_cv_func_atan2f_use=yes
39844 else
39845 glibcxx_cv_func_atan2f_use=no
39847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39848 ac_ext=c
39849 ac_cpp='$CPP $CPPFLAGS'
39850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
39859 $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
39861 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
39862 for ac_func in atan2f
39863 do :
39864 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
39865 if test "x$ac_cv_func_atan2f" = xyes; then :
39866 cat >>confdefs.h <<_ACEOF
39867 #define HAVE_ATAN2F 1
39868 _ACEOF
39871 done
39877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
39878 $as_echo_n "checking for fabsf declaration... " >&6; }
39879 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
39880 if ${glibcxx_cv_func_fabsf_use+:} false; then :
39881 $as_echo_n "(cached) " >&6
39882 else
39885 ac_ext=cpp
39886 ac_cpp='$CXXCPP $CPPFLAGS'
39887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39892 /* end confdefs.h. */
39893 #include <math.h>
39894 #ifdef HAVE_IEEEFP_H
39895 #include <ieeefp.h>
39896 #endif
39899 main ()
39901 fabsf(0);
39903 return 0;
39905 _ACEOF
39906 if ac_fn_cxx_try_compile "$LINENO"; then :
39907 glibcxx_cv_func_fabsf_use=yes
39908 else
39909 glibcxx_cv_func_fabsf_use=no
39911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39912 ac_ext=c
39913 ac_cpp='$CPP $CPPFLAGS'
39914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
39923 $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
39925 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
39926 for ac_func in fabsf
39927 do :
39928 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
39929 if test "x$ac_cv_func_fabsf" = xyes; then :
39930 cat >>confdefs.h <<_ACEOF
39931 #define HAVE_FABSF 1
39932 _ACEOF
39935 done
39941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
39942 $as_echo_n "checking for fmodf declaration... " >&6; }
39943 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
39944 if ${glibcxx_cv_func_fmodf_use+:} false; then :
39945 $as_echo_n "(cached) " >&6
39946 else
39949 ac_ext=cpp
39950 ac_cpp='$CXXCPP $CPPFLAGS'
39951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39956 /* end confdefs.h. */
39957 #include <math.h>
39959 main ()
39961 fmodf(0, 0);
39963 return 0;
39965 _ACEOF
39966 if ac_fn_cxx_try_compile "$LINENO"; then :
39967 glibcxx_cv_func_fmodf_use=yes
39968 else
39969 glibcxx_cv_func_fmodf_use=no
39971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39972 ac_ext=c
39973 ac_cpp='$CPP $CPPFLAGS'
39974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
39983 $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
39985 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
39986 for ac_func in fmodf
39987 do :
39988 ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
39989 if test "x$ac_cv_func_fmodf" = xyes; then :
39990 cat >>confdefs.h <<_ACEOF
39991 #define HAVE_FMODF 1
39992 _ACEOF
39995 done
40001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
40002 $as_echo_n "checking for frexpf declaration... " >&6; }
40003 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
40004 if ${glibcxx_cv_func_frexpf_use+:} false; then :
40005 $as_echo_n "(cached) " >&6
40006 else
40009 ac_ext=cpp
40010 ac_cpp='$CXXCPP $CPPFLAGS'
40011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40016 /* end confdefs.h. */
40017 #include <math.h>
40019 main ()
40021 frexpf(0, 0);
40023 return 0;
40025 _ACEOF
40026 if ac_fn_cxx_try_compile "$LINENO"; then :
40027 glibcxx_cv_func_frexpf_use=yes
40028 else
40029 glibcxx_cv_func_frexpf_use=no
40031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40032 ac_ext=c
40033 ac_cpp='$CPP $CPPFLAGS'
40034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
40043 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
40045 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
40046 for ac_func in frexpf
40047 do :
40048 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
40049 if test "x$ac_cv_func_frexpf" = xyes; then :
40050 cat >>confdefs.h <<_ACEOF
40051 #define HAVE_FREXPF 1
40052 _ACEOF
40055 done
40061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
40062 $as_echo_n "checking for hypotf declaration... " >&6; }
40063 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
40064 if ${glibcxx_cv_func_hypotf_use+:} false; then :
40065 $as_echo_n "(cached) " >&6
40066 else
40069 ac_ext=cpp
40070 ac_cpp='$CXXCPP $CPPFLAGS'
40071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40076 /* end confdefs.h. */
40077 #include <math.h>
40079 main ()
40081 hypotf(0, 0);
40083 return 0;
40085 _ACEOF
40086 if ac_fn_cxx_try_compile "$LINENO"; then :
40087 glibcxx_cv_func_hypotf_use=yes
40088 else
40089 glibcxx_cv_func_hypotf_use=no
40091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40092 ac_ext=c
40093 ac_cpp='$CPP $CPPFLAGS'
40094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
40103 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
40105 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
40106 for ac_func in hypotf
40107 do :
40108 ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
40109 if test "x$ac_cv_func_hypotf" = xyes; then :
40110 cat >>confdefs.h <<_ACEOF
40111 #define HAVE_HYPOTF 1
40112 _ACEOF
40115 done
40121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
40122 $as_echo_n "checking for ldexpf declaration... " >&6; }
40123 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
40124 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
40125 $as_echo_n "(cached) " >&6
40126 else
40129 ac_ext=cpp
40130 ac_cpp='$CXXCPP $CPPFLAGS'
40131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40136 /* end confdefs.h. */
40137 #include <math.h>
40139 main ()
40141 ldexpf(0, 0);
40143 return 0;
40145 _ACEOF
40146 if ac_fn_cxx_try_compile "$LINENO"; then :
40147 glibcxx_cv_func_ldexpf_use=yes
40148 else
40149 glibcxx_cv_func_ldexpf_use=no
40151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40152 ac_ext=c
40153 ac_cpp='$CPP $CPPFLAGS'
40154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
40163 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
40165 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
40166 for ac_func in ldexpf
40167 do :
40168 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
40169 if test "x$ac_cv_func_ldexpf" = xyes; then :
40170 cat >>confdefs.h <<_ACEOF
40171 #define HAVE_LDEXPF 1
40172 _ACEOF
40175 done
40181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
40182 $as_echo_n "checking for logf declaration... " >&6; }
40183 if test x${glibcxx_cv_func_logf_use+set} != xset; then
40184 if ${glibcxx_cv_func_logf_use+:} false; then :
40185 $as_echo_n "(cached) " >&6
40186 else
40189 ac_ext=cpp
40190 ac_cpp='$CXXCPP $CPPFLAGS'
40191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40196 /* end confdefs.h. */
40197 #include <math.h>
40198 #ifdef HAVE_IEEEFP_H
40199 #include <ieeefp.h>
40200 #endif
40203 main ()
40205 logf(0);
40207 return 0;
40209 _ACEOF
40210 if ac_fn_cxx_try_compile "$LINENO"; then :
40211 glibcxx_cv_func_logf_use=yes
40212 else
40213 glibcxx_cv_func_logf_use=no
40215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40216 ac_ext=c
40217 ac_cpp='$CPP $CPPFLAGS'
40218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
40227 $as_echo "$glibcxx_cv_func_logf_use" >&6; }
40229 if test x$glibcxx_cv_func_logf_use = x"yes"; then
40230 for ac_func in logf
40231 do :
40232 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
40233 if test "x$ac_cv_func_logf" = xyes; then :
40234 cat >>confdefs.h <<_ACEOF
40235 #define HAVE_LOGF 1
40236 _ACEOF
40239 done
40245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
40246 $as_echo_n "checking for log10f declaration... " >&6; }
40247 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
40248 if ${glibcxx_cv_func_log10f_use+:} false; then :
40249 $as_echo_n "(cached) " >&6
40250 else
40253 ac_ext=cpp
40254 ac_cpp='$CXXCPP $CPPFLAGS'
40255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40260 /* end confdefs.h. */
40261 #include <math.h>
40262 #ifdef HAVE_IEEEFP_H
40263 #include <ieeefp.h>
40264 #endif
40267 main ()
40269 log10f(0);
40271 return 0;
40273 _ACEOF
40274 if ac_fn_cxx_try_compile "$LINENO"; then :
40275 glibcxx_cv_func_log10f_use=yes
40276 else
40277 glibcxx_cv_func_log10f_use=no
40279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40280 ac_ext=c
40281 ac_cpp='$CPP $CPPFLAGS'
40282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
40291 $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
40293 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
40294 for ac_func in log10f
40295 do :
40296 ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
40297 if test "x$ac_cv_func_log10f" = xyes; then :
40298 cat >>confdefs.h <<_ACEOF
40299 #define HAVE_LOG10F 1
40300 _ACEOF
40303 done
40309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
40310 $as_echo_n "checking for modff declaration... " >&6; }
40311 if test x${glibcxx_cv_func_modff_use+set} != xset; then
40312 if ${glibcxx_cv_func_modff_use+:} false; then :
40313 $as_echo_n "(cached) " >&6
40314 else
40317 ac_ext=cpp
40318 ac_cpp='$CXXCPP $CPPFLAGS'
40319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40324 /* end confdefs.h. */
40325 #include <math.h>
40327 main ()
40329 modff(0, 0);
40331 return 0;
40333 _ACEOF
40334 if ac_fn_cxx_try_compile "$LINENO"; then :
40335 glibcxx_cv_func_modff_use=yes
40336 else
40337 glibcxx_cv_func_modff_use=no
40339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40340 ac_ext=c
40341 ac_cpp='$CPP $CPPFLAGS'
40342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
40351 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
40353 if test x$glibcxx_cv_func_modff_use = x"yes"; then
40354 for ac_func in modff
40355 do :
40356 ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
40357 if test "x$ac_cv_func_modff" = xyes; then :
40358 cat >>confdefs.h <<_ACEOF
40359 #define HAVE_MODFF 1
40360 _ACEOF
40363 done
40369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
40370 $as_echo_n "checking for modf declaration... " >&6; }
40371 if test x${glibcxx_cv_func_modf_use+set} != xset; then
40372 if ${glibcxx_cv_func_modf_use+:} false; then :
40373 $as_echo_n "(cached) " >&6
40374 else
40377 ac_ext=cpp
40378 ac_cpp='$CXXCPP $CPPFLAGS'
40379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40384 /* end confdefs.h. */
40385 #include <math.h>
40387 main ()
40389 modf(0, 0);
40391 return 0;
40393 _ACEOF
40394 if ac_fn_cxx_try_compile "$LINENO"; then :
40395 glibcxx_cv_func_modf_use=yes
40396 else
40397 glibcxx_cv_func_modf_use=no
40399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40400 ac_ext=c
40401 ac_cpp='$CPP $CPPFLAGS'
40402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
40411 $as_echo "$glibcxx_cv_func_modf_use" >&6; }
40413 if test x$glibcxx_cv_func_modf_use = x"yes"; then
40414 for ac_func in modf
40415 do :
40416 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
40417 if test "x$ac_cv_func_modf" = xyes; then :
40418 cat >>confdefs.h <<_ACEOF
40419 #define HAVE_MODF 1
40420 _ACEOF
40423 done
40429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
40430 $as_echo_n "checking for powf declaration... " >&6; }
40431 if test x${glibcxx_cv_func_powf_use+set} != xset; then
40432 if ${glibcxx_cv_func_powf_use+:} false; then :
40433 $as_echo_n "(cached) " >&6
40434 else
40437 ac_ext=cpp
40438 ac_cpp='$CXXCPP $CPPFLAGS'
40439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40444 /* end confdefs.h. */
40445 #include <math.h>
40447 main ()
40449 powf(0, 0);
40451 return 0;
40453 _ACEOF
40454 if ac_fn_cxx_try_compile "$LINENO"; then :
40455 glibcxx_cv_func_powf_use=yes
40456 else
40457 glibcxx_cv_func_powf_use=no
40459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40460 ac_ext=c
40461 ac_cpp='$CPP $CPPFLAGS'
40462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
40471 $as_echo "$glibcxx_cv_func_powf_use" >&6; }
40473 if test x$glibcxx_cv_func_powf_use = x"yes"; then
40474 for ac_func in powf
40475 do :
40476 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
40477 if test "x$ac_cv_func_powf" = xyes; then :
40478 cat >>confdefs.h <<_ACEOF
40479 #define HAVE_POWF 1
40480 _ACEOF
40483 done
40489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
40490 $as_echo_n "checking for sqrtf declaration... " >&6; }
40491 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
40492 if ${glibcxx_cv_func_sqrtf_use+:} false; then :
40493 $as_echo_n "(cached) " >&6
40494 else
40497 ac_ext=cpp
40498 ac_cpp='$CXXCPP $CPPFLAGS'
40499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40504 /* end confdefs.h. */
40505 #include <math.h>
40506 #ifdef HAVE_IEEEFP_H
40507 #include <ieeefp.h>
40508 #endif
40511 main ()
40513 sqrtf(0);
40515 return 0;
40517 _ACEOF
40518 if ac_fn_cxx_try_compile "$LINENO"; then :
40519 glibcxx_cv_func_sqrtf_use=yes
40520 else
40521 glibcxx_cv_func_sqrtf_use=no
40523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40524 ac_ext=c
40525 ac_cpp='$CPP $CPPFLAGS'
40526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
40535 $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
40537 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
40538 for ac_func in sqrtf
40539 do :
40540 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
40541 if test "x$ac_cv_func_sqrtf" = xyes; then :
40542 cat >>confdefs.h <<_ACEOF
40543 #define HAVE_SQRTF 1
40544 _ACEOF
40547 done
40553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
40554 $as_echo_n "checking for sincosf declaration... " >&6; }
40555 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
40556 if ${glibcxx_cv_func_sincosf_use+:} false; then :
40557 $as_echo_n "(cached) " >&6
40558 else
40561 ac_ext=cpp
40562 ac_cpp='$CXXCPP $CPPFLAGS'
40563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40568 /* end confdefs.h. */
40569 #include <math.h>
40571 main ()
40573 sincosf(0, 0, 0);
40575 return 0;
40577 _ACEOF
40578 if ac_fn_cxx_try_compile "$LINENO"; then :
40579 glibcxx_cv_func_sincosf_use=yes
40580 else
40581 glibcxx_cv_func_sincosf_use=no
40583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40584 ac_ext=c
40585 ac_cpp='$CPP $CPPFLAGS'
40586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
40595 $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
40597 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
40598 for ac_func in sincosf
40599 do :
40600 ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
40601 if test "x$ac_cv_func_sincosf" = xyes; then :
40602 cat >>confdefs.h <<_ACEOF
40603 #define HAVE_SINCOSF 1
40604 _ACEOF
40607 done
40613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
40614 $as_echo_n "checking for finitef declaration... " >&6; }
40615 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
40616 if ${glibcxx_cv_func_finitef_use+:} false; then :
40617 $as_echo_n "(cached) " >&6
40618 else
40621 ac_ext=cpp
40622 ac_cpp='$CXXCPP $CPPFLAGS'
40623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40628 /* end confdefs.h. */
40629 #include <math.h>
40630 #ifdef HAVE_IEEEFP_H
40631 #include <ieeefp.h>
40632 #endif
40635 main ()
40637 finitef(0);
40639 return 0;
40641 _ACEOF
40642 if ac_fn_cxx_try_compile "$LINENO"; then :
40643 glibcxx_cv_func_finitef_use=yes
40644 else
40645 glibcxx_cv_func_finitef_use=no
40647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40648 ac_ext=c
40649 ac_cpp='$CPP $CPPFLAGS'
40650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
40659 $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
40661 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
40662 for ac_func in finitef
40663 do :
40664 ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
40665 if test "x$ac_cv_func_finitef" = xyes; then :
40666 cat >>confdefs.h <<_ACEOF
40667 #define HAVE_FINITEF 1
40668 _ACEOF
40671 done
40677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
40678 $as_echo_n "checking for long double trig functions... " >&6; }
40679 if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
40680 $as_echo_n "(cached) " >&6
40681 else
40684 ac_ext=cpp
40685 ac_cpp='$CXXCPP $CPPFLAGS'
40686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40691 /* end confdefs.h. */
40692 #include <math.h>
40694 main ()
40696 acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
40698 return 0;
40700 _ACEOF
40701 if ac_fn_cxx_try_compile "$LINENO"; then :
40702 glibcxx_cv_func_long_double_trig_use=yes
40703 else
40704 glibcxx_cv_func_long_double_trig_use=no
40706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40707 ac_ext=c
40708 ac_cpp='$CPP $CPPFLAGS'
40709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
40716 $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
40717 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
40718 for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
40719 do :
40720 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40721 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
40722 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
40723 cat >>confdefs.h <<_ACEOF
40724 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40725 _ACEOF
40728 done
40734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
40735 $as_echo_n "checking for long double round functions... " >&6; }
40736 if ${glibcxx_cv_func_long_double_round_use+:} false; then :
40737 $as_echo_n "(cached) " >&6
40738 else
40741 ac_ext=cpp
40742 ac_cpp='$CXXCPP $CPPFLAGS'
40743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40748 /* end confdefs.h. */
40749 #include <math.h>
40751 main ()
40753 ceill (0); floorl (0);
40755 return 0;
40757 _ACEOF
40758 if ac_fn_cxx_try_compile "$LINENO"; then :
40759 glibcxx_cv_func_long_double_round_use=yes
40760 else
40761 glibcxx_cv_func_long_double_round_use=no
40763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40764 ac_ext=c
40765 ac_cpp='$CPP $CPPFLAGS'
40766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
40773 $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
40774 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
40775 for ac_func in ceill floorl
40776 do :
40777 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40778 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
40779 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
40780 cat >>confdefs.h <<_ACEOF
40781 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40782 _ACEOF
40785 done
40792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
40793 $as_echo_n "checking for isnanl declaration... " >&6; }
40794 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
40795 if ${glibcxx_cv_func_isnanl_use+:} false; then :
40796 $as_echo_n "(cached) " >&6
40797 else
40800 ac_ext=cpp
40801 ac_cpp='$CXXCPP $CPPFLAGS'
40802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40807 /* end confdefs.h. */
40808 #include <math.h>
40809 #ifdef HAVE_IEEEFP_H
40810 #include <ieeefp.h>
40811 #endif
40814 main ()
40816 isnanl(0);
40818 return 0;
40820 _ACEOF
40821 if ac_fn_cxx_try_compile "$LINENO"; then :
40822 glibcxx_cv_func_isnanl_use=yes
40823 else
40824 glibcxx_cv_func_isnanl_use=no
40826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40827 ac_ext=c
40828 ac_cpp='$CPP $CPPFLAGS'
40829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
40838 $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
40840 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
40841 for ac_func in isnanl
40842 do :
40843 ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
40844 if test "x$ac_cv_func_isnanl" = xyes; then :
40845 cat >>confdefs.h <<_ACEOF
40846 #define HAVE_ISNANL 1
40847 _ACEOF
40850 done
40856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
40857 $as_echo_n "checking for isinfl declaration... " >&6; }
40858 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
40859 if ${glibcxx_cv_func_isinfl_use+:} false; then :
40860 $as_echo_n "(cached) " >&6
40861 else
40864 ac_ext=cpp
40865 ac_cpp='$CXXCPP $CPPFLAGS'
40866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40871 /* end confdefs.h. */
40872 #include <math.h>
40873 #ifdef HAVE_IEEEFP_H
40874 #include <ieeefp.h>
40875 #endif
40878 main ()
40880 isinfl(0);
40882 return 0;
40884 _ACEOF
40885 if ac_fn_cxx_try_compile "$LINENO"; then :
40886 glibcxx_cv_func_isinfl_use=yes
40887 else
40888 glibcxx_cv_func_isinfl_use=no
40890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40891 ac_ext=c
40892 ac_cpp='$CPP $CPPFLAGS'
40893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
40902 $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
40904 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
40905 for ac_func in isinfl
40906 do :
40907 ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
40908 if test "x$ac_cv_func_isinfl" = xyes; then :
40909 cat >>confdefs.h <<_ACEOF
40910 #define HAVE_ISINFL 1
40911 _ACEOF
40914 done
40920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
40921 $as_echo_n "checking for atan2l declaration... " >&6; }
40922 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
40923 if ${glibcxx_cv_func_atan2l_use+:} false; then :
40924 $as_echo_n "(cached) " >&6
40925 else
40928 ac_ext=cpp
40929 ac_cpp='$CXXCPP $CPPFLAGS'
40930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40935 /* end confdefs.h. */
40936 #include <math.h>
40938 main ()
40940 atan2l(0, 0);
40942 return 0;
40944 _ACEOF
40945 if ac_fn_cxx_try_compile "$LINENO"; then :
40946 glibcxx_cv_func_atan2l_use=yes
40947 else
40948 glibcxx_cv_func_atan2l_use=no
40950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40951 ac_ext=c
40952 ac_cpp='$CPP $CPPFLAGS'
40953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
40962 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
40964 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
40965 for ac_func in atan2l
40966 do :
40967 ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
40968 if test "x$ac_cv_func_atan2l" = xyes; then :
40969 cat >>confdefs.h <<_ACEOF
40970 #define HAVE_ATAN2L 1
40971 _ACEOF
40974 done
40980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
40981 $as_echo_n "checking for expl declaration... " >&6; }
40982 if test x${glibcxx_cv_func_expl_use+set} != xset; then
40983 if ${glibcxx_cv_func_expl_use+:} false; then :
40984 $as_echo_n "(cached) " >&6
40985 else
40988 ac_ext=cpp
40989 ac_cpp='$CXXCPP $CPPFLAGS'
40990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40995 /* end confdefs.h. */
40996 #include <math.h>
40997 #ifdef HAVE_IEEEFP_H
40998 #include <ieeefp.h>
40999 #endif
41002 main ()
41004 expl(0);
41006 return 0;
41008 _ACEOF
41009 if ac_fn_cxx_try_compile "$LINENO"; then :
41010 glibcxx_cv_func_expl_use=yes
41011 else
41012 glibcxx_cv_func_expl_use=no
41014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41015 ac_ext=c
41016 ac_cpp='$CPP $CPPFLAGS'
41017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
41026 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
41028 if test x$glibcxx_cv_func_expl_use = x"yes"; then
41029 for ac_func in expl
41030 do :
41031 ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
41032 if test "x$ac_cv_func_expl" = xyes; then :
41033 cat >>confdefs.h <<_ACEOF
41034 #define HAVE_EXPL 1
41035 _ACEOF
41038 done
41044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
41045 $as_echo_n "checking for fabsl declaration... " >&6; }
41046 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
41047 if ${glibcxx_cv_func_fabsl_use+:} false; then :
41048 $as_echo_n "(cached) " >&6
41049 else
41052 ac_ext=cpp
41053 ac_cpp='$CXXCPP $CPPFLAGS'
41054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41059 /* end confdefs.h. */
41060 #include <math.h>
41061 #ifdef HAVE_IEEEFP_H
41062 #include <ieeefp.h>
41063 #endif
41066 main ()
41068 fabsl(0);
41070 return 0;
41072 _ACEOF
41073 if ac_fn_cxx_try_compile "$LINENO"; then :
41074 glibcxx_cv_func_fabsl_use=yes
41075 else
41076 glibcxx_cv_func_fabsl_use=no
41078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41079 ac_ext=c
41080 ac_cpp='$CPP $CPPFLAGS'
41081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
41090 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
41092 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
41093 for ac_func in fabsl
41094 do :
41095 ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
41096 if test "x$ac_cv_func_fabsl" = xyes; then :
41097 cat >>confdefs.h <<_ACEOF
41098 #define HAVE_FABSL 1
41099 _ACEOF
41102 done
41108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
41109 $as_echo_n "checking for fmodl declaration... " >&6; }
41110 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
41111 if ${glibcxx_cv_func_fmodl_use+:} false; then :
41112 $as_echo_n "(cached) " >&6
41113 else
41116 ac_ext=cpp
41117 ac_cpp='$CXXCPP $CPPFLAGS'
41118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41123 /* end confdefs.h. */
41124 #include <math.h>
41126 main ()
41128 fmodl(0, 0);
41130 return 0;
41132 _ACEOF
41133 if ac_fn_cxx_try_compile "$LINENO"; then :
41134 glibcxx_cv_func_fmodl_use=yes
41135 else
41136 glibcxx_cv_func_fmodl_use=no
41138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41139 ac_ext=c
41140 ac_cpp='$CPP $CPPFLAGS'
41141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
41150 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
41152 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
41153 for ac_func in fmodl
41154 do :
41155 ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
41156 if test "x$ac_cv_func_fmodl" = xyes; then :
41157 cat >>confdefs.h <<_ACEOF
41158 #define HAVE_FMODL 1
41159 _ACEOF
41162 done
41168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
41169 $as_echo_n "checking for frexpl declaration... " >&6; }
41170 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
41171 if ${glibcxx_cv_func_frexpl_use+:} false; then :
41172 $as_echo_n "(cached) " >&6
41173 else
41176 ac_ext=cpp
41177 ac_cpp='$CXXCPP $CPPFLAGS'
41178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41183 /* end confdefs.h. */
41184 #include <math.h>
41186 main ()
41188 frexpl(0, 0);
41190 return 0;
41192 _ACEOF
41193 if ac_fn_cxx_try_compile "$LINENO"; then :
41194 glibcxx_cv_func_frexpl_use=yes
41195 else
41196 glibcxx_cv_func_frexpl_use=no
41198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41199 ac_ext=c
41200 ac_cpp='$CPP $CPPFLAGS'
41201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
41210 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
41212 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
41213 for ac_func in frexpl
41214 do :
41215 ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
41216 if test "x$ac_cv_func_frexpl" = xyes; then :
41217 cat >>confdefs.h <<_ACEOF
41218 #define HAVE_FREXPL 1
41219 _ACEOF
41222 done
41228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
41229 $as_echo_n "checking for hypotl declaration... " >&6; }
41230 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
41231 if ${glibcxx_cv_func_hypotl_use+:} false; then :
41232 $as_echo_n "(cached) " >&6
41233 else
41236 ac_ext=cpp
41237 ac_cpp='$CXXCPP $CPPFLAGS'
41238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41243 /* end confdefs.h. */
41244 #include <math.h>
41246 main ()
41248 hypotl(0, 0);
41250 return 0;
41252 _ACEOF
41253 if ac_fn_cxx_try_compile "$LINENO"; then :
41254 glibcxx_cv_func_hypotl_use=yes
41255 else
41256 glibcxx_cv_func_hypotl_use=no
41258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41259 ac_ext=c
41260 ac_cpp='$CPP $CPPFLAGS'
41261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
41270 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
41272 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
41273 for ac_func in hypotl
41274 do :
41275 ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
41276 if test "x$ac_cv_func_hypotl" = xyes; then :
41277 cat >>confdefs.h <<_ACEOF
41278 #define HAVE_HYPOTL 1
41279 _ACEOF
41282 done
41288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
41289 $as_echo_n "checking for ldexpl declaration... " >&6; }
41290 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
41291 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
41292 $as_echo_n "(cached) " >&6
41293 else
41296 ac_ext=cpp
41297 ac_cpp='$CXXCPP $CPPFLAGS'
41298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41303 /* end confdefs.h. */
41304 #include <math.h>
41306 main ()
41308 ldexpl(0, 0);
41310 return 0;
41312 _ACEOF
41313 if ac_fn_cxx_try_compile "$LINENO"; then :
41314 glibcxx_cv_func_ldexpl_use=yes
41315 else
41316 glibcxx_cv_func_ldexpl_use=no
41318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41319 ac_ext=c
41320 ac_cpp='$CPP $CPPFLAGS'
41321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
41330 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
41332 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
41333 for ac_func in ldexpl
41334 do :
41335 ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
41336 if test "x$ac_cv_func_ldexpl" = xyes; then :
41337 cat >>confdefs.h <<_ACEOF
41338 #define HAVE_LDEXPL 1
41339 _ACEOF
41342 done
41348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
41349 $as_echo_n "checking for logl declaration... " >&6; }
41350 if test x${glibcxx_cv_func_logl_use+set} != xset; then
41351 if ${glibcxx_cv_func_logl_use+:} false; then :
41352 $as_echo_n "(cached) " >&6
41353 else
41356 ac_ext=cpp
41357 ac_cpp='$CXXCPP $CPPFLAGS'
41358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41363 /* end confdefs.h. */
41364 #include <math.h>
41365 #ifdef HAVE_IEEEFP_H
41366 #include <ieeefp.h>
41367 #endif
41370 main ()
41372 logl(0);
41374 return 0;
41376 _ACEOF
41377 if ac_fn_cxx_try_compile "$LINENO"; then :
41378 glibcxx_cv_func_logl_use=yes
41379 else
41380 glibcxx_cv_func_logl_use=no
41382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41383 ac_ext=c
41384 ac_cpp='$CPP $CPPFLAGS'
41385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
41394 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
41396 if test x$glibcxx_cv_func_logl_use = x"yes"; then
41397 for ac_func in logl
41398 do :
41399 ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
41400 if test "x$ac_cv_func_logl" = xyes; then :
41401 cat >>confdefs.h <<_ACEOF
41402 #define HAVE_LOGL 1
41403 _ACEOF
41406 done
41412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
41413 $as_echo_n "checking for log10l declaration... " >&6; }
41414 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
41415 if ${glibcxx_cv_func_log10l_use+:} false; then :
41416 $as_echo_n "(cached) " >&6
41417 else
41420 ac_ext=cpp
41421 ac_cpp='$CXXCPP $CPPFLAGS'
41422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41427 /* end confdefs.h. */
41428 #include <math.h>
41429 #ifdef HAVE_IEEEFP_H
41430 #include <ieeefp.h>
41431 #endif
41434 main ()
41436 log10l(0);
41438 return 0;
41440 _ACEOF
41441 if ac_fn_cxx_try_compile "$LINENO"; then :
41442 glibcxx_cv_func_log10l_use=yes
41443 else
41444 glibcxx_cv_func_log10l_use=no
41446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41447 ac_ext=c
41448 ac_cpp='$CPP $CPPFLAGS'
41449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
41458 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
41460 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
41461 for ac_func in log10l
41462 do :
41463 ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
41464 if test "x$ac_cv_func_log10l" = xyes; then :
41465 cat >>confdefs.h <<_ACEOF
41466 #define HAVE_LOG10L 1
41467 _ACEOF
41470 done
41476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
41477 $as_echo_n "checking for modfl declaration... " >&6; }
41478 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
41479 if ${glibcxx_cv_func_modfl_use+:} false; then :
41480 $as_echo_n "(cached) " >&6
41481 else
41484 ac_ext=cpp
41485 ac_cpp='$CXXCPP $CPPFLAGS'
41486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41491 /* end confdefs.h. */
41492 #include <math.h>
41494 main ()
41496 modfl(0, 0);
41498 return 0;
41500 _ACEOF
41501 if ac_fn_cxx_try_compile "$LINENO"; then :
41502 glibcxx_cv_func_modfl_use=yes
41503 else
41504 glibcxx_cv_func_modfl_use=no
41506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41507 ac_ext=c
41508 ac_cpp='$CPP $CPPFLAGS'
41509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
41518 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
41520 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
41521 for ac_func in modfl
41522 do :
41523 ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
41524 if test "x$ac_cv_func_modfl" = xyes; then :
41525 cat >>confdefs.h <<_ACEOF
41526 #define HAVE_MODFL 1
41527 _ACEOF
41530 done
41536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
41537 $as_echo_n "checking for powl declaration... " >&6; }
41538 if test x${glibcxx_cv_func_powl_use+set} != xset; then
41539 if ${glibcxx_cv_func_powl_use+:} false; then :
41540 $as_echo_n "(cached) " >&6
41541 else
41544 ac_ext=cpp
41545 ac_cpp='$CXXCPP $CPPFLAGS'
41546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41551 /* end confdefs.h. */
41552 #include <math.h>
41554 main ()
41556 powl(0, 0);
41558 return 0;
41560 _ACEOF
41561 if ac_fn_cxx_try_compile "$LINENO"; then :
41562 glibcxx_cv_func_powl_use=yes
41563 else
41564 glibcxx_cv_func_powl_use=no
41566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41567 ac_ext=c
41568 ac_cpp='$CPP $CPPFLAGS'
41569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
41578 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
41580 if test x$glibcxx_cv_func_powl_use = x"yes"; then
41581 for ac_func in powl
41582 do :
41583 ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
41584 if test "x$ac_cv_func_powl" = xyes; then :
41585 cat >>confdefs.h <<_ACEOF
41586 #define HAVE_POWL 1
41587 _ACEOF
41590 done
41596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
41597 $as_echo_n "checking for sqrtl declaration... " >&6; }
41598 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
41599 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
41600 $as_echo_n "(cached) " >&6
41601 else
41604 ac_ext=cpp
41605 ac_cpp='$CXXCPP $CPPFLAGS'
41606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41611 /* end confdefs.h. */
41612 #include <math.h>
41613 #ifdef HAVE_IEEEFP_H
41614 #include <ieeefp.h>
41615 #endif
41618 main ()
41620 sqrtl(0);
41622 return 0;
41624 _ACEOF
41625 if ac_fn_cxx_try_compile "$LINENO"; then :
41626 glibcxx_cv_func_sqrtl_use=yes
41627 else
41628 glibcxx_cv_func_sqrtl_use=no
41630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41631 ac_ext=c
41632 ac_cpp='$CPP $CPPFLAGS'
41633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
41642 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
41644 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
41645 for ac_func in sqrtl
41646 do :
41647 ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
41648 if test "x$ac_cv_func_sqrtl" = xyes; then :
41649 cat >>confdefs.h <<_ACEOF
41650 #define HAVE_SQRTL 1
41651 _ACEOF
41654 done
41660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
41661 $as_echo_n "checking for sincosl declaration... " >&6; }
41662 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
41663 if ${glibcxx_cv_func_sincosl_use+:} false; then :
41664 $as_echo_n "(cached) " >&6
41665 else
41668 ac_ext=cpp
41669 ac_cpp='$CXXCPP $CPPFLAGS'
41670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41675 /* end confdefs.h. */
41676 #include <math.h>
41678 main ()
41680 sincosl(0, 0, 0);
41682 return 0;
41684 _ACEOF
41685 if ac_fn_cxx_try_compile "$LINENO"; then :
41686 glibcxx_cv_func_sincosl_use=yes
41687 else
41688 glibcxx_cv_func_sincosl_use=no
41690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41691 ac_ext=c
41692 ac_cpp='$CPP $CPPFLAGS'
41693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
41702 $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
41704 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
41705 for ac_func in sincosl
41706 do :
41707 ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
41708 if test "x$ac_cv_func_sincosl" = xyes; then :
41709 cat >>confdefs.h <<_ACEOF
41710 #define HAVE_SINCOSL 1
41711 _ACEOF
41714 done
41720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
41721 $as_echo_n "checking for finitel declaration... " >&6; }
41722 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
41723 if ${glibcxx_cv_func_finitel_use+:} false; then :
41724 $as_echo_n "(cached) " >&6
41725 else
41728 ac_ext=cpp
41729 ac_cpp='$CXXCPP $CPPFLAGS'
41730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41735 /* end confdefs.h. */
41736 #include <math.h>
41737 #ifdef HAVE_IEEEFP_H
41738 #include <ieeefp.h>
41739 #endif
41742 main ()
41744 finitel(0);
41746 return 0;
41748 _ACEOF
41749 if ac_fn_cxx_try_compile "$LINENO"; then :
41750 glibcxx_cv_func_finitel_use=yes
41751 else
41752 glibcxx_cv_func_finitel_use=no
41754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41755 ac_ext=c
41756 ac_cpp='$CPP $CPPFLAGS'
41757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
41766 $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
41768 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
41769 for ac_func in finitel
41770 do :
41771 ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
41772 if test "x$ac_cv_func_finitel" = xyes; then :
41773 cat >>confdefs.h <<_ACEOF
41774 #define HAVE_FINITEL 1
41775 _ACEOF
41778 done
41783 LIBS="$ac_save_LIBS"
41784 CXXFLAGS="$ac_save_CXXFLAGS"
41787 ac_test_CXXFLAGS="${CXXFLAGS+set}"
41788 ac_save_CXXFLAGS="$CXXFLAGS"
41789 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
41792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
41793 $as_echo_n "checking for at_quick_exit declaration... " >&6; }
41794 if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
41795 if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
41796 $as_echo_n "(cached) " >&6
41797 else
41800 ac_ext=cpp
41801 ac_cpp='$CXXCPP $CPPFLAGS'
41802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41807 /* end confdefs.h. */
41808 #include <stdlib.h>
41810 main ()
41812 at_quick_exit(0);
41814 return 0;
41816 _ACEOF
41817 if ac_fn_cxx_try_compile "$LINENO"; then :
41818 glibcxx_cv_func_at_quick_exit_use=yes
41819 else
41820 glibcxx_cv_func_at_quick_exit_use=no
41822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41823 ac_ext=c
41824 ac_cpp='$CPP $CPPFLAGS'
41825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
41834 $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
41835 if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
41836 for ac_func in at_quick_exit
41837 do :
41838 ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
41839 if test "x$ac_cv_func_at_quick_exit" = xyes; then :
41840 cat >>confdefs.h <<_ACEOF
41841 #define HAVE_AT_QUICK_EXIT 1
41842 _ACEOF
41845 done
41850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
41851 $as_echo_n "checking for quick_exit declaration... " >&6; }
41852 if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
41853 if ${glibcxx_cv_func_quick_exit_use+:} false; then :
41854 $as_echo_n "(cached) " >&6
41855 else
41858 ac_ext=cpp
41859 ac_cpp='$CXXCPP $CPPFLAGS'
41860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41865 /* end confdefs.h. */
41866 #include <stdlib.h>
41868 main ()
41870 quick_exit(0);
41872 return 0;
41874 _ACEOF
41875 if ac_fn_cxx_try_compile "$LINENO"; then :
41876 glibcxx_cv_func_quick_exit_use=yes
41877 else
41878 glibcxx_cv_func_quick_exit_use=no
41880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41881 ac_ext=c
41882 ac_cpp='$CPP $CPPFLAGS'
41883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
41892 $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
41893 if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
41894 for ac_func in quick_exit
41895 do :
41896 ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
41897 if test "x$ac_cv_func_quick_exit" = xyes; then :
41898 cat >>confdefs.h <<_ACEOF
41899 #define HAVE_QUICK_EXIT 1
41900 _ACEOF
41903 done
41908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
41909 $as_echo_n "checking for strtold declaration... " >&6; }
41910 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
41911 if ${glibcxx_cv_func_strtold_use+:} false; then :
41912 $as_echo_n "(cached) " >&6
41913 else
41916 ac_ext=cpp
41917 ac_cpp='$CXXCPP $CPPFLAGS'
41918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41923 /* end confdefs.h. */
41924 #include <stdlib.h>
41926 main ()
41928 strtold(0, 0);
41930 return 0;
41932 _ACEOF
41933 if ac_fn_cxx_try_compile "$LINENO"; then :
41934 glibcxx_cv_func_strtold_use=yes
41935 else
41936 glibcxx_cv_func_strtold_use=no
41938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41939 ac_ext=c
41940 ac_cpp='$CPP $CPPFLAGS'
41941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
41950 $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
41951 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
41952 for ac_func in strtold
41953 do :
41954 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
41955 if test "x$ac_cv_func_strtold" = xyes; then :
41956 cat >>confdefs.h <<_ACEOF
41957 #define HAVE_STRTOLD 1
41958 _ACEOF
41961 done
41966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
41967 $as_echo_n "checking for strtof declaration... " >&6; }
41968 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
41969 if ${glibcxx_cv_func_strtof_use+:} false; then :
41970 $as_echo_n "(cached) " >&6
41971 else
41974 ac_ext=cpp
41975 ac_cpp='$CXXCPP $CPPFLAGS'
41976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41981 /* end confdefs.h. */
41982 #include <stdlib.h>
41984 main ()
41986 strtof(0, 0);
41988 return 0;
41990 _ACEOF
41991 if ac_fn_cxx_try_compile "$LINENO"; then :
41992 glibcxx_cv_func_strtof_use=yes
41993 else
41994 glibcxx_cv_func_strtof_use=no
41996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41997 ac_ext=c
41998 ac_cpp='$CPP $CPPFLAGS'
41999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
42008 $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
42009 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
42010 for ac_func in strtof
42011 do :
42012 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
42013 if test "x$ac_cv_func_strtof" = xyes; then :
42014 cat >>confdefs.h <<_ACEOF
42015 #define HAVE_STRTOF 1
42016 _ACEOF
42019 done
42024 CXXFLAGS="$ac_save_CXXFLAGS"
42026 $as_echo "#define _GLIBCXX_USE_DEV_RANDOM 1" >>confdefs.h
42028 $as_echo "#define _GLIBCXX_USE_RANDOM_TR1 1" >>confdefs.h
42032 # Check whether --enable-tls was given.
42033 if test "${enable_tls+set}" = set; then :
42034 enableval=$enable_tls;
42035 case "$enableval" in
42036 yes|no) ;;
42037 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
42038 esac
42040 else
42041 enable_tls=yes
42045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
42046 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
42047 if ${gcc_cv_have_tls+:} false; then :
42048 $as_echo_n "(cached) " >&6
42049 else
42051 if test "$cross_compiling" = yes; then :
42052 if test x$gcc_no_link = xyes; then
42053 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
42055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42056 /* end confdefs.h. */
42057 __thread int a; int b; int main() { return a = b; }
42058 _ACEOF
42059 if ac_fn_c_try_link "$LINENO"; then :
42060 chktls_save_LDFLAGS="$LDFLAGS"
42061 case $host in
42062 *-*-linux* | -*-uclinuxfdpic*)
42063 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
42065 esac
42066 chktls_save_CFLAGS="$CFLAGS"
42067 CFLAGS="-fPIC $CFLAGS"
42068 if test x$gcc_no_link = xyes; then
42069 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
42071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42072 /* end confdefs.h. */
42073 int f() { return 0; }
42074 _ACEOF
42075 if ac_fn_c_try_link "$LINENO"; then :
42076 if test x$gcc_no_link = xyes; then
42077 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
42079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42080 /* end confdefs.h. */
42081 __thread int a; int b; int f() { return a = b; }
42082 _ACEOF
42083 if ac_fn_c_try_link "$LINENO"; then :
42084 gcc_cv_have_tls=yes
42085 else
42086 gcc_cv_have_tls=no
42088 rm -f core conftest.err conftest.$ac_objext \
42089 conftest$ac_exeext conftest.$ac_ext
42090 else
42091 gcc_cv_have_tls=yes
42093 rm -f core conftest.err conftest.$ac_objext \
42094 conftest$ac_exeext conftest.$ac_ext
42095 CFLAGS="$chktls_save_CFLAGS"
42096 LDFLAGS="$chktls_save_LDFLAGS"
42097 else
42098 gcc_cv_have_tls=no
42100 rm -f core conftest.err conftest.$ac_objext \
42101 conftest$ac_exeext conftest.$ac_ext
42104 else
42105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42106 /* end confdefs.h. */
42107 __thread int a; int b; int main() { return a = b; }
42108 _ACEOF
42109 if ac_fn_c_try_run "$LINENO"; then :
42110 chktls_save_LDFLAGS="$LDFLAGS"
42111 LDFLAGS="-static $LDFLAGS"
42112 if test x$gcc_no_link = xyes; then
42113 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
42115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42116 /* end confdefs.h. */
42117 int main() { return 0; }
42118 _ACEOF
42119 if ac_fn_c_try_link "$LINENO"; then :
42120 if test "$cross_compiling" = yes; then :
42121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
42123 as_fn_error $? "cannot run test program while cross compiling
42124 See \`config.log' for more details" "$LINENO" 5; }
42125 else
42126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42127 /* end confdefs.h. */
42128 __thread int a; int b; int main() { return a = b; }
42129 _ACEOF
42130 if ac_fn_c_try_run "$LINENO"; then :
42131 gcc_cv_have_tls=yes
42132 else
42133 gcc_cv_have_tls=no
42135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42136 conftest.$ac_objext conftest.beam conftest.$ac_ext
42139 else
42140 gcc_cv_have_tls=yes
42142 rm -f core conftest.err conftest.$ac_objext \
42143 conftest$ac_exeext conftest.$ac_ext
42144 LDFLAGS="$chktls_save_LDFLAGS"
42145 if test $gcc_cv_have_tls = yes; then
42146 chktls_save_CFLAGS="$CFLAGS"
42147 thread_CFLAGS=failed
42148 for flag in '' '-pthread' '-lpthread'; do
42149 CFLAGS="$flag $chktls_save_CFLAGS"
42150 if test x$gcc_no_link = xyes; then
42151 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
42153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42154 /* end confdefs.h. */
42155 #include <pthread.h>
42156 void *g(void *d) { return NULL; }
42158 main ()
42160 pthread_t t; pthread_create(&t,NULL,g,NULL);
42162 return 0;
42164 _ACEOF
42165 if ac_fn_c_try_link "$LINENO"; then :
42166 thread_CFLAGS="$flag"
42168 rm -f core conftest.err conftest.$ac_objext \
42169 conftest$ac_exeext conftest.$ac_ext
42170 if test "X$thread_CFLAGS" != Xfailed; then
42171 break
42173 done
42174 CFLAGS="$chktls_save_CFLAGS"
42175 if test "X$thread_CFLAGS" != Xfailed; then
42176 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
42177 if test "$cross_compiling" = yes; then :
42178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
42180 as_fn_error $? "cannot run test program while cross compiling
42181 See \`config.log' for more details" "$LINENO" 5; }
42182 else
42183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42184 /* end confdefs.h. */
42185 #include <pthread.h>
42186 __thread int a;
42187 static int *volatile a_in_other_thread;
42188 static void *
42189 thread_func (void *arg)
42191 a_in_other_thread = &a;
42192 return (void *)0;
42195 main ()
42197 pthread_t thread;
42198 void *thread_retval;
42199 int *volatile a_in_main_thread;
42200 a_in_main_thread = &a;
42201 if (pthread_create (&thread, (pthread_attr_t *)0,
42202 thread_func, (void *)0))
42203 return 0;
42204 if (pthread_join (thread, &thread_retval))
42205 return 0;
42206 return (a_in_other_thread == a_in_main_thread);
42208 return 0;
42210 _ACEOF
42211 if ac_fn_c_try_run "$LINENO"; then :
42212 gcc_cv_have_tls=yes
42213 else
42214 gcc_cv_have_tls=no
42216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42217 conftest.$ac_objext conftest.beam conftest.$ac_ext
42220 CFLAGS="$chktls_save_CFLAGS"
42223 else
42224 gcc_cv_have_tls=no
42226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42227 conftest.$ac_objext conftest.beam conftest.$ac_ext
42231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
42232 $as_echo "$gcc_cv_have_tls" >&6; }
42233 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
42235 $as_echo "#define HAVE_TLS 1" >>confdefs.h
42238 for ac_func in __cxa_thread_atexit_impl
42239 do :
42240 ac_fn_c_check_func "$LINENO" "__cxa_thread_atexit_impl" "ac_cv_func___cxa_thread_atexit_impl"
42241 if test "x$ac_cv_func___cxa_thread_atexit_impl" = xyes; then :
42242 cat >>confdefs.h <<_ACEOF
42243 #define HAVE___CXA_THREAD_ATEXIT_IMPL 1
42244 _ACEOF
42247 done
42249 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
42250 do :
42251 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42252 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
42253 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
42254 cat >>confdefs.h <<_ACEOF
42255 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42256 _ACEOF
42259 done
42261 for ac_func in timespec_get
42262 do :
42263 ac_fn_c_check_func "$LINENO" "timespec_get" "ac_cv_func_timespec_get"
42264 if test "x$ac_cv_func_timespec_get" = xyes; then :
42265 cat >>confdefs.h <<_ACEOF
42266 #define HAVE_TIMESPEC_GET 1
42267 _ACEOF
42270 done
42272 for ac_func in sockatmark
42273 do :
42274 ac_fn_c_check_func "$LINENO" "sockatmark" "ac_cv_func_sockatmark"
42275 if test "x$ac_cv_func_sockatmark" = xyes; then :
42276 cat >>confdefs.h <<_ACEOF
42277 #define HAVE_SOCKATMARK 1
42278 _ACEOF
42281 done
42283 for ac_func in uselocale
42284 do :
42285 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
42286 if test "x$ac_cv_func_uselocale" = xyes; then :
42287 cat >>confdefs.h <<_ACEOF
42288 #define HAVE_USELOCALE 1
42289 _ACEOF
42292 done
42294 for ac_func in secure_getenv
42295 do :
42296 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
42297 if test "x$ac_cv_func_secure_getenv" = xyes; then :
42298 cat >>confdefs.h <<_ACEOF
42299 #define HAVE_SECURE_GETENV 1
42300 _ACEOF
42303 done
42307 *-mingw32*)
42309 # If we're not using GNU ld, then there's no point in even trying these
42310 # tests. Check for that first. We should have already tested for gld
42311 # by now (in libtool), but require it now just to be safe...
42312 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
42313 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
42317 # The name set by libtool depends on the version of libtool. Shame on us
42318 # for depending on an impl detail, but c'est la vie. Older versions used
42319 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
42320 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
42321 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
42322 # set (hence we're using an older libtool), then set it.
42323 if test x${with_gnu_ld+set} != xset; then
42324 if test x${ac_cv_prog_gnu_ld+set} != xset; then
42325 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
42326 with_gnu_ld=no
42327 else
42328 with_gnu_ld=$ac_cv_prog_gnu_ld
42332 # Start by getting the version number. I think the libtool test already
42333 # does some of this, but throws away the result.
42334 glibcxx_ld_is_gold=no
42335 glibcxx_ld_is_mold=no
42336 if test x"$with_gnu_ld" = x"yes"; then
42337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
42338 $as_echo_n "checking for ld version... " >&6; }
42340 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
42341 glibcxx_ld_is_gold=yes
42342 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
42343 glibcxx_ld_is_mold=yes
42345 ldver=`$LD --version 2>/dev/null |
42346 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
42348 glibcxx_gnu_ld_version=`echo $ldver | \
42349 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
42350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
42351 $as_echo "$glibcxx_gnu_ld_version" >&6; }
42354 # Set --gc-sections.
42355 glibcxx_have_gc_sections=no
42356 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
42357 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
42358 glibcxx_have_gc_sections=yes
42360 else
42361 glibcxx_gcsections_min_ld=21602
42362 if test x"$with_gnu_ld" = x"yes" &&
42363 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
42364 glibcxx_have_gc_sections=yes
42367 if test "$glibcxx_have_gc_sections" = "yes"; then
42368 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
42369 # NB: This flag only works reliably after 2.16.1. Configure tests
42370 # for this are difficult, so hard wire a value that should work.
42372 ac_test_CFLAGS="${CFLAGS+set}"
42373 ac_save_CFLAGS="$CFLAGS"
42374 CFLAGS='-Wl,--gc-sections'
42376 # Check for -Wl,--gc-sections
42377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
42378 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
42379 if test x$gcc_no_link = xyes; then
42380 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
42382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42383 /* end confdefs.h. */
42384 int one(void) { return 1; }
42385 int two(void) { return 2; }
42388 main ()
42390 two();
42392 return 0;
42394 _ACEOF
42395 if ac_fn_c_try_link "$LINENO"; then :
42396 ac_gcsections=yes
42397 else
42398 ac_gcsections=no
42400 rm -f core conftest.err conftest.$ac_objext \
42401 conftest$ac_exeext conftest.$ac_ext
42402 if test "$ac_gcsections" = "yes"; then
42403 rm -f conftest.c
42404 touch conftest.c
42405 if $CC -c conftest.c; then
42406 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
42407 grep "Warning: gc-sections option ignored" > /dev/null; then
42408 ac_gcsections=no
42411 rm -f conftest.c conftest.o conftest
42413 if test "$ac_gcsections" = "yes"; then
42414 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
42416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
42417 $as_echo "$ac_gcsections" >&6; }
42419 if test "$ac_test_CFLAGS" = set; then
42420 CFLAGS="$ac_save_CFLAGS"
42421 else
42422 # this is the suspicious part
42423 CFLAGS=''
42427 # Set -z,relro.
42428 # Note this is only for shared objects.
42429 ac_ld_relro=no
42430 if test x"$with_gnu_ld" = x"yes"; then
42431 # cygwin and mingw uses PE, which has no ELF relro support,
42432 # multi target ld may confuse configure machinery
42433 case "$host" in
42434 *-*-cygwin*)
42436 *-*-mingw*)
42439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
42440 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
42441 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
42442 if test -n "$cxx_z_relo"; then
42443 OPT_LDFLAGS="-Wl,-z,relro"
42444 ac_ld_relro=yes
42446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
42447 $as_echo "$ac_ld_relro" >&6; }
42448 esac
42451 # Set linker optimization flags.
42452 if test x"$with_gnu_ld" = x"yes"; then
42453 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
42460 ac_test_CXXFLAGS="${CXXFLAGS+set}"
42461 ac_save_CXXFLAGS="$CXXFLAGS"
42462 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
42464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
42465 $as_echo_n "checking for sin in -lm... " >&6; }
42466 if ${ac_cv_lib_m_sin+:} false; then :
42467 $as_echo_n "(cached) " >&6
42468 else
42469 ac_check_lib_save_LIBS=$LIBS
42470 LIBS="-lm $LIBS"
42471 if test x$gcc_no_link = xyes; then
42472 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
42474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42475 /* end confdefs.h. */
42477 /* Override any GCC internal prototype to avoid an error.
42478 Use char because int might match the return type of a GCC
42479 builtin and then its argument prototype would still apply. */
42480 #ifdef __cplusplus
42481 extern "C"
42482 #endif
42483 char sin ();
42485 main ()
42487 return sin ();
42489 return 0;
42491 _ACEOF
42492 if ac_fn_c_try_link "$LINENO"; then :
42493 ac_cv_lib_m_sin=yes
42494 else
42495 ac_cv_lib_m_sin=no
42497 rm -f core conftest.err conftest.$ac_objext \
42498 conftest$ac_exeext conftest.$ac_ext
42499 LIBS=$ac_check_lib_save_LIBS
42501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
42502 $as_echo "$ac_cv_lib_m_sin" >&6; }
42503 if test "x$ac_cv_lib_m_sin" = xyes; then :
42504 libm="-lm"
42507 ac_save_LIBS="$LIBS"
42508 LIBS="$LIBS $libm"
42512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
42513 $as_echo_n "checking for isinf declaration... " >&6; }
42514 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
42515 if ${glibcxx_cv_func_isinf_use+:} false; then :
42516 $as_echo_n "(cached) " >&6
42517 else
42520 ac_ext=cpp
42521 ac_cpp='$CXXCPP $CPPFLAGS'
42522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42527 /* end confdefs.h. */
42528 #include <math.h>
42529 #ifdef HAVE_IEEEFP_H
42530 #include <ieeefp.h>
42531 #endif
42534 main ()
42536 isinf(0);
42538 return 0;
42540 _ACEOF
42541 if ac_fn_cxx_try_compile "$LINENO"; then :
42542 glibcxx_cv_func_isinf_use=yes
42543 else
42544 glibcxx_cv_func_isinf_use=no
42546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42547 ac_ext=c
42548 ac_cpp='$CPP $CPPFLAGS'
42549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
42558 $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
42560 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
42561 for ac_func in isinf
42562 do :
42563 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
42564 if test "x$ac_cv_func_isinf" = xyes; then :
42565 cat >>confdefs.h <<_ACEOF
42566 #define HAVE_ISINF 1
42567 _ACEOF
42570 done
42576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
42577 $as_echo_n "checking for isnan declaration... " >&6; }
42578 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
42579 if ${glibcxx_cv_func_isnan_use+:} false; then :
42580 $as_echo_n "(cached) " >&6
42581 else
42584 ac_ext=cpp
42585 ac_cpp='$CXXCPP $CPPFLAGS'
42586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42591 /* end confdefs.h. */
42592 #include <math.h>
42593 #ifdef HAVE_IEEEFP_H
42594 #include <ieeefp.h>
42595 #endif
42598 main ()
42600 isnan(0);
42602 return 0;
42604 _ACEOF
42605 if ac_fn_cxx_try_compile "$LINENO"; then :
42606 glibcxx_cv_func_isnan_use=yes
42607 else
42608 glibcxx_cv_func_isnan_use=no
42610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42611 ac_ext=c
42612 ac_cpp='$CPP $CPPFLAGS'
42613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
42622 $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
42624 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
42625 for ac_func in isnan
42626 do :
42627 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
42628 if test "x$ac_cv_func_isnan" = xyes; then :
42629 cat >>confdefs.h <<_ACEOF
42630 #define HAVE_ISNAN 1
42631 _ACEOF
42634 done
42640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
42641 $as_echo_n "checking for finite declaration... " >&6; }
42642 if test x${glibcxx_cv_func_finite_use+set} != xset; then
42643 if ${glibcxx_cv_func_finite_use+:} false; then :
42644 $as_echo_n "(cached) " >&6
42645 else
42648 ac_ext=cpp
42649 ac_cpp='$CXXCPP $CPPFLAGS'
42650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42655 /* end confdefs.h. */
42656 #include <math.h>
42657 #ifdef HAVE_IEEEFP_H
42658 #include <ieeefp.h>
42659 #endif
42662 main ()
42664 finite(0);
42666 return 0;
42668 _ACEOF
42669 if ac_fn_cxx_try_compile "$LINENO"; then :
42670 glibcxx_cv_func_finite_use=yes
42671 else
42672 glibcxx_cv_func_finite_use=no
42674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42675 ac_ext=c
42676 ac_cpp='$CPP $CPPFLAGS'
42677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
42686 $as_echo "$glibcxx_cv_func_finite_use" >&6; }
42688 if test x$glibcxx_cv_func_finite_use = x"yes"; then
42689 for ac_func in finite
42690 do :
42691 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
42692 if test "x$ac_cv_func_finite" = xyes; then :
42693 cat >>confdefs.h <<_ACEOF
42694 #define HAVE_FINITE 1
42695 _ACEOF
42698 done
42704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
42705 $as_echo_n "checking for sincos declaration... " >&6; }
42706 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
42707 if ${glibcxx_cv_func_sincos_use+:} false; then :
42708 $as_echo_n "(cached) " >&6
42709 else
42712 ac_ext=cpp
42713 ac_cpp='$CXXCPP $CPPFLAGS'
42714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42719 /* end confdefs.h. */
42720 #include <math.h>
42722 main ()
42724 sincos(0, 0, 0);
42726 return 0;
42728 _ACEOF
42729 if ac_fn_cxx_try_compile "$LINENO"; then :
42730 glibcxx_cv_func_sincos_use=yes
42731 else
42732 glibcxx_cv_func_sincos_use=no
42734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42735 ac_ext=c
42736 ac_cpp='$CPP $CPPFLAGS'
42737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
42746 $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
42748 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
42749 for ac_func in sincos
42750 do :
42751 ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
42752 if test "x$ac_cv_func_sincos" = xyes; then :
42753 cat >>confdefs.h <<_ACEOF
42754 #define HAVE_SINCOS 1
42755 _ACEOF
42758 done
42764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
42765 $as_echo_n "checking for fpclass declaration... " >&6; }
42766 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
42767 if ${glibcxx_cv_func_fpclass_use+:} false; then :
42768 $as_echo_n "(cached) " >&6
42769 else
42772 ac_ext=cpp
42773 ac_cpp='$CXXCPP $CPPFLAGS'
42774 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42775 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42776 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42779 /* end confdefs.h. */
42780 #include <math.h>
42781 #ifdef HAVE_IEEEFP_H
42782 #include <ieeefp.h>
42783 #endif
42786 main ()
42788 fpclass(0);
42790 return 0;
42792 _ACEOF
42793 if ac_fn_cxx_try_compile "$LINENO"; then :
42794 glibcxx_cv_func_fpclass_use=yes
42795 else
42796 glibcxx_cv_func_fpclass_use=no
42798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42799 ac_ext=c
42800 ac_cpp='$CPP $CPPFLAGS'
42801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
42810 $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
42812 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
42813 for ac_func in fpclass
42814 do :
42815 ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
42816 if test "x$ac_cv_func_fpclass" = xyes; then :
42817 cat >>confdefs.h <<_ACEOF
42818 #define HAVE_FPCLASS 1
42819 _ACEOF
42822 done
42828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
42829 $as_echo_n "checking for qfpclass declaration... " >&6; }
42830 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
42831 if ${glibcxx_cv_func_qfpclass_use+:} false; then :
42832 $as_echo_n "(cached) " >&6
42833 else
42836 ac_ext=cpp
42837 ac_cpp='$CXXCPP $CPPFLAGS'
42838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42843 /* end confdefs.h. */
42844 #include <math.h>
42845 #ifdef HAVE_IEEEFP_H
42846 #include <ieeefp.h>
42847 #endif
42850 main ()
42852 qfpclass(0);
42854 return 0;
42856 _ACEOF
42857 if ac_fn_cxx_try_compile "$LINENO"; then :
42858 glibcxx_cv_func_qfpclass_use=yes
42859 else
42860 glibcxx_cv_func_qfpclass_use=no
42862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42863 ac_ext=c
42864 ac_cpp='$CPP $CPPFLAGS'
42865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
42874 $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
42876 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
42877 for ac_func in qfpclass
42878 do :
42879 ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
42880 if test "x$ac_cv_func_qfpclass" = xyes; then :
42881 cat >>confdefs.h <<_ACEOF
42882 #define HAVE_QFPCLASS 1
42883 _ACEOF
42886 done
42892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
42893 $as_echo_n "checking for hypot declaration... " >&6; }
42894 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
42895 if ${glibcxx_cv_func_hypot_use+:} false; then :
42896 $as_echo_n "(cached) " >&6
42897 else
42900 ac_ext=cpp
42901 ac_cpp='$CXXCPP $CPPFLAGS'
42902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42907 /* end confdefs.h. */
42908 #include <math.h>
42910 main ()
42912 hypot(0, 0);
42914 return 0;
42916 _ACEOF
42917 if ac_fn_cxx_try_compile "$LINENO"; then :
42918 glibcxx_cv_func_hypot_use=yes
42919 else
42920 glibcxx_cv_func_hypot_use=no
42922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42923 ac_ext=c
42924 ac_cpp='$CPP $CPPFLAGS'
42925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
42934 $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
42936 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
42937 for ac_func in hypot
42938 do :
42939 ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
42940 if test "x$ac_cv_func_hypot" = xyes; then :
42941 cat >>confdefs.h <<_ACEOF
42942 #define HAVE_HYPOT 1
42943 _ACEOF
42946 done
42952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
42953 $as_echo_n "checking for float trig functions... " >&6; }
42954 if ${glibcxx_cv_func_float_trig_use+:} false; then :
42955 $as_echo_n "(cached) " >&6
42956 else
42959 ac_ext=cpp
42960 ac_cpp='$CXXCPP $CPPFLAGS'
42961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42966 /* end confdefs.h. */
42967 #include <math.h>
42969 main ()
42971 acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
42973 return 0;
42975 _ACEOF
42976 if ac_fn_cxx_try_compile "$LINENO"; then :
42977 glibcxx_cv_func_float_trig_use=yes
42978 else
42979 glibcxx_cv_func_float_trig_use=no
42981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42982 ac_ext=c
42983 ac_cpp='$CPP $CPPFLAGS'
42984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
42991 $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
42992 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
42993 for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
42994 do :
42995 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42996 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
42997 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
42998 cat >>confdefs.h <<_ACEOF
42999 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43000 _ACEOF
43003 done
43009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
43010 $as_echo_n "checking for float round functions... " >&6; }
43011 if ${glibcxx_cv_func_float_round_use+:} false; then :
43012 $as_echo_n "(cached) " >&6
43013 else
43016 ac_ext=cpp
43017 ac_cpp='$CXXCPP $CPPFLAGS'
43018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43023 /* end confdefs.h. */
43024 #include <math.h>
43026 main ()
43028 ceilf (0); floorf (0);
43030 return 0;
43032 _ACEOF
43033 if ac_fn_cxx_try_compile "$LINENO"; then :
43034 glibcxx_cv_func_float_round_use=yes
43035 else
43036 glibcxx_cv_func_float_round_use=no
43038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43039 ac_ext=c
43040 ac_cpp='$CPP $CPPFLAGS'
43041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
43048 $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
43049 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
43050 for ac_func in ceilf floorf
43051 do :
43052 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43053 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
43054 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
43055 cat >>confdefs.h <<_ACEOF
43056 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43057 _ACEOF
43060 done
43067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
43068 $as_echo_n "checking for expf declaration... " >&6; }
43069 if test x${glibcxx_cv_func_expf_use+set} != xset; then
43070 if ${glibcxx_cv_func_expf_use+:} false; then :
43071 $as_echo_n "(cached) " >&6
43072 else
43075 ac_ext=cpp
43076 ac_cpp='$CXXCPP $CPPFLAGS'
43077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43082 /* end confdefs.h. */
43083 #include <math.h>
43084 #ifdef HAVE_IEEEFP_H
43085 #include <ieeefp.h>
43086 #endif
43089 main ()
43091 expf(0);
43093 return 0;
43095 _ACEOF
43096 if ac_fn_cxx_try_compile "$LINENO"; then :
43097 glibcxx_cv_func_expf_use=yes
43098 else
43099 glibcxx_cv_func_expf_use=no
43101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43102 ac_ext=c
43103 ac_cpp='$CPP $CPPFLAGS'
43104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
43113 $as_echo "$glibcxx_cv_func_expf_use" >&6; }
43115 if test x$glibcxx_cv_func_expf_use = x"yes"; then
43116 for ac_func in expf
43117 do :
43118 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
43119 if test "x$ac_cv_func_expf" = xyes; then :
43120 cat >>confdefs.h <<_ACEOF
43121 #define HAVE_EXPF 1
43122 _ACEOF
43125 done
43131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
43132 $as_echo_n "checking for isnanf declaration... " >&6; }
43133 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
43134 if ${glibcxx_cv_func_isnanf_use+:} false; then :
43135 $as_echo_n "(cached) " >&6
43136 else
43139 ac_ext=cpp
43140 ac_cpp='$CXXCPP $CPPFLAGS'
43141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43146 /* end confdefs.h. */
43147 #include <math.h>
43148 #ifdef HAVE_IEEEFP_H
43149 #include <ieeefp.h>
43150 #endif
43153 main ()
43155 isnanf(0);
43157 return 0;
43159 _ACEOF
43160 if ac_fn_cxx_try_compile "$LINENO"; then :
43161 glibcxx_cv_func_isnanf_use=yes
43162 else
43163 glibcxx_cv_func_isnanf_use=no
43165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43166 ac_ext=c
43167 ac_cpp='$CPP $CPPFLAGS'
43168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
43177 $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
43179 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
43180 for ac_func in isnanf
43181 do :
43182 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
43183 if test "x$ac_cv_func_isnanf" = xyes; then :
43184 cat >>confdefs.h <<_ACEOF
43185 #define HAVE_ISNANF 1
43186 _ACEOF
43189 done
43195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
43196 $as_echo_n "checking for isinff declaration... " >&6; }
43197 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
43198 if ${glibcxx_cv_func_isinff_use+:} false; then :
43199 $as_echo_n "(cached) " >&6
43200 else
43203 ac_ext=cpp
43204 ac_cpp='$CXXCPP $CPPFLAGS'
43205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43210 /* end confdefs.h. */
43211 #include <math.h>
43212 #ifdef HAVE_IEEEFP_H
43213 #include <ieeefp.h>
43214 #endif
43217 main ()
43219 isinff(0);
43221 return 0;
43223 _ACEOF
43224 if ac_fn_cxx_try_compile "$LINENO"; then :
43225 glibcxx_cv_func_isinff_use=yes
43226 else
43227 glibcxx_cv_func_isinff_use=no
43229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43230 ac_ext=c
43231 ac_cpp='$CPP $CPPFLAGS'
43232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
43241 $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
43243 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
43244 for ac_func in isinff
43245 do :
43246 ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
43247 if test "x$ac_cv_func_isinff" = xyes; then :
43248 cat >>confdefs.h <<_ACEOF
43249 #define HAVE_ISINFF 1
43250 _ACEOF
43253 done
43259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
43260 $as_echo_n "checking for atan2f declaration... " >&6; }
43261 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
43262 if ${glibcxx_cv_func_atan2f_use+:} false; then :
43263 $as_echo_n "(cached) " >&6
43264 else
43267 ac_ext=cpp
43268 ac_cpp='$CXXCPP $CPPFLAGS'
43269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43274 /* end confdefs.h. */
43275 #include <math.h>
43277 main ()
43279 atan2f(0, 0);
43281 return 0;
43283 _ACEOF
43284 if ac_fn_cxx_try_compile "$LINENO"; then :
43285 glibcxx_cv_func_atan2f_use=yes
43286 else
43287 glibcxx_cv_func_atan2f_use=no
43289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43290 ac_ext=c
43291 ac_cpp='$CPP $CPPFLAGS'
43292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
43301 $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
43303 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
43304 for ac_func in atan2f
43305 do :
43306 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
43307 if test "x$ac_cv_func_atan2f" = xyes; then :
43308 cat >>confdefs.h <<_ACEOF
43309 #define HAVE_ATAN2F 1
43310 _ACEOF
43313 done
43319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
43320 $as_echo_n "checking for fabsf declaration... " >&6; }
43321 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
43322 if ${glibcxx_cv_func_fabsf_use+:} false; then :
43323 $as_echo_n "(cached) " >&6
43324 else
43327 ac_ext=cpp
43328 ac_cpp='$CXXCPP $CPPFLAGS'
43329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43334 /* end confdefs.h. */
43335 #include <math.h>
43336 #ifdef HAVE_IEEEFP_H
43337 #include <ieeefp.h>
43338 #endif
43341 main ()
43343 fabsf(0);
43345 return 0;
43347 _ACEOF
43348 if ac_fn_cxx_try_compile "$LINENO"; then :
43349 glibcxx_cv_func_fabsf_use=yes
43350 else
43351 glibcxx_cv_func_fabsf_use=no
43353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43354 ac_ext=c
43355 ac_cpp='$CPP $CPPFLAGS'
43356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
43365 $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
43367 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
43368 for ac_func in fabsf
43369 do :
43370 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
43371 if test "x$ac_cv_func_fabsf" = xyes; then :
43372 cat >>confdefs.h <<_ACEOF
43373 #define HAVE_FABSF 1
43374 _ACEOF
43377 done
43383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
43384 $as_echo_n "checking for fmodf declaration... " >&6; }
43385 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
43386 if ${glibcxx_cv_func_fmodf_use+:} false; then :
43387 $as_echo_n "(cached) " >&6
43388 else
43391 ac_ext=cpp
43392 ac_cpp='$CXXCPP $CPPFLAGS'
43393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43398 /* end confdefs.h. */
43399 #include <math.h>
43401 main ()
43403 fmodf(0, 0);
43405 return 0;
43407 _ACEOF
43408 if ac_fn_cxx_try_compile "$LINENO"; then :
43409 glibcxx_cv_func_fmodf_use=yes
43410 else
43411 glibcxx_cv_func_fmodf_use=no
43413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43414 ac_ext=c
43415 ac_cpp='$CPP $CPPFLAGS'
43416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
43425 $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
43427 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
43428 for ac_func in fmodf
43429 do :
43430 ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
43431 if test "x$ac_cv_func_fmodf" = xyes; then :
43432 cat >>confdefs.h <<_ACEOF
43433 #define HAVE_FMODF 1
43434 _ACEOF
43437 done
43443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
43444 $as_echo_n "checking for frexpf declaration... " >&6; }
43445 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
43446 if ${glibcxx_cv_func_frexpf_use+:} false; then :
43447 $as_echo_n "(cached) " >&6
43448 else
43451 ac_ext=cpp
43452 ac_cpp='$CXXCPP $CPPFLAGS'
43453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43458 /* end confdefs.h. */
43459 #include <math.h>
43461 main ()
43463 frexpf(0, 0);
43465 return 0;
43467 _ACEOF
43468 if ac_fn_cxx_try_compile "$LINENO"; then :
43469 glibcxx_cv_func_frexpf_use=yes
43470 else
43471 glibcxx_cv_func_frexpf_use=no
43473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43474 ac_ext=c
43475 ac_cpp='$CPP $CPPFLAGS'
43476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
43485 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
43487 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
43488 for ac_func in frexpf
43489 do :
43490 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
43491 if test "x$ac_cv_func_frexpf" = xyes; then :
43492 cat >>confdefs.h <<_ACEOF
43493 #define HAVE_FREXPF 1
43494 _ACEOF
43497 done
43503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
43504 $as_echo_n "checking for hypotf declaration... " >&6; }
43505 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
43506 if ${glibcxx_cv_func_hypotf_use+:} false; then :
43507 $as_echo_n "(cached) " >&6
43508 else
43511 ac_ext=cpp
43512 ac_cpp='$CXXCPP $CPPFLAGS'
43513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43518 /* end confdefs.h. */
43519 #include <math.h>
43521 main ()
43523 hypotf(0, 0);
43525 return 0;
43527 _ACEOF
43528 if ac_fn_cxx_try_compile "$LINENO"; then :
43529 glibcxx_cv_func_hypotf_use=yes
43530 else
43531 glibcxx_cv_func_hypotf_use=no
43533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43534 ac_ext=c
43535 ac_cpp='$CPP $CPPFLAGS'
43536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
43545 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
43547 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
43548 for ac_func in hypotf
43549 do :
43550 ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
43551 if test "x$ac_cv_func_hypotf" = xyes; then :
43552 cat >>confdefs.h <<_ACEOF
43553 #define HAVE_HYPOTF 1
43554 _ACEOF
43557 done
43563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
43564 $as_echo_n "checking for ldexpf declaration... " >&6; }
43565 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
43566 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
43567 $as_echo_n "(cached) " >&6
43568 else
43571 ac_ext=cpp
43572 ac_cpp='$CXXCPP $CPPFLAGS'
43573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43578 /* end confdefs.h. */
43579 #include <math.h>
43581 main ()
43583 ldexpf(0, 0);
43585 return 0;
43587 _ACEOF
43588 if ac_fn_cxx_try_compile "$LINENO"; then :
43589 glibcxx_cv_func_ldexpf_use=yes
43590 else
43591 glibcxx_cv_func_ldexpf_use=no
43593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43594 ac_ext=c
43595 ac_cpp='$CPP $CPPFLAGS'
43596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
43605 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
43607 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
43608 for ac_func in ldexpf
43609 do :
43610 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
43611 if test "x$ac_cv_func_ldexpf" = xyes; then :
43612 cat >>confdefs.h <<_ACEOF
43613 #define HAVE_LDEXPF 1
43614 _ACEOF
43617 done
43623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
43624 $as_echo_n "checking for logf declaration... " >&6; }
43625 if test x${glibcxx_cv_func_logf_use+set} != xset; then
43626 if ${glibcxx_cv_func_logf_use+:} false; then :
43627 $as_echo_n "(cached) " >&6
43628 else
43631 ac_ext=cpp
43632 ac_cpp='$CXXCPP $CPPFLAGS'
43633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43638 /* end confdefs.h. */
43639 #include <math.h>
43640 #ifdef HAVE_IEEEFP_H
43641 #include <ieeefp.h>
43642 #endif
43645 main ()
43647 logf(0);
43649 return 0;
43651 _ACEOF
43652 if ac_fn_cxx_try_compile "$LINENO"; then :
43653 glibcxx_cv_func_logf_use=yes
43654 else
43655 glibcxx_cv_func_logf_use=no
43657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43658 ac_ext=c
43659 ac_cpp='$CPP $CPPFLAGS'
43660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
43669 $as_echo "$glibcxx_cv_func_logf_use" >&6; }
43671 if test x$glibcxx_cv_func_logf_use = x"yes"; then
43672 for ac_func in logf
43673 do :
43674 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
43675 if test "x$ac_cv_func_logf" = xyes; then :
43676 cat >>confdefs.h <<_ACEOF
43677 #define HAVE_LOGF 1
43678 _ACEOF
43681 done
43687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
43688 $as_echo_n "checking for log10f declaration... " >&6; }
43689 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
43690 if ${glibcxx_cv_func_log10f_use+:} false; then :
43691 $as_echo_n "(cached) " >&6
43692 else
43695 ac_ext=cpp
43696 ac_cpp='$CXXCPP $CPPFLAGS'
43697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43702 /* end confdefs.h. */
43703 #include <math.h>
43704 #ifdef HAVE_IEEEFP_H
43705 #include <ieeefp.h>
43706 #endif
43709 main ()
43711 log10f(0);
43713 return 0;
43715 _ACEOF
43716 if ac_fn_cxx_try_compile "$LINENO"; then :
43717 glibcxx_cv_func_log10f_use=yes
43718 else
43719 glibcxx_cv_func_log10f_use=no
43721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43722 ac_ext=c
43723 ac_cpp='$CPP $CPPFLAGS'
43724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
43733 $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
43735 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
43736 for ac_func in log10f
43737 do :
43738 ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
43739 if test "x$ac_cv_func_log10f" = xyes; then :
43740 cat >>confdefs.h <<_ACEOF
43741 #define HAVE_LOG10F 1
43742 _ACEOF
43745 done
43751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
43752 $as_echo_n "checking for modff declaration... " >&6; }
43753 if test x${glibcxx_cv_func_modff_use+set} != xset; then
43754 if ${glibcxx_cv_func_modff_use+:} false; then :
43755 $as_echo_n "(cached) " >&6
43756 else
43759 ac_ext=cpp
43760 ac_cpp='$CXXCPP $CPPFLAGS'
43761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43766 /* end confdefs.h. */
43767 #include <math.h>
43769 main ()
43771 modff(0, 0);
43773 return 0;
43775 _ACEOF
43776 if ac_fn_cxx_try_compile "$LINENO"; then :
43777 glibcxx_cv_func_modff_use=yes
43778 else
43779 glibcxx_cv_func_modff_use=no
43781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43782 ac_ext=c
43783 ac_cpp='$CPP $CPPFLAGS'
43784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
43793 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
43795 if test x$glibcxx_cv_func_modff_use = x"yes"; then
43796 for ac_func in modff
43797 do :
43798 ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
43799 if test "x$ac_cv_func_modff" = xyes; then :
43800 cat >>confdefs.h <<_ACEOF
43801 #define HAVE_MODFF 1
43802 _ACEOF
43805 done
43811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
43812 $as_echo_n "checking for modf declaration... " >&6; }
43813 if test x${glibcxx_cv_func_modf_use+set} != xset; then
43814 if ${glibcxx_cv_func_modf_use+:} false; then :
43815 $as_echo_n "(cached) " >&6
43816 else
43819 ac_ext=cpp
43820 ac_cpp='$CXXCPP $CPPFLAGS'
43821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43826 /* end confdefs.h. */
43827 #include <math.h>
43829 main ()
43831 modf(0, 0);
43833 return 0;
43835 _ACEOF
43836 if ac_fn_cxx_try_compile "$LINENO"; then :
43837 glibcxx_cv_func_modf_use=yes
43838 else
43839 glibcxx_cv_func_modf_use=no
43841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43842 ac_ext=c
43843 ac_cpp='$CPP $CPPFLAGS'
43844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
43853 $as_echo "$glibcxx_cv_func_modf_use" >&6; }
43855 if test x$glibcxx_cv_func_modf_use = x"yes"; then
43856 for ac_func in modf
43857 do :
43858 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
43859 if test "x$ac_cv_func_modf" = xyes; then :
43860 cat >>confdefs.h <<_ACEOF
43861 #define HAVE_MODF 1
43862 _ACEOF
43865 done
43871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
43872 $as_echo_n "checking for powf declaration... " >&6; }
43873 if test x${glibcxx_cv_func_powf_use+set} != xset; then
43874 if ${glibcxx_cv_func_powf_use+:} false; then :
43875 $as_echo_n "(cached) " >&6
43876 else
43879 ac_ext=cpp
43880 ac_cpp='$CXXCPP $CPPFLAGS'
43881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43886 /* end confdefs.h. */
43887 #include <math.h>
43889 main ()
43891 powf(0, 0);
43893 return 0;
43895 _ACEOF
43896 if ac_fn_cxx_try_compile "$LINENO"; then :
43897 glibcxx_cv_func_powf_use=yes
43898 else
43899 glibcxx_cv_func_powf_use=no
43901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43902 ac_ext=c
43903 ac_cpp='$CPP $CPPFLAGS'
43904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
43913 $as_echo "$glibcxx_cv_func_powf_use" >&6; }
43915 if test x$glibcxx_cv_func_powf_use = x"yes"; then
43916 for ac_func in powf
43917 do :
43918 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
43919 if test "x$ac_cv_func_powf" = xyes; then :
43920 cat >>confdefs.h <<_ACEOF
43921 #define HAVE_POWF 1
43922 _ACEOF
43925 done
43931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
43932 $as_echo_n "checking for sqrtf declaration... " >&6; }
43933 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
43934 if ${glibcxx_cv_func_sqrtf_use+:} false; then :
43935 $as_echo_n "(cached) " >&6
43936 else
43939 ac_ext=cpp
43940 ac_cpp='$CXXCPP $CPPFLAGS'
43941 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43942 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43943 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43946 /* end confdefs.h. */
43947 #include <math.h>
43948 #ifdef HAVE_IEEEFP_H
43949 #include <ieeefp.h>
43950 #endif
43953 main ()
43955 sqrtf(0);
43957 return 0;
43959 _ACEOF
43960 if ac_fn_cxx_try_compile "$LINENO"; then :
43961 glibcxx_cv_func_sqrtf_use=yes
43962 else
43963 glibcxx_cv_func_sqrtf_use=no
43965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43966 ac_ext=c
43967 ac_cpp='$CPP $CPPFLAGS'
43968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
43977 $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
43979 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
43980 for ac_func in sqrtf
43981 do :
43982 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
43983 if test "x$ac_cv_func_sqrtf" = xyes; then :
43984 cat >>confdefs.h <<_ACEOF
43985 #define HAVE_SQRTF 1
43986 _ACEOF
43989 done
43995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
43996 $as_echo_n "checking for sincosf declaration... " >&6; }
43997 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
43998 if ${glibcxx_cv_func_sincosf_use+:} false; then :
43999 $as_echo_n "(cached) " >&6
44000 else
44003 ac_ext=cpp
44004 ac_cpp='$CXXCPP $CPPFLAGS'
44005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44010 /* end confdefs.h. */
44011 #include <math.h>
44013 main ()
44015 sincosf(0, 0, 0);
44017 return 0;
44019 _ACEOF
44020 if ac_fn_cxx_try_compile "$LINENO"; then :
44021 glibcxx_cv_func_sincosf_use=yes
44022 else
44023 glibcxx_cv_func_sincosf_use=no
44025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44026 ac_ext=c
44027 ac_cpp='$CPP $CPPFLAGS'
44028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
44037 $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
44039 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
44040 for ac_func in sincosf
44041 do :
44042 ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
44043 if test "x$ac_cv_func_sincosf" = xyes; then :
44044 cat >>confdefs.h <<_ACEOF
44045 #define HAVE_SINCOSF 1
44046 _ACEOF
44049 done
44055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
44056 $as_echo_n "checking for finitef declaration... " >&6; }
44057 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
44058 if ${glibcxx_cv_func_finitef_use+:} false; then :
44059 $as_echo_n "(cached) " >&6
44060 else
44063 ac_ext=cpp
44064 ac_cpp='$CXXCPP $CPPFLAGS'
44065 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44066 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44067 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44070 /* end confdefs.h. */
44071 #include <math.h>
44072 #ifdef HAVE_IEEEFP_H
44073 #include <ieeefp.h>
44074 #endif
44077 main ()
44079 finitef(0);
44081 return 0;
44083 _ACEOF
44084 if ac_fn_cxx_try_compile "$LINENO"; then :
44085 glibcxx_cv_func_finitef_use=yes
44086 else
44087 glibcxx_cv_func_finitef_use=no
44089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44090 ac_ext=c
44091 ac_cpp='$CPP $CPPFLAGS'
44092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
44101 $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
44103 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
44104 for ac_func in finitef
44105 do :
44106 ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
44107 if test "x$ac_cv_func_finitef" = xyes; then :
44108 cat >>confdefs.h <<_ACEOF
44109 #define HAVE_FINITEF 1
44110 _ACEOF
44113 done
44119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
44120 $as_echo_n "checking for long double trig functions... " >&6; }
44121 if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
44122 $as_echo_n "(cached) " >&6
44123 else
44126 ac_ext=cpp
44127 ac_cpp='$CXXCPP $CPPFLAGS'
44128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44133 /* end confdefs.h. */
44134 #include <math.h>
44136 main ()
44138 acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
44140 return 0;
44142 _ACEOF
44143 if ac_fn_cxx_try_compile "$LINENO"; then :
44144 glibcxx_cv_func_long_double_trig_use=yes
44145 else
44146 glibcxx_cv_func_long_double_trig_use=no
44148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44149 ac_ext=c
44150 ac_cpp='$CPP $CPPFLAGS'
44151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
44158 $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
44159 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
44160 for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
44161 do :
44162 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44163 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
44164 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
44165 cat >>confdefs.h <<_ACEOF
44166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44167 _ACEOF
44170 done
44176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
44177 $as_echo_n "checking for long double round functions... " >&6; }
44178 if ${glibcxx_cv_func_long_double_round_use+:} false; then :
44179 $as_echo_n "(cached) " >&6
44180 else
44183 ac_ext=cpp
44184 ac_cpp='$CXXCPP $CPPFLAGS'
44185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44190 /* end confdefs.h. */
44191 #include <math.h>
44193 main ()
44195 ceill (0); floorl (0);
44197 return 0;
44199 _ACEOF
44200 if ac_fn_cxx_try_compile "$LINENO"; then :
44201 glibcxx_cv_func_long_double_round_use=yes
44202 else
44203 glibcxx_cv_func_long_double_round_use=no
44205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44206 ac_ext=c
44207 ac_cpp='$CPP $CPPFLAGS'
44208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
44215 $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
44216 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
44217 for ac_func in ceill floorl
44218 do :
44219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44220 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
44221 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
44222 cat >>confdefs.h <<_ACEOF
44223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44224 _ACEOF
44227 done
44234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
44235 $as_echo_n "checking for isnanl declaration... " >&6; }
44236 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
44237 if ${glibcxx_cv_func_isnanl_use+:} false; then :
44238 $as_echo_n "(cached) " >&6
44239 else
44242 ac_ext=cpp
44243 ac_cpp='$CXXCPP $CPPFLAGS'
44244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44249 /* end confdefs.h. */
44250 #include <math.h>
44251 #ifdef HAVE_IEEEFP_H
44252 #include <ieeefp.h>
44253 #endif
44256 main ()
44258 isnanl(0);
44260 return 0;
44262 _ACEOF
44263 if ac_fn_cxx_try_compile "$LINENO"; then :
44264 glibcxx_cv_func_isnanl_use=yes
44265 else
44266 glibcxx_cv_func_isnanl_use=no
44268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44269 ac_ext=c
44270 ac_cpp='$CPP $CPPFLAGS'
44271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
44280 $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
44282 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
44283 for ac_func in isnanl
44284 do :
44285 ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
44286 if test "x$ac_cv_func_isnanl" = xyes; then :
44287 cat >>confdefs.h <<_ACEOF
44288 #define HAVE_ISNANL 1
44289 _ACEOF
44292 done
44298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
44299 $as_echo_n "checking for isinfl declaration... " >&6; }
44300 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
44301 if ${glibcxx_cv_func_isinfl_use+:} false; then :
44302 $as_echo_n "(cached) " >&6
44303 else
44306 ac_ext=cpp
44307 ac_cpp='$CXXCPP $CPPFLAGS'
44308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44313 /* end confdefs.h. */
44314 #include <math.h>
44315 #ifdef HAVE_IEEEFP_H
44316 #include <ieeefp.h>
44317 #endif
44320 main ()
44322 isinfl(0);
44324 return 0;
44326 _ACEOF
44327 if ac_fn_cxx_try_compile "$LINENO"; then :
44328 glibcxx_cv_func_isinfl_use=yes
44329 else
44330 glibcxx_cv_func_isinfl_use=no
44332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44333 ac_ext=c
44334 ac_cpp='$CPP $CPPFLAGS'
44335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
44344 $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
44346 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
44347 for ac_func in isinfl
44348 do :
44349 ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
44350 if test "x$ac_cv_func_isinfl" = xyes; then :
44351 cat >>confdefs.h <<_ACEOF
44352 #define HAVE_ISINFL 1
44353 _ACEOF
44356 done
44362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
44363 $as_echo_n "checking for atan2l declaration... " >&6; }
44364 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
44365 if ${glibcxx_cv_func_atan2l_use+:} false; then :
44366 $as_echo_n "(cached) " >&6
44367 else
44370 ac_ext=cpp
44371 ac_cpp='$CXXCPP $CPPFLAGS'
44372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44377 /* end confdefs.h. */
44378 #include <math.h>
44380 main ()
44382 atan2l(0, 0);
44384 return 0;
44386 _ACEOF
44387 if ac_fn_cxx_try_compile "$LINENO"; then :
44388 glibcxx_cv_func_atan2l_use=yes
44389 else
44390 glibcxx_cv_func_atan2l_use=no
44392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44393 ac_ext=c
44394 ac_cpp='$CPP $CPPFLAGS'
44395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
44404 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
44406 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
44407 for ac_func in atan2l
44408 do :
44409 ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
44410 if test "x$ac_cv_func_atan2l" = xyes; then :
44411 cat >>confdefs.h <<_ACEOF
44412 #define HAVE_ATAN2L 1
44413 _ACEOF
44416 done
44422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
44423 $as_echo_n "checking for expl declaration... " >&6; }
44424 if test x${glibcxx_cv_func_expl_use+set} != xset; then
44425 if ${glibcxx_cv_func_expl_use+:} false; then :
44426 $as_echo_n "(cached) " >&6
44427 else
44430 ac_ext=cpp
44431 ac_cpp='$CXXCPP $CPPFLAGS'
44432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44437 /* end confdefs.h. */
44438 #include <math.h>
44439 #ifdef HAVE_IEEEFP_H
44440 #include <ieeefp.h>
44441 #endif
44444 main ()
44446 expl(0);
44448 return 0;
44450 _ACEOF
44451 if ac_fn_cxx_try_compile "$LINENO"; then :
44452 glibcxx_cv_func_expl_use=yes
44453 else
44454 glibcxx_cv_func_expl_use=no
44456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44457 ac_ext=c
44458 ac_cpp='$CPP $CPPFLAGS'
44459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
44468 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
44470 if test x$glibcxx_cv_func_expl_use = x"yes"; then
44471 for ac_func in expl
44472 do :
44473 ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
44474 if test "x$ac_cv_func_expl" = xyes; then :
44475 cat >>confdefs.h <<_ACEOF
44476 #define HAVE_EXPL 1
44477 _ACEOF
44480 done
44486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
44487 $as_echo_n "checking for fabsl declaration... " >&6; }
44488 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
44489 if ${glibcxx_cv_func_fabsl_use+:} false; then :
44490 $as_echo_n "(cached) " >&6
44491 else
44494 ac_ext=cpp
44495 ac_cpp='$CXXCPP $CPPFLAGS'
44496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44501 /* end confdefs.h. */
44502 #include <math.h>
44503 #ifdef HAVE_IEEEFP_H
44504 #include <ieeefp.h>
44505 #endif
44508 main ()
44510 fabsl(0);
44512 return 0;
44514 _ACEOF
44515 if ac_fn_cxx_try_compile "$LINENO"; then :
44516 glibcxx_cv_func_fabsl_use=yes
44517 else
44518 glibcxx_cv_func_fabsl_use=no
44520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44521 ac_ext=c
44522 ac_cpp='$CPP $CPPFLAGS'
44523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
44532 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
44534 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
44535 for ac_func in fabsl
44536 do :
44537 ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
44538 if test "x$ac_cv_func_fabsl" = xyes; then :
44539 cat >>confdefs.h <<_ACEOF
44540 #define HAVE_FABSL 1
44541 _ACEOF
44544 done
44550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
44551 $as_echo_n "checking for fmodl declaration... " >&6; }
44552 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
44553 if ${glibcxx_cv_func_fmodl_use+:} false; then :
44554 $as_echo_n "(cached) " >&6
44555 else
44558 ac_ext=cpp
44559 ac_cpp='$CXXCPP $CPPFLAGS'
44560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44565 /* end confdefs.h. */
44566 #include <math.h>
44568 main ()
44570 fmodl(0, 0);
44572 return 0;
44574 _ACEOF
44575 if ac_fn_cxx_try_compile "$LINENO"; then :
44576 glibcxx_cv_func_fmodl_use=yes
44577 else
44578 glibcxx_cv_func_fmodl_use=no
44580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44581 ac_ext=c
44582 ac_cpp='$CPP $CPPFLAGS'
44583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
44592 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
44594 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
44595 for ac_func in fmodl
44596 do :
44597 ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
44598 if test "x$ac_cv_func_fmodl" = xyes; then :
44599 cat >>confdefs.h <<_ACEOF
44600 #define HAVE_FMODL 1
44601 _ACEOF
44604 done
44610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
44611 $as_echo_n "checking for frexpl declaration... " >&6; }
44612 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
44613 if ${glibcxx_cv_func_frexpl_use+:} false; then :
44614 $as_echo_n "(cached) " >&6
44615 else
44618 ac_ext=cpp
44619 ac_cpp='$CXXCPP $CPPFLAGS'
44620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44625 /* end confdefs.h. */
44626 #include <math.h>
44628 main ()
44630 frexpl(0, 0);
44632 return 0;
44634 _ACEOF
44635 if ac_fn_cxx_try_compile "$LINENO"; then :
44636 glibcxx_cv_func_frexpl_use=yes
44637 else
44638 glibcxx_cv_func_frexpl_use=no
44640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44641 ac_ext=c
44642 ac_cpp='$CPP $CPPFLAGS'
44643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
44652 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
44654 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
44655 for ac_func in frexpl
44656 do :
44657 ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
44658 if test "x$ac_cv_func_frexpl" = xyes; then :
44659 cat >>confdefs.h <<_ACEOF
44660 #define HAVE_FREXPL 1
44661 _ACEOF
44664 done
44670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
44671 $as_echo_n "checking for hypotl declaration... " >&6; }
44672 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
44673 if ${glibcxx_cv_func_hypotl_use+:} false; then :
44674 $as_echo_n "(cached) " >&6
44675 else
44678 ac_ext=cpp
44679 ac_cpp='$CXXCPP $CPPFLAGS'
44680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44685 /* end confdefs.h. */
44686 #include <math.h>
44688 main ()
44690 hypotl(0, 0);
44692 return 0;
44694 _ACEOF
44695 if ac_fn_cxx_try_compile "$LINENO"; then :
44696 glibcxx_cv_func_hypotl_use=yes
44697 else
44698 glibcxx_cv_func_hypotl_use=no
44700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44701 ac_ext=c
44702 ac_cpp='$CPP $CPPFLAGS'
44703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
44712 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
44714 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
44715 for ac_func in hypotl
44716 do :
44717 ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
44718 if test "x$ac_cv_func_hypotl" = xyes; then :
44719 cat >>confdefs.h <<_ACEOF
44720 #define HAVE_HYPOTL 1
44721 _ACEOF
44724 done
44730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
44731 $as_echo_n "checking for ldexpl declaration... " >&6; }
44732 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
44733 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
44734 $as_echo_n "(cached) " >&6
44735 else
44738 ac_ext=cpp
44739 ac_cpp='$CXXCPP $CPPFLAGS'
44740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44745 /* end confdefs.h. */
44746 #include <math.h>
44748 main ()
44750 ldexpl(0, 0);
44752 return 0;
44754 _ACEOF
44755 if ac_fn_cxx_try_compile "$LINENO"; then :
44756 glibcxx_cv_func_ldexpl_use=yes
44757 else
44758 glibcxx_cv_func_ldexpl_use=no
44760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44761 ac_ext=c
44762 ac_cpp='$CPP $CPPFLAGS'
44763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
44772 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
44774 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
44775 for ac_func in ldexpl
44776 do :
44777 ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
44778 if test "x$ac_cv_func_ldexpl" = xyes; then :
44779 cat >>confdefs.h <<_ACEOF
44780 #define HAVE_LDEXPL 1
44781 _ACEOF
44784 done
44790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
44791 $as_echo_n "checking for logl declaration... " >&6; }
44792 if test x${glibcxx_cv_func_logl_use+set} != xset; then
44793 if ${glibcxx_cv_func_logl_use+:} false; then :
44794 $as_echo_n "(cached) " >&6
44795 else
44798 ac_ext=cpp
44799 ac_cpp='$CXXCPP $CPPFLAGS'
44800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44805 /* end confdefs.h. */
44806 #include <math.h>
44807 #ifdef HAVE_IEEEFP_H
44808 #include <ieeefp.h>
44809 #endif
44812 main ()
44814 logl(0);
44816 return 0;
44818 _ACEOF
44819 if ac_fn_cxx_try_compile "$LINENO"; then :
44820 glibcxx_cv_func_logl_use=yes
44821 else
44822 glibcxx_cv_func_logl_use=no
44824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44825 ac_ext=c
44826 ac_cpp='$CPP $CPPFLAGS'
44827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
44836 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
44838 if test x$glibcxx_cv_func_logl_use = x"yes"; then
44839 for ac_func in logl
44840 do :
44841 ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
44842 if test "x$ac_cv_func_logl" = xyes; then :
44843 cat >>confdefs.h <<_ACEOF
44844 #define HAVE_LOGL 1
44845 _ACEOF
44848 done
44854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
44855 $as_echo_n "checking for log10l declaration... " >&6; }
44856 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
44857 if ${glibcxx_cv_func_log10l_use+:} false; then :
44858 $as_echo_n "(cached) " >&6
44859 else
44862 ac_ext=cpp
44863 ac_cpp='$CXXCPP $CPPFLAGS'
44864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44869 /* end confdefs.h. */
44870 #include <math.h>
44871 #ifdef HAVE_IEEEFP_H
44872 #include <ieeefp.h>
44873 #endif
44876 main ()
44878 log10l(0);
44880 return 0;
44882 _ACEOF
44883 if ac_fn_cxx_try_compile "$LINENO"; then :
44884 glibcxx_cv_func_log10l_use=yes
44885 else
44886 glibcxx_cv_func_log10l_use=no
44888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44889 ac_ext=c
44890 ac_cpp='$CPP $CPPFLAGS'
44891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
44900 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
44902 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
44903 for ac_func in log10l
44904 do :
44905 ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
44906 if test "x$ac_cv_func_log10l" = xyes; then :
44907 cat >>confdefs.h <<_ACEOF
44908 #define HAVE_LOG10L 1
44909 _ACEOF
44912 done
44918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
44919 $as_echo_n "checking for modfl declaration... " >&6; }
44920 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
44921 if ${glibcxx_cv_func_modfl_use+:} false; then :
44922 $as_echo_n "(cached) " >&6
44923 else
44926 ac_ext=cpp
44927 ac_cpp='$CXXCPP $CPPFLAGS'
44928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44933 /* end confdefs.h. */
44934 #include <math.h>
44936 main ()
44938 modfl(0, 0);
44940 return 0;
44942 _ACEOF
44943 if ac_fn_cxx_try_compile "$LINENO"; then :
44944 glibcxx_cv_func_modfl_use=yes
44945 else
44946 glibcxx_cv_func_modfl_use=no
44948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44949 ac_ext=c
44950 ac_cpp='$CPP $CPPFLAGS'
44951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
44960 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
44962 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
44963 for ac_func in modfl
44964 do :
44965 ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
44966 if test "x$ac_cv_func_modfl" = xyes; then :
44967 cat >>confdefs.h <<_ACEOF
44968 #define HAVE_MODFL 1
44969 _ACEOF
44972 done
44978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
44979 $as_echo_n "checking for powl declaration... " >&6; }
44980 if test x${glibcxx_cv_func_powl_use+set} != xset; then
44981 if ${glibcxx_cv_func_powl_use+:} false; then :
44982 $as_echo_n "(cached) " >&6
44983 else
44986 ac_ext=cpp
44987 ac_cpp='$CXXCPP $CPPFLAGS'
44988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44993 /* end confdefs.h. */
44994 #include <math.h>
44996 main ()
44998 powl(0, 0);
45000 return 0;
45002 _ACEOF
45003 if ac_fn_cxx_try_compile "$LINENO"; then :
45004 glibcxx_cv_func_powl_use=yes
45005 else
45006 glibcxx_cv_func_powl_use=no
45008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45009 ac_ext=c
45010 ac_cpp='$CPP $CPPFLAGS'
45011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
45020 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
45022 if test x$glibcxx_cv_func_powl_use = x"yes"; then
45023 for ac_func in powl
45024 do :
45025 ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
45026 if test "x$ac_cv_func_powl" = xyes; then :
45027 cat >>confdefs.h <<_ACEOF
45028 #define HAVE_POWL 1
45029 _ACEOF
45032 done
45038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
45039 $as_echo_n "checking for sqrtl declaration... " >&6; }
45040 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
45041 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
45042 $as_echo_n "(cached) " >&6
45043 else
45046 ac_ext=cpp
45047 ac_cpp='$CXXCPP $CPPFLAGS'
45048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45053 /* end confdefs.h. */
45054 #include <math.h>
45055 #ifdef HAVE_IEEEFP_H
45056 #include <ieeefp.h>
45057 #endif
45060 main ()
45062 sqrtl(0);
45064 return 0;
45066 _ACEOF
45067 if ac_fn_cxx_try_compile "$LINENO"; then :
45068 glibcxx_cv_func_sqrtl_use=yes
45069 else
45070 glibcxx_cv_func_sqrtl_use=no
45072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45073 ac_ext=c
45074 ac_cpp='$CPP $CPPFLAGS'
45075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
45084 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
45086 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
45087 for ac_func in sqrtl
45088 do :
45089 ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
45090 if test "x$ac_cv_func_sqrtl" = xyes; then :
45091 cat >>confdefs.h <<_ACEOF
45092 #define HAVE_SQRTL 1
45093 _ACEOF
45096 done
45102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
45103 $as_echo_n "checking for sincosl declaration... " >&6; }
45104 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
45105 if ${glibcxx_cv_func_sincosl_use+:} false; then :
45106 $as_echo_n "(cached) " >&6
45107 else
45110 ac_ext=cpp
45111 ac_cpp='$CXXCPP $CPPFLAGS'
45112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45117 /* end confdefs.h. */
45118 #include <math.h>
45120 main ()
45122 sincosl(0, 0, 0);
45124 return 0;
45126 _ACEOF
45127 if ac_fn_cxx_try_compile "$LINENO"; then :
45128 glibcxx_cv_func_sincosl_use=yes
45129 else
45130 glibcxx_cv_func_sincosl_use=no
45132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45133 ac_ext=c
45134 ac_cpp='$CPP $CPPFLAGS'
45135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
45144 $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
45146 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
45147 for ac_func in sincosl
45148 do :
45149 ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
45150 if test "x$ac_cv_func_sincosl" = xyes; then :
45151 cat >>confdefs.h <<_ACEOF
45152 #define HAVE_SINCOSL 1
45153 _ACEOF
45156 done
45162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
45163 $as_echo_n "checking for finitel declaration... " >&6; }
45164 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
45165 if ${glibcxx_cv_func_finitel_use+:} false; then :
45166 $as_echo_n "(cached) " >&6
45167 else
45170 ac_ext=cpp
45171 ac_cpp='$CXXCPP $CPPFLAGS'
45172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45177 /* end confdefs.h. */
45178 #include <math.h>
45179 #ifdef HAVE_IEEEFP_H
45180 #include <ieeefp.h>
45181 #endif
45184 main ()
45186 finitel(0);
45188 return 0;
45190 _ACEOF
45191 if ac_fn_cxx_try_compile "$LINENO"; then :
45192 glibcxx_cv_func_finitel_use=yes
45193 else
45194 glibcxx_cv_func_finitel_use=no
45196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45197 ac_ext=c
45198 ac_cpp='$CPP $CPPFLAGS'
45199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
45208 $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
45210 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
45211 for ac_func in finitel
45212 do :
45213 ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
45214 if test "x$ac_cv_func_finitel" = xyes; then :
45215 cat >>confdefs.h <<_ACEOF
45216 #define HAVE_FINITEL 1
45217 _ACEOF
45220 done
45225 LIBS="$ac_save_LIBS"
45226 CXXFLAGS="$ac_save_CXXFLAGS"
45229 ac_test_CXXFLAGS="${CXXFLAGS+set}"
45230 ac_save_CXXFLAGS="$CXXFLAGS"
45231 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
45234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
45235 $as_echo_n "checking for at_quick_exit declaration... " >&6; }
45236 if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
45237 if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
45238 $as_echo_n "(cached) " >&6
45239 else
45242 ac_ext=cpp
45243 ac_cpp='$CXXCPP $CPPFLAGS'
45244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45249 /* end confdefs.h. */
45250 #include <stdlib.h>
45252 main ()
45254 at_quick_exit(0);
45256 return 0;
45258 _ACEOF
45259 if ac_fn_cxx_try_compile "$LINENO"; then :
45260 glibcxx_cv_func_at_quick_exit_use=yes
45261 else
45262 glibcxx_cv_func_at_quick_exit_use=no
45264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45265 ac_ext=c
45266 ac_cpp='$CPP $CPPFLAGS'
45267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
45276 $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
45277 if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
45278 for ac_func in at_quick_exit
45279 do :
45280 ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
45281 if test "x$ac_cv_func_at_quick_exit" = xyes; then :
45282 cat >>confdefs.h <<_ACEOF
45283 #define HAVE_AT_QUICK_EXIT 1
45284 _ACEOF
45287 done
45292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
45293 $as_echo_n "checking for quick_exit declaration... " >&6; }
45294 if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
45295 if ${glibcxx_cv_func_quick_exit_use+:} false; then :
45296 $as_echo_n "(cached) " >&6
45297 else
45300 ac_ext=cpp
45301 ac_cpp='$CXXCPP $CPPFLAGS'
45302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45307 /* end confdefs.h. */
45308 #include <stdlib.h>
45310 main ()
45312 quick_exit(0);
45314 return 0;
45316 _ACEOF
45317 if ac_fn_cxx_try_compile "$LINENO"; then :
45318 glibcxx_cv_func_quick_exit_use=yes
45319 else
45320 glibcxx_cv_func_quick_exit_use=no
45322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45323 ac_ext=c
45324 ac_cpp='$CPP $CPPFLAGS'
45325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
45334 $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
45335 if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
45336 for ac_func in quick_exit
45337 do :
45338 ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
45339 if test "x$ac_cv_func_quick_exit" = xyes; then :
45340 cat >>confdefs.h <<_ACEOF
45341 #define HAVE_QUICK_EXIT 1
45342 _ACEOF
45345 done
45350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
45351 $as_echo_n "checking for strtold declaration... " >&6; }
45352 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
45353 if ${glibcxx_cv_func_strtold_use+:} false; then :
45354 $as_echo_n "(cached) " >&6
45355 else
45358 ac_ext=cpp
45359 ac_cpp='$CXXCPP $CPPFLAGS'
45360 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45361 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45362 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45365 /* end confdefs.h. */
45366 #include <stdlib.h>
45368 main ()
45370 strtold(0, 0);
45372 return 0;
45374 _ACEOF
45375 if ac_fn_cxx_try_compile "$LINENO"; then :
45376 glibcxx_cv_func_strtold_use=yes
45377 else
45378 glibcxx_cv_func_strtold_use=no
45380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45381 ac_ext=c
45382 ac_cpp='$CPP $CPPFLAGS'
45383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
45392 $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
45393 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
45394 for ac_func in strtold
45395 do :
45396 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
45397 if test "x$ac_cv_func_strtold" = xyes; then :
45398 cat >>confdefs.h <<_ACEOF
45399 #define HAVE_STRTOLD 1
45400 _ACEOF
45403 done
45408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
45409 $as_echo_n "checking for strtof declaration... " >&6; }
45410 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
45411 if ${glibcxx_cv_func_strtof_use+:} false; then :
45412 $as_echo_n "(cached) " >&6
45413 else
45416 ac_ext=cpp
45417 ac_cpp='$CXXCPP $CPPFLAGS'
45418 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45419 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45420 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45423 /* end confdefs.h. */
45424 #include <stdlib.h>
45426 main ()
45428 strtof(0, 0);
45430 return 0;
45432 _ACEOF
45433 if ac_fn_cxx_try_compile "$LINENO"; then :
45434 glibcxx_cv_func_strtof_use=yes
45435 else
45436 glibcxx_cv_func_strtof_use=no
45438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45439 ac_ext=c
45440 ac_cpp='$CPP $CPPFLAGS'
45441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
45450 $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
45451 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
45452 for ac_func in strtof
45453 do :
45454 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
45455 if test "x$ac_cv_func_strtof" = xyes; then :
45456 cat >>confdefs.h <<_ACEOF
45457 #define HAVE_STRTOF 1
45458 _ACEOF
45461 done
45466 CXXFLAGS="$ac_save_CXXFLAGS"
45468 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
45469 do :
45470 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45471 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
45472 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
45473 cat >>confdefs.h <<_ACEOF
45474 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45475 _ACEOF
45478 done
45480 for ac_func in _wfopen
45481 do :
45482 ac_fn_c_check_func "$LINENO" "_wfopen" "ac_cv_func__wfopen"
45483 if test "x$ac_cv_func__wfopen" = xyes; then :
45484 cat >>confdefs.h <<_ACEOF
45485 #define HAVE__WFOPEN 1
45486 _ACEOF
45489 done
45493 # Check whether --enable-tls was given.
45494 if test "${enable_tls+set}" = set; then :
45495 enableval=$enable_tls;
45496 case "$enableval" in
45497 yes|no) ;;
45498 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
45499 esac
45501 else
45502 enable_tls=yes
45506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
45507 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
45508 if ${gcc_cv_have_tls+:} false; then :
45509 $as_echo_n "(cached) " >&6
45510 else
45512 if test "$cross_compiling" = yes; then :
45513 if test x$gcc_no_link = xyes; then
45514 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
45516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45517 /* end confdefs.h. */
45518 __thread int a; int b; int main() { return a = b; }
45519 _ACEOF
45520 if ac_fn_c_try_link "$LINENO"; then :
45521 chktls_save_LDFLAGS="$LDFLAGS"
45522 case $host in
45523 *-*-linux* | -*-uclinuxfdpic*)
45524 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
45526 esac
45527 chktls_save_CFLAGS="$CFLAGS"
45528 CFLAGS="-fPIC $CFLAGS"
45529 if test x$gcc_no_link = xyes; then
45530 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
45532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45533 /* end confdefs.h. */
45534 int f() { return 0; }
45535 _ACEOF
45536 if ac_fn_c_try_link "$LINENO"; then :
45537 if test x$gcc_no_link = xyes; then
45538 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
45540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45541 /* end confdefs.h. */
45542 __thread int a; int b; int f() { return a = b; }
45543 _ACEOF
45544 if ac_fn_c_try_link "$LINENO"; then :
45545 gcc_cv_have_tls=yes
45546 else
45547 gcc_cv_have_tls=no
45549 rm -f core conftest.err conftest.$ac_objext \
45550 conftest$ac_exeext conftest.$ac_ext
45551 else
45552 gcc_cv_have_tls=yes
45554 rm -f core conftest.err conftest.$ac_objext \
45555 conftest$ac_exeext conftest.$ac_ext
45556 CFLAGS="$chktls_save_CFLAGS"
45557 LDFLAGS="$chktls_save_LDFLAGS"
45558 else
45559 gcc_cv_have_tls=no
45561 rm -f core conftest.err conftest.$ac_objext \
45562 conftest$ac_exeext conftest.$ac_ext
45565 else
45566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45567 /* end confdefs.h. */
45568 __thread int a; int b; int main() { return a = b; }
45569 _ACEOF
45570 if ac_fn_c_try_run "$LINENO"; then :
45571 chktls_save_LDFLAGS="$LDFLAGS"
45572 LDFLAGS="-static $LDFLAGS"
45573 if test x$gcc_no_link = xyes; then
45574 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
45576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45577 /* end confdefs.h. */
45578 int main() { return 0; }
45579 _ACEOF
45580 if ac_fn_c_try_link "$LINENO"; then :
45581 if test "$cross_compiling" = yes; then :
45582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
45583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
45584 as_fn_error $? "cannot run test program while cross compiling
45585 See \`config.log' for more details" "$LINENO" 5; }
45586 else
45587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45588 /* end confdefs.h. */
45589 __thread int a; int b; int main() { return a = b; }
45590 _ACEOF
45591 if ac_fn_c_try_run "$LINENO"; then :
45592 gcc_cv_have_tls=yes
45593 else
45594 gcc_cv_have_tls=no
45596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45597 conftest.$ac_objext conftest.beam conftest.$ac_ext
45600 else
45601 gcc_cv_have_tls=yes
45603 rm -f core conftest.err conftest.$ac_objext \
45604 conftest$ac_exeext conftest.$ac_ext
45605 LDFLAGS="$chktls_save_LDFLAGS"
45606 if test $gcc_cv_have_tls = yes; then
45607 chktls_save_CFLAGS="$CFLAGS"
45608 thread_CFLAGS=failed
45609 for flag in '' '-pthread' '-lpthread'; do
45610 CFLAGS="$flag $chktls_save_CFLAGS"
45611 if test x$gcc_no_link = xyes; then
45612 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
45614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45615 /* end confdefs.h. */
45616 #include <pthread.h>
45617 void *g(void *d) { return NULL; }
45619 main ()
45621 pthread_t t; pthread_create(&t,NULL,g,NULL);
45623 return 0;
45625 _ACEOF
45626 if ac_fn_c_try_link "$LINENO"; then :
45627 thread_CFLAGS="$flag"
45629 rm -f core conftest.err conftest.$ac_objext \
45630 conftest$ac_exeext conftest.$ac_ext
45631 if test "X$thread_CFLAGS" != Xfailed; then
45632 break
45634 done
45635 CFLAGS="$chktls_save_CFLAGS"
45636 if test "X$thread_CFLAGS" != Xfailed; then
45637 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
45638 if test "$cross_compiling" = yes; then :
45639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
45640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
45641 as_fn_error $? "cannot run test program while cross compiling
45642 See \`config.log' for more details" "$LINENO" 5; }
45643 else
45644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45645 /* end confdefs.h. */
45646 #include <pthread.h>
45647 __thread int a;
45648 static int *volatile a_in_other_thread;
45649 static void *
45650 thread_func (void *arg)
45652 a_in_other_thread = &a;
45653 return (void *)0;
45656 main ()
45658 pthread_t thread;
45659 void *thread_retval;
45660 int *volatile a_in_main_thread;
45661 a_in_main_thread = &a;
45662 if (pthread_create (&thread, (pthread_attr_t *)0,
45663 thread_func, (void *)0))
45664 return 0;
45665 if (pthread_join (thread, &thread_retval))
45666 return 0;
45667 return (a_in_other_thread == a_in_main_thread);
45669 return 0;
45671 _ACEOF
45672 if ac_fn_c_try_run "$LINENO"; then :
45673 gcc_cv_have_tls=yes
45674 else
45675 gcc_cv_have_tls=no
45677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45678 conftest.$ac_objext conftest.beam conftest.$ac_ext
45681 CFLAGS="$chktls_save_CFLAGS"
45684 else
45685 gcc_cv_have_tls=no
45687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
45688 conftest.$ac_objext conftest.beam conftest.$ac_ext
45692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
45693 $as_echo "$gcc_cv_have_tls" >&6; }
45694 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
45696 $as_echo "#define HAVE_TLS 1" >>confdefs.h
45700 *-netbsd* | *-openbsd*)
45701 SECTION_FLAGS='-ffunction-sections -fdata-sections'
45704 # If we're not using GNU ld, then there's no point in even trying these
45705 # tests. Check for that first. We should have already tested for gld
45706 # by now (in libtool), but require it now just to be safe...
45707 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
45708 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
45712 # The name set by libtool depends on the version of libtool. Shame on us
45713 # for depending on an impl detail, but c'est la vie. Older versions used
45714 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
45715 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
45716 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
45717 # set (hence we're using an older libtool), then set it.
45718 if test x${with_gnu_ld+set} != xset; then
45719 if test x${ac_cv_prog_gnu_ld+set} != xset; then
45720 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
45721 with_gnu_ld=no
45722 else
45723 with_gnu_ld=$ac_cv_prog_gnu_ld
45727 # Start by getting the version number. I think the libtool test already
45728 # does some of this, but throws away the result.
45729 glibcxx_ld_is_gold=no
45730 glibcxx_ld_is_mold=no
45731 if test x"$with_gnu_ld" = x"yes"; then
45732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
45733 $as_echo_n "checking for ld version... " >&6; }
45735 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
45736 glibcxx_ld_is_gold=yes
45737 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
45738 glibcxx_ld_is_mold=yes
45740 ldver=`$LD --version 2>/dev/null |
45741 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
45743 glibcxx_gnu_ld_version=`echo $ldver | \
45744 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
45745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
45746 $as_echo "$glibcxx_gnu_ld_version" >&6; }
45749 # Set --gc-sections.
45750 glibcxx_have_gc_sections=no
45751 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
45752 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
45753 glibcxx_have_gc_sections=yes
45755 else
45756 glibcxx_gcsections_min_ld=21602
45757 if test x"$with_gnu_ld" = x"yes" &&
45758 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
45759 glibcxx_have_gc_sections=yes
45762 if test "$glibcxx_have_gc_sections" = "yes"; then
45763 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
45764 # NB: This flag only works reliably after 2.16.1. Configure tests
45765 # for this are difficult, so hard wire a value that should work.
45767 ac_test_CFLAGS="${CFLAGS+set}"
45768 ac_save_CFLAGS="$CFLAGS"
45769 CFLAGS='-Wl,--gc-sections'
45771 # Check for -Wl,--gc-sections
45772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
45773 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
45774 if test x$gcc_no_link = xyes; then
45775 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
45777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45778 /* end confdefs.h. */
45779 int one(void) { return 1; }
45780 int two(void) { return 2; }
45783 main ()
45785 two();
45787 return 0;
45789 _ACEOF
45790 if ac_fn_c_try_link "$LINENO"; then :
45791 ac_gcsections=yes
45792 else
45793 ac_gcsections=no
45795 rm -f core conftest.err conftest.$ac_objext \
45796 conftest$ac_exeext conftest.$ac_ext
45797 if test "$ac_gcsections" = "yes"; then
45798 rm -f conftest.c
45799 touch conftest.c
45800 if $CC -c conftest.c; then
45801 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
45802 grep "Warning: gc-sections option ignored" > /dev/null; then
45803 ac_gcsections=no
45806 rm -f conftest.c conftest.o conftest
45808 if test "$ac_gcsections" = "yes"; then
45809 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
45811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
45812 $as_echo "$ac_gcsections" >&6; }
45814 if test "$ac_test_CFLAGS" = set; then
45815 CFLAGS="$ac_save_CFLAGS"
45816 else
45817 # this is the suspicious part
45818 CFLAGS=''
45822 # Set -z,relro.
45823 # Note this is only for shared objects.
45824 ac_ld_relro=no
45825 if test x"$with_gnu_ld" = x"yes"; then
45826 # cygwin and mingw uses PE, which has no ELF relro support,
45827 # multi target ld may confuse configure machinery
45828 case "$host" in
45829 *-*-cygwin*)
45831 *-*-mingw*)
45834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
45835 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
45836 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
45837 if test -n "$cxx_z_relo"; then
45838 OPT_LDFLAGS="-Wl,-z,relro"
45839 ac_ld_relro=yes
45841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
45842 $as_echo "$ac_ld_relro" >&6; }
45843 esac
45846 # Set linker optimization flags.
45847 if test x"$with_gnu_ld" = x"yes"; then
45848 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
45854 $as_echo "#define HAVE_FINITEF 1" >>confdefs.h
45856 $as_echo "#define HAVE_FINITE 1" >>confdefs.h
45858 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
45860 $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
45862 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
45864 $as_echo "#define HAVE_ISINFF 1" >>confdefs.h
45866 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
45868 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
45870 if test x"long_double_math_on_this_cpu" = x"yes"; then
45871 $as_echo "#define HAVE_FINITEL 1" >>confdefs.h
45873 $as_echo "#define HAVE_ISINFL 1" >>confdefs.h
45875 $as_echo "#define HAVE_ISNANL 1" >>confdefs.h
45878 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
45879 do :
45880 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45881 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
45882 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
45883 cat >>confdefs.h <<_ACEOF
45884 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45885 _ACEOF
45888 done
45890 for ac_func in timespec_get
45891 do :
45892 ac_fn_c_check_func "$LINENO" "timespec_get" "ac_cv_func_timespec_get"
45893 if test "x$ac_cv_func_timespec_get" = xyes; then :
45894 cat >>confdefs.h <<_ACEOF
45895 #define HAVE_TIMESPEC_GET 1
45896 _ACEOF
45899 done
45901 for ac_func in sockatmark
45902 do :
45903 ac_fn_c_check_func "$LINENO" "sockatmark" "ac_cv_func_sockatmark"
45904 if test "x$ac_cv_func_sockatmark" = xyes; then :
45905 cat >>confdefs.h <<_ACEOF
45906 #define HAVE_SOCKATMARK 1
45907 _ACEOF
45910 done
45913 *-qnx6.1* | *-qnx6.2*)
45914 SECTION_FLAGS='-ffunction-sections -fdata-sections'
45917 # If we're not using GNU ld, then there's no point in even trying these
45918 # tests. Check for that first. We should have already tested for gld
45919 # by now (in libtool), but require it now just to be safe...
45920 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
45921 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
45925 # The name set by libtool depends on the version of libtool. Shame on us
45926 # for depending on an impl detail, but c'est la vie. Older versions used
45927 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
45928 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
45929 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
45930 # set (hence we're using an older libtool), then set it.
45931 if test x${with_gnu_ld+set} != xset; then
45932 if test x${ac_cv_prog_gnu_ld+set} != xset; then
45933 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
45934 with_gnu_ld=no
45935 else
45936 with_gnu_ld=$ac_cv_prog_gnu_ld
45940 # Start by getting the version number. I think the libtool test already
45941 # does some of this, but throws away the result.
45942 glibcxx_ld_is_gold=no
45943 glibcxx_ld_is_mold=no
45944 if test x"$with_gnu_ld" = x"yes"; then
45945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld version" >&5
45946 $as_echo_n "checking for ld version... " >&6; }
45948 if $LD --version 2>/dev/null | grep 'GNU gold' >/dev/null 2>&1; then
45949 glibcxx_ld_is_gold=yes
45950 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
45951 glibcxx_ld_is_mold=yes
45953 ldver=`$LD --version 2>/dev/null |
45954 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
45956 glibcxx_gnu_ld_version=`echo $ldver | \
45957 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
45958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_gnu_ld_version" >&5
45959 $as_echo "$glibcxx_gnu_ld_version" >&6; }
45962 # Set --gc-sections.
45963 glibcxx_have_gc_sections=no
45964 if test "$glibcxx_ld_is_gold" = "yes" || test "$glibcxx_ld_is_mold" = "yes" ; then
45965 if $LD --help 2>/dev/null | grep gc-sections >/dev/null 2>&1; then
45966 glibcxx_have_gc_sections=yes
45968 else
45969 glibcxx_gcsections_min_ld=21602
45970 if test x"$with_gnu_ld" = x"yes" &&
45971 test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
45972 glibcxx_have_gc_sections=yes
45975 if test "$glibcxx_have_gc_sections" = "yes"; then
45976 # Sufficiently young GNU ld it is! Joy and bunny rabbits!
45977 # NB: This flag only works reliably after 2.16.1. Configure tests
45978 # for this are difficult, so hard wire a value that should work.
45980 ac_test_CFLAGS="${CFLAGS+set}"
45981 ac_save_CFLAGS="$CFLAGS"
45982 CFLAGS='-Wl,--gc-sections'
45984 # Check for -Wl,--gc-sections
45985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
45986 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
45987 if test x$gcc_no_link = xyes; then
45988 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
45990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45991 /* end confdefs.h. */
45992 int one(void) { return 1; }
45993 int two(void) { return 2; }
45996 main ()
45998 two();
46000 return 0;
46002 _ACEOF
46003 if ac_fn_c_try_link "$LINENO"; then :
46004 ac_gcsections=yes
46005 else
46006 ac_gcsections=no
46008 rm -f core conftest.err conftest.$ac_objext \
46009 conftest$ac_exeext conftest.$ac_ext
46010 if test "$ac_gcsections" = "yes"; then
46011 rm -f conftest.c
46012 touch conftest.c
46013 if $CC -c conftest.c; then
46014 if $LD --gc-sections -o conftest conftest.o 2>&1 | \
46015 grep "Warning: gc-sections option ignored" > /dev/null; then
46016 ac_gcsections=no
46019 rm -f conftest.c conftest.o conftest
46021 if test "$ac_gcsections" = "yes"; then
46022 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
46024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
46025 $as_echo "$ac_gcsections" >&6; }
46027 if test "$ac_test_CFLAGS" = set; then
46028 CFLAGS="$ac_save_CFLAGS"
46029 else
46030 # this is the suspicious part
46031 CFLAGS=''
46035 # Set -z,relro.
46036 # Note this is only for shared objects.
46037 ac_ld_relro=no
46038 if test x"$with_gnu_ld" = x"yes"; then
46039 # cygwin and mingw uses PE, which has no ELF relro support,
46040 # multi target ld may confuse configure machinery
46041 case "$host" in
46042 *-*-cygwin*)
46044 *-*-mingw*)
46047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,-z,relro" >&5
46048 $as_echo_n "checking for ld that supports -Wl,-z,relro... " >&6; }
46049 cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
46050 if test -n "$cxx_z_relo"; then
46051 OPT_LDFLAGS="-Wl,-z,relro"
46052 ac_ld_relro=yes
46054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ld_relro" >&5
46055 $as_echo "$ac_ld_relro" >&6; }
46056 esac
46059 # Set linker optimization flags.
46060 if test x"$with_gnu_ld" = x"yes"; then
46061 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
46067 $as_echo "#define HAVE_COSF 1" >>confdefs.h
46069 $as_echo "#define HAVE_COSL 1" >>confdefs.h
46071 $as_echo "#define HAVE_COSHF 1" >>confdefs.h
46073 $as_echo "#define HAVE_COSHL 1" >>confdefs.h
46075 $as_echo "#define HAVE_LOGF 1" >>confdefs.h
46077 $as_echo "#define HAVE_LOGL 1" >>confdefs.h
46079 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
46081 $as_echo "#define HAVE_LOG10L 1" >>confdefs.h
46083 $as_echo "#define HAVE_SINF 1" >>confdefs.h
46085 $as_echo "#define HAVE_SINL 1" >>confdefs.h
46087 $as_echo "#define HAVE_SINHF 1" >>confdefs.h
46089 $as_echo "#define HAVE_SINHL 1" >>confdefs.h
46092 *-tpf)
46093 SECTION_FLAGS='-ffunction-sections -fdata-sections'
46094 SECTION_LDFLAGS='-Wl,--gc-sections $SECTION_LDFLAGS'
46096 $as_echo "#define HAVE_FINITE 1" >>confdefs.h
46098 $as_echo "#define HAVE_FINITEF 1" >>confdefs.h
46100 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
46102 $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
46104 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
46106 $as_echo "#define HAVE_ISINFF 1" >>confdefs.h
46108 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
46110 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
46112 $as_echo "#define HAVE_SINCOS 1" >>confdefs.h
46114 $as_echo "#define HAVE_SINCOSF 1" >>confdefs.h
46116 if test x"long_double_math_on_this_cpu" = x"yes"; then
46117 $as_echo "#define HAVE_FINITEL 1" >>confdefs.h
46119 $as_echo "#define HAVE_HYPOTL 1" >>confdefs.h
46121 $as_echo "#define HAVE_ISINFL 1" >>confdefs.h
46123 $as_echo "#define HAVE_ISNANL 1" >>confdefs.h
46127 *-*vms*)
46128 # Check for available headers.
46129 # Don't call GLIBCXX_CHECK_LINKER_FEATURES, VMS doesn't have a GNU ld
46131 ac_test_CXXFLAGS="${CXXFLAGS+set}"
46132 ac_save_CXXFLAGS="$CXXFLAGS"
46133 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
46135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
46136 $as_echo_n "checking for sin in -lm... " >&6; }
46137 if ${ac_cv_lib_m_sin+:} false; then :
46138 $as_echo_n "(cached) " >&6
46139 else
46140 ac_check_lib_save_LIBS=$LIBS
46141 LIBS="-lm $LIBS"
46142 if test x$gcc_no_link = xyes; then
46143 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
46145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46146 /* end confdefs.h. */
46148 /* Override any GCC internal prototype to avoid an error.
46149 Use char because int might match the return type of a GCC
46150 builtin and then its argument prototype would still apply. */
46151 #ifdef __cplusplus
46152 extern "C"
46153 #endif
46154 char sin ();
46156 main ()
46158 return sin ();
46160 return 0;
46162 _ACEOF
46163 if ac_fn_c_try_link "$LINENO"; then :
46164 ac_cv_lib_m_sin=yes
46165 else
46166 ac_cv_lib_m_sin=no
46168 rm -f core conftest.err conftest.$ac_objext \
46169 conftest$ac_exeext conftest.$ac_ext
46170 LIBS=$ac_check_lib_save_LIBS
46172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
46173 $as_echo "$ac_cv_lib_m_sin" >&6; }
46174 if test "x$ac_cv_lib_m_sin" = xyes; then :
46175 libm="-lm"
46178 ac_save_LIBS="$LIBS"
46179 LIBS="$LIBS $libm"
46183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf declaration" >&5
46184 $as_echo_n "checking for isinf declaration... " >&6; }
46185 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
46186 if ${glibcxx_cv_func_isinf_use+:} false; then :
46187 $as_echo_n "(cached) " >&6
46188 else
46191 ac_ext=cpp
46192 ac_cpp='$CXXCPP $CPPFLAGS'
46193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46198 /* end confdefs.h. */
46199 #include <math.h>
46200 #ifdef HAVE_IEEEFP_H
46201 #include <ieeefp.h>
46202 #endif
46205 main ()
46207 isinf(0);
46209 return 0;
46211 _ACEOF
46212 if ac_fn_cxx_try_compile "$LINENO"; then :
46213 glibcxx_cv_func_isinf_use=yes
46214 else
46215 glibcxx_cv_func_isinf_use=no
46217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46218 ac_ext=c
46219 ac_cpp='$CPP $CPPFLAGS'
46220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinf_use" >&5
46229 $as_echo "$glibcxx_cv_func_isinf_use" >&6; }
46231 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
46232 for ac_func in isinf
46233 do :
46234 ac_fn_c_check_func "$LINENO" "isinf" "ac_cv_func_isinf"
46235 if test "x$ac_cv_func_isinf" = xyes; then :
46236 cat >>confdefs.h <<_ACEOF
46237 #define HAVE_ISINF 1
46238 _ACEOF
46241 done
46247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan declaration" >&5
46248 $as_echo_n "checking for isnan declaration... " >&6; }
46249 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
46250 if ${glibcxx_cv_func_isnan_use+:} false; then :
46251 $as_echo_n "(cached) " >&6
46252 else
46255 ac_ext=cpp
46256 ac_cpp='$CXXCPP $CPPFLAGS'
46257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46262 /* end confdefs.h. */
46263 #include <math.h>
46264 #ifdef HAVE_IEEEFP_H
46265 #include <ieeefp.h>
46266 #endif
46269 main ()
46271 isnan(0);
46273 return 0;
46275 _ACEOF
46276 if ac_fn_cxx_try_compile "$LINENO"; then :
46277 glibcxx_cv_func_isnan_use=yes
46278 else
46279 glibcxx_cv_func_isnan_use=no
46281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46282 ac_ext=c
46283 ac_cpp='$CPP $CPPFLAGS'
46284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnan_use" >&5
46293 $as_echo "$glibcxx_cv_func_isnan_use" >&6; }
46295 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
46296 for ac_func in isnan
46297 do :
46298 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
46299 if test "x$ac_cv_func_isnan" = xyes; then :
46300 cat >>confdefs.h <<_ACEOF
46301 #define HAVE_ISNAN 1
46302 _ACEOF
46305 done
46311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite declaration" >&5
46312 $as_echo_n "checking for finite declaration... " >&6; }
46313 if test x${glibcxx_cv_func_finite_use+set} != xset; then
46314 if ${glibcxx_cv_func_finite_use+:} false; then :
46315 $as_echo_n "(cached) " >&6
46316 else
46319 ac_ext=cpp
46320 ac_cpp='$CXXCPP $CPPFLAGS'
46321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46326 /* end confdefs.h. */
46327 #include <math.h>
46328 #ifdef HAVE_IEEEFP_H
46329 #include <ieeefp.h>
46330 #endif
46333 main ()
46335 finite(0);
46337 return 0;
46339 _ACEOF
46340 if ac_fn_cxx_try_compile "$LINENO"; then :
46341 glibcxx_cv_func_finite_use=yes
46342 else
46343 glibcxx_cv_func_finite_use=no
46345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46346 ac_ext=c
46347 ac_cpp='$CPP $CPPFLAGS'
46348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finite_use" >&5
46357 $as_echo "$glibcxx_cv_func_finite_use" >&6; }
46359 if test x$glibcxx_cv_func_finite_use = x"yes"; then
46360 for ac_func in finite
46361 do :
46362 ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
46363 if test "x$ac_cv_func_finite" = xyes; then :
46364 cat >>confdefs.h <<_ACEOF
46365 #define HAVE_FINITE 1
46366 _ACEOF
46369 done
46375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincos declaration" >&5
46376 $as_echo_n "checking for sincos declaration... " >&6; }
46377 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
46378 if ${glibcxx_cv_func_sincos_use+:} false; then :
46379 $as_echo_n "(cached) " >&6
46380 else
46383 ac_ext=cpp
46384 ac_cpp='$CXXCPP $CPPFLAGS'
46385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46390 /* end confdefs.h. */
46391 #include <math.h>
46393 main ()
46395 sincos(0, 0, 0);
46397 return 0;
46399 _ACEOF
46400 if ac_fn_cxx_try_compile "$LINENO"; then :
46401 glibcxx_cv_func_sincos_use=yes
46402 else
46403 glibcxx_cv_func_sincos_use=no
46405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46406 ac_ext=c
46407 ac_cpp='$CPP $CPPFLAGS'
46408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincos_use" >&5
46417 $as_echo "$glibcxx_cv_func_sincos_use" >&6; }
46419 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
46420 for ac_func in sincos
46421 do :
46422 ac_fn_c_check_func "$LINENO" "sincos" "ac_cv_func_sincos"
46423 if test "x$ac_cv_func_sincos" = xyes; then :
46424 cat >>confdefs.h <<_ACEOF
46425 #define HAVE_SINCOS 1
46426 _ACEOF
46429 done
46435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclass declaration" >&5
46436 $as_echo_n "checking for fpclass declaration... " >&6; }
46437 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
46438 if ${glibcxx_cv_func_fpclass_use+:} false; then :
46439 $as_echo_n "(cached) " >&6
46440 else
46443 ac_ext=cpp
46444 ac_cpp='$CXXCPP $CPPFLAGS'
46445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46450 /* end confdefs.h. */
46451 #include <math.h>
46452 #ifdef HAVE_IEEEFP_H
46453 #include <ieeefp.h>
46454 #endif
46457 main ()
46459 fpclass(0);
46461 return 0;
46463 _ACEOF
46464 if ac_fn_cxx_try_compile "$LINENO"; then :
46465 glibcxx_cv_func_fpclass_use=yes
46466 else
46467 glibcxx_cv_func_fpclass_use=no
46469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46470 ac_ext=c
46471 ac_cpp='$CPP $CPPFLAGS'
46472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fpclass_use" >&5
46481 $as_echo "$glibcxx_cv_func_fpclass_use" >&6; }
46483 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
46484 for ac_func in fpclass
46485 do :
46486 ac_fn_c_check_func "$LINENO" "fpclass" "ac_cv_func_fpclass"
46487 if test "x$ac_cv_func_fpclass" = xyes; then :
46488 cat >>confdefs.h <<_ACEOF
46489 #define HAVE_FPCLASS 1
46490 _ACEOF
46493 done
46499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qfpclass declaration" >&5
46500 $as_echo_n "checking for qfpclass declaration... " >&6; }
46501 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
46502 if ${glibcxx_cv_func_qfpclass_use+:} false; then :
46503 $as_echo_n "(cached) " >&6
46504 else
46507 ac_ext=cpp
46508 ac_cpp='$CXXCPP $CPPFLAGS'
46509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46514 /* end confdefs.h. */
46515 #include <math.h>
46516 #ifdef HAVE_IEEEFP_H
46517 #include <ieeefp.h>
46518 #endif
46521 main ()
46523 qfpclass(0);
46525 return 0;
46527 _ACEOF
46528 if ac_fn_cxx_try_compile "$LINENO"; then :
46529 glibcxx_cv_func_qfpclass_use=yes
46530 else
46531 glibcxx_cv_func_qfpclass_use=no
46533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46534 ac_ext=c
46535 ac_cpp='$CPP $CPPFLAGS'
46536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_qfpclass_use" >&5
46545 $as_echo "$glibcxx_cv_func_qfpclass_use" >&6; }
46547 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
46548 for ac_func in qfpclass
46549 do :
46550 ac_fn_c_check_func "$LINENO" "qfpclass" "ac_cv_func_qfpclass"
46551 if test "x$ac_cv_func_qfpclass" = xyes; then :
46552 cat >>confdefs.h <<_ACEOF
46553 #define HAVE_QFPCLASS 1
46554 _ACEOF
46557 done
46563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot declaration" >&5
46564 $as_echo_n "checking for hypot declaration... " >&6; }
46565 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
46566 if ${glibcxx_cv_func_hypot_use+:} false; then :
46567 $as_echo_n "(cached) " >&6
46568 else
46571 ac_ext=cpp
46572 ac_cpp='$CXXCPP $CPPFLAGS'
46573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46578 /* end confdefs.h. */
46579 #include <math.h>
46581 main ()
46583 hypot(0, 0);
46585 return 0;
46587 _ACEOF
46588 if ac_fn_cxx_try_compile "$LINENO"; then :
46589 glibcxx_cv_func_hypot_use=yes
46590 else
46591 glibcxx_cv_func_hypot_use=no
46593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46594 ac_ext=c
46595 ac_cpp='$CPP $CPPFLAGS'
46596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypot_use" >&5
46605 $as_echo "$glibcxx_cv_func_hypot_use" >&6; }
46607 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
46608 for ac_func in hypot
46609 do :
46610 ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot"
46611 if test "x$ac_cv_func_hypot" = xyes; then :
46612 cat >>confdefs.h <<_ACEOF
46613 #define HAVE_HYPOT 1
46614 _ACEOF
46617 done
46623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float trig functions" >&5
46624 $as_echo_n "checking for float trig functions... " >&6; }
46625 if ${glibcxx_cv_func_float_trig_use+:} false; then :
46626 $as_echo_n "(cached) " >&6
46627 else
46630 ac_ext=cpp
46631 ac_cpp='$CXXCPP $CPPFLAGS'
46632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46637 /* end confdefs.h. */
46638 #include <math.h>
46640 main ()
46642 acosf (0); asinf (0); atanf (0); cosf (0); sinf (0); tanf (0); coshf (0); sinhf (0); tanhf (0);
46644 return 0;
46646 _ACEOF
46647 if ac_fn_cxx_try_compile "$LINENO"; then :
46648 glibcxx_cv_func_float_trig_use=yes
46649 else
46650 glibcxx_cv_func_float_trig_use=no
46652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46653 ac_ext=c
46654 ac_cpp='$CPP $CPPFLAGS'
46655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_trig_use" >&5
46662 $as_echo "$glibcxx_cv_func_float_trig_use" >&6; }
46663 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
46664 for ac_func in acosf asinf atanf cosf sinf tanf coshf sinhf tanhf
46665 do :
46666 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46667 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
46668 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
46669 cat >>confdefs.h <<_ACEOF
46670 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
46671 _ACEOF
46674 done
46680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for float round functions" >&5
46681 $as_echo_n "checking for float round functions... " >&6; }
46682 if ${glibcxx_cv_func_float_round_use+:} false; then :
46683 $as_echo_n "(cached) " >&6
46684 else
46687 ac_ext=cpp
46688 ac_cpp='$CXXCPP $CPPFLAGS'
46689 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46690 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46691 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46694 /* end confdefs.h. */
46695 #include <math.h>
46697 main ()
46699 ceilf (0); floorf (0);
46701 return 0;
46703 _ACEOF
46704 if ac_fn_cxx_try_compile "$LINENO"; then :
46705 glibcxx_cv_func_float_round_use=yes
46706 else
46707 glibcxx_cv_func_float_round_use=no
46709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46710 ac_ext=c
46711 ac_cpp='$CPP $CPPFLAGS'
46712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_float_round_use" >&5
46719 $as_echo "$glibcxx_cv_func_float_round_use" >&6; }
46720 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
46721 for ac_func in ceilf floorf
46722 do :
46723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46724 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
46725 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
46726 cat >>confdefs.h <<_ACEOF
46727 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
46728 _ACEOF
46731 done
46738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf declaration" >&5
46739 $as_echo_n "checking for expf declaration... " >&6; }
46740 if test x${glibcxx_cv_func_expf_use+set} != xset; then
46741 if ${glibcxx_cv_func_expf_use+:} false; then :
46742 $as_echo_n "(cached) " >&6
46743 else
46746 ac_ext=cpp
46747 ac_cpp='$CXXCPP $CPPFLAGS'
46748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46753 /* end confdefs.h. */
46754 #include <math.h>
46755 #ifdef HAVE_IEEEFP_H
46756 #include <ieeefp.h>
46757 #endif
46760 main ()
46762 expf(0);
46764 return 0;
46766 _ACEOF
46767 if ac_fn_cxx_try_compile "$LINENO"; then :
46768 glibcxx_cv_func_expf_use=yes
46769 else
46770 glibcxx_cv_func_expf_use=no
46772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46773 ac_ext=c
46774 ac_cpp='$CPP $CPPFLAGS'
46775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expf_use" >&5
46784 $as_echo "$glibcxx_cv_func_expf_use" >&6; }
46786 if test x$glibcxx_cv_func_expf_use = x"yes"; then
46787 for ac_func in expf
46788 do :
46789 ac_fn_c_check_func "$LINENO" "expf" "ac_cv_func_expf"
46790 if test "x$ac_cv_func_expf" = xyes; then :
46791 cat >>confdefs.h <<_ACEOF
46792 #define HAVE_EXPF 1
46793 _ACEOF
46796 done
46802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf declaration" >&5
46803 $as_echo_n "checking for isnanf declaration... " >&6; }
46804 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
46805 if ${glibcxx_cv_func_isnanf_use+:} false; then :
46806 $as_echo_n "(cached) " >&6
46807 else
46810 ac_ext=cpp
46811 ac_cpp='$CXXCPP $CPPFLAGS'
46812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46817 /* end confdefs.h. */
46818 #include <math.h>
46819 #ifdef HAVE_IEEEFP_H
46820 #include <ieeefp.h>
46821 #endif
46824 main ()
46826 isnanf(0);
46828 return 0;
46830 _ACEOF
46831 if ac_fn_cxx_try_compile "$LINENO"; then :
46832 glibcxx_cv_func_isnanf_use=yes
46833 else
46834 glibcxx_cv_func_isnanf_use=no
46836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46837 ac_ext=c
46838 ac_cpp='$CPP $CPPFLAGS'
46839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanf_use" >&5
46848 $as_echo "$glibcxx_cv_func_isnanf_use" >&6; }
46850 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
46851 for ac_func in isnanf
46852 do :
46853 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
46854 if test "x$ac_cv_func_isnanf" = xyes; then :
46855 cat >>confdefs.h <<_ACEOF
46856 #define HAVE_ISNANF 1
46857 _ACEOF
46860 done
46866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinff declaration" >&5
46867 $as_echo_n "checking for isinff declaration... " >&6; }
46868 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
46869 if ${glibcxx_cv_func_isinff_use+:} false; then :
46870 $as_echo_n "(cached) " >&6
46871 else
46874 ac_ext=cpp
46875 ac_cpp='$CXXCPP $CPPFLAGS'
46876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46881 /* end confdefs.h. */
46882 #include <math.h>
46883 #ifdef HAVE_IEEEFP_H
46884 #include <ieeefp.h>
46885 #endif
46888 main ()
46890 isinff(0);
46892 return 0;
46894 _ACEOF
46895 if ac_fn_cxx_try_compile "$LINENO"; then :
46896 glibcxx_cv_func_isinff_use=yes
46897 else
46898 glibcxx_cv_func_isinff_use=no
46900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46901 ac_ext=c
46902 ac_cpp='$CPP $CPPFLAGS'
46903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinff_use" >&5
46912 $as_echo "$glibcxx_cv_func_isinff_use" >&6; }
46914 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
46915 for ac_func in isinff
46916 do :
46917 ac_fn_c_check_func "$LINENO" "isinff" "ac_cv_func_isinff"
46918 if test "x$ac_cv_func_isinff" = xyes; then :
46919 cat >>confdefs.h <<_ACEOF
46920 #define HAVE_ISINFF 1
46921 _ACEOF
46924 done
46930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f declaration" >&5
46931 $as_echo_n "checking for atan2f declaration... " >&6; }
46932 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
46933 if ${glibcxx_cv_func_atan2f_use+:} false; then :
46934 $as_echo_n "(cached) " >&6
46935 else
46938 ac_ext=cpp
46939 ac_cpp='$CXXCPP $CPPFLAGS'
46940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
46945 /* end confdefs.h. */
46946 #include <math.h>
46948 main ()
46950 atan2f(0, 0);
46952 return 0;
46954 _ACEOF
46955 if ac_fn_cxx_try_compile "$LINENO"; then :
46956 glibcxx_cv_func_atan2f_use=yes
46957 else
46958 glibcxx_cv_func_atan2f_use=no
46960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46961 ac_ext=c
46962 ac_cpp='$CPP $CPPFLAGS'
46963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2f_use" >&5
46972 $as_echo "$glibcxx_cv_func_atan2f_use" >&6; }
46974 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
46975 for ac_func in atan2f
46976 do :
46977 ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f"
46978 if test "x$ac_cv_func_atan2f" = xyes; then :
46979 cat >>confdefs.h <<_ACEOF
46980 #define HAVE_ATAN2F 1
46981 _ACEOF
46984 done
46990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf declaration" >&5
46991 $as_echo_n "checking for fabsf declaration... " >&6; }
46992 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
46993 if ${glibcxx_cv_func_fabsf_use+:} false; then :
46994 $as_echo_n "(cached) " >&6
46995 else
46998 ac_ext=cpp
46999 ac_cpp='$CXXCPP $CPPFLAGS'
47000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47005 /* end confdefs.h. */
47006 #include <math.h>
47007 #ifdef HAVE_IEEEFP_H
47008 #include <ieeefp.h>
47009 #endif
47012 main ()
47014 fabsf(0);
47016 return 0;
47018 _ACEOF
47019 if ac_fn_cxx_try_compile "$LINENO"; then :
47020 glibcxx_cv_func_fabsf_use=yes
47021 else
47022 glibcxx_cv_func_fabsf_use=no
47024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47025 ac_ext=c
47026 ac_cpp='$CPP $CPPFLAGS'
47027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsf_use" >&5
47036 $as_echo "$glibcxx_cv_func_fabsf_use" >&6; }
47038 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
47039 for ac_func in fabsf
47040 do :
47041 ac_fn_c_check_func "$LINENO" "fabsf" "ac_cv_func_fabsf"
47042 if test "x$ac_cv_func_fabsf" = xyes; then :
47043 cat >>confdefs.h <<_ACEOF
47044 #define HAVE_FABSF 1
47045 _ACEOF
47048 done
47054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf declaration" >&5
47055 $as_echo_n "checking for fmodf declaration... " >&6; }
47056 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
47057 if ${glibcxx_cv_func_fmodf_use+:} false; then :
47058 $as_echo_n "(cached) " >&6
47059 else
47062 ac_ext=cpp
47063 ac_cpp='$CXXCPP $CPPFLAGS'
47064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47069 /* end confdefs.h. */
47070 #include <math.h>
47072 main ()
47074 fmodf(0, 0);
47076 return 0;
47078 _ACEOF
47079 if ac_fn_cxx_try_compile "$LINENO"; then :
47080 glibcxx_cv_func_fmodf_use=yes
47081 else
47082 glibcxx_cv_func_fmodf_use=no
47084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47085 ac_ext=c
47086 ac_cpp='$CPP $CPPFLAGS'
47087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodf_use" >&5
47096 $as_echo "$glibcxx_cv_func_fmodf_use" >&6; }
47098 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
47099 for ac_func in fmodf
47100 do :
47101 ac_fn_c_check_func "$LINENO" "fmodf" "ac_cv_func_fmodf"
47102 if test "x$ac_cv_func_fmodf" = xyes; then :
47103 cat >>confdefs.h <<_ACEOF
47104 #define HAVE_FMODF 1
47105 _ACEOF
47108 done
47114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
47115 $as_echo_n "checking for frexpf declaration... " >&6; }
47116 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
47117 if ${glibcxx_cv_func_frexpf_use+:} false; then :
47118 $as_echo_n "(cached) " >&6
47119 else
47122 ac_ext=cpp
47123 ac_cpp='$CXXCPP $CPPFLAGS'
47124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47129 /* end confdefs.h. */
47130 #include <math.h>
47132 main ()
47134 frexpf(0, 0);
47136 return 0;
47138 _ACEOF
47139 if ac_fn_cxx_try_compile "$LINENO"; then :
47140 glibcxx_cv_func_frexpf_use=yes
47141 else
47142 glibcxx_cv_func_frexpf_use=no
47144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47145 ac_ext=c
47146 ac_cpp='$CPP $CPPFLAGS'
47147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
47156 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
47158 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
47159 for ac_func in frexpf
47160 do :
47161 ac_fn_c_check_func "$LINENO" "frexpf" "ac_cv_func_frexpf"
47162 if test "x$ac_cv_func_frexpf" = xyes; then :
47163 cat >>confdefs.h <<_ACEOF
47164 #define HAVE_FREXPF 1
47165 _ACEOF
47168 done
47174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
47175 $as_echo_n "checking for hypotf declaration... " >&6; }
47176 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
47177 if ${glibcxx_cv_func_hypotf_use+:} false; then :
47178 $as_echo_n "(cached) " >&6
47179 else
47182 ac_ext=cpp
47183 ac_cpp='$CXXCPP $CPPFLAGS'
47184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47189 /* end confdefs.h. */
47190 #include <math.h>
47192 main ()
47194 hypotf(0, 0);
47196 return 0;
47198 _ACEOF
47199 if ac_fn_cxx_try_compile "$LINENO"; then :
47200 glibcxx_cv_func_hypotf_use=yes
47201 else
47202 glibcxx_cv_func_hypotf_use=no
47204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47205 ac_ext=c
47206 ac_cpp='$CPP $CPPFLAGS'
47207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
47216 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
47218 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
47219 for ac_func in hypotf
47220 do :
47221 ac_fn_c_check_func "$LINENO" "hypotf" "ac_cv_func_hypotf"
47222 if test "x$ac_cv_func_hypotf" = xyes; then :
47223 cat >>confdefs.h <<_ACEOF
47224 #define HAVE_HYPOTF 1
47225 _ACEOF
47228 done
47234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
47235 $as_echo_n "checking for ldexpf declaration... " >&6; }
47236 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
47237 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
47238 $as_echo_n "(cached) " >&6
47239 else
47242 ac_ext=cpp
47243 ac_cpp='$CXXCPP $CPPFLAGS'
47244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47249 /* end confdefs.h. */
47250 #include <math.h>
47252 main ()
47254 ldexpf(0, 0);
47256 return 0;
47258 _ACEOF
47259 if ac_fn_cxx_try_compile "$LINENO"; then :
47260 glibcxx_cv_func_ldexpf_use=yes
47261 else
47262 glibcxx_cv_func_ldexpf_use=no
47264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47265 ac_ext=c
47266 ac_cpp='$CPP $CPPFLAGS'
47267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
47276 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
47278 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
47279 for ac_func in ldexpf
47280 do :
47281 ac_fn_c_check_func "$LINENO" "ldexpf" "ac_cv_func_ldexpf"
47282 if test "x$ac_cv_func_ldexpf" = xyes; then :
47283 cat >>confdefs.h <<_ACEOF
47284 #define HAVE_LDEXPF 1
47285 _ACEOF
47288 done
47294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf declaration" >&5
47295 $as_echo_n "checking for logf declaration... " >&6; }
47296 if test x${glibcxx_cv_func_logf_use+set} != xset; then
47297 if ${glibcxx_cv_func_logf_use+:} false; then :
47298 $as_echo_n "(cached) " >&6
47299 else
47302 ac_ext=cpp
47303 ac_cpp='$CXXCPP $CPPFLAGS'
47304 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47305 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47306 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47309 /* end confdefs.h. */
47310 #include <math.h>
47311 #ifdef HAVE_IEEEFP_H
47312 #include <ieeefp.h>
47313 #endif
47316 main ()
47318 logf(0);
47320 return 0;
47322 _ACEOF
47323 if ac_fn_cxx_try_compile "$LINENO"; then :
47324 glibcxx_cv_func_logf_use=yes
47325 else
47326 glibcxx_cv_func_logf_use=no
47328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47329 ac_ext=c
47330 ac_cpp='$CPP $CPPFLAGS'
47331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logf_use" >&5
47340 $as_echo "$glibcxx_cv_func_logf_use" >&6; }
47342 if test x$glibcxx_cv_func_logf_use = x"yes"; then
47343 for ac_func in logf
47344 do :
47345 ac_fn_c_check_func "$LINENO" "logf" "ac_cv_func_logf"
47346 if test "x$ac_cv_func_logf" = xyes; then :
47347 cat >>confdefs.h <<_ACEOF
47348 #define HAVE_LOGF 1
47349 _ACEOF
47352 done
47358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f declaration" >&5
47359 $as_echo_n "checking for log10f declaration... " >&6; }
47360 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
47361 if ${glibcxx_cv_func_log10f_use+:} false; then :
47362 $as_echo_n "(cached) " >&6
47363 else
47366 ac_ext=cpp
47367 ac_cpp='$CXXCPP $CPPFLAGS'
47368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47373 /* end confdefs.h. */
47374 #include <math.h>
47375 #ifdef HAVE_IEEEFP_H
47376 #include <ieeefp.h>
47377 #endif
47380 main ()
47382 log10f(0);
47384 return 0;
47386 _ACEOF
47387 if ac_fn_cxx_try_compile "$LINENO"; then :
47388 glibcxx_cv_func_log10f_use=yes
47389 else
47390 glibcxx_cv_func_log10f_use=no
47392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47393 ac_ext=c
47394 ac_cpp='$CPP $CPPFLAGS'
47395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10f_use" >&5
47404 $as_echo "$glibcxx_cv_func_log10f_use" >&6; }
47406 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
47407 for ac_func in log10f
47408 do :
47409 ac_fn_c_check_func "$LINENO" "log10f" "ac_cv_func_log10f"
47410 if test "x$ac_cv_func_log10f" = xyes; then :
47411 cat >>confdefs.h <<_ACEOF
47412 #define HAVE_LOG10F 1
47413 _ACEOF
47416 done
47422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
47423 $as_echo_n "checking for modff declaration... " >&6; }
47424 if test x${glibcxx_cv_func_modff_use+set} != xset; then
47425 if ${glibcxx_cv_func_modff_use+:} false; then :
47426 $as_echo_n "(cached) " >&6
47427 else
47430 ac_ext=cpp
47431 ac_cpp='$CXXCPP $CPPFLAGS'
47432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47437 /* end confdefs.h. */
47438 #include <math.h>
47440 main ()
47442 modff(0, 0);
47444 return 0;
47446 _ACEOF
47447 if ac_fn_cxx_try_compile "$LINENO"; then :
47448 glibcxx_cv_func_modff_use=yes
47449 else
47450 glibcxx_cv_func_modff_use=no
47452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47453 ac_ext=c
47454 ac_cpp='$CPP $CPPFLAGS'
47455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
47464 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
47466 if test x$glibcxx_cv_func_modff_use = x"yes"; then
47467 for ac_func in modff
47468 do :
47469 ac_fn_c_check_func "$LINENO" "modff" "ac_cv_func_modff"
47470 if test "x$ac_cv_func_modff" = xyes; then :
47471 cat >>confdefs.h <<_ACEOF
47472 #define HAVE_MODFF 1
47473 _ACEOF
47476 done
47482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modf declaration" >&5
47483 $as_echo_n "checking for modf declaration... " >&6; }
47484 if test x${glibcxx_cv_func_modf_use+set} != xset; then
47485 if ${glibcxx_cv_func_modf_use+:} false; then :
47486 $as_echo_n "(cached) " >&6
47487 else
47490 ac_ext=cpp
47491 ac_cpp='$CXXCPP $CPPFLAGS'
47492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47497 /* end confdefs.h. */
47498 #include <math.h>
47500 main ()
47502 modf(0, 0);
47504 return 0;
47506 _ACEOF
47507 if ac_fn_cxx_try_compile "$LINENO"; then :
47508 glibcxx_cv_func_modf_use=yes
47509 else
47510 glibcxx_cv_func_modf_use=no
47512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47513 ac_ext=c
47514 ac_cpp='$CPP $CPPFLAGS'
47515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modf_use" >&5
47524 $as_echo "$glibcxx_cv_func_modf_use" >&6; }
47526 if test x$glibcxx_cv_func_modf_use = x"yes"; then
47527 for ac_func in modf
47528 do :
47529 ac_fn_c_check_func "$LINENO" "modf" "ac_cv_func_modf"
47530 if test "x$ac_cv_func_modf" = xyes; then :
47531 cat >>confdefs.h <<_ACEOF
47532 #define HAVE_MODF 1
47533 _ACEOF
47536 done
47542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf declaration" >&5
47543 $as_echo_n "checking for powf declaration... " >&6; }
47544 if test x${glibcxx_cv_func_powf_use+set} != xset; then
47545 if ${glibcxx_cv_func_powf_use+:} false; then :
47546 $as_echo_n "(cached) " >&6
47547 else
47550 ac_ext=cpp
47551 ac_cpp='$CXXCPP $CPPFLAGS'
47552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47557 /* end confdefs.h. */
47558 #include <math.h>
47560 main ()
47562 powf(0, 0);
47564 return 0;
47566 _ACEOF
47567 if ac_fn_cxx_try_compile "$LINENO"; then :
47568 glibcxx_cv_func_powf_use=yes
47569 else
47570 glibcxx_cv_func_powf_use=no
47572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47573 ac_ext=c
47574 ac_cpp='$CPP $CPPFLAGS'
47575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powf_use" >&5
47584 $as_echo "$glibcxx_cv_func_powf_use" >&6; }
47586 if test x$glibcxx_cv_func_powf_use = x"yes"; then
47587 for ac_func in powf
47588 do :
47589 ac_fn_c_check_func "$LINENO" "powf" "ac_cv_func_powf"
47590 if test "x$ac_cv_func_powf" = xyes; then :
47591 cat >>confdefs.h <<_ACEOF
47592 #define HAVE_POWF 1
47593 _ACEOF
47596 done
47602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf declaration" >&5
47603 $as_echo_n "checking for sqrtf declaration... " >&6; }
47604 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
47605 if ${glibcxx_cv_func_sqrtf_use+:} false; then :
47606 $as_echo_n "(cached) " >&6
47607 else
47610 ac_ext=cpp
47611 ac_cpp='$CXXCPP $CPPFLAGS'
47612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47617 /* end confdefs.h. */
47618 #include <math.h>
47619 #ifdef HAVE_IEEEFP_H
47620 #include <ieeefp.h>
47621 #endif
47624 main ()
47626 sqrtf(0);
47628 return 0;
47630 _ACEOF
47631 if ac_fn_cxx_try_compile "$LINENO"; then :
47632 glibcxx_cv_func_sqrtf_use=yes
47633 else
47634 glibcxx_cv_func_sqrtf_use=no
47636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47637 ac_ext=c
47638 ac_cpp='$CPP $CPPFLAGS'
47639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtf_use" >&5
47648 $as_echo "$glibcxx_cv_func_sqrtf_use" >&6; }
47650 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
47651 for ac_func in sqrtf
47652 do :
47653 ac_fn_c_check_func "$LINENO" "sqrtf" "ac_cv_func_sqrtf"
47654 if test "x$ac_cv_func_sqrtf" = xyes; then :
47655 cat >>confdefs.h <<_ACEOF
47656 #define HAVE_SQRTF 1
47657 _ACEOF
47660 done
47666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosf declaration" >&5
47667 $as_echo_n "checking for sincosf declaration... " >&6; }
47668 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
47669 if ${glibcxx_cv_func_sincosf_use+:} false; then :
47670 $as_echo_n "(cached) " >&6
47671 else
47674 ac_ext=cpp
47675 ac_cpp='$CXXCPP $CPPFLAGS'
47676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47681 /* end confdefs.h. */
47682 #include <math.h>
47684 main ()
47686 sincosf(0, 0, 0);
47688 return 0;
47690 _ACEOF
47691 if ac_fn_cxx_try_compile "$LINENO"; then :
47692 glibcxx_cv_func_sincosf_use=yes
47693 else
47694 glibcxx_cv_func_sincosf_use=no
47696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47697 ac_ext=c
47698 ac_cpp='$CPP $CPPFLAGS'
47699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosf_use" >&5
47708 $as_echo "$glibcxx_cv_func_sincosf_use" >&6; }
47710 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
47711 for ac_func in sincosf
47712 do :
47713 ac_fn_c_check_func "$LINENO" "sincosf" "ac_cv_func_sincosf"
47714 if test "x$ac_cv_func_sincosf" = xyes; then :
47715 cat >>confdefs.h <<_ACEOF
47716 #define HAVE_SINCOSF 1
47717 _ACEOF
47720 done
47726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitef declaration" >&5
47727 $as_echo_n "checking for finitef declaration... " >&6; }
47728 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
47729 if ${glibcxx_cv_func_finitef_use+:} false; then :
47730 $as_echo_n "(cached) " >&6
47731 else
47734 ac_ext=cpp
47735 ac_cpp='$CXXCPP $CPPFLAGS'
47736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47741 /* end confdefs.h. */
47742 #include <math.h>
47743 #ifdef HAVE_IEEEFP_H
47744 #include <ieeefp.h>
47745 #endif
47748 main ()
47750 finitef(0);
47752 return 0;
47754 _ACEOF
47755 if ac_fn_cxx_try_compile "$LINENO"; then :
47756 glibcxx_cv_func_finitef_use=yes
47757 else
47758 glibcxx_cv_func_finitef_use=no
47760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47761 ac_ext=c
47762 ac_cpp='$CPP $CPPFLAGS'
47763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitef_use" >&5
47772 $as_echo "$glibcxx_cv_func_finitef_use" >&6; }
47774 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
47775 for ac_func in finitef
47776 do :
47777 ac_fn_c_check_func "$LINENO" "finitef" "ac_cv_func_finitef"
47778 if test "x$ac_cv_func_finitef" = xyes; then :
47779 cat >>confdefs.h <<_ACEOF
47780 #define HAVE_FINITEF 1
47781 _ACEOF
47784 done
47790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double trig functions" >&5
47791 $as_echo_n "checking for long double trig functions... " >&6; }
47792 if ${glibcxx_cv_func_long_double_trig_use+:} false; then :
47793 $as_echo_n "(cached) " >&6
47794 else
47797 ac_ext=cpp
47798 ac_cpp='$CXXCPP $CPPFLAGS'
47799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47804 /* end confdefs.h. */
47805 #include <math.h>
47807 main ()
47809 acosl (0); asinl (0); atanl (0); cosl (0); sinl (0); tanl (0); coshl (0); sinhl (0); tanhl (0);
47811 return 0;
47813 _ACEOF
47814 if ac_fn_cxx_try_compile "$LINENO"; then :
47815 glibcxx_cv_func_long_double_trig_use=yes
47816 else
47817 glibcxx_cv_func_long_double_trig_use=no
47819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47820 ac_ext=c
47821 ac_cpp='$CPP $CPPFLAGS'
47822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_trig_use" >&5
47829 $as_echo "$glibcxx_cv_func_long_double_trig_use" >&6; }
47830 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
47831 for ac_func in acosl asinl atanl cosl sinl tanl coshl sinhl tanhl
47832 do :
47833 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47834 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
47835 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
47836 cat >>confdefs.h <<_ACEOF
47837 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47838 _ACEOF
47841 done
47847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double round functions" >&5
47848 $as_echo_n "checking for long double round functions... " >&6; }
47849 if ${glibcxx_cv_func_long_double_round_use+:} false; then :
47850 $as_echo_n "(cached) " >&6
47851 else
47854 ac_ext=cpp
47855 ac_cpp='$CXXCPP $CPPFLAGS'
47856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47861 /* end confdefs.h. */
47862 #include <math.h>
47864 main ()
47866 ceill (0); floorl (0);
47868 return 0;
47870 _ACEOF
47871 if ac_fn_cxx_try_compile "$LINENO"; then :
47872 glibcxx_cv_func_long_double_round_use=yes
47873 else
47874 glibcxx_cv_func_long_double_round_use=no
47876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47877 ac_ext=c
47878 ac_cpp='$CPP $CPPFLAGS'
47879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_long_double_round_use" >&5
47886 $as_echo "$glibcxx_cv_func_long_double_round_use" >&6; }
47887 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
47888 for ac_func in ceill floorl
47889 do :
47890 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47891 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
47892 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
47893 cat >>confdefs.h <<_ACEOF
47894 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47895 _ACEOF
47898 done
47905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanl declaration" >&5
47906 $as_echo_n "checking for isnanl declaration... " >&6; }
47907 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
47908 if ${glibcxx_cv_func_isnanl_use+:} false; then :
47909 $as_echo_n "(cached) " >&6
47910 else
47913 ac_ext=cpp
47914 ac_cpp='$CXXCPP $CPPFLAGS'
47915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47920 /* end confdefs.h. */
47921 #include <math.h>
47922 #ifdef HAVE_IEEEFP_H
47923 #include <ieeefp.h>
47924 #endif
47927 main ()
47929 isnanl(0);
47931 return 0;
47933 _ACEOF
47934 if ac_fn_cxx_try_compile "$LINENO"; then :
47935 glibcxx_cv_func_isnanl_use=yes
47936 else
47937 glibcxx_cv_func_isnanl_use=no
47939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47940 ac_ext=c
47941 ac_cpp='$CPP $CPPFLAGS'
47942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isnanl_use" >&5
47951 $as_echo "$glibcxx_cv_func_isnanl_use" >&6; }
47953 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
47954 for ac_func in isnanl
47955 do :
47956 ac_fn_c_check_func "$LINENO" "isnanl" "ac_cv_func_isnanl"
47957 if test "x$ac_cv_func_isnanl" = xyes; then :
47958 cat >>confdefs.h <<_ACEOF
47959 #define HAVE_ISNANL 1
47960 _ACEOF
47963 done
47969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinfl declaration" >&5
47970 $as_echo_n "checking for isinfl declaration... " >&6; }
47971 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
47972 if ${glibcxx_cv_func_isinfl_use+:} false; then :
47973 $as_echo_n "(cached) " >&6
47974 else
47977 ac_ext=cpp
47978 ac_cpp='$CXXCPP $CPPFLAGS'
47979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47984 /* end confdefs.h. */
47985 #include <math.h>
47986 #ifdef HAVE_IEEEFP_H
47987 #include <ieeefp.h>
47988 #endif
47991 main ()
47993 isinfl(0);
47995 return 0;
47997 _ACEOF
47998 if ac_fn_cxx_try_compile "$LINENO"; then :
47999 glibcxx_cv_func_isinfl_use=yes
48000 else
48001 glibcxx_cv_func_isinfl_use=no
48003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48004 ac_ext=c
48005 ac_cpp='$CPP $CPPFLAGS'
48006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_isinfl_use" >&5
48015 $as_echo "$glibcxx_cv_func_isinfl_use" >&6; }
48017 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
48018 for ac_func in isinfl
48019 do :
48020 ac_fn_c_check_func "$LINENO" "isinfl" "ac_cv_func_isinfl"
48021 if test "x$ac_cv_func_isinfl" = xyes; then :
48022 cat >>confdefs.h <<_ACEOF
48023 #define HAVE_ISINFL 1
48024 _ACEOF
48027 done
48033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
48034 $as_echo_n "checking for atan2l declaration... " >&6; }
48035 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
48036 if ${glibcxx_cv_func_atan2l_use+:} false; then :
48037 $as_echo_n "(cached) " >&6
48038 else
48041 ac_ext=cpp
48042 ac_cpp='$CXXCPP $CPPFLAGS'
48043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48048 /* end confdefs.h. */
48049 #include <math.h>
48051 main ()
48053 atan2l(0, 0);
48055 return 0;
48057 _ACEOF
48058 if ac_fn_cxx_try_compile "$LINENO"; then :
48059 glibcxx_cv_func_atan2l_use=yes
48060 else
48061 glibcxx_cv_func_atan2l_use=no
48063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48064 ac_ext=c
48065 ac_cpp='$CPP $CPPFLAGS'
48066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
48075 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
48077 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
48078 for ac_func in atan2l
48079 do :
48080 ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l"
48081 if test "x$ac_cv_func_atan2l" = xyes; then :
48082 cat >>confdefs.h <<_ACEOF
48083 #define HAVE_ATAN2L 1
48084 _ACEOF
48087 done
48093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
48094 $as_echo_n "checking for expl declaration... " >&6; }
48095 if test x${glibcxx_cv_func_expl_use+set} != xset; then
48096 if ${glibcxx_cv_func_expl_use+:} false; then :
48097 $as_echo_n "(cached) " >&6
48098 else
48101 ac_ext=cpp
48102 ac_cpp='$CXXCPP $CPPFLAGS'
48103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48108 /* end confdefs.h. */
48109 #include <math.h>
48110 #ifdef HAVE_IEEEFP_H
48111 #include <ieeefp.h>
48112 #endif
48115 main ()
48117 expl(0);
48119 return 0;
48121 _ACEOF
48122 if ac_fn_cxx_try_compile "$LINENO"; then :
48123 glibcxx_cv_func_expl_use=yes
48124 else
48125 glibcxx_cv_func_expl_use=no
48127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48128 ac_ext=c
48129 ac_cpp='$CPP $CPPFLAGS'
48130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
48139 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
48141 if test x$glibcxx_cv_func_expl_use = x"yes"; then
48142 for ac_func in expl
48143 do :
48144 ac_fn_c_check_func "$LINENO" "expl" "ac_cv_func_expl"
48145 if test "x$ac_cv_func_expl" = xyes; then :
48146 cat >>confdefs.h <<_ACEOF
48147 #define HAVE_EXPL 1
48148 _ACEOF
48151 done
48157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
48158 $as_echo_n "checking for fabsl declaration... " >&6; }
48159 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
48160 if ${glibcxx_cv_func_fabsl_use+:} false; then :
48161 $as_echo_n "(cached) " >&6
48162 else
48165 ac_ext=cpp
48166 ac_cpp='$CXXCPP $CPPFLAGS'
48167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48172 /* end confdefs.h. */
48173 #include <math.h>
48174 #ifdef HAVE_IEEEFP_H
48175 #include <ieeefp.h>
48176 #endif
48179 main ()
48181 fabsl(0);
48183 return 0;
48185 _ACEOF
48186 if ac_fn_cxx_try_compile "$LINENO"; then :
48187 glibcxx_cv_func_fabsl_use=yes
48188 else
48189 glibcxx_cv_func_fabsl_use=no
48191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48192 ac_ext=c
48193 ac_cpp='$CPP $CPPFLAGS'
48194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
48203 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
48205 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
48206 for ac_func in fabsl
48207 do :
48208 ac_fn_c_check_func "$LINENO" "fabsl" "ac_cv_func_fabsl"
48209 if test "x$ac_cv_func_fabsl" = xyes; then :
48210 cat >>confdefs.h <<_ACEOF
48211 #define HAVE_FABSL 1
48212 _ACEOF
48215 done
48221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
48222 $as_echo_n "checking for fmodl declaration... " >&6; }
48223 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
48224 if ${glibcxx_cv_func_fmodl_use+:} false; then :
48225 $as_echo_n "(cached) " >&6
48226 else
48229 ac_ext=cpp
48230 ac_cpp='$CXXCPP $CPPFLAGS'
48231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48236 /* end confdefs.h. */
48237 #include <math.h>
48239 main ()
48241 fmodl(0, 0);
48243 return 0;
48245 _ACEOF
48246 if ac_fn_cxx_try_compile "$LINENO"; then :
48247 glibcxx_cv_func_fmodl_use=yes
48248 else
48249 glibcxx_cv_func_fmodl_use=no
48251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48252 ac_ext=c
48253 ac_cpp='$CPP $CPPFLAGS'
48254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
48263 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
48265 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
48266 for ac_func in fmodl
48267 do :
48268 ac_fn_c_check_func "$LINENO" "fmodl" "ac_cv_func_fmodl"
48269 if test "x$ac_cv_func_fmodl" = xyes; then :
48270 cat >>confdefs.h <<_ACEOF
48271 #define HAVE_FMODL 1
48272 _ACEOF
48275 done
48281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
48282 $as_echo_n "checking for frexpl declaration... " >&6; }
48283 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
48284 if ${glibcxx_cv_func_frexpl_use+:} false; then :
48285 $as_echo_n "(cached) " >&6
48286 else
48289 ac_ext=cpp
48290 ac_cpp='$CXXCPP $CPPFLAGS'
48291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48296 /* end confdefs.h. */
48297 #include <math.h>
48299 main ()
48301 frexpl(0, 0);
48303 return 0;
48305 _ACEOF
48306 if ac_fn_cxx_try_compile "$LINENO"; then :
48307 glibcxx_cv_func_frexpl_use=yes
48308 else
48309 glibcxx_cv_func_frexpl_use=no
48311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48312 ac_ext=c
48313 ac_cpp='$CPP $CPPFLAGS'
48314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
48323 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
48325 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
48326 for ac_func in frexpl
48327 do :
48328 ac_fn_c_check_func "$LINENO" "frexpl" "ac_cv_func_frexpl"
48329 if test "x$ac_cv_func_frexpl" = xyes; then :
48330 cat >>confdefs.h <<_ACEOF
48331 #define HAVE_FREXPL 1
48332 _ACEOF
48335 done
48341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
48342 $as_echo_n "checking for hypotl declaration... " >&6; }
48343 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
48344 if ${glibcxx_cv_func_hypotl_use+:} false; then :
48345 $as_echo_n "(cached) " >&6
48346 else
48349 ac_ext=cpp
48350 ac_cpp='$CXXCPP $CPPFLAGS'
48351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48356 /* end confdefs.h. */
48357 #include <math.h>
48359 main ()
48361 hypotl(0, 0);
48363 return 0;
48365 _ACEOF
48366 if ac_fn_cxx_try_compile "$LINENO"; then :
48367 glibcxx_cv_func_hypotl_use=yes
48368 else
48369 glibcxx_cv_func_hypotl_use=no
48371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48372 ac_ext=c
48373 ac_cpp='$CPP $CPPFLAGS'
48374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
48383 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
48385 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
48386 for ac_func in hypotl
48387 do :
48388 ac_fn_c_check_func "$LINENO" "hypotl" "ac_cv_func_hypotl"
48389 if test "x$ac_cv_func_hypotl" = xyes; then :
48390 cat >>confdefs.h <<_ACEOF
48391 #define HAVE_HYPOTL 1
48392 _ACEOF
48395 done
48401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
48402 $as_echo_n "checking for ldexpl declaration... " >&6; }
48403 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
48404 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
48405 $as_echo_n "(cached) " >&6
48406 else
48409 ac_ext=cpp
48410 ac_cpp='$CXXCPP $CPPFLAGS'
48411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48416 /* end confdefs.h. */
48417 #include <math.h>
48419 main ()
48421 ldexpl(0, 0);
48423 return 0;
48425 _ACEOF
48426 if ac_fn_cxx_try_compile "$LINENO"; then :
48427 glibcxx_cv_func_ldexpl_use=yes
48428 else
48429 glibcxx_cv_func_ldexpl_use=no
48431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48432 ac_ext=c
48433 ac_cpp='$CPP $CPPFLAGS'
48434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
48443 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
48445 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
48446 for ac_func in ldexpl
48447 do :
48448 ac_fn_c_check_func "$LINENO" "ldexpl" "ac_cv_func_ldexpl"
48449 if test "x$ac_cv_func_ldexpl" = xyes; then :
48450 cat >>confdefs.h <<_ACEOF
48451 #define HAVE_LDEXPL 1
48452 _ACEOF
48455 done
48461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
48462 $as_echo_n "checking for logl declaration... " >&6; }
48463 if test x${glibcxx_cv_func_logl_use+set} != xset; then
48464 if ${glibcxx_cv_func_logl_use+:} false; then :
48465 $as_echo_n "(cached) " >&6
48466 else
48469 ac_ext=cpp
48470 ac_cpp='$CXXCPP $CPPFLAGS'
48471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48476 /* end confdefs.h. */
48477 #include <math.h>
48478 #ifdef HAVE_IEEEFP_H
48479 #include <ieeefp.h>
48480 #endif
48483 main ()
48485 logl(0);
48487 return 0;
48489 _ACEOF
48490 if ac_fn_cxx_try_compile "$LINENO"; then :
48491 glibcxx_cv_func_logl_use=yes
48492 else
48493 glibcxx_cv_func_logl_use=no
48495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48496 ac_ext=c
48497 ac_cpp='$CPP $CPPFLAGS'
48498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
48507 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
48509 if test x$glibcxx_cv_func_logl_use = x"yes"; then
48510 for ac_func in logl
48511 do :
48512 ac_fn_c_check_func "$LINENO" "logl" "ac_cv_func_logl"
48513 if test "x$ac_cv_func_logl" = xyes; then :
48514 cat >>confdefs.h <<_ACEOF
48515 #define HAVE_LOGL 1
48516 _ACEOF
48519 done
48525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
48526 $as_echo_n "checking for log10l declaration... " >&6; }
48527 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
48528 if ${glibcxx_cv_func_log10l_use+:} false; then :
48529 $as_echo_n "(cached) " >&6
48530 else
48533 ac_ext=cpp
48534 ac_cpp='$CXXCPP $CPPFLAGS'
48535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48540 /* end confdefs.h. */
48541 #include <math.h>
48542 #ifdef HAVE_IEEEFP_H
48543 #include <ieeefp.h>
48544 #endif
48547 main ()
48549 log10l(0);
48551 return 0;
48553 _ACEOF
48554 if ac_fn_cxx_try_compile "$LINENO"; then :
48555 glibcxx_cv_func_log10l_use=yes
48556 else
48557 glibcxx_cv_func_log10l_use=no
48559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48560 ac_ext=c
48561 ac_cpp='$CPP $CPPFLAGS'
48562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
48571 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
48573 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
48574 for ac_func in log10l
48575 do :
48576 ac_fn_c_check_func "$LINENO" "log10l" "ac_cv_func_log10l"
48577 if test "x$ac_cv_func_log10l" = xyes; then :
48578 cat >>confdefs.h <<_ACEOF
48579 #define HAVE_LOG10L 1
48580 _ACEOF
48583 done
48589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
48590 $as_echo_n "checking for modfl declaration... " >&6; }
48591 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
48592 if ${glibcxx_cv_func_modfl_use+:} false; then :
48593 $as_echo_n "(cached) " >&6
48594 else
48597 ac_ext=cpp
48598 ac_cpp='$CXXCPP $CPPFLAGS'
48599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48604 /* end confdefs.h. */
48605 #include <math.h>
48607 main ()
48609 modfl(0, 0);
48611 return 0;
48613 _ACEOF
48614 if ac_fn_cxx_try_compile "$LINENO"; then :
48615 glibcxx_cv_func_modfl_use=yes
48616 else
48617 glibcxx_cv_func_modfl_use=no
48619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48620 ac_ext=c
48621 ac_cpp='$CPP $CPPFLAGS'
48622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
48631 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
48633 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
48634 for ac_func in modfl
48635 do :
48636 ac_fn_c_check_func "$LINENO" "modfl" "ac_cv_func_modfl"
48637 if test "x$ac_cv_func_modfl" = xyes; then :
48638 cat >>confdefs.h <<_ACEOF
48639 #define HAVE_MODFL 1
48640 _ACEOF
48643 done
48649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
48650 $as_echo_n "checking for powl declaration... " >&6; }
48651 if test x${glibcxx_cv_func_powl_use+set} != xset; then
48652 if ${glibcxx_cv_func_powl_use+:} false; then :
48653 $as_echo_n "(cached) " >&6
48654 else
48657 ac_ext=cpp
48658 ac_cpp='$CXXCPP $CPPFLAGS'
48659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48664 /* end confdefs.h. */
48665 #include <math.h>
48667 main ()
48669 powl(0, 0);
48671 return 0;
48673 _ACEOF
48674 if ac_fn_cxx_try_compile "$LINENO"; then :
48675 glibcxx_cv_func_powl_use=yes
48676 else
48677 glibcxx_cv_func_powl_use=no
48679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48680 ac_ext=c
48681 ac_cpp='$CPP $CPPFLAGS'
48682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
48691 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
48693 if test x$glibcxx_cv_func_powl_use = x"yes"; then
48694 for ac_func in powl
48695 do :
48696 ac_fn_c_check_func "$LINENO" "powl" "ac_cv_func_powl"
48697 if test "x$ac_cv_func_powl" = xyes; then :
48698 cat >>confdefs.h <<_ACEOF
48699 #define HAVE_POWL 1
48700 _ACEOF
48703 done
48709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
48710 $as_echo_n "checking for sqrtl declaration... " >&6; }
48711 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
48712 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
48713 $as_echo_n "(cached) " >&6
48714 else
48717 ac_ext=cpp
48718 ac_cpp='$CXXCPP $CPPFLAGS'
48719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48724 /* end confdefs.h. */
48725 #include <math.h>
48726 #ifdef HAVE_IEEEFP_H
48727 #include <ieeefp.h>
48728 #endif
48731 main ()
48733 sqrtl(0);
48735 return 0;
48737 _ACEOF
48738 if ac_fn_cxx_try_compile "$LINENO"; then :
48739 glibcxx_cv_func_sqrtl_use=yes
48740 else
48741 glibcxx_cv_func_sqrtl_use=no
48743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48744 ac_ext=c
48745 ac_cpp='$CPP $CPPFLAGS'
48746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
48755 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
48757 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
48758 for ac_func in sqrtl
48759 do :
48760 ac_fn_c_check_func "$LINENO" "sqrtl" "ac_cv_func_sqrtl"
48761 if test "x$ac_cv_func_sqrtl" = xyes; then :
48762 cat >>confdefs.h <<_ACEOF
48763 #define HAVE_SQRTL 1
48764 _ACEOF
48767 done
48773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sincosl declaration" >&5
48774 $as_echo_n "checking for sincosl declaration... " >&6; }
48775 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
48776 if ${glibcxx_cv_func_sincosl_use+:} false; then :
48777 $as_echo_n "(cached) " >&6
48778 else
48781 ac_ext=cpp
48782 ac_cpp='$CXXCPP $CPPFLAGS'
48783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48788 /* end confdefs.h. */
48789 #include <math.h>
48791 main ()
48793 sincosl(0, 0, 0);
48795 return 0;
48797 _ACEOF
48798 if ac_fn_cxx_try_compile "$LINENO"; then :
48799 glibcxx_cv_func_sincosl_use=yes
48800 else
48801 glibcxx_cv_func_sincosl_use=no
48803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48804 ac_ext=c
48805 ac_cpp='$CPP $CPPFLAGS'
48806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sincosl_use" >&5
48815 $as_echo "$glibcxx_cv_func_sincosl_use" >&6; }
48817 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
48818 for ac_func in sincosl
48819 do :
48820 ac_fn_c_check_func "$LINENO" "sincosl" "ac_cv_func_sincosl"
48821 if test "x$ac_cv_func_sincosl" = xyes; then :
48822 cat >>confdefs.h <<_ACEOF
48823 #define HAVE_SINCOSL 1
48824 _ACEOF
48827 done
48833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finitel declaration" >&5
48834 $as_echo_n "checking for finitel declaration... " >&6; }
48835 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
48836 if ${glibcxx_cv_func_finitel_use+:} false; then :
48837 $as_echo_n "(cached) " >&6
48838 else
48841 ac_ext=cpp
48842 ac_cpp='$CXXCPP $CPPFLAGS'
48843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48848 /* end confdefs.h. */
48849 #include <math.h>
48850 #ifdef HAVE_IEEEFP_H
48851 #include <ieeefp.h>
48852 #endif
48855 main ()
48857 finitel(0);
48859 return 0;
48861 _ACEOF
48862 if ac_fn_cxx_try_compile "$LINENO"; then :
48863 glibcxx_cv_func_finitel_use=yes
48864 else
48865 glibcxx_cv_func_finitel_use=no
48867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48868 ac_ext=c
48869 ac_cpp='$CPP $CPPFLAGS'
48870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_finitel_use" >&5
48879 $as_echo "$glibcxx_cv_func_finitel_use" >&6; }
48881 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
48882 for ac_func in finitel
48883 do :
48884 ac_fn_c_check_func "$LINENO" "finitel" "ac_cv_func_finitel"
48885 if test "x$ac_cv_func_finitel" = xyes; then :
48886 cat >>confdefs.h <<_ACEOF
48887 #define HAVE_FINITEL 1
48888 _ACEOF
48891 done
48896 LIBS="$ac_save_LIBS"
48897 CXXFLAGS="$ac_save_CXXFLAGS"
48900 ac_test_CXXFLAGS="${CXXFLAGS+set}"
48901 ac_save_CXXFLAGS="$CXXFLAGS"
48902 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
48905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5
48906 $as_echo_n "checking for at_quick_exit declaration... " >&6; }
48907 if test x${glibcxx_cv_func_at_quick_exit_use+set} != xset; then
48908 if ${glibcxx_cv_func_at_quick_exit_use+:} false; then :
48909 $as_echo_n "(cached) " >&6
48910 else
48913 ac_ext=cpp
48914 ac_cpp='$CXXCPP $CPPFLAGS'
48915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48920 /* end confdefs.h. */
48921 #include <stdlib.h>
48923 main ()
48925 at_quick_exit(0);
48927 return 0;
48929 _ACEOF
48930 if ac_fn_cxx_try_compile "$LINENO"; then :
48931 glibcxx_cv_func_at_quick_exit_use=yes
48932 else
48933 glibcxx_cv_func_at_quick_exit_use=no
48935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48936 ac_ext=c
48937 ac_cpp='$CPP $CPPFLAGS'
48938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_at_quick_exit_use" >&5
48947 $as_echo "$glibcxx_cv_func_at_quick_exit_use" >&6; }
48948 if test x$glibcxx_cv_func_at_quick_exit_use = x"yes"; then
48949 for ac_func in at_quick_exit
48950 do :
48951 ac_fn_c_check_func "$LINENO" "at_quick_exit" "ac_cv_func_at_quick_exit"
48952 if test "x$ac_cv_func_at_quick_exit" = xyes; then :
48953 cat >>confdefs.h <<_ACEOF
48954 #define HAVE_AT_QUICK_EXIT 1
48955 _ACEOF
48958 done
48963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quick_exit declaration" >&5
48964 $as_echo_n "checking for quick_exit declaration... " >&6; }
48965 if test x${glibcxx_cv_func_quick_exit_use+set} != xset; then
48966 if ${glibcxx_cv_func_quick_exit_use+:} false; then :
48967 $as_echo_n "(cached) " >&6
48968 else
48971 ac_ext=cpp
48972 ac_cpp='$CXXCPP $CPPFLAGS'
48973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48978 /* end confdefs.h. */
48979 #include <stdlib.h>
48981 main ()
48983 quick_exit(0);
48985 return 0;
48987 _ACEOF
48988 if ac_fn_cxx_try_compile "$LINENO"; then :
48989 glibcxx_cv_func_quick_exit_use=yes
48990 else
48991 glibcxx_cv_func_quick_exit_use=no
48993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48994 ac_ext=c
48995 ac_cpp='$CPP $CPPFLAGS'
48996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_quick_exit_use" >&5
49005 $as_echo "$glibcxx_cv_func_quick_exit_use" >&6; }
49006 if test x$glibcxx_cv_func_quick_exit_use = x"yes"; then
49007 for ac_func in quick_exit
49008 do :
49009 ac_fn_c_check_func "$LINENO" "quick_exit" "ac_cv_func_quick_exit"
49010 if test "x$ac_cv_func_quick_exit" = xyes; then :
49011 cat >>confdefs.h <<_ACEOF
49012 #define HAVE_QUICK_EXIT 1
49013 _ACEOF
49016 done
49021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold declaration" >&5
49022 $as_echo_n "checking for strtold declaration... " >&6; }
49023 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
49024 if ${glibcxx_cv_func_strtold_use+:} false; then :
49025 $as_echo_n "(cached) " >&6
49026 else
49029 ac_ext=cpp
49030 ac_cpp='$CXXCPP $CPPFLAGS'
49031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49036 /* end confdefs.h. */
49037 #include <stdlib.h>
49039 main ()
49041 strtold(0, 0);
49043 return 0;
49045 _ACEOF
49046 if ac_fn_cxx_try_compile "$LINENO"; then :
49047 glibcxx_cv_func_strtold_use=yes
49048 else
49049 glibcxx_cv_func_strtold_use=no
49051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49052 ac_ext=c
49053 ac_cpp='$CPP $CPPFLAGS'
49054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtold_use" >&5
49063 $as_echo "$glibcxx_cv_func_strtold_use" >&6; }
49064 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
49065 for ac_func in strtold
49066 do :
49067 ac_fn_c_check_func "$LINENO" "strtold" "ac_cv_func_strtold"
49068 if test "x$ac_cv_func_strtold" = xyes; then :
49069 cat >>confdefs.h <<_ACEOF
49070 #define HAVE_STRTOLD 1
49071 _ACEOF
49074 done
49079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtof declaration" >&5
49080 $as_echo_n "checking for strtof declaration... " >&6; }
49081 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
49082 if ${glibcxx_cv_func_strtof_use+:} false; then :
49083 $as_echo_n "(cached) " >&6
49084 else
49087 ac_ext=cpp
49088 ac_cpp='$CXXCPP $CPPFLAGS'
49089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49094 /* end confdefs.h. */
49095 #include <stdlib.h>
49097 main ()
49099 strtof(0, 0);
49101 return 0;
49103 _ACEOF
49104 if ac_fn_cxx_try_compile "$LINENO"; then :
49105 glibcxx_cv_func_strtof_use=yes
49106 else
49107 glibcxx_cv_func_strtof_use=no
49109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49110 ac_ext=c
49111 ac_cpp='$CPP $CPPFLAGS'
49112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_strtof_use" >&5
49121 $as_echo "$glibcxx_cv_func_strtof_use" >&6; }
49122 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
49123 for ac_func in strtof
49124 do :
49125 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
49126 if test "x$ac_cv_func_strtof" = xyes; then :
49127 cat >>confdefs.h <<_ACEOF
49128 #define HAVE_STRTOF 1
49129 _ACEOF
49132 done
49137 CXXFLAGS="$ac_save_CXXFLAGS"
49140 *-vxworks*)
49141 $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
49143 $as_echo "#define HAVE_ASINF 1" >>confdefs.h
49145 $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
49147 $as_echo "#define HAVE_ATANF 1" >>confdefs.h
49149 $as_echo "#define HAVE_CEILF 1" >>confdefs.h
49151 $as_echo "#define HAVE_COSF 1" >>confdefs.h
49153 $as_echo "#define HAVE_COSHF 1" >>confdefs.h
49155 $as_echo "#define HAVE_EXPF 1" >>confdefs.h
49157 $as_echo "#define HAVE_FABSF 1" >>confdefs.h
49159 $as_echo "#define HAVE_FLOORF 1" >>confdefs.h
49161 $as_echo "#define HAVE_FMODF 1" >>confdefs.h
49163 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
49165 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
49167 $as_echo "#define HAVE_LOGF 1" >>confdefs.h
49169 $as_echo "#define HAVE_POWF 1" >>confdefs.h
49171 $as_echo "#define HAVE_SINF 1" >>confdefs.h
49173 $as_echo "#define HAVE_SINHF 1" >>confdefs.h
49175 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
49177 $as_echo "#define HAVE_TANF 1" >>confdefs.h
49179 $as_echo "#define HAVE_TANHF 1" >>confdefs.h
49185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl declaration" >&5
49186 $as_echo_n "checking for acosl declaration... " >&6; }
49187 if ${glibcxx_cv_func_acosl_use+:} false; then :
49188 $as_echo_n "(cached) " >&6
49189 else
49192 ac_ext=c
49193 ac_cpp='$CPP $CPPFLAGS'
49194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49199 /* end confdefs.h. */
49201 #include <math.h>
49202 #ifdef HAVE_IEEEFP_H
49203 # include <ieeefp.h>
49204 #endif
49205 #undef acosl
49208 main ()
49211 void (*f)(void) = (void (*)(void))acosl;
49214 return 0;
49216 _ACEOF
49217 if ac_fn_c_try_compile "$LINENO"; then :
49218 glibcxx_cv_func_acosl_use=yes
49220 else
49221 glibcxx_cv_func_acosl_use=no
49223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_acosl_use" >&5
49226 $as_echo "$glibcxx_cv_func_acosl_use" >&6; }
49227 if test "x$glibcxx_cv_func_acosl_use" = xyes; then
49228 cat >>confdefs.h <<_ACEOF
49229 #define HAVE_ACOSL 1
49230 _ACEOF
49236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl declaration" >&5
49237 $as_echo_n "checking for asinl declaration... " >&6; }
49238 if ${glibcxx_cv_func_asinl_use+:} false; then :
49239 $as_echo_n "(cached) " >&6
49240 else
49243 ac_ext=c
49244 ac_cpp='$CPP $CPPFLAGS'
49245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49250 /* end confdefs.h. */
49252 #include <math.h>
49253 #ifdef HAVE_IEEEFP_H
49254 # include <ieeefp.h>
49255 #endif
49256 #undef asinl
49259 main ()
49262 void (*f)(void) = (void (*)(void))asinl;
49265 return 0;
49267 _ACEOF
49268 if ac_fn_c_try_compile "$LINENO"; then :
49269 glibcxx_cv_func_asinl_use=yes
49271 else
49272 glibcxx_cv_func_asinl_use=no
49274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_asinl_use" >&5
49277 $as_echo "$glibcxx_cv_func_asinl_use" >&6; }
49278 if test "x$glibcxx_cv_func_asinl_use" = xyes; then
49279 cat >>confdefs.h <<_ACEOF
49280 #define HAVE_ASINL 1
49281 _ACEOF
49287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l declaration" >&5
49288 $as_echo_n "checking for atan2l declaration... " >&6; }
49289 if ${glibcxx_cv_func_atan2l_use+:} false; then :
49290 $as_echo_n "(cached) " >&6
49291 else
49294 ac_ext=c
49295 ac_cpp='$CPP $CPPFLAGS'
49296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49301 /* end confdefs.h. */
49303 #include <math.h>
49304 #ifdef HAVE_IEEEFP_H
49305 # include <ieeefp.h>
49306 #endif
49307 #undef atan2l
49310 main ()
49313 void (*f)(void) = (void (*)(void))atan2l;
49316 return 0;
49318 _ACEOF
49319 if ac_fn_c_try_compile "$LINENO"; then :
49320 glibcxx_cv_func_atan2l_use=yes
49322 else
49323 glibcxx_cv_func_atan2l_use=no
49325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atan2l_use" >&5
49328 $as_echo "$glibcxx_cv_func_atan2l_use" >&6; }
49329 if test "x$glibcxx_cv_func_atan2l_use" = xyes; then
49330 cat >>confdefs.h <<_ACEOF
49331 #define HAVE_ATAN2L 1
49332 _ACEOF
49338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl declaration" >&5
49339 $as_echo_n "checking for atanl declaration... " >&6; }
49340 if ${glibcxx_cv_func_atanl_use+:} false; then :
49341 $as_echo_n "(cached) " >&6
49342 else
49345 ac_ext=c
49346 ac_cpp='$CPP $CPPFLAGS'
49347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49352 /* end confdefs.h. */
49354 #include <math.h>
49355 #ifdef HAVE_IEEEFP_H
49356 # include <ieeefp.h>
49357 #endif
49358 #undef atanl
49361 main ()
49364 void (*f)(void) = (void (*)(void))atanl;
49367 return 0;
49369 _ACEOF
49370 if ac_fn_c_try_compile "$LINENO"; then :
49371 glibcxx_cv_func_atanl_use=yes
49373 else
49374 glibcxx_cv_func_atanl_use=no
49376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_atanl_use" >&5
49379 $as_echo "$glibcxx_cv_func_atanl_use" >&6; }
49380 if test "x$glibcxx_cv_func_atanl_use" = xyes; then
49381 cat >>confdefs.h <<_ACEOF
49382 #define HAVE_ATANL 1
49383 _ACEOF
49389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill declaration" >&5
49390 $as_echo_n "checking for ceill declaration... " >&6; }
49391 if ${glibcxx_cv_func_ceill_use+:} false; then :
49392 $as_echo_n "(cached) " >&6
49393 else
49396 ac_ext=c
49397 ac_cpp='$CPP $CPPFLAGS'
49398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49403 /* end confdefs.h. */
49405 #include <math.h>
49406 #ifdef HAVE_IEEEFP_H
49407 # include <ieeefp.h>
49408 #endif
49409 #undef ceill
49412 main ()
49415 void (*f)(void) = (void (*)(void))ceill;
49418 return 0;
49420 _ACEOF
49421 if ac_fn_c_try_compile "$LINENO"; then :
49422 glibcxx_cv_func_ceill_use=yes
49424 else
49425 glibcxx_cv_func_ceill_use=no
49427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ceill_use" >&5
49430 $as_echo "$glibcxx_cv_func_ceill_use" >&6; }
49431 if test "x$glibcxx_cv_func_ceill_use" = xyes; then
49432 cat >>confdefs.h <<_ACEOF
49433 #define HAVE_CEILL 1
49434 _ACEOF
49440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl declaration" >&5
49441 $as_echo_n "checking for cosl declaration... " >&6; }
49442 if ${glibcxx_cv_func_cosl_use+:} false; then :
49443 $as_echo_n "(cached) " >&6
49444 else
49447 ac_ext=c
49448 ac_cpp='$CPP $CPPFLAGS'
49449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49454 /* end confdefs.h. */
49456 #include <math.h>
49457 #ifdef HAVE_IEEEFP_H
49458 # include <ieeefp.h>
49459 #endif
49460 #undef cosl
49463 main ()
49466 void (*f)(void) = (void (*)(void))cosl;
49469 return 0;
49471 _ACEOF
49472 if ac_fn_c_try_compile "$LINENO"; then :
49473 glibcxx_cv_func_cosl_use=yes
49475 else
49476 glibcxx_cv_func_cosl_use=no
49478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_cosl_use" >&5
49481 $as_echo "$glibcxx_cv_func_cosl_use" >&6; }
49482 if test "x$glibcxx_cv_func_cosl_use" = xyes; then
49483 cat >>confdefs.h <<_ACEOF
49484 #define HAVE_COSL 1
49485 _ACEOF
49491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl declaration" >&5
49492 $as_echo_n "checking for coshl declaration... " >&6; }
49493 if ${glibcxx_cv_func_coshl_use+:} false; then :
49494 $as_echo_n "(cached) " >&6
49495 else
49498 ac_ext=c
49499 ac_cpp='$CPP $CPPFLAGS'
49500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49505 /* end confdefs.h. */
49507 #include <math.h>
49508 #ifdef HAVE_IEEEFP_H
49509 # include <ieeefp.h>
49510 #endif
49511 #undef coshl
49514 main ()
49517 void (*f)(void) = (void (*)(void))coshl;
49520 return 0;
49522 _ACEOF
49523 if ac_fn_c_try_compile "$LINENO"; then :
49524 glibcxx_cv_func_coshl_use=yes
49526 else
49527 glibcxx_cv_func_coshl_use=no
49529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_coshl_use" >&5
49532 $as_echo "$glibcxx_cv_func_coshl_use" >&6; }
49533 if test "x$glibcxx_cv_func_coshl_use" = xyes; then
49534 cat >>confdefs.h <<_ACEOF
49535 #define HAVE_COSHL 1
49536 _ACEOF
49542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl declaration" >&5
49543 $as_echo_n "checking for expl declaration... " >&6; }
49544 if ${glibcxx_cv_func_expl_use+:} false; then :
49545 $as_echo_n "(cached) " >&6
49546 else
49549 ac_ext=c
49550 ac_cpp='$CPP $CPPFLAGS'
49551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49556 /* end confdefs.h. */
49558 #include <math.h>
49559 #ifdef HAVE_IEEEFP_H
49560 # include <ieeefp.h>
49561 #endif
49562 #undef expl
49565 main ()
49568 void (*f)(void) = (void (*)(void))expl;
49571 return 0;
49573 _ACEOF
49574 if ac_fn_c_try_compile "$LINENO"; then :
49575 glibcxx_cv_func_expl_use=yes
49577 else
49578 glibcxx_cv_func_expl_use=no
49580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_expl_use" >&5
49583 $as_echo "$glibcxx_cv_func_expl_use" >&6; }
49584 if test "x$glibcxx_cv_func_expl_use" = xyes; then
49585 cat >>confdefs.h <<_ACEOF
49586 #define HAVE_EXPL 1
49587 _ACEOF
49593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl declaration" >&5
49594 $as_echo_n "checking for fabsl declaration... " >&6; }
49595 if ${glibcxx_cv_func_fabsl_use+:} false; then :
49596 $as_echo_n "(cached) " >&6
49597 else
49600 ac_ext=c
49601 ac_cpp='$CPP $CPPFLAGS'
49602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49607 /* end confdefs.h. */
49609 #include <math.h>
49610 #ifdef HAVE_IEEEFP_H
49611 # include <ieeefp.h>
49612 #endif
49613 #undef fabsl
49616 main ()
49619 void (*f)(void) = (void (*)(void))fabsl;
49622 return 0;
49624 _ACEOF
49625 if ac_fn_c_try_compile "$LINENO"; then :
49626 glibcxx_cv_func_fabsl_use=yes
49628 else
49629 glibcxx_cv_func_fabsl_use=no
49631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fabsl_use" >&5
49634 $as_echo "$glibcxx_cv_func_fabsl_use" >&6; }
49635 if test "x$glibcxx_cv_func_fabsl_use" = xyes; then
49636 cat >>confdefs.h <<_ACEOF
49637 #define HAVE_FABSL 1
49638 _ACEOF
49644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl declaration" >&5
49645 $as_echo_n "checking for floorl declaration... " >&6; }
49646 if ${glibcxx_cv_func_floorl_use+:} false; then :
49647 $as_echo_n "(cached) " >&6
49648 else
49651 ac_ext=c
49652 ac_cpp='$CPP $CPPFLAGS'
49653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49658 /* end confdefs.h. */
49660 #include <math.h>
49661 #ifdef HAVE_IEEEFP_H
49662 # include <ieeefp.h>
49663 #endif
49664 #undef floorl
49667 main ()
49670 void (*f)(void) = (void (*)(void))floorl;
49673 return 0;
49675 _ACEOF
49676 if ac_fn_c_try_compile "$LINENO"; then :
49677 glibcxx_cv_func_floorl_use=yes
49679 else
49680 glibcxx_cv_func_floorl_use=no
49682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_floorl_use" >&5
49685 $as_echo "$glibcxx_cv_func_floorl_use" >&6; }
49686 if test "x$glibcxx_cv_func_floorl_use" = xyes; then
49687 cat >>confdefs.h <<_ACEOF
49688 #define HAVE_FLOORL 1
49689 _ACEOF
49695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl declaration" >&5
49696 $as_echo_n "checking for fmodl declaration... " >&6; }
49697 if ${glibcxx_cv_func_fmodl_use+:} false; then :
49698 $as_echo_n "(cached) " >&6
49699 else
49702 ac_ext=c
49703 ac_cpp='$CPP $CPPFLAGS'
49704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49709 /* end confdefs.h. */
49711 #include <math.h>
49712 #ifdef HAVE_IEEEFP_H
49713 # include <ieeefp.h>
49714 #endif
49715 #undef fmodl
49718 main ()
49721 void (*f)(void) = (void (*)(void))fmodl;
49724 return 0;
49726 _ACEOF
49727 if ac_fn_c_try_compile "$LINENO"; then :
49728 glibcxx_cv_func_fmodl_use=yes
49730 else
49731 glibcxx_cv_func_fmodl_use=no
49733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_fmodl_use" >&5
49736 $as_echo "$glibcxx_cv_func_fmodl_use" >&6; }
49737 if test "x$glibcxx_cv_func_fmodl_use" = xyes; then
49738 cat >>confdefs.h <<_ACEOF
49739 #define HAVE_FMODL 1
49740 _ACEOF
49746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl declaration" >&5
49747 $as_echo_n "checking for frexpl declaration... " >&6; }
49748 if ${glibcxx_cv_func_frexpl_use+:} false; then :
49749 $as_echo_n "(cached) " >&6
49750 else
49753 ac_ext=c
49754 ac_cpp='$CPP $CPPFLAGS'
49755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49760 /* end confdefs.h. */
49762 #include <math.h>
49763 #ifdef HAVE_IEEEFP_H
49764 # include <ieeefp.h>
49765 #endif
49766 #undef frexpl
49769 main ()
49772 void (*f)(void) = (void (*)(void))frexpl;
49775 return 0;
49777 _ACEOF
49778 if ac_fn_c_try_compile "$LINENO"; then :
49779 glibcxx_cv_func_frexpl_use=yes
49781 else
49782 glibcxx_cv_func_frexpl_use=no
49784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpl_use" >&5
49787 $as_echo "$glibcxx_cv_func_frexpl_use" >&6; }
49788 if test "x$glibcxx_cv_func_frexpl_use" = xyes; then
49789 cat >>confdefs.h <<_ACEOF
49790 #define HAVE_FREXPL 1
49791 _ACEOF
49797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl declaration" >&5
49798 $as_echo_n "checking for ldexpl declaration... " >&6; }
49799 if ${glibcxx_cv_func_ldexpl_use+:} false; then :
49800 $as_echo_n "(cached) " >&6
49801 else
49804 ac_ext=c
49805 ac_cpp='$CPP $CPPFLAGS'
49806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49811 /* end confdefs.h. */
49813 #include <math.h>
49814 #ifdef HAVE_IEEEFP_H
49815 # include <ieeefp.h>
49816 #endif
49817 #undef ldexpl
49820 main ()
49823 void (*f)(void) = (void (*)(void))ldexpl;
49826 return 0;
49828 _ACEOF
49829 if ac_fn_c_try_compile "$LINENO"; then :
49830 glibcxx_cv_func_ldexpl_use=yes
49832 else
49833 glibcxx_cv_func_ldexpl_use=no
49835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpl_use" >&5
49838 $as_echo "$glibcxx_cv_func_ldexpl_use" >&6; }
49839 if test "x$glibcxx_cv_func_ldexpl_use" = xyes; then
49840 cat >>confdefs.h <<_ACEOF
49841 #define HAVE_LDEXPL 1
49842 _ACEOF
49848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l declaration" >&5
49849 $as_echo_n "checking for log10l declaration... " >&6; }
49850 if ${glibcxx_cv_func_log10l_use+:} false; then :
49851 $as_echo_n "(cached) " >&6
49852 else
49855 ac_ext=c
49856 ac_cpp='$CPP $CPPFLAGS'
49857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49862 /* end confdefs.h. */
49864 #include <math.h>
49865 #ifdef HAVE_IEEEFP_H
49866 # include <ieeefp.h>
49867 #endif
49868 #undef log10l
49871 main ()
49874 void (*f)(void) = (void (*)(void))log10l;
49877 return 0;
49879 _ACEOF
49880 if ac_fn_c_try_compile "$LINENO"; then :
49881 glibcxx_cv_func_log10l_use=yes
49883 else
49884 glibcxx_cv_func_log10l_use=no
49886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_log10l_use" >&5
49889 $as_echo "$glibcxx_cv_func_log10l_use" >&6; }
49890 if test "x$glibcxx_cv_func_log10l_use" = xyes; then
49891 cat >>confdefs.h <<_ACEOF
49892 #define HAVE_LOG10L 1
49893 _ACEOF
49899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl declaration" >&5
49900 $as_echo_n "checking for logl declaration... " >&6; }
49901 if ${glibcxx_cv_func_logl_use+:} false; then :
49902 $as_echo_n "(cached) " >&6
49903 else
49906 ac_ext=c
49907 ac_cpp='$CPP $CPPFLAGS'
49908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49913 /* end confdefs.h. */
49915 #include <math.h>
49916 #ifdef HAVE_IEEEFP_H
49917 # include <ieeefp.h>
49918 #endif
49919 #undef logl
49922 main ()
49925 void (*f)(void) = (void (*)(void))logl;
49928 return 0;
49930 _ACEOF
49931 if ac_fn_c_try_compile "$LINENO"; then :
49932 glibcxx_cv_func_logl_use=yes
49934 else
49935 glibcxx_cv_func_logl_use=no
49937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_logl_use" >&5
49940 $as_echo "$glibcxx_cv_func_logl_use" >&6; }
49941 if test "x$glibcxx_cv_func_logl_use" = xyes; then
49942 cat >>confdefs.h <<_ACEOF
49943 #define HAVE_LOGL 1
49944 _ACEOF
49950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modfl declaration" >&5
49951 $as_echo_n "checking for modfl declaration... " >&6; }
49952 if ${glibcxx_cv_func_modfl_use+:} false; then :
49953 $as_echo_n "(cached) " >&6
49954 else
49957 ac_ext=c
49958 ac_cpp='$CPP $CPPFLAGS'
49959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49964 /* end confdefs.h. */
49966 #include <math.h>
49967 #ifdef HAVE_IEEEFP_H
49968 # include <ieeefp.h>
49969 #endif
49970 #undef modfl
49973 main ()
49976 void (*f)(void) = (void (*)(void))modfl;
49979 return 0;
49981 _ACEOF
49982 if ac_fn_c_try_compile "$LINENO"; then :
49983 glibcxx_cv_func_modfl_use=yes
49985 else
49986 glibcxx_cv_func_modfl_use=no
49988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modfl_use" >&5
49991 $as_echo "$glibcxx_cv_func_modfl_use" >&6; }
49992 if test "x$glibcxx_cv_func_modfl_use" = xyes; then
49993 cat >>confdefs.h <<_ACEOF
49994 #define HAVE_MODFL 1
49995 _ACEOF
50001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl declaration" >&5
50002 $as_echo_n "checking for powl declaration... " >&6; }
50003 if ${glibcxx_cv_func_powl_use+:} false; then :
50004 $as_echo_n "(cached) " >&6
50005 else
50008 ac_ext=c
50009 ac_cpp='$CPP $CPPFLAGS'
50010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50015 /* end confdefs.h. */
50017 #include <math.h>
50018 #ifdef HAVE_IEEEFP_H
50019 # include <ieeefp.h>
50020 #endif
50021 #undef powl
50024 main ()
50027 void (*f)(void) = (void (*)(void))powl;
50030 return 0;
50032 _ACEOF
50033 if ac_fn_c_try_compile "$LINENO"; then :
50034 glibcxx_cv_func_powl_use=yes
50036 else
50037 glibcxx_cv_func_powl_use=no
50039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_powl_use" >&5
50042 $as_echo "$glibcxx_cv_func_powl_use" >&6; }
50043 if test "x$glibcxx_cv_func_powl_use" = xyes; then
50044 cat >>confdefs.h <<_ACEOF
50045 #define HAVE_POWL 1
50046 _ACEOF
50052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl declaration" >&5
50053 $as_echo_n "checking for sinl declaration... " >&6; }
50054 if ${glibcxx_cv_func_sinl_use+:} false; then :
50055 $as_echo_n "(cached) " >&6
50056 else
50059 ac_ext=c
50060 ac_cpp='$CPP $CPPFLAGS'
50061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50066 /* end confdefs.h. */
50068 #include <math.h>
50069 #ifdef HAVE_IEEEFP_H
50070 # include <ieeefp.h>
50071 #endif
50072 #undef sinl
50075 main ()
50078 void (*f)(void) = (void (*)(void))sinl;
50081 return 0;
50083 _ACEOF
50084 if ac_fn_c_try_compile "$LINENO"; then :
50085 glibcxx_cv_func_sinl_use=yes
50087 else
50088 glibcxx_cv_func_sinl_use=no
50090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sinl_use" >&5
50093 $as_echo "$glibcxx_cv_func_sinl_use" >&6; }
50094 if test "x$glibcxx_cv_func_sinl_use" = xyes; then
50095 cat >>confdefs.h <<_ACEOF
50096 #define HAVE_SINL 1
50097 _ACEOF
50103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl declaration" >&5
50104 $as_echo_n "checking for sinhl declaration... " >&6; }
50105 if ${glibcxx_cv_func_sinhl_use+:} false; then :
50106 $as_echo_n "(cached) " >&6
50107 else
50110 ac_ext=c
50111 ac_cpp='$CPP $CPPFLAGS'
50112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50117 /* end confdefs.h. */
50119 #include <math.h>
50120 #ifdef HAVE_IEEEFP_H
50121 # include <ieeefp.h>
50122 #endif
50123 #undef sinhl
50126 main ()
50129 void (*f)(void) = (void (*)(void))sinhl;
50132 return 0;
50134 _ACEOF
50135 if ac_fn_c_try_compile "$LINENO"; then :
50136 glibcxx_cv_func_sinhl_use=yes
50138 else
50139 glibcxx_cv_func_sinhl_use=no
50141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sinhl_use" >&5
50144 $as_echo "$glibcxx_cv_func_sinhl_use" >&6; }
50145 if test "x$glibcxx_cv_func_sinhl_use" = xyes; then
50146 cat >>confdefs.h <<_ACEOF
50147 #define HAVE_SINHL 1
50148 _ACEOF
50154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl declaration" >&5
50155 $as_echo_n "checking for sqrtl declaration... " >&6; }
50156 if ${glibcxx_cv_func_sqrtl_use+:} false; then :
50157 $as_echo_n "(cached) " >&6
50158 else
50161 ac_ext=c
50162 ac_cpp='$CPP $CPPFLAGS'
50163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50168 /* end confdefs.h. */
50170 #include <math.h>
50171 #ifdef HAVE_IEEEFP_H
50172 # include <ieeefp.h>
50173 #endif
50174 #undef sqrtl
50177 main ()
50180 void (*f)(void) = (void (*)(void))sqrtl;
50183 return 0;
50185 _ACEOF
50186 if ac_fn_c_try_compile "$LINENO"; then :
50187 glibcxx_cv_func_sqrtl_use=yes
50189 else
50190 glibcxx_cv_func_sqrtl_use=no
50192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_sqrtl_use" >&5
50195 $as_echo "$glibcxx_cv_func_sqrtl_use" >&6; }
50196 if test "x$glibcxx_cv_func_sqrtl_use" = xyes; then
50197 cat >>confdefs.h <<_ACEOF
50198 #define HAVE_SQRTL 1
50199 _ACEOF
50205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl declaration" >&5
50206 $as_echo_n "checking for tanl declaration... " >&6; }
50207 if ${glibcxx_cv_func_tanl_use+:} false; then :
50208 $as_echo_n "(cached) " >&6
50209 else
50212 ac_ext=c
50213 ac_cpp='$CPP $CPPFLAGS'
50214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50219 /* end confdefs.h. */
50221 #include <math.h>
50222 #ifdef HAVE_IEEEFP_H
50223 # include <ieeefp.h>
50224 #endif
50225 #undef tanl
50228 main ()
50231 void (*f)(void) = (void (*)(void))tanl;
50234 return 0;
50236 _ACEOF
50237 if ac_fn_c_try_compile "$LINENO"; then :
50238 glibcxx_cv_func_tanl_use=yes
50240 else
50241 glibcxx_cv_func_tanl_use=no
50243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_tanl_use" >&5
50246 $as_echo "$glibcxx_cv_func_tanl_use" >&6; }
50247 if test "x$glibcxx_cv_func_tanl_use" = xyes; then
50248 cat >>confdefs.h <<_ACEOF
50249 #define HAVE_TANL 1
50250 _ACEOF
50256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl declaration" >&5
50257 $as_echo_n "checking for tanhl declaration... " >&6; }
50258 if ${glibcxx_cv_func_tanhl_use+:} false; then :
50259 $as_echo_n "(cached) " >&6
50260 else
50263 ac_ext=c
50264 ac_cpp='$CPP $CPPFLAGS'
50265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50270 /* end confdefs.h. */
50272 #include <math.h>
50273 #ifdef HAVE_IEEEFP_H
50274 # include <ieeefp.h>
50275 #endif
50276 #undef tanhl
50279 main ()
50282 void (*f)(void) = (void (*)(void))tanhl;
50285 return 0;
50287 _ACEOF
50288 if ac_fn_c_try_compile "$LINENO"; then :
50289 glibcxx_cv_func_tanhl_use=yes
50291 else
50292 glibcxx_cv_func_tanhl_use=no
50294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_tanhl_use" >&5
50297 $as_echo "$glibcxx_cv_func_tanhl_use" >&6; }
50298 if test "x$glibcxx_cv_func_tanhl_use" = xyes; then
50299 cat >>confdefs.h <<_ACEOF
50300 #define HAVE_TANHL 1
50301 _ACEOF
50307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl declaration" >&5
50308 $as_echo_n "checking for hypotl declaration... " >&6; }
50309 if ${glibcxx_cv_func_hypotl_use+:} false; then :
50310 $as_echo_n "(cached) " >&6
50311 else
50314 ac_ext=c
50315 ac_cpp='$CPP $CPPFLAGS'
50316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50321 /* end confdefs.h. */
50323 #include <math.h>
50324 #ifdef HAVE_IEEEFP_H
50325 # include <ieeefp.h>
50326 #endif
50327 #undef hypotl
50330 main ()
50333 void (*f)(void) = (void (*)(void))hypotl;
50336 return 0;
50338 _ACEOF
50339 if ac_fn_c_try_compile "$LINENO"; then :
50340 glibcxx_cv_func_hypotl_use=yes
50342 else
50343 glibcxx_cv_func_hypotl_use=no
50345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotl_use" >&5
50348 $as_echo "$glibcxx_cv_func_hypotl_use" >&6; }
50349 if test "x$glibcxx_cv_func_hypotl_use" = xyes; then
50350 cat >>confdefs.h <<_ACEOF
50351 #define HAVE_HYPOTL 1
50352 _ACEOF
50358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf declaration" >&5
50359 $as_echo_n "checking for ldexpf declaration... " >&6; }
50360 if ${glibcxx_cv_func_ldexpf_use+:} false; then :
50361 $as_echo_n "(cached) " >&6
50362 else
50365 ac_ext=c
50366 ac_cpp='$CPP $CPPFLAGS'
50367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50372 /* end confdefs.h. */
50374 #include <math.h>
50375 #ifdef HAVE_IEEEFP_H
50376 # include <ieeefp.h>
50377 #endif
50378 #undef ldexpf
50381 main ()
50384 void (*f)(void) = (void (*)(void))ldexpf;
50387 return 0;
50389 _ACEOF
50390 if ac_fn_c_try_compile "$LINENO"; then :
50391 glibcxx_cv_func_ldexpf_use=yes
50393 else
50394 glibcxx_cv_func_ldexpf_use=no
50396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_ldexpf_use" >&5
50399 $as_echo "$glibcxx_cv_func_ldexpf_use" >&6; }
50400 if test "x$glibcxx_cv_func_ldexpf_use" = xyes; then
50401 cat >>confdefs.h <<_ACEOF
50402 #define HAVE_LDEXPF 1
50403 _ACEOF
50409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modff declaration" >&5
50410 $as_echo_n "checking for modff declaration... " >&6; }
50411 if ${glibcxx_cv_func_modff_use+:} false; then :
50412 $as_echo_n "(cached) " >&6
50413 else
50416 ac_ext=c
50417 ac_cpp='$CPP $CPPFLAGS'
50418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50423 /* end confdefs.h. */
50425 #include <math.h>
50426 #ifdef HAVE_IEEEFP_H
50427 # include <ieeefp.h>
50428 #endif
50429 #undef modff
50432 main ()
50435 void (*f)(void) = (void (*)(void))modff;
50438 return 0;
50440 _ACEOF
50441 if ac_fn_c_try_compile "$LINENO"; then :
50442 glibcxx_cv_func_modff_use=yes
50444 else
50445 glibcxx_cv_func_modff_use=no
50447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_modff_use" >&5
50450 $as_echo "$glibcxx_cv_func_modff_use" >&6; }
50451 if test "x$glibcxx_cv_func_modff_use" = xyes; then
50452 cat >>confdefs.h <<_ACEOF
50453 #define HAVE_MODFF 1
50454 _ACEOF
50460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf declaration" >&5
50461 $as_echo_n "checking for hypotf declaration... " >&6; }
50462 if ${glibcxx_cv_func_hypotf_use+:} false; then :
50463 $as_echo_n "(cached) " >&6
50464 else
50467 ac_ext=c
50468 ac_cpp='$CPP $CPPFLAGS'
50469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50474 /* end confdefs.h. */
50476 #include <math.h>
50477 #ifdef HAVE_IEEEFP_H
50478 # include <ieeefp.h>
50479 #endif
50480 #undef hypotf
50483 main ()
50486 void (*f)(void) = (void (*)(void))hypotf;
50489 return 0;
50491 _ACEOF
50492 if ac_fn_c_try_compile "$LINENO"; then :
50493 glibcxx_cv_func_hypotf_use=yes
50495 else
50496 glibcxx_cv_func_hypotf_use=no
50498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_hypotf_use" >&5
50501 $as_echo "$glibcxx_cv_func_hypotf_use" >&6; }
50502 if test "x$glibcxx_cv_func_hypotf_use" = xyes; then
50503 cat >>confdefs.h <<_ACEOF
50504 #define HAVE_HYPOTF 1
50505 _ACEOF
50511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf declaration" >&5
50512 $as_echo_n "checking for frexpf declaration... " >&6; }
50513 if ${glibcxx_cv_func_frexpf_use+:} false; then :
50514 $as_echo_n "(cached) " >&6
50515 else
50518 ac_ext=c
50519 ac_cpp='$CPP $CPPFLAGS'
50520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50525 /* end confdefs.h. */
50527 #include <math.h>
50528 #ifdef HAVE_IEEEFP_H
50529 # include <ieeefp.h>
50530 #endif
50531 #undef frexpf
50534 main ()
50537 void (*f)(void) = (void (*)(void))frexpf;
50540 return 0;
50542 _ACEOF
50543 if ac_fn_c_try_compile "$LINENO"; then :
50544 glibcxx_cv_func_frexpf_use=yes
50546 else
50547 glibcxx_cv_func_frexpf_use=no
50549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_frexpf_use" >&5
50552 $as_echo "$glibcxx_cv_func_frexpf_use" >&6; }
50553 if test "x$glibcxx_cv_func_frexpf_use" = xyes; then
50554 cat >>confdefs.h <<_ACEOF
50555 #define HAVE_FREXPF 1
50556 _ACEOF
50564 as_fn_error $? "No support for this host/target combination." "$LINENO" 5
50566 esac
50570 # At some point, we should differentiate between architectures
50571 # like x86, which have long double versions, and alpha/powerpc/etc.,
50572 # which don't. For the time being, punt.
50573 if test x"long_double_math_on_this_cpu" = x"yes"; then
50574 $as_echo "#define HAVE_ACOSL 1" >>confdefs.h
50576 $as_echo "#define HAVE_ASINL 1" >>confdefs.h
50578 $as_echo "#define HAVE_ATAN2L 1" >>confdefs.h
50580 $as_echo "#define HAVE_ATANL 1" >>confdefs.h
50582 $as_echo "#define HAVE_CEILL 1" >>confdefs.h
50584 $as_echo "#define HAVE_COSL 1" >>confdefs.h
50586 $as_echo "#define HAVE_COSHL 1" >>confdefs.h
50588 $as_echo "#define HAVE_EXPL 1" >>confdefs.h
50590 $as_echo "#define HAVE_FABSL 1" >>confdefs.h
50592 $as_echo "#define HAVE_FLOORL 1" >>confdefs.h
50594 $as_echo "#define HAVE_FMODL 1" >>confdefs.h
50596 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
50598 $as_echo "#define HAVE_LDEXPL 1" >>confdefs.h
50600 $as_echo "#define HAVE_LOG10L 1" >>confdefs.h
50602 $as_echo "#define HAVE_LOGL 1" >>confdefs.h
50604 $as_echo "#define HAVE_MODFL 1" >>confdefs.h
50606 $as_echo "#define HAVE_POWL 1" >>confdefs.h
50608 $as_echo "#define HAVE_SINCOSL 1" >>confdefs.h
50610 $as_echo "#define HAVE_SINL 1" >>confdefs.h
50612 $as_echo "#define HAVE_SINHL 1" >>confdefs.h
50614 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
50616 $as_echo "#define HAVE_TANL 1" >>confdefs.h
50618 $as_echo "#define HAVE_TANHL 1" >>confdefs.h
50623 # Check for _Unwind_GetIPInfo.
50626 # Check whether --with-system-libunwind was given.
50627 if test "${with_system_libunwind+set}" = set; then :
50628 withval=$with_system_libunwind;
50631 # If system-libunwind was not specifically set, pick a default setting.
50632 if test x$with_system_libunwind = x; then
50633 case ${target} in
50634 ia64-*-hpux*) with_system_libunwind=yes ;;
50635 *) with_system_libunwind=no ;;
50636 esac
50638 # Based on system-libunwind and target, do we have ipinfo?
50639 if test x$with_system_libunwind = xyes; then
50640 case ${target} in
50641 ia64-*-*) have_unwind_getipinfo=no ;;
50642 *) have_unwind_getipinfo=yes ;;
50643 esac
50644 else
50645 # Darwin before version 9 does not have _Unwind_GetIPInfo.
50647 case ${target} in
50648 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
50649 *) have_unwind_getipinfo=yes ;;
50650 esac
50654 if test x$have_unwind_getipinfo = xyes; then
50656 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
50661 # Check whether --enable-linux-futex was given.
50662 if test "${enable_linux_futex+set}" = set; then :
50663 enableval=$enable_linux_futex;
50664 case "$enableval" in
50665 yes|no|default) ;;
50666 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
50667 esac
50669 else
50670 enable_linux_futex=default
50674 case "$target" in
50675 *-linux* | *-uclinux*)
50676 case "$enable_linux_futex" in
50677 default)
50678 # If headers don't have gettid/futex syscalls definition, then
50679 # default to no, otherwise there will be compile time failures.
50680 # Otherwise, default to yes. If we don't detect we are
50681 # compiled/linked against NPTL and not cross-compiling, check
50682 # if programs are run by default against NPTL and if not, issue
50683 # a warning.
50684 enable_linux_futex=no
50685 if test x$gcc_no_link = xyes; then
50686 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
50688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50689 /* end confdefs.h. */
50690 #include <sys/syscall.h>
50691 #include <unistd.h>
50692 int lk;
50694 main ()
50696 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
50698 return 0;
50700 _ACEOF
50701 if ac_fn_c_try_link "$LINENO"; then :
50702 save_LIBS="$LIBS"
50703 LIBS="-lpthread $LIBS"
50704 if test x$gcc_no_link = xyes; then
50705 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
50707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50708 /* end confdefs.h. */
50709 #ifndef _GNU_SOURCE
50710 #define _GNU_SOURCE 1
50711 #endif
50712 #include <pthread.h>
50713 pthread_t th; void *status;
50715 main ()
50717 pthread_tryjoin_np (th, &status);
50719 return 0;
50721 _ACEOF
50722 if ac_fn_c_try_link "$LINENO"; then :
50723 enable_linux_futex=yes
50724 else
50725 if test x$cross_compiling = xno; then
50726 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
50727 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
50728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
50729 If so, please configure with --disable-linux-futex" >&5
50730 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
50731 If so, please configure with --disable-linux-futex" >&2;}
50734 enable_linux_futex=yes
50736 rm -f core conftest.err conftest.$ac_objext \
50737 conftest$ac_exeext conftest.$ac_ext
50738 LIBS="$save_LIBS"
50740 rm -f core conftest.err conftest.$ac_objext \
50741 conftest$ac_exeext conftest.$ac_ext
50743 yes)
50744 if test x$gcc_no_link = xyes; then
50745 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
50747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50748 /* end confdefs.h. */
50749 #include <sys/syscall.h>
50750 #include <unistd.h>
50751 int lk;
50753 main ()
50755 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
50757 return 0;
50759 _ACEOF
50760 if ac_fn_c_try_link "$LINENO"; then :
50762 else
50763 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
50765 rm -f core conftest.err conftest.$ac_objext \
50766 conftest$ac_exeext conftest.$ac_ext
50768 esac
50771 enable_linux_futex=no
50773 esac
50774 if test x$enable_linux_futex = xyes; then
50776 $as_echo "#define HAVE_LINUX_FUTEX 1" >>confdefs.h
50782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU c++filt" >&5
50783 $as_echo_n "checking for GNU c++filt... " >&6; }
50784 if ${ac_cv_path_CXXFILT+:} false; then :
50785 $as_echo_n "(cached) " >&6
50786 else
50787 if test -z "$CXXFILT"; then
50788 ac_path_CXXFILT_found=false
50789 # Loop through the user's path and test for each of PROGNAME-LIST
50790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50791 for as_dir in $PATH
50793 IFS=$as_save_IFS
50794 test -z "$as_dir" && as_dir=.
50795 for ac_prog in c++filt gc++filt; do
50796 for ac_exec_ext in '' $ac_executable_extensions; do
50797 ac_path_CXXFILT="$as_dir/$ac_prog$ac_exec_ext"
50798 as_fn_executable_p "$ac_path_CXXFILT" || continue
50799 # Check for GNU $ac_path_CXXFILT
50800 case `"$ac_path_CXXFILT" --version 2>&1` in
50801 *GNU*)
50802 ac_cv_path_CXXFILT=$ac_path_CXXFILT && ac_path_CXXFILT_found=:;;
50803 esac
50805 $ac_path_CXXFILT_found && break 3
50806 done
50807 done
50808 done
50809 IFS=$as_save_IFS
50810 if test -z "$ac_cv_path_CXXFILT"; then
50813 else
50814 ac_cv_path_CXXFILT=$CXXFILT
50818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_CXXFILT" >&5
50819 $as_echo "$ac_cv_path_CXXFILT" >&6; }
50820 CXXFILT=$ac_cv_path_CXXFILT
50824 # Check whether --enable-symvers was given.
50825 if test "${enable_symvers+set}" = set; then :
50826 enableval=$enable_symvers;
50827 case "$enableval" in
50828 yes|no|gnu|gnu-versioned-namespace|darwin|darwin-export|sun) ;;
50829 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
50830 esac
50832 else
50833 enable_symvers=yes
50838 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
50839 # don't know enough about $LD to do tricks...
50841 # Sun style symbol versions needs GNU c++filt for make_sunver.pl to work
50842 # with extern "C++" in version scripts.
50845 # Turn a 'yes' into a suitable default.
50846 if test x$enable_symvers = xyes ; then
50847 if test $enable_shared = no || test "x$LD" = x || test x$gcc_no_link = xyes; then
50848 enable_symvers=no
50849 else
50850 if test $with_gnu_ld = yes ; then
50851 case ${target_os} in
50852 hpux*)
50853 enable_symvers=no ;;
50855 enable_symvers=gnu ;;
50856 esac
50857 else
50858 case ${target_os} in
50859 darwin*)
50860 enable_symvers=darwin ;;
50861 # Sun symbol versioning exists since Solaris 2.5.
50862 solaris2.[5-9]* | solaris2.1[0-9]*)
50863 # make_sunver.pl needs GNU c++filt to support extern "C++" in
50864 # version scripts, so disable symbol versioning if none can be
50865 # found.
50866 if test -z "$ac_cv_path_CXXFILT"; then
50867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
50868 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
50869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === no GNU c++filt could be found." >&5
50870 $as_echo "$as_me: WARNING: === no GNU c++filt could be found." >&2;}
50871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
50872 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
50873 enable_symvers=no
50874 else
50875 enable_symvers=sun
50879 enable_symvers=no ;;
50880 esac
50885 # Check to see if 'darwin' or 'darwin-export' can win.
50886 if test x$enable_symvers = xdarwin-export ; then
50887 enable_symvers=darwin
50890 # Check if 'sun' was requested on non-Solaris 2 platforms.
50891 if test x$enable_symvers = xsun ; then
50892 case ${target_os} in
50893 solaris2*)
50894 # All fine.
50897 # Unlikely to work.
50898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
50899 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
50900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
50901 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
50902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
50903 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
50904 enable_symvers=no
50906 esac
50909 # Check to see if 'gnu' can win.
50910 if test $enable_symvers = gnu ||
50911 test $enable_symvers = gnu-versioned-namespace ||
50912 test $enable_symvers = sun; then
50913 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
50914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
50915 $as_echo_n "checking for shared libgcc... " >&6; }
50916 ac_save_CFLAGS="$CFLAGS"
50917 CFLAGS=' -lgcc_s'
50918 if test x$gcc_no_link = xyes; then
50919 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
50921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50922 /* end confdefs.h. */
50925 main ()
50927 return 0;
50929 return 0;
50931 _ACEOF
50932 if ac_fn_c_try_link "$LINENO"; then :
50933 glibcxx_shared_libgcc=yes
50934 else
50935 glibcxx_shared_libgcc=no
50937 rm -f core conftest.err conftest.$ac_objext \
50938 conftest$ac_exeext conftest.$ac_ext
50939 CFLAGS="$ac_save_CFLAGS"
50940 if test $glibcxx_shared_libgcc = no; then
50941 cat > conftest.c <<EOF
50942 int main (void) { return 0; }
50944 glibcxx_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
50945 -shared -shared-libgcc -o conftest.so \
50946 conftest.c -v 2>&1 >/dev/null \
50947 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
50948 rm -f conftest.c conftest.so
50949 if test x${glibcxx_libgcc_s_suffix+set} = xset; then
50950 CFLAGS=" -lgcc_s$glibcxx_libgcc_s_suffix"
50951 if test x$gcc_no_link = xyes; then
50952 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
50954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
50955 /* end confdefs.h. */
50958 main ()
50960 return 0;
50962 return 0;
50964 _ACEOF
50965 if ac_fn_c_try_link "$LINENO"; then :
50966 glibcxx_shared_libgcc=yes
50968 rm -f core conftest.err conftest.$ac_objext \
50969 conftest$ac_exeext conftest.$ac_ext
50970 CFLAGS="$ac_save_CFLAGS"
50973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_shared_libgcc" >&5
50974 $as_echo "$glibcxx_shared_libgcc" >&6; }
50976 # For GNU ld, we need at least this version. The format is described in
50977 # GLIBCXX_CHECK_LINKER_FEATURES above.
50978 glibcxx_min_gnu_ld_version=21400
50980 # If no shared libgcc, can't win.
50981 if test $glibcxx_shared_libgcc != yes; then
50982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested GNU symbol versioning, but" >&5
50983 $as_echo "$as_me: WARNING: === You have requested GNU symbol versioning, but" >&2;}
50984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not building a shared libgcc_s." >&5
50985 $as_echo "$as_me: WARNING: === you are not building a shared libgcc_s." >&2;}
50986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
50987 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
50988 enable_symvers=no
50989 elif test $with_gnu_ld != yes && test $enable_symvers = sun; then
50990 : All interesting versions of Sun ld support sun style symbol versioning.
50991 elif test $with_gnu_ld != yes ; then
50992 # just fail for now
50993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested GNU symbol versioning, but" >&5
50994 $as_echo "$as_me: WARNING: === You have requested GNU symbol versioning, but" >&2;}
50995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not using the GNU linker." >&5
50996 $as_echo "$as_me: WARNING: === you are not using the GNU linker." >&2;}
50997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
50998 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
50999 enable_symvers=no
51000 elif test $glibcxx_ld_is_gold = yes ; then
51001 : All versions of gold support symbol versioning.
51002 elif test $glibcxx_ld_is_mold = yes ; then
51003 : All versions of mold support symbol versioning.
51004 elif test $glibcxx_gnu_ld_version -lt $glibcxx_min_gnu_ld_version ; then
51005 # The right tools, the right setup, but too old. Fallbacks?
51006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5
51007 $as_echo "$as_me: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&2;}
51008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
51009 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
51010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
51011 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
51012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&5
51013 $as_echo "$as_me: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&2;}
51014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
51015 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
51016 enable_symvers=no
51020 # For libtool versioning info, format is CURRENT:REVISION:AGE
51021 libtool_VERSION=6:33:0
51023 # Everything parsed; figure out what files and settings to use.
51024 case $enable_symvers in
51026 SYMVER_FILE=config/abi/pre/none.ver
51028 gnu)
51029 SYMVER_FILE=config/abi/pre/gnu.ver
51031 $as_echo "#define _GLIBCXX_SYMVER_GNU 1" >>confdefs.h
51034 gnu-versioned-namespace)
51035 libtool_VERSION=8:0:0
51036 SYMVER_FILE=config/abi/pre/gnu-versioned-namespace.ver
51038 $as_echo "#define _GLIBCXX_SYMVER_GNU_NAMESPACE 1" >>confdefs.h
51041 darwin)
51042 SYMVER_FILE=config/abi/pre/gnu.ver
51044 $as_echo "#define _GLIBCXX_SYMVER_DARWIN 1" >>confdefs.h
51047 sun)
51048 SYMVER_FILE=config/abi/pre/gnu.ver
51050 $as_echo "#define _GLIBCXX_SYMVER_SUN 1" >>confdefs.h
51053 esac
51055 if test x$enable_symvers != xno ; then
51057 $as_echo "#define _GLIBCXX_SYMVER 1" >>confdefs.h
51061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
51062 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
51063 if ${glibcxx_cv_have_as_symver_directive+:} false; then :
51064 $as_echo_n "(cached) " >&6
51065 else
51067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51068 /* end confdefs.h. */
51069 void foo (void); __asm (".symver foo, bar@SYMVER");
51071 main ()
51075 return 0;
51077 _ACEOF
51078 if ac_fn_c_try_compile "$LINENO"; then :
51079 glibcxx_cv_have_as_symver_directive=yes
51080 else
51081 glibcxx_cv_have_as_symver_directive=no
51083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_have_as_symver_directive" >&5
51086 $as_echo "$glibcxx_cv_have_as_symver_directive" >&6; }
51087 if test $glibcxx_cv_have_as_symver_directive = yes; then
51089 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
51100 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
51101 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
51103 if test $enable_symvers != no ; then
51104 case ${target_os} in
51105 # The Solaris 2 runtime linker doesn't support the GNU extension of
51106 # binding the same symbol to different versions
51107 solaris2*)
51109 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
51112 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
51115 esac
51118 # Now, set up compatibility support, if any.
51119 # In addition, need this to deal with std::size_t mangling in
51120 # src/compatibility.cc. In a perfect world, could use
51121 # typeid(std::size_t).name()[0] to do direct substitution.
51122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for size_t as unsigned int" >&5
51123 $as_echo_n "checking for size_t as unsigned int... " >&6; }
51124 ac_save_CFLAGS="$CFLAGS"
51125 CFLAGS="-Werror"
51126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51127 /* end confdefs.h. */
51130 main ()
51132 __SIZE_TYPE__* stp; unsigned int* uip; stp = uip;
51134 return 0;
51136 _ACEOF
51137 if ac_fn_c_try_compile "$LINENO"; then :
51138 glibcxx_size_t_is_i=yes
51139 else
51140 glibcxx_size_t_is_i=no
51142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51143 CFLAGS=$ac_save_CFLAGS
51144 if test "$glibcxx_size_t_is_i" = yes; then
51146 $as_echo "#define _GLIBCXX_SIZE_T_IS_UINT 1" >>confdefs.h
51149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_size_t_is_i" >&5
51150 $as_echo "$glibcxx_size_t_is_i" >&6; }
51152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrdiff_t as int" >&5
51153 $as_echo_n "checking for ptrdiff_t as int... " >&6; }
51154 ac_save_CFLAGS="$CFLAGS"
51155 CFLAGS="-Werror"
51156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51157 /* end confdefs.h. */
51160 main ()
51162 __PTRDIFF_TYPE__* ptp; int* ip; ptp = ip;
51164 return 0;
51166 _ACEOF
51167 if ac_fn_c_try_compile "$LINENO"; then :
51168 glibcxx_ptrdiff_t_is_i=yes
51169 else
51170 glibcxx_ptrdiff_t_is_i=no
51172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51173 CFLAGS=$ac_save_CFLAGS
51174 if test "$glibcxx_ptrdiff_t_is_i" = yes; then
51176 $as_echo "#define _GLIBCXX_PTRDIFF_T_IS_INT 1" >>confdefs.h
51179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_ptrdiff_t_is_i" >&5
51180 $as_echo "$glibcxx_ptrdiff_t_is_i" >&6; }
51185 # Check whether --enable-libstdcxx-visibility was given.
51186 if test "${enable_libstdcxx_visibility+set}" = set; then :
51187 enableval=$enable_libstdcxx_visibility;
51188 case "$enableval" in
51189 yes|no) ;;
51190 *) as_fn_error $? "Argument to enable/disable libstdcxx-visibility must be yes or no" "$LINENO" 5 ;;
51191 esac
51193 else
51194 enable_libstdcxx_visibility=yes
51199 if test x$enable_libstdcxx_visibility = xyes ; then
51200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
51201 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
51202 if ${glibcxx_cv_have_attribute_visibility+:} false; then :
51203 $as_echo_n "(cached) " >&6
51204 else
51206 save_CFLAGS="$CFLAGS"
51207 CFLAGS="$CFLAGS -Werror"
51208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51209 /* end confdefs.h. */
51210 void __attribute__((visibility("hidden"))) foo(void) { }
51212 main ()
51216 return 0;
51218 _ACEOF
51219 if ac_fn_c_try_compile "$LINENO"; then :
51220 glibcxx_cv_have_attribute_visibility=yes
51221 else
51222 glibcxx_cv_have_attribute_visibility=no
51224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51225 CFLAGS="$save_CFLAGS"
51227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_have_attribute_visibility" >&5
51228 $as_echo "$glibcxx_cv_have_attribute_visibility" >&6; }
51229 if test $glibcxx_cv_have_attribute_visibility = no; then
51230 enable_libstdcxx_visibility=no
51235 { $as_echo "$as_me:${as_lineno-$LINENO}: visibility supported: $enable_libstdcxx_visibility" >&5
51236 $as_echo "$as_me: visibility supported: $enable_libstdcxx_visibility" >&6;}
51240 # Check whether --enable-libstdcxx-dual-abi was given.
51241 if test "${enable_libstdcxx_dual_abi+set}" = set; then :
51242 enableval=$enable_libstdcxx_dual_abi;
51243 case "$enableval" in
51244 yes|no) ;;
51245 *) as_fn_error $? "Argument to enable/disable libstdcxx-dual-abi must be yes or no" "$LINENO" 5 ;;
51246 esac
51248 else
51249 enable_libstdcxx_dual_abi=yes
51253 if test x$enable_symvers = xgnu-versioned-namespace; then
51254 # gnu-versioned-namespace is incompatible with the dual ABI.
51255 enable_libstdcxx_dual_abi="no"
51257 if test x"$enable_libstdcxx_dual_abi" != xyes; then
51258 { $as_echo "$as_me:${as_lineno-$LINENO}: dual ABI is disabled" >&5
51259 $as_echo "$as_me: dual ABI is disabled" >&6;}
51260 default_libstdcxx_abi="gcc4-compatible"
51265 if test x$enable_libstdcxx_dual_abi = xyes; then
51266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default std::string ABI to use" >&5
51267 $as_echo_n "checking for default std::string ABI to use... " >&6; }
51269 # Check whether --with-default-libstdcxx-abi was given.
51270 if test "${with_default_libstdcxx_abi+set}" = set; then :
51271 withval=$with_default_libstdcxx_abi; case "$withval" in
51272 gcc4-compatible) default_libstdcxx_abi="gcc4-compatible" ;;
51273 new|cxx11) default_libstdcxx_abi="new" ;;
51274 c++*|gnu++*) as_fn_error $? "Supported arguments for --with-default-libstdcxx-abi have changed, use \"new\" or \"gcc4-compatible\"" "$LINENO" 5 ;;
51275 *) as_fn_error $? "Invalid argument for --with-default-libstdcxx-abi" "$LINENO" 5 ;;
51276 esac
51278 else
51279 default_libstdcxx_abi="new"
51282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${default_libstdcxx_abi}" >&5
51283 $as_echo "${default_libstdcxx_abi}" >&6; }
51285 if test $default_libstdcxx_abi = "new"; then
51286 glibcxx_cxx11_abi=1
51287 glibcxx_cxx98_abi=0
51288 else
51289 glibcxx_cxx11_abi=0
51290 glibcxx_cxx98_abi=1
51296 ac_ldbl_compat=no
51297 ac_ldbl_alt128_compat=no
51298 ac_ldbl_ieee128_default=no
51299 LONG_DOUBLE_COMPAT_FLAGS="-mlong-double-64"
51300 LONG_DOUBLE_128_FLAGS=
51301 LONG_DOUBLE_ALT128_COMPAT_FLAGS=
51302 case "$target" in
51303 powerpc*-*-linux* | \
51304 sparc*-*-linux* | \
51305 s390*-*-linux* | \
51306 alpha*-*-linux*)
51307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51308 /* end confdefs.h. */
51311 main ()
51314 #if !defined __LONG_DOUBLE_128__ || (defined(__sparc__) && defined(__arch64__))
51315 #error no need for long double compatibility
51316 #endif
51319 return 0;
51321 _ACEOF
51322 if ac_fn_c_try_compile "$LINENO"; then :
51323 ac_ldbl_compat=yes
51324 else
51325 ac_ldbl_compat=no
51327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51328 if test "$ac_ldbl_compat" = yes; then
51330 $as_echo "#define _GLIBCXX_LONG_DOUBLE_COMPAT 1" >>confdefs.h
51332 port_specific_symbol_files="\$(top_srcdir)/config/os/gnu-linux/ldbl-extra.ver"
51333 case "$target" in
51334 powerpc*-*-linux*)
51335 LONG_DOUBLE_COMPAT_FLAGS="$LONG_DOUBLE_COMPAT_FLAGS -mno-gnu-attribute"
51336 # Check for IEEE128 support in libm:
51337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __frexpieee128 in -lm" >&5
51338 $as_echo_n "checking for __frexpieee128 in -lm... " >&6; }
51339 if ${ac_cv_lib_m___frexpieee128+:} false; then :
51340 $as_echo_n "(cached) " >&6
51341 else
51342 ac_check_lib_save_LIBS=$LIBS
51343 LIBS="-lm $LIBS"
51344 if test x$gcc_no_link = xyes; then
51345 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
51347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51348 /* end confdefs.h. */
51350 /* Override any GCC internal prototype to avoid an error.
51351 Use char because int might match the return type of a GCC
51352 builtin and then its argument prototype would still apply. */
51353 #ifdef __cplusplus
51354 extern "C"
51355 #endif
51356 char __frexpieee128 ();
51358 main ()
51360 return __frexpieee128 ();
51362 return 0;
51364 _ACEOF
51365 if ac_fn_c_try_link "$LINENO"; then :
51366 ac_cv_lib_m___frexpieee128=yes
51367 else
51368 ac_cv_lib_m___frexpieee128=no
51370 rm -f core conftest.err conftest.$ac_objext \
51371 conftest$ac_exeext conftest.$ac_ext
51372 LIBS=$ac_check_lib_save_LIBS
51374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___frexpieee128" >&5
51375 $as_echo "$ac_cv_lib_m___frexpieee128" >&6; }
51376 if test "x$ac_cv_lib_m___frexpieee128" = xyes; then :
51377 ac_ldbl_ieee128_in_libc=yes
51378 else
51379 ac_ldbl_ieee128_in_libc=no
51382 if test $ac_ldbl_ieee128_in_libc = yes; then
51383 # Determine which long double format is the compiler's default:
51384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51385 /* end confdefs.h. */
51388 main ()
51391 #ifndef __LONG_DOUBLE_IEEE128__
51392 #error compiler defaults to ibm128
51393 #endif
51396 return 0;
51398 _ACEOF
51399 if ac_fn_c_try_compile "$LINENO"; then :
51400 ac_ldbl_ieee128_default=yes
51401 else
51402 ac_ldbl_ieee128_default=no
51404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51405 # Library objects should use default long double format.
51406 if test "$ac_ldbl_ieee128_default" = yes; then
51407 LONG_DOUBLE_128_FLAGS="-mno-gnu-attribute"
51408 # Except for the ones that explicitly use these flags:
51409 LONG_DOUBLE_ALT128_COMPAT_FLAGS="-mabi=ibmlongdouble -mno-gnu-attribute -Wno-psabi"
51410 else
51411 LONG_DOUBLE_128_FLAGS="-mno-gnu-attribute"
51412 LONG_DOUBLE_ALT128_COMPAT_FLAGS="-mabi=ieeelongdouble -mno-gnu-attribute -Wno-psabi"
51415 $as_echo "#define _GLIBCXX_LONG_DOUBLE_ALT128_COMPAT 1" >>confdefs.h
51417 port_specific_symbol_files="$port_specific_symbol_files \$(top_srcdir)/config/os/gnu-linux/ldbl-ieee128-extra.ver"
51418 ac_ldbl_alt128_compat=yes
51419 else
51420 ac_ldbl_alt128_compat=no
51423 esac
51425 esac
51432 # Check if assembler supports disabling hardware capability support.
51434 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS=''
51437 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
51438 # with a different meaning.
51439 case ${target_os} in
51440 solaris2*)
51441 ac_save_CFLAGS="$CFLAGS"
51442 CFLAGS="$CFLAGS -Wa,-nH"
51444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
51445 $as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
51446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51447 /* end confdefs.h. */
51450 main ()
51452 return 0;
51454 return 0;
51456 _ACEOF
51457 if ac_fn_c_try_compile "$LINENO"; then :
51458 ac_hwcap_flags=yes
51459 else
51460 ac_hwcap_flags=no
51462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51463 if test "$ac_hwcap_flags" = "yes"; then
51464 HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS"
51466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
51467 $as_echo "$ac_hwcap_flags" >&6; }
51469 CFLAGS="$ac_save_CFLAGS"
51471 esac
51476 # Check if assembler supports rdrand opcode.
51478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdrand support in assembler" >&5
51479 $as_echo_n "checking for rdrand support in assembler... " >&6; }
51480 if ${ac_cv_x86_rdrand+:} false; then :
51481 $as_echo_n "(cached) " >&6
51482 else
51484 ac_cv_x86_rdrand=no
51485 case "$target" in
51486 i?86-*-* | \
51487 x86_64-*-*)
51488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51489 /* end confdefs.h. */
51492 main ()
51494 asm("rdrand %eax");
51496 return 0;
51498 _ACEOF
51499 if ac_fn_c_try_compile "$LINENO"; then :
51500 ac_cv_x86_rdrand=yes
51501 else
51502 ac_cv_x86_rdrand=no
51504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51505 esac
51508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x86_rdrand" >&5
51509 $as_echo "$ac_cv_x86_rdrand" >&6; }
51510 if test $ac_cv_x86_rdrand = yes; then
51512 $as_echo "#define _GLIBCXX_X86_RDRAND 1" >>confdefs.h
51516 # Check if assembler supports rdseed opcode.
51518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rdseed support in assembler" >&5
51519 $as_echo_n "checking for rdseed support in assembler... " >&6; }
51520 if ${ac_cv_x86_rdseed+:} false; then :
51521 $as_echo_n "(cached) " >&6
51522 else
51524 ac_cv_x86_rdseed=no
51525 case "$target" in
51526 i?86-*-* | \
51527 x86_64-*-*)
51528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51529 /* end confdefs.h. */
51532 main ()
51534 asm("rdseed %eax");
51536 return 0;
51538 _ACEOF
51539 if ac_fn_c_try_compile "$LINENO"; then :
51540 ac_cv_x86_rdseed=yes
51541 else
51542 ac_cv_x86_rdseed=no
51544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51545 esac
51548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x86_rdseed" >&5
51549 $as_echo "$ac_cv_x86_rdseed" >&6; }
51550 if test $ac_cv_x86_rdseed = yes; then
51552 $as_echo "#define _GLIBCXX_X86_RDSEED 1" >>confdefs.h
51557 # Check for other random number APIs
51561 ac_ext=cpp
51562 ac_cpp='$CXXCPP $CPPFLAGS'
51563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getentropy" >&5
51568 $as_echo_n "checking for getentropy... " >&6; }
51569 if ${glibcxx_cv_getentropy+:} false; then :
51570 $as_echo_n "(cached) " >&6
51571 else
51573 if test x$gcc_no_link = xyes; then
51574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51575 /* end confdefs.h. */
51576 #include <unistd.h>
51578 main ()
51580 unsigned i;
51581 ::getentropy(&i, sizeof(i));
51583 return 0;
51585 _ACEOF
51586 if ac_fn_cxx_try_compile "$LINENO"; then :
51587 glibcxx_cv_getentropy=yes
51588 else
51589 glibcxx_cv_getentropy=no
51591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51592 else
51593 if test x$gcc_no_link = xyes; then
51594 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
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_link "$LINENO"; then :
51609 glibcxx_cv_getentropy=yes
51610 else
51611 glibcxx_cv_getentropy=no
51613 rm -f core conftest.err conftest.$ac_objext \
51614 conftest$ac_exeext conftest.$ac_ext
51618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_getentropy" >&5
51619 $as_echo "$glibcxx_cv_getentropy" >&6; }
51621 if test $glibcxx_cv_getentropy = yes; then
51623 $as_echo "#define HAVE_GETENTROPY 1" >>confdefs.h
51626 ac_ext=c
51627 ac_cpp='$CPP $CPPFLAGS'
51628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51636 ac_ext=cpp
51637 ac_cpp='$CXXCPP $CPPFLAGS'
51638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random" >&5
51643 $as_echo_n "checking for arc4random... " >&6; }
51644 if ${glibcxx_cv_arc4random+:} false; then :
51645 $as_echo_n "(cached) " >&6
51646 else
51648 if test x$gcc_no_link = xyes; then
51649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51650 /* end confdefs.h. */
51651 #include <stdlib.h>
51653 main ()
51655 unsigned i = ::arc4random();
51657 return 0;
51659 _ACEOF
51660 if ac_fn_cxx_try_compile "$LINENO"; then :
51661 glibcxx_cv_arc4random=yes
51662 else
51663 glibcxx_cv_arc4random=no
51665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51666 else
51667 if test x$gcc_no_link = xyes; then
51668 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
51670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51671 /* end confdefs.h. */
51672 #include <stdlib.h>
51674 main ()
51676 unsigned i = ::arc4random();
51678 return 0;
51680 _ACEOF
51681 if ac_fn_cxx_try_link "$LINENO"; then :
51682 glibcxx_cv_arc4random=yes
51683 else
51684 glibcxx_cv_arc4random=no
51686 rm -f core conftest.err conftest.$ac_objext \
51687 conftest$ac_exeext conftest.$ac_ext
51691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_arc4random" >&5
51692 $as_echo "$glibcxx_cv_arc4random" >&6; }
51694 if test $glibcxx_cv_arc4random = yes; then
51696 $as_echo "#define HAVE_ARC4RANDOM 1" >>confdefs.h
51699 ac_ext=c
51700 ac_cpp='$CPP $CPPFLAGS'
51701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51707 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
51709 # Do checks for resource limit functions.
51712 ac_ext=cpp
51713 ac_cpp='$CXXCPP $CPPFLAGS'
51714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51718 setrlimit_have_headers=yes
51719 for ac_header in unistd.h sys/time.h sys/resource.h
51720 do :
51721 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
51722 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
51723 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
51724 cat >>confdefs.h <<_ACEOF
51725 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
51726 _ACEOF
51728 else
51729 setrlimit_have_headers=no
51732 done
51734 # If don't have the headers, then we can't run the tests now, and we
51735 # won't be seeing any of these during testsuite compilation.
51736 if test $setrlimit_have_headers = yes; then
51737 # Can't do these in a loop, else the resulting syntax is wrong.
51739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_DATA" >&5
51740 $as_echo_n "checking for RLIMIT_DATA... " >&6; }
51741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51742 /* end confdefs.h. */
51743 #include <unistd.h>
51744 #include <sys/time.h>
51745 #include <sys/resource.h>
51748 main ()
51750 int f = RLIMIT_DATA ;
51752 return 0;
51754 _ACEOF
51755 if ac_fn_cxx_try_compile "$LINENO"; then :
51756 glibcxx_mresult=1
51757 else
51758 glibcxx_mresult=0
51760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51762 cat >>confdefs.h <<_ACEOF
51763 #define HAVE_LIMIT_DATA $glibcxx_mresult
51764 _ACEOF
51766 if test $glibcxx_mresult = 1 ; then res=yes ; else res=no ; fi
51767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
51768 $as_echo "$res" >&6; }
51771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_RSS" >&5
51772 $as_echo_n "checking for RLIMIT_RSS... " >&6; }
51773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51774 /* end confdefs.h. */
51775 #include <unistd.h>
51776 #include <sys/time.h>
51777 #include <sys/resource.h>
51780 main ()
51782 int f = RLIMIT_RSS ;
51784 return 0;
51786 _ACEOF
51787 if ac_fn_cxx_try_compile "$LINENO"; then :
51788 glibcxx_mresult=1
51789 else
51790 glibcxx_mresult=0
51792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51794 cat >>confdefs.h <<_ACEOF
51795 #define HAVE_LIMIT_RSS $glibcxx_mresult
51796 _ACEOF
51798 if test $glibcxx_mresult = 1 ; then res=yes ; else res=no ; fi
51799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
51800 $as_echo "$res" >&6; }
51803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_VMEM" >&5
51804 $as_echo_n "checking for RLIMIT_VMEM... " >&6; }
51805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51806 /* end confdefs.h. */
51807 #include <unistd.h>
51808 #include <sys/time.h>
51809 #include <sys/resource.h>
51812 main ()
51814 int f = RLIMIT_VMEM ;
51816 return 0;
51818 _ACEOF
51819 if ac_fn_cxx_try_compile "$LINENO"; then :
51820 glibcxx_mresult=1
51821 else
51822 glibcxx_mresult=0
51824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51826 cat >>confdefs.h <<_ACEOF
51827 #define HAVE_LIMIT_VMEM $glibcxx_mresult
51828 _ACEOF
51830 if test $glibcxx_mresult = 1 ; then res=yes ; else res=no ; fi
51831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
51832 $as_echo "$res" >&6; }
51835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_AS" >&5
51836 $as_echo_n "checking for RLIMIT_AS... " >&6; }
51837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51838 /* end confdefs.h. */
51839 #include <unistd.h>
51840 #include <sys/time.h>
51841 #include <sys/resource.h>
51844 main ()
51846 int f = RLIMIT_AS ;
51848 return 0;
51850 _ACEOF
51851 if ac_fn_cxx_try_compile "$LINENO"; then :
51852 glibcxx_mresult=1
51853 else
51854 glibcxx_mresult=0
51856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51858 cat >>confdefs.h <<_ACEOF
51859 #define HAVE_LIMIT_AS $glibcxx_mresult
51860 _ACEOF
51862 if test $glibcxx_mresult = 1 ; then res=yes ; else res=no ; fi
51863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
51864 $as_echo "$res" >&6; }
51867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RLIMIT_FSIZE" >&5
51868 $as_echo_n "checking for RLIMIT_FSIZE... " >&6; }
51869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51870 /* end confdefs.h. */
51871 #include <unistd.h>
51872 #include <sys/time.h>
51873 #include <sys/resource.h>
51876 main ()
51878 int f = RLIMIT_FSIZE ;
51880 return 0;
51882 _ACEOF
51883 if ac_fn_cxx_try_compile "$LINENO"; then :
51884 glibcxx_mresult=1
51885 else
51886 glibcxx_mresult=0
51888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51890 cat >>confdefs.h <<_ACEOF
51891 #define HAVE_LIMIT_FSIZE $glibcxx_mresult
51892 _ACEOF
51894 if test $glibcxx_mresult = 1 ; then res=yes ; else res=no ; fi
51895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
51896 $as_echo "$res" >&6; }
51899 # Check for rlimit, setrlimit.
51900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for testsuite resource limits support" >&5
51901 $as_echo_n "checking for testsuite resource limits support... " >&6; }
51902 if ${glibcxx_cv_setrlimit+:} false; then :
51903 $as_echo_n "(cached) " >&6
51904 else
51906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51907 /* end confdefs.h. */
51908 #include <unistd.h>
51909 #include <sys/time.h>
51910 #include <sys/resource.h>
51913 main ()
51915 struct rlimit r;
51916 setrlimit(0, &r);
51918 return 0;
51920 _ACEOF
51921 if ac_fn_cxx_try_compile "$LINENO"; then :
51922 glibcxx_cv_setrlimit=yes
51923 else
51924 glibcxx_cv_setrlimit=no
51926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_setrlimit" >&5
51930 $as_echo "$glibcxx_cv_setrlimit" >&6; }
51932 if test $glibcxx_cv_setrlimit = yes; then
51934 $as_echo "#define _GLIBCXX_RES_LIMITS 1" >>confdefs.h
51938 ac_ext=c
51939 ac_cpp='$CPP $CPPFLAGS'
51940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51946 if $GLIBCXX_IS_NATIVE ; then
51947 # Look for setenv, so that extended locale tests can be performed.
51949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setenv declaration" >&5
51950 $as_echo_n "checking for setenv declaration... " >&6; }
51951 if test x${glibcxx_cv_func_setenv_use+set} != xset; then
51952 if ${glibcxx_cv_func_setenv_use+:} false; then :
51953 $as_echo_n "(cached) " >&6
51954 else
51957 ac_ext=cpp
51958 ac_cpp='$CXXCPP $CPPFLAGS'
51959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
51963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51964 /* end confdefs.h. */
51965 #include <stdlib.h>
51967 main ()
51969 setenv(0, 0, 0);
51971 return 0;
51973 _ACEOF
51974 if ac_fn_cxx_try_compile "$LINENO"; then :
51975 glibcxx_cv_func_setenv_use=yes
51976 else
51977 glibcxx_cv_func_setenv_use=no
51979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51980 ac_ext=c
51981 ac_cpp='$CPP $CPPFLAGS'
51982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
51983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
51984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
51990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_func_setenv_use" >&5
51991 $as_echo "$glibcxx_cv_func_setenv_use" >&6; }
51992 if test x$glibcxx_cv_func_setenv_use = x"yes"; then
51993 for ac_func in setenv
51994 do :
51995 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
51996 if test "x$ac_cv_func_setenv" = xyes; then :
51997 cat >>confdefs.h <<_ACEOF
51998 #define HAVE_SETENV 1
51999 _ACEOF
52002 done
52008 if $GLIBCXX_IS_NATIVE && test $is_hosted = yes &&
52009 test $enable_symvers != no; then
52010 case "$host" in
52011 *-*-cygwin*)
52012 enable_abi_check=no ;;
52014 enable_abi_check=yes ;;
52015 esac
52016 else
52017 # Only build this as native, since automake does not understand
52018 # CXX_FOR_BUILD.
52019 enable_abi_check=no
52022 # Export file names for ABI checking.
52023 baseline_dir="$glibcxx_srcdir/config/abi/post/${abi_baseline_pair}"
52025 baseline_subdir_switch="$abi_baseline_subdir_switch"
52029 # For gthread support. Depends on GLIBCXX_ENABLE_SYMVERS.
52031 # Check whether --enable-libstdcxx-threads was given.
52032 if test "${enable_libstdcxx_threads+set}" = set; then :
52033 enableval=$enable_libstdcxx_threads;
52034 case "$enableval" in
52035 yes|no) ;;
52036 *) as_fn_error $? "Argument to enable/disable libstdcxx-threads must be yes or no" "$LINENO" 5 ;;
52037 esac
52039 else
52040 enable_libstdcxx_threads=auto
52045 if test x$enable_libstdcxx_threads = xauto ||
52046 test x$enable_libstdcxx_threads = xyes; then
52049 ac_ext=cpp
52050 ac_cpp='$CXXCPP $CPPFLAGS'
52051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52056 ac_save_CXXFLAGS="$CXXFLAGS"
52057 CXXFLAGS="$CXXFLAGS -fno-exceptions \
52058 -I${toplevel_srcdir}/libgcc -I${toplevel_builddir}/libgcc"
52060 target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
52061 case $target_thread_file in
52062 posix)
52063 CXXFLAGS="$CXXFLAGS -DSUPPORTS_WEAK -DGTHREAD_USE_WEAK -D_PTHREADS"
52065 win32)
52066 CXXFLAGS="$CXXFLAGS -D_WIN32_THREADS"
52067 # The support of condition variables is disabled by default in
52068 # the Win32 gthreads library, so enable it on explicit request.
52069 if test x$enable_libstdcxx_threads = xyes; then
52070 CXXFLAGS="$CXXFLAGS -D_WIN32_WINNT=0x0600"
52073 esac
52075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it can be safely assumed that mutex_timedlock is available" >&5
52076 $as_echo_n "checking whether it can be safely assumed that mutex_timedlock is available... " >&6; }
52078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52079 /* end confdefs.h. */
52080 #include <unistd.h>
52082 main ()
52085 // In case of POSIX threads check _POSIX_TIMEOUTS.
52086 #if (defined(_PTHREADS) \
52087 && (!defined(_POSIX_TIMEOUTS) || _POSIX_TIMEOUTS <= 0))
52088 #error
52089 // In case of Win32 threads there is no support.
52090 #elif defined(_WIN32_THREADS)
52091 #error
52092 #endif
52095 return 0;
52097 _ACEOF
52098 if ac_fn_cxx_try_compile "$LINENO"; then :
52099 ac_gthread_use_mutex_timedlock=1
52100 else
52101 ac_gthread_use_mutex_timedlock=0
52103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52106 cat >>confdefs.h <<_ACEOF
52107 #define _GTHREAD_USE_MUTEX_TIMEDLOCK $ac_gthread_use_mutex_timedlock
52108 _ACEOF
52111 if test $ac_gthread_use_mutex_timedlock = 1 ; then res_mutex_timedlock=yes ;
52112 else res_mutex_timedlock=no ; fi
52113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res_mutex_timedlock" >&5
52114 $as_echo "$res_mutex_timedlock" >&6; }
52116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gthreads library" >&5
52117 $as_echo_n "checking for gthreads library... " >&6; }
52119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52120 /* end confdefs.h. */
52121 #include "gthr.h"
52123 main ()
52126 #ifndef __GTHREADS_CXX0X
52127 #error
52128 #endif
52131 return 0;
52133 _ACEOF
52134 if ac_fn_cxx_try_compile "$LINENO"; then :
52135 ac_has_gthreads=yes
52136 else
52137 ac_has_gthreads=no
52139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52140 else
52141 ac_has_gthreads=no
52144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_gthreads" >&5
52145 $as_echo "$ac_has_gthreads" >&6; }
52147 if test x"$ac_has_gthreads" = x"yes"; then
52149 $as_echo "#define _GLIBCXX_HAS_GTHREADS 1" >>confdefs.h
52152 # Also check for pthread_rwlock_t for std::shared_timed_mutex in C++14
52153 # but only do so if we're using pthread in the gthread library.
52154 # On VxWorks for example, pthread_rwlock_t is defined in sys/types.h
52155 # but the pthread library is not there by default and the gthread library
52156 # does not use it.
52157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52158 /* end confdefs.h. */
52159 #include "gthr.h"
52161 main ()
52164 #if (!defined(_PTHREADS))
52165 #error
52166 #endif
52169 return 0;
52171 _ACEOF
52172 if ac_fn_cxx_try_compile "$LINENO"; then :
52173 ac_gthread_use_pthreads=yes
52174 else
52175 ac_gthread_use_pthreads=no
52177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52178 if test x"$ac_gthread_use_pthreads" = x"yes"; then
52179 ac_fn_cxx_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include \"gthr.h\"
52181 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
52183 $as_echo "#define _GLIBCXX_USE_PTHREAD_RWLOCK_T 1" >>confdefs.h
52189 # See above for the rationale.
52190 if test $target_thread_file = win32; then
52191 CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=0x0600"
52195 ac_fn_cxx_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
52196 if test "x$ac_cv_header_semaphore_h" = xyes; then :
52198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX Semaphores and sem_timedwait" >&5
52199 $as_echo_n "checking for POSIX Semaphores and sem_timedwait... " >&6; }
52200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52201 /* end confdefs.h. */
52203 #include <unistd.h>
52204 #include <semaphore.h>
52205 #include <limits.h>
52208 main ()
52211 #if !defined _POSIX_TIMEOUTS || _POSIX_TIMEOUTS <= 0
52212 # error "POSIX Timeouts option not supported"
52213 #elif !defined _POSIX_SEMAPHORES || _POSIX_SEMAPHORES <= 0
52214 # error "POSIX Semaphores option not supported"
52215 #else
52216 #if defined SEM_VALUE_MAX
52217 constexpr int sem_value_max = SEM_VALUE_MAX;
52218 #elif defined _POSIX_SEM_VALUE_MAX
52219 constexpr int sem_value_max = _POSIX_SEM_VALUE_MAX;
52220 #else
52221 # error "SEM_VALUE_MAX not available"
52222 #endif
52223 sem_t sem;
52224 sem_init(&sem, 0, sem_value_max);
52225 struct timespec ts = { 0 };
52226 sem_timedwait(&sem, &ts);
52227 #endif
52230 return 0;
52232 _ACEOF
52233 if ac_fn_cxx_try_compile "$LINENO"; then :
52234 ac_have_posix_semaphore=yes
52235 else
52236 ac_have_posix_semaphore=no
52238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52239 else
52240 ac_have_posix_semaphore=no
52245 if test $ac_have_posix_semaphore = yes ; then
52247 $as_echo "#define HAVE_POSIX_SEMAPHORE 1" >>confdefs.h
52250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_have_posix_semaphore" >&5
52251 $as_echo "$ac_have_posix_semaphore" >&6; }
52253 CXXFLAGS="$ac_save_CXXFLAGS"
52254 ac_ext=c
52255 ac_cpp='$CPP $CPPFLAGS'
52256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52262 # For Filesystem TS.
52263 for ac_header in fcntl.h dirent.h sys/statvfs.h utime.h
52264 do :
52265 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
52266 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
52267 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
52268 cat >>confdefs.h <<_ACEOF
52269 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
52270 _ACEOF
52274 done
52277 # Check whether --enable-libstdcxx-filesystem-ts was given.
52278 if test "${enable_libstdcxx_filesystem_ts+set}" = set; then :
52279 enableval=$enable_libstdcxx_filesystem_ts;
52280 case "$enableval" in
52281 yes|no|auto) ;;
52282 *) as_fn_error $? "Unknown argument to enable/disable libstdcxx-filesystem-ts" "$LINENO" 5 ;;
52283 esac
52285 else
52286 enable_libstdcxx_filesystem_ts=auto
52291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Filesystem TS support" >&5
52292 $as_echo_n "checking whether to build Filesystem TS support... " >&6; }
52293 if test x"$ac_cv_header_dirent_h" != x"yes"; then
52294 enable_libstdcxx_filesystem_ts=no
52296 if test x"$enable_libstdcxx_filesystem_ts" = x"auto"; then
52297 case "${target_os}" in
52298 freebsd*|netbsd*|openbsd*|dragonfly*|darwin*)
52299 enable_libstdcxx_filesystem_ts=yes
52301 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu | uclinux*)
52302 enable_libstdcxx_filesystem_ts=yes
52304 rtems*)
52305 enable_libstdcxx_filesystem_ts=yes
52307 solaris*)
52308 enable_libstdcxx_filesystem_ts=yes
52310 mingw*)
52311 enable_libstdcxx_filesystem_ts=yes
52314 enable_libstdcxx_filesystem_ts=no
52316 esac
52318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_filesystem_ts" >&5
52319 $as_echo "$enable_libstdcxx_filesystem_ts" >&6; }
52323 ac_ext=cpp
52324 ac_cpp='$CXXCPP $CPPFLAGS'
52325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52329 ac_save_CXXFLAGS="$CXXFLAGS"
52330 CXXFLAGS="$CXXFLAGS -fno-exceptions"
52331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent.d_type" >&5
52332 $as_echo_n "checking for struct dirent.d_type... " >&6; }
52333 if ${glibcxx_cv_dirent_d_type+:} false; then :
52334 $as_echo_n "(cached) " >&6
52335 else
52336 if test x$gcc_no_link = xyes; then
52337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52338 /* end confdefs.h. */
52339 #include <dirent.h>
52341 main ()
52344 struct dirent d;
52345 if (sizeof d.d_type) return 0;
52348 return 0;
52350 _ACEOF
52351 if ac_fn_cxx_try_compile "$LINENO"; then :
52352 glibcxx_cv_dirent_d_type=yes
52353 else
52354 glibcxx_cv_dirent_d_type=no
52356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52357 else
52358 if test x$gcc_no_link = xyes; then
52359 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52362 /* end confdefs.h. */
52363 #include <dirent.h>
52365 main ()
52368 struct dirent d;
52369 if (sizeof d.d_type) return 0;
52372 return 0;
52374 _ACEOF
52375 if ac_fn_cxx_try_link "$LINENO"; then :
52376 glibcxx_cv_dirent_d_type=yes
52377 else
52378 glibcxx_cv_dirent_d_type=no
52380 rm -f core conftest.err conftest.$ac_objext \
52381 conftest$ac_exeext conftest.$ac_ext
52385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_dirent_d_type" >&5
52386 $as_echo "$glibcxx_cv_dirent_d_type" >&6; }
52387 if test $glibcxx_cv_dirent_d_type = yes; then
52389 $as_echo "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
52392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chmod" >&5
52393 $as_echo_n "checking for chmod... " >&6; }
52394 if ${glibcxx_cv_chmod+:} false; then :
52395 $as_echo_n "(cached) " >&6
52396 else
52397 if test x$gcc_no_link = xyes; then
52398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52399 /* end confdefs.h. */
52401 #include <sys/stat.h>
52404 main ()
52407 int i = chmod("", S_IRUSR);
52410 return 0;
52412 _ACEOF
52413 if ac_fn_cxx_try_compile "$LINENO"; then :
52414 glibcxx_cv_chmod=yes
52415 else
52416 glibcxx_cv_chmod=no
52418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52419 else
52420 if test x$gcc_no_link = xyes; then
52421 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52424 /* end confdefs.h. */
52426 #include <sys/stat.h>
52429 main ()
52432 int i = chmod("", S_IRUSR);
52435 return 0;
52437 _ACEOF
52438 if ac_fn_cxx_try_link "$LINENO"; then :
52439 glibcxx_cv_chmod=yes
52440 else
52441 glibcxx_cv_chmod=no
52443 rm -f core conftest.err conftest.$ac_objext \
52444 conftest$ac_exeext conftest.$ac_ext
52448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_chmod" >&5
52449 $as_echo "$glibcxx_cv_chmod" >&6; }
52450 if test $glibcxx_cv_chmod = yes; then
52452 $as_echo "#define _GLIBCXX_USE_CHMOD 1" >>confdefs.h
52455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mkdir" >&5
52456 $as_echo_n "checking for mkdir... " >&6; }
52457 if ${glibcxx_cv_mkdir+:} false; then :
52458 $as_echo_n "(cached) " >&6
52459 else
52460 if test x$gcc_no_link = xyes; then
52461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52462 /* end confdefs.h. */
52464 #include <sys/stat.h>
52467 main ()
52470 int i = mkdir("", S_IRUSR);
52473 return 0;
52475 _ACEOF
52476 if ac_fn_cxx_try_compile "$LINENO"; then :
52477 glibcxx_cv_mkdir=yes
52478 else
52479 glibcxx_cv_mkdir=no
52481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52482 else
52483 if test x$gcc_no_link = xyes; then
52484 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52487 /* end confdefs.h. */
52489 #include <sys/stat.h>
52492 main ()
52495 int i = mkdir("", S_IRUSR);
52498 return 0;
52500 _ACEOF
52501 if ac_fn_cxx_try_link "$LINENO"; then :
52502 glibcxx_cv_mkdir=yes
52503 else
52504 glibcxx_cv_mkdir=no
52506 rm -f core conftest.err conftest.$ac_objext \
52507 conftest$ac_exeext conftest.$ac_ext
52511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_mkdir" >&5
52512 $as_echo "$glibcxx_cv_mkdir" >&6; }
52513 if test $glibcxx_cv_mkdir = yes; then
52515 $as_echo "#define _GLIBCXX_USE_MKDIR 1" >>confdefs.h
52518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for chdir" >&5
52519 $as_echo_n "checking for chdir... " >&6; }
52520 if ${glibcxx_cv_chdir+:} false; then :
52521 $as_echo_n "(cached) " >&6
52522 else
52523 if test x$gcc_no_link = xyes; then
52524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52525 /* end confdefs.h. */
52527 #include <unistd.h>
52530 main ()
52533 int i = chdir("");
52536 return 0;
52538 _ACEOF
52539 if ac_fn_cxx_try_compile "$LINENO"; then :
52540 glibcxx_cv_chdir=yes
52541 else
52542 glibcxx_cv_chdir=no
52544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52545 else
52546 if test x$gcc_no_link = xyes; then
52547 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52550 /* end confdefs.h. */
52552 #include <unistd.h>
52555 main ()
52558 int i = chdir("");
52561 return 0;
52563 _ACEOF
52564 if ac_fn_cxx_try_link "$LINENO"; then :
52565 glibcxx_cv_chdir=yes
52566 else
52567 glibcxx_cv_chdir=no
52569 rm -f core conftest.err conftest.$ac_objext \
52570 conftest$ac_exeext conftest.$ac_ext
52574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_chdir" >&5
52575 $as_echo "$glibcxx_cv_chdir" >&6; }
52576 if test $glibcxx_cv_chdir = yes; then
52578 $as_echo "#define _GLIBCXX_USE_CHDIR 1" >>confdefs.h
52581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getcwd" >&5
52582 $as_echo_n "checking for getcwd... " >&6; }
52583 if ${glibcxx_cv_getcwd+:} false; then :
52584 $as_echo_n "(cached) " >&6
52585 else
52586 if test x$gcc_no_link = xyes; then
52587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52588 /* end confdefs.h. */
52590 #include <unistd.h>
52593 main ()
52596 char* s = getcwd((char*)0, 1);
52599 return 0;
52601 _ACEOF
52602 if ac_fn_cxx_try_compile "$LINENO"; then :
52603 glibcxx_cv_getcwd=yes
52604 else
52605 glibcxx_cv_getcwd=no
52607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52608 else
52609 if test x$gcc_no_link = xyes; then
52610 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52613 /* end confdefs.h. */
52615 #include <unistd.h>
52618 main ()
52621 char* s = getcwd((char*)0, 1);
52624 return 0;
52626 _ACEOF
52627 if ac_fn_cxx_try_link "$LINENO"; then :
52628 glibcxx_cv_getcwd=yes
52629 else
52630 glibcxx_cv_getcwd=no
52632 rm -f core conftest.err conftest.$ac_objext \
52633 conftest$ac_exeext conftest.$ac_ext
52637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_getcwd" >&5
52638 $as_echo "$glibcxx_cv_getcwd" >&6; }
52639 if test $glibcxx_cv_getcwd = yes; then
52641 $as_echo "#define _GLIBCXX_USE_GETCWD 1" >>confdefs.h
52644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for realpath" >&5
52645 $as_echo_n "checking for realpath... " >&6; }
52646 if ${glibcxx_cv_realpath+:} false; then :
52647 $as_echo_n "(cached) " >&6
52648 else
52649 if test x$gcc_no_link = xyes; then
52650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52651 /* end confdefs.h. */
52653 #include <limits.h>
52654 #include <stdlib.h>
52655 #include <unistd.h>
52658 main ()
52661 #if _XOPEN_VERSION < 500
52662 #error
52663 #elif _XOPEN_VERSION >= 700 || defined(PATH_MAX)
52664 char *tmp = realpath((const char*)NULL, (char*)NULL);
52665 #else
52666 #error
52667 #endif
52670 return 0;
52672 _ACEOF
52673 if ac_fn_cxx_try_compile "$LINENO"; then :
52674 glibcxx_cv_realpath=yes
52675 else
52676 glibcxx_cv_realpath=no
52678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52679 else
52680 if test x$gcc_no_link = xyes; then
52681 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52684 /* end confdefs.h. */
52686 #include <limits.h>
52687 #include <stdlib.h>
52688 #include <unistd.h>
52691 main ()
52694 #if _XOPEN_VERSION < 500
52695 #error
52696 #elif _XOPEN_VERSION >= 700 || defined(PATH_MAX)
52697 char *tmp = realpath((const char*)NULL, (char*)NULL);
52698 #else
52699 #error
52700 #endif
52703 return 0;
52705 _ACEOF
52706 if ac_fn_cxx_try_link "$LINENO"; then :
52707 glibcxx_cv_realpath=yes
52708 else
52709 glibcxx_cv_realpath=no
52711 rm -f core conftest.err conftest.$ac_objext \
52712 conftest$ac_exeext conftest.$ac_ext
52716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_realpath" >&5
52717 $as_echo "$glibcxx_cv_realpath" >&6; }
52718 if test $glibcxx_cv_realpath = yes; then
52720 $as_echo "#define _GLIBCXX_USE_REALPATH 1" >>confdefs.h
52723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimensat" >&5
52724 $as_echo_n "checking for utimensat... " >&6; }
52725 if ${glibcxx_cv_utimensat+:} false; then :
52726 $as_echo_n "(cached) " >&6
52727 else
52728 if test x$gcc_no_link = xyes; then
52729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52730 /* end confdefs.h. */
52732 #include <fcntl.h>
52733 #include <sys/stat.h>
52736 main ()
52739 struct timespec ts[2] = { { 0, UTIME_OMIT }, { 1, 1 } };
52740 int i = utimensat(AT_FDCWD, "path", ts, 0);
52743 return 0;
52745 _ACEOF
52746 if ac_fn_cxx_try_compile "$LINENO"; then :
52747 glibcxx_cv_utimensat=yes
52748 else
52749 glibcxx_cv_utimensat=no
52751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52752 else
52753 if test x$gcc_no_link = xyes; then
52754 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52757 /* end confdefs.h. */
52759 #include <fcntl.h>
52760 #include <sys/stat.h>
52763 main ()
52766 struct timespec ts[2] = { { 0, UTIME_OMIT }, { 1, 1 } };
52767 int i = utimensat(AT_FDCWD, "path", ts, 0);
52770 return 0;
52772 _ACEOF
52773 if ac_fn_cxx_try_link "$LINENO"; then :
52774 glibcxx_cv_utimensat=yes
52775 else
52776 glibcxx_cv_utimensat=no
52778 rm -f core conftest.err conftest.$ac_objext \
52779 conftest$ac_exeext conftest.$ac_ext
52783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_utimensat" >&5
52784 $as_echo "$glibcxx_cv_utimensat" >&6; }
52785 if test $glibcxx_cv_utimensat = yes; then
52787 $as_echo "#define _GLIBCXX_USE_UTIMENSAT 1" >>confdefs.h
52790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime" >&5
52791 $as_echo_n "checking for utime... " >&6; }
52792 if ${glibcxx_cv_utime+:} false; then :
52793 $as_echo_n "(cached) " >&6
52794 else
52795 if test x$gcc_no_link = xyes; then
52796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52797 /* end confdefs.h. */
52799 #include <utime.h>
52802 main ()
52805 struct utimbuf t = { 1, 1 };
52806 int i = utime("path", &t);
52809 return 0;
52811 _ACEOF
52812 if ac_fn_cxx_try_compile "$LINENO"; then :
52813 glibcxx_cv_utime=yes
52814 else
52815 glibcxx_cv_utime=no
52817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52818 else
52819 if test x$gcc_no_link = xyes; then
52820 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52823 /* end confdefs.h. */
52825 #include <utime.h>
52828 main ()
52831 struct utimbuf t = { 1, 1 };
52832 int i = utime("path", &t);
52835 return 0;
52837 _ACEOF
52838 if ac_fn_cxx_try_link "$LINENO"; then :
52839 glibcxx_cv_utime=yes
52840 else
52841 glibcxx_cv_utime=no
52843 rm -f core conftest.err conftest.$ac_objext \
52844 conftest$ac_exeext conftest.$ac_ext
52848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_utime" >&5
52849 $as_echo "$glibcxx_cv_utime" >&6; }
52850 if test $glibcxx_cv_utime = yes; then
52852 $as_echo "#define _GLIBCXX_USE_UTIME 1" >>confdefs.h
52855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat" >&5
52856 $as_echo_n "checking for lstat... " >&6; }
52857 if ${glibcxx_cv_lstat+:} false; then :
52858 $as_echo_n "(cached) " >&6
52859 else
52860 if test x$gcc_no_link = xyes; then
52861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52862 /* end confdefs.h. */
52863 #include <sys/stat.h>
52865 main ()
52868 struct stat st;
52869 int i = lstat("path", &st);
52872 return 0;
52874 _ACEOF
52875 if ac_fn_cxx_try_compile "$LINENO"; then :
52876 glibcxx_cv_lstat=yes
52877 else
52878 glibcxx_cv_lstat=no
52880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52881 else
52882 if test x$gcc_no_link = xyes; then
52883 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52886 /* end confdefs.h. */
52887 #include <sys/stat.h>
52889 main ()
52892 struct stat st;
52893 int i = lstat("path", &st);
52896 return 0;
52898 _ACEOF
52899 if ac_fn_cxx_try_link "$LINENO"; then :
52900 glibcxx_cv_lstat=yes
52901 else
52902 glibcxx_cv_lstat=no
52904 rm -f core conftest.err conftest.$ac_objext \
52905 conftest$ac_exeext conftest.$ac_ext
52909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_lstat" >&5
52910 $as_echo "$glibcxx_cv_lstat" >&6; }
52911 if test $glibcxx_cv_lstat = yes; then
52913 $as_echo "#define _GLIBCXX_USE_LSTAT 1" >>confdefs.h
52916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec" >&5
52917 $as_echo_n "checking for struct stat.st_mtim.tv_nsec... " >&6; }
52918 if ${glibcxx_cv_st_mtim+:} false; then :
52919 $as_echo_n "(cached) " >&6
52920 else
52921 if test x$gcc_no_link = xyes; then
52922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52923 /* end confdefs.h. */
52924 #include <sys/stat.h>
52926 main ()
52929 struct stat st;
52930 return st.st_mtim.tv_nsec;
52933 return 0;
52935 _ACEOF
52936 if ac_fn_cxx_try_compile "$LINENO"; then :
52937 glibcxx_cv_st_mtim=yes
52938 else
52939 glibcxx_cv_st_mtim=no
52941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52942 else
52943 if test x$gcc_no_link = xyes; then
52944 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
52946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52947 /* end confdefs.h. */
52948 #include <sys/stat.h>
52950 main ()
52953 struct stat st;
52954 return st.st_mtim.tv_nsec;
52957 return 0;
52959 _ACEOF
52960 if ac_fn_cxx_try_link "$LINENO"; then :
52961 glibcxx_cv_st_mtim=yes
52962 else
52963 glibcxx_cv_st_mtim=no
52965 rm -f core conftest.err conftest.$ac_objext \
52966 conftest$ac_exeext conftest.$ac_ext
52970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_st_mtim" >&5
52971 $as_echo "$glibcxx_cv_st_mtim" >&6; }
52972 if test $glibcxx_cv_st_mtim = yes; then
52974 $as_echo "#define _GLIBCXX_USE_ST_MTIM 1" >>confdefs.h
52977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchmod" >&5
52978 $as_echo_n "checking for fchmod... " >&6; }
52979 if ${glibcxx_cv_fchmod+:} false; then :
52980 $as_echo_n "(cached) " >&6
52981 else
52982 if test x$gcc_no_link = xyes; then
52983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52984 /* end confdefs.h. */
52985 #include <sys/stat.h>
52987 main ()
52989 fchmod(1, S_IWUSR);
52991 return 0;
52993 _ACEOF
52994 if ac_fn_cxx_try_compile "$LINENO"; then :
52995 glibcxx_cv_fchmod=yes
52996 else
52997 glibcxx_cv_fchmod=no
52999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53000 else
53001 if test x$gcc_no_link = xyes; then
53002 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53005 /* end confdefs.h. */
53006 #include <sys/stat.h>
53008 main ()
53010 fchmod(1, S_IWUSR);
53012 return 0;
53014 _ACEOF
53015 if ac_fn_cxx_try_link "$LINENO"; then :
53016 glibcxx_cv_fchmod=yes
53017 else
53018 glibcxx_cv_fchmod=no
53020 rm -f core conftest.err conftest.$ac_objext \
53021 conftest$ac_exeext conftest.$ac_ext
53025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_fchmod" >&5
53026 $as_echo "$glibcxx_cv_fchmod" >&6; }
53027 if test $glibcxx_cv_fchmod = yes; then
53029 $as_echo "#define _GLIBCXX_USE_FCHMOD 1" >>confdefs.h
53032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchmodat" >&5
53033 $as_echo_n "checking for fchmodat... " >&6; }
53034 if ${glibcxx_cv_fchmodat+:} false; then :
53035 $as_echo_n "(cached) " >&6
53036 else
53037 if test x$gcc_no_link = xyes; then
53038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53039 /* end confdefs.h. */
53041 #include <fcntl.h>
53042 #include <sys/stat.h>
53045 main ()
53047 fchmodat(AT_FDCWD, "", 0, AT_SYMLINK_NOFOLLOW);
53049 return 0;
53051 _ACEOF
53052 if ac_fn_cxx_try_compile "$LINENO"; then :
53053 glibcxx_cv_fchmodat=yes
53054 else
53055 glibcxx_cv_fchmodat=no
53057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53058 else
53059 if test x$gcc_no_link = xyes; then
53060 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53063 /* end confdefs.h. */
53065 #include <fcntl.h>
53066 #include <sys/stat.h>
53069 main ()
53071 fchmodat(AT_FDCWD, "", 0, AT_SYMLINK_NOFOLLOW);
53073 return 0;
53075 _ACEOF
53076 if ac_fn_cxx_try_link "$LINENO"; then :
53077 glibcxx_cv_fchmodat=yes
53078 else
53079 glibcxx_cv_fchmodat=no
53081 rm -f core conftest.err conftest.$ac_objext \
53082 conftest$ac_exeext conftest.$ac_ext
53086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_fchmodat" >&5
53087 $as_echo "$glibcxx_cv_fchmodat" >&6; }
53088 if test $glibcxx_cv_fchmodat = yes; then
53090 $as_echo "#define _GLIBCXX_USE_FCHMODAT 1" >>confdefs.h
53093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5
53094 $as_echo_n "checking for link... " >&6; }
53095 if ${glibcxx_cv_link+:} false; then :
53096 $as_echo_n "(cached) " >&6
53097 else
53098 if test x$gcc_no_link = xyes; then
53099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53100 /* end confdefs.h. */
53101 #include <unistd.h>
53103 main ()
53105 link("", "");
53107 return 0;
53109 _ACEOF
53110 if ac_fn_cxx_try_compile "$LINENO"; then :
53111 glibcxx_cv_link=yes
53112 else
53113 glibcxx_cv_link=no
53115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53116 else
53117 if test x$gcc_no_link = xyes; then
53118 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53121 /* end confdefs.h. */
53122 #include <unistd.h>
53124 main ()
53126 link("", "");
53128 return 0;
53130 _ACEOF
53131 if ac_fn_cxx_try_link "$LINENO"; then :
53132 glibcxx_cv_link=yes
53133 else
53134 glibcxx_cv_link=no
53136 rm -f core conftest.err conftest.$ac_objext \
53137 conftest$ac_exeext conftest.$ac_ext
53141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_link" >&5
53142 $as_echo "$glibcxx_cv_link" >&6; }
53143 if test $glibcxx_cv_link = yes; then
53145 $as_echo "#define HAVE_LINK 1" >>confdefs.h
53148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lseek" >&5
53149 $as_echo_n "checking for lseek... " >&6; }
53150 if ${glibcxx_cv_lseek+:} false; then :
53151 $as_echo_n "(cached) " >&6
53152 else
53153 if test x$gcc_no_link = xyes; then
53154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53155 /* end confdefs.h. */
53156 #include <unistd.h>
53158 main ()
53160 lseek(1, 0, SEEK_SET);
53162 return 0;
53164 _ACEOF
53165 if ac_fn_cxx_try_compile "$LINENO"; then :
53166 glibcxx_cv_lseek=yes
53167 else
53168 glibcxx_cv_lseek=no
53170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53171 else
53172 if test x$gcc_no_link = xyes; then
53173 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53176 /* end confdefs.h. */
53177 #include <unistd.h>
53179 main ()
53181 lseek(1, 0, SEEK_SET);
53183 return 0;
53185 _ACEOF
53186 if ac_fn_cxx_try_link "$LINENO"; then :
53187 glibcxx_cv_lseek=yes
53188 else
53189 glibcxx_cv_lseek=no
53191 rm -f core conftest.err conftest.$ac_objext \
53192 conftest$ac_exeext conftest.$ac_ext
53196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_lseek" >&5
53197 $as_echo "$glibcxx_cv_lseek" >&6; }
53198 if test $glibcxx_cv_lseek = yes; then
53200 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
53203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readlink" >&5
53204 $as_echo_n "checking for readlink... " >&6; }
53205 if ${glibcxx_cv_readlink+:} false; then :
53206 $as_echo_n "(cached) " >&6
53207 else
53208 if test x$gcc_no_link = xyes; then
53209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53210 /* end confdefs.h. */
53211 #include <unistd.h>
53213 main ()
53215 char buf[32]; readlink("", buf, sizeof(buf));
53217 return 0;
53219 _ACEOF
53220 if ac_fn_cxx_try_compile "$LINENO"; then :
53221 glibcxx_cv_readlink=yes
53222 else
53223 glibcxx_cv_readlink=no
53225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53226 else
53227 if test x$gcc_no_link = xyes; then
53228 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53231 /* end confdefs.h. */
53232 #include <unistd.h>
53234 main ()
53236 char buf[32]; readlink("", buf, sizeof(buf));
53238 return 0;
53240 _ACEOF
53241 if ac_fn_cxx_try_link "$LINENO"; then :
53242 glibcxx_cv_readlink=yes
53243 else
53244 glibcxx_cv_readlink=no
53246 rm -f core conftest.err conftest.$ac_objext \
53247 conftest$ac_exeext conftest.$ac_ext
53251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_readlink" >&5
53252 $as_echo "$glibcxx_cv_readlink" >&6; }
53253 if test $glibcxx_cv_readlink = yes; then
53255 $as_echo "#define HAVE_READLINK 1" >>confdefs.h
53258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
53259 $as_echo_n "checking for symlink... " >&6; }
53260 if ${glibcxx_cv_symlink+:} false; then :
53261 $as_echo_n "(cached) " >&6
53262 else
53263 if test x$gcc_no_link = xyes; then
53264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53265 /* end confdefs.h. */
53266 #include <unistd.h>
53268 main ()
53270 symlink("", "");
53272 return 0;
53274 _ACEOF
53275 if ac_fn_cxx_try_compile "$LINENO"; then :
53276 glibcxx_cv_symlink=yes
53277 else
53278 glibcxx_cv_symlink=no
53280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53281 else
53282 if test x$gcc_no_link = xyes; then
53283 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53286 /* end confdefs.h. */
53287 #include <unistd.h>
53289 main ()
53291 symlink("", "");
53293 return 0;
53295 _ACEOF
53296 if ac_fn_cxx_try_link "$LINENO"; then :
53297 glibcxx_cv_symlink=yes
53298 else
53299 glibcxx_cv_symlink=no
53301 rm -f core conftest.err conftest.$ac_objext \
53302 conftest$ac_exeext conftest.$ac_ext
53306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_symlink" >&5
53307 $as_echo "$glibcxx_cv_symlink" >&6; }
53308 if test $glibcxx_cv_symlink = yes; then
53310 $as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
53313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncate" >&5
53314 $as_echo_n "checking for truncate... " >&6; }
53315 if ${glibcxx_cv_truncate+:} false; then :
53316 $as_echo_n "(cached) " >&6
53317 else
53318 if test x$gcc_no_link = xyes; then
53319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53320 /* end confdefs.h. */
53321 #include <unistd.h>
53323 main ()
53325 truncate("", 99);
53327 return 0;
53329 _ACEOF
53330 if ac_fn_cxx_try_compile "$LINENO"; then :
53331 glibcxx_cv_truncate=yes
53332 else
53333 glibcxx_cv_truncate=no
53335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53336 else
53337 if test x$gcc_no_link = xyes; then
53338 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53341 /* end confdefs.h. */
53342 #include <unistd.h>
53344 main ()
53346 truncate("", 99);
53348 return 0;
53350 _ACEOF
53351 if ac_fn_cxx_try_link "$LINENO"; then :
53352 glibcxx_cv_truncate=yes
53353 else
53354 glibcxx_cv_truncate=no
53356 rm -f core conftest.err conftest.$ac_objext \
53357 conftest$ac_exeext conftest.$ac_ext
53361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_truncate" >&5
53362 $as_echo "$glibcxx_cv_truncate" >&6; }
53363 if test $glibcxx_cv_truncate = yes; then
53365 $as_echo "#define HAVE_TRUNCATE 1" >>confdefs.h
53368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range that can copy files" >&5
53369 $as_echo_n "checking for copy_file_range that can copy files... " >&6; }
53370 if ${glibcxx_cv_copy_file_range+:} false; then :
53371 $as_echo_n "(cached) " >&6
53372 else
53373 case "${target_os}" in
53374 linux*)
53375 if test x$gcc_no_link = xyes; then
53376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53377 /* end confdefs.h. */
53378 #include <unistd.h>
53380 main ()
53382 copy_file_range(1, (loff_t*)nullptr, 2, (loff_t*)nullptr, 1, 0);
53384 return 0;
53386 _ACEOF
53387 if ac_fn_cxx_try_compile "$LINENO"; then :
53388 glibcxx_cv_copy_file_range=yes
53389 else
53390 glibcxx_cv_copy_file_range=no
53392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53393 else
53394 if test x$gcc_no_link = xyes; then
53395 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53398 /* end confdefs.h. */
53399 #include <unistd.h>
53401 main ()
53403 copy_file_range(1, (loff_t*)nullptr, 2, (loff_t*)nullptr, 1, 0);
53405 return 0;
53407 _ACEOF
53408 if ac_fn_cxx_try_link "$LINENO"; then :
53409 glibcxx_cv_copy_file_range=yes
53410 else
53411 glibcxx_cv_copy_file_range=no
53413 rm -f core conftest.err conftest.$ac_objext \
53414 conftest$ac_exeext conftest.$ac_ext
53418 glibcxx_cv_copy_file_range=no
53420 esac
53423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_copy_file_range" >&5
53424 $as_echo "$glibcxx_cv_copy_file_range" >&6; }
53425 if test $glibcxx_cv_copy_file_range = yes; then
53427 $as_echo "#define _GLIBCXX_USE_COPY_FILE_RANGE 1" >>confdefs.h
53430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile that can copy files" >&5
53431 $as_echo_n "checking for sendfile that can copy files... " >&6; }
53432 if ${glibcxx_cv_sendfile+:} false; then :
53433 $as_echo_n "(cached) " >&6
53434 else
53435 case "${target_os}" in
53436 gnu* | linux* | solaris* | uclinux*)
53437 if test x$gcc_no_link = xyes; then
53438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53439 /* end confdefs.h. */
53440 #include <sys/sendfile.h>
53442 main ()
53444 sendfile(1, 2, (off_t*)0, sizeof 1);
53446 return 0;
53448 _ACEOF
53449 if ac_fn_cxx_try_compile "$LINENO"; then :
53450 glibcxx_cv_sendfile=yes
53451 else
53452 glibcxx_cv_sendfile=no
53454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53455 else
53456 if test x$gcc_no_link = xyes; then
53457 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53460 /* end confdefs.h. */
53461 #include <sys/sendfile.h>
53463 main ()
53465 sendfile(1, 2, (off_t*)0, sizeof 1);
53467 return 0;
53469 _ACEOF
53470 if ac_fn_cxx_try_link "$LINENO"; then :
53471 glibcxx_cv_sendfile=yes
53472 else
53473 glibcxx_cv_sendfile=no
53475 rm -f core conftest.err conftest.$ac_objext \
53476 conftest$ac_exeext conftest.$ac_ext
53480 glibcxx_cv_sendfile=no
53482 esac
53485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sendfile" >&5
53486 $as_echo "$glibcxx_cv_sendfile" >&6; }
53487 if test $glibcxx_cv_sendfile = yes && test $glibcxx_cv_lseek = yes; then
53489 $as_echo "#define _GLIBCXX_USE_SENDFILE 1" >>confdefs.h
53492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdopendir" >&5
53493 $as_echo_n "checking for fdopendir... " >&6; }
53494 if ${glibcxx_cv_fdopendir+:} false; then :
53495 $as_echo_n "(cached) " >&6
53496 else
53497 if test x$gcc_no_link = xyes; then
53498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53499 /* end confdefs.h. */
53500 #include <dirent.h>
53502 main ()
53504 ::DIR* dir = ::fdopendir(1);
53506 return 0;
53508 _ACEOF
53509 if ac_fn_cxx_try_compile "$LINENO"; then :
53510 glibcxx_cv_fdopendir=yes
53511 else
53512 glibcxx_cv_fdopendir=no
53514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53515 else
53516 if test x$gcc_no_link = xyes; then
53517 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53520 /* end confdefs.h. */
53521 #include <dirent.h>
53523 main ()
53525 ::DIR* dir = ::fdopendir(1);
53527 return 0;
53529 _ACEOF
53530 if ac_fn_cxx_try_link "$LINENO"; then :
53531 glibcxx_cv_fdopendir=yes
53532 else
53533 glibcxx_cv_fdopendir=no
53535 rm -f core conftest.err conftest.$ac_objext \
53536 conftest$ac_exeext conftest.$ac_ext
53540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_fdopendir" >&5
53541 $as_echo "$glibcxx_cv_fdopendir" >&6; }
53542 if test $glibcxx_cv_fdopendir = yes; then
53544 $as_echo "#define HAVE_FDOPENDIR 1" >>confdefs.h
53547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dirfd" >&5
53548 $as_echo_n "checking for dirfd... " >&6; }
53549 if ${glibcxx_cv_dirfd+:} false; then :
53550 $as_echo_n "(cached) " >&6
53551 else
53552 if test x$gcc_no_link = xyes; then
53553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53554 /* end confdefs.h. */
53555 #include <dirent.h>
53557 main ()
53559 int fd = ::dirfd((::DIR*)0);
53561 return 0;
53563 _ACEOF
53564 if ac_fn_cxx_try_compile "$LINENO"; then :
53565 glibcxx_cv_dirfd=yes
53566 else
53567 glibcxx_cv_dirfd=no
53569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53570 else
53571 if test x$gcc_no_link = xyes; then
53572 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53575 /* end confdefs.h. */
53576 #include <dirent.h>
53578 main ()
53580 int fd = ::dirfd((::DIR*)0);
53582 return 0;
53584 _ACEOF
53585 if ac_fn_cxx_try_link "$LINENO"; then :
53586 glibcxx_cv_dirfd=yes
53587 else
53588 glibcxx_cv_dirfd=no
53590 rm -f core conftest.err conftest.$ac_objext \
53591 conftest$ac_exeext conftest.$ac_ext
53595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_dirfd" >&5
53596 $as_echo "$glibcxx_cv_dirfd" >&6; }
53597 if test $glibcxx_cv_dirfd = yes; then
53599 $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
53602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openat" >&5
53603 $as_echo_n "checking for openat... " >&6; }
53604 if ${glibcxx_cv_openat+:} false; then :
53605 $as_echo_n "(cached) " >&6
53606 else
53607 if test x$gcc_no_link = xyes; then
53608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53609 /* end confdefs.h. */
53610 #include <fcntl.h>
53612 main ()
53614 int fd = ::openat(AT_FDCWD, "", 0);
53616 return 0;
53618 _ACEOF
53619 if ac_fn_cxx_try_compile "$LINENO"; then :
53620 glibcxx_cv_openat=yes
53621 else
53622 glibcxx_cv_openat=no
53624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53625 else
53626 if test x$gcc_no_link = xyes; then
53627 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53630 /* end confdefs.h. */
53631 #include <fcntl.h>
53633 main ()
53635 int fd = ::openat(AT_FDCWD, "", 0);
53637 return 0;
53639 _ACEOF
53640 if ac_fn_cxx_try_link "$LINENO"; then :
53641 glibcxx_cv_openat=yes
53642 else
53643 glibcxx_cv_openat=no
53645 rm -f core conftest.err conftest.$ac_objext \
53646 conftest$ac_exeext conftest.$ac_ext
53650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_openat" >&5
53651 $as_echo "$glibcxx_cv_openat" >&6; }
53652 if test $glibcxx_cv_openat = yes; then
53654 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
53657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unlinkat" >&5
53658 $as_echo_n "checking for unlinkat... " >&6; }
53659 if ${glibcxx_cv_unlinkat+:} false; then :
53660 $as_echo_n "(cached) " >&6
53661 else
53662 if test x$gcc_no_link = xyes; then
53663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53664 /* end confdefs.h. */
53665 #include <fcntl.h>
53666 #include <unistd.h>
53668 main ()
53670 ::unlinkat(AT_FDCWD, "", AT_REMOVEDIR);
53672 return 0;
53674 _ACEOF
53675 if ac_fn_cxx_try_compile "$LINENO"; then :
53676 glibcxx_cv_unlinkat=yes
53677 else
53678 glibcxx_cv_unlinkat=no
53680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53681 else
53682 if test x$gcc_no_link = xyes; then
53683 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
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_link "$LINENO"; then :
53698 glibcxx_cv_unlinkat=yes
53699 else
53700 glibcxx_cv_unlinkat=no
53702 rm -f core conftest.err conftest.$ac_objext \
53703 conftest$ac_exeext conftest.$ac_ext
53707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_unlinkat" >&5
53708 $as_echo "$glibcxx_cv_unlinkat" >&6; }
53709 if test $glibcxx_cv_unlinkat = yes; then
53711 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
53714 CXXFLAGS="$ac_save_CXXFLAGS"
53715 ac_ext=c
53716 ac_cpp='$CPP $CPPFLAGS'
53717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
53718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
53719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
53724 # Check whether --enable-libstdcxx-backtrace was given.
53725 if test "${enable_libstdcxx_backtrace+set}" = set; then :
53726 enableval=$enable_libstdcxx_backtrace;
53727 case "$enableval" in
53728 yes|no|auto) ;;
53729 *) as_fn_error $? "Unknown argument to enable/disable libstdcxx-backtrace" "$LINENO" 5 ;;
53730 esac
53732 else
53733 enable_libstdcxx_backtrace=auto
53738 # Most of this is adapted from libsanitizer/configure.ac
53740 BACKTRACE_CPPFLAGS="-D_GNU_SOURCE"
53742 # libbacktrace only needs atomics for int, which we've already tested
53743 if test "$glibcxx_cv_atomic_int" = "yes"; then
53744 BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_ATOMIC_FUNCTIONS=1"
53747 # Test for __sync support.
53748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
53749 $as_echo_n "checking __sync extensions... " >&6; }
53750 if ${glibcxx_cv_sys_sync+:} false; then :
53751 $as_echo_n "(cached) " >&6
53752 else
53753 if test x$gcc_no_link = xyes; then
53754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53755 /* end confdefs.h. */
53756 int i;
53758 main ()
53760 __sync_bool_compare_and_swap (&i, i, i);
53761 __sync_lock_test_and_set (&i, 1);
53762 __sync_lock_release (&i);
53764 return 0;
53766 _ACEOF
53767 if ac_fn_c_try_compile "$LINENO"; then :
53768 glibcxx_cv_sys_sync=yes
53769 else
53770 glibcxx_cv_sys_sync=no
53772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53773 else
53774 if test x$gcc_no_link = xyes; then
53775 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
53777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53778 /* end confdefs.h. */
53779 int i;
53781 main ()
53783 __sync_bool_compare_and_swap (&i, i, i);
53784 __sync_lock_test_and_set (&i, 1);
53785 __sync_lock_release (&i);
53787 return 0;
53789 _ACEOF
53790 if ac_fn_c_try_link "$LINENO"; then :
53791 glibcxx_cv_sys_sync=yes
53792 else
53793 glibcxx_cv_sys_sync=no
53795 rm -f core conftest.err conftest.$ac_objext \
53796 conftest$ac_exeext conftest.$ac_ext
53800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sys_sync" >&5
53801 $as_echo "$glibcxx_cv_sys_sync" >&6; }
53802 if test "$glibcxx_cv_sys_sync" = "yes"; then
53803 BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_SYNC_FUNCTIONS=1"
53806 # Check for dl_iterate_phdr.
53807 for ac_header in link.h
53808 do :
53809 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
53810 if test "x$ac_cv_header_link_h" = xyes; then :
53811 cat >>confdefs.h <<_ACEOF
53812 #define HAVE_LINK_H 1
53813 _ACEOF
53817 done
53819 if test "$ac_cv_header_link_h" = "no"; then
53820 have_dl_iterate_phdr=no
53821 else
53822 # When built as a GCC target library, we can't do a link test.
53823 ac_save_CPPFLAGS="$CPPFLAGS"
53824 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
53825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53826 /* end confdefs.h. */
53827 #include <link.h>
53829 _ACEOF
53830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53831 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
53832 have_dl_iterate_phdr=yes
53833 else
53834 have_dl_iterate_phdr=no
53836 rm -f conftest*
53838 CPPFLAGS="$ac_save_CPPFLAGS"
53840 if test "$have_dl_iterate_phdr" = "yes"; then
53841 BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_DL_ITERATE_PHDR=1"
53843 for ac_header in windows.h
53844 do :
53845 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
53846 if test "x$ac_cv_header_windows_h" = xyes; then :
53847 cat >>confdefs.h <<_ACEOF
53848 #define HAVE_WINDOWS_H 1
53849 _ACEOF
53853 done
53856 # Check for the fcntl function.
53857 if test -n "${with_target_subdir}"; then
53858 case "${host}" in
53859 *-*-mingw*) have_fcntl=no ;;
53860 *) have_fcntl=yes ;;
53861 esac
53862 else
53863 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
53864 if test "x$ac_cv_func_fcntl" = xyes; then :
53865 have_fcntl=yes
53866 else
53867 have_fcntl=no
53871 if test "$have_fcntl" = "yes"; then
53872 BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_FCNTL=1"
53875 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
53876 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
53877 ac_have_decl=1
53878 else
53879 ac_have_decl=0
53882 cat >>confdefs.h <<_ACEOF
53883 #define HAVE_DECL_STRNLEN $ac_have_decl
53884 _ACEOF
53887 # Check for getexecname function.
53888 if test -n "${with_target_subdir}"; then
53889 case "${host}" in
53890 *-*-solaris2*) have_getexecname=yes ;;
53891 *) have_getexecname=no ;;
53892 esac
53893 else
53894 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
53895 if test "x$ac_cv_func_getexecname" = xyes; then :
53896 have_getexecname=yes
53897 else
53898 have_getexecname=no
53902 if test "$have_getexecname" = "yes"; then
53903 BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_GETEXECNAME=1"
53906 # The library needs to be able to read the executable itself. Compile
53907 # a file to determine the executable format. The awk script
53908 # filetype.awk prints out the file type.
53909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
53910 $as_echo_n "checking output filetype... " >&6; }
53911 if ${glibcxx_cv_sys_filetype+:} false; then :
53912 $as_echo_n "(cached) " >&6
53913 else
53914 filetype=
53915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53916 /* end confdefs.h. */
53917 int i;
53919 main ()
53921 int j;
53923 return 0;
53925 _ACEOF
53926 if ac_fn_c_try_compile "$LINENO"; then :
53927 filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
53928 else
53929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
53930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
53931 as_fn_error $? "compiler failed
53932 See \`config.log' for more details" "$LINENO" 5; }
53934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53935 glibcxx_cv_sys_filetype=$filetype
53937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_sys_filetype" >&5
53938 $as_echo "$glibcxx_cv_sys_filetype" >&6; }
53940 # Match the file type to decide what files to compile.
53941 FORMAT_FILE=
53942 case "$glibcxx_cv_sys_filetype" in
53943 elf*) FORMAT_FILE="elf.lo" ;;
53944 pecoff*) FORMAT_FILE="pecoff.lo" ;;
53945 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
53946 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
53947 FORMAT_FILE="unknown.lo"
53948 enable_libstdcxx_backtrace=no
53950 esac
53953 # ELF defines.
53954 elfsize=
53955 case "$glibcxx_cv_sys_filetype" in
53956 elf32) elfsize=32 ;;
53957 elf64) elfsize=64 ;;
53958 esac
53959 BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DBACKTRACE_ELF_SIZE=$elfsize"
53961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build libbacktrace support" >&5
53962 $as_echo_n "checking whether to build libbacktrace support... " >&6; }
53963 if test "$enable_libstdcxx_backtrace" = "auto"; then
53964 case "$host" in
53965 avr-*-*) enable_libstdcxx_backtrace=no ;;
53966 *) enable_libstdcxx_backtrace="$is_hosted" ;;
53967 esac
53969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libstdcxx_backtrace" >&5
53970 $as_echo "$enable_libstdcxx_backtrace" >&6; }
53971 if test "$enable_libstdcxx_backtrace" = "yes"; then
53972 BACKTRACE_SUPPORTED=1
53974 for ac_header in sys/mman.h
53975 do :
53976 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
53977 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
53978 cat >>confdefs.h <<_ACEOF
53979 #define HAVE_SYS_MMAN_H 1
53980 _ACEOF
53984 done
53986 case "${host}" in
53987 *-*-msdosdjgpp) # DJGPP has sys/man.h, but no mmap
53988 have_mmap=no ;;
53989 *-*-*)
53990 have_mmap="$ac_cv_header_sys_mman_h" ;;
53991 esac
53993 if test "$have_mmap" = "no"; then
53994 VIEW_FILE=read.lo
53995 ALLOC_FILE=alloc.lo
53996 else
53997 VIEW_FILE=mmapio.lo
53998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53999 /* end confdefs.h. */
54001 #include <sys/mman.h>
54002 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
54003 #error no MAP_ANONYMOUS
54004 #endif
54006 _ACEOF
54007 if ac_fn_c_try_cpp "$LINENO"; then :
54008 ALLOC_FILE=mmap.lo
54009 else
54010 ALLOC_FILE=alloc.lo
54012 rm -f conftest.err conftest.i conftest.$ac_ext
54017 BACKTRACE_USES_MALLOC=0
54018 if test "$ALLOC_FILE" = "alloc.lo"; then
54019 BACKTRACE_USES_MALLOC=1
54022 if test "$ac_has_gthreads" = "yes"; then
54023 BACKTRACE_SUPPORTS_THREADS=1
54024 else
54025 BACKTRACE_SUPPORTS_THREADS=0
54032 $as_echo "#define HAVE_STACKTRACE 1" >>confdefs.h
54034 else
54035 BACKTRACE_SUPPORTED=0
54036 BACKTRACE_USES_MALLOC=0
54037 BACKTRACE_SUPPORTS_THREADS=0
54042 # For Networking TS.
54043 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
54044 do :
54045 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
54046 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
54047 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
54048 cat >>confdefs.h <<_ACEOF
54049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
54050 _ACEOF
54054 done
54056 ac_fn_c_check_decl "$LINENO" "F_GETFL" "ac_cv_have_decl_F_GETFL" "#include <fcntl.h>
54058 if test "x$ac_cv_have_decl_F_GETFL" = xyes; then :
54062 ac_fn_c_check_decl "$LINENO" "F_SETFL" "ac_cv_have_decl_F_SETFL" "#include <fcntl.h>
54064 if test "x$ac_cv_have_decl_F_SETFL" = xyes; then :
54068 if test "$ac_cv_have_decl_F_GETFL$ac_cv_have_decl_F_SETFL" = yesyes ; then
54069 ac_fn_c_check_decl "$LINENO" "O_NONBLOCK" "ac_cv_have_decl_O_NONBLOCK" "#include <fcntl.h>
54071 if test "x$ac_cv_have_decl_O_NONBLOCK" = xyes; then :
54077 # For Transactional Memory TS
54079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
54080 $as_echo_n "checking how size_t is mangled... " >&6; }
54081 if ${glibcxx_cv_size_t_mangling+:} false; then :
54082 $as_echo_n "(cached) " >&6
54083 else
54085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54086 /* end confdefs.h. */
54089 main ()
54091 extern __SIZE_TYPE__ x; extern unsigned long x;
54093 return 0;
54095 _ACEOF
54096 if ac_fn_c_try_compile "$LINENO"; then :
54097 glibcxx_cv_size_t_mangling=m
54098 else
54100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54101 /* end confdefs.h. */
54104 main ()
54106 extern __SIZE_TYPE__ x; extern unsigned int x;
54108 return 0;
54110 _ACEOF
54111 if ac_fn_c_try_compile "$LINENO"; then :
54112 glibcxx_cv_size_t_mangling=j
54113 else
54115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54116 /* end confdefs.h. */
54119 main ()
54121 extern __SIZE_TYPE__ x; extern unsigned long long x;
54123 return 0;
54125 _ACEOF
54126 if ac_fn_c_try_compile "$LINENO"; then :
54127 glibcxx_cv_size_t_mangling=y
54128 else
54130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54131 /* end confdefs.h. */
54134 main ()
54136 extern __SIZE_TYPE__ x; extern unsigned short x;
54138 return 0;
54140 _ACEOF
54141 if ac_fn_c_try_compile "$LINENO"; then :
54142 glibcxx_cv_size_t_mangling=t
54143 else
54145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54146 /* end confdefs.h. */
54149 main ()
54151 extern __SIZE_TYPE__ x; extern __int20 unsigned x;
54153 return 0;
54155 _ACEOF
54156 if ac_fn_c_try_compile "$LINENO"; then :
54157 glibcxx_cv_size_t_mangling=u6uint20
54158 else
54159 glibcxx_cv_size_t_mangling=x
54161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_cv_size_t_mangling" >&5
54177 $as_echo "$glibcxx_cv_size_t_mangling" >&6; }
54178 if test $glibcxx_cv_size_t_mangling = x; then
54179 as_fn_error $? "Unknown underlying type for size_t" "$LINENO" 5
54182 cat >>confdefs.h <<_ACEOF
54183 #define _GLIBCXX_MANGLE_SIZE_T $glibcxx_cv_size_t_mangling
54184 _ACEOF
54188 # Check which release added std::exception_ptr for the target
54190 if test $enable_symvers != no; then
54191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for first version to support std::exception_ptr" >&5
54192 $as_echo_n "checking for first version to support std::exception_ptr... " >&6; }
54193 case ${target} in
54194 aarch64-*-* | alpha-*-* | hppa*-*-* | i?86-*-* | x86_64-*-* | \
54195 m68k-*-* | powerpc*-*-* | s390*-*-* | *-*-solaris* )
54196 ac_exception_ptr_since_gcc46=yes
54199 # If the value of this macro changes then we will need to hardcode
54200 # yes/no here for additional targets based on the original value.
54201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54202 /* end confdefs.h. */
54205 main ()
54208 #if __GCC_ATOMIC_INT_LOCK_FREE <= 1
54209 # error atomic int not always lock free
54210 #endif
54213 return 0;
54215 _ACEOF
54216 if ac_fn_c_try_compile "$LINENO"; then :
54217 ac_exception_ptr_since_gcc46=yes
54218 else
54219 ac_exception_ptr_since_gcc46=no
54221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54223 esac
54224 if test x"$ac_exception_ptr_since_gcc46" = x"yes" ; then
54226 $as_echo "#define HAVE_EXCEPTION_PTR_SINCE_GCC46 1" >>confdefs.h
54228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4.6.0" >&5
54229 $as_echo "4.6.0" >&6; }
54230 else
54231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 7.1.0" >&5
54232 $as_echo "7.1.0" >&6; }
54237 # For libsupc++/eh_alloc.cc defaults.
54239 eh_pool_static=
54240 eh_pool_nobjs=
54241 # Check whether --enable-libstdcxx-static-eh-pool was given.
54242 if test "${enable_libstdcxx_static_eh_pool+set}" = set; then :
54243 enableval=$enable_libstdcxx_static_eh_pool; if test "${enableval}" = yes; then
54244 eh_pool_static="-D_GLIBCXX_EH_POOL_STATIC"
54245 { $as_echo "$as_me:${as_lineno-$LINENO}: EH pool using static buffer" >&5
54246 $as_echo "$as_me: EH pool using static buffer" >&6;}
54252 # Check whether --with-libstdcxx-eh-pool-obj-count was given.
54253 if test "${with_libstdcxx_eh_pool_obj_count+set}" = set; then :
54254 withval=$with_libstdcxx_eh_pool_obj_count; if test "${withval}" -ge 0 2>/dev/null; then
54255 eh_pool_obj_count="-D_GLIBCXX_EH_POOL_NOBJS=${withval}"
54256 { $as_echo "$as_me:${as_lineno-$LINENO}: EH pool object count: ${withval}" >&5
54257 $as_echo "$as_me: EH pool object count: ${withval}" >&6;}
54258 else
54259 as_fn_error $? "EH pool obj count must be a non-negative integer: $withval" "$LINENO" 5
54264 EH_POOL_FLAGS="$eh_pool_static $eh_pool_obj_count"
54268 # For src/c++20/tzdb.cc defaults.
54271 # Check whether --with-libstdcxx-zoneinfo was given.
54272 if test "${with_libstdcxx_zoneinfo+set}" = set; then :
54273 withval=$with_libstdcxx_zoneinfo;
54274 else
54275 with_libstdcxx_zoneinfo=yes
54279 if test "x${with_libstdcxx_zoneinfo}" = xyes; then
54280 # Pick a default when no specific path is set.
54281 case "$target_os" in
54282 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
54283 # Not all distros ship tzdata.zi in this dir.
54284 zoneinfo_dir="/usr/share/zoneinfo"
54286 aix*)
54287 # Binary tzfile files are in /usr/share/lib/zoneinfo
54288 # but tzdata.zi is not present there.
54289 zoneinfo_dir=none
54291 darwin2*)
54292 # Binary tzfile files are in /usr/share/lib/zoneinfo.default
54293 # but tzdata.zi is not present there.
54294 zoneinfo_dir=none
54297 # Binary tzfile files are commonly found in /usr/share/zoneinfo
54298 # but tzdata.zi is not present there.
54299 zoneinfo_dir=none
54301 esac
54303 if ac_fn_c_compute_int "$LINENO" "__INTPTR_WIDTH__ >= 32" "glibcxx_cv_at_least_32bit" ""; then :
54307 if test "$glibcxx_cv_at_least_32bit" -ne 0; then
54308 # Also embed a copy of the tzdata.zi file as a static string.
54309 embed_zoneinfo=yes
54310 else
54311 # The embedded data is too large for 16-bit targets.
54312 embed_zoneinfo=no
54314 elif test "x${with_libstdcxx_zoneinfo}" = xno; then
54315 # Disable tzdb support completely.
54316 zoneinfo_dir=none
54317 embed_zoneinfo=no
54318 else
54319 case "${with_libstdcxx_zoneinfo}" in
54320 static)
54321 # Do not attempt to read from disk, always use embedded data.
54322 zoneinfo_dir=none
54323 embed_zoneinfo=yes
54325 static,* | *,static)
54326 # Try to read from disk, use embedded data as fallback.
54327 zoneinfo_dir="${with_libstdcxx_zoneinfo#static,}"
54328 zoneinfo_dir="${with_libstdcxx_zoneinfo%,static}"
54329 embed_zoneinfo=yes
54332 zoneinfo_dir="${with_libstdcxx_zoneinfo}"
54333 embed_zoneinfo=no
54335 esac
54337 { $as_echo "$as_me:${as_lineno-$LINENO}: zoneinfo data directory: ${zoneinfo_dir}" >&5
54338 $as_echo "$as_me: zoneinfo data directory: ${zoneinfo_dir}" >&6;}
54339 if test "x${zoneinfo_dir}" != xnone; then
54341 cat >>confdefs.h <<_ACEOF
54342 #define _GLIBCXX_ZONEINFO_DIR "${zoneinfo_dir}"
54343 _ACEOF
54345 if $GLIBCXX_IS_NATIVE && ! test -f "$zoneinfo_dir/tzdata.zi"; then
54346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$zoneinfo_dir does not contain tzdata.zi file\"" >&5
54347 $as_echo "$as_me: WARNING: \"$zoneinfo_dir does not contain tzdata.zi file\"" >&2;}
54351 if test "x${embed_zoneinfo}" = xyes; then
54352 { $as_echo "$as_me:${as_lineno-$LINENO}: static tzdata.zi file will be compiled into the library" >&5
54353 $as_echo "$as_me: static tzdata.zi file will be compiled into the library" >&6;}
54355 cat >>confdefs.h <<_ACEOF
54356 #define _GLIBCXX_STATIC_TZDATA 1
54357 _ACEOF
54362 # For src/c++11/shared_ptr.cc alignment.
54365 ac_ext=cpp
54366 ac_cpp='$CXXCPP $CPPFLAGS'
54367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static objects can be aligned to the cacheline size" >&5
54373 $as_echo_n "checking whether static objects can be aligned to the cacheline size... " >&6; }
54374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54375 /* end confdefs.h. */
54378 main ()
54380 struct alignas(__GCC_DESTRUCTIVE_SIZE) Aligned { };
54381 alignas(Aligned) static char buf[sizeof(Aligned) * 16];
54384 return 0;
54386 _ACEOF
54387 if ac_fn_cxx_try_compile "$LINENO"; then :
54388 ac_alignas_cacheline=yes
54389 else
54390 ac_alignas_cacheline=no
54392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54393 if test "$ac_alignas_cacheline" = yes; then
54395 cat >>confdefs.h <<_ACEOF
54396 #define _GLIBCXX_CAN_ALIGNAS_DESTRUCTIVE_SIZE 1
54397 _ACEOF
54400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_alignas_cacheline" >&5
54401 $as_echo "$ac_alignas_cacheline" >&6; }
54403 ac_ext=c
54404 ac_cpp='$CPP $CPPFLAGS'
54405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
54411 # For using init_priority in ios_init.cc
54414 ac_ext=cpp
54415 ac_cpp='$CXXCPP $CPPFLAGS'
54416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether init_priority attribute is supported" >&5
54422 $as_echo_n "checking whether init_priority attribute is supported... " >&6; }
54423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54424 /* end confdefs.h. */
54427 main ()
54430 #if ! __has_attribute(init_priority)
54431 #error init_priority not supported
54432 #endif
54435 return 0;
54437 _ACEOF
54438 if ac_fn_cxx_try_compile "$LINENO"; then :
54439 ac_init_priority=yes
54440 else
54441 ac_init_priority=no
54443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54444 if test "$ac_init_priority" = yes; then
54446 cat >>confdefs.h <<_ACEOF
54447 #define _GLIBCXX_USE_INIT_PRIORITY_ATTRIBUTE 1
54448 _ACEOF
54451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_init_priority" >&5
54452 $as_echo "$ac_init_priority" >&6; }
54454 ac_ext=c
54455 ac_cpp='$CPP $CPPFLAGS'
54456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
54462 # For __basic_file::native_handle()
54465 ac_ext=cpp
54466 ac_cpp='$CXXCPP $CPPFLAGS'
54467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _get_osfhandle is defined in <io.h>" >&5
54473 $as_echo_n "checking whether _get_osfhandle is defined in <io.h>... " >&6; }
54474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54475 /* end confdefs.h. */
54477 #if defined(_WIN32) && !defined(__CYGWIN__)
54478 # include <stdint.h>
54479 # include <stdio.h>
54480 # include <io.h>
54481 #endif
54484 main ()
54487 FILE* file = 0;
54488 int fd = fileno(file);
54489 intptr_t crt_handle = _get_osfhandle(fd);
54490 void* win32_handle = reinterpret_cast<void*>(crt_handle);
54493 return 0;
54495 _ACEOF
54496 if ac_fn_cxx_try_compile "$LINENO"; then :
54497 ac_get_osfhandle=yes
54498 else
54499 ac_get_osfhandle=no
54501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54502 if test "$ac_get_osfhandle" = yes; then
54504 cat >>confdefs.h <<_ACEOF
54505 #define _GLIBCXX_USE__GET_OSFHANDLE 1
54506 _ACEOF
54509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_get_osfhandle" >&5
54510 $as_echo "$ac_get_osfhandle" >&6; }
54512 ac_ext=c
54513 ac_cpp='$CPP $CPPFLAGS'
54514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
54520 # For std::text_encoding
54523 ac_ext=cpp
54524 ac_cpp='$CXXCPP $CPPFLAGS'
54525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo_l is defined in <langinfo.h>" >&5
54531 $as_echo_n "checking whether nl_langinfo_l is defined in <langinfo.h>... " >&6; }
54532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54533 /* end confdefs.h. */
54535 #include <locale.h>
54536 #include <langinfo.h>
54539 main ()
54542 locale_t loc = newlocale(LC_ALL_MASK, "", (locale_t)0);
54543 const char* enc = nl_langinfo_l(CODESET, loc);
54544 freelocale(loc);
54547 return 0;
54549 _ACEOF
54550 if ac_fn_cxx_try_compile "$LINENO"; then :
54551 ac_nl_langinfo_l=yes
54552 else
54553 ac_nl_langinfo_l=no
54555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_nl_langinfo_l" >&5
54557 $as_echo "$ac_nl_langinfo_l" >&6; }
54558 if test "$ac_nl_langinfo_l" = yes; then
54560 cat >>confdefs.h <<_ACEOF
54561 #define _GLIBCXX_USE_NL_LANGINFO_L 1
54562 _ACEOF
54566 ac_ext=c
54567 ac_cpp='$CPP $CPPFLAGS'
54568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
54569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
54570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
54574 # Define documentation rules conditionally.
54576 # See if makeinfo has been installed and is modern enough
54577 # that we can use it.
54579 # Extract the first word of "makeinfo", so it can be a program name with args.
54580 set dummy makeinfo; ac_word=$2
54581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54582 $as_echo_n "checking for $ac_word... " >&6; }
54583 if ${ac_cv_prog_MAKEINFO+:} false; then :
54584 $as_echo_n "(cached) " >&6
54585 else
54586 if test -n "$MAKEINFO"; then
54587 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
54588 else
54589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54590 for as_dir in $PATH
54592 IFS=$as_save_IFS
54593 test -z "$as_dir" && as_dir=.
54594 for ac_exec_ext in '' $ac_executable_extensions; do
54595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
54596 ac_cv_prog_MAKEINFO="makeinfo"
54597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54598 break 2
54600 done
54601 done
54602 IFS=$as_save_IFS
54606 MAKEINFO=$ac_cv_prog_MAKEINFO
54607 if test -n "$MAKEINFO"; then
54608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
54609 $as_echo "$MAKEINFO" >&6; }
54610 else
54611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54612 $as_echo "no" >&6; }
54616 if test -n "$MAKEINFO"; then
54617 # Found it, now check the version.
54618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
54619 $as_echo_n "checking for modern makeinfo... " >&6; }
54620 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
54621 $as_echo_n "(cached) " >&6
54622 else
54623 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
54624 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
54626 case $ac_prog_version in
54627 '') gcc_cv_prog_makeinfo_modern=no;;
54628 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
54629 *) gcc_cv_prog_makeinfo_modern=no;;
54630 esac
54633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
54634 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
54635 else
54636 gcc_cv_prog_makeinfo_modern=no
54638 if test $gcc_cv_prog_makeinfo_modern = no; then
54639 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
54642 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
54643 BUILD_INFO_TRUE=
54644 BUILD_INFO_FALSE='#'
54645 else
54646 BUILD_INFO_TRUE='#'
54647 BUILD_INFO_FALSE=
54651 # Check for doxygen
54652 # Extract the first word of "doxygen", so it can be a program name with args.
54653 set dummy doxygen; ac_word=$2
54654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54655 $as_echo_n "checking for $ac_word... " >&6; }
54656 if ${ac_cv_prog_DOXYGEN+:} false; then :
54657 $as_echo_n "(cached) " >&6
54658 else
54659 if test -n "$DOXYGEN"; then
54660 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
54661 else
54662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54663 for as_dir in $PATH
54665 IFS=$as_save_IFS
54666 test -z "$as_dir" && as_dir=.
54667 for ac_exec_ext in '' $ac_executable_extensions; do
54668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
54669 ac_cv_prog_DOXYGEN="yes"
54670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54671 break 2
54673 done
54674 done
54675 IFS=$as_save_IFS
54677 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="no"
54680 DOXYGEN=$ac_cv_prog_DOXYGEN
54681 if test -n "$DOXYGEN"; then
54682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
54683 $as_echo "$DOXYGEN" >&6; }
54684 else
54685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54686 $as_echo "no" >&6; }
54690 # Extract the first word of "dot", so it can be a program name with args.
54691 set dummy dot; ac_word=$2
54692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54693 $as_echo_n "checking for $ac_word... " >&6; }
54694 if ${ac_cv_prog_DOT+:} false; then :
54695 $as_echo_n "(cached) " >&6
54696 else
54697 if test -n "$DOT"; then
54698 ac_cv_prog_DOT="$DOT" # Let the user override the test.
54699 else
54700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54701 for as_dir in $PATH
54703 IFS=$as_save_IFS
54704 test -z "$as_dir" && as_dir=.
54705 for ac_exec_ext in '' $ac_executable_extensions; do
54706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
54707 ac_cv_prog_DOT="yes"
54708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54709 break 2
54711 done
54712 done
54713 IFS=$as_save_IFS
54715 test -z "$ac_cv_prog_DOT" && ac_cv_prog_DOT="no"
54718 DOT=$ac_cv_prog_DOT
54719 if test -n "$DOT"; then
54720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
54721 $as_echo "$DOT" >&6; }
54722 else
54723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54724 $as_echo "no" >&6; }
54729 # Check for docbook
54730 # Extract the first word of "xmlcatalog", so it can be a program name with args.
54731 set dummy xmlcatalog; ac_word=$2
54732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54733 $as_echo_n "checking for $ac_word... " >&6; }
54734 if ${ac_cv_prog_XMLCATALOG+:} false; then :
54735 $as_echo_n "(cached) " >&6
54736 else
54737 if test -n "$XMLCATALOG"; then
54738 ac_cv_prog_XMLCATALOG="$XMLCATALOG" # Let the user override the test.
54739 else
54740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54741 for as_dir in $PATH
54743 IFS=$as_save_IFS
54744 test -z "$as_dir" && as_dir=.
54745 for ac_exec_ext in '' $ac_executable_extensions; do
54746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
54747 ac_cv_prog_XMLCATALOG="yes"
54748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54749 break 2
54751 done
54752 done
54753 IFS=$as_save_IFS
54755 test -z "$ac_cv_prog_XMLCATALOG" && ac_cv_prog_XMLCATALOG="no"
54758 XMLCATALOG=$ac_cv_prog_XMLCATALOG
54759 if test -n "$XMLCATALOG"; then
54760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5
54761 $as_echo "$XMLCATALOG" >&6; }
54762 else
54763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54764 $as_echo "no" >&6; }
54768 # Extract the first word of "xsltproc", so it can be a program name with args.
54769 set dummy xsltproc; ac_word=$2
54770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54771 $as_echo_n "checking for $ac_word... " >&6; }
54772 if ${ac_cv_prog_XSLTPROC+:} false; then :
54773 $as_echo_n "(cached) " >&6
54774 else
54775 if test -n "$XSLTPROC"; then
54776 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
54777 else
54778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54779 for as_dir in $PATH
54781 IFS=$as_save_IFS
54782 test -z "$as_dir" && as_dir=.
54783 for ac_exec_ext in '' $ac_executable_extensions; do
54784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
54785 ac_cv_prog_XSLTPROC="yes"
54786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54787 break 2
54789 done
54790 done
54791 IFS=$as_save_IFS
54793 test -z "$ac_cv_prog_XSLTPROC" && ac_cv_prog_XSLTPROC="no"
54796 XSLTPROC=$ac_cv_prog_XSLTPROC
54797 if test -n "$XSLTPROC"; then
54798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
54799 $as_echo "$XSLTPROC" >&6; }
54800 else
54801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54802 $as_echo "no" >&6; }
54806 # Extract the first word of "xmllint", so it can be a program name with args.
54807 set dummy xmllint; ac_word=$2
54808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54809 $as_echo_n "checking for $ac_word... " >&6; }
54810 if ${ac_cv_prog_XMLLINT+:} false; then :
54811 $as_echo_n "(cached) " >&6
54812 else
54813 if test -n "$XMLLINT"; then
54814 ac_cv_prog_XMLLINT="$XMLLINT" # Let the user override the test.
54815 else
54816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54817 for as_dir in $PATH
54819 IFS=$as_save_IFS
54820 test -z "$as_dir" && as_dir=.
54821 for ac_exec_ext in '' $ac_executable_extensions; do
54822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
54823 ac_cv_prog_XMLLINT="yes"
54824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54825 break 2
54827 done
54828 done
54829 IFS=$as_save_IFS
54831 test -z "$ac_cv_prog_XMLLINT" && ac_cv_prog_XMLLINT="no"
54834 XMLLINT=$ac_cv_prog_XMLLINT
54835 if test -n "$XMLLINT"; then
54836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
54837 $as_echo "$XMLLINT" >&6; }
54838 else
54839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54840 $as_echo "no" >&6; }
54846 glibcxx_docbook_url=http://cdn.docbook.org/release/xsl/current/
54848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local stylesheet directory" >&5
54849 $as_echo_n "checking for local stylesheet directory... " >&6; }
54850 glibcxx_local_stylesheets=no
54851 if test x${XMLCATALOG} = xyes && xsl_style_dir=`xmlcatalog "" $glibcxx_docbook_url 2>/dev/null`
54852 then
54853 XSL_STYLE_DIR=`echo $xsl_style_dir | sed -n 's;^file://;;p'`
54854 glibcxx_local_stylesheets=yes
54855 else
54856 for dir in \
54857 /usr/share/sgml/docbook/xsl-ns-stylesheets \
54858 /usr/share/xml/docbook/stylesheet/docbook-xsl-ns \
54859 /usr/share/xml/docbook/stylesheet/nwalsh5/current \
54860 /usr/share/xml/docbook/stylesheet/nwalsh/current
54862 if test -d $dir; then
54863 glibcxx_local_stylesheets=yes
54864 XSL_STYLE_DIR=$dir
54865 break
54867 done
54869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_local_stylesheets" >&5
54870 $as_echo "$glibcxx_local_stylesheets" >&6; }
54872 if test x"$glibcxx_local_stylesheets" = x"yes"; then
54874 { $as_echo "$as_me:${as_lineno-$LINENO}: $XSL_STYLE_DIR" >&5
54875 $as_echo "$as_me: $XSL_STYLE_DIR" >&6;}
54877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for docbook stylesheets for documentation creation" >&5
54878 $as_echo_n "checking for docbook stylesheets for documentation creation... " >&6; }
54879 glibcxx_stylesheets=no
54880 if test x${XMLCATALOG} = xno || xmlcatalog "" $glibcxx_docbook_url/xhtml/docbook.xsl >/dev/null 2>&1; then
54881 if test x${XSLTPROC} = xyes && echo '<title/>' | xsltproc --noout --nonet --xinclude $glibcxx_docbook_url/xhtml/docbook.xsl - 2>/dev/null; then
54882 glibcxx_stylesheets=yes
54885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_stylesheets" >&5
54886 $as_echo "$glibcxx_stylesheets" >&6; }
54888 else
54889 glibcxx_stylesheets=no
54892 # Check for epub3 dependencies.
54893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epub3 stylesheets for documentation creation" >&5
54894 $as_echo_n "checking for epub3 stylesheets for documentation creation... " >&6; }
54895 glibcxx_epub_stylesheets=no
54896 if test x"$glibcxx_local_stylesheets" = x"yes"; then
54897 if test -f "$XSL_STYLE_DIR/epub3/chunk.xsl"; then
54898 glibcxx_epub_stylesheets=yes
54901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibcxx_epub_stylesheets" >&5
54902 $as_echo "$glibcxx_epub_stylesheets" >&6; }
54903 if test x"$glibcxx_epub_stylesheets" = x"yes"; then
54904 BUILD_EPUB_TRUE=
54905 BUILD_EPUB_FALSE='#'
54906 else
54907 BUILD_EPUB_TRUE='#'
54908 BUILD_EPUB_FALSE=
54914 # Check for xml/html dependencies.
54915 if test $ac_cv_prog_DOXYGEN = "yes" &&
54916 test $ac_cv_prog_DOT = "yes" &&
54917 test $ac_cv_prog_XSLTPROC = "yes" &&
54918 test $ac_cv_prog_XMLLINT = "yes" &&
54919 test $glibcxx_stylesheets = "yes"; then
54920 BUILD_XML_TRUE=
54921 BUILD_XML_FALSE='#'
54922 else
54923 BUILD_XML_TRUE='#'
54924 BUILD_XML_FALSE=
54928 if test $ac_cv_prog_DOXYGEN = "yes" &&
54929 test $ac_cv_prog_DOT = "yes" &&
54930 test $ac_cv_prog_XSLTPROC = "yes" &&
54931 test $ac_cv_prog_XMLLINT = "yes" &&
54932 test $glibcxx_stylesheets = "yes"; then
54933 BUILD_HTML_TRUE=
54934 BUILD_HTML_FALSE='#'
54935 else
54936 BUILD_HTML_TRUE='#'
54937 BUILD_HTML_FALSE=
54941 # Check for man dependencies.
54942 if test $ac_cv_prog_DOXYGEN = "yes" &&
54943 test $ac_cv_prog_DOT = "yes"; then
54944 BUILD_MAN_TRUE=
54945 BUILD_MAN_FALSE='#'
54946 else
54947 BUILD_MAN_TRUE='#'
54948 BUILD_MAN_FALSE=
54952 # Check for pdf dependencies.
54953 # Extract the first word of "dblatex", so it can be a program name with args.
54954 set dummy dblatex; ac_word=$2
54955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54956 $as_echo_n "checking for $ac_word... " >&6; }
54957 if ${ac_cv_prog_DBLATEX+:} false; then :
54958 $as_echo_n "(cached) " >&6
54959 else
54960 if test -n "$DBLATEX"; then
54961 ac_cv_prog_DBLATEX="$DBLATEX" # Let the user override the test.
54962 else
54963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54964 for as_dir in $PATH
54966 IFS=$as_save_IFS
54967 test -z "$as_dir" && as_dir=.
54968 for ac_exec_ext in '' $ac_executable_extensions; do
54969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
54970 ac_cv_prog_DBLATEX="yes"
54971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54972 break 2
54974 done
54975 done
54976 IFS=$as_save_IFS
54978 test -z "$ac_cv_prog_DBLATEX" && ac_cv_prog_DBLATEX="no"
54981 DBLATEX=$ac_cv_prog_DBLATEX
54982 if test -n "$DBLATEX"; then
54983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
54984 $as_echo "$DBLATEX" >&6; }
54985 else
54986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54987 $as_echo "no" >&6; }
54991 # Extract the first word of "pdflatex", so it can be a program name with args.
54992 set dummy pdflatex; ac_word=$2
54993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54994 $as_echo_n "checking for $ac_word... " >&6; }
54995 if ${ac_cv_prog_PDFLATEX+:} false; then :
54996 $as_echo_n "(cached) " >&6
54997 else
54998 if test -n "$PDFLATEX"; then
54999 ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
55000 else
55001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55002 for as_dir in $PATH
55004 IFS=$as_save_IFS
55005 test -z "$as_dir" && as_dir=.
55006 for ac_exec_ext in '' $ac_executable_extensions; do
55007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55008 ac_cv_prog_PDFLATEX="yes"
55009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55010 break 2
55012 done
55013 done
55014 IFS=$as_save_IFS
55016 test -z "$ac_cv_prog_PDFLATEX" && ac_cv_prog_PDFLATEX="no"
55019 PDFLATEX=$ac_cv_prog_PDFLATEX
55020 if test -n "$PDFLATEX"; then
55021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
55022 $as_echo "$PDFLATEX" >&6; }
55023 else
55024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55025 $as_echo "no" >&6; }
55029 if test $ac_cv_prog_DOXYGEN = "yes" &&
55030 test $ac_cv_prog_DOT = "yes" &&
55031 test $ac_cv_prog_XSLTPROC = "yes" &&
55032 test $ac_cv_prog_XMLLINT = "yes" &&
55033 test $ac_cv_prog_DBLATEX = "yes" &&
55034 test $ac_cv_prog_PDFLATEX = "yes"; then
55035 BUILD_PDF_TRUE=
55036 BUILD_PDF_FALSE='#'
55037 else
55038 BUILD_PDF_TRUE='#'
55039 BUILD_PDF_FALSE=
55043 case "$build" in
55044 *-*-darwin* ) glibcxx_include_dir_notparallel=yes ;;
55045 * ) glibcxx_include_dir_notparallel=no ;;
55046 esac
55047 if test $glibcxx_include_dir_notparallel = "yes"; then
55048 INCLUDE_DIR_NOTPARALLEL_TRUE=
55049 INCLUDE_DIR_NOTPARALLEL_FALSE='#'
55050 else
55051 INCLUDE_DIR_NOTPARALLEL_TRUE='#'
55052 INCLUDE_DIR_NOTPARALLEL_FALSE=
55056 # Propagate the target-specific source directories through the build chain.
55057 ATOMICITY_SRCDIR=config/${atomicity_dir}
55058 ATOMIC_WORD_SRCDIR=config/${atomic_word_dir}
55059 ATOMIC_FLAGS=${atomic_flags}
55060 CPU_DEFINES_SRCDIR=config/${cpu_defines_dir}
55061 OS_INC_SRCDIR=config/${os_include_dir}
55062 ERROR_CONSTANTS_SRCDIR=config/${error_constants_dir}
55063 ABI_TWEAKS_SRCDIR=config/${abi_tweaks_dir}
55064 CPU_OPT_EXT_RANDOM=config/${cpu_opt_ext_random}
55065 CPU_OPT_BITS_RANDOM=config/${cpu_opt_bits_random}
55076 # Conditionalize the makefile for this target machine.
55077 tmake_file_=
55078 for f in ${tmake_file}
55080 if test -f ${srcdir}/config/$f
55081 then
55082 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
55084 done
55085 tmake_file="${tmake_file_}"
55088 # Add CET specific flags if Intel CET is enabled.
55089 # Check whether --enable-cet was given.
55090 if test "${enable_cet+set}" = set; then :
55091 enableval=$enable_cet;
55092 case "$enableval" in
55093 yes|no|auto) ;;
55094 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
55095 esac
55097 else
55098 enable_cet=auto
55102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
55103 $as_echo_n "checking for CET support... " >&6; }
55105 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
55106 case "$host" in
55107 i[34567]86-*-linux* | x86_64-*-linux*)
55108 case "$enable_cet" in
55109 auto)
55110 # Check if target supports multi-byte NOPs
55111 # and if compiler and assembler support CET insn.
55112 cet_save_CFLAGS="$CFLAGS"
55113 CFLAGS="$CFLAGS -fcf-protection"
55114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55115 /* end confdefs.h. */
55118 main ()
55121 #if !defined(__SSE2__)
55122 #error target does not support multi-byte NOPs
55123 #else
55124 asm ("setssbsy");
55125 #endif
55128 return 0;
55130 _ACEOF
55131 if ac_fn_c_try_compile "$LINENO"; then :
55132 enable_cet=yes
55133 else
55134 enable_cet=no
55136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55137 CFLAGS="$cet_save_CFLAGS"
55139 yes)
55140 # Check if assembler supports CET.
55141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
55142 /* end confdefs.h. */
55145 main ()
55147 asm ("setssbsy");
55149 return 0;
55151 _ACEOF
55152 if ac_fn_c_try_compile "$LINENO"; then :
55154 else
55155 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
55157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
55159 esac
55162 enable_cet=no
55164 esac
55165 if test x$enable_cet = xyes; then
55166 CET_FLAGS="-fcf-protection -mshstk"
55167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
55168 $as_echo "yes" >&6; }
55169 else
55170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
55171 $as_echo "no" >&6; }
55174 EXTRA_CXX_FLAGS="$EXTRA_CXX_FLAGS $CET_FLAGS"
55175 EXTRA_CFLAGS="$EXTRA_CFLAGS $CET_FLAGS"
55179 # Determine cross-compile flags and AM_CONDITIONALs.
55180 #AC_SUBST(GLIBCXX_IS_NATIVE)
55181 #AM_CONDITIONAL(CANADIAN, test $CANADIAN = yes)
55182 if test $is_hosted = yes; then
55183 GLIBCXX_HOSTED_TRUE=
55184 GLIBCXX_HOSTED_FALSE='#'
55185 else
55186 GLIBCXX_HOSTED_TRUE='#'
55187 GLIBCXX_HOSTED_FALSE=
55191 if test $enable_libstdcxx_pch = yes; then
55192 GLIBCXX_BUILD_PCH_TRUE=
55193 GLIBCXX_BUILD_PCH_FALSE='#'
55194 else
55195 GLIBCXX_BUILD_PCH_TRUE='#'
55196 GLIBCXX_BUILD_PCH_FALSE=
55200 if test $enable_float128 = yes; then
55201 ENABLE_FLOAT128_TRUE=
55202 ENABLE_FLOAT128_FALSE='#'
55203 else
55204 ENABLE_FLOAT128_TRUE='#'
55205 ENABLE_FLOAT128_FALSE=
55209 if test $enable_libstdcxx_allocator_flag = new; then
55210 ENABLE_ALLOCATOR_NEW_TRUE=
55211 ENABLE_ALLOCATOR_NEW_FALSE='#'
55212 else
55213 ENABLE_ALLOCATOR_NEW_TRUE='#'
55214 ENABLE_ALLOCATOR_NEW_FALSE=
55218 if test $enable_cheaders = c; then
55219 GLIBCXX_C_HEADERS_C_TRUE=
55220 GLIBCXX_C_HEADERS_C_FALSE='#'
55221 else
55222 GLIBCXX_C_HEADERS_C_TRUE='#'
55223 GLIBCXX_C_HEADERS_C_FALSE=
55227 if test $enable_cheaders = c_std; then
55228 GLIBCXX_C_HEADERS_C_STD_TRUE=
55229 GLIBCXX_C_HEADERS_C_STD_FALSE='#'
55230 else
55231 GLIBCXX_C_HEADERS_C_STD_TRUE='#'
55232 GLIBCXX_C_HEADERS_C_STD_FALSE=
55236 if test $enable_cheaders = c_global; then
55237 GLIBCXX_C_HEADERS_C_GLOBAL_TRUE=
55238 GLIBCXX_C_HEADERS_C_GLOBAL_FALSE='#'
55239 else
55240 GLIBCXX_C_HEADERS_C_GLOBAL_TRUE='#'
55241 GLIBCXX_C_HEADERS_C_GLOBAL_FALSE=
55245 if test $c_compatibility = yes; then
55246 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
55247 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
55248 else
55249 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
55250 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
55254 if test $enable_libstdcxx_debug = yes; then
55255 GLIBCXX_BUILD_DEBUG_TRUE=
55256 GLIBCXX_BUILD_DEBUG_FALSE='#'
55257 else
55258 GLIBCXX_BUILD_DEBUG_TRUE='#'
55259 GLIBCXX_BUILD_DEBUG_FALSE=
55263 if test $enable_extern_template = yes; then
55264 ENABLE_EXTERN_TEMPLATE_TRUE=
55265 ENABLE_EXTERN_TEMPLATE_FALSE='#'
55266 else
55267 ENABLE_EXTERN_TEMPLATE_TRUE='#'
55268 ENABLE_EXTERN_TEMPLATE_FALSE=
55272 if test $python_mod_dir != no; then
55273 ENABLE_PYTHONDIR_TRUE=
55274 ENABLE_PYTHONDIR_FALSE='#'
55275 else
55276 ENABLE_PYTHONDIR_TRUE='#'
55277 ENABLE_PYTHONDIR_FALSE=
55281 if test $enable_werror = yes; then
55282 ENABLE_WERROR_TRUE=
55283 ENABLE_WERROR_FALSE='#'
55284 else
55285 ENABLE_WERROR_TRUE='#'
55286 ENABLE_WERROR_FALSE=
55290 if test $enable_vtable_verify = yes; then
55291 ENABLE_VTABLE_VERIFY_TRUE=
55292 ENABLE_VTABLE_VERIFY_FALSE='#'
55293 else
55294 ENABLE_VTABLE_VERIFY_TRUE='#'
55295 ENABLE_VTABLE_VERIFY_FALSE=
55299 if test $enable_symvers != no; then
55300 ENABLE_SYMVERS_TRUE=
55301 ENABLE_SYMVERS_FALSE='#'
55302 else
55303 ENABLE_SYMVERS_TRUE='#'
55304 ENABLE_SYMVERS_FALSE=
55308 if test $enable_symvers = gnu; then
55309 ENABLE_SYMVERS_GNU_TRUE=
55310 ENABLE_SYMVERS_GNU_FALSE='#'
55311 else
55312 ENABLE_SYMVERS_GNU_TRUE='#'
55313 ENABLE_SYMVERS_GNU_FALSE=
55317 if test $enable_symvers = gnu-versioned-namespace; then
55318 ENABLE_SYMVERS_GNU_NAMESPACE_TRUE=
55319 ENABLE_SYMVERS_GNU_NAMESPACE_FALSE='#'
55320 else
55321 ENABLE_SYMVERS_GNU_NAMESPACE_TRUE='#'
55322 ENABLE_SYMVERS_GNU_NAMESPACE_FALSE=
55326 if test $enable_symvers = darwin; then
55327 ENABLE_SYMVERS_DARWIN_TRUE=
55328 ENABLE_SYMVERS_DARWIN_FALSE='#'
55329 else
55330 ENABLE_SYMVERS_DARWIN_TRUE='#'
55331 ENABLE_SYMVERS_DARWIN_FALSE=
55335 if test $enable_symvers = sun; then
55336 ENABLE_SYMVERS_SUN_TRUE=
55337 ENABLE_SYMVERS_SUN_FALSE='#'
55338 else
55339 ENABLE_SYMVERS_SUN_TRUE='#'
55340 ENABLE_SYMVERS_SUN_FALSE=
55344 if test $enable_libstdcxx_visibility = yes; then
55345 ENABLE_VISIBILITY_TRUE=
55346 ENABLE_VISIBILITY_FALSE='#'
55347 else
55348 ENABLE_VISIBILITY_TRUE='#'
55349 ENABLE_VISIBILITY_FALSE=
55353 if test $enable_libstdcxx_dual_abi = yes; then
55354 ENABLE_DUAL_ABI_TRUE=
55355 ENABLE_DUAL_ABI_FALSE='#'
55356 else
55357 ENABLE_DUAL_ABI_TRUE='#'
55358 ENABLE_DUAL_ABI_FALSE=
55362 if test $glibcxx_cxx11_abi = 1; then
55363 ENABLE_CXX11_ABI_TRUE=
55364 ENABLE_CXX11_ABI_FALSE='#'
55365 else
55366 ENABLE_CXX11_ABI_TRUE='#'
55367 ENABLE_CXX11_ABI_FALSE=
55371 if test $ac_ldbl_compat = yes; then
55372 GLIBCXX_LDBL_COMPAT_TRUE=
55373 GLIBCXX_LDBL_COMPAT_FALSE='#'
55374 else
55375 GLIBCXX_LDBL_COMPAT_TRUE='#'
55376 GLIBCXX_LDBL_COMPAT_FALSE=
55380 if test $ac_ldbl_alt128_compat = yes; then
55381 GLIBCXX_LDBL_ALT128_COMPAT_TRUE=
55382 GLIBCXX_LDBL_ALT128_COMPAT_FALSE='#'
55383 else
55384 GLIBCXX_LDBL_ALT128_COMPAT_TRUE='#'
55385 GLIBCXX_LDBL_ALT128_COMPAT_FALSE=
55389 if test $enable_libstdcxx_filesystem_ts = yes; then
55390 ENABLE_FILESYSTEM_TS_TRUE=
55391 ENABLE_FILESYSTEM_TS_FALSE='#'
55392 else
55393 ENABLE_FILESYSTEM_TS_TRUE='#'
55394 ENABLE_FILESYSTEM_TS_FALSE=
55398 if test "$enable_libstdcxx_backtrace" = yes; then
55399 ENABLE_BACKTRACE_TRUE=
55400 ENABLE_BACKTRACE_FALSE='#'
55401 else
55402 ENABLE_BACKTRACE_TRUE='#'
55403 ENABLE_BACKTRACE_FALSE=
55407 if test "${embed_zoneinfo}" = yes; then
55408 USE_STATIC_TZDATA_TRUE=
55409 USE_STATIC_TZDATA_FALSE='#'
55410 else
55411 USE_STATIC_TZDATA_TRUE='#'
55412 USE_STATIC_TZDATA_FALSE=
55418 cat >confcache <<\_ACEOF
55419 # This file is a shell script that caches the results of configure
55420 # tests run on this system so they can be shared between configure
55421 # scripts and configure runs, see configure's option --config-cache.
55422 # It is not useful on other systems. If it contains results you don't
55423 # want to keep, you may remove or edit it.
55425 # config.status only pays attention to the cache file if you give it
55426 # the --recheck option to rerun configure.
55428 # `ac_cv_env_foo' variables (set or unset) will be overridden when
55429 # loading this file, other *unset* `ac_cv_foo' will be assigned the
55430 # following values.
55432 _ACEOF
55434 # The following way of writing the cache mishandles newlines in values,
55435 # but we know of no workaround that is simple, portable, and efficient.
55436 # So, we kill variables containing newlines.
55437 # Ultrix sh set writes to stderr and can't be redirected directly,
55438 # and sets the high bit in the cache file unless we assign to the vars.
55440 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
55441 eval ac_val=\$$ac_var
55442 case $ac_val in #(
55443 *${as_nl}*)
55444 case $ac_var in #(
55445 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
55446 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
55447 esac
55448 case $ac_var in #(
55449 _ | IFS | as_nl) ;; #(
55450 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
55451 *) { eval $ac_var=; unset $ac_var;} ;;
55452 esac ;;
55453 esac
55454 done
55456 (set) 2>&1 |
55457 case $as_nl`(ac_space=' '; set) 2>&1` in #(
55458 *${as_nl}ac_space=\ *)
55459 # `set' does not quote correctly, so add quotes: double-quote
55460 # substitution turns \\\\ into \\, and sed turns \\ into \.
55461 sed -n \
55462 "s/'/'\\\\''/g;
55463 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
55464 ;; #(
55466 # `set' quotes correctly as required by POSIX, so do not add quotes.
55467 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
55469 esac |
55470 sort
55472 sed '
55473 /^ac_cv_env_/b end
55474 t clear
55475 :clear
55476 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
55477 t end
55478 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
55479 :end' >>confcache
55480 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
55481 if test -w "$cache_file"; then
55482 if test "x$cache_file" != "x/dev/null"; then
55483 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
55484 $as_echo "$as_me: updating cache $cache_file" >&6;}
55485 if test ! -f "$cache_file" || test -h "$cache_file"; then
55486 cat confcache >"$cache_file"
55487 else
55488 case $cache_file in #(
55489 */* | ?:*)
55490 mv -f confcache "$cache_file"$$ &&
55491 mv -f "$cache_file"$$ "$cache_file" ;; #(
55493 mv -f confcache "$cache_file" ;;
55494 esac
55497 else
55498 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
55499 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
55502 rm -f confcache
55504 if test ${multilib} = yes; then
55505 multilib_arg="--enable-multilib"
55506 else
55507 multilib_arg=
55510 # Export all the install information.
55512 glibcxx_toolexecdir=no
55513 glibcxx_toolexeclibdir=no
55514 glibcxx_prefixdir=$prefix
55516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gxx-include-dir" >&5
55517 $as_echo_n "checking for gxx-include-dir... " >&6; }
55519 # Check whether --with-gxx-include-dir was given.
55520 if test "${with_gxx_include_dir+set}" = set; then :
55521 withval=$with_gxx_include_dir; case "$withval" in
55522 yes) as_fn_error $? "Missing directory for --with-gxx-include-dir" "$LINENO" 5 ;;
55523 no) gxx_include_dir=no ;;
55524 *) gxx_include_dir=$withval ;;
55525 esac
55526 else
55527 gxx_include_dir=no
55530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gxx_include_dir" >&5
55531 $as_echo "$gxx_include_dir" >&6; }
55533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
55534 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
55535 # Check whether --enable-version-specific-runtime-libs was given.
55536 if test "${enable_version_specific_runtime_libs+set}" = set; then :
55537 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
55538 yes) version_specific_libs=yes ;;
55539 no) version_specific_libs=no ;;
55540 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
55541 esac
55542 else
55543 version_specific_libs=no
55546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
55547 $as_echo "$version_specific_libs" >&6; }
55550 # Check whether --with-toolexeclibdir was given.
55551 if test "${with_toolexeclibdir+set}" = set; then :
55552 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
55556 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
55558 esac
55559 else
55560 with_toolexeclibdir=no
55565 # Default case for install directory for include files.
55566 if test $version_specific_libs = no && test $gxx_include_dir = no; then
55567 gxx_include_dir='include/c++/${gcc_version}'
55568 if test -n "$with_cross_host" &&
55569 test x"$with_cross_host" != x"no"; then
55570 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
55571 else
55572 gxx_include_dir='${prefix}/'"$gxx_include_dir"
55576 # Version-specific runtime libs processing.
55577 if test $version_specific_libs = yes; then
55578 # Need the gcc compiler version to know where to install libraries
55579 # and header files if --enable-version-specific-runtime-libs option
55580 # is selected. FIXME: these variables are misnamed, there are
55581 # no executables installed in _toolexecdir or _toolexeclibdir.
55582 if test x"$gxx_include_dir" = x"no"; then
55583 gxx_include_dir='${libdir}/gcc/${host_alias}/${gcc_version}/include/c++'
55585 glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
55586 glibcxx_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
55589 # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
55590 # Install a library built with a cross compiler in tooldir, not libdir.
55591 if test x"$glibcxx_toolexecdir" = x"no"; then
55592 if test -n "$with_cross_host" &&
55593 test x"$with_cross_host" != x"no"; then
55594 glibcxx_toolexecdir='${exec_prefix}/${host_alias}'
55595 case ${with_toolexeclibdir} in
55597 glibcxx_toolexeclibdir='${toolexecdir}/lib'
55600 glibcxx_toolexeclibdir=${with_toolexeclibdir}
55602 esac
55603 else
55604 glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
55605 glibcxx_toolexeclibdir='${libdir}'
55607 multi_os_directory=`$CXX -print-multi-os-directory`
55608 case $multi_os_directory in
55609 .) ;; # Avoid trailing /.
55610 *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
55611 esac
55614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install location" >&5
55615 $as_echo_n "checking for install location... " >&6; }
55616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gxx_include_dir" >&5
55617 $as_echo "$gxx_include_dir" >&6; }
55625 # Export all the include and flag information to Makefiles.
55627 # Used for every C++ compile we perform.
55628 GLIBCXX_INCLUDES="\
55629 -I$glibcxx_builddir/include/$host_alias \
55630 -I$glibcxx_builddir/include \
55631 -I$glibcxx_srcdir/libsupc++"
55633 # For Canadian crosses, pick this up too.
55634 if test $CANADIAN = yes; then
55635 GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES -I\${includedir}"
55638 # Stuff in the actual top level. Currently only used by libsupc++ to
55639 # get unwind* headers from the libgcc dir.
55640 #TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/libgcc -I$(toplevel_srcdir)/include'
55641 TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/libgcc'
55643 # Now, export this to all the little Makefiles....
55650 # Optimization flags that are probably a good idea for thrill-seekers. Just
55651 # uncomment the lines below and make, everything else is ready to go...
55652 # Alternatively OPTIMIZE_CXXFLAGS can be set in configure.host.
55653 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
55656 WARN_FLAGS="-Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2"
55660 # Determine what GCC version number to use in filesystem paths.
55662 get_gcc_base_ver="cat"
55664 # Check whether --with-gcc-major-version-only was given.
55665 if test "${with_gcc_major_version_only+set}" = set; then :
55666 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
55667 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
55675 ac_config_files="$ac_config_files Makefile"
55677 ac_config_files="$ac_config_files scripts/testsuite_flags"
55679 ac_config_files="$ac_config_files scripts/extract_symvers"
55681 ac_config_files="$ac_config_files doc/xsl/customization.xsl"
55683 ac_config_files="$ac_config_files src/libbacktrace/backtrace-supported.h"
55686 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
55687 # that multilib installs will end up installed in the correct place.
55688 # The testsuite needs it for multilib-aware ABI baseline files.
55689 # To work around this not being passed down from config-ml.in ->
55690 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
55691 # append it here. Only modify Makefiles that have just been created.
55693 # Also, get rid of this simulated-VPATH thing that automake does.
55694 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"
55697 ac_config_commands="$ac_config_commands generate-headers"
55700 cat >confcache <<\_ACEOF
55701 # This file is a shell script that caches the results of configure
55702 # tests run on this system so they can be shared between configure
55703 # scripts and configure runs, see configure's option --config-cache.
55704 # It is not useful on other systems. If it contains results you don't
55705 # want to keep, you may remove or edit it.
55707 # config.status only pays attention to the cache file if you give it
55708 # the --recheck option to rerun configure.
55710 # `ac_cv_env_foo' variables (set or unset) will be overridden when
55711 # loading this file, other *unset* `ac_cv_foo' will be assigned the
55712 # following values.
55714 _ACEOF
55716 # The following way of writing the cache mishandles newlines in values,
55717 # but we know of no workaround that is simple, portable, and efficient.
55718 # So, we kill variables containing newlines.
55719 # Ultrix sh set writes to stderr and can't be redirected directly,
55720 # and sets the high bit in the cache file unless we assign to the vars.
55722 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
55723 eval ac_val=\$$ac_var
55724 case $ac_val in #(
55725 *${as_nl}*)
55726 case $ac_var in #(
55727 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
55728 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
55729 esac
55730 case $ac_var in #(
55731 _ | IFS | as_nl) ;; #(
55732 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
55733 *) { eval $ac_var=; unset $ac_var;} ;;
55734 esac ;;
55735 esac
55736 done
55738 (set) 2>&1 |
55739 case $as_nl`(ac_space=' '; set) 2>&1` in #(
55740 *${as_nl}ac_space=\ *)
55741 # `set' does not quote correctly, so add quotes: double-quote
55742 # substitution turns \\\\ into \\, and sed turns \\ into \.
55743 sed -n \
55744 "s/'/'\\\\''/g;
55745 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
55746 ;; #(
55748 # `set' quotes correctly as required by POSIX, so do not add quotes.
55749 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
55751 esac |
55752 sort
55754 sed '
55755 /^ac_cv_env_/b end
55756 t clear
55757 :clear
55758 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
55759 t end
55760 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
55761 :end' >>confcache
55762 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
55763 if test -w "$cache_file"; then
55764 if test "x$cache_file" != "x/dev/null"; then
55765 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
55766 $as_echo "$as_me: updating cache $cache_file" >&6;}
55767 if test ! -f "$cache_file" || test -h "$cache_file"; then
55768 cat confcache >"$cache_file"
55769 else
55770 case $cache_file in #(
55771 */* | ?:*)
55772 mv -f confcache "$cache_file"$$ &&
55773 mv -f "$cache_file"$$ "$cache_file" ;; #(
55775 mv -f confcache "$cache_file" ;;
55776 esac
55779 else
55780 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
55781 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
55784 rm -f confcache
55786 test "x$prefix" = xNONE && prefix=$ac_default_prefix
55787 # Let make expand exec_prefix.
55788 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
55790 DEFS=-DHAVE_CONFIG_H
55792 ac_libobjs=
55793 ac_ltlibobjs=
55795 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
55796 # 1. Remove the extension, and $U if already installed.
55797 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
55798 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
55799 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
55800 # will be set to the directory where LIBOBJS objects are built.
55801 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
55802 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
55803 done
55804 LIBOBJS=$ac_libobjs
55806 LTLIBOBJS=$ac_ltlibobjs
55809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
55810 $as_echo_n "checking that generated files are newer than configure... " >&6; }
55811 if test -n "$am_sleep_pid"; then
55812 # Hide warnings about reused PIDs.
55813 wait $am_sleep_pid 2>/dev/null
55815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
55816 $as_echo "done" >&6; }
55817 if test -n "$EXEEXT"; then
55818 am__EXEEXT_TRUE=
55819 am__EXEEXT_FALSE='#'
55820 else
55821 am__EXEEXT_TRUE='#'
55822 am__EXEEXT_FALSE=
55825 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
55826 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
55827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55829 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
55830 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
55831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55833 if test -z "${GLIBCXX_HOSTED_TRUE}" && test -z "${GLIBCXX_HOSTED_FALSE}"; then
55834 as_fn_error $? "conditional \"GLIBCXX_HOSTED\" was never defined.
55835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55837 if test -z "${GLIBCXX_BUILD_PCH_TRUE}" && test -z "${GLIBCXX_BUILD_PCH_FALSE}"; then
55838 as_fn_error $? "conditional \"GLIBCXX_BUILD_PCH\" was never defined.
55839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55841 if test -z "${ENABLE_FLOAT128_TRUE}" && test -z "${ENABLE_FLOAT128_FALSE}"; then
55842 as_fn_error $? "conditional \"ENABLE_FLOAT128\" was never defined.
55843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55845 if test -z "${ENABLE_ALLOCATOR_NEW_TRUE}" && test -z "${ENABLE_ALLOCATOR_NEW_FALSE}"; then
55846 as_fn_error $? "conditional \"ENABLE_ALLOCATOR_NEW\" was never defined.
55847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55849 if test -z "${GLIBCXX_C_HEADERS_C_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_FALSE}"; then
55850 as_fn_error $? "conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
55851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55853 if test -z "${GLIBCXX_C_HEADERS_C_STD_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_STD_FALSE}"; then
55854 as_fn_error $? "conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
55855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55857 if test -z "${GLIBCXX_C_HEADERS_C_GLOBAL_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_GLOBAL_FALSE}"; then
55858 as_fn_error $? "conditional \"GLIBCXX_C_HEADERS_C_GLOBAL\" was never defined.
55859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55861 if test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE}" && test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE}"; then
55862 as_fn_error $? "conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
55863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55865 if test -z "${GLIBCXX_BUILD_DEBUG_TRUE}" && test -z "${GLIBCXX_BUILD_DEBUG_FALSE}"; then
55866 as_fn_error $? "conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
55867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55869 if test -z "${ENABLE_EXTERN_TEMPLATE_TRUE}" && test -z "${ENABLE_EXTERN_TEMPLATE_FALSE}"; then
55870 as_fn_error $? "conditional \"ENABLE_EXTERN_TEMPLATE\" was never defined.
55871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55873 if test -z "${ENABLE_PYTHONDIR_TRUE}" && test -z "${ENABLE_PYTHONDIR_FALSE}"; then
55874 as_fn_error $? "conditional \"ENABLE_PYTHONDIR\" was never defined.
55875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55877 if test -z "${ENABLE_WERROR_TRUE}" && test -z "${ENABLE_WERROR_FALSE}"; then
55878 as_fn_error $? "conditional \"ENABLE_WERROR\" was never defined.
55879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55881 if test -z "${VTV_CYGMIN_TRUE}" && test -z "${VTV_CYGMIN_FALSE}"; then
55882 as_fn_error $? "conditional \"VTV_CYGMIN\" was never defined.
55883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55885 if test -z "${ENABLE_VTABLE_VERIFY_TRUE}" && test -z "${ENABLE_VTABLE_VERIFY_FALSE}"; then
55886 as_fn_error $? "conditional \"ENABLE_VTABLE_VERIFY\" was never defined.
55887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55889 if test -z "${ENABLE_SYMVERS_TRUE}" && test -z "${ENABLE_SYMVERS_FALSE}"; then
55890 as_fn_error $? "conditional \"ENABLE_SYMVERS\" was never defined.
55891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55893 if test -z "${ENABLE_SYMVERS_GNU_TRUE}" && test -z "${ENABLE_SYMVERS_GNU_FALSE}"; then
55894 as_fn_error $? "conditional \"ENABLE_SYMVERS_GNU\" was never defined.
55895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55897 if test -z "${ENABLE_SYMVERS_GNU_NAMESPACE_TRUE}" && test -z "${ENABLE_SYMVERS_GNU_NAMESPACE_FALSE}"; then
55898 as_fn_error $? "conditional \"ENABLE_SYMVERS_GNU_NAMESPACE\" was never defined.
55899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55901 if test -z "${ENABLE_SYMVERS_DARWIN_TRUE}" && test -z "${ENABLE_SYMVERS_DARWIN_FALSE}"; then
55902 as_fn_error $? "conditional \"ENABLE_SYMVERS_DARWIN\" was never defined.
55903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55905 if test -z "${ENABLE_SYMVERS_SUN_TRUE}" && test -z "${ENABLE_SYMVERS_SUN_FALSE}"; then
55906 as_fn_error $? "conditional \"ENABLE_SYMVERS_SUN\" was never defined.
55907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55909 if test -z "${ENABLE_VISIBILITY_TRUE}" && test -z "${ENABLE_VISIBILITY_FALSE}"; then
55910 as_fn_error $? "conditional \"ENABLE_VISIBILITY\" was never defined.
55911 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55913 if test -z "${ENABLE_DUAL_ABI_TRUE}" && test -z "${ENABLE_DUAL_ABI_FALSE}"; then
55914 as_fn_error $? "conditional \"ENABLE_DUAL_ABI\" was never defined.
55915 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55917 if test -z "${ENABLE_CXX11_ABI_TRUE}" && test -z "${ENABLE_CXX11_ABI_FALSE}"; then
55918 as_fn_error $? "conditional \"ENABLE_CXX11_ABI\" was never defined.
55919 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55921 if test -z "${GLIBCXX_LDBL_COMPAT_TRUE}" && test -z "${GLIBCXX_LDBL_COMPAT_FALSE}"; then
55922 as_fn_error $? "conditional \"GLIBCXX_LDBL_COMPAT\" was never defined.
55923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55925 if test -z "${GLIBCXX_LDBL_ALT128_COMPAT_TRUE}" && test -z "${GLIBCXX_LDBL_ALT128_COMPAT_FALSE}"; then
55926 as_fn_error $? "conditional \"GLIBCXX_LDBL_ALT128_COMPAT\" was never defined.
55927 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55929 if test -z "${ENABLE_FILESYSTEM_TS_TRUE}" && test -z "${ENABLE_FILESYSTEM_TS_FALSE}"; then
55930 as_fn_error $? "conditional \"ENABLE_FILESYSTEM_TS\" was never defined.
55931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55933 if test -z "${ENABLE_BACKTRACE_TRUE}" && test -z "${ENABLE_BACKTRACE_FALSE}"; then
55934 as_fn_error $? "conditional \"ENABLE_BACKTRACE\" was never defined.
55935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55937 if test -z "${USE_STATIC_TZDATA_TRUE}" && test -z "${USE_STATIC_TZDATA_FALSE}"; then
55938 as_fn_error $? "conditional \"USE_STATIC_TZDATA\" was never defined.
55939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55941 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
55942 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
55943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55945 if test -z "${BUILD_EPUB_TRUE}" && test -z "${BUILD_EPUB_FALSE}"; then
55946 as_fn_error $? "conditional \"BUILD_EPUB\" was never defined.
55947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55949 if test -z "${BUILD_XML_TRUE}" && test -z "${BUILD_XML_FALSE}"; then
55950 as_fn_error $? "conditional \"BUILD_XML\" was never defined.
55951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55953 if test -z "${BUILD_HTML_TRUE}" && test -z "${BUILD_HTML_FALSE}"; then
55954 as_fn_error $? "conditional \"BUILD_HTML\" was never defined.
55955 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55957 if test -z "${BUILD_MAN_TRUE}" && test -z "${BUILD_MAN_FALSE}"; then
55958 as_fn_error $? "conditional \"BUILD_MAN\" was never defined.
55959 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55961 if test -z "${BUILD_PDF_TRUE}" && test -z "${BUILD_PDF_FALSE}"; then
55962 as_fn_error $? "conditional \"BUILD_PDF\" was never defined.
55963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55965 if test -z "${INCLUDE_DIR_NOTPARALLEL_TRUE}" && test -z "${INCLUDE_DIR_NOTPARALLEL_FALSE}"; then
55966 as_fn_error $? "conditional \"INCLUDE_DIR_NOTPARALLEL\" was never defined.
55967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
55970 : "${CONFIG_STATUS=./config.status}"
55971 ac_write_fail=0
55972 ac_clean_files_save=$ac_clean_files
55973 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
55974 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
55975 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
55976 as_write_fail=0
55977 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
55978 #! $SHELL
55979 # Generated by $as_me.
55980 # Run this file to recreate the current configuration.
55981 # Compiler output produced by configure, useful for debugging
55982 # configure, is in config.log if it exists.
55984 debug=false
55985 ac_cs_recheck=false
55986 ac_cs_silent=false
55988 SHELL=\${CONFIG_SHELL-$SHELL}
55989 export SHELL
55990 _ASEOF
55991 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
55992 ## -------------------- ##
55993 ## M4sh Initialization. ##
55994 ## -------------------- ##
55996 # Be more Bourne compatible
55997 DUALCASE=1; export DUALCASE # for MKS sh
55998 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
55999 emulate sh
56000 NULLCMD=:
56001 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
56002 # is contrary to our usage. Disable this feature.
56003 alias -g '${1+"$@"}'='"$@"'
56004 setopt NO_GLOB_SUBST
56005 else
56006 case `(set -o) 2>/dev/null` in #(
56007 *posix*) :
56008 set -o posix ;; #(
56009 *) :
56011 esac
56015 as_nl='
56017 export as_nl
56018 # Printing a long string crashes Solaris 7 /usr/bin/printf.
56019 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
56020 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
56021 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
56022 # Prefer a ksh shell builtin over an external printf program on Solaris,
56023 # but without wasting forks for bash or zsh.
56024 if test -z "$BASH_VERSION$ZSH_VERSION" \
56025 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
56026 as_echo='print -r --'
56027 as_echo_n='print -rn --'
56028 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56029 as_echo='printf %s\n'
56030 as_echo_n='printf %s'
56031 else
56032 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56033 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56034 as_echo_n='/usr/ucb/echo -n'
56035 else
56036 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56037 as_echo_n_body='eval
56038 arg=$1;
56039 case $arg in #(
56040 *"$as_nl"*)
56041 expr "X$arg" : "X\\(.*\\)$as_nl";
56042 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
56043 esac;
56044 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
56046 export as_echo_n_body
56047 as_echo_n='sh -c $as_echo_n_body as_echo'
56049 export as_echo_body
56050 as_echo='sh -c $as_echo_body as_echo'
56053 # The user is always right.
56054 if test "${PATH_SEPARATOR+set}" != set; then
56055 PATH_SEPARATOR=:
56056 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
56057 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
56058 PATH_SEPARATOR=';'
56063 # IFS
56064 # We need space, tab and new line, in precisely that order. Quoting is
56065 # there to prevent editors from complaining about space-tab.
56066 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
56067 # splitting by setting IFS to empty value.)
56068 IFS=" "" $as_nl"
56070 # Find who we are. Look in the path if we contain no directory separator.
56071 as_myself=
56072 case $0 in #((
56073 *[\\/]* ) as_myself=$0 ;;
56074 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56075 for as_dir in $PATH
56077 IFS=$as_save_IFS
56078 test -z "$as_dir" && as_dir=.
56079 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
56080 done
56081 IFS=$as_save_IFS
56084 esac
56085 # We did not find ourselves, most probably we were run as `sh COMMAND'
56086 # in which case we are not to be found in the path.
56087 if test "x$as_myself" = x; then
56088 as_myself=$0
56090 if test ! -f "$as_myself"; then
56091 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
56092 exit 1
56095 # Unset variables that we do not need and which cause bugs (e.g. in
56096 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
56097 # suppresses any "Segmentation fault" message there. '((' could
56098 # trigger a bug in pdksh 5.2.14.
56099 for as_var in BASH_ENV ENV MAIL MAILPATH
56100 do eval test x\${$as_var+set} = xset \
56101 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
56102 done
56103 PS1='$ '
56104 PS2='> '
56105 PS4='+ '
56107 # NLS nuisances.
56108 LC_ALL=C
56109 export LC_ALL
56110 LANGUAGE=C
56111 export LANGUAGE
56113 # CDPATH.
56114 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
56117 # as_fn_error STATUS ERROR [LINENO LOG_FD]
56118 # ----------------------------------------
56119 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
56120 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
56121 # script with STATUS, using 1 if that was 0.
56122 as_fn_error ()
56124 as_status=$1; test $as_status -eq 0 && as_status=1
56125 if test "$4"; then
56126 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
56127 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
56129 $as_echo "$as_me: error: $2" >&2
56130 as_fn_exit $as_status
56131 } # as_fn_error
56134 # as_fn_set_status STATUS
56135 # -----------------------
56136 # Set $? to STATUS, without forking.
56137 as_fn_set_status ()
56139 return $1
56140 } # as_fn_set_status
56142 # as_fn_exit STATUS
56143 # -----------------
56144 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
56145 as_fn_exit ()
56147 set +e
56148 as_fn_set_status $1
56149 exit $1
56150 } # as_fn_exit
56152 # as_fn_unset VAR
56153 # ---------------
56154 # Portably unset VAR.
56155 as_fn_unset ()
56157 { eval $1=; unset $1;}
56159 as_unset=as_fn_unset
56160 # as_fn_append VAR VALUE
56161 # ----------------------
56162 # Append the text in VALUE to the end of the definition contained in VAR. Take
56163 # advantage of any shell optimizations that allow amortized linear growth over
56164 # repeated appends, instead of the typical quadratic growth present in naive
56165 # implementations.
56166 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
56167 eval 'as_fn_append ()
56169 eval $1+=\$2
56171 else
56172 as_fn_append ()
56174 eval $1=\$$1\$2
56176 fi # as_fn_append
56178 # as_fn_arith ARG...
56179 # ------------------
56180 # Perform arithmetic evaluation on the ARGs, and store the result in the
56181 # global $as_val. Take advantage of shells that can avoid forks. The arguments
56182 # must be portable across $(()) and expr.
56183 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
56184 eval 'as_fn_arith ()
56186 as_val=$(( $* ))
56188 else
56189 as_fn_arith ()
56191 as_val=`expr "$@" || test $? -eq 1`
56193 fi # as_fn_arith
56196 if expr a : '\(a\)' >/dev/null 2>&1 &&
56197 test "X`expr 00001 : '.*\(...\)'`" = X001; then
56198 as_expr=expr
56199 else
56200 as_expr=false
56203 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
56204 as_basename=basename
56205 else
56206 as_basename=false
56209 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
56210 as_dirname=dirname
56211 else
56212 as_dirname=false
56215 as_me=`$as_basename -- "$0" ||
56216 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
56217 X"$0" : 'X\(//\)$' \| \
56218 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
56219 $as_echo X/"$0" |
56220 sed '/^.*\/\([^/][^/]*\)\/*$/{
56221 s//\1/
56224 /^X\/\(\/\/\)$/{
56225 s//\1/
56228 /^X\/\(\/\).*/{
56229 s//\1/
56232 s/.*/./; q'`
56234 # Avoid depending upon Character Ranges.
56235 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
56236 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
56237 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
56238 as_cr_digits='0123456789'
56239 as_cr_alnum=$as_cr_Letters$as_cr_digits
56241 ECHO_C= ECHO_N= ECHO_T=
56242 case `echo -n x` in #(((((
56243 -n*)
56244 case `echo 'xy\c'` in
56245 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
56246 xy) ECHO_C='\c';;
56247 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
56248 ECHO_T=' ';;
56249 esac;;
56251 ECHO_N='-n';;
56252 esac
56254 rm -f conf$$ conf$$.exe conf$$.file
56255 if test -d conf$$.dir; then
56256 rm -f conf$$.dir/conf$$.file
56257 else
56258 rm -f conf$$.dir
56259 mkdir conf$$.dir 2>/dev/null
56261 if (echo >conf$$.file) 2>/dev/null; then
56262 if ln -s conf$$.file conf$$ 2>/dev/null; then
56263 as_ln_s='ln -s'
56264 # ... but there are two gotchas:
56265 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
56266 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
56267 # In both cases, we have to default to `cp -pR'.
56268 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
56269 as_ln_s='cp -pR'
56270 elif ln conf$$.file conf$$ 2>/dev/null; then
56271 as_ln_s=ln
56272 else
56273 as_ln_s='cp -pR'
56275 else
56276 as_ln_s='cp -pR'
56278 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
56279 rmdir conf$$.dir 2>/dev/null
56282 # as_fn_mkdir_p
56283 # -------------
56284 # Create "$as_dir" as a directory, including parents if necessary.
56285 as_fn_mkdir_p ()
56288 case $as_dir in #(
56289 -*) as_dir=./$as_dir;;
56290 esac
56291 test -d "$as_dir" || eval $as_mkdir_p || {
56292 as_dirs=
56293 while :; do
56294 case $as_dir in #(
56295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
56296 *) as_qdir=$as_dir;;
56297 esac
56298 as_dirs="'$as_qdir' $as_dirs"
56299 as_dir=`$as_dirname -- "$as_dir" ||
56300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56301 X"$as_dir" : 'X\(//\)[^/]' \| \
56302 X"$as_dir" : 'X\(//\)$' \| \
56303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
56304 $as_echo X"$as_dir" |
56305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
56306 s//\1/
56309 /^X\(\/\/\)[^/].*/{
56310 s//\1/
56313 /^X\(\/\/\)$/{
56314 s//\1/
56317 /^X\(\/\).*/{
56318 s//\1/
56321 s/.*/./; q'`
56322 test -d "$as_dir" && break
56323 done
56324 test -z "$as_dirs" || eval "mkdir $as_dirs"
56325 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
56328 } # as_fn_mkdir_p
56329 if mkdir -p . 2>/dev/null; then
56330 as_mkdir_p='mkdir -p "$as_dir"'
56331 else
56332 test -d ./-p && rmdir ./-p
56333 as_mkdir_p=false
56337 # as_fn_executable_p FILE
56338 # -----------------------
56339 # Test if FILE is an executable regular file.
56340 as_fn_executable_p ()
56342 test -f "$1" && test -x "$1"
56343 } # as_fn_executable_p
56344 as_test_x='test -x'
56345 as_executable_p=as_fn_executable_p
56347 # Sed expression to map a string onto a valid CPP name.
56348 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
56350 # Sed expression to map a string onto a valid variable name.
56351 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
56354 exec 6>&1
56355 ## ----------------------------------- ##
56356 ## Main body of $CONFIG_STATUS script. ##
56357 ## ----------------------------------- ##
56358 _ASEOF
56359 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
56361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56362 # Save the log message, to keep $0 and so on meaningful, and to
56363 # report actual input values of CONFIG_FILES etc. instead of their
56364 # values after options handling.
56365 ac_log="
56366 This file was extended by package-unused $as_me version-unused, which was
56367 generated by GNU Autoconf 2.69. Invocation command line was
56369 CONFIG_FILES = $CONFIG_FILES
56370 CONFIG_HEADERS = $CONFIG_HEADERS
56371 CONFIG_LINKS = $CONFIG_LINKS
56372 CONFIG_COMMANDS = $CONFIG_COMMANDS
56373 $ $0 $@
56375 on `(hostname || uname -n) 2>/dev/null | sed 1q`
56378 _ACEOF
56380 case $ac_config_files in *"
56381 "*) set x $ac_config_files; shift; ac_config_files=$*;;
56382 esac
56384 case $ac_config_headers in *"
56385 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
56386 esac
56389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56390 # Files that config.status was made for.
56391 config_files="$ac_config_files"
56392 config_headers="$ac_config_headers"
56393 config_commands="$ac_config_commands"
56395 _ACEOF
56397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56398 ac_cs_usage="\
56399 \`$as_me' instantiates files and other configuration actions
56400 from templates according to the current configuration. Unless the files
56401 and actions are specified as TAGs, all are instantiated by default.
56403 Usage: $0 [OPTION]... [TAG]...
56405 -h, --help print this help, then exit
56406 -V, --version print version number and configuration settings, then exit
56407 --config print configuration, then exit
56408 -q, --quiet, --silent
56409 do not print progress messages
56410 -d, --debug don't remove temporary files
56411 --recheck update $as_me by reconfiguring in the same conditions
56412 --file=FILE[:TEMPLATE]
56413 instantiate the configuration file FILE
56414 --header=FILE[:TEMPLATE]
56415 instantiate the configuration header FILE
56417 Configuration files:
56418 $config_files
56420 Configuration headers:
56421 $config_headers
56423 Configuration commands:
56424 $config_commands
56426 Report bugs to the package provider."
56428 _ACEOF
56429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56430 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
56431 ac_cs_version="\\
56432 package-unused config.status version-unused
56433 configured by $0, generated by GNU Autoconf 2.69,
56434 with options \\"\$ac_cs_config\\"
56436 Copyright (C) 2012 Free Software Foundation, Inc.
56437 This config.status script is free software; the Free Software Foundation
56438 gives unlimited permission to copy, distribute and modify it."
56440 ac_pwd='$ac_pwd'
56441 srcdir='$srcdir'
56442 INSTALL='$INSTALL'
56443 MKDIR_P='$MKDIR_P'
56444 AWK='$AWK'
56445 test -n "\$AWK" || AWK=awk
56446 _ACEOF
56448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56449 # The default lists apply if the user does not specify any file.
56450 ac_need_defaults=:
56451 while test $# != 0
56453 case $1 in
56454 --*=?*)
56455 ac_option=`expr "X$1" : 'X\([^=]*\)='`
56456 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
56457 ac_shift=:
56459 --*=)
56460 ac_option=`expr "X$1" : 'X\([^=]*\)='`
56461 ac_optarg=
56462 ac_shift=:
56465 ac_option=$1
56466 ac_optarg=$2
56467 ac_shift=shift
56469 esac
56471 case $ac_option in
56472 # Handling of the options.
56473 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
56474 ac_cs_recheck=: ;;
56475 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
56476 $as_echo "$ac_cs_version"; exit ;;
56477 --config | --confi | --conf | --con | --co | --c )
56478 $as_echo "$ac_cs_config"; exit ;;
56479 --debug | --debu | --deb | --de | --d | -d )
56480 debug=: ;;
56481 --file | --fil | --fi | --f )
56482 $ac_shift
56483 case $ac_optarg in
56484 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
56485 '') as_fn_error $? "missing file argument" ;;
56486 esac
56487 as_fn_append CONFIG_FILES " '$ac_optarg'"
56488 ac_need_defaults=false;;
56489 --header | --heade | --head | --hea )
56490 $ac_shift
56491 case $ac_optarg in
56492 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
56493 esac
56494 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
56495 ac_need_defaults=false;;
56496 --he | --h)
56497 # Conflict between --help and --header
56498 as_fn_error $? "ambiguous option: \`$1'
56499 Try \`$0 --help' for more information.";;
56500 --help | --hel | -h )
56501 $as_echo "$ac_cs_usage"; exit ;;
56502 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
56503 | -silent | --silent | --silen | --sile | --sil | --si | --s)
56504 ac_cs_silent=: ;;
56506 # This is an error.
56507 -*) as_fn_error $? "unrecognized option: \`$1'
56508 Try \`$0 --help' for more information." ;;
56510 *) as_fn_append ac_config_targets " $1"
56511 ac_need_defaults=false ;;
56513 esac
56514 shift
56515 done
56517 ac_configure_extra_args=
56519 if $ac_cs_silent; then
56520 exec 6>/dev/null
56521 ac_configure_extra_args="$ac_configure_extra_args --silent"
56524 _ACEOF
56525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56526 if \$ac_cs_recheck; then
56527 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
56528 shift
56529 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
56530 CONFIG_SHELL='$SHELL'
56531 export CONFIG_SHELL
56532 exec "\$@"
56535 _ACEOF
56536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56537 exec 5>>config.log
56539 echo
56540 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
56541 ## Running $as_me. ##
56542 _ASBOX
56543 $as_echo "$ac_log"
56544 } >&5
56546 _ACEOF
56547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56549 # INIT-COMMANDS
56552 srcdir="$srcdir"
56553 host="$host"
56554 target="$target"
56555 with_multisubdir="$with_multisubdir"
56556 with_multisrctop="$with_multisrctop"
56557 with_target_subdir="$with_target_subdir"
56558 ac_configure_args="${multilib_arg} ${ac_configure_args}"
56559 multi_basedir="$multi_basedir"
56560 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
56561 CC="$CC"
56562 CXX="$CXX"
56563 GFORTRAN="$GFORTRAN"
56564 GDC="$GDC"
56567 # The HP-UX ksh and POSIX shell print the target directory to stdout
56568 # if CDPATH is set.
56569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
56571 sed_quote_subst='$sed_quote_subst'
56572 double_quote_subst='$double_quote_subst'
56573 delay_variable_subst='$delay_variable_subst'
56574 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
56575 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
56576 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
56577 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
56578 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
56579 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
56580 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
56581 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
56582 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
56583 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
56584 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
56585 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
56586 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
56587 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
56588 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
56589 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
56590 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
56591 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
56592 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
56593 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
56594 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
56595 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
56596 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
56597 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
56598 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
56599 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
56600 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
56601 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
56602 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
56603 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
56604 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
56605 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
56606 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
56607 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
56608 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
56609 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
56610 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
56611 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
56612 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
56613 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
56614 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
56615 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
56616 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
56617 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
56618 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
56619 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
56620 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
56621 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
56622 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"`'
56623 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
56624 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
56625 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
56626 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
56627 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
56628 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
56629 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
56630 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
56631 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
56632 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
56633 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
56634 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
56635 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
56636 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
56637 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
56638 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
56639 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
56640 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
56641 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
56642 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
56643 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
56644 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
56645 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
56646 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
56647 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
56648 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
56649 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
56650 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
56651 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
56652 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
56653 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
56654 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
56655 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
56656 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
56657 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
56658 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
56659 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
56660 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
56661 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
56662 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
56663 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
56664 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
56665 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
56666 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
56667 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
56668 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
56669 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
56670 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
56671 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
56672 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
56673 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
56674 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
56675 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
56676 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
56677 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
56678 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
56679 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
56680 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
56681 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
56682 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
56683 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
56684 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
56685 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
56686 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
56687 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
56688 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
56689 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
56690 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
56691 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
56692 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
56693 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
56694 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
56695 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
56696 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
56697 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
56698 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
56699 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
56700 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
56701 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
56702 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56703 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56704 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
56705 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
56706 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
56707 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
56708 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
56709 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
56710 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
56711 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
56712 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
56713 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
56714 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
56715 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
56716 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56717 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56718 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56719 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56720 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56721 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56722 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
56723 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
56724 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
56725 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
56726 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
56727 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
56728 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
56729 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
56730 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
56731 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
56732 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
56733 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
56734 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
56735 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
56736 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
56737 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56738 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
56739 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
56740 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
56741 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
56742 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
56743 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
56744 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
56745 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
56746 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
56747 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
56748 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
56750 LTCC='$LTCC'
56751 LTCFLAGS='$LTCFLAGS'
56752 compiler='$compiler_DEFAULT'
56754 # A function that is used when there is no print builtin or printf.
56755 func_fallback_echo ()
56757 eval 'cat <<_LTECHO_EOF
56759 _LTECHO_EOF'
56762 # Quote evaled strings.
56763 for var in SHELL \
56764 ECHO \
56765 SED \
56766 GREP \
56767 EGREP \
56768 FGREP \
56769 LD \
56770 NM \
56771 LN_S \
56772 lt_SP2NL \
56773 lt_NL2SP \
56774 reload_flag \
56775 OBJDUMP \
56776 deplibs_check_method \
56777 file_magic_cmd \
56778 AR \
56779 AR_FLAGS \
56780 STRIP \
56781 RANLIB \
56782 CC \
56783 CFLAGS \
56784 compiler \
56785 lt_cv_sys_global_symbol_pipe \
56786 lt_cv_sys_global_symbol_to_cdecl \
56787 lt_cv_sys_global_symbol_to_c_name_address \
56788 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
56789 lt_prog_compiler_no_builtin_flag \
56790 lt_prog_compiler_wl \
56791 lt_prog_compiler_pic \
56792 lt_prog_compiler_static \
56793 lt_cv_prog_compiler_c_o \
56794 need_locks \
56795 DSYMUTIL \
56796 NMEDIT \
56797 LIPO \
56798 OTOOL \
56799 OTOOL64 \
56800 shrext_cmds \
56801 export_dynamic_flag_spec \
56802 whole_archive_flag_spec \
56803 compiler_needs_object \
56804 with_gnu_ld \
56805 allow_undefined_flag \
56806 no_undefined_flag \
56807 hardcode_libdir_flag_spec \
56808 hardcode_libdir_flag_spec_ld \
56809 hardcode_libdir_separator \
56810 fix_srcfile_path \
56811 exclude_expsyms \
56812 include_expsyms \
56813 file_list_spec \
56814 variables_saved_for_relink \
56815 libname_spec \
56816 library_names_spec \
56817 soname_spec \
56818 install_override_mode \
56819 finish_eval \
56820 old_striplib \
56821 striplib \
56822 compiler_lib_search_dirs \
56823 predep_objects \
56824 postdep_objects \
56825 predeps \
56826 postdeps \
56827 compiler_lib_search_path \
56828 LD_CXX \
56829 reload_flag_CXX \
56830 compiler_CXX \
56831 lt_prog_compiler_no_builtin_flag_CXX \
56832 lt_prog_compiler_wl_CXX \
56833 lt_prog_compiler_pic_CXX \
56834 lt_prog_compiler_static_CXX \
56835 lt_cv_prog_compiler_c_o_CXX \
56836 export_dynamic_flag_spec_CXX \
56837 whole_archive_flag_spec_CXX \
56838 compiler_needs_object_CXX \
56839 with_gnu_ld_CXX \
56840 allow_undefined_flag_CXX \
56841 no_undefined_flag_CXX \
56842 hardcode_libdir_flag_spec_CXX \
56843 hardcode_libdir_flag_spec_ld_CXX \
56844 hardcode_libdir_separator_CXX \
56845 fix_srcfile_path_CXX \
56846 exclude_expsyms_CXX \
56847 include_expsyms_CXX \
56848 file_list_spec_CXX \
56849 compiler_lib_search_dirs_CXX \
56850 predep_objects_CXX \
56851 postdep_objects_CXX \
56852 predeps_CXX \
56853 postdeps_CXX \
56854 compiler_lib_search_path_CXX; do
56855 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
56856 *[\\\\\\\`\\"\\\$]*)
56857 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
56860 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
56862 esac
56863 done
56865 # Double-quote double-evaled strings.
56866 for var in reload_cmds \
56867 old_postinstall_cmds \
56868 old_postuninstall_cmds \
56869 old_archive_cmds \
56870 extract_expsyms_cmds \
56871 old_archive_from_new_cmds \
56872 old_archive_from_expsyms_cmds \
56873 archive_cmds \
56874 archive_expsym_cmds \
56875 module_cmds \
56876 module_expsym_cmds \
56877 export_symbols_cmds \
56878 prelink_cmds \
56879 postinstall_cmds \
56880 postuninstall_cmds \
56881 finish_cmds \
56882 sys_lib_search_path_spec \
56883 sys_lib_dlsearch_path_spec \
56884 reload_cmds_CXX \
56885 old_archive_cmds_CXX \
56886 old_archive_from_new_cmds_CXX \
56887 old_archive_from_expsyms_cmds_CXX \
56888 archive_cmds_CXX \
56889 archive_expsym_cmds_CXX \
56890 module_cmds_CXX \
56891 module_expsym_cmds_CXX \
56892 export_symbols_cmds_CXX \
56893 prelink_cmds_CXX; do
56894 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
56895 *[\\\\\\\`\\"\\\$]*)
56896 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
56899 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
56901 esac
56902 done
56904 ac_aux_dir='$ac_aux_dir'
56905 xsi_shell='$xsi_shell'
56906 lt_shell_append='$lt_shell_append'
56908 # See if we are running on zsh, and set the options which allow our
56909 # commands through without removal of \ escapes INIT.
56910 if test -n "\${ZSH_VERSION+set}" ; then
56911 setopt NO_GLOB_SUBST
56915 PACKAGE='$PACKAGE'
56916 VERSION='$VERSION'
56917 TIMESTAMP='$TIMESTAMP'
56918 RM='$RM'
56919 ofile='$ofile'
56926 _ACEOF
56928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56930 # Handling of arguments.
56931 for ac_config_target in $ac_config_targets
56933 case $ac_config_target in
56934 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
56935 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
56936 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
56937 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
56938 "scripts/testsuite_flags") CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
56939 "scripts/extract_symvers") CONFIG_FILES="$CONFIG_FILES scripts/extract_symvers" ;;
56940 "doc/xsl/customization.xsl") CONFIG_FILES="$CONFIG_FILES doc/xsl/customization.xsl" ;;
56941 "src/libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES src/libbacktrace/backtrace-supported.h" ;;
56942 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
56943 "libsupc++/Makefile") CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
56944 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
56945 "src/c++98/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++98/Makefile" ;;
56946 "src/c++11/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++11/Makefile" ;;
56947 "src/c++17/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++17/Makefile" ;;
56948 "src/c++20/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++20/Makefile" ;;
56949 "src/c++23/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++23/Makefile" ;;
56950 "src/c++26/Makefile") CONFIG_FILES="$CONFIG_FILES src/c++26/Makefile" ;;
56951 "src/filesystem/Makefile") CONFIG_FILES="$CONFIG_FILES src/filesystem/Makefile" ;;
56952 "src/libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES src/libbacktrace/Makefile" ;;
56953 "src/experimental/Makefile") CONFIG_FILES="$CONFIG_FILES src/experimental/Makefile" ;;
56954 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
56955 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
56956 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
56957 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
56958 "generate-headers") CONFIG_COMMANDS="$CONFIG_COMMANDS generate-headers" ;;
56960 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
56961 esac
56962 done
56965 # If the user did not use the arguments to specify the items to instantiate,
56966 # then the envvar interface is used. Set only those that are not.
56967 # We use the long form for the default assignment because of an extremely
56968 # bizarre bug on SunOS 4.1.3.
56969 if $ac_need_defaults; then
56970 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
56971 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
56972 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
56975 # Have a temporary directory for convenience. Make it in the build tree
56976 # simply because there is no reason against having it here, and in addition,
56977 # creating and moving files from /tmp can sometimes cause problems.
56978 # Hook for its removal unless debugging.
56979 # Note that there is a small window in which the directory will not be cleaned:
56980 # after its creation but before its name has been assigned to `$tmp'.
56981 $debug ||
56983 tmp= ac_tmp=
56984 trap 'exit_status=$?
56985 : "${ac_tmp:=$tmp}"
56986 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
56988 trap 'as_fn_exit 1' 1 2 13 15
56990 # Create a (secure) tmp directory for tmp files.
56993 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
56994 test -d "$tmp"
56995 } ||
56997 tmp=./conf$$-$RANDOM
56998 (umask 077 && mkdir "$tmp")
56999 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
57000 ac_tmp=$tmp
57002 # Set up the scripts for CONFIG_FILES section.
57003 # No need to generate them if there are no CONFIG_FILES.
57004 # This happens for instance with `./config.status config.h'.
57005 if test -n "$CONFIG_FILES"; then
57008 ac_cr=`echo X | tr X '\015'`
57009 # On cygwin, bash can eat \r inside `` if the user requested igncr.
57010 # But we know of no other shell where ac_cr would be empty at this
57011 # point, so we can use a bashism as a fallback.
57012 if test "x$ac_cr" = x; then
57013 eval ac_cr=\$\'\\r\'
57015 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
57016 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
57017 ac_cs_awk_cr='\\r'
57018 else
57019 ac_cs_awk_cr=$ac_cr
57022 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
57023 _ACEOF
57027 echo "cat >conf$$subs.awk <<_ACEOF" &&
57028 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
57029 echo "_ACEOF"
57030 } >conf$$subs.sh ||
57031 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
57032 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
57033 ac_delim='%!_!# '
57034 for ac_last_try in false false false false false :; do
57035 . ./conf$$subs.sh ||
57036 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
57038 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
57039 if test $ac_delim_n = $ac_delim_num; then
57040 break
57041 elif $ac_last_try; then
57042 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
57043 else
57044 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
57046 done
57047 rm -f conf$$subs.sh
57049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57050 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
57051 _ACEOF
57052 sed -n '
57054 s/^/S["/; s/!.*/"]=/
57057 s/^[^!]*!//
57058 :repl
57059 t repl
57060 s/'"$ac_delim"'$//
57061 t delim
57064 s/\(.\{148\}\)..*/\1/
57065 t more1
57066 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
57069 b repl
57070 :more1
57071 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
57074 s/.\{148\}//
57075 t nl
57076 :delim
57078 s/\(.\{148\}\)..*/\1/
57079 t more2
57080 s/["\\]/\\&/g; s/^/"/; s/$/"/
57083 :more2
57084 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
57087 s/.\{148\}//
57088 t delim
57089 ' <conf$$subs.awk | sed '
57090 /^[^""]/{
57092 s/\n//
57094 ' >>$CONFIG_STATUS || ac_write_fail=1
57095 rm -f conf$$subs.awk
57096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57097 _ACAWK
57098 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
57099 for (key in S) S_is_set[key] = 1
57100 FS = "\a"
57104 line = $ 0
57105 nfields = split(line, field, "@")
57106 substed = 0
57107 len = length(field[1])
57108 for (i = 2; i < nfields; i++) {
57109 key = field[i]
57110 keylen = length(key)
57111 if (S_is_set[key]) {
57112 value = S[key]
57113 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
57114 len += length(value) + length(field[++i])
57115 substed = 1
57116 } else
57117 len += 1 + keylen
57120 print line
57123 _ACAWK
57124 _ACEOF
57125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57126 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
57127 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
57128 else
57130 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
57131 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
57132 _ACEOF
57134 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
57135 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
57136 # trailing colons and then remove the whole line if VPATH becomes empty
57137 # (actually we leave an empty line to preserve line numbers).
57138 if test "x$srcdir" = x.; then
57139 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
57141 s///
57142 s/^/:/
57143 s/[ ]*$/:/
57144 s/:\$(srcdir):/:/g
57145 s/:\${srcdir}:/:/g
57146 s/:@srcdir@:/:/g
57147 s/^:*//
57148 s/:*$//
57150 s/\(=[ ]*\).*/\1/
57152 s/\n//
57153 s/^[^=]*=[ ]*$//
57157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57158 fi # test -n "$CONFIG_FILES"
57160 # Set up the scripts for CONFIG_HEADERS section.
57161 # No need to generate them if there are no CONFIG_HEADERS.
57162 # This happens for instance with `./config.status Makefile'.
57163 if test -n "$CONFIG_HEADERS"; then
57164 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
57165 BEGIN {
57166 _ACEOF
57168 # Transform confdefs.h into an awk script `defines.awk', embedded as
57169 # here-document in config.status, that substitutes the proper values into
57170 # config.h.in to produce config.h.
57172 # Create a delimiter string that does not exist in confdefs.h, to ease
57173 # handling of long lines.
57174 ac_delim='%!_!# '
57175 for ac_last_try in false false :; do
57176 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
57177 if test -z "$ac_tt"; then
57178 break
57179 elif $ac_last_try; then
57180 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
57181 else
57182 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
57184 done
57186 # For the awk script, D is an array of macro values keyed by name,
57187 # likewise P contains macro parameters if any. Preserve backslash
57188 # newline sequences.
57190 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
57191 sed -n '
57192 s/.\{148\}/&'"$ac_delim"'/g
57193 t rset
57194 :rset
57195 s/^[ ]*#[ ]*define[ ][ ]*/ /
57196 t def
57198 :def
57199 s/\\$//
57200 t bsnl
57201 s/["\\]/\\&/g
57202 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
57203 D["\1"]=" \3"/p
57204 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
57206 :bsnl
57207 s/["\\]/\\&/g
57208 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
57209 D["\1"]=" \3\\\\\\n"\\/p
57210 t cont
57211 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
57212 t cont
57214 :cont
57216 s/.\{148\}/&'"$ac_delim"'/g
57217 t clear
57218 :clear
57219 s/\\$//
57220 t bsnlc
57221 s/["\\]/\\&/g; s/^/"/; s/$/"/p
57223 :bsnlc
57224 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
57225 b cont
57226 ' <confdefs.h | sed '
57227 s/'"$ac_delim"'/"\\\
57228 "/g' >>$CONFIG_STATUS || ac_write_fail=1
57230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57231 for (key in D) D_is_set[key] = 1
57232 FS = "\a"
57234 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
57235 line = \$ 0
57236 split(line, arg, " ")
57237 if (arg[1] == "#") {
57238 defundef = arg[2]
57239 mac1 = arg[3]
57240 } else {
57241 defundef = substr(arg[1], 2)
57242 mac1 = arg[2]
57244 split(mac1, mac2, "(") #)
57245 macro = mac2[1]
57246 prefix = substr(line, 1, index(line, defundef) - 1)
57247 if (D_is_set[macro]) {
57248 # Preserve the white space surrounding the "#".
57249 print prefix "define", macro P[macro] D[macro]
57250 next
57251 } else {
57252 # Replace #undef with comments. This is necessary, for example,
57253 # in the case of _POSIX_SOURCE, which is predefined and required
57254 # on some systems where configure will not decide to define it.
57255 if (defundef == "undef") {
57256 print "/*", prefix defundef, macro, "*/"
57257 next
57261 { print }
57262 _ACAWK
57263 _ACEOF
57264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57265 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
57266 fi # test -n "$CONFIG_HEADERS"
57269 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
57270 shift
57271 for ac_tag
57273 case $ac_tag in
57274 :[FHLC]) ac_mode=$ac_tag; continue;;
57275 esac
57276 case $ac_mode$ac_tag in
57277 :[FHL]*:*);;
57278 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
57279 :[FH]-) ac_tag=-:-;;
57280 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
57281 esac
57282 ac_save_IFS=$IFS
57283 IFS=:
57284 set x $ac_tag
57285 IFS=$ac_save_IFS
57286 shift
57287 ac_file=$1
57288 shift
57290 case $ac_mode in
57291 :L) ac_source=$1;;
57292 :[FH])
57293 ac_file_inputs=
57294 for ac_f
57296 case $ac_f in
57297 -) ac_f="$ac_tmp/stdin";;
57298 *) # Look for the file first in the build tree, then in the source tree
57299 # (if the path is not absolute). The absolute path cannot be DOS-style,
57300 # because $ac_f cannot contain `:'.
57301 test -f "$ac_f" ||
57302 case $ac_f in
57303 [\\/$]*) false;;
57304 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
57305 esac ||
57306 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
57307 esac
57308 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
57309 as_fn_append ac_file_inputs " '$ac_f'"
57310 done
57312 # Let's still pretend it is `configure' which instantiates (i.e., don't
57313 # use $as_me), people would be surprised to read:
57314 # /* config.h. Generated by config.status. */
57315 configure_input='Generated from '`
57316 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
57317 `' by configure.'
57318 if test x"$ac_file" != x-; then
57319 configure_input="$ac_file. $configure_input"
57320 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
57321 $as_echo "$as_me: creating $ac_file" >&6;}
57323 # Neutralize special characters interpreted by sed in replacement strings.
57324 case $configure_input in #(
57325 *\&* | *\|* | *\\* )
57326 ac_sed_conf_input=`$as_echo "$configure_input" |
57327 sed 's/[\\\\&|]/\\\\&/g'`;; #(
57328 *) ac_sed_conf_input=$configure_input;;
57329 esac
57331 case $ac_tag in
57332 *:-:* | *:-) cat >"$ac_tmp/stdin" \
57333 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
57334 esac
57336 esac
57338 ac_dir=`$as_dirname -- "$ac_file" ||
57339 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57340 X"$ac_file" : 'X\(//\)[^/]' \| \
57341 X"$ac_file" : 'X\(//\)$' \| \
57342 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
57343 $as_echo X"$ac_file" |
57344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57345 s//\1/
57348 /^X\(\/\/\)[^/].*/{
57349 s//\1/
57352 /^X\(\/\/\)$/{
57353 s//\1/
57356 /^X\(\/\).*/{
57357 s//\1/
57360 s/.*/./; q'`
57361 as_dir="$ac_dir"; as_fn_mkdir_p
57362 ac_builddir=.
57364 case "$ac_dir" in
57365 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
57367 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
57368 # A ".." for each directory in $ac_dir_suffix.
57369 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
57370 case $ac_top_builddir_sub in
57371 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
57372 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
57373 esac ;;
57374 esac
57375 ac_abs_top_builddir=$ac_pwd
57376 ac_abs_builddir=$ac_pwd$ac_dir_suffix
57377 # for backward compatibility:
57378 ac_top_builddir=$ac_top_build_prefix
57380 case $srcdir in
57381 .) # We are building in place.
57382 ac_srcdir=.
57383 ac_top_srcdir=$ac_top_builddir_sub
57384 ac_abs_top_srcdir=$ac_pwd ;;
57385 [\\/]* | ?:[\\/]* ) # Absolute name.
57386 ac_srcdir=$srcdir$ac_dir_suffix;
57387 ac_top_srcdir=$srcdir
57388 ac_abs_top_srcdir=$srcdir ;;
57389 *) # Relative name.
57390 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
57391 ac_top_srcdir=$ac_top_build_prefix$srcdir
57392 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
57393 esac
57394 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
57397 case $ac_mode in
57400 # CONFIG_FILE
57403 case $INSTALL in
57404 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
57405 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
57406 esac
57407 ac_MKDIR_P=$MKDIR_P
57408 case $MKDIR_P in
57409 [\\/$]* | ?:[\\/]* ) ;;
57410 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
57411 esac
57412 _ACEOF
57414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57415 # If the template does not know about datarootdir, expand it.
57416 # FIXME: This hack should be removed a few years after 2.60.
57417 ac_datarootdir_hack=; ac_datarootdir_seen=
57418 ac_sed_dataroot='
57419 /datarootdir/ {
57423 /@datadir@/p
57424 /@docdir@/p
57425 /@infodir@/p
57426 /@localedir@/p
57427 /@mandir@/p'
57428 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
57429 *datarootdir*) ac_datarootdir_seen=yes;;
57430 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
57431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
57432 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
57433 _ACEOF
57434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57435 ac_datarootdir_hack='
57436 s&@datadir@&$datadir&g
57437 s&@docdir@&$docdir&g
57438 s&@infodir@&$infodir&g
57439 s&@localedir@&$localedir&g
57440 s&@mandir@&$mandir&g
57441 s&\\\${datarootdir}&$datarootdir&g' ;;
57442 esac
57443 _ACEOF
57445 # Neutralize VPATH when `$srcdir' = `.'.
57446 # Shell code in configure.ac might set extrasub.
57447 # FIXME: do we really want to maintain this feature?
57448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57449 ac_sed_extra="$ac_vpsub
57450 $extrasub
57451 _ACEOF
57452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57454 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
57455 s|@configure_input@|$ac_sed_conf_input|;t t
57456 s&@top_builddir@&$ac_top_builddir_sub&;t t
57457 s&@top_build_prefix@&$ac_top_build_prefix&;t t
57458 s&@srcdir@&$ac_srcdir&;t t
57459 s&@abs_srcdir@&$ac_abs_srcdir&;t t
57460 s&@top_srcdir@&$ac_top_srcdir&;t t
57461 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
57462 s&@builddir@&$ac_builddir&;t t
57463 s&@abs_builddir@&$ac_abs_builddir&;t t
57464 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
57465 s&@INSTALL@&$ac_INSTALL&;t t
57466 s&@MKDIR_P@&$ac_MKDIR_P&;t t
57467 $ac_datarootdir_hack
57469 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
57470 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
57472 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
57473 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
57474 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
57475 "$ac_tmp/out"`; test -z "$ac_out"; } &&
57476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
57477 which seems to be undefined. Please make sure it is defined" >&5
57478 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
57479 which seems to be undefined. Please make sure it is defined" >&2;}
57481 rm -f "$ac_tmp/stdin"
57482 case $ac_file in
57483 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
57484 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
57485 esac \
57486 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
57490 # CONFIG_HEADER
57492 if test x"$ac_file" != x-; then
57494 $as_echo "/* $configure_input */" \
57495 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
57496 } >"$ac_tmp/config.h" \
57497 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
57498 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
57499 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
57500 $as_echo "$as_me: $ac_file is unchanged" >&6;}
57501 else
57502 rm -f "$ac_file"
57503 mv "$ac_tmp/config.h" "$ac_file" \
57504 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
57506 else
57507 $as_echo "/* $configure_input */" \
57508 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
57509 || as_fn_error $? "could not create -" "$LINENO" 5
57511 # Compute "$ac_file"'s index in $config_headers.
57512 _am_arg="$ac_file"
57513 _am_stamp_count=1
57514 for _am_header in $config_headers :; do
57515 case $_am_header in
57516 $_am_arg | $_am_arg:* )
57517 break ;;
57519 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
57520 esac
57521 done
57522 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
57523 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57524 X"$_am_arg" : 'X\(//\)[^/]' \| \
57525 X"$_am_arg" : 'X\(//\)$' \| \
57526 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
57527 $as_echo X"$_am_arg" |
57528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57529 s//\1/
57532 /^X\(\/\/\)[^/].*/{
57533 s//\1/
57536 /^X\(\/\/\)$/{
57537 s//\1/
57540 /^X\(\/\).*/{
57541 s//\1/
57544 s/.*/./; q'`/stamp-h$_am_stamp_count
57547 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
57548 $as_echo "$as_me: executing $ac_file commands" >&6;}
57550 esac
57553 case $ac_file$ac_mode in
57554 "default-1":C)
57555 # Only add multilib support code if we just rebuilt the top-level
57556 # Makefile.
57557 case " $CONFIG_FILES " in
57558 *" Makefile "*)
57559 ac_file=Makefile . ${multi_basedir}/config-ml.in
57561 esac ;;
57562 "libtool":C)
57564 # See if we are running on zsh, and set the options which allow our
57565 # commands through without removal of \ escapes.
57566 if test -n "${ZSH_VERSION+set}" ; then
57567 setopt NO_GLOB_SUBST
57570 cfgfile="${ofile}T"
57571 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
57572 $RM "$cfgfile"
57574 cat <<_LT_EOF >> "$cfgfile"
57575 #! $SHELL
57577 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
57578 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
57579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
57580 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
57582 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
57583 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
57584 # Written by Gordon Matzigkeit, 1996
57586 # This file is part of GNU Libtool.
57588 # GNU Libtool is free software; you can redistribute it and/or
57589 # modify it under the terms of the GNU General Public License as
57590 # published by the Free Software Foundation; either version 2 of
57591 # the License, or (at your option) any later version.
57593 # As a special exception to the GNU General Public License,
57594 # if you distribute this file as part of a program or library that
57595 # is built using GNU Libtool, you may include this file under the
57596 # same distribution terms that you use for the rest of that program.
57598 # GNU Libtool is distributed in the hope that it will be useful,
57599 # but WITHOUT ANY WARRANTY; without even the implied warranty of
57600 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
57601 # GNU General Public License for more details.
57603 # You should have received a copy of the GNU General Public License
57604 # along with GNU Libtool; see the file COPYING. If not, a copy
57605 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
57606 # obtained by writing to the Free Software Foundation, Inc.,
57607 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
57610 # The names of the tagged configurations supported by this script.
57611 available_tags="CXX "
57613 # ### BEGIN LIBTOOL CONFIG
57615 # Which release of libtool.m4 was used?
57616 macro_version=$macro_version
57617 macro_revision=$macro_revision
57619 # Whether or not to build shared libraries.
57620 build_libtool_libs=$enable_shared
57622 # Whether or not to build static libraries.
57623 build_old_libs=$enable_static
57625 # What type of objects to build.
57626 pic_mode=$pic_mode
57628 # Whether or not to optimize for fast installation.
57629 fast_install=$enable_fast_install
57631 # Shell to use when invoking shell scripts.
57632 SHELL=$lt_SHELL
57634 # An echo program that protects backslashes.
57635 ECHO=$lt_ECHO
57637 # The host system.
57638 host_alias=$host_alias
57639 host=$host
57640 host_os=$host_os
57642 # The build system.
57643 build_alias=$build_alias
57644 build=$build
57645 build_os=$build_os
57647 # A sed program that does not truncate output.
57648 SED=$lt_SED
57650 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
57651 Xsed="\$SED -e 1s/^X//"
57653 # A grep program that handles long lines.
57654 GREP=$lt_GREP
57656 # An ERE matcher.
57657 EGREP=$lt_EGREP
57659 # A literal string matcher.
57660 FGREP=$lt_FGREP
57662 # A BSD- or MS-compatible name lister.
57663 NM=$lt_NM
57665 # Whether we need soft or hard links.
57666 LN_S=$lt_LN_S
57668 # What is the maximum length of a command?
57669 max_cmd_len=$max_cmd_len
57671 # Object file suffix (normally "o").
57672 objext=$ac_objext
57674 # Executable file suffix (normally "").
57675 exeext=$exeext
57677 # whether the shell understands "unset".
57678 lt_unset=$lt_unset
57680 # turn spaces into newlines.
57681 SP2NL=$lt_lt_SP2NL
57683 # turn newlines into spaces.
57684 NL2SP=$lt_lt_NL2SP
57686 # An object symbol dumper.
57687 OBJDUMP=$lt_OBJDUMP
57689 # Method to check whether dependent libraries are shared objects.
57690 deplibs_check_method=$lt_deplibs_check_method
57692 # Command to use when deplibs_check_method == "file_magic".
57693 file_magic_cmd=$lt_file_magic_cmd
57695 # The archiver.
57696 AR=$lt_AR
57697 AR_FLAGS=$lt_AR_FLAGS
57699 # A symbol stripping program.
57700 STRIP=$lt_STRIP
57702 # Commands used to install an old-style archive.
57703 RANLIB=$lt_RANLIB
57704 old_postinstall_cmds=$lt_old_postinstall_cmds
57705 old_postuninstall_cmds=$lt_old_postuninstall_cmds
57707 # Whether to use a lock for old archive extraction.
57708 lock_old_archive_extraction=$lock_old_archive_extraction
57710 # A C compiler.
57711 LTCC=$lt_CC
57713 # LTCC compiler flags.
57714 LTCFLAGS=$lt_CFLAGS
57716 # Take the output of nm and produce a listing of raw symbols and C names.
57717 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
57719 # Transform the output of nm in a proper C declaration.
57720 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
57722 # Transform the output of nm in a C name address pair.
57723 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
57725 # Transform the output of nm in a C name address pair when lib prefix is needed.
57726 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
57728 # The name of the directory that contains temporary libtool files.
57729 objdir=$objdir
57731 # Used to examine libraries when file_magic_cmd begins with "file".
57732 MAGIC_CMD=$MAGIC_CMD
57734 # Must we lock files when doing compilation?
57735 need_locks=$lt_need_locks
57737 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
57738 DSYMUTIL=$lt_DSYMUTIL
57740 # Tool to change global to local symbols on Mac OS X.
57741 NMEDIT=$lt_NMEDIT
57743 # Tool to manipulate fat objects and archives on Mac OS X.
57744 LIPO=$lt_LIPO
57746 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
57747 OTOOL=$lt_OTOOL
57749 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
57750 OTOOL64=$lt_OTOOL64
57752 # Old archive suffix (normally "a").
57753 libext=$libext
57755 # Shared library suffix (normally ".so").
57756 shrext_cmds=$lt_shrext_cmds
57758 # The commands to extract the exported symbol list from a shared archive.
57759 extract_expsyms_cmds=$lt_extract_expsyms_cmds
57761 # Variables whose values should be saved in libtool wrapper scripts and
57762 # restored at link time.
57763 variables_saved_for_relink=$lt_variables_saved_for_relink
57765 # Do we need the "lib" prefix for modules?
57766 need_lib_prefix=$need_lib_prefix
57768 # Do we need a version for libraries?
57769 need_version=$need_version
57771 # Library versioning type.
57772 version_type=$version_type
57774 # Shared library runtime path variable.
57775 runpath_var=$runpath_var
57777 # Shared library path variable.
57778 shlibpath_var=$shlibpath_var
57780 # Is shlibpath searched before the hard-coded library search path?
57781 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
57783 # Format of library name prefix.
57784 libname_spec=$lt_libname_spec
57786 # List of archive names. First name is the real one, the rest are links.
57787 # The last name is the one that the linker finds with -lNAME
57788 library_names_spec=$lt_library_names_spec
57790 # The coded name of the library, if different from the real name.
57791 soname_spec=$lt_soname_spec
57793 # Permission mode override for installation of shared libraries.
57794 install_override_mode=$lt_install_override_mode
57796 # Command to use after installation of a shared archive.
57797 postinstall_cmds=$lt_postinstall_cmds
57799 # Command to use after uninstallation of a shared archive.
57800 postuninstall_cmds=$lt_postuninstall_cmds
57802 # Commands used to finish a libtool library installation in a directory.
57803 finish_cmds=$lt_finish_cmds
57805 # As "finish_cmds", except a single script fragment to be evaled but
57806 # not shown.
57807 finish_eval=$lt_finish_eval
57809 # Whether we should hardcode library paths into libraries.
57810 hardcode_into_libs=$hardcode_into_libs
57812 # Compile-time system search path for libraries.
57813 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
57815 # Run-time system search path for libraries.
57816 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
57818 # Whether dlopen is supported.
57819 dlopen_support=$enable_dlopen
57821 # Whether dlopen of programs is supported.
57822 dlopen_self=$enable_dlopen_self
57824 # Whether dlopen of statically linked programs is supported.
57825 dlopen_self_static=$enable_dlopen_self_static
57827 # Commands to strip libraries.
57828 old_striplib=$lt_old_striplib
57829 striplib=$lt_striplib
57832 # The linker used to build libraries.
57833 LD=$lt_LD
57835 # How to create reloadable object files.
57836 reload_flag=$lt_reload_flag
57837 reload_cmds=$lt_reload_cmds
57839 # Commands used to build an old-style archive.
57840 old_archive_cmds=$lt_old_archive_cmds
57842 # A language specific compiler.
57843 CC=$lt_compiler
57845 # Is the compiler the GNU compiler?
57846 with_gcc=$GCC
57848 # Compiler flag to turn off builtin functions.
57849 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
57851 # How to pass a linker flag through the compiler.
57852 wl=$lt_lt_prog_compiler_wl
57854 # Additional compiler flags for building library objects.
57855 pic_flag=$lt_lt_prog_compiler_pic
57857 # Compiler flag to prevent dynamic linking.
57858 link_static_flag=$lt_lt_prog_compiler_static
57860 # Does compiler simultaneously support -c and -o options?
57861 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
57863 # Whether or not to add -lc for building shared libraries.
57864 build_libtool_need_lc=$archive_cmds_need_lc
57866 # Whether or not to disallow shared libs when runtime libs are static.
57867 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
57869 # Compiler flag to allow reflexive dlopens.
57870 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
57872 # Compiler flag to generate shared objects directly from archives.
57873 whole_archive_flag_spec=$lt_whole_archive_flag_spec
57875 # Whether the compiler copes with passing no objects directly.
57876 compiler_needs_object=$lt_compiler_needs_object
57878 # Create an old-style archive from a shared archive.
57879 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
57881 # Create a temporary old-style archive to link instead of a shared archive.
57882 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
57884 # Commands used to build a shared archive.
57885 archive_cmds=$lt_archive_cmds
57886 archive_expsym_cmds=$lt_archive_expsym_cmds
57888 # Commands used to build a loadable module if different from building
57889 # a shared archive.
57890 module_cmds=$lt_module_cmds
57891 module_expsym_cmds=$lt_module_expsym_cmds
57893 # Whether we are building with GNU ld or not.
57894 with_gnu_ld=$lt_with_gnu_ld
57896 # Flag that allows shared libraries with undefined symbols to be built.
57897 allow_undefined_flag=$lt_allow_undefined_flag
57899 # Flag that enforces no undefined symbols.
57900 no_undefined_flag=$lt_no_undefined_flag
57902 # Flag to hardcode \$libdir into a binary during linking.
57903 # This must work even if \$libdir does not exist
57904 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
57906 # If ld is used when linking, flag to hardcode \$libdir into a binary
57907 # during linking. This must work even if \$libdir does not exist.
57908 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
57910 # Whether we need a single "-rpath" flag with a separated argument.
57911 hardcode_libdir_separator=$lt_hardcode_libdir_separator
57913 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
57914 # DIR into the resulting binary.
57915 hardcode_direct=$hardcode_direct
57917 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
57918 # DIR into the resulting binary and the resulting library dependency is
57919 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
57920 # library is relocated.
57921 hardcode_direct_absolute=$hardcode_direct_absolute
57923 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
57924 # into the resulting binary.
57925 hardcode_minus_L=$hardcode_minus_L
57927 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
57928 # into the resulting binary.
57929 hardcode_shlibpath_var=$hardcode_shlibpath_var
57931 # Set to "yes" if building a shared library automatically hardcodes DIR
57932 # into the library and all subsequent libraries and executables linked
57933 # against it.
57934 hardcode_automatic=$hardcode_automatic
57936 # Set to yes if linker adds runtime paths of dependent libraries
57937 # to runtime path list.
57938 inherit_rpath=$inherit_rpath
57940 # Whether libtool must link a program against all its dependency libraries.
57941 link_all_deplibs=$link_all_deplibs
57943 # Fix the shell variable \$srcfile for the compiler.
57944 fix_srcfile_path=$lt_fix_srcfile_path
57946 # Set to "yes" if exported symbols are required.
57947 always_export_symbols=$always_export_symbols
57949 # The commands to list exported symbols.
57950 export_symbols_cmds=$lt_export_symbols_cmds
57952 # Symbols that should not be listed in the preloaded symbols.
57953 exclude_expsyms=$lt_exclude_expsyms
57955 # Symbols that must always be exported.
57956 include_expsyms=$lt_include_expsyms
57958 # Commands necessary for linking programs (against libraries) with templates.
57959 prelink_cmds=$lt_prelink_cmds
57961 # Specify filename containing input files.
57962 file_list_spec=$lt_file_list_spec
57964 # How to hardcode a shared library path into an executable.
57965 hardcode_action=$hardcode_action
57967 # The directories searched by this compiler when creating a shared library.
57968 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
57970 # Dependencies to place before and after the objects being linked to
57971 # create a shared library.
57972 predep_objects=$lt_predep_objects
57973 postdep_objects=$lt_postdep_objects
57974 predeps=$lt_predeps
57975 postdeps=$lt_postdeps
57977 # The library search path used internally by the compiler when linking
57978 # a shared library.
57979 compiler_lib_search_path=$lt_compiler_lib_search_path
57981 # ### END LIBTOOL CONFIG
57983 _LT_EOF
57985 case $host_os in
57986 aix3*)
57987 cat <<\_LT_EOF >> "$cfgfile"
57988 # AIX sometimes has problems with the GCC collect2 program. For some
57989 # reason, if we set the COLLECT_NAMES environment variable, the problems
57990 # vanish in a puff of smoke.
57991 if test "X${COLLECT_NAMES+set}" != Xset; then
57992 COLLECT_NAMES=
57993 export COLLECT_NAMES
57995 _LT_EOF
57997 esac
58000 ltmain="$ac_aux_dir/ltmain.sh"
58003 # We use sed instead of cat because bash on DJGPP gets confused if
58004 # if finds mixed CR/LF and LF-only lines. Since sed operates in
58005 # text mode, it properly converts lines to CR/LF. This bash problem
58006 # is reportedly fixed, but why not run on old versions too?
58007 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
58008 || (rm -f "$cfgfile"; exit 1)
58010 case $xsi_shell in
58011 yes)
58012 cat << \_LT_EOF >> "$cfgfile"
58014 # func_dirname file append nondir_replacement
58015 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
58016 # otherwise set result to NONDIR_REPLACEMENT.
58017 func_dirname ()
58019 case ${1} in
58020 */*) func_dirname_result="${1%/*}${2}" ;;
58021 * ) func_dirname_result="${3}" ;;
58022 esac
58025 # func_basename file
58026 func_basename ()
58028 func_basename_result="${1##*/}"
58031 # func_dirname_and_basename file append nondir_replacement
58032 # perform func_basename and func_dirname in a single function
58033 # call:
58034 # dirname: Compute the dirname of FILE. If nonempty,
58035 # add APPEND to the result, otherwise set result
58036 # to NONDIR_REPLACEMENT.
58037 # value returned in "$func_dirname_result"
58038 # basename: Compute filename of FILE.
58039 # value retuned in "$func_basename_result"
58040 # Implementation must be kept synchronized with func_dirname
58041 # and func_basename. For efficiency, we do not delegate to
58042 # those functions but instead duplicate the functionality here.
58043 func_dirname_and_basename ()
58045 case ${1} in
58046 */*) func_dirname_result="${1%/*}${2}" ;;
58047 * ) func_dirname_result="${3}" ;;
58048 esac
58049 func_basename_result="${1##*/}"
58052 # func_stripname prefix suffix name
58053 # strip PREFIX and SUFFIX off of NAME.
58054 # PREFIX and SUFFIX must not contain globbing or regex special
58055 # characters, hashes, percent signs, but SUFFIX may contain a leading
58056 # dot (in which case that matches only a dot).
58057 func_stripname ()
58059 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
58060 # positional parameters, so assign one to ordinary parameter first.
58061 func_stripname_result=${3}
58062 func_stripname_result=${func_stripname_result#"${1}"}
58063 func_stripname_result=${func_stripname_result%"${2}"}
58066 # func_opt_split
58067 func_opt_split ()
58069 func_opt_split_opt=${1%%=*}
58070 func_opt_split_arg=${1#*=}
58073 # func_lo2o object
58074 func_lo2o ()
58076 case ${1} in
58077 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
58078 *) func_lo2o_result=${1} ;;
58079 esac
58082 # func_xform libobj-or-source
58083 func_xform ()
58085 func_xform_result=${1%.*}.lo
58088 # func_arith arithmetic-term...
58089 func_arith ()
58091 func_arith_result=$(( $* ))
58094 # func_len string
58095 # STRING may not start with a hyphen.
58096 func_len ()
58098 func_len_result=${#1}
58101 _LT_EOF
58103 *) # Bourne compatible functions.
58104 cat << \_LT_EOF >> "$cfgfile"
58106 # func_dirname file append nondir_replacement
58107 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
58108 # otherwise set result to NONDIR_REPLACEMENT.
58109 func_dirname ()
58111 # Extract subdirectory from the argument.
58112 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
58113 if test "X$func_dirname_result" = "X${1}"; then
58114 func_dirname_result="${3}"
58115 else
58116 func_dirname_result="$func_dirname_result${2}"
58120 # func_basename file
58121 func_basename ()
58123 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
58127 # func_stripname prefix suffix name
58128 # strip PREFIX and SUFFIX off of NAME.
58129 # PREFIX and SUFFIX must not contain globbing or regex special
58130 # characters, hashes, percent signs, but SUFFIX may contain a leading
58131 # dot (in which case that matches only a dot).
58132 # func_strip_suffix prefix name
58133 func_stripname ()
58135 case ${2} in
58136 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
58137 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
58138 esac
58141 # sed scripts:
58142 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
58143 my_sed_long_arg='1s/^-[^=]*=//'
58145 # func_opt_split
58146 func_opt_split ()
58148 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
58149 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
58152 # func_lo2o object
58153 func_lo2o ()
58155 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
58158 # func_xform libobj-or-source
58159 func_xform ()
58161 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
58164 # func_arith arithmetic-term...
58165 func_arith ()
58167 func_arith_result=`expr "$@"`
58170 # func_len string
58171 # STRING may not start with a hyphen.
58172 func_len ()
58174 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
58177 _LT_EOF
58178 esac
58180 case $lt_shell_append in
58181 yes)
58182 cat << \_LT_EOF >> "$cfgfile"
58184 # func_append var value
58185 # Append VALUE to the end of shell variable VAR.
58186 func_append ()
58188 eval "$1+=\$2"
58190 _LT_EOF
58193 cat << \_LT_EOF >> "$cfgfile"
58195 # func_append var value
58196 # Append VALUE to the end of shell variable VAR.
58197 func_append ()
58199 eval "$1=\$$1\$2"
58202 _LT_EOF
58204 esac
58207 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
58208 || (rm -f "$cfgfile"; exit 1)
58210 mv -f "$cfgfile" "$ofile" ||
58211 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
58212 chmod +x "$ofile"
58215 cat <<_LT_EOF >> "$ofile"
58217 # ### BEGIN LIBTOOL TAG CONFIG: CXX
58219 # The linker used to build libraries.
58220 LD=$lt_LD_CXX
58222 # How to create reloadable object files.
58223 reload_flag=$lt_reload_flag_CXX
58224 reload_cmds=$lt_reload_cmds_CXX
58226 # Commands used to build an old-style archive.
58227 old_archive_cmds=$lt_old_archive_cmds_CXX
58229 # A language specific compiler.
58230 CC=$lt_compiler_CXX
58232 # Is the compiler the GNU compiler?
58233 with_gcc=$GCC_CXX
58235 # Compiler flag to turn off builtin functions.
58236 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
58238 # How to pass a linker flag through the compiler.
58239 wl=$lt_lt_prog_compiler_wl_CXX
58241 # Additional compiler flags for building library objects.
58242 pic_flag=$lt_lt_prog_compiler_pic_CXX
58244 # Compiler flag to prevent dynamic linking.
58245 link_static_flag=$lt_lt_prog_compiler_static_CXX
58247 # Does compiler simultaneously support -c and -o options?
58248 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
58250 # Whether or not to add -lc for building shared libraries.
58251 build_libtool_need_lc=$archive_cmds_need_lc_CXX
58253 # Whether or not to disallow shared libs when runtime libs are static.
58254 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
58256 # Compiler flag to allow reflexive dlopens.
58257 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
58259 # Compiler flag to generate shared objects directly from archives.
58260 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
58262 # Whether the compiler copes with passing no objects directly.
58263 compiler_needs_object=$lt_compiler_needs_object_CXX
58265 # Create an old-style archive from a shared archive.
58266 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
58268 # Create a temporary old-style archive to link instead of a shared archive.
58269 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
58271 # Commands used to build a shared archive.
58272 archive_cmds=$lt_archive_cmds_CXX
58273 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
58275 # Commands used to build a loadable module if different from building
58276 # a shared archive.
58277 module_cmds=$lt_module_cmds_CXX
58278 module_expsym_cmds=$lt_module_expsym_cmds_CXX
58280 # Whether we are building with GNU ld or not.
58281 with_gnu_ld=$lt_with_gnu_ld_CXX
58283 # Flag that allows shared libraries with undefined symbols to be built.
58284 allow_undefined_flag=$lt_allow_undefined_flag_CXX
58286 # Flag that enforces no undefined symbols.
58287 no_undefined_flag=$lt_no_undefined_flag_CXX
58289 # Flag to hardcode \$libdir into a binary during linking.
58290 # This must work even if \$libdir does not exist
58291 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
58293 # If ld is used when linking, flag to hardcode \$libdir into a binary
58294 # during linking. This must work even if \$libdir does not exist.
58295 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
58297 # Whether we need a single "-rpath" flag with a separated argument.
58298 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
58300 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
58301 # DIR into the resulting binary.
58302 hardcode_direct=$hardcode_direct_CXX
58304 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
58305 # DIR into the resulting binary and the resulting library dependency is
58306 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
58307 # library is relocated.
58308 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
58310 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
58311 # into the resulting binary.
58312 hardcode_minus_L=$hardcode_minus_L_CXX
58314 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
58315 # into the resulting binary.
58316 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
58318 # Set to "yes" if building a shared library automatically hardcodes DIR
58319 # into the library and all subsequent libraries and executables linked
58320 # against it.
58321 hardcode_automatic=$hardcode_automatic_CXX
58323 # Set to yes if linker adds runtime paths of dependent libraries
58324 # to runtime path list.
58325 inherit_rpath=$inherit_rpath_CXX
58327 # Whether libtool must link a program against all its dependency libraries.
58328 link_all_deplibs=$link_all_deplibs_CXX
58330 # Fix the shell variable \$srcfile for the compiler.
58331 fix_srcfile_path=$lt_fix_srcfile_path_CXX
58333 # Set to "yes" if exported symbols are required.
58334 always_export_symbols=$always_export_symbols_CXX
58336 # The commands to list exported symbols.
58337 export_symbols_cmds=$lt_export_symbols_cmds_CXX
58339 # Symbols that should not be listed in the preloaded symbols.
58340 exclude_expsyms=$lt_exclude_expsyms_CXX
58342 # Symbols that must always be exported.
58343 include_expsyms=$lt_include_expsyms_CXX
58345 # Commands necessary for linking programs (against libraries) with templates.
58346 prelink_cmds=$lt_prelink_cmds_CXX
58348 # Specify filename containing input files.
58349 file_list_spec=$lt_file_list_spec_CXX
58351 # How to hardcode a shared library path into an executable.
58352 hardcode_action=$hardcode_action_CXX
58354 # The directories searched by this compiler when creating a shared library.
58355 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
58357 # Dependencies to place before and after the objects being linked to
58358 # create a shared library.
58359 predep_objects=$lt_predep_objects_CXX
58360 postdep_objects=$lt_postdep_objects_CXX
58361 predeps=$lt_predeps_CXX
58362 postdeps=$lt_postdeps_CXX
58364 # The library search path used internally by the compiler when linking
58365 # a shared library.
58366 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
58368 # ### END LIBTOOL TAG CONFIG: CXX
58369 _LT_EOF
58372 "scripts/testsuite_flags":F) chmod +x scripts/testsuite_flags ;;
58373 "scripts/extract_symvers":F) chmod +x scripts/extract_symvers ;;
58374 "include/Makefile":F) cat > vpsed$$ << \_EOF
58375 s!`test -f '$<' || echo '$(srcdir)/'`!!
58376 _EOF
58377 sed -f vpsed$$ $ac_file > tmp$$
58378 mv tmp$$ $ac_file
58379 rm vpsed$$
58380 echo 'MULTISUBDIR =' >> $ac_file
58381 ml_norecursion=yes
58382 . ${multi_basedir}/config-ml.in
58383 { ml_norecursion=; unset ml_norecursion;}
58385 "libsupc++/Makefile":F) cat > vpsed$$ << \_EOF
58386 s!`test -f '$<' || echo '$(srcdir)/'`!!
58387 _EOF
58388 sed -f vpsed$$ $ac_file > tmp$$
58389 mv tmp$$ $ac_file
58390 rm vpsed$$
58391 echo 'MULTISUBDIR =' >> $ac_file
58392 ml_norecursion=yes
58393 . ${multi_basedir}/config-ml.in
58394 { ml_norecursion=; unset ml_norecursion;}
58396 "src/Makefile":F) cat > vpsed$$ << \_EOF
58397 s!`test -f '$<' || echo '$(srcdir)/'`!!
58398 _EOF
58399 sed -f vpsed$$ $ac_file > tmp$$
58400 mv tmp$$ $ac_file
58401 rm vpsed$$
58402 echo 'MULTISUBDIR =' >> $ac_file
58403 ml_norecursion=yes
58404 . ${multi_basedir}/config-ml.in
58405 { ml_norecursion=; unset ml_norecursion;}
58407 "src/c++98/Makefile":F) cat > vpsed$$ << \_EOF
58408 s!`test -f '$<' || echo '$(srcdir)/'`!!
58409 _EOF
58410 sed -f vpsed$$ $ac_file > tmp$$
58411 mv tmp$$ $ac_file
58412 rm vpsed$$
58413 echo 'MULTISUBDIR =' >> $ac_file
58414 ml_norecursion=yes
58415 . ${multi_basedir}/config-ml.in
58416 { ml_norecursion=; unset ml_norecursion;}
58418 "src/c++11/Makefile":F) cat > vpsed$$ << \_EOF
58419 s!`test -f '$<' || echo '$(srcdir)/'`!!
58420 _EOF
58421 sed -f vpsed$$ $ac_file > tmp$$
58422 mv tmp$$ $ac_file
58423 rm vpsed$$
58424 echo 'MULTISUBDIR =' >> $ac_file
58425 ml_norecursion=yes
58426 . ${multi_basedir}/config-ml.in
58427 { ml_norecursion=; unset ml_norecursion;}
58429 "src/c++17/Makefile":F) cat > vpsed$$ << \_EOF
58430 s!`test -f '$<' || echo '$(srcdir)/'`!!
58431 _EOF
58432 sed -f vpsed$$ $ac_file > tmp$$
58433 mv tmp$$ $ac_file
58434 rm vpsed$$
58435 echo 'MULTISUBDIR =' >> $ac_file
58436 ml_norecursion=yes
58437 . ${multi_basedir}/config-ml.in
58438 { ml_norecursion=; unset ml_norecursion;}
58440 "src/c++20/Makefile":F) cat > vpsed$$ << \_EOF
58441 s!`test -f '$<' || echo '$(srcdir)/'`!!
58442 _EOF
58443 sed -f vpsed$$ $ac_file > tmp$$
58444 mv tmp$$ $ac_file
58445 rm vpsed$$
58446 echo 'MULTISUBDIR =' >> $ac_file
58447 ml_norecursion=yes
58448 . ${multi_basedir}/config-ml.in
58449 { ml_norecursion=; unset ml_norecursion;}
58451 "src/c++23/Makefile":F) cat > vpsed$$ << \_EOF
58452 s!`test -f '$<' || echo '$(srcdir)/'`!!
58453 _EOF
58454 sed -f vpsed$$ $ac_file > tmp$$
58455 mv tmp$$ $ac_file
58456 rm vpsed$$
58457 echo 'MULTISUBDIR =' >> $ac_file
58458 ml_norecursion=yes
58459 . ${multi_basedir}/config-ml.in
58460 { ml_norecursion=; unset ml_norecursion;}
58462 "src/c++26/Makefile":F) cat > vpsed$$ << \_EOF
58463 s!`test -f '$<' || echo '$(srcdir)/'`!!
58464 _EOF
58465 sed -f vpsed$$ $ac_file > tmp$$
58466 mv tmp$$ $ac_file
58467 rm vpsed$$
58468 echo 'MULTISUBDIR =' >> $ac_file
58469 ml_norecursion=yes
58470 . ${multi_basedir}/config-ml.in
58471 { ml_norecursion=; unset ml_norecursion;}
58473 "src/filesystem/Makefile":F) cat > vpsed$$ << \_EOF
58474 s!`test -f '$<' || echo '$(srcdir)/'`!!
58475 _EOF
58476 sed -f vpsed$$ $ac_file > tmp$$
58477 mv tmp$$ $ac_file
58478 rm vpsed$$
58479 echo 'MULTISUBDIR =' >> $ac_file
58480 ml_norecursion=yes
58481 . ${multi_basedir}/config-ml.in
58482 { ml_norecursion=; unset ml_norecursion;}
58484 "src/libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
58485 s!`test -f '$<' || echo '$(srcdir)/'`!!
58486 _EOF
58487 sed -f vpsed$$ $ac_file > tmp$$
58488 mv tmp$$ $ac_file
58489 rm vpsed$$
58490 echo 'MULTISUBDIR =' >> $ac_file
58491 ml_norecursion=yes
58492 . ${multi_basedir}/config-ml.in
58493 { ml_norecursion=; unset ml_norecursion;}
58495 "src/experimental/Makefile":F) cat > vpsed$$ << \_EOF
58496 s!`test -f '$<' || echo '$(srcdir)/'`!!
58497 _EOF
58498 sed -f vpsed$$ $ac_file > tmp$$
58499 mv tmp$$ $ac_file
58500 rm vpsed$$
58501 echo 'MULTISUBDIR =' >> $ac_file
58502 ml_norecursion=yes
58503 . ${multi_basedir}/config-ml.in
58504 { ml_norecursion=; unset ml_norecursion;}
58506 "doc/Makefile":F) cat > vpsed$$ << \_EOF
58507 s!`test -f '$<' || echo '$(srcdir)/'`!!
58508 _EOF
58509 sed -f vpsed$$ $ac_file > tmp$$
58510 mv tmp$$ $ac_file
58511 rm vpsed$$
58512 echo 'MULTISUBDIR =' >> $ac_file
58513 ml_norecursion=yes
58514 . ${multi_basedir}/config-ml.in
58515 { ml_norecursion=; unset ml_norecursion;}
58517 "po/Makefile":F) cat > vpsed$$ << \_EOF
58518 s!`test -f '$<' || echo '$(srcdir)/'`!!
58519 _EOF
58520 sed -f vpsed$$ $ac_file > tmp$$
58521 mv tmp$$ $ac_file
58522 rm vpsed$$
58523 echo 'MULTISUBDIR =' >> $ac_file
58524 ml_norecursion=yes
58525 . ${multi_basedir}/config-ml.in
58526 { ml_norecursion=; unset ml_norecursion;}
58528 "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
58529 s!`test -f '$<' || echo '$(srcdir)/'`!!
58530 _EOF
58531 sed -f vpsed$$ $ac_file > tmp$$
58532 mv tmp$$ $ac_file
58533 rm vpsed$$
58534 echo 'MULTISUBDIR =' >> $ac_file
58535 ml_norecursion=yes
58536 . ${multi_basedir}/config-ml.in
58537 { ml_norecursion=; unset ml_norecursion;}
58539 "python/Makefile":F) cat > vpsed$$ << \_EOF
58540 s!`test -f '$<' || echo '$(srcdir)/'`!!
58541 _EOF
58542 sed -f vpsed$$ $ac_file > tmp$$
58543 mv tmp$$ $ac_file
58544 rm vpsed$$
58545 echo 'MULTISUBDIR =' >> $ac_file
58546 ml_norecursion=yes
58547 . ${multi_basedir}/config-ml.in
58548 { ml_norecursion=; unset ml_norecursion;}
58550 "generate-headers":C) (cd include && ${MAKE-make} pch_build= ) ;;
58552 esac
58553 done # for ac_tag
58556 as_fn_exit 0
58557 _ACEOF
58558 ac_clean_files=$ac_clean_files_save
58560 test $ac_write_fail = 0 ||
58561 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
58564 # configure is writing to config.log, and then calls config.status.
58565 # config.status does its own redirection, appending to config.log.
58566 # Unfortunately, on DOS this fails, as config.log is still kept open
58567 # by configure, so config.status won't be able to write to it; its
58568 # output is simply discarded. So we exec the FD to /dev/null,
58569 # effectively closing config.log, so it can be properly (re)opened and
58570 # appended to by config.status. When coming back to configure, we
58571 # need to make the FD available again.
58572 if test "$no_create" != yes; then
58573 ac_cs_success=:
58574 ac_config_status_args=
58575 test "$silent" = yes &&
58576 ac_config_status_args="$ac_config_status_args --quiet"
58577 exec 5>/dev/null
58578 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
58579 exec 5>>config.log
58580 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
58581 # would make configure fail if this is the last instruction.
58582 $ac_cs_success || as_fn_exit 1
58584 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
58585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
58586 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}